@26lights/orcha 0.42.45 → 0.42.47

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 (131) hide show
  1. package/dist/orcha.cjs.js +101 -2
  2. package/dist/orcha.css +1 -1
  3. package/dist/orcha.es.js +49400 -7296
  4. package/dist/orcha.umd.js +102 -3
  5. package/dist/src/components/AoActivityDetails.vue.d.ts +16 -14
  6. package/dist/src/components/AoActivityDetailsComments.vue.d.ts +16 -15
  7. package/dist/src/components/AoActivityDetailsFiles.vue.d.ts +9 -7
  8. package/dist/src/components/AoActivityTasks.vue.d.ts +10 -9
  9. package/dist/src/components/AoAddTemplateModal.vue.d.ts +9 -7
  10. package/dist/src/components/AoAvatar.vue.d.ts +7 -6
  11. package/dist/src/components/AoBadge.vue.d.ts +4 -3
  12. package/dist/src/components/AoButton.vue.d.ts +10 -8
  13. package/dist/src/components/AoButtonCard.vue.d.ts +10 -8
  14. package/dist/src/components/AoButtonCheck.vue.d.ts +6 -5
  15. package/dist/src/components/AoCard.vue.d.ts +9 -6
  16. package/dist/src/components/AoCardFeed.vue.d.ts +8 -6
  17. package/dist/src/components/AoCardHoriz.vue.d.ts +17 -15
  18. package/dist/src/components/AoCardProjectItemMilestone.vue.d.ts +13 -11
  19. package/dist/src/components/AoCardProjectItemPhase.vue.d.ts +17 -15
  20. package/dist/src/components/AoCardTemplate.vue.d.ts +6 -5
  21. package/dist/src/components/AoCardTemplateItem.vue.d.ts +7 -6
  22. package/dist/src/components/AoCardTemplateItemActivity.vue.d.ts +6 -4
  23. package/dist/src/components/AoCardTemplateItemMilestone.vue.d.ts +6 -4
  24. package/dist/src/components/AoCardTemplateItemPhase.vue.d.ts +6 -4
  25. package/dist/src/components/AoCheckboxField.vue.d.ts +6 -5
  26. package/dist/src/components/AoColHeader.vue.d.ts +4 -3
  27. package/dist/src/components/AoColorPicker.vue.d.ts +8 -6
  28. package/dist/src/components/AoComment.vue.d.ts +6 -5
  29. package/dist/src/components/AoCondensedCardProjectItemPhase.vue.d.ts +17 -15
  30. package/dist/src/components/AoField.vue.d.ts +7 -5
  31. package/dist/src/components/AoIcon.vue.d.ts +5 -4
  32. package/dist/src/components/AoInputField.vue.d.ts +6 -5
  33. package/dist/src/components/AoListKanban.vue.d.ts +13 -97
  34. package/dist/src/components/AoMarkdownContent.vue.d.ts +24 -0
  35. package/dist/src/components/AoModal.vue.d.ts +9 -7
  36. package/dist/src/components/AoMultiselect.vue.d.ts +5 -3
  37. package/dist/src/components/AoPageHeader.vue.d.ts +8 -6
  38. package/dist/src/components/AoProgress.vue.d.ts +4 -3
  39. package/dist/src/components/AoProjectPhase.vue.d.ts +15 -14
  40. package/dist/src/components/AoProjectPhases.vue.d.ts +16 -15
  41. package/dist/src/components/AoRichTextEditor.vue.d.ts +30 -0
  42. package/dist/src/components/AoRuleLine.vue.d.ts +9 -7
  43. package/dist/src/components/AoSaveTemplateModal.vue.d.ts +6 -5
  44. package/dist/src/components/AoSearchField.vue.d.ts +8 -7
  45. package/dist/src/components/AoTabBar.vue.d.ts +6 -6
  46. package/dist/src/components/AoTag.vue.d.ts +6 -5
  47. package/dist/src/components/AoTemplateDetailsActivities.vue.d.ts +6 -5
  48. package/dist/src/components/AoTemplateDetailsMilestones.vue.d.ts +6 -5
  49. package/dist/src/components/AoTemplateRules.vue.d.ts +6 -5
  50. package/dist/src/components/AoTitle.vue.d.ts +13 -12
  51. package/dist/src/components/icons/AccountBoxSharp.vue.d.ts +2 -1
  52. package/dist/src/components/icons/AccountCircle.vue.d.ts +2 -1
  53. package/dist/src/components/icons/AccountTreeOutlineRounded.vue.d.ts +2 -1
  54. package/dist/src/components/icons/AccountTreeRounded.vue.d.ts +2 -1
  55. package/dist/src/components/icons/Add.vue.d.ts +2 -1
  56. package/dist/src/components/icons/AddBoxOutlineRounded.vue.d.ts +2 -1
  57. package/dist/src/components/icons/ArchiveOutlineRounded.vue.d.ts +2 -1
  58. package/dist/src/components/icons/ArrowBackRounded.vue.d.ts +2 -1
  59. package/dist/src/components/icons/ArrowDropDownRounded.vue.d.ts +2 -1
  60. package/dist/src/components/icons/ArrowForwardRounded.vue.d.ts +2 -1
  61. package/dist/src/components/icons/AssignmentOutlineRounded.vue.d.ts +2 -1
  62. package/dist/src/components/icons/AttachFileRounded.vue.d.ts +2 -1
  63. package/dist/src/components/icons/CalendarTodayOutlineRounded.vue.d.ts +2 -1
  64. package/dist/src/components/icons/CancelRounded.vue.d.ts +2 -1
  65. package/dist/src/components/icons/ChatOutline.vue.d.ts +2 -1
  66. package/dist/src/components/icons/CheckBoxOutlineBlank.vue.d.ts +2 -1
  67. package/dist/src/components/icons/CheckBoxOutlineBlankSharp.vue.d.ts +2 -1
  68. package/dist/src/components/icons/CheckBoxOutlineRounded.vue.d.ts +2 -1
  69. package/dist/src/components/icons/CheckSmallRounded.vue.d.ts +2 -1
  70. package/dist/src/components/icons/ChecklistRounded.vue.d.ts +2 -1
  71. package/dist/src/components/icons/ChevronLeft.vue.d.ts +2 -1
  72. package/dist/src/components/icons/ChevronRight.vue.d.ts +2 -1
  73. package/dist/src/components/icons/CloseRounded.vue.d.ts +2 -1
  74. package/dist/src/components/icons/ContactsOutlineRounded.vue.d.ts +2 -1
  75. package/dist/src/components/icons/ContentCopyOutline.vue.d.ts +2 -1
  76. package/dist/src/components/icons/DeleteOutlineRounded.vue.d.ts +2 -1
  77. package/dist/src/components/icons/DragIndicator.vue.d.ts +2 -1
  78. package/dist/src/components/icons/EditDocumentRounded.vue.d.ts +2 -1
  79. package/dist/src/components/icons/EditOutline.vue.d.ts +2 -1
  80. package/dist/src/components/icons/ErrorOutlineRounded.vue.d.ts +2 -1
  81. package/dist/src/components/icons/FilterListRounded.vue.d.ts +2 -1
  82. package/dist/src/components/icons/FlagRounded.vue.d.ts +2 -1
  83. package/dist/src/components/icons/FlowsheetOutlineRounded.vue.d.ts +2 -1
  84. package/dist/src/components/icons/GifBox.vue.d.ts +2 -1
  85. package/dist/src/components/icons/GroupsOutline.vue.d.ts +2 -1
  86. package/dist/src/components/icons/HomeOutlineRounded.vue.d.ts +2 -1
  87. package/dist/src/components/icons/ImageRounded.vue.d.ts +2 -1
  88. package/dist/src/components/icons/Info.vue.d.ts +2 -1
  89. package/dist/src/components/icons/KeyboardArrowDown.vue.d.ts +2 -1
  90. package/dist/src/components/icons/KeyboardArrowUp.vue.d.ts +2 -1
  91. package/dist/src/components/icons/Loading.vue.d.ts +1 -1
  92. package/dist/src/components/icons/Lock.vue.d.ts +2 -1
  93. package/dist/src/components/icons/LogoutRounded.vue.d.ts +2 -1
  94. package/dist/src/components/icons/Menu.vue.d.ts +2 -1
  95. package/dist/src/components/icons/MoreHoriz.vue.d.ts +2 -1
  96. package/dist/src/components/icons/MoreTimeRounded.vue.d.ts +2 -1
  97. package/dist/src/components/icons/MoreVert.vue.d.ts +2 -1
  98. package/dist/src/components/icons/MountainFlagOutlineRounded.vue.d.ts +2 -1
  99. package/dist/src/components/icons/PersonAddOutlineRounded.vue.d.ts +2 -1
  100. package/dist/src/components/icons/PictureAsPdfRounded.vue.d.ts +2 -1
  101. package/dist/src/components/icons/RadioButtonChecked.vue.d.ts +2 -1
  102. package/dist/src/components/icons/RadioButtonCheckedOutline.vue.d.ts +2 -1
  103. package/dist/src/components/icons/RadioButtonUnchecked.vue.d.ts +2 -1
  104. package/dist/src/components/icons/RemoveRounded.vue.d.ts +2 -1
  105. package/dist/src/components/icons/SearchRounded.vue.d.ts +2 -1
  106. package/dist/src/components/icons/SelectCheckBox.vue.d.ts +2 -1
  107. package/dist/src/components/icons/SendRounded.vue.d.ts +2 -1
  108. package/dist/src/components/icons/Settings.vue.d.ts +2 -1
  109. package/dist/src/components/icons/SlideshowRounded.vue.d.ts +2 -1
  110. package/dist/src/components/icons/Target.vue.d.ts +2 -1
  111. package/dist/src/components/icons/TaskOutlineRounded.vue.d.ts +2 -1
  112. package/dist/src/components/icons/TextSnippetRounded.vue.d.ts +2 -1
  113. package/dist/src/components/icons/TimerOutline.vue.d.ts +2 -1
  114. package/dist/src/components/icons/ViewComfyAltRounded.vue.d.ts +2 -1
  115. package/dist/src/components/icons/ViewCompactAltRounded.vue.d.ts +2 -1
  116. package/dist/src/components/icons/ViewTimelineRounded.vue.d.ts +2 -1
  117. package/dist/src/components/icons/WarningOutlineRounded.vue.d.ts +2 -1
  118. package/dist/src/components/icons/WarningRounded.vue.d.ts +2 -1
  119. package/dist/src/components/icons/WaterfallChartRounded.vue.d.ts +2 -1
  120. package/dist/src/composables/useIsEditing.d.ts +2 -2
  121. package/dist/src/composables/useSearchField.d.ts +1 -1
  122. package/dist/src/helpers.d.ts +8 -2
  123. package/dist/src/views/AoFeed.vue.d.ts +20 -18
  124. package/dist/src/views/AoMapping.vue.d.ts +18 -16
  125. package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +14 -14
  126. package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +11 -10
  127. package/dist/src/views/AoProjectOverviewProject.vue.d.ts +30 -28
  128. package/dist/src/views/AoTemplateDetails.vue.d.ts +11 -9
  129. package/dist/src/views/AoTemplates.vue.d.ts +4 -3
  130. package/dist/src/views/AoTemplatesList.vue.d.ts +6 -5
  131. package/package.json +7 -3
package/dist/orcha.cjs.js CHANGED
@@ -1,5 +1,104 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),jt=require("vue-router"),We=require("vuedraggable");const ms=e.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(a){return(t,o)=>(e.openBlock(),e.createBlock(e.unref(jt.RouterView),e.mergeProps({templates:t.templates},t.$attrs),null,16,["templates"]))}}),H=(a,t)=>{const o=a.__vccOpts||a;for(const[s,n]of t)o[s]=n;return o},fs={},vs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hs=e.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1),Cs=[hs];function gs(a,t){return e.openBlock(),e.createElementBlock("svg",vs,Cs)}const _s=H(fs,[["render",gs]]),ys={},bs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ks=e.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1),ws=[ks];function $s(a,t){return e.openBlock(),e.createElementBlock("svg",bs,ws)}const Es=H(ys,[["render",$s]]),Bs={},Vs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ss=e.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1),Ns=[Ss];function Ms(a,t){return e.openBlock(),e.createElementBlock("svg",Vs,Ns)}const Ts=H(Bs,[["render",Ms]]),As={},Os={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Is=e.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1),Ds=[Is];function Ls(a,t){return e.openBlock(),e.createElementBlock("svg",Os,Ds)}const Ps=H(As,[["render",Ls]]),Hs={},Rs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},js=e.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1),Us=[js];function Fs(a,t){return e.openBlock(),e.createElementBlock("svg",Rs,Us)}const zs=H(Hs,[["render",Fs]]),Zs={},xs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ws=e.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1),qs=[Ws];function Ys(a,t){return e.openBlock(),e.createElementBlock("svg",xs,qs)}const Ks=H(Zs,[["render",Ys]]),Gs={},Xs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qs=e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1),Js=[Qs];function ei(a,t){return e.openBlock(),e.createElementBlock("svg",Xs,Js)}const ti=H(Gs,[["render",ei]]),ai={},oi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ni=e.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1),si=[ni];function ii(a,t){return e.openBlock(),e.createElementBlock("svg",oi,si)}const ri=H(ai,[["render",ii]]),li={},ci={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},di=e.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1),ui=[di];function pi(a,t){return e.openBlock(),e.createElementBlock("svg",ci,ui)}const mi=H(li,[["render",pi]]),fi={},vi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hi=e.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1),Ci=[hi];function gi(a,t){return e.openBlock(),e.createElementBlock("svg",vi,Ci)}const _i=H(fi,[["render",gi]]),yi={},bi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ki=e.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1),wi=[ki];function $i(a,t){return e.openBlock(),e.createElementBlock("svg",bi,wi)}const Ei=H(yi,[["render",$i]]),Bi={},Vi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Si=e.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1),Ni=[Si];function Mi(a,t){return e.openBlock(),e.createElementBlock("svg",Vi,Ni)}const Ti=H(Bi,[["render",Mi]]),Ai={},Oi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ii=e.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1),Di=[Ii];function Li(a,t){return e.openBlock(),e.createElementBlock("svg",Oi,Di)}const Pi=H(Ai,[["render",Li]]),Hi={},Ri={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ji=e.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1),Ui=[ji];function Fi(a,t){return e.openBlock(),e.createElementBlock("svg",Ri,Ui)}const zi=H(Hi,[["render",Fi]]),Zi={},xi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wi=e.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1),qi=[Wi];function Yi(a,t){return e.openBlock(),e.createElementBlock("svg",xi,qi)}const Ki=H(Zi,[["render",Yi]]),Gi={},Xi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qi=e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1),Ji=[Qi];function er(a,t){return e.openBlock(),e.createElementBlock("svg",Xi,Ji)}const tr=H(Gi,[["render",er]]),ar={},or={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nr=e.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1),sr=[nr];function ir(a,t){return e.openBlock(),e.createElementBlock("svg",or,sr)}const rr=H(ar,[["render",ir]]),lr={},cr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dr=e.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1),ur=[dr];function pr(a,t){return e.openBlock(),e.createElementBlock("svg",cr,ur)}const mr=H(lr,[["render",pr]]),fr={},vr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hr=e.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1),Cr=[hr];function gr(a,t){return e.openBlock(),e.createElementBlock("svg",vr,Cr)}const _r=H(fr,[["render",gr]]),yr={},br={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kr=e.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1),wr=[kr];function $r(a,t){return e.openBlock(),e.createElementBlock("svg",br,wr)}const Er=H(yr,[["render",$r]]),Br={},Vr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sr=e.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1),Nr=[Sr];function Mr(a,t){return e.openBlock(),e.createElementBlock("svg",Vr,Nr)}const Tr=H(Br,[["render",Mr]]),Ar={},Or={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ir=e.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1),Dr=[Ir];function Lr(a,t){return e.openBlock(),e.createElementBlock("svg",Or,Dr)}const Pr=H(Ar,[["render",Lr]]),Hr={},Rr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jr=e.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1),Ur=[jr];function Fr(a,t){return e.openBlock(),e.createElementBlock("svg",Rr,Ur)}const zr=H(Hr,[["render",Fr]]),Zr={},xr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wr=e.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1),qr=[Wr];function Yr(a,t){return e.openBlock(),e.createElementBlock("svg",xr,qr)}const Kr=H(Zr,[["render",Yr]]),Gr={},Xr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qr=e.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1),Jr=[Qr];function el(a,t){return e.openBlock(),e.createElementBlock("svg",Xr,Jr)}const tl=H(Gr,[["render",el]]),al={},ol={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nl=e.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1),sl=[nl];function il(a,t){return e.openBlock(),e.createElementBlock("svg",ol,sl)}const rl=H(al,[["render",il]]),ll={},cl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dl=e.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1),ul=[dl];function pl(a,t){return e.openBlock(),e.createElementBlock("svg",cl,ul)}const ml=H(ll,[["render",pl]]),fl={},vl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hl=e.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1),Cl=[hl];function gl(a,t){return e.openBlock(),e.createElementBlock("svg",vl,Cl)}const _l=H(fl,[["render",gl]]),yl={},bl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kl=e.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1),wl=[kl];function $l(a,t){return e.openBlock(),e.createElementBlock("svg",bl,wl)}const El=H(yl,[["render",$l]]),Bl={},Vl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sl=e.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1),Nl=[Sl];function Ml(a,t){return e.openBlock(),e.createElementBlock("svg",Vl,Nl)}const Tl=H(Bl,[["render",Ml]]),Al={},Ol={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Il=e.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1),Dl=[Il];function Ll(a,t){return e.openBlock(),e.createElementBlock("svg",Ol,Dl)}const Pl=H(Al,[["render",Ll]]),Hl={},Rl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jl=e.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1),Ul=[jl];function Fl(a,t){return e.openBlock(),e.createElementBlock("svg",Rl,Ul)}const zl=H(Hl,[["render",Fl]]),Zl={},xl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wl=e.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1),ql=[Wl];function Yl(a,t){return e.openBlock(),e.createElementBlock("svg",xl,ql)}const Kl=H(Zl,[["render",Yl]]),Gl={},Xl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ql=e.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1),Jl=[Ql];function e1(a,t){return e.openBlock(),e.createElementBlock("svg",Xl,Jl)}const t1=H(Gl,[["render",e1]]),a1={},o1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n1=e.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1),s1=[n1];function i1(a,t){return e.openBlock(),e.createElementBlock("svg",o1,s1)}const r1=H(a1,[["render",i1]]),l1={},c1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d1=e.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1),u1=[d1];function p1(a,t){return e.openBlock(),e.createElementBlock("svg",c1,u1)}const m1=H(l1,[["render",p1]]),f1={},v1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h1=e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1),C1=[h1];function g1(a,t){return e.openBlock(),e.createElementBlock("svg",v1,C1)}const _1=H(f1,[["render",g1]]),y1={},b1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k1=e.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1),w1=[k1];function $1(a,t){return e.openBlock(),e.createElementBlock("svg",b1,w1)}const E1=H(y1,[["render",$1]]),B1={},V1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S1=e.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1),N1=[S1];function M1(a,t){return e.openBlock(),e.createElementBlock("svg",V1,N1)}const T1=H(B1,[["render",M1]]),A1={},O1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I1=e.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1),D1=[I1];function L1(a,t){return e.openBlock(),e.createElementBlock("svg",O1,D1)}const P1=H(A1,[["render",L1]]),H1=e.defineComponent({name:"LoadingIcon"});const Qa=a=>(e.pushScopeId("data-v-ad6da4a9"),a=a(),e.popScopeId(),a),R1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j1=Qa(()=>e.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1)),U1=Qa(()=>e.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1)),F1=Qa(()=>e.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)),z1=[j1,U1,F1];function Z1(a,t,o,s,n,r){return e.openBlock(),e.createElementBlock("svg",R1,z1)}const x1=H(H1,[["render",Z1],["__scopeId","data-v-ad6da4a9"]]),W1={},q1={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},Y1=e.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1),K1=[Y1];function G1(a,t){return e.openBlock(),e.createElementBlock("svg",q1,K1)}const X1=H(W1,[["render",G1]]),Q1={},J1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ec=e.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1),tc=[ec];function ac(a,t){return e.openBlock(),e.createElementBlock("svg",J1,tc)}const oc=H(Q1,[["render",ac]]),nc={},sc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ic=e.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1),rc=[ic];function lc(a,t){return e.openBlock(),e.createElementBlock("svg",sc,rc)}const cc=H(nc,[["render",lc]]),dc={},uc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pc=e.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1),mc=[pc];function fc(a,t){return e.openBlock(),e.createElementBlock("svg",uc,mc)}const vc=H(dc,[["render",fc]]),hc={},Cc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gc=e.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1),_c=[gc];function yc(a,t){return e.openBlock(),e.createElementBlock("svg",Cc,_c)}const bc=H(hc,[["render",yc]]),kc={},wc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$c=e.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1),Ec=[$c];function Bc(a,t){return e.openBlock(),e.createElementBlock("svg",wc,Ec)}const Vc=H(kc,[["render",Bc]]),Sc={},Nc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mc=e.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1),Tc=[Mc];function Ac(a,t){return e.openBlock(),e.createElementBlock("svg",Nc,Tc)}const Oc=H(Sc,[["render",Ac]]),Ic={},Dc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lc=e.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1),Pc=[Lc];function Hc(a,t){return e.openBlock(),e.createElementBlock("svg",Dc,Pc)}const Rc=H(Ic,[["render",Hc]]),jc={},Uc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fc=e.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1),zc=[Fc];function Zc(a,t){return e.openBlock(),e.createElementBlock("svg",Uc,zc)}const xc=H(jc,[["render",Zc]]),Wc={},qc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yc=e.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1),Kc=[Yc];function Gc(a,t){return e.openBlock(),e.createElementBlock("svg",qc,Kc)}const Xc=H(Wc,[["render",Gc]]),Qc={},Jc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ed=e.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1),td=[ed];function ad(a,t){return e.openBlock(),e.createElementBlock("svg",Jc,td)}const od=H(Qc,[["render",ad]]),nd={},sd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},id=e.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1),rd=[id];function ld(a,t){return e.openBlock(),e.createElementBlock("svg",sd,rd)}const cd=H(nd,[["render",ld]]),dd={},ud={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pd=e.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1),md=[pd];function fd(a,t){return e.openBlock(),e.createElementBlock("svg",ud,md)}const vd=H(dd,[["render",fd]]),hd={},Cd={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gd=e.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2),_d=[gd];function yd(a,t){return e.openBlock(),e.createElementBlock("svg",Cd,_d)}const bd=H(hd,[["render",yd]]),kd={},wd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$d=e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1),Ed=[$d];function Bd(a,t){return e.openBlock(),e.createElementBlock("svg",wd,Ed)}const Vd=H(kd,[["render",Bd]]),Sd={},Nd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Md=e.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1),Td=[Md];function Ad(a,t){return e.openBlock(),e.createElementBlock("svg",Nd,Td)}const Od=H(Sd,[["render",Ad]]),Id={},Dd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ld=e.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1),Pd=[Ld];function Hd(a,t){return e.openBlock(),e.createElementBlock("svg",Dd,Pd)}const Rd=H(Id,[["render",Hd]]),jd={},Ud={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fd=e.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1),zd=[Fd];function Zd(a,t){return e.openBlock(),e.createElementBlock("svg",Ud,zd)}const xd=H(jd,[["render",Zd]]),Wd={},qd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yd=e.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1),Kd=[Yd];function Gd(a,t){return e.openBlock(),e.createElementBlock("svg",qd,Kd)}const Xd=H(Wd,[["render",Gd]]),Qd={},Jd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eu=e.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1),tu=[eu];function au(a,t){return e.openBlock(),e.createElementBlock("svg",Jd,tu)}const ou=H(Qd,[["render",au]]),nu={},su={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iu=e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1),ru=[iu];function lu(a,t){return e.openBlock(),e.createElementBlock("svg",su,ru)}const cu=H(nu,[["render",lu]]),du={},uu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pu=e.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1),mu=[pu];function fu(a,t){return e.openBlock(),e.createElementBlock("svg",uu,mu)}const vu=H(du,[["render",fu]]),hu={},Cu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gu=e.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1),_u=[gu];function yu(a,t){return e.openBlock(),e.createElementBlock("svg",Cu,_u)}const bu=H(hu,[["render",yu]]),ku={},wu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u=e.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1),Eu=[$u];function Bu(a,t){return e.openBlock(),e.createElementBlock("svg",wu,Eu)}const Vu=H(ku,[["render",Bu]]),Su={},Nu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mu=e.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1),Tu=[Mu];function Au(a,t){return e.openBlock(),e.createElementBlock("svg",Nu,Tu)}const Ou=H(Su,[["render",Au]]),Iu={},Du={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lu=e.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1),Pu=[Lu];function Hu(a,t){return e.openBlock(),e.createElementBlock("svg",Du,Pu)}const Ru=H(Iu,[["render",Hu]]),ju={},Uu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fu=e.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1),zu=[Fu];function Zu(a,t){return e.openBlock(),e.createElementBlock("svg",Uu,zu)}const xu=H(ju,[["render",Zu]]),Wu={},qu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yu=e.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1),Ku=[Yu];function Gu(a,t){return e.openBlock(),e.createElementBlock("svg",qu,Ku)}const Xu=H(Wu,[["render",Gu]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:_s,AccountCircle:Es,AccountTreeOutlineRounded:Ts,AccountTreeRounded:Ps,Add:zs,AddBoxOutlineRounded:Ks,ArchiveOutlineRounded:ti,ArrowBackRounded:ri,ArrowDropDownRounded:mi,ArrowForwardRounded:_i,AssignmentOutlineRounded:Ei,AttachFileRounded:Ti,CalendarTodayOutlineRounded:Pi,CancelRounded:zi,ChatOutline:Ki,CheckBoxOutlineBlank:tr,CheckBoxOutlineBlankSharp:rr,CheckBoxOutlineRounded:mr,CheckSmallRounded:_r,ChecklistRounded:Er,ChevronLeft:Tr,ChevronRight:Pr,CloseRounded:zr,ContactsOutlineRounded:Kr,ContentCopyOutline:tl,DeleteOutlineRounded:rl,DragIndicator:ml,EditDocumentRounded:_l,EditOutline:El,ErrorOutlineRounded:Tl,FilterListRounded:Pl,FlagRounded:zl,FlowsheetOutlineRounded:Kl,GifBox:t1,GroupsOutline:r1,HomeOutlineRounded:m1,ImageRounded:_1,Info:E1,KeyboardArrowDown:T1,KeyboardArrowUp:P1,Loading:x1,Lock:X1,LogoutRounded:oc,Menu:cc,MoreHoriz:vc,MoreTimeRounded:bc,MoreVert:Vc,MountainFlagOutlineRounded:Oc,PersonAddOutlineRounded:Rc,PictureAsPdfRounded:xc,RadioButtonChecked:Xc,RadioButtonCheckedOutline:od,RadioButtonUnchecked:cd,RemoveRounded:vd,SearchRounded:bd,SelectCheckBox:Vd,SendRounded:Od,Settings:Rd,SlideshowRounded:xd,Target:Xd,TaskOutlineRounded:ou,TextSnippetRounded:cu,TimerOutline:vu,ViewComfyAltRounded:bu,ViewCompactAltRounded:Vu,ViewTimelineRounded:Ou,WarningOutlineRounded:Ru,WarningRounded:xu,WaterfallChartRounded:Xu},Symbol.toStringTag,{value:"Module"})),Ju={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},ha={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Ja={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},e2={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Ja,...e2});const tn={ROUND:"round",ROUNDED:"rounded"},t2={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},J=e.defineComponent({__name:"AoIcon",props:{name:{},size:{default:ha.MD}},setup(a){const t=a,o=e.computed(()=>Qu[t.name]);return(s,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:e.normalizeClass(["ao-icon",`ao-icon--${s.size}`])},null,8,["class"]))}});const a2=["type"],o2={key:0,class:"ao-button__label"},G=e.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>Ju.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>ha.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>tn.ROUNDED}},setup(a){const t=a,o=e.computed(()=>t.size),s=e.computed(()=>t.isLoading?"Loading":t.iconName);return(n,r)=>(e.openBlock(),e.createElementBlock("button",{type:n.type,class:e.normalizeClass(["ao-button",`ao-button--${n.variant}`,n.color?`ao-button--${n.color}`:"",`ao-button--${n.corners}`,n.footer?"ao-button--footer":"",n.size?`ao-button--${n.size}`:"",n.iconName&&n.iconPosition?`ao-button--icon-${n.iconPosition}`:"",n.$attrs.disabled?"ao-button--is-disabled":""])},[e.renderSlot(n.$slots,"default",{},()=>[n.label?(e.openBlock(),e.createElementBlock("span",o2,e.toDisplayString(n.label),1)):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(J,{key:0,name:s.value,class:"ao-button__icon",size:o.value},null,8,["name","size"])):e.createCommentVNode("",!0)],10,a2))}});function an(a){const t=e.ref(!1),o=e.ref(""),s=e.computed(()=>"value"in a.value?"value":"innerHTML"),n=()=>{t.value=!t.value},r=c=>{t.value=c},i=c=>async()=>{r(!1),await e.nextTick(()=>{a.value[s.value]=o.value,c==null||c()})},l=c=>async u=>{const d=a.value[s.value];r(!1),await e.nextTick(()=>{c(d,u)})};return e.watch(t,async c=>{await e.nextTick(()=>{setTimeout(()=>{a.value&&c&&(a.value.focus(),o.value=a.value[s.value])},1)})}),{isEditing:t,setIsEditing:r,toggleIsEditing:n,onUpdate:l,onDiscard:i}}const se=e.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(a,{emit:t}){const o=a,s=e.ref(null),{isEditing:n,setIsEditing:r,onUpdate:i,onDiscard:l}=an(s),c=e.computed(()=>n.value?"input":o.tag||`h${o.level}`),u=e.computed(()=>o.isEditable?n.value?{change:d,click:y=>y.stopPropagation(),blur:m}:{click:f,focus:f}:{}),d=i((y,v)=>{const g=v.target.value;t("update:title",g)}),p=l(),m=async()=>{n.value&&r(!1)},h=()=>{t("toggle-is-editing",!1)},f=y=>{y.stopPropagation(),n.value||r(!0)};return e.watch(()=>o.isEditable,y=>{y||p()}),(y,v)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.mergeProps({id:y.id,ref_key:"target",ref:s,class:["ao-title",`ao-title--${y.level}`,{[`ao-title--${y.color}`]:!!y.color,"ao-title--editable":y.isEditable,"ao-field__input ao-title--editing":e.unref(n),"ao-title--readonly":!e.unref(n)}],type:e.unref(n)?"text":null,value:e.unref(n)?y.title:null,tabindex:"0",onKeyup:e.withKeys(h,["enter"])},e.toHandlers(u.value),{onKeydown:e.withKeys(e.unref(p),["esc"])}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:1},16,["id","class","type","value","onKeyup","onKeydown"]))}});const n2={key:0,class:"ao-card-horiz__drag ao-card__drag"},s2={class:"ao-card-horiz__header"},i2={key:0,class:"ao-card-horiz__avatar"},r2={class:"ao-card-horiz__title-group"},l2={key:0,class:"ao-card-horiz__subtitle"},c2={key:1,class:"ao-card-horiz__header"},d2={key:1,class:"ao-card-horiz__body"},u2={key:2,class:"ao-card-horiz__footer"},p2={key:3,class:"ao-card-horiz__secondary"},on=e.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(a,{emit:t}){const o=s=>{t("update:title",s)};return(s,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.tagName),{class:e.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":s.isActive}])},{default:e.withCtx(()=>[s.isDraggable?(e.openBlock(),e.createElementBlock("div",n2,[e.createVNode(J,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):e.createCommentVNode("",!0),e.createElementVNode("div",s2,[s.icon?(e.openBlock(),e.createElementBlock("div",i2,[e.createVNode(J,{class:"ao-card-horiz__icon",name:s.icon,size:"xl"},null,8,["name"])])):e.createCommentVNode("",!0),e.createElementVNode("div",r2,[e.createVNode(se,{id:s.id,class:"ao-card-horiz__title",level:4,title:s.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),e.renderSlot(s.$slots,"subtitle",{},()=>[s.subtitle?(e.openBlock(),e.createElementBlock("span",l2,e.toDisplayString(s.subtitle),1)):e.createCommentVNode("",!0)])]),s.$slots.header?(e.openBlock(),e.createElementBlock("div",c2,[e.renderSlot(s.$slots,"header")])):e.createCommentVNode("",!0)]),s.$slots.default?(e.openBlock(),e.createElementBlock("div",d2,[e.renderSlot(s.$slots,"default")])):e.createCommentVNode("",!0),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",u2,[e.renderSlot(s.$slots,"footer")])):e.createCommentVNode("",!0),s.$slots.secondary?(e.openBlock(),e.createElementBlock("div",p2,[e.renderSlot(s.$slots,"secondary")])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Ot=e.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(a){const t=a,o=e.computed(()=>t.clickable?"button":"span"),s=e.computed(()=>o.value==="button"?{type:"button"}:{});return(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-tag",n.color?`ao-tag--${n.color}`:"",n.clickable?"ao-tag--clickable":"",n.closable?"ao-tag--closable":"",n.variant?`ao-tag--${n.variant}`:""]),style:e.normalizeStyle(n.rawColor?{"--ao-tag-bg":n.rawColor}:{})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),e.mergeProps({class:"ao-tag__label"},s.value,{onClick:r[0]||(r[0]=i=>n.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.label)+" ",1),n.variant===e.unref(t2).SOLID_ICON&&n.iconName?(e.openBlock(),e.createBlock(J,{key:0,name:n.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):e.createCommentVNode("",!0)]),_:1},16)),n.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:r[1]||(r[1]=i=>n.$emit("close",i))},[e.createVNode(J,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):e.createCommentVNode("",!0)],6))}});const It={todo:"todo",done:"done",archived:"archived"},m2={months:"months",weeks:"weeks",days:"days"},f2={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},nn={BEFORE:"before",AFTER:"after"},sn={START:"start",end:"end"},rn={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},ee={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var ln=(a=>(a.PHASES="phases",a.MILESTONES="milestones",a.ACTIVITIES="activities",a))(ln||{});const v2={add:"add",remove:"remove",moved:"moved"};var cn=(a=>(a.HOURS="hours",a.DAYS="days",a))(cn||{});const et={project:"projectId",type:"typeId",assignee:"assigneeId"};function la(a){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(a)}function Me(a){if(a===null||a===!0||a===!1)return NaN;var t=Number(a);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ae(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function re(a){ae(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||la(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function h2(a,t){ae(2,arguments);var o=re(a).getTime(),s=Me(t);return new Date(o+s)}var C2={};function Ut(){return C2}function Dt(a){var t=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return t.setUTCFullYear(a.getFullYear()),a.getTime()-t.getTime()}function Oo(a){ae(1,arguments);var t=re(a);return t.setHours(0,0,0,0),t}var g2=864e5;function _2(a,t){ae(2,arguments);var o=Oo(a),s=Oo(t),n=o.getTime()-Dt(o),r=s.getTime()-Dt(s);return Math.round((n-r)/g2)}function y2(a,t){ae(2,arguments);var o=re(a),s=re(t),n=o.getTime()-s.getTime();return n<0?-1:n>0?1:n}var dn=6e4,un=36e5;function b2(a){return ae(1,arguments),a instanceof Date||la(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function pn(a){if(ae(1,arguments),!b2(a)&&typeof a!="number")return!1;var t=re(a);return!isNaN(Number(t))}function qa(a,t){ae(2,arguments);var o=Me(t);return h2(a,-o)}var k2=864e5;function w2(a){ae(1,arguments);var t=re(a),o=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var s=t.getTime(),n=o-s;return Math.floor(n/k2)+1}function ca(a){ae(1,arguments);var t=1,o=re(a),s=o.getUTCDay(),n=(s<t?7:0)+s-t;return o.setUTCDate(o.getUTCDate()-n),o.setUTCHours(0,0,0,0),o}function mn(a){ae(1,arguments);var t=re(a),o=t.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(o+1,0,4),s.setUTCHours(0,0,0,0);var n=ca(s),r=new Date(0);r.setUTCFullYear(o,0,4),r.setUTCHours(0,0,0,0);var i=ca(r);return t.getTime()>=n.getTime()?o+1:t.getTime()>=i.getTime()?o:o-1}function $2(a){ae(1,arguments);var t=mn(a),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=ca(o);return s}var E2=6048e5;function B2(a){ae(1,arguments);var t=re(a),o=ca(t).getTime()-$2(t).getTime();return Math.round(o/E2)+1}function da(a,t){var o,s,n,r,i,l,c,u;ae(1,arguments);var d=Ut(),p=Me((o=(s=(n=(r=t==null?void 0:t.weekStartsOn)!==null&&r!==void 0?r:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:d.weekStartsOn)!==null&&s!==void 0?s:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=re(a),h=m.getUTCDay(),f=(h<p?7:0)+h-p;return m.setUTCDate(m.getUTCDate()-f),m.setUTCHours(0,0,0,0),m}function fn(a,t){var o,s,n,r,i,l,c,u;ae(1,arguments);var d=re(a),p=d.getUTCFullYear(),m=Ut(),h=Me((o=(s=(n=(r=t==null?void 0:t.firstWeekContainsDate)!==null&&r!==void 0?r:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&s!==void 0?s:(c=m.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(p+1,0,h),f.setUTCHours(0,0,0,0);var y=da(f,t),v=new Date(0);v.setUTCFullYear(p,0,h),v.setUTCHours(0,0,0,0);var b=da(v,t);return d.getTime()>=y.getTime()?p+1:d.getTime()>=b.getTime()?p:p-1}function V2(a,t){var o,s,n,r,i,l,c,u;ae(1,arguments);var d=Ut(),p=Me((o=(s=(n=(r=t==null?void 0:t.firstWeekContainsDate)!==null&&r!==void 0?r:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:d.firstWeekContainsDate)!==null&&s!==void 0?s:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:1),m=fn(a,t),h=new Date(0);h.setUTCFullYear(m,0,p),h.setUTCHours(0,0,0,0);var f=da(h,t);return f}var S2=6048e5;function N2(a,t){ae(1,arguments);var o=re(a),s=da(o,t).getTime()-V2(o,t).getTime();return Math.round(s/S2)+1}function Q(a,t){for(var o=a<0?"-":"",s=Math.abs(a).toString();s.length<t;)s="0"+s;return o+s}var M2={y:function(t,o){var s=t.getUTCFullYear(),n=s>0?s:1-s;return Q(o==="yy"?n%100:n,o.length)},M:function(t,o){var s=t.getUTCMonth();return o==="M"?String(s+1):Q(s+1,2)},d:function(t,o){return Q(t.getUTCDate(),o.length)},a:function(t,o){var s=t.getUTCHours()/12>=1?"pm":"am";switch(o){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h:function(t,o){return Q(t.getUTCHours()%12||12,o.length)},H:function(t,o){return Q(t.getUTCHours(),o.length)},m:function(t,o){return Q(t.getUTCMinutes(),o.length)},s:function(t,o){return Q(t.getUTCSeconds(),o.length)},S:function(t,o){var s=o.length,n=t.getUTCMilliseconds(),r=Math.floor(n*Math.pow(10,s-3));return Q(r,o.length)}};const je=M2;var dt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},T2={G:function(t,o,s){var n=t.getUTCFullYear()>0?1:0;switch(o){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})}},y:function(t,o,s){if(o==="yo"){var n=t.getUTCFullYear(),r=n>0?n:1-n;return s.ordinalNumber(r,{unit:"year"})}return je.y(t,o)},Y:function(t,o,s,n){var r=fn(t,n),i=r>0?r:1-r;if(o==="YY"){var l=i%100;return Q(l,2)}return o==="Yo"?s.ordinalNumber(i,{unit:"year"}):Q(i,o.length)},R:function(t,o){var s=mn(t);return Q(s,o.length)},u:function(t,o){var s=t.getUTCFullYear();return Q(s,o.length)},Q:function(t,o,s){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(o){case"Q":return String(n);case"QQ":return Q(n,2);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,o,s){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(o){case"q":return String(n);case"qq":return Q(n,2);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,o,s){var n=t.getUTCMonth();switch(o){case"M":case"MM":return je.M(t,o);case"Mo":return s.ordinalNumber(n+1,{unit:"month"});case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})}},L:function(t,o,s){var n=t.getUTCMonth();switch(o){case"L":return String(n+1);case"LL":return Q(n+1,2);case"Lo":return s.ordinalNumber(n+1,{unit:"month"});case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})}},w:function(t,o,s,n){var r=N2(t,n);return o==="wo"?s.ordinalNumber(r,{unit:"week"}):Q(r,o.length)},I:function(t,o,s){var n=B2(t);return o==="Io"?s.ordinalNumber(n,{unit:"week"}):Q(n,o.length)},d:function(t,o,s){return o==="do"?s.ordinalNumber(t.getUTCDate(),{unit:"date"}):je.d(t,o)},D:function(t,o,s){var n=w2(t);return o==="Do"?s.ordinalNumber(n,{unit:"dayOfYear"}):Q(n,o.length)},E:function(t,o,s){var n=t.getUTCDay();switch(o){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})}},e:function(t,o,s,n){var r=t.getUTCDay(),i=(r-n.weekStartsOn+8)%7||7;switch(o){case"e":return String(i);case"ee":return Q(i,2);case"eo":return s.ordinalNumber(i,{unit:"day"});case"eee":return s.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(r,{width:"short",context:"formatting"});case"eeee":default:return s.day(r,{width:"wide",context:"formatting"})}},c:function(t,o,s,n){var r=t.getUTCDay(),i=(r-n.weekStartsOn+8)%7||7;switch(o){case"c":return String(i);case"cc":return Q(i,o.length);case"co":return s.ordinalNumber(i,{unit:"day"});case"ccc":return s.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(r,{width:"narrow",context:"standalone"});case"cccccc":return s.day(r,{width:"short",context:"standalone"});case"cccc":default:return s.day(r,{width:"wide",context:"standalone"})}},i:function(t,o,s){var n=t.getUTCDay(),r=n===0?7:n;switch(o){case"i":return String(r);case"ii":return Q(r,o.length);case"io":return s.ordinalNumber(r,{unit:"day"});case"iii":return s.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(n,{width:"short",context:"formatting"});case"iiii":default:return s.day(n,{width:"wide",context:"formatting"})}},a:function(t,o,s){var n=t.getUTCHours(),r=n/12>=1?"pm":"am";switch(o){case"a":case"aa":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,o,s){var n=t.getUTCHours(),r;switch(n===12?r=dt.noon:n===0?r=dt.midnight:r=n/12>=1?"pm":"am",o){case"b":case"bb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,o,s){var n=t.getUTCHours(),r;switch(n>=17?r=dt.evening:n>=12?r=dt.afternoon:n>=4?r=dt.morning:r=dt.night,o){case"B":case"BB":case"BBB":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,o,s){if(o==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),s.ordinalNumber(n,{unit:"hour"})}return je.h(t,o)},H:function(t,o,s){return o==="Ho"?s.ordinalNumber(t.getUTCHours(),{unit:"hour"}):je.H(t,o)},K:function(t,o,s){var n=t.getUTCHours()%12;return o==="Ko"?s.ordinalNumber(n,{unit:"hour"}):Q(n,o.length)},k:function(t,o,s){var n=t.getUTCHours();return n===0&&(n=24),o==="ko"?s.ordinalNumber(n,{unit:"hour"}):Q(n,o.length)},m:function(t,o,s){return o==="mo"?s.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):je.m(t,o)},s:function(t,o,s){return o==="so"?s.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):je.s(t,o)},S:function(t,o){return je.S(t,o)},X:function(t,o,s,n){var r=n._originalDate||t,i=r.getTimezoneOffset();if(i===0)return"Z";switch(o){case"X":return Do(i);case"XXXX":case"XX":return tt(i);case"XXXXX":case"XXX":default:return tt(i,":")}},x:function(t,o,s,n){var r=n._originalDate||t,i=r.getTimezoneOffset();switch(o){case"x":return Do(i);case"xxxx":case"xx":return tt(i);case"xxxxx":case"xxx":default:return tt(i,":")}},O:function(t,o,s,n){var r=n._originalDate||t,i=r.getTimezoneOffset();switch(o){case"O":case"OO":case"OOO":return"GMT"+Io(i,":");case"OOOO":default:return"GMT"+tt(i,":")}},z:function(t,o,s,n){var r=n._originalDate||t,i=r.getTimezoneOffset();switch(o){case"z":case"zz":case"zzz":return"GMT"+Io(i,":");case"zzzz":default:return"GMT"+tt(i,":")}},t:function(t,o,s,n){var r=n._originalDate||t,i=Math.floor(r.getTime()/1e3);return Q(i,o.length)},T:function(t,o,s,n){var r=n._originalDate||t,i=r.getTime();return Q(i,o.length)}};function Io(a,t){var o=a>0?"-":"+",s=Math.abs(a),n=Math.floor(s/60),r=s%60;if(r===0)return o+String(n);var i=t||"";return o+String(n)+i+Q(r,2)}function Do(a,t){if(a%60===0){var o=a>0?"-":"+";return o+Q(Math.abs(a)/60,2)}return tt(a,t)}function tt(a,t){var o=t||"",s=a>0?"-":"+",n=Math.abs(a),r=Q(Math.floor(n/60),2),i=Q(n%60,2);return s+r+o+i}const A2=T2;var Lo=function(t,o){switch(t){case"P":return o.date({width:"short"});case"PP":return o.date({width:"medium"});case"PPP":return o.date({width:"long"});case"PPPP":default:return o.date({width:"full"})}},vn=function(t,o){switch(t){case"p":return o.time({width:"short"});case"pp":return o.time({width:"medium"});case"ppp":return o.time({width:"long"});case"pppp":default:return o.time({width:"full"})}},O2=function(t,o){var s=t.match(/(P+)(p+)?/)||[],n=s[1],r=s[2];if(!r)return Lo(t,o);var i;switch(n){case"P":i=o.dateTime({width:"short"});break;case"PP":i=o.dateTime({width:"medium"});break;case"PPP":i=o.dateTime({width:"long"});break;case"PPPP":default:i=o.dateTime({width:"full"});break}return i.replace("{{date}}",Lo(n,o)).replace("{{time}}",vn(r,o))},I2={p:vn,P:O2};const D2=I2;var L2=["D","DD"],P2=["YY","YYYY"];function H2(a){return L2.indexOf(a)!==-1}function R2(a){return P2.indexOf(a)!==-1}function Po(a,t,o){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var j2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},U2=function(t,o,s){var n,r=j2[t];return typeof r=="string"?n=r:o===1?n=r.one:n=r.other.replace("{{count}}",o.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+n:n+" ago":n};const F2=U2;function Fa(a){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):a.defaultWidth,s=a.formats[o]||a.formats[a.defaultWidth];return s}}var z2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Z2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},x2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W2={date:Fa({formats:z2,defaultWidth:"full"}),time:Fa({formats:Z2,defaultWidth:"full"}),dateTime:Fa({formats:x2,defaultWidth:"full"})};const q2=W2;var Y2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},K2=function(t,o,s,n){return Y2[t]};const G2=K2;function $t(a){return function(t,o){var s=o!=null&&o.context?String(o.context):"standalone",n;if(s==="formatting"&&a.formattingValues){var r=a.defaultFormattingWidth||a.defaultWidth,i=o!=null&&o.width?String(o.width):r;n=a.formattingValues[i]||a.formattingValues[r]}else{var l=a.defaultWidth,c=o!=null&&o.width?String(o.width):a.defaultWidth;n=a.values[c]||a.values[l]}var u=a.argumentCallback?a.argumentCallback(t):t;return n[u]}}var X2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Q2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},J2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},e0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},a0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o0=function(t,o){var s=Number(t),n=s%100;if(n>20||n<10)switch(n%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},n0={ordinalNumber:o0,era:$t({values:X2,defaultWidth:"wide"}),quarter:$t({values:Q2,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:$t({values:J2,defaultWidth:"wide"}),day:$t({values:e0,defaultWidth:"wide"}),dayPeriod:$t({values:t0,defaultWidth:"wide",formattingValues:a0,defaultFormattingWidth:"wide"})};const s0=n0;function Et(a){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.width,n=s&&a.matchPatterns[s]||a.matchPatterns[a.defaultMatchWidth],r=t.match(n);if(!r)return null;var i=r[0],l=s&&a.parsePatterns[s]||a.parsePatterns[a.defaultParseWidth],c=Array.isArray(l)?r0(l,function(p){return p.test(i)}):i0(l,function(p){return p.test(i)}),u;u=a.valueCallback?a.valueCallback(c):c,u=o.valueCallback?o.valueCallback(u):u;var d=t.slice(i.length);return{value:u,rest:d}}}function i0(a,t){for(var o in a)if(a.hasOwnProperty(o)&&t(a[o]))return o}function r0(a,t){for(var o=0;o<a.length;o++)if(t(a[o]))return o}function l0(a){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=t.match(a.matchPattern);if(!s)return null;var n=s[0],r=t.match(a.parsePattern);if(!r)return null;var i=a.valueCallback?a.valueCallback(r[0]):r[0];i=o.valueCallback?o.valueCallback(i):i;var l=t.slice(n.length);return{value:i,rest:l}}}var c0=/^(\d+)(th|st|nd|rd)?/i,d0=/\d+/i,u0={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},p0={any:[/^b/i,/^(a|c)/i]},m0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f0={any:[/1/i,/2/i,/3/i,/4/i]},v0={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h0={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},C0={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g0={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},_0={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},y0={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b0={ordinalNumber:l0({matchPattern:c0,parsePattern:d0,valueCallback:function(t){return parseInt(t,10)}}),era:Et({matchPatterns:u0,defaultMatchWidth:"wide",parsePatterns:p0,defaultParseWidth:"any"}),quarter:Et({matchPatterns:m0,defaultMatchWidth:"wide",parsePatterns:f0,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Et({matchPatterns:v0,defaultMatchWidth:"wide",parsePatterns:h0,defaultParseWidth:"any"}),day:Et({matchPatterns:C0,defaultMatchWidth:"wide",parsePatterns:g0,defaultParseWidth:"any"}),dayPeriod:Et({matchPatterns:_0,defaultMatchWidth:"any",parsePatterns:y0,defaultParseWidth:"any"})};const k0=b0;var w0={code:"en-US",formatDistance:F2,formatLong:q2,formatRelative:G2,localize:s0,match:k0,options:{weekStartsOn:0,firstWeekContainsDate:1}};const hn=w0;var $0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B0=/^'([^]*?)'?$/,V0=/''/g,S0=/[a-zA-Z]/;function Cn(a,t,o){var s,n,r,i,l,c,u,d,p,m,h,f,y,v,b,g,C,_;ae(2,arguments);var B=String(t),E=Ut(),N=(s=(n=o==null?void 0:o.locale)!==null&&n!==void 0?n:E.locale)!==null&&s!==void 0?s:hn,D=Me((r=(i=(l=(c=o==null?void 0:o.firstWeekContainsDate)!==null&&c!==void 0?c:o==null||(u=o.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:E.firstWeekContainsDate)!==null&&i!==void 0?i:(p=E.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=Me((h=(f=(y=(v=o==null?void 0:o.weekStartsOn)!==null&&v!==void 0?v:o==null||(b=o.locale)===null||b===void 0||(g=b.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&y!==void 0?y:E.weekStartsOn)!==null&&f!==void 0?f:(C=E.locale)===null||C===void 0||(_=C.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&h!==void 0?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var F=re(a);if(!pn(F))throw new RangeError("Invalid time value");var Z=Dt(F),O=qa(F,Z),U={firstWeekContainsDate:D,weekStartsOn:j,locale:N,_originalDate:F},K=B.match(E0).map(function(W){var z=W[0];if(z==="p"||z==="P"){var S=D2[z];return S(W,N.formatLong)}return W}).join("").match($0).map(function(W){if(W==="''")return"'";var z=W[0];if(z==="'")return N0(W);var S=A2[z];if(S)return!(o!=null&&o.useAdditionalWeekYearTokens)&&R2(W)&&Po(W,t,String(a)),!(o!=null&&o.useAdditionalDayOfYearTokens)&&H2(W)&&Po(W,t,String(a)),S(O,W,N.localize,U);if(z.match(S0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return W}).join("");return K}function N0(a){var t=a.match(B0);return t?t[1].replace(V0,"'"):a}function M0(a,t,o){var s,n,r,i,l,c,u,d,p,m;ae(2,arguments);var h=re(a),f=re(t),y=Ut(),v=(s=(n=o==null?void 0:o.locale)!==null&&n!==void 0?n:y.locale)!==null&&s!==void 0?s:hn,b=Me((r=(i=(l=(c=o==null?void 0:o.weekStartsOn)!==null&&c!==void 0?c:o==null||(u=o.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:y.weekStartsOn)!==null&&i!==void 0?i:(p=y.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&r!==void 0?r:0);if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");if(!v.formatRelative)throw new RangeError("locale must contain formatRelative property");var g=_2(h,f);if(isNaN(g))throw new RangeError("Invalid time value");var C;g<-6?C="other":g<-1?C="lastWeek":g<0?C="yesterday":g<1?C="today":g<2?C="tomorrow":g<7?C="nextWeek":C="other";var _=qa(h,Dt(h)),B=qa(f,Dt(f)),E=v.formatRelative(C,_,B,{locale:v,weekStartsOn:b});return Cn(h,E,{locale:v,weekStartsOn:b})}function Lt(a,t){var o;ae(1,arguments);var s=Me((o=t==null?void 0:t.additionalDigits)!==null&&o!==void 0?o:2);if(s!==2&&s!==1&&s!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof a=="string"||Object.prototype.toString.call(a)==="[object String]"))return new Date(NaN);var n=I0(a),r;if(n.date){var i=D0(n.date,s);r=L0(i.restDateString,i.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var l=r.getTime(),c=0,u;if(n.time&&(c=P0(n.time),isNaN(c)))return new Date(NaN);if(n.timezone){if(u=H0(n.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(l+c+u)}var ta={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},T0=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,A0=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,O0=/^([+-])(\d{2})(?::?(\d{2}))?$/;function I0(a){var t={},o=a.split(ta.dateTimeDelimiter),s;if(o.length>2)return t;if(/:/.test(o[0])?s=o[0]:(t.date=o[0],s=o[1],ta.timeZoneDelimiter.test(t.date)&&(t.date=a.split(ta.timeZoneDelimiter)[0],s=a.substr(t.date.length,a.length))),s){var n=ta.timezone.exec(s);n?(t.time=s.replace(n[1],""),t.timezone=n[1]):t.time=s}return t}function D0(a,t){var o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),s=a.match(o);if(!s)return{year:NaN,restDateString:""};var n=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:r===null?n:r*100,restDateString:a.slice((s[1]||s[2]).length)}}function L0(a,t){if(t===null)return new Date(NaN);var o=a.match(T0);if(!o)return new Date(NaN);var s=!!o[4],n=Bt(o[1]),r=Bt(o[2])-1,i=Bt(o[3]),l=Bt(o[4]),c=Bt(o[5])-1;if(s)return z0(t,l,c)?R0(t,l,c):new Date(NaN);var u=new Date(0);return!U0(t,r,i)||!F0(t,n)?new Date(NaN):(u.setUTCFullYear(t,r,Math.max(n,i)),u)}function Bt(a){return a?parseInt(a):1}function P0(a){var t=a.match(A0);if(!t)return NaN;var o=za(t[1]),s=za(t[2]),n=za(t[3]);return Z0(o,s,n)?o*un+s*dn+n*1e3:NaN}function za(a){return a&&parseFloat(a.replace(",","."))||0}function H0(a){if(a==="Z")return 0;var t=a.match(O0);if(!t)return 0;var o=t[1]==="+"?-1:1,s=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return x0(s,n)?o*(s*un+n*dn):NaN}function R0(a,t,o){var s=new Date(0);s.setUTCFullYear(a,0,4);var n=s.getUTCDay()||7,r=(t-1)*7+o+1-n;return s.setUTCDate(s.getUTCDate()+r),s}var j0=[31,null,31,30,31,30,31,31,30,31,30,31];function gn(a){return a%400===0||a%4===0&&a%100!==0}function U0(a,t,o){return t>=0&&t<=11&&o>=1&&o<=(j0[t]||(gn(a)?29:28))}function F0(a,t){return t>=1&&t<=(gn(a)?366:365)}function z0(a,t,o){return t>=1&&t<=53&&o>=0&&o<=6}function Z0(a,t,o){return a===24?t===0&&o===0:o>=0&&o<60&&t>=0&&t<60&&a>=0&&a<25}function x0(a,t){return t>=0&&t<=59}var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ne={},_n={},Vt={},Ft={},yt={},Ca={};Object.defineProperty(Ca,"__esModule",{value:!0});Ca.lexoHelper=void 0;Ca.lexoHelper={arrayCopy:W0};function W0(a,t,o,s,n){let r=s;const i=t+n;for(let l=t;l<i;l++)o[r]=a[l],++r}var zt={};Object.defineProperty(zt,"__esModule",{value:!0});class q0{constructor(t=""){this.str=t}get length(){return this.str.length}set length(t){this.str=this.str.substring(0,t)}append(t){return this.str=this.str+t,this}remove(t,o){return this.str=this.str.substr(0,t)+this.str.substr(t+o),this}insert(t,o){return this.str=this.str.substr(0,t)+o+this.str.substr(t),this}toString(){return this.str}}zt.default=q0;Object.defineProperty(yt,"__esModule",{value:!0});yt.LexoInteger=void 0;const aa=Ca,Y0=zt;class Y{constructor(t,o,s){this.sys=t,this.sign=o,this.mag=s}static parse(t,o){let s=t,n=1;t.indexOf(o.getPositiveChar())===0?s=t.substring(1):t.indexOf(o.getNegativeChar())===0&&(s=t.substring(1),n=-1);const r=new Array(s.length);let i=r.length-1;for(let l=0;i>=0;++l)r[l]=o.toDigit(s.charAt(i)),--i;return Y.make(o,n,r)}static zero(t){return new Y(t,0,Y.ZERO_MAG)}static one(t){return Y.make(t,1,Y.ONE_MAG)}static make(t,o,s){let n;for(n=s.length;n>0&&s[n-1]===0;--n);if(n===0)return Y.zero(t);if(n===s.length)return new Y(t,o,s);const r=new Array(n).fill(0);return aa.lexoHelper.arrayCopy(s,0,r,0,n),new Y(t,o,r)}static add(t,o,s){const n=Math.max(o.length,s.length),r=new Array(n).fill(0);let i=0;for(let l=0;l<n;++l){const c=l<o.length?o[l]:0,u=l<s.length?s[l]:0;let d=c+u+i;for(i=0;d>=t.getBase();d-=t.getBase())++i;r[l]=d}return Y.extendWithCarry(r,i)}static extendWithCarry(t,o){if(o>0){const s=new Array(t.length+1).fill(0);return aa.lexoHelper.arrayCopy(t,0,s,0,t.length),s[s.length-1]=o,s}return t}static subtract(t,o,s){const n=Y.complement(t,s,o.length),r=Y.add(t,o,n);return r[r.length-1]=0,Y.add(t,r,Y.ONE_MAG)}static multiply(t,o,s){const n=new Array(o.length+s.length).fill(0);for(let r=0;r<o.length;++r)for(let i=0;i<s.length;++i){const l=r+i;for(n[l]+=o[r]*s[i];n[l]>=t.getBase();n[l]-=t.getBase())++n[l+1]}return n}static complement(t,o,s){if(s<=0)throw new Error("Expected at least 1 digit");const n=new Array(s).fill(t.getBase()-1);for(let r=0;r<o.length;++r)n[r]=t.getBase()-1-o[r];return n}static compare(t,o){if(t.length<o.length)return-1;if(t.length>o.length)return 1;for(let s=t.length-1;s>=0;--s){if(t[s]<o[s])return-1;if(t[s]>o[s])return 1}return 0}add(t){if(this.checkSystem(t),this.isZero())return t;if(t.isZero())return this;if(this.sign!==t.sign){let s;return this.sign===-1?(s=this.negate(),s.subtract(t).negate()):(s=t.negate(),this.subtract(s))}const o=Y.add(this.sys,this.mag,t.mag);return Y.make(this.sys,this.sign,o)}subtract(t){if(this.checkSystem(t),this.isZero())return t.negate();if(t.isZero())return this;if(this.sign!==t.sign){let s;return this.sign===-1?(s=this.negate(),s.add(t).negate()):(s=t.negate(),this.add(s))}const o=Y.compare(this.mag,t.mag);return o===0?Y.zero(this.sys):o<0?Y.make(this.sys,this.sign===-1?1:-1,Y.subtract(this.sys,t.mag,this.mag)):Y.make(this.sys,this.sign===-1?-1:1,Y.subtract(this.sys,this.mag,t.mag))}multiply(t){if(this.checkSystem(t),this.isZero())return this;if(t.isZero())return t;if(this.isOneish())return this.sign===t.sign?Y.make(this.sys,1,t.mag):Y.make(this.sys,-1,t.mag);if(t.isOneish())return this.sign===t.sign?Y.make(this.sys,1,this.mag):Y.make(this.sys,-1,this.mag);const o=Y.multiply(this.sys,this.mag,t.mag);return this.sign===t.sign?Y.make(this.sys,1,o):Y.make(this.sys,-1,o)}negate(){return this.isZero()?this:Y.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(t=1){if(t===0)return this;if(t<0)return this.shiftRight(Math.abs(t));const o=new Array(this.mag.length+t).fill(0);return aa.lexoHelper.arrayCopy(this.mag,0,o,t,this.mag.length),Y.make(this.sys,this.sign,o)}shiftRight(t=1){if(this.mag.length-t<=0)return Y.zero(this.sys);const o=new Array(this.mag.length-t).fill(0);return aa.lexoHelper.arrayCopy(this.mag,t,o,0,o.length),Y.make(this.sys,this.sign,o)}complement(){return this.complementDigits(this.mag.length)}complementDigits(t){return Y.make(this.sys,this.sign,Y.complement(this.sys,this.mag,t))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(t){return this.mag[t]}compareTo(t){if(this===t)return 0;if(!t)return 1;if(this.sign===-1){if(t.sign===-1){const o=Y.compare(this.mag,t.mag);return o===-1?1:o===1?-1:0}return-1}return this.sign===1?t.sign===1?Y.compare(this.mag,t.mag):1:t.sign===-1?1:t.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const t=new Y0.default,o=this.mag,s=o.length;for(let n=0;n<s;++n){const r=o[n];t.insert(0,this.sys.toChar(r))}return this.sign===-1&&t.insert(0,this.sys.getNegativeChar()),t.toString()}equals(t){return this===t?!0:t?this.sys.getBase()===t.sys.getBase()&&this.compareTo(t)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(t){if(this.sys.getBase()!==t.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}yt.LexoInteger=Y;Y.ZERO_MAG=[0];Y.ONE_MAG=[1];Y.NEGATIVE_SIGN=-1;Y.ZERO_SIGN=0;Y.POSITIVE_SIGN=1;Object.defineProperty(Ft,"__esModule",{value:!0});Ft.LexoDecimal=void 0;const St=yt,K0=zt;class me{constructor(t,o){this.mag=t,this.sig=o}static half(t){const o=t.getBase()/2|0;return me.make(St.LexoInteger.make(t,1,[o]),1)}static parse(t,o){const s=t.indexOf(o.getRadixPointChar());if(t.lastIndexOf(o.getRadixPointChar())!==s)throw new Error("More than one "+o.getRadixPointChar());if(s<0)return me.make(St.LexoInteger.parse(t,o),0);const n=t.substring(0,s)+t.substring(s+1);return me.make(St.LexoInteger.parse(n,o),t.length-1-s)}static from(t){return me.make(t,0)}static make(t,o){if(t.isZero())return new me(t,0);let s=0;for(let i=0;i<o&&t.getMag(i)===0;++i)++s;const n=t.shiftRight(s),r=o-s;return new me(n,r)}getSystem(){return this.mag.getSystem()}add(t){let o=this.mag,s=this.sig,n=t.mag,r;for(r=t.sig;s<r;++s)o=o.shiftLeft();for(;s>r;)n=n.shiftLeft(),++r;return me.make(o.add(n),s)}subtract(t){let o=this.mag,s=this.sig,n=t.mag,r;for(r=t.sig;s<r;++s)o=o.shiftLeft();for(;s>r;)n=n.shiftLeft(),++r;return me.make(o.subtract(n),s)}multiply(t){return me.make(this.mag.multiply(t.mag),this.sig+t.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const t=this.floor();return t.add(St.LexoInteger.one(t.getSystem()))}isExact(){if(this.sig===0)return!0;for(let t=0;t<this.sig;++t)if(this.mag.getMag(t)!==0)return!1;return!0}getScale(){return this.sig}setScale(t,o=!1){if(t>=this.sig)return this;t<0&&(t=0);const s=this.sig-t;let n=this.mag.shiftRight(s);return o&&(n=n.add(St.LexoInteger.one(n.getSystem()))),me.make(n,t)}compareTo(t){if(this===t)return 0;if(!t)return 1;let o=this.mag,s=t.mag;return this.sig>t.sig?s=s.shiftLeft(this.sig-t.sig):this.sig<t.sig&&(o=o.shiftLeft(t.sig-this.sig)),o.compareTo(s)}format(){const t=this.mag.format();if(this.sig===0)return t;const o=new K0.default(t),s=o[0],n=s===this.mag.getSystem().getPositiveChar()||s===this.mag.getSystem().getNegativeChar();for(n&&o.remove(0,1);o.length<this.sig+1;)o.insert(0,this.mag.getSystem().toChar(0));return o.insert(o.length-this.sig,this.mag.getSystem().getRadixPointChar()),o.length-this.sig===0&&o.insert(0,this.mag.getSystem().toChar(0)),n&&o.insert(0,s),o.toString()}equals(t){return this===t?!0:t?this.mag.equals(t.mag)&&this.sig===t.sig:!1}toString(){return this.format()}}Ft.LexoDecimal=me;var oa={},Ho;function yn(){if(Ho)return oa;Ho=1,Object.defineProperty(oa,"__esModule",{value:!0});const a=yt,t=kn();class o{constructor(n){this.value=a.LexoInteger.parse(n,t.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new o("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new o("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new o("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[o.BUCKET_0,o.BUCKET_1,o.BUCKET_2]),this._VALUES}static max(){return o.VALUES[o.VALUES.length-1]}static from(n){const r=a.LexoInteger.parse(n,t.LexoRank.NUMERAL_SYSTEM),i=o.VALUES,l=i.length;for(let c=0;c<l;++c){const u=i[c];if(u.value.equals(r))return u}throw new Error("Unknown bucket: "+n)}static resolve(n){const r=o.VALUES,i=r.length;for(let l=0;l<i;++l){const c=r[l];if(c.equals(o.from(n.toString())))return c}throw new Error("No bucket found with id "+n)}format(){return this.value.format()}next(){return this.equals(o.BUCKET_0)?o.BUCKET_1:this.equals(o.BUCKET_1)?o.BUCKET_2:this.equals(o.BUCKET_2)?o.BUCKET_0:o.BUCKET_2}prev(){return this.equals(o.BUCKET_0)?o.BUCKET_2:this.equals(o.BUCKET_1)?o.BUCKET_0:this.equals(o.BUCKET_2)?o.BUCKET_1:o.BUCKET_0}equals(n){return this===n?!0:n?this.value.equals(n.value):!1}}return oa.default=o,oa}var eo={},bn={};Object.defineProperty(bn,"__esModule",{value:!0});var ga={};Object.defineProperty(ga,"__esModule",{value:!0});ga.LexoNumeralSystem10=void 0;class G0{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;throw new Error("Not valid digit: "+t)}toChar(t){return String.fromCharCode(t+48)}}ga.LexoNumeralSystem10=G0;var _a={};Object.defineProperty(_a,"__esModule",{value:!0});_a.LexoNumeralSystem36=void 0;class X0{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;if(t>="a"&&t<="z")return t.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+t)}toChar(t){return this.DIGITS[t]}}_a.LexoNumeralSystem36=X0;var ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.LexoNumeralSystem64=void 0;class Q0{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;if(t>="A"&&t<="Z")return t.charCodeAt(0)-65+10;if(t==="^")return 36;if(t==="_")return 37;if(t>="a"&&t<="z")return t.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+t)}toChar(t){return this.DIGITS[t]}}ya.LexoNumeralSystem64=Q0;(function(a){var t=ve&&ve.__createBinding||(Object.create?function(s,n,r,i){i===void 0&&(i=r);var l=Object.getOwnPropertyDescriptor(n,r);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,i,l)}:function(s,n,r,i){i===void 0&&(i=r),s[i]=n[r]}),o=ve&&ve.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,s,r)};Object.defineProperty(a,"__esModule",{value:!0}),o(bn,a),o(ga,a),o(_a,a),o(ya,a)})(eo);var Ro;function kn(){if(Ro)return Vt;Ro=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.LexoRank=void 0;const a=Ft,t=yn(),o=zt,s=eo;class n{constructor(i,l){this.value=i.format()+"|"+n.formatDecimal(l),this.bucket=i,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new s.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=a.LexoDecimal.parse("0",n.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=a.LexoDecimal.parse("1",n.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=a.LexoDecimal.parse("8",n.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=n.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=a.LexoDecimal.parse("1000000",n.NUMERAL_SYSTEM).subtract(n.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=n.between(n.MIN_DECIMAL,n.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=a.LexoDecimal.parse("100000",n.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=a.LexoDecimal.parse(n.NUMERAL_SYSTEM.toChar(n.NUMERAL_SYSTEM.getBase()-2)+"00000",n.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return n.from(t.default.BUCKET_0,n.MIN_DECIMAL)}static middle(){const i=n.min();return i.between(n.max(i.bucket))}static max(i=t.default.BUCKET_0){return n.from(i,n.MAX_DECIMAL)}static initial(i){return i===t.default.BUCKET_0?n.from(i,n.INITIAL_MIN_DECIMAL):n.from(i,n.INITIAL_MAX_DECIMAL)}static between(i,l){if(i.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=i,u=l,d;if(i.getScale()<l.getScale()){if(d=l.setScale(i.getScale(),!1),i.compareTo(d)>=0)return n.mid(i,l);u=d}if(i.getScale()>u.getScale()){if(d=i.setScale(u.getScale(),!0),d.compareTo(u)>=0)return n.mid(i,l);c=d}let p;for(let f=c.getScale();f>0;u=p){const y=f-1,v=c.setScale(y,!0);if(p=u.setScale(y,!1),v.compareTo(p)===0)return n.checkMid(i,l,v);if(v.compareTo(p)>0)break;f=y,c=v}let m=n.middleInternal(i,l,c,u),h;for(let f=m.getScale();f>0;f=h){h=f-1;const y=m.setScale(h);if(i.compareTo(y)>=0||y.compareTo(l)>=0)break;m=y}return m}static parse(i){const l=i.split("|"),c=t.default.from(l[0]),u=a.LexoDecimal.parse(l[1],n.NUMERAL_SYSTEM);return new n(c,u)}static from(i,l){if(l.getSystem().getBase()!==n.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new n(i,l)}static middleInternal(i,l,c,u){const d=n.mid(c,u);return n.checkMid(i,l,d)}static checkMid(i,l,c){return i.compareTo(c)>=0||c.compareTo(l)>=0?n.mid(i,l):c}static mid(i,l){const u=i.add(l).multiply(a.LexoDecimal.half(i.getSystem())),d=i.getScale()>l.getScale()?i.getScale():l.getScale();if(u.getScale()>d){const p=u.setScale(d,!1);if(p.compareTo(i)>0)return p;const m=u.setScale(d,!0);if(m.compareTo(l)<0)return m}return u}static formatDecimal(i){const l=i.format(),c=new o.default(l);let u=l.indexOf(n.NUMERAL_SYSTEM.getRadixPointChar());const d=n.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(n.NUMERAL_SYSTEM.getRadixPointChar()));u<6;)c.insert(0,d),++u;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new n(this.bucket,n.INITIAL_MAX_DECIMAL);const i=this.decimal.floor();let c=a.LexoDecimal.from(i).subtract(n.EIGHT_DECIMAL);return c.compareTo(n.MIN_DECIMAL)<=0&&(c=n.between(n.MIN_DECIMAL,this.decimal)),new n(this.bucket,c)}genNext(){if(this.isMin())return new n(this.bucket,n.INITIAL_MIN_DECIMAL);const i=this.decimal.ceil();let c=a.LexoDecimal.from(i).add(n.EIGHT_DECIMAL);return c.compareTo(n.MAX_DECIMAL)>=0&&(c=n.between(this.decimal,n.MAX_DECIMAL)),new n(this.bucket,c)}between(i){if(!this.bucket.equals(i.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(i.decimal);if(l>0)return new n(this.bucket,n.between(i.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+i+" this.decimal="+this.decimal+" other.decimal="+i.decimal);return new n(this.bucket,n.between(this.decimal,i.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return n.from(this.bucket.next(),this.decimal)}inPrevBucket(){return n.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(n.MIN_DECIMAL)}isMax(){return this.decimal.equals(n.MAX_DECIMAL)}format(){return this.value}equals(i){return this===i?!0:i?this.value===i.value:!1}toString(){return this.value}compareTo(i){return this===i?0:i?this.value.localeCompare(i.value):1}}return Vt.LexoRank=n,Vt}(function(a){var t=ve&&ve.__createBinding||(Object.create?function(s,n,r,i){i===void 0&&(i=r);var l=Object.getOwnPropertyDescriptor(n,r);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,i,l)}:function(s,n,r,i){i===void 0&&(i=r),s[i]=n[r]}),o=ve&&ve.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,s,r)};Object.defineProperty(a,"__esModule",{value:!0}),o(kn(),a),o(yn(),a),o(Ft,a),o(yt,a)})(_n);(function(a){var t=ve&&ve.__createBinding||(Object.create?function(s,n,r,i){i===void 0&&(i=r);var l=Object.getOwnPropertyDescriptor(n,r);(!l||("get"in l?!n.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,i,l)}:function(s,n,r,i){i===void 0&&(i=r),s[i]=n[r]}),o=ve&&ve.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,s,r)};Object.defineProperty(a,"__esModule",{value:!0}),o(_n,a),o(eo,a)})(ne);const Mt=60,J0=8,jo=Mt*J0;function ba(a,t){if(!a)return"0m";if(t==="days"){const s=Math.floor(a/jo),n=Math.floor(a%jo/Mt);if(s>0&&n>0)return`${s}d ${n}h`;if(s>0)return`${s}d`;{const r=a%Mt;return r>0?`${n}h ${r}m`:`${n}h`}}else{const s=Math.floor(a/Mt),n=a%Mt;return s>0&&n>0?`${s}h ${n}m`:s>0?`${s}h`:`${n}m`}}function wn(a){return(a==null?void 0:a.reduce((t,o)=>{var s;return t+(((s=o.activities)==null?void 0:s.length)??0)},0))??0}function ep(a){return(a==null?void 0:a.reduce((t,o)=>{var s;return t+(((s=o.milestones)==null?void 0:s.length)??0)},0))??0}function tp(a){return(a==null?void 0:a.reduce((t,o)=>{var n;const s=(n=o.milestones)!=null&&n.length?wn(o.milestones):0;return t+s},0))??0}function ap(a){return a.split(" ").slice(0,2).map(t=>t.charAt(0).toLocaleLowerCase()).join("")}function Zt(a,t){if(a.moved)return mt(t,a.moved.newIndex)}function mt(a,t){if(t===0)if(a.length>1){const o=a[t+1];return ne.LexoRank.parse(o.rank).genPrev().format()}else return ne.LexoRank.middle().format();else if(t===a.length-1){const o=a[t-1];return ne.LexoRank.parse(o.rank).genNext().format()}else{const o=a[t-1],s=a[t+1];return ne.LexoRank.parse(s.rank).between(ne.LexoRank.parse(o.rank)).format()}}function ka(a,t="dd/MM/yyyy"){if(!a)return"";const o=Lt(a);return pn(o)?Cn(o,t):""}function to(a,t){return a.status.id===t.id}function op(a,t){return a.activities.length===0?!1:!a.activities.some(o=>!to(o,t))}function np(a,t){return{...a,status:op(a,t)?It.done:It.todo}}const $n=a=>{const{firstName:t,lastName:o}=a||{};return`${t??""}${t?" ":""}${o??""}`};function sp(a,t){const o=a.replace("#",""),s=parseInt(o.slice(0,2),16),n=parseInt(o.slice(2,4),16),r=parseInt(o.slice(4,6),16);return`rgba(${s}, ${n}, ${r}, ${t})`}function ip(a,t=.15){var o;if(a.startsWith("#"))return sp(a,t);if(a.startsWith("rgba")){const s=(o=a.match(/rgba?\(([^)]+)\)/))==null?void 0:o[1].split(",").map(n=>n.trim());if(s&&s.length>=3){const[n,r,i]=s;return`rgba(${n}, ${r}, ${i}, ${t})`}}return a}function En(a,t,o){const s=e.ref(""),n=e.ref(!1),r=e.ref({top:0,left:0}),i=e.computed(()=>o.value.filter(m=>m.firstName||m.lastName).map(m=>{const f=[m.firstName,m.lastName].filter(Boolean).join("_").replace(/\s+/g,"_");return{id:m.id,name:f}})),l=e.computed(()=>i.value.filter(m=>m.name.toLowerCase().includes(s.value.toLowerCase())));return{showMentionList:n,mentionListPosition:r,filteredUsers:l,mentionQuery:s,handleInput:m=>{const h=m.target,f=h.selectionStart,v=h.value.slice(0,f).match(/@(\w*)$/);v?(s.value=v[1],n.value=!0,e.nextTick(()=>{const{top:b,left:g}=rp(h,f);r.value={top:b,left:g}})):n.value=!1},handleKeydown:m=>{m.key==="Escape"&&n.value&&(n.value=!1)},selectUserMention:m=>{const h=a.value;if(!h)return;const f=h.selectionStart,y=t.value,v=y.slice(0,f).replace(/@(\w*)$/,`@${m} `),b=y.slice(f);t.value=v+b,n.value=!1,e.nextTick(()=>{h.focus(),h.setSelectionRange(v.length,v.length)})},getMentionedUserIds:m=>{const h=Array.from(m.matchAll(/@([\p{L}\p{M}0-9-_]+)/gu)).map(f=>f[1]);return i.value.filter(f=>h.includes(f.name)).map(f=>f.id)}}}function rp(a,t){const o=document.createElement("div"),s=document.createElement("span"),n=window.getComputedStyle(a),r=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","direction","letterSpacing","wordSpacing"];o.style.position="absolute",o.style.visibility="hidden",o.style.whiteSpace="pre-wrap",o.style.overflow="hidden",r.forEach(h=>{o.style[h]=n.getPropertyValue(h)}),o.style.width=n.getPropertyValue("width"),o.scrollTop=a.scrollTop,o.scrollLeft=a.scrollLeft;const i=a.value.substring(0,t),l=a.value.substring(t)||".";o.textContent=i,s.textContent=l[0],o.appendChild(s),document.body.appendChild(o);const c=s.getBoundingClientRect(),u=o.getBoundingClientRect(),d=a.getBoundingClientRect(),p=c.top-u.top+d.top-a.scrollTop,m=c.left-u.left+d.left-a.scrollLeft;return document.body.removeChild(o),{top:p+40,left:m}}const lp=["title"],cp={key:0,className:"ao-avatar__initials"},dp=["src"],Oe=e.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:ha.MD},color:{default:"primary"}},emits:["close"],setup(a,{emit:t}){const o=a,s=e.computed(()=>[`ao-avatar--${o.color}`,...o.avatarUrl?["ao-avatar-img",`ao-avatar-img--${o.size}`]:["ao-avatar",`ao-avatar--${o.size}`]]),n=ap(o.userName),r=i=>{t("close",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",{role:"img",class:e.normalizeClass(s.value),title:i.userName},[i.avatarUrl?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",cp,e.toDisplayString(e.unref(n)),1)),i.avatarUrl?(e.openBlock(),e.createElementBlock("img",{key:1,className:"ao-avatar__image",src:i.avatarUrl},null,8,dp)):e.createCommentVNode("",!0),i.isClosable?(e.openBlock(),e.createBlock(G,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:i.color,corners:"round",onClick:e.withModifiers(r,["stop"])},null,8,["color","onClick"])):e.createCommentVNode("",!0)],10,lp))}});const up={class:"ao-card-template__subitems"},pp={class:"ao-card-template__subitem"},mp={class:"ao-card-template__subitem-number"},fp={class:"ao-card-template__subitem"},vp={class:"ao-card-template__subitem"},hp={class:"ao-card-template__body"},Cp={class:"ao-card-template__col ao-card-template__col--phases"},gp={class:"ao-card-template__col-title"},_p={class:"ao-card-template__col-label"},yp={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},bp={class:"ao-card-template__footer"},kp={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},wp={class:"ao-card-template__col-title"},$p={class:"ao-card-template__col-label"},Ep={class:"ao-card-template__col-body"},Bp={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},Vp={class:"ao-card-template__col-title"},Sp={class:"ao-card-template__col-label"},Np={class:"ao-card-template__col-body"},Mp={class:"ao-card-template-item__secondary"},Za=5,Tp=e.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(a,{emit:t}){const o=a,s=l=>{t("updateTitle",l)},n=(l,c)=>{t("deleteItem",l,c)},r=e.computed(()=>{var l;return((l=o.phases)==null?void 0:l.slice(0,Za))??[]}),i=e.computed(()=>o.phases&&o.phases.length>Za?o.phases.length-Za:0);return(l,c)=>(e.openBlock(),e.createBlock(on,{id:l.id,title:l.title,"is-draggable":!0,"onUpdate:title":s},e.createSlots({subtitle:e.withCtx(()=>[e.createElementVNode("ul",up,[e.createElementVNode("li",pp,[e.createVNode(J,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",mp,e.toDisplayString(l.milestones),1)]),e.createElementVNode("li",fp,[e.createVNode(J,{name:"TaskOutlineRounded",size:"sm"}),e.createElementVNode("span",vp,e.toDisplayString(l.activities),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",hp,[e.createElementVNode("div",Cp,[e.createElementVNode("div",gp,[e.createVNode(J,{name:"WaterfallChartRounded",size:"sm"}),e.createElementVNode("span",_p,e.toDisplayString(l.$t("template.phases.title")),1)]),l.phases?(e.openBlock(),e.createElementBlock("ul",yp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,u=>(e.openBlock(),e.createBlock(Ot,{key:u.id,label:u.name||u.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),i.value>0?(e.openBlock(),e.createBlock(Ot,{key:0,label:`+${i.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]),secondary:e.withCtx(()=>[e.createElementVNode("div",Mp,[e.createVNode(G,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:c[0]||(c[0]=e.withModifiers(u=>n(l.id,l.title),["stop"]))})])]),_:2},[l.updatedBy||l.updatedAt?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",bp,[l.updatedAt?(e.openBlock(),e.createElementBlock("div",kp,[e.createElementVNode("div",wp,[e.createElementVNode("span",$p,e.toDisplayString(l.$t("template.updatedAt.label")),1)]),e.createElementVNode("div",Ep,[e.createElementVNode("span",null,e.toDisplayString(l.updatedAt),1)])])):e.createCommentVNode("",!0),l.updatedBy?(e.openBlock(),e.createElementBlock("div",Bp,[e.createElementVNode("div",Vp,[e.createElementVNode("span",Sp,e.toDisplayString(l.$t("template.updatedBy.label")),1)]),e.createElementVNode("div",Np,[e.createVNode(Oe,{"user-name":l.updatedBy},null,8,["user-name"])])])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const Ap={class:"ao-page-header"},Op={class:"ao-page-header-main"},Ip={key:0,class:"ao-page-header-secondary"},xt=e.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("header",Ap,[e.createElementVNode("div",Op,[t.canGoBack?(e.openBlock(),e.createBlock(G,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:o[0]||(o[0]=s=>t.$emit("goBack"))})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"primary")]),t.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Ip,[e.renderSlot(t.$slots,"secondary")])):e.createCommentVNode("",!0)]))}});const Dp=["type"],Lp={key:0,class:"ao-button-card__label"},qe=e.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Ja.BLACK},size:{default:()=>ha.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>tn.ROUNDED}},setup(a){const t=a,o=e.computed(()=>t.size),s=e.computed(()=>t.isLoading?"Loading":t.iconName);return(n,r)=>(e.openBlock(),e.createElementBlock("button",{type:n.type,class:e.normalizeClass(["ao-button-card",`ao-button-card--${n.color}`,`ao-button-card--${n.corners}`,n.$attrs.disabled?"ao-button-card--is-disabled":""])},[e.renderSlot(n.$slots,"default",{},()=>[n.label?(e.openBlock(),e.createElementBlock("span",Lp,e.toDisplayString(n.label),1)):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createBlock(J,{key:0,name:s.value,class:"ao-button-card__icon",size:o.value},null,8,["name","size"])):e.createCommentVNode("",!0)],10,Dp))}});const Pp={class:"ao-card-template-item__footer"},Hp={key:0,class:"ao-card-template-item__subitem"},Rp={class:"ao-card-template-item__subitem-number"},jp={class:"ao-card-template-item__secondary"},ao=e.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(a,{emit:t}){const o=i=>{t("update:title",i)},s=["milestones","activities","rules","tasks"],n={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},r=()=>{t("remove")};return(i,l)=>(e.openBlock(),e.createBlock(on,{"onUpdate:title":o},{footer:e.withCtx(()=>[e.createElementVNode("ul",Pp,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,c=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.$props[c]?(e.openBlock(),e.createElementBlock("li",Hp,[e.createVNode(J,{name:n[c],size:"sm"},null,8,["name"]),e.createElementVNode("span",Rp,e.toDisplayString(i.$props[c]),1)])):e.createCommentVNode("",!0)],64))),64))])]),secondary:e.withCtx(()=>[e.createElementVNode("div",jp,[e.createVNode(G,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:e.withModifiers(r,["stop"])},null,8,["onClick"])])]),_:1}))}});const Up=e.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(a){const t=a,o=e.computed(()=>{var n;return(n=t.milestones)==null?void 0:n.length}),s=e.computed(()=>t.milestones?wn(t.milestones):0);return(n,r)=>(e.openBlock(),e.createBlock(ao,e.mergeProps({id:n.id,title:n.name,activities:s.value,milestones:o.value},n.$attrs),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),Fp=e.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(a){const t=a,o=e.computed(()=>{var s;return((s=t.activities)==null?void 0:s.length)||0});return(s,n)=>(e.openBlock(),e.createBlock(ao,{activities:o.value},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["activities"]))}}),zp={class:"ao-list__footer"},Zp=e.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(a,{emit:t}){const o=a,s=()=>{t("addMilestone",{phaseId:o.phase.id})},n=l=>{t("removeMilestone",{phaseId:o.phase.id,id:l})},r=l=>{t("updateMilestone",l)},i=l=>{if(l.moved){const c=Zt(l,o.phase.milestones);t("updateMilestone",{id:l.moved.element.id,rank:c})}};return(l,c)=>l.phase?(e.openBlock(),e.createBlock(e.unref(We),{key:0,"model-value":l.phase.milestones,class:"ao-templates__list",title:l.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:i},{header:e.withCtx(()=>[e.createVNode(se,{title:"Milestones",level:3,class:"ao-list__title"})]),item:e.withCtx(({element:u})=>[(e.openBlock(),e.createBlock(Fp,{id:u.id,key:u.id,title:u.name,activities:u.activities,"is-active":l.milestoneId===u.id,"is-draggable":!0,"onUpdate:title":d=>r({id:u.id,name:d}),onClick:d=>l.$router.push({params:{milestoneId:u.id}}),onRemove:()=>n(u.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:e.withCtx(()=>[e.createElementVNode("div",zp,[e.createVNode(qe,{"icon-name":"AddBoxOutlineRounded",label:l.$t("template.milestones.add"),onClick:s},null,8,["label"])])]),_:1},8,["model-value","title"])):e.createCommentVNode("",!0)}}),xp=e.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(a){const t=a,o=e.computed(()=>{var s;return((s=t.tasks)==null?void 0:s.length)||0});return(s,n)=>(e.openBlock(),e.createBlock(ao,{tasks:o.value},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["tasks"]))}}),Wp={class:"ao-list__footer"},qp=e.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(a,{emit:t}){const o=a,s=()=>{t("addActivity",{milestoneId:o.milestone.id})},n=l=>{t("updateActivity",{...l})},r=l=>{t("removeActivity",{id:l})},i=l=>{if(l.moved){const c=Zt(l,o.milestone.activities);t("updateActivity",{id:l.moved.element.id,rank:c})}};return(l,c)=>l.milestone?(e.openBlock(),e.createBlock(e.unref(We),{key:0,"model-value":l.milestone.activities,title:l.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:i},{header:e.withCtx(()=>[e.createVNode(se,{title:"Activities",level:3,class:"ao-list__title"})]),item:e.withCtx(({element:u})=>[(e.openBlock(),e.createBlock(xp,{id:u.id,key:u.id,title:u.name,tasks:u.tasks,"is-active":l.activityId===u.id,"is-draggable":!0,"onUpdate:title":d=>n({id:u.id,name:d}),onClick:d=>l.$router.push({params:{activityId:u.id}}),onRemove:()=>r(u.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:e.withCtx(()=>[e.createElementVNode("div",Wp,[e.createVNode(qe,{"icon-name":"AddBoxOutlineRounded",label:l.$t("template.activities.add"),onClick:s},null,8,["label"])])]),_:1},8,["model-value","title"])):e.createCommentVNode("",!0)}}),Yp={class:"ao-modal"},Kp={key:0,class:"ao-modal__header"},Gp={class:"ao-modal__header-meta"},Xp={class:"ao-modal__title-group"},Qp={class:"ao-modal__body"},Jp={key:1,class:"ao-modal__footer"},wa=e.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[e.createElementVNode("div",{class:"ao-modal__backdrop",onClick:o[0]||(o[0]=s=>t.$emit("close"))}),e.createElementVNode("div",Yp,[t.$slots.header?(e.openBlock(),e.createElementBlock("div",Kp,[e.createElementVNode("div",Gp,[e.createVNode(G,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:o[1]||(o[1]=s=>t.$emit("close"))})]),e.createElementVNode("header",Xp,[e.renderSlot(t.$slots,"header")])])):e.createCommentVNode("",!0),e.createElementVNode("div",Qp,[e.renderSlot(t.$slots,"default")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Jp,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])],2))}});const Pt=Math.min,fe=Math.max,ua=Math.round,na=Math.floor,ze=a=>({x:a,y:a}),e3={left:"right",right:"left",bottom:"top",top:"bottom"},t3={start:"end",end:"start"};function oo(a,t){return typeof a=="function"?a(t):a}function ft(a){return a.split("-")[0]}function $a(a){return a.split("-")[1]}function a3(a){return a==="x"?"y":"x"}function Bn(a){return a==="y"?"height":"width"}function no(a){return["top","bottom"].includes(ft(a))?"y":"x"}function Vn(a){return a3(no(a))}function o3(a,t,o){o===void 0&&(o=!1);const s=$a(a),n=Vn(a),r=Bn(n);let i=n==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=pa(i)),[i,pa(i)]}function n3(a){const t=pa(a);return[Ya(a),t,Ya(t)]}function Ya(a){return a.replace(/start|end/g,t=>t3[t])}function s3(a,t,o){const s=["left","right"],n=["right","left"],r=["top","bottom"],i=["bottom","top"];switch(a){case"top":case"bottom":return o?t?n:s:t?s:n;case"left":case"right":return t?r:i;default:return[]}}function i3(a,t,o,s){const n=$a(a);let r=s3(ft(a),o==="start",s);return n&&(r=r.map(i=>i+"-"+n),t&&(r=r.concat(r.map(Ya)))),r}function pa(a){return a.replace(/left|right|bottom|top/g,t=>e3[t])}function r3(a){return{top:0,right:0,bottom:0,left:0,...a}}function l3(a){return typeof a!="number"?r3(a):{top:a,right:a,bottom:a,left:a}}function ma(a){return{...a,top:a.y,left:a.x,right:a.x+a.width,bottom:a.y+a.height}}function Uo(a,t,o){let{reference:s,floating:n}=a;const r=no(t),i=Vn(t),l=Bn(i),c=ft(t),u=r==="y",d=s.x+s.width/2-n.width/2,p=s.y+s.height/2-n.height/2,m=s[l]/2-n[l]/2;let h;switch(c){case"top":h={x:d,y:s.y-n.height};break;case"bottom":h={x:d,y:s.y+s.height};break;case"right":h={x:s.x+s.width,y:p};break;case"left":h={x:s.x-n.width,y:p};break;default:h={x:s.x,y:s.y}}switch($a(t)){case"start":h[i]-=m*(o&&u?-1:1);break;case"end":h[i]+=m*(o&&u?-1:1);break}return h}const c3=async(a,t,o)=>{const{placement:s="bottom",strategy:n="absolute",middleware:r=[],platform:i}=o,l=r.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:a,floating:t,strategy:n}),{x:d,y:p}=Uo(u,s,c),m=s,h={},f=0;for(let y=0;y<l.length;y++){const{name:v,fn:b}=l[y],{x:g,y:C,data:_,reset:B}=await b({x:d,y:p,initialPlacement:s,placement:m,strategy:n,middlewareData:h,rects:u,platform:i,elements:{reference:a,floating:t}});if(d=g??d,p=C??p,h={...h,[v]:{...h[v],..._}},B&&f<=50){f++,typeof B=="object"&&(B.placement&&(m=B.placement),B.rects&&(u=B.rects===!0?await i.getElementRects({reference:a,floating:t,strategy:n}):B.rects),{x:d,y:p}=Uo(u,m,c)),y=-1;continue}}return{x:d,y:p,placement:m,strategy:n,middlewareData:h}};async function Sn(a,t){var o;t===void 0&&(t={});const{x:s,y:n,platform:r,rects:i,elements:l,strategy:c}=a,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=oo(t,a),f=l3(h),v=l[m?p==="floating"?"reference":"floating":p],b=ma(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(v)))==null||o?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),g=p==="floating"?{...i.floating,x:s,y:n}:i.reference,C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),_=await(r.isElement==null?void 0:r.isElement(C))?await(r.getScale==null?void 0:r.getScale(C))||{x:1,y:1}:{x:1,y:1},B=ma(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:C,strategy:c}):g);return{top:(b.top-B.top+f.top)/_.y,bottom:(B.bottom-b.bottom+f.bottom)/_.y,left:(b.left-B.left+f.left)/_.x,right:(B.right-b.right+f.right)/_.x}}const d3=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(t){var o,s;const{placement:n,middlewareData:r,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:y=!0,...v}=oo(a,t);if((o=r.arrow)!=null&&o.alignmentOffset)return{};const b=ft(n),g=ft(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),_=m||(g||!y?[pa(l)]:n3(l));!m&&f!=="none"&&_.push(...i3(l,y,f,C));const B=[l,..._],E=await Sn(t,v),N=[];let D=((s=r.flip)==null?void 0:s.overflows)||[];if(d&&N.push(E[b]),p){const O=o3(n,i,C);N.push(E[O[0]],E[O[1]])}if(D=[...D,{placement:n,overflows:N}],!N.every(O=>O<=0)){var j,F;const O=(((j=r.flip)==null?void 0:j.index)||0)+1,U=B[O];if(U)return{data:{index:O,overflows:D},reset:{placement:U}};let K=(F=D.filter(W=>W.overflows[0]<=0).sort((W,z)=>W.overflows[1]-z.overflows[1])[0])==null?void 0:F.placement;if(!K)switch(h){case"bestFit":{var Z;const W=(Z=D.map(z=>[z.placement,z.overflows.filter(S=>S>0).reduce((S,$)=>S+$,0)]).sort((z,S)=>z[1]-S[1])[0])==null?void 0:Z[0];W&&(K=W);break}case"initialPlacement":K=l;break}if(n!==K)return{reset:{placement:K}}}return{}}}},u3=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(t){const{placement:o,rects:s,platform:n,elements:r}=t,{apply:i=()=>{},...l}=oo(a,t),c=await Sn(t,l),u=ft(o),d=$a(o),p=no(o)==="y",{width:m,height:h}=s.floating;let f,y;u==="top"||u==="bottom"?(f=u,y=d===(await(n.isRTL==null?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(y=u,f=d==="end"?"top":"bottom");const v=h-c[f],b=m-c[y],g=!t.middlewareData.shift;let C=v,_=b;if(p){const E=m-c.left-c.right;_=d||g?Pt(b,E):E}else{const E=h-c.top-c.bottom;C=d||g?Pt(v,E):E}if(g&&!d){const E=fe(c.left,0),N=fe(c.right,0),D=fe(c.top,0),j=fe(c.bottom,0);p?_=m-2*(E!==0||N!==0?E+N:fe(c.left,c.right)):C=h-2*(D!==0||j!==0?D+j:fe(c.top,c.bottom))}await i({...t,availableWidth:_,availableHeight:C});const B=await n.getDimensions(r.floating);return m!==B.width||h!==B.height?{reset:{rects:!0}}:{}}}};function Ze(a){return Nn(a)?(a.nodeName||"").toLowerCase():"#document"}function ce(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(a){var t;return(t=(Nn(a)?a.ownerDocument:a.document)||window.document)==null?void 0:t.documentElement}function Nn(a){return a instanceof Node||a instanceof ce(a).Node}function Te(a){return a instanceof Element||a instanceof ce(a).Element}function ke(a){return a instanceof HTMLElement||a instanceof ce(a).HTMLElement}function Fo(a){return typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ce(a).ShadowRoot}function Wt(a){const{overflow:t,overflowX:o,overflowY:s,display:n}=Ce(a);return/auto|scroll|overlay|hidden|clip/.test(t+s+o)&&!["inline","contents"].includes(n)}function p3(a){return["table","td","th"].includes(Ze(a))}function so(a){const t=io(),o=Ce(a);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(o.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(o.contain||"").includes(s))}function m3(a){let t=vt(a);for(;ke(t)&&!Ea(t);){if(so(t))return t;t=vt(t)}return null}function io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ea(a){return["html","body","#document"].includes(Ze(a))}function Ce(a){return ce(a).getComputedStyle(a)}function Ba(a){return Te(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function vt(a){if(Ze(a)==="html")return a;const t=a.assignedSlot||a.parentNode||Fo(a)&&a.host||Ie(a);return Fo(t)?t.host:t}function Mn(a){const t=vt(a);return Ea(t)?a.ownerDocument?a.ownerDocument.body:a.body:ke(t)&&Wt(t)?t:Mn(t)}function Ht(a,t,o){var s;t===void 0&&(t=[]),o===void 0&&(o=!0);const n=Mn(a),r=n===((s=a.ownerDocument)==null?void 0:s.body),i=ce(n);return r?t.concat(i,i.visualViewport||[],Wt(n)?n:[],i.frameElement&&o?Ht(i.frameElement):[]):t.concat(n,Ht(n))}function Tn(a){const t=Ce(a);let o=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const n=ke(a),r=n?a.offsetWidth:o,i=n?a.offsetHeight:s,l=ua(o)!==r||ua(s)!==i;return l&&(o=r,s=i),{width:o,height:s,$:l}}function ro(a){return Te(a)?a:a.contextElement}function ut(a){const t=ro(a);if(!ke(t))return ze(1);const o=t.getBoundingClientRect(),{width:s,height:n,$:r}=Tn(t);let i=(r?ua(o.width):o.width)/s,l=(r?ua(o.height):o.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const f3=ze(0);function An(a){const t=ce(a);return!io()||!t.visualViewport?f3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function v3(a,t,o){return t===void 0&&(t=!1),!o||t&&o!==ce(a)?!1:t}function st(a,t,o,s){t===void 0&&(t=!1),o===void 0&&(o=!1);const n=a.getBoundingClientRect(),r=ro(a);let i=ze(1);t&&(s?Te(s)&&(i=ut(s)):i=ut(a));const l=v3(r,o,s)?An(r):ze(0);let c=(n.left+l.x)/i.x,u=(n.top+l.y)/i.y,d=n.width/i.x,p=n.height/i.y;if(r){const m=ce(r),h=s&&Te(s)?ce(s):s;let f=m.frameElement;for(;f&&s&&h!==m;){const y=ut(f),v=f.getBoundingClientRect(),b=Ce(f),g=v.left+(f.clientLeft+parseFloat(b.paddingLeft))*y.x,C=v.top+(f.clientTop+parseFloat(b.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,p*=y.y,c+=g,u+=C,f=ce(f).frameElement}}return ma({width:d,height:p,x:c,y:u})}function h3(a){let{rect:t,offsetParent:o,strategy:s}=a;const n=ke(o),r=Ie(o);if(o===r)return t;let i={scrollLeft:0,scrollTop:0},l=ze(1);const c=ze(0);if((n||!n&&s!=="fixed")&&((Ze(o)!=="body"||Wt(r))&&(i=Ba(o)),ke(o))){const u=st(o);l=ut(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+c.x,y:t.y*l.y-i.scrollTop*l.y+c.y}}function C3(a){return Array.from(a.getClientRects())}function On(a){return st(Ie(a)).left+Ba(a).scrollLeft}function g3(a){const t=Ie(a),o=Ba(a),s=a.ownerDocument.body,n=fe(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),r=fe(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let i=-o.scrollLeft+On(a);const l=-o.scrollTop;return Ce(s).direction==="rtl"&&(i+=fe(t.clientWidth,s.clientWidth)-n),{width:n,height:r,x:i,y:l}}function _3(a,t){const o=ce(a),s=Ie(a),n=o.visualViewport;let r=s.clientWidth,i=s.clientHeight,l=0,c=0;if(n){r=n.width,i=n.height;const u=io();(!u||u&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:r,height:i,x:l,y:c}}function y3(a,t){const o=st(a,!0,t==="fixed"),s=o.top+a.clientTop,n=o.left+a.clientLeft,r=ke(a)?ut(a):ze(1),i=a.clientWidth*r.x,l=a.clientHeight*r.y,c=n*r.x,u=s*r.y;return{width:i,height:l,x:c,y:u}}function zo(a,t,o){let s;if(t==="viewport")s=_3(a,o);else if(t==="document")s=g3(Ie(a));else if(Te(t))s=y3(t,o);else{const n=An(a);s={...t,x:t.x-n.x,y:t.y-n.y}}return ma(s)}function In(a,t){const o=vt(a);return o===t||!Te(o)||Ea(o)?!1:Ce(o).position==="fixed"||In(o,t)}function b3(a,t){const o=t.get(a);if(o)return o;let s=Ht(a,[],!1).filter(l=>Te(l)&&Ze(l)!=="body"),n=null;const r=Ce(a).position==="fixed";let i=r?vt(a):a;for(;Te(i)&&!Ea(i);){const l=Ce(i),c=so(i);!c&&l.position==="fixed"&&(n=null),(r?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Wt(i)&&!c&&In(a,i))?s=s.filter(d=>d!==i):n=l,i=vt(i)}return t.set(a,s),s}function k3(a){let{element:t,boundary:o,rootBoundary:s,strategy:n}=a;const i=[...o==="clippingAncestors"?b3(t,this._c):[].concat(o),s],l=i[0],c=i.reduce((u,d)=>{const p=zo(t,d,n);return u.top=fe(p.top,u.top),u.right=Pt(p.right,u.right),u.bottom=Pt(p.bottom,u.bottom),u.left=fe(p.left,u.left),u},zo(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function w3(a){return Tn(a)}function $3(a,t,o){const s=ke(t),n=Ie(t),r=o==="fixed",i=st(a,!0,r,t);let l={scrollLeft:0,scrollTop:0};const c=ze(0);if(s||!s&&!r)if((Ze(t)!=="body"||Wt(n))&&(l=Ba(t)),s){const u=st(t,!0,r,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else n&&(c.x=On(n));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Zo(a,t){return!ke(a)||Ce(a).position==="fixed"?null:t?t(a):a.offsetParent}function Dn(a,t){const o=ce(a);if(!ke(a))return o;let s=Zo(a,t);for(;s&&p3(s)&&Ce(s).position==="static";)s=Zo(s,t);return s&&(Ze(s)==="html"||Ze(s)==="body"&&Ce(s).position==="static"&&!so(s))?o:s||m3(a)||o}const E3=async function(a){let{reference:t,floating:o,strategy:s}=a;const n=this.getOffsetParent||Dn,r=this.getDimensions;return{reference:$3(t,await n(o),s),floating:{x:0,y:0,...await r(o)}}};function B3(a){return Ce(a).direction==="rtl"}const V3={convertOffsetParentRelativeRectToViewportRelativeRect:h3,getDocumentElement:Ie,getClippingRect:k3,getOffsetParent:Dn,getElementRects:E3,getClientRects:C3,getDimensions:w3,getScale:ut,isElement:Te,isRTL:B3};function S3(a,t){let o=null,s;const n=Ie(a);function r(){clearTimeout(s),o&&o.disconnect(),o=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:u,top:d,width:p,height:m}=a.getBoundingClientRect();if(l||t(),!p||!m)return;const h=na(d),f=na(n.clientWidth-(u+p)),y=na(n.clientHeight-(d+m)),v=na(u),g={rootMargin:-h+"px "+-f+"px "+-y+"px "+-v+"px",threshold:fe(0,Pt(1,c))||1};let C=!0;function _(B){const E=B[0].intersectionRatio;if(E!==c){if(!C)return i();E?i(!1,E):s=setTimeout(()=>{i(!1,1e-7)},100)}C=!1}try{o=new IntersectionObserver(_,{...g,root:n.ownerDocument})}catch{o=new IntersectionObserver(_,g)}o.observe(a)}return i(!0),r}function N3(a,t,o,s){s===void 0&&(s={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,u=ro(a),d=n||r?[...u?Ht(u):[],...Ht(t)]:[];d.forEach(b=>{n&&b.addEventListener("scroll",o,{passive:!0}),r&&b.addEventListener("resize",o)});const p=u&&l?S3(u,o):null;let m=-1,h=null;i&&(h=new ResizeObserver(b=>{let[g]=b;g&&g.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{h&&h.observe(t)})),o()}),u&&!c&&h.observe(u),h.observe(t));let f,y=c?st(a):null;c&&v();function v(){const b=st(a);y&&(b.x!==y.x||b.y!==y.y||b.width!==y.width||b.height!==y.height)&&o(),y=b,f=requestAnimationFrame(v)}return o(),()=>{d.forEach(b=>{n&&b.removeEventListener("scroll",o),r&&b.removeEventListener("resize",o)}),p&&p(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(f)}}const M3=(a,t,o)=>{const s=new Map,n={platform:V3,...o},r={...n.platform,_c:s};return c3(a,t,{...n,platform:r})},T3=a=>{const t=e.ref(!1),o=e.ref(),s=e.ref(),n=e.ref(0);function r(){const p=e.unref(a.appendTo);return p?typeof p=="string"?document.getElementById(p)??document.body:p:document.getElementById("floatingElements")??document.body}const i=r(),l=e.ref(()=>{});function c(p){p.relatedTarget&&s.value&&s.value.contains(p.relatedTarget)||a.multiselect.value.deactivate()}function u(){const p=a.multiselect.value.$el,m=p.querySelector(".multiselect-dropdown");if(!m||!p||t.value===!0)return;s.value=m,o.value=p,getComputedStyle(m).getPropertyValue("display")==="none"&&(m.style.display="flex"),n.value=m.offsetHeight,m.style.removeProperty("display"),Object.assign(m.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),i.appendChild(m),a.multiselect.value.handleFocusOut=c;const f=N3(o.value,s.value,d);l.value=()=>{s.value&&i.contains(s.value)&&i.removeChild(s.value),f()}}function d(){!s.value||!o.value||M3(o.value,s.value,{strategy:"absolute",placement:"bottom-start",middleware:[d3({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),u3({apply({availableWidth:p,availableHeight:m,elements:h,rects:f}){Object.assign(h.floating.style,{minHeight:`${n.value}px`,width:`${f.reference.width}px`,maxWidth:`${p}px`,maxHeight:`${m}px`})}})]}).then(({x:p,y:m})=>{Object.assign(s.value.style,{left:`${p}px`,top:`${m}px`})})}e.onMounted(()=>{u()}),e.onBeforeUnmount(()=>{l.value()}),e.onUnmounted(()=>{l.value()})};function be(a){return[null,void 0].indexOf(a)!==-1}function A3(a,t,o){const{object:s,valueProp:n,mode:r}=e.toRefs(a),i=e.getCurrentInstance().proxy,l=o.iv,c=(p,m=!0)=>{l.value=d(p);const h=u(p);t.emit("change",h,i),m&&(t.emit("input",h),t.emit("update:modelValue",h))},u=p=>s.value||be(p)?p:Array.isArray(p)?p.map(m=>m[n.value]):p[n.value],d=p=>be(p)?r.value==="single"?{}:[]:p;return{update:c}}function O3(a,t){const{value:o,modelValue:s,mode:n,valueProp:r}=e.toRefs(a),i=e.ref(n.value!=="single"?[]:{}),l=e.computed(()=>s&&s.value!==void 0?s.value:o.value),c=e.computed(()=>n.value==="single"?i.value[r.value]:i.value.map(d=>d[r.value])),u=e.computed(()=>n.value!=="single"?i.value.map(d=>d[r.value]).join(","):i.value[r.value]);return{iv:i,internalValue:i,ev:l,externalValue:l,textValue:u,plainValue:c}}function I3(a,t,o){const{regex:s}=e.toRefs(a),n=e.getCurrentInstance().proxy,r=o.isOpen,i=o.open,l=e.ref(null),c=()=>{l.value=""},u=m=>{l.value=m.target.value},d=m=>{if(s&&s.value){let h=s.value;typeof h=="string"&&(h=new RegExp(h)),m.key.match(h)||m.preventDefault()}},p=m=>{if(s&&s.value){let f=(m.clipboardData||window.clipboardData).getData("Text"),y=s.value;typeof y=="string"&&(y=new RegExp(y)),f.split("").every(v=>!!v.match(y))||m.preventDefault()}t.emit("paste",m,n)};return e.watch(l,m=>{!r.value&&m&&i(),t.emit("search-change",m,n)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:p}}function D3(a,t,o){const{groupSelect:s,mode:n,groups:r,disabledProp:i}=e.toRefs(a),l=e.ref(null),c=d=>{d===void 0||d!==null&&d[i.value]||r.value&&d&&d.group&&(n.value==="single"||!s.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function xa(a,t=!0){return t?String(a).toLowerCase().trim():String(a).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function L3(a){return Object.prototype.toString.call(a)==="[object Object]"}function P3(a,t){const o=t.slice().sort();return a.length===t.length&&a.slice().sort().every(function(s,n){return s===o[n]})}function H3(a,t,o){const{options:s,mode:n,trackBy:r,limit:i,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:p,appendNewOption:m,multipleLabel:h,object:f,loading:y,delay:v,resolveOnLoad:b,minChars:g,filterResults:C,clearOnSearch:_,clearOnSelect:B,valueProp:E,allowAbsent:N,groupLabel:D,canDeselect:j,max:F,strict:Z,closeOnSelect:O,closeOnDeselect:U,groups:K,reverse:W,infinite:z,groupOptions:S,groupHideEmpty:$,groupSelect:L,onCreate:V,disabledProp:P,searchStart:q,searchFilter:k}=e.toRefs(a),M=e.getCurrentInstance().proxy,I=o.iv,T=o.ev,R=o.search,x=o.clearSearch,ie=o.update,Ke=o.pointer,bt=o.setPointer,Le=o.clearPointer,Yt=o.focus,Oa=o.deactivate,Pe=o.close,Kt=o.localize,He=e.ref([]),ye=e.ref([]),ue=e.ref(!1),ge=e.ref(null),Ee=e.ref(z.value&&i.value===-1?10:i.value),kt=e.computed(()=>c.value||u.value||!1),Gt=e.computed(()=>p.value!==void 0?p.value:m.value!==void 0?m.value:!0),pe=e.computed(()=>{if(K.value){let w=Ge.value||[],A=[];return w.forEach(X=>{ja(X[S.value]).forEach(te=>{A.push(Object.assign({},te,X[P.value]?{[P.value]:!0}:{}))})}),A}else{let w=ja(ye.value||[]);return He.value.length&&(w=w.concat(He.value)),w}}),wt=e.computed(()=>{let w=pe.value;return W.value&&(w=w.reverse()),rt.value.length&&(w=rt.value.concat(w)),Ra(w)}),Re=e.computed(()=>{let w=wt.value;return Ee.value>0&&(w=w.slice(0,Ee.value)),w}),Ge=e.computed(()=>{if(!K.value)return[];let w=[],A=ye.value||[];return He.value.length&&w.push({[D.value]:" ",[S.value]:[...He.value],__CREATE__:!0}),w.concat(A)}),Xt=e.computed(()=>{let w=[...Ge.value].map(A=>({...A}));return rt.value.length&&(w[0]&&w[0].__CREATE__?w[0][S.value]=[...rt.value,...w[0][S.value]]:w=[{[D.value]:" ",[S.value]:[...rt.value],__CREATE__:!0}].concat(w)),w}),Ia=e.computed(()=>{if(!K.value)return[];let w=Xt.value;return ds((w||[]).map((A,X)=>{const te=ja(A[S.value]);return{...A,index:X,group:!0,[S.value]:Ra(te,!1).map(Qe=>Object.assign({},Qe,A[P.value]?{[P.value]:!0}:{})),__VISIBLE__:Ra(te).map(Qe=>Object.assign({},Qe,A[P.value]?{[P.value]:!0}:{}))}}))}),Da=e.computed(()=>{switch(n.value){case"single":return!be(I.value[E.value]);case"multiple":case"tags":return!be(I.value)&&I.value.length>0}}),Gn=e.computed(()=>h!==void 0&&h.value!==void 0?h.value(I.value,M):I.value&&I.value.length>1?`${I.value.length} options selected`:"1 option selected"),Xn=e.computed(()=>!pe.value.length&&!ue.value&&!rt.value.length),Qn=e.computed(()=>pe.value.length>0&&Re.value.length==0&&(R.value&&K.value||!K.value)),rt=e.computed(()=>kt.value===!1||!R.value?[]:rs(R.value)!==-1?[]:[{[E.value]:R.value,[Xe.value[0]]:R.value,[d.value]:R.value,__CREATE__:!0}]),Xe=e.computed(()=>r.value?Array.isArray(r.value)?r.value:[r.value]:[d.value]),Jn=e.computed(()=>{switch(n.value){case"single":return null;case"multiple":case"tags":return[]}}),es=e.computed(()=>y.value||ue.value),lt=w=>{switch(typeof w!="object"&&(w=Ve(w)),n.value){case"single":ie(w);break;case"multiple":case"tags":ie(I.value.concat(w));break}t.emit("select",Bo(w),w,M)},ct=w=>{switch(typeof w!="object"&&(w=Ve(w)),n.value){case"single":So();break;case"tags":case"multiple":ie(Array.isArray(w)?I.value.filter(A=>w.map(X=>X[E.value]).indexOf(A[E.value])===-1):I.value.filter(A=>A[E.value]!=w[E.value]));break}t.emit("deselect",Bo(w),w,M)},Bo=w=>f.value?w:w[E.value],Vo=w=>{ct(w)},ts=(w,A)=>{if(A.button!==0){A.preventDefault();return}Vo(w)},So=()=>{ie(Jn.value),t.emit("clear",M)},Be=w=>{if(w.group!==void 0)return n.value==="single"?!1:is(w[S.value])&&w[S.value].length;switch(n.value){case"single":return!be(I.value)&&I.value[E.value]==w[E.value];case"tags":case"multiple":return!be(I.value)&&I.value.map(A=>A[E.value]).indexOf(w[E.value])!==-1}},La=w=>w[P.value]===!0,Pa=()=>F===void 0||F.value===-1||!Da.value&&F.value>0?!1:I.value.length>=F.value,as=w=>{if(!La(w)){if(V&&V.value&&!Be(w)&&w.__CREATE__&&(w={...w},delete w.__CREATE__,w=V.value(w,M),w instanceof Promise)){ue.value=!0,w.then(A=>{ue.value=!1,No(A)});return}No(w)}},No=w=>{switch(w.__CREATE__&&(w={...w},delete w.__CREATE__),n.value){case"single":if(w&&Be(w)){j.value&&ct(w),U.value&&(Le(),Pe());return}w&&Ha(w),B.value&&x(),O.value&&(Le(),Pe()),w&&lt(w);break;case"multiple":if(w&&Be(w)){ct(w),U.value&&(Le(),Pe());return}if(Pa()){t.emit("max",M);return}w&&(Ha(w),lt(w)),B.value&&x(),l.value&&Le(),O.value&&Pe();break;case"tags":if(w&&Be(w)){ct(w),U.value&&(Le(),Pe());return}if(Pa()){t.emit("max",M);return}w&&Ha(w),B.value&&x(),w&&lt(w),l.value&&Le(),O.value&&Pe();break}O.value||Yt()},os=w=>{if(!(La(w)||n.value==="single"||!L.value)){switch(n.value){case"multiple":case"tags":ss(w[S.value])?ct(w[S.value]):lt(w[S.value].filter(A=>I.value.map(X=>X[E.value]).indexOf(A[E.value])===-1).filter(A=>!A[P.value]).filter((A,X)=>I.value.length+1+X<=F.value||F.value===-1)),l.value&&Ke.value&&bt(Ia.value.filter(A=>!A[P.value])[Ke.value.index]);break}O.value&&Oa()}},Ha=w=>{Ve(w[E.value])===void 0&&kt.value&&(t.emit("tag",w[E.value],M),t.emit("option",w[E.value],M),t.emit("create",w[E.value],M),Gt.value&&cs(w),x())},ns=()=>{n.value!=="single"&&lt(Re.value.filter(w=>!w.disabled&&!Be(w)))},ss=w=>w.find(A=>!Be(A)&&!A[P.value])===void 0,is=w=>w.find(A=>!Be(A))===void 0,Ve=w=>pe.value[pe.value.map(A=>String(A[E.value])).indexOf(String(w))],rs=w=>pe.value.findIndex(A=>Xe.value.some(X=>(parseInt(A[X])==A[X]?parseInt(A[X]):A[X])===(parseInt(w)==w?parseInt(w):w))),ls=w=>["tags","multiple"].indexOf(n.value)!==-1&&l.value&&Be(w),cs=w=>{He.value.push(w)},ds=w=>$.value?w.filter(A=>R.value?A.__VISIBLE__.length:A[S.value].length):w.filter(A=>R.value?A.__VISIBLE__.length:!0),Ra=(w,A=!0)=>{let X=w;if(R.value&&C.value){let te=k.value;te||(te=(Qe,To,k9)=>Xe.value.some(ps=>{let Ao=xa(Kt(Qe[ps]),Z.value);return q.value?Ao.startsWith(xa(To,Z.value)):Ao.indexOf(xa(To,Z.value))!==-1})),X=X.filter(Qe=>te(Qe,R.value,M))}return l.value&&A&&(X=X.filter(te=>!ls(te))),X},ja=w=>{let A=w;return L3(A)&&(A=Object.keys(A).map(X=>{let te=A[X];return{[E.value]:X,[Xe.value[0]]:te,[d.value]:te}})),A=A.map(X=>typeof X=="object"?X:{[E.value]:X,[Xe.value[0]]:X,[d.value]:X}),A},Qt=()=>{be(T.value)||(I.value=ea(T.value))},Jt=w=>(ue.value=!0,new Promise((A,X)=>{s.value(R.value,M).then(te=>{ye.value=te||[],typeof w=="function"&&w(te),ue.value=!1}).catch(te=>{console.error(te),ye.value=[],ue.value=!1}).finally(()=>{A()})})),Ua=()=>{if(Da.value)if(n.value==="single"){let w=Ve(I.value[E.value]);if(w!==void 0){let A=w[d.value];I.value[d.value]=A,f.value&&(T.value[d.value]=A)}}else I.value.forEach((w,A)=>{let X=Ve(I.value[A][E.value]);if(X!==void 0){let te=X[d.value];I.value[A][d.value]=te,f.value&&(T.value[A][d.value]=te)}})},us=w=>{Jt(w)},ea=w=>be(w)?n.value==="single"?{}:[]:f.value?w:n.value==="single"?Ve(w)||(N.value?{[d.value]:w,[E.value]:w,[Xe.value[0]]:w}:{}):w.filter(A=>!!Ve(A)||N.value).map(A=>Ve(A)||{[d.value]:A,[E.value]:A,[Xe.value[0]]:A}),Mo=()=>{ge.value=e.watch(R,w=>{w.length<g.value||!w&&g.value!==0||(ue.value=!0,_.value&&(ye.value=[]),setTimeout(()=>{w==R.value&&s.value(R.value,M).then(A=>{(w==R.value||!R.value)&&(ye.value=A,Ke.value=Re.value.filter(X=>X[P.value]!==!0)[0]||null,ue.value=!1)}).catch(A=>{console.error(A)})},v.value))},{flush:"sync"})};if(n.value!=="single"&&!be(T.value)&&!Array.isArray(T.value))throw new Error(`v-model must be an array when using "${n.value}" mode`);return s&&typeof s.value=="function"?b.value?Jt(Qt):f.value==!0&&Qt():(ye.value=s.value,Qt()),v.value>-1&&Mo(),e.watch(v,(w,A)=>{ge.value&&ge.value(),w>=0&&Mo()}),e.watch(T,w=>{if(be(w)){ie(ea(w),!1);return}switch(n.value){case"single":(f.value?w[E.value]!=I.value[E.value]:w!=I.value[E.value])&&ie(ea(w),!1);break;case"multiple":case"tags":P3(f.value?w.map(A=>A[E.value]):w,I.value.map(A=>A[E.value]))||ie(ea(w),!1);break}},{deep:!0}),e.watch(s,(w,A)=>{typeof a.options=="function"?b.value&&(!A||w&&w.toString()!==A.toString())&&Jt():(ye.value=a.options,Object.keys(I.value).length||Qt(),Ua())}),e.watch(d,Ua),e.watch(i,(w,A)=>{Ee.value=z.value&&w===-1?10:w}),{pfo:wt,fo:Re,filteredOptions:Re,hasSelected:Da,multipleLabelText:Gn,eo:pe,extendedOptions:pe,eg:Ge,extendedGroups:Ge,fg:Ia,filteredGroups:Ia,noOptions:Xn,noResults:Qn,resolving:ue,busy:es,offset:Ee,select:lt,deselect:ct,remove:Vo,selectAll:ns,clear:So,isSelected:Be,isDisabled:La,isMax:Pa,getOption:Ve,handleOptionClick:as,handleGroupClick:os,handleTagRemove:ts,refreshOptions:us,resolveOptions:Jt,refreshLabels:Ua}}function R3(a,t,o){const{valueProp:s,showOptions:n,searchable:r,groupLabel:i,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:p}=e.toRefs(a),m=o.fo,h=o.fg,f=o.handleOptionClick,y=o.handleGroupClick,v=o.search,b=o.pointer,g=o.setPointer,C=o.clearPointer,_=o.multiselect,B=o.isOpen,E=e.computed(()=>m.value.filter(T=>!T[d.value])),N=e.computed(()=>h.value.filter(T=>!T[d.value])),D=e.computed(()=>c.value!=="single"&&u.value),j=e.computed(()=>b.value&&b.value.group),F=e.computed(()=>M(b.value)),Z=e.computed(()=>{const T=j.value?b.value:M(b.value),R=N.value.map(ie=>ie[i.value]).indexOf(T[i.value]);let x=N.value[R-1];return x===void 0&&(x=U.value),x}),O=e.computed(()=>{let T=N.value.map(R=>R.label).indexOf(j.value?b.value[i.value]:M(b.value)[i.value])+1;return N.value.length<=T&&(T=0),N.value[T]}),U=e.computed(()=>[...N.value].slice(-1)[0]),K=e.computed(()=>b.value.__VISIBLE__.filter(T=>!T[d.value])[0]),W=e.computed(()=>{const T=F.value.__VISIBLE__.filter(R=>!R[d.value]);return T[T.map(R=>R[s.value]).indexOf(b.value[s.value])-1]}),z=e.computed(()=>{const T=M(b.value).__VISIBLE__.filter(R=>!R[d.value]);return T[T.map(R=>R[s.value]).indexOf(b.value[s.value])+1]}),S=e.computed(()=>[...Z.value.__VISIBLE__.filter(T=>!T[d.value])].slice(-1)[0]),$=e.computed(()=>[...U.value.__VISIBLE__.filter(T=>!T[d.value])].slice(-1)[0]),L=T=>b.value&&(!T.group&&b.value[s.value]===T[s.value]||T.group!==void 0&&b.value[i.value]===T[i.value])?!0:void 0,V=()=>{g(E.value[0]||null)},P=()=>{!b.value||b.value[d.value]===!0||(j.value?y(b.value):f(b.value))},q=()=>{if(b.value===null)g((l.value&&D.value?N.value[0].__CREATE__?E.value[0]:N.value[0]:E.value[0])||null);else if(l.value&&D.value){let T=j.value?K.value:z.value;T===void 0&&(T=O.value,T.__CREATE__&&(T=T[p.value][0])),g(T||null)}else{let T=E.value.map(R=>R[s.value]).indexOf(b.value[s.value])+1;E.value.length<=T&&(T=0),g(E.value[T]||null)}e.nextTick(()=>{I()})},k=()=>{if(b.value===null){let T=E.value[E.value.length-1];l.value&&D.value&&(T=$.value,T===void 0&&(T=U.value)),g(T||null)}else if(l.value&&D.value){let T=j.value?S.value:W.value;T===void 0&&(T=j.value?Z.value:F.value,T.__CREATE__&&(T=S.value,T===void 0&&(T=Z.value))),g(T||null)}else{let T=E.value.map(R=>R[s.value]).indexOf(b.value[s.value])-1;T<0&&(T=E.value.length-1),g(E.value[T]||null)}e.nextTick(()=>{I()})},M=T=>N.value.find(R=>R.__VISIBLE__.map(x=>x[s.value]).indexOf(T[s.value])!==-1),I=()=>{let T=_.value.querySelector("[data-pointed]");if(!T)return;let R=T.parentElement.parentElement;l.value&&(R=j.value?T.parentElement.parentElement.parentElement:T.parentElement.parentElement.parentElement.parentElement),T.offsetTop+T.offsetHeight>R.clientHeight+R.scrollTop&&(R.scrollTop=T.offsetTop+T.offsetHeight-R.clientHeight),T.offsetTop<R.scrollTop&&(R.scrollTop=T.offsetTop)};return e.watch(v,T=>{r.value&&(T.length&&n.value?V():C())}),e.watch(B,T=>{if(T){let R=_.value.querySelectorAll("[data-selected]")[0];if(!R)return;let x=R.parentElement.parentElement;e.nextTick(()=>{x.scrollTop>0||(x.scrollTop=R.offsetTop)})}}),{pointer:b,canPointGroups:D,isPointed:L,setPointerFirst:V,selectPointer:P,forwardPointer:q,backwardPointer:k}}function de(a){if(a==null)return window;if(a.toString()!=="[object Window]"){var t=a.ownerDocument;return t&&t.defaultView||window}return a}function it(a){var t=de(a).Element;return a instanceof t||a instanceof Element}function he(a){var t=de(a).HTMLElement;return a instanceof t||a instanceof HTMLElement}function lo(a){if(typeof ShadowRoot>"u")return!1;var t=de(a).ShadowRoot;return a instanceof t||a instanceof ShadowRoot}var ot=Math.max,fa=Math.min,ht=Math.round;function Ka(){var a=navigator.userAgentData;return a!=null&&a.brands&&Array.isArray(a.brands)?a.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ln(){return!/^((?!chrome|android).)*safari/i.test(Ka())}function Ct(a,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var s=a.getBoundingClientRect(),n=1,r=1;t&&he(a)&&(n=a.offsetWidth>0&&ht(s.width)/a.offsetWidth||1,r=a.offsetHeight>0&&ht(s.height)/a.offsetHeight||1);var i=it(a)?de(a):window,l=i.visualViewport,c=!Ln()&&o,u=(s.left+(c&&l?l.offsetLeft:0))/n,d=(s.top+(c&&l?l.offsetTop:0))/r,p=s.width/n,m=s.height/r;return{width:p,height:m,top:d,right:u+p,bottom:d+m,left:u,x:u,y:d}}function co(a){var t=de(a),o=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:o,scrollTop:s}}function j3(a){return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}}function U3(a){return a===de(a)||!he(a)?co(a):j3(a)}function we(a){return a?(a.nodeName||"").toLowerCase():null}function Ye(a){return((it(a)?a.ownerDocument:a.document)||window.document).documentElement}function uo(a){return Ct(Ye(a)).left+co(a).scrollLeft}function Ae(a){return de(a).getComputedStyle(a)}function po(a){var t=Ae(a),o=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+s)}function F3(a){var t=a.getBoundingClientRect(),o=ht(t.width)/a.offsetWidth||1,s=ht(t.height)/a.offsetHeight||1;return o!==1||s!==1}function z3(a,t,o){o===void 0&&(o=!1);var s=he(t),n=he(t)&&F3(t),r=Ye(t),i=Ct(a,n,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!o)&&((we(t)!=="body"||po(r))&&(l=U3(t)),he(t)?(c=Ct(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=uo(r))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Pn(a){var t=Ct(a),o=a.offsetWidth,s=a.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:a.offsetLeft,y:a.offsetTop,width:o,height:s}}function Va(a){return we(a)==="html"?a:a.assignedSlot||a.parentNode||(lo(a)?a.host:null)||Ye(a)}function Hn(a){return["html","body","#document"].indexOf(we(a))>=0?a.ownerDocument.body:he(a)&&po(a)?a:Hn(Va(a))}function Tt(a,t){var o;t===void 0&&(t=[]);var s=Hn(a),n=s===((o=a.ownerDocument)==null?void 0:o.body),r=de(s),i=n?[r].concat(r.visualViewport||[],po(s)?s:[]):s,l=t.concat(i);return n?l:l.concat(Tt(Va(i)))}function Z3(a){return["table","td","th"].indexOf(we(a))>=0}function xo(a){return!he(a)||Ae(a).position==="fixed"?null:a.offsetParent}function x3(a){var t=/firefox/i.test(Ka()),o=/Trident/i.test(Ka());if(o&&he(a)){var s=Ae(a);if(s.position==="fixed")return null}var n=Va(a);for(lo(n)&&(n=n.host);he(n)&&["html","body"].indexOf(we(n))<0;){var r=Ae(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function Sa(a){for(var t=de(a),o=xo(a);o&&Z3(o)&&Ae(o).position==="static";)o=xo(o);return o&&(we(o)==="html"||we(o)==="body"&&Ae(o).position==="static")?t:o||x3(a)||t}var _e="top",$e="bottom",xe="right",Se="left",mo="auto",Na=[_e,$e,xe,Se],gt="start",Rt="end",W3="clippingParents",Rn="viewport",Nt="popper",q3="reference",Wo=Na.reduce(function(a,t){return a.concat([t+"-"+gt,t+"-"+Rt])},[]),Y3=[].concat(Na,[mo]).reduce(function(a,t){return a.concat([t,t+"-"+gt,t+"-"+Rt])},[]),K3="beforeRead",G3="read",X3="afterRead",Q3="beforeMain",J3="main",em="afterMain",tm="beforeWrite",am="write",om="afterWrite",nm=[K3,G3,X3,Q3,J3,em,tm,am,om];function sm(a){var t=new Map,o=new Set,s=[];a.forEach(function(r){t.set(r.name,r)});function n(r){o.add(r.name);var i=[].concat(r.requires||[],r.requiresIfExists||[]);i.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&n(c)}}),s.push(r)}return a.forEach(function(r){o.has(r.name)||n(r)}),s}function im(a){var t=sm(a);return nm.reduce(function(o,s){return o.concat(t.filter(function(n){return n.phase===s}))},[])}function rm(a){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(a())})})),t}}function lm(a){var t=a.reduce(function(o,s){var n=o[s.name];return o[s.name]=n?Object.assign({},n,s,{options:Object.assign({},n.options,s.options),data:Object.assign({},n.data,s.data)}):s,o},{});return Object.keys(t).map(function(o){return t[o]})}function cm(a,t){var o=de(a),s=Ye(a),n=o.visualViewport,r=s.clientWidth,i=s.clientHeight,l=0,c=0;if(n){r=n.width,i=n.height;var u=Ln();(u||!u&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:r,height:i,x:l+uo(a),y:c}}function dm(a){var t,o=Ye(a),s=co(a),n=(t=a.ownerDocument)==null?void 0:t.body,r=ot(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=ot(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-s.scrollLeft+uo(a),c=-s.scrollTop;return Ae(n||o).direction==="rtl"&&(l+=ot(o.clientWidth,n?n.clientWidth:0)-r),{width:r,height:i,x:l,y:c}}function um(a,t){var o=t.getRootNode&&t.getRootNode();if(a.contains(t))return!0;if(o&&lo(o)){var s=t;do{if(s&&a.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Ga(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function pm(a,t){var o=Ct(a,!1,t==="fixed");return o.top=o.top+a.clientTop,o.left=o.left+a.clientLeft,o.bottom=o.top+a.clientHeight,o.right=o.left+a.clientWidth,o.width=a.clientWidth,o.height=a.clientHeight,o.x=o.left,o.y=o.top,o}function qo(a,t,o){return t===Rn?Ga(cm(a,o)):it(t)?pm(t,o):Ga(dm(Ye(a)))}function mm(a){var t=Tt(Va(a)),o=["absolute","fixed"].indexOf(Ae(a).position)>=0,s=o&&he(a)?Sa(a):a;return it(s)?t.filter(function(n){return it(n)&&um(n,s)&&we(n)!=="body"}):[]}function fm(a,t,o,s){var n=t==="clippingParents"?mm(a):[].concat(t),r=[].concat(n,[o]),i=r[0],l=r.reduce(function(c,u){var d=qo(a,u,s);return c.top=ot(d.top,c.top),c.right=fa(d.right,c.right),c.bottom=fa(d.bottom,c.bottom),c.left=ot(d.left,c.left),c},qo(a,i,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Fe(a){return a.split("-")[0]}function _t(a){return a.split("-")[1]}function jn(a){return["top","bottom"].indexOf(a)>=0?"x":"y"}function Un(a){var t=a.reference,o=a.element,s=a.placement,n=s?Fe(s):null,r=s?_t(s):null,i=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(n){case _e:c={x:i,y:t.y-o.height};break;case $e:c={x:i,y:t.y+t.height};break;case xe:c={x:t.x+t.width,y:l};break;case Se:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var u=n?jn(n):null;if(u!=null){var d=u==="y"?"height":"width";switch(r){case gt:c[u]=c[u]-(t[d]/2-o[d]/2);break;case Rt:c[u]=c[u]+(t[d]/2-o[d]/2);break}}return c}function Fn(){return{top:0,right:0,bottom:0,left:0}}function vm(a){return Object.assign({},Fn(),a)}function hm(a,t){return t.reduce(function(o,s){return o[s]=a,o},{})}function fo(a,t){t===void 0&&(t={});var o=t,s=o.placement,n=s===void 0?a.placement:s,r=o.strategy,i=r===void 0?a.strategy:r,l=o.boundary,c=l===void 0?W3:l,u=o.rootBoundary,d=u===void 0?Rn:u,p=o.elementContext,m=p===void 0?Nt:p,h=o.altBoundary,f=h===void 0?!1:h,y=o.padding,v=y===void 0?0:y,b=vm(typeof v!="number"?v:hm(v,Na)),g=m===Nt?q3:Nt,C=a.rects.popper,_=a.elements[f?g:m],B=fm(it(_)?_:_.contextElement||Ye(a.elements.popper),c,d,i),E=Ct(a.elements.reference),N=Un({reference:E,element:C,strategy:"absolute",placement:n}),D=Ga(Object.assign({},C,N)),j=m===Nt?D:E,F={top:B.top-j.top+b.top,bottom:j.bottom-B.bottom+b.bottom,left:B.left-j.left+b.left,right:j.right-B.right+b.right},Z=a.modifiersData.offset;if(m===Nt&&Z){var O=Z[n];Object.keys(F).forEach(function(U){var K=[xe,$e].indexOf(U)>=0?1:-1,W=[_e,$e].indexOf(U)>=0?"y":"x";F[U]+=O[W]*K})}return F}var Yo={placement:"bottom",modifiers:[],strategy:"absolute"};function Ko(){for(var a=arguments.length,t=new Array(a),o=0;o<a;o++)t[o]=arguments[o];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Cm(a){a===void 0&&(a={});var t=a,o=t.defaultModifiers,s=o===void 0?[]:o,n=t.defaultOptions,r=n===void 0?Yo:n;return function(l,c,u){u===void 0&&(u=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yo,r),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],m=!1,h={state:d,setOptions:function(b){var g=typeof b=="function"?b(d.options):b;y(),d.options=Object.assign({},r,d.options,g),d.scrollParents={reference:it(l)?Tt(l):l.contextElement?Tt(l.contextElement):[],popper:Tt(c)};var C=im(lm([].concat(s,d.options.modifiers)));return d.orderedModifiers=C.filter(function(_){return _.enabled}),f(),h.update()},forceUpdate:function(){if(!m){var b=d.elements,g=b.reference,C=b.popper;if(Ko(g,C)){d.rects={reference:z3(g,Sa(C),d.options.strategy==="fixed"),popper:Pn(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(F){return d.modifiersData[F.name]=Object.assign({},F.data)});for(var _=0;_<d.orderedModifiers.length;_++){if(d.reset===!0){d.reset=!1,_=-1;continue}var B=d.orderedModifiers[_],E=B.fn,N=B.options,D=N===void 0?{}:N,j=B.name;typeof E=="function"&&(d=E({state:d,options:D,name:j,instance:h})||d)}}}},update:rm(function(){return new Promise(function(v){h.forceUpdate(),v(d)})}),destroy:function(){y(),m=!0}};if(!Ko(l,c))return h;h.setOptions(u).then(function(v){!m&&u.onFirstUpdate&&u.onFirstUpdate(v)});function f(){d.orderedModifiers.forEach(function(v){var b=v.name,g=v.options,C=g===void 0?{}:g,_=v.effect;if(typeof _=="function"){var B=_({state:d,name:b,instance:h,options:C}),E=function(){};p.push(B||E)}})}function y(){p.forEach(function(v){return v()}),p=[]}return h}}var sa={passive:!0};function gm(a){var t=a.state,o=a.instance,s=a.options,n=s.scroll,r=n===void 0?!0:n,i=s.resize,l=i===void 0?!0:i,c=de(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&u.forEach(function(d){d.addEventListener("scroll",o.update,sa)}),l&&c.addEventListener("resize",o.update,sa),function(){r&&u.forEach(function(d){d.removeEventListener("scroll",o.update,sa)}),l&&c.removeEventListener("resize",o.update,sa)}}var _m={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gm,data:{}};function ym(a){var t=a.state,o=a.name;t.modifiersData[o]=Un({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var bm={name:"popperOffsets",enabled:!0,phase:"read",fn:ym,data:{}},km={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wm(a,t){var o=a.x,s=a.y,n=t.devicePixelRatio||1;return{x:ht(o*n)/n||0,y:ht(s*n)/n||0}}function Go(a){var t,o=a.popper,s=a.popperRect,n=a.placement,r=a.variation,i=a.offsets,l=a.position,c=a.gpuAcceleration,u=a.adaptive,d=a.roundOffsets,p=a.isFixed,m=i.x,h=m===void 0?0:m,f=i.y,y=f===void 0?0:f,v=typeof d=="function"?d({x:h,y}):{x:h,y};h=v.x,y=v.y;var b=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),C=Se,_=_e,B=window;if(u){var E=Sa(o),N="clientHeight",D="clientWidth";if(E===de(o)&&(E=Ye(o),Ae(E).position!=="static"&&l==="absolute"&&(N="scrollHeight",D="scrollWidth")),E=E,n===_e||(n===Se||n===xe)&&r===Rt){_=$e;var j=p&&E===B&&B.visualViewport?B.visualViewport.height:E[N];y-=j-s.height,y*=c?1:-1}if(n===Se||(n===_e||n===$e)&&r===Rt){C=xe;var F=p&&E===B&&B.visualViewport?B.visualViewport.width:E[D];h-=F-s.width,h*=c?1:-1}}var Z=Object.assign({position:l},u&&km),O=d===!0?wm({x:h,y},de(o)):{x:h,y};if(h=O.x,y=O.y,c){var U;return Object.assign({},Z,(U={},U[_]=g?"0":"",U[C]=b?"0":"",U.transform=(B.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",U))}return Object.assign({},Z,(t={},t[_]=g?y+"px":"",t[C]=b?h+"px":"",t.transform="",t))}function $m(a){var t=a.state,o=a.options,s=o.gpuAcceleration,n=s===void 0?!0:s,r=o.adaptive,i=r===void 0?!0:r,l=o.roundOffsets,c=l===void 0?!0:l,u={placement:Fe(t.placement),variation:_t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Go(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Go(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Em={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$m,data:{}};function Bm(a){var t=a.state;Object.keys(t.elements).forEach(function(o){var s=t.styles[o]||{},n=t.attributes[o]||{},r=t.elements[o];!he(r)||!we(r)||(Object.assign(r.style,s),Object.keys(n).forEach(function(i){var l=n[i];l===!1?r.removeAttribute(i):r.setAttribute(i,l===!0?"":l)}))})}function Vm(a){var t=a.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(s){var n=t.elements[s],r=t.attributes[s]||{},i=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:o[s]),l=i.reduce(function(c,u){return c[u]="",c},{});!he(n)||!we(n)||(Object.assign(n.style,l),Object.keys(r).forEach(function(c){n.removeAttribute(c)}))})}}var Sm={name:"applyStyles",enabled:!0,phase:"write",fn:Bm,effect:Vm,requires:["computeStyles"]},Nm=[_m,bm,Em,Sm],Mm=Cm({defaultModifiers:Nm});function Tm(a){return a==="x"?"y":"x"}function ia(a,t,o){return ot(a,fa(t,o))}function Am(a,t,o){var s=ia(a,t,o);return s>o?o:s}function Om(a){var t=a.state,o=a.options,s=a.name,n=o.mainAxis,r=n===void 0?!0:n,i=o.altAxis,l=i===void 0?!1:i,c=o.boundary,u=o.rootBoundary,d=o.altBoundary,p=o.padding,m=o.tether,h=m===void 0?!0:m,f=o.tetherOffset,y=f===void 0?0:f,v=fo(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),b=Fe(t.placement),g=_t(t.placement),C=!g,_=jn(b),B=Tm(_),E=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,F=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(E){if(r){var U,K=_==="y"?_e:Se,W=_==="y"?$e:xe,z=_==="y"?"height":"width",S=E[_],$=S+v[K],L=S-v[W],V=h?-D[z]/2:0,P=g===gt?N[z]:D[z],q=g===gt?-D[z]:-N[z],k=t.elements.arrow,M=h&&k?Pn(k):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fn(),T=I[K],R=I[W],x=ia(0,N[z],M[z]),ie=C?N[z]/2-V-x-T-F.mainAxis:P-x-T-F.mainAxis,Ke=C?-N[z]/2+V+x+R+F.mainAxis:q+x+R+F.mainAxis,bt=t.elements.arrow&&Sa(t.elements.arrow),Le=bt?_==="y"?bt.clientTop||0:bt.clientLeft||0:0,Yt=(U=Z==null?void 0:Z[_])!=null?U:0,Oa=S+ie-Yt-Le,Pe=S+Ke-Yt,Kt=ia(h?fa($,Oa):$,S,h?ot(L,Pe):L);E[_]=Kt,O[_]=Kt-S}if(l){var He,ye=_==="x"?_e:Se,ue=_==="x"?$e:xe,ge=E[B],Ee=B==="y"?"height":"width",kt=ge+v[ye],Gt=ge-v[ue],pe=[_e,Se].indexOf(b)!==-1,wt=(He=Z==null?void 0:Z[B])!=null?He:0,Re=pe?kt:ge-N[Ee]-D[Ee]-wt+F.altAxis,Ge=pe?ge+N[Ee]+D[Ee]-wt-F.altAxis:Gt,Xt=h&&pe?Am(Re,ge,Ge):ia(h?Re:kt,ge,h?Ge:Gt);E[B]=Xt,O[B]=Xt-ge}t.modifiersData[s]=O}}var Im={name:"preventOverflow",enabled:!0,phase:"main",fn:Om,requiresIfExists:["offset"]},Dm={left:"right",right:"left",bottom:"top",top:"bottom"};function ra(a){return a.replace(/left|right|bottom|top/g,function(t){return Dm[t]})}var Lm={start:"end",end:"start"};function Xo(a){return a.replace(/start|end/g,function(t){return Lm[t]})}function Pm(a,t){t===void 0&&(t={});var o=t,s=o.placement,n=o.boundary,r=o.rootBoundary,i=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,u=c===void 0?Y3:c,d=_t(s),p=d?l?Wo:Wo.filter(function(f){return _t(f)===d}):Na,m=p.filter(function(f){return u.indexOf(f)>=0});m.length===0&&(m=p);var h=m.reduce(function(f,y){return f[y]=fo(a,{placement:y,boundary:n,rootBoundary:r,padding:i})[Fe(y)],f},{});return Object.keys(h).sort(function(f,y){return h[f]-h[y]})}function Hm(a){if(Fe(a)===mo)return[];var t=ra(a);return[Xo(a),t,Xo(t)]}function Rm(a){var t=a.state,o=a.options,s=a.name;if(!t.modifiersData[s]._skip){for(var n=o.mainAxis,r=n===void 0?!0:n,i=o.altAxis,l=i===void 0?!0:i,c=o.fallbackPlacements,u=o.padding,d=o.boundary,p=o.rootBoundary,m=o.altBoundary,h=o.flipVariations,f=h===void 0?!0:h,y=o.allowedAutoPlacements,v=t.options.placement,b=Fe(v),g=b===v,C=c||(g||!f?[ra(v)]:Hm(v)),_=[v].concat(C).reduce(function(M,I){return M.concat(Fe(I)===mo?Pm(t,{placement:I,boundary:d,rootBoundary:p,padding:u,flipVariations:f,allowedAutoPlacements:y}):I)},[]),B=t.rects.reference,E=t.rects.popper,N=new Map,D=!0,j=_[0],F=0;F<_.length;F++){var Z=_[F],O=Fe(Z),U=_t(Z)===gt,K=[_e,$e].indexOf(O)>=0,W=K?"width":"height",z=fo(t,{placement:Z,boundary:d,rootBoundary:p,altBoundary:m,padding:u}),S=K?U?xe:Se:U?$e:_e;B[W]>E[W]&&(S=ra(S));var $=ra(S),L=[];if(r&&L.push(z[O]<=0),l&&L.push(z[S]<=0,z[$]<=0),L.every(function(M){return M})){j=Z,D=!1;break}N.set(Z,L)}if(D)for(var V=f?3:1,P=function(I){var T=_.find(function(R){var x=N.get(R);if(x)return x.slice(0,I).every(function(ie){return ie})});if(T)return j=T,"break"},q=V;q>0;q--){var k=P(q);if(k==="break")break}t.placement!==j&&(t.modifiersData[s]._skip=!0,t.placement=j,t.reset=!0)}}var jm={name:"flip",enabled:!0,phase:"main",fn:Rm,requiresIfExists:["offset"],data:{_skip:!1}};function Um(a,t,o){const{disabled:s,appendTo:n,appendToBody:r,openDirection:i}=e.toRefs(a),l=e.getCurrentInstance().proxy,c=o.multiselect,u=o.dropdown,d=e.ref(!1),p=e.ref(null),m=e.ref(null),h=e.computed(()=>n.value||r.value),f=e.computed(()=>i.value==="top"&&m.value==="bottom"||i.value==="bottom"&&m.value!=="top"?"bottom":"top"),y=()=>{d.value||s.value||(d.value=!0,t.emit("open",l),h.value&&e.nextTick(()=>{b()}))},v=()=>{d.value&&(d.value=!1,t.emit("close",l))},b=()=>{if(!p.value)return;let C=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),_=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));p.value.setOptions(B=>({...B,modifiers:[...B.modifiers,{name:"offset",options:{offset:[0,(f.value==="top"?C:_)*-1]}}]})),p.value.update()},g=C=>{for(;C&&C!==document.body;){if(getComputedStyle(C).position==="fixed")return!0;C=C.parentElement}return!1};return e.onMounted(()=>{h.value&&(p.value=Mm(c.value,u.value,{strategy:g(c.value)?"fixed":void 0,placement:i.value,modifiers:[Im,jm,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:C})=>{C.styles.popper.width=`${C.rects.reference.width}px`},effect:({state:C})=>{C.elements.popper.style.width=`${C.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:C}){m.value=C.placement}}]}))}),e.onBeforeUnmount(()=>{!h.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:d,open:y,close:v,placement:f,updatePopper:b}}function Fm(a,t,o){const{searchable:s,disabled:n,clearOnBlur:r}=e.toRefs(a),i=o.input,l=o.open,c=o.close,u=o.clearSearch,d=o.isOpen,p=o.wrapper,m=o.tags,h=e.ref(!1),f=e.ref(!1),y=e.computed(()=>s.value||n.value?-1:0),v=()=>{s.value&&i.value.blur(),p.value.blur()},b=()=>{s.value&&!n.value&&i.value.focus()},g=(D=!0)=>{n.value||(h.value=!0,D&&l())},C=()=>{h.value=!1,setTimeout(()=>{h.value||(c(),r.value&&u())},1)};return{tabindex:y,isActive:h,mouseClicked:f,blur:v,focus:b,activate:g,deactivate:C,handleFocusIn:D=>{D.target.closest("[data-tags]")&&D.target.nodeName!=="INPUT"||D.target.closest("[data-clear]")||g(f.value)},handleFocusOut:()=>{C()},handleCaretClick:()=>{C(),v()},handleMousedown:D=>{f.value=!0,d.value&&(D.target.isEqualNode(p.value)||D.target.isEqualNode(m.value))?setTimeout(()=>{C()},0):!d.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(i.value))&&g(),setTimeout(()=>{f.value=!1},0)}}}function zm(a,t,o){const{mode:s,addTagOn:n,openDirection:r,searchable:i,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:p,createOption:m,reverse:h}=e.toRefs(a),f=e.getCurrentInstance().proxy,y=o.iv,v=o.update,b=o.deselect,g=o.search,C=o.setPointer,_=o.selectPointer,B=o.backwardPointer,E=o.forwardPointer,N=o.multiselect,D=o.wrapper,j=o.tags,F=o.isOpen,Z=o.open,O=o.blur,U=o.fo,K=e.computed(()=>p.value||m.value||!1),W=e.computed(()=>n.value!==void 0?n.value:d.value!==void 0?d.value:["enter"]),z=()=>{s.value==="tags"&&!l.value&&K.value&&i.value&&!u.value&&C(U.value[U.value.map(L=>L[c.value]).indexOf(g.value)])};return{handleKeydown:L=>{t.emit("keydown",L,f);let V,P;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(L.key)!==-1&&s.value==="tags"&&(V=[...N.value.querySelectorAll("[data-tags] > *")].filter(q=>q!==j.value),P=V.findIndex(q=>q===document.activeElement)),L.key){case"Backspace":if(s.value==="single"||i.value&&[null,""].indexOf(g.value)===-1||y.value.length===0)return;let q=y.value.filter(k=>!k.disabled&&k.remove!==!1);q.length&&b(q[q.length-1]);break;case"Enter":if(L.preventDefault(),L.keyCode===229)return;if(P!==-1&&P!==void 0){v([...y.value].filter((k,M)=>M!==P)),P===V.length-1&&(V.length-1?V[V.length-2].focus():i.value?j.value.querySelector("input").focus():D.value.focus());return}if(W.value.indexOf("enter")===-1&&K.value)return;z(),_();break;case" ":if(!K.value&&!i.value){L.preventDefault(),z(),_();return}if(!K.value)return!1;if(W.value.indexOf("space")===-1&&K.value)return;L.preventDefault(),z(),_();break;case"Tab":case";":case",":if(W.value.indexOf(L.key.toLowerCase())===-1||!K.value)return;z(),_(),L.preventDefault();break;case"Escape":O();break;case"ArrowUp":if(L.preventDefault(),!l.value)return;F.value||Z(),B();break;case"ArrowDown":if(L.preventDefault(),!l.value)return;F.value||Z(),E();break;case"ArrowLeft":if(i.value&&j.value&&j.value.querySelector("input").selectionStart||L.shiftKey||s.value!=="tags"||!y.value||!y.value.length)return;L.preventDefault(),P===-1?V[V.length-1].focus():P>0&&V[P-1].focus();break;case"ArrowRight":if(P===-1||L.shiftKey||s.value!=="tags"||!y.value||!y.value.length)return;L.preventDefault(),V.length>P+1?V[P+1].focus():i.value?j.value.querySelector("input").focus():i.value||D.value.focus();break}},handleKeyup:L=>{t.emit("keyup",L,f)},preparePointer:z}}function Zm(a,t,o){const{classes:s,disabled:n,showOptions:r,breakTags:i}=e.toRefs(a),l=o.isOpen,c=o.isPointed,u=o.isSelected,d=o.isDisabled,p=o.isActive,m=o.canPointGroups,h=o.resolving,f=o.fo,y=o.placement,v=e.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...s.value})),b=e.computed(()=>!!(l.value&&r.value&&(!h.value||h.value&&f.value.length)));return{classList:e.computed(()=>{const C=v.value;return{container:[C.container].concat(n.value?C.containerDisabled:[]).concat(b.value&&y.value==="top"?C.containerOpenTop:[]).concat(b.value&&y.value!=="top"?C.containerOpen:[]).concat(p.value?C.containerActive:[]),wrapper:C.wrapper,spacer:C.spacer,singleLabel:C.singleLabel,singleLabelText:C.singleLabelText,multipleLabel:C.multipleLabel,search:C.search,tags:C.tags,tag:[C.tag].concat(n.value?C.tagDisabled:[]),tagWrapper:[C.tagWrapper,i.value?C.tagWrapperBreak:null],tagDisabled:C.tagDisabled,tagRemove:C.tagRemove,tagRemoveIcon:C.tagRemoveIcon,tagsSearchWrapper:C.tagsSearchWrapper,tagsSearch:C.tagsSearch,tagsSearchCopy:C.tagsSearchCopy,placeholder:C.placeholder,caret:[C.caret].concat(l.value?C.caretOpen:[]),clear:C.clear,clearIcon:C.clearIcon,spinner:C.spinner,inifinite:C.inifinite,inifiniteSpinner:C.inifiniteSpinner,dropdown:[C.dropdown].concat(y.value==="top"?C.dropdownTop:[]).concat(!l.value||!r.value||!b.value?C.dropdownHidden:[]),options:[C.options].concat(y.value==="top"?C.optionsTop:[]),group:C.group,groupLabel:_=>{let B=[C.groupLabel];return c(_)?B.push(u(_)?C.groupLabelSelectedPointed:C.groupLabelPointed):u(_)&&m.value?B.push(d(_)?C.groupLabelSelectedDisabled:C.groupLabelSelected):d(_)&&B.push(C.groupLabelDisabled),m.value&&B.push(C.groupLabelPointable),B},groupOptions:C.groupOptions,option:(_,B)=>{let E=[C.option];return c(_)?E.push(u(_)?C.optionSelectedPointed:C.optionPointed):u(_)?E.push(d(_)?C.optionSelectedDisabled:C.optionSelected):(d(_)||B&&d(B))&&E.push(C.optionDisabled),E},noOptions:C.noOptions,noResults:C.noResults,assist:C.assist,fakeInput:C.fakeInput}}),showDropdown:b}}function xm(a,t,o){const{limit:s,infinite:n}=e.toRefs(a),r=o.isOpen,i=o.offset,l=o.search,c=o.pfo,u=o.eo,d=e.ref(null),p=e.ref(null),m=e.computed(()=>i.value<c.value.length),h=y=>{const{isIntersecting:v,target:b}=y[0];if(v){const g=b.offsetParent,C=g.scrollTop;i.value+=s.value==-1?10:s.value,e.nextTick(()=>{g.scrollTop=C})}},f=()=>{r.value&&i.value<c.value.length?d.value.observe(p.value):!r.value&&d.value&&d.value.disconnect()};return e.watch(r,()=>{n.value&&f()}),e.watch(l,()=>{n.value&&(i.value=s.value,f())},{flush:"post"}),e.watch(u,()=>{n.value&&f()},{immediate:!1,flush:"post"}),e.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(h))}),{hasMore:m,infiniteLoader:p}}function Wm(a,t,o){const{placeholder:s,id:n,valueProp:r,label:i,mode:l,groupLabel:c,aria:u,searchable:d}=e.toRefs(a),p=o.pointer,m=o.iv,h=o.hasSelected,f=o.multipleLabelText,y=e.ref(null),v=e.computed(()=>{let O=[];return n&&n.value&&O.push(n.value),O.push("assist"),O.join("-")}),b=e.computed(()=>{let O=[];return n&&n.value&&O.push(n.value),O.push("multiselect-options"),O.join("-")}),g=e.computed(()=>{let O=[];if(n&&n.value&&O.push(n.value),p.value)return O.push(p.value.group?"multiselect-group":"multiselect-option"),O.push(p.value.group?p.value.index:p.value[r.value]),O.join("-")}),C=e.computed(()=>s.value),_=e.computed(()=>l.value!=="single"),B=e.computed(()=>{let O="";return l.value==="single"&&h.value&&(O+=m.value[i.value]),l.value==="multiple"&&h.value&&(O+=f.value),l.value==="tags"&&h.value&&(O+=m.value.map(U=>U[i.value]).join(", ")),O}),E=e.computed(()=>{let O={...u.value};return d.value&&(O["aria-labelledby"]=O["aria-labelledby"]?`${v.value} ${O["aria-labelledby"]}`:v.value,B.value&&O["aria-label"]&&(O["aria-label"]=`${B.value}, ${O["aria-label"]}`)),O}),N=O=>{let U=[];return n&&n.value&&U.push(n.value),U.push("multiselect-option"),U.push(O[r.value]),U.join("-")},D=O=>{let U=[];return n&&n.value&&U.push(n.value),U.push("multiselect-group"),U.push(O.index),U.join("-")},j=O=>{let U=[];return U.push(O),U.join(" ")},F=O=>{let U=[];return U.push(O),U.join(" ")},Z=O=>`${O} ❎`;return e.onMounted(()=>{if(n&&n.value&&document&&document.querySelector){let O=document.querySelector(`[for="${n.value}"]`);y.value=O?O.innerText:null}}),{arias:E,ariaLabel:B,ariaAssist:v,ariaControls:b,ariaPlaceholder:C,ariaMultiselectable:_,ariaActiveDescendant:g,ariaOptionId:N,ariaOptionLabel:j,ariaGroupId:D,ariaGroupLabel:F,ariaTagLabel:Z}}function qm(a,t,o){const{locale:s,fallbackLocale:n}=e.toRefs(a);return{localize:i=>!i||typeof i!="object"?i:i&&i[s.value]?i[s.value]:i&&s.value&&i[s.value.toUpperCase()]?i[s.value.toUpperCase()]:i&&i[n.value]?i[n.value]:i&&n.value&&i[n.value.toUpperCase()]?i[n.value.toUpperCase()]:i&&Object.keys(i)[0]?i[Object.keys(i)[0]]:""}}function Ym(a,t,o){const s=e.ref(null),n=e.ref(null),r=e.ref(null),i=e.ref(null),l=e.ref(null);return{multiselect:s,wrapper:n,tags:r,input:i,dropdown:l}}function Km(a,t,o,s={}){return o.forEach(n=>{n&&(s={...s,...n(a,t,s)})}),s}var Ue={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(a,t){return Km(a,t,[Ym,qm,O3,D3,Um,I3,A3,Fm,H3,xm,R3,zm,Zm,Wm])},beforeMount(){var a,t;((t=(a=this.$root.constructor)==null?void 0:a.version)!=null&&t.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Gm=["id","dir"],Xm=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Qm=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Jm=["onKeyup","aria-label"],e5=["onClick"],t5=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],a5=["innerHTML"],o5=["id"],n5=["id"],s5=["id","aria-label","aria-selected"],i5=["data-pointed","onMouseenter","onMousedown"],r5=["innerHTML"],l5=["aria-label"],c5=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],d5=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],u5=["innerHTML"],p5=["innerHTML"],m5=["value"],f5=["name","value"],v5=["name","value"],h5=["id"];function C5(a,t,o,s,n,r){return e.openBlock(),e.createElementBlock("div",{ref:"multiselect",class:e.normalizeClass(a.classList.container),id:o.searchable?void 0:o.id,dir:o.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...i)=>a.handleFocusIn&&a.handleFocusIn(...i)),onFocusout:t[11]||(t[11]=(...i)=>a.handleFocusOut&&a.handleFocusOut(...i)),onKeyup:t[12]||(t[12]=(...i)=>a.handleKeyup&&a.handleKeyup(...i)),onKeydown:t[13]||(t[13]=(...i)=>a.handleKeydown&&a.handleKeydown(...i))},[e.createElementVNode("div",e.mergeProps({class:a.classList.wrapper,onMousedown:t[9]||(t[9]=(...i)=>a.handleMousedown&&a.handleMousedown(...i)),ref:"wrapper",tabindex:a.tabindex,"aria-controls":o.searchable?void 0:a.ariaControls,"aria-placeholder":o.searchable?void 0:a.ariaPlaceholder,"aria-expanded":o.searchable?void 0:a.isOpen,"aria-activedescendant":o.searchable?void 0:a.ariaActiveDescendant,"aria-multiselectable":o.searchable?void 0:a.ariaMultiselectable,role:o.searchable?void 0:"combobox"},o.searchable?{}:a.arias),[e.createCommentVNode(" Search "),o.mode!=="tags"&&o.searchable&&!o.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:o.inputType,modelValue:a.search,value:a.search,class:a.classList.search,autocomplete:o.autocomplete,id:o.searchable?o.id:void 0,onInput:t[0]||(t[0]=(...i)=>a.handleSearchInput&&a.handleSearchInput(...i)),onKeypress:t[1]||(t[1]=(...i)=>a.handleKeypress&&a.handleKeypress(...i)),onPaste:t[2]||(t[2]=e.withModifiers((...i)=>a.handlePaste&&a.handlePaste(...i),["stop"])),ref:"input","aria-controls":a.ariaControls,"aria-placeholder":a.ariaPlaceholder,"aria-expanded":a.isOpen,"aria-activedescendant":a.ariaActiveDescendant,"aria-multiselectable":a.ariaMultiselectable,role:"combobox"},{...o.attrs,...a.arias}),null,16,Qm)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Tags (with search) "),o.mode=="tags"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.classList.tags),"data-tags":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.iv,(i,l,c)=>e.renderSlot(a.$slots,"tag",{option:i,handleTagRemove:a.handleTagRemove,disabled:o.disabled},()=>[(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([a.classList.tag,i.disabled?a.classList.tagDisabled:null]),tabindex:"-1",onKeyup:e.withKeys(u=>a.handleTagRemove(i,u),["enter"]),key:c,"aria-label":a.ariaTagLabel(a.localize(i[o.label]))},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagWrapper)},e.toDisplayString(a.localize(i[o.label])),3),!o.disabled&&!i.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(a.classList.tagRemove),onClick:e.withModifiers(u=>a.handleTagRemove(i,u),["stop"])},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagRemoveIcon)},null,2)],10,e5)):e.createCommentVNode("v-if",!0)],42,Jm))])),256)),e.createElementVNode("div",{class:e.normalizeClass(a.classList.tagsSearchWrapper),ref:"tags"},[e.createCommentVNode(" Used for measuring search width "),e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagsSearchCopy)},e.toDisplayString(a.search),3),e.createCommentVNode(" Actual search input "),o.searchable&&!o.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:o.inputType,modelValue:a.search,value:a.search,class:a.classList.tagsSearch,id:o.searchable?o.id:void 0,autocomplete:o.autocomplete,onInput:t[3]||(t[3]=(...i)=>a.handleSearchInput&&a.handleSearchInput(...i)),onKeypress:t[4]||(t[4]=(...i)=>a.handleKeypress&&a.handleKeypress(...i)),onPaste:t[5]||(t[5]=e.withModifiers((...i)=>a.handlePaste&&a.handlePaste(...i),["stop"])),ref:"input","aria-controls":a.ariaControls,"aria-placeholder":a.ariaPlaceholder,"aria-expanded":a.isOpen,"aria-activedescendant":a.ariaActiveDescendant,"aria-multiselectable":a.ariaMultiselectable,role:"combobox"},{...o.attrs,...a.arias}),null,16,t5)):e.createCommentVNode("v-if",!0)],2)],2)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Single label "),o.mode=="single"&&a.hasSelected&&!a.search&&a.iv?e.renderSlot(a.$slots,"singlelabel",{key:2,value:a.iv},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.singleLabel)},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.singleLabelText)},e.toDisplayString(a.localize(a.iv[o.label])),3)],2)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Multiple label "),o.mode=="multiple"&&a.hasSelected&&!a.search?e.renderSlot(a.$slots,"multiplelabel",{key:3,values:a.iv},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.multipleLabel),innerHTML:a.multipleLabelText},null,10,a5)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Placeholder "),o.placeholder&&!a.hasSelected&&!a.search?e.renderSlot(a.$slots,"placeholder",{key:4},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.placeholder),"aria-hidden":"true"},e.toDisplayString(o.placeholder),3)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Spinner "),o.loading||a.resolving?e.renderSlot(a.$slots,"spinner",{key:5},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.spinner),"aria-hidden":"true"},null,2)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Clear "),a.hasSelected&&!o.disabled&&o.canClear&&!a.busy?e.renderSlot(a.$slots,"clear",{key:6,clear:a.clear},()=>[e.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:e.normalizeClass(a.classList.clear),onClick:t[6]||(t[6]=(...i)=>a.clear&&a.clear(...i)),onKeyup:t[7]||(t[7]=e.withKeys((...i)=>a.clear&&a.clear(...i),["enter"]))},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.clearIcon)},null,2)],34)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Caret "),o.caret&&o.showOptions?e.renderSlot(a.$slots,"caret",{key:7,handleCaretClick:a.handleCaretClick,isOpen:a.isOpen},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.caret),onClick:t[8]||(t[8]=(...i)=>a.handleCaretClick&&a.handleCaretClick(...i)),"aria-hidden":"true"},null,2)]):e.createCommentVNode("v-if",!0)],16,Xm),e.createCommentVNode(" Options "),(e.openBlock(),e.createBlock(e.Teleport,{to:o.appendTo||"body",disabled:!o.appendToBody&&!o.appendTo},[e.createElementVNode("div",{id:`${o.id}-dropdown`,class:e.normalizeClass(a.classList.dropdown),tabindex:"-1",ref:"dropdown"},[e.renderSlot(a.$slots,"beforelist",{options:a.fo}),e.createElementVNode("ul",{class:e.normalizeClass(a.classList.options),id:a.ariaControls,role:"listbox"},[o.groups?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.fg,(i,l,c)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.group),key:c,id:a.ariaGroupId(i),"aria-label":a.ariaGroupLabel(a.localize(i[o.groupLabel])),"aria-selected":a.isSelected(i),role:"option"},[i.__CREATE__?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.classList.groupLabel(i)),"data-pointed":a.isPointed(i),onMouseenter:u=>a.setPointer(i,l),onMousedown:e.withModifiers(u=>a.handleGroupClick(i),["prevent"])},[e.renderSlot(a.$slots,"grouplabel",{group:i,isSelected:a.isSelected,isPointed:a.isPointed},()=>[e.createElementVNode("span",{innerHTML:a.localize(i[o.groupLabel])},null,8,r5)])],42,i5)),e.createElementVNode("ul",{class:e.normalizeClass(a.classList.groupOptions),"aria-label":a.ariaGroupLabel(a.localize(i[o.groupLabel])),role:"group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.__VISIBLE__,(u,d,p)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.option(u,i)),"data-pointed":a.isPointed(u),"data-selected":a.isSelected(u)||void 0,key:p,onMouseenter:m=>a.setPointer(u),onMousedown:e.withModifiers(m=>a.handleOptionClick(u),["prevent"]),id:a.ariaOptionId(u),"aria-selected":a.isSelected(u),"aria-label":a.ariaOptionLabel(a.localize(u[o.label])),role:"option"},[e.renderSlot(a.$slots,"option",{option:u,isSelected:a.isSelected,isPointed:a.isPointed,search:a.search},()=>[e.createElementVNode("span",null,e.toDisplayString(a.localize(u[o.label])),1)])],42,c5))),128))],10,l5)],10,s5))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.fo,(i,l,c)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.option(i)),"data-pointed":a.isPointed(i),"data-selected":a.isSelected(i)||void 0,key:c,onMouseenter:u=>a.setPointer(i),onMousedown:e.withModifiers(u=>a.handleOptionClick(i),["prevent"]),id:a.ariaOptionId(i),"aria-selected":a.isSelected(i),"aria-label":a.ariaOptionLabel(a.localize(i[o.label])),role:"option"},[e.renderSlot(a.$slots,"option",{option:i,isSelected:a.isSelected,isPointed:a.isPointed,search:a.search},()=>[e.createElementVNode("span",null,e.toDisplayString(a.localize(i[o.label])),1)])],42,d5))),128))],10,n5),a.noOptions?e.renderSlot(a.$slots,"nooptions",{key:0},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.noOptions),innerHTML:a.localize(o.noOptionsText)},null,10,u5)]):e.createCommentVNode("v-if",!0),a.noResults?e.renderSlot(a.$slots,"noresults",{key:1},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.noResults),innerHTML:a.localize(o.noResultsText)},null,10,p5)]):e.createCommentVNode("v-if",!0),o.infinite&&a.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(a.classList.inifinite),ref:"infiniteLoader"},[e.renderSlot(a.$slots,"infinite",{},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.inifiniteSpinner)},null,2)])],2)):e.createCommentVNode("v-if",!0),e.renderSlot(a.$slots,"afterlist",{options:a.fo})],10,o5)],8,["to","disabled"])),e.createCommentVNode(" Hacky input element to show HTML5 required warning "),o.required?(e.openBlock(),e.createElementBlock("input",{key:0,class:e.normalizeClass(a.classList.fakeInput),tabindex:"-1",value:a.textValue,required:""},null,10,m5)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Native input support "),o.nativeSupport?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.mode=="single"?(e.openBlock(),e.createElementBlock("input",{key:0,type:"hidden",name:o.name,value:a.plainValue!==void 0?a.plainValue:""},null,8,f5)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.plainValue,(i,l)=>(e.openBlock(),e.createElementBlock("input",{type:"hidden",name:`${o.name}[]`,value:i,key:l},null,8,v5))),128))],64)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Screen reader assistive text "),o.searchable&&a.hasSelected?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(a.classList.assist),id:a.ariaAssist,"aria-hidden":"true"},e.toDisplayString(a.ariaLabel),11,h5)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Create height for empty input "),e.createElementVNode("div",{class:e.normalizeClass(a.classList.spacer)},null,2)],42,Gm)}Ue.render=C5;Ue.__file="src/Multiselect.vue";const le=e.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(a){const t=a,o=e.toRef(()=>t.appendTo),s=e.ref();return t.detached&&T3({multiselect:s,appendTo:o.value}),(n,r)=>(e.openBlock(),e.createBlock(e.unref(Ue),{ref_key:"multiselectRef",ref:s,class:"ao-multiselect"},e.createSlots({_:2},[e.renderList(n.$slots,(i,l)=>({name:l,fn:e.withCtx(c=>[e.renderSlot(n.$slots,l,e.normalizeProps(e.guardReactiveProps(c??{})))])}))]),1536))}});var Qo;function De(){const a=g5(),t=a.appContext.config.globalProperties;return{i18next:t.$i18next,t:t.$t.bind(a.proxy)}}function g5(){const a=e.getCurrentInstance();if(!a)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return a}e.defineComponent({props:{translation:{type:String,required:!0}},setup(a,{slots:t}){return()=>{const o=a.translation,s=[];let n,r=0;for(;(n=Qo.exec(o))!==null;){s.push(o.substring(r,n.index));const i=t[n[1]];i?s.push(...i()):s.push(n[0]),r=Qo.lastIndex}return s.push(o.substring(r)),s}}});async function Ne(a,t){if(t&&a&&a.length-t.length===1){const o=new Set(t.map(l=>l.id)),s=a.filter(l=>!o.has(l.id));if(s.length!==1)return;const n=s[0].id;await e.nextTick();const r=document.getElementById(n);r==null||r.focus(),await e.nextTick();const i=document.getElementById(n);i==null||i.select()}}const _5={class:"ao-tasks"},y5={class:"ao-tasks__list"},b5=["id","value","readonly","onChange","onKeyup"],k5={class:"ao-tasks__list-footer"},w5=e.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(a,{emit:t}){const o=a,{t:s}=De();e.watch(()=>o.tasks,(p,m)=>{Ne(p,m)});const n=e.computed(()=>{var p;return((p=o.users)==null?void 0:p.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),r=()=>{const p=o.tasks.length,m={name:s("task.defaultName",{idx:p+1}),activityId:o.activityId};t("add",m)},i=(p,m)=>{const f=p.target.value;t("update",{id:m,name:f})},l=(p,m)=>{o.isEditable&&t("update",{id:p,isDone:m})},c=p=>{t("delete",{id:p})},u=(p,m)=>{t("update",{id:m,assigneeId:p[0]??null})},d=p=>{const m=p.target;m==null||m.blur()};return(p,m)=>(e.openBlock(),e.createElementBlock("div",_5,[e.createElementVNode("ul",y5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.tasks,h=>{var f,y;return e.openBlock(),e.createElementBlock("li",{key:h.id,class:"ao-subtask"},[((f=p.isCheckable)==null?void 0:f.call(p,h))??!1?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-subtask__check","icon-name":h.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!p.isEditable,variant:"ghost",color:"primary",onClick:()=>l(h.id,!h.isDone)},null,8,["icon-name","disabled","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("input",{id:h.id,value:h.name,readonly:!p.isEditable,class:e.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":h.isDone}]),type:"text",onChange:v=>i(v,h.id),onKeyup:e.withKeys(d,["enter"])},null,42,b5),e.createTextVNode(". "),!p.isTemplate&&p.users?(e.openBlock(),e.createBlock(le,{key:1,value:(y=h.assignee)!=null&&y.id?[h.assignee.id]:[],options:n.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:p.$t("feed.filters.assignee.placeholder"),disabled:!p.isEditable,caret:p.isEditable,onChange:v=>u(v,h.id)},{tag:e.withCtx(({option:v,handleTagRemove:b})=>[e.createVNode(Oe,{"user-name":v.label,"avatar-url":v.avatar,"is-closable":!0,onClose:g=>b(v,g)},null,8,["user-name","avatar-url","onClose"])]),_:2},1032,["value","options","placeholder","disabled","caret","onChange"])):e.createCommentVNode("",!0),p.isEditable?(e.openBlock(),e.createBlock(G,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>c(h.id)},null,8,["onClick"])):e.createCommentVNode("",!0)])}),128))]),e.createElementVNode("div",k5,[p.isEditable?(e.openBlock(),e.createBlock(G,{key:0,label:p.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:r},null,8,["label"])):e.createCommentVNode("",!0)])]))}});const $5=["onDrop","onDragenter","onDragover","onDragleave"],E5={class:"ao-files__placeholder"},B5={key:0,class:"ao-files__list"},V5=["href"],S5={class:"ao-file__title"},N5={key:0},M5={class:"ao-files__input"},T5={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},A5={class:"ao-button__label"},O5={class:"ao-files__dropzone"},I5={class:"ao-files__dropzone-label"},D5=e.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(a,{emit:t}){const o=a,s=d=>{t("remove",d)},n=d=>{const p=d.target,m=Array.from(p.files??[]);t("add",m)},r=["dragenter","dragover","dragleave","drop"];e.onMounted(()=>{r.forEach(d=>{document.body.addEventListener(d,p=>p.preventDefault())})}),e.onUnmounted(()=>{r.forEach(d=>{document.body.removeEventListener(d,p=>p.preventDefault())})});const i=e.ref(!1);function l(){o.isEditable&&(i.value=!0)}function c(){i.value=!1}e.watch(i,d=>{t("toggleIsDropActive",d)});function u(d){var m;c();const p=Array.from(((m=d.dataTransfer)==null?void 0:m.files)||[]);d.dataTransfer&&t("add",p)}return(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:e.withModifiers(u,["prevent"]),onDragenter:e.withModifiers(l,["prevent"]),onDragover:e.withModifiers(l,["prevent"]),onDragleave:e.withModifiers(c,["prevent"])},[e.renderSlot(d.$slots,"default",{},()=>[e.createElementVNode("span",E5,e.toDisplayString(d.$t("activity.attachment.placeholder.resting")),1)]),d.attachments?(e.openBlock(),e.createElementBlock("ul",B5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.attachments,m=>(e.openBlock(),e.createElementBlock("li",{key:m.id,class:"ao-file"},[e.createElementVNode("a",{class:"ao-file__link",href:m.url,target:"_blank",rel:"noopener noreferrer"},[e.createVNode(J,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),e.createElementVNode("span",S5,e.toDisplayString(m.name),1)],8,V5),d.isEditable?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>s(m)},null,8,["onClick"])):e.createCommentVNode("",!0)]))),128)),d.isEditable?(e.openBlock(),e.createElementBlock("li",N5,[e.createElementVNode("label",M5,[e.createElementVNode("div",T5,[e.createVNode(J,{name:"Add",size:"sm"}),e.createElementVNode("span",A5,e.toDisplayString(d.$t("activity.attachment.button.resting")),1)]),e.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:n},null,32)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",O5,[e.createElementVNode("span",I5,e.toDisplayString(d.$t("activity.attachment.placeholder.active")),1)],512),[[e.vShow,i.value]])],42,$5))}});const L5={class:"ao-comment"},P5={class:"ao-comment__created-at"},H5={class:"ao-comment__body"},R5={class:"ao-comment__content-wrapper"},j5={key:0,class:"ao-comment__content"},U5=["rows"],F5=["onClick"],z5={key:1,class:"ao-comment__footer"},Z5=e.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(a,{emit:t}){const o=a,s=e.computed(()=>{const B=o.user;return B?`${B==null?void 0:B.firstName} ${B==null?void 0:B.lastName}`:null}),n=e.ref(null),r=e.ref(o.content),{isEditing:i,toggleIsEditing:l,onUpdate:c,onDiscard:u}=an(n),d=e.computed(()=>{const B=o.editedAt&&Lt(o.editedAt),E=Lt(o.createdAt),N=new Date,D=B??E;return D&&M0(D,N)});e.computed(()=>i.value?"textarea":"p");const p=u(),m=c(B=>{t("edit",B)}),h=()=>{t("remove")},f=e.ref(2);e.onUpdated(()=>{e.nextTick(()=>{var B;if(!i.value){const E=(B=n.value)==null?void 0:B.getClientRects().length;f.value=E||2}})});const{showMentionList:y,mentionListPosition:v,filteredUsers:b,handleInput:g,handleKeydown:C,selectUserMention:_}=En(n,r,e.toRef(o,"mentionableUsers"));return(B,E)=>{var N;return e.openBlock(),e.createElementBlock("li",L5,[s.value?(e.openBlock(),e.createBlock(Oe,{key:0,"avatar-url":(N=B.user)==null?void 0:N.avatarUrl,"user-name":s.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):e.createCommentVNode("",!0),e.createElementVNode("span",P5,e.toDisplayString(d.value),1),e.createElementVNode("div",H5,[e.createElementVNode("div",R5,[e.unref(i)?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"commentContent",ref:n,class:"ao-comment__content","onUpdate:modelValue":E[0]||(E[0]=D=>r.value=D),rows:f.value,onInput:E[1]||(E[1]=(...D)=>e.unref(g)&&e.unref(g)(...D)),onKeydown:E[2]||(E[2]=(...D)=>e.unref(C)&&e.unref(C)(...D)),onKeyup:[E[3]||(E[3]=e.withKeys((...D)=>e.unref(p)&&e.unref(p)(...D),["esc"])),E[4]||(E[4]=e.withKeys(e.withModifiers((...D)=>e.unref(m)&&e.unref(m)(...D),["ctrl"]),["enter"]))]},null,40,U5)),[[e.vModelText,r.value]]):(e.openBlock(),e.createElementBlock("p",j5,e.toDisplayString(B.content),1)),e.unref(y)&&e.unref(b).length>0?(e.openBlock(),e.createElementBlock("ul",{key:2,class:"mention-list",style:e.normalizeStyle({top:e.unref(v).top+"px",left:e.unref(v).left+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),D=>(e.openBlock(),e.createElementBlock("li",{key:D.id,onClick:j=>e.unref(_)(D.name)}," @"+e.toDisplayString(D.name),9,F5))),128))],4)):e.createCommentVNode("",!0)])]),B.isEditable?(e.openBlock(),e.createElementBlock("div",z5,[e.unref(i)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(G,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:e.unref(p)},null,8,["onClick"]),e.createVNode(G,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:e.unref(m)},null,8,["onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(G,{label:B.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:h},null,8,["label"]),e.createVNode(G,{label:B.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:e.unref(l)},null,8,["label","onClick"])],64))])):e.createCommentVNode("",!0)])}}});const x5={class:"ao-comments__header"},W5=["onSubmit"],q5=["placeholder"],Y5={class:"ao-comments__form-submit"},K5={key:0,class:"ao-comments__list"},G5=["onClick"],X5=e.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(a,{emit:t}){const o=a,s=e.computed(()=>(o.comments||[]).toSorted((_,B)=>y2(Lt(_.createdAt),Lt(B.createdAt)))),n=C=>o.users.find(B=>B.id===C),r=e.ref();e.nextTick(()=>{r.value&&(r.value.scrollTop=r.value.scrollHeight)});const i=e.toRef(o.newComment),l=e.computed({get(){return i.value},set(C){i.value=C}}),c=()=>{const C=i.value.trim();C&&(t("createComment",{authorId:o.userId,message:C,mentionedUserIds:g(C)}),i.value="")},u=(C,_)=>{t("updateComment",{id:C,message:_,mentionedUserIds:g(_)})},d=C=>{t("removeComment",{id:C})},p=e.ref(),{showMentionList:m,mentionListPosition:h,filteredUsers:f,handleInput:y,handleKeydown:v,selectUserMention:b,getMentionedUserIds:g}=En(p,l,e.toRef(o,"users"));return(C,_)=>{var B;return e.openBlock(),e.createElementBlock("div",{ref_key:"commentsContainer",ref:r,class:"ao-comments"},[e.createElementVNode("div",x5,[e.createElementVNode("form",{class:"ao-comments__form",onSubmit:e.withModifiers(c,["prevent"])},[e.withDirectives(e.createElementVNode("textarea",{ref_key:"textareaRef",ref:p,"onUpdate:modelValue":_[0]||(_[0]=E=>l.value=E),rows:"2",class:"ao-field__textarea ao-comments__form-textarea",placeholder:C.$t("activity.comment.label"),onInput:_[1]||(_[1]=(...E)=>e.unref(y)&&e.unref(y)(...E)),onKeydown:_[2]||(_[2]=(...E)=>e.unref(v)&&e.unref(v)(...E))},null,40,q5),[[e.vModelText,l.value,void 0,{trim:!0}]]),e.createElementVNode("div",Y5,[e.createVNode(G,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],40,W5)]),((B=s.value)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("ul",K5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,E=>(e.openBlock(),e.createBlock(Z5,{key:E.id,user:n(E.author.id),content:E.message,"created-at":E.createdAt,"edited-at":E.updatedAt,"is-editable":E.author.id===C.userId,"mentionable-users":C.users,class:"ao-comment",onEdit:N=>u(E.id,N),onRemove:()=>d(E.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):e.createCommentVNode("",!0),e.unref(m)&&e.unref(f).length>0?(e.openBlock(),e.createElementBlock("ul",{key:1,class:"mention-list",style:e.normalizeStyle({top:e.unref(h).top+"px",left:e.unref(h).left+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),E=>(e.openBlock(),e.createElementBlock("li",{key:E.id,onClick:N=>e.unref(b)(E.name)}," @"+e.toDisplayString(E.name),9,G5))),128))],4)):e.createCommentVNode("",!0)],512)}}});const zn=e.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(a,{emit:t}){const o=a,s=()=>{t("update:modelValue",!o.modelValue)};return(n,r)=>(e.openBlock(),e.createBlock(G,{color:n.modelValue?n.color:e.unref(Ja).NEUTRAL,"icon-position":"start",onClick:r[0]||(r[0]=()=>s())},null,8,["color"]))}}),Q5=e.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:a=>["underline"].includes(a)}},emits:["update:modelValue"],methods:{selectTab(a){this.$emit("update:modelValue",a)}}});const J5=["onClick"],e7={class:"tab-button__label"},t7={key:0,class:"tab-button__badge"};function a7(a,t,o,s,n,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":a.variant==="underline"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tabs,i=>(e.openBlock(),e.createElementBlock("button",{key:i.value,class:e.normalizeClass(["tab-button",{"tab-button--active":i.value===a.modelValue},{"tab-button--underline":a.variant==="underline"}]),type:"button",onClick:l=>a.selectTab(i.value)},[e.createElementVNode("span",e7,e.toDisplayString(i.label),1),i.count!==void 0&&i.count>0?(e.openBlock(),e.createElementBlock("span",t7,e.toDisplayString(i.count),1)):e.createCommentVNode("",!0)],10,J5))),128))],2)}const qt=H(Q5,[["render",a7],["__scopeId","data-v-0e91b31f"]]),o7={class:"ao-activity-details"},n7={class:"ao-activity-details__main"},s7={class:"ao-activity-details__header"},i7={key:1,class:"ao-activity__category"},r7={class:"ao-feed__activity-details__header"},l7={key:0,class:"ao-field ao-feed__activity-details__project"},c7={class:"ao-field__label"},d7={key:1,class:"ao-field ao-feed__activity-details__project"},u7={class:"ao-field__label"},p7={class:"ao-activity-details__content"},m7={class:"ao-activity-details__tab-content"},f7={class:"ao-fieldset"},v7={class:"ao-field__row"},h7=["readonly"],C7={class:"ao-activity-details__tab-content"},g7={class:"ao-fieldset"},_7={class:"ao-fieldset__body"},y7={class:"ao-activity-details__tab-content"},b7={key:0,class:"ao-fieldset"},k7={class:"ao-activity-details__aside"},w7={class:"ao-activity-details__close-button"},$7={key:0,class:"ao-activity-details__aside-section"},E7={class:"ao-field"},B7={class:"ao-field__label"},V7={class:"ao-activity-details__aside-section"},S7={class:"ao-field ao-field--multiselect"},N7={class:"assignee-inline"},M7={class:"ao-field__label"},T7={class:"ao-activity-details__aside-section"},A7={key:0,class:"ao-field__row"},O7={class:"ao-field"},I7={class:"ao-field__label"},D7=["readonly"],L7={class:"ao-activity-details__aside-section"},P7={class:"ao-field__row"},H7={class:"ao-field ao-field--inline"},R7={class:"ao-field__label"},j7=["readonly"],U7={class:"ao-field__row"},F7={class:"ao-field ao-field--inline"},z7={class:"ao-field__label"},Z7={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},x7={class:"ao-activity-details__aside-section"},W7={class:"ao-fieldset ao-activity-details__aside-section"},q7={class:"ao-fieldset__title"},Y7={class:"ao-fieldset__body"},K7={class:"ao-field__row"},G7={class:"ao-field ao-field--multiselect"},X7={class:"ao-field__label"},Q7={class:"ao-field__row"},J7={class:"ao-field ao-field--multiselect"},ef={class:"ao-field__label"},vo=e.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(a,{emit:t}){const o=a,{t:s}=De(),n=e.ref("description"),r=e.computed(()=>{var k,M;return[{label:s("activity.description.label")||"Description",value:"description"},{label:s("activity.tasks.title")||"Checklist",value:"checklist",count:((k=o.activity.tasks)==null?void 0:k.length)??0},{label:s("activity.comments.title")||"Commentaires",value:"comments",count:((M=o.activity.comments)==null?void 0:M.length)??0}]}),i=e.computed(()=>{var k;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((k=o.activity.assignee)==null?void 0:k.id):!1}),l=k=>{t("update:activity",{id:o.activity.id,name:k})},c=e.computed({get(){return o.activity.description??""},set(k){t("update:activity",{id:o.activity.id,description:k})}}),u=e.computed({get(){return o.activity.estimation??0},set(k){t("update:activity",{id:o.activity.id,estimation:k})}}),d=e.computed({get(){var M;const k=(M=o.timeTrackingData)==null?void 0:M[o.activity.id];return(k==null?void 0:k.timeSpent)??0},set(){}}),p=e.computed(()=>{var M;return((M=o.activity.project)==null?void 0:M.estimationUnit)==="days"?"d":"h"}),m=e.computed(()=>{var M;const k=(M=o.activity.project)==null?void 0:M.estimationUnit;return ba(d.value,k)}),h=e.computed({get(){return o.activity.important??!1},set(k){t("update:activity",{id:o.activity.id,important:k})}});e.computed({get(){return o.activity.private??!1},set(k){t("update:activity",{id:o.activity.id,private:k})}});const f=e.computed({get(){return o.activity.deadline},set(k){t("update:activity",{id:o.activity.id,deadline:k})}});e.computed(()=>{var k;return(k=o.activityTypes)==null?void 0:k.map(M=>({label:M.name,value:M.id}))}),e.computed({get(){var k;return(k=o.activity.type)==null?void 0:k.id},set(k){t("update:activity",{id:o.activity.id,typeId:k})}});const y=e.computed(()=>o.templateActivities.filter(k=>k.id!==o.activity.id).map(k=>({label:k.name,value:k.id}))),v=e.computed({get(){var k;return(k=o.activity.dependingOn)==null?void 0:k.map(M=>M.id)},set(k){k&&t("update:activity",{id:o.activity.id,dependingOn:k})}}),b=e.computed(()=>y.value.map(k=>{var M;return{...k,disabled:(M=o.activity.blocking)==null?void 0:M.some(I=>I.id===k.value)}})),g=e.computed({get(){var k;return(k=o.activity.blocking)==null?void 0:k.map(M=>M.id)},set(k){k&&t("update:activity",{id:o.activity.id,blocking:k})}}),C=e.computed(()=>y.value.map(k=>{var M;return{...k,disabled:(M=o.activity.dependingOn)==null?void 0:M.some(I=>I.id===k.value)}})),_=k=>{t("addSubtask",k)},B=k=>{t("updateSubtask",k)},E=k=>{t("deleteSubtask",k)};function N(){o.userId?F.value=[o.userId]:console.error("Failed assigning to self: userId is missing")}function D(k){F.value=[k]}const j=e.computed(()=>{var M;const k=new Map;return(M=o.users)==null||M.forEach(I=>{k.has(I.id)||k.set(I.id,I)}),Array.from(k.values()).map(I=>({label:`${I.firstName} ${I.lastName}`,value:I.id,avatar:I.avatarUrl}))}),F=e.computed({get(){var k,M;return(k=o.activity.assignee)!=null&&k.id?[(M=o.activity.assignee)==null?void 0:M.id]:[]},set(k){t("update:activity",{id:o.activity.id,assigneeId:k[0]??null})}}),Z=k=>{t("addFiles",{activityId:o.activity.id,files:k})},O=k=>{t("removeFile",{activityId:o.activity.id,file:k})},U=e.computed(()=>o.projects.map(k=>({value:k.id,label:k.name}))),K=e.computed(()=>{var M,I,T;const k=(T=(I=(M=o.activity)==null?void 0:M.project)==null?void 0:I.phases)==null?void 0:T.reduce((R,x)=>[...R,...x.milestones],[]);return k==null?void 0:k.map(R=>({value:R.id,label:R.name}))}),W=k=>{o.activity&&t("update:activity",{id:o.activity.id,projectId:k})},z=k=>{o.activity&&t("update:activity",{id:o.activity.id,milestoneId:k})},S=e.computed(()=>{var k;return(k=o.statuses)==null?void 0:k.map(M=>({value:M.id,label:M.name}))}),$=k=>{t("update:activity",{id:o.activity.id,statusId:k})},L=k=>{t("addComment",{...k,activityId:o.activity.id})},V=k=>{t("updateComment",k)},P=k=>{t("removeComment",k)};e.computed(()=>{var k,M;return((k=o.activity.createdBy)==null?void 0:k.firstName)&&((M=o.activity.createdBy)==null?void 0:M.lastName)&&`${o.activity.createdBy.firstName} ${o.activity.createdBy.lastName}`});function q(){const k=window.location.origin,M=o.activity.slug,I=`${k}/activity-feed/slug/${M}`;navigator.clipboard.writeText(I).then(()=>{console.log(`Link copied to clipboard: ${I}`),t("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),t("toast","clipboard.copy.error","error")})}return(k,M)=>(e.openBlock(),e.createBlock(wa,{onClose:M[9]||(M[9]=I=>k.$emit("close"))},{default:e.withCtx(()=>{var I,T,R;return[e.createElementVNode("div",o7,[e.createElementVNode("div",n7,[e.createElementVNode("div",s7,[k.activity.slug?(e.openBlock(),e.createBlock(Ot,{key:0,label:k.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:q},null,8,["label"])):e.createCommentVNode("",!0),k.breadcrumbs?(e.openBlock(),e.createElementBlock("div",i7,e.toDisplayString(k.breadcrumbs),1)):e.createCommentVNode("",!0),e.createVNode(se,{title:k.activity.name||"",level:4,"is-editable":i.value,"onUpdate:title":l},null,8,["title","is-editable"]),e.createElementVNode("div",r7,[U.value?(e.openBlock(),e.createElementBlock("label",l7,[e.createElementVNode("span",c7,e.toDisplayString(k.$t("activity.project.label")),1),e.createVNode(le,{options:U.value,value:(I=k.activity.project)==null?void 0:I.id,searchable:!0,disabled:!i.value,caret:i.value,onChange:W},null,8,["options","value","disabled","caret"])])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("label",d7,[e.createElementVNode("span",u7,e.toDisplayString(k.$t("activity.milestone.label")),1),e.createVNode(le,{options:K.value,value:(T=k.activity.milestone)==null?void 0:T.id,searchable:!0,disabled:!i.value,caret:i.value,onChange:z},null,8,["options","value","disabled","caret"])])):e.createCommentVNode("",!0)]),e.renderSlot(k.$slots,"header")]),e.createElementVNode("div",p7,[e.createVNode(qt,{modelValue:n.value,"onUpdate:modelValue":M[0]||(M[0]=x=>n.value=x),tabs:r.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),e.withDirectives(e.createElementVNode("div",m7,[e.createElementVNode("fieldset",f7,[e.createElementVNode("div",v7,[e.createVNode(D5,{attachments:k.activity.attachments,"is-editable":k.attachmentEnabled&&i.value&&k.isTemplate!==!0&&!!k.userId,onAdd:Z,onRemove:O},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":M[1]||(M[1]=x=>c.value=x),readonly:!i.value,rows:"6",class:"ao-activity-details__description-textarea"},null,8,h7),[[e.vModelText,c.value,void 0,{lazy:!0,trim:!0}]])]),_:1},8,["attachments","is-editable"])])])],512),[[e.vShow,n.value==="description"]]),e.withDirectives(e.createElementVNode("div",C7,[e.createElementVNode("fieldset",g7,[e.createElementVNode("div",_7,[e.createVNode(w5,{class:"ao-activity-details__tasks ao-field__row",tasks:k.activity.tasks||[],"activity-id":k.activity.id,users:k.users,"is-checkable":k.isTaskCheckable,"is-editable":i.value,"is-template":k.isTemplate,onAdd:_,onUpdate:B,onDelete:E},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[e.vShow,n.value==="checklist"]]),e.withDirectives(e.createElementVNode("div",y7,[k.isTemplate!==!0&&k.userId?(e.openBlock(),e.createElementBlock("div",b7,[e.createVNode(X5,{comments:k.activity.comments,users:k.users,"user-id":k.userId,onCreateComment:L,onUpdateComment:V,onRemoveComment:P},null,8,["comments","users","user-id"])])):e.createCommentVNode("",!0)],512),[[e.vShow,n.value==="comments"]])])]),e.createElementVNode("div",k7,[e.createElementVNode("div",w7,[e.createVNode(J,{name:"CloseRounded",onClick:M[2]||(M[2]=x=>k.$emit("close"))})]),S.value?(e.openBlock(),e.createElementBlock("div",$7,[e.createElementVNode("label",E7,[e.createElementVNode("span",B7,e.toDisplayString(k.$t("activity.status.label")),1),e.createVNode(le,{class:"ao-activity-details__multiselect",options:S.value,value:(R=k.activity.status)==null?void 0:R.id,"can-clear":!1,"can-deselect":!1,disabled:!i.value,caret:i.value,onChange:$},null,8,["options","value","disabled","caret"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",V7,[e.createElementVNode("div",S7,[e.createElementVNode("div",N7,[e.createElementVNode("span",M7,e.toDisplayString(k.$t("activity.assignee.label")),1),e.createVNode(G,{label:k.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:N},null,8,["label"])]),e.createVNode(le,{modelValue:F.value,"onUpdate:modelValue":M[3]||(M[3]=x=>F.value=x),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:j.value,"close-on-select":!0,searchable:!0,placeholder:k.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!i.value,caret:i.value,onSelect:D},{tag:e.withCtx(({option:x,handleTagRemove:ie})=>[e.createVNode(Oe,{"user-name":x.label,"avatar-url":x.avatar,"is-closable":!0,onClose:Ke=>ie(x,Ke)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),e.createElementVNode("div",T7,[k.isTemplate!==!0&&k.userId?(e.openBlock(),e.createElementBlock("div",A7,[e.createElementVNode("label",O7,[e.createElementVNode("span",I7,e.toDisplayString(k.$t("activity.deadline.label")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":M[4]||(M[4]=x=>f.value=x),readonly:!i.value,class:"ao-field__input",type:"date"},null,8,D7),[[e.vModelText,f.value,void 0,{lazy:!0}]])])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",L7,[e.createElementVNode("div",P7,[e.createElementVNode("label",H7,[e.createElementVNode("span",R7,e.toDisplayString(k.$t("activity.estimation.label"))+" ("+e.toDisplayString(p.value)+")",1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":M[5]||(M[5]=x=>u.value=x),readonly:!i.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,j7),[[e.vModelText,u.value,void 0,{lazy:!0,number:!0}]])])]),e.createElementVNode("div",U7,[e.createElementVNode("label",F7,[e.createElementVNode("span",z7,e.toDisplayString(k.$t("activity.timeSpent.label"))+" ("+e.toDisplayString(p.value)+")",1),e.createElementVNode("span",Z7,e.toDisplayString(m.value),1)])])]),e.createElementVNode("div",x7,[e.createVNode(zn,{modelValue:h.value,"onUpdate:modelValue":M[6]||(M[6]=x=>h.value=x),modelModifiers:{lazy:!0},label:k.$t("activity.important.label"),disabled:!i.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),e.createElementVNode("fieldset",W7,[e.createElementVNode("div",q7,[e.createVNode(J,{name:"FlowsheetOutlineRounded"}),e.createVNode(se,{level:4,title:k.$t("activity.dependencies.title")},null,8,["title"])]),e.createElementVNode("div",Y7,[e.createElementVNode("div",K7,[e.createElementVNode("label",G7,[e.createElementVNode("span",X7,e.toDisplayString(k.$t("activity.dependingOn.label")),1),e.createVNode(le,{modelValue:v.value,"onUpdate:modelValue":M[7]||(M[7]=x=>v.value=x),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:b.value,disabled:!i.value,caret:i.value},null,8,["modelValue","options","disabled","caret"])])]),e.createElementVNode("div",Q7,[e.createElementVNode("label",J7,[e.createElementVNode("span",ef,e.toDisplayString(k.$t("activity.blocking.label")),1),e.createVNode(le,{modelValue:g.value,"onUpdate:modelValue":M[8]||(M[8]=x=>g.value=x),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:C.value,disabled:!i.value,caret:i.value},null,8,["modelValue","options","disabled","caret"])])])])]),e.renderSlot(k.$slots,"default",{activity:k.activity})])])]}),_:3}))}});const tf=e.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(a,{emit:t}){const o=a,s=e.toRef(o.rule.itemType||ee.ACTIVITIES),n=e.computed({get(){return s.value},set(b){s.value=b,t("update:rule",{...o.rule,itemType:b,subItemId:void 0})}}),r=e.computed(()=>Object.values(ee)),i=e.computed({get(){return o.rule.subItemId},set(b){t("update:rule",{...o.rule,subItemId:b,itemType:o.rule.itemType||n.value})}}),l=e.computed(()=>{var g;return!o.templateActivities||!o.templateMilestones||!o.templatePhases?null:(g={[ee.ACTIVITIES]:o.templateActivities,[ee.MILESTONES]:o.templateMilestones,[ee.PHASES]:o.templatePhases}[s.value])==null?void 0:g.map(C=>({value:C.id,label:C.name}))}),c=e.toRef(o.rule.comparator),u=e.computed({get(){return c.value},set(b){t("update:rule",{...o.rule,comparator:b})}}),d=e.computed(()=>Object.values(nn)),p=e.toRef(o.rule.trigger),m=e.computed({get(){return p.value},set(b){t("update:rule",{...o.rule,trigger:b})}}),h=e.computed(()=>Object.values(sn)),f=e.computed({get(){return o.rule.duration},set(b){t("update:rule",{...o.rule,duration:b})}}),y=e.computed({get(){return o.rule.durationUnit},set(b){t("update:rule",{...o.rule,durationUnit:b})}}),v=e.computed(()=>Object.values(rn));return(b,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.tagName),{class:"ao-rule-line"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ue),{modelValue:n.value,"onUpdate:modelValue":g[0]||(g[0]=C=>n.value=C),options:r.value},null,8,["modelValue","options"]),e.createVNode(e.unref(Ue),{modelValue:i.value,"onUpdate:modelValue":g[1]||(g[1]=C=>i.value=C),options:l.value},null,8,["modelValue","options"]),e.createVNode(e.unref(Ue),{modelValue:m.value,"onUpdate:modelValue":g[2]||(g[2]=C=>m.value=C),options:h.value},null,8,["modelValue","options"]),e.createVNode(e.unref(Ue),{modelValue:u.value,"onUpdate:modelValue":g[3]||(g[3]=C=>u.value=C),options:d.value},null,8,["modelValue","options"]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":g[4]||(g[4]=C=>f.value=C),type:"number",min:"0"},null,512),[[e.vModelText,f.value,void 0,{number:!0}]]),e.createVNode(e.unref(Ue),{modelValue:y.value,"onUpdate:modelValue":g[5]||(g[5]=C=>y.value=C),options:v.value},null,8,["modelValue","options"]),e.createVNode(G,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:g[6]||(g[6]=C=>b.$emit("close"))})]),_:1}))}});const af={class:"ao-template-rules__body"},of={class:"ao-template-rules__list"},nf=e.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(a,{emit:t}){const o=()=>{t("addRule")},s=n=>{t("removeRule",n)};return(n,r)=>(e.openBlock(),e.createBlock(wa,null,{header:e.withCtx(()=>[e.createVNode(se,{title:n.$t("template.rules.title"),level:2},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("div",af,[e.createElementVNode("ul",of,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.rules,i=>(e.openBlock(),e.createBlock(tf,{key:i.id,rule:i,"template-phases":n.templatePhases,"template-milestones":n.templateMilestones,"template-activities":n.templateActivities,class:"ao-template-rule",onClose:()=>s(i.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),e.createVNode(qe,{label:n.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function nt(a,t,o){const s=a.length,n=a.at(-1),r=n?ne.LexoRank.parse(n.rank).genNext():ne.LexoRank.middle();return{name:o(`template.defaultName.${t}`,{idx:s+1}),rank:r.format()}}const sf={key:0,class:"ao-template-details"},rf={class:"ao-template-details__body"},lf={class:"ao-template-details__cols"},cf={class:"ao-template-details__col"},df={class:"ao-list__footer"},uf={class:"ao-template-details__col"},pf={class:"ao-template-details__col"},Zn=e.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(a,{emit:t}){const o=a,{t:s}=De(),n=e.computed(()=>{var S;return(S=o.templates)==null?void 0:S.find($=>$.id===o.templateId)}),r=e.ref(!1);e.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>r.value=!1),e.watch(()=>{var S;return(S=n.value)==null?void 0:S.phases},(S,$)=>{r.value&&Ne(S,$)});const i=e.computed(()=>{var S,$;return($=(S=n==null?void 0:n.value)==null?void 0:S.phases)==null?void 0:$.find(L=>L.id===o.phaseId)});e.watch(()=>{var S;return(S=i.value)==null?void 0:S.milestones},(S,$)=>{r.value&&Ne(S,$)});const l=e.computed(()=>{var S,$;return($=(S=i.value)==null?void 0:S.milestones)==null?void 0:$.find(L=>L.id===o.milestoneId)});e.watch(()=>{var S;return(S=l.value)==null?void 0:S.activities},(S,$)=>{r.value&&Ne(S,$)});const c=e.computed(()=>{var S,$;return(($=(S=n.value)==null?void 0:S.phases)==null?void 0:$.reduce((L,V)=>{const P=V.milestones||[];return[...L,...P]},[]))||[]}),u=e.computed(()=>{var S,$;return(($=(S=n.value)==null?void 0:S.phases)==null?void 0:$.reduce((L,V)=>{const q=(V.milestones||[]).reduce((k,M)=>M.activities?[...k,...M.activities]:k,[]);return[...L,...q]},[]))||[]}),d=e.computed(()=>{var S,$;return($=(S=l.value)==null?void 0:S.activities)==null?void 0:$.find(L=>L.id===o.activityId)}),p=e.computed(()=>{var S;return((S=n.value)==null?void 0:S.name)||o.templateId}),m=()=>{if(!n.value)return;const{name:S,rank:$}=nt(n.value.phases,"phase",s);r.value=!0,t("addItem",{type:ee.PHASES,templateId:o.templateId,item:{name:S,rank:$}})},h=S=>{t("updateItem",{templateId:o.templateId,id:o.templateId,itemType:ee.TEMPLATES,data:{name:S}})},f=S=>{t("removeItem",{itemType:ee.PHASES,templateId:o.templateId,data:{id:S}})},y=(S,$)=>{t("updateItem",{templateId:o.templateId,id:S,itemType:ee.PHASES,data:{name:$}})},v=S=>{t("updateItem",S)},b=S=>{if(!i.value)return;const{name:$,rank:L}=nt(i.value.milestones,"milestone",s);r.value=!0,t("addItem",{type:ee.MILESTONES,templateId:o.templateId,phaseId:S.phaseId,item:{name:$,rank:L,phaseId:S.phaseId}})},g=S=>{t("removeItem",{itemType:ee.MILESTONES,templateId:o.templateId,phaseId:S.phaseId,data:{id:S.id}})},C=S=>{const{id:$,...L}=S;t("updateItem",{itemType:ee.MILESTONES,id:$,templateId:o.templateId,data:L})},_=S=>{const{milestoneId:$}=S;if(!l.value)return;const{name:L,rank:V}=nt(l.value.activities,"activity",s);r.value=!0,t("addItem",{type:ee.ACTIVITIES,milestoneId:$,templateId:o.templateId,item:{name:L,rank:V,milestoneId:$}})},B=S=>{var $,L;t("removeItem",{itemType:ee.ACTIVITIES,templateId:o.templateId,phaseId:($=i.value)==null?void 0:$.id,milestoneId:(L=l.value)==null?void 0:L.id,data:{id:S.id}})},E=S=>{const{id:$,...L}=S;t("updateItem",{itemType:ee.ACTIVITIES,id:$,templateId:o.templateId,data:L})},N=e.ref(!1),D=()=>{N.value=!N.value},j=()=>{t("addRule",{templateId:o.templateId})},F=S=>{t("removeRule",{id:S,templateId:o.templateId})},Z=S=>{var $;if(S.moved){const L=Zt(S,(($=n.value)==null?void 0:$.phases)??[]);t("updateItem",{itemType:ee.PHASES,id:S.moved.element.id,templateId:o.templateId,data:{rank:L}})}},O=S=>{!i.value||!l.value||!d.value||t("addItem",{type:ee.TASKS,activityId:S.activityId,milestoneId:l.value.id,phaseId:i.value.id,templateId:o.templateId,item:S})},U=S=>{!i.value||!l.value||!d.value||t("updateItem",{itemType:ee.TASKS,id:S.id,templateId:o.templateId,data:S})},K=S=>{!i.value||!l.value||!d.value||t("removeItem",{itemType:ee.TASKS,activityId:d.value.id,milestoneId:l.value.id,phaseId:i.value.id,templateId:o.templateId,data:S})},W=S=>{t("addFiles",S)},z=S=>{t("removeFile",S)};return(S,$)=>{var L,V,P,q,k,M;return n.value?(e.openBlock(),e.createElementBlock("div",sf,[e.createVNode(xt,{"can-go-back":!0,onGoBack:$[1]||($[1]=I=>S.$router.push({name:e.unref(at).TEMPLATES_LIST}))},{primary:e.withCtx(()=>[e.createVNode(se,{title:p.value,level:2,"is-editable":!0,"onUpdate:title":$[0]||($[0]=I=>{h(I)})},null,8,["title"])]),_:1}),e.createElementVNode("div",rf,[e.createElementVNode("ol",lf,[e.createElementVNode("li",cf,[e.createVNode(e.unref(We),{"model-value":n.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:Z},{header:e.withCtx(()=>[e.createVNode(se,{title:S.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:e.withCtx(({element:I})=>{var T;return[e.createVNode(Up,{id:I.id,name:I.name,milestones:I.milestones,"is-active":((T=i.value)==null?void 0:T.id)===I.id,"is-draggable":!0,onClick:R=>S.$router.push({params:{templateId:S.templateId,phaseId:I.id}}),"onUpdate:title":R=>{y(I.id,R)},onRemove:()=>f(I.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:e.withCtx(()=>[e.createElementVNode("div",df,[e.createVNode(qe,{"icon-name":"AddBoxOutlineRounded",label:S.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),e.createElementVNode("li",uf,[i.value?(e.openBlock(),e.createBlock(Zp,{key:0,"template-id":S.templateId,phase:i.value,"milestone-id":(L=l.value)==null?void 0:L.id,onAddMilestone:b,onUpdateMilestone:C,onUpdatePhase:v,onRemoveMilestone:g},null,8,["template-id","phase","milestone-id"])):e.createCommentVNode("",!0)]),e.createElementVNode("li",pf,[i.value&&l.value?(e.openBlock(),e.createBlock(qp,{key:0,"template-id":S.templateId,"phase-id":(V=i.value)==null?void 0:V.id,milestone:l.value,"activity-id":(P=d.value)==null?void 0:P.id,onAddActivity:_,onUpdateActivity:E,onRemoveActivity:B},null,8,["template-id","phase-id","milestone","activity-id"])):e.createCommentVNode("",!0)])])]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[d.value?(e.openBlock(),e.createBlock(vo,{key:0,activity:d.value,"activity-types":S.activityTypes,breadcrumbs:`${n.value.name} / ${(q=i.value)==null?void 0:q.name} / ${(k=l.value)==null?void 0:k.name}`,"milestone-id":(M=l.value)==null?void 0:M.id,"template-activities":u.value,"template-milestones":c.value,"is-template":!0,"is-editable":!0,users:S.users,"onUpdate:activity":$[2]||($[2]=I=>{d.value&&E(I)}),"attachment-enabled":!1,onClose:S.$router.back,onAddSubtask:O,onUpdateSubtask:U,onDeleteSubtask:K,onAddFiles:W,onRemoveFile:z},{default:e.withCtx(I=>[e.renderSlot(S.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(I)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):e.createCommentVNode("",!0)])),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[N.value?(e.openBlock(),e.createBlock(nf,{key:0,"template-id":n.value.id,rules:n.value.rules||[],"template-phases":n.value.phases,"template-milestones":c.value,"template-activities":u.value,onClose:D,onAddRule:j,onRemoveRule:F},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}}});const mf={class:"ao-card__content"},ff={key:0,class:"ao-card__header"},vf={class:"ao-card__body"},hf={key:1,class:"ao-card__footer"},Ma=e.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(a){return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tagName),{class:e.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:e.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:e.withCtx(()=>[t.withLeftBorder?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ao-card__left-border",style:e.normalizeStyle({backgroundColor:t.color})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",mf,[t.$slots.header?(e.openBlock(),e.createElementBlock("header",ff,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",vf,[e.renderSlot(t.$slots,"default")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",hf,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const Ta=e.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(a){const t=a,o=e.computed(()=>typeof t.percentages=="number"?[t.percentages]:t.percentages??[]);return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-progress",s.status?`ao-progress--${s.status}`:""]),role:"meter"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["ao-progress__progress"]),style:e.normalizeStyle({width:`${r*100}%`,"--ao-progress-color":s.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
1
+ "use strict";var BP=Object.defineProperty;var RP=(n,e,t)=>e in n?BP(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var E=(n,e,t)=>(RP(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),Eg=require("vue-router"),la=require("vuedraggable");const zP=u.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(n){return(e,t)=>(u.openBlock(),u.createBlock(u.unref(Eg.RouterView),u.mergeProps({templates:n.templates},e.$attrs),null,16,["templates"]))}}),ge=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},VP={},WP={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KP(n,e){return u.openBlock(),u.createElementBlock("svg",WP,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const UP=ge(VP,[["render",KP]]),HP={},qP={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jP(n,e){return u.openBlock(),u.createElementBlock("svg",qP,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const ZP=ge(HP,[["render",jP]]),GP={},JP={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function YP(n,e){return u.openBlock(),u.createElementBlock("svg",JP,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const XP=ge(GP,[["render",YP]]),QP={},eI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tI(n,e){return u.openBlock(),u.createElementBlock("svg",eI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const nI=ge(QP,[["render",tI]]),rI={},oI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iI(n,e){return u.openBlock(),u.createElementBlock("svg",oI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const sI=ge(rI,[["render",iI]]),lI={},aI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cI(n,e){return u.openBlock(),u.createElementBlock("svg",aI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const uI=ge(lI,[["render",cI]]),dI={},fI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hI(n,e){return u.openBlock(),u.createElementBlock("svg",fI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const gI=ge(dI,[["render",hI]]),pI={},mI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _I(n,e){return u.openBlock(),u.createElementBlock("svg",mI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const yI=ge(pI,[["render",_I]]),vI={},CI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bI(n,e){return u.openBlock(),u.createElementBlock("svg",CI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const kI=ge(vI,[["render",bI]]),xI={},SI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wI(n,e){return u.openBlock(),u.createElementBlock("svg",SI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const TI=ge(xI,[["render",wI]]),EI={},NI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $I(n,e){return u.openBlock(),u.createElementBlock("svg",NI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const AI=ge(EI,[["render",$I]]),MI={},OI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function DI(n,e){return u.openBlock(),u.createElementBlock("svg",OI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const LI=ge(MI,[["render",DI]]),FI={},PI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function II(n,e){return u.openBlock(),u.createElementBlock("svg",PI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const BI=ge(FI,[["render",II]]),RI={},zI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function VI(n,e){return u.openBlock(),u.createElementBlock("svg",zI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const WI=ge(RI,[["render",VI]]),KI={},UI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function HI(n,e){return u.openBlock(),u.createElementBlock("svg",UI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const qI=ge(KI,[["render",HI]]),jI={},ZI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function GI(n,e){return u.openBlock(),u.createElementBlock("svg",ZI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const JI=ge(jI,[["render",GI]]),YI={},XI={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function QI(n,e){return u.openBlock(),u.createElementBlock("svg",XI,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const eB=ge(YI,[["render",QI]]),tB={},nB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rB(n,e){return u.openBlock(),u.createElementBlock("svg",nB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const oB=ge(tB,[["render",rB]]),iB={},sB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lB(n,e){return u.openBlock(),u.createElementBlock("svg",sB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const aB=ge(iB,[["render",lB]]),cB={},uB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dB(n,e){return u.openBlock(),u.createElementBlock("svg",uB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const fB=ge(cB,[["render",dB]]),hB={},gB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pB(n,e){return u.openBlock(),u.createElementBlock("svg",gB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const mB=ge(hB,[["render",pB]]),_B={},yB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vB(n,e){return u.openBlock(),u.createElementBlock("svg",yB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const CB=ge(_B,[["render",vB]]),bB={},kB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xB(n,e){return u.openBlock(),u.createElementBlock("svg",kB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const SB=ge(bB,[["render",xB]]),wB={},TB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function EB(n,e){return u.openBlock(),u.createElementBlock("svg",TB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const NB=ge(wB,[["render",EB]]),$B={},AB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function MB(n,e){return u.openBlock(),u.createElementBlock("svg",AB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const OB=ge($B,[["render",MB]]),DB={},LB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function FB(n,e){return u.openBlock(),u.createElementBlock("svg",LB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const PB=ge(DB,[["render",FB]]),IB={},BB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function RB(n,e){return u.openBlock(),u.createElementBlock("svg",BB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const zB=ge(IB,[["render",RB]]),VB={},WB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KB(n,e){return u.openBlock(),u.createElementBlock("svg",WB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const UB=ge(VB,[["render",KB]]),HB={},qB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jB(n,e){return u.openBlock(),u.createElementBlock("svg",qB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const ZB=ge(HB,[["render",jB]]),GB={},JB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function YB(n,e){return u.openBlock(),u.createElementBlock("svg",JB,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const XB=ge(GB,[["render",YB]]),QB={},eR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tR(n,e){return u.openBlock(),u.createElementBlock("svg",eR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const nR=ge(QB,[["render",tR]]),rR={},oR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iR(n,e){return u.openBlock(),u.createElementBlock("svg",oR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const sR=ge(rR,[["render",iR]]),lR={},aR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cR(n,e){return u.openBlock(),u.createElementBlock("svg",aR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const uR=ge(lR,[["render",cR]]),dR={},fR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hR(n,e){return u.openBlock(),u.createElementBlock("svg",fR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const gR=ge(dR,[["render",hR]]),pR={},mR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _R(n,e){return u.openBlock(),u.createElementBlock("svg",mR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const yR=ge(pR,[["render",_R]]),vR={},CR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bR(n,e){return u.openBlock(),u.createElementBlock("svg",CR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const kR=ge(vR,[["render",bR]]),xR={},SR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wR(n,e){return u.openBlock(),u.createElementBlock("svg",SR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const TR=ge(xR,[["render",wR]]),ER={},NR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $R(n,e){return u.openBlock(),u.createElementBlock("svg",NR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const AR=ge(ER,[["render",$R]]),MR={},OR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function DR(n,e){return u.openBlock(),u.createElementBlock("svg",OR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const LR=ge(MR,[["render",DR]]),FR={},PR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function IR(n,e){return u.openBlock(),u.createElementBlock("svg",PR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const BR=ge(FR,[["render",IR]]),RR=u.defineComponent({name:"LoadingIcon"});const zR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function VR(n,e,t,r,o,i){return u.openBlock(),u.createElementBlock("svg",zR,[...e[0]||(e[0]=[u.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),u.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),u.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const WR=ge(RR,[["render",VR],["__scopeId","data-v-ad6da4a9"]]),KR={},UR={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function HR(n,e){return u.openBlock(),u.createElementBlock("svg",UR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const qR=ge(KR,[["render",HR]]),jR={},ZR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function GR(n,e){return u.openBlock(),u.createElementBlock("svg",ZR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const JR=ge(jR,[["render",GR]]),YR={},XR={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function QR(n,e){return u.openBlock(),u.createElementBlock("svg",XR,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const ez=ge(YR,[["render",QR]]),tz={},nz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rz(n,e){return u.openBlock(),u.createElementBlock("svg",nz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const oz=ge(tz,[["render",rz]]),iz={},sz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lz(n,e){return u.openBlock(),u.createElementBlock("svg",sz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const az=ge(iz,[["render",lz]]),cz={},uz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dz(n,e){return u.openBlock(),u.createElementBlock("svg",uz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const fz=ge(cz,[["render",dz]]),hz={},gz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pz(n,e){return u.openBlock(),u.createElementBlock("svg",gz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const mz=ge(hz,[["render",pz]]),_z={},yz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vz(n,e){return u.openBlock(),u.createElementBlock("svg",yz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const Cz=ge(_z,[["render",vz]]),bz={},kz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xz(n,e){return u.openBlock(),u.createElementBlock("svg",kz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const Sz=ge(bz,[["render",xz]]),wz={},Tz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ez(n,e){return u.openBlock(),u.createElementBlock("svg",Tz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const Nz=ge(wz,[["render",Ez]]),$z={},Az={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mz(n,e){return u.openBlock(),u.createElementBlock("svg",Az,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const Oz=ge($z,[["render",Mz]]),Dz={},Lz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fz(n,e){return u.openBlock(),u.createElementBlock("svg",Lz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const Pz=ge(Dz,[["render",Fz]]),Iz={},Bz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rz(n,e){return u.openBlock(),u.createElementBlock("svg",Bz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const zz=ge(Iz,[["render",Rz]]),Vz={},Wz={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Kz(n,e){return u.openBlock(),u.createElementBlock("svg",Wz,[...e[0]||(e[0]=[u.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const Uz=ge(Vz,[["render",Kz]]),Hz={},qz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jz(n,e){return u.openBlock(),u.createElementBlock("svg",qz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const Zz=ge(Hz,[["render",jz]]),Gz={},Jz={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Yz(n,e){return u.openBlock(),u.createElementBlock("svg",Jz,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const Xz=ge(Gz,[["render",Yz]]),Qz={},eV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tV(n,e){return u.openBlock(),u.createElementBlock("svg",eV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const nV=ge(Qz,[["render",tV]]),rV={},oV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function iV(n,e){return u.openBlock(),u.createElementBlock("svg",oV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const sV=ge(rV,[["render",iV]]),lV={},aV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cV(n,e){return u.openBlock(),u.createElementBlock("svg",aV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const uV=ge(lV,[["render",cV]]),dV={},fV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hV(n,e){return u.openBlock(),u.createElementBlock("svg",fV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const gV=ge(dV,[["render",hV]]),pV={},mV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _V(n,e){return u.openBlock(),u.createElementBlock("svg",mV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const yV=ge(pV,[["render",_V]]),vV={},CV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function bV(n,e){return u.openBlock(),u.createElementBlock("svg",CV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const kV=ge(vV,[["render",bV]]),xV={},SV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wV(n,e){return u.openBlock(),u.createElementBlock("svg",SV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const TV=ge(xV,[["render",wV]]),EV={},NV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $V(n,e){return u.openBlock(),u.createElementBlock("svg",NV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const AV=ge(EV,[["render",$V]]),MV={},OV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function DV(n,e){return u.openBlock(),u.createElementBlock("svg",OV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const LV=ge(MV,[["render",DV]]),FV={},PV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function IV(n,e){return u.openBlock(),u.createElementBlock("svg",PV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const BV=ge(FV,[["render",IV]]),RV={},zV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function VV(n,e){return u.openBlock(),u.createElementBlock("svg",zV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const WV=ge(RV,[["render",VV]]),KV={},UV={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function HV(n,e){return u.openBlock(),u.createElementBlock("svg",UV,[...e[0]||(e[0]=[u.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const qV=ge(KV,[["render",HV]]),jV=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:UP,AccountCircle:ZP,AccountTreeOutlineRounded:XP,AccountTreeRounded:nI,Add:sI,AddBoxOutlineRounded:uI,ArchiveOutlineRounded:gI,ArrowBackRounded:yI,ArrowDropDownRounded:kI,ArrowForwardRounded:TI,AssignmentOutlineRounded:AI,AttachFileRounded:LI,CalendarTodayOutlineRounded:BI,CancelRounded:WI,ChatOutline:qI,CheckBoxOutlineBlank:JI,CheckBoxOutlineBlankSharp:eB,CheckBoxOutlineRounded:oB,CheckSmallRounded:aB,ChecklistRounded:fB,ChevronLeft:mB,ChevronRight:CB,CloseRounded:SB,ContactsOutlineRounded:NB,ContentCopyOutline:OB,DeleteOutlineRounded:PB,DragIndicator:zB,EditDocumentRounded:UB,EditOutline:ZB,ErrorOutlineRounded:XB,FilterListRounded:nR,FlagRounded:sR,FlowsheetOutlineRounded:uR,GifBox:gR,GroupsOutline:yR,HomeOutlineRounded:kR,ImageRounded:TR,Info:AR,KeyboardArrowDown:LR,KeyboardArrowUp:BR,Loading:WR,Lock:qR,LogoutRounded:JR,Menu:ez,MoreHoriz:oz,MoreTimeRounded:az,MoreVert:fz,MountainFlagOutlineRounded:mz,PersonAddOutlineRounded:Cz,PictureAsPdfRounded:Sz,RadioButtonChecked:Nz,RadioButtonCheckedOutline:Oz,RadioButtonUnchecked:Pz,RemoveRounded:zz,SearchRounded:Uz,SelectCheckBox:Zz,SendRounded:Xz,Settings:nV,SlideshowRounded:sV,Target:uV,TaskOutlineRounded:gV,TextSnippetRounded:yV,TimerOutline:kV,ViewComfyAltRounded:TV,ViewCompactAltRounded:AV,ViewTimelineRounded:LV,WarningOutlineRounded:BV,WarningRounded:WV,WaterfallChartRounded:qV},Symbol.toStringTag,{value:"Module"})),ZV={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},l0={SM:"sm",MD:"md",LG:"lg",XL:"xl"},bk={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},GV={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...bk,...GV});const C9={ROUND:"round",ROUNDED:"rounded"},JV={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},pt=u.defineComponent({__name:"AoIcon",props:{name:{},size:{default:l0.MD}},setup(n){const e=n,t=u.computed(()=>jV[e.name]);return(r,o)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t.value),{class:u.normalizeClass(["ao-icon",`ao-icon--${n.size}`])},null,8,["class"]))}});const YV=["type"],XV={key:0,class:"ao-button__label"},Be=u.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>ZV.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>l0.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>C9.ROUNDED}},setup(n){const e=n,t=u.computed(()=>e.size),r=u.computed(()=>e.isLoading?"Loading":e.iconName);return(o,i)=>(u.openBlock(),u.createElementBlock("button",{type:n.type,class:u.normalizeClass(["ao-button",`ao-button--${n.variant}`,n.color?`ao-button--${n.color}`:"",`ao-button--${n.corners}`,n.footer?"ao-button--footer":"",n.size?`ao-button--${n.size}`:"",n.iconName&&n.iconPosition?`ao-button--icon-${n.iconPosition}`:"",o.$attrs.disabled?"ao-button--is-disabled":""])},[u.renderSlot(o.$slots,"default",{},()=>[n.label?(u.openBlock(),u.createElementBlock("span",XV,u.toDisplayString(n.label),1)):u.createCommentVNode("",!0)]),r.value?(u.openBlock(),u.createBlock(pt,{key:0,name:r.value,class:"ao-button__icon",size:t.value},null,8,["name","size"])):u.createCommentVNode("",!0)],10,YV))}});function b9(n){const e=u.ref(!1),t=u.ref(""),r=u.computed(()=>"value"in n.value?"value":"innerHTML"),o=()=>{e.value=!e.value},i=a=>{e.value=a},s=a=>async()=>{i(!1),await u.nextTick(()=>{n.value[r.value]=t.value,a==null||a()})},l=a=>async c=>{const d=n.value[r.value];i(!1),await u.nextTick(()=>{a(d,c)})};return u.watch(e,async a=>{await u.nextTick(()=>{setTimeout(()=>{n.value&&a&&(n.value.focus(),t.value=n.value[r.value])},1)})}),{isEditing:e,setIsEditing:i,toggleIsEditing:o,onUpdate:l,onDiscard:s}}const nr=u.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(n,{emit:e}){const t=u.ref(null),r=n,o=e,{isEditing:i,setIsEditing:s,onUpdate:l,onDiscard:a}=b9(t),c=u.computed(()=>i.value?"input":r.tag||`h${r.level}`),d=u.computed(()=>r.isEditable?i.value?{change:h,click:_=>_.stopPropagation(),blur:g}:{click:m,focus:m}:{}),h=l((_,C)=>{const v=C.target.value;o("update:title",v)}),f=a(),g=async()=>{i.value&&s(!1)},p=()=>{o("toggle-is-editing",!1)},m=_=>{_.stopPropagation(),i.value||s(!0)};return u.watch(()=>r.isEditable,_=>{_||f()}),(_,C)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(c.value),u.mergeProps({id:n.id,ref_key:"target",ref:t,class:["ao-title",`ao-title--${n.level}`,{[`ao-title--${n.color}`]:!!n.color,"ao-title--editable":n.isEditable,"ao-field__input ao-title--editing":u.unref(i),"ao-title--readonly":!u.unref(i)}],type:u.unref(i)?"text":null,value:u.unref(i)?n.title:null,tabindex:"0",onKeyup:u.withKeys(p,["enter"])},u.toHandlers(d.value),{onKeydown:u.withKeys(u.unref(f),["esc"])}),{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const QV={key:0,class:"ao-card-horiz__drag ao-card__drag"},eW={class:"ao-card-horiz__header"},tW={key:0,class:"ao-card-horiz__avatar"},nW={class:"ao-card-horiz__title-group"},rW={key:0,class:"ao-card-horiz__subtitle"},oW={key:1,class:"ao-card-horiz__header"},iW={key:1,class:"ao-card-horiz__body"},sW={key:2,class:"ao-card-horiz__footer"},lW={key:3,class:"ao-card-horiz__secondary"},k9=u.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(n,{emit:e}){const t=e,r=o=>{t("update:title",o)};return(o,i)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.tagName),{class:u.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":n.isActive}])},{default:u.withCtx(()=>[n.isDraggable?(u.openBlock(),u.createElementBlock("div",QV,[u.createVNode(pt,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):u.createCommentVNode("",!0),u.createElementVNode("div",eW,[n.icon?(u.openBlock(),u.createElementBlock("div",tW,[u.createVNode(pt,{class:"ao-card-horiz__icon",name:n.icon,size:"xl"},null,8,["name"])])):u.createCommentVNode("",!0),u.createElementVNode("div",nW,[u.createVNode(nr,{id:n.id,class:"ao-card-horiz__title",level:4,title:n.title||"","is-editable":!0,"onUpdate:title":r},null,8,["id","title"]),u.renderSlot(o.$slots,"subtitle",{},()=>[n.subtitle?(u.openBlock(),u.createElementBlock("span",rW,u.toDisplayString(n.subtitle),1)):u.createCommentVNode("",!0)])]),o.$slots.header?(u.openBlock(),u.createElementBlock("div",oW,[u.renderSlot(o.$slots,"header")])):u.createCommentVNode("",!0)]),o.$slots.default?(u.openBlock(),u.createElementBlock("div",iW,[u.renderSlot(o.$slots,"default")])):u.createCommentVNode("",!0),o.$slots.footer?(u.openBlock(),u.createElementBlock("div",sW,[u.renderSlot(o.$slots,"footer")])):u.createCommentVNode("",!0),o.$slots.secondary?(u.openBlock(),u.createElementBlock("div",lW,[u.renderSlot(o.$slots,"secondary")])):u.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Ah=u.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(n){const e=n,t=u.computed(()=>e.clickable?"button":"span"),r=u.computed(()=>t.value==="button"?{type:"button"}:{});return(o,i)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["ao-tag",n.color?`ao-tag--${n.color}`:"",n.clickable?"ao-tag--clickable":"",n.closable?"ao-tag--closable":"",n.variant?`ao-tag--${n.variant}`:""]),style:u.normalizeStyle(n.rawColor?{"--ao-tag-bg":n.rawColor}:{})},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t.value),u.mergeProps({class:"ao-tag__label"},r.value,{onClick:i[0]||(i[0]=s=>o.$emit("click",s))}),{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(n.label)+" ",1),n.variant===u.unref(JV).SOLID_ICON&&n.iconName?(u.openBlock(),u.createBlock(pt,{key:0,name:n.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):u.createCommentVNode("",!0)]),_:1},16)),n.closable?(u.openBlock(),u.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:i[1]||(i[1]=s=>o.$emit("close",s))},[u.createVNode(pt,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):u.createCommentVNode("",!0)],6))}});const Mh={todo:"todo",done:"done",archived:"archived"},aW={months:"months",weeks:"weeks",days:"days"},cW={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},x9={BEFORE:"before",AFTER:"after"},S9={START:"start",end:"end"},w9={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},Tt={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var T9=(n=>(n.PHASES="phases",n.MILESTONES="milestones",n.ACTIVITIES="activities",n))(T9||{});const uW={add:"add",remove:"remove",moved:"moved"};var E9=(n=>(n.HOURS="hours",n.DAYS="days",n))(E9||{});const Pa={project:"projectId",type:"typeId",assignee:"assigneeId"};function em(n){"@babel/helpers - typeof";return em=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},em(n)}function Ps(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Rt(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function dr(n){Rt(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||em(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function dW(n,e){Rt(2,arguments);var t=dr(n).getTime(),r=Ps(e);return new Date(t+r)}var fW={};function Ng(){return fW}function Oh(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function S5(n){Rt(1,arguments);var e=dr(n);return e.setHours(0,0,0,0),e}var hW=864e5;function gW(n,e){Rt(2,arguments);var t=S5(n),r=S5(e),o=t.getTime()-Oh(t),i=r.getTime()-Oh(r);return Math.round((o-i)/hW)}function pW(n,e){Rt(2,arguments);var t=dr(n),r=dr(e),o=t.getTime()-r.getTime();return o<0?-1:o>0?1:o}var N9=6e4,$9=36e5;function mW(n){return Rt(1,arguments),n instanceof Date||em(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function A9(n){if(Rt(1,arguments),!mW(n)&&typeof n!="number")return!1;var e=dr(n);return!isNaN(Number(e))}function Y2(n,e){Rt(2,arguments);var t=Ps(e);return dW(n,-t)}var _W=864e5;function yW(n){Rt(1,arguments);var e=dr(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/_W)+1}function tm(n){Rt(1,arguments);var e=1,t=dr(n),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function M9(n){Rt(1,arguments);var e=dr(n),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=tm(r),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var s=tm(i);return e.getTime()>=o.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function vW(n){Rt(1,arguments);var e=M9(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=tm(t);return r}var CW=6048e5;function bW(n){Rt(1,arguments);var e=dr(n),t=tm(e).getTime()-vW(e).getTime();return Math.round(t/CW)+1}function nm(n,e){var t,r,o,i,s,l,a,c;Rt(1,arguments);var d=Ng(),h=Ps((t=(r=(o=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(a=d.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dr(n),g=f.getUTCDay(),p=(g<h?7:0)+g-h;return f.setUTCDate(f.getUTCDate()-p),f.setUTCHours(0,0,0,0),f}function O9(n,e){var t,r,o,i,s,l,a,c;Rt(1,arguments);var d=dr(n),h=d.getUTCFullYear(),f=Ng(),g=Ps((t=(r=(o=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(a=f.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,g),p.setUTCHours(0,0,0,0);var m=nm(p,e),_=new Date(0);_.setUTCFullYear(h,0,g),_.setUTCHours(0,0,0,0);var C=nm(_,e);return d.getTime()>=m.getTime()?h+1:d.getTime()>=C.getTime()?h:h-1}function kW(n,e){var t,r,o,i,s,l,a,c;Rt(1,arguments);var d=Ng(),h=Ps((t=(r=(o=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(a=d.locale)===null||a===void 0||(c=a.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=O9(n,e),g=new Date(0);g.setUTCFullYear(f,0,h),g.setUTCHours(0,0,0,0);var p=nm(g,e);return p}var xW=6048e5;function SW(n,e){Rt(1,arguments);var t=dr(n),r=nm(t,e).getTime()-kW(t,e).getTime();return Math.round(r/xW)+1}function st(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}var wW={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return st(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):st(r+1,2)},d:function(e,t){return st(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return st(e.getUTCHours()%12||12,t.length)},H:function(e,t){return st(e.getUTCHours(),t.length)},m:function(e,t){return st(e.getUTCMinutes(),t.length)},s:function(e,t){return st(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return st(i,t.length)}};const ll=wW;var bu={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},TW={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return ll.y(e,t)},Y:function(e,t,r,o){var i=O9(e,o),s=i>0?i:1-i;if(t==="YY"){var l=s%100;return st(l,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):st(s,t.length)},R:function(e,t){var r=M9(e);return st(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return st(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return st(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return st(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return ll.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return st(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var i=SW(e,o);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):st(i,t.length)},I:function(e,t,r){var o=bW(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):st(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ll.d(e,t)},D:function(e,t,r){var o=yW(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):st(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var i=e.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return st(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var i=e.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return st(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),i=o===0?7:o;switch(t){case"i":return String(i);case"ii":return st(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),i=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),i;switch(o===12?i=bu.noon:o===0?i=bu.midnight:i=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),i;switch(o>=17?i=bu.evening:o>=12?i=bu.afternoon:o>=4?i=bu.morning:i=bu.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ll.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ll.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):st(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):st(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ll.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ll.s(e,t)},S:function(e,t){return ll.S(e,t)},X:function(e,t,r,o){var i=o._originalDate||e,s=i.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return T5(s);case"XXXX":case"XX":return Ia(s);case"XXXXX":case"XXX":default:return Ia(s,":")}},x:function(e,t,r,o){var i=o._originalDate||e,s=i.getTimezoneOffset();switch(t){case"x":return T5(s);case"xxxx":case"xx":return Ia(s);case"xxxxx":case"xxx":default:return Ia(s,":")}},O:function(e,t,r,o){var i=o._originalDate||e,s=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w5(s,":");case"OOOO":default:return"GMT"+Ia(s,":")}},z:function(e,t,r,o){var i=o._originalDate||e,s=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w5(s,":");case"zzzz":default:return"GMT"+Ia(s,":")}},t:function(e,t,r,o){var i=o._originalDate||e,s=Math.floor(i.getTime()/1e3);return st(s,t.length)},T:function(e,t,r,o){var i=o._originalDate||e,s=i.getTime();return st(s,t.length)}};function w5(n,e){var t=n>0?"-":"+",r=Math.abs(n),o=Math.floor(r/60),i=r%60;if(i===0)return t+String(o);var s=e||"";return t+String(o)+s+st(i,2)}function T5(n,e){if(n%60===0){var t=n>0?"-":"+";return t+st(Math.abs(n)/60,2)}return Ia(n,e)}function Ia(n,e){var t=e||"",r=n>0?"-":"+",o=Math.abs(n),i=st(Math.floor(o/60),2),s=st(o%60,2);return r+i+t+s}const EW=TW;var E5=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},D9=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},NW=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return E5(e,t);var s;switch(o){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",E5(o,t)).replace("{{time}}",D9(i,t))},$W={p:D9,P:NW};const AW=$W;var MW=["D","DD"],OW=["YY","YYYY"];function DW(n){return MW.indexOf(n)!==-1}function LW(n){return OW.indexOf(n)!==-1}function N5(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var FW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},PW=function(e,t,r){var o,i=FW[e];return typeof i=="string"?o=i:t===1?o=i.one:o=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const IW=PW;function Wy(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}var BW={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},RW={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zW={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},VW={date:Wy({formats:BW,defaultWidth:"full"}),time:Wy({formats:RW,defaultWidth:"full"}),dateTime:Wy({formats:zW,defaultWidth:"full"})};const WW=VW;var KW={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},UW=function(e,t,r,o){return KW[e]};const HW=UW;function yf(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,s=t!=null&&t.width?String(t.width):i;o=n.formattingValues[s]||n.formattingValues[i]}else{var l=n.defaultWidth,a=t!=null&&t.width?String(t.width):n.defaultWidth;o=n.values[a]||n.values[l]}var c=n.argumentCallback?n.argumentCallback(e):e;return o[c]}}var qW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ZW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},GW={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},JW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},YW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},XW=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},QW={ordinalNumber:XW,era:yf({values:qW,defaultWidth:"wide"}),quarter:yf({values:jW,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:yf({values:ZW,defaultWidth:"wide"}),day:yf({values:GW,defaultWidth:"wide"}),dayPeriod:yf({values:JW,defaultWidth:"wide",formattingValues:YW,defaultFormattingWidth:"wide"})};const eK=QW;function vf(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(o);if(!i)return null;var s=i[0],l=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],a=Array.isArray(l)?nK(l,function(h){return h.test(s)}):tK(l,function(h){return h.test(s)}),c;c=n.valueCallback?n.valueCallback(a):a,c=t.valueCallback?t.valueCallback(c):c;var d=e.slice(s.length);return{value:c,rest:d}}}function tK(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function nK(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function rK(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var o=r[0],i=e.match(n.parsePattern);if(!i)return null;var s=n.valueCallback?n.valueCallback(i[0]):i[0];s=t.valueCallback?t.valueCallback(s):s;var l=e.slice(o.length);return{value:s,rest:l}}}var oK=/^(\d+)(th|st|nd|rd)?/i,iK=/\d+/i,sK={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lK={any:[/^b/i,/^(a|c)/i]},aK={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cK={any:[/1/i,/2/i,/3/i,/4/i]},uK={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},dK={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fK={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hK={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gK={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},pK={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},mK={ordinalNumber:rK({matchPattern:oK,parsePattern:iK,valueCallback:function(e){return parseInt(e,10)}}),era:vf({matchPatterns:sK,defaultMatchWidth:"wide",parsePatterns:lK,defaultParseWidth:"any"}),quarter:vf({matchPatterns:aK,defaultMatchWidth:"wide",parsePatterns:cK,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:vf({matchPatterns:uK,defaultMatchWidth:"wide",parsePatterns:dK,defaultParseWidth:"any"}),day:vf({matchPatterns:fK,defaultMatchWidth:"wide",parsePatterns:hK,defaultParseWidth:"any"}),dayPeriod:vf({matchPatterns:gK,defaultMatchWidth:"any",parsePatterns:pK,defaultParseWidth:"any"})};const _K=mK;var yK={code:"en-US",formatDistance:IW,formatLong:WW,formatRelative:HW,localize:eK,match:_K,options:{weekStartsOn:0,firstWeekContainsDate:1}};const L9=yK;var vK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,CK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bK=/^'([^]*?)'?$/,kK=/''/g,xK=/[a-zA-Z]/;function F9(n,e,t){var r,o,i,s,l,a,c,d,h,f,g,p,m,_,C,y,v,k;Rt(2,arguments);var x=String(e),b=Ng(),T=(r=(o=t==null?void 0:t.locale)!==null&&o!==void 0?o:b.locale)!==null&&r!==void 0?r:L9,w=Ps((i=(s=(l=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(c=t.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:b.firstWeekContainsDate)!==null&&s!==void 0?s:(h=b.locale)===null||h===void 0||(f=h.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Ps((g=(p=(m=(_=t==null?void 0:t.weekStartsOn)!==null&&_!==void 0?_:t==null||(C=t.locale)===null||C===void 0||(y=C.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&m!==void 0?m:b.weekStartsOn)!==null&&p!==void 0?p:(v=b.locale)===null||v===void 0||(k=v.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&g!==void 0?g:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var N=dr(n);if(!A9(N))throw new RangeError("Invalid time value");var $=Oh(N),O=Y2(N,$),M={firstWeekContainsDate:w,weekStartsOn:S,locale:T,_originalDate:N},A=x.match(CK).map(function(F){var P=F[0];if(P==="p"||P==="P"){var z=AW[P];return z(F,T.formatLong)}return F}).join("").match(vK).map(function(F){if(F==="''")return"'";var P=F[0];if(P==="'")return SK(F);var z=EW[P];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&LW(F)&&N5(F,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&DW(F)&&N5(F,e,String(n)),z(O,F,T.localize,M);if(P.match(xK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return F}).join("");return A}function SK(n){var e=n.match(bK);return e?e[1].replace(kK,"'"):n}function wK(n,e,t){var r,o,i,s,l,a,c,d,h,f;Rt(2,arguments);var g=dr(n),p=dr(e),m=Ng(),_=(r=(o=t==null?void 0:t.locale)!==null&&o!==void 0?o:m.locale)!==null&&r!==void 0?r:L9,C=Ps((i=(s=(l=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(c=t.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:m.weekStartsOn)!==null&&s!==void 0?s:(h=m.locale)===null||h===void 0||(f=h.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&i!==void 0?i:0);if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");if(!_.formatRelative)throw new RangeError("locale must contain formatRelative property");var y=gW(g,p);if(isNaN(y))throw new RangeError("Invalid time value");var v;y<-6?v="other":y<-1?v="lastWeek":y<0?v="yesterday":y<1?v="today":y<2?v="tomorrow":y<7?v="nextWeek":v="other";var k=Y2(g,Oh(g)),x=Y2(p,Oh(p)),b=_.formatRelative(v,k,x,{locale:_,weekStartsOn:C});return F9(g,b,{locale:_,weekStartsOn:C})}function Dh(n,e){var t;Rt(1,arguments);var r=Ps((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var o=$K(n),i;if(o.date){var s=AK(o.date,r);i=MK(s.restDateString,s.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var l=i.getTime(),a=0,c;if(o.time&&(a=OK(o.time),isNaN(a)))return new Date(NaN);if(o.timezone){if(c=DK(o.timezone),isNaN(c))return new Date(NaN)}else{var d=new Date(l+a),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}return new Date(l+a+c)}var wp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},TK=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,EK=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,NK=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $K(n){var e={},t=n.split(wp.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],wp.timeZoneDelimiter.test(e.date)&&(e.date=n.split(wp.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var o=wp.timezone.exec(r);o?(e.time=r.replace(o[1],""),e.timezone=o[1]):e.time=r}return e}function AK(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function MK(n,e){if(e===null)return new Date(NaN);var t=n.match(TK);if(!t)return new Date(NaN);var r=!!t[4],o=Cf(t[1]),i=Cf(t[2])-1,s=Cf(t[3]),l=Cf(t[4]),a=Cf(t[5])-1;if(r)return BK(e,l,a)?LK(e,l,a):new Date(NaN);var c=new Date(0);return!PK(e,i,s)||!IK(e,o)?new Date(NaN):(c.setUTCFullYear(e,i,Math.max(o,s)),c)}function Cf(n){return n?parseInt(n):1}function OK(n){var e=n.match(EK);if(!e)return NaN;var t=Ky(e[1]),r=Ky(e[2]),o=Ky(e[3]);return RK(t,r,o)?t*$9+r*N9+o*1e3:NaN}function Ky(n){return n&&parseFloat(n.replace(",","."))||0}function DK(n){if(n==="Z")return 0;var e=n.match(NK);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return zK(r,o)?t*(r*$9+o*N9):NaN}function LK(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var o=r.getUTCDay()||7,i=(e-1)*7+t+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var FK=[31,null,31,30,31,30,31,31,30,31,30,31];function P9(n){return n%400===0||n%4===0&&n%100!==0}function PK(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(FK[e]||(P9(n)?29:28))}function IK(n,e){return e>=1&&e<=(P9(n)?366:365)}function BK(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function RK(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function zK(n,e){return e>=0&&e<=59}var yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VK(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function WK(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(e,o);return new i}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return n[r]}})}),t}var Hn={},I9={},bf={},$g={},Wd={},a0={};Object.defineProperty(a0,"__esModule",{value:!0});a0.lexoHelper=void 0;a0.lexoHelper={arrayCopy:KK};function KK(n,e,t,r,o){let i=r;const s=e+o;for(let l=e;l<s;l++)t[i]=n[l],++i}var Ag={};Object.defineProperty(Ag,"__esModule",{value:!0});class UK{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,t){return this.str=this.str.substr(0,e)+this.str.substr(e+t),this}insert(e,t){return this.str=this.str.substr(0,e)+t+this.str.substr(e),this}toString(){return this.str}}Ag.default=UK;Object.defineProperty(Wd,"__esModule",{value:!0});Wd.LexoInteger=void 0;const Tp=a0,HK=Ag;class Fe{constructor(e,t,r){this.sys=e,this.sign=t,this.mag=r}static parse(e,t){let r=e,o=1;e.indexOf(t.getPositiveChar())===0?r=e.substring(1):e.indexOf(t.getNegativeChar())===0&&(r=e.substring(1),o=-1);const i=new Array(r.length);let s=i.length-1;for(let l=0;s>=0;++l)i[l]=t.toDigit(r.charAt(s)),--s;return Fe.make(t,o,i)}static zero(e){return new Fe(e,0,Fe.ZERO_MAG)}static one(e){return Fe.make(e,1,Fe.ONE_MAG)}static make(e,t,r){let o;for(o=r.length;o>0&&r[o-1]===0;--o);if(o===0)return Fe.zero(e);if(o===r.length)return new Fe(e,t,r);const i=new Array(o).fill(0);return Tp.lexoHelper.arrayCopy(r,0,i,0,o),new Fe(e,t,i)}static add(e,t,r){const o=Math.max(t.length,r.length),i=new Array(o).fill(0);let s=0;for(let l=0;l<o;++l){const a=l<t.length?t[l]:0,c=l<r.length?r[l]:0;let d=a+c+s;for(s=0;d>=e.getBase();d-=e.getBase())++s;i[l]=d}return Fe.extendWithCarry(i,s)}static extendWithCarry(e,t){if(t>0){const r=new Array(e.length+1).fill(0);return Tp.lexoHelper.arrayCopy(e,0,r,0,e.length),r[r.length-1]=t,r}return e}static subtract(e,t,r){const o=Fe.complement(e,r,t.length),i=Fe.add(e,t,o);return i[i.length-1]=0,Fe.add(e,i,Fe.ONE_MAG)}static multiply(e,t,r){const o=new Array(t.length+r.length).fill(0);for(let i=0;i<t.length;++i)for(let s=0;s<r.length;++s){const l=i+s;for(o[l]+=t[i]*r[s];o[l]>=e.getBase();o[l]-=e.getBase())++o[l+1]}return o}static complement(e,t,r){if(r<=0)throw new Error("Expected at least 1 digit");const o=new Array(r).fill(e.getBase()-1);for(let i=0;i<t.length;++i)o[i]=e.getBase()-1-t[i];return o}static compare(e,t){if(e.length<t.length)return-1;if(e.length>t.length)return 1;for(let r=e.length-1;r>=0;--r){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let r;return this.sign===-1?(r=this.negate(),r.subtract(e).negate()):(r=e.negate(),this.subtract(r))}const t=Fe.add(this.sys,this.mag,e.mag);return Fe.make(this.sys,this.sign,t)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let r;return this.sign===-1?(r=this.negate(),r.add(e).negate()):(r=e.negate(),this.add(r))}const t=Fe.compare(this.mag,e.mag);return t===0?Fe.zero(this.sys):t<0?Fe.make(this.sys,this.sign===-1?1:-1,Fe.subtract(this.sys,e.mag,this.mag)):Fe.make(this.sys,this.sign===-1?-1:1,Fe.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?Fe.make(this.sys,1,e.mag):Fe.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?Fe.make(this.sys,1,this.mag):Fe.make(this.sys,-1,this.mag);const t=Fe.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?Fe.make(this.sys,1,t):Fe.make(this.sys,-1,t)}negate(){return this.isZero()?this:Fe.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const t=new Array(this.mag.length+e).fill(0);return Tp.lexoHelper.arrayCopy(this.mag,0,t,e,this.mag.length),Fe.make(this.sys,this.sign,t)}shiftRight(e=1){if(this.mag.length-e<=0)return Fe.zero(this.sys);const t=new Array(this.mag.length-e).fill(0);return Tp.lexoHelper.arrayCopy(this.mag,e,t,0,t.length),Fe.make(this.sys,this.sign,t)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return Fe.make(this.sys,this.sign,Fe.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const t=Fe.compare(this.mag,e.mag);return t===-1?1:t===1?-1:0}return-1}return this.sign===1?e.sign===1?Fe.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new HK.default,t=this.mag,r=t.length;for(let o=0;o<r;++o){const i=t[o];e.insert(0,this.sys.toChar(i))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}Wd.LexoInteger=Fe;Fe.ZERO_MAG=[0];Fe.ONE_MAG=[1];Fe.NEGATIVE_SIGN=-1;Fe.ZERO_SIGN=0;Fe.POSITIVE_SIGN=1;Object.defineProperty($g,"__esModule",{value:!0});$g.LexoDecimal=void 0;const kf=Wd,qK=Ag;class to{constructor(e,t){this.mag=e,this.sig=t}static half(e){const t=e.getBase()/2|0;return to.make(kf.LexoInteger.make(e,1,[t]),1)}static parse(e,t){const r=e.indexOf(t.getRadixPointChar());if(e.lastIndexOf(t.getRadixPointChar())!==r)throw new Error("More than one "+t.getRadixPointChar());if(r<0)return to.make(kf.LexoInteger.parse(e,t),0);const o=e.substring(0,r)+e.substring(r+1);return to.make(kf.LexoInteger.parse(o,t),e.length-1-r)}static from(e){return to.make(e,0)}static make(e,t){if(e.isZero())return new to(e,0);let r=0;for(let s=0;s<t&&e.getMag(s)===0;++s)++r;const o=e.shiftRight(r),i=t-r;return new to(o,i)}getSystem(){return this.mag.getSystem()}add(e){let t=this.mag,r=this.sig,o=e.mag,i;for(i=e.sig;r<i;++r)t=t.shiftLeft();for(;r>i;)o=o.shiftLeft(),++i;return to.make(t.add(o),r)}subtract(e){let t=this.mag,r=this.sig,o=e.mag,i;for(i=e.sig;r<i;++r)t=t.shiftLeft();for(;r>i;)o=o.shiftLeft(),++i;return to.make(t.subtract(o),r)}multiply(e){return to.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(kf.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,t=!1){if(e>=this.sig)return this;e<0&&(e=0);const r=this.sig-e;let o=this.mag.shiftRight(r);return t&&(o=o.add(kf.LexoInteger.one(o.getSystem()))),to.make(o,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let t=this.mag,r=e.mag;return this.sig>e.sig?r=r.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(t=t.shiftLeft(e.sig-this.sig)),t.compareTo(r)}format(){const e=this.mag.format();if(this.sig===0)return e;const t=new qK.default(e),r=t[0],o=r===this.mag.getSystem().getPositiveChar()||r===this.mag.getSystem().getNegativeChar();for(o&&t.remove(0,1);t.length<this.sig+1;)t.insert(0,this.mag.getSystem().toChar(0));return t.insert(t.length-this.sig,this.mag.getSystem().getRadixPointChar()),t.length-this.sig===0&&t.insert(0,this.mag.getSystem().toChar(0)),o&&t.insert(0,r),t.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}$g.LexoDecimal=to;var Ep={},$5;function B9(){if($5)return Ep;$5=1,Object.defineProperty(Ep,"__esModule",{value:!0});const n=Wd,e=z9();class t{constructor(o){this.value=n.LexoInteger.parse(o,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new t("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new t("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new t("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[t.BUCKET_0,t.BUCKET_1,t.BUCKET_2]),this._VALUES}static max(){return t.VALUES[t.VALUES.length-1]}static from(o){const i=n.LexoInteger.parse(o,e.LexoRank.NUMERAL_SYSTEM),s=t.VALUES,l=s.length;for(let a=0;a<l;++a){const c=s[a];if(c.value.equals(i))return c}throw new Error("Unknown bucket: "+o)}static resolve(o){const i=t.VALUES,s=i.length;for(let l=0;l<s;++l){const a=i[l];if(a.equals(t.from(o.toString())))return a}throw new Error("No bucket found with id "+o)}format(){return this.value.format()}next(){return this.equals(t.BUCKET_0)?t.BUCKET_1:this.equals(t.BUCKET_1)?t.BUCKET_2:this.equals(t.BUCKET_2)?t.BUCKET_0:t.BUCKET_2}prev(){return this.equals(t.BUCKET_0)?t.BUCKET_2:this.equals(t.BUCKET_1)?t.BUCKET_0:this.equals(t.BUCKET_2)?t.BUCKET_1:t.BUCKET_0}equals(o){return this===o?!0:o?this.value.equals(o.value):!1}}return Ep.default=t,Ep}var kk={},R9={};Object.defineProperty(R9,"__esModule",{value:!0});var c0={};Object.defineProperty(c0,"__esModule",{value:!0});c0.LexoNumeralSystem10=void 0;class jK{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}c0.LexoNumeralSystem10=jK;var u0={};Object.defineProperty(u0,"__esModule",{value:!0});u0.LexoNumeralSystem36=void 0;class ZK{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}u0.LexoNumeralSystem36=ZK;var d0={};Object.defineProperty(d0,"__esModule",{value:!0});d0.LexoNumeralSystem64=void 0;class GK{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}d0.LexoNumeralSystem64=GK;(function(n){var e=yr&&yr.__createBinding||(Object.create?function(r,o,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(o,i);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,s,l)}:function(r,o,i,s){s===void 0&&(s=i),r[s]=o[i]}),t=yr&&yr.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,r,i)};Object.defineProperty(n,"__esModule",{value:!0}),t(R9,n),t(c0,n),t(u0,n),t(d0,n)})(kk);var A5;function z9(){if(A5)return bf;A5=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.LexoRank=void 0;const n=$g,e=B9(),t=Ag,r=kk;class o{constructor(s,l){this.value=s.format()+"|"+o.formatDecimal(l),this.bucket=s,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new r.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=n.LexoDecimal.parse("0",o.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=n.LexoDecimal.parse("1",o.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=n.LexoDecimal.parse("8",o.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=o.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=n.LexoDecimal.parse("1000000",o.NUMERAL_SYSTEM).subtract(o.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=o.between(o.MIN_DECIMAL,o.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=n.LexoDecimal.parse("100000",o.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=n.LexoDecimal.parse(o.NUMERAL_SYSTEM.toChar(o.NUMERAL_SYSTEM.getBase()-2)+"00000",o.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return o.from(e.default.BUCKET_0,o.MIN_DECIMAL)}static middle(){const s=o.min();return s.between(o.max(s.bucket))}static max(s=e.default.BUCKET_0){return o.from(s,o.MAX_DECIMAL)}static initial(s){return s===e.default.BUCKET_0?o.from(s,o.INITIAL_MIN_DECIMAL):o.from(s,o.INITIAL_MAX_DECIMAL)}static between(s,l){if(s.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let a=s,c=l,d;if(s.getScale()<l.getScale()){if(d=l.setScale(s.getScale(),!1),s.compareTo(d)>=0)return o.mid(s,l);c=d}if(s.getScale()>c.getScale()){if(d=s.setScale(c.getScale(),!0),d.compareTo(c)>=0)return o.mid(s,l);a=d}let h;for(let p=a.getScale();p>0;c=h){const m=p-1,_=a.setScale(m,!0);if(h=c.setScale(m,!1),_.compareTo(h)===0)return o.checkMid(s,l,_);if(_.compareTo(h)>0)break;p=m,a=_}let f=o.middleInternal(s,l,a,c),g;for(let p=f.getScale();p>0;p=g){g=p-1;const m=f.setScale(g);if(s.compareTo(m)>=0||m.compareTo(l)>=0)break;f=m}return f}static parse(s){const l=s.split("|"),a=e.default.from(l[0]),c=n.LexoDecimal.parse(l[1],o.NUMERAL_SYSTEM);return new o(a,c)}static from(s,l){if(l.getSystem().getBase()!==o.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new o(s,l)}static middleInternal(s,l,a,c){const d=o.mid(a,c);return o.checkMid(s,l,d)}static checkMid(s,l,a){return s.compareTo(a)>=0||a.compareTo(l)>=0?o.mid(s,l):a}static mid(s,l){const c=s.add(l).multiply(n.LexoDecimal.half(s.getSystem())),d=s.getScale()>l.getScale()?s.getScale():l.getScale();if(c.getScale()>d){const h=c.setScale(d,!1);if(h.compareTo(s)>0)return h;const f=c.setScale(d,!0);if(f.compareTo(l)<0)return f}return c}static formatDecimal(s){const l=s.format(),a=new t.default(l);let c=l.indexOf(o.NUMERAL_SYSTEM.getRadixPointChar());const d=o.NUMERAL_SYSTEM.toChar(0);for(c<0&&(c=l.length,a.append(o.NUMERAL_SYSTEM.getRadixPointChar()));c<6;)a.insert(0,d),++c;for(;a[a.length-1]===d;)a.length=a.length-1;return a.toString()}genPrev(){if(this.isMax())return new o(this.bucket,o.INITIAL_MAX_DECIMAL);const s=this.decimal.floor();let a=n.LexoDecimal.from(s).subtract(o.EIGHT_DECIMAL);return a.compareTo(o.MIN_DECIMAL)<=0&&(a=o.between(o.MIN_DECIMAL,this.decimal)),new o(this.bucket,a)}genNext(){if(this.isMin())return new o(this.bucket,o.INITIAL_MIN_DECIMAL);const s=this.decimal.ceil();let a=n.LexoDecimal.from(s).add(o.EIGHT_DECIMAL);return a.compareTo(o.MAX_DECIMAL)>=0&&(a=o.between(this.decimal,o.MAX_DECIMAL)),new o(this.bucket,a)}between(s){if(!this.bucket.equals(s.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(s.decimal);if(l>0)return new o(this.bucket,o.between(s.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+s+" this.decimal="+this.decimal+" other.decimal="+s.decimal);return new o(this.bucket,o.between(this.decimal,s.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return o.from(this.bucket.next(),this.decimal)}inPrevBucket(){return o.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(o.MIN_DECIMAL)}isMax(){return this.decimal.equals(o.MAX_DECIMAL)}format(){return this.value}equals(s){return this===s?!0:s?this.value===s.value:!1}toString(){return this.value}compareTo(s){return this===s?0:s?this.value.localeCompare(s.value):1}}return bf.LexoRank=o,bf}(function(n){var e=yr&&yr.__createBinding||(Object.create?function(r,o,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(o,i);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,s,l)}:function(r,o,i,s){s===void 0&&(s=i),r[s]=o[i]}),t=yr&&yr.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,r,i)};Object.defineProperty(n,"__esModule",{value:!0}),t(z9(),n),t(B9(),n),t($g,n),t(Wd,n)})(I9);(function(n){var e=yr&&yr.__createBinding||(Object.create?function(r,o,i,s){s===void 0&&(s=i);var l=Object.getOwnPropertyDescriptor(o,i);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,s,l)}:function(r,o,i,s){s===void 0&&(s=i),r[s]=o[i]}),t=yr&&yr.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,r,i)};Object.defineProperty(n,"__esModule",{value:!0}),t(I9,n),t(kk,n)})(Hn);const Wf=60,JK=8,M5=Wf*JK;function f0(n,e){if(!n)return"0m";if(e==="days"){const r=Math.floor(n/M5),o=Math.floor(n%M5/Wf);if(r>0&&o>0)return`${r}d ${o}h`;if(r>0)return`${r}d`;{const i=n%Wf;return i>0?`${o}h ${i}m`:`${o}h`}}else{const r=Math.floor(n/Wf),o=n%Wf;return r>0&&o>0?`${r}h ${o}m`:r>0?`${r}h`:`${o}m`}}function V9(n){return(n==null?void 0:n.reduce((e,t)=>{var r;return e+(((r=t.activities)==null?void 0:r.length)??0)},0))??0}function YK(n){return(n==null?void 0:n.reduce((e,t)=>{var r;return e+(((r=t.milestones)==null?void 0:r.length)??0)},0))??0}function XK(n){return(n==null?void 0:n.reduce((e,t)=>{var o;const r=(o=t.milestones)!=null&&o.length?V9(t.milestones):0;return e+r},0))??0}function QK(n){return n.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function Mg(n,e){if(n.moved)return ld(e,n.moved.newIndex)}function ld(n,e){if(e===0)if(n.length>1){const t=n[e+1];return Hn.LexoRank.parse(t.rank).genPrev().format()}else return Hn.LexoRank.middle().format();else if(e===n.length-1){const t=n[e-1];return Hn.LexoRank.parse(t.rank).genNext().format()}else{const t=n[e-1],r=n[e+1];return Hn.LexoRank.parse(r.rank).between(Hn.LexoRank.parse(t.rank)).format()}}function h0(n,e="dd/MM/yyyy"){if(!n)return"";const t=Dh(n);return A9(t)?F9(t,e):""}function xk(n,e){return n.status.id===e.id}function eU(n,e){return n.activities.length===0?!1:!n.activities.some(t=>!xk(t,e))}function tU(n,e){return{...n,status:eU(n,e)?Mh.done:Mh.todo}}const W9=n=>{const{firstName:e,lastName:t}=n||{};return`${e??""}${e?" ":""}${t??""}`};function nU(n,e){const t=n.replace("#",""),r=parseInt(t.slice(0,2),16),o=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return`rgba(${r}, ${o}, ${i}, ${e})`}function rU(n,e=.15){var t;if(n.startsWith("#"))return nU(n,e);if(n.startsWith("rgba")){const r=(t=n.match(/rgba?\(([^)]+)\)/))==null?void 0:t[1].split(",").map(o=>o.trim());if(r&&r.length>=3){const[o,i,s]=r;return`rgba(${o}, ${i}, ${s}, ${e})`}}return n}function K9(n,e,t){const r=u.ref(""),o=u.ref(!1),i=u.ref({top:0,left:0}),s=u.computed(()=>t.value.filter(f=>f.firstName||f.lastName).map(f=>{const p=[f.firstName,f.lastName].filter(Boolean).join("_").replace(/\s+/g,"_");return{id:f.id,name:p}})),l=u.computed(()=>s.value.filter(f=>f.name.toLowerCase().includes(r.value.toLowerCase())));return{showMentionList:o,mentionListPosition:i,filteredUsers:l,mentionQuery:r,handleInput:f=>{const g=f.target,p=g.selectionStart,_=g.value.slice(0,p).match(/@(\w*)$/);_?(r.value=_[1],o.value=!0,u.nextTick(()=>{const{top:C,left:y}=oU(g,p);i.value={top:C,left:y}})):o.value=!1},handleKeydown:f=>{f.key==="Escape"&&o.value&&(o.value=!1)},selectUserMention:f=>{const g=n.value;if(!g)return;const p=g.selectionStart,m=e.value,_=m.slice(0,p).replace(/@(\w*)$/,`@${f} `),C=m.slice(p);e.value=_+C,o.value=!1,u.nextTick(()=>{g.focus(),g.setSelectionRange(_.length,_.length)})},getMentionedUserIds:f=>{const g=Array.from(f.matchAll(/@([\p{L}\p{M}0-9-_]+)/gu)).map(p=>p[1]);return s.value.filter(p=>g.includes(p.name)).map(p=>p.id)}}}function oU(n,e){const t=document.createElement("div"),r=document.createElement("span"),o=window.getComputedStyle(n),i=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","direction","letterSpacing","wordSpacing"];t.style.position="absolute",t.style.visibility="hidden",t.style.whiteSpace="pre-wrap",t.style.overflow="hidden",i.forEach(g=>{t.style[g]=o.getPropertyValue(g)}),t.style.width=o.getPropertyValue("width"),t.scrollTop=n.scrollTop,t.scrollLeft=n.scrollLeft;const s=n.value.substring(0,e),l=n.value.substring(e)||".";t.textContent=s,r.textContent=l[0],t.appendChild(r),document.body.appendChild(t);const a=r.getBoundingClientRect(),c=t.getBoundingClientRect(),d=n.getBoundingClientRect(),h=a.top-c.top+d.top-n.scrollTop,f=a.left-c.left+d.left-n.scrollLeft;return document.body.removeChild(t),{top:h+40,left:f}}const iU=["title"],sU={key:0,className:"ao-avatar__initials"},lU=["src"],js=u.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:l0.MD},color:{default:"primary"}},emits:["close"],setup(n,{emit:e}){const t=n,r=e,o=u.computed(()=>[`ao-avatar--${t.color}`,...t.avatarUrl?["ao-avatar-img",`ao-avatar-img--${t.size}`]:["ao-avatar",`ao-avatar--${t.size}`]]),i=QK(t.userName),s=l=>{r("close",l)};return(l,a)=>(u.openBlock(),u.createElementBlock("div",{role:"img",class:u.normalizeClass(o.value),title:n.userName},[n.avatarUrl?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("span",sU,u.toDisplayString(u.unref(i)),1)),n.avatarUrl?(u.openBlock(),u.createElementBlock("img",{key:1,className:"ao-avatar__image",src:n.avatarUrl},null,8,lU)):u.createCommentVNode("",!0),n.isClosable?(u.openBlock(),u.createBlock(Be,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:n.color,corners:"round",onClick:u.withModifiers(s,["stop"])},null,8,["color"])):u.createCommentVNode("",!0)],10,iU))}});const aU={class:"ao-card-template__subitems"},cU={class:"ao-card-template__subitem"},uU={class:"ao-card-template__subitem-number"},dU={class:"ao-card-template__subitem"},fU={class:"ao-card-template__subitem"},hU={class:"ao-card-template__body"},gU={class:"ao-card-template__col ao-card-template__col--phases"},pU={class:"ao-card-template__col-title"},mU={class:"ao-card-template__col-label"},_U={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},yU={class:"ao-card-template__footer"},vU={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},CU={class:"ao-card-template__col-title"},bU={class:"ao-card-template__col-label"},kU={class:"ao-card-template__col-body"},xU={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},SU={class:"ao-card-template__col-title"},wU={class:"ao-card-template__col-label"},TU={class:"ao-card-template__col-body"},EU={class:"ao-card-template-item__secondary"},Uy=5,NU=u.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(n,{emit:e}){const t=n,r=e,o=a=>{r("updateTitle",a)},i=(a,c)=>{r("deleteItem",a,c)},s=u.computed(()=>{var a;return((a=t.phases)==null?void 0:a.slice(0,Uy))??[]}),l=u.computed(()=>t.phases&&t.phases.length>Uy?t.phases.length-Uy:0);return(a,c)=>(u.openBlock(),u.createBlock(k9,{id:n.id,title:n.title,"is-draggable":!0,"onUpdate:title":o},u.createSlots({subtitle:u.withCtx(()=>[u.createElementVNode("ul",aU,[u.createElementVNode("li",cU,[u.createVNode(pt,{name:"MountainFlagOutlineRounded",size:"sm"}),u.createElementVNode("span",uU,u.toDisplayString(n.milestones),1)]),u.createElementVNode("li",dU,[u.createVNode(pt,{name:"TaskOutlineRounded",size:"sm"}),u.createElementVNode("span",fU,u.toDisplayString(n.activities),1)])])]),default:u.withCtx(()=>[u.createElementVNode("div",hU,[u.createElementVNode("div",gU,[u.createElementVNode("div",pU,[u.createVNode(pt,{name:"WaterfallChartRounded",size:"sm"}),u.createElementVNode("span",mU,u.toDisplayString(a.$t("template.phases.title")),1)]),n.phases?(u.openBlock(),u.createElementBlock("ul",_U,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,d=>(u.openBlock(),u.createBlock(Ah,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(u.openBlock(),u.createBlock(Ah,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)])])]),secondary:u.withCtx(()=>[u.createElementVNode("div",EU,[u.createVNode(Be,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:c[0]||(c[0]=u.withModifiers(d=>i(n.id,n.title),["stop"]))})])]),_:2},[n.updatedBy||n.updatedAt?{name:"footer",fn:u.withCtx(()=>[u.createElementVNode("div",yU,[n.updatedAt?(u.openBlock(),u.createElementBlock("div",vU,[u.createElementVNode("div",CU,[u.createElementVNode("span",bU,u.toDisplayString(a.$t("template.updatedAt.label")),1)]),u.createElementVNode("div",kU,[u.createElementVNode("span",null,u.toDisplayString(n.updatedAt),1)])])):u.createCommentVNode("",!0),n.updatedBy?(u.openBlock(),u.createElementBlock("div",xU,[u.createElementVNode("div",SU,[u.createElementVNode("span",wU,u.toDisplayString(a.$t("template.updatedBy.label")),1)]),u.createElementVNode("div",TU,[u.createVNode(js,{"user-name":n.updatedBy},null,8,["user-name"])])])):u.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const $U={class:"ao-page-header"},AU={class:"ao-page-header-main"},MU={key:0,class:"ao-page-header-secondary"},Og=u.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(n){return(e,t)=>(u.openBlock(),u.createElementBlock("header",$U,[u.createElementVNode("div",AU,[n.canGoBack?(u.openBlock(),u.createBlock(Be,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:t[0]||(t[0]=r=>e.$emit("goBack"))})):u.createCommentVNode("",!0),u.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(u.openBlock(),u.createElementBlock("div",MU,[u.renderSlot(e.$slots,"secondary")])):u.createCommentVNode("",!0)]))}});const OU=["type"],DU={key:0,class:"ao-button-card__label"},aa=u.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>bk.BLACK},size:{default:()=>l0.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>C9.ROUNDED}},setup(n){const e=n,t=u.computed(()=>e.size),r=u.computed(()=>e.isLoading?"Loading":e.iconName);return(o,i)=>(u.openBlock(),u.createElementBlock("button",{type:n.type,class:u.normalizeClass(["ao-button-card",`ao-button-card--${n.color}`,`ao-button-card--${n.corners}`,o.$attrs.disabled?"ao-button-card--is-disabled":""])},[u.renderSlot(o.$slots,"default",{},()=>[n.label?(u.openBlock(),u.createElementBlock("span",DU,u.toDisplayString(n.label),1)):u.createCommentVNode("",!0)]),r.value?(u.openBlock(),u.createBlock(pt,{key:0,name:r.value,class:"ao-button-card__icon",size:t.value},null,8,["name","size"])):u.createCommentVNode("",!0)],10,OU))}});const LU={class:"ao-card-template-item__footer"},FU={key:0,class:"ao-card-template-item__subitem"},PU={class:"ao-card-template-item__subitem-number"},IU={class:"ao-card-template-item__secondary"},Sk=u.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(n,{emit:e}){const t=e,r=l=>{t("update:title",l)},o=["milestones","activities","rules","tasks"],i={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},s=()=>{t("remove")};return(l,a)=>(u.openBlock(),u.createBlock(k9,{"onUpdate:title":r},{footer:u.withCtx(()=>[u.createElementVNode("ul",LU,[(u.openBlock(),u.createElementBlock(u.Fragment,null,u.renderList(o,c=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:c},[l.$props[c]?(u.openBlock(),u.createElementBlock("li",FU,[u.createVNode(pt,{name:i[c],size:"sm"},null,8,["name"]),u.createElementVNode("span",PU,u.toDisplayString(l.$props[c]),1)])):u.createCommentVNode("",!0)],64))),64))])]),secondary:u.withCtx(()=>[u.createElementVNode("div",IU,[u.createVNode(Be,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u.withModifiers(s,["stop"])})])]),_:1}))}});const BU=u.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(n){const e=n,t=u.computed(()=>{var o;return(o=e.milestones)==null?void 0:o.length}),r=u.computed(()=>e.milestones?V9(e.milestones):0);return(o,i)=>(u.openBlock(),u.createBlock(Sk,u.mergeProps({id:n.id,title:n.name,activities:r.value,milestones:t.value},o.$attrs),{default:u.withCtx(()=>[u.renderSlot(o.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),RU=u.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(n){const e=n,t=u.computed(()=>{var r;return((r=e.activities)==null?void 0:r.length)||0});return(r,o)=>(u.openBlock(),u.createBlock(Sk,{activities:t.value},{default:u.withCtx(()=>[u.renderSlot(r.$slots,"default")]),_:3},8,["activities"]))}}),zU={class:"ao-list__footer"},VU=u.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(n,{emit:e}){const t=n,r=e,o=()=>{r("addMilestone",{phaseId:t.phase.id})},i=a=>{r("removeMilestone",{phaseId:t.phase.id,id:a})},s=a=>{r("updateMilestone",a)},l=a=>{if(a.moved){const c=Mg(a,t.phase.milestones);r("updateMilestone",{id:a.moved.element.id,rank:c})}};return(a,c)=>n.phase?(u.openBlock(),u.createBlock(u.unref(la),{key:0,"model-value":n.phase.milestones,class:"ao-templates__list",title:a.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:u.withCtx(()=>[u.createVNode(nr,{title:"Milestones",level:3,class:"ao-list__title"})]),item:u.withCtx(({element:d})=>[(u.openBlock(),u.createBlock(RU,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":n.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":h=>s({id:d.id,name:h}),onClick:h=>a.$router.push({params:{milestoneId:d.id}}),onRemove:()=>i(d.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:u.withCtx(()=>[u.createElementVNode("div",zU,[u.createVNode(aa,{"icon-name":"AddBoxOutlineRounded",label:a.$t("template.milestones.add"),onClick:o},null,8,["label"])])]),_:1},8,["model-value","title"])):u.createCommentVNode("",!0)}}),WU=u.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(n){const e=n,t=u.computed(()=>{var r;return((r=e.tasks)==null?void 0:r.length)||0});return(r,o)=>(u.openBlock(),u.createBlock(Sk,{tasks:t.value},{default:u.withCtx(()=>[u.renderSlot(r.$slots,"default")]),_:3},8,["tasks"]))}}),KU={class:"ao-list__footer"},UU=u.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(n,{emit:e}){const t=n,r=e,o=()=>{r("addActivity",{milestoneId:t.milestone.id})},i=a=>{r("updateActivity",{...a})},s=a=>{r("removeActivity",{id:a})},l=a=>{if(a.moved){const c=Mg(a,t.milestone.activities);r("updateActivity",{id:a.moved.element.id,rank:c})}};return(a,c)=>n.milestone?(u.openBlock(),u.createBlock(u.unref(la),{key:0,"model-value":n.milestone.activities,title:a.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:u.withCtx(()=>[u.createVNode(nr,{title:"Activities",level:3,class:"ao-list__title"})]),item:u.withCtx(({element:d})=>[(u.openBlock(),u.createBlock(WU,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":n.activityId===d.id,"is-draggable":!0,"onUpdate:title":h=>i({id:d.id,name:h}),onClick:h=>a.$router.push({params:{activityId:d.id}}),onRemove:()=>s(d.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:u.withCtx(()=>[u.createElementVNode("div",KU,[u.createVNode(aa,{"icon-name":"AddBoxOutlineRounded",label:a.$t("template.activities.add"),onClick:o},null,8,["label"])])]),_:1},8,["model-value","title"])):u.createCommentVNode("",!0)}}),HU={class:"ao-modal"},qU={key:0,class:"ao-modal__header"},jU={class:"ao-modal__header-meta"},ZU={class:"ao-modal__title-group"},GU={class:"ao-modal__body"},JU={key:1,class:"ao-modal__footer"},g0=u.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(n){return(e,t)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${n.size}`])},[u.createElementVNode("div",{class:"ao-modal__backdrop",onClick:t[0]||(t[0]=r=>e.$emit("close"))}),u.createElementVNode("div",HU,[e.$slots.header?(u.openBlock(),u.createElementBlock("div",qU,[u.createElementVNode("div",jU,[u.createVNode(Be,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:t[1]||(t[1]=r=>e.$emit("close"))})]),u.createElementVNode("header",ZU,[u.renderSlot(e.$slots,"header")])])):u.createCommentVNode("",!0),u.createElementVNode("div",GU,[u.renderSlot(e.$slots,"default")]),e.$slots.footer?(u.openBlock(),u.createElementBlock("footer",JU,[u.renderSlot(e.$slots,"footer")])):u.createCommentVNode("",!0)])],2))}});const Lh=Math.min,no=Math.max,rm=Math.round,Np=Math.floor,Kl=n=>({x:n,y:n}),YU={left:"right",right:"left",bottom:"top",top:"bottom"},XU={start:"end",end:"start"};function wk(n,e){return typeof n=="function"?n(e):n}function ad(n){return n.split("-")[0]}function p0(n){return n.split("-")[1]}function QU(n){return n==="x"?"y":"x"}function U9(n){return n==="y"?"height":"width"}function Tk(n){return["top","bottom"].includes(ad(n))?"y":"x"}function H9(n){return QU(Tk(n))}function eH(n,e,t){t===void 0&&(t=!1);const r=p0(n),o=H9(n),i=U9(o);let s=o==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=om(s)),[s,om(s)]}function tH(n){const e=om(n);return[X2(n),e,X2(e)]}function X2(n){return n.replace(/start|end/g,e=>XU[e])}function nH(n,e,t){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(n){case"top":case"bottom":return t?e?o:r:e?r:o;case"left":case"right":return e?i:s;default:return[]}}function rH(n,e,t,r){const o=p0(n);let i=nH(ad(n),t==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(X2)))),i}function om(n){return n.replace(/left|right|bottom|top/g,e=>YU[e])}function oH(n){return{top:0,right:0,bottom:0,left:0,...n}}function iH(n){return typeof n!="number"?oH(n):{top:n,right:n,bottom:n,left:n}}function im(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function O5(n,e,t){let{reference:r,floating:o}=n;const i=Tk(e),s=H9(e),l=U9(s),a=ad(e),c=i==="y",d=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let g;switch(a){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-o.width,y:h};break;default:g={x:r.x,y:r.y}}switch(p0(e)){case"start":g[s]-=f*(t&&c?-1:1);break;case"end":g[s]+=f*(t&&c?-1:1);break}return g}const sH=async(n,e,t)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=t,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:n,floating:e,strategy:o}),{x:d,y:h}=O5(c,r,a),f=r,g={},p=0;for(let m=0;m<l.length;m++){const{name:_,fn:C}=l[m],{x:y,y:v,data:k,reset:x}=await C({x:d,y:h,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:n,floating:e}});if(d=y??d,h=v??h,g={...g,[_]:{...g[_],...k}},x&&p<=50){p++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:n,floating:e,strategy:o}):x.rects),{x:d,y:h}=O5(c,f,a)),m=-1;continue}}return{x:d,y:h,placement:f,strategy:o,middlewareData:g}};async function q9(n,e){var t;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=n,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:g=0}=wk(e,n),p=iH(g),_=l[f?h==="floating"?"reference":"floating":h],C=im(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(_)))==null||t?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:a})),y=h==="floating"?{...s.floating,x:r,y:o}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},x=im(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:a}):y);return{top:(C.top-x.top+p.top)/k.y,bottom:(x.bottom-C.bottom+p.bottom)/k.y,left:(C.left-x.left+p.left)/k.x,right:(x.right-C.right+p.right)/k.x}}const lH=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:c}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,..._}=wk(n,e);if((t=i.arrow)!=null&&t.alignmentOffset)return{};const C=ad(o),y=ad(l)===l,v=await(a.isRTL==null?void 0:a.isRTL(c.floating)),k=f||(y||!m?[om(l)]:tH(l));!f&&p!=="none"&&k.push(...rH(l,m,p,v));const x=[l,...k],b=await q9(e,_),T=[];let w=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&T.push(b[C]),h){const O=eH(o,s,v);T.push(b[O[0]],b[O[1]])}if(w=[...w,{placement:o,overflows:T}],!T.every(O=>O<=0)){var S,N;const O=(((S=i.flip)==null?void 0:S.index)||0)+1,M=x[O];if(M)return{data:{index:O,overflows:w},reset:{placement:M}};let A=(N=w.filter(F=>F.overflows[0]<=0).sort((F,P)=>F.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!A)switch(g){case"bestFit":{var $;const F=($=w.map(P=>[P.placement,P.overflows.filter(z=>z>0).reduce((z,I)=>z+I,0)]).sort((P,z)=>P[1]-z[1])[0])==null?void 0:$[0];F&&(A=F);break}case"initialPlacement":A=l;break}if(o!==A)return{reset:{placement:A}}}return{}}}},aH=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){const{placement:t,rects:r,platform:o,elements:i}=e,{apply:s=()=>{},...l}=wk(n,e),a=await q9(e,l),c=ad(t),d=p0(t),h=Tk(t)==="y",{width:f,height:g}=r.floating;let p,m;c==="top"||c==="bottom"?(p=c,m=d===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,p=d==="end"?"top":"bottom");const _=g-a[p],C=f-a[m],y=!e.middlewareData.shift;let v=_,k=C;if(h){const b=f-a.left-a.right;k=d||y?Lh(C,b):b}else{const b=g-a.top-a.bottom;v=d||y?Lh(_,b):b}if(y&&!d){const b=no(a.left,0),T=no(a.right,0),w=no(a.top,0),S=no(a.bottom,0);h?k=f-2*(b!==0||T!==0?b+T:no(a.left,a.right)):v=g-2*(w!==0||S!==0?w+S:no(a.top,a.bottom))}await s({...e,availableWidth:k,availableHeight:v});const x=await o.getDimensions(i.floating);return f!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}};function Ul(n){return j9(n)?(n.nodeName||"").toLowerCase():"#document"}function Hr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Zs(n){var e;return(e=(j9(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function j9(n){return n instanceof Node||n instanceof Hr(n).Node}function Is(n){return n instanceof Element||n instanceof Hr(n).Element}function Ni(n){return n instanceof HTMLElement||n instanceof Hr(n).HTMLElement}function D5(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Hr(n).ShadowRoot}function Dg(n){const{overflow:e,overflowX:t,overflowY:r,display:o}=lo(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(o)}function cH(n){return["table","td","th"].includes(Ul(n))}function Ek(n){const e=Nk(),t=lo(n);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(t.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(t.contain||"").includes(r))}function uH(n){let e=cd(n);for(;Ni(e)&&!m0(e);){if(Ek(e))return e;e=cd(e)}return null}function Nk(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function m0(n){return["html","body","#document"].includes(Ul(n))}function lo(n){return Hr(n).getComputedStyle(n)}function _0(n){return Is(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function cd(n){if(Ul(n)==="html")return n;const e=n.assignedSlot||n.parentNode||D5(n)&&n.host||Zs(n);return D5(e)?e.host:e}function Z9(n){const e=cd(n);return m0(e)?n.ownerDocument?n.ownerDocument.body:n.body:Ni(e)&&Dg(e)?e:Z9(e)}function Fh(n,e,t){var r;e===void 0&&(e=[]),t===void 0&&(t=!0);const o=Z9(n),i=o===((r=n.ownerDocument)==null?void 0:r.body),s=Hr(o);return i?e.concat(s,s.visualViewport||[],Dg(o)?o:[],s.frameElement&&t?Fh(s.frameElement):[]):e.concat(o,Fh(o))}function G9(n){const e=lo(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Ni(n),i=o?n.offsetWidth:t,s=o?n.offsetHeight:r,l=rm(t)!==i||rm(r)!==s;return l&&(t=i,r=s),{width:t,height:r,$:l}}function $k(n){return Is(n)?n:n.contextElement}function Uu(n){const e=$k(n);if(!Ni(e))return Kl(1);const t=e.getBoundingClientRect(),{width:r,height:o,$:i}=G9(e);let s=(i?rm(t.width):t.width)/r,l=(i?rm(t.height):t.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const dH=Kl(0);function J9(n){const e=Hr(n);return!Nk()||!e.visualViewport?dH:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fH(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Hr(n)?!1:e}function mc(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const o=n.getBoundingClientRect(),i=$k(n);let s=Kl(1);e&&(r?Is(r)&&(s=Uu(r)):s=Uu(n));const l=fH(i,t,r)?J9(i):Kl(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(i){const f=Hr(i),g=r&&Is(r)?Hr(r):r;let p=f.frameElement;for(;p&&r&&g!==f;){const m=Uu(p),_=p.getBoundingClientRect(),C=lo(p),y=_.left+(p.clientLeft+parseFloat(C.paddingLeft))*m.x,v=_.top+(p.clientTop+parseFloat(C.paddingTop))*m.y;a*=m.x,c*=m.y,d*=m.x,h*=m.y,a+=y,c+=v,p=Hr(p).frameElement}}return im({width:d,height:h,x:a,y:c})}function hH(n){let{rect:e,offsetParent:t,strategy:r}=n;const o=Ni(t),i=Zs(t);if(t===i)return e;let s={scrollLeft:0,scrollTop:0},l=Kl(1);const a=Kl(0);if((o||!o&&r!=="fixed")&&((Ul(t)!=="body"||Dg(i))&&(s=_0(t)),Ni(t))){const c=mc(t);l=Uu(t),a.x=c.x+t.clientLeft,a.y=c.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+a.x,y:e.y*l.y-s.scrollTop*l.y+a.y}}function gH(n){return Array.from(n.getClientRects())}function Y9(n){return mc(Zs(n)).left+_0(n).scrollLeft}function pH(n){const e=Zs(n),t=_0(n),r=n.ownerDocument.body,o=no(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=no(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-t.scrollLeft+Y9(n);const l=-t.scrollTop;return lo(r).direction==="rtl"&&(s+=no(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function mH(n,e){const t=Hr(n),r=Zs(n),o=t.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const c=Nk();(!c||c&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}function _H(n,e){const t=mc(n,!0,e==="fixed"),r=t.top+n.clientTop,o=t.left+n.clientLeft,i=Ni(n)?Uu(n):Kl(1),s=n.clientWidth*i.x,l=n.clientHeight*i.y,a=o*i.x,c=r*i.y;return{width:s,height:l,x:a,y:c}}function L5(n,e,t){let r;if(e==="viewport")r=mH(n,t);else if(e==="document")r=pH(Zs(n));else if(Is(e))r=_H(e,t);else{const o=J9(n);r={...e,x:e.x-o.x,y:e.y-o.y}}return im(r)}function X9(n,e){const t=cd(n);return t===e||!Is(t)||m0(t)?!1:lo(t).position==="fixed"||X9(t,e)}function yH(n,e){const t=e.get(n);if(t)return t;let r=Fh(n,[],!1).filter(l=>Is(l)&&Ul(l)!=="body"),o=null;const i=lo(n).position==="fixed";let s=i?cd(n):n;for(;Is(s)&&!m0(s);){const l=lo(s),a=Ek(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Dg(s)&&!a&&X9(n,s))?r=r.filter(d=>d!==s):o=l,s=cd(s)}return e.set(n,r),r}function vH(n){let{element:e,boundary:t,rootBoundary:r,strategy:o}=n;const s=[...t==="clippingAncestors"?yH(e,this._c):[].concat(t),r],l=s[0],a=s.reduce((c,d)=>{const h=L5(e,d,o);return c.top=no(h.top,c.top),c.right=Lh(h.right,c.right),c.bottom=Lh(h.bottom,c.bottom),c.left=no(h.left,c.left),c},L5(e,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function CH(n){return G9(n)}function bH(n,e,t){const r=Ni(e),o=Zs(e),i=t==="fixed",s=mc(n,!0,i,e);let l={scrollLeft:0,scrollTop:0};const a=Kl(0);if(r||!r&&!i)if((Ul(e)!=="body"||Dg(o))&&(l=_0(e)),r){const c=mc(e,!0,i,e);a.x=c.x+e.clientLeft,a.y=c.y+e.clientTop}else o&&(a.x=Y9(o));return{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function F5(n,e){return!Ni(n)||lo(n).position==="fixed"?null:e?e(n):n.offsetParent}function Q9(n,e){const t=Hr(n);if(!Ni(n))return t;let r=F5(n,e);for(;r&&cH(r)&&lo(r).position==="static";)r=F5(r,e);return r&&(Ul(r)==="html"||Ul(r)==="body"&&lo(r).position==="static"&&!Ek(r))?t:r||uH(n)||t}const kH=async function(n){let{reference:e,floating:t,strategy:r}=n;const o=this.getOffsetParent||Q9,i=this.getDimensions;return{reference:bH(e,await o(t),r),floating:{x:0,y:0,...await i(t)}}};function xH(n){return lo(n).direction==="rtl"}const SH={convertOffsetParentRelativeRectToViewportRelativeRect:hH,getDocumentElement:Zs,getClippingRect:vH,getOffsetParent:Q9,getElementRects:kH,getClientRects:gH,getDimensions:CH,getScale:Uu,isElement:Is,isRTL:xH};function wH(n,e){let t=null,r;const o=Zs(n);function i(){clearTimeout(r),t&&t.disconnect(),t=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:c,top:d,width:h,height:f}=n.getBoundingClientRect();if(l||e(),!h||!f)return;const g=Np(d),p=Np(o.clientWidth-(c+h)),m=Np(o.clientHeight-(d+f)),_=Np(c),y={rootMargin:-g+"px "+-p+"px "+-m+"px "+-_+"px",threshold:no(0,Lh(1,a))||1};let v=!0;function k(x){const b=x[0].intersectionRatio;if(b!==a){if(!v)return s();b?s(!1,b):r=setTimeout(()=>{s(!1,1e-7)},100)}v=!1}try{t=new IntersectionObserver(k,{...y,root:o.ownerDocument})}catch{t=new IntersectionObserver(k,y)}t.observe(n)}return s(!0),i}function TH(n,e,t,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=$k(n),d=o||i?[...c?Fh(c):[],...Fh(e)]:[];d.forEach(C=>{o&&C.addEventListener("scroll",t,{passive:!0}),i&&C.addEventListener("resize",t)});const h=c&&l?wH(c,t):null;let f=-1,g=null;s&&(g=new ResizeObserver(C=>{let[y]=C;y&&y.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{g&&g.observe(e)})),t()}),c&&!a&&g.observe(c),g.observe(e));let p,m=a?mc(n):null;a&&_();function _(){const C=mc(n);m&&(C.x!==m.x||C.y!==m.y||C.width!==m.width||C.height!==m.height)&&t(),m=C,p=requestAnimationFrame(_)}return t(),()=>{d.forEach(C=>{o&&C.removeEventListener("scroll",t),i&&C.removeEventListener("resize",t)}),h&&h(),g&&g.disconnect(),g=null,a&&cancelAnimationFrame(p)}}const EH=(n,e,t)=>{const r=new Map,o={platform:SH,...t},i={...o.platform,_c:r};return sH(n,e,{...o,platform:i})},NH=n=>{const e=u.ref(!1),t=u.ref(),r=u.ref(),o=u.ref(0);function i(){const h=u.unref(n.appendTo);return h?typeof h=="string"?document.getElementById(h)??document.body:h:document.getElementById("floatingElements")??document.body}const s=i(),l=u.ref(()=>{});function a(h){h.relatedTarget&&r.value&&r.value.contains(h.relatedTarget)||n.multiselect.value.deactivate()}function c(){const h=n.multiselect.value.$el,f=h.querySelector(".multiselect-dropdown");if(!f||!h||e.value===!0)return;r.value=f,t.value=h,getComputedStyle(f).getPropertyValue("display")==="none"&&(f.style.display="flex"),o.value=f.offsetHeight,f.style.removeProperty("display"),Object.assign(f.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),s.appendChild(f),n.multiselect.value.handleFocusOut=a;const p=TH(t.value,r.value,d);l.value=()=>{r.value&&s.contains(r.value)&&s.removeChild(r.value),p()}}function d(){!r.value||!t.value||EH(t.value,r.value,{strategy:"absolute",placement:"bottom-start",middleware:[lH({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),aH({apply({availableWidth:h,availableHeight:f,elements:g,rects:p}){Object.assign(g.floating.style,{minHeight:`${o.value}px`,width:`${p.reference.width}px`,maxWidth:`${h}px`,maxHeight:`${f}px`})}})]}).then(({x:h,y:f})=>{Object.assign(r.value.style,{left:`${h}px`,top:`${f}px`})})}u.onMounted(()=>{c()}),u.onBeforeUnmount(()=>{l.value()}),u.onUnmounted(()=>{l.value()})};function ri(n){return[null,void 0].indexOf(n)!==-1}function $H(n,e,t){const{object:r,valueProp:o,mode:i}=u.toRefs(n),s=u.getCurrentInstance().proxy,l=t.iv,a=(h,f=!0)=>{l.value=d(h);const g=c(h);e.emit("change",g,s),f&&(e.emit("input",g),e.emit("update:modelValue",g))},c=h=>r.value||ri(h)?h:Array.isArray(h)?h.map(f=>f[o.value]):h[o.value],d=h=>ri(h)?i.value==="single"?{}:[]:h;return{update:a}}function AH(n,e){const{value:t,modelValue:r,mode:o,valueProp:i}=u.toRefs(n),s=u.ref(o.value!=="single"?[]:{}),l=u.computed(()=>r&&r.value!==void 0?r.value:t.value),a=u.computed(()=>o.value==="single"?s.value[i.value]:s.value.map(d=>d[i.value])),c=u.computed(()=>o.value!=="single"?s.value.map(d=>d[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:c,plainValue:a}}function MH(n,e,t){const{regex:r}=u.toRefs(n),o=u.getCurrentInstance().proxy,i=t.isOpen,s=t.open,l=u.ref(null),a=()=>{l.value=""},c=f=>{l.value=f.target.value},d=f=>{if(r&&r.value){let g=r.value;typeof g=="string"&&(g=new RegExp(g)),f.key.match(g)||f.preventDefault()}},h=f=>{if(r&&r.value){let p=(f.clipboardData||window.clipboardData).getData("Text"),m=r.value;typeof m=="string"&&(m=new RegExp(m)),p.split("").every(_=>!!_.match(m))||f.preventDefault()}e.emit("paste",f,o)};return u.watch(l,f=>{!i.value&&f&&s(),e.emit("search-change",f,o)}),{search:l,clearSearch:a,handleSearchInput:c,handleKeypress:d,handlePaste:h}}function OH(n,e,t){const{groupSelect:r,mode:o,groups:i,disabledProp:s}=u.toRefs(n),l=u.ref(null),a=d=>{d===void 0||d!==null&&d[s.value]||i.value&&d&&d.group&&(o.value==="single"||!r.value)||(l.value=d)};return{pointer:l,setPointer:a,clearPointer:()=>{a(null)}}}function Hy(n,e=!0){return e?String(n).toLowerCase().trim():String(n).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function DH(n){return Object.prototype.toString.call(n)==="[object Object]"}function LH(n,e){const t=e.slice().sort();return n.length===e.length&&n.slice().sort().every(function(r,o){return r===t[o]})}function FH(n,e,t){const{options:r,mode:o,trackBy:i,limit:s,hideSelected:l,createTag:a,createOption:c,label:d,appendNewTag:h,appendNewOption:f,multipleLabel:g,object:p,loading:m,delay:_,resolveOnLoad:C,minChars:y,filterResults:v,clearOnSearch:k,clearOnSelect:x,valueProp:b,allowAbsent:T,groupLabel:w,canDeselect:S,max:N,strict:$,closeOnSelect:O,closeOnDeselect:M,groups:A,reverse:F,infinite:P,groupOptions:z,groupHideEmpty:I,groupSelect:L,onCreate:U,disabledProp:W,searchStart:H,searchFilter:fe}=u.toRefs(n),G=u.getCurrentInstance().proxy,ae=t.iv,R=t.ev,J=t.search,B=t.clearSearch,Z=t.update,Ee=t.pointer,zt=t.setPointer,Le=t.clearPointer,Ge=t.focus,Xe=t.deactivate,fr=t.close,mt=t.localize,hr=u.ref([]),$r=u.ref([]),Lt=u.ref(!1),gr=u.ref(null),Ar=u.ref(P.value&&s.value===-1?10:s.value),tl=u.computed(()=>a.value||c.value||!1),ka=u.computed(()=>h.value!==void 0?h.value:f.value!==void 0?f.value:!0),Ft=u.computed(()=>{if(A.value){let V=bo.value||[],ce=[];return V.forEach(ze=>{ff(ze[z.value]).forEach(St=>{ce.push(Object.assign({},St,ze[W.value]?{[W.value]:!0}:{}))})}),ce}else{let V=ff($r.value||[]);return hr.value.length&&(V=V.concat(hr.value)),V}}),pr=u.computed(()=>{let V=Ft.value;return F.value&&(V=V.reverse()),Hi.value.length&&(V=Hi.value.concat(V)),df(V)}),Bn=u.computed(()=>{let V=pr.value;return Ar.value>0&&(V=V.slice(0,Ar.value)),V}),bo=u.computed(()=>{if(!A.value)return[];let V=[],ce=$r.value||[];return hr.value.length&&V.push({[w.value]:" ",[z.value]:[...hr.value],__CREATE__:!0}),V.concat(ce)}),Ui=u.computed(()=>{let V=[...bo.value].map(ce=>({...ce}));return Hi.value.length&&(V[0]&&V[0].__CREATE__?V[0][z.value]=[...Hi.value,...V[0][z.value]]:V=[{[w.value]:" ",[z.value]:[...Hi.value],__CREATE__:!0}].concat(V)),V}),nl=u.computed(()=>{if(!A.value)return[];let V=Ui.value;return wa((V||[]).map((ce,ze)=>{const St=ff(ce[z.value]);return{...ce,index:ze,group:!0,[z.value]:df(St,!1).map(qi=>Object.assign({},qi,ce[W.value]?{[W.value]:!0}:{})),__VISIBLE__:df(St).map(qi=>Object.assign({},qi,ce[W.value]?{[W.value]:!0}:{}))}}))}),xa=u.computed(()=>{switch(o.value){case"single":return!ri(ae.value[b.value]);case"multiple":case"tags":return!ri(ae.value)&&ae.value.length>0}}),rl=u.computed(()=>g!==void 0&&g.value!==void 0?g.value(ae.value,G):ae.value&&ae.value.length>1?`${ae.value.length} options selected`:"1 option selected"),pu=u.computed(()=>!Ft.value.length&&!Lt.value&&!Hi.value.length),mu=u.computed(()=>Ft.value.length>0&&Bn.value.length==0&&(J.value&&A.value||!A.value)),Hi=u.computed(()=>tl.value===!1||!J.value?[]:vp(J.value)!==-1?[]:[{[b.value]:J.value,[ti.value[0]]:J.value,[d.value]:J.value,__CREATE__:!0}]),ti=u.computed(()=>i.value?Array.isArray(i.value)?i.value:[i.value]:[d.value]),mp=u.computed(()=>{switch(o.value){case"single":return null;case"multiple":case"tags":return[]}}),lf=u.computed(()=>m.value||Lt.value),ko=V=>{switch(typeof V!="object"&&(V=Fr(V)),o.value){case"single":Z(V);break;case"multiple":case"tags":Z(ae.value.concat(V));break}e.emit("select",Or(V),V,G)},Mr=V=>{switch(typeof V!="object"&&(V=Fr(V)),o.value){case"single":af();break;case"tags":case"multiple":Z(Array.isArray(V)?ae.value.filter(ce=>V.map(ze=>ze[b.value]).indexOf(ce[b.value])===-1):ae.value.filter(ce=>ce[b.value]!=V[b.value]));break}e.emit("deselect",Or(V),V,G)},Or=V=>p.value?V:V[b.value],_u=V=>{Mr(V)},_p=(V,ce)=>{if(ce.button!==0){ce.preventDefault();return}_u(V)},af=()=>{Z(mp.value),e.emit("clear",G)},Dr=V=>{if(V.group!==void 0)return o.value==="single"?!1:yp(V[z.value])&&V[z.value].length;switch(o.value){case"single":return!ri(ae.value)&&ae.value[b.value]==V[b.value];case"tags":case"multiple":return!ri(ae.value)&&ae.value.map(ce=>ce[b.value]).indexOf(V[b.value])!==-1}},yu=V=>V[W.value]===!0,ol=()=>N===void 0||N.value===-1||!xa.value&&N.value>0?!1:ae.value.length>=N.value,vu=V=>{if(!yu(V)){if(U&&U.value&&!Dr(V)&&V.__CREATE__&&(V={...V},delete V.__CREATE__,V=U.value(V,G),V instanceof Promise)){Lt.value=!0,V.then(ce=>{Lt.value=!1,Lr(ce)});return}Lr(V)}},Lr=V=>{switch(V.__CREATE__&&(V={...V},delete V.__CREATE__),o.value){case"single":if(V&&Dr(V)){S.value&&Mr(V),M.value&&(Le(),fr());return}V&&Sa(V),x.value&&B(),O.value&&(Le(),fr()),V&&ko(V);break;case"multiple":if(V&&Dr(V)){Mr(V),M.value&&(Le(),fr());return}if(ol()){e.emit("max",G);return}V&&(Sa(V),ko(V)),x.value&&B(),l.value&&Le(),O.value&&fr();break;case"tags":if(V&&Dr(V)){Mr(V),M.value&&(Le(),fr());return}if(ol()){e.emit("max",G);return}V&&Sa(V),x.value&&B(),V&&ko(V),l.value&&Le(),O.value&&fr();break}O.value||Ge()},il=V=>{if(!(yu(V)||o.value==="single"||!L.value)){switch(o.value){case"multiple":case"tags":Iy(V[z.value])?Mr(V[z.value]):ko(V[z.value].filter(ce=>ae.value.map(ze=>ze[b.value]).indexOf(ce[b.value])===-1).filter(ce=>!ce[W.value]).filter((ce,ze)=>ae.value.length+1+ze<=N.value||N.value===-1)),l.value&&Ee.value&&zt(nl.value.filter(ce=>!ce[W.value])[Ee.value.index]);break}O.value&&Xe()}},Sa=V=>{Fr(V[b.value])===void 0&&tl.value&&(e.emit("tag",V[b.value],G),e.emit("option",V[b.value],G),e.emit("create",V[b.value],G),ka.value&&By(V),B())},cf=()=>{o.value!=="single"&&ko(Bn.value.filter(V=>!V.disabled&&!Dr(V)))},Iy=V=>V.find(ce=>!Dr(ce)&&!ce[W.value])===void 0,yp=V=>V.find(ce=>!Dr(ce))===void 0,Fr=V=>Ft.value[Ft.value.map(ce=>String(ce[b.value])).indexOf(String(V))],vp=V=>Ft.value.findIndex(ce=>ti.value.some(ze=>(parseInt(ce[ze])==ce[ze]?parseInt(ce[ze]):ce[ze])===(parseInt(V)==V?parseInt(V):V))),uf=V=>["tags","multiple"].indexOf(o.value)!==-1&&l.value&&Dr(V),By=V=>{hr.value.push(V)},wa=V=>I.value?V.filter(ce=>J.value?ce.__VISIBLE__.length:ce[z.value].length):V.filter(ce=>J.value?ce.__VISIBLE__.length:!0),df=(V,ce=!0)=>{let ze=V;if(J.value&&v.value){let St=fe.value;St||(St=(qi,So,pf)=>ti.value.some(ji=>{let bp=Hy(mt(qi[ji]),$.value);return H.value?bp.startsWith(Hy(So,$.value)):bp.indexOf(Hy(So,$.value))!==-1})),ze=ze.filter(qi=>St(qi,J.value,G))}return l.value&&ce&&(ze=ze.filter(St=>!uf(St))),ze},ff=V=>{let ce=V;return DH(ce)&&(ce=Object.keys(ce).map(ze=>{let St=ce[ze];return{[b.value]:ze,[ti.value[0]]:St,[d.value]:St}})),ce=ce.map(ze=>typeof ze=="object"?ze:{[b.value]:ze,[ti.value[0]]:ze,[d.value]:ze}),ce},ft=()=>{ri(R.value)||(ae.value=sl(R.value))},xo=V=>(Lt.value=!0,new Promise((ce,ze)=>{r.value(J.value,G).then(St=>{$r.value=St||[],typeof V=="function"&&V(St),Lt.value=!1}).catch(St=>{console.error(St),$r.value=[],Lt.value=!1}).finally(()=>{ce()})})),hf=()=>{if(xa.value)if(o.value==="single"){let V=Fr(ae.value[b.value]);if(V!==void 0){let ce=V[d.value];ae.value[d.value]=ce,p.value&&(R.value[d.value]=ce)}}else ae.value.forEach((V,ce)=>{let ze=Fr(ae.value[ce][b.value]);if(ze!==void 0){let St=ze[d.value];ae.value[ce][d.value]=St,p.value&&(R.value[ce][d.value]=St)}})},Cp=V=>{xo(V)},sl=V=>ri(V)?o.value==="single"?{}:[]:p.value?V:o.value==="single"?Fr(V)||(T.value?{[d.value]:V,[b.value]:V,[ti.value[0]]:V}:{}):V.filter(ce=>!!Fr(ce)||T.value).map(ce=>Fr(ce)||{[d.value]:ce,[b.value]:ce,[ti.value[0]]:ce}),gf=()=>{gr.value=u.watch(J,V=>{V.length<y.value||!V&&y.value!==0||(Lt.value=!0,k.value&&($r.value=[]),setTimeout(()=>{V==J.value&&r.value(J.value,G).then(ce=>{(V==J.value||!J.value)&&($r.value=ce,Ee.value=Bn.value.filter(ze=>ze[W.value]!==!0)[0]||null,Lt.value=!1)}).catch(ce=>{console.error(ce)})},_.value))},{flush:"sync"})};if(o.value!=="single"&&!ri(R.value)&&!Array.isArray(R.value))throw new Error(`v-model must be an array when using "${o.value}" mode`);return r&&typeof r.value=="function"?C.value?xo(ft):p.value==!0&&ft():($r.value=r.value,ft()),_.value>-1&&gf(),u.watch(_,(V,ce)=>{gr.value&&gr.value(),V>=0&&gf()}),u.watch(R,V=>{if(ri(V)){Z(sl(V),!1);return}switch(o.value){case"single":(p.value?V[b.value]!=ae.value[b.value]:V!=ae.value[b.value])&&Z(sl(V),!1);break;case"multiple":case"tags":LH(p.value?V.map(ce=>ce[b.value]):V,ae.value.map(ce=>ce[b.value]))||Z(sl(V),!1);break}},{deep:!0}),u.watch(r,(V,ce)=>{typeof n.options=="function"?C.value&&(!ce||V&&V.toString()!==ce.toString())&&xo():($r.value=n.options,Object.keys(ae.value).length||ft(),hf())}),u.watch(d,hf),u.watch(s,(V,ce)=>{Ar.value=P.value&&V===-1?10:V}),{pfo:pr,fo:Bn,filteredOptions:Bn,hasSelected:xa,multipleLabelText:rl,eo:Ft,extendedOptions:Ft,eg:bo,extendedGroups:bo,fg:nl,filteredGroups:nl,noOptions:pu,noResults:mu,resolving:Lt,busy:lf,offset:Ar,select:ko,deselect:Mr,remove:_u,selectAll:cf,clear:af,isSelected:Dr,isDisabled:yu,isMax:ol,getOption:Fr,handleOptionClick:vu,handleGroupClick:il,handleTagRemove:_p,refreshOptions:Cp,resolveOptions:xo,refreshLabels:hf}}function PH(n,e,t){const{valueProp:r,showOptions:o,searchable:i,groupLabel:s,groups:l,mode:a,groupSelect:c,disabledProp:d,groupOptions:h}=u.toRefs(n),f=t.fo,g=t.fg,p=t.handleOptionClick,m=t.handleGroupClick,_=t.search,C=t.pointer,y=t.setPointer,v=t.clearPointer,k=t.multiselect,x=t.isOpen,b=u.computed(()=>f.value.filter(R=>!R[d.value])),T=u.computed(()=>g.value.filter(R=>!R[d.value])),w=u.computed(()=>a.value!=="single"&&c.value),S=u.computed(()=>C.value&&C.value.group),N=u.computed(()=>G(C.value)),$=u.computed(()=>{const R=S.value?C.value:G(C.value),J=T.value.map(Z=>Z[s.value]).indexOf(R[s.value]);let B=T.value[J-1];return B===void 0&&(B=M.value),B}),O=u.computed(()=>{let R=T.value.map(J=>J.label).indexOf(S.value?C.value[s.value]:G(C.value)[s.value])+1;return T.value.length<=R&&(R=0),T.value[R]}),M=u.computed(()=>[...T.value].slice(-1)[0]),A=u.computed(()=>C.value.__VISIBLE__.filter(R=>!R[d.value])[0]),F=u.computed(()=>{const R=N.value.__VISIBLE__.filter(J=>!J[d.value]);return R[R.map(J=>J[r.value]).indexOf(C.value[r.value])-1]}),P=u.computed(()=>{const R=G(C.value).__VISIBLE__.filter(J=>!J[d.value]);return R[R.map(J=>J[r.value]).indexOf(C.value[r.value])+1]}),z=u.computed(()=>[...$.value.__VISIBLE__.filter(R=>!R[d.value])].slice(-1)[0]),I=u.computed(()=>[...M.value.__VISIBLE__.filter(R=>!R[d.value])].slice(-1)[0]),L=R=>C.value&&(!R.group&&C.value[r.value]===R[r.value]||R.group!==void 0&&C.value[s.value]===R[s.value])?!0:void 0,U=()=>{y(b.value[0]||null)},W=()=>{!C.value||C.value[d.value]===!0||(S.value?m(C.value):p(C.value))},H=()=>{if(C.value===null)y((l.value&&w.value?T.value[0].__CREATE__?b.value[0]:T.value[0]:b.value[0])||null);else if(l.value&&w.value){let R=S.value?A.value:P.value;R===void 0&&(R=O.value,R.__CREATE__&&(R=R[h.value][0])),y(R||null)}else{let R=b.value.map(J=>J[r.value]).indexOf(C.value[r.value])+1;b.value.length<=R&&(R=0),y(b.value[R]||null)}u.nextTick(()=>{ae()})},fe=()=>{if(C.value===null){let R=b.value[b.value.length-1];l.value&&w.value&&(R=I.value,R===void 0&&(R=M.value)),y(R||null)}else if(l.value&&w.value){let R=S.value?z.value:F.value;R===void 0&&(R=S.value?$.value:N.value,R.__CREATE__&&(R=z.value,R===void 0&&(R=$.value))),y(R||null)}else{let R=b.value.map(J=>J[r.value]).indexOf(C.value[r.value])-1;R<0&&(R=b.value.length-1),y(b.value[R]||null)}u.nextTick(()=>{ae()})},G=R=>T.value.find(J=>J.__VISIBLE__.map(B=>B[r.value]).indexOf(R[r.value])!==-1),ae=()=>{let R=k.value.querySelector("[data-pointed]");if(!R)return;let J=R.parentElement.parentElement;l.value&&(J=S.value?R.parentElement.parentElement.parentElement:R.parentElement.parentElement.parentElement.parentElement),R.offsetTop+R.offsetHeight>J.clientHeight+J.scrollTop&&(J.scrollTop=R.offsetTop+R.offsetHeight-J.clientHeight),R.offsetTop<J.scrollTop&&(J.scrollTop=R.offsetTop)};return u.watch(_,R=>{i.value&&(R.length&&o.value?U():v())}),u.watch(x,R=>{if(R){let J=k.value.querySelectorAll("[data-selected]")[0];if(!J)return;let B=J.parentElement.parentElement;u.nextTick(()=>{B.scrollTop>0||(B.scrollTop=J.offsetTop)})}}),{pointer:C,canPointGroups:w,isPointed:L,setPointerFirst:U,selectPointer:W,forwardPointer:H,backwardPointer:fe}}function Zr(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function _c(n){var e=Zr(n).Element;return n instanceof e||n instanceof Element}function oo(n){var e=Zr(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Ak(n){if(typeof ShadowRoot>"u")return!1;var e=Zr(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}var Qa=Math.max,sm=Math.min,ud=Math.round;function Q2(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function e6(){return!/^((?!chrome|android).)*safari/i.test(Q2())}function dd(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,i=1;e&&oo(n)&&(o=n.offsetWidth>0&&ud(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&ud(r.height)/n.offsetHeight||1);var s=_c(n)?Zr(n):window,l=s.visualViewport,a=!e6()&&t,c=(r.left+(a&&l?l.offsetLeft:0))/o,d=(r.top+(a&&l?l.offsetTop:0))/i,h=r.width/o,f=r.height/i;return{width:h,height:f,top:d,right:c+h,bottom:d+f,left:c,x:c,y:d}}function Mk(n){var e=Zr(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function IH(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function BH(n){return n===Zr(n)||!oo(n)?Mk(n):IH(n)}function $i(n){return n?(n.nodeName||"").toLowerCase():null}function ca(n){return((_c(n)?n.ownerDocument:n.document)||window.document).documentElement}function Ok(n){return dd(ca(n)).left+Mk(n).scrollLeft}function Bs(n){return Zr(n).getComputedStyle(n)}function Dk(n){var e=Bs(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function RH(n){var e=n.getBoundingClientRect(),t=ud(e.width)/n.offsetWidth||1,r=ud(e.height)/n.offsetHeight||1;return t!==1||r!==1}function zH(n,e,t){t===void 0&&(t=!1);var r=oo(e),o=oo(e)&&RH(e),i=ca(e),s=dd(n,o,t),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!t)&&(($i(e)!=="body"||Dk(i))&&(l=BH(e)),oo(e)?(a=dd(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=Ok(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function t6(n){var e=dd(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function y0(n){return $i(n)==="html"?n:n.assignedSlot||n.parentNode||(Ak(n)?n.host:null)||ca(n)}function n6(n){return["html","body","#document"].indexOf($i(n))>=0?n.ownerDocument.body:oo(n)&&Dk(n)?n:n6(y0(n))}function Xf(n,e){var t;e===void 0&&(e=[]);var r=n6(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),i=Zr(r),s=o?[i].concat(i.visualViewport||[],Dk(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(Xf(y0(s)))}function VH(n){return["table","td","th"].indexOf($i(n))>=0}function P5(n){return!oo(n)||Bs(n).position==="fixed"?null:n.offsetParent}function WH(n){var e=/firefox/i.test(Q2()),t=/Trident/i.test(Q2());if(t&&oo(n)){var r=Bs(n);if(r.position==="fixed")return null}var o=y0(n);for(Ak(o)&&(o=o.host);oo(o)&&["html","body"].indexOf($i(o))<0;){var i=Bs(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function v0(n){for(var e=Zr(n),t=P5(n);t&&VH(t)&&Bs(t).position==="static";)t=P5(t);return t&&($i(t)==="html"||$i(t)==="body"&&Bs(t).position==="static")?e:t||WH(n)||e}var Fo="top",Ai="bottom",Hl="right",ws="left",Lk="auto",C0=[Fo,Ai,Hl,ws],fd="start",Ph="end",KH="clippingParents",r6="viewport",xf="popper",UH="reference",I5=C0.reduce(function(n,e){return n.concat([e+"-"+fd,e+"-"+Ph])},[]),HH=[].concat(C0,[Lk]).reduce(function(n,e){return n.concat([e,e+"-"+fd,e+"-"+Ph])},[]),qH="beforeRead",jH="read",ZH="afterRead",GH="beforeMain",JH="main",YH="afterMain",XH="beforeWrite",QH="write",eq="afterWrite",tq=[qH,jH,ZH,GH,JH,YH,XH,QH,eq];function nq(n){var e=new Map,t=new Set,r=[];n.forEach(function(i){e.set(i.name,i)});function o(i){t.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!t.has(l)){var a=e.get(l);a&&o(a)}}),r.push(i)}return n.forEach(function(i){t.has(i.name)||o(i)}),r}function rq(n){var e=nq(n);return tq.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function oq(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function iq(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}function sq(n,e){var t=Zr(n),r=ca(n),o=t.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var c=e6();(c||!c&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+Ok(n),y:a}}function lq(n){var e,t=ca(n),r=Mk(n),o=(e=n.ownerDocument)==null?void 0:e.body,i=Qa(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Qa(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ok(n),a=-r.scrollTop;return Bs(o||t).direction==="rtl"&&(l+=Qa(t.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function aq(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Ak(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function eC(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function cq(n,e){var t=dd(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function B5(n,e,t){return e===r6?eC(sq(n,t)):_c(e)?cq(e,t):eC(lq(ca(n)))}function uq(n){var e=Xf(y0(n)),t=["absolute","fixed"].indexOf(Bs(n).position)>=0,r=t&&oo(n)?v0(n):n;return _c(r)?e.filter(function(o){return _c(o)&&aq(o,r)&&$i(o)!=="body"}):[]}function dq(n,e,t,r){var o=e==="clippingParents"?uq(n):[].concat(e),i=[].concat(o,[t]),s=i[0],l=i.reduce(function(a,c){var d=B5(n,c,r);return a.top=Qa(d.top,a.top),a.right=sm(d.right,a.right),a.bottom=sm(d.bottom,a.bottom),a.left=Qa(d.left,a.left),a},B5(n,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Nl(n){return n.split("-")[0]}function hd(n){return n.split("-")[1]}function o6(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function i6(n){var e=n.reference,t=n.element,r=n.placement,o=r?Nl(r):null,i=r?hd(r):null,s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,a;switch(o){case Fo:a={x:s,y:e.y-t.height};break;case Ai:a={x:s,y:e.y+e.height};break;case Hl:a={x:e.x+e.width,y:l};break;case ws:a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}var c=o?o6(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case fd:a[c]=a[c]-(e[d]/2-t[d]/2);break;case Ph:a[c]=a[c]+(e[d]/2-t[d]/2);break}}return a}function s6(){return{top:0,right:0,bottom:0,left:0}}function fq(n){return Object.assign({},s6(),n)}function hq(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}function Fk(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,i=t.strategy,s=i===void 0?n.strategy:i,l=t.boundary,a=l===void 0?KH:l,c=t.rootBoundary,d=c===void 0?r6:c,h=t.elementContext,f=h===void 0?xf:h,g=t.altBoundary,p=g===void 0?!1:g,m=t.padding,_=m===void 0?0:m,C=fq(typeof _!="number"?_:hq(_,C0)),y=f===xf?UH:xf,v=n.rects.popper,k=n.elements[p?y:f],x=dq(_c(k)?k:k.contextElement||ca(n.elements.popper),a,d,s),b=dd(n.elements.reference),T=i6({reference:b,element:v,strategy:"absolute",placement:o}),w=eC(Object.assign({},v,T)),S=f===xf?w:b,N={top:x.top-S.top+C.top,bottom:S.bottom-x.bottom+C.bottom,left:x.left-S.left+C.left,right:S.right-x.right+C.right},$=n.modifiersData.offset;if(f===xf&&$){var O=$[o];Object.keys(N).forEach(function(M){var A=[Hl,Ai].indexOf(M)>=0?1:-1,F=[Fo,Ai].indexOf(M)>=0?"y":"x";N[M]+=O[F]*A})}return N}var R5={placement:"bottom",modifiers:[],strategy:"absolute"};function z5(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gq(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,i=o===void 0?R5:o;return function(l,a,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},R5,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},h=[],f=!1,g={state:d,setOptions:function(C){var y=typeof C=="function"?C(d.options):C;m(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:_c(l)?Xf(l):l.contextElement?Xf(l.contextElement):[],popper:Xf(a)};var v=rq(iq([].concat(r,d.options.modifiers)));return d.orderedModifiers=v.filter(function(k){return k.enabled}),p(),g.update()},forceUpdate:function(){if(!f){var C=d.elements,y=C.reference,v=C.popper;if(z5(y,v)){d.rects={reference:zH(y,v0(v),d.options.strategy==="fixed"),popper:t6(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var x=d.orderedModifiers[k],b=x.fn,T=x.options,w=T===void 0?{}:T,S=x.name;typeof b=="function"&&(d=b({state:d,options:w,name:S,instance:g})||d)}}}},update:oq(function(){return new Promise(function(_){g.forceUpdate(),_(d)})}),destroy:function(){m(),f=!0}};if(!z5(l,a))return g;g.setOptions(c).then(function(_){!f&&c.onFirstUpdate&&c.onFirstUpdate(_)});function p(){d.orderedModifiers.forEach(function(_){var C=_.name,y=_.options,v=y===void 0?{}:y,k=_.effect;if(typeof k=="function"){var x=k({state:d,name:C,instance:g,options:v}),b=function(){};h.push(x||b)}})}function m(){h.forEach(function(_){return _()}),h=[]}return g}}var $p={passive:!0};function pq(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=Zr(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",t.update,$p)}),l&&a.addEventListener("resize",t.update,$p),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",t.update,$p)}),l&&a.removeEventListener("resize",t.update,$p)}}var mq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pq,data:{}};function _q(n){var e=n.state,t=n.name;e.modifiersData[t]=i6({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var yq={name:"popperOffsets",enabled:!0,phase:"read",fn:_q,data:{}},vq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cq(n,e){var t=n.x,r=n.y,o=e.devicePixelRatio||1;return{x:ud(t*o)/o||0,y:ud(r*o)/o||0}}function V5(n){var e,t=n.popper,r=n.popperRect,o=n.placement,i=n.variation,s=n.offsets,l=n.position,a=n.gpuAcceleration,c=n.adaptive,d=n.roundOffsets,h=n.isFixed,f=s.x,g=f===void 0?0:f,p=s.y,m=p===void 0?0:p,_=typeof d=="function"?d({x:g,y:m}):{x:g,y:m};g=_.x,m=_.y;var C=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),v=ws,k=Fo,x=window;if(c){var b=v0(t),T="clientHeight",w="clientWidth";if(b===Zr(t)&&(b=ca(t),Bs(b).position!=="static"&&l==="absolute"&&(T="scrollHeight",w="scrollWidth")),b=b,o===Fo||(o===ws||o===Hl)&&i===Ph){k=Ai;var S=h&&b===x&&x.visualViewport?x.visualViewport.height:b[T];m-=S-r.height,m*=a?1:-1}if(o===ws||(o===Fo||o===Ai)&&i===Ph){v=Hl;var N=h&&b===x&&x.visualViewport?x.visualViewport.width:b[w];g-=N-r.width,g*=a?1:-1}}var $=Object.assign({position:l},c&&vq),O=d===!0?Cq({x:g,y:m},Zr(t)):{x:g,y:m};if(g=O.x,m=O.y,a){var M;return Object.assign({},$,(M={},M[k]=y?"0":"",M[v]=C?"0":"",M.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",M))}return Object.assign({},$,(e={},e[k]=y?m+"px":"",e[v]=C?g+"px":"",e.transform="",e))}function bq(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,i=t.adaptive,s=i===void 0?!0:i,l=t.roundOffsets,a=l===void 0?!0:l,c={placement:Nl(e.placement),variation:hd(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,V5(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,V5(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var kq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bq,data:{}};function xq(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];!oo(i)||!$i(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function Sq(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=s.reduce(function(a,c){return a[c]="",a},{});!oo(o)||!$i(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}var wq={name:"applyStyles",enabled:!0,phase:"write",fn:xq,effect:Sq,requires:["computeStyles"]},Tq=[mq,yq,kq,wq],Eq=gq({defaultModifiers:Tq});function Nq(n){return n==="x"?"y":"x"}function u1(n,e,t){return Qa(n,sm(e,t))}function $q(n,e,t){var r=u1(n,e,t);return r>t?t:r}function Aq(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!1:s,a=t.boundary,c=t.rootBoundary,d=t.altBoundary,h=t.padding,f=t.tether,g=f===void 0?!0:f,p=t.tetherOffset,m=p===void 0?0:p,_=Fk(e,{boundary:a,rootBoundary:c,padding:h,altBoundary:d}),C=Nl(e.placement),y=hd(e.placement),v=!y,k=o6(C),x=Nq(k),b=e.modifiersData.popperOffsets,T=e.rects.reference,w=e.rects.popper,S=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,N=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,O={x:0,y:0};if(b){if(i){var M,A=k==="y"?Fo:ws,F=k==="y"?Ai:Hl,P=k==="y"?"height":"width",z=b[k],I=z+_[A],L=z-_[F],U=g?-w[P]/2:0,W=y===fd?T[P]:w[P],H=y===fd?-w[P]:-T[P],fe=e.elements.arrow,G=g&&fe?t6(fe):{width:0,height:0},ae=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:s6(),R=ae[A],J=ae[F],B=u1(0,T[P],G[P]),Z=v?T[P]/2-U-B-R-N.mainAxis:W-B-R-N.mainAxis,Ee=v?-T[P]/2+U+B+J+N.mainAxis:H+B+J+N.mainAxis,zt=e.elements.arrow&&v0(e.elements.arrow),Le=zt?k==="y"?zt.clientTop||0:zt.clientLeft||0:0,Ge=(M=$==null?void 0:$[k])!=null?M:0,Xe=z+Z-Ge-Le,fr=z+Ee-Ge,mt=u1(g?sm(I,Xe):I,z,g?Qa(L,fr):L);b[k]=mt,O[k]=mt-z}if(l){var hr,$r=k==="x"?Fo:ws,Lt=k==="x"?Ai:Hl,gr=b[x],Ar=x==="y"?"height":"width",tl=gr+_[$r],ka=gr-_[Lt],Ft=[Fo,ws].indexOf(C)!==-1,pr=(hr=$==null?void 0:$[x])!=null?hr:0,Bn=Ft?tl:gr-T[Ar]-w[Ar]-pr+N.altAxis,bo=Ft?gr+T[Ar]+w[Ar]-pr-N.altAxis:ka,Ui=g&&Ft?$q(Bn,gr,bo):u1(g?Bn:tl,gr,g?bo:ka);b[x]=Ui,O[x]=Ui-gr}e.modifiersData[r]=O}}var Mq={name:"preventOverflow",enabled:!0,phase:"main",fn:Aq,requiresIfExists:["offset"]},Oq={left:"right",right:"left",bottom:"top",top:"bottom"};function d1(n){return n.replace(/left|right|bottom|top/g,function(e){return Oq[e]})}var Dq={start:"end",end:"start"};function W5(n){return n.replace(/start|end/g,function(e){return Dq[e]})}function Lq(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,i=t.rootBoundary,s=t.padding,l=t.flipVariations,a=t.allowedAutoPlacements,c=a===void 0?HH:a,d=hd(r),h=d?l?I5:I5.filter(function(p){return hd(p)===d}):C0,f=h.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=h);var g=f.reduce(function(p,m){return p[m]=Fk(n,{placement:m,boundary:o,rootBoundary:i,padding:s})[Nl(m)],p},{});return Object.keys(g).sort(function(p,m){return g[p]-g[m]})}function Fq(n){if(Nl(n)===Lk)return[];var e=d1(n);return[W5(n),e,W5(e)]}function Pq(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!0:s,a=t.fallbackPlacements,c=t.padding,d=t.boundary,h=t.rootBoundary,f=t.altBoundary,g=t.flipVariations,p=g===void 0?!0:g,m=t.allowedAutoPlacements,_=e.options.placement,C=Nl(_),y=C===_,v=a||(y||!p?[d1(_)]:Fq(_)),k=[_].concat(v).reduce(function(G,ae){return G.concat(Nl(ae)===Lk?Lq(e,{placement:ae,boundary:d,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:m}):ae)},[]),x=e.rects.reference,b=e.rects.popper,T=new Map,w=!0,S=k[0],N=0;N<k.length;N++){var $=k[N],O=Nl($),M=hd($)===fd,A=[Fo,Ai].indexOf(O)>=0,F=A?"width":"height",P=Fk(e,{placement:$,boundary:d,rootBoundary:h,altBoundary:f,padding:c}),z=A?M?Hl:ws:M?Ai:Fo;x[F]>b[F]&&(z=d1(z));var I=d1(z),L=[];if(i&&L.push(P[O]<=0),l&&L.push(P[z]<=0,P[I]<=0),L.every(function(G){return G})){S=$,w=!1;break}T.set($,L)}if(w)for(var U=p?3:1,W=function(ae){var R=k.find(function(J){var B=T.get(J);if(B)return B.slice(0,ae).every(function(Z){return Z})});if(R)return S=R,"break"},H=U;H>0;H--){var fe=W(H);if(fe==="break")break}e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}}var Iq={name:"flip",enabled:!0,phase:"main",fn:Pq,requiresIfExists:["offset"],data:{_skip:!1}};function Bq(n,e,t){const{disabled:r,appendTo:o,appendToBody:i,openDirection:s}=u.toRefs(n),l=u.getCurrentInstance().proxy,a=t.multiselect,c=t.dropdown,d=u.ref(!1),h=u.ref(null),f=u.ref(null),g=u.computed(()=>o.value||i.value),p=u.computed(()=>s.value==="top"&&f.value==="bottom"||s.value==="bottom"&&f.value!=="top"?"bottom":"top"),m=()=>{d.value||r.value||(d.value=!0,e.emit("open",l),g.value&&u.nextTick(()=>{C()}))},_=()=>{d.value&&(d.value=!1,e.emit("close",l))},C=()=>{if(!h.value)return;let v=parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px","")),k=parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px",""));h.value.setOptions(x=>({...x,modifiers:[...x.modifiers,{name:"offset",options:{offset:[0,(p.value==="top"?v:k)*-1]}}]})),h.value.update()},y=v=>{for(;v&&v!==document.body;){if(getComputedStyle(v).position==="fixed")return!0;v=v.parentElement}return!1};return u.onMounted(()=>{g.value&&(h.value=Eq(a.value,c.value,{strategy:y(a.value)?"fixed":void 0,placement:s.value,modifiers:[Mq,Iq,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:v})=>{v.styles.popper.width=`${v.rects.reference.width}px`},effect:({state:v})=>{v.elements.popper.style.width=`${v.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:v}){f.value=v.placement}}]}))}),u.onBeforeUnmount(()=>{!g.value||!h.value||(h.value.destroy(),h.value=null)}),{popper:h,isOpen:d,open:m,close:_,placement:p,updatePopper:C}}function Rq(n,e,t){const{searchable:r,disabled:o,clearOnBlur:i}=u.toRefs(n),s=t.input,l=t.open,a=t.close,c=t.clearSearch,d=t.isOpen,h=t.wrapper,f=t.tags,g=u.ref(!1),p=u.ref(!1),m=u.computed(()=>r.value||o.value?-1:0),_=()=>{r.value&&s.value.blur(),h.value.blur()},C=()=>{r.value&&!o.value&&s.value.focus()},y=(w=!0)=>{o.value||(g.value=!0,w&&l())},v=()=>{g.value=!1,setTimeout(()=>{g.value||(a(),i.value&&c())},1)};return{tabindex:m,isActive:g,mouseClicked:p,blur:_,focus:C,activate:y,deactivate:v,handleFocusIn:w=>{w.target.closest("[data-tags]")&&w.target.nodeName!=="INPUT"||w.target.closest("[data-clear]")||y(p.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),_()},handleMousedown:w=>{p.value=!0,d.value&&(w.target.isEqualNode(h.value)||w.target.isEqualNode(f.value))?setTimeout(()=>{v()},0):!d.value&&(document.activeElement.isEqualNode(h.value)||document.activeElement.isEqualNode(s.value))&&y(),setTimeout(()=>{p.value=!1},0)}}}function zq(n,e,t){const{mode:r,addTagOn:o,openDirection:i,searchable:s,showOptions:l,valueProp:a,groups:c,addOptionOn:d,createTag:h,createOption:f,reverse:g}=u.toRefs(n),p=u.getCurrentInstance().proxy,m=t.iv,_=t.update,C=t.deselect,y=t.search,v=t.setPointer,k=t.selectPointer,x=t.backwardPointer,b=t.forwardPointer,T=t.multiselect,w=t.wrapper,S=t.tags,N=t.isOpen,$=t.open,O=t.blur,M=t.fo,A=u.computed(()=>h.value||f.value||!1),F=u.computed(()=>o.value!==void 0?o.value:d.value!==void 0?d.value:["enter"]),P=()=>{r.value==="tags"&&!l.value&&A.value&&s.value&&!c.value&&v(M.value[M.value.map(L=>L[a.value]).indexOf(y.value)])};return{handleKeydown:L=>{e.emit("keydown",L,p);let U,W;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(L.key)!==-1&&r.value==="tags"&&(U=[...T.value.querySelectorAll("[data-tags] > *")].filter(H=>H!==S.value),W=U.findIndex(H=>H===document.activeElement)),L.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(y.value)===-1||m.value.length===0)return;let H=m.value.filter(fe=>!fe.disabled&&fe.remove!==!1);H.length&&C(H[H.length-1]);break;case"Enter":if(L.preventDefault(),L.keyCode===229)return;if(W!==-1&&W!==void 0){_([...m.value].filter((fe,G)=>G!==W)),W===U.length-1&&(U.length-1?U[U.length-2].focus():s.value?S.value.querySelector("input").focus():w.value.focus());return}if(F.value.indexOf("enter")===-1&&A.value)return;P(),k();break;case" ":if(!A.value&&!s.value){L.preventDefault(),P(),k();return}if(!A.value)return!1;if(F.value.indexOf("space")===-1&&A.value)return;L.preventDefault(),P(),k();break;case"Tab":case";":case",":if(F.value.indexOf(L.key.toLowerCase())===-1||!A.value)return;P(),k(),L.preventDefault();break;case"Escape":O();break;case"ArrowUp":if(L.preventDefault(),!l.value)return;N.value||$(),x();break;case"ArrowDown":if(L.preventDefault(),!l.value)return;N.value||$(),b();break;case"ArrowLeft":if(s.value&&S.value&&S.value.querySelector("input").selectionStart||L.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;L.preventDefault(),W===-1?U[U.length-1].focus():W>0&&U[W-1].focus();break;case"ArrowRight":if(W===-1||L.shiftKey||r.value!=="tags"||!m.value||!m.value.length)return;L.preventDefault(),U.length>W+1?U[W+1].focus():s.value?S.value.querySelector("input").focus():s.value||w.value.focus();break}},handleKeyup:L=>{e.emit("keyup",L,p)},preparePointer:P}}function Vq(n,e,t){const{classes:r,disabled:o,showOptions:i,breakTags:s}=u.toRefs(n),l=t.isOpen,a=t.isPointed,c=t.isSelected,d=t.isDisabled,h=t.isActive,f=t.canPointGroups,g=t.resolving,p=t.fo,m=t.placement,_=u.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),C=u.computed(()=>!!(l.value&&i.value&&(!g.value||g.value&&p.value.length)));return{classList:u.computed(()=>{const v=_.value;return{container:[v.container].concat(o.value?v.containerDisabled:[]).concat(C.value&&m.value==="top"?v.containerOpenTop:[]).concat(C.value&&m.value!=="top"?v.containerOpen:[]).concat(h.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(o.value?v.tagDisabled:[]),tagWrapper:[v.tagWrapper,s.value?v.tagWrapperBreak:null],tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(l.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(m.value==="top"?v.dropdownTop:[]).concat(!l.value||!i.value||!C.value?v.dropdownHidden:[]),options:[v.options].concat(m.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:k=>{let x=[v.groupLabel];return a(k)?x.push(c(k)?v.groupLabelSelectedPointed:v.groupLabelPointed):c(k)&&f.value?x.push(d(k)?v.groupLabelSelectedDisabled:v.groupLabelSelected):d(k)&&x.push(v.groupLabelDisabled),f.value&&x.push(v.groupLabelPointable),x},groupOptions:v.groupOptions,option:(k,x)=>{let b=[v.option];return a(k)?b.push(c(k)?v.optionSelectedPointed:v.optionPointed):c(k)?b.push(d(k)?v.optionSelectedDisabled:v.optionSelected):(d(k)||x&&d(x))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:C}}function Wq(n,e,t){const{limit:r,infinite:o}=u.toRefs(n),i=t.isOpen,s=t.offset,l=t.search,a=t.pfo,c=t.eo,d=u.ref(null),h=u.ref(null),f=u.computed(()=>s.value<a.value.length),g=m=>{const{isIntersecting:_,target:C}=m[0];if(_){const y=C.offsetParent,v=y.scrollTop;s.value+=r.value==-1?10:r.value,u.nextTick(()=>{y.scrollTop=v})}},p=()=>{i.value&&s.value<a.value.length?d.value.observe(h.value):!i.value&&d.value&&d.value.disconnect()};return u.watch(i,()=>{o.value&&p()}),u.watch(l,()=>{o.value&&(s.value=r.value,p())},{flush:"post"}),u.watch(c,()=>{o.value&&p()},{immediate:!1,flush:"post"}),u.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(g))}),{hasMore:f,infiniteLoader:h}}function Kq(n,e,t){const{placeholder:r,id:o,valueProp:i,label:s,mode:l,groupLabel:a,aria:c,searchable:d}=u.toRefs(n),h=t.pointer,f=t.iv,g=t.hasSelected,p=t.multipleLabelText,m=u.ref(null),_=u.computed(()=>{let O=[];return o&&o.value&&O.push(o.value),O.push("assist"),O.join("-")}),C=u.computed(()=>{let O=[];return o&&o.value&&O.push(o.value),O.push("multiselect-options"),O.join("-")}),y=u.computed(()=>{let O=[];if(o&&o.value&&O.push(o.value),h.value)return O.push(h.value.group?"multiselect-group":"multiselect-option"),O.push(h.value.group?h.value.index:h.value[i.value]),O.join("-")}),v=u.computed(()=>r.value),k=u.computed(()=>l.value!=="single"),x=u.computed(()=>{let O="";return l.value==="single"&&g.value&&(O+=f.value[s.value]),l.value==="multiple"&&g.value&&(O+=p.value),l.value==="tags"&&g.value&&(O+=f.value.map(M=>M[s.value]).join(", ")),O}),b=u.computed(()=>{let O={...c.value};return d.value&&(O["aria-labelledby"]=O["aria-labelledby"]?`${_.value} ${O["aria-labelledby"]}`:_.value,x.value&&O["aria-label"]&&(O["aria-label"]=`${x.value}, ${O["aria-label"]}`)),O}),T=O=>{let M=[];return o&&o.value&&M.push(o.value),M.push("multiselect-option"),M.push(O[i.value]),M.join("-")},w=O=>{let M=[];return o&&o.value&&M.push(o.value),M.push("multiselect-group"),M.push(O.index),M.join("-")},S=O=>{let M=[];return M.push(O),M.join(" ")},N=O=>{let M=[];return M.push(O),M.join(" ")},$=O=>`${O} ❎`;return u.onMounted(()=>{if(o&&o.value&&document&&document.querySelector){let O=document.querySelector(`[for="${o.value}"]`);m.value=O?O.innerText:null}}),{arias:b,ariaLabel:x,ariaAssist:_,ariaControls:C,ariaPlaceholder:v,ariaMultiselectable:k,ariaActiveDescendant:y,ariaOptionId:T,ariaOptionLabel:S,ariaGroupId:w,ariaGroupLabel:N,ariaTagLabel:$}}function Uq(n,e,t){const{locale:r,fallbackLocale:o}=u.toRefs(n);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[o.value]?s[o.value]:s&&o.value&&s[o.value.toUpperCase()]?s[o.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function Hq(n,e,t){const r=u.ref(null),o=u.ref(null),i=u.ref(null),s=u.ref(null),l=u.ref(null);return{multiselect:r,wrapper:o,tags:i,input:s,dropdown:l}}function qq(n,e,t,r={}){return t.forEach(o=>{o&&(r={...r,...o(n,e,r)})}),r}var pl={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(n,e){return qq(n,e,[Hq,Uq,AH,OH,Bq,MH,$H,Rq,FH,Wq,PH,zq,Vq,Kq])},beforeMount(){var n,e;((e=(n=this.$root.constructor)==null?void 0:n.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const jq=["id","dir"],Zq=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],Gq=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Jq=["onKeyup","aria-label"],Yq=["onClick"],Xq=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Qq=["innerHTML"],ej=["id"],tj=["id"],nj=["id","aria-label","aria-selected"],rj=["data-pointed","onMouseenter","onMousedown"],oj=["innerHTML"],ij=["aria-label"],sj=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],lj=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],aj=["innerHTML"],cj=["innerHTML"],uj=["value"],dj=["name","value"],fj=["name","value"],hj=["id"];function gj(n,e,t,r,o,i){return u.openBlock(),u.createElementBlock("div",{ref:"multiselect",class:u.normalizeClass(n.classList.container),id:t.searchable?void 0:t.id,dir:t.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...s)=>n.handleFocusIn&&n.handleFocusIn(...s)),onFocusout:e[11]||(e[11]=(...s)=>n.handleFocusOut&&n.handleFocusOut(...s)),onKeyup:e[12]||(e[12]=(...s)=>n.handleKeyup&&n.handleKeyup(...s)),onKeydown:e[13]||(e[13]=(...s)=>n.handleKeydown&&n.handleKeydown(...s))},[u.createElementVNode("div",u.mergeProps({class:n.classList.wrapper,onMousedown:e[9]||(e[9]=(...s)=>n.handleMousedown&&n.handleMousedown(...s)),ref:"wrapper",tabindex:n.tabindex,"aria-controls":t.searchable?void 0:n.ariaControls,"aria-placeholder":t.searchable?void 0:n.ariaPlaceholder,"aria-expanded":t.searchable?void 0:n.isOpen,"aria-activedescendant":t.searchable?void 0:n.ariaActiveDescendant,"aria-multiselectable":t.searchable?void 0:n.ariaMultiselectable,role:t.searchable?void 0:"combobox"},t.searchable?{}:n.arias),[u.createCommentVNode(" Search "),t.mode!=="tags"&&t.searchable&&!t.disabled?(u.openBlock(),u.createElementBlock("input",u.mergeProps({key:0,type:t.inputType,modelValue:n.search,value:n.search,class:n.classList.search,autocomplete:t.autocomplete,id:t.searchable?t.id:void 0,onInput:e[0]||(e[0]=(...s)=>n.handleSearchInput&&n.handleSearchInput(...s)),onKeypress:e[1]||(e[1]=(...s)=>n.handleKeypress&&n.handleKeypress(...s)),onPaste:e[2]||(e[2]=u.withModifiers((...s)=>n.handlePaste&&n.handlePaste(...s),["stop"])),ref:"input","aria-controls":n.ariaControls,"aria-placeholder":n.ariaPlaceholder,"aria-expanded":n.isOpen,"aria-activedescendant":n.ariaActiveDescendant,"aria-multiselectable":n.ariaMultiselectable,role:"combobox"},{...t.attrs,...n.arias}),null,16,Gq)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Tags (with search) "),t.mode=="tags"?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(n.classList.tags),"data-tags":""},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.iv,(s,l,a)=>u.renderSlot(n.$slots,"tag",{option:s,handleTagRemove:n.handleTagRemove,disabled:t.disabled},()=>[(u.openBlock(),u.createElementBlock("span",{class:u.normalizeClass([n.classList.tag,s.disabled?n.classList.tagDisabled:null]),tabindex:"-1",onKeyup:u.withKeys(c=>n.handleTagRemove(s,c),["enter"]),key:a,"aria-label":n.ariaTagLabel(n.localize(s[t.label]))},[u.createElementVNode("span",{class:u.normalizeClass(n.classList.tagWrapper)},u.toDisplayString(n.localize(s[t.label])),3),!t.disabled&&!s.disabled?(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass(n.classList.tagRemove),onClick:u.withModifiers(c=>n.handleTagRemove(s,c),["stop"])},[u.createElementVNode("span",{class:u.normalizeClass(n.classList.tagRemoveIcon)},null,2)],10,Yq)):u.createCommentVNode("v-if",!0)],42,Jq))])),256)),u.createElementVNode("div",{class:u.normalizeClass(n.classList.tagsSearchWrapper),ref:"tags"},[u.createCommentVNode(" Used for measuring search width "),u.createElementVNode("span",{class:u.normalizeClass(n.classList.tagsSearchCopy)},u.toDisplayString(n.search),3),u.createCommentVNode(" Actual search input "),t.searchable&&!t.disabled?(u.openBlock(),u.createElementBlock("input",u.mergeProps({key:0,type:t.inputType,modelValue:n.search,value:n.search,class:n.classList.tagsSearch,id:t.searchable?t.id:void 0,autocomplete:t.autocomplete,onInput:e[3]||(e[3]=(...s)=>n.handleSearchInput&&n.handleSearchInput(...s)),onKeypress:e[4]||(e[4]=(...s)=>n.handleKeypress&&n.handleKeypress(...s)),onPaste:e[5]||(e[5]=u.withModifiers((...s)=>n.handlePaste&&n.handlePaste(...s),["stop"])),ref:"input","aria-controls":n.ariaControls,"aria-placeholder":n.ariaPlaceholder,"aria-expanded":n.isOpen,"aria-activedescendant":n.ariaActiveDescendant,"aria-multiselectable":n.ariaMultiselectable,role:"combobox"},{...t.attrs,...n.arias}),null,16,Xq)):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Single label "),t.mode=="single"&&n.hasSelected&&!n.search&&n.iv?u.renderSlot(n.$slots,"singlelabel",{key:2,value:n.iv},()=>[u.createElementVNode("div",{class:u.normalizeClass(n.classList.singleLabel)},[u.createElementVNode("span",{class:u.normalizeClass(n.classList.singleLabelText)},u.toDisplayString(n.localize(n.iv[t.label])),3)],2)]):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Multiple label "),t.mode=="multiple"&&n.hasSelected&&!n.search?u.renderSlot(n.$slots,"multiplelabel",{key:3,values:n.iv},()=>[u.createElementVNode("div",{class:u.normalizeClass(n.classList.multipleLabel),innerHTML:n.multipleLabelText},null,10,Qq)]):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Placeholder "),t.placeholder&&!n.hasSelected&&!n.search?u.renderSlot(n.$slots,"placeholder",{key:4},()=>[u.createElementVNode("div",{class:u.normalizeClass(n.classList.placeholder),"aria-hidden":"true"},u.toDisplayString(t.placeholder),3)]):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Spinner "),t.loading||n.resolving?u.renderSlot(n.$slots,"spinner",{key:5},()=>[u.createElementVNode("span",{class:u.normalizeClass(n.classList.spinner),"aria-hidden":"true"},null,2)]):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Clear "),n.hasSelected&&!t.disabled&&t.canClear&&!n.busy?u.renderSlot(n.$slots,"clear",{key:6,clear:n.clear},()=>[u.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:u.normalizeClass(n.classList.clear),onClick:e[6]||(e[6]=(...s)=>n.clear&&n.clear(...s)),onKeyup:e[7]||(e[7]=u.withKeys((...s)=>n.clear&&n.clear(...s),["enter"]))},[u.createElementVNode("span",{class:u.normalizeClass(n.classList.clearIcon)},null,2)],34)]):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Caret "),t.caret&&t.showOptions?u.renderSlot(n.$slots,"caret",{key:7,handleCaretClick:n.handleCaretClick,isOpen:n.isOpen},()=>[u.createElementVNode("span",{class:u.normalizeClass(n.classList.caret),onClick:e[8]||(e[8]=(...s)=>n.handleCaretClick&&n.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):u.createCommentVNode("v-if",!0)],16,Zq),u.createCommentVNode(" Options "),(u.openBlock(),u.createBlock(u.Teleport,{to:t.appendTo||"body",disabled:!t.appendToBody&&!t.appendTo},[u.createElementVNode("div",{id:`${t.id}-dropdown`,class:u.normalizeClass(n.classList.dropdown),tabindex:"-1",ref:"dropdown"},[u.renderSlot(n.$slots,"beforelist",{options:n.fo}),u.createElementVNode("ul",{class:u.normalizeClass(n.classList.options),id:n.ariaControls,role:"listbox"},[t.groups?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(n.fg,(s,l,a)=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(n.classList.group),key:a,id:n.ariaGroupId(s),"aria-label":n.ariaGroupLabel(n.localize(s[t.groupLabel])),"aria-selected":n.isSelected(s),role:"option"},[s.__CREATE__?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(n.classList.groupLabel(s)),"data-pointed":n.isPointed(s),onMouseenter:c=>n.setPointer(s,l),onMousedown:u.withModifiers(c=>n.handleGroupClick(s),["prevent"])},[u.renderSlot(n.$slots,"grouplabel",{group:s,isSelected:n.isSelected,isPointed:n.isPointed},()=>[u.createElementVNode("span",{innerHTML:n.localize(s[t.groupLabel])},null,8,oj)])],42,rj)),u.createElementVNode("ul",{class:u.normalizeClass(n.classList.groupOptions),"aria-label":n.ariaGroupLabel(n.localize(s[t.groupLabel])),role:"group"},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.__VISIBLE__,(c,d,h)=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(n.classList.option(c,s)),"data-pointed":n.isPointed(c),"data-selected":n.isSelected(c)||void 0,key:h,onMouseenter:f=>n.setPointer(c),onMousedown:u.withModifiers(f=>n.handleOptionClick(c),["prevent"]),id:n.ariaOptionId(c),"aria-selected":n.isSelected(c),"aria-label":n.ariaOptionLabel(n.localize(c[t.label])),role:"option"},[u.renderSlot(n.$slots,"option",{option:c,isSelected:n.isSelected,isPointed:n.isPointed,search:n.search},()=>[u.createElementVNode("span",null,u.toDisplayString(n.localize(c[t.label])),1)])],42,sj))),128))],10,ij)],10,nj))),128)):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(n.fo,(s,l,a)=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(n.classList.option(s)),"data-pointed":n.isPointed(s),"data-selected":n.isSelected(s)||void 0,key:a,onMouseenter:c=>n.setPointer(s),onMousedown:u.withModifiers(c=>n.handleOptionClick(s),["prevent"]),id:n.ariaOptionId(s),"aria-selected":n.isSelected(s),"aria-label":n.ariaOptionLabel(n.localize(s[t.label])),role:"option"},[u.renderSlot(n.$slots,"option",{option:s,isSelected:n.isSelected,isPointed:n.isPointed,search:n.search},()=>[u.createElementVNode("span",null,u.toDisplayString(n.localize(s[t.label])),1)])],42,lj))),128))],10,tj),n.noOptions?u.renderSlot(n.$slots,"nooptions",{key:0},()=>[u.createElementVNode("div",{class:u.normalizeClass(n.classList.noOptions),innerHTML:n.localize(t.noOptionsText)},null,10,aj)]):u.createCommentVNode("v-if",!0),n.noResults?u.renderSlot(n.$slots,"noresults",{key:1},()=>[u.createElementVNode("div",{class:u.normalizeClass(n.classList.noResults),innerHTML:n.localize(t.noResultsText)},null,10,cj)]):u.createCommentVNode("v-if",!0),t.infinite&&n.hasMore?(u.openBlock(),u.createElementBlock("div",{key:2,class:u.normalizeClass(n.classList.inifinite),ref:"infiniteLoader"},[u.renderSlot(n.$slots,"infinite",{},()=>[u.createElementVNode("span",{class:u.normalizeClass(n.classList.inifiniteSpinner)},null,2)])],2)):u.createCommentVNode("v-if",!0),u.renderSlot(n.$slots,"afterlist",{options:n.fo})],10,ej)],8,["to","disabled"])),u.createCommentVNode(" Hacky input element to show HTML5 required warning "),t.required?(u.openBlock(),u.createElementBlock("input",{key:0,class:u.normalizeClass(n.classList.fakeInput),tabindex:"-1",value:n.textValue,required:""},null,10,uj)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Native input support "),t.nativeSupport?(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[t.mode=="single"?(u.openBlock(),u.createElementBlock("input",{key:0,type:"hidden",name:t.name,value:n.plainValue!==void 0?n.plainValue:""},null,8,dj)):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(n.plainValue,(s,l)=>(u.openBlock(),u.createElementBlock("input",{type:"hidden",name:`${t.name}[]`,value:s,key:l},null,8,fj))),128))],64)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Screen reader assistive text "),t.searchable&&n.hasSelected?(u.openBlock(),u.createElementBlock("div",{key:2,class:u.normalizeClass(n.classList.assist),id:n.ariaAssist,"aria-hidden":"true"},u.toDisplayString(n.ariaLabel),11,hj)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" Create height for empty input "),u.createElementVNode("div",{class:u.normalizeClass(n.classList.spacer)},null,2)],42,jq)}pl.render=gj;pl.__file="src/Multiselect.vue";const Br=u.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(n){const e=n,t=u.toRef(()=>e.appendTo),r=u.ref();return e.detached&&NH({multiselect:r,appendTo:t.value}),(o,i)=>(u.openBlock(),u.createBlock(u.unref(pl),{ref_key:"multiselectRef",ref:r,class:"ao-multiselect"},u.createSlots({_:2},[u.renderList(o.$slots,(s,l)=>({name:l,fn:u.withCtx(a=>[u.renderSlot(o.$slots,l,u.normalizeProps(u.guardReactiveProps(a??{})))])}))]),1536))}});var K5;function Gs(){const n=pj(),e=n.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(n.proxy)}}function pj(){const n=u.getCurrentInstance();if(!n)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return n}u.defineComponent({props:{translation:{type:String,required:!0}},setup(n,{slots:e}){return()=>{const t=n.translation,r=[];let o,i=0;for(;(o=K5.exec(t))!==null;){r.push(t.substring(i,o.index));const s=e[o[1]];s?r.push(...s()):r.push(o[0]),i=K5.lastIndex}return r.push(t.substring(i)),r}}});async function Ts(n,e){if(e&&n&&n.length-e.length===1){const t=new Set(e.map(l=>l.id)),r=n.filter(l=>!t.has(l.id));if(r.length!==1)return;const o=r[0].id;await u.nextTick();const i=document.getElementById(o);i==null||i.focus(),await u.nextTick();const s=document.getElementById(o);s==null||s.select()}}const mj={class:"ao-tasks"},_j={class:"ao-tasks__list"},yj=["id","value","readonly","onChange"],vj={class:"ao-tasks__list-footer"},Cj=u.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(n,{emit:e}){const{t}=Gs(),r=n,o=e;u.watch(()=>r.tasks,(f,g)=>{Ts(f,g)});const i=u.computed(()=>{var f;return((f=r.users)==null?void 0:f.map(g=>({label:`${g.firstName} ${g.lastName}`,value:g.id,avatar:g.avatarUrl})))??[]}),s=()=>{const f=r.tasks.length,g={name:t("task.defaultName",{idx:f+1}),activityId:r.activityId};o("add",g)},l=(f,g)=>{const m=f.target.value;o("update",{id:g,name:m})},a=(f,g)=>{r.isEditable&&o("update",{id:f,isDone:g})},c=f=>{o("delete",{id:f})},d=(f,g)=>{o("update",{id:g,assigneeId:f[0]??null})},h=f=>{const g=f.target;g==null||g.blur()};return(f,g)=>(u.openBlock(),u.createElementBlock("div",mj,[u.createElementVNode("ul",_j,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.tasks,p=>{var m,_;return u.openBlock(),u.createElementBlock("li",{key:p.id,class:"ao-subtask"},[((m=n.isCheckable)==null?void 0:m.call(n,p))??!1?(u.openBlock(),u.createBlock(Be,{key:0,class:"ao-subtask__check","icon-name":p.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!n.isEditable,variant:"ghost",color:"primary",onClick:()=>a(p.id,!p.isDone)},null,8,["icon-name","disabled","onClick"])):u.createCommentVNode("",!0),u.createElementVNode("input",{id:p.id,value:p.name,readonly:!n.isEditable,class:u.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":p.isDone}]),type:"text",onChange:C=>l(C,p.id),onKeyup:u.withKeys(h,["enter"])},null,42,yj),g[0]||(g[0]=u.createTextVNode(". ",-1)),!n.isTemplate&&n.users?(u.openBlock(),u.createBlock(Br,{key:1,value:(_=p.assignee)!=null&&_.id?[p.assignee.id]:[],options:i.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:f.$t("feed.filters.assignee.placeholder"),disabled:!n.isEditable,caret:n.isEditable,onChange:C=>d(C,p.id)},{tag:u.withCtx(({option:C,handleTagRemove:y})=>[u.createVNode(js,{"user-name":C.label,"avatar-url":C.avatar,"is-closable":!0,onClose:v=>y(C,v)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):u.createCommentVNode("",!0),n.isEditable?(u.openBlock(),u.createBlock(Be,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>c(p.id)},null,8,["onClick"])):u.createCommentVNode("",!0)])}),128))]),u.createElementVNode("div",vj,[n.isEditable?(u.openBlock(),u.createBlock(Be,{key:0,label:f.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:s},null,8,["label"])):u.createCommentVNode("",!0)])]))}});const bj={class:"ao-files__placeholder"},kj={key:0,class:"ao-files__list"},xj=["href"],Sj={class:"ao-file__title"},wj={key:0},Tj={class:"ao-files__input"},Ej={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},Nj={class:"ao-button__label"},$j={class:"ao-files__dropzone"},Aj={class:"ao-files__dropzone-label"},Mj=u.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(n,{emit:e}){const t=e,r=n,o=h=>{t("remove",h)},i=h=>{const f=h.target,g=Array.from(f.files??[]);t("add",g)},s=["dragenter","dragover","dragleave","drop"];u.onMounted(()=>{s.forEach(h=>{document.body.addEventListener(h,f=>f.preventDefault())})}),u.onUnmounted(()=>{s.forEach(h=>{document.body.removeEventListener(h,f=>f.preventDefault())})});const l=u.ref(!1);function a(){r.isEditable&&(l.value=!0)}function c(){l.value=!1}u.watch(l,h=>{t("toggleIsDropActive",h)});function d(h){var g;c();const f=Array.from(((g=h.dataTransfer)==null?void 0:g.files)||[]);h.dataTransfer&&t("add",f)}return(h,f)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":l.value}]),onDrop:u.withModifiers(d,["prevent"]),onDragenter:u.withModifiers(a,["prevent"]),onDragover:u.withModifiers(a,["prevent"]),onDragleave:u.withModifiers(c,["prevent"])},[u.renderSlot(h.$slots,"default",{},()=>[u.createElementVNode("span",bj,u.toDisplayString(h.$t("activity.attachment.placeholder.resting")),1)]),n.attachments?(u.openBlock(),u.createElementBlock("ul",kj,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.attachments,g=>(u.openBlock(),u.createElementBlock("li",{key:g.id,class:"ao-file"},[u.createElementVNode("a",{class:"ao-file__link",href:g.url,target:"_blank",rel:"noopener noreferrer"},[u.createVNode(pt,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),u.createElementVNode("span",Sj,u.toDisplayString(g.name),1)],8,xj),n.isEditable?(u.openBlock(),u.createBlock(Be,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>o(g)},null,8,["onClick"])):u.createCommentVNode("",!0)]))),128)),n.isEditable?(u.openBlock(),u.createElementBlock("li",wj,[u.createElementVNode("label",Tj,[u.createElementVNode("div",Ej,[u.createVNode(pt,{name:"Add",size:"sm"}),u.createElementVNode("span",Nj,u.toDisplayString(h.$t("activity.attachment.button.resting")),1)]),u.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:i},null,32)])])):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0),u.withDirectives(u.createElementVNode("div",$j,[u.createElementVNode("span",Aj,u.toDisplayString(h.$t("activity.attachment.placeholder.active")),1)],512),[[u.vShow,l.value]])],34))}});const Oj={class:"ao-comment"},Dj={class:"ao-comment__created-at"},Lj={class:"ao-comment__body"},Fj={class:"ao-comment__content-wrapper"},Pj={key:0,class:"ao-comment__content"},Ij=["rows"],Bj=["onClick"],Rj={key:1,class:"ao-comment__footer"},zj=u.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(n,{emit:e}){const t=n,r=e,o=u.computed(()=>{const b=t.user;return b?`${b==null?void 0:b.firstName} ${b==null?void 0:b.lastName}`:null}),i=u.ref(null),s=u.ref(t.content),{isEditing:l,toggleIsEditing:a,onUpdate:c,onDiscard:d}=b9(i),h=u.computed(()=>{const b=t.editedAt&&Dh(t.editedAt),T=Dh(t.createdAt),w=new Date,S=b??T;return S&&wK(S,w)});u.computed(()=>l.value?"textarea":"p");const f=d(),g=c(b=>{r("edit",b)}),p=()=>{r("remove")},m=u.ref(2);u.onUpdated(()=>{u.nextTick(()=>{var b;if(!l.value){const T=(b=i.value)==null?void 0:b.getClientRects().length;m.value=T||2}})});const{showMentionList:_,mentionListPosition:C,filteredUsers:y,handleInput:v,handleKeydown:k,selectUserMention:x}=K9(i,s,u.toRef(t,"mentionableUsers"));return(b,T)=>{var w;return u.openBlock(),u.createElementBlock("li",Oj,[o.value?(u.openBlock(),u.createBlock(js,{key:0,"avatar-url":(w=n.user)==null?void 0:w.avatarUrl,"user-name":o.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):u.createCommentVNode("",!0),u.createElementVNode("span",Dj,u.toDisplayString(h.value),1),u.createElementVNode("div",Lj,[u.createElementVNode("div",Fj,[u.unref(l)?u.withDirectives((u.openBlock(),u.createElementBlock("textarea",{key:1,ref_key:"commentContent",ref:i,class:"ao-comment__content","onUpdate:modelValue":T[0]||(T[0]=S=>s.value=S),rows:m.value,onInput:T[1]||(T[1]=(...S)=>u.unref(v)&&u.unref(v)(...S)),onKeydown:T[2]||(T[2]=(...S)=>u.unref(k)&&u.unref(k)(...S)),onKeyup:[T[3]||(T[3]=u.withKeys((...S)=>u.unref(f)&&u.unref(f)(...S),["esc"])),T[4]||(T[4]=u.withKeys(u.withModifiers((...S)=>u.unref(g)&&u.unref(g)(...S),["ctrl"]),["enter"]))]},null,40,Ij)),[[u.vModelText,s.value]]):(u.openBlock(),u.createElementBlock("p",Pj,u.toDisplayString(n.content),1)),u.unref(_)&&u.unref(y).length>0?(u.openBlock(),u.createElementBlock("ul",{key:2,class:"mention-list",style:u.normalizeStyle({top:u.unref(C).top+"px",left:u.unref(C).left+"px"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(y),S=>(u.openBlock(),u.createElementBlock("li",{key:S.id,onClick:N=>u.unref(x)(S.name)}," @"+u.toDisplayString(S.name),9,Bj))),128))],4)):u.createCommentVNode("",!0)])]),n.isEditable?(u.openBlock(),u.createElementBlock("div",Rj,[u.unref(l)?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createVNode(Be,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:u.unref(f)},null,8,["onClick"]),u.createVNode(Be,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:u.unref(g)},null,8,["onClick"])],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createVNode(Be,{label:b.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:p},null,8,["label"]),u.createVNode(Be,{label:b.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u.unref(a)},null,8,["label","onClick"])],64))])):u.createCommentVNode("",!0)])}}});const Vj={class:"ao-comments__header"},Wj=["placeholder"],Kj={class:"ao-comments__form-submit"},Uj={key:0,class:"ao-comments__list"},Hj=["onClick"],qj=u.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(n,{emit:e}){const t=n,r=e,o=u.computed(()=>(t.comments||[]).toSorted((x,b)=>pW(Dh(x.createdAt),Dh(b.createdAt)))),i=k=>t.users.find(b=>b.id===k),s=u.ref();u.nextTick(()=>{s.value&&(s.value.scrollTop=s.value.scrollHeight)});const l=u.toRef(t.newComment),a=u.computed({get(){return l.value},set(k){l.value=k}}),c=()=>{const k=l.value.trim();k&&(r("createComment",{authorId:t.userId,message:k,mentionedUserIds:v(k)}),l.value="")},d=(k,x)=>{r("updateComment",{id:k,message:x,mentionedUserIds:v(x)})},h=k=>{r("removeComment",{id:k})},f=u.ref(),{showMentionList:g,mentionListPosition:p,filteredUsers:m,handleInput:_,handleKeydown:C,selectUserMention:y,getMentionedUserIds:v}=K9(f,a,u.toRef(t,"users"));return(k,x)=>{var b;return u.openBlock(),u.createElementBlock("div",{ref_key:"commentsContainer",ref:s,class:"ao-comments"},[u.createElementVNode("div",Vj,[u.createElementVNode("form",{class:"ao-comments__form",onSubmit:u.withModifiers(c,["prevent"])},[u.withDirectives(u.createElementVNode("textarea",{ref_key:"textareaRef",ref:f,"onUpdate:modelValue":x[0]||(x[0]=T=>a.value=T),rows:"2",class:"ao-field__textarea ao-comments__form-textarea",placeholder:k.$t("activity.comment.label"),onInput:x[1]||(x[1]=(...T)=>u.unref(_)&&u.unref(_)(...T)),onKeydown:x[2]||(x[2]=(...T)=>u.unref(C)&&u.unref(C)(...T))},null,40,Wj),[[u.vModelText,a.value,void 0,{trim:!0}]]),u.createElementVNode("div",Kj,[u.createVNode(Be,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],32)]),((b=o.value)==null?void 0:b.length)>0?(u.openBlock(),u.createElementBlock("ul",Uj,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,T=>(u.openBlock(),u.createBlock(zj,{key:T.id,user:i(T.author.id),content:T.message,"created-at":T.createdAt,"edited-at":T.updatedAt,"is-editable":T.author.id===n.userId,"mentionable-users":n.users,class:"ao-comment",onEdit:w=>d(T.id,w),onRemove:()=>h(T.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):u.createCommentVNode("",!0),u.unref(g)&&u.unref(m).length>0?(u.openBlock(),u.createElementBlock("ul",{key:1,class:"mention-list",style:u.normalizeStyle({top:u.unref(p).top+"px",left:u.unref(p).left+"px"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(m),T=>(u.openBlock(),u.createElementBlock("li",{key:T.id,onClick:w=>u.unref(y)(T.name)}," @"+u.toDisplayString(T.name),9,Hj))),128))],4)):u.createCommentVNode("",!0)],512)}}});const l6=u.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=()=>{r("update:modelValue",!t.modelValue)};return(i,s)=>(u.openBlock(),u.createBlock(Be,{color:n.modelValue?n.color:u.unref(bk).NEUTRAL,"icon-position":"start",onClick:s[0]||(s[0]=()=>o())},null,8,["color"]))}}),jj=u.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:n=>["underline"].includes(n)}},emits:["update:modelValue"],methods:{selectTab(n){this.$emit("update:modelValue",n)}}});const Zj=["onClick"],Gj={class:"tab-button__label"},Jj={key:0,class:"tab-button__badge"};function Yj(n,e,t,r,o,i){return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":n.variant==="underline"}])},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.tabs,s=>(u.openBlock(),u.createElementBlock("button",{key:s.value,class:u.normalizeClass(["tab-button",{"tab-button--active":s.value===n.modelValue},{"tab-button--underline":n.variant==="underline"}]),type:"button",onClick:l=>n.selectTab(s.value)},[u.createElementVNode("span",Gj,u.toDisplayString(s.label),1),s.count!==void 0&&s.count>0?(u.openBlock(),u.createElementBlock("span",Jj,u.toDisplayString(s.count),1)):u.createCommentVNode("",!0)],10,Zj))),128))],2)}const Lg=ge(jj,[["render",Yj],["__scopeId","data-v-0e91b31f"]]);var Ye={};const Xj="Á",Qj="á",eZ="Ă",tZ="ă",nZ="∾",rZ="∿",oZ="∾̳",iZ="Â",sZ="â",lZ="´",aZ="А",cZ="а",uZ="Æ",dZ="æ",fZ="⁡",hZ="𝔄",gZ="𝔞",pZ="À",mZ="à",_Z="ℵ",yZ="ℵ",vZ="Α",CZ="α",bZ="Ā",kZ="ā",xZ="⨿",SZ="&",wZ="&",TZ="⩕",EZ="⩓",NZ="∧",$Z="⩜",AZ="⩘",MZ="⩚",OZ="∠",DZ="⦤",LZ="∠",FZ="⦨",PZ="⦩",IZ="⦪",BZ="⦫",RZ="⦬",zZ="⦭",VZ="⦮",WZ="⦯",KZ="∡",UZ="∟",HZ="⊾",qZ="⦝",jZ="∢",ZZ="Å",GZ="⍼",JZ="Ą",YZ="ą",XZ="𝔸",QZ="𝕒",eG="⩯",tG="≈",nG="⩰",rG="≊",oG="≋",iG="'",sG="⁡",lG="≈",aG="≊",cG="Å",uG="å",dG="𝒜",fG="𝒶",hG="≔",gG="*",pG="≈",mG="≍",_G="Ã",yG="ã",vG="Ä",CG="ä",bG="∳",kG="⨑",xG="≌",SG="϶",wG="‵",TG="∽",EG="⋍",NG="∖",$G="⫧",AG="⊽",MG="⌅",OG="⌆",DG="⌅",LG="⎵",FG="⎶",PG="≌",IG="Б",BG="б",RG="„",zG="∵",VG="∵",WG="∵",KG="⦰",UG="϶",HG="ℬ",qG="ℬ",jG="Β",ZG="β",GG="ℶ",JG="≬",YG="𝔅",XG="𝔟",QG="⋂",eJ="◯",tJ="⋃",nJ="⨀",rJ="⨁",oJ="⨂",iJ="⨆",sJ="★",lJ="▽",aJ="△",cJ="⨄",uJ="⋁",dJ="⋀",fJ="⤍",hJ="⧫",gJ="▪",pJ="▴",mJ="▾",_J="◂",yJ="▸",vJ="␣",CJ="▒",bJ="░",kJ="▓",xJ="█",SJ="=⃥",wJ="≡⃥",TJ="⫭",EJ="⌐",NJ="𝔹",$J="𝕓",AJ="⊥",MJ="⊥",OJ="⋈",DJ="⧉",LJ="┐",FJ="╕",PJ="╖",IJ="╗",BJ="┌",RJ="╒",zJ="╓",VJ="╔",WJ="─",KJ="═",UJ="┬",HJ="╤",qJ="╥",jJ="╦",ZJ="┴",GJ="╧",JJ="╨",YJ="╩",XJ="⊟",QJ="⊞",eY="⊠",tY="┘",nY="╛",rY="╜",oY="╝",iY="└",sY="╘",lY="╙",aY="╚",cY="│",uY="║",dY="┼",fY="╪",hY="╫",gY="╬",pY="┤",mY="╡",_Y="╢",yY="╣",vY="├",CY="╞",bY="╟",kY="╠",xY="‵",SY="˘",wY="˘",TY="¦",EY="𝒷",NY="ℬ",$Y="⁏",AY="∽",MY="⋍",OY="⧅",DY="\\",LY="⟈",FY="•",PY="•",IY="≎",BY="⪮",RY="≏",zY="≎",VY="≏",WY="Ć",KY="ć",UY="⩄",HY="⩉",qY="⩋",jY="∩",ZY="⋒",GY="⩇",JY="⩀",YY="ⅅ",XY="∩︀",QY="⁁",eX="ˇ",tX="ℭ",nX="⩍",rX="Č",oX="č",iX="Ç",sX="ç",lX="Ĉ",aX="ĉ",cX="∰",uX="⩌",dX="⩐",fX="Ċ",hX="ċ",gX="¸",pX="¸",mX="⦲",_X="¢",yX="·",vX="·",CX="𝔠",bX="ℭ",kX="Ч",xX="ч",SX="✓",wX="✓",TX="Χ",EX="χ",NX="ˆ",$X="≗",AX="↺",MX="↻",OX="⊛",DX="⊚",LX="⊝",FX="⊙",PX="®",IX="Ⓢ",BX="⊖",RX="⊕",zX="⊗",VX="○",WX="⧃",KX="≗",UX="⨐",HX="⫯",qX="⧂",jX="∲",ZX="”",GX="’",JX="♣",YX="♣",XX=":",QX="∷",eQ="⩴",tQ="≔",nQ="≔",rQ=",",oQ="@",iQ="∁",sQ="∘",lQ="∁",aQ="ℂ",cQ="≅",uQ="⩭",dQ="≡",fQ="∮",hQ="∯",gQ="∮",pQ="𝕔",mQ="ℂ",_Q="∐",yQ="∐",vQ="©",CQ="©",bQ="℗",kQ="∳",xQ="↵",SQ="✗",wQ="⨯",TQ="𝒞",EQ="𝒸",NQ="⫏",$Q="⫑",AQ="⫐",MQ="⫒",OQ="⋯",DQ="⤸",LQ="⤵",FQ="⋞",PQ="⋟",IQ="↶",BQ="⤽",RQ="⩈",zQ="⩆",VQ="≍",WQ="∪",KQ="⋓",UQ="⩊",HQ="⊍",qQ="⩅",jQ="∪︀",ZQ="↷",GQ="⤼",JQ="⋞",YQ="⋟",XQ="⋎",QQ="⋏",eee="¤",tee="↶",nee="↷",ree="⋎",oee="⋏",iee="∲",see="∱",lee="⌭",aee="†",cee="‡",uee="ℸ",dee="↓",fee="↡",hee="⇓",gee="‐",pee="⫤",mee="⊣",_ee="⤏",yee="˝",vee="Ď",Cee="ď",bee="Д",kee="д",xee="‡",See="⇊",wee="ⅅ",Tee="ⅆ",Eee="⤑",Nee="⩷",$ee="°",Aee="∇",Mee="Δ",Oee="δ",Dee="⦱",Lee="⥿",Fee="𝔇",Pee="𝔡",Iee="⥥",Bee="⇃",Ree="⇂",zee="´",Vee="˙",Wee="˝",Kee="`",Uee="˜",Hee="⋄",qee="⋄",jee="⋄",Zee="♦",Gee="♦",Jee="¨",Yee="ⅆ",Xee="ϝ",Qee="⋲",ete="÷",tte="÷",nte="⋇",rte="⋇",ote="Ђ",ite="ђ",ste="⌞",lte="⌍",ate="$",cte="𝔻",ute="𝕕",dte="¨",fte="˙",hte="⃜",gte="≐",pte="≑",mte="≐",_te="∸",yte="∔",vte="⊡",Cte="⌆",bte="∯",kte="¨",xte="⇓",Ste="⇐",wte="⇔",Tte="⫤",Ete="⟸",Nte="⟺",$te="⟹",Ate="⇒",Mte="⊨",Ote="⇑",Dte="⇕",Lte="∥",Fte="⤓",Pte="↓",Ite="↓",Bte="⇓",Rte="⇵",zte="̑",Vte="⇊",Wte="⇃",Kte="⇂",Ute="⥐",Hte="⥞",qte="⥖",jte="↽",Zte="⥟",Gte="⥗",Jte="⇁",Yte="↧",Xte="⊤",Qte="⤐",ene="⌟",tne="⌌",nne="𝒟",rne="𝒹",one="Ѕ",ine="ѕ",sne="⧶",lne="Đ",ane="đ",cne="⋱",une="▿",dne="▾",fne="⇵",hne="⥯",gne="⦦",pne="Џ",mne="џ",_ne="⟿",yne="É",vne="é",Cne="⩮",bne="Ě",kne="ě",xne="Ê",Sne="ê",wne="≖",Tne="≕",Ene="Э",Nne="э",$ne="⩷",Ane="Ė",Mne="ė",One="≑",Dne="ⅇ",Lne="≒",Fne="𝔈",Pne="𝔢",Ine="⪚",Bne="È",Rne="è",zne="⪖",Vne="⪘",Wne="⪙",Kne="∈",Une="⏧",Hne="ℓ",qne="⪕",jne="⪗",Zne="Ē",Gne="ē",Jne="∅",Yne="∅",Xne="◻",Qne="∅",ere="▫",tre=" ",nre=" ",rre=" ",ore="Ŋ",ire="ŋ",sre=" ",lre="Ę",are="ę",cre="𝔼",ure="𝕖",dre="⋕",fre="⧣",hre="⩱",gre="ε",pre="Ε",mre="ε",_re="ϵ",yre="≖",vre="≕",Cre="≂",bre="⪖",kre="⪕",xre="⩵",Sre="=",wre="≂",Tre="≟",Ere="⇌",Nre="≡",$re="⩸",Are="⧥",Mre="⥱",Ore="≓",Dre="ℯ",Lre="ℰ",Fre="≐",Pre="⩳",Ire="≂",Bre="Η",Rre="η",zre="Ð",Vre="ð",Wre="Ë",Kre="ë",Ure="€",Hre="!",qre="∃",jre="∃",Zre="ℰ",Gre="ⅇ",Jre="ⅇ",Yre="≒",Xre="Ф",Qre="ф",eoe="♀",toe="ffi",noe="ff",roe="ffl",ooe="𝔉",ioe="𝔣",soe="fi",loe="◼",aoe="▪",coe="fj",uoe="♭",doe="fl",foe="▱",hoe="ƒ",goe="𝔽",poe="𝕗",moe="∀",_oe="∀",yoe="⋔",voe="⫙",Coe="ℱ",boe="⨍",koe="½",xoe="⅓",Soe="¼",woe="⅕",Toe="⅙",Eoe="⅛",Noe="⅔",$oe="⅖",Aoe="¾",Moe="⅗",Ooe="⅜",Doe="⅘",Loe="⅚",Foe="⅝",Poe="⅞",Ioe="⁄",Boe="⌢",Roe="𝒻",zoe="ℱ",Voe="ǵ",Woe="Γ",Koe="γ",Uoe="Ϝ",Hoe="ϝ",qoe="⪆",joe="Ğ",Zoe="ğ",Goe="Ģ",Joe="Ĝ",Yoe="ĝ",Xoe="Г",Qoe="г",eie="Ġ",tie="ġ",nie="≥",rie="≧",oie="⪌",iie="⋛",sie="≥",lie="≧",aie="⩾",cie="⪩",uie="⩾",die="⪀",fie="⪂",hie="⪄",gie="⋛︀",pie="⪔",mie="𝔊",_ie="𝔤",yie="≫",vie="⋙",Cie="⋙",bie="ℷ",kie="Ѓ",xie="ѓ",Sie="⪥",wie="≷",Tie="⪒",Eie="⪤",Nie="⪊",$ie="⪊",Aie="⪈",Mie="≩",Oie="⪈",Die="≩",Lie="⋧",Fie="𝔾",Pie="𝕘",Iie="`",Bie="≥",Rie="⋛",zie="≧",Vie="⪢",Wie="≷",Kie="⩾",Uie="≳",Hie="𝒢",qie="ℊ",jie="≳",Zie="⪎",Gie="⪐",Jie="⪧",Yie="⩺",Xie=">",Qie=">",ese="≫",tse="⋗",nse="⦕",rse="⩼",ose="⪆",ise="⥸",sse="⋗",lse="⋛",ase="⪌",cse="≷",use="≳",dse="≩︀",fse="≩︀",hse="ˇ",gse=" ",pse="½",mse="ℋ",_se="Ъ",yse="ъ",vse="⥈",Cse="↔",bse="⇔",kse="↭",xse="^",Sse="ℏ",wse="Ĥ",Tse="ĥ",Ese="♥",Nse="♥",$se="…",Ase="⊹",Mse="𝔥",Ose="ℌ",Dse="ℋ",Lse="⤥",Fse="⤦",Pse="⇿",Ise="∻",Bse="↩",Rse="↪",zse="𝕙",Vse="ℍ",Wse="―",Kse="─",Use="𝒽",Hse="ℋ",qse="ℏ",jse="Ħ",Zse="ħ",Gse="≎",Jse="≏",Yse="⁃",Xse="‐",Qse="Í",ele="í",tle="⁣",nle="Î",rle="î",ole="И",ile="и",sle="İ",lle="Е",ale="е",cle="¡",ule="⇔",dle="𝔦",fle="ℑ",hle="Ì",gle="ì",ple="ⅈ",mle="⨌",_le="∭",yle="⧜",vle="℩",Cle="IJ",ble="ij",kle="Ī",xle="ī",Sle="ℑ",wle="ⅈ",Tle="ℐ",Ele="ℑ",Nle="ı",$le="ℑ",Ale="⊷",Mle="Ƶ",Ole="⇒",Dle="℅",Lle="∞",Fle="⧝",Ple="ı",Ile="⊺",Ble="∫",Rle="∬",zle="ℤ",Vle="∫",Wle="⊺",Kle="⋂",Ule="⨗",Hle="⨼",qle="⁣",jle="⁢",Zle="Ё",Gle="ё",Jle="Į",Yle="į",Xle="𝕀",Qle="𝕚",eae="Ι",tae="ι",nae="⨼",rae="¿",oae="𝒾",iae="ℐ",sae="∈",lae="⋵",aae="⋹",cae="⋴",uae="⋳",dae="∈",fae="⁢",hae="Ĩ",gae="ĩ",pae="І",mae="і",_ae="Ï",yae="ï",vae="Ĵ",Cae="ĵ",bae="Й",kae="й",xae="𝔍",Sae="𝔧",wae="ȷ",Tae="𝕁",Eae="𝕛",Nae="𝒥",$ae="𝒿",Aae="Ј",Mae="ј",Oae="Є",Dae="є",Lae="Κ",Fae="κ",Pae="ϰ",Iae="Ķ",Bae="ķ",Rae="К",zae="к",Vae="𝔎",Wae="𝔨",Kae="ĸ",Uae="Х",Hae="х",qae="Ќ",jae="ќ",Zae="𝕂",Gae="𝕜",Jae="𝒦",Yae="𝓀",Xae="⇚",Qae="Ĺ",ece="ĺ",tce="⦴",nce="ℒ",rce="Λ",oce="λ",ice="⟨",sce="⟪",lce="⦑",ace="⟨",cce="⪅",uce="ℒ",dce="«",fce="⇤",hce="⤟",gce="←",pce="↞",mce="⇐",_ce="⤝",yce="↩",vce="↫",Cce="⤹",bce="⥳",kce="↢",xce="⤙",Sce="⤛",wce="⪫",Tce="⪭",Ece="⪭︀",Nce="⤌",$ce="⤎",Ace="❲",Mce="{",Oce="[",Dce="⦋",Lce="⦏",Fce="⦍",Pce="Ľ",Ice="ľ",Bce="Ļ",Rce="ļ",zce="⌈",Vce="{",Wce="Л",Kce="л",Uce="⤶",Hce="“",qce="„",jce="⥧",Zce="⥋",Gce="↲",Jce="≤",Yce="≦",Xce="⟨",Qce="⇤",eue="←",tue="←",nue="⇐",rue="⇆",oue="↢",iue="⌈",sue="⟦",lue="⥡",aue="⥙",cue="⇃",uue="⌊",due="↽",fue="↼",hue="⇇",gue="↔",pue="↔",mue="⇔",_ue="⇆",yue="⇋",vue="↭",Cue="⥎",bue="↤",kue="⊣",xue="⥚",Sue="⋋",wue="⧏",Tue="⊲",Eue="⊴",Nue="⥑",$ue="⥠",Aue="⥘",Mue="↿",Oue="⥒",Due="↼",Lue="⪋",Fue="⋚",Pue="≤",Iue="≦",Bue="⩽",Rue="⪨",zue="⩽",Vue="⩿",Wue="⪁",Kue="⪃",Uue="⋚︀",Hue="⪓",que="⪅",jue="⋖",Zue="⋚",Gue="⪋",Jue="⋚",Yue="≦",Xue="≶",Que="≶",ede="⪡",tde="≲",nde="⩽",rde="≲",ode="⥼",ide="⌊",sde="𝔏",lde="𝔩",ade="≶",cde="⪑",ude="⥢",dde="↽",fde="↼",hde="⥪",gde="▄",pde="Љ",mde="љ",_de="⇇",yde="≪",vde="⋘",Cde="⌞",bde="⇚",kde="⥫",xde="◺",Sde="Ŀ",wde="ŀ",Tde="⎰",Ede="⎰",Nde="⪉",$de="⪉",Ade="⪇",Mde="≨",Ode="⪇",Dde="≨",Lde="⋦",Fde="⟬",Pde="⇽",Ide="⟦",Bde="⟵",Rde="⟵",zde="⟸",Vde="⟷",Wde="⟷",Kde="⟺",Ude="⟼",Hde="⟶",qde="⟶",jde="⟹",Zde="↫",Gde="↬",Jde="⦅",Yde="𝕃",Xde="𝕝",Qde="⨭",efe="⨴",tfe="∗",nfe="_",rfe="↙",ofe="↘",ife="◊",sfe="◊",lfe="⧫",afe="(",cfe="⦓",ufe="⇆",dfe="⌟",ffe="⇋",hfe="⥭",gfe="‎",pfe="⊿",mfe="‹",_fe="𝓁",yfe="ℒ",vfe="↰",Cfe="↰",bfe="≲",kfe="⪍",xfe="⪏",Sfe="[",wfe="‘",Tfe="‚",Efe="Ł",Nfe="ł",$fe="⪦",Afe="⩹",Mfe="<",Ofe="<",Dfe="≪",Lfe="⋖",Ffe="⋋",Pfe="⋉",Ife="⥶",Bfe="⩻",Rfe="◃",zfe="⊴",Vfe="◂",Wfe="⦖",Kfe="⥊",Ufe="⥦",Hfe="≨︀",qfe="≨︀",jfe="¯",Zfe="♂",Gfe="✠",Jfe="✠",Yfe="↦",Xfe="↦",Qfe="↧",ehe="↤",the="↥",nhe="▮",rhe="⨩",ohe="М",ihe="м",she="—",lhe="∺",ahe="∡",che=" ",uhe="ℳ",dhe="𝔐",fhe="𝔪",hhe="℧",ghe="µ",phe="*",mhe="⫰",_he="∣",yhe="·",vhe="⊟",Che="−",bhe="∸",khe="⨪",xhe="∓",She="⫛",whe="…",The="∓",Ehe="⊧",Nhe="𝕄",$he="𝕞",Ahe="∓",Mhe="𝓂",Ohe="ℳ",Dhe="∾",Lhe="Μ",Fhe="μ",Phe="⊸",Ihe="⊸",Bhe="∇",Rhe="Ń",zhe="ń",Vhe="∠⃒",Whe="≉",Khe="⩰̸",Uhe="≋̸",Hhe="ʼn",qhe="≉",jhe="♮",Zhe="ℕ",Ghe="♮",Jhe=" ",Yhe="≎̸",Xhe="≏̸",Qhe="⩃",ege="Ň",tge="ň",nge="Ņ",rge="ņ",oge="≇",ige="⩭̸",sge="⩂",lge="Н",age="н",cge="–",uge="⤤",dge="↗",fge="⇗",hge="↗",gge="≠",pge="≐̸",mge="​",_ge="​",yge="​",vge="​",Cge="≢",bge="⤨",kge="≂̸",xge="≫",Sge="≪",wge=`
2
+ `,Tge="∄",Ege="∄",Nge="𝔑",$ge="𝔫",Age="≧̸",Mge="≱",Oge="≱",Dge="≧̸",Lge="⩾̸",Fge="⩾̸",Pge="⋙̸",Ige="≵",Bge="≫⃒",Rge="≯",zge="≯",Vge="≫̸",Wge="↮",Kge="⇎",Uge="⫲",Hge="∋",qge="⋼",jge="⋺",Zge="∋",Gge="Њ",Jge="њ",Yge="↚",Xge="⇍",Qge="‥",epe="≦̸",tpe="≰",npe="↚",rpe="⇍",ope="↮",ipe="⇎",spe="≰",lpe="≦̸",ape="⩽̸",cpe="⩽̸",upe="≮",dpe="⋘̸",fpe="≴",hpe="≪⃒",gpe="≮",ppe="⋪",mpe="⋬",_pe="≪̸",ype="∤",vpe="⁠",Cpe=" ",bpe="𝕟",kpe="ℕ",xpe="⫬",Spe="¬",wpe="≢",Tpe="≭",Epe="∦",Npe="∉",$pe="≠",Ape="≂̸",Mpe="∄",Ope="≯",Dpe="≱",Lpe="≧̸",Fpe="≫̸",Ppe="≹",Ipe="⩾̸",Bpe="≵",Rpe="≎̸",zpe="≏̸",Vpe="∉",Wpe="⋵̸",Kpe="⋹̸",Upe="∉",Hpe="⋷",qpe="⋶",jpe="⧏̸",Zpe="⋪",Gpe="⋬",Jpe="≮",Ype="≰",Xpe="≸",Qpe="≪̸",e1e="⩽̸",t1e="≴",n1e="⪢̸",r1e="⪡̸",o1e="∌",i1e="∌",s1e="⋾",l1e="⋽",a1e="⊀",c1e="⪯̸",u1e="⋠",d1e="∌",f1e="⧐̸",h1e="⋫",g1e="⋭",p1e="⊏̸",m1e="⋢",_1e="⊐̸",y1e="⋣",v1e="⊂⃒",C1e="⊈",b1e="⊁",k1e="⪰̸",x1e="⋡",S1e="≿̸",w1e="⊃⃒",T1e="⊉",E1e="≁",N1e="≄",$1e="≇",A1e="≉",M1e="∤",O1e="∦",D1e="∦",L1e="⫽⃥",F1e="∂̸",P1e="⨔",I1e="⊀",B1e="⋠",R1e="⊀",z1e="⪯̸",V1e="⪯̸",W1e="⤳̸",K1e="↛",U1e="⇏",H1e="↝̸",q1e="↛",j1e="⇏",Z1e="⋫",G1e="⋭",J1e="⊁",Y1e="⋡",X1e="⪰̸",Q1e="𝒩",eme="𝓃",tme="∤",nme="∦",rme="≁",ome="≄",ime="≄",sme="∤",lme="∦",ame="⋢",cme="⋣",ume="⊄",dme="⫅̸",fme="⊈",hme="⊂⃒",gme="⊈",pme="⫅̸",mme="⊁",_me="⪰̸",yme="⊅",vme="⫆̸",Cme="⊉",bme="⊃⃒",kme="⊉",xme="⫆̸",Sme="≹",wme="Ñ",Tme="ñ",Eme="≸",Nme="⋪",$me="⋬",Ame="⋫",Mme="⋭",Ome="Ν",Dme="ν",Lme="#",Fme="№",Pme=" ",Ime="≍⃒",Bme="⊬",Rme="⊭",zme="⊮",Vme="⊯",Wme="≥⃒",Kme=">⃒",Ume="⤄",Hme="⧞",qme="⤂",jme="≤⃒",Zme="<⃒",Gme="⊴⃒",Jme="⤃",Yme="⊵⃒",Xme="∼⃒",Qme="⤣",e_e="↖",t_e="⇖",n_e="↖",r_e="⤧",o_e="Ó",i_e="ó",s_e="⊛",l_e="Ô",a_e="ô",c_e="⊚",u_e="О",d_e="о",f_e="⊝",h_e="Ő",g_e="ő",p_e="⨸",m_e="⊙",__e="⦼",y_e="Œ",v_e="œ",C_e="⦿",b_e="𝔒",k_e="𝔬",x_e="˛",S_e="Ò",w_e="ò",T_e="⧁",E_e="⦵",N_e="Ω",$_e="∮",A_e="↺",M_e="⦾",O_e="⦻",D_e="‾",L_e="⧀",F_e="Ō",P_e="ō",I_e="Ω",B_e="ω",R_e="Ο",z_e="ο",V_e="⦶",W_e="⊖",K_e="𝕆",U_e="𝕠",H_e="⦷",q_e="“",j_e="‘",Z_e="⦹",G_e="⊕",J_e="↻",Y_e="⩔",X_e="∨",Q_e="⩝",e0e="ℴ",t0e="ℴ",n0e="ª",r0e="º",o0e="⊶",i0e="⩖",s0e="⩗",l0e="⩛",a0e="Ⓢ",c0e="𝒪",u0e="ℴ",d0e="Ø",f0e="ø",h0e="⊘",g0e="Õ",p0e="õ",m0e="⨶",_0e="⨷",y0e="⊗",v0e="Ö",C0e="ö",b0e="⌽",k0e="‾",x0e="⏞",S0e="⎴",w0e="⏜",T0e="¶",E0e="∥",N0e="∥",$0e="⫳",A0e="⫽",M0e="∂",O0e="∂",D0e="П",L0e="п",F0e="%",P0e=".",I0e="‰",B0e="⊥",R0e="‱",z0e="𝔓",V0e="𝔭",W0e="Φ",K0e="φ",U0e="ϕ",H0e="ℳ",q0e="☎",j0e="Π",Z0e="π",G0e="⋔",J0e="ϖ",Y0e="ℏ",X0e="ℎ",Q0e="ℏ",eye="⨣",tye="⊞",nye="⨢",rye="+",oye="∔",iye="⨥",sye="⩲",lye="±",aye="±",cye="⨦",uye="⨧",dye="±",fye="ℌ",hye="⨕",gye="𝕡",pye="ℙ",mye="£",_ye="⪷",yye="⪻",vye="≺",Cye="≼",bye="⪷",kye="≺",xye="≼",Sye="≺",wye="⪯",Tye="≼",Eye="≾",Nye="⪯",$ye="⪹",Aye="⪵",Mye="⋨",Oye="⪯",Dye="⪳",Lye="≾",Fye="′",Pye="″",Iye="ℙ",Bye="⪹",Rye="⪵",zye="⋨",Vye="∏",Wye="∏",Kye="⌮",Uye="⌒",Hye="⌓",qye="∝",jye="∝",Zye="∷",Gye="∝",Jye="≾",Yye="⊰",Xye="𝒫",Qye="𝓅",eve="Ψ",tve="ψ",nve=" ",rve="𝔔",ove="𝔮",ive="⨌",sve="𝕢",lve="ℚ",ave="⁗",cve="𝒬",uve="𝓆",dve="ℍ",fve="⨖",hve="?",gve="≟",pve='"',mve='"',_ve="⇛",yve="∽̱",vve="Ŕ",Cve="ŕ",bve="√",kve="⦳",xve="⟩",Sve="⟫",wve="⦒",Tve="⦥",Eve="⟩",Nve="»",$ve="⥵",Ave="⇥",Mve="⤠",Ove="⤳",Dve="→",Lve="↠",Fve="⇒",Pve="⤞",Ive="↪",Bve="↬",Rve="⥅",zve="⥴",Vve="⤖",Wve="↣",Kve="↝",Uve="⤚",Hve="⤜",qve="∶",jve="ℚ",Zve="⤍",Gve="⤏",Jve="⤐",Yve="❳",Xve="}",Qve="]",e2e="⦌",t2e="⦎",n2e="⦐",r2e="Ř",o2e="ř",i2e="Ŗ",s2e="ŗ",l2e="⌉",a2e="}",c2e="Р",u2e="р",d2e="⤷",f2e="⥩",h2e="”",g2e="”",p2e="↳",m2e="ℜ",_2e="ℛ",y2e="ℜ",v2e="ℝ",C2e="ℜ",b2e="▭",k2e="®",x2e="®",S2e="∋",w2e="⇋",T2e="⥯",E2e="⥽",N2e="⌋",$2e="𝔯",A2e="ℜ",M2e="⥤",O2e="⇁",D2e="⇀",L2e="⥬",F2e="Ρ",P2e="ρ",I2e="ϱ",B2e="⟩",R2e="⇥",z2e="→",V2e="→",W2e="⇒",K2e="⇄",U2e="↣",H2e="⌉",q2e="⟧",j2e="⥝",Z2e="⥕",G2e="⇂",J2e="⌋",Y2e="⇁",X2e="⇀",Q2e="⇄",eCe="⇌",tCe="⇉",nCe="↝",rCe="↦",oCe="⊢",iCe="⥛",sCe="⋌",lCe="⧐",aCe="⊳",cCe="⊵",uCe="⥏",dCe="⥜",fCe="⥔",hCe="↾",gCe="⥓",pCe="⇀",mCe="˚",_Ce="≓",yCe="⇄",vCe="⇌",CCe="‏",bCe="⎱",kCe="⎱",xCe="⫮",SCe="⟭",wCe="⇾",TCe="⟧",ECe="⦆",NCe="𝕣",$Ce="ℝ",ACe="⨮",MCe="⨵",OCe="⥰",DCe=")",LCe="⦔",FCe="⨒",PCe="⇉",ICe="⇛",BCe="›",RCe="𝓇",zCe="ℛ",VCe="↱",WCe="↱",KCe="]",UCe="’",HCe="’",qCe="⋌",jCe="⋊",ZCe="▹",GCe="⊵",JCe="▸",YCe="⧎",XCe="⧴",QCe="⥨",ebe="℞",tbe="Ś",nbe="ś",rbe="‚",obe="⪸",ibe="Š",sbe="š",lbe="⪼",abe="≻",cbe="≽",ube="⪰",dbe="⪴",fbe="Ş",hbe="ş",gbe="Ŝ",pbe="ŝ",mbe="⪺",_be="⪶",ybe="⋩",vbe="⨓",Cbe="≿",bbe="С",kbe="с",xbe="⊡",Sbe="⋅",wbe="⩦",Tbe="⤥",Ebe="↘",Nbe="⇘",$be="↘",Abe="§",Mbe=";",Obe="⤩",Dbe="∖",Lbe="∖",Fbe="✶",Pbe="𝔖",Ibe="𝔰",Bbe="⌢",Rbe="♯",zbe="Щ",Vbe="щ",Wbe="Ш",Kbe="ш",Ube="↓",Hbe="←",qbe="∣",jbe="∥",Zbe="→",Gbe="↑",Jbe="­",Ybe="Σ",Xbe="σ",Qbe="ς",eke="ς",tke="∼",nke="⩪",rke="≃",oke="≃",ike="⪞",ske="⪠",lke="⪝",ake="⪟",cke="≆",uke="⨤",dke="⥲",fke="←",hke="∘",gke="∖",pke="⨳",mke="⧤",_ke="∣",yke="⌣",vke="⪪",Cke="⪬",bke="⪬︀",kke="Ь",xke="ь",Ske="⌿",wke="⧄",Tke="/",Eke="𝕊",Nke="𝕤",$ke="♠",Ake="♠",Mke="∥",Oke="⊓",Dke="⊓︀",Lke="⊔",Fke="⊔︀",Pke="√",Ike="⊏",Bke="⊑",Rke="⊏",zke="⊑",Vke="⊐",Wke="⊒",Kke="⊐",Uke="⊒",Hke="□",qke="□",jke="⊓",Zke="⊏",Gke="⊑",Jke="⊐",Yke="⊒",Xke="⊔",Qke="▪",e3e="□",t3e="▪",n3e="→",r3e="𝒮",o3e="𝓈",i3e="∖",s3e="⌣",l3e="⋆",a3e="⋆",c3e="☆",u3e="★",d3e="ϵ",f3e="ϕ",h3e="¯",g3e="⊂",p3e="⋐",m3e="⪽",_3e="⫅",y3e="⊆",v3e="⫃",C3e="⫁",b3e="⫋",k3e="⊊",x3e="⪿",S3e="⥹",w3e="⊂",T3e="⋐",E3e="⊆",N3e="⫅",$3e="⊆",A3e="⊊",M3e="⫋",O3e="⫇",D3e="⫕",L3e="⫓",F3e="⪸",P3e="≻",I3e="≽",B3e="≻",R3e="⪰",z3e="≽",V3e="≿",W3e="⪰",K3e="⪺",U3e="⪶",H3e="⋩",q3e="≿",j3e="∋",Z3e="∑",G3e="∑",J3e="♪",Y3e="¹",X3e="²",Q3e="³",exe="⊃",txe="⋑",nxe="⪾",rxe="⫘",oxe="⫆",ixe="⊇",sxe="⫄",lxe="⊃",axe="⊇",cxe="⟉",uxe="⫗",dxe="⥻",fxe="⫂",hxe="⫌",gxe="⊋",pxe="⫀",mxe="⊃",_xe="⋑",yxe="⊇",vxe="⫆",Cxe="⊋",bxe="⫌",kxe="⫈",xxe="⫔",Sxe="⫖",wxe="⤦",Txe="↙",Exe="⇙",Nxe="↙",$xe="⤪",Axe="ß",Mxe=" ",Oxe="⌖",Dxe="Τ",Lxe="τ",Fxe="⎴",Pxe="Ť",Ixe="ť",Bxe="Ţ",Rxe="ţ",zxe="Т",Vxe="т",Wxe="⃛",Kxe="⌕",Uxe="𝔗",Hxe="𝔱",qxe="∴",jxe="∴",Zxe="∴",Gxe="Θ",Jxe="θ",Yxe="ϑ",Xxe="ϑ",Qxe="≈",e5e="∼",t5e="  ",n5e=" ",r5e=" ",o5e="≈",i5e="∼",s5e="Þ",l5e="þ",a5e="˜",c5e="∼",u5e="≃",d5e="≅",f5e="≈",h5e="⨱",g5e="⊠",p5e="×",m5e="⨰",_5e="∭",y5e="⤨",v5e="⌶",C5e="⫱",b5e="⊤",k5e="𝕋",x5e="𝕥",S5e="⫚",w5e="⤩",T5e="‴",E5e="™",N5e="™",$5e="▵",A5e="▿",M5e="◃",O5e="⊴",D5e="≜",L5e="▹",F5e="⊵",P5e="◬",I5e="≜",B5e="⨺",R5e="⃛",z5e="⨹",V5e="⧍",W5e="⨻",K5e="⏢",U5e="𝒯",H5e="𝓉",q5e="Ц",j5e="ц",Z5e="Ћ",G5e="ћ",J5e="Ŧ",Y5e="ŧ",X5e="≬",Q5e="↞",eSe="↠",tSe="Ú",nSe="ú",rSe="↑",oSe="↟",iSe="⇑",sSe="⥉",lSe="Ў",aSe="ў",cSe="Ŭ",uSe="ŭ",dSe="Û",fSe="û",hSe="У",gSe="у",pSe="⇅",mSe="Ű",_Se="ű",ySe="⥮",vSe="⥾",CSe="𝔘",bSe="𝔲",kSe="Ù",xSe="ù",SSe="⥣",wSe="↿",TSe="↾",ESe="▀",NSe="⌜",$Se="⌜",ASe="⌏",MSe="◸",OSe="Ū",DSe="ū",LSe="¨",FSe="_",PSe="⏟",ISe="⎵",BSe="⏝",RSe="⋃",zSe="⊎",VSe="Ų",WSe="ų",KSe="𝕌",USe="𝕦",HSe="⤒",qSe="↑",jSe="↑",ZSe="⇑",GSe="⇅",JSe="↕",YSe="↕",XSe="⇕",QSe="⥮",e7e="↿",t7e="↾",n7e="⊎",r7e="↖",o7e="↗",i7e="υ",s7e="ϒ",l7e="ϒ",a7e="Υ",c7e="υ",u7e="↥",d7e="⊥",f7e="⇈",h7e="⌝",g7e="⌝",p7e="⌎",m7e="Ů",_7e="ů",y7e="◹",v7e="𝒰",C7e="𝓊",b7e="⋰",k7e="Ũ",x7e="ũ",S7e="▵",w7e="▴",T7e="⇈",E7e="Ü",N7e="ü",$7e="⦧",A7e="⦜",M7e="ϵ",O7e="ϰ",D7e="∅",L7e="ϕ",F7e="ϖ",P7e="∝",I7e="↕",B7e="⇕",R7e="ϱ",z7e="ς",V7e="⊊︀",W7e="⫋︀",K7e="⊋︀",U7e="⫌︀",H7e="ϑ",q7e="⊲",j7e="⊳",Z7e="⫨",G7e="⫫",J7e="⫩",Y7e="В",X7e="в",Q7e="⊢",ewe="⊨",twe="⊩",nwe="⊫",rwe="⫦",owe="⊻",iwe="∨",swe="⋁",lwe="≚",awe="⋮",cwe="|",uwe="‖",dwe="|",fwe="‖",hwe="∣",gwe="|",pwe="❘",mwe="≀",_we=" ",ywe="𝔙",vwe="𝔳",Cwe="⊲",bwe="⊂⃒",kwe="⊃⃒",xwe="𝕍",Swe="𝕧",wwe="∝",Twe="⊳",Ewe="𝒱",Nwe="𝓋",$we="⫋︀",Awe="⊊︀",Mwe="⫌︀",Owe="⊋︀",Dwe="⊪",Lwe="⦚",Fwe="Ŵ",Pwe="ŵ",Iwe="⩟",Bwe="∧",Rwe="⋀",zwe="≙",Vwe="℘",Wwe="𝔚",Kwe="𝔴",Uwe="𝕎",Hwe="𝕨",qwe="℘",jwe="≀",Zwe="≀",Gwe="𝒲",Jwe="𝓌",Ywe="⋂",Xwe="◯",Qwe="⋃",eTe="▽",tTe="𝔛",nTe="𝔵",rTe="⟷",oTe="⟺",iTe="Ξ",sTe="ξ",lTe="⟵",aTe="⟸",cTe="⟼",uTe="⋻",dTe="⨀",fTe="𝕏",hTe="𝕩",gTe="⨁",pTe="⨂",mTe="⟶",_Te="⟹",yTe="𝒳",vTe="𝓍",CTe="⨆",bTe="⨄",kTe="△",xTe="⋁",STe="⋀",wTe="Ý",TTe="ý",ETe="Я",NTe="я",$Te="Ŷ",ATe="ŷ",MTe="Ы",OTe="ы",DTe="¥",LTe="𝔜",FTe="𝔶",PTe="Ї",ITe="ї",BTe="𝕐",RTe="𝕪",zTe="𝒴",VTe="𝓎",WTe="Ю",KTe="ю",UTe="ÿ",HTe="Ÿ",qTe="Ź",jTe="ź",ZTe="Ž",GTe="ž",JTe="З",YTe="з",XTe="Ż",QTe="ż",eEe="ℨ",tEe="​",nEe="Ζ",rEe="ζ",oEe="𝔷",iEe="ℨ",sEe="Ж",lEe="ж",aEe="⇝",cEe="𝕫",uEe="ℤ",dEe="𝒵",fEe="𝓏",hEe="‍",gEe="‌",pEe={Aacute:Xj,aacute:Qj,Abreve:eZ,abreve:tZ,ac:nZ,acd:rZ,acE:oZ,Acirc:iZ,acirc:sZ,acute:lZ,Acy:aZ,acy:cZ,AElig:uZ,aelig:dZ,af:fZ,Afr:hZ,afr:gZ,Agrave:pZ,agrave:mZ,alefsym:_Z,aleph:yZ,Alpha:vZ,alpha:CZ,Amacr:bZ,amacr:kZ,amalg:xZ,amp:SZ,AMP:wZ,andand:TZ,And:EZ,and:NZ,andd:$Z,andslope:AZ,andv:MZ,ang:OZ,ange:DZ,angle:LZ,angmsdaa:FZ,angmsdab:PZ,angmsdac:IZ,angmsdad:BZ,angmsdae:RZ,angmsdaf:zZ,angmsdag:VZ,angmsdah:WZ,angmsd:KZ,angrt:UZ,angrtvb:HZ,angrtvbd:qZ,angsph:jZ,angst:ZZ,angzarr:GZ,Aogon:JZ,aogon:YZ,Aopf:XZ,aopf:QZ,apacir:eG,ap:tG,apE:nG,ape:rG,apid:oG,apos:iG,ApplyFunction:sG,approx:lG,approxeq:aG,Aring:cG,aring:uG,Ascr:dG,ascr:fG,Assign:hG,ast:gG,asymp:pG,asympeq:mG,Atilde:_G,atilde:yG,Auml:vG,auml:CG,awconint:bG,awint:kG,backcong:xG,backepsilon:SG,backprime:wG,backsim:TG,backsimeq:EG,Backslash:NG,Barv:$G,barvee:AG,barwed:MG,Barwed:OG,barwedge:DG,bbrk:LG,bbrktbrk:FG,bcong:PG,Bcy:IG,bcy:BG,bdquo:RG,becaus:zG,because:VG,Because:WG,bemptyv:KG,bepsi:UG,bernou:HG,Bernoullis:qG,Beta:jG,beta:ZG,beth:GG,between:JG,Bfr:YG,bfr:XG,bigcap:QG,bigcirc:eJ,bigcup:tJ,bigodot:nJ,bigoplus:rJ,bigotimes:oJ,bigsqcup:iJ,bigstar:sJ,bigtriangledown:lJ,bigtriangleup:aJ,biguplus:cJ,bigvee:uJ,bigwedge:dJ,bkarow:fJ,blacklozenge:hJ,blacksquare:gJ,blacktriangle:pJ,blacktriangledown:mJ,blacktriangleleft:_J,blacktriangleright:yJ,blank:vJ,blk12:CJ,blk14:bJ,blk34:kJ,block:xJ,bne:SJ,bnequiv:wJ,bNot:TJ,bnot:EJ,Bopf:NJ,bopf:$J,bot:AJ,bottom:MJ,bowtie:OJ,boxbox:DJ,boxdl:LJ,boxdL:FJ,boxDl:PJ,boxDL:IJ,boxdr:BJ,boxdR:RJ,boxDr:zJ,boxDR:VJ,boxh:WJ,boxH:KJ,boxhd:UJ,boxHd:HJ,boxhD:qJ,boxHD:jJ,boxhu:ZJ,boxHu:GJ,boxhU:JJ,boxHU:YJ,boxminus:XJ,boxplus:QJ,boxtimes:eY,boxul:tY,boxuL:nY,boxUl:rY,boxUL:oY,boxur:iY,boxuR:sY,boxUr:lY,boxUR:aY,boxv:cY,boxV:uY,boxvh:dY,boxvH:fY,boxVh:hY,boxVH:gY,boxvl:pY,boxvL:mY,boxVl:_Y,boxVL:yY,boxvr:vY,boxvR:CY,boxVr:bY,boxVR:kY,bprime:xY,breve:SY,Breve:wY,brvbar:TY,bscr:EY,Bscr:NY,bsemi:$Y,bsim:AY,bsime:MY,bsolb:OY,bsol:DY,bsolhsub:LY,bull:FY,bullet:PY,bump:IY,bumpE:BY,bumpe:RY,Bumpeq:zY,bumpeq:VY,Cacute:WY,cacute:KY,capand:UY,capbrcup:HY,capcap:qY,cap:jY,Cap:ZY,capcup:GY,capdot:JY,CapitalDifferentialD:YY,caps:XY,caret:QY,caron:eX,Cayleys:tX,ccaps:nX,Ccaron:rX,ccaron:oX,Ccedil:iX,ccedil:sX,Ccirc:lX,ccirc:aX,Cconint:cX,ccups:uX,ccupssm:dX,Cdot:fX,cdot:hX,cedil:gX,Cedilla:pX,cemptyv:mX,cent:_X,centerdot:yX,CenterDot:vX,cfr:CX,Cfr:bX,CHcy:kX,chcy:xX,check:SX,checkmark:wX,Chi:TX,chi:EX,circ:NX,circeq:$X,circlearrowleft:AX,circlearrowright:MX,circledast:OX,circledcirc:DX,circleddash:LX,CircleDot:FX,circledR:PX,circledS:IX,CircleMinus:BX,CirclePlus:RX,CircleTimes:zX,cir:VX,cirE:WX,cire:KX,cirfnint:UX,cirmid:HX,cirscir:qX,ClockwiseContourIntegral:jX,CloseCurlyDoubleQuote:ZX,CloseCurlyQuote:GX,clubs:JX,clubsuit:YX,colon:XX,Colon:QX,Colone:eQ,colone:tQ,coloneq:nQ,comma:rQ,commat:oQ,comp:iQ,compfn:sQ,complement:lQ,complexes:aQ,cong:cQ,congdot:uQ,Congruent:dQ,conint:fQ,Conint:hQ,ContourIntegral:gQ,copf:pQ,Copf:mQ,coprod:_Q,Coproduct:yQ,copy:vQ,COPY:CQ,copysr:bQ,CounterClockwiseContourIntegral:kQ,crarr:xQ,cross:SQ,Cross:wQ,Cscr:TQ,cscr:EQ,csub:NQ,csube:$Q,csup:AQ,csupe:MQ,ctdot:OQ,cudarrl:DQ,cudarrr:LQ,cuepr:FQ,cuesc:PQ,cularr:IQ,cularrp:BQ,cupbrcap:RQ,cupcap:zQ,CupCap:VQ,cup:WQ,Cup:KQ,cupcup:UQ,cupdot:HQ,cupor:qQ,cups:jQ,curarr:ZQ,curarrm:GQ,curlyeqprec:JQ,curlyeqsucc:YQ,curlyvee:XQ,curlywedge:QQ,curren:eee,curvearrowleft:tee,curvearrowright:nee,cuvee:ree,cuwed:oee,cwconint:iee,cwint:see,cylcty:lee,dagger:aee,Dagger:cee,daleth:uee,darr:dee,Darr:fee,dArr:hee,dash:gee,Dashv:pee,dashv:mee,dbkarow:_ee,dblac:yee,Dcaron:vee,dcaron:Cee,Dcy:bee,dcy:kee,ddagger:xee,ddarr:See,DD:wee,dd:Tee,DDotrahd:Eee,ddotseq:Nee,deg:$ee,Del:Aee,Delta:Mee,delta:Oee,demptyv:Dee,dfisht:Lee,Dfr:Fee,dfr:Pee,dHar:Iee,dharl:Bee,dharr:Ree,DiacriticalAcute:zee,DiacriticalDot:Vee,DiacriticalDoubleAcute:Wee,DiacriticalGrave:Kee,DiacriticalTilde:Uee,diam:Hee,diamond:qee,Diamond:jee,diamondsuit:Zee,diams:Gee,die:Jee,DifferentialD:Yee,digamma:Xee,disin:Qee,div:ete,divide:tte,divideontimes:nte,divonx:rte,DJcy:ote,djcy:ite,dlcorn:ste,dlcrop:lte,dollar:ate,Dopf:cte,dopf:ute,Dot:dte,dot:fte,DotDot:hte,doteq:gte,doteqdot:pte,DotEqual:mte,dotminus:_te,dotplus:yte,dotsquare:vte,doublebarwedge:Cte,DoubleContourIntegral:bte,DoubleDot:kte,DoubleDownArrow:xte,DoubleLeftArrow:Ste,DoubleLeftRightArrow:wte,DoubleLeftTee:Tte,DoubleLongLeftArrow:Ete,DoubleLongLeftRightArrow:Nte,DoubleLongRightArrow:$te,DoubleRightArrow:Ate,DoubleRightTee:Mte,DoubleUpArrow:Ote,DoubleUpDownArrow:Dte,DoubleVerticalBar:Lte,DownArrowBar:Fte,downarrow:Pte,DownArrow:Ite,Downarrow:Bte,DownArrowUpArrow:Rte,DownBreve:zte,downdownarrows:Vte,downharpoonleft:Wte,downharpoonright:Kte,DownLeftRightVector:Ute,DownLeftTeeVector:Hte,DownLeftVectorBar:qte,DownLeftVector:jte,DownRightTeeVector:Zte,DownRightVectorBar:Gte,DownRightVector:Jte,DownTeeArrow:Yte,DownTee:Xte,drbkarow:Qte,drcorn:ene,drcrop:tne,Dscr:nne,dscr:rne,DScy:one,dscy:ine,dsol:sne,Dstrok:lne,dstrok:ane,dtdot:cne,dtri:une,dtrif:dne,duarr:fne,duhar:hne,dwangle:gne,DZcy:pne,dzcy:mne,dzigrarr:_ne,Eacute:yne,eacute:vne,easter:Cne,Ecaron:bne,ecaron:kne,Ecirc:xne,ecirc:Sne,ecir:wne,ecolon:Tne,Ecy:Ene,ecy:Nne,eDDot:$ne,Edot:Ane,edot:Mne,eDot:One,ee:Dne,efDot:Lne,Efr:Fne,efr:Pne,eg:Ine,Egrave:Bne,egrave:Rne,egs:zne,egsdot:Vne,el:Wne,Element:Kne,elinters:Une,ell:Hne,els:qne,elsdot:jne,Emacr:Zne,emacr:Gne,empty:Jne,emptyset:Yne,EmptySmallSquare:Xne,emptyv:Qne,EmptyVerySmallSquare:ere,emsp13:tre,emsp14:nre,emsp:rre,ENG:ore,eng:ire,ensp:sre,Eogon:lre,eogon:are,Eopf:cre,eopf:ure,epar:dre,eparsl:fre,eplus:hre,epsi:gre,Epsilon:pre,epsilon:mre,epsiv:_re,eqcirc:yre,eqcolon:vre,eqsim:Cre,eqslantgtr:bre,eqslantless:kre,Equal:xre,equals:Sre,EqualTilde:wre,equest:Tre,Equilibrium:Ere,equiv:Nre,equivDD:$re,eqvparsl:Are,erarr:Mre,erDot:Ore,escr:Dre,Escr:Lre,esdot:Fre,Esim:Pre,esim:Ire,Eta:Bre,eta:Rre,ETH:zre,eth:Vre,Euml:Wre,euml:Kre,euro:Ure,excl:Hre,exist:qre,Exists:jre,expectation:Zre,exponentiale:Gre,ExponentialE:Jre,fallingdotseq:Yre,Fcy:Xre,fcy:Qre,female:eoe,ffilig:toe,fflig:noe,ffllig:roe,Ffr:ooe,ffr:ioe,filig:soe,FilledSmallSquare:loe,FilledVerySmallSquare:aoe,fjlig:coe,flat:uoe,fllig:doe,fltns:foe,fnof:hoe,Fopf:goe,fopf:poe,forall:moe,ForAll:_oe,fork:yoe,forkv:voe,Fouriertrf:Coe,fpartint:boe,frac12:koe,frac13:xoe,frac14:Soe,frac15:woe,frac16:Toe,frac18:Eoe,frac23:Noe,frac25:$oe,frac34:Aoe,frac35:Moe,frac38:Ooe,frac45:Doe,frac56:Loe,frac58:Foe,frac78:Poe,frasl:Ioe,frown:Boe,fscr:Roe,Fscr:zoe,gacute:Voe,Gamma:Woe,gamma:Koe,Gammad:Uoe,gammad:Hoe,gap:qoe,Gbreve:joe,gbreve:Zoe,Gcedil:Goe,Gcirc:Joe,gcirc:Yoe,Gcy:Xoe,gcy:Qoe,Gdot:eie,gdot:tie,ge:nie,gE:rie,gEl:oie,gel:iie,geq:sie,geqq:lie,geqslant:aie,gescc:cie,ges:uie,gesdot:die,gesdoto:fie,gesdotol:hie,gesl:gie,gesles:pie,Gfr:mie,gfr:_ie,gg:yie,Gg:vie,ggg:Cie,gimel:bie,GJcy:kie,gjcy:xie,gla:Sie,gl:wie,glE:Tie,glj:Eie,gnap:Nie,gnapprox:$ie,gne:Aie,gnE:Mie,gneq:Oie,gneqq:Die,gnsim:Lie,Gopf:Fie,gopf:Pie,grave:Iie,GreaterEqual:Bie,GreaterEqualLess:Rie,GreaterFullEqual:zie,GreaterGreater:Vie,GreaterLess:Wie,GreaterSlantEqual:Kie,GreaterTilde:Uie,Gscr:Hie,gscr:qie,gsim:jie,gsime:Zie,gsiml:Gie,gtcc:Jie,gtcir:Yie,gt:Xie,GT:Qie,Gt:ese,gtdot:tse,gtlPar:nse,gtquest:rse,gtrapprox:ose,gtrarr:ise,gtrdot:sse,gtreqless:lse,gtreqqless:ase,gtrless:cse,gtrsim:use,gvertneqq:dse,gvnE:fse,Hacek:hse,hairsp:gse,half:pse,hamilt:mse,HARDcy:_se,hardcy:yse,harrcir:vse,harr:Cse,hArr:bse,harrw:kse,Hat:xse,hbar:Sse,Hcirc:wse,hcirc:Tse,hearts:Ese,heartsuit:Nse,hellip:$se,hercon:Ase,hfr:Mse,Hfr:Ose,HilbertSpace:Dse,hksearow:Lse,hkswarow:Fse,hoarr:Pse,homtht:Ise,hookleftarrow:Bse,hookrightarrow:Rse,hopf:zse,Hopf:Vse,horbar:Wse,HorizontalLine:Kse,hscr:Use,Hscr:Hse,hslash:qse,Hstrok:jse,hstrok:Zse,HumpDownHump:Gse,HumpEqual:Jse,hybull:Yse,hyphen:Xse,Iacute:Qse,iacute:ele,ic:tle,Icirc:nle,icirc:rle,Icy:ole,icy:ile,Idot:sle,IEcy:lle,iecy:ale,iexcl:cle,iff:ule,ifr:dle,Ifr:fle,Igrave:hle,igrave:gle,ii:ple,iiiint:mle,iiint:_le,iinfin:yle,iiota:vle,IJlig:Cle,ijlig:ble,Imacr:kle,imacr:xle,image:Sle,ImaginaryI:wle,imagline:Tle,imagpart:Ele,imath:Nle,Im:$le,imof:Ale,imped:Mle,Implies:Ole,incare:Dle,in:"∈",infin:Lle,infintie:Fle,inodot:Ple,intcal:Ile,int:Ble,Int:Rle,integers:zle,Integral:Vle,intercal:Wle,Intersection:Kle,intlarhk:Ule,intprod:Hle,InvisibleComma:qle,InvisibleTimes:jle,IOcy:Zle,iocy:Gle,Iogon:Jle,iogon:Yle,Iopf:Xle,iopf:Qle,Iota:eae,iota:tae,iprod:nae,iquest:rae,iscr:oae,Iscr:iae,isin:sae,isindot:lae,isinE:aae,isins:cae,isinsv:uae,isinv:dae,it:fae,Itilde:hae,itilde:gae,Iukcy:pae,iukcy:mae,Iuml:_ae,iuml:yae,Jcirc:vae,jcirc:Cae,Jcy:bae,jcy:kae,Jfr:xae,jfr:Sae,jmath:wae,Jopf:Tae,jopf:Eae,Jscr:Nae,jscr:$ae,Jsercy:Aae,jsercy:Mae,Jukcy:Oae,jukcy:Dae,Kappa:Lae,kappa:Fae,kappav:Pae,Kcedil:Iae,kcedil:Bae,Kcy:Rae,kcy:zae,Kfr:Vae,kfr:Wae,kgreen:Kae,KHcy:Uae,khcy:Hae,KJcy:qae,kjcy:jae,Kopf:Zae,kopf:Gae,Kscr:Jae,kscr:Yae,lAarr:Xae,Lacute:Qae,lacute:ece,laemptyv:tce,lagran:nce,Lambda:rce,lambda:oce,lang:ice,Lang:sce,langd:lce,langle:ace,lap:cce,Laplacetrf:uce,laquo:dce,larrb:fce,larrbfs:hce,larr:gce,Larr:pce,lArr:mce,larrfs:_ce,larrhk:yce,larrlp:vce,larrpl:Cce,larrsim:bce,larrtl:kce,latail:xce,lAtail:Sce,lat:wce,late:Tce,lates:Ece,lbarr:Nce,lBarr:$ce,lbbrk:Ace,lbrace:Mce,lbrack:Oce,lbrke:Dce,lbrksld:Lce,lbrkslu:Fce,Lcaron:Pce,lcaron:Ice,Lcedil:Bce,lcedil:Rce,lceil:zce,lcub:Vce,Lcy:Wce,lcy:Kce,ldca:Uce,ldquo:Hce,ldquor:qce,ldrdhar:jce,ldrushar:Zce,ldsh:Gce,le:Jce,lE:Yce,LeftAngleBracket:Xce,LeftArrowBar:Qce,leftarrow:eue,LeftArrow:tue,Leftarrow:nue,LeftArrowRightArrow:rue,leftarrowtail:oue,LeftCeiling:iue,LeftDoubleBracket:sue,LeftDownTeeVector:lue,LeftDownVectorBar:aue,LeftDownVector:cue,LeftFloor:uue,leftharpoondown:due,leftharpoonup:fue,leftleftarrows:hue,leftrightarrow:gue,LeftRightArrow:pue,Leftrightarrow:mue,leftrightarrows:_ue,leftrightharpoons:yue,leftrightsquigarrow:vue,LeftRightVector:Cue,LeftTeeArrow:bue,LeftTee:kue,LeftTeeVector:xue,leftthreetimes:Sue,LeftTriangleBar:wue,LeftTriangle:Tue,LeftTriangleEqual:Eue,LeftUpDownVector:Nue,LeftUpTeeVector:$ue,LeftUpVectorBar:Aue,LeftUpVector:Mue,LeftVectorBar:Oue,LeftVector:Due,lEg:Lue,leg:Fue,leq:Pue,leqq:Iue,leqslant:Bue,lescc:Rue,les:zue,lesdot:Vue,lesdoto:Wue,lesdotor:Kue,lesg:Uue,lesges:Hue,lessapprox:que,lessdot:jue,lesseqgtr:Zue,lesseqqgtr:Gue,LessEqualGreater:Jue,LessFullEqual:Yue,LessGreater:Xue,lessgtr:Que,LessLess:ede,lesssim:tde,LessSlantEqual:nde,LessTilde:rde,lfisht:ode,lfloor:ide,Lfr:sde,lfr:lde,lg:ade,lgE:cde,lHar:ude,lhard:dde,lharu:fde,lharul:hde,lhblk:gde,LJcy:pde,ljcy:mde,llarr:_de,ll:yde,Ll:vde,llcorner:Cde,Lleftarrow:bde,llhard:kde,lltri:xde,Lmidot:Sde,lmidot:wde,lmoustache:Tde,lmoust:Ede,lnap:Nde,lnapprox:$de,lne:Ade,lnE:Mde,lneq:Ode,lneqq:Dde,lnsim:Lde,loang:Fde,loarr:Pde,lobrk:Ide,longleftarrow:Bde,LongLeftArrow:Rde,Longleftarrow:zde,longleftrightarrow:Vde,LongLeftRightArrow:Wde,Longleftrightarrow:Kde,longmapsto:Ude,longrightarrow:Hde,LongRightArrow:qde,Longrightarrow:jde,looparrowleft:Zde,looparrowright:Gde,lopar:Jde,Lopf:Yde,lopf:Xde,loplus:Qde,lotimes:efe,lowast:tfe,lowbar:nfe,LowerLeftArrow:rfe,LowerRightArrow:ofe,loz:ife,lozenge:sfe,lozf:lfe,lpar:afe,lparlt:cfe,lrarr:ufe,lrcorner:dfe,lrhar:ffe,lrhard:hfe,lrm:gfe,lrtri:pfe,lsaquo:mfe,lscr:_fe,Lscr:yfe,lsh:vfe,Lsh:Cfe,lsim:bfe,lsime:kfe,lsimg:xfe,lsqb:Sfe,lsquo:wfe,lsquor:Tfe,Lstrok:Efe,lstrok:Nfe,ltcc:$fe,ltcir:Afe,lt:Mfe,LT:Ofe,Lt:Dfe,ltdot:Lfe,lthree:Ffe,ltimes:Pfe,ltlarr:Ife,ltquest:Bfe,ltri:Rfe,ltrie:zfe,ltrif:Vfe,ltrPar:Wfe,lurdshar:Kfe,luruhar:Ufe,lvertneqq:Hfe,lvnE:qfe,macr:jfe,male:Zfe,malt:Gfe,maltese:Jfe,Map:"⤅",map:Yfe,mapsto:Xfe,mapstodown:Qfe,mapstoleft:ehe,mapstoup:the,marker:nhe,mcomma:rhe,Mcy:ohe,mcy:ihe,mdash:she,mDDot:lhe,measuredangle:ahe,MediumSpace:che,Mellintrf:uhe,Mfr:dhe,mfr:fhe,mho:hhe,micro:ghe,midast:phe,midcir:mhe,mid:_he,middot:yhe,minusb:vhe,minus:Che,minusd:bhe,minusdu:khe,MinusPlus:xhe,mlcp:She,mldr:whe,mnplus:The,models:Ehe,Mopf:Nhe,mopf:$he,mp:Ahe,mscr:Mhe,Mscr:Ohe,mstpos:Dhe,Mu:Lhe,mu:Fhe,multimap:Phe,mumap:Ihe,nabla:Bhe,Nacute:Rhe,nacute:zhe,nang:Vhe,nap:Whe,napE:Khe,napid:Uhe,napos:Hhe,napprox:qhe,natural:jhe,naturals:Zhe,natur:Ghe,nbsp:Jhe,nbump:Yhe,nbumpe:Xhe,ncap:Qhe,Ncaron:ege,ncaron:tge,Ncedil:nge,ncedil:rge,ncong:oge,ncongdot:ige,ncup:sge,Ncy:lge,ncy:age,ndash:cge,nearhk:uge,nearr:dge,neArr:fge,nearrow:hge,ne:gge,nedot:pge,NegativeMediumSpace:mge,NegativeThickSpace:_ge,NegativeThinSpace:yge,NegativeVeryThinSpace:vge,nequiv:Cge,nesear:bge,nesim:kge,NestedGreaterGreater:xge,NestedLessLess:Sge,NewLine:wge,nexist:Tge,nexists:Ege,Nfr:Nge,nfr:$ge,ngE:Age,nge:Mge,ngeq:Oge,ngeqq:Dge,ngeqslant:Lge,nges:Fge,nGg:Pge,ngsim:Ige,nGt:Bge,ngt:Rge,ngtr:zge,nGtv:Vge,nharr:Wge,nhArr:Kge,nhpar:Uge,ni:Hge,nis:qge,nisd:jge,niv:Zge,NJcy:Gge,njcy:Jge,nlarr:Yge,nlArr:Xge,nldr:Qge,nlE:epe,nle:tpe,nleftarrow:npe,nLeftarrow:rpe,nleftrightarrow:ope,nLeftrightarrow:ipe,nleq:spe,nleqq:lpe,nleqslant:ape,nles:cpe,nless:upe,nLl:dpe,nlsim:fpe,nLt:hpe,nlt:gpe,nltri:ppe,nltrie:mpe,nLtv:_pe,nmid:ype,NoBreak:vpe,NonBreakingSpace:Cpe,nopf:bpe,Nopf:kpe,Not:xpe,not:Spe,NotCongruent:wpe,NotCupCap:Tpe,NotDoubleVerticalBar:Epe,NotElement:Npe,NotEqual:$pe,NotEqualTilde:Ape,NotExists:Mpe,NotGreater:Ope,NotGreaterEqual:Dpe,NotGreaterFullEqual:Lpe,NotGreaterGreater:Fpe,NotGreaterLess:Ppe,NotGreaterSlantEqual:Ipe,NotGreaterTilde:Bpe,NotHumpDownHump:Rpe,NotHumpEqual:zpe,notin:Vpe,notindot:Wpe,notinE:Kpe,notinva:Upe,notinvb:Hpe,notinvc:qpe,NotLeftTriangleBar:jpe,NotLeftTriangle:Zpe,NotLeftTriangleEqual:Gpe,NotLess:Jpe,NotLessEqual:Ype,NotLessGreater:Xpe,NotLessLess:Qpe,NotLessSlantEqual:e1e,NotLessTilde:t1e,NotNestedGreaterGreater:n1e,NotNestedLessLess:r1e,notni:o1e,notniva:i1e,notnivb:s1e,notnivc:l1e,NotPrecedes:a1e,NotPrecedesEqual:c1e,NotPrecedesSlantEqual:u1e,NotReverseElement:d1e,NotRightTriangleBar:f1e,NotRightTriangle:h1e,NotRightTriangleEqual:g1e,NotSquareSubset:p1e,NotSquareSubsetEqual:m1e,NotSquareSuperset:_1e,NotSquareSupersetEqual:y1e,NotSubset:v1e,NotSubsetEqual:C1e,NotSucceeds:b1e,NotSucceedsEqual:k1e,NotSucceedsSlantEqual:x1e,NotSucceedsTilde:S1e,NotSuperset:w1e,NotSupersetEqual:T1e,NotTilde:E1e,NotTildeEqual:N1e,NotTildeFullEqual:$1e,NotTildeTilde:A1e,NotVerticalBar:M1e,nparallel:O1e,npar:D1e,nparsl:L1e,npart:F1e,npolint:P1e,npr:I1e,nprcue:B1e,nprec:R1e,npreceq:z1e,npre:V1e,nrarrc:W1e,nrarr:K1e,nrArr:U1e,nrarrw:H1e,nrightarrow:q1e,nRightarrow:j1e,nrtri:Z1e,nrtrie:G1e,nsc:J1e,nsccue:Y1e,nsce:X1e,Nscr:Q1e,nscr:eme,nshortmid:tme,nshortparallel:nme,nsim:rme,nsime:ome,nsimeq:ime,nsmid:sme,nspar:lme,nsqsube:ame,nsqsupe:cme,nsub:ume,nsubE:dme,nsube:fme,nsubset:hme,nsubseteq:gme,nsubseteqq:pme,nsucc:mme,nsucceq:_me,nsup:yme,nsupE:vme,nsupe:Cme,nsupset:bme,nsupseteq:kme,nsupseteqq:xme,ntgl:Sme,Ntilde:wme,ntilde:Tme,ntlg:Eme,ntriangleleft:Nme,ntrianglelefteq:$me,ntriangleright:Ame,ntrianglerighteq:Mme,Nu:Ome,nu:Dme,num:Lme,numero:Fme,numsp:Pme,nvap:Ime,nvdash:Bme,nvDash:Rme,nVdash:zme,nVDash:Vme,nvge:Wme,nvgt:Kme,nvHarr:Ume,nvinfin:Hme,nvlArr:qme,nvle:jme,nvlt:Zme,nvltrie:Gme,nvrArr:Jme,nvrtrie:Yme,nvsim:Xme,nwarhk:Qme,nwarr:e_e,nwArr:t_e,nwarrow:n_e,nwnear:r_e,Oacute:o_e,oacute:i_e,oast:s_e,Ocirc:l_e,ocirc:a_e,ocir:c_e,Ocy:u_e,ocy:d_e,odash:f_e,Odblac:h_e,odblac:g_e,odiv:p_e,odot:m_e,odsold:__e,OElig:y_e,oelig:v_e,ofcir:C_e,Ofr:b_e,ofr:k_e,ogon:x_e,Ograve:S_e,ograve:w_e,ogt:T_e,ohbar:E_e,ohm:N_e,oint:$_e,olarr:A_e,olcir:M_e,olcross:O_e,oline:D_e,olt:L_e,Omacr:F_e,omacr:P_e,Omega:I_e,omega:B_e,Omicron:R_e,omicron:z_e,omid:V_e,ominus:W_e,Oopf:K_e,oopf:U_e,opar:H_e,OpenCurlyDoubleQuote:q_e,OpenCurlyQuote:j_e,operp:Z_e,oplus:G_e,orarr:J_e,Or:Y_e,or:X_e,ord:Q_e,order:e0e,orderof:t0e,ordf:n0e,ordm:r0e,origof:o0e,oror:i0e,orslope:s0e,orv:l0e,oS:a0e,Oscr:c0e,oscr:u0e,Oslash:d0e,oslash:f0e,osol:h0e,Otilde:g0e,otilde:p0e,otimesas:m0e,Otimes:_0e,otimes:y0e,Ouml:v0e,ouml:C0e,ovbar:b0e,OverBar:k0e,OverBrace:x0e,OverBracket:S0e,OverParenthesis:w0e,para:T0e,parallel:E0e,par:N0e,parsim:$0e,parsl:A0e,part:M0e,PartialD:O0e,Pcy:D0e,pcy:L0e,percnt:F0e,period:P0e,permil:I0e,perp:B0e,pertenk:R0e,Pfr:z0e,pfr:V0e,Phi:W0e,phi:K0e,phiv:U0e,phmmat:H0e,phone:q0e,Pi:j0e,pi:Z0e,pitchfork:G0e,piv:J0e,planck:Y0e,planckh:X0e,plankv:Q0e,plusacir:eye,plusb:tye,pluscir:nye,plus:rye,plusdo:oye,plusdu:iye,pluse:sye,PlusMinus:lye,plusmn:aye,plussim:cye,plustwo:uye,pm:dye,Poincareplane:fye,pointint:hye,popf:gye,Popf:pye,pound:mye,prap:_ye,Pr:yye,pr:vye,prcue:Cye,precapprox:bye,prec:kye,preccurlyeq:xye,Precedes:Sye,PrecedesEqual:wye,PrecedesSlantEqual:Tye,PrecedesTilde:Eye,preceq:Nye,precnapprox:$ye,precneqq:Aye,precnsim:Mye,pre:Oye,prE:Dye,precsim:Lye,prime:Fye,Prime:Pye,primes:Iye,prnap:Bye,prnE:Rye,prnsim:zye,prod:Vye,Product:Wye,profalar:Kye,profline:Uye,profsurf:Hye,prop:qye,Proportional:jye,Proportion:Zye,propto:Gye,prsim:Jye,prurel:Yye,Pscr:Xye,pscr:Qye,Psi:eve,psi:tve,puncsp:nve,Qfr:rve,qfr:ove,qint:ive,qopf:sve,Qopf:lve,qprime:ave,Qscr:cve,qscr:uve,quaternions:dve,quatint:fve,quest:hve,questeq:gve,quot:pve,QUOT:mve,rAarr:_ve,race:yve,Racute:vve,racute:Cve,radic:bve,raemptyv:kve,rang:xve,Rang:Sve,rangd:wve,range:Tve,rangle:Eve,raquo:Nve,rarrap:$ve,rarrb:Ave,rarrbfs:Mve,rarrc:Ove,rarr:Dve,Rarr:Lve,rArr:Fve,rarrfs:Pve,rarrhk:Ive,rarrlp:Bve,rarrpl:Rve,rarrsim:zve,Rarrtl:Vve,rarrtl:Wve,rarrw:Kve,ratail:Uve,rAtail:Hve,ratio:qve,rationals:jve,rbarr:Zve,rBarr:Gve,RBarr:Jve,rbbrk:Yve,rbrace:Xve,rbrack:Qve,rbrke:e2e,rbrksld:t2e,rbrkslu:n2e,Rcaron:r2e,rcaron:o2e,Rcedil:i2e,rcedil:s2e,rceil:l2e,rcub:a2e,Rcy:c2e,rcy:u2e,rdca:d2e,rdldhar:f2e,rdquo:h2e,rdquor:g2e,rdsh:p2e,real:m2e,realine:_2e,realpart:y2e,reals:v2e,Re:C2e,rect:b2e,reg:k2e,REG:x2e,ReverseElement:S2e,ReverseEquilibrium:w2e,ReverseUpEquilibrium:T2e,rfisht:E2e,rfloor:N2e,rfr:$2e,Rfr:A2e,rHar:M2e,rhard:O2e,rharu:D2e,rharul:L2e,Rho:F2e,rho:P2e,rhov:I2e,RightAngleBracket:B2e,RightArrowBar:R2e,rightarrow:z2e,RightArrow:V2e,Rightarrow:W2e,RightArrowLeftArrow:K2e,rightarrowtail:U2e,RightCeiling:H2e,RightDoubleBracket:q2e,RightDownTeeVector:j2e,RightDownVectorBar:Z2e,RightDownVector:G2e,RightFloor:J2e,rightharpoondown:Y2e,rightharpoonup:X2e,rightleftarrows:Q2e,rightleftharpoons:eCe,rightrightarrows:tCe,rightsquigarrow:nCe,RightTeeArrow:rCe,RightTee:oCe,RightTeeVector:iCe,rightthreetimes:sCe,RightTriangleBar:lCe,RightTriangle:aCe,RightTriangleEqual:cCe,RightUpDownVector:uCe,RightUpTeeVector:dCe,RightUpVectorBar:fCe,RightUpVector:hCe,RightVectorBar:gCe,RightVector:pCe,ring:mCe,risingdotseq:_Ce,rlarr:yCe,rlhar:vCe,rlm:CCe,rmoustache:bCe,rmoust:kCe,rnmid:xCe,roang:SCe,roarr:wCe,robrk:TCe,ropar:ECe,ropf:NCe,Ropf:$Ce,roplus:ACe,rotimes:MCe,RoundImplies:OCe,rpar:DCe,rpargt:LCe,rppolint:FCe,rrarr:PCe,Rrightarrow:ICe,rsaquo:BCe,rscr:RCe,Rscr:zCe,rsh:VCe,Rsh:WCe,rsqb:KCe,rsquo:UCe,rsquor:HCe,rthree:qCe,rtimes:jCe,rtri:ZCe,rtrie:GCe,rtrif:JCe,rtriltri:YCe,RuleDelayed:XCe,ruluhar:QCe,rx:ebe,Sacute:tbe,sacute:nbe,sbquo:rbe,scap:obe,Scaron:ibe,scaron:sbe,Sc:lbe,sc:abe,sccue:cbe,sce:ube,scE:dbe,Scedil:fbe,scedil:hbe,Scirc:gbe,scirc:pbe,scnap:mbe,scnE:_be,scnsim:ybe,scpolint:vbe,scsim:Cbe,Scy:bbe,scy:kbe,sdotb:xbe,sdot:Sbe,sdote:wbe,searhk:Tbe,searr:Ebe,seArr:Nbe,searrow:$be,sect:Abe,semi:Mbe,seswar:Obe,setminus:Dbe,setmn:Lbe,sext:Fbe,Sfr:Pbe,sfr:Ibe,sfrown:Bbe,sharp:Rbe,SHCHcy:zbe,shchcy:Vbe,SHcy:Wbe,shcy:Kbe,ShortDownArrow:Ube,ShortLeftArrow:Hbe,shortmid:qbe,shortparallel:jbe,ShortRightArrow:Zbe,ShortUpArrow:Gbe,shy:Jbe,Sigma:Ybe,sigma:Xbe,sigmaf:Qbe,sigmav:eke,sim:tke,simdot:nke,sime:rke,simeq:oke,simg:ike,simgE:ske,siml:lke,simlE:ake,simne:cke,simplus:uke,simrarr:dke,slarr:fke,SmallCircle:hke,smallsetminus:gke,smashp:pke,smeparsl:mke,smid:_ke,smile:yke,smt:vke,smte:Cke,smtes:bke,SOFTcy:kke,softcy:xke,solbar:Ske,solb:wke,sol:Tke,Sopf:Eke,sopf:Nke,spades:$ke,spadesuit:Ake,spar:Mke,sqcap:Oke,sqcaps:Dke,sqcup:Lke,sqcups:Fke,Sqrt:Pke,sqsub:Ike,sqsube:Bke,sqsubset:Rke,sqsubseteq:zke,sqsup:Vke,sqsupe:Wke,sqsupset:Kke,sqsupseteq:Uke,square:Hke,Square:qke,SquareIntersection:jke,SquareSubset:Zke,SquareSubsetEqual:Gke,SquareSuperset:Jke,SquareSupersetEqual:Yke,SquareUnion:Xke,squarf:Qke,squ:e3e,squf:t3e,srarr:n3e,Sscr:r3e,sscr:o3e,ssetmn:i3e,ssmile:s3e,sstarf:l3e,Star:a3e,star:c3e,starf:u3e,straightepsilon:d3e,straightphi:f3e,strns:h3e,sub:g3e,Sub:p3e,subdot:m3e,subE:_3e,sube:y3e,subedot:v3e,submult:C3e,subnE:b3e,subne:k3e,subplus:x3e,subrarr:S3e,subset:w3e,Subset:T3e,subseteq:E3e,subseteqq:N3e,SubsetEqual:$3e,subsetneq:A3e,subsetneqq:M3e,subsim:O3e,subsub:D3e,subsup:L3e,succapprox:F3e,succ:P3e,succcurlyeq:I3e,Succeeds:B3e,SucceedsEqual:R3e,SucceedsSlantEqual:z3e,SucceedsTilde:V3e,succeq:W3e,succnapprox:K3e,succneqq:U3e,succnsim:H3e,succsim:q3e,SuchThat:j3e,sum:Z3e,Sum:G3e,sung:J3e,sup1:Y3e,sup2:X3e,sup3:Q3e,sup:exe,Sup:txe,supdot:nxe,supdsub:rxe,supE:oxe,supe:ixe,supedot:sxe,Superset:lxe,SupersetEqual:axe,suphsol:cxe,suphsub:uxe,suplarr:dxe,supmult:fxe,supnE:hxe,supne:gxe,supplus:pxe,supset:mxe,Supset:_xe,supseteq:yxe,supseteqq:vxe,supsetneq:Cxe,supsetneqq:bxe,supsim:kxe,supsub:xxe,supsup:Sxe,swarhk:wxe,swarr:Txe,swArr:Exe,swarrow:Nxe,swnwar:$xe,szlig:Axe,Tab:Mxe,target:Oxe,Tau:Dxe,tau:Lxe,tbrk:Fxe,Tcaron:Pxe,tcaron:Ixe,Tcedil:Bxe,tcedil:Rxe,Tcy:zxe,tcy:Vxe,tdot:Wxe,telrec:Kxe,Tfr:Uxe,tfr:Hxe,there4:qxe,therefore:jxe,Therefore:Zxe,Theta:Gxe,theta:Jxe,thetasym:Yxe,thetav:Xxe,thickapprox:Qxe,thicksim:e5e,ThickSpace:t5e,ThinSpace:n5e,thinsp:r5e,thkap:o5e,thksim:i5e,THORN:s5e,thorn:l5e,tilde:a5e,Tilde:c5e,TildeEqual:u5e,TildeFullEqual:d5e,TildeTilde:f5e,timesbar:h5e,timesb:g5e,times:p5e,timesd:m5e,tint:_5e,toea:y5e,topbot:v5e,topcir:C5e,top:b5e,Topf:k5e,topf:x5e,topfork:S5e,tosa:w5e,tprime:T5e,trade:E5e,TRADE:N5e,triangle:$5e,triangledown:A5e,triangleleft:M5e,trianglelefteq:O5e,triangleq:D5e,triangleright:L5e,trianglerighteq:F5e,tridot:P5e,trie:I5e,triminus:B5e,TripleDot:R5e,triplus:z5e,trisb:V5e,tritime:W5e,trpezium:K5e,Tscr:U5e,tscr:H5e,TScy:q5e,tscy:j5e,TSHcy:Z5e,tshcy:G5e,Tstrok:J5e,tstrok:Y5e,twixt:X5e,twoheadleftarrow:Q5e,twoheadrightarrow:eSe,Uacute:tSe,uacute:nSe,uarr:rSe,Uarr:oSe,uArr:iSe,Uarrocir:sSe,Ubrcy:lSe,ubrcy:aSe,Ubreve:cSe,ubreve:uSe,Ucirc:dSe,ucirc:fSe,Ucy:hSe,ucy:gSe,udarr:pSe,Udblac:mSe,udblac:_Se,udhar:ySe,ufisht:vSe,Ufr:CSe,ufr:bSe,Ugrave:kSe,ugrave:xSe,uHar:SSe,uharl:wSe,uharr:TSe,uhblk:ESe,ulcorn:NSe,ulcorner:$Se,ulcrop:ASe,ultri:MSe,Umacr:OSe,umacr:DSe,uml:LSe,UnderBar:FSe,UnderBrace:PSe,UnderBracket:ISe,UnderParenthesis:BSe,Union:RSe,UnionPlus:zSe,Uogon:VSe,uogon:WSe,Uopf:KSe,uopf:USe,UpArrowBar:HSe,uparrow:qSe,UpArrow:jSe,Uparrow:ZSe,UpArrowDownArrow:GSe,updownarrow:JSe,UpDownArrow:YSe,Updownarrow:XSe,UpEquilibrium:QSe,upharpoonleft:e7e,upharpoonright:t7e,uplus:n7e,UpperLeftArrow:r7e,UpperRightArrow:o7e,upsi:i7e,Upsi:s7e,upsih:l7e,Upsilon:a7e,upsilon:c7e,UpTeeArrow:u7e,UpTee:d7e,upuparrows:f7e,urcorn:h7e,urcorner:g7e,urcrop:p7e,Uring:m7e,uring:_7e,urtri:y7e,Uscr:v7e,uscr:C7e,utdot:b7e,Utilde:k7e,utilde:x7e,utri:S7e,utrif:w7e,uuarr:T7e,Uuml:E7e,uuml:N7e,uwangle:$7e,vangrt:A7e,varepsilon:M7e,varkappa:O7e,varnothing:D7e,varphi:L7e,varpi:F7e,varpropto:P7e,varr:I7e,vArr:B7e,varrho:R7e,varsigma:z7e,varsubsetneq:V7e,varsubsetneqq:W7e,varsupsetneq:K7e,varsupsetneqq:U7e,vartheta:H7e,vartriangleleft:q7e,vartriangleright:j7e,vBar:Z7e,Vbar:G7e,vBarv:J7e,Vcy:Y7e,vcy:X7e,vdash:Q7e,vDash:ewe,Vdash:twe,VDash:nwe,Vdashl:rwe,veebar:owe,vee:iwe,Vee:swe,veeeq:lwe,vellip:awe,verbar:cwe,Verbar:uwe,vert:dwe,Vert:fwe,VerticalBar:hwe,VerticalLine:gwe,VerticalSeparator:pwe,VerticalTilde:mwe,VeryThinSpace:_we,Vfr:ywe,vfr:vwe,vltri:Cwe,vnsub:bwe,vnsup:kwe,Vopf:xwe,vopf:Swe,vprop:wwe,vrtri:Twe,Vscr:Ewe,vscr:Nwe,vsubnE:$we,vsubne:Awe,vsupnE:Mwe,vsupne:Owe,Vvdash:Dwe,vzigzag:Lwe,Wcirc:Fwe,wcirc:Pwe,wedbar:Iwe,wedge:Bwe,Wedge:Rwe,wedgeq:zwe,weierp:Vwe,Wfr:Wwe,wfr:Kwe,Wopf:Uwe,wopf:Hwe,wp:qwe,wr:jwe,wreath:Zwe,Wscr:Gwe,wscr:Jwe,xcap:Ywe,xcirc:Xwe,xcup:Qwe,xdtri:eTe,Xfr:tTe,xfr:nTe,xharr:rTe,xhArr:oTe,Xi:iTe,xi:sTe,xlarr:lTe,xlArr:aTe,xmap:cTe,xnis:uTe,xodot:dTe,Xopf:fTe,xopf:hTe,xoplus:gTe,xotime:pTe,xrarr:mTe,xrArr:_Te,Xscr:yTe,xscr:vTe,xsqcup:CTe,xuplus:bTe,xutri:kTe,xvee:xTe,xwedge:STe,Yacute:wTe,yacute:TTe,YAcy:ETe,yacy:NTe,Ycirc:$Te,ycirc:ATe,Ycy:MTe,ycy:OTe,yen:DTe,Yfr:LTe,yfr:FTe,YIcy:PTe,yicy:ITe,Yopf:BTe,yopf:RTe,Yscr:zTe,yscr:VTe,YUcy:WTe,yucy:KTe,yuml:UTe,Yuml:HTe,Zacute:qTe,zacute:jTe,Zcaron:ZTe,zcaron:GTe,Zcy:JTe,zcy:YTe,Zdot:XTe,zdot:QTe,zeetrf:eEe,ZeroWidthSpace:tEe,Zeta:nEe,zeta:rEe,zfr:oEe,Zfr:iEe,ZHcy:sEe,zhcy:lEe,zigrarr:aEe,zopf:cEe,Zopf:uEe,Zscr:dEe,zscr:fEe,zwj:hEe,zwnj:gEe};var a6=pEe,Pk=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Kd={},U5={};function mEe(n){var e,t,r=U5[n];if(r)return r;for(r=U5[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?r.push(t):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<n.length;e++)r[n.charCodeAt(e)]=n[e];return r}function b0(n,e,t){var r,o,i,s,l,a="";for(typeof e!="string"&&(t=e,e=b0.defaultChars),typeof t>"u"&&(t=!0),l=mEe(e),r=0,o=n.length;r<o;r++){if(i=n.charCodeAt(r),t&&i===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(n.slice(r+1,r+3))){a+=n.slice(r,r+3),r+=2;continue}if(i<128){a+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o&&(s=n.charCodeAt(r+1),s>=56320&&s<=57343)){a+=encodeURIComponent(n[r]+n[r+1]),r++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(n[r])}return a}b0.defaultChars=";/?:@&=+$,-_.!~*'()#";b0.componentChars="-_.!~*'()";var _Ee=b0,H5={};function yEe(n){var e,t,r=H5[n];if(r)return r;for(r=H5[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),r.push(t);for(e=0;e<n.length;e++)t=n.charCodeAt(e),r[t]="%"+("0"+t.toString(16).toUpperCase()).slice(-2);return r}function k0(n,e){var t;return typeof e!="string"&&(e=k0.defaultChars),t=yEe(e),n.replace(/(%[a-f0-9]{2})+/gi,function(r){var o,i,s,l,a,c,d,h="";for(o=0,i=r.length;o<i;o+=3){if(s=parseInt(r.slice(o+1,o+3),16),s<128){h+=t[s];continue}if((s&224)===192&&o+3<i&&(l=parseInt(r.slice(o+4,o+6),16),(l&192)===128)){d=s<<6&1984|l&63,d<128?h+="��":h+=String.fromCharCode(d),o+=3;continue}if((s&240)===224&&o+6<i&&(l=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),(l&192)===128&&(a&192)===128)){d=s<<12&61440|l<<6&4032|a&63,d<2048||d>=55296&&d<=57343?h+="���":h+=String.fromCharCode(d),o+=6;continue}if((s&248)===240&&o+9<i&&(l=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),c=parseInt(r.slice(o+10,o+12),16),(l&192)===128&&(a&192)===128&&(c&192)===128)){d=s<<18&1835008|l<<12&258048|a<<6&4032|c&63,d<65536||d>1114111?h+="����":(d-=65536,h+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}h+="�"}return h})}k0.defaultChars=";/?:@&=+$,#";k0.componentChars="";var vEe=k0,CEe=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t};function lm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var bEe=/^([a-z0-9.+-]+:)/i,kEe=/:[0-9]*$/,xEe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,SEe=["<",">",'"',"`"," ","\r",`
3
+ `," "],wEe=["{","}","|","\\","^","`"].concat(SEe),TEe=["'"].concat(wEe),q5=["%","/","?",";","#"].concat(TEe),j5=["/","?","#"],EEe=255,Z5=/^[+a-z0-9A-Z_-]{0,63}$/,NEe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,G5={javascript:!0,"javascript:":!0},J5={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function $Ee(n,e){if(n&&n instanceof lm)return n;var t=new lm;return t.parse(n,e),t}lm.prototype.parse=function(n,e){var t,r,o,i,s,l=n;if(l=l.trim(),!e&&n.split("#").length===1){var a=xEe.exec(l);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var c=bEe.exec(l);if(c&&(c=c[0],o=c.toLowerCase(),this.protocol=c,l=l.substr(c.length)),(e||c||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=l.substr(0,2)==="//",s&&!(c&&G5[c])&&(l=l.substr(2),this.slashes=!0)),!G5[c]&&(s||c&&!J5[c])){var d=-1;for(t=0;t<j5.length;t++)i=l.indexOf(j5[t]),i!==-1&&(d===-1||i<d)&&(d=i);var h,f;for(d===-1?f=l.lastIndexOf("@"):f=l.lastIndexOf("@",d),f!==-1&&(h=l.slice(0,f),l=l.slice(f+1),this.auth=h),d=-1,t=0;t<q5.length;t++)i=l.indexOf(q5[t]),i!==-1&&(d===-1||i<d)&&(d=i);d===-1&&(d=l.length),l[d-1]===":"&&d--;var g=l.slice(0,d);l=l.slice(d),this.parseHost(g),this.hostname=this.hostname||"";var p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){var m=this.hostname.split(/\./);for(t=0,r=m.length;t<r;t++){var _=m[t];if(_&&!_.match(Z5)){for(var C="",y=0,v=_.length;y<v;y++)_.charCodeAt(y)>127?C+="x":C+=_[y];if(!C.match(Z5)){var k=m.slice(0,t),x=m.slice(t+1),b=_.match(NEe);b&&(k.push(b[1]),x.unshift(b[2])),x.length&&(l=x.join(".")+l),this.hostname=k.join(".");break}}}}this.hostname.length>EEe&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var T=l.indexOf("#");T!==-1&&(this.hash=l.substr(T),l=l.slice(0,T));var w=l.indexOf("?");return w!==-1&&(this.search=l.substr(w),l=l.slice(0,w)),l&&(this.pathname=l),J5[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};lm.prototype.parseHost=function(n){var e=kEe.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var AEe=$Ee;Kd.encode=_Ee;Kd.decode=vEe;Kd.format=CEe;Kd.parse=AEe;var Ta={},qy,Y5;function c6(){return Y5||(Y5=1,qy=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),qy}var jy,X5;function u6(){return X5||(X5=1,jy=/[\0-\x1F\x7F-\x9F]/),jy}var Zy,Q5;function MEe(){return Q5||(Q5=1,Zy=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Zy}var Gy,eS;function d6(){return eS||(eS=1,Gy=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Gy}var tS;function OEe(){return tS||(tS=1,Ta.Any=c6(),Ta.Cc=u6(),Ta.Cf=MEe(),Ta.P=Pk,Ta.Z=d6()),Ta}(function(n){function e(A){return Object.prototype.toString.call(A)}function t(A){return e(A)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(A,F){return r.call(A,F)}function i(A){var F=Array.prototype.slice.call(arguments,1);return F.forEach(function(P){if(P){if(typeof P!="object")throw new TypeError(P+"must be object");Object.keys(P).forEach(function(z){A[z]=P[z]})}}),A}function s(A,F,P){return[].concat(A.slice(0,F),P,A.slice(F+1))}function l(A){return!(A>=55296&&A<=57343||A>=64976&&A<=65007||(A&65535)===65535||(A&65535)===65534||A>=0&&A<=8||A===11||A>=14&&A<=31||A>=127&&A<=159||A>1114111)}function a(A){if(A>65535){A-=65536;var F=55296+(A>>10),P=56320+(A&1023);return String.fromCharCode(F,P)}return String.fromCharCode(A)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(c.source+"|"+d.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,g=a6;function p(A,F){var P;return o(g,F)?g[F]:F.charCodeAt(0)===35&&f.test(F)&&(P=F[1].toLowerCase()==="x"?parseInt(F.slice(2),16):parseInt(F.slice(1),10),l(P))?a(P):A}function m(A){return A.indexOf("\\")<0?A:A.replace(c,"$1")}function _(A){return A.indexOf("\\")<0&&A.indexOf("&")<0?A:A.replace(h,function(F,P,z){return P||p(F,z)})}var C=/[&<>"]/,y=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function k(A){return v[A]}function x(A){return C.test(A)?A.replace(y,k):A}var b=/[.?*+^$[\]\\(){}|-]/g;function T(A){return A.replace(b,"\\$&")}function w(A){switch(A){case 9:case 32:return!0}return!1}function S(A){if(A>=8192&&A<=8202)return!0;switch(A){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var N=Pk;function $(A){return N.test(A)}function O(A){switch(A){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(A){return A=A.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(A=A.replace(/ẞ/g,"ß")),A.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Kd,n.lib.ucmicro=OEe(),n.assign=i,n.isString=t,n.has=o,n.unescapeMd=m,n.unescapeAll=_,n.isValidEntityCode=l,n.fromCodePoint=a,n.escapeHtml=x,n.arrayReplaceAt=s,n.isSpace=w,n.isWhiteSpace=S,n.isMdAsciiPunct=O,n.isPunctChar=$,n.escapeRE=T,n.normalizeReference=M})(Ye);var x0={},DEe=function(e,t,r){var o,i,s,l,a=-1,c=e.posMax,d=e.pos;for(e.pos=t+1,o=1;e.pos<c;){if(s=e.src.charCodeAt(e.pos),s===93&&(o--,o===0)){i=!0;break}if(l=e.pos,e.md.inline.skipToken(e),s===91){if(l===e.pos-1)o++;else if(r)return e.pos=d,-1}}return i&&(a=e.pos),e.pos=d,a},nS=Ye.unescapeAll,LEe=function(e,t,r){var o,i,s=t,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(s)===60){for(s++;s<r;){if(o=e.charCodeAt(s),o===10||o===60)return l;if(o===62)return l.pos=s+1,l.str=nS(e.slice(t+1,s)),l.ok=!0,l;if(o===92&&s+1<r){s+=2;continue}s++}return l}for(i=0;s<r&&(o=e.charCodeAt(s),!(o===32||o<32||o===127));){if(o===92&&s+1<r){if(e.charCodeAt(s+1)===32)break;s+=2;continue}if(o===40&&(i++,i>32))return l;if(o===41){if(i===0)break;i--}s++}return t===s||i!==0||(l.str=nS(e.slice(t,s)),l.pos=s,l.ok=!0),l},FEe=Ye.unescapeAll,PEe=function(e,t,r){var o,i,s=0,l=t,a={ok:!1,pos:0,lines:0,str:""};if(l>=r||(i=e.charCodeAt(l),i!==34&&i!==39&&i!==40))return a;for(l++,i===40&&(i=41);l<r;){if(o=e.charCodeAt(l),o===i)return a.pos=l+1,a.lines=s,a.str=FEe(e.slice(t+1,l)),a.ok=!0,a;if(o===40&&i===41)return a;o===10?s++:o===92&&l+1<r&&(l++,e.charCodeAt(l)===10&&s++),l++}return a};x0.parseLinkLabel=DEe;x0.parseLinkDestination=LEe;x0.parseLinkTitle=PEe;var IEe=Ye.assign,BEe=Ye.unescapeAll,yc=Ye.escapeHtml,Vi={};Vi.code_inline=function(n,e,t,r,o){var i=n[e];return"<code"+o.renderAttrs(i)+">"+yc(i.content)+"</code>"};Vi.code_block=function(n,e,t,r,o){var i=n[e];return"<pre"+o.renderAttrs(i)+"><code>"+yc(n[e].content)+`</code></pre>
4
+ `};Vi.fence=function(n,e,t,r,o){var i=n[e],s=i.info?BEe(i.info).trim():"",l="",a="",c,d,h,f,g;return s&&(h=s.split(/(\s+)/g),l=h[0],a=h.slice(2).join("")),t.highlight?c=t.highlight(i.content,l,a)||yc(i.content):c=yc(i.content),c.indexOf("<pre")===0?c+`
5
+ `:s?(d=i.attrIndex("class"),f=i.attrs?i.attrs.slice():[],d<0?f.push(["class",t.langPrefix+l]):(f[d]=f[d].slice(),f[d][1]+=" "+t.langPrefix+l),g={attrs:f},"<pre><code"+o.renderAttrs(g)+">"+c+`</code></pre>
6
+ `):"<pre><code"+o.renderAttrs(i)+">"+c+`</code></pre>
7
+ `};Vi.image=function(n,e,t,r,o){var i=n[e];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,t,r),o.renderToken(n,e,t)};Vi.hardbreak=function(n,e,t){return t.xhtmlOut?`<br />
8
+ `:`<br>
9
+ `};Vi.softbreak=function(n,e,t){return t.breaks?t.xhtmlOut?`<br />
10
+ `:`<br>
11
+ `:`
12
+ `};Vi.text=function(n,e){return yc(n[e].content)};Vi.html_block=function(n,e){return n[e].content};Vi.html_inline=function(n,e){return n[e].content};function Ud(){this.rules=IEe({},Vi)}Ud.prototype.renderAttrs=function(e){var t,r,o;if(!e.attrs)return"";for(o="",t=0,r=e.attrs.length;t<r;t++)o+=" "+yc(e.attrs[t][0])+'="'+yc(e.attrs[t][1])+'"';return o};Ud.prototype.renderToken=function(e,t,r){var o,i="",s=!1,l=e[t];return l.hidden?"":(l.block&&l.nesting!==-1&&t&&e[t-1].hidden&&(i+=`
13
+ `),i+=(l.nesting===-1?"</":"<")+l.tag,i+=this.renderAttrs(l),l.nesting===0&&r.xhtmlOut&&(i+=" /"),l.block&&(s=!0,l.nesting===1&&t+1<e.length&&(o=e[t+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===l.tag)&&(s=!1))),i+=s?`>
14
+ `:">",i)};Ud.prototype.renderInline=function(n,e,t){for(var r,o="",i=this.rules,s=0,l=n.length;s<l;s++)r=n[s].type,typeof i[r]<"u"?o+=i[r](n,s,e,t,this):o+=this.renderToken(n,s,e);return o};Ud.prototype.renderInlineAsText=function(n,e,t){for(var r="",o=0,i=n.length;o<i;o++)n[o].type==="text"?r+=n[o].content:n[o].type==="image"?r+=this.renderInlineAsText(n[o].children,e,t):n[o].type==="softbreak"&&(r+=`
15
+ `);return r};Ud.prototype.render=function(n,e,t){var r,o,i,s="",l=this.rules;for(r=0,o=n.length;r<o;r++)i=n[r].type,i==="inline"?s+=this.renderInline(n[r].children,e,t):typeof l[i]<"u"?s+=l[i](n,r,e,t,this):s+=this.renderToken(n,r,e,t);return s};var REe=Ud;function jo(){this.__rules__=[],this.__cache__=null}jo.prototype.__find__=function(n){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===n)return e;return-1};jo.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),n.__cache__={},e.forEach(function(t){n.__cache__[t]=[],n.__rules__.forEach(function(r){r.enabled&&(t&&r.alt.indexOf(t)<0||n.__cache__[t].push(r.fn))})})};jo.prototype.at=function(n,e,t){var r=this.__find__(n),o=t||{};if(r===-1)throw new Error("Parser rule not found: "+n);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null};jo.prototype.before=function(n,e,t,r){var o=this.__find__(n),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null};jo.prototype.after=function(n,e,t,r){var o=this.__find__(n),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null};jo.prototype.push=function(n,e,t){var r=t||{};this.__rules__.push({name:n,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};jo.prototype.enable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,t.push(r)},this),this.__cache__=null,t};jo.prototype.enableOnly=function(n,e){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(n,e)};jo.prototype.disable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,t.push(r)},this),this.__cache__=null,t};jo.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};var Ik=jo,zEe=/\r\n?|\n/g,VEe=/\0/g,WEe=function(e){var t;t=e.src.replace(zEe,`
16
+ `),t=t.replace(VEe,"�"),e.src=t},KEe=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},UEe=function(e){var t=e.tokens,r,o,i;for(o=0,i=t.length;o<i;o++)r=t[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},HEe=Ye.arrayReplaceAt;function qEe(n){return/^<a[>\s]/i.test(n)}function jEe(n){return/^<\/a\s*>/i.test(n)}var ZEe=function(e){var t,r,o,i,s,l,a,c,d,h,f,g,p,m,_,C,y=e.tokens,v;if(e.md.options.linkify){for(r=0,o=y.length;r<o;r++)if(!(y[r].type!=="inline"||!e.md.linkify.pretest(y[r].content)))for(i=y[r].children,p=0,t=i.length-1;t>=0;t--){if(l=i[t],l.type==="link_close"){for(t--;i[t].level!==l.level&&i[t].type!=="link_open";)t--;continue}if(l.type==="html_inline"&&(qEe(l.content)&&p>0&&p--,jEe(l.content)&&p++),!(p>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(d=l.content,v=e.md.linkify.match(d),a=[],g=l.level,f=0,v.length>0&&v[0].index===0&&t>0&&i[t-1].type==="text_special"&&(v=v.slice(1)),c=0;c<v.length;c++)m=v[c].url,_=e.md.normalizeLink(m),e.md.validateLink(_)&&(C=v[c].text,v[c].schema?v[c].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),h=v[c].index,h>f&&(s=new e.Token("text","",0),s.content=d.slice(f,h),s.level=g,a.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",_]],s.level=g++,s.markup="linkify",s.info="auto",a.push(s),s=new e.Token("text","",0),s.content=C,s.level=g,a.push(s),s=new e.Token("link_close","a",-1),s.level=--g,s.markup="linkify",s.info="auto",a.push(s),f=v[c].lastIndex);f<d.length&&(s=new e.Token("text","",0),s.content=d.slice(f),s.level=g,a.push(s)),y[r].children=i=HEe(i,t,a)}}}},f6=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,GEe=/\((c|tm|r)\)/i,JEe=/\((c|tm|r)\)/ig,YEe={c:"©",r:"®",tm:"™"};function XEe(n,e){return YEe[e.toLowerCase()]}function QEe(n){var e,t,r=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!r&&(t.content=t.content.replace(JEe,XEe)),t.type==="link_open"&&t.info==="auto"&&r--,t.type==="link_close"&&t.info==="auto"&&r++}function e4e(n){var e,t,r=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!r&&f6.test(t.content)&&(t.content=t.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),t.type==="link_open"&&t.info==="auto"&&r--,t.type==="link_close"&&t.info==="auto"&&r++}var t4e=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(GEe.test(e.tokens[t].content)&&QEe(e.tokens[t].children),f6.test(e.tokens[t].content)&&e4e(e.tokens[t].children))},rS=Ye.isWhiteSpace,oS=Ye.isPunctChar,iS=Ye.isMdAsciiPunct,n4e=/['"]/,sS=/['"]/g,lS="’";function Ap(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function r4e(n,e){var t,r,o,i,s,l,a,c,d,h,f,g,p,m,_,C,y,v,k,x,b;for(k=[],t=0;t<n.length;t++){for(r=n[t],a=n[t].level,y=k.length-1;y>=0&&!(k[y].level<=a);y--);if(k.length=y+1,r.type==="text"){o=r.content,s=0,l=o.length;e:for(;s<l&&(sS.lastIndex=s,i=sS.exec(o),!!i);){if(_=C=!0,s=i.index+1,v=i[0]==="'",d=32,i.index-1>=0)d=o.charCodeAt(i.index-1);else for(y=t-1;y>=0&&!(n[y].type==="softbreak"||n[y].type==="hardbreak");y--)if(n[y].content){d=n[y].content.charCodeAt(n[y].content.length-1);break}if(h=32,s<l)h=o.charCodeAt(s);else for(y=t+1;y<n.length&&!(n[y].type==="softbreak"||n[y].type==="hardbreak");y++)if(n[y].content){h=n[y].content.charCodeAt(0);break}if(f=iS(d)||oS(String.fromCharCode(d)),g=iS(h)||oS(String.fromCharCode(h)),p=rS(d),m=rS(h),m?_=!1:g&&(p||f||(_=!1)),p?C=!1:f&&(m||g||(C=!1)),h===34&&i[0]==='"'&&d>=48&&d<=57&&(C=_=!1),_&&C&&(_=f,C=g),!_&&!C){v&&(r.content=Ap(r.content,i.index,lS));continue}if(C){for(y=k.length-1;y>=0&&(c=k[y],!(k[y].level<a));y--)if(c.single===v&&k[y].level===a){c=k[y],v?(x=e.md.options.quotes[2],b=e.md.options.quotes[3]):(x=e.md.options.quotes[0],b=e.md.options.quotes[1]),r.content=Ap(r.content,i.index,b),n[c.token].content=Ap(n[c.token].content,c.pos,x),s+=b.length-1,c.token===t&&(s+=x.length-1),o=r.content,l=o.length,k.length=y;continue e}}_?k.push({token:t,pos:i.index,single:v,level:a}):C&&v&&(r.content=Ap(r.content,i.index,lS))}}}}var o4e=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!n4e.test(e.tokens[t].content)||r4e(e.tokens[t].children,e)},i4e=function(e){var t,r,o,i,s,l,a=e.tokens;for(t=0,r=a.length;t<r;t++)if(a[t].type==="inline"){for(o=a[t].children,s=o.length,i=0;i<s;i++)o[i].type==="text_special"&&(o[i].type="text");for(i=l=0;i<s;i++)o[i].type==="text"&&i+1<s&&o[i+1].type==="text"?o[i+1].content=o[i].content+o[i+1].content:(i!==l&&(o[l]=o[i]),l++);i!==l&&(o.length=l)}};function Hd(n,e,t){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Hd.prototype.attrIndex=function(e){var t,r,o;if(!this.attrs)return-1;for(t=this.attrs,r=0,o=t.length;r<o;r++)if(t[r][0]===e)return r;return-1};Hd.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Hd.prototype.attrSet=function(e,t){var r=this.attrIndex(e),o=[e,t];r<0?this.attrPush(o):this.attrs[r]=o};Hd.prototype.attrGet=function(e){var t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r};Hd.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};var Bk=Hd,s4e=Bk;function h6(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}h6.prototype.Token=s4e;var l4e=h6,a4e=Ik,Jy=[["normalize",WEe],["block",KEe],["inline",UEe],["linkify",ZEe],["replacements",t4e],["smartquotes",o4e],["text_join",i4e]];function Rk(){this.ruler=new a4e;for(var n=0;n<Jy.length;n++)this.ruler.push(Jy[n][0],Jy[n][1])}Rk.prototype.process=function(n){var e,t,r;for(r=this.ruler.getRules(""),e=0,t=r.length;e<t;e++)r[e](n)};Rk.prototype.State=l4e;var c4e=Rk,Yy=Ye.isSpace;function Xy(n,e){var t=n.bMarks[e]+n.tShift[e],r=n.eMarks[e];return n.src.slice(t,r)}function aS(n){var e=[],t=0,r=n.length,o,i=!1,s=0,l="";for(o=n.charCodeAt(t);t<r;)o===124&&(i?(l+=n.substring(s,t-1),s=t):(e.push(l+n.substring(s,t)),l="",s=t+1)),i=o===92,t++,o=n.charCodeAt(t);return e.push(l+n.substring(s)),e}var u4e=function(e,t,r,o){var i,s,l,a,c,d,h,f,g,p,m,_,C,y,v,k,x,b;if(t+2>r||(d=t+1,e.sCount[d]<e.blkIndent)||e.sCount[d]-e.blkIndent>=4||(l=e.bMarks[d]+e.tShift[d],l>=e.eMarks[d])||(x=e.src.charCodeAt(l++),x!==124&&x!==45&&x!==58)||l>=e.eMarks[d]||(b=e.src.charCodeAt(l++),b!==124&&b!==45&&b!==58&&!Yy(b))||x===45&&Yy(b))return!1;for(;l<e.eMarks[d];){if(i=e.src.charCodeAt(l),i!==124&&i!==45&&i!==58&&!Yy(i))return!1;l++}for(s=Xy(e,t+1),h=s.split("|"),p=[],a=0;a<h.length;a++){if(m=h[a].trim(),!m){if(a===0||a===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?p.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?p.push("left"):p.push("")}if(s=Xy(e,t).trim(),s.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(h=aS(s),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),f=h.length,f===0||f!==p.length))return!1;if(o)return!0;for(y=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),g.map=_=[t,0],g=e.push("thead_open","thead",1),g.map=[t,t+1],g=e.push("tr_open","tr",1),g.map=[t,t+1],a=0;a<h.length;a++)g=e.push("th_open","th",1),p[a]&&(g.attrs=[["style","text-align:"+p[a]]]),g=e.push("inline","",0),g.content=h[a].trim(),g.children=[],g=e.push("th_close","th",-1);for(g=e.push("tr_close","tr",-1),g=e.push("thead_close","thead",-1),d=t+2;d<r&&!(e.sCount[d]<e.blkIndent);d++){for(v=!1,a=0,c=k.length;a<c;a++)if(k[a](e,d,r,!0)){v=!0;break}if(v||(s=Xy(e,d).trim(),!s)||e.sCount[d]-e.blkIndent>=4)break;for(h=aS(s),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),d===t+2&&(g=e.push("tbody_open","tbody",1),g.map=C=[t+2,0]),g=e.push("tr_open","tr",1),g.map=[d,d+1],a=0;a<f;a++)g=e.push("td_open","td",1),p[a]&&(g.attrs=[["style","text-align:"+p[a]]]),g=e.push("inline","",0),g.content=h[a]?h[a].trim():"",g.children=[],g=e.push("td_close","td",-1);g=e.push("tr_close","tr",-1)}return C&&(g=e.push("tbody_close","tbody",-1),C[1]=d),g=e.push("table_close","table",-1),_[1]=d,e.parentType=y,e.line=d,!0},d4e=function(e,t,r){var o,i,s;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=o=t+1;o<r;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,i=o;continue}break}return e.line=i,s=e.push("code_block","code",0),s.content=e.getLines(t,i,4+e.blkIndent,!1)+`
17
+ `,s.map=[t,e.line],!0},f4e=function(e,t,r,o){var i,s,l,a,c,d,h,f=!1,g=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||g+3>p||(i=e.src.charCodeAt(g),i!==126&&i!==96)||(c=g,g=e.skipChars(g,i),s=g-c,s<3)||(h=e.src.slice(c,g),l=e.src.slice(g,p),i===96&&l.indexOf(String.fromCharCode(i))>=0))return!1;if(o)return!0;for(a=t;a++,!(a>=r||(g=c=e.bMarks[a]+e.tShift[a],p=e.eMarks[a],g<p&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(g)===i&&!(e.sCount[a]-e.blkIndent>=4)&&(g=e.skipChars(g,i),!(g-c<s)&&(g=e.skipSpaces(g),!(g<p)))){f=!0;break}return s=e.sCount[t],e.line=a+(f?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(t+1,a,s,!0),d.markup=h,d.map=[t,e.line],!0},h4e=Ye.isSpace,g4e=function(e,t,r,o){var i,s,l,a,c,d,h,f,g,p,m,_,C,y,v,k,x,b,T,w,S=e.lineMax,N=e.bMarks[t]+e.tShift[t],$=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(N)!==62)return!1;if(o)return!0;for(p=[],m=[],y=[],v=[],b=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",f=t;f<r&&(w=e.sCount[f]<e.blkIndent,N=e.bMarks[f]+e.tShift[f],$=e.eMarks[f],!(N>=$));f++){if(e.src.charCodeAt(N++)===62&&!w){for(a=e.sCount[f]+1,e.src.charCodeAt(N)===32?(N++,a++,i=!1,k=!0):e.src.charCodeAt(N)===9?(k=!0,(e.bsCount[f]+a)%4===3?(N++,a++,i=!1):i=!0):k=!1,g=a,p.push(e.bMarks[f]),e.bMarks[f]=N;N<$&&(s=e.src.charCodeAt(N),h4e(s));){s===9?g+=4-(g+e.bsCount[f]+(i?1:0))%4:g++;N++}d=N>=$,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(k?1:0),y.push(e.sCount[f]),e.sCount[f]=g-a,v.push(e.tShift[f]),e.tShift[f]=N-e.bMarks[f];continue}if(d)break;for(x=!1,l=0,c=b.length;l<c;l++)if(b[l](e,f,r,!0)){x=!0;break}if(x){e.lineMax=f,e.blkIndent!==0&&(p.push(e.bMarks[f]),m.push(e.bsCount[f]),v.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}p.push(e.bMarks[f]),m.push(e.bsCount[f]),v.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}for(_=e.blkIndent,e.blkIndent=0,T=e.push("blockquote_open","blockquote",1),T.markup=">",T.map=h=[t,0],e.md.block.tokenize(e,t,f),T=e.push("blockquote_close","blockquote",-1),T.markup=">",e.lineMax=S,e.parentType=C,h[1]=e.line,l=0;l<v.length;l++)e.bMarks[l+t]=p[l],e.tShift[l+t]=v[l],e.sCount[l+t]=y[l],e.bsCount[l+t]=m[l];return e.blkIndent=_,!0},p4e=Ye.isSpace,m4e=function(e,t,r,o){var i,s,l,a,c=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(i=e.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(s=1;c<d;){if(l=e.src.charCodeAt(c++),l!==i&&!p4e(l))return!1;l===i&&s++}return s<3?!1:(o||(e.line=t+1,a=e.push("hr","hr",0),a.map=[t,e.line],a.markup=Array(s+1).join(String.fromCharCode(i))),!0)},g6=Ye.isSpace;function cS(n,e){var t,r,o,i;return r=n.bMarks[e]+n.tShift[e],o=n.eMarks[e],t=n.src.charCodeAt(r++),t!==42&&t!==45&&t!==43||r<o&&(i=n.src.charCodeAt(r),!g6(i))?-1:r}function uS(n,e){var t,r=n.bMarks[e]+n.tShift[e],o=r,i=n.eMarks[e];if(o+1>=i||(t=n.src.charCodeAt(o++),t<48||t>57))return-1;for(;;){if(o>=i)return-1;if(t=n.src.charCodeAt(o++),t>=48&&t<=57){if(o-r>=10)return-1;continue}if(t===41||t===46)break;return-1}return o<i&&(t=n.src.charCodeAt(o),!g6(t))?-1:o}function _4e(n,e){var t,r,o=n.level+2;for(t=e+2,r=n.tokens.length-2;t<r;t++)n.tokens[t].level===o&&n.tokens[t].type==="paragraph_open"&&(n.tokens[t+2].hidden=!0,n.tokens[t].hidden=!0,t+=2)}var y4e=function(e,t,r,o){var i,s,l,a,c,d,h,f,g,p,m,_,C,y,v,k,x,b,T,w,S,N,$,O,M,A,F,P=t,z=!1,I=!0;if(e.sCount[P]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[P]-e.listIndent>=4&&e.sCount[P]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[P]>=e.blkIndent&&(z=!0),(N=uS(e,P))>=0){if(h=!0,O=e.bMarks[P]+e.tShift[P],C=Number(e.src.slice(O,N-1)),z&&C!==1)return!1}else if((N=cS(e,P))>=0)h=!1;else return!1;if(z&&e.skipSpaces(N)>=e.eMarks[P])return!1;if(o)return!0;for(_=e.src.charCodeAt(N-1),m=e.tokens.length,h?(F=e.push("ordered_list_open","ol",1),C!==1&&(F.attrs=[["start",C]])):F=e.push("bullet_list_open","ul",1),F.map=p=[P,0],F.markup=String.fromCharCode(_),$=!1,A=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";P<r;){for(S=N,y=e.eMarks[P],d=v=e.sCount[P]+N-(e.bMarks[P]+e.tShift[P]);S<y;){if(i=e.src.charCodeAt(S),i===9)v+=4-(v+e.bsCount[P])%4;else if(i===32)v++;else break;S++}if(s=S,s>=y?c=1:c=v-d,c>4&&(c=1),a=d+c,F=e.push("list_item_open","li",1),F.markup=String.fromCharCode(_),F.map=f=[P,0],h&&(F.info=e.src.slice(O,N-1)),w=e.tight,T=e.tShift[P],b=e.sCount[P],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[P]=s-e.bMarks[P],e.sCount[P]=v,s>=y&&e.isEmpty(P+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,P,r,!0),(!e.tight||$)&&(I=!1),$=e.line-P>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[P]=T,e.sCount[P]=b,e.tight=w,F=e.push("list_item_close","li",-1),F.markup=String.fromCharCode(_),P=e.line,f[1]=P,P>=r||e.sCount[P]<e.blkIndent||e.sCount[P]-e.blkIndent>=4)break;for(M=!1,l=0,g=A.length;l<g;l++)if(A[l](e,P,r,!0)){M=!0;break}if(M)break;if(h){if(N=uS(e,P),N<0)break;O=e.bMarks[P]+e.tShift[P]}else if(N=cS(e,P),N<0)break;if(_!==e.src.charCodeAt(N-1))break}return h?F=e.push("ordered_list_close","ol",-1):F=e.push("bullet_list_close","ul",-1),F.markup=String.fromCharCode(_),p[1]=P,e.line=P,e.parentType=x,I&&_4e(e,m),!0},v4e=Ye.normalizeReference,Mp=Ye.isSpace,C4e=function(e,t,r,o){var i,s,l,a,c,d,h,f,g,p,m,_,C,y,v,k,x=0,b=e.bMarks[t]+e.tShift[t],T=e.eMarks[t],w=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(b)!==91)return!1;for(;++b<T;)if(e.src.charCodeAt(b)===93&&e.src.charCodeAt(b-1)!==92){if(b+1===T||e.src.charCodeAt(b+1)!==58)return!1;break}for(a=e.lineMax,v=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";w<a&&!e.isEmpty(w);w++)if(!(e.sCount[w]-e.blkIndent>3)&&!(e.sCount[w]<0)){for(y=!1,d=0,h=v.length;d<h;d++)if(v[d](e,w,a,!0)){y=!0;break}if(y)break}for(C=e.getLines(t,w,e.blkIndent,!1).trim(),T=C.length,b=1;b<T;b++){if(i=C.charCodeAt(b),i===91)return!1;if(i===93){g=b;break}else i===10?x++:i===92&&(b++,b<T&&C.charCodeAt(b)===10&&x++)}if(g<0||C.charCodeAt(g+1)!==58)return!1;for(b=g+2;b<T;b++)if(i=C.charCodeAt(b),i===10)x++;else if(!Mp(i))break;if(m=e.md.helpers.parseLinkDestination(C,b,T),!m.ok||(c=e.md.normalizeLink(m.str),!e.md.validateLink(c)))return!1;for(b=m.pos,x+=m.lines,s=b,l=x,_=b;b<T;b++)if(i=C.charCodeAt(b),i===10)x++;else if(!Mp(i))break;for(m=e.md.helpers.parseLinkTitle(C,b,T),b<T&&_!==b&&m.ok?(k=m.str,b=m.pos,x+=m.lines):(k="",b=s,x=l);b<T&&(i=C.charCodeAt(b),!!Mp(i));)b++;if(b<T&&C.charCodeAt(b)!==10&&k)for(k="",b=s,x=l;b<T&&(i=C.charCodeAt(b),!!Mp(i));)b++;return b<T&&C.charCodeAt(b)!==10||(f=v4e(C.slice(1,g)),!f)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:k,href:c}),e.parentType=p,e.line=t+x+1),!0)},b4e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],S0={},k4e="[a-zA-Z_:][a-zA-Z0-9:._-]*",x4e="[^\"'=<>`\\x00-\\x20]+",S4e="'[^']*'",w4e='"[^"]*"',T4e="(?:"+x4e+"|"+S4e+"|"+w4e+")",E4e="(?:\\s+"+k4e+"(?:\\s*=\\s*"+T4e+")?)",p6="<[A-Za-z][A-Za-z0-9\\-]*"+E4e+"*\\s*\\/?>",m6="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",N4e="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",$4e="<[?][\\s\\S]*?[?]>",A4e="<![A-Z]+\\s+[^>]*>",M4e="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",O4e=new RegExp("^(?:"+p6+"|"+m6+"|"+N4e+"|"+$4e+"|"+A4e+"|"+M4e+")"),D4e=new RegExp("^(?:"+p6+"|"+m6+")");S0.HTML_TAG_RE=O4e;S0.HTML_OPEN_CLOSE_TAG_RE=D4e;var L4e=b4e,F4e=S0.HTML_OPEN_CLOSE_TAG_RE,ku=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+L4e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(F4e.source+"\\s*$"),/^$/,!1]],P4e=function(e,t,r,o){var i,s,l,a,c=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(a=e.src.slice(c,d),i=0;i<ku.length&&!ku[i][0].test(a);i++);if(i===ku.length)return!1;if(o)return ku[i][2];if(s=t+1,!ku[i][1].test(a)){for(;s<r&&!(e.sCount[s]<e.blkIndent);s++)if(c=e.bMarks[s]+e.tShift[s],d=e.eMarks[s],a=e.src.slice(c,d),ku[i][1].test(a)){a.length!==0&&s++;break}}return e.line=s,l=e.push("html_block","",0),l.map=[t,s],l.content=e.getLines(t,s,e.blkIndent,!0),!0},dS=Ye.isSpace,I4e=function(e,t,r,o){var i,s,l,a,c=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(i=e.src.charCodeAt(c),i!==35||c>=d))return!1;for(s=1,i=e.src.charCodeAt(++c);i===35&&c<d&&s<=6;)s++,i=e.src.charCodeAt(++c);return s>6||c<d&&!dS(i)?!1:(o||(d=e.skipSpacesBack(d,c),l=e.skipCharsBack(d,35,c),l>c&&dS(e.src.charCodeAt(l-1))&&(d=l),e.line=t+1,a=e.push("heading_open","h"+String(s),1),a.markup="########".slice(0,s),a.map=[t,e.line],a=e.push("inline","",0),a.content=e.src.slice(c,d).trim(),a.map=[t,e.line],a.children=[],a=e.push("heading_close","h"+String(s),-1),a.markup="########".slice(0,s)),!0)},B4e=function(e,t,r){var o,i,s,l,a,c,d,h,f,g=t+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";g<r&&!e.isEmpty(g);g++)if(!(e.sCount[g]-e.blkIndent>3)){if(e.sCount[g]>=e.blkIndent&&(c=e.bMarks[g]+e.tShift[g],d=e.eMarks[g],c<d&&(f=e.src.charCodeAt(c),(f===45||f===61)&&(c=e.skipChars(c,f),c=e.skipSpaces(c),c>=d)))){h=f===61?1:2;break}if(!(e.sCount[g]<0)){for(i=!1,s=0,l=m.length;s<l;s++)if(m[s](e,g,r,!0)){i=!0;break}if(i)break}}return h?(o=e.getLines(t,g,e.blkIndent,!1).trim(),e.line=g+1,a=e.push("heading_open","h"+String(h),1),a.markup=String.fromCharCode(f),a.map=[t,e.line],a=e.push("inline","",0),a.content=o,a.map=[t,e.line-1],a.children=[],a=e.push("heading_close","h"+String(h),-1),a.markup=String.fromCharCode(f),e.parentType=p,!0):!1},R4e=function(e,t,r){var o,i,s,l,a,c,d=t+1,h=e.md.block.ruler.getRules("paragraph");for(c=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(i=!1,s=0,l=h.length;s<l;s++)if(h[s](e,d,r,!0)){i=!0;break}if(i)break}return o=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d,a=e.push("paragraph_open","p",1),a.map=[t,e.line],a=e.push("inline","",0),a.content=o,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=c,!0},_6=Bk,w0=Ye.isSpace;function Wi(n,e,t,r){var o,i,s,l,a,c,d,h;for(this.src=n,this.md=e,this.env=t,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",i=this.src,h=!1,s=l=c=d=0,a=i.length;l<a;l++){if(o=i.charCodeAt(l),!h)if(w0(o)){c++,o===9?d+=4-d%4:d++;continue}else h=!0;(o===10||l===a-1)&&(o!==10&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(d),this.bsCount.push(0),h=!1,c=0,d=0,s=l+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Wi.prototype.push=function(n,e,t){var r=new _6(n,e,t);return r.block=!0,t<0&&this.level--,r.level=this.level,t>0&&this.level++,this.tokens.push(r),r};Wi.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Wi.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Wi.prototype.skipSpaces=function(e){for(var t,r=this.src.length;e<r&&(t=this.src.charCodeAt(e),!!w0(t));e++);return e};Wi.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!w0(this.src.charCodeAt(--e)))return e+1;return e};Wi.prototype.skipChars=function(e,t){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e};Wi.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e};Wi.prototype.getLines=function(e,t,r,o){var i,s,l,a,c,d,h,f=e;if(e>=t)return"";for(d=new Array(t-e),i=0;f<t;f++,i++){for(s=0,h=a=this.bMarks[f],f+1<t||o?c=this.eMarks[f]+1:c=this.eMarks[f];a<c&&s<r;){if(l=this.src.charCodeAt(a),w0(l))l===9?s+=4-(s+this.bsCount[f])%4:s++;else if(a-h<this.tShift[f])s++;else break;a++}s>r?d[i]=new Array(s-r+1).join(" ")+this.src.slice(a,c):d[i]=this.src.slice(a,c)}return d.join("")};Wi.prototype.Token=_6;var z4e=Wi,V4e=Ik,Op=[["table",u4e,["paragraph","reference"]],["code",d4e],["fence",f4e,["paragraph","reference","blockquote","list"]],["blockquote",g4e,["paragraph","reference","blockquote","list"]],["hr",m4e,["paragraph","reference","blockquote","list"]],["list",y4e,["paragraph","reference","blockquote"]],["reference",C4e],["html_block",P4e,["paragraph","reference","blockquote"]],["heading",I4e,["paragraph","reference","blockquote"]],["lheading",B4e],["paragraph",R4e]];function T0(){this.ruler=new V4e;for(var n=0;n<Op.length;n++)this.ruler.push(Op[n][0],Op[n][1],{alt:(Op[n][2]||[]).slice()})}T0.prototype.tokenize=function(n,e,t){for(var r,o,i,s=this.ruler.getRules(""),l=s.length,a=e,c=!1,d=n.md.options.maxNesting;a<t&&(n.line=a=n.skipEmptyLines(a),!(a>=t||n.sCount[a]<n.blkIndent));){if(n.level>=d){n.line=t;break}for(i=n.line,o=0;o<l;o++)if(r=s[o](n,a,t,!1),r){if(i>=n.line)throw new Error("block rule didn't increment state.line");break}if(!r)throw new Error("none of the block rules matched");n.tight=!c,n.isEmpty(n.line-1)&&(c=!0),a=n.line,a<t&&n.isEmpty(a)&&(c=!0,a++,n.line=a)}};T0.prototype.parse=function(n,e,t,r){var o;n&&(o=new this.State(n,e,t,r),this.tokenize(o,o.line,o.lineMax))};T0.prototype.State=z4e;var W4e=T0;function K4e(n){switch(n){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var U4e=function(e,t){for(var r=e.pos;r<e.posMax&&!K4e(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},H4e=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,q4e=function(e,t){var r,o,i,s,l,a,c,d;return!e.md.options.linkify||e.linkLevel>0||(r=e.pos,o=e.posMax,r+3>o)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(i=e.pending.match(H4e),!i)||(s=i[1],l=e.md.linkify.matchAtStart(e.src.slice(r-s.length)),!l)||(a=l.url,a.length<=s.length)||(a=a.replace(/\*+$/,""),c=e.md.normalizeLink(a),!e.md.validateLink(c))?!1:(t||(e.pending=e.pending.slice(0,-s.length),d=e.push("link_open","a",1),d.attrs=[["href",c]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(a),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=a.length-s.length,!0)},j4e=Ye.isSpace,Z4e=function(e,t){var r,o,i,s=e.pos;if(e.src.charCodeAt(s)!==10)return!1;if(r=e.pending.length-1,o=e.posMax,!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(i=r-1;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s<o&&j4e(e.src.charCodeAt(s));)s++;return e.pos=s,!0},G4e=Ye.isSpace,zk=[];for(var fS=0;fS<256;fS++)zk.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(n){zk[n.charCodeAt(0)]=1});var J4e=function(e,t){var r,o,i,s,l,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==92||(a++,a>=c))return!1;if(r=e.src.charCodeAt(a),r===10){for(t||e.push("hardbreak","br",0),a++;a<c&&(r=e.src.charCodeAt(a),!!G4e(r));)a++;return e.pos=a,!0}return s=e.src[a],r>=55296&&r<=56319&&a+1<c&&(o=e.src.charCodeAt(a+1),o>=56320&&o<=57343&&(s+=e.src[a+1],a++)),i="\\"+s,t||(l=e.push("text_special","",0),r<256&&zk[r]!==0?l.content=s:l.content=i,l.markup=i,l.info="escape"),e.pos=a+1,!0},Y4e=function(e,t){var r,o,i,s,l,a,c,d,h=e.pos,f=e.src.charCodeAt(h);if(f!==96)return!1;for(r=h,h++,o=e.posMax;h<o&&e.src.charCodeAt(h)===96;)h++;if(i=e.src.slice(r,h),c=i.length,e.backticksScanned&&(e.backticks[c]||0)<=r)return t||(e.pending+=i),e.pos+=c,!0;for(a=h;(l=e.src.indexOf("`",a))!==-1;){for(a=l+1;a<o&&e.src.charCodeAt(a)===96;)a++;if(d=a-l,d===c)return t||(s=e.push("code_inline","code",0),s.markup=i,s.content=e.src.slice(h,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[d]=l}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=c,!0},E0={};E0.tokenize=function(e,t){var r,o,i,s,l,a=e.pos,c=e.src.charCodeAt(a);if(t||c!==126||(o=e.scanDelims(e.pos,!0),s=o.length,l=String.fromCharCode(c),s<2))return!1;for(s%2&&(i=e.push("text","",0),i.content=l,s--),r=0;r<s;r+=2)i=e.push("text","",0),i.content=l+l,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function hS(n,e){var t,r,o,i,s,l=[],a=e.length;for(t=0;t<a;t++)o=e[t],o.marker===126&&o.end!==-1&&(i=e[o.end],s=n.tokens[o.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=n.tokens[i.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",n.tokens[i.token-1].type==="text"&&n.tokens[i.token-1].content==="~"&&l.push(i.token-1));for(;l.length;){for(t=l.pop(),r=t+1;r<n.tokens.length&&n.tokens[r].type==="s_close";)r++;r--,t!==r&&(s=n.tokens[r],n.tokens[r]=n.tokens[t],n.tokens[t]=s)}}E0.postProcess=function(e){var t,r=e.tokens_meta,o=e.tokens_meta.length;for(hS(e,e.delimiters),t=0;t<o;t++)r[t]&&r[t].delimiters&&hS(e,r[t].delimiters)};var N0={};N0.tokenize=function(e,t){var r,o,i,s=e.pos,l=e.src.charCodeAt(s);if(t||l!==95&&l!==42)return!1;for(o=e.scanDelims(e.pos,l===42),r=0;r<o.length;r++)i=e.push("text","",0),i.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function gS(n,e){var t,r,o,i,s,l,a=e.length;for(t=a-1;t>=0;t--)r=e[t],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=e[r.end],l=t>0&&e[t-1].end===r.end+1&&e[t-1].marker===r.marker&&e[t-1].token===r.token-1&&e[r.end+1].token===o.token+1,s=String.fromCharCode(r.marker),i=n.tokens[r.token],i.type=l?"strong_open":"em_open",i.tag=l?"strong":"em",i.nesting=1,i.markup=l?s+s:s,i.content="",i=n.tokens[o.token],i.type=l?"strong_close":"em_close",i.tag=l?"strong":"em",i.nesting=-1,i.markup=l?s+s:s,i.content="",l&&(n.tokens[e[t-1].token].content="",n.tokens[e[r.end+1].token].content="",t--))}N0.postProcess=function(e){var t,r=e.tokens_meta,o=e.tokens_meta.length;for(gS(e,e.delimiters),t=0;t<o;t++)r[t]&&r[t].delimiters&&gS(e,r[t].delimiters)};var X4e=Ye.normalizeReference,Qy=Ye.isSpace,Q4e=function(e,t){var r,o,i,s,l,a,c,d,h,f="",g="",p=e.pos,m=e.posMax,_=e.pos,C=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,s=e.md.helpers.parseLinkLabel(e,e.pos,!0),s<0))return!1;if(a=s+1,a<m&&e.src.charCodeAt(a)===40){for(C=!1,a++;a<m&&(o=e.src.charCodeAt(a),!(!Qy(o)&&o!==10));a++);if(a>=m)return!1;if(_=a,c=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),c.ok){for(f=e.md.normalizeLink(c.str),e.md.validateLink(f)?a=c.pos:f="",_=a;a<m&&(o=e.src.charCodeAt(a),!(!Qy(o)&&o!==10));a++);if(c=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<m&&_!==a&&c.ok)for(g=c.str,a=c.pos;a<m&&(o=e.src.charCodeAt(a),!(!Qy(o)&&o!==10));a++);}(a>=m||e.src.charCodeAt(a)!==41)&&(C=!0),a++}if(C){if(typeof e.env.references>"u")return!1;if(a<m&&e.src.charCodeAt(a)===91?(_=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(_,a++):a=s+1):a=s+1,i||(i=e.src.slice(l,s)),d=e.env.references[X4e(i)],!d)return e.pos=p,!1;f=d.href,g=d.title}return t||(e.pos=l,e.posMax=s,h=e.push("link_open","a",1),h.attrs=r=[["href",f]],g&&r.push(["title",g]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=a,e.posMax=m,!0},eNe=Ye.normalizeReference,ev=Ye.isSpace,tNe=function(e,t){var r,o,i,s,l,a,c,d,h,f,g,p,m,_="",C=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(c=l+1,c<y&&e.src.charCodeAt(c)===40){for(c++;c<y&&(o=e.src.charCodeAt(c),!(!ev(o)&&o!==10));c++);if(c>=y)return!1;for(m=c,h=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),h.ok&&(_=e.md.normalizeLink(h.str),e.md.validateLink(_)?c=h.pos:_=""),m=c;c<y&&(o=e.src.charCodeAt(c),!(!ev(o)&&o!==10));c++);if(h=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<y&&m!==c&&h.ok)for(f=h.str,c=h.pos;c<y&&(o=e.src.charCodeAt(c),!(!ev(o)&&o!==10));c++);else f="";if(c>=y||e.src.charCodeAt(c)!==41)return e.pos=C,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<y&&e.src.charCodeAt(c)===91?(m=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(m,c++):c=l+1):c=l+1,s||(s=e.src.slice(a,l)),d=e.env.references[eNe(s)],!d)return e.pos=C,!1;_=d.href,f=d.title}return t||(i=e.src.slice(a,l),e.md.inline.parse(i,e.md,e.env,p=[]),g=e.push("image","img",0),g.attrs=r=[["src",_],["alt",""]],g.children=p,g.content=i,f&&r.push(["title",f])),e.pos=c,e.posMax=y,!0},nNe=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,rNe=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,oNe=function(e,t){var r,o,i,s,l,a,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(l=e.pos,a=e.posMax;;){if(++c>=a||(s=e.src.charCodeAt(c),s===60))return!1;if(s===62)break}return r=e.src.slice(l+1,c),rNe.test(r)?(o=e.md.normalizeLink(r),e.md.validateLink(o)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",o]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(r),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=r.length+2,!0):!1):nNe.test(r)?(o=e.md.normalizeLink("mailto:"+r),e.md.validateLink(o)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",o]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(r),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=r.length+2,!0):!1):!1},iNe=S0.HTML_TAG_RE;function sNe(n){return/^<a[>\s]/i.test(n)}function lNe(n){return/^<\/a\s*>/i.test(n)}function aNe(n){var e=n|32;return e>=97&&e<=122}var cNe=function(e,t){var r,o,i,s,l=e.pos;return!e.md.options.html||(i=e.posMax,e.src.charCodeAt(l)!==60||l+2>=i)||(r=e.src.charCodeAt(l+1),r!==33&&r!==63&&r!==47&&!aNe(r))||(o=e.src.slice(l).match(iNe),!o)?!1:(t||(s=e.push("html_inline","",0),s.content=o[0],sNe(s.content)&&e.linkLevel++,lNe(s.content)&&e.linkLevel--),e.pos+=o[0].length,!0)},pS=a6,uNe=Ye.has,dNe=Ye.isValidEntityCode,mS=Ye.fromCodePoint,fNe=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,hNe=/^&([a-z][a-z0-9]{1,31});/i,gNe=function(e,t){var r,o,i,s,l=e.pos,a=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=a)return!1;if(r=e.src.charCodeAt(l+1),r===35){if(i=e.src.slice(l).match(fNe),i)return t||(o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0),s.content=dNe(o)?mS(o):mS(65533),s.markup=i[0],s.info="entity"),e.pos+=i[0].length,!0}else if(i=e.src.slice(l).match(hNe),i&&uNe(pS,i[1]))return t||(s=e.push("text_special","",0),s.content=pS[i[1]],s.markup=i[0],s.info="entity"),e.pos+=i[0].length,!0;return!1};function _S(n){var e,t,r,o,i,s,l,a,c={},d=n.length;if(d){var h=0,f=-2,g=[];for(e=0;e<d;e++)if(r=n[e],g.push(0),(n[h].marker!==r.marker||f!==r.token-1)&&(h=e),f=r.token,r.length=r.length||0,!!r.close){for(c.hasOwnProperty(r.marker)||(c[r.marker]=[-1,-1,-1,-1,-1,-1]),i=c[r.marker][(r.open?3:0)+r.length%3],t=h-g[h]-1,s=t;t>i;t-=g[t]+1)if(o=n[t],o.marker===r.marker&&o.open&&o.end<0&&(l=!1,(o.close||r.open)&&(o.length+r.length)%3===0&&(o.length%3!==0||r.length%3!==0)&&(l=!0),!l)){a=t>0&&!n[t-1].open?g[t-1]+1:0,g[e]=e-t+a,g[t]=a,r.open=!1,o.end=e,o.close=!1,s=-1,f=-2;break}s!==-1&&(c[r.marker][(r.open?3:0)+(r.length||0)%3]=s)}}}var pNe=function(e){var t,r=e.tokens_meta,o=e.tokens_meta.length;for(_S(e.delimiters),t=0;t<o;t++)r[t]&&r[t].delimiters&&_S(r[t].delimiters)},mNe=function(e){var t,r,o=0,i=e.tokens,s=e.tokens.length;for(t=r=0;t<s;t++)i[t].nesting<0&&o--,i[t].level=o,i[t].nesting>0&&o++,i[t].type==="text"&&t+1<s&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)},Vk=Bk,yS=Ye.isWhiteSpace,vS=Ye.isPunctChar,CS=Ye.isMdAsciiPunct;function Fg(n,e,t,r){this.src=n,this.env=t,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Fg.prototype.pushPending=function(){var n=new Vk("text","",0);return n.content=this.pending,n.level=this.pendingLevel,this.tokens.push(n),this.pending="",n};Fg.prototype.push=function(n,e,t){this.pending&&this.pushPending();var r=new Vk(n,e,t),o=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};Fg.prototype.scanDelims=function(n,e){var t=n,r,o,i,s,l,a,c,d,h,f=!0,g=!0,p=this.posMax,m=this.src.charCodeAt(n);for(r=n>0?this.src.charCodeAt(n-1):32;t<p&&this.src.charCodeAt(t)===m;)t++;return i=t-n,o=t<p?this.src.charCodeAt(t):32,c=CS(r)||vS(String.fromCharCode(r)),h=CS(o)||vS(String.fromCharCode(o)),a=yS(r),d=yS(o),d?f=!1:h&&(a||c||(f=!1)),a?g=!1:c&&(d||h||(g=!1)),e?(s=f,l=g):(s=f&&(!g||c),l=g&&(!f||h)),{can_open:s,can_close:l,length:i}};Fg.prototype.Token=Vk;var _Ne=Fg,bS=Ik,tv=[["text",U4e],["linkify",q4e],["newline",Z4e],["escape",J4e],["backticks",Y4e],["strikethrough",E0.tokenize],["emphasis",N0.tokenize],["link",Q4e],["image",tNe],["autolink",oNe],["html_inline",cNe],["entity",gNe]],nv=[["balance_pairs",pNe],["strikethrough",E0.postProcess],["emphasis",N0.postProcess],["fragments_join",mNe]];function Pg(){var n;for(this.ruler=new bS,n=0;n<tv.length;n++)this.ruler.push(tv[n][0],tv[n][1]);for(this.ruler2=new bS,n=0;n<nv.length;n++)this.ruler2.push(nv[n][0],nv[n][1])}Pg.prototype.skipToken=function(n){var e,t,r=n.pos,o=this.ruler.getRules(""),i=o.length,s=n.md.options.maxNesting,l=n.cache;if(typeof l[r]<"u"){n.pos=l[r];return}if(n.level<s){for(t=0;t<i;t++)if(n.level++,e=o[t](n,!0),n.level--,e){if(r>=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,l[r]=n.pos};Pg.prototype.tokenize=function(n){for(var e,t,r,o=this.ruler.getRules(""),i=o.length,s=n.posMax,l=n.md.options.maxNesting;n.pos<s;){if(r=n.pos,n.level<l){for(t=0;t<i;t++)if(e=o[t](n,!1),e){if(r>=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=s)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};Pg.prototype.parse=function(n,e,t,r){var o,i,s,l=new this.State(n,e,t,r);for(this.tokenize(l),i=this.ruler2.getRules(""),s=i.length,o=0;o<s;o++)i[o](l)};Pg.prototype.State=_Ne;var yNe=Pg,rv,kS;function vNe(){return kS||(kS=1,rv=function(n){var e={};n=n||{},e.src_Any=c6().source,e.src_Cc=u6().source,e.src_Z=d6().source,e.src_P=Pk.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var t="[><|]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(n["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),rv}function tC(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(r){n[r]=t[r]})}),n}function $0(n){return Object.prototype.toString.call(n)}function CNe(n){return $0(n)==="[object String]"}function bNe(n){return $0(n)==="[object Object]"}function kNe(n){return $0(n)==="[object RegExp]"}function xS(n){return $0(n)==="[object Function]"}function xNe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var y6={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function SNe(n){return Object.keys(n||{}).reduce(function(e,t){return e||y6.hasOwnProperty(t)},!1)}var wNe={"http:":{validate:function(n,e,t){var r=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(r)?r.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var r=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(r)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:r.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var r=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(r)?r.match(t.re.mailto)[0].length:0}}},TNe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",ENe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function NNe(n){n.__index__=-1,n.__text_cache__=""}function $Ne(n){return function(e,t){var r=e.slice(t);return n.test(r)?r.match(n)[0].length:0}}function SS(){return function(n,e){e.normalize(n)}}function am(n){var e=n.re=vNe()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(TNe),t.push(e.src_xn),e.src_tlds=t.join("|");function r(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var o=[];n.__compiled__={};function i(l,a){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+a)}Object.keys(n.__schemas__).forEach(function(l){var a=n.__schemas__[l];if(a!==null){var c={validate:null,link:null};if(n.__compiled__[l]=c,bNe(a)){kNe(a.validate)?c.validate=$Ne(a.validate):xS(a.validate)?c.validate=a.validate:i(l,a),xS(a.normalize)?c.normalize=a.normalize:a.normalize?i(l,a):c.normalize=SS();return}if(CNe(a)){o.push(l);return}i(l,a)}}),o.forEach(function(l){n.__compiled__[n.__schemas__[l]]&&(n.__compiled__[l].validate=n.__compiled__[n.__schemas__[l]].validate,n.__compiled__[l].normalize=n.__compiled__[n.__schemas__[l]].normalize)}),n.__compiled__[""]={validate:null,normalize:SS()};var s=Object.keys(n.__compiled__).filter(function(l){return l.length>0&&n.__compiled__[l]}).map(xNe).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),NNe(n)}function ANe(n,e){var t=n.__index__,r=n.__last_index__,o=n.__text_cache__.slice(t,r);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function nC(n,e){var t=new ANe(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function Gr(n,e){if(!(this instanceof Gr))return new Gr(n,e);e||SNe(n)&&(e=n,n={}),this.__opts__=tC({},y6,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=tC({},wNe,n),this.__compiled__={},this.__tlds__=ENe,this.__tlds_replaced__=!1,this.re={},am(this)}Gr.prototype.add=function(e,t){return this.__schemas__[e]=t,am(this),this};Gr.prototype.set=function(e){return this.__opts__=tC(this.__opts__,e),this};Gr.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,o,i,s,l,a,c,d;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],a.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(s=o.index+o[1].length,l=o.index+o[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0};Gr.prototype.pretest=function(e){return this.re.pretest.test(e)};Gr.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0};Gr.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(nC(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)r.push(nC(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null};Gr.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,nC(this,0)):null};Gr.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,o,i){return r!==i[o-1]}).reverse(),am(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,am(this),this)};Gr.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Gr.prototype.onCompile=function(){};var MNe=Gr;const Hu=2147483647,pi=36,Wk=1,Ih=26,ONe=38,DNe=700,v6=72,C6=128,b6="-",LNe=/^xn--/,FNe=/[^\0-\x7F]/,PNe=/[\x2E\u3002\uFF0E\uFF61]/g,INe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ov=pi-Wk,mi=Math.floor,iv=String.fromCharCode;function gl(n){throw new RangeError(INe[n])}function BNe(n,e){const t=[];let r=n.length;for(;r--;)t[r]=e(n[r]);return t}function k6(n,e){const t=n.split("@");let r="";t.length>1&&(r=t[0]+"@",n=t[1]),n=n.replace(PNe,".");const o=n.split("."),i=BNe(o,e).join(".");return r+i}function Kk(n){const e=[];let t=0;const r=n.length;for(;t<r;){const o=n.charCodeAt(t++);if(o>=55296&&o<=56319&&t<r){const i=n.charCodeAt(t++);(i&64512)==56320?e.push(((o&1023)<<10)+(i&1023)+65536):(e.push(o),t--)}else e.push(o)}return e}const x6=n=>String.fromCodePoint(...n),RNe=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:pi},wS=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},S6=function(n,e,t){let r=0;for(n=t?mi(n/DNe):n>>1,n+=mi(n/e);n>ov*Ih>>1;r+=pi)n=mi(n/ov);return mi(r+(ov+1)*n/(n+ONe))},Uk=function(n){const e=[],t=n.length;let r=0,o=C6,i=v6,s=n.lastIndexOf(b6);s<0&&(s=0);for(let l=0;l<s;++l)n.charCodeAt(l)>=128&&gl("not-basic"),e.push(n.charCodeAt(l));for(let l=s>0?s+1:0;l<t;){const a=r;for(let d=1,h=pi;;h+=pi){l>=t&&gl("invalid-input");const f=RNe(n.charCodeAt(l++));f>=pi&&gl("invalid-input"),f>mi((Hu-r)/d)&&gl("overflow"),r+=f*d;const g=h<=i?Wk:h>=i+Ih?Ih:h-i;if(f<g)break;const p=pi-g;d>mi(Hu/p)&&gl("overflow"),d*=p}const c=e.length+1;i=S6(r-a,c,a==0),mi(r/c)>Hu-o&&gl("overflow"),o+=mi(r/c),r%=c,e.splice(r++,0,o)}return String.fromCodePoint(...e)},Hk=function(n){const e=[];n=Kk(n);const t=n.length;let r=C6,o=0,i=v6;for(const a of n)a<128&&e.push(iv(a));const s=e.length;let l=s;for(s&&e.push(b6);l<t;){let a=Hu;for(const d of n)d>=r&&d<a&&(a=d);const c=l+1;a-r>mi((Hu-o)/c)&&gl("overflow"),o+=(a-r)*c,r=a;for(const d of n)if(d<r&&++o>Hu&&gl("overflow"),d===r){let h=o;for(let f=pi;;f+=pi){const g=f<=i?Wk:f>=i+Ih?Ih:f-i;if(h<g)break;const p=h-g,m=pi-g;e.push(iv(wS(g+p%m,0))),h=mi(p/m)}e.push(iv(wS(h,0))),i=S6(o,c,l===s),o=0,++l}++o,++r}return e.join("")},w6=function(n){return k6(n,function(e){return LNe.test(e)?Uk(e.slice(4).toLowerCase()):e})},T6=function(n){return k6(n,function(e){return FNe.test(e)?"xn--"+Hk(e):e})},zNe={version:"2.1.0",ucs2:{decode:Kk,encode:x6},decode:Uk,encode:Hk,toASCII:T6,toUnicode:w6},VNe=Object.freeze(Object.defineProperty({__proto__:null,decode:Uk,default:zNe,encode:Hk,toASCII:T6,toUnicode:w6,ucs2decode:Kk,ucs2encode:x6},Symbol.toStringTag,{value:"Module"})),WNe=WK(VNe);var KNe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},UNe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},HNe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Qf=Ye,qNe=x0,jNe=REe,ZNe=c4e,GNe=W4e,JNe=yNe,YNe=MNe,Ha=Kd,E6=WNe,XNe={default:KNe,zero:UNe,commonmark:HNe},QNe=/^(vbscript|javascript|file|data):/,e9e=/^data:image\/(gif|png|jpeg|webp);/;function t9e(n){var e=n.trim().toLowerCase();return QNe.test(e)?!!e9e.test(e):!0}var N6=["http:","https:","mailto:"];function n9e(n){var e=Ha.parse(n,!0);if(e.hostname&&(!e.protocol||N6.indexOf(e.protocol)>=0))try{e.hostname=E6.toASCII(e.hostname)}catch{}return Ha.encode(Ha.format(e))}function r9e(n){var e=Ha.parse(n,!0);if(e.hostname&&(!e.protocol||N6.indexOf(e.protocol)>=0))try{e.hostname=E6.toUnicode(e.hostname)}catch{}return Ha.decode(Ha.format(e),Ha.decode.defaultChars+"%")}function ao(n,e){if(!(this instanceof ao))return new ao(n,e);e||Qf.isString(n)||(e=n||{},n="default"),this.inline=new JNe,this.block=new GNe,this.core=new ZNe,this.renderer=new jNe,this.linkify=new YNe,this.validateLink=t9e,this.normalizeLink=n9e,this.normalizeLinkText=r9e,this.utils=Qf,this.helpers=Qf.assign({},qNe),this.options={},this.configure(n),e&&this.set(e)}ao.prototype.set=function(n){return Qf.assign(this.options,n),this};ao.prototype.configure=function(n){var e=this,t;if(Qf.isString(n)&&(t=n,n=XNe[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(r){n.components[r].rules&&e[r].ruler.enableOnly(n.components[r].rules),n.components[r].rules2&&e[r].ruler2.enableOnly(n.components[r].rules2)}),this};ao.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(o){t=t.concat(this[o].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var r=n.filter(function(o){return t.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};ao.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(o){t=t.concat(this[o].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var r=n.filter(function(o){return t.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};ao.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};ao.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};ao.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};ao.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};ao.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var o9e=ao,i9e=o9e;const s9e=VK(i9e);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function TS(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function l9e(n){if(Array.isArray(n))return n}function a9e(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,o,i,s,l=[],a=!0,c=!1;try{if(i=(t=t.call(n)).next,e!==0)for(;!(a=(r=i.call(t)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(d){c=!0,o=d}finally{try{if(!a&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw o}}return l}}function c9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u9e(n,e){return l9e(n)||a9e(n,e)||d9e(n,e)||c9e()}function d9e(n,e){if(n){if(typeof n=="string")return TS(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?TS(n,e):void 0}}const $6=Object.entries,ES=Object.setPrototypeOf,f9e=Object.isFrozen,h9e=Object.getPrototypeOf,g9e=Object.getOwnPropertyDescriptor;let Nn=Object.freeze,In=Object.seal,Tu=Object.create,A6=typeof Reflect<"u"&&Reflect,rC=A6.apply,oC=A6.construct;Nn||(Nn=function(e){return e});In||(In=function(e){return e});rC||(rC=function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return e.apply(t,o)});oC||(oC=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return new e(...r)});const xu=It(Array.prototype.forEach),p9e=It(Array.prototype.lastIndexOf),NS=It(Array.prototype.pop),Su=It(Array.prototype.push),m9e=It(Array.prototype.splice),ml=Array.isArray,Kf=It(String.prototype.toLowerCase),sv=It(String.prototype.toString),$S=It(String.prototype.match),Sf=It(String.prototype.replace),AS=It(String.prototype.indexOf),_9e=It(String.prototype.trim),y9e=It(Number.prototype.toString),v9e=It(Boolean.prototype.toString),MS=typeof BigInt>"u"?null:It(BigInt.prototype.toString),OS=typeof Symbol>"u"?null:It(Symbol.prototype.toString),Zt=It(Object.prototype.hasOwnProperty),wf=It(Object.prototype.toString),jt=It(RegExp.prototype.test),Ea=C9e(TypeError);function It(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return rC(n,e,r)}}function C9e(n){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return oC(n,t)}}function je(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Kf;if(ES&&ES(n,null),!ml(e))return n;let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=t(o);i!==o&&(f9e(e)||(e[r]=i),o=i)}n[o]=!0}return n}function b9e(n){for(let e=0;e<n.length;e++)Zt(n,e)||(n[e]=null);return n}function Rn(n){const e=Tu(null);for(const r of $6(n)){var t=u9e(r,2);const o=t[0],i=t[1];Zt(n,o)&&(ml(i)?e[o]=b9e(i):i&&typeof i=="object"&&i.constructor===Object?e[o]=Rn(i):e[o]=i)}return e}function k9e(n){switch(typeof n){case"string":return n;case"number":return y9e(n);case"boolean":return v9e(n);case"bigint":return MS?MS(n):"0";case"symbol":return OS?OS(n):"Symbol()";case"undefined":return wf(n);case"function":case"object":{if(n===null)return wf(n);const e=n,t=wo(e,"toString");if(typeof t=="function"){const r=t(e);return typeof r=="string"?r:wf(r)}return wf(n)}default:return wf(n)}}function wo(n,e){for(;n!==null;){const r=g9e(n,e);if(r){if(r.get)return It(r.get);if(typeof r.value=="function")return It(r.value)}n=h9e(n)}function t(){return null}return t}function x9e(n){try{return jt(n,""),!0}catch{return!1}}const DS=Nn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),lv=Nn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),av=Nn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),S9e=Nn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),cv=Nn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),w9e=Nn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),LS=Nn(["#text"]),FS=Nn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),uv=Nn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),PS=Nn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dp=Nn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),T9e=In(/{{[\w\W]*|^[\w\W]*}}/g),E9e=In(/<%[\w\W]*|^[\w\W]*%>/g),N9e=In(/\${[\w\W]*/g),$9e=In(/^data-[\-\w.\u00B7-\uFFFF]+$/),A9e=In(/^aria-[\-\w]+$/),IS=In(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),M9e=In(/^(?:\w+script|data):/i),O9e=In(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),D9e=In(/^html$/i),L9e=In(/^[a-z][.\w]*(-[.\w]+)+$/i),BS=In(/<[/\w!]/g),RS=In(/<[/\w]/g),F9e=In(/<\/no(script|embed|frames)/i),P9e=In(/\/>/i),Pr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},I9e=function(){return typeof window>"u"?null:window},B9e=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(r=t.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},zS=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},al=function(e,t,r,o){return Zt(e,t)&&ml(e[t])?je(o.base?Rn(o.base):{},e[t],o.transform):r};function M6(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I9e();const e=ue=>M6(ue);if(e.version="3.4.13",e.removed=[],!n||!n.document||n.document.nodeType!==Pr.document||!n.Element)return e.isSupported=!1,e;let t=n.document;const r=t,o=r.currentScript;n.DocumentFragment;const i=n.HTMLTemplateElement,s=n.Node,l=n.Element,a=n.NodeFilter,c=n.NamedNodeMap;c===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;const d=n.DOMParser,h=n.trustedTypes,f=l.prototype,g=wo(f,"cloneNode"),p=wo(f,"remove"),m=wo(f,"nextSibling"),_=wo(f,"childNodes"),C=wo(f,"parentNode"),y=wo(f,"shadowRoot"),v=wo(f,"attributes"),k=s&&s.prototype?wo(s.prototype,"nodeType"):null,x=s&&s.prototype?wo(s.prototype,"nodeName"):null,b=s&&s.prototype?wo(s.prototype,"ownerDocument"):null;if(typeof i=="function"){const ue=t.createElement("template");ue.content&&ue.content.ownerDocument&&(t=ue.content.ownerDocument)}let T,w="",S,N=!1,$=0;const O=function(){if($>0)throw Ea('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(D){O(),$++;try{return T.createHTML(D)}finally{$--}},A=function(D){O(),$++;try{return T.createScriptURL(D)}finally{$--}},F=function(){return N||(S=B9e(h,o),N=!0),S},P=t,z=P.implementation,I=P.createNodeIterator,L=P.createDocumentFragment,U=P.getElementsByTagName,W=r.importNode;let H=zS();e.isSupported=typeof $6=="function"&&typeof C=="function"&&z&&z.createHTMLDocument!==void 0;const fe=T9e,G=E9e,ae=N9e,R=$9e,J=A9e,B=M9e,Z=O9e,Ee=L9e;let zt=IS,Le=null;const Ge=je({},[...DS,...lv,...av,...cv,...LS]);let Xe=null;const fr=je({},[...FS,...uv,...PS,...Dp]);let mt=Object.seal(Tu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),hr=null,$r=null;const Lt=Object.seal(Tu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let gr=!0,Ar=!0,tl=!1,ka=!0,Ft=!1,pr=!0,Bn=!1,bo=!1,Ui=null,nl=null,xa=!1,rl=!1,pu=!1,mu=!1,Hi=!0,ti=!1;const mp="user-content-";let lf=!0,ko=!1,Mr={},Or=null;const _u=je({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _p=null;const af=je({},["audio","video","img","source","image","track"]);let Dr=null;const yu=je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ol="http://www.w3.org/1998/Math/MathML",vu="http://www.w3.org/2000/svg",Lr="http://www.w3.org/1999/xhtml";let il=Lr,Sa=!1,cf=null;const Iy=je({},[ol,vu,Lr],sv),yp=Nn(["mi","mo","mn","ms","mtext"]);let Fr=je({},yp);const vp=Nn(["annotation-xml"]);let uf=je({},vp);const By=je({},["title","style","font","a","script"]);let wa=null;const df=["application/xhtml+xml","text/html"],ff="text/html";let ft=null,xo=null;const hf=t.createElement("form"),Cp=function(D){return D instanceof RegExp||D instanceof Function},sl=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(xo&&xo===D)return;(!D||typeof D!="object")&&(D={}),D=Rn(D),wa=df.indexOf(D.PARSER_MEDIA_TYPE)===-1?ff:D.PARSER_MEDIA_TYPE,ft=wa==="application/xhtml+xml"?sv:Kf,Le=al(D,"ALLOWED_TAGS",Ge,{transform:ft}),Xe=al(D,"ALLOWED_ATTR",fr,{transform:ft}),cf=al(D,"ALLOWED_NAMESPACES",Iy,{transform:sv}),Dr=al(D,"ADD_URI_SAFE_ATTR",yu,{transform:ft,base:yu}),_p=al(D,"ADD_DATA_URI_TAGS",af,{transform:ft,base:af}),Or=al(D,"FORBID_CONTENTS",_u,{transform:ft}),hr=al(D,"FORBID_TAGS",Rn({}),{transform:ft}),$r=al(D,"FORBID_ATTR",Rn({}),{transform:ft}),Mr=Zt(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?Rn(D.USE_PROFILES):D.USE_PROFILES:!1,gr=D.ALLOW_ARIA_ATTR!==!1,Ar=D.ALLOW_DATA_ATTR!==!1,tl=D.ALLOW_UNKNOWN_PROTOCOLS||!1,ka=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ft=D.SAFE_FOR_TEMPLATES||!1,pr=D.SAFE_FOR_XML!==!1,Bn=D.WHOLE_DOCUMENT||!1,rl=D.RETURN_DOM||!1,pu=D.RETURN_DOM_FRAGMENT||!1,mu=D.RETURN_TRUSTED_TYPE||!1,xa=D.FORCE_BODY||!1,Hi=D.SANITIZE_DOM!==!1,ti=D.SANITIZE_NAMED_PROPS||!1,lf=D.KEEP_CONTENT!==!1,ko=D.IN_PLACE||!1,zt=x9e(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:IS,il=typeof D.NAMESPACE=="string"?D.NAMESPACE:Lr,Fr=Zt(D,"MATHML_TEXT_INTEGRATION_POINTS")&&D.MATHML_TEXT_INTEGRATION_POINTS&&typeof D.MATHML_TEXT_INTEGRATION_POINTS=="object"?Rn(D.MATHML_TEXT_INTEGRATION_POINTS):je({},yp),uf=Zt(D,"HTML_INTEGRATION_POINTS")&&D.HTML_INTEGRATION_POINTS&&typeof D.HTML_INTEGRATION_POINTS=="object"?Rn(D.HTML_INTEGRATION_POINTS):je({},vp);const K=Zt(D,"CUSTOM_ELEMENT_HANDLING")&&D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING=="object"?Rn(D.CUSTOM_ELEMENT_HANDLING):Tu(null);if(mt=Tu(null),Zt(K,"tagNameCheck")&&Cp(K.tagNameCheck)&&(mt.tagNameCheck=K.tagNameCheck),Zt(K,"attributeNameCheck")&&Cp(K.attributeNameCheck)&&(mt.attributeNameCheck=K.attributeNameCheck),Zt(K,"allowCustomizedBuiltInElements")&&typeof K.allowCustomizedBuiltInElements=="boolean"&&(mt.allowCustomizedBuiltInElements=K.allowCustomizedBuiltInElements),In(mt),Ft&&(Ar=!1),pu&&(rl=!0),Mr&&(Le=je({},LS),Xe=Tu(null),Mr.html===!0&&(je(Le,DS),je(Xe,FS)),Mr.svg===!0&&(je(Le,lv),je(Xe,uv),je(Xe,Dp)),Mr.svgFilters===!0&&(je(Le,av),je(Xe,uv),je(Xe,Dp)),Mr.mathMl===!0&&(je(Le,cv),je(Xe,PS),je(Xe,Dp))),Lt.tagCheck=null,Lt.attributeCheck=null,Zt(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?Lt.tagCheck=D.ADD_TAGS:ml(D.ADD_TAGS)&&(Le===Ge&&(Le=Rn(Le)),je(Le,D.ADD_TAGS,ft))),Zt(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?Lt.attributeCheck=D.ADD_ATTR:ml(D.ADD_ATTR)&&(Xe===fr&&(Xe=Rn(Xe)),je(Xe,D.ADD_ATTR,ft))),Zt(D,"ADD_URI_SAFE_ATTR")&&ml(D.ADD_URI_SAFE_ATTR)&&je(Dr,D.ADD_URI_SAFE_ATTR,ft),Zt(D,"FORBID_CONTENTS")&&ml(D.FORBID_CONTENTS)&&(Or===_u&&(Or=Rn(Or)),je(Or,D.FORBID_CONTENTS,ft)),Zt(D,"ADD_FORBID_CONTENTS")&&ml(D.ADD_FORBID_CONTENTS)&&(Or===_u&&(Or=Rn(Or)),je(Or,D.ADD_FORBID_CONTENTS,ft)),lf&&(Le["#text"]=!0),Bn&&je(Le,["html","head","body"]),Le.table&&(je(Le,["tbody"]),delete hr.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ea('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ea('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ee=T;T=D.TRUSTED_TYPES_POLICY;try{w=M("")}catch(ke){throw T=ee,ke}}else D.TRUSTED_TYPES_POLICY===null?(T=void 0,w=""):(T===void 0&&(T=F()),T&&typeof w=="string"&&(w=M("")));Nn&&Nn(D),xo=D},gf=je({},[...lv,...av,...S9e]),V=je({},[...cv,...w9e]),ce=function(D,K,ee){return K.namespaceURI===Lr?D==="svg":K.namespaceURI===ol?D==="svg"&&(ee==="annotation-xml"||Fr[ee]):!!gf[D]},ze=function(D,K,ee){return K.namespaceURI===Lr?D==="math":K.namespaceURI===vu?D==="math"&&uf[ee]:!!V[D]},St=function(D,K,ee){return K.namespaceURI===vu&&!uf[ee]||K.namespaceURI===ol&&!Fr[ee]?!1:!V[D]&&(By[D]||!gf[D])},qi=function(D){let K=C(D);(!K||!K.tagName)&&(K={namespaceURI:il,tagName:"template"});const ee=Kf(D.tagName),ke=Kf(K.tagName);return cf[D.namespaceURI]?D.namespaceURI===vu?ce(ee,K,ke):D.namespaceURI===ol?ze(ee,K,ke):D.namespaceURI===Lr?St(ee,K,ke):!!(wa==="application/xhtml+xml"&&cf[D.namespaceURI]):!1},So=function(D){Su(e.removed,{element:D});try{C(D).removeChild(D)}catch{if(p(D),!C(D))throw Ea("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},pf=function(D){mf(D);const K=_(D);if(K){const ke=[];xu(K,Ne=>{Su(ke,Ne)}),xu(ke,Ne=>{try{p(Ne)}catch{}})}const ee=v(D);if(ee)for(let ke=ee.length-1;ke>=0;--ke){const Ne=ee[ke],Pe=Ne&&Ne.name;if(typeof Pe=="string")try{D.removeAttribute(Pe)}catch{}}},ji=function(D,K){try{Su(e.removed,{attribute:K.getAttributeNode(D),from:K})}catch{Su(e.removed,{attribute:null,from:K})}if(K.removeAttribute(D),D==="is")if(rl||pu)try{So(K)}catch{}else try{K.setAttribute(D,"")}catch{}},bp=function(D){const K=v(D);if(K)for(let ee=K.length-1;ee>=0;--ee){const ke=K[ee],Ne=ke&&ke.name;if(!(typeof Ne!="string"||Xe[ft(Ne)]))try{D.removeAttribute(Ne)}catch{}}},mf=function(D){const K=[D];for(;K.length>0;){const ee=K.pop();(k?k(ee):ee.nodeType)===Pr.element&&bp(ee);const Ne=_(ee);if(Ne)for(let Pe=Ne.length-1;Pe>=0;--Pe)K.push(Ne[Pe])}},OP=function(D){if(!pr)return;const K=[D];for(;K.length>0;){const ee=K.pop(),ke=k?k(ee):ee.nodeType;if(ke===Pr.processingInstruction||ke===Pr.comment&&jt(RS,ee.data)){try{p(ee)}catch{}continue}if(ke===Pr.element){const Pe=ee,ht=ft(x?x(ee):ee.nodeName);try{Pe.hasAttribute&&Pe.hasAttribute("patchsrc")&&Pe.removeAttribute("patchsrc"),Pe.hasAttribute&&Pe.hasAttribute("for")&&ht!=="label"&&ht!=="output"&&Pe.removeAttribute("for")}catch{}}const Ne=_(ee);if(Ne)for(let Pe=Ne.length-1;Pe>=0;--Pe)K.push(Ne[Pe])}},_5=function(D){let K=null,ee=null;if(xa)D="<remove></remove>"+D;else{const Pe=$S(D,/^[\r\n\t ]+/);ee=Pe&&Pe[0]}wa==="application/xhtml+xml"&&il===Lr&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const ke=T?M(D):D;if(il===Lr)try{K=new d().parseFromString(ke,wa)}catch{}if(!K||!K.documentElement){K=z.createDocument(il,"template",null);try{K.documentElement.innerHTML=Sa?w:ke}catch{}}const Ne=K.body||K.documentElement;return D&&ee&&Ne.insertBefore(t.createTextNode(ee),Ne.childNodes[0]||null),il===Lr?U.call(K,Bn?"html":"body")[0]:Bn?K.documentElement:Ne},y5=function(D){const K=b?b(D):D.ownerDocument;return I.call(K||D,D,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},kp=function(D){return D=Sf(D,fe," "),D=Sf(D,G," "),D=Sf(D,ae," "),D},Ry=function(D){var K;D.normalize();const ee=b?b(D):D.ownerDocument,ke=I.call(ee||D,D,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null);let Ne=ke.nextNode();for(;Ne;)Ne.data=kp(Ne.data),Ne=ke.nextNode();const Pe=(K=D.querySelectorAll)===null||K===void 0?void 0:K.call(D,"template");Pe&&xu(Pe,ht=>{Cu(ht.content)&&Ry(ht.content)})},xp=function(D){const K=x?x(D):null;return typeof K!="string"||ft(K)!=="form"?!1:typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||D.attributes!==v(D)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function"||D.nodeType!==k(D)||D.childNodes!==_(D)},Cu=function(D){if(!k||typeof D!="object"||D===null)return!1;try{return k(D)===Pr.documentFragment}catch{return!1}},_f=function(D){if(!k||typeof D!="object"||D===null)return!1;try{return typeof k(D)=="number"}catch{return!1}};function ni(ue,D,K){ue.length!==0&&xu(ue,ee=>{ee.call(e,D,K,xo)})}const DP=function(D,K){return!!(pr&&D.hasChildNodes()&&!_f(D.firstElementChild)&&jt(BS,D.textContent)&&jt(BS,D.innerHTML)||pr&&D.namespaceURI===Lr&&K==="style"&&_f(D.firstElementChild)||D.nodeType===Pr.processingInstruction||pr&&D.nodeType===Pr.comment&&jt(RS,D.data))},LP=function(D,K,ee){if(!hr[K]&&k5(K)&&(mt.tagNameCheck instanceof RegExp&&jt(mt.tagNameCheck,K)||mt.tagNameCheck instanceof Function&&mt.tagNameCheck(K)))return!1;if(lf&&!Or[K]){const ke=C(D),Ne=_(D);if(Ne&&ke){const Pe=Ne.length;for(let ht=Pe-1;ht>=0;--ht){const wt=D===ee?g(Ne[ht],!0):Ne[ht];ke.insertBefore(wt,m(D))}}}return So(D),!0},v5=function(D,K,ee,ke){return D.length===0?K:K===ee||K===ke?Rn(K):K},C5=function(D,K){if(ni(H.beforeSanitizeElements,D,null),D!==K&&C(D)===null)return ko&&mf(D),!0;if(xp(D))return So(D),!0;const ee=ft(x?x(D):D.nodeName);if(Le=v5(H.uponSanitizeElement,Le,Ge,Ui),ni(H.uponSanitizeElement,D,{tagName:ee,allowedTags:Le}),D!==K&&C(D)===null)return ko&&mf(D),!0;if(DP(D,ee))return So(D),!0;if(hr[ee]||!(Lt.tagCheck instanceof Function&&Lt.tagCheck(ee))&&!Le[ee]){const Ne=LP(D,ee,K);return Ne===!1&&ni(H.afterSanitizeElements,D,null),Ne}if((k?k(D):D.nodeType)===Pr.element&&!qi(D)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&jt(F9e,D.innerHTML))return So(D),!0;if(Ft&&D.nodeType===Pr.text){const Ne=kp(D.textContent);D.textContent!==Ne&&(Su(e.removed,{element:D.cloneNode()}),D.textContent=Ne)}return ni(H.afterSanitizeElements,D,null),!1},b5=function(D,K,ee){if($r[K]||pr&&K==="patchsrc"||pr&&K==="for"&&D!=="label"&&D!=="output"||Hi&&(K==="id"||K==="name")&&(ee in t||ee in hf))return!1;const ke=Xe[K]||Lt.attributeCheck instanceof Function&&Lt.attributeCheck(K,D);if(!(Ar&&jt(R,K))){if(!(gr&&jt(J,K))){if(ke){if(!Dr[K]){if(!jt(zt,Sf(ee,Z,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&D!=="script"&&AS(ee,"data:")===0&&_p[D])){if(!(tl&&!jt(B,Sf(ee,Z,"")))){if(ee)return!1}}}}}else if(!(k5(D)&&(mt.tagNameCheck instanceof RegExp&&jt(mt.tagNameCheck,D)||mt.tagNameCheck instanceof Function&&mt.tagNameCheck(D))&&(mt.attributeNameCheck instanceof RegExp&&jt(mt.attributeNameCheck,K)||mt.attributeNameCheck instanceof Function&&mt.attributeNameCheck(K,D))||K==="is"&&mt.allowCustomizedBuiltInElements&&(mt.tagNameCheck instanceof RegExp&&jt(mt.tagNameCheck,ee)||mt.tagNameCheck instanceof Function&&mt.tagNameCheck(ee))))return!1}}return!0},FP=je({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),k5=function(D){return!FP[Kf(D)]&&jt(Ee,D)},PP=function(D,K,ee,ke){if(T&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!ee)switch(h.getAttributeType(D,K)){case"TrustedHTML":return M(ke);case"TrustedScriptURL":return A(ke)}return ke},IP=function(D,K,ee,ke){try{ee?D.setAttributeNS(ee,K,ke):D.setAttribute(K,ke),xp(D)?So(D):NS(e.removed)}catch{ji(K,D)}},x5=function(D){ni(H.beforeSanitizeAttributes,D,null);const K=D.attributes;if(!K||xp(D))return;Xe=v5(H.uponSanitizeAttribute,Xe,fr,nl);const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Xe,forceKeepAttr:void 0};let ke=K.length;const Ne=ft(D.nodeName);for(;ke--;){const Pe=K[ke],ht=Pe.name,wt=Pe.namespaceURI,mr=Pe.value,_r=ft(ht),Vy=mr;let rr=ht==="value"?Vy:_9e(Vy);if(ee.attrName=_r,ee.attrValue=rr,ee.keepAttr=!0,ee.forceKeepAttr=void 0,ni(H.uponSanitizeAttribute,D,ee),rr=ee.attrValue,ti&&(_r==="id"||_r==="name")&&AS(rr,mp)!==0&&(ji(ht,D),rr=mp+rr),pr&&jt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,rr)){ji(ht,D);continue}if(_r==="attributename"&&$S(rr,"href")){ji(ht,D);continue}if(!ee.forceKeepAttr){if(!ee.keepAttr){ji(ht,D);continue}if(!ka&&jt(P9e,rr)){ji(ht,D);continue}if(Ft&&(rr=kp(rr)),!b5(Ne,_r,rr)){ji(ht,D);continue}rr=PP(Ne,_r,wt,rr),rr!==Vy&&IP(D,ht,wt,rr)}}ni(H.afterSanitizeAttributes,D,null)},Sp=function(D){let K=null;const ee=y5(D);for(ni(H.beforeSanitizeShadowDOM,D,null);K=ee.nextNode();)if(ni(H.uponSanitizeShadowNode,K,null),C5(K,D),x5(K),Cu(K.content)&&Sp(K.content),(k?k(K):K.nodeType)===Pr.element){const Ne=y(K);Cu(Ne)&&(zy(Ne),Sp(Ne))}ni(H.afterSanitizeShadowDOM,D,null)},zy=function(D){const K=[{node:D,shadow:null}];for(;K.length>0;){const ee=K.pop();if(ee.shadow){Sp(ee.shadow);continue}const ke=ee.node,Pe=(k?k(ke):ke.nodeType)===Pr.element,ht=_(ke);if(ht)for(let wt=ht.length-1;wt>=0;--wt)K.push({node:ht[wt],shadow:null});if(Pe){const wt=x?x(ke):null;if(typeof wt=="string"&&ft(wt)==="template"){const mr=ke.content;Cu(mr)&&K.push({node:mr,shadow:null})}}if(Pe){const wt=y(ke);Cu(wt)&&K.push({node:null,shadow:wt},{node:wt,shadow:null})}}};return e.sanitize=function(ue){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,ee=null,ke=null,Ne=null;if(Sa=!ue,Sa&&(ue="<!-->"),typeof ue!="string"&&!_f(ue)&&(ue=k9e(ue),typeof ue!="string"))throw Ea("dirty is not a string, aborting");if(!e.isSupported)return ue;bo?(Le=Ui,Xe=nl):sl(D),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(Le=Rn(Le)),H.uponSanitizeAttribute.length>0&&(Xe=Rn(Xe)),e.removed=[];const Pe=ko&&typeof ue!="string"&&_f(ue);if(Pe){OP(ue);const mr=x?x(ue):ue.nodeName;if(typeof mr=="string"){const _r=ft(mr);if(!Le[_r]||hr[_r])throw pf(ue),Ea("root node is forbidden and cannot be sanitized in-place")}if(xp(ue))throw pf(ue),Ea("root node is clobbered and cannot be sanitized in-place");try{zy(ue)}catch(_r){throw pf(ue),_r}}else if(_f(ue))K=_5("<!---->"),ee=K.ownerDocument.importNode(ue,!0),ee.nodeType===Pr.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?K=ee:K.appendChild(ee),zy(ee);else{if(!rl&&!Ft&&!Bn&&ue.indexOf("<")===-1)return T&&mu?M(ue):ue;if(K=_5(ue),!K)return rl?null:mu?w:""}K&&xa&&So(K.firstChild);const ht=Pe?ue:K;try{const mr=y5(ht);for(;ke=mr.nextNode();)C5(ke,ht),x5(ke),Cu(ke.content)&&Sp(ke.content)}catch(mr){throw Pe&&(pf(ue),xu(e.removed,_r=>{_r.element&&mf(_r.element)})),mr}if(Pe)return xu(e.removed,mr=>{mr.element&&mf(mr.element)}),Ft&&Ry(ue),ue;if(rl){if(Ft&&Ry(K),pu)for(Ne=L.call(K.ownerDocument);K.firstChild;)Ne.appendChild(K.firstChild);else Ne=K;return(Xe.shadowroot||Xe.shadowrootmode)&&(Ne=W.call(r,Ne,!0)),Ne}let wt=Bn?K.outerHTML:K.innerHTML;return Bn&&Le["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&jt(D9e,K.ownerDocument.doctype.name)&&(wt="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
19
+ `+wt),Ft&&(wt=kp(wt)),T&&mu?M(wt):wt},e.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sl(ue),bo=!0,Ui=Le,nl=Xe},e.clearConfig=function(){xo=null,bo=!1,Ui=null,nl=null,T=S,w=""},e.isValidAttribute=function(ue,D,K){xo||sl({});const ee=ft(ue),ke=ft(D);return b5(ee,ke,K)},e.addHook=function(ue,D){typeof D=="function"&&Zt(H,ue)&&Su(H[ue],D)},e.removeHook=function(ue,D){if(Zt(H,ue)){if(D!==void 0){const K=p9e(H[ue],D);return K===-1?void 0:m9e(H[ue],K,1)[0]}return NS(H[ue])}},e.removeHooks=function(ue){Zt(H,ue)&&(H[ue]=[])},e.removeAllHooks=function(){H=zS()},e}var R9e=M6();const z9e=["innerHTML"],V9e={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},W9e=u.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(n){const e=n,t=new s9e({html:!1,breaks:!0,linkify:!1,typographer:!0}),r=u.computed(()=>{if(!e.content)return"";const o=t.render(e.content);return R9e.sanitize(o,{ALLOWED_TAGS:["p","br","strong","em","u","s","del","ul","ol","li","blockquote","code","pre","h1","h2","h3","h4","h5","h6","hr","a"],ALLOWED_ATTR:["href","target","rel"]})});return(o,i)=>n.content?(u.openBlock(),u.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:r.value},null,8,z9e)):(u.openBlock(),u.createElementBlock("div",V9e,u.toDisplayString(n.placeholder),1))}});function j(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);throw t.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function K9e(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);t.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Zo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,U9e=Zo&&"documentMode"in document?document.documentMode:null,To=Zo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Rs=Zo&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),cm=!(!Zo||!("InputEvent"in window)||U9e)&&"getTargetRanges"in new window.InputEvent("input"),gd=Zo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,O6=Zo&&/Android/.test(navigator.userAgent),A0=Zo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!O6,D6=Zo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),um=Zo&&O6&&D6,M0=Zo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&To&&!D6,H9e=0,q9e=1,j9e=2,L6=128,Z9e=1,G9e=2,J9e=3,Y9e=4,X9e=5,Q9e=6,Bh=A0||gd||M0?" ":"​",qa=`
20
+
21
+ `,qk=Rs?" ":Bh,or={bold:1,capitalize:1024,code:16,highlight:L6,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},e6e={directionless:1,unmergeable:2},dm={center:2,end:6,justify:4,left:1,right:3,start:5},t6e={[G9e]:"center",[Q9e]:"end",[Y9e]:"justify",[Z9e]:"left",[J9e]:"right",[X9e]:"start"},n6e={normal:0,segmented:2,token:1},r6e={[H9e]:"normal",[j9e]:"segmented",[q9e]:"token"},VS="$config";function WS(){return da()._blockCursorElement}function o6e(n){return n!==null&&n.nodeType===1&&n.hasAttribute("data-lexical-slot")}let F6=class f1{constructor(e,t,r){E(this,"element");E(this,"before");E(this,"after");this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new f1(this.element,e,this.after)}withAfter(e){return new f1(this.element,this.before,e)}withElement(e){return this.element===e?this:new f1(e,this.before,this.after)}insertChild(e){const t=this.getInsertionAnchor();return t!==null&&t.parentElement!==this.element&&j(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&j(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&j(359),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;return t===this.getInsertionAnchor()?null:t}getFirstChildAnchor(){return this.after}resolveLeafPosition(e,t,r){if(this.element===e)return t===e&&r===0?"before":"after";const o=KS(e,this.element);if(o===null)return"after";const i=Array.prototype.indexOf.call(e.childNodes,o);if(i<0)return"after";if(t===e)return r<=i?"before":"after";const s=KS(e,t);if(s===null)return"after";const l=Array.prototype.indexOf.call(e.childNodes,s);return l>=0&&l<=i?"before":"after"}getInsertionAnchor(){return this.before}};function KS(n,e){let t=e;for(;t!==null&&t.parentNode!==n;)t=t.parentNode;return t}let P6=class h1 extends F6{withBefore(e){return new h1(this.element,e,this.after)}withAfter(e){return new h1(this.element,this.before,e)}withElement(e){return this.element===e?this:new h1(e,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()}getFirstChildAnchor(){let e=super.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;for(;o6e(t);)e=t,t=t.nextSibling;const r=e?e.nextSibling:this.element.firstChild;return r!==null&&r===WS()?r:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(this.element.__lexicalLastChildKind=e,e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(M0||gd||A0);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=qr().createElement("br");if(i.setAttribute("data-lexical-managed-linebreak","true"),r.insertBefore(i,o),e){const s=qr().createElement("img");s.setAttribute("data-lexical-managed-linebreak","true"),s.style.setProperty("display","inline","important"),s.style.setProperty("border","0px","important"),s.style.setProperty("margin","0px","important"),s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){const e=this.getFirstChild(),t=this.getInsertionAnchor();let r=0;for(let o=this.element.firstChild;o!==null&&o!==e&&o!==t;o=o.nextSibling)r++;return r}resolveChildIndex(e,t,r,o){if(r===this.element){const a=this.getFirstChildOffset(),c=WS(),d=this.element.childNodes,h=Math.min(o,d.length);let f=0;for(let g=a;g<h;g++)d[g]!==c&&f++;return[e,Math.min(f,e.getChildrenSize())]}const i=US(t,r);i.push(o);const s=US(t,this.element);let l=e.getIndexWithinParent();for(let a=0;a<s.length;a++){const c=i[a],d=s[a];if(c===void 0||c<d)break;if(c>d){l+=1;break}}return[e.getParentOrThrow(),l]}};function US(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;t.push(o)}return r!==n&&j(225),t.reverse()}let I6;try{I6="0.49.0+prod.esm"}catch{}const B6=I6??'"<unknown>+source"';let Tf=class{constructor(){E(this,"_front",new Set);E(this,"_back",new Set);E(this,"_cache")}get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){const e=Array.from(this._front).reverse();for(const t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}};const Na=null;function R6(n,e=1e3){return n instanceof iC?n.clone():n.size<e?new Map(n):new iC().init(new Map(n),void 0,n.size)}let iC=class z6{constructor(){E(this,"_mutable",!1);E(this,"_old");E(this,"_nursery");E(this,"_size",0)}clone(){return this._mutable=!1,new z6().init(this._old,this._nursery,this._size)}init(e,t,r){return this._old=e,this._nursery=t,this._size=r,this}get size(){return this._size}has(e){return this.get(e)!==void 0}getWithTombstone(e){const t=this._nursery&&this._nursery.get(e);return t!==void 0?t:this._old&&this._old.get(e)}get(e){const t=this.getWithTombstone(e);return t===Na?void 0:t}shouldCompact(){return this._nursery!==void 0&&2*this._nursery.size>this._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(e=!1){if(this._nursery&&this._nursery.size>0&&(e||this.shouldCompact())){const t=new Map(this._old);for(const[r,o]of this._nursery)o!==Na?t.set(r,o):t.delete(r);this._old=t,this._nursery=void 0}return this._mutable=!1,this}set(e,t){const r=this.getWithTombstone(e);if(r===t)return this;const o=this.getNursery();return r!==Na&&r!==void 0||(this._size++,r===Na&&o.delete(e)),o.set(e,t),this}delete(e){const t=this.has(e);return t&&(this.getNursery().set(e,Na),this._size--),t}getOrInsert(e,t){const r=this.get(e);return r!==void 0?r:(this.set(e,t),t)}getOrInsertComputed(e,t){const r=this.get(e);if(r!==void 0)return r;const o=t(e);return this.set(e,o),o}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(const e of this.entries())yield e[0]}*values(){for(const e of this.entries())yield e[1]}*entries(){const e=this._nursery,t=this._old;if(t)for(const r of t){const o=r[0],i=e?e.get(o):void 0;i!==Na&&(i!==void 0&&(r[1]=i),yield r)}if(e)for(const r of e)r[1]===Na||t&&t.has(r[0])||(yield r)}forEach(e,t){t!==void 0&&(e=e.bind(t));for(const[r,o]of this.entries())e(o,r,this)}get[Symbol.toStringTag](){return"GenMap"}[Symbol.iterator](){return this.entries()}};function fm(n,e,t,r,o,i){if(q(n)){let s=n.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&((q(s)||Es(s)&&s.__slots!==null)&&fm(s,l,t,r,o,i),t.has(l)||i.delete(l),o.push(l)),s=s.getNextSibling()}}for(const s of Es(n)&&n.__slots!==null?n.__slots.values():[]){const l=r.get(s);l!==void 0&&kc(l)&&l.__slotHost===e&&((q(l)||Es(l)&&l.__slots!==null)&&fm(l,s,t,r,o,i),t.has(s)||i.delete(s),o.push(s))}}let sC=!1,jk=0;function i6e(n){jk=n.timeStamp}function dv(n,e,t){const r=n.nodeName==="BR",o=e.__lexicalLineBreak;return o&&(n===o||r&&n.previousSibling===o)||r&&qd(n,t)!==void 0}function s6e(n,e,t){const r=Go(Nr(t)),o=r&&Ho(r,t._rootElement);let i=null,s=null;o!==null&&o.anchorNode===n&&(i=o.anchorOffset,s=o.focusOffset);const l=n.nodeValue;l!==null&&l3(e,l,i,s,!1)}function l6e(n,e,t){if(Ce(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return Ki(e)&&t.isAttached()}function a6e(n,e,t){for(let r=n;r&&!n$(r);r=jd(r)){const o=qd(r,e);if(o!==void 0){const i=_t(o,t);if(i)return Qe(i)||!Bt(r)?void 0:[r,i]}}}function V6(n,e,t){sC=!0;const r=performance.now()-jk>100;try{io(n,()=>{const o=Ve()||function(h){return h.read("latest",()=>{const f=Ve();return f!==null?f.clone():null})}(n),i=new Map,s=n._editorState,l=n._blockCursorElement;let a=!1,c="";for(let h=0;h<e.length;h++){const f=e[h],g=f.type,p=f.target,m=a6e(p,n,s);if(!m)continue;const[_,C]=m;if(g==="characterData")r&&de(C)&&Ki(p)&&l6e(o,p,C)&&s6e(p,C,n);else if(g==="childList"){a=!0;const y=f.addedNodes;for(let x=0;x<y.length;x++){const b=y[x],T=K8(b),w=b.parentNode;if(!(w==null||b===l||T!==null||dv(b,w,n)||n._slotsUsed&&Bt(b)&&b.hasAttribute("data-lexical-slot")||n$(b))){if(Rs){const S=(Bt(b)?b.innerText:null)||b.nodeValue;S&&(c+=S)}w.removeChild(b)}}const v=f.removedNodes,k=v.length;if(k>0){let x=0;for(let b=0;b<k;b++){const T=v[b];(dv(T,p,n)||l===T)&&(p.appendChild(T),x++)}k!==x&&i.set(_,C)}}}if(i.size>0)for(const[h,f]of i)f.reconcileObservedMutation(h,n);const d=t.takeRecords();if(d.length>0){for(let h=0;h<d.length;h++){const f=d[h],g=f.addedNodes,p=f.target;for(let m=0;m<g.length;m++){const _=g[m],C=_.parentNode;C==null||_.nodeName!=="BR"||dv(_,p,n)||C.removeChild(_)}}t.takeRecords()}o!==null&&(a&&kr(o),Rs&&J8(n)&&o.insertRawText(c))})}finally{sC=!1}}function W6(n){const e=n._observer;e!==null&&V6(n,e.takeRecords(),e)}function K6(n){(function(e){jk===0&&Nr(e).addEventListener("textInput",i6e,!0)})(n),n._observer=new MutationObserver((e,t)=>{V6(n,e,t)})}function c6e(n){const e=new Map,t=new Set;for(const{ownNodeConfig:r}of f3(typeof n=="function"?n:n.replace))if(r&&r.stateConfigs)for(const o of r.stateConfigs){let i;"stateConfig"in o?(i=o.stateConfig,o.flat&&t.add(i.key)):i=o,e.set(i.key,i)}return{flatKeys:t,sharedConfigMap:e}}const HS=new Set(["__proto__","constructor","prototype"]);let u6e=class U6{constructor(e,t,r=void 0,o=new Map,i=void 0){E(this,"node");E(this,"knownState");E(this,"unknownState");E(this,"sharedNodeState");E(this,"size");this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,l=i!==void 0?i:function(a,c,d){let h=d.size;if(c)for(const f in c){const g=a.get(f);g&&d.has(g)||h++}return h}(s,r,o);this.size=l}getValue(e){const t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const o=this.unknownState[e.key];o!==void 0&&(r=e.parse(o)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return qS(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:r}=this,o=new Map(this.knownState);return new U6(e,t,function(i,s,l){let a;if(l)for(const[c,d]of Object.entries(l)){if(HS.has(c))continue;const h=i.get(c);h?s.has(h)||s.set(h,h.parse(d)):(a=a||{},a[c]=d)}return a}(t.sharedConfigMap,o,r),o,this.size)}resetOnCopyNode(){for(const e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:o,unknownState:i}=this;o.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=qS(i)),this.size++),o.set(e,t)}updateFromUnknown(e,t){if(HS.has(e))return;const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const r of t.keys())t.set(r,r.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[r,o]of Object.entries(e))this.updateFromUnknown(r,o)}};function d6e(n){const e=n.getWritable(),t=e.__state?e.__state.getWritable(e):new u6e(e,H6(e));return e.__state=t,t}function H6(n){return n.__state?n.__state.sharedNodeState:z8(da(),n.getType()).sharedNodeState}function qS(n){if(n)for(const e in n)return n}function jS(n,e,t){for(const[r,o]of e.knownState){if(n.has(r.key))continue;n.add(r.key);const i=t?t.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function ZS(n,e,t){const{unknownState:r}=e,o=t?t.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!n.has(i)&&(n.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function GS(n,e){const t=n.__state;return t&&t.node===n?t.getWritable(e):t}function JS(n,e){const t=n.__mode,r=n.__format,o=n.__style,i=e.__mode,s=e.__format,l=e.__style,a=n.__state,c=e.__state;return(t===null||t===i)&&(r===null||r===s)&&(o===null||o===l)&&(n.__state===null||a===c||function(d,h){if(d===h)return!0;const f=new Set;return!(d&&jS(f,d,h)||h&&jS(f,h,d)||d&&ZS(f,d,h)||h&&ZS(f,h,d))}(a,c))}function YS(n,e){const t=n.mergeWithSibling(e),r=Je()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function XS(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&de(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(JS(e,r)){r=YS(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&de(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(JS(r,t)){r=YS(r,t);break}break}t.remove()}}else r.remove()}function f6e(n){return QS(n.anchor),QS(n.focus),n}function QS(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,o;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),o=!0):(r=e.getChildAtIndex(t),o=!1),de(r)){n.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!q(r))break;n.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}const Rh=Symbol.for("@lexical/CachedTextSize");function e7(n,e){return aC.read(()=>{let t=0,r=n;for(let o=0;o<e&&r!==null;o++){const i=Oo.get(r);if(i===void 0&&j(345,r),q(i)){const s=vt.get(r);if(s!==void 0&&q(s)&&s.__parent!==i.__parent)t+=i.getTextContentSize();else{const l=vc.get(r),a=l&&l.__lexicalTextContent;typeof a!="string"&&j(346,i.getType()),t+=a.length}o<e-1&&!i.isInline()&&(t+=2)}else{const s=i[Rh];s===void 0&&j(347,i.getType(),r),t+=s}r=i.__next}return t},{editor:Ze})}function q6(n){q(n)||n[Rh]===void 0&&(n[Rh]=de(n)?n.__text.length:n.getTextContentSize())}const h6e=4;let zh,Ze,Vh,Ie="",Et=null,zn=null,gn=null;function _i(){return{firstTextKey:gn,format:Et,style:zn}}function ro(n){n.firstTextKey!==null&&(Et=n.format,zn=n.style,gn=n.firstTextKey)}function lC(n){if(gn!==null)return;const e=n.__lexicalFirstTextKey;if(e===void 0&&j(348),e===null)return;const t=vt.get(e);de(t)&&(Et=t.getFormat(),zn=t.getStyle(),gn=e)}let O0,eh,th,Oo,aC,vt,vc,cC,Wh,Cc,ys=!1,hm=!1;function $l(n,e){const t=Oo.get(n),r=vt.has(n);if(e!==null){const o=gC(n);o.parentNode===e&&e.removeChild(o)}if(!r){if(Ze._keyToDOMMap.delete(n),q(t)){const o=Mm(t,Oo);uC(o,0,o.length-1,null)}if(t!==void 0){for(const o of Rr(t).values()){const i=fC(o);$l(o,null),i!==null&&i.remove()}a3(Wh,Vh,O0,t,"destroyed")}}}function uC(n,e,t,r){for(let o=e;o<=t;++o){const i=n[o];i!==void 0&&$l(i,r)}}function $a(n,e){n.setProperty("text-align",e)}const g6e="40px";function j6(n,e){const t=zh.theme.indent;if(typeof t=="string"){const r=n.classList.contains(t);e>0&&!r?n.classList.add(t):e<1&&r&&n.classList.remove(t)}n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * var(--lexical-indent-base-value, ${g6e}))`)}function Z6(n,e){const t=n.style;e===0?$a(t,""):e===1?$a(t,"left"):e===2?$a(t,"center"):e===3?$a(t,"right"):e===4?$a(t,"justify"):e===5?$a(t,"start"):e===6&&$a(t,"end")}function dC(n,e){const t=function(r){const o=r.__dir;if(o!==null)return o;if(Fn(r))return null;const i=r.getParent();return i===null||un(i)&&i.__dir===null?"auto":null}(e);t!==null?n.dir=t:n.removeAttribute("dir")}function G6(n){const e=qr().createElement("div");return e.setAttribute("data-lexical-slot",n),e.style.display="none",e}function J6(n,e,t){e||n.contentEditable==="false"?t$e(t,Ze):t.removeAttribute("contenteditable")}function t7(n,e,t){const r=Ie,o=_i();Ie="";let i="";const s=Qe(n);for(const[l,a]of t){const c=G6(l);J6(e,s,c),e.appendChild(c),Ie="";const d=_i();Al(a,co(n,c,Ze)),ro(d),Y6(n,l,e,c),i+=Ie}return ro(o),Ie=r,i}function Rr(n){return Es(n)&&n.__slots!==null?n.__slots:o$}function Y6(n,e,t,r){const o=Cc.$getSlotTargetElement(n,e,t,Ze);o!==null&&(r.parentElement!==o&&o.appendChild(r),r.style.display="")}function fC(n){const e=vc.get(n);return e!==void 0?e.parentElement:null}function n7(n,e,t){const r=Rr(n),o=Rr(e);for(const[d,h]of r)if(!o.has(d)){const f=fC(h);$l(h,null),f!==null&&f.remove()}const i=Ie,s=_i();let l="",a=null;const c=Qe(e);for(const[d,h]of o){const f=r.get(d);let g=f!==void 0?fC(f):null;Ie="";const p=_i();if(g===null){g=G6(d);let m=null;for(const _ of t.children)if(!_.hasAttribute("data-lexical-slot")){m=_;break}t.insertBefore(g,m),Al(h,co(e,g,Ze))}else f===h?fs(h,g):(f!==void 0&&$l(f,g),Al(h,co(e,g,Ze)));if(ro(p),J6(t,c,g),Y6(e,d,t,g),l+=Ie,g.parentElement===t){const m=a===null?t.firstChild:a.nextSibling;m!==g&&t.insertBefore(g,m),a=g}}return ro(s),Ie=i,l}function Al(n,e){const t=vt.get(n);if(t===void 0&&j(60),e!==null){const o=Oo.get(n);if(o!==void 0){const i=vc.get(n);if(i!==void 0){const s=kc(o)?o.__slotHost:null,l=kc(t)?t.__slotHost:null,a=o.__parent!==t.__parent||s!==l,c=l!==null&&i.parentElement!==e.element;if(a||c)return e.insertChild(i),fs(n,e.element)}}}const r=Cc.$createDOM(t,Ze);if(function(o,i,s){const l=s._keyToDOMMap;U8(i,s,o),l.set(o,i)}(n,r,Ze),de(t)?r.setAttribute("data-lexical-text","true"):Qe(t)&&(r.setAttribute("data-lexical-decorator","true"),e$e(r,{captureSelection:!0})),q(t)){const o=t.__indent,i=t.__size;dC(r,t),o!==0&&j6(r,o);const s=Rr(t),l=s.size>0?t7(t,r,s):"";if(i===0)r.__lexicalTextContent=l,r.__lexicalFirstTextKey=null,Ie+=l,s.size>0&&(r.__lexicalSlotTextLength=l.length);else{const c=Ie,d=i-1;if(hC(Mm(t,vt),t,0,d,co(t,r,Ze)),l!==""){const h=r.__lexicalTextContent||"";r.__lexicalTextContent=l+h,Ie=c+l+h}s.size>0&&(r.__lexicalSlotTextLength=l.length)}const a=t.__format;a!==0&&Z6(r,a),t.isInline()||X6(null,t,r)}else{const o=t.getTextContent();if(Qe(t)){const i=t.decorate(Ze,zh);i!==null&&Q6(n,i),r.contentEditable="false";const s=Rr(t);s.size>0&&t7(t,r,s)}Ie+=o}return e!==null&&e.insertChild(r),Cc.$decorateDOM(t,null,r,Ze),q6(t),a3(Wh,Vh,O0,t,"created"),r}function hC(n,e,t,r,o){const i=Ie,s=_i();Ie="",Et=null,zn=null,gn=null;let l=t;for(;l<=r;++l){const c=_i();Al(n[l],o);const d=vt.get(n[l]);d!==null&&de(d)?Et===null&&(Et=d.getFormat(),zn=d.getStyle(),gn=d.__key):q(d)&&l<r&&!d.isInline()&&(Ie+=qa),ro(c)}const a=Ze._keyToDOMMap.get(e.__key);a===void 0&&j(349,e.__key),a.__lexicalTextContent=Ie,a.__lexicalFirstTextKey=gn,Ie=i+Ie,ro(s)}function X6(n,e,t){const r=co(e,t,Ze),o=r.element.__lexicalLastChildKind??null,i=function(s,l){if(s){const a=s.__last;if(a){const c=l.get(a);if(c)return jl(c)?"line-break":Qe(c)&&c.isInline()?"decorator":null}return Rr(s).size>0?null:"empty"}return null}(e,vt);o!==i&&r.setManagedLineBreak(i)}function p6e(n,e,t){var r;Et=null,zn=null,gn=null,function(o,i,s){const l=Ie,a=o.__size,c=i.__size;Ie="";const d=s.element,h=Ze._keyToDOMMap.get(i.__key);h===void 0&&j(351,i.__key);const f=c-a;if(!ys&&Math.abs(f)<=1&&a>=h6e&&o.__first===i.__first&&(f!==0||!Ze._cloneNotNeeded.has(o.__key))){const g=h.__lexicalTextContent,p=cC.get(o.__key);if(!ys&&typeof g=="string"&&p!==void 0){const m=function(_,C){const y=C.size;if(y===0||y>=_.__size)return null;let v=_.__last,k=null,x=0;for(;v!==null&&x<y;){if(!C.has(v))return null;k=v;const b=vt.get(v);if(b===void 0)return null;v=b.__prev,x++}return x!==y||v!==null&&C.has(v)?null:k}(i,p);if(m!==null){const _=p.size;if(f===0){const C=e7(m,_);let y=m,v=0;for(;y!==null&&v<_;){const w=vt.get(y);if(w===void 0)break;const S=_i();fs(y,d),de(w)&&Et===null&&(Et=w.getFormat(),zn=w.getStyle(),gn=w.__key),ro(S),y=w.__next,v++}let k="";for(y=m,v=0;y!==null&&v<_;){const w=vt.get(y);if(w===void 0)break;let S;if(q(w)){const N=Ze._keyToDOMMap.get(y),$=N&&N.__lexicalTextContent;typeof $!="string"&&j(352,w.getType()),S=$}else S=w.getTextContent();k+=S,v<_-1&&q(w)&&!w.isInline()&&(k+=qa),y=w.__next,v++}const x=h.__lexicalSlotTextLength||0,b=x>0?g.slice(x):g,T=b.slice(0,b.length-C)+k;return h.__lexicalTextContent=T,Ie=l+T,void r7(i,h,p)}if(function(C,y,v,k,x,b,T,w){if(w!==1&&w!==-1||T!==(w===1?2:1))return!1;const N=T-w;let $=C.__last;for(let R=0;R<N-1;R++){if($===null)return!1;const J=Oo.get($);if(J===void 0)return!1;$=J.__prev}if($===null)return!1;const O=vt.get(b),M=Oo.get($);if(O===void 0||M===void 0||O.__prev!==M.__prev)return!1;const A=[];let F=b;for(let R=0;R<T;R++){if(F===null)return!1;A.push(F);const J=vt.get(F);F=J?J.__next:null}const P=[];F=$;for(let R=0;R<N;R++){if(F===null)return!1;P.push(F);const J=Oo.get(F);F=J?J.__next:null}const z=new Set(P),I=new Set(A),L=[];let U=0,W=0;for(;U<N&&W<T;)if(A[W]===P[U])L.push({key:A[W],kind:"reconcile"}),U++,W++;else if(I.has(P[U])){if(z.has(A[W]))return!1;L.push({key:A[W],kind:"create",nextIndex:W}),W++}else L.push({key:P[U],kind:"destroy"}),U++;for(;U<N;)L.push({key:P[U++],kind:"destroy"});for(;W<T;)L.push({key:A[W],kind:"create",nextIndex:W}),W++;const H=e7($,N);for(const R of L){const J=_i();if(R.kind==="reconcile")fs(R.key,v.element);else if(R.kind==="destroy")$l(R.key,v.element);else{let B=null;for(let Z=R.nextIndex+1;Z<T;Z++){const Ee=Ze._keyToDOMMap.get(A[Z]);if(Ee!==void 0){B=Ee;break}}Al(R.key,v.withBefore(B??v.before))}if(R.kind!=="destroy"){const B=vt.get(R.key);B&&de(B)&&Et===null&&(Et=B.getFormat(),zn=B.getStyle(),gn=B.__key)}ro(J)}let fe="";for(let R=0;R<T;R++){const J=vt.get(A[R]);if(J===void 0)return!1;let B;if(q(J)){const Z=Ze._keyToDOMMap.get(A[R]),Ee=Z&&Z.__lexicalTextContent;typeof Ee!="string"&&j(350,J.getType()),B=Ee}else B=J.getTextContent();fe+=B,R<T-1&&q(J)&&!J.isInline()&&(fe+=qa)}const G=k.__lexicalSlotTextLength||0,ae=G>0?x.slice(G):x;return k.__lexicalTextContent=ae.slice(0,ae.length-H)+fe,!0}(o,0,s,h,g,m,_,f)){const C=h.__lexicalTextContent;return typeof C!="string"&&j(353),Ie=l+C,void r7(i,h,p)}}}if(f===0){let m=o.__first,_=0;for(;m!==null;){const C=vt.get(m);if(C===void 0)break;const y=ys||th.has(m)||eh.has(m),v=_i();if(y)fs(m,d);else{let k,x;if(q(C)){x=vc.get(m);const b=x&&x.__lexicalTextContent;typeof b!="string"&&j(354,C.getType()),k=b}else k=C.getTextContent();Ie+=k,x!==void 0&&lC(x)}de(C)?Et===null&&(Et=C.getFormat(),zn=C.getStyle(),gn=C.__key):q(C)&&_<c-1&&!C.isInline()&&(Ie+=qa),ro(v),m=C.__next,_++}return h.__lexicalTextContent=Ie,h.__lexicalFirstTextKey=gn,void(Ie=l+Ie)}}if(a===1&&c===1){const g=o.__first,p=i.__first;if(g===p)fs(g,d);else{const _=gC(g),C=Al(p,null);try{_.parentNode===d?d.replaceChild(C,_):s.insertChild(C)}catch(y){if(typeof y=="object"&&y!=null){const v=`${y.toString()} Parent: ${d.tagName}, new child: {tag: ${C.tagName} key: ${p}}, old child: {tag: ${_.tagName}, key: ${g}}.`;throw new Error(v)}throw y}$l(g,null)}const m=vt.get(p);de(m)&&Et===null&&(Et=m.getFormat(),zn=m.getStyle(),gn=m.__key)}else{const g=Mm(o,Oo),p=Mm(i,vt);if(g.length!==a&&j(227),p.length!==c&&j(228),a===0)c!==0&&hC(p,i,0,c-1,s);else if(c===0){if(a!==0){const m=s.after==null&&s.before==null&&Rr(i).size===0&&s.element.__lexicalLineBreak==null;uC(g,0,a-1,m?null:d),m&&(d.textContent="")}}else(function(m,_,C,y,v,k){const x=y-1,b=v-1;let T,w,S=k.getFirstChild(),N=0,$=0;for(;N<=x&&$<=b;){const A=_[N],F=C[$],P=_i();if(A===F)S=fv(fs(F,k.element)),N++,$++;else{if(w===void 0&&(w=o7(C,$)),T===void 0)T=o7(_,N);else if(!T.has(A)){N++,ro(P);continue}if(!w.has(A)){S=fv(gC(A)),$l(A,k.element),N++,T.delete(A),ro(P);continue}if(T.has(F)){const I=_d(Ze,F);I!==S&&k.withBefore(S??k.before).insertChild(I),S=fv(fs(F,k.element)),N++,$++}else Al(F,k.withBefore(S??k.before)),$++}const z=vt.get(F);z!==null&&de(z)?Et===null&&(Et=z.getFormat(),zn=z.getStyle(),gn=z.__key):q(z)&&$<=b&&!z.isInline()&&(Ie+=qa),ro(P)}const O=N>x,M=$>b;if(O&&!M){const A=C[b+1],F=A===void 0?null:Ze.getElementByKey(A);hC(C,m,$,b,k.withBefore(F??k.before))}else M&&!O&&uC(_,N,x,k.element)})(i,g,p,a,c,s)}h.__lexicalTextContent=Ie,h.__lexicalFirstTextKey=gn,Ie=l+Ie}(n,e,co(e,t,Ze)),un(e)||(r=e,Et==null||Et===r.__textFormat||hm||r.setTextFormat(Et),function(o){zn==null||zn===o.__textStyle||hm||o.setTextStyle(zn)}(e))}function r7(n,e,t){const r=e.__lexicalFirstTextKey;if(r!=null){const o=n.__key;let i=r;for(;i!==null;){const s=vt.get(i);if(s===void 0){i=null;break}if(s.__parent===o)break;i=s.__parent}if(i!==null&&!t.has(i)){const s=vt.get(r);if(de(s))return Et=s.getFormat(),void(zn=s.getStyle())}}e.__lexicalFirstTextKey=gn}function fs(n,e){const t=Oo.get(n);let r=vt.get(n);t!==void 0&&r!==void 0||j(61);const o=ys||th.has(n)||eh.has(n),i=_d(Ze,n);if(t===r&&!o){let s;if(q(t)){const l=i.__lexicalTextContent;typeof l!="string"&&j(355,t.getType()),s=l,lC(i)}else s=t.getTextContent();return Ie+=s,i}if(t!==r&&o&&a3(Wh,Vh,O0,r,"updated"),Cc.$updateDOM(r,t,i,Ze)){const s=Al(n,null);return e===null&&j(62),e.replaceChild(s,i),$l(n,null),s}if(q(t)){q(r)||j(334,n);const s=r.__indent;(ys||s!==t.__indent)&&j6(i,s);const l=r.__format;(ys||l!==t.__format)&&Z6(i,l);const a=o&&(Rr(r).size>0||Rr(t).size>0)?n7(t,r,i):"";if(o){const c=Ie;if(p6e(t,r,i),Fn(r)||r.isInline()||X6(0,r,i),a!==""){const d=i.__lexicalTextContent||"";i.__lexicalTextContent=a+d,Ie=c+a+d,i.__lexicalSlotTextLength=a.length}else(Rr(r).size>0||Rr(t).size>0)&&(i.__lexicalSlotTextLength=0)}else{const c=i.__lexicalTextContent;typeof c!="string"&&j(356,t.getType()),Ie+=c,lC(i)}if((ys||r.__dir!==t.__dir||r.__parent!==t.__parent)&&(dC(i,r),Fn(r)&&!ys))for(const c of r.getChildren())q(c)&&dC(_d(Ze,c.getKey()),c)}else{const s=r.getTextContent();if(Qe(r)){const l=r.decorate(Ze,zh);l!==null&&Q6(n,l),o&&(Rr(r).size>0||Rr(t).size>0)&&n7(t,r,i)}Ie+=s}if(!hm&&Fn(r)){const s=r.getLatest();if(s.__cachedText!==Ie){const l=s.getWritable();l.__cachedText=Ie,r=l}}return Cc.$decorateDOM(r,t,i,Ze),q6(r),i}function Q6(n,e){let t=Ze._pendingDecorators;const r=Ze._decorators;if(t===null){if(r[n]===e)return;t=q8(Ze)}t[n]=e}function fv(n){let e=n.nextSibling;return e!==null&&e===Ze._blockCursorElement&&(e=e.nextSibling),e}function o7(n,e){const t=new Set;for(let r=e;r<n.length;r++)t.add(n[r]);return t}function m6e(n,e,t,r,o,i){Ie="",Et=null,zn=null,gn=null,ys=r===2,Ze=t,zh=t._config,Cc=t._config.dom||wm,Vh=t._nodes,O0=Ze._listeners.mutation,eh=o,th=i,Oo=n._nodeMap,aC=n,vt=e._nodeMap,hm=e._readOnly,vc=R6(t._keyToDOMMap),cC=function(){const l=new Map,a=c=>{for(const d of c){const h=vt.get(d);if(h===void 0)continue;const f=h.__parent;if(f===null)continue;let g=l.get(f);g===void 0&&(g=new Set,l.set(f,g)),g.add(d)}};return a(eh.keys()),a(th),l}();const s=new Map;return Wh=s,fs("root",null),Ze=void 0,Vh=void 0,eh=void 0,th=void 0,Oo=void 0,aC=void 0,vt=void 0,zh=void 0,vc=void 0,cC=void 0,Wh=void 0,Cc=wm,s}function gC(n){const e=vc.get(n);return e===void 0&&j(75,n),e}function Re(n){return{type:n}}const e8=Re("SELECTION_CHANGE_COMMAND"),_6e=Re("CLICK_COMMAND"),t8=Re("BEFORE_INPUT_COMMAND"),n8=Re("INPUT_COMMAND"),r8=Re("COMPOSITION_START_COMMAND"),o8=Re("COMPOSITION_END_COMMAND"),gm=Re("DELETE_CHARACTER_COMMAND"),g1=Re("INSERT_LINE_BREAK_COMMAND"),i7=Re("INSERT_PARAGRAPH_COMMAND"),nh=Re("CONTROLLED_TEXT_INSERTION_COMMAND"),i8=Re("PASTE_COMMAND"),hv=Re("REMOVE_TEXT_COMMAND"),pm=Re("DELETE_WORD_COMMAND"),mm=Re("DELETE_LINE_COMMAND"),Do=Re("FORMAT_TEXT_COMMAND"),s8=Re("UNDO_COMMAND"),l8=Re("REDO_COMMAND"),a8=Re("KEYDOWN_COMMAND"),y6e=Re("KEY_ARROW_RIGHT_COMMAND"),v6e=Re("MOVE_TO_END"),C6e=Re("KEY_ARROW_LEFT_COMMAND"),b6e=Re("MOVE_TO_START"),k6e=Re("KEY_ARROW_UP_COMMAND"),x6e=Re("KEY_ARROW_DOWN_COMMAND"),pC=Re("KEY_ENTER_COMMAND"),S6e=Re("KEY_SPACE_COMMAND"),w6e=Re("KEY_BACKSPACE_COMMAND"),T6e=Re("KEY_ESCAPE_COMMAND"),E6e=Re("KEY_DELETE_COMMAND"),N6e=Re("KEY_TAB_COMMAND"),$6e=Re("DROP_COMMAND"),A6e=Re("DRAGSTART_COMMAND"),M6e=Re("DRAGOVER_COMMAND"),O6e=Re("DRAGEND_COMMAND"),c8=Re("COPY_COMMAND"),u8=Re("CUT_COMMAND"),D6e=Re("SELECT_ALL_COMMAND"),L6e=Re("FOCUS_COMMAND"),F6e=Re("BLUR_COMMAND"),P6e=Re("KEY_MODIFIER_COMMAND");function I6e(n){const e=new Map;return{dispose(){for(const t of e.values())t.dispose();e.clear()},register(t,r){let o=e.get(t);o===void 0&&(o={dispose:n(t,r),holders:new Set},e.set(t,o));const i=()=>{const s=e.get(t);s&&s.holders.delete(i)&&s.holders.size===0&&(e.delete(t),s.dispose())};return o.holders.add(i),i}}}function B6e(n,e,t,r){return n.addEventListener(e,t,r),n.removeEventListener.bind(n,e,t,r)}const Zi=Object.freeze({}),mC=[["keydown",function(n,e){const t=e._inputState;t.lastKeyDownTimeStamp=n.timeStamp,t.lastKeyCode=n.key,n.key!=="Backspace"&&Kh(t),!e.isComposing()&&he(e,a8,n)}],["pointerdown",function(n,e){const t=Q8(n),r=n.pointerType;Vg(t)&&r!=="touch"&&r!=="pen"&&n.button===0&&io(e,()=>{Am(t,e)||(e._inputState.isSelectionChangeFromMouseDown=!0)})}],["compositionstart",function(n,e){he(e,r8,n)}],["compositionend",function(n,e){const t=e._inputState;Rs?t.compositionPhase="ending-firefox":gd||!A0&&!M0?he(e,o8,n):(t.compositionPhase="ending-safari",t.compositionEndData=n.data)}],["input",function(n,e){n.stopPropagation();const t=e._inputState;Kh(t),io(e,()=>{g8(n,e)||e.dispatchCommand(n8,n)},{event:n}),t.unprocessedBeforeInputData=null}],["click",function(n,e){io(e,()=>{const t=Ve(),r=Go(Nr(e)),o=Rg();if(r){if(Ce(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!Fn(s)&&Uo().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&t.is(o)&&(r.removeAllRanges(),t.dirty=!0)}else if(n.pointerType==="touch"||n.pointerType==="pen"){const i=Ho(r,e._rootElement).anchorNode;(Bt(i)||Ki(i))&&kr(Cm(o,r,e,n))}}if(Rs&&r!==null&&r.rangeCount===0){const i=e._rootElement;if(i!==null&&n.target===i){const s=n.clientY;let l=i.childNodes.length;for(let c=0;c<i.childNodes.length;c++){const d=i.childNodes[c];if(Bt(d)){const h=d.getBoundingClientRect();if(s<=(h.top+h.bottom)/2){l=c;break}}}r.setBaseAndExtent(i,l,i,l);const a=Cm(o,r,e,n);a!==null?kr(a):r.removeAllRanges()}}he(e,_6e,n)})}],["cut",Zi],["copy",Zi],["dragstart",Zi],["dragover",Zi],["dragend",Zi],["paste",Zi],["focus",Zi],["blur",Zi],["drop",Zi]];cm&&mC.push(["beforeinput",(n,e)=>function(t,r){const o=t.inputType;o==="deleteCompositionText"||Rs&&J8(r)||o!=="insertCompositionText"&&io(r,()=>{g8(t,r)||he(r,t8,t)},{event:t})}(n,e)]);const _C=new WeakMap,_m=new WeakMap,R6e=I6e(n=>(n.addEventListener("selectionchange",u7),()=>n.removeEventListener("selectionchange",u7)));function d8(n,e,t,r,o,i){const s=n.anchor,l=n.focus,a=s.getNode(),c=Je();let d;if(i!==void 0)d=i;else{const m=Go(Nr(c));d=m!==null?Ho(m,c._rootElement):null}const h=d!==null?d.anchorNode:null,f=s.key,g=c.getElementByKey(f),p=t.length;return f!==l.key||!de(a)||(!o&&(!cm||c._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||a.isDirty()&&p<2||j8(t))&&s.offset!==l.offset&&!a.isComposing()||Po(a)||a.isDirty()&&p>1||(o||!cm)&&g!==null&&!a.isComposing()&&h!==Ml(a,g,c)||d!==null&&e!==null&&(!e.collapsed||e.startContainer!==d.anchorNode||e.startOffset!==d.anchorOffset)||!a.isComposing()&&(a.getFormat()!==n.format||a.getStyle()!==n.style)||function(m,_){if(_.isSegmented())return!0;if(!m.isCollapsed())return!1;const C=m.anchor.offset,y=_.getParentOrThrow(),v=Tm(_);return C===0?!_.canInsertTextBefore()||!y.canInsertTextBefore()&&!_.isComposing()||v||function(k){const x=k.getPreviousSibling();return(de(x)||q(x)&&x.isInline())&&!x.canInsertTextAfter()}(_):C===_.getTextContentSize()&&(!_.canInsertTextAfter()||!y.canInsertTextAfter()&&!_.isComposing()||v)}(n,a)}function s7(n,e){return Ki(n)&&n.nodeValue!==null&&e!==0&&e!==n.nodeValue.length}function l7(n,e,t){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=Ho(n,e._rootElement),l=e._inputState;l.isSelectionChangeFromDOMUpdate&&(l.isSelectionChangeFromDOMUpdate=!1,s7(r,o)&&s7(i,s)&&!l.postDeleteSelectionToRestore)||io(e,()=>{if(!t)return void kr(null);if(!L0(e,r,i))return;let a=Ve();if(l.postDeleteSelectionToRestore&&Ce(a)&&a.isCollapsed()){const c=a.anchor,d=l.postDeleteSelectionToRestore.anchor;(c.key===d.key&&c.offset===d.offset+1||c.offset===1&&d.getNode().is(c.getNode().getPreviousSibling()))&&(a=l.postDeleteSelectionToRestore.clone(),kr(a))}if(l.postDeleteSelectionToRestore=null,Ce(a)){const c=a.anchor,d=c.getNode();if(a.isCollapsed()){n.type==="Range"&&r===i&&(a.dirty=!0);const h=Nr(e).event,f=h?h.timeStamp:performance.now(),{format:g,style:p,offset:m,key:_,timeStamp:C}=l.collapsedSelectionFormat,y=Uo(),v=e.isComposing()===!1&&y.getTextContent()==="";if(f<C+200&&c.offset===m&&c.key===_)p1(a,g,p);else if(c.type==="text")de(d)||j(141),f8(a,d);else if(c.type==="element"&&!v){q(d)||j(259);const k=c.getNode();k.isEmpty()?function(x,b){const T=b.getTextFormat(),w=b.getTextStyle();p1(x,T,w)}(a,k):p1(a,a.format,"")}}else{const h=c.key,f=a.focus.key,g=a.getNodes(),p=g.length,m=a.isBackward(),_=m?s:o,C=m?o:s,y=m?f:h,v=m?h:f;let k=2047,x=!1;for(let b=0;b<p;b++){const T=g[b],w=T.getTextContentSize();if(de(T)&&w!==0&&!(b===0&&T.__key===y&&_===w||b===p-1&&T.__key===v&&C===0)&&(x=!0,k&=T.getFormat(),k===0))break}a.format=x?k:0}}he(e,e8)})}function p1(n,e,t){n.format===e&&n.style===t||(n.format=e,n.style=t,n.dirty=!0)}function f8(n,e){p1(n,e.getFormat(),e.getStyle())}function h8(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function a7(n){const{lastKeyCode:e}=Je()._inputState;if(n==null||n.length<=1||e==null)return;const t=e.length===1?e:e==="Enter"?`
22
+ `:e==="Tab"?" ":null;if(!t)return;const r=Ve();if(!Ce(r)||!r.isCollapsed())return;const o=r.anchor.getNode();if(!de(o))return;const{offset:i}=r.anchor;if(o.getTextContentSize()===i){const s=o.getNextSibling();if(t===`
23
+ `){if(jl(s))s.selectEnd();else if(!s){const l=Ba(o,c8e),a=l&&l.getNextSibling();q(a)&&a.selectStart()}}else t===" "?v8(s)&&s.selectEnd():de(s)&&s.getTextContent()[0]===t&&s.select(1,1)}else o.getTextContent()[i]===t&&o.select(i+1,i+1)}function Kh(n){n.isInsertTextAfterHandledSelectionCommand=!1,n.handledSelectionCommandTimeoutId!==null&&(clearTimeout(n.handledSelectionCommandTimeoutId),n.handledSelectionCommandTimeoutId=null)}function c7(n){Kh(n),n.isInsertTextAfterHandledSelectionCommand=!0,n.handledSelectionCommandTimeoutId=setTimeout(()=>Kh(n),0)}function g8(n,e){const t=Q8(n);if(Bt(t)&&Am(t,e))return!0;const r=e.getRootElement();if(r===null)return!1;const o=qh(r.ownerDocument);return o!==null&&r.contains(o)&&Am(o,e)}function z6e(n){const e=n.inputType,t=h8(n),r=Je(),o=r._inputState,i=Ve();if(e==="insertText"&&n.data&&o.isInsertTextAfterHandledSelectionCommand){if(Kh(o),n.preventDefault(),Ce(i)&&!i.isCollapsed()){const h=i.isBackward()?i.anchor:i.focus;i.anchor.set(h.key,h.offset,h.type),i.focus.set(h.key,h.offset,h.type)}return!0}if(e==="deleteContentBackward"){if(i===null){const h=Rg();if(!Ce(h))return!0;kr(h.clone())}if(Ce(i)){const h=i.anchor.key===i.focus.key;if(function(f,g){return f.lastKeyCode==="MediaLast"&&g<f.lastKeyDownTimeStamp+30}(o,n.timeStamp)&&r.isComposing()&&h){if(Jt(null),o.lastKeyDownTimeStamp=0,setTimeout(()=>{io(r,()=>{Jt(null)})},30),Ce(i)){const f=i.anchor.getNode();f.markDirty(),de(f)||j(142),f8(i,f)}}else{if(Jt(null),gd&&t!==null&&!t.collapsed&&(i.applyDOMRange(t),!i.isCollapsed()))return n.preventDefault(),i.removeText(),!0;n.preventDefault();const f=i.anchor.getNode(),g=f.getTextContent(),p=f.canInsertTextAfter(),m=i.anchor.offset===0&&i.focus.offset===g.length;let _=um&&h&&!m&&p;if(_&&i.isCollapsed()&&(_=!Qe(A8e(i.anchor,!0))),!_){he(r,gm,!0);const C=Ve();um&&Ce(C)&&C.isCollapsed()&&(o.postDeleteSelectionToRestore=C,setTimeout(()=>o.postDeleteSelectionToRestore=null))}}return!0}}if(!Ce(i))return!0;const s=n.data;o.unprocessedBeforeInputData!==null&&s3(!1,r,o.unprocessedBeforeInputData),i.dirty&&o.unprocessedBeforeInputData===null||!i.isCollapsed()||Fn(i.anchor.getNode())||t===null||i.applyDOMRange(t),o.unprocessedBeforeInputData=null;const l=i.anchor,a=i.focus,c=l.getNode(),d=a.getNode();if(e==="insertText"||e==="insertTranspose"){if(s===`
24
+ `)n.preventDefault(),he(r,g1,!1);else if(s===qa)n.preventDefault(),he(r,i7);else if(s==null&&n.dataTransfer){const h=n.dataTransfer.getData("text/plain");n.preventDefault(),i.insertRawText(h)}else s!=null&&d8(i,t,s,n.timeStamp,!0)?(n.preventDefault(),he(r,nh,s),a7(s)):o.unprocessedBeforeInputData=s;return o.lastBeforeInputInsertTextTimeStamp=n.timeStamp,!0}switch(n.preventDefault(),e){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":he(r,nh,n),a7((n.dataTransfer?n.dataTransfer.getData("text/plain"):null)??n.data);break;case"insertFromComposition":{const h=o.hadOrphanedCompositionEvents;o.hadOrphanedCompositionEvents=!1;const f=r._compositionKey;Jt(null),h||he(r,nh,n),m1(f);break}case"insertLineBreak":Jt(null),he(r,g1,!1);break;case"insertParagraph":Jt(null),o.isInsertLineBreak&&!gd?(o.isInsertLineBreak=!1,he(r,g1,!1)):he(r,i7);break;case"insertFromPaste":case"insertFromPasteAsQuotation":he(r,i8,n);break;case"deleteByComposition":(function(h,f){return h!==f||q(h)||q(f)||!Tm(h)||!Tm(f)})(c,d)&&he(r,hv,n);break;case"deleteByDrag":yd(vC),he(r,hv,n);break;case"deleteByCut":he(r,hv,n);break;case"deleteContent":he(r,gm,!1);break;case"deleteWordBackward":he(r,pm,!0);break;case"deleteWordForward":he(r,pm,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":he(r,mm,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":he(r,mm,!1);break;case"formatStrikeThrough":he(r,Do,"strikethrough");break;case"formatBold":he(r,Do,"bold");break;case"formatItalic":he(r,Do,"italic");break;case"formatUnderline":he(r,Do,"underline");break;case"historyUndo":he(r,s8);break;case"historyRedo":he(r,l8)}return!0}function V6e(n){const e=Je(),t=e._inputState,r=Ve(),o=n.data,i=h8(n);let s=!1;if(o!=null&&Ce(r)){const l=Go(Nr(e)),a=l!==null?Ho(l,e._rootElement):null,c=n.inputType==="insertCompositionText"&&t.compositionPhase!=="ending-firefox"&&!e.isComposing();c&&(t.hadOrphanedCompositionEvents=!0);const d=r.anchor.getNode(),h=n.inputType==="insertCompositionText"&&t.compositionPhase!=="ending-firefox"&&e.isComposing()&&de(d)&&Po(d);if(!c&&!h&&d8(r,i,o,n.timeStamp,!1,a)){if(s=!0,t.compositionPhase==="ending-firefox"){const C=ym(e,o);if(t.compositionPhase="idle",C)return yd(CC),V7(),!0}const f=r.anchor.getNode();if(l===null||a===null)return!0;const g=r.isBackward(),p=g?r.anchor.offset:r.focus.offset,m=g?r.focus.offset:r.anchor.offset;cm&&!r.isCollapsed()&&de(f)&&a.anchorNode!==null&&f.getTextContent().slice(0,p)+o+f.getTextContent().slice(p+m)===G8(a.anchorNode)||he(e,nh,o);const _=o.length;Rs&&_>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(r.anchor.offset-=_,r._cachedNodes=null,r._cachedIsBackward=null),um&&e.isComposing()&&(t.lastKeyDownTimeStamp=0,Jt(null))}}return s||(s3(!1,e,o!==null?o:void 0),t.compositionPhase==="ending-firefox"&&(ym(e,o||void 0),yd(CC),t.compositionPhase="idle")),V7(),!0}function W6e(n){const e=Je(),t=e._inputState,r=Ve();if(Ce(r)&&!e.isComposing()){t.compositionPhase="composing",t.hadOrphanedCompositionEvents=!1;const o=r.anchor,i=r.anchor.getNode();if(Jt(o.key),yd(J6e),n.timeStamp<t.lastKeyDownTimeStamp+30||o.type==="element"||!r.isCollapsed()||!um&&(i.getFormat()!==r.format||de(i)&&i.getStyle()!==r.style)||de(i)&&(Po(i)||o.offset===0&&!i.canInsertTextBefore()||o.offset===i.getTextContentSize()&&!i.canInsertTextAfter())){he(e,nh,qk);const s=Ve();Ce(s)&&Jt(s.anchor.key)}}return!0}function K6e(n){const e=Je();return e._inputState.compositionPhase="idle",ym(e,n.data),yd(CC),!0}function m1(n){if(n===null)return;const e=_t(n);if(!de(e)||e.getType()==="text"||Po(e)||!e.isAttached())return;const t=Ve(),r=Ce(t)&&t.anchor.key===n?t.anchor.offset:null,o=qn(e.getTextContent());if(o.setFormat(e.getFormat()),o.setStyle(e.getStyle()),e.replace(o),r!==null){const i=Math.min(r,o.getTextContentSize());o.select(i,i)}}function ym(n,e){const t=n._compositionKey;if(Jt(null),t!==null&&e!=null){if(e===""){const o=_t(t),i=n.getElementByKey(t),s=i!==null&&de(o)?Ml(o,i,n):null;if(s!==null&&s.nodeValue!==null&&de(o)){const l=Go(Nr(n)),a=l&&Ho(l,n._rootElement);let c=null,d=null;a!==null&&a.anchorNode===s&&(c=a.anchorOffset,d=a.focusOffset),l3(o,s.nodeValue,c,d,!0)}return m1(t),!1}if(e[e.length-1]===`
25
+ `){const o=Ve();if(Ce(o)||Bg(o)){if(Ce(o)){const i=o.focus;o.anchor.set(i.key,i.offset,i.type)}return he(n,pC,null),m1(t),!1}}const r=_t(t);if(r!==null&&de(r)&&Po(r)){r.markDirty();const o=Ve(),i=r.getTextContentSize(),s=Ce(o)&&o.anchor.key===t?o.anchor.offset:i;return r.select(s,s).insertText(e),!0}}return s3(!0,n,e),m1(t),!1}function U6e(n){const e=Je(),t=e._inputState;if(n.key==null)return!0;if(t.compositionPhase==="ending-safari"){const r=K7(n);if(r&&io(e,()=>{ym(e,t.compositionEndData)}),t.compositionPhase="idle",t.compositionEndData="",r)return!0}if(function(r){return et(r,"ArrowRight",{shiftKey:"any"})}(n))he(e,y6e,n);else if(function(r){return et(r,"ArrowRight",{...Ji,shiftKey:"any"})}(n))he(e,v6e,n);else if(function(r){return et(r,"ArrowLeft",{shiftKey:"any"})}(n))he(e,C6e,n);else if(function(r){return et(r,"ArrowLeft",{...Ji,shiftKey:"any"})}(n))he(e,b6e,n);else if(function(r){return et(r,"ArrowUp",{altKey:"any",shiftKey:"any"})}(n))he(e,k6e,n);else if(function(r){return et(r,"ArrowDown",{altKey:"any",shiftKey:"any"})}(n))he(e,x6e,n);else if(function(r){return et(r,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(n))t.isInsertLineBreak=!0,he(e,pC,n);else if(function(r){return r.key===" "}(n))he(e,S6e,n);else if(function(r){return To&&et(r,"o",{ctrlKey:!0})}(n))n.preventDefault(),t.isInsertLineBreak=!0,he(e,g1,!0);else if(function(r){return et(r,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(n))t.isInsertLineBreak=!1,he(e,pC,n);else if(function(r){return et(r,"Backspace",{shiftKey:"any"})||To&&et(r,"h",{ctrlKey:!0})}(n))K7(n)?he(e,w6e,n)&&c7(t):(n.preventDefault(),he(e,gm,!0));else if(function(r){return r.key==="Escape"}(n))he(e,T6e,n);else if(function(r){return et(r,"Delete",{})||To&&et(r,"d",{ctrlKey:!0})}(n))(function(r){return r.key==="Delete"})(n)?he(e,E6e,n):(n.preventDefault(),he(e,gm,!1));else if(function(r){return et(r,"Backspace",W7)}(n))n.preventDefault(),he(e,pm,!0);else if(function(r){return et(r,"Delete",W7)}(n))n.preventDefault(),he(e,pm,!1);else if(function(r){return To&&et(r,"Backspace",{metaKey:!0})}(n))n.preventDefault(),he(e,mm,!0);else if(function(r){return To&&(et(r,"Delete",{metaKey:!0})||et(r,"k",{ctrlKey:!0}))}(n))n.preventDefault(),he(e,mm,!1);else if(function(r){return et(r,"b",Ji)}(n))n.preventDefault(),he(e,Do,"bold");else if(function(r){return et(r,"u",Ji)}(n))n.preventDefault(),he(e,Do,"underline");else if(function(r){return et(r,"i",Ji)}(n))n.preventDefault(),he(e,Do,"italic");else if(function(r){return et(r,"Tab",{shiftKey:"any"})}(n))he(e,N6e,n);else if(function(r){return et(r,"z",Ji)}(n))n.preventDefault(),he(e,s8);else if(function(r){return To?et(r,"z",{metaKey:!0,shiftKey:!0}):et(r,"y",{ctrlKey:!0})||et(r,"z",{ctrlKey:!0,shiftKey:!0})}(n))n.preventDefault(),he(e,l8);else{const r=e._editorState._selection;(function(o){return et(o,"a",Ji)})(n)?(n.preventDefault(),he(e,D6e,n)&&c7(t)):r===null||Ce(r)||(function(o){return et(o,"c",Ji)}(n)?(n.preventDefault(),he(e,c8,n)):function(o){return et(o,"x",Ji)}(n)&&(n.preventDefault(),he(e,u8,n)))}return function(r){return r.ctrlKey||r.shiftKey||r.altKey||r.metaKey}(n)&&e.dispatchCommand(P6e,n),!0}function p8(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const qu=new Map;function u7(n){const e=F8e(n.target);if(e===null)return;const t=c3(n.target);let r=null,o=null;const i=t!==null?_m.get(t):void 0;if(t!==null){if(i!==void 0){const h=i.editors;let f=i.hasShadowEditor;if(f===void 0){f=!1;for(const g of h)if(g._rootElement!==null&&Zl(g._rootElement.getRootNode())){f=!0;break}i.hasShadowEditor=f}if(f){let g=null,p=null;for(const m of h){const _=m._rootElement;if(_===null)continue;const C=Ho(e,_).anchorNode;if(C!==null&&ju(C)===m){if(Zl(_.getRootNode())){r=m,o=C;break}g===null&&(g=m,p=C)}}r===null&&g!==null&&(r=g,o=p)}else{const g=e.anchorNode;g===null||Bt(g)&&g.shadowRoot!==null||(r=ju(g),r!==null&&(o=g))}}if(r===null){const h=qh(t);r=h!==null?ju(h):null}}if(r===null)return;if(r._inputState.isSelectionChangeFromMouseDown){if(i!==void 0)for(const h of i.editors)h._inputState.isSelectionChangeFromMouseDown=!1;io(r,()=>{const h=Rg(),f=o??Ho(e,r._rootElement).anchorNode;(Bt(f)||Ki(f))&&kr(Cm(h,e,r,n))})}const s=i3(r),l=s[s.length-1],a=l._key,c=qu.get(a),d=c||l;d!==r&&l7(e,d,!1),l7(e,r,!0),r!==l?qu.set(a,r):c&&qu.delete(a)}function d7(n){n._lexicalHandled=!0}function f7(n){return n._lexicalHandled===!0}const h7=()=>{};function H6e(n){const e=_C.get(n);if(e===void 0)return void h7();const t=_m.get(e);if(t===void 0)return void h7();_C.delete(n);const r=F0(n);o3(r)?(function(i){if(i._parentEditor!==null){const s=i3(i),l=s[s.length-1]._key;qu.get(l)===i&&qu.delete(l)}else qu.delete(i._key)}(r),t.editors.delete(r),t.hasShadowEditor=void 0,n.__lexicalEditor=null):r&&j(198);const o=p8(n);for(let i=0;i<o.length;i++)o[i]();n.__lexicalEventHandles=[]}function yC(n,e,t){Vn();const r=n.__key,o=n.getParent();if(o===null)return void($n(n)!==null&&j(367,r,String($n(n))));const i=function(l){const a=Ve();if(!Ce(a)||!q(l))return a;const{anchor:c,focus:d}=a,h=c.getNode(),f=d.getNode();return Nm(h,l)&&c.set(l.__key,0,"element"),Nm(f,l)&&d.set(l.__key,0,"element"),a}(n);let s=!1;if(Ce(i)&&e){const l=i.anchor,a=i.focus;l.key===r&&(bm(l,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0),a.key===r&&(bm(a,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0)}else Bg(i)&&e&&n.isSelected()&&n.selectPrevious();if(Ce(i)&&e&&!s){const l=n.getIndexWithinParent();yi(n),Ra(i,o,l,-1)}else yi(n);t||un(o)||o.canBeEmpty()||!o.isEmpty()||yC(o,e),e&&i&&Fn(o)&&o.isEmpty()&&o.selectEnd()}const q6e=Symbol.for("ephemeral");function vm(n){return n[q6e]||!1}const g7={configurable:!0,enumerable:!1,value:void 0,writable:!0};var GKe,V2;let vr=(V2=class{constructor(e){E(this,"__type");E(this,"__key");E(this,"__parent");E(this,"__prev");E(this,"__next");E(this,"__state");E(this,GKe);this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",g7),Object.defineProperty(this,Rh,g7),W8(this,e)}static getType(){const{ownNodeType:e}=d3(this);return e===void 0&&j(64,this.name),e}static clone(e){j(65,this.name)}$config(){return{}}config(e,t){const r=t.extends||r$(this.constructor);return Object.assign(t,{extends:r}),typeof e=="string"&&Object.assign(t,{type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}getType(){return this.__type}isInline(){j(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=_t(e);if(t===null)break;e=t.__parent!==null?t.__parent:$n(t)}return!1}isSelected(e){const t=e||Ve();if(t==null)return!1;const r=t.getNodes().some(o=>o.__key===this.__key);if(de(this))return r;if(Ce(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const o=this.getParent();if(Qe(this)&&this.isInline()&&o){const i=t.isBackward()?t.focus:t.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:_t(e)}getParentOrThrow(){const e=this.getParent();return e===null&&j(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(un(t)||$n(e)!==null)return q(e)||e===this&&Qe(e)||j(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&j(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:_t(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:_t(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=q(this)?this:this.getParent(),r=q(e)?e:e.getParent(),o=t&&r?AC(t,r):null;return o?o.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const t=AC(this,e);return t!==null&&(t.type==="descendant"||(t.type==="branch"?d$(t)===-1:(t.type!=="same"&&t.type!=="ancestor"&&j(279),!1)))}isParentOf(e){return Nm(e,this)}getNodesBetween(e){const t=this.isBefore(e),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===e)break;const l=q(i)?t?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const a=t?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===e)break;let d=null,h=c;do{if(h===null&&j(68),d=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;d!==null||o.has(h.__key)||r.push(h)}while(d===null);i=d}return t||r.reverse(),r}isDirty(){const e=Je()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(vm(this))return this;const e=_t(this.__key);return e===null&&j(113),e}getWritable(){if(vm(this))return this;Vn();const e=ua(),t=Je(),r=e._nodeMap,o=this.__key,i=this.getLatest(),s=t._cloneNotNeeded,l=Ve();if(l!==null&&l.setCachedNodes(null),s.has(o))return Em(i),i;const a=J8e(i);return s.add(o),Em(a),r.set(o,a),a}getTextContent(){return i$(this)}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){j(70)}updateDOM(e,t,r){j(71)}getDOMSlot(e){return new F6(e)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){j(18,this.name)}updateFromJSON(e){return function(t,r){const o=t.getWritable(),i=r.$;let s=i;for(const l of H6(o).flatKeys)l in r&&(s!==void 0&&s!==i||(s={...i}),s[l]=r[l]);return(o.__state||s)&&d6e(t).updateFromJSON(s),o}(this,e)}static transform(){return null}remove(e){yC(this,!0,e)}replace(e,t){Vn();let r=Ve();r!==null&&(r=r.clone()),xv(this,e);const o=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size,d=l.getParent(),h=d!==null?l.getIndexWithinParent():-1;yi(l),d!==null&&Ce(r)&&Ra(r,d,h,-1);const f=o.getPreviousSibling(),g=o.getNextSibling(),p=o.__prev,m=o.__next,_=o.__parent;yC(o,!1,!0),f===null?a.__first=s:f.getWritable().__next=s,l.__prev=p,g===null?a.__last=s:g.getWritable().__prev=s,l.__next=m,l.__parent=_,a.__size=c;let C=0;t&&(q(this)&&q(l)||j(139),C=l.getChildrenSize(),l.splice(C,0,this.getChildren()));const y=Io(this);if(y.length>0){Es(this)&&Es(l)||j(368,this.__key,l.__key);for(const v of y){const k=vd(this,v);k!==null&&(a$e(this,v),s$(l,v,k))}}if(Ce(r)){kr(r);const v=r.anchor,k=r.focus;v.key===i&&(t&&v.type==="element"?v.set(l.__key,C+v.offset,"element"):C7(v,l)),k.key===i&&(t&&k.type==="element"?k.set(l.__key,C+k.offset,"element"):C7(k,l))}return vi()===i&&Jt(s),l}insertAfter(e,t=!0){Vn(),xv(this,e);const r=this.getWritable(),o=e.getWritable();this.getParentOrThrow();const i=o.getParent(),s=Ve();let l=!1,a=!1;if(i!==null){const g=e.getIndexWithinParent();if(Ce(s)){const p=i.__key,m=s.anchor,_=s.focus;l=m.type==="element"&&m.key===p&&m.offset===g+1,a=_.type==="element"&&_.key===p&&_.offset===g+1}yi(o),t&&Ce(s)&&Ra(s,i,g,-1)}else yi(o);const c=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),h=o.__key,f=r.__next;if(c===null?d.__last=h:c.getWritable().__prev=h,d.__size++,r.__next=h,o.__next=f,o.__prev=r.__key,o.__parent=r.__parent,t&&Ce(s)){const g=this.getIndexWithinParent();Ra(s,d,g+1);const p=d.__key;l&&s.anchor.set(p,g+2,"element"),a&&s.focus.set(p,g+2,"element")}return e}insertBefore(e,t=!0){Vn(),xv(this,e);const r=this.getWritable(),o=e.getWritable();this.getParentOrThrow();const i=o.__key,s=Ve(),l=o.getParent(),a=l!==null?o.getIndexWithinParent():-1;yi(o),l!==null&&t&&Ce(s)&&Ra(s,l,a,-1);const c=this.getPreviousSibling(),d=this.getParentOrThrow().getWritable(),h=r.__prev,f=this.getIndexWithinParent();return c===null?d.__first=i:c.getWritable().__next=i,d.__size++,r.__prev=i,o.__prev=h,o.__next=r.__key,o.__parent=r.__parent,t&&Ce(s)&&Ra(s,this.getParentOrThrow(),f),e}isParentRequired(){return!1}createParentElementNode(){return kn()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Vn();const r=Lo(this);if(r!==null)return r.selectPrevious(e,t);const o=this.getPreviousSibling(),i=this.getParentOrThrow();if(o===null)return i.select(0,0);if(q(o))return o.select();if(!de(o)){const s=o.getIndexWithinParent()+1;return i.select(s,s)}return o.select(e,t)}selectNext(e,t){Vn();const r=Lo(this);if(r!==null)return r.selectNext(e,t);const o=this.getNextSibling(),i=this.getParentOrThrow();if(o===null)return i.select();if(q(o))return o.select(0,0);if(!de(o)){const s=o.getIndexWithinParent();return i.select(s,s)}return o.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},GKe=Rh,E(V2,"importDOM"),V2);function m8(n){return n instanceof vr}const gv="history-merge",j6e="collaboration",Z6e="skip-scroll-into-view",G6e="skip-dom-selection",vC="skip-selection-focus",J6e="composition-start",CC="composition-end",Y6e="!important";function p7(n){const e={};if(!n)return e;let t="",r="",o=null,i=!1,s=!1,l=!1,a=0;const c=n.length;let d=-1;for(let g=0;g<c;g++){const p=n[g];if(i)p==="*"&&n[g+1]==="/"&&(i=!1,g++);else if(s)d===-1&&(d=g),s=!1;else if(o===null)if(p!=="/"||n[g+1]!=="*")if(p!=='"'&&p!=="'")if(p!=="(")if(p!==")")if(l||p!==":"||a!==0){if(p===";"&&a===0){d!==-1&&(l?r+=n.slice(d,g):t+=n.slice(d,g),d=-1);const m=t.trim(),_=r.trim();m!==""&&_!==""&&(e[m]=_),t="",r="",l=!1;continue}d===-1&&(d=g)}else d!==-1&&(t+=n.slice(d,g),d=-1),l=!0;else d===-1&&(d=g),a=Math.max(0,a-1);else d===-1&&(d=g),a++;else d===-1&&(d=g),o=p;else d!==-1&&(l?r+=n.slice(d,g):t+=n.slice(d,g),d=-1),i=!0,g++;else d===-1&&(d=g),p==="\\"?s=!0:p===o&&(o=null)}d!==-1&&(l?r+=n.slice(d,c):t+=n.slice(d,c));const h=t.trim(),f=r.trim();return h!==""&&f!==""&&(e[h]=f),e}function X6e(n,e,t){const r=t.trimEnd(),o=r.length-10;o>=0&&r.slice(o).toLowerCase()===Y6e?n.setProperty(e,r.slice(0,o).trim(),"important"):n.setProperty(e,t,"")}function m7(n,e,t=""){if(e===t)return;const r=p7(t),o=p7(e);for(const i in o)delete r[i],X6e(n,i,o[i]);for(const i in r)n.removeProperty(i)}function pv(n,e){return 16&e?"code":e&L6?"mark":32&e?"sub":64&e?"sup":null}function mv(n,e){return 1&e?"strong":2&e?"em":"span"}function _8(n,e,t,r,o){const i=r.classList;let s=Zu(o,"base");s!==void 0&&i.add(...s),s=Zu(o,"underlineStrikethrough");let l=!1;const a=8&e&&4&e;s!==void 0&&(8&t&&4&t?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const c in or){const d=or[c];if(s=Zu(o,c),s!==void 0)if(t&d){if(l&&(c==="underline"||c==="strikethrough")){e&d&&i.remove(...s);continue}(!(e&d)||a&&c==="underline"||c==="strikethrough")&&i.add(...s)}else e&d&&i.remove(...s)}}function y8(n,e,t){const r=t.isComposing(),o=n+(r?Bh:""),i=da(),s=t$(i).$getDOMSlot(t,e,i),l=s.getFirstChild();if(l===null||l.nodeType!==Node.TEXT_NODE)return void s.insertChild(qr().createTextNode(o));const a=l,c=a.nodeValue;if(c!==o)if(r||Rs){const[d,h,f]=function(g,p){const m=g.length,_=p.length;let C=0,y=0;for(;C<m&&C<_&&g[C]===p[C];)C++;for(;y+C<m&&y+C<_&&g[m-y-1]===p[_-y-1];)y++;return[C,m-C-y,p.slice(C,_-y)]}(c,o);h!==0&&a.deleteData(d,h),a.insertData(d,f)}else a.nodeValue=o}function _7(n,e,t,r,o,i){y8(o,n,e);const s=i.theme.text;s!==void 0&&_8(0,0,r,n,s)}function Lp(n,e){const t=qr().createElement(e);return t.appendChild(n),t}function bC(n){return n!=null&&n.__isInlineFormattable===!0}let Uh=class extends vr{constructor(t="",r){super(r);E(this,"__text");E(this,"__format");E(this,"__style");E(this,"__mode");E(this,"__detail");this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}get __isInlineFormattable(){return!0}$config(){return this.config("text",{importDOM:{"#text":()=>({conversion:n8e,priority:0}),b:()=>({conversion:e8e,priority:0}),code:()=>({conversion:Gi,priority:0}),em:()=>({conversion:Gi,priority:0}),i:()=>({conversion:Gi,priority:0}),mark:()=>({conversion:Gi,priority:0}),s:()=>({conversion:Gi,priority:0}),span:()=>({conversion:Q6e,priority:0}),strong:()=>({conversion:Gi,priority:0}),sub:()=>({conversion:Gi,priority:0}),sup:()=>({conversion:Gi,priority:0}),u:()=>({conversion:Gi,priority:0})}})}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return r6e[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===vi()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const r=or[t];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(t,r){return md(this.getLatest().__format,t,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,r){const o=this.__format,i=pv(0,o),s=mv(0,o),l=i===null?s:i,a=qr().createElement(l);let c=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(c=qr().createElement(s),a.appendChild(c)),_7(c,this,0,o,this.__text,t);const d=this.__style;return d!==""&&m7(a.style,d),a}updateDOM(t,r,o){const i=this.__text,s=t.__format,l=this.__format,a=pv(0,s),c=pv(0,l),d=mv(0,s),h=mv(0,l);if((a===null?d:a)!==(c===null?h:c))return!0;if(a===c&&d!==h){const _=r.firstChild;_==null&&j(48);const C=qr().createElement(h);return _7(C,this,0,l,i,o),r.replaceChild(C,_),!1}let f=r;c!==null&&a!==null&&(f=r.firstChild,f==null&&j(49)),y8(i,f,this);const g=o.theme.text;g!==void 0&&s!==l&&_8(0,s,l,f,g);const p=t.__style,m=this.__style;return p!==m&&m7(r.style,m,p),!1}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(t){let{element:r}=super.exportDOM(t);return Bt(r)||j(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=Lp(r,"b")),this.hasFormat("italic")&&(r=Lp(r,"i")),this.hasFormat("strikethrough")&&(r=Lp(r,"s")),this.hasFormat("underline")&&(r=Lp(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?or[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?e6e[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=md(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=n6e[t];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){Vn();let o=t,i=r;const s=Ve(),l=this.getTextContent(),a=this.__key;if(typeof l=="string"){const c=l.length;o===void 0&&(o=c),i===void 0&&(i=c)}else o=0,i=0;if(!Ce(s))return A8(a,o,a,i,"text","text");{const c=vi();c!==s.anchor.key&&c!==s.focus.key||Jt(a),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,o,i){const s=this.getWritable(),l=s.__text,a=o.length;let c=t;c<0&&(c=a+c,c<0&&(c=0));const d=Ve();if(i&&Ce(d)){const f=t+a;d.setTextNodeRange(s,f,s,f)}const h=l.slice(0,c)+o+l.slice(c+r);return s.__text=h,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Vn();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=vi(),l=o.length;t.sort((S,N)=>S-N),t.push(l);const a=[],c=t.length;for(let S=0,N=0;S<l&&N<=c;N++){const $=t[N];$>S&&(a.push(o.slice(S,$)),S=$)}const d=a.length;if(d===1)return[r];const h=a[0],f=r.getParent();let g;const p=r.getFormat(),m=r.getStyle(),_=r.__detail;let C=!1,y=null,v=null;const k=Ve();if(Ce(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===i&&(y=S),N.type==="text"&&N.key===i&&(v=N)}r.isSegmented()?(g=qn(h),g.__format=p,g.__style=m,g.__detail=_,g.__state=GS(r,g),C=!0):g=r.setTextContent(h);const x=[g];for(let S=1;S<d;S++){const N=qn(a[S]);N.__format=p,N.__style=m,N.__detail=_,N.__state=GS(r,N);const $=N.__key;s===i&&Jt($),x.push(N)}const b=y?y.offset:null,T=v?v.offset:null;let w=0;for(const S of x){if(!y&&!v)break;const N=w+S.getTextContentSize();if(y!==null&&b!==null&&b<=N&&b>=w&&(y.set(S.getKey(),b-w,"text"),b<N&&(y=null)),v!==null&&T!==null&&T<=N&&T>=w){v.set(S.getKey(),T-w,"text");break}w=N}if(f!==null){(function($){const O=$.getPreviousSibling(),M=$.getNextSibling();O!==null&&Em(O),M!==null&&Em(M)})(this);const S=f.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,x),this.remove()):S.splice(N,1,x),Ce(k)&&Ra(k,f,N,d-1)}return x}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||j(50);const o=this.__key,i=t.__key,s=this.__text,l=s.length;vi()===i&&Jt(o);const a=Ve();if(Ce(a)){const f=a.anchor,g=a.focus;f!==null&&f.key===i&&A7(f,r,o,t,l),g!==null&&g.key===i&&A7(g,r,o,t,l)}const c=t.__text,d=r?c+s:s+c;this.setTextContent(d);const h=this.getWritable();return t.remove(),h}isTextEntity(){return!1}};function Q6e(n){return{forChild:Zk(n.style),node:null}}function e8e(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:Zk(e.style,t?void 0:"bold"),node:null}}const y7=new WeakMap;function t8e(n){if(!Bt(n))return!1;if(n.nodeName==="PRE")return!0;const e=n.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function n8e(n){const e=n;n.parentElement===null&&j(129);let t=e.textContent||"";if(function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=y7.get(i))===void 0&&!t8e(i);)s.push(i),i=i.parentNode;const l=o===void 0?i:o;for(let a=0;a<s.length;a++)y7.set(s[a],l);return l}(e)!==null)return{node:M8(t)};if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,o=!0;for(;r!==null&&(r=v7(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),o=!1;break}}o&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,o=!0;for(;r!==null&&(r=v7(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:qn(t)}}function v7(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=r,Bt(t)){const i=t.style.display;if(i===""&&!q8e(t)||i!==""&&!i.startsWith("inline"))return null}let o=t;for(;(o=e?t.firstChild:t.lastChild)!==null;)t=o;if(Ki(t))return t;if(t.nodeName==="BR")return null}}const r8e={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Gi(n){const e=r8e[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Zk(n.style,e),node:null}}function qn(n=""){return P0(new Uh(n))}function de(n){return n instanceof Uh}function Zk(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),o=t==="700"||t==="bold",i=r.includes("line-through"),s=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return c=>((de(c)||bC(c))&&(o&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),s&&!c.hasFormat("italic")&&c.toggleFormat("italic"),l&&!c.hasFormat("underline")&&c.toggleFormat("underline"),a!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),a!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),e&&!c.hasFormat(e)&&c.toggleFormat(e)),c)}let Gk=class extends Uh{$config(){return this.config("tab",{extends:Uh})}constructor(e=void 0){super(" ",e),this.__detail=2}createDOM(e){const t=super.createDOM(e),r=Zu(e.theme,"tab");return r!==void 0&&t.classList.add(...r),t}setTextContent(e){return super.setTextContent(" ")}spliceText(e,t,r,o){return r===""&&t===0||r===" "&&t===1||j(286),this}setDetail(e){return e!==2&&j(127),this}setMode(e){return e!=="normal"&&j(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function o8e(){return P0(new Gk)}function v8(n){return n instanceof Gk}let i8e=class{constructor(e,t,r){E(this,"key");E(this,"offset");E(this,"type");E(this,"_selection");this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:u$(Ns(Nc(this,"next")),Ns(Nc(e,"next")))<0}getNode(){const e=_t(this.key);return e===null&&j(20),e}set(e,t,r,o){const i=this._selection,s=this.key;o&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,bc()||(vi()===s&&Jt(e),i!==null&&(i.setCachedNodes(null),Ce(i)&&(i._cachedIsBackward=null),i.dirty=!0)))}};function Mi(n,e,t){return new i8e(n,e,t)}function _v(n,e){let t=e.__key,r=n.offset,o="element";if(de(e)){o="text";const i=e.getTextContentSize();r>i&&(r=i)}else if(!q(e)){const i=e.getNextSibling();if(de(i))t=i.__key,r=0,o="text";else{const s=e.getParent();s&&(t=s.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,o)}function C7(n,e){if(q(e)){const t=e.getLastDescendant();q(t)||de(t)?_v(n,t):_v(n,e)}else _v(n,e)}function b7(n,e,t,r){const o=n.getNode(),i=o.getChildAtIndex(n.offset),s=qn();if(s.setFormat(t),s.setStyle(r),b8e(i))i.splice(0,0,[s]);else if(i!==null){const l=un(o)?kn().append(s):s;i.insertBefore(l)}else if(un(o)){const l=o.getLastChild();q(l)&&!l.isInline()&&l.isEmpty()?l.append(s):o.append(kn().append(s))}else o.append(s);n.is(e)&&e.set(s.__key,0,"text"),n.set(s.__key,0,"text")}function k7(n,e,t,r){const o=n.anchor.getNode();de(o)||j(398);const i=n.anchor.offset,s=qn(e);s.setFormat(t),s.setStyle(r);const l=o.getParentOrThrow();if(i===0)l.isInline()&&!o.__prev?l.insertBefore(s):o.insertBefore(s,!1);else if(i===o.getTextContentSize())l.isInline()&&!o.__next?l.insertAfter(s):o.insertAfter(s,!1);else{const[a]=o.splitText(i);a.insertAfter(s,!1)}o.getTextContent()===""&&o.isAttached()&&o.remove(),s.selectEnd(),s.isComposing()&&n.anchor.type==="text"&&n.anchor.set(n.anchor.key,n.anchor.offset-e.length,n.anchor.type)}let C8=class b8{constructor(e){E(this,"_nodes");E(this,"_cachedNodes");E(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Bg(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new b8(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes().filter(s=>$n(s)===null),r=t.length;if(r===0)return;const o=t[r-1];let i;if(de(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<r;s++)t[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const o of t){const i=_t(o);i!==null&&r.push(i)}return bc()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){const e=this.getNodes().filter(t=>$n(t)===null);if((Ve()||Rg())===this&&e[0]){const t=Nt(e[0],"next");_$e(Ec(t,t))}for(const t of e)t.remove();k8()}};function k8(){const n=Uo();if(n.isEmpty()){const e=kn();n.append(e),e.select()}}function Ce(n){return n instanceof Ig}let Ig=class x8{constructor(e,t,r,o){E(this,"format");E(this,"style");E(this,"anchor");E(this,"focus");E(this,"_cachedNodes");E(this,"_cachedIsBackward");E(this,"dirty");this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this._cachedIsBackward=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Ce(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const l=new Set,a=new Set;for(const c of r)if(Bo(c)){const{origin:d}=c;o.length===0?l.add(d):(a.add(d),o.push(d))}else{const{origin:d}=c;q(d)&&a.has(d)||o.push(d)}if(s&&o.push(s.caret.origin),wc(r.focus)&&q(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let c=Gl(r.focus.origin,"previous");Bo(c)&&l.has(c.origin)&&!c.origin.isEmpty()&&c.origin.is(o[o.length-1]);c=p3(c))l.delete(c.origin),o.pop();for(;o.length>1;){const c=o[o.length-1];if(!q(c)||a.has(c)||c.isEmpty()||l.has(c))break;o.pop()}if(o.length===0&&r.isCollapsed()){const c=Ns(r.anchor),d=Ns(r.anchor.getFlipped()),h=g=>wi(g)?g.origin:g.getNodeAtCaret(),f=h(c)||h(d)||(r.anchor.getNodeAtCaret()?c.origin:d.origin);o.push(f)}return o}(f$(ew(this),"next"));return bc()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,o){return this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,o,"text"),this}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[l,a]=S7(this);let c="",d=!0;for(let h=0;h<e.length;h++){const f=e[h];if(q(f)&&!f.isInline()){d||(c+=`
26
+ `);let g="";for(const p of Io(f)){const m=vd(f,p);m!==null&&(g+=m.getTextContent())}g!==""?(c+=g,d=!1):d=!f.isEmpty()}else if(d=!1,de(f)){let g=f.getTextContent();f===t?f===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(g=l<a?g.slice(l,a):g.slice(a,l)):g=s?g.slice(l):g.slice(a):f===r&&(g=s?g.slice(0,a):g.slice(0,l)),c+=g}else!Qe(f)&&!jl(f)||f===r&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(e){const t=Je(),r=t.getEditorState()._selection,o=$8(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(o===null)return;const[i,s,l]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),l&&(this.dirty=!0),f6e(this)}clone(){const e=this.anchor,t=this.focus;return new x8(Mi(e.key,e.offset,e.type),Mi(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=md(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=or[e];return(this.format&t)!==0}insertRawText(e){this.insertNodes(M8(e))}insertText(e){let t=this.format,r=this.style;if(!this.isCollapsed()){const h=(this.focus.isBefore(this.anchor)?this.focus:this.anchor).getNode();if(de(h)&&(t=h.getFormat(),r=h.getStyle()),this.removeText(),this.format=t,this.style=r,e==="")return;if(vi()===null)return this.anchor.type==="element"&&b7(this.anchor,this.focus,t,r),void k7(this,e,t,r)}this.anchor.type==="element"&&b7(this.anchor,this.focus,t,r);const o=this.anchor.getNode();de(o)||j(398);const i=this.anchor.offset,s=o.getParentOrThrow(),l=o.getTextContentSize();if(Po(o)||i===0&&(!o.canInsertTextBefore()||!s.canInsertTextBefore()&&!o.__prev)||i===l&&(!o.canInsertTextAfter()||!s.canInsertTextAfter()&&!o.__next)){if(o.isSegmented()&&i!==0&&i!==l){if(vi()!==null)o.setMode("normal").setFormat(t).setStyle(r);else{const f=qn(o.getTextContent());f.setFormat(t),f.setStyle(r),o.replace(f),f.select(i,i)}return void(e!==""&&this.insertText(e))}if(e==="")return;if(i===0){const f=o.getPreviousSibling();if(de(f)&&f.canInsertTextAfter()&&!Po(f))f.select();else{const g=qn();g.setFormat(t),g.setStyle(r),s.canInsertTextBefore()?o.insertBefore(g):s.insertBefore(g),g.select()}return void this.insertText(e)}if(i===l){const f=o.getNextSibling();if(de(f)&&f.canInsertTextBefore()&&!Po(f))f.select(0,0);else{const g=qn();g.setFormat(t),g.setStyle(r),s.canInsertTextAfter()?o.insertAfter(g):s.insertAfter(g),g.select(0,0)}return void this.insertText(e)}const h=qn(e);return h.setFormat(t),h.setStyle(r),o.replace(h),void h.select()}if(e==="")return;const a=s.isInline()&&i===0&&!o.__prev,c=s.isInline()&&i===l&&!o.__next,d=o.getFormat()!==t||o.getStyle()!==r;if(a||c||d){if(o.getTextContent()!==""||a||c)return void k7(this,e,t,r);o.setFormat(t),o.setStyle(r)}o.spliceText(i,0,e,!0),o.isComposing()&&this.anchor.type==="text"&&this.anchor.set(this.anchor.key,this.anchor.offset-e.length,this.anchor.type)}removeText(){const e=Ve()===this;v1(this,y$e(ew(this))),e&&Ve()!==this&&kr(this)}formatText(e,t=null){l8e(this,e,t)}insertNodes(e){if(e.length===0)return;this.isCollapsed()||this.removeText();const t=this.anchor.getNode();if(this.anchor.type==="element"&&q(t)&&$n(t)!==null){let m=t.isShadowRoot()?t.getFirstChild()??t.append(kn()).getFirstChild():t.getFirstChild();if(t.isShadowRoot()&&m!==null&&!q(m)){const _=kn();m.insertBefore(_),m=_}if(m!==null){m.selectStart();const _=Ve();return Ce(_)||j(369),_.insertNodes(e)}}if(this.anchor.type==="element"&&un(t)){const m=vv(e),_=m.getLastDescendant();return t.splice(this.anchor.offset,0,m.getChildren()),void(_!==null&&_.selectEnd())}let r=(this.isBackward()?this.focus:this.anchor).getNode(),o=Ba(r,Ir);const i=e[e.length-1];if(q(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const m=Ef(this);o.splice(m,0,e),i.selectEnd()}return}if(!e.some(m=>(q(m)||Qe(m))&&!m.isInline())){q(o)||j(211,r.constructor.name,r.getType());const m=Ef(this);return o.splice(m,0,e),void i.selectEnd()}if(q(o)&&$n(o)!==null){const m=Ef(this),_=SC(e);o.splice(m,0,_);const C=_[_.length-1];return void(C!==void 0?C.selectEnd():o.select(m,m))}if(o===null){const m=vv(e),_=m.getLastDescendant();let C=Nc(this.anchor,"next");for(const y of m.getChildren())C=S$e(y,C);return void(_!==null&&_.selectEnd())}if(q(o)&&!o.isParentRequired()&&!un(o.getParentOrThrow())){const m=Ef(this),_=SC(e);o.splice(m,0,_);const C=_[_.length-1];return void(C!==void 0?C.selectEnd():o.select(m,m))}const s=vv(e),l=s.getLastDescendant(),a=s.getChildren(),c=!q(o)||!o.isEmpty()?this.insertParagraph():null;c&&!o.isAttached()&&(r=this.anchor.getNode(),o=Ba(r,Ir));const d=a[a.length-1];let h=a[0];var f;q(f=h)&&Ir(f)&&!f.isEmpty()&&q(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(q(o)||j(211,r.constructor.name,r.getType()),o.append(...h.getChildren()),h=a[1]),h&&(o===null&&j(212,r.constructor.name,r.getType()),function(m,_){const C=_.getParentOrThrow().getLastChild();let y=_;const v=[_];for(;y!==C;)y.getNextSibling()||j(140),y=y.getNextSibling(),v.push(y);let k=m;for(const x of v)k=k.insertAfter(x)}(o,h));const g=Ba(l,Ir);c&&q(g)&&(c.canMergeWhenEmpty()||Ir(d))&&(g.append(...c.getChildren()),c.remove()),q(o)&&o.isEmpty()&&o.remove(),l.selectEnd();const p=q(o)?o.getLastChild():null;jl(p)&&g!==o&&p.remove()}insertParagraph(){const e=this.anchor.getNode();if(this.anchor.type==="element"&&un(e)){const l=kn();return e.splice(this.anchor.offset,0,[l]),l.select(),l}const t=Ef(this),r=Ba(this.anchor.getNode(),Ir);if(r!==null&&$n(r)!==null)return null;q(r)||j(213);const o=r.getChildAtIndex(t),i=o?[o,...o.getNextSiblings()]:[],s=r.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(e){const t=Qk();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),o=t.getIndexWithinParent();r.select(o,o)}}extract(){const e=[...this.getNodes()],t=e.length;let r=e[0],o=e[t-1];const[i,s]=S7(this),l=this.isBackward(),[a,c]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,h]=l?[s,i]:[i,s];if(t===0)return[];if(t===1){if(de(r)&&!this.isCollapsed()){const f=r.splitText(d,h),g=d===0?f[0]:f[1];return g?(a.set(g.getKey(),0,"text"),c.set(g.getKey(),g.getTextContentSize(),"text"),[g]):[]}return[r]}if(de(r)&&(d===r.getTextContentSize()?e.shift():d!==0&&([,r]=r.splitText(d),e[0]=r,a.set(r.getKey(),0,"text"))),de(o)){const f=o.getTextContent().length;h===0?e.pop():h!==f&&([o]=o.splitText(h),e[e.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return e}modify(e,t,r){if(xm(this,e,t,r))return;const o=e==="move",i=Je(),s=Go(Nr(i));if(!s)return;const l=i._blockCursorElement,a=i._rootElement,c=this.focus.getNode();a===null||l===null||!q(c)||c.isInline()||c.canBeEmpty()||$m(l,i,a);const d=_d(i,this.focus.key);let h=d;if(this.focus.type==="text"&&(h=de(c)?Ml(c,d,i):null),this.dirty){const f=_d(i,this.anchor.key);let g=f;if(this.anchor.type==="text"){const p=this.anchor.getNode();g=de(p)?Ml(p,f,i):null}g&&h&&km(s,g,this.anchor.offset,h,this.focus.offset)}if(r==="character"&&de(c)&&c.isUnmergeable()&&(t?this.focus.offset===0:this.focus.offset===c.getTextContentSize())){const f=Nt(c,t?"previous":"next").getNodeAtCaret();if(de(f)){if(!o){const g=f.getTextContentSize();return t?this.focus.set(f.__key,g-1,"text"):this.focus.set(f.__key,1,"text"),void(this.dirty=!0)}{const g=i.getElementByKey(f.getKey()),p=g?Ml(f,g,i):null;if(p){const m=t?p.length:0;km(s,p,m,p,m)}}}}if(w8(s,e,t?"backward":"forward",r),s.rangeCount>0){const f=I0(s,i._rootElement),g=f||s.getRangeAt(0),p=this.anchor.getNode(),m=Fn(p)?p:Y8(p);this.applyDOMRange(g),this.dirty=!0,!o&&(T8(this,t,m),(f?s.direction!=="backward":s.anchorNode===g.startContainer&&s.anchorOffset===g.startOffset)||S8(this))}r==="lineboundary"&&xm(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&q(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const o=t.getParent(),i=t.getNextSibling()||(o===null?null:o.getNextSibling());if(q(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,e))return;const i=a$(Nc(r,e?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const a of i.iterNodeCarets("shadowRoot"))if(Bo(a)){if(!a.origin.isInline()){if(a.origin.isShadowRoot()){if(l.type==="merge-block")break;if(q(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=Ns(a);v1(this,Ec(c,c)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:a,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(wc(a)){if(q(a.origin)){if(a.origin.isInline()){if(!a.origin.isParentOf(i.anchor.origin))break}else l={block:a.origin,type:"merge-next-block"};continue}if(Qe(a.origin)){if(!a.origin.isIsolated())if(Io(a.origin).length>0){if(q(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=xC();c.add(a.origin.getKey()),kr(c)}}else if(l.type==="merge-next-block"&&(a.origin.isKeyboardSelectable()||!a.origin.isInline())&&q(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=xC();c.add(a.origin.getKey()),kr(c)}else a.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:a,block:c}=l;return Io(c).length>0?void 0:a.origin.isEmpty()&&!c.isEmpty()&&a.origin.getParent()===c.getParent()?void a.origin.remove(!0):(v1(this,Ec(!a.origin.isEmpty()&&c.isEmpty()?Zd(Nt(c,a.direction)):i.anchor,a)),this.removeText())}for(let a=r.getNode();a!==null;){if($n(a)!==null)return;if(q(a)&&a.isShadowRoot())break;a=a.getParent()}}const s=this.focus;if(yv(this,e,"character"),this.isCollapsed()){if(e&&r.offset===0&&w7(this,r.getNode()))return}else{const l=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=s.offset,c=l.getTextContentSize();if(l.is(o)||e&&a!==c||!e&&a!==0)return void T7(l,e,a)}else if(o!==null&&o.isSegmented()){const a=r.offset,c=o.getTextContentSize();if(o.is(l)||e&&a!==0||!e&&a!==c)return void T7(o,e,a)}(function(a,c){const d=a.anchor,h=a.focus,f=d.getNode(),g=h.getNode();if(f===g&&d.type==="text"&&h.type==="text"){const p=d.offset,m=h.offset,_=p<m,C=_?p:m,y=_?m:p,v=y-1;C!==v&&function(k){return!(j8(k)||a8e(k))}(f.getTextContent().slice(C,y))&&(c?h.set(h.key,v,h.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Fn(r.getParent())&&r.getPreviousSibling()===null&&w7(this,r),k8()}}deleteLine(e){const t=kC(this.anchor);if(t!==null&&Qe(Lo(t)))return this.isCollapsed()||this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),void this.deleteCharacter(e);this.isCollapsed()&&yv(this,e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):Ba(this.anchor.getNode(),Ir)!==Ba(this.focus.getNode(),Ir)?(this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),this.deleteCharacter(e)):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;yv(this,e,"word")}this.isCollapsed()?this.deleteCharacter(e):this.removeText()}isBackward(){const e=this._cachedIsBackward;if(e!==null)return e;const t=this.focus.isBefore(this.anchor);return bc()||(this._cachedIsBackward=t),t}getStartEndPoints(){return[this.anchor,this.focus]}};function Bg(n){return n instanceof C8}function s8e(n,e){if(Bg(n)){for(const C of n.getNodes())bC(C)&&C.setFormat(e(C.getFormat()));return}if(n.isCollapsed())return n.setFormat(e(n.format)),void Jt(null);const t=[];for(const C of n.getNodes())de(C)?t.push(C):q(C)?C.setTextFormat(e(C.getTextFormat())):bC(C)&&C.setFormat(e(C.getFormat()));const r=t.length;if(r===0)return n.setFormat(e(n.format)),void Jt(null);const o=n.anchor,i=n.focus,s=n.isBackward(),l=s?i:o,a=s?o:i;let c=0,d=t[0],h=l.type==="element"?0:l.offset;if(l.type==="text"&&h===d.getTextContentSize()&&(c=1,d=t[1],h=0),d==null)return;const f=r-1;let g=t[f];const p=a.type==="text"?a.offset:g.getTextContentSize();if(d.is(g)){if(h===p)return;const C=e(d.getFormat());if(Po(d)||h===0&&p===d.getTextContentSize())d.setFormat(C);else{const y=d.splitText(h,p),v=h===0?y[0]:y[1];v.setFormat(C),l.type==="text"&&l.set(v.__key,0,"text"),a.type==="text"&&a.set(v.__key,p-h,"text")}return void(n.format=C)}h===0||Po(d)||([,d]=d.splitText(h),h=0);const m=e(d.getFormat());d.setFormat(m);const _=e(g.getFormat());p>0&&(p===g.getTextContentSize()||Po(g)||([g]=g.splitText(p)),g.setFormat(_));for(let C=c+1;C<f;C++){const y=t[C];y.setFormat(e(y.getFormat()))}l.type==="text"&&l.set(d.__key,h,"text"),a.type==="text"&&a.set(g.__key,p,"text"),n.format=m|_}function l8e(n,e,t=null){const r=t===null&&Ce(n)?md(n.format,e,null):t;s8e(n,o=>md(o,e,r))}function x7(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function S7(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[x7(t),x7(r)]}function w7(n,e){for(let t=e;t;t=t.getParent()){if(q(t)){if(t.collapseAtStart(n))return!0;if(un(t))break}if(t.getPreviousSibling())break}return!1}function S8(n){const e=n.focus,t=n.anchor,r=t.key,o=t.offset,i=t.type;t.set(e.key,e.offset,e.type,!0),e.set(r,o,i,!0)}function w8(n,e,t,r){n.modify(e,t,r)}function T8(n,e,t){const r=n.getNodes(),o=r.filter(l=>Nm(l,t));if(o.length===0||o.length===r.length)return!1;const i=e?o[0]:o[o.length-1],s=q(i)?i:i.getParentOrThrow();return e?s.selectStart():s.selectEnd(),!0}function yv(n,e,t){if(xm(n,"extend",e,t))return;const r=Je(),o=Go(Nr(r));if(!o||typeof o.modify!="function")return;const i=r._blockCursorElement,s=r._rootElement,l=n.anchor,a=n.focus.getNode();s===null||i===null||!q(a)||a.isInline()||a.canBeEmpty()||$m(i,r,s);const c=S=>{const N=S.getNode(),$=r.getElementByKey(S.key);return $!==null&&S.type==="text"&&de(N)?Ml(N,$,r):$},d=l.getNode(),h=c(l);if(h===null)return;const f=l.offset,g=n.isCollapsed(),p=n.focus,m=g?h:c(p);if(m===null)return;const _=p.offset;if(km(o,m,_,m,_),w8(o,"move",e?"backward":"forward",t),o.rangeCount===0)return;const C=I0(o,s)||o.getRangeAt(0),y=C.startContainer,v=C.startOffset;if(g&&t==="character"&&l.type==="text"&&de(d)&&d.isUnmergeable()&&f===(e?0:d.getTextContentSize())){const S=Nt(d,e?"previous":"next").getNodeAtCaret();if(de(S)){const N=e?S.getTextContentSize()-1:1;return n.focus.set(S.__key,N,"text"),void(n.dirty=!0)}}if(g&&t==="character"&&l.type==="text"){const S=e?0:d.getTextContentSize(),N=y===h?v:f!==S?S:-1;if(N>=0)return void(N!==f&&(n.focus.set(l.key,N,"text"),n.dirty=!0))}const[k,x,b,T]=e?[y,v,h,f]:[h,f,y,v],w=Fn(d)?d:Y8(d);n.applyDOMRange({collapsed:!1,endContainer:b,endOffset:T,startContainer:k,startOffset:x}),n.dirty=!0,!T8(n,e,w)&&e&&S8(n),t==="lineboundary"&&xm(n,"extend",e,t,"decorators")}const a8e=(()=>{try{const n=new RegExp("\\p{Emoji}","u"),e=n.test.bind(n);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function T7(n,e,t){const r=n,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let c=0;c<i;c++){const d=c===i-1;if(l=s,s+=o[c].length,e&&s===t||s>t||d){o.splice(c,1),d&&(l=void 0);break}}const a=o.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function E7(n,e,t,r){let o,i=e,s=!1;if(Bt(n)){let l=!1;const a=n.childNodes,c=a.length,d=r._blockCursorElement;i===c&&c>0&&(l=!0,i=c-1),qd(n,r)!==void 0||Am(n,r)||(s=!0);let h=a[i],f=!1;if(h===d)h=a[i+1],f=!0;else if(d!==null){const g=d.parentNode;n===g&&e>Array.prototype.indexOf.call(g.children,d)&&i--}if(o=Iu(h),de(o))i=Ti(o,l?"next":"previous");else{let g=Iu(n);if(g===null)return null;if(q(g)){const p=r.getElementByKey(g.getKey());p===null&&j(214),[g,i]=co(g,p,r).resolveChildIndex(g,p,n,e),q(g)||j(215),l&&i>=g.getChildrenSize()&&(i=Math.max(0,g.getChildrenSize()-1));let _=g.getChildAtIndex(i);if(q(_)&&function(C,y,v){const k=C.getParent();return v===null||k===null||!k.canBeEmpty()||k!==v.getNode()}(_,0,t)){const C=l?_.getLastDescendant():_.getFirstDescendant();C===null?g=_:(_=C,g=q(_)?_:_.getParentOrThrow()),i=0}de(_)?(o=_,g=null,i=Ti(_,l?"next":"previous")):_!==g&&l&&!f&&(q(g)||j(216),i=Math.min(g.getChildrenSize(),i+1))}else{const p=Lo(g),m=p!==null?p:g,_=m.getIndexWithinParent(),C=r.getElementByKey(g.getKey());let y="after";if(C!==null&&Iu(n)===g){const v=co(g,C,r);v.element!==C?y=v.resolveLeafPosition(C,n,e):e===0&&Qe(g)&&(y="before")}i=y==="before"?_:_+1,g=m.getParentOrThrow()}if(q(g))return[Mi(g.__key,i,"element"),s]}}else o=Iu(n);return de(o)?[Mi(o.__key,Ti(o,i,"clamp"),"text"),s]:null}function N7(n,e,t){const r=n.offset,o=n.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(e){if((t||!e)&&i===null&&q(s)&&s.isInline()){const l=s.getPreviousSibling();de(l)&&n.set(l.__key,l.getTextContent().length,"text")}}else q(i)&&!t&&i.isInline()?n.set(i.__key,i.getChildrenSize(),"element"):de(i)&&!o.isUnmergeable()&&n.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(e&&q(i)&&i.isInline())n.set(i.__key,0,"element");else if((t||e)&&i===null&&q(s)&&s.isInline()&&!s.canInsertTextAfter()&&s.getTextContentSize()>1){const l=s.getNextSibling();de(l)&&n.set(l.__key,0,"text")}}}function kC(n){const e=_t(n.key);return e===null?null:r$e(e)}function E8(n,e,t){const r=kC(n),o=kC(e);if(r===o||r!==null&&o!==null&&r.is(o))return!1;const i=t(r,o);if(r!==null)return q(r)?e.set(r.getKey(),i?r.getChildrenSize():0,"element"):e.set(r.getKey(),i?r.getTextContentSize():0,"text"),!0;const s=Lo(o);if(s===null)return!1;const l=s.getParent();if(l===null)return!1;const a=s.getIndexWithinParent();return e.set(l.getKey(),i?a+1:a,"element"),!0}function N8(n){const e=E8(n.anchor,n.focus,(t,r)=>function(o,i,s,l){if(s!==null&&l!==null){const d=Lo(s),h=Lo(l);if(d!==null&&d.is(h)){for(const f of B0(d).values()){if(f===s.getKey())return!0;if(f===l.getKey())return!1}return!0}return d===null||h===null||d.isBefore(h)}if(s!==null){const d=Lo(s),h=_t(i.key);return d===null||h===null||!(!d.is(h)&&!d.isParentOf(h))||d.isBefore(h)}const a=Lo(l),c=_t(o.key);return a!==null&&c!==null&&!a.is(c)&&!a.isParentOf(c)&&c.isBefore(a)}(n.anchor,n.focus,t,r));return e&&(n.dirty=!0),e}function $8(n,e,t,r,o,i){if(n===null||t===null||!L0(o,n,t))return null;const s=E7(n,e,Ce(i)?i.anchor:null,o);if(s===null)return null;const l=E7(t,r,Ce(i)?i.focus:null,o);if(l===null)return null;const[a,c]=s,[d,h]=l;if(a.type==="element"&&d.type==="element"){const g=Iu(n),p=Iu(t);if(Qe(g)&&Qe(p))return null}const f=o._slotsUsed&&E8(a,d,()=>(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)!==0);return function(g,p){if(g.type==="text"&&p.type==="text"){const m=g.isBefore(p),_=g.is(p);N7(g,m,_),N7(p,!m,_),_&&p.set(g.key,g.offset,g.type)}}(a,d),[a,d,c||h||f]}function c8e(n){return q(n)&&!n.isInline()}function A8(n,e,t,r,o,i){const s=ua(),l=new Ig(Mi(n,e,o),Mi(t,r,i),0,"");return l.dirty=!0,s._selection=l,l}function u8e(){const n=Mi("root",0,"element"),e=Mi("root",0,"element");return new Ig(n,e,0,"")}function xC(){return new C8(new Set)}function Cm(n,e,t,r){const o=t._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,l=s==="selectionchange",a=!sC&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,d,h,f;if(Ce(n)&&!a)return n.clone();{if(e===null)return null;const k=Ho(e,t._rootElement);if(c=k.anchorNode,d=k.focusNode,h=k.anchorOffset,f=k.focusOffset,(l||s===void 0)&&Ce(n)&&!L0(t,c,d))return n.clone()}const g=$8(c,h,d,f,t,n);if(g===null)return null;const[p,m,_]=g;let C=0,y="";if(Ce(n)){const k=n.anchor;if(p.key===k.key)C=n.format,y=n.style;else{const x=p.getNode();de(x)?(C=x.getFormat(),y=x.getStyle()):q(x)&&(C=x.getTextFormat(),y=x.getTextStyle())}}const v=new Ig(p,m,C,y);return _&&(v.dirty=!0),v}function Ve(){return ua()._selection}function Rg(){return Je()._editorState._selection}function Ra(n,e,t,r=1){const o=n.anchor,i=n.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(n.isCollapsed()){const c=o.offset;if(t<=c&&r>0||t<c&&r<0){const d=Math.max(0,c+r);o.set(a,d,"element"),i.set(a,d,"element"),$7(n)}}else{const c=n.isBackward(),d=c?i:o,h=d.getNode(),f=c?o:i,g=f.getNode();if(e.is(h)){const p=d.offset;(t<=p&&r>0||t<p&&r<0)&&d.set(a,Math.max(0,p+r),"element")}if(e.is(g)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}}$7(n)}function $7(n){const e=n.anchor,t=e.offset,r=n.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!q(i))return;const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(de(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text"),r.set(c.__key,d,"text")}return}if(q(i)){const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(de(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text")}}if(q(s)){const l=s.getChildrenSize(),a=o>=l,c=a?s.getChildAtIndex(l-1):s.getChildAtIndex(o);if(de(c)){let d=0;a&&(d=c.getTextContentSize()),r.set(c.__key,d,"text")}}}function bm(n,e,t,r,o){let i=null,s=0,l=null;r!==null?(i=r.__key,de(r)?(s=r.getTextContentSize(),l="text"):q(r)&&(s=r.getChildrenSize(),l="element")):o!==null&&(i=o.__key,de(o)?l="text":q(o)&&(l="element")),i!==null&&l!==null?n.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function A7(n,e,t,r,o){n.type==="text"?n.set(t,n.offset+(e?0:o),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function km(n,e,t,r,o){try{n.setBaseAndExtent(e,t,r,o)}catch{}}function M7(n,e,t){const r=_d(n,e.getKey());if(q(e)){const o=co(e,r,n);return[o.element,t+o.getFirstChildOffset()]}return[r,t]}function d8e(n,e,t,r,o,i){const s=i.getRootNode(),l=zg(s)||Zl(s)?qh(s):null;if(o.has(j6e)&&l!==i||l!==null&&V8(l,l))return;const a=Ho(r,i);let c;if(!Ce(e))return void(n!==null&&L0(t,a.anchorNode,a.focusNode)&&r.removeAllRanges());const d=e.anchor,h=e.focus,f=d.getNode(),g=h.getNode(),[p,m]=M7(t,f,d.offset),[_,C]=M7(t,g,h.offset),y=e.format,v=e.style,k=e.isCollapsed();let x=p,b=_,T=!1;if(d.type==="text"?(x=de(f)?Ml(f,p,t):null,T=f.getFormat()!==y||f.getStyle()!==v):Ce(n)&&n.anchor.type==="text"&&(T=!0),h.type==="text"&&(b=de(g)?Ml(g,_,t):null),x!==null&&b!==null){if(k&&(n===null||T||Ce(n)&&(n.format!==y||n.style!==v))&&function(w,S,N,$,O,M){w._inputState.collapsedSelectionFormat={format:S,key:O,offset:$,style:N,timeStamp:M}}(t,y,v,m,d.key,performance.now()),(r.type!=="Range"||!k)&&a.anchorOffset===m&&a.focusOffset===C&&a.anchorNode===x&&a.focusNode===b){if(l===null||!i.contains(l)){const w=l!==null?ju(l):null;w!==null&&w!==t||o.has(vC)||i.focus({preventScroll:!0})}if(d.type!=="element")return}if(km(r,x,m,b,C),Rs&&e.isCollapsed()&&i!==null&&!o.has(vC)){const w=NC(i);if(w===null||!i.contains(w)){const S=qh(i.ownerDocument),N=S!==null?ju(S):null;N!==null&&N!==t||i.focus({preventScroll:!0})}}if(!o.has(Z6e)&&e.isCollapsed()&&i!==null&&i===NC(i)){const w=Ce(e)&&e.anchor.type==="element"?x.childNodes[m]||null:(c===void 0&&(c=z8e(r,i)),c);if(w!==null){let S;if(Ki(w)){const N=w.ownerDocument.createRange();N.selectNode(w),S=N.getBoundingClientRect()}else S=w.getBoundingClientRect();(function(N,$,O){const M=c3(O),A=u3(M);if(M===null||A===null)return;const F=O.getBoundingClientRect();if($.bottom<F.top)return;let{top:P,bottom:z}=$,I=0,L=0,U=O;for(;U!==null;){const W=U===M.body;if(W){const fe=A.visualViewport;if(fe){const J=fe.offsetTop;I=J,L=J+fe.height}else I=0,L=Nr(N).innerHeight;const G=A.getComputedStyle(M.documentElement),ae=parseFloat(G.scrollPaddingTop),R=parseFloat(G.scrollPaddingBottom);isFinite(ae)&&(I+=ae),isFinite(R)&&(L-=R)}else{const fe=U===O?F:U.getBoundingClientRect();I=fe.top,L=fe.bottom}let H=0;if(P<I?H=-(I-P):z>L&&(H=z-L),H!==0)if(W)A.scrollBy(0,H);else{const fe=U.scrollTop;U.scrollTop+=H;const G=U.scrollTop-fe;P-=G,z-=G}if(W)break;U=jd(U)}})(t,S,i)}}(function(w){w._inputState.isSelectionChangeFromDOMUpdate=!0})(t)}}function f8e(n,e){for(const t of n.split(/(\r?\n|\t)/))t===`
27
+ `||t===`\r
28
+ `?e.linebreak():t===" "?e.tab():t!==""&&e.text(t)}function M8(n){const e=[];return f8e(n,{linebreak:()=>e.push(Qk()),tab:()=>e.push(o8e()),text:t=>e.push(qn(t))}),e}function SC(n){const e=[];for(const t of n)jl(t)||(!q(t)&&!Qe(t)||t.isInline()?e.push(t):q(t)&&e.push(...SC(t.getChildren())));return e}function Ef(n){let e=n;n.isCollapsed()||e.removeText();const t=Ve();Ce(t)&&(e=t),Ce(e)||j(161);const r=e.anchor;let o=r.getNode(),i=r.offset;for(;!Ir(o)&&$n(o)===null;){const s=o;if([o,i]=h8e(o,i),s.is(o))break}return i}function h8e(n,e){const t=n.getParent();if(!t){const o=kn();return Uo().append(o),o.select(),[Uo(),0]}if(de(n)){const o=n.splitText(e);if(o.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,o[0].getIndexWithinParent()+i]}if(!q(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const o=new Ig(Mi(n.__key,e,"element"),Mi(n.__key,e,"element"),0,""),i=n.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}function O7(n){return jl(n)||O8e(n)||de(n)||n.isParentRequired()}function vv(n){const e=kn();let t=null;for(let r=0;r<n.length;r++){const o=n[r];if(O7(o)){if(t===null){t=o.createParentElementNode(),e.append(t);const i=n[r+1];if(jl(o)&&(i===void 0||!O7(i)))continue}t.append(o)}else e.append(o),t=null}return e}function xm(n,e,t,r,o="decorators-and-blocks"){if(e==="move"&&r==="character"&&!n.isCollapsed()){const[d,h]=t===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return h.set(d.key,d.offset,d.type),!0}const i=Nc(n.focus,t?"previous":"next"),s=r==="lineboundary",l=e==="move";let a=i,c=o==="decorators-and-blocks";if(!v$e(a)){for(const d of a){c=!1;const{origin:h}=d;if(!Qe(h)||h.isIsolated()||(a=d,!s||!h.isInline()))break}if(c)for(const d of a$(i).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Bo(d))d.origin.isInline()||(a=d);else{if(q(d.origin))continue;Qe(d.origin)&&!d.origin.isInline()&&(a=d)}break}}if(a===i)return!1;if(l&&!s&&Qe(a.origin)&&a.origin.isKeyboardSelectable()){const d=xC();return d.add(a.origin.getKey()),kr(d),!0}return a=Ns(a),l&&Om(n.anchor,a),Om(n.focus,a),c||!s}let Yt=null,Xt=null,br=!1,Cv=!1,_1=!1;const bv=new Set;let y1=0;const D7={characterData:!0,childList:!0,subtree:!0};function bc(){return br||Yt!==null&&Yt._readOnly}function Vn(){br&&j(13)}function O8(){y1>99&&j(14)}function ua(){return Yt===null&&j(195,D8()),Yt}function Je(){return Xt===null&&j(337,D8()),Xt}function g8e(){Je()._dirtyType=2}function D8(){let n=0;const e=new Set,t=pd.version;if(typeof window<"u")for(const o of B8e(document)){const i=F0(o);if(o3(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function L8(){return Xt}function L7(n,e,t){const r=e.__type,o=z8(n,r);let i=t.get(r);i===void 0&&(i=Array.from(o.transforms),t.set(r,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function F7(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function F8(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const o of r)t.add(o)}function wC(n,e){const t=n.type,r=e.get(t);r===void 0&&j(17,t);const o=r.klass;n.type!==o.getType()&&j(18,o.name);const i=o.importJSON(n),s=n.children;if(q(i)&&Array.isArray(s))for(let a=0;a<s.length;a++){const c=wC(s[a],e);i.append(c)}const l=n.$slots;if(l){Es(i)||j(379,o.name);for(const a in l)s$(i,a,wC(l[a],e))}return i}function P7(n,e,t){const r=Yt,o=br,i=Xt;Yt=e,br=!0,Xt=n;try{return t()}finally{Yt=r,br=o,Xt=i}}function kl(n,e){const t=_1;_1=!0;try{(function(r,o){const i=r._pendingEditorState,s=r._rootElement,l=r._headless||s===null;if(i===null)return void(!r._updating&&r._deferred.length>0&&I7(r,r._deferred));const a=r._editorState,c=a._selection,d=i._selection,h=r._dirtyType!==0,f=Yt,g=br,p=Xt,m=r._updating,_=r._observer;let C=null;if(r._pendingEditorState=null,r._editorState=i,!l&&h&&_!==null){Xt=r,Yt=i,br=!1,r._updating=!0;try{const w=r._dirtyType,S=r._dirtyElements,N=r._dirtyLeaves;_.disconnect(),C=m6e(a,i,r,w,S,N)}catch(w){if(w instanceof Error&&r._onError(w),Cv)throw w;return R8(r,null,s,i),K6(r),r._dirtyType=2,Cv=!0,kl(r,a),void(Cv=!1)}finally{_.observe(s,D7),r._updating=m,Yt=f,br=g,Xt=p}}i._readOnly||(i._readOnly=!0);const y=r._dirtyLeaves,v=r._dirtyElements,k=r._normalizedNodes,x=r._updateTags;h&&(r._dirtyType=0,r._cloneNotNeeded.clear(),r._dirtyLeaves=new Set,r._dirtyElements=new Map,r._normalizedNodes=new Set),r._updateTags=new Set,function(w,S){const N=w._decorators;let $=w._pendingDecorators||N;const O=S._nodeMap;let M;for(M in $)O.has(M)||($===N&&($=q8(w)),delete $[M])}(r,i);const b=l?null:Go(Nr(r));if(r._editable&&b!==null&&(h||d===null||d.dirty||!d.is(c))&&s!==null&&!x.has(G6e)){Xt=r,Yt=i;try{if(_!==null&&_.disconnect(),h||d===null||d.dirty){const w=r._blockCursorElement;w!==null&&$m(w,r,s),d8e(c,d,r,b,x,s)}(function(w,S,N){let $=w._blockCursorElement;if(Ce(N)&&N.isCollapsed()&&N.anchor.type==="element"&&S.contains(NC(S))){const O=N.anchor,M=O.getNode(),A=O.offset;let F=!1,P=null;if(A===M.getChildrenSize())Sv(M.getChildAtIndex(A-1))&&(F=!0);else{const z=M.getChildAtIndex(A);if(z!==null&&Sv(z)){const I=z.getPreviousSibling();(I===null||Sv(I))&&(F=!0,P=w.getElementByKey(z.__key))}}if(F){const z=co(M,w.getElementByKey(M.__key),w).element;return $===null&&(w._blockCursorElement=$=function(I){const L=I.theme,U=qr().createElement("div");U.contentEditable="false",U.setAttribute("data-lexical-cursor","true");let W=L.blockCursor;if(W!==void 0){if(typeof W=="string"){const H=h$(W);W=L.blockCursor=H}W!==void 0&&U.classList.add(...W)}return U}(w._config)),S.style.caretColor="transparent",void(P===null?z.appendChild($):z.insertBefore($,P))}}$!==null&&$m($,w,S)})(r,s,d)}finally{_!==null&&_.observe(s,D7),Xt=p,Yt=f}}C!==null&&function(w,S,N,$,O){const M=Array.from(w._listeners.mutation),A=M.length;for(let F=0;F<A;F++){const[P,z]=M[F];for(const I of z){const L=S.get(I);L!==void 0&&P(L,{dirtyLeaves:$,prevEditorState:O,updateTags:N})}}}(r,C,x,y,a),Ce(d)||d===null||c!==null&&c.is(d)||r.dispatchCommand(e8);const T=r._pendingDecorators;T!==null&&(r._decorators=T,r._pendingDecorators=null,rh("decorator",r,!0,T)),function(w,S,N){const $=z7(S),O=z7(N);$!==O&&rh("textcontent",w,!0,O)}(r,o||a,i),rh("update",r,!0,{dirtyElements:v,dirtyLeaves:y,editorState:i,mutatedNodes:C,normalizedNodes:k,prevEditorState:o||a,tags:x}),!m&&I7(r,r._deferred),function(w){const S=w._updates;if(S.length===0)return void(w._cascadeCount=0);if(function($){bv.has($)||(bv.add($),setTimeout(()=>{bv.delete($),$._cascadeCount=0},0))}(w),w._cascadeCount++>99)return w._updates=[],w._cascadeCount=0,void w._onWarn(new Error(`One or more update listeners are endlessly enqueueing more updates. May have encountered infinite recursion caused by update listeners that trigger additional updates without a stop condition. Editor namespace: ${w._config.namespace}`));const N=S.shift();if(N){const[$,O]=N;Hh(w,$,O)}}(r)})(n,e)}finally{_1=t}}function rh(n,e,t,...r){const o=e._updating;e._updating=t;try{const i=e._listeners[n],s=Array.from(i);for(const[l,a]of s){a&&a();const c=l(...r);i.has(l)?i.set(l,c):c&&c()}}finally{e._updating=o}}function P8(n,e,t,r){const o=i3(n);let i;if(!_1)for(let s=0;s<o.length;s++)o[s]._updating||(o[s]._cascadeCount=0);for(let s=4;s>=0;s--)for(let l=0;l<o.length;l++){const a=o[l];if(l>0&&a._updating){i=a;break}const c=a._commands.get(e);if(c!==void 0){const d=c[s];if(d.size>0){let h=!1;if(io(a,()=>{for(const f of d)if(f(t,r))return void(h=!0)}),h)return h}}}return i&&i.update(()=>{P8(i,e,t,r)}),!1}function I7(n,e){if(n._deferred=[],e.length!==0){const t=n._updating;n._updating=!0;try{for(let r=0;r<e.length;r++)e[r]()}finally{n._updating=t}}}function B7(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const o=t.shift();if(o){const[i,s]=o,l=n._pendingEditorState;let a;s!==void 0&&(a=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(l===null&&j(191),l._flushSync=!0),a&&n._deferred.push(a),F8(n,s.tag)),l==null?Hh(n,i,s):i()}}return r}function Hh(n,e,t){const r=n._updateTags;let o,i=!1,s=!1;t!==void 0&&(o=t.onUpdate,F8(n,t.tag),i=t.skipTransforms||!1,s=t.discrete||!1),o&&n._deferred.push(o);const l=n._editorState;let a=n._pendingEditorState,c=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=B8(a||l),c=!0),a._flushSync=s;const d=Yt,h=br,f=Xt,g=n._updating;Yt=a,br=!1,n._updating=!0,Xt=n;const p=n._headless||n.getRootElement()===null;t3(null);try{c&&(p?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=function(y,v){const k=y.getEditorState()._selection,x=Go(Nr(y));return Ce(k)||k==null?Cm(k,x,y,v):k.clone()}(n,t&&t.event||null));const _=n._compositionKey;e(),i=B7(n,i),function(y,v){const k=v.getEditorState()._selection,x=y._selection;if(Ce(x)){const b=x.anchor,T=x.focus;let w;if(b.type==="text"&&(w=b.getNode(),w.selectionTransform(k,x)),T.type==="text"){const S=T.getNode();w!==S&&S.selectionTransform(k,x)}}}(a,n),n._dirtyType!==0&&(i?function(y,v){const k=v._dirtyLeaves,x=y._nodeMap;for(const b of k){const T=x.get(b);de(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&XS(T)}}(a,n):function(y,v){const k=v._dirtyLeaves,x=v._dirtyElements,b=y._nodeMap,T=vi(),w=new Map;let S=k,N=S.size,$=x,O=$.size;for(;N>0||O>0;){if(N>0){v._dirtyLeaves=new Set;for(const M of S){const A=b.get(M);de(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&XS(A),A!==void 0&&F7(A,T)&&L7(v,A,w),k.add(M)}if(S=v._dirtyLeaves,N=S.size,N>0){y1++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,$.delete("root")&&$.set("root",!0);for(const M of $){const A=M[0],F=M[1];if(x.set(A,F),!F)continue;const P=b.get(A);P!==void 0&&F7(P,T)&&L7(v,P,w)}S=v._dirtyLeaves,N=S.size,$=v._dirtyElements,O=$.size,y1++}v._dirtyLeaves=k,v._dirtyElements=x}(a,n),B7(n),function(y,v,k,x){const b=y._nodeMap,T=v._nodeMap,w=[];for(const[$]of x){const O=T.get($);O!==void 0&&(O.isAttached()||(q(O)&&fm(O,$,b,T,w,x),b.has($)||x.delete($),w.push($)))}for(const $ of k){const O=T.get($);O===void 0||O.isAttached()||(Es(O)&&O.__slots!==null&&fm(O,$,b,T,w,k),b.has($)||k.delete($),w.push($))}for(const $ of w)T.delete($);const S=Je(),N=S._compositionKey;N===null||T.has(N)||(S._compositionKey=null)}(l,a,n._dirtyLeaves,n._dirtyElements)),_!==n._compositionKey&&(a._flushSync=!0);const C=a._selection;if(Ce(C)){n._slotsUsed&&N8(C);const y=a._nodeMap,v=C.anchor.key,k=C.focus.key;y.get(v)!==void 0&&y.get(k)!==void 0||j(19)}else Bg(C)&&C._nodes.size===0&&(a._selection=null)}catch(_){return _ instanceof Error&&n._onError(_),n._pendingEditorState=l,n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void kl(n)}finally{Yt=d,br=h,Xt=f,n._updating=g,y1=0}n._dirtyType!==0||n._deferred.length>0||function(_,C){const y=C.getEditorState()._selection,v=_._selection;if(v!==null){if(v.dirty||!v.is(y))return!0}else if(y!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,kl(n)):c&&E8e(()=>{kl(n)}):(a._flushSync=!1,c&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function io(n,e,t){Xt===n&&t===void 0?bc()?Hh(n,e,t):e():Hh(n,e,t)}function p8e(n){if(un(n)){let e=null;for(const t of n.getChildren())e=t.isInline()?(e||t.replace(t.createParentElementNode())).append(t):null}}let ql=class extends vr{constructor(t){super(t);E(this,"__first");E(this,"__last");E(this,"__size");E(this,"__format");E(this,"__style");E(this,"__indent");E(this,"__dir");E(this,"__textFormat");E(this,"__textStyle");E(this,"__slotHost");E(this,"__slots");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle="",this.__slotHost=null,this.__slots=null}$config(){return this.config(Symbol.for("ElementNode"),{$transform:p8e,extends:vr})}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__slotHost=t.__slotHost,this.__slotHost!==null&&this.__parent!==null&&j(384,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=t.__slots),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return t6e[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0&&Io(this).length===0}isDirty(){const t=Je()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];for(const o of Io(this)){const i=vd(this,o);q(i)&&t.push(...i.getAllTextNodes())}let r=this.getFirstChild();for(;r!==null;){if(de(r)&&t.push(r),q(r)){const o=r.getAllTextNodes();t.push(...o)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;q(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;q(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),o=r.length;if(t>=o){const s=r[o-1];return q(s)&&s.getLastDescendant()||s||null}const i=r[t];return q(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:_t(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&j(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:_t(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&j(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let o,i;if(t<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=t;){if(i===t)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=t;){if(i===t)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let t=i$(this);const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContent(),q(s)&&i!==o-1&&!s.isInline()&&(t+=qa)}return t}getTextContentSize(){let t=function(i){let s=0;for(const l of Io(i)){const a=vd(i,l);a!==null&&(s+=a.getTextContentSize())}return s}(this);const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContentSize(),q(s)&&i!==o-1&&!s.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(t!==""){const r=dm[t];return(this.getFormat()&r)!==0}return!1}hasTextFormat(t){const r=or[t];return(this.getTextFormat()&r)!==0}getFormatFlags(t,r){return md(this.getLatest().__textFormat,t,r)}getTextStyle(){return this.getLatest().__textStyle}select(t,r){Vn();const o=Ve();let i=t,s=r;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(t===0&&r===0){const c=this.getFirstChild();if(de(c)||q(c))return c.select(0,0)}else if(!(t!==void 0&&t!==l||r!==void 0&&r!==l)){const c=this.getLastChild();if(de(c)||q(c))return c.select()}}i===void 0&&(i=l),s===void 0&&(s=l);const a=this.__key;return Ce(o)?(o.anchor.set(a,i,"element"),o.focus.set(a,s,"element"),o.dirty=!0,o):A8(a,i,a,s,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(r=>r.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""&&dm[t]||0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const r=this.getWritable();return r.__textFormat=t,r}setTextStyle(t){const r=this.getWritable();return r.__textStyle=t,r}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,o){vm(this)&&j(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();t+r<=i||j(226,String(t),String(r),String(i));for(const p of o);const l=s.__key,a=[],c=[],d=this.getChildAtIndex(t+r);let h=null,f=i-r+o.length;if(t!==0)if(t===i)h=this.getLastChild();else{const p=this.getChildAtIndex(t);p!==null&&(h=p.getPreviousSibling())}if(r>0){let p=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<r;m++){p===null&&j(100);const _=p.getNextSibling(),C=p.__key;yi(p.getWritable()),c.push(C),p=_}}let g=h;for(const p of o){g!==null&&p.is(g)&&(h=g=g.getPreviousSibling());const m=p.getWritable();m.__parent===l&&f--,yi(m);const _=p.__key;if(g===null)s.__first=_,m.__prev=null;else{const C=g.getWritable();C.__next=_,m.__prev=C.__key}p.__key===l&&j(76),m.__parent=l,a.push(_),g=p}if(t+r===i)g!==null&&(g.getWritable().__next=null,s.__last=g.__key);else if(d!==null){const p=d.getWritable();if(g!==null){const m=g.getWritable();p.__prev=g.__key,m.__next=d.__key}else p.__prev=null}if(s.__size=f,c.length){const p=Ve();if(Ce(p)){const m=new Set(c),_=new Set(a),{anchor:C,focus:y}=p;R7(C,m,_)&&bm(C,C.getNode(),this,h,d),R7(y,m,_)&&bm(y,y.getNode(),this,h,d),f!==0||this.canBeEmpty()||un(this)||this.remove()}}return s}getDOMSlot(t){return new P6(t)}exportDOM(t){const{element:r}=super.exportDOM(t);if(Bt(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px",r.setAttribute("data-lexical-indent",String(o)));const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r===0&&o===""||un(this)||this.getChildren().some(de)||(r!==0&&(t.textFormat=r),o!==""&&(t.textStyle=o)),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,r){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,r){const o=co(this,t,r);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const l=r.getElementByKey(s.getKey());l!==null&&(i==null?(o.insertChild(l),i=l):i!==l&&o.replaceChild(l,i),i=i.nextSibling)}}};function q(n){return n instanceof ql}function R7(n,e,t){let r=n.getNode();for(;r;){const o=r.__key;if(e.has(o)&&!t.has(o))return!0;r=r.getParent()}return!1}let I8=class extends vr{constructor(t){super(t);E(this,"__slotHost");E(this,"__slots");this.__slotHost=null,this.__slots=null}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__slotHost=t.__slotHost,this.__slotHost!==null&&this.__parent!==null&&j(383,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=t.__slots)}decorate(t,r){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function Qe(n){return n instanceof I8}class Jk extends ql{constructor(){super("root");E(this,"__cachedText");this.__cachedText=null}$config(){return this.config("root",{extends:ql})}getTopLevelElementOrThrow(){j(51)}getTextContent(){const t=this.__cachedText;return t===null||!bc()&&Je()._dirtyType!==0?super.getTextContent():t}remove(){j(52)}replace(t){j(53)}insertBefore(t){j(54)}insertAfter(t){j(55)}updateDOM(t,r){return!1}splice(t,r,o){for(const i of o)q(i)||Qe(i)||j(282);return super.splice(t,r,o)}static importJSON(t){return Uo().updateFromJSON(t)}collapseAtStart(){return!0}}function Fn(n){return n instanceof Jk}function B8(n){return new D0(R6(n._nodeMap),null,n._slotsUsed)}function Yk(){return new D0(new Map([["root",new Jk]]),null,!1)}function TC(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&j(130,t.name),q(n)){const o=e.children;Array.isArray(o)||j(59,t.name);const i=n.getChildren();for(let s=0;s<i.length;s++){const l=TC(i[s]);o.push(l)}}const r=Io(n);if(r.length>0){const o={};for(const i of r){const s=vd(n,i);s===null&&j(366,t.name,i),o[i]=TC(s)}e.$slots=o}return e}class D0{constructor(e,t=null,r=!1){E(this,"_nodeMap");E(this,"_selection");E(this,"_flushSync");E(this,"_readOnly");E(this,"_parsed");E(this,"_slotsUsed");this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1,this._parsed=!1,this._slotsUsed=r}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return P7(t&&t.editor||null,this,e)}clone(e){const t=new D0(this._nodeMap,e===void 0?this._selection:e,this._slotsUsed);return t._readOnly=!0,t}toJSON(){return P7(null,this,()=>({root:TC(Uo())}))}}class m8e extends ql{$config(){return this.config("artificial",{extends:ql})}createDOM(e){return qr().createElement("div")}}let Xk=class extends vr{$config(){return this.config("linebreak",{importDOM:{br:e=>y8e(e)||v8e(e)?null:{conversion:_8e,priority:0}}})}getTextContent(){return`
29
+ `}createDOM(){return qr().createElement("br")}updateDOM(){return!1}isInline(){return!0}};function _8e(n){return{node:Qk()}}function Qk(){return P0(new Xk)}function jl(n){return n instanceof Xk}function y8e(n){const e=n.parentElement;if(e!==null&&e$(e)){const t=e.firstChild;if(t===n||t.nextSibling===n&&Sm(t)){const r=e.lastChild;if(r===n||r.previousSibling===n&&Sm(r))return!0}}return!1}function v8e(n){const e=n.parentElement;if(e!==null&&e$(e)){const t=e.firstChild;if(t===n||t.nextSibling===n&&Sm(t))return!1;const r=e.lastChild;if(r===n||r.previousSibling===n&&Sm(r))return!0}return!1}function Sm(n){return Ki(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}let e3=class extends ql{$config(){return this.config("paragraph",{extends:ql,importDOM:{p:()=>({conversion:C8e,priority:0})}})}createDOM(e){const t=qr().createElement("p"),r=Zu(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}exportDOM(e){const{element:t}=super.exportDOM(e);if(Bt(t)){this.isEmpty()&&t.append(qr().createElement("br"));const r=this.getFormatType();r&&(t.style.textAlign=r)}return{element:t}}exportJSON(){const e=super.exportJSON();if(e.textFormat===void 0||e.textStyle===void 0){const t=this.getChildren().find(de);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const r=kn();r.setTextFormat(e.format),r.setTextStyle(e.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||de(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function C8e(n){const e=kn();if(Q8e(e,n),Y8e(n,e),e.getFormatType()===""){const t=n.getAttribute("align");t&&t&&t in dm&&e.setFormat(t)}return X8e(e,n),{node:e}}function kn(){return P0(new e3)}function b8e(n){return n instanceof e3}function k8e(n){console.warn(n)}const Nf=0;function R8(n,e,t,r,o){const i=n._keyToDOMMap;i.clear(),n._editorState=Yk(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,o&&o.preserveUpdateQueue||(n._updateTags=new Set,n._updates=[],n._cascadeCount=0),n._blockCursorElement=null,n._inputState.handledSelectionCommandTimeoutId!==null&&clearTimeout(n._inputState.handledSelectionCommandTimeoutId),n._inputState={collapsedSelectionFormat:{format:0,key:"root",offset:0,style:"",timeStamp:0},compositionEndData:"",compositionPhase:"idle",hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null};const s=n._observer;s!==null&&(s.disconnect(),n._observer=null),e!==null&&(e.textContent="",function(l,a){const c=`__lexicalKey_${a._key}`;delete l[c]}(e,n)),t!==null&&(t.textContent="",i.set("root",t),U8(t,n,"root"))}function x8e(n){const e=new Set,t=new Set;for(const{klass:r,ownNodeConfig:o}of f3(n)){const i=r.transform;if(!t.has(i)){t.add(i);const s=r.transform();s&&e.add(s)}if(o){const s=o.$transform;s&&e.add(s)}}return e}const wm={$createDOM:(n,e)=>n.createDOM(e._config,e),$decorateDOM:(n,e,t,r)=>{},$exportDOM:(n,e)=>{const t=r3(e,n.getType());return t&&t.exportDOM!==void 0?t.exportDOM(e,n):n.exportDOM(e)},$extractWithChild:(n,e,t,r,o)=>q(n)&&n.extractWithChild(e,t,r),$getDOMSlot:(n,e,t)=>n.getDOMSlot(e),$getSlotTargetElement:(n,e,t,r)=>null,$shouldExclude:(n,e,t)=>q(n)&&n.excludeFromCopy("html"),$shouldInclude:(n,e,t)=>!e||n.isSelected(e),$updateDOM:(n,e,t,r)=>n.updateDOM(e,t,r._config)};function S8e(n){const e=n||{},t=L8(),r=e.theme||{},o=n===void 0?t:e.parentEditor||null,i=e.disableEvents||!1,s=Yk(),l=e.namespace||(o!==null?o._config.namespace:Z8()),a=e.editorState,c=[Jk,Uh,Xk,Gk,e3,m8e,...e.nodes||[]],{onError:d,onWarn:h,html:f}=e,g=e.editable===void 0||e.editable;let p;if(n===void 0&&t!==null)p=t._nodes;else{p=new Map;for(let _=0;_<c.length;_++){let C=c[_],y=null,v=null;if(C&&typeof C=="object"){const b=C;C=b.replace,y=b.with,v=b.withKlass||null}if(typeof C!="function"||!C.prototype||!(C===vr||C.prototype instanceof vr)){let b="<unknown>";try{b=JSON.parse(B6)}catch{}j(365,String(_-c.length+(e.nodes?e.nodes.length:0)),typeof C=="function"?`${C.name}${typeof C.getType=="function"?` (type ${String(C.getType())})`:""}`:String(C),String(b))}d3(C);const k=C.getType(),x=x8e(C);p.set(k,{exportDOM:f&&f.export?f.export.get(C):void 0,klass:C,replace:y,replaceWithKlass:v,sharedNodeState:c6e(c[_]),transforms:x})}}const m=new pd(s,o,p,{disableEvents:i,dom:{...wm,...n&&n.dom},namespace:l,theme:r},d||console.error,h||k8e,function(_,C){const y=new Map,v=new Set,k=x=>{Object.keys(x).forEach(b=>{let T=y.get(b);T===void 0&&(T=[],y.set(b,T)),T.push(x[b])})};return _.forEach(x=>{const b=x.klass.importDOM;if(b==null||v.has(b))return;v.add(b);const T=b.call(x.klass);T!==null&&k(T)}),C&&k(C),y}(p,f?f.import:void 0),g,n);return a!==void 0&&(m._pendingEditorState=a,m._dirtyType=2),function(_){_.registerCommand(t8,z6e,Nf),_.registerCommand(n8,V6e,Nf),_.registerCommand(r8,W6e,Nf),_.registerCommand(o8,K6e,Nf),_.registerCommand(a8,U6e,Nf)}(m),m}function w8e(n,e){const t=n.get(e);n.delete(e),t&&t()}function $f(n,e,t){return n.set(e,t),w8e.bind(null,n,e)}var W2;let pd=(W2=class{constructor(e,t,r,o,i,s,l,a,c){E(this,"_headless");E(this,"_parentEditor");E(this,"_rootElement");E(this,"_editorState");E(this,"_pendingEditorState");E(this,"_compositionKey");E(this,"_deferred");E(this,"_keyToDOMMap");E(this,"_updates");E(this,"_updating");E(this,"_cascadeCount");E(this,"_listeners");E(this,"_commands");E(this,"_nodes");E(this,"_decorators");E(this,"_pendingDecorators");E(this,"_config");E(this,"_dirtyType");E(this,"_cloneNotNeeded");E(this,"_dirtyLeaves");E(this,"_dirtyElements");E(this,"_normalizedNodes");E(this,"_updateTags");E(this,"_observer");E(this,"_key");E(this,"_onError");E(this,"_onWarn");E(this,"_htmlConversions");E(this,"_window");E(this,"_editable");E(this,"_blockCursorElement");E(this,"_slotsUsed");E(this,"_inputState");E(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new iC,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Z8(),this._onError=i,this._onWarn=s,this._htmlConversions=l,this._editable=a,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._inputState={collapsedSelectionFormat:{format:0,key:"root",offset:0,style:"",timeStamp:0},compositionEndData:"",compositionPhase:"idle",hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null}}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){return $f(this._listeners.update,e)}registerEditableListener(e){return $f(this._listeners.editable,e)}registerDecoratorListener(e){return $f(this._listeners.decorator,e)}registerTextContentListener(e){return $f(this._listeners.textcontent,e)}registerRootListener(e){const t=this._listeners.root;return w$e($f(t,e,e(this._rootElement,null)||void 0),()=>function(r,o,i){const s=r.get(o);s&&s(),r.set(o,o(...i)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,r){r===void 0&&j(35);const o=this._commands;o.has(e)||o.set(e,[new Tf,new Tf,new Tf,new Tf,new Tf]);const i=o.get(e);i===void 0&&j(36,String(e));const s=function(a){return 7&a}(r),l=i[s];return s!==r?l.addFront(t):l.addBack(t),()=>{l.delete(t),i.every(a=>a.size===0)&&o.delete(e)}}registerMutationListener(e,t,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let s=i.get(t);s===void 0&&(s=new Set,i.set(t,s)),s.add(o);const l=r&&r.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(t,o),()=>{s.delete(o),s.size===0&&i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&j(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,o=q7(r).get(t.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,t);o.push(s)}return function(s,l){const a=q7(s.getEditorState()),c=[];for(const d of l){const h=a.get(d);h&&c.push(h)}c.length!==0&&s.update(()=>{for(const d of c)for(const h of d.keys()){const f=_t(h);f&&f.markDirty()}},s._pendingEditorState===null?{tag:gv}:void 0)}(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,...t){return he(this,e,...t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=Zu(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=e,R8(this,t,e,o,{preserveUpdateQueue:!0}),t!==null&&(this._config.disableEvents||H6e(t),r!=null&&t.classList.remove(...r)),e!==null){const i=u3(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,K6(this),this._updateTags.add(gv),kl(this),this._config.disableEvents||function(l,a){const c=l.ownerDocument;_C.set(l,c);let d=_m.get(c);d===void 0&&(d={editors:new Set,hasShadowEditor:void 0},_m.set(c,d)),d.editors.add(a),d.hasShadowEditor=void 0,l.__lexicalEditor=a;const h=p8(l);h.push(R6e.register(c));for(let f=0;f<mC.length;f++){const[g,p]=mC[f],m=typeof p=="function"?_=>{f7(_)||(d7(_),(a.isEditable()||g==="click")&&p(_,a))}:_=>{if(f7(_))return;d7(_);const C=a.isEditable();switch(g){case"cut":return C&&he(a,u8,_);case"copy":return he(a,c8,_);case"paste":return C&&he(a,i8,_);case"dragstart":return C&&he(a,A6e,_);case"dragover":return C&&he(a,M6e,_);case"dragend":return C&&he(a,O6e,_);case"focus":return C&&he(a,L6e,_);case"blur":return C&&he(a,F6e,_);case"drop":return C&&he(a,$6e,_)}};h.push(B6e(l,g,m))}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add(gv),kl(this);rh("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&j(38);let r=e;r._readOnly&&(r=B8(e),r._selection=e._selection?e._selection.clone():null),W6(this);const o=this._pendingEditorState,i=t!==void 0?t.tag:null;o===null||o.isEmpty()||(i!=null&&this._updateTags.add(i),kl(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||e._slotsUsed,io(this,()=>{if(i&&this._updateTags.add(i),e._parsed)for(const[s,l]of r._nodeMap.entries())q(l)?this._dirtyElements.set(s,!0):this._dirtyLeaves.add(s)},{discrete:!this._updating||void 0})}parseEditorState(e,t){return function(r,o,i){const s=Yk(),l=Yt,a=br,c=Xt,d=o._dirtyElements,h=o._dirtyLeaves,f=o._cloneNotNeeded,g=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,Yt=s,br=!1,Xt=o,t3(null);try{const p=o._nodes;wC(r.root,p),i&&i(),s._readOnly=!0,s._parsed=!0}catch(p){p instanceof Error&&o._onError(p)}finally{o._dirtyElements=d,o._dirtyLeaves=h,o._cloneNotNeeded=f,o._dirtyType=g,Yt=l,br=a,Xt=c}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(...e){const[t,r]=e.length===1?["force-commit",e[0]]:e;return t==="force-commit"&&kl(this),(t==="pending"?this._pendingEditorState||this._editorState:this.getEditorState()).read(r,{editor:this})}update(e,t){(function(r,o,i){r._updating?r._updates.push([o,i]):Hh(r,o,i)})(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),io(this,()=>{const o=Ve(),i=Uo();o!==null?o.dirty||kr(o.clone()):i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),yd("focus"),M8e(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=Go(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,rh("editable",this,!0,e),this._slotsUsed&&this.update(()=>g8e()))}toJSON(){return{editorState:this._editorState.toJSON()}}},E(W2,"version"),W2);pd.version=B6;let EC=null;function t3(n){EC=n}const n3=Symbol("INTERNAL_SKIP_AFTER_CLONE_FROM");let T8e=1;function z8(n,e){const t=r3(n,e);return t===void 0&&j(30,e),t}function r3(n,e){return n._nodes.get(e)}const E8e=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function V8(n,e){const t=e!==void 0?e:(()=>{const i=n.getRootNode();return zg(i)||Zl(i)?qh(i):null})();if(!Bt(t)||t.hasAttribute("data-lexical-slot"))return!1;const r=H8(t),o=t.nodeName;return m8(r)&&(o==="INPUT"||o==="TEXTAREA"||t.contentEditable==="true"&&F0(t)==null)}function L0(n,e,t){const r=n.getRootElement();if(!r)return!1;try{if(!e||!r.contains(e)||!r.contains(t))return!1}catch{return!1}return ju(e)===n&&n.read("latest",()=>!V8(e))}function o3(n){return n instanceof pd}function ju(n){let e=n;for(;e!=null;){const t=F0(e);if(o3(t))return t;e=jd(e)}return null}function F0(n){return n?n.__lexicalEditor:null}function Tm(n){return v8(n)||n.isToken()}function Po(n){return Tm(n)||n.isSegmented()}function Ki(n){return Vg(n)&&n.nodeType===3}function zg(n){return Vg(n)&&n.nodeType===9}function N8e(n){let e=n;for(;e!=null;){if(Ki(e))return e;e=e.firstChild}return null}function md(n,e,t){const r=or[e];if(t!==null&&(n&r)===(t&r))return n;let o=n^r;return e==="subscript"?o&=~or.superscript:e==="superscript"?o&=~or.subscript:e==="lowercase"?(o&=~or.uppercase,o&=~or.capitalize):e==="uppercase"?(o&=~or.lowercase,o&=~or.capitalize):e==="capitalize"&&(o&=~or.lowercase,o&=~or.uppercase),o}function W8(n,e){const t=function(){const s=EC;return EC=null,s}();if((e=e||t&&t.__key)!=null)return void(n.__key=e);Vn(),O8();const r=Je(),o=ua(),i=""+T8e++;o._nodeMap.set(i,n),q(n)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType===0&&(r._dirtyType=1),n.__key=i}function yi(n){$n(n)!==null&&j(380,n.__key,String($n(n)));const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),o=n.getPreviousSibling(),i=n.getNextSibling(),s=i!==null?i.__key:null,l=o!==null?o.__key:null,a=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=l),a!==null&&(a.__next=s),c!==null&&(c.__prev=l),t.__prev=null,t.__next=null,t.__parent=null,r.__size--}}function Em(n){O8(),vm(n)&&j(323,n.__key,n.__type);const e=n.getLatest(),t=e.__parent!==null?e.__parent:kc(e)?e.__slotHost:null,r=ua(),o=Je(),i=r._nodeMap,s=o._dirtyElements;t!==null&&function(a,c,d){let h=a;for(;h!==null;){if(d.has(h))return;const f=c.get(h);if(f===void 0)break;d.set(h,!1),h=f.__parent!==null?f.__parent:kc(f)?f.__slotHost:null}}(t,i,s);const l=e.__key;o._dirtyType===0&&(o._dirtyType=1),q(n)?s.set(l,!0):o._dirtyLeaves.add(l)}function Jt(n){Vn();const e=Je(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=_t(t);r!==null&&r.getWritable()}if(n!==null){const r=_t(n);r!==null&&r.getWritable()}}}function vi(){return bc()?null:Je()._compositionKey}function _t(n,e){const t=(e||ua())._nodeMap.get(n);return t===void 0?null:t}function K8(n,e){const t=qd(n,Je());return t!==void 0?_t(t,e):null}function U8(n,e,t){n[`__lexicalKey_${e._key}`]=t}function qd(n,e){return n[`__lexicalKey_${e._key}`]}function H8(n,e){let t=n;for(;t!=null;){const r=K8(t,e);if(r!==null)return r;t=jd(t)}return null}function q8(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function z7(n){return n.read(()=>Uo().getTextContent())}function Uo(){return ua()._nodeMap.get("root")}function kr(n){Vn();const e=ua();n!==null&&(n.dirty=!0,n.setCachedNodes(null),Ce(n)&&Je()._slotsUsed&&N8(n)),e._selection=n}function V7(){Vn(),W6(Je())}function Iu(n){const e=function(t,r){let o=t;for(;o!=null;){const i=qd(o,r);if(i!==void 0)return i;o=jd(o)}return null}(n,Je());return e===null?null:_t(e)}function j8(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function i3(n){const e=[];for(let t=n;t!==null;t=t._parentEditor)e.push(t);return e}function Z8(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function G8(n){return Ki(n)?n.nodeValue:null}function s3(n,e,t){const r=Go(Nr(e));if(r===null)return;const o=Ho(r,e._rootElement),i=o.anchorNode;let{anchorOffset:s,focusOffset:l}=o;if(i!==null){let a=G8(i);const c=H8(i);if(a!==null&&de(c)){if((a===Bh||a===qk)&&t){const d=t.length;a=t,s=d,l=d}a!==null&&l3(c,a,s,l,n)}}}function l3(n,e,t,r,o){let i=n;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();if(i.isToken()&&s)return;let l=e;if((s||o)&&(e.endsWith(Bh)&&(l=e.slice(0,-Bh.length)),o)){const c=qk;let d;for(;(d=l.indexOf(c))!==-1;)l=l.slice(0,d)+l.slice(d+c.length),t!==null&&t>d&&(t=Math.max(d,t-c.length)),r!==null&&r>d&&(r=Math.max(d,r-c.length))}const a=i.getTextContent();if(o||l!==a){const c=Ve();if(l===""){if(Jt(null),A0||gd||M0)i.remove();else{const m=Je();kv(i,"",c),setTimeout(()=>{m.update(()=>{i.isAttached()&&i.getTextContent()===""&&i.remove()})},20)}return}const d=i.getParent(),h=Rg(),f=i.getTextContentSize(),g=vi(),p=i.getKey();if(i.isToken()&&!s||g!==null&&p===g&&!s||Ce(h)&&(d!==null&&!d.canInsertTextBefore()&&h.anchor.offset===0||h.anchor.key===n.__key&&h.anchor.offset===0&&!i.canInsertTextBefore()&&!s||h.focus.key===n.__key&&h.focus.offset===f&&!i.canInsertTextAfter()&&!s))return void i.markDirty();if(!Ce(c)||t===null||r===null)return void kv(i,l,c);if(c.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=qn(i.getTextContent());i.replace(m),i=m}kv(i,l,c)}}}function kv(n,e,t){if(n.setTextContent(e),Ce(t)){const r=n.getKey();let o=!1;for(const i of["anchor","focus"]){const s=t[i];s.type==="text"&&s.key===r&&(s.offset=Ti(n,s.offset,"clamp"),o=!0)}o&&(t._cachedNodes=null,t._cachedIsBackward=null)}}function Fp(n,e,t){const r=e[t]||!1;return r==="any"||r===n[t]}function $8e(n,e){return Fp(n,e,"altKey")&&Fp(n,e,"ctrlKey")&&Fp(n,e,"shiftKey")&&Fp(n,e,"metaKey")}function et(n,e,t){if(!$8e(n,t))return!1;if(n.key.toLowerCase()===e.toLowerCase())return!0;if(e.length>1||n.key.length===1&&n.key.charCodeAt(0)<=127)return!1;if(n.code.startsWith("Digit")&&/^\d$/.test(e))return n.code===`Digit${e}`;const r="Key"+e.toUpperCase();return n.code===r}const Ji={ctrlKey:!To,metaKey:To},W7={altKey:To,ctrlKey:!To};function K7(n){return n.key==="Backspace"}function Zu(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const o=n[e];if(typeof o=="string"){const i=h$(o);return t[e]=i,i}return o}function a3(n,e,t,r,o){if(t.size===0)return;const i=r.__type,s=r.__key,l=e.get(i);l===void 0&&j(33,i);const a=l.klass;let c=n.get(a);c===void 0&&(c=new Map,n.set(a,c));const d=c.get(s),h=d==="destroyed"&&o==="created";(d===void 0||h)&&c.set(s,h?"updated":o)}function U7(n,e,t){const r=n.getParent();let o=t,i=n;return r!==null&&(e&&t===0?(o=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function A8e(n,e){const t=n.offset;if(n.type==="element")return U7(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const o=e?r.getPreviousSibling():r.getNextSibling();return o===null?U7(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):o}}return null}function J8(n){const e=Nr(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function he(n,e,...t){return P8(n,e,t[0],n)}function _d(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&j(75,e),t}function jd(n){const e=n.assignedSlot||n.parentElement;if(e!==null)return e;const t=n.parentNode;return Zl(t)?t.host:null}function c3(n){return zg(n)?n:Bt(n)?n.ownerDocument:null}function yd(n){Vn(),Je()._updateTags.add(n)}function M8e(n){Vn(),Je()._deferred.push(n)}function Nm(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function u3(n){const e=c3(n);return e?e.defaultView:null}function Nr(n){const e=n._window;return e===null&&j(78),e}function O8e(n){return q(n)&&n.isInline()||Qe(n)&&n.isInline()}function Y8(n){let e=n.getLatest();for(;e!==null;){if($n(e)!==null&&q(e))return e;const t=e.getParentOrThrow();if(un(t))return t;e=t}return e}function X8(n){return q(n)&&n.isShadowRoot()}function un(n){return Fn(n)||X8(n)}function D8e(n,e=!1){const t=n.constructor.clone(n,n3);return W8(t,null),t.afterCloneFrom(n),e||t.resetOnCopyNodeFrom(n),t}function P0(n){const e=Je(),t=n.getType(),r=r3(e,t);r===void 0&&j(200,n.constructor.name,t);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(n),l=s.constructor;return i!==null?s instanceof i||j(201,i.name,i.getType(),l.name,l.getType(),n.constructor.name,t):s instanceof n.constructor&&l!==n.constructor||j(202,l.name,l.getType(),n.constructor.name,t),s.__key===n.__key&&j(203,n.constructor.name,t,l.name,l.getType()),s}return n}function xv(n,e){!Fn(n.getParent())||q(e)||Qe(e)||j(99)}function L8e(n){const e=_t(n);return e===null&&j(63,n),e}function Sv(n){if(!n||n.isInline())return!1;if(Qe(n))return!0;if(q(n)){if(n.isShadowRoot()){const e=n.getParent();return!(q(e)&&e.isShadowRoot())}return!n.canBeEmpty()}return!1}function $m(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function Go(n){return Zo?(n||window).getSelection():null}function F8e(n){const e=u3(n);return e?e.getSelection():null}function Zl(n){return U8e(n)&&"host"in n}const P8e=[];function I8e(n){const e=n.getRootNode();if(e===n||!Zl(e))return P8e;const t=[e];let r=e.host;for(;;){const o=r.getRootNode();if(o===r||!Zl(o))break;t.push(o),r=o.host}return t}function*B8e(n){const e=[n];let t;for(;t=e.pop();){yield*t.querySelectorAll('[data-lexical-editor="true"]');const r=(zg(t)?t:t.ownerDocument).createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let o;for(;o=r.nextNode();)o.shadowRoot&&e.push(o.shadowRoot)}}function R8e(n){return n!==null?n.ownerDocument:document}function qr(){const n=L8();return R8e(n!==null?n._rootElement:null)}function I0(n,e){if(e===null||typeof n.getComposedRanges!="function")return null;const t=I8e(e);if(t.length===0)return null;const r=n.getComposedRanges;try{const o=r.call(n,{shadowRoots:t})[0];if(o!==void 0)return o}catch{}try{const o=r.apply(n,t)[0];if(o!==void 0)return o}catch{}return null}function z8e(n,e){const t=I0(n,e);if(t!==null){const r=V8e(t);if(r!==null)return r}return n.rangeCount>0?n.getRangeAt(0):null}function Ho(n,e){const t=I0(n,e);return t===null?n:W8e(t,K8e(n))}function V8e(n){const e=n.startContainer.ownerDocument;if(e===null)return null;const t=e.createRange();try{return t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),t}catch{return null}}function W8e(n,e){const{startContainer:t,startOffset:r,endContainer:o,endOffset:i}=n;return e==="backward"?{anchorNode:o,anchorOffset:i,direction:e,focusNode:t,focusOffset:r}:{anchorNode:t,anchorOffset:r,direction:e,focusNode:o,focusOffset:i}}function K8e(n){return n.direction}function NC(n){const e=n.getRootNode();return zg(e)||Zl(e)?e.activeElement:null}function qh(n){let e=n.activeElement;for(;e!==null&&e.shadowRoot!==null;){const t=e.shadowRoot.activeElement;if(t===null)break;e=t}return e}function Q8(n){const e=n.target;if(e!==null&&Bt(e)&&e.shadowRoot!==null&&typeof n.composedPath=="function"){const t=n.composedPath();if(t.length>0)return t[0]}return e}function Bt(n){return Vg(n)&&n.nodeType===1}function Vg(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function U8e(n){return Vg(n)&&n.nodeType===11}const H8e=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/i;function q8e(n){return!(!Bt(n)||!n.style.display.startsWith("inline"))||H8e.test(n.nodeName)}const j8e=/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/i;function e$(n){return(!Bt(n)||!n.style.display.startsWith("inline"))&&j8e.test(n.nodeName)}function Ir(n){if(Qe(n)&&!n.isInline())return!0;if(!q(n)||un(n))return!1;const e=n.getFirstChild(),t=e===null||jl(e)||de(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function da(){return Je()}function t$(n=da()){return n._config.dom||wm}function co(n,e,t=da()){const r=t$(t).$getDOMSlot(n,e,t);return q(n)&&(Z8e(r)||j(344,n.getKey(),n.getType())),r}function Z8e(n){return n instanceof P6}function Ml(n,e,t=da()){return N8e(co(n,e,t).element)}const H7=new WeakMap,G8e=new Map;function q7(n){if(!n._readOnly&&n.isEmpty())return G8e;n._readOnly||j(192);let e=H7.get(n);return e||(e=function(t){const r=new Map;for(const[o,i]of t._nodeMap){const s=i.__type;let l=r.get(s);l||(l=new Map,r.set(s,l)),l.set(o,i)}return r}(n),H7.set(n,e)),e}function J8e(n){const e=n.constructor.clone(n,n3);return e.afterCloneFrom(n),e}function Y8e(n,e){const t=n.getAttribute("data-lexical-indent");if(t!==null){const i=parseInt(t,10);if(Number.isFinite(i)&&i>=0)return void e.setIndent(i)}const r=parseInt(n.style.paddingInlineStart,10)||0,o=Math.round(r/40);e.setIndent(o)}function X8e(n,e){const t=e.getAttribute("dir");return t==="ltr"||t==="rtl"?n.setDirection(t):n}function Q8e(n,e){const t=e.style.textAlign;return t&&t in dm?n.setFormat(t):n}function e$e(n,e){n.__lexicalUnmanaged=!0,e&&e.captureSelection!==void 0&&(n.__lexicalCapturedSelection=e.captureSelection)}function n$(n){return n.__lexicalUnmanaged===!0}function t$e(n,e=da()){const t=e.isEditable();n.contentEditable=t?"true":"false",t?n.__lexicalEditor=e:delete n.__lexicalEditor}function Am(n,e){let t=n;for(;t!=null;){if(t.__lexicalCapturedSelection===!0)return!0;if(Bt(t)&&t.hasAttribute("data-lexical-slot")||qd(t,e)!==void 0)return!1;t=jd(t)}return!1}function Af(n,e){return function(t,r){return Object.prototype.hasOwnProperty.call(t,r)}(n,e)&&n[e]!==vr[e]}const j7=new WeakMap,Z7=Symbol("lexical.synthesizedGetType");function d3(n){const e=j7.get(n);if(e)return e;const t=n.prototype!=null&&VS in n.prototype?n.prototype[VS]():void 0,r=function(c){if(!(c===vr||c.prototype instanceof vr)){let d="<unknown>",h="<unknown>";try{d=c.getType()}catch{}try{pd.version&&(h=JSON.parse(pd.version))}catch{}j(290,c.name,d,h)}return c===I8||c===ql||c===vr}(n),o=!r&&Af(n,"getType")?n.getType:void 0,i=o&&!(Z7 in o)?o.call(n):void 0;let s,l=i;if(t)if(i)s=t[i];else{for(const[c,d]of Object.entries(t))l=c,s=d;if(!s)for(const c of Object.getOwnPropertySymbols(t)){const d=t[c];if(d){s=d;break}}}if(!r&&l){if(!Af(n,"getType")){const c=n,d=function(){return this!==c?vr.getType.call(this):l};d[Z7]=!0,n.getType=d}if(Af(n,"clone")||(n.clone=(c,d)=>{t3(c);const h=new n;return d!==n3&&h.afterCloneFrom(c),h}),Af(n,"importJSON")||(n.importJSON=s&&s.$importJSON||(c=>new n().updateFromJSON(c))),!Af(n,"importDOM")&&s){const{importDOM:c}=s;c&&(n.importDOM=()=>c)}}const a={klass:n,ownNodeConfig:s,ownNodeType:l};return j7.set(n,a),a}function*f3(n){for(let e=n;e&&(e===vr||m8(e.prototype));){const t=d3(e);yield t,e=t.ownNodeConfig&&t.ownNodeConfig.extends||r$(e)}}const Ba=(n,e)=>{let t=n;for(;t!=null&&!Fn(t);){if(e(t))return t;t=t.getParent()}return null};function Mm(n,e){const t=[];let r=n.__first;for(;r!==null;){const o=e===null?_t(r):e.get(r);o==null&&j(174),t.push(r),r=o.__next}return t}function r$(n){const e=Object.getPrototypeOf(n);if(typeof e=="function"&&e!==Function.prototype)return e;const t=n.prototype&&Object.getPrototypeOf(n.prototype);return t?t.constructor:null}const o$=new Map;function Es(n){return q(n)||Qe(n)}function kc(n){return q(n)||Qe(n)}function $n(n){const e=n.getLatest();return kc(e)?e.__slotHost:null}function Lo(n){const e=$n(n);if(e===null)return null;const t=_t(e);return q(t)||Qe(t)||j(370),t}function n$e(n){const e=Lo(n);if(e===null)return null;const t=n.getLatest().__key;for(const[r,o]of B0(e))if(o===t)return r;return null}function r$e(n){let e=n.getLatest();for(;e!==null;){if($n(e)!==null)return e;e=e.getParent()}return null}function B0(n){const e=n.getLatest();return Es(e)&&e.__slots!==null?e.__slots:o$}function Io(n){return Array.from(B0(n).keys())}function vd(n,e){const t=B0(n).get(e);return t===void 0?null:_t(t)}const o$e=["__proto__","constructor","prototype"],G7=Symbol("slotMapOwner");function $C(n){let e=n.__slots;return e!==null&&e[G7]===n||(e=new Map(e),e[G7]=n,n.__slots=e),e}const J7=new WeakMap,i$e=[];function s$e(n){for(const{ownNodeConfig:e}of f3(n)){const t=e&&e.slots;if(t)return t}return i$e}function i$(n){let e="";for(const t of Io(n)){const r=vd(n,t);r!==null&&(e+=r.getTextContent())}return e}function Y7(n,e,t){const r=t.get(n),o=t.get(e);return r!==void 0?o!==void 0?r-o:-1:o!==void 0?1:n<e?-1:n>e?1:0}function l$e(n){const e=n.__slots;if(e===null||e.size<2)return;const t=function(s){let l=J7.get(s);if(l===void 0){const a=s$e(s),c=new Map;for(const d of a)o$e.includes(d)&&j(371,s.name,d),c.has(d)&&j(372,s.name,d),c.set(d,c.size);l=c,J7.set(s,l)}return l}(n.constructor);let r=null,o=!0;for(const s of e.keys()){if(r!==null&&Y7(r,s,t)>0){o=!1;break}r=s}if(o)return;const i=Array.from(e).sort(([s],[l])=>Y7(s,l,t));e.clear();for(const[s,l]of i)e.set(s,l)}function s$(n,e,t){e!=="__proto__"&&e!=="constructor"&&e!=="prototype"||j(373,e);const r=n.getLatest();if(r.__slots!==null&&r.__slots.get(e)===t.getLatest().__key)return r;(!q(t)&&!Qe(t)||t.isInline())&&j(374,t.__key);const o=n.getWritable(),i=$C(o),s=i.get(e);s!==void 0&&l$(s);const l=t.getWritable(),a=Lo(l);if(a!==null){const c=n$e(l);c!==null&&$C(a.getWritable()).delete(c),l.__slotHost=null}return yi(l),l.__slotHost=o.__key,i.set(e,l.__key),l$e(o),function(){const c=da();c._slotsUsed=!0,c._pendingEditorState&&(c._pendingEditorState._slotsUsed=!0)}(),o}function a$e(n,e){const t=n.getWritable();if(t.__slots===null)return t;const r=t.__slots.get(e);return r!==void 0&&(l$(r),$C(t).delete(e)),t}function l$(n){const e=_t(n);if(e===null)return;const t=e.getWritable();kc(t)||j(377,n),t.__slotHost=null,t.remove()}const c$e={next:"previous",previous:"next"};class h3{constructor(e){E(this,"origin");this.origin=e}[Symbol.iterator](){return c$({hasNext:wc,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Nt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Nt(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){const o=r===this.direction?t:Array.from(t).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let a=i.getAdjacentCaret();a!==null&&l.size<e;a=a.getAdjacentCaret()){const c=a.origin.getWritable();l.set(c.getKey(),c)}for(const a of o){if(l.size>0){const c=i.getNodeAtCaret();if(c){if(l.delete(c.getKey()),l.delete(a.getKey()),!(c.is(a)||i.origin.is(a))){const d=a.getParent();d&&d.is(s)&&a.remove(),c.replace(a)}}else c===null&&j(263,Array.from(l).join(" "))}else i.insert(a);i=Nt(a,this.direction)}for(const a of l.values())a.remove();return this}}class jh extends h3{constructor(){super(...arguments);E(this,"type","child")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Gl(t,this.direction)}getParentCaret(t="root"){return Nt(g3(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=hu(this.direction);return Nt(this.getNodeAtCaret(),t)||Gl(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof jh&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const u$e={root:Fn,shadowRoot:un};function hu(n){return c$e[n]}function g3(n,e="root"){return n===null||u$e[e](n)?null:$n(n)===null?n:null}class xc extends h3{constructor(){super(...arguments);E(this,"type","sibling")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Nt(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return q(this.origin)?Gl(this.origin,this.direction):null}getParentCaret(t="root"){return Nt(g3(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=hu(this.direction);return Nt(this.getNodeAtCaret(),t)||Gl(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof xc&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof xc||t instanceof Sc)&&this.direction===t.direction&&this.origin.is(t.origin)}}class Sc extends h3{constructor(t,r){super(t);E(this,"type","text");E(this,"offset");this.offset=r}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Tc(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Nt(g3(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Tc(this.origin,hu(this.direction),this.offset)}isSamePointCaret(t){return t instanceof Sc&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof xc||t instanceof Sc)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Nt(this.origin,this.direction)}}function wi(n){return n instanceof Sc}function wc(n){return n instanceof xc}function Bo(n){return n instanceof jh}const d$e={next:class extends Sc{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Sc{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},f$e={next:class extends xc{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends xc{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},h$e={next:class extends jh{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends jh{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Nt(n,e){return n?new f$e[e](n):null}function Tc(n,e,t){return n?new d$e[e](n,Ti(n,t)):null}function Ti(n,e,t="error"){const r=n.getTextContentSize();let o=e==="next"?r:e==="previous"?0:e;return(o<0||o>r)&&(t!=="clamp"&&K9e(284,String(e),String(r),n.getKey()),o=o<0?0:r),o}function X7(n,e){return new p$e(n,e)}function Gl(n,e){return q(n)?new h$e[e](n):null}function g$e(n){return n&&n.getChildCaret()||n}function p3(n){return n&&g$e(n.getAdjacentCaret())}class m3{constructor(e,t,r){E(this,"type","node-caret-range");E(this,"direction");E(this,"anchor");E(this,"focus");this.anchor=e,this.focus=t,this.direction=r}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new m3(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=o=>{const i=this[o].getLatest();return wi(i)?function(s,l){const{direction:a,origin:c}=s,d=Ti(c,l==="focus"?hu(a):a);return X7(s,d-s.offset)}(i,o):null},t=e("anchor"),r=e("focus");if(t&&r){const{caret:o}=t,{caret:i}=r;if(o.isSameNodeCaret(i))return[X7(o,i.offset-o.offset),null]}return[t,r]}iterNodeCarets(e="root"){const t=wi(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=wi(r),i=s=>s.isSameNodeCaret(r)?null:p3(s)||s.getParentCaret(e);return c$({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:t.isSameNodeCaret(r)?null:i(t),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class p$e{constructor(e,t){E(this,"type","slice");E(this,"caret");E(this,"distance");this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[r,o]=this.getSliceIndices(),i=e.getTextContent();return Tc(e.setTextContent(i.slice(0,r)+i.slice(o)),t,r)}}function a$(n){return Ec(n,Nt(Uo(),n.direction))}function m$e(n){return Ec(n,n)}function Ec(n,e){return n.direction!==e.direction&&j(265),new m3(n,e,n.direction)}function c$(n){const{initial:e,hasNext:t,step:r,map:o}=n;let i=e;return{[Symbol.iterator](){return this},next(){if(!t(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function u$(n,e){const t=AC(n.origin,e.origin);switch(t===null&&j(275,n.origin.getKey(),e.origin.getKey()),t.type){case"same":{const r=n.type==="text",o=e.type==="text";return r&&o?function(i,s){return Math.sign(i-s)}(n.offset,e.offset):n.type===e.type?0:r?-1:o?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return d$(t)}}function d$(n){const{a:e,b:t}=n,r=e.__key,o=t.__key;let i=e,s=t;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function Pp(n,e){return e.is(n)}function Q7(n){return q(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function AC(n,e){if(n.is(e))return{commonAncestor:n,type:"same"};const t=new Map;for(let[r,o]=Q7(n);r;o=r,r=r.getParent())t.set(r,o);for(let[r,o]=Q7(e);r;o=r,r=r.getParent()){const i=t.get(r);if(i!==void 0)return i===null?(Pp(n,r)||j(276),{commonAncestor:r,type:"ancestor"}):o===null?(Pp(e,r)||j(277),{commonAncestor:r,type:"descendant"}):((q(i)||Pp(n,i))&&(q(o)||Pp(e,o))&&r.is(i.getParent())&&r.is(o.getParent())||j(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Nc(n,e){const{type:t,key:r,offset:o}=n,i=L8e(n.key);return t==="text"?(de(i)||j(266,i.getType(),r),Tc(i,e,o)):(q(i)||j(267,i.getType(),r),C$e(i,n.offset,e))}function Om(n,e){const{origin:t,direction:r}=e,o=r==="next";wi(e)?n.set(t.getKey(),e.offset,"text"):wc(e)?de(t)?n.set(t.getKey(),Ti(t,r),"text"):n.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent()+(o?1:0),"element"):(Bo(e)&&q(t)||j(268),n.set(t.getKey(),o?0:t.getChildrenSize(),"element"))}function _$e(n){const e=Ve(),t=Ce(e)?e:u8e();return v1(t,n),kr(t),t}function v1(n,e){Om(n.anchor,e.anchor),Om(n.focus,e.focus)}function ew(n){const{anchor:e,focus:t}=n,r=Nc(e,"next"),o=Nc(t,"next"),i=u$(r,o)<=0?"next":"previous";return Ec(zs(r,i),zs(o,i))}function Zd(n){const{direction:e,origin:t}=n,r=Nt(t,hu(e)).getNodeAtCaret();return r?Nt(r,e):Gl(t.getParentOrThrow(),e)}function tw(n,e="root"){const t=[n];for(let r=Bo(n)?n.getParentCaret(e):n.getSiblingCaret();r!==null;r=r.getParentCaret(e))t.push(Zd(r));return t}function wv(n){return!!n&&n.origin.isAttached()}function y$e(n,e="removeEmptySlices"){if(n.isCollapsed())return n;const t="root",r="next";let o=e;const i=f$(n,r),s=tw(i.anchor,t),l=tw(i.focus.getFlipped(),t),a=new Set,c=[];for(const m of i.iterNodeCarets(t))if(Bo(m))a.add(m.origin.getKey());else if(wc(m)){const{origin:_}=m;q(_)&&!a.has(_.getKey())||c.push(_)}const d=new Set;for(const m of c){const _=m.getParent();_===null||a.has(_.getKey())||d.add(_),yi(m)}for(const m of d)!m.canBeEmpty()&&!un(m)&&m.isEmpty()&&m.isAttached()&&m.remove();for(const m of i.getTextSlices()){if(!m)continue;const{origin:_}=m.caret,C=_.getTextContentSize(),y=Zd(Nt(_,r)),v=_.getMode();if(Math.abs(m.distance)===C&&o==="removeEmptySlices"||v==="token"&&m.distance!==0)y.remove();else if(m.distance!==0){o="removeEmptySlices";let k=m.removeTextSlice();const x=m.caret.origin;if(v==="segmented"){const b=k.origin,T=qn(b.getTextContent()).setStyle(b.getStyle()).setFormat(b.getFormat());y.replaceOrInsert(T),k=Tc(T,r,k.offset)}x.is(s[0].origin)&&(s[0]=k),x.is(l[0].origin)&&(l[0]=k.getFlipped())}}let h,f;for(const m of s)if(wv(m)){h=Ns(m);break}for(const m of l)if(wv(m)){f=Ns(m);break}const g=function(m,_,C){if(!m||!_)return null;const y=m.getParentAtCaret(),v=_.getParentAtCaret();if(!y||!v)return null;const k=y.getParents().reverse();k.push(y);const x=v.getParents().reverse();x.push(v);const b=Math.min(k.length,x.length);let T;for(T=0;T<b&&k[T]===x[T];T++);const w=($,O)=>{let M;for(let A=T;A<$.length;A++){const F=$[A];if(un(F))return;!M&&O(F)&&(M=F)}return M},S=w(k,Ir),N=S&&w(x,$=>C.has($.getKey())&&Ir($));return N&&Io(N).length>0?null:S&&N?[S,N]:null}(h,f,a);if(g){const[m,_]=g;Gl(m,"previous").splice(0,_.getChildren());let C=_.getParent();for(_.remove(!0);C&&C.isEmpty();){const y=C;C=C.getParent(),y.remove(!0)}}else if(f){const m=function(y){if(Bo(y)){const v=y.origin;if(Ir(v))return v}else{const v=y.getParentAtCaret();if(v&&Ir(v))return v}return null}(f),_=m&&m.getParent(),C=m&&m.getParents().findLast(X8);if(m&&_&&!Fn(_)&&m.isEmpty()&&a.has(m.getKey())&&Io(m).length===0&&(!C||a.has(C.getKey()))){m.remove(!0);let y=_;for(;y&&!Fn(y)&&y.isEmpty();){const v=y.getParent();if(v&&Fn(v)&&v.getChildrenSize()<=1)break;const k=y;y=v,k.remove(!0)}}}const p=[h,f,...s,...l].find(wv);if(p)return m$e(zs(Ns(p),n.direction));j(269,JSON.stringify(s.map(m=>m.origin.__key)))}function Ns(n){const e=function(o){let i=o;for(;Bo(i);){const s=p3(i);if(!Bo(s))break;i=s}return i}(n.getLatest()),{direction:t}=e;if(de(e.origin))return wi(e)?e:Tc(e.origin,t,t);const r=e.getAdjacentCaret();return wc(r)&&de(r.origin)?Tc(r.origin,t,hu(t)):e}function v$e(n){return wi(n)&&n.offset!==Ti(n.origin,n.direction)}function zs(n,e){return n.direction===e?n:n.getFlipped()}function f$(n,e){return n.direction===e?n:Ec(zs(n.focus,e),zs(n.anchor,e))}function C$e(n,e,t){let r=Gl(n,"next");for(let o=0;o<e;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return zs(r,t)}function b$e(n){const{origin:e,offset:t,direction:r}=n;if(t===Ti(e,r))return n.getSiblingCaret();if(t===Ti(e,hu(r)))return Zd(n.getSiblingCaret());const[o]=e.splitText(t);return de(o)||j(281),zs(Nt(o,"next"),r)}function k$e(n,e){return!0}function x$e(n,{$copyElementNode:e=D8e,$splitTextPointCaretNext:t=b$e,rootMode:r="shadowRoot",$shouldSplit:o=k$e,removeEmptyDestination:i=!1}={}){if(wi(n))return t(n);const s=n.getParentCaret(r);if(s){const{origin:l}=s;if(Bo(n)){const c=Zd(s);if(i&&l.isEmpty())return l.remove(),c;if(!l.canBeEmpty()||!o(l,"first"))return c}const a=function(c){const d=[];for(let h=c.getAdjacentCaret();h;h=h.getAdjacentCaret())d.push(h.origin);return d}(n);(a.length>0||!i&&l.canBeEmpty()&&o(l,"last"))&&s.insert(e(l).splice(0,0,a))}return s}function S$e(n,e,t){let r=zs(e,"next");wi(r)&&(r.offset===0?r=Nt(r.origin,"previous").getFlipped():r.offset===r.origin.getTextContentSize()&&(r=Nt(r.origin,"next"))),r.origin.is(n)&&(wc(r)||j(342,n.getKey(),n.getType()),r=Zd(r)),(n.is(r.getNodeAtCaret())||n.is(r.getFlipped().getNodeAtCaret()))&&n.remove(!0);for(let o=r;o;o=x$e(o,t))r=o;return wi(r)&&j(283),r.insert(n.isInline()?kn().append(n):n),zs(Nt(n.getLatest(),"next"),e.direction)}function h$(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}function w$e(...n){return()=>{for(let e=n.length-1;e>=0;e--)n[e]();n.length=0}}const g$=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,T$e=g$&&"documentMode"in document?document.documentMode:null;!(!g$||!("InputEvent"in window)||T$e)&&"getTargetRanges"in new window.InputEvent("input");(()=>{try{const n=new RegExp("\\p{Emoji}","u"),e=n.test.bind(n);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function p$(n){return Gd(n)&&n.tagName==="A"}function Gd(n){return E$e(n)&&n.nodeType===1}function E$e(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}const nw=new Map;function N$e(n){const e={};if(!n)return e;const t=n.split(";");for(const r of t)if(r!==""){const[o,i]=r.split(/:([^]+)/);o&&i&&(e[o.trim()]=i.trim())}return e}function rw(n){let e=nw.get(n);return e===void 0&&(e=N$e(n),nw.set(n,e)),e}const m$=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,$$e=m$&&"documentMode"in document?document.documentMode:null;!(!m$||!("InputEvent"in window)||$$e)&&"getTargetRanges"in new window.InputEvent("input");function _$(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}function Vs(n,...e){const t=_$(...e);t.length>0&&n.classList.add(...t)}function _3(n,...e){const t=_$(...e);t.length>0&&n.classList.remove(...t)}function A$e(n){return n?n.getAdjacentCaret():null}function re(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);throw t.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function y$(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);t.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Jo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,M$e=Jo&&"documentMode"in document?document.documentMode:null,Eo=Jo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),$c=Jo&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Dm=!(!Jo||!("InputEvent"in window)||M$e)&&"getTargetRanges"in new window.InputEvent("input"),Zh=Jo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Cd=Jo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,O$e=Jo&&/Android/.test(navigator.userAgent),v$=Jo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ow=Jo&&O$e&&v$,Gh=Jo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Eo&&!v$;function C$(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const D$e=0,L$e=1,F$e=2,b$=128,P$e=1,I$e=2,B$e=3,R$e=4,z$e=5,V$e=6,R0=Zh||Cd||Gh?" ":"​",Jl=`
30
+
31
+ `,W$e=$c?" ":R0,ir={bold:1,capitalize:1024,code:16,highlight:b$,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},K$e={directionless:1,unmergeable:2},iw={center:2,end:6,justify:4,left:1,right:3,start:5},U$e={[I$e]:"center",[V$e]:"end",[R$e]:"justify",[P$e]:"left",[B$e]:"right",[z$e]:"start"},H$e={normal:0,segmented:2,token:1},q$e={[D$e]:"normal",[F$e]:"segmented",[L$e]:"token"},sw="$config";function k$(n,e,t,r,o,i){let s=n.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&(X(s)&&k$(s,l,t,r,o,i),t.has(l)||i.delete(l),o.push(l)),s=s.getNextSibling()}}let MC=!1,y3=0;function j$e(n){y3=n.timeStamp}function Tv(n,e,t){const r=n.nodeName==="BR",o=e.__lexicalLineBreak;return o&&(n===o||r&&n.previousSibling===o)||r&&U0(n,t)!==void 0}function Z$e(n,e,t){const r=Ws(fo(t));let o=null,i=null;r!==null&&r.anchorNode===n&&(o=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&$3(e,s,o,i,!1)}function G$e(n,e,t){if($e(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return Js(e)&&t.isAttached()}function J$e(n,e,t,r){for(let o=n;o&&!sMe(o);o=Hg(o)){const i=U0(o,e);if(i!==void 0){const s=en(i,t);if(s)return Ct(s)||!Jr(o)?void 0:[o,s]}else if(o===r)return[r,AA(t)]}}function x$(n,e,t){MC=!0;const r=performance.now()-y3>100;try{zr(n,()=>{const o=lt()||function(f){return f.getEditorState().read(()=>{const g=lt();return g!==null?g.clone():null})}(n),i=new Map,s=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let c=!1,d="";for(let f=0;f<e.length;f++){const g=e[f],p=g.type,m=g.target,_=J$e(m,n,l,s);if(!_)continue;const[C,y]=_;if(p==="characterData")r&&Se(y)&&Js(m)&&G$e(o,m,y)&&Z$e(m,y,n);else if(p==="childList"){c=!0;const v=g.addedNodes;for(let b=0;b<v.length;b++){const T=v[b],w=NA(T),S=T.parentNode;if(S!=null&&T!==a&&w===null&&!Tv(T,S,n)){if($c){const N=(Jr(T)?T.innerText:null)||T.nodeValue;N&&(d+=N)}S.removeChild(T)}}const k=g.removedNodes,x=k.length;if(x>0){let b=0;for(let T=0;T<x;T++){const w=k[T];(Tv(w,m,n)||a===w)&&(m.appendChild(w),b++)}x!==b&&i.set(C,y)}}}if(i.size>0)for(const[f,g]of i)g.reconcileObservedMutation(f,n);const h=t.takeRecords();if(h.length>0){for(let f=0;f<h.length;f++){const g=h[f],p=g.addedNodes,m=g.target;for(let _=0;_<p.length;_++){const C=p[_],y=C.parentNode;y==null||C.nodeName!=="BR"||Tv(C,m,n)||y.removeChild(C)}}t.takeRecords()}o!==null&&(c&&uo(o),$c&&DA(n)&&o.insertRawText(d))})}finally{MC=!1}}function S$(n){const e=n._observer;e!==null&&x$(n,e.takeRecords(),e)}function w$(n){(function(e){y3===0&&fo(e).addEventListener("textInput",j$e,!0)})(n),n._observer=new MutationObserver((e,t)=>{x$(n,e,t)})}let Y$e=class T${constructor(e,t,r=void 0,o=new Map,i=void 0){E(this,"node");E(this,"knownState");E(this,"unknownState");E(this,"sharedNodeState");E(this,"size");this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,l=i!==void 0?i:function(a,c,d){let h=d.size;if(c)for(const f in c){const g=a.get(f);g&&d.has(g)||h++}return h}(s,r,o);this.size=l}getValue(e){const t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const o=this.unknownState[e.key];o!==void 0&&(r=e.parse(o)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return lw(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:r}=this,o=new Map(this.knownState);return new T$(e,t,function(i,s,l){let a;if(l)for(const[c,d]of Object.entries(l)){const h=i.get(c);h?s.has(h)||s.set(h,h.parse(d)):(a=a||{},a[c]=d)}return a}(t.sharedConfigMap,o,r),o,this.size)}updateFromKnown(e,t){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:o,unknownState:i}=this;o.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=lw(i)),this.size++),o.set(e,t)}updateFromUnknown(e,t){const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const r of t.keys())t.set(r,r.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[r,o]of Object.entries(e))this.updateFromUnknown(r,o)}};function X$e(n){const e=n.getWritable(),t=e.__state?e.__state.getWritable(e):new Y$e(e,E$(e));return e.__state=t,t}function E$(n){return n.__state?n.__state.sharedNodeState:SA(nMe(),n.getType()).sharedNodeState}function lw(n){if(n)for(const e in n)return n}function aw(n,e,t){for(const[r,o]of e.knownState){if(n.has(r.key))continue;n.add(r.key);const i=t?t.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function cw(n,e,t){const{unknownState:r}=e,o=t?t.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!n.has(i)&&(n.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function uw(n,e){const t=n.__state;return t&&t.node===n?t.getWritable(e):t}function dw(n,e){const t=n.__mode,r=n.__format,o=n.__style,i=e.__mode,s=e.__format,l=e.__style,a=n.__state,c=e.__state;return(t===null||t===i)&&(r===null||r===s)&&(o===null||o===l)&&(n.__state===null||a===c||function(d,h){if(d===h)return!0;if(d&&h&&d.size!==h.size)return!1;const f=new Set;return!(d&&aw(f,d,h)||h&&aw(f,h,d)||d&&cw(f,d,h)||h&&cw(f,h,d))}(a,c))}function fw(n,e){const t=n.mergeWithSibling(e),r=$t()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function hw(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&Se(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(dw(e,r)){r=fw(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&Se(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(dw(r,t)){r=fw(r,t);break}break}t.remove()}}else r.remove()}function Q$e(n){return gw(n.anchor),gw(n.focus),n}function gw(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,o;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),o=!0):(r=e.getChildAtIndex(t),o=!1),Se(r)){n.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!X(r))break;n.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Ac,jn,Jh,z0,OC,DC,Mc,Ro,LC,Yh,Vt="",oi=null,ii="",hs="",Eu=!1,Lm=!1;function Fm(n,e){const t=Mc.get(n);if(e!==null){const r=BC(n);r.parentNode===e&&e.removeChild(r)}if(Ro.has(n)||jn._keyToDOMMap.delete(n),X(t)){const r=Im(t,Mc);FC(r,0,r.length-1,null)}t!==void 0&&A3(Yh,Jh,z0,t,"destroyed")}function FC(n,e,t,r){let o=e;for(;o<=t;++o){const i=n[o];i!==void 0&&Fm(i,r)}}function Aa(n,e){n.setProperty("text-align",e)}const eAe="40px";function N$(n,e){const t=Ac.theme.indent;if(typeof t=="string"){const o=n.classList.contains(t);e>0&&!o?n.classList.add(t):e<1&&o&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||eAe;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function $$(n,e){const t=n.style;e===0?Aa(t,""):e===1?Aa(t,"left"):e===2?Aa(t,"center"):e===3?Aa(t,"right"):e===4?Aa(t,"justify"):e===5?Aa(t,"start"):e===6&&Aa(t,"end")}function PC(n,e){const t=function(r){const o=r.__dir;if(o!==null)return o;if(An(r))return null;const i=r.getParentOrThrow();return An(i)&&i.__dir===null?"auto":null}(e);t!==null?n.dir=t:n.removeAttribute("dir")}function Pm(n,e){const t=Ro.get(n);t===void 0&&re(60);const r=t.createDOM(Ac,jn);if(function(o,i,s){const l=s._keyToDOMMap;(function(a,c,d){const h=`__lexicalKey_${c._key}`;a[h]=d})(i,s,o),l.set(o,i)}(n,r,jn),Se(t)?r.setAttribute("data-lexical-text","true"):Ct(t)&&r.setAttribute("data-lexical-decorator","true"),X(t)){const o=t.__indent,i=t.__size;if(PC(r,t),o!==0&&N$(r,o),i!==0){const l=i-1;IC(Im(t,Ro),t,0,l,t.getDOMSlot(r))}const s=t.__format;s!==0&&$$(r,s),t.isInline()||A$(null,t,r),H0(t)&&(Vt+=Jl,hs+=Jl)}else{const o=t.getTextContent();if(Ct(t)){const i=t.decorate(jn,Ac);i!==null&&M$(n,i),r.contentEditable="false"}Vt+=o,hs+=o}return e!==null&&e.insertChild(r),A3(Yh,Jh,z0,t,"created"),r}function IC(n,e,t,r,o){const i=Vt;Vt="";let s=t;for(;s<=r;++s){Pm(n[s],o);const l=Ro.get(n[s]);l!==null&&Se(l)&&(oi===null&&(oi=l.getFormat()),ii===""&&(ii=l.getStyle()))}H0(e)&&(Vt+=Jl),o.element.__lexicalTextContent=Vt,Vt=i+Vt}function pw(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return lh(r)?"line-break":Ct(r)&&r.isInline()?"decorator":null}return"empty"}return null}function A$(n,e,t){const r=pw(n,Mc),o=pw(e,Ro);r!==o&&e.getDOMSlot(t).setManagedLineBreak(o)}function tAe(n,e,t){var r;oi=null,ii="",function(o,i,s){const l=Vt,a=o.__size,c=i.__size;Vt="";const d=s.element;if(a===1&&c===1){const h=o.__first,f=i.__first;if(h===f)Uf(h,d);else{const p=BC(h),m=Pm(f,null);try{d.replaceChild(m,p)}catch(_){if(typeof _=="object"&&_!=null){const C=`${_.toString()} Parent: ${d.tagName}, new child: {tag: ${m.tagName} key: ${f}}, old child: {tag: ${p.tagName}, key: ${h}}.`;throw new Error(C)}throw _}Fm(h,null)}const g=Ro.get(f);Se(g)&&(oi===null&&(oi=g.getFormat()),ii===""&&(ii=g.getStyle()))}else{const h=Im(o,Mc),f=Im(i,Ro);if(h.length!==a&&re(227),f.length!==c&&re(228),a===0)c!==0&&IC(f,i,0,c-1,s);else if(c===0){if(a!==0){const g=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;FC(h,0,a-1,g?null:d),g&&(d.textContent="")}}else(function(g,p,m,_,C,y){const v=_-1,k=C-1;let x,b,T=y.getFirstChild(),w=0,S=0;for(;w<=v&&S<=k;){const O=p[w],M=m[S];if(O===M)T=Ev(Uf(M,y.element)),w++,S++;else{x===void 0&&(x=new Set(p)),b===void 0&&(b=new Set(m));const F=b.has(O),P=x.has(M);if(F)if(P){const z=Oc(jn,M);z===T?T=Ev(Uf(M,y.element)):(y.withBefore(T).insertChild(z),Uf(M,y.element)),w++,S++}else Pm(M,y.withBefore(T)),S++;else T=Ev(BC(O)),Fm(O,y.element),w++}const A=Ro.get(M);A!==null&&Se(A)&&(oi===null&&(oi=A.getFormat()),ii===""&&(ii=A.getStyle()))}const N=w>v,$=S>k;if(N&&!$){const O=m[k+1],M=O===void 0?null:jn.getElementByKey(O);IC(m,g,S,k,y.withBefore(M))}else $&&!N&&FC(p,w,v,y.element)})(i,h,f,a,c,s)}H0(i)&&(Vt+=Jl),d.__lexicalTextContent=Vt,Vt=l+Vt}(n,e,e.getDOMSlot(t)),r=e,oi==null||oi===r.__textFormat||Lm||r.setTextFormat(oi),function(o){ii===""||ii===o.__textStyle||Lm||o.setTextStyle(ii)}(e)}function Im(n,e){const t=[];let r=n.__first;for(;r!==null;){const o=e.get(r);o===void 0&&re(101),t.push(r),r=o.__next}return t}function Uf(n,e){const t=Mc.get(n);let r=Ro.get(n);t!==void 0&&r!==void 0||re(61);const o=Eu||DC.has(n)||OC.has(n),i=Oc(jn,n);if(t===r&&!o){if(X(t)){const s=i.__lexicalTextContent;s!==void 0&&(Vt+=s,hs+=s)}else{const s=t.getTextContent();hs+=s,Vt+=s}return i}if(t!==r&&o&&A3(Yh,Jh,z0,r,"updated"),r.updateDOM(t,i,Ac)){const s=Pm(n,null);return e===null&&re(62),e.replaceChild(s,i),Fm(n,null),s}if(X(t)&&X(r)){const s=r.__indent;(Eu||s!==t.__indent)&&N$(i,s);const l=r.__format;if((Eu||l!==t.__format)&&$$(i,l),o&&(tAe(t,r,i),An(r)||r.isInline()||A$(t,r,i)),H0(r)&&(Vt+=Jl,hs+=Jl),(Eu||r.__dir!==t.__dir)&&(PC(i,r),An(r)&&!Eu))for(const a of r.getChildren())X(a)&&PC(Oc(jn,a.getKey()),a)}else{const s=r.getTextContent();if(Ct(r)){const l=r.decorate(jn,Ac);l!==null&&M$(n,l)}Vt+=s,hs+=s}if(!Lm&&An(r)&&r.__cachedText!==hs){const s=r.getWritable();s.__cachedText=hs,r=s}return i}function M$(n,e){let t=jn._pendingDecorators;const r=jn._decorators;if(t===null){if(r[n]===e)return;t=$A(jn)}t[n]=e}function Ev(n){let e=n.nextSibling;return e!==null&&e===jn._blockCursorElement&&(e=e.nextSibling),e}function nAe(n,e,t,r,o,i){Vt="",hs="",Eu=r===2,jn=t,Ac=t._config,Jh=t._nodes,z0=jn._listeners.mutation,OC=o,DC=i,Mc=n._nodeMap,Ro=e._nodeMap,Lm=e._readOnly,LC=new Map(t._keyToDOMMap);const s=new Map;return Yh=s,Uf("root",null),jn=void 0,Jh=void 0,OC=void 0,DC=void 0,Mc=void 0,Ro=void 0,Ac=void 0,LC=void 0,Yh=void 0,s}function BC(n){const e=LC.get(n);return e===void 0&&re(75,n),e}function We(n){return{type:n}}const O$=We("SELECTION_CHANGE_COMMAND"),rAe=We("CLICK_COMMAND"),Bm=We("DELETE_CHARACTER_COMMAND"),C1=We("INSERT_LINE_BREAK_COMMAND"),mw=We("INSERT_PARAGRAPH_COMMAND"),oh=We("CONTROLLED_TEXT_INSERTION_COMMAND"),D$=We("PASTE_COMMAND"),_w=We("REMOVE_TEXT_COMMAND"),Rm=We("DELETE_WORD_COMMAND"),zm=We("DELETE_LINE_COMMAND"),ja=We("FORMAT_TEXT_COMMAND"),L$=We("UNDO_COMMAND"),F$=We("REDO_COMMAND"),oAe=We("KEYDOWN_COMMAND"),iAe=We("KEY_ARROW_RIGHT_COMMAND"),sAe=We("MOVE_TO_END"),lAe=We("KEY_ARROW_LEFT_COMMAND"),aAe=We("MOVE_TO_START"),cAe=We("KEY_ARROW_UP_COMMAND"),uAe=We("KEY_ARROW_DOWN_COMMAND"),RC=We("KEY_ENTER_COMMAND"),dAe=We("KEY_SPACE_COMMAND"),fAe=We("KEY_BACKSPACE_COMMAND"),hAe=We("KEY_ESCAPE_COMMAND"),gAe=We("KEY_DELETE_COMMAND"),pAe=We("KEY_TAB_COMMAND"),mAe=We("DROP_COMMAND"),_Ae=We("DRAGSTART_COMMAND"),yAe=We("DRAGOVER_COMMAND"),vAe=We("DRAGEND_COMMAND"),P$=We("COPY_COMMAND"),I$=We("CUT_COMMAND"),yw=We("SELECT_ALL_COMMAND"),CAe=We("FOCUS_COMMAND"),bAe=We("BLUR_COMMAND"),kAe=We("KEY_MODIFIER_COMMAND"),Yi=Object.freeze({}),zC=[["keydown",function(n,e){if(ih=n.timeStamp,B$=n.key,!e.isComposing()&&!pe(e,oAe,n)&&n.key!=null){if(Nv&&Zw(n))return zr(e,()=>{Ip(e,$v)}),Nv=!1,void($v="");if(function(t){return tt(t,"ArrowRight",{shiftKey:"any"})}(n))pe(e,iAe,n);else if(function(t){return tt(t,"ArrowRight",ls)}(n))pe(e,sAe,n);else if(function(t){return tt(t,"ArrowLeft",{shiftKey:"any"})}(n))pe(e,lAe,n);else if(function(t){return tt(t,"ArrowLeft",ls)}(n))pe(e,aAe,n);else if(function(t){return tt(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(n))pe(e,cAe,n);else if(function(t){return tt(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(n))pe(e,uAe,n);else if(function(t){return tt(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(n))sh=!0,pe(e,RC,n);else if(function(t){return t.key===" "}(n))pe(e,dAe,n);else if(function(t){return Eo&&tt(t,"o",{ctrlKey:!0})}(n))n.preventDefault(),sh=!0,pe(e,C1,!0);else if(function(t){return tt(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(n))sh=!1,pe(e,RC,n);else if(function(t){return tt(t,"Backspace",{shiftKey:"any"})||Eo&&tt(t,"h",{ctrlKey:!0})}(n))Zw(n)?pe(e,fAe,n):(n.preventDefault(),pe(e,Bm,!0));else if(function(t){return t.key==="Escape"}(n))pe(e,hAe,n);else if(function(t){return tt(t,"Delete",{})||Eo&&tt(t,"d",{ctrlKey:!0})}(n))(function(t){return t.key==="Delete"})(n)?pe(e,gAe,n):(n.preventDefault(),pe(e,Bm,!1));else if(function(t){return tt(t,"Backspace",jw)}(n))n.preventDefault(),pe(e,Rm,!0);else if(function(t){return tt(t,"Delete",jw)}(n))n.preventDefault(),pe(e,Rm,!1);else if(function(t){return Eo&&tt(t,"Backspace",{metaKey:!0})}(n))n.preventDefault(),pe(e,zm,!0);else if(function(t){return Eo&&(tt(t,"Delete",{metaKey:!0})||tt(t,"k",{ctrlKey:!0}))}(n))n.preventDefault(),pe(e,zm,!1);else if(function(t){return tt(t,"b",ls)}(n))n.preventDefault(),pe(e,ja,"bold");else if(function(t){return tt(t,"u",ls)}(n))n.preventDefault(),pe(e,ja,"underline");else if(function(t){return tt(t,"i",ls)}(n))n.preventDefault(),pe(e,ja,"italic");else if(function(t){return tt(t,"Tab",{shiftKey:"any"})}(n))pe(e,pAe,n);else if(function(t){return tt(t,"z",ls)}(n))n.preventDefault(),pe(e,L$,void 0);else if(function(t){return Eo?tt(t,"z",{metaKey:!0,shiftKey:!0}):tt(t,"y",{ctrlKey:!0})||tt(t,"z",{ctrlKey:!0,shiftKey:!0})}(n))n.preventDefault(),pe(e,F$,void 0);else{const t=e._editorState._selection;t===null||$e(t)?Gw(n)&&(n.preventDefault(),pe(e,yw,n)):function(r){return tt(r,"c",ls)}(n)?(n.preventDefault(),pe(e,P$,n)):function(r){return tt(r,"x",ls)}(n)?(n.preventDefault(),pe(e,I$,n)):Gw(n)&&(n.preventDefault(),pe(e,yw,n))}(function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey})(n)&&pe(e,kAe,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;qg(t)&&r!=="touch"&&r!=="pen"&&n.button===0&&zr(e,()=>{Uw(t)||(KC=!0)})}],["compositionstart",function(n,e){zr(e,()=>{const t=lt();if($e(t)&&!e.isComposing()){const r=t.anchor,o=t.anchor.getNode();pn(r.key),(n.timeStamp<ih+30||r.type==="element"||!t.isCollapsed()||o.getFormat()!==t.format||Se(o)&&o.getStyle()!==t.style)&&pe(e,oh,W$e)}})}],["compositionend",function(n,e){$c?Mf=!0:Cd||!Zh&&!Gh?zr(e,()=>{Ip(e,n.data)}):(Nv=!0,$v=n.data)}],["input",function(n,e){n.stopPropagation(),zr(e,()=>{if(Jr(n.target)&&Uw(n.target))return;const t=lt(),r=n.data,o=K$(n);if(r!=null&&$e(t)&&V$(t,o,r,n.timeStamp,!1)){Mf&&(Ip(e,r),Mf=!1);const i=t.anchor.getNode(),s=Ws(fo(e));if(s===null)return;const l=t.isBackward(),a=l?t.anchor.offset:t.focus.offset,c=l?t.focus.offset:t.anchor.offset;Dm&&!t.isCollapsed()&&Se(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+c)===OA(s.anchorNode)||pe(e,oh,r);const d=r.length;$c&&d>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=d),Zh||Cd||Gh||!e.isComposing()||(ih=0,pn(null))}else N3(!1,e,r!==null?r:void 0),Mf&&(Ip(e,r||void 0),Mf=!1);(function(){Wn();const i=$t();S$(i)})()},{event:n}),Nu=null}],["click",function(n,e){zr(e,()=>{const t=lt(),r=Ws(fo(e)),o=Kg();if(r){if($e(t)){const i=t.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&t.isCollapsed()&&!An(s)&&Di().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&t.is(o))r.removeAllRanges(),t.dirty=!0;else if(n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()){const l=S1(s,a=>X(a)&&!a.isInline());X(l)&&l.select(0)}}else if(n.pointerType==="touch"||n.pointerType==="pen"){const i=r.anchorNode;(Jr(i)||Js(i))&&uo(x3(o,r,e,n))}}pe(e,rAe,n)})}],["cut",Yi],["copy",Yi],["dragstart",Yi],["dragover",Yi],["dragend",Yi],["paste",Yi],["focus",Yi],["blur",Yi],["drop",Yi]];Dm&&zC.push(["beforeinput",(n,e)=>function(t,r){const o=t.inputType,i=K$(t);o==="deleteCompositionText"||$c&&DA(r)||o!=="insertCompositionText"&&zr(r,()=>{const s=lt();if(o==="deleteContentBackward"){if(s===null){const g=Kg();if(!$e(g))return;uo(g.clone())}if($e(s)){const g=s.anchor.key===s.focus.key;if(l=t.timeStamp,B$==="MediaLast"&&l<ih+30&&r.isComposing()&&g){if(pn(null),ih=0,setTimeout(()=>{zr(r,()=>{pn(null)})},30),$e(s)){const p=s.anchor.getNode();p.markDirty(),Se(p)||re(142),W$(s,p)}}else{pn(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),_=p.canInsertTextAfter(),C=s.anchor.offset===0&&s.focus.offset===m.length;let y=ow&&g&&!C&&_;if(y&&s.isCollapsed()&&(y=!Ct(ZAe(s.anchor,!0))),!y){pe(r,Bm,!0);const v=lt();ow&&$e(v)&&v.isCollapsed()&&(za=v,setTimeout(()=>za=null))}}return}}var l;if(!$e(s))return;const a=t.data;Nu!==null&&N3(!1,r,Nu),s.dirty&&Nu===null||!s.isCollapsed()||An(s.anchor.getNode())||i===null||s.applyDOMRange(i),Nu=null;const c=s.anchor,d=s.focus,h=c.getNode(),f=d.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(t.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":pe(r,oh,t);break;case"insertFromComposition":pn(null),pe(r,oh,t);break;case"insertLineBreak":pn(null),pe(r,C1,!1);break;case"insertParagraph":pn(null),sh&&!Cd?(sh=!1,pe(r,C1,!1)):pe(r,mw,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":pe(r,D$,t);break;case"deleteByComposition":(function(g,p){return g!==p||X(g)||X(p)||!ec(g)||!ec(p)})(h,f)&&pe(r,_w,t);break;case"deleteByDrag":case"deleteByCut":pe(r,_w,t);break;case"deleteContent":pe(r,Bm,!1);break;case"deleteWordBackward":pe(r,Rm,!0);break;case"deleteWordForward":pe(r,Rm,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":pe(r,zm,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":pe(r,zm,!1);break;case"formatStrikeThrough":pe(r,ja,"strikethrough");break;case"formatBold":pe(r,ja,"bold");break;case"formatItalic":pe(r,ja,"italic");break;case"formatUnderline":pe(r,ja,"underline");break;case"historyUndo":pe(r,L$,void 0);break;case"historyRedo":pe(r,F$,void 0)}else{if(a===`
32
+ `)t.preventDefault(),pe(r,C1,!1);else if(a===Jl)t.preventDefault(),pe(r,mw,void 0);else if(a==null&&t.dataTransfer){const g=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(g)}else a!=null&&V$(s,i,a,t.timeStamp,!0)?(t.preventDefault(),pe(r,oh,a)):Nu=a;R$=t.timeStamp}})}(n,e)]);let ih=0,B$=null,R$=0,Nu=null;const VC=new WeakMap,Vm=new WeakMap;let WC=!1,KC=!1,sh=!1,Mf=!1,Nv=!1,$v="",za=null,z$=[0,"",0,"root",0];function V$(n,e,t,r,o){const i=n.anchor,s=n.focus,l=i.getNode(),a=$t(),c=Ws(fo(a)),d=c!==null?c.anchorNode:null,h=i.key,f=a.getElementByKey(h),g=t.length;return h!==s.key||!Se(l)||(!o&&(!Dm||R$<r+50)||l.isDirty()&&g<2||MA(t))&&i.offset!==s.offset&&!l.isComposing()||cl(l)||l.isDirty()&&g>1||(o||!Dm)&&f!==null&&!l.isComposing()&&d!==bd(f)||c!==null&&e!==null&&(!e.collapsed||e.startContainer!==c.anchorNode||e.startOffset!==c.anchorOffset)||l.getFormat()!==n.format||l.getStyle()!==n.style||function(p,m){if(m.isSegmented())return!0;if(!p.isCollapsed())return!1;const _=p.anchor.offset,C=m.getParentOrThrow(),y=ec(m);return _===0?!m.canInsertTextBefore()||!C.canInsertTextBefore()&&!m.isComposing()||y||function(v){const k=v.getPreviousSibling();return(Se(k)||X(k)&&k.isInline())&&!k.canInsertTextAfter()}(m):_===m.getTextContentSize()&&(!m.canInsertTextAfter()||!C.canInsertTextAfter()&&!m.isComposing()||y)}(n,l)}function vw(n,e){return Js(n)&&n.nodeValue!==null&&e!==0&&e!==n.nodeValue.length}function Cw(n,e,t){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=n;WC&&(WC=!1,vw(r,o)&&vw(i,s)&&!za)||zr(e,()=>{if(!t)return void uo(null);if(!W0(e,r,i))return;let l=lt();if(za&&$e(l)&&l.isCollapsed()){const a=l.anchor,c=za.anchor;(a.key===c.key&&a.offset===c.offset+1||a.offset===1&&c.getNode().is(a.getNode().getPreviousSibling()))&&(l=za.clone(),uo(l))}if(za=null,$e(l)){const a=l.anchor,c=a.getNode();if(l.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(l.dirty=!0);const d=fo(e).event,h=d?d.timeStamp:performance.now(),[f,g,p,m,_]=z$,C=Di(),y=e.isComposing()===!1&&C.getTextContent()==="";if(h<_+200&&a.offset===p&&a.key===m)b1(l,f,g);else if(a.type==="text")Se(c)||re(141),W$(l,c);else if(a.type==="element"&&!y){X(c)||re(259);const v=a.getNode();v.isEmpty()?function(k,x){const b=x.getTextFormat(),T=x.getTextStyle();b1(k,b,T)}(l,v):b1(l,0,"")}}else{const d=a.key,h=l.focus.key,f=l.getNodes(),g=f.length,p=l.isBackward(),m=p?s:o,_=p?o:s,C=p?h:d,y=p?d:h;let v=2047,k=!1;for(let x=0;x<g;x++){const b=f[x],T=b.getTextContentSize();if(Se(b)&&T!==0&&!(x===0&&b.__key===C&&m===T||x===g-1&&b.__key===y&&_===0)&&(k=!0,v&=b.getFormat(),v===0))break}l.format=k?v:0}}pe(e,O$,void 0)})}function b1(n,e,t){n.format===e&&n.style===t||(n.format=e,n.style=t,n.dirty=!0)}function W$(n,e){b1(n,e.getFormat(),e.getStyle())}function K$(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function Ip(n,e){const t=n._compositionKey;if(pn(null),t!==null&&e!=null){if(e===""){const r=en(t),o=bd(n.getElementByKey(t));return void(o!==null&&o.nodeValue!==null&&Se(r)&&$3(r,o.nodeValue,null,null,!0))}if(e[e.length-1]===`
33
+ `){const r=lt();if($e(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void pe(n,RC,null)}}}N3(!0,n,e)}function U$(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const Gu=new Map;function H$(n){const e=QAe(n.target);if(e===null)return;const t=EA(e.anchorNode);if(t===null)return;KC&&(KC=!1,zr(t,()=>{const a=Kg(),c=e.anchorNode;(Jr(c)||Js(c))&&uo(x3(a,e,t,n))}));const r=E3(t),o=r[r.length-1],i=o._key,s=Gu.get(i),l=s||o;l!==t&&Cw(e,l,!1),Cw(e,t,!0),t!==o?Gu.set(i,t):s&&Gu.delete(i)}function bw(n){n._lexicalHandled=!0}function kw(n){return n._lexicalHandled===!0}const xw=()=>{};function xAe(n){const e=VC.get(n);if(e===void 0)return void xw();const t=Vm.get(e);if(t===void 0)return void xw();const r=t-1;r>=0||re(164),VC.delete(n),Vm.set(e,r),r===0&&e.removeEventListener("selectionchange",H$);const o=K0(n);w3(o)?(function(s){if(s._parentEditor!==null){const l=E3(s),a=l[l.length-1]._key;Gu.get(a)===s&&Gu.delete(a)}else Gu.delete(s._key)}(o),n.__lexicalEditor=null):o&&re(198);const i=U$(n);for(let s=0;s<i.length;s++)i[s]();n.__lexicalEventHandles=[]}function UC(n,e,t){Wn();const r=n.__key,o=n.getParent();if(o===null)return;const i=function(l){const a=lt();if(!$e(a)||!X(l))return a;const{anchor:c,focus:d}=a,h=c.getNode(),f=d.getNode();return qC(h,l)&&c.set(l.__key,0,"element"),qC(f,l)&&d.set(l.__key,0,"element"),a}(n);let s=!1;if($e(i)&&e){const l=i.anchor,a=i.focus;l.key===r&&(Um(l,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0),a.key===r&&(Um(a,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0)}else k3(i)&&e&&n.isSelected()&&n.selectPrevious();if($e(i)&&e&&!s){const l=n.getIndexWithinParent();tc(n),Km(i,o,l,-1)}else tc(n);t||ha(o)||o.canBeEmpty()||!o.isEmpty()||UC(o,e),e&&i&&An(o)&&o.isEmpty()&&o.selectEnd()}const SAe=Symbol.for("ephemeral");function Wm(n){return n[SAe]||!1}var K2;let Ol=(K2=class{constructor(e){E(this,"__type");E(this,"__key");E(this,"__parent");E(this,"__prev");E(this,"__next");E(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),HAe(this,e)}static getType(){const{ownNodeType:e}=lMe(this);return e===void 0&&re(64,this.name),e}static clone(e){re(65,this.name)}$config(){return{}}config(e,t){const r=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:r,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){re(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=en(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){const t=e||lt();if(t==null)return!1;const r=t.getNodes().some(o=>o.__key===this.__key);if(Se(this))return r;if($e(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const o=this.getParent();if(Ct(this)&&this.isInline()&&o){const i=t.isBackward()?t.focus:t.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:en(e)}getParentOrThrow(){const e=this.getParent();return e===null&&re(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(ha(t))return X(e)||e===this&&Ct(e)||re(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&re(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:en(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:en(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=X(this)?this:this.getParent(),r=X(e)?e:e.getParent(),o=t&&r?w1(t,r):null;return o?o.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const t=w1(this,e);return t!==null&&(t.type==="descendant"||(t.type==="branch"?zA(t)===-1:(t.type!=="same"&&t.type!=="ancestor"&&re(279),!1)))}isParentOf(e){const t=w1(this,e);return t!==null&&t.type==="ancestor"}getNodesBetween(e){const t=this.isBefore(e),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===e)break;const l=X(i)?t?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const a=t?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===e)break;let d=null,h=c;do{if(h===null&&re(68),d=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;d!==null||o.has(h.__key)||r.push(h)}while(d===null);i=d}return t||r.reverse(),r}isDirty(){const e=$t()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(Wm(this))return this;const e=en(this.__key);return e===null&&re(113),e}getWritable(){if(Wm(this))return this;Wn();const e=fa(),t=$t(),r=e._nodeMap,o=this.__key,i=this.getLatest(),s=t._cloneNotNeeded,l=lt();if(l!==null&&l.setCachedNodes(null),s.has(o))return qm(i),i;const a=oMe(i);return s.add(o),qm(a),r.set(o,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){re(70)}updateDOM(e,t,r){re(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){re(18,this.name)}updateFromJSON(e){return function(t,r){const o=t.getWritable(),i=r.$;let s=i;for(const l of E$(o).flatKeys)l in r&&(s!==void 0&&s!==i||(s={...i}),s[l]=r[l]);return(o.__state||s)&&X$e(t).updateFromJSON(s),o}(this,e)}static transform(){return null}remove(e){UC(this,!0,e)}replace(e,t){Wn();let r=lt();r!==null&&(r=r.clone()),Pv(this,e);const o=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size;tc(l);const d=o.getPreviousSibling(),h=o.getNextSibling(),f=o.__prev,g=o.__next,p=o.__parent;if(UC(o,!1,!0),d===null?a.__first=s:d.getWritable().__next=s,l.__prev=f,h===null?a.__last=s:h.getWritable().__prev=s,l.__next=g,l.__parent=p,a.__size=c,t&&(X(this)&&X(l)||re(139),this.getChildren().forEach(m=>{l.append(m)})),$e(r)){uo(r);const m=r.anchor,_=r.focus;m.key===i&&Ew(m,l),_.key===i&&Ew(_,l)}return xl()===i&&pn(s),l}insertAfter(e,t=!0){Wn(),Pv(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.getParent(),s=lt();let l=!1,a=!1;if(i!==null){const g=e.getIndexWithinParent();if(tc(o),$e(s)){const p=i.__key,m=s.anchor,_=s.focus;l=m.type==="element"&&m.key===p&&m.offset===g+1,a=_.type==="element"&&_.key===p&&_.offset===g+1}}const c=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),h=o.__key,f=r.__next;if(c===null?d.__last=h:c.getWritable().__prev=h,d.__size++,r.__next=h,o.__next=f,o.__prev=r.__key,o.__parent=r.__parent,t&&$e(s)){const g=this.getIndexWithinParent();Km(s,d,g+1);const p=d.__key;l&&s.anchor.set(p,g+2,"element"),a&&s.focus.set(p,g+2,"element")}return e}insertBefore(e,t=!0){Wn(),Pv(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.__key;tc(o);const s=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,c=this.getIndexWithinParent();s===null?l.__first=i:s.getWritable().__next=i,l.__size++,r.__prev=i,o.__prev=a,o.__next=r.__key,o.__parent=r.__parent;const d=lt();return t&&$e(d)&&Km(d,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return $s()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Wn();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(X(r))return r.select();if(!Se(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(e,t)}selectNext(e,t){Wn();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(X(r))return r.select(0,0);if(!Se(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},E(K2,"importDOM"),K2);const Av="history-merge",wAe="collaboration",TAe="skip-scroll-into-view",EAe="skip-dom-selection",NAe="skip-selection-focus";let q$=class j$ extends Ol{static getType(){return"linebreak"}static clone(e){return new j$(e.__key)}constructor(e){super(e)}getTextContent(){return`
34
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(t){const r=t.parentElement;if(r!==null&&Yw(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&Bp(o)){const i=r.lastChild;if(i===t||i.previousSibling===t&&Bp(i))return!0}}return!1}(e)||function(t){const r=t.parentElement;if(r!==null&&Yw(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&Bp(o))return!1;const i=r.lastChild;if(i===t||i.previousSibling===t&&Bp(i))return!0}return!1}(e)?null:{conversion:$Ae,priority:0}}}static importJSON(e){return Xh().updateFromJSON(e)}};function $Ae(n){return{node:Xh()}}function Xh(){return Jd(new q$)}function lh(n){return n instanceof q$}function Bp(n){return Js(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function Mv(n,e){return 16&e?"code":e&b$?"mark":32&e?"sub":64&e?"sup":null}function Ov(n,e){return 1&e?"strong":2&e?"em":"span"}function Z$(n,e,t,r,o){const i=r.classList;let s=Ju(o,"base");s!==void 0&&i.add(...s),s=Ju(o,"underlineStrikethrough");let l=!1;const a=8&e&&4&e;s!==void 0&&(8&t&&4&t?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const c in ir){const d=ir[c];if(s=Ju(o,c),s!==void 0)if(t&d){if(l&&(c==="underline"||c==="strikethrough")){e&d&&i.remove(...s);continue}(!(e&d)||a&&c==="underline"||c==="strikethrough")&&i.add(...s)}else e&d&&i.remove(...s)}}function G$(n,e,t){const r=e.firstChild,o=t.isComposing(),i=n+(o?R0:"");if(r==null)e.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||$c){const[l,a,c]=function(d,h){const f=d.length,g=h.length;let p=0,m=0;for(;p<f&&p<g&&d[p]===h[p];)p++;for(;m+p<f&&m+p<g&&d[f-m-1]===h[g-m-1];)m++;return[p,f-p-m,h.slice(p,g-m)]}(s,i);a!==0&&r.deleteData(l,a),r.insertData(l,c)}else r.nodeValue=i}}function Sw(n,e,t,r,o,i){G$(o,n,e);const s=i.theme.text;s!==void 0&&Z$(0,0,r,n,s)}function Rp(n,e){const t=document.createElement(e);return t.appendChild(n),t}let v3=class J$ extends Ol{constructor(t="",r){super(r);E(this,"__text");E(this,"__format");E(this,"__style");E(this,"__mode");E(this,"__detail");this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(t){return new J$(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return q$e[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===xl()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const r=ir[t];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(t,r){return Hm(this.getLatest().__format,t,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,r){const o=this.__format,i=Mv(0,o),s=Ov(0,o),l=i===null?s:i,a=document.createElement(l);let c=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(c=document.createElement(s),a.appendChild(c)),Sw(c,this,0,o,this.__text,t);const d=this.__style;return d!==""&&(a.style.cssText=d),a}updateDOM(t,r,o){const i=this.__text,s=t.__format,l=this.__format,a=Mv(0,s),c=Mv(0,l),d=Ov(0,s),h=Ov(0,l);if((a===null?d:a)!==(c===null?h:c))return!0;if(a===c&&d!==h){const _=r.firstChild;_==null&&re(48);const C=document.createElement(h);return Sw(C,this,0,l,i,o),r.replaceChild(C,_),!1}let f=r;c!==null&&a!==null&&(f=r.firstChild,f==null&&re(49)),G$(i,f,this);const g=o.theme.text;g!==void 0&&s!==l&&Z$(0,s,l,f,g);const p=t.__style,m=this.__style;return p!==m&&(r.style.cssText=m),!1}static importDOM(){return{"#text":()=>({conversion:DAe,priority:0}),b:()=>({conversion:MAe,priority:0}),code:()=>({conversion:Xi,priority:0}),em:()=>({conversion:Xi,priority:0}),i:()=>({conversion:Xi,priority:0}),mark:()=>({conversion:Xi,priority:0}),s:()=>({conversion:Xi,priority:0}),span:()=>({conversion:AAe,priority:0}),strong:()=>({conversion:Xi,priority:0}),sub:()=>({conversion:Xi,priority:0}),sup:()=>({conversion:Xi,priority:0}),u:()=>({conversion:Xi,priority:0})}}static importJSON(t){return Gt().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(t){let{element:r}=super.exportDOM(t);return Jr(r)||re(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=Rp(r,"b")),this.hasFormat("italic")&&(r=Rp(r,"i")),this.hasFormat("strikethrough")&&(r=Rp(r,"s")),this.hasFormat("underline")&&(r=Rp(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?ir[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?K$e[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=Hm(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=H$e[t];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){Wn();let o=t,i=r;const s=lt(),l=this.getTextContent(),a=this.__key;if(typeof l=="string"){const c=l.length;o===void 0&&(o=c),i===void 0&&(i=c)}else o=0,i=0;if(!$e(s))return iA(a,o,a,i,"text","text");{const c=xl();c!==s.anchor.key&&c!==s.focus.key||pn(a),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,o,i){const s=this.getWritable(),l=s.__text,a=o.length;let c=t;c<0&&(c=a+c,c<0&&(c=0));const d=lt();if(i&&$e(d)){const f=t+a;d.setTextNodeRange(s,f,s,f)}const h=l.slice(0,c)+o+l.slice(c+r);return s.__text=h,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Wn();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=xl(),l=o.length;t.sort((S,N)=>S-N),t.push(l);const a=[],c=t.length;for(let S=0,N=0;S<l&&N<=c;N++){const $=t[N];$>S&&(a.push(o.slice(S,$)),S=$)}const d=a.length;if(d===1)return[r];const h=a[0],f=r.getParent();let g;const p=r.getFormat(),m=r.getStyle(),_=r.__detail;let C=!1,y=null,v=null;const k=lt();if($e(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===i&&(y=S),N.type==="text"&&N.key===i&&(v=N)}r.isSegmented()?(g=Gt(h),g.__format=p,g.__style=m,g.__detail=_,g.__state=uw(r,g),C=!0):g=r.setTextContent(h);const x=[g];for(let S=1;S<d;S++){const N=Gt(a[S]);N.__format=p,N.__style=m,N.__detail=_,N.__state=uw(r,N);const $=N.__key;s===i&&pn($),x.push(N)}const b=y?y.offset:null,T=v?v.offset:null;let w=0;for(const S of x){if(!y&&!v)break;const N=w+S.getTextContentSize();if(y!==null&&b!==null&&b<=N&&b>=w&&(y.set(S.getKey(),b-w,"text"),b<N&&(y=null)),v!==null&&T!==null&&T<=N&&T>=w){v.set(S.getKey(),T-w,"text");break}w=N}if(f!==null){(function($){const O=$.getPreviousSibling(),M=$.getNextSibling();O!==null&&qm(O),M!==null&&qm(M)})(this);const S=f.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,x),this.remove()):S.splice(N,1,x),$e(k)&&Km(k,f,N,d-1)}return x}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||re(50);const o=this.__key,i=t.__key,s=this.__text,l=s.length;xl()===i&&pn(o);const a=lt();if($e(a)){const f=a.anchor,g=a.focus;f!==null&&f.key===i&&Fw(f,r,o,t,l),g!==null&&g.key===i&&Fw(g,r,o,t,l)}const c=t.__text,d=r?c+s:s+c;this.setTextContent(d);const h=this.getWritable();return t.remove(),h}isTextEntity(){return!1}};function AAe(n){return{forChild:C3(n.style),node:null}}function MAe(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:C3(e.style,t?void 0:"bold"),node:null}}const ww=new WeakMap;function OAe(n){if(!Jr(n))return!1;if(n.nodeName==="PRE")return!0;const e=n.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function DAe(n){const e=n;n.parentElement===null&&re(129);let t=e.textContent||"";if(function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=ww.get(i))===void 0&&!OAe(i);)s.push(i),i=i.parentNode;const l=o===void 0?i:o;for(let a=0;a<s.length;a++)ww.set(s[a],l);return l}(e)!==null){const r=t.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const l=r[s];l===`
35
+ `||l===`\r
36
+ `?o.push(Xh()):l===" "?o.push(b3()):l!==""&&o.push(Gt(l))}return{node:o}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,o=!0;for(;r!==null&&(r=Tw(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),o=!1;break}}o&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,o=!0;for(;r!==null&&(r=Tw(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:Gt(t)}}function Tw(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=r,Jr(t)){const i=t.style.display;if(i===""&&!tMe(t)||i!==""&&!i.startsWith("inline"))return null}let o=t;for(;(o=e?t.firstChild:t.lastChild)!==null;)t=o;if(Js(t))return t;if(t.nodeName==="BR")return null}}const LAe={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Xi(n){const e=LAe[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:C3(n.style,e),node:null}}function Gt(n=""){return Jd(new v3(n))}function Se(n){return n instanceof v3}function C3(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),o=t==="700"||t==="bold",i=r.includes("line-through"),s=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return c=>(Se(c)&&(o&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),s&&!c.hasFormat("italic")&&c.toggleFormat("italic"),l&&!c.hasFormat("underline")&&c.toggleFormat("underline"),a!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),a!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),e&&!c.hasFormat(e)&&c.toggleFormat(e)),c)}let Y$=class X$ extends v3{static getType(){return"tab"}static clone(e){return new X$(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),r=Ju(e.theme,"tab");return r!==void 0&&t.classList.add(...r),t}static importJSON(e){return b3().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&y$(126),super.setTextContent(" ")}spliceText(e,t,r,o){return r===""&&t===0||r===" "&&t===1||re(286),this}setDetail(e){return e!==2&&re(127),this}setMode(e){return e!=="normal"&&re(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function b3(){return Jd(new Y$)}function Q$(n){return n instanceof Y$}let FAe=class{constructor(e,t,r){E(this,"key");E(this,"offset");E(this,"type");E(this,"_selection");this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:RA(Ci(Fc(this,"next")),Ci(Fc(e,"next")))<0}getNode(){const e=en(this.key);return e===null&&re(20),e}set(e,t,r,o){const i=this._selection,s=this.key;o&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,Ug()||(xl()===s&&pn(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}};function Oi(n,e,t){return new FAe(n,e,t)}function Dv(n,e){let t=e.__key,r=n.offset,o="element";if(Se(e)){o="text";const i=e.getTextContentSize();r>i&&(r=i)}else if(!X(e)){const i=e.getNextSibling();if(Se(i))t=i.__key,r=0,o="text";else{const s=e.getParent();s&&(t=s.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,o)}function Ew(n,e){if(X(e)){const t=e.getLastDescendant();X(t)||Se(t)?Dv(n,t):Dv(n,e)}else Dv(n,e)}let eA=class tA{constructor(e){E(this,"_nodes");E(this,"_cachedNodes");E(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!k3(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new tA(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),r=t.length,o=t[r-1];let i;if(Se(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<r;s++)t[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const o of t){const i=en(o);i!==null&&r.push(i)}return Ug()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((lt()||Kg())===this&&e[0]){const t=Zn(e[0],"next");_Me(Lc(t,t))}for(const t of e)t.remove()}};function $e(n){return n instanceof Wg}let Wg=class nA{constructor(e,t,r,o){E(this,"format");E(this,"style");E(this,"anchor");E(this,"focus");E(this,"_cachedNodes");E(this,"dirty");this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!$e(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const l=new Set,a=new Set;for(const c of r)if(As(c)){const{origin:d}=c;o.length===0?l.add(d):(a.add(d),o.push(d))}else{const{origin:d}=c;X(d)&&a.has(d)||o.push(d)}if(s&&o.push(s.caret.origin),kd(r.focus)&&X(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let c=Xl(r.focus.origin,"previous");As(c)&&l.has(c.origin)&&!c.origin.isEmpty()&&c.origin.is(o[o.length-1]);c=L3(c))l.delete(c.origin),o.pop();for(;o.length>1;){const c=o[o.length-1];if(!X(c)||a.has(c)||c.isEmpty()||l.has(c))break;o.pop()}if(o.length===0&&r.isCollapsed()){const c=Ci(r.anchor),d=Ci(r.anchor.getFlipped()),h=g=>nc(g)?g.origin:g.getNodeAtCaret(),f=h(c)||h(d)||(r.anchor.getNodeAtCaret()?c.origin:d.origin);o.push(f)}return o}(VA(nT(this),"next"));return Ug()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,o){this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[l,a]=$w(this);let c="",d=!0;for(let h=0;h<e.length;h++){const f=e[h];if(X(f)&&!f.isInline())d||(c+=`
37
+ `),d=!f.isEmpty();else if(d=!1,Se(f)){let g=f.getTextContent();f===t?f===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(g=l<a?g.slice(l,a):g.slice(a,l)):g=s?g.slice(l):g.slice(a):f===r&&(g=s?g.slice(0,a):g.slice(0,l)),c+=g}else!Ct(f)&&!lh(f)||f===r&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(e){const t=$t(),r=t.getEditorState()._selection,o=oA(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),Q$e(this)}clone(){const e=this.anchor,t=this.focus;return new nA(Oi(e.key,e.offset,e.type),Oi(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Hm(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=ir[e];return(this.format&t)!==0}insertRawText(e){const t=e.split(/(\r?\n|\t)/),r=[],o=t.length;for(let i=0;i<o;i++){const s=t[i];s===`
38
+ `||s===`\r
39
+ `?r.push(Xh()):s===" "?r.push(b3()):r.push(Gt(s))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,o=this.format,i=this.style;let s=t,l=r;!this.isCollapsed()&&r.isBefore(t)&&(s=r,l=t),s.type==="element"&&function(_,C,y,v){const k=_.getNode(),x=k.getChildAtIndex(_.offset),b=Gt();if(b.setFormat(y),b.setStyle(v),kA(x))x.splice(0,0,[b]);else{const T=An(k)?$s().append(b):b;x===null?k.append(T):x.insertBefore(T)}_.is(C)&&C.set(b.__key,0,"text"),_.set(b.__key,0,"text")}(s,l,o,i),l.type==="element"&&eg(l,Ci(Fc(l,"next")));const a=s.offset;let c=l.offset;const d=this.getNodes(),h=d.length;let f=d[0];Se(f)||re(26);const g=f.getTextContent().length,p=f.getParentOrThrow();let m=d[h-1];if(h===1&&l.type==="element"&&(c=g,l.set(s.key,c,"text")),this.isCollapsed()&&a===g&&(cl(f)||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&f.getNextSibling()===null)){let _=f.getNextSibling();if(Se(_)&&_.canInsertTextBefore()&&!cl(_)||(_=Gt(),_.setFormat(o),_.setStyle(i),p.canInsertTextAfter()?f.insertAfter(_):p.insertAfter(_)),_.select(0,0),f=_,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(cl(f)||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&f.getPreviousSibling()===null)){let _=f.getPreviousSibling();if(Se(_)&&!cl(_)||(_=Gt(),_.setFormat(o),p.canInsertTextBefore()?f.insertBefore(_):p.insertBefore(_)),_.select(),f=_,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&a!==g){const _=Gt(f.getTextContent());_.setFormat(o),f.replace(_),f=_}else if(!this.isCollapsed()&&e!==""){const _=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||X(_)&&(!_.canInsertTextBefore()||!_.canInsertTextAfter()))return this.insertText(""),rA(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(ec(f)){const v=Gt(e);return v.select(),void f.replace(v)}const _=f.getFormat(),C=f.getStyle();if(a!==c||_===o&&C===i){if(Q$(f)){const v=Gt(e);return v.setFormat(o),v.setStyle(i),v.select(),void f.replace(v)}}else{if(f.getTextContent()!==""){const v=Gt(e);if(v.setFormat(o),v.setStyle(i),v.select(),a===0)f.insertBefore(v,!1);else{const[k]=f.splitText(a);k.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(o),f.setStyle(i)}const y=c-a;f=f.spliceText(a,y,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=_,this.style=C))}else{const _=new Set([...f.getParentKeys(),...m.getParentKeys()]),C=X(f)?f:f.getParentOrThrow();let y=X(m)?m:m.getParentOrThrow(),v=m;if(!C.is(y)&&y.isInline())do v=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(c!==0||m.getTextContent()==="")||l.type==="element"&&m.getIndexWithinParent()<c)if(Se(m)&&!ec(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){const w=Gt(m.getTextContent());m.replace(w),m=w}An(l.getNode())||l.type!=="text"||(m=m.spliceText(0,c,"")),_.add(m.__key)}else{const w=m.getParentOrThrow();w.canBeEmpty()||w.getChildrenSize()!==1?m.remove():w.remove()}else _.add(m.__key);const k=y.getChildren(),x=new Set(d),b=C.is(y),T=C.isInline()&&f.getNextSibling()===null?C:f;for(let w=k.length-1;w>=0;w--){const S=k[w];if(S.is(f)||X(S)&&S.isParentOf(f))break;S.isAttached()&&(!x.has(S)||S.is(v)?b||T.insertAfter(S,!1):S.remove())}if(!b){let w=y,S=null;for(;w!==null;){const N=w.getChildren(),$=N.length;($===0||N[$-1].is(S))&&(_.delete(w.__key),S=w),w=w.getParent()}}if(ec(f))if(a===g)f.select();else{const w=Gt(e);w.select(),f.replace(w)}else f=f.spliceText(a,g-a,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let w=1;w<h;w++){const S=d[w],N=S.__key;_.has(N)||S.remove()}}}removeText(){const e=lt()===this;T1(this,yMe(nT(this))),e&&lt()!==this&&uo(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void pn(null);const r=this.getNodes(),o=[];for(const k of r)Se(k)&&o.push(k);const i=k=>{r.forEach(x=>{if(X(x)){const b=x.getFormatFlags(e,k);x.setTextFormat(b)}})},s=o.length;if(s===0)return this.toggleFormat(e),pn(null),void i(t);const l=this.anchor,a=this.focus,c=this.isBackward(),d=c?a:l,h=c?l:a;let f=0,g=o[0],p=d.type==="element"?0:d.offset;if(d.type==="text"&&p===g.getTextContentSize()&&(f=1,g=o[1],p=0),g==null)return;const m=g.getFormatFlags(e,t);i(m);const _=s-1;let C=o[_];const y=h.type==="text"?h.offset:C.getTextContentSize();if(g.is(C)){if(p===y)return;if(cl(g)||p===0&&y===g.getTextContentSize())g.setFormat(m);else{const k=g.splitText(p,y),x=p===0?k[0]:k[1];x.setFormat(m),d.type==="text"&&d.set(x.__key,0,"text"),h.type==="text"&&h.set(x.__key,y-p,"text")}return void(this.format=m)}p===0||cl(g)||([,g]=g.splitText(p),p=0),g.setFormat(m);const v=C.getFormatFlags(e,m);y>0&&(y===C.getTextContentSize()||cl(C)||([C]=C.splitText(y)),C.setFormat(v));for(let k=f+1;k<_;k++){const x=o[k],b=x.getFormatFlags(e,v);x.setFormat(b)}d.type==="text"&&d.set(g.__key,p,"text"),h.type==="text"&&h.set(C.__key,y,"text"),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const p=lt();return $e(p)||re(134),p.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),r=S1(t,_l),o=e[e.length-1];if(X(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const p=Lv(this);r.splice(p,0,e),o.selectEnd()}return}if(!e.some(p=>(X(p)||Ct(p))&&!p.isInline())){X(r)||re(211,t.constructor.name,t.getType());const p=Lv(this);return r.splice(p,0,e),void o.selectEnd()}const i=function(p){const m=$s();let _=null;for(let C=0;C<p.length;C++){const y=p[C],v=lh(y);if(v||Ct(y)&&y.isInline()||X(y)&&y.isInline()||Se(y)||y.isParentRequired()){if(_===null&&(_=y.createParentElementNode(),m.append(_),v))continue;_!==null&&_.append(y)}else m.append(y),_=null}return m}(e),s=i.getLastDescendant(),l=i.getChildren(),a=!X(r)||!r.isEmpty()?this.insertParagraph():null,c=l[l.length-1];let d=l[0];var h;X(h=d)&&_l(h)&&!h.isEmpty()&&X(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(X(r)||re(211,t.constructor.name,t.getType()),r.append(...d.getChildren()),d=l[1]),d&&(r===null&&re(212,t.constructor.name,t.getType()),function(p,m){const _=m.getParentOrThrow().getLastChild();let C=m;const y=[m];for(;C!==_;)C.getNextSibling()||re(140),C=C.getNextSibling(),y.push(C);let v=p;for(const k of y)v=v.insertAfter(k)}(r,d));const f=S1(s,_l);a&&X(f)&&(a.canMergeWhenEmpty()||_l(c))&&(f.append(...a.getChildren()),a.remove()),X(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const g=X(r)?r.getLastChild():null;lh(g)&&f!==r&&g.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=$s();return Di().splice(this.anchor.offset,0,[s]),s.select(),s}const e=Lv(this),t=S1(this.anchor.getNode(),_l);X(t)||re(213);const r=t.getChildAtIndex(e),o=r?[r,...r.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(e){const t=Xh();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),o=t.getIndexWithinParent();r.select(o,o)}}extract(){const e=[...this.getNodes()],t=e.length;let r=e[0],o=e[t-1];const[i,s]=$w(this),l=this.isBackward(),[a,c]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,h]=l?[s,i]:[i,s];if(t===0)return[];if(t===1){if(Se(r)&&!this.isCollapsed()){const f=r.splitText(d,h),g=d===0?f[0]:f[1];return g?(a.set(g.getKey(),0,"text"),c.set(g.getKey(),g.getTextContentSize(),"text"),[g]):[]}return[r]}if(Se(r)&&(d===r.getTextContentSize()?e.shift():d!==0&&([,r]=r.splitText(d),e[0]=r,a.set(r.getKey(),0,"text"))),Se(o)){const f=o.getTextContent().length;h===0?e.pop():h!==f&&([o]=o.splitText(h),e[e.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return e}modify(e,t,r){if(Pw(this,e,t,r))return;const o=e==="move",i=$t(),s=Ws(fo(i));if(!s)return;const l=i._blockCursorElement,a=i._rootElement,c=this.focus.getNode();if(a===null||l===null||!X(c)||c.isInline()||c.canBeEmpty()||jC(l,i,a),this.dirty){let d=Oc(i,this.anchor.key),h=Oc(i,this.focus.key);this.anchor.type==="text"&&(d=bd(d)),this.focus.type==="text"&&(h=bd(h)),d&&h&&lA(s,d,this.anchor.offset,h,this.focus.offset)}if(function(d,h,f,g){d.modify(h,f,g)}(s,e,t?"backward":"forward",r),s.rangeCount>0){const d=s.getRangeAt(0),h=this.anchor.getNode(),f=An(h)?h:YAe(h);if(this.applyDOMRange(d),this.dirty=!0,!o){const g=this.getNodes(),p=[];let m=!1;for(let _=0;_<g.length;_++){const C=g[_];qC(C,f)?p.push(C):m=!0}if(m&&p.length>0)if(t){const _=p[0];X(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=p[p.length-1];X(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}s.anchorNode===d.startContainer&&s.anchorOffset===d.startOffset||function(_){const C=_.focus,y=_.anchor,v=y.key,k=y.offset,x=y.type;y.set(C.key,C.offset,C.type,!0),C.set(v,k,x,!0)}(this)}}r==="lineboundary"&&Pw(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&X(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const o=t.getParent(),i=t.getNextSibling()||(o===null?null:o.getNextSibling());if(X(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,e))return;const i=IA(Fc(r,e?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const a of i.iterNodeCarets("shadowRoot"))if(As(a)){if(!a.origin.isInline()){if(a.origin.isShadowRoot()){if(l.type==="merge-block")break;if(X(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=Ci(a);T1(this,Lc(c,c)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:a,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(kd(a)){if(X(a.origin)){if(a.origin.isInline()){if(!a.origin.isParentOf(i.anchor.origin))break}else l={block:a.origin,type:"merge-next-block"};continue}if(Ct(a.origin)){if(!a.origin.isIsolated())if(l.type==="merge-next-block"&&(a.origin.isKeyboardSelectable()||!a.origin.isInline())&&X(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=sA();c.add(a.origin.getKey()),uo(c)}else a.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:a,block:c}=l;return T1(this,Lc(!a.origin.isEmpty()&&c.isEmpty()?F3(Zn(c,a.direction)):i.anchor,a)),this.removeText()}}const s=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&Aw(this,r.getNode()))return}else{const l=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=s.offset,c=l.getTextContentSize();if(l.is(o)||e&&a!==c||!e&&a!==0)return void Mw(l,e,a)}else if(o!==null&&o.isSegmented()){const a=r.offset,c=o.getTextContentSize();if(o.is(l)||e&&a!==0||!e&&a!==c)return void Mw(o,e,a)}(function(a,c){const d=a.anchor,h=a.focus,f=d.getNode(),g=h.getNode();if(f===g&&d.type==="text"&&h.type==="text"){const p=d.offset,m=h.offset,_=p<m,C=_?p:m,y=_?m:p,v=y-1;C!==v&&function(k){return!(MA(k)||PAe(k))}(f.getTextContent().slice(C,y))&&(c?h.set(h.key,v,h.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&An(r.getParent())&&r.getPreviousSibling()===null&&Aw(this,r)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function k3(n){return n instanceof eA}function Nw(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function $w(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[Nw(t),Nw(r)]}function Aw(n,e){for(let t=e;t;t=t.getParent()){if(X(t)){if(t.collapseAtStart(n))return!0;if(ha(t))break}if(t.getPreviousSibling())break}return!1}const PAe=(()=>{try{const n=new RegExp("\\p{Emoji}","u"),e=n.test.bind(n);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function Mw(n,e,t){const r=n,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let c=0;c<i;c++){const d=c===i-1;if(l=s,s+=o[c].length,e&&s===t||s>t||d){o.splice(c,1),d&&(l=void 0);break}}const a=o.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function Ow(n,e,t,r){let o,i=e;if(Jr(n)){let s=!1;const l=n.childNodes,a=l.length,c=r._blockCursorElement;i===a&&(s=!0,i=a-1);let d=l[i],h=!1;if(d===c)d=l[i+1],h=!0;else if(c!==null){const f=c.parentNode;n===f&&e>Array.prototype.indexOf.call(f.children,c)&&i--}if(o=Bu(d),Se(o))i=Dl(o,s?"next":"previous");else{let f=Bu(n);if(f===null)return null;if(X(f)){const g=r.getElementByKey(f.getKey());g===null&&re(214),[f,i]=f.getDOMSlot(g).resolveChildIndex(f,g,n,e),X(f)||re(215),s&&i>=f.getChildrenSize()&&(i=Math.max(0,f.getChildrenSize()-1));let m=f.getChildAtIndex(i);if(X(m)&&function(_,C,y){const v=_.getParent();return y===null||v===null||!v.canBeEmpty()||v!==y.getNode()}(m,0,t)){const _=s?m.getLastDescendant():m.getFirstDescendant();_===null?f=m:(m=_,f=X(m)?m:m.getParentOrThrow()),i=0}Se(m)?(o=m,f=null,i=Dl(m,s?"next":"previous")):m!==f&&s&&!h&&(X(f)||re(216),i=Math.min(f.getChildrenSize(),i+1))}else{const g=f.getIndexWithinParent();i=e===0&&Ct(f)&&Bu(n)===f?g:g+1,f=f.getParentOrThrow()}if(X(f))return Oi(f.__key,i,"element")}}else o=Bu(n);return Se(o)?Oi(o.__key,Dl(o,i,"clamp"),"text"):null}function Dw(n,e,t){const r=n.offset,o=n.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(e){if((t||!e)&&i===null&&X(s)&&s.isInline()){const l=s.getPreviousSibling();Se(l)&&n.set(l.__key,l.getTextContent().length,"text")}}else X(i)&&!t&&i.isInline()?n.set(i.__key,i.getChildrenSize(),"element"):Se(i)&&n.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(e&&X(i)&&i.isInline())n.set(i.__key,0,"element");else if((t||e)&&i===null&&X(s)&&s.isInline()&&!s.canInsertTextAfter()){const l=s.getNextSibling();Se(l)&&n.set(l.__key,0,"text")}}}function rA(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),o=n.is(e);Dw(n,r,o),Dw(e,!r,o),o&&e.set(n.key,n.offset,n.type);const i=$t();if(i.isComposing()&&i._compositionKey!==n.key&&$e(t)){const s=t.anchor,l=t.focus;n.set(s.key,s.offset,s.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function oA(n,e,t,r,o,i){if(n===null||t===null||!W0(o,n,t))return null;const s=Ow(n,e,$e(i)?i.anchor:null,o);if(s===null)return null;const l=Ow(t,r,$e(i)?i.focus:null,o);if(l===null)return null;if(s.type==="element"&&l.type==="element"){const a=Bu(n),c=Bu(t);if(Ct(a)&&Ct(c))return null}return rA(s,l,i),[s,l]}function iA(n,e,t,r,o,i){const s=fa(),l=new Wg(Oi(n,e,o),Oi(t,r,i),0,"");return l.dirty=!0,s._selection=l,l}function IAe(){const n=Oi("root",0,"element"),e=Oi("root",0,"element");return new Wg(n,e,0,"")}function sA(){return new eA(new Set)}function x3(n,e,t,r){const o=t._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,l=s==="selectionchange",a=!MC&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,d,h,f;if($e(n)&&!a)return n.clone();if(e===null)return null;if(c=e.anchorNode,d=e.focusNode,h=e.anchorOffset,f=e.focusOffset,(l||s===void 0)&&$e(n)&&!W0(t,c,d))return n.clone();const g=oA(c,h,d,f,t,n);if(g===null)return null;const[p,m]=g;return new Wg(p,m,$e(n)?n.format:0,$e(n)?n.style:"")}function lt(){return fa()._selection}function Kg(){return $t()._editorState._selection}function Km(n,e,t,r=1){const o=n.anchor,i=n.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(n.isCollapsed()){const c=o.offset;if(t<=c&&r>0||t<c&&r<0){const d=Math.max(0,c+r);o.set(a,d,"element"),i.set(a,d,"element"),Lw(n)}}else{const c=n.isBackward(),d=c?i:o,h=d.getNode(),f=c?o:i,g=f.getNode();if(e.is(h)){const p=d.offset;(t<=p&&r>0||t<p&&r<0)&&d.set(a,Math.max(0,p+r),"element")}if(e.is(g)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}}Lw(n)}function Lw(n){const e=n.anchor,t=e.offset,r=n.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!X(i))return;const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(Se(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text"),r.set(c.__key,d,"text")}return}if(X(i)){const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(Se(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text")}}if(X(s)){const l=s.getChildrenSize(),a=o>=l,c=a?s.getChildAtIndex(l-1):s.getChildAtIndex(o);if(Se(c)){let d=0;a&&(d=c.getTextContentSize()),r.set(c.__key,d,"text")}}}function Um(n,e,t,r,o){let i=null,s=0,l=null;r!==null?(i=r.__key,Se(r)?(s=r.getTextContentSize(),l="text"):X(r)&&(s=r.getChildrenSize(),l="element")):o!==null&&(i=o.__key,Se(o)?l="text":X(o)&&(l="element")),i!==null&&l!==null?n.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function Fw(n,e,t,r,o){n.type==="text"?n.set(t,n.offset+(e?0:o),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function lA(n,e,t,r,o){try{n.setBaseAndExtent(e,t,r,o)}catch{}}function BAe(n,e,t,r,o,i,s){const l=r.anchorNode,a=r.focusNode,c=r.anchorOffset,d=r.focusOffset,h=document.activeElement;if(o.has(wAe)&&h!==i||h!==null&&TA(h))return;if(!$e(e))return void(n!==null&&W0(t,l,a)&&r.removeAllRanges());const f=e.anchor,g=e.focus,p=f.key,m=g.key,_=Oc(t,p),C=Oc(t,m),y=f.offset,v=g.offset,k=e.format,x=e.style,b=e.isCollapsed();let T=_,w=C,S=!1;if(f.type==="text"){T=bd(_);const F=f.getNode();S=F.getFormat()!==k||F.getStyle()!==x}else $e(n)&&n.anchor.type==="text"&&(S=!0);var N,$,O,M,A;if(g.type==="text"&&(w=bd(C)),T!==null&&w!==null&&(b&&(n===null||S||$e(n)&&(n.format!==k||n.style!==x))&&(N=k,$=x,O=y,M=p,A=performance.now(),z$=[N,$,O,M,A]),c!==y||d!==v||l!==T||a!==w||r.type==="Range"&&b||(h!==null&&i.contains(h)||o.has(NAe)||i.focus({preventScroll:!0}),f.type==="element"))){if(lA(r,T,y,w,v),!o.has(TAe)&&e.isCollapsed()&&i!==null&&i===document.activeElement){const F=$e(e)&&e.anchor.type==="element"?T.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(F!==null){let P;if(F instanceof Text){const z=document.createRange();z.selectNode(F),P=z.getBoundingClientRect()}else P=F.getBoundingClientRect();(function(z,I,L){const U=LA(L),W=M3(U);if(U===null||W===null)return;let{top:H,bottom:fe}=I,G=0,ae=0,R=L;for(;R!==null;){const J=R===U.body;if(J)G=0,ae=fo(z).innerHeight;else{const Z=R.getBoundingClientRect();G=Z.top,ae=Z.bottom}let B=0;if(H<G?B=-(G-H):fe>ae&&(B=fe-ae),B!==0)if(J)W.scrollBy(0,B);else{const Z=R.scrollTop;R.scrollTop+=B;const Ee=R.scrollTop-Z;H-=Ee,fe-=Ee}if(J)break;R=Hg(R)}})(t,P,i)}}WC=!0}}function Lv(n){let e=n;n.isCollapsed()||e.removeText();const t=lt();$e(t)&&(e=t),$e(e)||re(161);const r=e.anchor;let o=r.getNode(),i=r.offset;for(;!_l(o);){const s=o;if([o,i]=RAe(o,i),s.is(o))break}return i}function RAe(n,e){const t=n.getParent();if(!t){const o=$s();return Di().append(o),o.select(),[Di(),0]}if(Se(n)){const o=n.splitText(e);if(o.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,o[0].getIndexWithinParent()+i]}if(!X(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const o=new Wg(Oi(n.__key,e,"element"),Oi(n.__key,e,"element"),0,""),i=n.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}function Pw(n,e,t,r,o="decorators-and-blocks"){if(e==="move"&&r==="character"&&!n.isCollapsed()){const[d,h]=t===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return h.set(d.key,d.offset,d.type),!0}const i=Fc(n.focus,t?"previous":"next"),s=r==="lineboundary",l=e==="move";let a=i,c=o==="decorators-and-blocks";if(!vMe(a)){for(const d of a){c=!1;const{origin:h}=d;if(!Ct(h)||h.isIsolated()||(a=d,!s||!h.isInline()))break}if(c)for(const d of IA(i).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(As(d))d.origin.isInline()||(a=d);else{if(X(d.origin))continue;Ct(d.origin)&&!d.origin.isInline()&&(a=d)}break}}if(a===i)return!1;if(l&&!s&&Ct(a.origin)&&a.origin.isKeyboardSelectable()){const d=sA();return d.add(a.origin.getKey()),uo(d),!0}return a=Ci(a),l&&eg(n.anchor,a),eg(n.focus,a),c||!s}let Qt=null,xn=null,xr=!1,Fv=!1,k1=0;const Iw={characterData:!0,childList:!0,subtree:!0};function Ug(){return xr||Qt!==null&&Qt._readOnly}function Wn(){xr&&re(13)}function aA(){k1>99&&re(14)}function fa(){return Qt===null&&re(195,cA()),Qt}function $t(){return xn===null&&re(196,cA()),xn}function cA(){let n=0;const e=new Set,t=Qh.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=K0(o);if(w3(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function Bw(n,e,t){const r=e.__type,o=SA(n,r);let i=t.get(r);i===void 0&&(i=Array.from(o.transforms),t.set(r,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function Rw(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function uA(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const o of r)t.add(o)}function dA(n,e){const t=n.type,r=e.get(t);r===void 0&&re(17,t);const o=r.klass;n.type!==o.getType()&&re(18,o.name);const i=o.importJSON(n),s=n.children;if(X(i)&&Array.isArray(s))for(let l=0;l<s.length;l++){const a=dA(s[l],e);i.append(a)}return i}function zw(n,e,t){const r=Qt,o=xr,i=xn;Qt=e,xr=!0,xn=n;try{return t()}finally{Qt=r,xr=o,xn=i}}function vs(n,e){const t=n._pendingEditorState,r=n._rootElement,o=n._headless||r===null;if(t===null)return;const i=n._editorState,s=i._selection,l=t._selection,a=n._dirtyType!==0,c=Qt,d=xr,h=xn,f=n._updating,g=n._observer;let p=null;if(n._pendingEditorState=null,n._editorState=t,!o&&a&&g!==null){xn=n,Qt=t,xr=!1,n._updating=!0;try{const b=n._dirtyType,T=n._dirtyElements,w=n._dirtyLeaves;g.disconnect(),p=nAe(i,t,n,b,T,w)}catch(b){if(b instanceof Error&&n._onError(b),Fv)throw b;return xA(n,null,r,t),w$(n),n._dirtyType=2,Fv=!0,vs(n,i),void(Fv=!1)}finally{g.observe(r,Iw),n._updating=f,Qt=c,xr=d,xn=h}}t._readOnly||(t._readOnly=!0);const m=n._dirtyLeaves,_=n._dirtyElements,C=n._normalizedNodes,y=n._updateTags,v=n._deferred;a&&(n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(b,T){const w=b._decorators;let S=b._pendingDecorators||w;const N=T._nodeMap;let $;for($ in S)N.has($)||(S===w&&(S=$A(b)),delete S[$])}(n,t);const k=o?null:Ws(fo(n));if(n._editable&&k!==null&&(a||l===null||l.dirty||!l.is(s))&&r!==null&&!y.has(EAe)){xn=n,Qt=t;try{if(g!==null&&g.disconnect(),a||l===null||l.dirty){const b=n._blockCursorElement;b!==null&&jC(b,n,r),BAe(s,l,n,k,y,r)}(function(b,T,w){let S=b._blockCursorElement;if($e(w)&&w.isCollapsed()&&w.anchor.type==="element"&&T.contains(document.activeElement)){const N=w.anchor,$=N.getNode(),O=N.offset;let M=!1,A=null;if(O===$.getChildrenSize())Iv($.getChildAtIndex(O-1))&&(M=!0);else{const F=$.getChildAtIndex(O);if(F!==null&&Iv(F)){const P=F.getPreviousSibling();(P===null||Iv(P))&&(M=!0,A=b.getElementByKey(F.__key))}}if(M){const F=b.getElementByKey($.__key);return S===null&&(b._blockCursorElement=S=function(P){const z=P.theme,I=document.createElement("div");I.contentEditable="false",I.setAttribute("data-lexical-cursor","true");let L=z.blockCursor;if(L!==void 0){if(typeof L=="string"){const U=C$(L);L=z.blockCursor=U}L!==void 0&&I.classList.add(...L)}return I}(b._config)),T.style.caretColor="transparent",void(A===null?F.appendChild(S):F.insertBefore(S,A))}}S!==null&&jC(S,b,T)})(n,r,l)}finally{g!==null&&g.observe(r,Iw),xn=h,Qt=c}}p!==null&&function(b,T,w,S,N){const $=Array.from(b._listeners.mutation),O=$.length;for(let M=0;M<O;M++){const[A,F]=$[M];for(const P of F){const z=T.get(P);z!==void 0&&A(z,{dirtyLeaves:S,prevEditorState:N,updateTags:w})}}}(n,p,y,m,i),$e(l)||l===null||s!==null&&s.is(l)||n.dispatchCommand(O$,void 0);const x=n._pendingDecorators;x!==null&&(n._decorators=x,n._pendingDecorators=null,ah("decorator",n,!0,x)),function(b,T,w){const S=Hw(T),N=Hw(w);S!==N&&ah("textcontent",b,!0,N)}(n,e||i,t),ah("update",n,!0,{dirtyElements:_,dirtyLeaves:m,editorState:t,mutatedNodes:p,normalizedNodes:C,prevEditorState:e||i,tags:y}),function(b,T){if(b._deferred=[],T.length!==0){const w=b._updating;b._updating=!0;try{for(let S=0;S<T.length;S++)T[S]()}finally{b._updating=w}}}(n,v),function(b){const T=b._updates;if(T.length!==0){const w=T.shift();if(w){const[S,N]=w;V0(b,S,N)}}}(n)}function ah(n,e,t,...r){const o=e._updating;e._updating=t;try{const i=Array.from(e._listeners[n]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{e._updating=o}}function Vw(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const o=t.shift();if(o){const[i,s]=o,l=n._pendingEditorState;let a;s!==void 0&&(a=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(l===null&&re(191),l._flushSync=!0),a&&n._deferred.push(a),uA(n,s.tag)),l==null?V0(n,i,s):i()}}return r}function V0(n,e,t){const r=n._updateTags;let o,i=!1,s=!1;t!==void 0&&(o=t.onUpdate,uA(n,t.tag),i=t.skipTransforms||!1,s=t.discrete||!1),o&&n._deferred.push(o);const l=n._editorState;let a=n._pendingEditorState,c=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=pA(a||l),c=!0),a._flushSync=s;const d=Qt,h=xr,f=xn,g=n._updating;Qt=a,xr=!1,n._updating=!0,xn=n;const p=n._headless||n.getRootElement()===null;S3(null);try{c&&(p?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=function(y,v){const k=y.getEditorState()._selection,x=Ws(fo(y));return $e(k)||k==null?x3(k,x,y,v):k.clone()}(n,t&&t.event||null));const _=n._compositionKey;e(),i=Vw(n,i),function(y,v){const k=v.getEditorState()._selection,x=y._selection;if($e(x)){const b=x.anchor,T=x.focus;let w;if(b.type==="text"&&(w=b.getNode(),w.selectionTransform(k,x)),T.type==="text"){const S=T.getNode();w!==S&&S.selectionTransform(k,x)}}}(a,n),n._dirtyType!==0&&(i?function(y,v){const k=v._dirtyLeaves,x=y._nodeMap;for(const b of k){const T=x.get(b);Se(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&hw(T)}}(a,n):function(y,v){const k=v._dirtyLeaves,x=v._dirtyElements,b=y._nodeMap,T=xl(),w=new Map;let S=k,N=S.size,$=x,O=$.size;for(;N>0||O>0;){if(N>0){v._dirtyLeaves=new Set;for(const M of S){const A=b.get(M);Se(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&hw(A),A!==void 0&&Rw(A,T)&&Bw(v,A,w),k.add(M)}if(S=v._dirtyLeaves,N=S.size,N>0){k1++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,$.delete("root")&&$.set("root",!0);for(const M of $){const A=M[0],F=M[1];if(x.set(A,F),!F)continue;const P=b.get(A);P!==void 0&&Rw(P,T)&&Bw(v,P,w)}S=v._dirtyLeaves,N=S.size,$=v._dirtyElements,O=$.size,k1++}v._dirtyLeaves=k,v._dirtyElements=x}(a,n),Vw(n),function(y,v,k,x){const b=y._nodeMap,T=v._nodeMap,w=[];for(const[S]of x){const N=T.get(S);N!==void 0&&(N.isAttached()||(X(N)&&k$(N,S,b,T,w,x),b.has(S)||x.delete(S),w.push(S)))}for(const S of w)T.delete(S);for(const S of k){const N=T.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),T.delete(S))}}(l,a,n._dirtyLeaves,n._dirtyElements)),_!==n._compositionKey&&(a._flushSync=!0);const C=a._selection;if($e(C)){const y=a._nodeMap,v=C.anchor.key,k=C.focus.key;y.get(v)!==void 0&&y.get(k)!==void 0||re(19)}else k3(C)&&C._nodes.size===0&&(a._selection=null)}catch(_){return _ instanceof Error&&n._onError(_),n._pendingEditorState=l,n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void vs(n)}finally{Qt=d,xr=h,xn=f,n._updating=g,k1=0}n._dirtyType!==0||n._deferred.length>0||function(_,C){const y=C.getEditorState()._selection,v=_._selection;if(v!==null){if(v.dirty||!v.is(y))return!0}else if(y!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,vs(n)):c&&KAe(()=>{vs(n)}):(a._flushSync=!1,c&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function zr(n,e,t){xn===n&&t===void 0?e():V0(n,e,t)}let zAe=class x1{constructor(e,t,r){E(this,"element");E(this,"before");E(this,"after");this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new x1(this.element,e,this.after)}withAfter(e){return new x1(this.element,this.before,e)}withElement(e){return this.element===e?this:new x1(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&re(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&re(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&re(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(Gh||Cd||Zh);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,o){if(r===this.element){const a=this.getFirstChildOffset();return[e,Math.min(a+e.getChildrenSize(),Math.max(a,o))]}const i=Ww(t,r);i.push(o);const s=Ww(t,this.element);let l=e.getIndexWithinParent();for(let a=0;a<s.length;a++){const c=i[a],d=s[a];if(c===void 0||c<d)break;if(c>d){l+=1;break}}return[e.getParentOrThrow(),l]}};function Ww(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;t.push(o)}return r!==n&&re(225),t.reverse()}let Yl=class extends Ol{constructor(t){super(t);E(this,"__first");E(this,"__last");E(this,"__size");E(this,"__format");E(this,"__style");E(this,"__indent");E(this,"__dir");E(this,"__textFormat");E(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return U$e[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=$t()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(Se(r)&&t.push(r),X(r)){const o=r.getAllTextNodes();t.push(...o)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;X(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;X(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),o=r.length;if(t>=o){const s=r[o-1];return X(s)&&s.getLastDescendant()||s||null}const i=r[t];return X(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:en(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&re(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:en(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&re(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let o,i;if(t<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=t;){if(i===t)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=t;){if(i===t)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let t="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContent(),X(s)&&i!==o-1&&!s.isInline()&&(t+=Jl)}return t}getTextContentSize(){let t=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContentSize(),X(s)&&i!==o-1&&!s.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(t!==""){const r=iw[t];return(this.getFormat()&r)!==0}return!1}hasTextFormat(t){const r=ir[t];return(this.getTextFormat()&r)!==0}getFormatFlags(t,r){return Hm(this.getLatest().__textFormat,t,r)}getTextStyle(){return this.getLatest().__textStyle}select(t,r){Wn();const o=lt();let i=t,s=r;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(t===0&&r===0){const c=this.getFirstChild();if(Se(c)||X(c))return c.select(0,0)}else if(!(t!==void 0&&t!==l||r!==void 0&&r!==l)){const c=this.getLastChild();if(Se(c)||X(c))return c.select()}}i===void 0&&(i=l),s===void 0&&(s=l);const a=this.__key;return $e(o)?(o.anchor.set(a,i,"element"),o.focus.set(a,s,"element"),o.dirty=!0,o):iA(a,i,a,s,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(r=>r.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?iw[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const r=this.getWritable();return r.__textFormat=t,r}setTextStyle(t){const r=this.getWritable();return r.__textStyle=t,r}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,o){Wm(this)&&re(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();t+r<=i||re(226,String(t),String(r),String(i));const l=s.__key,a=[],c=[],d=this.getChildAtIndex(t+r);let h=null,f=i-r+o.length;if(t!==0)if(t===i)h=this.getLastChild();else{const p=this.getChildAtIndex(t);p!==null&&(h=p.getPreviousSibling())}if(r>0){let p=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<r;m++){p===null&&re(100);const _=p.getNextSibling(),C=p.__key;tc(p.getWritable()),c.push(C),p=_}}let g=h;for(const p of o){g!==null&&p.is(g)&&(h=g=g.getPreviousSibling());const m=p.getWritable();m.__parent===l&&f--,tc(m);const _=p.__key;if(g===null)s.__first=_,m.__prev=null;else{const C=g.getWritable();C.__next=_,m.__prev=C.__key}p.__key===l&&re(76),m.__parent=l,a.push(_),g=p}if(t+r===i)g!==null&&(g.getWritable().__next=null,s.__last=g.__key);else if(d!==null){const p=d.getWritable();if(g!==null){const m=g.getWritable();p.__prev=g.__key,m.__next=d.__key}else p.__prev=null}if(s.__size=f,c.length){const p=lt();if($e(p)){const m=new Set(c),_=new Set(a),{anchor:C,focus:y}=p;Kw(C,m,_)&&Um(C,C.getNode(),this,h,d),Kw(y,m,_)&&Um(y,y.getNode(),this,h,d),f!==0||this.canBeEmpty()||ha(this)||this.remove()}}return s}getDOMSlot(t){return new zAe(t)}exportDOM(t){const{element:r}=super.exportDOM(t);if(Jr(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r!==0&&(t.textFormat=r),o!==""&&(t.textStyle=o),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,r){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,r){const o=this.getDOMSlot(t);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const l=r.getElementByKey(s.getKey());l!==null&&(i==null?(o.insertChild(l),i=l):i!==l&&o.replaceChild(l,i),i=i.nextSibling)}}};function X(n){return n instanceof Yl}function Kw(n,e,t){let r=n.getNode();for(;r;){const o=r.__key;if(e.has(o)&&!t.has(o))return!0;r=r.getParent()}return!1}let fA=class extends Ol{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function Ct(n){return n instanceof fA}let hA=class gA extends Yl{constructor(){super("root");E(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new gA}getTopLevelElementOrThrow(){re(51)}getTextContent(){const t=this.__cachedText;return!Ug()&&$t()._dirtyType!==0||t===null?super.getTextContent():t}remove(){re(52)}replace(t){re(53)}insertBefore(t){re(54)}insertAfter(t){re(55)}updateDOM(t,r){return!1}splice(t,r,o){for(const i of o)X(i)||Ct(i)||re(282);return super.splice(t,r,o)}static importJSON(t){return Di().updateFromJSON(t)}collapseAtStart(){return!0}};function An(n){return n instanceof hA}function pA(n){return new yA(new Map(n._nodeMap))}function mA(){return new yA(new Map([["root",new hA]]))}function _A(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&re(130,t.name),X(n)){const r=e.children;Array.isArray(r)||re(59,t.name);const o=n.getChildren();for(let i=0;i<o.length;i++){const s=_A(o[i]);r.push(s)}}return e}let yA=class vA{constructor(e,t){E(this,"_nodeMap");E(this,"_selection");E(this,"_flushSync");E(this,"_readOnly");this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return zw(t&&t.editor||null,this,e)}clone(e){const t=new vA(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return zw(null,this,()=>({root:_A(Di())}))}},CA=class bA extends Yl{static getType(){return"paragraph"}static clone(e){return new bA(e.__key)}createDOM(e){const t=document.createElement("p"),r=Ju(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:VAe,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Jr(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();r&&(t.style.textAlign=r)}return{element:t}}static importJSON(e){return $s().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){const r=$s();r.setTextFormat(e.format),r.setTextStyle(e.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||Se(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function VAe(n){const e=$s();return n.style&&(e.setFormat(n.style.textAlign),iMe(n,e)),{node:e}}function $s(){return Jd(new CA)}function kA(n){return n instanceof CA}function xA(n,e,t,r){const o=n._keyToDOMMap;o.clear(),n._editorState=mA(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",o.set("root",t))}var U2;let Qh=(U2=class{constructor(e,t,r,o,i,s,l,a){E(this,"_headless");E(this,"_parentEditor");E(this,"_rootElement");E(this,"_editorState");E(this,"_pendingEditorState");E(this,"_compositionKey");E(this,"_deferred");E(this,"_keyToDOMMap");E(this,"_updates");E(this,"_updating");E(this,"_listeners");E(this,"_commands");E(this,"_nodes");E(this,"_decorators");E(this,"_pendingDecorators");E(this,"_config");E(this,"_dirtyType");E(this,"_cloneNotNeeded");E(this,"_dirtyLeaves");E(this,"_dirtyElements");E(this,"_normalizedNodes");E(this,"_updateTags");E(this,"_observer");E(this,"_key");E(this,"_onError");E(this,"_htmlConversions");E(this,"_window");E(this,"_editable");E(this,"_blockCursorElement");E(this,"_createEditorArgs");this._createEditorArgs=a,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=qAe(),this._onError=i,this._htmlConversions=s,this._editable=l,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&re(35);const o=this._commands;o.has(e)||o.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(e);i===void 0&&re(36,String(e));const s=i[r];return s.add(t),()=>{s.delete(t),i.every(l=>l.size===0)&&o.delete(e)}}registerMutationListener(e,t,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let s=i.get(t);s===void 0&&(s=new Set,i.set(t,s)),s.add(o);const l=r&&r.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(t,o),()=>{s.delete(o),s.size===0&&i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&re(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,o=Qw(r).get(t.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,t);o.push(s)}return function(s,l){const a=Qw(s.getEditorState()),c=[];for(const d of l){const h=a.get(d);h&&c.push(h)}c.length!==0&&s.update(()=>{for(const d of c)for(const h of d.keys()){const f=en(h);f&&f.markDirty()}},s._pendingEditorState===null?{tag:Av}:void 0)}(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return pe(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=Ju(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=e,xA(this,t,e,o),t!==null&&(this._config.disableEvents||xAe(t),r!=null&&t.classList.remove(...r)),e!==null){const i=M3(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,w$(this),this._updateTags.add(Av),vs(this),this._config.disableEvents||function(l,a){const c=l.ownerDocument;VC.set(l,c);const d=Vm.get(c)??0;d<1&&c.addEventListener("selectionchange",H$),Vm.set(c,d+1),l.__lexicalEditor=a;const h=U$(l);for(let f=0;f<zC.length;f++){const[g,p]=zC[f],m=typeof p=="function"?_=>{kw(_)||(bw(_),(a.isEditable()||g==="click")&&p(_,a))}:_=>{if(kw(_))return;bw(_);const C=a.isEditable();switch(g){case"cut":return C&&pe(a,I$,_);case"copy":return pe(a,P$,_);case"paste":return C&&pe(a,D$,_);case"dragstart":return C&&pe(a,_Ae,_);case"dragover":return C&&pe(a,yAe,_);case"dragend":return C&&pe(a,vAe,_);case"focus":return C&&pe(a,CAe,_);case"blur":return C&&pe(a,bAe,_);case"drop":return C&&pe(a,mAe,_)}};l.addEventListener(g,m),h.push(()=>{l.removeEventListener(g,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add(Av),vs(this);ah("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&re(38);let r=e;r._readOnly&&(r=pA(e),r._selection=e._selection?e._selection.clone():null),S$(this);const o=this._pendingEditorState,i=this._updateTags,s=t!==void 0?t.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),vs(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||vs(this)}parseEditorState(e,t){return function(r,o,i){const s=mA(),l=Qt,a=xr,c=xn,d=o._dirtyElements,h=o._dirtyLeaves,f=o._cloneNotNeeded,g=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,Qt=s,xr=!1,xn=o,S3(null);try{const p=o._nodes;dA(r.root,p),i&&i(),s._readOnly=!0}catch(p){p instanceof Error&&o._onError(p)}finally{o._dirtyElements=d,o._dirtyLeaves=h,o._cloneNotNeeded=f,o._dirtyType=g,Qt=l,xr=a,xn=c}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return vs(this),this.getEditorState().read(e,{editor:this})}update(e,t){(function(r,o,i){r._updating?r._updates.push([o,i]):V0(r,o,i)})(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),zr(this,()=>{const o=lt(),i=Di();o!==null?o.dirty||uo(o.clone()):i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),GAe("focus"),JAe(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=Ws(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,ah("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}},E(U2,"version"),U2);Qh.version="0.38.1+prod.esm";let HC=null;function S3(n){HC=n}let WAe=1;function SA(n,e){const t=wA(n,e);return t===void 0&&re(30,e),t}function wA(n,e){return n._nodes.get(e)}const KAe=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function Uw(n){return Ct(T3(n))}function TA(n){const e=document.activeElement;if(!Jr(e))return!1;const t=e.nodeName;return Ct(T3(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&K0(e)==null)}function W0(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!TA(e)&&EA(e)===n}catch{return!1}}function w3(n){return n instanceof Qh}function EA(n){let e=n;for(;e!=null;){const t=K0(e);if(w3(t))return t;e=Hg(e)}return null}function K0(n){return n?n.__lexicalEditor:null}function ec(n){return Q$(n)||n.isToken()}function cl(n){return ec(n)||n.isSegmented()}function Js(n){return qg(n)&&n.nodeType===3}function UAe(n){return qg(n)&&n.nodeType===9}function bd(n){let e=n;for(;e!=null;){if(Js(e))return e;e=e.firstChild}return null}function Hm(n,e,t){const r=ir[e];if(t!==null&&(n&r)===(t&r))return n;let o=n^r;return e==="subscript"?o&=~ir.superscript:e==="superscript"?o&=~ir.subscript:e==="lowercase"?(o&=~ir.uppercase,o&=~ir.capitalize):e==="uppercase"?(o&=~ir.lowercase,o&=~ir.capitalize):e==="capitalize"&&(o&=~ir.lowercase,o&=~ir.uppercase),o}function HAe(n,e){const t=function(){const s=HC;return HC=null,s}();if((e=e||t&&t.__key)!=null)return void(n.__key=e);Wn(),aA();const r=$t(),o=fa(),i=""+WAe++;o._nodeMap.set(i,n),X(n)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,n.__key=i}function tc(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),o=n.getPreviousSibling(),i=n.getNextSibling(),s=i!==null?i.__key:null,l=o!==null?o.__key:null,a=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=l),a!==null&&(a.__next=s),c!==null&&(c.__prev=l),t.__prev=null,t.__next=null,t.__parent=null,r.__size--}}function qm(n){aA(),Wm(n)&&re(323,n.__key,n.__type);const e=n.getLatest(),t=e.__parent,r=fa(),o=$t(),i=r._nodeMap,s=o._dirtyElements;t!==null&&function(a,c,d){let h=a;for(;h!==null;){if(d.has(h))return;const f=c.get(h);if(f===void 0)break;d.set(h,!1),h=f.__parent}}(t,i,s);const l=e.__key;o._dirtyType=1,X(n)?s.set(l,!0):o._dirtyLeaves.add(l)}function pn(n){Wn();const e=$t(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=en(t);r!==null&&r.getWritable()}if(n!==null){const r=en(n);r!==null&&r.getWritable()}}}function xl(){return Ug()?null:$t()._compositionKey}function en(n,e){const t=(e||fa())._nodeMap.get(n);return t===void 0?null:t}function NA(n,e){const t=U0(n,$t());return t!==void 0?en(t,e):null}function U0(n,e){return n[`__lexicalKey_${e._key}`]}function T3(n,e){let t=n;for(;t!=null;){const r=NA(t,e);if(r!==null)return r;t=Hg(t)}return null}function $A(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function Hw(n){return n.read(()=>Di().getTextContent())}function Di(){return AA(fa())}function AA(n){return n._nodeMap.get("root")}function uo(n){Wn();const e=fa();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Bu(n){const e=$t(),t=function(r,o){let i=r;for(;i!=null;){const s=U0(i,o);if(s!==void 0)return s;i=Hg(i)}return null}(n,e);return t===null?n===e.getRootElement()?en("root"):null:en(t)}function MA(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function E3(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function qAe(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function OA(n){return Js(n)?n.nodeValue:null}function N3(n,e,t){const r=Ws(fo(e));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let l=OA(o);const a=T3(o);if(l!==null&&Se(a)){if(l===R0&&t){const c=t.length;l=t,i=c,s=c}l!==null&&$3(a,l,i,s,n)}}}function $3(n,e,t,r,o){let i=n;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let l=e;(s||o)&&e[e.length-1]===R0&&(l=e.slice(0,-1));const a=i.getTextContent();if(o||l!==a){if(l===""){if(pn(null),Zh||Cd||Gh)i.remove();else{const m=$t();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),d=Kg(),h=i.getTextContentSize(),f=xl(),g=i.getKey();if(i.isToken()||f!==null&&g===f&&!s||$e(d)&&(c!==null&&!c.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===n.__key&&d.anchor.offset===0&&!i.canInsertTextBefore()&&!s||d.focus.key===n.__key&&d.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=lt();if(!$e(p)||t===null||r===null)return void qw(i,l,p);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=Gt(i.getTextContent());i.replace(m),i=m}qw(i,l,p)}}}function qw(n,e,t){if(n.setTextContent(e),$e(t)){const r=n.getKey();for(const o of["anchor","focus"]){const i=t[o];i.type==="text"&&i.key===r&&(i.offset=Dl(n,i.offset,"clamp"))}}}function zp(n,e,t){const r=e[t]||!1;return r==="any"||r===n[t]}function jAe(n,e){return zp(n,e,"altKey")&&zp(n,e,"ctrlKey")&&zp(n,e,"shiftKey")&&zp(n,e,"metaKey")}function tt(n,e,t){return jAe(n,t)&&n.key.toLowerCase()===e.toLowerCase()}const ls={ctrlKey:!Eo,metaKey:Eo},jw={altKey:Eo,ctrlKey:!Eo};function Zw(n){return n.key==="Backspace"}function Gw(n){return tt(n,"a",ls)}function Ju(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const o=n[e];if(typeof o=="string"){const i=C$(o);return t[e]=i,i}return o}function A3(n,e,t,r,o){if(t.size===0)return;const i=r.__type,s=r.__key,l=e.get(i);l===void 0&&re(33,i);const a=l.klass;let c=n.get(a);c===void 0&&(c=new Map,n.set(a,c));const d=c.get(s),h=d==="destroyed"&&o==="created";(d===void 0||h)&&c.set(s,h?"updated":o)}function Jw(n,e,t){const r=n.getParent();let o=t,i=n;return r!==null&&(e&&t===0?(o=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function ZAe(n,e){const t=n.offset;if(n.type==="element")return Jw(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const o=e?r.getPreviousSibling():r.getNextSibling();return o===null?Jw(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):o}}return null}function DA(n){const e=fo(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function pe(n,e,t){return function(r,o,i){const s=E3(r);for(let l=4;l>=0;l--)for(let a=0;a<s.length;a++){const c=s[a],d=c._commands.get(o);if(d!==void 0){const h=d[l];if(h!==void 0){const f=Array.from(h),g=f.length;let p=!1;if(zr(c,()=>{for(let m=0;m<g;m++)if(f[m](i,r))return void(p=!0)}),p)return p}}}return!1}(n,e,t)}function H0(n){return!An(n)&&!n.isLastChild()&&!n.isInline()}function Oc(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&re(75,e),t}function Hg(n){const e=n.assignedSlot||n.parentElement;return eMe(e)?e.host:e}function LA(n){return UAe(n)?n:Jr(n)?n.ownerDocument:null}function GAe(n){Wn(),$t()._updateTags.add(n)}function JAe(n){Wn(),$t()._deferred.push(n)}function qC(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function M3(n){const e=LA(n);return e?e.defaultView:null}function fo(n){const e=n._window;return e===null&&re(78),e}function YAe(n){let e=n.getParentOrThrow();for(;e!==null;){if(ha(e))return e;e=e.getParentOrThrow()}return e}function ha(n){return An(n)||X(n)&&n.isShadowRoot()}function Jd(n){const e=$t(),t=n.getType(),r=wA(e,t);r===void 0&&re(200,n.constructor.name,t);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(n),l=s.constructor;return i!==null?s instanceof i||re(201,i.name,i.getType(),l.name,l.getType(),n.constructor.name,t):s instanceof n.constructor&&l!==n.constructor||re(202,l.name,l.getType(),n.constructor.name,t),s.__key===n.__key&&re(203,n.constructor.name,t,l.name,l.getType()),s}return n}function Pv(n,e){!An(n.getParent())||X(e)||Ct(e)||re(99)}function XAe(n){const e=en(n);return e===null&&re(63,n),e}function Iv(n){return(Ct(n)||X(n)&&!n.canBeEmpty())&&!n.isInline()}function jC(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function Ws(n){return Jo?(n||window).getSelection():null}function QAe(n){const e=M3(n);return e?e.getSelection():null}function Jr(n){return qg(n)&&n.nodeType===1}function qg(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function eMe(n){return qg(n)&&n.nodeType===11}function tMe(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function Yw(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function _l(n){if(Ct(n)&&!n.isInline())return!0;if(!X(n)||ha(n))return!1;const e=n.getFirstChild(),t=e===null||lh(e)||Se(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function nMe(){return $t()}const Xw=new WeakMap,rMe=new Map;function Qw(n){if(!n._readOnly&&n.isEmpty())return rMe;n._readOnly||re(192);let e=Xw.get(n);return e||(e=function(t){const r=new Map;for(const[o,i]of t._nodeMap){const s=i.__type;let l=r.get(s);l||(l=new Map,r.set(s,l)),l.set(o,i)}return r}(n),Xw.set(n,e)),e}function oMe(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function iMe(n,e){const t=parseInt(n.style.paddingInlineStart,10)||0,r=Math.round(t/40);e.setIndent(r)}function sMe(n){return n.__lexicalUnmanaged===!0}function Of(n,e){return function(t,r){return Object.prototype.hasOwnProperty.call(t,r)}(n,e)&&n[e]!==Ol[e]}function lMe(n){const e=sw in n.prototype?n.prototype[sw]():void 0,t=function(s){if(!(s===Ol||s.prototype instanceof Ol)){let l="<unknown>",a="<unknown>";try{l=s.getType()}catch{}try{Qh.version&&(a=JSON.parse(Qh.version))}catch{}re(290,s.name,l,a)}return s===fA||s===Yl||s===Ol}(n),r=!t&&Of(n,"getType")?n.getType():void 0;let o,i=r;if(e)if(r)o=e[r];else for(const[s,l]of Object.entries(e))i=s,o=l;if(!t&&i&&(Of(n,"getType")||(n.getType=()=>i),Of(n,"clone")||(n.clone=s=>(S3(s),new n)),Of(n,"importJSON")||(n.importJSON=o&&o.$importJSON||(s=>new n().updateFromJSON(s))),!Of(n,"importDOM")&&o)){const{importDOM:s}=o;s&&(n.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const S1=(n,e)=>{let t=n;for(;t!=null&&!An(t);){if(e(t))return t;t=t.getParent()}return null},aMe={next:"previous",previous:"next"};let O3=class{constructor(e){E(this,"origin");this.origin=e}[Symbol.iterator](){return BA({hasNext:kd,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Zn(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Zn(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){const o=r===this.direction?t:Array.from(t).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let a=i.getAdjacentCaret();a!==null&&l.size<e;a=a.getAdjacentCaret()){const c=a.origin.getWritable();l.set(c.getKey(),c)}for(const a of o){if(l.size>0){const c=i.getNodeAtCaret();if(c){if(l.delete(c.getKey()),l.delete(a.getKey()),!(c.is(a)||i.origin.is(a))){const d=a.getParent();d&&d.is(s)&&a.remove(),c.replace(a)}}else c===null&&re(263,Array.from(l).join(" "))}else i.insert(a);i=Zn(a,this.direction)}for(const a of l.values())a.remove();return this}},ZC=class FA extends O3{constructor(){super(...arguments);E(this,"type","child")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Xl(t,this.direction)}getParentCaret(t="root"){return Zn(D3(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=Yd(this.direction);return Zn(this.getNodeAtCaret(),t)||Xl(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof FA&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}};const cMe={root:An,shadowRoot:ha};function Yd(n){return aMe[n]}function D3(n,e="root"){return cMe[e](n)?null:n}let jm=class GC extends O3{constructor(){super(...arguments);E(this,"type","sibling")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Zn(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return X(this.origin)?Xl(this.origin,this.direction):null}getParentCaret(t="root"){return Zn(D3(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=Yd(this.direction);return Zn(this.getNodeAtCaret(),t)||Xl(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof GC&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof GC||t instanceof Zm)&&this.direction===t.direction&&this.origin.is(t.origin)}},Zm=class JC extends O3{constructor(t,r){super(t);E(this,"type","text");E(this,"offset");this.offset=r}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Dc(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Zn(D3(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Dc(this.origin,Yd(this.direction),this.offset)}isSamePointCaret(t){return t instanceof JC&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof jm||t instanceof JC)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Zn(this.origin,this.direction)}};function nc(n){return n instanceof Zm}function kd(n){return n instanceof jm}function As(n){return n instanceof ZC}const uMe={next:class extends Zm{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Zm{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dMe={next:class extends jm{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends jm{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},fMe={next:class extends ZC{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends ZC{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Zn(n,e){return n?new dMe[e](n):null}function Dc(n,e,t){return n?new uMe[e](n,Dl(n,t)):null}function Dl(n,e,t="error"){const r=n.getTextContentSize();let o=e==="next"?r:e==="previous"?0:e;return(o<0||o>r)&&(t!=="clamp"&&y$(284,String(e),String(r),n.getKey()),o=o<0?0:r),o}function eT(n,e){return new pMe(n,e)}function Xl(n,e){return X(n)?new fMe[e](n):null}function hMe(n){return n&&n.getChildCaret()||n}function L3(n){return n&&hMe(n.getAdjacentCaret())}let gMe=class PA{constructor(e,t,r){E(this,"type","node-caret-range");E(this,"direction");E(this,"anchor");E(this,"focus");this.anchor=e,this.focus=t,this.direction=r}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new PA(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=o=>{const i=this[o].getLatest();return nc(i)?function(s,l){const{direction:a,origin:c}=s,d=Dl(c,l==="focus"?Yd(a):a);return eT(s,d-s.offset)}(i,o):null},t=e("anchor"),r=e("focus");if(t&&r){const{caret:o}=t,{caret:i}=r;if(o.isSameNodeCaret(i))return[eT(o,i.offset-o.offset),null]}return[t,r]}iterNodeCarets(e="root"){const t=nc(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=nc(r),i=s=>s.isSameNodeCaret(r)?null:L3(s)||s.getParentCaret(e);return BA({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:t.isSameNodeCaret(r)?null:i(t),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}},pMe=class{constructor(e,t){E(this,"type","slice");E(this,"caret");E(this,"distance");this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[r,o]=this.getSliceIndices(),i=e.getTextContent();return Dc(e.setTextContent(i.slice(0,r)+i.slice(o)),t,r)}};function IA(n){return Lc(n,Zn(Di(),n.direction))}function mMe(n){return Lc(n,n)}function Lc(n,e){return n.direction!==e.direction&&re(265),new gMe(n,e,n.direction)}function BA(n){const{initial:e,hasNext:t,step:r,map:o}=n;let i=e;return{[Symbol.iterator](){return this},next(){if(!t(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function RA(n,e){const t=w1(n.origin,e.origin);switch(t===null&&re(275,n.origin.getKey(),e.origin.getKey()),t.type){case"same":{const r=n.type==="text",o=e.type==="text";return r&&o?function(i,s){return Math.sign(i-s)}(n.offset,e.offset):n.type===e.type?0:r?-1:o?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return zA(t)}}function zA(n){const{a:e,b:t}=n,r=e.__key,o=t.__key;let i=e,s=t;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function Vp(n,e){return e.is(n)}function tT(n){return X(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function w1(n,e){if(n.is(e))return{commonAncestor:n,type:"same"};const t=new Map;for(let[r,o]=tT(n);r;o=r,r=r.getParent())t.set(r,o);for(let[r,o]=tT(e);r;o=r,r=r.getParent()){const i=t.get(r);if(i!==void 0)return i===null?(Vp(n,r)||re(276),{commonAncestor:r,type:"ancestor"}):o===null?(Vp(e,r)||re(277),{commonAncestor:r,type:"descendant"}):((X(i)||Vp(n,i))&&(X(o)||Vp(e,o))&&r.is(i.getParent())&&r.is(o.getParent())||re(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Fc(n,e){const{type:t,key:r,offset:o}=n,i=XAe(n.key);return t==="text"?(Se(i)||re(266,i.getType(),r),Dc(i,e,o)):(X(i)||re(267,i.getType(),r),CMe(i,n.offset,e))}function eg(n,e){const{origin:t,direction:r}=e,o=r==="next";nc(e)?n.set(t.getKey(),e.offset,"text"):kd(e)?Se(t)?n.set(t.getKey(),Dl(t,r),"text"):n.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent()+(o?1:0),"element"):(As(e)&&X(t)||re(268),n.set(t.getKey(),o?0:t.getChildrenSize(),"element"))}function _Me(n){const e=lt(),t=$e(e)?e:IAe();return T1(t,n),uo(t),t}function T1(n,e){eg(n.anchor,e.anchor),eg(n.focus,e.focus)}function nT(n){const{anchor:e,focus:t}=n,r=Fc(e,"next"),o=Fc(t,"next"),i=RA(r,o)<=0?"next":"previous";return Lc(xd(r,i),xd(o,i))}function F3(n){const{direction:e,origin:t}=n,r=Zn(t,Yd(e)).getNodeAtCaret();return r?Zn(r,e):Xl(t.getParentOrThrow(),e)}function rT(n,e="root"){const t=[n];for(let r=As(n)?n.getParentCaret(e):n.getSiblingCaret();r!==null;r=r.getParentCaret(e))t.push(F3(r));return t}function Bv(n){return!!n&&n.origin.isAttached()}function yMe(n,e="removeEmptySlices"){if(n.isCollapsed())return n;const t="root",r="next";let o=e;const i=VA(n,r),s=rT(i.anchor,t),l=rT(i.focus.getFlipped(),t),a=new Set,c=[];for(const p of i.iterNodeCarets(t))if(As(p))a.add(p.origin.getKey());else if(kd(p)){const{origin:m}=p;X(m)&&!a.has(m.getKey())||c.push(m)}for(const p of c)p.remove();for(const p of i.getTextSlices()){if(!p)continue;const{origin:m}=p.caret,_=m.getTextContentSize(),C=F3(Zn(m,r)),y=m.getMode();if(Math.abs(p.distance)===_&&o==="removeEmptySlices"||y==="token"&&p.distance!==0)C.remove();else if(p.distance!==0){o="removeEmptySlices";let v=p.removeTextSlice();const k=p.caret.origin;if(y==="segmented"){const x=v.origin,b=Gt(x.getTextContent()).setStyle(x.getStyle()).setFormat(x.getFormat());C.replaceOrInsert(b),v=Dc(b,r,v.offset)}k.is(s[0].origin)&&(s[0]=v),k.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,h;for(const p of s)if(Bv(p)){d=Ci(p);break}for(const p of l)if(Bv(p)){h=Ci(p);break}const f=function(p,m,_){if(!p||!m)return null;const C=p.getParentAtCaret(),y=m.getParentAtCaret();if(!C||!y)return null;const v=C.getParents().reverse();v.push(C);const k=y.getParents().reverse();k.push(y);const x=Math.min(v.length,k.length);let b;for(b=0;b<x&&v[b]===k[b];b++);const T=(N,$)=>{let O;for(let M=b;M<N.length;M++){const A=N[M];if(ha(A))return;!O&&$(A)&&(O=A)}return O},w=T(v,_l),S=w&&T(k,N=>_.has(N.getKey())&&_l(N));return w&&S?[w,S]:null}(d,h,a);if(f){const[p,m]=f;Xl(p,"previous").splice(0,m.getChildren()),m.remove()}const g=[d,h,...s,...l].find(Bv);if(g)return mMe(xd(Ci(g),n.direction));re(269,JSON.stringify(s.map(p=>p.origin.__key)))}function Ci(n){const e=function(o){let i=o;for(;As(i);){const s=L3(i);if(!As(s))break;i=s}return i}(n.getLatest()),{direction:t}=e;if(Se(e.origin))return nc(e)?e:Dc(e.origin,t,t);const r=e.getAdjacentCaret();return kd(r)&&Se(r.origin)?Dc(r.origin,t,Yd(t)):e}function vMe(n){return nc(n)&&n.offset!==Dl(n.origin,n.direction)}function xd(n,e){return n.direction===e?n:n.getFlipped()}function VA(n,e){return n.direction===e?n:Lc(xd(n.focus,e),xd(n.anchor,e))}function CMe(n,e,t){let r=Xl(n,"next");for(let o=0;o<e;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return xd(r,t)}function Hf(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);throw t.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function bMe(n){let e=1,t=n.getParent();for(;t!=null;){if(ur(t)){const r=t.getParent();if(gt(r)){e++,t=r.getParent();continue}Hf(40)}return e}return e}function gi(n){return ur(n)&&gt(n.getFirstChild())}function oT(n){return so().append(n)}function WA(n,e){n.splice(n.getChildrenSize(),0,e)}function P3(n,e){const t=n.getLastChild(),r=e.getFirstChild();t&&r&&gi(t)&&gi(r)&&(P3(t.getFirstChild(),r.getFirstChild()),r.remove());const o=e.getChildren();o.length>0&&n.append(...o),e.remove()}function kMe(n){const e=n.getListType()!=="check";let t=n.getStart();for(const r of n.getChildren())ur(r)&&(r.getValue()!==t&&r.setValue(t),e&&r.getLatest().__checked!=null&&r.setChecked(void 0),gt(r.getFirstChild())||t++)}function xMe(n){const e=new Set;if(gi(n)||e.has(n.getKey()))return;const t=n.getParent(),r=n.getNextSibling(),o=n.getPreviousSibling();if(gi(r)&&gi(o)){const i=o.getFirstChild();if(gt(i)){i.append(n);const s=r.getFirstChild();gt(s)&&(WA(i,s.getChildren()),r.remove(),e.add(r.getKey()))}}else if(gi(r)){const i=r.getFirstChild();if(gt(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(n)}}else if(gi(o)){const i=o.getFirstChild();gt(i)&&i.append(n)}else if(gt(t)){const i=so().setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle()),s=Cr(t.getListType()).setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle());i.append(s),s.append(n),o?o.insertAfter(i):r?r.insertBefore(i):t.append(i)}}function SMe(n){if(gi(n))return;const e=n.getParent(),t=e?e.getParent():void 0;if(gt(t?t.getParent():void 0)&&ur(t)&&gt(e)){const r=e?e.getFirstChild():void 0,o=e?e.getLastChild():void 0;if(n.is(r))t.insertBefore(n),e.isEmpty()&&t.remove();else if(n.is(o))t.insertAfter(n),e.isEmpty()&&t.remove();else{const i=e.getListType(),s=so(),l=Cr(i);s.append(l),n.getPreviousSiblings().forEach(d=>l.append(d));const a=so(),c=Cr(i);a.append(c),WA(c,n.getNextSiblings()),t.insertBefore(s),t.insertAfter(a),t.replace(n)}}}function Gm(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}let q0=class extends Yl{constructor(t=1,r=void 0,o){super(o);E(this,"__value");E(this,"__checked");this.__value=t===void 0?1:t,this.__checked=r}$config(){return this.config("listitem",{$transform:t=>{if(t.__checked==null)return;const r=t.getParent();gt(r)&&r.getListType()!=="check"&&t.getChecked()!=null&&t.setChecked(void 0)},extends:Yl,importDOM:{li:()=>({conversion:wMe,priority:0})}})}afterCloneFrom(t){super.afterCloneFrom(t),this.__value=t.__value,this.__checked=t.__checked}createDOM(t){const r=document.createElement("li");return this.updateListItemDOM(null,r,t),r}updateListItemDOM(t,r,o){(function(l,a,c){const d=a.getParent();!gt(d)||d.getListType()!=="check"||gt(a.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),c&&a.__checked===c.__checked||l.setAttribute("aria-checked",a.getChecked()?"true":"false"))})(r,this,t),r.value=this.__value,function(l,a,c){const d=[],h=[],f=a.list,g=f?f.listitem:void 0;let p;if(f&&f.nested&&(p=f.nested.listitem),g!==void 0&&d.push(...Gm(g)),f){const m=c.getParent(),_=gt(m)&&m.getListType()==="check",C=c.getChecked();_&&!C||h.push(f.listitemUnchecked),_&&C||h.push(f.listitemChecked),_&&d.push(C?f.listitemChecked:f.listitemUnchecked)}if(p!==void 0){const m=Gm(p);c.getChildren().some(_=>gt(_))?d.push(...m):h.push(...m)}h.length>0&&_3(l,...h),d.length>0&&Vs(l,...d)}(r,o.theme,this);const i=t?t.__style:"",s=this.__style;i!==s&&(s===""?r.removeAttribute("style"):r.style.cssText=s),function(l,a,c){const d=rw(a.__textStyle);for(const h in d)l.style.setProperty(`--listitem-marker-${h}`,d[h]);if(c)for(const h in rw(c.__textStyle))h in d||l.style.removeProperty(`--listitem-marker-${h}`)}(r,this,t)}updateDOM(t,r,o){const i=r;return this.updateListItemDOM(t,i,o),!1}updateFromJSON(t){return super.updateFromJSON(t).setValue(t.value).setChecked(t.checked)}exportDOM(t){const r=this.createDOM(t._config),o=this.getFormatType();o&&(r.style.textAlign=o);const i=this.getDirection();return i&&(r.dir=i),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...t){for(let r=0;r<t.length;r++){const o=t[r];if(X(o)&&this.canMergeWith(o)){const i=o.getChildren();this.append(...i),o.remove()}else super.append(o)}return this}replace(t,r){if(ur(t))return super.replace(t);this.setIndent(0);const o=this.getParentOrThrow();if(!gt(o))return t;if(o.__first===this.getKey())o.insertBefore(t);else if(o.__last===this.getKey())o.insertAfter(t);else{const i=Cr(o.getListType());let s=this.getNextSibling();for(;s;){const l=s;s=s.getNextSibling(),i.append(l)}o.insertAfter(t),t.insertAfter(i)}return r&&(X(t)||Hf(139),this.getChildren().forEach(i=>{t.append(i)})),this.remove(),o.getChildrenSize()===0&&o.remove(),t}insertAfter(t,r=!0){const o=this.getParentOrThrow();if(gt(o)||Hf(39),ur(t))return super.insertAfter(t,r);const i=this.getNextSiblings();if(o.insertAfter(t,r),i.length!==0){const s=Cr(o.getListType());i.forEach(l=>s.append(l)),t.insertAfter(s,r)}return t}remove(t){const r=this.getPreviousSibling(),o=this.getNextSibling();super.remove(t),r&&o&&gi(r)&&gi(o)&&(P3(r.getFirstChild(),o.getFirstChild()),o.remove())}insertNewAfter(t,r=!0){const o=so().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(o,r),o}collapseAtStart(t){const r=$s();this.getChildren().forEach(l=>r.append(l));const o=this.getParentOrThrow(),i=o.getParentOrThrow(),s=ur(i);if(o.getChildrenSize()===1)if(s)o.remove(),i.select();else{o.insertBefore(r),o.remove();const l=t.anchor,a=t.focus,c=r.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(c,l.offset,"element"),a.type==="element"&&a.getNode().is(this)&&a.set(c,a.offset,"element")}else o.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(t){const r=this.getWritable();return r.__value=t,r}getChecked(){const t=this.getLatest();let r;const o=this.getParent();return gt(o)&&(r=o.getListType()),r==="check"?!!t.__checked:void 0}setChecked(t){const r=this.getWritable();return r.__checked=t,r}toggleChecked(){const t=this.getWritable();return t.setChecked(!t.__checked)}getIndent(){const t=this.getParent();if(t===null||!this.isAttached())return this.getLatest().__indent;let r=t.getParentOrThrow(),o=0;for(;ur(r);)r=r.getParentOrThrow().getParentOrThrow(),o++;return o}setIndent(t){typeof t!="number"&&Hf(117),(t=Math.floor(t))>=0||Hf(199);let r=this.getIndent();for(;r!==t;)r<t?(xMe(this),r++):(SMe(this),r--);return this}canInsertAfter(t){return ur(t)}canReplaceWith(t){return ur(t)}canMergeWith(t){return ur(t)||kA(t)}extractWithChild(t,r){if(!$e(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Cr("bullet")}canMergeWhenEmpty(){return!0}};function wMe(n){if(n.classList.contains("task-list-item")){for(const t of n.children)if(t.tagName==="INPUT")return iT(t)}if(n.classList.contains("joplin-checkbox")){for(const t of n.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&t.children[0].tagName==="INPUT")return iT(t.children[0])}const e=n.getAttribute("aria-checked");return{node:so(e==="true"||e!=="false"&&void 0)}}function iT(n){return n.getAttribute("type")!=="checkbox"?{node:null}:{node:so(n.hasAttribute("checked"))}}function so(n){return Jd(new q0(void 0,n))}function ur(n){return n instanceof q0}let j0=class extends Yl{constructor(t="number",r=1,o){super(o);E(this,"__tag");E(this,"__start");E(this,"__listType");const i=EMe[t]||t;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:t=>{(function(r){const o=r.getNextSibling();gt(o)&&r.getListType()===o.getListType()&&P3(r,o)})(t),kMe(t)},extends:Yl,importDOM:{ol:()=>({conversion:lT,priority:0}),ul:()=>({conversion:lT,priority:0})}})}afterCloneFrom(t){super.afterCloneFrom(t),this.__listType=t.__listType,this.__tag=t.__tag,this.__start=t.__start}getTag(){return this.getLatest().__tag}setListType(t){const r=this.getWritable();return r.__listType=t,r.__tag=t==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(t){const r=this.getWritable();return r.__start=t,r}createDOM(t,r){const o=this.__tag,i=document.createElement(o);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,sT(i,t.theme,this),i}updateDOM(t,r,o){return t.__tag!==this.__tag||t.__listType!==this.__listType||(sT(r,o.theme,this),!1)}updateFromJSON(t){return super.updateFromJSON(t).setListType(t.listType).setStart(t.start)}exportDOM(t){const r=this.createDOM(t._config,t);return Gd(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(t,r,o){let i=o;for(let s=0;s<o.length;s++){const l=o[s];ur(l)||(i===o&&(i=[...o]),i[s]=so().append(!X(l)||gt(l)||l.isInline()?l:Gt(l.getTextContent())))}return super.splice(t,r,i)}extractWithChild(t){return ur(t)}};function sT(n,e,t){const r=[],o=[],i=e.list;if(i!==void 0){const s=i[`${t.__tag}Depth`]||[],l=bMe(t)-1,a=l%s.length,c=s[a],d=i[t.__tag];let h;const f=i.nested,g=i.checklist;if(f!==void 0&&f.list&&(h=f.list),d!==void 0&&r.push(d),g!==void 0&&t.__listType==="check"&&r.push(g),c!==void 0){r.push(...Gm(c));for(let p=0;p<s.length;p++)p!==a&&o.push(t.__tag+p)}if(h!==void 0){const p=Gm(h);l>1?r.push(...p):o.push(...p)}}o.length>0&&_3(n,...o),r.length>0&&Vs(n,...r)}function TMe(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t];if(ur(r)){e.push(r);const o=r.getChildren();o.length>1&&o.forEach(i=>{gt(i)&&e.push(oT(i))})}else e.push(oT(r))}return e}function lT(n){const e=n.nodeName.toLowerCase();let t=null;return e==="ol"?t=Cr("number",n.start):e==="ul"&&(t=function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list")||r.getAttribute("data-is-checklist")==="1")return!0;for(const o of r.childNodes)if(Gd(o)&&o.hasAttribute("aria-checked"))return!0;return!1}(n)?Cr("check"):Cr("bullet")),{after:TMe,node:t}}const EMe={ol:"number",ul:"bullet"};function Cr(n="number",e=1){return Jd(new j0(n,e))}function gt(n){return n instanceof j0}function oe(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);throw t.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function KA(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);t.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Yo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,NMe=Yo&&"documentMode"in document?document.documentMode:null,No=Yo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Pc=Yo&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Jm=!(!Yo||!("InputEvent"in window)||NMe)&&"getTargetRanges"in new window.InputEvent("input"),tg=Yo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Sd=Yo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,$Me=Yo&&/Android/.test(navigator.userAgent),UA=Yo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),aT=Yo&&$Me&&UA,ng=Yo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&No&&!UA;function HA(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const AMe=0,MMe=1,OMe=2,qA=128,DMe=1,LMe=2,FMe=3,PMe=4,IMe=5,BMe=6,Z0=tg||Sd||ng?" ":"​",Ql=`
40
+
41
+ `,RMe=Pc?" ":Z0,sr={bold:1,capitalize:1024,code:16,highlight:qA,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},zMe={directionless:1,unmergeable:2},cT={center:2,end:6,justify:4,left:1,right:3,start:5},VMe={[LMe]:"center",[BMe]:"end",[PMe]:"justify",[DMe]:"left",[FMe]:"right",[IMe]:"start"},WMe={normal:0,segmented:2,token:1},KMe={[AMe]:"normal",[OMe]:"segmented",[MMe]:"token"},uT="$config";function jA(n,e,t,r,o,i){let s=n.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&(Y(s)&&jA(s,l,t,r,o,i),t.has(l)||i.delete(l),o.push(l)),s=s.getNextSibling()}}let YC=!1,I3=0;function UMe(n){I3=n.timeStamp}function Rv(n,e,t){const r=n.nodeName==="BR",o=e.__lexicalLineBreak;return o&&(n===o||r&&n.previousSibling===o)||r&&ey(n,t)!==void 0}function HMe(n,e,t){const r=Ks(go(t));let o=null,i=null;r!==null&&r.anchorNode===n&&(o=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&Z3(e,s,o,i,!1)}function qMe(n,e,t){if(Me(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return Ys(e)&&t.isAttached()}function jMe(n,e,t,r){for(let o=n;o&&!iDe(o);o=Jg(o)){const i=ey(o,e);if(i!==void 0){const s=nn(i,t);if(s)return yt(s)||!Yr(o)?void 0:[o,s]}else if(o===r)return[r,rO(t)]}}function ZA(n,e,t){YC=!0;const r=performance.now()-I3>100;try{Vr(n,()=>{const o=at()||function(f){return f.getEditorState().read(()=>{const g=at();return g!==null?g.clone():null})}(n),i=new Map,s=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let c=!1,d="";for(let f=0;f<e.length;f++){const g=e[f],p=g.type,m=g.target,_=jMe(m,n,l,s);if(!_)continue;const[C,y]=_;if(p==="characterData")r&&be(y)&&Ys(m)&&qMe(o,m,y)&&HMe(m,y,n);else if(p==="childList"){c=!0;const v=g.addedNodes;for(let b=0;b<v.length;b++){const T=v[b],w=tO(T),S=T.parentNode;if(S!=null&&T!==a&&w===null&&!Rv(T,S,n)){if(Pc){const N=(Yr(T)?T.innerText:null)||T.nodeValue;N&&(d+=N)}S.removeChild(T)}}const k=g.removedNodes,x=k.length;if(x>0){let b=0;for(let T=0;T<x;T++){const w=k[T];(Rv(w,m,n)||a===w)&&(m.appendChild(w),b++)}x!==b&&i.set(C,y)}}}if(i.size>0)for(const[f,g]of i)g.reconcileObservedMutation(f,n);const h=t.takeRecords();if(h.length>0){for(let f=0;f<h.length;f++){const g=h[f],p=g.addedNodes,m=g.target;for(let _=0;_<p.length;_++){const C=p[_],y=C.parentNode;y==null||C.nodeName!=="BR"||Rv(C,m,n)||y.removeChild(C)}}t.takeRecords()}o!==null&&(c&&ho(o),Pc&&sO(n)&&o.insertRawText(d))})}finally{YC=!1}}function GA(n){const e=n._observer;e!==null&&ZA(n,e.takeRecords(),e)}function JA(n){(function(e){I3===0&&go(e).addEventListener("textInput",UMe,!0)})(n),n._observer=new MutationObserver((e,t)=>{ZA(n,e,t)})}let ZMe=class{constructor(e,t){E(this,"key");E(this,"parse");E(this,"unparse");E(this,"isEqual");E(this,"defaultValue");this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||YMe).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0)}};function GMe(n,e){return new ZMe(n,e)}function YA(n,e,t="latest"){const r=(t==="latest"?n.getLatest():n).__state;return r?r.getValue(e):e.defaultValue}function zv(n,e,t){let r;if(mn(),typeof t=="function"){const i=n.getLatest(),s=YA(i,e);if(r=t(s),e.isEqual(s,r))return i}else r=t;const o=n.getWritable();return QA(o).updateFromKnown(e,r),o}let JMe=class XA{constructor(e,t,r=void 0,o=new Map,i=void 0){E(this,"node");E(this,"knownState");E(this,"unknownState");E(this,"sharedNodeState");E(this,"size");this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,l=i!==void 0?i:function(a,c,d){let h=d.size;if(c)for(const f in c){const g=a.get(f);g&&d.has(g)||h++}return h}(s,r,o);this.size=l}getValue(e){const t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const o=this.unknownState[e.key];o!==void 0&&(r=e.parse(o)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return dT(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:r}=this,o=new Map(this.knownState);return new XA(e,t,function(i,s,l){let a;if(l)for(const[c,d]of Object.entries(l)){const h=i.get(c);h?s.has(h)||s.set(h,h.parse(d)):(a=a||{},a[c]=d)}return a}(t.sharedConfigMap,o,r),o,this.size)}updateFromKnown(e,t){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:o,unknownState:i}=this;o.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=dT(i)),this.size++),o.set(e,t)}updateFromUnknown(e,t){const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const r of t.keys())t.set(r,r.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[r,o]of Object.entries(e))this.updateFromUnknown(r,o)}};function QA(n){const e=n.getWritable(),t=e.__state?e.__state.getWritable(e):new JMe(e,eM(e));return e.__state=t,t}function eM(n){return n.__state?n.__state.sharedNodeState:YM(tDe(),n.getType()).sharedNodeState}function dT(n){if(n)for(const e in n)return n}function YMe(n){return n}function fT(n,e,t){for(const[r,o]of e.knownState){if(n.has(r.key))continue;n.add(r.key);const i=t?t.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function hT(n,e,t){const{unknownState:r}=e,o=t?t.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!n.has(i)&&(n.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function gT(n,e){const t=n.__state;return t&&t.node===n?t.getWritable(e):t}function pT(n,e){const t=n.__mode,r=n.__format,o=n.__style,i=e.__mode,s=e.__format,l=e.__style,a=n.__state,c=e.__state;return(t===null||t===i)&&(r===null||r===s)&&(o===null||o===l)&&(n.__state===null||a===c||function(d,h){if(d===h)return!0;if(d&&h&&d.size!==h.size)return!1;const f=new Set;return!(d&&fT(f,d,h)||h&&fT(f,h,d)||d&&hT(f,d,h)||h&&hT(f,h,d))}(a,c))}function mT(n,e){const t=n.mergeWithSibling(e),r=At()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function _T(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&be(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(pT(e,r)){r=mT(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&be(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(pT(r,t)){r=mT(r,t);break}break}t.remove()}}else r.remove()}function XMe(n){return yT(n.anchor),yT(n.focus),n}function yT(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,o;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),o=!0):(r=e.getChildAtIndex(t),o=!1),be(r)){n.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!Y(r))break;n.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Ic,Gn,rg,G0,XC,QC,Bc,zo,eb,og,Wt="",si=null,li="",gs="",$u=!1,Ym=!1;function Xm(n,e){const t=Bc.get(n);if(e!==null){const r=ob(n);r.parentNode===e&&e.removeChild(r)}if(zo.has(n)||Gn._keyToDOMMap.delete(n),Y(t)){const r=e_(t,Bc);tb(r,0,r.length-1,null)}t!==void 0&&G3(og,rg,G0,t,"destroyed")}function tb(n,e,t,r){let o=e;for(;o<=t;++o){const i=n[o];i!==void 0&&Xm(i,r)}}function Ma(n,e){n.setProperty("text-align",e)}const QMe="40px";function tM(n,e){const t=Ic.theme.indent;if(typeof t=="string"){const o=n.classList.contains(t);e>0&&!o?n.classList.add(t):e<1&&o&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||QMe;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function nM(n,e){const t=n.style;e===0?Ma(t,""):e===1?Ma(t,"left"):e===2?Ma(t,"center"):e===3?Ma(t,"right"):e===4?Ma(t,"justify"):e===5?Ma(t,"start"):e===6&&Ma(t,"end")}function nb(n,e){const t=function(r){const o=r.__dir;if(o!==null)return o;if(Mn(r))return null;const i=r.getParentOrThrow();return Mn(i)&&i.__dir===null?"auto":null}(e);t!==null?n.dir=t:n.removeAttribute("dir")}function Qm(n,e){const t=zo.get(n);t===void 0&&oe(60);const r=t.createDOM(Ic,Gn);if(function(o,i,s){const l=s._keyToDOMMap;(function(a,c,d){const h=`__lexicalKey_${c._key}`;a[h]=d})(i,s,o),l.set(o,i)}(n,r,Gn),be(t)?r.setAttribute("data-lexical-text","true"):yt(t)&&r.setAttribute("data-lexical-decorator","true"),Y(t)){const o=t.__indent,i=t.__size;if(nb(r,t),o!==0&&tM(r,o),i!==0){const l=i-1;rb(e_(t,zo),t,0,l,t.getDOMSlot(r))}const s=t.__format;s!==0&&nM(r,s),t.isInline()||rM(null,t,r),ty(t)&&(Wt+=Ql,gs+=Ql)}else{const o=t.getTextContent();if(yt(t)){const i=t.decorate(Gn,Ic);i!==null&&oM(n,i),r.contentEditable="false"}Wt+=o,gs+=o}return e!==null&&e.insertChild(r),G3(og,rg,G0,t,"created"),r}function rb(n,e,t,r,o){const i=Wt;Wt="";let s=t;for(;s<=r;++s){Qm(n[s],o);const l=zo.get(n[s]);l!==null&&be(l)&&(si===null&&(si=l.getFormat()),li===""&&(li=l.getStyle()))}ty(e)&&(Wt+=Ql),o.element.__lexicalTextContent=Wt,Wt=i+Wt}function vT(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return Xu(r)?"line-break":yt(r)&&r.isInline()?"decorator":null}return"empty"}return null}function rM(n,e,t){const r=vT(n,Bc),o=vT(e,zo);r!==o&&e.getDOMSlot(t).setManagedLineBreak(o)}function eOe(n,e,t){var r;si=null,li="",function(o,i,s){const l=Wt,a=o.__size,c=i.__size;Wt="";const d=s.element;if(a===1&&c===1){const h=o.__first,f=i.__first;if(h===f)qf(h,d);else{const p=ob(h),m=Qm(f,null);try{d.replaceChild(m,p)}catch(_){if(typeof _=="object"&&_!=null){const C=`${_.toString()} Parent: ${d.tagName}, new child: {tag: ${m.tagName} key: ${f}}, old child: {tag: ${p.tagName}, key: ${h}}.`;throw new Error(C)}throw _}Xm(h,null)}const g=zo.get(f);be(g)&&(si===null&&(si=g.getFormat()),li===""&&(li=g.getStyle()))}else{const h=e_(o,Bc),f=e_(i,zo);if(h.length!==a&&oe(227),f.length!==c&&oe(228),a===0)c!==0&&rb(f,i,0,c-1,s);else if(c===0){if(a!==0){const g=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;tb(h,0,a-1,g?null:d),g&&(d.textContent="")}}else(function(g,p,m,_,C,y){const v=_-1,k=C-1;let x,b,T=y.getFirstChild(),w=0,S=0;for(;w<=v&&S<=k;){const O=p[w],M=m[S];if(O===M)T=Vv(qf(M,y.element)),w++,S++;else{x===void 0&&(x=new Set(p)),b===void 0&&(b=new Set(m));const F=b.has(O),P=x.has(M);if(F)if(P){const z=Rc(Gn,M);z===T?T=Vv(qf(M,y.element)):(y.withBefore(T).insertChild(z),qf(M,y.element)),w++,S++}else Qm(M,y.withBefore(T)),S++;else T=Vv(ob(O)),Xm(O,y.element),w++}const A=zo.get(M);A!==null&&be(A)&&(si===null&&(si=A.getFormat()),li===""&&(li=A.getStyle()))}const N=w>v,$=S>k;if(N&&!$){const O=m[k+1],M=O===void 0?null:Gn.getElementByKey(O);rb(m,g,S,k,y.withBefore(M))}else $&&!N&&tb(p,w,v,y.element)})(i,h,f,a,c,s)}ty(i)&&(Wt+=Ql),d.__lexicalTextContent=Wt,Wt=l+Wt}(n,e,e.getDOMSlot(t)),r=e,si==null||si===r.__textFormat||Ym||r.setTextFormat(si),function(o){li===""||li===o.__textStyle||Ym||o.setTextStyle(li)}(e)}function e_(n,e){const t=[];let r=n.__first;for(;r!==null;){const o=e.get(r);o===void 0&&oe(101),t.push(r),r=o.__next}return t}function qf(n,e){const t=Bc.get(n);let r=zo.get(n);t!==void 0&&r!==void 0||oe(61);const o=$u||QC.has(n)||XC.has(n),i=Rc(Gn,n);if(t===r&&!o){if(Y(t)){const s=i.__lexicalTextContent;s!==void 0&&(Wt+=s,gs+=s)}else{const s=t.getTextContent();gs+=s,Wt+=s}return i}if(t!==r&&o&&G3(og,rg,G0,r,"updated"),r.updateDOM(t,i,Ic)){const s=Qm(n,null);return e===null&&oe(62),e.replaceChild(s,i),Xm(n,null),s}if(Y(t)&&Y(r)){const s=r.__indent;($u||s!==t.__indent)&&tM(i,s);const l=r.__format;if(($u||l!==t.__format)&&nM(i,l),o&&(eOe(t,r,i),Mn(r)||r.isInline()||rM(t,r,i)),ty(r)&&(Wt+=Ql,gs+=Ql),($u||r.__dir!==t.__dir)&&(nb(i,r),Mn(r)&&!$u))for(const a of r.getChildren())Y(a)&&nb(Rc(Gn,a.getKey()),a)}else{const s=r.getTextContent();if(yt(r)){const l=r.decorate(Gn,Ic);l!==null&&oM(n,l)}Wt+=s,gs+=s}if(!Ym&&Mn(r)&&r.__cachedText!==gs){const s=r.getWritable();s.__cachedText=gs,r=s}return i}function oM(n,e){let t=Gn._pendingDecorators;const r=Gn._decorators;if(t===null){if(r[n]===e)return;t=nO(Gn)}t[n]=e}function Vv(n){let e=n.nextSibling;return e!==null&&e===Gn._blockCursorElement&&(e=e.nextSibling),e}function tOe(n,e,t,r,o,i){Wt="",gs="",$u=r===2,Gn=t,Ic=t._config,rg=t._nodes,G0=Gn._listeners.mutation,XC=o,QC=i,Bc=n._nodeMap,zo=e._nodeMap,Ym=e._readOnly,eb=new Map(t._keyToDOMMap);const s=new Map;return og=s,qf("root",null),Gn=void 0,rg=void 0,XC=void 0,QC=void 0,Bc=void 0,zo=void 0,Ic=void 0,eb=void 0,og=void 0,s}function ob(n){const e=eb.get(n);return e===void 0&&oe(75,n),e}function Ke(n){return{type:n}}const iM=Ke("SELECTION_CHANGE_COMMAND"),nOe=Ke("CLICK_COMMAND"),t_=Ke("DELETE_CHARACTER_COMMAND"),E1=Ke("INSERT_LINE_BREAK_COMMAND"),CT=Ke("INSERT_PARAGRAPH_COMMAND"),ch=Ke("CONTROLLED_TEXT_INSERTION_COMMAND"),sM=Ke("PASTE_COMMAND"),bT=Ke("REMOVE_TEXT_COMMAND"),n_=Ke("DELETE_WORD_COMMAND"),r_=Ke("DELETE_LINE_COMMAND"),Za=Ke("FORMAT_TEXT_COMMAND"),lM=Ke("UNDO_COMMAND"),aM=Ke("REDO_COMMAND"),rOe=Ke("KEYDOWN_COMMAND"),oOe=Ke("KEY_ARROW_RIGHT_COMMAND"),iOe=Ke("MOVE_TO_END"),sOe=Ke("KEY_ARROW_LEFT_COMMAND"),lOe=Ke("MOVE_TO_START"),aOe=Ke("KEY_ARROW_UP_COMMAND"),cOe=Ke("KEY_ARROW_DOWN_COMMAND"),ib=Ke("KEY_ENTER_COMMAND"),uOe=Ke("KEY_SPACE_COMMAND"),dOe=Ke("KEY_BACKSPACE_COMMAND"),fOe=Ke("KEY_ESCAPE_COMMAND"),hOe=Ke("KEY_DELETE_COMMAND"),gOe=Ke("KEY_TAB_COMMAND"),pOe=Ke("DROP_COMMAND"),mOe=Ke("DRAGSTART_COMMAND"),_Oe=Ke("DRAGOVER_COMMAND"),yOe=Ke("DRAGEND_COMMAND"),cM=Ke("COPY_COMMAND"),uM=Ke("CUT_COMMAND"),kT=Ke("SELECT_ALL_COMMAND"),vOe=Ke("FOCUS_COMMAND"),COe=Ke("BLUR_COMMAND"),bOe=Ke("KEY_MODIFIER_COMMAND"),Qi=Object.freeze({}),sb=[["keydown",function(n,e){if(uh=n.timeStamp,dM=n.key,!e.isComposing()&&!me(e,rOe,n)&&n.key!=null){if(Wv&&XT(n))return Vr(e,()=>{Wp(e,Kv)}),Wv=!1,void(Kv="");if(function(t){return nt(t,"ArrowRight",{shiftKey:"any"})}(n))me(e,oOe,n);else if(function(t){return nt(t,"ArrowRight",as)}(n))me(e,iOe,n);else if(function(t){return nt(t,"ArrowLeft",{shiftKey:"any"})}(n))me(e,sOe,n);else if(function(t){return nt(t,"ArrowLeft",as)}(n))me(e,lOe,n);else if(function(t){return nt(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(n))me(e,aOe,n);else if(function(t){return nt(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(n))me(e,cOe,n);else if(function(t){return nt(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(n))dh=!0,me(e,ib,n);else if(function(t){return t.key===" "}(n))me(e,uOe,n);else if(function(t){return No&&nt(t,"o",{ctrlKey:!0})}(n))n.preventDefault(),dh=!0,me(e,E1,!0);else if(function(t){return nt(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(n))dh=!1,me(e,ib,n);else if(function(t){return nt(t,"Backspace",{shiftKey:"any"})||No&&nt(t,"h",{ctrlKey:!0})}(n))XT(n)?me(e,dOe,n):(n.preventDefault(),me(e,t_,!0));else if(function(t){return t.key==="Escape"}(n))me(e,fOe,n);else if(function(t){return nt(t,"Delete",{})||No&&nt(t,"d",{ctrlKey:!0})}(n))(function(t){return t.key==="Delete"})(n)?me(e,hOe,n):(n.preventDefault(),me(e,t_,!1));else if(function(t){return nt(t,"Backspace",YT)}(n))n.preventDefault(),me(e,n_,!0);else if(function(t){return nt(t,"Delete",YT)}(n))n.preventDefault(),me(e,n_,!1);else if(function(t){return No&&nt(t,"Backspace",{metaKey:!0})}(n))n.preventDefault(),me(e,r_,!0);else if(function(t){return No&&(nt(t,"Delete",{metaKey:!0})||nt(t,"k",{ctrlKey:!0}))}(n))n.preventDefault(),me(e,r_,!1);else if(function(t){return nt(t,"b",as)}(n))n.preventDefault(),me(e,Za,"bold");else if(function(t){return nt(t,"u",as)}(n))n.preventDefault(),me(e,Za,"underline");else if(function(t){return nt(t,"i",as)}(n))n.preventDefault(),me(e,Za,"italic");else if(function(t){return nt(t,"Tab",{shiftKey:"any"})}(n))me(e,gOe,n);else if(function(t){return nt(t,"z",as)}(n))n.preventDefault(),me(e,lM,void 0);else if(function(t){return No?nt(t,"z",{metaKey:!0,shiftKey:!0}):nt(t,"y",{ctrlKey:!0})||nt(t,"z",{ctrlKey:!0,shiftKey:!0})}(n))n.preventDefault(),me(e,aM,void 0);else{const t=e._editorState._selection;t===null||Me(t)?QT(n)&&(n.preventDefault(),me(e,kT,n)):function(r){return nt(r,"c",as)}(n)?(n.preventDefault(),me(e,cM,n)):function(r){return nt(r,"x",as)}(n)?(n.preventDefault(),me(e,uM,n)):QT(n)&&(n.preventDefault(),me(e,kT,n))}(function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey})(n)&&me(e,bOe,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;Yg(t)&&r!=="touch"&&r!=="pen"&&n.button===0&&Vr(e,()=>{ZT(t)||(cb=!0)})}],["compositionstart",function(n,e){Vr(e,()=>{const t=at();if(Me(t)&&!e.isComposing()){const r=t.anchor,o=t.anchor.getNode();_n(r.key),(n.timeStamp<uh+30||r.type==="element"||!t.isCollapsed()||o.getFormat()!==t.format||be(o)&&o.getStyle()!==t.style)&&me(e,ch,RMe)}})}],["compositionend",function(n,e){Pc?Df=!0:Sd||!tg&&!ng?Vr(e,()=>{Wp(e,n.data)}):(Wv=!0,Kv=n.data)}],["input",function(n,e){n.stopPropagation(),Vr(e,()=>{if(Yr(n.target)&&ZT(n.target))return;const t=at(),r=n.data,o=mM(n);if(r!=null&&Me(t)&&gM(t,o,r,n.timeStamp,!1)){Df&&(Wp(e,r),Df=!1);const i=t.anchor.getNode(),s=Ks(go(e));if(s===null)return;const l=t.isBackward(),a=l?t.anchor.offset:t.focus.offset,c=l?t.focus.offset:t.anchor.offset;Jm&&!t.isCollapsed()&&be(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+c)===iO(s.anchorNode)||me(e,ch,r);const d=r.length;Pc&&d>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=d),tg||Sd||ng||!e.isComposing()||(uh=0,_n(null))}else j3(!1,e,r!==null?r:void 0),Df&&(Wp(e,r||void 0),Df=!1);(function(){mn();const i=At();GA(i)})()},{event:n}),Au=null}],["click",function(n,e){Vr(e,()=>{const t=at(),r=Ks(go(e)),o=Zg();if(r){if(Me(t)){const i=t.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&t.isCollapsed()&&!Mn(s)&&qo().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&t.is(o))r.removeAllRanges(),t.dirty=!0;else if(n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()){const l=M1(s,a=>Y(a)&&!a.isInline());Y(l)&&l.select(0)}}else if(n.pointerType==="touch"||n.pointerType==="pen"){const i=r.anchorNode;(Yr(i)||Ys(i))&&ho(W3(o,r,e,n))}}me(e,nOe,n)})}],["cut",Qi],["copy",Qi],["dragstart",Qi],["dragover",Qi],["dragend",Qi],["paste",Qi],["focus",Qi],["blur",Qi],["drop",Qi]];Jm&&sb.push(["beforeinput",(n,e)=>function(t,r){const o=t.inputType,i=mM(t);o==="deleteCompositionText"||Pc&&sO(r)||o!=="insertCompositionText"&&Vr(r,()=>{const s=at();if(o==="deleteContentBackward"){if(s===null){const g=Zg();if(!Me(g))return;ho(g.clone())}if(Me(s)){const g=s.anchor.key===s.focus.key;if(l=t.timeStamp,dM==="MediaLast"&&l<uh+30&&r.isComposing()&&g){if(_n(null),uh=0,setTimeout(()=>{Vr(r,()=>{_n(null)})},30),Me(s)){const p=s.anchor.getNode();p.markDirty(),be(p)||oe(142),pM(s,p)}}else{_n(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),_=p.canInsertTextAfter(),C=s.anchor.offset===0&&s.focus.offset===m.length;let y=aT&&g&&!C&&_;if(y&&s.isCollapsed()&&(y=!yt(jOe(s.anchor,!0))),!y){me(r,t_,!0);const v=at();aT&&Me(v)&&v.isCollapsed()&&(Va=v,setTimeout(()=>Va=null))}}return}}var l;if(!Me(s))return;const a=t.data;Au!==null&&j3(!1,r,Au),s.dirty&&Au===null||!s.isCollapsed()||Mn(s.anchor.getNode())||i===null||s.applyDOMRange(i),Au=null;const c=s.anchor,d=s.focus,h=c.getNode(),f=d.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(t.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":me(r,ch,t);break;case"insertFromComposition":_n(null),me(r,ch,t);break;case"insertLineBreak":_n(null),me(r,E1,!1);break;case"insertParagraph":_n(null),dh&&!Sd?(dh=!1,me(r,E1,!1)):me(r,CT,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":me(r,sM,t);break;case"deleteByComposition":(function(g,p){return g!==p||Y(g)||Y(p)||!rc(g)||!rc(p)})(h,f)&&me(r,bT,t);break;case"deleteByDrag":case"deleteByCut":me(r,bT,t);break;case"deleteContent":me(r,t_,!1);break;case"deleteWordBackward":me(r,n_,!0);break;case"deleteWordForward":me(r,n_,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":me(r,r_,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":me(r,r_,!1);break;case"formatStrikeThrough":me(r,Za,"strikethrough");break;case"formatBold":me(r,Za,"bold");break;case"formatItalic":me(r,Za,"italic");break;case"formatUnderline":me(r,Za,"underline");break;case"historyUndo":me(r,lM,void 0);break;case"historyRedo":me(r,aM,void 0)}else{if(a===`
42
+ `)t.preventDefault(),me(r,E1,!1);else if(a===Ql)t.preventDefault(),me(r,CT,void 0);else if(a==null&&t.dataTransfer){const g=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(g)}else a!=null&&gM(s,i,a,t.timeStamp,!0)?(t.preventDefault(),me(r,ch,a)):Au=a;fM=t.timeStamp}})}(n,e)]);let uh=0,dM=null,fM=0,Au=null;const lb=new WeakMap,o_=new WeakMap;let ab=!1,cb=!1,dh=!1,Df=!1,Wv=!1,Kv="",Va=null,hM=[0,"",0,"root",0];function gM(n,e,t,r,o){const i=n.anchor,s=n.focus,l=i.getNode(),a=At(),c=Ks(go(a)),d=c!==null?c.anchorNode:null,h=i.key,f=a.getElementByKey(h),g=t.length;return h!==s.key||!be(l)||(!o&&(!Jm||fM<r+50)||l.isDirty()&&g<2||oO(t))&&i.offset!==s.offset&&!l.isComposing()||ul(l)||l.isDirty()&&g>1||(o||!Jm)&&f!==null&&!l.isComposing()&&d!==Td(f)||c!==null&&e!==null&&(!e.collapsed||e.startContainer!==c.anchorNode||e.startOffset!==c.anchorOffset)||l.getFormat()!==n.format||l.getStyle()!==n.style||function(p,m){if(m.isSegmented())return!0;if(!p.isCollapsed())return!1;const _=p.anchor.offset,C=m.getParentOrThrow(),y=rc(m);return _===0?!m.canInsertTextBefore()||!C.canInsertTextBefore()&&!m.isComposing()||y||function(v){const k=v.getPreviousSibling();return(be(k)||Y(k)&&k.isInline())&&!k.canInsertTextAfter()}(m):_===m.getTextContentSize()&&(!m.canInsertTextAfter()||!C.canInsertTextAfter()&&!m.isComposing()||y)}(n,l)}function xT(n,e){return Ys(n)&&n.nodeValue!==null&&e!==0&&e!==n.nodeValue.length}function ST(n,e,t){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=n;ab&&(ab=!1,xT(r,o)&&xT(i,s)&&!Va)||Vr(e,()=>{if(!t)return void ho(null);if(!X0(e,r,i))return;let l=at();if(Va&&Me(l)&&l.isCollapsed()){const a=l.anchor,c=Va.anchor;(a.key===c.key&&a.offset===c.offset+1||a.offset===1&&c.getNode().is(a.getNode().getPreviousSibling()))&&(l=Va.clone(),ho(l))}if(Va=null,Me(l)){const a=l.anchor,c=a.getNode();if(l.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(l.dirty=!0);const d=go(e).event,h=d?d.timeStamp:performance.now(),[f,g,p,m,_]=hM,C=qo(),y=e.isComposing()===!1&&C.getTextContent()==="";if(h<_+200&&a.offset===p&&a.key===m)N1(l,f,g);else if(a.type==="text")be(c)||oe(141),pM(l,c);else if(a.type==="element"&&!y){Y(c)||oe(259);const v=a.getNode();v.isEmpty()?function(k,x){const b=x.getTextFormat(),T=x.getTextStyle();N1(k,b,T)}(l,v):N1(l,0,"")}}else{const d=a.key,h=l.focus.key,f=l.getNodes(),g=f.length,p=l.isBackward(),m=p?s:o,_=p?o:s,C=p?h:d,y=p?d:h;let v=2047,k=!1;for(let x=0;x<g;x++){const b=f[x],T=b.getTextContentSize();if(be(b)&&T!==0&&!(x===0&&b.__key===C&&m===T||x===g-1&&b.__key===y&&_===0)&&(k=!0,v&=b.getFormat(),v===0))break}l.format=k?v:0}}me(e,iM,void 0)})}function N1(n,e,t){n.format===e&&n.style===t||(n.format=e,n.style=t,n.dirty=!0)}function pM(n,e){N1(n,e.getFormat(),e.getStyle())}function mM(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function Wp(n,e){const t=n._compositionKey;if(_n(null),t!==null&&e!=null){if(e===""){const r=nn(t),o=Td(n.getElementByKey(t));return void(o!==null&&o.nodeValue!==null&&be(r)&&Z3(r,o.nodeValue,null,null,!0))}if(e[e.length-1]===`
43
+ `){const r=at();if(Me(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void me(n,ib,null)}}}j3(!0,n,e)}function _M(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const Yu=new Map;function yM(n){const e=XOe(n.target);if(e===null)return;const t=eO(e.anchorNode);if(t===null)return;cb&&(cb=!1,Vr(t,()=>{const a=Zg(),c=e.anchorNode;(Yr(c)||Ys(c))&&ho(W3(a,e,t,n))}));const r=q3(t),o=r[r.length-1],i=o._key,s=Yu.get(i),l=s||o;l!==t&&ST(e,l,!1),ST(e,t,!0),t!==o?Yu.set(i,t):s&&Yu.delete(i)}function wT(n){n._lexicalHandled=!0}function TT(n){return n._lexicalHandled===!0}const ET=()=>{};function kOe(n){const e=lb.get(n);if(e===void 0)return void ET();const t=o_.get(e);if(t===void 0)return void ET();const r=t-1;r>=0||oe(164),lb.delete(n),o_.set(e,r),r===0&&e.removeEventListener("selectionchange",yM);const o=Q0(n);U3(o)?(function(s){if(s._parentEditor!==null){const l=q3(s),a=l[l.length-1]._key;Yu.get(a)===s&&Yu.delete(a)}else Yu.delete(s._key)}(o),n.__lexicalEditor=null):o&&oe(198);const i=_M(n);for(let s=0;s<i.length;s++)i[s]();n.__lexicalEventHandles=[]}function ub(n,e,t){mn();const r=n.__key,o=n.getParent();if(o===null)return;const i=function(l){const a=at();if(!Me(a)||!Y(l))return a;const{anchor:c,focus:d}=a,h=c.getNode(),f=d.getNode();return fb(h,l)&&c.set(l.__key,0,"element"),fb(f,l)&&d.set(l.__key,0,"element"),a}(n);let s=!1;if(Me(i)&&e){const l=i.anchor,a=i.focus;l.key===r&&(l_(l,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0),a.key===r&&(l_(a,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0)}else V3(i)&&e&&n.isSelected()&&n.selectPrevious();if(Me(i)&&e&&!s){const l=n.getIndexWithinParent();oc(n),s_(i,o,l,-1)}else oc(n);t||pa(o)||o.canBeEmpty()||!o.isEmpty()||ub(o,e),e&&i&&Mn(o)&&o.isEmpty()&&o.selectEnd()}const xOe=Symbol.for("ephemeral");function i_(n){return n[xOe]||!1}var H2;let Ll=(H2=class{constructor(e){E(this,"__type");E(this,"__key");E(this,"__parent");E(this,"__prev");E(this,"__next");E(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),UOe(this,e)}static getType(){const{ownNodeType:e}=sDe(this);return e===void 0&&oe(64,this.name),e}static clone(e){oe(65,this.name)}$config(){return{}}config(e,t){const r=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:r,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){oe(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=nn(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){const t=e||at();if(t==null)return!1;const r=t.getNodes().some(o=>o.__key===this.__key);if(be(this))return r;if(Me(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const o=this.getParent();if(yt(this)&&this.isInline()&&o){const i=t.isBackward()?t.focus:t.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:nn(e)}getParentOrThrow(){const e=this.getParent();return e===null&&oe(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(pa(t))return Y(e)||e===this&&yt(e)||oe(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&oe(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:nn(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:nn(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=Y(this)?this:this.getParent(),r=Y(e)?e:e.getParent(),o=t&&r?O1(t,r):null;return o?o.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const t=O1(this,e);return t!==null&&(t.type==="descendant"||(t.type==="branch"?hO(t)===-1:(t.type!=="same"&&t.type!=="ancestor"&&oe(279),!1)))}isParentOf(e){const t=O1(this,e);return t!==null&&t.type==="ancestor"}getNodesBetween(e){const t=this.isBefore(e),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===e)break;const l=Y(i)?t?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const a=t?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===e)break;let d=null,h=c;do{if(h===null&&oe(68),d=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;d!==null||o.has(h.__key)||r.push(h)}while(d===null);i=d}return t||r.reverse(),r}isDirty(){const e=At()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(i_(this))return this;const e=nn(this.__key);return e===null&&oe(113),e}getWritable(){if(i_(this))return this;mn();const e=ga(),t=At(),r=e._nodeMap,o=this.__key,i=this.getLatest(),s=t._cloneNotNeeded,l=at();if(l!==null&&l.setCachedNodes(null),s.has(o))return c_(i),i;const a=rDe(i);return s.add(o),c_(a),r.set(o,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){oe(70)}updateDOM(e,t,r){oe(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){oe(18,this.name)}updateFromJSON(e){return function(t,r){const o=t.getWritable(),i=r.$;let s=i;for(const l of eM(o).flatKeys)l in r&&(s!==void 0&&s!==i||(s={...i}),s[l]=r[l]);return(o.__state||s)&&QA(t).updateFromJSON(s),o}(this,e)}static transform(){return null}remove(e){ub(this,!0,e)}replace(e,t){mn();let r=at();r!==null&&(r=r.clone()),Jv(this,e);const o=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size;oc(l);const d=o.getPreviousSibling(),h=o.getNextSibling(),f=o.__prev,g=o.__next,p=o.__parent;if(ub(o,!1,!0),d===null?a.__first=s:d.getWritable().__next=s,l.__prev=f,h===null?a.__last=s:h.getWritable().__prev=s,l.__next=g,l.__parent=p,a.__size=c,t&&(Y(this)&&Y(l)||oe(139),this.getChildren().forEach(m=>{l.append(m)})),Me(r)){ho(r);const m=r.anchor,_=r.focus;m.key===i&&MT(m,l),_.key===i&&MT(_,l)}return Sl()===i&&_n(s),l}insertAfter(e,t=!0){mn(),Jv(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.getParent(),s=at();let l=!1,a=!1;if(i!==null){const g=e.getIndexWithinParent();if(oc(o),Me(s)){const p=i.__key,m=s.anchor,_=s.focus;l=m.type==="element"&&m.key===p&&m.offset===g+1,a=_.type==="element"&&_.key===p&&_.offset===g+1}}const c=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),h=o.__key,f=r.__next;if(c===null?d.__last=h:c.getWritable().__prev=h,d.__size++,r.__next=h,o.__next=f,o.__prev=r.__key,o.__parent=r.__parent,t&&Me(s)){const g=this.getIndexWithinParent();s_(s,d,g+1);const p=d.__key;l&&s.anchor.set(p,g+2,"element"),a&&s.focus.set(p,g+2,"element")}return e}insertBefore(e,t=!0){mn(),Jv(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.__key;oc(o);const s=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,c=this.getIndexWithinParent();s===null?l.__first=i:s.getWritable().__next=i,l.__size++,r.__prev=i,o.__prev=a,o.__next=r.__key,o.__parent=r.__parent;const d=at();return t&&Me(d)&&s_(d,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return Fl()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){mn();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(Y(r))return r.select();if(!be(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(e,t)}selectNext(e,t){mn();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(Y(r))return r.select(0,0);if(!be(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},E(H2,"importDOM"),H2);const Uv="history-merge",SOe="collaboration",wOe="skip-scroll-into-view",TOe="skip-dom-selection",EOe="skip-selection-focus";let vM=class CM extends Ll{static getType(){return"linebreak"}static clone(e){return new CM(e.__key)}constructor(e){super(e)}getTextContent(){return`
44
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(t){const r=t.parentElement;if(r!==null&&tE(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&Kp(o)){const i=r.lastChild;if(i===t||i.previousSibling===t&&Kp(i))return!0}}return!1}(e)||function(t){const r=t.parentElement;if(r!==null&&tE(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&Kp(o))return!1;const i=r.lastChild;if(i===t||i.previousSibling===t&&Kp(i))return!0}return!1}(e)?null:{conversion:NOe,priority:0}}}static importJSON(e){return wd().updateFromJSON(e)}};function NOe(n){return{node:wd()}}function wd(){return ny(new vM)}function Xu(n){return n instanceof vM}function Kp(n){return Ys(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function Hv(n,e){return 16&e?"code":e&qA?"mark":32&e?"sub":64&e?"sup":null}function qv(n,e){return 1&e?"strong":2&e?"em":"span"}function bM(n,e,t,r,o){const i=r.classList;let s=Qu(o,"base");s!==void 0&&i.add(...s),s=Qu(o,"underlineStrikethrough");let l=!1;const a=8&e&&4&e;s!==void 0&&(8&t&&4&t?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const c in sr){const d=sr[c];if(s=Qu(o,c),s!==void 0)if(t&d){if(l&&(c==="underline"||c==="strikethrough")){e&d&&i.remove(...s);continue}(!(e&d)||a&&c==="underline"||c==="strikethrough")&&i.add(...s)}else e&d&&i.remove(...s)}}function kM(n,e,t){const r=e.firstChild,o=t.isComposing(),i=n+(o?Z0:"");if(r==null)e.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||Pc){const[l,a,c]=function(d,h){const f=d.length,g=h.length;let p=0,m=0;for(;p<f&&p<g&&d[p]===h[p];)p++;for(;m+p<f&&m+p<g&&d[f-m-1]===h[g-m-1];)m++;return[p,f-p-m,h.slice(p,g-m)]}(s,i);a!==0&&r.deleteData(l,a),r.insertData(l,c)}else r.nodeValue=i}}function NT(n,e,t,r,o,i){kM(o,n,e);const s=i.theme.text;s!==void 0&&bM(0,0,r,n,s)}function Up(n,e){const t=document.createElement(e);return t.appendChild(n),t}let B3=class xM extends Ll{constructor(t="",r){super(r);E(this,"__text");E(this,"__format");E(this,"__style");E(this,"__mode");E(this,"__detail");this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(t){return new xM(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return KMe[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Sl()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const r=sr[t];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(t,r){return a_(this.getLatest().__format,t,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,r){const o=this.__format,i=Hv(0,o),s=qv(0,o),l=i===null?s:i,a=document.createElement(l);let c=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(c=document.createElement(s),a.appendChild(c)),NT(c,this,0,o,this.__text,t);const d=this.__style;return d!==""&&(a.style.cssText=d),a}updateDOM(t,r,o){const i=this.__text,s=t.__format,l=this.__format,a=Hv(0,s),c=Hv(0,l),d=qv(0,s),h=qv(0,l);if((a===null?d:a)!==(c===null?h:c))return!0;if(a===c&&d!==h){const _=r.firstChild;_==null&&oe(48);const C=document.createElement(h);return NT(C,this,0,l,i,o),r.replaceChild(C,_),!1}let f=r;c!==null&&a!==null&&(f=r.firstChild,f==null&&oe(49)),kM(i,f,this);const g=o.theme.text;g!==void 0&&s!==l&&bM(0,s,l,f,g);const p=t.__style,m=this.__style;return p!==m&&(r.style.cssText=m),!1}static importDOM(){return{"#text":()=>({conversion:OOe,priority:0}),b:()=>({conversion:AOe,priority:0}),code:()=>({conversion:es,priority:0}),em:()=>({conversion:es,priority:0}),i:()=>({conversion:es,priority:0}),mark:()=>({conversion:es,priority:0}),s:()=>({conversion:es,priority:0}),span:()=>({conversion:$Oe,priority:0}),strong:()=>({conversion:es,priority:0}),sub:()=>({conversion:es,priority:0}),sup:()=>({conversion:es,priority:0}),u:()=>({conversion:es,priority:0})}}static importJSON(t){return Pt().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(t){let{element:r}=super.exportDOM(t);return Yr(r)||oe(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=Up(r,"b")),this.hasFormat("italic")&&(r=Up(r,"i")),this.hasFormat("strikethrough")&&(r=Up(r,"s")),this.hasFormat("underline")&&(r=Up(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?sr[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?zMe[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=a_(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=WMe[t];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){mn();let o=t,i=r;const s=at(),l=this.getTextContent(),a=this.__key;if(typeof l=="string"){const c=l.length;o===void 0&&(o=c),i===void 0&&(i=c)}else o=0,i=0;if(!Me(s))return OM(a,o,a,i,"text","text");{const c=Sl();c!==s.anchor.key&&c!==s.focus.key||_n(a),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,o,i){const s=this.getWritable(),l=s.__text,a=o.length;let c=t;c<0&&(c=a+c,c<0&&(c=0));const d=at();if(i&&Me(d)){const f=t+a;d.setTextNodeRange(s,f,s,f)}const h=l.slice(0,c)+o+l.slice(c+r);return s.__text=h,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){mn();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=Sl(),l=o.length;t.sort((S,N)=>S-N),t.push(l);const a=[],c=t.length;for(let S=0,N=0;S<l&&N<=c;N++){const $=t[N];$>S&&(a.push(o.slice(S,$)),S=$)}const d=a.length;if(d===1)return[r];const h=a[0],f=r.getParent();let g;const p=r.getFormat(),m=r.getStyle(),_=r.__detail;let C=!1,y=null,v=null;const k=at();if(Me(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===i&&(y=S),N.type==="text"&&N.key===i&&(v=N)}r.isSegmented()?(g=Pt(h),g.__format=p,g.__style=m,g.__detail=_,g.__state=gT(r,g),C=!0):g=r.setTextContent(h);const x=[g];for(let S=1;S<d;S++){const N=Pt(a[S]);N.__format=p,N.__style=m,N.__detail=_,N.__state=gT(r,N);const $=N.__key;s===i&&_n($),x.push(N)}const b=y?y.offset:null,T=v?v.offset:null;let w=0;for(const S of x){if(!y&&!v)break;const N=w+S.getTextContentSize();if(y!==null&&b!==null&&b<=N&&b>=w&&(y.set(S.getKey(),b-w,"text"),b<N&&(y=null)),v!==null&&T!==null&&T<=N&&T>=w){v.set(S.getKey(),T-w,"text");break}w=N}if(f!==null){(function($){const O=$.getPreviousSibling(),M=$.getNextSibling();O!==null&&c_(O),M!==null&&c_(M)})(this);const S=f.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,x),this.remove()):S.splice(N,1,x),Me(k)&&s_(k,f,N,d-1)}return x}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||oe(50);const o=this.__key,i=t.__key,s=this.__text,l=s.length;Sl()===i&&_n(o);const a=at();if(Me(a)){const f=a.anchor,g=a.focus;f!==null&&f.key===i&&RT(f,r,o,t,l),g!==null&&g.key===i&&RT(g,r,o,t,l)}const c=t.__text,d=r?c+s:s+c;this.setTextContent(d);const h=this.getWritable();return t.remove(),h}isTextEntity(){return!1}};function $Oe(n){return{forChild:R3(n.style),node:null}}function AOe(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:R3(e.style,t?void 0:"bold"),node:null}}const $T=new WeakMap;function MOe(n){if(!Yr(n))return!1;if(n.nodeName==="PRE")return!0;const e=n.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function OOe(n){const e=n;n.parentElement===null&&oe(129);let t=e.textContent||"";if(function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=$T.get(i))===void 0&&!MOe(i);)s.push(i),i=i.parentNode;const l=o===void 0?i:o;for(let a=0;a<s.length;a++)$T.set(s[a],l);return l}(e)!==null){const r=t.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const l=r[s];l===`
45
+ `||l===`\r
46
+ `?o.push(wd()):l===" "?o.push(z3()):l!==""&&o.push(Pt(l))}return{node:o}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,o=!0;for(;r!==null&&(r=AT(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),o=!1;break}}o&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,o=!0;for(;r!==null&&(r=AT(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:Pt(t)}}function AT(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=r,Yr(t)){const i=t.style.display;if(i===""&&!eDe(t)||i!==""&&!i.startsWith("inline"))return null}let o=t;for(;(o=e?t.firstChild:t.lastChild)!==null;)t=o;if(Ys(t))return t;if(t.nodeName==="BR")return null}}const DOe={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function es(n){const e=DOe[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:R3(n.style,e),node:null}}function Pt(n=""){return ny(new B3(n))}function be(n){return n instanceof B3}function R3(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),o=t==="700"||t==="bold",i=r.includes("line-through"),s=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return c=>(be(c)&&(o&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),s&&!c.hasFormat("italic")&&c.toggleFormat("italic"),l&&!c.hasFormat("underline")&&c.toggleFormat("underline"),a!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),a!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),e&&!c.hasFormat(e)&&c.toggleFormat(e)),c)}let SM=class wM extends B3{static getType(){return"tab"}static clone(e){return new wM(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),r=Qu(e.theme,"tab");return r!==void 0&&t.classList.add(...r),t}static importJSON(e){return z3().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&KA(126),super.setTextContent(" ")}spliceText(e,t,r,o){return r===""&&t===0||r===" "&&t===1||oe(286),this}setDetail(e){return e!==2&&oe(127),this}setMode(e){return e!=="normal"&&oe(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function z3(){return ny(new SM)}function TM(n){return n instanceof SM}let LOe=class{constructor(e,t,r){E(this,"key");E(this,"offset");E(this,"type");E(this,"_selection");this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:fO(bi(Wc(this,"next")),bi(Wc(e,"next")))<0}getNode(){const e=nn(this.key);return e===null&&oe(20),e}set(e,t,r,o){const i=this._selection,s=this.key;o&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,Gg()||(Sl()===s&&_n(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}};function Li(n,e,t){return new LOe(n,e,t)}function jv(n,e){let t=e.__key,r=n.offset,o="element";if(be(e)){o="text";const i=e.getTextContentSize();r>i&&(r=i)}else if(!Y(e)){const i=e.getNextSibling();if(be(i))t=i.__key,r=0,o="text";else{const s=e.getParent();s&&(t=s.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,o)}function MT(n,e){if(Y(e)){const t=e.getLastDescendant();Y(t)||be(t)?jv(n,t):jv(n,e)}else jv(n,e)}let EM=class NM{constructor(e){E(this,"_nodes");E(this,"_cachedNodes");E(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!V3(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new NM(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),r=t.length,o=t[r-1];let i;if(be(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<r;s++)t[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const o of t){const i=nn(o);i!==null&&r.push(i)}return Gg()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((at()||Zg())===this&&e[0]){const t=Jn(e[0],"next");mDe(Vc(t,t))}for(const t of e)t.remove()}};function Me(n){return n instanceof jg}let jg=class $M{constructor(e,t,r,o){E(this,"format");E(this,"style");E(this,"anchor");E(this,"focus");E(this,"_cachedNodes");E(this,"dirty");this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Me(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const l=new Set,a=new Set;for(const c of r)if(Ms(c)){const{origin:d}=c;o.length===0?l.add(d):(a.add(d),o.push(d))}else{const{origin:d}=c;Y(d)&&a.has(d)||o.push(d)}if(s&&o.push(s.caret.origin),Ed(r.focus)&&Y(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let c=ea(r.focus.origin,"previous");Ms(c)&&l.has(c.origin)&&!c.origin.isEmpty()&&c.origin.is(o[o.length-1]);c=Q3(c))l.delete(c.origin),o.pop();for(;o.length>1;){const c=o[o.length-1];if(!Y(c)||a.has(c)||c.isEmpty()||l.has(c))break;o.pop()}if(o.length===0&&r.isCollapsed()){const c=bi(r.anchor),d=bi(r.anchor.getFlipped()),h=g=>ic(g)?g.origin:g.getNodeAtCaret(),f=h(c)||h(d)||(r.anchor.getNodeAtCaret()?c.origin:d.origin);o.push(f)}return o}(gO(sE(this),"next"));return Gg()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,o){this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[l,a]=DT(this);let c="",d=!0;for(let h=0;h<e.length;h++){const f=e[h];if(Y(f)&&!f.isInline())d||(c+=`
47
+ `),d=!f.isEmpty();else if(d=!1,be(f)){let g=f.getTextContent();f===t?f===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(g=l<a?g.slice(l,a):g.slice(a,l)):g=s?g.slice(l):g.slice(a):f===r&&(g=s?g.slice(0,a):g.slice(0,l)),c+=g}else!yt(f)&&!Xu(f)||f===r&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(e){const t=At(),r=t.getEditorState()._selection,o=MM(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),XMe(this)}clone(){const e=this.anchor,t=this.focus;return new $M(Li(e.key,e.offset,e.type),Li(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=a_(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=sr[e];return(this.format&t)!==0}insertRawText(e){const t=e.split(/(\r?\n|\t)/),r=[],o=t.length;for(let i=0;i<o;i++){const s=t[i];s===`
48
+ `||s===`\r
49
+ `?r.push(wd()):s===" "?r.push(z3()):r.push(Pt(s))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,o=this.format,i=this.style;let s=t,l=r;!this.isCollapsed()&&r.isBefore(t)&&(s=r,l=t),s.type==="element"&&function(_,C,y,v){const k=_.getNode(),x=k.getChildAtIndex(_.offset),b=Pt();if(b.setFormat(y),b.setStyle(v),GM(x))x.splice(0,0,[b]);else{const T=Mn(k)?Fl().append(b):b;x===null?k.append(T):x.insertBefore(T)}_.is(C)&&C.set(b.__key,0,"text"),_.set(b.__key,0,"text")}(s,l,o,i),l.type==="element"&&sg(l,bi(Wc(l,"next")));const a=s.offset;let c=l.offset;const d=this.getNodes(),h=d.length;let f=d[0];be(f)||oe(26);const g=f.getTextContent().length,p=f.getParentOrThrow();let m=d[h-1];if(h===1&&l.type==="element"&&(c=g,l.set(s.key,c,"text")),this.isCollapsed()&&a===g&&(ul(f)||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&f.getNextSibling()===null)){let _=f.getNextSibling();if(be(_)&&_.canInsertTextBefore()&&!ul(_)||(_=Pt(),_.setFormat(o),_.setStyle(i),p.canInsertTextAfter()?f.insertAfter(_):p.insertAfter(_)),_.select(0,0),f=_,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(ul(f)||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&f.getPreviousSibling()===null)){let _=f.getPreviousSibling();if(be(_)&&!ul(_)||(_=Pt(),_.setFormat(o),p.canInsertTextBefore()?f.insertBefore(_):p.insertBefore(_)),_.select(),f=_,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&a!==g){const _=Pt(f.getTextContent());_.setFormat(o),f.replace(_),f=_}else if(!this.isCollapsed()&&e!==""){const _=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||Y(_)&&(!_.canInsertTextBefore()||!_.canInsertTextAfter()))return this.insertText(""),AM(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(rc(f)){const v=Pt(e);return v.select(),void f.replace(v)}const _=f.getFormat(),C=f.getStyle();if(a!==c||_===o&&C===i){if(TM(f)){const v=Pt(e);return v.setFormat(o),v.setStyle(i),v.select(),void f.replace(v)}}else{if(f.getTextContent()!==""){const v=Pt(e);if(v.setFormat(o),v.setStyle(i),v.select(),a===0)f.insertBefore(v,!1);else{const[k]=f.splitText(a);k.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(o),f.setStyle(i)}const y=c-a;f=f.spliceText(a,y,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=_,this.style=C))}else{const _=new Set([...f.getParentKeys(),...m.getParentKeys()]),C=Y(f)?f:f.getParentOrThrow();let y=Y(m)?m:m.getParentOrThrow(),v=m;if(!C.is(y)&&y.isInline())do v=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(c!==0||m.getTextContent()==="")||l.type==="element"&&m.getIndexWithinParent()<c)if(be(m)&&!rc(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){const w=Pt(m.getTextContent());m.replace(w),m=w}Mn(l.getNode())||l.type!=="text"||(m=m.spliceText(0,c,"")),_.add(m.__key)}else{const w=m.getParentOrThrow();w.canBeEmpty()||w.getChildrenSize()!==1?m.remove():w.remove()}else _.add(m.__key);const k=y.getChildren(),x=new Set(d),b=C.is(y),T=C.isInline()&&f.getNextSibling()===null?C:f;for(let w=k.length-1;w>=0;w--){const S=k[w];if(S.is(f)||Y(S)&&S.isParentOf(f))break;S.isAttached()&&(!x.has(S)||S.is(v)?b||T.insertAfter(S,!1):S.remove())}if(!b){let w=y,S=null;for(;w!==null;){const N=w.getChildren(),$=N.length;($===0||N[$-1].is(S))&&(_.delete(w.__key),S=w),w=w.getParent()}}if(rc(f))if(a===g)f.select();else{const w=Pt(e);w.select(),f.replace(w)}else f=f.spliceText(a,g-a,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let w=1;w<h;w++){const S=d[w],N=S.__key;_.has(N)||S.remove()}}}removeText(){const e=at()===this;D1(this,_De(sE(this))),e&&at()!==this&&ho(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void _n(null);const r=this.getNodes(),o=[];for(const k of r)be(k)&&o.push(k);const i=k=>{r.forEach(x=>{if(Y(x)){const b=x.getFormatFlags(e,k);x.setTextFormat(b)}})},s=o.length;if(s===0)return this.toggleFormat(e),_n(null),void i(t);const l=this.anchor,a=this.focus,c=this.isBackward(),d=c?a:l,h=c?l:a;let f=0,g=o[0],p=d.type==="element"?0:d.offset;if(d.type==="text"&&p===g.getTextContentSize()&&(f=1,g=o[1],p=0),g==null)return;const m=g.getFormatFlags(e,t);i(m);const _=s-1;let C=o[_];const y=h.type==="text"?h.offset:C.getTextContentSize();if(g.is(C)){if(p===y)return;if(ul(g)||p===0&&y===g.getTextContentSize())g.setFormat(m);else{const k=g.splitText(p,y),x=p===0?k[0]:k[1];x.setFormat(m),d.type==="text"&&d.set(x.__key,0,"text"),h.type==="text"&&h.set(x.__key,y-p,"text")}return void(this.format=m)}p===0||ul(g)||([,g]=g.splitText(p),p=0),g.setFormat(m);const v=C.getFormatFlags(e,m);y>0&&(y===C.getTextContentSize()||ul(C)||([C]=C.splitText(y)),C.setFormat(v));for(let k=f+1;k<_;k++){const x=o[k],b=x.getFormatFlags(e,v);x.setFormat(b)}d.type==="text"&&d.set(g.__key,p,"text"),h.type==="text"&&h.set(C.__key,y,"text"),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const p=at();return Me(p)||oe(134),p.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),r=M1(t,yl),o=e[e.length-1];if(Y(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const p=Zv(this);r.splice(p,0,e),o.selectEnd()}return}if(!e.some(p=>(Y(p)||yt(p))&&!p.isInline())){Y(r)||oe(211,t.constructor.name,t.getType());const p=Zv(this);return r.splice(p,0,e),void o.selectEnd()}const i=function(p){const m=Fl();let _=null;for(let C=0;C<p.length;C++){const y=p[C],v=Xu(y);if(v||yt(y)&&y.isInline()||Y(y)&&y.isInline()||be(y)||y.isParentRequired()){if(_===null&&(_=y.createParentElementNode(),m.append(_),v))continue;_!==null&&_.append(y)}else m.append(y),_=null}return m}(e),s=i.getLastDescendant(),l=i.getChildren(),a=!Y(r)||!r.isEmpty()?this.insertParagraph():null,c=l[l.length-1];let d=l[0];var h;Y(h=d)&&yl(h)&&!h.isEmpty()&&Y(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(Y(r)||oe(211,t.constructor.name,t.getType()),r.append(...d.getChildren()),d=l[1]),d&&(r===null&&oe(212,t.constructor.name,t.getType()),function(p,m){const _=m.getParentOrThrow().getLastChild();let C=m;const y=[m];for(;C!==_;)C.getNextSibling()||oe(140),C=C.getNextSibling(),y.push(C);let v=p;for(const k of y)v=v.insertAfter(k)}(r,d));const f=M1(s,yl);a&&Y(f)&&(a.canMergeWhenEmpty()||yl(c))&&(f.append(...a.getChildren()),a.remove()),Y(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const g=Y(r)?r.getLastChild():null;Xu(g)&&f!==r&&g.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Fl();return qo().splice(this.anchor.offset,0,[s]),s.select(),s}const e=Zv(this),t=M1(this.anchor.getNode(),yl);Y(t)||oe(213);const r=t.getChildAtIndex(e),o=r?[r,...r.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(e){const t=wd();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),o=t.getIndexWithinParent();r.select(o,o)}}extract(){const e=[...this.getNodes()],t=e.length;let r=e[0],o=e[t-1];const[i,s]=DT(this),l=this.isBackward(),[a,c]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,h]=l?[s,i]:[i,s];if(t===0)return[];if(t===1){if(be(r)&&!this.isCollapsed()){const f=r.splitText(d,h),g=d===0?f[0]:f[1];return g?(a.set(g.getKey(),0,"text"),c.set(g.getKey(),g.getTextContentSize(),"text"),[g]):[]}return[r]}if(be(r)&&(d===r.getTextContentSize()?e.shift():d!==0&&([,r]=r.splitText(d),e[0]=r,a.set(r.getKey(),0,"text"))),be(o)){const f=o.getTextContent().length;h===0?e.pop():h!==f&&([o]=o.splitText(h),e[e.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return e}modify(e,t,r){if(zT(this,e,t,r))return;const o=e==="move",i=At(),s=Ks(go(i));if(!s)return;const l=i._blockCursorElement,a=i._rootElement,c=this.focus.getNode();if(a===null||l===null||!Y(c)||c.isInline()||c.canBeEmpty()||hb(l,i,a),this.dirty){let d=Rc(i,this.anchor.key),h=Rc(i,this.focus.key);this.anchor.type==="text"&&(d=Td(d)),this.focus.type==="text"&&(h=Td(h)),d&&h&&LM(s,d,this.anchor.offset,h,this.focus.offset)}if(function(d,h,f,g){d.modify(h,f,g)}(s,e,t?"backward":"forward",r),s.rangeCount>0){const d=s.getRangeAt(0),h=this.anchor.getNode(),f=Mn(h)?h:JOe(h);if(this.applyDOMRange(d),this.dirty=!0,!o){const g=this.getNodes(),p=[];let m=!1;for(let _=0;_<g.length;_++){const C=g[_];fb(C,f)?p.push(C):m=!0}if(m&&p.length>0)if(t){const _=p[0];Y(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=p[p.length-1];Y(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}s.anchorNode===d.startContainer&&s.anchorOffset===d.startOffset||function(_){const C=_.focus,y=_.anchor,v=y.key,k=y.offset,x=y.type;y.set(C.key,C.offset,C.type,!0),C.set(v,k,x,!0)}(this)}}r==="lineboundary"&&zT(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&Y(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const o=t.getParent(),i=t.getNextSibling()||(o===null?null:o.getNextSibling());if(Y(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,e))return;const i=uO(Wc(r,e?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const a of i.iterNodeCarets("shadowRoot"))if(Ms(a)){if(!a.origin.isInline()){if(a.origin.isShadowRoot()){if(l.type==="merge-block")break;if(Y(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=bi(a);D1(this,Vc(c,c)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:a,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Ed(a)){if(Y(a.origin)){if(a.origin.isInline()){if(!a.origin.isParentOf(i.anchor.origin))break}else l={block:a.origin,type:"merge-next-block"};continue}if(yt(a.origin)){if(!a.origin.isIsolated())if(l.type==="merge-next-block"&&(a.origin.isKeyboardSelectable()||!a.origin.isInline())&&Y(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=DM();c.add(a.origin.getKey()),ho(c)}else a.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:a,block:c}=l;return D1(this,Vc(!a.origin.isEmpty()&&c.isEmpty()?ex(Jn(c,a.direction)):i.anchor,a)),this.removeText()}}const s=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&LT(this,r.getNode()))return}else{const l=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=s.offset,c=l.getTextContentSize();if(l.is(o)||e&&a!==c||!e&&a!==0)return void FT(l,e,a)}else if(o!==null&&o.isSegmented()){const a=r.offset,c=o.getTextContentSize();if(o.is(l)||e&&a!==0||!e&&a!==c)return void FT(o,e,a)}(function(a,c){const d=a.anchor,h=a.focus,f=d.getNode(),g=h.getNode();if(f===g&&d.type==="text"&&h.type==="text"){const p=d.offset,m=h.offset,_=p<m,C=_?p:m,y=_?m:p,v=y-1;C!==v&&function(k){return!(oO(k)||FOe(k))}(f.getTextContent().slice(C,y))&&(c?h.set(h.key,v,h.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Mn(r.getParent())&&r.getPreviousSibling()===null&&LT(this,r)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function V3(n){return n instanceof EM}function OT(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function DT(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[OT(t),OT(r)]}function LT(n,e){for(let t=e;t;t=t.getParent()){if(Y(t)){if(t.collapseAtStart(n))return!0;if(pa(t))break}if(t.getPreviousSibling())break}return!1}const FOe=(()=>{try{const n=new RegExp("\\p{Emoji}","u"),e=n.test.bind(n);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function FT(n,e,t){const r=n,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let c=0;c<i;c++){const d=c===i-1;if(l=s,s+=o[c].length,e&&s===t||s>t||d){o.splice(c,1),d&&(l=void 0);break}}const a=o.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function PT(n,e,t,r){let o,i=e;if(Yr(n)){let s=!1;const l=n.childNodes,a=l.length,c=r._blockCursorElement;i===a&&(s=!0,i=a-1);let d=l[i],h=!1;if(d===c)d=l[i+1],h=!0;else if(c!==null){const f=c.parentNode;n===f&&e>Array.prototype.indexOf.call(f.children,c)&&i--}if(o=Ru(d),be(o))i=Pl(o,s?"next":"previous");else{let f=Ru(n);if(f===null)return null;if(Y(f)){const g=r.getElementByKey(f.getKey());g===null&&oe(214),[f,i]=f.getDOMSlot(g).resolveChildIndex(f,g,n,e),Y(f)||oe(215),s&&i>=f.getChildrenSize()&&(i=Math.max(0,f.getChildrenSize()-1));let m=f.getChildAtIndex(i);if(Y(m)&&function(_,C,y){const v=_.getParent();return y===null||v===null||!v.canBeEmpty()||v!==y.getNode()}(m,0,t)){const _=s?m.getLastDescendant():m.getFirstDescendant();_===null?f=m:(m=_,f=Y(m)?m:m.getParentOrThrow()),i=0}be(m)?(o=m,f=null,i=Pl(m,s?"next":"previous")):m!==f&&s&&!h&&(Y(f)||oe(216),i=Math.min(f.getChildrenSize(),i+1))}else{const g=f.getIndexWithinParent();i=e===0&&yt(f)&&Ru(n)===f?g:g+1,f=f.getParentOrThrow()}if(Y(f))return Li(f.__key,i,"element")}}else o=Ru(n);return be(o)?Li(o.__key,Pl(o,i,"clamp"),"text"):null}function IT(n,e,t){const r=n.offset,o=n.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(e){if((t||!e)&&i===null&&Y(s)&&s.isInline()){const l=s.getPreviousSibling();be(l)&&n.set(l.__key,l.getTextContent().length,"text")}}else Y(i)&&!t&&i.isInline()?n.set(i.__key,i.getChildrenSize(),"element"):be(i)&&n.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(e&&Y(i)&&i.isInline())n.set(i.__key,0,"element");else if((t||e)&&i===null&&Y(s)&&s.isInline()&&!s.canInsertTextAfter()){const l=s.getNextSibling();be(l)&&n.set(l.__key,0,"text")}}}function AM(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),o=n.is(e);IT(n,r,o),IT(e,!r,o),o&&e.set(n.key,n.offset,n.type);const i=At();if(i.isComposing()&&i._compositionKey!==n.key&&Me(t)){const s=t.anchor,l=t.focus;n.set(s.key,s.offset,s.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function MM(n,e,t,r,o,i){if(n===null||t===null||!X0(o,n,t))return null;const s=PT(n,e,Me(i)?i.anchor:null,o);if(s===null)return null;const l=PT(t,r,Me(i)?i.focus:null,o);if(l===null)return null;if(s.type==="element"&&l.type==="element"){const a=Ru(n),c=Ru(t);if(yt(a)&&yt(c))return null}return AM(s,l,i),[s,l]}function OM(n,e,t,r,o,i){const s=ga(),l=new jg(Li(n,e,o),Li(t,r,i),0,"");return l.dirty=!0,s._selection=l,l}function POe(){const n=Li("root",0,"element"),e=Li("root",0,"element");return new jg(n,e,0,"")}function DM(){return new EM(new Set)}function W3(n,e,t,r){const o=t._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,l=s==="selectionchange",a=!YC&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,d,h,f;if(Me(n)&&!a)return n.clone();if(e===null)return null;if(c=e.anchorNode,d=e.focusNode,h=e.anchorOffset,f=e.focusOffset,(l||s===void 0)&&Me(n)&&!X0(t,c,d))return n.clone();const g=MM(c,h,d,f,t,n);if(g===null)return null;const[p,m]=g;return new jg(p,m,Me(n)?n.format:0,Me(n)?n.style:"")}function at(){return ga()._selection}function Zg(){return At()._editorState._selection}function s_(n,e,t,r=1){const o=n.anchor,i=n.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(n.isCollapsed()){const c=o.offset;if(t<=c&&r>0||t<c&&r<0){const d=Math.max(0,c+r);o.set(a,d,"element"),i.set(a,d,"element"),BT(n)}}else{const c=n.isBackward(),d=c?i:o,h=d.getNode(),f=c?o:i,g=f.getNode();if(e.is(h)){const p=d.offset;(t<=p&&r>0||t<p&&r<0)&&d.set(a,Math.max(0,p+r),"element")}if(e.is(g)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}}BT(n)}function BT(n){const e=n.anchor,t=e.offset,r=n.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!Y(i))return;const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(be(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text"),r.set(c.__key,d,"text")}return}if(Y(i)){const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(be(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text")}}if(Y(s)){const l=s.getChildrenSize(),a=o>=l,c=a?s.getChildAtIndex(l-1):s.getChildAtIndex(o);if(be(c)){let d=0;a&&(d=c.getTextContentSize()),r.set(c.__key,d,"text")}}}function l_(n,e,t,r,o){let i=null,s=0,l=null;r!==null?(i=r.__key,be(r)?(s=r.getTextContentSize(),l="text"):Y(r)&&(s=r.getChildrenSize(),l="element")):o!==null&&(i=o.__key,be(o)?l="text":Y(o)&&(l="element")),i!==null&&l!==null?n.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function RT(n,e,t,r,o){n.type==="text"?n.set(t,n.offset+(e?0:o),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function LM(n,e,t,r,o){try{n.setBaseAndExtent(e,t,r,o)}catch{}}function IOe(n,e,t,r,o,i,s){const l=r.anchorNode,a=r.focusNode,c=r.anchorOffset,d=r.focusOffset,h=document.activeElement;if(o.has(SOe)&&h!==i||h!==null&&QM(h))return;if(!Me(e))return void(n!==null&&X0(t,l,a)&&r.removeAllRanges());const f=e.anchor,g=e.focus,p=f.key,m=g.key,_=Rc(t,p),C=Rc(t,m),y=f.offset,v=g.offset,k=e.format,x=e.style,b=e.isCollapsed();let T=_,w=C,S=!1;if(f.type==="text"){T=Td(_);const F=f.getNode();S=F.getFormat()!==k||F.getStyle()!==x}else Me(n)&&n.anchor.type==="text"&&(S=!0);var N,$,O,M,A;if(g.type==="text"&&(w=Td(C)),T!==null&&w!==null&&(b&&(n===null||S||Me(n)&&(n.format!==k||n.style!==x))&&(N=k,$=x,O=y,M=p,A=performance.now(),hM=[N,$,O,M,A]),c!==y||d!==v||l!==T||a!==w||r.type==="Range"&&b||(h!==null&&i.contains(h)||o.has(EOe)||i.focus({preventScroll:!0}),f.type==="element"))){if(LM(r,T,y,w,v),!o.has(wOe)&&e.isCollapsed()&&i!==null&&i===document.activeElement){const F=Me(e)&&e.anchor.type==="element"?T.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(F!==null){let P;if(F instanceof Text){const z=document.createRange();z.selectNode(F),P=z.getBoundingClientRect()}else P=F.getBoundingClientRect();(function(z,I,L){const U=lO(L),W=J3(U);if(U===null||W===null)return;let{top:H,bottom:fe}=I,G=0,ae=0,R=L;for(;R!==null;){const J=R===U.body;if(J)G=0,ae=go(z).innerHeight;else{const Z=R.getBoundingClientRect();G=Z.top,ae=Z.bottom}let B=0;if(H<G?B=-(G-H):fe>ae&&(B=fe-ae),B!==0)if(J)W.scrollBy(0,B);else{const Z=R.scrollTop;R.scrollTop+=B;const Ee=R.scrollTop-Z;H-=Ee,fe-=Ee}if(J)break;R=Jg(R)}})(t,P,i)}}ab=!0}}function Zv(n){let e=n;n.isCollapsed()||e.removeText();const t=at();Me(t)&&(e=t),Me(e)||oe(161);const r=e.anchor;let o=r.getNode(),i=r.offset;for(;!yl(o);){const s=o;if([o,i]=BOe(o,i),s.is(o))break}return i}function BOe(n,e){const t=n.getParent();if(!t){const o=Fl();return qo().append(o),o.select(),[qo(),0]}if(be(n)){const o=n.splitText(e);if(o.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,o[0].getIndexWithinParent()+i]}if(!Y(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const o=new jg(Li(n.__key,e,"element"),Li(n.__key,e,"element"),0,""),i=n.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}function zT(n,e,t,r,o="decorators-and-blocks"){if(e==="move"&&r==="character"&&!n.isCollapsed()){const[d,h]=t===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return h.set(d.key,d.offset,d.type),!0}const i=Wc(n.focus,t?"previous":"next"),s=r==="lineboundary",l=e==="move";let a=i,c=o==="decorators-and-blocks";if(!yDe(a)){for(const d of a){c=!1;const{origin:h}=d;if(!yt(h)||h.isIsolated()||(a=d,!s||!h.isInline()))break}if(c)for(const d of uO(i).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Ms(d))d.origin.isInline()||(a=d);else{if(Y(d.origin))continue;yt(d.origin)&&!d.origin.isInline()&&(a=d)}break}}if(a===i)return!1;if(l&&!s&&yt(a.origin)&&a.origin.isKeyboardSelectable()){const d=DM();return d.add(a.origin.getKey()),ho(d),!0}return a=bi(a),l&&sg(n.anchor,a),sg(n.focus,a),c||!s}let tn=null,Sn=null,Sr=!1,Gv=!1,$1=0;const VT={characterData:!0,childList:!0,subtree:!0};function Gg(){return Sr||tn!==null&&tn._readOnly}function mn(){Sr&&oe(13)}function FM(){$1>99&&oe(14)}function ga(){return tn===null&&oe(195,PM()),tn}function At(){return Sn===null&&oe(196,PM()),Sn}function PM(){let n=0;const e=new Set,t=ig.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=Q0(o);if(U3(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function WT(n,e,t){const r=e.__type,o=YM(n,r);let i=t.get(r);i===void 0&&(i=Array.from(o.transforms),t.set(r,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function KT(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function IM(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const o of r)t.add(o)}function BM(n,e){const t=n.type,r=e.get(t);r===void 0&&oe(17,t);const o=r.klass;n.type!==o.getType()&&oe(18,o.name);const i=o.importJSON(n),s=n.children;if(Y(i)&&Array.isArray(s))for(let l=0;l<s.length;l++){const a=BM(s[l],e);i.append(a)}return i}function UT(n,e,t){const r=tn,o=Sr,i=Sn;tn=e,Sr=!0,Sn=n;try{return t()}finally{tn=r,Sr=o,Sn=i}}function Cs(n,e){const t=n._pendingEditorState,r=n._rootElement,o=n._headless||r===null;if(t===null)return;const i=n._editorState,s=i._selection,l=t._selection,a=n._dirtyType!==0,c=tn,d=Sr,h=Sn,f=n._updating,g=n._observer;let p=null;if(n._pendingEditorState=null,n._editorState=t,!o&&a&&g!==null){Sn=n,tn=t,Sr=!1,n._updating=!0;try{const b=n._dirtyType,T=n._dirtyElements,w=n._dirtyLeaves;g.disconnect(),p=tOe(i,t,n,b,T,w)}catch(b){if(b instanceof Error&&n._onError(b),Gv)throw b;return JM(n,null,r,t),JA(n),n._dirtyType=2,Gv=!0,Cs(n,i),void(Gv=!1)}finally{g.observe(r,VT),n._updating=f,tn=c,Sr=d,Sn=h}}t._readOnly||(t._readOnly=!0);const m=n._dirtyLeaves,_=n._dirtyElements,C=n._normalizedNodes,y=n._updateTags,v=n._deferred;a&&(n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(b,T){const w=b._decorators;let S=b._pendingDecorators||w;const N=T._nodeMap;let $;for($ in S)N.has($)||(S===w&&(S=nO(b)),delete S[$])}(n,t);const k=o?null:Ks(go(n));if(n._editable&&k!==null&&(a||l===null||l.dirty||!l.is(s))&&r!==null&&!y.has(TOe)){Sn=n,tn=t;try{if(g!==null&&g.disconnect(),a||l===null||l.dirty){const b=n._blockCursorElement;b!==null&&hb(b,n,r),IOe(s,l,n,k,y,r)}(function(b,T,w){let S=b._blockCursorElement;if(Me(w)&&w.isCollapsed()&&w.anchor.type==="element"&&T.contains(document.activeElement)){const N=w.anchor,$=N.getNode(),O=N.offset;let M=!1,A=null;if(O===$.getChildrenSize())Yv($.getChildAtIndex(O-1))&&(M=!0);else{const F=$.getChildAtIndex(O);if(F!==null&&Yv(F)){const P=F.getPreviousSibling();(P===null||Yv(P))&&(M=!0,A=b.getElementByKey(F.__key))}}if(M){const F=b.getElementByKey($.__key);return S===null&&(b._blockCursorElement=S=function(P){const z=P.theme,I=document.createElement("div");I.contentEditable="false",I.setAttribute("data-lexical-cursor","true");let L=z.blockCursor;if(L!==void 0){if(typeof L=="string"){const U=HA(L);L=z.blockCursor=U}L!==void 0&&I.classList.add(...L)}return I}(b._config)),T.style.caretColor="transparent",void(A===null?F.appendChild(S):F.insertBefore(S,A))}}S!==null&&hb(S,b,T)})(n,r,l)}finally{g!==null&&g.observe(r,VT),Sn=h,tn=c}}p!==null&&function(b,T,w,S,N){const $=Array.from(b._listeners.mutation),O=$.length;for(let M=0;M<O;M++){const[A,F]=$[M];for(const P of F){const z=T.get(P);z!==void 0&&A(z,{dirtyLeaves:S,prevEditorState:N,updateTags:w})}}}(n,p,y,m,i),Me(l)||l===null||s!==null&&s.is(l)||n.dispatchCommand(iM,void 0);const x=n._pendingDecorators;x!==null&&(n._decorators=x,n._pendingDecorators=null,fh("decorator",n,!0,x)),function(b,T,w){const S=GT(T),N=GT(w);S!==N&&fh("textcontent",b,!0,N)}(n,e||i,t),fh("update",n,!0,{dirtyElements:_,dirtyLeaves:m,editorState:t,mutatedNodes:p,normalizedNodes:C,prevEditorState:e||i,tags:y}),function(b,T){if(b._deferred=[],T.length!==0){const w=b._updating;b._updating=!0;try{for(let S=0;S<T.length;S++)T[S]()}finally{b._updating=w}}}(n,v),function(b){const T=b._updates;if(T.length!==0){const w=T.shift();if(w){const[S,N]=w;J0(b,S,N)}}}(n)}function fh(n,e,t,...r){const o=e._updating;e._updating=t;try{const i=Array.from(e._listeners[n]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{e._updating=o}}function HT(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const o=t.shift();if(o){const[i,s]=o,l=n._pendingEditorState;let a;s!==void 0&&(a=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(l===null&&oe(191),l._flushSync=!0),a&&n._deferred.push(a),IM(n,s.tag)),l==null?J0(n,i,s):i()}}return r}function J0(n,e,t){const r=n._updateTags;let o,i=!1,s=!1;t!==void 0&&(o=t.onUpdate,IM(n,t.tag),i=t.skipTransforms||!1,s=t.discrete||!1),o&&n._deferred.push(o);const l=n._editorState;let a=n._pendingEditorState,c=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=WM(a||l),c=!0),a._flushSync=s;const d=tn,h=Sr,f=Sn,g=n._updating;tn=a,Sr=!1,n._updating=!0,Sn=n;const p=n._headless||n.getRootElement()===null;K3(null);try{c&&(p?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=function(y,v){const k=y.getEditorState()._selection,x=Ks(go(y));return Me(k)||k==null?W3(k,x,y,v):k.clone()}(n,t&&t.event||null));const _=n._compositionKey;e(),i=HT(n,i),function(y,v){const k=v.getEditorState()._selection,x=y._selection;if(Me(x)){const b=x.anchor,T=x.focus;let w;if(b.type==="text"&&(w=b.getNode(),w.selectionTransform(k,x)),T.type==="text"){const S=T.getNode();w!==S&&S.selectionTransform(k,x)}}}(a,n),n._dirtyType!==0&&(i?function(y,v){const k=v._dirtyLeaves,x=y._nodeMap;for(const b of k){const T=x.get(b);be(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&_T(T)}}(a,n):function(y,v){const k=v._dirtyLeaves,x=v._dirtyElements,b=y._nodeMap,T=Sl(),w=new Map;let S=k,N=S.size,$=x,O=$.size;for(;N>0||O>0;){if(N>0){v._dirtyLeaves=new Set;for(const M of S){const A=b.get(M);be(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&_T(A),A!==void 0&&KT(A,T)&&WT(v,A,w),k.add(M)}if(S=v._dirtyLeaves,N=S.size,N>0){$1++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,$.delete("root")&&$.set("root",!0);for(const M of $){const A=M[0],F=M[1];if(x.set(A,F),!F)continue;const P=b.get(A);P!==void 0&&KT(P,T)&&WT(v,P,w)}S=v._dirtyLeaves,N=S.size,$=v._dirtyElements,O=$.size,$1++}v._dirtyLeaves=k,v._dirtyElements=x}(a,n),HT(n),function(y,v,k,x){const b=y._nodeMap,T=v._nodeMap,w=[];for(const[S]of x){const N=T.get(S);N!==void 0&&(N.isAttached()||(Y(N)&&jA(N,S,b,T,w,x),b.has(S)||x.delete(S),w.push(S)))}for(const S of w)T.delete(S);for(const S of k){const N=T.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),T.delete(S))}}(l,a,n._dirtyLeaves,n._dirtyElements)),_!==n._compositionKey&&(a._flushSync=!0);const C=a._selection;if(Me(C)){const y=a._nodeMap,v=C.anchor.key,k=C.focus.key;y.get(v)!==void 0&&y.get(k)!==void 0||oe(19)}else V3(C)&&C._nodes.size===0&&(a._selection=null)}catch(_){return _ instanceof Error&&n._onError(_),n._pendingEditorState=l,n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void Cs(n)}finally{tn=d,Sr=h,Sn=f,n._updating=g,$1=0}n._dirtyType!==0||n._deferred.length>0||function(_,C){const y=C.getEditorState()._selection,v=_._selection;if(v!==null){if(v.dirty||!v.is(y))return!0}else if(y!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,Cs(n)):c&&WOe(()=>{Cs(n)}):(a._flushSync=!1,c&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Vr(n,e,t){Sn===n&&t===void 0?e():J0(n,e,t)}let ROe=class A1{constructor(e,t,r){E(this,"element");E(this,"before");E(this,"after");this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new A1(this.element,e,this.after)}withAfter(e){return new A1(this.element,this.before,e)}withElement(e){return this.element===e?this:new A1(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&oe(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&oe(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&oe(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(ng||Sd||tg);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,o){if(r===this.element){const a=this.getFirstChildOffset();return[e,Math.min(a+e.getChildrenSize(),Math.max(a,o))]}const i=qT(t,r);i.push(o);const s=qT(t,this.element);let l=e.getIndexWithinParent();for(let a=0;a<s.length;a++){const c=i[a],d=s[a];if(c===void 0||c<d)break;if(c>d){l+=1;break}}return[e.getParentOrThrow(),l]}};function qT(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;t.push(o)}return r!==n&&oe(225),t.reverse()}let Y0=class extends Ll{constructor(t){super(t);E(this,"__first");E(this,"__last");E(this,"__size");E(this,"__format");E(this,"__style");E(this,"__indent");E(this,"__dir");E(this,"__textFormat");E(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return VMe[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=At()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(be(r)&&t.push(r),Y(r)){const o=r.getAllTextNodes();t.push(...o)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;Y(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;Y(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),o=r.length;if(t>=o){const s=r[o-1];return Y(s)&&s.getLastDescendant()||s||null}const i=r[t];return Y(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:nn(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&oe(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:nn(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&oe(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let o,i;if(t<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=t;){if(i===t)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=t;){if(i===t)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let t="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContent(),Y(s)&&i!==o-1&&!s.isInline()&&(t+=Ql)}return t}getTextContentSize(){let t=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContentSize(),Y(s)&&i!==o-1&&!s.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(t!==""){const r=cT[t];return(this.getFormat()&r)!==0}return!1}hasTextFormat(t){const r=sr[t];return(this.getTextFormat()&r)!==0}getFormatFlags(t,r){return a_(this.getLatest().__textFormat,t,r)}getTextStyle(){return this.getLatest().__textStyle}select(t,r){mn();const o=at();let i=t,s=r;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(t===0&&r===0){const c=this.getFirstChild();if(be(c)||Y(c))return c.select(0,0)}else if(!(t!==void 0&&t!==l||r!==void 0&&r!==l)){const c=this.getLastChild();if(be(c)||Y(c))return c.select()}}i===void 0&&(i=l),s===void 0&&(s=l);const a=this.__key;return Me(o)?(o.anchor.set(a,i,"element"),o.focus.set(a,s,"element"),o.dirty=!0,o):OM(a,i,a,s,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(r=>r.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?cT[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const r=this.getWritable();return r.__textFormat=t,r}setTextStyle(t){const r=this.getWritable();return r.__textStyle=t,r}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,o){i_(this)&&oe(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();t+r<=i||oe(226,String(t),String(r),String(i));const l=s.__key,a=[],c=[],d=this.getChildAtIndex(t+r);let h=null,f=i-r+o.length;if(t!==0)if(t===i)h=this.getLastChild();else{const p=this.getChildAtIndex(t);p!==null&&(h=p.getPreviousSibling())}if(r>0){let p=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<r;m++){p===null&&oe(100);const _=p.getNextSibling(),C=p.__key;oc(p.getWritable()),c.push(C),p=_}}let g=h;for(const p of o){g!==null&&p.is(g)&&(h=g=g.getPreviousSibling());const m=p.getWritable();m.__parent===l&&f--,oc(m);const _=p.__key;if(g===null)s.__first=_,m.__prev=null;else{const C=g.getWritable();C.__next=_,m.__prev=C.__key}p.__key===l&&oe(76),m.__parent=l,a.push(_),g=p}if(t+r===i)g!==null&&(g.getWritable().__next=null,s.__last=g.__key);else if(d!==null){const p=d.getWritable();if(g!==null){const m=g.getWritable();p.__prev=g.__key,m.__next=d.__key}else p.__prev=null}if(s.__size=f,c.length){const p=at();if(Me(p)){const m=new Set(c),_=new Set(a),{anchor:C,focus:y}=p;jT(C,m,_)&&l_(C,C.getNode(),this,h,d),jT(y,m,_)&&l_(y,y.getNode(),this,h,d),f!==0||this.canBeEmpty()||pa(this)||this.remove()}}return s}getDOMSlot(t){return new ROe(t)}exportDOM(t){const{element:r}=super.exportDOM(t);if(Yr(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r!==0&&(t.textFormat=r),o!==""&&(t.textStyle=o),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,r){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,r){const o=this.getDOMSlot(t);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const l=r.getElementByKey(s.getKey());l!==null&&(i==null?(o.insertChild(l),i=l):i!==l&&o.replaceChild(l,i),i=i.nextSibling)}}};function Y(n){return n instanceof Y0}function jT(n,e,t){let r=n.getNode();for(;r;){const o=r.__key;if(e.has(o)&&!t.has(o))return!0;r=r.getParent()}return!1}let RM=class extends Ll{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function yt(n){return n instanceof RM}let zM=class VM extends Y0{constructor(){super("root");E(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new VM}getTopLevelElementOrThrow(){oe(51)}getTextContent(){const t=this.__cachedText;return!Gg()&&At()._dirtyType!==0||t===null?super.getTextContent():t}remove(){oe(52)}replace(t){oe(53)}insertBefore(t){oe(54)}insertAfter(t){oe(55)}updateDOM(t,r){return!1}splice(t,r,o){for(const i of o)Y(i)||yt(i)||oe(282);return super.splice(t,r,o)}static importJSON(t){return qo().updateFromJSON(t)}collapseAtStart(){return!0}};function Mn(n){return n instanceof zM}function WM(n){return new HM(new Map(n._nodeMap))}function KM(){return new HM(new Map([["root",new zM]]))}function UM(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&oe(130,t.name),Y(n)){const r=e.children;Array.isArray(r)||oe(59,t.name);const o=n.getChildren();for(let i=0;i<o.length;i++){const s=UM(o[i]);r.push(s)}}return e}let HM=class qM{constructor(e,t){E(this,"_nodeMap");E(this,"_selection");E(this,"_flushSync");E(this,"_readOnly");this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return UT(t&&t.editor||null,this,e)}clone(e){const t=new qM(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return UT(null,this,()=>({root:UM(qo())}))}},jM=class ZM extends Y0{static getType(){return"paragraph"}static clone(e){return new ZM(e.__key)}createDOM(e){const t=document.createElement("p"),r=Qu(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:zOe,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Yr(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();r&&(t.style.textAlign=r)}return{element:t}}static importJSON(e){return Fl().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){const r=Fl();r.setTextFormat(e.format),r.setTextStyle(e.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||be(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function zOe(n){const e=Fl();return n.style&&(e.setFormat(n.style.textAlign),oDe(n,e)),{node:e}}function Fl(){return ny(new jM)}function GM(n){return n instanceof jM}function JM(n,e,t,r){const o=n._keyToDOMMap;o.clear(),n._editorState=KM(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",o.set("root",t))}var q2;let ig=(q2=class{constructor(e,t,r,o,i,s,l,a){E(this,"_headless");E(this,"_parentEditor");E(this,"_rootElement");E(this,"_editorState");E(this,"_pendingEditorState");E(this,"_compositionKey");E(this,"_deferred");E(this,"_keyToDOMMap");E(this,"_updates");E(this,"_updating");E(this,"_listeners");E(this,"_commands");E(this,"_nodes");E(this,"_decorators");E(this,"_pendingDecorators");E(this,"_config");E(this,"_dirtyType");E(this,"_cloneNotNeeded");E(this,"_dirtyLeaves");E(this,"_dirtyElements");E(this,"_normalizedNodes");E(this,"_updateTags");E(this,"_observer");E(this,"_key");E(this,"_onError");E(this,"_htmlConversions");E(this,"_window");E(this,"_editable");E(this,"_blockCursorElement");E(this,"_createEditorArgs");this._createEditorArgs=a,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=HOe(),this._onError=i,this._htmlConversions=s,this._editable=l,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&oe(35);const o=this._commands;o.has(e)||o.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(e);i===void 0&&oe(36,String(e));const s=i[r];return s.add(t),()=>{s.delete(t),i.every(l=>l.size===0)&&o.delete(e)}}registerMutationListener(e,t,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let s=i.get(t);s===void 0&&(s=new Set,i.set(t,s)),s.add(o);const l=r&&r.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(t,o),()=>{s.delete(o),s.size===0&&i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&oe(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,o=rE(r).get(t.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,t);o.push(s)}return function(s,l){const a=rE(s.getEditorState()),c=[];for(const d of l){const h=a.get(d);h&&c.push(h)}c.length!==0&&s.update(()=>{for(const d of c)for(const h of d.keys()){const f=nn(h);f&&f.markDirty()}},s._pendingEditorState===null?{tag:Uv}:void 0)}(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return me(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=Qu(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=e,JM(this,t,e,o),t!==null&&(this._config.disableEvents||kOe(t),r!=null&&t.classList.remove(...r)),e!==null){const i=J3(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,JA(this),this._updateTags.add(Uv),Cs(this),this._config.disableEvents||function(l,a){const c=l.ownerDocument;lb.set(l,c);const d=o_.get(c)??0;d<1&&c.addEventListener("selectionchange",yM),o_.set(c,d+1),l.__lexicalEditor=a;const h=_M(l);for(let f=0;f<sb.length;f++){const[g,p]=sb[f],m=typeof p=="function"?_=>{TT(_)||(wT(_),(a.isEditable()||g==="click")&&p(_,a))}:_=>{if(TT(_))return;wT(_);const C=a.isEditable();switch(g){case"cut":return C&&me(a,uM,_);case"copy":return me(a,cM,_);case"paste":return C&&me(a,sM,_);case"dragstart":return C&&me(a,mOe,_);case"dragover":return C&&me(a,_Oe,_);case"dragend":return C&&me(a,yOe,_);case"focus":return C&&me(a,vOe,_);case"blur":return C&&me(a,COe,_);case"drop":return C&&me(a,pOe,_)}};l.addEventListener(g,m),h.push(()=>{l.removeEventListener(g,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add(Uv),Cs(this);fh("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&oe(38);let r=e;r._readOnly&&(r=WM(e),r._selection=e._selection?e._selection.clone():null),GA(this);const o=this._pendingEditorState,i=this._updateTags,s=t!==void 0?t.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),Cs(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||Cs(this)}parseEditorState(e,t){return function(r,o,i){const s=KM(),l=tn,a=Sr,c=Sn,d=o._dirtyElements,h=o._dirtyLeaves,f=o._cloneNotNeeded,g=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,tn=s,Sr=!1,Sn=o,K3(null);try{const p=o._nodes;BM(r.root,p),i&&i(),s._readOnly=!0}catch(p){p instanceof Error&&o._onError(p)}finally{o._dirtyElements=d,o._dirtyLeaves=h,o._cloneNotNeeded=f,o._dirtyType=g,tn=l,Sr=a,Sn=c}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return Cs(this),this.getEditorState().read(e,{editor:this})}update(e,t){(function(r,o,i){r._updating?r._updates.push([o,i]):J0(r,o,i)})(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Vr(this,()=>{const o=at(),i=qo();o!==null?o.dirty||ho(o.clone()):i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),ZOe("focus"),GOe(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=Ks(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,fh("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}},E(q2,"version"),q2);ig.version="0.38.1+prod.esm";let db=null;function K3(n){db=n}let VOe=1;function YM(n,e){const t=XM(n,e);return t===void 0&&oe(30,e),t}function XM(n,e){return n._nodes.get(e)}const WOe=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function ZT(n){return yt(H3(n))}function QM(n){const e=document.activeElement;if(!Yr(e))return!1;const t=e.nodeName;return yt(H3(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&Q0(e)==null)}function X0(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!QM(e)&&eO(e)===n}catch{return!1}}function U3(n){return n instanceof ig}function eO(n){let e=n;for(;e!=null;){const t=Q0(e);if(U3(t))return t;e=Jg(e)}return null}function Q0(n){return n?n.__lexicalEditor:null}function rc(n){return TM(n)||n.isToken()}function ul(n){return rc(n)||n.isSegmented()}function Ys(n){return Yg(n)&&n.nodeType===3}function KOe(n){return Yg(n)&&n.nodeType===9}function Td(n){let e=n;for(;e!=null;){if(Ys(e))return e;e=e.firstChild}return null}function a_(n,e,t){const r=sr[e];if(t!==null&&(n&r)===(t&r))return n;let o=n^r;return e==="subscript"?o&=~sr.superscript:e==="superscript"?o&=~sr.subscript:e==="lowercase"?(o&=~sr.uppercase,o&=~sr.capitalize):e==="uppercase"?(o&=~sr.lowercase,o&=~sr.capitalize):e==="capitalize"&&(o&=~sr.lowercase,o&=~sr.uppercase),o}function UOe(n,e){const t=function(){const s=db;return db=null,s}();if((e=e||t&&t.__key)!=null)return void(n.__key=e);mn(),FM();const r=At(),o=ga(),i=""+VOe++;o._nodeMap.set(i,n),Y(n)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,n.__key=i}function oc(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),o=n.getPreviousSibling(),i=n.getNextSibling(),s=i!==null?i.__key:null,l=o!==null?o.__key:null,a=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=l),a!==null&&(a.__next=s),c!==null&&(c.__prev=l),t.__prev=null,t.__next=null,t.__parent=null,r.__size--}}function c_(n){FM(),i_(n)&&oe(323,n.__key,n.__type);const e=n.getLatest(),t=e.__parent,r=ga(),o=At(),i=r._nodeMap,s=o._dirtyElements;t!==null&&function(a,c,d){let h=a;for(;h!==null;){if(d.has(h))return;const f=c.get(h);if(f===void 0)break;d.set(h,!1),h=f.__parent}}(t,i,s);const l=e.__key;o._dirtyType=1,Y(n)?s.set(l,!0):o._dirtyLeaves.add(l)}function _n(n){mn();const e=At(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=nn(t);r!==null&&r.getWritable()}if(n!==null){const r=nn(n);r!==null&&r.getWritable()}}}function Sl(){return Gg()?null:At()._compositionKey}function nn(n,e){const t=(e||ga())._nodeMap.get(n);return t===void 0?null:t}function tO(n,e){const t=ey(n,At());return t!==void 0?nn(t,e):null}function ey(n,e){return n[`__lexicalKey_${e._key}`]}function H3(n,e){let t=n;for(;t!=null;){const r=tO(t,e);if(r!==null)return r;t=Jg(t)}return null}function nO(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function GT(n){return n.read(()=>qo().getTextContent())}function qo(){return rO(ga())}function rO(n){return n._nodeMap.get("root")}function ho(n){mn();const e=ga();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Ru(n){const e=At(),t=function(r,o){let i=r;for(;i!=null;){const s=ey(i,o);if(s!==void 0)return s;i=Jg(i)}return null}(n,e);return t===null?n===e.getRootElement()?nn("root"):null:nn(t)}function oO(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function q3(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function HOe(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function iO(n){return Ys(n)?n.nodeValue:null}function j3(n,e,t){const r=Ks(go(e));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let l=iO(o);const a=H3(o);if(l!==null&&be(a)){if(l===Z0&&t){const c=t.length;l=t,i=c,s=c}l!==null&&Z3(a,l,i,s,n)}}}function Z3(n,e,t,r,o){let i=n;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let l=e;(s||o)&&e[e.length-1]===Z0&&(l=e.slice(0,-1));const a=i.getTextContent();if(o||l!==a){if(l===""){if(_n(null),tg||Sd||ng)i.remove();else{const m=At();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),d=Zg(),h=i.getTextContentSize(),f=Sl(),g=i.getKey();if(i.isToken()||f!==null&&g===f&&!s||Me(d)&&(c!==null&&!c.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===n.__key&&d.anchor.offset===0&&!i.canInsertTextBefore()&&!s||d.focus.key===n.__key&&d.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=at();if(!Me(p)||t===null||r===null)return void JT(i,l,p);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=Pt(i.getTextContent());i.replace(m),i=m}JT(i,l,p)}}}function JT(n,e,t){if(n.setTextContent(e),Me(t)){const r=n.getKey();for(const o of["anchor","focus"]){const i=t[o];i.type==="text"&&i.key===r&&(i.offset=Pl(n,i.offset,"clamp"))}}}function Hp(n,e,t){const r=e[t]||!1;return r==="any"||r===n[t]}function qOe(n,e){return Hp(n,e,"altKey")&&Hp(n,e,"ctrlKey")&&Hp(n,e,"shiftKey")&&Hp(n,e,"metaKey")}function nt(n,e,t){return qOe(n,t)&&n.key.toLowerCase()===e.toLowerCase()}const as={ctrlKey:!No,metaKey:No},YT={altKey:No,ctrlKey:!No};function XT(n){return n.key==="Backspace"}function QT(n){return nt(n,"a",as)}function Qu(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const o=n[e];if(typeof o=="string"){const i=HA(o);return t[e]=i,i}return o}function G3(n,e,t,r,o){if(t.size===0)return;const i=r.__type,s=r.__key,l=e.get(i);l===void 0&&oe(33,i);const a=l.klass;let c=n.get(a);c===void 0&&(c=new Map,n.set(a,c));const d=c.get(s),h=d==="destroyed"&&o==="created";(d===void 0||h)&&c.set(s,h?"updated":o)}function eE(n,e,t){const r=n.getParent();let o=t,i=n;return r!==null&&(e&&t===0?(o=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function jOe(n,e){const t=n.offset;if(n.type==="element")return eE(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const o=e?r.getPreviousSibling():r.getNextSibling();return o===null?eE(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):o}}return null}function sO(n){const e=go(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function me(n,e,t){return function(r,o,i){const s=q3(r);for(let l=4;l>=0;l--)for(let a=0;a<s.length;a++){const c=s[a],d=c._commands.get(o);if(d!==void 0){const h=d[l];if(h!==void 0){const f=Array.from(h),g=f.length;let p=!1;if(Vr(c,()=>{for(let m=0;m<g;m++)if(f[m](i,r))return void(p=!0)}),p)return p}}}return!1}(n,e,t)}function ty(n){return!Mn(n)&&!n.isLastChild()&&!n.isInline()}function Rc(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&oe(75,e),t}function Jg(n){const e=n.assignedSlot||n.parentElement;return QOe(e)?e.host:e}function lO(n){return KOe(n)?n:Yr(n)?n.ownerDocument:null}function ZOe(n){mn(),At()._updateTags.add(n)}function GOe(n){mn(),At()._deferred.push(n)}function fb(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function J3(n){const e=lO(n);return e?e.defaultView:null}function go(n){const e=n._window;return e===null&&oe(78),e}function JOe(n){let e=n.getParentOrThrow();for(;e!==null;){if(pa(e))return e;e=e.getParentOrThrow()}return e}function pa(n){return Mn(n)||Y(n)&&n.isShadowRoot()}function ny(n){const e=At(),t=n.getType(),r=XM(e,t);r===void 0&&oe(200,n.constructor.name,t);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(n),l=s.constructor;return i!==null?s instanceof i||oe(201,i.name,i.getType(),l.name,l.getType(),n.constructor.name,t):s instanceof n.constructor&&l!==n.constructor||oe(202,l.name,l.getType(),n.constructor.name,t),s.__key===n.__key&&oe(203,n.constructor.name,t,l.name,l.getType()),s}return n}function Jv(n,e){!Mn(n.getParent())||Y(e)||yt(e)||oe(99)}function YOe(n){const e=nn(n);return e===null&&oe(63,n),e}function Yv(n){return(yt(n)||Y(n)&&!n.canBeEmpty())&&!n.isInline()}function hb(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function Ks(n){return Yo?(n||window).getSelection():null}function XOe(n){const e=J3(n);return e?e.getSelection():null}function Yr(n){return Yg(n)&&n.nodeType===1}function Yg(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function QOe(n){return Yg(n)&&n.nodeType===11}function eDe(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function tE(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function yl(n){if(yt(n)&&!n.isInline())return!0;if(!Y(n)||pa(n))return!1;const e=n.getFirstChild(),t=e===null||Xu(e)||be(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function tDe(){return At()}const nE=new WeakMap,nDe=new Map;function rE(n){if(!n._readOnly&&n.isEmpty())return nDe;n._readOnly||oe(192);let e=nE.get(n);return e||(e=function(t){const r=new Map;for(const[o,i]of t._nodeMap){const s=i.__type;let l=r.get(s);l||(l=new Map,r.set(s,l)),l.set(o,i)}return r}(n),nE.set(n,e)),e}function rDe(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function oDe(n,e){const t=parseInt(n.style.paddingInlineStart,10)||0,r=Math.round(t/40);e.setIndent(r)}function iDe(n){return n.__lexicalUnmanaged===!0}function Lf(n,e){return function(t,r){return Object.prototype.hasOwnProperty.call(t,r)}(n,e)&&n[e]!==Ll[e]}function sDe(n){const e=uT in n.prototype?n.prototype[uT]():void 0,t=function(s){if(!(s===Ll||s.prototype instanceof Ll)){let l="<unknown>",a="<unknown>";try{l=s.getType()}catch{}try{ig.version&&(a=JSON.parse(ig.version))}catch{}oe(290,s.name,l,a)}return s===RM||s===Y0||s===Ll}(n),r=!t&&Lf(n,"getType")?n.getType():void 0;let o,i=r;if(e)if(r)o=e[r];else for(const[s,l]of Object.entries(e))i=s,o=l;if(!t&&i&&(Lf(n,"getType")||(n.getType=()=>i),Lf(n,"clone")||(n.clone=s=>(K3(s),new n)),Lf(n,"importJSON")||(n.importJSON=o&&o.$importJSON||(s=>new n().updateFromJSON(s))),!Lf(n,"importDOM")&&o)){const{importDOM:s}=o;s&&(n.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const M1=(n,e)=>{let t=n;for(;t!=null&&!Mn(t);){if(e(t))return t;t=t.getParent()}return null},lDe={next:"previous",previous:"next"};let Y3=class{constructor(e){E(this,"origin");this.origin=e}[Symbol.iterator](){return dO({hasNext:Ed,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Jn(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Jn(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){const o=r===this.direction?t:Array.from(t).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let a=i.getAdjacentCaret();a!==null&&l.size<e;a=a.getAdjacentCaret()){const c=a.origin.getWritable();l.set(c.getKey(),c)}for(const a of o){if(l.size>0){const c=i.getNodeAtCaret();if(c){if(l.delete(c.getKey()),l.delete(a.getKey()),!(c.is(a)||i.origin.is(a))){const d=a.getParent();d&&d.is(s)&&a.remove(),c.replace(a)}}else c===null&&oe(263,Array.from(l).join(" "))}else i.insert(a);i=Jn(a,this.direction)}for(const a of l.values())a.remove();return this}},gb=class aO extends Y3{constructor(){super(...arguments);E(this,"type","child")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:ea(t,this.direction)}getParentCaret(t="root"){return Jn(X3(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=Xd(this.direction);return Jn(this.getNodeAtCaret(),t)||ea(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof aO&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}};const aDe={root:Mn,shadowRoot:pa};function Xd(n){return lDe[n]}function X3(n,e="root"){return aDe[e](n)?null:n}let u_=class pb extends Y3{constructor(){super(...arguments);E(this,"type","sibling")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Jn(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Y(this.origin)?ea(this.origin,this.direction):null}getParentCaret(t="root"){return Jn(X3(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=Xd(this.direction);return Jn(this.getNodeAtCaret(),t)||ea(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof pb&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof pb||t instanceof d_)&&this.direction===t.direction&&this.origin.is(t.origin)}},d_=class mb extends Y3{constructor(t,r){super(t);E(this,"type","text");E(this,"offset");this.offset=r}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:zc(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Jn(X3(this.getParentAtCaret(),t),this.direction)}getFlipped(){return zc(this.origin,Xd(this.direction),this.offset)}isSamePointCaret(t){return t instanceof mb&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof u_||t instanceof mb)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Jn(this.origin,this.direction)}};function ic(n){return n instanceof d_}function Ed(n){return n instanceof u_}function Ms(n){return n instanceof gb}const cDe={next:class extends d_{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends d_{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},uDe={next:class extends u_{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends u_{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},dDe={next:class extends gb{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends gb{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Jn(n,e){return n?new uDe[e](n):null}function zc(n,e,t){return n?new cDe[e](n,Pl(n,t)):null}function Pl(n,e,t="error"){const r=n.getTextContentSize();let o=e==="next"?r:e==="previous"?0:e;return(o<0||o>r)&&(t!=="clamp"&&KA(284,String(e),String(r),n.getKey()),o=o<0?0:r),o}function oE(n,e){return new gDe(n,e)}function ea(n,e){return Y(n)?new dDe[e](n):null}function fDe(n){return n&&n.getChildCaret()||n}function Q3(n){return n&&fDe(n.getAdjacentCaret())}let hDe=class cO{constructor(e,t,r){E(this,"type","node-caret-range");E(this,"direction");E(this,"anchor");E(this,"focus");this.anchor=e,this.focus=t,this.direction=r}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new cO(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=o=>{const i=this[o].getLatest();return ic(i)?function(s,l){const{direction:a,origin:c}=s,d=Pl(c,l==="focus"?Xd(a):a);return oE(s,d-s.offset)}(i,o):null},t=e("anchor"),r=e("focus");if(t&&r){const{caret:o}=t,{caret:i}=r;if(o.isSameNodeCaret(i))return[oE(o,i.offset-o.offset),null]}return[t,r]}iterNodeCarets(e="root"){const t=ic(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=ic(r),i=s=>s.isSameNodeCaret(r)?null:Q3(s)||s.getParentCaret(e);return dO({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:t.isSameNodeCaret(r)?null:i(t),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}},gDe=class{constructor(e,t){E(this,"type","slice");E(this,"caret");E(this,"distance");this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[r,o]=this.getSliceIndices(),i=e.getTextContent();return zc(e.setTextContent(i.slice(0,r)+i.slice(o)),t,r)}};function uO(n){return Vc(n,Jn(qo(),n.direction))}function pDe(n){return Vc(n,n)}function Vc(n,e){return n.direction!==e.direction&&oe(265),new hDe(n,e,n.direction)}function dO(n){const{initial:e,hasNext:t,step:r,map:o}=n;let i=e;return{[Symbol.iterator](){return this},next(){if(!t(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function fO(n,e){const t=O1(n.origin,e.origin);switch(t===null&&oe(275,n.origin.getKey(),e.origin.getKey()),t.type){case"same":{const r=n.type==="text",o=e.type==="text";return r&&o?function(i,s){return Math.sign(i-s)}(n.offset,e.offset):n.type===e.type?0:r?-1:o?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return hO(t)}}function hO(n){const{a:e,b:t}=n,r=e.__key,o=t.__key;let i=e,s=t;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function qp(n,e){return e.is(n)}function iE(n){return Y(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function O1(n,e){if(n.is(e))return{commonAncestor:n,type:"same"};const t=new Map;for(let[r,o]=iE(n);r;o=r,r=r.getParent())t.set(r,o);for(let[r,o]=iE(e);r;o=r,r=r.getParent()){const i=t.get(r);if(i!==void 0)return i===null?(qp(n,r)||oe(276),{commonAncestor:r,type:"ancestor"}):o===null?(qp(e,r)||oe(277),{commonAncestor:r,type:"descendant"}):((Y(i)||qp(n,i))&&(Y(o)||qp(e,o))&&r.is(i.getParent())&&r.is(o.getParent())||oe(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Wc(n,e){const{type:t,key:r,offset:o}=n,i=YOe(n.key);return t==="text"?(be(i)||oe(266,i.getType(),r),zc(i,e,o)):(Y(i)||oe(267,i.getType(),r),vDe(i,n.offset,e))}function sg(n,e){const{origin:t,direction:r}=e,o=r==="next";ic(e)?n.set(t.getKey(),e.offset,"text"):Ed(e)?be(t)?n.set(t.getKey(),Pl(t,r),"text"):n.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent()+(o?1:0),"element"):(Ms(e)&&Y(t)||oe(268),n.set(t.getKey(),o?0:t.getChildrenSize(),"element"))}function mDe(n){const e=at(),t=Me(e)?e:POe();return D1(t,n),ho(t),t}function D1(n,e){sg(n.anchor,e.anchor),sg(n.focus,e.focus)}function sE(n){const{anchor:e,focus:t}=n,r=Wc(e,"next"),o=Wc(t,"next"),i=fO(r,o)<=0?"next":"previous";return Vc(Nd(r,i),Nd(o,i))}function ex(n){const{direction:e,origin:t}=n,r=Jn(t,Xd(e)).getNodeAtCaret();return r?Jn(r,e):ea(t.getParentOrThrow(),e)}function lE(n,e="root"){const t=[n];for(let r=Ms(n)?n.getParentCaret(e):n.getSiblingCaret();r!==null;r=r.getParentCaret(e))t.push(ex(r));return t}function Xv(n){return!!n&&n.origin.isAttached()}function _De(n,e="removeEmptySlices"){if(n.isCollapsed())return n;const t="root",r="next";let o=e;const i=gO(n,r),s=lE(i.anchor,t),l=lE(i.focus.getFlipped(),t),a=new Set,c=[];for(const p of i.iterNodeCarets(t))if(Ms(p))a.add(p.origin.getKey());else if(Ed(p)){const{origin:m}=p;Y(m)&&!a.has(m.getKey())||c.push(m)}for(const p of c)p.remove();for(const p of i.getTextSlices()){if(!p)continue;const{origin:m}=p.caret,_=m.getTextContentSize(),C=ex(Jn(m,r)),y=m.getMode();if(Math.abs(p.distance)===_&&o==="removeEmptySlices"||y==="token"&&p.distance!==0)C.remove();else if(p.distance!==0){o="removeEmptySlices";let v=p.removeTextSlice();const k=p.caret.origin;if(y==="segmented"){const x=v.origin,b=Pt(x.getTextContent()).setStyle(x.getStyle()).setFormat(x.getFormat());C.replaceOrInsert(b),v=zc(b,r,v.offset)}k.is(s[0].origin)&&(s[0]=v),k.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,h;for(const p of s)if(Xv(p)){d=bi(p);break}for(const p of l)if(Xv(p)){h=bi(p);break}const f=function(p,m,_){if(!p||!m)return null;const C=p.getParentAtCaret(),y=m.getParentAtCaret();if(!C||!y)return null;const v=C.getParents().reverse();v.push(C);const k=y.getParents().reverse();k.push(y);const x=Math.min(v.length,k.length);let b;for(b=0;b<x&&v[b]===k[b];b++);const T=(N,$)=>{let O;for(let M=b;M<N.length;M++){const A=N[M];if(pa(A))return;!O&&$(A)&&(O=A)}return O},w=T(v,yl),S=w&&T(k,N=>_.has(N.getKey())&&yl(N));return w&&S?[w,S]:null}(d,h,a);if(f){const[p,m]=f;ea(p,"previous").splice(0,m.getChildren()),m.remove()}const g=[d,h,...s,...l].find(Xv);if(g)return pDe(Nd(bi(g),n.direction));oe(269,JSON.stringify(s.map(p=>p.origin.__key)))}function bi(n){const e=function(o){let i=o;for(;Ms(i);){const s=Q3(i);if(!Ms(s))break;i=s}return i}(n.getLatest()),{direction:t}=e;if(be(e.origin))return ic(e)?e:zc(e.origin,t,t);const r=e.getAdjacentCaret();return Ed(r)&&be(r.origin)?zc(r.origin,t,Xd(t)):e}function yDe(n){return ic(n)&&n.offset!==Pl(n.origin,n.direction)}function Nd(n,e){return n.direction===e?n:n.getFlipped()}function gO(n,e){return n.direction===e?n:Vc(Nd(n.focus,e),Nd(n.anchor,e))}function vDe(n,e,t){let r=ea(n,"next");for(let o=0;o<e;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return Nd(r,t)}function ie(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);throw t.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function pO(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);t.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Xo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,CDe=Xo&&"documentMode"in document?document.documentMode:null,$o=Xo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Kc=Xo&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),f_=!(!Xo||!("InputEvent"in window)||CDe)&&"getTargetRanges"in new window.InputEvent("input"),lg=Xo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),$d=Xo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,bDe=Xo&&/Android/.test(navigator.userAgent),mO=Xo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),aE=Xo&&bDe&&mO,ag=Xo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&$o&&!mO;function _O(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const kDe=0,xDe=1,SDe=2,yO=128,wDe=1,TDe=2,EDe=3,NDe=4,$De=5,ADe=6,ry=lg||$d||ag?" ":"​",ta=`
50
+
51
+ `,MDe=Kc?" ":ry,lr={bold:1,capitalize:1024,code:16,highlight:yO,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},ODe={directionless:1,unmergeable:2},cE={center:2,end:6,justify:4,left:1,right:3,start:5},DDe={[TDe]:"center",[ADe]:"end",[NDe]:"justify",[wDe]:"left",[EDe]:"right",[$De]:"start"},LDe={normal:0,segmented:2,token:1},FDe={[kDe]:"normal",[SDe]:"segmented",[xDe]:"token"},uE="$config";function vO(n,e,t,r,o,i){let s=n.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&(te(s)&&vO(s,l,t,r,o,i),t.has(l)||i.delete(l),o.push(l)),s=s.getNextSibling()}}let _b=!1,tx=0;function PDe(n){tx=n.timeStamp}function Qv(n,e,t){const r=n.nodeName==="BR",o=e.__lexicalLineBreak;return o&&(n===o||r&&n.previousSibling===o)||r&&ay(n,t)!==void 0}function IDe(n,e,t){const r=Us(mo(t));let o=null,i=null;r!==null&&r.anchorNode===n&&(o=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&fx(e,s,o,i,!1)}function BDe(n,e,t){if(Oe(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return Xs(e)&&t.isAttached()}function RDe(n,e,t,r){for(let o=n;o&&!GLe(o);o=tp(o)){const i=ay(o,e);if(i!==void 0){const s=on(i,t);if(s)return bt(s)||!Xr(o)?void 0:[o,s]}else if(o===r)return[r,TD(t)]}}function CO(n,e,t){_b=!0;const r=performance.now()-tx>100;try{Wr(n,()=>{const o=ct()||function(f){return f.getEditorState().read(()=>{const g=ct();return g!==null?g.clone():null})}(n),i=new Map,s=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let c=!1,d="";for(let f=0;f<e.length;f++){const g=e[f],p=g.type,m=g.target,_=RDe(m,n,l,s);if(!_)continue;const[C,y]=_;if(p==="characterData")r&&we(y)&&Xs(m)&&BDe(o,m,y)&&IDe(m,y,n);else if(p==="childList"){c=!0;const v=g.addedNodes;for(let b=0;b<v.length;b++){const T=v[b],w=SD(T),S=T.parentNode;if(S!=null&&T!==a&&w===null&&!Qv(T,S,n)){if(Kc){const N=(Xr(T)?T.innerText:null)||T.nodeValue;N&&(d+=N)}S.removeChild(T)}}const k=g.removedNodes,x=k.length;if(x>0){let b=0;for(let T=0;T<x;T++){const w=k[T];(Qv(w,m,n)||a===w)&&(m.appendChild(w),b++)}x!==b&&i.set(C,y)}}}if(i.size>0)for(const[f,g]of i)g.reconcileObservedMutation(f,n);const h=t.takeRecords();if(h.length>0){for(let f=0;f<h.length;f++){const g=h[f],p=g.addedNodes,m=g.target;for(let _=0;_<p.length;_++){const C=p[_],y=C.parentNode;y==null||C.nodeName!=="BR"||Qv(C,m,n)||y.removeChild(C)}}t.takeRecords()}o!==null&&(c&&po(o),Kc&&$D(n)&&o.insertRawText(d))})}finally{_b=!1}}function bO(n){const e=n._observer;e!==null&&CO(n,e.takeRecords(),e)}function kO(n){(function(e){tx===0&&mo(e).addEventListener("textInput",PDe,!0)})(n),n._observer=new MutationObserver((e,t)=>{CO(n,e,t)})}let zDe=class xO{constructor(e,t,r=void 0,o=new Map,i=void 0){E(this,"node");E(this,"knownState");E(this,"unknownState");E(this,"sharedNodeState");E(this,"size");this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,l=i!==void 0?i:function(a,c,d){let h=d.size;if(c)for(const f in c){const g=a.get(f);g&&d.has(g)||h++}return h}(s,r,o);this.size=l}getValue(e){const t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const o=this.unknownState[e.key];o!==void 0&&(r=e.parse(o)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return dE(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:r}=this,o=new Map(this.knownState);return new xO(e,t,function(i,s,l){let a;if(l)for(const[c,d]of Object.entries(l)){const h=i.get(c);h?s.has(h)||s.set(h,h.parse(d)):(a=a||{},a[c]=d)}return a}(t.sharedConfigMap,o,r),o,this.size)}updateFromKnown(e,t){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:o,unknownState:i}=this;o.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=dE(i)),this.size++),o.set(e,t)}updateFromUnknown(e,t){const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const r of t.keys())t.set(r,r.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[r,o]of Object.entries(e))this.updateFromUnknown(r,o)}};function VDe(n){const e=n.getWritable(),t=e.__state?e.__state.getWritable(e):new zDe(e,SO(e));return e.__state=t,t}function SO(n){return n.__state?n.__state.sharedNodeState:CD(qLe(),n.getType()).sharedNodeState}function dE(n){if(n)for(const e in n)return n}function fE(n,e,t){for(const[r,o]of e.knownState){if(n.has(r.key))continue;n.add(r.key);const i=t?t.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function hE(n,e,t){const{unknownState:r}=e,o=t?t.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!n.has(i)&&(n.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function gE(n,e){const t=n.__state;return t&&t.node===n?t.getWritable(e):t}function pE(n,e){const t=n.__mode,r=n.__format,o=n.__style,i=e.__mode,s=e.__format,l=e.__style,a=n.__state,c=e.__state;return(t===null||t===i)&&(r===null||r===s)&&(o===null||o===l)&&(n.__state===null||a===c||function(d,h){if(d===h)return!0;if(d&&h&&d.size!==h.size)return!1;const f=new Set;return!(d&&fE(f,d,h)||h&&fE(f,h,d)||d&&hE(f,d,h)||h&&hE(f,h,d))}(a,c))}function mE(n,e){const t=n.mergeWithSibling(e),r=Mt()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function _E(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&we(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(pE(e,r)){r=mE(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&we(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(pE(r,t)){r=mE(r,t);break}break}t.remove()}}else r.remove()}function WDe(n){return yE(n.anchor),yE(n.focus),n}function yE(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,o;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),o=!0):(r=e.getChildAtIndex(t),o=!1),we(r)){n.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!te(r))break;n.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Uc,Yn,cg,oy,yb,vb,Hc,Vo,Cb,ug,Kt="",ai=null,ci="",ps="",Mu=!1,h_=!1;function g_(n,e){const t=Hc.get(n);if(e!==null){const r=Sb(n);r.parentNode===e&&e.removeChild(r)}if(Vo.has(n)||Yn._keyToDOMMap.delete(n),te(t)){const r=m_(t,Hc);bb(r,0,r.length-1,null)}t!==void 0&&hx(ug,cg,oy,t,"destroyed")}function bb(n,e,t,r){let o=e;for(;o<=t;++o){const i=n[o];i!==void 0&&g_(i,r)}}function Oa(n,e){n.setProperty("text-align",e)}const KDe="40px";function wO(n,e){const t=Uc.theme.indent;if(typeof t=="string"){const o=n.classList.contains(t);e>0&&!o?n.classList.add(t):e<1&&o&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||KDe;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function TO(n,e){const t=n.style;e===0?Oa(t,""):e===1?Oa(t,"left"):e===2?Oa(t,"center"):e===3?Oa(t,"right"):e===4?Oa(t,"justify"):e===5?Oa(t,"start"):e===6&&Oa(t,"end")}function kb(n,e){const t=function(r){const o=r.__dir;if(o!==null)return o;if(On(r))return null;const i=r.getParentOrThrow();return On(i)&&i.__dir===null?"auto":null}(e);t!==null?n.dir=t:n.removeAttribute("dir")}function p_(n,e){const t=Vo.get(n);t===void 0&&ie(60);const r=t.createDOM(Uc,Yn);if(function(o,i,s){const l=s._keyToDOMMap;(function(a,c,d){const h=`__lexicalKey_${c._key}`;a[h]=d})(i,s,o),l.set(o,i)}(n,r,Yn),we(t)?r.setAttribute("data-lexical-text","true"):bt(t)&&r.setAttribute("data-lexical-decorator","true"),te(t)){const o=t.__indent,i=t.__size;if(kb(r,t),o!==0&&wO(r,o),i!==0){const l=i-1;xb(m_(t,Vo),t,0,l,t.getDOMSlot(r))}const s=t.__format;s!==0&&TO(r,s),t.isInline()||EO(null,t,r),cy(t)&&(Kt+=ta,ps+=ta)}else{const o=t.getTextContent();if(bt(t)){const i=t.decorate(Yn,Uc);i!==null&&NO(n,i),r.contentEditable="false"}Kt+=o,ps+=o}return e!==null&&e.insertChild(r),hx(ug,cg,oy,t,"created"),r}function xb(n,e,t,r,o){const i=Kt;Kt="";let s=t;for(;s<=r;++s){p_(n[s],o);const l=Vo.get(n[s]);l!==null&&we(l)&&(ai===null&&(ai=l.getFormat()),ci===""&&(ci=l.getStyle()))}cy(e)&&(Kt+=ta),o.element.__lexicalTextContent=Kt,Kt=i+Kt}function vE(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return mh(r)?"line-break":bt(r)&&r.isInline()?"decorator":null}return"empty"}return null}function EO(n,e,t){const r=vE(n,Hc),o=vE(e,Vo);r!==o&&e.getDOMSlot(t).setManagedLineBreak(o)}function UDe(n,e,t){var r;ai=null,ci="",function(o,i,s){const l=Kt,a=o.__size,c=i.__size;Kt="";const d=s.element;if(a===1&&c===1){const h=o.__first,f=i.__first;if(h===f)jf(h,d);else{const p=Sb(h),m=p_(f,null);try{d.replaceChild(m,p)}catch(_){if(typeof _=="object"&&_!=null){const C=`${_.toString()} Parent: ${d.tagName}, new child: {tag: ${m.tagName} key: ${f}}, old child: {tag: ${p.tagName}, key: ${h}}.`;throw new Error(C)}throw _}g_(h,null)}const g=Vo.get(f);we(g)&&(ai===null&&(ai=g.getFormat()),ci===""&&(ci=g.getStyle()))}else{const h=m_(o,Hc),f=m_(i,Vo);if(h.length!==a&&ie(227),f.length!==c&&ie(228),a===0)c!==0&&xb(f,i,0,c-1,s);else if(c===0){if(a!==0){const g=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;bb(h,0,a-1,g?null:d),g&&(d.textContent="")}}else(function(g,p,m,_,C,y){const v=_-1,k=C-1;let x,b,T=y.getFirstChild(),w=0,S=0;for(;w<=v&&S<=k;){const O=p[w],M=m[S];if(O===M)T=e2(jf(M,y.element)),w++,S++;else{x===void 0&&(x=new Set(p)),b===void 0&&(b=new Set(m));const F=b.has(O),P=x.has(M);if(F)if(P){const z=qc(Yn,M);z===T?T=e2(jf(M,y.element)):(y.withBefore(T).insertChild(z),jf(M,y.element)),w++,S++}else p_(M,y.withBefore(T)),S++;else T=e2(Sb(O)),g_(O,y.element),w++}const A=Vo.get(M);A!==null&&we(A)&&(ai===null&&(ai=A.getFormat()),ci===""&&(ci=A.getStyle()))}const N=w>v,$=S>k;if(N&&!$){const O=m[k+1],M=O===void 0?null:Yn.getElementByKey(O);xb(m,g,S,k,y.withBefore(M))}else $&&!N&&bb(p,w,v,y.element)})(i,h,f,a,c,s)}cy(i)&&(Kt+=ta),d.__lexicalTextContent=Kt,Kt=l+Kt}(n,e,e.getDOMSlot(t)),r=e,ai==null||ai===r.__textFormat||h_||r.setTextFormat(ai),function(o){ci===""||ci===o.__textStyle||h_||o.setTextStyle(ci)}(e)}function m_(n,e){const t=[];let r=n.__first;for(;r!==null;){const o=e.get(r);o===void 0&&ie(101),t.push(r),r=o.__next}return t}function jf(n,e){const t=Hc.get(n);let r=Vo.get(n);t!==void 0&&r!==void 0||ie(61);const o=Mu||vb.has(n)||yb.has(n),i=qc(Yn,n);if(t===r&&!o){if(te(t)){const s=i.__lexicalTextContent;s!==void 0&&(Kt+=s,ps+=s)}else{const s=t.getTextContent();ps+=s,Kt+=s}return i}if(t!==r&&o&&hx(ug,cg,oy,r,"updated"),r.updateDOM(t,i,Uc)){const s=p_(n,null);return e===null&&ie(62),e.replaceChild(s,i),g_(n,null),s}if(te(t)&&te(r)){const s=r.__indent;(Mu||s!==t.__indent)&&wO(i,s);const l=r.__format;if((Mu||l!==t.__format)&&TO(i,l),o&&(UDe(t,r,i),On(r)||r.isInline()||EO(t,r,i)),cy(r)&&(Kt+=ta,ps+=ta),(Mu||r.__dir!==t.__dir)&&(kb(i,r),On(r)&&!Mu))for(const a of r.getChildren())te(a)&&kb(qc(Yn,a.getKey()),a)}else{const s=r.getTextContent();if(bt(r)){const l=r.decorate(Yn,Uc);l!==null&&NO(n,l)}Kt+=s,ps+=s}if(!h_&&On(r)&&r.__cachedText!==ps){const s=r.getWritable();s.__cachedText=ps,r=s}return i}function NO(n,e){let t=Yn._pendingDecorators;const r=Yn._decorators;if(t===null){if(r[n]===e)return;t=wD(Yn)}t[n]=e}function e2(n){let e=n.nextSibling;return e!==null&&e===Yn._blockCursorElement&&(e=e.nextSibling),e}function HDe(n,e,t,r,o,i){Kt="",ps="",Mu=r===2,Yn=t,Uc=t._config,cg=t._nodes,oy=Yn._listeners.mutation,yb=o,vb=i,Hc=n._nodeMap,Vo=e._nodeMap,h_=e._readOnly,Cb=new Map(t._keyToDOMMap);const s=new Map;return ug=s,jf("root",null),Yn=void 0,cg=void 0,yb=void 0,vb=void 0,Hc=void 0,Vo=void 0,Uc=void 0,Cb=void 0,ug=void 0,s}function Sb(n){const e=Cb.get(n);return e===void 0&&ie(75,n),e}function Ue(n){return{type:n}}const $O=Ue("SELECTION_CHANGE_COMMAND"),qDe=Ue("CLICK_COMMAND"),__=Ue("DELETE_CHARACTER_COMMAND"),L1=Ue("INSERT_LINE_BREAK_COMMAND"),CE=Ue("INSERT_PARAGRAPH_COMMAND"),hh=Ue("CONTROLLED_TEXT_INSERTION_COMMAND"),AO=Ue("PASTE_COMMAND"),bE=Ue("REMOVE_TEXT_COMMAND"),y_=Ue("DELETE_WORD_COMMAND"),v_=Ue("DELETE_LINE_COMMAND"),Ga=Ue("FORMAT_TEXT_COMMAND"),MO=Ue("UNDO_COMMAND"),OO=Ue("REDO_COMMAND"),jDe=Ue("KEYDOWN_COMMAND"),ZDe=Ue("KEY_ARROW_RIGHT_COMMAND"),GDe=Ue("MOVE_TO_END"),JDe=Ue("KEY_ARROW_LEFT_COMMAND"),YDe=Ue("MOVE_TO_START"),XDe=Ue("KEY_ARROW_UP_COMMAND"),QDe=Ue("KEY_ARROW_DOWN_COMMAND"),wb=Ue("KEY_ENTER_COMMAND"),eLe=Ue("KEY_SPACE_COMMAND"),tLe=Ue("KEY_BACKSPACE_COMMAND"),nLe=Ue("KEY_ESCAPE_COMMAND"),rLe=Ue("KEY_DELETE_COMMAND"),oLe=Ue("KEY_TAB_COMMAND"),iLe=Ue("DROP_COMMAND"),sLe=Ue("DRAGSTART_COMMAND"),lLe=Ue("DRAGOVER_COMMAND"),aLe=Ue("DRAGEND_COMMAND"),DO=Ue("COPY_COMMAND"),LO=Ue("CUT_COMMAND"),kE=Ue("SELECT_ALL_COMMAND"),cLe=Ue("FOCUS_COMMAND"),uLe=Ue("BLUR_COMMAND"),dLe=Ue("KEY_MODIFIER_COMMAND"),ts=Object.freeze({}),Tb=[["keydown",function(n,e){if(gh=n.timeStamp,FO=n.key,!e.isComposing()&&!_e(e,jDe,n)&&n.key!=null){if(t2&&XE(n))return Wr(e,()=>{jp(e,n2)}),t2=!1,void(n2="");if(function(t){return rt(t,"ArrowRight",{shiftKey:"any"})}(n))_e(e,ZDe,n);else if(function(t){return rt(t,"ArrowRight",cs)}(n))_e(e,GDe,n);else if(function(t){return rt(t,"ArrowLeft",{shiftKey:"any"})}(n))_e(e,JDe,n);else if(function(t){return rt(t,"ArrowLeft",cs)}(n))_e(e,YDe,n);else if(function(t){return rt(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(n))_e(e,XDe,n);else if(function(t){return rt(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(n))_e(e,QDe,n);else if(function(t){return rt(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(n))ph=!0,_e(e,wb,n);else if(function(t){return t.key===" "}(n))_e(e,eLe,n);else if(function(t){return $o&&rt(t,"o",{ctrlKey:!0})}(n))n.preventDefault(),ph=!0,_e(e,L1,!0);else if(function(t){return rt(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(n))ph=!1,_e(e,wb,n);else if(function(t){return rt(t,"Backspace",{shiftKey:"any"})||$o&&rt(t,"h",{ctrlKey:!0})}(n))XE(n)?_e(e,tLe,n):(n.preventDefault(),_e(e,__,!0));else if(function(t){return t.key==="Escape"}(n))_e(e,nLe,n);else if(function(t){return rt(t,"Delete",{})||$o&&rt(t,"d",{ctrlKey:!0})}(n))(function(t){return t.key==="Delete"})(n)?_e(e,rLe,n):(n.preventDefault(),_e(e,__,!1));else if(function(t){return rt(t,"Backspace",YE)}(n))n.preventDefault(),_e(e,y_,!0);else if(function(t){return rt(t,"Delete",YE)}(n))n.preventDefault(),_e(e,y_,!1);else if(function(t){return $o&&rt(t,"Backspace",{metaKey:!0})}(n))n.preventDefault(),_e(e,v_,!0);else if(function(t){return $o&&(rt(t,"Delete",{metaKey:!0})||rt(t,"k",{ctrlKey:!0}))}(n))n.preventDefault(),_e(e,v_,!1);else if(function(t){return rt(t,"b",cs)}(n))n.preventDefault(),_e(e,Ga,"bold");else if(function(t){return rt(t,"u",cs)}(n))n.preventDefault(),_e(e,Ga,"underline");else if(function(t){return rt(t,"i",cs)}(n))n.preventDefault(),_e(e,Ga,"italic");else if(function(t){return rt(t,"Tab",{shiftKey:"any"})}(n))_e(e,oLe,n);else if(function(t){return rt(t,"z",cs)}(n))n.preventDefault(),_e(e,MO,void 0);else if(function(t){return $o?rt(t,"z",{metaKey:!0,shiftKey:!0}):rt(t,"y",{ctrlKey:!0})||rt(t,"z",{ctrlKey:!0,shiftKey:!0})}(n))n.preventDefault(),_e(e,OO,void 0);else{const t=e._editorState._selection;t===null||Oe(t)?QE(n)&&(n.preventDefault(),_e(e,kE,n)):function(r){return rt(r,"c",cs)}(n)?(n.preventDefault(),_e(e,DO,n)):function(r){return rt(r,"x",cs)}(n)?(n.preventDefault(),_e(e,LO,n)):QE(n)&&(n.preventDefault(),_e(e,kE,n))}(function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey})(n)&&_e(e,dLe,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;np(t)&&r!=="touch"&&r!=="pen"&&n.button===0&&Wr(e,()=>{ZE(t)||($b=!0)})}],["compositionstart",function(n,e){Wr(e,()=>{const t=ct();if(Oe(t)&&!e.isComposing()){const r=t.anchor,o=t.anchor.getNode();yn(r.key),(n.timeStamp<gh+30||r.type==="element"||!t.isCollapsed()||o.getFormat()!==t.format||we(o)&&o.getStyle()!==t.style)&&_e(e,hh,MDe)}})}],["compositionend",function(n,e){Kc?Ff=!0:$d||!lg&&!ag?Wr(e,()=>{jp(e,n.data)}):(t2=!0,n2=n.data)}],["input",function(n,e){n.stopPropagation(),Wr(e,()=>{if(Xr(n.target)&&ZE(n.target))return;const t=ct(),r=n.data,o=zO(n);if(r!=null&&Oe(t)&&BO(t,o,r,n.timeStamp,!1)){Ff&&(jp(e,r),Ff=!1);const i=t.anchor.getNode(),s=Us(mo(e));if(s===null)return;const l=t.isBackward(),a=l?t.anchor.offset:t.focus.offset,c=l?t.focus.offset:t.anchor.offset;f_&&!t.isCollapsed()&&we(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+c)===ND(s.anchorNode)||_e(e,hh,r);const d=r.length;Kc&&d>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=d),lg||$d||ag||!e.isComposing()||(gh=0,yn(null))}else dx(!1,e,r!==null?r:void 0),Ff&&(jp(e,r||void 0),Ff=!1);(function(){Kn();const i=Mt();bO(i)})()},{event:n}),Ou=null}],["click",function(n,e){Wr(e,()=>{const t=ct(),r=Us(mo(e)),o=Qg();if(r){if(Oe(t)){const i=t.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&t.isCollapsed()&&!On(s)&&Pi().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&t.is(o))r.removeAllRanges(),t.dirty=!0;else if(n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()){const l=B1(s,a=>te(a)&&!a.isInline());te(l)&&l.select(0)}}else if(n.pointerType==="touch"||n.pointerType==="pen"){const i=r.anchorNode;(Xr(i)||Xs(i))&&po(sx(o,r,e,n))}}_e(e,qDe,n)})}],["cut",ts],["copy",ts],["dragstart",ts],["dragover",ts],["dragend",ts],["paste",ts],["focus",ts],["blur",ts],["drop",ts]];f_&&Tb.push(["beforeinput",(n,e)=>function(t,r){const o=t.inputType,i=zO(t);o==="deleteCompositionText"||Kc&&$D(r)||o!=="insertCompositionText"&&Wr(r,()=>{const s=ct();if(o==="deleteContentBackward"){if(s===null){const g=Qg();if(!Oe(g))return;po(g.clone())}if(Oe(s)){const g=s.anchor.key===s.focus.key;if(l=t.timeStamp,FO==="MediaLast"&&l<gh+30&&r.isComposing()&&g){if(yn(null),gh=0,setTimeout(()=>{Wr(r,()=>{yn(null)})},30),Oe(s)){const p=s.anchor.getNode();p.markDirty(),we(p)||ie(142),RO(s,p)}}else{yn(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),_=p.canInsertTextAfter(),C=s.anchor.offset===0&&s.focus.offset===m.length;let y=aE&&g&&!C&&_;if(y&&s.isCollapsed()&&(y=!bt(BLe(s.anchor,!0))),!y){_e(r,__,!0);const v=ct();aE&&Oe(v)&&v.isCollapsed()&&(Wa=v,setTimeout(()=>Wa=null))}}return}}var l;if(!Oe(s))return;const a=t.data;Ou!==null&&dx(!1,r,Ou),s.dirty&&Ou===null||!s.isCollapsed()||On(s.anchor.getNode())||i===null||s.applyDOMRange(i),Ou=null;const c=s.anchor,d=s.focus,h=c.getNode(),f=d.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(t.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":_e(r,hh,t);break;case"insertFromComposition":yn(null),_e(r,hh,t);break;case"insertLineBreak":yn(null),_e(r,L1,!1);break;case"insertParagraph":yn(null),ph&&!$d?(ph=!1,_e(r,L1,!1)):_e(r,CE,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":_e(r,AO,t);break;case"deleteByComposition":(function(g,p){return g!==p||te(g)||te(p)||!sc(g)||!sc(p)})(h,f)&&_e(r,bE,t);break;case"deleteByDrag":case"deleteByCut":_e(r,bE,t);break;case"deleteContent":_e(r,__,!1);break;case"deleteWordBackward":_e(r,y_,!0);break;case"deleteWordForward":_e(r,y_,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":_e(r,v_,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":_e(r,v_,!1);break;case"formatStrikeThrough":_e(r,Ga,"strikethrough");break;case"formatBold":_e(r,Ga,"bold");break;case"formatItalic":_e(r,Ga,"italic");break;case"formatUnderline":_e(r,Ga,"underline");break;case"historyUndo":_e(r,MO,void 0);break;case"historyRedo":_e(r,OO,void 0)}else{if(a===`
52
+ `)t.preventDefault(),_e(r,L1,!1);else if(a===ta)t.preventDefault(),_e(r,CE,void 0);else if(a==null&&t.dataTransfer){const g=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(g)}else a!=null&&BO(s,i,a,t.timeStamp,!0)?(t.preventDefault(),_e(r,hh,a)):Ou=a;PO=t.timeStamp}})}(n,e)]);let gh=0,FO=null,PO=0,Ou=null;const Eb=new WeakMap,C_=new WeakMap;let Nb=!1,$b=!1,ph=!1,Ff=!1,t2=!1,n2="",Wa=null,IO=[0,"",0,"root",0];function BO(n,e,t,r,o){const i=n.anchor,s=n.focus,l=i.getNode(),a=Mt(),c=Us(mo(a)),d=c!==null?c.anchorNode:null,h=i.key,f=a.getElementByKey(h),g=t.length;return h!==s.key||!we(l)||(!o&&(!f_||PO<r+50)||l.isDirty()&&g<2||ED(t))&&i.offset!==s.offset&&!l.isComposing()||dl(l)||l.isDirty()&&g>1||(o||!f_)&&f!==null&&!l.isComposing()&&d!==Ad(f)||c!==null&&e!==null&&(!e.collapsed||e.startContainer!==c.anchorNode||e.startOffset!==c.anchorOffset)||l.getFormat()!==n.format||l.getStyle()!==n.style||function(p,m){if(m.isSegmented())return!0;if(!p.isCollapsed())return!1;const _=p.anchor.offset,C=m.getParentOrThrow(),y=sc(m);return _===0?!m.canInsertTextBefore()||!C.canInsertTextBefore()&&!m.isComposing()||y||function(v){const k=v.getPreviousSibling();return(we(k)||te(k)&&k.isInline())&&!k.canInsertTextAfter()}(m):_===m.getTextContentSize()&&(!m.canInsertTextAfter()||!C.canInsertTextAfter()&&!m.isComposing()||y)}(n,l)}function xE(n,e){return Xs(n)&&n.nodeValue!==null&&e!==0&&e!==n.nodeValue.length}function SE(n,e,t){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=n;Nb&&(Nb=!1,xE(r,o)&&xE(i,s)&&!Wa)||Wr(e,()=>{if(!t)return void po(null);if(!sy(e,r,i))return;let l=ct();if(Wa&&Oe(l)&&l.isCollapsed()){const a=l.anchor,c=Wa.anchor;(a.key===c.key&&a.offset===c.offset+1||a.offset===1&&c.getNode().is(a.getNode().getPreviousSibling()))&&(l=Wa.clone(),po(l))}if(Wa=null,Oe(l)){const a=l.anchor,c=a.getNode();if(l.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(l.dirty=!0);const d=mo(e).event,h=d?d.timeStamp:performance.now(),[f,g,p,m,_]=IO,C=Pi(),y=e.isComposing()===!1&&C.getTextContent()==="";if(h<_+200&&a.offset===p&&a.key===m)F1(l,f,g);else if(a.type==="text")we(c)||ie(141),RO(l,c);else if(a.type==="element"&&!y){te(c)||ie(259);const v=a.getNode();v.isEmpty()?function(k,x){const b=x.getTextFormat(),T=x.getTextStyle();F1(k,b,T)}(l,v):F1(l,0,"")}}else{const d=a.key,h=l.focus.key,f=l.getNodes(),g=f.length,p=l.isBackward(),m=p?s:o,_=p?o:s,C=p?h:d,y=p?d:h;let v=2047,k=!1;for(let x=0;x<g;x++){const b=f[x],T=b.getTextContentSize();if(we(b)&&T!==0&&!(x===0&&b.__key===C&&m===T||x===g-1&&b.__key===y&&_===0)&&(k=!0,v&=b.getFormat(),v===0))break}l.format=k?v:0}}_e(e,$O,void 0)})}function F1(n,e,t){n.format===e&&n.style===t||(n.format=e,n.style=t,n.dirty=!0)}function RO(n,e){F1(n,e.getFormat(),e.getStyle())}function zO(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function jp(n,e){const t=n._compositionKey;if(yn(null),t!==null&&e!=null){if(e===""){const r=on(t),o=Ad(n.getElementByKey(t));return void(o!==null&&o.nodeValue!==null&&we(r)&&fx(r,o.nodeValue,null,null,!0))}if(e[e.length-1]===`
53
+ `){const r=ct();if(Oe(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void _e(n,wb,null)}}}dx(!0,n,e)}function VO(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const ed=new Map;function WO(n){const e=KLe(n.target);if(e===null)return;const t=xD(e.anchorNode);if(t===null)return;$b&&($b=!1,Wr(t,()=>{const a=Qg(),c=e.anchorNode;(Xr(c)||Xs(c))&&po(sx(a,e,t,n))}));const r=ux(t),o=r[r.length-1],i=o._key,s=ed.get(i),l=s||o;l!==t&&SE(e,l,!1),SE(e,t,!0),t!==o?ed.set(i,t):s&&ed.delete(i)}function wE(n){n._lexicalHandled=!0}function TE(n){return n._lexicalHandled===!0}const EE=()=>{};function fLe(n){const e=Eb.get(n);if(e===void 0)return void EE();const t=C_.get(e);if(t===void 0)return void EE();const r=t-1;r>=0||ie(164),Eb.delete(n),C_.set(e,r),r===0&&e.removeEventListener("selectionchange",WO);const o=ly(n);ax(o)?(function(s){if(s._parentEditor!==null){const l=ux(s),a=l[l.length-1]._key;ed.get(a)===s&&ed.delete(a)}else ed.delete(s._key)}(o),n.__lexicalEditor=null):o&&ie(198);const i=VO(n);for(let s=0;s<i.length;s++)i[s]();n.__lexicalEventHandles=[]}function Ab(n,e,t){Kn();const r=n.__key,o=n.getParent();if(o===null)return;const i=function(l){const a=ct();if(!Oe(a)||!te(l))return a;const{anchor:c,focus:d}=a,h=c.getNode(),f=d.getNode();return Ob(h,l)&&c.set(l.__key,0,"element"),Ob(f,l)&&d.set(l.__key,0,"element"),a}(n);let s=!1;if(Oe(i)&&e){const l=i.anchor,a=i.focus;l.key===r&&(x_(l,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0),a.key===r&&(x_(a,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0)}else ix(i)&&e&&n.isSelected()&&n.selectPrevious();if(Oe(i)&&e&&!s){const l=n.getIndexWithinParent();lc(n),k_(i,o,l,-1)}else lc(n);t||_a(o)||o.canBeEmpty()||!o.isEmpty()||Ab(o,e),e&&i&&On(o)&&o.isEmpty()&&o.selectEnd()}const hLe=Symbol.for("ephemeral");function b_(n){return n[hLe]||!1}var j2;let Il=(j2=class{constructor(e){E(this,"__type");E(this,"__key");E(this,"__parent");E(this,"__prev");E(this,"__next");E(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),FLe(this,e)}static getType(){const{ownNodeType:e}=JLe(this);return e===void 0&&ie(64,this.name),e}static clone(e){ie(65,this.name)}$config(){return{}}config(e,t){const r=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:r,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){ie(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=on(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){const t=e||ct();if(t==null)return!1;const r=t.getNodes().some(o=>o.__key===this.__key);if(we(this))return r;if(Oe(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const o=this.getParent();if(bt(this)&&this.isInline()&&o){const i=t.isBackward()?t.focus:t.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:on(e)}getParentOrThrow(){const e=this.getParent();return e===null&&ie(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(_a(t))return te(e)||e===this&&bt(e)||ie(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&ie(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:on(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:on(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=te(this)?this:this.getParent(),r=te(e)?e:e.getParent(),o=t&&r?R1(t,r):null;return o?o.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const t=R1(this,e);return t!==null&&(t.type==="descendant"||(t.type==="branch"?PD(t)===-1:(t.type!=="same"&&t.type!=="ancestor"&&ie(279),!1)))}isParentOf(e){const t=R1(this,e);return t!==null&&t.type==="ancestor"}getNodesBetween(e){const t=this.isBefore(e),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===e)break;const l=te(i)?t?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const a=t?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===e)break;let d=null,h=c;do{if(h===null&&ie(68),d=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;d!==null||o.has(h.__key)||r.push(h)}while(d===null);i=d}return t||r.reverse(),r}isDirty(){const e=Mt()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(b_(this))return this;const e=on(this.__key);return e===null&&ie(113),e}getWritable(){if(b_(this))return this;Kn();const e=ma(),t=Mt(),r=e._nodeMap,o=this.__key,i=this.getLatest(),s=t._cloneNotNeeded,l=ct();if(l!==null&&l.setCachedNodes(null),s.has(o))return w_(i),i;const a=ZLe(i);return s.add(o),w_(a),r.set(o,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){ie(70)}updateDOM(e,t,r){ie(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){ie(18,this.name)}updateFromJSON(e){return function(t,r){const o=t.getWritable(),i=r.$;let s=i;for(const l of SO(o).flatKeys)l in r&&(s!==void 0&&s!==i||(s={...i}),s[l]=r[l]);return(o.__state||s)&&VDe(t).updateFromJSON(s),o}(this,e)}static transform(){return null}remove(e){Ab(this,!0,e)}replace(e,t){Kn();let r=ct();r!==null&&(r=r.clone()),c2(this,e);const o=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size;lc(l);const d=o.getPreviousSibling(),h=o.getNextSibling(),f=o.__prev,g=o.__next,p=o.__parent;if(Ab(o,!1,!0),d===null?a.__first=s:d.getWritable().__next=s,l.__prev=f,h===null?a.__last=s:h.getWritable().__prev=s,l.__next=g,l.__parent=p,a.__size=c,t&&(te(this)&&te(l)||ie(139),this.getChildren().forEach(m=>{l.append(m)})),Oe(r)){po(r);const m=r.anchor,_=r.focus;m.key===i&&ME(m,l),_.key===i&&ME(_,l)}return wl()===i&&yn(s),l}insertAfter(e,t=!0){Kn(),c2(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.getParent(),s=ct();let l=!1,a=!1;if(i!==null){const g=e.getIndexWithinParent();if(lc(o),Oe(s)){const p=i.__key,m=s.anchor,_=s.focus;l=m.type==="element"&&m.key===p&&m.offset===g+1,a=_.type==="element"&&_.key===p&&_.offset===g+1}}const c=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),h=o.__key,f=r.__next;if(c===null?d.__last=h:c.getWritable().__prev=h,d.__size++,r.__next=h,o.__next=f,o.__prev=r.__key,o.__parent=r.__parent,t&&Oe(s)){const g=this.getIndexWithinParent();k_(s,d,g+1);const p=d.__key;l&&s.anchor.set(p,g+2,"element"),a&&s.focus.set(p,g+2,"element")}return e}insertBefore(e,t=!0){Kn(),c2(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.__key;lc(o);const s=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,c=this.getIndexWithinParent();s===null?l.__first=i:s.getWritable().__next=i,l.__size++,r.__prev=i,o.__prev=a,o.__next=r.__key,o.__parent=r.__parent;const d=ct();return t&&Oe(d)&&k_(d,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return jr()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Kn();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(te(r))return r.select();if(!we(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(e,t)}selectNext(e,t){Kn();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(te(r))return r.select(0,0);if(!we(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},E(j2,"importDOM"),j2);const r2="history-merge",gLe="collaboration",pLe="skip-scroll-into-view",mLe="skip-dom-selection",_Le="skip-selection-focus";let KO=class UO extends Il{static getType(){return"linebreak"}static clone(e){return new UO(e.__key)}constructor(e){super(e)}getTextContent(){return`
54
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(t){const r=t.parentElement;if(r!==null&&t4(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&Zp(o)){const i=r.lastChild;if(i===t||i.previousSibling===t&&Zp(i))return!0}}return!1}(e)||function(t){const r=t.parentElement;if(r!==null&&t4(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&Zp(o))return!1;const i=r.lastChild;if(i===t||i.previousSibling===t&&Zp(i))return!0}return!1}(e)?null:{conversion:yLe,priority:0}}}static importJSON(e){return dg().updateFromJSON(e)}};function yLe(n){return{node:dg()}}function dg(){return ef(new KO)}function mh(n){return n instanceof KO}function Zp(n){return Xs(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function o2(n,e){return 16&e?"code":e&yO?"mark":32&e?"sub":64&e?"sup":null}function i2(n,e){return 1&e?"strong":2&e?"em":"span"}function HO(n,e,t,r,o){const i=r.classList;let s=td(o,"base");s!==void 0&&i.add(...s),s=td(o,"underlineStrikethrough");let l=!1;const a=8&e&&4&e;s!==void 0&&(8&t&&4&t?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const c in lr){const d=lr[c];if(s=td(o,c),s!==void 0)if(t&d){if(l&&(c==="underline"||c==="strikethrough")){e&d&&i.remove(...s);continue}(!(e&d)||a&&c==="underline"||c==="strikethrough")&&i.add(...s)}else e&d&&i.remove(...s)}}function qO(n,e,t){const r=e.firstChild,o=t.isComposing(),i=n+(o?ry:"");if(r==null)e.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||Kc){const[l,a,c]=function(d,h){const f=d.length,g=h.length;let p=0,m=0;for(;p<f&&p<g&&d[p]===h[p];)p++;for(;m+p<f&&m+p<g&&d[f-m-1]===h[g-m-1];)m++;return[p,f-p-m,h.slice(p,g-m)]}(s,i);a!==0&&r.deleteData(l,a),r.insertData(l,c)}else r.nodeValue=i}}function NE(n,e,t,r,o,i){qO(o,n,e);const s=i.theme.text;s!==void 0&&HO(0,0,r,n,s)}function Gp(n,e){const t=document.createElement(e);return t.appendChild(n),t}let nx=class jO extends Il{constructor(t="",r){super(r);E(this,"__text");E(this,"__format");E(this,"__style");E(this,"__mode");E(this,"__detail");this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(t){return new jO(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return FDe[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===wl()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const r=lr[t];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(t,r){return S_(this.getLatest().__format,t,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,r){const o=this.__format,i=o2(0,o),s=i2(0,o),l=i===null?s:i,a=document.createElement(l);let c=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(c=document.createElement(s),a.appendChild(c)),NE(c,this,0,o,this.__text,t);const d=this.__style;return d!==""&&(a.style.cssText=d),a}updateDOM(t,r,o){const i=this.__text,s=t.__format,l=this.__format,a=o2(0,s),c=o2(0,l),d=i2(0,s),h=i2(0,l);if((a===null?d:a)!==(c===null?h:c))return!0;if(a===c&&d!==h){const _=r.firstChild;_==null&&ie(48);const C=document.createElement(h);return NE(C,this,0,l,i,o),r.replaceChild(C,_),!1}let f=r;c!==null&&a!==null&&(f=r.firstChild,f==null&&ie(49)),qO(i,f,this);const g=o.theme.text;g!==void 0&&s!==l&&HO(0,s,l,f,g);const p=t.__style,m=this.__style;return p!==m&&(r.style.cssText=m),!1}static importDOM(){return{"#text":()=>({conversion:kLe,priority:0}),b:()=>({conversion:CLe,priority:0}),code:()=>({conversion:ns,priority:0}),em:()=>({conversion:ns,priority:0}),i:()=>({conversion:ns,priority:0}),mark:()=>({conversion:ns,priority:0}),s:()=>({conversion:ns,priority:0}),span:()=>({conversion:vLe,priority:0}),strong:()=>({conversion:ns,priority:0}),sub:()=>({conversion:ns,priority:0}),sup:()=>({conversion:ns,priority:0}),u:()=>({conversion:ns,priority:0})}}static importJSON(t){return dn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(t){let{element:r}=super.exportDOM(t);return Xr(r)||ie(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=Gp(r,"b")),this.hasFormat("italic")&&(r=Gp(r,"i")),this.hasFormat("strikethrough")&&(r=Gp(r,"s")),this.hasFormat("underline")&&(r=Gp(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?lr[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?ODe[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=S_(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=LDe[t];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){Kn();let o=t,i=r;const s=ct(),l=this.getTextContent(),a=this.__key;if(typeof l=="string"){const c=l.length;o===void 0&&(o=c),i===void 0&&(i=c)}else o=0,i=0;if(!Oe(s))return nD(a,o,a,i,"text","text");{const c=wl();c!==s.anchor.key&&c!==s.focus.key||yn(a),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,o,i){const s=this.getWritable(),l=s.__text,a=o.length;let c=t;c<0&&(c=a+c,c<0&&(c=0));const d=ct();if(i&&Oe(d)){const f=t+a;d.setTextNodeRange(s,f,s,f)}const h=l.slice(0,c)+o+l.slice(c+r);return s.__text=h,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Kn();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=wl(),l=o.length;t.sort((S,N)=>S-N),t.push(l);const a=[],c=t.length;for(let S=0,N=0;S<l&&N<=c;N++){const $=t[N];$>S&&(a.push(o.slice(S,$)),S=$)}const d=a.length;if(d===1)return[r];const h=a[0],f=r.getParent();let g;const p=r.getFormat(),m=r.getStyle(),_=r.__detail;let C=!1,y=null,v=null;const k=ct();if(Oe(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===i&&(y=S),N.type==="text"&&N.key===i&&(v=N)}r.isSegmented()?(g=dn(h),g.__format=p,g.__style=m,g.__detail=_,g.__state=gE(r,g),C=!0):g=r.setTextContent(h);const x=[g];for(let S=1;S<d;S++){const N=dn(a[S]);N.__format=p,N.__style=m,N.__detail=_,N.__state=gE(r,N);const $=N.__key;s===i&&yn($),x.push(N)}const b=y?y.offset:null,T=v?v.offset:null;let w=0;for(const S of x){if(!y&&!v)break;const N=w+S.getTextContentSize();if(y!==null&&b!==null&&b<=N&&b>=w&&(y.set(S.getKey(),b-w,"text"),b<N&&(y=null)),v!==null&&T!==null&&T<=N&&T>=w){v.set(S.getKey(),T-w,"text");break}w=N}if(f!==null){(function($){const O=$.getPreviousSibling(),M=$.getNextSibling();O!==null&&w_(O),M!==null&&w_(M)})(this);const S=f.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,x),this.remove()):S.splice(N,1,x),Oe(k)&&k_(k,f,N,d-1)}return x}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||ie(50);const o=this.__key,i=t.__key,s=this.__text,l=s.length;wl()===i&&yn(o);const a=ct();if(Oe(a)){const f=a.anchor,g=a.focus;f!==null&&f.key===i&&RE(f,r,o,t,l),g!==null&&g.key===i&&RE(g,r,o,t,l)}const c=t.__text,d=r?c+s:s+c;this.setTextContent(d);const h=this.getWritable();return t.remove(),h}isTextEntity(){return!1}};function vLe(n){return{forChild:rx(n.style),node:null}}function CLe(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:rx(e.style,t?void 0:"bold"),node:null}}const $E=new WeakMap;function bLe(n){if(!Xr(n))return!1;if(n.nodeName==="PRE")return!0;const e=n.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function kLe(n){const e=n;n.parentElement===null&&ie(129);let t=e.textContent||"";if(function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=$E.get(i))===void 0&&!bLe(i);)s.push(i),i=i.parentNode;const l=o===void 0?i:o;for(let a=0;a<s.length;a++)$E.set(s[a],l);return l}(e)!==null){const r=t.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const l=r[s];l===`
55
+ `||l===`\r
56
+ `?o.push(dg()):l===" "?o.push(ox()):l!==""&&o.push(dn(l))}return{node:o}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,o=!0;for(;r!==null&&(r=AE(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),o=!1;break}}o&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,o=!0;for(;r!==null&&(r=AE(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:dn(t)}}function AE(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=r,Xr(t)){const i=t.style.display;if(i===""&&!HLe(t)||i!==""&&!i.startsWith("inline"))return null}let o=t;for(;(o=e?t.firstChild:t.lastChild)!==null;)t=o;if(Xs(t))return t;if(t.nodeName==="BR")return null}}const xLe={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function ns(n){const e=xLe[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:rx(n.style,e),node:null}}function dn(n=""){return ef(new nx(n))}function we(n){return n instanceof nx}function rx(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),o=t==="700"||t==="bold",i=r.includes("line-through"),s=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return c=>(we(c)&&(o&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),s&&!c.hasFormat("italic")&&c.toggleFormat("italic"),l&&!c.hasFormat("underline")&&c.toggleFormat("underline"),a!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),a!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),e&&!c.hasFormat(e)&&c.toggleFormat(e)),c)}let ZO=class GO extends nx{static getType(){return"tab"}static clone(e){return new GO(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),r=td(e.theme,"tab");return r!==void 0&&t.classList.add(...r),t}static importJSON(e){return ox().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&pO(126),super.setTextContent(" ")}spliceText(e,t,r,o){return r===""&&t===0||r===" "&&t===1||ie(286),this}setDetail(e){return e!==2&&ie(127),this}setMode(e){return e!=="normal"&&ie(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function ox(){return ef(new ZO)}function JO(n){return n instanceof ZO}let SLe=class{constructor(e,t,r){E(this,"key");E(this,"offset");E(this,"type");E(this,"_selection");this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:FD(ki(Gc(this,"next")),ki(Gc(e,"next")))<0}getNode(){const e=on(this.key);return e===null&&ie(20),e}set(e,t,r,o){const i=this._selection,s=this.key;o&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,ep()||(wl()===s&&yn(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}};function Fi(n,e,t){return new SLe(n,e,t)}function s2(n,e){let t=e.__key,r=n.offset,o="element";if(we(e)){o="text";const i=e.getTextContentSize();r>i&&(r=i)}else if(!te(e)){const i=e.getNextSibling();if(we(i))t=i.__key,r=0,o="text";else{const s=e.getParent();s&&(t=s.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,o)}function ME(n,e){if(te(e)){const t=e.getLastDescendant();te(t)||we(t)?s2(n,t):s2(n,e)}else s2(n,e)}let YO=class XO{constructor(e){E(this,"_nodes");E(this,"_cachedNodes");E(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!ix(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new XO(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),r=t.length,o=t[r-1];let i;if(we(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<r;s++)t[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const o of t){const i=on(o);i!==null&&r.push(i)}return ep()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((ct()||Qg())===this&&e[0]){const t=Xn(e[0],"next");sFe(Zc(t,t))}for(const t of e)t.remove()}};function Oe(n){return n instanceof Xg}let Xg=class QO{constructor(e,t,r,o){E(this,"format");E(this,"style");E(this,"anchor");E(this,"focus");E(this,"_cachedNodes");E(this,"dirty");this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Oe(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const l=new Set,a=new Set;for(const c of r)if(Os(c)){const{origin:d}=c;o.length===0?l.add(d):(a.add(d),o.push(d))}else{const{origin:d}=c;te(d)&&a.has(d)||o.push(d)}if(s&&o.push(s.caret.origin),Md(r.focus)&&te(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let c=na(r.focus.origin,"previous");Os(c)&&l.has(c.origin)&&!c.origin.isEmpty()&&c.origin.is(o[o.length-1]);c=yx(c))l.delete(c.origin),o.pop();for(;o.length>1;){const c=o[o.length-1];if(!te(c)||a.has(c)||c.isEmpty()||l.has(c))break;o.pop()}if(o.length===0&&r.isCollapsed()){const c=ki(r.anchor),d=ki(r.anchor.getFlipped()),h=g=>ac(g)?g.origin:g.getNodeAtCaret(),f=h(c)||h(d)||(r.anchor.getNodeAtCaret()?c.origin:d.origin);o.push(f)}return o}(ID(s4(this),"next"));return ep()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,o){this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[l,a]=DE(this);let c="",d=!0;for(let h=0;h<e.length;h++){const f=e[h];if(te(f)&&!f.isInline())d||(c+=`
57
+ `),d=!f.isEmpty();else if(d=!1,we(f)){let g=f.getTextContent();f===t?f===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(g=l<a?g.slice(l,a):g.slice(a,l)):g=s?g.slice(l):g.slice(a):f===r&&(g=s?g.slice(0,a):g.slice(0,l)),c+=g}else!bt(f)&&!mh(f)||f===r&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(e){const t=Mt(),r=t.getEditorState()._selection,o=tD(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),WDe(this)}clone(){const e=this.anchor,t=this.focus;return new QO(Fi(e.key,e.offset,e.type),Fi(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=S_(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=lr[e];return(this.format&t)!==0}insertRawText(e){const t=e.split(/(\r?\n|\t)/),r=[],o=t.length;for(let i=0;i<o;i++){const s=t[i];s===`
58
+ `||s===`\r
59
+ `?r.push(dg()):s===" "?r.push(ox()):r.push(dn(s))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,o=this.format,i=this.style;let s=t,l=r;!this.isCollapsed()&&r.isBefore(t)&&(s=r,l=t),s.type==="element"&&function(_,C,y,v){const k=_.getNode(),x=k.getChildAtIndex(_.offset),b=dn();if(b.setFormat(y),b.setStyle(v),MLe(x))x.splice(0,0,[b]);else{const T=On(k)?jr().append(b):b;x===null?k.append(T):x.insertBefore(T)}_.is(C)&&C.set(b.__key,0,"text"),_.set(b.__key,0,"text")}(s,l,o,i),l.type==="element"&&hg(l,ki(Gc(l,"next")));const a=s.offset;let c=l.offset;const d=this.getNodes(),h=d.length;let f=d[0];we(f)||ie(26);const g=f.getTextContent().length,p=f.getParentOrThrow();let m=d[h-1];if(h===1&&l.type==="element"&&(c=g,l.set(s.key,c,"text")),this.isCollapsed()&&a===g&&(dl(f)||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&f.getNextSibling()===null)){let _=f.getNextSibling();if(we(_)&&_.canInsertTextBefore()&&!dl(_)||(_=dn(),_.setFormat(o),_.setStyle(i),p.canInsertTextAfter()?f.insertAfter(_):p.insertAfter(_)),_.select(0,0),f=_,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(dl(f)||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&f.getPreviousSibling()===null)){let _=f.getPreviousSibling();if(we(_)&&!dl(_)||(_=dn(),_.setFormat(o),p.canInsertTextBefore()?f.insertBefore(_):p.insertBefore(_)),_.select(),f=_,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&a!==g){const _=dn(f.getTextContent());_.setFormat(o),f.replace(_),f=_}else if(!this.isCollapsed()&&e!==""){const _=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||te(_)&&(!_.canInsertTextBefore()||!_.canInsertTextAfter()))return this.insertText(""),eD(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(sc(f)){const v=dn(e);return v.select(),void f.replace(v)}const _=f.getFormat(),C=f.getStyle();if(a!==c||_===o&&C===i){if(JO(f)){const v=dn(e);return v.setFormat(o),v.setStyle(i),v.select(),void f.replace(v)}}else{if(f.getTextContent()!==""){const v=dn(e);if(v.setFormat(o),v.setStyle(i),v.select(),a===0)f.insertBefore(v,!1);else{const[k]=f.splitText(a);k.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(o),f.setStyle(i)}const y=c-a;f=f.spliceText(a,y,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=_,this.style=C))}else{const _=new Set([...f.getParentKeys(),...m.getParentKeys()]),C=te(f)?f:f.getParentOrThrow();let y=te(m)?m:m.getParentOrThrow(),v=m;if(!C.is(y)&&y.isInline())do v=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(c!==0||m.getTextContent()==="")||l.type==="element"&&m.getIndexWithinParent()<c)if(we(m)&&!sc(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){const w=dn(m.getTextContent());m.replace(w),m=w}On(l.getNode())||l.type!=="text"||(m=m.spliceText(0,c,"")),_.add(m.__key)}else{const w=m.getParentOrThrow();w.canBeEmpty()||w.getChildrenSize()!==1?m.remove():w.remove()}else _.add(m.__key);const k=y.getChildren(),x=new Set(d),b=C.is(y),T=C.isInline()&&f.getNextSibling()===null?C:f;for(let w=k.length-1;w>=0;w--){const S=k[w];if(S.is(f)||te(S)&&S.isParentOf(f))break;S.isAttached()&&(!x.has(S)||S.is(v)?b||T.insertAfter(S,!1):S.remove())}if(!b){let w=y,S=null;for(;w!==null;){const N=w.getChildren(),$=N.length;($===0||N[$-1].is(S))&&(_.delete(w.__key),S=w),w=w.getParent()}}if(sc(f))if(a===g)f.select();else{const w=dn(e);w.select(),f.replace(w)}else f=f.spliceText(a,g-a,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let w=1;w<h;w++){const S=d[w],N=S.__key;_.has(N)||S.remove()}}}removeText(){const e=ct()===this;z1(this,lFe(s4(this))),e&&ct()!==this&&po(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void yn(null);const r=this.getNodes(),o=[];for(const k of r)we(k)&&o.push(k);const i=k=>{r.forEach(x=>{if(te(x)){const b=x.getFormatFlags(e,k);x.setTextFormat(b)}})},s=o.length;if(s===0)return this.toggleFormat(e),yn(null),void i(t);const l=this.anchor,a=this.focus,c=this.isBackward(),d=c?a:l,h=c?l:a;let f=0,g=o[0],p=d.type==="element"?0:d.offset;if(d.type==="text"&&p===g.getTextContentSize()&&(f=1,g=o[1],p=0),g==null)return;const m=g.getFormatFlags(e,t);i(m);const _=s-1;let C=o[_];const y=h.type==="text"?h.offset:C.getTextContentSize();if(g.is(C)){if(p===y)return;if(dl(g)||p===0&&y===g.getTextContentSize())g.setFormat(m);else{const k=g.splitText(p,y),x=p===0?k[0]:k[1];x.setFormat(m),d.type==="text"&&d.set(x.__key,0,"text"),h.type==="text"&&h.set(x.__key,y-p,"text")}return void(this.format=m)}p===0||dl(g)||([,g]=g.splitText(p),p=0),g.setFormat(m);const v=C.getFormatFlags(e,m);y>0&&(y===C.getTextContentSize()||dl(C)||([C]=C.splitText(y)),C.setFormat(v));for(let k=f+1;k<_;k++){const x=o[k],b=x.getFormatFlags(e,v);x.setFormat(b)}d.type==="text"&&d.set(g.__key,p,"text"),h.type==="text"&&h.set(C.__key,y,"text"),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const p=ct();return Oe(p)||ie(134),p.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),r=B1(t,vl),o=e[e.length-1];if(te(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const p=l2(this);r.splice(p,0,e),o.selectEnd()}return}if(!e.some(p=>(te(p)||bt(p))&&!p.isInline())){te(r)||ie(211,t.constructor.name,t.getType());const p=l2(this);return r.splice(p,0,e),void o.selectEnd()}const i=function(p){const m=jr();let _=null;for(let C=0;C<p.length;C++){const y=p[C],v=mh(y);if(v||bt(y)&&y.isInline()||te(y)&&y.isInline()||we(y)||y.isParentRequired()){if(_===null&&(_=y.createParentElementNode(),m.append(_),v))continue;_!==null&&_.append(y)}else m.append(y),_=null}return m}(e),s=i.getLastDescendant(),l=i.getChildren(),a=!te(r)||!r.isEmpty()?this.insertParagraph():null,c=l[l.length-1];let d=l[0];var h;te(h=d)&&vl(h)&&!h.isEmpty()&&te(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(te(r)||ie(211,t.constructor.name,t.getType()),r.append(...d.getChildren()),d=l[1]),d&&(r===null&&ie(212,t.constructor.name,t.getType()),function(p,m){const _=m.getParentOrThrow().getLastChild();let C=m;const y=[m];for(;C!==_;)C.getNextSibling()||ie(140),C=C.getNextSibling(),y.push(C);let v=p;for(const k of y)v=v.insertAfter(k)}(r,d));const f=B1(s,vl);a&&te(f)&&(a.canMergeWhenEmpty()||vl(c))&&(f.append(...a.getChildren()),a.remove()),te(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const g=te(r)?r.getLastChild():null;mh(g)&&f!==r&&g.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=jr();return Pi().splice(this.anchor.offset,0,[s]),s.select(),s}const e=l2(this),t=B1(this.anchor.getNode(),vl);te(t)||ie(213);const r=t.getChildAtIndex(e),o=r?[r,...r.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(e){const t=dg();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),o=t.getIndexWithinParent();r.select(o,o)}}extract(){const e=[...this.getNodes()],t=e.length;let r=e[0],o=e[t-1];const[i,s]=DE(this),l=this.isBackward(),[a,c]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,h]=l?[s,i]:[i,s];if(t===0)return[];if(t===1){if(we(r)&&!this.isCollapsed()){const f=r.splitText(d,h),g=d===0?f[0]:f[1];return g?(a.set(g.getKey(),0,"text"),c.set(g.getKey(),g.getTextContentSize(),"text"),[g]):[]}return[r]}if(we(r)&&(d===r.getTextContentSize()?e.shift():d!==0&&([,r]=r.splitText(d),e[0]=r,a.set(r.getKey(),0,"text"))),we(o)){const f=o.getTextContent().length;h===0?e.pop():h!==f&&([o]=o.splitText(h),e[e.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return e}modify(e,t,r){if(zE(this,e,t,r))return;const o=e==="move",i=Mt(),s=Us(mo(i));if(!s)return;const l=i._blockCursorElement,a=i._rootElement,c=this.focus.getNode();if(a===null||l===null||!te(c)||c.isInline()||c.canBeEmpty()||Db(l,i,a),this.dirty){let d=qc(i,this.anchor.key),h=qc(i,this.focus.key);this.anchor.type==="text"&&(d=Ad(d)),this.focus.type==="text"&&(h=Ad(h)),d&&h&&oD(s,d,this.anchor.offset,h,this.focus.offset)}if(function(d,h,f,g){d.modify(h,f,g)}(s,e,t?"backward":"forward",r),s.rangeCount>0){const d=s.getRangeAt(0),h=this.anchor.getNode(),f=On(h)?h:VLe(h);if(this.applyDOMRange(d),this.dirty=!0,!o){const g=this.getNodes(),p=[];let m=!1;for(let _=0;_<g.length;_++){const C=g[_];Ob(C,f)?p.push(C):m=!0}if(m&&p.length>0)if(t){const _=p[0];te(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=p[p.length-1];te(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}s.anchorNode===d.startContainer&&s.anchorOffset===d.startOffset||function(_){const C=_.focus,y=_.anchor,v=y.key,k=y.offset,x=y.type;y.set(C.key,C.offset,C.type,!0),C.set(v,k,x,!0)}(this)}}r==="lineboundary"&&zE(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&te(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const o=t.getParent(),i=t.getNextSibling()||(o===null?null:o.getNextSibling());if(te(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,e))return;const i=DD(Gc(r,e?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const a of i.iterNodeCarets("shadowRoot"))if(Os(a)){if(!a.origin.isInline()){if(a.origin.isShadowRoot()){if(l.type==="merge-block")break;if(te(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=ki(a);z1(this,Zc(c,c)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:a,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Md(a)){if(te(a.origin)){if(a.origin.isInline()){if(!a.origin.isParentOf(i.anchor.origin))break}else l={block:a.origin,type:"merge-next-block"};continue}if(bt(a.origin)){if(!a.origin.isIsolated())if(l.type==="merge-next-block"&&(a.origin.isKeyboardSelectable()||!a.origin.isInline())&&te(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=rD();c.add(a.origin.getKey()),po(c)}else a.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:a,block:c}=l;return z1(this,Zc(!a.origin.isEmpty()&&c.isEmpty()?vx(Xn(c,a.direction)):i.anchor,a)),this.removeText()}}const s=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&LE(this,r.getNode()))return}else{const l=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=s.offset,c=l.getTextContentSize();if(l.is(o)||e&&a!==c||!e&&a!==0)return void FE(l,e,a)}else if(o!==null&&o.isSegmented()){const a=r.offset,c=o.getTextContentSize();if(o.is(l)||e&&a!==0||!e&&a!==c)return void FE(o,e,a)}(function(a,c){const d=a.anchor,h=a.focus,f=d.getNode(),g=h.getNode();if(f===g&&d.type==="text"&&h.type==="text"){const p=d.offset,m=h.offset,_=p<m,C=_?p:m,y=_?m:p,v=y-1;C!==v&&function(k){return!(ED(k)||wLe(k))}(f.getTextContent().slice(C,y))&&(c?h.set(h.key,v,h.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&On(r.getParent())&&r.getPreviousSibling()===null&&LE(this,r)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function ix(n){return n instanceof YO}function OE(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function DE(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[OE(t),OE(r)]}function LE(n,e){for(let t=e;t;t=t.getParent()){if(te(t)){if(t.collapseAtStart(n))return!0;if(_a(t))break}if(t.getPreviousSibling())break}return!1}const wLe=(()=>{try{const n=new RegExp("\\p{Emoji}","u"),e=n.test.bind(n);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function FE(n,e,t){const r=n,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let c=0;c<i;c++){const d=c===i-1;if(l=s,s+=o[c].length,e&&s===t||s>t||d){o.splice(c,1),d&&(l=void 0);break}}const a=o.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function PE(n,e,t,r){let o,i=e;if(Xr(n)){let s=!1;const l=n.childNodes,a=l.length,c=r._blockCursorElement;i===a&&(s=!0,i=a-1);let d=l[i],h=!1;if(d===c)d=l[i+1],h=!0;else if(c!==null){const f=c.parentNode;n===f&&e>Array.prototype.indexOf.call(f.children,c)&&i--}if(o=zu(d),we(o))i=Bl(o,s?"next":"previous");else{let f=zu(n);if(f===null)return null;if(te(f)){const g=r.getElementByKey(f.getKey());g===null&&ie(214),[f,i]=f.getDOMSlot(g).resolveChildIndex(f,g,n,e),te(f)||ie(215),s&&i>=f.getChildrenSize()&&(i=Math.max(0,f.getChildrenSize()-1));let m=f.getChildAtIndex(i);if(te(m)&&function(_,C,y){const v=_.getParent();return y===null||v===null||!v.canBeEmpty()||v!==y.getNode()}(m,0,t)){const _=s?m.getLastDescendant():m.getFirstDescendant();_===null?f=m:(m=_,f=te(m)?m:m.getParentOrThrow()),i=0}we(m)?(o=m,f=null,i=Bl(m,s?"next":"previous")):m!==f&&s&&!h&&(te(f)||ie(216),i=Math.min(f.getChildrenSize(),i+1))}else{const g=f.getIndexWithinParent();i=e===0&&bt(f)&&zu(n)===f?g:g+1,f=f.getParentOrThrow()}if(te(f))return Fi(f.__key,i,"element")}}else o=zu(n);return we(o)?Fi(o.__key,Bl(o,i,"clamp"),"text"):null}function IE(n,e,t){const r=n.offset,o=n.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(e){if((t||!e)&&i===null&&te(s)&&s.isInline()){const l=s.getPreviousSibling();we(l)&&n.set(l.__key,l.getTextContent().length,"text")}}else te(i)&&!t&&i.isInline()?n.set(i.__key,i.getChildrenSize(),"element"):we(i)&&n.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(e&&te(i)&&i.isInline())n.set(i.__key,0,"element");else if((t||e)&&i===null&&te(s)&&s.isInline()&&!s.canInsertTextAfter()){const l=s.getNextSibling();we(l)&&n.set(l.__key,0,"text")}}}function eD(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),o=n.is(e);IE(n,r,o),IE(e,!r,o),o&&e.set(n.key,n.offset,n.type);const i=Mt();if(i.isComposing()&&i._compositionKey!==n.key&&Oe(t)){const s=t.anchor,l=t.focus;n.set(s.key,s.offset,s.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function tD(n,e,t,r,o,i){if(n===null||t===null||!sy(o,n,t))return null;const s=PE(n,e,Oe(i)?i.anchor:null,o);if(s===null)return null;const l=PE(t,r,Oe(i)?i.focus:null,o);if(l===null)return null;if(s.type==="element"&&l.type==="element"){const a=zu(n),c=zu(t);if(bt(a)&&bt(c))return null}return eD(s,l,i),[s,l]}function nD(n,e,t,r,o,i){const s=ma(),l=new Xg(Fi(n,e,o),Fi(t,r,i),0,"");return l.dirty=!0,s._selection=l,l}function TLe(){const n=Fi("root",0,"element"),e=Fi("root",0,"element");return new Xg(n,e,0,"")}function rD(){return new YO(new Set)}function sx(n,e,t,r){const o=t._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,l=s==="selectionchange",a=!_b&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,d,h,f;if(Oe(n)&&!a)return n.clone();if(e===null)return null;if(c=e.anchorNode,d=e.focusNode,h=e.anchorOffset,f=e.focusOffset,(l||s===void 0)&&Oe(n)&&!sy(t,c,d))return n.clone();const g=tD(c,h,d,f,t,n);if(g===null)return null;const[p,m]=g;return new Xg(p,m,Oe(n)?n.format:0,Oe(n)?n.style:"")}function ct(){return ma()._selection}function Qg(){return Mt()._editorState._selection}function k_(n,e,t,r=1){const o=n.anchor,i=n.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(n.isCollapsed()){const c=o.offset;if(t<=c&&r>0||t<c&&r<0){const d=Math.max(0,c+r);o.set(a,d,"element"),i.set(a,d,"element"),BE(n)}}else{const c=n.isBackward(),d=c?i:o,h=d.getNode(),f=c?o:i,g=f.getNode();if(e.is(h)){const p=d.offset;(t<=p&&r>0||t<p&&r<0)&&d.set(a,Math.max(0,p+r),"element")}if(e.is(g)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}}BE(n)}function BE(n){const e=n.anchor,t=e.offset,r=n.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!te(i))return;const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(we(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text"),r.set(c.__key,d,"text")}return}if(te(i)){const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(we(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text")}}if(te(s)){const l=s.getChildrenSize(),a=o>=l,c=a?s.getChildAtIndex(l-1):s.getChildAtIndex(o);if(we(c)){let d=0;a&&(d=c.getTextContentSize()),r.set(c.__key,d,"text")}}}function x_(n,e,t,r,o){let i=null,s=0,l=null;r!==null?(i=r.__key,we(r)?(s=r.getTextContentSize(),l="text"):te(r)&&(s=r.getChildrenSize(),l="element")):o!==null&&(i=o.__key,we(o)?l="text":te(o)&&(l="element")),i!==null&&l!==null?n.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function RE(n,e,t,r,o){n.type==="text"?n.set(t,n.offset+(e?0:o),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function oD(n,e,t,r,o){try{n.setBaseAndExtent(e,t,r,o)}catch{}}function ELe(n,e,t,r,o,i,s){const l=r.anchorNode,a=r.focusNode,c=r.anchorOffset,d=r.focusOffset,h=document.activeElement;if(o.has(gLe)&&h!==i||h!==null&&kD(h))return;if(!Oe(e))return void(n!==null&&sy(t,l,a)&&r.removeAllRanges());const f=e.anchor,g=e.focus,p=f.key,m=g.key,_=qc(t,p),C=qc(t,m),y=f.offset,v=g.offset,k=e.format,x=e.style,b=e.isCollapsed();let T=_,w=C,S=!1;if(f.type==="text"){T=Ad(_);const F=f.getNode();S=F.getFormat()!==k||F.getStyle()!==x}else Oe(n)&&n.anchor.type==="text"&&(S=!0);var N,$,O,M,A;if(g.type==="text"&&(w=Ad(C)),T!==null&&w!==null&&(b&&(n===null||S||Oe(n)&&(n.format!==k||n.style!==x))&&(N=k,$=x,O=y,M=p,A=performance.now(),IO=[N,$,O,M,A]),c!==y||d!==v||l!==T||a!==w||r.type==="Range"&&b||(h!==null&&i.contains(h)||o.has(_Le)||i.focus({preventScroll:!0}),f.type==="element"))){if(oD(r,T,y,w,v),!o.has(pLe)&&e.isCollapsed()&&i!==null&&i===document.activeElement){const F=Oe(e)&&e.anchor.type==="element"?T.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(F!==null){let P;if(F instanceof Text){const z=document.createRange();z.selectNode(F),P=z.getBoundingClientRect()}else P=F.getBoundingClientRect();(function(z,I,L){const U=AD(L),W=gx(U);if(U===null||W===null)return;let{top:H,bottom:fe}=I,G=0,ae=0,R=L;for(;R!==null;){const J=R===U.body;if(J)G=0,ae=mo(z).innerHeight;else{const Z=R.getBoundingClientRect();G=Z.top,ae=Z.bottom}let B=0;if(H<G?B=-(G-H):fe>ae&&(B=fe-ae),B!==0)if(J)W.scrollBy(0,B);else{const Z=R.scrollTop;R.scrollTop+=B;const Ee=R.scrollTop-Z;H-=Ee,fe-=Ee}if(J)break;R=tp(R)}})(t,P,i)}}Nb=!0}}function l2(n){let e=n;n.isCollapsed()||e.removeText();const t=ct();Oe(t)&&(e=t),Oe(e)||ie(161);const r=e.anchor;let o=r.getNode(),i=r.offset;for(;!vl(o);){const s=o;if([o,i]=NLe(o,i),s.is(o))break}return i}function NLe(n,e){const t=n.getParent();if(!t){const o=jr();return Pi().append(o),o.select(),[Pi(),0]}if(we(n)){const o=n.splitText(e);if(o.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,o[0].getIndexWithinParent()+i]}if(!te(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const o=new Xg(Fi(n.__key,e,"element"),Fi(n.__key,e,"element"),0,""),i=n.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}function zE(n,e,t,r,o="decorators-and-blocks"){if(e==="move"&&r==="character"&&!n.isCollapsed()){const[d,h]=t===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return h.set(d.key,d.offset,d.type),!0}const i=Gc(n.focus,t?"previous":"next"),s=r==="lineboundary",l=e==="move";let a=i,c=o==="decorators-and-blocks";if(!aFe(a)){for(const d of a){c=!1;const{origin:h}=d;if(!bt(h)||h.isIsolated()||(a=d,!s||!h.isInline()))break}if(c)for(const d of DD(i).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Os(d))d.origin.isInline()||(a=d);else{if(te(d.origin))continue;bt(d.origin)&&!d.origin.isInline()&&(a=d)}break}}if(a===i)return!1;if(l&&!s&&bt(a.origin)&&a.origin.isKeyboardSelectable()){const d=rD();return d.add(a.origin.getKey()),po(d),!0}return a=ki(a),l&&hg(n.anchor,a),hg(n.focus,a),c||!s}let rn=null,wn=null,wr=!1,a2=!1,P1=0;const VE={characterData:!0,childList:!0,subtree:!0};function ep(){return wr||rn!==null&&rn._readOnly}function Kn(){wr&&ie(13)}function iD(){P1>99&&ie(14)}function ma(){return rn===null&&ie(195,sD()),rn}function Mt(){return wn===null&&ie(196,sD()),wn}function sD(){let n=0;const e=new Set,t=fg.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=ly(o);if(ax(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function WE(n,e,t){const r=e.__type,o=CD(n,r);let i=t.get(r);i===void 0&&(i=Array.from(o.transforms),t.set(r,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function KE(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function lD(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const o of r)t.add(o)}function aD(n,e){const t=n.type,r=e.get(t);r===void 0&&ie(17,t);const o=r.klass;n.type!==o.getType()&&ie(18,o.name);const i=o.importJSON(n),s=n.children;if(te(i)&&Array.isArray(s))for(let l=0;l<s.length;l++){const a=aD(s[l],e);i.append(a)}return i}function UE(n,e,t){const r=rn,o=wr,i=wn;rn=e,wr=!0,wn=n;try{return t()}finally{rn=r,wr=o,wn=i}}function bs(n,e){const t=n._pendingEditorState,r=n._rootElement,o=n._headless||r===null;if(t===null)return;const i=n._editorState,s=i._selection,l=t._selection,a=n._dirtyType!==0,c=rn,d=wr,h=wn,f=n._updating,g=n._observer;let p=null;if(n._pendingEditorState=null,n._editorState=t,!o&&a&&g!==null){wn=n,rn=t,wr=!1,n._updating=!0;try{const b=n._dirtyType,T=n._dirtyElements,w=n._dirtyLeaves;g.disconnect(),p=HDe(i,t,n,b,T,w)}catch(b){if(b instanceof Error&&n._onError(b),a2)throw b;return vD(n,null,r,t),kO(n),n._dirtyType=2,a2=!0,bs(n,i),void(a2=!1)}finally{g.observe(r,VE),n._updating=f,rn=c,wr=d,wn=h}}t._readOnly||(t._readOnly=!0);const m=n._dirtyLeaves,_=n._dirtyElements,C=n._normalizedNodes,y=n._updateTags,v=n._deferred;a&&(n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(b,T){const w=b._decorators;let S=b._pendingDecorators||w;const N=T._nodeMap;let $;for($ in S)N.has($)||(S===w&&(S=wD(b)),delete S[$])}(n,t);const k=o?null:Us(mo(n));if(n._editable&&k!==null&&(a||l===null||l.dirty||!l.is(s))&&r!==null&&!y.has(mLe)){wn=n,rn=t;try{if(g!==null&&g.disconnect(),a||l===null||l.dirty){const b=n._blockCursorElement;b!==null&&Db(b,n,r),ELe(s,l,n,k,y,r)}(function(b,T,w){let S=b._blockCursorElement;if(Oe(w)&&w.isCollapsed()&&w.anchor.type==="element"&&T.contains(document.activeElement)){const N=w.anchor,$=N.getNode(),O=N.offset;let M=!1,A=null;if(O===$.getChildrenSize())u2($.getChildAtIndex(O-1))&&(M=!0);else{const F=$.getChildAtIndex(O);if(F!==null&&u2(F)){const P=F.getPreviousSibling();(P===null||u2(P))&&(M=!0,A=b.getElementByKey(F.__key))}}if(M){const F=b.getElementByKey($.__key);return S===null&&(b._blockCursorElement=S=function(P){const z=P.theme,I=document.createElement("div");I.contentEditable="false",I.setAttribute("data-lexical-cursor","true");let L=z.blockCursor;if(L!==void 0){if(typeof L=="string"){const U=_O(L);L=z.blockCursor=U}L!==void 0&&I.classList.add(...L)}return I}(b._config)),T.style.caretColor="transparent",void(A===null?F.appendChild(S):F.insertBefore(S,A))}}S!==null&&Db(S,b,T)})(n,r,l)}finally{g!==null&&g.observe(r,VE),wn=h,rn=c}}p!==null&&function(b,T,w,S,N){const $=Array.from(b._listeners.mutation),O=$.length;for(let M=0;M<O;M++){const[A,F]=$[M];for(const P of F){const z=T.get(P);z!==void 0&&A(z,{dirtyLeaves:S,prevEditorState:N,updateTags:w})}}}(n,p,y,m,i),Oe(l)||l===null||s!==null&&s.is(l)||n.dispatchCommand($O,void 0);const x=n._pendingDecorators;x!==null&&(n._decorators=x,n._pendingDecorators=null,_h("decorator",n,!0,x)),function(b,T,w){const S=GE(T),N=GE(w);S!==N&&_h("textcontent",b,!0,N)}(n,e||i,t),_h("update",n,!0,{dirtyElements:_,dirtyLeaves:m,editorState:t,mutatedNodes:p,normalizedNodes:C,prevEditorState:e||i,tags:y}),function(b,T){if(b._deferred=[],T.length!==0){const w=b._updating;b._updating=!0;try{for(let S=0;S<T.length;S++)T[S]()}finally{b._updating=w}}}(n,v),function(b){const T=b._updates;if(T.length!==0){const w=T.shift();if(w){const[S,N]=w;iy(b,S,N)}}}(n)}function _h(n,e,t,...r){const o=e._updating;e._updating=t;try{const i=Array.from(e._listeners[n]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{e._updating=o}}function HE(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const o=t.shift();if(o){const[i,s]=o,l=n._pendingEditorState;let a;s!==void 0&&(a=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(l===null&&ie(191),l._flushSync=!0),a&&n._deferred.push(a),lD(n,s.tag)),l==null?iy(n,i,s):i()}}return r}function iy(n,e,t){const r=n._updateTags;let o,i=!1,s=!1;t!==void 0&&(o=t.onUpdate,lD(n,t.tag),i=t.skipTransforms||!1,s=t.discrete||!1),o&&n._deferred.push(o);const l=n._editorState;let a=n._pendingEditorState,c=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=fD(a||l),c=!0),a._flushSync=s;const d=rn,h=wr,f=wn,g=n._updating;rn=a,wr=!1,n._updating=!0,wn=n;const p=n._headless||n.getRootElement()===null;lx(null);try{c&&(p?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=function(y,v){const k=y.getEditorState()._selection,x=Us(mo(y));return Oe(k)||k==null?sx(k,x,y,v):k.clone()}(n,t&&t.event||null));const _=n._compositionKey;e(),i=HE(n,i),function(y,v){const k=v.getEditorState()._selection,x=y._selection;if(Oe(x)){const b=x.anchor,T=x.focus;let w;if(b.type==="text"&&(w=b.getNode(),w.selectionTransform(k,x)),T.type==="text"){const S=T.getNode();w!==S&&S.selectionTransform(k,x)}}}(a,n),n._dirtyType!==0&&(i?function(y,v){const k=v._dirtyLeaves,x=y._nodeMap;for(const b of k){const T=x.get(b);we(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&_E(T)}}(a,n):function(y,v){const k=v._dirtyLeaves,x=v._dirtyElements,b=y._nodeMap,T=wl(),w=new Map;let S=k,N=S.size,$=x,O=$.size;for(;N>0||O>0;){if(N>0){v._dirtyLeaves=new Set;for(const M of S){const A=b.get(M);we(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&_E(A),A!==void 0&&KE(A,T)&&WE(v,A,w),k.add(M)}if(S=v._dirtyLeaves,N=S.size,N>0){P1++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,$.delete("root")&&$.set("root",!0);for(const M of $){const A=M[0],F=M[1];if(x.set(A,F),!F)continue;const P=b.get(A);P!==void 0&&KE(P,T)&&WE(v,P,w)}S=v._dirtyLeaves,N=S.size,$=v._dirtyElements,O=$.size,P1++}v._dirtyLeaves=k,v._dirtyElements=x}(a,n),HE(n),function(y,v,k,x){const b=y._nodeMap,T=v._nodeMap,w=[];for(const[S]of x){const N=T.get(S);N!==void 0&&(N.isAttached()||(te(N)&&vO(N,S,b,T,w,x),b.has(S)||x.delete(S),w.push(S)))}for(const S of w)T.delete(S);for(const S of k){const N=T.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),T.delete(S))}}(l,a,n._dirtyLeaves,n._dirtyElements)),_!==n._compositionKey&&(a._flushSync=!0);const C=a._selection;if(Oe(C)){const y=a._nodeMap,v=C.anchor.key,k=C.focus.key;y.get(v)!==void 0&&y.get(k)!==void 0||ie(19)}else ix(C)&&C._nodes.size===0&&(a._selection=null)}catch(_){return _ instanceof Error&&n._onError(_),n._pendingEditorState=l,n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void bs(n)}finally{rn=d,wr=h,wn=f,n._updating=g,P1=0}n._dirtyType!==0||n._deferred.length>0||function(_,C){const y=C.getEditorState()._selection,v=_._selection;if(v!==null){if(v.dirty||!v.is(y))return!0}else if(y!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,bs(n)):c&&DLe(()=>{bs(n)}):(a._flushSync=!1,c&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Wr(n,e,t){wn===n&&t===void 0?e():iy(n,e,t)}let $Le=class I1{constructor(e,t,r){E(this,"element");E(this,"before");E(this,"after");this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new I1(this.element,e,this.after)}withAfter(e){return new I1(this.element,this.before,e)}withElement(e){return this.element===e?this:new I1(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&ie(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&ie(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&ie(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(ag||$d||lg);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,o){if(r===this.element){const a=this.getFirstChildOffset();return[e,Math.min(a+e.getChildrenSize(),Math.max(a,o))]}const i=qE(t,r);i.push(o);const s=qE(t,this.element);let l=e.getIndexWithinParent();for(let a=0;a<s.length;a++){const c=i[a],d=s[a];if(c===void 0||c<d)break;if(c>d){l+=1;break}}return[e.getParentOrThrow(),l]}};function qE(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;t.push(o)}return r!==n&&ie(225),t.reverse()}let Qd=class extends Il{constructor(t){super(t);E(this,"__first");E(this,"__last");E(this,"__size");E(this,"__format");E(this,"__style");E(this,"__indent");E(this,"__dir");E(this,"__textFormat");E(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return DDe[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=Mt()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(we(r)&&t.push(r),te(r)){const o=r.getAllTextNodes();t.push(...o)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;te(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;te(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),o=r.length;if(t>=o){const s=r[o-1];return te(s)&&s.getLastDescendant()||s||null}const i=r[t];return te(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:on(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&ie(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:on(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&ie(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let o,i;if(t<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=t;){if(i===t)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=t;){if(i===t)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let t="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContent(),te(s)&&i!==o-1&&!s.isInline()&&(t+=ta)}return t}getTextContentSize(){let t=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContentSize(),te(s)&&i!==o-1&&!s.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(t!==""){const r=cE[t];return(this.getFormat()&r)!==0}return!1}hasTextFormat(t){const r=lr[t];return(this.getTextFormat()&r)!==0}getFormatFlags(t,r){return S_(this.getLatest().__textFormat,t,r)}getTextStyle(){return this.getLatest().__textStyle}select(t,r){Kn();const o=ct();let i=t,s=r;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(t===0&&r===0){const c=this.getFirstChild();if(we(c)||te(c))return c.select(0,0)}else if(!(t!==void 0&&t!==l||r!==void 0&&r!==l)){const c=this.getLastChild();if(we(c)||te(c))return c.select()}}i===void 0&&(i=l),s===void 0&&(s=l);const a=this.__key;return Oe(o)?(o.anchor.set(a,i,"element"),o.focus.set(a,s,"element"),o.dirty=!0,o):nD(a,i,a,s,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(r=>r.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?cE[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const r=this.getWritable();return r.__textFormat=t,r}setTextStyle(t){const r=this.getWritable();return r.__textStyle=t,r}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,o){b_(this)&&ie(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();t+r<=i||ie(226,String(t),String(r),String(i));const l=s.__key,a=[],c=[],d=this.getChildAtIndex(t+r);let h=null,f=i-r+o.length;if(t!==0)if(t===i)h=this.getLastChild();else{const p=this.getChildAtIndex(t);p!==null&&(h=p.getPreviousSibling())}if(r>0){let p=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<r;m++){p===null&&ie(100);const _=p.getNextSibling(),C=p.__key;lc(p.getWritable()),c.push(C),p=_}}let g=h;for(const p of o){g!==null&&p.is(g)&&(h=g=g.getPreviousSibling());const m=p.getWritable();m.__parent===l&&f--,lc(m);const _=p.__key;if(g===null)s.__first=_,m.__prev=null;else{const C=g.getWritable();C.__next=_,m.__prev=C.__key}p.__key===l&&ie(76),m.__parent=l,a.push(_),g=p}if(t+r===i)g!==null&&(g.getWritable().__next=null,s.__last=g.__key);else if(d!==null){const p=d.getWritable();if(g!==null){const m=g.getWritable();p.__prev=g.__key,m.__next=d.__key}else p.__prev=null}if(s.__size=f,c.length){const p=ct();if(Oe(p)){const m=new Set(c),_=new Set(a),{anchor:C,focus:y}=p;jE(C,m,_)&&x_(C,C.getNode(),this,h,d),jE(y,m,_)&&x_(y,y.getNode(),this,h,d),f!==0||this.canBeEmpty()||_a(this)||this.remove()}}return s}getDOMSlot(t){return new $Le(t)}exportDOM(t){const{element:r}=super.exportDOM(t);if(Xr(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r!==0&&(t.textFormat=r),o!==""&&(t.textStyle=o),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,r){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,r){const o=this.getDOMSlot(t);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const l=r.getElementByKey(s.getKey());l!==null&&(i==null?(o.insertChild(l),i=l):i!==l&&o.replaceChild(l,i),i=i.nextSibling)}}};function te(n){return n instanceof Qd}function jE(n,e,t){let r=n.getNode();for(;r;){const o=r.__key;if(e.has(o)&&!t.has(o))return!0;r=r.getParent()}return!1}let cD=class extends Il{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function bt(n){return n instanceof cD}let uD=class dD extends Qd{constructor(){super("root");E(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new dD}getTopLevelElementOrThrow(){ie(51)}getTextContent(){const t=this.__cachedText;return!ep()&&Mt()._dirtyType!==0||t===null?super.getTextContent():t}remove(){ie(52)}replace(t){ie(53)}insertBefore(t){ie(54)}insertAfter(t){ie(55)}updateDOM(t,r){return!1}splice(t,r,o){for(const i of o)te(i)||bt(i)||ie(282);return super.splice(t,r,o)}static importJSON(t){return Pi().updateFromJSON(t)}collapseAtStart(){return!0}};function On(n){return n instanceof uD}function fD(n){return new pD(new Map(n._nodeMap))}function hD(){return new pD(new Map([["root",new uD]]))}function gD(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&ie(130,t.name),te(n)){const r=e.children;Array.isArray(r)||ie(59,t.name);const o=n.getChildren();for(let i=0;i<o.length;i++){const s=gD(o[i]);r.push(s)}}return e}let pD=class mD{constructor(e,t){E(this,"_nodeMap");E(this,"_selection");E(this,"_flushSync");E(this,"_readOnly");this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return UE(t&&t.editor||null,this,e)}clone(e){const t=new mD(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return UE(null,this,()=>({root:gD(Pi())}))}},_D=class yD extends Qd{static getType(){return"paragraph"}static clone(e){return new yD(e.__key)}createDOM(e){const t=document.createElement("p"),r=td(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:ALe,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Xr(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();r&&(t.style.textAlign=r)}return{element:t}}static importJSON(e){return jr().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){const r=jr();r.setTextFormat(e.format),r.setTextStyle(e.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||we(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function ALe(n){const e=jr();return n.style&&(e.setFormat(n.style.textAlign),px(n,e)),{node:e}}function jr(){return ef(new _D)}function MLe(n){return n instanceof _D}function vD(n,e,t,r){const o=n._keyToDOMMap;o.clear(),n._editorState=hD(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",o.set("root",t))}var Z2;let fg=(Z2=class{constructor(e,t,r,o,i,s,l,a){E(this,"_headless");E(this,"_parentEditor");E(this,"_rootElement");E(this,"_editorState");E(this,"_pendingEditorState");E(this,"_compositionKey");E(this,"_deferred");E(this,"_keyToDOMMap");E(this,"_updates");E(this,"_updating");E(this,"_listeners");E(this,"_commands");E(this,"_nodes");E(this,"_decorators");E(this,"_pendingDecorators");E(this,"_config");E(this,"_dirtyType");E(this,"_cloneNotNeeded");E(this,"_dirtyLeaves");E(this,"_dirtyElements");E(this,"_normalizedNodes");E(this,"_updateTags");E(this,"_observer");E(this,"_key");E(this,"_onError");E(this,"_htmlConversions");E(this,"_window");E(this,"_editable");E(this,"_blockCursorElement");E(this,"_createEditorArgs");this._createEditorArgs=a,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=PLe(),this._onError=i,this._htmlConversions=s,this._editable=l,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&ie(35);const o=this._commands;o.has(e)||o.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(e);i===void 0&&ie(36,String(e));const s=i[r];return s.add(t),()=>{s.delete(t),i.every(l=>l.size===0)&&o.delete(e)}}registerMutationListener(e,t,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let s=i.get(t);s===void 0&&(s=new Set,i.set(t,s)),s.add(o);const l=r&&r.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(t,o),()=>{s.delete(o),s.size===0&&i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&ie(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,o=r4(r).get(t.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,t);o.push(s)}return function(s,l){const a=r4(s.getEditorState()),c=[];for(const d of l){const h=a.get(d);h&&c.push(h)}c.length!==0&&s.update(()=>{for(const d of c)for(const h of d.keys()){const f=on(h);f&&f.markDirty()}},s._pendingEditorState===null?{tag:r2}:void 0)}(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return _e(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=td(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=e,vD(this,t,e,o),t!==null&&(this._config.disableEvents||fLe(t),r!=null&&t.classList.remove(...r)),e!==null){const i=gx(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,kO(this),this._updateTags.add(r2),bs(this),this._config.disableEvents||function(l,a){const c=l.ownerDocument;Eb.set(l,c);const d=C_.get(c)??0;d<1&&c.addEventListener("selectionchange",WO),C_.set(c,d+1),l.__lexicalEditor=a;const h=VO(l);for(let f=0;f<Tb.length;f++){const[g,p]=Tb[f],m=typeof p=="function"?_=>{TE(_)||(wE(_),(a.isEditable()||g==="click")&&p(_,a))}:_=>{if(TE(_))return;wE(_);const C=a.isEditable();switch(g){case"cut":return C&&_e(a,LO,_);case"copy":return _e(a,DO,_);case"paste":return C&&_e(a,AO,_);case"dragstart":return C&&_e(a,sLe,_);case"dragover":return C&&_e(a,lLe,_);case"dragend":return C&&_e(a,aLe,_);case"focus":return C&&_e(a,cLe,_);case"blur":return C&&_e(a,uLe,_);case"drop":return C&&_e(a,iLe,_)}};l.addEventListener(g,m),h.push(()=>{l.removeEventListener(g,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add(r2),bs(this);_h("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&ie(38);let r=e;r._readOnly&&(r=fD(e),r._selection=e._selection?e._selection.clone():null),bO(this);const o=this._pendingEditorState,i=this._updateTags,s=t!==void 0?t.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),bs(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||bs(this)}parseEditorState(e,t){return function(r,o,i){const s=hD(),l=rn,a=wr,c=wn,d=o._dirtyElements,h=o._dirtyLeaves,f=o._cloneNotNeeded,g=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,rn=s,wr=!1,wn=o,lx(null);try{const p=o._nodes;aD(r.root,p),i&&i(),s._readOnly=!0}catch(p){p instanceof Error&&o._onError(p)}finally{o._dirtyElements=d,o._dirtyLeaves=h,o._cloneNotNeeded=f,o._dirtyType=g,rn=l,wr=a,wn=c}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return bs(this),this.getEditorState().read(e,{editor:this})}update(e,t){(function(r,o,i){r._updating?r._updates.push([o,i]):iy(r,o,i)})(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Wr(this,()=>{const o=ct(),i=Pi();o!==null?o.dirty||po(o.clone()):i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),RLe("focus"),zLe(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=Us(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,_h("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}},E(Z2,"version"),Z2);fg.version="0.38.1+prod.esm";let Mb=null;function lx(n){Mb=n}let OLe=1;function CD(n,e){const t=bD(n,e);return t===void 0&&ie(30,e),t}function bD(n,e){return n._nodes.get(e)}const DLe=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function ZE(n){return bt(cx(n))}function kD(n){const e=document.activeElement;if(!Xr(e))return!1;const t=e.nodeName;return bt(cx(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&ly(e)==null)}function sy(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!kD(e)&&xD(e)===n}catch{return!1}}function ax(n){return n instanceof fg}function xD(n){let e=n;for(;e!=null;){const t=ly(e);if(ax(t))return t;e=tp(e)}return null}function ly(n){return n?n.__lexicalEditor:null}function sc(n){return JO(n)||n.isToken()}function dl(n){return sc(n)||n.isSegmented()}function Xs(n){return np(n)&&n.nodeType===3}function LLe(n){return np(n)&&n.nodeType===9}function Ad(n){let e=n;for(;e!=null;){if(Xs(e))return e;e=e.firstChild}return null}function S_(n,e,t){const r=lr[e];if(t!==null&&(n&r)===(t&r))return n;let o=n^r;return e==="subscript"?o&=~lr.superscript:e==="superscript"?o&=~lr.subscript:e==="lowercase"?(o&=~lr.uppercase,o&=~lr.capitalize):e==="uppercase"?(o&=~lr.lowercase,o&=~lr.capitalize):e==="capitalize"&&(o&=~lr.lowercase,o&=~lr.uppercase),o}function FLe(n,e){const t=function(){const s=Mb;return Mb=null,s}();if((e=e||t&&t.__key)!=null)return void(n.__key=e);Kn(),iD();const r=Mt(),o=ma(),i=""+OLe++;o._nodeMap.set(i,n),te(n)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,n.__key=i}function lc(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),o=n.getPreviousSibling(),i=n.getNextSibling(),s=i!==null?i.__key:null,l=o!==null?o.__key:null,a=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=l),a!==null&&(a.__next=s),c!==null&&(c.__prev=l),t.__prev=null,t.__next=null,t.__parent=null,r.__size--}}function w_(n){iD(),b_(n)&&ie(323,n.__key,n.__type);const e=n.getLatest(),t=e.__parent,r=ma(),o=Mt(),i=r._nodeMap,s=o._dirtyElements;t!==null&&function(a,c,d){let h=a;for(;h!==null;){if(d.has(h))return;const f=c.get(h);if(f===void 0)break;d.set(h,!1),h=f.__parent}}(t,i,s);const l=e.__key;o._dirtyType=1,te(n)?s.set(l,!0):o._dirtyLeaves.add(l)}function yn(n){Kn();const e=Mt(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=on(t);r!==null&&r.getWritable()}if(n!==null){const r=on(n);r!==null&&r.getWritable()}}}function wl(){return ep()?null:Mt()._compositionKey}function on(n,e){const t=(e||ma())._nodeMap.get(n);return t===void 0?null:t}function SD(n,e){const t=ay(n,Mt());return t!==void 0?on(t,e):null}function ay(n,e){return n[`__lexicalKey_${e._key}`]}function cx(n,e){let t=n;for(;t!=null;){const r=SD(t,e);if(r!==null)return r;t=tp(t)}return null}function wD(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function GE(n){return n.read(()=>Pi().getTextContent())}function Pi(){return TD(ma())}function TD(n){return n._nodeMap.get("root")}function po(n){Kn();const e=ma();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function zu(n){const e=Mt(),t=function(r,o){let i=r;for(;i!=null;){const s=ay(i,o);if(s!==void 0)return s;i=tp(i)}return null}(n,e);return t===null?n===e.getRootElement()?on("root"):null:on(t)}function ED(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function ux(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function PLe(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function ND(n){return Xs(n)?n.nodeValue:null}function dx(n,e,t){const r=Us(mo(e));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let l=ND(o);const a=cx(o);if(l!==null&&we(a)){if(l===ry&&t){const c=t.length;l=t,i=c,s=c}l!==null&&fx(a,l,i,s,n)}}}function fx(n,e,t,r,o){let i=n;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let l=e;(s||o)&&e[e.length-1]===ry&&(l=e.slice(0,-1));const a=i.getTextContent();if(o||l!==a){if(l===""){if(yn(null),lg||$d||ag)i.remove();else{const m=Mt();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),d=Qg(),h=i.getTextContentSize(),f=wl(),g=i.getKey();if(i.isToken()||f!==null&&g===f&&!s||Oe(d)&&(c!==null&&!c.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===n.__key&&d.anchor.offset===0&&!i.canInsertTextBefore()&&!s||d.focus.key===n.__key&&d.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=ct();if(!Oe(p)||t===null||r===null)return void JE(i,l,p);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=dn(i.getTextContent());i.replace(m),i=m}JE(i,l,p)}}}function JE(n,e,t){if(n.setTextContent(e),Oe(t)){const r=n.getKey();for(const o of["anchor","focus"]){const i=t[o];i.type==="text"&&i.key===r&&(i.offset=Bl(n,i.offset,"clamp"))}}}function Jp(n,e,t){const r=e[t]||!1;return r==="any"||r===n[t]}function ILe(n,e){return Jp(n,e,"altKey")&&Jp(n,e,"ctrlKey")&&Jp(n,e,"shiftKey")&&Jp(n,e,"metaKey")}function rt(n,e,t){return ILe(n,t)&&n.key.toLowerCase()===e.toLowerCase()}const cs={ctrlKey:!$o,metaKey:$o},YE={altKey:$o,ctrlKey:!$o};function XE(n){return n.key==="Backspace"}function QE(n){return rt(n,"a",cs)}function td(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const o=n[e];if(typeof o=="string"){const i=_O(o);return t[e]=i,i}return o}function hx(n,e,t,r,o){if(t.size===0)return;const i=r.__type,s=r.__key,l=e.get(i);l===void 0&&ie(33,i);const a=l.klass;let c=n.get(a);c===void 0&&(c=new Map,n.set(a,c));const d=c.get(s),h=d==="destroyed"&&o==="created";(d===void 0||h)&&c.set(s,h?"updated":o)}function e4(n,e,t){const r=n.getParent();let o=t,i=n;return r!==null&&(e&&t===0?(o=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function BLe(n,e){const t=n.offset;if(n.type==="element")return e4(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const o=e?r.getPreviousSibling():r.getNextSibling();return o===null?e4(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):o}}return null}function $D(n){const e=mo(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function _e(n,e,t){return function(r,o,i){const s=ux(r);for(let l=4;l>=0;l--)for(let a=0;a<s.length;a++){const c=s[a],d=c._commands.get(o);if(d!==void 0){const h=d[l];if(h!==void 0){const f=Array.from(h),g=f.length;let p=!1;if(Wr(c,()=>{for(let m=0;m<g;m++)if(f[m](i,r))return void(p=!0)}),p)return p}}}return!1}(n,e,t)}function cy(n){return!On(n)&&!n.isLastChild()&&!n.isInline()}function qc(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&ie(75,e),t}function tp(n){const e=n.assignedSlot||n.parentElement;return ULe(e)?e.host:e}function AD(n){return LLe(n)?n:Xr(n)?n.ownerDocument:null}function RLe(n){Kn(),Mt()._updateTags.add(n)}function zLe(n){Kn(),Mt()._deferred.push(n)}function Ob(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function gx(n){const e=AD(n);return e?e.defaultView:null}function mo(n){const e=n._window;return e===null&&ie(78),e}function VLe(n){let e=n.getParentOrThrow();for(;e!==null;){if(_a(e))return e;e=e.getParentOrThrow()}return e}function _a(n){return On(n)||te(n)&&n.isShadowRoot()}function ef(n){const e=Mt(),t=n.getType(),r=bD(e,t);r===void 0&&ie(200,n.constructor.name,t);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(n),l=s.constructor;return i!==null?s instanceof i||ie(201,i.name,i.getType(),l.name,l.getType(),n.constructor.name,t):s instanceof n.constructor&&l!==n.constructor||ie(202,l.name,l.getType(),n.constructor.name,t),s.__key===n.__key&&ie(203,n.constructor.name,t,l.name,l.getType()),s}return n}function c2(n,e){!On(n.getParent())||te(e)||bt(e)||ie(99)}function WLe(n){const e=on(n);return e===null&&ie(63,n),e}function u2(n){return(bt(n)||te(n)&&!n.canBeEmpty())&&!n.isInline()}function Db(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function Us(n){return Xo?(n||window).getSelection():null}function KLe(n){const e=gx(n);return e?e.getSelection():null}function Xr(n){return np(n)&&n.nodeType===1}function np(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function ULe(n){return np(n)&&n.nodeType===11}function HLe(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function t4(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function vl(n){if(bt(n)&&!n.isInline())return!0;if(!te(n)||_a(n))return!1;const e=n.getFirstChild(),t=e===null||mh(e)||we(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function qLe(){return Mt()}const n4=new WeakMap,jLe=new Map;function r4(n){if(!n._readOnly&&n.isEmpty())return jLe;n._readOnly||ie(192);let e=n4.get(n);return e||(e=function(t){const r=new Map;for(const[o,i]of t._nodeMap){const s=i.__type;let l=r.get(s);l||(l=new Map,r.set(s,l)),l.set(o,i)}return r}(n),n4.set(n,e)),e}function ZLe(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function px(n,e){const t=parseInt(n.style.paddingInlineStart,10)||0,r=Math.round(t/40);e.setIndent(r)}function GLe(n){return n.__lexicalUnmanaged===!0}function Pf(n,e){return function(t,r){return Object.prototype.hasOwnProperty.call(t,r)}(n,e)&&n[e]!==Il[e]}function JLe(n){const e=uE in n.prototype?n.prototype[uE]():void 0,t=function(s){if(!(s===Il||s.prototype instanceof Il)){let l="<unknown>",a="<unknown>";try{l=s.getType()}catch{}try{fg.version&&(a=JSON.parse(fg.version))}catch{}ie(290,s.name,l,a)}return s===cD||s===Qd||s===Il}(n),r=!t&&Pf(n,"getType")?n.getType():void 0;let o,i=r;if(e)if(r)o=e[r];else for(const[s,l]of Object.entries(e))i=s,o=l;if(!t&&i&&(Pf(n,"getType")||(n.getType=()=>i),Pf(n,"clone")||(n.clone=s=>(lx(s),new n)),Pf(n,"importJSON")||(n.importJSON=o&&o.$importJSON||(s=>new n().updateFromJSON(s))),!Pf(n,"importDOM")&&o)){const{importDOM:s}=o;s&&(n.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const B1=(n,e)=>{let t=n;for(;t!=null&&!On(t);){if(e(t))return t;t=t.getParent()}return null},YLe={next:"previous",previous:"next"};let mx=class{constructor(e){E(this,"origin");this.origin=e}[Symbol.iterator](){return LD({hasNext:Md,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Xn(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Xn(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){const o=r===this.direction?t:Array.from(t).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let a=i.getAdjacentCaret();a!==null&&l.size<e;a=a.getAdjacentCaret()){const c=a.origin.getWritable();l.set(c.getKey(),c)}for(const a of o){if(l.size>0){const c=i.getNodeAtCaret();if(c){if(l.delete(c.getKey()),l.delete(a.getKey()),!(c.is(a)||i.origin.is(a))){const d=a.getParent();d&&d.is(s)&&a.remove(),c.replace(a)}}else c===null&&ie(263,Array.from(l).join(" "))}else i.insert(a);i=Xn(a,this.direction)}for(const a of l.values())a.remove();return this}},Lb=class MD extends mx{constructor(){super(...arguments);E(this,"type","child")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:na(t,this.direction)}getParentCaret(t="root"){return Xn(_x(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=tf(this.direction);return Xn(this.getNodeAtCaret(),t)||na(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof MD&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}};const XLe={root:On,shadowRoot:_a};function tf(n){return YLe[n]}function _x(n,e="root"){return XLe[e](n)?null:n}let T_=class Fb extends mx{constructor(){super(...arguments);E(this,"type","sibling")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Xn(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return te(this.origin)?na(this.origin,this.direction):null}getParentCaret(t="root"){return Xn(_x(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=tf(this.direction);return Xn(this.getNodeAtCaret(),t)||na(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof Fb&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof Fb||t instanceof E_)&&this.direction===t.direction&&this.origin.is(t.origin)}},E_=class Pb extends mx{constructor(t,r){super(t);E(this,"type","text");E(this,"offset");this.offset=r}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:jc(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Xn(_x(this.getParentAtCaret(),t),this.direction)}getFlipped(){return jc(this.origin,tf(this.direction),this.offset)}isSamePointCaret(t){return t instanceof Pb&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof T_||t instanceof Pb)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Xn(this.origin,this.direction)}};function ac(n){return n instanceof E_}function Md(n){return n instanceof T_}function Os(n){return n instanceof Lb}const QLe={next:class extends E_{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends E_{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},eFe={next:class extends T_{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends T_{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},tFe={next:class extends Lb{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Lb{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Xn(n,e){return n?new eFe[e](n):null}function jc(n,e,t){return n?new QLe[e](n,Bl(n,t)):null}function Bl(n,e,t="error"){const r=n.getTextContentSize();let o=e==="next"?r:e==="previous"?0:e;return(o<0||o>r)&&(t!=="clamp"&&pO(284,String(e),String(r),n.getKey()),o=o<0?0:r),o}function o4(n,e){return new oFe(n,e)}function na(n,e){return te(n)?new tFe[e](n):null}function nFe(n){return n&&n.getChildCaret()||n}function yx(n){return n&&nFe(n.getAdjacentCaret())}let rFe=class OD{constructor(e,t,r){E(this,"type","node-caret-range");E(this,"direction");E(this,"anchor");E(this,"focus");this.anchor=e,this.focus=t,this.direction=r}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new OD(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=o=>{const i=this[o].getLatest();return ac(i)?function(s,l){const{direction:a,origin:c}=s,d=Bl(c,l==="focus"?tf(a):a);return o4(s,d-s.offset)}(i,o):null},t=e("anchor"),r=e("focus");if(t&&r){const{caret:o}=t,{caret:i}=r;if(o.isSameNodeCaret(i))return[o4(o,i.offset-o.offset),null]}return[t,r]}iterNodeCarets(e="root"){const t=ac(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=ac(r),i=s=>s.isSameNodeCaret(r)?null:yx(s)||s.getParentCaret(e);return LD({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:t.isSameNodeCaret(r)?null:i(t),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}},oFe=class{constructor(e,t){E(this,"type","slice");E(this,"caret");E(this,"distance");this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[r,o]=this.getSliceIndices(),i=e.getTextContent();return jc(e.setTextContent(i.slice(0,r)+i.slice(o)),t,r)}};function DD(n){return Zc(n,Xn(Pi(),n.direction))}function iFe(n){return Zc(n,n)}function Zc(n,e){return n.direction!==e.direction&&ie(265),new rFe(n,e,n.direction)}function LD(n){const{initial:e,hasNext:t,step:r,map:o}=n;let i=e;return{[Symbol.iterator](){return this},next(){if(!t(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function FD(n,e){const t=R1(n.origin,e.origin);switch(t===null&&ie(275,n.origin.getKey(),e.origin.getKey()),t.type){case"same":{const r=n.type==="text",o=e.type==="text";return r&&o?function(i,s){return Math.sign(i-s)}(n.offset,e.offset):n.type===e.type?0:r?-1:o?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return PD(t)}}function PD(n){const{a:e,b:t}=n,r=e.__key,o=t.__key;let i=e,s=t;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function Yp(n,e){return e.is(n)}function i4(n){return te(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function R1(n,e){if(n.is(e))return{commonAncestor:n,type:"same"};const t=new Map;for(let[r,o]=i4(n);r;o=r,r=r.getParent())t.set(r,o);for(let[r,o]=i4(e);r;o=r,r=r.getParent()){const i=t.get(r);if(i!==void 0)return i===null?(Yp(n,r)||ie(276),{commonAncestor:r,type:"ancestor"}):o===null?(Yp(e,r)||ie(277),{commonAncestor:r,type:"descendant"}):((te(i)||Yp(n,i))&&(te(o)||Yp(e,o))&&r.is(i.getParent())&&r.is(o.getParent())||ie(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function Gc(n,e){const{type:t,key:r,offset:o}=n,i=WLe(n.key);return t==="text"?(we(i)||ie(266,i.getType(),r),jc(i,e,o)):(te(i)||ie(267,i.getType(),r),cFe(i,n.offset,e))}function hg(n,e){const{origin:t,direction:r}=e,o=r==="next";ac(e)?n.set(t.getKey(),e.offset,"text"):Md(e)?we(t)?n.set(t.getKey(),Bl(t,r),"text"):n.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent()+(o?1:0),"element"):(Os(e)&&te(t)||ie(268),n.set(t.getKey(),o?0:t.getChildrenSize(),"element"))}function sFe(n){const e=ct(),t=Oe(e)?e:TLe();return z1(t,n),po(t),t}function z1(n,e){hg(n.anchor,e.anchor),hg(n.focus,e.focus)}function s4(n){const{anchor:e,focus:t}=n,r=Gc(e,"next"),o=Gc(t,"next"),i=FD(r,o)<=0?"next":"previous";return Zc(Od(r,i),Od(o,i))}function vx(n){const{direction:e,origin:t}=n,r=Xn(t,tf(e)).getNodeAtCaret();return r?Xn(r,e):na(t.getParentOrThrow(),e)}function l4(n,e="root"){const t=[n];for(let r=Os(n)?n.getParentCaret(e):n.getSiblingCaret();r!==null;r=r.getParentCaret(e))t.push(vx(r));return t}function d2(n){return!!n&&n.origin.isAttached()}function lFe(n,e="removeEmptySlices"){if(n.isCollapsed())return n;const t="root",r="next";let o=e;const i=ID(n,r),s=l4(i.anchor,t),l=l4(i.focus.getFlipped(),t),a=new Set,c=[];for(const p of i.iterNodeCarets(t))if(Os(p))a.add(p.origin.getKey());else if(Md(p)){const{origin:m}=p;te(m)&&!a.has(m.getKey())||c.push(m)}for(const p of c)p.remove();for(const p of i.getTextSlices()){if(!p)continue;const{origin:m}=p.caret,_=m.getTextContentSize(),C=vx(Xn(m,r)),y=m.getMode();if(Math.abs(p.distance)===_&&o==="removeEmptySlices"||y==="token"&&p.distance!==0)C.remove();else if(p.distance!==0){o="removeEmptySlices";let v=p.removeTextSlice();const k=p.caret.origin;if(y==="segmented"){const x=v.origin,b=dn(x.getTextContent()).setStyle(x.getStyle()).setFormat(x.getFormat());C.replaceOrInsert(b),v=jc(b,r,v.offset)}k.is(s[0].origin)&&(s[0]=v),k.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,h;for(const p of s)if(d2(p)){d=ki(p);break}for(const p of l)if(d2(p)){h=ki(p);break}const f=function(p,m,_){if(!p||!m)return null;const C=p.getParentAtCaret(),y=m.getParentAtCaret();if(!C||!y)return null;const v=C.getParents().reverse();v.push(C);const k=y.getParents().reverse();k.push(y);const x=Math.min(v.length,k.length);let b;for(b=0;b<x&&v[b]===k[b];b++);const T=(N,$)=>{let O;for(let M=b;M<N.length;M++){const A=N[M];if(_a(A))return;!O&&$(A)&&(O=A)}return O},w=T(v,vl),S=w&&T(k,N=>_.has(N.getKey())&&vl(N));return w&&S?[w,S]:null}(d,h,a);if(f){const[p,m]=f;na(p,"previous").splice(0,m.getChildren()),m.remove()}const g=[d,h,...s,...l].find(d2);if(g)return iFe(Od(ki(g),n.direction));ie(269,JSON.stringify(s.map(p=>p.origin.__key)))}function ki(n){const e=function(o){let i=o;for(;Os(i);){const s=yx(i);if(!Os(s))break;i=s}return i}(n.getLatest()),{direction:t}=e;if(we(e.origin))return ac(e)?e:jc(e.origin,t,t);const r=e.getAdjacentCaret();return Md(r)&&we(r.origin)?jc(r.origin,t,tf(t)):e}function aFe(n){return ac(n)&&n.offset!==Bl(n.origin,n.direction)}function Od(n,e){return n.direction===e?n:n.getFlipped()}function ID(n,e){return n.direction===e?n:Zc(Od(n.focus,e),Od(n.anchor,e))}function cFe(n,e,t){let r=na(n,"next");for(let o=0;o<e;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return Od(r,t)}const BD=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,uFe=BD&&"documentMode"in document?document.documentMode:null;!(!BD||!("InputEvent"in window)||uFe)&&"getTargetRanges"in new window.InputEvent("input");let Cx=class RD extends Qd{static getType(){return"quote"}static clone(e){return new RD(e.__key)}createDOM(e){const t=document.createElement("blockquote");return Vs(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:dFe,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Gd(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();r&&(t.style.textAlign=r);const o=this.getDirection();o&&(t.dir=o)}return{element:t}}static importJSON(e){return bx().updateFromJSON(e)}insertNewAfter(e,t){const r=jr(),o=this.getDirection();return r.setDirection(o),this.insertAfter(r,t),r}collapseAtStart(){const e=jr();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function bx(){return ef(new Cx)}function a4(n){return n instanceof Cx}let kx=class zD extends Qd{constructor(t,r){super(r);E(this,"__tag");this.__tag=t}static getType(){return"heading"}static clone(t){return new zD(t.__tag,t.__key)}getTag(){return this.__tag}setTag(t){const r=this.getWritable();return this.__tag=t,r}createDOM(t){const r=this.__tag,o=document.createElement(r),i=t.theme.heading;if(i!==void 0){const s=i[r];Vs(o,s)}return o}updateDOM(t,r,o){return t.__tag!==this.__tag}static importDOM(){return{h1:t=>({conversion:wu,priority:0}),h2:t=>({conversion:wu,priority:0}),h3:t=>({conversion:wu,priority:0}),h4:t=>({conversion:wu,priority:0}),h5:t=>({conversion:wu,priority:0}),h6:t=>({conversion:wu,priority:0}),p:t=>{const r=t.firstChild;return r!==null&&c4(r)?{conversion:()=>({node:null}),priority:3}:null},span:t=>c4(t)?{conversion:r=>({node:Vu("h1")}),priority:3}:null}}exportDOM(t){const{element:r}=super.exportDOM(t);if(Gd(r)){this.isEmpty()&&r.append(document.createElement("br"));const o=this.getFormatType();o&&(r.style.textAlign=o);const i=this.getDirection();i&&(r.dir=i)}return{element:r}}static importJSON(t){return Vu(t.tag).updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTag(t.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(t,r=!0){const o=t?t.anchor.offset:0,i=this.getLastDescendant(),s=!i||t&&t.anchor.key===i.getKey()&&o===i.getTextContentSize()||!t?jr():Vu(this.getTag()),l=this.getDirection();if(s.setDirection(l),this.insertAfter(s,r),o===0&&!this.isEmpty()&&t){const a=jr();a.select(),this.replace(a,!0)}return s}collapseAtStart(){const t=this.isEmpty()?jr():Vu(this.getTag());return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}extractWithChild(){return!0}};function c4(n){return n.nodeName.toLowerCase()==="span"&&n.style.fontSize==="26pt"}function wu(n){const e=n.nodeName.toLowerCase();let t=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(t=Vu(e),n.style!==null&&(px(n,t),t.setFormat(n.style.textAlign))),{node:t}}function dFe(n){const e=bx();return n.style!==null&&(e.setFormat(n.style.textAlign),px(n,e)),{node:e}}function Vu(n="h1"){return ef(new kx(n))}function fFe(n){return n instanceof kx}function se(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);throw t.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function VD(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);t.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Qo=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,hFe=Qo&&"documentMode"in document?document.documentMode:null,Ao=Qo&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Jc=Qo&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),N_=!(!Qo||!("InputEvent"in window)||hFe)&&"getTargetRanges"in new window.InputEvent("input"),gg=Qo&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Dd=Qo&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,gFe=Qo&&/Android/.test(navigator.userAgent),WD=Qo&&/^(?=.*Chrome).*/i.test(navigator.userAgent),u4=Qo&&gFe&&WD,pg=Qo&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Ao&&!WD;function KD(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const pFe=0,mFe=1,_Fe=2,UD=128,yFe=1,vFe=2,CFe=3,bFe=4,kFe=5,xFe=6,uy=gg||Dd||pg?" ":"​",ra=`
60
+
61
+ `,SFe=Jc?" ":uy,ar={bold:1,capitalize:1024,code:16,highlight:UD,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},wFe={directionless:1,unmergeable:2},d4={center:2,end:6,justify:4,left:1,right:3,start:5},TFe={[vFe]:"center",[xFe]:"end",[bFe]:"justify",[yFe]:"left",[CFe]:"right",[kFe]:"start"},EFe={normal:0,segmented:2,token:1},NFe={[pFe]:"normal",[_Fe]:"segmented",[mFe]:"token"},f4="$config";function HD(n,e,t,r,o,i){let s=n.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&(ne(s)&&HD(s,l,t,r,o,i),t.has(l)||i.delete(l),o.push(l)),s=s.getNextSibling()}}let Ib=!1,xx=0;function $Fe(n){xx=n.timeStamp}function f2(n,e,t){const r=n.nodeName==="BR",o=e.__lexicalLineBreak;return o&&(n===o||r&&n.previousSibling===o)||r&&yy(n,t)!==void 0}function AFe(n,e,t){const r=Hs(yo(t));let o=null,i=null;r!==null&&r.anchorNode===n&&(o=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&Ox(e,s,o,i,!1)}function MFe(n,e,t){if(De(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return Qs(e)&&t.isAttached()}function OFe(n,e,t,r){for(let o=n;o&&!WPe(o);o=lp(o)){const i=yy(o,e);if(i!==void 0){const s=ln(i,t);if(s)return kt(s)||!Qr(o)?void 0:[o,s]}else if(o===r)return[r,YL(t)]}}function qD(n,e,t){Ib=!0;const r=performance.now()-xx>100;try{Kr(n,()=>{const o=ut()||function(f){return f.getEditorState().read(()=>{const g=ut();return g!==null?g.clone():null})}(n),i=new Map,s=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let c=!1,d="";for(let f=0;f<e.length;f++){const g=e[f],p=g.type,m=g.target,_=OFe(m,n,l,s);if(!_)continue;const[C,y]=_;if(p==="characterData")r&&xe(y)&&Qs(m)&&MFe(o,m,y)&&AFe(m,y,n);else if(p==="childList"){c=!0;const v=g.addedNodes;for(let b=0;b<v.length;b++){const T=v[b],w=GL(T),S=T.parentNode;if(S!=null&&T!==a&&w===null&&!f2(T,S,n)){if(Jc){const N=(Qr(T)?T.innerText:null)||T.nodeValue;N&&(d+=N)}S.removeChild(T)}}const k=g.removedNodes,x=k.length;if(x>0){let b=0;for(let T=0;T<x;T++){const w=k[T];(f2(w,m,n)||a===w)&&(m.appendChild(w),b++)}x!==b&&i.set(C,y)}}}if(i.size>0)for(const[f,g]of i)g.reconcileObservedMutation(f,n);const h=t.takeRecords();if(h.length>0){for(let f=0;f<h.length;f++){const g=h[f],p=g.addedNodes,m=g.target;for(let _=0;_<p.length;_++){const C=p[_],y=C.parentNode;y==null||C.nodeName!=="BR"||f2(C,m,n)||y.removeChild(C)}}t.takeRecords()}o!==null&&(c&&_o(o),Jc&&eF(n)&&o.insertRawText(d))})}finally{Ib=!1}}function jD(n){const e=n._observer;e!==null&&qD(n,e.takeRecords(),e)}function ZD(n){(function(e){xx===0&&yo(e).addEventListener("textInput",$Fe,!0)})(n),n._observer=new MutationObserver((e,t)=>{qD(n,e,t)})}let DFe=class GD{constructor(e,t,r=void 0,o=new Map,i=void 0){E(this,"node");E(this,"knownState");E(this,"unknownState");E(this,"sharedNodeState");E(this,"size");this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,l=i!==void 0?i:function(a,c,d){let h=d.size;if(c)for(const f in c){const g=a.get(f);g&&d.has(g)||h++}return h}(s,r,o);this.size=l}getValue(e){const t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const o=this.unknownState[e.key];o!==void 0&&(r=e.parse(o)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return h4(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:r}=this,o=new Map(this.knownState);return new GD(e,t,function(i,s,l){let a;if(l)for(const[c,d]of Object.entries(l)){const h=i.get(c);h?s.has(h)||s.set(h,h.parse(d)):(a=a||{},a[c]=d)}return a}(t.sharedConfigMap,o,r),o,this.size)}updateFromKnown(e,t){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:o,unknownState:i}=this;o.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=h4(i)),this.size++),o.set(e,t)}updateFromUnknown(e,t){const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const r of t.keys())t.set(r,r.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[r,o]of Object.entries(e))this.updateFromUnknown(r,o)}};function LFe(n){const e=n.getWritable(),t=e.__state?e.__state.getWritable(e):new DFe(e,JD(e));return e.__state=t,t}function JD(n){return n.__state?n.__state.sharedNodeState:HL(nF(),n.getType()).sharedNodeState}function h4(n){if(n)for(const e in n)return n}function g4(n,e,t){for(const[r,o]of e.knownState){if(n.has(r.key))continue;n.add(r.key);const i=t?t.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function p4(n,e,t){const{unknownState:r}=e,o=t?t.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!n.has(i)&&(n.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function m4(n,e){const t=n.__state;return t&&t.node===n?t.getWritable(e):t}function _4(n,e){const t=n.__mode,r=n.__format,o=n.__style,i=e.__mode,s=e.__format,l=e.__style,a=n.__state,c=e.__state;return(t===null||t===i)&&(r===null||r===s)&&(o===null||o===l)&&(n.__state===null||a===c||function(d,h){if(d===h)return!0;if(d&&h&&d.size!==h.size)return!1;const f=new Set;return!(d&&g4(f,d,h)||h&&g4(f,h,d)||d&&p4(f,d,h)||h&&p4(f,h,d))}(a,c))}function y4(n,e){const t=n.mergeWithSibling(e),r=Ot()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function v4(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&xe(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(_4(e,r)){r=y4(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&xe(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(_4(r,t)){r=y4(r,t);break}break}t.remove()}}else r.remove()}function FFe(n){return C4(n.anchor),C4(n.focus),n}function C4(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,o;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),o=!0):(r=e.getChildAtIndex(t),o=!1),xe(r)){n.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!ne(r))break;n.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let Yc,Qn,mg,dy,Bb,Rb,Xc,Wo,zb,_g,Ut="",ui=null,di="",ms="",Du=!1,$_=!1;function A_(n,e){const t=Xc.get(n);if(e!==null){const r=Ub(n);r.parentNode===e&&e.removeChild(r)}if(Wo.has(n)||Qn._keyToDOMMap.delete(n),ne(t)){const r=O_(t,Xc);Vb(r,0,r.length-1,null)}t!==void 0&&Dx(_g,mg,dy,t,"destroyed")}function Vb(n,e,t,r){let o=e;for(;o<=t;++o){const i=n[o];i!==void 0&&A_(i,r)}}function Da(n,e){n.setProperty("text-align",e)}const PFe="40px";function YD(n,e){const t=Yc.theme.indent;if(typeof t=="string"){const o=n.classList.contains(t);e>0&&!o?n.classList.add(t):e<1&&o&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||PFe;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function XD(n,e){const t=n.style;e===0?Da(t,""):e===1?Da(t,"left"):e===2?Da(t,"center"):e===3?Da(t,"right"):e===4?Da(t,"justify"):e===5?Da(t,"start"):e===6&&Da(t,"end")}function Wb(n,e){const t=function(r){const o=r.__dir;if(o!==null)return o;if(Dn(r))return null;const i=r.getParentOrThrow();return Dn(i)&&i.__dir===null?"auto":null}(e);t!==null?n.dir=t:n.removeAttribute("dir")}function M_(n,e){const t=Wo.get(n);t===void 0&&se(60);const r=t.createDOM(Yc,Qn);if(function(o,i,s){const l=s._keyToDOMMap;(function(a,c,d){const h=`__lexicalKey_${c._key}`;a[h]=d})(i,s,o),l.set(o,i)}(n,r,Qn),xe(t)?r.setAttribute("data-lexical-text","true"):kt(t)&&r.setAttribute("data-lexical-decorator","true"),ne(t)){const o=t.__indent,i=t.__size;if(Wb(r,t),o!==0&&YD(r,o),i!==0){const l=i-1;Kb(O_(t,Wo),t,0,l,t.getDOMSlot(r))}const s=t.__format;s!==0&&XD(r,s),t.isInline()||QD(null,t,r),vy(t)&&(Ut+=ra,ms+=ra)}else{const o=t.getTextContent();if(kt(t)){const i=t.decorate(Qn,Yc);i!==null&&eL(n,i),r.contentEditable="false"}Ut+=o,ms+=o}return e!==null&&e.insertChild(r),Dx(_g,mg,dy,t,"created"),r}function Kb(n,e,t,r,o){const i=Ut;Ut="";let s=t;for(;s<=r;++s){M_(n[s],o);const l=Wo.get(n[s]);l!==null&&xe(l)&&(ui===null&&(ui=l.getFormat()),di===""&&(di=l.getStyle()))}vy(e)&&(Ut+=ra),o.element.__lexicalTextContent=Ut,Ut=i+Ut}function b4(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return bh(r)?"line-break":kt(r)&&r.isInline()?"decorator":null}return"empty"}return null}function QD(n,e,t){const r=b4(n,Xc),o=b4(e,Wo);r!==o&&e.getDOMSlot(t).setManagedLineBreak(o)}function IFe(n,e,t){var r;ui=null,di="",function(o,i,s){const l=Ut,a=o.__size,c=i.__size;Ut="";const d=s.element;if(a===1&&c===1){const h=o.__first,f=i.__first;if(h===f)Zf(h,d);else{const p=Ub(h),m=M_(f,null);try{d.replaceChild(m,p)}catch(_){if(typeof _=="object"&&_!=null){const C=`${_.toString()} Parent: ${d.tagName}, new child: {tag: ${m.tagName} key: ${f}}, old child: {tag: ${p.tagName}, key: ${h}}.`;throw new Error(C)}throw _}A_(h,null)}const g=Wo.get(f);xe(g)&&(ui===null&&(ui=g.getFormat()),di===""&&(di=g.getStyle()))}else{const h=O_(o,Xc),f=O_(i,Wo);if(h.length!==a&&se(227),f.length!==c&&se(228),a===0)c!==0&&Kb(f,i,0,c-1,s);else if(c===0){if(a!==0){const g=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;Vb(h,0,a-1,g?null:d),g&&(d.textContent="")}}else(function(g,p,m,_,C,y){const v=_-1,k=C-1;let x,b,T=y.getFirstChild(),w=0,S=0;for(;w<=v&&S<=k;){const O=p[w],M=m[S];if(O===M)T=h2(Zf(M,y.element)),w++,S++;else{x===void 0&&(x=new Set(p)),b===void 0&&(b=new Set(m));const F=b.has(O),P=x.has(M);if(F)if(P){const z=eu(Qn,M);z===T?T=h2(Zf(M,y.element)):(y.withBefore(T).insertChild(z),Zf(M,y.element)),w++,S++}else M_(M,y.withBefore(T)),S++;else T=h2(Ub(O)),A_(O,y.element),w++}const A=Wo.get(M);A!==null&&xe(A)&&(ui===null&&(ui=A.getFormat()),di===""&&(di=A.getStyle()))}const N=w>v,$=S>k;if(N&&!$){const O=m[k+1],M=O===void 0?null:Qn.getElementByKey(O);Kb(m,g,S,k,y.withBefore(M))}else $&&!N&&Vb(p,w,v,y.element)})(i,h,f,a,c,s)}vy(i)&&(Ut+=ra),d.__lexicalTextContent=Ut,Ut=l+Ut}(n,e,e.getDOMSlot(t)),r=e,ui==null||ui===r.__textFormat||$_||r.setTextFormat(ui),function(o){di===""||di===o.__textStyle||$_||o.setTextStyle(di)}(e)}function O_(n,e){const t=[];let r=n.__first;for(;r!==null;){const o=e.get(r);o===void 0&&se(101),t.push(r),r=o.__next}return t}function Zf(n,e){const t=Xc.get(n);let r=Wo.get(n);t!==void 0&&r!==void 0||se(61);const o=Du||Rb.has(n)||Bb.has(n),i=eu(Qn,n);if(t===r&&!o){if(ne(t)){const s=i.__lexicalTextContent;s!==void 0&&(Ut+=s,ms+=s)}else{const s=t.getTextContent();ms+=s,Ut+=s}return i}if(t!==r&&o&&Dx(_g,mg,dy,r,"updated"),r.updateDOM(t,i,Yc)){const s=M_(n,null);return e===null&&se(62),e.replaceChild(s,i),A_(n,null),s}if(ne(t)&&ne(r)){const s=r.__indent;(Du||s!==t.__indent)&&YD(i,s);const l=r.__format;if((Du||l!==t.__format)&&XD(i,l),o&&(IFe(t,r,i),Dn(r)||r.isInline()||QD(t,r,i)),vy(r)&&(Ut+=ra,ms+=ra),(Du||r.__dir!==t.__dir)&&(Wb(i,r),Dn(r)&&!Du))for(const a of r.getChildren())ne(a)&&Wb(eu(Qn,a.getKey()),a)}else{const s=r.getTextContent();if(kt(r)){const l=r.decorate(Qn,Yc);l!==null&&eL(n,l)}Ut+=s,ms+=s}if(!$_&&Dn(r)&&r.__cachedText!==ms){const s=r.getWritable();s.__cachedText=ms,r=s}return i}function eL(n,e){let t=Qn._pendingDecorators;const r=Qn._decorators;if(t===null){if(r[n]===e)return;t=JL(Qn)}t[n]=e}function h2(n){let e=n.nextSibling;return e!==null&&e===Qn._blockCursorElement&&(e=e.nextSibling),e}function BFe(n,e,t,r,o,i){Ut="",ms="",Du=r===2,Qn=t,Yc=t._config,mg=t._nodes,dy=Qn._listeners.mutation,Bb=o,Rb=i,Xc=n._nodeMap,Wo=e._nodeMap,$_=e._readOnly,zb=new Map(t._keyToDOMMap);const s=new Map;return _g=s,Zf("root",null),Qn=void 0,mg=void 0,Bb=void 0,Rb=void 0,Xc=void 0,Wo=void 0,Yc=void 0,zb=void 0,_g=void 0,s}function Ub(n){const e=zb.get(n);return e===void 0&&se(75,n),e}function He(n){return{type:n}}const tL=He("SELECTION_CHANGE_COMMAND"),RFe=He("CLICK_COMMAND"),D_=He("DELETE_CHARACTER_COMMAND"),V1=He("INSERT_LINE_BREAK_COMMAND"),k4=He("INSERT_PARAGRAPH_COMMAND"),yh=He("CONTROLLED_TEXT_INSERTION_COMMAND"),nL=He("PASTE_COMMAND"),x4=He("REMOVE_TEXT_COMMAND"),L_=He("DELETE_WORD_COMMAND"),F_=He("DELETE_LINE_COMMAND"),Ja=He("FORMAT_TEXT_COMMAND"),rL=He("UNDO_COMMAND"),oL=He("REDO_COMMAND"),zFe=He("KEYDOWN_COMMAND"),VFe=He("KEY_ARROW_RIGHT_COMMAND"),WFe=He("MOVE_TO_END"),KFe=He("KEY_ARROW_LEFT_COMMAND"),UFe=He("MOVE_TO_START"),HFe=He("KEY_ARROW_UP_COMMAND"),qFe=He("KEY_ARROW_DOWN_COMMAND"),Hb=He("KEY_ENTER_COMMAND"),jFe=He("KEY_SPACE_COMMAND"),ZFe=He("KEY_BACKSPACE_COMMAND"),GFe=He("KEY_ESCAPE_COMMAND"),JFe=He("KEY_DELETE_COMMAND"),YFe=He("KEY_TAB_COMMAND"),XFe=He("DROP_COMMAND"),QFe=He("DRAGSTART_COMMAND"),ePe=He("DRAGOVER_COMMAND"),tPe=He("DRAGEND_COMMAND"),iL=He("COPY_COMMAND"),sL=He("CUT_COMMAND"),S4=He("SELECT_ALL_COMMAND"),nPe=He("FOCUS_COMMAND"),rPe=He("BLUR_COMMAND"),oPe=He("KEY_MODIFIER_COMMAND"),rs=Object.freeze({}),qb=[["keydown",function(n,e){if(vh=n.timeStamp,lL=n.key,!e.isComposing()&&!ye(e,zFe,n)&&n.key!=null){if(g2&&eN(n))return Kr(e,()=>{Xp(e,p2)}),g2=!1,void(p2="");if(function(t){return ot(t,"ArrowRight",{shiftKey:"any"})}(n))ye(e,VFe,n);else if(function(t){return ot(t,"ArrowRight",us)}(n))ye(e,WFe,n);else if(function(t){return ot(t,"ArrowLeft",{shiftKey:"any"})}(n))ye(e,KFe,n);else if(function(t){return ot(t,"ArrowLeft",us)}(n))ye(e,UFe,n);else if(function(t){return ot(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(n))ye(e,HFe,n);else if(function(t){return ot(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(n))ye(e,qFe,n);else if(function(t){return ot(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(n))Ch=!0,ye(e,Hb,n);else if(function(t){return t.key===" "}(n))ye(e,jFe,n);else if(function(t){return Ao&&ot(t,"o",{ctrlKey:!0})}(n))n.preventDefault(),Ch=!0,ye(e,V1,!0);else if(function(t){return ot(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(n))Ch=!1,ye(e,Hb,n);else if(function(t){return ot(t,"Backspace",{shiftKey:"any"})||Ao&&ot(t,"h",{ctrlKey:!0})}(n))eN(n)?ye(e,ZFe,n):(n.preventDefault(),ye(e,D_,!0));else if(function(t){return t.key==="Escape"}(n))ye(e,GFe,n);else if(function(t){return ot(t,"Delete",{})||Ao&&ot(t,"d",{ctrlKey:!0})}(n))(function(t){return t.key==="Delete"})(n)?ye(e,JFe,n):(n.preventDefault(),ye(e,D_,!1));else if(function(t){return ot(t,"Backspace",Q4)}(n))n.preventDefault(),ye(e,L_,!0);else if(function(t){return ot(t,"Delete",Q4)}(n))n.preventDefault(),ye(e,L_,!1);else if(function(t){return Ao&&ot(t,"Backspace",{metaKey:!0})}(n))n.preventDefault(),ye(e,F_,!0);else if(function(t){return Ao&&(ot(t,"Delete",{metaKey:!0})||ot(t,"k",{ctrlKey:!0}))}(n))n.preventDefault(),ye(e,F_,!1);else if(function(t){return ot(t,"b",us)}(n))n.preventDefault(),ye(e,Ja,"bold");else if(function(t){return ot(t,"u",us)}(n))n.preventDefault(),ye(e,Ja,"underline");else if(function(t){return ot(t,"i",us)}(n))n.preventDefault(),ye(e,Ja,"italic");else if(function(t){return ot(t,"Tab",{shiftKey:"any"})}(n))ye(e,YFe,n);else if(function(t){return ot(t,"z",us)}(n))n.preventDefault(),ye(e,rL,void 0);else if(function(t){return Ao?ot(t,"z",{metaKey:!0,shiftKey:!0}):ot(t,"y",{ctrlKey:!0})||ot(t,"z",{ctrlKey:!0,shiftKey:!0})}(n))n.preventDefault(),ye(e,oL,void 0);else{const t=e._editorState._selection;t===null||De(t)?tN(n)&&(n.preventDefault(),ye(e,S4,n)):function(r){return ot(r,"c",us)}(n)?(n.preventDefault(),ye(e,iL,n)):function(r){return ot(r,"x",us)}(n)?(n.preventDefault(),ye(e,sL,n)):tN(n)&&(n.preventDefault(),ye(e,S4,n))}(function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey})(n)&&ye(e,oPe,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;cp(t)&&r!=="touch"&&r!=="pen"&&n.button===0&&Kr(e,()=>{J4(t)||(Gb=!0)})}],["compositionstart",function(n,e){Kr(e,()=>{const t=ut();if(De(t)&&!e.isComposing()){const r=t.anchor,o=t.anchor.getNode();Cn(r.key),(n.timeStamp<vh+30||r.type==="element"||!t.isCollapsed()||o.getFormat()!==t.format||xe(o)&&o.getStyle()!==t.style)&&ye(e,yh,SFe)}})}],["compositionend",function(n,e){Jc?If=!0:Dd||!gg&&!pg?Kr(e,()=>{Xp(e,n.data)}):(g2=!0,p2=n.data)}],["input",function(n,e){n.stopPropagation(),Kr(e,()=>{if(Qr(n.target)&&J4(n.target))return;const t=ut(),r=n.data,o=fL(n);if(r!=null&&De(t)&&uL(t,o,r,n.timeStamp,!1)){If&&(Xp(e,r),If=!1);const i=t.anchor.getNode(),s=Hs(yo(e));if(s===null)return;const l=t.isBackward(),a=l?t.anchor.offset:t.focus.offset,c=l?t.focus.offset:t.anchor.offset;N_&&!t.isCollapsed()&&xe(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+c)===QL(s.anchorNode)||ye(e,yh,r);const d=r.length;Jc&&d>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=d),gg||Dd||pg||!e.isComposing()||(vh=0,Cn(null))}else Mx(!1,e,r!==null?r:void 0),If&&(Xp(e,r||void 0),If=!1);(function(){vn();const i=Ot();jD(i)})()},{event:n}),Lu=null}],["click",function(n,e){Kr(e,()=>{const t=ut(),r=Hs(yo(e)),o=op();if(r){if(De(t)){const i=t.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&t.isCollapsed()&&!Dn(s)&&Bi().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&t.is(o))r.removeAllRanges(),t.dirty=!0;else if(n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()){const l=H1(s,a=>ne(a)&&!a.isInline());ne(l)&&l.select(0)}}else if(n.pointerType==="touch"||n.pointerType==="pen"){const i=r.anchorNode;(Qr(i)||Qs(i))&&_o(Tx(o,r,e,n))}}ye(e,RFe,n)})}],["cut",rs],["copy",rs],["dragstart",rs],["dragover",rs],["dragend",rs],["paste",rs],["focus",rs],["blur",rs],["drop",rs]];N_&&qb.push(["beforeinput",(n,e)=>function(t,r){const o=t.inputType,i=fL(t);o==="deleteCompositionText"||Jc&&eF(r)||o!=="insertCompositionText"&&Kr(r,()=>{const s=ut();if(o==="deleteContentBackward"){if(s===null){const g=op();if(!De(g))return;_o(g.clone())}if(De(s)){const g=s.anchor.key===s.focus.key;if(l=t.timeStamp,lL==="MediaLast"&&l<vh+30&&r.isComposing()&&g){if(Cn(null),vh=0,setTimeout(()=>{Kr(r,()=>{Cn(null)})},30),De(s)){const p=s.anchor.getNode();p.markDirty(),xe(p)||se(142),dL(s,p)}}else{Cn(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),_=p.canInsertTextAfter(),C=s.anchor.offset===0&&s.focus.offset===m.length;let y=u4&&g&&!C&&_;if(y&&s.isCollapsed()&&(y=!kt(MPe(s.anchor,!0))),!y){ye(r,D_,!0);const v=ut();u4&&De(v)&&v.isCollapsed()&&(Ka=v,setTimeout(()=>Ka=null))}}return}}var l;if(!De(s))return;const a=t.data;Lu!==null&&Mx(!1,r,Lu),s.dirty&&Lu===null||!s.isCollapsed()||Dn(s.anchor.getNode())||i===null||s.applyDOMRange(i),Lu=null;const c=s.anchor,d=s.focus,h=c.getNode(),f=d.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(t.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ye(r,yh,t);break;case"insertFromComposition":Cn(null),ye(r,yh,t);break;case"insertLineBreak":Cn(null),ye(r,V1,!1);break;case"insertParagraph":Cn(null),Ch&&!Dd?(Ch=!1,ye(r,V1,!1)):ye(r,k4,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ye(r,nL,t);break;case"deleteByComposition":(function(g,p){return g!==p||ne(g)||ne(p)||!cc(g)||!cc(p)})(h,f)&&ye(r,x4,t);break;case"deleteByDrag":case"deleteByCut":ye(r,x4,t);break;case"deleteContent":ye(r,D_,!1);break;case"deleteWordBackward":ye(r,L_,!0);break;case"deleteWordForward":ye(r,L_,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ye(r,F_,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ye(r,F_,!1);break;case"formatStrikeThrough":ye(r,Ja,"strikethrough");break;case"formatBold":ye(r,Ja,"bold");break;case"formatItalic":ye(r,Ja,"italic");break;case"formatUnderline":ye(r,Ja,"underline");break;case"historyUndo":ye(r,rL,void 0);break;case"historyRedo":ye(r,oL,void 0)}else{if(a===`
62
+ `)t.preventDefault(),ye(r,V1,!1);else if(a===ra)t.preventDefault(),ye(r,k4,void 0);else if(a==null&&t.dataTransfer){const g=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(g)}else a!=null&&uL(s,i,a,t.timeStamp,!0)?(t.preventDefault(),ye(r,yh,a)):Lu=a;aL=t.timeStamp}})}(n,e)]);let vh=0,lL=null,aL=0,Lu=null;const jb=new WeakMap,P_=new WeakMap;let Zb=!1,Gb=!1,Ch=!1,If=!1,g2=!1,p2="",Ka=null,cL=[0,"",0,"root",0];function uL(n,e,t,r,o){const i=n.anchor,s=n.focus,l=i.getNode(),a=Ot(),c=Hs(yo(a)),d=c!==null?c.anchorNode:null,h=i.key,f=a.getElementByKey(h),g=t.length;return h!==s.key||!xe(l)||(!o&&(!N_||aL<r+50)||l.isDirty()&&g<2||XL(t))&&i.offset!==s.offset&&!l.isComposing()||fl(l)||l.isDirty()&&g>1||(o||!N_)&&f!==null&&!l.isComposing()&&d!==Ld(f)||c!==null&&e!==null&&(!e.collapsed||e.startContainer!==c.anchorNode||e.startOffset!==c.anchorOffset)||l.getFormat()!==n.format||l.getStyle()!==n.style||function(p,m){if(m.isSegmented())return!0;if(!p.isCollapsed())return!1;const _=p.anchor.offset,C=m.getParentOrThrow(),y=cc(m);return _===0?!m.canInsertTextBefore()||!C.canInsertTextBefore()&&!m.isComposing()||y||function(v){const k=v.getPreviousSibling();return(xe(k)||ne(k)&&k.isInline())&&!k.canInsertTextAfter()}(m):_===m.getTextContentSize()&&(!m.canInsertTextAfter()||!C.canInsertTextAfter()&&!m.isComposing()||y)}(n,l)}function w4(n,e){return Qs(n)&&n.nodeValue!==null&&e!==0&&e!==n.nodeValue.length}function T4(n,e,t){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=n;Zb&&(Zb=!1,w4(r,o)&&w4(i,s)&&!Ka)||Kr(e,()=>{if(!t)return void _o(null);if(!my(e,r,i))return;let l=ut();if(Ka&&De(l)&&l.isCollapsed()){const a=l.anchor,c=Ka.anchor;(a.key===c.key&&a.offset===c.offset+1||a.offset===1&&c.getNode().is(a.getNode().getPreviousSibling()))&&(l=Ka.clone(),_o(l))}if(Ka=null,De(l)){const a=l.anchor,c=a.getNode();if(l.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(l.dirty=!0);const d=yo(e).event,h=d?d.timeStamp:performance.now(),[f,g,p,m,_]=cL,C=Bi(),y=e.isComposing()===!1&&C.getTextContent()==="";if(h<_+200&&a.offset===p&&a.key===m)W1(l,f,g);else if(a.type==="text")xe(c)||se(141),dL(l,c);else if(a.type==="element"&&!y){ne(c)||se(259);const v=a.getNode();v.isEmpty()?function(k,x){const b=x.getTextFormat(),T=x.getTextStyle();W1(k,b,T)}(l,v):W1(l,0,"")}}else{const d=a.key,h=l.focus.key,f=l.getNodes(),g=f.length,p=l.isBackward(),m=p?s:o,_=p?o:s,C=p?h:d,y=p?d:h;let v=2047,k=!1;for(let x=0;x<g;x++){const b=f[x],T=b.getTextContentSize();if(xe(b)&&T!==0&&!(x===0&&b.__key===C&&m===T||x===g-1&&b.__key===y&&_===0)&&(k=!0,v&=b.getFormat(),v===0))break}l.format=k?v:0}}ye(e,tL,void 0)})}function W1(n,e,t){n.format===e&&n.style===t||(n.format=e,n.style=t,n.dirty=!0)}function dL(n,e){W1(n,e.getFormat(),e.getStyle())}function fL(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function Xp(n,e){const t=n._compositionKey;if(Cn(null),t!==null&&e!=null){if(e===""){const r=ln(t),o=Ld(n.getElementByKey(t));return void(o!==null&&o.nodeValue!==null&&xe(r)&&Ox(r,o.nodeValue,null,null,!0))}if(e[e.length-1]===`
63
+ `){const r=ut();if(De(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ye(n,Hb,null)}}}Mx(!0,n,e)}function hL(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const nd=new Map;function gL(n){const e=PPe(n.target);if(e===null)return;const t=ZL(e.anchorNode);if(t===null)return;Gb&&(Gb=!1,Kr(t,()=>{const a=op(),c=e.anchorNode;(Qr(c)||Qs(c))&&_o(Tx(a,e,t,n))}));const r=Ax(t),o=r[r.length-1],i=o._key,s=nd.get(i),l=s||o;l!==t&&T4(e,l,!1),T4(e,t,!0),t!==o?nd.set(i,t):s&&nd.delete(i)}function E4(n){n._lexicalHandled=!0}function N4(n){return n._lexicalHandled===!0}const $4=()=>{};function iPe(n){const e=jb.get(n);if(e===void 0)return void $4();const t=P_.get(e);if(t===void 0)return void $4();const r=t-1;r>=0||se(164),jb.delete(n),P_.set(e,r),r===0&&e.removeEventListener("selectionchange",gL);const o=_y(n);Nx(o)?(function(s){if(s._parentEditor!==null){const l=Ax(s),a=l[l.length-1]._key;nd.get(a)===s&&nd.delete(a)}else nd.delete(s._key)}(o),n.__lexicalEditor=null):o&&se(198);const i=hL(n);for(let s=0;s<i.length;s++)i[s]();n.__lexicalEventHandles=[]}function Jb(n,e,t){vn();const r=n.__key,o=n.getParent();if(o===null)return;const i=function(l){const a=ut();if(!De(a)||!ne(l))return a;const{anchor:c,focus:d}=a,h=c.getNode(),f=d.getNode();return Xb(h,l)&&c.set(l.__key,0,"element"),Xb(f,l)&&d.set(l.__key,0,"element"),a}(n);let s=!1;if(De(i)&&e){const l=i.anchor,a=i.focus;l.key===r&&(R_(l,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0),a.key===r&&(R_(a,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0)}else wx(i)&&e&&n.isSelected()&&n.selectPrevious();if(De(i)&&e&&!s){const l=n.getIndexWithinParent();uc(n),B_(i,o,l,-1)}else uc(n);t||va(o)||o.canBeEmpty()||!o.isEmpty()||Jb(o,e),e&&i&&Dn(o)&&o.isEmpty()&&o.selectEnd()}const sPe=Symbol.for("ephemeral");function I_(n){return n[sPe]||!1}var G2;let Rl=(G2=class{constructor(e){E(this,"__type");E(this,"__key");E(this,"__parent");E(this,"__prev");E(this,"__next");E(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),NPe(this,e)}static getType(){const{ownNodeType:e}=KPe(this);return e===void 0&&se(64,this.name),e}static clone(e){se(65,this.name)}$config(){return{}}config(e,t){const r=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:r,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){se(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=ln(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){const t=e||ut();if(t==null)return!1;const r=t.getNodes().some(o=>o.__key===this.__key);if(xe(this))return r;if(De(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const o=this.getParent();if(kt(this)&&this.isInline()&&o){const i=t.isBackward()?t.focus:t.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:ln(e)}getParentOrThrow(){const e=this.getParent();return e===null&&se(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(va(t))return ne(e)||e===this&&kt(e)||se(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&se(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:ln(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:ln(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=ne(this)?this:this.getParent(),r=ne(e)?e:e.getParent(),o=t&&r?q1(t,r):null;return o?o.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const t=q1(this,e);return t!==null&&(t.type==="descendant"||(t.type==="branch"?aF(t)===-1:(t.type!=="same"&&t.type!=="ancestor"&&se(279),!1)))}isParentOf(e){const t=q1(this,e);return t!==null&&t.type==="ancestor"}getNodesBetween(e){const t=this.isBefore(e),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===e)break;const l=ne(i)?t?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const a=t?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===e)break;let d=null,h=c;do{if(h===null&&se(68),d=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;d!==null||o.has(h.__key)||r.push(h)}while(d===null);i=d}return t||r.reverse(),r}isDirty(){const e=Ot()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(I_(this))return this;const e=ln(this.__key);return e===null&&se(113),e}getWritable(){if(I_(this))return this;vn();const e=ya(),t=Ot(),r=e._nodeMap,o=this.__key,i=this.getLatest(),s=t._cloneNotNeeded,l=ut();if(l!==null&&l.setCachedNodes(null),s.has(o))return V_(i),i;const a=zPe(i);return s.add(o),V_(a),r.set(o,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){se(70)}updateDOM(e,t,r){se(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){se(18,this.name)}updateFromJSON(e){return function(t,r){const o=t.getWritable(),i=r.$;let s=i;for(const l of JD(o).flatKeys)l in r&&(s!==void 0&&s!==i||(s={...i}),s[l]=r[l]);return(o.__state||s)&&LFe(t).updateFromJSON(s),o}(this,e)}static transform(){return null}remove(e){Jb(this,!0,e)}replace(e,t){vn();let r=ut();r!==null&&(r=r.clone()),k2(this,e);const o=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size;uc(l);const d=o.getPreviousSibling(),h=o.getNextSibling(),f=o.__prev,g=o.__next,p=o.__parent;if(Jb(o,!1,!0),d===null?a.__first=s:d.getWritable().__next=s,l.__prev=f,h===null?a.__last=s:h.getWritable().__prev=s,l.__next=g,l.__parent=p,a.__size=c,t&&(ne(this)&&ne(l)||se(139),this.getChildren().forEach(m=>{l.append(m)})),De(r)){_o(r);const m=r.anchor,_=r.focus;m.key===i&&D4(m,l),_.key===i&&D4(_,l)}return Tl()===i&&Cn(s),l}insertAfter(e,t=!0){vn(),k2(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.getParent(),s=ut();let l=!1,a=!1;if(i!==null){const g=e.getIndexWithinParent();if(uc(o),De(s)){const p=i.__key,m=s.anchor,_=s.focus;l=m.type==="element"&&m.key===p&&m.offset===g+1,a=_.type==="element"&&_.key===p&&_.offset===g+1}}const c=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),h=o.__key,f=r.__next;if(c===null?d.__last=h:c.getWritable().__prev=h,d.__size++,r.__next=h,o.__next=f,o.__prev=r.__key,o.__parent=r.__parent,t&&De(s)){const g=this.getIndexWithinParent();B_(s,d,g+1);const p=d.__key;l&&s.anchor.set(p,g+2,"element"),a&&s.focus.set(p,g+2,"element")}return e}insertBefore(e,t=!0){vn(),k2(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.__key;uc(o);const s=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,c=this.getIndexWithinParent();s===null?l.__first=i:s.getWritable().__next=i,l.__size++,r.__prev=i,o.__prev=a,o.__next=r.__key,o.__parent=r.__parent;const d=ut();return t&&De(d)&&B_(d,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return Ei()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){vn();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(ne(r))return r.select();if(!xe(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(e,t)}selectNext(e,t){vn();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(ne(r))return r.select(0,0);if(!xe(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},E(G2,"importDOM"),G2);const m2="history-merge",lPe="collaboration",aPe="skip-scroll-into-view",cPe="skip-dom-selection",uPe="skip-selection-focus";let pL=class mL extends Rl{static getType(){return"linebreak"}static clone(e){return new mL(e.__key)}constructor(e){super(e)}getTextContent(){return`
64
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(t){const r=t.parentElement;if(r!==null&&rN(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&Qp(o)){const i=r.lastChild;if(i===t||i.previousSibling===t&&Qp(i))return!0}}return!1}(e)||function(t){const r=t.parentElement;if(r!==null&&rN(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&Qp(o))return!1;const i=r.lastChild;if(i===t||i.previousSibling===t&&Qp(i))return!0}return!1}(e)?null:{conversion:dPe,priority:0}}}static importJSON(e){return Qc().updateFromJSON(e)}};function dPe(n){return{node:Qc()}}function Qc(){return ap(new pL)}function bh(n){return n instanceof pL}function Qp(n){return Qs(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function _2(n,e){return 16&e?"code":e&UD?"mark":32&e?"sub":64&e?"sup":null}function y2(n,e){return 1&e?"strong":2&e?"em":"span"}function _L(n,e,t,r,o){const i=r.classList;let s=rd(o,"base");s!==void 0&&i.add(...s),s=rd(o,"underlineStrikethrough");let l=!1;const a=8&e&&4&e;s!==void 0&&(8&t&&4&t?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const c in ar){const d=ar[c];if(s=rd(o,c),s!==void 0)if(t&d){if(l&&(c==="underline"||c==="strikethrough")){e&d&&i.remove(...s);continue}(!(e&d)||a&&c==="underline"||c==="strikethrough")&&i.add(...s)}else e&d&&i.remove(...s)}}function yL(n,e,t){const r=e.firstChild,o=t.isComposing(),i=n+(o?uy:"");if(r==null)e.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||Jc){const[l,a,c]=function(d,h){const f=d.length,g=h.length;let p=0,m=0;for(;p<f&&p<g&&d[p]===h[p];)p++;for(;m+p<f&&m+p<g&&d[f-m-1]===h[g-m-1];)m++;return[p,f-p-m,h.slice(p,g-m)]}(s,i);a!==0&&r.deleteData(l,a),r.insertData(l,c)}else r.nodeValue=i}}function A4(n,e,t,r,o,i){yL(o,n,e);const s=i.theme.text;s!==void 0&&_L(0,0,r,n,s)}function e1(n,e){const t=document.createElement(e);return t.appendChild(n),t}let fy=class vL extends Rl{constructor(t="",r){super(r);E(this,"__text");E(this,"__format");E(this,"__style");E(this,"__mode");E(this,"__detail");this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(t){return new vL(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return NFe[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Tl()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const r=ar[t];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(t,r){return z_(this.getLatest().__format,t,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,r){const o=this.__format,i=_2(0,o),s=y2(0,o),l=i===null?s:i,a=document.createElement(l);let c=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(c=document.createElement(s),a.appendChild(c)),A4(c,this,0,o,this.__text,t);const d=this.__style;return d!==""&&(a.style.cssText=d),a}updateDOM(t,r,o){const i=this.__text,s=t.__format,l=this.__format,a=_2(0,s),c=_2(0,l),d=y2(0,s),h=y2(0,l);if((a===null?d:a)!==(c===null?h:c))return!0;if(a===c&&d!==h){const _=r.firstChild;_==null&&se(48);const C=document.createElement(h);return A4(C,this,0,l,i,o),r.replaceChild(C,_),!1}let f=r;c!==null&&a!==null&&(f=r.firstChild,f==null&&se(49)),yL(i,f,this);const g=o.theme.text;g!==void 0&&s!==l&&_L(0,s,l,f,g);const p=t.__style,m=this.__style;return p!==m&&(r.style.cssText=m),!1}static importDOM(){return{"#text":()=>({conversion:pPe,priority:0}),b:()=>({conversion:hPe,priority:0}),code:()=>({conversion:os,priority:0}),em:()=>({conversion:os,priority:0}),i:()=>({conversion:os,priority:0}),mark:()=>({conversion:os,priority:0}),s:()=>({conversion:os,priority:0}),span:()=>({conversion:fPe,priority:0}),strong:()=>({conversion:os,priority:0}),sub:()=>({conversion:os,priority:0}),sup:()=>({conversion:os,priority:0}),u:()=>({conversion:os,priority:0})}}static importJSON(t){return fn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(t){let{element:r}=super.exportDOM(t);return Qr(r)||se(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=e1(r,"b")),this.hasFormat("italic")&&(r=e1(r,"i")),this.hasFormat("strikethrough")&&(r=e1(r,"s")),this.hasFormat("underline")&&(r=e1(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?ar[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?wFe[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=z_(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=EFe[t];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){vn();let o=t,i=r;const s=ut(),l=this.getTextContent(),a=this.__key;if(typeof l=="string"){const c=l.length;o===void 0&&(o=c),i===void 0&&(i=c)}else o=0,i=0;if(!De(s))return EL(a,o,a,i,"text","text");{const c=Tl();c!==s.anchor.key&&c!==s.focus.key||Cn(a),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,o,i){const s=this.getWritable(),l=s.__text,a=o.length;let c=t;c<0&&(c=a+c,c<0&&(c=0));const d=ut();if(i&&De(d)){const f=t+a;d.setTextNodeRange(s,f,s,f)}const h=l.slice(0,c)+o+l.slice(c+r);return s.__text=h,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){vn();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=Tl(),l=o.length;t.sort((S,N)=>S-N),t.push(l);const a=[],c=t.length;for(let S=0,N=0;S<l&&N<=c;N++){const $=t[N];$>S&&(a.push(o.slice(S,$)),S=$)}const d=a.length;if(d===1)return[r];const h=a[0],f=r.getParent();let g;const p=r.getFormat(),m=r.getStyle(),_=r.__detail;let C=!1,y=null,v=null;const k=ut();if(De(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===i&&(y=S),N.type==="text"&&N.key===i&&(v=N)}r.isSegmented()?(g=fn(h),g.__format=p,g.__style=m,g.__detail=_,g.__state=m4(r,g),C=!0):g=r.setTextContent(h);const x=[g];for(let S=1;S<d;S++){const N=fn(a[S]);N.__format=p,N.__style=m,N.__detail=_,N.__state=m4(r,N);const $=N.__key;s===i&&Cn($),x.push(N)}const b=y?y.offset:null,T=v?v.offset:null;let w=0;for(const S of x){if(!y&&!v)break;const N=w+S.getTextContentSize();if(y!==null&&b!==null&&b<=N&&b>=w&&(y.set(S.getKey(),b-w,"text"),b<N&&(y=null)),v!==null&&T!==null&&T<=N&&T>=w){v.set(S.getKey(),T-w,"text");break}w=N}if(f!==null){(function($){const O=$.getPreviousSibling(),M=$.getNextSibling();O!==null&&V_(O),M!==null&&V_(M)})(this);const S=f.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,x),this.remove()):S.splice(N,1,x),De(k)&&B_(k,f,N,d-1)}return x}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||se(50);const o=this.__key,i=t.__key,s=this.__text,l=s.length;Tl()===i&&Cn(o);const a=ut();if(De(a)){const f=a.anchor,g=a.focus;f!==null&&f.key===i&&V4(f,r,o,t,l),g!==null&&g.key===i&&V4(g,r,o,t,l)}const c=t.__text,d=r?c+s:s+c;this.setTextContent(d);const h=this.getWritable();return t.remove(),h}isTextEntity(){return!1}};function fPe(n){return{forChild:Sx(n.style),node:null}}function hPe(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:Sx(e.style,t?void 0:"bold"),node:null}}const M4=new WeakMap;function gPe(n){if(!Qr(n))return!1;if(n.nodeName==="PRE")return!0;const e=n.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function pPe(n){const e=n;n.parentElement===null&&se(129);let t=e.textContent||"";if(function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=M4.get(i))===void 0&&!gPe(i);)s.push(i),i=i.parentNode;const l=o===void 0?i:o;for(let a=0;a<s.length;a++)M4.set(s[a],l);return l}(e)!==null){const r=t.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const l=r[s];l===`
65
+ `||l===`\r
66
+ `?o.push(Qc()):l===" "?o.push(hy()):l!==""&&o.push(fn(l))}return{node:o}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,o=!0;for(;r!==null&&(r=O4(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),o=!1;break}}o&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,o=!0;for(;r!==null&&(r=O4(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:fn(t)}}function O4(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=r,Qr(t)){const i=t.style.display;if(i===""&&!BPe(t)||i!==""&&!i.startsWith("inline"))return null}let o=t;for(;(o=e?t.firstChild:t.lastChild)!==null;)t=o;if(Qs(t))return t;if(t.nodeName==="BR")return null}}const mPe={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function os(n){const e=mPe[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Sx(n.style,e),node:null}}function fn(n=""){return ap(new fy(n))}function xe(n){return n instanceof fy}function Sx(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),o=t==="700"||t==="bold",i=r.includes("line-through"),s=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return c=>(xe(c)&&(o&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),s&&!c.hasFormat("italic")&&c.toggleFormat("italic"),l&&!c.hasFormat("underline")&&c.toggleFormat("underline"),a!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),a!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),e&&!c.hasFormat(e)&&c.toggleFormat(e)),c)}let CL=class bL extends fy{static getType(){return"tab"}static clone(e){return new bL(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),r=rd(e.theme,"tab");return r!==void 0&&t.classList.add(...r),t}static importJSON(e){return hy().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&VD(126),super.setTextContent(" ")}spliceText(e,t,r,o){return r===""&&t===0||r===" "&&t===1||se(286),this}setDetail(e){return e!==2&&se(127),this}setMode(e){return e!=="normal"&&se(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function hy(){return ap(new CL)}function gy(n){return n instanceof CL}let _Pe=class{constructor(e,t,r){E(this,"key");E(this,"offset");E(this,"type");E(this,"_selection");this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:lF(xi(ru(this,"next")),xi(ru(e,"next")))<0}getNode(){const e=ln(this.key);return e===null&&se(20),e}set(e,t,r,o){const i=this._selection,s=this.key;o&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,ip()||(Tl()===s&&Cn(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}};function Ii(n,e,t){return new _Pe(n,e,t)}function v2(n,e){let t=e.__key,r=n.offset,o="element";if(xe(e)){o="text";const i=e.getTextContentSize();r>i&&(r=i)}else if(!ne(e)){const i=e.getNextSibling();if(xe(i))t=i.__key,r=0,o="text";else{const s=e.getParent();s&&(t=s.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,o)}function D4(n,e){if(ne(e)){const t=e.getLastDescendant();ne(t)||xe(t)?v2(n,t):v2(n,e)}else v2(n,e)}let kL=class xL{constructor(e){E(this,"_nodes");E(this,"_cachedNodes");E(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!wx(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new xL(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),r=t.length,o=t[r-1];let i;if(xe(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<r;s++)t[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const o of t){const i=ln(o);i!==null&&r.push(i)}return ip()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((ut()||op())===this&&e[0]){const t=Pn(e[0],"next");eIe(nu(t,t))}for(const t of e)t.remove()}};function De(n){return n instanceof rp}let rp=class SL{constructor(e,t,r,o){E(this,"format");E(this,"style");E(this,"anchor");E(this,"focus");E(this,"_cachedNodes");E(this,"dirty");this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!De(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const l=new Set,a=new Set;for(const c of r)if(Ds(c)){const{origin:d}=c;o.length===0?l.add(d):(a.add(d),o.push(d))}else{const{origin:d}=c;ne(d)&&a.has(d)||o.push(d)}if(s&&o.push(s.caret.origin),Fd(r.focus)&&ne(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let c=oa(r.focus.origin,"previous");Ds(c)&&l.has(c.origin)&&!c.origin.isEmpty()&&c.origin.is(o[o.length-1]);c=Ix(c))l.delete(c.origin),o.pop();for(;o.length>1;){const c=o[o.length-1];if(!ne(c)||a.has(c)||c.isEmpty()||l.has(c))break;o.pop()}if(o.length===0&&r.isCollapsed()){const c=xi(r.anchor),d=xi(r.anchor.getFlipped()),h=g=>dc(g)?g.origin:g.getNodeAtCaret(),f=h(c)||h(d)||(r.anchor.getNodeAtCaret()?c.origin:d.origin);o.push(f)}return o}(cF(aN(this),"next"));return ip()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,o){this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[l,a]=F4(this);let c="",d=!0;for(let h=0;h<e.length;h++){const f=e[h];if(ne(f)&&!f.isInline())d||(c+=`
67
+ `),d=!f.isEmpty();else if(d=!1,xe(f)){let g=f.getTextContent();f===t?f===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(g=l<a?g.slice(l,a):g.slice(a,l)):g=s?g.slice(l):g.slice(a):f===r&&(g=s?g.slice(0,a):g.slice(0,l)),c+=g}else!kt(f)&&!bh(f)||f===r&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(e){const t=Ot(),r=t.getEditorState()._selection,o=TL(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),FFe(this)}clone(){const e=this.anchor,t=this.focus;return new SL(Ii(e.key,e.offset,e.type),Ii(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=z_(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=ar[e];return(this.format&t)!==0}insertRawText(e){const t=e.split(/(\r?\n|\t)/),r=[],o=t.length;for(let i=0;i<o;i++){const s=t[i];s===`
68
+ `||s===`\r
69
+ `?r.push(Qc()):s===" "?r.push(hy()):r.push(fn(s))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,o=this.format,i=this.style;let s=t,l=r;!this.isCollapsed()&&r.isBefore(t)&&(s=r,l=t),s.type==="element"&&function(_,C,y,v){const k=_.getNode(),x=k.getChildAtIndex(_.offset),b=fn();if(b.setFormat(y),b.setStyle(v),SPe(x))x.splice(0,0,[b]);else{const T=Dn(k)?Ei().append(b):b;x===null?k.append(T):x.insertBefore(T)}_.is(C)&&C.set(b.__key,0,"text"),_.set(b.__key,0,"text")}(s,l,o,i),l.type==="element"&&vg(l,xi(ru(l,"next")));const a=s.offset;let c=l.offset;const d=this.getNodes(),h=d.length;let f=d[0];xe(f)||se(26);const g=f.getTextContent().length,p=f.getParentOrThrow();let m=d[h-1];if(h===1&&l.type==="element"&&(c=g,l.set(s.key,c,"text")),this.isCollapsed()&&a===g&&(fl(f)||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&f.getNextSibling()===null)){let _=f.getNextSibling();if(xe(_)&&_.canInsertTextBefore()&&!fl(_)||(_=fn(),_.setFormat(o),_.setStyle(i),p.canInsertTextAfter()?f.insertAfter(_):p.insertAfter(_)),_.select(0,0),f=_,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(fl(f)||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&f.getPreviousSibling()===null)){let _=f.getPreviousSibling();if(xe(_)&&!fl(_)||(_=fn(),_.setFormat(o),p.canInsertTextBefore()?f.insertBefore(_):p.insertBefore(_)),_.select(),f=_,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&a!==g){const _=fn(f.getTextContent());_.setFormat(o),f.replace(_),f=_}else if(!this.isCollapsed()&&e!==""){const _=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||ne(_)&&(!_.canInsertTextBefore()||!_.canInsertTextAfter()))return this.insertText(""),wL(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(cc(f)){const v=fn(e);return v.select(),void f.replace(v)}const _=f.getFormat(),C=f.getStyle();if(a!==c||_===o&&C===i){if(gy(f)){const v=fn(e);return v.setFormat(o),v.setStyle(i),v.select(),void f.replace(v)}}else{if(f.getTextContent()!==""){const v=fn(e);if(v.setFormat(o),v.setStyle(i),v.select(),a===0)f.insertBefore(v,!1);else{const[k]=f.splitText(a);k.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(o),f.setStyle(i)}const y=c-a;f=f.spliceText(a,y,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=_,this.style=C))}else{const _=new Set([...f.getParentKeys(),...m.getParentKeys()]),C=ne(f)?f:f.getParentOrThrow();let y=ne(m)?m:m.getParentOrThrow(),v=m;if(!C.is(y)&&y.isInline())do v=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(c!==0||m.getTextContent()==="")||l.type==="element"&&m.getIndexWithinParent()<c)if(xe(m)&&!cc(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){const w=fn(m.getTextContent());m.replace(w),m=w}Dn(l.getNode())||l.type!=="text"||(m=m.spliceText(0,c,"")),_.add(m.__key)}else{const w=m.getParentOrThrow();w.canBeEmpty()||w.getChildrenSize()!==1?m.remove():w.remove()}else _.add(m.__key);const k=y.getChildren(),x=new Set(d),b=C.is(y),T=C.isInline()&&f.getNextSibling()===null?C:f;for(let w=k.length-1;w>=0;w--){const S=k[w];if(S.is(f)||ne(S)&&S.isParentOf(f))break;S.isAttached()&&(!x.has(S)||S.is(v)?b||T.insertAfter(S,!1):S.remove())}if(!b){let w=y,S=null;for(;w!==null;){const N=w.getChildren(),$=N.length;($===0||N[$-1].is(S))&&(_.delete(w.__key),S=w),w=w.getParent()}}if(cc(f))if(a===g)f.select();else{const w=fn(e);w.select(),f.replace(w)}else f=f.spliceText(a,g-a,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let w=1;w<h;w++){const S=d[w],N=S.__key;_.has(N)||S.remove()}}}removeText(){const e=ut()===this;j1(this,tIe(aN(this))),e&&ut()!==this&&_o(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void Cn(null);const r=this.getNodes(),o=[];for(const k of r)xe(k)&&o.push(k);const i=k=>{r.forEach(x=>{if(ne(x)){const b=x.getFormatFlags(e,k);x.setTextFormat(b)}})},s=o.length;if(s===0)return this.toggleFormat(e),Cn(null),void i(t);const l=this.anchor,a=this.focus,c=this.isBackward(),d=c?a:l,h=c?l:a;let f=0,g=o[0],p=d.type==="element"?0:d.offset;if(d.type==="text"&&p===g.getTextContentSize()&&(f=1,g=o[1],p=0),g==null)return;const m=g.getFormatFlags(e,t);i(m);const _=s-1;let C=o[_];const y=h.type==="text"?h.offset:C.getTextContentSize();if(g.is(C)){if(p===y)return;if(fl(g)||p===0&&y===g.getTextContentSize())g.setFormat(m);else{const k=g.splitText(p,y),x=p===0?k[0]:k[1];x.setFormat(m),d.type==="text"&&d.set(x.__key,0,"text"),h.type==="text"&&h.set(x.__key,y-p,"text")}return void(this.format=m)}p===0||fl(g)||([,g]=g.splitText(p),p=0),g.setFormat(m);const v=C.getFormatFlags(e,m);y>0&&(y===C.getTextContentSize()||fl(C)||([C]=C.splitText(y)),C.setFormat(v));for(let k=f+1;k<_;k++){const x=o[k],b=x.getFormatFlags(e,v);x.setFormat(b)}d.type==="text"&&d.set(g.__key,p,"text"),h.type==="text"&&h.set(C.__key,y,"text"),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const p=ut();return De(p)||se(134),p.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),r=H1(t,Cl),o=e[e.length-1];if(ne(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const p=C2(this);r.splice(p,0,e),o.selectEnd()}return}if(!e.some(p=>(ne(p)||kt(p))&&!p.isInline())){ne(r)||se(211,t.constructor.name,t.getType());const p=C2(this);return r.splice(p,0,e),void o.selectEnd()}const i=function(p){const m=Ei();let _=null;for(let C=0;C<p.length;C++){const y=p[C],v=bh(y);if(v||kt(y)&&y.isInline()||ne(y)&&y.isInline()||xe(y)||y.isParentRequired()){if(_===null&&(_=y.createParentElementNode(),m.append(_),v))continue;_!==null&&_.append(y)}else m.append(y),_=null}return m}(e),s=i.getLastDescendant(),l=i.getChildren(),a=!ne(r)||!r.isEmpty()?this.insertParagraph():null,c=l[l.length-1];let d=l[0];var h;ne(h=d)&&Cl(h)&&!h.isEmpty()&&ne(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(ne(r)||se(211,t.constructor.name,t.getType()),r.append(...d.getChildren()),d=l[1]),d&&(r===null&&se(212,t.constructor.name,t.getType()),function(p,m){const _=m.getParentOrThrow().getLastChild();let C=m;const y=[m];for(;C!==_;)C.getNextSibling()||se(140),C=C.getNextSibling(),y.push(C);let v=p;for(const k of y)v=v.insertAfter(k)}(r,d));const f=H1(s,Cl);a&&ne(f)&&(a.canMergeWhenEmpty()||Cl(c))&&(f.append(...a.getChildren()),a.remove()),ne(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const g=ne(r)?r.getLastChild():null;bh(g)&&f!==r&&g.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Ei();return Bi().splice(this.anchor.offset,0,[s]),s.select(),s}const e=C2(this),t=H1(this.anchor.getNode(),Cl);ne(t)||se(213);const r=t.getChildAtIndex(e),o=r?[r,...r.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(e){const t=Qc();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),o=t.getIndexWithinParent();r.select(o,o)}}extract(){const e=[...this.getNodes()],t=e.length;let r=e[0],o=e[t-1];const[i,s]=F4(this),l=this.isBackward(),[a,c]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,h]=l?[s,i]:[i,s];if(t===0)return[];if(t===1){if(xe(r)&&!this.isCollapsed()){const f=r.splitText(d,h),g=d===0?f[0]:f[1];return g?(a.set(g.getKey(),0,"text"),c.set(g.getKey(),g.getTextContentSize(),"text"),[g]):[]}return[r]}if(xe(r)&&(d===r.getTextContentSize()?e.shift():d!==0&&([,r]=r.splitText(d),e[0]=r,a.set(r.getKey(),0,"text"))),xe(o)){const f=o.getTextContent().length;h===0?e.pop():h!==f&&([o]=o.splitText(h),e[e.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return e}modify(e,t,r){if(W4(this,e,t,r))return;const o=e==="move",i=Ot(),s=Hs(yo(i));if(!s)return;const l=i._blockCursorElement,a=i._rootElement,c=this.focus.getNode();if(a===null||l===null||!ne(c)||c.isInline()||c.canBeEmpty()||Qb(l,i,a),this.dirty){let d=eu(i,this.anchor.key),h=eu(i,this.focus.key);this.anchor.type==="text"&&(d=Ld(d)),this.focus.type==="text"&&(h=Ld(h)),d&&h&&$L(s,d,this.anchor.offset,h,this.focus.offset)}if(function(d,h,f,g){d.modify(h,f,g)}(s,e,t?"backward":"forward",r),s.rangeCount>0){const d=s.getRangeAt(0),h=this.anchor.getNode(),f=Dn(h)?h:LPe(h);if(this.applyDOMRange(d),this.dirty=!0,!o){const g=this.getNodes(),p=[];let m=!1;for(let _=0;_<g.length;_++){const C=g[_];Xb(C,f)?p.push(C):m=!0}if(m&&p.length>0)if(t){const _=p[0];ne(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=p[p.length-1];ne(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}s.anchorNode===d.startContainer&&s.anchorOffset===d.startOffset||function(_){const C=_.focus,y=_.anchor,v=y.key,k=y.offset,x=y.type;y.set(C.key,C.offset,C.type,!0),C.set(v,k,x,!0)}(this)}}r==="lineboundary"&&W4(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&ne(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const o=t.getParent(),i=t.getNextSibling()||(o===null?null:o.getNextSibling());if(ne(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,e))return;const i=iF(ru(r,e?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const a of i.iterNodeCarets("shadowRoot"))if(Ds(a)){if(!a.origin.isInline()){if(a.origin.isShadowRoot()){if(l.type==="merge-block")break;if(ne(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=xi(a);j1(this,nu(c,c)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:a,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Fd(a)){if(ne(a.origin)){if(a.origin.isInline()){if(!a.origin.isParentOf(i.anchor.origin))break}else l={block:a.origin,type:"merge-next-block"};continue}if(kt(a.origin)){if(!a.origin.isIsolated())if(l.type==="merge-next-block"&&(a.origin.isKeyboardSelectable()||!a.origin.isInline())&&ne(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=NL();c.add(a.origin.getKey()),_o(c)}else a.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:a,block:c}=l;return j1(this,nu(!a.origin.isEmpty()&&c.isEmpty()?Bx(Pn(c,a.direction)):i.anchor,a)),this.removeText()}}const s=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&P4(this,r.getNode()))return}else{const l=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=s.offset,c=l.getTextContentSize();if(l.is(o)||e&&a!==c||!e&&a!==0)return void I4(l,e,a)}else if(o!==null&&o.isSegmented()){const a=r.offset,c=o.getTextContentSize();if(o.is(l)||e&&a!==0||!e&&a!==c)return void I4(o,e,a)}(function(a,c){const d=a.anchor,h=a.focus,f=d.getNode(),g=h.getNode();if(f===g&&d.type==="text"&&h.type==="text"){const p=d.offset,m=h.offset,_=p<m,C=_?p:m,y=_?m:p,v=y-1;C!==v&&function(k){return!(XL(k)||yPe(k))}(f.getTextContent().slice(C,y))&&(c?h.set(h.key,v,h.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Dn(r.getParent())&&r.getPreviousSibling()===null&&P4(this,r)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function wx(n){return n instanceof kL}function L4(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function F4(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[L4(t),L4(r)]}function P4(n,e){for(let t=e;t;t=t.getParent()){if(ne(t)){if(t.collapseAtStart(n))return!0;if(va(t))break}if(t.getPreviousSibling())break}return!1}const yPe=(()=>{try{const n=new RegExp("\\p{Emoji}","u"),e=n.test.bind(n);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function I4(n,e,t){const r=n,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let c=0;c<i;c++){const d=c===i-1;if(l=s,s+=o[c].length,e&&s===t||s>t||d){o.splice(c,1),d&&(l=void 0);break}}const a=o.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function B4(n,e,t,r){let o,i=e;if(Qr(n)){let s=!1;const l=n.childNodes,a=l.length,c=r._blockCursorElement;i===a&&(s=!0,i=a-1);let d=l[i],h=!1;if(d===c)d=l[i+1],h=!0;else if(c!==null){const f=c.parentNode;n===f&&e>Array.prototype.indexOf.call(f.children,c)&&i--}if(o=Wu(d),xe(o))i=zl(o,s?"next":"previous");else{let f=Wu(n);if(f===null)return null;if(ne(f)){const g=r.getElementByKey(f.getKey());g===null&&se(214),[f,i]=f.getDOMSlot(g).resolveChildIndex(f,g,n,e),ne(f)||se(215),s&&i>=f.getChildrenSize()&&(i=Math.max(0,f.getChildrenSize()-1));let m=f.getChildAtIndex(i);if(ne(m)&&function(_,C,y){const v=_.getParent();return y===null||v===null||!v.canBeEmpty()||v!==y.getNode()}(m,0,t)){const _=s?m.getLastDescendant():m.getFirstDescendant();_===null?f=m:(m=_,f=ne(m)?m:m.getParentOrThrow()),i=0}xe(m)?(o=m,f=null,i=zl(m,s?"next":"previous")):m!==f&&s&&!h&&(ne(f)||se(216),i=Math.min(f.getChildrenSize(),i+1))}else{const g=f.getIndexWithinParent();i=e===0&&kt(f)&&Wu(n)===f?g:g+1,f=f.getParentOrThrow()}if(ne(f))return Ii(f.__key,i,"element")}}else o=Wu(n);return xe(o)?Ii(o.__key,zl(o,i,"clamp"),"text"):null}function R4(n,e,t){const r=n.offset,o=n.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(e){if((t||!e)&&i===null&&ne(s)&&s.isInline()){const l=s.getPreviousSibling();xe(l)&&n.set(l.__key,l.getTextContent().length,"text")}}else ne(i)&&!t&&i.isInline()?n.set(i.__key,i.getChildrenSize(),"element"):xe(i)&&n.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(e&&ne(i)&&i.isInline())n.set(i.__key,0,"element");else if((t||e)&&i===null&&ne(s)&&s.isInline()&&!s.canInsertTextAfter()){const l=s.getNextSibling();xe(l)&&n.set(l.__key,0,"text")}}}function wL(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),o=n.is(e);R4(n,r,o),R4(e,!r,o),o&&e.set(n.key,n.offset,n.type);const i=Ot();if(i.isComposing()&&i._compositionKey!==n.key&&De(t)){const s=t.anchor,l=t.focus;n.set(s.key,s.offset,s.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function TL(n,e,t,r,o,i){if(n===null||t===null||!my(o,n,t))return null;const s=B4(n,e,De(i)?i.anchor:null,o);if(s===null)return null;const l=B4(t,r,De(i)?i.focus:null,o);if(l===null)return null;if(s.type==="element"&&l.type==="element"){const a=Wu(n),c=Wu(t);if(kt(a)&&kt(c))return null}return wL(s,l,i),[s,l]}function EL(n,e,t,r,o,i){const s=ya(),l=new rp(Ii(n,e,o),Ii(t,r,i),0,"");return l.dirty=!0,s._selection=l,l}function vPe(){const n=Ii("root",0,"element"),e=Ii("root",0,"element");return new rp(n,e,0,"")}function NL(){return new kL(new Set)}function Tx(n,e,t,r){const o=t._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,l=s==="selectionchange",a=!Ib&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,d,h,f;if(De(n)&&!a)return n.clone();if(e===null)return null;if(c=e.anchorNode,d=e.focusNode,h=e.anchorOffset,f=e.focusOffset,(l||s===void 0)&&De(n)&&!my(t,c,d))return n.clone();const g=TL(c,h,d,f,t,n);if(g===null)return null;const[p,m]=g;return new rp(p,m,De(n)?n.format:0,De(n)?n.style:"")}function ut(){return ya()._selection}function op(){return Ot()._editorState._selection}function B_(n,e,t,r=1){const o=n.anchor,i=n.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(n.isCollapsed()){const c=o.offset;if(t<=c&&r>0||t<c&&r<0){const d=Math.max(0,c+r);o.set(a,d,"element"),i.set(a,d,"element"),z4(n)}}else{const c=n.isBackward(),d=c?i:o,h=d.getNode(),f=c?o:i,g=f.getNode();if(e.is(h)){const p=d.offset;(t<=p&&r>0||t<p&&r<0)&&d.set(a,Math.max(0,p+r),"element")}if(e.is(g)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}}z4(n)}function z4(n){const e=n.anchor,t=e.offset,r=n.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!ne(i))return;const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(xe(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text"),r.set(c.__key,d,"text")}return}if(ne(i)){const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(xe(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text")}}if(ne(s)){const l=s.getChildrenSize(),a=o>=l,c=a?s.getChildAtIndex(l-1):s.getChildAtIndex(o);if(xe(c)){let d=0;a&&(d=c.getTextContentSize()),r.set(c.__key,d,"text")}}}function R_(n,e,t,r,o){let i=null,s=0,l=null;r!==null?(i=r.__key,xe(r)?(s=r.getTextContentSize(),l="text"):ne(r)&&(s=r.getChildrenSize(),l="element")):o!==null&&(i=o.__key,xe(o)?l="text":ne(o)&&(l="element")),i!==null&&l!==null?n.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function V4(n,e,t,r,o){n.type==="text"?n.set(t,n.offset+(e?0:o),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function $L(n,e,t,r,o){try{n.setBaseAndExtent(e,t,r,o)}catch{}}function CPe(n,e,t,r,o,i,s){const l=r.anchorNode,a=r.focusNode,c=r.anchorOffset,d=r.focusOffset,h=document.activeElement;if(o.has(lPe)&&h!==i||h!==null&&jL(h))return;if(!De(e))return void(n!==null&&my(t,l,a)&&r.removeAllRanges());const f=e.anchor,g=e.focus,p=f.key,m=g.key,_=eu(t,p),C=eu(t,m),y=f.offset,v=g.offset,k=e.format,x=e.style,b=e.isCollapsed();let T=_,w=C,S=!1;if(f.type==="text"){T=Ld(_);const F=f.getNode();S=F.getFormat()!==k||F.getStyle()!==x}else De(n)&&n.anchor.type==="text"&&(S=!0);var N,$,O,M,A;if(g.type==="text"&&(w=Ld(C)),T!==null&&w!==null&&(b&&(n===null||S||De(n)&&(n.format!==k||n.style!==x))&&(N=k,$=x,O=y,M=p,A=performance.now(),cL=[N,$,O,M,A]),c!==y||d!==v||l!==T||a!==w||r.type==="Range"&&b||(h!==null&&i.contains(h)||o.has(uPe)||i.focus({preventScroll:!0}),f.type==="element"))){if($L(r,T,y,w,v),!o.has(aPe)&&e.isCollapsed()&&i!==null&&i===document.activeElement){const F=De(e)&&e.anchor.type==="element"?T.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(F!==null){let P;if(F instanceof Text){const z=document.createRange();z.selectNode(F),P=z.getBoundingClientRect()}else P=F.getBoundingClientRect();(function(z,I,L){const U=tF(L),W=Lx(U);if(U===null||W===null)return;let{top:H,bottom:fe}=I,G=0,ae=0,R=L;for(;R!==null;){const J=R===U.body;if(J)G=0,ae=yo(z).innerHeight;else{const Z=R.getBoundingClientRect();G=Z.top,ae=Z.bottom}let B=0;if(H<G?B=-(G-H):fe>ae&&(B=fe-ae),B!==0)if(J)W.scrollBy(0,B);else{const Z=R.scrollTop;R.scrollTop+=B;const Ee=R.scrollTop-Z;H-=Ee,fe-=Ee}if(J)break;R=lp(R)}})(t,P,i)}}Zb=!0}}function C2(n){let e=n;n.isCollapsed()||e.removeText();const t=ut();De(t)&&(e=t),De(e)||se(161);const r=e.anchor;let o=r.getNode(),i=r.offset;for(;!Cl(o);){const s=o;if([o,i]=bPe(o,i),s.is(o))break}return i}function bPe(n,e){const t=n.getParent();if(!t){const o=Ei();return Bi().append(o),o.select(),[Bi(),0]}if(xe(n)){const o=n.splitText(e);if(o.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,o[0].getIndexWithinParent()+i]}if(!ne(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const o=new rp(Ii(n.__key,e,"element"),Ii(n.__key,e,"element"),0,""),i=n.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}function W4(n,e,t,r,o="decorators-and-blocks"){if(e==="move"&&r==="character"&&!n.isCollapsed()){const[d,h]=t===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return h.set(d.key,d.offset,d.type),!0}const i=ru(n.focus,t?"previous":"next"),s=r==="lineboundary",l=e==="move";let a=i,c=o==="decorators-and-blocks";if(!nIe(a)){for(const d of a){c=!1;const{origin:h}=d;if(!kt(h)||h.isIsolated()||(a=d,!s||!h.isInline()))break}if(c)for(const d of iF(i).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Ds(d))d.origin.isInline()||(a=d);else{if(ne(d.origin))continue;kt(d.origin)&&!d.origin.isInline()&&(a=d)}break}}if(a===i)return!1;if(l&&!s&&kt(a.origin)&&a.origin.isKeyboardSelectable()){const d=NL();return d.add(a.origin.getKey()),_o(d),!0}return a=xi(a),l&&vg(n.anchor,a),vg(n.focus,a),c||!s}let sn=null,Tn=null,Tr=!1,b2=!1,K1=0;const K4={characterData:!0,childList:!0,subtree:!0};function ip(){return Tr||sn!==null&&sn._readOnly}function vn(){Tr&&se(13)}function AL(){K1>99&&se(14)}function ya(){return sn===null&&se(195,ML()),sn}function Ot(){return Tn===null&&se(196,ML()),Tn}function ML(){let n=0;const e=new Set,t=yg.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=_y(o);if(Nx(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function U4(n,e,t){const r=e.__type,o=HL(n,r);let i=t.get(r);i===void 0&&(i=Array.from(o.transforms),t.set(r,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function H4(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function OL(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const o of r)t.add(o)}function DL(n,e){const t=n.type,r=e.get(t);r===void 0&&se(17,t);const o=r.klass;n.type!==o.getType()&&se(18,o.name);const i=o.importJSON(n),s=n.children;if(ne(i)&&Array.isArray(s))for(let l=0;l<s.length;l++){const a=DL(s[l],e);i.append(a)}return i}function q4(n,e,t){const r=sn,o=Tr,i=Tn;sn=e,Tr=!0,Tn=n;try{return t()}finally{sn=r,Tr=o,Tn=i}}function ks(n,e){const t=n._pendingEditorState,r=n._rootElement,o=n._headless||r===null;if(t===null)return;const i=n._editorState,s=i._selection,l=t._selection,a=n._dirtyType!==0,c=sn,d=Tr,h=Tn,f=n._updating,g=n._observer;let p=null;if(n._pendingEditorState=null,n._editorState=t,!o&&a&&g!==null){Tn=n,sn=t,Tr=!1,n._updating=!0;try{const b=n._dirtyType,T=n._dirtyElements,w=n._dirtyLeaves;g.disconnect(),p=BFe(i,t,n,b,T,w)}catch(b){if(b instanceof Error&&n._onError(b),b2)throw b;return UL(n,null,r,t),ZD(n),n._dirtyType=2,b2=!0,ks(n,i),void(b2=!1)}finally{g.observe(r,K4),n._updating=f,sn=c,Tr=d,Tn=h}}t._readOnly||(t._readOnly=!0);const m=n._dirtyLeaves,_=n._dirtyElements,C=n._normalizedNodes,y=n._updateTags,v=n._deferred;a&&(n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(b,T){const w=b._decorators;let S=b._pendingDecorators||w;const N=T._nodeMap;let $;for($ in S)N.has($)||(S===w&&(S=JL(b)),delete S[$])}(n,t);const k=o?null:Hs(yo(n));if(n._editable&&k!==null&&(a||l===null||l.dirty||!l.is(s))&&r!==null&&!y.has(cPe)){Tn=n,sn=t;try{if(g!==null&&g.disconnect(),a||l===null||l.dirty){const b=n._blockCursorElement;b!==null&&Qb(b,n,r),CPe(s,l,n,k,y,r)}(function(b,T,w){let S=b._blockCursorElement;if(De(w)&&w.isCollapsed()&&w.anchor.type==="element"&&T.contains(document.activeElement)){const N=w.anchor,$=N.getNode(),O=N.offset;let M=!1,A=null;if(O===$.getChildrenSize())x2($.getChildAtIndex(O-1))&&(M=!0);else{const F=$.getChildAtIndex(O);if(F!==null&&x2(F)){const P=F.getPreviousSibling();(P===null||x2(P))&&(M=!0,A=b.getElementByKey(F.__key))}}if(M){const F=b.getElementByKey($.__key);return S===null&&(b._blockCursorElement=S=function(P){const z=P.theme,I=document.createElement("div");I.contentEditable="false",I.setAttribute("data-lexical-cursor","true");let L=z.blockCursor;if(L!==void 0){if(typeof L=="string"){const U=KD(L);L=z.blockCursor=U}L!==void 0&&I.classList.add(...L)}return I}(b._config)),T.style.caretColor="transparent",void(A===null?F.appendChild(S):F.insertBefore(S,A))}}S!==null&&Qb(S,b,T)})(n,r,l)}finally{g!==null&&g.observe(r,K4),Tn=h,sn=c}}p!==null&&function(b,T,w,S,N){const $=Array.from(b._listeners.mutation),O=$.length;for(let M=0;M<O;M++){const[A,F]=$[M];for(const P of F){const z=T.get(P);z!==void 0&&A(z,{dirtyLeaves:S,prevEditorState:N,updateTags:w})}}}(n,p,y,m,i),De(l)||l===null||s!==null&&s.is(l)||n.dispatchCommand(tL,void 0);const x=n._pendingDecorators;x!==null&&(n._decorators=x,n._pendingDecorators=null,kh("decorator",n,!0,x)),function(b,T,w){const S=Y4(T),N=Y4(w);S!==N&&kh("textcontent",b,!0,N)}(n,e||i,t),kh("update",n,!0,{dirtyElements:_,dirtyLeaves:m,editorState:t,mutatedNodes:p,normalizedNodes:C,prevEditorState:e||i,tags:y}),function(b,T){if(b._deferred=[],T.length!==0){const w=b._updating;b._updating=!0;try{for(let S=0;S<T.length;S++)T[S]()}finally{b._updating=w}}}(n,v),function(b){const T=b._updates;if(T.length!==0){const w=T.shift();if(w){const[S,N]=w;py(b,S,N)}}}(n)}function kh(n,e,t,...r){const o=e._updating;e._updating=t;try{const i=Array.from(e._listeners[n]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{e._updating=o}}function j4(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const o=t.shift();if(o){const[i,s]=o,l=n._pendingEditorState;let a;s!==void 0&&(a=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(l===null&&se(191),l._flushSync=!0),a&&n._deferred.push(a),OL(n,s.tag)),l==null?py(n,i,s):i()}}return r}function py(n,e,t){const r=n._updateTags;let o,i=!1,s=!1;t!==void 0&&(o=t.onUpdate,OL(n,t.tag),i=t.skipTransforms||!1,s=t.discrete||!1),o&&n._deferred.push(o);const l=n._editorState;let a=n._pendingEditorState,c=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=IL(a||l),c=!0),a._flushSync=s;const d=sn,h=Tr,f=Tn,g=n._updating;sn=a,Tr=!1,n._updating=!0,Tn=n;const p=n._headless||n.getRootElement()===null;Ex(null);try{c&&(p?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=function(y,v){const k=y.getEditorState()._selection,x=Hs(yo(y));return De(k)||k==null?Tx(k,x,y,v):k.clone()}(n,t&&t.event||null));const _=n._compositionKey;e(),i=j4(n,i),function(y,v){const k=v.getEditorState()._selection,x=y._selection;if(De(x)){const b=x.anchor,T=x.focus;let w;if(b.type==="text"&&(w=b.getNode(),w.selectionTransform(k,x)),T.type==="text"){const S=T.getNode();w!==S&&S.selectionTransform(k,x)}}}(a,n),n._dirtyType!==0&&(i?function(y,v){const k=v._dirtyLeaves,x=y._nodeMap;for(const b of k){const T=x.get(b);xe(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&v4(T)}}(a,n):function(y,v){const k=v._dirtyLeaves,x=v._dirtyElements,b=y._nodeMap,T=Tl(),w=new Map;let S=k,N=S.size,$=x,O=$.size;for(;N>0||O>0;){if(N>0){v._dirtyLeaves=new Set;for(const M of S){const A=b.get(M);xe(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&v4(A),A!==void 0&&H4(A,T)&&U4(v,A,w),k.add(M)}if(S=v._dirtyLeaves,N=S.size,N>0){K1++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,$.delete("root")&&$.set("root",!0);for(const M of $){const A=M[0],F=M[1];if(x.set(A,F),!F)continue;const P=b.get(A);P!==void 0&&H4(P,T)&&U4(v,P,w)}S=v._dirtyLeaves,N=S.size,$=v._dirtyElements,O=$.size,K1++}v._dirtyLeaves=k,v._dirtyElements=x}(a,n),j4(n),function(y,v,k,x){const b=y._nodeMap,T=v._nodeMap,w=[];for(const[S]of x){const N=T.get(S);N!==void 0&&(N.isAttached()||(ne(N)&&HD(N,S,b,T,w,x),b.has(S)||x.delete(S),w.push(S)))}for(const S of w)T.delete(S);for(const S of k){const N=T.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),T.delete(S))}}(l,a,n._dirtyLeaves,n._dirtyElements)),_!==n._compositionKey&&(a._flushSync=!0);const C=a._selection;if(De(C)){const y=a._nodeMap,v=C.anchor.key,k=C.focus.key;y.get(v)!==void 0&&y.get(k)!==void 0||se(19)}else wx(C)&&C._nodes.size===0&&(a._selection=null)}catch(_){return _ instanceof Error&&n._onError(_),n._pendingEditorState=l,n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void ks(n)}finally{sn=d,Tr=h,Tn=f,n._updating=g,K1=0}n._dirtyType!==0||n._deferred.length>0||function(_,C){const y=C.getEditorState()._selection,v=_._selection;if(v!==null){if(v.dirty||!v.is(y))return!0}else if(y!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,ks(n)):c&&TPe(()=>{ks(n)}):(a._flushSync=!1,c&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Kr(n,e,t){Tn===n&&t===void 0?e():py(n,e,t)}let kPe=class U1{constructor(e,t,r){E(this,"element");E(this,"before");E(this,"after");this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new U1(this.element,e,this.after)}withAfter(e){return new U1(this.element,this.before,e)}withElement(e){return this.element===e?this:new U1(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&se(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&se(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&se(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(pg||Dd||gg);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,o){if(r===this.element){const a=this.getFirstChildOffset();return[e,Math.min(a+e.getChildrenSize(),Math.max(a,o))]}const i=Z4(t,r);i.push(o);const s=Z4(t,this.element);let l=e.getIndexWithinParent();for(let a=0;a<s.length;a++){const c=i[a],d=s[a];if(c===void 0||c<d)break;if(c>d){l+=1;break}}return[e.getParentOrThrow(),l]}};function Z4(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;t.push(o)}return r!==n&&se(225),t.reverse()}let sp=class extends Rl{constructor(t){super(t);E(this,"__first");E(this,"__last");E(this,"__size");E(this,"__format");E(this,"__style");E(this,"__indent");E(this,"__dir");E(this,"__textFormat");E(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return TFe[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=Ot()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(xe(r)&&t.push(r),ne(r)){const o=r.getAllTextNodes();t.push(...o)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;ne(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;ne(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),o=r.length;if(t>=o){const s=r[o-1];return ne(s)&&s.getLastDescendant()||s||null}const i=r[t];return ne(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:ln(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&se(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:ln(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&se(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let o,i;if(t<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=t;){if(i===t)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=t;){if(i===t)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let t="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContent(),ne(s)&&i!==o-1&&!s.isInline()&&(t+=ra)}return t}getTextContentSize(){let t=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContentSize(),ne(s)&&i!==o-1&&!s.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(t!==""){const r=d4[t];return(this.getFormat()&r)!==0}return!1}hasTextFormat(t){const r=ar[t];return(this.getTextFormat()&r)!==0}getFormatFlags(t,r){return z_(this.getLatest().__textFormat,t,r)}getTextStyle(){return this.getLatest().__textStyle}select(t,r){vn();const o=ut();let i=t,s=r;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(t===0&&r===0){const c=this.getFirstChild();if(xe(c)||ne(c))return c.select(0,0)}else if(!(t!==void 0&&t!==l||r!==void 0&&r!==l)){const c=this.getLastChild();if(xe(c)||ne(c))return c.select()}}i===void 0&&(i=l),s===void 0&&(s=l);const a=this.__key;return De(o)?(o.anchor.set(a,i,"element"),o.focus.set(a,s,"element"),o.dirty=!0,o):EL(a,i,a,s,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(r=>r.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?d4[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const r=this.getWritable();return r.__textFormat=t,r}setTextStyle(t){const r=this.getWritable();return r.__textStyle=t,r}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,o){I_(this)&&se(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();t+r<=i||se(226,String(t),String(r),String(i));const l=s.__key,a=[],c=[],d=this.getChildAtIndex(t+r);let h=null,f=i-r+o.length;if(t!==0)if(t===i)h=this.getLastChild();else{const p=this.getChildAtIndex(t);p!==null&&(h=p.getPreviousSibling())}if(r>0){let p=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<r;m++){p===null&&se(100);const _=p.getNextSibling(),C=p.__key;uc(p.getWritable()),c.push(C),p=_}}let g=h;for(const p of o){g!==null&&p.is(g)&&(h=g=g.getPreviousSibling());const m=p.getWritable();m.__parent===l&&f--,uc(m);const _=p.__key;if(g===null)s.__first=_,m.__prev=null;else{const C=g.getWritable();C.__next=_,m.__prev=C.__key}p.__key===l&&se(76),m.__parent=l,a.push(_),g=p}if(t+r===i)g!==null&&(g.getWritable().__next=null,s.__last=g.__key);else if(d!==null){const p=d.getWritable();if(g!==null){const m=g.getWritable();p.__prev=g.__key,m.__next=d.__key}else p.__prev=null}if(s.__size=f,c.length){const p=ut();if(De(p)){const m=new Set(c),_=new Set(a),{anchor:C,focus:y}=p;G4(C,m,_)&&R_(C,C.getNode(),this,h,d),G4(y,m,_)&&R_(y,y.getNode(),this,h,d),f!==0||this.canBeEmpty()||va(this)||this.remove()}}return s}getDOMSlot(t){return new kPe(t)}exportDOM(t){const{element:r}=super.exportDOM(t);if(Qr(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r!==0&&(t.textFormat=r),o!==""&&(t.textStyle=o),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,r){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,r){const o=this.getDOMSlot(t);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const l=r.getElementByKey(s.getKey());l!==null&&(i==null?(o.insertChild(l),i=l):i!==l&&o.replaceChild(l,i),i=i.nextSibling)}}};function ne(n){return n instanceof sp}function G4(n,e,t){let r=n.getNode();for(;r;){const o=r.__key;if(e.has(o)&&!t.has(o))return!0;r=r.getParent()}return!1}let LL=class extends Rl{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function kt(n){return n instanceof LL}let FL=class PL extends sp{constructor(){super("root");E(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new PL}getTopLevelElementOrThrow(){se(51)}getTextContent(){const t=this.__cachedText;return!ip()&&Ot()._dirtyType!==0||t===null?super.getTextContent():t}remove(){se(52)}replace(t){se(53)}insertBefore(t){se(54)}insertAfter(t){se(55)}updateDOM(t,r){return!1}splice(t,r,o){for(const i of o)ne(i)||kt(i)||se(282);return super.splice(t,r,o)}static importJSON(t){return Bi().updateFromJSON(t)}collapseAtStart(){return!0}};function Dn(n){return n instanceof FL}function IL(n){return new zL(new Map(n._nodeMap))}function BL(){return new zL(new Map([["root",new FL]]))}function RL(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&se(130,t.name),ne(n)){const r=e.children;Array.isArray(r)||se(59,t.name);const o=n.getChildren();for(let i=0;i<o.length;i++){const s=RL(o[i]);r.push(s)}}return e}let zL=class VL{constructor(e,t){E(this,"_nodeMap");E(this,"_selection");E(this,"_flushSync");E(this,"_readOnly");this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return q4(t&&t.editor||null,this,e)}clone(e){const t=new VL(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return q4(null,this,()=>({root:RL(Bi())}))}},WL=class KL extends sp{static getType(){return"paragraph"}static clone(e){return new KL(e.__key)}createDOM(e){const t=document.createElement("p"),r=rd(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:xPe,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Qr(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();r&&(t.style.textAlign=r)}return{element:t}}static importJSON(e){return Ei().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){const r=Ei();r.setTextFormat(e.format),r.setTextStyle(e.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||xe(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function xPe(n){const e=Ei();return n.style&&(e.setFormat(n.style.textAlign),VPe(n,e)),{node:e}}function Ei(){return ap(new WL)}function SPe(n){return n instanceof WL}function UL(n,e,t,r){const o=n._keyToDOMMap;o.clear(),n._editorState=BL(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",o.set("root",t))}var J2;let yg=(J2=class{constructor(e,t,r,o,i,s,l,a){E(this,"_headless");E(this,"_parentEditor");E(this,"_rootElement");E(this,"_editorState");E(this,"_pendingEditorState");E(this,"_compositionKey");E(this,"_deferred");E(this,"_keyToDOMMap");E(this,"_updates");E(this,"_updating");E(this,"_listeners");E(this,"_commands");E(this,"_nodes");E(this,"_decorators");E(this,"_pendingDecorators");E(this,"_config");E(this,"_dirtyType");E(this,"_cloneNotNeeded");E(this,"_dirtyLeaves");E(this,"_dirtyElements");E(this,"_normalizedNodes");E(this,"_updateTags");E(this,"_observer");E(this,"_key");E(this,"_onError");E(this,"_htmlConversions");E(this,"_window");E(this,"_editable");E(this,"_blockCursorElement");E(this,"_createEditorArgs");this._createEditorArgs=a,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=$Pe(),this._onError=i,this._htmlConversions=s,this._editable=l,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&se(35);const o=this._commands;o.has(e)||o.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(e);i===void 0&&se(36,String(e));const s=i[r];return s.add(t),()=>{s.delete(t),i.every(l=>l.size===0)&&o.delete(e)}}registerMutationListener(e,t,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let s=i.get(t);s===void 0&&(s=new Set,i.set(t,s)),s.add(o);const l=r&&r.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(t,o),()=>{s.delete(o),s.size===0&&i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&se(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,o=iN(r).get(t.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,t);o.push(s)}return function(s,l){const a=iN(s.getEditorState()),c=[];for(const d of l){const h=a.get(d);h&&c.push(h)}c.length!==0&&s.update(()=>{for(const d of c)for(const h of d.keys()){const f=ln(h);f&&f.markDirty()}},s._pendingEditorState===null?{tag:m2}:void 0)}(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return ye(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=rd(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=e,UL(this,t,e,o),t!==null&&(this._config.disableEvents||iPe(t),r!=null&&t.classList.remove(...r)),e!==null){const i=Lx(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,ZD(this),this._updateTags.add(m2),ks(this),this._config.disableEvents||function(l,a){const c=l.ownerDocument;jb.set(l,c);const d=P_.get(c)??0;d<1&&c.addEventListener("selectionchange",gL),P_.set(c,d+1),l.__lexicalEditor=a;const h=hL(l);for(let f=0;f<qb.length;f++){const[g,p]=qb[f],m=typeof p=="function"?_=>{N4(_)||(E4(_),(a.isEditable()||g==="click")&&p(_,a))}:_=>{if(N4(_))return;E4(_);const C=a.isEditable();switch(g){case"cut":return C&&ye(a,sL,_);case"copy":return ye(a,iL,_);case"paste":return C&&ye(a,nL,_);case"dragstart":return C&&ye(a,QFe,_);case"dragover":return C&&ye(a,ePe,_);case"dragend":return C&&ye(a,tPe,_);case"focus":return C&&ye(a,nPe,_);case"blur":return C&&ye(a,rPe,_);case"drop":return C&&ye(a,XFe,_)}};l.addEventListener(g,m),h.push(()=>{l.removeEventListener(g,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add(m2),ks(this);kh("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&se(38);let r=e;r._readOnly&&(r=IL(e),r._selection=e._selection?e._selection.clone():null),jD(this);const o=this._pendingEditorState,i=this._updateTags,s=t!==void 0?t.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),ks(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||ks(this)}parseEditorState(e,t){return function(r,o,i){const s=BL(),l=sn,a=Tr,c=Tn,d=o._dirtyElements,h=o._dirtyLeaves,f=o._cloneNotNeeded,g=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,sn=s,Tr=!1,Tn=o,Ex(null);try{const p=o._nodes;DL(r.root,p),i&&i(),s._readOnly=!0}catch(p){p instanceof Error&&o._onError(p)}finally{o._dirtyElements=d,o._dirtyLeaves=h,o._cloneNotNeeded=f,o._dirtyType=g,sn=l,Tr=a,Tn=c}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return ks(this),this.getEditorState().read(e,{editor:this})}update(e,t){(function(r,o,i){r._updating?r._updates.push([o,i]):py(r,o,i)})(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Kr(this,()=>{const o=ut(),i=Bi();o!==null?o.dirty||_o(o.clone()):i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),OPe("focus"),DPe(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=Hs(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,kh("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}},E(J2,"version"),J2);yg.version="0.38.1+prod.esm";let Yb=null;function Ex(n){Yb=n}let wPe=1;function HL(n,e){const t=qL(n,e);return t===void 0&&se(30,e),t}function qL(n,e){return n._nodes.get(e)}const TPe=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function J4(n){return kt($x(n))}function jL(n){const e=document.activeElement;if(!Qr(e))return!1;const t=e.nodeName;return kt($x(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&_y(e)==null)}function my(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!jL(e)&&ZL(e)===n}catch{return!1}}function Nx(n){return n instanceof yg}function ZL(n){let e=n;for(;e!=null;){const t=_y(e);if(Nx(t))return t;e=lp(e)}return null}function _y(n){return n?n.__lexicalEditor:null}function cc(n){return gy(n)||n.isToken()}function fl(n){return cc(n)||n.isSegmented()}function Qs(n){return cp(n)&&n.nodeType===3}function EPe(n){return cp(n)&&n.nodeType===9}function Ld(n){let e=n;for(;e!=null;){if(Qs(e))return e;e=e.firstChild}return null}function z_(n,e,t){const r=ar[e];if(t!==null&&(n&r)===(t&r))return n;let o=n^r;return e==="subscript"?o&=~ar.superscript:e==="superscript"?o&=~ar.subscript:e==="lowercase"?(o&=~ar.uppercase,o&=~ar.capitalize):e==="uppercase"?(o&=~ar.lowercase,o&=~ar.capitalize):e==="capitalize"&&(o&=~ar.lowercase,o&=~ar.uppercase),o}function NPe(n,e){const t=function(){const s=Yb;return Yb=null,s}();if((e=e||t&&t.__key)!=null)return void(n.__key=e);vn(),AL();const r=Ot(),o=ya(),i=""+wPe++;o._nodeMap.set(i,n),ne(n)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,n.__key=i}function uc(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),o=n.getPreviousSibling(),i=n.getNextSibling(),s=i!==null?i.__key:null,l=o!==null?o.__key:null,a=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=l),a!==null&&(a.__next=s),c!==null&&(c.__prev=l),t.__prev=null,t.__next=null,t.__parent=null,r.__size--}}function V_(n){AL(),I_(n)&&se(323,n.__key,n.__type);const e=n.getLatest(),t=e.__parent,r=ya(),o=Ot(),i=r._nodeMap,s=o._dirtyElements;t!==null&&function(a,c,d){let h=a;for(;h!==null;){if(d.has(h))return;const f=c.get(h);if(f===void 0)break;d.set(h,!1),h=f.__parent}}(t,i,s);const l=e.__key;o._dirtyType=1,ne(n)?s.set(l,!0):o._dirtyLeaves.add(l)}function Cn(n){vn();const e=Ot(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=ln(t);r!==null&&r.getWritable()}if(n!==null){const r=ln(n);r!==null&&r.getWritable()}}}function Tl(){return ip()?null:Ot()._compositionKey}function ln(n,e){const t=(e||ya())._nodeMap.get(n);return t===void 0?null:t}function GL(n,e){const t=yy(n,Ot());return t!==void 0?ln(t,e):null}function yy(n,e){return n[`__lexicalKey_${e._key}`]}function $x(n,e){let t=n;for(;t!=null;){const r=GL(t,e);if(r!==null)return r;t=lp(t)}return null}function JL(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function Y4(n){return n.read(()=>Bi().getTextContent())}function Bi(){return YL(ya())}function YL(n){return n._nodeMap.get("root")}function _o(n){vn();const e=ya();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Wu(n){const e=Ot(),t=function(r,o){let i=r;for(;i!=null;){const s=yy(i,o);if(s!==void 0)return s;i=lp(i)}return null}(n,e);return t===null?n===e.getRootElement()?ln("root"):null:ln(t)}function XL(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function Ax(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function $Pe(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function QL(n){return Qs(n)?n.nodeValue:null}function Mx(n,e,t){const r=Hs(yo(e));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let l=QL(o);const a=$x(o);if(l!==null&&xe(a)){if(l===uy&&t){const c=t.length;l=t,i=c,s=c}l!==null&&Ox(a,l,i,s,n)}}}function Ox(n,e,t,r,o){let i=n;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let l=e;(s||o)&&e[e.length-1]===uy&&(l=e.slice(0,-1));const a=i.getTextContent();if(o||l!==a){if(l===""){if(Cn(null),gg||Dd||pg)i.remove();else{const m=Ot();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),d=op(),h=i.getTextContentSize(),f=Tl(),g=i.getKey();if(i.isToken()||f!==null&&g===f&&!s||De(d)&&(c!==null&&!c.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===n.__key&&d.anchor.offset===0&&!i.canInsertTextBefore()&&!s||d.focus.key===n.__key&&d.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=ut();if(!De(p)||t===null||r===null)return void X4(i,l,p);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=fn(i.getTextContent());i.replace(m),i=m}X4(i,l,p)}}}function X4(n,e,t){if(n.setTextContent(e),De(t)){const r=n.getKey();for(const o of["anchor","focus"]){const i=t[o];i.type==="text"&&i.key===r&&(i.offset=zl(n,i.offset,"clamp"))}}}function t1(n,e,t){const r=e[t]||!1;return r==="any"||r===n[t]}function APe(n,e){return t1(n,e,"altKey")&&t1(n,e,"ctrlKey")&&t1(n,e,"shiftKey")&&t1(n,e,"metaKey")}function ot(n,e,t){return APe(n,t)&&n.key.toLowerCase()===e.toLowerCase()}const us={ctrlKey:!Ao,metaKey:Ao},Q4={altKey:Ao,ctrlKey:!Ao};function eN(n){return n.key==="Backspace"}function tN(n){return ot(n,"a",us)}function rd(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const o=n[e];if(typeof o=="string"){const i=KD(o);return t[e]=i,i}return o}function Dx(n,e,t,r,o){if(t.size===0)return;const i=r.__type,s=r.__key,l=e.get(i);l===void 0&&se(33,i);const a=l.klass;let c=n.get(a);c===void 0&&(c=new Map,n.set(a,c));const d=c.get(s),h=d==="destroyed"&&o==="created";(d===void 0||h)&&c.set(s,h?"updated":o)}function nN(n,e,t){const r=n.getParent();let o=t,i=n;return r!==null&&(e&&t===0?(o=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function MPe(n,e){const t=n.offset;if(n.type==="element")return nN(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const o=e?r.getPreviousSibling():r.getNextSibling();return o===null?nN(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):o}}return null}function eF(n){const e=yo(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function ye(n,e,t){return function(r,o,i){const s=Ax(r);for(let l=4;l>=0;l--)for(let a=0;a<s.length;a++){const c=s[a],d=c._commands.get(o);if(d!==void 0){const h=d[l];if(h!==void 0){const f=Array.from(h),g=f.length;let p=!1;if(Kr(c,()=>{for(let m=0;m<g;m++)if(f[m](i,r))return void(p=!0)}),p)return p}}}return!1}(n,e,t)}function vy(n){return!Dn(n)&&!n.isLastChild()&&!n.isInline()}function eu(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&se(75,e),t}function lp(n){const e=n.assignedSlot||n.parentElement;return IPe(e)?e.host:e}function tF(n){return EPe(n)?n:Qr(n)?n.ownerDocument:null}function OPe(n){vn(),Ot()._updateTags.add(n)}function DPe(n){vn(),Ot()._deferred.push(n)}function Xb(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Lx(n){const e=tF(n);return e?e.defaultView:null}function yo(n){const e=n._window;return e===null&&se(78),e}function LPe(n){let e=n.getParentOrThrow();for(;e!==null;){if(va(e))return e;e=e.getParentOrThrow()}return e}function va(n){return Dn(n)||ne(n)&&n.isShadowRoot()}function ap(n){const e=Ot(),t=n.getType(),r=qL(e,t);r===void 0&&se(200,n.constructor.name,t);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(n),l=s.constructor;return i!==null?s instanceof i||se(201,i.name,i.getType(),l.name,l.getType(),n.constructor.name,t):s instanceof n.constructor&&l!==n.constructor||se(202,l.name,l.getType(),n.constructor.name,t),s.__key===n.__key&&se(203,n.constructor.name,t,l.name,l.getType()),s}return n}function k2(n,e){!Dn(n.getParent())||ne(e)||kt(e)||se(99)}function FPe(n){const e=ln(n);return e===null&&se(63,n),e}function x2(n){return(kt(n)||ne(n)&&!n.canBeEmpty())&&!n.isInline()}function Qb(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function Hs(n){return Qo?(n||window).getSelection():null}function PPe(n){const e=Lx(n);return e?e.getSelection():null}function Qr(n){return cp(n)&&n.nodeType===1}function cp(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function IPe(n){return cp(n)&&n.nodeType===11}function BPe(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function rN(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function Cl(n){if(kt(n)&&!n.isInline())return!0;if(!ne(n)||va(n))return!1;const e=n.getFirstChild(),t=e===null||bh(e)||xe(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function nF(){return Ot()}const oN=new WeakMap,RPe=new Map;function iN(n){if(!n._readOnly&&n.isEmpty())return RPe;n._readOnly||se(192);let e=oN.get(n);return e||(e=function(t){const r=new Map;for(const[o,i]of t._nodeMap){const s=i.__type;let l=r.get(s);l||(l=new Map,r.set(s,l)),l.set(o,i)}return r}(n),oN.set(n,e)),e}function zPe(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function VPe(n,e){const t=parseInt(n.style.paddingInlineStart,10)||0,r=Math.round(t/40);e.setIndent(r)}function WPe(n){return n.__lexicalUnmanaged===!0}function Bf(n,e){return function(t,r){return Object.prototype.hasOwnProperty.call(t,r)}(n,e)&&n[e]!==Rl[e]}function KPe(n){const e=f4 in n.prototype?n.prototype[f4]():void 0,t=function(s){if(!(s===Rl||s.prototype instanceof Rl)){let l="<unknown>",a="<unknown>";try{l=s.getType()}catch{}try{yg.version&&(a=JSON.parse(yg.version))}catch{}se(290,s.name,l,a)}return s===LL||s===sp||s===Rl}(n),r=!t&&Bf(n,"getType")?n.getType():void 0;let o,i=r;if(e)if(r)o=e[r];else for(const[s,l]of Object.entries(e))i=s,o=l;if(!t&&i&&(Bf(n,"getType")||(n.getType=()=>i),Bf(n,"clone")||(n.clone=s=>(Ex(s),new n)),Bf(n,"importJSON")||(n.importJSON=o&&o.$importJSON||(s=>new n().updateFromJSON(s))),!Bf(n,"importDOM")&&o)){const{importDOM:s}=o;s&&(n.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}function UPe(n){const e=nF();return vn(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(n))).klass}const H1=(n,e)=>{let t=n;for(;t!=null&&!Dn(t);){if(e(t))return t;t=t.getParent()}return null},HPe={next:"previous",previous:"next"};let Fx=class{constructor(e){E(this,"origin");this.origin=e}[Symbol.iterator](){return sF({hasNext:Fd,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Pn(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Pn(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){const o=r===this.direction?t:Array.from(t).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let a=i.getAdjacentCaret();a!==null&&l.size<e;a=a.getAdjacentCaret()){const c=a.origin.getWritable();l.set(c.getKey(),c)}for(const a of o){if(l.size>0){const c=i.getNodeAtCaret();if(c){if(l.delete(c.getKey()),l.delete(a.getKey()),!(c.is(a)||i.origin.is(a))){const d=a.getParent();d&&d.is(s)&&a.remove(),c.replace(a)}}else c===null&&se(263,Array.from(l).join(" "))}else i.insert(a);i=Pn(a,this.direction)}for(const a of l.values())a.remove();return this}},ek=class rF extends Fx{constructor(){super(...arguments);E(this,"type","child")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:oa(t,this.direction)}getParentCaret(t="root"){return Pn(Px(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=nf(this.direction);return Pn(this.getNodeAtCaret(),t)||oa(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof rF&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}};const qPe={root:Dn,shadowRoot:va};function nf(n){return HPe[n]}function Px(n,e="root"){return qPe[e](n)?null:n}let W_=class tk extends Fx{constructor(){super(...arguments);E(this,"type","sibling")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Pn(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return ne(this.origin)?oa(this.origin,this.direction):null}getParentCaret(t="root"){return Pn(Px(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=nf(this.direction);return Pn(this.getNodeAtCaret(),t)||oa(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof tk&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof tk||t instanceof K_)&&this.direction===t.direction&&this.origin.is(t.origin)}},K_=class nk extends Fx{constructor(t,r){super(t);E(this,"type","text");E(this,"offset");this.offset=r}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:tu(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return Pn(Px(this.getParentAtCaret(),t),this.direction)}getFlipped(){return tu(this.origin,nf(this.direction),this.offset)}isSamePointCaret(t){return t instanceof nk&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof W_||t instanceof nk)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Pn(this.origin,this.direction)}};function dc(n){return n instanceof K_}function Fd(n){return n instanceof W_}function Ds(n){return n instanceof ek}const jPe={next:class extends K_{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends K_{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},ZPe={next:class extends W_{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends W_{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},GPe={next:class extends ek{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends ek{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Pn(n,e){return n?new ZPe[e](n):null}function tu(n,e,t){return n?new jPe[e](n,zl(n,t)):null}function zl(n,e,t="error"){const r=n.getTextContentSize();let o=e==="next"?r:e==="previous"?0:e;return(o<0||o>r)&&(t!=="clamp"&&VD(284,String(e),String(r),n.getKey()),o=o<0?0:r),o}function sN(n,e){return new XPe(n,e)}function oa(n,e){return ne(n)?new GPe[e](n):null}function JPe(n){return n&&n.getChildCaret()||n}function Ix(n){return n&&JPe(n.getAdjacentCaret())}let YPe=class oF{constructor(e,t,r){E(this,"type","node-caret-range");E(this,"direction");E(this,"anchor");E(this,"focus");this.anchor=e,this.focus=t,this.direction=r}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new oF(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=o=>{const i=this[o].getLatest();return dc(i)?function(s,l){const{direction:a,origin:c}=s,d=zl(c,l==="focus"?nf(a):a);return sN(s,d-s.offset)}(i,o):null},t=e("anchor"),r=e("focus");if(t&&r){const{caret:o}=t,{caret:i}=r;if(o.isSameNodeCaret(i))return[sN(o,i.offset-o.offset),null]}return[t,r]}iterNodeCarets(e="root"){const t=dc(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=dc(r),i=s=>s.isSameNodeCaret(r)?null:Ix(s)||s.getParentCaret(e);return sF({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:t.isSameNodeCaret(r)?null:i(t),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}},XPe=class{constructor(e,t){E(this,"type","slice");E(this,"caret");E(this,"distance");this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[r,o]=this.getSliceIndices(),i=e.getTextContent();return tu(e.setTextContent(i.slice(0,r)+i.slice(o)),t,r)}};function iF(n){return nu(n,Pn(Bi(),n.direction))}function QPe(n){return nu(n,n)}function nu(n,e){return n.direction!==e.direction&&se(265),new YPe(n,e,n.direction)}function sF(n){const{initial:e,hasNext:t,step:r,map:o}=n;let i=e;return{[Symbol.iterator](){return this},next(){if(!t(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function lF(n,e){const t=q1(n.origin,e.origin);switch(t===null&&se(275,n.origin.getKey(),e.origin.getKey()),t.type){case"same":{const r=n.type==="text",o=e.type==="text";return r&&o?function(i,s){return Math.sign(i-s)}(n.offset,e.offset):n.type===e.type?0:r?-1:o?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return aF(t)}}function aF(n){const{a:e,b:t}=n,r=e.__key,o=t.__key;let i=e,s=t;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function n1(n,e){return e.is(n)}function lN(n){return ne(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function q1(n,e){if(n.is(e))return{commonAncestor:n,type:"same"};const t=new Map;for(let[r,o]=lN(n);r;o=r,r=r.getParent())t.set(r,o);for(let[r,o]=lN(e);r;o=r,r=r.getParent()){const i=t.get(r);if(i!==void 0)return i===null?(n1(n,r)||se(276),{commonAncestor:r,type:"ancestor"}):o===null?(n1(e,r)||se(277),{commonAncestor:r,type:"descendant"}):((ne(i)||n1(n,i))&&(ne(o)||n1(e,o))&&r.is(i.getParent())&&r.is(o.getParent())||se(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function ru(n,e){const{type:t,key:r,offset:o}=n,i=FPe(n.key);return t==="text"?(xe(i)||se(266,i.getType(),r),tu(i,e,o)):(ne(i)||se(267,i.getType(),r),rIe(i,n.offset,e))}function vg(n,e){const{origin:t,direction:r}=e,o=r==="next";dc(e)?n.set(t.getKey(),e.offset,"text"):Fd(e)?xe(t)?n.set(t.getKey(),zl(t,r),"text"):n.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent()+(o?1:0),"element"):(Ds(e)&&ne(t)||se(268),n.set(t.getKey(),o?0:t.getChildrenSize(),"element"))}function eIe(n){const e=ut(),t=De(e)?e:vPe();return j1(t,n),_o(t),t}function j1(n,e){vg(n.anchor,e.anchor),vg(n.focus,e.focus)}function aN(n){const{anchor:e,focus:t}=n,r=ru(e,"next"),o=ru(t,"next"),i=lF(r,o)<=0?"next":"previous";return nu(Pd(r,i),Pd(o,i))}function Bx(n){const{direction:e,origin:t}=n,r=Pn(t,nf(e)).getNodeAtCaret();return r?Pn(r,e):oa(t.getParentOrThrow(),e)}function cN(n,e="root"){const t=[n];for(let r=Ds(n)?n.getParentCaret(e):n.getSiblingCaret();r!==null;r=r.getParentCaret(e))t.push(Bx(r));return t}function S2(n){return!!n&&n.origin.isAttached()}function tIe(n,e="removeEmptySlices"){if(n.isCollapsed())return n;const t="root",r="next";let o=e;const i=cF(n,r),s=cN(i.anchor,t),l=cN(i.focus.getFlipped(),t),a=new Set,c=[];for(const p of i.iterNodeCarets(t))if(Ds(p))a.add(p.origin.getKey());else if(Fd(p)){const{origin:m}=p;ne(m)&&!a.has(m.getKey())||c.push(m)}for(const p of c)p.remove();for(const p of i.getTextSlices()){if(!p)continue;const{origin:m}=p.caret,_=m.getTextContentSize(),C=Bx(Pn(m,r)),y=m.getMode();if(Math.abs(p.distance)===_&&o==="removeEmptySlices"||y==="token"&&p.distance!==0)C.remove();else if(p.distance!==0){o="removeEmptySlices";let v=p.removeTextSlice();const k=p.caret.origin;if(y==="segmented"){const x=v.origin,b=fn(x.getTextContent()).setStyle(x.getStyle()).setFormat(x.getFormat());C.replaceOrInsert(b),v=tu(b,r,v.offset)}k.is(s[0].origin)&&(s[0]=v),k.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,h;for(const p of s)if(S2(p)){d=xi(p);break}for(const p of l)if(S2(p)){h=xi(p);break}const f=function(p,m,_){if(!p||!m)return null;const C=p.getParentAtCaret(),y=m.getParentAtCaret();if(!C||!y)return null;const v=C.getParents().reverse();v.push(C);const k=y.getParents().reverse();k.push(y);const x=Math.min(v.length,k.length);let b;for(b=0;b<x&&v[b]===k[b];b++);const T=(N,$)=>{let O;for(let M=b;M<N.length;M++){const A=N[M];if(va(A))return;!O&&$(A)&&(O=A)}return O},w=T(v,Cl),S=w&&T(k,N=>_.has(N.getKey())&&Cl(N));return w&&S?[w,S]:null}(d,h,a);if(f){const[p,m]=f;oa(p,"previous").splice(0,m.getChildren()),m.remove()}const g=[d,h,...s,...l].find(S2);if(g)return QPe(Pd(xi(g),n.direction));se(269,JSON.stringify(s.map(p=>p.origin.__key)))}function xi(n){const e=function(o){let i=o;for(;Ds(i);){const s=Ix(i);if(!Ds(s))break;i=s}return i}(n.getLatest()),{direction:t}=e;if(xe(e.origin))return dc(e)?e:tu(e.origin,t,t);const r=e.getAdjacentCaret();return Fd(r)&&xe(r.origin)?tu(r.origin,t,nf(t)):e}function nIe(n){return dc(n)&&n.offset!==zl(n.origin,n.direction)}function Pd(n,e){return n.direction===e?n:n.getFlipped()}function cF(n,e){return n.direction===e?n:nu(Pd(n.focus,e),Pd(n.anchor,e))}function rIe(n,e,t){let r=oa(n,"next");for(let o=0;o<e;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return Pd(r,t)}var oIe={exports:{}};(function(n){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
70
+ * Prism: Lightweight, robust, elegant syntax highlighting
71
+ *
72
+ * @license MIT <https://opensource.org/licenses/MIT>
73
+ * @author Lea Verou <https://lea.verou.me>
74
+ * @namespace
75
+ * @public
76
+ */var t=function(r){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(v){return v instanceof a?new a(v.type,y(v.content),v.alias):Array.isArray(v)?v.map(y):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++i}),y.__id},clone:function y(v,k){k=k||{};var x,b;switch(l.util.type(v)){case"Object":if(b=l.util.objId(v),k[b])return k[b];x={},k[b]=x;for(var T in v)v.hasOwnProperty(T)&&(x[T]=y(v[T],k));return x;case"Array":return b=l.util.objId(v),k[b]?k[b]:(x=[],k[b]=x,v.forEach(function(w,S){x[S]=y(w,k)}),x);default:return v}},getLanguage:function(y){for(;y;){var v=o.exec(y.className);if(v)return v[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,v){y.className=y.className.replace(RegExp(o,"gi"),""),y.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(x){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(y){var v=document.getElementsByTagName("script");for(var k in v)if(v[k].src==y)return v[k]}return null}},isActive:function(y,v,k){for(var x="no-"+v;y;){var b=y.classList;if(b.contains(v))return!0;if(b.contains(x))return!1;y=y.parentElement}return!!k}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(y,v){var k=l.util.clone(l.languages[y]);for(var x in v)k[x]=v[x];return k},insertBefore:function(y,v,k,x){x=x||l.languages;var b=x[y],T={};for(var w in b)if(b.hasOwnProperty(w)){if(w==v)for(var S in k)k.hasOwnProperty(S)&&(T[S]=k[S]);k.hasOwnProperty(w)||(T[w]=b[w])}var N=x[y];return x[y]=T,l.languages.DFS(l.languages,function($,O){O===N&&$!=y&&(this[$]=T)}),T},DFS:function y(v,k,x,b){b=b||{};var T=l.util.objId;for(var w in v)if(v.hasOwnProperty(w)){k.call(v,w,v[w],x||w);var S=v[w],N=l.util.type(S);N==="Object"&&!b[T(S)]?(b[T(S)]=!0,y(S,k,null,b)):N==="Array"&&!b[T(S)]&&(b[T(S)]=!0,y(S,k,w,b))}}},plugins:{},highlightAll:function(y,v){l.highlightAllUnder(document,y,v)},highlightAllUnder:function(y,v,k){var x={callback:k,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),l.hooks.run("before-all-elements-highlight",x);for(var b=0,T;T=x.elements[b++];)l.highlightElement(T,v===!0,x.callback)},highlightElement:function(y,v,k){var x=l.util.getLanguage(y),b=l.languages[x];l.util.setLanguage(y,x);var T=y.parentElement;T&&T.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(T,x);var w=y.textContent,S={element:y,language:x,grammar:b,code:w};function N(O){S.highlightedCode=O,l.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,l.hooks.run("after-highlight",S),l.hooks.run("complete",S),k&&k.call(S.element)}if(l.hooks.run("before-sanity-check",S),T=S.element.parentElement,T&&T.nodeName.toLowerCase()==="pre"&&!T.hasAttribute("tabindex")&&T.setAttribute("tabindex","0"),!S.code){l.hooks.run("complete",S),k&&k.call(S.element);return}if(l.hooks.run("before-highlight",S),!S.grammar){N(l.util.encode(S.code));return}if(v&&r.Worker){var $=new Worker(l.filename);$.onmessage=function(O){N(O.data)},$.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else N(l.highlight(S.code,S.grammar,S.language))},highlight:function(y,v,k){var x={code:y,grammar:v,language:k};if(l.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=l.tokenize(x.code,x.grammar),l.hooks.run("after-tokenize",x),a.stringify(l.util.encode(x.tokens),x.language)},tokenize:function(y,v){var k=v.rest;if(k){for(var x in k)v[x]=k[x];delete v.rest}var b=new h;return f(b,b.head,y),d(y,b,v,b.head,0),p(b)},hooks:{all:{},add:function(y,v){var k=l.hooks.all;k[y]=k[y]||[],k[y].push(v)},run:function(y,v){var k=l.hooks.all[y];if(!(!k||!k.length))for(var x=0,b;b=k[x++];)b(v)}},Token:a};r.Prism=l;function a(y,v,k,x){this.type=y,this.content=v,this.alias=k,this.length=(x||"").length|0}a.stringify=function y(v,k){if(typeof v=="string")return v;if(Array.isArray(v)){var x="";return v.forEach(function(N){x+=y(N,k)}),x}var b={type:v.type,content:y(v.content,k),tag:"span",classes:["token",v.type],attributes:{},language:k},T=v.alias;T&&(Array.isArray(T)?Array.prototype.push.apply(b.classes,T):b.classes.push(T)),l.hooks.run("wrap",b);var w="";for(var S in b.attributes)w+=" "+S+'="'+(b.attributes[S]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+w+">"+b.content+"</"+b.tag+">"};function c(y,v,k,x){y.lastIndex=v;var b=y.exec(k);if(b&&x&&b[1]){var T=b[1].length;b.index+=T,b[0]=b[0].slice(T)}return b}function d(y,v,k,x,b,T){for(var w in k)if(!(!k.hasOwnProperty(w)||!k[w])){var S=k[w];S=Array.isArray(S)?S:[S];for(var N=0;N<S.length;++N){if(T&&T.cause==w+","+N)return;var $=S[N],O=$.inside,M=!!$.lookbehind,A=!!$.greedy,F=$.alias;if(A&&!$.pattern.global){var P=$.pattern.toString().match(/[imsuy]*$/)[0];$.pattern=RegExp($.pattern.source,P+"g")}for(var z=$.pattern||$,I=x.next,L=b;I!==v.tail&&!(T&&L>=T.reach);L+=I.value.length,I=I.next){var U=I.value;if(v.length>y.length)return;if(!(U instanceof a)){var W=1,H;if(A){if(H=c(z,L,y,M),!H||H.index>=y.length)break;var R=H.index,fe=H.index+H[0].length,G=L;for(G+=I.value.length;R>=G;)I=I.next,G+=I.value.length;if(G-=I.value.length,L=G,I.value instanceof a)continue;for(var ae=I;ae!==v.tail&&(G<fe||typeof ae.value=="string");ae=ae.next)W++,G+=ae.value.length;W--,U=y.slice(L,G),H.index-=L}else if(H=c(z,0,U,M),!H)continue;var R=H.index,J=H[0],B=U.slice(0,R),Z=U.slice(R+J.length),Ee=L+U.length;T&&Ee>T.reach&&(T.reach=Ee);var zt=I.prev;B&&(zt=f(v,zt,B),L+=B.length),g(v,zt,W);var Le=new a(w,O?l.tokenize(J,O):J,F,J);if(I=f(v,zt,Le),Z&&f(v,I,Z),W>1){var Ge={cause:w+","+N,reach:Ee};d(y,v,k,I.prev,L,Ge),T&&Ge.reach>T.reach&&(T.reach=Ge.reach)}}}}}}function h(){var y={value:null,prev:null,next:null},v={value:null,prev:y,next:null};y.next=v,this.head=y,this.tail=v,this.length=0}function f(y,v,k){var x=v.next,b={value:k,prev:v,next:x};return v.next=b,x.prev=b,y.length++,b}function g(y,v,k){for(var x=v.next,b=0;b<k&&x!==y.tail;b++)x=x.next;v.next=x,x.prev=v,y.length-=b}function p(y){for(var v=[],k=y.head.next;k!==y.tail;)v.push(k.value),k=k.next;return v}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(y){var v=JSON.parse(y.data),k=v.language,x=v.code,b=v.immediateClose;r.postMessage(l.highlight(x,l.languages[k],k)),b&&r.close()},!1)),l;var m=l.util.currentScript();m&&(l.filename=m.src,m.hasAttribute("data-manual")&&(l.manual=!0));function _(){l.manual||l.highlightAll()}if(!l.manual){var C=document.readyState;C==="loading"||C==="interactive"&&m&&m.defer?document.addEventListener("DOMContentLoaded",_):window.requestAnimationFrame?window.requestAnimationFrame(_):window.setTimeout(_,16)}return l}(e);n.exports&&(n.exports=t),typeof yr<"u"&&(yr.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(o,i){var s={};s["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[i]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};l["language-"+i]={pattern:/[\s\S]+/,inside:t.languages[i]};var a={};a[o]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:l},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,o){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:t.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(r){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var i=r.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(typeof t>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",o=function(m,_){return"✖ Error "+m+" while fetching file: "+_},i="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",a="loading",c="loaded",d="failed",h="pre[data-src]:not(["+l+'="'+c+'"]):not(['+l+'="'+a+'"])';function f(m,_,C){var y=new XMLHttpRequest;y.open("GET",m,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?_(y.responseText):y.status>=400?C(o(y.status,y.statusText)):C(i))},y.send(null)}function g(m){var _=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m||"");if(_){var C=Number(_[1]),y=_[2],v=_[3];return y?v?[C,Number(v)]:[C,void 0]:[C,C]}}t.hooks.add("before-highlightall",function(m){m.selector+=", "+h}),t.hooks.add("before-sanity-check",function(m){var _=m.element;if(_.matches(h)){m.code="",_.setAttribute(l,a);var C=_.appendChild(document.createElement("CODE"));C.textContent=r;var y=_.getAttribute("data-src"),v=m.language;if(v==="none"){var k=(/\.(\w+)$/.exec(y)||[,"none"])[1];v=s[k]||k}t.util.setLanguage(C,v),t.util.setLanguage(_,v);var x=t.plugins.autoloader;x&&x.loadLanguages(v),f(y,function(b){_.setAttribute(l,c);var T=g(_.getAttribute("data-range"));if(T){var w=b.split(/\r\n?|\n/g),S=T[0],N=T[1]==null?w.length:T[1];S<0&&(S+=w.length),S=Math.max(0,Math.min(S-1,w.length)),N<0&&(N+=w.length),N=Math.max(0,Math.min(N,w.length)),b=w.slice(S,N).join(`
77
+ `),_.hasAttribute("data-start")||_.setAttribute("data-start",String(S+1))}C.textContent=b,t.highlightElement(C)},function(b){_.setAttribute(l,d),C.textContent=b})}}),t.plugins.fileHighlight={highlight:function(_){for(var C=(_||document).querySelectorAll(h),y=0,v;v=C[y++];)t.highlightElement(v)}};var p=!1;t.fileHighlight=function(){p||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),p=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(oIe);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},Prism.languages.insertBefore("markup","cdata",i)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(n,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(n){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function t(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:t(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:t(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(h){d!==h&&(n.languages.markdown[d].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function h(f){if(!(!f||typeof f=="string"))for(var g=0,p=f.length;g<p;g++){var m=f[g];if(m.type!=="code"){h(m.content);continue}var _=m.content[1],C=m.content[3];if(_&&C&&_.type==="code-language"&&C.type==="code-block"&&typeof _.content=="string"){var y=_.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase();var v="language-"+y;C.alias?typeof C.alias=="string"?C.alias=[C.alias,v]:C.alias.push(v):C.alias=[v]}}}h(d.tokens)}),n.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var h="",f=0,g=d.classes.length;f<g;f++){var p=d.classes[f],m=/language-(.+)/.exec(p);if(m){h=m[1];break}}var _=n.languages[h];if(_)d.content=n.highlight(c(d.content),_,h);else if(h&&h!=="none"&&n.plugins.autoloader){var C="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=C,n.plugins.autoloader.loadLanguages(h,function(){var y=document.getElementById(C);y&&(y.innerHTML=n.highlight(y.textContent,n.languages[h],h))})}}});var s=RegExp(n.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(d){var h=d.replace(s,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(f,g){if(g=g.toLowerCase(),g[0]==="#"){var p;return g[1]==="x"?p=parseInt(g.slice(2),16):p=Number(g.slice(1)),a(p)}else{var m=l[g];return m||f}}),h}n.languages.md=n.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(n){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var t=n.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(n){var e=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(n){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(Prism);Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=Prism.languages.swift});(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var e=n.languages.extend("typescript",{});delete e["class-name"],n.languages.typescript["class-name"].inside=e,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),n.languages.ts=n.languages.typescript})(Prism);(function(n){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);(function(n){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,t=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return t})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])})(Prism);function uF(n,e){for(const t of n.childNodes){if(Gd(t)&&t.tagName===e)return!0;uF(t,e)}return!1}const Gf="data-language",Rf="data-highlight-language",r1="data-theme";let Rx=class dF extends sp{constructor(t,r){super(r);E(this,"__language");E(this,"__theme");E(this,"__isSyntaxHighlightSupported");this.__language=t||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(t){return new dF(t.__language,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__language=t.__language,this.__theme=t.__theme,this.__isSyntaxHighlightSupported=t.__isSyntaxHighlightSupported}createDOM(t){const r=document.createElement("code");Vs(r,t.theme.code),r.setAttribute("spellcheck","false");const o=this.getLanguage();o&&(r.setAttribute(Gf,o),this.getIsSyntaxHighlightSupported()&&r.setAttribute(Rf,o));const i=this.getTheme();i&&r.setAttribute(r1,i);const s=this.getStyle();return s&&r.setAttribute("style",s),r}updateDOM(t,r,o){const i=this.__language,s=t.__language;i?i!==s&&r.setAttribute(Gf,i):s&&r.removeAttribute(Gf);const l=this.__isSyntaxHighlightSupported;t.__isSyntaxHighlightSupported&&s?l&&i?i!==s&&r.setAttribute(Rf,i):r.removeAttribute(Rf):l&&i&&r.setAttribute(Rf,i);const a=this.__theme,c=t.__theme;a?a!==c&&r.setAttribute(r1,a):c&&r.removeAttribute(r1);const d=this.__style,h=t.__style;return d?d!==h&&r.setAttribute("style",d):h&&r.removeAttribute("style"),!1}exportDOM(t){const r=document.createElement("pre");Vs(r,t._config.theme.code),r.setAttribute("spellcheck","false");const o=this.getLanguage();o&&(r.setAttribute(Gf,o),this.getIsSyntaxHighlightSupported()&&r.setAttribute(Rf,o));const i=this.getTheme();i&&r.setAttribute(r1,i);const s=this.getStyle();return s&&r.setAttribute("style",s),{element:r}}static importDOM(){return{code:t=>t.textContent!=null&&(/\r?\n/.test(t.textContent)||uF(t,"BR"))?{conversion:uN,priority:1}:null,div:()=>({conversion:iIe,priority:1}),pre:()=>({conversion:uN,priority:0}),table:t=>w2(t)?{conversion:sIe,priority:3}:null,td:t=>{const r=t,o=r.closest("table");return r.classList.contains("js-file-line")||o&&w2(o)?{conversion:dN,priority:3}:null},tr:t=>{const r=t.closest("table");return r&&w2(r)?{conversion:dN,priority:3}:null}}}static importJSON(t){return Ss().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setLanguage(t.language).setTheme(t.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(t,r=!0){const o=this.getChildren(),i=o.length;if(i>=2&&o[i-1].getTextContent()===`
78
+ `&&o[i-2].getTextContent()===`
79
+ `&&t.isCollapsed()&&t.anchor.key===this.__key&&t.anchor.offset===i){o[i-1].remove(),o[i-2].remove();const c=Ei();return this.insertAfter(c,r),c}const{anchor:s,focus:l}=t,a=(s.isBefore(l)?s:l).getNode();if(xe(a)){let c=aIe(a);const d=[];for(;;)if(gy(c))d.push(hy()),c=c.getNextSibling();else{if(!mF(c))break;{let C=0;const y=c.getTextContent(),v=c.getTextContentSize();for(;C<v&&y[C]===" ";)C++;if(C!==0&&d.push(pF(" ".repeat(C))),C!==v)break;c=c.getNextSibling()}}const h=a.splitText(s.offset)[0],f=s.offset===0?0:1,g=h.getIndexWithinParent()+f,p=a.getParentOrThrow(),m=[Qc(),...d];p.splice(g,0,m);const _=d[d.length-1];_?_.select():s.offset===0?h.selectPrevious():h.getNextSibling().selectNext(0,0)}if(fF(a)){const{offset:c}=t.anchor;a.splice(c,0,[Qc()]),a.select(c+1,c+1)}return null}canIndent(){return!1}collapseAtStart(){const t=Ei();return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}setLanguage(t){const r=this.getWritable();return r.__language=t||void 0,r}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(t){const r=this.getWritable();return r.__isSyntaxHighlightSupported=t,r}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(t){const r=this.getWritable();return r.__theme=t||void 0,r}getTheme(){return this.getLatest().__theme}};function Ss(n,e){return UPe(Rx).setLanguage(n).setTheme(e)}function fF(n){return n instanceof Rx}function uN(n){return{node:Ss(n.getAttribute(Gf))}}function iIe(n){const e=n,t=fN(e);return t||function(r){let o=r.parentElement;for(;o!==null;){if(fN(o))return!0;o=o.parentElement}return!1}(e)?{node:t?Ss():null}:{node:null}}function sIe(){return{node:Ss()}}function dN(){return{node:null}}function fN(n){return n.style.fontFamily.match("monospace")!==null}function w2(n){return n.classList.contains("js-file-line-container")}let hF=class gF extends fy{constructor(t="",r,o){super(t,o);E(this,"__highlightType");this.__highlightType=r}static getType(){return"code-highlight"}static clone(t){return new gF(t.__text,t.__highlightType||void 0,t.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(t){const r=this.getWritable();return r.__highlightType=t||void 0,r}canHaveFormat(){return!1}createDOM(t){const r=super.createDOM(t),o=T2(t.theme,this.__highlightType);return Vs(r,o),r}updateDOM(t,r,o){const i=super.updateDOM(t,r,o),s=T2(o.theme,t.__highlightType),l=T2(o.theme,this.__highlightType);return s!==l&&(s&&_3(r,s),l&&Vs(r,l)),i}static importJSON(t){return pF().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setHighlightType(t.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(t){return this}isParentRequired(){return!0}createParentElementNode(){return Ss()}};function T2(n,e){return e&&n&&n.codeHighlight&&n.codeHighlight[e]}function pF(n="",e){return ap(new hF(n,e))}function mF(n){return n instanceof hF}function lIe(n,e){let t=n;for(let r=Pn(n,e);r&&(mF(r.origin)||gy(r.origin));r=A$e(r))t=r.origin;return t}function aIe(n){return lIe(n,"previous")}(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(t){var r=e[t],o=[];/^\w+$/.test(t)||o.push(/\w+/.exec(t)[0]),t==="diff"&&o.push("bold"),n.languages.diff[t]={pattern:RegExp("^(?:["+r+`].*(?:\r
80
+ ?|
81
+ |(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(t)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:e})})(Prism);function le(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);throw t.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function _F(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const o of e)r.append("v",o);t.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const ei=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,cIe=ei&&"documentMode"in document?document.documentMode:null,Mo=ei&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ou=ei&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),U_=!(!ei||!("InputEvent"in window)||cIe)&&"getTargetRanges"in new window.InputEvent("input"),Cg=ei&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Id=ei&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,uIe=ei&&/Android/.test(navigator.userAgent),yF=ei&&/^(?=.*Chrome).*/i.test(navigator.userAgent),hN=ei&&uIe&&yF,bg=ei&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Mo&&!yF;function vF(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const dIe=0,fIe=1,hIe=2,CF=128,gIe=1,pIe=2,mIe=3,_Ie=4,yIe=5,vIe=6,Cy=Cg||Id||bg?" ":"​",ia=`
82
+
83
+ `,CIe=ou?" ":Cy,cr={bold:1,capitalize:1024,code:16,highlight:CF,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},bIe={directionless:1,unmergeable:2},gN={center:2,end:6,justify:4,left:1,right:3,start:5},kIe={[pIe]:"center",[vIe]:"end",[_Ie]:"justify",[gIe]:"left",[mIe]:"right",[yIe]:"start"},xIe={normal:0,segmented:2,token:1},SIe={[dIe]:"normal",[hIe]:"segmented",[fIe]:"token"},pN="$config";function bF(n,e,t,r,o,i){let s=n.getFirstChild();for(;s!==null;){const l=s.__key;s.__parent===e&&(Q(s)&&bF(s,l,t,r,o,i),t.has(l)||i.delete(l),o.push(l)),s=s.getNextSibling()}}let rk=!1,zx=0;function wIe(n){zx=n.timeStamp}function E2(n,e,t){const r=n.nodeName==="BR",o=e.__lexicalLineBreak;return o&&(n===o||r&&n.previousSibling===o)||r&&My(n,t)!==void 0}function TIe(n,e,t){const r=qs(Co(t));let o=null,i=null;r!==null&&r.anchorNode===n&&(o=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&Yx(e,s,o,i,!1)}function EIe(n,e,t){if(Ae(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return el(e)&&t.isAttached()}function NIe(n,e,t,r){for(let o=n;o&&!IBe(o);o=gp(o)){const i=My(o,e);if(i!==void 0){const s=cn(i,t);if(s)return xt(s)||!eo(o)?void 0:[o,s]}else if(o===r)return[r,hP(t)]}}function kF(n,e,t){rk=!0;const r=performance.now()-zx>100;try{Ur(n,()=>{const o=dt()||function(f){return f.getEditorState().read(()=>{const g=dt();return g!==null?g.clone():null})}(n),i=new Map,s=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let c=!1,d="";for(let f=0;f<e.length;f++){const g=e[f],p=g.type,m=g.target,_=NIe(m,n,l,s);if(!_)continue;const[C,y]=_;if(p==="characterData")r&&Te(y)&&el(m)&&EIe(o,m,y)&&TIe(m,y,n);else if(p==="childList"){c=!0;const v=g.addedNodes;for(let b=0;b<v.length;b++){const T=v[b],w=dP(T),S=T.parentNode;if(S!=null&&T!==a&&w===null&&!E2(T,S,n)){if(ou){const N=(eo(T)?T.innerText:null)||T.nodeValue;N&&(d+=N)}S.removeChild(T)}}const k=g.removedNodes,x=k.length;if(x>0){let b=0;for(let T=0;T<x;T++){const w=k[T];(E2(w,m,n)||a===w)&&(m.appendChild(w),b++)}x!==b&&i.set(C,y)}}}if(i.size>0)for(const[f,g]of i)g.reconcileObservedMutation(f,n);const h=t.takeRecords();if(h.length>0){for(let f=0;f<h.length;f++){const g=h[f],p=g.addedNodes,m=g.target;for(let _=0;_<p.length;_++){const C=p[_],y=C.parentNode;y==null||C.nodeName!=="BR"||E2(C,m,n)||y.removeChild(C)}}t.takeRecords()}o!==null&&(c&&vo(o),ou&&mP(n)&&o.insertRawText(d))})}finally{rk=!1}}function xF(n){const e=n._observer;e!==null&&kF(n,e.takeRecords(),e)}function SF(n){(function(e){zx===0&&Co(e).addEventListener("textInput",wIe,!0)})(n),n._observer=new MutationObserver((e,t)=>{kF(n,e,t)})}class Vx{constructor(e,t,r=void 0,o=new Map,i=void 0){E(this,"node");E(this,"knownState");E(this,"unknownState");E(this,"sharedNodeState");E(this,"size");this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=o;const{sharedConfigMap:s}=this.sharedNodeState,l=i!==void 0?i:function(a,c,d){let h=d.size;if(c)for(const f in c){const g=a.get(f);g&&d.has(g)||h++}return h}(s,r,o);this.size=l}getValue(e){const t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const o=this.unknownState[e.key];o!==void 0&&(r=e.parse(o)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[r,o]of this.knownState)r.isEqual(o,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(o);for(const r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return mN(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:r}=this,o=new Map(this.knownState);return new Vx(e,t,function(i,s,l){let a;if(l)for(const[c,d]of Object.entries(l)){const h=i.get(c);h?s.has(h)||s.set(h,h.parse(d)):(a=a||{},a[c]=d)}return a}(t.sharedConfigMap,o,r),o,this.size)}updateFromKnown(e,t){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:o,unknownState:i}=this;o.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=mN(i)),this.size++),o.set(e,t)}updateFromUnknown(e,t){const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const r of t.keys())t.set(r,r.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[r,o]of Object.entries(e))this.updateFromUnknown(r,o)}}function $Ie(n){const e=n.getWritable(),t=e.__state?e.__state.getWritable(e):new Vx(e,wF(e));return e.__state=t,t}function wF(n){return n.__state?n.__state.sharedNodeState:lP(DBe(),n.getType()).sharedNodeState}function mN(n){if(n)for(const e in n)return n}function _N(n,e,t){for(const[r,o]of e.knownState){if(n.has(r.key))continue;n.add(r.key);const i=t?t.getValue(r):r.defaultValue;if(i!==o&&!r.isEqual(i,o))return!0}return!1}function yN(n,e,t){const{unknownState:r}=e,o=t?t.unknownState:void 0;if(r){for(const[i,s]of Object.entries(r))if(!n.has(i)&&(n.add(i),s!==(o?o[i]:void 0)))return!0}return!1}function vN(n,e){const t=n.__state;return t&&t.node===n?t.getWritable(e):t}function CN(n,e){const t=n.__mode,r=n.__format,o=n.__style,i=e.__mode,s=e.__format,l=e.__style,a=n.__state,c=e.__state;return(t===null||t===i)&&(r===null||r===s)&&(o===null||o===l)&&(n.__state===null||a===c||function(d,h){if(d===h)return!0;if(d&&h&&d.size!==h.size)return!1;const f=new Set;return!(d&&_N(f,d,h)||h&&_N(f,h,d)||d&&yN(f,d,h)||h&&yN(f,h,d))}(a,c))}function bN(n,e){const t=n.mergeWithSibling(e),r=Dt()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function kN(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&Te(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(CN(e,r)){r=bN(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&Te(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(CN(r,t)){r=bN(r,t);break}break}t.remove()}}else r.remove()}function AIe(n){return xN(n.anchor),xN(n.focus),n}function xN(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,o;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),o=!0):(r=e.getChildAtIndex(t),o=!1),Te(r)){n.set(r.__key,o?r.getTextContentSize():0,"text",!0);break}if(!Q(r))break;n.set(r.__key,o?r.getChildrenSize():0,"element",!0)}}let iu,er,kg,by,ok,ik,su,Ko,sk,xg,Ht="",fi=null,hi="",_s="",Fu=!1,H_=!1;function q_(n,e){const t=su.get(n);if(e!==null){const r=uk(n);r.parentNode===e&&e.removeChild(r)}if(Ko.has(n)||er._keyToDOMMap.delete(n),Q(t)){const r=Z_(t,su);lk(r,0,r.length-1,null)}t!==void 0&&Xx(xg,kg,by,t,"destroyed")}function lk(n,e,t,r){let o=e;for(;o<=t;++o){const i=n[o];i!==void 0&&q_(i,r)}}function La(n,e){n.setProperty("text-align",e)}const MIe="40px";function TF(n,e){const t=iu.theme.indent;if(typeof t=="string"){const o=n.classList.contains(t);e>0&&!o?n.classList.add(t):e<1&&o&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||MIe;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function EF(n,e){const t=n.style;e===0?La(t,""):e===1?La(t,"left"):e===2?La(t,"center"):e===3?La(t,"right"):e===4?La(t,"justify"):e===5?La(t,"start"):e===6&&La(t,"end")}function ak(n,e){const t=function(r){const o=r.__dir;if(o!==null)return o;if(Ln(r))return null;const i=r.getParentOrThrow();return Ln(i)&&i.__dir===null?"auto":null}(e);t!==null?n.dir=t:n.removeAttribute("dir")}function j_(n,e){const t=Ko.get(n);t===void 0&&le(60);const r=t.createDOM(iu,er);if(function(o,i,s){const l=s._keyToDOMMap;(function(a,c,d){const h=`__lexicalKey_${c._key}`;a[h]=d})(i,s,o),l.set(o,i)}(n,r,er),Te(t)?r.setAttribute("data-lexical-text","true"):xt(t)&&r.setAttribute("data-lexical-decorator","true"),Q(t)){const o=t.__indent,i=t.__size;if(ak(r,t),o!==0&&TF(r,o),i!==0){const l=i-1;ck(Z_(t,Ko),t,0,l,t.getDOMSlot(r))}const s=t.__format;s!==0&&EF(r,s),t.isInline()||NF(null,t,r),Oy(t)&&(Ht+=ia,_s+=ia)}else{const o=t.getTextContent();if(xt(t)){const i=t.decorate(er,iu);i!==null&&$F(n,i),r.contentEditable="false"}Ht+=o,_s+=o}return e!==null&&e.insertChild(r),Xx(xg,kg,by,t,"created"),r}function ck(n,e,t,r,o){const i=Ht;Ht="";let s=t;for(;s<=r;++s){j_(n[s],o);const l=Ko.get(n[s]);l!==null&&Te(l)&&(fi===null&&(fi=l.getFormat()),hi===""&&(hi=l.getStyle()))}Oy(e)&&(Ht+=ia),o.element.__lexicalTextContent=Ht,Ht=i+Ht}function SN(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return Th(r)?"line-break":xt(r)&&r.isInline()?"decorator":null}return"empty"}return null}function NF(n,e,t){const r=SN(n,su),o=SN(e,Ko);r!==o&&e.getDOMSlot(t).setManagedLineBreak(o)}function OIe(n,e,t){var r;fi=null,hi="",function(o,i,s){const l=Ht,a=o.__size,c=i.__size;Ht="";const d=s.element;if(a===1&&c===1){const h=o.__first,f=i.__first;if(h===f)Jf(h,d);else{const p=uk(h),m=j_(f,null);try{d.replaceChild(m,p)}catch(_){if(typeof _=="object"&&_!=null){const C=`${_.toString()} Parent: ${d.tagName}, new child: {tag: ${m.tagName} key: ${f}}, old child: {tag: ${p.tagName}, key: ${h}}.`;throw new Error(C)}throw _}q_(h,null)}const g=Ko.get(f);Te(g)&&(fi===null&&(fi=g.getFormat()),hi===""&&(hi=g.getStyle()))}else{const h=Z_(o,su),f=Z_(i,Ko);if(h.length!==a&&le(227),f.length!==c&&le(228),a===0)c!==0&&ck(f,i,0,c-1,s);else if(c===0){if(a!==0){const g=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;lk(h,0,a-1,g?null:d),g&&(d.textContent="")}}else(function(g,p,m,_,C,y){const v=_-1,k=C-1;let x,b,T=y.getFirstChild(),w=0,S=0;for(;w<=v&&S<=k;){const O=p[w],M=m[S];if(O===M)T=N2(Jf(M,y.element)),w++,S++;else{x===void 0&&(x=new Set(p)),b===void 0&&(b=new Set(m));const F=b.has(O),P=x.has(M);if(F)if(P){const z=lu(er,M);z===T?T=N2(Jf(M,y.element)):(y.withBefore(T).insertChild(z),Jf(M,y.element)),w++,S++}else j_(M,y.withBefore(T)),S++;else T=N2(uk(O)),q_(O,y.element),w++}const A=Ko.get(M);A!==null&&Te(A)&&(fi===null&&(fi=A.getFormat()),hi===""&&(hi=A.getStyle()))}const N=w>v,$=S>k;if(N&&!$){const O=m[k+1],M=O===void 0?null:er.getElementByKey(O);ck(m,g,S,k,y.withBefore(M))}else $&&!N&&lk(p,w,v,y.element)})(i,h,f,a,c,s)}Oy(i)&&(Ht+=ia),d.__lexicalTextContent=Ht,Ht=l+Ht}(n,e,e.getDOMSlot(t)),r=e,fi==null||fi===r.__textFormat||H_||r.setTextFormat(fi),function(o){hi===""||hi===o.__textStyle||H_||o.setTextStyle(hi)}(e)}function Z_(n,e){const t=[];let r=n.__first;for(;r!==null;){const o=e.get(r);o===void 0&&le(101),t.push(r),r=o.__next}return t}function Jf(n,e){const t=su.get(n);let r=Ko.get(n);t!==void 0&&r!==void 0||le(61);const o=Fu||ik.has(n)||ok.has(n),i=lu(er,n);if(t===r&&!o){if(Q(t)){const s=i.__lexicalTextContent;s!==void 0&&(Ht+=s,_s+=s)}else{const s=t.getTextContent();_s+=s,Ht+=s}return i}if(t!==r&&o&&Xx(xg,kg,by,r,"updated"),r.updateDOM(t,i,iu)){const s=j_(n,null);return e===null&&le(62),e.replaceChild(s,i),q_(n,null),s}if(Q(t)&&Q(r)){const s=r.__indent;(Fu||s!==t.__indent)&&TF(i,s);const l=r.__format;if((Fu||l!==t.__format)&&EF(i,l),o&&(OIe(t,r,i),Ln(r)||r.isInline()||NF(t,r,i)),Oy(r)&&(Ht+=ia,_s+=ia),(Fu||r.__dir!==t.__dir)&&(ak(i,r),Ln(r)&&!Fu))for(const a of r.getChildren())Q(a)&&ak(lu(er,a.getKey()),a)}else{const s=r.getTextContent();if(xt(r)){const l=r.decorate(er,iu);l!==null&&$F(n,l)}Ht+=s,_s+=s}if(!H_&&Ln(r)&&r.__cachedText!==_s){const s=r.getWritable();s.__cachedText=_s,r=s}return i}function $F(n,e){let t=er._pendingDecorators;const r=er._decorators;if(t===null){if(r[n]===e)return;t=fP(er)}t[n]=e}function N2(n){let e=n.nextSibling;return e!==null&&e===er._blockCursorElement&&(e=e.nextSibling),e}function DIe(n,e,t,r,o,i){Ht="",_s="",Fu=r===2,er=t,iu=t._config,kg=t._nodes,by=er._listeners.mutation,ok=o,ik=i,su=n._nodeMap,Ko=e._nodeMap,H_=e._readOnly,sk=new Map(t._keyToDOMMap);const s=new Map;return xg=s,Jf("root",null),er=void 0,kg=void 0,ok=void 0,ik=void 0,su=void 0,Ko=void 0,iu=void 0,sk=void 0,xg=void 0,s}function uk(n){const e=sk.get(n);return e===void 0&&le(75,n),e}function qe(n){return{type:n}}const AF=qe("SELECTION_CHANGE_COMMAND"),LIe=qe("CLICK_COMMAND"),G_=qe("DELETE_CHARACTER_COMMAND"),Z1=qe("INSERT_LINE_BREAK_COMMAND"),wN=qe("INSERT_PARAGRAPH_COMMAND"),xh=qe("CONTROLLED_TEXT_INSERTION_COMMAND"),MF=qe("PASTE_COMMAND"),TN=qe("REMOVE_TEXT_COMMAND"),J_=qe("DELETE_WORD_COMMAND"),Y_=qe("DELETE_LINE_COMMAND"),Ya=qe("FORMAT_TEXT_COMMAND"),OF=qe("UNDO_COMMAND"),DF=qe("REDO_COMMAND"),FIe=qe("KEYDOWN_COMMAND"),PIe=qe("KEY_ARROW_RIGHT_COMMAND"),IIe=qe("MOVE_TO_END"),BIe=qe("KEY_ARROW_LEFT_COMMAND"),RIe=qe("MOVE_TO_START"),zIe=qe("KEY_ARROW_UP_COMMAND"),VIe=qe("KEY_ARROW_DOWN_COMMAND"),dk=qe("KEY_ENTER_COMMAND"),WIe=qe("KEY_SPACE_COMMAND"),KIe=qe("KEY_BACKSPACE_COMMAND"),UIe=qe("KEY_ESCAPE_COMMAND"),HIe=qe("KEY_DELETE_COMMAND"),qIe=qe("KEY_TAB_COMMAND"),jIe=qe("DROP_COMMAND"),ZIe=qe("DRAGSTART_COMMAND"),GIe=qe("DRAGOVER_COMMAND"),JIe=qe("DRAGEND_COMMAND"),LF=qe("COPY_COMMAND"),FF=qe("CUT_COMMAND"),EN=qe("SELECT_ALL_COMMAND"),YIe=qe("FOCUS_COMMAND"),XIe=qe("BLUR_COMMAND"),QIe=qe("KEY_MODIFIER_COMMAND"),is=Object.freeze({}),fk=[["keydown",function(n,e){if(Sh=n.timeStamp,PF=n.key,!e.isComposing()&&!ve(e,FIe,n)&&n.key!=null){if($2&&r9(n))return Ur(e,()=>{o1(e,A2)}),$2=!1,void(A2="");if(function(t){return it(t,"ArrowRight",{shiftKey:"any"})}(n))ve(e,PIe,n);else if(function(t){return it(t,"ArrowRight",ds)}(n))ve(e,IIe,n);else if(function(t){return it(t,"ArrowLeft",{shiftKey:"any"})}(n))ve(e,BIe,n);else if(function(t){return it(t,"ArrowLeft",ds)}(n))ve(e,RIe,n);else if(function(t){return it(t,"ArrowUp",{altKey:"any",shiftKey:"any"})}(n))ve(e,zIe,n);else if(function(t){return it(t,"ArrowDown",{altKey:"any",shiftKey:"any"})}(n))ve(e,VIe,n);else if(function(t){return it(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(n))wh=!0,ve(e,dk,n);else if(function(t){return t.key===" "}(n))ve(e,WIe,n);else if(function(t){return Mo&&it(t,"o",{ctrlKey:!0})}(n))n.preventDefault(),wh=!0,ve(e,Z1,!0);else if(function(t){return it(t,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(n))wh=!1,ve(e,dk,n);else if(function(t){return it(t,"Backspace",{shiftKey:"any"})||Mo&&it(t,"h",{ctrlKey:!0})}(n))r9(n)?ve(e,KIe,n):(n.preventDefault(),ve(e,G_,!0));else if(function(t){return t.key==="Escape"}(n))ve(e,UIe,n);else if(function(t){return it(t,"Delete",{})||Mo&&it(t,"d",{ctrlKey:!0})}(n))(function(t){return t.key==="Delete"})(n)?ve(e,HIe,n):(n.preventDefault(),ve(e,G_,!1));else if(function(t){return it(t,"Backspace",n9)}(n))n.preventDefault(),ve(e,J_,!0);else if(function(t){return it(t,"Delete",n9)}(n))n.preventDefault(),ve(e,J_,!1);else if(function(t){return Mo&&it(t,"Backspace",{metaKey:!0})}(n))n.preventDefault(),ve(e,Y_,!0);else if(function(t){return Mo&&(it(t,"Delete",{metaKey:!0})||it(t,"k",{ctrlKey:!0}))}(n))n.preventDefault(),ve(e,Y_,!1);else if(function(t){return it(t,"b",ds)}(n))n.preventDefault(),ve(e,Ya,"bold");else if(function(t){return it(t,"u",ds)}(n))n.preventDefault(),ve(e,Ya,"underline");else if(function(t){return it(t,"i",ds)}(n))n.preventDefault(),ve(e,Ya,"italic");else if(function(t){return it(t,"Tab",{shiftKey:"any"})}(n))ve(e,qIe,n);else if(function(t){return it(t,"z",ds)}(n))n.preventDefault(),ve(e,OF,void 0);else if(function(t){return Mo?it(t,"z",{metaKey:!0,shiftKey:!0}):it(t,"y",{ctrlKey:!0})||it(t,"z",{ctrlKey:!0,shiftKey:!0})}(n))n.preventDefault(),ve(e,DF,void 0);else{const t=e._editorState._selection;t===null||Ae(t)?o9(n)&&(n.preventDefault(),ve(e,EN,n)):function(r){return it(r,"c",ds)}(n)?(n.preventDefault(),ve(e,LF,n)):function(r){return it(r,"x",ds)}(n)?(n.preventDefault(),ve(e,FF,n)):o9(n)&&(n.preventDefault(),ve(e,EN,n))}(function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey})(n)&&ve(e,QIe,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;pp(t)&&r!=="touch"&&r!=="pen"&&n.button===0&&Ur(e,()=>{QN(t)||(pk=!0)})}],["compositionstart",function(n,e){Ur(e,()=>{const t=dt();if(Ae(t)&&!e.isComposing()){const r=t.anchor,o=t.anchor.getNode();bn(r.key),(n.timeStamp<Sh+30||r.type==="element"||!t.isCollapsed()||o.getFormat()!==t.format||Te(o)&&o.getStyle()!==t.style)&&ve(e,xh,CIe)}})}],["compositionend",function(n,e){ou?zf=!0:Id||!Cg&&!bg?Ur(e,()=>{o1(e,n.data)}):($2=!0,A2=n.data)}],["input",function(n,e){n.stopPropagation(),Ur(e,()=>{if(eo(n.target)&&QN(n.target))return;const t=dt(),r=n.data,o=VF(n);if(r!=null&&Ae(t)&&RF(t,o,r,n.timeStamp,!1)){zf&&(o1(e,r),zf=!1);const i=t.anchor.getNode(),s=qs(Co(e));if(s===null)return;const l=t.isBackward(),a=l?t.anchor.offset:t.focus.offset,c=l?t.focus.offset:t.anchor.offset;U_&&!t.isCollapsed()&&Te(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+c)===pP(s.anchorNode)||ve(e,xh,r);const d=r.length;ou&&d>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=d),Cg||Id||bg||!e.isComposing()||(Sh=0,bn(null))}else Jx(!1,e,r!==null?r:void 0),zf&&(o1(e,r||void 0),zf=!1);(function(){Un();const i=Dt();xF(i)})()},{event:n}),Pu=null}],["click",function(n,e){Ur(e,()=>{const t=dt(),r=qs(Co(e)),o=dp();if(r){if(Ae(t)){const i=t.anchor,s=i.getNode();if(i.type==="element"&&i.offset===0&&t.isCollapsed()&&!Ln(s)&&zi().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&t.is(o))r.removeAllRanges(),t.dirty=!0;else if(n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()){const l=Y1(s,a=>Q(a)&&!a.isInline());Q(l)&&l.select(0)}}else if(n.pointerType==="touch"||n.pointerType==="pen"){const i=r.anchorNode;(eo(i)||el(i))&&vo(Hx(o,r,e,n))}}ve(e,LIe,n)})}],["cut",is],["copy",is],["dragstart",is],["dragover",is],["dragend",is],["paste",is],["focus",is],["blur",is],["drop",is]];U_&&fk.push(["beforeinput",(n,e)=>function(t,r){const o=t.inputType,i=VF(t);o==="deleteCompositionText"||ou&&mP(r)||o!=="insertCompositionText"&&Ur(r,()=>{const s=dt();if(o==="deleteContentBackward"){if(s===null){const g=dp();if(!Ae(g))return;vo(g.clone())}if(Ae(s)){const g=s.anchor.key===s.focus.key;if(l=t.timeStamp,PF==="MediaLast"&&l<Sh+30&&r.isComposing()&&g){if(bn(null),Sh=0,setTimeout(()=>{Ur(r,()=>{bn(null)})},30),Ae(s)){const p=s.anchor.getNode();p.markDirty(),Te(p)||le(142),zF(s,p)}}else{bn(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),_=p.canInsertTextAfter(),C=s.anchor.offset===0&&s.focus.offset===m.length;let y=hN&&g&&!C&&_;if(y&&s.isCollapsed()&&(y=!xt(wBe(s.anchor,!0))),!y){ve(r,G_,!0);const v=dt();hN&&Ae(v)&&v.isCollapsed()&&(Ua=v,setTimeout(()=>Ua=null))}}return}}var l;if(!Ae(s))return;const a=t.data;Pu!==null&&Jx(!1,r,Pu),s.dirty&&Pu===null||!s.isCollapsed()||Ln(s.anchor.getNode())||i===null||s.applyDOMRange(i),Pu=null;const c=s.anchor,d=s.focus,h=c.getNode(),f=d.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(t.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ve(r,xh,t);break;case"insertFromComposition":bn(null),ve(r,xh,t);break;case"insertLineBreak":bn(null),ve(r,Z1,!1);break;case"insertParagraph":bn(null),wh&&!Id?(wh=!1,ve(r,Z1,!1)):ve(r,wN,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ve(r,MF,t);break;case"deleteByComposition":(function(g,p){return g!==p||Q(g)||Q(p)||!fc(g)||!fc(p)})(h,f)&&ve(r,TN,t);break;case"deleteByDrag":case"deleteByCut":ve(r,TN,t);break;case"deleteContent":ve(r,G_,!1);break;case"deleteWordBackward":ve(r,J_,!0);break;case"deleteWordForward":ve(r,J_,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ve(r,Y_,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ve(r,Y_,!1);break;case"formatStrikeThrough":ve(r,Ya,"strikethrough");break;case"formatBold":ve(r,Ya,"bold");break;case"formatItalic":ve(r,Ya,"italic");break;case"formatUnderline":ve(r,Ya,"underline");break;case"historyUndo":ve(r,OF,void 0);break;case"historyRedo":ve(r,DF,void 0)}else{if(a===`
84
+ `)t.preventDefault(),ve(r,Z1,!1);else if(a===ia)t.preventDefault(),ve(r,wN,void 0);else if(a==null&&t.dataTransfer){const g=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(g)}else a!=null&&RF(s,i,a,t.timeStamp,!0)?(t.preventDefault(),ve(r,xh,a)):Pu=a;IF=t.timeStamp}})}(n,e)]);let Sh=0,PF=null,IF=0,Pu=null;const hk=new WeakMap,X_=new WeakMap;let gk=!1,pk=!1,wh=!1,zf=!1,$2=!1,A2="",Ua=null,BF=[0,"",0,"root",0];function RF(n,e,t,r,o){const i=n.anchor,s=n.focus,l=i.getNode(),a=Dt(),c=qs(Co(a)),d=c!==null?c.anchorNode:null,h=i.key,f=a.getElementByKey(h),g=t.length;return h!==s.key||!Te(l)||(!o&&(!U_||IF<r+50)||l.isDirty()&&g<2||gP(t))&&i.offset!==s.offset&&!l.isComposing()||hl(l)||l.isDirty()&&g>1||(o||!U_)&&f!==null&&!l.isComposing()&&d!==Rd(f)||c!==null&&e!==null&&(!e.collapsed||e.startContainer!==c.anchorNode||e.startOffset!==c.anchorOffset)||l.getFormat()!==n.format||l.getStyle()!==n.style||function(p,m){if(m.isSegmented())return!0;if(!p.isCollapsed())return!1;const _=p.anchor.offset,C=m.getParentOrThrow(),y=fc(m);return _===0?!m.canInsertTextBefore()||!C.canInsertTextBefore()&&!m.isComposing()||y||function(v){const k=v.getPreviousSibling();return(Te(k)||Q(k)&&k.isInline())&&!k.canInsertTextAfter()}(m):_===m.getTextContentSize()&&(!m.canInsertTextAfter()||!C.canInsertTextAfter()&&!m.isComposing()||y)}(n,l)}function NN(n,e){return el(n)&&n.nodeValue!==null&&e!==0&&e!==n.nodeValue.length}function $N(n,e,t){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=n;gk&&(gk=!1,NN(r,o)&&NN(i,s)&&!Ua)||Ur(e,()=>{if(!t)return void vo(null);if(!$y(e,r,i))return;let l=dt();if(Ua&&Ae(l)&&l.isCollapsed()){const a=l.anchor,c=Ua.anchor;(a.key===c.key&&a.offset===c.offset+1||a.offset===1&&c.getNode().is(a.getNode().getPreviousSibling()))&&(l=Ua.clone(),vo(l))}if(Ua=null,Ae(l)){const a=l.anchor,c=a.getNode();if(l.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(l.dirty=!0);const d=Co(e).event,h=d?d.timeStamp:performance.now(),[f,g,p,m,_]=BF,C=zi(),y=e.isComposing()===!1&&C.getTextContent()==="";if(h<_+200&&a.offset===p&&a.key===m)G1(l,f,g);else if(a.type==="text")Te(c)||le(141),zF(l,c);else if(a.type==="element"&&!y){Q(c)||le(259);const v=a.getNode();v.isEmpty()?function(k,x){const b=x.getTextFormat(),T=x.getTextStyle();G1(k,b,T)}(l,v):G1(l,0,"")}}else{const d=a.key,h=l.focus.key,f=l.getNodes(),g=f.length,p=l.isBackward(),m=p?s:o,_=p?o:s,C=p?h:d,y=p?d:h;let v=2047,k=!1;for(let x=0;x<g;x++){const b=f[x],T=b.getTextContentSize();if(Te(b)&&T!==0&&!(x===0&&b.__key===C&&m===T||x===g-1&&b.__key===y&&_===0)&&(k=!0,v&=b.getFormat(),v===0))break}l.format=k?v:0}}ve(e,AF,void 0)})}function G1(n,e,t){n.format===e&&n.style===t||(n.format=e,n.style=t,n.dirty=!0)}function zF(n,e){G1(n,e.getFormat(),e.getStyle())}function VF(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function o1(n,e){const t=n._compositionKey;if(bn(null),t!==null&&e!=null){if(e===""){const r=cn(t),o=Rd(n.getElementByKey(t));return void(o!==null&&o.nodeValue!==null&&Te(r)&&Yx(r,o.nodeValue,null,null,!0))}if(e[e.length-1]===`
85
+ `){const r=dt();if(Ae(r)){const o=r.focus;return r.anchor.set(o.key,o.offset,o.type),void ve(n,dk,null)}}}Jx(!0,n,e)}function WF(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const od=new Map;function KF(n){const e=ABe(n.target);if(e===null)return;const t=uP(e.anchorNode);if(t===null)return;pk&&(pk=!1,Ur(t,()=>{const a=dp(),c=e.anchorNode;(eo(c)||el(c))&&vo(Hx(a,e,t,n))}));const r=Gx(t),o=r[r.length-1],i=o._key,s=od.get(i),l=s||o;l!==t&&$N(e,l,!1),$N(e,t,!0),t!==o?od.set(i,t):s&&od.delete(i)}function AN(n){n._lexicalHandled=!0}function MN(n){return n._lexicalHandled===!0}const ON=()=>{};function eBe(n){const e=hk.get(n);if(e===void 0)return void ON();const t=X_.get(e);if(t===void 0)return void ON();const r=t-1;r>=0||le(164),hk.delete(n),X_.set(e,r),r===0&&e.removeEventListener("selectionchange",KF);const o=Ay(n);jx(o)?(function(s){if(s._parentEditor!==null){const l=Gx(s),a=l[l.length-1]._key;od.get(a)===s&&od.delete(a)}else od.delete(s._key)}(o),n.__lexicalEditor=null):o&&le(198);const i=WF(n);for(let s=0;s<i.length;s++)i[s]();n.__lexicalEventHandles=[]}function mk(n,e,t){Un();const r=n.__key,o=n.getParent();if(o===null)return;const i=function(l){const a=dt();if(!Ae(a)||!Q(l))return a;const{anchor:c,focus:d}=a,h=c.getNode(),f=d.getNode();return yk(h,l)&&c.set(l.__key,0,"element"),yk(f,l)&&d.set(l.__key,0,"element"),a}(n);let s=!1;if(Ae(i)&&e){const l=i.anchor,a=i.focus;l.key===r&&(t0(l,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0),a.key===r&&(t0(a,n,o,n.getPreviousSibling(),n.getNextSibling()),s=!0)}else Ux(i)&&e&&n.isSelected()&&n.selectPrevious();if(Ae(i)&&e&&!s){const l=n.getIndexWithinParent();hc(n),e0(i,o,l,-1)}else hc(n);t||ba(o)||o.canBeEmpty()||!o.isEmpty()||mk(o,e),e&&i&&Ln(o)&&o.isEmpty()&&o.selectEnd()}const tBe=Symbol.for("ephemeral");function Q_(n){return n[tBe]||!1}class Ls{constructor(e){E(this,"__type");E(this,"__key");E(this,"__parent");E(this,"__prev");E(this,"__next");E(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),kBe(this,e)}static getType(){const{ownNodeType:e}=BBe(this);return e===void 0&&le(64,this.name),e}static clone(e){le(65,this.name)}$config(){return{}}config(e,t){const r=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:r,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){le(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=cn(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){const t=e||dt();if(t==null)return!1;const r=t.getNodes().some(o=>o.__key===this.__key);if(Te(this))return r;if(Ae(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const o=this.getParent();if(xt(this)&&this.isInline()&&o){const i=t.isBackward()?t.focus:t.anchor;if(o.is(i.getNode())&&i.offset===o.getChildrenSize()&&this.is(o.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:cn(e)}getParentOrThrow(){const e=this.getParent();return e===null&&le(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(ba(t))return Q(e)||e===this&&xt(e)||le(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&le(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:cn(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:cn(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=Q(this)?this:this.getParent(),r=Q(e)?e:e.getParent(),o=t&&r?X1(t,r):null;return o?o.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const t=X1(this,e);return t!==null&&(t.type==="descendant"||(t.type==="branch"?bP(t)===-1:(t.type!=="same"&&t.type!=="ancestor"&&le(279),!1)))}isParentOf(e){const t=X1(this,e);return t!==null&&t.type==="ancestor"}getNodesBetween(e){const t=this.isBefore(e),r=[],o=new Set;let i=this;for(;i!==null;){const s=i.__key;if(o.has(s)||(o.add(s),r.push(i)),i===e)break;const l=Q(i)?t?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const a=t?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const c=i.getParentOrThrow();if(o.has(c.__key)||r.push(c),c===e)break;let d=null,h=c;do{if(h===null&&le(68),d=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;d!==null||o.has(h.__key)||r.push(h)}while(d===null);i=d}return t||r.reverse(),r}isDirty(){const e=Dt()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(Q_(this))return this;const e=cn(this.__key);return e===null&&le(113),e}getWritable(){if(Q_(this))return this;Un();const e=Ca(),t=Dt(),r=e._nodeMap,o=this.__key,i=this.getLatest(),s=t._cloneNotNeeded,l=dt();if(l!==null&&l.setCachedNodes(null),s.has(o))return r0(i),i;const a=FBe(i);return s.add(o),r0(a),r.set(o,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){le(70)}updateDOM(e,t,r){le(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){le(18,this.name)}updateFromJSON(e){return function(t,r){const o=t.getWritable(),i=r.$;let s=i;for(const l of wF(o).flatKeys)l in r&&(s!==void 0&&s!==i||(s={...i}),s[l]=r[l]);return(o.__state||s)&&$Ie(t).updateFromJSON(s),o}(this,e)}static transform(){return null}remove(e){mk(this,!0,e)}replace(e,t){Un();let r=dt();r!==null&&(r=r.clone()),I2(this,e);const o=this.getLatest(),i=this.__key,s=e.__key,l=e.getWritable(),a=this.getParentOrThrow().getWritable(),c=a.__size;hc(l);const d=o.getPreviousSibling(),h=o.getNextSibling(),f=o.__prev,g=o.__next,p=o.__parent;if(mk(o,!1,!0),d===null?a.__first=s:d.getWritable().__next=s,l.__prev=f,h===null?a.__last=s:h.getWritable().__prev=s,l.__next=g,l.__parent=p,a.__size=c,t&&(Q(this)&&Q(l)||le(139),this.getChildren().forEach(m=>{l.append(m)})),Ae(r)){vo(r);const m=r.anchor,_=r.focus;m.key===i&&PN(m,l),_.key===i&&PN(_,l)}return El()===i&&bn(s),l}insertAfter(e,t=!0){Un(),I2(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.getParent(),s=dt();let l=!1,a=!1;if(i!==null){const g=e.getIndexWithinParent();if(hc(o),Ae(s)){const p=i.__key,m=s.anchor,_=s.focus;l=m.type==="element"&&m.key===p&&m.offset===g+1,a=_.type==="element"&&_.key===p&&_.offset===g+1}}const c=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),h=o.__key,f=r.__next;if(c===null?d.__last=h:c.getWritable().__prev=h,d.__size++,r.__next=h,o.__next=f,o.__prev=r.__key,o.__parent=r.__parent,t&&Ae(s)){const g=this.getIndexWithinParent();e0(s,d,g+1);const p=d.__key;l&&s.anchor.set(p,g+2,"element"),a&&s.focus.set(p,g+2,"element")}return e}insertBefore(e,t=!0){Un(),I2(this,e);const r=this.getWritable(),o=e.getWritable(),i=o.__key;hc(o);const s=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,c=this.getIndexWithinParent();s===null?l.__first=i:s.getWritable().__next=i,l.__size++,r.__prev=i,o.__prev=a,o.__next=r.__key,o.__parent=r.__parent;const d=dt();return t&&Ae(d)&&e0(d,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return Vl()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Un();const r=this.getPreviousSibling(),o=this.getParentOrThrow();if(r===null)return o.select(0,0);if(Q(r))return r.select();if(!Te(r)){const i=r.getIndexWithinParent()+1;return o.select(i,i)}return r.select(e,t)}selectNext(e,t){Un();const r=this.getNextSibling(),o=this.getParentOrThrow();if(r===null)return o.select();if(Q(r))return r.select(0,0);if(!Te(r)){const i=r.getIndexWithinParent();return o.select(i,i)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}E(Ls,"importDOM");const M2="history-merge",nBe="collaboration",rBe="skip-scroll-into-view",oBe="skip-dom-selection",iBe="skip-selection-focus";class ky extends Ls{static getType(){return"linebreak"}static clone(e){return new ky(e.__key)}constructor(e){super(e)}getTextContent(){return`
86
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(t){const r=t.parentElement;if(r!==null&&s9(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&i1(o)){const i=r.lastChild;if(i===t||i.previousSibling===t&&i1(i))return!0}}return!1}(e)||function(t){const r=t.parentElement;if(r!==null&&s9(r)){const o=r.firstChild;if(o===t||o.nextSibling===t&&i1(o))return!1;const i=r.lastChild;if(i===t||i.previousSibling===t&&i1(i))return!0}return!1}(e)?null:{conversion:sBe,priority:0}}}static importJSON(e){return Sg().updateFromJSON(e)}}function sBe(n){return{node:Sg()}}function Sg(){return rf(new ky)}function Th(n){return n instanceof ky}function i1(n){return el(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function O2(n,e){return 16&e?"code":e&CF?"mark":32&e?"sub":64&e?"sup":null}function D2(n,e){return 1&e?"strong":2&e?"em":"span"}function UF(n,e,t,r,o){const i=r.classList;let s=id(o,"base");s!==void 0&&i.add(...s),s=id(o,"underlineStrikethrough");let l=!1;const a=8&e&&4&e;s!==void 0&&(8&t&&4&t?(l=!0,a||i.add(...s)):a&&i.remove(...s));for(const c in cr){const d=cr[c];if(s=id(o,c),s!==void 0)if(t&d){if(l&&(c==="underline"||c==="strikethrough")){e&d&&i.remove(...s);continue}(!(e&d)||a&&c==="underline"||c==="strikethrough")&&i.add(...s)}else e&d&&i.remove(...s)}}function HF(n,e,t){const r=e.firstChild,o=t.isComposing(),i=n+(o?Cy:"");if(r==null)e.textContent=i;else{const s=r.nodeValue;if(s!==i)if(o||ou){const[l,a,c]=function(d,h){const f=d.length,g=h.length;let p=0,m=0;for(;p<f&&p<g&&d[p]===h[p];)p++;for(;m+p<f&&m+p<g&&d[f-m-1]===h[g-m-1];)m++;return[p,f-p-m,h.slice(p,g-m)]}(s,i);a!==0&&r.deleteData(l,a),r.insertData(l,c)}else r.nodeValue=i}}function DN(n,e,t,r,o,i){HF(o,n,e);const s=i.theme.text;s!==void 0&&UF(0,0,r,n,s)}function s1(n,e){const t=document.createElement(e);return t.appendChild(n),t}class up extends Ls{constructor(t="",r){super(r);E(this,"__text");E(this,"__format");E(this,"__style");E(this,"__mode");E(this,"__detail");this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(t){return new up(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return SIe[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===El()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const r=cr[t];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(t,r){return n0(this.getLatest().__format,t,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,r){const o=this.__format,i=O2(0,o),s=D2(0,o),l=i===null?s:i,a=document.createElement(l);let c=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(c=document.createElement(s),a.appendChild(c)),DN(c,this,0,o,this.__text,t);const d=this.__style;return d!==""&&(a.style.cssText=d),a}updateDOM(t,r,o){const i=this.__text,s=t.__format,l=this.__format,a=O2(0,s),c=O2(0,l),d=D2(0,s),h=D2(0,l);if((a===null?d:a)!==(c===null?h:c))return!0;if(a===c&&d!==h){const _=r.firstChild;_==null&&le(48);const C=document.createElement(h);return DN(C,this,0,l,i,o),r.replaceChild(C,_),!1}let f=r;c!==null&&a!==null&&(f=r.firstChild,f==null&&le(49)),HF(i,f,this);const g=o.theme.text;g!==void 0&&s!==l&&UF(0,s,l,f,g);const p=t.__style,m=this.__style;return p!==m&&(r.style.cssText=m),!1}static importDOM(){return{"#text":()=>({conversion:uBe,priority:0}),b:()=>({conversion:aBe,priority:0}),code:()=>({conversion:ss,priority:0}),em:()=>({conversion:ss,priority:0}),i:()=>({conversion:ss,priority:0}),mark:()=>({conversion:ss,priority:0}),s:()=>({conversion:ss,priority:0}),span:()=>({conversion:lBe,priority:0}),strong:()=>({conversion:ss,priority:0}),sub:()=>({conversion:ss,priority:0}),sup:()=>({conversion:ss,priority:0}),u:()=>({conversion:ss,priority:0})}}static importJSON(t){return hn().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(t){let{element:r}=super.exportDOM(t);return eo(r)||le(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=s1(r,"b")),this.hasFormat("italic")&&(r=s1(r,"i")),this.hasFormat("strikethrough")&&(r=s1(r,"s")),this.hasFormat("underline")&&(r=s1(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?cr[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?bIe[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=n0(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=xIe[t];if(this.__mode===r)return this;const o=this.getWritable();return o.__mode=r,o}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){Un();let o=t,i=r;const s=dt(),l=this.getTextContent(),a=this.__key;if(typeof l=="string"){const c=l.length;o===void 0&&(o=c),i===void 0&&(i=c)}else o=0,i=0;if(!Ae(s))return GF(a,o,a,i,"text","text");{const c=El();c!==s.anchor.key&&c!==s.focus.key||bn(a),s.setTextNodeRange(this,o,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,o,i){const s=this.getWritable(),l=s.__text,a=o.length;let c=t;c<0&&(c=a+c,c<0&&(c=0));const d=dt();if(i&&Ae(d)){const f=t+a;d.setTextNodeRange(s,f,s,f)}const h=l.slice(0,c)+o+l.slice(c+r);return s.__text=h,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Un();const r=this.getLatest(),o=r.getTextContent();if(o==="")return[];const i=r.__key,s=El(),l=o.length;t.sort((S,N)=>S-N),t.push(l);const a=[],c=t.length;for(let S=0,N=0;S<l&&N<=c;N++){const $=t[N];$>S&&(a.push(o.slice(S,$)),S=$)}const d=a.length;if(d===1)return[r];const h=a[0],f=r.getParent();let g;const p=r.getFormat(),m=r.getStyle(),_=r.__detail;let C=!1,y=null,v=null;const k=dt();if(Ae(k)){const[S,N]=k.isBackward()?[k.focus,k.anchor]:[k.anchor,k.focus];S.type==="text"&&S.key===i&&(y=S),N.type==="text"&&N.key===i&&(v=N)}r.isSegmented()?(g=hn(h),g.__format=p,g.__style=m,g.__detail=_,g.__state=vN(r,g),C=!0):g=r.setTextContent(h);const x=[g];for(let S=1;S<d;S++){const N=hn(a[S]);N.__format=p,N.__style=m,N.__detail=_,N.__state=vN(r,N);const $=N.__key;s===i&&bn($),x.push(N)}const b=y?y.offset:null,T=v?v.offset:null;let w=0;for(const S of x){if(!y&&!v)break;const N=w+S.getTextContentSize();if(y!==null&&b!==null&&b<=N&&b>=w&&(y.set(S.getKey(),b-w,"text"),b<N&&(y=null)),v!==null&&T!==null&&T<=N&&T>=w){v.set(S.getKey(),T-w,"text");break}w=N}if(f!==null){(function($){const O=$.getPreviousSibling(),M=$.getNextSibling();O!==null&&r0(O),M!==null&&r0(M)})(this);const S=f.getWritable(),N=this.getIndexWithinParent();C?(S.splice(N,0,x),this.remove()):S.splice(N,1,x),Ae(k)&&e0(k,f,N,d-1)}return x}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||le(50);const o=this.__key,i=t.__key,s=this.__text,l=s.length;El()===i&&bn(o);const a=dt();if(Ae(a)){const f=a.anchor,g=a.focus;f!==null&&f.key===i&&UN(f,r,o,t,l),g!==null&&g.key===i&&UN(g,r,o,t,l)}const c=t.__text,d=r?c+s:s+c;this.setTextContent(d);const h=this.getWritable();return t.remove(),h}isTextEntity(){return!1}}function lBe(n){return{forChild:Wx(n.style),node:null}}function aBe(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:Wx(e.style,t?void 0:"bold"),node:null}}const LN=new WeakMap;function cBe(n){if(!eo(n))return!1;if(n.nodeName==="PRE")return!0;const e=n.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function uBe(n){const e=n;n.parentElement===null&&le(129);let t=e.textContent||"";if(function(r){let o,i=r.parentNode;const s=[r];for(;i!==null&&(o=LN.get(i))===void 0&&!cBe(i);)s.push(i),i=i.parentNode;const l=o===void 0?i:o;for(let a=0;a<s.length;a++)LN.set(s[a],l);return l}(e)!==null){const r=t.split(/(\r?\n|\t)/),o=[],i=r.length;for(let s=0;s<i;s++){const l=r[s];l===`
87
+ `||l===`\r
88
+ `?o.push(Sg()):l===" "?o.push(Kx()):l!==""&&o.push(hn(l))}return{node:o}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,o=!0;for(;r!==null&&(r=FN(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),o=!1;break}}o&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,o=!0;for(;r!==null&&(r=FN(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:hn(t)}}function FN(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=r,eo(t)){const i=t.style.display;if(i===""&&!OBe(t)||i!==""&&!i.startsWith("inline"))return null}let o=t;for(;(o=e?t.firstChild:t.lastChild)!==null;)t=o;if(el(t))return t;if(t.nodeName==="BR")return null}}const dBe={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function ss(n){const e=dBe[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Wx(n.style,e),node:null}}function hn(n=""){return rf(new up(n))}function Te(n){return n instanceof up}function Wx(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),o=t==="700"||t==="bold",i=r.includes("line-through"),s=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return c=>(Te(c)&&(o&&!c.hasFormat("bold")&&c.toggleFormat("bold"),i&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),s&&!c.hasFormat("italic")&&c.toggleFormat("italic"),l&&!c.hasFormat("underline")&&c.toggleFormat("underline"),a!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),a!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),e&&!c.hasFormat(e)&&c.toggleFormat(e)),c)}class xy extends up{static getType(){return"tab"}static clone(e){return new xy(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),r=id(e.theme,"tab");return r!==void 0&&t.classList.add(...r),t}static importJSON(e){return Kx().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&_F(126),super.setTextContent(" ")}spliceText(e,t,r,o){return r===""&&t===0||r===" "&&t===1||le(286),this}setDetail(e){return e!==2&&le(127),this}setMode(e){return e!=="normal"&&le(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Kx(){return rf(new xy)}function qF(n){return n instanceof xy}class fBe{constructor(e,t,r){E(this,"key");E(this,"offset");E(this,"type");E(this,"_selection");this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:CP(Si(fu(this,"next")),Si(fu(e,"next")))<0}getNode(){const e=cn(this.key);return e===null&&le(20),e}set(e,t,r,o){const i=this._selection,s=this.key;o&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,fp()||(El()===s&&bn(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function Ri(n,e,t){return new fBe(n,e,t)}function L2(n,e){let t=e.__key,r=n.offset,o="element";if(Te(e)){o="text";const i=e.getTextContentSize();r>i&&(r=i)}else if(!Q(e)){const i=e.getNextSibling();if(Te(i))t=i.__key,r=0,o="text";else{const s=e.getParent();s&&(t=s.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,o)}function PN(n,e){if(Q(e)){const t=e.getLastDescendant();Q(t)||Te(t)?L2(n,t):L2(n,e)}else L2(n,e)}class Sy{constructor(e){E(this,"_nodes");E(this,"_cachedNodes");E(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Ux(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(o=>r.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Sy(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),r=t.length,o=t[r-1];let i;if(Te(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<r;s++)t[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const o of t){const i=cn(o);i!==null&&r.push(i)}return fp()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((dt()||dp())===this&&e[0]){const t=tr(e[0],"next");jBe(du(t,t))}for(const t of e)t.remove()}}function Ae(n){return n instanceof gu}class gu{constructor(e,t,r,o){E(this,"format");E(this,"style");E(this,"anchor");E(this,"focus");E(this,"_cachedNodes");E(this,"dirty");this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=o,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Ae(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=function(r){const o=[],[i,s]=r.getTextSlices();i&&o.push(i.caret.origin);const l=new Set,a=new Set;for(const c of r)if(Fs(c)){const{origin:d}=c;o.length===0?l.add(d):(a.add(d),o.push(d))}else{const{origin:d}=c;Q(d)&&a.has(d)||o.push(d)}if(s&&o.push(s.caret.origin),zd(r.focus)&&Q(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let c=sa(r.focus.origin,"previous");Fs(c)&&l.has(c.origin)&&!c.origin.isEmpty()&&c.origin.is(o[o.length-1]);c=n5(c))l.delete(c.origin),o.pop();for(;o.length>1;){const c=o[o.length-1];if(!Q(c)||a.has(c)||c.isEmpty()||l.has(c))break;o.pop()}if(o.length===0&&r.isCollapsed()){const c=Si(r.anchor),d=Si(r.anchor.getFlipped()),h=g=>gc(g)?g.origin:g.getNodeAtCaret(),f=h(c)||h(d)||(r.anchor.getNodeAtCaret()?c.origin:d.origin);o.push(f)}return o}(kP(d9(this),"next"));return fp()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,o){this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,o,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[l,a]=BN(this);let c="",d=!0;for(let h=0;h<e.length;h++){const f=e[h];if(Q(f)&&!f.isInline())d||(c+=`
89
+ `),d=!f.isEmpty();else if(d=!1,Te(f)){let g=f.getTextContent();f===t?f===r?o.type==="element"&&i.type==="element"&&i.offset!==o.offset||(g=l<a?g.slice(l,a):g.slice(a,l)):g=s?g.slice(l):g.slice(a):f===r&&(g=s?g.slice(0,a):g.slice(0,l)),c+=g}else!xt(f)&&!Th(f)||f===r&&this.isCollapsed()||(c+=f.getTextContent())}return c}applyDOMRange(e){const t=Dt(),r=t.getEditorState()._selection,o=ZF(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(o===null)return;const[i,s]=o;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(s.key,s.offset,s.type,!0),AIe(this)}clone(){const e=this.anchor,t=this.focus;return new gu(Ri(e.key,e.offset,e.type),Ri(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=n0(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=cr[e];return(this.format&t)!==0}insertRawText(e){const t=e.split(/(\r?\n|\t)/),r=[],o=t.length;for(let i=0;i<o;i++){const s=t[i];s===`
90
+ `||s===`\r
91
+ `?r.push(Sg()):s===" "?r.push(Kx()):r.push(hn(s))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,o=this.format,i=this.style;let s=t,l=r;!this.isCollapsed()&&r.isBefore(t)&&(s=r,l=t),s.type==="element"&&function(_,C,y,v){const k=_.getNode(),x=k.getChildAtIndex(_.offset),b=hn();if(b.setFormat(y),b.setStyle(v),yBe(x))x.splice(0,0,[b]);else{const T=Ln(k)?Vl().append(b):b;x===null?k.append(T):x.insertBefore(T)}_.is(C)&&C.set(b.__key,0,"text"),_.set(b.__key,0,"text")}(s,l,o,i),l.type==="element"&&Tg(l,Si(fu(l,"next")));const a=s.offset;let c=l.offset;const d=this.getNodes(),h=d.length;let f=d[0];Te(f)||le(26);const g=f.getTextContent().length,p=f.getParentOrThrow();let m=d[h-1];if(h===1&&l.type==="element"&&(c=g,l.set(s.key,c,"text")),this.isCollapsed()&&a===g&&(hl(f)||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&f.getNextSibling()===null)){let _=f.getNextSibling();if(Te(_)&&_.canInsertTextBefore()&&!hl(_)||(_=hn(),_.setFormat(o),_.setStyle(i),p.canInsertTextAfter()?f.insertAfter(_):p.insertAfter(_)),_.select(0,0),f=_,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(hl(f)||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&f.getPreviousSibling()===null)){let _=f.getPreviousSibling();if(Te(_)&&!hl(_)||(_=hn(),_.setFormat(o),p.canInsertTextBefore()?f.insertBefore(_):p.insertBefore(_)),_.select(),f=_,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&a!==g){const _=hn(f.getTextContent());_.setFormat(o),f.replace(_),f=_}else if(!this.isCollapsed()&&e!==""){const _=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||Q(_)&&(!_.canInsertTextBefore()||!_.canInsertTextAfter()))return this.insertText(""),jF(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(fc(f)){const v=hn(e);return v.select(),void f.replace(v)}const _=f.getFormat(),C=f.getStyle();if(a!==c||_===o&&C===i){if(qF(f)){const v=hn(e);return v.setFormat(o),v.setStyle(i),v.select(),void f.replace(v)}}else{if(f.getTextContent()!==""){const v=hn(e);if(v.setFormat(o),v.setStyle(i),v.select(),a===0)f.insertBefore(v,!1);else{const[k]=f.splitText(a);k.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(o),f.setStyle(i)}const y=c-a;f=f.spliceText(a,y,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=_,this.style=C))}else{const _=new Set([...f.getParentKeys(),...m.getParentKeys()]),C=Q(f)?f:f.getParentOrThrow();let y=Q(m)?m:m.getParentOrThrow(),v=m;if(!C.is(y)&&y.isInline())do v=y,y=y.getParentOrThrow();while(y.isInline());if(l.type==="text"&&(c!==0||m.getTextContent()==="")||l.type==="element"&&m.getIndexWithinParent()<c)if(Te(m)&&!fc(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){const w=hn(m.getTextContent());m.replace(w),m=w}Ln(l.getNode())||l.type!=="text"||(m=m.spliceText(0,c,"")),_.add(m.__key)}else{const w=m.getParentOrThrow();w.canBeEmpty()||w.getChildrenSize()!==1?m.remove():w.remove()}else _.add(m.__key);const k=y.getChildren(),x=new Set(d),b=C.is(y),T=C.isInline()&&f.getNextSibling()===null?C:f;for(let w=k.length-1;w>=0;w--){const S=k[w];if(S.is(f)||Q(S)&&S.isParentOf(f))break;S.isAttached()&&(!x.has(S)||S.is(v)?b||T.insertAfter(S,!1):S.remove())}if(!b){let w=y,S=null;for(;w!==null;){const N=w.getChildren(),$=N.length;($===0||N[$-1].is(S))&&(_.delete(w.__key),S=w),w=w.getParent()}}if(fc(f))if(a===g)f.select();else{const w=hn(e);w.select(),f.replace(w)}else f=f.spliceText(a,g-a,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let w=1;w<h;w++){const S=d[w],N=S.__key;_.has(N)||S.remove()}}}removeText(){const e=dt()===this;Q1(this,ZBe(d9(this))),e&&dt()!==this&&vo(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void bn(null);const r=this.getNodes(),o=[];for(const k of r)Te(k)&&o.push(k);const i=k=>{r.forEach(x=>{if(Q(x)){const b=x.getFormatFlags(e,k);x.setTextFormat(b)}})},s=o.length;if(s===0)return this.toggleFormat(e),bn(null),void i(t);const l=this.anchor,a=this.focus,c=this.isBackward(),d=c?a:l,h=c?l:a;let f=0,g=o[0],p=d.type==="element"?0:d.offset;if(d.type==="text"&&p===g.getTextContentSize()&&(f=1,g=o[1],p=0),g==null)return;const m=g.getFormatFlags(e,t);i(m);const _=s-1;let C=o[_];const y=h.type==="text"?h.offset:C.getTextContentSize();if(g.is(C)){if(p===y)return;if(hl(g)||p===0&&y===g.getTextContentSize())g.setFormat(m);else{const k=g.splitText(p,y),x=p===0?k[0]:k[1];x.setFormat(m),d.type==="text"&&d.set(x.__key,0,"text"),h.type==="text"&&h.set(x.__key,y-p,"text")}return void(this.format=m)}p===0||hl(g)||([,g]=g.splitText(p),p=0),g.setFormat(m);const v=C.getFormatFlags(e,m);y>0&&(y===C.getTextContentSize()||hl(C)||([C]=C.splitText(y)),C.setFormat(v));for(let k=f+1;k<_;k++){const x=o[k],b=x.getFormatFlags(e,v);x.setFormat(b)}d.type==="text"&&d.set(g.__key,p,"text"),h.type==="text"&&h.set(C.__key,y,"text"),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const p=dt();return Ae(p)||le(134),p.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),r=Y1(t,bl),o=e[e.length-1];if(Q(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const p=F2(this);r.splice(p,0,e),o.selectEnd()}return}if(!e.some(p=>(Q(p)||xt(p))&&!p.isInline())){Q(r)||le(211,t.constructor.name,t.getType());const p=F2(this);return r.splice(p,0,e),void o.selectEnd()}const i=function(p){const m=Vl();let _=null;for(let C=0;C<p.length;C++){const y=p[C],v=Th(y);if(v||xt(y)&&y.isInline()||Q(y)&&y.isInline()||Te(y)||y.isParentRequired()){if(_===null&&(_=y.createParentElementNode(),m.append(_),v))continue;_!==null&&_.append(y)}else m.append(y),_=null}return m}(e),s=i.getLastDescendant(),l=i.getChildren(),a=!Q(r)||!r.isEmpty()?this.insertParagraph():null,c=l[l.length-1];let d=l[0];var h;Q(h=d)&&bl(h)&&!h.isEmpty()&&Q(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(Q(r)||le(211,t.constructor.name,t.getType()),r.append(...d.getChildren()),d=l[1]),d&&(r===null&&le(212,t.constructor.name,t.getType()),function(p,m){const _=m.getParentOrThrow().getLastChild();let C=m;const y=[m];for(;C!==_;)C.getNextSibling()||le(140),C=C.getNextSibling(),y.push(C);let v=p;for(const k of y)v=v.insertAfter(k)}(r,d));const f=Y1(s,bl);a&&Q(f)&&(a.canMergeWhenEmpty()||bl(c))&&(f.append(...a.getChildren()),a.remove()),Q(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const g=Q(r)?r.getLastChild():null;Th(g)&&f!==r&&g.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Vl();return zi().splice(this.anchor.offset,0,[s]),s.select(),s}const e=F2(this),t=Y1(this.anchor.getNode(),bl);Q(t)||le(213);const r=t.getChildAtIndex(e),o=r?[r,...r.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(e){const t=Sg();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),o=t.getIndexWithinParent();r.select(o,o)}}extract(){const e=[...this.getNodes()],t=e.length;let r=e[0],o=e[t-1];const[i,s]=BN(this),l=this.isBackward(),[a,c]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,h]=l?[s,i]:[i,s];if(t===0)return[];if(t===1){if(Te(r)&&!this.isCollapsed()){const f=r.splitText(d,h),g=d===0?f[0]:f[1];return g?(a.set(g.getKey(),0,"text"),c.set(g.getKey(),g.getTextContentSize(),"text"),[g]):[]}return[r]}if(Te(r)&&(d===r.getTextContentSize()?e.shift():d!==0&&([,r]=r.splitText(d),e[0]=r,a.set(r.getKey(),0,"text"))),Te(o)){const f=o.getTextContent().length;h===0?e.pop():h!==f&&([o]=o.splitText(h),e[e.length-1]=o,c.set(o.getKey(),o.getTextContentSize(),"text"))}return e}modify(e,t,r){if(HN(this,e,t,r))return;const o=e==="move",i=Dt(),s=qs(Co(i));if(!s)return;const l=i._blockCursorElement,a=i._rootElement,c=this.focus.getNode();if(a===null||l===null||!Q(c)||c.isInline()||c.canBeEmpty()||vk(l,i,a),this.dirty){let d=lu(i,this.anchor.key),h=lu(i,this.focus.key);this.anchor.type==="text"&&(d=Rd(d)),this.focus.type==="text"&&(h=Rd(h)),d&&h&&YF(s,d,this.anchor.offset,h,this.focus.offset)}if(function(d,h,f,g){d.modify(h,f,g)}(s,e,t?"backward":"forward",r),s.rangeCount>0){const d=s.getRangeAt(0),h=this.anchor.getNode(),f=Ln(h)?h:NBe(h);if(this.applyDOMRange(d),this.dirty=!0,!o){const g=this.getNodes(),p=[];let m=!1;for(let _=0;_<g.length;_++){const C=g[_];yk(C,f)?p.push(C):m=!0}if(m&&p.length>0)if(t){const _=p[0];Q(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=p[p.length-1];Q(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}s.anchorNode===d.startContainer&&s.anchorOffset===d.startOffset||function(_){const C=_.focus,y=_.anchor,v=y.key,k=y.offset,x=y.type;y.set(C.key,C.offset,C.type,!0),C.set(v,k,x,!0)}(this)}}r==="lineboundary"&&HN(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&Q(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const o=t.getParent(),i=t.getNextSibling()||(o===null?null:o.getNextSibling());if(Q(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let o=r.getNode();if(this.forwardDeletion(r,o,e))return;const i=yP(fu(r,e?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const a of i.iterNodeCarets("shadowRoot"))if(Fs(a)){if(!a.origin.isInline()){if(a.origin.isShadowRoot()){if(l.type==="merge-block")break;if(Q(i.anchor.origin)&&i.anchor.origin.isEmpty()){const c=Si(a);Q1(this,du(c,c)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:a,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(zd(a)){if(Q(a.origin)){if(a.origin.isInline()){if(!a.origin.isParentOf(i.anchor.origin))break}else l={block:a.origin,type:"merge-next-block"};continue}if(xt(a.origin)){if(!a.origin.isIsolated())if(l.type==="merge-next-block"&&(a.origin.isKeyboardSelectable()||!a.origin.isInline())&&Q(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const c=JF();c.add(a.origin.getKey()),vo(c)}else a.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:a,block:c}=l;return Q1(this,du(!a.origin.isEmpty()&&c.isEmpty()?o5(tr(c,a.direction)):i.anchor,a)),this.removeText()}}const s=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&RN(this,r.getNode()))return}else{const l=s.type==="text"?s.getNode():null;if(o=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=s.offset,c=l.getTextContentSize();if(l.is(o)||e&&a!==c||!e&&a!==0)return void zN(l,e,a)}else if(o!==null&&o.isSegmented()){const a=r.offset,c=o.getTextContentSize();if(o.is(l)||e&&a!==0||!e&&a!==c)return void zN(o,e,a)}(function(a,c){const d=a.anchor,h=a.focus,f=d.getNode(),g=h.getNode();if(f===g&&d.type==="text"&&h.type==="text"){const p=d.offset,m=h.offset,_=p<m,C=_?p:m,y=_?m:p,v=y-1;C!==v&&function(k){return!(gP(k)||hBe(k))}(f.getTextContent().slice(C,y))&&(c?h.set(h.key,v,h.type):d.set(d.key,v,d.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Ln(r.getParent())&&r.getPreviousSibling()===null&&RN(this,r)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Ux(n){return n instanceof Sy}function IN(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function BN(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[IN(t),IN(r)]}function RN(n,e){for(let t=e;t;t=t.getParent()){if(Q(t)){if(t.collapseAtStart(n))return!0;if(ba(t))break}if(t.getPreviousSibling())break}return!1}const hBe=(()=>{try{const n=new RegExp("\\p{Emoji}","u"),e=n.test.bind(n);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function zN(n,e,t){const r=n,o=r.getTextContent().split(/(?=\s)/g),i=o.length;let s=0,l=0;for(let c=0;c<i;c++){const d=c===i-1;if(l=s,s+=o[c].length,e&&s===t||s>t||d){o.splice(c,1),d&&(l=void 0);break}}const a=o.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function VN(n,e,t,r){let o,i=e;if(eo(n)){let s=!1;const l=n.childNodes,a=l.length,c=r._blockCursorElement;i===a&&(s=!0,i=a-1);let d=l[i],h=!1;if(d===c)d=l[i+1],h=!0;else if(c!==null){const f=c.parentNode;n===f&&e>Array.prototype.indexOf.call(f.children,c)&&i--}if(o=Ku(d),Te(o))i=Wl(o,s?"next":"previous");else{let f=Ku(n);if(f===null)return null;if(Q(f)){const g=r.getElementByKey(f.getKey());g===null&&le(214),[f,i]=f.getDOMSlot(g).resolveChildIndex(f,g,n,e),Q(f)||le(215),s&&i>=f.getChildrenSize()&&(i=Math.max(0,f.getChildrenSize()-1));let m=f.getChildAtIndex(i);if(Q(m)&&function(_,C,y){const v=_.getParent();return y===null||v===null||!v.canBeEmpty()||v!==y.getNode()}(m,0,t)){const _=s?m.getLastDescendant():m.getFirstDescendant();_===null?f=m:(m=_,f=Q(m)?m:m.getParentOrThrow()),i=0}Te(m)?(o=m,f=null,i=Wl(m,s?"next":"previous")):m!==f&&s&&!h&&(Q(f)||le(216),i=Math.min(f.getChildrenSize(),i+1))}else{const g=f.getIndexWithinParent();i=e===0&&xt(f)&&Ku(n)===f?g:g+1,f=f.getParentOrThrow()}if(Q(f))return Ri(f.__key,i,"element")}}else o=Ku(n);return Te(o)?Ri(o.__key,Wl(o,i,"clamp"),"text"):null}function WN(n,e,t){const r=n.offset,o=n.getNode();if(r===0){const i=o.getPreviousSibling(),s=o.getParent();if(e){if((t||!e)&&i===null&&Q(s)&&s.isInline()){const l=s.getPreviousSibling();Te(l)&&n.set(l.__key,l.getTextContent().length,"text")}}else Q(i)&&!t&&i.isInline()?n.set(i.__key,i.getChildrenSize(),"element"):Te(i)&&n.set(i.__key,i.getTextContent().length,"text")}else if(r===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(e&&Q(i)&&i.isInline())n.set(i.__key,0,"element");else if((t||e)&&i===null&&Q(s)&&s.isInline()&&!s.canInsertTextAfter()){const l=s.getNextSibling();Te(l)&&n.set(l.__key,0,"text")}}}function jF(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),o=n.is(e);WN(n,r,o),WN(e,!r,o),o&&e.set(n.key,n.offset,n.type);const i=Dt();if(i.isComposing()&&i._compositionKey!==n.key&&Ae(t)){const s=t.anchor,l=t.focus;n.set(s.key,s.offset,s.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function ZF(n,e,t,r,o,i){if(n===null||t===null||!$y(o,n,t))return null;const s=VN(n,e,Ae(i)?i.anchor:null,o);if(s===null)return null;const l=VN(t,r,Ae(i)?i.focus:null,o);if(l===null)return null;if(s.type==="element"&&l.type==="element"){const a=Ku(n),c=Ku(t);if(xt(a)&&xt(c))return null}return jF(s,l,i),[s,l]}function GF(n,e,t,r,o,i){const s=Ca(),l=new gu(Ri(n,e,o),Ri(t,r,i),0,"");return l.dirty=!0,s._selection=l,l}function gBe(){const n=Ri("root",0,"element"),e=Ri("root",0,"element");return new gu(n,e,0,"")}function JF(){return new Sy(new Set)}function Hx(n,e,t,r){const o=t._window;if(o===null)return null;const i=r||o.event,s=i?i.type:void 0,l=s==="selectionchange",a=!rk&&(l||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let c,d,h,f;if(Ae(n)&&!a)return n.clone();if(e===null)return null;if(c=e.anchorNode,d=e.focusNode,h=e.anchorOffset,f=e.focusOffset,(l||s===void 0)&&Ae(n)&&!$y(t,c,d))return n.clone();const g=ZF(c,h,d,f,t,n);if(g===null)return null;const[p,m]=g;return new gu(p,m,Ae(n)?n.format:0,Ae(n)?n.style:"")}function dt(){return Ca()._selection}function dp(){return Dt()._editorState._selection}function e0(n,e,t,r=1){const o=n.anchor,i=n.focus,s=o.getNode(),l=i.getNode();if(!e.is(s)&&!e.is(l))return;const a=e.__key;if(n.isCollapsed()){const c=o.offset;if(t<=c&&r>0||t<c&&r<0){const d=Math.max(0,c+r);o.set(a,d,"element"),i.set(a,d,"element"),KN(n)}}else{const c=n.isBackward(),d=c?i:o,h=d.getNode(),f=c?o:i,g=f.getNode();if(e.is(h)){const p=d.offset;(t<=p&&r>0||t<p&&r<0)&&d.set(a,Math.max(0,p+r),"element")}if(e.is(g)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}}KN(n)}function KN(n){const e=n.anchor,t=e.offset,r=n.focus,o=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!Q(i))return;const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(Te(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text"),r.set(c.__key,d,"text")}return}if(Q(i)){const l=i.getChildrenSize(),a=t>=l,c=a?i.getChildAtIndex(l-1):i.getChildAtIndex(t);if(Te(c)){let d=0;a&&(d=c.getTextContentSize()),e.set(c.__key,d,"text")}}if(Q(s)){const l=s.getChildrenSize(),a=o>=l,c=a?s.getChildAtIndex(l-1):s.getChildAtIndex(o);if(Te(c)){let d=0;a&&(d=c.getTextContentSize()),r.set(c.__key,d,"text")}}}function t0(n,e,t,r,o){let i=null,s=0,l=null;r!==null?(i=r.__key,Te(r)?(s=r.getTextContentSize(),l="text"):Q(r)&&(s=r.getChildrenSize(),l="element")):o!==null&&(i=o.__key,Te(o)?l="text":Q(o)&&(l="element")),i!==null&&l!==null?n.set(i,s,l):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function UN(n,e,t,r,o){n.type==="text"?n.set(t,n.offset+(e?0:o),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function YF(n,e,t,r,o){try{n.setBaseAndExtent(e,t,r,o)}catch{}}function pBe(n,e,t,r,o,i,s){const l=r.anchorNode,a=r.focusNode,c=r.anchorOffset,d=r.focusOffset,h=document.activeElement;if(o.has(nBe)&&h!==i||h!==null&&cP(h))return;if(!Ae(e))return void(n!==null&&$y(t,l,a)&&r.removeAllRanges());const f=e.anchor,g=e.focus,p=f.key,m=g.key,_=lu(t,p),C=lu(t,m),y=f.offset,v=g.offset,k=e.format,x=e.style,b=e.isCollapsed();let T=_,w=C,S=!1;if(f.type==="text"){T=Rd(_);const F=f.getNode();S=F.getFormat()!==k||F.getStyle()!==x}else Ae(n)&&n.anchor.type==="text"&&(S=!0);var N,$,O,M,A;if(g.type==="text"&&(w=Rd(C)),T!==null&&w!==null&&(b&&(n===null||S||Ae(n)&&(n.format!==k||n.style!==x))&&(N=k,$=x,O=y,M=p,A=performance.now(),BF=[N,$,O,M,A]),c!==y||d!==v||l!==T||a!==w||r.type==="Range"&&b||(h!==null&&i.contains(h)||o.has(iBe)||i.focus({preventScroll:!0}),f.type==="element"))){if(YF(r,T,y,w,v),!o.has(rBe)&&e.isCollapsed()&&i!==null&&i===document.activeElement){const F=Ae(e)&&e.anchor.type==="element"?T.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(F!==null){let P;if(F instanceof Text){const z=document.createRange();z.selectNode(F),P=z.getBoundingClientRect()}else P=F.getBoundingClientRect();(function(z,I,L){const U=_P(L),W=Qx(U);if(U===null||W===null)return;let{top:H,bottom:fe}=I,G=0,ae=0,R=L;for(;R!==null;){const J=R===U.body;if(J)G=0,ae=Co(z).innerHeight;else{const Z=R.getBoundingClientRect();G=Z.top,ae=Z.bottom}let B=0;if(H<G?B=-(G-H):fe>ae&&(B=fe-ae),B!==0)if(J)W.scrollBy(0,B);else{const Z=R.scrollTop;R.scrollTop+=B;const Ee=R.scrollTop-Z;H-=Ee,fe-=Ee}if(J)break;R=gp(R)}})(t,P,i)}}gk=!0}}function F2(n){let e=n;n.isCollapsed()||e.removeText();const t=dt();Ae(t)&&(e=t),Ae(e)||le(161);const r=e.anchor;let o=r.getNode(),i=r.offset;for(;!bl(o);){const s=o;if([o,i]=mBe(o,i),s.is(o))break}return i}function mBe(n,e){const t=n.getParent();if(!t){const o=Vl();return zi().append(o),o.select(),[zi(),0]}if(Te(n)){const o=n.splitText(e);if(o.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,o[0].getIndexWithinParent()+i]}if(!Q(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const o=new gu(Ri(n.__key,e,"element"),Ri(n.__key,e,"element"),0,""),i=n.insertNewAfter(o);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}function HN(n,e,t,r,o="decorators-and-blocks"){if(e==="move"&&r==="character"&&!n.isCollapsed()){const[d,h]=t===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return h.set(d.key,d.offset,d.type),!0}const i=fu(n.focus,t?"previous":"next"),s=r==="lineboundary",l=e==="move";let a=i,c=o==="decorators-and-blocks";if(!GBe(a)){for(const d of a){c=!1;const{origin:h}=d;if(!xt(h)||h.isIsolated()||(a=d,!s||!h.isInline()))break}if(c)for(const d of yP(i).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Fs(d))d.origin.isInline()||(a=d);else{if(Q(d.origin))continue;xt(d.origin)&&!d.origin.isInline()&&(a=d)}break}}if(a===i)return!1;if(l&&!s&&xt(a.origin)&&a.origin.isKeyboardSelectable()){const d=JF();return d.add(a.origin.getKey()),vo(d),!0}return a=Si(a),l&&Tg(n.anchor,a),Tg(n.focus,a),c||!s}let an=null,En=null,Er=!1,P2=!1,J1=0;const qN={characterData:!0,childList:!0,subtree:!0};function fp(){return Er||an!==null&&an._readOnly}function Un(){Er&&le(13)}function XF(){J1>99&&le(14)}function Ca(){return an===null&&le(195,QF()),an}function Dt(){return En===null&&le(196,QF()),En}function QF(){let n=0;const e=new Set,t=Bd.version;if(typeof window<"u")for(const o of document.querySelectorAll("[contenteditable]")){const i=Ay(o);if(jx(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function jN(n,e,t){const r=e.__type,o=lP(n,r);let i=t.get(r);i===void 0&&(i=Array.from(o.transforms),t.set(r,i));const s=i.length;for(let l=0;l<s&&(i[l](e),e.isAttached());l++);}function ZN(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function eP(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const o of r)t.add(o)}function tP(n,e){const t=n.type,r=e.get(t);r===void 0&&le(17,t);const o=r.klass;n.type!==o.getType()&&le(18,o.name);const i=o.importJSON(n),s=n.children;if(Q(i)&&Array.isArray(s))for(let l=0;l<s.length;l++){const a=tP(s[l],e);i.append(a)}return i}function GN(n,e,t){const r=an,o=Er,i=En;an=e,Er=!0,En=n;try{return t()}finally{an=r,Er=o,En=i}}function xs(n,e){const t=n._pendingEditorState,r=n._rootElement,o=n._headless||r===null;if(t===null)return;const i=n._editorState,s=i._selection,l=t._selection,a=n._dirtyType!==0,c=an,d=Er,h=En,f=n._updating,g=n._observer;let p=null;if(n._pendingEditorState=null,n._editorState=t,!o&&a&&g!==null){En=n,an=t,Er=!1,n._updating=!0;try{const b=n._dirtyType,T=n._dirtyElements,w=n._dirtyLeaves;g.disconnect(),p=DIe(i,t,n,b,T,w)}catch(b){if(b instanceof Error&&n._onError(b),P2)throw b;return sP(n,null,r,t),SF(n),n._dirtyType=2,P2=!0,xs(n,i),void(P2=!1)}finally{g.observe(r,qN),n._updating=f,an=c,Er=d,En=h}}t._readOnly||(t._readOnly=!0);const m=n._dirtyLeaves,_=n._dirtyElements,C=n._normalizedNodes,y=n._updateTags,v=n._deferred;a&&(n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(b,T){const w=b._decorators;let S=b._pendingDecorators||w;const N=T._nodeMap;let $;for($ in S)N.has($)||(S===w&&(S=fP(b)),delete S[$])}(n,t);const k=o?null:qs(Co(n));if(n._editable&&k!==null&&(a||l===null||l.dirty||!l.is(s))&&r!==null&&!y.has(oBe)){En=n,an=t;try{if(g!==null&&g.disconnect(),a||l===null||l.dirty){const b=n._blockCursorElement;b!==null&&vk(b,n,r),pBe(s,l,n,k,y,r)}(function(b,T,w){let S=b._blockCursorElement;if(Ae(w)&&w.isCollapsed()&&w.anchor.type==="element"&&T.contains(document.activeElement)){const N=w.anchor,$=N.getNode(),O=N.offset;let M=!1,A=null;if(O===$.getChildrenSize())B2($.getChildAtIndex(O-1))&&(M=!0);else{const F=$.getChildAtIndex(O);if(F!==null&&B2(F)){const P=F.getPreviousSibling();(P===null||B2(P))&&(M=!0,A=b.getElementByKey(F.__key))}}if(M){const F=b.getElementByKey($.__key);return S===null&&(b._blockCursorElement=S=function(P){const z=P.theme,I=document.createElement("div");I.contentEditable="false",I.setAttribute("data-lexical-cursor","true");let L=z.blockCursor;if(L!==void 0){if(typeof L=="string"){const U=vF(L);L=z.blockCursor=U}L!==void 0&&I.classList.add(...L)}return I}(b._config)),T.style.caretColor="transparent",void(A===null?F.appendChild(S):F.insertBefore(S,A))}}S!==null&&vk(S,b,T)})(n,r,l)}finally{g!==null&&g.observe(r,qN),En=h,an=c}}p!==null&&function(b,T,w,S,N){const $=Array.from(b._listeners.mutation),O=$.length;for(let M=0;M<O;M++){const[A,F]=$[M];for(const P of F){const z=T.get(P);z!==void 0&&A(z,{dirtyLeaves:S,prevEditorState:N,updateTags:w})}}}(n,p,y,m,i),Ae(l)||l===null||s!==null&&s.is(l)||n.dispatchCommand(AF,void 0);const x=n._pendingDecorators;x!==null&&(n._decorators=x,n._pendingDecorators=null,Eh("decorator",n,!0,x)),function(b,T,w){const S=e9(T),N=e9(w);S!==N&&Eh("textcontent",b,!0,N)}(n,e||i,t),Eh("update",n,!0,{dirtyElements:_,dirtyLeaves:m,editorState:t,mutatedNodes:p,normalizedNodes:C,prevEditorState:e||i,tags:y}),function(b,T){if(b._deferred=[],T.length!==0){const w=b._updating;b._updating=!0;try{for(let S=0;S<T.length;S++)T[S]()}finally{b._updating=w}}}(n,v),function(b){const T=b._updates;if(T.length!==0){const w=T.shift();if(w){const[S,N]=w;wy(b,S,N)}}}(n)}function Eh(n,e,t,...r){const o=e._updating;e._updating=t;try{const i=Array.from(e._listeners[n]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{e._updating=o}}function JN(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const o=t.shift();if(o){const[i,s]=o,l=n._pendingEditorState;let a;s!==void 0&&(a=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete&&(l===null&&le(191),l._flushSync=!0),a&&n._deferred.push(a),eP(n,s.tag)),l==null?wy(n,i,s):i()}}return r}function wy(n,e,t){const r=n._updateTags;let o,i=!1,s=!1;t!==void 0&&(o=t.onUpdate,eP(n,t.tag),i=t.skipTransforms||!1,s=t.discrete||!1),o&&n._deferred.push(o);const l=n._editorState;let a=n._pendingEditorState,c=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=rP(a||l),c=!0),a._flushSync=s;const d=an,h=Er,f=En,g=n._updating;an=a,Er=!1,n._updating=!0,En=n;const p=n._headless||n.getRootElement()===null;qx(null);try{c&&(p?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=function(y,v){const k=y.getEditorState()._selection,x=qs(Co(y));return Ae(k)||k==null?Hx(k,x,y,v):k.clone()}(n,t&&t.event||null));const _=n._compositionKey;e(),i=JN(n,i),function(y,v){const k=v.getEditorState()._selection,x=y._selection;if(Ae(x)){const b=x.anchor,T=x.focus;let w;if(b.type==="text"&&(w=b.getNode(),w.selectionTransform(k,x)),T.type==="text"){const S=T.getNode();w!==S&&S.selectionTransform(k,x)}}}(a,n),n._dirtyType!==0&&(i?function(y,v){const k=v._dirtyLeaves,x=y._nodeMap;for(const b of k){const T=x.get(b);Te(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&kN(T)}}(a,n):function(y,v){const k=v._dirtyLeaves,x=v._dirtyElements,b=y._nodeMap,T=El(),w=new Map;let S=k,N=S.size,$=x,O=$.size;for(;N>0||O>0;){if(N>0){v._dirtyLeaves=new Set;for(const M of S){const A=b.get(M);Te(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&kN(A),A!==void 0&&ZN(A,T)&&jN(v,A,w),k.add(M)}if(S=v._dirtyLeaves,N=S.size,N>0){J1++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,$.delete("root")&&$.set("root",!0);for(const M of $){const A=M[0],F=M[1];if(x.set(A,F),!F)continue;const P=b.get(A);P!==void 0&&ZN(P,T)&&jN(v,P,w)}S=v._dirtyLeaves,N=S.size,$=v._dirtyElements,O=$.size,J1++}v._dirtyLeaves=k,v._dirtyElements=x}(a,n),JN(n),function(y,v,k,x){const b=y._nodeMap,T=v._nodeMap,w=[];for(const[S]of x){const N=T.get(S);N!==void 0&&(N.isAttached()||(Q(N)&&bF(N,S,b,T,w,x),b.has(S)||x.delete(S),w.push(S)))}for(const S of w)T.delete(S);for(const S of k){const N=T.get(S);N===void 0||N.isAttached()||(b.has(S)||k.delete(S),T.delete(S))}}(l,a,n._dirtyLeaves,n._dirtyElements)),_!==n._compositionKey&&(a._flushSync=!0);const C=a._selection;if(Ae(C)){const y=a._nodeMap,v=C.anchor.key,k=C.focus.key;y.get(v)!==void 0&&y.get(k)!==void 0||le(19)}else Ux(C)&&C._nodes.size===0&&(a._selection=null)}catch(_){return _ instanceof Error&&n._onError(_),n._pendingEditorState=l,n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void xs(n)}finally{an=d,Er=h,En=f,n._updating=g,J1=0}n._dirtyType!==0||n._deferred.length>0||function(_,C){const y=C.getEditorState()._selection,v=_._selection;if(v!==null){if(v.dirty||!v.is(y))return!0}else if(y!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,xs(n)):c&&CBe(()=>{xs(n)}):(a._flushSync=!1,c&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Ur(n,e,t){En===n&&t===void 0?e():wy(n,e,t)}class Nh{constructor(e,t,r){E(this,"element");E(this,"before");E(this,"after");this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new Nh(this.element,e,this.after)}withAfter(e){return new Nh(this.element,this.before,e)}withElement(e){return this.element===e?this:new Nh(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&le(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&le(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&le(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(bg||Id||Cg);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,o=this.before,i=document.createElement("br");if(r.insertBefore(i,o),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,o){if(r===this.element){const a=this.getFirstChildOffset();return[e,Math.min(a+e.getChildrenSize(),Math.max(a,o))]}const i=YN(t,r);i.push(o);const s=YN(t,this.element);let l=e.getIndexWithinParent();for(let a=0;a<s.length;a++){const c=i[a],d=s[a];if(c===void 0||c<d)break;if(c>d){l+=1;break}}return[e.getParentOrThrow(),l]}}function YN(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=r.parentNode){let o=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)o++;t.push(o)}return r!==n&&le(225),t.reverse()}class hp extends Ls{constructor(t){super(t);E(this,"__first");E(this,"__last");E(this,"__size");E(this,"__format");E(this,"__style");E(this,"__indent");E(this,"__dir");E(this,"__textFormat");E(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size),this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return kIe[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=Dt()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(Te(r)&&t.push(r),Q(r)){const o=r.getAllTextNodes();t.push(...o)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;Q(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;Q(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),o=r.length;if(t>=o){const s=r[o-1];return Q(s)&&s.getLastDescendant()||s||null}const i=r[t];return Q(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:cn(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&le(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:cn(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&le(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let o,i;if(t<r/2){for(o=this.getFirstChild(),i=0;o!==null&&i<=t;){if(i===t)return o;o=o.getNextSibling(),i++}return null}for(o=this.getLastChild(),i=r-1;o!==null&&i>=t;){if(i===t)return o;o=o.getPreviousSibling(),i--}return null}getTextContent(){let t="";const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContent(),Q(s)&&i!==o-1&&!s.isInline()&&(t+=ia)}return t}getTextContentSize(){let t=0;const r=this.getChildren(),o=r.length;for(let i=0;i<o;i++){const s=r[i];t+=s.getTextContentSize(),Q(s)&&i!==o-1&&!s.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(t!==""){const r=gN[t];return(this.getFormat()&r)!==0}return!1}hasTextFormat(t){const r=cr[t];return(this.getTextFormat()&r)!==0}getFormatFlags(t,r){return n0(this.getLatest().__textFormat,t,r)}getTextStyle(){return this.getLatest().__textStyle}select(t,r){Un();const o=dt();let i=t,s=r;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(t===0&&r===0){const c=this.getFirstChild();if(Te(c)||Q(c))return c.select(0,0)}else if(!(t!==void 0&&t!==l||r!==void 0&&r!==l)){const c=this.getLastChild();if(Te(c)||Q(c))return c.select()}}i===void 0&&(i=l),s===void 0&&(s=l);const a=this.__key;return Ae(o)?(o.anchor.set(a,i,"element"),o.focus.set(a,s,"element"),o.dirty=!0,o):GF(a,i,a,s,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(r=>r.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?gN[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const r=this.getWritable();return r.__textFormat=t,r}setTextStyle(t){const r=this.getWritable();return r.__textStyle=t,r}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,o){Q_(this)&&le(324,this.__key,this.__type);const i=this.getChildrenSize(),s=this.getWritable();t+r<=i||le(226,String(t),String(r),String(i));const l=s.__key,a=[],c=[],d=this.getChildAtIndex(t+r);let h=null,f=i-r+o.length;if(t!==0)if(t===i)h=this.getLastChild();else{const p=this.getChildAtIndex(t);p!==null&&(h=p.getPreviousSibling())}if(r>0){let p=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<r;m++){p===null&&le(100);const _=p.getNextSibling(),C=p.__key;hc(p.getWritable()),c.push(C),p=_}}let g=h;for(const p of o){g!==null&&p.is(g)&&(h=g=g.getPreviousSibling());const m=p.getWritable();m.__parent===l&&f--,hc(m);const _=p.__key;if(g===null)s.__first=_,m.__prev=null;else{const C=g.getWritable();C.__next=_,m.__prev=C.__key}p.__key===l&&le(76),m.__parent=l,a.push(_),g=p}if(t+r===i)g!==null&&(g.getWritable().__next=null,s.__last=g.__key);else if(d!==null){const p=d.getWritable();if(g!==null){const m=g.getWritable();p.__prev=g.__key,m.__next=d.__key}else p.__prev=null}if(s.__size=f,c.length){const p=dt();if(Ae(p)){const m=new Set(c),_=new Set(a),{anchor:C,focus:y}=p;XN(C,m,_)&&t0(C,C.getNode(),this,h,d),XN(y,m,_)&&t0(y,y.getNode(),this,h,d),f!==0||this.canBeEmpty()||ba(this)||this.remove()}}return s}getDOMSlot(t){return new Nh(t)}exportDOM(t){const{element:r}=super.exportDOM(t);if(eo(r)){const o=this.getIndent();o>0&&(r.style.paddingInlineStart=40*o+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),o=this.getTextStyle();return r!==0&&(t.textFormat=r),o!==""&&(t.textStyle=o),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,r){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,r,o){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,r){const o=this.getDOMSlot(t);let i=o.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const l=r.getElementByKey(s.getKey());l!==null&&(i==null?(o.insertChild(l),i=l):i!==l&&o.replaceChild(l,i),i=i.nextSibling)}}}function Q(n){return n instanceof hp}function XN(n,e,t){let r=n.getNode();for(;r;){const o=r.__key;if(e.has(o)&&!t.has(o))return!0;r=r.getParent()}return!1}class nP extends Ls{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function xt(n){return n instanceof nP}class Ty extends hp{constructor(){super("root");E(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Ty}getTopLevelElementOrThrow(){le(51)}getTextContent(){const t=this.__cachedText;return!fp()&&Dt()._dirtyType!==0||t===null?super.getTextContent():t}remove(){le(52)}replace(t){le(53)}insertBefore(t){le(54)}insertAfter(t){le(55)}updateDOM(t,r){return!1}splice(t,r,o){for(const i of o)Q(i)||xt(i)||le(282);return super.splice(t,r,o)}static importJSON(t){return zi().updateFromJSON(t)}collapseAtStart(){return!0}}function Ln(n){return n instanceof Ty}function rP(n){return new Ey(new Map(n._nodeMap))}function oP(){return new Ey(new Map([["root",new Ty]]))}function iP(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&le(130,t.name),Q(n)){const r=e.children;Array.isArray(r)||le(59,t.name);const o=n.getChildren();for(let i=0;i<o.length;i++){const s=iP(o[i]);r.push(s)}}return e}class Ey{constructor(e,t){E(this,"_nodeMap");E(this,"_selection");E(this,"_flushSync");E(this,"_readOnly");this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return GN(t&&t.editor||null,this,e)}clone(e){const t=new Ey(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return GN(null,this,()=>({root:iP(zi())}))}}class Ny extends hp{static getType(){return"paragraph"}static clone(e){return new Ny(e.__key)}createDOM(e){const t=document.createElement("p"),r=id(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:_Be,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(eo(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();r&&(t.style.textAlign=r)}return{element:t}}static importJSON(e){return Vl().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){const r=Vl();r.setTextFormat(e.format),r.setTextStyle(e.style);const o=this.getDirection();return r.setDirection(o),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||Te(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function _Be(n){const e=Vl();return n.style&&(e.setFormat(n.style.textAlign),PBe(n,e)),{node:e}}function Vl(){return rf(new Ny)}function yBe(n){return n instanceof Ny}function sP(n,e,t,r){const o=n._keyToDOMMap;o.clear(),n._editorState=oP(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",o.set("root",t))}class Bd{constructor(e,t,r,o,i,s,l,a){E(this,"_headless");E(this,"_parentEditor");E(this,"_rootElement");E(this,"_editorState");E(this,"_pendingEditorState");E(this,"_compositionKey");E(this,"_deferred");E(this,"_keyToDOMMap");E(this,"_updates");E(this,"_updating");E(this,"_listeners");E(this,"_commands");E(this,"_nodes");E(this,"_decorators");E(this,"_pendingDecorators");E(this,"_config");E(this,"_dirtyType");E(this,"_cloneNotNeeded");E(this,"_dirtyLeaves");E(this,"_dirtyElements");E(this,"_normalizedNodes");E(this,"_updateTags");E(this,"_observer");E(this,"_key");E(this,"_onError");E(this,"_htmlConversions");E(this,"_window");E(this,"_editable");E(this,"_blockCursorElement");E(this,"_createEditorArgs");this._createEditorArgs=a,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=xBe(),this._onError=i,this._htmlConversions=s,this._editable=l,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&le(35);const o=this._commands;o.has(e)||o.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(e);i===void 0&&le(36,String(e));const s=i[r];return s.add(t),()=>{s.delete(t),i.every(l=>l.size===0)&&o.delete(e)}}registerMutationListener(e,t,r){const o=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let s=i.get(t);s===void 0&&(s=new Set,i.set(t,s)),s.add(o);const l=r&&r.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(t,o),()=>{s.delete(o),s.size===0&&i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&le(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,o=a9(r).get(t.getType());if(!o)return;const i=new Map;for(const s of o.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),o=[r],i=r.replaceWithKlass;if(i!=null){const s=this.registerNodeTransformToKlass(i,t);o.push(s)}return function(s,l){const a=a9(s.getEditorState()),c=[];for(const d of l){const h=a.get(d);h&&c.push(h)}c.length!==0&&s.update(()=>{for(const d of c)for(const h of d.keys()){const f=cn(h);f&&f.markDirty()}},s._pendingEditorState===null?{tag:M2}:void 0)}(this,o.map(s=>s.klass.getType())),()=>{o.forEach(s=>s.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return ve(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=id(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=e,sP(this,t,e,o),t!==null&&(this._config.disableEvents||eBe(t),r!=null&&t.classList.remove(...r)),e!==null){const i=Qx(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,SF(this),this._updateTags.add(M2),xs(this),this._config.disableEvents||function(l,a){const c=l.ownerDocument;hk.set(l,c);const d=X_.get(c)??0;d<1&&c.addEventListener("selectionchange",KF),X_.set(c,d+1),l.__lexicalEditor=a;const h=WF(l);for(let f=0;f<fk.length;f++){const[g,p]=fk[f],m=typeof p=="function"?_=>{MN(_)||(AN(_),(a.isEditable()||g==="click")&&p(_,a))}:_=>{if(MN(_))return;AN(_);const C=a.isEditable();switch(g){case"cut":return C&&ve(a,FF,_);case"copy":return ve(a,LF,_);case"paste":return C&&ve(a,MF,_);case"dragstart":return C&&ve(a,ZIe,_);case"dragover":return C&&ve(a,GIe,_);case"dragend":return C&&ve(a,JIe,_);case"focus":return C&&ve(a,YIe,_);case"blur":return C&&ve(a,XIe,_);case"drop":return C&&ve(a,jIe,_)}};l.addEventListener(g,m),h.push(()=>{l.removeEventListener(g,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add(M2),xs(this);Eh("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&le(38);let r=e;r._readOnly&&(r=rP(e),r._selection=e._selection?e._selection.clone():null),xF(this);const o=this._pendingEditorState,i=this._updateTags,s=t!==void 0?t.tag:null;o===null||o.isEmpty()||(s!=null&&i.add(s),xs(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||xs(this)}parseEditorState(e,t){return function(r,o,i){const s=oP(),l=an,a=Er,c=En,d=o._dirtyElements,h=o._dirtyLeaves,f=o._cloneNotNeeded,g=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,an=s,Er=!1,En=o,qx(null);try{const p=o._nodes;tP(r.root,p),i&&i(),s._readOnly=!0}catch(p){p instanceof Error&&o._onError(p)}finally{o._dirtyElements=d,o._dirtyLeaves=h,o._cloneNotNeeded=f,o._dirtyType=g,an=l,Er=a,En=c}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return xs(this),this.getEditorState().read(e,{editor:this})}update(e,t){(function(r,o,i){r._updating?r._updates.push([o,i]):wy(r,o,i)})(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Ur(this,()=>{const o=dt(),i=zi();o!==null?o.dirty||vo(o.clone()):i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),TBe("focus"),EBe(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=qs(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Eh("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}E(Bd,"version");Bd.version="0.38.1+prod.esm";let _k=null;function qx(n){_k=n}let vBe=1;function lP(n,e){const t=aP(n,e);return t===void 0&&le(30,e),t}function aP(n,e){return n._nodes.get(e)}const CBe=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function QN(n){return xt(Zx(n))}function cP(n){const e=document.activeElement;if(!eo(e))return!1;const t=e.nodeName;return xt(Zx(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&Ay(e)==null)}function $y(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!cP(e)&&uP(e)===n}catch{return!1}}function jx(n){return n instanceof Bd}function uP(n){let e=n;for(;e!=null;){const t=Ay(e);if(jx(t))return t;e=gp(e)}return null}function Ay(n){return n?n.__lexicalEditor:null}function fc(n){return qF(n)||n.isToken()}function hl(n){return fc(n)||n.isSegmented()}function el(n){return pp(n)&&n.nodeType===3}function bBe(n){return pp(n)&&n.nodeType===9}function Rd(n){let e=n;for(;e!=null;){if(el(e))return e;e=e.firstChild}return null}function n0(n,e,t){const r=cr[e];if(t!==null&&(n&r)===(t&r))return n;let o=n^r;return e==="subscript"?o&=~cr.superscript:e==="superscript"?o&=~cr.subscript:e==="lowercase"?(o&=~cr.uppercase,o&=~cr.capitalize):e==="uppercase"?(o&=~cr.lowercase,o&=~cr.capitalize):e==="capitalize"&&(o&=~cr.lowercase,o&=~cr.uppercase),o}function kBe(n,e){const t=function(){const s=_k;return _k=null,s}();if((e=e||t&&t.__key)!=null)return void(n.__key=e);Un(),XF();const r=Dt(),o=Ca(),i=""+vBe++;o._nodeMap.set(i,n),Q(n)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,n.__key=i}function hc(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),o=n.getPreviousSibling(),i=n.getNextSibling(),s=i!==null?i.__key:null,l=o!==null?o.__key:null,a=o!==null?o.getWritable():null,c=i!==null?i.getWritable():null;o===null&&(r.__first=s),i===null&&(r.__last=l),a!==null&&(a.__next=s),c!==null&&(c.__prev=l),t.__prev=null,t.__next=null,t.__parent=null,r.__size--}}function r0(n){XF(),Q_(n)&&le(323,n.__key,n.__type);const e=n.getLatest(),t=e.__parent,r=Ca(),o=Dt(),i=r._nodeMap,s=o._dirtyElements;t!==null&&function(a,c,d){let h=a;for(;h!==null;){if(d.has(h))return;const f=c.get(h);if(f===void 0)break;d.set(h,!1),h=f.__parent}}(t,i,s);const l=e.__key;o._dirtyType=1,Q(n)?s.set(l,!0):o._dirtyLeaves.add(l)}function bn(n){Un();const e=Dt(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=cn(t);r!==null&&r.getWritable()}if(n!==null){const r=cn(n);r!==null&&r.getWritable()}}}function El(){return fp()?null:Dt()._compositionKey}function cn(n,e){const t=(e||Ca())._nodeMap.get(n);return t===void 0?null:t}function dP(n,e){const t=My(n,Dt());return t!==void 0?cn(t,e):null}function My(n,e){return n[`__lexicalKey_${e._key}`]}function Zx(n,e){let t=n;for(;t!=null;){const r=dP(t,e);if(r!==null)return r;t=gp(t)}return null}function fP(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function e9(n){return n.read(()=>zi().getTextContent())}function zi(){return hP(Ca())}function hP(n){return n._nodeMap.get("root")}function vo(n){Un();const e=Ca();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Ku(n){const e=Dt(),t=function(r,o){let i=r;for(;i!=null;){const s=My(i,o);if(s!==void 0)return s;i=gp(i)}return null}(n,e);return t===null?n===e.getRootElement()?cn("root"):null:cn(t)}function gP(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function Gx(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function xBe(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function pP(n){return el(n)?n.nodeValue:null}function Jx(n,e,t){const r=qs(Co(e));if(r===null)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(o!==null){let l=pP(o);const a=Zx(o);if(l!==null&&Te(a)){if(l===Cy&&t){const c=t.length;l=t,i=c,s=c}l!==null&&Yx(a,l,i,s,n)}}}function Yx(n,e,t,r,o){let i=n;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let l=e;(s||o)&&e[e.length-1]===Cy&&(l=e.slice(0,-1));const a=i.getTextContent();if(o||l!==a){if(l===""){if(bn(null),Cg||Id||bg)i.remove();else{const m=Dt();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const c=i.getParent(),d=dp(),h=i.getTextContentSize(),f=El(),g=i.getKey();if(i.isToken()||f!==null&&g===f&&!s||Ae(d)&&(c!==null&&!c.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===n.__key&&d.anchor.offset===0&&!i.canInsertTextBefore()&&!s||d.focus.key===n.__key&&d.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=dt();if(!Ae(p)||t===null||r===null)return void t9(i,l,p);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=hn(i.getTextContent());i.replace(m),i=m}t9(i,l,p)}}}function t9(n,e,t){if(n.setTextContent(e),Ae(t)){const r=n.getKey();for(const o of["anchor","focus"]){const i=t[o];i.type==="text"&&i.key===r&&(i.offset=Wl(n,i.offset,"clamp"))}}}function l1(n,e,t){const r=e[t]||!1;return r==="any"||r===n[t]}function SBe(n,e){return l1(n,e,"altKey")&&l1(n,e,"ctrlKey")&&l1(n,e,"shiftKey")&&l1(n,e,"metaKey")}function it(n,e,t){return SBe(n,t)&&n.key.toLowerCase()===e.toLowerCase()}const ds={ctrlKey:!Mo,metaKey:Mo},n9={altKey:Mo,ctrlKey:!Mo};function r9(n){return n.key==="Backspace"}function o9(n){return it(n,"a",ds)}function id(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const o=n[e];if(typeof o=="string"){const i=vF(o);return t[e]=i,i}return o}function Xx(n,e,t,r,o){if(t.size===0)return;const i=r.__type,s=r.__key,l=e.get(i);l===void 0&&le(33,i);const a=l.klass;let c=n.get(a);c===void 0&&(c=new Map,n.set(a,c));const d=c.get(s),h=d==="destroyed"&&o==="created";(d===void 0||h)&&c.set(s,h?"updated":o)}function i9(n,e,t){const r=n.getParent();let o=t,i=n;return r!==null&&(e&&t===0?(o=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?o-1:o)}function wBe(n,e){const t=n.offset;if(n.type==="element")return i9(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const o=e?r.getPreviousSibling():r.getNextSibling();return o===null?i9(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):o}}return null}function mP(n){const e=Co(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function ve(n,e,t){return function(r,o,i){const s=Gx(r);for(let l=4;l>=0;l--)for(let a=0;a<s.length;a++){const c=s[a],d=c._commands.get(o);if(d!==void 0){const h=d[l];if(h!==void 0){const f=Array.from(h),g=f.length;let p=!1;if(Ur(c,()=>{for(let m=0;m<g;m++)if(f[m](i,r))return void(p=!0)}),p)return p}}}return!1}(n,e,t)}function Oy(n){return!Ln(n)&&!n.isLastChild()&&!n.isInline()}function lu(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&le(75,e),t}function gp(n){const e=n.assignedSlot||n.parentElement;return MBe(e)?e.host:e}function _P(n){return bBe(n)?n:eo(n)?n.ownerDocument:null}function TBe(n){Un(),Dt()._updateTags.add(n)}function EBe(n){Un(),Dt()._deferred.push(n)}function yk(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Qx(n){const e=_P(n);return e?e.defaultView:null}function Co(n){const e=n._window;return e===null&&le(78),e}function NBe(n){let e=n.getParentOrThrow();for(;e!==null;){if(ba(e))return e;e=e.getParentOrThrow()}return e}function ba(n){return Ln(n)||Q(n)&&n.isShadowRoot()}function rf(n){const e=Dt(),t=n.getType(),r=aP(e,t);r===void 0&&le(200,n.constructor.name,t);const{replace:o,replaceWithKlass:i}=r;if(o!==null){const s=o(n),l=s.constructor;return i!==null?s instanceof i||le(201,i.name,i.getType(),l.name,l.getType(),n.constructor.name,t):s instanceof n.constructor&&l!==n.constructor||le(202,l.name,l.getType(),n.constructor.name,t),s.__key===n.__key&&le(203,n.constructor.name,t,l.name,l.getType()),s}return n}function I2(n,e){!Ln(n.getParent())||Q(e)||xt(e)||le(99)}function $Be(n){const e=cn(n);return e===null&&le(63,n),e}function B2(n){return(xt(n)||Q(n)&&!n.canBeEmpty())&&!n.isInline()}function vk(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function qs(n){return ei?(n||window).getSelection():null}function ABe(n){const e=Qx(n);return e?e.getSelection():null}function eo(n){return pp(n)&&n.nodeType===1}function pp(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function MBe(n){return pp(n)&&n.nodeType===11}function OBe(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function s9(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function bl(n){if(xt(n)&&!n.isInline())return!0;if(!Q(n)||ba(n))return!1;const e=n.getFirstChild(),t=e===null||Th(e)||Te(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function DBe(){return Dt()}const l9=new WeakMap,LBe=new Map;function a9(n){if(!n._readOnly&&n.isEmpty())return LBe;n._readOnly||le(192);let e=l9.get(n);return e||(e=function(t){const r=new Map;for(const[o,i]of t._nodeMap){const s=i.__type;let l=r.get(s);l||(l=new Map,r.set(s,l)),l.set(o,i)}return r}(n),l9.set(n,e)),e}function FBe(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function PBe(n,e){const t=parseInt(n.style.paddingInlineStart,10)||0,r=Math.round(t/40);e.setIndent(r)}function IBe(n){return n.__lexicalUnmanaged===!0}function Vf(n,e){return function(t,r){return Object.prototype.hasOwnProperty.call(t,r)}(n,e)&&n[e]!==Ls[e]}function BBe(n){const e=pN in n.prototype?n.prototype[pN]():void 0,t=function(s){if(!(s===Ls||s.prototype instanceof Ls)){let l="<unknown>",a="<unknown>";try{l=s.getType()}catch{}try{Bd.version&&(a=JSON.parse(Bd.version))}catch{}le(290,s.name,l,a)}return s===nP||s===hp||s===Ls}(n),r=!t&&Vf(n,"getType")?n.getType():void 0;let o,i=r;if(e)if(r)o=e[r];else for(const[s,l]of Object.entries(e))i=s,o=l;if(!t&&i&&(Vf(n,"getType")||(n.getType=()=>i),Vf(n,"clone")||(n.clone=s=>(qx(s),new n)),Vf(n,"importJSON")||(n.importJSON=o&&o.$importJSON||(s=>new n().updateFromJSON(s))),!Vf(n,"importDOM")&&o)){const{importDOM:s}=o;s&&(n.importDOM=()=>s)}return{ownNodeConfig:o,ownNodeType:i}}const Y1=(n,e)=>{let t=n;for(;t!=null&&!Ln(t);){if(e(t))return t;t=t.getParent()}return null},RBe={next:"previous",previous:"next"};class e5{constructor(e){E(this,"origin");this.origin=e}[Symbol.iterator](){return vP({hasNext:zd,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return tr(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return tr(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){const o=r===this.direction?t:Array.from(t).reverse();let i=this;const s=this.getParentAtCaret(),l=new Map;for(let a=i.getAdjacentCaret();a!==null&&l.size<e;a=a.getAdjacentCaret()){const c=a.origin.getWritable();l.set(c.getKey(),c)}for(const a of o){if(l.size>0){const c=i.getNodeAtCaret();if(c){if(l.delete(c.getKey()),l.delete(a.getKey()),!(c.is(a)||i.origin.is(a))){const d=a.getParent();d&&d.is(s)&&a.remove(),c.replace(a)}}else c===null&&le(263,Array.from(l).join(" "))}else i.insert(a);i=tr(a,this.direction)}for(const a of l.values())a.remove();return this}}class wg extends e5{constructor(){super(...arguments);E(this,"type","child")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:sa(t,this.direction)}getParentCaret(t="root"){return tr(t5(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=of(this.direction);return tr(this.getNodeAtCaret(),t)||sa(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof wg&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const zBe={root:Ln,shadowRoot:ba};function of(n){return RBe[n]}function t5(n,e="root"){return zBe[e](n)?null:n}class au extends e5{constructor(){super(...arguments);E(this,"type","sibling")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:tr(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Q(this.origin)?sa(this.origin,this.direction):null}getParentCaret(t="root"){return tr(t5(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=of(this.direction);return tr(this.getNodeAtCaret(),t)||sa(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof au&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof au||t instanceof cu)&&this.direction===t.direction&&this.origin.is(t.origin)}}class cu extends e5{constructor(t,r){super(t);E(this,"type","text");E(this,"offset");this.offset=r}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:uu(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return tr(t5(this.getParentAtCaret(),t),this.direction)}getFlipped(){return uu(this.origin,of(this.direction),this.offset)}isSamePointCaret(t){return t instanceof cu&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof au||t instanceof cu)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return tr(this.origin,this.direction)}}function gc(n){return n instanceof cu}function zd(n){return n instanceof au}function Fs(n){return n instanceof wg}const VBe={next:class extends cu{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends cu{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},WBe={next:class extends au{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends au{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},KBe={next:class extends wg{constructor(){super(...arguments);E(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends wg{constructor(){super(...arguments);E(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function tr(n,e){return n?new WBe[e](n):null}function uu(n,e,t){return n?new VBe[e](n,Wl(n,t)):null}function Wl(n,e,t="error"){const r=n.getTextContentSize();let o=e==="next"?r:e==="previous"?0:e;return(o<0||o>r)&&(t!=="clamp"&&_F(284,String(e),String(r),n.getKey()),o=o<0?0:r),o}function c9(n,e){return new HBe(n,e)}function sa(n,e){return Q(n)?new KBe[e](n):null}function UBe(n){return n&&n.getChildCaret()||n}function n5(n){return n&&UBe(n.getAdjacentCaret())}class r5{constructor(e,t,r){E(this,"type","node-caret-range");E(this,"direction");E(this,"anchor");E(this,"focus");this.anchor=e,this.focus=t,this.direction=r}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new r5(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=o=>{const i=this[o].getLatest();return gc(i)?function(s,l){const{direction:a,origin:c}=s,d=Wl(c,l==="focus"?of(a):a);return c9(s,d-s.offset)}(i,o):null},t=e("anchor"),r=e("focus");if(t&&r){const{caret:o}=t,{caret:i}=r;if(o.isSameNodeCaret(i))return[c9(o,i.offset-o.offset),null]}return[t,r]}iterNodeCarets(e="root"){const t=gc(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),o=gc(r),i=s=>s.isSameNodeCaret(r)?null:n5(s)||s.getParentCaret(e);return vP({hasNext:s=>s!==null&&!(o&&r.isSameNodeCaret(s)),initial:t.isSameNodeCaret(r)?null:i(t),map:s=>s,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class HBe{constructor(e,t){E(this,"type","slice");E(this,"caret");E(this,"distance");this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[r,o]=this.getSliceIndices(),i=e.getTextContent();return uu(e.setTextContent(i.slice(0,r)+i.slice(o)),t,r)}}function yP(n){return du(n,tr(zi(),n.direction))}function qBe(n){return du(n,n)}function du(n,e){return n.direction!==e.direction&&le(265),new r5(n,e,n.direction)}function vP(n){const{initial:e,hasNext:t,step:r,map:o}=n;let i=e;return{[Symbol.iterator](){return this},next(){if(!t(i))return{done:!0,value:void 0};const s={done:!1,value:o(i)};return i=r(i),s}}}function CP(n,e){const t=X1(n.origin,e.origin);switch(t===null&&le(275,n.origin.getKey(),e.origin.getKey()),t.type){case"same":{const r=n.type==="text",o=e.type==="text";return r&&o?function(i,s){return Math.sign(i-s)}(n.offset,e.offset):n.type===e.type?0:r?-1:o?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return bP(t)}}function bP(n){const{a:e,b:t}=n,r=e.__key,o=t.__key;let i=e,s=t;for(;i&&s;i=i.getNextSibling(),s=s.getNextSibling()){if(i.__key===o)return-1;if(s.__key===r)return 1}return i===null?1:-1}function a1(n,e){return e.is(n)}function u9(n){return Q(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function X1(n,e){if(n.is(e))return{commonAncestor:n,type:"same"};const t=new Map;for(let[r,o]=u9(n);r;o=r,r=r.getParent())t.set(r,o);for(let[r,o]=u9(e);r;o=r,r=r.getParent()){const i=t.get(r);if(i!==void 0)return i===null?(a1(n,r)||le(276),{commonAncestor:r,type:"ancestor"}):o===null?(a1(e,r)||le(277),{commonAncestor:r,type:"descendant"}):((Q(i)||a1(n,i))&&(Q(o)||a1(e,o))&&r.is(i.getParent())&&r.is(o.getParent())||le(278),{a:i,b:o,commonAncestor:r,type:"branch"})}return null}function fu(n,e){const{type:t,key:r,offset:o}=n,i=$Be(n.key);return t==="text"?(Te(i)||le(266,i.getType(),r),uu(i,e,o)):(Q(i)||le(267,i.getType(),r),JBe(i,n.offset,e))}function Tg(n,e){const{origin:t,direction:r}=e,o=r==="next";gc(e)?n.set(t.getKey(),e.offset,"text"):zd(e)?Te(t)?n.set(t.getKey(),Wl(t,r),"text"):n.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent()+(o?1:0),"element"):(Fs(e)&&Q(t)||le(268),n.set(t.getKey(),o?0:t.getChildrenSize(),"element"))}function jBe(n){const e=dt(),t=Ae(e)?e:gBe();return Q1(t,n),vo(t),t}function Q1(n,e){Tg(n.anchor,e.anchor),Tg(n.focus,e.focus)}function d9(n){const{anchor:e,focus:t}=n,r=fu(e,"next"),o=fu(t,"next"),i=CP(r,o)<=0?"next":"previous";return du(Vd(r,i),Vd(o,i))}function o5(n){const{direction:e,origin:t}=n,r=tr(t,of(e)).getNodeAtCaret();return r?tr(r,e):sa(t.getParentOrThrow(),e)}function f9(n,e="root"){const t=[n];for(let r=Fs(n)?n.getParentCaret(e):n.getSiblingCaret();r!==null;r=r.getParentCaret(e))t.push(o5(r));return t}function R2(n){return!!n&&n.origin.isAttached()}function ZBe(n,e="removeEmptySlices"){if(n.isCollapsed())return n;const t="root",r="next";let o=e;const i=kP(n,r),s=f9(i.anchor,t),l=f9(i.focus.getFlipped(),t),a=new Set,c=[];for(const p of i.iterNodeCarets(t))if(Fs(p))a.add(p.origin.getKey());else if(zd(p)){const{origin:m}=p;Q(m)&&!a.has(m.getKey())||c.push(m)}for(const p of c)p.remove();for(const p of i.getTextSlices()){if(!p)continue;const{origin:m}=p.caret,_=m.getTextContentSize(),C=o5(tr(m,r)),y=m.getMode();if(Math.abs(p.distance)===_&&o==="removeEmptySlices"||y==="token"&&p.distance!==0)C.remove();else if(p.distance!==0){o="removeEmptySlices";let v=p.removeTextSlice();const k=p.caret.origin;if(y==="segmented"){const x=v.origin,b=hn(x.getTextContent()).setStyle(x.getStyle()).setFormat(x.getFormat());C.replaceOrInsert(b),v=uu(b,r,v.offset)}k.is(s[0].origin)&&(s[0]=v),k.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,h;for(const p of s)if(R2(p)){d=Si(p);break}for(const p of l)if(R2(p)){h=Si(p);break}const f=function(p,m,_){if(!p||!m)return null;const C=p.getParentAtCaret(),y=m.getParentAtCaret();if(!C||!y)return null;const v=C.getParents().reverse();v.push(C);const k=y.getParents().reverse();k.push(y);const x=Math.min(v.length,k.length);let b;for(b=0;b<x&&v[b]===k[b];b++);const T=(N,$)=>{let O;for(let M=b;M<N.length;M++){const A=N[M];if(ba(A))return;!O&&$(A)&&(O=A)}return O},w=T(v,bl),S=w&&T(k,N=>_.has(N.getKey())&&bl(N));return w&&S?[w,S]:null}(d,h,a);if(f){const[p,m]=f;sa(p,"previous").splice(0,m.getChildren()),m.remove()}const g=[d,h,...s,...l].find(R2);if(g)return qBe(Vd(Si(g),n.direction));le(269,JSON.stringify(s.map(p=>p.origin.__key)))}function Si(n){const e=function(o){let i=o;for(;Fs(i);){const s=n5(i);if(!Fs(s))break;i=s}return i}(n.getLatest()),{direction:t}=e;if(Te(e.origin))return gc(e)?e:uu(e.origin,t,t);const r=e.getAdjacentCaret();return zd(r)&&Te(r.origin)?uu(r.origin,t,of(t)):e}function GBe(n){return gc(n)&&n.offset!==Wl(n.origin,n.direction)}function Vd(n,e){return n.direction===e?n:n.getFlipped()}function kP(n,e){return n.direction===e?n:du(Vd(n.focus,e),Vd(n.anchor,e))}function JBe(n,e,t){let r=sa(n,"next");for(let o=0;o<e;o++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return Vd(r,t)}const YBe=new Set(["http:","https:","mailto:","sms:","tel:"]);class sf extends hp{constructor(t="",r={},o){super(o);E(this,"__url");E(this,"__target");E(this,"__rel");E(this,"__title");const{target:i=null,rel:s=null,title:l=null}=r;this.__url=t,this.__target=i,this.__rel=s,this.__title=l}static getType(){return"link"}static clone(t){return new sf(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}createDOM(t){const r=document.createElement("a");return this.updateLinkDOM(null,r,t),Vs(r,t.theme.link),r}updateLinkDOM(t,r,o){if(p$(r)){t&&t.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,l=this[s];t&&t[s]===l||(l?r[i]=l:r.removeAttribute(i))}}}updateDOM(t,r,o){return this.updateLinkDOM(t,r,o),!1}static importDOM(){return{a:t=>({conversion:XBe,priority:1})}}static importJSON(t){return o0().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setURL(t.url).setRel(t.rel||null).setTarget(t.target||null).setTitle(t.title||null)}sanitizeUrl(t){t=g9(t);try{const r=new URL(g9(t));if(!YBe.has(r.protocol))return"about:blank"}catch{return t}return t}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(t){const r=this.getWritable();return r.__url=t,r}getTarget(){return this.getLatest().__target}setTarget(t){const r=this.getWritable();return r.__target=t,r}getRel(){return this.getLatest().__rel}setRel(t){const r=this.getWritable();return r.__rel=t,r}getTitle(){return this.getLatest().__title}setTitle(t){const r=this.getWritable();return r.__title=t,r}insertNewAfter(t,r=!0){const o=o0(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(o,r),o}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,r,o){if(!Ae(r))return!1;const i=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function XBe(n){let e=null;if(p$(n)){const t=n.textContent;(t!==null&&t!==""||n.children.length>0)&&(e=o0(n.getAttribute("href")||"",{rel:n.getAttribute("rel"),target:n.getAttribute("target"),title:n.getAttribute("title")}))}return{node:e}}function o0(n="",e){return rf(new sf(n,e))}function QBe(n){return n instanceof sf}class Dy extends sf{constructor(t="",r={},o){super(t,r,o);E(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(t){return new Dy(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(t){const r=this.getWritable();return r.__isUnlinked=t,r}createDOM(t){return this.__isUnlinked?document.createElement("span"):super.createDOM(t)}updateDOM(t,r,o){return super.updateDOM(t,r,o)||t.__isUnlinked!==this.__isUnlinked}static importJSON(t){return h9().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setIsUnlinked(t.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(t,r=!0){const o=this.getParentOrThrow().insertNewAfter(t,r);if(Q(o)){const i=h9(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return o.append(i),i}return null}}function h9(n="",e){return rf(new Dy(n,e))}function eRe(n){return n instanceof Dy}const tRe=/^\+?[0-9\s()-]{5,}$/;function g9(n){return n.match(/^[a-z][a-z0-9+.-]*:/i)||n.match(/^[/#.]/)?n:n.includes("@")?`mailto:${n}`:tRe.test(n)?`tel:${n}`:`https://${n}`}function nRe(n,e){const t={};for(const r of n){const o=e(r);o&&(t[o]?t[o].push(r):t[o]=[r])}return t}function rRe(n){const e=nRe(n,t=>t.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const oRe=/^\s{0,3}$/;function p9(n){if(!GM(n))return!1;const e=n.getFirstChild();return e==null||n.getChildrenSize()===1&&be(e)&&oRe.test(e.getTextContent())}function iRe(n,e,t,r){for(const o of e){if(!o.export)continue;const i=o.export(n,s=>i0(s,t,r));if(i!=null)return i}return Y(n)?i0(n,t,r):yt(n)?n.getTextContent():null}function i0(n,e,t,r,o){const i=[],s=n.getChildren();r||(r=[]),o||(o=[]);e:for(const l of s){for(const a of t){if(!a.export)continue;const c=a.export(l,d=>i0(d,e,t,r,[...o,...r]),(d,h)=>m9(d,h,e,r,o));if(c!=null){i.push(c);continue e}}Xu(l)?i.push(`
92
+ `):be(l)?i.push(m9(l,l.getTextContent(),e,r,o)):Y(l)?i.push(i0(l,e,t,r,o)):yt(l)&&i.push(l.getTextContent())}return i.join("")}function m9(n,e,t,r,o){let i=n.getFormat()===0?e:function(f){return f.replace(/^\s+|\s+$/g,g=>[...g].map(p=>"&#"+p.codePointAt(0)+";").join(""))}(e);n.hasFormat("code")||(i=i.replace(/([*_`~\\])/g,"\\$1"));let s="",l="",a="";const c=_9(n,!0),d=_9(n,!1),h=new Set;for(const f of t){const g=f.format[0],p=f.tag;c1(n,g)&&!h.has(g)&&(h.add(g),c1(c,g)&&r.find(m=>m.tag===p)||(r.push({format:g,tag:p}),s+=p))}for(let f=0;f<r.length;f++){const g=c1(n,r[f].format),p=c1(d,r[f].format);if(g&&p)continue;const m=[...r];for(;m.length>f;){const _=m.pop();o&&_&&o.find(C=>C.tag===_.tag)||(_&&typeof _.tag=="string"&&(g?p||(a+=_.tag):l+=_.tag),r.pop())}break}return i=s+i+a,l+i}function _9(n,e){let t=e?n.getPreviousSibling():n.getNextSibling();if(!t){const r=n.getParentOrThrow();r.isInline()&&(t=e?r.getPreviousSibling():r.getNextSibling())}for(;t;){if(Y(t)){if(!t.isInline())break;const r=e?t.getLastDescendant():t.getFirstDescendant();if(be(r))return r;t=e?t.getPreviousSibling():t.getNextSibling()}if(be(t))return t;if(!Y(t))return null}return null}function c1(n,e){return be(n)&&n.hasFormat(e)}const sRe=/^(\s*)(\d{1,})\.\s/,lRe=/^(\s*)[-*+]\s/,aRe=/^(#{1,6})\s/,cRe=/^>\s/,uRe=/^[ \t]*```([\w-]+)?/,dRe=/[ \t]*```$/,Yf=GMe("mdListMarker",{parse:n=>typeof n=="string"&&/^[-*+]$/.test(n)?n:"-"}),xP=n=>(e,t,r,o)=>{const i=n(r);i.append(...t),e.replace(i),o||i.select(0,0)},SP=n=>(e,t,r,o)=>{const i=e.getPreviousSibling(),s=e.getNextSibling(),l=so(n==="check"?r[3]==="x":void 0),a=r[0].trim()[0],c=n!=="bullet"&&n!=="check"||a!==Yf.parse(a)?void 0:a;if(gt(s)&&s.getListType()===n){c&&zv(s,Yf,c);const h=s.getFirstChild();h!==null?h.insertBefore(l):s.append(l),e.remove()}else if(gt(i)&&i.getListType()===n)c&&zv(i,Yf,c),i.append(l),e.remove();else{const h=Cr(n,n==="number"?Number(r[2]):void 0);c&&zv(h,Yf,c),h.append(l),e.replace(h)}l.append(...t),o||l.select(0,0);const d=function(h){const f=h.match(/\t/g),g=h.match(/ /g);let p=0;return f&&(p+=f.length),g&&(p+=Math.floor(g.length/4)),p}(r[1]);d&&l.setIndent(d)},i5=(n,e,t)=>{const r=[],o=n.getChildren();let i=0;for(const s of o)if(ur(s)){if(s.getChildrenSize()===1){const h=s.getFirstChild();if(gt(h)){r.push(i5(h,e,t+1));continue}}const l=" ".repeat(4*t),a=n.getListType(),c=YA(n,Yf),d=a==="number"?`${n.getStart()+i}. `:a==="check"?`${c} [${s.getChecked()?"x":" "}] `:c+" ";r.push(l+d+e(s)),i++}return r.join(`
93
+ `)},fRe={dependencies:[kx],export:(n,e)=>{if(!fFe(n))return null;const t=Number(n.getTag().slice(1));return"#".repeat(t)+" "+e(n)},regExp:aRe,replace:xP(n=>{const e="h"+n[1].length;return Vu(e)}),type:"element"},hRe={dependencies:[Cx],export:(n,e)=>{if(!a4(n))return null;const t=e(n).split(`
94
+ `),r=[];for(const o of t)r.push("> "+o);return r.join(`
95
+ `)},regExp:cRe,replace:(n,e,t,r)=>{if(r){const i=n.getPreviousSibling();if(a4(i))return i.splice(i.getChildrenSize(),0,[wd(),...e]),void n.remove()}const o=bx();o.append(...e),n.replace(o),r||o.select(0,0)},type:"element"},gRe={dependencies:[Rx],export:n=>{if(!fF(n))return null;const e=n.getTextContent();return"```"+(n.getLanguage()||"")+(e?`
96
+ `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:dRe},regExpStart:uRe,replace:(n,e,t,r,o,i)=>{let s,l;if(!e&&o){if(o.length===1)r?(s=Ss(),l=t[1]+o[0]):(s=Ss(t[1]),l=o[0].startsWith(" ")?o[0].slice(1):o[0]);else{if(s=Ss(t[1]),o[0].trim().length===0)for(;o.length>0&&!o[0].length;)o.shift();else o[0]=o[0].startsWith(" ")?o[0].slice(1):o[0];for(;o.length>0&&!o[o.length-1].length;)o.pop();l=o.join(`
97
+ `)}const a=Pt(l);s.append(a),n.append(s)}else e&&xP(a=>Ss(a?a[1]:void 0))(n,e,t,i)},type:"multiline-element"},pRe={dependencies:[j0,q0],export:(n,e)=>gt(n)?i5(n,e,0):null,regExp:lRe,replace:SP("bullet"),type:"element"},mRe={dependencies:[j0,q0],export:(n,e)=>gt(n)?i5(n,e,0):null,regExp:sRe,replace:SP("number"),type:"element"},_Re={format:["code"],tag:"`",type:"text-format"},yRe={format:["highlight"],tag:"==",type:"text-format"},vRe={format:["bold","italic"],tag:"***",type:"text-format"},CRe={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},bRe={format:["bold"],tag:"**",type:"text-format"},kRe={format:["bold"],intraword:!1,tag:"__",type:"text-format"},xRe={format:["strikethrough"],tag:"~~",type:"text-format"},SRe={format:["italic"],tag:"*",type:"text-format"},wRe={format:["italic"],intraword:!1,tag:"_",type:"text-format"},TRe={dependencies:[sf],export:(n,e,t)=>{if(!QBe(n)||eRe(n))return null;const r=n.getTitle(),o=e(n);return r?`[${o}](${n.getURL()} "${r}")`:`[${o}](${n.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(n,e)=>{const[,t,r,o]=e,i=o0(r,{title:o}),s=t.split("[").length-1,l=t.split("]").length-1;let a=t,c="";if(s<l)return;if(s>l){const h=t.split("[");c="["+h[0],a=h.slice(1).join("[")}const d=Pt(a);return d.setFormat(n.getFormat()),i.append(d),n.replace(i),c&&i.insertBefore(Pt(c)),d},trigger:")",type:"text-match"},ERe=[fRe,hRe,pRe,mRe],NRe=[gRe],$Re=[_Re,vRe,CRe,bRe,kRe,yRe,SRe,wRe,xRe],ARe=[TRe],wP=[...ERe,...NRe,...$Re,...ARe];function MRe(n=wP,e,t=!1){return function(o,i=!1){const s=rRe(o),l=[...s.multilineElement,...s.element],a=!i,c=s.textFormat.filter(d=>d.format.length===1).sort((d,h)=>Number(d.format.includes("code"))-Number(h.format.includes("code")));return d=>{const h=[],f=(d||qo()).getChildren();for(let g=0;g<f.length;g++){const p=f[g],m=iRe(p,l,c,s.textMatch);m!=null&&h.push(a&&g>0&&!p9(p)&&!p9(f[g-1])?`
98
+ `.concat(m):m)}return h.join(`
99
+ `)}}(n,t)(e)}const ORe={class:"ao-rich-text-editor"},DRe={class:"ao-rich-text-editor__toolbar"},LRe={class:"ao-rich-text-editor__actions"},FRe=u.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel"],setup(n,{emit:e}){const t=n,r=e;u.ref(null);const o=u.ref(null);let i=null,s=!1;const l=u.ref(!1),a=u.ref(!1),c=u.ref(!1),d=u.ref(!1);function h(){!o.value||s||(i=S8e({namespace:"AoRichTextEditor",theme:{paragraph:"ao-rich-text-editor__paragraph",text:{bold:"ao-rich-text-editor__text-bold",italic:"ao-rich-text-editor__text-italic",underline:"ao-rich-text-editor__text-underline",strikethrough:"ao-rich-text-editor__text-strikethrough"},list:{ul:"ao-rich-text-editor__list-ul",ol:"ao-rich-text-editor__list-ol",listitem:"ao-rich-text-editor__list-item"}},onError:N=>{console.error("Lexical error:",N)}}),i.setRootElement(o.value),s=!0,i.registerUpdateListener(({editorState:N})=>{N.read(()=>{m()})}),f(t.initialMarkdown||""))}function f(N){i&&i.update(()=>{const $=Uo();if($.clear(),!N||!N.trim()){const M=kn();$.append(M);return}const O=N.split(`
100
+ `);for(const M of O){const A=M.trim();if(!A){const z=kn();$.append(z);continue}if(A.startsWith("- ")||A.startsWith("* ")){const z=A.substring(2),I=g(z),L=$.getLastChild();if(L&&gt(L)&&L.getListType()==="bullet")L.append(I);else{const U=Cr("bullet");U.append(I),$.append(U)}continue}const F=A.match(/^(\d+)\.\s+(.*)$/);if(F){const z=F[2],I=g(z),L=$.getLastChild();if(L&&gt(L)&&L.getListType()==="number")L.append(I);else{const U=Cr("number");U.append(I),$.append(U)}continue}const P=p(A);$.append(P)}})}function g(N){const $=so(),O=p(N);return $.append(O),$}function p(N){const $=kn();if(!/(\*\*|~~|__|\*)/.test(N)){const P=qn(N);return $.append(P),$}let M=N;const A=[];M=M.replace(/\*\*\*(.+?)\*\*\*/g,(P,z)=>{const I=`\0BI${A.length}\0`;return A.push({placeholder:I,format:"bold-italic",text:z}),I}),M=M.replace(/\*\*(.+?)\*\*/g,(P,z)=>{const I=`\0B${A.length}\0`;return A.push({placeholder:I,format:"bold",text:z}),I}),M=M.replace(/\*(.+?)\*/g,(P,z)=>{const I=`\0I${A.length}\0`;return A.push({placeholder:I,format:"italic",text:z}),I}),M=M.replace(/~~(.+?)~~/g,(P,z)=>{const I=`\0S${A.length}\0`;return A.push({placeholder:I,format:"strikethrough",text:z}),I}),M=M.replace(/__(.+?)__/g,(P,z)=>{const I=`\0U${A.length}\0`;return A.push({placeholder:I,format:"underline",text:z}),I});const F=M.split(/(\u0000\w+\d+\u0000)/);for(const P of F){const z=P.match(/\u0000(\w)(\w+)\u0000/);if(z){const I=z[1],L=parseInt(z[2],10),U=A[L];if(U){const W=qn(U.text);switch(I){case"B":U.format==="bold-italic"?(W.toggleFormat("bold"),W.toggleFormat("italic")):W.toggleFormat("bold");break;case"I":W.toggleFormat("italic");break;case"S":W.toggleFormat("strikethrough");break;case"U":W.toggleFormat("underline");break}$.append(W)}}else if(P){const I=qn(P);$.append(I)}}return $}function m(){i&&i.getEditorState().read(()=>{const N=Ve();Ce(N)&&(l.value=N.hasFormat("bold"),a.value=N.hasFormat("italic"),c.value=N.hasFormat("underline"),d.value=N.hasFormat("strikethrough"))})}function _(){i==null||i.dispatchCommand(Do,"bold")}function C(){i==null||i.dispatchCommand(Do,"italic")}function y(){i==null||i.dispatchCommand(Do,"underline")}function v(){i==null||i.dispatchCommand(Do,"strikethrough")}function k(){i&&i.update(()=>{const N=Ve();if(Ce(N)){const $=Cr("bullet"),O=so(),M=kn();O.append(M),$.append(O),N.insertNodes([$])}})}function x(){i&&i.update(()=>{const N=Ve();if(Ce(N)){const $=Cr("number"),O=so(),M=kn();O.append(M),$.append(O),N.insertNodes([$])}})}function b(){if(!i)return"";let N="";return i.getEditorState().read(()=>{N=MRe(wP)}),N}function T(){const N=b();r("save",N)}function w(){f(t.initialMarkdown||""),r("cancel")}function S(N){N.key==="Escape"&&w()}return u.watch(()=>t.initialMarkdown,N=>{i&&f(N||"")}),u.onMounted(()=>{u.nextTick(()=>{h()}),window.addEventListener("keydown",S)}),u.onBeforeUnmount(()=>{window.removeEventListener("keydown",S),i&&s&&(i.setRootElement(null),i=null,s=!1)}),(N,$)=>(u.openBlock(),u.createElementBlock("div",ORe,[u.createElementVNode("div",DRe,[u.createElementVNode("button",{type:"button",class:u.normalizeClass(["ao-rich-text-editor__toolbar-button",{"ao-rich-text-editor__toolbar-button--active":l.value}]),title:"Bold",onClick:_},[...$[0]||($[0]=[u.createElementVNode("strong",null,"B",-1)])],2),u.createElementVNode("button",{type:"button",class:u.normalizeClass(["ao-rich-text-editor__toolbar-button",{"ao-rich-text-editor__toolbar-button--active":a.value}]),title:"Italic",onClick:C},[...$[1]||($[1]=[u.createElementVNode("em",null,"I",-1)])],2),u.createElementVNode("button",{type:"button",class:u.normalizeClass(["ao-rich-text-editor__toolbar-button",{"ao-rich-text-editor__toolbar-button--active":c.value}]),title:"Underline",onClick:y},[...$[2]||($[2]=[u.createElementVNode("u",null,"U",-1)])],2),u.createElementVNode("button",{type:"button",class:u.normalizeClass(["ao-rich-text-editor__toolbar-button",{"ao-rich-text-editor__toolbar-button--active":d.value}]),title:"Strikethrough",onClick:v},[...$[3]||($[3]=[u.createElementVNode("s",null,"S",-1)])],2),$[4]||($[4]=u.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),u.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet List",onClick:k}," • "),u.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered List",onClick:x}," 1. ")]),u.createElementVNode("div",{ref_key:"editorRootRef",ref:o,class:"ao-rich-text-editor__content"},null,512),u.createElementVNode("div",LRe,[u.createVNode(Be,{variant:"ghost",label:"Cancel",onClick:w}),u.createVNode(Be,{variant:"solid",color:"primary",label:"Save",onClick:T})])]))}});const PRe={class:"ao-activity-details"},IRe={class:"ao-activity-details__main"},BRe={class:"ao-activity-details__header"},RRe={key:1,class:"ao-activity__category"},zRe={class:"ao-feed__activity-details__header"},VRe={key:0,class:"ao-field ao-feed__activity-details__project"},WRe={class:"ao-field__label"},KRe={key:1,class:"ao-field ao-feed__activity-details__project"},URe={class:"ao-field__label"},HRe={class:"ao-activity-details__content"},qRe={class:"ao-activity-details__tab-content"},jRe={class:"ao-fieldset"},ZRe={class:"ao-field__row"},GRe={class:"ao-activity-details__tab-content"},JRe={class:"ao-fieldset"},YRe={class:"ao-fieldset__body"},XRe={class:"ao-activity-details__tab-content"},QRe={key:0,class:"ao-fieldset"},eze={class:"ao-activity-details__aside"},tze={class:"ao-activity-details__close-button"},nze={key:0,class:"ao-activity-details__aside-section"},rze={class:"ao-field"},oze={class:"ao-field__label"},ize={class:"ao-activity-details__aside-section"},sze={class:"ao-field ao-field--multiselect"},lze={class:"assignee-inline"},aze={class:"ao-field__label"},cze={class:"ao-activity-details__aside-section"},uze={key:0,class:"ao-field__row"},dze={class:"ao-field"},fze={class:"ao-field__label"},hze=["readonly"],gze={class:"ao-activity-details__aside-section"},pze={class:"ao-field__row"},mze={class:"ao-field ao-field--inline"},_ze={class:"ao-field__label"},yze=["readonly"],vze={class:"ao-field__row"},Cze={class:"ao-field ao-field--inline"},bze={class:"ao-field__label"},kze={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},xze={class:"ao-activity-details__aside-section"},Sze={class:"ao-fieldset ao-activity-details__aside-section"},wze={class:"ao-fieldset__title"},Tze={class:"ao-fieldset__body"},Eze={class:"ao-field__row"},Nze={class:"ao-field ao-field--multiselect"},$ze={class:"ao-field__label"},Aze={class:"ao-field__row"},Mze={class:"ao-field ao-field--multiselect"},Oze={class:"ao-field__label"},s5=u.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(n,{emit:e}){const t=n,r=e,{t:o}=Gs(),i=u.ref("description"),s=u.computed(()=>{var B,Z;return[{label:o("activity.description.label")||"Description",value:"description"},{label:o("activity.tasks.title")||"Checklist",value:"checklist",count:((B=t.activity.tasks)==null?void 0:B.length)??0},{label:o("activity.comments.title")||"Commentaires",value:"comments",count:((Z=t.activity.comments)==null?void 0:Z.length)??0}]}),l=u.computed(()=>{var B;return t.isEditable===!0?!0:t.userId&&t.isEditable==="only-own"?t.userId===((B=t.activity.assignee)==null?void 0:B.id):!1}),a=u.ref(!1),c=B=>{r("update:activity",{id:t.activity.id,name:B})},d=u.computed({get(){return t.activity.description??""}}),h=()=>{l.value&&(a.value=!0)},f=B=>{r("update:activity",{id:t.activity.id,description:B||null}),a.value=!1},g=()=>{a.value=!1};u.watch(()=>t.activity.id,()=>{a.value=!1});const p=u.computed({get(){return t.activity.estimation??0},set(B){r("update:activity",{id:t.activity.id,estimation:B})}}),m=u.computed({get(){var Z;const B=(Z=t.timeTrackingData)==null?void 0:Z[t.activity.id];return(B==null?void 0:B.timeSpent)??0},set(){}}),_=u.computed(()=>{var Z;return((Z=t.activity.project)==null?void 0:Z.estimationUnit)==="days"?"d":"h"}),C=u.computed(()=>{var Z;const B=(Z=t.activity.project)==null?void 0:Z.estimationUnit;return f0(m.value,B)}),y=u.computed({get(){return t.activity.important??!1},set(B){r("update:activity",{id:t.activity.id,important:B})}});u.computed({get(){return t.activity.private??!1},set(B){r("update:activity",{id:t.activity.id,private:B})}});const v=u.computed({get(){return t.activity.deadline},set(B){r("update:activity",{id:t.activity.id,deadline:B})}});u.computed(()=>{var B;return(B=t.activityTypes)==null?void 0:B.map(Z=>({label:Z.name,value:Z.id}))}),u.computed({get(){var B;return(B=t.activity.type)==null?void 0:B.id},set(B){r("update:activity",{id:t.activity.id,typeId:B})}});const k=u.computed(()=>t.templateActivities.filter(B=>B.id!==t.activity.id).map(B=>({label:B.name,value:B.id}))),x=u.computed({get(){var B;return(B=t.activity.dependingOn)==null?void 0:B.map(Z=>Z.id)},set(B){B&&r("update:activity",{id:t.activity.id,dependingOn:B})}}),b=u.computed(()=>k.value.map(B=>{var Z;return{...B,disabled:(Z=t.activity.blocking)==null?void 0:Z.some(Ee=>Ee.id===B.value)}})),T=u.computed({get(){var B;return(B=t.activity.blocking)==null?void 0:B.map(Z=>Z.id)},set(B){B&&r("update:activity",{id:t.activity.id,blocking:B})}}),w=u.computed(()=>k.value.map(B=>{var Z;return{...B,disabled:(Z=t.activity.dependingOn)==null?void 0:Z.some(Ee=>Ee.id===B.value)}})),S=B=>{r("addSubtask",B)},N=B=>{r("updateSubtask",B)},$=B=>{r("deleteSubtask",B)};function O(){t.userId?F.value=[t.userId]:console.error("Failed assigning to self: userId is missing")}function M(B){F.value=[B]}const A=u.computed(()=>{var Z;const B=new Map;return(Z=t.users)==null||Z.forEach(Ee=>{B.has(Ee.id)||B.set(Ee.id,Ee)}),Array.from(B.values()).map(Ee=>({label:`${Ee.firstName} ${Ee.lastName}`,value:Ee.id,avatar:Ee.avatarUrl}))}),F=u.computed({get(){var B,Z;return(B=t.activity.assignee)!=null&&B.id?[(Z=t.activity.assignee)==null?void 0:Z.id]:[]},set(B){r("update:activity",{id:t.activity.id,assigneeId:B[0]??null})}}),P=B=>{r("addFiles",{activityId:t.activity.id,files:B})},z=B=>{r("removeFile",{activityId:t.activity.id,file:B})},I=u.computed(()=>t.projects.map(B=>({value:B.id,label:B.name}))),L=u.computed(()=>{var Z,Ee,zt;const B=(zt=(Ee=(Z=t.activity)==null?void 0:Z.project)==null?void 0:Ee.phases)==null?void 0:zt.reduce((Le,Ge)=>[...Le,...Ge.milestones],[]);return B==null?void 0:B.map(Le=>({value:Le.id,label:Le.name}))}),U=B=>{t.activity&&r("update:activity",{id:t.activity.id,projectId:B})},W=B=>{t.activity&&r("update:activity",{id:t.activity.id,milestoneId:B})},H=u.computed(()=>{var B;return(B=t.statuses)==null?void 0:B.map(Z=>({value:Z.id,label:Z.name}))}),fe=B=>{r("update:activity",{id:t.activity.id,statusId:B})},G=B=>{r("addComment",{...B,activityId:t.activity.id})},ae=B=>{r("updateComment",B)},R=B=>{r("removeComment",B)};u.computed(()=>{var B,Z;return((B=t.activity.createdBy)==null?void 0:B.firstName)&&((Z=t.activity.createdBy)==null?void 0:Z.lastName)&&`${t.activity.createdBy.firstName} ${t.activity.createdBy.lastName}`});function J(){const B=window.location.origin,Z=t.activity.slug,Ee=`${B}/activity-feed/slug/${Z}`;navigator.clipboard.writeText(Ee).then(()=>{console.log(`Link copied to clipboard: ${Ee}`),r("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),r("toast","clipboard.copy.error","error")})}return(B,Z)=>(u.openBlock(),u.createBlock(g0,{onClose:Z[8]||(Z[8]=Ee=>B.$emit("close"))},{default:u.withCtx(()=>{var Ee,zt,Le;return[u.createElementVNode("div",PRe,[u.createElementVNode("div",IRe,[u.createElementVNode("div",BRe,[n.activity.slug?(u.openBlock(),u.createBlock(Ah,{key:0,label:n.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:J},null,8,["label"])):u.createCommentVNode("",!0),n.breadcrumbs?(u.openBlock(),u.createElementBlock("div",RRe,u.toDisplayString(n.breadcrumbs),1)):u.createCommentVNode("",!0),u.createVNode(nr,{title:n.activity.name||"",level:4,"is-editable":l.value,"onUpdate:title":c},null,8,["title","is-editable"]),u.createElementVNode("div",zRe,[I.value?(u.openBlock(),u.createElementBlock("label",VRe,[u.createElementVNode("span",WRe,u.toDisplayString(B.$t("activity.project.label")),1),u.createVNode(Br,{options:I.value,value:(Ee=n.activity.project)==null?void 0:Ee.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:U},null,8,["options","value","disabled","caret"])])):u.createCommentVNode("",!0),L.value?(u.openBlock(),u.createElementBlock("label",KRe,[u.createElementVNode("span",URe,u.toDisplayString(B.$t("activity.milestone.label")),1),u.createVNode(Br,{options:L.value,value:(zt=n.activity.milestone)==null?void 0:zt.id,searchable:!0,disabled:!l.value,caret:l.value,onChange:W},null,8,["options","value","disabled","caret"])])):u.createCommentVNode("",!0)]),u.renderSlot(B.$slots,"header")]),u.createElementVNode("div",HRe,[u.createVNode(Lg,{modelValue:i.value,"onUpdate:modelValue":Z[0]||(Z[0]=Ge=>i.value=Ge),tabs:s.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),u.withDirectives(u.createElementVNode("div",qRe,[u.createElementVNode("fieldset",jRe,[u.createElementVNode("div",ZRe,[u.createVNode(Mj,{attachments:n.activity.attachments,"is-editable":n.attachmentEnabled&&l.value&&n.isTemplate!==!0&&!!n.userId,onAdd:P,onRemove:z},{default:u.withCtx(()=>[a.value?(u.openBlock(),u.createBlock(FRe,{key:1,"initial-markdown":d.value,onSave:f,onCancel:g},null,8,["initial-markdown"])):(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":l.value}]),onClick:h},[u.createVNode(W9e,{content:d.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[u.vShow,i.value==="description"]]),u.withDirectives(u.createElementVNode("div",GRe,[u.createElementVNode("fieldset",JRe,[u.createElementVNode("div",YRe,[u.createVNode(Cj,{class:"ao-activity-details__tasks ao-field__row",tasks:n.activity.tasks||[],"activity-id":n.activity.id,users:n.users,"is-checkable":n.isTaskCheckable,"is-editable":l.value,"is-template":n.isTemplate,onAdd:S,onUpdate:N,onDelete:$},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[u.vShow,i.value==="checklist"]]),u.withDirectives(u.createElementVNode("div",XRe,[n.isTemplate!==!0&&n.userId?(u.openBlock(),u.createElementBlock("div",QRe,[u.createVNode(qj,{comments:n.activity.comments,users:n.users,"user-id":n.userId,onCreateComment:G,onUpdateComment:ae,onRemoveComment:R},null,8,["comments","users","user-id"])])):u.createCommentVNode("",!0)],512),[[u.vShow,i.value==="comments"]])])]),u.createElementVNode("div",eze,[u.createElementVNode("div",tze,[u.createVNode(pt,{name:"CloseRounded",onClick:Z[1]||(Z[1]=Ge=>B.$emit("close"))})]),H.value?(u.openBlock(),u.createElementBlock("div",nze,[u.createElementVNode("label",rze,[u.createElementVNode("span",oze,u.toDisplayString(B.$t("activity.status.label")),1),u.createVNode(Br,{class:"ao-activity-details__multiselect",options:H.value,value:(Le=n.activity.status)==null?void 0:Le.id,"can-clear":!1,"can-deselect":!1,disabled:!l.value,caret:l.value,onChange:fe},null,8,["options","value","disabled","caret"])])])):u.createCommentVNode("",!0),u.createElementVNode("div",ize,[u.createElementVNode("div",sze,[u.createElementVNode("div",lze,[u.createElementVNode("span",aze,u.toDisplayString(B.$t("activity.assignee.label")),1),u.createVNode(Be,{label:B.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:O},null,8,["label"])]),u.createVNode(Br,{modelValue:F.value,"onUpdate:modelValue":Z[2]||(Z[2]=Ge=>F.value=Ge),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:A.value,"close-on-select":!0,searchable:!0,placeholder:B.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!l.value,caret:l.value,onSelect:M},{tag:u.withCtx(({option:Ge,handleTagRemove:Xe})=>[u.createVNode(js,{"user-name":Ge.label,"avatar-url":Ge.avatar,"is-closable":!0,onClose:fr=>Xe(Ge,fr)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),u.createElementVNode("div",cze,[n.isTemplate!==!0&&n.userId?(u.openBlock(),u.createElementBlock("div",uze,[u.createElementVNode("label",dze,[u.createElementVNode("span",fze,u.toDisplayString(B.$t("activity.deadline.label")),1),u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":Z[3]||(Z[3]=Ge=>v.value=Ge),readonly:!l.value,class:"ao-field__input",type:"date"},null,8,hze),[[u.vModelText,v.value,void 0,{lazy:!0}]])])])):u.createCommentVNode("",!0)]),u.createElementVNode("div",gze,[u.createElementVNode("div",pze,[u.createElementVNode("label",mze,[u.createElementVNode("span",_ze,u.toDisplayString(B.$t("activity.estimation.label"))+" ("+u.toDisplayString(_.value)+")",1),u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":Z[4]||(Z[4]=Ge=>p.value=Ge),readonly:!l.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,yze),[[u.vModelText,p.value,void 0,{lazy:!0,number:!0}]])])]),u.createElementVNode("div",vze,[u.createElementVNode("label",Cze,[u.createElementVNode("span",bze,u.toDisplayString(B.$t("activity.timeSpent.label"))+" ("+u.toDisplayString(_.value)+")",1),u.createElementVNode("span",kze,u.toDisplayString(C.value),1)])])]),u.createElementVNode("div",xze,[u.createVNode(l6,{modelValue:y.value,"onUpdate:modelValue":Z[5]||(Z[5]=Ge=>y.value=Ge),modelModifiers:{lazy:!0},label:B.$t("activity.important.label"),disabled:!l.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),u.createElementVNode("fieldset",Sze,[u.createElementVNode("div",wze,[u.createVNode(pt,{name:"FlowsheetOutlineRounded"}),u.createVNode(nr,{level:4,title:B.$t("activity.dependencies.title")},null,8,["title"])]),u.createElementVNode("div",Tze,[u.createElementVNode("div",Eze,[u.createElementVNode("label",Nze,[u.createElementVNode("span",$ze,u.toDisplayString(B.$t("activity.dependingOn.label")),1),u.createVNode(Br,{modelValue:x.value,"onUpdate:modelValue":Z[6]||(Z[6]=Ge=>x.value=Ge),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:b.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])]),u.createElementVNode("div",Aze,[u.createElementVNode("label",Mze,[u.createElementVNode("span",Oze,u.toDisplayString(B.$t("activity.blocking.label")),1),u.createVNode(Br,{modelValue:T.value,"onUpdate:modelValue":Z[7]||(Z[7]=Ge=>T.value=Ge),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:w.value,disabled:!l.value,caret:l.value},null,8,["modelValue","options","disabled","caret"])])])])]),u.renderSlot(B.$slots,"default",{activity:n.activity})])])]}),_:3}))}});const Dze=u.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(n,{emit:e}){const t=n,r=e,o=u.toRef(t.rule.itemType||Tt.ACTIVITIES),i=u.computed({get(){return o.value},set(y){o.value=y,r("update:rule",{...t.rule,itemType:y,subItemId:void 0})}}),s=u.computed(()=>Object.values(Tt)),l=u.computed({get(){return t.rule.subItemId},set(y){r("update:rule",{...t.rule,subItemId:y,itemType:t.rule.itemType||i.value})}}),a=u.computed(()=>{var v;return!t.templateActivities||!t.templateMilestones||!t.templatePhases?null:(v={[Tt.ACTIVITIES]:t.templateActivities,[Tt.MILESTONES]:t.templateMilestones,[Tt.PHASES]:t.templatePhases}[o.value])==null?void 0:v.map(k=>({value:k.id,label:k.name}))}),c=u.toRef(t.rule.comparator),d=u.computed({get(){return c.value},set(y){r("update:rule",{...t.rule,comparator:y})}}),h=u.computed(()=>Object.values(x9)),f=u.toRef(t.rule.trigger),g=u.computed({get(){return f.value},set(y){r("update:rule",{...t.rule,trigger:y})}}),p=u.computed(()=>Object.values(S9)),m=u.computed({get(){return t.rule.duration},set(y){r("update:rule",{...t.rule,duration:y})}}),_=u.computed({get(){return t.rule.durationUnit},set(y){r("update:rule",{...t.rule,durationUnit:y})}}),C=u.computed(()=>Object.values(w9));return(y,v)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.tagName),{class:"ao-rule-line"},{default:u.withCtx(()=>[u.createVNode(u.unref(pl),{modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=k=>i.value=k),options:s.value},null,8,["modelValue","options"]),u.createVNode(u.unref(pl),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=k=>l.value=k),options:a.value},null,8,["modelValue","options"]),u.createVNode(u.unref(pl),{modelValue:g.value,"onUpdate:modelValue":v[2]||(v[2]=k=>g.value=k),options:p.value},null,8,["modelValue","options"]),u.createVNode(u.unref(pl),{modelValue:d.value,"onUpdate:modelValue":v[3]||(v[3]=k=>d.value=k),options:h.value},null,8,["modelValue","options"]),u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":v[4]||(v[4]=k=>m.value=k),type:"number",min:"0"},null,512),[[u.vModelText,m.value,void 0,{number:!0}]]),u.createVNode(u.unref(pl),{modelValue:_.value,"onUpdate:modelValue":v[5]||(v[5]=k=>_.value=k),options:C.value},null,8,["modelValue","options"]),u.createVNode(Be,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=k=>y.$emit("close"))})]),_:1}))}});const Lze={class:"ao-template-rules__body"},Fze={class:"ao-template-rules__list"},Pze=u.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(n,{emit:e}){const t=e,r=()=>{t("addRule")},o=i=>{t("removeRule",i)};return(i,s)=>(u.openBlock(),u.createBlock(g0,null,{header:u.withCtx(()=>[u.createVNode(nr,{title:i.$t("template.rules.title"),level:2},null,8,["title"])]),default:u.withCtx(()=>[u.createElementVNode("div",Lze,[u.createElementVNode("ul",Fze,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.rules,l=>(u.openBlock(),u.createBlock(Dze,{key:l.id,rule:l,"template-phases":n.templatePhases,"template-milestones":n.templateMilestones,"template-activities":n.templateActivities,class:"ao-template-rule",onClose:()=>o(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),u.createVNode(aa,{label:i.$t("template.rules.add"),"icon-name":"Add",onClick:r},null,8,["label"])])]),_:1}))}});function pc(n,e,t){const r=n.length,o=n.at(-1),i=o?Hn.LexoRank.parse(o.rank).genNext():Hn.LexoRank.middle();return{name:t(`template.defaultName.${e}`,{idx:r+1}),rank:i.format()}}const Ize={key:0,class:"ao-template-details"},Bze={class:"ao-template-details__body"},Rze={class:"ao-template-details__cols"},zze={class:"ao-template-details__col"},Vze={class:"ao-list__footer"},Wze={class:"ao-template-details__col"},Kze={class:"ao-template-details__col"},TP=u.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(n,{emit:e}){const{t}=Gs(),r=n,o=e,i=u.computed(()=>{var I;return(I=r.templates)==null?void 0:I.find(L=>L.id===r.templateId)}),s=u.ref(!1);u.watch(()=>[r.templateId,r.phaseId,r.milestoneId],()=>s.value=!1),u.watch(()=>{var I;return(I=i.value)==null?void 0:I.phases},(I,L)=>{s.value&&Ts(I,L)});const l=u.computed(()=>{var I,L;return(L=(I=i==null?void 0:i.value)==null?void 0:I.phases)==null?void 0:L.find(U=>U.id===r.phaseId)});u.watch(()=>{var I;return(I=l.value)==null?void 0:I.milestones},(I,L)=>{s.value&&Ts(I,L)});const a=u.computed(()=>{var I,L;return(L=(I=l.value)==null?void 0:I.milestones)==null?void 0:L.find(U=>U.id===r.milestoneId)});u.watch(()=>{var I;return(I=a.value)==null?void 0:I.activities},(I,L)=>{s.value&&Ts(I,L)});const c=u.computed(()=>{var I,L;return((L=(I=i.value)==null?void 0:I.phases)==null?void 0:L.reduce((U,W)=>{const H=W.milestones||[];return[...U,...H]},[]))||[]}),d=u.computed(()=>{var I,L;return((L=(I=i.value)==null?void 0:I.phases)==null?void 0:L.reduce((U,W)=>{const fe=(W.milestones||[]).reduce((G,ae)=>ae.activities?[...G,...ae.activities]:G,[]);return[...U,...fe]},[]))||[]}),h=u.computed(()=>{var I,L;return(L=(I=a.value)==null?void 0:I.activities)==null?void 0:L.find(U=>U.id===r.activityId)}),f=u.computed(()=>{var I;return((I=i.value)==null?void 0:I.name)||r.templateId}),g=()=>{if(!i.value)return;const{name:I,rank:L}=pc(i.value.phases,"phase",t);s.value=!0,o("addItem",{type:Tt.PHASES,templateId:r.templateId,item:{name:I,rank:L}})},p=I=>{o("updateItem",{templateId:r.templateId,id:r.templateId,itemType:Tt.TEMPLATES,data:{name:I}})},m=I=>{o("removeItem",{itemType:Tt.PHASES,templateId:r.templateId,data:{id:I}})},_=(I,L)=>{o("updateItem",{templateId:r.templateId,id:I,itemType:Tt.PHASES,data:{name:L}})},C=I=>{o("updateItem",I)},y=I=>{if(!l.value)return;const{name:L,rank:U}=pc(l.value.milestones,"milestone",t);s.value=!0,o("addItem",{type:Tt.MILESTONES,templateId:r.templateId,phaseId:I.phaseId,item:{name:L,rank:U,phaseId:I.phaseId}})},v=I=>{o("removeItem",{itemType:Tt.MILESTONES,templateId:r.templateId,phaseId:I.phaseId,data:{id:I.id}})},k=I=>{const{id:L,...U}=I;o("updateItem",{itemType:Tt.MILESTONES,id:L,templateId:r.templateId,data:U})},x=I=>{const{milestoneId:L}=I;if(!a.value)return;const{name:U,rank:W}=pc(a.value.activities,"activity",t);s.value=!0,o("addItem",{type:Tt.ACTIVITIES,milestoneId:L,templateId:r.templateId,item:{name:U,rank:W,milestoneId:L}})},b=I=>{var L,U;o("removeItem",{itemType:Tt.ACTIVITIES,templateId:r.templateId,phaseId:(L=l.value)==null?void 0:L.id,milestoneId:(U=a.value)==null?void 0:U.id,data:{id:I.id}})},T=I=>{const{id:L,...U}=I;o("updateItem",{itemType:Tt.ACTIVITIES,id:L,templateId:r.templateId,data:U})},w=u.ref(!1),S=()=>{w.value=!w.value},N=()=>{o("addRule",{templateId:r.templateId})},$=I=>{o("removeRule",{id:I,templateId:r.templateId})},O=I=>{var L;if(I.moved){const U=Mg(I,((L=i.value)==null?void 0:L.phases)??[]);o("updateItem",{itemType:Tt.PHASES,id:I.moved.element.id,templateId:r.templateId,data:{rank:U}})}},M=I=>{!l.value||!a.value||!h.value||o("addItem",{type:Tt.TASKS,activityId:I.activityId,milestoneId:a.value.id,phaseId:l.value.id,templateId:r.templateId,item:I})},A=I=>{!l.value||!a.value||!h.value||o("updateItem",{itemType:Tt.TASKS,id:I.id,templateId:r.templateId,data:I})},F=I=>{!l.value||!a.value||!h.value||o("removeItem",{itemType:Tt.TASKS,activityId:h.value.id,milestoneId:a.value.id,phaseId:l.value.id,templateId:r.templateId,data:I})},P=I=>{o("addFiles",I)},z=I=>{o("removeFile",I)};return(I,L)=>{var U,W,H,fe,G,ae;return i.value?(u.openBlock(),u.createElementBlock("div",Ize,[u.createVNode(Og,{"can-go-back":!0,onGoBack:L[1]||(L[1]=R=>I.$router.push({name:u.unref(Xa).TEMPLATES_LIST}))},{primary:u.withCtx(()=>[u.createVNode(nr,{title:f.value,level:2,"is-editable":!0,"onUpdate:title":L[0]||(L[0]=R=>{p(R)})},null,8,["title"])]),_:1}),u.createElementVNode("div",Bze,[u.createElementVNode("ol",Rze,[u.createElementVNode("li",zze,[u.createVNode(u.unref(la),{"model-value":i.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:O},{header:u.withCtx(()=>[u.createVNode(nr,{title:I.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:u.withCtx(({element:R})=>{var J;return[u.createVNode(BU,{id:R.id,name:R.name,milestones:R.milestones,"is-active":((J=l.value)==null?void 0:J.id)===R.id,"is-draggable":!0,onClick:B=>I.$router.push({params:{templateId:n.templateId,phaseId:R.id}}),"onUpdate:title":B=>{_(R.id,B)},onRemove:()=>m(R.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:u.withCtx(()=>[u.createElementVNode("div",Vze,[u.createVNode(aa,{"icon-name":"AddBoxOutlineRounded",label:I.$t("template.phases.add"),onClick:g},null,8,["label"])])]),_:1},8,["model-value"])]),u.createElementVNode("li",Wze,[l.value?(u.openBlock(),u.createBlock(VU,{key:0,"template-id":n.templateId,phase:l.value,"milestone-id":(U=a.value)==null?void 0:U.id,onAddMilestone:y,onUpdateMilestone:k,onUpdatePhase:C,onRemoveMilestone:v},null,8,["template-id","phase","milestone-id"])):u.createCommentVNode("",!0)]),u.createElementVNode("li",Kze,[l.value&&a.value?(u.openBlock(),u.createBlock(UU,{key:0,"template-id":n.templateId,"phase-id":(W=l.value)==null?void 0:W.id,milestone:a.value,"activity-id":(H=h.value)==null?void 0:H.id,onAddActivity:x,onUpdateActivity:T,onRemoveActivity:b},null,8,["template-id","phase-id","milestone","activity-id"])):u.createCommentVNode("",!0)])])]),(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[h.value?(u.openBlock(),u.createBlock(s5,{key:0,activity:h.value,"activity-types":n.activityTypes,breadcrumbs:`${i.value.name} / ${(fe=l.value)==null?void 0:fe.name} / ${(G=a.value)==null?void 0:G.name}`,"milestone-id":(ae=a.value)==null?void 0:ae.id,"template-activities":d.value,"template-milestones":c.value,"is-template":!0,"is-editable":!0,users:n.users,"onUpdate:activity":L[2]||(L[2]=R=>{h.value&&T(R)}),"attachment-enabled":!1,onClose:I.$router.back,onAddSubtask:M,onUpdateSubtask:A,onDeleteSubtask:F,onAddFiles:P,onRemoveFile:z},{default:u.withCtx(R=>[u.renderSlot(I.$slots,"activityDetailsBody",u.normalizeProps(u.guardReactiveProps(R)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):u.createCommentVNode("",!0)])),(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[w.value?(u.openBlock(),u.createBlock(Pze,{key:0,"template-id":i.value.id,rules:i.value.rules||[],"template-phases":i.value.phases,"template-milestones":c.value,"template-activities":d.value,onClose:S,onAddRule:N,onRemoveRule:$},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):u.createCommentVNode("",!0)]))])):u.createCommentVNode("",!0)}}});const Uze={class:"ao-card__content"},Hze={key:0,class:"ao-card__header"},qze={class:"ao-card__body"},jze={key:1,class:"ao-card__footer"},Ly=u.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(n){return(e,t)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(n.tagName),{class:u.normalizeClass(["ao-card",{"ao-card--clickable":n.isClickable}]),style:u.normalizeStyle(n.isSelected?{border:"solid",borderColor:n.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:u.withCtx(()=>[n.withLeftBorder?(u.openBlock(),u.createElementBlock("div",{key:0,class:"ao-card__left-border",style:u.normalizeStyle({backgroundColor:n.color})},null,4)):u.createCommentVNode("",!0),u.createElementVNode("div",Uze,[e.$slots.header?(u.openBlock(),u.createElementBlock("header",Hze,[u.renderSlot(e.$slots,"header")])):u.createCommentVNode("",!0),u.createElementVNode("div",qze,[u.renderSlot(e.$slots,"default")]),e.$slots.footer?(u.openBlock(),u.createElementBlock("footer",jze,[u.renderSlot(e.$slots,"footer")])):u.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const Fy=u.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(n){const e=n,t=u.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["ao-progress",n.status?`ao-progress--${n.status}`:""]),role:"meter"},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.value,i=>(u.openBlock(),u.createElementBlock("div",{key:i,class:u.normalizeClass(["ao-progress__progress"]),style:u.normalizeStyle({width:`${i*100}%`,"--ao-progress-color":n.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
2
101
  * vue-color-kit v1.0.6
3
102
  * (c) 2023
4
103
  * @license MIT
5
- */function Je(a){let t={r:0,g:0,b:0,a:1};/#/.test(a)?t=gf(a):/rgb/.test(a)?t=Jo(a):typeof a=="string"?t=Jo(`rgba(${a})`):Object.prototype.toString.call(a)==="[object Object]"&&(t=a);const{r:o,g:s,b:n,a:r}=t,{h:i,s:l,v:c}=_f(t);return{r:o,g:s,b:n,a:r===void 0?1:r,h:i,s:l,v:c}}function ho(a){const t=document.createElement("canvas"),o=t.getContext("2d"),s=a*2;return t.width=s,t.height=s,o.fillStyle="#ffffff",o.fillRect(0,0,s,s),o.fillStyle="#ccd5db",o.fillRect(0,0,a,a),o.fillRect(a,a,a,a),t}function Xa(a,t,o,s,n,r){const i=a==="l",l=t.createLinearGradient(0,0,i?o:0,i?0:s);l.addColorStop(.01,n),l.addColorStop(.99,r),t.fillStyle=l,t.fillRect(0,0,o,s)}function Cf({r:a,g:t,b:o},s){const n=i=>("0"+Number(i).toString(16)).slice(-2),r=`#${n(a)}${n(t)}${n(o)}`;return s?r.toUpperCase():r}function gf(a){a=a.slice(1);const t=o=>parseInt(o,16)||0;return{r:t(a.slice(0,2)),g:t(a.slice(2,4)),b:t(a.slice(4,6))}}function Jo(a){return typeof a=="string"?(a=(/rgba?\((.*?)\)/.exec(a)||["","0,0,0,1"])[1].split(","),{r:Number(a[0])||0,g:Number(a[1])||0,b:Number(a[2])||0,a:Number(a[3]?a[3]:1)}):a}function _f({r:a,g:t,b:o}){a=a/255,t=t/255,o=o/255;const s=Math.max(a,t,o),n=Math.min(a,t,o),r=s-n;let i=0;s===n?i=0:s===a?t>=o?i=60*(t-o)/r:i=60*(t-o)/r+360:s===t?i=60*(o-a)/r+120:s===o&&(i=60*(a-t)/r+240),i=Math.floor(i);let l=parseFloat((s===0?0:1-n/s).toFixed(2)),c=parseFloat(s.toFixed(2));return{h:i,s:l,v:c}}var Co=e.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const a=this.$refs.canvasSaturation,t=this.size,o=a.getContext("2d");a.width=t,a.height=t,o.fillStyle=this.color,o.fillRect(0,0,t,t),Xa("l",o,t,t,"#FFFFFF","rgba(255,255,255,0)"),Xa("p",o,t,t,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(a){const{top:t,left:o}=this.$el.getBoundingClientRect(),s=a.target.getContext("2d"),n=i=>{let l=i.clientX-o,c=i.clientY-t;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const u=s.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,p,m]=u.data;this.$emit("selectSaturation",{r:d,g:p,b:m})};n(a);const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}});const yf={ref:"canvasSaturation"};function bf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",{class:"saturation",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectSaturation&&a.selectSaturation(...i),["prevent","stop"]))},[e.createVNode("canvas",yf,null,512),e.createVNode("div",{style:a.slideSaturationStyle,class:"slide"},null,4)],32)}Co.render=bf;Co.__file="src/color/Saturation.vue";var go=e.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const a=this.$refs.canvasHue,t=this.width,o=this.height,s=a.getContext("2d");a.width=t,a.height=o;const n=s.createLinearGradient(0,0,0,o);n.addColorStop(0,"#FF0000"),n.addColorStop(.17*1,"#FF00FF"),n.addColorStop(.17*2,"#0000FF"),n.addColorStop(.17*3,"#00FFFF"),n.addColorStop(.17*4,"#00FF00"),n.addColorStop(.17*5,"#FFFF00"),n.addColorStop(1,"#FF0000"),s.fillStyle=n,s.fillRect(0,0,t,o)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(a){const{top:t}=this.$el.getBoundingClientRect(),o=a.target.getContext("2d"),s=r=>{let i=r.clientY-t;i<0&&(i=0),i>this.height&&(i=this.height),this.slideHueStyle={top:i-2+"px"};const l=o.getImageData(0,Math.min(i,this.height-1),1,1),[c,u,d]=l.data;this.$emit("selectHue",{r:c,g:u,b:d})};s(a);const n=()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",s),document.addEventListener("mouseup",n)}}});const kf={ref:"canvasHue"};function wf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",{class:"hue",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectHue&&a.selectHue(...i),["prevent","stop"]))},[e.createVNode("canvas",kf,null,512),e.createVNode("div",{style:a.slideHueStyle,class:"slide"},null,4)],32)}go.render=wf;go.__file="src/color/Hue.vue";var _o=e.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const a=this.$refs.canvasAlpha,t=this.width,o=this.height,s=this.alphaSize,n=ho(s),r=a.getContext("2d");a.width=t,a.height=o,r.fillStyle=r.createPattern(n,"repeat"),r.fillRect(0,0,t,o),Xa("p",r,t,o,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(a){const{top:t}=this.$el.getBoundingClientRect(),o=n=>{let r=n.clientY-t;r<0&&(r=0),r>this.height&&(r=this.height);let i=parseFloat((r/this.height).toFixed(2));this.$emit("selectAlpha",i)};o(a);const s=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",s)}}});const $f={ref:"canvasAlpha"};function Ef(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",{class:"color-alpha",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectAlpha&&a.selectAlpha(...i),["prevent","stop"]))},[e.createVNode("canvas",$f,null,512),e.createVNode("div",{style:a.slideAlphaStyle,class:"slide"},null,4)],32)}_o.render=Ef;_o.__file="src/color/Alpha.vue";var yo=e.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const a=this.$el,t=this.width,o=this.height,s=this.alphaSize,n=ho(s),r=a.getContext("2d");a.width=t,a.height=o,r.fillStyle=r.createPattern(n,"repeat"),r.fillRect(0,0,t,o),r.fillStyle=this.color,r.fillRect(0,0,t,o)}}});function Bf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("canvas")}yo.render=Bf;yo.__file="src/color/Preview.vue";var bo=e.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(a){this.isSucking=!1,this.suckColor(a)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(a){a.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(a){const{clientX:t,clientY:o}=a,{top:s,left:n,width:r,height:i}=this.suckerCanvas.getBoundingClientRect(),l=t-n,c=o-s,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,r-1),Math.min(c,i-1),1,1);let[p,m,h,f]=d.data;f=parseFloat((f/255).toFixed(2));const y=this.suckerPreview.style;Object.assign(y,{position:"absolute",left:t+20+"px",top:o-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${p}, ${m}, ${h}, ${f})`,zIndex:95}),this.suckerArea.length&&t>=this.suckerArea[0]&&o>=this.suckerArea[1]&&t<=this.suckerArea[2]&&o<=this.suckerArea[3]?y.display="":y.display="none"},suckColor(a){a&&a.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),a.addEventListener("click",t=>{const{clientX:o,clientY:s}=t,{top:n,left:r,width:i,height:l}=a.getBoundingClientRect(),c=o-r,u=s-n,p=a.getContext("2d").getImageData(Math.min(c,i-1),Math.min(u,l-1),1,1);let[m,h,f,y]=p.data;y=parseFloat((y/255).toFixed(2)),this.$emit("selectSucker",{r:m,g:h,b:f,a:y})}))}}});const Vf=e.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),Sf={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Nf=e.createVNode("g",{fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[e.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),e.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function Mf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",null,[a.isSucking?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock("svg",{key:0,class:[{active:a.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:t[1]||(t[1]=(...i)=>a.openSucker&&a.openSucker(...i))},[Vf],2)),a.isSucking?(e.openBlock(),e.createBlock("svg",Sf,[Nf])):e.createCommentVNode("v-if",!0)])}bo.render=Mf;bo.__file="src/color/Sucker.vue";var ko=e.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(a,{emit:t}){return{modelColor:e.computed({get(){return a.color||""},set(r){t("inputColor",r)}}),handleFocus:r=>{t("inputFocus",r)},handleBlur:r=>{t("inputBlur",r)}}}});const Tf={class:"color-type"},Af={class:"name"};function Of(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",Tf,[e.createVNode("span",Af,e.toDisplayString(a.name),1),e.withDirectives(e.createVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=i=>a.modelColor=i),class:"value",onFocus:t[2]||(t[2]=(...i)=>a.handleFocus&&a.handleFocus(...i)),onBlur:t[3]||(t[3]=(...i)=>a.handleBlur&&a.handleBlur(...i))},null,544),[[e.vModelText,a.modelColor]])])}ko.render=Of;ko.__file="src/color/Box.vue";var wo=e.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(a,{emit:t}){const o=e.ref(),s=e.ref([]),n=e.ref();a.colorsHistoryKey&&localStorage&&(s.value=JSON.parse(localStorage.getItem(a.colorsHistoryKey))||[]),n.value=ho(4).toDataURL(),e.onUnmounted(()=>{r(o.value)});function r(l){if(!l)return;const c=s.value||[],u=c.indexOf(l);u>=0&&c.splice(u,1),c.length>=8&&(c.length=7),c.unshift(l),s.value=c||[],localStorage&&a.colorsHistoryKey&&localStorage.setItem(a.colorsHistoryKey,JSON.stringify(c))}function i(l){t("selectColor",l)}return{setColorsHistory:r,colorsHistory:s,color:o,imgAlphaBase64:n,selectColor:i}}});const If={class:"colors"},Df={key:0,class:"colors history"};function Lf(a,t,o,s,n,r){return e.openBlock(),e.createBlock("div",null,[e.createVNode("ul",If,[(e.openBlock(!0),e.createBlock(e.Fragment,null,e.renderList(a.colorsDefault,i=>(e.openBlock(),e.createBlock("li",{key:i,class:"item",onClick:l=>a.selectColor(i)},[e.createVNode("div",{style:{background:`url(${a.imgAlphaBase64})`},class:"alpha"},null,4),e.createVNode("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))]),a.colorsHistory.length?(e.openBlock(),e.createBlock("ul",Df,[(e.openBlock(!0),e.createBlock(e.Fragment,null,e.renderList(a.colorsHistory,i=>(e.openBlock(),e.createBlock("li",{key:i,class:"item",onClick:l=>a.selectColor(i)},[e.createVNode("div",{style:{background:`url(${a.imgAlphaBase64})`},class:"alpha"},null,4),e.createVNode("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))])):e.createCommentVNode("v-if",!0)])}wo.render=Lf;wo.__file="src/color/Colors.vue";var pt=e.defineComponent({components:{Saturation:Co,Hue:go,Alpha:_o,Preview:yo,Sucker:bo,Box:ko,Colors:wo},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return Cf(this.rgba,!0)}},created(){Object.assign(this,Je(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(a){const{r:t,g:o,b:s,h:n,s:r,v:i}=Je(a);Object.assign(this,{r:t,g:o,b:s,h:n,s:r,v:i}),this.setText()},handleFocus(a){this.$emit("inputFocus",a)},handleBlur(a){this.$emit("inputBlur",a)},selectHue(a){const{r:t,g:o,b:s,h:n,s:r,v:i}=Je(a);Object.assign(this,{r:t,g:o,b:s,h:n,s:r,v:i}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(a){this.a=a,this.setText()},inputHex(a){const{r:t,g:o,b:s,a:n,h:r,s:i,v:l}=Je(a);Object.assign(this,{r:t,g:o,b:s,a:n,h:r,s:i,v:l}),this.modelHex=a,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(a){const{r:t,g:o,b:s,a:n,h:r,s:i,v:l}=Je(a);Object.assign(this,{r:t,g:o,b:s,a:n,h:r,s:i,v:l}),this.modelHex=this.hexString,this.modelRgba=a,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(a){this.$emit("openSucker",a)},selectSucker(a){const{r:t,g:o,b:s,a:n,h:r,s:i,v:l}=Je(a);Object.assign(this,{r:t,g:o,b:s,a:n,h:r,s:i,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(a){const{r:t,g:o,b:s,a:n,h:r,s:i,v:l}=Je(a);Object.assign(this,{r:t,g:o,b:s,a:n,h:r,s:i,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Pf={class:"color-set"};function Hf(a,t,o,s,n,r){const i=e.resolveComponent("Saturation"),l=e.resolveComponent("Hue"),c=e.resolveComponent("Alpha"),u=e.resolveComponent("Preview"),d=e.resolveComponent("Sucker"),p=e.resolveComponent("Box"),m=e.resolveComponent("Colors");return e.openBlock(),e.createBlock("div",{class:["hu-color-picker",{light:a.isLightTheme}],style:{width:a.totalWidth+"px"}},[e.createVNode("div",Pf,[e.createVNode(i,{ref:"saturation",color:a.rgbString,hsv:a.hsv,size:a.hueHeight,onSelectSaturation:a.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),e.createVNode(l,{ref:"hue",hsv:a.hsv,width:a.hueWidth,height:a.hueHeight,onSelectHue:a.selectHue},null,8,["hsv","width","height","onSelectHue"]),e.createVNode(c,{ref:"alpha",color:a.rgbString,rgba:a.rgba,width:a.hueWidth,height:a.hueHeight,onSelectAlpha:a.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),e.createVNode("div",{style:{height:a.previewHeight+"px"},class:"color-show"},[e.createVNode(u,{color:a.rgbaString,width:a.previewWidth,height:a.previewHeight},null,8,["color","width","height"]),a.suckerHide?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(d,{key:0,"sucker-canvas":a.suckerCanvas,"sucker-area":a.suckerArea,onOpenSucker:a.openSucker,onSelectSucker:a.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),e.createVNode(p,{name:"HEX",color:a.modelHex,onInputColor:a.inputHex,onInputFocus:a.handleFocus,onInputBlur:a.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),e.createVNode(p,{name:"RGBA",color:a.modelRgba,onInputColor:a.inputRgba,onInputFocus:a.handleFocus,onInputBlur:a.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),e.createVNode(m,{color:a.rgbaString,"colors-default":a.colorsDefault,"colors-history-key":a.colorsHistoryKey,onSelectColor:a.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),e.createCommentVNode(" custom options "),e.renderSlot(a.$slots,"default")],6)}pt.render=Hf;pt.__file="src/color/ColorPicker.vue";pt.install=a=>{a.component(pt.name,pt)};const Rf={class:"color-picker-wrapper"},Aa=e.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(a,{emit:t}){const o=a,s=e.ref(!1),n=e.ref(null),r=e.ref(null),i=e.ref(0),l=e.ref(0),c=async h=>{r.value=h,s.value=!0,await e.nextTick();const f=h.getBoundingClientRect(),y=n.value,v=(y==null?void 0:y.offsetHeight)||300,b=window.innerHeight-f.bottom,g=f.top,C=b<v&&g>v;console.log("pickerHeight = "+v),i.value=C?f.top-v-8:f.bottom+8,l.value=f.left,setTimeout(()=>{window.addEventListener("click",d)},0)},u=e.computed(()=>({position:"fixed",top:`${i.value}px`,left:`${l.value}px`,zIndex:1e3})),d=h=>{const f=h.target;n.value&&!n.value.contains(f)&&(s.value=!1,t("update:color",p.value),window.removeEventListener("click",d))};e.onBeforeUnmount(()=>{window.removeEventListener("click",d)}),e.watch(()=>o.color,h=>{s.value||(p.value=h)});const p=e.ref(o.color),m=h=>{const{r:f,g:y,b:v,a:b}=h.rgba;p.value=`rgba(${f}, ${y}, ${v}, ${b})`};return(h,f)=>(e.openBlock(),e.createElementBlock("div",Rf,[e.renderSlot(h.$slots,"clickable",{openPicker:c,bgColor:h.color}),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:n,class:"color-picker",style:e.normalizeStyle(u.value)},[e.createVNode(e.unref(pt),{class:"color-picker-box",theme:"light",color:h.color,onChangeColor:m},null,8,["color"])],4)):e.createCommentVNode("",!0)]))}});const jf={class:"ao-card-project-phase__header"},Uf={class:"ao-card-project-item__title-line"},Ff={key:0,class:"ao-card-project-item-phase__estimation"},zf={class:"ao-card-project-phase__footer"},Zf={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},xf={class:"ao-card-project-phase__subitem"},Wf={class:"ao-card-project-phase__subitem"},qf={key:0,class:"ao-card-project-phase__secondary"},Yf={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Kf=e.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(a,{emit:t}){const o=a,s=f=>{t("update:title",f)},n=e.computed(()=>{var f;return((f=o.milestones)==null?void 0:f.reduce((y,v)=>{var b;return y+((b=v.activities)==null?void 0:b.reduce((g,C)=>g+(C.estimation||0),0))},0))||0}),r=e.computed(()=>!o.milestones||!o.timeTrackingData?0:o.milestones.reduce((f,y)=>{var v;return f+(((v=y.activities)==null?void 0:v.reduce((b,g)=>{var _;const C=(_=o.timeTrackingData)==null?void 0:_[g.id];return b+((C==null?void 0:C.timeSpent)||0)},0))||0)},0)),i=e.computed(()=>o.estimationUnit==="days"?"d":"h"),l=e.computed(()=>ba(r.value,o.estimationUnit)),c=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.length}),u=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.filter(y=>y.status===It.done).length}),d=e.computed(()=>(u.value||0)/(c.value||1)),p=e.computed({get:()=>o.deadline??"",set:f=>t("update:deadline",f!=null&&f.length?f:null)}),m=e.computed({get:()=>o.color,set:f=>{t("updatePhase",{id:o.id,color:f})}}),h=(f,y)=>{const v=f.target;v.closest("button")||v.closest("input")||v.closest(".ao-title")||y(v)};return(f,y)=>(e.openBlock(),e.createBlock(Aa,{color:m.value,"onUpdate:color":y[2]||(y[2]=v=>m.value=v)},{clickable:e.withCtx(({openPicker:v,bgColor:b})=>[e.createVNode(Ma,{class:"ao-card-project-phase","is-clickable":f.isEditable,color:b,withLeftBorder:!0,onClick:g=>h(g,v)},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",Uf,[e.createVNode(se,{id:f.id,class:"ao-card-project-phase__title",title:f.name||"",level:4,"is-editable":f.isEditable,"onUpdate:title":s},null,8,["id","title","is-editable"]),n.value||r.value?(e.openBlock(),e.createElementBlock("span",Ff," ("+e.toDisplayString(l.value)+"/"+e.toDisplayString(n.value)+e.toDisplayString(i.value)+")",1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",zf,[c.value?(e.openBlock(),e.createElementBlock("div",Zf,[e.createElementVNode("div",xf,[e.createVNode(J,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",Wf,e.toDisplayString(u.value)+" / "+e.toDisplayString(c.value),1)]),e.createVNode(Ta,{percentages:d.value,class:"ao-card-project-phase__progress",color:f.color},null,8,["percentages","color"]),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",qf,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ao-card-project-phase__footer-row",p.value?"":"ao-card-project-phase__no_deadline"])},[f.isEditable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=g=>p.value=g),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[e.vModelText,p.value,void 0,{lazy:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("span",Yf,e.toDisplayString(e.unref(ka)(f.deadline)),1)],2)])]),_:2},[f.isEditable?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",jf,[e.createVNode(G,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.active?f.$t("archive"):f.$t("unarchive"),onClick:y[0]||(y[0]=e.withModifiers(()=>f.active?f.$emit("archivePhase",{id:f.id}):f.$emit("unarchivePhase",{id:f.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Gf=e.defineComponent({__name:"AoBadge",props:{color:{}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("span",{class:"aoBadge",style:e.normalizeStyle({backgroundColor:t.color})},null,4))}});const Xf={class:"ao-card-project-milestone__default"},Qf={class:"ao-title-with-badge-wrapper"},Jf={class:"ao-card-project-item__title-line"},ev={key:0,class:"ao-card-project-item-milestone__estimation"},tv={key:0,class:"ao-card-project-milestone__archive"},av={class:"ao-card-project-milestone__activities"},ov={class:"ao-card-project-milestone__activities-row"},nv={class:"ao-card-project-milestone__subitem"},sv={class:"ao-card-project-milestone__subitem"},iv={key:1,class:"ao-card-project-milestone__secondary"},rv={class:"ao-card-project-milestone__footer"},lv={key:1,class:"ao-field ao-card-project-milestone__deadline"},cv={class:"ao-field__label"},dv={key:2,class:"ao-card-project-milestone__assignee"},uv=e.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(a,{emit:t}){const o=a,s=e.computed(()=>{var p;return((p=o.activities)==null?void 0:p.reduce((m,h)=>m+(h.estimation||0),0))||0}),n=e.computed(()=>!o.activities||!o.timeTrackingData?0:o.activities.reduce((p,m)=>{var f;const h=(f=o.timeTrackingData)==null?void 0:f[m.id];return p+((h==null?void 0:h.timeSpent)||0)},0)),r=e.computed(()=>o.estimationUnit==="days"?"d":"h"),i=e.computed(()=>ba(n.value,o.estimationUnit));e.computed(()=>{const p=n.value/60;return p%1===0?p.toString():p.toFixed(2)});const l=e.computed(()=>{var p;return(p=o.activities)==null?void 0:p.length}),c=e.computed(()=>{var p;return(p=o.activities)==null?void 0:p.filter(m=>to(m,o.closedStatus)).length}),u=e.computed(()=>(c.value||0)/(l.value||1)),d=p=>{t("updateMilestone",{id:o.id,name:p})};return(p,m)=>(e.openBlock(),e.createBlock(Ma,{class:e.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!p.readonly,"tag-name":"li","is-selected":p.isSelected,color:p.phaseColor},{default:e.withCtx(()=>[e.createElementVNode("div",Xf,[e.createElementVNode("div",Qf,[e.createVNode(Gf,{color:p.color||""},null,8,["color"]),e.createElementVNode("div",Jf,[e.createVNode(se,{id:p.id,title:p.name||"",level:5,"is-editable":!p.readonly&&p.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":d},null,8,["id","title","is-editable"]),s.value||n.value?(e.openBlock(),e.createElementBlock("span",ev," ("+e.toDisplayString(i.value)+"/"+e.toDisplayString(s.value)+e.toDisplayString(r.value)+")",1)):e.createCommentVNode("",!0)])]),!p.readonly&&p.isEditable?(e.openBlock(),e.createElementBlock("div",tv,[e.createVNode(G,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.active?p.$t("archive"):p.$t("unarchive"),onClick:m[0]||(m[0]=e.withModifiers(()=>p.active?p.$emit("archiveMilestone",{id:p.id}):p.$emit("unarchiveMilestone",{id:p.id}),["stop"]))},null,8,["label"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",av,[e.createElementVNode("div",ov,[l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",nv,[e.createVNode(J,{name:"SelectCheckBox",size:"sm"}),e.createElementVNode("span",sv,e.toDisplayString(c.value)+" / "+e.toDisplayString(l.value),1)]),e.createVNode(Ta,{percentages:u.value,color:p.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):e.createCommentVNode("",!0),p.$slots.secondary?(e.openBlock(),e.createElementBlock("div",iv,[e.renderSlot(p.$slots,"secondary")])):e.createCommentVNode("",!0)])])]),footer:e.withCtx(()=>[e.createElementVNode("div",rv,[p.important?(e.openBlock(),e.createBlock(J,{key:0,name:"FlagRounded",class:e.normalizeClass(p.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):e.createCommentVNode("",!0),p.deadline?(e.openBlock(),e.createElementBlock("label",lv,[e.createElementVNode("span",cv,e.toDisplayString(e.unref(ka)(p.deadline)),1)])):e.createCommentVNode("",!0),p.assignee?(e.openBlock(),e.createElementBlock("div",dv,[e.createVNode(Oe,{"user-name":e.unref($n)(p.assignee),"avatar-url":p.assignee.avatarUrl,color:p.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):e.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const pv={class:"ao-mapping-card-project-phase__header"},mv={class:"ao-card-project-item__title-line"},fv={key:0,class:"ao-card-project-item-phase__estimation"},vv={class:"ao-mapping-card-project-phase__footer"},hv={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Cv={class:"ao-mapping-card-project-phase__subitem"},gv={class:"ao-mapping-card-project-phase__subitem"},_v={key:0,class:"ao-mapping-card-project-phase__secondary"},yv={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},bv=e.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(a,{emit:t}){const o=a,s=f=>{t("update:title",f)},n=e.computed(()=>{var f;return((f=o.milestones)==null?void 0:f.reduce((y,v)=>{var b;return y+((b=v.activities)==null?void 0:b.reduce((g,C)=>g+(C.estimation||0),0))},0))||0}),r=e.computed(()=>!o.milestones||!o.timeTrackingData?0:o.milestones.reduce((f,y)=>{var v;return f+(((v=y.activities)==null?void 0:v.reduce((b,g)=>{var _;const C=(_=o.timeTrackingData)==null?void 0:_[g.id];return b+((C==null?void 0:C.timeSpent)||0)},0))||0)},0)),i=e.computed(()=>o.estimationUnit==="days"?"d":"h"),l=e.computed(()=>ba(r.value,o.estimationUnit)),c=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.length}),u=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.filter(y=>y.status===It.done).length}),d=e.computed(()=>(u.value||0)/(c.value||1)),p=e.computed({get:()=>o.deadline??"",set:f=>t("update:deadline",f!=null&&f.length?f:null)}),m=e.computed({get:()=>o.color,set:f=>{t("updatePhase",{id:o.id,color:f})}}),h=(f,y)=>{const v=f.target;v.closest("button")||v.closest("input")||v.closest(".ao-title")||y()};return(f,y)=>(e.openBlock(),e.createBlock(Aa,{color:m.value,"onUpdate:color":y[2]||(y[2]=v=>m.value=v)},{clickable:e.withCtx(({openPicker:v,bgColor:b})=>[e.createVNode(Ma,{class:"ao-mapping-card-project-phase","is-clickable":f.isEditable,color:b,withLeftBorder:!0,onClick:g=>h(g,v)},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",mv,[e.createVNode(se,{id:f.id,class:"ao-mapping-card-project-phase__title",title:f.name||"",level:4,"is-editable":f.isEditable,"onUpdate:title":s},null,8,["id","title","is-editable"]),n.value||r.value?(e.openBlock(),e.createElementBlock("span",fv," ("+e.toDisplayString(l.value)+"/"+e.toDisplayString(n.value)+e.toDisplayString(i.value)+")",1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",vv,[c.value?(e.openBlock(),e.createElementBlock("div",hv,[e.createElementVNode("div",Cv,[e.createVNode(J,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",gv,e.toDisplayString(u.value)+" / "+e.toDisplayString(c.value),1)]),e.createVNode(Ta,{percentages:d.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",_v,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ao-mapping-card-project-phase__footer-row",p.value?"":"ao-mapping-card-project-phase__no_deadline"])},[f.isEditable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=g=>p.value=g),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[e.vModelText,p.value,void 0,{lazy:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("span",yv,e.toDisplayString(e.unref(ka)(f.deadline)),1)],2)])]),_:2},[f.isEditable?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",pv,[e.createVNode(G,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.active?f.$t("archive"):f.$t("unarchive"),onClick:y[0]||(y[0]=e.withModifiers(()=>f.active?f.$emit("archivePhase",{id:f.id}):f.$emit("unarchivePhase",{id:f.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const kv={class:"ao-project-phase"},wv={key:0,class:"ao-project-phase__drag ao-card__drag"},$v={key:1,class:"ao-project-phase__col-phase"},Ev={key:2,class:"ao-mapping-project-phase__col-phase"},Bv={key:0,class:"ao-project-phase__col-milestones"},Vv={class:"ao-project-phase__milestones-list-footer"},Sv=e.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(a,{emit:t}){const o=a,{t:s}=De();e.watch(()=>o.phase.milestones,(g,C)=>{Ne(g,C)});const n=g=>{t("updatePhase",{id:o.phase.id,name:g})},r=g=>{t("updatePhase",{id:o.phase.id,deadline:g})},i=g=>{t("updatePhase",g)},l=e.computed(()=>o.phase.milestones.map(g=>np(g,o.closedStatus))),c=g=>{const{name:C,rank:_}=nt(l.value??[],"milestone",s);t("addMilestone",{name:C,rank:_,phaseId:g})},u=g=>{t("updateMilestone",g)},d=g=>{t("archiveMilestone",g)},p=g=>{t("unarchiveMilestone",g)},m=g=>{t("archivePhase",g)},h=g=>{t("unarchivePhase",g)},f=g=>{"added"in g?t("updateMilestone",{id:g.added.element.id,phaseId:o.phase.id,rank:mt(l.value,g.added.newIndex)}):"removed"in g||"moved"in g&&t("updateMilestone",{id:g.moved.element.id,rank:mt(l.value,g.moved.newIndex)})},y=jt.useRoute(),v=e.computed(()=>y.path.includes("/mapping")),b=e.computed(()=>{var g;return o.phase.id!==((g=y.params)==null?void 0:g.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:ip(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(g,C)=>(e.openBlock(),e.createElementBlock("li",kv,[e.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:e.normalizeStyle(b.value)},[g.isEditable?(e.openBlock(),e.createElementBlock("div",wv,[e.createVNode(J,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("div",Ev,[e.createVNode(bv,{id:g.phase.id,milestones:l.value,name:g.phase.name,deadline:g.phase.deadline,active:g.phase.active,"is-editable":g.isEditable,color:g.phase.color,"estimation-unit":g.estimationUnit,"onUpdate:deadline":r,"onUpdate:title":n,onArchivePhase:m,onUnarchivePhase:h,onUpdatePhase:i},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(e.openBlock(),e.createElementBlock("div",$v,[e.createVNode(Kf,{id:g.phase.id,milestones:l.value,name:g.phase.name,deadline:g.phase.deadline,active:g.phase.active,"is-editable":g.isEditable,color:g.phase.color,"time-tracking-data":g.timeTrackingData,"estimation-unit":g.estimationUnit,"onUpdate:deadline":r,"onUpdate:title":n,onArchivePhase:m,onUnarchivePhase:h,onUpdatePhase:i},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Bv,[e.createElementVNode("div",{class:"ao-project-phase__milestones",style:e.normalizeStyle(b.value)},[e.createVNode(e.unref(We),e.mergeProps({class:"ao-project-phase__milestones-list",list:l.value,disabled:g.readonly||!g.isEditable,"item-key":"id",group:"kanban"},g.$attrs,{onChange:f}),{item:e.withCtx(({element:_})=>{var B;return[e.createVNode(uv,{id:_.id,name:_.name,color:_.color,"phase-color":g.phase.color,activities:_.activities,deadline:_.deadline,active:_.active,"is-editable":!g.readonly&&g.isEditable,"is-draggable":!g.readonly&&g.isEditable,"closed-status":g.closedStatus,"is-selected":_.id===((B=g.$route.params)==null?void 0:B.milestoneId),assignee:_.assignee,important:_.important,readonly:g.readonly,"time-tracking-data":g.timeTrackingData,"estimation-unit":g.estimationUnit,class:e.normalizeClass(["ao-project-phase__milestone"]),onClick:E=>!g.readonly&&g.$router.push({name:e.unref(oe).milestone,params:{phaseId:g.phase.id,milestoneId:_.id}}),onUpdateMilestone:u,onArchiveMilestone:d,onUnarchiveMilestone:p},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),e.createElementVNode("div",Vv,[g.isEditable?(e.openBlock(),e.createBlock(qe,{key:0,label:g.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:C[0]||(C[0]=()=>c(g.phase.id))},null,8,["label"])):e.createCommentVNode("",!0)])],4)]))]))}});const Nv={class:"ao-project__phases"},Mv={key:0,class:"ao-project-phase__phases-list-footer"},Tv=e.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1),Av={class:"ao-project-phase__col-phase"},Ov=e.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1),$o=e.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(a,{emit:t}){const o=a;e.watch(()=>o.phases,(m,h)=>{Ne(m,h)});const s=m=>{t("addMilestone",m)},n=m=>{t("updateMilestone",m)},r=m=>{t("archiveMilestone",m)},i=m=>{t("unarchiveMilestone",m)},l=m=>{t("archivePhase",m)},c=m=>{t("unarchivePhase",m)},u=m=>{if(m.moved){const h=Zt(m,o.phases??[]);t("updatePhase",{id:m.moved.element.id,rank:h})}},d=m=>{t("updatePhase",m)},p=m=>{t("addPhase",m)};return(m,h)=>(e.openBlock(),e.createElementBlock("div",Nv,[e.createVNode(e.unref(We),{class:"ao-project-phase__phases-list","model-value":m.phases,"item-key":"id",handle:".ao-card__drag",onChange:u},{item:e.withCtx(({element:f})=>[e.createVNode(Sv,{phase:f,"is-editable":!m.readonly&&m.isEditable,"closed-status":m.closedStatus,users:m.users,readonly:m.readonly,"time-tracking-data":m.timeTrackingData,"estimation-unit":m.estimationUnit,onAddMilestone:s,onUpdateMilestone:n,onArchiveMilestone:r,onUnarchiveMilestone:i,onUpdatePhase:d,onArchivePhase:l,onUnarchivePhase:c},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),m.isEditable?(e.openBlock(),e.createElementBlock("div",Mv,[Tv,e.createElementVNode("div",Av,[e.createVNode(qe,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:p},null,8,["label"])]),Ov])):e.createCommentVNode("",!0)]))}});const Iv=["onSubmit"],Dv={class:"ao-add-template-modal__form-body"},Lv={class:"field__row"},Pv={class:"ao-add-template-modal__form-footer"},xn=e.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(a,{emit:t}){const o=a,s=e.computed(()=>o.templates.map(l=>({value:l.id,label:l.name}))),n=e.ref(null),r=l=>{n.value=l},i=()=>{n.value&&t("apply",n.value,o.projectId)};return(l,c)=>(e.openBlock(),e.createBlock(wa,{size:"sm"},{header:e.withCtx(()=>[e.createVNode(se,{title:l.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:e.withModifiers(i,["prevent"])},[e.createElementVNode("p",null,e.toDisplayString(l.$t("project.template.apply.notice")),1),e.createElementVNode("div",Dv,[e.createElementVNode("div",Lv,[e.createVNode(le,{value:n.value,options:s.value,detached:!0,onChange:r},null,8,["value","options"])])]),e.createElementVNode("footer",Pv,[e.createVNode(G,{label:l.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:i},null,8,["label"])])],40,Iv)]),_:1}))}});const Hv=["onSubmit"],Rv={class:"ao-save-template-modal__form-body"},jv={class:"field__row"},Uv={class:"ao-field ao-field--inline"},Fv={class:"ao-field__label"},zv={class:"ao-save-template-modal__phases"},Zv={class:"ao-field__label"},xv={class:"ao-save-template-modal__phases-list"},Wv=["value"],qv={class:"ao-save-template-modal__form-footer"},Wn=e.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(a,{emit:t}){const o=a,s=e.ref(""),n=e.ref([]);e.onMounted(()=>{n.value=o.phases.map(i=>i.id)});const r=()=>{s.value&&t("save",s.value,n.value)};return(i,l)=>(e.openBlock(),e.createBlock(wa,{size:"sm"},{header:e.withCtx(()=>[e.createVNode(se,{title:i.$t("project.template.save.title"),level:3},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:e.withModifiers(r,["prevent"])},[e.createElementVNode("div",Rv,[e.createElementVNode("div",jv,[e.createElementVNode("label",Uv,[e.createElementVNode("span",Fv,e.toDisplayString(i.$t("project.template.name.label"))+": ",1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),type:"text"},null,512),[[e.vModelText,s.value]])])]),e.createElementVNode("div",zv,[e.createElementVNode("div",Zv,e.toDisplayString(i.$t("project.template.phases.label")),1),e.createElementVNode("div",xv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.phases,c=>(e.openBlock(),e.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:c.id},[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:c.id,"onUpdate:modelValue":l[1]||(l[1]=u=>n.value=u)},null,8,Wv),[[e.vModelCheckbox,n.value]]),e.createElementVNode("span",null,e.toDisplayString(c.name),1)]))),128))])])]),e.createElementVNode("footer",qv,[e.createVNode(G,{label:i.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:r},null,8,["label"])])],40,Hv)]),_:1}))}});const Yv={class:"ao-project"},Kv={class:"ao-project__body"},Gv=e.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(a,{emit:t}){const o=a,{t:s}=De(),n=e.computed(()=>o.phases.flatMap($=>$.milestones)),r=()=>{const{name:$,rank:L}=nt(o.phases,"phase",s);t("addPhase",{name:$,rank:L,projectId:o.project.id})},i=$=>{t("updatePhase",$)},l=$=>{t("archivePhase",$)},c=$=>{t("unarchivePhase",$)},u=$=>{t("copyPhaseToTemplate",$)},d=$=>{t("addMilestone",$)},p=$=>{t("updateMilestone",$)},m=$=>{t("archiveMilestone",$)},h=$=>{t("unarchiveMilestone",$)},f=$=>{t("addActivity",$)},y=$=>{t("update:activity",$)},v=$=>{t("archiveActivity",$)},b=$=>{t("unarchiveActivity",$)},g=$=>{t("addSubtask",$)},C=$=>{t("updateSubtask",$)},_=$=>{t("deleteSubtask",$)},B=e.computed(()=>n.value.flatMap($=>$.activities)),E=$=>{t("addFiles",$)},N=$=>{t("removeFile",$)},D=$=>{t("addComment",$)},j=$=>{t("updateComment",$)},F=$=>{t("removeComment",$)},Z=e.ref(!1),O=e.ref(!1),U=($,L)=>{t("applyTemplate",{templateId:$,projectId:L}),Z.value=!1},K=($,L)=>{var q;const V=(q=o.templates)==null?void 0:q.at(-1),P=V?ne.LexoRank.parse(V.rank).genNext():ne.LexoRank.middle();t("saveTemplate",{templateName:$,rank:P.format(),phaseIds:L}),O.value=!1},W=jt.useRouter(),z=e.ref("overview"),S=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch(z,$=>{$==="feed"?(W.push({name:oe.feed}),console.log("Navigating to feed...")):$==="overview"?(W.push({name:oe.project}),console.log("Navigating to feed...")):$==="mapping"&&(W.push({name:oe.mapping}),console.log("Navigating to feed..."))}),($,L)=>{var P;const V=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"ao-project-overview"},$.$attrs),[e.createElementVNode("div",Yv,[e.createVNode(xt,null,{primary:e.withCtx(()=>[e.createVNode(qt,{tabs:S,modelValue:z.value,"onUpdate:modelValue":L[0]||(L[0]=q=>z.value=q)},null,8,["modelValue"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":$.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:$.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":$.showsArchived,onClick:L[1]||(L[1]=q=>$.$emit("update:showsArchived",!$.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:e.withCtx(()=>[$.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:$.$t("project.template.save.label"),onClick:L[2]||(L[2]=q=>O.value=!0)},null,8,["label"])):e.createCommentVNode("",!0),$.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:1,class:"ao-project-overview__add-template",color:"primary",label:$.$t("project.template.apply.label"),onClick:L[3]||(L[3]=q=>Z.value=!0)},null,8,["label"])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",Kv,[e.createVNode($o,{phases:$.phases,"closed-status":$.closedStatus,"is-editable":$.isEditable===!0,users:$.users,"time-tracking-data":$.timeTrackingData,"estimation-unit":(P=$.project)==null?void 0:P.estimationUnit,onAddMilestone:d,onUpdateMilestone:p,onArchiveMilestone:m,onUnarchiveMilestone:h,onAddPhase:r,onUpdatePhase:i,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:u},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),e.createVNode(V,{class:"ao-project__sidebar",phases:$.phases,"project-id":$.project.id,"project-name":$.project.name,users:$.users,"is-editable":$.isEditable===!0,"closed-status":$.closedStatus,"time-tracking-data":$.timeTrackingData,onClose:L[4]||(L[4]=q=>$.$router.push({name:e.unref(oe).project})),onUpdateMilestone:p,onAddActivity:f,onUpdateActivity:y,onArchiveActivity:v,onUnarchiveActivity:b},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(V,{name:"modal",activities:B.value,"is-task-checkable":$.isTaskCheckable,statuses:$.statuses,"activity-types":$.activityTypes,phases:$.phases,project:$.project,users:$.users,"user-id":$.userId,"is-editable":$.isEditable,"attachment-enabled":$.attachmentEnabled,"time-tracking-data":$.timeTrackingData,"onUpdate:activity":y,onAddSubtask:g,onUpdateSubtask:C,onDeleteSubtask:_,onAddFiles:E,onRemoveFile:N,onAddComment:D,onUpdateComment:j,onRemoveComment:F},{default:e.withCtx(({Component:q})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q),null,{default:e.withCtx(k=>[e.renderSlot($.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(k)))]),_:2},1024))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[O.value?(e.openBlock(),e.createBlock(Wn,{key:0,phases:$.phases,onClose:L[5]||(L[5]=q=>O.value=!1),onSave:K},null,8,["phases"])):e.createCommentVNode("",!0),Z.value?(e.openBlock(),e.createBlock(xn,{key:1,"project-id":$.project.id,templates:$.templates,onClose:L[6]||(L[6]=q=>Z.value=!1),onApply:U},null,8,["project-id","templates"])):e.createCommentVNode("",!0)]))],64)}}});const Xv={class:"ao-card-feed__header"},Qv={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},Jv={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},eh={class:"ao-card-feed__body"},th={key:0,class:"ao-card-feed__breadcrumbs"},ah={class:e.normalizeClass(["ao-card-feed__title-group"])},oh={class:"ao-card-feed__title-line"},nh={key:0,class:"ao-card-feed__slug"},sh={key:1,class:"ao-card-feed__deadline"},ih={class:"ao-card-feed__footer"},rh={class:"ao-card-feed__footer-row"},lh={class:"ao-assignees"},ch={key:0,class:"ao-assignee"},dh={key:0,class:"ao-card-feed__subitems"},uh={key:0,class:"ao-card-feed__subitem"},ph={class:"ao-card-feed__subitem"},mh={key:1,class:"ao-card-feed__subitem"},fh={class:"ao-card-feed__subitem"},vh={class:"ao-card-feed__timer-wrapper"},hh={class:"ao-card-feed__footer-row"},Ch={key:0,class:"ao-card-feed__progress-wrapper"},gh={class:"ao-card-feed__subitem"},_h={class:"ao-card-feed__subitem"},Eo=e.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(a,{emit:t}){const o=a,s=e.computed(()=>o.tagType==="milestone"?o.milestoneName:o.projectName),n=e.computed(()=>o.tagType==="milestone"?o.milestoneColor:o.projectColor),r=f=>{t("updateActivity",{id:o.id,name:f})},i=e.computed(()=>o.tagType==="milestone"&&o.phaseName?`${o.phaseName}`:o.phaseName&&o.milestoneName?`${o.phaseName} / ${o.milestoneName}`:""),l=e.computed(()=>o.assignee?[o.assignee]:[]),c=e.computed(()=>ka(o.deadline)),u=f=>{t("removeAssignee",f)},d=()=>{t("startTimer",{activityId:o.id,name:o.name,project:o.projectName,projectId:o.projectId,slug:o.slug})},p=e.computed(()=>{var f;return(f=o.tasks)==null?void 0:f.length}),m=e.computed(()=>{var f;return(f=o.tasks)==null?void 0:f.filter(y=>y.isDone).length}),h=e.computed(()=>(m.value||0)/(p.value||1));return(f,y)=>(e.openBlock(),e.createBlock(Ma,{class:e.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":f.isClosed}]),"is-clickable":!0},{header:e.withCtx(()=>[e.createElementVNode("div",Xv,[s.value?(e.openBlock(),e.createBlock(Ot,{key:0,label:s.value,class:"ao-card-feed__project",variant:"solid",color:f.projectColor?void 0:"primary","raw-color":n.value},null,8,["label","color","raw-color"])):e.createCommentVNode("",!0),f.isPrivate||f.important||f.isClosed?(e.openBlock(),e.createElementBlock("div",Qv,[f.isPrivate?(e.openBlock(),e.createBlock(J,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):e.createCommentVNode("",!0),f.important?(e.openBlock(),e.createBlock(J,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):e.createCommentVNode("",!0),f.isClosed?(e.openBlock(),e.createBlock(J,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Jv,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",eh,[i.value?(e.openBlock(),e.createElementBlock("span",th,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ah,[e.createElementVNode("div",oh,[f.slug?(e.openBlock(),e.createElementBlock("span",nh,e.toDisplayString(f.slug)+": ",1)):e.createCommentVNode("",!0),e.createVNode(se,{id:f.id,title:f.name,level:5,"is-editable":f.isEditable,"onUpdate:title":r,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),f.deadline?(e.openBlock(),e.createElementBlock("span",sh,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",ih,[e.createElementVNode("div",rh,[e.createElementVNode("ul",lh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,v=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:v.id},[v?(e.openBlock(),e.createElementBlock("li",ch,[e.createVNode(Oe,{"user-name":e.unref($n)(v),"avatar-url":v.avatarUrl,"is-closable":!0,onClose:()=>u(v.id)},null,8,["user-name","avatar-url","onClose"])])):e.createCommentVNode("",!0)],64))),128))]),f.comments||f.attachments?(e.openBlock(),e.createElementBlock("ul",dh,[f.comments?(e.openBlock(),e.createElementBlock("li",uh,[e.createVNode(J,{name:"ChatOutline",size:"sm"}),e.createElementVNode("span",ph,e.toDisplayString(f.comments),1)])):e.createCommentVNode("",!0),f.attachments?(e.openBlock(),e.createElementBlock("li",mh,[e.createVNode(J,{name:"AttachFileRounded",size:"sm"}),e.createElementVNode("span",fh,e.toDisplayString(f.attachments),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",vh,[e.createVNode(J,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:e.withModifiers(d,["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",hh,[f.tasks&&f.tasks.length?(e.openBlock(),e.createElementBlock("div",Ch,[e.createElementVNode("div",gh,[e.createVNode(J,{name:"SelectCheckBox",size:"sm"}),e.createElementVNode("span",_h,e.toDisplayString(m.value)+" / "+e.toDisplayString(p.value),1)]),e.createVNode(Ta,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):e.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const yh={class:"ao-project-milestone"},bh={class:"ao-project-milestone__header"},kh={class:"ao-project-milestone__header_line"},wh={class:"ao-project-milestone__header_line"},$h={class:"ao-project-milestone__title"},Eh={key:0,class:"ao-fieldset ao-milestone__fieldset"},Bh={class:"ao-field__row ao-milestone__field-row"},Vh={class:"ao-field ao-field--inline"},Sh={class:"ao-field__row ao-milestone__field-row"},Nh={class:"ao-field ao-milestone__field-multiselect"},Mh=["onClick"],Th={class:"ao-project-milestone__body"},Ah={key:0,class:"ao-project-milestone__footer"},en=e.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(a,{emit:t}){const o=a,{t:s}=De(),n=_=>{var B;t("startTimer",_),(B=window.parent)==null||B.postMessage({type:"startTimer",data:_},"*")},r=e.computed(()=>{var _;return(_=o.phases)==null?void 0:_.find(B=>B.id===o.phaseId)}),i=e.computed(()=>{var _;return(_=o.phases)==null?void 0:_.flatMap(B=>B.milestones)}),l=e.computed(()=>{var _;return(_=i.value)==null?void 0:_.find(B=>B.id===o.milestoneId)}),c=e.computed(()=>{var _;return(_=l.value)==null?void 0:_.activities});e.watch(c,(_,B)=>{Ne(_,B)});const u=_=>{t("close",_)},d=()=>{const{name:_,rank:B}=nt(c.value??[],"activity",s);t("addActivity",{milestoneId:o.milestoneId,name:_,rank:B,projectId:o.projectId})},p=_=>{t("updateActivity",_)},m=_=>{c.value&&"moved"in _&&t("updateActivity",{id:_.moved.element.id,rank:mt(c.value,_.moved.newIndex)})},h=e.computed({get:()=>{var _;return(_=l.value)==null?void 0:_.color},set:_=>{l.value&&t("updateMilestone",{id:l.value.id,color:_})}}),f=e.computed({get:()=>{var _;return((_=l==null?void 0:l.value)==null?void 0:_.deadline)??""},set:_=>{l.value&&t("updateMilestone",{id:l.value.id,deadline:_!=null&&_.length?_:null})}}),y=_=>o.closedStatus?to(_,o.closedStatus):!1,v=e.computed(()=>{var _;return((_=o.users)==null?void 0:_.map(B=>({label:`${B.firstName} ${B.lastName}`,value:B.id,avatar:B.avatarUrl})))||[]}),b=e.computed({get(){var _,B;return(B=(_=l.value)==null?void 0:_.assignee)!=null&&B.id?[l.value.assignee.id]:[]},set(_){t("updateMilestone",{id:o.milestoneId,assigneeId:_[0]??null})}}),g=e.computed({get(){var _;return((_=l.value)==null?void 0:_.important)??!1},set(_){t("updateMilestone",{id:o.milestoneId,important:_})}}),C=(_,B)=>{const E=_.currentTarget;E instanceof HTMLElement&&B(E)};return(_,B)=>{var E;return e.openBlock(),e.createElementBlock("div",yh,[e.createElementVNode("header",bh,[e.createElementVNode("div",kh,[e.createVNode(G,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:u})]),e.createElementVNode("div",wh,[e.createElementVNode("div",$h,[e.createVNode(se,{title:((E=l.value)==null?void 0:E.name)||_.milestoneId,level:5},null,8,["title"]),e.createVNode(zn,{modelValue:g.value,"onUpdate:modelValue":B[0]||(B[0]=N=>g.value=N),modelModifiers:{lazy:!0},disabled:!_.isEditable,class:"ao-milestone__important",color:"danger",label:_.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),l.value?(e.openBlock(),e.createElementBlock("div",Eh,[e.createElementVNode("div",Bh,[e.createElementVNode("label",Vh,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":B[1]||(B[1]=N=>f.value=N),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[e.vModelText,f.value,void 0,{lazy:!0}]])])]),e.createElementVNode("div",Sh,[e.createElementVNode("label",Nh,[e.createVNode(le,{modelValue:b.value,"onUpdate:modelValue":B[2]||(B[2]=N=>b.value=N),options:v.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:_.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!_.isEditable,caret:_.isEditable},{tag:e.withCtx(({option:N,handleTagRemove:D})=>[e.createVNode(Oe,{"user-name":N.label,"avatar-url":N.avatar,"is-closable":!0,onClose:j=>D(N,j)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),e.createVNode(Aa,{color:h.value,"onUpdate:color":B[3]||(B[3]=N=>h.value=N)},{clickable:e.withCtx(({openPicker:N,bgColor:D})=>[e.createElementVNode("button",{style:e.normalizeStyle({background:D}),class:"color-button",onClick:j=>C(j,N)},null,12,Mh)]),_:1},8,["color"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Th,[e.createVNode(e.unref(We),e.mergeProps({class:"ao-project-milestone__activities",list:c.value,disabled:!_.isEditable,"item-key":"id",group:"kanban"},_.$attrs,{onChange:m}),{item:e.withCtx(({element:N})=>{var D,j,F,Z,O;return[e.createVNode(Eo,{id:N.id,name:N.name||N.id,"project-id":_.projectId,"phase-name":(D=r.value)==null?void 0:D.name,"milestone-name":(j=l.value)==null?void 0:j.name,"milestone-color":(F=l.value)==null?void 0:F.color,deadline:N.deadline,important:N.important,users:_.users,assignee:N.assignee,slug:N.slug,comments:(Z=N.comments)==null?void 0:Z.length,attachments:(O=N.attachments)==null?void 0:O.length,tasks:N.tasks,"is-editable":_.isEditable,"is-private":N.private,"is-closed":y(N),onClick:U=>_.$router.push({name:e.unref(oe).activity,params:{milestoneId:_.milestoneId,activityId:N.id}}),onUpdateActivity:p,onRemoveAssignee:()=>p({id:N.id,assigneeId:null}),onStartTimer:n},e.createSlots({_:2},[_.isEditable?{name:"secondary",fn:e.withCtx(()=>[_.isEditable&&N.active?(e.openBlock(),e.createBlock(G,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:_.$t("archive"),onClick:e.withModifiers(()=>_.$emit("archiveActivity",{id:N.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0),_.isEditable&&!N.active?(e.openBlock(),e.createBlock(G,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:_.$t("feed.activity.unarchive"),onClick:e.withModifiers(()=>_.$emit("unarchiveActivity",{id:N.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),_.isEditable?(e.openBlock(),e.createElementBlock("div",Ah,[e.createVNode(qe,{"icon-name":"Add",label:_.$t("project.activity.add"),onClick:d},null,8,["label"])])):e.createCommentVNode("",!0)])])}}});const Oh=e.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(a,{emit:t}){const o=a,s=e.computed(()=>{var v;return(v=o.phases)==null?void 0:v.find(b=>b.id===o.phaseId)}),n=e.computed(()=>{var v;return(v=o.phases)==null?void 0:v.flatMap(b=>b.milestones)}),r=e.computed(()=>{var v;return(v=n.value)==null?void 0:v.find(b=>b.id===o.milestoneId)}),i=e.computed(()=>{var v;return(v=o.activities)==null?void 0:v.find(b=>b.id===o.activityId)}),l=v=>{t("update:activity",v)},c=v=>{t("addSubtask",v)},u=v=>{t("updateSubtask",v)},d=v=>{t("deleteSubtask",v)},p=v=>{t("addFiles",v)},m=v=>{t("removeFile",v)},h=v=>{t("addComment",v)},f=v=>{t("updateComment",v)},y=v=>{t("removeComment",v)};return(v,b)=>{var g,C;return i.value?(e.openBlock(),e.createBlock(vo,{key:0,activity:i.value,"activity-types":v.activityTypes,"milestone-id":v.milestoneId,"template-activities":v.activities,"is-template":!1,users:v.users,"user-id":v.userId,"is-task-checkable":v.isTaskCheckable,statuses:v.statuses,breadcrumbs:`${(g=s.value)==null?void 0:g.name} / ${(C=r.value)==null?void 0:C.name}`,"is-editable":v.isEditable,"attachment-enabled":v.attachmentEnabled,projects:[v.project],"time-tracking-data":v.timeTrackingData,onClose:v.$router.back,"onUpdate:activity":l,onAddSubtask:c,onUpdateSubtask:u,onDeleteSubtask:d,onAddFiles:p,onRemoveFile:m,onAddComment:h,onUpdateComment:f,onRemoveComment:y},{default:e.withCtx(_=>[e.renderSlot(v.$slots,"default",e.normalizeProps(e.guardReactiveProps(_)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):e.createCommentVNode("",!0)}}}),Ih={class:"ao-col-header"},Dh=e.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("header",Ih,[e.createVNode(se,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(e.openBlock(),e.createBlock(Ot,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):e.createCommentVNode("",!0)]))}});function Lh(a){return e.getCurrentScope()?(e.onScopeDispose(a),!0):!1}function va(a){return typeof a=="function"?a():e.unref(a)}const Ph=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Hh=a=>a!=null,At=()=>{};function Rh(a,t){function o(...s){return new Promise((n,r)=>{Promise.resolve(a(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(n).catch(r)})}return o}function jh(a,t={}){let o,s,n=At;const r=l=>{clearTimeout(l),n(),n=At};return l=>{const c=va(a),u=va(t.maxWait);return o&&r(o),c<=0||u!==void 0&&u<=0?(s&&(r(s),s=null),Promise.resolve(l())):new Promise((d,p)=>{n=t.rejectOnCancel?p:d,u&&!s&&(s=setTimeout(()=>{o&&r(o),s=null,d(l())},u)),o=setTimeout(()=>{s&&r(s),s=null,d(l())},c)})}}function Uh(a,t=200,o={}){return Rh(jh(t,o),a)}function Wa(a){var t;const o=va(a);return(t=o==null?void 0:o.$el)!=null?t:o}const Fh=Ph?window:void 0;function zh(){const a=e.ref(!1),t=e.getCurrentInstance();return t&&e.onMounted(()=>{a.value=!0},t),a}function Zh(a){const t=zh();return e.computed(()=>(t.value,!!a()))}function xh(a,t,o={}){const{root:s,rootMargin:n="0px",threshold:r=.1,window:i=Fh,immediate:l=!0}=o,c=Zh(()=>i&&"IntersectionObserver"in i),u=e.computed(()=>{const f=va(a);return(Array.isArray(f)?f:[f]).map(Wa).filter(Hh)});let d=At;const p=e.ref(l),m=c.value?e.watch(()=>[u.value,Wa(s),p.value],([f,y])=>{if(d(),!p.value||!f.length)return;const v=new IntersectionObserver(t,{root:Wa(y),rootMargin:n,threshold:r});f.forEach(b=>b&&v.observe(b)),d=()=>{v.disconnect(),d=At}},{immediate:l,flush:"post"}):At,h=()=>{d(),m(),p.value=!1};return Lh(h),{isSupported:c,isActive:p,pause(){d(),p.value=!1},resume(){p.value=!0},stop:h}}const Wh={class:e.normalizeClass(["ao-list-kanban"])},qh={class:"ao-list-kanban__header"},Yh={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},Kh={key:1,class:"ao-list-kanban__end"},Gh={key:0,class:"ao-list-kanban__no-more"},Xh={key:1,class:"ao-list-kanban__divider"},Qh={key:1,class:"ao-list-kanban__footer"},Jh=e.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(a,{emit:t}){const o=a,s=e.ref(!1),n=e.ref(null);xh(n,([{isIntersecting:d}])=>{s.value=d}),e.watch(s,d=>{d&&o.hasMore&&!o.isLoading&&t("loadMore")});const r=d=>{var p;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((p=d.assignee)==null?void 0:p.id):!1},i=d=>{t("selectActivity",d)},l=d=>{t("updateActivity",d)},c=d=>{"added"in d?t("updateActivity",{id:d.added.element.id,statusId:o.status.id,rank:mt(o.list,d.added.newIndex)}):"removed"in d||"moved"in d&&t("updateActivity",{id:d.moved.element.id,rank:mt(o.list,d.moved.newIndex)})},u=e.ref(!1);return(d,p)=>(e.openBlock(),e.createElementBlock("div",Wh,[d.title||d.$slots.header?e.renderSlot(d.$slots,"header",{key:0},()=>{var m;return[e.createElementVNode("div",qh,[d.title?(e.openBlock(),e.createBlock(Dh,{key:0,title:d.title,level:3,items:(m=d.list)==null?void 0:m.length},null,8,["title","items"])):e.createCommentVNode("",!0)])]}):e.createCommentVNode("",!0),e.createVNode(e.unref(We),e.mergeProps({class:["ao-list-kanban__list",u.value?"ao-list-kanban__transition":void 0],list:d.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},d.$attrs,{draggable:".ao-list-draggable",disabled:!d.isEditable,onChange:c,onStart:p[1]||(p[1]=m=>u.value=!0),onEnd:p[2]||(p[2]=m=>u.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:e.withCtx(({element:m})=>{var h,f,y,v,b,g,C,_,B,E;return[e.createVNode(Eo,{class:e.normalizeClass(r(m)?"ao-list-draggable":""),id:m.id,name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(f=m.project)==null?void 0:f.id,"project-color":(y=m.project)==null?void 0:y.color,"phase-name":(b=(v=m.milestone)==null?void 0:v.phase)==null?void 0:b.name,"milestone-name":(g=m.milestone)==null?void 0:g.name,"milestone-color":(C=m.milestone)==null?void 0:C.color,deadline:m.deadline,rules:((_=m.rules)==null?void 0:_.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(B=m.comments)==null?void 0:B.length,attachments:(E=m.attachments)==null?void 0:E.length,users:d.users,assignee:m.assignee,slug:m.slug,"is-editable":r(m),"is-private":m.private,"tag-type":d.tagType,onUpdateActivity:[N=>r(m)&&l(N),()=>r(m)&&l],onClick:()=>i(m.id),onRemoveAssignee:()=>r(m)&&l({id:m.id,assigneeId:null}),onStartTimer:p[0]||(p[0]=N=>d.$emit("startTimer",N))},{secondary:e.withCtx(()=>[r(m)&&m.active?(e.openBlock(),e.createBlock(G,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:d.$t("feed.activity.archive"),onClick:e.withModifiers(()=>d.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0),r(m)&&!m.active?(e.openBlock(),e.createBlock(G,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:d.$t("feed.activity.unarchive"),onClick:e.withModifiers(()=>d.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:e.withCtx(()=>[d.isLoading?(e.openBlock(),e.createElementBlock("div",Yh,[e.createVNode(J,{name:"Loading"})])):d.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:n,class:"ao-list-kanban__end"},null,512)):(e.openBlock(),e.createElementBlock("div",Kh,[d.noMoreLabel?(e.openBlock(),e.createElementBlock("span",Gh,e.toDisplayString(d.noMoreLabel),1)):d.isEditable?(e.openBlock(),e.createElementBlock("span",Xh)):e.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),d.$slots.footer||d.footerLabel?(e.openBlock(),e.createElementBlock("div",Qh,[e.renderSlot(d.$slots,"footer",{},()=>[d.isEditable?(e.openBlock(),e.createBlock(qe,{key:0,"icon-name":"AddBoxOutlineRounded",label:d.footerLabel,onClick:p[3]||(p[3]=m=>d.$emit("add"))},null,8,["label"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}});const e9={class:"ao-field ao-search-field"},t9=["value","placeholder","onKeypress"],a9=e.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(a,{emit:t}){const o=a,s=async i=>{const c=i.target.value;t("update:modelValue",c,i)},n=Uh(s,o.delay),r=i=>{t("clear",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",e9,[e.createElementVNode("input",{value:i.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:i.placeholder,onInput:l[0]||(l[0]=(...c)=>e.unref(n)&&e.unref(n)(...c)),onKeypress:e.withKeys(s,["enter"])},null,40,t9),e.createVNode(J,{name:"SearchRounded",class:e.normalizeClass(`ao-search-field__icon ao-search-field__action ${i.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),e.createVNode(G,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:e.normalizeClass(`ao-search-field__button ao-search-field__action ${i.modelValue?"ao-search-field__action--visible":""}`),onClick:r},null,8,["class"])]))}});const o9={class:"ao-feed"},n9={class:"ao-feed__filters"},s9={class:"ao-feed__body"},qn=e.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(a,{emit:t}){const o=a,{t:s}=De();function n(V,P){t("toast",V,P)}const r=e.toRef(o,"activities"),i=async(V,P)=>{await t("selectActivity",V,P)},l=e.ref({}),c=e.ref(!1),u=e.ref(!1),d=e.computed(()=>o.project?"milestone":"project");e.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([V,P,q,k],[M,I])=>{l.value=Object.fromEntries(V.map(T=>[T.id,P.filter(R=>{var x;return((x=R.status)==null?void 0:x.id)===T.id})])),q&&!c.value?(i(q,null),c.value=!0):k&&!c.value&&(i(null,k),c.value=!0),u.value&&Ne(P,I)},{immediate:!0});const p=e.computed(()=>{var V;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((V=o.selectedActivity.milestone.phase)==null?void 0:V.name)??""} / ${o.selectedActivity.milestone.name??""}`}),m=V=>{var I,T;const P=(I=o.activities)==null?void 0:I.at(-1),q=P?ne.LexoRank.parse(P.rank).genNext():ne.LexoRank.middle(),k=((T=o.activities)==null?void 0:T.length)??0,M={name:s("activity.defaultName",{idx:k+1}),rank:q.format(),statusId:V.id};o.filters.assigneeId.length>0&&(M.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(M.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(M.typeId=o.filters.typeId[0]),u.value=!0,t("addActivity",M)},h=(V,P)=>{u.value=!1,t("update:filters",{...o.filters,[V]:P})},f=e.computed(()=>o.project?[o.project]:o.projects??[]),y=e.computed(()=>f.value.map(V=>({value:V.id,label:V.name}))),v=e.computed(()=>{var V;return(V=o.activityTypes)==null?void 0:V.map(P=>({value:P.id,label:P.name}))}),b=e.computed(()=>o.users.map(V=>({value:V.id,label:`${V.firstName} ${V.lastName}`,avatar:V.avatarUrl}))),g=V=>{o.selectedActivity&&t("update:activity",V)},C=V=>{t("update:activity",V)},_=V=>{t("archiveActivity",V)},B=V=>{t("unarchiveActivity",V)},E=V=>{var P;t("startTimer",V),(P=window.parent)==null||P.postMessage({type:"startTimer",data:V},"*")},N=V=>{u.value=!1,t("update:searchText",V)},D=V=>{u.value=!1,t("clear:searchText",V)},j=V=>{o.selectedActivity&&t("addSubtask",V)},F=V=>{o.selectedActivity&&t("updateSubtask",V)},Z=V=>{o.selectedActivity&&t("deleteSubtask",V)},O=V=>{t("addFiles",V)},U=V=>{t("removeFile",V)},K=V=>{o.selectedActivity&&t("addComment",{...V,activityId:o.selectedActivity.id})},W=V=>{const{id:P}=o.selectedActivity||{};P&&t("updateComment",V)},z=V=>{const{id:P}=o.selectedActivity||{};P&&t("removeComment",V)},S=jt.useRouter(),$=e.ref("feed"),L=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch($,V=>{V==="feed"?(S.push({name:oe.feed}),console.log("Navigating to feed...")):V==="overview"?(S.push({name:oe.project}),console.log("Navigating to feed...")):V==="mapping"&&(S.push({name:oe.mapping}),console.log("Navigating to feed..."))}),(V,P)=>{var q;return e.openBlock(),e.createElementBlock("div",o9,[e.createVNode(xt,null,{primary:e.withCtx(()=>[e.createElementVNode("div",n9,[e.createVNode(qt,{tabs:L,modelValue:$.value,"onUpdate:modelValue":P[0]||(P[0]=k=>$.value=k)},null,8,["modelValue"]),e.createVNode(a9,{"model-value":V.searchText,placeholder:V.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":N,onClear:D},null,8,["model-value","placeholder"]),o.project?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(le,{key:0,"model-value":V.filters[e.unref(et).project],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:V.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":P[1]||(P[1]=k=>h(e.unref(et).project,k))},null,8,["model-value","options","placeholder"])),v.value?(e.openBlock(),e.createBlock(le,{key:1,"model-value":V.filters[e.unref(et).type],mode:"tags",options:v.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:V.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":P[2]||(P[2]=k=>h(e.unref(et).type,k))},null,8,["model-value","options","placeholder"])):e.createCommentVNode("",!0),b.value.length?(e.openBlock(),e.createBlock(le,{key:2,"model-value":V.filters[e.unref(et).assignee],mode:"tags",options:b.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:V.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":P[3]||(P[3]=k=>h(e.unref(et).assignee,k))},{tag:e.withCtx(({option:k,handleTagRemove:M})=>[e.createVNode(Oe,{"user-name":k.label,"avatar-url":k.avatar,"is-closable":!0,onClose:I=>M(k,I)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):e.createCommentVNode("",!0)]),e.createVNode(G,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":V.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":V.showsOnlyNonAssigned,onClick:P[4]||(P[4]=k=>V.$emit("update:showsOnlyNonAssigned",!V.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),e.createVNode(G,{class:"ao-feed__only-important",size:"sm","icon-name":V.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":V.showsOnlyImportant,onClick:P[5]||(P[5]=k=>V.$emit("update:showsOnlyImportant",!V.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":V.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":V.showsArchivedActivities,onClick:P[6]||(P[6]=k=>V.$emit("update:showsArchivedActivities",!V.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),e.createElementVNode("div",s9,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.statuses,k=>(e.openBlock(),e.createBlock(Jh,{key:k.id,status:k,list:l.value[k.id],title:k.name,"footer-label":V.$t("feed.activity.add"),users:V.users,"user-id":V.userId,"is-editable":V.isEditable,tagType:d.value,onAdd:()=>m(k),onSelectActivity:i,onArchiveActivity:_,onUnarchiveActivity:B,onUpdateActivity:C,onStartTimer:E},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[V.selectedActivity?(e.openBlock(),e.createBlock(vo,{key:0,activity:V.selectedActivity,"activity-types":V.activityTypes,"milestone-id":(q=V.selectedActivity.milestone)==null?void 0:q.id,"template-activities":r.value,users:V.users,"user-id":V.userId,"is-task-checkable":V.isTaskCheckable,statuses:V.statuses,breadcrumbs:p.value,"is-editable":V.isEditable,"attachment-enabled":V.attachmentEnabled,projects:f.value,"time-tracking-data":V.timeTrackingData,onClose:P[7]||(P[7]=()=>i(null,null)),"onUpdate:activity":g,onAddSubtask:j,onUpdateSubtask:F,onDeleteSubtask:Z,onAddFiles:O,onRemoveFile:U,onAddComment:K,onUpdateComment:W,onRemoveComment:z,onToast:n},{default:e.withCtx(k=>[e.renderSlot(V.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(k)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):e.createCommentVNode("",!0)]))])}}});const i9={class:"ao-project-mapping"},r9={class:"ao-project-mapping-mapping__body"},l9={class:"ao-project-mapping-mapping__phases"},c9={key:0,class:"ao-project-mapping-mapping__image-wrapper"},d9=["src","alt"],u9=e.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(a,{emit:t}){const o=a,{t:s}=De(),n=()=>{const{name:v,rank:b}=nt(o.phases,"phase",s);t("addPhase",{name:v,rank:b,projectId:o.project.id})},r=v=>{t("updatePhase",v)},i=v=>{t("archivePhase",v)},l=v=>{t("unarchivePhase",v)},c=v=>{t("copyPhaseToTemplate",v)},u=e.ref(!1),d=e.ref(!1),p=(v,b)=>{t("applyTemplate",{templateId:v,projectId:b}),u.value=!1},m=(v,b)=>{var _;const g=(_=o.templates)==null?void 0:_.at(-1),C=g?ne.LexoRank.parse(g.rank).genNext():ne.LexoRank.middle();t("saveTemplate",{templateName:v,rank:C.format(),phaseIds:b}),d.value=!1},h=jt.useRouter(),f=e.ref("mapping"),y=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch(f,v=>{v==="feed"?(h.push({name:oe.feed}),console.log("Navigating to feed...")):v==="overview"?(h.push({name:oe.project}),console.log("Navigating to feed...")):v==="mapping"&&(h.push({name:oe.mapping}),console.log("Navigating to feed..."))}),(v,b)=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"ao-project-mapping-overview"},v.$attrs),[e.createElementVNode("div",i9,[e.createVNode(xt,null,{primary:e.withCtx(()=>[e.createVNode(qt,{modelValue:f.value,"onUpdate:modelValue":b[0]||(b[0]=C=>f.value=C),tabs:y},null,8,["modelValue"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":v.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:v.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":v.showsArchived,onClick:b[1]||(b[1]=C=>v.$emit("update:showsArchived",!v.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:e.withCtx(()=>[v.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:v.$t("project.template.save.label"),onClick:b[2]||(b[2]=C=>d.value=!0)},null,8,["label"])):e.createCommentVNode("",!0),v.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:v.$t("project.template.apply.label"),onClick:b[3]||(b[3]=C=>u.value=!0)},null,8,["label"])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",r9,[e.createElementVNode("div",l9,[e.createVNode($o,{phases:v.phases,"closed-status":v.closedStatus,"is-editable":v.isEditable===!0,users:v.users,"estimation-unit":(g=v.project)==null?void 0:g.estimationUnit,onAddPhase:n,onUpdatePhase:r,onArchivePhase:i,onUnarchivePhase:l,onCopyPhaseToTemplate:c},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),v.project.architectureImage?(e.openBlock(),e.createElementBlock("div",c9,[e.createElementVNode("img",{class:"architecture-image",src:v.project.architectureImage.url,alt:e.unref(s)("architectureImage.alt")},null,8,d9)])):e.createCommentVNode("",!0)])])],16),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[d.value?(e.openBlock(),e.createBlock(Wn,{key:0,phases:v.phases,onClose:b[4]||(b[4]=C=>d.value=!1),onSave:m},null,8,["phases"])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createBlock(xn,{key:1,"project-id":v.project.id,templates:v.templates,onClose:b[5]||(b[5]=C=>u.value=!1),onApply:p},null,8,["project-id","templates"])):e.createCommentVNode("",!0)]))],64)}}});const at={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},p9=(a,t={})=>[{path:a,name:at.TEMPLATES,redirect:{name:at.TEMPLATES_LIST},...t,children:[{path:"",name:at.TEMPLATES_LIST,component:Yn},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:at.TEMPLATE_DETAILS,component:Zn,props:!0}]}],oe={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},m9=(a,t={})=>[{path:a,...t,redirect:{name:oe.project},children:[{path:"",name:oe.project,component:Gv,props:!0,children:[{path:":phaseId/:milestoneId",name:oe.milestone,component:en,props:!0},{path:":phaseId/:milestoneId/:activityId",name:oe.activity,props:{default:!0,modal:!0},components:{default:en,modal:Oh}}]},{path:"feed",name:oe.feed,component:qn,props:!0},{path:"mapping",name:oe.mapping,component:u9,props:!0}]}],f9={class:"ao-templates"},Yn=e.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(a,{emit:t}){const o=a,{t:s}=De();e.watch(()=>o.templates,(c,u)=>{Ne(c,u)});const n=()=>{var m,h;const c=(m=o.templates)==null?void 0:m.at(-1),u=c?ne.LexoRank.parse(c.rank).genNext():ne.LexoRank.middle(),d=((h=o.templates)==null?void 0:h.length)??0,p={name:s("template.defaultName.template",{idx:d+1}),rank:u.format()};t("addTemplate",p)},r=(c,u)=>{t("updateItem",{itemType:ee.TEMPLATES,id:c,templateId:c,data:{name:u}})},i=(c,u)=>{t("removeItem",{itemType:ee.TEMPLATES,templateId:c,data:{id:c,...u?{name:u}:{}}})},l=c=>{if(c.moved){const u=Zt(c,o.templates??[]);t("updateItem",{itemType:ee.TEMPLATES,id:c.moved.element.id,templateId:c.moved.element.id,data:{rank:u}})}};return(c,u)=>(e.openBlock(),e.createElementBlock("div",f9,[e.createVNode(xt,null,{secondary:e.withCtx(()=>[e.createVNode(G,{label:c.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:n},null,8,["label"])]),_:1}),e.createVNode(e.unref(We),{"model-value":c.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:l},{item:e.withCtx(({element:d})=>{var p;return[e.createVNode(Tp,{id:d.id,title:d.name,phases:d.phases,milestones:(p=d.phases)!=null&&p.length?e.unref(ep)(d.phases):0,activities:d.phases?e.unref(tp)(d.phases):0,"updated-at":d.updatedAt,"updated-by":d.updatedBy,onUpdateTitle:m=>r(d.id,m),onClick:m=>c.$router.push({name:e.unref(at).TEMPLATE_DETAILS,params:{templateId:d.id}}),onDeleteItem:u[0]||(u[0]=(m,h)=>i(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const v9={class:"ao-field__label"},Kn=e.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[e.createElementVNode("span",v9,e.toDisplayString(t.label),1),e.renderSlot(t.$slots,"default")],2))}}),h9=["type","value","disabled","readonly"],C9=e.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:t}){const o=a,s=e.computed(()=>o.modelModifiers.lazy?"change":"input"),n=r=>{o.modelModifiers.number&&(r=Number(r)),t("update:modelValue",r)};return(r,i)=>(e.openBlock(),e.createBlock(Kn,{label:r.label},{default:e.withCtx(()=>[e.createElementVNode("input",e.mergeProps({class:"ao-field__input",type:r.type,value:r.modelValue,disabled:r.isDisabled,readonly:r.isReadonly},{[e.toHandlerKey(s.value)]:i[0]||(i[0]=l=>n(l.target.value))}),null,16,h9)]),_:1},8,["label"]))}}),g9={class:"ao-field"},_9={class:"ao-field__label"},y9=["checked","disabled"],b9=e.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("label",g9,[e.createElementVNode("span",_9,e.toDisplayString(t.label),1),e.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:o[0]||(o[0]=s=>{var n;return t.$emit("update:modelValue",((n=s.target)==null?void 0:n.checked)??!1)})},null,40,y9)]))}});exports.AoAvatar=Oe;exports.AoCardFeed=Eo;exports.AoCheckboxField=b9;exports.AoColorPicker=Aa;exports.AoFeed=qn;exports.AoField=Kn;exports.AoInputField=C9;exports.AoMultiselect=le;exports.AoProjectPhases=$o;exports.AoTabBar=qt;exports.AoTemplateDetails=Zn;exports.AoTemplates=ms;exports.AoTemplatesList=Yn;exports.EstimationUnit=cn;exports.TemplateItemTypeEnum=ln;exports.activityFeedStatus=f2;exports.durationTypes=m2;exports.feedFilterTypes=et;exports.getProjectOverviewRoutes=m9;exports.getTemplateRoutes=p9;exports.listUpdateTypes=v2;exports.milestoneStatus=It;exports.projectOverviewRoutes=oe;exports.ruleComparators=nn;exports.ruleDurationUnits=rn;exports.ruleTriggerTypes=sn;exports.templateItemType=ee;exports.templateRouteNames=at;
104
+ */function Fa(n){let e={r:0,g:0,b:0,a:1};/#/.test(n)?e=Gze(n):/rgb/.test(n)?e=y9(n):typeof n=="string"?e=y9(`rgba(${n})`):Object.prototype.toString.call(n)==="[object Object]"&&(e=n);const{r:t,g:r,b:o,a:i}=e,{h:s,s:l,v:a}=Jze(e);return{r:t,g:r,b:o,a:i===void 0?1:i,h:s,s:l,v:a}}function l5(n){const e=document.createElement("canvas"),t=e.getContext("2d"),r=n*2;return e.width=r,e.height=r,t.fillStyle="#ffffff",t.fillRect(0,0,r,r),t.fillStyle="#ccd5db",t.fillRect(0,0,n,n),t.fillRect(n,n,n,n),e}function Ck(n,e,t,r,o,i){const s=n==="l",l=e.createLinearGradient(0,0,s?t:0,s?0:r);l.addColorStop(.01,o),l.addColorStop(.99,i),e.fillStyle=l,e.fillRect(0,0,t,r)}function Zze({r:n,g:e,b:t},r){const o=s=>("0"+Number(s).toString(16)).slice(-2),i=`#${o(n)}${o(e)}${o(t)}`;return r?i.toUpperCase():i}function Gze(n){n=n.slice(1);const e=t=>parseInt(t,16)||0;return{r:e(n.slice(0,2)),g:e(n.slice(2,4)),b:e(n.slice(4,6))}}function y9(n){return typeof n=="string"?(n=(/rgba?\((.*?)\)/.exec(n)||["","0,0,0,1"])[1].split(","),{r:Number(n[0])||0,g:Number(n[1])||0,b:Number(n[2])||0,a:Number(n[3]?n[3]:1)}):n}function Jze({r:n,g:e,b:t}){n=n/255,e=e/255,t=t/255;const r=Math.max(n,e,t),o=Math.min(n,e,t),i=r-o;let s=0;r===o?s=0:r===n?e>=t?s=60*(e-t)/i:s=60*(e-t)/i+360:r===e?s=60*(t-n)/i+120:r===t&&(s=60*(n-e)/i+240),s=Math.floor(s);let l=parseFloat((r===0?0:1-o/r).toFixed(2)),a=parseFloat(r.toFixed(2));return{h:s,s:l,v:a}}var a5=u.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const n=this.$refs.canvasSaturation,e=this.size,t=n.getContext("2d");n.width=e,n.height=e,t.fillStyle=this.color,t.fillRect(0,0,e,e),Ck("l",t,e,e,"#FFFFFF","rgba(255,255,255,0)"),Ck("p",t,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(n){const{top:e,left:t}=this.$el.getBoundingClientRect(),r=n.target.getContext("2d"),o=s=>{let l=s.clientX-t,a=s.clientY-e;l<0&&(l=0),a<0&&(a=0),l>this.size&&(l=this.size),a>this.size&&(a=this.size),this.slideSaturationStyle={left:l-5+"px",top:a-5+"px"};const c=r.getImageData(Math.min(l,this.size-1),Math.min(a,this.size-1),1,1),[d,h,f]=c.data;this.$emit("selectSaturation",{r:d,g:h,b:f})};o(n);const i=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}}});const Yze={ref:"canvasSaturation"};function Xze(n,e,t,r,o,i){return u.openBlock(),u.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=u.withModifiers((...s)=>n.selectSaturation&&n.selectSaturation(...s),["prevent","stop"]))},[u.createVNode("canvas",Yze,null,512),u.createVNode("div",{style:n.slideSaturationStyle,class:"slide"},null,4)],32)}a5.render=Xze;a5.__file="src/color/Saturation.vue";var c5=u.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const n=this.$refs.canvasHue,e=this.width,t=this.height,r=n.getContext("2d");n.width=e,n.height=t;const o=r.createLinearGradient(0,0,0,t);o.addColorStop(0,"#FF0000"),o.addColorStop(.17*1,"#FF00FF"),o.addColorStop(.17*2,"#0000FF"),o.addColorStop(.17*3,"#00FFFF"),o.addColorStop(.17*4,"#00FF00"),o.addColorStop(.17*5,"#FFFF00"),o.addColorStop(1,"#FF0000"),r.fillStyle=o,r.fillRect(0,0,e,t)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(n){const{top:e}=this.$el.getBoundingClientRect(),t=n.target.getContext("2d"),r=i=>{let s=i.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height),this.slideHueStyle={top:s-2+"px"};const l=t.getImageData(0,Math.min(s,this.height-1),1,1),[a,c,d]=l.data;this.$emit("selectHue",{r:a,g:c,b:d})};r(n);const o=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",o)}}});const Qze={ref:"canvasHue"};function eVe(n,e,t,r,o,i){return u.openBlock(),u.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=u.withModifiers((...s)=>n.selectHue&&n.selectHue(...s),["prevent","stop"]))},[u.createVNode("canvas",Qze,null,512),u.createVNode("div",{style:n.slideHueStyle,class:"slide"},null,4)],32)}c5.render=eVe;c5.__file="src/color/Hue.vue";var u5=u.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const n=this.$refs.canvasAlpha,e=this.width,t=this.height,r=this.alphaSize,o=l5(r),i=n.getContext("2d");n.width=e,n.height=t,i.fillStyle=i.createPattern(o,"repeat"),i.fillRect(0,0,e,t),Ck("p",i,e,t,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(n){const{top:e}=this.$el.getBoundingClientRect(),t=o=>{let i=o.clientY-e;i<0&&(i=0),i>this.height&&(i=this.height);let s=parseFloat((i/this.height).toFixed(2));this.$emit("selectAlpha",s)};t(n);const r=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}}});const tVe={ref:"canvasAlpha"};function nVe(n,e,t,r,o,i){return u.openBlock(),u.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=u.withModifiers((...s)=>n.selectAlpha&&n.selectAlpha(...s),["prevent","stop"]))},[u.createVNode("canvas",tVe,null,512),u.createVNode("div",{style:n.slideAlphaStyle,class:"slide"},null,4)],32)}u5.render=nVe;u5.__file="src/color/Alpha.vue";var d5=u.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const n=this.$el,e=this.width,t=this.height,r=this.alphaSize,o=l5(r),i=n.getContext("2d");n.width=e,n.height=t,i.fillStyle=i.createPattern(o,"repeat"),i.fillRect(0,0,e,t),i.fillStyle=this.color,i.fillRect(0,0,e,t)}}});function rVe(n,e,t,r,o,i){return u.openBlock(),u.createBlock("canvas")}d5.render=rVe;d5.__file="src/color/Preview.vue";var f5=u.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(n){this.isSucking=!1,this.suckColor(n)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(n){n.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(n){const{clientX:e,clientY:t}=n,{top:r,left:o,width:i,height:s}=this.suckerCanvas.getBoundingClientRect(),l=e-o,a=t-r,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,i-1),Math.min(a,s-1),1,1);let[h,f,g,p]=d.data;p=parseFloat((p/255).toFixed(2));const m=this.suckerPreview.style;Object.assign(m,{position:"absolute",left:e+20+"px",top:t-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${h}, ${f}, ${g}, ${p})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&t>=this.suckerArea[1]&&e<=this.suckerArea[2]&&t<=this.suckerArea[3]?m.display="":m.display="none"},suckColor(n){n&&n.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),n.addEventListener("click",e=>{const{clientX:t,clientY:r}=e,{top:o,left:i,width:s,height:l}=n.getBoundingClientRect(),a=t-i,c=r-o,h=n.getContext("2d").getImageData(Math.min(a,s-1),Math.min(c,l-1),1,1);let[f,g,p,m]=h.data;m=parseFloat((m/255).toFixed(2)),this.$emit("selectSucker",{r:f,g,b:p,a:m})}))}}});const oVe=u.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),iVe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},sVe=u.createVNode("g",{fill:"none","fill-rule":"evenodd"},[u.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[u.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),u.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[u.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function lVe(n,e,t,r,o,i){return u.openBlock(),u.createBlock("div",null,[n.isSucking?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createBlock("svg",{key:0,class:[{active:n.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...s)=>n.openSucker&&n.openSucker(...s))},[oVe],2)),n.isSucking?(u.openBlock(),u.createBlock("svg",iVe,[sVe])):u.createCommentVNode("v-if",!0)])}f5.render=lVe;f5.__file="src/color/Sucker.vue";var h5=u.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(n,{emit:e}){return{modelColor:u.computed({get(){return n.color||""},set(i){e("inputColor",i)}}),handleFocus:i=>{e("inputFocus",i)},handleBlur:i=>{e("inputBlur",i)}}}});const aVe={class:"color-type"},cVe={class:"name"};function uVe(n,e,t,r,o,i){return u.openBlock(),u.createBlock("div",aVe,[u.createVNode("span",cVe,u.toDisplayString(n.name),1),u.withDirectives(u.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>n.modelColor=s),class:"value",onFocus:e[2]||(e[2]=(...s)=>n.handleFocus&&n.handleFocus(...s)),onBlur:e[3]||(e[3]=(...s)=>n.handleBlur&&n.handleBlur(...s))},null,544),[[u.vModelText,n.modelColor]])])}h5.render=uVe;h5.__file="src/color/Box.vue";var g5=u.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(n,{emit:e}){const t=u.ref(),r=u.ref([]),o=u.ref();n.colorsHistoryKey&&localStorage&&(r.value=JSON.parse(localStorage.getItem(n.colorsHistoryKey))||[]),o.value=l5(4).toDataURL(),u.onUnmounted(()=>{i(t.value)});function i(l){if(!l)return;const a=r.value||[],c=a.indexOf(l);c>=0&&a.splice(c,1),a.length>=8&&(a.length=7),a.unshift(l),r.value=a||[],localStorage&&n.colorsHistoryKey&&localStorage.setItem(n.colorsHistoryKey,JSON.stringify(a))}function s(l){e("selectColor",l)}return{setColorsHistory:i,colorsHistory:r,color:t,imgAlphaBase64:o,selectColor:s}}});const dVe={class:"colors"},fVe={key:0,class:"colors history"};function hVe(n,e,t,r,o,i){return u.openBlock(),u.createBlock("div",null,[u.createVNode("ul",dVe,[(u.openBlock(!0),u.createBlock(u.Fragment,null,u.renderList(n.colorsDefault,s=>(u.openBlock(),u.createBlock("li",{key:s,class:"item",onClick:l=>n.selectColor(s)},[u.createVNode("div",{style:{background:`url(${n.imgAlphaBase64})`},class:"alpha"},null,4),u.createVNode("div",{style:{background:s},class:"color"},null,4)],8,["onClick"]))),128))]),n.colorsHistory.length?(u.openBlock(),u.createBlock("ul",fVe,[(u.openBlock(!0),u.createBlock(u.Fragment,null,u.renderList(n.colorsHistory,s=>(u.openBlock(),u.createBlock("li",{key:s,class:"item",onClick:l=>n.selectColor(s)},[u.createVNode("div",{style:{background:`url(${n.imgAlphaBase64})`},class:"alpha"},null,4),u.createVNode("div",{style:{background:s},class:"color"},null,4)],8,["onClick"]))),128))])):u.createCommentVNode("v-if",!0)])}g5.render=hVe;g5.__file="src/color/Colors.vue";var sd=u.defineComponent({components:{Saturation:a5,Hue:c5,Alpha:u5,Preview:d5,Sucker:f5,Box:h5,Colors:g5},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return Zze(this.rgba,!0)}},created(){Object.assign(this,Fa(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(n){const{r:e,g:t,b:r,h:o,s:i,v:s}=Fa(n);Object.assign(this,{r:e,g:t,b:r,h:o,s:i,v:s}),this.setText()},handleFocus(n){this.$emit("inputFocus",n)},handleBlur(n){this.$emit("inputBlur",n)},selectHue(n){const{r:e,g:t,b:r,h:o,s:i,v:s}=Fa(n);Object.assign(this,{r:e,g:t,b:r,h:o,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(n){this.a=n,this.setText()},inputHex(n){const{r:e,g:t,b:r,a:o,h:i,s,v:l}=Fa(n);Object.assign(this,{r:e,g:t,b:r,a:o,h:i,s,v:l}),this.modelHex=n,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(n){const{r:e,g:t,b:r,a:o,h:i,s,v:l}=Fa(n);Object.assign(this,{r:e,g:t,b:r,a:o,h:i,s,v:l}),this.modelHex=this.hexString,this.modelRgba=n,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(n){this.$emit("openSucker",n)},selectSucker(n){const{r:e,g:t,b:r,a:o,h:i,s,v:l}=Fa(n);Object.assign(this,{r:e,g:t,b:r,a:o,h:i,s,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(n){const{r:e,g:t,b:r,a:o,h:i,s,v:l}=Fa(n);Object.assign(this,{r:e,g:t,b:r,a:o,h:i,s,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const gVe={class:"color-set"};function pVe(n,e,t,r,o,i){const s=u.resolveComponent("Saturation"),l=u.resolveComponent("Hue"),a=u.resolveComponent("Alpha"),c=u.resolveComponent("Preview"),d=u.resolveComponent("Sucker"),h=u.resolveComponent("Box"),f=u.resolveComponent("Colors");return u.openBlock(),u.createBlock("div",{class:["hu-color-picker",{light:n.isLightTheme}],style:{width:n.totalWidth+"px"}},[u.createVNode("div",gVe,[u.createVNode(s,{ref:"saturation",color:n.rgbString,hsv:n.hsv,size:n.hueHeight,onSelectSaturation:n.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),u.createVNode(l,{ref:"hue",hsv:n.hsv,width:n.hueWidth,height:n.hueHeight,onSelectHue:n.selectHue},null,8,["hsv","width","height","onSelectHue"]),u.createVNode(a,{ref:"alpha",color:n.rgbString,rgba:n.rgba,width:n.hueWidth,height:n.hueHeight,onSelectAlpha:n.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),u.createVNode("div",{style:{height:n.previewHeight+"px"},class:"color-show"},[u.createVNode(c,{color:n.rgbaString,width:n.previewWidth,height:n.previewHeight},null,8,["color","width","height"]),n.suckerHide?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createBlock(d,{key:0,"sucker-canvas":n.suckerCanvas,"sucker-area":n.suckerArea,onOpenSucker:n.openSucker,onSelectSucker:n.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),u.createVNode(h,{name:"HEX",color:n.modelHex,onInputColor:n.inputHex,onInputFocus:n.handleFocus,onInputBlur:n.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),u.createVNode(h,{name:"RGBA",color:n.modelRgba,onInputColor:n.inputRgba,onInputFocus:n.handleFocus,onInputBlur:n.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),u.createVNode(f,{color:n.rgbaString,"colors-default":n.colorsDefault,"colors-history-key":n.colorsHistoryKey,onSelectColor:n.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),u.createCommentVNode(" custom options "),u.renderSlot(n.$slots,"default")],6)}sd.render=pVe;sd.__file="src/color/ColorPicker.vue";sd.install=n=>{n.component(sd.name,sd)};const mVe={class:"color-picker-wrapper"},Py=u.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(n,{emit:e}){const t=n,r=e,o=u.ref(!1),i=u.ref(null),s=u.ref(null),l=u.ref(0),a=u.ref(0),c=async p=>{s.value=p,o.value=!0,await u.nextTick();const m=p.getBoundingClientRect(),_=i.value,C=(_==null?void 0:_.offsetHeight)||300,y=window.innerHeight-m.bottom,v=m.top,k=y<C&&v>C;console.log("pickerHeight = "+C),l.value=k?m.top-C-8:m.bottom+8,a.value=m.left,setTimeout(()=>{window.addEventListener("click",h)},0)},d=u.computed(()=>({position:"fixed",top:`${l.value}px`,left:`${a.value}px`,zIndex:1e3})),h=p=>{const m=p.target;i.value&&!i.value.contains(m)&&(o.value=!1,r("update:color",f.value),window.removeEventListener("click",h))};u.onBeforeUnmount(()=>{window.removeEventListener("click",h)}),u.watch(()=>t.color,p=>{o.value||(f.value=p)});const f=u.ref(t.color),g=p=>{const{r:m,g:_,b:C,a:y}=p.rgba;f.value=`rgba(${m}, ${_}, ${C}, ${y})`};return(p,m)=>(u.openBlock(),u.createElementBlock("div",mVe,[u.renderSlot(p.$slots,"clickable",{openPicker:c,bgColor:n.color}),o.value?(u.openBlock(),u.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:i,class:"color-picker",style:u.normalizeStyle(d.value)},[u.createVNode(u.unref(sd),{class:"color-picker-box",theme:"light",color:n.color,onChangeColor:g},null,8,["color"])],4)):u.createCommentVNode("",!0)]))}});const _Ve={class:"ao-card-project-phase__header"},yVe={class:"ao-card-project-item__title-line"},vVe={key:0,class:"ao-card-project-item-phase__estimation"},CVe={class:"ao-card-project-phase__footer"},bVe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},kVe={class:"ao-card-project-phase__subitem"},xVe={class:"ao-card-project-phase__subitem"},SVe={key:0,class:"ao-card-project-phase__secondary"},wVe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},TVe=u.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(n,{emit:e}){const t=n,r=e,o=m=>{r("update:title",m)},i=u.computed(()=>{var m;return((m=t.milestones)==null?void 0:m.reduce((_,C)=>{var y;return _+((y=C.activities)==null?void 0:y.reduce((v,k)=>v+(k.estimation||0),0))},0))||0}),s=u.computed(()=>!t.milestones||!t.timeTrackingData?0:t.milestones.reduce((m,_)=>{var C;return m+(((C=_.activities)==null?void 0:C.reduce((y,v)=>{var x;const k=(x=t.timeTrackingData)==null?void 0:x[v.id];return y+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=u.computed(()=>t.estimationUnit==="days"?"d":"h"),a=u.computed(()=>f0(s.value,t.estimationUnit)),c=u.computed(()=>{var m;return(m=t.milestones)==null?void 0:m.length}),d=u.computed(()=>{var m;return(m=t.milestones)==null?void 0:m.filter(_=>_.status===Mh.done).length}),h=u.computed(()=>(d.value||0)/(c.value||1)),f=u.computed({get:()=>t.deadline??"",set:m=>r("update:deadline",m!=null&&m.length?m:null)}),g=u.computed({get:()=>t.color,set:m=>{r("updatePhase",{id:t.id,color:m})}}),p=(m,_)=>{const C=m.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||_(C)};return(m,_)=>(u.openBlock(),u.createBlock(Py,{color:g.value,"onUpdate:color":_[2]||(_[2]=C=>g.value=C)},{clickable:u.withCtx(({openPicker:C,bgColor:y})=>[u.createVNode(Ly,{class:"ao-card-project-phase","is-clickable":n.isEditable,color:y,withLeftBorder:!0,onClick:v=>p(v,C)},u.createSlots({default:u.withCtx(()=>[u.createElementVNode("div",yVe,[u.createVNode(nr,{id:n.id,class:"ao-card-project-phase__title",title:n.name||"",level:4,"is-editable":n.isEditable,"onUpdate:title":o},null,8,["id","title","is-editable"]),i.value||s.value?(u.openBlock(),u.createElementBlock("span",vVe," ("+u.toDisplayString(a.value)+"/"+u.toDisplayString(i.value)+u.toDisplayString(l.value)+")",1)):u.createCommentVNode("",!0)])]),footer:u.withCtx(()=>[u.createElementVNode("div",CVe,[c.value?(u.openBlock(),u.createElementBlock("div",bVe,[u.createElementVNode("div",kVe,[u.createVNode(pt,{name:"MountainFlagOutlineRounded",size:"sm"}),u.createElementVNode("span",xVe,u.toDisplayString(d.value)+" / "+u.toDisplayString(c.value),1)]),u.createVNode(Fy,{percentages:h.value,class:"ao-card-project-phase__progress",color:n.color},null,8,["percentages","color"]),m.$slots.secondary?(u.openBlock(),u.createElementBlock("div",SVe,[u.renderSlot(m.$slots,"secondary")])):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(["ao-card-project-phase__footer-row",f.value?"":"ao-card-project-phase__no_deadline"])},[n.isEditable?u.withDirectives((u.openBlock(),u.createElementBlock("input",{key:0,"onUpdate:modelValue":_[1]||(_[1]=v=>f.value=v),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[u.vModelText,f.value,void 0,{lazy:!0}]]):u.createCommentVNode("",!0),u.createElementVNode("span",wVe,u.toDisplayString(u.unref(h0)(n.deadline)),1)],2)])]),_:2},[n.isEditable?{name:"header",fn:u.withCtx(()=>[u.createElementVNode("div",_Ve,[u.createVNode(Be,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:n.active?m.$t("archive"):m.$t("unarchive"),onClick:_[0]||(_[0]=u.withModifiers(()=>n.active?m.$emit("archivePhase",{id:n.id}):m.$emit("unarchivePhase",{id:n.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const EVe=u.defineComponent({__name:"AoBadge",props:{color:{}},setup(n){return(e,t)=>(u.openBlock(),u.createElementBlock("span",{class:"aoBadge",style:u.normalizeStyle({backgroundColor:n.color})},null,4))}});const NVe={class:"ao-card-project-milestone__default"},$Ve={class:"ao-title-with-badge-wrapper"},AVe={class:"ao-card-project-item__title-line"},MVe={key:0,class:"ao-card-project-item-milestone__estimation"},OVe={key:0,class:"ao-card-project-milestone__archive"},DVe={class:"ao-card-project-milestone__activities"},LVe={class:"ao-card-project-milestone__activities-row"},FVe={class:"ao-card-project-milestone__subitem"},PVe={class:"ao-card-project-milestone__subitem"},IVe={key:1,class:"ao-card-project-milestone__secondary"},BVe={class:"ao-card-project-milestone__footer"},RVe={key:1,class:"ao-field ao-card-project-milestone__deadline"},zVe={class:"ao-field__label"},VVe={key:2,class:"ao-card-project-milestone__assignee"},WVe=u.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(n,{emit:e}){const t=n,r=e,o=u.computed(()=>{var f;return((f=t.activities)==null?void 0:f.reduce((g,p)=>g+(p.estimation||0),0))||0}),i=u.computed(()=>!t.activities||!t.timeTrackingData?0:t.activities.reduce((f,g)=>{var m;const p=(m=t.timeTrackingData)==null?void 0:m[g.id];return f+((p==null?void 0:p.timeSpent)||0)},0)),s=u.computed(()=>t.estimationUnit==="days"?"d":"h"),l=u.computed(()=>f0(i.value,t.estimationUnit));u.computed(()=>{const f=i.value/60;return f%1===0?f.toString():f.toFixed(2)});const a=u.computed(()=>{var f;return(f=t.activities)==null?void 0:f.length}),c=u.computed(()=>{var f;return(f=t.activities)==null?void 0:f.filter(g=>xk(g,t.closedStatus)).length}),d=u.computed(()=>(c.value||0)/(a.value||1)),h=f=>{r("updateMilestone",{id:t.id,name:f})};return(f,g)=>(u.openBlock(),u.createBlock(Ly,{class:u.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!n.readonly,"tag-name":"li","is-selected":n.isSelected,color:n.phaseColor},{default:u.withCtx(()=>[u.createElementVNode("div",NVe,[u.createElementVNode("div",$Ve,[u.createVNode(EVe,{color:n.color||""},null,8,["color"]),u.createElementVNode("div",AVe,[u.createVNode(nr,{id:n.id,title:n.name||"",level:5,"is-editable":!n.readonly&&n.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":h},null,8,["id","title","is-editable"]),o.value||i.value?(u.openBlock(),u.createElementBlock("span",MVe," ("+u.toDisplayString(l.value)+"/"+u.toDisplayString(o.value)+u.toDisplayString(s.value)+")",1)):u.createCommentVNode("",!0)])]),!n.readonly&&n.isEditable?(u.openBlock(),u.createElementBlock("div",OVe,[u.createVNode(Be,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:n.active?f.$t("archive"):f.$t("unarchive"),onClick:g[0]||(g[0]=u.withModifiers(()=>n.active?f.$emit("archiveMilestone",{id:n.id}):f.$emit("unarchiveMilestone",{id:n.id}),["stop"]))},null,8,["label"])])):u.createCommentVNode("",!0)]),u.createElementVNode("div",DVe,[u.createElementVNode("div",LVe,[a.value?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createElementVNode("div",FVe,[u.createVNode(pt,{name:"SelectCheckBox",size:"sm"}),u.createElementVNode("span",PVe,u.toDisplayString(c.value)+" / "+u.toDisplayString(a.value),1)]),u.createVNode(Fy,{percentages:d.value,color:n.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):u.createCommentVNode("",!0),f.$slots.secondary?(u.openBlock(),u.createElementBlock("div",IVe,[u.renderSlot(f.$slots,"secondary")])):u.createCommentVNode("",!0)])])]),footer:u.withCtx(()=>[u.createElementVNode("div",BVe,[n.important?(u.openBlock(),u.createBlock(pt,{key:0,name:"FlagRounded",class:u.normalizeClass(n.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):u.createCommentVNode("",!0),n.deadline?(u.openBlock(),u.createElementBlock("label",RVe,[u.createElementVNode("span",zVe,u.toDisplayString(u.unref(h0)(n.deadline)),1)])):u.createCommentVNode("",!0),n.assignee?(u.openBlock(),u.createElementBlock("div",VVe,[u.createVNode(js,{"user-name":u.unref(W9)(n.assignee),"avatar-url":n.assignee.avatarUrl,color:n.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):u.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const KVe={class:"ao-mapping-card-project-phase__header"},UVe={class:"ao-card-project-item__title-line"},HVe={key:0,class:"ao-card-project-item-phase__estimation"},qVe={class:"ao-mapping-card-project-phase__footer"},jVe={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},ZVe={class:"ao-mapping-card-project-phase__subitem"},GVe={class:"ao-mapping-card-project-phase__subitem"},JVe={key:0,class:"ao-mapping-card-project-phase__secondary"},YVe={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},XVe=u.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(n,{emit:e}){const t=n,r=e,o=m=>{r("update:title",m)},i=u.computed(()=>{var m;return((m=t.milestones)==null?void 0:m.reduce((_,C)=>{var y;return _+((y=C.activities)==null?void 0:y.reduce((v,k)=>v+(k.estimation||0),0))},0))||0}),s=u.computed(()=>!t.milestones||!t.timeTrackingData?0:t.milestones.reduce((m,_)=>{var C;return m+(((C=_.activities)==null?void 0:C.reduce((y,v)=>{var x;const k=(x=t.timeTrackingData)==null?void 0:x[v.id];return y+((k==null?void 0:k.timeSpent)||0)},0))||0)},0)),l=u.computed(()=>t.estimationUnit==="days"?"d":"h"),a=u.computed(()=>f0(s.value,t.estimationUnit)),c=u.computed(()=>{var m;return(m=t.milestones)==null?void 0:m.length}),d=u.computed(()=>{var m;return(m=t.milestones)==null?void 0:m.filter(_=>_.status===Mh.done).length}),h=u.computed(()=>(d.value||0)/(c.value||1)),f=u.computed({get:()=>t.deadline??"",set:m=>r("update:deadline",m!=null&&m.length?m:null)}),g=u.computed({get:()=>t.color,set:m=>{r("updatePhase",{id:t.id,color:m})}}),p=(m,_)=>{const C=m.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||_()};return(m,_)=>(u.openBlock(),u.createBlock(Py,{color:g.value,"onUpdate:color":_[2]||(_[2]=C=>g.value=C)},{clickable:u.withCtx(({openPicker:C,bgColor:y})=>[u.createVNode(Ly,{class:"ao-mapping-card-project-phase","is-clickable":n.isEditable,color:y,withLeftBorder:!0,onClick:v=>p(v,C)},u.createSlots({default:u.withCtx(()=>[u.createElementVNode("div",UVe,[u.createVNode(nr,{id:n.id,class:"ao-mapping-card-project-phase__title",title:n.name||"",level:4,"is-editable":n.isEditable,"onUpdate:title":o},null,8,["id","title","is-editable"]),i.value||s.value?(u.openBlock(),u.createElementBlock("span",HVe," ("+u.toDisplayString(a.value)+"/"+u.toDisplayString(i.value)+u.toDisplayString(l.value)+")",1)):u.createCommentVNode("",!0)])]),footer:u.withCtx(()=>[u.createElementVNode("div",qVe,[c.value?(u.openBlock(),u.createElementBlock("div",jVe,[u.createElementVNode("div",ZVe,[u.createVNode(pt,{name:"MountainFlagOutlineRounded",size:"sm"}),u.createElementVNode("span",GVe,u.toDisplayString(d.value)+" / "+u.toDisplayString(c.value),1)]),u.createVNode(Fy,{percentages:h.value,class:"ao-mapping-card-project-phase__progress",color:g.value},null,8,["percentages","color"]),m.$slots.secondary?(u.openBlock(),u.createElementBlock("div",JVe,[u.renderSlot(m.$slots,"secondary")])):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(["ao-mapping-card-project-phase__footer-row",f.value?"":"ao-mapping-card-project-phase__no_deadline"])},[n.isEditable?u.withDirectives((u.openBlock(),u.createElementBlock("input",{key:0,"onUpdate:modelValue":_[1]||(_[1]=v=>f.value=v),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[u.vModelText,f.value,void 0,{lazy:!0}]]):u.createCommentVNode("",!0),u.createElementVNode("span",YVe,u.toDisplayString(u.unref(h0)(n.deadline)),1)],2)])]),_:2},[n.isEditable?{name:"header",fn:u.withCtx(()=>[u.createElementVNode("div",KVe,[u.createVNode(Be,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:n.active?m.$t("archive"):m.$t("unarchive"),onClick:_[0]||(_[0]=u.withModifiers(()=>n.active?m.$emit("archivePhase",{id:n.id}):m.$emit("unarchivePhase",{id:n.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const QVe={class:"ao-project-phase"},eWe={key:0,class:"ao-project-phase__drag ao-card__drag"},tWe={key:1,class:"ao-project-phase__col-phase"},nWe={key:2,class:"ao-mapping-project-phase__col-phase"},rWe={key:0,class:"ao-project-phase__col-milestones"},oWe={class:"ao-project-phase__milestones-list-footer"},iWe=u.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(n,{emit:e}){const{t}=Gs(),r=n,o=e;u.watch(()=>r.phase.milestones,(v,k)=>{Ts(v,k)});const i=v=>{o("updatePhase",{id:r.phase.id,name:v})},s=v=>{o("updatePhase",{id:r.phase.id,deadline:v})},l=v=>{o("updatePhase",v)},a=u.computed(()=>r.phase.milestones.map(v=>tU(v,r.closedStatus))),c=v=>{const{name:k,rank:x}=pc(a.value??[],"milestone",t);o("addMilestone",{name:k,rank:x,phaseId:v})},d=v=>{o("updateMilestone",v)},h=v=>{o("archiveMilestone",v)},f=v=>{o("unarchiveMilestone",v)},g=v=>{o("archivePhase",v)},p=v=>{o("unarchivePhase",v)},m=v=>{"added"in v?o("updateMilestone",{id:v.added.element.id,phaseId:r.phase.id,rank:ld(a.value,v.added.newIndex)}):"removed"in v||"moved"in v&&o("updateMilestone",{id:v.moved.element.id,rank:ld(a.value,v.moved.newIndex)})},_=Eg.useRoute(),C=u.computed(()=>_.path.includes("/mapping")),y=u.computed(()=>{var v;return r.phase.id!==((v=_.params)==null?void 0:v.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:r.phase.color?{backgroundColor:rU(r.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,k)=>(u.openBlock(),u.createElementBlock("li",QVe,[u.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:u.normalizeStyle(y.value)},[n.isEditable?(u.openBlock(),u.createElementBlock("div",eWe,[u.createVNode(pt,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):u.createCommentVNode("",!0),C.value?(u.openBlock(),u.createElementBlock("div",nWe,[u.createVNode(XVe,{id:n.phase.id,milestones:a.value,name:n.phase.name,deadline:n.phase.deadline,active:n.phase.active,"is-editable":n.isEditable,color:n.phase.color,"estimation-unit":n.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":i,onArchivePhase:g,onUnarchivePhase:p,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(u.openBlock(),u.createElementBlock("div",tWe,[u.createVNode(TVe,{id:n.phase.id,milestones:a.value,name:n.phase.name,deadline:n.phase.deadline,active:n.phase.active,"is-editable":n.isEditable,color:n.phase.color,"time-tracking-data":n.timeTrackingData,"estimation-unit":n.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":i,onArchivePhase:g,onUnarchivePhase:p,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),C.value?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",rWe,[u.createElementVNode("div",{class:"ao-project-phase__milestones",style:u.normalizeStyle(y.value)},[u.createVNode(u.unref(la),u.mergeProps({class:"ao-project-phase__milestones-list",list:a.value,disabled:n.readonly||!n.isEditable,"item-key":"id",group:"kanban"},v.$attrs,{onChange:m}),{item:u.withCtx(({element:x})=>{var b;return[u.createVNode(WVe,{id:x.id,name:x.name,color:x.color,"phase-color":n.phase.color,activities:x.activities,deadline:x.deadline,active:x.active,"is-editable":!n.readonly&&n.isEditable,"is-draggable":!n.readonly&&n.isEditable,"closed-status":n.closedStatus,"is-selected":x.id===((b=v.$route.params)==null?void 0:b.milestoneId),assignee:x.assignee,important:x.important,readonly:n.readonly,"time-tracking-data":n.timeTrackingData,"estimation-unit":n.estimationUnit,class:u.normalizeClass(["ao-project-phase__milestone"]),onClick:T=>!n.readonly&&v.$router.push({name:u.unref(qt).milestone,params:{phaseId:n.phase.id,milestoneId:x.id}}),onUpdateMilestone:d,onArchiveMilestone:h,onUnarchiveMilestone:f},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),u.createElementVNode("div",oWe,[n.isEditable?(u.openBlock(),u.createBlock(aa,{key:0,label:v.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:k[0]||(k[0]=()=>c(n.phase.id))},null,8,["label"])):u.createCommentVNode("",!0)])],4)]))]))}});const sWe={class:"ao-project__phases"},lWe={key:0,class:"ao-project-phase__phases-list-footer"},aWe={class:"ao-project-phase__col-phase"},p5=u.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(n,{emit:e}){const t=n,r=e;u.watch(()=>t.phases,(g,p)=>{Ts(g,p)});const o=g=>{r("addMilestone",g)},i=g=>{r("updateMilestone",g)},s=g=>{r("archiveMilestone",g)},l=g=>{r("unarchiveMilestone",g)},a=g=>{r("archivePhase",g)},c=g=>{r("unarchivePhase",g)},d=g=>{if(g.moved){const p=Mg(g,t.phases??[]);r("updatePhase",{id:g.moved.element.id,rank:p})}},h=g=>{r("updatePhase",g)},f=g=>{r("addPhase",g)};return(g,p)=>(u.openBlock(),u.createElementBlock("div",sWe,[u.createVNode(u.unref(la),{class:"ao-project-phase__phases-list","model-value":n.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:u.withCtx(({element:m})=>[u.createVNode(iWe,{phase:m,"is-editable":!n.readonly&&n.isEditable,"closed-status":n.closedStatus,users:n.users,readonly:n.readonly,"time-tracking-data":n.timeTrackingData,"estimation-unit":n.estimationUnit,onAddMilestone:o,onUpdateMilestone:i,onArchiveMilestone:s,onUnarchiveMilestone:l,onUpdatePhase:h,onArchivePhase:a,onUnarchivePhase:c},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),n.isEditable?(u.openBlock(),u.createElementBlock("div",lWe,[p[0]||(p[0]=u.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),u.createElementVNode("div",aWe,[u.createVNode(aa,{label:g.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:f},null,8,["label"])]),p[1]||(p[1]=u.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):u.createCommentVNode("",!0)]))}});const cWe={class:"ao-add-template-modal__form-body"},uWe={class:"field__row"},dWe={class:"ao-add-template-modal__form-footer"},EP=u.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(n,{emit:e}){const t=n,r=e,o=u.computed(()=>t.templates.map(a=>({value:a.id,label:a.name}))),i=u.ref(null),s=a=>{i.value=a},l=()=>{i.value&&r("apply",i.value,t.projectId)};return(a,c)=>(u.openBlock(),u.createBlock(g0,{size:"sm"},{header:u.withCtx(()=>[u.createVNode(nr,{title:a.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:u.withCtx(()=>[u.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:u.withModifiers(l,["prevent"])},[u.createElementVNode("p",null,u.toDisplayString(a.$t("project.template.apply.notice")),1),u.createElementVNode("div",cWe,[u.createElementVNode("div",uWe,[u.createVNode(Br,{value:i.value,options:o.value,detached:!0,onChange:s},null,8,["value","options"])])]),u.createElementVNode("footer",dWe,[u.createVNode(Be,{label:a.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const fWe={class:"ao-save-template-modal__form-body"},hWe={class:"field__row"},gWe={class:"ao-field ao-field--inline"},pWe={class:"ao-field__label"},mWe={class:"ao-save-template-modal__phases"},_We={class:"ao-field__label"},yWe={class:"ao-save-template-modal__phases-list"},vWe=["value"],CWe={class:"ao-save-template-modal__form-footer"},NP=u.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(n,{emit:e}){const t=n,r=e,o=u.ref(""),i=u.ref([]);u.onMounted(()=>{i.value=t.phases.map(l=>l.id)});const s=()=>{o.value&&r("save",o.value,i.value)};return(l,a)=>(u.openBlock(),u.createBlock(g0,{size:"sm"},{header:u.withCtx(()=>[u.createVNode(nr,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:u.withCtx(()=>[u.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:u.withModifiers(s,["prevent"])},[u.createElementVNode("div",fWe,[u.createElementVNode("div",hWe,[u.createElementVNode("label",gWe,[u.createElementVNode("span",pWe,u.toDisplayString(l.$t("project.template.name.label"))+": ",1),u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),type:"text"},null,512),[[u.vModelText,o.value]])])]),u.createElementVNode("div",mWe,[u.createElementVNode("div",_We,u.toDisplayString(l.$t("project.template.phases.label")),1),u.createElementVNode("div",yWe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.phases,c=>(u.openBlock(),u.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:c.id},[u.withDirectives(u.createElementVNode("input",{type:"checkbox",value:c.id,"onUpdate:modelValue":a[1]||(a[1]=d=>i.value=d)},null,8,vWe),[[u.vModelCheckbox,i.value]]),u.createElementVNode("span",null,u.toDisplayString(c.name),1)]))),128))])])]),u.createElementVNode("footer",CWe,[u.createVNode(Be,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:s},null,8,["label"])])],32)]),_:1}))}});const bWe={class:"ao-project"},kWe={class:"ao-project__body"},xWe=u.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(n,{emit:e}){const{t}=Gs(),r=n,o=e,i=u.computed(()=>r.phases.flatMap(L=>L.milestones)),s=()=>{const{name:L,rank:U}=pc(r.phases,"phase",t);o("addPhase",{name:L,rank:U,projectId:r.project.id})},l=L=>{o("updatePhase",L)},a=L=>{o("archivePhase",L)},c=L=>{o("unarchivePhase",L)},d=L=>{o("copyPhaseToTemplate",L)},h=L=>{o("addMilestone",L)},f=L=>{o("updateMilestone",L)},g=L=>{o("archiveMilestone",L)},p=L=>{o("unarchiveMilestone",L)},m=L=>{o("addActivity",L)},_=L=>{o("update:activity",L)},C=L=>{o("archiveActivity",L)},y=L=>{o("unarchiveActivity",L)},v=L=>{o("addSubtask",L)},k=L=>{o("updateSubtask",L)},x=L=>{o("deleteSubtask",L)},b=u.computed(()=>i.value.flatMap(L=>L.activities)),T=L=>{o("addFiles",L)},w=L=>{o("removeFile",L)},S=L=>{o("addComment",L)},N=L=>{o("updateComment",L)},$=L=>{o("removeComment",L)},O=u.ref(!1),M=u.ref(!1),A=(L,U)=>{o("applyTemplate",{templateId:L,projectId:U}),O.value=!1},F=(L,U)=>{var fe;const W=(fe=r.templates)==null?void 0:fe.at(-1),H=W?Hn.LexoRank.parse(W.rank).genNext():Hn.LexoRank.middle();o("saveTemplate",{templateName:L,rank:H.format(),phaseIds:U}),M.value=!1},P=Eg.useRouter(),z=u.ref("overview"),I=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return u.watch(z,L=>{L==="feed"?(P.push({name:qt.feed}),console.log("Navigating to feed...")):L==="overview"?(P.push({name:qt.project}),console.log("Navigating to feed...")):L==="mapping"&&(P.push({name:qt.mapping}),console.log("Navigating to feed..."))}),(L,U)=>{var H;const W=u.resolveComponent("RouterView");return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",u.mergeProps({class:"ao-project-overview"},L.$attrs),[u.createElementVNode("div",bWe,[u.createVNode(Og,null,{primary:u.withCtx(()=>[u.createVNode(Lg,{tabs:I,modelValue:z.value,"onUpdate:modelValue":U[0]||(U[0]=fe=>z.value=fe)},null,8,["modelValue"]),u.createVNode(Be,{class:"ao-feed__show-archived",size:"sm","icon-name":n.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:L.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":n.showsArchived,onClick:U[1]||(U[1]=fe=>L.$emit("update:showsArchived",!n.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:u.withCtx(()=>[n.isEditable===!0?(u.openBlock(),u.createBlock(Be,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:L.$t("project.template.save.label"),onClick:U[2]||(U[2]=fe=>M.value=!0)},null,8,["label"])):u.createCommentVNode("",!0),n.isEditable===!0?(u.openBlock(),u.createBlock(Be,{key:1,class:"ao-project-overview__add-template",color:"primary",label:L.$t("project.template.apply.label"),onClick:U[3]||(U[3]=fe=>O.value=!0)},null,8,["label"])):u.createCommentVNode("",!0)]),_:1}),u.createElementVNode("div",kWe,[u.createVNode(p5,{phases:n.phases,"closed-status":n.closedStatus,"is-editable":n.isEditable===!0,users:n.users,"time-tracking-data":n.timeTrackingData,"estimation-unit":(H=n.project)==null?void 0:H.estimationUnit,onAddMilestone:h,onUpdateMilestone:f,onArchiveMilestone:g,onUnarchiveMilestone:p,onAddPhase:s,onUpdatePhase:l,onArchivePhase:a,onUnarchivePhase:c,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),u.createVNode(W,{class:"ao-project__sidebar",phases:n.phases,"project-id":n.project.id,"project-name":n.project.name,users:n.users,"is-editable":n.isEditable===!0,"closed-status":n.closedStatus,"time-tracking-data":n.timeTrackingData,onClose:U[4]||(U[4]=fe=>L.$router.push({name:u.unref(qt).project})),onUpdateMilestone:f,onAddActivity:m,onUpdateActivity:_,onArchiveActivity:C,onUnarchiveActivity:y},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[u.createVNode(W,{name:"modal",activities:b.value,"is-task-checkable":n.isTaskCheckable,statuses:n.statuses,"activity-types":n.activityTypes,phases:n.phases,project:n.project,users:n.users,"user-id":n.userId,"is-editable":n.isEditable,"attachment-enabled":n.attachmentEnabled,"time-tracking-data":n.timeTrackingData,"onUpdate:activity":_,onAddSubtask:v,onUpdateSubtask:k,onDeleteSubtask:x,onAddFiles:T,onRemoveFile:w,onAddComment:S,onUpdateComment:N,onRemoveComment:$},{default:u.withCtx(({Component:fe})=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(fe),null,{default:u.withCtx(G=>[u.renderSlot(L.$slots,"activityDetailsBody",u.normalizeProps(u.guardReactiveProps(G)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[M.value?(u.openBlock(),u.createBlock(NP,{key:0,phases:n.phases,onClose:U[5]||(U[5]=fe=>M.value=!1),onSave:F},null,8,["phases"])):u.createCommentVNode("",!0),O.value?(u.openBlock(),u.createBlock(EP,{key:1,"project-id":n.project.id,templates:n.templates,onClose:U[6]||(U[6]=fe=>O.value=!1),onApply:A},null,8,["project-id","templates"])):u.createCommentVNode("",!0)]))],64)}}});const SWe={class:"ao-card-feed__header"},wWe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},TWe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},EWe={class:"ao-card-feed__body"},NWe={key:0,class:"ao-card-feed__breadcrumbs"},$We={class:u.normalizeClass(["ao-card-feed__title-group"])},AWe={class:"ao-card-feed__title-line"},MWe={key:0,class:"ao-card-feed__slug"},OWe={key:1,class:"ao-card-feed__deadline"},DWe={class:"ao-card-feed__footer"},LWe={class:"ao-card-feed__footer-row"},FWe={class:"ao-assignees"},PWe={key:0,class:"ao-assignee"},IWe={key:0,class:"ao-card-feed__subitems"},BWe={key:0,class:"ao-card-feed__subitem"},RWe={class:"ao-card-feed__subitem"},zWe={key:1,class:"ao-card-feed__subitem"},VWe={class:"ao-card-feed__subitem"},WWe={class:"ao-card-feed__timer-wrapper"},KWe={class:"ao-card-feed__footer-row"},UWe={key:0,class:"ao-card-feed__progress-wrapper"},HWe={class:"ao-card-feed__subitem"},qWe={class:"ao-card-feed__subitem"},m5=u.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(n,{emit:e}){const t=n,r=e,o=u.computed(()=>t.tagType==="milestone"?t.milestoneName:t.projectName),i=u.computed(()=>t.tagType==="milestone"?t.milestoneColor:t.projectColor),s=m=>{r("updateActivity",{id:t.id,name:m})},l=u.computed(()=>t.tagType==="milestone"&&t.phaseName?`${t.phaseName}`:t.phaseName&&t.milestoneName?`${t.phaseName} / ${t.milestoneName}`:""),a=u.computed(()=>t.assignee?[t.assignee]:[]),c=u.computed(()=>h0(t.deadline)),d=m=>{r("removeAssignee",m)},h=()=>{r("startTimer",{activityId:t.id,name:t.name,project:t.projectName,projectId:t.projectId,slug:t.slug})},f=u.computed(()=>{var m;return(m=t.tasks)==null?void 0:m.length}),g=u.computed(()=>{var m;return(m=t.tasks)==null?void 0:m.filter(_=>_.isDone).length}),p=u.computed(()=>(g.value||0)/(f.value||1));return(m,_)=>(u.openBlock(),u.createBlock(Ly,{class:u.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":n.isClosed}]),"is-clickable":!0},{header:u.withCtx(()=>[u.createElementVNode("div",SWe,[o.value?(u.openBlock(),u.createBlock(Ah,{key:0,label:o.value,class:"ao-card-feed__project",variant:"solid",color:n.projectColor?void 0:"primary","raw-color":i.value},null,8,["label","color","raw-color"])):u.createCommentVNode("",!0),n.isPrivate||n.important||n.isClosed?(u.openBlock(),u.createElementBlock("div",wWe,[n.isPrivate?(u.openBlock(),u.createBlock(pt,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):u.createCommentVNode("",!0),n.important?(u.openBlock(),u.createBlock(pt,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):u.createCommentVNode("",!0),n.isClosed?(u.openBlock(),u.createBlock(pt,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0),m.$slots.secondary?(u.openBlock(),u.createElementBlock("div",TWe,[u.renderSlot(m.$slots,"secondary")])):u.createCommentVNode("",!0)])]),default:u.withCtx(()=>[u.createElementVNode("div",EWe,[l.value?(u.openBlock(),u.createElementBlock("span",NWe,u.toDisplayString(l.value),1)):u.createCommentVNode("",!0),u.createElementVNode("div",$We,[u.createElementVNode("div",AWe,[n.slug?(u.openBlock(),u.createElementBlock("span",MWe,u.toDisplayString(n.slug)+": ",1)):u.createCommentVNode("",!0),u.createVNode(nr,{id:n.id,title:n.name,level:5,"is-editable":n.isEditable,"onUpdate:title":s,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),n.deadline?(u.openBlock(),u.createElementBlock("span",OWe,u.toDisplayString(c.value),1)):u.createCommentVNode("",!0)])]),footer:u.withCtx(()=>[u.createElementVNode("div",DWe,[u.createElementVNode("div",LWe,[u.createElementVNode("ul",FWe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.value,C=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:C.id},[C?(u.openBlock(),u.createElementBlock("li",PWe,[u.createVNode(js,{"user-name":u.unref(W9)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>d(C.id)},null,8,["user-name","avatar-url","onClose"])])):u.createCommentVNode("",!0)],64))),128))]),n.comments||n.attachments?(u.openBlock(),u.createElementBlock("ul",IWe,[n.comments?(u.openBlock(),u.createElementBlock("li",BWe,[u.createVNode(pt,{name:"ChatOutline",size:"sm"}),u.createElementVNode("span",RWe,u.toDisplayString(n.comments),1)])):u.createCommentVNode("",!0),n.attachments?(u.openBlock(),u.createElementBlock("li",zWe,[u.createVNode(pt,{name:"AttachFileRounded",size:"sm"}),u.createElementVNode("span",VWe,u.toDisplayString(n.attachments),1)])):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0),u.createElementVNode("div",WWe,[u.createVNode(pt,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:u.withModifiers(h,["stop"])})])]),u.createElementVNode("div",KWe,[n.tasks&&n.tasks.length?(u.openBlock(),u.createElementBlock("div",UWe,[u.createElementVNode("div",HWe,[u.createVNode(pt,{name:"SelectCheckBox",size:"sm"}),u.createElementVNode("span",qWe,u.toDisplayString(g.value)+" / "+u.toDisplayString(f.value),1)]),u.createVNode(Fy,{percentages:p.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):u.createCommentVNode("",!0)])])]),_:3},8,["class"]))}});const jWe={class:"ao-project-milestone"},ZWe={class:"ao-project-milestone__header"},GWe={class:"ao-project-milestone__header_line"},JWe={class:"ao-project-milestone__header_line"},YWe={class:"ao-project-milestone__title"},XWe={key:0,class:"ao-fieldset ao-milestone__fieldset"},QWe={class:"ao-field__row ao-milestone__field-row"},eKe={class:"ao-field ao-field--inline"},tKe={class:"ao-field__row ao-milestone__field-row"},nKe={class:"ao-field ao-milestone__field-multiselect"},rKe=["onClick"],oKe={class:"ao-project-milestone__body"},iKe={key:0,class:"ao-project-milestone__footer"},v9=u.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(n,{emit:e}){const{t}=Gs(),r=n,o=e,i=x=>{var b;o("startTimer",x),(b=window.parent)==null||b.postMessage({type:"startTimer",data:x},"*")},s=u.computed(()=>{var x;return(x=r.phases)==null?void 0:x.find(b=>b.id===r.phaseId)}),l=u.computed(()=>{var x;return(x=r.phases)==null?void 0:x.flatMap(b=>b.milestones)}),a=u.computed(()=>{var x;return(x=l.value)==null?void 0:x.find(b=>b.id===r.milestoneId)}),c=u.computed(()=>{var x;return(x=a.value)==null?void 0:x.activities});u.watch(c,(x,b)=>{Ts(x,b)});const d=x=>{o("close",x)},h=()=>{const{name:x,rank:b}=pc(c.value??[],"activity",t);o("addActivity",{milestoneId:r.milestoneId,name:x,rank:b,projectId:r.projectId})},f=x=>{o("updateActivity",x)},g=x=>{c.value&&"moved"in x&&o("updateActivity",{id:x.moved.element.id,rank:ld(c.value,x.moved.newIndex)})},p=u.computed({get:()=>{var x;return(x=a.value)==null?void 0:x.color},set:x=>{a.value&&o("updateMilestone",{id:a.value.id,color:x})}}),m=u.computed({get:()=>{var x;return((x=a==null?void 0:a.value)==null?void 0:x.deadline)??""},set:x=>{a.value&&o("updateMilestone",{id:a.value.id,deadline:x!=null&&x.length?x:null})}}),_=x=>r.closedStatus?xk(x,r.closedStatus):!1,C=u.computed(()=>{var x;return((x=r.users)==null?void 0:x.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))||[]}),y=u.computed({get(){var x,b;return(b=(x=a.value)==null?void 0:x.assignee)!=null&&b.id?[a.value.assignee.id]:[]},set(x){o("updateMilestone",{id:r.milestoneId,assigneeId:x[0]??null})}}),v=u.computed({get(){var x;return((x=a.value)==null?void 0:x.important)??!1},set(x){o("updateMilestone",{id:r.milestoneId,important:x})}}),k=(x,b)=>{const T=x.currentTarget;T instanceof HTMLElement&&b(T)};return(x,b)=>{var T;return u.openBlock(),u.createElementBlock("div",jWe,[u.createElementVNode("header",ZWe,[u.createElementVNode("div",GWe,[u.createVNode(Be,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),u.createElementVNode("div",JWe,[u.createElementVNode("div",YWe,[u.createVNode(nr,{title:((T=a.value)==null?void 0:T.name)||n.milestoneId,level:5},null,8,["title"]),u.createVNode(l6,{modelValue:v.value,"onUpdate:modelValue":b[0]||(b[0]=w=>v.value=w),modelModifiers:{lazy:!0},disabled:!n.isEditable,class:"ao-milestone__important",color:"danger",label:x.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),a.value?(u.openBlock(),u.createElementBlock("div",XWe,[u.createElementVNode("div",QWe,[u.createElementVNode("label",eKe,[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":b[1]||(b[1]=w=>m.value=w),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[u.vModelText,m.value,void 0,{lazy:!0}]])])]),u.createElementVNode("div",tKe,[u.createElementVNode("label",nKe,[u.createVNode(Br,{modelValue:y.value,"onUpdate:modelValue":b[2]||(b[2]=w=>y.value=w),options:C.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:x.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!n.isEditable,caret:n.isEditable},{tag:u.withCtx(({option:w,handleTagRemove:S})=>[u.createVNode(js,{"user-name":w.label,"avatar-url":w.avatar,"is-closable":!0,onClose:N=>S(w,N)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),u.createVNode(Py,{color:p.value,"onUpdate:color":b[3]||(b[3]=w=>p.value=w)},{clickable:u.withCtx(({openPicker:w,bgColor:S})=>[u.createElementVNode("button",{style:u.normalizeStyle({background:S}),class:"color-button",onClick:N=>k(N,w)},null,12,rKe)]),_:1},8,["color"])])):u.createCommentVNode("",!0)]),u.createElementVNode("div",oKe,[u.createVNode(u.unref(la),u.mergeProps({class:"ao-project-milestone__activities",list:c.value,disabled:!n.isEditable,"item-key":"id",group:"kanban"},x.$attrs,{onChange:g}),{item:u.withCtx(({element:w})=>{var S,N,$,O,M;return[u.createVNode(m5,{id:w.id,name:w.name||w.id,"project-id":n.projectId,"phase-name":(S=s.value)==null?void 0:S.name,"milestone-name":(N=a.value)==null?void 0:N.name,"milestone-color":($=a.value)==null?void 0:$.color,deadline:w.deadline,important:w.important,users:n.users,assignee:w.assignee,slug:w.slug,comments:(O=w.comments)==null?void 0:O.length,attachments:(M=w.attachments)==null?void 0:M.length,tasks:w.tasks,"is-editable":n.isEditable,"is-private":w.private,"is-closed":_(w),onClick:A=>x.$router.push({name:u.unref(qt).activity,params:{milestoneId:n.milestoneId,activityId:w.id}}),onUpdateActivity:f,onRemoveAssignee:()=>f({id:w.id,assigneeId:null}),onStartTimer:i},u.createSlots({_:2},[n.isEditable?{name:"secondary",fn:u.withCtx(()=>[n.isEditable&&w.active?(u.openBlock(),u.createBlock(Be,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:x.$t("archive"),onClick:u.withModifiers(()=>x.$emit("archiveActivity",{id:w.id}),["stop"])},null,8,["label","onClick"])):u.createCommentVNode("",!0),n.isEditable&&!w.active?(u.openBlock(),u.createBlock(Be,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:x.$t("feed.activity.unarchive"),onClick:u.withModifiers(()=>x.$emit("unarchiveActivity",{id:w.id}),["stop"])},null,8,["label","onClick"])):u.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),n.isEditable?(u.openBlock(),u.createElementBlock("div",iKe,[u.createVNode(aa,{"icon-name":"Add",label:x.$t("project.activity.add"),onClick:h},null,8,["label"])])):u.createCommentVNode("",!0)])])}}});const sKe=u.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(n,{emit:e}){const t=n,r=e,o=u.computed(()=>{var C;return(C=t.phases)==null?void 0:C.find(y=>y.id===t.phaseId)}),i=u.computed(()=>{var C;return(C=t.phases)==null?void 0:C.flatMap(y=>y.milestones)}),s=u.computed(()=>{var C;return(C=i.value)==null?void 0:C.find(y=>y.id===t.milestoneId)}),l=u.computed(()=>{var C;return(C=t.activities)==null?void 0:C.find(y=>y.id===t.activityId)}),a=C=>{r("update:activity",C)},c=C=>{r("addSubtask",C)},d=C=>{r("updateSubtask",C)},h=C=>{r("deleteSubtask",C)},f=C=>{r("addFiles",C)},g=C=>{r("removeFile",C)},p=C=>{r("addComment",C)},m=C=>{r("updateComment",C)},_=C=>{r("removeComment",C)};return(C,y)=>{var v,k;return l.value?(u.openBlock(),u.createBlock(s5,{key:0,activity:l.value,"activity-types":n.activityTypes,"milestone-id":n.milestoneId,"template-activities":n.activities,"is-template":!1,users:n.users,"user-id":n.userId,"is-task-checkable":n.isTaskCheckable,statuses:n.statuses,breadcrumbs:`${(v=o.value)==null?void 0:v.name} / ${(k=s.value)==null?void 0:k.name}`,"is-editable":n.isEditable,"attachment-enabled":n.attachmentEnabled,projects:[n.project],"time-tracking-data":n.timeTrackingData,onClose:C.$router.back,"onUpdate:activity":a,onAddSubtask:c,onUpdateSubtask:d,onDeleteSubtask:h,onAddFiles:f,onRemoveFile:g,onAddComment:p,onUpdateComment:m,onRemoveComment:_},{default:u.withCtx(x=>[u.renderSlot(C.$slots,"default",u.normalizeProps(u.guardReactiveProps(x)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):u.createCommentVNode("",!0)}}}),lKe={class:"ao-col-header"},aKe=u.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(n){return(e,t)=>(u.openBlock(),u.createElementBlock("header",lKe,[u.createVNode(nr,{title:n.title,class:"ao-col-header__title",level:4},null,8,["title"]),n.items?(u.openBlock(),u.createBlock(Ah,{key:0,label:n.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):u.createCommentVNode("",!0)]))}});function cKe(n){return u.getCurrentScope()?(u.onScopeDispose(n),!0):!1}function s0(n){return typeof n=="function"?n():u.unref(n)}const uKe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const dKe=n=>n!=null,$h=()=>{};function fKe(n,e){function t(...r){return new Promise((o,i)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return t}function hKe(n,e={}){let t,r,o=$h;const i=l=>{clearTimeout(l),o(),o=$h};return l=>{const a=s0(n),c=s0(e.maxWait);return t&&i(t),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((d,h)=>{o=e.rejectOnCancel?h:d,c&&!r&&(r=setTimeout(()=>{t&&i(t),r=null,d(l())},c)),t=setTimeout(()=>{r&&i(r),r=null,d(l())},a)})}}function gKe(n,e=200,t={}){return fKe(hKe(e,t),n)}function z2(n){var e;const t=s0(n);return(e=t==null?void 0:t.$el)!=null?e:t}const pKe=uKe?window:void 0;function mKe(){const n=u.ref(!1),e=u.getCurrentInstance();return e&&u.onMounted(()=>{n.value=!0},e),n}function _Ke(n){const e=mKe();return u.computed(()=>(e.value,!!n()))}function yKe(n,e,t={}){const{root:r,rootMargin:o="0px",threshold:i=.1,window:s=pKe,immediate:l=!0}=t,a=_Ke(()=>s&&"IntersectionObserver"in s),c=u.computed(()=>{const p=s0(n);return(Array.isArray(p)?p:[p]).map(z2).filter(dKe)});let d=$h;const h=u.ref(l),f=a.value?u.watch(()=>[c.value,z2(r),h.value],([p,m])=>{if(d(),!h.value||!p.length)return;const _=new IntersectionObserver(e,{root:z2(m),rootMargin:o,threshold:i});p.forEach(C=>C&&_.observe(C)),d=()=>{_.disconnect(),d=$h}},{immediate:l,flush:"post"}):$h,g=()=>{d(),f(),h.value=!1};return cKe(g),{isSupported:a,isActive:h,pause(){d(),h.value=!1},resume(){h.value=!0},stop:g}}const vKe={class:u.normalizeClass(["ao-list-kanban"])},CKe={class:"ao-list-kanban__header"},bKe={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},kKe={key:1,class:"ao-list-kanban__end"},xKe={key:0,class:"ao-list-kanban__no-more"},SKe={key:1,class:"ao-list-kanban__divider"},wKe={key:1,class:"ao-list-kanban__footer"},TKe=u.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(n,{emit:e}){const t=n,r=e,o=u.ref(!1),i=u.ref(null);yKe(i,([{isIntersecting:h}])=>{o.value=h}),u.watch(o,h=>{h&&t.hasMore&&!t.isLoading&&r("loadMore")});const s=h=>{var f;return t.isEditable===!0?!0:t.userId&&t.isEditable==="only-own"?t.userId===((f=h.assignee)==null?void 0:f.id):!1},l=h=>{r("selectActivity",h)},a=h=>{r("updateActivity",h)},c=h=>{"added"in h?r("updateActivity",{id:h.added.element.id,statusId:t.status.id,rank:ld(t.list,h.added.newIndex)}):"removed"in h||"moved"in h&&r("updateActivity",{id:h.moved.element.id,rank:ld(t.list,h.moved.newIndex)})},d=u.ref(!1);return(h,f)=>(u.openBlock(),u.createElementBlock("div",vKe,[n.title||h.$slots.header?u.renderSlot(h.$slots,"header",{},()=>{var g;return[u.createElementVNode("div",CKe,[n.title?(u.openBlock(),u.createBlock(aKe,{key:0,title:n.title,level:3,items:(g=n.list)==null?void 0:g.length},null,8,["title","items"])):u.createCommentVNode("",!0)])]},void 0,0):u.createCommentVNode("",!0),u.createVNode(u.unref(la),u.mergeProps({class:["ao-list-kanban__list",d.value?"ao-list-kanban__transition":void 0],list:n.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},h.$attrs,{draggable:".ao-list-draggable",disabled:!n.isEditable,onChange:c,onStart:f[1]||(f[1]=g=>d.value=!0),onEnd:f[2]||(f[2]=g=>d.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:u.withCtx(({element:g})=>{var p,m,_,C,y,v,k,x,b,T;return[u.createVNode(m5,{class:u.normalizeClass(s(g)?"ao-list-draggable":""),id:g.id,name:g.name,"project-name":(p=g.project)==null?void 0:p.name,"project-id":(m=g.project)==null?void 0:m.id,"project-color":(_=g.project)==null?void 0:_.color,"phase-name":(y=(C=g.milestone)==null?void 0:C.phase)==null?void 0:y.name,"milestone-name":(v=g.milestone)==null?void 0:v.name,"milestone-color":(k=g.milestone)==null?void 0:k.color,deadline:g.deadline,rules:((x=g.rules)==null?void 0:x.length)||0,tasks:g.tasks,description:g.description,important:g.important,type:g.type,comments:(b=g.comments)==null?void 0:b.length,attachments:(T=g.attachments)==null?void 0:T.length,users:n.users,assignee:g.assignee,slug:g.slug,"is-editable":s(g),"is-private":g.private,"tag-type":n.tagType,onUpdateActivity:[w=>s(g)&&a(w),()=>s(g)&&a],onClick:()=>l(g.id),onRemoveAssignee:()=>s(g)&&a({id:g.id,assigneeId:null}),onStartTimer:f[0]||(f[0]=w=>h.$emit("startTimer",w))},{secondary:u.withCtx(()=>[s(g)&&g.active?(u.openBlock(),u.createBlock(Be,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:h.$t("feed.activity.archive"),onClick:u.withModifiers(()=>h.$emit("archiveActivity",{id:g.id}),["stop"])},null,8,["label","onClick"])):u.createCommentVNode("",!0),s(g)&&!g.active?(u.openBlock(),u.createBlock(Be,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:h.$t("feed.activity.unarchive"),onClick:u.withModifiers(()=>h.$emit("unarchiveActivity",{id:g.id}),["stop"])},null,8,["label","onClick"])):u.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:u.withCtx(()=>[n.isLoading?(u.openBlock(),u.createElementBlock("div",bKe,[u.createVNode(pt,{name:"Loading"})])):n.hasMore?(u.openBlock(),u.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:i,class:"ao-list-kanban__end"},null,512)):(u.openBlock(),u.createElementBlock("div",kKe,[n.noMoreLabel?(u.openBlock(),u.createElementBlock("span",xKe,u.toDisplayString(n.noMoreLabel),1)):n.isEditable?(u.openBlock(),u.createElementBlock("span",SKe)):u.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),h.$slots.footer||n.footerLabel?(u.openBlock(),u.createElementBlock("div",wKe,[u.renderSlot(h.$slots,"footer",{},()=>[n.isEditable?(u.openBlock(),u.createBlock(aa,{key:0,"icon-name":"AddBoxOutlineRounded",label:n.footerLabel,onClick:f[3]||(f[3]=g=>h.$emit("add"))},null,8,["label"])):u.createCommentVNode("",!0)])])):u.createCommentVNode("",!0)]))}});const EKe={class:"ao-field ao-search-field"},NKe=["value","placeholder"],$Ke=u.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(n,{emit:e}){const t=n,r=e,o=async l=>{const c=l.target.value;r("update:modelValue",c,l)},i=gKe(o,t.delay),s=l=>{r("clear",l)};return(l,a)=>(u.openBlock(),u.createElementBlock("div",EKe,[u.createElementVNode("input",{value:n.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:n.placeholder,onInput:a[0]||(a[0]=(...c)=>u.unref(i)&&u.unref(i)(...c)),onKeypress:u.withKeys(o,["enter"])},null,40,NKe),u.createVNode(pt,{name:"SearchRounded",class:u.normalizeClass(`ao-search-field__icon ao-search-field__action ${n.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),u.createVNode(Be,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:u.normalizeClass(`ao-search-field__button ao-search-field__action ${n.modelValue?"ao-search-field__action--visible":""}`),onClick:s},null,8,["class"])]))}});const AKe={class:"ao-feed"},MKe={class:"ao-feed__filters"},OKe={class:"ao-feed__body"},$P=u.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(n,{emit:e}){const{t}=Gs(),r=n,o=e;function i(W,H){o("toast",W,H)}const s=u.toRef(r,"activities"),l=async(W,H)=>{await o("selectActivity",W,H)},a=u.ref({}),c=u.ref(!1),d=u.ref(!1),h=u.computed(()=>r.project?"milestone":"project");u.watch([()=>r.statuses,()=>r.activities,()=>r.initialActivityId,()=>r.initialActivitySlug],async([W,H,fe,G],[ae,R])=>{a.value=Object.fromEntries(W.map(J=>[J.id,H.filter(B=>{var Z;return((Z=B.status)==null?void 0:Z.id)===J.id})])),fe&&!c.value?(l(fe,null),c.value=!0):G&&!c.value&&(l(null,G),c.value=!0),d.value&&Ts(H,R)},{immediate:!0});const f=u.computed(()=>{var W;return!r.selectedActivity||!r.selectedActivity.milestone?"":`${((W=r.selectedActivity.milestone.phase)==null?void 0:W.name)??""} / ${r.selectedActivity.milestone.name??""}`}),g=W=>{var R,J;const H=(R=r.activities)==null?void 0:R.at(-1),fe=H?Hn.LexoRank.parse(H.rank).genNext():Hn.LexoRank.middle(),G=((J=r.activities)==null?void 0:J.length)??0,ae={name:t("activity.defaultName",{idx:G+1}),rank:fe.format(),statusId:W.id};r.filters.assigneeId.length>0&&(ae.assigneeId=r.filters.assigneeId[0]),r.filters.projectId.length>0&&(ae.projectId=r.filters.projectId[0]),r.filters.typeId.length>0&&(ae.typeId=r.filters.typeId[0]),d.value=!0,o("addActivity",ae)},p=(W,H)=>{d.value=!1,o("update:filters",{...r.filters,[W]:H})},m=u.computed(()=>r.project?[r.project]:r.projects??[]),_=u.computed(()=>m.value.map(W=>({value:W.id,label:W.name}))),C=u.computed(()=>{var W;return(W=r.activityTypes)==null?void 0:W.map(H=>({value:H.id,label:H.name}))}),y=u.computed(()=>r.users.map(W=>({value:W.id,label:`${W.firstName} ${W.lastName}`,avatar:W.avatarUrl}))),v=W=>{r.selectedActivity&&o("update:activity",W)},k=W=>{o("update:activity",W)},x=W=>{o("archiveActivity",W)},b=W=>{o("unarchiveActivity",W)},T=W=>{var H;o("startTimer",W),(H=window.parent)==null||H.postMessage({type:"startTimer",data:W},"*")},w=W=>{d.value=!1,o("update:searchText",W)},S=W=>{d.value=!1,o("clear:searchText",W)},N=W=>{r.selectedActivity&&o("addSubtask",W)},$=W=>{r.selectedActivity&&o("updateSubtask",W)},O=W=>{r.selectedActivity&&o("deleteSubtask",W)},M=W=>{o("addFiles",W)},A=W=>{o("removeFile",W)},F=W=>{r.selectedActivity&&o("addComment",{...W,activityId:r.selectedActivity.id})},P=W=>{const{id:H}=r.selectedActivity||{};H&&o("updateComment",W)},z=W=>{const{id:H}=r.selectedActivity||{};H&&o("removeComment",W)},I=Eg.useRouter(),L=u.ref("feed"),U=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return u.watch(L,W=>{W==="feed"?(I.push({name:qt.feed}),console.log("Navigating to feed...")):W==="overview"?(I.push({name:qt.project}),console.log("Navigating to feed...")):W==="mapping"&&(I.push({name:qt.mapping}),console.log("Navigating to feed..."))}),(W,H)=>{var fe;return u.openBlock(),u.createElementBlock("div",AKe,[u.createVNode(Og,null,{primary:u.withCtx(()=>[u.createElementVNode("div",MKe,[u.createVNode(Lg,{tabs:U,modelValue:L.value,"onUpdate:modelValue":H[0]||(H[0]=G=>L.value=G)},null,8,["modelValue"]),u.createVNode($Ke,{"model-value":n.searchText,placeholder:W.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":w,onClear:S},null,8,["model-value","placeholder"]),r.project?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(Br,{key:0,"model-value":n.filters[u.unref(Pa).project],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:W.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":H[1]||(H[1]=G=>p(u.unref(Pa).project,G))},null,8,["model-value","options","placeholder"])),C.value?(u.openBlock(),u.createBlock(Br,{key:1,"model-value":n.filters[u.unref(Pa).type],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:W.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":H[2]||(H[2]=G=>p(u.unref(Pa).type,G))},null,8,["model-value","options","placeholder"])):u.createCommentVNode("",!0),y.value.length?(u.openBlock(),u.createBlock(Br,{key:2,"model-value":n.filters[u.unref(Pa).assignee],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:W.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":H[3]||(H[3]=G=>p(u.unref(Pa).assignee,G))},{tag:u.withCtx(({option:G,handleTagRemove:ae})=>[u.createVNode(js,{"user-name":G.label,"avatar-url":G.avatar,"is-closable":!0,onClose:R=>ae(G,R)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):u.createCommentVNode("",!0)]),u.createVNode(Be,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":n.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:W.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":n.showsOnlyNonAssigned,onClick:H[4]||(H[4]=G=>W.$emit("update:showsOnlyNonAssigned",!n.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),u.createVNode(Be,{class:"ao-feed__only-important",size:"sm","icon-name":n.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:W.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":n.showsOnlyImportant,onClick:H[5]||(H[5]=G=>W.$emit("update:showsOnlyImportant",!n.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),u.createVNode(Be,{class:"ao-feed__show-archived",size:"sm","icon-name":n.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:W.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":n.showsArchivedActivities,onClick:H[6]||(H[6]=G=>W.$emit("update:showsArchivedActivities",!n.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),u.createElementVNode("div",OKe,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.statuses,G=>(u.openBlock(),u.createBlock(TKe,{key:G.id,status:G,list:a.value[G.id],title:G.name,"footer-label":W.$t("feed.activity.add"),users:n.users,"user-id":n.userId,"is-editable":n.isEditable,tagType:h.value,onAdd:()=>g(G),onSelectActivity:l,onArchiveActivity:x,onUnarchiveActivity:b,onUpdateActivity:k,onStartTimer:T},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[n.selectedActivity?(u.openBlock(),u.createBlock(s5,{key:0,activity:n.selectedActivity,"activity-types":n.activityTypes,"milestone-id":(fe=n.selectedActivity.milestone)==null?void 0:fe.id,"template-activities":s.value,users:n.users,"user-id":n.userId,"is-task-checkable":n.isTaskCheckable,statuses:n.statuses,breadcrumbs:f.value,"is-editable":n.isEditable,"attachment-enabled":n.attachmentEnabled,projects:m.value,"time-tracking-data":n.timeTrackingData,onClose:H[7]||(H[7]=()=>l(null,null)),"onUpdate:activity":v,onAddSubtask:N,onUpdateSubtask:$,onDeleteSubtask:O,onAddFiles:M,onRemoveFile:A,onAddComment:F,onUpdateComment:P,onRemoveComment:z,onToast:i},{default:u.withCtx(G=>[u.renderSlot(W.$slots,"activityDetailsBody",u.normalizeProps(u.guardReactiveProps(G)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):u.createCommentVNode("",!0)]))])}}});const DKe={class:"ao-project-mapping"},LKe={class:"ao-project-mapping-mapping__body"},FKe={class:"ao-project-mapping-mapping__phases"},PKe={key:0,class:"ao-project-mapping-mapping__image-wrapper"},IKe=["src","alt"],BKe=u.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(n,{emit:e}){const{t}=Gs(),r=n,o=e,i=()=>{const{name:C,rank:y}=pc(r.phases,"phase",t);o("addPhase",{name:C,rank:y,projectId:r.project.id})},s=C=>{o("updatePhase",C)},l=C=>{o("archivePhase",C)},a=C=>{o("unarchivePhase",C)},c=C=>{o("copyPhaseToTemplate",C)},d=u.ref(!1),h=u.ref(!1),f=(C,y)=>{o("applyTemplate",{templateId:C,projectId:y}),d.value=!1},g=(C,y)=>{var x;const v=(x=r.templates)==null?void 0:x.at(-1),k=v?Hn.LexoRank.parse(v.rank).genNext():Hn.LexoRank.middle();o("saveTemplate",{templateName:C,rank:k.format(),phaseIds:y}),h.value=!1},p=Eg.useRouter(),m=u.ref("mapping"),_=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return u.watch(m,C=>{C==="feed"?(p.push({name:qt.feed}),console.log("Navigating to feed...")):C==="overview"?(p.push({name:qt.project}),console.log("Navigating to feed...")):C==="mapping"&&(p.push({name:qt.mapping}),console.log("Navigating to feed..."))}),(C,y)=>{var v;return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",u.mergeProps({class:"ao-project-mapping-overview"},C.$attrs),[u.createElementVNode("div",DKe,[u.createVNode(Og,null,{primary:u.withCtx(()=>[u.createVNode(Lg,{modelValue:m.value,"onUpdate:modelValue":y[0]||(y[0]=k=>m.value=k),tabs:_},null,8,["modelValue"]),u.createVNode(Be,{class:"ao-feed__show-archived",size:"sm","icon-name":n.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:C.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":n.showsArchived,onClick:y[1]||(y[1]=k=>C.$emit("update:showsArchived",!n.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:u.withCtx(()=>[n.isEditable===!0?(u.openBlock(),u.createBlock(Be,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:C.$t("project.template.save.label"),onClick:y[2]||(y[2]=k=>h.value=!0)},null,8,["label"])):u.createCommentVNode("",!0),n.isEditable===!0?(u.openBlock(),u.createBlock(Be,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:C.$t("project.template.apply.label"),onClick:y[3]||(y[3]=k=>d.value=!0)},null,8,["label"])):u.createCommentVNode("",!0)]),_:1}),u.createElementVNode("div",LKe,[u.createElementVNode("div",FKe,[u.createVNode(p5,{phases:n.phases,"closed-status":n.closedStatus,"is-editable":n.isEditable===!0,users:n.users,"estimation-unit":(v=n.project)==null?void 0:v.estimationUnit,onAddPhase:i,onUpdatePhase:s,onArchivePhase:l,onUnarchivePhase:a,onCopyPhaseToTemplate:c},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),n.project.architectureImage?(u.openBlock(),u.createElementBlock("div",PKe,[u.createElementVNode("img",{class:"architecture-image",src:n.project.architectureImage.url,alt:u.unref(t)("architectureImage.alt")},null,8,IKe)])):u.createCommentVNode("",!0)])])],16),(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[h.value?(u.openBlock(),u.createBlock(NP,{key:0,phases:n.phases,onClose:y[4]||(y[4]=k=>h.value=!1),onSave:g},null,8,["phases"])):u.createCommentVNode("",!0),d.value?(u.openBlock(),u.createBlock(EP,{key:1,"project-id":n.project.id,templates:n.templates,onClose:y[5]||(y[5]=k=>d.value=!1),onApply:f},null,8,["project-id","templates"])):u.createCommentVNode("",!0)]))],64)}}});const Xa={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},RKe=(n,e={})=>[{path:n,name:Xa.TEMPLATES,redirect:{name:Xa.TEMPLATES_LIST},...e,children:[{path:"",name:Xa.TEMPLATES_LIST,component:AP},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Xa.TEMPLATE_DETAILS,component:TP,props:!0}]}],qt={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},zKe=(n,e={})=>[{path:n,...e,redirect:{name:qt.project},children:[{path:"",name:qt.project,component:xWe,props:!0,children:[{path:":phaseId/:milestoneId",name:qt.milestone,component:v9,props:!0},{path:":phaseId/:milestoneId/:activityId",name:qt.activity,props:{default:!0,modal:!0},components:{default:v9,modal:sKe}}]},{path:"feed",name:qt.feed,component:$P,props:!0},{path:"mapping",name:qt.mapping,component:BKe,props:!0}]}],VKe={class:"ao-templates"},AP=u.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(n,{emit:e}){const{t}=Gs(),r=n,o=e;u.watch(()=>r.templates,(c,d)=>{Ts(c,d)});const i=()=>{var g,p;const c=(g=r.templates)==null?void 0:g.at(-1),d=c?Hn.LexoRank.parse(c.rank).genNext():Hn.LexoRank.middle(),h=((p=r.templates)==null?void 0:p.length)??0,f={name:t("template.defaultName.template",{idx:h+1}),rank:d.format()};o("addTemplate",f)},s=(c,d)=>{o("updateItem",{itemType:Tt.TEMPLATES,id:c,templateId:c,data:{name:d}})},l=(c,d)=>{o("removeItem",{itemType:Tt.TEMPLATES,templateId:c,data:{id:c,...d?{name:d}:{}}})},a=c=>{if(c.moved){const d=Mg(c,r.templates??[]);o("updateItem",{itemType:Tt.TEMPLATES,id:c.moved.element.id,templateId:c.moved.element.id,data:{rank:d}})}};return(c,d)=>(u.openBlock(),u.createElementBlock("div",VKe,[u.createVNode(Og,null,{secondary:u.withCtx(()=>[u.createVNode(Be,{label:c.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:i},null,8,["label"])]),_:1}),u.createVNode(u.unref(la),{"model-value":n.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:a},{item:u.withCtx(({element:h})=>{var f;return[u.createVNode(NU,{id:h.id,title:h.name,phases:h.phases,milestones:(f=h.phases)!=null&&f.length?u.unref(YK)(h.phases):0,activities:h.phases?u.unref(XK)(h.phases):0,"updated-at":h.updatedAt,"updated-by":h.updatedBy,onUpdateTitle:g=>s(h.id,g),onClick:g=>c.$router.push({name:u.unref(Xa).TEMPLATE_DETAILS,params:{templateId:h.id}}),onDeleteItem:d[0]||(d[0]=(g,p)=>l(g,p))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const WKe={class:"ao-field__label"},MP=u.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(n){return(e,t)=>(u.openBlock(),u.createElementBlock("label",{class:u.normalizeClass(["ao-field",{"ao-field--multiselect":n.isMultiselect}])},[u.createElementVNode("span",WKe,u.toDisplayString(n.label),1),u.renderSlot(e.$slots,"default")],2))}}),KKe=["type","value","disabled","readonly"],UKe=u.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=u.computed(()=>t.modelModifiers.lazy?"change":"input"),i=s=>{t.modelModifiers.number&&(s=Number(s)),r("update:modelValue",s)};return(s,l)=>(u.openBlock(),u.createBlock(MP,{label:n.label},{default:u.withCtx(()=>[u.createElementVNode("input",u.mergeProps({class:"ao-field__input",type:n.type,value:n.modelValue,disabled:n.isDisabled,readonly:n.isReadonly},{[u.toHandlerKey(o.value)]:l[0]||(l[0]=a=>i(a.target.value))}),null,16,KKe)]),_:1},8,["label"]))}}),HKe={class:"ao-field"},qKe={class:"ao-field__label"},jKe=["checked","disabled"],ZKe=u.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n){return(e,t)=>(u.openBlock(),u.createElementBlock("label",HKe,[u.createElementVNode("span",qKe,u.toDisplayString(n.label),1),u.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:n.modelValue,disabled:n.isDisabled,onChange:t[0]||(t[0]=r=>{var o;return e.$emit("update:modelValue",((o=r.target)==null?void 0:o.checked)??!1)})},null,40,jKe)]))}});exports.AoAvatar=js;exports.AoCardFeed=m5;exports.AoCheckboxField=ZKe;exports.AoColorPicker=Py;exports.AoFeed=$P;exports.AoField=MP;exports.AoInputField=UKe;exports.AoMultiselect=Br;exports.AoProjectPhases=p5;exports.AoTabBar=Lg;exports.AoTemplateDetails=TP;exports.AoTemplates=zP;exports.AoTemplatesList=AP;exports.EstimationUnit=E9;exports.TemplateItemTypeEnum=T9;exports.activityFeedStatus=cW;exports.durationTypes=aW;exports.feedFilterTypes=Pa;exports.getProjectOverviewRoutes=zKe;exports.getTemplateRoutes=RKe;exports.listUpdateTypes=uW;exports.milestoneStatus=Mh;exports.projectOverviewRoutes=qt;exports.ruleComparators=x9;exports.ruleDurationUnits=w9;exports.ruleTriggerTypes=S9;exports.templateItemType=Tt;exports.templateRouteNames=Xa;