@26lights/orcha 0.42.39 → 0.42.40

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 (139) hide show
  1. package/dist/orcha.cjs.js +229 -2
  2. package/dist/orcha.css +1 -1
  3. package/dist/orcha.es.js +27212 -7413
  4. package/dist/orcha.umd.js +230 -3
  5. package/dist/src/components/AoActivityDetails.vue.d.ts +50 -137
  6. package/dist/src/components/AoActivityDetailsComments.vue.d.ts +43 -47
  7. package/dist/src/components/AoActivityDetailsFiles.vue.d.ts +25 -23
  8. package/dist/src/components/AoActivityTasks.vue.d.ts +25 -49
  9. package/dist/src/components/AoAddTemplateModal.vue.d.ts +20 -26
  10. package/dist/src/components/AoAvatar.vue.d.ts +37 -45
  11. package/dist/src/components/AoBadge.vue.d.ts +13 -10
  12. package/dist/src/components/AoButton.vue.d.ts +57 -82
  13. package/dist/src/components/AoButtonCard.vue.d.ts +54 -69
  14. package/dist/src/components/AoButtonCheck.vue.d.ts +21 -23
  15. package/dist/src/components/AoCard.vue.d.ts +44 -41
  16. package/dist/src/components/AoCardFeed.vue.d.ts +39 -126
  17. package/dist/src/components/AoCardHoriz.vue.d.ts +33 -60
  18. package/dist/src/components/AoCardProjectItemMilestone.vue.d.ts +39 -106
  19. package/dist/src/components/AoCardProjectItemPhase.vue.d.ts +42 -82
  20. package/dist/src/components/AoCardTemplate.vue.d.ts +23 -54
  21. package/dist/src/components/AoCardTemplateItem.vue.d.ts +16 -33
  22. package/dist/src/components/AoCardTemplateItemActivity.vue.d.ts +19 -17
  23. package/dist/src/components/AoCardTemplateItemMilestone.vue.d.ts +18 -11
  24. package/dist/src/components/AoCardTemplateItemPhase.vue.d.ts +20 -25
  25. package/dist/src/components/AoCheckboxField.vue.d.ts +42 -45
  26. package/dist/src/components/AoColHeader.vue.d.ts +13 -16
  27. package/dist/src/components/AoColorPicker.vue.d.ts +22 -16
  28. package/dist/src/components/AoComment.vue.d.ts +19 -51
  29. package/dist/src/components/AoCondensedCardProjectItemPhase.vue.d.ts +42 -82
  30. package/dist/src/components/AoField.vue.d.ts +33 -24
  31. package/dist/src/components/AoIcon.vue.d.ts +29 -21
  32. package/dist/src/components/AoInputField.vue.d.ts +50 -61
  33. package/dist/src/components/AoListKanban.vue.d.ts +23 -116
  34. package/dist/src/components/AoModal.vue.d.ts +28 -18
  35. package/dist/src/components/AoMultiselect.vue.d.ts +18 -15
  36. package/dist/src/components/AoPageHeader.vue.d.ts +15 -14
  37. package/dist/src/components/AoProgress.vue.d.ts +16 -23
  38. package/dist/src/components/AoProjectPhase.vue.d.ts +35 -66
  39. package/dist/src/components/AoProjectPhases.vue.d.ts +37 -68
  40. package/dist/src/components/AoRichTextEditor.vue.d.ts +40 -0
  41. package/dist/src/components/AoRuleLine.vue.d.ts +31 -45
  42. package/dist/src/components/AoSaveTemplateModal.vue.d.ts +17 -14
  43. package/dist/src/components/AoSearchField.vue.d.ts +34 -32
  44. package/dist/src/components/AoTabBar.vue.d.ts +6 -6
  45. package/dist/src/components/AoTag.vue.d.ts +23 -50
  46. package/dist/src/components/AoTemplateDetailsActivities.vue.d.ts +21 -38
  47. package/dist/src/components/AoTemplateDetailsMilestones.vue.d.ts +19 -28
  48. package/dist/src/components/AoTemplateRules.vue.d.ts +18 -43
  49. package/dist/src/components/AoTitle.vue.d.ts +40 -51
  50. package/dist/src/components/icons/AccountBoxSharp.vue.d.ts +1 -1
  51. package/dist/src/components/icons/AccountCircle.vue.d.ts +1 -1
  52. package/dist/src/components/icons/AccountTreeOutlineRounded.vue.d.ts +1 -1
  53. package/dist/src/components/icons/AccountTreeRounded.vue.d.ts +1 -1
  54. package/dist/src/components/icons/Add.vue.d.ts +1 -1
  55. package/dist/src/components/icons/AddBoxOutlineRounded.vue.d.ts +1 -1
  56. package/dist/src/components/icons/ArchiveOutlineRounded.vue.d.ts +1 -1
  57. package/dist/src/components/icons/ArrowBackRounded.vue.d.ts +1 -1
  58. package/dist/src/components/icons/ArrowDropDownRounded.vue.d.ts +1 -1
  59. package/dist/src/components/icons/ArrowForwardRounded.vue.d.ts +1 -1
  60. package/dist/src/components/icons/AssignmentOutlineRounded.vue.d.ts +1 -1
  61. package/dist/src/components/icons/AttachFileRounded.vue.d.ts +1 -1
  62. package/dist/src/components/icons/CalendarTodayOutlineRounded.vue.d.ts +1 -1
  63. package/dist/src/components/icons/CancelRounded.vue.d.ts +1 -1
  64. package/dist/src/components/icons/ChatOutline.vue.d.ts +1 -1
  65. package/dist/src/components/icons/CheckBoxOutlineBlank.vue.d.ts +1 -1
  66. package/dist/src/components/icons/CheckBoxOutlineBlankSharp.vue.d.ts +1 -1
  67. package/dist/src/components/icons/CheckBoxOutlineRounded.vue.d.ts +1 -1
  68. package/dist/src/components/icons/CheckSmallRounded.vue.d.ts +1 -1
  69. package/dist/src/components/icons/ChecklistRounded.vue.d.ts +1 -1
  70. package/dist/src/components/icons/ChevronLeft.vue.d.ts +1 -1
  71. package/dist/src/components/icons/ChevronRight.vue.d.ts +1 -1
  72. package/dist/src/components/icons/CloseRounded.vue.d.ts +1 -1
  73. package/dist/src/components/icons/ContactsOutlineRounded.vue.d.ts +1 -1
  74. package/dist/src/components/icons/ContentCopyOutline.vue.d.ts +1 -1
  75. package/dist/src/components/icons/DeleteOutlineRounded.vue.d.ts +1 -1
  76. package/dist/src/components/icons/DragIndicator.vue.d.ts +1 -1
  77. package/dist/src/components/icons/EditDocumentRounded.vue.d.ts +1 -1
  78. package/dist/src/components/icons/EditOutline.vue.d.ts +1 -1
  79. package/dist/src/components/icons/ErrorOutlineRounded.vue.d.ts +1 -1
  80. package/dist/src/components/icons/FilterListRounded.vue.d.ts +1 -1
  81. package/dist/src/components/icons/FlagRounded.vue.d.ts +1 -1
  82. package/dist/src/components/icons/FlowsheetOutlineRounded.vue.d.ts +1 -1
  83. package/dist/src/components/icons/GifBox.vue.d.ts +1 -1
  84. package/dist/src/components/icons/GroupsOutline.vue.d.ts +1 -1
  85. package/dist/src/components/icons/HomeOutlineRounded.vue.d.ts +1 -1
  86. package/dist/src/components/icons/ImageRounded.vue.d.ts +1 -1
  87. package/dist/src/components/icons/Info.vue.d.ts +1 -1
  88. package/dist/src/components/icons/KeyboardArrowDown.vue.d.ts +1 -1
  89. package/dist/src/components/icons/KeyboardArrowUp.vue.d.ts +1 -1
  90. package/dist/src/components/icons/Loading.vue.d.ts +1 -1
  91. package/dist/src/components/icons/Lock.vue.d.ts +1 -1
  92. package/dist/src/components/icons/LogoutRounded.vue.d.ts +1 -1
  93. package/dist/src/components/icons/Menu.vue.d.ts +1 -1
  94. package/dist/src/components/icons/MoreHoriz.vue.d.ts +1 -1
  95. package/dist/src/components/icons/MoreTimeRounded.vue.d.ts +1 -1
  96. package/dist/src/components/icons/MoreVert.vue.d.ts +1 -1
  97. package/dist/src/components/icons/MountainFlagOutlineRounded.vue.d.ts +1 -1
  98. package/dist/src/components/icons/PersonAddOutlineRounded.vue.d.ts +1 -1
  99. package/dist/src/components/icons/PictureAsPdfRounded.vue.d.ts +1 -1
  100. package/dist/src/components/icons/RadioButtonChecked.vue.d.ts +1 -1
  101. package/dist/src/components/icons/RadioButtonCheckedOutline.vue.d.ts +1 -1
  102. package/dist/src/components/icons/RadioButtonUnchecked.vue.d.ts +1 -1
  103. package/dist/src/components/icons/RemoveRounded.vue.d.ts +1 -1
  104. package/dist/src/components/icons/SearchRounded.vue.d.ts +1 -1
  105. package/dist/src/components/icons/SelectCheckBox.vue.d.ts +1 -1
  106. package/dist/src/components/icons/SendRounded.vue.d.ts +1 -1
  107. package/dist/src/components/icons/Settings.vue.d.ts +1 -1
  108. package/dist/src/components/icons/SlideshowRounded.vue.d.ts +1 -1
  109. package/dist/src/components/icons/Target.vue.d.ts +1 -1
  110. package/dist/src/components/icons/TaskOutlineRounded.vue.d.ts +1 -1
  111. package/dist/src/components/icons/TextSnippetRounded.vue.d.ts +1 -1
  112. package/dist/src/components/icons/TimerOutline.vue.d.ts +1 -1
  113. package/dist/src/components/icons/ViewComfyAltRounded.vue.d.ts +1 -1
  114. package/dist/src/components/icons/ViewCompactAltRounded.vue.d.ts +1 -1
  115. package/dist/src/components/icons/ViewTimelineRounded.vue.d.ts +1 -1
  116. package/dist/src/components/icons/WarningOutlineRounded.vue.d.ts +1 -1
  117. package/dist/src/components/icons/WarningRounded.vue.d.ts +1 -1
  118. package/dist/src/components/icons/WaterfallChartRounded.vue.d.ts +1 -1
  119. package/dist/src/composables/useDetachedOptions.d.ts +2 -1
  120. package/dist/src/composables/useGetDefaultRankAndName.d.ts +2 -1
  121. package/dist/src/composables/useIsEditing.d.ts +4 -3
  122. package/dist/src/composables/useSearchField.d.ts +1 -1
  123. package/dist/src/composables/useSelectAddedElement.d.ts +2 -1
  124. package/dist/src/helpers.d.ts +13 -6
  125. package/dist/src/i18n/i18next.d.ts +3 -2
  126. package/dist/src/main.d.ts +1 -0
  127. package/dist/src/router/routes.d.ts +2 -1
  128. package/dist/src/types/components.d.ts +3 -2
  129. package/dist/src/types/styles.d.ts +1 -1
  130. package/dist/src/types/utils.d.ts +2 -1
  131. package/dist/src/views/AoFeed.vue.d.ts +72 -162
  132. package/dist/src/views/AoMapping.vue.d.ts +49 -118
  133. package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +43 -125
  134. package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +31 -71
  135. package/dist/src/views/AoProjectOverviewProject.vue.d.ts +79 -153
  136. package/dist/src/views/AoTemplateDetails.vue.d.ts +37 -61
  137. package/dist/src/views/AoTemplates.vue.d.ts +15 -10
  138. package/dist/src/views/AoTemplatesList.vue.d.ts +17 -12
  139. package/package.json +2 -1
package/dist/orcha.umd.js CHANGED
@@ -1,6 +1,233 @@
1
- (function(X,e){var De=document.createElement("style");De.textContent=`*,*:before,*:after{box-sizing:border-box}html,body{margin:0;overflow:hidden;display:flex;flex-direction:column;height:100%;min-height:0}button{color:inherit;font-family:inherit}input,textarea{font-family:inherit}:root{--ao-color-blue-lightest: #ebf1ff;--ao-color-blue-lighter: #aabdff;--ao-color-blue-light: #7183ff;--ao-color-blue-base: #4952ff;--ao-color-blue-dark: #2226e7;--ao-color-blue-darker: #09099c;--ao-color-blue-darkest: #000033;--ao-color-grey-lightest: #e6e6e6;--ao-color-grey-light: #c8c8c8;--ao-color-grey-base: #ababab;--ao-color-grey-dark: #636363;--ao-color-grey-darkest: #1c1c1c;--ao-color-white: #fff;--ao-color-black: #000;--ao-color-sand-base: #d8a55a;--ao-color-red-light: #ff4f4f;--ao-color-teal-light: #64d9bb;--ao-color-primary-lightest: var(--ao-color-blue-lightest);--ao-color-primary-lighter: var(--ao-color-blue-lighter);--ao-color-primary-light: var(--ao-color-blue-light);--ao-color-primary-base: var(--ao-color-blue-base);--ao-color-primary-dark: var(--ao-color-blue-dark);--ao-color-primary-darker: var(--ao-color-blue-darker);--ao-color-primary-darkest: var(--ao-color-blue-darkest);--ao-color-neutral-lightest: var(--ao-color-grey-lightest);--ao-color-neutral-light: var(--ao-color-grey-light);--ao-color-neutral-base: var(--ao-color-grey-base);--ao-color-neutral-dark: var(--ao-color-grey-dark);--ao-color-neutral-darkest: var(--ao-color-grey-darkest);--ao-color-canvas: #f1f1f1;--ao-color-sheet: #f9f9f9;--ao-color-card: #f9f9f9;--ao-color-text: var(--ao-color-grey-darkest);--ao-color-danger: var(--ao-color-red-light);--ao-color-warning: var(--ao-color-sand-base);--ao-color-success: var(--ao-color-teal-light);--ao-color-text-contrast: var(--ao-color-white);--ao-color-group: rgba(255, 255, 255, .2);--ao-color-backdrop: rgba(0, 0, 0, .7);--ao-grid-size: 8px;--ao-space-xs: calc(var(--ao-grid-size) / 4);--ao-space-sm: calc(var(--ao-grid-size) / 2);--ao-space-md: calc(var(--ao-grid-size) * 1);--ao-space-lg: calc(var(--ao-grid-size) * 3 / 2);--ao-space-xl: calc(var(--ao-grid-size) * 2);--ao-space-xxl: calc(var(--ao-grid-size) * 4);--ao-border-width-sm: 1px;--ao-border-width-md: 2px;--ao-border-width-lg: 4px;--ao-border-width-xl: 6px;--ao-border-radius-xs: 2px;--ao-border-radius-sm: 4px;--ao-border-radius-md: 8px;--ao-border-radius-lg: 16px;--ao-border-radius-xl: 24px;--ao-border-radius-round: 100em;font-size:15px;--ao-font-size-base: 1rem;--ao-font-size-text: var(--ao-font-size-base);--ao-font-size-input: var(--ao-font-size-base);--ao-font-size-h5: var(--ao-font-size-base);--ao-font-size-h4: calc(var(--ao-font-size-base) * 1.25);--ao-font-size-h3: calc(var(--ao-font-size-h4) * 1.25);--ao-font-size-h2: calc(var(--ao-font-size-h3) * 1.25);--ao-font-size-h1: calc(var(--ao-font-size-h2) * 1.25);--ao-font-size-label: calc(var(--ao-font-size-base) / 1.25);--ao-font-size-tag: calc(var(--ao-font-size-label) / 1.25);--ao-font-size-button: var(--ao-font-size-base);--ao-font-weight-extra-light: 200;--ao-font-weight-regular: 400;--ao-font-weight-medium: 500;--ao-font-weight-semi-bold: 600;--ao-font-weight-bold: 800;--ao-font-weight-extra-bold: 900;--ao-font-stack-system-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ao-font-stack-sans: "Kumbh Sans", var(--ao-font-stack-system-sans);--ao-icon-size-sm: calc(var(--ao-grid-size) * 9 / 5);--ao-icon-size-md: calc(var(--ao-grid-size) * 3);--ao-icon-size-lg: calc(var(--ao-grid-size) * 4);--ao-icon-size-xl: calc(var(--ao-grid-size) * 5);--ao-transition-ease: cubic-bezier(.215, .61, .355, 1);--ao-shadow-key-umbra-opacity: .2;--ao-shadow-key-penumbra-opacity: .14;--ao-shadow-ambient-shadow-opacity: .12;--ao-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 1px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 5px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 3px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 8px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 10px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 2px 4px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 18px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 3px 5px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 14px 2px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 5px 5px -3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 6px 30px 5px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 8px 10px -5px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-24dp: 0 9px 46px 8px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 11px 15px -7px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 24px 38px 3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity))}html,body{font-family:var(--ao-font-stack-sans)}[class^=ao-]{scrollbar-width:thin}[class^=ao-]::-webkit-scrollbar{background-color:transparent;width:var(--ao-space-md);height:var(--ao-space-md);border-radius:var(--ao-border-radius-round)}[class^=ao-]::-webkit-scrollbar-thumb{background:var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-round);cursor:grab}:root{--ao-input-color: inherit;--ao-input-bg: #fff;--ao-input-border-radius: var(--ao-border-radius-sm);--ao-input-border-width: var(--ao-border-width-sm);--ao-input-border-color: var(--ao-color-neutral-light);--ao-textarea-bg: var(--ao-input-bg)}.ao-fieldset{border-width:0;padding:0;margin:0}.ao-fieldset+.ao-fieldset{margin-block-start:var(--ao-space-xl)}.ao-fieldset__title{display:flex;align-items:center;gap:var(--ao-space-sm);color:var(--ao-color-neutral-dark)}.ao-field__row{display:flex;flex-direction:row;gap:var(--ao-space-lg)}.ao-field__row+.ao-field__row{margin-block-start:var(--ao-space-lg)}.ao-field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ao-space-md)}.ao-field--full{flex:1;width:100%}.ao-field--multiselect{min-width:20ch}.ao-field--inline{flex-direction:row;align-items:center}.ao-field__label{font-size:var(--ao-font-size-label)}.ao-field__input{padding-inline:var(--ao-space-lg);padding-block:var(--ao-space-md);margin:0;border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-input-bg)}.ao-field__input:is(:focus,:active,:hover){--ao-input-border-color: var(--ao-color-primary-base)}.ao-field__textarea{padding:var(--ao-space-lg);border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-textarea-bg);flex:1;width:100%;resize:vertical}.ao-multiselect{--ms-font-size: var(--font-size-text);--ms-line-height: 1.2;--ms-border-color: var(--ao-color-neutral-lightest);--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: var(--ao-input-border-color);--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-md);--ms-py: var(--ao-space-md);--ms-px: var(--ao-space-lg);--ms-ring-color: var(--ao-color-primary-lightest);--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-tag-font-size: var(--ao-font-size-tag);--ms-tag-font-weight: var(--ao-font-weight-regular);--ms-tag-bg: var(--ao-color-primary-base);--ms-tag-radius: var(--ao-border-radius-xl);--ms-tag-py: var(--ao-space-sm);--ms-tag-my: 0;--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}input[readonly]{cursor:default}.is-disabled>.multiselect-wrapper{cursor:default}.ao-field__input::-webkit-outer-spin-button,.ao-field__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ao-field__input[type=number]{-moz-appearance:textfield}.multiselect{align-items:center;background:var(--ms-bg,#fff);border:var(--ms-border-width,1px) solid var(--ms-border-color,#d1d5db);border-radius:var(--ms-radius,4px);box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-font-size,1rem);justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect.is-open{border-radius:var(--ms-radius,4px) var(--ms-radius,4px) 0 0}.multiselect.is-open-top{border-radius:0 0 var(--ms-radius,4px) var(--ms-radius,4px)}.multiselect.is-disabled{background:var(--ms-bg-disabled,#f3f4f6);cursor:default}.multiselect.is-active{border:var(--ms-border-width-active,var(--ms-border-width,1px)) solid var(--ms-border-color-active,var(--ms-border-color,#d1d5db));box-shadow:0 0 0 var(--ms-ring-width,3px) var(--ms-ring-color,rgba(16,185,129,.188))}.multiselect-wrapper{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect-multiple-label,.multiselect-placeholder,.multiselect-single-label{align-items:center;background:transparent;box-sizing:border-box;display:flex;height:100%;left:0;line-height:var(--ms-line-height,1.375);max-width:100%;padding-left:var(--ms-px,.875rem);padding-right:calc(1.25rem + var(--ms-px, .875rem)*3);pointer-events:none;position:absolute;top:0}.multiselect-placeholder{color:var(--ms-placeholder-color,#9ca3af)}.multiselect-single-label-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ms-bg,#fff);border:0;border-radius:var(--ms-radius,4px);bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;height:100%;left:0;outline:none;padding-left:var(--ms-px,.875rem);position:absolute;right:0;top:0;width:100%}.multiselect-search::-webkit-search-cancel-button,.multiselect-search::-webkit-search-decoration,.multiselect-search::-webkit-search-results-button,.multiselect-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-tags{flex-grow:1;flex-shrink:1;flex-wrap:wrap;margin:var(--ms-tag-my,.25rem) 0 0;padding-left:var(--ms-py,.5rem)}.multiselect-tag,.multiselect-tags{align-items:center;display:flex;min-width:0}.multiselect-tag{background:var(--ms-tag-bg,#10b981);border-radius:var(--ms-tag-radius,4px);color:var(--ms-tag-color,#fff);font-size:var(--ms-tag-font-size,.875rem);font-weight:var(--ms-tag-font-weight,600);line-height:var(--ms-tag-line-height,1.25rem);margin-bottom:var(--ms-tag-my,.25rem);margin-right:var(--ms-tag-mx,.25rem);padding:var(--ms-tag-py,.125rem) 0 var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem);white-space:nowrap}.multiselect-tag.is-disabled{background:var(--ms-tag-bg-disabled,#9ca3af);color:var(--ms-tag-color-disabled,#fff);padding-right:var(--ms-tag-px,.5rem)}.multiselect-tag-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-tag-wrapper-break{white-space:normal;word-break:break-all}.multiselect-tag-remove{align-items:center;border-radius:var(--ms-tag-remove-radius,4px);display:flex;justify-content:center;margin:var(--ms-tag-remove-my,0) var(--ms-tag-remove-mx,.125rem);padding:var(--ms-tag-remove-py,.25rem) var(--ms-tag-remove-px,.25rem)}.multiselect-tag-remove:hover{background:rgba(0,0,0,.063)}.multiselect-tag-remove-icon{background-color:currentColor;display:inline-block;height:.75rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;opacity:.8;width:.75rem}.multiselect-tags-search-wrapper{display:inline-block;flex-grow:1;flex-shrink:1;height:100%;margin:0 var(--ms-tag-mx,4px) var(--ms-tag-my,4px);position:relative}.multiselect-tags-search-copy{display:inline-block;height:1px;visibility:hidden;white-space:pre-wrap;width:100%}.multiselect-tags-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;left:0;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.multiselect-tags-search::-webkit-search-cancel-button,.multiselect-tags-search::-webkit-search-decoration,.multiselect-tags-search::-webkit-search-results-button,.multiselect-tags-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-inifite{align-items:center;display:flex;justify-content:center;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);width:100%}.multiselect-inifite-spinner,.multiselect-spinner{animation:multiselect-spin 1s linear infinite;background-color:var(--ms-spinner-color,#10b981);flex-grow:0;flex-shrink:0;height:1rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1rem;z-index:10}.multiselect-spinner{margin:0 var(--ms-px,.875rem) 0 0}.multiselect-clear{display:flex;flex-grow:0;flex-shrink:0;opacity:1;padding:0 var(--ms-px,.875rem) 0 0;position:relative;transition:.3s;z-index:10}.multiselect-clear:hover .multiselect-clear-icon{background-color:var(--ms-clear-color-hover,#000)}.multiselect-clear-icon{background-color:var(--ms-clear-color,#999);display:inline-block;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");transition:.3s}.multiselect-caret,.multiselect-clear-icon{height:1.125rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.625rem}.multiselect-caret{background-color:var(--ms-caret-color,#999);flex-grow:0;flex-shrink:0;margin:0 var(--ms-px,.875rem) 0 0;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");pointer-events:none;position:relative;transform:rotate(0);transition:transform .3s;z-index:10}.multiselect-caret.is-open{pointer-events:auto;transform:rotate(180deg)}.multiselect-dropdown{-webkit-overflow-scrolling:touch;background:var(--ms-dropdown-bg,#fff);border:var(--ms-dropdown-border-width,1px) solid var(--ms-dropdown-border-color,#d1d5db);border-radius:0 0 var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px);bottom:0;display:flex;flex-direction:column;left:calc(var(--ms-border-width, 1px)*-1);margin-top:calc(var(--ms-border-width, 1px)*-1);max-height:var(--ms-max-height,10rem);outline:none;overflow-y:scroll;position:absolute;right:calc(var(--ms-border-width, 1px)*-1);transform:translateY(100%);z-index:100}.multiselect-dropdown.is-top{border-radius:var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px) 0 0;bottom:auto;top:var(--ms-border-width,1px);transform:translateY(-100%)}.multiselect-dropdown.is-hidden{display:none}.multiselect-options{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.multiselect-group{margin:0;padding:0}.multiselect-group-label{align-items:center;background:var(--ms-group-label-bg,#e5e7eb);box-sizing:border-box;color:var(--ms-group-label-color,#374151);cursor:default;display:flex;font-size:.875rem;font-weight:600;justify-content:flex-start;line-height:var(--ms-group-label-line-height,1.375);padding:var(--ms-group-label-py,.3rem) var(--ms-group-label-px,.75rem);text-align:left;text-decoration:none}.multiselect-group-label.is-pointable{cursor:pointer}.multiselect-group-label.is-pointed{background:var(--ms-group-label-bg-pointed,#d1d5db);color:var(--ms-group-label-color-pointed,#374151)}.multiselect-group-label.is-selected{background:var(--ms-group-label-bg-selected,#059669);color:var(--ms-group-label-color-selected,#fff)}.multiselect-group-label.is-disabled{background:var(--ms-group-label-bg-disabled,#f3f4f6);color:var(--ms-group-label-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-group-label.is-selected.is-pointed{background:var(--ms-group-label-bg-selected-pointed,#0c9e70);color:var(--ms-group-label-color-selected-pointed,#fff)}.multiselect-group-label.is-selected.is-disabled{background:var(--ms-group-label-bg-selected-disabled,#75cfb1);color:var(--ms-group-label-color-selected-disabled,#d1fae5)}.multiselect-group-options{margin:0;padding:0}.multiselect-option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-option-font-size,1rem);justify-content:flex-start;line-height:var(--ms-option-line-height,1.375);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem);text-align:left;text-decoration:none}.multiselect-option.is-pointed{background:var(--ms-option-bg-pointed,#f3f4f6);color:var(--ms-option-color-pointed,#1f2937)}.multiselect-option.is-selected{background:var(--ms-option-bg-selected,#10b981);color:var(--ms-option-color-selected,#fff)}.multiselect-option.is-disabled{background:var(--ms-option-bg-disabled,#fff);color:var(--ms-option-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-option.is-selected.is-pointed{background:var(--ms-option-bg-selected-pointed,#26c08e);color:var(--ms-option-color-selected-pointed,#fff)}.multiselect-option.is-selected.is-disabled{background:var(--ms-option-bg-selected-disabled,#87dcc0);color:var(--ms-option-color-selected-disabled,#d1fae5)}.multiselect-no-options,.multiselect-no-results{color:var(--ms-empty-color,#4b5563);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem)}.multiselect-fake-input{background:transparent;border:0;bottom:-1px;font-size:0;height:1px;left:0;outline:none;padding:0;position:absolute;right:0;width:100%}.multiselect-fake-input:active,.multiselect-fake-input:focus{outline:none}.multiselect-assistive-text{clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;position:absolute;width:1px}.multiselect-spacer{display:none}[dir=rtl] .multiselect-multiple-label,[dir=rtl] .multiselect-placeholder,[dir=rtl] .multiselect-single-label{left:auto;padding-left:calc(1.25rem + var(--ms-px, .875rem)*3);padding-right:var(--ms-px,.875rem);right:0}[dir=rtl] .multiselect-search{padding-left:0;padding-right:var(--ms-px,.875rem)}[dir=rtl] .multiselect-tags{padding-left:0;padding-right:var(--ms-py,.5rem)}[dir=rtl] .multiselect-tag{margin-left:var(--ms-tag-mx,.25rem);margin-right:0;padding:var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem) var(--ms-tag-py,.125rem) 0}[dir=rtl] .multiselect-tag.is-disabled{padding-left:var(--ms-tag-px,.5rem)}[dir=rtl] .multiselect-caret,[dir=rtl] .multiselect-spinner{margin:0 0 0 var(--ms-px,.875rem)}[dir=rtl] .multiselect-clear{padding:0 0 0 var(--ms-px,.875rem)}@keyframes multiselect-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes blink-ad6da4a9{0%,to{opacity:1}50%{opacity:0}}.dot[data-v-ad6da4a9]{animation:blink-ad6da4a9 1.5s ease-in-out infinite}.dot--1[data-v-ad6da4a9]{animation-delay:0}.dot--2[data-v-ad6da4a9]{animation-delay:.5s}.dot--3[data-v-ad6da4a9]{animation-delay:1s}.ao-icon{color:inherit;fill:currentColor;width:var(--ao-icon-size);height:var(--ao-icon-size)}.ao-icon *{fill:inherit}.ao-icon--sm{--ao-icon-size: var(--ao-icon-size-sm)}.ao-icon--md{--ao-icon-size: var(--ao-icon-size-md)}.ao-icon--lg{--ao-icon-size: var(--ao-icon-size-lg)}.ao-icon--xl{--ao-icon-size: var(--ao-icon-size-xl)}.ao-button{--ao-button-main-color: initial;--ao-button-secondary-color: initial;--ao-button-color: var(--ao-button-main-color);--ao-button-bg: var(--ao-button-secondary);--ao-button-border-color: transparent;--ao-button-padding: var(--ao-space-sm);--ao-button-label-padding: var(--ao-space-sm);--ao-button-border-radius: var(--ao-border-radius-md);--ao-button-line-height: var(--ao-icon-size-md);--ao-button-font-size: var(--ao-font-size-button);display:flex;padding:var(--ao-button-padding);align-items:center;border-width:var(--ao-border-width-md);border-style:solid;border-radius:var(--ao-button-border-radius);border-color:var(--ao-button-border-color);color:var(--ao-button-color);background-color:var(--ao-button-bg);cursor:pointer;font-size:var(--ao-button-font-size);font-weight:var(--ao-font-weight-semi-bold);line-height:var(--ao-button-line-height)}.ao-button--primary{--ao-button-main-color: var(--ao-color-primary-base)}.ao-button--secondary{--ao-button-main-color: var(--ao-color-success)}.ao-button--neutral{--ao-button-main-color: var(--ao-color-neutral-base)}.ao-button--black{--ao-button-main-color: var(--ao-color-neutral-darkest)}.ao-button--warning{--ao-button-main-color: var(--ao-color-warning)}.ao-button--danger{--ao-button-main-color: var(--ao-color-danger)}.ao-button--success{--ao-button-main-color: var(--ao-color-success)}.ao-button--ghost{--ao-border-color: transparent;--ao-background-color: transparent}.ao-button--outline{--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid{--ao-button-color: var(--ao-button-secondary-color);--ao-button-bg: var(--ao-button-main-color);--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid:is(.ao-button--primary,.ao-button--secondary,.ao-button--neutral,.ao-button--black){--ao-button-color: var(--ao-color-white)}.ao-button--icon-start{flex-direction:row-reverse}.ao-button--icon-end{flex-direction:row}.ao-button__icon{flex-shrink:0}.ao-button__label{padding-inline:var(--ao-button-label-padding);flex:1;width:100%}.ao-button--footer{width:100%}.ao-button--footer .ao-button__label{text-align:center}.ao-button--is-disabled{cursor:default}.ao-button--sm{--ao-button-padding: var(--ao-space-xs);--ao-button-label-padding: var(--ao-space-xs);--ao-button-line-height: var(--ao-icon-size-sm);--ao-button-font-size: var(--ao-font-size-label)}.ao-button--lg{--ao-button-line-height: var(--ao-icon-size-lg);--ao-button-font-size: var(--ao-font-size-h4)}.ao-button--xl{--ao-button-line-height: var(--ao-icon-size-xl);--ao-button-font-size: var(--ao-font-size-h3)}.ao-button--round{--ao-button-border-radius: var(--ao-border-radius-round)}.ao-title{--ao-title-color: inherit;margin:0;font-weight:var(--ao-font-weight-semi-bold);font-family:var(--ao-font-family-title);color:var(--ao-title-color);cursor:default}.ao-title--editable{cursor:text}.ao-title--readonly{padding-block:var(--ao-space-md);border:var(--ao-input-border-width) solid transparent}.ao-title--1{font-size:var(--ao-font-size-h1)}.ao-title--2{font-size:var(--ao-font-size-h2)}.ao-title--3{font-size:var(--ao-font-size-h3)}.ao-title--4{font-size:var(--ao-font-size-h4)}.ao-title--5{font-size:var(--ao-font-size-h5)}.ao-title--primary{--ao-title-color: var(--ao-color-primary-base)}.ao-title--neutral{--ao-title-color: var(--ao-color-neutral-base)}.ao-title--black{--ao-title-color: var(--ao-color-neutral-darkest)}.ao-title--editing{--ao-title-color: var(--ao-color-primary-dark);width:100%}.ao-card-horiz{--ao-card-horiz-bg-color: var(--ao-color-card);--ao-card-horiz-text-color: inherit;--ao-card-horiz-label-color: var(--ao-color-neutral-base);display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;grid-template-areas:"drag header secondary" "drag body body" "drag footer footer";border-radius:var(--ao-border-radius-md);color:var(--ao-card-horiz-text-color);background-color:var(--ao-card-horiz-bg-color);overflow:hidden;cursor:pointer;container:card-horiz / inline-size}.ao-card-horiz:hover{box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz--active{--ao-card-horiz-bg-color: var(--ao-color-primary-base);--ao-card-horiz-text-color: var(--ao-color-white);box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz__header{display:flex;align-items:center;padding-inline:var(--ao-space-md);padding-block-start:var(--ao-space-md);grid-area:header;width:100%}.ao-card-horiz__title-group{display:flex;flex-direction:column;flex-grow:1;overflow:hidden;width:100%}.ao-card-horiz__title{min-width:2ch;min-height:1em}.ao-card-horiz__title,.ao-card-horiz__subtitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:flex-start}.ao-card-horiz__subtitle{margin-top:var(--ao-space-xs);font-size:var(--ao-font-size-base)}.ao-card-horiz__body{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block:var(--ao-space-md);grid-area:body}.ao-card-horiz__footer{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block-end:var(--ao-space-md);grid-area:footer}.ao-card-horiz__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-card-horiz__drag-handle{opacity:0;visibility:hidden}.ao-card-horiz:hover .ao-card-horiz__drag-handle{opacity:1;visibility:visible}.ao-card-horiz__secondary{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);opacity:0;visibility:hidden;grid-area:secondary}.ao-card-horiz:hover .ao-card-horiz__secondary{opacity:1;visibility:visible}@container column (min-width: 480px){.ao-card-horiz{display:flex;flex-direction:row}.ao-card-horiz__header{padding-block:var(--ao-space-md);padding-inline-end:0;flex-shrink:1;min-width:0}.ao-card-horiz__body{padding-inline-end:0;flex-shrink:0}.ao-card-horiz__footer{align-items:flex-end;padding-block:var(--ao-space-md);grid-area:footer;flex-shrink:0}}@container column (min-width: 768px){.ao-card-horiz__header{width:50%}}@container column (min-width: 1024px){.ao-card-horiz__header{width:33%}}@container column (min-width: 1280px){.ao-card-horiz__header{width:25%}}.ao-tag{--ao-tag-color: var(--ao-color-text-contrast);--ao-tag-bg: var(transparent);--ao-tag-border-radius: var(--ao-border-radius-xl);display:flex;flex-direction:row;align-items:stretch;border:var(--ao-border-width-sm) var(--ao-tag-bg) solid;border-radius:var(--ao-tag-border-radius);font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-tag__icon{color:var(--ao-color-white)}.ao-tag--primary{--ao-tag-bg: var(--ao-color-primary-light)}.ao-tag--primary-lighter{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--black{--ao-tag-bg: var(--ao-color-neutral-darkest)}.ao-tag--secondary{--ao-tag-bg: var(--ao-color-success)}.ao-tag--neutral{--ao-tag-bg: var(--ao-color-neutral-light)}.ao-tag--solid.ao-tag--neutral{--ao-tag-color: var(--ao-color-neutral-darkest)}.ao-tag--solid .ao-tag__label{background-color:var(--ao-tag-bg)}.ao-tag--solid_icon .ao-tag__label{background-color:var(--ao-tag-bg);display:flex;gap:var(--ao-space-sm)}.ao-tag--solid .ao-tag__close{background-color:var(--ao-tag-bg)}.ao-tag--clickable .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-lightest)}.ao-tag--clickable.ao-tag--primary .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--clickable.ao-tag--black .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-dark)}.ao-tag--clickable .ao-tag__label{cursor:pointer}.ao-tag__label{padding:var(--ao-space-sm) var(--ao-space-md);color:var(--ao-tag-color);width:100%;border-radius:var(--ao-tag-border-radius);font-size:inherit;font-weight:inherit;text-align:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background-color:transparent;border-width:0}.ao-tag--closable .ao-tag__label{border-top-right-radius:0;border-bottom-right-radius:0}.ao-tag__close{display:flex;border-width:0;border-top-right-radius:var(--ao-tag-border-radius);border-bottom-right-radius:var(--ao-tag-border-radius);color:var(--ao-tag-color);background-color:transparent;cursor:pointer}.ao-tag--close-icon{padding:var(--ao-space-xs) var(--ao-space-md)}.ao-avatar{--ao-avatar-bg: var(--ao-color-primary-base);--ao-avatar-color: var(--ao-color-neutral-lightest);--ao-avatar-font-weight: --ao-font-weight-medium;--ao-avatar-font-size: var(--ao-font-size-base);--ao-avatar-padding: .5em;color:var(--ao-avatar-color);background-color:var(--ao-avatar-bg);position:relative;border-radius:var(--ao-border-radius-round);line-height:1;display:grid;grid-template-areas:"center";align-items:center;justify-content:center;padding:var(--ao-avatar-padding);cursor:default;overflow:hidden;font-weight:var(--ao-avatar-font-weight);font-size:var(--ao-avatar-font-size);flex-shrink:0}.ao-avatar--sm{--ao-avatar-font-weight: var(--ao-font-weight-bold);--ao-avatar-font-size: var(--ao-font-size-tag);--ao-avatar-padding: .8em}.ao-avatar--lg{--ao-avatar-font-weight: var(--ao-font-weight-light);--ao-avatar-font-size: var(--ao-font-size-h3)}.ao-avatar--xl{--ao-avatar-font-weight: var(--ao-font-weight-extra-light);--ao-avatar-font-size: var(--ao-font-size-h1)}.ao-avatar--primary{--ao-avatar-bg: var(--ao-color-primary-base)}.ao-avatar--neutral{--ao-avatar-bg: var(--ao-color-neutral-base)}.ao-avatar--black{--ao-avatar-bg: var(--ao-color-neutral-darkest)}.ao-avatar__initials{display:flex;flex-direction:column;grid-area:center;justify-content:center;align-items:center;width:1em;height:1em;text-align:center;text-transform:uppercase}.ao-avatar__close{grid-area:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);opacity:0;visibility:hidden}.ao-avatar:hover,.ao-avatar-img:hover{z-index:1}.ao-avatar:hover .ao-avatar__close,.ao-avatar-img:hover .ao-avatar__close{transform:translate(-50%,-50%) scale(1);opacity:1;visibility:visible}.ao-avatar-img--sm{width:var(--ao-icon-size-sm);height:var(--ao-icon-size-sm)}.ao-avatar-img--md{width:var(--ao-icon-size-md);height:var(--ao-icon-size-md)}.ao-avatar-img--lg{width:var(--ao-icon-size-lg);height:var(--ao-icon-size-lg)}.ao-avatar-img--xl{width:var(--ao-icon-size-xl);height:var(--ao-icon-size-xl)}.ao-avatar-img{position:relative;border-radius:var(--ao-border-radius-round);display:grid;grid-template-areas:"center";align-items:center;justify-content:center;cursor:default;overflow:hidden;flex-shrink:0}.ao-avatar__image{width:100%;height:100%}.ao-card-template__body{display:flex;flex-direction:row;align-items:center;flex:1}.ao-card-template__footer{display:flex;gap:var(--ao-space-md)}.ao-card-template__col-title{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-card-template__col-label{font-size:var(--ao-font-size-label);font-weight:600}.ao-card-template__col{display:flex;flex-direction:column;gap:var(--ao-space-md);color:var(--ao-color-neutral-dark);font-size:var(--ao-font-size-label)}.ao-card-template__col--phases{flex-grow:1;color:var(--ao-color-neutral-darkest)}.ao-card-template__phases-list{display:flex;gap:var(--ao-space-sm);padding:0;margin:0}.ao-card-template__col-body{display:flex;flex-direction:row;align-items:flex-start;flex:1}.ao-card-template__subitems{display:flex;margin:0;padding:0;gap:var(--ao-space-sm)}.ao-card-template__subitem{display:flex;align-items:center;list-style-type:none;font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-semi-bold)}.ao-page-header{display:flex;container:header / inline-size;z-index:1}.ao-page-header-main{display:flex;gap:var(--ao-space-sm);flex-grow:1}.ao-page-header-secondary{display:flex;gap:var(--ao-space-sm)}@container header (min-width: 720px){.ao-page-header-main{flex-direction:row;align-items:center}.ao-page-header-secondary{margin-inline-start:auto;align-items:center;justify-content:flex-end;flex-grow:1}}.ao-button-card{--ao-button-card-color: inherit;--ao-button-card-bg: transparent;--ao-button-card-border-color: currentColor;--ao-button-card-padding: var(--ao-space-md);--ao-button-card-label-padding: var(--ao-space-sm);--ao-button-card-border-radius: var(--ao-border-radius-md);display:flex;width:100%;flex:1;justify-content:center;padding:var(--ao-button-card-padding);flex-direction:column-reverse;align-items:center;border-width:var(--ao-border-width-sm);border-style:dashed;border-radius:var(--ao-button-card-border-radius);border-color:var(--ao-button-card-border-color);color:var(--ao-button-card-color);background-color:var(--ao-button-card-bg);cursor:pointer;font-size:var(--ao-font-size-button);font-weight:var(--ao-font-weight-semi-bold)}.ao-button-card--primary{--ao-button-card-color: var(--ao-color-primary-base)}.ao-button-card--secondary{--ao-button-card-color: var(--ao-color-success)}.ao-button-card--neutral{--ao-button-card-color: var(--ao-color-neutral-base)}.ao-button-card--black{--ao-button-card-color: var(--ao-color-neutral-darkest)}.ao-button-card__icon{flex-shrink:0}.ao-button-card__label{padding-inline:var(--ao-button-card-label-padding);width:100%}.ao-button-card--footer{width:100%}.ao-button-card--footer .ao-button-card__label{text-align:center}.ao-button-card--is-disabled{cursor:default}.ao-button-card--sm{--ao-button-card-padding: var(--ao-space-xs);--ao-button-card-label-padding: var(--ao-space-xs)}.ao-button-card--round{--ao-button-card-border-radius: var(--ao-border-radius-round)}.ao-card-template-item__footer{display:flex;flex:1;padding:0;margin:0;justify-content:flex-end;gap:var(--ao-space-sm);align-items:center}.ao-card-template-item__subitem{display:flex;align-items:center}.ao-card-template-item__subitem{font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-bold)}.ao-modal__wrapper{--ao-modal-z-index: 100;--ao-modal-padding-x: var(--ao-space-sm);display:grid;grid-template-columns:5% 1fr 5%;grid-template-rows:5vh 1fr 5vh;position:absolute;top:0;left:0;width:100%;height:100%;justify-items:center;align-items:flex-start;z-index:var(--ao-modal-z-index)}.ao-modal__wrapper.ao-modal__wrapper--sm{grid-template-columns:10% 1fr 10%;grid-template-rows:15vh auto 25vh}.ao-modal__backdrop{width:100%;height:100%;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-backdrop)}.ao-modal{display:flex;width:100%;max-width:768px;height:100%;min-height:0;flex-direction:column;overflow-y:auto;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-sheet);container:modal / inline-size}.ao-modal__wrapper--sm .ao-modal{height:auto}.ao-modal__header{display:flex;flex-direction:column;padding-inline:var(--ao-modal-padding-x)}.ao-modal__header-meta{display:flex;justify-content:flex-end}.ao-modal__body{display:flex;height:100%;min-height:0;flex-direction:column;flex-grow:1}.ao-modal__footer{display:flex;flex-direction:column}@media screen and (min-width: 480px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-lg)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow-y:auto}}@media screen and (min-width: 720px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-xl)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow:hidden}}.ao-tasks{display:flex;flex-direction:column}.ao-tasks__list{display:flex;flex-direction:column;padding-inline-start:0;margin-block:0;gap:var(--ao-space-md)}.ao-tasks__list-footer{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-block-start:var(--ao-space-md)}.ao-tasks__list-footer .ao-button{padding-left:0}.ao-subtask{display:flex;list-style-type:none;gap:var(--ao-space-md)}.ao-subtask__check{padding-left:0}.ao-subtask__field{flex-grow:1;border:0;border-bottom:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:0}.ao-subtask__field--checked{text-decoration:line-through}.ao-subtask__field:focus{outline:none;border-bottom:var(--ao-border-width-md) solid var(--ao-input-border-color)}.ao-subtask__assignees{width:30%}.ao-subtask__assignees .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-subtask__assignees .multiselect-wrapper{justify-content:flex-start}.ao-subtask__delete{opacity:0;visibility:hidden}.ao-subtask:is(:hover,:focus-within) .ao-subtask__delete{opacity:1;visibility:visible}.ao-files__wrapper{--ao-input-file-color: var(--ao-color-neutral-darkest);--ao-input-file-border-color: transparent;--ao-input-file-placeholder-color: var(--ao-color-neutral-base);--ao-input-file-bg: transparent;position:relative;display:flex;width:100%;flex-direction:column;flex:1;border:var(--ao-border-width-md) solid var(--ao-input-file-border-color);border-radius:var(--ao-border-radius-md);background-color:var(--ao-input-file-bg);font-family:inherit;font-size:var(--ao-font-size-text);color:var(--ao-input-file-color);overflow-y:auto}.ao-files__wrapper--drop-active{--ao-input-file-border-color: var(--ao-color-primary-base);--ao-input-file-bg: var(--ao-color-primary-lightest);outline:0}.input-field{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ao-files__input{display:flex}.ao-files__placeholder{width:100%;margin-block-start:var(--ao-space-md);text-align:center;color:var(--ao-color-neutral-base)}.ao-files__list{display:flex;padding:0;padding-block-start:var(--ao-space-md);margin:0;gap:var(--ao-space-sm);flex-wrap:wrap}.ao-file{display:flex;position:relative;padding:0;padding-inline-end:var(--ao-space-xl);list-style-type:none;background-color:var(--ao-color-primary-lighter);border-radius:var(--ao-border-radius-md)}.ao-files__delete-button{position:absolute;top:50%;right:0;transform:translateY(-50%) scale(0);transition:50ms var(--ao-transition-ease)}.ao-file:is(:hover,:focus-within) .ao-files__delete-button{transform:translateY(-50%) scale(1)}.ao-file__link{width:100%;display:flex;flex:1;align-items:center;padding-block:var(--ao-space-md);padding-inline-start:var(--ao-space-md);color:var(--ao-color-primary-darker);text-decoration:none}.ao-file__icon{flex:0}.ao-file__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ao-font-size-label)}.ao-files__dropzone{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--ao-color-backdrop)}.ao-files__dropzone-label{font-size:var(--ao-font-size-text);color:var(--ao-color-text-contrast)}.ao-comment{--ao-comment-border-radius: var(--ao-border-radius-md);--ao-comment-bg: var(--ao-color-neutral-lightest);display:grid;gap:var(--ao-space-sm);grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;font-size:var(--ao-font-size-text)}.ao-comment__avatar{grid-row:2;align-self:flex-start}.ao-comment__body{padding:0 var(--ao-space-sm);grid-column:2}.ao-comment__content-wrapper{width:100%}.ao-comment__content{display:inline;width:100%;margin:0;white-space:pre-line}.ao-comment__created-at{grid-column:2;padding:0 var(--ao-space-sm);font-size:var(--ao-font-size-tag);color:var(--ao-color-neutral-light)}.ao-comment__footer{grid-column:2;display:flex;gap:var(--ao-space-sm)}.ao-comments{flex:3;overflow-y:auto}.ao-comments__list{display:flex;flex-direction:column-reverse;min-height:0;gap:var(--ao-space-lg);padding:0;padding-block-start:var(--ao-space-md);margin:0}.ao-comments__form{display:grid;gap:var(--ao-space-md);grid-template-columns:1fr auto;grid-template-rows:1fr auto;align-items:flex-end}.ao-comments__form-textarea{grid-column:1/ -1;grid-row:1/ -1}.ao-comments__form-submit{padding:var(--ao-space-md);grid-column:2;grid-row:2;display:flex;justify-content:flex-end}.mention-list{position:absolute;background:white;border:1px solid var(--ao-border-width-sm);border-radius:4px;box-shadow:0 2px 6px #00000026;z-index:1000;list-style:none;padding:0;margin:0;max-height:150px;overflow-y:auto}.mention-list li{padding:8px 12px;cursor:pointer}.mention-list li:hover{background-color:var(--ao-color-blue-lighter)}.tabbar-wrapper[data-v-3e3bce6d]{display:flex;align-items:center;margin:0;font-size:var(--ao-font-size-h3);padding:var(--ao-space-sm);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-neutral-lightest)}.tab-button[data-v-3e3bce6d]{border:none;background-color:transparent;padding:var(--ao-space-sm) var(--ao-space-md);border-radius:var(--ao-border-radius-sm);color:var(--ao-color-black);cursor:pointer;transition:background-color .2s ease;display:flex;align-items:center;gap:var(--ao-space-xs)}.tab-button__label[data-v-3e3bce6d]{display:inline-block}.tab-button__badge[data-v-3e3bce6d]{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding-inline:var(--ao-space-xs);font-size:var(--ao-font-size-xs);font-weight:var(--ao-font-weight-medium);color:var(--ao-color-neutral-dark);background-color:var(--ao-color-neutral-lightest);border-radius:var(--ao-border-radius-full)}.tab-button--active[data-v-3e3bce6d]{background-color:var(--ao-color-primary-base);color:var(--ao-color-white)}.tab-button--active .tab-button__badge[data-v-3e3bce6d]{background-color:var(--ao-color-primary-light);color:var(--ao-color-primary-dark)}.tabbar-wrapper--underline[data-v-3e3bce6d]{background-color:transparent;padding:0;border-bottom:1px solid var(--ao-color-neutral-light)}.tab-button--underline[data-v-3e3bce6d]{padding:var(--ao-space-sm) var(--ao-space-lg);border-radius:0;color:var(--ao-color-neutral-dark);transition:color .2s ease,border-color .2s ease;border-bottom:2px solid transparent;margin-bottom:-1px}.tab-button--underline[data-v-3e3bce6d]:hover{color:var(--ao-color-black)}.tab-button--underline.tab-button--active[data-v-3e3bce6d]{background-color:transparent;color:var(--ao-color-primary-base);border-bottom-color:var(--ao-color-primary-base)}.tab-button--underline .tab-button__badge[data-v-3e3bce6d]{background-color:var(--ao-color-neutral-light)}.ao-activity-details{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__header{display:flex;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-lg) var(--ao-space-md)}.ao-activity-details__main{flex-grow:1;padding:var(--ao-space-lg)}.ao-activity__category{font-weight:var(--ao-font-weight-regular)}.ao-activity-details__content{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-lg)}.ao-activity-details__aside{border-top:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);margin-block-start:var(--ao-space-lg);padding-block-start:var(--ao-space-lg);display:flex;flex-direction:column}.ao-activity-details__aside-section:not(:empty){padding:var(--ao-space-xl) var(--ao-space-lg)}.ao-activity-details__aside-section+.ao-activity-details__aside-section:not(:empty){border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-light)}.ao-field__input--estim{width:8ch}@container modal (min-width: 480px){.ao-activity-details__content{overflow-y:auto}.ao-activity-details__aside{margin-block-start:0;border-top:0}}@container modal (min-width: 720px){.ao-activity-details{display:flex;flex-direction:column;height:auto;min-height:auto;flex-grow:1;flex-direction:row}.ao-activity-details__main{height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__aside{width:35%;background-color:var(--ao-color-canvas);padding-block-end:var(--ao-space-xl);padding-block-start:var(--ao-space-sm)}.ao-activity-details__aside>:nth-child(2){padding-block-start:var(--ao-space-md)}.ao-activity-details__close-button{display:flex;flex-direction:row;justify-content:end;margin-inline-end:var(--ao-space-sm)}.ao-activity-details__close-button *{cursor:pointer}.ao-activity-details__aside-section--created-by{margin-block-start:auto;border-block-start-width:0}.ao-activity-details__multiselect .multiselect-tags-search{background-color:transparent}.ao-activity-details__multiselect.ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-bg: transparent;--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-field__input:not(.ao-field__input--estim){background-color:transparent;border-color:transparent}}.ao-activity__created-by{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-activity__ao-tag{display:inline-flex;width:auto;border:none;border-radius:var(--ao-tag-border-radius)}.ao-activity__ao-tag .ao-tag__label{width:auto;max-width:100%}.assignee-inline{display:flex;align-items:center;gap:8px}.ao-activity-details__tabs{margin-block:var(--ao-space-md)}.ao-activity-details__tab-content{padding-block:var(--ao-space-md)}.ao-activity-details__description-textarea{width:100%;padding:var(--ao-space-md);border:1px solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-white);font-family:inherit;font-size:var(--ao-font-size-base);line-height:1.5;resize:vertical;transition:border-color .2s ease,box-shadow .2s ease}.ao-activity-details__description-textarea:hover{border-color:var(--ao-color-neutral-dark)}.ao-activity-details__description-textarea:focus{outline:none;border-color:var(--ao-color-primary-base);box-shadow:0 0 0 2px var(--ao-color-primary-lightest)}.ao-activity-details__description-textarea:read-only{background-color:transparent;border-color:transparent;cursor:default}.ao-activity-details__description-textarea:read-only:hover{border-color:transparent}.ao-rule-line{display:flex}.ao-rule-line__remove{visibility:hidden;opacity:0}.ao-rule-line:hover .ao-rule-line__remove{visibility:visible;opacity:1}.ao-template-rules__body{display:flex;flex-direction:column;flex:1;align-items:stretch;gap:var(--ao-space-lg)}.ao-template-rules__list{padding:0;margin:0;display:flex;flex-direction:column;flex:1;gap:var(--ao-space-md)}.ao-template-rule{list-style:none}.ao-template-details__cols{display:flex;list-style-type:none;padding:0;margin:0;container:columns / inline-size;overflow-x:auto}.ao-template-details__col{width:100%;padding-inline:var(--ao-space-md);flex-shrink:0}@container columns (min-width: 480px){.ao-template-details__col{width:50%}}@container columns (min-width: 960px){.ao-template-details__col{width:calc(1 / 3 * 100%)}}.ao-card{--ao-card-bg: var(--ao-color-card);--ao-card-color: inherit;--ao-card-padding: var(--ao-space-md);--ao-card-elevation: var(--ao-elevation-2dp);display:flex;flex-direction:row;border-radius:var(--ao-border-radius-md);background-color:var(--ao-card-bg);color:var(--ao-card-color);box-shadow:var(--ao-card-elevation);transform:translateY(0)}.ao-card__content{display:flex;flex-direction:column;width:100%}.ao-card__left-border{width:var(--ao-space-md);border-top-left-radius:var(--ao-border-radius-md);border-bottom-left-radius:var(--ao-border-radius-md)}:not(.ao-list-kanban__transition)>.ao-card{transition:all .15s var(--ao-transition-ease)}.ao-card--clickable{cursor:pointer}.ao-card--clickable:is(:hover,:focus-within){--ao-card-elevation: var(--ao-elevation-4dp);transform:translateY(-2px)}.ao-card__header{display:flex;flex-direction:column;padding-block-start:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-card__body{display:flex;flex-direction:column;flex:1;padding-inline:var(--ao-card-padding)}.ao-card__footer{display:flex;flex-direction:column;padding-block-end:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-progress{--ao-progress-bg: var(--ao-color-neutral-lightest);--ao-progress-height: var(--ao-grid-size);--ao-progress-border-radius: var(--ao-border-radius-md);height:var(--ao-progress-height);width:100%;display:grid;grid-column:1 / -1;grid-row:2;background-color:var(--ao-progress-bg);border-radius:var(--ao-progress-border-radius)}.ao-progress__progress{grid-column:1;grid-row:1;border-radius:var(--ao-progress-border-radius);background-color:var(--ao-progress-color);opacity:.2}.ao-progress--success{--ao-progress-color: var(--ao-color-success)}.ao-progress--warning{--ao-progress-color: var(--ao-color-warning)}.ao-progress--danger{--ao-progress-color: var(--ao-color-danger)}.ao-progress__progress:nth-child(1){opacity:1;z-index:1}.hu-color-picker{padding:10px;background:#1d2024;border-radius:4px;box-shadow:0 0 16px #00000029;z-index:1}.hu-color-picker.light{background:#f7f8f9}.hu-color-picker.light .color-show .sucker{background:#eceef0}.hu-color-picker.light .color-type .name{background:#e7e8e9}.hu-color-picker.light .color-type .value{color:#666;background:#eceef0}.hu-color-picker.light .colors.history{border-top:1px solid #eee}.hu-color-picker canvas{vertical-align:top}.hu-color-picker .color-set{display:flex}.hu-color-picker .color-show{margin-top:8px;display:flex}.saturation{position:relative;cursor:pointer}.saturation .slide{position:absolute;left:100px;top:0;width:10px;height:10px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 1px 1px #0000004d;pointer-events:none}.color-type{display:flex;margin-top:8px;font-size:12px}.color-type .name{width:60px;height:30px;float:left;display:flex;justify-content:center;align-items:center;color:#999;background:#252930}.color-type .value{flex:1;height:30px;min-width:100px;padding:0 12px;border:0;color:#fff;background:#2e333a;box-sizing:border-box}.color-alpha{position:relative;margin-left:8px;cursor:pointer}.color-alpha .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.sucker{width:30px;fill:#9099a4;background:#2e333a;cursor:pointer;transition:all .3s}.sucker.active,.sucker:hover{fill:#1593ff}.colors{padding:0;margin:0}.colors.history{margin-top:10px;border-top:1px solid #2e333a}.colors .item{position:relative;width:16px;height:16px;margin:10px 0 0 10px;border-radius:3px;box-sizing:border-box;vertical-align:top;display:inline-block;transition:all .1s;cursor:pointer}.colors .item:nth-child(8n+1){margin-left:0}.colors .item:hover{transform:scale(1.4)}.colors .item .alpha{height:100%;border-radius:4px}.colors .item .color{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.hue{position:relative;margin-left:8px;cursor:pointer}.hue .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.color-picker-wrapper{position:relative}.color-picker{box-shadow:var(--ao-elevation-2dp)}.color-picker-box{box-sizing:content-box}.ao-card-project-phase__header{display:flex;justify-content:flex-end}.ao-card-project-phase__footer{display:flex;flex-direction:column}.ao-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-card-project-phase__archive{opacity:0;visibility:hidden}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__archive{opacity:1;visibility:visible}.ao-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-card-project-phase__footer-row.ao-card-project-phase__no_deadline,.ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline{opacity:0;visibility:hidden}.ao-card-project-phase__deadline--readonly,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-phase__progress{flex-grow:1}.aoBadge{display:inline-block;padding:4px;width:8px;height:8px;border-radius:var(--ao-border-radius-round)}.ao-card-project-milestone{--ao-card-project-milestone-border-color: transparent;padding:0;border:var(--ao-border-width-md) solid var(--ao-card-project-milestone-border-color)}.ao-card-project-milestone__default{display:flex;justify-content:space-between}.ao-card-project-milestone__archive{display:none;height:fit-content;padding-block:var(--ao-space-md)}.ao-card-project-milestone:hover .ao-card-project-milestone__archive{display:flex}.ao-card-project-milestone__activities{display:flex;flex-direction:column}.ao-card-project-milestone__activities-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-project-milestone__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-milestone:hover .ao-card-project-milestone__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-milestone__activities-row+.ao-card-project-milestone__activities-row{margin-block-start:var(--ao-space-md)}.ao-card-project-milestone__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-milestone__progress{flex-grow:1}.ao-card-project-milestone__title{max-width:fit-content;display:inline;word-break:normal}.ao-card-project-item-milestone__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h5)}.ao-card-project-milestone__footer{display:flex;align-items:center;padding-block-start:var(--ao-space-sm);gap:var(--ao-space-sm)}.ao-card-project-milestone__assignee{display:flex;justify-content:flex-start;margin-inline-start:auto}.ao-card-project-milestone__deadline{padding-block:var(--ao-space-sm)}.ao-card-project-milestone__important{color:var(--ao-color-danger)}.ao-card-project-milestone__important--selected{color:var(--ao-color-white)}.ao-title-with-badge-wrapper{display:flex;align-items:center;gap:8px}.ao-mapping-card-project-phase__header{display:flex;justify-content:flex-end;opacity:0;visibility:collapse;//transition: collapse .15s}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__header{opacity:1;visibility:visible}.ao-mapping-card-project-phase__footer{display:flex;flex-direction:column}.ao-mapping-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-mapping-card-project-phase__archive{opacity:0;visibility:hidden}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__archive{opacity:1;visibility:visible}.ao-mapping-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-mapping-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-mapping-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-mapping-card-project-phase__footer-row.ao-mapping-card-project-phase__no_deadline,.ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline{opacity:0;visibility:collapse}.ao-mapping-card-project-phase__deadline--readonly,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-mapping-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-item__title-line{display:block;word-break:normal}.ao-card-project-item-phase__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h4)}.ao-mapping-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-mapping-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-mapping-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-mapping-card-project-phase__progress{flex-grow:1}.ao-project-phase__drag-handle{opacity:0;visibility:hidden}.ao-project-phase__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-project-phase:hover .ao-project-phase__drag-handle{opacity:1;visibility:visible}.ao-project-phase{display:flex;flex-direction:column;padding-block:var(--ao-space-md)}.ao-project-phase--selected .ao-project-phase__col-phase{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-xxl);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-mapping-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-lg) var(--ao-space-sm);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-project-phase__col-milestones{display:flex;flex:1;padding:var(--ao-space-md);gap:var(--ao-space-md);overflow-x:auto;scroll-snap-type:x mandatory}.ao-project-phase__milestones,.ao-project-phase__milestones-list{display:contents}.ao-project-phase__milestone{scroll-snap-align:center;width:90%;flex-shrink:0}.ao-project-phase__milestones-list-footer{display:flex;scroll-snap-align:center}@container page (min-width: 480px){.ao-project-phase__milestones-list{grid-auto-columns:45%;overflow-x:auto}.ao-project-phase__milestone{width:45%}}@container page (min-width: 720px){.ao-project-phase{flex-direction:row}.ao-project-phase__col-phase,.ao-mapping-project-phase__col-phase{width:20em}.ao-project-phase+.ao-project-phase{border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-project-phase__col-milestones{flex-direction:column;border-inline-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);overflow:hidden}.ao-project-phase__milestones{display:flex;width:100%;flex-direction:row;align-items:center;height:100%;padding:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet)}.ao-project-phases__draggable-card{margin:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet);display:flex;flex-direction:row}.ao-project-phase--selected .ao-project-phase__milestones{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__milestones-list{display:grid;padding:var(--ao-space-md);flex-shrink:1;max-width:100%;min-width:0;grid-auto-columns:minmax(max(20%,147px),196px);grid-auto-flow:column;align-items:stretch;gap:var(--ao-space-md);scroll-snap-type:x mandatory;scroll-snap-padding:var(--ao-space-md)}.ao-project-phase__milestone{width:100%;scroll-snap-align:start}.ao-project-phase__milestones-list-footer{align-items:center;padding:var(--ao-space-md)}.ao-project-phase__milestone-add{flex-grow:0;flex-shrink:0}}.ao-project__phases{display:flex;flex-direction:column;height:100%;min-height:0;padding-inline-start:0;margin-block:0}.ao-project-phase__add-phase{padding:var(--ao-space-lg)}@container page (min-width: 720px){.ao-project-phase__phases-list-footer{display:flex}.ao-project-phase__empty_drag{width:40px}.ao-project-phase__phases-list-footer .ao-project-phase__col-phase{max-width:20em;padding:var(--ao-space-md)}.ao-project-phase__phases-list-footer .ao-project-phase__col-milestones{border:none}}.ao-add-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md);padding:0 var(--ao-space-xl) var(--ao-space-xl) var(--ao-space-xl)}.ao-add-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-add-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md)}.ao-save-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-save-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{padding:0 var(--ao-space-lg) var(--ao-space-lg) var(--ao-space-lg)}.ao-save-template-modal__phases{margin-top:var(--ao-space-md)}.ao-field__label{padding:var(--ao-space-md) 0;font-size:var(--ao-font-size-base)}.ao-save-template-modal__phases-list{display:flex;flex-direction:column;gap:var(--ao-space-sm)}.ao-field--checkbox{display:flex;flex-direction:row}.ao-project-overview__add-template .ao-project-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:hidden}.ao-project__body{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;min-width:0;flex-grow:1;align-items:flex-start;padding-block:var(--ao-space-md);overflow:hidden}@container page (min-width: 720px){.ao-project{padding-inline:var(--ao-space-lg)}}.ao-card-feed{cursor:pointer}.ao-card-feed__header{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-items:flex-start}.ao-card-feed__header-secondary{grid-column:2;grid-row:1}.ao-card-feed__header-icons{margin-inline-start:auto}.ao-card-feed__title-group{margin-block:var(--ao-space-md);display:flex;align-items:center}.ao-card-feed__body{display:flex;flex-direction:column;align-items:flex-start}.ao-card-feed__project{max-width:100%}.ao-card-feed__breadcrumbs{font-size:var(--ao-font-size-label)}.ao-card-feed_deadline{color:var(--ao-color-neutral-base);font-size:var(--ao-font-size-label)}.ao-card-feed__important{margin-inline-start:auto;color:var(--ao-color-danger)}.ao-card-feed__warning{color:var(--ao-color-warning)}.ao-card-feed__footer{display:flex;flex-direction:column}.ao-card-feed__footer-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-feed__secondary{display:flex;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-feed:hover .ao-card-feed__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-feed__footer-row+.ao-card-feed__footer-row{margin-block-start:var(--ao-space-md)}.ao-assignees{display:flex;margin:0;padding:0}.ao-assignee{list-style-type:none}.ao-card-feed__subitems{margin:0;margin-inline-start:auto;padding:0;display:flex;gap:var(--ao-space-sm);align-items:center}.ao-card-feed__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-feed__progress-wrapper{display:flex;width:100%;align-items:center;gap:var(--ao-space-md)}.ao-card-feed__progress{flex-grow:1}.ao-card-feed__timer-wrapper{opacity:0;visibility:hidden;margin-inline-start:auto}.ao-card-feed:is(:hover,:focus-within) .ao-card-feed__timer-wrapper{opacity:1;visibility:visible}.ao-card-feed__timer{cursor:pointer;color:var(--ao-color-primary-base)}.ao-card-feed__timer:hover{color:var(--ao-color-primary-dark)}.ao-card-feed__closed{color:var(--ao-color-primary-base)}.ao-card-feed--closed :is(.ao-card-feed__body,.ao-card-feed__footer,.ao-card-feed__project,.ao-card-feed__header-icons > *:not(.ao-card-feed__closed)){opacity:.3}.ao-card-feed__title-line{display:block;word-break:normal}.ao-card-feed__slug{font-weight:var(--ao-font-weight-semi-bold);white-space:nowrap;display:inline}.ao-card-feed__title-inline{display:inline;word-break:normal}.ao-project-milestone{display:flex;flex-direction:column;flex:1;height:100%;min-height:0;width:24em;background-color:var(--ao-color-sheet);padding:var(--ao-space-lg)}.ao-project-milestone__header{display:flex;align-items:flex-start;flex-direction:column}.ao-project-milestone__header_line{display:flex;align-items:flex-start;justify-content:space-between;width:100%}.ao-project-milestone__title{display:flex;padding-inline:var(--ao-space-lg);width:100%}.ao-project-milestone__body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-project-milestone__activities{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-md);margin-block:0;overflow-y:auto}.ao-project-milestone__footer{display:flex;flex-direction:column;padding:var(--ao-space-md)}.ao-milestone__fieldset{width:100%;padding:var(--ao-space-md);border-block-end:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-milestone__field-row{width:100%;align-items:center}.ao-milestone__field-row+.ao-milestone__field-row{margin-block-start:var(--ao-space-sm)}.ao-milestone__field{padding:var(--ao-space-sm);font-size:var(--ao-font-size-label);background-color:transparent;border-width:0}.ao-milestone__field-multiselect{width:14ch;background-color:transparent}.ao-milestone__field-multiselect .multiselect-tags-search{background-color:transparent}.ao-milestone__field-multiselect .ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-milestone__important,.ao-milestone__close{margin-inline-start:auto}.color-button{cursor:pointer;width:125px;height:24px;border-radius:var(--ao-border-radius-sm);border:1px solid #ccc}.ao-col-header{--ao-col-header-bg: var(--ao-color-card);display:flex;background-color:var(--ao-col-header-bg);border-radius:var(--ao-border-radius-md);align-items:center;padding:var(--ao-space-md)}.ao-col-header__title{flex:1}.ao-col-header__items{flex-shrink:0}.ao-list-kanban{display:flex;flex-direction:column;gap:var(--ao-space-lg);height:100%;min-height:0;scroll-snap-align:start end}.ao-list-kanban__list{display:flex;flex-direction:column;gap:var(--ao-space-md);min-height:0;overflow-y:auto;padding-inline:var(--ao-space-md)}.ao-list-kanban__header,.ao-list-kanban__footer{padding-inline:var(--ao-space-md)}.ao-list-kanban__end{display:flex;flex-direction:column;padding:var(--ao-space-md);align-items:center;justify-items:center;flex-shrink:0}.ao-list-kanban__divider{width:50%;height:2px;background-color:var(--ao-color-neutral-lightest)}.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-move,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-enter-active,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-leave-active{transition:all .5s ease}.ao-list-kanban__transition-leave-active{position:absolute}.ao-list-kanban__ghost{opacity:.5;background:var(--ao-color-primary-lightest)}.ao-search-field{--ao-search-field-icon-size: var(--ao-icon-size-md);--ao-search-field-icon-slot-size: calc( var(--ao-search-field-icon-size) + var(--ao-space-xl) );--ao-search-field-placeholder-color: var(--ao-color-black);--ao-input-border-color: var(--ao-color-neutral-lightest);display:grid;grid-template-columns:1fr var(--ao-search-field-icon-slot-size);align-items:center;gap:var(--ao-space-sm);flex:1}.ao-search-field__input{grid-column:1 / -1;grid-row:1;width:100%;padding-inline-end:var(--ao-search-field-icon-slot-size);font-size:var(--ao-font-size-button);border-radius:var(--ao-border-radius-md)}.ao-search-field__input:focus{color:var(--ao-color-primary-base);outline-color:var(--ao-color-primary-lightest)}.ao-search-field__input::placeholder{color:var(--ao-search-field-placeholder-color);opacity:1}.ao-search-field__action{grid-column:2;grid-row:1;justify-self:center;transform:scale(0);transition:transform .15s var(--ao-transition-ease);transform-origin:50%}.ao-search-field__action--visible{transform:scale(1)}.ao-search-field__icon{width:var(--ao-search-field-icon-size);height:var(--ao-search-field-icon-size);color:var(--ao-color-neutral-dark);pointer-events:none}.ao-feed{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;container:page / inline-size}.ao-feed__body{display:grid;grid-auto-flow:column;grid-auto-columns:100%;height:100%;min-height:0;flex-grow:1;overflow-x:auto;align-items:flex-start;padding-block:var(--ao-space-md);scroll-snap-type:x mandatory}.ao-feed__activity-details__header{display:flex;gap:var(--ao-space-md)}.ao-feed__activity-details__project{flex:2}.ao-feed__activity-details__status{flex:1}@container page (min-width: 420px){.ao-feed__body{grid-auto-columns:50cqi}}@container page (min-width: 768px){.ao-feed__body{grid-auto-columns:33cqi}}@container page (min-width: 1024px){.ao-feed__body{grid-auto-columns:minmax(calc(var(--ao-grid-size) * 32),calc(var(--ao-grid-size) * 32))}}.ao-kanban__col{display:flex;flex-direction:column;gap:var(--ao-space-md);max-height:100%;min-height:0;overflow-y:auto;padding:var(--ao-space-lg)}.ao-feed__filters{flex:1;display:flex;gap:1%;align-items:center;flex-direction:column}.ao-feed__filter .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-feed__filter .multiselect-wrapper{justify-content:flex-start}.ao-feed__show-archived{flex:0 auto}@container header (min-width: 720px){.ao-feed__filters{flex-direction:row}.ao-feed__search{padding-inline-end:var(--ao-space-md);border-right:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-feed__search,.ao-feed__filter__projects{max-width:33%}.ao-feed__filter__assignees,.ao-feed__filter__types{max-width:15%}}.ao-project-mapping-overview__add-template,.ao-project-mapping-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-mapping-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project-mapping{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:visible}.ao-project-mapping-mapping__body{display:flex;flex-direction:row;align-items:flex-start;gap:var(--ao-space-md);padding-block:var(--ao-space-md)}.ao-project-mapping-mapping__phases{flex:0 0 auto;min-width:0;max-height:100vh;overflow:scroll}.ao-project-mapping-mapping__image-wrapper{flex:1 1 0;position:relative;min-width:0}.architecture-image{position:sticky;top:var(--ao-space-md);width:100%;height:auto;display:block}@container page (min-width: 720px){.ao-project-mapping{padding-inline:var(--ao-space-lg)}}.ao-templates{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg)}.ao-templates__header{display:flex;padding:var(--ao-space-sm)}.ao-templates__list{display:flex;margin:0;padding:var(--ao-space-sm);list-style-type:none;flex-direction:column;gap:var(--ao-space-md);container:column / inline-size}
2
- `,document.head.appendChild(De),typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuedraggable"],e):(X=typeof globalThis<"u"?globalThis:X||self,e(X.Orcha={},X.Vue,X.vueRouter,X.Draggable))})(this,function(X,e,De,je){"use strict";const ag="",og="",rg="",ng="",Gr=e.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(a){return(t,o)=>(e.openBlock(),e.createBlock(e.unref(De.RouterView),e.mergeProps({templates:t.templates},t.$attrs),null,16,["templates"]))}}),j=(a,t)=>{const o=a.__vccOpts||a;for(const[n,r]of t)o[n]=r;return o},Xr={},Qr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jr=[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)];function en(a,t){return e.openBlock(),e.createElementBlock("svg",Qr,Jr)}const tn=j(Xr,[["render",en]]),an={},on={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rn=[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)];function nn(a,t){return e.openBlock(),e.createElementBlock("svg",on,rn)}const sn=j(an,[["render",nn]]),ln={},cn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dn=[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)];function pn(a,t){return e.openBlock(),e.createElementBlock("svg",cn,dn)}const un=j(ln,[["render",pn]]),mn={},fn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hn=[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)];function gn(a,t){return e.openBlock(),e.createElementBlock("svg",fn,hn)}const _n=j(mn,[["render",gn]]),vn={},bn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cn=[e.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)];function yn(a,t){return e.openBlock(),e.createElementBlock("svg",bn,Cn)}const wn=j(vn,[["render",yn]]),kn={},$n={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},En=[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)];function Bn(a,t){return e.openBlock(),e.createElementBlock("svg",$n,En)}const Vn=j(kn,[["render",Bn]]),Sn={},Nn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xn=[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)];function Mn(a,t){return e.openBlock(),e.createElementBlock("svg",Nn,xn)}const Tn=j(Sn,[["render",Mn]]),An={},On={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},In=[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)];function Ln(a,t){return e.openBlock(),e.createElementBlock("svg",On,In)}const Dn=j(An,[["render",Ln]]),jn={},Pn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zn=[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)];function Hn(a,t){return e.openBlock(),e.createElementBlock("svg",Pn,zn)}const Rn=j(jn,[["render",Hn]]),Un={},Fn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zn=[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)];function Wn(a,t){return e.openBlock(),e.createElementBlock("svg",Fn,Zn)}const qn=j(Un,[["render",Wn]]),Yn={},Kn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gn=[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)];function Xn(a,t){return e.openBlock(),e.createElementBlock("svg",Kn,Gn)}const Qn=j(Yn,[["render",Xn]]),Jn={},ei={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ti=[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)];function ai(a,t){return e.openBlock(),e.createElementBlock("svg",ei,ti)}const oi=j(Jn,[["render",ai]]),ri={},ni={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)];function si(a,t){return e.openBlock(),e.createElementBlock("svg",ni,ii)}const li=j(ri,[["render",si]]),ci={},di={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pi=[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)];function ui(a,t){return e.openBlock(),e.createElementBlock("svg",di,pi)}const mi=j(ci,[["render",ui]]),fi={},hi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gi=[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)];function _i(a,t){return e.openBlock(),e.createElementBlock("svg",hi,gi)}const vi=j(fi,[["render",_i]]),bi={},Ci={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yi=[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)];function wi(a,t){return e.openBlock(),e.createElementBlock("svg",Ci,yi)}const ki=j(bi,[["render",wi]]),$i={},Ei={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bi=[e.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)];function Vi(a,t){return e.openBlock(),e.createElementBlock("svg",Ei,Bi)}const Si=j($i,[["render",Vi]]),Ni={},xi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mi=[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)];function Ti(a,t){return e.openBlock(),e.createElementBlock("svg",xi,Mi)}const Ai=j(Ni,[["render",Ti]]),Oi={},Ii={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Li=[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)];function Di(a,t){return e.openBlock(),e.createElementBlock("svg",Ii,Li)}const ji=j(Oi,[["render",Di]]),Pi={},zi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hi=[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)];function Ri(a,t){return e.openBlock(),e.createElementBlock("svg",zi,Hi)}const Ui=j(Pi,[["render",Ri]]),Fi={},Zi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wi=[e.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)];function qi(a,t){return e.openBlock(),e.createElementBlock("svg",Zi,Wi)}const Yi=j(Fi,[["render",qi]]),Ki={},Gi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xi=[e.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)];function Qi(a,t){return e.openBlock(),e.createElementBlock("svg",Gi,Xi)}const Ji=j(Ki,[["render",Qi]]),es={},ts={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},as=[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)];function os(a,t){return e.openBlock(),e.createElementBlock("svg",ts,as)}const rs=j(es,[["render",os]]),ns={},is={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ss=[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)];function ls(a,t){return e.openBlock(),e.createElementBlock("svg",is,ss)}const cs=j(ns,[["render",ls]]),ds={},ps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},us=[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)];function ms(a,t){return e.openBlock(),e.createElementBlock("svg",ps,us)}const fs=j(ds,[["render",ms]]),hs={},gs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_s=[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)];function vs(a,t){return e.openBlock(),e.createElementBlock("svg",gs,_s)}const bs=j(hs,[["render",vs]]),Cs={},ys={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ws=[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)];function ks(a,t){return e.openBlock(),e.createElementBlock("svg",ys,ws)}const $s=j(Cs,[["render",ks]]),Es={},Bs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vs=[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)];function Ss(a,t){return e.openBlock(),e.createElementBlock("svg",Bs,Vs)}const Ns=j(Es,[["render",Ss]]),xs={},Ms={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ts=[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)];function As(a,t){return e.openBlock(),e.createElementBlock("svg",Ms,Ts)}const Os=j(xs,[["render",As]]),Is={},Ls={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ds=[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)];function js(a,t){return e.openBlock(),e.createElementBlock("svg",Ls,Ds)}const Ps=j(Is,[["render",js]]),zs={},Hs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rs=[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)];function Us(a,t){return e.openBlock(),e.createElementBlock("svg",Hs,Rs)}const Fs=j(zs,[["render",Us]]),Zs={},Ws={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qs=[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)];function Ys(a,t){return e.openBlock(),e.createElementBlock("svg",Ws,qs)}const Ks=j(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:"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)];function Js(a,t){return e.openBlock(),e.createElementBlock("svg",Xs,Qs)}const el=j(Gs,[["render",Js]]),tl={},al={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ol=[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)];function rl(a,t){return e.openBlock(),e.createElementBlock("svg",al,ol)}const nl=j(tl,[["render",rl]]),il={},sl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ll=[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)];function cl(a,t){return e.openBlock(),e.createElementBlock("svg",sl,ll)}const dl=j(il,[["render",cl]]),pl={},ul={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ml=[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)];function fl(a,t){return e.openBlock(),e.createElementBlock("svg",ul,ml)}const hl=j(pl,[["render",fl]]),gl={},_l={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vl=[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)];function bl(a,t){return e.openBlock(),e.createElementBlock("svg",_l,vl)}const Cl=j(gl,[["render",bl]]),yl={},wl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kl=[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)];function $l(a,t){return e.openBlock(),e.createElementBlock("svg",wl,kl)}const El=j(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 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)];function Nl(a,t){return e.openBlock(),e.createElementBlock("svg",Vl,Sl)}const xl=j(Bl,[["render",Nl]]),Ml={},Tl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Al=[e.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)];function Ol(a,t){return e.openBlock(),e.createElementBlock("svg",Tl,Al)}const Il=j(Ml,[["render",Ol]]),Ll=e.defineComponent({name:"LoadingIcon"}),Wg="",Oa=a=>(e.pushScopeId("data-v-ad6da4a9"),a=a(),e.popScopeId(),a),Dl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jl=[Oa(()=>e.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1)),Oa(()=>e.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1)),Oa(()=>e.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1))];function Pl(a,t,o,n,r,s){return e.openBlock(),e.createElementBlock("svg",Dl,jl)}const zl=j(Ll,[["render",Pl],["__scopeId","data-v-ad6da4a9"]]),Hl={},Rl={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},Ul=[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)];function Fl(a,t){return e.openBlock(),e.createElementBlock("svg",Rl,Ul)}const Zl=j(Hl,[["render",Fl]]),Wl={},ql={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yl=[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)];function Kl(a,t){return e.openBlock(),e.createElementBlock("svg",ql,Yl)}const Gl=j(Wl,[["render",Kl]]),Xl={},Ql={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jl=[e.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)];function ec(a,t){return e.openBlock(),e.createElementBlock("svg",Ql,Jl)}const tc=j(Xl,[["render",ec]]),ac={},oc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rc=[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)];function nc(a,t){return e.openBlock(),e.createElementBlock("svg",oc,rc)}const ic=j(ac,[["render",nc]]),sc={},lc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cc=[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)];function dc(a,t){return e.openBlock(),e.createElementBlock("svg",lc,cc)}const pc=j(sc,[["render",dc]]),uc={},mc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fc=[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)];function hc(a,t){return e.openBlock(),e.createElementBlock("svg",mc,fc)}const gc=j(uc,[["render",hc]]),_c={},vc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bc=[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)];function Cc(a,t){return e.openBlock(),e.createElementBlock("svg",vc,bc)}const yc=j(_c,[["render",Cc]]),wc={},kc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$c=[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)];function Ec(a,t){return e.openBlock(),e.createElementBlock("svg",kc,$c)}const Bc=j(wc,[["render",Ec]]),Vc={},Sc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nc=[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)];function xc(a,t){return e.openBlock(),e.createElementBlock("svg",Sc,Nc)}const Mc=j(Vc,[["render",xc]]),Tc={},Ac={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Oc=[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)];function Ic(a,t){return e.openBlock(),e.createElementBlock("svg",Ac,Oc)}const Lc=j(Tc,[["render",Ic]]),Dc={},jc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pc=[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)];function zc(a,t){return e.openBlock(),e.createElementBlock("svg",jc,Pc)}const Hc=j(Dc,[["render",zc]]),Rc={},Uc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fc=[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)];function Zc(a,t){return e.openBlock(),e.createElementBlock("svg",Uc,Fc)}const Wc=j(Rc,[["render",Zc]]),qc={},Yc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kc=[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)];function Gc(a,t){return e.openBlock(),e.createElementBlock("svg",Yc,Kc)}const Xc=j(qc,[["render",Gc]]),Qc={},Jc={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e1=[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)];function t1(a,t){return e.openBlock(),e.createElementBlock("svg",Jc,e1)}const a1=j(Qc,[["render",t1]]),o1={},r1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n1=[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)];function i1(a,t){return e.openBlock(),e.createElementBlock("svg",r1,n1)}const s1=j(o1,[["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:"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)];function p1(a,t){return e.openBlock(),e.createElementBlock("svg",c1,d1)}const u1=j(l1,[["render",p1]]),m1={},f1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h1=[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)];function g1(a,t){return e.openBlock(),e.createElementBlock("svg",f1,h1)}const _1=j(m1,[["render",g1]]),v1={},b1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C1=[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)];function y1(a,t){return e.openBlock(),e.createElementBlock("svg",b1,C1)}const w1=j(v1,[["render",y1]]),k1={},$1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E1=[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)];function B1(a,t){return e.openBlock(),e.createElementBlock("svg",$1,E1)}const V1=j(k1,[["render",B1]]),S1={},N1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x1=[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)];function M1(a,t){return e.openBlock(),e.createElementBlock("svg",N1,x1)}const T1=j(S1,[["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:"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)];function L1(a,t){return e.openBlock(),e.createElementBlock("svg",O1,I1)}const D1=j(A1,[["render",L1]]),j1={},P1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},z1=[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)];function H1(a,t){return e.openBlock(),e.createElementBlock("svg",P1,z1)}const R1=j(j1,[["render",H1]]),U1={},F1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z1=[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)];function W1(a,t){return e.openBlock(),e.createElementBlock("svg",F1,Z1)}const q1=j(U1,[["render",W1]]),Y1={},K1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},G1=[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)];function X1(a,t){return e.openBlock(),e.createElementBlock("svg",K1,G1)}const Q1=j(Y1,[["render",X1]]),J1={},ed={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},td=[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)];function ad(a,t){return e.openBlock(),e.createElementBlock("svg",ed,td)}const od=j(J1,[["render",ad]]),rd={},nd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},id=[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)];function sd(a,t){return e.openBlock(),e.createElementBlock("svg",nd,id)}const ld=j(rd,[["render",sd]]),cd={},dd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pd=[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)];function ud(a,t){return e.openBlock(),e.createElementBlock("svg",dd,pd)}const md=j(cd,[["render",ud]]),fd={},hd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gd=[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)];function _d(a,t){return e.openBlock(),e.createElementBlock("svg",hd,gd)}const vd=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:tn,AccountCircle:sn,AccountTreeOutlineRounded:un,AccountTreeRounded:_n,Add:wn,AddBoxOutlineRounded:Vn,ArchiveOutlineRounded:Tn,ArrowBackRounded:Dn,ArrowDropDownRounded:Rn,ArrowForwardRounded:qn,AssignmentOutlineRounded:Qn,AttachFileRounded:oi,CalendarTodayOutlineRounded:li,CancelRounded:mi,ChatOutline:vi,CheckBoxOutlineBlank:ki,CheckBoxOutlineBlankSharp:Si,CheckBoxOutlineRounded:Ai,CheckSmallRounded:ji,ChecklistRounded:Ui,ChevronLeft:Yi,ChevronRight:Ji,CloseRounded:rs,ContactsOutlineRounded:cs,ContentCopyOutline:fs,DeleteOutlineRounded:bs,DragIndicator:$s,EditDocumentRounded:Ns,EditOutline:Os,ErrorOutlineRounded:Ps,FilterListRounded:Fs,FlagRounded:Ks,FlowsheetOutlineRounded:el,GifBox:nl,GroupsOutline:dl,HomeOutlineRounded:hl,ImageRounded:Cl,Info:El,KeyboardArrowDown:xl,KeyboardArrowUp:Il,Loading:zl,Lock:Zl,LogoutRounded:Gl,Menu:tc,MoreHoriz:ic,MoreTimeRounded:pc,MoreVert:gc,MountainFlagOutlineRounded:yc,PersonAddOutlineRounded:Bc,PictureAsPdfRounded:Mc,RadioButtonChecked:Lc,RadioButtonCheckedOutline:Hc,RadioButtonUnchecked:Wc,RemoveRounded:Xc,SearchRounded:a1,SelectCheckBox:s1,SendRounded:u1,Settings:_1,SlideshowRounded:w1,Target:V1,TaskOutlineRounded:T1,TextSnippetRounded:D1,TimerOutline:R1,ViewComfyAltRounded:q1,ViewCompactAltRounded:Q1,ViewTimelineRounded:od,WarningOutlineRounded:ld,WarningRounded:md,WaterfallChartRounded:j(fd,[["render",_d]])},Symbol.toStringTag,{value:"Module"})),bd={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Kt={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Ia={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"};({...Ia,...{WARNING:"warning",SUCCESS:"success",DANGER:"danger"}});const Vo={ROUND:"round",ROUNDED:"rounded"},Cd={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ee=e.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Kt.MD}},setup(a){const t=a,o=e.computed(()=>vd[t.name]);return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:e.normalizeClass(["ao-icon",`ao-icon--${n.size}`])},null,8,["class"]))}}),B9="",yd=["type"],wd={key:0,class:"ao-button__label"},G=e.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>bd.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Kt.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>Vo.ROUNDED}},setup(a){const t=a,o=e.computed(()=>t.size),n=e.computed(()=>t.isLoading?"Loading":t.iconName);return(r,s)=>(e.openBlock(),e.createElementBlock("button",{type:r.type,class:e.normalizeClass(["ao-button",`ao-button--${r.variant}`,r.color?`ao-button--${r.color}`:"",`ao-button--${r.corners}`,r.footer?"ao-button--footer":"",r.size?`ao-button--${r.size}`:"",r.iconName&&r.iconPosition?`ao-button--icon-${r.iconPosition}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[e.renderSlot(r.$slots,"default",{},()=>[r.label?(e.openBlock(),e.createElementBlock("span",wd,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0)]),n.value?(e.openBlock(),e.createBlock(ee,{key:0,name:n.value,class:"ao-button__icon",size:o.value},null,8,["name","size"])):e.createCommentVNode("",!0)],10,yd))}}),V9="";function So(a){const t=e.ref(!1),o=e.ref(""),n=e.computed(()=>"value"in a.value?"value":"innerHTML"),r=()=>{t.value=!t.value},s=c=>{t.value=c},i=c=>async()=>{s(!1),await e.nextTick(()=>{a.value[n.value]=o.value,c==null||c()})},l=c=>async p=>{const d=a.value[n.value];s(!1),await e.nextTick(()=>{c(d,p)})};return e.watch(t,async c=>{await e.nextTick(()=>{setTimeout(()=>{a.value&&c&&(a.value.focus(),o.value=a.value[n.value])},1)})}),{isEditing:t,setIsEditing:s,toggleIsEditing:r,onUpdate:l,onDiscard:i}}const ne=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,n=e.ref(null),{isEditing:r,setIsEditing:s,onUpdate:i,onDiscard:l}=So(n),c=e.computed(()=>r.value?"input":o.tag||`h${o.level}`),p=e.computed(()=>o.isEditable?r.value?{change:d,click:C=>C.stopPropagation(),blur:m}:{click:f,focus:f}:{}),d=i((C,h)=>{const v=h.target.value;t("update:title",v)}),u=l(),m=async()=>{r.value&&s(!1)},g=()=>{t("toggle-is-editing",!1)},f=C=>{C.stopPropagation(),r.value||s(!0)};return e.watch(()=>o.isEditable,C=>{C||u()}),(C,h)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.mergeProps({id:C.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${C.level}`,{[`ao-title--${C.color}`]:!!C.color,"ao-title--editable":C.isEditable,"ao-field__input ao-title--editing":e.unref(r),"ao-title--readonly":!e.unref(r)}],type:e.unref(r)?"text":null,value:e.unref(r)?C.title:null,tabindex:"0",onKeyup:e.withKeys(g,["enter"])},e.toHandlers(p.value),{onKeydown:e.withKeys(e.unref(u),["esc"])}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.title),1)]),_:1},16,["id","class","type","value","onKeyup","onKeydown"]))}}),S9="",kd={key:0,class:"ao-card-horiz__drag ao-card__drag"},$d={class:"ao-card-horiz__header"},Ed={key:0,class:"ao-card-horiz__avatar"},Bd={class:"ao-card-horiz__title-group"},Vd={key:0,class:"ao-card-horiz__subtitle"},Sd={key:1,class:"ao-card-horiz__header"},Nd={key:1,class:"ao-card-horiz__body"},xd={key:2,class:"ao-card-horiz__footer"},Md={key:3,class:"ao-card-horiz__secondary"},No=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=n=>{t("update:title",n)};return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.tagName),{class:e.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":n.isActive}])},{default:e.withCtx(()=>[n.isDraggable?(e.openBlock(),e.createElementBlock("div",kd,[e.createVNode(ee,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):e.createCommentVNode("",!0),e.createElementVNode("div",$d,[n.icon?(e.openBlock(),e.createElementBlock("div",Ed,[e.createVNode(ee,{class:"ao-card-horiz__icon",name:n.icon,size:"xl"},null,8,["name"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Bd,[e.createVNode(ne,{id:n.id,class:"ao-card-horiz__title",level:4,title:n.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),e.renderSlot(n.$slots,"subtitle",{},()=>[n.subtitle?(e.openBlock(),e.createElementBlock("span",Vd,e.toDisplayString(n.subtitle),1)):e.createCommentVNode("",!0)])]),n.$slots.header?(e.openBlock(),e.createElementBlock("div",Sd,[e.renderSlot(n.$slots,"header")])):e.createCommentVNode("",!0)]),n.$slots.default?(e.openBlock(),e.createElementBlock("div",Nd,[e.renderSlot(n.$slots,"default")])):e.createCommentVNode("",!0),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",xd,[e.renderSlot(n.$slots,"footer")])):e.createCommentVNode("",!0),n.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Md,[e.renderSlot(n.$slots,"secondary")])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}}),N9="",kt=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"),n=e.computed(()=>o.value==="button"?{type:"button"}:{});return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-tag",r.color?`ao-tag--${r.color}`:"",r.clickable?"ao-tag--clickable":"",r.closable?"ao-tag--closable":"",r.variant?`ao-tag--${r.variant}`:""]),style:e.normalizeStyle(r.rawColor?{"--ao-tag-bg":r.rawColor}:{})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),e.mergeProps({class:"ao-tag__label"},n.value,{onClick:s[0]||(s[0]=i=>r.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label)+" ",1),r.variant===e.unref(Cd).SOLID_ICON&&r.iconName?(e.openBlock(),e.createBlock(ee,{key:0,name:r.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):e.createCommentVNode("",!0)]),_:1},16)),r.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=i=>r.$emit("close",i))},[e.createVNode(ee,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):e.createCommentVNode("",!0)],6))}}),x9="",$t={todo:"todo",done:"done",archived:"archived"},Td={months:"months",weeks:"weeks",days:"days"},Ad={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},xo={BEFORE:"before",AFTER:"after"},Mo={START:"start",end:"end"},To={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},te={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var Ao=(a=>(a.PHASES="phases",a.MILESTONES="milestones",a.ACTIVITIES="activities",a))(Ao||{});const Od={add:"add",remove:"remove",moved:"moved"};var Oo=(a=>(a.HOURS="hours",a.DAYS="days",a))(Oo||{});const Xe={project:"projectId",type:"typeId",assignee:"assigneeId"};function Gt(a){"@babel/helpers - typeof";return Gt=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},Gt(a)}function Be(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 oe(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function se(a){oe(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||Gt(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 Id(a,t){oe(2,arguments);var o=se(a).getTime(),n=Be(t);return new Date(o+n)}var Ld={};function Et(){return Ld}function Bt(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 Io(a){oe(1,arguments);var t=se(a);return t.setHours(0,0,0,0),t}var Dd=864e5;function jd(a,t){oe(2,arguments);var o=Io(a),n=Io(t),r=o.getTime()-Bt(o),s=n.getTime()-Bt(n);return Math.round((r-s)/Dd)}function Pd(a,t){oe(2,arguments);var o=se(a),n=se(t),r=o.getTime()-n.getTime();return r<0?-1:r>0?1:r}var Lo=6e4,Do=36e5;function zd(a){return oe(1,arguments),a instanceof Date||Gt(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function jo(a){if(oe(1,arguments),!zd(a)&&typeof a!="number")return!1;var t=se(a);return!isNaN(Number(t))}function La(a,t){oe(2,arguments);var o=Be(t);return Id(a,-o)}var Hd=864e5;function Rd(a){oe(1,arguments);var t=se(a),o=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),r=o-n;return Math.floor(r/Hd)+1}function Xt(a){oe(1,arguments);var t=1,o=se(a),n=o.getUTCDay(),r=(n<t?7:0)+n-t;return o.setUTCDate(o.getUTCDate()-r),o.setUTCHours(0,0,0,0),o}function Po(a){oe(1,arguments);var t=se(a),o=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(o+1,0,4),n.setUTCHours(0,0,0,0);var r=Xt(n),s=new Date(0);s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0);var i=Xt(s);return t.getTime()>=r.getTime()?o+1:t.getTime()>=i.getTime()?o:o-1}function Ud(a){oe(1,arguments);var t=Po(a),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Xt(o);return n}var Fd=6048e5;function Zd(a){oe(1,arguments);var t=se(a),o=Xt(t).getTime()-Ud(t).getTime();return Math.round(o/Fd)+1}function Qt(a,t){var o,n,r,s,i,l,c,p;oe(1,arguments);var d=Et(),u=Be((o=(n=(r=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:d.weekStartsOn)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(p=c.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&o!==void 0?o:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=se(a),g=m.getUTCDay(),f=(g<u?7:0)+g-u;return m.setUTCDate(m.getUTCDate()-f),m.setUTCHours(0,0,0,0),m}function zo(a,t){var o,n,r,s,i,l,c,p;oe(1,arguments);var d=se(a),u=d.getUTCFullYear(),m=Et(),g=Be((o=(n=(r=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:m.firstWeekContainsDate)!==null&&n!==void 0?n:(c=m.locale)===null||c===void 0||(p=c.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(u+1,0,g),f.setUTCHours(0,0,0,0);var C=Qt(f,t),h=new Date(0);h.setUTCFullYear(u,0,g),h.setUTCHours(0,0,0,0);var y=Qt(h,t);return d.getTime()>=C.getTime()?u+1:d.getTime()>=y.getTime()?u:u-1}function Wd(a,t){var o,n,r,s,i,l,c,p;oe(1,arguments);var d=Et(),u=Be((o=(n=(r=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:d.firstWeekContainsDate)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(p=c.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1),m=zo(a,t),g=new Date(0);g.setUTCFullYear(m,0,u),g.setUTCHours(0,0,0,0);var f=Qt(g,t);return f}var qd=6048e5;function Yd(a,t){oe(1,arguments);var o=se(a),n=Qt(o,t).getTime()-Wd(o,t).getTime();return Math.round(n/qd)+1}function J(a,t){for(var o=a<0?"-":"",n=Math.abs(a).toString();n.length<t;)n="0"+n;return o+n}var Kd={y:function(t,o){var n=t.getUTCFullYear(),r=n>0?n:1-n;return J(o==="yy"?r%100:r,o.length)},M:function(t,o){var n=t.getUTCMonth();return o==="M"?String(n+1):J(n+1,2)},d:function(t,o){return J(t.getUTCDate(),o.length)},a:function(t,o){var n=t.getUTCHours()/12>=1?"pm":"am";switch(o){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,o){return J(t.getUTCHours()%12||12,o.length)},H:function(t,o){return J(t.getUTCHours(),o.length)},m:function(t,o){return J(t.getUTCMinutes(),o.length)},s:function(t,o){return J(t.getUTCSeconds(),o.length)},S:function(t,o){var n=o.length,r=t.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,n-3));return J(s,o.length)}};const Pe=Kd;var ct={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Gd={G:function(t,o,n){var r=t.getUTCFullYear()>0?1:0;switch(o){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,o,n){if(o==="yo"){var r=t.getUTCFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Pe.y(t,o)},Y:function(t,o,n,r){var s=zo(t,r),i=s>0?s:1-s;if(o==="YY"){var l=i%100;return J(l,2)}return o==="Yo"?n.ordinalNumber(i,{unit:"year"}):J(i,o.length)},R:function(t,o){var n=Po(t);return J(n,o.length)},u:function(t,o){var n=t.getUTCFullYear();return J(n,o.length)},Q:function(t,o,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(o){case"Q":return String(r);case"QQ":return J(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,o,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(o){case"q":return String(r);case"qq":return J(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,o,n){var r=t.getUTCMonth();switch(o){case"M":case"MM":return Pe.M(t,o);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,o,n){var r=t.getUTCMonth();switch(o){case"L":return String(r+1);case"LL":return J(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,o,n,r){var s=Yd(t,r);return o==="wo"?n.ordinalNumber(s,{unit:"week"}):J(s,o.length)},I:function(t,o,n){var r=Zd(t);return o==="Io"?n.ordinalNumber(r,{unit:"week"}):J(r,o.length)},d:function(t,o,n){return o==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Pe.d(t,o)},D:function(t,o,n){var r=Rd(t);return o==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):J(r,o.length)},E:function(t,o,n){var r=t.getUTCDay();switch(o){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,o,n,r){var s=t.getUTCDay(),i=(s-r.weekStartsOn+8)%7||7;switch(o){case"e":return String(i);case"ee":return J(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,o,n,r){var s=t.getUTCDay(),i=(s-r.weekStartsOn+8)%7||7;switch(o){case"c":return String(i);case"cc":return J(i,o.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,o,n){var r=t.getUTCDay(),s=r===0?7:r;switch(o){case"i":return String(s);case"ii":return J(s,o.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,o,n){var r=t.getUTCHours(),s=r/12>=1?"pm":"am";switch(o){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,o,n){var r=t.getUTCHours(),s;switch(r===12?s=ct.noon:r===0?s=ct.midnight:s=r/12>=1?"pm":"am",o){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,o,n){var r=t.getUTCHours(),s;switch(r>=17?s=ct.evening:r>=12?s=ct.afternoon:r>=4?s=ct.morning:s=ct.night,o){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,o,n){if(o==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pe.h(t,o)},H:function(t,o,n){return o==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Pe.H(t,o)},K:function(t,o,n){var r=t.getUTCHours()%12;return o==="Ko"?n.ordinalNumber(r,{unit:"hour"}):J(r,o.length)},k:function(t,o,n){var r=t.getUTCHours();return r===0&&(r=24),o==="ko"?n.ordinalNumber(r,{unit:"hour"}):J(r,o.length)},m:function(t,o,n){return o==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Pe.m(t,o)},s:function(t,o,n){return o==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Pe.s(t,o)},S:function(t,o){return Pe.S(t,o)},X:function(t,o,n,r){var s=r._originalDate||t,i=s.getTimezoneOffset();if(i===0)return"Z";switch(o){case"X":return Ro(i);case"XXXX":case"XX":return Qe(i);case"XXXXX":case"XXX":default:return Qe(i,":")}},x:function(t,o,n,r){var s=r._originalDate||t,i=s.getTimezoneOffset();switch(o){case"x":return Ro(i);case"xxxx":case"xx":return Qe(i);case"xxxxx":case"xxx":default:return Qe(i,":")}},O:function(t,o,n,r){var s=r._originalDate||t,i=s.getTimezoneOffset();switch(o){case"O":case"OO":case"OOO":return"GMT"+Ho(i,":");case"OOOO":default:return"GMT"+Qe(i,":")}},z:function(t,o,n,r){var s=r._originalDate||t,i=s.getTimezoneOffset();switch(o){case"z":case"zz":case"zzz":return"GMT"+Ho(i,":");case"zzzz":default:return"GMT"+Qe(i,":")}},t:function(t,o,n,r){var s=r._originalDate||t,i=Math.floor(s.getTime()/1e3);return J(i,o.length)},T:function(t,o,n,r){var s=r._originalDate||t,i=s.getTime();return J(i,o.length)}};function Ho(a,t){var o=a>0?"-":"+",n=Math.abs(a),r=Math.floor(n/60),s=n%60;if(s===0)return o+String(r);var i=t||"";return o+String(r)+i+J(s,2)}function Ro(a,t){if(a%60===0){var o=a>0?"-":"+";return o+J(Math.abs(a)/60,2)}return Qe(a,t)}function Qe(a,t){var o=t||"",n=a>0?"-":"+",r=Math.abs(a),s=J(Math.floor(r/60),2),i=J(r%60,2);return n+s+o+i}const Xd=Gd;var Uo=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"})}},Fo=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"})}},Qd=function(t,o){var n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Uo(t,o);var i;switch(r){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}}",Uo(r,o)).replace("{{time}}",Fo(s,o))},Jd={p:Fo,P:Qd};const ep=Jd;var tp=["D","DD"],ap=["YY","YYYY"];function op(a){return tp.indexOf(a)!==-1}function rp(a){return ap.indexOf(a)!==-1}function Zo(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 np={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"}},ip=function(t,o,n){var r,s=np[t];return typeof s=="string"?r=s:o===1?r=s.one:r=s.other.replace("{{count}}",o.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const sp=ip;function Da(a){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):a.defaultWidth,n=a.formats[o]||a.formats[a.defaultWidth];return n}}var lp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dp={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pp={date:Da({formats:lp,defaultWidth:"full"}),time:Da({formats:cp,defaultWidth:"full"}),dateTime:Da({formats:dp,defaultWidth:"full"})};const up=pp;var mp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fp=function(t,o,n,r){return mp[t]};const hp=fp;function Vt(a){return function(t,o){var n=o!=null&&o.context?String(o.context):"standalone",r;if(n==="formatting"&&a.formattingValues){var s=a.defaultFormattingWidth||a.defaultWidth,i=o!=null&&o.width?String(o.width):s;r=a.formattingValues[i]||a.formattingValues[s]}else{var l=a.defaultWidth,c=o!=null&&o.width?String(o.width):a.defaultWidth;r=a.values[c]||a.values[l]}var p=a.argumentCallback?a.argumentCallback(t):t;return r[p]}}var gp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_p={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vp={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"]},bp={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"]},Cp={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"}},yp={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"}},wp=function(t,o){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},kp={ordinalNumber:wp,era:Vt({values:gp,defaultWidth:"wide"}),quarter:Vt({values:_p,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Vt({values:vp,defaultWidth:"wide"}),day:Vt({values:bp,defaultWidth:"wide"}),dayPeriod:Vt({values:Cp,defaultWidth:"wide",formattingValues:yp,defaultFormattingWidth:"wide"})};const $p=kp;function St(a){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o.width,r=n&&a.matchPatterns[n]||a.matchPatterns[a.defaultMatchWidth],s=t.match(r);if(!s)return null;var i=s[0],l=n&&a.parsePatterns[n]||a.parsePatterns[a.defaultParseWidth],c=Array.isArray(l)?Bp(l,function(u){return u.test(i)}):Ep(l,function(u){return u.test(i)}),p;p=a.valueCallback?a.valueCallback(c):c,p=o.valueCallback?o.valueCallback(p):p;var d=t.slice(i.length);return{value:p,rest:d}}}function Ep(a,t){for(var o in a)if(a.hasOwnProperty(o)&&t(a[o]))return o}function Bp(a,t){for(var o=0;o<a.length;o++)if(t(a[o]))return o}function Vp(a){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(a.matchPattern);if(!n)return null;var r=n[0],s=t.match(a.parsePattern);if(!s)return null;var i=a.valueCallback?a.valueCallback(s[0]):s[0];i=o.valueCallback?o.valueCallback(i):i;var l=t.slice(r.length);return{value:i,rest:l}}}var Sp=/^(\d+)(th|st|nd|rd)?/i,Np=/\d+/i,xp={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},Mp={any:[/^b/i,/^(a|c)/i]},Tp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ap={any:[/1/i,/2/i,/3/i,/4/i]},Op={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},Ip={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]},Lp={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},Dp={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]},jp={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},Pp={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}},zp={ordinalNumber:Vp({matchPattern:Sp,parsePattern:Np,valueCallback:function(t){return parseInt(t,10)}}),era:St({matchPatterns:xp,defaultMatchWidth:"wide",parsePatterns:Mp,defaultParseWidth:"any"}),quarter:St({matchPatterns:Tp,defaultMatchWidth:"wide",parsePatterns:Ap,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:St({matchPatterns:Op,defaultMatchWidth:"wide",parsePatterns:Ip,defaultParseWidth:"any"}),day:St({matchPatterns:Lp,defaultMatchWidth:"wide",parsePatterns:Dp,defaultParseWidth:"any"}),dayPeriod:St({matchPatterns:jp,defaultMatchWidth:"any",parsePatterns:Pp,defaultParseWidth:"any"})},Hp={code:"en-US",formatDistance:sp,formatLong:up,formatRelative:hp,localize:$p,match:zp,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Wo=Hp;var Rp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Up=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fp=/^'([^]*?)'?$/,Zp=/''/g,Wp=/[a-zA-Z]/;function qo(a,t,o){var n,r,s,i,l,c,p,d,u,m,g,f,C,h,y,v,_,b;oe(2,arguments);var B=String(t),E=Et(),N=(n=(r=o==null?void 0:o.locale)!==null&&r!==void 0?r:E.locale)!==null&&n!==void 0?n:Wo,I=Be((s=(i=(l=(c=o==null?void 0:o.firstWeekContainsDate)!==null&&c!==void 0?c:o==null||(p=o.locale)===null||p===void 0||(d=p.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:E.firstWeekContainsDate)!==null&&i!==void 0?i:(u=E.locale)===null||u===void 0||(m=u.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=Be((g=(f=(C=(h=o==null?void 0:o.weekStartsOn)!==null&&h!==void 0?h:o==null||(y=o.locale)===null||y===void 0||(v=y.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&C!==void 0?C:E.weekStartsOn)!==null&&f!==void 0?f:(_=E.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:0);if(!(z>=0&&z<=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 R=se(a);if(!jo(R))throw new RangeError("Invalid time value");var F=Bt(R),A=La(R,F),H={firstWeekContainsDate:I,weekStartsOn:z,locale:N,_originalDate:R},K=B.match(Up).map(function(W){var U=W[0];if(U==="p"||U==="P"){var S=ep[U];return S(W,N.formatLong)}return W}).join("").match(Rp).map(function(W){if(W==="''")return"'";var U=W[0];if(U==="'")return qp(W);var S=Xd[U];if(S)return!(o!=null&&o.useAdditionalWeekYearTokens)&&rp(W)&&Zo(W,t,String(a)),!(o!=null&&o.useAdditionalDayOfYearTokens)&&op(W)&&Zo(W,t,String(a)),S(A,W,N.localize,H);if(U.match(Wp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return W}).join("");return K}function qp(a){var t=a.match(Fp);return t?t[1].replace(Zp,"'"):a}function Yp(a,t,o){var n,r,s,i,l,c,p,d,u,m;oe(2,arguments);var g=se(a),f=se(t),C=Et(),h=(n=(r=o==null?void 0:o.locale)!==null&&r!==void 0?r:C.locale)!==null&&n!==void 0?n:Wo,y=Be((s=(i=(l=(c=o==null?void 0:o.weekStartsOn)!==null&&c!==void 0?c:o==null||(p=o.locale)===null||p===void 0||(d=p.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:C.weekStartsOn)!==null&&i!==void 0?i:(u=C.locale)===null||u===void 0||(m=u.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&s!==void 0?s:0);if(!h.localize)throw new RangeError("locale must contain localize property");if(!h.formatLong)throw new RangeError("locale must contain formatLong property");if(!h.formatRelative)throw new RangeError("locale must contain formatRelative property");var v=jd(g,f);if(isNaN(v))throw new RangeError("Invalid time value");var _;v<-6?_="other":v<-1?_="lastWeek":v<0?_="yesterday":v<1?_="today":v<2?_="tomorrow":v<7?_="nextWeek":_="other";var b=La(g,Bt(g)),B=La(f,Bt(f)),E=h.formatRelative(_,b,B,{locale:h,weekStartsOn:y});return qo(g,E,{locale:h,weekStartsOn:y})}function Nt(a,t){var o;oe(1,arguments);var n=Be((o=t==null?void 0:t.additionalDigits)!==null&&o!==void 0?o:2);if(n!==2&&n!==1&&n!==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 r=Qp(a),s;if(r.date){var i=Jp(r.date,n);s=eu(i.restDateString,i.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,p;if(r.time&&(c=tu(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(p=au(r.timezone),isNaN(p))return new Date(NaN)}else{var d=new Date(l+c),u=new Date(0);return u.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),u.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),u}return new Date(l+c+p)}var Jt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Kp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Gp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Qp(a){var t={},o=a.split(Jt.dateTimeDelimiter),n;if(o.length>2)return t;if(/:/.test(o[0])?n=o[0]:(t.date=o[0],n=o[1],Jt.timeZoneDelimiter.test(t.date)&&(t.date=a.split(Jt.timeZoneDelimiter)[0],n=a.substr(t.date.length,a.length))),n){var r=Jt.timezone.exec(n);r?(t.time=n.replace(r[1],""),t.timezone=r[1]):t.time=n}return t}function Jp(a,t){var o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=a.match(o);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?r:s*100,restDateString:a.slice((n[1]||n[2]).length)}}function eu(a,t){if(t===null)return new Date(NaN);var o=a.match(Kp);if(!o)return new Date(NaN);var n=!!o[4],r=xt(o[1]),s=xt(o[2])-1,i=xt(o[3]),l=xt(o[4]),c=xt(o[5])-1;if(n)return su(t,l,c)?ou(t,l,c):new Date(NaN);var p=new Date(0);return!nu(t,s,i)||!iu(t,r)?new Date(NaN):(p.setUTCFullYear(t,s,Math.max(r,i)),p)}function xt(a){return a?parseInt(a):1}function tu(a){var t=a.match(Gp);if(!t)return NaN;var o=ja(t[1]),n=ja(t[2]),r=ja(t[3]);return lu(o,n,r)?o*Do+n*Lo+r*1e3:NaN}function ja(a){return a&&parseFloat(a.replace(",","."))||0}function au(a){if(a==="Z")return 0;var t=a.match(Xp);if(!t)return 0;var o=t[1]==="+"?-1:1,n=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return cu(n,r)?o*(n*Do+r*Lo):NaN}function ou(a,t,o){var n=new Date(0);n.setUTCFullYear(a,0,4);var r=n.getUTCDay()||7,s=(t-1)*7+o+1-r;return n.setUTCDate(n.getUTCDate()+s),n}var ru=[31,null,31,30,31,30,31,31,30,31,30,31];function Yo(a){return a%400===0||a%4===0&&a%100!==0}function nu(a,t,o){return t>=0&&t<=11&&o>=1&&o<=(ru[t]||(Yo(a)?29:28))}function iu(a,t){return t>=1&&t<=(Yo(a)?366:365)}function su(a,t,o){return t>=1&&t<=53&&o>=0&&o<=6}function lu(a,t,o){return a===24?t===0&&o===0:o>=0&&o<60&&t>=0&&t<60&&a>=0&&a<25}function cu(a,t){return t>=0&&t<=59}var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ie={},Ko={},Mt={},Tt={},dt={},ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.lexoHelper=void 0,ea.lexoHelper={arrayCopy:du};function du(a,t,o,n,r){let s=n;const i=t+r;for(let l=t;l<i;l++)o[s]=a[l],++s}var At={};Object.defineProperty(At,"__esModule",{value:!0});class pu{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}}At.default=pu,Object.defineProperty(dt,"__esModule",{value:!0}),dt.LexoInteger=void 0;const ta=ea,uu=At;class Y{constructor(t,o,n){this.sys=t,this.sign=o,this.mag=n}static parse(t,o){let n=t,r=1;t.indexOf(o.getPositiveChar())===0?n=t.substring(1):t.indexOf(o.getNegativeChar())===0&&(n=t.substring(1),r=-1);const s=new Array(n.length);let i=s.length-1;for(let l=0;i>=0;++l)s[l]=o.toDigit(n.charAt(i)),--i;return Y.make(o,r,s)}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,n){let r;for(r=n.length;r>0&&n[r-1]===0;--r);if(r===0)return Y.zero(t);if(r===n.length)return new Y(t,o,n);const s=new Array(r).fill(0);return ta.lexoHelper.arrayCopy(n,0,s,0,r),new Y(t,o,s)}static add(t,o,n){const r=Math.max(o.length,n.length),s=new Array(r).fill(0);let i=0;for(let l=0;l<r;++l){const c=l<o.length?o[l]:0,p=l<n.length?n[l]:0;let d=c+p+i;for(i=0;d>=t.getBase();d-=t.getBase())++i;s[l]=d}return Y.extendWithCarry(s,i)}static extendWithCarry(t,o){if(o>0){const n=new Array(t.length+1).fill(0);return ta.lexoHelper.arrayCopy(t,0,n,0,t.length),n[n.length-1]=o,n}return t}static subtract(t,o,n){const r=Y.complement(t,n,o.length),s=Y.add(t,o,r);return s[s.length-1]=0,Y.add(t,s,Y.ONE_MAG)}static multiply(t,o,n){const r=new Array(o.length+n.length).fill(0);for(let s=0;s<o.length;++s)for(let i=0;i<n.length;++i){const l=s+i;for(r[l]+=o[s]*n[i];r[l]>=t.getBase();r[l]-=t.getBase())++r[l+1]}return r}static complement(t,o,n){if(n<=0)throw new Error("Expected at least 1 digit");const r=new Array(n).fill(t.getBase()-1);for(let s=0;s<o.length;++s)r[s]=t.getBase()-1-o[s];return r}static compare(t,o){if(t.length<o.length)return-1;if(t.length>o.length)return 1;for(let n=t.length-1;n>=0;--n){if(t[n]<o[n])return-1;if(t[n]>o[n])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 n;return this.sign===-1?(n=this.negate(),n.subtract(t).negate()):(n=t.negate(),this.subtract(n))}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 n;return this.sign===-1?(n=this.negate(),n.add(t).negate()):(n=t.negate(),this.add(n))}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 ta.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 ta.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 uu.default,o=this.mag,n=o.length;for(let r=0;r<n;++r){const s=o[r];t.insert(0,this.sys.toChar(s))}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")}}dt.LexoInteger=Y,Y.ZERO_MAG=[0],Y.ONE_MAG=[1],Y.NEGATIVE_SIGN=-1,Y.ZERO_SIGN=0,Y.POSITIVE_SIGN=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.LexoDecimal=void 0;const Ot=dt,mu=At;class me{constructor(t,o){this.mag=t,this.sig=o}static half(t){const o=t.getBase()/2|0;return me.make(Ot.LexoInteger.make(t,1,[o]),1)}static parse(t,o){const n=t.indexOf(o.getRadixPointChar());if(t.lastIndexOf(o.getRadixPointChar())!==n)throw new Error("More than one "+o.getRadixPointChar());if(n<0)return me.make(Ot.LexoInteger.parse(t,o),0);const r=t.substring(0,n)+t.substring(n+1);return me.make(Ot.LexoInteger.parse(r,o),t.length-1-n)}static from(t){return me.make(t,0)}static make(t,o){if(t.isZero())return new me(t,0);let n=0;for(let i=0;i<o&&t.getMag(i)===0;++i)++n;const r=t.shiftRight(n),s=o-n;return new me(r,s)}getSystem(){return this.mag.getSystem()}add(t){let o=this.mag,n=this.sig,r=t.mag,s;for(s=t.sig;n<s;++n)o=o.shiftLeft();for(;n>s;)r=r.shiftLeft(),++s;return me.make(o.add(r),n)}subtract(t){let o=this.mag,n=this.sig,r=t.mag,s;for(s=t.sig;n<s;++n)o=o.shiftLeft();for(;n>s;)r=r.shiftLeft(),++s;return me.make(o.subtract(r),n)}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(Ot.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 n=this.sig-t;let r=this.mag.shiftRight(n);return o&&(r=r.add(Ot.LexoInteger.one(r.getSystem()))),me.make(r,t)}compareTo(t){if(this===t)return 0;if(!t)return 1;let o=this.mag,n=t.mag;return this.sig>t.sig?n=n.shiftLeft(this.sig-t.sig):this.sig<t.sig&&(o=o.shiftLeft(t.sig-this.sig)),o.compareTo(n)}format(){const t=this.mag.format();if(this.sig===0)return t;const o=new mu.default(t),n=o[0],r=n===this.mag.getSystem().getPositiveChar()||n===this.mag.getSystem().getNegativeChar();for(r&&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)),r&&o.insert(0,n),o.toString()}equals(t){return this===t?!0:t?this.mag.equals(t.mag)&&this.sig===t.sig:!1}toString(){return this.format()}}Tt.LexoDecimal=me;var aa={},Go;function Xo(){if(Go)return aa;Go=1,Object.defineProperty(aa,"__esModule",{value:!0});const a=dt,t=er();class o{constructor(r){this.value=a.LexoInteger.parse(r,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(r){const s=a.LexoInteger.parse(r,t.LexoRank.NUMERAL_SYSTEM),i=o.VALUES,l=i.length;for(let c=0;c<l;++c){const p=i[c];if(p.value.equals(s))return p}throw new Error("Unknown bucket: "+r)}static resolve(r){const s=o.VALUES,i=s.length;for(let l=0;l<i;++l){const c=s[l];if(c.equals(o.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}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(r){return this===r?!0:r?this.value.equals(r.value):!1}}return aa.default=o,aa}var Pa={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});var oa={};Object.defineProperty(oa,"__esModule",{value:!0}),oa.LexoNumeralSystem10=void 0;class fu{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)}}oa.LexoNumeralSystem10=fu;var ra={};Object.defineProperty(ra,"__esModule",{value:!0}),ra.LexoNumeralSystem36=void 0;class hu{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]}}ra.LexoNumeralSystem36=hu;var na={};Object.defineProperty(na,"__esModule",{value:!0}),na.LexoNumeralSystem64=void 0;class gu{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]}}na.LexoNumeralSystem64=gu,function(a){var t=ue&&ue.__createBinding||(Object.create?function(n,r,s,i){i===void 0&&(i=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(n,i,l)}:function(n,r,s,i){i===void 0&&(i=s),n[i]=r[s]}),o=ue&&ue.__exportStar||function(n,r){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&t(r,n,s)};Object.defineProperty(a,"__esModule",{value:!0}),o(Qo,a),o(oa,a),o(ra,a),o(na,a)}(Pa);var Jo;function er(){if(Jo)return Mt;Jo=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.LexoRank=void 0;const a=Tt,t=Xo(),o=At,n=Pa;class r{constructor(i,l){this.value=i.format()+"|"+r.formatDecimal(l),this.bucket=i,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new n.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=a.LexoDecimal.parse("0",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=a.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=a.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=a.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=a.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=a.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(t.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const i=r.min();return i.between(r.max(i.bucket))}static max(i=t.default.BUCKET_0){return r.from(i,r.MAX_DECIMAL)}static initial(i){return i===t.default.BUCKET_0?r.from(i,r.INITIAL_MIN_DECIMAL):r.from(i,r.INITIAL_MAX_DECIMAL)}static between(i,l){if(i.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=i,p=l,d;if(i.getScale()<l.getScale()){if(d=l.setScale(i.getScale(),!1),i.compareTo(d)>=0)return r.mid(i,l);p=d}if(i.getScale()>p.getScale()){if(d=i.setScale(p.getScale(),!0),d.compareTo(p)>=0)return r.mid(i,l);c=d}let u;for(let f=c.getScale();f>0;p=u){const C=f-1,h=c.setScale(C,!0);if(u=p.setScale(C,!1),h.compareTo(u)===0)return r.checkMid(i,l,h);if(h.compareTo(u)>0)break;f=C,c=h}let m=r.middleInternal(i,l,c,p),g;for(let f=m.getScale();f>0;f=g){g=f-1;const C=m.setScale(g);if(i.compareTo(C)>=0||C.compareTo(l)>=0)break;m=C}return m}static parse(i){const l=i.split("|"),c=t.default.from(l[0]),p=a.LexoDecimal.parse(l[1],r.NUMERAL_SYSTEM);return new r(c,p)}static from(i,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(i,l)}static middleInternal(i,l,c,p){const d=r.mid(c,p);return r.checkMid(i,l,d)}static checkMid(i,l,c){return i.compareTo(c)>=0||c.compareTo(l)>=0?r.mid(i,l):c}static mid(i,l){const p=i.add(l).multiply(a.LexoDecimal.half(i.getSystem())),d=i.getScale()>l.getScale()?i.getScale():l.getScale();if(p.getScale()>d){const u=p.setScale(d,!1);if(u.compareTo(i)>0)return u;const m=p.setScale(d,!0);if(m.compareTo(l)<0)return m}return p}static formatDecimal(i){const l=i.format(),c=new o.default(l);let p=l.indexOf(r.NUMERAL_SYSTEM.getRadixPointChar());const d=r.NUMERAL_SYSTEM.toChar(0);for(p<0&&(p=l.length,c.append(r.NUMERAL_SYSTEM.getRadixPointChar()));p<6;)c.insert(0,d),++p;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new r(this.bucket,r.INITIAL_MAX_DECIMAL);const i=this.decimal.floor();let c=a.LexoDecimal.from(i).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const i=this.decimal.ceil();let c=a.LexoDecimal.from(i).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(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 r(this.bucket,r.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 r(this.bucket,r.between(this.decimal,i.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.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 Mt.LexoRank=r,Mt}(function(a){var t=ue&&ue.__createBinding||(Object.create?function(n,r,s,i){i===void 0&&(i=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(n,i,l)}:function(n,r,s,i){i===void 0&&(i=s),n[i]=r[s]}),o=ue&&ue.__exportStar||function(n,r){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&t(r,n,s)};Object.defineProperty(a,"__esModule",{value:!0}),o(er(),a),o(Xo(),a),o(Tt,a),o(dt,a)})(Ko),function(a){var t=ue&&ue.__createBinding||(Object.create?function(n,r,s,i){i===void 0&&(i=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(n,i,l)}:function(n,r,s,i){i===void 0&&(i=s),n[i]=r[s]}),o=ue&&ue.__exportStar||function(n,r){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&t(r,n,s)};Object.defineProperty(a,"__esModule",{value:!0}),o(Ko,a),o(Pa,a)}(ie);const It=60,tr=It*8;function ia(a,t){if(!a)return"0m";if(t==="days"){const n=Math.floor(a/tr),r=Math.floor(a%tr/It);if(n>0&&r>0)return`${n}d ${r}h`;if(n>0)return`${n}d`;{const s=a%It;return s>0?`${r}h ${s}m`:`${r}h`}}else{const n=Math.floor(a/It),r=a%It;return n>0&&r>0?`${n}h ${r}m`:n>0?`${n}h`:`${r}m`}}function ar(a){return(a==null?void 0:a.reduce((t,o)=>{var n;return t+(((n=o.activities)==null?void 0:n.length)??0)},0))??0}function _u(a){return(a==null?void 0:a.reduce((t,o)=>{var n;return t+(((n=o.milestones)==null?void 0:n.length)??0)},0))??0}function vu(a){return(a==null?void 0:a.reduce((t,o)=>{var r;const n=(r=o.milestones)!=null&&r.length?ar(o.milestones):0;return t+n},0))??0}function bu(a){return a.split(" ").slice(0,2).map(t=>t.charAt(0).toLocaleLowerCase()).join("")}function Lt(a,t){if(a.moved)return pt(t,a.moved.newIndex)}function pt(a,t){if(t===0)if(a.length>1){const o=a[t+1];return ie.LexoRank.parse(o.rank).genPrev().format()}else return ie.LexoRank.middle().format();else if(t===a.length-1){const o=a[t-1];return ie.LexoRank.parse(o.rank).genNext().format()}else{const o=a[t-1],n=a[t+1];return ie.LexoRank.parse(n.rank).between(ie.LexoRank.parse(o.rank)).format()}}function sa(a,t="dd/MM/yyyy"){if(!a)return"";const o=Nt(a);return jo(o)?qo(o,t):""}function za(a,t){return a.status.id===t.id}function Cu(a,t){return a.activities.length===0?!1:!a.activities.some(o=>!za(o,t))}function yu(a,t){return{...a,status:Cu(a,t)?$t.done:$t.todo}}const or=a=>{const{firstName:t,lastName:o}=a||{};return`${t??""}${t?" ":""}${o??""}`};function wu(a,t){const o=a.replace("#",""),n=parseInt(o.slice(0,2),16),r=parseInt(o.slice(2,4),16),s=parseInt(o.slice(4,6),16);return`rgba(${n}, ${r}, ${s}, ${t})`}function ku(a,t=.15){var o;if(a.startsWith("#"))return wu(a,t);if(a.startsWith("rgba")){const n=(o=a.match(/rgba?\(([^)]+)\)/))==null?void 0:o[1].split(",").map(r=>r.trim());if(n&&n.length>=3){const[r,s,i]=n;return`rgba(${r}, ${s}, ${i}, ${t})`}}return a}function rr(a,t,o){const n=e.ref(""),r=e.ref(!1),s=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(n.value.toLowerCase())));return{showMentionList:r,mentionListPosition:s,filteredUsers:l,mentionQuery:n,handleInput:m=>{const g=m.target,f=g.selectionStart,h=g.value.slice(0,f).match(/@(\w*)$/);h?(n.value=h[1],r.value=!0,e.nextTick(()=>{const{top:y,left:v}=$u(g,f);s.value={top:y,left:v}})):r.value=!1},handleKeydown:m=>{m.key==="Escape"&&r.value&&(r.value=!1)},selectUserMention:m=>{const g=a.value;if(!g)return;const f=g.selectionStart,C=t.value,h=C.slice(0,f).replace(/@(\w*)$/,`@${m} `),y=C.slice(f);t.value=h+y,r.value=!1,e.nextTick(()=>{g.focus(),g.setSelectionRange(h.length,h.length)})},getMentionedUserIds:m=>{const g=Array.from(m.matchAll(/@([\p{L}\p{M}0-9-_]+)/gu)).map(f=>f[1]);return i.value.filter(f=>g.includes(f.name)).map(f=>f.id)}}}function $u(a,t){const o=document.createElement("div"),n=document.createElement("span"),r=window.getComputedStyle(a),s=["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",s.forEach(g=>{o.style[g]=r.getPropertyValue(g)}),o.style.width=r.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,n.textContent=l[0],o.appendChild(n),document.body.appendChild(o);const c=n.getBoundingClientRect(),p=o.getBoundingClientRect(),d=a.getBoundingClientRect(),u=c.top-p.top+d.top-a.scrollTop,m=c.left-p.left+d.left-a.scrollLeft;return document.body.removeChild(o),{top:u+40,left:m}}const Eu=["title"],Bu={key:0,className:"ao-avatar__initials"},Vu=["src"],Ve=e.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Kt.MD},color:{default:"primary"}},emits:["close"],setup(a,{emit:t}){const o=a,n=e.computed(()=>[`ao-avatar--${o.color}`,...o.avatarUrl?["ao-avatar-img",`ao-avatar-img--${o.size}`]:["ao-avatar",`ao-avatar--${o.size}`]]),r=bu(o.userName),s=i=>{t("close",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",{role:"img",class:e.normalizeClass(n.value),title:i.userName},[i.avatarUrl?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Bu,e.toDisplayString(e.unref(r)),1)),i.avatarUrl?(e.openBlock(),e.createElementBlock("img",{key:1,className:"ao-avatar__image",src:i.avatarUrl},null,8,Vu)):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(s,["stop"])},null,8,["color","onClick"])):e.createCommentVNode("",!0)],10,Eu))}}),A9="",Su={class:"ao-card-template__subitems"},Nu={class:"ao-card-template__subitem"},xu={class:"ao-card-template__subitem-number"},Mu={class:"ao-card-template__subitem"},Tu={class:"ao-card-template__subitem"},Au={class:"ao-card-template__body"},Ou={class:"ao-card-template__col ao-card-template__col--phases"},Iu={class:"ao-card-template__col-title"},Lu={class:"ao-card-template__col-label"},Du={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},ju={class:"ao-card-template__footer"},Pu={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},zu={class:"ao-card-template__col-title"},Hu={class:"ao-card-template__col-label"},Ru={class:"ao-card-template__col-body"},Uu={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},Fu={class:"ao-card-template__col-title"},Zu={class:"ao-card-template__col-label"},Wu={class:"ao-card-template__col-body"},qu={class:"ao-card-template-item__secondary"},Ha=5,Yu=e.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(a,{emit:t}){const o=a,n=l=>{t("updateTitle",l)},r=(l,c)=>{t("deleteItem",l,c)},s=e.computed(()=>{var l;return((l=o.phases)==null?void 0:l.slice(0,Ha))??[]}),i=e.computed(()=>o.phases&&o.phases.length>Ha?o.phases.length-Ha:0);return(l,c)=>(e.openBlock(),e.createBlock(No,{id:l.id,title:l.title,"is-draggable":!0,"onUpdate:title":n},e.createSlots({subtitle:e.withCtx(()=>[e.createElementVNode("ul",Su,[e.createElementVNode("li",Nu,[e.createVNode(ee,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",xu,e.toDisplayString(l.milestones),1)]),e.createElementVNode("li",Mu,[e.createVNode(ee,{name:"TaskOutlineRounded",size:"sm"}),e.createElementVNode("span",Tu,e.toDisplayString(l.activities),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",Au,[e.createElementVNode("div",Ou,[e.createElementVNode("div",Iu,[e.createVNode(ee,{name:"WaterfallChartRounded",size:"sm"}),e.createElementVNode("span",Lu,e.toDisplayString(l.$t("template.phases.title")),1)]),l.phases?(e.openBlock(),e.createElementBlock("ul",Du,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,p=>(e.openBlock(),e.createBlock(kt,{key:p.id,label:p.name||p.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),i.value>0?(e.openBlock(),e.createBlock(kt,{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",qu,[e.createVNode(G,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:c[0]||(c[0]=e.withModifiers(p=>r(l.id,l.title),["stop"]))})])]),_:2},[l.updatedBy||l.updatedAt?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",ju,[l.updatedAt?(e.openBlock(),e.createElementBlock("div",Pu,[e.createElementVNode("div",zu,[e.createElementVNode("span",Hu,e.toDisplayString(l.$t("template.updatedAt.label")),1)]),e.createElementVNode("div",Ru,[e.createElementVNode("span",null,e.toDisplayString(l.updatedAt),1)])])):e.createCommentVNode("",!0),l.updatedBy?(e.openBlock(),e.createElementBlock("div",Uu,[e.createElementVNode("div",Fu,[e.createElementVNode("span",Zu,e.toDisplayString(l.$t("template.updatedBy.label")),1)]),e.createElementVNode("div",Wu,[e.createVNode(Ve,{"user-name":l.updatedBy},null,8,["user-name"])])])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}}),O9="",Ku={class:"ao-page-header"},Gu={class:"ao-page-header-main"},Xu={key:0,class:"ao-page-header-secondary"},Dt=e.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("header",Ku,[e.createElementVNode("div",Gu,[t.canGoBack?(e.openBlock(),e.createBlock(G,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:o[0]||(o[0]=n=>t.$emit("goBack"))})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"primary")]),t.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Xu,[e.renderSlot(t.$slots,"secondary")])):e.createCommentVNode("",!0)]))}}),I9="",Qu=["type"],Ju={key:0,class:"ao-button-card__label"},ze=e.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Ia.BLACK},size:{default:()=>Kt.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>Vo.ROUNDED}},setup(a){const t=a,o=e.computed(()=>t.size),n=e.computed(()=>t.isLoading?"Loading":t.iconName);return(r,s)=>(e.openBlock(),e.createElementBlock("button",{type:r.type,class:e.normalizeClass(["ao-button-card",`ao-button-card--${r.color}`,`ao-button-card--${r.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[e.renderSlot(r.$slots,"default",{},()=>[r.label?(e.openBlock(),e.createElementBlock("span",Ju,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0)]),n.value?(e.openBlock(),e.createBlock(ee,{key:0,name:n.value,class:"ao-button-card__icon",size:o.value},null,8,["name","size"])):e.createCommentVNode("",!0)],10,Qu))}}),L9="",e2={class:"ao-card-template-item__footer"},t2={key:0,class:"ao-card-template-item__subitem"},a2={class:"ao-card-template-item__subitem-number"},o2={class:"ao-card-template-item__secondary"},Ra=e.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(a,{emit:t}){const o=i=>{t("update:title",i)},n=["milestones","activities","rules","tasks"],r={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},s=()=>{t("remove")};return(i,l)=>(e.openBlock(),e.createBlock(No,{"onUpdate:title":o},{footer:e.withCtx(()=>[e.createElementVNode("ul",e2,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,c=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.$props[c]?(e.openBlock(),e.createElementBlock("li",t2,[e.createVNode(ee,{name:r[c],size:"sm"},null,8,["name"]),e.createElementVNode("span",a2,e.toDisplayString(i.$props[c]),1)])):e.createCommentVNode("",!0)],64))),64))])]),secondary:e.withCtx(()=>[e.createElementVNode("div",o2,[e.createVNode(G,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:e.withModifiers(s,["stop"])},null,8,["onClick"])])]),_:1}))}}),D9="",r2=e.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(a){const t=a,o=e.computed(()=>{var r;return(r=t.milestones)==null?void 0:r.length}),n=e.computed(()=>t.milestones?ar(t.milestones):0);return(r,s)=>(e.openBlock(),e.createBlock(Ra,e.mergeProps({id:r.id,title:r.name,activities:n.value,milestones:o.value},r.$attrs),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),n2=e.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(a){const t=a,o=e.computed(()=>{var n;return((n=t.activities)==null?void 0:n.length)||0});return(n,r)=>(e.openBlock(),e.createBlock(Ra,{activities:o.value},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["activities"]))}}),i2={class:"ao-list__footer"},s2=e.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(a,{emit:t}){const o=a,n=()=>{t("addMilestone",{phaseId:o.phase.id})},r=l=>{t("removeMilestone",{phaseId:o.phase.id,id:l})},s=l=>{t("updateMilestone",l)},i=l=>{if(l.moved){const c=Lt(l,o.phase.milestones);t("updateMilestone",{id:l.moved.element.id,rank:c})}};return(l,c)=>l.phase?(e.openBlock(),e.createBlock(e.unref(je),{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(ne,{title:"Milestones",level:3,class:"ao-list__title"})]),item:e.withCtx(({element:p})=>[(e.openBlock(),e.createBlock(n2,{id:p.id,key:p.id,title:p.name,activities:p.activities,"is-active":l.milestoneId===p.id,"is-draggable":!0,"onUpdate:title":d=>s({id:p.id,name:d}),onClick:d=>l.$router.push({params:{milestoneId:p.id}}),onRemove:()=>r(p.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:e.withCtx(()=>[e.createElementVNode("div",i2,[e.createVNode(ze,{"icon-name":"AddBoxOutlineRounded",label:l.$t("template.milestones.add"),onClick:n},null,8,["label"])])]),_:1},8,["model-value","title"])):e.createCommentVNode("",!0)}}),l2=e.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(a){const t=a,o=e.computed(()=>{var n;return((n=t.tasks)==null?void 0:n.length)||0});return(n,r)=>(e.openBlock(),e.createBlock(Ra,{tasks:o.value},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["tasks"]))}}),c2={class:"ao-list__footer"},d2=e.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(a,{emit:t}){const o=a,n=()=>{t("addActivity",{milestoneId:o.milestone.id})},r=l=>{t("updateActivity",{...l})},s=l=>{t("removeActivity",{id:l})},i=l=>{if(l.moved){const c=Lt(l,o.milestone.activities);t("updateActivity",{id:l.moved.element.id,rank:c})}};return(l,c)=>l.milestone?(e.openBlock(),e.createBlock(e.unref(je),{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(ne,{title:"Activities",level:3,class:"ao-list__title"})]),item:e.withCtx(({element:p})=>[(e.openBlock(),e.createBlock(l2,{id:p.id,key:p.id,title:p.name,tasks:p.tasks,"is-active":l.activityId===p.id,"is-draggable":!0,"onUpdate:title":d=>r({id:p.id,name:d}),onClick:d=>l.$router.push({params:{activityId:p.id}}),onRemove:()=>s(p.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:e.withCtx(()=>[e.createElementVNode("div",c2,[e.createVNode(ze,{"icon-name":"AddBoxOutlineRounded",label:l.$t("template.activities.add"),onClick:n},null,8,["label"])])]),_:1},8,["model-value","title"])):e.createCommentVNode("",!0)}}),p2={class:"ao-modal"},u2={key:0,class:"ao-modal__header"},m2={class:"ao-modal__header-meta"},f2={class:"ao-modal__title-group"},h2={class:"ao-modal__body"},g2={key:1,class:"ao-modal__footer"},la=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]=n=>t.$emit("close"))}),e.createElementVNode("div",p2,[t.$slots.header?(e.openBlock(),e.createElementBlock("div",u2,[e.createElementVNode("div",m2,[e.createVNode(G,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:o[1]||(o[1]=n=>t.$emit("close"))})]),e.createElementVNode("header",f2,[e.renderSlot(t.$slots,"header")])])):e.createCommentVNode("",!0),e.createElementVNode("div",h2,[e.renderSlot(t.$slots,"default")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",g2,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])],2))}}),j9="",jt=Math.min,fe=Math.max,ca=Math.round,da=Math.floor,He=a=>({x:a,y:a}),_2={left:"right",right:"left",bottom:"top",top:"bottom"},v2={start:"end",end:"start"};function Ua(a,t){return typeof a=="function"?a(t):a}function ut(a){return a.split("-")[0]}function pa(a){return a.split("-")[1]}function b2(a){return a==="x"?"y":"x"}function nr(a){return a==="y"?"height":"width"}function Fa(a){return["top","bottom"].includes(ut(a))?"y":"x"}function ir(a){return b2(Fa(a))}function C2(a,t,o){o===void 0&&(o=!1);const n=pa(a),r=ir(a),s=nr(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ua(i)),[i,ua(i)]}function y2(a){const t=ua(a);return[Za(a),t,Za(t)]}function Za(a){return a.replace(/start|end/g,t=>v2[t])}function w2(a,t,o){const n=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(a){case"top":case"bottom":return o?t?r:n:t?n:r;case"left":case"right":return t?s:i;default:return[]}}function k2(a,t,o,n){const r=pa(a);let s=w2(ut(a),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Za)))),s}function ua(a){return a.replace(/left|right|bottom|top/g,t=>_2[t])}function $2(a){return{top:0,right:0,bottom:0,left:0,...a}}function E2(a){return typeof a!="number"?$2(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 sr(a,t,o){let{reference:n,floating:r}=a;const s=Fa(t),i=ir(t),l=nr(i),c=ut(t),p=s==="y",d=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2,m=n[l]/2-r[l]/2;let g;switch(c){case"top":g={x:d,y:n.y-r.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:u};break;case"left":g={x:n.x-r.width,y:u};break;default:g={x:n.x,y:n.y}}switch(pa(t)){case"start":g[i]-=m*(o&&p?-1:1);break;case"end":g[i]+=m*(o&&p?-1:1);break}return g}const B2=async(a,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let p=await i.getElementRects({reference:a,floating:t,strategy:r}),{x:d,y:u}=sr(p,n,c),m=n,g={},f=0;for(let C=0;C<l.length;C++){const{name:h,fn:y}=l[C],{x:v,y:_,data:b,reset:B}=await y({x:d,y:u,initialPlacement:n,placement:m,strategy:r,middlewareData:g,rects:p,platform:i,elements:{reference:a,floating:t}});if(d=v??d,u=_??u,g={...g,[h]:{...g[h],...b}},B&&f<=50){f++,typeof B=="object"&&(B.placement&&(m=B.placement),B.rects&&(p=B.rects===!0?await i.getElementRects({reference:a,floating:t,strategy:r}):B.rects),{x:d,y:u}=sr(p,m,c)),C=-1;continue}}return{x:d,y:u,placement:m,strategy:r,middlewareData:g}};async function lr(a,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:s,rects:i,elements:l,strategy:c}=a,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:g=0}=Ua(t,a),f=E2(g),h=l[m?u==="floating"?"reference":"floating":u],y=ma(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(h)))==null||o?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:p,rootBoundary:d,strategy:c})),v=u==="floating"?{...i.floating,x:n,y:r}:i.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},B=ma(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:_,strategy:c}):v);return{top:(y.top-B.top+f.top)/b.y,bottom:(B.bottom-y.bottom+f.bottom)/b.y,left:(y.left-B.left+f.left)/b.x,right:(B.right-y.right+f.right)/b.x}}const V2=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(t){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:p}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:C=!0,...h}=Ua(a,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const y=ut(r),v=ut(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(p.floating)),b=m||(v||!C?[ua(l)]:y2(l));!m&&f!=="none"&&b.push(...k2(l,C,f,_));const B=[l,...b],E=await lr(t,h),N=[];let I=((n=s.flip)==null?void 0:n.overflows)||[];if(d&&N.push(E[y]),u){const A=C2(r,i,_);N.push(E[A[0]],E[A[1]])}if(I=[...I,{placement:r,overflows:N}],!N.every(A=>A<=0)){var z,R;const A=(((z=s.flip)==null?void 0:z.index)||0)+1,H=B[A];if(H)return{data:{index:A,overflows:I},reset:{placement:H}};let K=(R=I.filter(W=>W.overflows[0]<=0).sort((W,U)=>W.overflows[1]-U.overflows[1])[0])==null?void 0:R.placement;if(!K)switch(g){case"bestFit":{var F;const W=(F=I.map(U=>[U.placement,U.overflows.filter(S=>S>0).reduce((S,$)=>S+$,0)]).sort((U,S)=>U[1]-S[1])[0])==null?void 0:F[0];W&&(K=W);break}case"initialPlacement":K=l;break}if(r!==K)return{reset:{placement:K}}}return{}}}},S2=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(t){const{placement:o,rects:n,platform:r,elements:s}=t,{apply:i=()=>{},...l}=Ua(a,t),c=await lr(t,l),p=ut(o),d=pa(o),u=Fa(o)==="y",{width:m,height:g}=n.floating;let f,C;p==="top"||p==="bottom"?(f=p,C=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(C=p,f=d==="end"?"top":"bottom");const h=g-c[f],y=m-c[C],v=!t.middlewareData.shift;let _=h,b=y;if(u){const E=m-c.left-c.right;b=d||v?jt(y,E):E}else{const E=g-c.top-c.bottom;_=d||v?jt(h,E):E}if(v&&!d){const E=fe(c.left,0),N=fe(c.right,0),I=fe(c.top,0),z=fe(c.bottom,0);u?b=m-2*(E!==0||N!==0?E+N:fe(c.left,c.right)):_=g-2*(I!==0||z!==0?I+z:fe(c.top,c.bottom))}await i({...t,availableWidth:b,availableHeight:_});const B=await r.getDimensions(s.floating);return m!==B.width||g!==B.height?{reset:{rects:!0}}:{}}}};function Re(a){return cr(a)?(a.nodeName||"").toLowerCase():"#document"}function ce(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function Se(a){var t;return(t=(cr(a)?a.ownerDocument:a.document)||window.document)==null?void 0:t.documentElement}function cr(a){return a instanceof Node||a instanceof ce(a).Node}function Ne(a){return a instanceof Element||a instanceof ce(a).Element}function ye(a){return a instanceof HTMLElement||a instanceof ce(a).HTMLElement}function dr(a){return typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ce(a).ShadowRoot}function Pt(a){const{overflow:t,overflowX:o,overflowY:n,display:r}=he(a);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(r)}function N2(a){return["table","td","th"].includes(Re(a))}function Wa(a){const t=qa(),o=he(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(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function x2(a){let t=mt(a);for(;ye(t)&&!fa(t);){if(Wa(t))return t;t=mt(t)}return null}function qa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fa(a){return["html","body","#document"].includes(Re(a))}function he(a){return ce(a).getComputedStyle(a)}function ha(a){return Ne(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function mt(a){if(Re(a)==="html")return a;const t=a.assignedSlot||a.parentNode||dr(a)&&a.host||Se(a);return dr(t)?t.host:t}function pr(a){const t=mt(a);return fa(t)?a.ownerDocument?a.ownerDocument.body:a.body:ye(t)&&Pt(t)?t:pr(t)}function zt(a,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=pr(a),s=r===((n=a.ownerDocument)==null?void 0:n.body),i=ce(r);return s?t.concat(i,i.visualViewport||[],Pt(r)?r:[],i.frameElement&&o?zt(i.frameElement):[]):t.concat(r,zt(r))}function ur(a){const t=he(a);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=ye(a),s=r?a.offsetWidth:o,i=r?a.offsetHeight:n,l=ca(o)!==s||ca(n)!==i;return l&&(o=s,n=i),{width:o,height:n,$:l}}function Ya(a){return Ne(a)?a:a.contextElement}function ft(a){const t=Ya(a);if(!ye(t))return He(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=ur(t);let i=(s?ca(o.width):o.width)/n,l=(s?ca(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const M2=He(0);function mr(a){const t=ce(a);return!qa()||!t.visualViewport?M2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T2(a,t,o){return t===void 0&&(t=!1),!o||t&&o!==ce(a)?!1:t}function Je(a,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=a.getBoundingClientRect(),s=Ya(a);let i=He(1);t&&(n?Ne(n)&&(i=ft(n)):i=ft(a));const l=T2(s,o,n)?mr(s):He(0);let c=(r.left+l.x)/i.x,p=(r.top+l.y)/i.y,d=r.width/i.x,u=r.height/i.y;if(s){const m=ce(s),g=n&&Ne(n)?ce(n):n;let f=m.frameElement;for(;f&&n&&g!==m;){const C=ft(f),h=f.getBoundingClientRect(),y=he(f),v=h.left+(f.clientLeft+parseFloat(y.paddingLeft))*C.x,_=h.top+(f.clientTop+parseFloat(y.paddingTop))*C.y;c*=C.x,p*=C.y,d*=C.x,u*=C.y,c+=v,p+=_,f=ce(f).frameElement}}return ma({width:d,height:u,x:c,y:p})}function A2(a){let{rect:t,offsetParent:o,strategy:n}=a;const r=ye(o),s=Se(o);if(o===s)return t;let i={scrollLeft:0,scrollTop:0},l=He(1);const c=He(0);if((r||!r&&n!=="fixed")&&((Re(o)!=="body"||Pt(s))&&(i=ha(o)),ye(o))){const p=Je(o);l=ft(o),c.x=p.x+o.clientLeft,c.y=p.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 O2(a){return Array.from(a.getClientRects())}function fr(a){return Je(Se(a)).left+ha(a).scrollLeft}function I2(a){const t=Se(a),o=ha(a),n=a.ownerDocument.body,r=fe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=fe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+fr(a);const l=-o.scrollTop;return he(n).direction==="rtl"&&(i+=fe(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:l}}function L2(a,t){const o=ce(a),n=Se(a),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,l=0,c=0;if(r){s=r.width,i=r.height;const p=qa();(!p||p&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:i,x:l,y:c}}function D2(a,t){const o=Je(a,!0,t==="fixed"),n=o.top+a.clientTop,r=o.left+a.clientLeft,s=ye(a)?ft(a):He(1),i=a.clientWidth*s.x,l=a.clientHeight*s.y,c=r*s.x,p=n*s.y;return{width:i,height:l,x:c,y:p}}function hr(a,t,o){let n;if(t==="viewport")n=L2(a,o);else if(t==="document")n=I2(Se(a));else if(Ne(t))n=D2(t,o);else{const r=mr(a);n={...t,x:t.x-r.x,y:t.y-r.y}}return ma(n)}function gr(a,t){const o=mt(a);return o===t||!Ne(o)||fa(o)?!1:he(o).position==="fixed"||gr(o,t)}function j2(a,t){const o=t.get(a);if(o)return o;let n=zt(a,[],!1).filter(l=>Ne(l)&&Re(l)!=="body"),r=null;const s=he(a).position==="fixed";let i=s?mt(a):a;for(;Ne(i)&&!fa(i);){const l=he(i),c=Wa(i);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Pt(i)&&!c&&gr(a,i))?n=n.filter(d=>d!==i):r=l,i=mt(i)}return t.set(a,n),n}function P2(a){let{element:t,boundary:o,rootBoundary:n,strategy:r}=a;const i=[...o==="clippingAncestors"?j2(t,this._c):[].concat(o),n],l=i[0],c=i.reduce((p,d)=>{const u=hr(t,d,r);return p.top=fe(u.top,p.top),p.right=jt(u.right,p.right),p.bottom=jt(u.bottom,p.bottom),p.left=fe(u.left,p.left),p},hr(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function z2(a){return ur(a)}function H2(a,t,o){const n=ye(t),r=Se(t),s=o==="fixed",i=Je(a,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=He(0);if(n||!n&&!s)if((Re(t)!=="body"||Pt(r))&&(l=ha(t)),n){const p=Je(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else r&&(c.x=fr(r));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function _r(a,t){return!ye(a)||he(a).position==="fixed"?null:t?t(a):a.offsetParent}function vr(a,t){const o=ce(a);if(!ye(a))return o;let n=_r(a,t);for(;n&&N2(n)&&he(n).position==="static";)n=_r(n,t);return n&&(Re(n)==="html"||Re(n)==="body"&&he(n).position==="static"&&!Wa(n))?o:n||x2(a)||o}const R2=async function(a){let{reference:t,floating:o,strategy:n}=a;const r=this.getOffsetParent||vr,s=this.getDimensions;return{reference:H2(t,await r(o),n),floating:{x:0,y:0,...await s(o)}}};function U2(a){return he(a).direction==="rtl"}const F2={convertOffsetParentRelativeRectToViewportRelativeRect:A2,getDocumentElement:Se,getClippingRect:P2,getOffsetParent:vr,getElementRects:R2,getClientRects:O2,getDimensions:z2,getScale:ft,isElement:Ne,isRTL:U2};function Z2(a,t){let o=null,n;const r=Se(a);function s(){clearTimeout(n),o&&o.disconnect(),o=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:p,top:d,width:u,height:m}=a.getBoundingClientRect();if(l||t(),!u||!m)return;const g=da(d),f=da(r.clientWidth-(p+u)),C=da(r.clientHeight-(d+m)),h=da(p),v={rootMargin:-g+"px "+-f+"px "+-C+"px "+-h+"px",threshold:fe(0,jt(1,c))||1};let _=!0;function b(B){const E=B[0].intersectionRatio;if(E!==c){if(!_)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},100)}_=!1}try{o=new IntersectionObserver(b,{...v,root:r.ownerDocument})}catch{o=new IntersectionObserver(b,v)}o.observe(a)}return i(!0),s}function W2(a,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,p=Ya(a),d=r||s?[...p?zt(p):[],...zt(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",o,{passive:!0}),s&&y.addEventListener("resize",o)});const u=p&&l?Z2(p,o):null;let m=-1,g=null;i&&(g=new ResizeObserver(y=>{let[v]=y;v&&v.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(t)})),o()}),p&&!c&&g.observe(p),g.observe(t));let f,C=c?Je(a):null;c&&h();function h(){const y=Je(a);C&&(y.x!==C.x||y.y!==C.y||y.width!==C.width||y.height!==C.height)&&o(),C=y,f=requestAnimationFrame(h)}return o(),()=>{d.forEach(y=>{r&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),u&&u(),g&&g.disconnect(),g=null,c&&cancelAnimationFrame(f)}}const q2=(a,t,o)=>{const n=new Map,r={platform:F2,...o},s={...r.platform,_c:n};return B2(a,t,{...r,platform:s})},Y2=a=>{const t=e.ref(!1),o=e.ref(),n=e.ref(),r=e.ref(0);function s(){const u=e.unref(a.appendTo);return u?typeof u=="string"?document.getElementById(u)??document.body:u:document.getElementById("floatingElements")??document.body}const i=s(),l=e.ref(()=>{});function c(u){u.relatedTarget&&n.value&&n.value.contains(u.relatedTarget)||a.multiselect.value.deactivate()}function p(){const u=a.multiselect.value.$el,m=u.querySelector(".multiselect-dropdown");if(!m||!u||t.value===!0)return;n.value=m,o.value=u,getComputedStyle(m).getPropertyValue("display")==="none"&&(m.style.display="flex"),r.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=W2(o.value,n.value,d);l.value=()=>{n.value&&i.contains(n.value)&&i.removeChild(n.value),f()}}function d(){!n.value||!o.value||q2(o.value,n.value,{strategy:"absolute",placement:"bottom-start",middleware:[V2({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),S2({apply({availableWidth:u,availableHeight:m,elements:g,rects:f}){Object.assign(g.floating.style,{minHeight:`${r.value}px`,width:`${f.reference.width}px`,maxWidth:`${u}px`,maxHeight:`${m}px`})}})]}).then(({x:u,y:m})=>{Object.assign(n.value.style,{left:`${u}px`,top:`${m}px`})})}e.onMounted(()=>{p()}),e.onBeforeUnmount(()=>{l.value()}),e.onUnmounted(()=>{l.value()})};function we(a){return[null,void 0].indexOf(a)!==-1}function K2(a,t,o){const{object:n,valueProp:r,mode:s}=e.toRefs(a),i=e.getCurrentInstance().proxy,l=o.iv,c=(u,m=!0)=>{l.value=d(u);const g=p(u);t.emit("change",g,i),m&&(t.emit("input",g),t.emit("update:modelValue",g))},p=u=>n.value||we(u)?u:Array.isArray(u)?u.map(m=>m[r.value]):u[r.value],d=u=>we(u)?s.value==="single"?{}:[]:u;return{update:c}}function G2(a,t){const{value:o,modelValue:n,mode:r,valueProp:s}=e.toRefs(a),i=e.ref(r.value!=="single"?[]:{}),l=e.computed(()=>n&&n.value!==void 0?n.value:o.value),c=e.computed(()=>r.value==="single"?i.value[s.value]:i.value.map(d=>d[s.value])),p=e.computed(()=>r.value!=="single"?i.value.map(d=>d[s.value]).join(","):i.value[s.value]);return{iv:i,internalValue:i,ev:l,externalValue:l,textValue:p,plainValue:c}}function X2(a,t,o){const{regex:n}=e.toRefs(a),r=e.getCurrentInstance().proxy,s=o.isOpen,i=o.open,l=e.ref(null),c=()=>{l.value=""},p=m=>{l.value=m.target.value},d=m=>{if(n&&n.value){let g=n.value;typeof g=="string"&&(g=new RegExp(g)),m.key.match(g)||m.preventDefault()}},u=m=>{if(n&&n.value){let f=(m.clipboardData||window.clipboardData).getData("Text"),C=n.value;typeof C=="string"&&(C=new RegExp(C)),f.split("").every(h=>!!h.match(C))||m.preventDefault()}t.emit("paste",m,r)};return e.watch(l,m=>{!s.value&&m&&i(),t.emit("search-change",m,r)}),{search:l,clearSearch:c,handleSearchInput:p,handleKeypress:d,handlePaste:u}}function Q2(a,t,o){const{groupSelect:n,mode:r,groups:s,disabledProp:i}=e.toRefs(a),l=e.ref(null),c=d=>{d===void 0||d!==null&&d[i.value]||s.value&&d&&d.group&&(r.value==="single"||!n.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Ka(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 J2(a){return Object.prototype.toString.call(a)==="[object Object]"}function e0(a,t){const o=t.slice().sort();return a.length===t.length&&a.slice().sort().every(function(n,r){return n===o[r]})}function t0(a,t,o){const{options:n,mode:r,trackBy:s,limit:i,hideSelected:l,createTag:c,createOption:p,label:d,appendNewTag:u,appendNewOption:m,multipleLabel:g,object:f,loading:C,delay:h,resolveOnLoad:y,minChars:v,filterResults:_,clearOnSearch:b,clearOnSelect:B,valueProp:E,allowAbsent:N,groupLabel:I,canDeselect:z,max:R,strict:F,closeOnSelect:A,closeOnDeselect:H,groups:K,reverse:W,infinite:U,groupOptions:S,groupHideEmpty:$,groupSelect:L,onCreate:V,disabledProp:D,searchStart:q,searchFilter:w}=e.toRefs(a),x=e.getCurrentInstance().proxy,O=o.iv,M=o.ev,P=o.search,Z=o.clearSearch,le=o.update,nt=o.pointer,Wt=o.setPointer,qe=o.clearPointer,Va=o.focus,vo=o.deactivate,Ye=o.close,Sa=o.localize,Ke=e.ref([]),Ee=e.ref([]),_e=e.ref(!1),Ce=e.ref(null),Oe=e.ref(U.value&&i.value===-1?10:i.value),qt=e.computed(()=>c.value||p.value||!1),Na=e.computed(()=>u.value!==void 0?u.value:m.value!==void 0?m.value:!0),ve=e.computed(()=>{if(K.value){let k=it.value||[],T=[];return k.forEach(Q=>{Eo(Q[S.value]).forEach(ae=>{T.push(Object.assign({},ae,Q[D.value]?{[D.value]:!0}:{}))})}),T}else{let k=Eo(Ee.value||[]);return Ke.value.length&&(k=k.concat(Ke.value)),k}}),Yt=e.computed(()=>{let k=ve.value;return W.value&&(k=k.reverse()),Ct.value.length&&(k=Ct.value.concat(k)),$o(k)}),Ge=e.computed(()=>{let k=Yt.value;return Oe.value>0&&(k=k.slice(0,Oe.value)),k}),it=e.computed(()=>{if(!K.value)return[];let k=[],T=Ee.value||[];return Ke.value.length&&k.push({[I.value]:" ",[S.value]:[...Ke.value],__CREATE__:!0}),k.concat(T)}),xa=e.computed(()=>{let k=[...it.value].map(T=>({...T}));return Ct.value.length&&(k[0]&&k[0].__CREATE__?k[0][S.value]=[...Ct.value,...k[0][S.value]]:k=[{[I.value]:" ",[S.value]:[...Ct.value],__CREATE__:!0}].concat(k)),k}),bo=e.computed(()=>{if(!K.value)return[];let k=xa.value;return J7((k||[]).map((T,Q)=>{const ae=Eo(T[S.value]);return{...T,index:Q,group:!0,[S.value]:$o(ae,!1).map(lt=>Object.assign({},lt,T[D.value]?{[D.value]:!0}:{})),__VISIBLE__:$o(ae).map(lt=>Object.assign({},lt,T[D.value]?{[D.value]:!0}:{}))}}))}),Co=e.computed(()=>{switch(r.value){case"single":return!we(O.value[E.value]);case"multiple":case"tags":return!we(O.value)&&O.value.length>0}}),P7=e.computed(()=>g!==void 0&&g.value!==void 0?g.value(O.value,x):O.value&&O.value.length>1?`${O.value.length} options selected`:"1 option selected"),z7=e.computed(()=>!ve.value.length&&!_e.value&&!Ct.value.length),H7=e.computed(()=>ve.value.length>0&&Ge.value.length==0&&(P.value&&K.value||!K.value)),Ct=e.computed(()=>qt.value===!1||!P.value?[]:G7(P.value)!==-1?[]:[{[E.value]:P.value,[st.value[0]]:P.value,[d.value]:P.value,__CREATE__:!0}]),st=e.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),R7=e.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),U7=e.computed(()=>C.value||_e.value),yt=k=>{switch(typeof k!="object"&&(k=Le(k)),r.value){case"single":le(k);break;case"multiple":case"tags":le(O.value.concat(k));break}t.emit("select",Ur(k),k,x)},wt=k=>{switch(typeof k!="object"&&(k=Le(k)),r.value){case"single":Zr();break;case"tags":case"multiple":le(Array.isArray(k)?O.value.filter(T=>k.map(Q=>Q[E.value]).indexOf(T[E.value])===-1):O.value.filter(T=>T[E.value]!=k[E.value]));break}t.emit("deselect",Ur(k),k,x)},Ur=k=>f.value?k:k[E.value],Fr=k=>{wt(k)},F7=(k,T)=>{if(T.button!==0){T.preventDefault();return}Fr(k)},Zr=()=>{le(R7.value),t.emit("clear",x)},Ie=k=>{if(k.group!==void 0)return r.value==="single"?!1:K7(k[S.value])&&k[S.value].length;switch(r.value){case"single":return!we(O.value)&&O.value[E.value]==k[E.value];case"tags":case"multiple":return!we(O.value)&&O.value.map(T=>T[E.value]).indexOf(k[E.value])!==-1}},yo=k=>k[D.value]===!0,wo=()=>R===void 0||R.value===-1||!Co.value&&R.value>0?!1:O.value.length>=R.value,Z7=k=>{if(!yo(k)){if(V&&V.value&&!Ie(k)&&k.__CREATE__&&(k={...k},delete k.__CREATE__,k=V.value(k,x),k instanceof Promise)){_e.value=!0,k.then(T=>{_e.value=!1,Wr(T)});return}Wr(k)}},Wr=k=>{switch(k.__CREATE__&&(k={...k},delete k.__CREATE__),r.value){case"single":if(k&&Ie(k)){z.value&&wt(k),H.value&&(qe(),Ye());return}k&&ko(k),B.value&&Z(),A.value&&(qe(),Ye()),k&&yt(k);break;case"multiple":if(k&&Ie(k)){wt(k),H.value&&(qe(),Ye());return}if(wo()){t.emit("max",x);return}k&&(ko(k),yt(k)),B.value&&Z(),l.value&&qe(),A.value&&Ye();break;case"tags":if(k&&Ie(k)){wt(k),H.value&&(qe(),Ye());return}if(wo()){t.emit("max",x);return}k&&ko(k),B.value&&Z(),k&&yt(k),l.value&&qe(),A.value&&Ye();break}A.value||Va()},W7=k=>{if(!(yo(k)||r.value==="single"||!L.value)){switch(r.value){case"multiple":case"tags":Y7(k[S.value])?wt(k[S.value]):yt(k[S.value].filter(T=>O.value.map(Q=>Q[E.value]).indexOf(T[E.value])===-1).filter(T=>!T[D.value]).filter((T,Q)=>O.value.length+1+Q<=R.value||R.value===-1)),l.value&&nt.value&&Wt(bo.value.filter(T=>!T[D.value])[nt.value.index]);break}A.value&&vo()}},ko=k=>{Le(k[E.value])===void 0&&qt.value&&(t.emit("tag",k[E.value],x),t.emit("option",k[E.value],x),t.emit("create",k[E.value],x),Na.value&&Q7(k),Z())},q7=()=>{r.value!=="single"&&yt(Ge.value.filter(k=>!k.disabled&&!Ie(k)))},Y7=k=>k.find(T=>!Ie(T)&&!T[D.value])===void 0,K7=k=>k.find(T=>!Ie(T))===void 0,Le=k=>ve.value[ve.value.map(T=>String(T[E.value])).indexOf(String(k))],G7=k=>ve.value.findIndex(T=>st.value.some(Q=>(parseInt(T[Q])==T[Q]?parseInt(T[Q]):T[Q])===(parseInt(k)==k?parseInt(k):k))),X7=k=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&Ie(k),Q7=k=>{Ke.value.push(k)},J7=k=>$.value?k.filter(T=>P.value?T.__VISIBLE__.length:T[S.value].length):k.filter(T=>P.value?T.__VISIBLE__.length:!0),$o=(k,T=!0)=>{let Q=k;if(P.value&&_.value){let ae=w.value;ae||(ae=(lt,Yr,h4)=>st.value.some(tg=>{let Kr=Ka(Sa(lt[tg]),F.value);return q.value?Kr.startsWith(Ka(Yr,F.value)):Kr.indexOf(Ka(Yr,F.value))!==-1})),Q=Q.filter(lt=>ae(lt,P.value,x))}return l.value&&T&&(Q=Q.filter(ae=>!X7(ae))),Q},Eo=k=>{let T=k;return J2(T)&&(T=Object.keys(T).map(Q=>{let ae=T[Q];return{[E.value]:Q,[st.value[0]]:ae,[d.value]:ae}})),T=T.map(Q=>typeof Q=="object"?Q:{[E.value]:Q,[st.value[0]]:Q,[d.value]:Q}),T},Ma=()=>{we(M.value)||(O.value=Aa(M.value))},Ta=k=>(_e.value=!0,new Promise((T,Q)=>{n.value(P.value,x).then(ae=>{Ee.value=ae||[],typeof k=="function"&&k(ae),_e.value=!1}).catch(ae=>{console.error(ae),Ee.value=[],_e.value=!1}).finally(()=>{T()})})),Bo=()=>{if(Co.value)if(r.value==="single"){let k=Le(O.value[E.value]);if(k!==void 0){let T=k[d.value];O.value[d.value]=T,f.value&&(M.value[d.value]=T)}}else O.value.forEach((k,T)=>{let Q=Le(O.value[T][E.value]);if(Q!==void 0){let ae=Q[d.value];O.value[T][d.value]=ae,f.value&&(M.value[T][d.value]=ae)}})},eg=k=>{Ta(k)},Aa=k=>we(k)?r.value==="single"?{}:[]:f.value?k:r.value==="single"?Le(k)||(N.value?{[d.value]:k,[E.value]:k,[st.value[0]]:k}:{}):k.filter(T=>!!Le(T)||N.value).map(T=>Le(T)||{[d.value]:T,[E.value]:T,[st.value[0]]:T}),qr=()=>{Ce.value=e.watch(P,k=>{k.length<v.value||!k&&v.value!==0||(_e.value=!0,b.value&&(Ee.value=[]),setTimeout(()=>{k==P.value&&n.value(P.value,x).then(T=>{(k==P.value||!P.value)&&(Ee.value=T,nt.value=Ge.value.filter(Q=>Q[D.value]!==!0)[0]||null,_e.value=!1)}).catch(T=>{console.error(T)})},h.value))},{flush:"sync"})};if(r.value!=="single"&&!we(M.value)&&!Array.isArray(M.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return n&&typeof n.value=="function"?y.value?Ta(Ma):f.value==!0&&Ma():(Ee.value=n.value,Ma()),h.value>-1&&qr(),e.watch(h,(k,T)=>{Ce.value&&Ce.value(),k>=0&&qr()}),e.watch(M,k=>{if(we(k)){le(Aa(k),!1);return}switch(r.value){case"single":(f.value?k[E.value]!=O.value[E.value]:k!=O.value[E.value])&&le(Aa(k),!1);break;case"multiple":case"tags":e0(f.value?k.map(T=>T[E.value]):k,O.value.map(T=>T[E.value]))||le(Aa(k),!1);break}},{deep:!0}),e.watch(n,(k,T)=>{typeof a.options=="function"?y.value&&(!T||k&&k.toString()!==T.toString())&&Ta():(Ee.value=a.options,Object.keys(O.value).length||Ma(),Bo())}),e.watch(d,Bo),e.watch(i,(k,T)=>{Oe.value=U.value&&k===-1?10:k}),{pfo:Yt,fo:Ge,filteredOptions:Ge,hasSelected:Co,multipleLabelText:P7,eo:ve,extendedOptions:ve,eg:it,extendedGroups:it,fg:bo,filteredGroups:bo,noOptions:z7,noResults:H7,resolving:_e,busy:U7,offset:Oe,select:yt,deselect:wt,remove:Fr,selectAll:q7,clear:Zr,isSelected:Ie,isDisabled:yo,isMax:wo,getOption:Le,handleOptionClick:Z7,handleGroupClick:W7,handleTagRemove:F7,refreshOptions:eg,resolveOptions:Ta,refreshLabels:Bo}}function a0(a,t,o){const{valueProp:n,showOptions:r,searchable:s,groupLabel:i,groups:l,mode:c,groupSelect:p,disabledProp:d,groupOptions:u}=e.toRefs(a),m=o.fo,g=o.fg,f=o.handleOptionClick,C=o.handleGroupClick,h=o.search,y=o.pointer,v=o.setPointer,_=o.clearPointer,b=o.multiselect,B=o.isOpen,E=e.computed(()=>m.value.filter(M=>!M[d.value])),N=e.computed(()=>g.value.filter(M=>!M[d.value])),I=e.computed(()=>c.value!=="single"&&p.value),z=e.computed(()=>y.value&&y.value.group),R=e.computed(()=>x(y.value)),F=e.computed(()=>{const M=z.value?y.value:x(y.value),P=N.value.map(le=>le[i.value]).indexOf(M[i.value]);let Z=N.value[P-1];return Z===void 0&&(Z=H.value),Z}),A=e.computed(()=>{let M=N.value.map(P=>P.label).indexOf(z.value?y.value[i.value]:x(y.value)[i.value])+1;return N.value.length<=M&&(M=0),N.value[M]}),H=e.computed(()=>[...N.value].slice(-1)[0]),K=e.computed(()=>y.value.__VISIBLE__.filter(M=>!M[d.value])[0]),W=e.computed(()=>{const M=R.value.__VISIBLE__.filter(P=>!P[d.value]);return M[M.map(P=>P[n.value]).indexOf(y.value[n.value])-1]}),U=e.computed(()=>{const M=x(y.value).__VISIBLE__.filter(P=>!P[d.value]);return M[M.map(P=>P[n.value]).indexOf(y.value[n.value])+1]}),S=e.computed(()=>[...F.value.__VISIBLE__.filter(M=>!M[d.value])].slice(-1)[0]),$=e.computed(()=>[...H.value.__VISIBLE__.filter(M=>!M[d.value])].slice(-1)[0]),L=M=>y.value&&(!M.group&&y.value[n.value]===M[n.value]||M.group!==void 0&&y.value[i.value]===M[i.value])?!0:void 0,V=()=>{v(E.value[0]||null)},D=()=>{!y.value||y.value[d.value]===!0||(z.value?C(y.value):f(y.value))},q=()=>{if(y.value===null)v((l.value&&I.value?N.value[0].__CREATE__?E.value[0]:N.value[0]:E.value[0])||null);else if(l.value&&I.value){let M=z.value?K.value:U.value;M===void 0&&(M=A.value,M.__CREATE__&&(M=M[u.value][0])),v(M||null)}else{let M=E.value.map(P=>P[n.value]).indexOf(y.value[n.value])+1;E.value.length<=M&&(M=0),v(E.value[M]||null)}e.nextTick(()=>{O()})},w=()=>{if(y.value===null){let M=E.value[E.value.length-1];l.value&&I.value&&(M=$.value,M===void 0&&(M=H.value)),v(M||null)}else if(l.value&&I.value){let M=z.value?S.value:W.value;M===void 0&&(M=z.value?F.value:R.value,M.__CREATE__&&(M=S.value,M===void 0&&(M=F.value))),v(M||null)}else{let M=E.value.map(P=>P[n.value]).indexOf(y.value[n.value])-1;M<0&&(M=E.value.length-1),v(E.value[M]||null)}e.nextTick(()=>{O()})},x=M=>N.value.find(P=>P.__VISIBLE__.map(Z=>Z[n.value]).indexOf(M[n.value])!==-1),O=()=>{let M=b.value.querySelector("[data-pointed]");if(!M)return;let P=M.parentElement.parentElement;l.value&&(P=z.value?M.parentElement.parentElement.parentElement:M.parentElement.parentElement.parentElement.parentElement),M.offsetTop+M.offsetHeight>P.clientHeight+P.scrollTop&&(P.scrollTop=M.offsetTop+M.offsetHeight-P.clientHeight),M.offsetTop<P.scrollTop&&(P.scrollTop=M.offsetTop)};return e.watch(h,M=>{s.value&&(M.length&&r.value?V():_())}),e.watch(B,M=>{if(M){let P=b.value.querySelectorAll("[data-selected]")[0];if(!P)return;let Z=P.parentElement.parentElement;e.nextTick(()=>{Z.scrollTop>0||(Z.scrollTop=P.offsetTop)})}}),{pointer:y,canPointGroups:I,isPointed:L,setPointerFirst:V,selectPointer:D,forwardPointer:q,backwardPointer:w}}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 et(a){var t=de(a).Element;return a instanceof t||a instanceof Element}function ge(a){var t=de(a).HTMLElement;return a instanceof t||a instanceof HTMLElement}function Ga(a){if(typeof ShadowRoot>"u")return!1;var t=de(a).ShadowRoot;return a instanceof t||a instanceof ShadowRoot}var tt=Math.max,ga=Math.min,ht=Math.round;function Xa(){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 br(){return!/^((?!chrome|android).)*safari/i.test(Xa())}function gt(a,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var n=a.getBoundingClientRect(),r=1,s=1;t&&ge(a)&&(r=a.offsetWidth>0&&ht(n.width)/a.offsetWidth||1,s=a.offsetHeight>0&&ht(n.height)/a.offsetHeight||1);var i=et(a)?de(a):window,l=i.visualViewport,c=!br()&&o,p=(n.left+(c&&l?l.offsetLeft:0))/r,d=(n.top+(c&&l?l.offsetTop:0))/s,u=n.width/r,m=n.height/s;return{width:u,height:m,top:d,right:p+u,bottom:d+m,left:p,x:p,y:d}}function Qa(a){var t=de(a),o=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:o,scrollTop:n}}function o0(a){return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}}function r0(a){return a===de(a)||!ge(a)?Qa(a):o0(a)}function ke(a){return a?(a.nodeName||"").toLowerCase():null}function Ue(a){return((et(a)?a.ownerDocument:a.document)||window.document).documentElement}function Ja(a){return gt(Ue(a)).left+Qa(a).scrollLeft}function xe(a){return de(a).getComputedStyle(a)}function eo(a){var t=xe(a),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function n0(a){var t=a.getBoundingClientRect(),o=ht(t.width)/a.offsetWidth||1,n=ht(t.height)/a.offsetHeight||1;return o!==1||n!==1}function i0(a,t,o){o===void 0&&(o=!1);var n=ge(t),r=ge(t)&&n0(t),s=Ue(t),i=gt(a,r,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!o)&&((ke(t)!=="body"||eo(s))&&(l=r0(t)),ge(t)?(c=gt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ja(s))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Cr(a){var t=gt(a),o=a.offsetWidth,n=a.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:a.offsetLeft,y:a.offsetTop,width:o,height:n}}function _a(a){return ke(a)==="html"?a:a.assignedSlot||a.parentNode||(Ga(a)?a.host:null)||Ue(a)}function yr(a){return["html","body","#document"].indexOf(ke(a))>=0?a.ownerDocument.body:ge(a)&&eo(a)?a:yr(_a(a))}function Ht(a,t){var o;t===void 0&&(t=[]);var n=yr(a),r=n===((o=a.ownerDocument)==null?void 0:o.body),s=de(n),i=r?[s].concat(s.visualViewport||[],eo(n)?n:[]):n,l=t.concat(i);return r?l:l.concat(Ht(_a(i)))}function s0(a){return["table","td","th"].indexOf(ke(a))>=0}function wr(a){return!ge(a)||xe(a).position==="fixed"?null:a.offsetParent}function l0(a){var t=/firefox/i.test(Xa()),o=/Trident/i.test(Xa());if(o&&ge(a)){var n=xe(a);if(n.position==="fixed")return null}var r=_a(a);for(Ga(r)&&(r=r.host);ge(r)&&["html","body"].indexOf(ke(r))<0;){var s=xe(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function va(a){for(var t=de(a),o=wr(a);o&&s0(o)&&xe(o).position==="static";)o=wr(o);return o&&(ke(o)==="html"||ke(o)==="body"&&xe(o).position==="static")?t:o||l0(a)||t}var be="top",$e="bottom",Fe="right",Me="left",to="auto",ba=[be,$e,Fe,Me],_t="start",Rt="end",c0="clippingParents",kr="viewport",Ut="popper",d0="reference",$r=ba.reduce(function(a,t){return a.concat([t+"-"+_t,t+"-"+Rt])},[]),p0=[].concat(ba,[to]).reduce(function(a,t){return a.concat([t,t+"-"+_t,t+"-"+Rt])},[]),u0="beforeRead",m0="read",f0="afterRead",h0="beforeMain",g0="main",_0="afterMain",v0="beforeWrite",b0="write",C0="afterWrite",y0=[u0,m0,f0,h0,g0,_0,v0,b0,C0];function w0(a){var t=new Map,o=new Set,n=[];a.forEach(function(s){t.set(s.name,s)});function r(s){o.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&r(c)}}),n.push(s)}return a.forEach(function(s){o.has(s.name)||r(s)}),n}function k0(a){var t=w0(a);return y0.reduce(function(o,n){return o.concat(t.filter(function(r){return r.phase===n}))},[])}function $0(a){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(a())})})),t}}function E0(a){var t=a.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(t).map(function(o){return t[o]})}function B0(a,t){var o=de(a),n=Ue(a),r=o.visualViewport,s=n.clientWidth,i=n.clientHeight,l=0,c=0;if(r){s=r.width,i=r.height;var p=br();(p||!p&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:i,x:l+Ja(a),y:c}}function V0(a){var t,o=Ue(a),n=Qa(a),r=(t=a.ownerDocument)==null?void 0:t.body,s=tt(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=tt(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+Ja(a),c=-n.scrollTop;return xe(r||o).direction==="rtl"&&(l+=tt(o.clientWidth,r?r.clientWidth:0)-s),{width:s,height:i,x:l,y:c}}function S0(a,t){var o=t.getRootNode&&t.getRootNode();if(a.contains(t))return!0;if(o&&Ga(o)){var n=t;do{if(n&&a.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ao(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function N0(a,t){var o=gt(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 Er(a,t,o){return t===kr?ao(B0(a,o)):et(t)?N0(t,o):ao(V0(Ue(a)))}function x0(a){var t=Ht(_a(a)),o=["absolute","fixed"].indexOf(xe(a).position)>=0,n=o&&ge(a)?va(a):a;return et(n)?t.filter(function(r){return et(r)&&S0(r,n)&&ke(r)!=="body"}):[]}function M0(a,t,o,n){var r=t==="clippingParents"?x0(a):[].concat(t),s=[].concat(r,[o]),i=s[0],l=s.reduce(function(c,p){var d=Er(a,p,n);return c.top=tt(d.top,c.top),c.right=ga(d.right,c.right),c.bottom=ga(d.bottom,c.bottom),c.left=tt(d.left,c.left),c},Er(a,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ze(a){return a.split("-")[0]}function vt(a){return a.split("-")[1]}function Br(a){return["top","bottom"].indexOf(a)>=0?"x":"y"}function Vr(a){var t=a.reference,o=a.element,n=a.placement,r=n?Ze(n):null,s=n?vt(n):null,i=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(r){case be:c={x:i,y:t.y-o.height};break;case $e:c={x:i,y:t.y+t.height};break;case Fe:c={x:t.x+t.width,y:l};break;case Me:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var p=r?Br(r):null;if(p!=null){var d=p==="y"?"height":"width";switch(s){case _t:c[p]=c[p]-(t[d]/2-o[d]/2);break;case Rt:c[p]=c[p]+(t[d]/2-o[d]/2);break}}return c}function Sr(){return{top:0,right:0,bottom:0,left:0}}function T0(a){return Object.assign({},Sr(),a)}function A0(a,t){return t.reduce(function(o,n){return o[n]=a,o},{})}function oo(a,t){t===void 0&&(t={});var o=t,n=o.placement,r=n===void 0?a.placement:n,s=o.strategy,i=s===void 0?a.strategy:s,l=o.boundary,c=l===void 0?c0:l,p=o.rootBoundary,d=p===void 0?kr:p,u=o.elementContext,m=u===void 0?Ut:u,g=o.altBoundary,f=g===void 0?!1:g,C=o.padding,h=C===void 0?0:C,y=T0(typeof h!="number"?h:A0(h,ba)),v=m===Ut?d0:Ut,_=a.rects.popper,b=a.elements[f?v:m],B=M0(et(b)?b:b.contextElement||Ue(a.elements.popper),c,d,i),E=gt(a.elements.reference),N=Vr({reference:E,element:_,strategy:"absolute",placement:r}),I=ao(Object.assign({},_,N)),z=m===Ut?I:E,R={top:B.top-z.top+y.top,bottom:z.bottom-B.bottom+y.bottom,left:B.left-z.left+y.left,right:z.right-B.right+y.right},F=a.modifiersData.offset;if(m===Ut&&F){var A=F[r];Object.keys(R).forEach(function(H){var K=[Fe,$e].indexOf(H)>=0?1:-1,W=[be,$e].indexOf(H)>=0?"y":"x";R[H]+=A[W]*K})}return R}var Nr={placement:"bottom",modifiers:[],strategy:"absolute"};function xr(){for(var a=arguments.length,t=new Array(a),o=0;o<a;o++)t[o]=arguments[o];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function O0(a){a===void 0&&(a={});var t=a,o=t.defaultModifiers,n=o===void 0?[]:o,r=t.defaultOptions,s=r===void 0?Nr:r;return function(l,c,p){p===void 0&&(p=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nr,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},u=[],m=!1,g={state:d,setOptions:function(y){var v=typeof y=="function"?y(d.options):y;C(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:et(l)?Ht(l):l.contextElement?Ht(l.contextElement):[],popper:Ht(c)};var _=k0(E0([].concat(n,d.options.modifiers)));return d.orderedModifiers=_.filter(function(b){return b.enabled}),f(),g.update()},forceUpdate:function(){if(!m){var y=d.elements,v=y.reference,_=y.popper;if(xr(v,_)){d.rects={reference:i0(v,va(_),d.options.strategy==="fixed"),popper:Cr(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(R){return d.modifiersData[R.name]=Object.assign({},R.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var B=d.orderedModifiers[b],E=B.fn,N=B.options,I=N===void 0?{}:N,z=B.name;typeof E=="function"&&(d=E({state:d,options:I,name:z,instance:g})||d)}}}},update:$0(function(){return new Promise(function(h){g.forceUpdate(),h(d)})}),destroy:function(){C(),m=!0}};if(!xr(l,c))return g;g.setOptions(p).then(function(h){!m&&p.onFirstUpdate&&p.onFirstUpdate(h)});function f(){d.orderedModifiers.forEach(function(h){var y=h.name,v=h.options,_=v===void 0?{}:v,b=h.effect;if(typeof b=="function"){var B=b({state:d,name:y,instance:g,options:_}),E=function(){};u.push(B||E)}})}function C(){u.forEach(function(h){return h()}),u=[]}return g}}var Ca={passive:!0};function I0(a){var t=a.state,o=a.instance,n=a.options,r=n.scroll,s=r===void 0?!0:r,i=n.resize,l=i===void 0?!0:i,c=de(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(d){d.addEventListener("scroll",o.update,Ca)}),l&&c.addEventListener("resize",o.update,Ca),function(){s&&p.forEach(function(d){d.removeEventListener("scroll",o.update,Ca)}),l&&c.removeEventListener("resize",o.update,Ca)}}var L0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I0,data:{}};function D0(a){var t=a.state,o=a.name;t.modifiersData[o]=Vr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var j0={name:"popperOffsets",enabled:!0,phase:"read",fn:D0,data:{}},P0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function z0(a,t){var o=a.x,n=a.y,r=t.devicePixelRatio||1;return{x:ht(o*r)/r||0,y:ht(n*r)/r||0}}function Mr(a){var t,o=a.popper,n=a.popperRect,r=a.placement,s=a.variation,i=a.offsets,l=a.position,c=a.gpuAcceleration,p=a.adaptive,d=a.roundOffsets,u=a.isFixed,m=i.x,g=m===void 0?0:m,f=i.y,C=f===void 0?0:f,h=typeof d=="function"?d({x:g,y:C}):{x:g,y:C};g=h.x,C=h.y;var y=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),_=Me,b=be,B=window;if(p){var E=va(o),N="clientHeight",I="clientWidth";if(E===de(o)&&(E=Ue(o),xe(E).position!=="static"&&l==="absolute"&&(N="scrollHeight",I="scrollWidth")),E=E,r===be||(r===Me||r===Fe)&&s===Rt){b=$e;var z=u&&E===B&&B.visualViewport?B.visualViewport.height:E[N];C-=z-n.height,C*=c?1:-1}if(r===Me||(r===be||r===$e)&&s===Rt){_=Fe;var R=u&&E===B&&B.visualViewport?B.visualViewport.width:E[I];g-=R-n.width,g*=c?1:-1}}var F=Object.assign({position:l},p&&P0),A=d===!0?z0({x:g,y:C},de(o)):{x:g,y:C};if(g=A.x,C=A.y,c){var H;return Object.assign({},F,(H={},H[b]=v?"0":"",H[_]=y?"0":"",H.transform=(B.devicePixelRatio||1)<=1?"translate("+g+"px, "+C+"px)":"translate3d("+g+"px, "+C+"px, 0)",H))}return Object.assign({},F,(t={},t[b]=v?C+"px":"",t[_]=y?g+"px":"",t.transform="",t))}function H0(a){var t=a.state,o=a.options,n=o.gpuAcceleration,r=n===void 0?!0:n,s=o.adaptive,i=s===void 0?!0:s,l=o.roundOffsets,c=l===void 0?!0:l,p={placement:Ze(t.placement),variation:vt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mr(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mr(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var R0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:H0,data:{}};function U0(a){var t=a.state;Object.keys(t.elements).forEach(function(o){var n=t.styles[o]||{},r=t.attributes[o]||{},s=t.elements[o];!ge(s)||!ke(s)||(Object.assign(s.style,n),Object.keys(r).forEach(function(i){var l=r[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function F0(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(n){var r=t.elements[n],s=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:o[n]),l=i.reduce(function(c,p){return c[p]="",c},{});!ge(r)||!ke(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Z0={name:"applyStyles",enabled:!0,phase:"write",fn:U0,effect:F0,requires:["computeStyles"]},W0=[L0,j0,R0,Z0],q0=O0({defaultModifiers:W0});function Y0(a){return a==="x"?"y":"x"}function ya(a,t,o){return tt(a,ga(t,o))}function K0(a,t,o){var n=ya(a,t,o);return n>o?o:n}function G0(a){var t=a.state,o=a.options,n=a.name,r=o.mainAxis,s=r===void 0?!0:r,i=o.altAxis,l=i===void 0?!1:i,c=o.boundary,p=o.rootBoundary,d=o.altBoundary,u=o.padding,m=o.tether,g=m===void 0?!0:m,f=o.tetherOffset,C=f===void 0?0:f,h=oo(t,{boundary:c,rootBoundary:p,padding:u,altBoundary:d}),y=Ze(t.placement),v=vt(t.placement),_=!v,b=Br(y),B=Y0(b),E=t.modifiersData.popperOffsets,N=t.rects.reference,I=t.rects.popper,z=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,R=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(E){if(s){var H,K=b==="y"?be:Me,W=b==="y"?$e:Fe,U=b==="y"?"height":"width",S=E[b],$=S+h[K],L=S-h[W],V=g?-I[U]/2:0,D=v===_t?N[U]:I[U],q=v===_t?-I[U]:-N[U],w=t.elements.arrow,x=g&&w?Cr(w):{width:0,height:0},O=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Sr(),M=O[K],P=O[W],Z=ya(0,N[U],x[U]),le=_?N[U]/2-V-Z-M-R.mainAxis:D-Z-M-R.mainAxis,nt=_?-N[U]/2+V+Z+P+R.mainAxis:q+Z+P+R.mainAxis,Wt=t.elements.arrow&&va(t.elements.arrow),qe=Wt?b==="y"?Wt.clientTop||0:Wt.clientLeft||0:0,Va=(H=F==null?void 0:F[b])!=null?H:0,vo=S+le-Va-qe,Ye=S+nt-Va,Sa=ya(g?ga($,vo):$,S,g?tt(L,Ye):L);E[b]=Sa,A[b]=Sa-S}if(l){var Ke,Ee=b==="x"?be:Me,_e=b==="x"?$e:Fe,Ce=E[B],Oe=B==="y"?"height":"width",qt=Ce+h[Ee],Na=Ce-h[_e],ve=[be,Me].indexOf(y)!==-1,Yt=(Ke=F==null?void 0:F[B])!=null?Ke:0,Ge=ve?qt:Ce-N[Oe]-I[Oe]-Yt+R.altAxis,it=ve?Ce+N[Oe]+I[Oe]-Yt-R.altAxis:Na,xa=g&&ve?K0(Ge,Ce,it):ya(g?Ge:qt,Ce,g?it:Na);E[B]=xa,A[B]=xa-Ce}t.modifiersData[n]=A}}var X0={name:"preventOverflow",enabled:!0,phase:"main",fn:G0,requiresIfExists:["offset"]},Q0={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(a){return a.replace(/left|right|bottom|top/g,function(t){return Q0[t]})}var J0={start:"end",end:"start"};function Tr(a){return a.replace(/start|end/g,function(t){return J0[t]})}function em(a,t){t===void 0&&(t={});var o=t,n=o.placement,r=o.boundary,s=o.rootBoundary,i=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,p=c===void 0?p0:c,d=vt(n),u=d?l?$r:$r.filter(function(f){return vt(f)===d}):ba,m=u.filter(function(f){return p.indexOf(f)>=0});m.length===0&&(m=u);var g=m.reduce(function(f,C){return f[C]=oo(a,{placement:C,boundary:r,rootBoundary:s,padding:i})[Ze(C)],f},{});return Object.keys(g).sort(function(f,C){return g[f]-g[C]})}function tm(a){if(Ze(a)===to)return[];var t=wa(a);return[Tr(a),t,Tr(t)]}function am(a){var t=a.state,o=a.options,n=a.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,s=r===void 0?!0:r,i=o.altAxis,l=i===void 0?!0:i,c=o.fallbackPlacements,p=o.padding,d=o.boundary,u=o.rootBoundary,m=o.altBoundary,g=o.flipVariations,f=g===void 0?!0:g,C=o.allowedAutoPlacements,h=t.options.placement,y=Ze(h),v=y===h,_=c||(v||!f?[wa(h)]:tm(h)),b=[h].concat(_).reduce(function(x,O){return x.concat(Ze(O)===to?em(t,{placement:O,boundary:d,rootBoundary:u,padding:p,flipVariations:f,allowedAutoPlacements:C}):O)},[]),B=t.rects.reference,E=t.rects.popper,N=new Map,I=!0,z=b[0],R=0;R<b.length;R++){var F=b[R],A=Ze(F),H=vt(F)===_t,K=[be,$e].indexOf(A)>=0,W=K?"width":"height",U=oo(t,{placement:F,boundary:d,rootBoundary:u,altBoundary:m,padding:p}),S=K?H?Fe:Me:H?$e:be;B[W]>E[W]&&(S=wa(S));var $=wa(S),L=[];if(s&&L.push(U[A]<=0),l&&L.push(U[S]<=0,U[$]<=0),L.every(function(x){return x})){z=F,I=!1;break}N.set(F,L)}if(I)for(var V=f?3:1,D=function(O){var M=b.find(function(P){var Z=N.get(P);if(Z)return Z.slice(0,O).every(function(le){return le})});if(M)return z=M,"break"},q=V;q>0;q--){var w=D(q);if(w==="break")break}t.placement!==z&&(t.modifiersData[n]._skip=!0,t.placement=z,t.reset=!0)}}var om={name:"flip",enabled:!0,phase:"main",fn:am,requiresIfExists:["offset"],data:{_skip:!1}};function rm(a,t,o){const{disabled:n,appendTo:r,appendToBody:s,openDirection:i}=e.toRefs(a),l=e.getCurrentInstance().proxy,c=o.multiselect,p=o.dropdown,d=e.ref(!1),u=e.ref(null),m=e.ref(null),g=e.computed(()=>r.value||s.value),f=e.computed(()=>i.value==="top"&&m.value==="bottom"||i.value==="bottom"&&m.value!=="top"?"bottom":"top"),C=()=>{d.value||n.value||(d.value=!0,t.emit("open",l),g.value&&e.nextTick(()=>{y()}))},h=()=>{d.value&&(d.value=!1,t.emit("close",l))},y=()=>{if(!u.value)return;let _=parseInt(window.getComputedStyle(p.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(p.value).borderBottomWidth.replace("px",""));u.value.setOptions(B=>({...B,modifiers:[...B.modifiers,{name:"offset",options:{offset:[0,(f.value==="top"?_:b)*-1]}}]})),u.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return e.onMounted(()=>{g.value&&(u.value=q0(c.value,p.value,{strategy:v(c.value)?"fixed":void 0,placement:i.value,modifiers:[X0,om,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){m.value=_.placement}}]}))}),e.onBeforeUnmount(()=>{!g.value||!u.value||(u.value.destroy(),u.value=null)}),{popper:u,isOpen:d,open:C,close:h,placement:f,updatePopper:y}}function nm(a,t,o){const{searchable:n,disabled:r,clearOnBlur:s}=e.toRefs(a),i=o.input,l=o.open,c=o.close,p=o.clearSearch,d=o.isOpen,u=o.wrapper,m=o.tags,g=e.ref(!1),f=e.ref(!1),C=e.computed(()=>n.value||r.value?-1:0),h=()=>{n.value&&i.value.blur(),u.value.blur()},y=()=>{n.value&&!r.value&&i.value.focus()},v=(I=!0)=>{r.value||(g.value=!0,I&&l())},_=()=>{g.value=!1,setTimeout(()=>{g.value||(c(),s.value&&p())},1)};return{tabindex:C,isActive:g,mouseClicked:f,blur:h,focus:y,activate:v,deactivate:_,handleFocusIn:I=>{I.target.closest("[data-tags]")&&I.target.nodeName!=="INPUT"||I.target.closest("[data-clear]")||v(f.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),h()},handleMousedown:I=>{f.value=!0,d.value&&(I.target.isEqualNode(u.value)||I.target.isEqualNode(m.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(u.value)||document.activeElement.isEqualNode(i.value))&&v(),setTimeout(()=>{f.value=!1},0)}}}function im(a,t,o){const{mode:n,addTagOn:r,openDirection:s,searchable:i,showOptions:l,valueProp:c,groups:p,addOptionOn:d,createTag:u,createOption:m,reverse:g}=e.toRefs(a),f=e.getCurrentInstance().proxy,C=o.iv,h=o.update,y=o.deselect,v=o.search,_=o.setPointer,b=o.selectPointer,B=o.backwardPointer,E=o.forwardPointer,N=o.multiselect,I=o.wrapper,z=o.tags,R=o.isOpen,F=o.open,A=o.blur,H=o.fo,K=e.computed(()=>u.value||m.value||!1),W=e.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),U=()=>{n.value==="tags"&&!l.value&&K.value&&i.value&&!p.value&&_(H.value[H.value.map(L=>L[c.value]).indexOf(v.value)])};return{handleKeydown:L=>{t.emit("keydown",L,f);let V,D;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(L.key)!==-1&&n.value==="tags"&&(V=[...N.value.querySelectorAll("[data-tags] > *")].filter(q=>q!==z.value),D=V.findIndex(q=>q===document.activeElement)),L.key){case"Backspace":if(n.value==="single"||i.value&&[null,""].indexOf(v.value)===-1||C.value.length===0)return;let q=C.value.filter(w=>!w.disabled&&w.remove!==!1);q.length&&y(q[q.length-1]);break;case"Enter":if(L.preventDefault(),L.keyCode===229)return;if(D!==-1&&D!==void 0){h([...C.value].filter((w,x)=>x!==D)),D===V.length-1&&(V.length-1?V[V.length-2].focus():i.value?z.value.querySelector("input").focus():I.value.focus());return}if(W.value.indexOf("enter")===-1&&K.value)return;U(),b();break;case" ":if(!K.value&&!i.value){L.preventDefault(),U(),b();return}if(!K.value)return!1;if(W.value.indexOf("space")===-1&&K.value)return;L.preventDefault(),U(),b();break;case"Tab":case";":case",":if(W.value.indexOf(L.key.toLowerCase())===-1||!K.value)return;U(),b(),L.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(L.preventDefault(),!l.value)return;R.value||F(),B();break;case"ArrowDown":if(L.preventDefault(),!l.value)return;R.value||F(),E();break;case"ArrowLeft":if(i.value&&z.value&&z.value.querySelector("input").selectionStart||L.shiftKey||n.value!=="tags"||!C.value||!C.value.length)return;L.preventDefault(),D===-1?V[V.length-1].focus():D>0&&V[D-1].focus();break;case"ArrowRight":if(D===-1||L.shiftKey||n.value!=="tags"||!C.value||!C.value.length)return;L.preventDefault(),V.length>D+1?V[D+1].focus():i.value?z.value.querySelector("input").focus():i.value||I.value.focus();break}},handleKeyup:L=>{t.emit("keyup",L,f)},preparePointer:U}}function sm(a,t,o){const{classes:n,disabled:r,showOptions:s,breakTags:i}=e.toRefs(a),l=o.isOpen,c=o.isPointed,p=o.isSelected,d=o.isDisabled,u=o.isActive,m=o.canPointGroups,g=o.resolving,f=o.fo,C=o.placement,h=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",...n.value})),y=e.computed(()=>!!(l.value&&s.value&&(!g.value||g.value&&f.value.length)));return{classList:e.computed(()=>{const _=h.value;return{container:[_.container].concat(r.value?_.containerDisabled:[]).concat(y.value&&C.value==="top"?_.containerOpenTop:[]).concat(y.value&&C.value!=="top"?_.containerOpen:[]).concat(u.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(r.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,i.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(C.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!y.value?_.dropdownHidden:[]),options:[_.options].concat(C.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let B=[_.groupLabel];return c(b)?B.push(p(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):p(b)&&m.value?B.push(d(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(b)&&B.push(_.groupLabelDisabled),m.value&&B.push(_.groupLabelPointable),B},groupOptions:_.groupOptions,option:(b,B)=>{let E=[_.option];return c(b)?E.push(p(b)?_.optionSelectedPointed:_.optionPointed):p(b)?E.push(d(b)?_.optionSelectedDisabled:_.optionSelected):(d(b)||B&&d(B))&&E.push(_.optionDisabled),E},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:y}}function lm(a,t,o){const{limit:n,infinite:r}=e.toRefs(a),s=o.isOpen,i=o.offset,l=o.search,c=o.pfo,p=o.eo,d=e.ref(null),u=e.ref(null),m=e.computed(()=>i.value<c.value.length),g=C=>{const{isIntersecting:h,target:y}=C[0];if(h){const v=y.offsetParent,_=v.scrollTop;i.value+=n.value==-1?10:n.value,e.nextTick(()=>{v.scrollTop=_})}},f=()=>{s.value&&i.value<c.value.length?d.value.observe(u.value):!s.value&&d.value&&d.value.disconnect()};return e.watch(s,()=>{r.value&&f()}),e.watch(l,()=>{r.value&&(i.value=n.value,f())},{flush:"post"}),e.watch(p,()=>{r.value&&f()},{immediate:!1,flush:"post"}),e.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(g))}),{hasMore:m,infiniteLoader:u}}function cm(a,t,o){const{placeholder:n,id:r,valueProp:s,label:i,mode:l,groupLabel:c,aria:p,searchable:d}=e.toRefs(a),u=o.pointer,m=o.iv,g=o.hasSelected,f=o.multipleLabelText,C=e.ref(null),h=e.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("assist"),A.join("-")}),y=e.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("multiselect-options"),A.join("-")}),v=e.computed(()=>{let A=[];if(r&&r.value&&A.push(r.value),u.value)return A.push(u.value.group?"multiselect-group":"multiselect-option"),A.push(u.value.group?u.value.index:u.value[s.value]),A.join("-")}),_=e.computed(()=>n.value),b=e.computed(()=>l.value!=="single"),B=e.computed(()=>{let A="";return l.value==="single"&&g.value&&(A+=m.value[i.value]),l.value==="multiple"&&g.value&&(A+=f.value),l.value==="tags"&&g.value&&(A+=m.value.map(H=>H[i.value]).join(", ")),A}),E=e.computed(()=>{let A={...p.value};return d.value&&(A["aria-labelledby"]=A["aria-labelledby"]?`${h.value} ${A["aria-labelledby"]}`:h.value,B.value&&A["aria-label"]&&(A["aria-label"]=`${B.value}, ${A["aria-label"]}`)),A}),N=A=>{let H=[];return r&&r.value&&H.push(r.value),H.push("multiselect-option"),H.push(A[s.value]),H.join("-")},I=A=>{let H=[];return r&&r.value&&H.push(r.value),H.push("multiselect-group"),H.push(A.index),H.join("-")},z=A=>{let H=[];return H.push(A),H.join(" ")},R=A=>{let H=[];return H.push(A),H.join(" ")},F=A=>`${A} ❎`;return e.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let A=document.querySelector(`[for="${r.value}"]`);C.value=A?A.innerText:null}}),{arias:E,ariaLabel:B,ariaAssist:h,ariaControls:y,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:v,ariaOptionId:N,ariaOptionLabel:z,ariaGroupId:I,ariaGroupLabel:R,ariaTagLabel:F}}function dm(a,t,o){const{locale:n,fallbackLocale:r}=e.toRefs(a);return{localize:i=>!i||typeof i!="object"?i:i&&i[n.value]?i[n.value]:i&&n.value&&i[n.value.toUpperCase()]?i[n.value.toUpperCase()]:i&&i[r.value]?i[r.value]:i&&r.value&&i[r.value.toUpperCase()]?i[r.value.toUpperCase()]:i&&Object.keys(i)[0]?i[Object.keys(i)[0]]:""}}function pm(a,t,o){const n=e.ref(null),r=e.ref(null),s=e.ref(null),i=e.ref(null),l=e.ref(null);return{multiselect:n,wrapper:r,tags:s,input:i,dropdown:l}}function um(a,t,o,n={}){return o.forEach(r=>{r&&(n={...n,...r(a,t,n)})}),n}var We={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 um(a,t,[pm,dm,G2,Q2,rm,X2,K2,nm,t0,lm,a0,im,sm,cm])},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 mm=["id","dir"],fm=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],hm=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],gm=["onKeyup","aria-label"],_m=["onClick"],vm=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],bm=["innerHTML"],Cm=["id"],ym=["id"],wm=["id","aria-label","aria-selected"],km=["data-pointed","onMouseenter","onMousedown"],$m=["innerHTML"],Em=["aria-label"],Bm=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Vm=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Sm=["innerHTML"],Nm=["innerHTML"],xm=["value"],Mm=["name","value"],Tm=["name","value"],Am=["id"];function Om(a,t,o,n,r,s){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,hm)):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(p=>a.handleTagRemove(i,p),["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(p=>a.handleTagRemove(i,p),["stop"])},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagRemoveIcon)},null,2)],10,_m)):e.createCommentVNode("v-if",!0)],42,gm))])),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,vm)):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,bm)]):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,fm),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:p=>a.setPointer(i,l),onMousedown:e.withModifiers(p=>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,$m)])],42,km)),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__,(p,d,u)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.option(p,i)),"data-pointed":a.isPointed(p),"data-selected":a.isSelected(p)||void 0,key:u,onMouseenter:m=>a.setPointer(p),onMousedown:e.withModifiers(m=>a.handleOptionClick(p),["prevent"]),id:a.ariaOptionId(p),"aria-selected":a.isSelected(p),"aria-label":a.ariaOptionLabel(a.localize(p[o.label])),role:"option"},[e.renderSlot(a.$slots,"option",{option:p,isSelected:a.isSelected,isPointed:a.isPointed,search:a.search},()=>[e.createElementVNode("span",null,e.toDisplayString(a.localize(p[o.label])),1)])],42,Bm))),128))],10,Em)],10,wm))),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:p=>a.setPointer(i),onMousedown:e.withModifiers(p=>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,Vm))),128))],10,ym),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,Sm)]):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,Nm)]):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,Cm)],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,xm)):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,Mm)):(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,Tm))),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,Am)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Create height for empty input "),e.createElementVNode("div",{class:e.normalizeClass(a.classList.spacer)},null,2)],42,mm)}We.render=Om,We.__file="src/Multiselect.vue";const pe=e.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(a){const t=a,o=e.toRef(()=>t.appendTo),n=e.ref();return t.detached&&Y2({multiselect:n,appendTo:o.value}),(r,s)=>(e.openBlock(),e.createBlock(e.unref(We),{ref_key:"multiselectRef",ref:n,class:"ao-multiselect"},e.createSlots({_:2},[e.renderList(r.$slots,(i,l)=>({name:l,fn:e.withCtx(c=>[e.renderSlot(r.$slots,l,e.normalizeProps(e.guardReactiveProps(c??{})))])}))]),1536))}});var Ar;function Te(){const a=Im(),t=a.appContext.config.globalProperties;return{i18next:t.$i18next,t:t.$t.bind(a.proxy)}}function Im(){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,n=[];let r,s=0;for(;(r=Ar.exec(o))!==null;){n.push(o.substring(s,r.index));const i=t[r[1]];i?n.push(...i()):n.push(r[0]),s=Ar.lastIndex}return n.push(o.substring(s)),n}}});async function Ae(a,t){if(t&&a&&a.length-t.length===1){const o=new Set(t.map(l=>l.id)),n=a.filter(l=>!o.has(l.id));if(n.length!==1)return;const r=n[0].id;await e.nextTick();const s=document.getElementById(r);s==null||s.focus(),await e.nextTick();const i=document.getElementById(r);i==null||i.select()}}const Lm={class:"ao-tasks"},Dm={class:"ao-tasks__list"},jm=["id","value","readonly","onChange","onKeyup"],Pm={class:"ao-tasks__list-footer"},zm=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:n}=Te();e.watch(()=>o.tasks,(u,m)=>{Ae(u,m)});const r=e.computed(()=>{var u;return((u=o.users)==null?void 0:u.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),s=()=>{const u=o.tasks.length,m={name:n("task.defaultName",{idx:u+1}),activityId:o.activityId};t("add",m)},i=(u,m)=>{const f=u.target.value;t("update",{id:m,name:f})},l=(u,m)=>{o.isEditable&&t("update",{id:u,isDone:m})},c=u=>{t("delete",{id:u})},p=(u,m)=>{t("update",{id:m,assigneeId:u[0]??null})},d=u=>{const m=u.target;m==null||m.blur()};return(u,m)=>(e.openBlock(),e.createElementBlock("div",Lm,[e.createElementVNode("ul",Dm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.tasks,g=>{var f,C;return e.openBlock(),e.createElementBlock("li",{key:g.id,class:"ao-subtask"},[((f=u.isCheckable)==null?void 0:f.call(u,g))??!1?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-subtask__check","icon-name":g.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!u.isEditable,variant:"ghost",color:"primary",onClick:()=>l(g.id,!g.isDone)},null,8,["icon-name","disabled","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("input",{id:g.id,value:g.name,readonly:!u.isEditable,class:e.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":g.isDone}]),type:"text",onChange:h=>i(h,g.id),onKeyup:e.withKeys(d,["enter"])},null,42,jm),e.createTextVNode(". "),!u.isTemplate&&u.users?(e.openBlock(),e.createBlock(pe,{key:1,value:(C=g.assignee)!=null&&C.id?[g.assignee.id]:[],options:r.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:u.$t("feed.filters.assignee.placeholder"),disabled:!u.isEditable,caret:u.isEditable,onChange:h=>p(h,g.id)},{tag:e.withCtx(({option:h,handleTagRemove:y})=>[e.createVNode(Ve,{"user-name":h.label,"avatar-url":h.avatar,"is-closable":!0,onClose:v=>y(h,v)},null,8,["user-name","avatar-url","onClose"])]),_:2},1032,["value","options","placeholder","disabled","caret","onChange"])):e.createCommentVNode("",!0),u.isEditable?(e.openBlock(),e.createBlock(G,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>c(g.id)},null,8,["onClick"])):e.createCommentVNode("",!0)])}),128))]),e.createElementVNode("div",Pm,[u.isEditable?(e.openBlock(),e.createBlock(G,{key:0,label:u.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:s},null,8,["label"])):e.createCommentVNode("",!0)])]))}}),P9="",Hm=["onDrop","onDragenter","onDragover","onDragleave"],Rm={class:"ao-files__placeholder"},Um={key:0,class:"ao-files__list"},Fm=["href"],Zm={class:"ao-file__title"},Wm={key:0},qm={class:"ao-files__input"},Ym={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},Km={class:"ao-button__label"},Gm={class:"ao-files__dropzone"},Xm={class:"ao-files__dropzone-label"},Qm=e.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(a,{emit:t}){const o=a,n=d=>{t("remove",d)},r=d=>{const u=d.target,m=Array.from(u.files??[]);t("add",m)},s=["dragenter","dragover","dragleave","drop"];e.onMounted(()=>{s.forEach(d=>{document.body.addEventListener(d,u=>u.preventDefault())})}),e.onUnmounted(()=>{s.forEach(d=>{document.body.removeEventListener(d,u=>u.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 p(d){var m;c();const u=Array.from(((m=d.dataTransfer)==null?void 0:m.files)||[]);d.dataTransfer&&t("add",u)}return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:e.withModifiers(p,["prevent"]),onDragenter:e.withModifiers(l,["prevent"]),onDragover:e.withModifiers(l,["prevent"]),onDragleave:e.withModifiers(c,["prevent"])},[e.renderSlot(d.$slots,"default",{},()=>[e.createElementVNode("span",Rm,e.toDisplayString(d.$t("activity.attachment.placeholder.resting")),1)]),d.attachments?(e.openBlock(),e.createElementBlock("ul",Um,[(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(ee,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),e.createElementVNode("span",Zm,e.toDisplayString(m.name),1)],8,Fm),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:()=>n(m)},null,8,["onClick"])):e.createCommentVNode("",!0)]))),128)),d.isEditable?(e.openBlock(),e.createElementBlock("li",Wm,[e.createElementVNode("label",qm,[e.createElementVNode("div",Ym,[e.createVNode(ee,{name:"Add",size:"sm"}),e.createElementVNode("span",Km,e.toDisplayString(d.$t("activity.attachment.button.resting")),1)]),e.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:r},null,32)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",Gm,[e.createElementVNode("span",Xm,e.toDisplayString(d.$t("activity.attachment.placeholder.active")),1)],512),[[e.vShow,i.value]])],42,Hm))}}),z9="",Jm={class:"ao-comment"},e3={class:"ao-comment__created-at"},t3={class:"ao-comment__body"},a3={class:"ao-comment__content-wrapper"},o3={key:0,class:"ao-comment__content"},r3=["rows"],n3=["onClick"],i3={key:1,class:"ao-comment__footer"},s3=e.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(a,{emit:t}){const o=a,n=e.computed(()=>{const B=o.user;return B?`${B==null?void 0:B.firstName} ${B==null?void 0:B.lastName}`:null}),r=e.ref(null),s=e.ref(o.content),{isEditing:i,toggleIsEditing:l,onUpdate:c,onDiscard:p}=So(r),d=e.computed(()=>{const B=o.editedAt&&Nt(o.editedAt),E=Nt(o.createdAt),N=new Date,I=B??E;return I&&Yp(I,N)});e.computed(()=>i.value?"textarea":"p");const u=p(),m=c(B=>{t("edit",B)}),g=()=>{t("remove")},f=e.ref(2);e.onUpdated(()=>{e.nextTick(()=>{var B;if(!i.value){const E=(B=r.value)==null?void 0:B.getClientRects().length;f.value=E||2}})});const{showMentionList:C,mentionListPosition:h,filteredUsers:y,handleInput:v,handleKeydown:_,selectUserMention:b}=rr(r,s,e.toRef(o,"mentionableUsers"));return(B,E)=>{var N;return e.openBlock(),e.createElementBlock("li",Jm,[n.value?(e.openBlock(),e.createBlock(Ve,{key:0,"avatar-url":(N=B.user)==null?void 0:N.avatarUrl,"user-name":n.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):e.createCommentVNode("",!0),e.createElementVNode("span",e3,e.toDisplayString(d.value),1),e.createElementVNode("div",t3,[e.createElementVNode("div",a3,[e.unref(i)?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"commentContent",ref:r,class:"ao-comment__content","onUpdate:modelValue":E[0]||(E[0]=I=>s.value=I),rows:f.value,onInput:E[1]||(E[1]=(...I)=>e.unref(v)&&e.unref(v)(...I)),onKeydown:E[2]||(E[2]=(...I)=>e.unref(_)&&e.unref(_)(...I)),onKeyup:[E[3]||(E[3]=e.withKeys((...I)=>e.unref(u)&&e.unref(u)(...I),["esc"])),E[4]||(E[4]=e.withKeys(e.withModifiers((...I)=>e.unref(m)&&e.unref(m)(...I),["ctrl"]),["enter"]))]},null,40,r3)),[[e.vModelText,s.value]]):(e.openBlock(),e.createElementBlock("p",o3,e.toDisplayString(B.content),1)),e.unref(C)&&e.unref(y).length>0?(e.openBlock(),e.createElementBlock("ul",{key:2,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(y),I=>(e.openBlock(),e.createElementBlock("li",{key:I.id,onClick:z=>e.unref(b)(I.name)}," @"+e.toDisplayString(I.name),9,n3))),128))],4)):e.createCommentVNode("",!0)])]),B.isEditable?(e.openBlock(),e.createElementBlock("div",i3,[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(u)},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:g},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)])}}}),H9="",l3={class:"ao-comments__header"},c3=["onSubmit"],d3=["placeholder"],p3={class:"ao-comments__form-submit"},u3={key:0,class:"ao-comments__list"},m3=["onClick"],f3=e.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(a,{emit:t}){const o=a,n=e.computed(()=>(o.comments||[]).toSorted((b,B)=>Pd(Nt(b.createdAt),Nt(B.createdAt)))),r=_=>o.users.find(B=>B.id===_),s=e.ref();e.nextTick(()=>{s.value&&(s.value.scrollTop=s.value.scrollHeight)});const i=e.toRef(o.newComment),l=e.computed({get(){return i.value},set(_){i.value=_}}),c=()=>{const _=i.value.trim();_&&(t("createComment",{authorId:o.userId,message:_,mentionedUserIds:v(_)}),i.value="")},p=(_,b)=>{t("updateComment",{id:_,message:b,mentionedUserIds:v(b)})},d=_=>{t("removeComment",{id:_})},u=e.ref(),{showMentionList:m,mentionListPosition:g,filteredUsers:f,handleInput:C,handleKeydown:h,selectUserMention:y,getMentionedUserIds:v}=rr(u,l,e.toRef(o,"users"));return(_,b)=>{var B;return e.openBlock(),e.createElementBlock("div",{ref_key:"commentsContainer",ref:s,class:"ao-comments"},[e.createElementVNode("div",l3,[e.createElementVNode("form",{class:"ao-comments__form",onSubmit:e.withModifiers(c,["prevent"])},[e.withDirectives(e.createElementVNode("textarea",{ref_key:"textareaRef",ref:u,"onUpdate:modelValue":b[0]||(b[0]=E=>l.value=E),rows:"2",class:"ao-field__textarea ao-comments__form-textarea",placeholder:_.$t("activity.comment.label"),onInput:b[1]||(b[1]=(...E)=>e.unref(C)&&e.unref(C)(...E)),onKeydown:b[2]||(b[2]=(...E)=>e.unref(h)&&e.unref(h)(...E))},null,40,d3),[[e.vModelText,l.value,void 0,{trim:!0}]]),e.createElementVNode("div",p3,[e.createVNode(G,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],40,c3)]),((B=n.value)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("ul",u3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,E=>(e.openBlock(),e.createBlock(s3,{key:E.id,user:r(E.author.id),content:E.message,"created-at":E.createdAt,"edited-at":E.updatedAt,"is-editable":E.author.id===_.userId,"mentionable-users":_.users,class:"ao-comment",onEdit:N=>p(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(g).top+"px",left:e.unref(g).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(y)(E.name)}," @"+e.toDisplayString(E.name),9,m3))),128))],4)):e.createCommentVNode("",!0)],512)}}}),R9="",Or=e.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(a,{emit:t}){const o=a,n=()=>{t("update:modelValue",!o.modelValue)};return(r,s)=>(e.openBlock(),e.createBlock(G,{color:r.modelValue?r.color:e.unref(Ia).NEUTRAL,"icon-position":"start",onClick:s[0]||(s[0]=()=>n())},null,8,["color"]))}}),h3=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)}}}),U9="",g3=["onClick"],_3={class:"tab-button__label"},v3={key:0,class:"tab-button__badge"};function b3(a,t,o,n,r,s){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",_3,e.toDisplayString(i.label),1),i.count!==void 0&&i.count>0?(e.openBlock(),e.createElementBlock("span",v3,e.toDisplayString(i.count),1)):e.createCommentVNode("",!0)],10,g3))),128))],2)}const Ft=j(h3,[["render",b3],["__scopeId","data-v-3e3bce6d"]]),C3={class:"ao-activity-details"},y3={class:"ao-activity-details__main"},w3={class:"ao-activity-details__header"},k3={key:1,class:"ao-activity__category"},$3={class:"ao-feed__activity-details__header"},E3={key:0,class:"ao-field ao-feed__activity-details__project"},B3={class:"ao-field__label"},V3={key:1,class:"ao-field ao-feed__activity-details__project"},S3={class:"ao-field__label"},N3={class:"ao-activity-details__content"},x3={class:"ao-activity-details__tab-content"},M3={class:"ao-fieldset"},T3={class:"ao-field__row"},A3=["readonly"],O3={class:"ao-activity-details__tab-content"},I3={class:"ao-fieldset"},L3={class:"ao-fieldset__body"},D3={class:"ao-activity-details__tab-content"},j3={key:0,class:"ao-fieldset"},P3={class:"ao-activity-details__aside"},z3={class:"ao-activity-details__close-button"},H3={key:0,class:"ao-activity-details__aside-section"},R3={class:"ao-field"},U3={class:"ao-field__label"},F3={class:"ao-activity-details__aside-section"},Z3={class:"ao-field ao-field--multiselect"},W3={class:"assignee-inline"},q3={class:"ao-field__label"},Y3={class:"ao-activity-details__aside-section"},K3={key:0,class:"ao-field__row"},G3={class:"ao-field"},X3={class:"ao-field__label"},Q3=["readonly"],J3={class:"ao-activity-details__aside-section"},ef={class:"ao-field__row"},tf={class:"ao-field ao-field--inline"},af={class:"ao-field__label"},of=["readonly"],rf={class:"ao-field__row"},nf={class:"ao-field ao-field--inline"},sf={class:"ao-field__label"},lf={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},cf={class:"ao-activity-details__aside-section"},df={class:"ao-fieldset ao-activity-details__aside-section"},pf={class:"ao-fieldset__title"},uf={class:"ao-fieldset__body"},mf={class:"ao-field__row"},ff={class:"ao-field ao-field--multiselect"},hf={class:"ao-field__label"},gf={class:"ao-field__row"},_f={class:"ao-field ao-field--multiselect"},vf={class:"ao-field__label"},ro=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:n}=Te(),r=e.ref("description"),s=e.computed(()=>{var w,x;return[{label:n("activity.description.label")||"Description",value:"description"},{label:n("activity.tasks.title")||"Checklist",value:"checklist",count:((w=o.activity.tasks)==null?void 0:w.length)??0},{label:n("activity.comments.title")||"Commentaires",value:"comments",count:((x=o.activity.comments)==null?void 0:x.length)??0}]}),i=e.computed(()=>{var w;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((w=o.activity.assignee)==null?void 0:w.id):!1}),l=w=>{t("update:activity",{id:o.activity.id,name:w})},c=e.computed({get(){return o.activity.description??""},set(w){t("update:activity",{id:o.activity.id,description:w})}}),p=e.computed({get(){return o.activity.estimation??0},set(w){t("update:activity",{id:o.activity.id,estimation:w})}}),d=e.computed({get(){var x;const w=(x=o.timeTrackingData)==null?void 0:x[o.activity.id];return(w==null?void 0:w.timeSpent)??0},set(){}}),u=e.computed(()=>{var x;return((x=o.activity.project)==null?void 0:x.estimationUnit)==="days"?"d":"h"}),m=e.computed(()=>{var x;const w=(x=o.activity.project)==null?void 0:x.estimationUnit;return ia(d.value,w)}),g=e.computed({get(){return o.activity.important??!1},set(w){t("update:activity",{id:o.activity.id,important:w})}});e.computed({get(){return o.activity.private??!1},set(w){t("update:activity",{id:o.activity.id,private:w})}});const f=e.computed({get(){return o.activity.deadline},set(w){t("update:activity",{id:o.activity.id,deadline:w})}});e.computed(()=>{var w;return(w=o.activityTypes)==null?void 0:w.map(x=>({label:x.name,value:x.id}))}),e.computed({get(){var w;return(w=o.activity.type)==null?void 0:w.id},set(w){t("update:activity",{id:o.activity.id,typeId:w})}});const C=e.computed(()=>o.templateActivities.filter(w=>w.id!==o.activity.id).map(w=>({label:w.name,value:w.id}))),h=e.computed({get(){var w;return(w=o.activity.dependingOn)==null?void 0:w.map(x=>x.id)},set(w){w&&t("update:activity",{id:o.activity.id,dependingOn:w})}}),y=e.computed(()=>C.value.map(w=>{var x;return{...w,disabled:(x=o.activity.blocking)==null?void 0:x.some(O=>O.id===w.value)}})),v=e.computed({get(){var w;return(w=o.activity.blocking)==null?void 0:w.map(x=>x.id)},set(w){w&&t("update:activity",{id:o.activity.id,blocking:w})}}),_=e.computed(()=>C.value.map(w=>{var x;return{...w,disabled:(x=o.activity.dependingOn)==null?void 0:x.some(O=>O.id===w.value)}})),b=w=>{t("addSubtask",w)},B=w=>{t("updateSubtask",w)},E=w=>{t("deleteSubtask",w)};function N(){o.userId?R.value=[o.userId]:console.error("Failed assigning to self: userId is missing")}function I(w){R.value=[w]}const z=e.computed(()=>{var x;const w=new Map;return(x=o.users)==null||x.forEach(O=>{w.has(O.id)||w.set(O.id,O)}),Array.from(w.values()).map(O=>({label:`${O.firstName} ${O.lastName}`,value:O.id,avatar:O.avatarUrl}))}),R=e.computed({get(){var w,x;return(w=o.activity.assignee)!=null&&w.id?[(x=o.activity.assignee)==null?void 0:x.id]:[]},set(w){t("update:activity",{id:o.activity.id,assigneeId:w[0]??null})}}),F=w=>{t("addFiles",{activityId:o.activity.id,files:w})},A=w=>{t("removeFile",{activityId:o.activity.id,file:w})},H=e.computed(()=>o.projects.map(w=>({value:w.id,label:w.name}))),K=e.computed(()=>{var x,O,M;const w=(M=(O=(x=o.activity)==null?void 0:x.project)==null?void 0:O.phases)==null?void 0:M.reduce((P,Z)=>[...P,...Z.milestones],[]);return w==null?void 0:w.map(P=>({value:P.id,label:P.name}))}),W=w=>{o.activity&&t("update:activity",{id:o.activity.id,projectId:w})},U=w=>{o.activity&&t("update:activity",{id:o.activity.id,milestoneId:w})},S=e.computed(()=>{var w;return(w=o.statuses)==null?void 0:w.map(x=>({value:x.id,label:x.name}))}),$=w=>{t("update:activity",{id:o.activity.id,statusId:w})},L=w=>{t("addComment",{...w,activityId:o.activity.id})},V=w=>{t("updateComment",w)},D=w=>{t("removeComment",w)};e.computed(()=>{var w,x;return((w=o.activity.createdBy)==null?void 0:w.firstName)&&((x=o.activity.createdBy)==null?void 0:x.lastName)&&`${o.activity.createdBy.firstName} ${o.activity.createdBy.lastName}`});function q(){const w=window.location.origin,x=o.activity.slug,O=`${w}/activity-feed/slug/${x}`;navigator.clipboard.writeText(O).then(()=>{console.log(`Link copied to clipboard: ${O}`),t("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),t("toast","clipboard.copy.error","error")})}return(w,x)=>(e.openBlock(),e.createBlock(la,{onClose:x[9]||(x[9]=O=>w.$emit("close"))},{default:e.withCtx(()=>{var O,M,P;return[e.createElementVNode("div",C3,[e.createElementVNode("div",y3,[e.createElementVNode("div",w3,[w.activity.slug?(e.openBlock(),e.createBlock(kt,{key:0,label:w.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),w.breadcrumbs?(e.openBlock(),e.createElementBlock("div",k3,e.toDisplayString(w.breadcrumbs),1)):e.createCommentVNode("",!0),e.createVNode(ne,{title:w.activity.name||"",level:4,"is-editable":i.value,"onUpdate:title":l},null,8,["title","is-editable"]),e.createElementVNode("div",$3,[H.value?(e.openBlock(),e.createElementBlock("label",E3,[e.createElementVNode("span",B3,e.toDisplayString(w.$t("activity.project.label")),1),e.createVNode(pe,{options:H.value,value:(O=w.activity.project)==null?void 0:O.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",V3,[e.createElementVNode("span",S3,e.toDisplayString(w.$t("activity.milestone.label")),1),e.createVNode(pe,{options:K.value,value:(M=w.activity.milestone)==null?void 0:M.id,searchable:!0,disabled:!i.value,caret:i.value,onChange:U},null,8,["options","value","disabled","caret"])])):e.createCommentVNode("",!0)]),e.renderSlot(w.$slots,"header")]),e.createElementVNode("div",N3,[e.createVNode(Ft,{modelValue:r.value,"onUpdate:modelValue":x[0]||(x[0]=Z=>r.value=Z),tabs:s.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),e.withDirectives(e.createElementVNode("div",x3,[e.createElementVNode("fieldset",M3,[e.createElementVNode("div",T3,[e.createVNode(Qm,{attachments:w.activity.attachments,"is-editable":w.attachmentEnabled&&i.value&&w.isTemplate!==!0&&!!w.userId,onAdd:F,onRemove:A},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":x[1]||(x[1]=Z=>c.value=Z),readonly:!i.value,rows:"6",class:"ao-activity-details__description-textarea"},null,8,A3),[[e.vModelText,c.value,void 0,{lazy:!0,trim:!0}]])]),_:1},8,["attachments","is-editable"])])])],512),[[e.vShow,r.value==="description"]]),e.withDirectives(e.createElementVNode("div",O3,[e.createElementVNode("fieldset",I3,[e.createElementVNode("div",L3,[e.createVNode(zm,{class:"ao-activity-details__tasks ao-field__row",tasks:w.activity.tasks||[],"activity-id":w.activity.id,users:w.users,"is-checkable":w.isTaskCheckable,"is-editable":i.value,"is-template":w.isTemplate,onAdd:b,onUpdate:B,onDelete:E},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[e.vShow,r.value==="checklist"]]),e.withDirectives(e.createElementVNode("div",D3,[w.isTemplate!==!0&&w.userId?(e.openBlock(),e.createElementBlock("div",j3,[e.createVNode(f3,{comments:w.activity.comments,users:w.users,"user-id":w.userId,onCreateComment:L,onUpdateComment:V,onRemoveComment:D},null,8,["comments","users","user-id"])])):e.createCommentVNode("",!0)],512),[[e.vShow,r.value==="comments"]])])]),e.createElementVNode("div",P3,[e.createElementVNode("div",z3,[e.createVNode(ee,{name:"CloseRounded",onClick:x[2]||(x[2]=Z=>w.$emit("close"))})]),S.value?(e.openBlock(),e.createElementBlock("div",H3,[e.createElementVNode("label",R3,[e.createElementVNode("span",U3,e.toDisplayString(w.$t("activity.status.label")),1),e.createVNode(pe,{class:"ao-activity-details__multiselect",options:S.value,value:(P=w.activity.status)==null?void 0:P.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",F3,[e.createElementVNode("div",Z3,[e.createElementVNode("div",W3,[e.createElementVNode("span",q3,e.toDisplayString(w.$t("activity.assignee.label")),1),e.createVNode(G,{label:w.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:N},null,8,["label"])]),e.createVNode(pe,{modelValue:R.value,"onUpdate:modelValue":x[3]||(x[3]=Z=>R.value=Z),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:z.value,"close-on-select":!0,searchable:!0,placeholder:w.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!i.value,caret:i.value,onSelect:I},{tag:e.withCtx(({option:Z,handleTagRemove:le})=>[e.createVNode(Ve,{"user-name":Z.label,"avatar-url":Z.avatar,"is-closable":!0,onClose:nt=>le(Z,nt)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),e.createElementVNode("div",Y3,[w.isTemplate!==!0&&w.userId?(e.openBlock(),e.createElementBlock("div",K3,[e.createElementVNode("label",G3,[e.createElementVNode("span",X3,e.toDisplayString(w.$t("activity.deadline.label")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":x[4]||(x[4]=Z=>f.value=Z),readonly:!i.value,class:"ao-field__input",type:"date"},null,8,Q3),[[e.vModelText,f.value,void 0,{lazy:!0}]])])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",J3,[e.createElementVNode("div",ef,[e.createElementVNode("label",tf,[e.createElementVNode("span",af,e.toDisplayString(w.$t("activity.estimation.label"))+" ("+e.toDisplayString(u.value)+")",1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":x[5]||(x[5]=Z=>p.value=Z),readonly:!i.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,of),[[e.vModelText,p.value,void 0,{lazy:!0,number:!0}]])])]),e.createElementVNode("div",rf,[e.createElementVNode("label",nf,[e.createElementVNode("span",sf,e.toDisplayString(w.$t("activity.timeSpent.label"))+" ("+e.toDisplayString(u.value)+")",1),e.createElementVNode("span",lf,e.toDisplayString(m.value),1)])])]),e.createElementVNode("div",cf,[e.createVNode(Or,{modelValue:g.value,"onUpdate:modelValue":x[6]||(x[6]=Z=>g.value=Z),modelModifiers:{lazy:!0},label:w.$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",df,[e.createElementVNode("div",pf,[e.createVNode(ee,{name:"FlowsheetOutlineRounded"}),e.createVNode(ne,{level:4,title:w.$t("activity.dependencies.title")},null,8,["title"])]),e.createElementVNode("div",uf,[e.createElementVNode("div",mf,[e.createElementVNode("label",ff,[e.createElementVNode("span",hf,e.toDisplayString(w.$t("activity.dependingOn.label")),1),e.createVNode(pe,{modelValue:h.value,"onUpdate:modelValue":x[7]||(x[7]=Z=>h.value=Z),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:y.value,disabled:!i.value,caret:i.value},null,8,["modelValue","options","disabled","caret"])])]),e.createElementVNode("div",gf,[e.createElementVNode("label",_f,[e.createElementVNode("span",vf,e.toDisplayString(w.$t("activity.blocking.label")),1),e.createVNode(pe,{modelValue:v.value,"onUpdate:modelValue":x[8]||(x[8]=Z=>v.value=Z),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:_.value,disabled:!i.value,caret:i.value},null,8,["modelValue","options","disabled","caret"])])])])]),e.renderSlot(w.$slots,"default",{activity:w.activity})])])]}),_:3}))}}),F9="",bf=e.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(a,{emit:t}){const o=a,n=e.toRef(o.rule.itemType||te.ACTIVITIES),r=e.computed({get(){return n.value},set(y){n.value=y,t("update:rule",{...o.rule,itemType:y,subItemId:void 0})}}),s=e.computed(()=>Object.values(te)),i=e.computed({get(){return o.rule.subItemId},set(y){t("update:rule",{...o.rule,subItemId:y,itemType:o.rule.itemType||r.value})}}),l=e.computed(()=>{var v;return!o.templateActivities||!o.templateMilestones||!o.templatePhases?null:(v={[te.ACTIVITIES]:o.templateActivities,[te.MILESTONES]:o.templateMilestones,[te.PHASES]:o.templatePhases}[n.value])==null?void 0:v.map(_=>({value:_.id,label:_.name}))}),c=e.toRef(o.rule.comparator),p=e.computed({get(){return c.value},set(y){t("update:rule",{...o.rule,comparator:y})}}),d=e.computed(()=>Object.values(xo)),u=e.toRef(o.rule.trigger),m=e.computed({get(){return u.value},set(y){t("update:rule",{...o.rule,trigger:y})}}),g=e.computed(()=>Object.values(Mo)),f=e.computed({get(){return o.rule.duration},set(y){t("update:rule",{...o.rule,duration:y})}}),C=e.computed({get(){return o.rule.durationUnit},set(y){t("update:rule",{...o.rule,durationUnit:y})}}),h=e.computed(()=>Object.values(To));return(y,v)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.tagName),{class:"ao-rule-line"},{default:e.withCtx(()=>[e.createVNode(e.unref(We),{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=_=>r.value=_),options:s.value},null,8,["modelValue","options"]),e.createVNode(e.unref(We),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=_=>i.value=_),options:l.value},null,8,["modelValue","options"]),e.createVNode(e.unref(We),{modelValue:m.value,"onUpdate:modelValue":v[2]||(v[2]=_=>m.value=_),options:g.value},null,8,["modelValue","options"]),e.createVNode(e.unref(We),{modelValue:p.value,"onUpdate:modelValue":v[3]||(v[3]=_=>p.value=_),options:d.value},null,8,["modelValue","options"]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":v[4]||(v[4]=_=>f.value=_),type:"number",min:"0"},null,512),[[e.vModelText,f.value,void 0,{number:!0}]]),e.createVNode(e.unref(We),{modelValue:C.value,"onUpdate:modelValue":v[5]||(v[5]=_=>C.value=_),options:h.value},null,8,["modelValue","options"]),e.createVNode(G,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=_=>y.$emit("close"))})]),_:1}))}}),Z9="",Cf={class:"ao-template-rules__body"},yf={class:"ao-template-rules__list"},wf=e.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(a,{emit:t}){const o=()=>{t("addRule")},n=r=>{t("removeRule",r)};return(r,s)=>(e.openBlock(),e.createBlock(la,null,{header:e.withCtx(()=>[e.createVNode(ne,{title:r.$t("template.rules.title"),level:2},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("div",Cf,[e.createElementVNode("ul",yf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.rules,i=>(e.openBlock(),e.createBlock(bf,{key:i.id,rule:i,"template-phases":r.templatePhases,"template-milestones":r.templateMilestones,"template-activities":r.templateActivities,class:"ao-template-rule",onClose:()=>n(i.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),e.createVNode(ze,{label:r.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}}),W9="";function at(a,t,o){const n=a.length,r=a.at(-1),s=r?ie.LexoRank.parse(r.rank).genNext():ie.LexoRank.middle();return{name:o(`template.defaultName.${t}`,{idx:n+1}),rank:s.format()}}const kf={key:0,class:"ao-template-details"},$f={class:"ao-template-details__body"},Ef={class:"ao-template-details__cols"},Bf={class:"ao-template-details__col"},Vf={class:"ao-list__footer"},Sf={class:"ao-template-details__col"},Nf={class:"ao-template-details__col"},Ir=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:n}=Te(),r=e.computed(()=>{var S;return(S=o.templates)==null?void 0:S.find($=>$.id===o.templateId)}),s=e.ref(!1);e.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>s.value=!1),e.watch(()=>{var S;return(S=r.value)==null?void 0:S.phases},(S,$)=>{s.value&&Ae(S,$)});const i=e.computed(()=>{var S,$;return($=(S=r==null?void 0:r.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,$)=>{s.value&&Ae(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,$)=>{s.value&&Ae(S,$)});const c=e.computed(()=>{var S,$;return(($=(S=r.value)==null?void 0:S.phases)==null?void 0:$.reduce((L,V)=>{const D=V.milestones||[];return[...L,...D]},[]))||[]}),p=e.computed(()=>{var S,$;return(($=(S=r.value)==null?void 0:S.phases)==null?void 0:$.reduce((L,V)=>{const q=(V.milestones||[]).reduce((w,x)=>x.activities?[...w,...x.activities]:w,[]);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)}),u=e.computed(()=>{var S;return((S=r.value)==null?void 0:S.name)||o.templateId}),m=()=>{if(!r.value)return;const{name:S,rank:$}=at(r.value.phases,"phase",n);s.value=!0,t("addItem",{type:te.PHASES,templateId:o.templateId,item:{name:S,rank:$}})},g=S=>{t("updateItem",{templateId:o.templateId,id:o.templateId,itemType:te.TEMPLATES,data:{name:S}})},f=S=>{t("removeItem",{itemType:te.PHASES,templateId:o.templateId,data:{id:S}})},C=(S,$)=>{t("updateItem",{templateId:o.templateId,id:S,itemType:te.PHASES,data:{name:$}})},h=S=>{t("updateItem",S)},y=S=>{if(!i.value)return;const{name:$,rank:L}=at(i.value.milestones,"milestone",n);s.value=!0,t("addItem",{type:te.MILESTONES,templateId:o.templateId,phaseId:S.phaseId,item:{name:$,rank:L,phaseId:S.phaseId}})},v=S=>{t("removeItem",{itemType:te.MILESTONES,templateId:o.templateId,phaseId:S.phaseId,data:{id:S.id}})},_=S=>{const{id:$,...L}=S;t("updateItem",{itemType:te.MILESTONES,id:$,templateId:o.templateId,data:L})},b=S=>{const{milestoneId:$}=S;if(!l.value)return;const{name:L,rank:V}=at(l.value.activities,"activity",n);s.value=!0,t("addItem",{type:te.ACTIVITIES,milestoneId:$,templateId:o.templateId,item:{name:L,rank:V,milestoneId:$}})},B=S=>{var $,L;t("removeItem",{itemType:te.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:te.ACTIVITIES,id:$,templateId:o.templateId,data:L})},N=e.ref(!1),I=()=>{N.value=!N.value},z=()=>{t("addRule",{templateId:o.templateId})},R=S=>{t("removeRule",{id:S,templateId:o.templateId})},F=S=>{var $;if(S.moved){const L=Lt(S,(($=r.value)==null?void 0:$.phases)??[]);t("updateItem",{itemType:te.PHASES,id:S.moved.element.id,templateId:o.templateId,data:{rank:L}})}},A=S=>{!i.value||!l.value||!d.value||t("addItem",{type:te.TASKS,activityId:S.activityId,milestoneId:l.value.id,phaseId:i.value.id,templateId:o.templateId,item:S})},H=S=>{!i.value||!l.value||!d.value||t("updateItem",{itemType:te.TASKS,id:S.id,templateId:o.templateId,data:S})},K=S=>{!i.value||!l.value||!d.value||t("removeItem",{itemType:te.TASKS,activityId:d.value.id,milestoneId:l.value.id,phaseId:i.value.id,templateId:o.templateId,data:S})},W=S=>{t("addFiles",S)},U=S=>{t("removeFile",S)};return(S,$)=>{var L,V,D,q,w,x;return r.value?(e.openBlock(),e.createElementBlock("div",kf,[e.createVNode(Dt,{"can-go-back":!0,onGoBack:$[1]||($[1]=O=>S.$router.push({name:e.unref(rt).TEMPLATES_LIST}))},{primary:e.withCtx(()=>[e.createVNode(ne,{title:u.value,level:2,"is-editable":!0,"onUpdate:title":$[0]||($[0]=O=>{g(O)})},null,8,["title"])]),_:1}),e.createElementVNode("div",$f,[e.createElementVNode("ol",Ef,[e.createElementVNode("li",Bf,[e.createVNode(e.unref(je),{"model-value":r.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:F},{header:e.withCtx(()=>[e.createVNode(ne,{title:S.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:e.withCtx(({element:O})=>{var M;return[e.createVNode(r2,{id:O.id,name:O.name,milestones:O.milestones,"is-active":((M=i.value)==null?void 0:M.id)===O.id,"is-draggable":!0,onClick:P=>S.$router.push({params:{templateId:S.templateId,phaseId:O.id}}),"onUpdate:title":P=>{C(O.id,P)},onRemove:()=>f(O.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Vf,[e.createVNode(ze,{"icon-name":"AddBoxOutlineRounded",label:S.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),e.createElementVNode("li",Sf,[i.value?(e.openBlock(),e.createBlock(s2,{key:0,"template-id":S.templateId,phase:i.value,"milestone-id":(L=l.value)==null?void 0:L.id,onAddMilestone:y,onUpdateMilestone:_,onUpdatePhase:h,onRemoveMilestone:v},null,8,["template-id","phase","milestone-id"])):e.createCommentVNode("",!0)]),e.createElementVNode("li",Nf,[i.value&&l.value?(e.openBlock(),e.createBlock(d2,{key:0,"template-id":S.templateId,"phase-id":(V=i.value)==null?void 0:V.id,milestone:l.value,"activity-id":(D=d.value)==null?void 0:D.id,onAddActivity:b,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(ro,{key:0,activity:d.value,"activity-types":S.activityTypes,breadcrumbs:`${r.value.name} / ${(q=i.value)==null?void 0:q.name} / ${(w=l.value)==null?void 0:w.name}`,"milestone-id":(x=l.value)==null?void 0:x.id,"template-activities":p.value,"template-milestones":c.value,"is-template":!0,"is-editable":!0,users:S.users,"onUpdate:activity":$[2]||($[2]=O=>{d.value&&E(O)}),"attachment-enabled":!1,onClose:S.$router.back,onAddSubtask:A,onUpdateSubtask:H,onDeleteSubtask:K,onAddFiles:W,onRemoveFile:U},{default:e.withCtx(O=>[e.renderSlot(S.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(O)))]),_: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(wf,{key:0,"template-id":r.value.id,rules:r.value.rules||[],"template-phases":r.value.phases,"template-milestones":c.value,"template-activities":p.value,onClose:I,onAddRule:z,onRemoveRule:R},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}}}),q9="",xf={class:"ao-card__content"},Mf={key:0,class:"ao-card__header"},Tf={class:"ao-card__body"},Af={key:1,class:"ao-card__footer"},ka=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",xf,[t.$slots.header?(e.openBlock(),e.createElementBlock("header",Mf,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",Tf,[e.renderSlot(t.$slots,"default")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Af,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}}),Y9="",$a=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(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-progress",n.status?`ao-progress--${n.status}`:""]),role:"meter"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["ao-progress__progress"]),style:e.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":n.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}}),K9="";/*!
1
+ var zI=Object.defineProperty;var jI=(ce,a,rt)=>a in ce?zI(ce,a,{enumerable:!0,configurable:!0,writable:!0,value:rt}):ce[a]=rt;var zl=(ce,a,rt)=>(jI(ce,typeof a!="symbol"?a+"":a,rt),rt),p0=(ce,a,rt)=>{if(!a.has(ce))throw TypeError("Cannot "+rt)};var o=(ce,a,rt)=>(p0(ce,a,"read from private field"),rt?rt.call(ce):a.get(ce)),C=(ce,a,rt)=>{if(a.has(ce))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(ce):a.set(ce,rt)},k=(ce,a,rt,Ai)=>(p0(ce,a,"write to private field"),Ai?Ai.call(ce,rt):a.set(ce,rt),rt);var E=(ce,a,rt)=>(p0(ce,a,"access private method"),rt);(function(ce,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuedraggable"],a):(ce=typeof globalThis<"u"?globalThis:ce||self,a(ce.Orcha={},ce.Vue,ce.vueRouter,ce.Draggable))})(this,function(ce,a,rt,Ai){var dn,_c,Ji,kc,qr,xc,ki,hi,es,hn,Zr,Oi,Gr,xi,Yr,Ec,Tc,Kr,Vi,go,un,ts,Sc,Mc,Yt,vo,Bc,fn,Ei,Ns,Nc,m0,g1,i3,pn,Ls,v1,s3,yo,Xr,bo,y1,n3,b1,o3,C1,r3,Qr,Co,wo,_o,w1,a3,_1,l3,Lc,g0,k1,c3,x1,d3,Ac,ko,qh,Ae,$c,Oc,is,mn,gn,As,Vc,Rc,Jr,ea,ta,vn,ia,ss,sa,Ic,Et,pt,Ti,$s,yn,xo,Zh,Dc,v0,E1,h3,ns,Xn,Pc,y0,Eo,Gh,Hc,b0,T1,u3,S1,f3,na,Em,oa,Tm,Fc,C0,M1,p3,zc,w0,B1,m3,jc,_0,N1,g3,L1,v3,A1,y3,$1,b3,O1,C3,V1,w3,R1,_3,He,Wc,ra,To,aa,So,ei,la,bn,Uc,k0,ca,Sm,I1,k3,D1,x3,qc,x0,Os,Tr,P1,E3,Zc,da,ha,Gc,Cn,Mo,Je,ui,Yc,ua,Bo,Ke,Ri,fa,pa,Mm,H1,T3,Kc,E0,F1,S3,z1,M3,No,$e,Bt,ma,Lo,Xc,Ze,Vs,ga,Qc,Jc,j1,B3,ed,T0,td,S0,va,Bm,he,os,Nt,Ao,ya,ba,Ca,wa,_a,ka,xa,wn,jl,id,M0,me,Ii,_n,Si,W1,N3,U1,L3,q1,A3,Z1,$3,Ea,Nm,G1,O3,Y1,V3,kn,Wl,$o,Yh,Fe,sd,nd,B0,od,N0,q,Di,et,Oo,Tt,rd,ad,ld,cd,Ta,dd,hd,ud,fd,pd,md,gd,Vo,Sa,Ma,Ba,Na,vd,yd,Ro,Io,Kh,bd,L0,K1,R3,X1,I3,Q1,D3,J1,P3,ef,H3,tf,F3,Cd,A0,wd,$0,Do,Xh,sf,z3,nf,j3,of,W3,rf,U3,af,q3,lf,Z3,Mi,_d,Pi,rs,Rs,xn,La,Aa,de,$a,kd,Oa,Po,En,Ho,Va,Ra,Ia,Da,Tn,Fo,Qh,zo,Jh,cf,G3,df,Y3,jo,eu,hf,K3,xd,O0,Ed,V0,Td,R0,uf,X3,ff,Q3,pf,J3,mf,eb,gf,tb,Sd,I0,te,Md,Bd,Nd,Ld,Wo,Uo,Pa,Ha,Ad,Fa,qo,$d,Od,D0,Vd,P0,za,Lm,Rd,H0,vf,ib,Zo,tu,Id,F0,yf,sb,Dd,z0,Pd,j0,bf,nb,Cf,ob,wf,rb,_f,ab,kf,lb,xf,cb,Ef,db,Tf,hb,Sf,ub,Mf,fb,Bf,pb,Nf,mb,Lf,gb,Is,oe,mt,Go,Hd,Sn,ti,Rt,Mn,ja,Wa,Ua,qa,Af,vb,$f,yb,Fd,W0,zd,U0,Of,bb,Vf,Cb,Rf,wb,If,_b,Df,kb,Pf,xb,Hf,Eb,Ff,Tb,zf,Sb,jf,Mb,jd,as,jt,Wd,Yo,Za,Ga,Ya,Ka,Kt,Ko,Xa,Bn,Ud,St,Xo,qd,ls,Qa,Te,fi,Pe,Ja,ht,el,gt,_t,Ds,Qo,tl,Ps,cs,Hi,ds,Bi,Jo,il,sl,Wf,Bb,er,iu,Nn,Ul,Zd,q0,Uf,Nb,tr,su,Gd,Z0,ir,nu,qf,Lb,Zf,Ab,Gf,$b,Yd,G0,Kd,Y0,nl,Am,Yf,Ob,Kf,Vb,Xf,Rb,Qf,Ib,Jf,Db,ep,Pb,tp,Hb,ip,Fb,sp,zb,np,jb,op,Wb,rp,Ub,ap,qb,lp,Zb,cp,Gb,Xd,ae,ol,It,Wt,Ln,rl,al,An,Ni,dp,Yb,hp,Kb,up,Xb,fp,Qb,pp,Jb,mp,e5,gp,t5,tt,Qd,ll,cl,ii,Jd,eh,K0,th,_e,Fi,zi,pi,Ge,Lt,ji,Xt,mi,$n,sr,dl,hl,On,hs,Vn,us,Hs,Fs,Rn,ih,fs,ps,zs,vp,i5,yp,s5,sh,X0,bp,n5,Cp,o5,wp,r5,ul,Ve,In,fl,pl,Xe,ut,at,nr,nh,ml,Dn,gl,oh,rh,Pn,vl,yl,_p,a5,or,ou,rr,ru,kp,l5,bl,$m,At,ms,Cl,js,Ut,gs,ah,ar,Hn,lr,cr,wl,_l,vs,Ws,ys,Us,dr,kl,hr,au,lh,Q0,ur,lu,xp,c5,fr,cu,Fn,ql,Ep,d5,Tp,h5,Sp,u5,Mp,f5,Bp,p5,xl,ee,je,zn,ch,dh,gi,We,ye,vt,pr,hh,uh,fh,ph,mh,gh,vh,yh,bh,Ch,wh,_h,jn,El,kh,xh,mr,Eh,Np,m5,Lp,g5,Ap,v5,$p,y5,Th,J0,Se,qs,$t,Mt,bs,Tl,Sh,Mh,Bh,Nh,Sl,Ml,Bl,Nl,Li,Lh,Ye,it,vi,Ot,gr,Cs,vr,Wn,Ll,Al,Un,qn,Ah,Op,b5,$h,e2,Vp,C5,$l,Om,Rp,w5,Ol,Vm,Ip,_5,Dp,k5,Pp,x5,Hp,E5,Fp,T5,Oh,t2,yi,Ui,Vl,Rm,zp,S5,jp,M5,Vh,i2,Wp,B5,Up,N5,Rh,s2,qp,L5,Ih,n2,yr,du,Rl,Im,br,hu,Il,Dm,Dh,o2,Ph,r2,Cr,uu,Zp,A5,Re,Hh,Ie,Fh,zh,a2,Gp,$5,be,ws,si,Dt,ie,nt,ot,Pt,qt,Zn,Gn,Yn,Yp,O5,Kp,V5,_r,fu,Xp,R5,Qp,I5,Jp,D5,em,P5,tm,H5,im,F5,sm,z5,jh,l2,nm,j5,om,W5,rm,U5,am,q5,lm,Z5,cm,G5,dm,Y5,hm,K5,ni,ge,um,X5,fm,Q5,pm,J5,mm,eC,gm,tC,oi,Dl,Pm,vm,iC,ym,sC,bm,nC,Cm,oC,wm,rC;"use strict";var c2=document.createElement("style");c2.textContent=`*,*:before,*:after{box-sizing:border-box}html,body{margin:0;overflow:hidden;display:flex;flex-direction:column;height:100%;min-height:0}button{color:inherit;font-family:inherit}input,textarea{font-family:inherit}:root{--ao-color-blue-lightest: #ebf1ff;--ao-color-blue-lighter: #aabdff;--ao-color-blue-light: #7183ff;--ao-color-blue-base: #4952ff;--ao-color-blue-dark: #2226e7;--ao-color-blue-darker: #09099c;--ao-color-blue-darkest: #000033;--ao-color-grey-lightest: #e6e6e6;--ao-color-grey-light: #c8c8c8;--ao-color-grey-base: #ababab;--ao-color-grey-dark: #636363;--ao-color-grey-darkest: #1c1c1c;--ao-color-white: #fff;--ao-color-black: #000;--ao-color-sand-base: #d8a55a;--ao-color-red-light: #ff4f4f;--ao-color-teal-light: #64d9bb;--ao-color-primary-lightest: var(--ao-color-blue-lightest);--ao-color-primary-lighter: var(--ao-color-blue-lighter);--ao-color-primary-light: var(--ao-color-blue-light);--ao-color-primary-base: var(--ao-color-blue-base);--ao-color-primary-dark: var(--ao-color-blue-dark);--ao-color-primary-darker: var(--ao-color-blue-darker);--ao-color-primary-darkest: var(--ao-color-blue-darkest);--ao-color-neutral-lightest: var(--ao-color-grey-lightest);--ao-color-neutral-light: var(--ao-color-grey-light);--ao-color-neutral-base: var(--ao-color-grey-base);--ao-color-neutral-dark: var(--ao-color-grey-dark);--ao-color-neutral-darkest: var(--ao-color-grey-darkest);--ao-color-canvas: #f1f1f1;--ao-color-sheet: #f9f9f9;--ao-color-card: #f9f9f9;--ao-color-text: var(--ao-color-grey-darkest);--ao-color-danger: var(--ao-color-red-light);--ao-color-warning: var(--ao-color-sand-base);--ao-color-success: var(--ao-color-teal-light);--ao-color-text-contrast: var(--ao-color-white);--ao-color-group: rgba(255, 255, 255, .2);--ao-color-backdrop: rgba(0, 0, 0, .7);--ao-grid-size: 8px;--ao-space-xs: calc(var(--ao-grid-size) / 4);--ao-space-sm: calc(var(--ao-grid-size) / 2);--ao-space-md: calc(var(--ao-grid-size) * 1);--ao-space-lg: calc(var(--ao-grid-size) * 3 / 2);--ao-space-xl: calc(var(--ao-grid-size) * 2);--ao-space-xxl: calc(var(--ao-grid-size) * 4);--ao-border-width-sm: 1px;--ao-border-width-md: 2px;--ao-border-width-lg: 4px;--ao-border-width-xl: 6px;--ao-border-radius-xs: 2px;--ao-border-radius-sm: 4px;--ao-border-radius-md: 8px;--ao-border-radius-lg: 16px;--ao-border-radius-xl: 24px;--ao-border-radius-round: 100em;font-size:15px;--ao-font-size-base: 1rem;--ao-font-size-text: var(--ao-font-size-base);--ao-font-size-input: var(--ao-font-size-base);--ao-font-size-h5: var(--ao-font-size-base);--ao-font-size-h4: calc(var(--ao-font-size-base) * 1.25);--ao-font-size-h3: calc(var(--ao-font-size-h4) * 1.25);--ao-font-size-h2: calc(var(--ao-font-size-h3) * 1.25);--ao-font-size-h1: calc(var(--ao-font-size-h2) * 1.25);--ao-font-size-label: calc(var(--ao-font-size-base) / 1.25);--ao-font-size-tag: calc(var(--ao-font-size-label) / 1.25);--ao-font-size-button: var(--ao-font-size-base);--ao-font-weight-extra-light: 200;--ao-font-weight-regular: 400;--ao-font-weight-medium: 500;--ao-font-weight-semi-bold: 600;--ao-font-weight-bold: 800;--ao-font-weight-extra-bold: 900;--ao-font-stack-system-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ao-font-stack-sans: "Kumbh Sans", var(--ao-font-stack-system-sans);--ao-icon-size-sm: calc(var(--ao-grid-size) * 9 / 5);--ao-icon-size-md: calc(var(--ao-grid-size) * 3);--ao-icon-size-lg: calc(var(--ao-grid-size) * 4);--ao-icon-size-xl: calc(var(--ao-grid-size) * 5);--ao-transition-ease: cubic-bezier(.215, .61, .355, 1);--ao-shadow-key-umbra-opacity: .2;--ao-shadow-key-penumbra-opacity: .14;--ao-shadow-ambient-shadow-opacity: .12;--ao-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 1px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 5px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 3px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 8px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 10px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 2px 4px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 18px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 3px 5px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 14px 2px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 5px 5px -3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 6px 30px 5px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 8px 10px -5px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-24dp: 0 9px 46px 8px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 11px 15px -7px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 24px 38px 3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity))}html,body{font-family:var(--ao-font-stack-sans)}[class^=ao-]{scrollbar-width:thin}[class^=ao-]::-webkit-scrollbar{background-color:transparent;width:var(--ao-space-md);height:var(--ao-space-md);border-radius:var(--ao-border-radius-round)}[class^=ao-]::-webkit-scrollbar-thumb{background:var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-round);cursor:grab}:root{--ao-input-color: inherit;--ao-input-bg: #fff;--ao-input-border-radius: var(--ao-border-radius-sm);--ao-input-border-width: var(--ao-border-width-sm);--ao-input-border-color: var(--ao-color-neutral-light);--ao-textarea-bg: var(--ao-input-bg)}.ao-fieldset{border-width:0;padding:0;margin:0}.ao-fieldset+.ao-fieldset{margin-block-start:var(--ao-space-xl)}.ao-fieldset__title{display:flex;align-items:center;gap:var(--ao-space-sm);color:var(--ao-color-neutral-dark)}.ao-field__row{display:flex;flex-direction:row;gap:var(--ao-space-lg)}.ao-field__row+.ao-field__row{margin-block-start:var(--ao-space-lg)}.ao-field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ao-space-md)}.ao-field--full{flex:1;width:100%}.ao-field--multiselect{min-width:20ch}.ao-field--inline{flex-direction:row;align-items:center}.ao-field__label{font-size:var(--ao-font-size-label)}.ao-field__input{padding-inline:var(--ao-space-lg);padding-block:var(--ao-space-md);margin:0;border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-input-bg)}.ao-field__input:is(:focus,:active,:hover){--ao-input-border-color: var(--ao-color-primary-base)}.ao-field__textarea{padding:var(--ao-space-lg);border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-textarea-bg);flex:1;width:100%;resize:vertical}.ao-multiselect{--ms-font-size: var(--font-size-text);--ms-line-height: 1.2;--ms-border-color: var(--ao-color-neutral-lightest);--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: var(--ao-input-border-color);--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-md);--ms-py: var(--ao-space-md);--ms-px: var(--ao-space-lg);--ms-ring-color: var(--ao-color-primary-lightest);--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-tag-font-size: var(--ao-font-size-tag);--ms-tag-font-weight: var(--ao-font-weight-regular);--ms-tag-bg: var(--ao-color-primary-base);--ms-tag-radius: var(--ao-border-radius-xl);--ms-tag-py: var(--ao-space-sm);--ms-tag-my: 0;--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}input[readonly]{cursor:default}.is-disabled>.multiselect-wrapper{cursor:default}.ao-field__input::-webkit-outer-spin-button,.ao-field__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ao-field__input[type=number]{-moz-appearance:textfield}.multiselect{align-items:center;background:var(--ms-bg,#fff);border:var(--ms-border-width,1px) solid var(--ms-border-color,#d1d5db);border-radius:var(--ms-radius,4px);box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-font-size,1rem);justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect.is-open{border-radius:var(--ms-radius,4px) var(--ms-radius,4px) 0 0}.multiselect.is-open-top{border-radius:0 0 var(--ms-radius,4px) var(--ms-radius,4px)}.multiselect.is-disabled{background:var(--ms-bg-disabled,#f3f4f6);cursor:default}.multiselect.is-active{border:var(--ms-border-width-active,var(--ms-border-width,1px)) solid var(--ms-border-color-active,var(--ms-border-color,#d1d5db));box-shadow:0 0 0 var(--ms-ring-width,3px) var(--ms-ring-color,rgba(16,185,129,.188))}.multiselect-wrapper{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect-multiple-label,.multiselect-placeholder,.multiselect-single-label{align-items:center;background:transparent;box-sizing:border-box;display:flex;height:100%;left:0;line-height:var(--ms-line-height,1.375);max-width:100%;padding-left:var(--ms-px,.875rem);padding-right:calc(1.25rem + var(--ms-px, .875rem)*3);pointer-events:none;position:absolute;top:0}.multiselect-placeholder{color:var(--ms-placeholder-color,#9ca3af)}.multiselect-single-label-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ms-bg,#fff);border:0;border-radius:var(--ms-radius,4px);bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;height:100%;left:0;outline:none;padding-left:var(--ms-px,.875rem);position:absolute;right:0;top:0;width:100%}.multiselect-search::-webkit-search-cancel-button,.multiselect-search::-webkit-search-decoration,.multiselect-search::-webkit-search-results-button,.multiselect-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-tags{flex-grow:1;flex-shrink:1;flex-wrap:wrap;margin:var(--ms-tag-my,.25rem) 0 0;padding-left:var(--ms-py,.5rem)}.multiselect-tag,.multiselect-tags{align-items:center;display:flex;min-width:0}.multiselect-tag{background:var(--ms-tag-bg,#10b981);border-radius:var(--ms-tag-radius,4px);color:var(--ms-tag-color,#fff);font-size:var(--ms-tag-font-size,.875rem);font-weight:var(--ms-tag-font-weight,600);line-height:var(--ms-tag-line-height,1.25rem);margin-bottom:var(--ms-tag-my,.25rem);margin-right:var(--ms-tag-mx,.25rem);padding:var(--ms-tag-py,.125rem) 0 var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem);white-space:nowrap}.multiselect-tag.is-disabled{background:var(--ms-tag-bg-disabled,#9ca3af);color:var(--ms-tag-color-disabled,#fff);padding-right:var(--ms-tag-px,.5rem)}.multiselect-tag-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-tag-wrapper-break{white-space:normal;word-break:break-all}.multiselect-tag-remove{align-items:center;border-radius:var(--ms-tag-remove-radius,4px);display:flex;justify-content:center;margin:var(--ms-tag-remove-my,0) var(--ms-tag-remove-mx,.125rem);padding:var(--ms-tag-remove-py,.25rem) var(--ms-tag-remove-px,.25rem)}.multiselect-tag-remove:hover{background:rgba(0,0,0,.063)}.multiselect-tag-remove-icon{background-color:currentColor;display:inline-block;height:.75rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;opacity:.8;width:.75rem}.multiselect-tags-search-wrapper{display:inline-block;flex-grow:1;flex-shrink:1;height:100%;margin:0 var(--ms-tag-mx,4px) var(--ms-tag-my,4px);position:relative}.multiselect-tags-search-copy{display:inline-block;height:1px;visibility:hidden;white-space:pre-wrap;width:100%}.multiselect-tags-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;left:0;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.multiselect-tags-search::-webkit-search-cancel-button,.multiselect-tags-search::-webkit-search-decoration,.multiselect-tags-search::-webkit-search-results-button,.multiselect-tags-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-inifite{align-items:center;display:flex;justify-content:center;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);width:100%}.multiselect-inifite-spinner,.multiselect-spinner{animation:multiselect-spin 1s linear infinite;background-color:var(--ms-spinner-color,#10b981);flex-grow:0;flex-shrink:0;height:1rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1rem;z-index:10}.multiselect-spinner{margin:0 var(--ms-px,.875rem) 0 0}.multiselect-clear{display:flex;flex-grow:0;flex-shrink:0;opacity:1;padding:0 var(--ms-px,.875rem) 0 0;position:relative;transition:.3s;z-index:10}.multiselect-clear:hover .multiselect-clear-icon{background-color:var(--ms-clear-color-hover,#000)}.multiselect-clear-icon{background-color:var(--ms-clear-color,#999);display:inline-block;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");transition:.3s}.multiselect-caret,.multiselect-clear-icon{height:1.125rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.625rem}.multiselect-caret{background-color:var(--ms-caret-color,#999);flex-grow:0;flex-shrink:0;margin:0 var(--ms-px,.875rem) 0 0;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");pointer-events:none;position:relative;transform:rotate(0);transition:transform .3s;z-index:10}.multiselect-caret.is-open{pointer-events:auto;transform:rotate(180deg)}.multiselect-dropdown{-webkit-overflow-scrolling:touch;background:var(--ms-dropdown-bg,#fff);border:var(--ms-dropdown-border-width,1px) solid var(--ms-dropdown-border-color,#d1d5db);border-radius:0 0 var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px);bottom:0;display:flex;flex-direction:column;left:calc(var(--ms-border-width, 1px)*-1);margin-top:calc(var(--ms-border-width, 1px)*-1);max-height:var(--ms-max-height,10rem);outline:none;overflow-y:scroll;position:absolute;right:calc(var(--ms-border-width, 1px)*-1);transform:translateY(100%);z-index:100}.multiselect-dropdown.is-top{border-radius:var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px) 0 0;bottom:auto;top:var(--ms-border-width,1px);transform:translateY(-100%)}.multiselect-dropdown.is-hidden{display:none}.multiselect-options{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.multiselect-group{margin:0;padding:0}.multiselect-group-label{align-items:center;background:var(--ms-group-label-bg,#e5e7eb);box-sizing:border-box;color:var(--ms-group-label-color,#374151);cursor:default;display:flex;font-size:.875rem;font-weight:600;justify-content:flex-start;line-height:var(--ms-group-label-line-height,1.375);padding:var(--ms-group-label-py,.3rem) var(--ms-group-label-px,.75rem);text-align:left;text-decoration:none}.multiselect-group-label.is-pointable{cursor:pointer}.multiselect-group-label.is-pointed{background:var(--ms-group-label-bg-pointed,#d1d5db);color:var(--ms-group-label-color-pointed,#374151)}.multiselect-group-label.is-selected{background:var(--ms-group-label-bg-selected,#059669);color:var(--ms-group-label-color-selected,#fff)}.multiselect-group-label.is-disabled{background:var(--ms-group-label-bg-disabled,#f3f4f6);color:var(--ms-group-label-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-group-label.is-selected.is-pointed{background:var(--ms-group-label-bg-selected-pointed,#0c9e70);color:var(--ms-group-label-color-selected-pointed,#fff)}.multiselect-group-label.is-selected.is-disabled{background:var(--ms-group-label-bg-selected-disabled,#75cfb1);color:var(--ms-group-label-color-selected-disabled,#d1fae5)}.multiselect-group-options{margin:0;padding:0}.multiselect-option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-option-font-size,1rem);justify-content:flex-start;line-height:var(--ms-option-line-height,1.375);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem);text-align:left;text-decoration:none}.multiselect-option.is-pointed{background:var(--ms-option-bg-pointed,#f3f4f6);color:var(--ms-option-color-pointed,#1f2937)}.multiselect-option.is-selected{background:var(--ms-option-bg-selected,#10b981);color:var(--ms-option-color-selected,#fff)}.multiselect-option.is-disabled{background:var(--ms-option-bg-disabled,#fff);color:var(--ms-option-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-option.is-selected.is-pointed{background:var(--ms-option-bg-selected-pointed,#26c08e);color:var(--ms-option-color-selected-pointed,#fff)}.multiselect-option.is-selected.is-disabled{background:var(--ms-option-bg-selected-disabled,#87dcc0);color:var(--ms-option-color-selected-disabled,#d1fae5)}.multiselect-no-options,.multiselect-no-results{color:var(--ms-empty-color,#4b5563);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem)}.multiselect-fake-input{background:transparent;border:0;bottom:-1px;font-size:0;height:1px;left:0;outline:none;padding:0;position:absolute;right:0;width:100%}.multiselect-fake-input:active,.multiselect-fake-input:focus{outline:none}.multiselect-assistive-text{clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;position:absolute;width:1px}.multiselect-spacer{display:none}[dir=rtl] .multiselect-multiple-label,[dir=rtl] .multiselect-placeholder,[dir=rtl] .multiselect-single-label{left:auto;padding-left:calc(1.25rem + var(--ms-px, .875rem)*3);padding-right:var(--ms-px,.875rem);right:0}[dir=rtl] .multiselect-search{padding-left:0;padding-right:var(--ms-px,.875rem)}[dir=rtl] .multiselect-tags{padding-left:0;padding-right:var(--ms-py,.5rem)}[dir=rtl] .multiselect-tag{margin-left:var(--ms-tag-mx,.25rem);margin-right:0;padding:var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem) var(--ms-tag-py,.125rem) 0}[dir=rtl] .multiselect-tag.is-disabled{padding-left:var(--ms-tag-px,.5rem)}[dir=rtl] .multiselect-caret,[dir=rtl] .multiselect-spinner{margin:0 0 0 var(--ms-px,.875rem)}[dir=rtl] .multiselect-clear{padding:0 0 0 var(--ms-px,.875rem)}@keyframes multiselect-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes blink-ad6da4a9{0%,to{opacity:1}50%{opacity:0}}.dot[data-v-ad6da4a9]{animation:blink-ad6da4a9 1.5s ease-in-out infinite}.dot--1[data-v-ad6da4a9]{animation-delay:0}.dot--2[data-v-ad6da4a9]{animation-delay:.5s}.dot--3[data-v-ad6da4a9]{animation-delay:1s}.ao-icon{color:inherit;fill:currentColor;width:var(--ao-icon-size);height:var(--ao-icon-size)}.ao-icon *{fill:inherit}.ao-icon--sm{--ao-icon-size: var(--ao-icon-size-sm)}.ao-icon--md{--ao-icon-size: var(--ao-icon-size-md)}.ao-icon--lg{--ao-icon-size: var(--ao-icon-size-lg)}.ao-icon--xl{--ao-icon-size: var(--ao-icon-size-xl)}.ao-button{--ao-button-main-color: initial;--ao-button-secondary-color: initial;--ao-button-color: var(--ao-button-main-color);--ao-button-bg: var(--ao-button-secondary);--ao-button-border-color: transparent;--ao-button-padding: var(--ao-space-sm);--ao-button-label-padding: var(--ao-space-sm);--ao-button-border-radius: var(--ao-border-radius-md);--ao-button-line-height: var(--ao-icon-size-md);--ao-button-font-size: var(--ao-font-size-button);display:flex;padding:var(--ao-button-padding);align-items:center;border-width:var(--ao-border-width-md);border-style:solid;border-radius:var(--ao-button-border-radius);border-color:var(--ao-button-border-color);color:var(--ao-button-color);background-color:var(--ao-button-bg);cursor:pointer;font-size:var(--ao-button-font-size);font-weight:var(--ao-font-weight-semi-bold);line-height:var(--ao-button-line-height)}.ao-button--primary{--ao-button-main-color: var(--ao-color-primary-base)}.ao-button--secondary{--ao-button-main-color: var(--ao-color-success)}.ao-button--neutral{--ao-button-main-color: var(--ao-color-neutral-base)}.ao-button--black{--ao-button-main-color: var(--ao-color-neutral-darkest)}.ao-button--warning{--ao-button-main-color: var(--ao-color-warning)}.ao-button--danger{--ao-button-main-color: var(--ao-color-danger)}.ao-button--success{--ao-button-main-color: var(--ao-color-success)}.ao-button--ghost{--ao-border-color: transparent;--ao-background-color: transparent}.ao-button--outline{--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid{--ao-button-color: var(--ao-button-secondary-color);--ao-button-bg: var(--ao-button-main-color);--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid:is(.ao-button--primary,.ao-button--secondary,.ao-button--neutral,.ao-button--black){--ao-button-color: var(--ao-color-white)}.ao-button--icon-start{flex-direction:row-reverse}.ao-button--icon-end{flex-direction:row}.ao-button__icon{flex-shrink:0}.ao-button__label{padding-inline:var(--ao-button-label-padding);flex:1;width:100%}.ao-button--footer{width:100%}.ao-button--footer .ao-button__label{text-align:center}.ao-button--is-disabled{cursor:default}.ao-button--sm{--ao-button-padding: var(--ao-space-xs);--ao-button-label-padding: var(--ao-space-xs);--ao-button-line-height: var(--ao-icon-size-sm);--ao-button-font-size: var(--ao-font-size-label)}.ao-button--lg{--ao-button-line-height: var(--ao-icon-size-lg);--ao-button-font-size: var(--ao-font-size-h4)}.ao-button--xl{--ao-button-line-height: var(--ao-icon-size-xl);--ao-button-font-size: var(--ao-font-size-h3)}.ao-button--round{--ao-button-border-radius: var(--ao-border-radius-round)}.ao-title{--ao-title-color: inherit;margin:0;font-weight:var(--ao-font-weight-semi-bold);font-family:var(--ao-font-family-title);color:var(--ao-title-color);cursor:default}.ao-title--editable{cursor:text}.ao-title--readonly{padding-block:var(--ao-space-md);border:var(--ao-input-border-width) solid transparent}.ao-title--1{font-size:var(--ao-font-size-h1)}.ao-title--2{font-size:var(--ao-font-size-h2)}.ao-title--3{font-size:var(--ao-font-size-h3)}.ao-title--4{font-size:var(--ao-font-size-h4)}.ao-title--5{font-size:var(--ao-font-size-h5)}.ao-title--primary{--ao-title-color: var(--ao-color-primary-base)}.ao-title--neutral{--ao-title-color: var(--ao-color-neutral-base)}.ao-title--black{--ao-title-color: var(--ao-color-neutral-darkest)}.ao-title--editing{--ao-title-color: var(--ao-color-primary-dark);width:100%}.ao-card-horiz{--ao-card-horiz-bg-color: var(--ao-color-card);--ao-card-horiz-text-color: inherit;--ao-card-horiz-label-color: var(--ao-color-neutral-base);display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;grid-template-areas:"drag header secondary" "drag body body" "drag footer footer";border-radius:var(--ao-border-radius-md);color:var(--ao-card-horiz-text-color);background-color:var(--ao-card-horiz-bg-color);overflow:hidden;cursor:pointer;container:card-horiz / inline-size}.ao-card-horiz:hover{box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz--active{--ao-card-horiz-bg-color: var(--ao-color-primary-base);--ao-card-horiz-text-color: var(--ao-color-white);box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz__header{display:flex;align-items:center;padding-inline:var(--ao-space-md);padding-block-start:var(--ao-space-md);grid-area:header;width:100%}.ao-card-horiz__title-group{display:flex;flex-direction:column;flex-grow:1;overflow:hidden;width:100%}.ao-card-horiz__title{min-width:2ch;min-height:1em}.ao-card-horiz__title,.ao-card-horiz__subtitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:flex-start}.ao-card-horiz__subtitle{margin-top:var(--ao-space-xs);font-size:var(--ao-font-size-base)}.ao-card-horiz__body{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block:var(--ao-space-md);grid-area:body}.ao-card-horiz__footer{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block-end:var(--ao-space-md);grid-area:footer}.ao-card-horiz__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-card-horiz__drag-handle{opacity:0;visibility:hidden}.ao-card-horiz:hover .ao-card-horiz__drag-handle{opacity:1;visibility:visible}.ao-card-horiz__secondary{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);opacity:0;visibility:hidden;grid-area:secondary}.ao-card-horiz:hover .ao-card-horiz__secondary{opacity:1;visibility:visible}@container column (min-width: 480px){.ao-card-horiz{display:flex;flex-direction:row}.ao-card-horiz__header{padding-block:var(--ao-space-md);padding-inline-end:0;flex-shrink:1;min-width:0}.ao-card-horiz__body{padding-inline-end:0;flex-shrink:0}.ao-card-horiz__footer{align-items:flex-end;padding-block:var(--ao-space-md);grid-area:footer;flex-shrink:0}}@container column (min-width: 768px){.ao-card-horiz__header{width:50%}}@container column (min-width: 1024px){.ao-card-horiz__header{width:33%}}@container column (min-width: 1280px){.ao-card-horiz__header{width:25%}}.ao-tag{--ao-tag-color: var(--ao-color-text-contrast);--ao-tag-bg: var(transparent);--ao-tag-border-radius: var(--ao-border-radius-xl);display:flex;flex-direction:row;align-items:stretch;border:var(--ao-border-width-sm) var(--ao-tag-bg) solid;border-radius:var(--ao-tag-border-radius);font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-tag__icon{color:var(--ao-color-white)}.ao-tag--primary{--ao-tag-bg: var(--ao-color-primary-light)}.ao-tag--primary-lighter{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--black{--ao-tag-bg: var(--ao-color-neutral-darkest)}.ao-tag--secondary{--ao-tag-bg: var(--ao-color-success)}.ao-tag--neutral{--ao-tag-bg: var(--ao-color-neutral-light)}.ao-tag--solid.ao-tag--neutral{--ao-tag-color: var(--ao-color-neutral-darkest)}.ao-tag--solid .ao-tag__label{background-color:var(--ao-tag-bg)}.ao-tag--solid_icon .ao-tag__label{background-color:var(--ao-tag-bg);display:flex;gap:var(--ao-space-sm)}.ao-tag--solid .ao-tag__close{background-color:var(--ao-tag-bg)}.ao-tag--clickable .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-lightest)}.ao-tag--clickable.ao-tag--primary .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--clickable.ao-tag--black .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-dark)}.ao-tag--clickable .ao-tag__label{cursor:pointer}.ao-tag__label{padding:var(--ao-space-sm) var(--ao-space-md);color:var(--ao-tag-color);width:100%;border-radius:var(--ao-tag-border-radius);font-size:inherit;font-weight:inherit;text-align:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background-color:transparent;border-width:0}.ao-tag--closable .ao-tag__label{border-top-right-radius:0;border-bottom-right-radius:0}.ao-tag__close{display:flex;border-width:0;border-top-right-radius:var(--ao-tag-border-radius);border-bottom-right-radius:var(--ao-tag-border-radius);color:var(--ao-tag-color);background-color:transparent;cursor:pointer}.ao-tag--close-icon{padding:var(--ao-space-xs) var(--ao-space-md)}.ao-avatar{--ao-avatar-bg: var(--ao-color-primary-base);--ao-avatar-color: var(--ao-color-neutral-lightest);--ao-avatar-font-weight: --ao-font-weight-medium;--ao-avatar-font-size: var(--ao-font-size-base);--ao-avatar-padding: .5em;color:var(--ao-avatar-color);background-color:var(--ao-avatar-bg);position:relative;border-radius:var(--ao-border-radius-round);line-height:1;display:grid;grid-template-areas:"center";align-items:center;justify-content:center;padding:var(--ao-avatar-padding);cursor:default;overflow:hidden;font-weight:var(--ao-avatar-font-weight);font-size:var(--ao-avatar-font-size);flex-shrink:0}.ao-avatar--sm{--ao-avatar-font-weight: var(--ao-font-weight-bold);--ao-avatar-font-size: var(--ao-font-size-tag);--ao-avatar-padding: .8em}.ao-avatar--lg{--ao-avatar-font-weight: var(--ao-font-weight-light);--ao-avatar-font-size: var(--ao-font-size-h3)}.ao-avatar--xl{--ao-avatar-font-weight: var(--ao-font-weight-extra-light);--ao-avatar-font-size: var(--ao-font-size-h1)}.ao-avatar--primary{--ao-avatar-bg: var(--ao-color-primary-base)}.ao-avatar--neutral{--ao-avatar-bg: var(--ao-color-neutral-base)}.ao-avatar--black{--ao-avatar-bg: var(--ao-color-neutral-darkest)}.ao-avatar__initials{display:flex;flex-direction:column;grid-area:center;justify-content:center;align-items:center;width:1em;height:1em;text-align:center;text-transform:uppercase}.ao-avatar__close{grid-area:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);opacity:0;visibility:hidden}.ao-avatar:hover,.ao-avatar-img:hover{z-index:1}.ao-avatar:hover .ao-avatar__close,.ao-avatar-img:hover .ao-avatar__close{transform:translate(-50%,-50%) scale(1);opacity:1;visibility:visible}.ao-avatar-img--sm{width:var(--ao-icon-size-sm);height:var(--ao-icon-size-sm)}.ao-avatar-img--md{width:var(--ao-icon-size-md);height:var(--ao-icon-size-md)}.ao-avatar-img--lg{width:var(--ao-icon-size-lg);height:var(--ao-icon-size-lg)}.ao-avatar-img--xl{width:var(--ao-icon-size-xl);height:var(--ao-icon-size-xl)}.ao-avatar-img{position:relative;border-radius:var(--ao-border-radius-round);display:grid;grid-template-areas:"center";align-items:center;justify-content:center;cursor:default;overflow:hidden;flex-shrink:0}.ao-avatar__image{width:100%;height:100%}.ao-card-template__body{display:flex;flex-direction:row;align-items:center;flex:1}.ao-card-template__footer{display:flex;gap:var(--ao-space-md)}.ao-card-template__col-title{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-card-template__col-label{font-size:var(--ao-font-size-label);font-weight:600}.ao-card-template__col{display:flex;flex-direction:column;gap:var(--ao-space-md);color:var(--ao-color-neutral-dark);font-size:var(--ao-font-size-label)}.ao-card-template__col--phases{flex-grow:1;color:var(--ao-color-neutral-darkest)}.ao-card-template__phases-list{display:flex;gap:var(--ao-space-sm);padding:0;margin:0}.ao-card-template__col-body{display:flex;flex-direction:row;align-items:flex-start;flex:1}.ao-card-template__subitems{display:flex;margin:0;padding:0;gap:var(--ao-space-sm)}.ao-card-template__subitem{display:flex;align-items:center;list-style-type:none;font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-semi-bold)}.ao-page-header{display:flex;container:header / inline-size;z-index:1}.ao-page-header-main{display:flex;gap:var(--ao-space-sm);flex-grow:1}.ao-page-header-secondary{display:flex;gap:var(--ao-space-sm)}@container header (min-width: 720px){.ao-page-header-main{flex-direction:row;align-items:center}.ao-page-header-secondary{margin-inline-start:auto;align-items:center;justify-content:flex-end;flex-grow:1}}.ao-button-card{--ao-button-card-color: inherit;--ao-button-card-bg: transparent;--ao-button-card-border-color: currentColor;--ao-button-card-padding: var(--ao-space-md);--ao-button-card-label-padding: var(--ao-space-sm);--ao-button-card-border-radius: var(--ao-border-radius-md);display:flex;width:100%;flex:1;justify-content:center;padding:var(--ao-button-card-padding);flex-direction:column-reverse;align-items:center;border-width:var(--ao-border-width-sm);border-style:dashed;border-radius:var(--ao-button-card-border-radius);border-color:var(--ao-button-card-border-color);color:var(--ao-button-card-color);background-color:var(--ao-button-card-bg);cursor:pointer;font-size:var(--ao-font-size-button);font-weight:var(--ao-font-weight-semi-bold)}.ao-button-card--primary{--ao-button-card-color: var(--ao-color-primary-base)}.ao-button-card--secondary{--ao-button-card-color: var(--ao-color-success)}.ao-button-card--neutral{--ao-button-card-color: var(--ao-color-neutral-base)}.ao-button-card--black{--ao-button-card-color: var(--ao-color-neutral-darkest)}.ao-button-card__icon{flex-shrink:0}.ao-button-card__label{padding-inline:var(--ao-button-card-label-padding);width:100%}.ao-button-card--footer{width:100%}.ao-button-card--footer .ao-button-card__label{text-align:center}.ao-button-card--is-disabled{cursor:default}.ao-button-card--sm{--ao-button-card-padding: var(--ao-space-xs);--ao-button-card-label-padding: var(--ao-space-xs)}.ao-button-card--round{--ao-button-card-border-radius: var(--ao-border-radius-round)}.ao-card-template-item__footer{display:flex;flex:1;padding:0;margin:0;justify-content:flex-end;gap:var(--ao-space-sm);align-items:center}.ao-card-template-item__subitem{display:flex;align-items:center}.ao-card-template-item__subitem{font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-bold)}.ao-modal__wrapper{--ao-modal-z-index: 100;--ao-modal-padding-x: var(--ao-space-sm);display:grid;grid-template-columns:5% 1fr 5%;grid-template-rows:5vh 1fr 5vh;position:absolute;top:0;left:0;width:100%;height:100%;justify-items:center;align-items:flex-start;z-index:var(--ao-modal-z-index)}.ao-modal__wrapper.ao-modal__wrapper--sm{grid-template-columns:10% 1fr 10%;grid-template-rows:15vh auto 25vh}.ao-modal__backdrop{width:100%;height:100%;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-backdrop)}.ao-modal{display:flex;width:100%;max-width:768px;height:100%;min-height:0;flex-direction:column;overflow-y:auto;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-sheet);container:modal / inline-size}.ao-modal__wrapper--sm .ao-modal{height:auto}.ao-modal__header{display:flex;flex-direction:column;padding-inline:var(--ao-modal-padding-x)}.ao-modal__header-meta{display:flex;justify-content:flex-end}.ao-modal__body{display:flex;height:100%;min-height:0;flex-direction:column;flex-grow:1}.ao-modal__footer{display:flex;flex-direction:column}@media screen and (min-width: 480px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-lg)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow-y:auto}}@media screen and (min-width: 720px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-xl)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow:hidden}}.ao-tasks{display:flex;flex-direction:column}.ao-tasks__list{display:flex;flex-direction:column;padding-inline-start:0;margin-block:0;gap:var(--ao-space-md)}.ao-tasks__list-footer{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-block-start:var(--ao-space-md)}.ao-tasks__list-footer .ao-button{padding-left:0}.ao-subtask{display:flex;list-style-type:none;gap:var(--ao-space-md)}.ao-subtask__check{padding-left:0}.ao-subtask__field{flex-grow:1;border:0;border-bottom:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:0}.ao-subtask__field--checked{text-decoration:line-through}.ao-subtask__field:focus{outline:none;border-bottom:var(--ao-border-width-md) solid var(--ao-input-border-color)}.ao-subtask__assignees{width:30%}.ao-subtask__assignees .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-subtask__assignees .multiselect-wrapper{justify-content:flex-start}.ao-subtask__delete{opacity:0;visibility:hidden}.ao-subtask:is(:hover,:focus-within) .ao-subtask__delete{opacity:1;visibility:visible}.ao-files__wrapper{--ao-input-file-color: var(--ao-color-neutral-darkest);--ao-input-file-border-color: transparent;--ao-input-file-placeholder-color: var(--ao-color-neutral-base);--ao-input-file-bg: transparent;position:relative;display:flex;width:100%;flex-direction:column;flex:1;border:var(--ao-border-width-md) solid var(--ao-input-file-border-color);border-radius:var(--ao-border-radius-md);background-color:var(--ao-input-file-bg);font-family:inherit;font-size:var(--ao-font-size-text);color:var(--ao-input-file-color);overflow-y:auto}.ao-files__wrapper--drop-active{--ao-input-file-border-color: var(--ao-color-primary-base);--ao-input-file-bg: var(--ao-color-primary-lightest);outline:0}.input-field{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ao-files__input{display:flex}.ao-files__placeholder{width:100%;margin-block-start:var(--ao-space-md);text-align:center;color:var(--ao-color-neutral-base)}.ao-files__list{display:flex;padding:0;padding-block-start:var(--ao-space-md);margin:0;gap:var(--ao-space-sm);flex-wrap:wrap}.ao-file{display:flex;position:relative;padding:0;padding-inline-end:var(--ao-space-xl);list-style-type:none;background-color:var(--ao-color-primary-lighter);border-radius:var(--ao-border-radius-md)}.ao-files__delete-button{position:absolute;top:50%;right:0;transform:translateY(-50%) scale(0);transition:50ms var(--ao-transition-ease)}.ao-file:is(:hover,:focus-within) .ao-files__delete-button{transform:translateY(-50%) scale(1)}.ao-file__link{width:100%;display:flex;flex:1;align-items:center;padding-block:var(--ao-space-md);padding-inline-start:var(--ao-space-md);color:var(--ao-color-primary-darker);text-decoration:none}.ao-file__icon{flex:0}.ao-file__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ao-font-size-label)}.ao-files__dropzone{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--ao-color-backdrop)}.ao-files__dropzone-label{font-size:var(--ao-font-size-text);color:var(--ao-color-text-contrast)}.ao-rich-text-editor,.ao-rich-text-editor__content{width:100%}.ao-rich-text-editor__content .se-toolbar{border-radius:var(--ao-border-radius-sm) var(--ao-border-radius-sm) 0 0;background-color:var(--ao-color-neutral-lightest);border:none;border-bottom:1px solid var(--ao-color-neutral-light);padding:var(--ao-space-xs) var(--ao-space-sm)}.ao-rich-text-editor__content .se-toolbar .se-btn{border-radius:var(--ao-border-radius-sm);width:28px;height:28px}.ao-rich-text-editor__content .se-toolbar .se-btn:hover{background-color:var(--ao-color-neutral-light)}.ao-rich-text-editor__content .se-toolbar .se-btn-active{background-color:var(--ao-color-primary-lightest)}.ao-rich-text-editor__content .se-toolbar .se-btn-primary{color:var(--ao-color-primary-base)}.ao-rich-text-editor__content .se-editor{border-radius:0 0 var(--ao-border-radius-sm) var(--ao-border-radius-sm);background-color:var(--ao-color-white)}.ao-rich-text-editor__content .se-editor:focus-within{border-color:var(--ao-color-primary-base);box-shadow:0 0 0 2px var(--ao-color-primary-lightest)}.ao-rich-text-editor__content .se-wrapper{border:none}.ao-rich-text-editor__content .se-wrapper .se-placeholder{color:var(--ao-color-neutral);font-style:normal}.ao-comment{--ao-comment-border-radius: var(--ao-border-radius-md);--ao-comment-bg: var(--ao-color-neutral-lightest);display:grid;gap:var(--ao-space-sm);grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;font-size:var(--ao-font-size-text)}.ao-comment__avatar{grid-row:2;align-self:flex-start}.ao-comment__body{padding:0 var(--ao-space-sm);grid-column:2}.ao-comment__content-wrapper{width:100%}.ao-comment__content{display:inline;width:100%;margin:0}.ao-comment__content p{margin:0}.ao-comment__editor{margin-block-start:var(--ao-space-sm)}.ao-comment__created-at{grid-column:2;padding:0 var(--ao-space-sm);font-size:var(--ao-font-size-tag);color:var(--ao-color-neutral-light)}.ao-comment__footer{grid-column:2;display:flex;gap:var(--ao-space-sm)}.ao-comments{flex:3;overflow-y:auto}.ao-comments__list{display:flex;flex-direction:column-reverse;min-height:0;gap:var(--ao-space-lg);padding:0;padding-block-start:var(--ao-space-md);margin:0}.ao-comments__form{display:flex;flex-direction:column;gap:var(--ao-space-sm)}.ao-comments__form-editor{width:100%}.ao-comments__form-submit{display:flex;justify-content:flex-end;padding-block-start:var(--ao-space-sm)}.mention-list{position:absolute;background:white;border:1px solid var(--ao-border-width-sm);border-radius:4px;box-shadow:0 2px 6px #00000026;z-index:1000;list-style:none;padding:0;margin:0;max-height:150px;overflow-y:auto}.mention-list li{padding:8px 12px;cursor:pointer}.mention-list li:hover{background-color:var(--ao-color-blue-lighter)}.tabbar-wrapper[data-v-0e91b31f]{display:flex;align-items:center;margin:0;font-size:var(--ao-font-size-h3);padding:var(--ao-space-sm);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-neutral-lightest)}.tab-button[data-v-0e91b31f]{border:none;background-color:transparent;padding:var(--ao-space-sm) var(--ao-space-md);border-radius:var(--ao-border-radius-sm);color:var(--ao-color-black);cursor:pointer;transition:background-color .2s ease;display:flex;align-items:center;gap:var(--ao-space-xs)}.tab-button__label[data-v-0e91b31f]{display:inline-block}.tab-button__badge[data-v-0e91b31f]{display:inline-flex;align-items:center;justify-content:center;height:1rem;min-width:1rem;padding-inline:var(--ao-space-xs);font-size:11px;font-weight:var(--ao-font-weight-regular);color:var(--ao-color-neutral);background-color:var(--ao-color-neutral-lightest);border-radius:var(--ao-border-radius-pill)}.tab-button--active[data-v-0e91b31f]{background-color:var(--ao-color-primary-base);color:var(--ao-color-white)}.tab-button--active .tab-button__badge[data-v-0e91b31f]{background-color:var(--ao-color-neutral-lightest);color:var(--ao-color-neutral-dark)}.tabbar-wrapper--underline[data-v-0e91b31f]{background-color:transparent;padding:0;border-bottom:1px solid var(--ao-color-neutral-light)}.tab-button--underline[data-v-0e91b31f]{padding:var(--ao-space-sm) var(--ao-space-lg);border-radius:0;color:var(--ao-color-neutral-dark);transition:color .2s ease,border-color .2s ease;border-bottom:2px solid transparent;margin-bottom:-1px}.tab-button--underline[data-v-0e91b31f]:hover{color:var(--ao-color-black)}.tab-button--underline.tab-button--active[data-v-0e91b31f]{background-color:transparent;color:var(--ao-color-primary-base);border-bottom-color:var(--ao-color-primary-base)}.tab-button--underline .tab-button__badge[data-v-0e91b31f]{background-color:var(--ao-color-neutral-light)}.ao-activity-details{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__header{display:flex;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-lg) var(--ao-space-md)}.ao-activity-details__main{flex-grow:1;padding:var(--ao-space-lg)}.ao-activity__category{font-weight:var(--ao-font-weight-regular)}.ao-activity-details__content{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-lg)}.ao-activity-details__aside{border-top:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);margin-block-start:var(--ao-space-lg);padding-block-start:var(--ao-space-lg);display:flex;flex-direction:column}.ao-activity-details__aside-section:not(:empty){padding:var(--ao-space-xl) var(--ao-space-lg)}.ao-activity-details__aside-section+.ao-activity-details__aside-section:not(:empty){border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-light)}.ao-field__input--estim{width:8ch}@container modal (min-width: 480px){.ao-activity-details__content{overflow-y:auto}.ao-activity-details__aside{margin-block-start:0;border-top:0}}@container modal (min-width: 720px){.ao-activity-details{display:flex;flex-direction:column;height:auto;min-height:auto;flex-grow:1;flex-direction:row}.ao-activity-details__main{height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__aside{width:35%;background-color:var(--ao-color-canvas);padding-block-end:var(--ao-space-xl);padding-block-start:var(--ao-space-sm)}.ao-activity-details__aside>:nth-child(2){padding-block-start:var(--ao-space-md)}.ao-activity-details__close-button{display:flex;flex-direction:row;justify-content:end;margin-inline-end:var(--ao-space-sm)}.ao-activity-details__close-button *{cursor:pointer}.ao-activity-details__aside-section--created-by{margin-block-start:auto;border-block-start-width:0}.ao-activity-details__multiselect .multiselect-tags-search{background-color:transparent}.ao-activity-details__multiselect.ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-bg: transparent;--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-field__input:not(.ao-field__input--estim){background-color:transparent;border-color:transparent}}.ao-activity__created-by{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-activity__ao-tag{display:inline-flex;width:auto;border:none;border-radius:var(--ao-tag-border-radius)}.ao-activity__ao-tag .ao-tag__label{width:auto;max-width:100%}.assignee-inline{display:flex;align-items:center;gap:8px}.ao-activity-details__tabs{margin-block:var(--ao-space-md)}.ao-activity-details__tab-content{padding-block:var(--ao-space-md)}.ao-activity-details__description-textarea{width:100%;padding:var(--ao-space-md);border:1px solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-white);font-family:inherit;font-size:var(--ao-font-size-base);line-height:1.5;resize:vertical;transition:border-color .2s ease,box-shadow .2s ease}.ao-activity-details__description-textarea:hover{border-color:var(--ao-color-neutral-dark)}.ao-activity-details__description-textarea:focus{outline:none;border-color:var(--ao-color-primary-base);box-shadow:0 0 0 2px var(--ao-color-primary-lightest)}.ao-activity-details__description-textarea:read-only{background-color:transparent;border-color:transparent;cursor:default}.ao-activity-details__description-textarea:read-only:hover{border-color:transparent}.ao-rule-line{display:flex}.ao-rule-line__remove{visibility:hidden;opacity:0}.ao-rule-line:hover .ao-rule-line__remove{visibility:visible;opacity:1}.ao-template-rules__body{display:flex;flex-direction:column;flex:1;align-items:stretch;gap:var(--ao-space-lg)}.ao-template-rules__list{padding:0;margin:0;display:flex;flex-direction:column;flex:1;gap:var(--ao-space-md)}.ao-template-rule{list-style:none}.ao-template-details__cols{display:flex;list-style-type:none;padding:0;margin:0;container:columns / inline-size;overflow-x:auto}.ao-template-details__col{width:100%;padding-inline:var(--ao-space-md);flex-shrink:0}@container columns (min-width: 480px){.ao-template-details__col{width:50%}}@container columns (min-width: 960px){.ao-template-details__col{width:calc(1 / 3 * 100%)}}.ao-card{--ao-card-bg: var(--ao-color-card);--ao-card-color: inherit;--ao-card-padding: var(--ao-space-md);--ao-card-elevation: var(--ao-elevation-2dp);display:flex;flex-direction:row;border-radius:var(--ao-border-radius-md);background-color:var(--ao-card-bg);color:var(--ao-card-color);box-shadow:var(--ao-card-elevation);transform:translateY(0)}.ao-card__content{display:flex;flex-direction:column;width:100%}.ao-card__left-border{width:var(--ao-space-md);border-top-left-radius:var(--ao-border-radius-md);border-bottom-left-radius:var(--ao-border-radius-md)}:not(.ao-list-kanban__transition)>.ao-card{transition:all .15s var(--ao-transition-ease)}.ao-card--clickable{cursor:pointer}.ao-card--clickable:is(:hover,:focus-within){--ao-card-elevation: var(--ao-elevation-4dp);transform:translateY(-2px)}.ao-card__header{display:flex;flex-direction:column;padding-block-start:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-card__body{display:flex;flex-direction:column;flex:1;padding-inline:var(--ao-card-padding)}.ao-card__footer{display:flex;flex-direction:column;padding-block-end:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-progress{--ao-progress-bg: var(--ao-color-neutral-lightest);--ao-progress-height: var(--ao-grid-size);--ao-progress-border-radius: var(--ao-border-radius-md);height:var(--ao-progress-height);width:100%;display:grid;grid-column:1 / -1;grid-row:2;background-color:var(--ao-progress-bg);border-radius:var(--ao-progress-border-radius)}.ao-progress__progress{grid-column:1;grid-row:1;border-radius:var(--ao-progress-border-radius);background-color:var(--ao-progress-color);opacity:.2}.ao-progress--success{--ao-progress-color: var(--ao-color-success)}.ao-progress--warning{--ao-progress-color: var(--ao-color-warning)}.ao-progress--danger{--ao-progress-color: var(--ao-color-danger)}.ao-progress__progress:nth-child(1){opacity:1;z-index:1}.hu-color-picker{padding:10px;background:#1d2024;border-radius:4px;box-shadow:0 0 16px #00000029;z-index:1}.hu-color-picker.light{background:#f7f8f9}.hu-color-picker.light .color-show .sucker{background:#eceef0}.hu-color-picker.light .color-type .name{background:#e7e8e9}.hu-color-picker.light .color-type .value{color:#666;background:#eceef0}.hu-color-picker.light .colors.history{border-top:1px solid #eee}.hu-color-picker canvas{vertical-align:top}.hu-color-picker .color-set{display:flex}.hu-color-picker .color-show{margin-top:8px;display:flex}.saturation{position:relative;cursor:pointer}.saturation .slide{position:absolute;left:100px;top:0;width:10px;height:10px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 1px 1px #0000004d;pointer-events:none}.color-type{display:flex;margin-top:8px;font-size:12px}.color-type .name{width:60px;height:30px;float:left;display:flex;justify-content:center;align-items:center;color:#999;background:#252930}.color-type .value{flex:1;height:30px;min-width:100px;padding:0 12px;border:0;color:#fff;background:#2e333a;box-sizing:border-box}.color-alpha{position:relative;margin-left:8px;cursor:pointer}.color-alpha .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.sucker{width:30px;fill:#9099a4;background:#2e333a;cursor:pointer;transition:all .3s}.sucker.active,.sucker:hover{fill:#1593ff}.colors{padding:0;margin:0}.colors.history{margin-top:10px;border-top:1px solid #2e333a}.colors .item{position:relative;width:16px;height:16px;margin:10px 0 0 10px;border-radius:3px;box-sizing:border-box;vertical-align:top;display:inline-block;transition:all .1s;cursor:pointer}.colors .item:nth-child(8n+1){margin-left:0}.colors .item:hover{transform:scale(1.4)}.colors .item .alpha{height:100%;border-radius:4px}.colors .item .color{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.hue{position:relative;margin-left:8px;cursor:pointer}.hue .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.color-picker-wrapper{position:relative}.color-picker{box-shadow:var(--ao-elevation-2dp)}.color-picker-box{box-sizing:content-box}.ao-card-project-phase__header{display:flex;justify-content:flex-end}.ao-card-project-phase__footer{display:flex;flex-direction:column}.ao-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-card-project-phase__archive{opacity:0;visibility:hidden}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__archive{opacity:1;visibility:visible}.ao-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-card-project-phase__footer-row.ao-card-project-phase__no_deadline,.ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline{opacity:0;visibility:hidden}.ao-card-project-phase__deadline--readonly,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-phase__progress{flex-grow:1}.aoBadge{display:inline-block;padding:4px;width:8px;height:8px;border-radius:var(--ao-border-radius-round)}.ao-card-project-milestone{--ao-card-project-milestone-border-color: transparent;padding:0;border:var(--ao-border-width-md) solid var(--ao-card-project-milestone-border-color)}.ao-card-project-milestone__default{display:flex;justify-content:space-between}.ao-card-project-milestone__archive{display:none;height:fit-content;padding-block:var(--ao-space-md)}.ao-card-project-milestone:hover .ao-card-project-milestone__archive{display:flex}.ao-card-project-milestone__activities{display:flex;flex-direction:column}.ao-card-project-milestone__activities-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-project-milestone__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-milestone:hover .ao-card-project-milestone__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-milestone__activities-row+.ao-card-project-milestone__activities-row{margin-block-start:var(--ao-space-md)}.ao-card-project-milestone__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-milestone__progress{flex-grow:1}.ao-card-project-milestone__title{max-width:fit-content;display:inline;word-break:normal}.ao-card-project-item-milestone__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h5)}.ao-card-project-milestone__footer{display:flex;align-items:center;padding-block-start:var(--ao-space-sm);gap:var(--ao-space-sm)}.ao-card-project-milestone__assignee{display:flex;justify-content:flex-start;margin-inline-start:auto}.ao-card-project-milestone__deadline{padding-block:var(--ao-space-sm)}.ao-card-project-milestone__important{color:var(--ao-color-danger)}.ao-card-project-milestone__important--selected{color:var(--ao-color-white)}.ao-title-with-badge-wrapper{display:flex;align-items:center;gap:8px}.ao-mapping-card-project-phase__header{display:flex;justify-content:flex-end;opacity:0;visibility:collapse;//transition: collapse .15s}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__header{opacity:1;visibility:visible}.ao-mapping-card-project-phase__footer{display:flex;flex-direction:column}.ao-mapping-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-mapping-card-project-phase__archive{opacity:0;visibility:hidden}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__archive{opacity:1;visibility:visible}.ao-mapping-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-mapping-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-mapping-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-mapping-card-project-phase__footer-row.ao-mapping-card-project-phase__no_deadline,.ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline{opacity:0;visibility:collapse}.ao-mapping-card-project-phase__deadline--readonly,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-mapping-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-item__title-line{display:block;word-break:normal}.ao-card-project-item-phase__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h4)}.ao-mapping-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-mapping-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-mapping-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-mapping-card-project-phase__progress{flex-grow:1}.ao-project-phase__drag-handle{opacity:0;visibility:hidden}.ao-project-phase__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-project-phase:hover .ao-project-phase__drag-handle{opacity:1;visibility:visible}.ao-project-phase{display:flex;flex-direction:column;padding-block:var(--ao-space-md)}.ao-project-phase--selected .ao-project-phase__col-phase{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-xxl);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-mapping-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-lg) var(--ao-space-sm);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-project-phase__col-milestones{display:flex;flex:1;padding:var(--ao-space-md);gap:var(--ao-space-md);overflow-x:auto;scroll-snap-type:x mandatory}.ao-project-phase__milestones,.ao-project-phase__milestones-list{display:contents}.ao-project-phase__milestone{scroll-snap-align:center;width:90%;flex-shrink:0}.ao-project-phase__milestones-list-footer{display:flex;scroll-snap-align:center}@container page (min-width: 480px){.ao-project-phase__milestones-list{grid-auto-columns:45%;overflow-x:auto}.ao-project-phase__milestone{width:45%}}@container page (min-width: 720px){.ao-project-phase{flex-direction:row}.ao-project-phase__col-phase,.ao-mapping-project-phase__col-phase{width:20em}.ao-project-phase+.ao-project-phase{border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-project-phase__col-milestones{flex-direction:column;border-inline-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);overflow:hidden}.ao-project-phase__milestones{display:flex;width:100%;flex-direction:row;align-items:center;height:100%;padding:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet)}.ao-project-phases__draggable-card{margin:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet);display:flex;flex-direction:row}.ao-project-phase--selected .ao-project-phase__milestones{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__milestones-list{display:grid;padding:var(--ao-space-md);flex-shrink:1;max-width:100%;min-width:0;grid-auto-columns:minmax(max(20%,147px),196px);grid-auto-flow:column;align-items:stretch;gap:var(--ao-space-md);scroll-snap-type:x mandatory;scroll-snap-padding:var(--ao-space-md)}.ao-project-phase__milestone{width:100%;scroll-snap-align:start}.ao-project-phase__milestones-list-footer{align-items:center;padding:var(--ao-space-md)}.ao-project-phase__milestone-add{flex-grow:0;flex-shrink:0}}.ao-project__phases{display:flex;flex-direction:column;height:100%;min-height:0;padding-inline-start:0;margin-block:0}.ao-project-phase__add-phase{padding:var(--ao-space-lg)}@container page (min-width: 720px){.ao-project-phase__phases-list-footer{display:flex}.ao-project-phase__empty_drag{width:40px}.ao-project-phase__phases-list-footer .ao-project-phase__col-phase{max-width:20em;padding:var(--ao-space-md)}.ao-project-phase__phases-list-footer .ao-project-phase__col-milestones{border:none}}.ao-add-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md);padding:0 var(--ao-space-xl) var(--ao-space-xl) var(--ao-space-xl)}.ao-add-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-add-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md)}.ao-save-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-save-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{padding:0 var(--ao-space-lg) var(--ao-space-lg) var(--ao-space-lg)}.ao-save-template-modal__phases{margin-top:var(--ao-space-md)}.ao-field__label{padding:var(--ao-space-md) 0;font-size:var(--ao-font-size-base)}.ao-save-template-modal__phases-list{display:flex;flex-direction:column;gap:var(--ao-space-sm)}.ao-field--checkbox{display:flex;flex-direction:row}.ao-project-overview__add-template .ao-project-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:hidden}.ao-project__body{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;min-width:0;flex-grow:1;align-items:flex-start;padding-block:var(--ao-space-md);overflow:hidden}@container page (min-width: 720px){.ao-project{padding-inline:var(--ao-space-lg)}}.ao-card-feed{cursor:pointer}.ao-card-feed__header{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-items:flex-start}.ao-card-feed__header-secondary{grid-column:2;grid-row:1}.ao-card-feed__header-icons{margin-inline-start:auto}.ao-card-feed__title-group{margin-block:var(--ao-space-md);display:flex;align-items:center}.ao-card-feed__body{display:flex;flex-direction:column;align-items:flex-start}.ao-card-feed__project{max-width:100%}.ao-card-feed__breadcrumbs{font-size:var(--ao-font-size-label)}.ao-card-feed_deadline{color:var(--ao-color-neutral-base);font-size:var(--ao-font-size-label)}.ao-card-feed__important{margin-inline-start:auto;color:var(--ao-color-danger)}.ao-card-feed__warning{color:var(--ao-color-warning)}.ao-card-feed__footer{display:flex;flex-direction:column}.ao-card-feed__footer-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-feed__secondary{display:flex;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-feed:hover .ao-card-feed__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-feed__footer-row+.ao-card-feed__footer-row{margin-block-start:var(--ao-space-md)}.ao-assignees{display:flex;margin:0;padding:0}.ao-assignee{list-style-type:none}.ao-card-feed__subitems{margin:0;margin-inline-start:auto;padding:0;display:flex;gap:var(--ao-space-sm);align-items:center}.ao-card-feed__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-feed__progress-wrapper{display:flex;width:100%;align-items:center;gap:var(--ao-space-md)}.ao-card-feed__progress{flex-grow:1}.ao-card-feed__timer-wrapper{opacity:0;visibility:hidden;margin-inline-start:auto}.ao-card-feed:is(:hover,:focus-within) .ao-card-feed__timer-wrapper{opacity:1;visibility:visible}.ao-card-feed__timer{cursor:pointer;color:var(--ao-color-primary-base)}.ao-card-feed__timer:hover{color:var(--ao-color-primary-dark)}.ao-card-feed__closed{color:var(--ao-color-primary-base)}.ao-card-feed--closed :is(.ao-card-feed__body,.ao-card-feed__footer,.ao-card-feed__project,.ao-card-feed__header-icons>*:not(.ao-card-feed__closed)){opacity:.3}.ao-card-feed__title-line{display:block;word-break:normal}.ao-card-feed__slug{font-weight:var(--ao-font-weight-semi-bold);white-space:nowrap;display:inline}.ao-card-feed__title-inline{display:inline;word-break:normal}.ao-project-milestone{display:flex;flex-direction:column;flex:1;height:100%;min-height:0;width:24em;background-color:var(--ao-color-sheet);padding:var(--ao-space-lg)}.ao-project-milestone__header{display:flex;align-items:flex-start;flex-direction:column}.ao-project-milestone__header_line{display:flex;align-items:flex-start;justify-content:space-between;width:100%}.ao-project-milestone__title{display:flex;padding-inline:var(--ao-space-lg);width:100%}.ao-project-milestone__body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-project-milestone__activities{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-md);margin-block:0;overflow-y:auto}.ao-project-milestone__footer{display:flex;flex-direction:column;padding:var(--ao-space-md)}.ao-milestone__fieldset{width:100%;padding:var(--ao-space-md);border-block-end:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-milestone__field-row{width:100%;align-items:center}.ao-milestone__field-row+.ao-milestone__field-row{margin-block-start:var(--ao-space-sm)}.ao-milestone__field{padding:var(--ao-space-sm);font-size:var(--ao-font-size-label);background-color:transparent;border-width:0}.ao-milestone__field-multiselect{width:14ch;background-color:transparent}.ao-milestone__field-multiselect .multiselect-tags-search{background-color:transparent}.ao-milestone__field-multiselect .ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-milestone__important,.ao-milestone__close{margin-inline-start:auto}.color-button{cursor:pointer;width:125px;height:24px;border-radius:var(--ao-border-radius-sm);border:1px solid #ccc}.ao-col-header{--ao-col-header-bg: var(--ao-color-card);display:flex;background-color:var(--ao-col-header-bg);border-radius:var(--ao-border-radius-md);align-items:center;padding:var(--ao-space-md)}.ao-col-header__title{flex:1}.ao-col-header__items{flex-shrink:0}.ao-list-kanban{display:flex;flex-direction:column;gap:var(--ao-space-lg);height:100%;min-height:0;scroll-snap-align:start end}.ao-list-kanban__list{display:flex;flex-direction:column;gap:var(--ao-space-md);min-height:0;overflow-y:auto;padding-inline:var(--ao-space-md)}.ao-list-kanban__header,.ao-list-kanban__footer{padding-inline:var(--ao-space-md)}.ao-list-kanban__end{display:flex;flex-direction:column;padding:var(--ao-space-md);align-items:center;justify-items:center;flex-shrink:0}.ao-list-kanban__divider{width:50%;height:2px;background-color:var(--ao-color-neutral-lightest)}.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-move,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-enter-active,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-leave-active{transition:all .5s ease}.ao-list-kanban__transition-leave-active{position:absolute}.ao-list-kanban__ghost{opacity:.5;background:var(--ao-color-primary-lightest)}.ao-search-field{--ao-search-field-icon-size: var(--ao-icon-size-md);--ao-search-field-icon-slot-size: calc( var(--ao-search-field-icon-size) + var(--ao-space-xl) );--ao-search-field-placeholder-color: var(--ao-color-black);--ao-input-border-color: var(--ao-color-neutral-lightest);display:grid;grid-template-columns:1fr var(--ao-search-field-icon-slot-size);align-items:center;gap:var(--ao-space-sm);flex:1}.ao-search-field__input{grid-column:1 / -1;grid-row:1;width:100%;padding-inline-end:var(--ao-search-field-icon-slot-size);font-size:var(--ao-font-size-button);border-radius:var(--ao-border-radius-md)}.ao-search-field__input:focus{color:var(--ao-color-primary-base);outline-color:var(--ao-color-primary-lightest)}.ao-search-field__input::placeholder{color:var(--ao-search-field-placeholder-color);opacity:1}.ao-search-field__action{grid-column:2;grid-row:1;justify-self:center;transform:scale(0);transition:transform .15s var(--ao-transition-ease);transform-origin:50%}.ao-search-field__action--visible{transform:scale(1)}.ao-search-field__icon{width:var(--ao-search-field-icon-size);height:var(--ao-search-field-icon-size);color:var(--ao-color-neutral-dark);pointer-events:none}.ao-feed{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;container:page / inline-size}.ao-feed__body{display:grid;grid-auto-flow:column;grid-auto-columns:100%;height:100%;min-height:0;flex-grow:1;overflow-x:auto;align-items:flex-start;padding-block:var(--ao-space-md);scroll-snap-type:x mandatory}.ao-feed__activity-details__header{display:flex;gap:var(--ao-space-md)}.ao-feed__activity-details__project{flex:2}.ao-feed__activity-details__status{flex:1}@container page (min-width: 420px){.ao-feed__body{grid-auto-columns:50cqi}}@container page (min-width: 768px){.ao-feed__body{grid-auto-columns:33cqi}}@container page (min-width: 1024px){.ao-feed__body{grid-auto-columns:minmax(calc(var(--ao-grid-size) * 32),calc(var(--ao-grid-size) * 32))}}.ao-kanban__col{display:flex;flex-direction:column;gap:var(--ao-space-md);max-height:100%;min-height:0;overflow-y:auto;padding:var(--ao-space-lg)}.ao-feed__filters{flex:1;display:flex;gap:1%;align-items:center;flex-direction:column}.ao-feed__filter .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-feed__filter .multiselect-wrapper{justify-content:flex-start}.ao-feed__show-archived{flex:0 auto}@container header (min-width: 720px){.ao-feed__filters{flex-direction:row}.ao-feed__search{padding-inline-end:var(--ao-space-md);border-right:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-feed__search,.ao-feed__filter__projects{max-width:33%}.ao-feed__filter__assignees,.ao-feed__filter__types{max-width:15%}}.ao-project-mapping-overview__add-template,.ao-project-mapping-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-mapping-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project-mapping{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:visible}.ao-project-mapping-mapping__body{display:flex;flex-direction:row;align-items:flex-start;gap:var(--ao-space-md);padding-block:var(--ao-space-md)}.ao-project-mapping-mapping__phases{flex:0 0 auto;min-width:0;max-height:100vh;overflow:scroll}.ao-project-mapping-mapping__image-wrapper{flex:1 1 0;position:relative;min-width:0}.architecture-image{position:sticky;top:var(--ao-space-md);width:100%;height:auto;display:block}@container page (min-width: 720px){.ao-project-mapping{padding-inline:var(--ao-space-lg)}}.ao-templates{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg)}.ao-templates__header{display:flex;padding:var(--ao-space-sm)}.ao-templates__list{display:flex;margin:0;padding:var(--ao-space-sm);list-style-type:none;flex-direction:column;gap:var(--ao-space-md);container:column / inline-size}
2
+ `,document.head.appendChild(c2);const WI="",UI="",qI="",ZI="",aC=a.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(i){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(rt.RouterView),a.mergeProps({templates:i.templates},e.$attrs),null,16,["templates"]))}}),ne=(i,e)=>{const t=i.__vccOpts||i;for(const[s,n]of e)t[s]=n;return t},lC={},cC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dC(i,e){return a.openBlock(),a.createElementBlock("svg",cC,[...e[0]||(e[0]=[a.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 hC=ne(lC,[["render",dC]]),uC={},fC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pC(i,e){return a.openBlock(),a.createElementBlock("svg",fC,[...e[0]||(e[0]=[a.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 mC=ne(uC,[["render",pC]]),gC={},vC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yC(i,e){return a.openBlock(),a.createElementBlock("svg",vC,[...e[0]||(e[0]=[a.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 bC=ne(gC,[["render",yC]]),CC={},wC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _C(i,e){return a.openBlock(),a.createElementBlock("svg",wC,[...e[0]||(e[0]=[a.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 kC=ne(CC,[["render",_C]]),xC={},EC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function TC(i,e){return a.openBlock(),a.createElementBlock("svg",EC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const SC=ne(xC,[["render",TC]]),MC={},BC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function NC(i,e){return a.openBlock(),a.createElementBlock("svg",BC,[...e[0]||(e[0]=[a.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 LC=ne(MC,[["render",NC]]),AC={},$C={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function OC(i,e){return a.openBlock(),a.createElementBlock("svg",$C,[...e[0]||(e[0]=[a.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 VC=ne(AC,[["render",OC]]),RC={},IC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function DC(i,e){return a.openBlock(),a.createElementBlock("svg",IC,[...e[0]||(e[0]=[a.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 PC=ne(RC,[["render",DC]]),HC={},FC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zC(i,e){return a.openBlock(),a.createElementBlock("svg",FC,[...e[0]||(e[0]=[a.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 jC=ne(HC,[["render",zC]]),WC={},UC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qC(i,e){return a.openBlock(),a.createElementBlock("svg",UC,[...e[0]||(e[0]=[a.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 ZC=ne(WC,[["render",qC]]),GC={},YC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KC(i,e){return a.openBlock(),a.createElementBlock("svg",YC,[...e[0]||(e[0]=[a.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 XC=ne(GC,[["render",KC]]),QC={},JC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ew(i,e){return a.openBlock(),a.createElementBlock("svg",JC,[...e[0]||(e[0]=[a.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 tw=ne(QC,[["render",ew]]),iw={},sw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nw(i,e){return a.openBlock(),a.createElementBlock("svg",sw,[...e[0]||(e[0]=[a.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 ow=ne(iw,[["render",nw]]),rw={},aw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lw(i,e){return a.openBlock(),a.createElementBlock("svg",aw,[...e[0]||(e[0]=[a.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 cw=ne(rw,[["render",lw]]),dw={},hw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uw(i,e){return a.openBlock(),a.createElementBlock("svg",hw,[...e[0]||(e[0]=[a.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 fw=ne(dw,[["render",uw]]),pw={},mw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gw(i,e){return a.openBlock(),a.createElementBlock("svg",mw,[...e[0]||(e[0]=[a.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 vw=ne(pw,[["render",gw]]),yw={},bw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cw(i,e){return a.openBlock(),a.createElementBlock("svg",bw,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const ww=ne(yw,[["render",Cw]]),_w={},kw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xw(i,e){return a.openBlock(),a.createElementBlock("svg",kw,[...e[0]||(e[0]=[a.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 Ew=ne(_w,[["render",xw]]),Tw={},Sw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mw(i,e){return a.openBlock(),a.createElementBlock("svg",Sw,[...e[0]||(e[0]=[a.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 Bw=ne(Tw,[["render",Mw]]),Nw={},Lw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Aw(i,e){return a.openBlock(),a.createElementBlock("svg",Lw,[...e[0]||(e[0]=[a.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 $w=ne(Nw,[["render",Aw]]),Ow={},Vw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rw(i,e){return a.openBlock(),a.createElementBlock("svg",Vw,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const Iw=ne(Ow,[["render",Rw]]),Dw={},Pw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hw(i,e){return a.openBlock(),a.createElementBlock("svg",Pw,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const Fw=ne(Dw,[["render",Hw]]),zw={},jw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ww(i,e){return a.openBlock(),a.createElementBlock("svg",jw,[...e[0]||(e[0]=[a.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 Uw=ne(zw,[["render",Ww]]),qw={},Zw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gw(i,e){return a.openBlock(),a.createElementBlock("svg",Zw,[...e[0]||(e[0]=[a.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 Yw=ne(qw,[["render",Gw]]),Kw={},Xw={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qw(i,e){return a.openBlock(),a.createElementBlock("svg",Xw,[...e[0]||(e[0]=[a.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 Jw=ne(Kw,[["render",Qw]]),e7={},t7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i7(i,e){return a.openBlock(),a.createElementBlock("svg",t7,[...e[0]||(e[0]=[a.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 s7=ne(e7,[["render",i7]]),n7={},o7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r7(i,e){return a.openBlock(),a.createElementBlock("svg",o7,[...e[0]||(e[0]=[a.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 a7=ne(n7,[["render",r7]]),l7={},c7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d7(i,e){return a.openBlock(),a.createElementBlock("svg",c7,[...e[0]||(e[0]=[a.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 h7=ne(l7,[["render",d7]]),u7={},f7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p7(i,e){return a.openBlock(),a.createElementBlock("svg",f7,[...e[0]||(e[0]=[a.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 m7=ne(u7,[["render",p7]]),g7={},v7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y7(i,e){return a.openBlock(),a.createElementBlock("svg",v7,[...e[0]||(e[0]=[a.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 b7=ne(g7,[["render",y7]]),C7={},w7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _7(i,e){return a.openBlock(),a.createElementBlock("svg",w7,[...e[0]||(e[0]=[a.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 k7=ne(C7,[["render",_7]]),x7={},E7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T7(i,e){return a.openBlock(),a.createElementBlock("svg",E7,[...e[0]||(e[0]=[a.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 S7=ne(x7,[["render",T7]]),M7={},B7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N7(i,e){return a.openBlock(),a.createElementBlock("svg",B7,[...e[0]||(e[0]=[a.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 L7=ne(M7,[["render",N7]]),A7={},$7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O7(i,e){return a.openBlock(),a.createElementBlock("svg",$7,[...e[0]||(e[0]=[a.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 V7=ne(A7,[["render",O7]]),R7={},I7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D7(i,e){return a.openBlock(),a.createElementBlock("svg",I7,[...e[0]||(e[0]=[a.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 P7=ne(R7,[["render",D7]]),H7={},F7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z7(i,e){return a.openBlock(),a.createElementBlock("svg",F7,[...e[0]||(e[0]=[a.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 j7=ne(H7,[["render",z7]]),W7={},U7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q7(i,e){return a.openBlock(),a.createElementBlock("svg",U7,[...e[0]||(e[0]=[a.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 Z7=ne(W7,[["render",q7]]),G7={},Y7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K7(i,e){return a.openBlock(),a.createElementBlock("svg",Y7,[...e[0]||(e[0]=[a.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 X7=ne(G7,[["render",K7]]),Q7={},J7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e4(i,e){return a.openBlock(),a.createElementBlock("svg",J7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const t4=ne(Q7,[["render",e4]]),i4={},s4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n4(i,e){return a.openBlock(),a.createElementBlock("svg",s4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const o4=ne(i4,[["render",n4]]),r4=a.defineComponent({name:"LoadingIcon"}),GI="",a4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l4(i,e,t,s,n,r){return a.openBlock(),a.createElementBlock("svg",a4,[...e[0]||(e[0]=[a.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),a.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),a.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const c4=ne(r4,[["render",l4],["__scopeId","data-v-ad6da4a9"]]),d4={},h4={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function u4(i,e){return a.openBlock(),a.createElementBlock("svg",h4,[...e[0]||(e[0]=[a.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 f4=ne(d4,[["render",u4]]),p4={},m4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function g4(i,e){return a.openBlock(),a.createElementBlock("svg",m4,[...e[0]||(e[0]=[a.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 v4=ne(p4,[["render",g4]]),y4={},b4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function C4(i,e){return a.openBlock(),a.createElementBlock("svg",b4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const w4=ne(y4,[["render",C4]]),_4={},k4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x4(i,e){return a.openBlock(),a.createElementBlock("svg",k4,[...e[0]||(e[0]=[a.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 E4=ne(_4,[["render",x4]]),T4={},S4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M4(i,e){return a.openBlock(),a.createElementBlock("svg",S4,[...e[0]||(e[0]=[a.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 B4=ne(T4,[["render",M4]]),N4={},L4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A4(i,e){return a.openBlock(),a.createElementBlock("svg",L4,[...e[0]||(e[0]=[a.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 $4=ne(N4,[["render",A4]]),O4={},V4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R4(i,e){return a.openBlock(),a.createElementBlock("svg",V4,[...e[0]||(e[0]=[a.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 I4=ne(O4,[["render",R4]]),D4={},P4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H4(i,e){return a.openBlock(),a.createElementBlock("svg",P4,[...e[0]||(e[0]=[a.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 F4=ne(D4,[["render",H4]]),z4={},j4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function W4(i,e){return a.openBlock(),a.createElementBlock("svg",j4,[...e[0]||(e[0]=[a.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 U4=ne(z4,[["render",W4]]),q4={},Z4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G4(i,e){return a.openBlock(),a.createElementBlock("svg",Z4,[...e[0]||(e[0]=[a.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 Y4=ne(q4,[["render",G4]]),K4={},X4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q4(i,e){return a.openBlock(),a.createElementBlock("svg",X4,[...e[0]||(e[0]=[a.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 J4=ne(K4,[["render",Q4]]),e_={},t_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i_(i,e){return a.openBlock(),a.createElementBlock("svg",t_,[...e[0]||(e[0]=[a.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 s_=ne(e_,[["render",i_]]),n_={},o_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r_(i,e){return a.openBlock(),a.createElementBlock("svg",o_,[...e[0]||(e[0]=[a.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 a_=ne(n_,[["render",r_]]),l_={},c_={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d_(i,e){return a.openBlock(),a.createElementBlock("svg",c_,[...e[0]||(e[0]=[a.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 h_=ne(l_,[["render",d_]]),u_={},f_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p_(i,e){return a.openBlock(),a.createElementBlock("svg",f_,[...e[0]||(e[0]=[a.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 m_=ne(u_,[["render",p_]]),g_={},v_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y_(i,e){return a.openBlock(),a.createElementBlock("svg",v_,[...e[0]||(e[0]=[a.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 b_=ne(g_,[["render",y_]]),C_={},w_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function __(i,e){return a.openBlock(),a.createElementBlock("svg",w_,[...e[0]||(e[0]=[a.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 k_=ne(C_,[["render",__]]),x_={},E_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T_(i,e){return a.openBlock(),a.createElementBlock("svg",E_,[...e[0]||(e[0]=[a.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 S_=ne(x_,[["render",T_]]),M_={},B_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N_(i,e){return a.openBlock(),a.createElementBlock("svg",B_,[...e[0]||(e[0]=[a.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 L_=ne(M_,[["render",N_]]),A_={},$_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function O_(i,e){return a.openBlock(),a.createElementBlock("svg",$_,[...e[0]||(e[0]=[a.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 V_=ne(A_,[["render",O_]]),R_={},I_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D_(i,e){return a.openBlock(),a.createElementBlock("svg",I_,[...e[0]||(e[0]=[a.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 P_=ne(R_,[["render",D_]]),H_={},F_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z_(i,e){return a.openBlock(),a.createElementBlock("svg",F_,[...e[0]||(e[0]=[a.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 j_=ne(H_,[["render",z_]]),W_={},U_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q_(i,e){return a.openBlock(),a.createElementBlock("svg",U_,[...e[0]||(e[0]=[a.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 Z_=ne(W_,[["render",q_]]),G_={},Y_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K_(i,e){return a.openBlock(),a.createElementBlock("svg",Y_,[...e[0]||(e[0]=[a.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 X_=ne(G_,[["render",K_]]),Q_={},J_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ek(i,e){return a.openBlock(),a.createElementBlock("svg",J_,[...e[0]||(e[0]=[a.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 tk=ne(Q_,[["render",ek]]),ik={},sk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nk(i,e){return a.openBlock(),a.createElementBlock("svg",sk,[...e[0]||(e[0]=[a.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 ok=ne(ik,[["render",nk]]),rk={},ak={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lk(i,e){return a.openBlock(),a.createElementBlock("svg",ak,[...e[0]||(e[0]=[a.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 ck=ne(rk,[["render",lk]]),dk={},hk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uk(i,e){return a.openBlock(),a.createElementBlock("svg",hk,[...e[0]||(e[0]=[a.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 fk=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:hC,AccountCircle:mC,AccountTreeOutlineRounded:bC,AccountTreeRounded:kC,Add:SC,AddBoxOutlineRounded:LC,ArchiveOutlineRounded:VC,ArrowBackRounded:PC,ArrowDropDownRounded:jC,ArrowForwardRounded:ZC,AssignmentOutlineRounded:XC,AttachFileRounded:tw,CalendarTodayOutlineRounded:ow,CancelRounded:cw,ChatOutline:fw,CheckBoxOutlineBlank:vw,CheckBoxOutlineBlankSharp:ww,CheckBoxOutlineRounded:Ew,CheckSmallRounded:Bw,ChecklistRounded:$w,ChevronLeft:Iw,ChevronRight:Fw,CloseRounded:Uw,ContactsOutlineRounded:Yw,ContentCopyOutline:Jw,DeleteOutlineRounded:s7,DragIndicator:a7,EditDocumentRounded:h7,EditOutline:m7,ErrorOutlineRounded:b7,FilterListRounded:k7,FlagRounded:S7,FlowsheetOutlineRounded:L7,GifBox:V7,GroupsOutline:P7,HomeOutlineRounded:j7,ImageRounded:Z7,Info:X7,KeyboardArrowDown:t4,KeyboardArrowUp:o4,Loading:c4,Lock:f4,LogoutRounded:v4,Menu:w4,MoreHoriz:E4,MoreTimeRounded:B4,MoreVert:$4,MountainFlagOutlineRounded:I4,PersonAddOutlineRounded:F4,PictureAsPdfRounded:U4,RadioButtonChecked:Y4,RadioButtonCheckedOutline:J4,RadioButtonUnchecked:s_,RemoveRounded:a_,SearchRounded:h_,SelectCheckBox:m_,SendRounded:b_,Settings:k_,SlideshowRounded:S_,Target:L_,TaskOutlineRounded:V_,TextSnippetRounded:P_,TimerOutline:j_,ViewComfyAltRounded:Z_,ViewCompactAltRounded:X_,ViewTimelineRounded:tk,WarningOutlineRounded:ok,WarningRounded:ck,WaterfallChartRounded:ne(dk,[["render",uk]])},Symbol.toStringTag,{value:"Module"})),pk={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},pu={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Hm={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"};({...Hm,...{WARNING:"warning",SUCCESS:"success",DANGER:"danger"}});const d2={ROUND:"round",ROUNDED:"rounded"},mk={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},qe=a.defineComponent({__name:"AoIcon",props:{name:{},size:{default:pu.MD}},setup(i){const e=i,t=a.computed(()=>fk[e.name]);return(s,n)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.value),{class:a.normalizeClass(["ao-icon",`ao-icon--${i.size}`])},null,8,["class"]))}}),XI="",gk=["type"],vk={key:0,class:"ao-button__label"},ke=a.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>pk.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>pu.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>d2.ROUNDED}},setup(i){const e=i,t=a.computed(()=>e.size),s=a.computed(()=>e.isLoading?"Loading":e.iconName);return(n,r)=>(a.openBlock(),a.createElementBlock("button",{type:i.type,class:a.normalizeClass(["ao-button",`ao-button--${i.variant}`,i.color?`ao-button--${i.color}`:"",`ao-button--${i.corners}`,i.footer?"ao-button--footer":"",i.size?`ao-button--${i.size}`:"",i.iconName&&i.iconPosition?`ao-button--icon-${i.iconPosition}`:"",n.$attrs.disabled?"ao-button--is-disabled":""])},[a.renderSlot(n.$slots,"default",{},()=>[i.label?(a.openBlock(),a.createElementBlock("span",vk,a.toDisplayString(i.label),1)):a.createCommentVNode("",!0)]),s.value?(a.openBlock(),a.createBlock(qe,{key:0,name:s.value,class:"ao-button__icon",size:t.value},null,8,["name","size"])):a.createCommentVNode("",!0)],10,gk))}}),QI="";function yk(i){const e=a.ref(!1),t=a.ref(""),s=a.computed(()=>"value"in i.value?"value":"innerHTML"),n=()=>{e.value=!e.value},r=d=>{e.value=d},l=d=>async()=>{r(!1),await a.nextTick(()=>{i.value[s.value]=t.value,d==null||d()})},c=d=>async h=>{const f=i.value[s.value];r(!1),await a.nextTick(()=>{d(f,h)})};return a.watch(e,async d=>{await a.nextTick(()=>{setTimeout(()=>{i.value&&d&&(i.value.focus(),t.value=i.value[s.value])},1)})}),{isEditing:e,setIsEditing:r,toggleIsEditing:n,onUpdate:c,onDiscard:l}}const Ht=a.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(i,{emit:e}){const t=a.ref(null),s=i,n=e,{isEditing:r,setIsEditing:l,onUpdate:c,onDiscard:d}=yk(t),h=a.computed(()=>r.value?"input":s.tag||`h${s.level}`),f=a.computed(()=>s.isEditable?r.value?{change:p,click:b=>b.stopPropagation(),blur:g}:{click:v,focus:v}:{}),p=c((b,w)=>{const x=w.target.value;n("update:title",x)}),m=d(),g=async()=>{r.value&&l(!1)},y=()=>{n("toggle-is-editing",!1)},v=b=>{b.stopPropagation(),r.value||l(!0)};return a.watch(()=>s.isEditable,b=>{b||m()}),(b,w)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.value),a.mergeProps({id:i.id,ref_key:"target",ref:t,class:["ao-title",`ao-title--${i.level}`,{[`ao-title--${i.color}`]:!!i.color,"ao-title--editable":i.isEditable,"ao-field__input ao-title--editing":a.unref(r),"ao-title--readonly":!a.unref(r)}],type:a.unref(r)?"text":null,value:a.unref(r)?i.title:null,tabindex:"0",onKeyup:a.withKeys(y,["enter"])},a.toHandlers(f.value),{onKeydown:a.withKeys(a.unref(m),["esc"])}),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}}),JI="",bk={key:0,class:"ao-card-horiz__drag ao-card__drag"},Ck={class:"ao-card-horiz__header"},wk={key:0,class:"ao-card-horiz__avatar"},_k={class:"ao-card-horiz__title-group"},kk={key:0,class:"ao-card-horiz__subtitle"},xk={key:1,class:"ao-card-horiz__header"},Ek={key:1,class:"ao-card-horiz__body"},Tk={key:2,class:"ao-card-horiz__footer"},Sk={key:3,class:"ao-card-horiz__secondary"},h2=a.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(i,{emit:e}){const t=e,s=n=>{t("update:title",n)};return(n,r)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.tagName),{class:a.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":i.isActive}])},{default:a.withCtx(()=>[i.isDraggable?(a.openBlock(),a.createElementBlock("div",bk,[a.createVNode(qe,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):a.createCommentVNode("",!0),a.createElementVNode("div",Ck,[i.icon?(a.openBlock(),a.createElementBlock("div",wk,[a.createVNode(qe,{class:"ao-card-horiz__icon",name:i.icon,size:"xl"},null,8,["name"])])):a.createCommentVNode("",!0),a.createElementVNode("div",_k,[a.createVNode(Ht,{id:i.id,class:"ao-card-horiz__title",level:4,title:i.title||"","is-editable":!0,"onUpdate:title":s},null,8,["id","title"]),a.renderSlot(n.$slots,"subtitle",{},()=>[i.subtitle?(a.openBlock(),a.createElementBlock("span",kk,a.toDisplayString(i.subtitle),1)):a.createCommentVNode("",!0)])]),n.$slots.header?(a.openBlock(),a.createElementBlock("div",xk,[a.renderSlot(n.$slots,"header")])):a.createCommentVNode("",!0)]),n.$slots.default?(a.openBlock(),a.createElementBlock("div",Ek,[a.renderSlot(n.$slots,"default")])):a.createCommentVNode("",!0),n.$slots.footer?(a.openBlock(),a.createElementBlock("div",Tk,[a.renderSlot(n.$slots,"footer")])):a.createCommentVNode("",!0),n.$slots.secondary?(a.openBlock(),a.createElementBlock("div",Sk,[a.renderSlot(n.$slots,"secondary")])):a.createCommentVNode("",!0)]),_:3},8,["class"]))}}),eD="",Zl=a.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(i){const e=i,t=a.computed(()=>e.clickable?"button":"span"),s=a.computed(()=>t.value==="button"?{type:"button"}:{});return(n,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-tag",i.color?`ao-tag--${i.color}`:"",i.clickable?"ao-tag--clickable":"",i.closable?"ao-tag--closable":"",i.variant?`ao-tag--${i.variant}`:""]),style:a.normalizeStyle(i.rawColor?{"--ao-tag-bg":i.rawColor}:{})},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.value),a.mergeProps({class:"ao-tag__label"},s.value,{onClick:r[0]||(r[0]=l=>n.$emit("click",l))}),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.label)+" ",1),i.variant===a.unref(mk).SOLID_ICON&&i.iconName?(a.openBlock(),a.createBlock(qe,{key:0,name:i.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):a.createCommentVNode("",!0)]),_:1},16)),i.closable?(a.openBlock(),a.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:r[1]||(r[1]=l=>n.$emit("close",l))},[a.createVNode(qe,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):a.createCommentVNode("",!0)],6))}}),tD="",Gl={todo:"todo",done:"done",archived:"archived"},Mk={months:"months",weeks:"weeks",days:"days"},Bk={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},u2={BEFORE:"before",AFTER:"after"},f2={START:"start",end:"end"},p2={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},ct={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var m2=(i=>(i.PHASES="phases",i.MILESTONES="milestones",i.ACTIVITIES="activities",i))(m2||{});const Nk={add:"add",remove:"remove",moved:"moved"};var g2=(i=>(i.HOURS="hours",i.DAYS="days",i))(g2||{});const Qn={project:"projectId",type:"typeId",assignee:"assigneeId"};function mu(i){"@babel/helpers - typeof";return mu=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},mu(i)}function _s(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ct(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Zt(i){Ct(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||mu(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="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 Lk(i,e){Ct(2,arguments);var t=Zt(i).getTime(),s=_s(e);return new Date(t+s)}var Ak={};function Yl(){return Ak}function Kl(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}function v2(i){Ct(1,arguments);var e=Zt(i);return e.setHours(0,0,0,0),e}var $k=864e5;function Ok(i,e){Ct(2,arguments);var t=v2(i),s=v2(e),n=t.getTime()-Kl(t),r=s.getTime()-Kl(s);return Math.round((n-r)/$k)}function Vk(i,e){Ct(2,arguments);var t=Zt(i),s=Zt(e),n=t.getTime()-s.getTime();return n<0?-1:n>0?1:n}var y2=6e4,b2=36e5;function Rk(i){return Ct(1,arguments),i instanceof Date||mu(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function C2(i){if(Ct(1,arguments),!Rk(i)&&typeof i!="number")return!1;var e=Zt(i);return!isNaN(Number(e))}function Fm(i,e){Ct(2,arguments);var t=_s(e);return Lk(i,-t)}var Ik=864e5;function Dk(i){Ct(1,arguments);var e=Zt(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime(),n=t-s;return Math.floor(n/Ik)+1}function gu(i){Ct(1,arguments);var e=1,t=Zt(i),s=t.getUTCDay(),n=(s<e?7:0)+s-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function w2(i){Ct(1,arguments);var e=Zt(i),t=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(t+1,0,4),s.setUTCHours(0,0,0,0);var n=gu(s),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var l=gu(r);return e.getTime()>=n.getTime()?t+1:e.getTime()>=l.getTime()?t:t-1}function Pk(i){Ct(1,arguments);var e=w2(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var s=gu(t);return s}var Hk=6048e5;function Fk(i){Ct(1,arguments);var e=Zt(i),t=gu(e).getTime()-Pk(e).getTime();return Math.round(t/Hk)+1}function vu(i,e){var t,s,n,r,l,c,d,h;Ct(1,arguments);var f=Yl(),p=_s((t=(s=(n=(r=e==null?void 0:e.weekStartsOn)!==null&&r!==void 0?r:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:f.weekStartsOn)!==null&&s!==void 0?s:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&t!==void 0?t:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Zt(i),g=m.getUTCDay(),y=(g<p?7:0)+g-p;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function _2(i,e){var t,s,n,r,l,c,d,h;Ct(1,arguments);var f=Zt(i),p=f.getUTCFullYear(),m=Yl(),g=_s((t=(s=(n=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&s!==void 0?s:(d=m.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,g),y.setUTCHours(0,0,0,0);var v=vu(y,e),b=new Date(0);b.setUTCFullYear(p,0,g),b.setUTCHours(0,0,0,0);var w=vu(b,e);return f.getTime()>=v.getTime()?p+1:f.getTime()>=w.getTime()?p:p-1}function zk(i,e){var t,s,n,r,l,c,d,h;Ct(1,arguments);var f=Yl(),p=_s((t=(s=(n=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:f.firstWeekContainsDate)!==null&&s!==void 0?s:(d=f.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=_2(i,e),g=new Date(0);g.setUTCFullYear(m,0,p),g.setUTCHours(0,0,0,0);var y=vu(g,e);return y}var jk=6048e5;function Wk(i,e){Ct(1,arguments);var t=Zt(i),s=vu(t,e).getTime()-zk(t,e).getTime();return Math.round(s/jk)+1}function ze(i,e){for(var t=i<0?"-":"",s=Math.abs(i).toString();s.length<e;)s="0"+s;return t+s}var Uk={y:function(e,t){var s=e.getUTCFullYear(),n=s>0?s:1-s;return ze(t==="yy"?n%100:n,t.length)},M:function(e,t){var s=e.getUTCMonth();return t==="M"?String(s+1):ze(s+1,2)},d:function(e,t){return ze(e.getUTCDate(),t.length)},a:function(e,t){var s=e.getUTCHours()/12>=1?"pm":"am";switch(t){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(e,t){return ze(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ze(e.getUTCHours(),t.length)},m:function(e,t){return ze(e.getUTCMinutes(),t.length)},s:function(e,t){return ze(e.getUTCSeconds(),t.length)},S:function(e,t){var s=t.length,n=e.getUTCMilliseconds(),r=Math.floor(n*Math.pow(10,s-3));return ze(r,t.length)}};const Ks=Uk;var Sr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qk={G:function(e,t,s){var n=e.getUTCFullYear()>0?1:0;switch(t){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(e,t,s){if(t==="yo"){var n=e.getUTCFullYear(),r=n>0?n:1-n;return s.ordinalNumber(r,{unit:"year"})}return Ks.y(e,t)},Y:function(e,t,s,n){var r=_2(e,n),l=r>0?r:1-r;if(t==="YY"){var c=l%100;return ze(c,2)}return t==="Yo"?s.ordinalNumber(l,{unit:"year"}):ze(l,t.length)},R:function(e,t){var s=w2(e);return ze(s,t.length)},u:function(e,t){var s=e.getUTCFullYear();return ze(s,t.length)},Q:function(e,t,s){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ze(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(e,t,s){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ze(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(e,t,s){var n=e.getUTCMonth();switch(t){case"M":case"MM":return Ks.M(e,t);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(e,t,s){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return ze(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(e,t,s,n){var r=Wk(e,n);return t==="wo"?s.ordinalNumber(r,{unit:"week"}):ze(r,t.length)},I:function(e,t,s){var n=Fk(e);return t==="Io"?s.ordinalNumber(n,{unit:"week"}):ze(n,t.length)},d:function(e,t,s){return t==="do"?s.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ks.d(e,t)},D:function(e,t,s){var n=Dk(e);return t==="Do"?s.ordinalNumber(n,{unit:"dayOfYear"}):ze(n,t.length)},E:function(e,t,s){var n=e.getUTCDay();switch(t){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(e,t,s,n){var r=e.getUTCDay(),l=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return ze(l,2);case"eo":return s.ordinalNumber(l,{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(e,t,s,n){var r=e.getUTCDay(),l=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return ze(l,t.length);case"co":return s.ordinalNumber(l,{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(e,t,s){var n=e.getUTCDay(),r=n===0?7:n;switch(t){case"i":return String(r);case"ii":return ze(r,t.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(e,t,s){var n=e.getUTCHours(),r=n/12>=1?"pm":"am";switch(t){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(e,t,s){var n=e.getUTCHours(),r;switch(n===12?r=Sr.noon:n===0?r=Sr.midnight:r=n/12>=1?"pm":"am",t){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(e,t,s){var n=e.getUTCHours(),r;switch(n>=17?r=Sr.evening:n>=12?r=Sr.afternoon:n>=4?r=Sr.morning:r=Sr.night,t){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(e,t,s){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),s.ordinalNumber(n,{unit:"hour"})}return Ks.h(e,t)},H:function(e,t,s){return t==="Ho"?s.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ks.H(e,t)},K:function(e,t,s){var n=e.getUTCHours()%12;return t==="Ko"?s.ordinalNumber(n,{unit:"hour"}):ze(n,t.length)},k:function(e,t,s){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?s.ordinalNumber(n,{unit:"hour"}):ze(n,t.length)},m:function(e,t,s){return t==="mo"?s.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ks.m(e,t)},s:function(e,t,s){return t==="so"?s.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ks.s(e,t)},S:function(e,t){return Ks.S(e,t)},X:function(e,t,s,n){var r=n._originalDate||e,l=r.getTimezoneOffset();if(l===0)return"Z";switch(t){case"X":return x2(l);case"XXXX":case"XX":return Jn(l);case"XXXXX":case"XXX":default:return Jn(l,":")}},x:function(e,t,s,n){var r=n._originalDate||e,l=r.getTimezoneOffset();switch(t){case"x":return x2(l);case"xxxx":case"xx":return Jn(l);case"xxxxx":case"xxx":default:return Jn(l,":")}},O:function(e,t,s,n){var r=n._originalDate||e,l=r.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+k2(l,":");case"OOOO":default:return"GMT"+Jn(l,":")}},z:function(e,t,s,n){var r=n._originalDate||e,l=r.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+k2(l,":");case"zzzz":default:return"GMT"+Jn(l,":")}},t:function(e,t,s,n){var r=n._originalDate||e,l=Math.floor(r.getTime()/1e3);return ze(l,t.length)},T:function(e,t,s,n){var r=n._originalDate||e,l=r.getTime();return ze(l,t.length)}};function k2(i,e){var t=i>0?"-":"+",s=Math.abs(i),n=Math.floor(s/60),r=s%60;if(r===0)return t+String(n);var l=e||"";return t+String(n)+l+ze(r,2)}function x2(i,e){if(i%60===0){var t=i>0?"-":"+";return t+ze(Math.abs(i)/60,2)}return Jn(i,e)}function Jn(i,e){var t=e||"",s=i>0?"-":"+",n=Math.abs(i),r=ze(Math.floor(n/60),2),l=ze(n%60,2);return s+r+t+l}const Zk=qk;var E2=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"})}},T2=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"})}},Gk=function(e,t){var s=e.match(/(P+)(p+)?/)||[],n=s[1],r=s[2];if(!r)return E2(e,t);var l;switch(n){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",E2(n,t)).replace("{{time}}",T2(r,t))},Yk={p:T2,P:Gk};const Kk=Yk;var Xk=["D","DD"],Qk=["YY","YYYY"];function Jk(i){return Xk.indexOf(i)!==-1}function e6(i){return Qk.indexOf(i)!==-1}function S2(i,e,t){if(i==="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(i==="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(i==="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(i==="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 t6={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"}},i6=function(e,t,s){var n,r=t6[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+n:n+" ago":n};const s6=i6;function zm(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,s=i.formats[t]||i.formats[i.defaultWidth];return s}}var n6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},r6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a6={date:zm({formats:n6,defaultWidth:"full"}),time:zm({formats:o6,defaultWidth:"full"}),dateTime:zm({formats:r6,defaultWidth:"full"})};const l6=a6;var c6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},d6=function(e,t,s,n){return c6[e]};const h6=d6;function Xl(i){return function(e,t){var s=t!=null&&t.context?String(t.context):"standalone",n;if(s==="formatting"&&i.formattingValues){var r=i.defaultFormattingWidth||i.defaultWidth,l=t!=null&&t.width?String(t.width):r;n=i.formattingValues[l]||i.formattingValues[r]}else{var c=i.defaultWidth,d=t!=null&&t.width?String(t.width):i.defaultWidth;n=i.values[d]||i.values[c]}var h=i.argumentCallback?i.argumentCallback(e):e;return n[h]}}var u6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},f6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},p6={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"]},m6={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"]},g6={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"}},v6={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"}},y6=function(e,t){var s=Number(e),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"},b6={ordinalNumber:y6,era:Xl({values:u6,defaultWidth:"wide"}),quarter:Xl({values:f6,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xl({values:p6,defaultWidth:"wide"}),day:Xl({values:m6,defaultWidth:"wide"}),dayPeriod:Xl({values:g6,defaultWidth:"wide",formattingValues:v6,defaultFormattingWidth:"wide"})};const C6=b6;function Ql(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=t.width,n=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],r=e.match(n);if(!r)return null;var l=r[0],c=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],d=Array.isArray(c)?_6(c,function(p){return p.test(l)}):w6(c,function(p){return p.test(l)}),h;h=i.valueCallback?i.valueCallback(d):d,h=t.valueCallback?t.valueCallback(h):h;var f=e.slice(l.length);return{value:h,rest:f}}}function w6(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function _6(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function k6(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=e.match(i.matchPattern);if(!s)return null;var n=s[0],r=e.match(i.parsePattern);if(!r)return null;var l=i.valueCallback?i.valueCallback(r[0]):r[0];l=t.valueCallback?t.valueCallback(l):l;var c=e.slice(n.length);return{value:l,rest:c}}}var x6=/^(\d+)(th|st|nd|rd)?/i,E6=/\d+/i,T6={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},S6={any:[/^b/i,/^(a|c)/i]},M6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B6={any:[/1/i,/2/i,/3/i,/4/i]},N6={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},L6={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]},A6={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},$6={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]},O6={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},V6={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}},R6={ordinalNumber:k6({matchPattern:x6,parsePattern:E6,valueCallback:function(e){return parseInt(e,10)}}),era:Ql({matchPatterns:T6,defaultMatchWidth:"wide",parsePatterns:S6,defaultParseWidth:"any"}),quarter:Ql({matchPatterns:M6,defaultMatchWidth:"wide",parsePatterns:B6,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ql({matchPatterns:N6,defaultMatchWidth:"wide",parsePatterns:L6,defaultParseWidth:"any"}),day:Ql({matchPatterns:A6,defaultMatchWidth:"wide",parsePatterns:$6,defaultParseWidth:"any"}),dayPeriod:Ql({matchPatterns:O6,defaultMatchWidth:"any",parsePatterns:V6,defaultParseWidth:"any"})},I6={code:"en-US",formatDistance:s6,formatLong:l6,formatRelative:h6,localize:C6,match:R6,options:{weekStartsOn:0,firstWeekContainsDate:1}};const M2=I6;var D6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,H6=/^'([^]*?)'?$/,F6=/''/g,z6=/[a-zA-Z]/;function B2(i,e,t){var s,n,r,l,c,d,h,f,p,m,g,y,v,b,w,_,x,S;Ct(2,arguments);var M=String(e),T=Yl(),L=(s=(n=t==null?void 0:t.locale)!==null&&n!==void 0?n:T.locale)!==null&&s!==void 0?s:M2,B=_s((r=(l=(c=(d=t==null?void 0:t.firstWeekContainsDate)!==null&&d!==void 0?d:t==null||(h=t.locale)===null||h===void 0||(f=h.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&c!==void 0?c:T.firstWeekContainsDate)!==null&&l!==void 0?l:(p=T.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=_s((g=(y=(v=(b=t==null?void 0:t.weekStartsOn)!==null&&b!==void 0?b:t==null||(w=t.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&v!==void 0?v:T.weekStartsOn)!==null&&y!==void 0?y:(x=T.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&g!==void 0?g:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!L.localize)throw new RangeError("locale must contain localize property");if(!L.formatLong)throw new RangeError("locale must contain formatLong property");var O=Zt(i);if(!C2(O))throw new RangeError("Invalid time value");var A=Kl(O),V=Fm(O,A),R={firstWeekContainsDate:B,weekStartsOn:N,locale:L,_originalDate:O},$=M.match(P6).map(function(P){var W=P[0];if(W==="p"||W==="P"){var Z=Kk[W];return Z(P,L.formatLong)}return P}).join("").match(D6).map(function(P){if(P==="''")return"'";var W=P[0];if(W==="'")return j6(P);var Z=Zk[W];if(Z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&e6(P)&&S2(P,e,String(i)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Jk(P)&&S2(P,e,String(i)),Z(V,P,L.localize,R);if(W.match(z6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return P}).join("");return $}function j6(i){var e=i.match(H6);return e?e[1].replace(F6,"'"):i}function W6(i,e,t){var s,n,r,l,c,d,h,f,p,m;Ct(2,arguments);var g=Zt(i),y=Zt(e),v=Yl(),b=(s=(n=t==null?void 0:t.locale)!==null&&n!==void 0?n:v.locale)!==null&&s!==void 0?s:M2,w=_s((r=(l=(c=(d=t==null?void 0:t.weekStartsOn)!==null&&d!==void 0?d:t==null||(h=t.locale)===null||h===void 0||(f=h.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&c!==void 0?c:v.weekStartsOn)!==null&&l!==void 0?l:(p=v.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&r!==void 0?r:0);if(!b.localize)throw new RangeError("locale must contain localize property");if(!b.formatLong)throw new RangeError("locale must contain formatLong property");if(!b.formatRelative)throw new RangeError("locale must contain formatRelative property");var _=Ok(g,y);if(isNaN(_))throw new RangeError("Invalid time value");var x;_<-6?x="other":_<-1?x="lastWeek":_<0?x="yesterday":_<1?x="today":_<2?x="tomorrow":_<7?x="nextWeek":x="other";var S=Fm(g,Kl(g)),M=Fm(y,Kl(y)),T=b.formatRelative(x,S,M,{locale:b,weekStartsOn:w});return B2(g,T,{locale:b,weekStartsOn:w})}function Jl(i,e){var t;Ct(1,arguments);var s=_s((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(s!==2&&s!==1&&s!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof i=="string"||Object.prototype.toString.call(i)==="[object String]"))return new Date(NaN);var n=G6(i),r;if(n.date){var l=Y6(n.date,s);r=K6(l.restDateString,l.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var c=r.getTime(),d=0,h;if(n.time&&(d=X6(n.time),isNaN(d)))return new Date(NaN);if(n.timezone){if(h=Q6(n.timezone),isNaN(h))return new Date(NaN)}else{var f=new Date(c+d),p=new Date(0);return p.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),p.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),p}return new Date(c+d+h)}var yu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},U6=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,q6=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Z6=/^([+-])(\d{2})(?::?(\d{2}))?$/;function G6(i){var e={},t=i.split(yu.dateTimeDelimiter),s;if(t.length>2)return e;if(/:/.test(t[0])?s=t[0]:(e.date=t[0],s=t[1],yu.timeZoneDelimiter.test(e.date)&&(e.date=i.split(yu.timeZoneDelimiter)[0],s=i.substr(e.date.length,i.length))),s){var n=yu.timezone.exec(s);n?(e.time=s.replace(n[1],""),e.timezone=n[1]):e.time=s}return e}function Y6(i,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),s=i.match(t);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:i.slice((s[1]||s[2]).length)}}function K6(i,e){if(e===null)return new Date(NaN);var t=i.match(U6);if(!t)return new Date(NaN);var s=!!t[4],n=ec(t[1]),r=ec(t[2])-1,l=ec(t[3]),c=ec(t[4]),d=ec(t[5])-1;if(s)return s8(e,c,d)?J6(e,c,d):new Date(NaN);var h=new Date(0);return!t8(e,r,l)||!i8(e,n)?new Date(NaN):(h.setUTCFullYear(e,r,Math.max(n,l)),h)}function ec(i){return i?parseInt(i):1}function X6(i){var e=i.match(q6);if(!e)return NaN;var t=jm(e[1]),s=jm(e[2]),n=jm(e[3]);return n8(t,s,n)?t*b2+s*y2+n*1e3:NaN}function jm(i){return i&&parseFloat(i.replace(",","."))||0}function Q6(i){if(i==="Z")return 0;var e=i.match(Z6);if(!e)return 0;var t=e[1]==="+"?-1:1,s=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return o8(s,n)?t*(s*b2+n*y2):NaN}function J6(i,e,t){var s=new Date(0);s.setUTCFullYear(i,0,4);var n=s.getUTCDay()||7,r=(e-1)*7+t+1-n;return s.setUTCDate(s.getUTCDate()+r),s}var e8=[31,null,31,30,31,30,31,31,30,31,30,31];function N2(i){return i%400===0||i%4===0&&i%100!==0}function t8(i,e,t){return e>=0&&e<=11&&t>=1&&t<=(e8[e]||(N2(i)?29:28))}function i8(i,e){return e>=1&&e<=(N2(i)?366:365)}function s8(i,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function n8(i,e,t){return i===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&i>=0&&i<25}function o8(i,e){return e>=0&&e<=59}var ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r8(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ft={},L2={},tc={},ic={},Mr={},bu={};Object.defineProperty(bu,"__esModule",{value:!0}),bu.lexoHelper=void 0,bu.lexoHelper={arrayCopy:a8};function a8(i,e,t,s,n){let r=s;const l=e+n;for(let c=e;c<l;c++)t[r]=i[c],++r}var sc={};Object.defineProperty(sc,"__esModule",{value:!0});class l8{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}}sc.default=l8,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.LexoInteger=void 0;const Cu=bu,c8=sc;class Ce{constructor(e,t,s){this.sys=e,this.sign=t,this.mag=s}static parse(e,t){let s=e,n=1;e.indexOf(t.getPositiveChar())===0?s=e.substring(1):e.indexOf(t.getNegativeChar())===0&&(s=e.substring(1),n=-1);const r=new Array(s.length);let l=r.length-1;for(let c=0;l>=0;++c)r[c]=t.toDigit(s.charAt(l)),--l;return Ce.make(t,n,r)}static zero(e){return new Ce(e,0,Ce.ZERO_MAG)}static one(e){return Ce.make(e,1,Ce.ONE_MAG)}static make(e,t,s){let n;for(n=s.length;n>0&&s[n-1]===0;--n);if(n===0)return Ce.zero(e);if(n===s.length)return new Ce(e,t,s);const r=new Array(n).fill(0);return Cu.lexoHelper.arrayCopy(s,0,r,0,n),new Ce(e,t,r)}static add(e,t,s){const n=Math.max(t.length,s.length),r=new Array(n).fill(0);let l=0;for(let c=0;c<n;++c){const d=c<t.length?t[c]:0,h=c<s.length?s[c]:0;let f=d+h+l;for(l=0;f>=e.getBase();f-=e.getBase())++l;r[c]=f}return Ce.extendWithCarry(r,l)}static extendWithCarry(e,t){if(t>0){const s=new Array(e.length+1).fill(0);return Cu.lexoHelper.arrayCopy(e,0,s,0,e.length),s[s.length-1]=t,s}return e}static subtract(e,t,s){const n=Ce.complement(e,s,t.length),r=Ce.add(e,t,n);return r[r.length-1]=0,Ce.add(e,r,Ce.ONE_MAG)}static multiply(e,t,s){const n=new Array(t.length+s.length).fill(0);for(let r=0;r<t.length;++r)for(let l=0;l<s.length;++l){const c=r+l;for(n[c]+=t[r]*s[l];n[c]>=e.getBase();n[c]-=e.getBase())++n[c+1]}return n}static complement(e,t,s){if(s<=0)throw new Error("Expected at least 1 digit");const n=new Array(s).fill(e.getBase()-1);for(let r=0;r<t.length;++r)n[r]=e.getBase()-1-t[r];return n}static compare(e,t){if(e.length<t.length)return-1;if(e.length>t.length)return 1;for(let s=e.length-1;s>=0;--s){if(e[s]<t[s])return-1;if(e[s]>t[s])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 s;return this.sign===-1?(s=this.negate(),s.subtract(e).negate()):(s=e.negate(),this.subtract(s))}const t=Ce.add(this.sys,this.mag,e.mag);return Ce.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 s;return this.sign===-1?(s=this.negate(),s.add(e).negate()):(s=e.negate(),this.add(s))}const t=Ce.compare(this.mag,e.mag);return t===0?Ce.zero(this.sys):t<0?Ce.make(this.sys,this.sign===-1?1:-1,Ce.subtract(this.sys,e.mag,this.mag)):Ce.make(this.sys,this.sign===-1?-1:1,Ce.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?Ce.make(this.sys,1,e.mag):Ce.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?Ce.make(this.sys,1,this.mag):Ce.make(this.sys,-1,this.mag);const t=Ce.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?Ce.make(this.sys,1,t):Ce.make(this.sys,-1,t)}negate(){return this.isZero()?this:Ce.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 Cu.lexoHelper.arrayCopy(this.mag,0,t,e,this.mag.length),Ce.make(this.sys,this.sign,t)}shiftRight(e=1){if(this.mag.length-e<=0)return Ce.zero(this.sys);const t=new Array(this.mag.length-e).fill(0);return Cu.lexoHelper.arrayCopy(this.mag,e,t,0,t.length),Ce.make(this.sys,this.sign,t)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return Ce.make(this.sys,this.sign,Ce.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=Ce.compare(this.mag,e.mag);return t===-1?1:t===1?-1:0}return-1}return this.sign===1?e.sign===1?Ce.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 c8.default,t=this.mag,s=t.length;for(let n=0;n<s;++n){const r=t[n];e.insert(0,this.sys.toChar(r))}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")}}Mr.LexoInteger=Ce,Ce.ZERO_MAG=[0],Ce.ONE_MAG=[1],Ce.NEGATIVE_SIGN=-1,Ce.ZERO_SIGN=0,Ce.POSITIVE_SIGN=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.LexoDecimal=void 0;const nc=Mr,d8=sc;class Ci{constructor(e,t){this.mag=e,this.sig=t}static half(e){const t=e.getBase()/2|0;return Ci.make(nc.LexoInteger.make(e,1,[t]),1)}static parse(e,t){const s=e.indexOf(t.getRadixPointChar());if(e.lastIndexOf(t.getRadixPointChar())!==s)throw new Error("More than one "+t.getRadixPointChar());if(s<0)return Ci.make(nc.LexoInteger.parse(e,t),0);const n=e.substring(0,s)+e.substring(s+1);return Ci.make(nc.LexoInteger.parse(n,t),e.length-1-s)}static from(e){return Ci.make(e,0)}static make(e,t){if(e.isZero())return new Ci(e,0);let s=0;for(let l=0;l<t&&e.getMag(l)===0;++l)++s;const n=e.shiftRight(s),r=t-s;return new Ci(n,r)}getSystem(){return this.mag.getSystem()}add(e){let t=this.mag,s=this.sig,n=e.mag,r;for(r=e.sig;s<r;++s)t=t.shiftLeft();for(;s>r;)n=n.shiftLeft(),++r;return Ci.make(t.add(n),s)}subtract(e){let t=this.mag,s=this.sig,n=e.mag,r;for(r=e.sig;s<r;++s)t=t.shiftLeft();for(;s>r;)n=n.shiftLeft(),++r;return Ci.make(t.subtract(n),s)}multiply(e){return Ci.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(nc.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 s=this.sig-e;let n=this.mag.shiftRight(s);return t&&(n=n.add(nc.LexoInteger.one(n.getSystem()))),Ci.make(n,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let t=this.mag,s=e.mag;return this.sig>e.sig?s=s.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(t=t.shiftLeft(e.sig-this.sig)),t.compareTo(s)}format(){const e=this.mag.format();if(this.sig===0)return e;const t=new d8.default(e),s=t[0],n=s===this.mag.getSystem().getPositiveChar()||s===this.mag.getSystem().getNegativeChar();for(n&&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)),n&&t.insert(0,s),t.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}ic.LexoDecimal=Ci;var wu={},A2;function $2(){if(A2)return wu;A2=1,Object.defineProperty(wu,"__esModule",{value:!0});const i=Mr,e=R2();class t{constructor(n){this.value=i.LexoInteger.parse(n,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(n){const r=i.LexoInteger.parse(n,e.LexoRank.NUMERAL_SYSTEM),l=t.VALUES,c=l.length;for(let d=0;d<c;++d){const h=l[d];if(h.value.equals(r))return h}throw new Error("Unknown bucket: "+n)}static resolve(n){const r=t.VALUES,l=r.length;for(let c=0;c<l;++c){const d=r[c];if(d.equals(t.from(n.toString())))return d}throw new Error("No bucket found with id "+n)}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(n){return this===n?!0:n?this.value.equals(n.value):!1}}return wu.default=t,wu}var Wm={},O2={};Object.defineProperty(O2,"__esModule",{value:!0});var _u={};Object.defineProperty(_u,"__esModule",{value:!0}),_u.LexoNumeralSystem10=void 0;class h8{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)}}_u.LexoNumeralSystem10=h8;var ku={};Object.defineProperty(ku,"__esModule",{value:!0}),ku.LexoNumeralSystem36=void 0;class u8{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]}}ku.LexoNumeralSystem36=u8;var xu={};Object.defineProperty(xu,"__esModule",{value:!0}),xu.LexoNumeralSystem64=void 0;class f8{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]}}xu.LexoNumeralSystem64=f8,function(i){var e=ai&&ai.__createBinding||(Object.create?function(s,n,r,l){l===void 0&&(l=r);var c=Object.getOwnPropertyDescriptor(n,r);(!c||("get"in c?!n.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,l,c)}:function(s,n,r,l){l===void 0&&(l=r),s[l]=n[r]}),t=ai&&ai.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(i,"__esModule",{value:!0}),t(O2,i),t(_u,i),t(ku,i),t(xu,i)}(Wm);var V2;function R2(){if(V2)return tc;V2=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.LexoRank=void 0;const i=ic,e=$2(),t=sc,s=Wm;class n{constructor(l,c){this.value=l.format()+"|"+n.formatDecimal(c),this.bucket=l,this.decimal=c}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=i.LexoDecimal.parse("0",n.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=i.LexoDecimal.parse("1",n.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=i.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=i.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=i.LexoDecimal.parse("100000",n.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=i.LexoDecimal.parse(n.NUMERAL_SYSTEM.toChar(n.NUMERAL_SYSTEM.getBase()-2)+"00000",n.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return n.from(e.default.BUCKET_0,n.MIN_DECIMAL)}static middle(){const l=n.min();return l.between(n.max(l.bucket))}static max(l=e.default.BUCKET_0){return n.from(l,n.MAX_DECIMAL)}static initial(l){return l===e.default.BUCKET_0?n.from(l,n.INITIAL_MIN_DECIMAL):n.from(l,n.INITIAL_MAX_DECIMAL)}static between(l,c){if(l.getSystem().getBase()!==c.getSystem().getBase())throw new Error("Expected same system");let d=l,h=c,f;if(l.getScale()<c.getScale()){if(f=c.setScale(l.getScale(),!1),l.compareTo(f)>=0)return n.mid(l,c);h=f}if(l.getScale()>h.getScale()){if(f=l.setScale(h.getScale(),!0),f.compareTo(h)>=0)return n.mid(l,c);d=f}let p;for(let y=d.getScale();y>0;h=p){const v=y-1,b=d.setScale(v,!0);if(p=h.setScale(v,!1),b.compareTo(p)===0)return n.checkMid(l,c,b);if(b.compareTo(p)>0)break;y=v,d=b}let m=n.middleInternal(l,c,d,h),g;for(let y=m.getScale();y>0;y=g){g=y-1;const v=m.setScale(g);if(l.compareTo(v)>=0||v.compareTo(c)>=0)break;m=v}return m}static parse(l){const c=l.split("|"),d=e.default.from(c[0]),h=i.LexoDecimal.parse(c[1],n.NUMERAL_SYSTEM);return new n(d,h)}static from(l,c){if(c.getSystem().getBase()!==n.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new n(l,c)}static middleInternal(l,c,d,h){const f=n.mid(d,h);return n.checkMid(l,c,f)}static checkMid(l,c,d){return l.compareTo(d)>=0||d.compareTo(c)>=0?n.mid(l,c):d}static mid(l,c){const h=l.add(c).multiply(i.LexoDecimal.half(l.getSystem())),f=l.getScale()>c.getScale()?l.getScale():c.getScale();if(h.getScale()>f){const p=h.setScale(f,!1);if(p.compareTo(l)>0)return p;const m=h.setScale(f,!0);if(m.compareTo(c)<0)return m}return h}static formatDecimal(l){const c=l.format(),d=new t.default(c);let h=c.indexOf(n.NUMERAL_SYSTEM.getRadixPointChar());const f=n.NUMERAL_SYSTEM.toChar(0);for(h<0&&(h=c.length,d.append(n.NUMERAL_SYSTEM.getRadixPointChar()));h<6;)d.insert(0,f),++h;for(;d[d.length-1]===f;)d.length=d.length-1;return d.toString()}genPrev(){if(this.isMax())return new n(this.bucket,n.INITIAL_MAX_DECIMAL);const l=this.decimal.floor();let d=i.LexoDecimal.from(l).subtract(n.EIGHT_DECIMAL);return d.compareTo(n.MIN_DECIMAL)<=0&&(d=n.between(n.MIN_DECIMAL,this.decimal)),new n(this.bucket,d)}genNext(){if(this.isMin())return new n(this.bucket,n.INITIAL_MIN_DECIMAL);const l=this.decimal.ceil();let d=i.LexoDecimal.from(l).add(n.EIGHT_DECIMAL);return d.compareTo(n.MAX_DECIMAL)>=0&&(d=n.between(this.decimal,n.MAX_DECIMAL)),new n(this.bucket,d)}between(l){if(!this.bucket.equals(l.bucket))throw new Error("Between works only within the same bucket");const c=this.decimal.compareTo(l.decimal);if(c>0)return new n(this.bucket,n.between(l.decimal,this.decimal));if(c===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+l+" this.decimal="+this.decimal+" other.decimal="+l.decimal);return new n(this.bucket,n.between(this.decimal,l.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(l){return this===l?!0:l?this.value===l.value:!1}toString(){return this.value}compareTo(l){return this===l?0:l?this.value.localeCompare(l.value):1}}return tc.LexoRank=n,tc}(function(i){var e=ai&&ai.__createBinding||(Object.create?function(s,n,r,l){l===void 0&&(l=r);var c=Object.getOwnPropertyDescriptor(n,r);(!c||("get"in c?!n.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,l,c)}:function(s,n,r,l){l===void 0&&(l=r),s[l]=n[r]}),t=ai&&ai.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(i,"__esModule",{value:!0}),t(R2(),i),t($2(),i),t(ic,i),t(Mr,i)})(L2),function(i){var e=ai&&ai.__createBinding||(Object.create?function(s,n,r,l){l===void 0&&(l=r);var c=Object.getOwnPropertyDescriptor(n,r);(!c||("get"in c?!n.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,l,c)}:function(s,n,r,l){l===void 0&&(l=r),s[l]=n[r]}),t=ai&&ai.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(i,"__esModule",{value:!0}),t(L2,i),t(Wm,i)}(Ft);const oc=60,I2=oc*8;function Eu(i,e){if(!i)return"0m";if(e==="days"){const s=Math.floor(i/I2),n=Math.floor(i%I2/oc);if(s>0&&n>0)return`${s}d ${n}h`;if(s>0)return`${s}d`;{const r=i%oc;return r>0?`${n}h ${r}m`:`${n}h`}}else{const s=Math.floor(i/oc),n=i%oc;return s>0&&n>0?`${s}h ${n}m`:s>0?`${s}h`:`${n}m`}}function D2(i){return(i==null?void 0:i.reduce((e,t)=>{var s;return e+(((s=t.activities)==null?void 0:s.length)??0)},0))??0}function p8(i){return(i==null?void 0:i.reduce((e,t)=>{var s;return e+(((s=t.milestones)==null?void 0:s.length)??0)},0))??0}function m8(i){return(i==null?void 0:i.reduce((e,t)=>{var n;const s=(n=t.milestones)!=null&&n.length?D2(t.milestones):0;return e+s},0))??0}function g8(i){return i.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function rc(i,e){if(i.moved)return Br(e,i.moved.newIndex)}function Br(i,e){if(e===0)if(i.length>1){const t=i[e+1];return Ft.LexoRank.parse(t.rank).genPrev().format()}else return Ft.LexoRank.middle().format();else if(e===i.length-1){const t=i[e-1];return Ft.LexoRank.parse(t.rank).genNext().format()}else{const t=i[e-1],s=i[e+1];return Ft.LexoRank.parse(s.rank).between(Ft.LexoRank.parse(t.rank)).format()}}function Tu(i,e="dd/MM/yyyy"){if(!i)return"";const t=Jl(i);return C2(t)?B2(t,e):""}function Um(i,e){return i.status.id===e.id}function v8(i,e){return i.activities.length===0?!1:!i.activities.some(t=>!Um(t,e))}function y8(i,e){return{...i,status:v8(i,e)?Gl.done:Gl.todo}}const P2=i=>{const{firstName:e,lastName:t}=i||{};return`${e??""}${e?" ":""}${t??""}`};function b8(i,e){const t=i.replace("#",""),s=parseInt(t.slice(0,2),16),n=parseInt(t.slice(2,4),16),r=parseInt(t.slice(4,6),16);return`rgba(${s}, ${n}, ${r}, ${e})`}function C8(i,e=.15){var t;if(i.startsWith("#"))return b8(i,e);if(i.startsWith("rgba")){const s=(t=i.match(/rgba?\(([^)]+)\)/))==null?void 0:t[1].split(",").map(n=>n.trim());if(s&&s.length>=3){const[n,r,l]=s;return`rgba(${n}, ${r}, ${l}, ${e})`}}return i}const w8=["title"],_8={key:0,className:"ao-avatar__initials"},k8=["src"],ks=a.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:pu.MD},color:{default:"primary"}},emits:["close"],setup(i,{emit:e}){const t=i,s=e,n=a.computed(()=>[`ao-avatar--${t.color}`,...t.avatarUrl?["ao-avatar-img",`ao-avatar-img--${t.size}`]:["ao-avatar",`ao-avatar--${t.size}`]]),r=g8(t.userName),l=c=>{s("close",c)};return(c,d)=>(a.openBlock(),a.createElementBlock("div",{role:"img",class:a.normalizeClass(n.value),title:i.userName},[i.avatarUrl?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",_8,a.toDisplayString(a.unref(r)),1)),i.avatarUrl?(a.openBlock(),a.createElementBlock("img",{key:1,className:"ao-avatar__image",src:i.avatarUrl},null,8,k8)):a.createCommentVNode("",!0),i.isClosable?(a.openBlock(),a.createBlock(ke,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:i.color,corners:"round",onClick:a.withModifiers(l,["stop"])},null,8,["color"])):a.createCommentVNode("",!0)],10,w8))}}),nD="",x8={class:"ao-card-template__subitems"},E8={class:"ao-card-template__subitem"},T8={class:"ao-card-template__subitem-number"},S8={class:"ao-card-template__subitem"},M8={class:"ao-card-template__subitem"},B8={class:"ao-card-template__body"},N8={class:"ao-card-template__col ao-card-template__col--phases"},L8={class:"ao-card-template__col-title"},A8={class:"ao-card-template__col-label"},$8={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},O8={class:"ao-card-template__footer"},V8={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},R8={class:"ao-card-template__col-title"},I8={class:"ao-card-template__col-label"},D8={class:"ao-card-template__col-body"},P8={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},H8={class:"ao-card-template__col-title"},F8={class:"ao-card-template__col-label"},z8={class:"ao-card-template__col-body"},j8={class:"ao-card-template-item__secondary"},qm=5,W8=a.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(i,{emit:e}){const t=i,s=e,n=d=>{s("updateTitle",d)},r=(d,h)=>{s("deleteItem",d,h)},l=a.computed(()=>{var d;return((d=t.phases)==null?void 0:d.slice(0,qm))??[]}),c=a.computed(()=>t.phases&&t.phases.length>qm?t.phases.length-qm:0);return(d,h)=>(a.openBlock(),a.createBlock(h2,{id:i.id,title:i.title,"is-draggable":!0,"onUpdate:title":n},a.createSlots({subtitle:a.withCtx(()=>[a.createElementVNode("ul",x8,[a.createElementVNode("li",E8,[a.createVNode(qe,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",T8,a.toDisplayString(i.milestones),1)]),a.createElementVNode("li",S8,[a.createVNode(qe,{name:"TaskOutlineRounded",size:"sm"}),a.createElementVNode("span",M8,a.toDisplayString(i.activities),1)])])]),default:a.withCtx(()=>[a.createElementVNode("div",B8,[a.createElementVNode("div",N8,[a.createElementVNode("div",L8,[a.createVNode(qe,{name:"WaterfallChartRounded",size:"sm"}),a.createElementVNode("span",A8,a.toDisplayString(d.$t("template.phases.title")),1)]),i.phases?(a.openBlock(),a.createElementBlock("ul",$8,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,f=>(a.openBlock(),a.createBlock(Zl,{key:f.id,label:f.name||f.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),c.value>0?(a.openBlock(),a.createBlock(Zl,{key:0,label:`+${c.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])])]),secondary:a.withCtx(()=>[a.createElementVNode("div",j8,[a.createVNode(ke,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:h[0]||(h[0]=a.withModifiers(f=>r(i.id,i.title),["stop"]))})])]),_:2},[i.updatedBy||i.updatedAt?{name:"footer",fn:a.withCtx(()=>[a.createElementVNode("div",O8,[i.updatedAt?(a.openBlock(),a.createElementBlock("div",V8,[a.createElementVNode("div",R8,[a.createElementVNode("span",I8,a.toDisplayString(d.$t("template.updatedAt.label")),1)]),a.createElementVNode("div",D8,[a.createElementVNode("span",null,a.toDisplayString(i.updatedAt),1)])])):a.createCommentVNode("",!0),i.updatedBy?(a.openBlock(),a.createElementBlock("div",P8,[a.createElementVNode("div",H8,[a.createElementVNode("span",F8,a.toDisplayString(d.$t("template.updatedBy.label")),1)]),a.createElementVNode("div",z8,[a.createVNode(ks,{"user-name":i.updatedBy},null,8,["user-name"])])])):a.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}}),oD="",U8={class:"ao-page-header"},q8={class:"ao-page-header-main"},Z8={key:0,class:"ao-page-header-secondary"},ac=a.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("header",U8,[a.createElementVNode("div",q8,[i.canGoBack?(a.openBlock(),a.createBlock(ke,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:t[0]||(t[0]=s=>e.$emit("goBack"))})):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(a.openBlock(),a.createElementBlock("div",Z8,[a.renderSlot(e.$slots,"secondary")])):a.createCommentVNode("",!0)]))}}),rD="",G8=["type"],Y8={key:0,class:"ao-button-card__label"},Xs=a.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Hm.BLACK},size:{default:()=>pu.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>d2.ROUNDED}},setup(i){const e=i,t=a.computed(()=>e.size),s=a.computed(()=>e.isLoading?"Loading":e.iconName);return(n,r)=>(a.openBlock(),a.createElementBlock("button",{type:i.type,class:a.normalizeClass(["ao-button-card",`ao-button-card--${i.color}`,`ao-button-card--${i.corners}`,n.$attrs.disabled?"ao-button-card--is-disabled":""])},[a.renderSlot(n.$slots,"default",{},()=>[i.label?(a.openBlock(),a.createElementBlock("span",Y8,a.toDisplayString(i.label),1)):a.createCommentVNode("",!0)]),s.value?(a.openBlock(),a.createBlock(qe,{key:0,name:s.value,class:"ao-button-card__icon",size:t.value},null,8,["name","size"])):a.createCommentVNode("",!0)],10,G8))}}),aD="",K8={class:"ao-card-template-item__footer"},X8={key:0,class:"ao-card-template-item__subitem"},Q8={class:"ao-card-template-item__subitem-number"},J8={class:"ao-card-template-item__secondary"},Zm=a.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(i,{emit:e}){const t=e,s=c=>{t("update:title",c)},n=["milestones","activities","rules","tasks"],r={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},l=()=>{t("remove")};return(c,d)=>(a.openBlock(),a.createBlock(h2,{"onUpdate:title":s},{footer:a.withCtx(()=>[a.createElementVNode("ul",K8,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(n,h=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h},[c.$props[h]?(a.openBlock(),a.createElementBlock("li",X8,[a.createVNode(qe,{name:r[h],size:"sm"},null,8,["name"]),a.createElementVNode("span",Q8,a.toDisplayString(c.$props[h]),1)])):a.createCommentVNode("",!0)],64))),64))])]),secondary:a.withCtx(()=>[a.createElementVNode("div",J8,[a.createVNode(ke,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:a.withModifiers(l,["stop"])})])]),_:1}))}}),lD="",e9=a.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(i){const e=i,t=a.computed(()=>{var n;return(n=e.milestones)==null?void 0:n.length}),s=a.computed(()=>e.milestones?D2(e.milestones):0);return(n,r)=>(a.openBlock(),a.createBlock(Zm,a.mergeProps({id:i.id,title:i.name,activities:s.value,milestones:t.value},n.$attrs),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),t9=a.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(i){const e=i,t=a.computed(()=>{var s;return((s=e.activities)==null?void 0:s.length)||0});return(s,n)=>(a.openBlock(),a.createBlock(Zm,{activities:t.value},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},8,["activities"]))}}),i9={class:"ao-list__footer"},s9=a.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(i,{emit:e}){const t=i,s=e,n=()=>{s("addMilestone",{phaseId:t.phase.id})},r=d=>{s("removeMilestone",{phaseId:t.phase.id,id:d})},l=d=>{s("updateMilestone",d)},c=d=>{if(d.moved){const h=rc(d,t.phase.milestones);s("updateMilestone",{id:d.moved.element.id,rank:h})}};return(d,h)=>i.phase?(a.openBlock(),a.createBlock(a.unref(Ai),{key:0,"model-value":i.phase.milestones,class:"ao-templates__list",title:d.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:c},{header:a.withCtx(()=>[a.createVNode(Ht,{title:"Milestones",level:3,class:"ao-list__title"})]),item:a.withCtx(({element:f})=>[(a.openBlock(),a.createBlock(t9,{id:f.id,key:f.id,title:f.name,activities:f.activities,"is-active":i.milestoneId===f.id,"is-draggable":!0,"onUpdate:title":p=>l({id:f.id,name:p}),onClick:p=>d.$router.push({params:{milestoneId:f.id}}),onRemove:()=>r(f.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:a.withCtx(()=>[a.createElementVNode("div",i9,[a.createVNode(Xs,{"icon-name":"AddBoxOutlineRounded",label:d.$t("template.milestones.add"),onClick:n},null,8,["label"])])]),_:1},8,["model-value","title"])):a.createCommentVNode("",!0)}}),n9=a.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(i){const e=i,t=a.computed(()=>{var s;return((s=e.tasks)==null?void 0:s.length)||0});return(s,n)=>(a.openBlock(),a.createBlock(Zm,{tasks:t.value},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},8,["tasks"]))}}),o9={class:"ao-list__footer"},r9=a.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(i,{emit:e}){const t=i,s=e,n=()=>{s("addActivity",{milestoneId:t.milestone.id})},r=d=>{s("updateActivity",{...d})},l=d=>{s("removeActivity",{id:d})},c=d=>{if(d.moved){const h=rc(d,t.milestone.activities);s("updateActivity",{id:d.moved.element.id,rank:h})}};return(d,h)=>i.milestone?(a.openBlock(),a.createBlock(a.unref(Ai),{key:0,"model-value":i.milestone.activities,title:d.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:c},{header:a.withCtx(()=>[a.createVNode(Ht,{title:"Activities",level:3,class:"ao-list__title"})]),item:a.withCtx(({element:f})=>[(a.openBlock(),a.createBlock(n9,{id:f.id,key:f.id,title:f.name,tasks:f.tasks,"is-active":i.activityId===f.id,"is-draggable":!0,"onUpdate:title":p=>r({id:f.id,name:p}),onClick:p=>d.$router.push({params:{activityId:f.id}}),onRemove:()=>l(f.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:a.withCtx(()=>[a.createElementVNode("div",o9,[a.createVNode(Xs,{"icon-name":"AddBoxOutlineRounded",label:d.$t("template.activities.add"),onClick:n},null,8,["label"])])]),_:1},8,["model-value","title"])):a.createCommentVNode("",!0)}}),a9={class:"ao-modal"},l9={key:0,class:"ao-modal__header"},c9={class:"ao-modal__header-meta"},d9={class:"ao-modal__title-group"},h9={class:"ao-modal__body"},u9={key:1,class:"ao-modal__footer"},Su=a.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${i.size}`])},[a.createElementVNode("div",{class:"ao-modal__backdrop",onClick:t[0]||(t[0]=s=>e.$emit("close"))}),a.createElementVNode("div",a9,[e.$slots.header?(a.openBlock(),a.createElementBlock("div",l9,[a.createElementVNode("div",c9,[a.createVNode(ke,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:t[1]||(t[1]=s=>e.$emit("close"))})]),a.createElementVNode("header",d9,[a.renderSlot(e.$slots,"header")])])):a.createCommentVNode("",!0),a.createElementVNode("div",h9,[a.renderSlot(e.$slots,"default")]),e.$slots.footer?(a.openBlock(),a.createElementBlock("footer",u9,[a.renderSlot(e.$slots,"footer")])):a.createCommentVNode("",!0)])],2))}}),cD="",lc=Math.min,Qs=Math.max,Mu=Math.round,Bu=Math.floor,xs=i=>({x:i,y:i}),f9={left:"right",right:"left",bottom:"top",top:"bottom"};function Gm(i,e){return typeof i=="function"?i(e):i}function Nr(i){return i.split("-")[0]}function Nu(i){return i.split("-")[1]}function p9(i){return i==="x"?"y":"x"}function H2(i){return i==="y"?"height":"width"}function eo(i){const e=i[0];return e==="t"||e==="b"?"y":"x"}function F2(i){return p9(eo(i))}function m9(i,e,t){t===void 0&&(t=!1);const s=Nu(i),n=F2(i),r=H2(n);let l=n==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=Lu(l)),[l,Lu(l)]}function g9(i){const e=Lu(i);return[Ym(i),e,Ym(e)]}function Ym(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}const z2=["left","right"],j2=["right","left"],v9=["top","bottom"],y9=["bottom","top"];function b9(i,e,t){switch(i){case"top":case"bottom":return t?e?j2:z2:e?z2:j2;case"left":case"right":return e?v9:y9;default:return[]}}function C9(i,e,t,s){const n=Nu(i);let r=b9(Nr(i),t==="start",s);return n&&(r=r.map(l=>l+"-"+n),e&&(r=r.concat(r.map(Ym)))),r}function Lu(i){const e=Nr(i);return f9[e]+i.slice(e.length)}function w9(i){var e,t,s,n;return{top:(e=i.top)!=null?e:0,right:(t=i.right)!=null?t:0,bottom:(s=i.bottom)!=null?s:0,left:(n=i.left)!=null?n:0}}function _9(i){return typeof i!="number"?w9(i):{top:i,right:i,bottom:i,left:i}}function Au(i){const{x:e,y:t,width:s,height:n}=i;return{width:s,height:n,top:t,left:e,right:e+s,bottom:t+n,x:e,y:t}}function W2(i,e,t){let{reference:s,floating:n}=i;const r=eo(e),l=F2(e),c=H2(l),d=Nr(e),h=r==="y",f=s.x+s.width/2-n.width/2,p=s.y+s.height/2-n.height/2,m=s[c]/2-n[c]/2;let g;switch(d){case"top":g={x:f,y:s.y-n.height};break;case"bottom":g={x:f,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:p};break;case"left":g={x:s.x-n.width,y:p};break;default:g={x:s.x,y:s.y}}const y=Nu(e);return y&&(g[l]+=m*(y==="end"?1:-1)*(t&&h?-1:1)),g}async function k9(i,e){var t;e===void 0&&(e={});const{x:s,y:n,platform:r,rects:l,elements:c,strategy:d}=i,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Gm(e,i),y=_9(g),b=c[m?p==="floating"?"reference":"floating":p],w=Au(await r.getClippingRect({element:(t=await(r.isElement==null?void 0:r.isElement(b)))==null||t?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:h,rootBoundary:f,strategy:d})),_=p==="floating"?{x:s,y:n,width:l.floating.width,height:l.floating.height}:l.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),S=await(r.isElement==null?void 0:r.isElement(x))&&await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1},M=Au(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:x,strategy:d}):_);return{top:(w.top-M.top+y.top)/S.y,bottom:(M.bottom-w.bottom+y.bottom)/S.y,left:(w.left-M.left+y.left)/S.x,right:(M.right-w.right+y.right)/S.x}}const x9=50,E9=async(i,e,t)=>{const{placement:s="bottom",strategy:n="absolute",middleware:r=[],platform:l}=t,c=l.detectOverflow?l:{...l,detectOverflow:k9},d=await(l.isRTL==null?void 0:l.isRTL(e));let h=await l.getElementRects({reference:i,floating:e,strategy:n}),{x:f,y:p}=W2(h,s,d),m=s,g=0;const y={};for(let v=0;v<r.length;v++){const b=r[v];if(!b)continue;const{name:w,fn:_}=b,{x,y:S,data:M,reset:T}=await _({x:f,y:p,initialPlacement:s,placement:m,strategy:n,middlewareData:y,rects:h,platform:c,elements:{reference:i,floating:e}});f=x??f,p=S??p,y[w]={...y[w],...M},T&&g<x9&&(g++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(h=T.rects===!0?await l.getElementRects({reference:i,floating:e,strategy:n}):T.rects),{x:f,y:p}=W2(h,m,d)),v=-1)}return{x:f,y:p,placement:m,strategy:n,middlewareData:y}},T9=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var t,s;const{placement:n,middlewareData:r,rects:l,initialPlacement:c,platform:d,elements:h}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...b}=Gm(i,e);if((t=r.arrow)!=null&&t.alignmentOffset)return{};const w=Nr(n),_=eo(c),x=Nr(c)===c,S=await(d.isRTL==null?void 0:d.isRTL(h.floating)),M=m||(x||!v?[Lu(c)]:g9(c)),T=y!=="none";!m&&T&&M.push(...C9(c,v,y,S));const L=[c,...M],B=await d.detectOverflow(e,b),N=[];let O=((s=r.flip)==null?void 0:s.overflows)||[];if(f&&N.push(B[w]),p){const $=m9(n,l,S);N.push(B[$[0]],B[$[1]])}if(O=[...O,{placement:n,overflows:N}],!N.every($=>$<=0)){var A,V;const $=(((A=r.flip)==null?void 0:A.index)||0)+1,P=L[$];if(P&&(!(p==="alignment"?_!==eo(P):!1)||O.every(F=>eo(F.placement)===_?F.overflows[0]>0:!0)))return{data:{index:$,overflows:O},reset:{placement:P}};let W=(V=O.filter(Z=>Z.overflows[0]<=0).sort((Z,F)=>Z.overflows[1]-F.overflows[1])[0])==null?void 0:V.placement;if(!W)switch(g){case"bestFit":{var R;const Z=(R=O.filter(F=>{if(T){const I=eo(F.placement);return I===_||I==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(I=>I>0).reduce((I,G)=>I+G,0)]).sort((F,I)=>F[1]-I[1])[0])==null?void 0:R[0];Z&&(W=Z);break}case"initialPlacement":W=c;break}if(n!==W)return{reset:{placement:W}}}return{}}}},S9=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(e){const{placement:t,rects:s,platform:n,elements:r}=e,{apply:l=()=>{},...c}=Gm(i,e),d=await n.detectOverflow(e,c),h=Nr(t),f=Nu(t),p=eo(t)==="y",{width:m,height:g}=s.floating;let y,v;h==="top"||h==="bottom"?(y=h,v=f===(await(n.isRTL==null?void 0:n.isRTL(r.floating))?"start":"end")?"left":"right"):(v=h,y=f==="end"?"top":"bottom");const b=g-d.top-d.bottom,w=m-d.left-d.right,_=lc(g-d[y],b),x=lc(m-d[v],w),S=e.middlewareData.shift,M=!S;let T=_,L=x;S!=null&&S.enabled.x&&(L=w),S!=null&&S.enabled.y&&(T=b),M&&!f&&(p?L=m-2*Qs(d.left,d.right):T=g-2*Qs(d.top,d.bottom)),await l({...e,availableWidth:L,availableHeight:T});const B=await n.getDimensions(r.floating);return m!==B.width||g!==B.height?{reset:{rects:!0}}:{}}}};function $u(){return typeof window<"u"}function Lr(i){return U2(i)?(i.nodeName||"").toLowerCase():"#document"}function Qt(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function Es(i){var e;return(e=(U2(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function U2(i){return $u()?i instanceof Node||i instanceof Qt(i).Node:!1}function qi(i){return $u()?i instanceof Element||i instanceof Qt(i).Element:!1}function Js(i){return $u()?i instanceof HTMLElement||i instanceof Qt(i).HTMLElement:!1}function q2(i){return!$u()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof Qt(i).ShadowRoot}function Ou(i){const{overflow:e,overflowX:t,overflowY:s,display:n}=Zi(i);return/auto|scroll|overlay|hidden|clip/.test(e+s+t)&&n!=="inline"&&n!=="contents"}function M9(i){return/^(table|td|th)$/.test(Lr(i))}function Vu(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}const B9=/transform|translate|scale|rotate|perspective|filter/,N9=/paint|layout|strict|content/,to=i=>!!i&&i!=="none";let Km;function Xm(i){const e=qi(i)?Zi(i):i;return to(e.transform)||to(e.translate)||to(e.scale)||to(e.rotate)||to(e.perspective)||!Qm()&&(to(e.backdropFilter)||to(e.filter))||B9.test(e.willChange||"")||N9.test(e.contain||"")}function L9(i){let e=io(i);for(;Js(e)&&!cc(e);){if(Xm(e))return e;if(Vu(e))return null;e=io(e)}return null}function Qm(){return Km==null&&(Km=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Km}function cc(i){return/^(html|body|#document)$/.test(Lr(i))}function Zi(i){return Qt(i).getComputedStyle(i)}function Ru(i){return qi(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function io(i){if(Lr(i)==="html")return i;const e=i.assignedSlot||i.parentNode||q2(i)&&i.host||Es(i);return q2(e)?e.host:e}function Z2(i){const e=io(i);return cc(e)?(i.ownerDocument||i).body:Js(e)&&Ou(e)?e:Z2(e)}function dc(i,e,t){var s;e===void 0&&(e=[]),t===void 0&&(t=!0);const n=Z2(i),r=n===((s=i.ownerDocument)==null?void 0:s.body),l=Qt(n);if(r){const c=Jm(l);return e.concat(l,l.visualViewport||[],Ou(n)?n:[],c&&t?dc(c):[])}else return e.concat(n,dc(n,[],t))}function Jm(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function G2(i){const e=Zi(i);let t=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const n=Js(i),r=n?i.offsetWidth:t,l=n?i.offsetHeight:s,c=Mu(t)!==r||Mu(s)!==l;return c&&(t=r,s=l),{width:t,height:s,$:c}}function eg(i){return qi(i)?i:i.contextElement}function Ar(i){const e=eg(i);if(!Js(e))return xs(1);const t=e.getBoundingClientRect(),{width:s,height:n,$:r}=G2(e);let l=(r?Mu(t.width):t.width)/s,c=(r?Mu(t.height):t.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const A9=xs(0);function Y2(i){const e=Qt(i);return!Qm()||!e.visualViewport?A9:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $9(i,e,t){return e===void 0&&(e=!1),!!t&&e&&t===Qt(i)}function so(i,e,t,s){e===void 0&&(e=!1),t===void 0&&(t=!1);const n=i.getBoundingClientRect(),r=eg(i);let l=xs(1);e&&(s?qi(s)&&(l=Ar(s)):l=Ar(i));const c=$9(r,t,s)?Y2(r):xs(0);let d=(n.left+c.x)/l.x,h=(n.top+c.y)/l.y,f=n.width/l.x,p=n.height/l.y;if(r&&s){const m=Qt(r),g=qi(s)?Qt(s):s;let y=m,v=Jm(y);for(;v&&g!==y;){const b=Ar(v),w=v.getBoundingClientRect(),_=Zi(v),x=w.left+(v.clientLeft+parseFloat(_.paddingLeft))*b.x,S=w.top+(v.clientTop+parseFloat(_.paddingTop))*b.y;d*=b.x,h*=b.y,f*=b.x,p*=b.y,d+=x,h+=S,y=Qt(v),v=Jm(y)}}return Au({width:f,height:p,x:d,y:h})}function Iu(i,e){const t=Ru(i).scrollLeft;return e?e.left+t:so(Es(i)).left+t}function K2(i,e){const t=i.getBoundingClientRect(),s=t.left+e.scrollLeft-Iu(i,t),n=t.top+e.scrollTop;return{x:s,y:n}}function O9(i){let{elements:e,rect:t,offsetParent:s,strategy:n}=i;const r=n==="fixed",l=Es(s),c=e?Vu(e.floating):!1;if(s===l||c&&r)return t;let d={scrollLeft:0,scrollTop:0},h=xs(1);const f=xs(0),p=Js(s);if((p||!r)&&((Lr(s)!=="body"||Ou(l))&&(d=Ru(s)),p)){const g=so(s);h=Ar(s),f.x=g.x+s.clientLeft,f.y=g.y+s.clientTop}const m=l&&!p&&!r?K2(l,d):xs(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+f.x+m.x,y:t.y*h.y-d.scrollTop*h.y+f.y+m.y}}function V9(i){return i.getClientRects?Array.from(i.getClientRects()):[]}function R9(i){const e=Ru(i),t=i.ownerDocument.body,s=Qs(i.scrollWidth,i.clientWidth,t.scrollWidth,t.clientWidth),n=Qs(i.scrollHeight,i.clientHeight,t.scrollHeight,t.clientHeight);let r=-e.scrollLeft+Iu(i);const l=-e.scrollTop;return Zi(t).direction==="rtl"&&(r+=Qs(i.clientWidth,t.clientWidth)-s),{width:s,height:n,x:r,y:l}}const I9=25;function D9(i,e,t){t===void 0&&(t="viewport");const s=t==="layoutViewport",n=Qt(i),r=Es(i),l=n.visualViewport;let c=r.clientWidth,d=r.clientHeight,h=0,f=0;if(l){const m=!Qm()||e==="fixed";s?m||(h=-l.offsetLeft,f=-l.offsetTop):(c=l.width,d=l.height,m&&(h=l.offsetLeft,f=l.offsetTop))}if(Iu(r)<=0){const m=r.ownerDocument,g=m.body,y=getComputedStyle(g),v=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,b=Math.abs(r.clientWidth-g.clientWidth-v),w=getComputedStyle(r).scrollbarGutter==="stable both-edges"?b/2:b;w<=I9&&(c-=w)}return{width:c,height:d,x:h,y:f}}function P9(i,e){const t=so(i,!0,e==="fixed"),s=t.top+i.clientTop,n=t.left+i.clientLeft,r=Ar(i),l=i.clientWidth*r.x,c=i.clientHeight*r.y,d=n*r.x,h=s*r.y;return{width:l,height:c,x:d,y:h}}function X2(i,e,t){let s;if(e==="viewport"||e==="layoutViewport")s=D9(i,t,e);else if(e==="document")s=R9(Es(i));else if(qi(e))s=P9(e,t);else{const n=Y2(i);s={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Au(s)}function H9(i,e){const t=e.get(i);if(t)return t;let s=dc(i,[],!1).filter(c=>qi(c)&&Lr(c)!=="body"),n=null;const r=Zi(i).position==="fixed";let l=r?io(i):i;for(;qi(l)&&!cc(l);){const c=Zi(l),d=Xm(l),h=n?n.position:r?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&c.position==="static")?s=s.filter(p=>p!==l):n=c,l=io(l)}return e.set(i,s),s}function F9(i){let{element:e,boundary:t,rootBoundary:s,strategy:n}=i;const l=[...t==="clippingAncestors"?Vu(e)?[]:H9(e,this._c):[].concat(t),s],c=X2(e,l[0],n);let d=c.top,h=c.right,f=c.bottom,p=c.left;for(let m=1;m<l.length;m++){const g=X2(e,l[m],n);d=Qs(g.top,d),h=lc(g.right,h),f=lc(g.bottom,f),p=Qs(g.left,p)}return{width:h-p,height:f-d,x:p,y:d}}function z9(i){const{width:e,height:t}=G2(i);return{width:e,height:t}}function j9(i,e,t){const s=Js(e),n=Es(e),r=t==="fixed",l=so(i,!0,r,e);let c={scrollLeft:0,scrollTop:0};const d=xs(0);if((s||!r)&&((Lr(e)!=="body"||Ou(n))&&(c=Ru(e)),s)){const m=so(e,!0,r,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}!s&&n&&(d.x=Iu(n));const h=n&&!s&&!r?K2(n,c):xs(0),f=l.left+c.scrollLeft-d.x-h.x,p=l.top+c.scrollTop-d.y-h.y;return{x:f,y:p,width:l.width,height:l.height}}function tg(i){return Zi(i).position==="static"}function Q2(i,e){if(!Js(i)||Zi(i).position==="fixed")return null;if(e)return e(i);let t=i.offsetParent;return Es(i)===t&&(t=t.ownerDocument.body),t}function J2(i,e){const t=Qt(i);if(Vu(i))return t;if(!Js(i)){let n=io(i);for(;n&&!cc(n);){if(qi(n)&&!tg(n))return n;n=io(n)}return t}let s=Q2(i,e);for(;s&&M9(s)&&tg(s);)s=Q2(s,e);return s&&cc(s)&&tg(s)&&!Xm(s)?t:s||L9(i)||t}const W9=async function(i){const e=this.getOffsetParent||J2,t=this.getDimensions,s=await t(i.floating);return{reference:j9(i.reference,await e(i.floating),i.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function U9(i){return Zi(i).direction==="rtl"}const q9={convertOffsetParentRelativeRectToViewportRelativeRect:O9,getDocumentElement:Es,getClippingRect:F9,getOffsetParent:J2,getElementRects:W9,getClientRects:V9,getDimensions:z9,getScale:Ar,isElement:qi,isRTL:U9};function ev(i,e){return i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height}function Z9(i,e,t){let s=null,n;const r=Es(i);function l(){var f;clearTimeout(n),(f=s)==null||f.disconnect(),s=null}function c(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),l();const m=i.getBoundingClientRect(),{left:g,top:y,width:v,height:b}=m;if(f||e(),!v||!b)return;const w=Bu(y),_=Bu(r.clientWidth-(g+v)),x=Bu(r.clientHeight-(y+b)),S=Bu(g),T={rootMargin:-w+"px "+-_+"px "+-x+"px "+-S+"px",threshold:Qs(0,lc(1,p))||1};let L=!0;function B(N){const O=N[0].intersectionRatio;if(!ev(m,i.getBoundingClientRect()))return c();if(O!==p){if(!L)return c();O?c(!1,O):n=setTimeout(()=>{c(!1,1e-7)},1e3)}L=!1}try{s=new IntersectionObserver(B,{...T,root:r.ownerDocument})}catch{s=new IntersectionObserver(B,T)}s.observe(i)}const d=Qt(i),h=()=>c(t);return d.addEventListener("resize",h),c(!0),()=>{d.removeEventListener("resize",h),l()}}function G9(i,e,t,s){s===void 0&&(s={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=s,h=eg(i),f=n||r?[...h?dc(h):[],...e?dc(e):[]]:[];f.forEach(w=>{n&&w.addEventListener("scroll",t),r&&w.addEventListener("resize",t)});const p=h&&c?Z9(h,t,r):null;let m=-1,g=null;l&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===h&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),t()}),h&&!d&&g.observe(h),e&&g.observe(e));let y,v=d?so(i):null;d&&b();function b(){const w=so(i);v&&!ev(v,w)&&t(),v=w,y=requestAnimationFrame(b)}return t(),()=>{var w;f.forEach(_=>{n&&_.removeEventListener("scroll",t),r&&_.removeEventListener("resize",t)}),p==null||p(),(w=g)==null||w.disconnect(),g=null,d&&cancelAnimationFrame(y)}}const Y9=T9,K9=S9,X9=(i,e,t)=>{const s=new Map,n=t??{},r={...q9,...n.platform,_c:s};return E9(i,e,{...n,platform:r})},Q9=i=>{const e=a.ref(!1),t=a.ref(),s=a.ref(),n=a.ref(0);function r(){const p=a.unref(i.appendTo);return p?typeof p=="string"?document.getElementById(p)??document.body:p:document.getElementById("floatingElements")??document.body}const l=r(),c=a.ref(()=>{});function d(p){p.relatedTarget&&s.value&&s.value.contains(p.relatedTarget)||i.multiselect.value.deactivate()}function h(){const p=i.multiselect.value.$el,m=p.querySelector(".multiselect-dropdown");if(!m||!p||e.value===!0)return;s.value=m,t.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}),l.appendChild(m),i.multiselect.value.handleFocusOut=d;const y=G9(t.value,s.value,f);c.value=()=>{s.value&&l.contains(s.value)&&l.removeChild(s.value),y()}}function f(){!s.value||!t.value||X9(t.value,s.value,{strategy:"absolute",placement:"bottom-start",middleware:[Y9({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),K9({apply({availableWidth:p,availableHeight:m,elements:g,rects:y}){Object.assign(g.floating.style,{minHeight:`${n.value}px`,width:`${y.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`})})}a.onMounted(()=>{h()}),a.onBeforeUnmount(()=>{c.value()}),a.onUnmounted(()=>{c.value()})};function Gi(i){return i==null}function J9(i,e,t){const{object:s,valueProp:n,mode:r}=a.toRefs(i),l=a.getCurrentInstance().proxy,c=t.iv,d=(p,m=!0)=>{c.value=f(p);const g=h(p);e.emit("change",g,l),m&&(e.emit("input",g),e.emit("update:modelValue",g))},h=p=>s.value||Gi(p)?p:Array.isArray(p)?p.map(m=>m[n.value]):p[n.value],f=p=>Gi(p)?r.value==="single"?{}:[]:p;return{update:d}}function dt(i){return a.customRef(()=>({get:i,set:()=>{}}))}function ex(i,e){const{value:t,modelValue:s,mode:n,valueProp:r}=a.toRefs(i),l=a.ref(n.value!=="single"?[]:{}),c=dt(()=>s.value!==void 0?s.value:t.value),d=a.computed(()=>n.value==="single"?l.value[r.value]:l.value.map(f=>f[r.value])),h=dt(()=>n.value!=="single"?l.value.map(f=>f[r.value]).join(","):l.value[r.value]);return{iv:l,internalValue:l,ev:c,externalValue:c,textValue:h,plainValue:d}}function tx(i,e,t){const{regex:s}=a.toRefs(i),n=a.getCurrentInstance().proxy,r=t.isOpen,l=t.open,c=a.ref(null),d=()=>{c.value=""},h=m=>{c.value=m.target.value},f=m=>{if(s.value){let g=s.value;typeof g=="string"&&(g=new RegExp(g)),m.key.match(g)||m.preventDefault()}},p=m=>{if(s.value){let y=(m.clipboardData||window.clipboardData).getData("Text"),v=s.value;typeof v=="string"&&(v=new RegExp(v)),y.split("").every(b=>!!b.match(v))||m.preventDefault()}e.emit("paste",m,n)};return a.watch(c,m=>{!r.value&&m&&l(),e.emit("search-change",m,n)}),{search:c,clearSearch:d,handleSearchInput:h,handleKeypress:f,handlePaste:p}}function ix(i,e,t){const{groupSelect:s,mode:n,groups:r,disabledProp:l}=a.toRefs(i),c=a.ref(null),d=f=>{f===void 0||f!==null&&f[l.value]||r.value&&f&&f.group&&(n.value==="single"||!s.value)||(c.value=f)};return{pointer:c,setPointer:d,clearPointer:()=>{d(null)}}}function ig(i,e=!0){return e?String(i).toLowerCase().trim():String(i).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(/\p{Diacritic}/gu,"")}function sx(i){return Object.prototype.toString.call(i)==="[object Object]"}function nx(i,e){if(i.length!==e.length)return!1;const t=e.slice().sort();return i.slice().sort().every(function(s,n){return s===t[n]})}const tv=(i,e)=>{if(i===e)return!0;if(typeof i!="object"||i===null||typeof e!="object"||e===null)return!1;const t=Object.keys(i),s=Object.keys(e);if(t.length!==s.length)return!1;for(let n of t)if(!s.includes(n)||!tv(i[n],e[n]))return!1;return!0};function ox(i,e,t){const{options:s,mode:n,trackBy:r,limit:l,hideSelected:c,createTag:d,createOption:h,label:f,appendNewTag:p,appendNewOption:m,multipleLabel:g,object:y,loading:v,delay:b,resolveOnLoad:w,minChars:_,filterResults:x,clearOnSearch:S,clearOnSelect:M,valueProp:T,allowAbsent:L,groupLabel:B,canDeselect:N,max:O,strict:A,closeOnSelect:V,closeOnDeselect:R,groups:$,reverse:P,infinite:W,groupOptions:Z,groupHideEmpty:F,groupSelect:I,onCreate:G,disabledProp:j,searchStart:K,searchFilter:se}=a.toRefs(i),D=a.getCurrentInstance().proxy,U=t.iv,z=t.ev,Q=t.search,re=t.clearSearch,le=t.update,Ue=t.pointer,fe=t.setPointer,ft=t.clearPointer,De=t.focus,Le=t.deactivate,we=t.close,lt=t.localize,Me=a.ref([]),st=a.ref([]),Qe=a.ref(!1),ri=a.ref(null),Vt=a.ref(W.value&&l.value===-1?10:l.value),bi=a.computed({get:()=>st.value,set:H=>st.value=H}),Zs=dt(()=>d.value||h.value||!1),Wh=dt(()=>p.value!==void 0?p.value:m.value!==void 0?m.value:!0),Wi=a.computed(()=>{if($.value){let H=kr.value||[],J=[];return H.forEach(Ne=>{u0(Ne[Z.value]).forEach(bt=>{J.push(Object.assign({},bt,Ne[j.value]?{[j.value]:!0}:{}))})}),J}else{let H=u0(st.value||[]);return Me.value.length&&(H=H.concat(Me.value)),H}}),Uh=a.computed(()=>{let H=Wi.value;return P.value&&(H=H.reverse()),Pl.value.length&&(H=Pl.value.concat(H)),h0(H)}),Kn=a.computed(()=>{let H=Uh.value;return Vt.value>0&&(H=H.slice(0,Vt.value)),H}),kr=a.computed(()=>{if(!$.value)return[];let H=[],J=st.value||[];return Me.value.length&&H.push({[B.value]:" ",[Z.value]:[...Me.value],__CREATE__:!0}),H.concat(J)}),xI=a.computed(()=>{let H=[...kr.value].map(J=>({...J}));return Pl.value.length&&(H[0]&&H[0].__CREATE__?H[0][Z.value]=[...Pl.value,...H[0][Z.value]]:H=[{[B.value]:" ",[Z.value]:[...Pl.value],__CREATE__:!0}].concat(H)),H}),r0=a.computed(()=>{if(!$.value)return[];let H=xI.value;return PI((H||[]).map((J,Ne)=>{const bt=u0(J[Z.value]);return{...J,index:Ne,group:!0,[Z.value]:h0(bt,!1).map(Er=>Object.assign({},Er,J[j.value]?{[j.value]:!0}:{})),__VISIBLE__:h0(bt).map(Er=>Object.assign({},Er,J[j.value]?{[j.value]:!0}:{}))}}))}),a0=a.computed(()=>{switch(n.value){case"single":return!Gi(U.value[T.value]);case"multiple":case"tags":return!Gi(U.value)&&U.value.length>0}}),EI=a.computed(()=>g.value!==void 0?g.value(U.value,D):U.value&&U.value.length>1?`${U.value.length} options selected`:"1 option selected"),TI=dt(()=>!Wi.value.length&&!Qe.value&&!Pl.value.length),SI=dt(()=>Wi.value.length>0&&Kn.value.length==0&&(Q.value&&$.value||!$.value)),Pl=a.computed(()=>Zs.value===!1||!Q.value?[]:RI(Q.value)!==-1?[]:[{[T.value]:Q.value,[xr.value[0]]:Q.value,[f.value]:Q.value,__CREATE__:!0}]),xr=a.computed(()=>r.value?Array.isArray(r.value)?r.value:[r.value]:[f.value]),MI=dt(()=>{switch(n.value){case"single":return null;case"multiple":case"tags":return[]}}),BI=dt(()=>v.value||Qe.value),Hl=H=>{switch(typeof H!="object"&&(H=Ys(H)),n.value){case"single":le(H);break;case"multiple":case"tags":le(U.value.concat(H));break}e.emit("select",Yy(H),H,D)},Fl=H=>{switch(typeof H!="object"&&(H=Ys(H)),n.value){case"single":Xy();break;case"tags":case"multiple":le(Array.isArray(H)?U.value.filter(J=>H.map(Ne=>Ne[T.value]).indexOf(J[T.value])===-1):U.value.filter(J=>J[T.value]!=H[T.value]));break}e.emit("deselect",Yy(H),H,D)},Yy=H=>y.value?H:H[T.value],Ky=H=>{Fl(H)},NI=(H,J)=>{if(J.button!==0){J.preventDefault();return}Ky(H)},Xy=()=>{le(MI.value),e.emit("clear",D)},Gs=H=>{if(H.group!==void 0)return n.value==="single"?!1:VI(H[Z.value])&&H[Z.value].length;switch(n.value){case"single":return!Gi(U.value)&&(U.value[T.value]==H[T.value]||typeof U.value[T.value]=="object"&&typeof H[T.value]=="object"&&tv(U.value[T.value],H[T.value]));case"tags":case"multiple":return!Gi(U.value)&&U.value.map(J=>J[T.value]).indexOf(H[T.value])!==-1}},l0=H=>H[j.value]===!0,c0=()=>O===void 0||O.value===-1||!a0.value&&O.value>0?!1:U.value.length>=O.value,LI=H=>{if(!l0(H)){if(G.value&&!Gs(H)&&H.__CREATE__&&(H={...H},delete H.__CREATE__,H=G.value(H,D),H instanceof Promise)){Qe.value=!0,H.then(J=>{Qe.value=!1,Qy(J)});return}Qy(H)}},Qy=H=>{switch(H.__CREATE__&&(H={...H},delete H.__CREATE__),n.value){case"single":if(H&&Gs(H)){N.value&&Fl(H),R.value&&(ft(),we());return}H&&d0(H),M.value&&re(),V.value&&(ft(),we()),H&&Hl(H);break;case"multiple":if(H&&Gs(H)){Fl(H),R.value&&(ft(),we());return}if(c0()){e.emit("max",D);return}H&&(d0(H),Hl(H)),M.value&&re(),c.value&&ft(),V.value&&we();break;case"tags":if(H&&Gs(H)){Fl(H),R.value&&(ft(),we());return}if(c0()){e.emit("max",D);return}H&&d0(H),M.value&&re(),H&&Hl(H),c.value&&ft(),V.value&&we();break}V.value||De()},AI=H=>{if(!(l0(H)||n.value==="single"||!I.value)){switch(n.value){case"multiple":case"tags":OI(H[Z.value])?Fl(H[Z.value]):Hl(H[Z.value].filter(J=>U.value.map(Ne=>Ne[T.value]).indexOf(J[T.value])===-1).filter(J=>!J[j.value]).filter((J,Ne)=>U.value.length+1+Ne<=O.value||O.value===-1)),c.value&&Ue.value&&fe(r0.value.filter(J=>!J[j.value])[Ue.value.index]);break}V.value&&Le()}},d0=H=>{Ys(H[T.value])===void 0&&Zs.value&&(e.emit("tag",H[T.value],D),e.emit("option",H[T.value],D),e.emit("create",H[T.value],D),Wh.value&&DI(H),re())},$I=()=>{n.value!=="single"&&Hl(Kn.value.filter(H=>!H.disabled&&!Gs(H)))},OI=H=>H.find(J=>!Gs(J)&&!J[j.value])===void 0,VI=H=>H.find(J=>!Gs(J))===void 0,Ys=H=>Wi.value[Wi.value.map(J=>String(J[T.value])).indexOf(String(H))],RI=H=>Wi.value.findIndex(J=>xr.value.some(Ne=>(parseInt(J[Ne])==J[Ne]?parseInt(J[Ne]):J[Ne])===(parseInt(H)==H?parseInt(H):H))),II=H=>["tags","multiple"].indexOf(n.value)!==-1&&c.value&&Gs(H),DI=H=>{Me.value.push(H)},PI=H=>F.value?H.filter(J=>Q.value?J.__VISIBLE__.length:J[Z.value].length):H.filter(J=>Q.value?J.__VISIBLE__.length:!0),h0=(H,J=!0)=>{let Ne=H;if(Q.value&&x.value){let bt=se.value;bt||(bt=(Er,e3,tP)=>xr.value.some(FI=>{let t3=ig(lt(Er[FI]),A.value);return K.value?t3.startsWith(ig(e3,A.value)):t3.indexOf(ig(e3,A.value))!==-1})),Ne=Ne.filter(Er=>bt(Er,Q.value,D))}return c.value&&J&&(Ne=Ne.filter(bt=>!II(bt))),Ne},u0=H=>{let J=H;return sx(J)&&(J=Object.keys(J).map(Ne=>{let bt=J[Ne];return{[T.value]:Ne,[xr.value[0]]:bt,[f.value]:bt}})),J&&Array.isArray(J)?J=J.map(Ne=>typeof Ne=="object"?Ne:{[T.value]:Ne,[xr.value[0]]:Ne,[f.value]:Ne}):J=[],J},_m=()=>{Gi(z.value)||(U.value=xm(z.value))},km=H=>(Qe.value=!0,new Promise((J,Ne)=>{s.value(Q.value,D).then(bt=>{st.value=bt||[],typeof H=="function"&&H(bt),Qe.value=!1}).catch(bt=>{console.error(bt),st.value=[],Qe.value=!1}).finally(()=>{J()})})),f0=()=>{if(a0.value)if(n.value==="single"){let H=Ys(U.value[T.value]);if(H!==void 0){let J=H[f.value];U.value[f.value]=J,y.value&&(z.value[f.value]=J)}}else U.value.forEach((H,J)=>{let Ne=Ys(U.value[J][T.value]);if(Ne!==void 0){let bt=Ne[f.value];U.value[J][f.value]=bt,y.value&&(z.value[J][f.value]=bt)}})},HI=H=>{km(H)},xm=H=>Gi(H)?n.value==="single"?{}:[]:y.value?H:n.value==="single"?Ys(H)||(L.value?{[f.value]:H,[T.value]:H,[xr.value[0]]:H}:{}):H.filter(J=>!!Ys(J)||L.value).map(J=>Ys(J)||{[f.value]:J,[T.value]:J,[xr.value[0]]:J}),Jy=()=>{ri.value=a.watch(Q,H=>{H.length<_.value||!H&&_.value!==0||(Qe.value=!0,S.value&&(st.value=[]),setTimeout(()=>{H==Q.value&&s.value(Q.value,D).then(J=>{(H==Q.value||!Q.value)&&(st.value=J,Ue.value=Kn.value.filter(Ne=>Ne[j.value]!==!0)[0]||null,Qe.value=!1)}).catch(J=>{console.error(J)})},b.value))},{flush:"sync"})};if(n.value!=="single"&&!Gi(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${n.value}" mode`);return s&&typeof s.value=="function"?w.value?km(_m):y.value==!0&&_m():(st.value=s.value,_m()),b.value>-1&&Jy(),a.watch(b,(H,J)=>{ri.value&&ri.value(),H>=0&&Jy()}),a.watch(z,H=>{if(Gi(H)){le(xm(H),!1);return}switch(n.value){case"single":(y.value?H[T.value]!=U.value[T.value]:H!=U.value[T.value])&&le(xm(H),!1);break;case"multiple":case"tags":nx(y.value?H.map(J=>J[T.value]):H,U.value.map(J=>J[T.value]))||le(xm(H),!1);break}},{deep:!0}),a.watch(s,(H,J)=>{typeof i.options=="function"?w.value&&(!J||H&&H.toString()!==J.toString())&&km():(st.value=i.options,Object.keys(U.value).length||_m(),f0())}),a.watch(f,f0),a.watch(l,(H,J)=>{Vt.value=W.value&&H===-1?10:H}),{resolvedOptions:bi,pfo:Uh,fo:Kn,filteredOptions:Kn,hasSelected:a0,multipleLabelText:EI,eo:Wi,extendedOptions:Wi,eg:kr,extendedGroups:kr,fg:r0,filteredGroups:r0,noOptions:TI,noResults:SI,resolving:Qe,busy:BI,offset:Vt,select:Hl,deselect:Fl,remove:Ky,selectAll:$I,clear:Xy,isSelected:Gs,isDisabled:l0,isMax:c0,getOption:Ys,handleOptionClick:LI,handleGroupClick:AI,handleTagRemove:NI,refreshOptions:HI,resolveOptions:km,refreshLabels:f0}}function rx(i,e,t){const{valueProp:s,showOptions:n,searchable:r,groupLabel:l,groups:c,mode:d,groupSelect:h,disabledProp:f,groupOptions:p}=a.toRefs(i),m=t.fo,g=t.fg,y=t.handleOptionClick,v=t.handleGroupClick,b=t.search,w=t.pointer,_=t.setPointer,x=t.clearPointer,S=t.multiselect,M=t.isOpen,T=a.computed(()=>m.value.filter(z=>!z[f.value])),L=a.computed(()=>g.value.filter(z=>!z[f.value])),B=dt(()=>d.value!=="single"&&h.value),N=dt(()=>w.value&&w.value.group),O=a.computed(()=>D(w.value)),A=a.computed(()=>{const z=N.value?w.value:D(w.value),Q=L.value.map(le=>le[l.value]).indexOf(z[l.value]);let re=L.value[Q-1];return re===void 0&&(re=R.value),re}),V=a.computed(()=>{let z=L.value.map(Q=>Q.label).indexOf(N.value?w.value[l.value]:D(w.value)[l.value])+1;return L.value.length<=z&&(z=0),L.value[z]}),R=a.computed(()=>[...L.value].slice(-1)[0]),$=a.computed(()=>w.value.__VISIBLE__.filter(z=>!z[f.value])[0]),P=a.computed(()=>{const z=O.value.__VISIBLE__.filter(Q=>!Q[f.value]);return z[z.map(Q=>Q[s.value]).indexOf(w.value[s.value])-1]}),W=a.computed(()=>{const z=D(w.value).__VISIBLE__.filter(Q=>!Q[f.value]);return z[z.map(Q=>Q[s.value]).indexOf(w.value[s.value])+1]}),Z=a.computed(()=>[...A.value.__VISIBLE__.filter(z=>!z[f.value])].slice(-1)[0]),F=a.computed(()=>[...R.value.__VISIBLE__.filter(z=>!z[f.value])].slice(-1)[0]),I=z=>w.value&&(!z.group&&w.value[s.value]===z[s.value]||z.group!==void 0&&w.value[l.value]===z[l.value])?!0:void 0,G=()=>{_(T.value[0]||null)},j=()=>{!w.value||w.value[f.value]===!0||(N.value?v(w.value):y(w.value))},K=()=>{if(w.value===null)_((c.value&&B.value?L.value[0].__CREATE__?T.value[0]:L.value[0]:T.value[0])||null);else if(c.value&&B.value){let z=N.value?$.value:W.value;z===void 0&&(z=V.value,z.__CREATE__&&(z=z[p.value][0])),_(z||null)}else{let z=T.value.map(Q=>Q[s.value]).indexOf(w.value[s.value])+1;T.value.length<=z&&(z=0),_(T.value[z]||null)}a.nextTick(()=>{U()})},se=()=>{if(w.value===null){let z=T.value[T.value.length-1];c.value&&B.value&&(z=F.value,z===void 0&&(z=R.value)),_(z||null)}else if(c.value&&B.value){let z=N.value?Z.value:P.value;z===void 0&&(z=N.value?A.value:O.value,z.__CREATE__&&(z=Z.value,z===void 0&&(z=A.value))),_(z||null)}else{let z=T.value.map(Q=>Q[s.value]).indexOf(w.value[s.value])-1;z<0&&(z=T.value.length-1),_(T.value[z]||null)}a.nextTick(()=>{U()})},D=z=>L.value.find(Q=>Q.__VISIBLE__.map(re=>re[s.value]).indexOf(z[s.value])!==-1),U=()=>{let z=S.value.querySelector("[data-pointed]");if(!z)return;let Q=z.parentElement.parentElement;c.value&&(Q=N.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>Q.clientHeight+Q.scrollTop&&(Q.scrollTop=z.offsetTop+z.offsetHeight-Q.clientHeight),z.offsetTop<Q.scrollTop&&(Q.scrollTop=z.offsetTop)};return a.watch(b,z=>{r.value&&(z.length&&n.value?G():x())}),a.watch(M,z=>{if(z&&S&&S.value){let Q=S.value.querySelectorAll("[data-selected]")[0];if(!Q)return;let re=Q.parentElement.parentElement;a.nextTick(()=>{re.scrollTop=Q.offsetTop})}}),{pointer:w,canPointGroups:B,isPointed:I,setPointerFirst:G,selectPointer:j,forwardPointer:K,backwardPointer:se}}function li(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function no(i){var e=li(i).Element;return i instanceof e||i instanceof Element}function wi(i){var e=li(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function sg(i){if(typeof ShadowRoot>"u")return!1;var e=li(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}var oo=Math.max,Du=Math.min,$r=Math.round;function ng(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function iv(){return!/^((?!chrome|android).)*safari/i.test(ng())}function Or(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var s=i.getBoundingClientRect(),n=1,r=1;e&&wi(i)&&(n=i.offsetWidth>0&&$r(s.width)/i.offsetWidth||1,r=i.offsetHeight>0&&$r(s.height)/i.offsetHeight||1);var l=no(i)?li(i):window,c=l.visualViewport,d=!iv()&&t,h=(s.left+(d&&c?c.offsetLeft:0))/n,f=(s.top+(d&&c?c.offsetTop:0))/r,p=s.width/n,m=s.height/r;return{width:p,height:m,top:f,right:h+p,bottom:f+m,left:h,x:h,y:f}}function og(i){var e=li(i),t=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:t,scrollTop:s}}function ax(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function lx(i){return i===li(i)||!wi(i)?og(i):ax(i)}function Yi(i){return i?(i.nodeName||"").toLowerCase():null}function en(i){return((no(i)?i.ownerDocument:i.document)||window.document).documentElement}function rg(i){return Or(en(i)).left+og(i).scrollLeft}function Ts(i){return li(i).getComputedStyle(i)}function ag(i){var e=Ts(i),t=e.overflow,s=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+s)}function cx(i){var e=i.getBoundingClientRect(),t=$r(e.width)/i.offsetWidth||1,s=$r(e.height)/i.offsetHeight||1;return t!==1||s!==1}function dx(i,e,t){t===void 0&&(t=!1);var s=wi(e),n=wi(e)&&cx(e),r=en(e),l=Or(i,n,t),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!t)&&((Yi(e)!=="body"||ag(r))&&(c=lx(e)),wi(e)?(d=Or(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):r&&(d.x=rg(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function sv(i){var e=Or(i),t=i.offsetWidth,s=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:s}}function Pu(i){return Yi(i)==="html"?i:i.assignedSlot||i.parentNode||(sg(i)?i.host:null)||en(i)}function nv(i){return["html","body","#document"].indexOf(Yi(i))>=0?i.ownerDocument.body:wi(i)&&ag(i)?i:nv(Pu(i))}function hc(i,e){var t;e===void 0&&(e=[]);var s=nv(i),n=s===((t=i.ownerDocument)==null?void 0:t.body),r=li(s),l=n?[r].concat(r.visualViewport||[],ag(s)?s:[]):s,c=e.concat(l);return n?c:c.concat(hc(Pu(l)))}function hx(i){return["table","td","th"].indexOf(Yi(i))>=0}function ov(i){return!wi(i)||Ts(i).position==="fixed"?null:i.offsetParent}function ux(i){var e=/firefox/i.test(ng()),t=/Trident/i.test(ng());if(t&&wi(i)){var s=Ts(i);if(s.position==="fixed")return null}var n=Pu(i);for(sg(n)&&(n=n.host);wi(n)&&["html","body"].indexOf(Yi(n))<0;){var r=Ts(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function Hu(i){for(var e=li(i),t=ov(i);t&&hx(t)&&Ts(t).position==="static";)t=ov(t);return t&&(Yi(t)==="html"||Yi(t)==="body"&&Ts(t).position==="static")?e:t||ux(i)||e}var $i="top",Ki="bottom",tn="right",Ss="left",lg="auto",Fu=[$i,Ki,tn,Ss],Vr="start",uc="end",fx="clippingParents",rv="viewport",fc="popper",px="reference",av=Fu.reduce(function(i,e){return i.concat([e+"-"+Vr,e+"-"+uc])},[]),mx=[].concat(Fu,[lg]).reduce(function(i,e){return i.concat([e,e+"-"+Vr,e+"-"+uc])},[]),gx="beforeRead",vx="read",yx="afterRead",bx="beforeMain",Cx="main",wx="afterMain",_x="beforeWrite",kx="write",xx="afterWrite",Ex=[gx,vx,yx,bx,Cx,wx,_x,kx,xx];function Tx(i){var e=new Map,t=new Set,s=[];i.forEach(function(r){e.set(r.name,r)});function n(r){t.add(r.name);var l=[].concat(r.requires||[],r.requiresIfExists||[]);l.forEach(function(c){if(!t.has(c)){var d=e.get(c);d&&n(d)}}),s.push(r)}return i.forEach(function(r){t.has(r.name)||n(r)}),s}function Sx(i){var e=Tx(i);return Ex.reduce(function(t,s){return t.concat(e.filter(function(n){return n.phase===s}))},[])}function Mx(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function Bx(i){var e=i.reduce(function(t,s){var n=t[s.name];return t[s.name]=n?Object.assign({},n,s,{options:Object.assign({},n.options,s.options),data:Object.assign({},n.data,s.data)}):s,t},{});return Object.keys(e).map(function(t){return e[t]})}function Nx(i,e){var t=li(i),s=en(i),n=t.visualViewport,r=s.clientWidth,l=s.clientHeight,c=0,d=0;if(n){r=n.width,l=n.height;var h=iv();(h||!h&&e==="fixed")&&(c=n.offsetLeft,d=n.offsetTop)}return{width:r,height:l,x:c+rg(i),y:d}}function Lx(i){var e,t=en(i),s=og(i),n=(e=i.ownerDocument)==null?void 0:e.body,r=oo(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=oo(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),c=-s.scrollLeft+rg(i),d=-s.scrollTop;return Ts(n||t).direction==="rtl"&&(c+=oo(t.clientWidth,n?n.clientWidth:0)-r),{width:r,height:l,x:c,y:d}}function Ax(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&sg(t)){var s=e;do{if(s&&i.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function cg(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function $x(i,e){var t=Or(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function lv(i,e,t){return e===rv?cg(Nx(i,t)):no(e)?$x(e,t):cg(Lx(en(i)))}function Ox(i){var e=hc(Pu(i)),t=["absolute","fixed"].indexOf(Ts(i).position)>=0,s=t&&wi(i)?Hu(i):i;return no(s)?e.filter(function(n){return no(n)&&Ax(n,s)&&Yi(n)!=="body"}):[]}function Vx(i,e,t,s){var n=e==="clippingParents"?Ox(i):[].concat(e),r=[].concat(n,[t]),l=r[0],c=r.reduce(function(d,h){var f=lv(i,h,s);return d.top=oo(f.top,d.top),d.right=Du(f.right,d.right),d.bottom=Du(f.bottom,d.bottom),d.left=oo(f.left,d.left),d},lv(i,l,s));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function sn(i){return i.split("-")[0]}function Rr(i){return i.split("-")[1]}function cv(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function dv(i){var e=i.reference,t=i.element,s=i.placement,n=s?sn(s):null,r=s?Rr(s):null,l=e.x+e.width/2-t.width/2,c=e.y+e.height/2-t.height/2,d;switch(n){case $i:d={x:l,y:e.y-t.height};break;case Ki:d={x:l,y:e.y+e.height};break;case tn:d={x:e.x+e.width,y:c};break;case Ss:d={x:e.x-t.width,y:c};break;default:d={x:e.x,y:e.y}}var h=n?cv(n):null;if(h!=null){var f=h==="y"?"height":"width";switch(r){case Vr:d[h]=d[h]-(e[f]/2-t[f]/2);break;case uc:d[h]=d[h]+(e[f]/2-t[f]/2);break}}return d}function hv(){return{top:0,right:0,bottom:0,left:0}}function Rx(i){return Object.assign({},hv(),i)}function Ix(i,e){return e.reduce(function(t,s){return t[s]=i,t},{})}function dg(i,e){e===void 0&&(e={});var t=e,s=t.placement,n=s===void 0?i.placement:s,r=t.strategy,l=r===void 0?i.strategy:r,c=t.boundary,d=c===void 0?fx:c,h=t.rootBoundary,f=h===void 0?rv:h,p=t.elementContext,m=p===void 0?fc:p,g=t.altBoundary,y=g===void 0?!1:g,v=t.padding,b=v===void 0?0:v,w=Rx(typeof b!="number"?b:Ix(b,Fu)),_=m===fc?px:fc,x=i.rects.popper,S=i.elements[y?_:m],M=Vx(no(S)?S:S.contextElement||en(i.elements.popper),d,f,l),T=Or(i.elements.reference),L=dv({reference:T,element:x,strategy:"absolute",placement:n}),B=cg(Object.assign({},x,L)),N=m===fc?B:T,O={top:M.top-N.top+w.top,bottom:N.bottom-M.bottom+w.bottom,left:M.left-N.left+w.left,right:N.right-M.right+w.right},A=i.modifiersData.offset;if(m===fc&&A){var V=A[n];Object.keys(O).forEach(function(R){var $=[tn,Ki].indexOf(R)>=0?1:-1,P=[$i,Ki].indexOf(R)>=0?"y":"x";O[R]+=V[P]*$})}return O}var uv={placement:"bottom",modifiers:[],strategy:"absolute"};function fv(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Dx(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,s=t===void 0?[]:t,n=e.defaultOptions,r=n===void 0?uv:n;return function(c,d,h){h===void 0&&(h=r);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},uv,r),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},p=[],m=!1,g={state:f,setOptions:function(w){var _=typeof w=="function"?w(f.options):w;v(),f.options=Object.assign({},r,f.options,_),f.scrollParents={reference:no(c)?hc(c):c.contextElement?hc(c.contextElement):[],popper:hc(d)};var x=Sx(Bx([].concat(s,f.options.modifiers)));return f.orderedModifiers=x.filter(function(S){return S.enabled}),y(),g.update()},forceUpdate:function(){if(!m){var w=f.elements,_=w.reference,x=w.popper;if(fv(_,x)){f.rects={reference:dx(_,Hu(x),f.options.strategy==="fixed"),popper:sv(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(O){return f.modifiersData[O.name]=Object.assign({},O.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var M=f.orderedModifiers[S],T=M.fn,L=M.options,B=L===void 0?{}:L,N=M.name;typeof T=="function"&&(f=T({state:f,options:B,name:N,instance:g})||f)}}}},update:Mx(function(){return new Promise(function(b){g.forceUpdate(),b(f)})}),destroy:function(){v(),m=!0}};if(!fv(c,d))return g;g.setOptions(h).then(function(b){!m&&h.onFirstUpdate&&h.onFirstUpdate(b)});function y(){f.orderedModifiers.forEach(function(b){var w=b.name,_=b.options,x=_===void 0?{}:_,S=b.effect;if(typeof S=="function"){var M=S({state:f,name:w,instance:g,options:x}),T=function(){};p.push(M||T)}})}function v(){p.forEach(function(b){return b()}),p=[]}return g}}var zu={passive:!0};function Px(i){var e=i.state,t=i.instance,s=i.options,n=s.scroll,r=n===void 0?!0:n,l=s.resize,c=l===void 0?!0:l,d=li(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&h.forEach(function(f){f.addEventListener("scroll",t.update,zu)}),c&&d.addEventListener("resize",t.update,zu),function(){r&&h.forEach(function(f){f.removeEventListener("scroll",t.update,zu)}),c&&d.removeEventListener("resize",t.update,zu)}}var Hx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Px,data:{}};function Fx(i){var e=i.state,t=i.name;e.modifiersData[t]=dv({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var zx={name:"popperOffsets",enabled:!0,phase:"read",fn:Fx,data:{}},jx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wx(i,e){var t=i.x,s=i.y,n=e.devicePixelRatio||1;return{x:$r(t*n)/n||0,y:$r(s*n)/n||0}}function pv(i){var e,t=i.popper,s=i.popperRect,n=i.placement,r=i.variation,l=i.offsets,c=i.position,d=i.gpuAcceleration,h=i.adaptive,f=i.roundOffsets,p=i.isFixed,m=l.x,g=m===void 0?0:m,y=l.y,v=y===void 0?0:y,b=typeof f=="function"?f({x:g,y:v}):{x:g,y:v};g=b.x,v=b.y;var w=l.hasOwnProperty("x"),_=l.hasOwnProperty("y"),x=Ss,S=$i,M=window;if(h){var T=Hu(t),L="clientHeight",B="clientWidth";if(T===li(t)&&(T=en(t),Ts(T).position!=="static"&&c==="absolute"&&(L="scrollHeight",B="scrollWidth")),T=T,n===$i||(n===Ss||n===tn)&&r===uc){S=Ki;var N=p&&T===M&&M.visualViewport?M.visualViewport.height:T[L];v-=N-s.height,v*=d?1:-1}if(n===Ss||(n===$i||n===Ki)&&r===uc){x=tn;var O=p&&T===M&&M.visualViewport?M.visualViewport.width:T[B];g-=O-s.width,g*=d?1:-1}}var A=Object.assign({position:c},h&&jx),V=f===!0?Wx({x:g,y:v},li(t)):{x:g,y:v};if(g=V.x,v=V.y,d){var R;return Object.assign({},A,(R={},R[S]=_?"0":"",R[x]=w?"0":"",R.transform=(M.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",R))}return Object.assign({},A,(e={},e[S]=_?v+"px":"",e[x]=w?g+"px":"",e.transform="",e))}function Ux(i){var e=i.state,t=i.options,s=t.gpuAcceleration,n=s===void 0?!0:s,r=t.adaptive,l=r===void 0?!0:r,c=t.roundOffsets,d=c===void 0?!0:c,h={placement:sn(e.placement),variation:Rr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,pv(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,pv(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var qx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ux,data:{}};function Zx(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var s=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];!wi(r)||!Yi(r)||(Object.assign(r.style,s),Object.keys(n).forEach(function(l){var c=n[l];c===!1?r.removeAttribute(l):r.setAttribute(l,c===!0?"":c)}))})}function Gx(i){var e=i.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(s){var n=e.elements[s],r=e.attributes[s]||{},l=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:t[s]),c=l.reduce(function(d,h){return d[h]="",d},{});!wi(n)||!Yi(n)||(Object.assign(n.style,c),Object.keys(r).forEach(function(d){n.removeAttribute(d)}))})}}var Yx={name:"applyStyles",enabled:!0,phase:"write",fn:Zx,effect:Gx,requires:["computeStyles"]},Kx=[Hx,zx,qx,Yx],Xx=Dx({defaultModifiers:Kx});function Qx(i){return i==="x"?"y":"x"}function ju(i,e,t){return oo(i,Du(e,t))}function Jx(i,e,t){var s=ju(i,e,t);return s>t?t:s}function eE(i){var e=i.state,t=i.options,s=i.name,n=t.mainAxis,r=n===void 0?!0:n,l=t.altAxis,c=l===void 0?!1:l,d=t.boundary,h=t.rootBoundary,f=t.altBoundary,p=t.padding,m=t.tether,g=m===void 0?!0:m,y=t.tetherOffset,v=y===void 0?0:y,b=dg(e,{boundary:d,rootBoundary:h,padding:p,altBoundary:f}),w=sn(e.placement),_=Rr(e.placement),x=!_,S=cv(w),M=Qx(S),T=e.modifiersData.popperOffsets,L=e.rects.reference,B=e.rects.popper,N=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(T){if(r){var R,$=S==="y"?$i:Ss,P=S==="y"?Ki:tn,W=S==="y"?"height":"width",Z=T[S],F=Z+b[$],I=Z-b[P],G=g?-B[W]/2:0,j=_===Vr?L[W]:B[W],K=_===Vr?-B[W]:-L[W],se=e.elements.arrow,D=g&&se?sv(se):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:hv(),z=U[$],Q=U[P],re=ju(0,L[W],D[W]),le=x?L[W]/2-G-re-z-O.mainAxis:j-re-z-O.mainAxis,Ue=x?-L[W]/2+G+re+Q+O.mainAxis:K+re+Q+O.mainAxis,fe=e.elements.arrow&&Hu(e.elements.arrow),ft=fe?S==="y"?fe.clientTop||0:fe.clientLeft||0:0,De=(R=A==null?void 0:A[S])!=null?R:0,Le=Z+le-De-ft,we=Z+Ue-De,lt=ju(g?Du(F,Le):F,Z,g?oo(I,we):I);T[S]=lt,V[S]=lt-Z}if(c){var Me,st=S==="x"?$i:Ss,Qe=S==="x"?Ki:tn,ri=T[M],Vt=M==="y"?"height":"width",bi=ri+b[st],Zs=ri-b[Qe],Wh=[$i,Ss].indexOf(w)!==-1,Wi=(Me=A==null?void 0:A[M])!=null?Me:0,Uh=Wh?bi:ri-L[Vt]-B[Vt]-Wi+O.altAxis,Kn=Wh?ri+L[Vt]+B[Vt]-Wi-O.altAxis:Zs,kr=g&&Wh?Jx(Uh,ri,Kn):ju(g?Uh:bi,ri,g?Kn:Zs);T[M]=kr,V[M]=kr-ri}e.modifiersData[s]=V}}var tE={name:"preventOverflow",enabled:!0,phase:"main",fn:eE,requiresIfExists:["offset"]},iE={left:"right",right:"left",bottom:"top",top:"bottom"};function Wu(i){return i.replace(/left|right|bottom|top/g,function(e){return iE[e]})}var sE={start:"end",end:"start"};function mv(i){return i.replace(/start|end/g,function(e){return sE[e]})}function nE(i,e){e===void 0&&(e={});var t=e,s=t.placement,n=t.boundary,r=t.rootBoundary,l=t.padding,c=t.flipVariations,d=t.allowedAutoPlacements,h=d===void 0?mx:d,f=Rr(s),p=f?c?av:av.filter(function(y){return Rr(y)===f}):Fu,m=p.filter(function(y){return h.indexOf(y)>=0});m.length===0&&(m=p);var g=m.reduce(function(y,v){return y[v]=dg(i,{placement:v,boundary:n,rootBoundary:r,padding:l})[sn(v)],y},{});return Object.keys(g).sort(function(y,v){return g[y]-g[v]})}function oE(i){if(sn(i)===lg)return[];var e=Wu(i);return[mv(i),e,mv(e)]}function rE(i){var e=i.state,t=i.options,s=i.name;if(!e.modifiersData[s]._skip){for(var n=t.mainAxis,r=n===void 0?!0:n,l=t.altAxis,c=l===void 0?!0:l,d=t.fallbackPlacements,h=t.padding,f=t.boundary,p=t.rootBoundary,m=t.altBoundary,g=t.flipVariations,y=g===void 0?!0:g,v=t.allowedAutoPlacements,b=e.options.placement,w=sn(b),_=w===b,x=d||(_||!y?[Wu(b)]:oE(b)),S=[b].concat(x).reduce(function(D,U){return D.concat(sn(U)===lg?nE(e,{placement:U,boundary:f,rootBoundary:p,padding:h,flipVariations:y,allowedAutoPlacements:v}):U)},[]),M=e.rects.reference,T=e.rects.popper,L=new Map,B=!0,N=S[0],O=0;O<S.length;O++){var A=S[O],V=sn(A),R=Rr(A)===Vr,$=[$i,Ki].indexOf(V)>=0,P=$?"width":"height",W=dg(e,{placement:A,boundary:f,rootBoundary:p,altBoundary:m,padding:h}),Z=$?R?tn:Ss:R?Ki:$i;M[P]>T[P]&&(Z=Wu(Z));var F=Wu(Z),I=[];if(r&&I.push(W[V]<=0),c&&I.push(W[Z]<=0,W[F]<=0),I.every(function(D){return D})){N=A,B=!1;break}L.set(A,I)}if(B)for(var G=y?3:1,j=function(U){var z=S.find(function(Q){var re=L.get(Q);if(re)return re.slice(0,U).every(function(le){return le})});if(z)return N=z,"break"},K=G;K>0;K--){var se=j(K);if(se==="break")break}e.placement!==N&&(e.modifiersData[s]._skip=!0,e.placement=N,e.reset=!0)}}var aE={name:"flip",enabled:!0,phase:"main",fn:rE,requiresIfExists:["offset"],data:{_skip:!1}};function lE(i,e,t){const{disabled:s,appendTo:n,appendToBody:r,openDirection:l}=a.toRefs(i),c=a.getCurrentInstance().proxy,d=t.multiselect,h=t.dropdown,f=a.ref(!1),p=a.ref(null),m=a.ref(null),g=dt(()=>n.value||r.value),y=dt(()=>l.value==="top"&&m.value==="bottom"||l.value==="bottom"&&m.value!=="top"?"bottom":"top"),v=()=>{f.value||s.value||(f.value=!0,e.emit("open",c),g.value&&a.nextTick(()=>{w()}))},b=()=>{f.value&&(f.value=!1,e.emit("close",c))},w=()=>{if(!p.value)return;let x=parseInt(window.getComputedStyle(h.value).borderTopWidth.replace("px","")),S=parseInt(window.getComputedStyle(h.value).borderBottomWidth.replace("px",""));p.value.setOptions(M=>({...M,modifiers:[...M.modifiers,{name:"offset",options:{offset:[0,(y.value==="top"?x:S)*-1]}}]})),p.value.update()},_=x=>{for(;x&&x!==document.body;){if(getComputedStyle(x).position==="fixed")return!0;x=x.parentElement}return!1};return a.onMounted(()=>{g.value&&(p.value=Xx(d.value,h.value,{strategy:_(d.value)?"fixed":void 0,placement:l.value,modifiers:[tE,aE,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:x})=>{x.styles.popper.width=`${x.rects.reference.width}px`},effect:({state:x})=>{x.elements.popper.style.width=`${x.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:x}){m.value=x.placement}}]}))}),a.onBeforeUnmount(()=>{!g.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:f,open:v,close:b,placement:y,updatePopper:w}}function cE(i,e,t){const{searchable:s,disabled:n,clearOnBlur:r}=a.toRefs(i),l=t.input,c=t.open,d=t.close,h=t.clearSearch,f=t.isOpen,p=t.wrapper,m=t.tags,g=a.ref(!1),y=a.ref(!1),v=dt(()=>s.value||n.value?-1:0),b=()=>{s.value&&l.value.blur(),p.value.blur()},w=()=>{s.value&&!n.value&&l.value.focus()},_=(B=!0)=>{n.value||(g.value=!0,B&&c())},x=()=>{g.value=!1,setTimeout(()=>{g.value||(d(),r.value&&h())},1)};return{tabindex:v,isActive:g,mouseClicked:y,blur:b,focus:w,activate:_,deactivate:x,handleFocusIn:B=>{B.target.closest("[data-tags]")&&B.target.nodeName!=="INPUT"||B.target.closest("[data-clear]")||_(y.value)},handleFocusOut:()=>{x()},handleCaretClick:()=>{x(),b()},handleMousedown:B=>{y.value=!0,f.value&&(B.target.isEqualNode(p.value)||B.target.isEqualNode(m.value))?setTimeout(()=>{x()},0):!f.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(l.value))&&_(),setTimeout(()=>{y.value=!1},0)}}}function dE(i,e,t){const{mode:s,addTagOn:n,openDirection:r,searchable:l,showOptions:c,valueProp:d,groups:h,addOptionOn:f,createTag:p,createOption:m,reverse:g}=a.toRefs(i),y=a.getCurrentInstance().proxy,v=t.iv,b=t.update,w=t.deselect,_=t.search,x=t.setPointer,S=t.selectPointer,M=t.backwardPointer,T=t.forwardPointer,L=t.multiselect,B=t.wrapper,N=t.tags,O=t.isOpen,A=t.open,V=t.blur,R=t.fo,$=dt(()=>p.value||m.value||!1),P=dt(()=>n.value!==void 0?n.value:f.value!==void 0?f.value:["enter"]),W=()=>{s.value==="tags"&&!c.value&&$.value&&l.value&&!h.value&&x(R.value[R.value.map(I=>I[d.value]).indexOf(_.value)])};return{handleKeydown:I=>{e.emit("keydown",I,y);let G,j;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(I.key)!==-1&&s.value==="tags"&&(G=[...L.value.querySelectorAll("[data-tags] > *")].filter(K=>K!==N.value),j=G.findIndex(K=>K===document.activeElement)),I.key){case"Backspace":if(s.value==="single"||l.value&&[null,""].indexOf(_.value)===-1||v.value.length===0)return;let K=v.value.filter(se=>!se.disabled&&se.remove!==!1);K.length&&w(K[K.length-1]);break;case"Enter":if(I.preventDefault(),I.keyCode===229)return;if(j!==-1&&j!==void 0){b([...v.value].filter((se,D)=>D!==j)),j===G.length-1&&(G.length-1?G[G.length-2].focus():l.value?N.value.querySelector("input").focus():B.value.focus());return}if(P.value.indexOf("enter")===-1&&$.value)return;W(),S();break;case" ":if(!$.value&&!l.value){I.preventDefault(),W(),S();return}if(!$.value)return!1;if(P.value.indexOf("space")===-1&&$.value)return;I.preventDefault(),W(),S();break;case"Tab":case";":case",":if(P.value.indexOf(I.key.toLowerCase())===-1||!$.value)return;W(),S(),I.preventDefault();break;case"Escape":V();break;case"ArrowUp":if(I.preventDefault(),!c.value)return;O.value||A(),M();break;case"ArrowDown":if(I.preventDefault(),!c.value)return;O.value||A(),T();break;case"ArrowLeft":if(l.value&&N.value&&N.value.querySelector("input").selectionStart||I.shiftKey||s.value!=="tags"||!v.value||!v.value.length)return;I.preventDefault(),j===-1?G[G.length-1].focus():j>0&&G[j-1].focus();break;case"ArrowRight":if(j===-1||I.shiftKey||s.value!=="tags"||!v.value||!v.value.length)return;I.preventDefault(),G.length>j+1?G[j+1].focus():l.value?N.value.querySelector("input").focus():l.value||B.value.focus();break}},handleKeyup:I=>{e.emit("keyup",I,y)},preparePointer:W}}function hE(i,e,t){const{classes:s,disabled:n,showOptions:r,breakTags:l}=a.toRefs(i),c=t.isOpen,d=t.isPointed,h=t.isSelected,f=t.isDisabled,p=t.isActive,m=t.canPointGroups,g=t.resolving,y=t.fo,v=t.placement,b=dt(()=>({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})),w=dt(()=>!!(c.value&&r.value&&(!g.value||g.value&&y.value.length)));return{classList:a.computed(()=>{const x=b.value;return{container:[x.container].concat(n.value?x.containerDisabled:[]).concat(w.value&&v.value==="top"?x.containerOpenTop:[]).concat(w.value&&v.value!=="top"?x.containerOpen:[]).concat(p.value?x.containerActive:[]),wrapper:x.wrapper,spacer:x.spacer,singleLabel:x.singleLabel,singleLabelText:x.singleLabelText,multipleLabel:x.multipleLabel,search:x.search,tags:x.tags,tag:[x.tag].concat(n.value?x.tagDisabled:[]),tagWrapper:[x.tagWrapper,l.value?x.tagWrapperBreak:null],tagDisabled:x.tagDisabled,tagRemove:x.tagRemove,tagRemoveIcon:x.tagRemoveIcon,tagsSearchWrapper:x.tagsSearchWrapper,tagsSearch:x.tagsSearch,tagsSearchCopy:x.tagsSearchCopy,placeholder:x.placeholder,caret:[x.caret].concat(c.value?x.caretOpen:[]),clear:x.clear,clearIcon:x.clearIcon,spinner:x.spinner,inifinite:x.inifinite,inifiniteSpinner:x.inifiniteSpinner,dropdown:[x.dropdown].concat(v.value==="top"?x.dropdownTop:[]).concat(!c.value||!r.value||!w.value?x.dropdownHidden:[]),options:[x.options].concat(v.value==="top"?x.optionsTop:[]),group:x.group,groupLabel:S=>{let M=[x.groupLabel];return d(S)?M.push(h(S)?x.groupLabelSelectedPointed:x.groupLabelPointed):h(S)&&m.value?M.push(f(S)?x.groupLabelSelectedDisabled:x.groupLabelSelected):f(S)&&M.push(x.groupLabelDisabled),m.value&&M.push(x.groupLabelPointable),M},groupOptions:x.groupOptions,option:(S,M)=>{let T=[x.option];return d(S)?T.push(h(S)?x.optionSelectedPointed:x.optionPointed):h(S)?T.push(f(S)?x.optionSelectedDisabled:x.optionSelected):(f(S)||M&&f(M))&&T.push(x.optionDisabled),T},noOptions:x.noOptions,noResults:x.noResults,assist:x.assist,fakeInput:x.fakeInput}}),showDropdown:w}}function uE(i,e,t){const{limit:s,infinite:n}=a.toRefs(i),r=t.isOpen,l=t.offset,c=t.search,d=t.pfo,h=t.eo,f=a.ref(null),p=a.shallowRef(null),m=dt(()=>l.value<d.value.length),g=v=>{const{isIntersecting:b,target:w}=v[0];if(b){const _=w.offsetParent,x=_.scrollTop;l.value+=s.value==-1?10:s.value,a.nextTick(()=>{_.scrollTop=x})}},y=()=>{r.value&&l.value<d.value.length?f.value.observe(p.value):!r.value&&f.value&&f.value.disconnect()};return a.watch(r,()=>{n.value&&y()}),a.watch(c,()=>{n.value&&(l.value=s.value,y())},{flush:"post"}),a.watch(h,()=>{n.value&&y()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(f.value=new IntersectionObserver(g))}),{hasMore:m,infiniteLoader:p}}function fE(i,e,t){const{placeholder:s,id:n,valueProp:r,label:l,mode:c,groupLabel:d,aria:h,searchable:f}=a.toRefs(i),p=t.pointer,m=t.iv,g=t.hasSelected,y=t.multipleLabelText,v=a.ref(null),b=dt(()=>`${n.value?n.value+"-":""}assist`),w=dt(()=>`${n.value?n.value+"-":""}multiselect-options`),_=dt(()=>{if(p.value){let V=n.value?`${n.value}-`:"";return V+=`${p.value.group?"multiselect-group":"multiselect-option"}-`,V+=p.value.group?p.value.index:p.value[r.value],V}}),x=dt(()=>s.value),S=dt(()=>c.value!=="single"),M=a.computed(()=>c.value==="single"&&g.value?m.value[l.value]:c.value==="multiple"&&g.value?y.value:c.value==="tags"&&g.value?m.value.map(V=>V[l.value]).join(", "):""),T=a.computed(()=>{let V={...h.value};return f.value&&(V["aria-labelledby"]=V["aria-labelledby"]?`${b.value} ${V["aria-labelledby"]}`:b.value,M.value&&V["aria-label"]&&(V["aria-label"]=`${M.value}, ${V["aria-label"]}`)),V}),L=V=>`${n.value?n.value+"-":""}multiselect-option-${V[r.value]}`,B=V=>`${n.value?n.value+"-":""}multiselect-group-${V.index}`,N=V=>`${V}`,O=V=>`${V}`,A=V=>`${V} ❎`;return a.onMounted(()=>{if(n.value&&document&&document.querySelector){let V=document.querySelector(`[for="${n.value}"]`);v.value=V?V.innerText:null}}),{arias:T,ariaLabel:M,ariaAssist:b,ariaControls:w,ariaPlaceholder:x,ariaMultiselectable:S,ariaActiveDescendant:_,ariaOptionId:L,ariaOptionLabel:N,ariaGroupId:B,ariaGroupLabel:O,ariaTagLabel:A}}function pE(i,e,t){const{locale:s,fallbackLocale:n}=a.toRefs(i);return{localize:l=>!l||typeof l!="object"?l:l&&l[s.value]?l[s.value]:l&&s.value&&l[s.value.toUpperCase()]?l[s.value.toUpperCase()]:l&&l[n.value]?l[n.value]:l&&n.value&&l[n.value.toUpperCase()]?l[n.value.toUpperCase()]:l&&Object.keys(l)[0]?l[Object.keys(l)[0]]:""}}function mE(i,e,t){const s=a.shallowRef(null),n=a.shallowRef(null),r=a.shallowRef(null),l=a.shallowRef(null),c=a.shallowRef(null);return{multiselect:s,wrapper:n,tags:r,input:l,dropdown:c}}function gE(i,e,t,s={}){return t.forEach(n=>{s={...s,...n(i,e,s)}}),s}var nn={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,default:void 0},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,default:void 0},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,default:void 0},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,default:void 0},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,default:void 0}},setup(i,e){return gE(i,e,[mE,pE,ex,ix,lE,tx,J9,cE,ox,uE,rx,dE,hE,fE])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const vE=["id","dir"],yE=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],bE=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],CE=["onKeyup","aria-label"],wE=["onClick"],_E=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],kE=["innerHTML"],xE=["id"],EE=["id"],TE=["id","aria-label","aria-selected"],SE=["data-pointed","onMouseenter","onClick"],ME=["innerHTML"],BE=["aria-label"],NE=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],LE=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],AE=["innerHTML"],$E=["innerHTML"],OE=["value"],VE=["name","value"],RE=["name","value"],IE=["id"];function DE(i,e,t,s,n,r){return a.openBlock(),a.createElementBlock("div",{ref:"multiselect",class:a.normalizeClass(i.classList.container),id:t.searchable?void 0:t.id,dir:t.rtl?"rtl":void 0,onFocusin:e[12]||(e[12]=(...l)=>i.handleFocusIn&&i.handleFocusIn(...l)),onFocusout:e[13]||(e[13]=(...l)=>i.handleFocusOut&&i.handleFocusOut(...l)),onKeyup:e[14]||(e[14]=(...l)=>i.handleKeyup&&i.handleKeyup(...l)),onKeydown:e[15]||(e[15]=(...l)=>i.handleKeydown&&i.handleKeydown(...l))},[a.createElementVNode("div",a.mergeProps({class:i.classList.wrapper,onMousedown:e[9]||(e[9]=(...l)=>i.handleMousedown&&i.handleMousedown(...l)),ref:"wrapper",tabindex:i.tabindex,"aria-controls":t.searchable?void 0:i.ariaControls,"aria-placeholder":t.searchable?void 0:i.ariaPlaceholder,"aria-expanded":t.searchable?void 0:i.isOpen,"aria-activedescendant":t.searchable?void 0:i.ariaActiveDescendant,"aria-multiselectable":t.searchable?void 0:i.ariaMultiselectable,role:t.searchable?void 0:"combobox"},t.searchable?{}:i.arias),[a.createCommentVNode(" Search "),t.mode!=="tags"&&t.searchable&&!t.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:t.inputType,modelValue:i.search,value:i.search,class:i.classList.search,autocomplete:t.autocomplete,id:t.searchable?t.id:void 0,onInput:e[0]||(e[0]=(...l)=>i.handleSearchInput&&i.handleSearchInput(...l)),onKeypress:e[1]||(e[1]=(...l)=>i.handleKeypress&&i.handleKeypress(...l)),onPaste:e[2]||(e[2]=a.withModifiers((...l)=>i.handlePaste&&i.handlePaste(...l),["stop"])),ref:"input","aria-controls":i.ariaControls,"aria-placeholder":i.ariaPlaceholder,"aria-expanded":i.isOpen,"aria-activedescendant":i.ariaActiveDescendant,"aria-multiselectable":i.ariaMultiselectable,role:"combobox"},{...t.attrs,...i.arias}),null,16,bE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Tags (with search) "),t.mode=="tags"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(i.classList.tags),"data-tags":""},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.iv,(l,c,d)=>a.renderSlot(i.$slots,"tag",{option:l,handleTagRemove:i.handleTagRemove,disabled:t.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass([i.classList.tag,l.disabled?i.classList.tagDisabled:null]),tabindex:"-1",onKeyup:a.withKeys(h=>i.handleTagRemove(l,h),["enter"]),key:d,"aria-label":i.ariaTagLabel(i.localize(l[t.label]))},[a.createElementVNode("span",{class:a.normalizeClass(i.classList.tagWrapper)},a.toDisplayString(i.localize(l[t.label])),3),!t.disabled&&!l.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(i.classList.tagRemove),onClick:a.withModifiers(h=>i.handleTagRemove(l,h),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(i.classList.tagRemoveIcon)},null,2)],10,wE)):a.createCommentVNode("v-if",!0)],42,CE))])),256)),a.createElementVNode("div",{class:a.normalizeClass(i.classList.tagsSearchWrapper),ref:"tags"},[a.createCommentVNode(" Used for measuring search width "),a.createElementVNode("span",{class:a.normalizeClass(i.classList.tagsSearchCopy)},a.toDisplayString(i.search),3),a.createCommentVNode(" Actual search input "),t.searchable&&!t.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:t.inputType,modelValue:i.search,value:i.search,class:i.classList.tagsSearch,id:t.searchable?t.id:void 0,autocomplete:t.autocomplete,onInput:e[3]||(e[3]=(...l)=>i.handleSearchInput&&i.handleSearchInput(...l)),onKeypress:e[4]||(e[4]=(...l)=>i.handleKeypress&&i.handleKeypress(...l)),onPaste:e[5]||(e[5]=a.withModifiers((...l)=>i.handlePaste&&i.handlePaste(...l),["stop"])),ref:"input","aria-controls":i.ariaControls,"aria-placeholder":i.ariaPlaceholder,"aria-expanded":i.isOpen,"aria-activedescendant":i.ariaActiveDescendant,"aria-multiselectable":i.ariaMultiselectable,role:"combobox"},{...t.attrs,...i.arias}),null,16,_E)):a.createCommentVNode("v-if",!0)],2)],2)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Single label "),t.mode=="single"&&i.hasSelected&&!i.search&&i.iv?a.renderSlot(i.$slots,"singlelabel",{key:2,value:i.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.singleLabel)},[a.createElementVNode("span",{class:a.normalizeClass(i.classList.singleLabelText)},a.toDisplayString(i.localize(i.iv[t.label])),3)],2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Multiple label "),t.mode=="multiple"&&i.hasSelected&&!i.search?a.renderSlot(i.$slots,"multiplelabel",{key:3,values:i.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.multipleLabel),innerHTML:i.multipleLabelText},null,10,kE)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Placeholder "),t.placeholder&&!i.hasSelected&&!i.search?a.renderSlot(i.$slots,"placeholder",{key:4},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.placeholder),"aria-hidden":"true"},a.toDisplayString(t.placeholder),3)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Spinner "),t.loading||i.resolving?a.renderSlot(i.$slots,"spinner",{key:5},()=>[a.createElementVNode("span",{class:a.normalizeClass(i.classList.spinner),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Clear "),i.hasSelected&&!t.disabled&&t.canClear&&!i.busy?a.renderSlot(i.$slots,"clear",{key:6,clear:i.clear},()=>[a.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:a.normalizeClass(i.classList.clear),onClick:e[6]||(e[6]=(...l)=>i.clear&&i.clear(...l)),onKeyup:e[7]||(e[7]=a.withKeys((...l)=>i.clear&&i.clear(...l),["enter"]))},[a.createElementVNode("span",{class:a.normalizeClass(i.classList.clearIcon)},null,2)],34)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Caret "),t.caret&&t.showOptions?a.renderSlot(i.$slots,"caret",{key:7,handleCaretClick:i.handleCaretClick,isOpen:i.isOpen},()=>[a.createElementVNode("span",{class:a.normalizeClass(i.classList.caret),onClick:e[8]||(e[8]=(...l)=>i.handleCaretClick&&i.handleCaretClick(...l)),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0)],16,yE),a.createCommentVNode(" Options "),(a.openBlock(),a.createBlock(a.Teleport,{to:t.appendTo||"body",disabled:!t.appendToBody&&!t.appendTo},[a.createElementVNode("div",{id:t.id?`${t.id}-dropdown`:void 0,class:a.normalizeClass(i.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:e[10]||(e[10]=(...l)=>i.handleFocusIn&&i.handleFocusIn(...l)),onFocusout:e[11]||(e[11]=(...l)=>i.handleFocusOut&&i.handleFocusOut(...l))},[a.renderSlot(i.$slots,"beforelist",{options:i.fo}),a.createElementVNode("ul",{class:a.normalizeClass(i.classList.options),id:i.ariaControls,role:"listbox"},[t.groups?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(i.fg,(l,c,d)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(i.classList.group),key:d,id:i.ariaGroupId(l),"aria-label":i.ariaGroupLabel(i.localize(l[t.groupLabel])),"aria-selected":i.isSelected(l),role:"option"},[l.__CREATE__?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(i.classList.groupLabel(l)),"data-pointed":i.isPointed(l),onMouseenter:h=>i.setPointer(l,c),onClick:h=>i.handleGroupClick(l)},[a.renderSlot(i.$slots,"grouplabel",{group:l,isSelected:i.isSelected,isPointed:i.isPointed},()=>[a.createElementVNode("span",{innerHTML:i.localize(l[t.groupLabel])},null,8,ME)])],42,SE)),a.createElementVNode("ul",{class:a.normalizeClass(i.classList.groupOptions),"aria-label":i.ariaGroupLabel(i.localize(l[t.groupLabel])),role:"group"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.__VISIBLE__,(h,f,p)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(i.classList.option(h,l)),"data-pointed":i.isPointed(h),"data-selected":i.isSelected(h)||void 0,key:p,onMouseenter:m=>i.setPointer(h),onClick:m=>i.handleOptionClick(h),id:i.ariaOptionId(h),"aria-selected":i.isSelected(h),"aria-label":i.ariaOptionLabel(i.localize(h[t.label])),role:"option"},[a.renderSlot(i.$slots,"option",{option:h,isSelected:i.isSelected,isPointed:i.isPointed,search:i.search},()=>[a.createElementVNode("span",null,a.toDisplayString(i.localize(h[t.label])),1)])],42,NE))),128))],10,BE)],10,TE))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(i.fo,(l,c,d)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(i.classList.option(l)),"data-pointed":i.isPointed(l),"data-selected":i.isSelected(l)||void 0,key:d,onMouseenter:h=>i.setPointer(l),onClick:h=>i.handleOptionClick(l),id:i.ariaOptionId(l),"aria-selected":i.isSelected(l),"aria-label":i.ariaOptionLabel(i.localize(l[t.label])),role:"option"},[a.renderSlot(i.$slots,"option",{option:l,isSelected:i.isSelected,isPointed:i.isPointed,search:i.search},()=>[a.createElementVNode("span",null,a.toDisplayString(i.localize(l[t.label])),1)])],42,LE))),128))],10,EE),i.noOptions?a.renderSlot(i.$slots,"nooptions",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.noOptions),innerHTML:i.localize(t.noOptionsText)},null,10,AE)]):a.createCommentVNode("v-if",!0),i.noResults?a.renderSlot(i.$slots,"noresults",{key:1},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.noResults),innerHTML:i.localize(t.noResultsText)},null,10,$E)]):a.createCommentVNode("v-if",!0),t.infinite&&i.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(i.classList.inifinite),ref:"infiniteLoader"},[a.renderSlot(i.$slots,"infinite",{},()=>[a.createElementVNode("span",{class:a.normalizeClass(i.classList.inifiniteSpinner)},null,2)])],2)):a.createCommentVNode("v-if",!0),a.renderSlot(i.$slots,"afterlist",{options:i.fo})],42,xE)],8,["to","disabled"])),a.createCommentVNode(" Hacky input element to show HTML5 required warning "),t.required?(a.openBlock(),a.createElementBlock("input",{key:0,class:a.normalizeClass(i.classList.fakeInput),tabindex:"-1",value:i.textValue,required:""},null,10,OE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Native input support "),t.nativeSupport?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[t.mode=="single"?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:t.name,value:i.plainValue!==void 0?i.plainValue:""},null,8,VE)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(i.plainValue,(l,c)=>(a.openBlock(),a.createElementBlock("input",{type:"hidden",name:`${t.name}[]`,value:l,key:c},null,8,RE))),128))],64)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Screen reader assistive text "),t.searchable&&i.hasSelected?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(i.classList.assist),id:i.ariaAssist,"aria-hidden":"true"},a.toDisplayString(i.ariaLabel),11,IE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(i.classList.spacer)},null,2)],42,vE)}nn.render=DE,nn.__file="src/Multiselect.vue";const ci=a.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(i){const e=i,t=a.toRef(()=>e.appendTo),s=a.ref();return e.detached&&Q9({multiselect:s,appendTo:t.value}),(n,r)=>(a.openBlock(),a.createBlock(a.unref(nn),{ref_key:"multiselectRef",ref:s,class:"ao-multiselect"},a.createSlots({_:2},[a.renderList(n.$slots,(l,c)=>({name:c,fn:a.withCtx(d=>[a.renderSlot(n.$slots,c,a.normalizeProps(a.guardReactiveProps(d??{})))])}))]),1536))}});var gv;function Ms(){const i=PE(),e=i.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(i.proxy)}}function PE(){const i=a.getCurrentInstance();if(!i)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return i}a.defineComponent({props:{translation:{type:String,required:!0}},setup(i,{slots:e}){return()=>{const t=i.translation,s=[];let n,r=0;for(;(n=gv.exec(t))!==null;){s.push(t.substring(r,n.index));const l=e[n[1]];l?s.push(...l()):s.push(n[0]),r=gv.lastIndex}return s.push(t.substring(r)),s}}});async function Bs(i,e){if(e&&i&&i.length-e.length===1){const t=new Set(e.map(c=>c.id)),s=i.filter(c=>!t.has(c.id));if(s.length!==1)return;const n=s[0].id;await a.nextTick();const r=document.getElementById(n);r==null||r.focus(),await a.nextTick();const l=document.getElementById(n);l==null||l.select()}}const HE={class:"ao-tasks"},FE={class:"ao-tasks__list"},zE=["id","value","readonly","onChange"],jE={class:"ao-tasks__list-footer"},WE=a.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(i,{emit:e}){const{t}=Ms(),s=i,n=e;a.watch(()=>s.tasks,(m,g)=>{Bs(m,g)});const r=a.computed(()=>{var m;return((m=s.users)==null?void 0:m.map(g=>({label:`${g.firstName} ${g.lastName}`,value:g.id,avatar:g.avatarUrl})))??[]}),l=()=>{const m=s.tasks.length,g={name:t("task.defaultName",{idx:m+1}),activityId:s.activityId};n("add",g)},c=(m,g)=>{const v=m.target.value;n("update",{id:g,name:v})},d=(m,g)=>{s.isEditable&&n("update",{id:m,isDone:g})},h=m=>{n("delete",{id:m})},f=(m,g)=>{n("update",{id:g,assigneeId:m[0]??null})},p=m=>{const g=m.target;g==null||g.blur()};return(m,g)=>(a.openBlock(),a.createElementBlock("div",HE,[a.createElementVNode("ul",FE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.tasks,y=>{var v,b;return a.openBlock(),a.createElementBlock("li",{key:y.id,class:"ao-subtask"},[((v=i.isCheckable)==null?void 0:v.call(i,y))??!1?(a.openBlock(),a.createBlock(ke,{key:0,class:"ao-subtask__check","icon-name":y.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!i.isEditable,variant:"ghost",color:"primary",onClick:()=>d(y.id,!y.isDone)},null,8,["icon-name","disabled","onClick"])):a.createCommentVNode("",!0),a.createElementVNode("input",{id:y.id,value:y.name,readonly:!i.isEditable,class:a.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":y.isDone}]),type:"text",onChange:w=>c(w,y.id),onKeyup:a.withKeys(p,["enter"])},null,42,zE),g[0]||(g[0]=a.createTextVNode(". ",-1)),!i.isTemplate&&i.users?(a.openBlock(),a.createBlock(ci,{key:1,value:(b=y.assignee)!=null&&b.id?[y.assignee.id]:[],options:r.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:m.$t("feed.filters.assignee.placeholder"),disabled:!i.isEditable,caret:i.isEditable,onChange:w=>f(w,y.id)},{tag:a.withCtx(({option:w,handleTagRemove:_})=>[a.createVNode(ks,{"user-name":w.label,"avatar-url":w.avatar,"is-closable":!0,onClose:x=>_(w,x)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):a.createCommentVNode("",!0),i.isEditable?(a.openBlock(),a.createBlock(ke,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>h(y.id)},null,8,["onClick"])):a.createCommentVNode("",!0)])}),128))]),a.createElementVNode("div",jE,[i.isEditable?(a.openBlock(),a.createBlock(ke,{key:0,label:m.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:l},null,8,["label"])):a.createCommentVNode("",!0)])]))}}),dD="",UE={class:"ao-files__placeholder"},qE={key:0,class:"ao-files__list"},ZE=["href"],GE={class:"ao-file__title"},YE={key:0},KE={class:"ao-files__input"},XE={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},QE={class:"ao-button__label"},JE={class:"ao-files__dropzone"},eT={class:"ao-files__dropzone-label"},tT=a.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(i,{emit:e}){const t=e,s=i,n=p=>{t("remove",p)},r=p=>{const m=p.target,g=Array.from(m.files??[]);t("add",g)},l=["dragenter","dragover","dragleave","drop"];a.onMounted(()=>{l.forEach(p=>{document.body.addEventListener(p,m=>m.preventDefault())})}),a.onUnmounted(()=>{l.forEach(p=>{document.body.removeEventListener(p,m=>m.preventDefault())})});const c=a.ref(!1);function d(){s.isEditable&&(c.value=!0)}function h(){c.value=!1}a.watch(c,p=>{t("toggleIsDropActive",p)});function f(p){var g;h();const m=Array.from(((g=p.dataTransfer)==null?void 0:g.files)||[]);p.dataTransfer&&t("add",m)}return(p,m)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":c.value}]),onDrop:a.withModifiers(f,["prevent"]),onDragenter:a.withModifiers(d,["prevent"]),onDragover:a.withModifiers(d,["prevent"]),onDragleave:a.withModifiers(h,["prevent"])},[a.renderSlot(p.$slots,"default",{},()=>[a.createElementVNode("span",UE,a.toDisplayString(p.$t("activity.attachment.placeholder.resting")),1)]),i.attachments?(a.openBlock(),a.createElementBlock("ul",qE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.attachments,g=>(a.openBlock(),a.createElementBlock("li",{key:g.id,class:"ao-file"},[a.createElementVNode("a",{class:"ao-file__link",href:g.url,target:"_blank",rel:"noopener noreferrer"},[a.createVNode(qe,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),a.createElementVNode("span",GE,a.toDisplayString(g.name),1)],8,ZE),i.isEditable?(a.openBlock(),a.createBlock(ke,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>n(g)},null,8,["onClick"])):a.createCommentVNode("",!0)]))),128)),i.isEditable?(a.openBlock(),a.createElementBlock("li",YE,[a.createElementVNode("label",KE,[a.createElementVNode("div",XE,[a.createVNode(qe,{name:"Add",size:"sm"}),a.createElementVNode("span",QE,a.toDisplayString(p.$t("activity.attachment.button.resting")),1)]),a.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:r},null,32)])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",JE,[a.createElementVNode("span",eT,a.toDisplayString(p.$t("activity.attachment.placeholder.active")),1)],512),[[a.vShow,c.value]])],34))}}),hD="",ue=window,Be=document,iT=Symbol("noEventHandler"),sT=Symbol("onOverComponent"),ro=navigator.userAgent.toLowerCase();function nT(){return new XMLHttpRequest}function oT(i){let e="";const t=(i||Be).styleSheets;for(let s=0,n=t.length,r;s<n;s++){try{r=t[s].cssRules}catch{continue}if(r)for(let l=0,c=r.length;l<c;l++)e+=r[l].cssText}return e}function rT(i,e){let t="";const s=[],n=e==="js"?"script":"link",r=e==="js"?"src":"href";let l="(?:";for(let h=0,f=i.length;h<f;h++)l+=i[h]+(h<f-1?"|":")");const c=new RegExp(`(^|.*[\\/])${l}(\\.[^\\/]+)?.${e}(?:\\?.*|;.*)?$`,"i"),d=new RegExp(`.+\\.${e}(?:\\?.*|;.*)?$`,"i");for(let h=Be.getElementsByTagName(n),f=0;f<h.length;f++)d.test(h[f][r])&&s.push(h[f]);for(let h=0;h<s.length;h++){const f=s[h][r].match(c);if(f){t=f[0];break}}if(!t)throw new Error("[SUNEDITOR.helper.env.getIncludePath.fail] The SUNEDITOR installation path could not be automatically detected. (path: +"+t+", extension: "+e+")");return t===""&&(t=s.length>0?s[0][r]:""),!t.includes(":/")&&t.slice(0,2)!=="//"&&(t=t.includes("/")===!1?location.href.match(/^.*?:\/\/[^/]*/)[0]+t:location.href.match(/^[^?]*\/(?:)/)[0]+t),t}const aT=(()=>typeof ResizeObserver=="function")(),vv=(()=>{var i;return typeof((i=navigator.clipboard)==null?void 0:i.write)=="function"})(),yv=(()=>/Edg/.test(navigator.userAgent))(),hg=(()=>/(Mac|iPhone|iPod|iPad)/.test(navigator.userAgent))(),lT=(()=>ro.includes("chrome/")&&!ro.includes("edge/"))(),cT=(()=>!!ro.match(/gecko\/\d+/))(),dT=(()=>!!ue.chrome)(),hT=(()=>ro.includes("applewebkit/")&&!ro.includes("chrome"))(),bv=(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ro))(),uT=(()=>navigator.maxTouchPoints>0&&"ontouchstart"in ue)(),fT=(()=>ro.includes("android"))(),pT=hg?"⌘":"CTRL",mT=hg?"⇧":"+SHIFT",gT=ue.devicePixelRatio;let ug=null;function vT(){if(ug!==null)return ug;if(!Be.body||typeof Be.execCommand!="function")return!0;let i=!1;try{const e=Be.createElement("div");e.setAttribute("contenteditable","true"),e.setAttribute("aria-hidden","true"),e.style.cssText="position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none;";const t=Be.activeElement;Be.body.appendChild(e);const s=()=>{i=!0};e.addEventListener("beforeinput",s,!0),e.addEventListener("input",s,!0),e.focus({preventScroll:!0}),Be.execCommand("insertText",!1,"​"),e.removeEventListener("beforeinput",s,!0),e.removeEventListener("input",s,!0),e.remove(),t&&t!==Be.body&&typeof t.focus=="function"&&t.focus({preventScroll:!0})}catch{i=!0}return ug=i}const yT={_w:ue,_d:Be,NO_EVENT:iT,ON_OVER_COMPONENT:sT,getXMLHttpRequest:nT,getPageStyle:oT,getIncludePath:rT,isResizeObserverSupported:aT,isClipboardSupported:vv,isEdge:yv,isBlink:lT,isGecko:cT,isChromium:dT,isSafari:hT,isOSX_IOS:hg,isAndroid:fT,isMobile:bv,isTouchDevice:uT,canUseBeforeInput:vT,cmdIcon:pT,shiftIcon:mT,DPI:gT,KATEX_WEBSITE:"https://katex.org/docs/supported.html",MATHJAX_WEBSITE:"https://www.mathjax.org/"},fg=8203,Cv=String.fromCharCode(fg),pg=new RegExp(String.fromCharCode(fg),"g"),wv=new RegExp("^"+String.fromCharCode(fg)+"+$");function bT(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const CT={zeroWidthSpace:Cv,zeroWidthRegExp:pg,onlyZeroWidthRegExp:wv,escapeStringRegexp:bT};function wT(i){return/^-?\d+(\.\d+)?$/.test(i+"")}function Uu(i,e=0){if(!i)return 0;const t=(i+"").match(/-?\d+(\.\d+)?/);if(!t||!t[0])return 0;const s=Number(t[0]);return e<0?s:e===0?Math.round(s):Number(s.toFixed(e))}function _T(i,e,t,s){if(i<=s?e<t:e>t)return 0;const n=(i>t?i:t)-(e<s?e:s);return(n<0?n*-1:n)+1}function kT(i){return(i&1)===0}function xT(i){return(i&1)===1}const ET={is:wT,get:Uu,getOverlapRangeAtIndex:_T,isEven:kT,isOdd:xT},TT=/&|\u00A0|'|"|<|>/g,ST=/&amp;|&nbsp;|&apos;|&quot;|&lt;|&gt;/g,MT={"&":"&amp;"," ":"&nbsp;","'":"&apos;",'"':"&quot;","<":"&lt;",">":"&gt;"},BT={"&amp;":"&","&nbsp;":" ","&apos;":"'","&quot;":'"',"&lt;":"<","&gt;":">"},NT=/[A-Z]/g,LT=/-[a-zA-Z]/g,AT={"xx-small":.5625,"x-small":.625,small:.8333,medium:1,large:1.125,"x-large":1.5,"xx-large":2,"xxx-large":2.5};function _v(i){if(i.nodeType===3){const e=i.nodeValue.trim();return e?{type:"text",content:e}:null}if(i.nodeType===1){const e={type:"element",tag:i.tagName.toLowerCase(),attributes:{},children:[]};for(const t of i.attributes)e.attributes[t.name]=t.value;for(const t of i.childNodes){const s=_v(t);s&&e.children.push(s)}return e}return null}function $T(i){const t=new DOMParser().parseFromString(i,"text/html");return _v(t.body)}function kv(i){if(!i)return"";if(i.type==="text")return qu(i.content||"");if(i.type==="element"){const{tag:e,attributes:t={},children:s=[]}=i,n=Object.entries(t).map(([d,h])=>`${d}="${qu(h)}"`).join(" "),r=n?`<${e} ${n}>`:`<${e}>`,l=`</${e}>`,c=s.map(kv).join("");return`${r}${c}${l}`}return""}function qu(i){return i.replace(TT,e=>MT[e]||e)}function OT(i){return i.replace(ST,e=>BT[e]||e)}function VT(i,e){let t;function s(...n){const r=()=>{t=null,i(...n)};ue.clearTimeout(t),t=ue.setTimeout(r,e)}return s.cancel=()=>{ue.clearTimeout(t),t=null},s}function RT(i,e){e.forEach((t,s)=>{i.set(s,t)}),i.forEach((t,s)=>{e.has(s)||i.delete(s)})}function IT(...i){const t=i.filter(s=>s instanceof Map).flatMap(s=>[...s]);return new Map(t)}function DT(i){return i?Object.keys(i).map(function(e){return i[e]}):[]}function xv(i){return typeof i=="string"?i.replace(NT,e=>"-"+e.toLowerCase()):i.map(function(e){return xv(e)})}function Ev(i){return typeof i=="string"?i.replace(LT,e=>e.replace("-","").toUpperCase()):i.map(function(e){return Ev(e)})}function PT(i,e){const t=e.match(/(\d+(?:\.\d+)?)(.+)/),s=t?Number(t[1]):AT[e],n=t?t[2]:"rem";let r=s;switch(/em/.test(n)?r=Math.round(s/.0625):n==="pt"?r=Math.round(s*1.333):n==="%"&&(r=s/100),i){case"em":case"rem":return(r*.0625).toFixed(2)+i;case"%":return Number((r*.0625).toFixed(2))*100+i;case"pt":return Math.round(r/1.333)+i;default:return r+i}}function HT(i){return i?Array.prototype.slice.call(i):[]}function FT(i){const e={},t=Object.prototype.hasOwnProperty;for(const s in i)t.call(i,s)&&(e[i[s]]=s);return e}function zT(i){return new RegExp(`<\\/?\\b(?!\\b${(i||"").replace(/\|/g,"\\b|\\b")}\\b)[^>]*>`,"gi")}function jT(i){return new RegExp(`<\\/?\\b(?:\\b${(i||"^").replace(/\|/g,"\\b|\\b")}\\b)[^>]*>`,"gi")}function Tv(i){return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(i)}function WT(i){if(Tv(i)||!i)return i;const e=i.match(/^rgba?[\s+]?\(([\d]+)[\s+]?,[\s+]?([\d]+)[\s+]?,[\s+]?([\d]+)[\s+]?/i);if(e&&e.length>=4){const t=("0"+parseInt(e[1],10).toString(16)).slice(-2),s=("0"+parseInt(e[2],10).toString(16)).slice(-2),n=("0"+parseInt(e[3],10).toString(16)).slice(-2);let r="";if(i.includes("rgba")){const l=i.match(/,\s*([\d]+\.?[\d]*)\s*\)/);l&&(r=("0"+Math.round(parseFloat(l[1])*255).toString(16)).slice(-2))}return`#${t}${s}${n}${r}`}else return i}function UT(i,e){const t=e||i.parentElement,s=ue.getComputedStyle(t),n=Uu(s.paddingLeft,-1),r=Uu(s.paddingRight,-1),l=t.offsetWidth-t.clientWidth,c=t.offsetWidth-n-r-l;return i.offsetWidth/c*100}function qT(i){var t;const e=/https?:\/\/[^\s]+/g;if(i.nodeType===3&&e.test(i.textContent)&&!/^A$/i.test((t=i.parentNode)==null?void 0:t.nodeName)){const s=i.textContent,n=Be.createDocumentFragment();let r=0;return s.replace(e,(l,c)=>{c>r&&n.appendChild(Be.createTextNode(s.slice(r,c)));const d=Be.createElement("a");return d.href=l,d.target="_blank",d.textContent=l,n.appendChild(d),r=c+l.length,l}),r<s.length&&n.appendChild(Be.createTextNode(s.slice(r))),i.parentNode.replaceChild(n,i),!0}return!1}function ZT(i,e){if(e.nodeType===1&&/^SPAN$/i.test(e.nodeName)&&e.hasAttribute("style")){const t=e.getAttribute("style"),s=[];if(Object.keys(i).forEach(n=>{if(i[n].regex.test(t)){const r=Be.createElement(i[n].tag);s.push(r)}}),s.length>0){const n=Be.createElement("span");let r=e.firstChild;s.forEach((c,d)=>{d===0?n.appendChild(c):s[d-1].appendChild(c)});const l=s[s.length-1];for(;r;){const c=r.nextSibling;l.appendChild(r),r=c}e.appendChild(n)}}}function GT(i,e){if(e.length>0)if(/\?/.test(i)){const t=i.split("?");i=t[0]+"?"+e+"&"+t[1]}else i+="?"+e;return i}function YT(i,e){let t="";i.get("height")&&(t+="height:"+i.get("height")+";"),i.get("minHeight")&&(t+="min-height:"+i.get("minHeight")+";"),i.get("maxHeight")&&(t+="max-height:"+i.get("maxHeight")+";"),i.get("width")&&(t+="width:"+i.get("width")+";"),i.get("minWidth")&&(t+="min-width:"+i.get("minWidth")+";"),i.get("maxWidth")&&(t+="max-width:"+i.get("maxWidth")+";");let s="",n="",r="";e=t+e;const l=e.split(";");for(let c=0,d=l.length,h;c<d;c++)if(h=l[c].trim(),!!h){if(/^(min-|max-)?width\s*:/.test(h)||/^(z-index|position|display)\s*:/.test(h)){s+=h+";";continue}if(/^(min-|max-)?height\s*:/.test(h)){/^height/.test(h)&&h.split(":")[1].trim()==="auto"&&i.set("height","auto"),n+=h+";";continue}r+=h+";"}return{top:s,frame:n,editor:r}}function KT(i){let e="";if(i){const t=Be.getElementsByTagName("link");for(let s=0,n=i.length,r;s<n;s++){r=[];const l=i[s];if(l==="*")for(let c=0,d=t.length;c<d;c++)t[c].rel==="stylesheet"&&t[c].href&&r.push(t[c].href);else if(/(^https?:\/\/)|(^data:text\/css,)/.test(l))r.push(l);else{const c=new RegExp(`(^|.*[\\/])${l}(\\..+)?.css((\\??.+?)|\\b)$`,"i");for(let d=0,h=t.length,f;d<h;d++)f=t[d].href.match(c),f&&r.push(f[0])}if(!r||r.length===0)throw new Error('[SUNEDITOR.constructor.iframe.fail] The suneditor CSS files installation path could not be automatically detected. Please set the option property "iframe_cssFileName" before creating editor instances.');for(let c=0,d=r.length;c<d;c++)e+='<link href="'+r[c]+'" rel="stylesheet">'}}return e}function XT(i){return i==="auto"?`<style>
3
+ /** Iframe height auto */
4
+ body{height: min-content; overflow: hidden;}
5
+ </style>`:""}const QT={htmlToJson:$T,jsonToHtml:kv,htmlToEntity:qu,entityToHTML:OT,debounce:VT,syncMaps:RT,mergeMaps:IT,getValues:DT,camelToKebabCase:xv,kebabToCamelCase:Ev,toFontUnit:PT,nodeListToArray:HT,swapKeyValue:FT,createElementWhitelist:zT,createElementBlacklist:jT,isHexColor:Tv,rgb2hex:WT,getWidthInPercentage:UT,textToAnchor:qT,spanToStyleNode:ZT,addUrlQuery:GT,_setDefaultOptionStyle:YT,_setIframeStyleLinks:KT,_setAutoHeightStyle:XT},JT=/(\s|^)(katex|MathJax|se-exclude-format)(\s|$)/;function Sv(i){if(i==null)return!1;if(typeof i!="string"){if(ao(i)){const e=i.children;for(let t=0,s=e.length;t<s;t++){const n=e[t];if(!Nv(n))return!1}}i=i.textContent}return i===""||wv.test(i)}function eS(i,e,t){return t!=="end"&&e===0||(!t||t!=="front")&&!i.nodeValue&&e<=1||(!t||t==="end")&&i.nodeValue&&e>=i.nodeValue.length}function tS(i){return(i==null?void 0:i.nodeType)===3}function ao(i){return(i==null?void 0:i.nodeType)===1}function iS(i){return ao(i)&&/^(INPUT|TEXTAREA|SELECT|OPTION)$/i.test(i.nodeName)}function sS(i){return ao(i)&&/^(BUTTON)$/i.test(i.nodeName)}function mg(i){return/^(OL|UL)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function nS(i){return/^LI$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function gg(i){return/^TABLE$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function oS(i){return/^(TABLE|THEAD|TBODY|TR|TH|TD|COL)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function Mv(i){return/^(TD|TH)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function rS(i){return/^TR$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function Bv(i){return/^BR$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function aS(i){return/^A$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function lS(i){return/^(IMG|IFRAME|AUDIO|VIDEO|CANVAS)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function cS(i){return/^IFRAME$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function dS(i){return/^FIGURE$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function Nv(i){return/^(BR|COLGROUP|COL|THEAD|TBODY|TFOOT|TR|AREA|BASE|EMBED|HR|IMG|INPUT|KEYGEN|LINK|META|PARAM|SOURCE|TRACK|WBR)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function hS(i){if(!(i!=null&&i.parentNode))return!0;const e=i;return!e.querySelector("IMG, IFRAME, AUDIO, VIDEO, CANVAS, TABLE")&&(e.children.length<=1||Bv(e.firstElementChild))&&Sv(e.textContent)}function Lv(i){if((i==null?void 0:i.nodeType)!==1)return!1;const t=i.classList;return t?t.contains("se-component")||t.contains("se-flex-component"):!1}function on(i){if((i==null?void 0:i.nodeType)!==1)return!1;const t=i.classList;return t?i.nodeName.toUpperCase()==="BODY"||t.contains("se-wrapper-wysiwyg")||t.contains("sun-editor-carrier-wrapper")||t.contains("se-wrapper"):!1}function uS(i){return(i==null?void 0:i.nodeType)===1&&i.getAttribute("contenteditable")==="false"}function fS(i){if((i==null?void 0:i.nodeType)!==1)return!1;const e=i;return/^SPAN$/i.test(e.nodeName)&&!e.className&&e.style.length===0}function pS(i,e){if(i.nodeType===3&&e.nodeType===3)return!0;if(i.nodeType===3||e.nodeType===3)return!1;const t=i,s=e,n=t.style,r=s.style;let l=0;for(let f=0,p=n.length;f<p;f++)n[n[f]]===r[n[f]]&&l++;const c=t.classList,d=s.classList;let h=0;for(let f=0,p=c.length;f<p;f++)d.contains(c[f])&&h++;return l===r.length&&l===n.length&&h===d.length&&h===c.length}function mS(i){return JT.test(i==null?void 0:i.className)}function gS(i){return i==null?void 0:i.classList.contains("__se__uneditable")}function Av(i){return i==null?void 0:i.hasAttribute("data-important-disabled")}const _i={isZeroWidth:Sv,isEdgePoint:eS,isText:tS,isElement:ao,isInputElement:iS,isButtonElement:sS,isList:mg,isListCell:nS,isTable:gg,isTableElements:oS,isTableCell:Mv,isTableRow:rS,isBreak:Bv,isAnchor:aS,isMedia:lS,isIFrame:cS,isFigure:dS,isContentLess:Nv,isEmptyLine:hS,isComponentContainer:Lv,isWysiwygFrame:on,isNonEditable:uS,isSpanWithoutAttr:fS,isSameAttributes:pS,isExcludeFormat:mS,isUneditable:gS,isImportantDisabled:Av};function $v(i){const e=Object.prototype.toString.call(i);return e==="[object HTMLCollection]"||e==="[object NodeList]"||e==="[object Array]"}function vS(i){return Object.prototype.toString.call(i)==="[object HTMLImageElement]"}function yS(i){const e=Object.prototype.toString.call(i);return e==="[object HTMLVideoElement]"||e==="[object HTMLAudioElement]"}function bS(i){return Object.prototype.toString.call(i)==="[object HTMLIFrameElement]"}function CS(i,e=!1){return i.cloneNode(e)}function Ov(i,e,t){const s=Be.createElement(i);if(e)for(const n in e)e[n]!==void 0&&e[n]!==null&&s.setAttribute(n,e[n]);return t&&(typeof t=="string"?s.innerHTML=t:typeof t=="object"&&s.appendChild(t)),s}function Vv(i){return Be.createTextNode(i||"")}function wS(i,e){const t=i.attributes;if(!t)return"";let s="";for(let n=0,r=t.length;n<r;n++)e!=null&&e.includes(t[n].name)||(s+=t[n].name+'="'+qu(t[n].value)+'" ');return s}function _S(i,e){if(!i||i.length===0)return null;e||(e=()=>!0);const t=[];for(let s=0,n=i.length,r;s<n;s++)r=i[s],e(r)&&t.push(r);return t}function kS(i,e){if(!i||i.length===0)return null;e||(e=()=>!0);for(let t=0,s=i.length,n;t<s;t++)if(n=i[t],e(n))return n;return null}function xS(i,e){for(let t=0;t<i.length;t++)if(i[t]===e)return!0;return!1}function vg(i,e){let t=-1;for(let s=0,n=i.length;s<n;s++)if(i[s]===e){t=s;break}return t}function ES(i,e){const t=vg(i,e);return t===-1?-1:t+1}function TS(i,e){const t=vg(i,e);return t===-1?-1:t-1}const SS=/(\s|^)(se-block-hover|se-block-dragging)(?=\s|$)/g;function Rv(i,e,t){const s=i,n=e;if(n.style.length>0){const l=n.style;for(let c=0,d=l.length;c<d;c++)s.style[l[c]]=l[l[c]]}const r=n.attributes;for(let l=0,c=r.length,d;l<c;l++)if(d=r[l].name.toLowerCase(),t!=null&&t.includes(d)||!r[l].value)s.removeAttribute(d);else if(d!=="style")if(d==="class"){const h=r[l].value.replace(SS," ").replace(/\s+/g," ").trim();h?s.setAttribute("class",h):s.removeAttribute("class")}else s.setAttribute(r[l].name,r[l].value)}function MS(i,e){const t=e.cloneNode(!1);t.className=t.className.replace(/(\s|^)__se__format__[^\s]+/g,""),Rv(i,t)}function BS(i){i&&("remove"in i&&typeof i.remove=="function"?i.remove():i.parentNode&&i.parentNode.removeChild(i))}function NS(i,e){if(i)if(typeof e=="string")if("outerHTML"in i)i.outerHTML=e;else{const t=Ov("DIV");t.innerHTML=e,i.parentNode.replaceChild(t.firstChild,i)}else(e==null?void 0:e.nodeType)===1&&i.parentNode.replaceChild(e,i)}function LS(i,e){!i||!e||(i.textContent=e)}function AS(i,e,t){i=Array.isArray(i)?i:[i];for(let s=0,n=i.length,r;s<n;s++)r=i[s],r.style[e]=t,r.style.length===0&&r.removeAttribute("style")}function $S(i,e){if((i==null?void 0:i.nodeType)===1)return i.style[e]}function OS(i,e,t){for(let s=0,n=i.length;s<n;s++){const r=i[s];(t||!Av(r))&&(r.disabled=e),t&&(e?r.setAttribute("data-important-disabled",""):r.removeAttribute("data-important-disabled"))}}function Zu(i,e){if(!(!i||i.nodeType!==1))return e.split("|").some(t=>i.classList.contains(t))}function lo(i,e){if(!i)return;const t=$v(i)?i:[i],s=e.split("|");for(let n=0,r=t.length;n<r;n++){const l=t[n];if(!(!l||l.nodeType!==1))for(const c of s)c&&l.classList.add(c)}}function co(i,e){if(!i)return;const t=$v(i)?i:[i],s=e.split("|");for(let n=0,r=t.length;n<r;n++){const l=t[n];if(!(!l||l.nodeType!==1))for(const c of s)c&&l.classList.remove(c)}}function VS(i,e,t){if(!i||i.nodeType!==1)return;const s=i;s.classList.toggle(e,t),s.className.trim()||s.removeAttribute("class")}function RS(i,e,t=120){lo(i,e),ue.setTimeout(()=>{co(i,e)},t)}function rn(i=Be){return{w:i.documentElement.clientWidth,h:i.documentElement.clientHeight}}function IS(){return"visualViewport"in ue?{top:ue.visualViewport.pageTop,left:ue.visualViewport.pageLeft,scale:ue.visualViewport.scale}:{top:0,left:0,scale:1}}function DS(i,e,t){if(!i)return console.warn('"parentTarget" is not exist'),null;let s=i;const n=Be.createElement("DIV");if(n.style.display="none",/body/i.test(s.nodeName)){const c=Be.createElement("DIV"),d=s.attributes;for(let h=0,f=d.length;h<f;h++)c.setAttribute(d[h].name,d[h].value);c.innerHTML=s.innerHTML,s=c}else s=s.cloneNode(!0);n.appendChild(s),Be.body.appendChild(n);const r=Array.from(s.querySelectorAll("*")),l=e?[s].concat(r):r;for(let c=0,d;d=l[c];c++){if(d.nodeType!==1)continue;const h=ue.getComputedStyle(d),f=d.style;for(const p of t)f.setProperty(p,h.getPropertyValue(p)||"")}return Be.body.removeChild(n),s}function PS(i,e=5e3){const t=i||Be;return new Promise(s=>{const r=["img","video","audio","iframe"].flatMap(c=>Array.from(t.querySelectorAll(c)));if(r.length===0){s();return}const l=r.map(c=>{var d;if(vS(c)){if(c.complete)return Promise.resolve()}else if(yS(c)){if(c.readyState>=2)return Promise.resolve()}else if(bS(c))try{if(((d=c.contentDocument)==null?void 0:d.readyState)==="complete")return Promise.resolve()}catch(h){console.warn(["[SUNEDITOR] Iframe load error",h])}return new Promise(h=>{c.addEventListener("load",h,{once:!0}),c.addEventListener("error",h,{once:!0})})});Promise.race([Promise.all(l),new Promise(c=>ue.setTimeout(c,e))]).then(()=>{s()})})}function HS(i){return Be.documentElement.style.getPropertyValue(i)}function FS(i,e){Be.documentElement.style.setProperty(i,e)}function zS(i){return`<span class="se-tooltip-inner"><span class="se-tooltip-text">${i}</span></span>`}const Ir={clone:CS,createElement:Ov,createTextNode:Vv,getAttributesToString:wS,arrayFilter:_S,arrayFind:kS,arrayIncludes:xS,getArrayIndex:vg,nextIndex:ES,prevIndex:TS,copyTagAttributes:Rv,copyFormatAttributes:MS,removeItem:BS,changeElement:NS,changeTxt:LS,setStyle:AS,getStyle:$S,setDisabled:OS,hasClass:Zu,addClass:lo,removeClass:co,toggleClass:VS,flashClass:RS,getClientSize:rn,getViewportSize:IS,applyInlineStylesAll:DS,waitForMediaLoad:PS,getRootCssVar:HS,setRootCssVar:FS,createTooltipInner:zS};function Iv(i){let e=0;for(;i=i.previousSibling;)e+=1;return e}function yg(i,e,t){const s=[];let n=!0;return Gu(i,r=>{if(r===e&&(n=!1),n&&!_i.isWysiwygFrame(r)){if(t&&r.nodeType===3){let l=null,c=null;t.s=t.e=0;let d=r.previousSibling;for(;(d==null?void 0:d.nodeType)===3;)c=d.textContent.replace(pg,""),t.s+=c.length,r.textContent=c+r.textContent,l=d,d=d.previousSibling,Ir.removeItem(l);let h=r.nextSibling;for(;(h==null?void 0:h.nodeType)===3;)c=h.textContent.replace(pg,""),t.e+=c.length,r.textContent+=c,l=h,h=h.nextSibling,Ir.removeItem(l)}s.push(r)}return!1}),s.map(Iv).reverse()}function bg(i,e){let t=e,s;for(let n=0,r=i.length;n<r&&(s=t.childNodes,s.length!==0);n++)s.length<=i[n]?t=s[s.length-1]:t=s[i[n]];return t}function jS(i,e){let t=null;if(!i)return t;const s=i;return!s.children||s.children.length===0||(e||(e=()=>!0),function n(r){if(s!==r&&e(r))return t=r,!0;if(r.children)for(let l=0,c=r.children.length;l<c;l++)n(r.children[l])}(s)),t}function WS(i,e,t){const s=[];if(t??(t=1/0),!i||t<=0)return s;const n=i;return!n.children||n.children.length===0||(e||(e=()=>!0),function r(l,c){if(!(c>t)&&(c>0&&n!==l&&e(l)&&s.push(l),c!==t&&l.children))for(let d=0,h=l.children.length;d<h;d++)r(l.children[d],c+1)}(n,0)),s}function Dv(i,e,t){const s=[];return t??(t=1/0),!i||t<=0||i.childNodes.length===0||(e||(e=()=>!0),function n(r,l){if(l>t||(l>0&&e(r)&&s.push(r),l===t))return;const c=r.childNodes;for(let d=0,h=c.length;d<h;d++)n(c[d],l+1)}(i,0)),s}function pc(i){if(!i||_i.isWysiwygFrame(i))return-1;let e=0;for(i=i.parentNode;i&&!_i.isWysiwygFrame(i);)e+=1,i=i.parentNode;return e}function US(i,e){const t=e?1:-1,s=t*-1;i.sort(function(n,r){if(!_i.isListCell(n)||!_i.isListCell(r))return 0;const l=pc(n),c=pc(r);return l>c?t:l<c?s:0})}function qS(i,e){let t=i,s=e;const n=pc(i),r=pc(e);if(n>r){let h=n-r;for(;h>0&&t;)t=t.parentElement,h--}else if(r>n){let h=r-n;for(;h>0&&s;)s=s.parentElement,h--}for(;t&&s&&t.parentElement!==s.parentElement;)t=t.parentElement,s=s.parentElement;if(!(t!=null&&t.parentNode)||!(s!=null&&s.parentNode))return{ancestor:null,a:i,b:e,result:0};const l=t.parentNode.childNodes,c=Ir.getArrayIndex(l,t),d=Ir.getArrayIndex(l,s);return{ancestor:t.parentElement,a:t,b:s,result:c>d?1:c<d?-1:0}}function Gu(i,e,t){let s;if(typeof e=="function")s=e;else if(typeof e=="object")s=r=>r===e;else{let r;/^\./.test(e)?(r="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(r="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(r="name",e="^"+e.split(":")[1]+"$"):(r="nodeName",e="^"+e+"$");const l=new RegExp(e,"i");s=c=>l.test(c[r])}t||(t=1/0);let n=0;for(;i&&!s(i);){if(n>=t||_i.isWysiwygFrame(i))return null;i=i.parentElement,n++}return i}function ZS(i,e,t){let s;if(typeof e=="function")s=e;else if(typeof e=="object")s=l=>l===e;else{let l;/^\./.test(e)?(l="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(l="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(l="name",e="^"+e.split(":")[1]+"$"):(l="nodeName",e="^"+e+"$");const c=new RegExp(e,"i");s=d=>c.test(d[l])}const n=[];t||(t=1/0);let r=0;for(;r<=t&&i&&!_i.isWysiwygFrame(i);)s(i)&&n.push(i),i=i.parentElement,r++;return n}function GS(i){let e=i;for(;e&&!/^(UL)$/i.test(e.nodeName)&&!Ir.hasClass(e,"sun-editor");){if(e.hasAttribute("data-command"))return e;e=e.parentElement}return null}function YS(i){return i.target}function KS(i,e,t){let s;if(typeof e=="function")s=e;else if(typeof e=="object")s=function(r){return r===e};else{let r;/^\./.test(e)?(r="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(r="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(r="name",e="^"+e.split(":")[1]+"$"):(r="nodeName",e="^"+(e==="text"?"#"+e:e)+"$");const l=new RegExp(e,"i");s=function(c){return l.test(c[r])}}const n=Dv(i,r=>s(r),null);return n[t?n.length-1:0]}function XS(i,e){if(i){for(e||(e=i);i&&i.nodeType===1&&i.childNodes.length>0&&!_i.isBreak(i);)i=i.firstChild;for(;e&&e.nodeType===1&&e.childNodes.length>0&&!_i.isBreak(e);)e=e.lastChild;return{sc:i,ec:e||i}}}function QS(i,e){let t=i.previousSibling;if(!t){for(let s=i.parentNode;s;s=s.parentNode){if(s===e)return null;if(s.previousSibling){t=s.previousSibling;break}}if(!t)return null}if(_i.isNonEditable(t))return t;for(;t.lastChild;)t=t.lastChild;return t}function JS(i,e){let t=i.nextSibling;if(!t){for(let s=i.parentNode;s;s=s.parentNode){if(s===e)return null;if(s.nextSibling){t=s.nextSibling;break}}if(!t)return null}if(_i.isNonEditable(t))return t;for(;t.firstChild;)t=t.firstChild;return t}function eM(i,e,t,s){if(!i)return 0;s||(s=()=>!0);let n=0,r=!1;return function l(c){if(!(r||c.nodeType===8)&&!s(c)){if(c.nodeType===3){if(c===e){n+=t,r=!0;return}n+=c.textContent.length}else if(c.nodeType===1){const d=c.childNodes;for(let h=0,f=d.length;h<f;h++)if(l(d[h]),r)return}}}(i),n}function tM(i,e,t){if(!i)return 0;const s=i.textContent,n=new RegExp(`((\\u00A0|\\s){${t},})`,"g");let r;for(n.lastIndex=e;(r=n.exec(s))!==null;)if(r.index>=e){const l=r.index+r[0].length-1,d=(s.slice(0,l+1).match(/[^\u00A0\s]/g)||[]).length;return l+d+t}return 0}function iM(i){if(!i||i.length===0)return null;const e={};let t=null,s=-1,n=-1;for(const r of i){const c=r.parentElement.rowIndex,d=r.rowSpan||1,h=r.colSpan||1;e[c]||(e[c]=[]);let f=0;const p=e[c];for(;p[f];)f++;for(let y=0;y<h;y++)p[f+y]=!0;for(let y=1;y<d;y++){const v=c+y;e[v]||(e[v]=[]);for(let b=0;b<h;b++)e[v][f+b]=!0}const m=c+d-1,g=f+h-1;(m>s||m===s&&g>n)&&(s=m,n=g,t=r)}return t}function sM(i){const e=[];let t=i==null?void 0:i.parentElement;for(;t&&!/^(body|html)$/i.test(t.nodeName);){const s=ue.getComputedStyle(t),{overflow:n,overflowX:r,overflowY:l}=s;[n,r,l].some(d=>["auto","scroll","overlay"].includes(d))&&e.push(t),t=t.parentElement}return e}function nM(i){var e;return((e=i.contentWindow)==null?void 0:e.document)||i.contentDocument}const oM={query:{getPositionIndex:Iv,getNodePath:yg,getNodeFromPath:bg,getChildNode:jS,getListChildren:WS,getListChildNodes:Dv,getNodeDepth:pc,sortNodeByDepth:US,compareElements:qS,getParentElement:Gu,getParentElements:ZS,getCommandTarget:GS,getEventTarget:YS,getEdgeChild:KS,getEdgeChildNodes:XS,getPreviousDeepestNode:QS,getNextDeepestNode:JS,findTextIndexOnLine:eM,findTabEndIndex:tM,findVisualLastCell:iM,getScrollParents:sM,getIframeDocument:nM},check:_i,utils:Ir},Pv="ArrowLeft|ArrowUp|ArrowRight|ArrowDown",Hv="F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12",rM=Pv.split("|"),aM="Backspace|Delete".split("|"),lM=`Backspace|Tab|Enter|ShiftLeft|ShiftRight|ControlLeft|ControlRight|AltLeft|AltRight|Pause|CapsLock|Escape|PageUp|PageDown|End|Home|${Pv}|Insert|Delete|${Hv}|NumLock|ScrollLock`.split("|"),cM="Backspace|Enter|Delete".split("|"),dM="Backspace|Enter|Delete".split("|"),hM=`ControlLeft|ControlRight|AltLeft|AltRight|Pause|CapsLock|Escape|Insert|${Hv}|NumLock|ScrollLock`.split("|");function uM(i){return i.shiftKey||i.keyCode===16}function fM(i){const e=i.code;return i.ctrlKey||i.metaKey||e==="MetaLeft"||e==="MetaRight"}function pM(i){return i.altKey}function mM(i){return i.isComposing||i.key==="Process"||i.keyCode===229}function gM(i){return i==="Backspace"}function vM(i){return i==="Tab"}function yM(i){return i==="Enter"}function bM(i){return i==="Escape"}function CM(i){return i==="Space"}function wM(i){return rM.includes(i)}function _M(i){return aM.includes(i)}function kM(i){return lM.includes(i)}function xM(i){return cM.includes(i)}function EM(i){return dM.includes(i)}function TM(i){return hM.includes(i)}const SM={isShift:uM,isCtrl:fM,isAlt:pM,isComposing:mM,isBackspace:gM,isTab:vM,isEnter:yM,isEsc:bM,isSpace:CM,isDirectionKey:wM,isRemoveKey:_M,isNonTextKey:kM,isHistoryRelevantKey:xM,isDocumentTypeObserverKey:EM,isNonResponseKey:TM};async function MM(i){if(!vv)return console.error("Clipboard is not supported in this browser."),!1;let e="",t="";typeof i=="string"?(e=i,t=i):ao(i)?(i.querySelectorAll("iframe").forEach(s=>{const n=document.createElement("div"),r={};for(const l of Array.from(s.attributes))r[l.name]=l.value;n.setAttribute("data-se-iframe-holder","1"),n.setAttribute("data-se-iframe-holder-attrs",JSON.stringify(r)),n.innerText=`[iframe: ${s.src}]`,s.replaceWith(n)}),e=i.outerHTML,t=i.textContent):(e=i.textContent,t=i.textContent);try{await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([t],{type:"text/plain"})})])}catch{console.warn("[SUNEDITOR.copy.warn] This browser is not supported Clipboard API");try{await navigator.clipboard.writeText(t||BM(e))}catch(s){console.error("[SUNEDITOR.copy.fail] "+s)}}}function BM(i){const e=document.createElement("div");return e.innerHTML=i,e.textContent||e.innerText||""}const NM={write:MM},Fv=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/i,LM=/^[\u200B\uFEFF]+$/;function Dr(i){const e=i.trim();return e===""||LM.test(e)}const AM={strong:"**",b:"**",em:"*",i:"*",del:"~~",s:"~~",mark:"=="};function di(i){if(!i||i.length===0)return"";const e=[];for(let t=0;t<i.length;t++){const s=Xi(i[t],"",!1);if(s){if(e.length>0){const n=e[e.length-1];n&&!n.endsWith(" ")&&!n.endsWith(`
6
+ `)&&!s.startsWith(" ")&&!s.startsWith(`
7
+ `)&&e.push(" ")}e.push(s)}}return e.join("")}function mc(i){return i?i.type==="text"?i.content||"":i.children?i.children.map(mc).join(""):"":""}function ho(i){if(!i)return"";if(i.type==="text")return i.content||"";const{tag:e,attributes:t={},children:s=[]}=i,n=Object.entries(t).map(([c,d])=>`${c}="${d}"`).join(" "),r=n?`<${e} ${n}>`:`<${e}>`;if(Fv.test(e))return r;const l=s.map(ho).join("");return`${r}${l}</${e}>`}function Yu(i,e){return i?i.split(`
8
+ `).map(t=>t?e+t:"").join(`
9
+ `)+`
10
+ `:""}function Cg(i,e,t){var l;const s=i.children||[];let n="",r=1;for(const c of s){if(c.type!=="element"||c.tag!=="li")continue;const d=t?`${r}. `:"- ",h=c.children||[];let f="",p="";const m=e+" ".repeat(d.length);let g="";const y=h[0];y&&y.type==="element"&&y.tag==="input"&&((l=y.attributes)==null?void 0:l.type)==="checkbox"&&(g=y.attributes.checked!==void 0?"[x] ":"[ ] ");for(let v=0;v<h.length;v++){const b=h[v];if(v===0&&g)continue;if(b.type!=="element"){f+=Xi(b,"",!1);continue}const w=b.tag;if(w==="ul"||w==="ol")p+=Cg(b,m,w==="ol");else if(w==="table")p+=Yu(wg(b),m);else if(w==="figure"){const _=(b.children||[]).find(x=>x.type==="element"&&x.tag==="table");_?p+=Yu(wg(_),m):p+=Yu(Xi(b,"",!0),m)}else w==="blockquote"||w==="pre"?p+=Yu(Xi(b,"",!0),m):f+=Xi(b,"",!1)}n+=`${e}${d}${g}${f.trim()}
11
+ `,p&&(n+=p),r++}return n}function wg(i){const e=[];let t=!1;function s(p,m){var g,y,v;for(const b of p.children||[])if(b.tag==="thead")s(b,!0);else if(b.tag==="tbody"||b.tag==="tfoot")s(b,!1);else if(b.tag==="tr"){const w=[];for(const x of b.children||[])if(x.tag==="td"||x.tag==="th"){const S=di(x.children).trim(),M=parseInt((g=x.attributes)==null?void 0:g.colspan,10)||1,T=parseInt((y=x.attributes)==null?void 0:y.rowspan,10)||1;w.push({content:S,colspan:M,rowspan:T})}const _=m||!t&&((v=b.children)==null?void 0:v.some(x=>x.tag==="th"));_&&(t=!0),e.push({cells:w,isHeader:_})}}if(s(i,!1),e.length===0)return"";const n=e.filter(p=>p.isHeader),r=e.filter(p=>!p.isHeader),l=[...n,...r];let c=0;for(const p of l){let m=0;for(const g of p.cells)m+=g.colspan;m>c&&(c=m)}const d=Array.from({length:l.length},()=>new Array(c).fill(null));for(let p=0;p<l.length;p++){let m=0;for(const g of l[p].cells){for(;m<c&&d[p][m]!==null;)m++;if(m>=c)break;for(let y=0;y<g.rowspan&&p+y<l.length;y++)for(let v=0;v<g.colspan&&m+v<c;v++)d[p+y][m+v]=y===0&&v===0?g.content:"";m+=g.colspan}for(let g=0;g<c;g++)d[p][g]===null&&(d[p][g]="")}let h="";if(n.length>0){h+="| "+d[0].join(" | ")+` |
12
+ `,h+="| "+d[0].map(()=>"---").join(" | ")+` |
13
+ `;for(let p=1;p<d.length;p++)h+="| "+d[p].join(" | ")+` |
14
+ `}else{h+="| "+new Array(c).fill(" ").join(" | ")+` |
15
+ `,h+="| "+new Array(c).fill("---").join(" | ")+` |
16
+ `;for(let p=0;p<d.length;p++)h+="| "+d[p].join(" | ")+` |
17
+ `}return h}function Xi(i,e,t){var d,h,f;if(!i)return"";if(i.type==="text")return(i.content||"").replace(/[\u200B\uFEFF]/g,"");if(i.type!=="element")return"";const{tag:s,attributes:n={},children:r=[]}=i;if(s==="body")return r.map(p=>Xi(p,"",!0)).join("");const l=/^h([1-6])$/.exec(s);if(l){const p=di(r).trim();if(!p)return`
18
+ `;const m=parseInt(l[1],10);return`${"#".repeat(m)} ${p}
19
+
20
+ `}if(s==="p"){const p=di(r);return p.trim()?`${p.trim()}
21
+
22
+ `:`
23
+ `}if(s==="br")return`
24
+ `;if(s==="hr")return`---
25
+
26
+ `;const c=AM[s];if(c){const p=di(r);return`${c}${p}${c}`}if(s==="code"){const p=mc({children:r});return p.includes("`")?"`` "+p+" ``":"`"+p+"`"}if(s==="kbd")return`<kbd>${mc({children:r})}</kbd>`;if(s==="sub")return`<sub>${di(r)}</sub>`;if(s==="sup")return`<sup>${di(r)}</sup>`;if(s==="a"){const p=n.href||"",m=di(r),g=n.title;return g?`[${m}](${p} "${g}")`:`[${m}](${p})`}if(s==="img"){const p=n.src||"";return`![${n.alt||""}](${p})`}if(s==="blockquote")return r.map(g=>Xi(g,"",!0)).join("").replace(/\n$/,"").split(`
27
+ `).map(g=>`> ${g}`).join(`
28
+ `)+`
29
+
30
+ `;if(s==="pre"){let p="",m="";const g=r.find(y=>y.type==="element"&&y.tag==="code");return g?(p=(((d=g.attributes)==null?void 0:d.class)||"").replace(/^language-/,""),m=mc(g)):(p=((f=(((h=i.attributes)==null?void 0:h.class)||"").match(/language-(\S+)/))==null?void 0:f[1])||"",m=mc({children:r})),"```"+p+`
31
+ `+m+"\n```\n\n"}if(s==="details")return ho(i)+`
32
+
33
+ `;if(s==="summary")return ho(i);if(s==="ul")return Cg(i,e,!1)+`
34
+ `;if(s==="ol")return Cg(i,e,!0)+`
35
+ `;if(s==="table")return wg(i)+`
36
+ `;if(s==="dl"){let p="";for(const m of r)m.type==="element"&&(m.tag==="dt"?p+=di(m.children).trim()+`
37
+ `:m.tag==="dd"&&(p+=": "+di(m.children).trim()+`
38
+ `));return p+`
39
+ `}if(s==="dt"||s==="dd")return di(r).trim();if(s==="div"){if(n.class&&/se-component/.test(n.class))return r.map(m=>Xi(m,e,!0)).join("");const p=di(r);return t?p+`
40
+
41
+ `:p}if(s==="span")return n.style||n.class?ho(i):di(r);if(s==="figure"){const p=r.map(m=>Xi(m,e,!0)).join("");return/\n$/.test(p)?p:p+`
42
+
43
+ `}if(s==="figcaption"){const p=di(r).trim();return p?p+`
44
+
45
+ `:""}return s==="video"||s==="audio"||s==="iframe"?ho(i)+`
46
+
47
+ `:ho(i)}function $M(i){return i?Xi(i,"",!0).replace(/\n{3,}/g,`
48
+
49
+ `).trim()+`
50
+ `:""}function uo(i){if(!i)return"";const e=[];function t(s){return e.push(s),""+(e.length-1)+""}return i=i.replace(/\\([\\*_~`[\]()#!|{}<>+-])/g,(s,n)=>t(n)),i=i.replace(/``\s(.+?)\s``/g,(s,n)=>t("<code>"+n+"</code>")),i=i.replace(/`([^`]+)`/g,(s,n)=>t("<code>"+n+"</code>")),i=i.replace(/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g,(s,n,r,l)=>t(l?`<img src="${r}" alt="${n}" title="${l}">`:`<img src="${r}" alt="${n}">`)),i=i.replace(/\[([^\]]+)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g,(s,n,r,l)=>t(l?`<a href="${r}" title="${l}">${n}</a>`:`<a href="${r}">${n}</a>`)),i=i.replace(/<(https?:\/\/[^>]+)>/g,(s,n)=>t(`<a href="${n}">${n}</a>`)),i=i.replace(/<([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})>/g,(s,n)=>t(`<a href="mailto:${n}">${n}</a>`)),i=i.replace(new RegExp(`(?<![="'\\w/])(https?:\\/\\/[^\\s<>\\])"]+)`,"g"),(s,n)=>t(`<a href="${n}">${n}</a>`)),i=i.replace(/~~(.+?)~~/g,"<del>$1</del>"),i=i.replace(/\*{3}(.+?)\*{3}/g,"<strong><em>$1</em></strong>"),i=i.replace(/_{3}(.+?)_{3}/g,"<strong><em>$1</em></strong>"),i=i.replace(/\*{2}(.+?)\*{2}/g,"<strong>$1</strong>"),i=i.replace(/_{2}(.+?)_{2}/g,"<strong>$1</strong>"),i=i.replace(/\*(.+?)\*/g,"<em>$1</em>"),i=i.replace(new RegExp("(?<![a-zA-Z0-9])_(.+?)_(?![a-zA-Z0-9])","g"),"<em>$1</em>"),i=i.replace(/==(.+?)==/g,"<mark>$1</mark>"),i=i.replace(/\^([^\s^]+)\^/g,"<sup>$1</sup>"),i=i.replace(new RegExp("(?<!~)~([^\\s~]+)~(?!~)","g"),"<sub>$1</sub>"),i=i.replace(/\uFFFC(\d+)\uFFFC/g,(s,n)=>e[parseInt(n,10)]),i}function zv(i,e){var r;if(!i)return"";e||(e="p");const t=i.split(`
51
+ `),s=[];let n=0;for(;n<t.length;){const l=t[n];if(Dr(l)){n++;continue}const c=/^(`{3,}|~{3,})(\w*)/.exec(l);if(c){const f=c[1].charAt(0),p=c[1].length,m=c[2],g=[];n++;const y=new RegExp("^"+(f==="`"?"`":"~")+"{"+p+",}\\s*$");for(;n<t.length&&!y.test(t[n]);)g.push(t[n]),n++;n++;const v=m?` class="language-${m}"`:"";s.push(`<pre><code${v}>${OM(g.join(`
52
+ `))}</code></pre>`);continue}const d=/^(#{1,6})\s+(.+)/.exec(l);if(d){const f=d[1].length;s.push(`<h${f}>${uo(d[2].trim())}</h${f}>`),n++;continue}if(/^(\*{3,}|-{3,}|_{3,})\s*$/.test(l)){s.push("<hr>"),n++;continue}if(/^>\s?/.test(l)){const f=[];for(;n<t.length&&/^>\s?/.test(t[n]);)f.push(t[n].replace(/^>\s?/,"")),n++;const p=zv(f.join(`
53
+ `),e);s.push(`<blockquote>${p}</blockquote>`);continue}if(/^\|.*\|/.test(l)&&n+1<t.length&&/^\|[\s:]*-{3,}[\s:]*/.test(t[n+1])){const f=[];for(;n<t.length&&/^\|.*\|/.test(t[n]);)f.push(t[n]),n++;s.push(jv(f));continue}if(/^(\s*)([-*+])\s+/.test(l)){const f=_g(t,n,!1);s.push(f.html),n=f.index;continue}if(/^(\s*)\d+\.\s+/.test(l)){const f=_g(t,n,!0);s.push(f.html),n=f.index;continue}if(/^\s*<[a-zA-Z]/.test(l)){let f=l;if(n++,Fv.test(((r=l.match(/<(\w+)/))==null?void 0:r[1])||"")){s.push(f);continue}for(;n<t.length&&!Dr(t[n]);)f+=`
54
+ `+t[n],n++;s.push(f);continue}const h=[];for(;n<t.length&&!Dr(t[n])&&!/^(#{1,6}\s|`{3,}|~{3,}|>|\||(\s*)([-*+]|\d+\.)\s|(\*{3,}|-{3,}|_{3,})\s*$)/.test(t[n]);)h.push(t[n]),n++;if(h.length>0){const f=uo(h.join(`
55
+ `));s.push(`<${e}>${f}</${e}>`)}else s.push(`<${e}>${uo(t[n])}</${e}>`),n++}return s.join("")}function jv(i){if(i.length<2)return"";const e=f=>f.replace(/^\|/,"").replace(/\|$/,"").split("|").map(p=>p.trim()),t=e(i[0]),n=e(i[1]).map(f=>{const p=f.trim();return/^:-+:$/.test(p)?"center":/^-+:$/.test(p)?"right":/^:-+$/.test(p)?"left":""}),r=i.slice(2).map(e),l=t.length,c=t.every(f=>f==="");let d="<table>";const h=f=>{const p=n[f];return p?` style="text-align: ${p};"`:""};if(!c){d+="<thead><tr>";for(let f=0;f<l;f++)d+=`<th${h(f)}>${uo(t[f])}</th>`;d+="</tr></thead>"}if(r.length>0||c){d+="<tbody>";for(const f of r){d+="<tr>";for(let p=0;p<l;p++)d+=`<td${h(p)}>${uo(f[p]||"")}</td>`;d+="</tr>"}d+="</tbody>"}return d+="</table>",d}function _g(i,e,t){const s=t?"ol":"ul",n=t?/^(\s*)\d+\.\s+(.*)/:/^(\s*)([-*+])\s+(.*)/;let r=`<${s}>`,l=e;const c=(i[l].match(/^(\s*)/)[1]||"").length;for(;l<i.length;){const d=i[l];if(Dr(d)){l++;continue}const h=(d.match(/^(\s*)/)[1]||"").length;if(h<c)break;if(h===c){if(!n.exec(d))break;const p=t?d.replace(/^\s*\d+\.\s+/,""):d.replace(/^\s*[-*+]\s+/,"");l++;let m=!1,g=!1,y=p;const v=/^\[([ xX])\]\s*(.*)/.exec(p);v&&(m=!0,g=v[1]!==" ",y=v[2]);let b="";for(;l<i.length;){const w=i[l];if(Dr(w)){l++;continue}if((w.match(/^(\s*)/)[1]||"").length<=c)break;if(/^\s*[-*+]\s+/.test(w)||/^\s*\d+\.\s+/.test(w)){const S=_g(i,l,/^\s*\d+\.\s+/.test(w));b+=S.html,l=S.index;continue}const x=w.trimStart();if(/^\|.*\|/.test(x)&&l+1<i.length&&/^\s*\|[\s:]*-{3,}/.test(i[l+1])){const S=[];for(;l<i.length;){const M=i[l];if(Dr(M)||(M.match(/^(\s*)/)[1]||"").length<=c||!/^\s*\|/.test(M))break;S.push(M.trimStart()),l++}b+=jv(S);continue}break}m?r+=`<li class="task-list-item">${g?'<input type="checkbox" checked disabled> ':'<input type="checkbox" disabled> '}${uo(y)}${b}</li>`:r+=`<li>${uo(p)}${b}</li>`}else break}return r+=`</${s}>`,{html:r,index:l}}function OM(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}const VM={jsonToMarkdown:$M,markdownToHtml:zv},RM=/<!--\[if[^>]*>[\s\S]*?<!\[endif\]-->/gi,IM=/<\/?(?:\w+:)\w+[^>]*>/gi,DM=/<xml>[\s\S]*?<\/xml>/gi,PM=/<style[^>]*>[\s\S]*?<\/style>/gi,HM=/\s*mso-[^:]+:[^;"]+;?/gi,FM=/l(\d+)\s+level(\d+)\s+lfo(\d+)/i,Wv=/mso-list:\s*Ignore/i,zM=/\bMso\w+/g,jM=/\bxl\d+/g,WM=/\s*tab-stops:[^;"]+;?/gi,UM=/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25cf\u25cb\u25aa\u25a0·o§]\s*/,qM=[/^\s*[0-9]+[.)]\s/,/^\s*[a-z][.)]\s/i,/^\s*[ivxlmcd]+[.)]\s/i],ZM=/<span\s+style\s*=\s*["']?\s*mso-spacerun:\s*yes\s*;?\s*["']?\s*>([\s\u00a0]*)<\/span>/gi,GM=/<span\s+style\s*=\s*["'][^"']*mso-tab-count:\s*\d+[^"']*["']\s*>[^<]*<\/span>/gi,YM=/mso-outline-level:\s*(\d+)/i,KM=/mso-highlight:\s*([^;"]+)/i,XM=/mso-level-number-format:\s*([^;\s]+)/i,QM=/mso-level-start-at:\s*(\d+)/i,JM=/mso-level-text:\s*([^;\s]+)/i,eB={decimal:"decimal","alpha-upper":"upper-alpha","alpha-lower":"lower-alpha","roman-upper":"upper-roman","roman-lower":"lower-roman","arabic-leading-zero":"decimal-leading-zero"},tB=/\s*margin:\s*0[a-z]*\s+0[a-z]*\s+0[a-z]*\s*;?/gi,iB=/\s*text-indent:\s*-?[\d.]+[a-z]*\s*;?/gi,sB=/\s*line-height:\s*normal\s*;?/gi,nB=/MsoHeading(\d)/i,Uv=/^file:\/\/\//i,oB=/^_(Toc|Ref|Hlt|Hlk)\d+$/i,rB=/^#_(Toc|Ref|Hlt|Hlk)\d+$/i,aB=/page-break-before\s*:\s*always/i,lB=/mso-break-type\s*:\s*section-break/i,cB=/mso-column-break-before\s*:\s*always/i,dB=/^(?:Word)?Section\d+$/i;function hB(i){const e=new Map,t=i.match(/<style[^>]*>([\s\S]*?)<\/style>/i);if(!t)return e;const s=t[1],n=/@list\s+l(\d+):level(\d+)\s*\{([^}]*)\}/gi;let r;for(;(r=n.exec(s))!==null;){const l=r[1],c=r[2],d=r[3],h=`l${l}:level${c}`,f=XM.exec(d),p=QM.exec(d),m=JM.exec(d);let g="ol",y="";if(f){const v=f[1].toLowerCase();if(v==="bullet"||v==="image"){if(g="ul",m){const b=m[1].replace(/["%\\]/g,"");b==="·"||b==="·"?y="disc":b==="o"?y="circle":(b==="§"||b==="§")&&(y="square")}}else y=eB[v]||""}e.set(h,{type:g,listStyleType:y,startAt:p?parseInt(p[1],10):1})}return e}function uB(i){const e=i.replace(/[\s\u00a0]+/g," ").trim();if(UM.test(e))return"ul";for(const t of qM)if(t.test(e))return"ol";return"ul"}function fB(i){const e=document.createTreeWalker(i,NodeFilter.SHOW_COMMENT,null),t=[];for(;e.nextNode();)t.push(e.currentNode);for(const n of t)n==null||n.remove();const s=i.querySelectorAll("span");for(const n of s){const r=n.getAttribute("style")||"";Wv.test(r)&&n.remove()}i.firstChild&&i.firstChild.nodeType===3&&(i.firstChild.nodeValue=i.firstChild.nodeValue.replace(/^[\s\u00a0]+/,""))}function qv(i){const e=i.getAttribute("style");if(!e)return;let t=e;const s=KM.exec(t);s&&!/background-color/i.test(t)&&!/background\s*:/i.test(t)&&(t+=";background-color:"+s[1].trim()),t=t.replace(HM,"").replace(WM,"").replace(tB,"").replace(iB,"").replace(sB,"").trim(),t=t.replace(/^;+|;+$/g,"").replace(/;{2,}/g,";").trim(),t?i.setAttribute("style",t):i.removeAttribute("style")}function kg(i){const e=i.getAttribute("class");if(!e)return;const t=e.replace(zM,"").replace(jM,"").trim();t?i.setAttribute("class",t):i.removeAttribute("class")}function pB(i){const e=i.querySelectorAll("span");for(let t=e.length-1;t>=0;t--){const s=e[t];if(!s.attributes.length||!s.getAttribute("style")&&!s.getAttribute("class")){const n=s.parentNode;if(n){for(;s.firstChild;)n.insertBefore(s.firstChild,s);n.removeChild(s)}}}}function mB(i,e){const t=i.body,s=[],n=t.querySelectorAll("p, h1, h2, h3, h4, h5, h6");for(const c of n){const d=c.getAttribute("style")||"",h=c.getAttribute("class")||"",f=FM.exec(d);(f||/MsoListParagraph/i.test(h))&&s.push({el:c,listId:f?f[1]:"0",level:f?parseInt(f[2],10):1,lfo:f?f[3]:"1"})}if(s.length===0)return;const r=[];let l=null;for(const c of s){const d=gB(c.el);l&&l.length>0&&d===l[l.length-1].el?l.push(c):(l=[c],r.push(l))}for(const c of r)vB(c,e)}function gB(i){let e=i.previousSibling;for(;e;){if(e.nodeType===1)return e;if(e.nodeType===3&&e.nodeValue.trim())return null;e=e.previousSibling}return null}function vB(i,e){for(const l of i){const c=`l${l.listId}:level${l.level}`,d=e.get(c);if(d)l.type=d.type,l.listStyleType=d.listStyleType,l.startAt=d.startAt;else{const h=yB(l.el);l.type=uB(h),l.listStyleType="",l.startAt=1}}const t=i[0].el.parentNode,s=i[i.length-1].el.nextSibling,n=[];let r=null;for(const l of i){const{el:c,level:d,type:h,listStyleType:f,startAt:p}=l;fB(c),qv(c),kg(c);const m=c.ownerDocument.createElement("li");for(;c.firstChild;)m.appendChild(c.firstChild);if(c.getAttribute("style")&&m.setAttribute("style",c.getAttribute("style")),n.length===0)r=Zv(c.ownerDocument,h,f,p),r.appendChild(m),n.push({listEl:r,level:d});else{const g=n[n.length-1].level;if(d>g){const y=n[n.length-1].listEl.lastElementChild,v=Zv(c.ownerDocument,h,f,p);v.appendChild(m),y?y.appendChild(v):n[n.length-1].listEl.appendChild(v),n.push({listEl:v,level:d})}else if(d<g){for(;n.length>1&&n[n.length-1].level>d;)n.pop();n[n.length-1].listEl.appendChild(m)}else n[n.length-1].listEl.appendChild(m)}c.remove()}r&&t.insertBefore(r,s)}function Zv(i,e,t,s){const n=i.createElement(e);return t&&(n.style.listStyleType=t),e==="ol"&&s>1&&n.setAttribute("start",String(s)),n}function yB(i){var t;const e=i.querySelectorAll("span");for(const s of e){const n=s.getAttribute("style")||"";if(Wv.test(n))return s.textContent||""}return((t=i.textContent)==null?void 0:t.substring(0,10))||""}function bB(i){const e=i.body.querySelectorAll("p");for(const t of e){const s=t.getAttribute("style")||"",n=t.getAttribute("class")||"";let r=0;const l=YM.exec(s);if(l&&(r=parseInt(l[1],10)),!r){const c=nB.exec(n);c&&(r=parseInt(c[1],10))}if(r>=1&&r<=6){const c=i.createElement("h"+r);for(;t.firstChild;)c.appendChild(t.firstChild);s&&c.setAttribute("style",s),t.replaceWith(c)}}}function CB(i){const e=i.body.querySelectorAll("table");for(const n of e){kg(n),n.removeAttribute("cellspacing"),n.removeAttribute("cellpadding");const r=n.querySelectorAll("col");for(const c of r)c.remove();const l=n.querySelectorAll("colgroup");for(const c of l)c.children.length||c.remove()}const t=i.body.querySelectorAll("tr");for(const n of t)n.removeAttribute("height");const s=i.body.querySelectorAll("td, th");for(const n of s){const r=n.getAttribute("valign");if(r){n.removeAttribute("valign");const c=n.getAttribute("style")||"";/vertical-align/i.test(c)||n.setAttribute("style",(c?c+";":"")+"vertical-align:"+r)}const l=n.children;if(l.length===1&&l[0].tagName==="P"){const c=l[0],d=c.getAttribute("class")||"";if(/MsoNormal/i.test(d)||!d){for(;c.firstChild;)n.insertBefore(c.firstChild,c);c.remove()}}}}function wB(i){const e=i.body.querySelectorAll("del, .msoDel");for(const c of e)c.remove();const t=i.body.querySelectorAll("ins, .msoIns");for(let c=t.length-1;c>=0;c--){const d=t[c],h=d.parentNode;if(h){for(;d.firstChild;)h.insertBefore(d.firstChild,d);d.remove()}}const s=i.body.querySelectorAll('.MsoCommentReference, [style*="mso-comment-reference"]');for(const c of s)c.remove();const n=i.body.querySelectorAll(".MsoCommentText");for(const c of n)c.remove();const r=i.body.querySelectorAll('div[style*="mso-element:comment"]');for(const c of r)c.remove();const l=i.body.querySelectorAll('a[name^="_msocom"], a[name^="_msoanchor"]');for(const c of l)c.remove()}function _B(i){const e=i.body.querySelectorAll("a");for(let t=e.length-1;t>=0;t--){const s=e[t],n=s.getAttribute("href")||"",r=s.getAttribute("name")||"";if(Uv.test(n)){const l=s.parentNode;if(l){for(;s.firstChild;)l.insertBefore(s.firstChild,s);s.remove()}continue}if(oB.test(r)){const l=s.parentNode;if(l){if(s.childNodes.length)for(;s.firstChild;)l.insertBefore(s.firstChild,s);s.remove()}continue}if(rB.test(n)){const l=s.parentNode;if(l){for(;s.firstChild;)l.insertBefore(s.firstChild,s);s.remove()}continue}s.removeAttribute("v:shapes")}}function kB(i){const e=i.body.querySelectorAll("img");for(let t=e.length-1;t>=0;t--){const s=e[t],n=s.getAttribute("src")||"";if(Uv.test(n)){s.remove();continue}s.removeAttribute("v:shapes")}}function xB(i){const e=i.body.querySelectorAll("br");for(let s=e.length-1;s>=0;s--){const n=e[s],r=n.getAttribute("style")||"";if(aB.test(r)||lB.test(r)){n.remove();continue}if(cB.test(r)){n.remove();continue}n.removeAttribute("style"),n.removeAttribute("clear")}const t=i.body.querySelectorAll('div[class*="Section"]');for(let s=t.length-1;s>=0;s--){const n=t[s],r=n.getAttribute("class")||"";if(dB.test(r.trim())){const l=n.parentNode;if(l){for(;n.firstChild;)l.insertBefore(n.firstChild,n);n.remove()}}}}function EB(i){if(!i)return"";const e=hB(i);let t=i;t=t.replace(PM,""),t=t.replace(DM,""),t=t.replace(RM,""),t=t.replace(IM,""),t=t.replace(/<!--(?:Start|End)Fragment-->/gi,""),t=t.replace(/<(?:meta|link)[^>]*>/gi,""),t=t.replace(ZM," "),t=t.replace(GM," "),t=t.replace(/(&nbsp;){2,}/g," "),t=t.replace(/\u00AD/g,"");const s=new DOMParser().parseFromString(t,"text/html");wB(s),mB(s,e),bB(s),CB(s),_B(s),kB(s),xB(s);const n=s.body.querySelectorAll("*");for(const l of n){qv(l),kg(l),l.getAttribute("lang")&&l.removeAttribute("lang"),l.removeAttribute("v:shapes");const c=l.tagName.toLowerCase();c!=="img"&&c!=="video"&&c!=="iframe"&&c!=="table"&&c!=="td"&&c!=="th"&&(l.removeAttribute("width"),l.removeAttribute("height"))}pB(s.body);const r=s.body.querySelectorAll("p");for(const l of r)!l.textContent.trim()&&!l.querySelector("img, video, iframe, br, table")&&l.remove();return s.body.innerHTML}const TB={cleanHTML:EB},pe=yT,Oe=CT,xe=QT,u=oM,X=ET,Ee=SM,SB=NM,Ku=VM,MB=TB;/*!
56
+ * Toolbar icons are inlined SVGs sourced from:
57
+ * - Lucide — https://lucide.dev (ISC License, © Lucide Contributors)
58
+ * - Tabler — https://tabler.io/icons (MIT License, © Paweł Kuna)
59
+ * Both sets share a 24×24 grid and 2px round stroke, rendered via `.se-io`
60
+ * (fill:none; stroke:currentColor). No runtime dependency — SVGs are inlined.
61
+ *
62
+ * ── `se-io-sharp` (opt-in crispness) ────────────────────────────────────────
63
+ * Add `se-io-sharp` to the `class` (e.g. `class="se-io se-io-sharp"`) ONLY for
64
+ * outline icons dominated by axis-aligned STRAIGHT strokes — e.g. `split_cell`
65
+ * (divider line), `delete` (trash verticals + lid), `copy` (rectangle edges).
66
+ *
67
+ * Why: at the 18px display size a 24-grid / 2px stroke renders as ~1.5px. On
68
+ * fractional-DPR screens (Windows 125% → 1.25, 150% → 1.5) that lands on
69
+ * non-integer physical pixels, so straight strokes look soft — and can flicker
70
+ * sharp↔blurry when a neighbouring control repaints the shared compositor layer
71
+ * (the built-in controllers are popovers = top-layer). Curvy/diagonal icons
72
+ * hide this via anti-aliasing and do NOT need the class.
73
+ *
74
+ * How it works: the CSS rule `.se-io-sharp { transform: translateZ(0) }`
75
+ * (src/assets/suneditor.css) promotes just that icon to its own GPU layer, which
76
+ * is re-rasterised from the vector at device resolution instead of being scaled
77
+ * up from a wrongly-cached low-res bitmap. Promotion only affects the element it
78
+ * is applied to — putting it on a parent/controller does NOT sharpen children.
79
+ *
80
+ * Cost / guardrail: each promoted icon is a tiny static layer (~3–5 KB GPU mem,
81
+ * present only while its controller is open) — negligible. Keep it SCOPED to the
82
+ * few icons that visibly blur; do NOT blanket every icon (needless layers), and
83
+ * prefer `translateZ(0)` over `will-change: transform` (the latter keeps the
84
+ * layer alive permanently).
85
+ */const Gv={redo:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m15 14 5-5-5-5" /><path d="M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" /></svg>',undo:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 14 4 9l5-5" /><path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" /></svg>',bold:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" /></svg>',underline:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 4v6a6 6 0 0 0 12 0V4" /><line x1="4" x2="20" y1="20" y2="20" /></svg>',italic:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><line x1="19" x2="10" y1="4" y2="4" /><line x1="14" x2="5" y1="20" y2="20" /><line x1="15" x2="9" y1="4" y2="20" /></svg>',strike:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 4H9a3 3 0 0 0-2.83 4" /><path d="M14 12a4 4 0 0 1 0 8H6" /><line x1="4" x2="20" y1="12" y2="12" /></svg>',subscript:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m4 5 8 8" /><path d="m12 5-8 8" /><path d="M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07" /></svg>',superscript:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m4 19 8-8" /><path d="m12 19-8-8" /><path d="M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06" /></svg>',remove_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 2v2" /><path d="M14 2v4" /><path d="M17 2a1 1 0 0 1 1 1v9H6V3a1 1 0 0 1 1-1z" /><path d="M6 12a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2h2a1 1 0 0 1 1 1v2.9a2 2 0 1 0 4 0V17a1 1 0 0 1 1-1h2a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1" /></svg>',remove_format:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 7V4h16v3" /><path d="M5 20h6" /><path d="M13 4 8 20" /><path d="m15 15 5 5" /><path d="m20 15-5 5" /></svg>',indent:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H11" /><path d="M21 12H11" /><path d="M21 19H11" /><path d="m3 8 4 4-4 4" /></svg>',outdent:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H11" /><path d="M21 12H11" /><path d="M21 19H11" /><path d="m7 8-4 4 4 4" /></svg>',expansion:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 3H5a2 2 0 0 0-2 2v3" /><path d="M21 8V5a2 2 0 0 0-2-2h-3" /><path d="M3 16v3a2 2 0 0 0 2 2h3" /><path d="M16 21h3a2 2 0 0 0 2-2v-3" /></svg>',reduction:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 3v3a2 2 0 0 1-2 2H3" /><path d="M21 8h-3a2 2 0 0 1-2-2V3" /><path d="M3 16h3a2 2 0 0 1 2 2v3" /><path d="M16 21v-3a2 2 0 0 1 2-2h3" /></svg>',code_block:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m10 9-3 3 3 3" /><path d="m14 15 3-3-3-3" /><rect x="3" y="3" width="18" height="18" rx="2" /></svg>',code_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m9 7-5 5 5 5" /><path d="m15 7 5 5-5 5" /></svg>',markdown_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 17V7l4 5 4-5v10" /><path d="M17 7v7" /><path d="M14 14l3 3l3-3" /></svg>',preview:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /><circle cx="12" cy="12" r="3" /></svg>',print:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2" /><path d="M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6" /><rect x="6" y="14" width="12" height="8" rx="1" /></svg>',template:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 2v4" /><path d="M12 2v4" /><path d="M16 2v4" /><rect width="16" height="18" x="4" y="4" rx="2" /><path d="M8 10h6" /><path d="M8 14h8" /><path d="M8 18h5" /></svg>',layout:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M3 9h18" /><path d="M9 21V9" /></svg>',ai:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /><path d="M20 2v4" /><path d="M22 4h-4" /><circle cx="4" cy="20" r="2" /></svg>',new_document:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',select_all:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M8 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1l0 -6" /><path d="M12 20v.01" /><path d="M16 20v.01" /><path d="M8 20v.01" /><path d="M4 20v.01" /><path d="M4 16v.01" /><path d="M4 12v.01" /><path d="M4 8v.01" /><path d="M4 4v.01" /><path d="M8 4v.01" /><path d="M12 4v.01" /><path d="M16 4v.01" /><path d="M20 4v.01" /><path d="M20 8v.01" /><path d="M20 12v.01" /><path d="M20 16v.01" /><path d="M20 20v.01" /></svg>',line_height:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 8l3 -3l3 3" /><path d="M3 16l3 3l3 -3" /><path d="M6 5l0 14" /><path d="M13 6l7 0" /><path d="M13 12l7 0" /><path d="M13 18l7 0" /></svg>',paragraph_style:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 4v16" /><path d="M17 4v16" /><path d="M19 4H9.5a4.5 4.5 0 0 0 0 9H13" /></svg>',text_style:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14 16.5a.5.5 0 0 0 .5.5h.5a2 2 0 0 1 0 4H9a2 2 0 0 1 0-4h.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8a2 2 0 0 1-4 0V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z" /></svg>',save:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" /><path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" /><path d="M7 3v4a1 1 0 0 0 1 1h7" /></svg>',blockquote:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" /><path d="M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" /></svg>',arrow_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',align_justify:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h18" /><path d="M3 12h18" /><path d="M3 19h18" /></svg>',align_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M15 12H3" /><path d="M17 19H3" /></svg>',align_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M21 12H9" /><path d="M21 19H7" /></svg>',align_center:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M17 12H7" /><path d="M19 19H5" /></svg>',align_top:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l16 0" /><path d="M9 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',align_middle:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l5 0" /><path d="M15 12l5 0" /><path d="M9 8a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',align_bottom:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 20l16 0" /><path d="M9 6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',format_float_none:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M14 7l6 0" /><path d="M14 11l6 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 7l6 0" /><path d="M4 11l6 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_center:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M9 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 7l1 0" /><path d="M4 11l1 0" /><path d="M19 7l1 0" /><path d="M19 11l1 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',font_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 16 6-12 6 12" /><path d="M8 12h8" /><path class="se-svg-color-helper" stroke-width="2.5" d="M4 20h16" /></svg>',background_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><g transform="translate(1 -2) scale(0.9)" stroke-width="2.22"><path d="m9 11-6 6v3h9l3-3" /><path d="m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4" /></g><path class="se-svg-color-helper" stroke-width="2.5" d="M4 20h16" /></svg>',list_bulleted:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h.01" /><path d="M3 12h.01" /><path d="M3 19h.01" /><path d="M8 5h13" /><path d="M8 12h13" /><path d="M8 19h13" /></svg>',list_numbered:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11 5h10" /><path d="M11 12h10" /><path d="M11 19h10" /><path d="M4 4h1v5" /><path d="M4 9h2" /><path d="M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" /></svg>',list_checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 5h8" /><path d="M13 12h8" /><path d="M13 19h8" /><path d="m3 17 2 2 4-4" /><rect x="3" y="4" width="6" height="6" rx="1" /></svg>',table:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3v18" /><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M3 9h18" /><path d="M3 15h18" /></svg>',table_header:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14" /><path d="M9 3l-6 6" /><path d="M14 3l-7 7" /><path d="M19 3l-7 7" /><path d="M21 6l-4 4" /><path d="M3 10h18" /><path d="M10 10v11" /></svg>',table_properties:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11.035 7.69a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z" /><rect x="3" y="3" width="18" height="18" rx="2" /></svg>',cell_properties:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M12 21h-7a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M17.001 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19.001 15.5v1.5" /><path d="M19.001 21v1.5" /><path d="M22.032 17.25l-1.299 .75" /><path d="M17.27 20l-1.3 .75" /><path d="M15.97 17.25l1.3 .75" /><path d="M20.733 20l1.3 .75" /></svg>',table_column:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M9 3v18" /><path d="M15 3v18" /></svg>',table_row:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M21 9H3" /><path d="M21 15H3" /></svg>',color_checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 6 9 17l-5-5" /></svg>',color_palette:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" /><circle cx="13.5" cy="6.5" r=".5" fill="currentColor" /><circle cx="17.5" cy="10.5" r=".5" fill="currentColor" /><circle cx="6.5" cy="12.5" r=".5" fill="currentColor" /><circle cx="8.5" cy="7.5" r=".5" fill="currentColor" /></svg>',border_all:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12" /><path d="M4 12l16 0" /><path d="M12 4l0 16" /></svg>',border_inside:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l16 0" /><path d="M12 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l16 0" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M12 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_outside:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12" /><path d="M12 8l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M12 16l0 .01" /></svg>',border_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 20l0 -16" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_top:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l16 0" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /></svg>',border_bottom:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 20l-16 0" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /></svg>',border_none:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',horizontal_line:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /></svg>',show_blocks:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3a2 2 0 0 0-2 2" /><path d="M19 3a2 2 0 0 1 2 2" /><path d="M21 19a2 2 0 0 1-2 2" /><path d="M5 21a2 2 0 0 1-2-2" /><path d="M9 3h1" /><path d="M9 21h1" /><path d="M14 3h1" /><path d="M14 21h1" /><path d="M3 9v1" /><path d="M21 9v1" /><path d="M3 14v1" /><path d="M21 14v1" /></svg>',cancel:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M18 6 6 18" /><path d="m6 6 12 12" /></svg>',selection_remove:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>',image:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><circle cx="9" cy="9" r="2" /><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" /></svg>',image_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M15 8h.01" /><path d="M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12" /><path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5" /><path d="M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3" /></svg>',video:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" /><rect x="2" y="6" width="14" height="12" rx="2" /></svg>',video_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M7 3v18" /><path d="M3 7.5h4" /><path d="M3 12h18" /><path d="M3 16.5h4" /><path d="M17 3v18" /><path d="M17 7.5h4" /><path d="M17 16.5h4" /></svg>',link:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /></svg>',link_rel:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 17H7A5 5 0 0 1 7 7h2" /><path d="M15 7h2a5 5 0 1 1 0 10h-2" /><line x1="8" x2="16" y1="12" y2="12" /></svg>',math:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2" /></svg>',unlink:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" /><path d="m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" /><line x1="8" x2="8" y1="2" y2="5" /><line x1="2" x2="5" y1="8" y2="8" /><line x1="16" x2="16" y1="19" y2="22" /><line x1="19" x2="22" y1="16" y2="16" /></svg>',merge_cell:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 7h1.948c1.913 0 3.705 .933 4.802 2.5a5.861 5.861 0 0 0 4.802 2.5h6.448" /><path d="M3 17h1.95a5.854 5.854 0 0 0 4.798 -2.5a5.854 5.854 0 0 1 4.798 -2.5h5.454" /><path d="M18 15l3 -3l-3 -3" /></svg>',split_cell:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3"/><path d="M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3"/><line x1="12" x2="12" y1="4" y2="20"/></svg>',unmerge_cell:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M21 17h-5.397a5 5 0 0 1 -4.096 -2.133l-.514 -.734a5 5 0 0 0 -4.096 -2.133h-3.897" /><path d="M21 7h-5.395a5 5 0 0 0 -4.098 2.135l-.51 .73a5 5 0 0 1 -4.097 2.135h-3.9" /><path d="M18 10l3 -3l-3 -3" /><path d="M18 20l3 -3l-3 -3" /></svg>',caption:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="14" x="3" y="5" rx="2" ry="2" /><path d="M7 15h4M15 15h2M7 11h2M13 11h4" /></svg>',edit:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg>',delete:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>',revert:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /><path d="M3 3v5h5" /><path d="M12 7v5l4 2" /></svg>',auto_size:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" /><path d="M14 15H9v-5" /><path d="M16 3h5v5" /><path d="M21 3 9 15" /></svg>',resize:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1" /><path d="M4 12h7a1 1 0 0 1 1 1v7" /></svg>',insert_row_below:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1" /><path d="M12 15l0 4" /><path d="M14 17l-4 0" /></svg>',insert_row_above:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 18v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1" /><path d="M12 9v-4" /><path d="M10 7l4 0" /></svg>',insert_column_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M5 12l4 0" /><path d="M7 10l0 4" /></svg>',insert_column_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M15 12l4 0" /><path d="M17 10l0 4" /></svg>',delete_row:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1" /><path d="M10 16l4 4" /><path d="M10 20l4 -4" /></svg>',delete_column:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M16 10l4 4" /><path d="M16 14l4 -4" /></svg>',fixed_column_width:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v6" /><path d="M10 18h-7" /><path d="M21 18h-7" /><path d="M6 15l-3 3l3 3" /><path d="M18 15l3 3l-3 3" /></svg>',rotate_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /><path d="M3 3v5h5" /></svg>',rotate_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" /><path d="M21 3v5h-5" /></svg>',mirror_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m3 7 5 5-5 5V7" /><path d="m21 7-5 5 5 5V7" /><path d="M12 20v2" /><path d="M12 14v2" /><path d="M12 8v2" /><path d="M12 2v2" /></svg>',mirror_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m17 3-5 5-5-5h10" /><path d="m17 21-5-5-5 5h10" /><path d="M4 12H2" /><path d="M10 12H8" /><path d="M16 12h-2" /><path d="M22 12h-2" /></svg>',checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 6 9 17l-5-5" /></svg>',line_break:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 4v7a4 4 0 0 1-4 4H4" /><path d="m9 10-5 5 5 5" /></svg>',audio:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 18V5l12-2v13" /><circle cx="6" cy="18" r="3" /><circle cx="18" cy="16" r="3" /></svg>',audio_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0" /></svg>',image_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16" /><path d="M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2" /><circle cx="13" cy="7" r="1" fill="currentColor" /><rect x="8" y="2" width="14" height="14" rx="2" /></svg>',audio_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 5H3" /><path d="M11 12H3" /><path d="M11 19H3" /><path d="M21 16V5" /><circle cx="18" cy="16" r="3" /></svg>',video_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m12.296 3.464 3.02 3.956" /><path d="M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z" /><path d="M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /><path d="m6.18 5.276 3.1 3.899" /></svg>',file_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8" /><path d="M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z" /><path d="M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1" /></svg>',file_browser:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" /></svg>',bookmark:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z" /></svg>',bookmark_anchor:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 6v16" /><path d="m19 13 2-1a9 9 0 0 1-18 0l2 1" /><path d="M9 11h6" /><circle cx="12" cy="4" r="2" /></svg>',download:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 15V3" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><path d="m7 10 5 5 5-5" /></svg>',dir_ltr:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 3v11" /><path d="M10 9H7a1 1 0 0 1 0-6h8" /><path d="M14 3v11" /><path d="m18 14 4 4H2" /><path d="m22 18-4 4" /></svg>',dir_rtl:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14 3v11" /><path d="M14 9h-3a3 3 0 0 1 0-6h9" /><path d="M18 3v11" /><path d="M22 18H2l4-4" /><path d="m6 22-4-4" /></svg>',dragHandle:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="9" cy="12" r="1" /><circle cx="9" cy="5" r="1" /><circle cx="9" cy="19" r="1" /><circle cx="15" cy="12" r="1" /><circle cx="15" cy="5" r="1" /><circle cx="15" cy="19" r="1" /></svg>',file_upload:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M12 12v6" /><path d="m15 15-3-3-3 3" /></svg>',file_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',file_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M9 15h6" /><path d="M12 18v-6" /></svg>',upload_tray:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3v12" /><path d="m17 8-5-5-5 5" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /></svg>',folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /><path d="M12 5v14" /></svg>',minus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /></svg>',selection:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3a2 2 0 0 0-2 2" /><path d="M19 3a2 2 0 0 1 2 2" /><path d="M21 19a2 2 0 0 1-2 2" /><path d="M5 21a2 2 0 0 1-2-2" /><path d="M9 3h1" /><path d="M9 21h1" /><path d="M14 3h1" /><path d="M14 21h1" /><path d="M3 9v1" /><path d="M21 9v1" /><path d="M3 14v1" /><path d="M21 14v1" /></svg>',copy:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="14" height="14" x="8" y="8" rx="2" ry="2" /><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></svg>',cut:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="6" cy="6" r="3" /><path d="M8.12 8.12 12 12" /><path d="M20 4 8.12 15.88" /><circle cx="6" cy="18" r="3" /><path d="M14.8 14.8 20 20" /></svg>',PDF:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" /><path d="M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6" /><path d="M17 18h2" /><path d="M20 15h-3v6" /><path d="M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" /></svg>',format_paint:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m14.622 17.897-10.68-2.913" /><path d="M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z" /><path d="M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15" /></svg>',drawing:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m11 10 3 3" /><path d="M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z" /><path d="M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031" /></svg>',eraser:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21" /><path d="m5.082 11.09 8.828 8.828" /></svg>',search:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21 21-4.34-4.34" /><circle cx="11" cy="11" r="8" /></svg>',selection_search:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 7V5a2 2 0 0 1 2-2h2" /><path d="M17 3h2a2 2 0 0 1 2 2v2" /><path d="M21 17v2a2 2 0 0 1-2 2h-2" /><path d="M7 21H5a2 2 0 0 1-2-2v-2" /><circle cx="12" cy="12" r="3" /><path d="m16 16-1.9-1.9" /></svg>',embed:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 12h.01" /><path d="M16 12h.01" /><path d="m17 7 5 5-5 5" /><path d="m7 7-5 5 5 5" /><path d="M8 12h.01" /></svg>',finder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M10 12H3" /><path d="M10 19H3" /><circle cx="17" cy="15" r="3" /><path d="m21 19-1.9-1.9" /></svg>',regex:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M197-199q-56-57-86.5-130T80-482q0-80 30-153t87-130l57 57q-46 45-70 103.5T160-482q0 64 24.5 122.5T254-256l-57 57Zm140.5-58.5Q320-275 320-300t17.5-42.5Q355-360 380-360t42.5 17.5Q440-325 440-300t-17.5 42.5Q405-240 380-240t-42.5-17.5ZM519-440v-71l-61 36-40-70 61-35-61-35 40-70 61 36v-71h80v71l61-36 40 70-61 35 61 35-40 70-61-36v71h-80Zm244 241-57-57q46-45 70-103.5T800-482q0-64-24.5-122.5T706-708l57-57q56 57 86.5 130T880-482q0 80-30 153t-87 130Z"/></svg>',match_case:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m131-252 165-440h79l165 440h-76l-39-112H247l-40 112h-76Zm139-176h131l-64-182h-4l-63 182Zm395 186q-51 0-81-27.5T554-342q0-44 34.5-72.5T677-443q23 0 45 4t38 11v-12q0-29-20.5-47T685-505q-23 0-42 9.5T610-468l-47-35q24-29 54.5-43t68.5-14q69 0 103 32.5t34 97.5v178h-63v-37h-4q-14 23-38 35t-53 12Zm12-54q35 0 59.5-24t24.5-56q-14-8-33.5-12.5T689-393q-32 0-50 14t-18 37q0 20 16 33t40 13Z"/></svg>',whole_word:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M40-199v-200h80v120h720v-120h80v200H40Zm342-161v-34h-3q-13 20-35 31.5T294-351q-49 0-77-25.5T189-446q0-42 32.5-68.5T305-541q23 0 42.5 3.5T381-526v-14q0-27-18.5-43T312-599q-21 0-39.5 9T241-564l-43-32q19-27 48-41t67-14q62 0 95 29.5t33 85.5v176h-59Zm-66-134q-32 0-49 12.5T250-446q0 20 15 32.5t39 12.5q32 0 54.5-22.5T381-478q-14-8-32-12t-33-4Zm185 134v-401h62v113l-3 40h3q3-5 24-25.5t66-20.5q64 0 101 46t37 106q0 60-36.5 105.5T653-351q-41 0-62.5-18T563-397h-3v37h-59Zm143-238q-40 0-62 29.5T560-503q0 37 22 66t62 29q40 0 62.5-29t22.5-66q0-37-22.5-66T644-598Z"/></svg>',swap_vert:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21 16-4 4-4-4" /><path d="M17 20V4" /><path d="m3 8 4-4 4 4" /><path d="M7 4v16" /></svg>',arrow_down_small:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',arrow_up_small:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18 15-6-6-6 6" /></svg>',replaceText:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" ><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g><path fill-rule="evenodd" clip-rule="evenodd" d="M3.221 3.739l2.261 2.269L7.7 3.784l-.7-.7-1.012 1.007-.008-1.6a.523.523 0 0 1 .5-.526H8V1H6.48A1.482 1.482 0 0 0 5 2.489V4.1L3.927 3.033l-.706.706zm6.67 1.794h.01c.183.311.451.467.806.467.393 0 .706-.168.94-.503.236-.335.353-.78.353-1.333 0-.511-.1-.913-.301-1.207-.201-.295-.488-.442-.86-.442-.405 0-.718.194-.938.581h-.01V1H9v4.919h.89v-.386zm-.015-1.061v-.34c0-.248.058-.448.175-.601a.54.54 0 0 1 .445-.23.49.49 0 0 1 .436.233c.104.154.155.368.155.643 0 .33-.056.587-.169.768a.524.524 0 0 1-.47.27.495.495 0 0 1-.411-.211.853.853 0 0 1-.16-.532zM9 12.769c-.256.154-.625.231-1.108.231-.563 0-1.02-.178-1.369-.533-.349-.355-.523-.813-.523-1.374 0-.648.186-1.158.56-1.53.374-.376.875-.563 1.5-.563.433 0 .746.06.94.179v.998a1.26 1.26 0 0 0-.792-.276c-.325 0-.583.1-.774.298-.19.196-.283.468-.283.816 0 .338.09.603.272.797.182.191.431.287.749.287.282 0 .558-.092.828-.276v.946zM4 7L3 8v6l1 1h7l1-1V8l-1-1H4zm0 1h7v6H4V8z"></path></g></svg>',relaceTextAll:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g><path fill-rule="evenodd" clip-rule="evenodd" d="M11.6 2.677c.147-.31.356-.465.626-.465.248 0 .44.118.573.353.134.236.201.557.201.966 0 .443-.078.798-.235 1.067-.156.268-.365.402-.627.402-.237 0-.416-.125-.537-.374h-.008v.31H11V1h.593v1.677h.008zm-.016 1.1a.78.78 0 0 0 .107.426c.071.113.163.169.274.169.136 0 .24-.072.314-.216.075-.145.113-.35.113-.615 0-.22-.035-.39-.104-.514-.067-.124-.164-.187-.29-.187-.12 0-.219.062-.297.185a.886.886 0 0 0-.117.48v.272zM4.12 7.695L2 5.568l.662-.662 1.006 1v-1.51A1.39 1.39 0 0 1 5.055 3H7.4v.905H5.055a.49.49 0 0 0-.468.493l.007 1.5.949-.944.656.656-2.08 2.085zM9.356 4.93H10V3.22C10 2.408 9.685 2 9.056 2c-.135 0-.285.024-.45.073a1.444 1.444 0 0 0-.388.167v.665c.237-.203.487-.304.75-.304.261 0 .392.156.392.469l-.6.103c-.506.086-.76.406-.76.961 0 .263.061.473.183.631A.61.61 0 0 0 8.69 5c.29 0 .509-.16.657-.48h.009v.41zm.004-1.355v.193a.75.75 0 0 1-.12.436.368.368 0 0 1-.313.17.276.276 0 0 1-.22-.095.38.38 0 0 1-.08-.248c0-.222.11-.351.332-.389l.4-.067zM7 12.93h-.644v-.41h-.009c-.148.32-.367.48-.657.48a.61.61 0 0 1-.507-.235c-.122-.158-.183-.368-.183-.63 0-.556.254-.876.76-.962l.6-.103c0-.313-.13-.47-.392-.47-.263 0-.513.102-.75.305v-.665c.095-.063.224-.119.388-.167.165-.049.315-.073.45-.073.63 0 .944.407.944 1.22v1.71zm-.64-1.162v-.193l-.4.068c-.222.037-.333.166-.333.388 0 .1.027.183.08.248a.276.276 0 0 0 .22.095.368.368 0 0 0 .312-.17c.08-.116.12-.26.12-.436zM9.262 13c.321 0 .568-.058.738-.173v-.71a.9.9 0 0 1-.552.207.619.619 0 0 1-.5-.215c-.12-.145-.181-.345-.181-.598 0-.26.063-.464.189-.612a.644.644 0 0 1 .516-.223c.194 0 .37.069.528.207v-.749c-.129-.09-.338-.134-.626-.134-.417 0-.751.14-1.001.422-.249.28-.373.662-.373 1.148 0 .42.116.764.349 1.03.232.267.537.4.913.4zM2 9l1-1h9l1 1v5l-1 1H3l-1-1V9zm1 0v5h9V9H3zm3-2l1-1h7l1 1v5l-1 1V7H6z"></path></g></svg>',menu_arrow_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',menu_arrow_up:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18 15-6-6-6 6" /></svg>',menu_arrow_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m9 18 6-6-6-6" /></svg>',menu_arrow_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m15 18-6-6 6-6" /></svg>',side_menu_hamburger:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 5h16" /><path d="M4 12h16" /><path d="M4 19h16" /></svg>',side_menu_folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',side_menu_folder_item:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" /></svg>',side_menu_item:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',side_menu_folder_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 10v6" /><path d="M9 13h6" /><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',alert_outline:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="10" /><line x1="12" x2="12" y1="8" y2="12" /><line x1="12" x2="12.01" y1="16" y2="16" /></svg>',more_media:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M7 3v18" /><path d="M3 7.5h4" /><path d="M3 12h18" /><path d="M3 16.5h4" /><path d="M17 3v18" /><path d="M17 7.5h4" /><path d="M17 16.5h4" /></svg>',more_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="7" height="7" x="3" y="3" rx="1" /><rect width="7" height="7" x="14" y="3" rx="1" /><rect width="7" height="7" x="14" y="14" rx="1" /><rect width="7" height="7" x="3" y="14" rx="1" /></svg>',more_folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',more_list:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h.01" /><path d="M3 12h.01" /><path d="M3 19h.01" /><path d="M8 5h13" /><path d="M8 12h13" /><path d="M8 19h13" /></svg>',more_file:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',more_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /><circle cx="12" cy="12" r="3" /></svg>',more_page:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M10 9H8" /><path d="M16 13H8" /><path d="M16 17H8" /></svg>',more_text:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 4v16" /><path d="M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" /><path d="M9 20h6" /></svg>',more_paragraph:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 4v16" /><path d="M17 4v16" /><path d="M19 4H9.5a4.5 4.5 0 0 0 0 9H13" /></svg>',more_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /><path d="M12 5v14" /></svg>',more_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" /><circle cx="5" cy="12" r="1" /></svg>',more_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="1" /><circle cx="12" cy="5" r="1" /><circle cx="12" cy="19" r="1" /></svg>',more_flag:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528" /></svg>',as_inline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8,7L13,17H3L8,7M3,3H21V5H3V3M21,15V17H14V15H21M3,19H21V21H3V19Z" /></svg>',as_block:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,7L17,17H7L12,7M3,3H21V5H3V3M3,19H21V21H3V19Z" /></svg>',page_break:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m16 16-4 4-4-4" /><path d="M3 12h18" /><path d="m8 8 4-4 4 4" /></svg>',page_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 17V3" /><path d="m6 11 6 6 6-6" /><path d="M19 21H5" /></svg>',page_up:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3h14" /><path d="m18 13-6-6-6 6" /><path d="M12 7v14" /></svg>',collapse_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M9 3v18" /><path d="m16 15-3-3 3-3" /></svg>',collapse_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M15 3v18" /><path d="m8 9 3 3-3 3" /></svg>',map:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" /><path d="M15 5.764v15" /><path d="M9 3.236v15" /></svg>',magic_stick:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72" /><path d="m14 7 3 3" /><path d="M5 6v4" /><path d="M19 14v4" /><path d="M10 2v2" /><path d="M7 8H3" /><path d="M21 16h-4" /><path d="M11 3H9" /></svg>',open_in_new:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15 3h6v6" /><path d="M10 14 21 3" /><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" /></svg>'};var Yv={exports:{}};(function(i){(function(e,t){i.exports=e.document?t(e,!0):function(s){if(!s.document)throw new Error("SUNEDITOR_LANG a window with a document");return t(s)}})(typeof window<"u"?window:ai,function(e,t){const s={code:"en",align:"Align",alignBottom:"Align bottom",alignCenter:"Align center",alignJustify:"Align justify",alignLeft:"Align left",alignMiddle:"Align middle",alignRight:"Align right",alignTop:"Align top",anchor:"Anchor",asBlock:"As a block",asInline:"As a inline",asLink:"As a link",audio:"Audio",audioGallery:"Audio gallery",audio_modal_file:"Select from files",audio_modal_title:"Insert Audio",audio_modal_url:"Audio URL",autoSize:"Auto size",backgroundColor:"Background color",basic:"Basic",blockStyle:"Block style",bold:"Bold",border:"Border",border_all:"Border all",border_inside:"Border inside",border_horizontal:"Border horizontal",border_vertical:"Border vertical",border_outside:"Border outside",border_left:"Border left",border_top:"Border top",border_right:"Border right",border_bottom:"Border bottom",border_none:"Border none",bulletedList:"Bulleted list",cancel:"Cancel",caption:"Insert description",cellProperties:"Cell properties",center:"Center",close:"Close",codeView:"Code view",color:"Color",colorPicker:"Color picker",column:"Column",comment:"Comments",commentAdd:"Add comment",commentShow:"Show comments",copy:"Copy",copyFormat:"Paint Formatting",cut:"Cut",default:"Default",deleteColumn:"Delete column",deleteRow:"Delete row",dir_ltr:"Left to right",dir_rtl:"Right to left",download:"Download",drag:"Drag",drawing:"Drawing",drawing_modal_title:"Drawing",edit:"Edit",embed:"Embed",embed_modal_title:"Embed",embed_modal_source:"Embed Source / URL",exportPDF:"Export to PDF",exportWord:"Export to Word",find:"Find",decrease:"Decrease",increase:"Increase",fileBrowser:"File browser",fileGallery:"File gallery",fileUpload:"File upload",fixedColumnWidth:"Fixed column width",font:"Font",fontColor:"Font color",fontSize:"Size",formats:"Formats",fullScreen:"Full screen",height:"Height",horizontalLine:"Horizontal line",horizontalSplit:"Horizontal split",hr_dashed:"Dashed",hr_dotted:"Dotted",hr_solid:"Solid",id:"ID",image:"Image",imageGallery:"Image gallery",image_modal_altText:"Alternative text",image_modal_file:"Select from files",image_modal_title:"Insert image",image_modal_url:"Image URL",importWord:"Import from Word",indent:"Indent",inlineStyle:"Inline style",insertColumnAfter:"Insert column after",insertColumnBefore:"Insert column before",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertLine:"Insert line",italic:"Italic",layout:"Layout",left:"Left",lineHeight:"Line height",link:"Link",link_modal_bookmark:"Bookmark",link_modal_downloadLinkCheck:"Download link",link_modal_newWindowCheck:"Open in new window",link_modal_text:"Text to display",link_modal_title:"Insert Link",link_modal_url:"URL to link",link_modal_relAttribute:"Rel attribute",list:"List",markdownView:"Markdown view",math:"Math",math_modal_fontSizeLabel:"Font Size",math_modal_inputLabel:"Mathematical Notation",math_modal_previewLabel:"Preview",math_modal_title:"Math",maxSize:"Max size",mediaGallery:"Media gallery",menu_bordered:"Bordered",menu_code:"Code",menu_neon:"Neon",menu_shadow:"Shadow",menu_spaced:"Spaced",menu_translucent:"Translucent",mergeCells:"Merge cells",minSize:"Min size",mirrorHorizontal:"Mirror, Horizontal",mirrorVertical:"Mirror, Vertical",newDocument:"New document",numberedList:"Numbered list",outdent:"Outdent",pageBreak:"Page break",pageDown:"Page down",pageNumber:"Page number",pageUp:"Page up",paragraphStyle:"Paragraph style",preview:"Preview",print:"print",proportion:"Constrain proportions",ratio:"Ratio",redo:"Redo",remove:"Remove",removeFormat:"Remove Format",replace:"Replace",replaceAll:"Replace all",resize100:"Zoom 100%",resize25:"Zoom 25%",resize50:"Zoom 50%",resize75:"Zoom 75%",resize:"Resize",revert:"Revert",revisionHistory:"Revision History",right:"Right",rotateLeft:"Rotate left",rotateRight:"Rotate right",row:"Row",save:"Save",search:"Search",selectAll:"Select All",showBlocks:"Show blocks",size:"Size",splitCells:"Split cells",strike:"Strike",submitButton:"Submit",subscript:"Subscript",superscript:"Superscript",table:"Table",tableHeader:"Table header",tableProperties:"Table properties",tags:"Tags",tag_blockquote:"Quote",codeBlock:"Code Block",tag_div:"Normal (DIV)",tag_h:"Header",tag_p:"Paragraph",tag_pre:"Code",template:"Template",textStyle:"Text style",title:"Title",underline:"Underline",undo:"Undo",unmergeCells:"Unmerge cells",unlink:"Unlink",verticalSplit:"Vertical split",video:"Video",videoGallery:"Video gallery",video_modal_file:"Select from files",video_modal_title:"Insert Video",video_modal_url:"Media embed URL, YouTube/Vimeo",width:"Width",codeLanguage:"Language",codeLanguage_none:"None",finder_matchCase:"Match Case",finder_wholeWord:"Whole Word",finder_regex:"Regular Expression",finder_prev:"Previous Match",finder_next:"Next Match",message_copy_success:"Copied to clipboard",message_copy_fail:"Copy failed. Please copy manually."};return typeof t>"u"&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"en",{enumerable:!0,writable:!0,configurable:!0,value:s})),s})})(Yv);var BB=Yv.exports;const NB=r8(BB);function LB(i,e,t,s,n){const r=new Map([["menuTray",t],["toolbar_main",i],["toolbar_buttonTray",i.querySelector(".se-btn-tray")],["toolbar_arrow",i.querySelector(".se-arrow")]]);return s&&(r.set("toolbar_sub_main",s),r.set("toolbar_sub_buttonTray",s.querySelector(".se-btn-tray")),r.set("toolbar_sub_arrow",s.querySelector(".se-arrow")),r.set("toolbar_sub_wrapper",s.parentElement.parentElement)),e&&(r.set("toolbar_wrapper",e.querySelector(".sun-editor")),r.set("_stickyDummy",e.querySelector(".se-toolbar-sticky-dummy"))),n&&r.set("statusbar_wrapper",n.querySelector(".sun-editor")),r}function AB(i,e,t,s,n,r,l,c,d,h,f){const p=new Map([["key",f],["options",i.options],["originElement",i.target],["topArea",e],["container",e.querySelector(".se-container")],["wrapper",e.querySelector(".se-wrapper")],["wysiwygFrame",t],["wysiwyg",t],["codeWrapper",s],["code",n],["codeNumbers",s==null?void 0:s.querySelector(".se-code-view-line")],["markdownWrapper",r],["markdown",l],["markdownNumbers",r==null?void 0:r.querySelector(".se-markdown-view-line")],["lineBreaker_t",e.querySelector(".se-line-breaker-component-t")],["lineBreaker_b",e.querySelector(".se-line-breaker-component-b")],["blockHandleArea",h],["blockHandle",(h==null?void 0:h.querySelector(".se-block-handle"))||null],["blockHandlePlus",(h==null?void 0:h.querySelector(".se-block-handle-plus"))||null],["blockHandleDrag",(h==null?void 0:h.querySelector(".se-block-handle-drag"))||null],["_stickyDummy",e.querySelector(".se-toolbar-sticky-dummy")],["_toolbarShadow",e.querySelector(".se-toolbar-shadow")],["_minHeight",Uu(t.style.minHeight||"65",0)],["isCodeView",!1],["isMarkdownView",!1],["isFullScreen",!1],["isReadOnly",!1],["isDisabled",!1],["isChanged",!1],["historyIndex",-1],["savedIndex",-1],["documentTypeInner",d.inner],["documentTypePage",d.page],["documentTypePageMirror",d.pageMirror]]);c&&xg(c,p);const m=e.querySelector(".se-placeholder");m&&p.set("placeholder",m);const g=i.options.get("placeholder_line");return g&&p.set("placeholder_line",g),p}function xg(i,e){i?e.set("statusbar",i):e.delete("statusbar");const t=i?i.querySelector(".se-navigation"):null,s=i?i.querySelector(".se-char-counter-wrapper"):null,n=i?i.querySelector(".se-char-counter-wrapper .se-char-counter"):null;t?e.set("navigation",t):e.delete("navigation"),s?e.set("charWrapper",s):e.delete("charWrapper"),n?e.set("charCounter",n):e.delete("charCounter");const r=i?i.querySelector(".se-word-counter-wrapper"):null,l=i?i.querySelector(".se-word-counter-wrapper .se-word-counter"):null;r?e.set("wordWrapper",r):e.delete("wordWrapper"),l?e.set("wordCounter",l):e.delete("wordCounter")}const yt={BUTTON_LIST:[["undo","redo"],"|",["bold","underline","italic","strike","|","subscript","superscript"],"|",["removeFormat"],"|",["outdent","indent"],"|",["fullScreen","showBlocks","codeView"],"|",["preview","print"]],REQUIRED_FORMAT_LINE:"div",REQUIRED_ELEMENT_WHITELIST:"br|div",ELEMENT_WHITELIST:"p|pre|blockquote|h1|h2|h3|h4|h5|h6|ol|ul|li|hr|figure|figcaption|img|iframe|audio|video|source|table|colgroup|col|thead|tbody|tr|th|td|caption|a|b|strong|var|i|em|u|ins|s|span|strike|del|sub|sup|code|svg|path|details|summary",TEXT_STYLE_TAGS:"strong|span|font|b|var|i|em|u|ins|s|strike|del|sub|sup|mark|a|label|code|summary",SCOPE_SELECTION_TAGS:["td","table","li","ol","ul","pre","figcaption","blockquote","dl","dt","dd"],ATTRIBUTE_WHITELIST:"contenteditable|target|href|title|download|rel|src|alt|class|type|colspan|rowspan|width|height|controls|autoplay|loop|muted|poster|preload|playsinline|volume|crossorigin|disableRemotePlayback|controlsList|allowfullscreen|sandbox|loading|allow|referrerpolicy|frameborder|scrolling",FORMAT_LINE:"P|H[1-6]|LI|TH|TD|DETAILS",FORMAT_BR_LINE:"PRE",FORMAT_CLOSURE_BR_LINE:"",FORMAT_BLOCK:"BLOCKQUOTE|OL|UL|FIGCAPTION|TABLE|THEAD|TBODY|TR|CAPTION|DETAILS",FORMAT_CLOSURE_BLOCK:"TH|TD",ALLOWED_EMPTY_NODE_LIST:".se-component, pre, blockquote, hr, li, table, img, iframe, video, audio, canvas, details",SIZE_UNITS:["px","pt","em","rem"],CLASS_NAME:"^__se__|^se-|^katex|^MathJax|^language-",CLASS_MJX:"mjx-container|mjx-math|mjx-mrow|mjx-mi|mjx-mo|mjx-mn|mjx-msup|mjx-mfrac|mjx-munderover",EXTRA_TAG_MAP:{script:!1,style:!1,meta:!1,link:!1,"[a-z]+:[a-z]+":!1},CONTENT_STYLES:"background|background-clip|background-color|border|border-bottom|border-collapse|border-color|border-image|border-left-width|border-radius|border-right-width|border-spacing|border-style|border-top|border-width|box-shadow|box-sizing|caption-side|color|content|direction|display|position|float|font|font-family|font-size|font-style|font-weight|height|min-height|max-height|width|min-width|max-width|left|letter-spacing|line-height|list-style-position|list-style-type|margin|margin-block-end|margin-block-start|margin-bottom|margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|padding|padding-bottom|padding-inline-start|padding-left|padding-right|padding-top|outline|overflow|page-break-before|page-break-after|page-break-inside|rotate|rotateX|rotateY|table-layout|text-align|text-decoration|text-shadow|text-transform|top|text-indent|text-rendering|vertical-align|visibility|white-space|word-break|word-wrap",TAG_STYLES:{"@text":"font-family|font-size|color|background-color|width|height","@line":"text-align|margin|margin-left|margin-right|line-height","@component":"width|height|min-width","table|th|td":"border|border-[a-z]+|color|background-color|text-align|float|font-weight|text-decoration|font-style|vertical-align","table|td":"width",tr:"height",col:"width",caption:"text-align|caption-side","ol|ul":"list-style-type",figure:"display|width|height|padding|padding-bottom",figcaption:"margin|margin-top|margin-bottom|text-align","img|video|iframe":"transform|transform-origin|width|min-width|max-width|height|min-height|max-height|float|margin|margin-top",hr:""},RETAIN_STYLE_MODE:["repeat","always","none"]},Eg={value:"fixed",placeholder:!0,placeholder_line:!0,editableFrameAttributes:!0,width:!0,minWidth:!0,maxWidth:!0,innerWidth:"fixed",height:!0,minHeight:!0,maxHeight:!0,editorStyle:!0,iframe:"fixed",iframe_fullPage:"fixed",iframe_attributes:!0,iframe_cssFileName:!0,statusbar:!0,statusbar_showPathLabel:!0,statusbar_resizeEnable:"fixed",charCounter:!0,charCounter_max:!0,charCounter_label:!0,charCounter_type:!0,wordCounter:!0,wordCounter_label:!0},$B={plugins:"fixed",excludedPlugins:"fixed",buttonList:"fixed",v2Migration:"fixed",strictMode:"fixed",mode:"fixed",blockHandle:"fixed",type:"fixed",theme:!0,lang:"fixed",fontSizeUnits:"fixed",allowedClassName:"fixed",closeModalOutsideClick:"fixed",copyFormatKeepOn:!0,syncTabIndent:!0,tabDisable:!0,autoLinkify:!0,autoStyleify:!0,retainStyleMode:!0,allowedExtraTags:"fixed",events:!0,__textStyleTags:"fixed",textStyleTags:"fixed",convertTextTags:"fixed",__tagStyles:"fixed",tagStyles:"fixed",textDirection:!0,reverseButtons:"fixed",historyStackDelayTime:!0,historyStackSize:"fixed",lineAttrReset:!0,printClass:!0,defaultLine:"fixed",defaultLineBreakFormat:!0,lineBreakClearStyle:!0,scopeSelectionTags:!0,__defaultElementWhitelist:"fixed",elementWhitelist:"fixed",elementBlacklist:"fixed",__defaultAttributeWhitelist:"fixed",attributeWhitelist:"fixed",attributeBlacklist:"fixed",__defaultFormatLine:"fixed",formatLine:"fixed",__defaultFormatBrLine:"fixed",formatBrLine:"fixed",__defaultFormatClosureBrLine:"fixed",formatClosureBrLine:"fixed",__defaultFormatBlock:"fixed",formatBlock:"fixed",__defaultFormatClosureBlock:"fixed",formatClosureBlock:"fixed",allowedEmptyTags:!0,toolbar_width:!0,toolbar_innerWidth:"fixed",toolbar_container:"fixed",toolbar_sticky:!0,toolbar_hide:!0,subToolbar:"fixed",statusbar_container:"fixed",shortcutsHint:!0,shortcutsDisable:"fixed",shortcuts:"fixed",fullScreenOffset:!0,previewTemplate:!0,printTemplate:!0,componentInsertBehavior:!0,defaultUrlProtocol:!0,allUsedStyles:"fixed",toastMessageTime:!0,icons:"fixed",freeCodeViewMode:!0,finder_panel:"fixed",finder_liveSearch:!0,__lineFormatFilter:!0,__pluginRetainFilter:!0,__listCommonStyle:"fixed",externalLibs:"fixed"},Tg=pe._d;let OB=0;function VB(i,e){typeof e!="object"&&(e={});const t={};if(e.plugins){const $=e.excludedPlugins||[],P=e.plugins,W=(Array.isArray(P)?P:Object.keys(P)).filter(Z=>!$.includes(Z)).map(Z=>P[Z]);for(let Z=0,F=W.length,I;Z<F;Z++)I=W[Z].default||W[Z],t[I.key]=I}const s=Qv(e,i,t),n=s.o,r=s.i,l=s.l,c=u.utils.createElement("DIV",{class:"se-loading-box sun-editor-common"},'<div class="se-loading-effect"></div>'),d="suneditor-"+ ++OB,h=u.utils.createElement("DIV",{class:"sun-editor sun-editor-carrier-wrapper sun-editor-common"+n.get("_themeClass")+(n.get("_rtl")?" se-rtl":"")}),f=u.utils.createElement("DIV",{class:"se-menu-tray",popover:"manual"});h.appendChild(f);const p=u.utils.createElement("INPUT",{type:"text",id:d+"-focus-temp",class:"__se__focus__temp__",autocomplete:"off","aria-hidden":"true",style:"position: fixed !important; top: -10000px !important; left: -10000px !important; display: block !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;"});p.tabIndex=-1,h.appendChild(p);const m=u.utils.createElement("DIV",{class:"se-modal se-modal-area sun-editor-common",popover:"manual"}),g=u.utils.createElement("DIV",{class:"se-modal-back"}),y=u.utils.createElement("DIV",{class:"se-modal-inner"});m.appendChild(g),m.appendChild(y),h.appendChild(m);const v=u.utils.createElement("DIV",{class:"se-alert se-modal-area sun-editor-common",style:"display: none;",popover:"manual"}),b=u.utils.createElement("DIV",{class:"se-modal-back"}),w=u.utils.createElement("DIV",{class:"se-modal-inner"});v.appendChild(b),v.appendChild(w),h.appendChild(v),h.appendChild(u.utils.createElement("DIV",{class:"se-back-wrapper",popover:"manual"}));const _=c.cloneNode(!0);_.setAttribute("popover","manual"),h.appendChild(_);const x=u.utils.createElement("DIV",{class:"se-drag-cursor",popover:"manual"});h.appendChild(x),Tg.body.appendChild(h);let S=null,M=null;const T=Sg(s.buttons,t,n,r,l,!1),L=T.element;L.style.visibility="hidden",/inline/i.test(n.get("mode"))?(L.className+=" se-toolbar-inline",L.style.width=n.get("toolbar_width")):/balloon/i.test(n.get("mode"))&&(L.className+=" se-toolbar-balloon",L.style.width=n.get("toolbar_width"),L.appendChild(u.utils.createElement("DIV",{class:"se-arrow"}))),n.get("_toolbar_bottom")&&(L.className+=" se-toolbar-bottom"),s.subButtons&&(M=Sg(s.subButtons,t,n,r,l,!1),S=M.element,S.style.visibility="hidden",S.className+=" se-toolbar-balloon se-toolbar-sub",S.style.width=n.get("toolbar_sub_width"),S.appendChild(u.utils.createElement("DIV",{class:"se-arrow"})));const B=i[0].key||null,N=[],O=new Map,A=s.statusbarContainer;let V=null;for(let $=0,P=i.length;$<P;$++){const W=i[$],Z=s.frameMap.get(W.key),F=u.utils.createElement("DIV",{class:"sun-editor"+n.get("_themeClass")+(n.get("_rtl")?" se-rtl":"")}),I=u.utils.createElement("DIV",{class:"se-container"}),G=!!n.get("blockHandle"),j=u.utils.createElement("DIV",{class:"se-wrapper"+(G?" se-mode-block":"")+(n.get("type")==="document"?" se-type-document":"")+(n.get("_type_options").includes("header")?" se-type-document-header":"")}),K=Z.get("innerWidth");K&&K!=="auto"&&j.style.setProperty("--se-editor-inner-width",K),I.appendChild(u.utils.createElement("DIV",{class:"se-toolbar-shadow"}));const se=DB(W.key,n,F,Z,d),U=se.bottomBar.statusbar,z=se.wysiwygFrame,Q=se.placeholder;let re=se.codeView;const le=u.utils.createElement("DIV",{class:"se-line-breaker-component se-line-breaker-component-t",title:l.insertLine},r.line_break),Ue=u.utils.createElement("DIV",{class:"se-line-breaker-component se-line-breaker-component-b",title:l.insertLine},r.line_break);j.appendChild(le),j.appendChild(Ue),Q&&j.appendChild(Q),I.appendChild(u.utils.createElement("DIV",{class:"se-toolbar-sticky-dummy"})),I.appendChild(j),U&&(A?V||(A.appendChild(u.utils.createElement("DIV",{class:"sun-editor"+n.get("_themeClass")},U)),V=U):I.appendChild(U)),I.appendChild(c.cloneNode(!0));const fe=W.key||null;let ft=null;if(n.get("buttons").has("codeView")){ft=u.utils.createElement("DIV",{class:"se-code-wrapper"},re),ft.style.setProperty("display","none","important"),j.appendChild(ft);const Me=PB(n,Z,re);if(re===Me){const st=u.utils.createElement("TEXTAREA",{id:d+"-code-view-line-"+(fe||"default"),class:"se-code-view-line",readonly:"true",autocomplete:"off","aria-hidden":"true",tabindex:"-1"},null);ft.insertBefore(st,re)}else re=Me}let De=null,Le=null;if(n.get("buttons").has("markdownView")){Le=se.markdownView;const Me=u.utils.createElement("TEXTAREA",{id:d+"-markdown-view-line-"+(fe||"default"),class:"se-markdown-view-line",readonly:"true",autocomplete:"off","aria-hidden":"true",tabindex:"-1"},null);De=u.utils.createElement("DIV",{class:"se-markdown-wrapper"}),De.appendChild(Me),De.appendChild(Le),De.style.setProperty("display","none","important"),j.appendChild(De)}const we={inner:null,page:null,pageMirror:null};n.get("_type_options").includes("header")&&(we.inner=u.utils.createElement("DIV",{class:"se-document-lines",style:`height: ${Z.get("height")};`},'<div class="se-document-lines-inner"></div>')),n.get("_type_options").includes("page")&&(we.page=u.utils.createElement("DIV",{class:"se-document-page"},null),we.pageMirror=u.utils.createElement("DIV",{class:"sun-editor-editable se-document-page-mirror-a4",style:"position: absolute; width: 21cm; columns: 21cm; border: 0; overflow: hidden; height: auto; top: -10000px; left: -10000px;"},null));let lt=null;if(G){lt=u.utils.createElement("DIV",{class:"se-block-handle-area"});const Me=u.utils.createElement("DIV",{class:"se-block-handle",popover:"manual"}),st=u.utils.createElement("DIV",{class:"se-block-handle-btn se-block-handle-plus"},r.plus),Qe=u.utils.createElement("DIV",{class:"se-block-handle-btn se-block-handle-drag"},r.dragHandle);Me.appendChild(st),Me.appendChild(Qe),lt.appendChild(Me)}F.appendChild(I),N.push(fe),O.set(fe,AB({target:W.target,key:W.key,options:Z},F,z,ft,re,De,Le,V||U,we,lt,fe))}const R=n.get("toolbar_container");if(R){const $=u.utils.createElement("DIV",{class:"sun-editor"+n.get("_themeClass")+(n.get("_rtl")?" se-rtl":"")}),P=u.utils.createElement("DIV",{class:"se-container"});P.appendChild(L),S&&P.appendChild(S),$.appendChild(P),R.appendChild($),R.appendChild(u.utils.createElement("DIV",{class:"se-toolbar-sticky-dummy"}))}else{const $=O.get(B).get("container");if(n.get("_toolbar_bottom")){const P=$.querySelector(".se-statusbar");$.insertBefore(L,P),S&&$.insertBefore(S,L)}else $.insertBefore(L,$.firstElementChild),S&&$.insertBefore(S,$.firstElementChild)}return{context:LB(L,R,f,S,A),carrierWrapper:h,options:n,plugins:t,icons:r,lang:l,value:s.v,rootId:B,rootKeys:N,frameRoots:O,pluginCallButtons:T.pluginCallButtons,responsiveButtons:T.responsiveButtons,pluginCallButtons_sub:M?M.pluginCallButtons:[],responsiveButtons_sub:M?M.responsiveButtons:[]}}function Kv(i,e,t,s,n,r){var c,d;if(!t||t.length<2)return;const l=e==null?void 0:e.querySelector(".se-tooltip-text");for(let h=0,f,p,m,g,y,v,b,w,_,x,S,M,T,L;h<t.length;h+=2+L){if(L=0,f=t[h].split("+"),_=null,x=(d=(c=f.at(-1)).trim)==null?void 0:d.call(c),x.startsWith("~"))_=i,x=f.pop().trim().substring(1);else if(x.startsWith("$~")){const B=f.pop().trim().substring(2).split(".");_=B[0],x=B[1]}else x.startsWith("$")?(L=1,x=t[h+2]):x="";m=g=y=v=b=w=p=null;for(const B of f)switch(B.trim()){case"c":m=!0;break;case"!":y=!0;break;case"s":g=!0;break;case"_":v=!0;break;case"=":w=!0;break;case"/":b=!0;break;default:p=B}p=p.split("|");for(let B=0,N=p.length;B<N;B++)M=m?p[B]+(g?"1000":""):p[B],s.has(M)||(T=n.indexOf(i),T=T===-1?"":X.isOdd(T)?n[T+1]:n[T-1],T&&r.add(M),s.set(M,{c:m,s:g,edge:y,space:v,enter:b,textTrigger:w,plugin:_,command:i,method:x,r:T,type:e==null?void 0:e.getAttribute("data-type"),button:e,key:M}));(S=t[h+1])&&l&&RB(l,g,S)}}function RB(i,e,t){const s=u.utils.createElement("SPAN",{class:"se-shortcut"},pe.cmdIcon+(e?pe.shiftIcon:"")+'+<span class="se-shortcut-key">'+t+"</span>"),n=i.querySelector(".se-shortcut");n?i.replaceChild(s,n):i.appendChild(s)}function Xv(i,e){return[i,e].reduce((t,s)=>{for(const n in s)t[n]=(s[n]||"").toLowerCase();return t},{})}function Qv(i,e,t){var A,V,R;const s=i.buttonList||yt.BUTTON_LIST,n=new Map;if(e.length>1&&!i.toolbar_container&&!/inline|balloon/i.test(i.mode))throw Error('[SUNEDITOR.create.fail] In multi root, The "mode" option cannot be "classic" without using the "toolbar_container" option.');n.set("v2Migration",!!i.v2Migration),n.set("buttons",new Set(s.toString().split(","))),n.set("strictMode",{tagFilter:!0,formatFilter:!0,classFilter:!0,textStyleTagFilter:!0,attrFilter:!0,styleFilter:!0,...typeof i.strictMode=="boolean"?{}:i.strictMode}),n.set("freeCodeViewMode",!!i.freeCodeViewMode),n.set("finder_panel",i.finder_panel!==!1),n.set("finder_liveSearch",i.finder_liveSearch!==!1),n.set("__lineFormatFilter",i.__lineFormatFilter??!0),n.set("__pluginRetainFilter",i.__pluginRetainFilter??!0);const[r,l]=(i.mode||"classic").split(":");n.set("mode",r),n.set("_toolbar_bottom",l==="bottom"&&/^(classic|inline)$/i.test(r)),n.set("blockHandle",i.blockHandle?typeof i.blockHandle=="object"?i.blockHandle:{}:null),n.set("type",((A=i.type)==null?void 0:A.split(":")[0])||""),n.set("theme",i.theme||""),n.set("_themeClass",i.theme?` se-theme-${i.theme}`:""),n.set("_type_options",((V=i.type)==null?void 0:V.split(":")[1])||""),n.set("externalLibs",i.externalLibs||{}),n.set("fontSizeUnits",Array.isArray(i.fontSizeUnits)&&i.fontSizeUnits.length>0?i.fontSizeUnits.map($=>$.toLowerCase()):yt.SIZE_UNITS),n.set("allowedClassName",new RegExp(`${i.allowedClassName&&typeof i.allowedClassName=="string"?i.allowedClassName+"|":""}${yt.CLASS_NAME}`)),n.set("closeModalOutsideClick",!!i.closeModalOutsideClick),n.set("copyFormatKeepOn",!!i.copyFormatKeepOn),n.set("syncTabIndent",i.syncTabIndent??!0),n.set("autoLinkify",i.autoLinkify??!!t.link),n.set("autoStyleify",Array.isArray(i.autoStyleify)?i.autoStyleify:["bold","underline","italic","strike"]);let c=i.retainStyleMode||"repeat";typeof c=="string"&&!yt.RETAIN_STYLE_MODE.includes(c)&&(console.error(`Invalid retainStyleMode: ${c}. Valid options are ${yt.RETAIN_STYLE_MODE.join(", ")}. Using default 'repeat'.`),c="repeat"),n.set("retainStyleMode",c);const d={...yt.EXTRA_TAG_MAP,...i.allowedExtraTags,"-":!0},h=Object.keys(d),f=h.filter($=>d[$]).join("|"),p=h.filter($=>!d[$]).join("|");n.set("_allowedExtraTag",f),n.set("_disallowedExtraTag",p),n.set("events",i.events||{}),n.set("textStyleTags",(typeof i.__textStyleTags=="string"?i.__textStyleTags:yt.TEXT_STYLE_TAGS)+(i.textStyleTags?"|"+i.textStyleTags:""));const m=Xv({bold:"strong",underline:"u",italic:"em",strike:"del",subscript:"sub",superscript:"sup"},i.convertTextTags||{});n.set("convertTextTags",m),n.set("_textStyleTags",Object.values(m).concat(["span","li"])),n.set("tagStyles",[{...yt.TAG_STYLES,...i.__tagStyles||{}},i.tagStyles||{}].reduce(($,P)=>{for(const W in P)$[W]=P[W];return $},{})),n.set("_defaultStyleTagMap",{strong:m.bold,b:m.bold,u:m.underline,ins:m.underline,em:m.italic,i:m.italic,del:m.strike,strike:m.strike,s:m.strike,sub:m.subscript,sup:m.superscript}),n.set("_styleCommandMap",Xv(xe.swapKeyValue(m),{strong:"bold",b:"bold",u:"underline",ins:"underline",em:"italic",i:"italic",del:"strike",strike:"strike",s:"strike",sub:"subscript",sup:"superscript"})),n.set("_defaultTagCommand",{bold:m.bold,underline:m.underline,italic:m.italic,strike:m.strike,subscript:m.sub,superscript:m.sup}),n.set("textDirection",i.textDirection??"ltr"),n.set("_rtl",n.get("textDirection")==="rtl"),n.set("reverseCommands",["indent-outdent"].concat(i.reverseButtons||[])),n.set("_reverseCommandArray",("-"+n.get("reverseCommands").join("-")).split("-")),X.isEven(n.get("_reverseCommandArray").length)&&console.warn('[SUNEDITOR.create.warning] The "reverseCommands" option is invalid, Shortcuts key may not work properly.'),n.set("historyStackDelayTime",typeof i.historyStackDelayTime=="number"?i.historyStackDelayTime:400),n.set("historyStackSize",typeof i.historyStackSize=="number"&&i.historyStackSize>0?i.historyStackSize:100),n.set("_editableClass","sun-editor-editable"+n.get("_themeClass")+(n.get("_rtl")?" se-rtl":"")+(n.get("type")==="document"?" se-type-document-editable-a4":"")),n.set("lineAttrReset",["id"].concat(i.lineAttrReset&&typeof i.lineAttrReset=="string"?i.lineAttrReset.toLowerCase().split("|"):[])),n.set("printClass",typeof i.printClass=="string"?i.printClass+" "+n.get("_editableClass"):null),n.set("defaultLine",typeof i.defaultLine=="string"&&i.defaultLine.length>0?i.defaultLine:"p"),n.set("defaultLineBreakFormat",i.defaultLineBreakFormat||"line"),n.set("lineBreakClearStyle",!!i.lineBreakClearStyle),n.set("scopeSelectionTags",i.scopeSelectionTags||yt.SCOPE_SELECTION_TAGS);const g=(typeof i.elementWhitelist=="string"?i.elementWhitelist:"").toLowerCase(),y=n.get("externalLibs").mathjax?yt.CLASS_MJX+"|":"";n.set("elementWhitelist",g+(g?"|":"")+y+n.get("_allowedExtraTag"));const v=HB((typeof i.elementBlacklist=="string"?i.elementBlacklist:"").toLowerCase(),n.get("defaultLine"));if(n.set("elementBlacklist",v+(v?"|":"")+n.get("_disallowedExtraTag")),n.set("attributeWhitelist",!i.attributeWhitelist||typeof i.attributeWhitelist!="object"?null:i.attributeWhitelist),n.set("attributeBlacklist",!i.attributeBlacklist||typeof i.attributeBlacklist!="object"?null:i.attributeBlacklist),n.set("formatClosureBrLine",gc(i.formatClosureBrLine,(i.__defaultFormatClosureBrLine=typeof i.__defaultFormatClosureBrLine=="string"?i.__defaultFormatClosureBrLine:yt.FORMAT_CLOSURE_BR_LINE).toLowerCase(),n.get("elementBlacklist"))),n.set("formatBrLine",gc((i.formatBrLine||"")+"|"+n.get("formatClosureBrLine").str,(i.__defaultFormatBrLine=typeof i.__defaultFormatBrLine=="string"?i.__defaultFormatBrLine:yt.FORMAT_BR_LINE).toLowerCase(),n.get("elementBlacklist"))),n.set("formatLine",gc(yt.REQUIRED_FORMAT_LINE+"|"+(i.formatLine||"")+"|"+n.get("formatBrLine").str,(i.__defaultFormatLine=typeof i.__defaultFormatLine=="string"?i.__defaultFormatLine:yt.FORMAT_LINE).toLowerCase(),n.get("elementBlacklist"))),!n.get("formatLine").reg.test(n.get("defaultLine")))throw Error(`[SUNEDITOR.create.fail] The "defaultLine(${n.get("defaultLine")})" option must be included in the "formatLine(${n.get("formatLine").str})" option.`);n.set("formatClosureBlock",gc(i.formatClosureBlock,(i.__defaultFormatClosureBlock=typeof i.__defaultFormatClosureBlock=="string"?i.__defaultFormatClosureBlock:yt.FORMAT_CLOSURE_BLOCK).toLowerCase(),n.get("elementBlacklist"))),n.set("formatBlock",gc((i.formatBlock||"")+"|"+n.get("formatClosureBlock").str,(i.__defaultFormatBlock=typeof i.__defaultFormatBlock=="string"?i.__defaultFormatBlock:yt.FORMAT_BLOCK).toLowerCase(),n.get("elementBlacklist"))),n.set("allowedEmptyTags",yt.ALLOWED_EMPTY_NODE_LIST+(i.allowedEmptyTags?", "+i.allowedEmptyTags:"")),n.set("__defaultElementWhitelist",yt.REQUIRED_ELEMENT_WHITELIST+"|"+(typeof i.__defaultElementWhitelist=="string"?i.__defaultElementWhitelist:yt.ELEMENT_WHITELIST).toLowerCase()),n.set("__defaultAttributeWhitelist",(typeof i.__defaultAttributeWhitelist=="string"?i.__defaultAttributeWhitelist:yt.ATTRIBUTE_WHITELIST).toLowerCase()),n.set("_editorElementWhitelist",n.get("elementWhitelist")==="*"?"*":FB(n)),n.set("toolbar_width",i.toolbar_width?X.is(i.toolbar_width)?i.toolbar_width+"px":i.toolbar_width:"auto"),n.set("toolbar_innerWidth",i.toolbar_innerWidth?X.is(i.toolbar_innerWidth)?i.toolbar_innerWidth+"px":i.toolbar_innerWidth:""),n.set("toolbar_container",i.toolbar_container&&!/inline/i.test(n.get("mode"))?typeof i.toolbar_container=="string"?Tg.querySelector(i.toolbar_container):i.toolbar_container:null);const b=i.toolbar_sticky;/balloon/i.test(n.get("mode"))?(n.set("_toolbar_sticky",-1),n.set("_toolbar_sticky_offset",0),n.set("_toolbar_sticky_fixed",!1)):b!==null&&typeof b=="object"?(n.set("_toolbar_sticky",X.get(b.top,0)),n.set("_toolbar_sticky_offset",X.get(b.offset,0)),n.set("_toolbar_sticky_fixed",b.position==="fixed")):(n.set("_toolbar_sticky",b===void 0?0:X.is(b)?b:-1),n.set("_toolbar_sticky_offset",0),n.set("_toolbar_sticky_fixed",!1)),n.set("toolbar_hide",!!i.toolbar_hide);let _=null;const x=i.subToolbar;((R=x==null?void 0:x.buttonList)==null?void 0:R.length)>0&&(/balloon/.test(n.get("mode"))?console.warn('[SUNEDITOR.create.subToolbar.fail] When the "mode" option is "balloon-*", the "subToolbar" option is omitted.'):(n.set("_subMode",x.mode||"balloon"),n.set("toolbar_sub_width",x.width?X.is(x.width)?x.width+"px":x.width:"auto"),_=n.get("_rtl")?x.buttonList.reverse():x.buttonList,n.set("buttons_sub",new Set(_.toString().split(",")))));const S=new Map;for(let $=0,P=e.length;$<P;$++)S.set(e[$].key,IB(e[$].options||{},i));n.set("tabDisable",!!i.tabDisable),n.set("shortcutsHint",i.shortcutsHint===void 0?!0:!!i.shortcutsHint);const M=i.shortcutsDisable!==void 0&&i.shortcutsDisable?{}:[{selectAll:["c+KeyA","A"],bold:["c+KeyB","B"],strike:["c+s+KeyS","S"],underline:["c+KeyU","U"],italic:["c+KeyI","I"],redo:["c+KeyY","Y","c+s+KeyZ","Z"],undo:["c+KeyZ","Z"],indent:["c+BracketRight","]"],outdent:["c+BracketLeft","["],save:["c+KeyS","S"],...n.get("finder_panel")?{finder:["c+KeyF","F"]}:{},link:["c+KeyK","K"],hr:["!+---+=+~shortcut",""],list_numbered:["!+1.+_+~shortcut",""],list_bulleted:["!+*.+_+~shortcut",""],_h1:["c+s+Digit1|Numpad1+$~blockStyle.applyHeaderByShortcut",""],_h2:["c+s+Digit2|Numpad2+$~blockStyle.applyHeaderByShortcut",""],_h3:["c+s+Digit3|Numpad3+$~blockStyle.applyHeaderByShortcut",""]},i.shortcuts||{}].reduce(($,P)=>{for(const W in P)$[W]=P[W];return $},{});n.set("shortcuts",M),n.set("fullScreenOffset",i.fullScreenOffset===void 0?0:X.is(i.fullScreenOffset)?X.get(i.fullScreenOffset,0):0),n.set("previewTemplate",typeof i.previewTemplate=="string"?i.previewTemplate:null),n.set("printTemplate",typeof i.printTemplate=="string"?i.printTemplate:null),n.set("componentInsertBehavior",["auto","select","line","none"].includes(i.componentInsertBehavior)?i.componentInsertBehavior:"auto"),n.set("defaultUrlProtocol",typeof i.defaultUrlProtocol=="string"?i.defaultUrlProtocol:null);const T=n.get("externalLibs").codeMirror;T&&(n.set("codeMirror",T),T.src?n.set("codeMirrorEditor",!0):(console.warn("[SUNEDITOR.options.externalLibs.codeMirror.fail] The codeMirror option is set incorrectly. See: https://github.com/ARA-developer/suneditor/blob/develop/guide/external-libraries.md"),n.set("codeMirror",null))),n.set("__listCommonStyle",i.__listCommonStyle||["fontSize","color","fontFamily","fontWeight","fontStyle"]);const L=!i.icons||typeof i.icons!="object"?Gv:[Gv,i.icons].reduce(($,P)=>{for(const W in P)$[W]=P[W];return $},{});n.set("icons",L);const B=new Set(yt.CONTENT_STYLES.split("|")),N=n.get("__listCommonStyle");for(const $ of Object.values(n.get("tagStyles"))){const P=$.split("|");for(let W=0,Z=P.length;W<Z;W++)B.add(P[W])}for(let $=0,P=N.length;$<P;$++)B.add(N[$]);const O=(typeof i.allUsedStyles=="string"?i.allUsedStyles.split("|"):i.allUsedStyles)||[];for(let $=0,P=O.length;$<P;$++)B.add(O[$]);return n.set("allUsedStyles",B),n.set("toastMessageTime",{copy:1500,...i.toastMessageTime}),{o:n,i:L,l:i.lang||NB,v:i.value=typeof i.value=="string"?i.value:null,buttons:n.get("_rtl")?s.reverse():s,subButtons:_,statusbarContainer:typeof i.statusbar_container=="string"?Tg.querySelector(i.statusbar_container):i.statusbar_container,frameMap:S}}function Jv(i,e){let t=null,s=null,n=null,r=null,l=null;if(i.get("statusbar")){if(e||(e=u.utils.createElement("DIV",{class:"se-status-bar sun-editor-common"})),t=e.querySelector(".se-navigation")||u.utils.createElement("DIV",{class:"se-navigation sun-editor-common"}),e.appendChild(t),i.get("wordCounter")){if(r=e.querySelector(".se-word-counter-wrapper")||u.utils.createElement("DIV",{class:"se-word-counter-wrapper"}),i.get("wordCounter_label")){const c=r.querySelector(".se-word-label")||u.utils.createElement("SPAN",{class:"se-word-label"});c.textContent=i.get("wordCounter_label"),r.appendChild(c)}l=r.querySelector(".se-word-counter")||u.utils.createElement("SPAN",{class:"se-word-counter"}),l.textContent="0",r.appendChild(l),e.appendChild(r)}if(i.get("charCounter")){if(s=e.querySelector(".se-char-counter-wrapper")||u.utils.createElement("DIV",{class:"se-char-counter-wrapper"}),i.get("wordCounter")&&s.className.indexOf("se-with-word-counter")===-1&&(s.className+=" se-with-word-counter"),i.get("charCounter_label")){const c=s.querySelector(".se-char-label")||u.utils.createElement("SPAN",{class:"se-char-label"});c.textContent=i.get("charCounter_label"),s.appendChild(c)}if(n=s.querySelector(".se-char-counter")||u.utils.createElement("SPAN",{class:"se-char-counter"}),n.textContent="0",s.appendChild(n),i.get("charCounter_max")>0){const c=s.querySelector(".se-char-max")||u.utils.createElement("SPAN",{class:"se-char-max"});c.textContent=" / "+i.get("charCounter_max"),s.appendChild(c)}e.appendChild(s)}}return{statusbar:e,navigation:t,charWrapper:s,charCounter:n,wordWrapper:r,wordCounter:l}}function IB(i,e){const t=new Map;t.set("_origin",i);const s=e.statusbar_container,n=i.value===void 0?e.value:i.value,r=i.placeholder===void 0?e.placeholder:i.placeholder,l=i.placeholder_line===void 0?e.placeholder_line:i.placeholder_line,c=i.editableFrameAttributes===void 0?e.editableFrameAttributes:i.editableFrameAttributes,d=i.width===void 0?e.width:i.width,h=i.minWidth===void 0?e.minWidth:i.minWidth,f=i.maxWidth===void 0?e.maxWidth:i.maxWidth,p=i.innerWidth===void 0?e.innerWidth:i.innerWidth,m=i.height===void 0?e.height:i.height,g=i.minHeight===void 0?e.minHeight:i.minHeight,y=i.maxHeight===void 0?e.maxHeight:i.maxHeight,v=i.editorStyle===void 0?e.editorStyle:i.editorStyle,b=i.iframe===void 0?e.iframe:i.iframe,w=i.iframe_fullPage===void 0?e.iframe_fullPage:i.iframe_fullPage,_=i.iframe_attributes===void 0?e.iframe_attributes:i.iframe_attributes,x=i.iframe_cssFileName===void 0?e.iframe_cssFileName:i.iframe_cssFileName,S=s||i.statusbar===void 0?e.statusbar:i.statusbar,M=s||i.statusbar_showPathLabel===void 0?e.statusbar_showPathLabel:i.statusbar_showPathLabel,T=s?!1:i.statusbar_resizeEnable===void 0?e.statusbar_resizeEnable:i.statusbar_resizeEnable,L=s||i.charCounter===void 0?e.charCounter:i.charCounter,B=s||i.charCounter_max===void 0?e.charCounter_max:i.charCounter_max,N=s||i.charCounter_label===void 0?e.charCounter_label:i.charCounter_label,O=s||i.charCounter_type===void 0?e.charCounter_type:i.charCounter_type,A=s||i.wordCounter===void 0?e.wordCounter:i.wordCounter,V=s||i.wordCounter_label===void 0?e.wordCounter_label:i.wordCounter_label;t.set("value",n),t.set("placeholder",r),t.set("placeholder_line",l),t.set("editableFrameAttributes",{spellcheck:"false",...c}),t.set("width",d?String(X.is(d)?d+"px":d):"100%"),t.set("minWidth",h?String(X.is(h)?h+"px":h):""),t.set("maxWidth",f?String(X.is(f)?f+"px":f):""),t.set("innerWidth",p?String(X.is(p)?p+"px":p):""),t.set("height",m?String(X.is(m)?m+"px":m):"auto"),t.set("minHeight",g?String(X.is(g)?g+"px":g):""),t.set("maxHeight",y?String(X.is(y)?y+"px":y):""),t.set("editorStyle",v),t.set("_defaultStyles",xe._setDefaultOptionStyle(t,typeof v=="string"?v:"")),t.set("iframe",!!(w||b)),t.set("iframe_fullPage",!!w),t.set("iframe_attributes",_||{}),t.set("iframe_cssFileName",b?(typeof x=="string"?[x]:x)||["suneditor"]:null);const R=S===void 0?!0:!!S;return t.set("statusbar",R),t.set("statusbar_showPathLabel",R?typeof M=="boolean"?M:!0:!1),t.set("statusbar_resizeEnable",R?T===void 0?!0:!!T:!1),t.set("charCounter",B>0?!0:typeof L=="boolean"?L:!1),t.set("charCounter_max",X.is(B)&&B>-1?B*1:null),t.set("charCounter_label",typeof N=="string"?N.trim():null),t.set("charCounter_type",typeof O=="string"?O:"char"),t.set("wordCounter",typeof A=="boolean"?A:!1),t.set("wordCounter_label",typeof V=="string"?V.trim():null),t}function DB(i,e,t,s,n){const r=s.get("_defaultStyles");t.style.cssText=r.top;const l=u.utils.createElement(s.get("iframe")?"IFRAME":"DIV",{class:"se-wrapper-inner se-wrapper-wysiwyg"+(e.get("type")==="document"?" se-type-document-iframe-a4":""),"data-root-key":i});if(!s.get("iframe"))l.setAttribute("contenteditable","true"),e.get("_rtl")&&(l.dir="rtl"),l.className+=" "+e.get("_editableClass"),l.style.cssText=r.frame+r.editor;else{const f=l,p=s.get("iframe_attributes");let m=p.sandbox;if(m){const g=["allow-same-origin","allow-scripts"],y=m.split(/\s+/),v=g.filter(b=>!y.includes(b));v.length>0&&(m=y.concat(v).join(" "))}else m="allow-same-origin allow-scripts";f.setAttribute("sandbox",m),f.setAttribute("frameBorder","0");for(const g in p)g!=="sandbox"&&f.setAttribute(g,p[g]);f.allowFullscreen=!0,f.setAttribute("scrolling",s.get("height")==="auto"?"no":"auto"),f.style.cssText=r.frame}const c=u.utils.createElement("TEXTAREA",{id:n+"-code-viewer-"+(i||"default"),class:"se-wrapper-inner se-code-viewer",style:r.frame,autocomplete:"off"}),d=u.utils.createElement("TEXTAREA",{id:n+"-markdown-viewer-"+(i||"default"),class:"se-wrapper-inner se-markdown-viewer",style:r.frame,autocomplete:"off"}),h=u.utils.createElement("SPAN",{class:"se-placeholder"});return s.get("placeholder")&&(h.textContent=s.get("placeholder")),{bottomBar:Jv(s,null),wysiwygFrame:l,codeView:c,markdownView:d,placeholder:h}}function PB(i,e,t){let s=null,n=!1;if(i.get("codeMirrorEditor")){const r=i.get("codeMirror"),l=[{mode:"htmlmixed",htmlMode:!0,lineNumbers:!0,lineWrapping:!1},r.options||{}].reduce((h,f)=>{for(const p in f)h[p]=f[p];return h},{});e.get("height")==="auto"&&(l.viewportMargin=1/0,l.height="auto");const c=t.style.cssText,d=r.src.fromTextArea(t,l);e.set("codeMirrorEditor",d),s=d.display.wrapper,s.style.cssText=c,n=!0}return i.set("hasCodeMirror",n),s?(u.utils.removeItem(t),s.className+=" se-code-viewer-mirror",s):t}function HB(i,e){return e=e.toLowerCase(),i.split("|").filter(function(t){return t!==e?!0:(console.warn(`[SUNEDITOR.constructor.createBlacklist.warn] defaultLine("<${e}>") cannot be included in the blacklist and will be removed.`),!1)}).join("|")}function gc(i,e,t){const s=t.split("|"),n=(e+"|"+(typeof i=="string"?i.toLowerCase():"")).replace(/^\||\|$/g,"").split("|").filter(r=>r&&!s.includes(r)).join("|");return{reg:new RegExp(`^(${n})$`,"i"),str:n}}function FB(i){const e=i.get("elementBlacklist").split("|");return(i.get("__defaultElementWhitelist")+"|"+i.get("elementWhitelist")+"|"+i.get("formatLine").str+"|"+i.get("formatBrLine").str+"|"+i.get("formatClosureBlock").str+"|"+i.get("formatClosureBrLine").str).replace(/(^\||\|$)/g,"").split("|").filter((s,n,r)=>s&&r.indexOf(s)===n&&!e.includes(s)).join("|")}function zB(i,e){!i||!e||(e!=="auto"&&(i.style.maxWidth=e),i.style.width="max-content",i.style.marginLeft="auto",i.style.marginRight="auto")}function jB(i,e,t,s,n){const r=e==null?void 0:e[i];if(r){const d=typeof r=="function"?r:r.constructor;return{className:r.className||d.className||"",title:n[r.title]||r.title||n[d.title]||d.title||i,command:i,type:r.type||d.type||"",icon:s[r.icon]||r.icon||s[d.icon]||d.icon||""}}const c=ey(t.get("_rtl"),s,n)[i];return c?{className:c[0],title:c[1],command:c[2],type:c[3],icon:c[4]}:null}function ey(i,e,t){return{bold:["",t.bold,"bold","",e.bold],underline:["",t.underline,"underline","",e.underline],italic:["",t.italic,"italic","",e.italic],strike:["",t.strike,"strike","",e.strike],subscript:["",t.subscript,"subscript","",e.subscript],superscript:["",t.superscript,"superscript","",e.superscript],removeFormat:["",t.removeFormat,"removeFormat","",e.remove_format],copyFormat:["",t.copyFormat,"copyFormat","",e.format_paint],indent:["se-icon-flip-rtl",t.indent,"indent","",i?e.outdent:e.indent],outdent:["se-icon-flip-rtl",t.outdent,"outdent","",i?e.indent:e.outdent],fullScreen:["se-code-view-enabled se-component-enabled",t.fullScreen,"fullScreen","",e.expansion],showBlocks:["",t.showBlocks,"showBlocks","",e.show_blocks],codeView:["se-code-view-enabled se-component-enabled",t.codeView,"codeView","",e.code_view],markdownView:["se-code-view-enabled se-component-enabled",t.markdownView,"markdownView","",e.markdown_view],undo:["se-component-enabled",t.undo,"undo","",e.undo],redo:["se-component-enabled",t.redo,"redo","",e.redo],preview:["se-component-enabled",t.preview,"preview","",e.preview],print:["se-component-enabled",t.print,"print","",e.print],copy:["",t.copy,"copy","",e.copy],dir:["",t[i?"dir_ltr":"dir_rtl"],"dir","",e[i?"dir_ltr":"dir_rtl"]],dir_ltr:["",t.dir_ltr,"dir_ltr","",e.dir_ltr],dir_rtl:["",t.dir_rtl,"dir_rtl","",e.dir_rtl],finder:["se-component-enabled",t.find,"finder","",e.finder],save:["se-component-enabled",t.save,"save","",e.save],newDocument:["se-component-enabled",t.newDocument,"newDocument","",e.new_document],selectAll:["se-component-enabled",t.selectAll,"selectAll_full","",e.select_all],pageBreak:["se-component-enabled",t.pageBreak,"pageBreak","",e.page_break],pageUp:["se-component-enabled",t.pageUp,"pageUp","",e.page_up],pageDown:["se-component-enabled",t.pageDown,"pageDown","",e.page_down],pageNavigator:["se-component-enabled","","pageNavigator","input",""]}}function WB(){const i=u.utils.createElement("UL",{class:"se-menu-list"});return{div:u.utils.createElement("DIV",{class:"se-btn-module se-btn-module-border"},i),ul:i}}function UB(i,e,t,s,n,r,l){n||(n="");const c=u.utils.createElement("LI"),d=e||"",h=/^INPUT|FIELD$/i.test(s),f=i==="se-toolbar-separator-vertical"?u.utils.createElement("DIV",{class:i,tabindex:"-1"},null):u.utils.createElement(h?"DIV":"BUTTON",{class:"se-toolbar-btn se-btn se-tooltip"+(i?" "+i:""),"data-command":t,"data-type":s,"aria-label":d.replace(/<span .+<\/span>/,""),tabindex:"-1"});return h||f.setAttribute("type","button"),/^default\./i.test(n)&&(n=l[n.replace(/^default\./i,"")]),/^text\./i.test(n)&&(n=n.replace(/^text\./i,""),f.className+=" se-btn-more-text"),r&&(f.disabled=!0),/^FIELD$/i.test(s)&&u.utils.addClass(c,"se-toolbar-hidden-btn"),d&&(n+=u.utils.createTooltipInner(d)),n&&(f.innerHTML=n),c.appendChild(f),{li:c,button:f}}function ty(i,e,t,s){var r;if(!i)return;const n=e.inner===!1;if(((r=e.inner)==null?void 0:r.nodeType)===1?i.appendChild(e.inner):i.innerHTML=n?"":(e.inner||t[e.icon]||e.icon||'<span class="se-icon-text">!</span>')+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+(s[e.title]||e.title)+"</span></span>",i.setAttribute("aria-label",e.title),e.type&&i.setAttribute("data-type",e.type),e.className&&(i.className+=" "+e.className),e.afterItem&&(u.utils.addClass(e.afterItem,"se-toolbar-btn"),i.parentElement.appendChild(e.afterItem),u.utils.addClass(i,"se-side-btn-a"),u.utils.addClass(e.afterItem,"se-side-btn-after")),e.beforeItem&&(u.utils.addClass(e.beforeItem,"se-toolbar-btn"),i.parentElement.insertBefore(e.beforeItem,i),e.afterItem?(u.utils.addClass(i,"se-side-btn"),u.utils.removeClass(i,"se-side-btn-a")):u.utils.addClass(i,"se-side-btn-b"),u.utils.addClass(e.beforeItem,"se-side-btn-before")),e.replaceButton&&(i.parentElement.appendChild(e.replaceButton),i.style.display="none"),!e.replaceButton&&/^INPUT$/i.test(i.getAttribute("data-type"))){const l=i.querySelector("input");l&&(u.utils.addClass(l,"se-toolbar-btn"),l.setAttribute("data-command",i.getAttribute("data-command")),l.setAttribute("data-type",i.getAttribute("data-type")),i.hasAttribute("disabled")&&(l.disabled=!0))}}function Sg(i,e,t,s,n,r){i=JSON.parse(JSON.stringify(i));const l=ey(t.get("_rtl"),s,n),c={},d=[],h=[];let f=null,p=null,m=null,g=null,y=null;const v=u.utils.createElement("DIV",{class:"se-toolbar-more-layer"}),b=u.utils.createElement("DIV",{class:"se-btn-tray"}),w=u.utils.createElement("DIV",{class:"se-toolbar-separator-vertical"});e:for(let x=0,S,M,T,L,B;x<i.length;x++)if(S=!1,B="",L=i[x],g=WB(),typeof L=="object"){for(let N=0,O;N<L.length;N++){if(p=L[N],O=!1,m=e[p],/^%\d+/.test(p)&&N===0){L[0]=p.replace(/[^\d]/g,""),d.push(L),i.splice(x--,1);continue e}if(typeof m=="function")f=[m.className,m.title,p,m.type,m.innerHTML,m._disabled];else if(typeof m=="object"){const A=m.constructor;f=[m.className||A.className,m.title||A.title,p,m.type||A.type,m.innerHTML||A.innerHTML,m._disabled||A._disabled]}else{if(/^-/.test(p)){B=p.substring(1),g.div.className+=" module-float-"+B;continue}if(/^#/.test(p)){p.substring(1)==="fix"&&(g.ul.className+=" se-menu-dir-fix");continue}if(/^:/.test(p)){O=!0;const A=p.match(/^:([^-]+)-([^-]+)/);T="__se__more_"+x;const V=A[1].trim(),R=A[2].trim();f=["se-btn-more",/^lang\./i.test(V)?n[V.replace(/^lang\./i,"")]:V,T,"MORE",R]}else p==="|"?f=["se-toolbar-separator-vertical","","","separator",""]:(p==="copy"&&!pe.isClipboardSupported&&console.warn("[SUNEDITOR.constructor.warn] Clipboard is not supported in this browser. : [copy] button is not rendered."),f=l[p]);if(!f){if(!m)throw Error(`[SUNEDITOR.create.toolbar.fail] The button name of a plugin that does not exist. [${p}]`);m=typeof m=="object"?m.constructor:m,f=[m.className,m.title,m.key,m.type,m.innerHTML,m._disabled]}}y=UB(f[0],f[1],f[2],f[3],f[4],f[5],s),(S?M:g.ul).appendChild(y.li),m&&(c[p]?c[p].push(y.button):c[p]=[y.button],r&&h.push({button:y.button,plugin:m,key:p})),O&&(S=!0,M=u.utils.createElement("DIV"),M.className="se-more-layer "+T,M.setAttribute("data-ref",T),M.innerHTML='<div class="se-more-form"><ul class="se-menu-list"'+(B?' style="float: '+B+';"':"")+"></ul></div>",v.appendChild(M),M=M.firstElementChild.firstElementChild)}b.appendChild(g.div)}else if(L==="|"){const N=w.cloneNode(!1);b.appendChild(N);continue}else if(/^\/$/.test(L)){const N=u.utils.createElement("DIV",{class:"se-btn-module-enter"});b.appendChild(N)}switch(b.children.length){case 0:b.style.display="none";break;case 1:u.utils.removeClass(b.firstElementChild,"se-btn-module-border");break}v.children.length>0&&b.appendChild(v),d.length>0&&d.unshift(i),zB(b,t.get("toolbar_innerWidth"));const _=u.utils.createElement("DIV",{class:"se-toolbar sun-editor-common"+(t.get("shortcutsHint")?"":" se-shortcut-hide")},b);return t.get("toolbar_hide")&&(_.style.display="none"),{element:_,pluginCallButtons:c,responsiveButtons:d,buttonTray:b,updateButtons:h}}const{_w:an}=pe,qB=2.83465,ZB=96/72,iy=Math.floor(297*qB*ZB);class GB{constructor(e,t){C(this,Nc);C(this,g1);C(this,dn,void 0);C(this,_c,void 0);C(this,Ji,void 0);C(this,kc,void 0);C(this,qr,void 0);C(this,xc,void 0);C(this,ki,void 0);C(this,hi,void 0);C(this,es,void 0);C(this,hn,void 0);C(this,Zr,void 0);C(this,Oi,void 0);C(this,Gr,void 0);C(this,xi,void 0);C(this,Yr,void 0);C(this,Ec,void 0);C(this,Tc,-1);C(this,Kr,-1);C(this,Vi,null);C(this,go,null);C(this,un,0);C(this,ts,0);C(this,Sc,-1);C(this,Mc,0);C(this,Yt,[]);C(this,vo,null);C(this,Bc,0);C(this,fn,0);C(this,Ei,new Map);C(this,Ns,null);const s=e.$;if(k(this,dn,s.store),k(this,_c,s.context),k(this,Ji,o(this,dn).get("isScrollable")),k(this,kc,s.offset),k(this,qr,s.selection),k(this,xc,s.toolbar),this.useHeader=s.options.get("_type_options").includes("header"),this.usePage=s.options.get("_type_options").includes("page"),k(this,ki,t),k(this,hi,t.get("wysiwyg")),k(this,es,t.get("wysiwygFrame")),k(this,hn,t.get("documentTypeInner")),k(this,xi,t.get("documentTypePageMirror")),o(this,xi)){const n=an.getComputedStyle(o(this,xi));k(this,Yr,X.get(n.paddingTop)),k(this,Ec,X.get(n.paddingBottom))}if(this.useHeader){const n=this._getHeaders(),r=k(this,Zr,o(this,hn).querySelector(".se-document-lines-inner"));let l="";for(let c=0,d=n.length,h;c<d;c++)h=n[c],l+=`<div class="se-doc-item se-doc-h${X.get(h.nodeName)}" title="${h.textContent}">${h.textContent}</div>`;r.innerHTML=l,k(this,Vi,r.querySelectorAll("div")),s.eventManager.addEvent(r,"click",E(this,g1,i3).bind(this,o(this,hi)))}this.usePage&&(k(this,Oi,t.get("documentTypePage")),k(this,Gr,s.plugins.pageNavigator))}reHeader(){if(!this.useHeader)return;const e=this._getHeaders(),t=o(this,Zr),s=o(this,Vi);for(let n=0,r=e.length,l,c,d;n<r;n++)if(l=e[n],c=`se-doc-h${X.get(l.nodeName)}`,d=s[n],n<s.length)(!d.classList.contains(c)||d.textContent!==l.textContent)&&(d.textContent=d.title=l.textContent,d.className=`se-doc-item ${c}`);else{const h=document.createElement("div");h.className=`se-doc-item ${c}`,h.textContent=h.title=l.textContent,t.appendChild(h)}if(s.length>e.length)for(let n=e.length;n<s.length;n++)t.removeChild(s[n]);k(this,Vi,t.querySelectorAll("div"))}async rePage(e){o(this,Oi)&&(o(this,Ns)&&an.clearTimeout(o(this,Ns)),k(this,Ns,an.setTimeout(async()=>{await u.utils.waitForMediaLoad(o(this,xi),1500);const t=o(this,hi).scrollHeight>o(this,xi).scrollHeight?o(this,hi).scrollHeight-o(this,xi).scrollHeight:0,s=o(this,xi).scrollHeight+t,n=o(this,hi).querySelectorAll(".se-page-break");if(!e&&o(this,Sc)===s&&o(this,Mc)===n.length)return;k(this,Sc,s),k(this,Mc,n.length);let r=0;const l=[];if(n.length>0){r=n[0].offsetHeight;for(let y=0;y<n.length;y++)l.push({top:n[y].offsetTop,end:n[y].offsetTop+r/2})}const c=o(this,Ji).call(this,o(this,ki))?this._getWWScrollTop():0,d=[{number:0,top:0}];for(let y=0;y<l.length;y++)d.push({number:0,top:l[y].top+r/2,isBreak:!0});k(this,fn,0);const h=o(this,hi).children,f=o(this,xi).children;this._initializeCache(f);const p=[0,...l.map(y=>y.end)],m=[...l.map(y=>y.top),s];for(let y=0;y<p.length;y++){const v=p[y],b=m[y];let w=v,_=y===0;for(;w+=iy+(_?o(this,Yr)+o(this,Ec):o(this,Yr)),_=!1,!(w>=b);)if(!d.some(x=>Math.abs(x.top-w)<3)){const x=this._calcPageBreakTop(w,h,f,d);if(x===null)break;d.push({number:0,top:x})}}if(d.length===0){k(this,vo,null),k(this,un,1),this._displayCurrentPage();return}d.sort((y,v)=>y.top-v.top),o(this,Oi).innerHTML="",k(this,Yt,[]);const g=o(this,es).offsetWidth+1;for(let y=0,v;y<d.length&&(v=d[y].top,!(s<v));y++){const b=u.utils.createElement("DIV",{style:`top:${v-c}px`,innerHTML:String(y+1)},`<div class="se-document-page-line" style="width: ${g}px;"></div>${y+1}`);o(this,Oi).appendChild(b),o(this,Yt).push(b)}k(this,vo,o(this,Oi).querySelectorAll(".se-document-page-line")),k(this,un,o(this,Yt).length),E(this,Nc,m0).call(this),this._displayCurrentPage()},400)))}_getDisplayPage(){return o(this,Ji).call(this,o(this,ki))?o(this,ki).get("wysiwyg"):an}_calcPageBreakTop(e,t,s,n){const{ci:r}=this._getElementAtPosition(e,s,n),l=s[r],c=t[r];if(!l||!c)return null;const d=c.offsetTop-l.offsetTop,h=c.offsetHeight-l.offsetHeight,f=e+d+h/2;return Math.round(f)}_initializeCache(e){o(this,Ei).clear();for(let t=0,s=e.length;t<s;t++){const n=e[t],r=n.offsetTop,l=n.offsetHeight,c=r+l;o(this,Ei).set(t,{top:r,height:l,bottom:c})}}_getElementAtPosition(e,t,s){let n=o(this,fn),r=t.length-1;if(n>0){const d=o(this,Ei).get(n);d&&e<d.top&&(n=0)}for(;n<=r;){const d=Math.floor((n+r)/2),{top:h,height:f,bottom:p}=o(this,Ei).get(d);if(e>=h&&e<=p){let m=d;if(s&&u.utils.hasClass(t[m],"se-page-break")){m=m+1<t.length?m+1:Math.max(0,m-1);const g=o(this,Ei).get(m);return k(this,fn,m),{ci:m,cm:e-g.bottom,ch:g.height}}return k(this,fn,m),{ci:m,cm:e-p,ch:f}}e<h?r=d-1:n=d+1}let l=t[n]?n:r;s&&u.utils.hasClass(t[l],"se-page-break")&&(l=l+1<t.length?l+1:Math.max(0,l-1)),k(this,fn,l);const c=o(this,Ei).get(l);return{ci:l,cm:e-c.bottom,ch:c.height}}resizePage(){const e=o(this,es).offsetWidth+1,t=o(this,es).offsetHeight+1;let s=!1;if(e===o(this,Tc)&&(s=t===o(this,Kr)))return;e>800?u.utils.removeClass(o(this,hn),"se-document-responsible"):u.utils.addClass(o(this,hn),"se-document-responsible"),k(this,Tc,e),k(this,Kr,t);const n=o(this,vo);for(let r=0,l=n==null?void 0:n.length;r<l;r++)n[r].style.width=`${e}px`;s||this.rePage(!0),this._displayCurrentPage()}scrollPage(){const e=o(this,Bc),t=this._getWWScrollTop();if(e===t)return;const s=o(this,Yt),n=t-e;for(let r=0,l=s.length;r<l;r++)s[r].style.top=`${X.get(s[r].style.top)-n}px`;E(this,Nc,m0).call(this),k(this,Bc,t),this._displayCurrentPage()}scrollWindow(){o(this,Ji).call(this,o(this,ki))||this._displayCurrentPage()}getCurrentPageNumber(){if(o(this,un)<=1)return 1;let e=0;if(o(this,Ji).call(this,o(this,ki)))e=o(this,Kr)/2;else{const s=this._getGlobalTop();if(e=an.scrollY-s+iy/2,e<=0)return 1}const t=o(this,Yt);for(let s=0,n=t.length;s<n;s++)if(t[s].offsetTop>=e)return k(this,ts,s);return k(this,ts,o(this,un))}pageUp(){const e=o(this,ts)-1<=1?1:o(this,ts)-1;this._movePage(e,!1)}pageDown(){const e=o(this,ts)+1>o(this,Yt).length?o(this,Yt).length:o(this,ts)+1;this._movePage(e,!1)}pageGo(e){e<1?e=1:e>o(this,Yt).length&&(e=o(this,Yt).length),this._movePage(e,!0)}on(e){if(!this.useHeader||(this._is(e)||(e=this._findLinesHeader(e)),!e))return;const t=this._findItem(e);t&&(u.utils.removeClass(o(this,Vi),"active"),u.utils.addClass(t,"active"))}onChangeText(e){if(!this.useHeader||!this._is(e))return;const t=this._findItem(e);t&&(t.textContent=e.textContent)}_displayCurrentPage(){var t;const e=this.getCurrentPageNumber();(t=o(this,Gr))==null||t.display(e,o(this,un))}_getWWScrollTop(){const e=this._getDisplayPage();return e.scrollTop||e.scrollY||0}_movePage(e,t){const s=this._getGlobalTop(),n=o(this,Ji).call(this,o(this,ki)),r=xe.nodeListToArray(o(this,hi).children),l=o(this,Oi).offsetTop+X.get(o(this,Yt)[e-1].style.top)+(n?this._getWWScrollTop():0);for(let c=0,d=r.length,h;c<d;c++)if(h=r[c],h.offsetTop>=l){t||o(this,qr).setRange(h,0,h,0);const f=c===0&&n?0:h.offsetTop-o(this,Oi).offsetTop-h.offsetHeight+s;this._applyPageScroll(f,()=>{o(this,xc).isSticky&&!o(this,dn).mode.isBottom&&this._getDisplayPage().scrollTo({top:f-o(this,_c).get("toolbar_main").offsetHeight,behavior:"smooth"})}),k(this,ts,e);break}}_applyPageScroll(e,t){const s=this._getDisplayPage();s.scrollTo({top:e,behavior:"smooth"});const n=()=>{Math.abs((s.scrollY??s.scrollTop)-e)<1?t():an.requestAnimationFrame(n)};an.requestAnimationFrame(n)}_getGlobalTop(){return o(this,Ji).call(this,o(this,ki))?0:o(this,kc).getGlobal(o(this,es)).top}_findItem(e){const t=o(this,go),s=Array.prototype.indexOf.call(t,e);return s!==-1&&o(this,Vi)[s]?o(this,Vi)[s]:null}_findLinesHeader(e){for(;e&&e!==o(this,hi);){if(this._is(e))return e;e=e.previousElementSibling||e.parentElement}return null}_is(e){return/^h[1-6]$/i.test(e==null?void 0:e.nodeName)}_getHeaders(){return k(this,go,o(this,hi).querySelectorAll("h1, h2, h3, h4, h5, h6"))}_destroy(){o(this,Ns)&&(an.clearTimeout(o(this,Ns)),k(this,Ns,null)),o(this,Ei)&&(o(this,Ei).clear(),k(this,Ei,null)),k(this,ki,null),k(this,hi,null),k(this,es,null),k(this,hn,null),k(this,Zr,null),k(this,Oi,null),k(this,Yt,null),k(this,vo,null),k(this,Vi,null),k(this,go,null),k(this,Gr,null),k(this,xi,null)}}dn=new WeakMap,_c=new WeakMap,Ji=new WeakMap,kc=new WeakMap,qr=new WeakMap,xc=new WeakMap,ki=new WeakMap,hi=new WeakMap,es=new WeakMap,hn=new WeakMap,Zr=new WeakMap,Oi=new WeakMap,Gr=new WeakMap,xi=new WeakMap,Yr=new WeakMap,Ec=new WeakMap,Tc=new WeakMap,Kr=new WeakMap,Vi=new WeakMap,go=new WeakMap,un=new WeakMap,ts=new WeakMap,Sc=new WeakMap,Mc=new WeakMap,Yt=new WeakMap,vo=new WeakMap,Bc=new WeakMap,fn=new WeakMap,Ei=new WeakMap,Ns=new WeakMap,Nc=new WeakSet,m0=function(){const e=o(this,Yt);if(!(e!=null&&e.length))return;const t=o(this,es).offsetHeight;for(let s=0,n=e.length;s<n;s++){const r=X.get(e[s].style.top);e[s].style.display=r<0||r>t?"none":""}},g1=new WeakSet,i3=function(e,t){t.preventDefault();try{o(this,dn).set("_preventBlur",!0);const s=u.query.getEventTarget(t);if(u.utils.hasClass(s,"se-doc-item")){const n=Array.prototype.indexOf.call(o(this,Vi),s);if(n===-1)return;const r=o(this,go)[n];r&&o(this,qr).scrollTo(r)}}finally{o(this,dn).set("_preventBlur",!1)}};const YB=GB;class KB{constructor(e){C(this,v1);C(this,pn,void 0);C(this,Ls,new Map);const t=e.options,s=t.get("mode"),n=t.get("_subMode");this._editorInitFinished=!1,this.mode={isClassic:/classic/i.test(s),isInline:/inline/i.test(s),isBalloon:/balloon/i.test(s),isBalloonAlways:/balloon-always/i.test(s),isSubBalloon:/balloon/i.test(n),isSubBalloonAlways:/balloon-always/i.test(n),isBottom:!!t.get("_toolbar_bottom")},k(this,pn,{rootKey:e.rootId,hasFocus:!1,tabSize:4,indentSize:25,codeIndentSize:2,currentNodes:[],currentNodesMap:[],initViewportHeight:0,currentViewportHeight:0,controlActive:!1,_lastSelectionNode:null,isScrollable:r=>{const l=r.get("options"),c=l.get("height"),d=l.get("maxHeight");return c!=="auto"?!0:d?r.get("wysiwyg").offsetHeight>=X.get(d):!1},_range:null,_mousedown:!1,_preventBlur:!1,_preventFocus:!1,_canUseBeforeInput:!0})}get(e){return o(this,pn)[e]}set(e,t){const s=o(this,pn)[e];o(this,pn)[e]=t,E(this,v1,s3).call(this,e,t,s)}subscribe(e,t){return o(this,Ls).has(e)||o(this,Ls).set(e,new Set),o(this,Ls).get(e).add(t),()=>o(this,Ls).get(e).delete(t)}_reset(){}_destroy(){o(this,Ls).clear(),k(this,pn,null)}}pn=new WeakMap,Ls=new WeakMap,v1=new WeakSet,s3=function(e,t,s){const n=o(this,Ls).get(e);if(n)for(const r of n)try{r(t,s)}catch(l){console.error(`[Store] Subscriber error for "${e}":`,l)}};const XB=KB,{_w:sy,_d:QB}=pe;class JB{constructor(e){C(this,y1);C(this,b1);C(this,C1);C(this,yo,void 0);C(this,Xr,void 0);C(this,bo,void 0);k(this,yo,e.frameRoots),k(this,Xr,E(this,b1,o3).call(this,e.context)),k(this,bo,E(this,C1,r3).call(this,{value:new Map})),this.rootKeys=e.rootKeys,this.carrierWrapper=e.carrierWrapper,this.icons=e.icons,this.lang=e.lang,this.shadowRoot=null}get frameRoots(){return o(this,yo)}get context(){return o(this,Xr)}get frameContext(){return o(this,bo)}init(){this.applyToRoots(e=>{E(this,y1,n3).call(this,e)})}reset(e){o(this,bo).reset(e)}applyToRoots(e){o(this,yo).forEach(e)}_destroy(){this.applyToRoots(e=>{const t=e.get("documentType");t&&t._destroy(),u.utils.removeItem(e.get("topArea")),e.get("options").clear(),e.clear()}),o(this,Xr).clear(),o(this,bo).clear(),o(this,yo).clear(),u.utils.removeItem(this.carrierWrapper),this.rootKeys=null,this.carrierWrapper=null,this.icons=null,this.lang=null,this.shadowRoot=null}}yo=new WeakMap,Xr=new WeakMap,bo=new WeakMap,y1=new WeakSet,n3=function(e){const t=e.get("options");if(e.set("wwComputedStyle",sy.getComputedStyle(e.get("wysiwyg"))),!t.get("iframe")&&typeof ShadowRoot=="function"){let n=e.get("wysiwygFrame");for(;n;){if(n.shadowRoot){this.shadowRoot=n.shadowRoot;break}else if(n instanceof ShadowRoot){this.shadowRoot=n;break}n=n.parentNode}}t.get("iframe")?(e.set("_ww",e.get("wysiwygFrame").contentWindow),e.set("_wd",e.get("wysiwygFrame").contentDocument),e.set("wysiwyg",e.get("_wd").body),t.get("_defaultStyles").editor&&(e.get("wysiwyg").style.cssText=t.get("_defaultStyles").editor),t.get("height")==="auto"&&e.set("_iframeAuto",e.get("_wd").body)):(e.set("_ww",sy),e.set("_wd",QB));const s=t.get("editableFrameAttributes");for(const n in s)e.get("wysiwyg").setAttribute(n,s[n])},b1=new WeakSet,o3=function(e){const t=e;return{get(s){return t.get(s)},set(s,n){return t.set(s,n)},has(s){return t.has(s)},delete(s){return t.delete(s)},getAll(){return Object.fromEntries(t.entries())},get size(){return t.size},clear(){t.clear()}}},C1=new WeakSet,r3=function(e){let t=e.value;return{get(s){return t.get(s)},set(s,n){return t.set(s,n)},has(s){return t.has(s)},delete(s){return t.delete(s)},getAll(){return Object.fromEntries(t.entries())},reset(s){t=e.value=s},get size(){return t.size},clear(){t.clear()}}};class eN{constructor(e,t,s){C(this,w1);C(this,_1);C(this,Lc);C(this,k1);C(this,x1);C(this,Qr,void 0);C(this,Co,void 0);C(this,wo,void 0);C(this,_o,void 0);k(this,Qr,e),k(this,Co,s),k(this,wo,E(this,k1,c3).call(this,{value:t.options})),k(this,_o,E(this,x1,d3).call(this,{value:new Map}))}get options(){return o(this,wo)}get frameOptions(){return o(this,_o)}reset(e){const{$:t}=o(this,Qr),s=t.frameRoots,n=t.context,r=t.eventManager,l=t.format,c=t.html,d=t.char,h=t.viewer,f=t.plugins,p=t.history,m=t.ui,g=o(this,Qr)._eventOrchestrator;h.codeView(!1),h.showBlocks(!1);const y=new Map,v=[],b=new Map,w={};for(const N in e)Eg[N]!==void 0&&(w[N]=e[N],delete e[N]);for(const N of s.keys())e[N||""]={...w,...e[N||""]};const _=Object.keys(e);if(E(this,Lc,g0).call(this,_,f,""),_.length===0)return;s.size===1&&_.unshift(null);const x=[o(this,Co),e].reduce((N,O)=>{for(const A in O)s.has(A||null)?E(this,w1,a3).call(this,A,O,s,y,b,v):N[A]=O[A];return N},{}),S=o(this,wo),M=Qv(x,v,f),T=M.o,L=M.frameMap;for(let N=0,O=_.length,A;N<O;N++){if(A=_[N]||null,b.has(A)){const V=y.get(A),R=s.get(A),$=R.get("options"),P=L.get(A);for(const[I,G]of P.entries())$.set(I,G);if(V.has("statusbar-changed")){if(u.utils.removeItem(R.get("statusbar")),P.get("statusbar")){const I=Jv(P,null).statusbar;R.get("container").appendChild(I),xg(I,R),g.__addStatusbarEvent(R,P)}else r.removeEvent($.get("__statusbarEvent")),P.set("__statusbarEvent",null),xg(null,R);R.get("statusbar")&&d.display(R)}if(V.has("iframe_attributes")){const I=R.get("wysiwygFrame"),G=$.get("iframe_attributes"),j=P.get("iframe_attributes");for(const K in G)I.removeAttribute(K);for(const K in j)I.setAttribute(K,j[K])}if(V.has("iframe_cssFileName")){const I=R.get("_wd").head,G=I.getElementsByTagName("link");for(;G[0];)I.removeChild(G[0]);const K=new DOMParser().parseFromString(xe._setIframeStyleLinks(P.get("iframe_cssFileName")),"text/html").head.children,se=I.querySelector("style");for(;K[0];)I.insertBefore(K[0],se)}if(V.has("placeholder")&&(R.get("placeholder").textContent=P.get("placeholder")),V.has("placeholder_line")){const I=P.get("placeholder_line");R.set("placeholder_line",I);const G=R.get("wysiwyg").querySelector(".se-placeholder-line");if(G){const j=m.resolveLinePlaceholder(G,I);j?G.setAttribute("data-se-placeholder-line",j):(G.classList.remove("se-placeholder-line"),G.removeAttribute("data-se-placeholder-line"),G.getAttribute("class")||G.removeAttribute("class"))}}m.setEditorStyle(P.get("editorStyle"),R);const W=R.get("wysiwyg"),Z=$.get("editableFrameAttributes"),F=P.get("editableFrameAttributes");for(const I in Z)W.removeAttribute(I);for(const I in F)W.setAttribute(I,F[I]);continue}switch(A){case"theme":{m.setTheme(T.get("theme"));break}case"events":{const V=T.get("events");for(const R in V)r.events[R]=V[R];break}case"autoStyleify":{c.__resetAutoStyleify(T.get("autoStyleify"));break}case"textDirection":{m.setDir(T.get("textDirection")==="rtl"?"rtl":"ltr");break}case"historyStackDelayTime":{p.resetDelayTime(T.get("historyStackDelayTime"));break}case"defaultLineBreakFormat":l.__resetBrLineBreak(T.get("defaultLineBreakFormat"))}}S.setMany(T),k(this,Co,x);const B=n.get("toolbar_main");/inline|balloon/i.test(S.get("mode"))&&_.includes("toolbar_width")&&(B.style.width=S.get("toolbar_width")),S.get("toolbar_hide")?B.style.display="none":B.style.display="",S.get("shortcutsHint")?u.utils.removeClass(B,"se-shortcut-hide"):u.utils.addClass(B,"se-shortcut-hide")}resetFrame(e){o(this,_o).reset(e)}_destroy(){k(this,Co,null),o(this,wo).clear(),o(this,_o).clear()}}Qr=new WeakMap,Co=new WeakMap,wo=new WeakMap,_o=new WeakMap,w1=new WeakSet,a3=function(e,t,s,n,r,l){const c=t[e],d=Object.keys(c);if(E(this,Lc,g0).call(this,d,null,e+"."),d.length===0)return!1;const h=e||null;n.set(h,new Map);const f=s.get(h).get("options").get("_origin"),p={},m=Object.prototype.hasOwnProperty;for(const y in c){if(!m.call(Eg,y))continue;const v=c[y];!d.includes(y)||f[y]===v||(n.get(h).set(E(this,_1,l3).call(this,y),!0),p[y]=v)}const g={...f,...p};r.set(h,new Map(Object.entries(g))),l.push({key:h,options:g})},_1=new WeakSet,l3=function(e){return/^statusbar|^charCounter|^wordCounter/.test(e)?"statusbar-changed":e},Lc=new WeakSet,g0=function(e,t,s){for(let n=0,r=e.length,l;n<r;n++)l=e[n],($B[l]==="fixed"||Eg[l]==="fixed"||t&&t[l])&&(console.warn(`[SUNEDITOR.warn.resetOptions] The "[${s+l}]" option cannot be changed after the editor is created.`),e.splice(n--,1),r--)},k1=new WeakSet,c3=function(e){let t=e.value;return{get(s){return t.get(s)},set(s,n){return t.set(s,n)},has(s){return t.has(s)},getAll(){return Object.fromEntries(t.entries())},setMany(s){s.forEach((n,r)=>t.set(r,n))},reset(s){t=e.value=s},size(){return t.size},clear(){t.clear()},entries(){return t.entries()},keys(){return t.keys()},values(){return t.values()},forEach(s){t.forEach(s)}}},x1=new WeakSet,d3=function(e){let t=e.value;return{get(s){return t.get(s)},set(s,n){return t.set(s,n)},has(s){return t.has(s)},getAll(){return Object.fromEntries(t.entries())},setMany(s){s.forEach((n,r)=>t.set(r,n))},reset(s){t=e.value=s},size(){return t.size},clear(){t.clear()},entries(){return t.entries()},keys(){return t.keys()},values(){return t.values()},forEach(s){t.forEach(s)}}};class tN{constructor(e){C(this,ko);C(this,Ac,void 0);k(this,Ac,e)}isNode(e){return e&&typeof e.nodeType=="number"||e instanceof E(this,ko,qh).call(this).Node}isElement(e){return e&&e.nodeType===1||e instanceof E(this,ko,qh).call(this).Element}isRange(e){var t;return e&&((t=e.constructor)==null?void 0:t.name)==="Range"||e instanceof E(this,ko,qh).call(this).Range}isSelection(e){var t;return e&&((t=e.constructor)==null?void 0:t.name)==="Selection"||e instanceof E(this,ko,qh).call(this).Selection}}Ac=new WeakMap,ko=new WeakSet,qh=function(){return o(this,Ac).get("_ww")};const iN=tN,Jt=new Map([["__figureInst",null],["__dragInst",null],["__dragHandler",null],["__dragContainer",null],["__dragCover",null],["__dragMove",null],["__overInfo",null]]),ve=Jt,{_w:ln}=pe,Mg=38;class sN{constructor(e,t){C(this,xo);C(this,Dc);C(this,E1);C(this,ns);C(this,Pc);C(this,Eo);C(this,Hc);C(this,T1);C(this,S1);C(this,na);C(this,oa);C(this,Fc);C(this,M1);C(this,zc);C(this,B1);C(this,jc);C(this,N1);C(this,L1);C(this,A1);C(this,$1);C(this,O1);C(this,V1);C(this,R1);C(this,Ae,void 0);C(this,$c,void 0);C(this,Oc,void 0);C(this,is,void 0);C(this,mn,void 0);C(this,gn,void 0);C(this,As,null);C(this,Vc,null);C(this,Rc,null);C(this,Jr,null);C(this,ea,null);C(this,ta,null);C(this,vn,null);C(this,ia,null);C(this,ss,null);C(this,sa,null);C(this,Ic,null);C(this,Et,new Map);C(this,pt,-1);C(this,Ti,-1);C(this,$s,!1);C(this,yn,null);k(this,Ae,e);const s=t.position.split("-");this.form=null,this.items=[],this.menus=null,this.menuLen=0,this.index=-1,this.item=null,this.isOpen=!1,this.checkList=!!t.checkList,this.position=s[0],this.subPosition=s[1],this.splitNum=t.splitNum||0,this.horizontal=!!this.splitNum,this.openMethod=t.openMethod,this.closeMethod=t.closeMethod,this.subEscMethod=t.subEscMethod||null,this.maxHeight=t.maxHeight||"",this.minWidth=t.minWidth||"",k(this,Rc,t.keydownTarget||null),k(this,$c,/^(left|right)$/.test(this.position)?this.position==="left"?"right":"left":this.position),k(this,Oc,/^(left|right)$/.test(this.subPosition)?this.subPosition==="left"?"right":"left":this.subPosition),k(this,is,t.dir==="ltr"?!1:t.dir==="rtl"?!0:null),k(this,mn,{mousedown:E(this,L1,v3).bind(this),mousemove:E(this,A1,y3).bind(this),click:E(this,$1,b3).bind(this),keydown:E(this,N1,g3).bind(this)}),k(this,gn,{keydown:E(this,O1,C3).bind(this),mousedown:E(this,V1,w3).bind(this),click:E(this,R1,_3).bind(this),submenuReposition:E(this,E1,h3).bind(this)})}create(e,t){var n,r;this.form.firstElementChild.innerHTML="";for(const[,l]of o(this,Et))(n=l.element)==null||n.remove();o(this,Et).clear(),t||(t=e);let s="";for(let l=0,c=t.length;l<c;l++){l>0&&l%this.splitNum===0&&(E(this,Hc,b0).call(this,s),s="");const d=e[l],h=typeof t[l]=="string"?t[l]:t[l].outerHTML,f=d&&typeof d=="object"?d:{};if(((r=f.children)==null?void 0:r.length)>0){let m="";const g=f.childMenus||f.children;for(let v=0;v<g.length;v++)m+=`<li class="se-select-item" data-parent-index="${l}" data-child-index="${v}">${typeof g[v]=="string"?g[v]:g[v].outerHTML}</li>`;s+=`<li class="se-select-item se-has-submenu" data-index="${l}">${h}<span class="se-submenu-arrow">${o(this,Ae).icons.menu_arrow_right}</span></li>`;const y=u.utils.createElement("DIV",{class:"se-select-submenu",popover:"manual","data-parent-index":String(l)},`<ul class="se-list-basic se-list-checked">${m}</ul>`);o(this,Et).set(l,{items:f.children,menus:g,element:y})}else s+=`<li class="se-select-item" data-index="${l}">${h}</li>`}E(this,Hc,b0).call(this,s);for(const[,l]of o(this,Et))this.form.appendChild(l.element);this.items=e,this.menus=Array.from(this.form.querySelectorAll("li[data-index]")),this.menuLen=this.menus.length}on(e,t,s={}){k(this,As,e),k(this,Vc,o(this,Rc)||(u.check.isInputElement(e)?e:o(this,Ae).frameContext.get("_ww"))),k(this,Jr,t);let n="";this.maxHeight&&(n+="max-height:"+this.maxHeight+";overflow-y:auto;"),this.minWidth&&(n+="min-width:"+this.minWidth+";"),this.form=u.utils.createElement("DIV",{class:"se-select-menu"+(o(this,is)===!0?" se-rtl":"")+(s.class?" "+s.class:""),style:s.style||""},'<div class="se-list-inner"'+(n?' style="'+n+'"':"")+"></div>"),e.parentNode.insertBefore(this.form,e)}open(e,t){var l;o(this,Ae).ui.selectMenuOn=!0,(l=this.openMethod)==null||l.call(this),E(this,M1,p3).call(this),E(this,B1,m3).call(this);const s=e?e.split("-"):[],n=s[0]||(o(this,is)!==null&&o(this,is)!==o(this,Ae).options.get("_rtl")?o(this,$c):this.position),r=s[1]||(o(this,is)!==null&&o(this,is)!==o(this,Ae).options.get("_rtl")?o(this,Oc):this.subPosition);k(this,sa,n),k(this,Ic,r),E(this,oa,Tm).call(this,n,r,t),this.isOpen=!0}reposition(){!this.isOpen||!o(this,sa)||E(this,oa,Tm).call(this,o(this,sa),o(this,Ic))}setHidden(e){this.isOpen&&(e?(E(this,ns,Xn).call(this),this.form.style.display="none"):this.reposition())}close(){var e,t;o(this,Ae).ui.selectMenuOn=!1,u.utils.removeClass(o(this,As),"on"),E(this,T1,u3).call(this),(e=this.form)==null||e.removeAttribute("style"),this.isOpen=!1,(t=this.closeMethod)==null||t.call(this)}getItem(e){return this.items[e]}setItem(e){E(this,na,Em).call(this,e)}hasOpenSubmenu(){return o(this,pt)>-1}}Ae=new WeakMap,$c=new WeakMap,Oc=new WeakMap,is=new WeakMap,mn=new WeakMap,gn=new WeakMap,As=new WeakMap,Vc=new WeakMap,Rc=new WeakMap,Jr=new WeakMap,ea=new WeakMap,ta=new WeakMap,vn=new WeakMap,ia=new WeakMap,ss=new WeakMap,sa=new WeakMap,Ic=new WeakMap,Et=new WeakMap,pt=new WeakMap,Ti=new WeakMap,$s=new WeakMap,yn=new WeakMap,xo=new WeakSet,Zh=function(e){if(o(this,pt)===e)return;E(this,ns,Xn).call(this);const t=this.menus[e];if(!t||!u.utils.hasClass(t,"se-has-submenu"))return;u.utils.addClass(t,"se-submenu-open"),k(this,pt,e),k(this,Ti,-1),k(this,$s,!1);const s=o(this,Et).get(e),n=s==null?void 0:s.element;if(n){const r=typeof n.showPopover=="function";n.style.visibility="hidden",r?n.matches(":popover-open")||n.showPopover():n.style.display="block",E(this,Dc,v0).call(this,t,n,r),n.style.visibility="",k(this,ia,o(this,Ae).eventManager.addGlobalEvent("scroll",o(this,gn).submenuReposition,!0))}},Dc=new WeakSet,v0=function(e,t,s){const n=s?{top:0,left:0}:this.form.getBoundingClientRect(),r=e.getBoundingClientRect(),l=t.offsetWidth,c=t.offsetHeight,d=ln.innerWidth,h=ln.innerHeight,f=r.right,p=r.left-l,m=Math.max(0,f+l-d),g=Math.max(0,-p),y=o(this,is)===!0;let v;y?g===0?v=p:m===0?v=f:g<=m?v=p+g:v=f-m:m===0?v=f:g===0?v=p:m<=g?v=f-m:v=p+g,t.style.left=v-n.left+"px",t.style.right="";const b=r.top,w=r.bottom-c,_=Math.max(0,b+c-h),x=Math.max(0,-w);let S;_===0?S=b:x===0?S=w:_<=x?S=b-_:S=w+x,t.style.top=S-n.top+"px"},E1=new WeakSet,h3=function(){if(o(this,pt)<0)return;const e=o(this,Et).get(o(this,pt)),t=e==null?void 0:e.element,s=this.menus[o(this,pt)];!t||!s||E(this,Dc,v0).call(this,s,t,typeof t.showPopover=="function")},ns=new WeakSet,Xn=function(){if(o(this,yn)&&(ln.clearTimeout(o(this,yn)),k(this,yn,null)),o(this,ia)&&k(this,ia,o(this,Ae).eventManager.removeGlobalEvent(o(this,ia))),o(this,pt)>-1){const e=this.menus[o(this,pt)];e&&u.utils.removeClass(e,"se-submenu-open");const t=o(this,Et).get(o(this,pt));t!=null&&t.element&&(typeof t.element.hidePopover=="function"?t.element.matches(":popover-open")&&t.element.hidePopover():t.element.style.display="",u.utils.removeClass(t.element.querySelectorAll(".se-select-item"),"se-select-cursor"))}k(this,pt,-1),k(this,Ti,-1),k(this,$s,!1)},Pc=new WeakSet,y0=function(e,t){var n;const s=o(this,Et).get(e);if(s){if(this.checkList){const r=(n=s.element)==null?void 0:n.querySelectorAll(".se-select-item")[t];r&&u.utils.toggleClass(r,"se-checked")}o(this,Jr).call(this,s.items[t])}},Eo=new WeakSet,Gh=function(e){const t=o(this,Et).get(o(this,pt));if(!(t!=null&&t.element))return;const s=t.element.querySelectorAll(".se-select-item"),n=s.length;if(!n)return;e=o(this,Ti)+e;const r=k(this,Ti,e>=n?0:e<0?n-1:e);u.utils.removeClass(this.form,"se-select-menu-mouse-move");for(let l=0;l<n;l++)l===r?u.utils.addClass(s[l],"se-select-cursor"):u.utils.removeClass(s[l],"se-select-cursor")},Hc=new WeakSet,b0=function(e){this.form.firstElementChild.innerHTML+=`<ul class="se-list-basic se-list-checked${this.horizontal?" se-list-horizontal":""}">${e}</ul>`},T1=new WeakSet,u3=function(){E(this,zc,w0).call(this),E(this,jc,_0).call(this),E(this,ns,Xn).call(this),this.index=-1,this.item=null,this._onItem&&(u.utils.removeClass(this._onItem,"se-select-on"),this._onItem=null)},S1=new WeakSet,f3=function(e){e=this.index+e;const t=this.menuLen,s=this.index=e>=t?0:e<0?t-1:e;E(this,na,Em).call(this,s)},na=new WeakSet,Em=function(e){u.utils.removeClass(this.form,"se-select-menu-mouse-move");const t=this.menuLen;for(let s=0;s<t;s++)s===e?u.utils.addClass(this.menus[s],"se-select-cursor"):u.utils.removeClass(this.menus[s],"se-select-cursor");this.index=e,this.item=this.items[e]},oa=new WeakSet,Tm=function(e,t,s,n){const r=e,l=this.form,c=o(this,As);l.style.visibility="hidden",l.style.display="block",u.utils.removeClass(l,"se-select-menu-scroll"),u.utils.addClass(c,"on");const d=l.offsetWidth,h=c.offsetWidth,f=c.offsetLeft;let p=!1,m=0,g=0;e==="left"?(m=f-d-1,e=t,p=!0):e==="right"&&(m=f+h+1,e=t,p=!0);const y=o(this,Ae).offset.get(c),v=c.offsetTop,b=y.top,w=c.offsetHeight,_=u.utils.getClientSize().h-(b-ln.scrollY+w),x=p?w:0;let S=1e4;switch(e){case"middle":{let L=l.offsetHeight;const B=w/2;g=v-L/2+B,b<L/2&&(g+=L/2-b-B+4,l.style.top=g+"px");let N=o(this,Ae).offset.getGlobal(l).top;const O=L-(b-N)-_-w;O>0&&(g-=O+4,l.style.top=g+"px"),N=o(this,Ae).offset.getGlobal(l).top,N<0&&(L+=N-4,g-=N-4),l.style.height=L+"px";break}case"top":if(b<l.offsetHeight-x){if(!n){S=0;break}S=b-4+x,S>=Mg&&(l.style.height=S+"px")}g=v-l.offsetHeight+x;break;case"bottom":if(_<l.offsetHeight+x){if(!n){S=0;break}S=_-4+x,S>=Mg&&(l.style.height=S+"px")}g=v+(p?0:w);break}if(S<Mg&&!n&&e!=="middle"){E(this,oa,Tm).call(this,e==="top"?"bottom":"top",t,s,!0);return}if(!p)switch(t){case"center":m=f+h/2-d/2;break;case"left":m=f;break;case"right":m=f-(d-h);break}l.style.left=m+"px";let M=o(this,Ae).offset.getGlobal(l).fixedLeft,T=0;switch(p+"-"+(p?r:t)){case"true-left":M<0&&(m=f+h+1);break;case"true-right":M+d>ln.innerWidth&&(m=f-d-1);break;case"false-center":T=ln.innerWidth-(M+d),T<0&&(m+=T-4),l.style.left=m+"px",M=o(this,Ae).offset.getGlobal(l).fixedLeft,M<0&&(m-=M-4);break;case"false-left":T=ln.innerWidth-(M+d),T<0&&(m+=T-4);break;case"false-right":M<0&&(m-=M-4);break}if(s){const L=l.firstElementChild.querySelector(s);L&&(this._onItem=L,u.utils.addClass(L,"se-select-on"))}l.style.left=m+"px",l.style.top=g+"px",l.style.visibility=""},Fc=new WeakSet,C0=function(e){this.checkList&&u.utils.toggleClass(this.menus[e],"se-checked"),o(this,Jr).call(this,this.getItem(e))},M1=new WeakSet,p3=function(){E(this,zc,w0).call(this),k(this,ss,{mousedown:o(this,Ae).eventManager.addEvent(this.form,"mousedown",o(this,mn).mousedown),mousemove:o(this,Ae).eventManager.addEvent(this.form,"mousemove",o(this,mn).mousemove),click:o(this,Ae).eventManager.addEvent(this.form,"click",o(this,mn).click),keydown:o(this,Ae).eventManager.addEvent(o(this,Vc),"keydown",o(this,mn).keydown)})},zc=new WeakSet,w0=function(){o(this,ss)&&(o(this,Ae).eventManager.removeEvent(o(this,ss).mousedown),o(this,Ae).eventManager.removeEvent(o(this,ss).mousemove),o(this,Ae).eventManager.removeEvent(o(this,ss).click),o(this,Ae).eventManager.removeEvent(o(this,ss).keydown),k(this,ss,null))},B1=new WeakSet,m3=function(){E(this,jc,_0).call(this),k(this,ea,o(this,Ae).eventManager.addGlobalEvent("keydown",o(this,gn).keydown,!0)),k(this,ta,o(this,Ae).eventManager.addGlobalEvent("mousedown",o(this,gn).mousedown,!0))},jc=new WeakSet,_0=function(){o(this,ea)&&k(this,ea,o(this,Ae).eventManager.removeGlobalEvent(o(this,ea))),o(this,ta)&&k(this,ta,o(this,Ae).eventManager.removeGlobalEvent(o(this,ta))),o(this,vn)&&k(this,vn,o(this,Ae).eventManager.removeGlobalEvent(o(this,vn)))},N1=new WeakSet,g3=function(e){if(o(this,$s))switch(e.code){case"ArrowUp":e.preventDefault(),e.stopPropagation(),E(this,Eo,Gh).call(this,-1);return;case"ArrowDown":e.preventDefault(),e.stopPropagation(),E(this,Eo,Gh).call(this,1);return;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),k(this,$s,!1),k(this,Ti,-1);{const s=o(this,Et).get(o(this,pt));s!=null&&s.element&&u.utils.removeClass(s.element.querySelectorAll(".se-select-item"),"se-select-cursor")}return;case"Enter":case"Space":o(this,Ti)>-1&&(e.preventDefault(),e.stopPropagation(),E(this,Pc,y0).call(this,o(this,pt),o(this,Ti)));return}let t;switch(e.code){case"ArrowUp":if(e.preventDefault(),e.stopPropagation(),this.horizontal&&this.index>-1){const s=this.splitNum;t=this.index-s<0?s:-s}else t=-1;break;case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),this.horizontal&&this.index>-1){const s=this.splitNum;t=this.index+s>this.menuLen?-s:s}else t=1;break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),t=-1;break;case"ArrowRight":if(e.preventDefault(),e.stopPropagation(),this.index>-1&&o(this,Et).has(this.index)){E(this,xo,Zh).call(this,this.index),k(this,$s,!0),E(this,Eo,Gh).call(this,1);return}t=1;break;case"Enter":case"Space":this.index>-1&&(e.preventDefault(),e.stopPropagation(),o(this,Et).has(this.index)?(E(this,xo,Zh).call(this,this.index),k(this,$s,!0),E(this,Eo,Gh).call(this,1)):E(this,Fc,C0).call(this,this.index));break}t&&(E(this,ns,Xn).call(this),E(this,S1,f3).call(this,t))},L1=new WeakSet,v3=function(e){if(pe.isGecko){const t=u.query.getEventTarget(e),s=u.query.getParentElement(t,".se-select-item");s&&o(this,Ae).eventManager._injectActiveEvent(s)}},A1=new WeakSet,y3=function(e){var d,h,f;const t=u.query.getEventTarget(e);u.utils.addClass(this.form,"se-select-menu-mouse-move");const s=(d=t.closest)==null?void 0:d.call(t,"[data-child-index]"),n=s==null?void 0:s.getAttribute("data-child-index");if(n!=null){k(this,Ti,Number(n));const p=o(this,Et).get(o(this,pt));if(p!=null&&p.element){const m=p.element.querySelectorAll(".se-select-item");u.utils.removeClass(m,"se-select-cursor"),u.utils.addClass(m[o(this,Ti)],"se-select-cursor")}return}const r=(h=t.closest)==null?void 0:h.call(t,"[data-index]"),l=r==null?void 0:r.getAttribute("data-index");if(!l)return;const c=Number(l);if(this.index=c,o(this,Et).has(c))o(this,yn)&&ln.clearTimeout(o(this,yn)),E(this,xo,Zh).call(this,c);else if(o(this,pt)>-1){const p=o(this,Et).get(o(this,pt));(f=p==null?void 0:p.element)!=null&&f.contains(t)||E(this,ns,Xn).call(this)}},$1=new WeakSet,b3=function(e){let t=u.query.getEventTarget(e),s=null,n=null;for(;!s&&!n&&!/UL/i.test(t.tagName)&&!u.utils.hasClass(t,"se-select-menu");)n=t.getAttribute("data-child-index"),n||(s=t.getAttribute("data-index")),t=t.parentElement;if(n!==null){let l=t,c=null;for(;!c&&l;)c=l.getAttribute("data-parent-index")||l.getAttribute("data-index"),l=l.parentElement;c!==null&&E(this,Pc,y0).call(this,Number(c),Number(n));return}if(!s)return;const r=Number(s);if(o(this,Et).has(r)){o(this,pt)===r?E(this,ns,Xn).call(this):E(this,xo,Zh).call(this,r);return}E(this,Fc,C0).call(this,r)},O1=new WeakSet,C3=function(e){var t;if(Ee.isEsc(e.code)){if(o(this,pt)>-1){e.preventDefault(),e.stopPropagation();const s=o(this,pt);E(this,ns,Xn).call(this),E(this,na,Em).call(this,s);return}if((t=this.subEscMethod)!=null&&t.call(this)){e.preventDefault(),e.stopPropagation();return}this.close()}},V1=new WeakSet,w3=function(e){var s;const t=u.query.getEventTarget(e);this.form.contains(t)||(s=o(this,Ae).ui.opendControllers)!=null&&s.some(({form:n})=>{var r;return((r=n==null?void 0:n.contains)==null?void 0:r.call(n,t))&&!n.contains(o(this,As))})||(o(this,As).contains(t)?u.check.isInputElement(t)||k(this,vn,o(this,Ae).eventManager.addGlobalEvent("click",o(this,gn).click,!0)):this.close())},R1=new WeakSet,_3=function(e){k(this,vn,o(this,Ae).eventManager.removeGlobalEvent(o(this,vn))),e.target===o(this,As)&&(e.stopPropagation(),this.close())};const Xu=sN,{_w:ny}=pe;function nN(i,e){return!i||typeof i!="string"?"":i.charAt(0)==="<"?i:e[i]||""}function oN(i,e){return`<button type="button" class="se-cmd-row">${e?`<span class="se-block-menu-icon">${e}</span><span class="se-block-menu-label">${i}</span>`:`<span class="se-block-menu-label se-block-menu-label-full">${i}</span>`}</button>`}class rN{constructor(e,t,s){C(this,Uc);C(this,ca);C(this,I1);C(this,D1);C(this,qc);C(this,Os);C(this,P1);C(this,He,void 0);C(this,Wc,void 0);C(this,ra,void 0);C(this,To,null);C(this,aa,void 0);C(this,So,new Map);C(this,ei,null);C(this,la,[]);C(this,bn,[]);zl(this,"selectMenu");var r;k(this,He,t),k(this,Wc,s.resolveButton),k(this,ra,Array.isArray(s.items)?s.items:[]),k(this,aa,typeof s.renderCustomItem=="function"?s.renderCustomItem:null);const n=(r=s.selectMenuParams)==null?void 0:r.closeMethod;this.selectMenu=new Xu(t,{...s.selectMenuParams,closeMethod:()=>{E(this,Os,Tr).call(this),E(this,ca,Sm).call(this),n==null||n()},subEscMethod:()=>{if(!o(this,ei))return!1;const l=o(this,ei).anchorLi;E(this,Os,Tr).call(this);const c=l?Number(l.getAttribute("data-index")):NaN;return Number.isNaN(c)||this.selectMenu.setItem(c),!0}})}attach(e,t,s={}){this.selectMenu.on(e,t,s),o(this,He).eventManager.addEvent(this.selectMenu.form,"mousedown",n=>{pe.isMobile?o(this,He).store.set("_preventBlur",!0):n.preventDefault()}),o(this,He).eventManager.addEvent(this.selectMenu.form,"mousemove",E(this,D1,x3).bind(this))}setItems(e){k(this,ra,Array.isArray(e)?e:[]),k(this,To,null)}getItems(){var t,s;if(o(this,To))return o(this,To);const e=[];for(const n of o(this,ra))if(typeof n=="string"){const r=o(this,Wc).call(this,n,o(this,He).plugins,o(this,He).options,o(this,He).icons,o(this,He).lang);if(!r)continue;const l=r.type||"";if(/dropdown-free/.test(l)){e.push({kind:"dropdownFree",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+n).toLowerCase(),name:n,type:l});continue}if(/dropdown/.test(l)){const c=((s=(t=o(this,He).menu)==null?void 0:t.itemsMap)==null?void 0:s[n])||[];if(c.length>0){e.push({kind:"submenu",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+n).toLowerCase(),name:n,children:c.map(d=>({pluginName:n,element:d._element})),childMenus:c.map(d=>{var m,g;const h=((m=d._element)==null?void 0:m.querySelector(".se-list-icon"))||((g=d._element)==null?void 0:g.querySelector("svg")),f=h?h.outerHTML:"";return`<span class="se-block-submenu-item">${f?`${f}<span>${d.title}</span>`:d.title}</span>`})});continue}}e.push({kind:"plugin",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+n).toLowerCase(),name:n,type:l,command:r.command})}else if(n&&typeof n=="object"&&typeof n.action=="function"){const r=n.title||n.key||"",l=Array.isArray(n.keywords)?n.keywords.join(" "):"";e.push({kind:"custom",title:r,iconHTML:nN(n.icon,o(this,He).icons),search:(r+" "+l).toLowerCase(),raw:n})}return k(this,To,e),e}filter(e,t=1/0){const s=this.getItems(),n=(e||"").toLowerCase().trim(),r=[];for(const l of s)if((!n||l.search.indexOf(n)!==-1)&&r.push(l),r.length>=t)break;return r}renderRows(e){const t={icons:o(this,He).icons},s=`<span class="se-submenu-arrow">${o(this,He).icons.menu_arrow_right}</span>`;return e.map(n=>{if(n.kind==="custom"&&o(this,aa))return o(this,aa).call(this,n.raw,t);const r=oN(n.title,n.iconHTML);return n.kind==="dropdownFree"?r+s:r})}createRows(e){E(this,ca,Sm).call(this);const t=e.map(s=>s.kind==="submenu"?{children:s.children,childMenus:s.childMenus}:s);this.selectMenu.create(t,this.renderRows(e)),o(this,So).clear(),o(this,la).length=0,e.forEach((s,n)=>{s.kind==="dropdownFree"&&o(this,So).set(n,{name:s.name,plugin:o(this,He).plugins[s.name],li:this.selectMenu.menus[n]}),(s.kind==="plugin"||s.kind==="dropdownFree")&&o(this,la).push({name:s.name,idx:n})}),this.selectMenu.isOpen&&E(this,Uc,k0).call(this)}open(e){this.selectMenu.open(e),o(this,bn).length===0&&E(this,Uc,k0).call(this)}close(){E(this,ca,Sm).call(this),this.selectMenu.close()}hasOpenSubPanel(){return this.selectMenu.hasOpenSubmenu()||!!o(this,ei)}setItem(e){this.selectMenu.setItem(e)}setHidden(e){this.selectMenu.setHidden(e)}get isOpen(){return this.selectMenu.isOpen}dispatch(e,t){var l,c,d,h,f,p;if(!e)return!1;const s=e;if(s.pluginName&&s.element){const m=o(this,He).plugins[s.pluginName];return(l=m==null?void 0:m.action)==null||l.call(m,s.element),o(this,He).history.push(!1),!0}const n=e;if(n.kind==="custom"){try{n.raw.action(o(this,He),t)}catch(m){console.error("[SUNEDITOR.commandMenu.customAction]",m)}return!1}if(n.kind==="dropdownFree"){const m=o(this,He).plugins[n.name];if(!m)return!1;if(((c=o(this,ei))==null?void 0:c.plugin)===m)return E(this,Os,Tr).call(this),!1;const g=this.selectMenu.items.indexOf(n),y=g>=0?this.selectMenu.menus[g]:null;return y&&E(this,qc,x0).call(this,n.name,m,y),!1}const r=n.name?o(this,He).plugins[n.name]:null;if(r){const m=n.type||"";return/modal/.test(m)?(d=r.open)==null||d.call(r):/browser/.test(m)?(h=r.open)==null||h.call(r,null):/popup/.test(m)?(f=r.show)==null||f.call(r):(p=r.action)==null||p.call(r,u.utils.createElement("BUTTON",{type:"button","data-command":n.name})),o(this,He).history.push(!1),!0}return n.command&&o(this,He).commandDispatcher.run(n.command,null,null),!1}}He=new WeakMap,Wc=new WeakMap,ra=new WeakMap,To=new WeakMap,aa=new WeakMap,So=new WeakMap,ei=new WeakMap,la=new WeakMap,bn=new WeakMap,Uc=new WeakSet,k0=function(){const e=o(this,He).commandDispatcher;for(const{name:t,idx:s}of o(this,la)){const n=E(this,I1,k3).call(this,s);n&&(e.registerTargets(t,n),o(this,bn).push({name:t,target:n}))}o(this,He).store.set("_lastSelectionNode",null),o(this,He).eventManager.applyTagEffect()},ca=new WeakSet,Sm=function(){if(o(this,bn).length===0)return;const e=o(this,He).commandDispatcher;for(const{name:t,target:s}of o(this,bn))e.unregisterTargets(t,s);o(this,bn).length=0},I1=new WeakSet,k3=function(e){const t=this.selectMenu.menus[e];return t?t.querySelector("button.se-cmd-row")||t:null},D1=new WeakSet,x3=function(e){var l,c,d,h;if(o(this,So).size===0)return;const t=e.target;if((c=(l=o(this,ei))==null?void 0:l.dropdown)!=null&&c.contains(t))return;const s=(d=t.closest)==null?void 0:d.call(t,"li[data-index]");if(!s)return;const n=Number(s.getAttribute("data-index")),r=o(this,So).get(n);r?((h=o(this,ei))==null?void 0:h.plugin)!==r.plugin&&E(this,qc,x0).call(this,r.name,r.plugin,r.li):o(this,ei)&&E(this,Os,Tr).call(this)},qc=new WeakSet,x0=function(e,t,s){var c,d,h;o(this,ei)&&E(this,Os,Tr).call(this);const n=(d=(c=o(this,He).menu)==null?void 0:c.targetMap)==null?void 0:d[e];if(!n||!this.selectMenu.form)return;const r=n.parentNode;this.selectMenu.form.appendChild(n),E(this,P1,E3).call(this,n,s,this.selectMenu.form),u.utils.addClass(s,"se-submenu-open"),(h=t.on)==null||h.call(t,s);const l=o(this,He).menu.subscribeDropdownOff(()=>{E(this,Os,Tr).call(this),this.selectMenu.close()});k(this,ei,{dropdown:n,plugin:t,originalParent:r,anchorLi:s,unsub:l})},Os=new WeakSet,Tr=function(){var t,s,n;const e=o(this,ei);e&&(k(this,ei,null),(t=e.unsub)==null||t.call(e),e.dropdown.style.cssText="",e.dropdown.style.display="none",e.anchorLi&&u.utils.removeClass(e.anchorLi,"se-submenu-open"),e.originalParent&&e.originalParent!==e.dropdown.parentNode&&e.originalParent.appendChild(e.dropdown),(n=(s=e.plugin)==null?void 0:s.off)==null||n.call(s))},P1=new WeakSet,E3=function(e,t,s){const n=t.getBoundingClientRect(),r=s.getBoundingClientRect(),l=!!o(this,He).options.get("_rtl");e.style.position="absolute",e.style.right="",e.style.visibility="hidden",e.style.display="block";const c=e.offsetWidth,d=e.offsetHeight,h=ny.innerWidth,f=ny.innerHeight,p=4,m=n.right+p,g=n.left-c-p,y=Math.max(0,m+c-h),v=Math.max(0,-g),b=l?"left":"right";let w;b==="right"?y===0?w=m:v===0?w=g:y<=v?w=m-y:w=g+v:v===0?w=g:y===0?w=m:v<=y?w=g+v:w=m-y,e.style.left=w-r.left+"px";const _=n.top,x=n.bottom-d,S=Math.max(0,_+d-f),M=Math.max(0,-x);let T;S===0?T=_:M===0?T=x:S<=M?T=_-S:T=x+M,e.style.top=T-r.top+"px",e.style.visibility=""};const aN=rN,{_w:Qu,_d:oy,NO_EVENT:lN}=pe;class cN{constructor(e,t,s){C(this,Zc,void 0);C(this,da,void 0);C(this,ha,void 0);C(this,Gc,null);C(this,Cn,null);C(this,Mo,[]);k(this,Zc,s),k(this,da,e.frameContext),k(this,ha,t.frameOptions),this.events=t.options.get("events")||{},this.triggerEvent=async(n,r)=>{var c;if(u.check.isNonEditable((c=r==null?void 0:r.frameContext)==null?void 0:c.get("wysiwyg")))return!1;const l=this.events[n];if(typeof l=="function")try{return await l({$:o(this,Zc),...r})}catch(d){return console.error(`[SUNEDITOR.triggerEvent.${n}]`,d),!1}return lN}}_bindOrchestrator(e){k(this,Gc,e)}applyTagEffect(e){var t;return(t=o(this,Gc))==null?void 0:t.applyTagEffect(e)}addEvent(e,t,s,n){if(!e||((e===Qu||e===oy||typeof e.length!="number"||e.nodeType||!Array.isArray(e)&&e.length<1)&&(e=[e]),e.length===0))return null;const r=e.length;for(let l=0;l<r;l++)e[l].addEventListener(t,s,n),o(this,Mo).push({target:e[l],type:t,listener:s,useCapture:n});return{target:e,type:t,listener:s,useCapture:n}}removeEvent(e){if(!e)return;let t=e.target;const s=e.type,n=e.listener,r=e.useCapture;if(t&&((t===Qu||t===oy||typeof t.length!="number"||t.nodeType||!Array.isArray(t)&&t.length<1)&&(t=[t]),t.length!==0)){for(let l=0,c=t.length;l<c;l++)t[l].removeEventListener(s,n,r);return null}}addGlobalEvent(e,t,s){return o(this,ha).get("iframe")&&o(this,da).get("_ww").addEventListener(e,t,s),Qu.addEventListener(e,t,s),{type:e,listener:t,useCapture:s}}removeGlobalEvent(e,t,s){if(e)return typeof e=="object"&&(t=e.listener,s=e.useCapture,e=e.type),o(this,ha).get("iframe")&&o(this,da).get("_ww").removeEventListener(e,t,s),Qu.removeEventListener(e,t,s),null}_injectActiveEvent(e){u.utils.addClass(e,"__se__active"),k(this,Cn,this.addGlobalEvent("mouseup",()=>{u.utils.removeClass(e,"__se__active"),k(this,Cn,this.removeGlobalEvent(o(this,Cn)))}))}_init(){for(let e=0,t=o(this,Mo).length,s;e<t;e++)s=o(this,Mo)[e],s.target.removeEventListener(s.type,s.listener,s.useCapture);k(this,Mo,null),o(this,Cn)&&k(this,Cn,this.removeGlobalEvent(o(this,Cn)))}}Zc=new WeakMap,da=new WeakMap,ha=new WeakMap,Gc=new WeakMap,Cn=new WeakMap,Mo=new WeakMap;const dN=cN;class hN{constructor(e){C(this,pa);C(this,H1);C(this,Kc);C(this,F1);C(this,z1);C(this,Je,void 0);C(this,ui,void 0);C(this,Yc,void 0);C(this,ua,void 0);C(this,Bo,void 0);C(this,Ke,void 0);C(this,Ri,void 0);C(this,fa,void 0);k(this,Je,e.$),k(this,ui,e.store),k(this,Yc,o(this,Je).contextProvider.shadowRoot),k(this,ua,o(this,Je).contextProvider.carrierWrapper),k(this,Bo,o(this,Je).context),k(this,Ke,o(this,Je).frameContext),k(this,Ri,o(this,Je).options),k(this,fa,o(this,Je).frameOptions)}get(e){const t=o(this,Ke).get("wysiwygFrame"),s=/iframe/i.test(t==null?void 0:t.nodeName),n=this.getLocal(e);return{left:n.left+(s?t.parentElement.offsetLeft:0),top:n.top+(s?t.parentElement.offsetTop:0)}}getLocal(e){const t=e;let s=0,n=0,r=0,l=0,c=0,d=t.nodeType===3?t.parentElement:t;const h=t.offsetWidth,f=Gu(t,on.bind(this)),p=d;for(;d&&!Zu(d,"se-wrapper")&&d!==f;)s+=d.offsetLeft-(p!==d?d.scrollLeft:0),n+=d.offsetTop+(p!==d?d.scrollTop:0),d=d.offsetParent;const m=o(this,Ke).get("wysiwygFrame");o(this,Ke).get("wysiwyg").contains(t)&&(r=m.offsetLeft,l=m.offsetTop,c=m.parentElement.offsetWidth-(m.offsetLeft+m.offsetWidth));const g=o(this,Ke).get("eventWysiwyg");return s+=r-(f?f.scrollLeft:0),n+=l-(f?f.scrollTop:0),{left:s,top:n,right:d!=null&&d.offsetWidth?d.offsetWidth-(s-r+h)+c:0,scrollX:g.scrollLeft||g.scrollX||0,scrollY:g.scrollTop||g.scrollY||0,scrollH:o(this,Ke).get("wysiwyg").scrollHeight||0}}getGlobal(e){const t=o(this,Ke).get("topArea"),s=o(this,Ke).get("wysiwygFrame");if(e||(e=t),!ao(e))return{top:0,left:0,fixedTop:0,fixedLeft:0,width:0,height:0};const n=e,r=n.getBoundingClientRect();let l=r.top,c=r.left;if(/^iframe$/i.test(s.nodeName)&&s.contentDocument.contains(n)){const p=s.getBoundingClientRect();l+=p.top,c+=p.left}const h=ue.scrollY,f=ue.scrollX;return{top:l+h,left:c+f,fixedTop:l,fixedLeft:c,width:n.offsetWidth,height:n.offsetHeight}}getGlobalScroll(e){var B;const t=o(this,Ke).get("topArea");let s=!1,n=!1;e||(e=t),e===t&&(s=!0),!s&&ao(e)&&(n=ue.getComputedStyle(e).position==="absolute");const r=e;let l=0,c=0,d=0,h=0,f=0,p=0,m=0,g=0,y=null,v=null,b=null,w=null,_=r;for(;_;)l+=_.scrollTop,c+=_.scrollLeft,d+=_.scrollHeight,h+=_.scrollWidth,_.scrollTop>0&&(p+=_.offsetTop),_.scrollHeight>=_.clientHeight&&(m=/^html$/i.test(_.nodeName)?m||_.clientHeight:_.clientHeight+(b?-b.clientTop:0),y=b||y||_,b=_),_.scrollLeft>0&&(f+=_.offsetLeft),_.scrollWidth>=_.clientWidth&&(g=/^html$/i.test(_.nodeName)?g||_.clientWidth:_.clientWidth+(w?-w.clientLeft:0),v=w||v||_,w=_),_=_.parentElement;if(!n&&!s&&/^iframe$/i.test(o(this,Ke).get("wysiwygFrame").nodeName))for(_=o(this,Ke).get("wrapper"),y=v=t;_;)l+=_.scrollTop,c+=_.scrollLeft,d+=_.scrollHeight,h+=_.scrollWidth,_.scrollTop>0&&(p+=_.offsetTop),_.scrollHeight>=_.clientHeight&&(m=/^html$/i.test(_.nodeName)?m||_.clientHeight:_.clientHeight+(b?-b.clientTop:0),b=_),_.scrollLeft>0&&(f+=_.offsetLeft),_.scrollWidth>=_.clientWidth&&(g=/^html$/i.test(_.nodeName)?g||_.clientWidth:_.clientWidth+(w?-w.clientLeft:0),w=_),_=_.parentElement;for(_=(B=o(this,Yc))==null?void 0:B.host,_&&(y=v=t);_;)l+=_.scrollTop,c+=_.scrollLeft,d+=_.scrollHeight,h+=_.scrollWidth,_.scrollTop>0&&(p+=_.offsetTop),_.scrollHeight>=_.clientHeight&&(m=/^html$/i.test(_.nodeName)?m||_.clientHeight:_.clientHeight+(b?-b.clientTop:0),b=_),_.scrollLeft>0&&(f+=_.offsetLeft),_.scrollWidth>=_.clientWidth&&(g=/^html$/i.test(_.nodeName)?g||_.clientWidth:_.clientWidth+(w?-w.clientLeft:0),w=_),_=_.parentElement;const x=t.contains(y),S=t.contains(v);y=x?t:y,v=S?t:v;const M=y?y.getBoundingClientRect().top+(!y.parentElement||/^html$/i.test(y.parentElement.nodeName)?ue.scrollY:0):0,T=v?v.getBoundingClientRect().left+(!v.parentElement||/^html$/i.test(v.parentElement.nodeName)?ue.scrollX:0):0;m=x?t.clientHeight:m,g=S?t.clientWidth:g;const L=rn(o(this,Ke).get("_wd"));return{top:l,left:c,ts:M,ls:T,width:h,height:d,x:f,y:p,ohOffsetEl:n?window:y,owOffsetEl:n?window:v,oh:n?L.h:m,ow:n?L.w:g,heightEditorRefer:x,widthEditorRefer:S}}getWWScroll(){var n,r;const e=o(this,Ke).get("eventWysiwyg"),t=e.scrollTop||e.scrollY||0,s=e.scrollHeight||((n=e.document)==null?void 0:n.documentElement.scrollHeight)||0;return{top:t,left:e.scrollLeft||e.scrollX||0,width:e.scrollWidth||((r=e.document)==null?void 0:r.documentElement.scrollWidth)||0,height:s,bottom:t+s}}setRelPosition(e,t,s,n,{preferUp:r}={}){const l=/^fixed$/i.test(ue.getComputedStyle(n).position),c=this.getGlobal(s);if(l)e.style.position="fixed",r?e.style.top=`${c.fixedTop-e.offsetHeight}px`:e.style.top=`${c.fixedTop+c.height}px`;else{e.style.position="";const m=n.contains(e)?this.getGlobal(t).top:0,g=e.offsetHeight,y=ue.scrollY,v=c.top;if(r){const b=m-y+v;if(b<g){const w=rn(Be).h-(m-y+v+s.offsetHeight);w>=g?e.style.top=`${v+s.offsetHeight}px`:w>b?(e.style.height=`${w}px`,e.style.top=`${v+s.offsetHeight}px`):(e.style.height=`${b}px`,e.style.top=`${-1*(b-v+3)}px`)}else e.style.top=`${v-g}px`}else{const b=rn(Be).h-(m-y+v+s.offsetHeight);if(b<g){let w=-1*(g-v+3);const _=m-y+w,x=g+(_<0?_:0);x>b?(e.style.height=`${x}px`,w=-1*(x-v+3)):(e.style.height=`${b}px`,w=v+s.offsetHeight),e.style.top=`${w}px`}else e.style.top=`${v+s.offsetHeight}px`}}const d=e.offsetWidth,h=c.left,f=this.getGlobal(n).left;if(o(this,Ri).get("_rtl")){const p=s.getBoundingClientRect(),m=ue.innerWidth;let g=m-p.right;if(d>0){const y=n.getBoundingClientRect();m-g-d<y.left&&(g=m-y.left-d)}e.style.left="auto",e.style.right=`${Math.max(0,g)}px`}else{const p=n.offsetWidth+f,m=p<=d?0:p-(h+d);e.style.right="",m<0?e.style.left=`${h+m}px`:e.style.left=`${h}px`}}setAbsPosition(e,t,s){var lt,Me;const n={left:0,right:0,top:0,...s.addOffset},r=s.position||"bottom",l=s.inst,c=!o(this,Ri).get("_rtl");c||(n.left*=-1);const d=o(this,fa).get("iframe"),h=o(this,Ke).get("wrapper").contains(t)||s.isWWTarget||(d?o(this,Ke).get("wysiwyg").contains(t):!1),f=!!Gu(t,".se-toolbar"),p=t.nodeType===1,m=h&&!p,g=p&&/inline/.test(ue.getComputedStyle(t).display),y=rn(Be),v=m?this.getWWScroll():E(this,z1,M3).call(this),b=!h||!d&&p?t.getBoundingClientRect():o(this,Je).selection.getRects(t,"start").rects,w=this.getGlobal(t),_=Zu(e.firstElementChild,"se-arrow")?e.firstElementChild:null,x=((lt=s.sibling)==null?void 0:lt.offsetHeight)||0,S=_?_.offsetHeight:0,M=e.offsetHeight,T=t.offsetHeight,L=b.top,B=y.h-b.bottom,N=this.getGlobal(o(this,Ke).get("topArea")).top,O=ue.scrollY,A=o(this,Bo).get("toolbar_main").offsetHeight,V=o(this,Ri).get("toolbar_container"),R=o(this,ui).mode.isBalloon||o(this,ui).mode.isInline||V,$=V&&N-O-A>0||!o(this,Je).toolbar.isSticky&&R?0:A+(o(this,Je).toolbar.isSticky?o(this,Ri).get("_toolbar_sticky"):0),P=((Me=o(this,Ke).get("statusbar"))==null?void 0:Me.offsetHeight)||0,{rmt:W,rmb:Z,bMargin:F,rt:I}=E(this,Kc,E0).call(this,L,B,$,y,b,m,f);if(h&&(Z-P+T<=0||W+I+T-(o(this,Je).toolbar.isSticky&&g?$:0)<=0)||W+T<0)return;const G=o(this,Ke).get("topArea").getBoundingClientRect(),j=o(this,ui).mode.isBottom?G.bottom>=ue.innerHeight-A:G.top<=A,K=o(this,Je).toolbar.isSticky&&o(this,Bo).get("toolbar_main").style.display!=="none"&&(!R||j);let se=n.top,D=0,U="";r==="bottom"?(U="up",se+=b.bottom+S+O,D=Z-(M+S),D-x<0&&(U="down",se-=T+M+S*2,D=W-(M+S),D-x<0&&(U="",se-=D-x-Math.max(1,D+M+S)))):(U="down",se+=b.top-M-S+O,D=(K&&!o(this,ui).mode.isBottom?b.top-$:W)-M-S,D-x<0&&(U="up",se+=T+M+S*2,D=(Z>0?F:Z)-(M+S)-P,D-x<0&&(U="",se+=D-2))),E(this,F1,S3).call(this,_,U),e.style.top=`${se}px`;const z=(e.nodeType===1?X.get(ue.getComputedStyle(e).borderRadius):0)||0,Q=w.width,re=e.offsetWidth,le=_?_.offsetWidth:0,Ue=b.left,fe=y.w-b.right;if(h&&(Ue+Q<=0||fe+Q<=0))return;_&&(_.style.left="",_.style.right="");let ft=n.left||(n.right?c?n.right-e.offsetWidth:e.offsetWidth-n.right:0),De=0,Le=0,we=0;return c?(ft+=b.left+ue.scrollX-(Ue<0?Ue:0),De=Q+Ue,De<le&&(we=le/2-1+(z<=2?0:z-2),Le=we),De=Q+fe-re,De<0&&(ft+=De,we=re-1-(le/2+(z<=2?0:z-2)),Le=-(De-le/2),Le=Le>we?we:Le),_&&Le>0&&(_.style.left=Le+"px")):(ft+=b.right-re+ue.scrollX+(fe<0?fe:0),De=Q+fe,De<le&&(we=le/2-1+(z<=2?0:z-2),Le=we),De=Q+Ue-re,De<0&&(ft-=De,we=le/2-1+(z<=2?0:z-2),Le=-(De-le/2),Le=Le<we?we:Le>re-we?re-we:Le),_&&Le>0&&(_.style.right=Le+"px")),e.style.left=`${ft}px`,l.__offset={left:e.offsetLeft+v.left,top:e.offsetTop+v.top,addOffset:n},{position:U==="up"?"bottom":"top"}}setRangePosition(e,t,{position:s,addTop:n}={}){e.style.top="-10000px",e.style.visibility="hidden",e.style.display="block";let r=s==="top";t||(t=o(this,Je).selection.getRange());const l=o(this,Je).selection.getRects(t,r?"start":"end");if(r=l.position==="start",l.rects.noText){let A=t.startContainer;A.nodeType===1&&(A=A.childNodes[t.startOffset]||A);const V=A.parentNode;if(V){const R=Vv(Cv);V.insertBefore(R,A);const $=Be.createRange();$.setStart(R,1),$.setEnd(R,1);const P=$.getClientRects()[0];P&&(l.rects=P,l.scrollLeft=ue.scrollX,l.scrollTop=ue.scrollY),V.removeChild(R)}}const c=o(this,Ke).get("isFullScreen"),d=o(this,Ke).get("topArea"),h=o(this,ua).contains(e),f=l.rects,p=c?0:l.scrollLeft,m=c?0:l.scrollTop,g=h?rn(Be).w:d.offsetWidth,y=this.getGlobal(d),v=h?0:y.left,b=e.offsetWidth,w=e.offsetHeight;E(this,pa,Mm).call(this,r,f,e,v,g,p,m,n),this.getGlobal(e).top-y.top<0&&(r=!r,E(this,pa,Mm).call(this,r,f,e,v,g,p,m,n)),(b!==e.offsetWidth||w!==e.offsetHeight)&&E(this,pa,Mm).call(this,r,f,e,v,g,p,m,n);const _=!o(this,ua).contains(e),x=rn(Be),S=f.height,M=f.top,T=x.h-f.bottom,L=!o(this,Je).toolbar.isSticky&&(o(this,ui).mode.isBalloon||o(this,ui).mode.isInline)?0:o(this,Bo).get("toolbar_main").offsetHeight,{rmt:B,rmb:N,rt:O}=E(this,Kc,E0).call(this,M,T,L,x,f,_,!1);if(!(N+S<=0||B+O+S<=0))return e.style.visibility="",!0}}Je=new WeakMap,ui=new WeakMap,Yc=new WeakMap,ua=new WeakMap,Bo=new WeakMap,Ke=new WeakMap,Ri=new WeakMap,fa=new WeakMap,pa=new WeakSet,Mm=function(e,t,s,n,r,l,c,d=0){const f=s.querySelector(".se-arrow "),p=Math.round(f.offsetWidth/2),m=s.offsetWidth,g=t.noText&&!e?0:s.offsetHeight,y=(e?t.left:t.right)-n-m/2+l,v=y+m-r;let b=(e?t.top-g-p:t.bottom+p)-(t.noText?0:d)+c;const w=y<0?1:v<0?y:y-v-1-1;let _=!1;const x=b+(e?this.getGlobal(o(this,Ke).get("topArea")).top:s.offsetHeight-o(this,Ke).get("wysiwyg").offsetHeight);!e&&x>0&&E(this,H1,T3).call(this)<x?(e=!0,_=!0):e&&Be.documentElement.offsetTop>x&&(e=!1,_=!0),_&&(b=(e?t.top-g-p:t.bottom+p)-(t.noText?0:d)+c),s.style.left=Math.floor(w)+"px",s.style.top=Math.floor(b)+"px",e?(co(f,"se-arrow-up"),lo(f,"se-arrow-down")):(co(f,"se-arrow-down"),lo(f,"se-arrow-up"));const S=Math.floor(m/2+(y-w));f.style.left=(S+p>s.offsetWidth?s.offsetWidth-p:S<p?p:S)+"px"},H1=new WeakSet,T3=function(){const e=o(this,Ke).get("topArea");return Be.documentElement.scrollHeight-(this.getGlobal(e).top+e.offsetHeight)},Kc=new WeakSet,E0=function(e,t,s,n,r,l,c){const d=o(this,Je).selection.getRects(o(this,Ke).get("wysiwyg"),"start").rects;let h=0,f=0,p=0,m=0,g=0;const y=o(this,fa).get("iframe");m=r.top,g=n.h-r.bottom;const v=this.getGlobal(),b=o(this,ui).mode.isBottom;if(l){p=!c&&!o(this,Je).toolbar.isSticky&&!o(this,Ri).get("toolbar_container")?s:0;const w=y?0:v.top-ue.scrollY+p,_=y?0:o(this,ui).get("currentViewportHeight")-(v.top+v.height-ue.scrollY);let x=w,S=_;b?(s>_?o(this,Je).toolbar.isSticky?S=s:S=_+s:o(this,Ri).get("toolbar_container")&&!o(this,Je).toolbar.isSticky?s=0:S=_+s,h=r.top-(d.top-w),f=d.bottom-(r.bottom-S)+s,f=f>0?f:f-s):(s>w?o(this,Je).toolbar.isSticky?x=s:x=w+s:o(this,Ri).get("toolbar_container")&&!o(this,Je).toolbar.isSticky?s=0:x=w+s,h=r.top-(d.top-x)+s,f=d.bottom-(r.bottom-_),h=h>0?h:h-s)}else{const w=v.fixedTop>0?v.fixedTop:0,_=ue.innerHeight-(v.fixedTop+v.height);p=!c&&(o(this,Je).toolbar.isSticky||!o(this,Je).toolbar.isBalloonMode)?s:0,b?(h=m-(c?0:w),f=g-(_>0?_:0)-p):(h=m-(c?0:w)-p,f=g-(_>0?_:0))}return{rmt:h,rmb:f,rt:p,tMargin:m,bMargin:g}},F1=new WeakSet,S3=function(e,t){t==="up"?(e&&(e.style.visibility=""),lo(e,"se-arrow-up"),co(e,"se-arrow-down")):t==="down"?(e&&(e.style.visibility=""),lo(e,"se-arrow-down"),co(e,"se-arrow-up")):e&&(e.style.visibility="hidden")},z1=new WeakSet,M3=function(){const e=rn(Be);return{top:ue.scrollY,left:ue.scrollX,width:e.w,height:e.h,bottom:ue.scrollY+e.h,rects:{left:0,top:0,right:ue.innerWidth,bottom:o(this,ui).get("currentViewportHeight")||ue.innerHeight,noText:!0}}};const uN=hN,{_w:kt}=pe;class fN{constructor(e){C(this,j1);C(this,ed);C(this,td);C(this,va);C(this,No,void 0);C(this,$e,void 0);C(this,Bt,void 0);C(this,ma,void 0);C(this,Lo,void 0);C(this,Xc,void 0);C(this,Ze,void 0);C(this,Vs,void 0);C(this,ga,void 0);C(this,Qc,0);C(this,Jc,!1);k(this,No,e),k(this,$e,e.$),k(this,Bt,e.store),k(this,ma,o(this,$e).contextProvider.shadowRoot),k(this,Lo,o(this,$e).instanceCheck),k(this,Xc,o(this,$e).context),k(this,Ze,o(this,$e).frameContext),k(this,Vs,o(this,$e).options),k(this,ga,o(this,$e).frameOptions),this.range=null,this.selectionNode=null,this.__iframeFocus=!1}get(){var t;let e=null;return typeof((t=o(this,ma))==null?void 0:t.getSelection)=="function"?e=o(this,ma).getSelection():e=o(this,Ze).get("_ww").getSelection(),e?(!o(this,Bt).get("_range")&&!o(this,Ze).get("wysiwyg").contains(e.focusNode)&&(e.removeAllRanges(),e.addRange(E(this,va,Bm).call(this))),e):null}isRange(e){return o(this,Lo).isRange(e)}getRange(){const e=o(this,Bt).get("_range")||E(this,va,Bm).call(this),t=this.get();if(e.collapsed===t.isCollapsed||!o(this,Ze).get("wysiwyg").contains(t.focusNode)){if(o(this,$e).component.is(e.startContainer)){const s=o(this,$e).component.get(e.startContainer),n=s==null?void 0:s.container;return n?this.setRange(n,0,n,1):e}return e}if(t.rangeCount>0){const s=t.getRangeAt(0);return o(this,Bt).set("_range",s),s}else{const s=t.anchorNode,n=t.focusNode,r=t.anchorOffset,l=t.focusOffset,c=u.query.compareElements(s,n),d=c.ancestor&&(c.result===0?r<=l:c.result>1);return this.setRange(d?s:n,d?r:l,d?n:s,d?l:r)}}setRange(e,t,s,n){var p,m,g;let r,l,c,d;if(this.isRange(e)){const y=e;r=y.startContainer,l=y.startOffset,c=y.endContainer,d=y.endOffset}else r=e,l=t,c=s,d=n;if(!r||!c)return;(u.check.isBreak(r)||r.nodeType===3)&&l>r.textContent.length&&(l=r.textContent.length),(u.check.isBreak(c)||c.nodeType===3)&&d>c.textContent.length&&(d=c.textContent.length),o(this,$e).format.isLine(r)&&(r=r.childNodes[l>0?r.childNodes.length-1:0]||r,l=l>0?r.nodeType===1&&!u.check.isBreak(r)?1:r.textContent?r.textContent.length:0:0),o(this,$e).format.isLine(c)&&(c=c.childNodes[d>0?c.childNodes.length-1:0]||c,d=d>0?c.nodeType===1&&!u.check.isBreak(c)?1:c.textContent?c.textContent.length:0:0);const h=o(this,Ze).get("_wd").createRange();try{l=Math.min(l,((p=r.textContent)==null?void 0:p.length)||0),d=d>0&&(((m=c.textContent)==null?void 0:m.length)||0)===0&&c.nodeType===1?1:Math.min(Math.max(d,0),((g=c.textContent)==null?void 0:g.length)||0),h.setStart(r,l),h.setEnd(c,d),o(this,Bt).set("hasFocus",!0)}catch(y){console.warn("[SUNEDITOR.selection.focus.warn]",y.message),o(this,$e).focusManager.nativeFocus();return}const f=this.get();return f.removeAllRanges&&f.removeAllRanges(),f.addRange(h),o(this,Bt).set("_range",h),E(this,ed,T0).call(this,h,this.get()),o(this,ga).get("iframe")&&this.__focus(),h}removeRange(){o(this,Bt).set("_range",null),o(this,Bt).set("_lastSelectionNode",null),this.selectionNode=null,o(this,Bt).get("hasFocus")&&this.get().removeAllRanges(),o(this,No)._eventOrchestrator.selectionState.reset()}getNearRange(e){const t=e.nextSibling,s=e.previousSibling;return t?{container:t,offset:0}:s?{container:s,offset:1}:null}getRangeAndAddLine(e,t){if(E(this,td,S0).call(this,e)){const s=(t==null?void 0:t.parentElement)||o(this,Ze).get("wysiwyg"),n=u.utils.createElement(o(this,Vs).get("defaultLine"),null,"<br>");s.insertBefore(n,t&&t!==s?t.previousElementSibling?t.nextElementSibling:t:s.firstElementChild),this.setRange(n.firstElementChild,0,n.firstElementChild,1),e=o(this,Bt).get("_range")}return e}getNode(){if(o(this,Ze).get("wysiwyg").contains(this.selectionNode)||this.init(),!this.selectionNode){const e=u.query.getEdgeChild(o(this,Ze).get("wysiwyg").firstChild,t=>t.childNodes.length===0||t.nodeType===3,!1);if(!e)this.init();else return this.selectionNode=e,e}return this.selectionNode}getRects(e,t){const s=u.check.isElement(e)?kt.getComputedStyle(e).position==="absolute":!1;e=!e||u.check.isText(e)?this.getRange():e;let n=t==="start",r=kt.scrollX,l=kt.scrollY,c=e.getClientRects();if(c=c[n?0:c.length-1],!c){const h=this.getNode();if(o(this,$e).format.isLine(h)){const f=u.utils.createTextNode(Oe.zeroWidthSpace);o(this,$e).html.insertNode(f,{afterNode:null,skipCharCount:!0}),this.setRange(f,1,f,1),this.init(),c=this.getRange().getClientRects(),c=c[n?0:c.length-1]}if(!c){const f=o(this,$e).offset.get(h);c={left:f.left,top:f.top,right:f.left+h.offsetWidth,bottom:f.top+h.offsetHeight,noText:!0},r=0,l=0}n=!0}const d=/^iframe$/i.test(o(this,Ze).get("wysiwygFrame").nodeName)?o(this,Ze).get("wysiwygFrame").getClientRects()[0]:null;return!s&&d&&(c={left:c.left+d.left,top:c.top+d.top,right:c.right+d.right-d.width,bottom:c.bottom+d.bottom-d.height}),{rects:c,position:n?"start":"end",scrollLeft:r,scrollTop:l}}getDragEventLocationRange(e){const t=o(this,Ze).get("_wd");let s,n,r,l,c;return t.caretPositionFromPoint?(s=t.caretPositionFromPoint(e.clientX,e.clientY),n=s.offsetNode,r=s.offset,l=s.offsetNode,c=s.offset):t.caretRangeFromPoint&&(s=t.caretRangeFromPoint(e.clientX,e.clientY),n=s.startContainer,r=s.startOffset,l=s.endContainer,c=s.endOffset),{sc:n,so:r,ec:l,eo:c}}scrollTo(e,t){var T,L,B,N;const s=t==null?void 0:t.noFocus;if(o(this,Lo).isSelection(e))e=e.getRangeAt(0);else if(o(this,Lo).isNode(e))if(s){const O=o(this,Ze).get("_wd").createRange();O.selectNodeContents(e),e=O}else e=this.setRange(e,1,e,1);else typeof(e==null?void 0:e.startContainer)>"u"&&console.warn('[SUNEDITOR.html.scrollTo.warn] "selectionRange" must be Selection or Range or Node object.',e);const n=u.query.getParentElement(e==null?void 0:e.startContainer,O=>O.nodeType===1);if(!n)return;t={behavior:"smooth",block:"nearest",inline:"nearest",...t},delete t.noFocus;const r=o(this,Ze).get("_ww"),l=o(this,Ze).get("wysiwygFrame"),c=o(this,ga).get("iframe"),d=!o(this,Bt).get("isScrollable")(o(this,Ze)),h=o(this,Bt).get("currentViewportHeight"),f=d?kt.scrollY:c?r.scrollY:l.scrollTop,p=o(this,Bt).mode.isBottom,m=o(this,Xc).get("toolbar_main").offsetHeight,g=o(this,$e).toolbar.isSticky?m:0,y=o(this,$e).toolbar.isSticky?g+o(this,Vs).get("_toolbar_sticky"):g,v=((T=o(this,Ze).get("statusbar"))==null?void 0:T.offsetHeight)||0;if(o(this,Jc)){const O=o(this,$e).format.isBrLine(n)?(L=e==null?void 0:e.getBoundingClientRect)==null?void 0:L.call(e):null;if((O==null?void 0:O.height)>0?E(this,j1,B3).call(this,O,t.behavior):n==null||n.scrollIntoView(t),(t==null?void 0:t.behavior)==="auto")if(y&&!p){const A=(B=e==null?void 0:e.getBoundingClientRect)==null?void 0:B.call(e);(A==null?void 0:A.height)>0&&A.top>=0&&A.top<y&&kt.scrollBy(0,-(y-A.top))}else f!==kt.scrollY&&(y?f<kt.scrollY&&kt.scrollBy(0,y):d&&kt.scrollBy(0,v));return}const b=o(this,Qc),w=d?h-(p?y:0):l.offsetHeight,_=(N=e==null?void 0:e.getBoundingClientRect)==null?void 0:N.call(e),x=((_==null?void 0:_.height)>0?_.height:n.offsetHeight)||0,S=t==null?void 0:t.behavior,M=p?0:y;if(d)if(c){const O=this.getRects(e,"end").rects,A=O.top+x-M,V=w-b-(O.top+x);if(A>=0&&V>=0)return;const R=f-(A<0?-(A-b):V),$=M>0&&A<0;kt.scrollTo({top:$?R-M:R,behavior:S})}else{const O=(_==null?void 0:_.height)>0?_.top+f:o(this,$e).offset.getGlobal(n).top,A=w+f-O-x,V=O-f,R=M>0?V>=M:w>A+b;if(A-b>0&&R)return;const $=A<=b?f-A+b+v:f-A+(w-x-b),P=M>0&&!R;kt.scrollTo({top:P?$-M:$,behavior:S})}else{const A=(_==null?void 0:_.height)>0?_.top:n.getBoundingClientRect().top,V=c?A:A-l.getBoundingClientRect().top,$=V>=(p?0:g)&&V+b<=w,P=p?V-b>0?V+b-w+g:V-x:V-b>0?V+b-w:V-(g+x);let W=f+P;const Z=kt.scrollY,F=o(this,$e).offset.getGlobal(),I=p?0:m,G=p?m:0,j=Z-F.top+I,K=F.top+F.height-(Z+h)+G;if(j>0){const se=($?V:V+f-W)-x-b-j;se<0&&(W+=I,kt.scrollTo({top:Z+se,behavior:"smooth"}))}if(K>0){const se=($?V:V+f-W)+x+b-(F.height-K);se>0&&(W+=p?G:v,kt.scrollTo({top:Z+se,behavior:"smooth"}))}$||(c?r:l).scrollTo({top:W,behavior:S})}}resetRangeToTextNode(){let e=this.getRange();if(E(this,td,S0).call(this,e)){if(!u.check.isWysiwygFrame(e.startContainer)||!u.check.isWysiwygFrame(e.endContainer))return!1;const p=e.commonAncestorContainer,m=p.children[e.startOffset],g=p.children[e.endOffset];if(!(e=this.setRange(m,0,g,m===g?0:1)))return!1}const t=e,s=t.collapsed;let n=t.startContainer,r=t.startOffset,l=t.endContainer,c=t.endOffset,d,h,f;if(o(this,$e).format.isLine(n))for(n.childNodes[r]?(n=n.childNodes[r]||n,r=0):(n=n.lastChild||n,r=n.textContent.length);(n==null?void 0:n.nodeType)===1&&n.firstChild;)n=n.firstChild||n,r=0;if(o(this,$e).format.isLine(l)){for(l=l.childNodes[c]||l.lastChild||l;(l==null?void 0:l.nodeType)===1&&l.lastChild;)l=l.lastChild;s?c=0:c>0&&(c=l.textContent.length)}if(d=u.check.isWysiwygFrame(n)?o(this,Ze).get("wysiwyg").firstChild:n,h=r,u.check.isBreak(d)||d.nodeType===1&&d.childNodes.length>0){const p=u.check.isBreak(d);if(!p){const m=d;for(;d&&!u.check.isBreak(d)&&d.nodeType===1&&(f=d.childNodes,f.length!==0);)d=f[h>0?h-1:h]||!/FIGURE/i.test(f[0].nodeName)?f[0]:d.previousElementSibling||d.previousSibling||n,h=h>0?d.textContent.length:h;let g=o(this,$e).format.getLine(d,null);g===o(this,$e).format.getBlock(g,null)&&(d||(d=m),g=u.utils.createElement(u.query.getParentElement(d,u.check.isTableCell)?"DIV":o(this,Vs).get("defaultLine")),d.parentNode.insertBefore(g,d),d!==m&&g.appendChild(d))}if(u.check.isBreak(d)||o(this,$e).component.is(d)){const m=u.utils.createTextNode(Oe.zeroWidthSpace);d.parentNode.insertBefore(m,d),d=m,p&&n===l&&(l=d,c=1)}}if(n=d,r=h,d=u.check.isWysiwygFrame(l)?o(this,Ze).get("wysiwyg").lastChild:l,h=c,u.check.isBreak(d)||d.nodeType===1&&d.childNodes.length>0){const p=u.check.isBreak(d);if(!p){for(;d&&!u.check.isBreak(d)&&d.nodeType===1&&(f=d.childNodes,f.length!==0);)d=f[h>0?h-1:h]||!/FIGURE/i.test(f[0].nodeName)?f[0]:d.previousElementSibling||d.previousSibling||n,h=h>0?d.textContent.length:h;let m=o(this,$e).format.getLine(d,null);m===o(this,$e).format.getBlock(m,null)&&(m=u.utils.createElement(u.check.isTableCell(m)?"DIV":o(this,Vs).get("defaultLine")),d.parentNode.insertBefore(m,d),m.appendChild(d))}if(u.check.isBreak(d)){const m=u.utils.createTextNode(Oe.zeroWidthSpace);d.parentNode.insertBefore(m,d),d=m,h=1,p&&!d.previousSibling&&u.utils.removeItem(l)}}return l=d,c=h,this.setRange(n,r,l,c),!0}init(){const e=o(this,Ze).get("_wd").activeElement;if(u.check.isInputElement(e))return this.selectionNode=e,e;const t=this.get();if(!t)return null;let s=null;t.rangeCount>0?s=t.getRangeAt(0):s=E(this,va,Bm).call(this),E(this,ed,T0).call(this,s,t)}__focus(){try{this.__iframeFocus=!0;const e=u.query.getParentElement(this.getNode(),"figcaption");e?e.focus():o(this,Ze).get("wysiwyg").focus()}finally{kt.setTimeout(()=>this.__iframeFocus=!1,0)}}__init(){var e,t;k(this,Jc,((e=o(this,No)._eventOrchestrator.scrollparents)==null?void 0:e.length)>0),k(this,Qc,(t=o(this,Ze))!=null&&t.get("wysiwyg")?(X.get(kt.getComputedStyle(o(this,Ze).get("wysiwyg")).scrollMargin,0)||40)+X.get(kt.getComputedStyle(o(this,Ze).get("wrapper")).paddingBottom,0):40)}}No=new WeakMap,$e=new WeakMap,Bt=new WeakMap,ma=new WeakMap,Lo=new WeakMap,Xc=new WeakMap,Ze=new WeakMap,Vs=new WeakMap,ga=new WeakMap,Qc=new WeakMap,Jc=new WeakMap,j1=new WeakSet,B3=function(e,t){let{top:s,bottom:n}=e;const r=[...o(this,No)._eventOrchestrator.scrollparents||[],kt];for(const l of r){const c=l===kt,d=c?0:l.getBoundingClientRect().top,h=c?o(this,Bt).get("currentViewportHeight"):l.getBoundingClientRect().bottom;let f=0;s<d?f=s-d:n>h&&(f=n-h),f!==0&&(l.scrollBy({top:f,behavior:t}),s-=f,n-=f)}},ed=new WeakSet,T0=function(e,t){let s=null;o(this,Bt).set("_range",e),e.collapsed?u.check.isWysiwygFrame(e.commonAncestorContainer)?s=e.commonAncestorContainer.children[e.startOffset]||e.commonAncestorContainer:s=e.commonAncestorContainer:s=t.anchorNode,this.selectionNode=s},td=new WeakSet,S0=function(e){var s;const t=e.commonAncestorContainer;return u.check.isWysiwygFrame(e.startContainer)&&u.check.isWysiwygFrame(e.endContainer)||/FIGURE/i.test(t.nodeName)||o(this,$e).pluginManager.fileInfo.regExp.test(t.nodeName)&&(!o(this,$e).pluginManager.fileInfo.tagAttrs[t.nodeName]||((s=o(this,$e).pluginManager.fileInfo.tagAttrs[t.nodeName])==null?void 0:s.every(n=>t.hasAttribute(n))))||o(this,$e).component.is(t)},va=new WeakSet,Bm=function(){const e=o(this,Ze).get("wysiwyg"),t=o(this,Ze).get("_wd").createRange();let s=e.firstElementChild,n=null;return s?(n=s.firstChild,n||(n=u.utils.createElement("BR"),s.appendChild(n))):(n=u.utils.createElement("BR"),s=u.utils.createElement(o(this,Vs).get("defaultLine"),null,n),e.appendChild(s)),t.setStart(n,0),t.setEnd(n,0),t};const pN=fN;class mN{constructor(e){C(this,wn);C(this,id);C(this,he,void 0);C(this,os,void 0);C(this,Nt,void 0);C(this,Ao,void 0);C(this,ya,void 0);C(this,ba,void 0);C(this,Ca,void 0);C(this,wa,void 0);C(this,_a,void 0);C(this,ka,void 0);C(this,xa,null);k(this,he,e.$),k(this,os,e.store),k(this,Nt,o(this,he).options),k(this,Ao,o(this,he).frameContext),k(this,ya,o(this,Nt).get("formatLine").reg),k(this,ba,o(this,Nt).get("formatBrLine").reg),k(this,Ca,o(this,Nt).get("formatBlock").reg),k(this,wa,o(this,Nt).get("formatClosureBlock").reg),k(this,_a,o(this,Nt).get("formatClosureBrLine").reg),k(this,ka,new RegExp("^("+o(this,Nt).get("textStyleTags")+")$","i")),this.__resetBrLineBreak(o(this,Nt).get("defaultLineBreakFormat"))}setLine(e){if(!this.isLine(e))throw new Error('[SUNEDITOR.format.setLine.fail] The "element" must satisfy "format.isLine()".');const t=E(this,id,M0).call(this),s=t.lines,n=e.className,r=e.nodeName;let l=t.firstNode,c=t.lastNode;for(let d=0,h=s.length,f,p;d<h;d++)f=s[d],(f.nodeName!==r||(f.className.match(/(\s|^)__se__format__[^\s]+/)||[""])[0].trim()!==n)&&!o(this,he).component.is(f)&&(p=e.cloneNode(!1),u.utils.copyFormatAttributes(p,f),p.innerHTML=f.innerHTML,f.parentNode.replaceChild(p,f)),d===0&&(l=p||f),d===h-1&&(c=p||f),p=null;o(this,he).selection.setRange(u.query.getNodeFromPath(t.firstPath,l),t.startOffset,u.query.getNodeFromPath(t.lastPath,c),t.endOffset),o(this,he).history.push(!1),o(this,Ao).has("documentType_use_header")&&o(this,Ao).get("documentType").reHeader()}getLine(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(u.check.isWysiwygFrame(e))return null;if(this.isBlock(e)){if(this.isLine(e.firstElementChild))return e.firstElementChild;if(this.isLine(e))return e}if(this.isLine(e)&&t(e))return e;e=e.parentNode}return null}setBrLine(e){if(!this.isBrLine(e))throw new Error('[SUNEDITOR.format.setBrLine.fail] The "element" must satisfy "format.isBrLine()".');const t=E(this,id,M0).call(this).lines,s=t.length-1;let n=t[s].parentNode,r=e.cloneNode(!1);const l=r;for(let c=s,d,h,f,p,m,g,y=!0;c>=0;c--)if(d=t[c],d!==(t[c+1]?t[c+1].parentNode:null)){if(g=o(this,he).component.is(d),h=g?"":d.innerHTML.replace(/(?!>)\s+(?=<)|\n/g," "),f=u.query.getParentElement(d,v=>v.parentNode===n),(n!==d.parentNode||g)&&(this.isLine(n)?(n.parentNode.insertBefore(r,n.nextSibling),n=n.parentNode):(n.insertBefore(r,f?f.nextSibling:null),n=d.parentNode),p=r.nextSibling,p&&r.nodeName===p.nodeName&&u.check.isSameAttributes(r,p)&&(r.innerHTML+="<BR>"+p.innerHTML,u.utils.removeItem(p)),r=e.cloneNode(!1),y=!0),m=r.innerHTML,r.innerHTML=(y||!h||!m||/<br>$/i.test(h)?h:h+"<BR>")+m,c===0){n.insertBefore(r,d),p=d.nextSibling,p&&r.nodeName===p.nodeName&&u.check.isSameAttributes(r,p)&&(r.innerHTML+="<BR>"+p.innerHTML,u.utils.removeItem(p));const v=r.previousSibling;v&&r.nodeName===v.nodeName&&u.check.isSameAttributes(r,v)&&(v.innerHTML+="<BR>"+r.innerHTML,u.utils.removeItem(r))}g||u.utils.removeItem(d),h&&(y=!1)}o(this,he).selection.setRange(l,0,l,0),o(this,he).history.push(!1)}getBrLine(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(u.check.isWysiwygFrame(e))return null;if(this.isBrLine(e)&&t(e))return e;e=e.parentNode}return null}addLine(e,t){if(!e||!e.parentNode)return null;const s=this.getLine(o(this,he).selection.getNode(),null);let n=null;if(!this.isBrLine(e)&&this.isBrLine(s||e.parentNode)&&!o(this,he).component.is(e))n=u.utils.createElement("BR");else{const r=t?typeof t=="string"?t:t.nodeName:this.isNormalLine(s)?s.nodeName:o(this,Nt).get("defaultLine");n=u.utils.createElement(r,null,"<br>"),(t&&typeof t!="string"||!t&&this.isLine(s))&&u.utils.copyTagAttributes(n,t||s,["id"])}return u.check.isTableCell(e)?e.insertBefore(n,e.nextElementSibling):e.parentNode.insertBefore(n,e.nextElementSibling),n}addLineAfter(e){if(!e||!e.parentNode)return null;const t=e.nodeName,s=o(this,Nt).get("lineAttrReset");let n;return/^H[1-6]$|^HR$/i.test(t)?n=u.utils.createElement(o(this,Nt).get("defaultLine"),null,"<br>"):this.isBrLine(e)?n=u.utils.createElement(o(this,Nt).get("defaultLine"),null,"<br>"):(n=u.utils.createElement(t,null,"<br>"),u.utils.copyTagAttributes(n,e,s)),u.check.isTableCell(e)?e.insertBefore(n,e.nextElementSibling):e.parentNode.insertBefore(n,e.nextElementSibling),n}getBlock(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(u.check.isWysiwygFrame(e))return null;if(this.isBlock(e)&&!/^(THEAD|TBODY|TR)$/i.test(e.nodeName)&&t(e))return e;e=e.parentNode}return null}applyBlock(e){o(this,he).selection.getRangeAndAddLine(o(this,he).selection.getRange(),null);const t=this.getLinesAndComponents(!1);if(!t||t.length===0)return;e:for(let g=0,y=t.length,v,b,w,_,x,S;g<y;g++)if(v=t[g],!!u.check.isListCell(v)&&(b=v.lastElementChild,b&&u.check.isListCell(v.nextElementSibling)&&t.includes(v.nextElementSibling)&&(_=b.lastElementChild,t.includes(_)))){let M=null;for(;M=_.lastElementChild;)if(u.check.isList(M))if(t.includes(M.lastElementChild))_=M.lastElementChild;else continue e;w=b.firstElementChild,x=t.indexOf(w),S=t.indexOf(_),t.splice(x,S-x+1),y=t.length;continue}const s=t.at(-1);let n,r,l;this.isBlock(s)||this.isLine(s)?n=s:n=this.getBlock(s,null)||this.getLine(s,null),u.check.isTableCell(n)?(r=null,l=n):(r=n.nextSibling,l=n.parentNode);const c=e.cloneNode(!1);let d=u.query.getNodeDepth(n),h=null;const f=[],p=(g,y,v)=>{let b=null;if(g!==y&&!u.check.isTableElements(y)){if(y&&u.query.getNodeDepth(g)===u.query.getNodeDepth(y))return v;b=o(this,he).nodeTransform.removeAllParents(y,null,g)}return b?b.ec:v};for(let g=0,y=t.length,v,b,w,_,x,S,M;g<y;g++)if(v=t[g],b=v.parentNode,!(!b||c.contains(b)))if(w=u.query.getNodeDepth(v),u.check.isList(b)){if(h===null&&(S?(h=S,M=!0,S=null):h=b.cloneNode(!1)),f.push(v),x=t[g+1],g===y-1||(x==null?void 0:x.parentNode)!==b){v.contains(x==null?void 0:x.parentNode)&&(S=x.parentNode.cloneNode(!1));let T=b.parentNode,L;for(;u.check.isList(T);)L=u.utils.createElement(T.nodeName),L.appendChild(h),h=L,T=T.parentNode;const B=this.removeBlock(b,{selectedFormats:f,newBlockElement:null,shouldDelete:!0,skipHistory:!0});d>=w?(d=w,l=B.cc,r=p(l,b,B.ec),r&&(l=r.parentNode)):l===B.cc&&(r=B.ec),l!==B.cc&&(_=p(l,B.cc,_),_!==void 0?r=_:r=B.cc);for(let N=0,O=B.removeArray.length;N<O;N++)h.appendChild(B.removeArray[N]);M||c.appendChild(h),S&&B.removeArray.at(-1).appendChild(S),h=null,M=!1}}else d>=w&&(d=w,l=b,r=v.nextSibling),c.appendChild(v),l!==b&&(_=p(l,b),_!==void 0&&(r=_));if(o(this,os).set("_lastSelectionNode",null),o(this,he).nodeTransform.mergeSameTags(c,null,!1),o(this,he).nodeTransform.mergeNestedTags(c,g=>u.check.isList(g)),r&&u.query.getNodeDepth(r)>0&&(u.check.isList(r.parentNode)||u.check.isList(r.parentNode.parentNode))){const g=u.query.getParentElement(r,v=>this.isBlock(v)&&!u.check.isList(v)),y=o(this,he).nodeTransform.split(r,null,g?u.query.getNodeDepth(g)+1:0);y.parentNode.insertBefore(c,y)}else l.insertBefore(c,r),p(c,r);const m=u.query.getEdgeChildNodes(c.firstElementChild,c.lastElementChild);t.length>1?o(this,he).selection.setRange(m.sc,0,m.ec,m.ec.textContent.length):o(this,he).selection.setRange(m.ec,m.ec.textContent.length,m.ec,m.ec.textContent.length),o(this,he).history.push(!1)}removeBlock(e,{selectedFormats:t,newBlockElement:s,shouldDelete:n,skipHistory:r}={}){const l=o(this,he).selection.getRange();let c=l.startOffset,d=l.endOffset,h=u.query.getListChildNodes(e,null,1),f=e.parentNode,p=null,m=null,g=e.cloneNode(!1);const y=[],v=u.check.isList(s);let b=!1,w=!1,_=!1;const x=(L,B,N,O)=>{if(B.childNodes.length===1&&u.check.isZeroWidth(B)&&(B.innerHTML=Oe.zeroWidthSpace,c=d=1),B.nodeType===3)return L.insertBefore(B,N),B;const A=(_?B:O).childNodes;let V=B.cloneNode(!1),R=null,$=null;for(;A[0];)$=A[0],this._isNotTextNode($)&&!u.check.isBreak($)&&!u.check.isListCell(V)?(V.childNodes.length>0&&(R||(R=V),L.insertBefore(V,N),V=B.cloneNode(!1)),L.insertBefore($,N),R||(R=$)):V.appendChild($);if(V.childNodes.length>0){if(u.check.isListCell(L)&&u.check.isListCell(V)&&u.check.isList(N))if(v){for(R=N;N;)V.appendChild(N),N=N.nextSibling;L.parentNode.insertBefore(V,L.nextElementSibling)}else{const P=O.nextElementSibling,W=o(this,he).listFormat.removeNested(O,!1);if(e!==W||P!==O.nextElementSibling){const Z=V.childNodes;for(;Z[0];)O.appendChild(Z[0]);e=W,w=!0}}else L.insertBefore(V,N);R||(R=V)}return R};for(let L=0,B=h.length,N,O,A;L<B;L++)if(N=h[L],!(N.nodeType===3&&u.check.isList(g)))if(_=!1,n&&L===0&&(!t||t.length===B||t[0]===N?p=e.previousSibling:p=g),t&&(O=t.indexOf(N)),t&&O===-1)g||(g=e.cloneNode(!1)),g.appendChild(N);else{if(t&&(A=t[O+1]),g&&g.children.length>0&&(f.insertBefore(g,e),g=null),!v&&u.check.isListCell(N))if(A&&u.query.getNodeDepth(N)!==u.query.getNodeDepth(A)&&(u.check.isListCell(f)||u.utils.arrayFind(N.children,u.check.isList))){const V=N.nextElementSibling,R=o(this,he).listFormat.removeNested(N,!1);(e!==R||V!==N.nextElementSibling)&&(e=R,w=!0)}else{const V=N;N=u.utils.createElement(n?V.nodeName:u.check.isList(e.parentNode)||u.check.isListCell(e.parentNode)?"LI":u.check.isTableCell(e.parentNode)?"DIV":o(this,Nt).get("defaultLine"));const R=u.check.isListCell(N),$=V.childNodes;for(;$[0]&&!(u.check.isList($[0])&&!R);)N.appendChild($[0]);u.utils.copyFormatAttributes(N,V),_=!0}else N=N.cloneNode(!1);if(!w&&(n?(y.push(N),u.utils.removeItem(h[L])):(s?(b||(f.insertBefore(s,e),b=!0),N=x(s,N,null,h[L])):N=x(f,N,e,h[L]),w||(t?(m=N,p||(p=N)):p||(p=m=N))),w)){w=_=!1,h=u.query.getListChildNodes(e,null,1),g=e.cloneNode(!1),f=e.parentNode,L=-1,B=h.length;continue}}const S=e.parentNode;let M=e.nextSibling;(g==null?void 0:g.children.length)>0&&S.insertBefore(g,M),s?p=s.previousSibling:p||(p=e.previousSibling),M=e.nextSibling!==g?e.nextSibling:g?g.nextSibling:null,e.children.length===0||e.textContent.length===0?u.utils.removeItem(e):o(this,he).nodeTransform.removeEmptyNode(e,null,!1);let T=null;if(o(this,os).set("_lastSelectionNode",null),n)T={cc:S,sc:p,so:c,ec:M,eo:d,removeArray:y};else{p||(p=m),m||(m=p);const L=u.query.getEdgeChildNodes(p,m!=null&&m.parentNode?p:m);L?T={cc:(L.sc||L.ec).parentNode,sc:L.sc,so:c,ec:L.ec,eo:d,removeArray:null}:o(this,he).focusManager.focus()}if(r)return T;!n&&T&&(t?o(this,he).selection.setRange(T.sc,c,T.ec,d):o(this,he).selection.setRange(T.sc,0,T.sc,0)),o(this,he).history.push(!1)}indent(){const e=o(this,he).selection.getRange(),t=e.startContainer,s=e.endContainer,n=e.startOffset,r=e.endOffset,l=this.getLines(null),c=ry(l,o(this,os).get("indentSize"),o(this,Nt).get("_rtl")?"marginRight":"marginLeft");c.length>0&&o(this,he).listFormat.applyNested(c,!1),o(this,os).set("_lastSelectionNode",null),o(this,he).selection.setRange(t,n,s,r),o(this,he).history.push(!1)}outdent(){const e=o(this,he).selection.getRange(),t=e.startContainer,s=e.endContainer,n=e.startOffset,r=e.endOffset,l=this.getLines(null),c=ry(l,o(this,os).get("indentSize")*-1,o(this,Nt).get("_rtl")?"marginRight":"marginLeft");c.length>0&&o(this,he).listFormat.applyNested(c,!0),o(this,os).set("_lastSelectionNode",null),o(this,he).selection.setRange(t,n,s,r),o(this,he).history.push(!1)}isEdgeLine(e,t,s){var l;if(s==="front"){if(t>0)return!1}else if(((l=e==null?void 0:e.textContent)==null?void 0:l.length)>t)return!1;let n=!1;const r=s==="front"?"previousSibling":"nextSibling";for(;e&&!this.isLine(e)&&!u.check.isWysiwygFrame(e);)if(!e[r]||u.check.isBreak(e[r])&&!e[r][r])n=!0,e=e.parentNode;else return!1;return n}isTextStyleNode(e){return typeof e=="string"?o(this,ka).test(e):(e==null?void 0:e.nodeType)===1&&o(this,ka).test(e.nodeName)}isLine(e){return typeof e=="string"?o(this,ya).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,ya).test(e.nodeName)||u.utils.hasClass(e,"__se__format__line_.+|__se__format__br_line_.+"))&&!E(this,wn,jl).call(this,e)}isNormalLine(e){return this.isLine(e)&&(o(this,xa)||!this.isBrLine(e))&&!this.isBlock(e)}isBrLine(e){return o(this,xa)&&this.isLine(e)||(typeof e=="string"?o(this,ba).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,ba).test(e.nodeName)||u.utils.hasClass(e,"__se__format__br_line_.+"))&&!E(this,wn,jl).call(this,e))}isBlock(e){return typeof e=="string"?o(this,Ca).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,Ca).test(e.nodeName)||u.utils.hasClass(e,"__se__format__block_.+"))&&!E(this,wn,jl).call(this,e)}isClosureBlock(e){return typeof e=="string"?o(this,wa).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,wa).test(e.nodeName)||u.utils.hasClass(e,"__se__format__block_closure_.+"))&&!E(this,wn,jl).call(this,e)}isClosureBrLine(e){return typeof e=="string"?o(this,_a).test(e):(e==null?void 0:e.nodeType)===1&&(o(this,_a).test(e.nodeName)||u.utils.hasClass(e,"__se__format__br_line__closure_.+"))&&!E(this,wn,jl).call(this,e)}getLines(e){if(!o(this,he).selection.resetRangeToTextNode())return[];let t=o(this,he).selection.getRange();if(u.check.isWysiwygFrame(t.startContainer)){const v=o(this,Ao).get("wysiwyg").children,b=v.length;if(b===0)return[];o(this,he).selection.setRange(v[0],0,v[b-1],v[b-1].textContent.trim().length),t=o(this,he).selection.getRange()}const s=t.startContainer,n=t.endContainer,r=t.commonAncestorContainer;e||(e=this.isLine.bind(this));const l=u.query.getListChildren(r,v=>e(v),null);if((r.nodeType===3||!u.check.isWysiwygFrame(r)&&!this.isBlock(r))&&l.unshift(this.getLine(r,null)),s===n||l.length===1)return l;const c=this.getLine(s,null),d=this.getLine(n,null);let h=null,f=null;const p=function(v){return u.check.isTableElements(v)?/^TABLE$/i.test(v.nodeName):!0};let m=this.getBlock(c,p),g=this.getBlock(d,p);u.check.isTableElements(m)&&u.check.isListCell(m.parentNode)&&(m=m.parentNode),u.check.isTableElements(g)&&u.check.isListCell(g.parentNode)&&(g=g.parentNode);const y=m===g;for(let v=0,b=l.length,w;v<b;v++){if(w=l[v],c===w||!y&&w===m){h=v;continue}if(d===w||!y&&w===g){f=v;break}}return h===null&&(h=0),f===null&&(f=l.length-1),l.slice(h,f+1)}getLinesAndComponents(e){const t=o(this,he).selection.getRange().commonAncestorContainer,s=u.query.getParentElement(t,o(this,he).component.is.bind(o(this,he).component)),n=u.check.isTableElements(t)?this.getLines(null):this.getLines(r=>{const l=u.query.getParentElement(r,o(this,he).component.is.bind(o(this,he).component));return this.isLine(r)&&(!l||l===s)||u.check.isComponentContainer(r)&&!this.getLine(r)});if(e){for(let r=0,l=n.length;r<l;r++)for(let c=r-1;c>=0;c--)if(n[c].contains(n[r])){n.splice(r,1),r--,l--;break}}return n}_isNotTextNode(e){if(!e)return!1;const t=/^(br|input|select|canvas|img|iframe|audio|video)$/i;return typeof e=="string"?t.test(e):e.nodeType===1&&(o(this,he).component.is(e)||t.test(e.nodeName))}_isExcludeSelectionElement(e){return!/FIGCAPTION/i.test(e.nodeName)&&(o(this,he).component.is(e)||/FIGURE/i.test(e.nodeName))}__resetBrLineBreak(e){return k(this,xa,e==="br")}}he=new WeakMap,os=new WeakMap,Nt=new WeakMap,Ao=new WeakMap,ya=new WeakMap,ba=new WeakMap,Ca=new WeakMap,wa=new WeakMap,_a=new WeakMap,ka=new WeakMap,xa=new WeakMap,wn=new WeakSet,jl=function(e){return u.check.isExcludeFormat(e)||o(this,he).component.is(e)||u.check.isWysiwygFrame(e)},id=new WeakSet,M0=function(){let e=o(this,he).selection.getRange(),t=this.getLinesAndComponents(!1);if(t.length===0&&(e=o(this,he).selection.getRangeAndAddLine(e,null),t=this.getLinesAndComponents(!1),t.length===0))return;const s=e.startOffset,n=e.endOffset;let r=t[0],l=t.at(-1);const c=u.query.getNodePath(e.startContainer,r,null),d=u.query.getNodePath(e.endContainer,l,null),h=o(this,he).listFormat.remove(t,!1);return h.sc&&(r=h.sc),h.ec&&(l=h.ec),o(this,he).selection.setRange(u.query.getNodeFromPath(c,r),s,u.query.getNodeFromPath(d,l),n),{lines:this.getLinesAndComponents(!1),firstNode:r,lastNode:l,firstPath:c,lastPath:d,startOffset:s,endOffset:n}};function ry(i,e,t){const s=[];for(let n=0,r=i.length,l,c;n<r;n++)l=i[n],u.check.isListCell(l)?(e<0||l.previousElementSibling)&&s.push(l):(c=/\d+/.test(l.style[t])?X.get(l.style[t],0):0,c+=e,u.utils.setStyle(l,t,c<=0?"":c+"px"));return s}const gN=mN;class vN{constructor(e){C(this,W1);C(this,U1);C(this,q1);C(this,Z1);C(this,Ea);C(this,G1);C(this,Y1);C(this,kn);C(this,$o);C(this,me,void 0);C(this,Ii,void 0);C(this,_n,void 0);C(this,Si,void 0);k(this,me,e.$),k(this,Ii,o(this,me).options),k(this,_n,o(this,Ii).get("__listCommonStyle")),k(this,Si,xe.camelToKebabCase(o(this,Ii).get("__listCommonStyle")))}apply(e,{stylesToModify:t,nodesToRemove:s,strictRemove:n}={}){if(u.query.getParentElement(o(this,me).selection.getNode(),u.check.isNonEditable))return;o(this,me).selection.resetRangeToTextNode();let r=o(this,me).selection.getRangeAndAddLine(o(this,me).selection.getRange(),null);t=(t==null?void 0:t.length)>0?t:null,s=(s==null?void 0:s.length)>0?s:null;const l=!e,c=l&&!s&&!t;let d=r.startContainer,h=r.startOffset,f=r.endContainer,p=r.endOffset;if(c&&r.collapsed&&o(this,me).format.isLine(d.parentNode)&&o(this,me).format.isLine(f.parentNode)||d===f&&d.nodeType===1&&u.check.isNonEditable(d)){const R=d.parentNode;if(!u.check.isListCell(R)||!xe.getValues(R.style).some($=>o(this,Si).includes($)))return}if(r.collapsed&&!c&&d.nodeType===1&&!u.check.isBreak(d)&&!o(this,me).component.is(d)){let R=null;const $=d.childNodes[h];$&&($.nextSibling?R=u.check.isBreak($)?$:$.nextSibling:R=null);const P=u.utils.createTextNode(Oe.zeroWidthSpace);d.insertBefore(P,R),o(this,me).selection.setRange(P,1,P,1),r=o(this,me).selection.getRange(),d=r.startContainer,h=r.startOffset,f=r.endContainer,p=r.endOffset}o(this,me).format.isLine(d)&&(d=d.childNodes[h]||d.firstChild,h=0),o(this,me).format.isLine(f)&&(f=f.childNodes[p]||f.lastChild,p=f.textContent.length),l&&(e=u.utils.createElement("DIV"));const m=RegExp,g=e.nodeName;if(!c&&d===f&&!s&&e){let R=d,$=0;const P=[],W=e.style;for(let I=0,G=W.length;I<G;I++)P.push(W[I]);const Z=e.className,F=e.classList;for(let I=0,G=F.length;I<G;I++)P.push("."+F[I]);if(P.length>0){for(;!o(this,me).format.isLine(R)&&!u.check.isWysiwygFrame(R);){for(let I=0;I<P.length;I++)if(R.nodeType===1){const G=P[I],j=/^\./.test(G)?new m("\\s*"+G.replace(/^\./,"")+"(\\s+|$)","ig"):!1,K=R.style,se=R.className,D=l?!!K[G]:!!K[G]&&!!W[G]&&K[G]===W[G],U=j===!1?!1:l?!!se.match(j):!!se.match(j)&&!!Z.match(j);(D||U)&&$++}R=R.parentNode}if($>=P.length)return}}let y,v={},b={},w="",_="",x;if(t){for(let R=0,$=t.length,P;R<$;R++)P=t[R],/^\./.test(P)?_+=(_?"|":"\\s*(?:")+P.replace(/^\./,""):w+=(w?"|":"(?:;|^|\\s)(?:")+P;w&&(w+=")\\s*:[^;]*\\s*(?:;|$)",w=new m(w,"ig")),_&&(_+=")(?=\\s+|$)",_=new m(_,"ig"))}if(s){x="^(?:"+s[0];for(let R=1;R<s.length;R++)x+="|"+s[R];x+=")$",x=new m(x,"i")}const S={v:!1},M=function(R){const $=R.cloneNode(!1);if($.nodeType===3||u.check.isBreak($))return $;if(c)return null;const P=!x&&l||(x==null?void 0:x.test($.nodeName));if(P&&!n)return S.v=!0,null;const W=$.style.cssText;let Z="";w&&W.length>0&&(Z=W.replace(w,"").trim(),Z!==W&&(S.v=!0));const F=$.className;let I="";return _&&F.length>0&&(I=F.replace(_,"").trim(),I!==F&&(S.v=!0)),l&&(_||!F)&&(w||!W)&&!Z&&!I&&P?(S.v=!0,null):Z||I||$.nodeName!==g||!!w!=!!W||!!_!=!!F?(w&&W.length>0&&($.style.cssText=Z),$.style.cssText||$.removeAttribute("style"),_&&F.length>0&&($.className=I.trim()),$.className.trim()||$.removeAttribute("class"),!$.style.cssText&&!$.className&&($.nodeName===g||P)?(S.v=!0,null):$):(S.v=!0,null)},T=o(this,me).format.getLines(null);if(T.length===0){console.warn("[SUNEDITOR.inline.apply.warn] There is no line to apply.");return}r=o(this,me).selection.getRange(),d=r.startContainer,h=r.startOffset,f=r.endContainer,p=r.endOffset,o(this,me).format.getLine(d,null)||(d=u.query.getEdgeChild(T[0],function(R){return R.nodeType===3},!1),h=0),o(this,me).format.getLine(f,null)||(f=u.query.getEdgeChild(T.at(-1),function(R){return R.nodeType===3},!1),p=f.textContent.length);const L=o(this,me).format.getLine(d,null)===o(this,me).format.getLine(f,null),B=T.length-(L?0:1);y=e.cloneNode(!1);const N=c||l&&(R=>{for(let $=0,P=R==null?void 0:R.length;$<P;$++)if(this._isNonSplitNode(R[$]))return!0;return!1})(s),O=l||E(this,Ea,Nm).call(this,y),A=E(this,G1,O3).bind(this,N,O),V=E(this,Y1,V3).bind(this,N,O);if(L){E(this,$o,Yh).call(this,T[0],t)&&(r=o(this,me).selection.setRange(d,h,f,p));const R=E(this,W1,N3).call(this,T[0],y,M,d,h,f,p,c,l,r.collapsed,S,A,V);v.container=R.startContainer,v.offset=R.startOffset,b.container=R.endContainer,b.offset=R.endOffset,v.container===b.container&&u.check.isZeroWidth(v.container)&&(v.offset=b.offset=1),E(this,kn,Wl).call(this,R.ancestor,null)}else{let R=!1;B>0&&E(this,$o,Yh).call(this,T[B],t)&&(R=!0),E(this,$o,Yh).call(this,T[0],t)&&(R=!0),R&&o(this,me).selection.setRange(d,h,f,p),B>0&&(y=e.cloneNode(!1),b=E(this,Z1,$3).call(this,T[B],y,M,f,p,c,l,S,A,V));for(let $=B-1,P;$>0;$--)E(this,$o,Yh).call(this,T[$],t),y=e.cloneNode(!1),P=E(this,q1,A3).call(this,T[$],y,M,c,l,S,b.container),P.endContainer&&P.ancestor.contains(P.endContainer)&&(b.ancestor=null,b.container=P.endContainer),E(this,kn,Wl).call(this,P.ancestor,null);y=e.cloneNode(!1),v=E(this,U1,L3).call(this,T[0],y,M,d,h,c,l,S,A,V,b.container),v.endContainer&&(b.ancestor=null,b.container=v.endContainer),B<=0?b=v:b.container||(b.ancestor=null,b.container=v.container,b.offset=v.container.textContent.length),E(this,kn,Wl).call(this,v.ancestor,null),E(this,kn,Wl).call(this,b.ancestor||o(this,me).format.getLine(b.container),null)}return o(this,me).ui.offCurrentController(),o(this,me).selection.setRange(v.container,v.offset,b.container,b.offset),o(this,me).history.push(!1),y}remove(){this.apply(null,{stylesToModify:null,nodesToRemove:null,strictRemove:null})}_isNonSplitNode(e){if(!e)return!1;const t=/^(a|label|code|summary)$/i;return typeof e=="string"?t.test(e):e.nodeType===1&&t.test(e.nodeName)}_isIgnoreNodeChange(e){return e&&e.nodeType===1&&(u.check.isNonEditable(e)||!o(this,me).format.isTextStyleNode(e)||o(this,me).component.is(e))}}me=new WeakMap,Ii=new WeakMap,_n=new WeakMap,Si=new WeakMap,W1=new WeakSet,N3=function(e,t,s,n,r,l,c,d,h,f,p,m,g){let y=n.parentNode;for(;!y.nextSibling&&!y.previousSibling&&!o(this,me).format.isLine(y.parentNode)&&!u.check.isWysiwygFrame(y.parentNode)&&y.nodeName!==t.nodeName;)y=y.parentNode;if(!h&&!d&&y===l.parentNode&&y.nodeName===t.nodeName&&u.check.isZeroWidth(n.textContent.slice(0,r))&&u.check.isZeroWidth(l.textContent.slice(c))){const D=y.childNodes;let U=!0;for(let z=0,Q=D.length,re,le,Ue,fe;z<Q;z++){if(re=D[z],fe=!u.check.isZeroWidth(re),re===n||re===l){re===n&&(le=!0),re===l&&(Ue=!0);continue}if(!le&&fe||le&&Ue&&fe){U=!1;break}}if(U)return u.utils.copyTagAttributes(y,t),{ancestor:e,startContainer:n,startOffset:r,endContainer:l,endOffset:c}}p.v=!1;const v=this,b=e,w=[t],_=e.cloneNode(!1),x=n===l;let S=n,M=r,T=l,L=c,B=!1,N=!1,O,A,V,R,$;const P=RegExp;function W(D){const U=new P("(?:;|^|\\s)(?:"+R+"null)\\s*:[^;]*\\s*(?:;|$)","ig");let z=!1;return U&&D.style.cssText.length>0&&(z=U.test(D.style.cssText)),!z}if(function D(U,z){const Q=U.childNodes;for(let re=0,le=Q.length,Ue;re<le;re++){const fe=Q[re];if(!fe)continue;let ft=z,De;if(!B&&fe===S){let Le=_;$=m(fe);let we="",lt="";if(S.nodeType===3){const Vt=S;we=Vt.substringData(0,M),lt=Vt.substringData(M,x&&L>=M?L-M:Vt.data.length-M)}const Me=u.utils.createTextNode(we),st=u.utils.createTextNode(lt);if($){const Vt=m(z);if(Vt.parentNode!==Le){let bi=Vt,Zs=null;for(;bi.parentNode!==Le;){for(z=Zs=bi.parentNode.cloneNode(!1);bi.childNodes[0];)Zs.appendChild(bi.childNodes[0]);bi.appendChild(Zs),bi=bi.parentNode}bi.parentNode.appendChild(Vt)}$=$.cloneNode(!1)}u.check.isZeroWidth(Me)||z.appendChild(Me);const Qe=m(z);for(Qe&&($=Qe),$&&(Le=$),A=fe,O=[],R="";A!==Le&&A!==b&&A!==null;)Ue=g(A)?null:s(A),Ue&&A.nodeType===1&&W(A)&&(O.push(Ue),R+=A.style.cssText.substring(0,A.style.cssText.indexOf(":"))+"|"),A=A.parentElement;const ri=O.pop()||st;for(V=A=ri;O.length>0;)A=O.pop(),V.appendChild(A),V=A;if(t.appendChild(ri),Le.appendChild(t),$&&!m(T)&&(t=t.cloneNode(!1),_.appendChild(t),w.push(t)),S=st,M=0,B=!0,A!==st&&A.appendChild(S),!x)continue}if(!N&&fe===T){$=m(fe);let Le="",we="";if(T.nodeType===3){const Qe=T;Le=Qe.substringData(L,Qe.length-L),we=x?"":Qe.substringData(0,L)}const lt=u.utils.createTextNode(Le),Me=u.utils.createTextNode(we);if($?$=$.cloneNode(!1):g(t.parentNode)&&!$&&(t=t.cloneNode(!1),_.appendChild(t),w.push(t)),!u.check.isZeroWidth(lt)){A=fe,R="",O=[];const Qe=[];for(;A!==_&&A!==b&&A!==null;)A.nodeType===1&&W(A)&&(g(A)?Qe.push(A.cloneNode(!1)):O.push(A.cloneNode(!1)),R+=A.style.cssText.substring(0,A.style.cssText.indexOf(":"))+"|"),A=A.parentElement;for(O=O.concat(Qe),De=V=A=O.pop()||lt;O.length>0;)A=O.pop(),V.appendChild(A),V=A;_.appendChild(De),A.textContent=lt.data}if($&&De){const Qe=m(De);Qe&&($=Qe)}for(A=fe,O=[],R="";A!==_&&A!==b&&A!==null;)Ue=g(A)?null:s(A),Ue&&A.nodeType===1&&W(A)&&(O.push(Ue),R+=A.style.cssText.substring(0,A.style.cssText.indexOf(":"))+"|"),A=A.parentElement;const st=O.pop()||Me;for(V=A=st;O.length>0;)A=O.pop(),V.appendChild(A),V=A;$?(t=t.cloneNode(!1),t.appendChild(st),$.insertBefore(t,$.firstChild),_.appendChild($),w.push(t),$=null):t.appendChild(st),T=Me,L=Me.data.length,N=!0,!d&&f&&(t=Me,Me.textContent=Oe.zeroWidthSpace),A!==Me&&A.appendChild(T);continue}if(B){if(fe.nodeType===1&&!u.check.isBreak(fe)){v._isIgnoreNodeChange(fe)?(_.appendChild(fe.cloneNode(!0)),f||(t=t.cloneNode(!1),_.appendChild(t),w.push(t))):D(fe,fe);continue}A=fe,O=[],R="";const Le=[];for(;A.parentNode!==null&&A!==b&&A!==t;)Ue=N?A.cloneNode(!1):s(A),A.nodeType===1&&!u.check.isBreak(fe)&&Ue&&W(A)&&(g(A)?$||Le.push(Ue):O.push(Ue),R+=A.style.cssText.substring(0,A.style.cssText.indexOf(":"))+"|"),A=A.parentElement;O=O.concat(Le);const we=O.pop()||fe;for(V=A=we;O.length>0;)A=O.pop(),V.appendChild(A),V=A;if(g(t.parentNode)&&!g(we)&&!u.check.isZeroWidth(t)&&(t=t.cloneNode(!1),_.appendChild(t),w.push(t)),!N&&!$&&g(we)){t=t.cloneNode(!1);const lt=we.childNodes;for(let Me=0,st=lt.length;Me<st;Me++)t.appendChild(lt[Me]);we.appendChild(t),_.appendChild(we),w.push(t),t.children.length>0?z=A:z=t}else we===fe?N?z=_:z=t:N?(_.appendChild(we),z=A):(t.appendChild(we),z=A);if($&&fe.nodeType===3)if(m(fe)){const lt=u.query.getParentElement(z,Me=>v._isNonSplitNode(Me.parentNode)||Me.parentNode===_);$.appendChild(lt),t=lt.cloneNode(!1),w.push(t),_.appendChild(t)}else $=null}De=fe.cloneNode(!1),z.appendChild(De),fe.nodeType===1&&!u.check.isBreak(fe)&&(ft=De),D(fe,ft)}}(e,_),h&&!d&&!p.v)return{ancestor:e,startContainer:n,startOffset:r,endContainer:l,endOffset:c};if(d&&(d=h),d)for(let D=0;D<w.length;D++){const U=w[D];let z,Q,re;if(f)z=u.utils.createTextNode(Oe.zeroWidthSpace),_.replaceChild(z,U);else{const le=U.childNodes;for(Q=le[0];le[0];)re=le[0],_.insertBefore(re,U);u.utils.removeItem(U)}D===0&&(f?S=T=z:(S=Q,T=re))}else{if(h)for(let D=0;D<w.length;D++)Ju(w[D]);f&&(S=T=t)}o(this,me).nodeTransform.removeEmptyNode(_,t,!1),f&&(M=S.textContent.length,L=T.textContent.length);const Z=d||T.textContent.length===0;!u.check.isBreak(T)&&T.textContent.length===0&&(u.utils.removeItem(T),T=S),L=Z?T.textContent.length:L;const F={s:0,e:0},I=u.query.getNodePath(S,_,F),G=!T.parentNode;G&&(T=S);const j={s:0,e:0},K=u.query.getNodePath(T,_,!G&&!Z?j:null);M+=F.s,L=f?M:G?S.textContent.length:Z?L+F.s:L+j.s;const se=o(this,me).nodeTransform.mergeSameTags(_,[I,K],!0);return e.parentNode.replaceChild(_,e),S=u.query.getNodeFromPath(I,_),T=u.query.getNodeFromPath(K,_),{ancestor:_,startContainer:S,startOffset:M+se[0],endContainer:T,endOffset:L+se[1]}},U1=new WeakSet,L3=function(e,t,s,n,r,l,c,d,h,f,p){let m=n.parentNode;for(;!m.nextSibling&&!m.previousSibling&&!o(this,me).format.isLine(m.parentNode)&&!u.check.isWysiwygFrame(m.parentNode)&&m.nodeName!==t.nodeName;)m=m.parentNode;if(!c&&!l&&m.nodeName===t.nodeName&&!o(this,me).format.isLine(m)&&!m.nextSibling&&u.check.isZeroWidth(n.textContent.slice(0,r))){let B=!0,N=n.previousSibling;for(;N;){if(!u.check.isZeroWidth(N)){B=!1;break}N=N.previousSibling}if(B)return u.utils.copyTagAttributes(m,t),{ancestor:e,container:n,offset:r}}d.v=!1;const g=this,y=e,v=[t],b=e.cloneNode(!1);let w=n,_=r,x=!1,S,M,T,L;if(function B(N,O){const A=N.childNodes;for(let V=0,R=A.length,$,P;V<R;V++){const W=A[V];if(!W)continue;let Z=O;if(x&&!u.check.isBreak(W)){if(W.nodeType===1){if(g._isIgnoreNodeChange(W)){if(t=t.cloneNode(!1),P=W.cloneNode(!0),b.appendChild(P),b.appendChild(t),v.push(t),p&&W.contains(p)){const j=u.query.getNodePath(p,W);p=u.query.getNodeFromPath(j,P)}}else B(W,W);continue}M=W,S=[];const F=[];for(;M.parentNode!==null&&M!==y&&M!==t;)$=s(M),M.nodeType===1&&$&&(f(M)?L||F.push($):S.push($)),M=M.parentNode;S=S.concat(F);const I=S.length>0,G=S.pop()||W;for(T=M=G;S.length>0;)M=S.pop(),T.appendChild(M),T=M;if(f(t.parentNode)&&!f(G)&&(t=t.cloneNode(!1),b.appendChild(t),v.push(t)),!L&&f(G)){t=t.cloneNode(!1);const j=G.childNodes;for(let K=0,se=j.length;K<se;K++)t.appendChild(j[K]);G.appendChild(t),b.appendChild(G),O=f(M)?t:M,v.push(t)}else I?(t.appendChild(G),O=M):O=t;if(L&&W.nodeType===3)if(h(W)){const j=u.query.getParentElement(O,K=>g._isNonSplitNode(K.parentNode)||K.parentNode===b);L.appendChild(j),t=j.cloneNode(!1),v.push(t),b.appendChild(t)}else L=null}if(!x&&W===w){let F=b;L=h(W);let I="",G="";if(w.nodeType===3){const U=w;I=U.substringData(0,_),G=U.substringData(_,U.length-_)}const j=u.utils.createTextNode(I),K=u.utils.createTextNode(G);if(L){const U=h(O);if(U&&U.parentNode!==F){let z=U,Q=null;for(;z.parentNode!==F;){for(O=Q=z.parentNode.cloneNode(!1);z.childNodes[0];)Q.appendChild(z.childNodes[0]);z.appendChild(Q),z=z.parentNode}z.parentNode.appendChild(U)}L=L.cloneNode(!1)}u.check.isZeroWidth(j)||O.appendChild(j);const se=h(O);for(se&&(L=se),L&&(F=L),M=O,S=[];M!==F&&M!==null;)$=s(M),M.nodeType===1&&$&&S.push($),M=M.parentNode;const D=S.pop()||O;for(T=M=D;S.length>0;)M=S.pop(),T.appendChild(M),T=M;D!==O?(t.appendChild(D),O=M):O=t,u.check.isBreak(W)&&t.appendChild(W.cloneNode(!1)),F.appendChild(t),w=K,_=0,x=!0,O.appendChild(w);continue}$=x?s(W):W.cloneNode(!1),$&&(O.appendChild($),W.nodeType===1&&!u.check.isBreak(W)&&(Z=$)),B(W,Z)}}(e,b),c&&!l&&!d.v)return{ancestor:e,container:n,offset:r,endContainer:p};if(l&&(l=c),l)for(let B=0;B<v.length;B++){const N=v[B],O=N.childNodes,A=O[0];for(;O[0];)b.insertBefore(O[0],N);u.utils.removeItem(N),B===0&&(w=A)}else if(c){t=t.firstChild;for(let B=0;B<v.length;B++)Ju(v[B])}if(!l&&b.childNodes.length===0)e.childNodes?w=e.childNodes[0]:(w=u.utils.createTextNode(Oe.zeroWidthSpace),e.appendChild(w));else{o(this,me).nodeTransform.removeEmptyNode(b,t,!1),u.check.isZeroWidth(b.textContent)&&(w=b.firstChild,_=0);const B={s:0,e:0},N=u.query.getNodePath(w,b,B);_+=B.s;const O=o(this,me).nodeTransform.mergeSameTags(b,[N],!0);e.parentNode.replaceChild(b,e),w=u.query.getNodeFromPath(N,b),_+=O[0]}return{ancestor:b,container:w,offset:_,endContainer:p}},q1=new WeakSet,A3=function(e,t,s,n,r,l,c){if(!r){let m=null;c&&e.contains(c)&&(m=u.query.getNodePath(c,e));const g=e.cloneNode(!0),y=t.nodeName,v=t.style.cssText,b=t.className;let w=g.childNodes,_=0,x=w.length;for(let S;_<x&&(S=w[_],S.nodeType!==3);_++)if(S.nodeName===y)S.style.cssText+=v,u.utils.addClass(S,b);else{if(!u.check.isBreak(S)&&this._isIgnoreNodeChange(S))continue;if(x===1){w=S.childNodes,x=w.length,_=-1;continue}else break}if(x>0&&_===x)return e.innerHTML=g.innerHTML,{ancestor:e,endContainer:m?u.query.getNodeFromPath(m,e):null}}l.v=!1;const d=this,h=e.cloneNode(!1),f=[t];let p=!0;if(function m(g,y){const v=g.childNodes;for(let b=0,w=v.length,_,x;b<w;b++){const S=v[b];if(!S)continue;let M=y;if(!u.check.isBreak(S)&&d._isIgnoreNodeChange(S)){if(t.childNodes.length>0&&(h.appendChild(t),t=t.cloneNode(!1)),x=S.cloneNode(!0),h.appendChild(x),h.appendChild(t),f.push(t),y=t,c&&S.contains(c)){const T=u.query.getNodePath(c,S);c=u.query.getNodeFromPath(T,x)}continue}else _=s(S),_&&(p=!1,y.appendChild(_),S.nodeType===1&&(M=_));u.check.isBreak(S)||m(S,M)}}(e,t),p||r&&!n&&!l.v)return{ancestor:e,endContainer:c};if(h.appendChild(t),n&&r)for(let m=0;m<f.length;m++){const g=f[m],y=g.childNodes;for(;y[0];)h.insertBefore(y[0],g);u.utils.removeItem(g)}else if(r){t=t.firstChild;for(let m=0;m<f.length;m++)Ju(f[m])}return o(this,me).nodeTransform.removeEmptyNode(h,t,!1),o(this,me).nodeTransform.mergeSameTags(h,null,!0),e.parentNode.replaceChild(h,e),{ancestor:h,endContainer:c}},Z1=new WeakSet,$3=function(e,t,s,n,r,l,c,d,h,f){let p=n.parentNode;for(;!p.nextSibling&&!p.previousSibling&&!o(this,me).format.isLine(p.parentNode)&&!u.check.isWysiwygFrame(p.parentNode)&&p.nodeName!==t.nodeName;)p=p.parentNode;if(!c&&!l&&p.nodeName===t.nodeName&&!o(this,me).format.isLine(p)&&!p.previousSibling&&u.check.isZeroWidth(n.textContent.slice(r))){let L=!0,B=n.nextSibling;for(;B;){if(!u.check.isZeroWidth(B)){L=!1;break}B=B.nextSibling}if(L)return u.utils.copyTagAttributes(p,t),{ancestor:e,container:n,offset:r}}d.v=!1;const m=this,g=e,y=[t],v=e.cloneNode(!1);let b=n,w=r,_=!1,x,S,M,T;if(function L(B,N){const O=B.childNodes;for(let A=O.length-1,V;0<=A;A--){const R=O[A];if(!R)continue;let $=N;if(_&&!u.check.isBreak(R)){if(R.nodeType===1){if(m._isIgnoreNodeChange(R)){t=t.cloneNode(!1);const F=R.cloneNode(!0);v.insertBefore(F,N),v.insertBefore(t,F),y.push(t)}else L(R,R);continue}S=R,x=[];const P=[];for(;S.parentNode!==null&&S!==g&&S!==t;)V=s(S),V&&S.nodeType===1&&(f(S)?T||P.push(V):x.push(V)),S=S.parentNode;x=x.concat(P);const W=x.length>0,Z=x.pop()||R;for(M=S=Z;x.length>0;)S=x.pop(),M.appendChild(S),M=S;if(f(t.parentNode)&&!f(Z)&&(t=t.cloneNode(!1),v.insertBefore(t,v.firstChild),y.push(t)),!T&&f(Z)){t=t.cloneNode(!1);const F=Z.childNodes;for(let I=0,G=F.length;I<G;I++)t.appendChild(F[I]);Z.appendChild(t),v.insertBefore(Z,v.firstChild),y.push(t),t.children.length>0?N=S:N=t}else W?(t.insertBefore(Z,t.firstChild),N=S):N=t;if(T&&R.nodeType===3)if(h(R)){const F=u.query.getParentElement(N,I=>m._isNonSplitNode(I.parentNode)||I.parentNode===v);T.appendChild(F),t=F.cloneNode(!1),y.push(t),v.insertBefore(t,v.firstChild)}else T=null}if(!_&&R===b){T=h(R);let P="",W="";if(b.nodeType===3){const G=b;P=G.substringData(w,G.length-w),W=G.substringData(0,w)}const Z=u.utils.createTextNode(P),F=u.utils.createTextNode(W);if(T){T=T.cloneNode(!1);const G=h(N);if(G.parentNode!==v){let j=G,K=null;for(;j.parentNode!==v;){for(N=K=j.parentNode.cloneNode(!1);j.childNodes[0];)K.appendChild(j.childNodes[0]);j.appendChild(K),j=j.parentNode}j.parentNode.insertBefore(G,j.parentNode.firstChild)}T=T.cloneNode(!1)}else f(t.parentNode)&&!T&&(t=t.cloneNode(!1),v.appendChild(t),y.push(t));for(u.check.isZeroWidth(Z)||N.insertBefore(Z,N.firstChild),S=N,x=[];S!==v&&S!==null;)V=f(S)?null:s(S),V&&S.nodeType===1&&x.push(V),S=S.parentNode;const I=x.pop()||N;for(M=S=I;x.length>0;)S=x.pop(),M.appendChild(S),M=S;I!==N?(t.insertBefore(I,t.firstChild),N=S):N=t,u.check.isBreak(R)&&t.appendChild(R.cloneNode(!1)),T?(T.insertBefore(t,T.firstChild),v.insertBefore(T,v.firstChild),T=null):v.insertBefore(t,v.firstChild),b=F,w=F.data.length,_=!0,N.insertBefore(b,N.firstChild);continue}V=_?s(R):R.cloneNode(!1),V&&(N.insertBefore(V,N.firstChild),R.nodeType===1&&!u.check.isBreak(R)&&($=V)),L(R,$)}}(e,v),c&&!l&&!d.v)return{ancestor:e,container:n,offset:r};if(l&&(l=c),l)for(let L=0;L<y.length;L++){const B=y[L],N=B.childNodes;let O=null;for(;N[0];)O=N[0],v.insertBefore(O,B);u.utils.removeItem(B),L===y.length-1&&(b=O,w=O.textContent.length)}else if(c){t=t.firstChild;for(let L=0;L<y.length;L++)Ju(y[L])}if(!l&&v.childNodes.length===0)e.childNodes?b=e.childNodes[0]:(b=u.utils.createTextNode(Oe.zeroWidthSpace),e.appendChild(b));else{if(!c&&t.textContent.length===0)return o(this,me).nodeTransform.removeEmptyNode(v,null,!1),{ancestor:null,container:null,offset:0};o(this,me).nodeTransform.removeEmptyNode(v,t,!1),u.check.isZeroWidth(v.textContent)?(b=v.firstChild,w=b.textContent.length):u.check.isZeroWidth(b)&&(b=t,w=1);const L={s:0,e:0},B=u.query.getNodePath(b,v,L);w+=L.s;const N=o(this,me).nodeTransform.mergeSameTags(v,[B],!0);e.parentNode.replaceChild(v,e),b=u.query.getNodeFromPath(B,v),w+=N[0]}return{ancestor:v,container:b,offset:b.nodeType===1&&w===1?b.childNodes.length:w}},Ea=new WeakSet,Nm=function(e){return e&&typeof e!="string"&&e.nodeType!==3&&o(this,me).format.isTextStyleNode(e)&&!!e.style.fontSize},G1=new WeakSet,O3=function(e,t,s){return!s||e?null:u.query.getParentElement(s,this._isNonSplitNode.bind(this))||(t?null:u.query.getParentElement(s,E(this,Ea,Nm).bind(this)))},Y1=new WeakSet,V3=function(e,t,s){if(!s||e||s.nodeType!==1)return!1;const n=this._isNonSplitNode(s);return u.query.getParentElement(s,this._isNonSplitNode.bind(this))?n:n||(t?!1:E(this,Ea,Nm).call(this,s))},kn=new WeakSet,Wl=function(e,t){if(!u.check.isListCell(e))return;const s=u.utils.arrayFilter((t||e).childNodes,h=>!u.check.isBreak(h));if(t=s[0],!u.check.isElement(t)||s.length>1)return;const n=t.style,r=e.style,l=t.nodeName.toLowerCase();let c=!1;o(this,Ii).get("_defaultStyleTagMap")[l]===o(this,Ii).get("_defaultTagCommand").bold.toLowerCase()&&(r.fontWeight="bold"),o(this,Ii).get("_defaultStyleTagMap")[l]===o(this,Ii).get("_defaultTagCommand").italic.toLowerCase()&&(r.fontStyle="italic");const d=xe.getValues(n);if(d.length>0)for(let h=0,f=o(this,_n).length;h<f;h++)d.includes(o(this,Si)[h])&&(r[o(this,_n)[h]]=n[o(this,_n)[h]],n.removeProperty(o(this,Si)[h]),c=!0);if(E(this,kn,Wl).call(this,e,t),!!c&&n.length===0){const h=t.childNodes,f=t.parentNode,p=t.nextSibling;for(;h.length>0;)f.insertBefore(h[0],p);u.utils.removeItem(t)}},$o=new WeakSet,Yh=function(e,t){if(!u.check.isListCell(e))return;t||(t=o(this,Si));const s=u.utils.arrayFilter(e.childNodes,m=>!u.check.isBreak(m)),n=e.style,r=[],l=[],c=xe.getValues(n);for(let m=0,g=o(this,Si).length;m<g;m++)c.includes(o(this,Si)[m])&&t.includes(o(this,Si)[m])&&(r.push(o(this,_n)[m]),l.push(o(this,Si)[m]));if(r.length===0)return;const d=u.utils.createElement("SPAN");for(let m=0,g=r.length;m<g;m++)d.style[r[m]]=n[l[m]],n.removeProperty(l[m]);let h=d.cloneNode(!1),f=null,p=!1;for(let m=0,g=s.length,y,v;m<g;m++)y=s[m],!o(this,Ii).get("_defaultStyleTagMap")[y.nodeName.toLowerCase()]&&(v=xe.getValues(y.style),v.length===0||r.some(function(b){return!v.includes(b)})&&v.some(function(b){return r.includes(b)})?(f=y.nextSibling,h.appendChild(y)):h.childNodes.length>0&&(e.insertBefore(h,f),h=d.cloneNode(!1),f=null,p=!0));return h.childNodes.length>0&&(e.insertBefore(h,f),p=!0),n.length===0&&e.removeAttribute("style"),p};function Ju(i){const e=i.parentNode;if(!i||i.nodeType===3||!e)return;const t=i.childNodes;for(;t[0];)e.insertBefore(t[0],i);e.removeChild(i)}const yN=vN;class bN{constructor(e){C(this,nd);C(this,od);C(this,Fe,void 0);C(this,sd,void 0);k(this,Fe,e.$),k(this,sd,e.store)}apply(e,t,s){const n=(e.split(":")[0]||"ol").toUpperCase(),r=e.split(":")[1]||"";let l=o(this,Fe).selection.getRange(),c=t||o(this,Fe).format.getLinesAndComponents(!1);if(c.length===0&&(t||(l=o(this,Fe).selection.getRangeAndAddLine(l,null),c=o(this,Fe).format.getLinesAndComponents(!1),c.length===0)))return;u.query.sortNodeByDepth(c,!0);const d=c[0],h=c.at(-1);let f=(u.check.isListCell(d)||o(this,Fe).component.is(d))&&!d.previousElementSibling?d.parentElement.previousElementSibling:d.previousElementSibling,p=(u.check.isListCell(h)||o(this,Fe).component.is(h))&&!h.nextElementSibling?h.parentElement.nextElementSibling:h.nextElementSibling;const m=l.collapsed,g={sc:l.startContainer,so:l.startContainer===l.endContainer&&u.check.isZeroWidth(l.startContainer)&&l.startOffset===0&&l.endOffset===1?l.endOffset:l.startOffset,ec:l.endContainer,eo:l.endOffset};let y=null,v=!0;for(let b=0,w=c.length;b<w;b++)if(!u.check.isList(o(this,Fe).format.getBlock(c[b],_=>o(this,Fe).format.getBlock(_)&&_!==c[b]))){v=!1;break}if(v&&(!f||d.tagName!==f.tagName||n!==f.tagName.toUpperCase())&&(!p||h.tagName!==p.tagName||n!==p.tagName.toUpperCase())){if(s){for(let M=0,T=c.length;M<T;M++)for(let L=M-1;L>=0;L--)if(c[L].contains(c[M])){c.splice(M,1),M--,T--;break}}const b=o(this,Fe).format.getBlock(d),w=(b==null?void 0:b.tagName)===n;let _,x;const S=M=>!u.check.isComponentContainer(M);w||(x=u.utils.createElement(n,{style:"list-style-type: "+r}));for(let M=0,T=c.length,L,B;M<T;M++)B=o(this,Fe).format.getBlock(c[M],S),!(!B||!u.check.isList(B))&&(L?L!==B?(s&&u.check.isListCell(B.parentNode)?E(this,od,N0).call(this,_.f):y=o(this,Fe).format.removeBlock(_.f[0].parentElement,{selectedFormats:_.f,newBlockElement:x,shouldDelete:!1,skipHistory:!0}),B=c[M].parentNode,w||(x=u.utils.createElement(n,{style:"list-style-type: "+r})),L=B,_={r:L,f:[u.query.getParentElement(c[M],"LI")]}):_.f.push(u.query.getParentElement(c[M],"LI")):(L=B,_={r:L,f:[u.query.getParentElement(c[M],"LI")]}),M===T-1&&(s&&u.check.isListCell(B.parentNode)?E(this,od,N0).call(this,_.f):y=o(this,Fe).format.removeBlock(_.f[0].parentElement,{selectedFormats:_.f,newBlockElement:x,shouldDelete:!1,skipHistory:!0})))}else{const b=f&&f.parentNode,w=p&&p.parentNode;f=b&&!u.check.isWysiwygFrame(b)&&b.nodeName===n?b:f,p=w&&!u.check.isWysiwygFrame(w)&&w.nodeName===n?w:p;const _=(f==null?void 0:f.tagName)===n,x=(p==null?void 0:p.tagName)===n;let S=_?f:u.utils.createElement(n,{style:"list-style-type: "+r}),M=null,T=null;const L=B=>!u.check.isComponentContainer(B)&&!u.check.isList(B);for(let B=0,N=c.length,O,A,V,R,$,P,W,Z,F;B<N;B++){if(A=c[B],A.childNodes.length===0&&!o(this,Fe).inline._isIgnoreNodeChange(A)){u.utils.removeItem(A);continue}if(R=c[B+1],$=A.parentNode,P=R?R.parentNode:null,V=u.check.isListCell(A),F=o(this,Fe).format.isBlock($)?$:null,W=V&&!u.check.isWysiwygFrame($)?$.parentNode:$,Z=V&&!u.check.isWysiwygFrame($)?!R||u.check.isListCell(W)?$:$.nextSibling:A.nextSibling,O=u.utils.createElement("LI"),o(this,Fe).component.is(A)){const I=/^HR$/i.test(A.nodeName);I||(O.innerHTML="<br>"),O.innerHTML+=A.outerHTML,I&&(O.innerHTML+="<br>")}else{u.utils.copyFormatAttributes(O,A);const I=A.childNodes;for(;I[0];)O.appendChild(I[0])}S.appendChild(O),(!R||W!==P||o(this,Fe).format.isBlock(Z))&&(M||(M=S),(!_||!R||W!==P)&&!(R&&u.check.isList(P)&&P===$)&&S.parentNode!==W&&W.insertBefore(S,Z)),u.utils.removeItem(A),_&&T===null&&(T=S.children.length-1),R&&(o(this,Fe).format.getBlock(P,L)!==o(this,Fe).format.getBlock($,L)||u.check.isList(P)&&u.check.isList($)&&u.query.getNodeDepth(P)!==u.query.getNodeDepth($))&&(S=u.utils.createElement(n,{style:"list-style-type: "+r})),(F==null?void 0:F.children.length)===0&&u.utils.removeItem(F)}T&&(M=M.children[T]),x&&(S.innerHTML+=p.innerHTML,u.utils.removeItem(p))}return o(this,sd).set("_lastSelectionNode",null),!v||!m?g:y||g}remove(e,t){let s={},n=!1,r=!1,l=null,c=null;const d=h=>!u.check.isComponentContainer(h);for(let h=0,f=e.length,p,m,g,y;h<f;h++){if(g=h===f-1,m=o(this,Fe).format.getBlock(e[h],d),y=u.check.isList(m),!p&&y)p=m,s={r:p,f:[u.query.getParentElement(e[h],"LI")]},h===0&&(n=!0);else if(p&&y)if(p!==m){const v=o(this,Fe).format.removeBlock(s.f[0].parentNode,{selectedFormats:s.f,newBlockElement:null,shouldDelete:t,skipHistory:!0});m=e[h].parentNode,n&&(l=v.sc,n=!1),g&&(c=v.ec),y?(p=m,s={r:p,f:[u.query.getParentElement(e[h],"LI")]},g&&(r=!0)):p=null}else s.f.push(u.query.getParentElement(e[h],"LI")),g&&(r=!0);if(g&&u.check.isList(p)){const v=o(this,Fe).format.removeBlock(s.f[0].parentNode,{selectedFormats:s.f,newBlockElement:null,shouldDelete:t,skipHistory:!0});(r||f===1)&&(c=v.ec),n&&(l=v.sc||c)}}return{sc:l,ec:c}}applyNested(e,t){var c;e=e||o(this,Fe).format.getLines().filter(function(d){return u.check.isListCell(d)});const s=e.length;if(s===0||!t&&!u.check.isListCell(e[0].previousElementSibling)&&!u.check.isListCell(e.at(-1).nextElementSibling))return{sc:e[0],so:0,ec:e.at(-1),eo:1};let n=e[0].parentElement,r=e.at(-1),l=null;if(t){if(n!==r.parentElement&&u.check.isList((c=r.parentElement)==null?void 0:c.parentElement)&&r.nextElementSibling)for(r=r.nextElementSibling;r;)e.push(r),r=r.nextElementSibling;l=this.apply(n.nodeName+":"+n.style.listStyleType,e,!0)}else{let d=u.utils.createElement(n.nodeName),h=e[0].previousElementSibling,f=r.nextElementSibling;const p={s:null,e:null,sl:n,el:n},{startContainer:m,startOffset:g,endContainer:y,endOffset:v}=o(this,Fe).selection.getRange();for(let b=0,w=s,_;b<w;b++)_=e[b],_.parentElement!==n&&(E(this,nd,B0).call(this,n,d,h,f,p),n=_.parentElement,d=u.utils.createElement(n.nodeName)),h=_.previousElementSibling,f=_.nextElementSibling,d.appendChild(_);if(E(this,nd,B0).call(this,n,d,h,f,p),s>1){const b=u.query.getNodeFromPath(p.s,p.sl),w=u.query.getNodeFromPath(p.e,p.el);l={sc:b,so:0,ec:w,eo:w.textContent.length}}else l={sc:m,so:g,ec:y,eo:v}}return l}removeNested(e,t){const s=ay(e);let n,r;if(s){n=s.cloneNode(!1),r=s.childNodes;const c=u.query.getPositionIndex(e);for(;r[c];)n.appendChild(r[c])}else n=e;let l;if(t)l=u.query.getListChildren(n,c=>u.check.isListCell(c)&&!c.previousElementSibling,null);else{const c=u.query.getNodeDepth(e)+2;l=u.query.getListChildren(e,d=>u.check.isListCell(d)&&!d.previousElementSibling&&u.query.getNodeDepth(d)===c,null)}for(let c=0,d=l.length;c<d;c++)ay(l[c]);return s&&(s.parentNode.insertBefore(n,s.nextSibling),(r==null?void 0:r.length)===0&&u.utils.removeItem(s)),n===e?n.parentNode:n}}Fe=new WeakMap,sd=new WeakMap,nd=new WeakSet,B0=function(e,t,s,n,r){let l=!1;if(t.tagName===(s==null?void 0:s.tagName)){const c=t.children;for(;c[0];)s.appendChild(c[0]);t=s,l=!0}if(t.tagName===(n==null?void 0:n.tagName)){const c=n.children;for(;c[0];)t.appendChild(c[0]);const d=n.nextElementSibling;n.parentNode.removeChild(n),n=d}if(!l){u.check.isListCell(s)&&(e=s,n=null),e.insertBefore(t,n),r.s||(r.s=u.query.getNodePath(t.firstElementChild.firstChild,e,null),r.sl=e);const c=e.contains(r.sl)?u.query.getNodePath(r.sl,e):null;r.e=u.query.getNodePath(t.lastElementChild.firstChild,e,null),r.el=e,o(this,Fe).nodeTransform.mergeSameTags(e,[r.s,r.e,c],!1),o(this,Fe).nodeTransform.mergeNestedTags(e),c&&(r.sl=u.query.getNodeFromPath(c,e))}return t},od=new WeakSet,N0=function(e){const t=e[0],s=e.at(-1),n=s.nextElementSibling,r=t.parentElement,l=r.parentElement.nextElementSibling,c=r.parentElement.parentElement;for(let h=0,f=e.length;h<f;h++)c.insertBefore(e[h],l);if(n&&r.children.length>0){const h=r.cloneNode(!1),f=r.childNodes,p=u.query.getPositionIndex(n);for(;f[p];)h.appendChild(f[p]);s.appendChild(h)}r.children.length===0&&u.utils.removeItem(r),o(this,Fe).nodeTransform.mergeSameTags(c);const d=u.query.getEdgeChildNodes(t,s);return{cc:t.parentNode,sc:d.sc,ec:d.ec}};function ay(i){const e=i.parentNode;let t=e.parentNode,s=e,n,r,l,c,d;for(;u.check.isListCell(t);){for(c=u.query.getPositionIndex(i),n=t.nextElementSibling,r=t.parentNode,l=s;l;){if(s=s.nextSibling,u.check.isList(l)){for(d=l.childNodes;d[c];)r.insertBefore(d[c],n);d.length===0&&u.utils.removeItem(l)}else r.appendChild(l);l=s}t=r.parentNode}return e.children.length===0&&u.utils.removeItem(e),r}const CN=bN,{_d:vc}=pe,wN="data-se-[^\\s]+",_N="|data-index|data-file-size|data-file-name|data-exp|data-font-size",kN=new RegExp(Oe.zeroWidthSpace+"+","g");class xN{constructor(e){C(this,Io);C(this,bd);C(this,K1);C(this,X1);C(this,Q1);C(this,J1);C(this,ef);C(this,tf);C(this,Cd);C(this,wd);C(this,Do);C(this,sf);C(this,nf);C(this,of);C(this,rf);C(this,af);C(this,lf);C(this,q,void 0);C(this,Di,void 0);C(this,et,void 0);C(this,Oo,void 0);C(this,Tt,void 0);C(this,rd,void 0);C(this,ad,void 0);C(this,ld,void 0);C(this,cd,void 0);C(this,Ta,void 0);C(this,dd,void 0);C(this,hd,void 0);C(this,ud,void 0);C(this,fd,void 0);C(this,pd,void 0);C(this,md,void 0);C(this,gd,void 0);C(this,Vo,void 0);C(this,Sa,void 0);C(this,Ma,void 0);C(this,Ba,void 0);C(this,Na,void 0);C(this,vd,void 0);C(this,yd,void 0);C(this,Ro,void 0);k(this,q,e.$),k(this,Di,e.store);const t=k(this,Tt,o(this,q).options);k(this,Oo,o(this,q).frameOptions),k(this,et,o(this,q).frameContext),k(this,rd,o(this,q).instanceCheck),k(this,ld,(function(b){return this.test(b)?b:""}).bind(t.get("allowedClassName"))),k(this,Sa,t.get("_textStyleTags"));const s=t.get("tagStyles"),n={};for(const b in s){const w=b.split("|");for(let _=0,x=w.length,S;_<x;_++)S=w[_],n[S]?n[S]+="|":n[S]="",n[S]+=s[b]}for(const b in n)n[b]=new RegExp(`\\s*[^-a-zA-Z](${n[b]})\\s*:[^;]+(?!;)*`,"gi");const r=new Map;for(const b in n)r.set(new RegExp(`^(${b})$`),n[b]);k(this,gd,new RegExp(`^(${Object.keys(n).join("|")})$`,"i")),k(this,Vo,r),k(this,ad,new RegExp("\\d+("+t.get("fontSizeUnits").join("|")+")$","i"));const l=t.get("_allowedExtraTag"),c=t.get("_disallowedExtraTag");k(this,Ma,new RegExp(`<(${c})[^>]*>([\\s\\S]*?)<\\/\\1>|<(${c})[^>]*\\/?>`,"gi")),k(this,Ba,new RegExp(`^(${c})$`,"i")),k(this,Na,new RegExp(`^(${l})$`,"i"));const d=Object.keys(t.get("_defaultStyleTagMap")),h=t.get("elementWhitelist")?t.get("elementWhitelist").split("|").filter(b=>/b|i|ins|s|strike/i.test(b)):[];for(let b=0;b<h.length;b++)d.splice(d.indexOf(h[b].toLowerCase()),1);k(this,Ta,d.length===0?null:new RegExp("(<\\/?)("+d.join("|")+")\\b\\s*([^>^<]+)?\\s*(?=>)","gi"));const f=t.get("__defaultAttributeWhitelist");k(this,cd,t.get("_editorElementWhitelist").includes("//")||t.get("_editorElementWhitelist")==="*"),k(this,dd,new RegExp("^("+Pr(t.get("_editorElementWhitelist").replace("|//",""),"")+")$","i")),k(this,hd,new RegExp("^("+(t.get("elementBlacklist")||"^")+")$","i")),k(this,ud,xe.createElementWhitelist(Pr(t.get("_editorElementWhitelist").replace("|//","|<!--|-->"),""))),k(this,fd,xe.createElementBlacklist(t.get("elementBlacklist").replace("|//","|<!--|-->")));const p='\\s*=\\s*(")[^"]*\\1',m=t.get("attributeWhitelist");let g={},y="";if(m)for(const b in m)/^on[a-z]+$/i.test(m[b])||(b==="*"?y=Pr(m[b],f):g[b]=new RegExp("\\s(?:"+Pr(m[b],f)+")"+p,"ig"));k(this,pd,new RegExp("\\s(?:"+(y||f)+"|"+wN+(t.get("v2Migration")?_N:"")+")"+p,"ig")),k(this,vd,g);const v=t.get("attributeBlacklist");if(g={},y="",v)for(const b in v)b==="*"?y=Pr(v[b],""):g[b]=new RegExp("\\s(?:"+Pr(v[b],"")+")"+p,"ig");k(this,md,new RegExp("\\s(?:"+(y||"^")+")"+p,"ig")),k(this,yd,g),this.__resetAutoStyleify(t.get("autoStyleify"))}filter(e,{tagWhitelist:t,tagBlacklist:s,validate:n,validateAll:r}){if(t&&(e=e.replace(xe.createElementWhitelist(t),"")),s&&(e=e.replace(xe.createElementBlacklist(s),"")),n){const l=new DOMParser().parseFromString(e,"text/html");l.body.querySelectorAll("*").forEach(c=>{if(r||!c.closest(".se-component")&&!c.closest(".se-flex-component")){const d=n(c);d===null?c.remove():o(this,rd).isNode(d)?c.replaceWith(d):typeof d=="string"&&(c.outerHTML=d)}}),e=l.body.innerHTML}return e}clean(e,{forceFormat:t,whitelist:s,blacklist:n,_freeCodeViewMode:r}={}){const{tagFilter:l,formatFilter:c,classFilter:d,textStyleTagFilter:h,attrFilter:f,styleFilter:p}=o(this,Tt).get("strictMode");let m="";if(e=this.compress(e),l&&(e=e.replace(o(this,Ma),""),e=E(this,sf,z3).call(this,e,o(this,ud),o(this,fd)).replace(/<br\/?>$/i,"")),o(this,Ro)){const v=new DOMParser().parseFromString(e,"text/html");u.query.getListChildNodes(v.body,xe.spanToStyleNode.bind(null,o(this,Ro)),null),e=v.body.innerHTML}(f||p)&&(e=e.replace(/(<[a-zA-Z0-9-]+)[^>]*(?=>)/g,E(this,rf,U3).bind(this,f,p)));const g=vc.createRange().createContextualFragment(e);if(l)try{E(this,Q1,D3).call(this,g,o(this,dd),o(this,hd),l,c,d,r)}catch(v){console.warn("[SUNEDITOR.html.clean.fail]",v.message)}const y=g.querySelectorAll("[data-se-iframe-holder]");for(let v=0,b=y.length;v<b;v++){const w=u.utils.createElement("iframe"),_=JSON.parse(y[v].getAttribute("data-se-iframe-holder-attrs"));for(const[x,S]of Object.entries(_))/^on/i.test(x)||x==="src"&&!hy(String(S))||w.setAttribute(x,S);y[v].replaceWith(w)}if(o(this,q).pluginManager.applyRetainFormat(g),c){let v=g.childNodes;t||(t=E(this,wd,$0).call(this,v)),t&&(v=E(this,tf,F3).call(this,g).childNodes);for(let b=0,w=v.length,_;b<w;b++){if(_=v[b],o(this,Na).test(_.nodeName)){m+=_.outerHTML;continue}m+=E(this,K1,R3).call(this,_,t)}}return m||(m=e),l&&(s&&(m=m.replace(typeof s=="string"?xe.createElementWhitelist(s):s,"")),n&&(m=m.replace(typeof n=="string"?xe.createElementBlacklist(n):n,""))),h&&(m=E(this,ef,H3).call(this,m)),!r&&m.includes(Oe.zeroWidthSpace)&&(m=m.replace(kN,(v,b,w)=>{const _=b===0||w[b-1]===">",x=b+v.length===w.length||w[b+v.length]==="<";return _&&x?v:""})),m}insert(e,{selectInserted:t,skipCharCount:s,skipCleaning:n}={}){o(this,et).get("wysiwyg").contains(o(this,q).selection.get().focusNode)||o(this,q).focusManager.focus(),this.remove(),o(this,q).focusManager.focus();let r=null;if(typeof e=="string"){n||(e=this.clean(e,{forceFormat:!1,whitelist:null,blacklist:null}));try{if(u.check.isListCell(o(this,q).format.getLine(o(this,q).selection.getNode(),null))){const v=vc.createRange().createContextualFragment(e).childNodes;E(this,wd,$0).call(this,v)&&(e=E(this,Cd,A0).call(this,v))}const c=vc.createRange().createContextualFragment(e).childNodes;if(!s){const y=o(this,Oo).get("charCounter_type")==="byte-html"?"outerHTML":"textContent";let v="";for(let b=0,w=c.length;b<w;b++)v+=c[b][y];if(!o(this,q).char.check(v))return}let d,h,f,p,m;for(;d=c[0];){if((p==null?void 0:p.nodeType)===3&&(h==null?void 0:h.nodeType)===1&&u.check.isBreak(d)){p=d,u.utils.removeItem(d);continue}f=this.insertNode(d,{afterNode:h,skipCharCount:!0}),h=f.container||f,m||(m=f),p=d}(p==null?void 0:p.nodeType)===3&&(h==null?void 0:h.nodeType)===1&&(h=p);const g=h.nodeType===3?f.endOffset||h.textContent.length:h.childNodes.length;r=h,t?o(this,q).selection.setRange(m.container||m,m.startOffset||0,h,g):o(this,q).component.is(h)||o(this,q).selection.setRange(h,g,h,g)}catch(l){if(o(this,et).get("isReadOnly")||o(this,et).get("isDisabled"))return;throw Error(`[SUNEDITOR.html.insert.error] ${l.message}`)}}else if(o(this,q).component.is(e))o(this,q).component.insert(e,{skipCharCount:s,insertBehavior:"none"});else{let l=null;(o(this,q).format.isLine(e)||u.check.isMedia(e))&&(l=o(this,q).format.getLine(o(this,q).selection.getNode(),null)),this.insertNode(e,{afterNode:l,skipCharCount:s})}if(o(this,Di).set("_lastSelectionNode",null),r){const l=u.query.getListChildNodes(r,null,null);if(l.length>0){r=l.at(-1);const c=(r==null?void 0:r.nodeType)===3?r.textContent.length:1;o(this,q).selection.setRange(r,c,r,c)}else o(this,q).focusManager.focus()}else o(this,q).focusManager.focus();o(this,q).history.push(!1)}insertNode(e,{afterNode:t,skipCharCount:s}={}){let n=null;if(o(this,et).get("isReadOnly")||!s&&!o(this,q).char.check(e))return n;let r=null,l=null;if(t){const M=o(this,q).format.isLine(t)||o(this,q).format.isBlock(t)||o(this,q).component.is(t)?o(this,q).format.addLine(t,null):t;l=o(this,q).selection.setRange(M,1,M,1)}else l=o(this,q).selection.getRange();let c=u.check.isListCell(l.commonAncestorContainer)?l.commonAncestorContainer:o(this,q).format.getLine(o(this,q).selection.getNode(),null),d=u.check.isListCell(c)&&(u.check.isListCell(e)||u.check.isList(e)),h,f,p,m=null;const g=o(this,q).format.isBrLine(c),y=o(this,q).format.isLine(e)||o(this,q).format.isBlock(e)||o(this,q).component.isBasic(e);if(d&&(p=t||u.check.isList(e)?c.lastChild:c.nextElementSibling,m=u.check.isList(e)?c:(p||c).parentNode),!t&&(y||o(this,q).component.isBasic(e)||u.check.isMedia(e))){const M=u.check.isEdgePoint(l.endContainer,l.endOffset,"end"),T=this.remove(),L=T.container,B=L===T.prevContainer&&l.collapsed?null:T.prevContainer;if(d&&B)if(m=B.nodeType===3?B.parentNode:B,m.contains(L)){let N=!0;for(p=L;p.parentNode&&p.parentNode!==m;)p=p.parentNode,N=!1;N&&L===B&&(p=p.nextSibling)}else p=null;else if(d&&u.check.isListCell(L)&&!c.parentElement)c=u.utils.createElement("LI"),m.appendChild(c),L.appendChild(m),p=null;else if(L.nodeType===3||u.check.isBreak(L)||d){const N=u.query.getParentElement(L,O=>o(this,q).format.isBlock(O)||u.check.isListCell(O));if(t=o(this,q).nodeTransform.split(L,T.offset,N?u.query.getNodeDepth(N)+1:0),!t)u.check.isListCell(c)||(p=t=c);else if(d){if(c.contains(L)){const O=u.check.isList(c.lastElementChild);let A=null;M||(A=c.cloneNode(!1),A.appendChild(t.textContent.trim()?t:u.utils.createTextNode(Oe.zeroWidthSpace))),O&&(A||(A=c.cloneNode(!1),A.appendChild(u.utils.createTextNode(Oe.zeroWidthSpace))),A.appendChild(c.lastElementChild)),A&&(c.parentNode.insertBefore(A,c.nextElementSibling),p=t=A)}}else t=t.previousSibling}}l=!t&&!y?o(this,q).selection.getRangeAndAddLine(o(this,q).selection.getRange(),null):o(this,q).selection.getRange();const v=l.commonAncestorContainer,b=l.startOffset,w=l.endOffset,_=l.startContainer===v&&o(this,q).format.isLine(v),x=_&&(v.childNodes[b]||v.childNodes[0])||l.startContainer,S=_&&(v.childNodes[w]||v.childNodes[v.childNodes.length-1])||l.endContainer;if(!d)if(t)h=t.parentNode,t=t.nextSibling,f=!0;else if(h=x,x.nodeType===3&&(h=x.parentNode),l.collapsed)if(v.nodeType===3)v.textContent.length>w?t=v.splitText(w):t=v.nextSibling;else if(u.check.isBreak(h))t=h,h=h.parentNode;else{const M=h.childNodes[b],T=(M==null?void 0:M.nodeType)===3&&u.check.isZeroWidth(M)&&u.check.isBreak(M.nextSibling)?M.nextSibling:M;T?!T.nextSibling&&u.check.isBreak(T)?(h.removeChild(T),t=null):t=u.check.isBreak(T)&&!u.check.isBreak(e)?T:T.nextSibling:t=null}else if(x===S){u.check.isEdgePoint(S,w)?t=S.nextSibling:t=S.splitText(w);let T=x;u.check.isEdgePoint(x,b)||(T=x.splitText(b)),h.removeChild(T),h.childNodes.length===0&&y&&(h.innerHTML="<br>")}else{const T=this.remove(),L=T.container,B=T.prevContainer;if((L==null?void 0:L.childNodes.length)===0&&y&&(o(this,q).format.isLine(L)?L.innerHTML="<br>":o(this,q).format.isBlock(L)&&(L.innerHTML="<"+o(this,Tt).get("defaultLine")+"><br></"+o(this,Tt).get("defaultLine")+">")),u.check.isListCell(L)&&e.nodeType===3)h=L,t=null;else if(!y&&B)if(h=B.nodeType===3?B.parentNode:B,h.contains(L)){let N=!0;for(t=L;t.parentNode&&t.parentNode!==h;)t=t.parentNode,N=!1;N&&L===B&&(t=t.nextSibling)}else t=null;else u.check.isWysiwygFrame(L)&&!o(this,q).format.isLine(e)?(h=L.appendChild(u.utils.createElement(o(this,Tt).get("defaultLine"))),t=null):(t=y?S:L===B?L.nextSibling:L,h=!t||!t.parentNode?v:t.parentNode);for(;t&&!o(this,q).format.isLine(t)&&t.parentNode!==v;)t=t.parentNode}try{const M=o(this,et).get("wysiwyg");if(!d){if((u.check.isWysiwygFrame(t)||h===M.parentNode)&&(h=M,t=null),o(this,q).format.isLine(e)||o(this,q).format.isBlock(e)||!u.check.isListCell(h)&&o(this,q).component.isBasic(e)){const T=h;if(u.check.isListCell(t))h=t.previousElementSibling||t;else if(!f&&!t){const L=this.remove(),B=L.container.nodeType===3?u.check.isListCell(o(this,q).format.getLine(L.container,null))?L.container:o(this,q).format.getLine(L.container,null)||L.container.parentNode:L.container,N=u.check.isWysiwygFrame(B)||o(this,q).format.isBlock(B);h=N?B:B.parentNode,t=N?null:B.nextSibling}T.childNodes.length===0&&h!==T&&u.utils.removeItem(T)}if(y&&!g&&!o(this,q).format.isBlock(h)&&!u.check.isListCell(h)&&!u.check.isWysiwygFrame(h)&&(t=h.nextElementSibling,h=h.parentNode),u.check.isWysiwygFrame(h)&&(e.nodeType===3||u.check.isBreak(e))){const T=u.utils.createElement(o(this,Tt).get("defaultLine"),null,e);r=e,e=T}}if(d?m.parentNode?(h=m,t=p):(h=M,t=null):t=h===t?h.lastChild:t,u.check.isListCell(e)&&!u.check.isList(h)){if(u.check.isListCell(h))t=h.nextElementSibling,h=h.parentNode;else{const T=u.utils.createElement("ol");h.insertBefore(T,t),h=T,t=null}d=!0}if(E(this,nf,j3).call(this,e,h),h.insertBefore(e,t),d)if(u.check.isZeroWidth(c.textContent.trim()))u.utils.removeItem(c),e=e.lastChild;else{const T=u.utils.arrayFind(c.children,u.check.isList);T&&(e!==T?(e.appendChild(T),e=T.previousSibling):(h.appendChild(e),e=h),u.check.isZeroWidth(c.textContent.trim())&&u.utils.removeItem(c))}}catch(M){h.appendChild(e),console.warn("[SUNEDITOR.html.insertNode.warn]",M)}finally{r&&(e=r);const M=h.querySelectorAll("[data-duple]");if(M.length>0)for(let T=0,L=M.length,B,N,O,A;T<L;T++){for(B=M[T],O=B.childNodes,A=B.parentNode;O[0];)N=O[0],A.insertBefore(N,B);B===e&&(e=N),u.utils.removeItem(B)}if((o(this,q).format.isLine(e)||o(this,q).component.isBasic(e))&&x===S){const T=o(this,q).format.getLine(v,null);(T==null?void 0:T.nodeType)===1&&u.check.isEmptyLine(T)&&u.utils.removeItem(T)}if(g&&!u.check.isList(e)&&(o(this,q).format.isLine(e)||o(this,q).format.isBlock(e))&&(e=E(this,bd,L0).call(this,e)),!o(this,q).component.isBasic(e)){let T=1;if(e.nodeType===3)T=e.textContent.length,o(this,q).selection.setRange(e,T,e,T);else if(!u.check.isBreak(e)&&!u.check.isListCell(e)&&o(this,q).format.isLine(h)){let L=null;(!e.previousSibling||u.check.isBreak(e.previousSibling))&&(L=u.utils.createTextNode(Oe.zeroWidthSpace),e.parentNode.insertBefore(L,e)),(!e.nextSibling||u.check.isBreak(e.nextSibling))&&(L=u.utils.createTextNode(Oe.zeroWidthSpace),e.parentNode.insertBefore(L,e.nextSibling)),o(this,q).inline._isIgnoreNodeChange(e)&&(e=e.nextSibling,T=0),o(this,q).selection.setRange(e,T,e,T)}}n=e}return n}remove(){var N,O,A;o(this,q).selection.resetRangeToTextNode();const e=o(this,q).selection.getRange(),t=e.startOffset===0,s=u.check.isEdgePoint(e.endContainer,e.endOffset,"end");let n=null,r=null,l=null;t&&(r=o(this,q).format.getLine(e.startContainer),n=r?r.previousElementSibling:null,r=r&&n),s&&(l=o(this,q).format.getLine(e.endContainer),l=l&&l.nextElementSibling);let c,d=0,h=e.startContainer,f=e.endContainer,p=e.startOffset,m=e.endOffset;const g=e.commonAncestorContainer.nodeType===3&&e.commonAncestorContainer.parentNode===h.parentNode?h.parentNode:e.commonAncestorContainer;if(u.check.isWysiwygFrame(h)&&u.check.isWysiwygFrame(f))return this.set(""),{container:o(this,q).selection.getNode(),offset:0,commonCon:g};if(g===h&&g===f)if(o(this,q).component.isBasic(g)){const R=o(this,q).component.get(g).container,$=R.parentElement,P=R.nextSibling||R.previousSibling,W=P===R.previousSibling?((N=P==null?void 0:P.textContent)==null?void 0:N.length)||1:0,Z=$.nextElementSibling||$.previousElementSibling,F=Z===$.previousElementSibling?((O=Z==null?void 0:Z.textContent)==null?void 0:O.length)||1:0;return u.utils.removeItem(R),o(this,q).format.isLine($)?$.childNodes.length===0?(u.utils.removeItem($),{container:Z,offset:F,commonCon:g}):{container:P,offset:W,commonCon:g}:{container:Z,offset:F,commonCon:g}}else{if(g.nodeType===1&&p===0&&m===1||g.nodeType===3&&p===0&&m===g.textContent.length){const V=u.query.getNextDeepestNode(g,o(this,et).get("wysiwyg")),R=u.query.getPreviousDeepestNode(g,o(this,et).get("wysiwyg")),$=o(this,q).format.getLine(g);u.utils.removeItem(g);let P=V||R,W=V?0:(P==null?void 0:P.nodeType)===3?P.textContent.length:1;const Z=o(this,q).format.getLine(P)||o(this,q).component.get(P);return $!==Z&&(P=Z,W=W===0?0:1),u.check.isZeroWidth($)&&!$.contains(P)&&u.utils.removeItem($),{container:P,offset:W,commonCon:g}}h=g.children[p],f=g.children[m],p=m=0}if(!h||!f)return{container:g,offset:0,commonCon:g};if(h===f&&e.collapsed&&u.check.isZeroWidth((A=h.textContent)==null?void 0:A.substring(p)))return{container:h,offset:p,prevContainer:h&&h.parentNode?h:null,commonCon:g};let y=null,v=null;const b=u.query.getListChildNodes(g,null,null);let w=u.utils.getArrayIndex(b,h),_=u.utils.getArrayIndex(b,f);if(b.length>0&&w>-1&&_>-1){for(let V=w+1,R=h;V>=0;V--)b[V]===R.parentNode&&b[V].firstChild===R&&p===0&&(w=V,R=R.parentNode);for(let V=_-1,R=f;V>w;V--)b[V]===R.parentNode&&b[V].nodeType===1&&(b.splice(V,1),R=R.parentNode,--_)}else{if(b.length===0){if(o(this,q).format.isLine(g)||o(this,q).format.isBlock(g)||u.check.isWysiwygFrame(g)||u.check.isBreak(g)||u.check.isMedia(g))return{container:g,offset:0,commonCon:g};if(u.check.isText(g))return{container:g,offset:m,commonCon:g};b.push(g),h=f=g}else if(h=f=b[0],u.check.isBreak(h)||u.check.isZeroWidth(h))return{container:u.check.isMedia(g)?g:h,offset:0,commonCon:g};w=_=0}const x=u.check.isText,S=u.check.isElement,M=w===_;let T=null;for(let V=w;V<=_;V++){const R=b[V];if(x(R)&&(R.data===void 0||R.length===0)){T=E(this,Io,Kh).call(this,R,M);continue}if(R===h){if(S(h)){if(o(this,q).component.is(h))continue;y=u.utils.createTextNode(h.textContent)}else{const $=h,P=f;R===f?(y=u.utils.createTextNode($.substringData(0,p)+P.substringData(m,P.length-m)),d=p):y=u.utils.createTextNode($.substringData(0,p))}if(y.length>0?h.data=y.data:T=E(this,Io,Kh).call(this,h,M),R===f)break;continue}if(R===f){if(x(f))v=u.utils.createTextNode(f.substringData(m,f.length-m));else{if(o(this,q).component.is(f))continue;v=u.utils.createTextNode(f.textContent)}v.length>0?f.data=v.data:T=E(this,Io,Kh).call(this,f,M);continue}T=E(this,Io,Kh).call(this,R,M)}const L=u.query.getParentElement(f,"ul"),B=u.query.getParentElement(h,"li");if(L&&B&&B.contains(L)?(c=L.previousSibling,d=c.textContent.length):(c=f&&f.parentNode?f:h&&h.parentNode?h:e.endContainer||e.startContainer,(t||s)&&(s?c.nodeType===1&&c.childNodes.length===0?(c.appendChild(u.utils.createElement("BR")),d=1):d=c.textContent.length:d=0)),!o(this,q).format.getLine(c)&&!(h&&h.parentNode)&&(l?(c=l,d=0):r&&(c=r,d=1)),!u.check.isWysiwygFrame(c)&&c.childNodes.length===0){const V=o(this,q).nodeTransform.removeAllParents(c,null,null);V&&(c=V.sc||V.ec||o(this,et).get("wysiwyg"))}return(!c||c.nodeType===1&&!o(this,q).format.isLine(c)&&!u.check.isBreak(c))&&(c=(T==null?void 0:T.sc)||(T==null?void 0:T.ec),d=(c==null?void 0:c.nodeType)===3?c.textContent.length:1),o(this,q).selection.setRange(c,d,c,d),{container:c,offset:d,prevContainer:n,commonCon:g!=null&&g.parentElement?g:null}}get({withFrame:e,includeFullPage:t,rootKey:s}={}){s?Array.isArray(s)||(s=[s]):s=[o(this,Di).get("rootKey")];const n=o(this,Di).get("rootKey"),r={};for(let l=0,c=s.length,d;l<c;l++){o(this,q).facade.changeFrameContext(s[l]);const h=u.utils.createElement("DIV",null,this._convertToCode(o(this,et).get("wysiwyg"),!0)),f=h.querySelectorAll(".se-placeholder-line");for(let b=0,w=f.length;b<w;b++)f[b].classList.remove("se-placeholder-line"),f[b].removeAttribute("data-se-placeholder-line"),f[b].getAttribute("class")||f[b].removeAttribute("class");const p=u.check.isTableCell,m=u.check.isEmptyLine,g=[],y=[];u.query.getListChildren(h,b=>{b.hasAttribute("contenteditable")&&g.push(b);const w=b.parentElement;return p(w)&&w.children.length<=1&&m(b)&&y.push(w),!1},null);for(let b=0,w=g.length;b<w;b++)g[b].removeAttribute("contenteditable");for(let b=0,w=y.length;b<w;b++)y[b].innerHTML="<br>";E(this,lf,Z3).call(this,h);const v=h.innerHTML;if(o(this,Oo).get("iframe_fullPage"))if(t){const b=u.utils.getAttributesToString(o(this,et).get("_wd").body,["contenteditable"]);d=`<!DOCTYPE html><html>${o(this,et).get("_wd").head.outerHTML}<body ${b}>${v}</body></html>`}else d=v;else d=e?`<div class="${o(this,Tt).get("_editableClass")+(o(this,Tt).get("_rtl")?" se-rtl":"")}">${v}</div>`:h.innerHTML;r[s[l]]=d}return o(this,q).facade.changeFrameContext(n),s.length>1?r:r[s[0]]}set(e,{rootKey:t}={}){o(this,q).ui.offCurrentController(),o(this,q).selection.removeRange();const s=e==null?"":this.clean(e,{forceFormat:!0,whitelist:null,blacklist:null});t?Array.isArray(t)||(t=[t]):t=[o(this,Di).get("rootKey")];for(let n=0;n<t.length;n++)if(o(this,q).facade.changeFrameContext(t[n]),o(this,et).get("isMarkdownView")){const r=xe.htmlToJson(s);o(this,et).get("markdown").value=Ku.jsonToMarkdown(r)}else if(!o(this,et).get("isCodeView"))o(this,et).get("wysiwyg").innerHTML=s,o(this,q).pluginManager.resetFileInfo(),o(this,q).history.push(!1,t[n]);else{const r=this._convertToCode(s,!1);o(this,q).viewer._setCodeView(r)}}add(e,{rootKey:t}={}){o(this,q).ui.offCurrentController(),t?Array.isArray(t)||(t=[t]):t=[o(this,Di).get("rootKey")];for(let s=0;s<t.length;s++){o(this,q).facade.changeFrameContext(t[s]);const n=this.clean(e,{forceFormat:!0,whitelist:null,blacklist:null});if(o(this,et).get("isMarkdownView")){const r=xe.htmlToJson(n);o(this,et).get("markdown").value+=`
86
+ `+Ku.jsonToMarkdown(r)}else if(o(this,et).get("isCodeView"))o(this,q).viewer._setCodeView(o(this,q).viewer._getCodeView()+`
87
+ `+this._convertToCode(n,!1));else{const r=u.utils.createElement("DIV",null,n),l=Array.from(r.children);for(let c=0,d=l.length;c<d;c++)o(this,et).get("wysiwyg").appendChild(l[c]);o(this,q).history.push(!1,t[s]),o(this,q).selection.scrollTo(l.at(-1))}}}getJson({withFrame:e,rootKey:t}={}){return xe.htmlToJson(this.get({withFrame:e,rootKey:t}))}setJson(e,{rootKey:t}={}){this.set(xe.jsonToHtml(e),{rootKey:t})}async copy(e){try{return typeof e!="string"&&!u.check.isElement(e)&&!u.check.isText(e)?!1:await SB.write(e)===!1?(o(this,q).ui.showToast(o(this,q).lang.message_copy_fail,o(this,Tt).get("toastMessageTime").copy,"error"),!1):(o(this,q).ui.showToast(o(this,q).lang.message_copy_success,o(this,Tt).get("toastMessageTime").copy),!0)}catch(t){return console.error("[SUNEDITOR.html.copy.fail] :",t),o(this,q).ui.showToast(o(this,q).lang.message_copy_fail,o(this,Tt).get("toastMessageTime").copy,"error"),!1}}setFullPage(e,{rootKey:t}={}){if(!o(this,Oo).get("iframe"))return!1;t?Array.isArray(t)||(t=[t]):t=[o(this,Di).get("rootKey")];for(let s=0;s<t.length;s++)o(this,q).facade.changeFrameContext(t[s]),e.head&&(o(this,et).get("_wd").head.innerHTML=e.head.replace(o(this,Ma),"")),e.body&&(o(this,et).get("_wd").body.innerHTML=this.clean(e.body,{forceFormat:!0,whitelist:null,blacklist:null})),o(this,q).pluginManager.resetFileInfo()}compress(e){return e.replace(/>\s+</g,"> <").replace(/\n/g,"").trim()}_convertToCode(e,t){let s="";const n=RegExp,r=new n("^(BLOCKQUOTE|PRE|TABLE|THEAD|TBODY|TR|TH|TD|OL|UL|IMG|IFRAME|VIDEO|AUDIO|FIGURE|FIGCAPTION|HR|BR|CANVAS|SELECT)$","i"),l=typeof e=="string"?vc.createRange().createContextualFragment(e):e,c=p=>o(this,q).format.isLine(p)||o(this,q).component.is(p),d=t?"":`
88
+ `,h=t?0:o(this,Di).get("codeIndentSize")*1,f=h>0?new Array(h+1).join(" "):"";return function p(m,g){const y=m==null?void 0:m.childNodes;if(!y)return;const v=r.test(m.nodeName),b=v?g:"";for(let w=0,_=y.length,x,S,M,T,L,B;w<_;w++){if(x=y[w],T=r.test(x.nodeName),S=T?d:"",M=c(x)&&!v&&!/^(TH|TD)$/i.test(m.nodeName)?d:"",x.nodeType===8){s+=`
89
+ <!-- `+x.textContent.trim()+" -->"+S;continue}if(x.nodeType===3){u.check.isList(x.parentElement)||(s+=xe.htmlToEntity(/^\n+$/.test(x.data)?"":x.data));continue}if(x.childNodes.length===0){s+=(/^HR$/i.test(x.nodeName)?d:"")+(/^PRE$/i.test(x.parentElement.nodeName)&&/^BR$/i.test(x.nodeName)?"":b)+x.outerHTML+S;continue}x.outerHTML?(L=x.nodeName.toLowerCase(),B=b||T?g:"",s+=(M||(v?"":S))+B+x.outerHTML.match(n("<"+L+"[^>]*>","i"))[0]+S,p(x,g+f+""),s+=(/\n$/.test(s)?B:"")+"</"+L+">"+(M||S||v||/^(TH|TD)$/i.test(x.nodeName)?d:"")):s+=new XMLSerializer().serializeToString(x)}}(l,""),s.trim()+d}__resetAutoStyleify(e){if(e.length>0){const t=o(this,Tt).get("convertTextTags"),s={};e.forEach(n=>{switch(n){case"bold":s.bold={regex:/font-weight\s*:\s*bold/i,tag:t.bold};break;case"italic":s.italic={regex:/font-style\s*:\s*italic/i,tag:t.italic};break;case"underline":s.underline={regex:/text-decoration\s*:\s*underline/i,tag:t.underline};break;case"strike":s.strike={regex:/text-decoration\s*:\s*line-through/i,tag:t.strike};break}}),k(this,Ro,s)}else k(this,Ro,null)}_destroy(){o(this,Vo)&&o(this,Vo).clear()}}q=new WeakMap,Di=new WeakMap,et=new WeakMap,Oo=new WeakMap,Tt=new WeakMap,rd=new WeakMap,ad=new WeakMap,ld=new WeakMap,cd=new WeakMap,Ta=new WeakMap,dd=new WeakMap,hd=new WeakMap,ud=new WeakMap,fd=new WeakMap,pd=new WeakMap,md=new WeakMap,gd=new WeakMap,Vo=new WeakMap,Sa=new WeakMap,Ma=new WeakMap,Ba=new WeakMap,Na=new WeakMap,vd=new WeakMap,yd=new WeakMap,Ro=new WeakMap,Io=new WeakSet,Kh=function(e,t){const s=o(this,q).format.getLine(e,null);if(u.utils.removeItem(e),!u.check.isListCell(s)||t)return;const n=o(this,q).nodeTransform.removeAllParents(s,null,null);return u.check.isList(s==null?void 0:s.firstChild)&&s.insertBefore(u.utils.createTextNode(Oe.zeroWidthSpace),s.firstChild),n?{sc:n.sc,ec:n.ec}:null},bd=new WeakSet,L0=function(e){const t=e.parentNode;let s,n;for(;o(this,q).format.isLine(e)||o(this,q).format.isBlock(e);){for(s=e.childNodes,n=null;s[0];){if(n=s[0],o(this,q).format.isLine(n)||o(this,q).format.isBlock(n)){if(E(this,bd,L0).call(this,n),!e.parentNode)break;s=e.childNodes;continue}t.insertBefore(n,e)}e.childNodes.length===0&&u.utils.removeItem(e),e=u.utils.createElement("BR"),t.insertBefore(e,n.nextSibling)}return e},K1=new WeakSet,R3=function(e,t){const s=o(this,Tt).get("defaultLine");if(e.nodeType===1){if(o(this,Ba).test(e.nodeName))return"";if(u.check.isExcludeFormat(e))return e.outerHTML;const n=u.query.getListChildNodes(e,r=>u.check.isSpanWithoutAttr(r)&&!u.query.getParentElement(r,u.check.isExcludeFormat),null)||[];for(let r=n.length-1,l;r>=0;r--)l=n[r],l.outerHTML=l.innerHTML;if(!t||o(this,q).format.isLine(e)||o(this,q).format.isBlock(e)||o(this,q).component.is(e)||u.check.isMedia(e)||u.check.isFigure(e)||u.check.isAnchor(e)&&u.check.isMedia(e.firstElementChild)){const r=e;return u.check.isSpanWithoutAttr(e)?r.innerHTML:r.outerHTML}else{const r=e;return"<"+s+">"+(u.check.isSpanWithoutAttr(e)?r.innerHTML:r.outerHTML)+"</"+s+">"}}if(e.nodeType===3){if(!t)return xe.htmlToEntity(e.textContent);const n=e.textContent.split(/\n/g);let r="";for(let l=0,c=n.length,d;l<c;l++)d=n[l].trim(),d.length>0&&(r+="<"+s+">"+xe.htmlToEntity(d)+"</"+s+">");return r}return e.nodeType===8&&o(this,cd)?"<!--"+e.textContent.trim()+"-->":""},X1=new WeakSet,I3=function(e){return!e||e.nodeType===11||u.check.isWysiwygFrame(e)||u.check.isList(e)||u.check.isTableElements(e)||o(this,q).format.isBlock(e)},Q1=new WeakSet,D3=function(e,t,s,n,r,l,c){const d=[],h=[],f=[],p=[],m=u.query.getListChildNodes(e,y=>{if(y.nodeType!==1)return r&&u.check.isList(y.parentElement)&&d.push(y),y.nodeType===3&&(!y.textContent||AN.test(y.textContent)&&(E(this,X1,I3).call(this,y.parentNode)||!y.previousSibling!=!y.nextSibling))&&d.push(y),!1;if(n&&(s.test(y.nodeName)||!t.test(y.nodeName)&&y.childNodes.length===0&&u.check.isExcludeFormat(y)))return d.push(y),!1;y.nodeName==="PRE"&&E(this,af,q3).call(this,y);const v=!u.query.getParentElement(y,u.check.isExcludeFormat);if(r){if(!u.check.isTableElements(y)&&!u.check.isListCell(y)&&!u.check.isAnchor(y)&&(o(this,q).format.isLine(y)||o(this,q).format.isBlock(y)||o(this,q).format.isTextStyleNode(y))&&y.childNodes.length===0&&v)return h.push(y),!1;if(u.check.isList(y.parentNode)&&!u.check.isList(y)&&!u.check.isListCell(y))return f.push(y),!1;if(u.check.isTableCell(y)){const w=y.firstElementChild;if(!o(this,q).format.isLine(w)&&!o(this,q).format.isBlock(w)&&!o(this,q).component.is(w))return p.push(y),!1}}if(l&&v&&y.className){const w=Array.from(y.classList).map(o(this,ld)).join(" ").trim();w?y.className=w:y.removeAttribute("class")}return r?!c&&y.parentNode!==e&&v&&(u.check.isListCell(y)&&!u.check.isList(y.parentNode)||(o(this,q).format.isLine(y)||o(this,q).component.is(y))&&!o(this,q).format.isBlock(y.parentNode)&&!u.query.getParentElement(y,o(this,q).component.is.bind(o(this,q).component))):!1},null);for(let y=0,v=d.length;y<v;y++)u.utils.removeItem(d[y]);const g=[];for(let y=0,v=m.length,b,w;y<v;y++)if(b=m[y],w=b.parentNode,!(!w||!w.parentNode))if(u.query.getParentElement(b,u.check.isListCell)){const _=b.childNodes;for(let x=_.length-1;x>=0;x--)w.insertBefore(_[x],b);g.push(b)}else w.parentNode.insertBefore(b,w),g.push(w);for(let y=0,v=g.length,b;y<v;y++)b=g[y],u.check.isZeroWidth(b.textContent.trim())&&u.utils.removeItem(b);for(let y=0,v=h.length;y<v;y++)u.utils.removeItem(h[y]);for(let y=0,v=f.length,b,w,_,x;y<v;y++)if(b=f[y],x=b.parentNode,!!x)if(w=u.utils.createElement("LI"),o(this,q).format.isLine(b)){for(_=b.childNodes;_[0];)w.appendChild(_[0]);x.insertBefore(w,b),u.utils.removeItem(b)}else b=b.nextSibling,w.appendChild(f[y]),x.insertBefore(w,b);for(let y=0,v=p.length,b,w;y<v;y++){if(b=p[y],w=u.utils.createElement("DIV"),w.innerHTML=b.innerHTML,b.textContent.trim().length===0&&E(this,J1,P3).call(this,b)){let _=w;for(;_.firstElementChild;)_=_.firstElementChild;_.innerHTML="<br>"}b.innerHTML=w.outerHTML}},J1=new WeakSet,P3=function(e){const t=e.querySelectorAll("*"),s=o(this,q).format;for(let n=0;n<t.length;n++)if(!s.isTextStyleNode(t[n]))return!1;return!0},ef=new WeakSet,H3=function(e){if(!o(this,Ta))return e;const t=o(this,Tt).get("_defaultStyleTagMap");return e.replace(o(this,Ta),(s,n,r,l)=>n+(typeof t[r]=="string"?t[r]:r)+(l?" "+l:""))},tf=new WeakSet,F3=function(e){let t="",s;const n=e.childNodes;for(let r=0,l=n.length,c;r<l;r++){if(c=n[r],o(this,Na).test(c.nodeName)){t+=c.outerHTML;continue}c.nodeType===8?t+="<!-- "+c.textContent+" -->":!/meta/i.test(c.nodeName)&&!o(this,q).format.isLine(c)&&!o(this,q).format.isBlock(c)&&!o(this,q).component.is(c)&&!u.check.isExcludeFormat(c)?(s||(s=u.utils.createElement(o(this,Tt).get("defaultLine"))),o(this,q).format.isTextStyleNode(c)&&c.removeAttribute("style"),s.appendChild(c),r--,l--):(s&&(t+=s.outerHTML,s=null),t+=c.outerHTML)}return s&&(t+=s.outerHTML),vc.createRange().createContextualFragment(t)},Cd=new WeakSet,A0=function(e){let t="";for(let s=0,n=e.length,r;s<n;s++)r=e[s],r.nodeType===1?u.check.isList(r)?t+=r.innerHTML:u.check.isListCell(r)?t+=r.outerHTML:o(this,q).format.isLine(r)?t+="<li>"+(r.innerHTML.trim()||"<br>")+"</li>":o(this,q).format.isBlock(r)&&!u.check.isTableElements(r)?t+=E(this,Cd,A0).call(this,r.children):t+="<li>"+r.outerHTML+"</li>":t+="<li>"+(r.textContent||"<br>")+"</li>";return t},wd=new WeakSet,$0=function(e){let t=!1;for(let s=0,n=e.length,r;s<n;s++)if(r=e[s],r.nodeType===1&&!o(this,q).format.isTextStyleNode(r)&&!u.check.isBreak(r)&&!o(this,Ba).test(r.nodeName)){t=!0;break}return t},Do=new WeakSet,Xh=function(e,t,s){var r;let n=(e.match(ly)||[])[0];if(o(this,Sa).includes(s)&&!n&&(e.match(LN)||[])[1]){const l=(e.match($N)||[])[1],c=(e.match(ON)||[])[1],d=(e.match(VN)||[])[1];(l||c||d)&&(n='style="'+(l?"font-size:"+X.get(Number(l)/3.333,1)+"rem;":"")+(c?"font-family:"+c+";":"")+(d?"color:"+d+";":"")+'"')}if(n){t||(t=[]);let l;for(const[h,f]of o(this,Vo))if(h.test(s)){l=f;break}if(!l)return t;const c=n.replace(RN,"").match(l);if(!c)return t;const d=[];for(let h=0,f=c.length,p;h<f;h++)if(p=c[h].match(IN),p&&!DN.test(p[3])){const m=xe.kebabToCamelCase(p[1].trim()),g=(r=o(this,et).get("wwComputedStyle")[m])==null?void 0:r.replace(PN,""),y=p[3].trim();switch(m){case"fontFamily":if(!o(this,q).plugins.font||!o(this,q).plugins.font.fontArray.includes(y))continue;break;case"fontSize":if(!o(this,q).plugins.fontSize)continue;o(this,ad).test(p[0])||(p[0]=p[0].replace((p[0].match(HN)||[])[1],xe.toFontUnit.bind(null,o(this,Tt).get("fontSizeUnits")[0])));break;case"color":if(!o(this,q).plugins.fontColor||cy.test(y))continue;break;case"backgroundColor":if(!o(this,q).plugins.backgroundColor||cy.test(y))continue;break}g!==y&&d.push(p[0])}d.length>0&&t.push('style="'+d.join(";")+'"')}return t},sf=new WeakSet,z3=function(e,t,s){return t.test("<font>")&&(e=e.replace(/(<\/?)font(\s?)/gi,"$1span$2")),e.replace(t,"").replace(s,"")},nf=new WeakSet,j3=function(e,t){const s=n=>{E(this,of,W3).call(this,n,t);const r=n.childNodes;for(let l=0,c=r.length;l<c;l++)s(r[l])};s(e)},of=new WeakSet,W3=function(e,t){if(!o(this,q).format.isTextStyleNode(e))return;const s=(e.style.cssText.match(dy)||[]).map(function(c){return c.trim()}),n=e.nodeName;if(FN.test(n)&&s.length===0)return e;const r=o(this,q).format;let l=!1;return function c(d){if(!(u.check.isWysiwygFrame(d)||!r.isTextStyleNode(d))){if(d.nodeName===n){l=!0;const h=d.style.cssText.match(dy)||[];for(let f=0,p=h.length,m;f<p;f++)(m=s.indexOf(h[f].trim()))>-1&&s.splice(m,1);for(let f=0,p=d.classList.length;f<p;f++)e.classList.remove(d.classList[f])}c(d.parentElement)}}(t),l&&((e.style.cssText=s.join(" "))||(e.setAttribute("style",""),e.removeAttribute("style")),e.attributes.length===0&&e.setAttribute("data-duple","true")),e},rf=new WeakSet,U3=function(e,t,s,n){if(EN.test(s))return s;let r=null;const l=n.match(TN)[0].toLowerCase();if(e){const c=o(this,yd)[l];s=s.replace(SN,""),c?s=s.replace(c,""):s=s.replace(o(this,md),"");const d=o(this,vd)[l];d?r=s.match(d):r=s.match(o(this,pd))}if(!t)return s;if(l==="a"){const c=s.match(/(?:(?:id|name)\s*=\s*(?:"|')[^"']*(?:"|'))/g);c&&(r||(r=[]),r.push(c[0]))}else(!r||!MN.test(r.toString()))&&(BN.test(s)?r=E(this,Do,Xh).call(this,s,r,"@component"):o(this,gd).test(l)?r=E(this,Do,Xh).call(this,s,r,l):o(this,q).format.isLine(l)?r=E(this,Do,Xh).call(this,s,r,"@line"):o(this,Sa).includes(l)&&(r=E(this,Do,Xh).call(this,s,r,"@text")));if(u.check.isMedia(l)||u.check.isFigure(l)){const c=s.match(ly);r||(r=[]),c&&r.push(c[0])}if(r)for(let c=0,d=r.length,h;c<d;c++)h=ZN(r[c].trim())?r[c]:"",n+=(NN.test(h)?"":" ")+h;return n},af=new WeakSet,q3=function(e){var n;if(e.children.length!==1||((n=e.firstElementChild)==null?void 0:n.nodeName)!=="CODE")return;const t=e.firstElementChild,s=(t.className||"").match(/language-(\S+)/);for(s&&(u.utils.addClass(e,"language-"+s[1]),e.setAttribute("data-se-lang",s[1]));t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)},lf=new WeakSet,Z3=function(e){const t=e.querySelectorAll('pre[class*="language-"]');for(let s=0,n=t.length,r,l,c;s<n;s++)if(r=t[s],l=(r.className.match(/language-(\S+)/)||[])[1],!!l){for(c=u.utils.createElement("CODE",{class:"language-"+l});r.firstChild;)c.appendChild(r.firstChild);r.appendChild(c),r.className=r.className.replace(/\s*language-\S+/g,"").trim(),r.removeAttribute("data-se-lang")}};const EN=/^<[a-z0-9]+:[a-z0-9]+/i,TN=/(?!<)[a-zA-Z0-9-]+/,SN=/\s(?:on[a-z]+)\s*=\s*(?:(["'])[^"']*\1|\S+)/gi,MN=/style=/i,ly=/style\s*=\s*(?:"|')[^"']*(?:"|')/,BN=/class\s*=\s*("|')(?:[^"']*\s)?se-component(?=[\s"'])/i,NN=/^\s/,LN=/<[^\s]+\s(.+)/,AN=/^[ \t\n\r\f\v]+$/,$N=/\ssize="([^"]+)"/i,ON=/\sface="([^"]+)"/i,VN=/\scolor="([^"]+)"/i,RN=/&quot;/g,IN=/([a-zA-Z0-9-]+)(:)([^"']+)/,DN=/inherit|initial|revert|unset/i,PN=/"/g,HN=/:\s*([^;]+)/,cy=/rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i,dy=/[^;]+;/g,FN=/^span$/i,zN=/^(?:https?|ftps?|mailto|tel|blob|sms|geo|webcal|callto):|^[#/]|^data:image\//i,jN=/^(?:href|src)\s*=/i,WN=/=\s*(?:"([^"]*)"|'([^']*)'|(\S+))/,UN=/:/i;function qN(i){let e,t=5;do e=i,i=i.replace(/&(#x([0-9a-f]+)|#([0-9]+)|([a-z]+));/gi,(s,n,r,l)=>r?String.fromCharCode(parseInt(r,16)):l?String.fromCharCode(parseInt(l,10)):"");while(i!==e&&--t);try{i=decodeURIComponent(i)}catch{}return i=i.replace(/[\u0000-\u0020]+/g,""),i}function hy(i){const e=qN(i);return zN.test(e)||!UN.test(e)}function ZN(i){if(!jN.test(i))return!0;const e=i.match(WN);if(!e)return!0;const t=e[1]??e[2]??e[3]??"";return hy(t)}function Pr(i,e){return i?i==="*"?"[a-z-]+":e?i+"|"+e:i:"^"}const GN=xN;class YN{constructor(e){C(this,Mi,void 0);C(this,_d,void 0);k(this,Mi,e.$),k(this,_d,o(this,Mi).options)}split(e,t,s){var g,y;if(u.check.isWysiwygFrame(e)||o(this,Mi).component.is(e)||!e)return e;if(t&&!X.is(t)){const v=e.childNodes;let b=u.query.getPositionIndex(t);const w=e.cloneNode(!1),_=e.cloneNode(!1);for(let x=0,S=v.length;x<S;x++){if(x<b)w.appendChild(v[x]);else if(x>b)_.appendChild(v[x]);else continue;x--,S--,b--}return w.childNodes.length>0&&e.parentNode.insertBefore(w,e),_.childNodes.length>0&&e.parentNode.insertBefore(_,e.nextElementSibling),e}const n=e.parentNode;let r=0,l=1,c=!0,d,h,f;if((!s||s<0)&&(s=0),u.check.isText(e)){if(r=u.query.getPositionIndex(e),t=Number(t),t>=0&&e.length!==t){e.splitText(t);const v=u.query.getNodeFromPath([r+1],n);u.check.isZeroWidth(v)&&(v.data=Oe.zeroWidthSpace)}}else if(e.nodeType===1){if(t===0){for(;e.firstChild;)e=e.firstChild;if(e.nodeType===3){const v=u.utils.createTextNode(Oe.zeroWidthSpace);e.parentNode.insertBefore(v,e),e=v}}e.previousSibling?e=e.previousSibling:u.query.getNodeDepth(e)===s&&(c=!1)}e.nodeType===1&&(l=0);let p=e;for(;u.query.getNodeDepth(p)>s;)for(r=u.query.getPositionIndex(p)+l,p=p.parentNode,f=d,d=p.cloneNode(!1),h=p.childNodes,f&&(u.check.isListCell(d)&&u.check.isList(f)&&f.firstElementChild?(d.innerHTML=f.firstElementChild.innerHTML,u.utils.removeItem(f.firstElementChild),f.children.length>0&&d.appendChild(f)):d.appendChild(f));h[r];)d.appendChild(h[r]);p.nodeType===1&&p.childNodes.length<=1&&!((y=(g=p.firstChild)==null?void 0:g.textContent)!=null&&y.length)&&(p.innerHTML="<br>");const m=p.parentNode;return c&&(p=p.nextSibling),d?(this.mergeSameTags(d,null,!1),this.mergeNestedTags(d,u.check.isList),d.childNodes.length>0?m.insertBefore(d,p):d=p,u.check.isListCell(d)&&d.children&&u.check.isList(d.children[0])&&d.insertBefore(u.utils.createElement("BR"),d.children[0]),n.childNodes.length===0&&u.utils.removeItem(n),d):p}mergeSameTags(e,t,s){const n=t?t.length:0;let r=null;n&&(r=Array.apply(null,new Array(n)).map(Number.prototype.valueOf,0));const l=(c,d,h)=>{var p,m;const f=c.childNodes;for(let g=0,y=f.length,v,b;g<y&&(v=f[g],b=f[g+1],!!v);g++)if(!(u.check.isBreak(v)||u.check.isMedia(v)||u.check.isInputElement(v))){if(s&&o(this,Mi).inline._isIgnoreNodeChange(v)||!s&&(u.check.isTableElements(v)||u.check.isListCell(v)||o(this,Mi).format.isLine(v)&&!o(this,Mi).format.isBrLine(v))){(u.check.isTableElements(v)||u.check.isListCell(v))&&l(v,d+1,g);continue}if(y===1&&c.nodeName===v.nodeName&&c.parentNode){if(n){let w,_,x,S,M;for(let T=0;T<n;T++)if(w=t[T],w&&w[d]===g){for(_=v,x=c,S=d,M=!0;S>=0;){if(u.utils.getArrayIndex(x.childNodes,_)!==w[S]){M=!1;break}_=v.parentNode,x=_.parentNode,S--}M&&(w.splice(d,1),w[d]=g)}}u.utils.copyTagAttributes(v,c),c.parentNode.insertBefore(v,c),u.utils.removeItem(c)}if(!b){v.nodeType===1&&l(v,d+1,g);break}if(v.nodeName===b.nodeName&&u.check.isSameAttributes(v,b)&&((p=v.getAttribute)==null?void 0:p.call(v,"href"))===((m=b.getAttribute)==null?void 0:m.call(b,"href"))){const w=v.childNodes;let _=0;for(let T=0,L=w.length;T<L;T++)w[T].textContent.length>0&&_++;const x=v.lastChild,S=b.firstChild;let M=0;if(x&&S){const T=x.nodeType===3&&S.nodeType===3;M=x.textContent.length;let L=x.previousSibling;for(;L&&L.nodeType===3;)M+=L.textContent.length,L=L.previousSibling;if(_>0&&x.nodeType===3&&S.nodeType===3&&(x.textContent.length>0||S.textContent.length>0)&&_--,n){let B=null;for(let N=0;N<n;N++)if(B=t[N],B&&B[d]>g){if(d>0&&B[d-1]!==h)continue;B[d]-=1,B[d+1]>=0&&B[d]===g&&(B[d+1]+=_,T&&x&&x.nodeType===3&&S&&S.nodeType===3&&(r[N]+=M))}}}if(v.nodeType===3){if(M=v.textContent.length,v.textContent+=b.textContent,n){let T=null;for(let L=0;L<n;L++)if(T=t[L],T&&T[d]>g){if(d>0&&T[d-1]!==h)continue;T[d]-=1,T[d+1]>=0&&T[d]===g&&(T[d+1]+=_,r[L]+=M)}}}else v.innerHTML+=b.innerHTML;u.utils.removeItem(b),g--}else v.nodeType===1&&l(v,d+1,g)}};return l(e,0,0),r}mergeNestedTags(e,t){if(typeof t=="string"){const s=new RegExp(`^(${t||".+"})$`,"i");t=n=>s.test(n.nodeName)}else typeof t!="function"&&(t=()=>!0);(function s(n){let r=n.children;if(r.length===1&&r[0].nodeName===n.nodeName&&t(n)){const l=r[0];for(r=l.children;r[0];)n.appendChild(r[0]);n.removeChild(l)}for(let l=0,c=n.children.length;l<c;l++)s(n.children[l])})(e)}removeAllParents(e,t,s){if(!e)return null;let n=null;return t||(t=r=>{if(r===s||o(this,Mi).component.is(r))return!1;const l=r.textContent.trim();return l.length===0||/^(\n|\u200B)+$/.test(l)}),function r(l){if(!u.check.isWysiwygFrame(l)){const c=l.parentNode;c&&t(l)&&(n={sc:l.previousElementSibling,ec:l.nextElementSibling},u.utils.removeItem(l),r(c))}}(e),n}removeEmptyNode(e,t,s){const n=o(this,_d).get("allowedEmptyTags");t&&(t=u.query.getParentElement(t,l=>e===l.parentElement));const r=l=>{if(o(this,Mi).format._isNotTextNode(l)||l===t||u.check.isNonEditable(l))return 0;if(l!==e&&u.check.isZeroWidth(l.textContent)&&(!l.firstChild||!u.check.isBreak(l.firstChild))&&!l.querySelector(n)){if(l.parentNode)return l.parentNode.removeChild(l),-1}else{const c=l.children;for(let d=0,h=c.length,f=0;d<h;d++)!c[d+f]||o(this,Mi).component.is(c[d+f])||(f+=r(c[d+f]))}return 0};r(e),e.childNodes.length===0&&(s?u.utils.removeItem(e):e.innerHTML="<br>")}createNestedNode(e,t){typeof t!="function"&&(t=()=>!0);const s=e[0].cloneNode(!1);let n=s;for(let r=1,l=e.length,c;r<l;r++)t(e[r])&&(c=e[r].cloneNode(!1),n.appendChild(c),n=c);return n.innerHTML="",{parent:s,inner:n}}}Mi=new WeakMap,_d=new WeakMap;const KN=YN;class XN{constructor(e){C(this,Pi,void 0);C(this,rs,void 0);C(this,Rs,void 0);k(this,Pi,e.$),k(this,rs,o(this,Pi).frameContext),k(this,Rs,o(this,Pi).frameOptions)}check(e){const t=o(this,Rs).get("charCounter_max");if(t){const s=this.getLength(typeof e=="string"?e:o(this,Rs).get("charCounter_type")==="byte-html"&&e.nodeType===1?e.outerHTML:e.textContent);if(s>0&&s+this.getLength()>t)return uy(o(this,rs).get("charWrapper")),!1}return!0}getLength(e){return typeof e!="string"&&(e=o(this,Rs).get("charCounter_type")==="byte-html"?o(this,rs).get("wysiwyg").innerHTML:o(this,rs).get("wysiwyg").textContent),/byte/.test(o(this,Rs).get("charCounter_type"))?this.getByteLength(e):e.length}getByteLength(e){if(!e||!e.toString)return 0;e=e.toString();let t,s;return yv?(s=decodeURIComponent(encodeURIComponent(e)).length,t=0,encodeURIComponent(e).match(/(%0A|%0D)/gi)!==null&&(t=encodeURIComponent(e).match(/(%0A|%0D)/gi).length),s+t):(s=new TextEncoder().encode(e).length,t=0,encodeURIComponent(e).match(/(%0A|%0D)/gi)!==null&&(t=encodeURIComponent(e).match(/(%0A|%0D)/gi).length),s+t)}getWordCount(e){typeof e!="string"&&(e=o(this,rs).get("wysiwyg").innerText);const t=e.trim();return t?t.split(/\s+/).length:0}display(e){const t=e||o(this,rs),s=t.get("charCounter"),n=t.get("wordCounter");(s||n)&&ue.setTimeout(()=>{s&&(s.textContent=String(this.getLength())),n&&(n.textContent=String(this.getWordCount()))},0)}test(e,t){let s=0;e&&(s=this.getLength(e)),this.display();const n=o(this,Rs).get("charCounter_max");if(n>0){let r=!1;const l=this.getLength();if(l>n){if(r=!0,s>0&&t){o(this,Pi).selection.init();const c=o(this,Pi).selection.getRange(),d=c.endOffset-1,h=o(this,Pi).selection.getNode().textContent,f=c.endOffset-1;o(this,Pi).selection.getNode().textContent=h.slice(0,f<0?0:f)+h.slice(c.endOffset,h.length),o(this,Pi).selection.setRange(c.endContainer,d,c.endContainer,d)}}else l+s>n&&(r=!0);if(r&&(uy(o(this,rs).get("charWrapper")),s>0))return!1}return!0}}Pi=new WeakMap,rs=new WeakMap,Rs=new WeakMap;function uy(i){i&&!Zu(i,"se-blink")&&(lo(i,"se-blink"),ue.setTimeout(()=>{co(i,"se-blink")},600))}const QN=XN;class JN{constructor(e){C(this,xn,void 0);C(this,La,void 0);C(this,Aa,!1);k(this,xn,e.$),k(this,La,o(this,xn).options),this.keyMap=new Map,this.reverseKeys=new Set}command(e,t,s,n,r,l,c,d){var f,p;if(o(this,Aa))return!1;let h=null;return t?h=this.keyMap.get(n+(s?"1000":"")):h=this.keyMap.get(r)||this.keyMap.get(r+e.key),!h||!s&&h.s||h.space&&!Ee.isSpace(n)||h.enter&&!Ee.isEnter(n)||h.textTrigger&&!e.key.trim()||h.edge&&!l?!1:(h.plugin&&typeof h.method=="string"?(p=(f=o(this,xn).plugins[h.plugin])[h.method])==null||p.call(f,{range:d,line:c,info:h,event:e,keyCode:n}):typeof h.method=="function"?h.method({range:d,line:c,info:h,event:e,keyCode:n}):o(this,xn).commandDispatcher.run(h.command,h.type,h.button),!0)}disable(){k(this,Aa,!0)}enable(){k(this,Aa,!1)}_registerShortcuts(){const e=o(this,La).get("shortcuts"),t=o(this,La).get("_reverseCommandArray"),s=this.keyMap=new Map,n=this.reverseKeys;for(const r of Object.keys(e)){if(o(this,xn).plugins[r])continue;const l=r.startsWith("_")?"":r;Kv(l,null,e[r],s,t,n)}}_destroy(){this.keyMap.clear(),this.reverseKeys.clear()}}xn=new WeakMap,La=new WeakMap,Aa=new WeakMap;const eL=JN,{_w:Bg,isMobile:tL,ON_OVER_COMPONENT:iL}=pe,fy="2147483646",e1="2147483645",py="2147483642",Ng="2147483641",my={left:0,right:0,top:0};let t1=null;class sL{constructor(e,t,s,n,r){C(this,Fo);C(this,zo);C(this,cf);C(this,df);C(this,jo);C(this,hf);C(this,xd);C(this,Ed);C(this,Td);C(this,uf);C(this,ff);C(this,pf);C(this,mf);C(this,gf);C(this,Sd);C(this,de,void 0);C(this,$a,void 0);C(this,kd,void 0);C(this,Oa,void 0);C(this,Po,my);C(this,En,!1);C(this,Ho,!1);C(this,Va,null);C(this,Ra,null);C(this,Ia,null);C(this,Da,[]);C(this,Tn,new Map);k(this,de,t),this.kind=r||e.constructor.key||e.constructor.name,this.host=e,this.form=s,this.isOpen=!1,this.currentTarget=null,this.currentPositionTarget=null,this.isWWTarget=n.isWWTarget??!0,this.position=n.position||"bottom",this.disabled=!!n.disabled,this.parents=n.parents||[],this.parentsForm=[],this.parentsHide=!!n.parentsHide,this.sibling=n.sibling||null,this.siblingMain=!!n.siblingMain,this.isInsideForm=!!n.isInsideForm,this.isOutsideForm=!!n.isOutsideForm,this.toTop=!1,this.__offset={},k(this,$a,typeof n.initMethod=="function"?n.initMethod:null),k(this,kd,typeof n.escGuard=="function"?n.escGuard:null),k(this,Oa,{keydown:E(this,mf,eb).bind(this),mousedown:E(this,gf,tb).bind(this)});for(const l of this.parents){if(u.check.isElement(l)){this.parentsForm.push(l);continue}o(l,Da).push(this),this.parentsForm.push(l.form)}this.form.setAttribute("popover","manual"),o(this,de).contextProvider.carrierWrapper.appendChild(s),o(this,de).eventManager.addEvent(s,"click",E(this,uf,X3).bind(this)),o(this,de).eventManager.addEvent(s,"mouseenter",E(this,ff,Q3).bind(this)),o(this,de).eventManager.addEvent(s,"mouseleave",E(this,pf,J3).bind(this))}open(e,t,{isWWTarget:s,passive:n,initMethod:r,disabled:l,addOffset:c}={}){var h;if(Jt.get("__overInfo")===iL&&(n=!0),!e){console.warn("[SUNEDITOR.Controller.open.fail] The target element is required.");return}if(this.form.removeAttribute("data-se-hidden-by-parent"),this.form.removeAttribute("data-se-hidden-by-children"),o(this,Tn).clear(),n||(o(this,de).store.mode.isBalloon?o(this,de).toolbar.hide():o(this,de).store.mode.isSubBalloon&&o(this,de).subToolbar.hide(),o(this,de).store.get("hasFocus")||(l??this.disabled?o(this,de).ui.setControllerOnDisabledButtons(!0):o(this,de).ui.setControllerOnDisabledButtons(!1))),this.currentPositionTarget=t||e,this.isWWTarget=s??this.isWWTarget,typeof r=="function"&&k(this,$a,r),n||(o(this,de).ui.currentControllerName=this.kind),k(this,Po,{left:0,right:0,top:0,...c}),!n){const f=this.isOutsideForm?this.parentsForm:[];(h=o(this,de).ui.opendControllers)==null||h.forEach(p=>{f.includes(p.form)||(p.form.style.zIndex=Ng)}),this.parentsHide&&this.parentsForm.forEach(p=>{p.style.display="none",p.setAttribute("data-se-hidden-by-children","1")})}E(this,hf,K3).call(this),E(this,jo,eu).call(this,this.form,this.currentPositionTarget,!1);const d=o(this,de).instanceCheck.isRange(e);this.currentTarget=d?null:e,E(this,cf,G3).call(this,this.form,e,d,n),Bg.setTimeout(()=>Jt.set("__overInfo",!1),0)}close(e){var t,s,n;!e&&(!this.isOpen||o(this,Ho))||(this.form.removeAttribute("data-se-hidden-by-parent"),this.form.removeAttribute("data-se-hidden-by-children"),o(this,Tn).clear(),E(this,Fo,Qh).call(this,"close"),this.toTop=!1,this.isOpen=!1,k(this,Ho,!1),this.__offset={},k(this,Po,my),E(this,xd,O0).call(this),(t=o(this,$a))==null||t.call(this),E(this,df,Y3).call(this),this.parentsHide&&!e&&this.parentsForm.forEach(r=>{r.style.display="block",r.removeAttribute("data-se-hidden-by-children")}),(n=(s=this.host).controllerClose)==null||n.call(s),!(this.parentsForm.length>0)&&o(this,de).component.deselect())}hide(){E(this,Fo,Qh).call(this,"hide"),this.form.style.display="none"}show(){E(this,jo,eu).call(this,this.form,this.currentPositionTarget,!1)}bringToTop(e){this.toTop=e,this.form.style.zIndex=e?fy:e1}resetPosition(e){E(this,jo,eu).call(this,this.form,e||this.currentPositionTarget,!0)}_scrollReposition(){this.form.hasAttribute("data-se-hidden-by-parent")||this.form.hasAttribute("data-se-hidden-by-children")||E(this,jo,eu).call(this,this.form,this.currentPositionTarget,!1)&&Bg.setTimeout(()=>{E(this,Fo,Qh).call(this,"show")},0)}}de=new WeakMap,$a=new WeakMap,kd=new WeakMap,Oa=new WeakMap,Po=new WeakMap,En=new WeakMap,Ho=new WeakMap,Va=new WeakMap,Ra=new WeakMap,Ia=new WeakMap,Da=new WeakMap,Tn=new WeakMap,Fo=new WeakSet,Qh=function(e){var t,s;for(const n of o(this,Da))if(e==="hide"&&n.form.style.display!=="none"){const r=E(this,zo,Jh).call(this,n);o(n,Tn).set(this,!0);const l=E(this,zo,Jh).call(this,n);!r&&l&&(n.form.setAttribute("data-se-hidden-by-parent","1"),n.hide())}else if(e==="show"){if(n.form.hasAttribute("data-se-hidden-by-children")){E(t=n,Fo,Qh).call(t,"show");continue}const r=E(this,zo,Jh).call(this,n);o(n,Tn).set(this,!1);const l=E(this,zo,Jh).call(this,n);r&&!l&&(n.form.removeAttribute("data-se-hidden-by-parent"),n.show())}else(s=n[e])==null||s.call(n,!0)},zo=new WeakSet,Jh=function(e){for(const t of o(e,Tn).values())if(t===!0)return!0;return!1},cf=new WeakSet,G3=async function(e,t,s,n){var l,c;const r={position:this.position,inst:this,form:e,target:t,isRangeTarget:s,notInCarrier:!o(this,de).contextProvider.carrierWrapper.contains(e)};await o(this,de).eventManager.triggerEvent("onBeforeShowController",{caller:this.kind,frameContext:o(this,de).frameContext,info:r})!==!1&&(e.style.display="block",o(this,de).contextProvider.shadowRoot&&k(this,Va,o(this,de).eventManager.addEvent(e,"mousedown",d=>d.stopPropagation())),n||(o(this,de).ui.onControllerContext(),o(this,de).store.set("controlActive",!0),o(this,de).store.set("_preventBlur",!0)),this.isOpen||o(this,de).ui.opendControllers.push(r),this.isOpen=!0,(c=(l=this.host).controllerOn)==null||c.call(l,e,t),o(this,de).eventManager.triggerEvent("onShowController",{caller:this.kind,frameContext:o(this,de).frameContext,info:r}))},df=new WeakSet,Y3=function(){var e,t;t1===this&&(t1=null),(t=(e=this.form).hidePopover)==null||t.call(e),this.form.style.display="none",o(this,de).ui.opendControllers=o(this,de).ui.opendControllers.filter(s=>s.form!==this.form),!(o(this,de).ui.currentControllerName!==this.kind&&o(this,de).ui.opendControllers.length>0)&&(o(this,de).ui.setControllerOnDisabledButtons(!1),o(this,de).ui.offControllerContext(),o(this,de).frameContext.get("lineBreaker_t").style.display=o(this,de).frameContext.get("lineBreaker_b").style.display="none",o(this,de).store.set("_lastSelectionNode",null),o(this,de).ui.currentControllerName="",o(this,de).store.set("_preventBlur",!1),Bg.setTimeout(()=>{o(this,de).store.set("controlActive",!1)},0),o(this,Va)&&k(this,Va,o(this,de).eventManager.removeEvent(o(this,Va))))},jo=new WeakSet,eu=function(e,t,s){var n;if(!t)return!1;if(e.style.visibility="hidden",e.style.display="block",this.sibling&&this.sibling.style.display!=="block"&&(this.sibling.style.visibility="hidden",this.sibling.style.display="block"),o(this,de).selection.isRange(t)){if(!o(this,de).offset.setRangePosition(this.form,t,{position:"bottom"}))return this.hide(),!1}else{const r=o(this,de).offset.setAbsPosition(e,t,{addOffset:o(this,Po),position:this.position,isWWTarget:this.isWWTarget,inst:this,sibling:this.sibling});if(!r)return this.hide(),!1;if(!s&&this.sibling&&!this.siblingMain){const l=e.offsetTop-o(this,Po).top;r.position==="bottom"?(k(this,En,!0),e.style.top=l+this.sibling.offsetHeight-1+"px"):(k(this,En,!1),e.style.top=l-this.sibling.offsetHeight+2+"px")}else k(this,En,!1)}return e.style.zIndex=this.toTop?e1:o(this,En)?py:Ng,e.style.visibility="",(n=e.showPopover)==null||n.call(e),!0},hf=new WeakSet,K3=function(){E(this,xd,O0).call(this),k(this,Ra,o(this,de).eventManager.addGlobalEvent("keydown",o(this,Oa).keydown,!0)),k(this,Ia,o(this,de).eventManager.addGlobalEvent(tL?"click":"mousedown",o(this,Oa).mousedown,!0))},xd=new WeakSet,O0=function(){o(this,de).component.__removeGlobalEvent(),o(this,Ra)&&k(this,Ra,o(this,de).eventManager.removeGlobalEvent(o(this,Ra))),o(this,Ia)&&k(this,Ia,o(this,de).eventManager.removeGlobalEvent(o(this,Ia)))},Ed=new WeakSet,V0=function(){if(o(this,de).ui.selectMenuOn)return!0;const e=o(this,de).ui.opendControllers;for(let t=0;t<e.length;t++)if(e[t].inst===this&&e[t].fixed)return!0;return!1},Td=new WeakSet,R0=function(e){var n;if(u.check.isWysiwygFrame(e)||e.contains(this.form))return!1;if(u.utils.hasClass(e,"se-drag-handle"))return!0;let t=!1;this.isInsideForm&&((n=this.parentsForm)==null?void 0:n.length)>0&&this.parentsForm.some(r=>{if(r.contains(e))return t=!0,!0});const s=this.host._element;return!t&&(!!u.query.getParentElement(e,".se-controller")||(o(this,de).component.isInline(s)?e===s:e==null?void 0:e.contains(s)))},uf=new WeakSet,X3=function(e){const t=u.query.getEventTarget(e),s=u.query.getCommandTarget(t);if(s){if(e.stopPropagation(),e.preventDefault(),s.getAttribute("data-command")==="close"){this.close();return}this.host.controllerAction(s)}},ff=new WeakSet,Q3=function(e){var s,n;if(o(this,de).ui.currentControllerName=this.kind,this.parentsForm.length>0&&this.isInsideForm)return;const t=u.query.getEventTarget(e);t.style.zIndex=this.toTop?fy:e1,this.sibling&&t1!==this&&((n=(s=this.form).matches)!=null&&n.call(s,":popover-open"))&&(t1=this,this.form.hidePopover(),this.form.showPopover())},pf=new WeakSet,J3=function(e){if(this.parentsForm.length>0&&this.isInsideForm)return;const t=u.query.getEventTarget(e);t.style.zIndex=this.toTop?e1:o(this,En)?py:Ng},mf=new WeakSet,eb=function(e){var r;if(E(this,Ed,V0).call(this))return;const t=e.code;if(Ee.isCtrl(e)||!Ee.isNonResponseKey(t))return;const n=u.query.getEventTarget(e);if(Ee.isEsc(t)){if(o(this,Da).some(({isOpen:l})=>l)||(r=o(this,kd))!=null&&r.call(this))return}else if(this.form.contains(n)||E(this,Td,R0).call(this,n)||o(this,de).pluginManager.fileInfo.pluginRegExp.test(this.kind))return;E(this,Sd,I0).call(this,n),this.close()},gf=new WeakSet,tb=function(e){var s,n;const t=u.query.getEventTarget(e);if((n=(s=this.host)==null?void 0:s._element)!=null&&n.contains(t)){k(this,Ho,!0);return}k(this,Ho,!1),!(t===this.host._element||t===this.currentTarget||E(this,Ed,V0).call(this)||this.form.contains(t)||E(this,Td,R0).call(this,t)||u.query.getParentElement(t,".se-line-breaker-component"))&&(E(this,Sd,I0).call(this,t),this.close(!0))},Sd=new WeakSet,I0=function(e){o(this,de).frameContext.get("wysiwyg").contains(e)||(o(this,de).component.__prevent=!1)};const nL=sL,{_w:gy,ON_OVER_COMPONENT:Lg}=pe,oL={tl:"nwse-resize",tr:"nesw-resize",bl:"nesw-resize",br:"nwse-resize",lw:"ew-resize",th:"ns-resize",rw:"ew-resize",bh:"ns-resize"},rL="tl|bl|tr|br",aL="lw|rw";let i1=!1,yc=!1,Hr=0,Ag=0;const zt=class zt{constructor(e,t,s,n){C(this,Od);C(this,Vd);C(this,za);C(this,Rd);C(this,vf);C(this,Zo);C(this,Id);C(this,yf);C(this,Dd);C(this,Pd);C(this,bf);C(this,Cf);C(this,wf);C(this,_f);C(this,kf);C(this,xf);C(this,Ef);C(this,Tf);C(this,Sf);C(this,Mf);C(this,Bf);C(this,Nf);C(this,Lf);C(this,te,void 0);C(this,Md,void 0);C(this,Bd,void 0);C(this,Nd,"");C(this,Ld,"");C(this,Wo,0);C(this,Uo,0);C(this,Pa,0);C(this,Ha,0);C(this,Ad,"__se__float-none|__se__float-left|__se__float-center|__se__float-right");C(this,Fa,!1);C(this,qo,{w:"",h:""});C(this,$d,null);k(this,te,t),this.kind=e.constructor.key||e.constructor.name,this._alignIcons={none:o(this,te).icons.format_float_none,left:o(this,te).icons.format_float_left,right:o(this,te).icons.format_float_right,center:o(this,te).icons.format_float_center},this._action={};const r=fL(this,t,s||[]);if(this.controller=r?new nL(this,t,r,{position:"bottom",disabled:!0},this.kind):null,r){this.alignButton=r.querySelector('[data-command="onalign"]');const l=lL(this,t,this.alignButton);l&&(this.selectMenu_align=new Xu(t,{checkList:!1,position:"bottom-center"}),this.selectMenu_align.on(this.alignButton,E(this,Ef,db).bind(this),{class:"se-figure-select-list"}),this.selectMenu_align.create(l.items,l.html)),this.asButton=r.querySelector('[data-command="onas"]');const c=cL(t,this.asButton);c&&(this.selectMenu_as=new Xu(t,{checkList:!1,position:"bottom-center"}),this.selectMenu_as.on(this.asButton,E(this,Tf,hb).bind(this),{class:"se-figure-select-list"}),this.selectMenu_as.create(c.items,c.html)),this.resizeButton=r.querySelector('[data-command="onresize"]');const d=dL(t,this.resizeButton);d&&(this.selectMenu_resize=new Xu(t,{checkList:!1,position:"bottom-left",dir:"ltr"}),this.selectMenu_resize.on(this.resizeButton,E(this,Sf,ub).bind(this)),this.selectMenu_resize.create(d.items,d.html))}this.inst=e,this.sizeUnit=n.sizeUnit||"px",this.autoRatio=n.autoRatio,this.isVertical=!1,this.percentageButtons=(r==null?void 0:r.querySelectorAll('[data-command="resize_percent"]'))||[],this.captionButton=r==null?void 0:r.querySelector('[data-command="caption"]'),this.align="none",this.as="block",this.__offset={},this._element=null,this._cover=null,this._inlineCover=null,this._container=null,this._caption=null,this._resizeClientX=0,this._resizeClientY=0,this._resize_direction="",this.__containerResizingOff=E(this,kf,lb).bind(this),this.__containerResizing=E(this,_f,ab).bind(this),this.__onContainerEvent=null,this.__offContainerEvent=null,k(this,Md,E(this,Mf,fb).bind(this)),k(this,Bd,E(this,xf,cb).bind(this)),o(this,te).eventManager.addEvent(this.alignButton,"click",E(this,Bf,pb).bind(this)),o(this,te).eventManager.addEvent(this.asButton,"click",E(this,Nf,mb).bind(this)),o(this,te).eventManager.addEvent(this.resizeButton,"click",E(this,Lf,gb).bind(this)),o(this,te).contextProvider.applyToRoots(l=>{if(!l.get("wrapper").querySelector(".se-controller.se-resizing-container")){const c=hL(),d=c.querySelectorAll(".se-resize-dot > span");l.set("_figure",{main:c,border:c.querySelector(".se-resize-dot"),display:c.querySelector(".se-resize-display"),handles:d}),l.get("wrapper").appendChild(c),o(this,te).eventManager.addEvent(d,"mousedown",E(this,wf,rb).bind(this))}})}static CreateContainer(e,t){return u.utils.createElement("DIV",{class:"se-component"+(t?" "+t:"")},u.utils.createElement("FIGURE",null,e)),zt.GetContainer(e)}static CreateInlineContainer(e,t){return u.utils.createElement("SPAN",{class:"se-component se-inline-component"+(t?" "+t:"")},e),zt.GetContainer(e)}static CreateCaption(e,t){const s=u.utils.createElement("FIGCAPTION",null,"<div>"+t+"</div>");return e.appendChild(s),s}static GetContainer(e){const t=u.query.getParentElement(e,"FIGURE",2),s=u.query.getParentElement(e,"SPAN",2),n=t||s;let r=u.query.getParentElement(e,l=>l.parentElement===n,0)||e;if(u.check.isAnchor(r)){const l=r.querySelector(":scope > img");l&&(r=l)}return{target:r,container:u.query.getParentElement(r,zt.is,3)||t,cover:t,inlineCover:u.utils.hasClass(s,"se-inline-component")?s:null,caption:u.query.getEdgeChild(r.parentElement,"FIGCAPTION",!1),isVertical:s1(r)}}static GetRatio(e,t,s){let n=0,r=0;if(/\d+/.test(e+"")&&/\d+/.test(t+"")){const l=!X.is(e)&&String(e).replace(/\d+|\./g,"")||s||"px",c=!X.is(t)&&String(t).replace(/\d+|\./g,"")||s||"px";if(l===c){const d=X.get(e,4),h=X.get(t,4);n=d/h,r=h/d}}return{w:X.get(n,4),h:X.get(r,4)}}static CalcRatio(e,t,s,n){if(n!=null&&n.w&&(n!=null&&n.h)&&/\d+/.test(e+"")&&/\d+/.test(t+"")){const r=!X.is(e)&&String(e).replace(/\d+|\./g,"")||s||"px",l=!X.is(t)&&String(t).replace(/\d+|\./g,"")||s||"px";if(r===l){const c=r==="%"?2:0,d=e,h=t;t=X.get(n.h*X.get(d,c),c)+l,e=X.get(n.w*X.get(h,c),c)+r}}return{w:e,h:t}}static is(e){return u.check.isComponentContainer(e)||/^(HR)$/.test(e==null?void 0:e.nodeName)}close(){var e;o(this,te).store.set("_preventBlur",!1),u.utils.removeClass(this._cover,"se-figure-selected"),o(this,te).component.__removeDragEvent(),E(this,Pd,j0).call(this),(e=this.controller)==null||e.close()}open(e,{nonResizing:t,nonSizeInfo:s,nonBorder:n,figureTarget:r,infoOnly:l}){var B;if(!e){console.warn('[SUNEDITOR.modules.Figure.open] The "targetNode" is null.');return}Jt.get("__overInfo")===Lg&&(n=!0);const c=zt.GetContainer(e),d=c.target;let h=!1;if(!c.container)if(!o(this,te).options.get("strictMode").formatFilter)c.container=d,c.cover=d,h=!0;else return{container:null,cover:null,width:d.style.width||d.width||"",height:d.style.height||d.height||"",isVertical:this.isVertical};Jt.set("__figureInst",this),E(this,Vd,P0).call(this,c);const f=r&&(this._cover||this._container)||d,p=f.offsetWidth||null,m=f.offsetHeight||null,{top:g,left:y,scrollX:v,scrollY:b}=o(this,te).offset.getLocal(f),w=(d.getAttribute("data-se-size")||"").split(",");let _=X.get(d.style.width,2)||p,x=X.get(d.style.height,2)||m;this.isVertical&&([_,x]=[x,_]);const S=zt.GetRatio(_,x,this.sizeUnit),M={container:c.container,cover:c.cover,caption:c.caption,align:this.align,ratio:S,isVertical:this.isVertical,w:p||"",h:m||"",t:g,l:y,width:w[0]||"auto",height:w[1]||"auto",originWidth:d.naturalWidth||d.offsetWidth,originHeight:d.naturalHeight||d.offsetHeight};if(k(this,Nd,M.width),k(this,Ld,M.height),l)return M;const T=o(this,te).frameContext.get("_figure");o(this,te).ui.setFigureContainer(T.main),o(this,te).ui.opendControllers=o(this,te).ui.opendControllers.filter(N=>N.form!==T.main),T.main.style.top=g+"px",T.main.style.left=y+"px",T.main.style.width=(this.isVertical?m:p)+"px",T.main.style.height=(this.isVertical?p:m)+"px",T.border.style.top="0px",T.border.style.left="0px",T.border.style.width=(this.isVertical?m:p)+"px",T.border.style.height=(this.isVertical?p:m)+"px",this.__offset={left:y+v,top:g+b},o(this,te).ui.opendControllers.push({position:"none",form:T.main,target:f,inst:this,notInCarrier:!0});const L=/%$/.test(d.style.width)&&/%$/.test(c.container.style.width)?X.get(c.container.style.width,0)/100+"":"";for(let N=0,O=this.percentageButtons.length;N<O;N++)this.percentageButtons[N].getAttribute("data-value")===L?u.utils.addClass(this.percentageButtons[N],"active"):u.utils.removeClass(this.percentageButtons[N],"active");if(this.captionButton&&(c.caption?u.utils.addClass(this.captionButton,"active"):u.utils.removeClass(this.captionButton,"active")),T.display.style.display=s||this._inlineCover?"none":"",T.border.style.display=n?"none":"",T.main.style.display="block",Jt.get("__overInfo")!==Lg){const N=t?"none":"flex",O=T.handles;for(let A=0,V=O.length;A<V;A++)O[A].style.display=N;if(this.controller){const A=this.getSize(d);u.utils.changeTxt(T.display,o(this,te).lang[this.align==="none"?"basic":this.align]+" ("+A.dw+", "+A.dh+")"),E(this,Rd,H0).call(this),E(this,vf,ib).call(this),o(this,te).ui._visibleControllers(!0,!0);const V=this.controller.form.querySelectorAll('[data-command="rotate"][data-value="90"], [data-command="rotate"][data-value="-90"], [data-command="caption"], [data-command="onalign"], [data-command="onresize"]'),R=this._inlineCover||h?"none":"";V==null||V.forEach(P=>{P.style.display=R});const $=this.controller.form.querySelector('[data-command="onas"]');$&&($.style.display=h?"none":"")}u.utils.removeClass(this._cover,"se-figure-over-selected"),(B=this.controller)==null||B.open(T.main,null,{initMethod:o(this,Md),isWWTarget:!1,addOffset:null}),gy.setTimeout(()=>Jt.set("__overInfo",!1),0)}else u.utils.addClass(this._cover,"se-figure-over-selected");return u.utils.addClass(this._cover,"se-figure-selected"),k(this,Pa,k(this,Wo,p)),k(this,Ha,k(this,Uo,m)),!this._inlineCover&&(Jt.get("__overInfo")!==Lg||u.utils.hasClass(c.container,"se-input-component"))&&E(this,bf,nb).call(this,T.main),M}controllerHide(){var e;(e=this.controller)==null||e.hide()}controllerShow(){var e;(e=this.controller)==null||e.show()}controllerOpen(e,t){var s;this._element=e,(s=this.controller)==null||s.open(e,null,t)}setFigureSize(e,t){/%$/.test(e+"")?this._setPercentSize(e,t):(!e||e==="auto")&&(!t||t==="auto")?this.autoRatio?this._setPercentSize(100,this.autoRatio.default||this.autoRatio.current):this._setAutoSize():this._applySize(e,t,"")}setSize(e,t){const s=this.isVertical;s&&([e,t]=[t,e]),this.setFigureSize(e,t),s&&this.setTransform(this._element,e,t,0)}getSize(e){var h,f;e||(e=this._element);const t=s1(e);let s="",n="",r="",l="";if(!e)return{w:s,h:n,dw:r,dh:l};const c=zt.GetContainer(e),d=c.target;return c.container?(s=/%$/.test(d.style.width)?(c.container&&X.get(c.container.style.width,2)||100)+"%":d.style.width,n=c.inlineCover?c.inlineCover.style.height||e.style.height||String(e.height||""):X.get((h=c.cover)==null?void 0:h.style.paddingBottom,0)>0&&!t?(f=c.cover)==null?void 0:f.style.height:!/%$/.test(d.style.height)||!/%$/.test(d.style.width)?d.style.height:(c.container&&X.get(c.container.style.height,2)||100)+"%",s||(s="auto"),n||(n="auto")):o(this,te).options.get("strictMode").formatFilter?(s="",n=d.style.height):(s=d.style.width||"auto",n=d.style.height||"auto"),r=t?n:s,l=t?s:n,{w:s,h:n,dw:r,dh:l}}setAlign(e,t){e||(e=this._element),this.align=t||(t="none");const s=zt.GetContainer(e);if(!s.cover)return;const n=s.target,r=s.container,l=s.cover;if(/%$/.test(n.style.width)&&t==="center"&&!o(this,te).component.isInline(r)?(r.style.minWidth="100%",l.style.width=r.style.width):(r.style.minWidth="",l.style.width=this.isVertical?n.style.height||n.offsetHeight+"px":!n.style.width||n.style.width==="auto"?"":n.style.width||"100%"),u.utils.hasClass(r,"__se__float-"+t)||(u.utils.removeClass(r,o(this,Ad)),u.utils.addClass(r,"__se__float-"+t)),this.autoRatio){const{w:c,h:d}=this.getSize(this._element);this.__setCoverPaddingBottom(c,d)}E(this,Rd,H0).call(this)}convertAsFormat(e,t){e||(e=this._element),this.as=t||"block";const{container:s,inlineCover:n,target:r}=zt.GetContainer(e),{w:l,h:c}=this.getSize(r),d=u.check.isAnchor(r.parentNode)?r.parentNode:null,h=r.cloneNode(!1);h.style.width="",h.style.height="",h.removeAttribute("width"),h.removeAttribute("height");let f=h;if(d){const p=d.cloneNode(!1);p.appendChild(h),f=p}switch(t){case"inline":{if(n)break;o(this,te).component.deselect();const p=s.nextElementSibling,m=s.parentElement,g=zt.CreateInlineContainer(f);u.utils.addClass(g.container,s.className.split(" ").filter(v=>v!=="se-figure-selected"&&v!=="se-component-selected").join("|")),E(this,Od,D0).call(this,g,l,c);const y=u.utils.createElement(o(this,te).options.get("defaultLine"),null,g.container);m.insertBefore(y,p),u.utils.removeItem(s);break}case"block":{if(!n)break;o(this,te).component.deselect(),o(this,te).selection.setRange(s,0,s,1);const p=o(this,te).html.remove(),m=o(this,te).nodeTransform.split(p.container,p.offset,0);m!=null&&m.previousElementSibling&&u.check.isZeroWidth(m.previousElementSibling)&&u.utils.removeItem(m.previousElementSibling);const g=zt.CreateContainer(f);u.utils.addClass(g.container,s.className.split(" ").filter(y=>y!=="se-inline-component"&&y!=="se-figure-selected"&&y!=="se-component-selected").join("|")),E(this,Od,D0).call(this,g,l,c),(m||p.container).parentElement.insertBefore(g.container,m);break}}return h}controllerAction(e){const t=e.getAttribute("data-command"),s=e.getAttribute("data-value"),n=e.getAttribute("data-type"),r=this._element;if(!(/^on.+/.test(t)||n==="selectMenu")){switch(t){case"mirror":{const l=Og(r);let c=l.x,d=l.y;s==="h"&&!this.isVertical||s==="v"&&this.isVertical?d=d?"":"180":c=c?"":"180",this._setRotate(r,l.r,c,d);break}case"rotate":{this.setTransform(r,null,null,Number(s));break}case"caption":{if(this._caption)u.utils.removeItem(this._caption),gy.setTimeout(o(this,te).component.select.bind(o(this,te).component,r,this.kind),0),this._caption=null;else{const l=zt.CreateCaption(this._cover,o(this,te).lang.caption),c=u.query.getEdgeChild(l,d=>d.nodeType===3,!1);c?o(this,te).selection.setRange(c,0,c,c.textContent.length):l.focus(),this._caption=l,this.controller.close()}(/\d+/.test(r.style.height)||this.isVertical&&this._caption)&&(/%$/.test(r.style.width)||/auto/.test(r.style.height)?this.deleteTransform():this.setTransform(r,r.style.width,r.style.height,0));break}case"revert":{this._setRevert();break}case"edit":{this.inst.componentEdit(r);break}case"copy":{o(this,te).component.copy(this._container);break}case"remove":{this.inst.componentDestroy(r),this.controller.close();break}}if(/^__c__/.test(t)){this._action[t](r,s,e);return}t!=="edit"&&(o(this,te).history.push(!1),/^remove|caption$/.test(t)||o(this,te).component.select(r,this.kind))}}retainFigureFormat(e,t,s,n){var d;const r=o(this,te).component.isInline(e),l=t.parentNode;let c=o(this,te).format.isBlock(l)||u.check.isWysiwygFrame(l)||l.nodeType>=9?t:((d=zt.GetContainer(t))==null?void 0:d.container)||l||t;if(u.query.getParentElement(t,u.check.isExcludeFormat))c=s&&s!==t?s:t,c.parentNode.replaceChild(e,c);else if(r&&o(this,te).format.isLine(c)){const h=r&&/^SPAN$/i.test(t.parentElement.nodeName)?t.parentElement:t;h.parentElement.replaceChild(e,h)}else if(u.check.isListCell(c)){const h=u.query.getParentElement(t,f=>f.parentNode===c);c.insertBefore(e,h),u.utils.removeItem(t),o(this,te).nodeTransform.removeEmptyNode(h,null,!0)}else if(o(this,te).format.isLine(c)){const h=u.query.getParentElement(t,f=>f.parentNode===c);c=o(this,te).nodeTransform.split(c,h),c.parentNode.insertBefore(e,c),u.utils.removeItem(t),o(this,te).nodeTransform.removeEmptyNode(c,null,!0)}else if(o(this,te).format.isLine(c.parentNode)){const h=c.parentNode;h.parentNode.insertBefore(e,c.previousSibling?h.nextElementSibling:h),((n==null?void 0:n.__updateTags.map(f=>c.contains(f)).length)===0||u.check.isZeroWidth(c))&&u.utils.removeItem(c)}else c=u.check.isFigure(c.parentNode)?u.query.getParentElement(c.parentNode,zt.is):c,c.parentNode.replaceChild(e,c)}deleteTransform(e){e||(e=this._element);const t=e,s=(t.getAttribute("data-se-size")||"").split(",");this.isVertical=!1,t.style.maxWidth="",t.style.transform="",t.style.transformOrigin="",E(this,yf,sb).call(this,t),this._applySize(s[0]||"auto",s[1]||"","")}setTransform(e,t,s,n){try{k(this,Fa,!0);const r=Og(e),l=r.r+(n||0)*1;n=Math.abs(l)>=360?0:l;const c=this.isVertical=s1(n);t=X.get(t,0),s=X.get(s,0);const d=e,h=(d.getAttribute("data-se-size")||"auto,auto").split(",");c&&this._setRotate(d,n,r.x,r.y);let f="";if(/auto|%$/.test(h[0])&&!c)h[0]==="auto"&&h[1]==="auto"?this._setAutoSize():this._setPercentSize(h[0],h[1]);else{const p=zt.GetContainer(d),m=p.cover||p.inlineCover,g=t||d.offsetWidth,y=s||d.offsetHeight,v=(c?y:g)+"px",b=(c?g:y)+"px";if(E(this,za,Lm).call(this),this._applySize(g+"px",y+"px",""),m&&(m.style.width=v,m.style.height=p.caption||p.inlineCover?"":b),c){const w=g/2+"px "+g/2+"px 0",_=y/2+"px "+y/2+"px 0";f=n===90||n===-270?_:w}}d.style.transformOrigin=f,c||this._setRotate(d,n,r.x,r.y),c?d.style.maxWidth="none":d.style.maxWidth="",E(this,Id,F0).call(this,d)}finally{k(this,Fa,!1)}}_displayResizeHandles(e){const t=e?"flex":"none";this.controller&&(this.controller.form.style.display=t);const s=o(this,te).frameContext.get("_figure"),n=s.handles;for(let r=0,l=n.length;r<l;r++)n[r].style.display=t;t==="none"?(u.utils.addClass(s.main,"se-resize-ing"),k(this,$d,o(this,te).eventManager.addGlobalEvent("keydown",o(this,Bd)))):u.utils.removeClass(s.main,"se-resize-ing")}_setRotate(e,t,s,n){let r=(e.offsetWidth-e.offsetHeight)*(/^-/.test(t+"")?1:-1),l="";if(/[1-9]/.test(t+"")&&(s||n))switch(l=s?"Y":"X",t+""){case"90":l=s&&n?"X":n?l:"";break;case"270":r*=-1,l=s&&n?"Y":s?l:"";break;case"-90":l=s&&n?"Y":s?l:"";break;case"-270":r*=-1,l=s&&n?"X":n?l:"";break;default:l=""}t%180===0&&(e.style.maxWidth=""),e.style.transform="rotate("+t+"deg)"+(s?" rotateX("+s+"deg)":"")+(n?" rotateY("+n+"deg)":"")+(l?" translate"+l+"("+r+"px)":"")}_applySize(e,t,s){const n=/^(rw|lw)$/.test(s)&&/\d+/.test(this._element.style.height),r=/^(th|bh)$/.test(s)&&/\d+/.test(this._element.style.width);t=t||(this.autoRatio?this.autoRatio.current||this.autoRatio.default:t),e=X.is(e)?e+this.sizeUnit:e,!/%$/.test(e)&&!/%$/.test(t)&&!n&&!r&&E(this,za,Lm).call(this);const l=this._cover||this._element;this.autoRatio&&this._cover&&(this._cover.style.width=e),r||(l.style.width=this._element.style.width=e),n||(t=X.is(t)?t+this.sizeUnit:t,l.style.height=this._element.style.height=this.autoRatio&&!this.isVertical?"100%":t,this.autoRatio&&this._cover&&(this._cover.style.height=t,this.__setCoverPaddingBottom(e,t))),this.align==="center"&&this.setAlign(this._element,this.align),E(this,Zo,tu).call(this)}__setCoverPaddingBottom(e,t){this._inlineCover!==this._cover&&(this.isVertical&&([e,t]=[t,e]),this._cover.style.height=t,/%$/.test(e)&&this.align==="center"?this._cover.style.paddingBottom=/%$/.test(t)?X.get(X.get(t,2)/100*X.get(e,2),2)+"%":t:this._cover.style.paddingBottom=t)}_setAutoSize(){this._caption&&(this._caption.style.marginTop=""),this.deleteTransform(),E(this,za,Lm).call(this),this.autoRatio?this._setPercentSize("100%",this.autoRatio.current||this.autoRatio.default):(this._element.style.maxWidth="",this._element.style.width="",this._element.style.height="",this._cover&&(this._cover.style.width="",this._cover.style.height="")),this.setAlign(this._element,this.align),E(this,Zo,tu).call(this)}_setPercentSize(e,t){t||(t=this.autoRatio?/%$/.test(this.autoRatio.current)?this.autoRatio.current:this.autoRatio.default:t),t=t&&!/%$/.test(t+"")&&!X.get(t,0)?X.is(t)?t+"%":t:X.is(t)?t+this.sizeUnit:t||(this.autoRatio?this.autoRatio.default:"");const s=/%$/.test(t+"");if(this._container.style.width=String(X.is(e)?e+"%":e),this._container.style.height="",this._element===this._cover&&!o(this,te).options.get("strictMode").formatFilter){E(this,Zo,tu).call(this);return}this._inlineCover!==this._cover&&this._cover&&(this._cover.style.width="100%",this._cover.style.height=String(t)),this._element.style.width="100%",this._element.style.maxWidth="",this._element.style.height=String(this.autoRatio?"100%":s?"":t),this.align==="center"&&this.setAlign(this._element,this.align),this.autoRatio&&this.__setCoverPaddingBottom(String(e),String(t)),E(this,Id,F0).call(this,this._element),E(this,Zo,tu).call(this)}_setRevert(){this.setFigureSize(o(this,qo).w,o(this,qo).h)}};te=new WeakMap,Md=new WeakMap,Bd=new WeakMap,Nd=new WeakMap,Ld=new WeakMap,Wo=new WeakMap,Uo=new WeakMap,Pa=new WeakMap,Ha=new WeakMap,Ad=new WeakMap,Fa=new WeakMap,qo=new WeakMap,$d=new WeakMap,Od=new WeakSet,D0=function(e,t,s){const n=this.kind;e.target.onload=()=>o(this,te).component.select(e.target,n),E(this,Vd,P0).call(this,e),e.inlineCover&&(this.setAlign(e.target,"none"),this.deleteTransform()),this.setFigureSize(t,s)},Vd=new WeakSet,P0=function(e){this._inlineCover=e.inlineCover,this._cover=e.cover||this._inlineCover,this._container=e.container,this._caption=e.caption,this._element=e.target,this.align=(this._container.className.match(/(?:^|\s)__se__float-(none|left|center|right)(?:$|\s)/)||[])[1]||e.target.style.float||"none",this.as=this._inlineCover?"inline":"block",this.isVertical=s1(e.target)},za=new WeakSet,Lm=function(){this._cover&&(this._cover.style.width="",this._cover.style.height=""),this._container.style.width="",this._container.style.height="",u.utils.removeClass(this._container,o(this,Ad)),u.utils.addClass(this._container,"__se__float-"+this.align),this.align==="center"&&this.setAlign(this._element,this.align)},Rd=new WeakSet,H0=function(){this.alignButton&&u.utils.changeElement(this.alignButton.firstElementChild,this._alignIcons[this.align])},vf=new WeakSet,ib=function(){this.asButton&&u.utils.changeElement(this.asButton.firstElementChild,o(this,te).icons[`as_${this.as}`])},Zo=new WeakSet,tu=function(){if(o(this,Fa))return;const e=(this._element.getAttribute("data-se-size")||",").split(",");o(this,qo).w=e[0],o(this,qo).h=e[1];const t=this.getSize(this._element);this._element.setAttribute("width",t.w.replace("px","")),this._element.setAttribute("height",t.h.replace("px","")),this._element.setAttribute("data-se-size",t.w+","+t.h),this.autoRatio&&(this.autoRatio.current=/%$/.test(t.h)?t.h:"")},Id=new WeakSet,F0=function(e){const t=u.query.getEdgeChild(u.query.getParentElement(e,"FIGURE"),"FIGCAPTION",!1);t&&(t.style.marginTop=(this.isVertical&&!this.autoRatio?e.offsetWidth-e.offsetHeight:0)+"px",this.isVertical&&this.autoRatio?e.style.marginTop=t.offsetHeight+"px":e.style.marginTop="")},yf=new WeakSet,sb=function(e){const t=u.query.getEdgeChild(u.query.getParentElement(e,"FIGURE"),"FIGCAPTION",!1);t&&(t.style.marginTop="")},Dd=new WeakSet,z0=function(){o(this,te).component.__removeDragEvent(),E(this,Pd,j0).call(this),this._displayResizeHandles(!0),o(this,te).ui.offCurrentController(),o(this,te).ui.disableBackWrapper()},Pd=new WeakSet,j0=function(){o(this,te).eventManager.removeGlobalEvent(this.__onContainerEvent),o(this,te).eventManager.removeGlobalEvent(this.__offContainerEvent),o(this,te).eventManager.removeGlobalEvent(o(this,$d))},bf=new WeakSet,nb=function(e){const t=o(this,te).frameContext.get("wrapper").querySelector(".se-drag-handle");u.utils.removeClass(t,"se-drag-handle-full"),t.style.opacity="",t.style.width="",t.style.height="",Jt.set("__dragHandler",t),Jt.set("__dragContainer",this._container),Jt.set("__dragCover",this._cover),Jt.set("__dragMove",E(this,Cf,ob).bind(this,t,e)),Jt.get("__dragMove")(),t.style.display="block"},Cf=new WeakSet,ob=function(e,t){e.style.display="block",e.style.left=t.offsetLeft+(o(this,te).options.get("_rtl")?e.offsetWidth:t.offsetWidth-e.offsetWidth*1.5)+"px",e.style.top=t.offsetTop-e.offsetHeight+.5+"px"},wf=new WeakSet,rb=function(e){e.stopPropagation(),e.preventDefault();const t=Jt.get("__figureInst");if(!t)return;const s=u.query.getEventTarget(e),n=t._resize_direction=s.classList[0];t._resizeClientX=e.clientX,t._resizeClientY=e.clientY,o(this,te).frameContext.get("_figure").main.style.float=/l/.test(n)?"right":/r/.test(n)?"left":"none",o(this,te).ui.enableBackWrapper(oL[n]);const{w:r,h:l,dw:c,dh:d}=this.getSize(t._element);if(i1=yc=!1,Hr=Ag=0,!this.isVertical){const f=!r||/auto|%$/.test(r),p=!l||/auto|%$/.test(l);if(rL.includes(n)&&f&&p?i1=!0:aL.includes(n)&&f&&(yc=!0),i1||yc){const m=t._cover||t._element;Ag=m.offsetWidth,Hr=xe.getWidthInPercentage(m,o(this,te).frameContext.get("wysiwygFrame"))/100}}t.__onContainerEvent=o(this,te).eventManager.addGlobalEvent("mousemove",t.__containerResizing),t.__offContainerEvent=o(this,te).eventManager.addGlobalEvent("mouseup",t.__containerResizingOff),t._displayResizeHandles(!1);const h=o(this,te).frameContext.get("_figure").display;h.style.display="block",u.utils.changeTxt(h,c+" * "+d)},_f=new WeakSet,ab=function(e){const t=this._resize_direction,s=e.clientX,n=e.clientY,r=this.isVertical;let l=r?o(this,Ha):o(this,Pa),c=r?o(this,Pa):o(this,Ha);const d=l+(/r/.test(t)?s-this._resizeClientX:this._resizeClientX-s),h=c+(/b/.test(t)?n-this._resizeClientY:this._resizeClientY-n),f=c/l*d,p=o(this,te).frameContext.get("_figure").border;/t/.test(t)&&(p.style.top=c-(/h/.test(t)?h:f)+"px"),/l/.test(t)&&(p.style.left=l-d+"px"),/r|l/.test(t)&&(p.style.width=d+"px",l=d),/^(t|b)[^h]$/.test(t)?(p.style.height=f+"px",c=f):/^(t|b)h$/.test(t)&&(p.style.height=h+"px",c=h);const m=!r&&/h$/.test(t)?o(this,Nd):Math.round(l),g=!r&&/w$/.test(t)?o(this,Ld):Math.round(c),y=Hr?m/Ag*Hr*100:m;u.utils.changeTxt(o(this,te).frameContext.get("_figure").display,Hr?X.get(y>100?100:y,2).toFixed(2)+"%":y+" * "+g),k(this,Wo,m),k(this,Uo,g)},kf=new WeakSet,lb=function(){E(this,Dd,z0).call(this);let e=this.isVertical?o(this,Uo):o(this,Wo),t=this.isVertical?o(this,Wo):o(this,Uo);if(e=Math.round(e)||e,t=Math.round(t)||t,!this.isVertical&&!/%$/.test(e+"")){const s=o(this,te).frameContext.get("wysiwygFrame").clientWidth-X.get(o(this,te).frameContext.get("wwComputedStyle").getPropertyValue("padding-left"))+X.get(o(this,te).frameContext.get("wwComputedStyle").getPropertyValue("padding-right"))-2;X.get(e,0)>s&&(t=Math.round(t/e*s),e=s)}if(i1||yc){const s=this._cover||this._element;e=e/s.offsetWidth*Hr*100;const n=X.get(e>100?100:e,2)+"%";this._setPercentSize(n,yc?this.getSize(this._element).h:"")}else this._applySize(e,t,this._resize_direction),this.isVertical&&this.setTransform(this._element,e,t,0);o(this,te).history.push(!1),o(this,te).component.select(this._element,this.kind)},xf=new WeakSet,cb=function(e){Ee.isEsc(e.code)&&(E(this,Dd,z0).call(this),o(this,te).component.select(this._element,this.kind))},Ef=new WeakSet,db=function(e){this.setAlign(this._element,e),this.selectMenu_align.close(),o(this,te).component.select(this._element,this.kind),o(this,te).history.push(!1)},Tf=new WeakSet,hb=function(e){this.convertAsFormat(this._element,e),this.selectMenu_as.close(),o(this,te).history.push(!1)},Sf=new WeakSet,ub=function(e){if(e==="auto")this.deleteTransform(),this._setAutoSize();else{let t=this.getSize(this._element).h;if(this.isVertical){const s=(this._element.getAttribute("data-se-size")||",").split(",");s[1]&&(t=s[1])}this.deleteTransform(),this._setPercentSize(e*1,X.get(t,0)===null||!/%$/.test(t)?"":t)}this.selectMenu_resize.close(),o(this,te).component.select(this._element,this.kind),o(this,te).history.push(!1)},Mf=new WeakSet,fb=function(){const e=o(this,te).frameContext.get("_figure");e.main.style.display="none",o(this,te).ui.setFigureContainer(null),o(this,te).ui.opendControllers=o(this,te).ui.opendControllers.filter(t=>t.form!==e.main)},Bf=new WeakSet,pb=function(){this.selectMenu_align.open("",'[data-command="'+this.align+'"]')},Nf=new WeakSet,mb=function(){this.selectMenu_as.open("",'[data-command="'+this.as+'"]')},Lf=new WeakSet,gb=function(){const e=this.getSize(this._element),t=e.w,s=e.h;let n="";if(this.autoRatio){if(s===this.autoRatio.default&&/%$/.test(t)){const r=X.get(t);r===100?n="auto":n="resize_percent"+r}}else s==="auto"&&(t==="auto"?n="auto":/%$/.test(t)&&(n="resize_percent"+X.get(t)));this.selectMenu_resize.open("",'[data-command="'+n+'"]')};let $g=zt;function Og(i){const e=i.style.transform;return e?{r:Number((e.match(/rotate\(([-0-9]+)deg\)/)||[])[1]||0),x:(e.match(/rotateX\(([-0-9]+)deg\)/)||[])[1]||"",y:(e.match(/rotateY\(([-0-9]+)deg\)/)||[])[1]||""}:{r:0,x:"",y:""}}function s1(i){return/^(90|270)$/.test(Math.abs(X.is(i)?i:Og(i).r).toString())}function lL(i,e,t){if(!t)return null;const s=[i._alignIcons.none,i._alignIcons.left,i._alignIcons.center,i._alignIcons.right],n=[e.lang.basic,e.lang.left,e.lang.center,e.lang.right],r=["none","left","center","right"],l=[],c=[];for(let d=0;d<r.length;d++)l.push(`
90
+ <button type="button" class="se-btn-list se-tooltip" data-command="${r[d]}" data-type="selectMenu" >
91
+ ${s[d]}
92
+ <span class="se-tooltip-inner">
93
+ <span class="se-tooltip-text">${n[d]}</span>
94
+ </span>
95
+ </button>`),c.push(r[d]);return{html:l,items:c}}function cL(i,e){if(!e)return null;const t=[i.icons.as_block,i.icons.as_inline],s=[i.lang.asBlock,i.lang.asInline],n=["block","inline"],r=[],l=[];for(let c=0;c<n.length;c++)r.push(`
96
+ <button type="button" class="se-btn-list se-tooltip" data-command="${n[c]}" data-type="selectMenu" >
97
+ ${t[c]}
98
+ <span class="se-tooltip-inner">
99
+ <span class="se-tooltip-text">${s[c]}</span>
100
+ </span>
101
+ </button>`),l.push(n[c]);return{html:r,items:l}}function dL(i,e){if(!e)return null;const t=e.getAttribute("data-value").split(","),s=[];for(let n=0,r,l,c,d;n<t.length;n++)c=t[n],r=X.is(c),l=r?"resize_percent"+c:"auto",d=r?c+"%":i.lang.autoSize,s.push('<button type="button" class="se-btn-list" data-command="'+l+'" data-value="'+c+'"><span>'+d+"</span></button>");return{html:s,items:t}}function hL(){const i=`
102
+ <div class="se-resize-dot">
103
+ <span class="tl"></span>
104
+ <span class="tr"></span>
105
+ <span class="bl"></span>
106
+ <span class="br"></span>
107
+ <span class="lw"></span>
108
+ <span class="th"></span>
109
+ <span class="rw"></span>
110
+ <span class="bh"></span>
111
+ <div class="se-resize-display"></div>
112
+ </div>`;return u.utils.createElement("DIV",{class:"se-controller se-resizing-container",style:"display: none;"},i)}function uL(i){const e=i.split("_"),t=e[0],s=e[1];let n,r,l,c,d;switch(t){case"resize":n="onresize",r=s,l="resize",d="resize";break;case"auto":n="auto",l="autoSize",d="auto_size";break;case"rotate":n="rotate",r=s==="l"?-90:s==="r"?90:X.get(s),l=r<0?"rotateLeft":"rotateRight",d=r<0?"rotate_left":"rotate_right";break;case"mirror":n="mirror",r=s,l=s==="h"?"mirrorHorizontal":"mirrorVertical",d=s==="h"?"mirror_horizontal":"mirror_vertical";break;case"align":n="onalign",l="align",d="align_justify";break;case"caption":n="caption",l="caption",d="caption";break;case"revert":n="revert",l="revert",d="revert";break;case"edit":n="edit",l="edit",d="edit";break;case"as":n="onas",l="blockStyle",d="as_block";break;case"copy":n="copy",l="copy",d="copy";break;case"remove":n="remove",l="remove",d="delete";break}return n?{c:n,v:r,l,t:c,i:d}:null}function fL(i,e,t){let s=null;if((t==null?void 0:t.length)>0){const{lang:n,icons:r}=e;s='<div class="se-arrow se-arrow-up"></div>';for(let l=0,c;l<t.length;l++){c=t[l],s+='<div class="se-btn-group">';for(let d=0,h=c.length,f;d<h;d++){if(f=c[d],typeof(f==null?void 0:f.action)=="function"){const p=f;f={c:`__c__${p.command}`,v:p.value||"",l:p.title,i:p.icon},i._action[f.c]=p.action}else if(f=uL(f),!f)continue;s+=`
113
+ <button type="button" data-command="${f.c}" data-value="${f.v}" class="se-btn se-tooltip">
114
+ ${r[f.i]||f.i}
115
+ <span class="se-tooltip-inner"><span class="se-tooltip-text">${n[f.l]||f.l}</span></span>
116
+ </button>`}s+="</div>"}}return s?u.utils.createElement("DIV",{class:"se-controller se-controller-resizing"},s):null}const pL=$g,{_w:Fr,ON_OVER_COMPONENT:zr,isMobile:mL}=pe,vy=/^Arrow(Left|Up|Right|Down)$/,yy=/^Arrow(Left|Up)$/;class gL{constructor(e){C(this,Af);C(this,$f);C(this,Fd);C(this,zd);C(this,Of);C(this,Vf);C(this,Rf);C(this,If);C(this,Df);C(this,Pf);C(this,Hf);C(this,Ff);C(this,zf);C(this,jf);C(this,Is,void 0);C(this,oe,void 0);C(this,mt,void 0);C(this,Go,void 0);C(this,Hd,void 0);C(this,Sn,void 0);C(this,ti,void 0);C(this,Rt,void 0);C(this,Mn,void 0);C(this,ja,null);C(this,Wa,null);C(this,Ua,null);C(this,qa,null);k(this,Is,e),k(this,oe,e.$),k(this,mt,e.store),k(this,Go,o(this,oe).contextProvider),k(this,Hd,o(this,Go).carrierWrapper),k(this,Sn,o(this,oe).options),k(this,ti,o(this,oe).frameContext),k(this,Rt,o(this,oe).eventManager),this.info=null,this.isSelected=!1,this.currentTarget=null,this.currentPlugin=null,this.currentPluginName="",this.currentInfo=null,k(this,Mn,{copy:E(this,Ff,Tb).bind(this),cut:E(this,zf,Sb).bind(this),keydown:E(this,jf,Mb).bind(this),mousedown:E(this,Hf,Eb).bind(this)}),this.__selectionSelected=!1,this.__prevent=!1}_init(){o(this,Go).applyToRoots(e=>{const t=u.utils.createElement("DIV",{class:"se-drag-handle",draggable:"true"},o(this,Go).icons.selection);e.get("wrapper").appendChild(t),o(this,Rt).addEvent(t,"mouseenter",E(this,Vf,Cb).bind(this)),o(this,Rt).addEvent(t,"mouseleave",E(this,Rf,wb).bind(this)),o(this,Rt).addEvent(t,"dragstart",E(this,If,_b).bind(this)),o(this,Rt).addEvent(t,"dragend",E(this,Df,kb).bind(this)),o(this,Rt).addEvent(t,"click",E(this,Pf,xb).bind(this))})}insert(e,{skipCharCount:t=!1,skipHistory:s=!1,scrollTo:n=!0,insertBehavior:r}={}){var m;if(o(this,ti).get("isReadOnly")||!t&&!o(this,oe).char.check(e))return null;r===void 0&&(r=o(this,Sn).get("componentInsertBehavior"));const l=o(this,oe).html.remove(),c=this.isInline(e);o(this,oe).selection.getRangeAndAddLine(o(this,oe).selection.getRange(),l.container);const d=o(this,oe).selection.getNode();let h=null,f=o(this,oe).format.getLine(d,null);try{if(u.check.isListCell(f))o(this,oe).html.insertNode(e,{afterNode:c?null:u.check.isZeroWidth(d)?(d||l.container||{}).nextSibling:null,skipCharCount:!0}),!c&&!e.nextSibling&&e.parentNode.appendChild(u.utils.createElement("BR"));else{if(!c&&o(this,oe).selection.getRange().collapsed&&(((m=l.container)==null?void 0:m.nodeType)===3||u.check.isBreak(l.container))){const g=u.query.getParentElement(l.container,o(this,oe).format.isBlock.bind(o(this,oe).format));h=o(this,oe).nodeTransform.split(l.container,l.offset,g?u.query.getNodeDepth(g)+1:0),h&&(f=h.previousSibling)}o(this,oe).html.insertNode(e,{afterNode:c||o(this,oe).format.isBlock(f)?null:f,skipCharCount:!0}),!c&&f&&u.check.isZeroWidth(f)&&u.utils.removeItem(f)}if(c){const g=u.utils.createTextNode(Oe.zeroWidthSpace);e.parentNode.insertBefore(g,e.nextSibling)}}catch(g){console.error("Component insert error:",g)}s||o(this,oe).history.push(!1),o(this,ti).has("documentType_use_header")&&o(this,ti).get("documentType").reHeader();const p=h||e;return n&&o(this,oe).selection.scrollTo(p,{behavior:"auto"}),r!==null&&this.applyInsertBehavior(e,h,r),p}applyInsertBehavior(e,t,s){const n=this.get(e);if(this.isInline(e)){const r=o(this,oe).selection.getNearRange(e);r?o(this,oe).selection.setRange(r.container,r.offset,r.container,r.offset):this.select(n.target,n.pluginName);return}switch(s){case"auto":{E(this,zd,U0).call(this,e)||this.select(n.target,n.pluginName);break}case"select":{o(this,oe).selection.setRange(e,0,e,0),n?this.select(n.target,n.pluginName):t&&(t=u.query.getEdgeChildNodes(t,null).sc||t,o(this,oe).selection.setRange(t,0,t,0));break}case"line":{if(!E(this,zd,U0).call(this,e)){const r=o(this,oe).format.addLine(e,null);r&&o(this,oe).selection.setRange(r,0,r,0)}break}}}get(e){if(!e)return null;let t,s="",n={},r=!1,l=null;if(this.is(e)){if(u.check.isComponentContainer(e)&&!u.utils.hasClass(e,"se-inline-component")&&(e=e.firstElementChild||e),/^FIGURE$/i.test(e.nodeName)&&(e=e.firstElementChild),!e)return null;const h=o(this,oe).pluginManager.findComponentInfo(e);if(!h)return null;t=h.target,s=h.pluginName,n=h.options,l=h.launcher}if(!t&&e.nodeName){E(this,Of,bb).call(this,e)&&(r=!0);const h=o(this,oe).pluginManager.findComponentInfo(e);if(!h)return null;t=h.target,s=h.pluginName,n=h.options,l=h.launcher}if(!t)return null;const c=pL.GetContainer(t),d=c.container||c.cover||t;return this.info={target:c.target,pluginName:s,options:n,container:d,cover:c.cover,inlineCover:c.inlineCover,caption:c.caption,isFile:r,launcher:l,isInputType:u.utils.hasClass(d,"se-input-component")}}select(e,t,{isInput:s=!1}={}){const n=this.get(e);if(!n||u.check.isUneditable(u.query.getParentElement(e,this.is.bind(this)))||u.check.isUneditable(e))return!1;const r=n.launcher||o(this,oe).plugins[t];if(!r)return;const l=ve.get("__overInfo")!==zr;if(!s&&l){if(o(this,mt).get("_mousedown"))return;o(this,mt).set("_preventBlur",!0),this.__selectionSelected=!0,this.isInline(n.container)&&o(this,oe).selection.setRange(n.container,0,n.container,0),o(this,oe).focusManager.blur(),Fr.setTimeout(()=>{this.__selectionSelected=!1})}this.isSelected=!0,this.__prevent=!0;let c;typeof r.componentSelect=="function"&&(c=r.componentSelect(e));const d=u.utils.hasClass(n.target,"se-component-line-break");(d||!c&&!u.utils.hasClass(n.container,"se-inline-component"))&&this._setComponentLineBreaker(n.container||n.cover||e),this.currentTarget=e,this.currentPlugin=r,this.currentPluginName=t,this.currentInfo=n,ve.set("__dragInst",this);const h=ve.get("__overInfo");if(Fr.setTimeout(()=>{ve.set("__overInfo",h===zr?void 0:!1),h!==zr&&E(this,Af,vb).call(this),n.isFile||E(this,$f,yb).call(this),u.utils.addClass(n.container,"se-component-selected")},0),l&&!o(this,mt).get("hasFocus")&&!o(this,mt).get("_preventFocus")&&(o(this,Is)._eventOrchestrator.__postFocusEvent(o(this,ti),null),o(this,mt).set("_preventFocus",!0)),!d&&h!==zr){if(!this.isInline(n.container))return;const f=n.container;let p=null;(!f.previousSibling||u.check.isBreak(f.previousSibling))&&(p=u.utils.createTextNode(Oe.zeroWidthSpace),f.parentNode.insertBefore(p,f)),(!f.nextSibling||u.check.isBreak(f.nextSibling))&&(p=u.utils.createTextNode(Oe.zeroWidthSpace),f.parentNode.insertBefore(p,f.nextSibling)),o(this,mt).set("controlActive",!0)}else if(d||!u.utils.hasClass(n.container,"se-input-component")){const f=o(this,ti).get("wrapper").querySelector(".se-drag-handle");u.utils.addClass(f,"se-drag-handle-full"),o(this,oe).ui._visibleControllers(!1,!1);const p=n.caption?n.target:n.cover||n.container||n.target,m=p.offsetWidth,g=p.offsetHeight,{top:y,left:v}=o(this,oe).offset.getLocal(p);f.style.opacity="0",f.style.width=m+"px",f.style.height=g+"px",f.style.top=y+"px",f.style.left=v+"px",ve.set("__dragHandler",f),ve.set("__dragContainer",n.container),ve.set("__dragCover",n.cover),f.style.display="block"}}deselect(){Fr.setTimeout(()=>{o(this,mt).set("controlActive",!1)},0),this.__deselect(),o(this,oe).ui.setControllerOnDisabledButtons(!1),o(this,mt).get("_preventFocus")&&!o(this,mt).get("hasFocus")&&!this.__prevent&&(o(this,Is)._eventOrchestrator.__postBlurEvent(o(this,ti),null),o(this,mt).set("_preventFocus",!1))}is(e){return e?!!(/^FIGURE$/i.test(e.nodeName)||u.check.isComponentContainer(e)||o(this,oe).pluginManager.findComponentInfo(e)):!1}isInline(e){return e?(/^FIGURE$/i.test(e.nodeName)&&(e=e.parentElement),!!(u.utils.hasClass(e,"se-inline-component")||o(this,oe).pluginManager.findComponentInfo(e)&&(u.utils.hasClass(e,"se-inline-component")||u.utils.hasClass(e.parentElement,"se-inline-component")))):!1}isBasic(e){return this.is(e)&&!this.isInline(e)}async copy(e){const t=u.utils.clone(e,!0);Vg(t),await o(this,oe).html.copy(t)!==!1&&u.utils.flashClass(e,"se-copy")}hoverSelect(e){const t=u.query.getParentElement(e,u.check.isFigure);let s=this.get(e);s||t?(s||(s=this.get(t)),s&&!u.utils.hasClass(s.container,"se-component-selected")&&(o(this,oe).ui.offCurrentController(),ve.set("__overInfo",zr),this.select(s.target,s.pluginName))):ve.get("__overInfo")!==null&&!u.utils.hasClass(e,"se-drag-handle")&&(this.__deselect(),ve.set("__overInfo",null))}__deselect(){var e,t;if(o(this,mt).set("_preventBlur",!1),ve.set("__overInfo",null),this.__removeDragEvent(),this.currentInfo){const s=this.currentInfo.container,n=this.currentInfo.cover;Fr.setTimeout(()=>{Vg(s),u.utils.removeClass(n,"se-figure-over-selected")},0)}o(this,ti).get("lineBreaker_t")&&(o(this,ti).get("lineBreaker_t").style.display=o(this,ti).get("lineBreaker_b").style.display="none"),this.currentPlugin&&((t=(e=this.currentPlugin).componentDeselect)==null||t.call(e,this.currentTarget)),this.isSelected=!1,this.currentPlugin=null,this.currentTarget=null,this.currentPluginName="",this.currentInfo=null,this.__removeGlobalEvent(),o(this,oe).ui._offControllers()}_setComponentLineBreaker(e){var B,N,O,A;const t=ve.get("__overInfo")===zr;o(this,Is)._eventOrchestrator._lineBreakComp=null;const s=this.get(e);if(!s)return;const n=o(this,ti),r=s.container,l=u.utils.hasClass(r,"se-flex-component"),c=n.get("lineBreaker_t"),d=n.get("lineBreaker_b"),h=c.style,f=d.style,p=r.offsetWidth<e.offsetWidth?r:e,m=o(this,oe).ui.getVisibleFigure()||p,g=u.check.isListCell(r.parentNode);let y,v;const b=o(this,Sn).get("_rtl"),w=b?["right","left"]:["left","right"],{top:_,left:x,right:S,scrollX:M,scrollY:T}=o(this,oe).offset.getLocal(p),L=b?S:x;if(g?!u.check.isBreak(r.previousElementSibling)&&!((N=(B=r.previousSibling)==null?void 0:B.textContent)!=null&&N.trim())||this.is(r.previousElementSibling):!o(this,oe).format.isLine(r.previousElementSibling)){const V=Fr.getComputedStyle(c),R=X.get(V.height,1),$=X.get(V.width,1);o(this,Is)._eventOrchestrator._lineBreakComp=r,y=_,v=m.offsetWidth/2/2,h.top=y-R/2+"px",h[w[0]]=(l?L-$/2:L+v)+"px",h[w[1]]="",c.setAttribute("data-offset",T+","+M),t?u.utils.removeClass(c,"se-on-selected"):u.utils.addClass(c,"se-on-selected"),h.display="block",h.visibility=""}else h.display="none";if(g?!u.check.isBreak(r.nextElementSibling)&&!((A=(O=r.nextSibling)==null?void 0:O.textContent)!=null&&A.trim())||this.is(r.nextElementSibling):!o(this,oe).format.isLine(r.nextElementSibling)){const V=Fr.getComputedStyle(d),R=X.get(V.height,1),$=X.get(V.width,1);y||(o(this,Is)._eventOrchestrator._lineBreakComp=r,y=_,v=m.offsetWidth/2/2),f.top=y+m.offsetHeight-R/2+"px",f[w[0]]=L+m.offsetWidth-(l?0:v)-(l?$/2:$)+"px",f[w[1]]="",d.setAttribute("data-offset",T+","+w[0]+","+M),t?u.utils.removeClass(d,"se-on-selected"):u.utils.addClass(d,"se-on-selected"),f.display="block",f.visibility=""}else f.display="none"}__removeGlobalEvent(){E(this,Fd,W0).call(this),o(this,ja)&&k(this,ja,o(this,Rt).removeGlobalEvent(o(this,ja))),o(this,Wa)&&k(this,Wa,o(this,Rt).removeGlobalEvent(o(this,Wa))),o(this,Ua)&&k(this,Ua,o(this,Rt).removeGlobalEvent(o(this,Ua)))}__removeDragEvent(){o(this,Hd).querySelector(".se-drag-cursor").style.left="-10000px",ve.get("__dragHandler")&&(ve.get("__dragHandler").style.display="none"),u.utils.removeClass([ve.get("__dragHandler"),ve.get("__dragContainer")],"se-dragging"),u.utils.removeClass([ve.get("__dragCover"),ve.get("__dragContainer")],"se-drag-over"),ve.set("__figureInst",null),ve.set("__dragInst",null),ve.set("__dragHandler",null),ve.set("__dragContainer",null),ve.set("__dragCover",null),ve.set("__dragMove",null),ve.set("__overInfo",null)}_destroy(){this.__removeGlobalEvent(),this.__removeDragEvent()}}Is=new WeakMap,oe=new WeakMap,mt=new WeakMap,Go=new WeakMap,Hd=new WeakMap,Sn=new WeakMap,ti=new WeakMap,Rt=new WeakMap,Mn=new WeakMap,ja=new WeakMap,Wa=new WeakMap,Ua=new WeakMap,qa=new WeakMap,Af=new WeakSet,vb=function(){this.__removeGlobalEvent(),k(this,ja,o(this,Rt).addGlobalEvent("copy",o(this,Mn).copy)),k(this,Wa,o(this,Rt).addGlobalEvent("cut",o(this,Mn).cut)),k(this,Ua,o(this,Rt).addGlobalEvent("keydown",o(this,Mn).keydown))},$f=new WeakSet,yb=function(){E(this,Fd,W0).call(this),k(this,qa,o(this,Rt).addGlobalEvent(mL?"click":"mousedown",o(this,Mn).mousedown,!0))},Fd=new WeakSet,W0=function(){o(this,qa)&&k(this,qa,o(this,Rt).removeGlobalEvent(o(this,qa)))},zd=new WeakSet,U0=function(e){const t=e.nextElementSibling;if(t){if(o(this,oe).format.isLine(t))return o(this,oe).selection.setRange(t,0,t,0),!0}else{const s=o(this,oe).format.addLine(e,null);return s&&o(this,oe).selection.setRange(s,0,s,0),!0}return!1},Of=new WeakSet,bb=function(e){var s;const t=e.nodeName.toLowerCase();return o(this,oe).pluginManager.fileInfo.regExp.test(t)&&(!o(this,oe).pluginManager.fileInfo.tagAttrs[t]||((s=o(this,oe).pluginManager.fileInfo.tagAttrs[t])==null?void 0:s.every(n=>e.hasAttribute(n))))},Vf=new WeakSet,Cb=function(){o(this,mt).set("_preventBlur",!0),o(this,oe).ui._visibleControllers(!1,u.utils.hasClass(ve.get("__dragHandler"),"se-drag-handle-full")),u.utils.addClass(ve.get("__dragCover")||ve.get("__dragContainer"),"se-drag-over")},Rf=new WeakSet,wb=function(){o(this,mt).set("_preventBlur",!1),u.utils.hasClass(ve.get("__dragHandler"),"se-drag-handle-full")||o(this,oe).ui._visibleControllers(!0,!0),u.utils.removeClass([ve.get("__dragCover"),ve.get("__dragContainer")],"se-drag-over")},If=new WeakSet,_b=function(e){const t=ve.get("__dragCover")||ve.get("__dragContainer");if(!t){e.preventDefault();return}o(this,mt).set("_preventBlur",!1),u.utils.addClass(ve.get("__dragHandler"),"se-dragging"),u.utils.addClass(ve.get("__dragContainer"),"se-dragging"),e.dataTransfer.setDragImage(t,o(this,Sn).get("_rtl")?t.offsetWidth:-5,-5)},Df=new WeakSet,kb=function(){o(this,mt).set("_preventBlur",!1),u.utils.removeClass([ve.get("__dragHandler"),ve.get("__dragContainer")],"se-dragging"),this.__removeDragEvent()},Pf=new WeakSet,xb=function(e){const t=u.query.getEventTarget(e);if(!u.utils.hasClass(t,"se-drag-handle-full"))return;const s=ve.get("__dragInst");s&&(this.__removeDragEvent(),this.select(s.currentTarget,s.currentPluginName))},Hf=new WeakSet,Eb=function(e){var s;const t=u.query.getEventTarget(e);(s=this.currentTarget)!=null&&s.contains(t)||u.query.getParentElement(t,".se-controller")||u.utils.hasClass(t,"se-drag-handle")||this.currentPluginName===o(this,oe).ui.currentControllerName&&o(this,oe).ui.opendControllers.some(({form:n})=>n.contains(t))||this.deselect()},Ff=new WeakSet,Tb=function(e){var r;const t=u.query.getEventTarget(e);if(u.check.isInputElement(t)&&u.query.getParentElement(t,".se-modal"))return;const s=this.info;if(!s)return;const n=s.container.cloneNode(!0);(typeof((r=o(this,oe).plugins[s.pluginName])==null?void 0:r.componentCopy)!="function"||o(this,oe).plugins[s.pluginName].componentCopy({event:e,cloneContainer:n,info:s})===!1)&&by(e,n,e.clipboardData),u.utils.flashClass(s.container,"se-copy")},zf=new WeakSet,Sb=function(e){const t=this.info;if(!t)return;const s=t.container.cloneNode(!0);u.utils.removeClass(s,"se-component-selected"),by(e,s,e.clipboardData),this.deselect(),u.utils.removeItem(t.container)},jf=new WeakSet,Mb=async function(e){var n;if(o(this,oe).ui.selectMenuOn)return;const t=e.code;if(Ee.isCtrl(e)){if(t!=="ControlRight"&&t!=="ControlLeft"){const r=o(this,oe).shortcuts.keyMap.get(t+(e.shiftKey?"1000":""));/^(redo|undo)$/.test(r==null?void 0:r.command)&&(e.preventDefault(),e.stopPropagation(),o(this,oe).commandDispatcher.run(r.command,r.type,r.button))}return}if(Ee.isRemoveKey(t)&&(e.preventDefault(),e.stopPropagation(),typeof((n=this.currentPlugin)==null?void 0:n.componentDestroy)=="function"&&(!this.info.isInputType||!o(this,mt).get("hasFocus")))){const r=this.info.container.previousSibling;if(await this.currentPlugin.componentDestroy(this.currentTarget),this.deselect(),r){const l=r.nodeType===3?r.textContent.length:1;o(this,oe).selection.setRange(r,l,r,l)}else o(this,oe).focusManager.focus();return}if(Ee.isEnter(t)){e.preventDefault();const r=this.currentInfo||this.get(this.currentTarget),l=r.container||r.target,c=l.previousElementSibling||l.nextElementSibling;let d=null;u.check.isListCell(l.parentNode)?d=u.utils.createElement("BR"):d=u.utils.createElement(o(this,oe).format.isLine(c)?c.nodeName:o(this,Sn).get("defaultLine"),null,"<br>");const h=this.currentPluginName;this.deselect(),l.parentNode.insertBefore(d,l),this.select(r.target,h)===!1&&o(this,oe).focusManager.blur(),o(this,oe).history.push(!1);return}if(vy.lastIndex=0,vy.test(t)){const{container:r}=this.get(this.currentTarget),l=this.isInline(r||this.currentTarget);let c=null,d=1;if(l)switch(t){case"ArrowLeft":c=r.previousSibling,d=(c==null?void 0:c.nodeType)===3?c.textContent.length:1;break;case"ArrowRight":c=r.nextSibling,d=0;break;case"ArrowUp":{const f=o(this,oe).format.getLine(r,null);c=f==null?void 0:f.previousElementSibling,d=0;break}case"ArrowDown":{const f=o(this,oe).format.getLine(r,null);c=f==null?void 0:f.nextElementSibling;break}}else yy.lastIndex=0,yy.test(t)?c=r.previousElementSibling:(c=r.nextElementSibling,d=0);if(!c)return;this.deselect();const h=this.get(c);if(h!=null&&h.container)e.stopPropagation(),e.preventDefault(),this.select(h.target,h.pluginName);else try{o(this,mt).set("_preventBlur",!0),e.stopPropagation(),e.preventDefault(),o(this,oe).selection.setRange(c,d,c,d)}finally{o(this,mt).set("_preventBlur",!1)}return}if(Ee.isEsc(t)){this.deselect();return}};function by(i,e,t){i.preventDefault(),i.stopPropagation(),Vg(e),t.setData("text/html",e.outerHTML)}function Vg(i){u.utils.removeClass(i,"se-component-selected"),u.utils.removeClass(i.querySelectorAll(".se-figure-selected"),"se-figure-selected"),u.utils.removeClass(i.querySelectorAll(".se-selected-table-cell"),"se-selected-table-cell"),u.utils.removeClass(i.querySelector(".se-selected-cell-focus"),"se-selected-cell-focus")}const vL=gL;class yL{constructor(e,t){C(this,jd,void 0);C(this,as,void 0);C(this,jt,void 0);C(this,Wd,void 0);C(this,Yo,void 0);C(this,Za,void 0);C(this,Ga,void 0);C(this,Ya,[]);C(this,Ka,[]);C(this,Kt,{tags:null,regExp:null,pluginRegExp:null,pluginMap:null});C(this,Ko,[]);C(this,Xa,new Map);C(this,Bn,new Map([["onMouseMove",[]],["onMouseLeave",[]],["onMouseDown",[]],["onMouseUp",[]],["onScroll",[]],["onClick",[]],["onBeforeInput",[]],["onInput",[]],["onKeyDown",[]],["onKeyUp",[]],["onFocus",[]],["onBlur",[]],["onPaste",[]],["onFilePasteAndDrop",[]]]));k(this,jd,e),k(this,as,e.$),k(this,jt,t.plugins||{}),k(this,Wd,o(this,as).contextProvider),k(this,Yo,o(this,as).options),k(this,Za,t.pluginCallButtons),k(this,Ga,t.pluginCallButtons_sub)}get plugins(){return o(this,jt)}get fileInfo(){return o(this,Kt)}findComponentInfo(e){for(const t of o(this,Ko)){const s=t(e);if(s)return s}return null}applyRetainFormat(e){let t;(t=o(this,Yo).get("__pluginRetainFilter"))&&o(this,Xa).forEach((s,n)=>{const r=e.querySelectorAll(n);for(let l=0,c=r.length;l<c;l++)(t===!0||t[s.key]!==!1)&&s.method(r[l])})}emitEvent(e,t){const s=o(this,Bn).get(e);for(let n=0,r;n<s.length;n++)if(r=s[n](t),typeof r=="boolean")return r}async emitEventAsync(e,t){const s=o(this,Bn).get(e);for(let n=0,r;n<s.length;n++)if(r=await s[n](t),typeof r=="boolean")return r}checkFileInfo(e){for(let t=0,s=o(this,Ya).length;t<s;t++)o(this,Ya)[t](e)}resetFileInfo(){for(let e=0,t=o(this,Ka).length;e<t;e++)o(this,Ka)[e]()}register(e,t,s){let n=o(this,jt)[e];if(n)typeof o(this,jt)[e]=="function"&&(n=o(this,jt)[e]=new(o(this,jt))[e](o(this,jd),s||{}));else throw Error(`[SUNEDITOR.registerPlugin.fail] The called plugin does not exist or is in an invalid format. (pluginName: "${e}")`);if(t){const{icons:r,lang:l}=o(this,Wd);for(let c=0,d=t.length;c<d;c++)ty(t[c],n,r,l);!o(this,as).commandDispatcher.activeCommands.includes(e)&&typeof o(this,jt)[e].active=="function"&&o(this,as).commandDispatcher.activeCommands.push(e)}}init(e){var r;o(this,Kt).tags=[],o(this,Kt).pluginMap={},o(this,Kt).tagAttrs={};const t=o(this,jt),s=[];let n;for(const l in t){if(this.register(l,o(this,Za)[l],e[l]),this.register(l,o(this,Ga)[l],e[l]),n=o(this,jt)[l],typeof n.__fileManagement=="object"){const d=n.__fileManagement;if(o(this,Ya).push(d._checkInfo.bind(d)),o(this,Ka).push(d._resetInfo.bind(d)),Array.isArray(d.tagNames)){const h=d.tagNames;o(this,Kt).tags=o(this,Kt).tags.concat(h),s.push(l);for(let f=0,p=h.length,m;f<p;f++)m=h[f].toLowerCase(),o(this,Kt).pluginMap[m]=l,d.tagAttrs&&(o(this,Kt).tagAttrs[m]=d.tagAttrs)}}typeof n.constructor.component=="function"&&o(this,Ko).push((function(d,h){var f;return!h||!(h=(f=d.component)==null?void 0:f.call(d,h))?null:{target:h,pluginName:d.key,options:d.options}}).bind(null,n.constructor));const c=n.constructor.options||{};if(o(this,Bn).forEach((d,h)=>{if(typeof n[h]=="function"){const f=n[h].bind(n);f.index=c[`eventIndex_${h}`]||c.eventIndex||0,d.push(f)}}),n.retainFormat){const d=n.retainFormat();o(this,Xa).set(d.query,{key:n.constructor.key,method:d.method})}}for(const l of o(this,Bn).values())l.sort((c,d)=>c.index-d.index);(o(this,Yo).get("buttons").has("pageBreak")||(r=o(this,Yo).get("buttons_sub"))!=null&&r.has("pageBreak"))&&o(this,Ko).push((function(l,c,d){return!d||!u.utils.hasClass(d,"se-page-break")?null:{target:d,launcher:{componentDestroy:f=>{const p=f.previousElementSibling||f.nextElementSibling;u.utils.removeItem(f),l.focusEdge(p),c.push(!1)}}}}).bind(null,o(this,as).focusManager,o(this,as).history)),o(this,Kt).regExp=new RegExp(`^(${o(this,Kt).tags.join("|")||"\\^"})$`,"i"),o(this,Kt).pluginRegExp=new RegExp(`^(${s.length===0?"\\^":s.join("|")})$`,"i"),k(this,Za,null),k(this,Ga,null)}get(e){return o(this,jt)[e]}_destroy(){var e,t,s;for(const n in o(this,jt)){const r=o(this,jt)[n];(e=r._destroy)==null||e.call(r),r.editor=null}k(this,jt,null),k(this,Kt,null),k(this,Ko,null),(t=o(this,Bn))==null||t.clear(),(s=o(this,Xa))==null||s.clear()}}jd=new WeakMap,as=new WeakMap,jt=new WeakMap,Wd=new WeakMap,Yo=new WeakMap,Za=new WeakMap,Ga=new WeakMap,Ya=new WeakMap,Ka=new WeakMap,Kt=new WeakMap,Ko=new WeakMap,Xa=new WeakMap,Bn=new WeakMap;const bL=yL;class CL{constructor(e){C(this,Ud,void 0);C(this,St,void 0);C(this,Xo,void 0);C(this,qd,void 0);C(this,ls,void 0);C(this,Qa,void 0);k(this,Ud,e),k(this,St,e.$),k(this,Xo,e.store),k(this,qd,o(this,St).options),k(this,ls,o(this,St).frameContext),k(this,Qa,o(this,St).frameOptions)}focus(e){if(e&&o(this,St).facade.changeFrameContext(e),o(this,ls).get("wysiwygFrame").style.display!=="none"){if(o(this,Xo).set("_preventBlur",!1),o(this,Qa).get("iframe")||!o(this,ls).get("wysiwyg").contains(o(this,St).selection.getNode()))this.nativeFocus();else try{const t=o(this,St).selection.getRange();if(t.startContainer===t.endContainer&&u.check.isWysiwygFrame(t.startContainer)){const s=t.commonAncestorContainer.children[t.startOffset];if(!o(this,St).format.isLine(s)&&!o(this,St).component.is(s)){const n=u.utils.createElement("BR"),r=u.utils.createElement(o(this,qd).get("defaultLine"),null,n);o(this,ls).get("wysiwyg").insertBefore(r,s),o(this,St).selection.setRange(n,0,n,0);return}}o(this,St).selection.setRange(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}catch(t){console.warn("[SUNEDITOR.focus.warn] ",t),this.nativeFocus()}o(this,Xo).mode.isBalloon&&o(this,Ud)._eventOrchestrator._toggleToolbarBalloon()}}focusEdge(e){o(this,Xo).set("_preventBlur",!1),e||(e=o(this,ls).get("wysiwyg").lastElementChild);const t=o(this,St).component.get(e);t?o(this,St).component.select(t.target,t.pluginName):e?(e.nodeType!==3&&(e=u.query.getEdgeChild(e,function(s){return s.childNodes.length===0||s.nodeType===3},!0)),e?o(this,St).selection.setRange(e,e.textContent.length,e,e.textContent.length):this.nativeFocus()):this.focus()}nativeFocus(){o(this,St).selection.__focus(),o(this,St).selection.init()}blur(){o(this,Qa).get("iframe")?o(this,ls).get("wysiwygFrame").blur():o(this,ls).get("wysiwyg").blur()}}Ud=new WeakMap,St=new WeakMap,Xo=new WeakMap,qd=new WeakMap,ls=new WeakMap,Qa=new WeakMap;const wL=/^H[1-6]$/,Rg=/^(UL|OL)$/,n1=/^LI$/,Cy=/^(THEAD|TBODY|TR|TD|TH)$/;function _L(i){const e=i.nodeName;return e==="P"||e==="DIV"?"p":wL.test(e)?"heading":e==="LI"?"list-item":Rg.test(e)?"list":e==="BLOCKQUOTE"?"blockquote":e==="PRE"?"pre":e==="FIGURE"?"figure":e==="TABLE"?"table":"p"}function Ig(i){let e=i;for(;e&&!on(e);){if(e.nodeName==="TABLE")return e;e=e.parentNode}return null}function wy(i){let e=i;for(;e&&!on(e);){if(e.nodeType===1&&Lv(e))return!0;e=e.parentNode}return!1}function kL(i,e){let t=0,s=null,n=i.parentNode;for(;n&&!on(n);)n.nodeType===1&&(e.isBlock(n)||e.isLine(n))&&(s||(s=n),t++),n=n.parentNode;return{depth:t,parent:s}}function xL(i){const e=i.previousElementSibling,t=i.nextElementSibling;return{prev:e,next:t}}function EL(i,e){const t=i.children;let s=null,n=1/0;for(let r=0;r<t.length;r++){const l=t[r];if(!n1.test(l.nodeName))continue;const c=l.getBoundingClientRect();if(e>=c.top&&e<=c.bottom)return Dg(l,e)||l;const d=Math.min(Math.abs(e-c.top),Math.abs(e-c.bottom));d<n&&(n=d,s=l)}return s}function Dg(i,e){const t=i.querySelector(":scope > ul, :scope > ol");if(!t)return null;const s=t.getBoundingClientRect();if(e<s.top)return null;const n=t.children;let r=null,l=1/0;for(let c=0;c<n.length;c++){const d=n[c];if(!n1.test(d.nodeName))continue;const h=d.getBoundingClientRect();if(e>=h.top&&e<=h.bottom)return Dg(d,e)||d;const f=Math.min(Math.abs(e-h.top),Math.abs(e-h.bottom));f<l&&(l=f,r=d)}return r}function TL(i,e,t,s){if(!i||!t||i.nodeType===3&&(i=i.parentNode,!i)||on(i)||wy(i))return null;let n=null;if(Cy.test(i.nodeName))n=Ig(i);else if(Rg.test(i.nodeName))n=i;else if(n1.test(i.nodeName))n=i;else if(Mv(i.parentNode))n=Ig(i);else{const h=e.getLine(i,null);if(h&&(n=h),!n){const f=e.getBlock(i,null);f&&(Cy.test(f.nodeName)?n=Ig(f):n=f)}}if(!n){let h=i;for(;h&&!on(h);){if(h.nodeType===1&&h.parentNode&&on(h.parentNode)){n=h;break}h=h.parentNode}}if(!n||wy(n))return null;if(s!==void 0){if(Rg.test(n.nodeName)){const h=EL(n,s);h&&(n=h)}else if(n1.test(n.nodeName)){const h=Dg(n,s);h&&(n=h)}}const{depth:r,parent:l}=kL(n,e),c=xL(n),d=_L(n);return{element:n,type:d,depth:r,parent:l,siblings:c,rect:n.getBoundingClientRect()}}const{_w:Gt,_d:SL}=pe;function ML(i,e){const t=(i||"").trim(),s=X.get(t,-1);return s?/rem$/.test(t)?s*(X.get(Gt.getComputedStyle(SL.documentElement).fontSize,-1)||16):/em$/.test(t)?s*(X.get(e.fontSize,-1)||16):s:0}class BL{constructor(e,t,s,n,r,l){C(this,Wf);C(this,er);C(this,Nn);C(this,Zd);C(this,Uf);C(this,tr);C(this,Gd);C(this,ir);C(this,qf);C(this,Zf);C(this,Gf);C(this,Yd);C(this,Kd);C(this,nl);C(this,Yf);C(this,Kf);C(this,Xf);C(this,Qf);C(this,Jf);C(this,ep);C(this,tp);C(this,ip);C(this,sp);C(this,np);C(this,op);C(this,rp);C(this,ap);C(this,lp);C(this,cp);C(this,Te,void 0);C(this,fi,void 0);C(this,Pe,void 0);C(this,Ja,void 0);C(this,ht,void 0);C(this,el,void 0);C(this,gt,null);C(this,_t,null);C(this,Ds,null);C(this,Qo,null);C(this,tl,void 0);C(this,Ps,null);C(this,cs,[]);C(this,Hi,!1);C(this,ds,null);C(this,Bi,null);C(this,Jo,null);C(this,il,null);C(this,sl,null);var h;k(this,Te,e),k(this,fi,t),k(this,Pe,s),k(this,Ja,n),k(this,ht,r),k(this,el,l||null),o(this,Te).contextProvider.carrierWrapper.appendChild(o(this,Pe));const c=o(this,Te).eventManager;c.addEvent(o(this,Pe),"mousedown",E(this,Jf,Db).bind(this)),k(this,ds,u.utils.createElement("DIV",{class:"se-block-drag-indicator"})),o(this,ds).style.display="none",(h=o(this,fi).parentElement)==null||h.appendChild(o(this,ds)),c.addEvent(o(this,Ja),"click",E(this,Qf,Ib).bind(this)),o(this,ht).draggable=!0,c.addEvent(o(this,ht),"dragstart",E(this,tp,Hb).bind(this)),c.addEvent(o(this,ht),"dragend",E(this,np,jb).bind(this)),c.addEvent(o(this,ht),"click",E(this,ap,qb).bind(this)),c.addEvent(o(this,fi),"mousemove",E(this,qf,Lb).bind(this)),c.addEvent(o(this,fi),"mouseleave",E(this,Zf,Ab).bind(this));const d=o(this,fi).parentElement;d&&(c.addEvent(d,"mouseleave",E(this,Gf,$b).bind(this)),c.addEvent(d,"dragover",E(this,ip,Fb).bind(this)),c.addEvent(d,"drop",E(this,sp,zb).bind(this))),c.addEvent(o(this,Te).frameContext.get("eventWysiwyg"),"keydown",E(this,ep,Pb).bind(this),!0)}positionForTarget(e,t){var s;E(this,ir,nu).call(this),!((s=o(this,gt))!=null&&s.isOpen||o(this,Hi))&&(k(this,Qo,e),k(this,tl,t),!o(this,Ds)&&k(this,Ds,Gt.requestAnimationFrame(()=>{k(this,Ds,null),o(this,Qo)&&E(this,Kd,Y0).call(this,o(this,Qo),o(this,tl))})))}hide(e){var s,n;if((s=o(this,gt))!=null&&s.isOpen)return;const t=e==null?void 0:e.relatedTarget;t&&(o(this,fi).contains(t)||(n=o(this,Pe))!=null&&n.contains(t))||E(this,Gd,Z0).call(this)}hideNow(){var e;E(this,ir,nu).call(this),E(this,er,iu).call(this),(e=o(this,gt))==null||e.close(),E(this,Nn,Ul).call(this,null)}syncScroll(){var e;o(this,_t)&&(u.utils.addClass(o(this,Pe),"se-no-transition"),E(this,nl,Am).call(this,o(this,_t)),o(this,Pe).offsetHeight,u.utils.removeClass(o(this,Pe),"se-no-transition"),(e=o(this,gt))!=null&&e.isOpen&&o(this,gt).setHidden(o(this,Pe).style.display==="none"))}destroy(){var e,t,s;o(this,Ds)&&(Gt.cancelAnimationFrame(o(this,Ds)),k(this,Ds,null)),k(this,Hi,!1),E(this,ir,nu).call(this),o(this,ht)&&(o(this,ht).draggable=!1),(e=o(this,ds))==null||e.remove(),(t=o(this,Pe))==null||t.remove(),(s=o(this,gt))==null||s.close(),k(this,gt,null),E(this,Nn,Ul).call(this,null),k(this,Qo,null),k(this,tl,void 0),k(this,Te,null),k(this,fi,null),k(this,Pe,null),k(this,Ja,null),k(this,ht,null)}}Te=new WeakMap,fi=new WeakMap,Pe=new WeakMap,Ja=new WeakMap,ht=new WeakMap,el=new WeakMap,gt=new WeakMap,_t=new WeakMap,Ds=new WeakMap,Qo=new WeakMap,tl=new WeakMap,Ps=new WeakMap,cs=new WeakMap,Hi=new WeakMap,ds=new WeakMap,Bi=new WeakMap,Jo=new WeakMap,il=new WeakMap,sl=new WeakMap,Wf=new WeakSet,Bb=function(){var e,t;o(this,Pe).style.display="flex";try{(t=(e=o(this,Pe)).showPopover)==null||t.call(e)}catch{}},er=new WeakSet,iu=function(){var e,t;try{(t=(e=o(this,Pe)).hidePopover)==null||t.call(e)}catch{}o(this,Pe).style.display="none"},Nn=new WeakSet,Ul=function(e){if(E(this,tr,su).call(this),k(this,_t,e),!e)return;const t=E(this,Zd,q0).call(this,e);if(t){k(this,cs,t);for(let s=0;s<t.length;s++)u.utils.addClass(t[s],"se-block-hover")}else u.utils.addClass(e,"se-block-hover")},Zd=new WeakSet,q0=function(e){try{const t=o(this,Te).selection.getRange();if(!t||t.collapsed)return null;const s=o(this,Te).format.getLine(t.startContainer,null),n=o(this,Te).format.getLine(t.endContainer,null);if(!s||!n||s===n)return null;const r=u.query.getListChildren(t.commonAncestorContainer,h=>o(this,Te).format.isLine(h),null),l=r.indexOf(s),c=r.indexOf(n);if(l===-1||c===-1)return null;const d=r.slice(Math.min(l,c),Math.max(l,c)+1);return d.indexOf(e)===-1?null:d}catch{}return null},Uf=new WeakSet,Nb=function(e){E(this,tr,su).call(this),k(this,cs,e||[]);for(let t=0;t<o(this,cs).length;t++)u.utils.addClass(o(this,cs)[t],"se-block-hover")},tr=new WeakSet,su=function(){o(this,_t)&&u.utils.removeClass(o(this,_t),"se-block-hover");for(let e=0;e<o(this,cs).length;e++)u.utils.removeClass(o(this,cs)[e],"se-block-hover");k(this,cs,[])},Gd=new WeakSet,Z0=function(){o(this,Ps)||k(this,Ps,Gt.setTimeout(()=>{var e;k(this,Ps,null),E(this,er,iu).call(this),(e=o(this,gt))==null||e.close(),E(this,Nn,Ul).call(this,null)},200))},ir=new WeakSet,nu=function(){o(this,Ps)&&(Gt.clearTimeout(o(this,Ps)),k(this,Ps,null))},qf=new WeakSet,Lb=function(e){var l;if(!o(this,Te)||o(this,Hi)||(E(this,ir,nu).call(this),(l=o(this,gt))!=null&&l.isOpen))return;const t=o(this,Te).frameContext.get("wysiwyg");if(!t)return;const s=o(this,Te).frameContext.get("wysiwygFrame"),n=s&&s.nodeName==="IFRAME";let r;if(n){const c=s.getBoundingClientRect(),d=s.contentDocument;d&&(r=d.elementFromPoint(c.width/2,e.clientY-c.top))}else{const c=t.getBoundingClientRect();r=document.elementFromPoint(c.left+c.width/2,e.clientY)}r&&t.contains(r)&&E(this,Kd,Y0).call(this,r,e.clientY)},Zf=new WeakSet,Ab=function(e){var t;(t=o(this,gt))!=null&&t.isOpen||E(this,Yd,G0).call(this,e==null?void 0:e.relatedTarget)||this.hideNow()},Gf=new WeakSet,$b=function(e){var t;(t=o(this,gt))!=null&&t.isOpen||E(this,Yd,G0).call(this,e==null?void 0:e.relatedTarget)||this.hideNow()},Yd=new WeakSet,G0=function(e){var s,n;if(!e)return!1;const t=(s=o(this,fi))==null?void 0:s.parentElement;return!!((n=o(this,Pe))!=null&&n.contains(e)||t!=null&&t.contains(e))},Kd=new WeakSet,Y0=function(e,t){var c;if(!o(this,Te))return;const s=o(this,Te).format,n=o(this,Te).frameContext.get("wysiwyg");if(!n)return;let r=e;if(r===n&&t!==void 0){const d=n.getBoundingClientRect(),h=document.elementFromPoint(d.left+d.width/2,t);h&&n.contains(h)&&h!==n&&(r=h)}const l=TL(r,{getLine:(d,h)=>s.getLine(d,h),getBlock:(d,h)=>s.getBlock(d,h),isLine:d=>s.isLine(d),isBlock:d=>s.isBlock(d)},n,t);if(!l){E(this,Gd,Z0).call(this);return}if(!(l.element===o(this,_t)&&o(this,Pe).style.display==="flex")){if((c=o(this,_t))!=null&&c.isConnected&&o(this,Pe).style.display==="flex"&&t!==void 0&&!o(this,_t).contains(l.element)){const d=o(this,_t).getBoundingClientRect();if(t>=d.top&&t<=d.bottom)return}E(this,Nn,Ul).call(this,l.element),E(this,nl,Am).call(this,l.element)}},nl=new WeakSet,Am=function(e){if(!e.isConnected){this.hideNow();return}const t=e.getBoundingClientRect(),s=o(this,fi).getBoundingClientRect(),n=o(this,Te).frameContext.get("wysiwygFrame"),r=/^iframe$/i.test(n.nodeName),l=r?n.getBoundingClientRect():null;if(r){const _=n.clientHeight||0;if(t.bottom<=0||t.top>=_){E(this,er,iu).call(this);return}}else{const _=n.getBoundingClientRect();if(t.bottom<=_.top||t.top>=_.bottom){E(this,er,iu).call(this);return}}const c=Gt.scrollX,d=Gt.scrollY,h=o(this,Pe).style.display!=="flex";h&&(u.utils.addClass(o(this,Pe),"se-no-transition"),o(this,Pe).style.display="flex");const f=o(this,Pe).offsetHeight||0,p=E(this,Yf,Ob).call(this,e,t),g=(r?p+l.top:p)+d-f/2,y=!!o(this,Te).options.get("_rtl"),v=E(this,Kf,Vb).call(this,e,y);let b=0;if(o(this,Te).frameOptions.get("innerWidth")){const _=o(this,Te).frameContext.get("wysiwyg");if(_){const x=Gt.getComputedStyle(_),S=X.get(y?x.paddingRight:x.paddingLeft,-1)||0,M=ML(x.getPropertyValue("--se-edit-inner-padding"),x);b=Math.max(0,S-M)}}const w=v+b;o(this,Pe).style.top=g+"px",y?(o(this,Pe).style.left="",o(this,Pe).style.right=Gt.innerWidth-s.right-c+w+"px"):(o(this,Pe).style.right="",o(this,Pe).style.left=s.left+c+w+"px"),E(this,Wf,Bb).call(this),h&&(o(this,Pe).offsetHeight,u.utils.removeClass(o(this,Pe),"se-no-transition"))},Yf=new WeakSet,Ob=function(e,t){var n;try{const r=e.ownerDocument,l=r.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let c=null;for(;(c=l.nextNode())&&!((n=c.textContent)!=null&&n.trim()););if(c){const d=r.createRange();d.setStart(c,0),d.setEnd(c,Math.min(1,c.length));const h=d.getClientRects();if(h.length)return(h[0].top+h[0].bottom)/2}}catch{}const s=X.get(Gt.getComputedStyle(e).lineHeight,-1)||t.height;return t.top+Math.min(s,t.height)/2},Kf=new WeakSet,Vb=function(e,t){const s=o(this,Te).frameContext.get("wysiwyg");if(!s)return 0;const n=o(this,Te).format,r=t?"marginRight":"marginLeft",l=t?"paddingRight":"paddingLeft";let c=0;c+=X.get(Gt.getComputedStyle(e)[r],-1)||0;let d=e.parentElement;for(;d&&d!==s;){if(n.isBlock(d)){const h=Gt.getComputedStyle(d);c+=(X.get(h[l],-1)||0)+(X.get(h[r],-1)||0)}d=d.parentElement}return c},Xf=new WeakSet,Rb=function(){if(!o(this,_t))return;const e=o(this,_t),t=E(this,Zd,q0).call(this,e),s=t?t[0]:e,n=t?t[t.length-1]:e;o(this,Te).selection.setRange(s,0,n,n.childNodes.length)},Qf=new WeakSet,Ib=function(e){if(e.preventDefault(),e.stopPropagation(),!o(this,_t))return;const t=o(this,Te).format.addLineAfter(o(this,_t));t&&(o(this,Te).selection.setRange(t,1,t,1),o(this,Te).history.push(!1))},Jf=new WeakSet,Db=function(e){const t=o(this,ht)&&(e.target===o(this,ht)||o(this,ht).contains(e.target));if(pe.isMobile){o(this,Te).store.set("_preventBlur",!0);return}t||e.preventDefault()},ep=new WeakSet,Pb=function(){E(this,tr,su).call(this)},tp=new WeakSet,Hb=function(e){var r;if(!o(this,_t)){e.preventDefault();return}k(this,Bi,o(this,_t)),k(this,Hi,!0),(r=o(this,gt))==null||r.close(),u.utils.addClass(o(this,Bi),"se-block-dragging");const t=o(this,Te).frameContext.get("wysiwyg");k(this,il,t||null),k(this,sl,t?Array.from(t.children):null);const s=!!o(this,Te).options.get("_rtl"),n=o(this,Bi);e.dataTransfer.setDragImage(n,s?n.offsetWidth:-5,-5),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("application/x-suneditor-block-drag","1")},ip=new WeakSet,Fb=function(e){o(this,Hi)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="move",E(this,op,Wb).call(this,e.clientY))},sp=new WeakSet,zb=function(e){o(this,Hi)&&(e.preventDefault(),e.stopPropagation(),E(this,rp,Ub).call(this))},np=new WeakSet,jb=function(){var e;if(o(this,Bi)&&u.utils.removeClass(o(this,Bi),"se-block-dragging"),o(this,ds).style.display="none",k(this,Hi,!1),k(this,Bi,null),k(this,Jo,null),k(this,il,null),k(this,sl,null),(e=o(this,ht))!=null&&e.parentNode){const t=o(this,ht).parentNode,s=o(this,ht).nextSibling;t.removeChild(o(this,ht)),t.insertBefore(o(this,ht),s)}},op=new WeakSet,Wb=function(e){if(!o(this,Te)||!o(this,Bi))return;const t=o(this,il),s=o(this,sl);if(!t||!s)return;const n=t.getBoundingClientRect(),r=o(this,fi).parentElement.getBoundingClientRect();let l=null,c="after",d=0,h=1/0;for(let f=0;f<s.length;f++){const p=s[f],m=p.getBoundingClientRect(),g=Math.abs(e-m.top);g<h&&(h=g,l=p,c="before",d=m.top);const y=Math.abs(e-m.bottom);y<h&&(h=y,l=p,c="after",d=m.bottom)}if(l&&l!==o(this,Bi)){k(this,Jo,{element:l,position:c});const f=o(this,ds);f.style.display="block",f.style.top=d-r.top+"px",f.style.left=n.left-r.left+"px",f.style.width=n.width+"px"}else k(this,Jo,null),o(this,ds).style.display="none"},rp=new WeakSet,Ub=function(){const e=o(this,Bi),t=o(this,Jo);!e||!t||t.element===e||!e.parentNode||(t.position==="before"?t.element.parentNode.insertBefore(e,t.element):t.element.parentNode.insertBefore(e,t.element.nextSibling),E(this,Nn,Ul).call(this,e),E(this,nl,Am).call(this,e),o(this,Te).history.push(!1))},ap=new WeakSet,qb=function(e){if(e.preventDefault(),e.stopPropagation(),!o(this,Hi)&&o(this,el))if(o(this,gt)||k(this,gt,E(this,lp,Zb).call(this)),o(this,gt).isOpen)o(this,gt).close();else{E(this,Xf,Rb).call(this);const t=o(this,Te).format.getLines(null);t.length>0&&E(this,Uf,Nb).call(this,t);const s=o(this,Te).offset.getGlobal(o(this,ht)),n=u.utils.getClientSize().h-(s.top-Gt.scrollY+s.height),r=s.top-Gt.scrollY,c=`${o(this,Te).options.get("_rtl")?"left":"right"}-${n>=r?"bottom":"top"}`;o(this,gt).open(c)}},lp=new WeakSet,Zb=function(){const e=new aN(this,o(this,Te),{items:o(this,el),resolveButton:jB,selectMenuParams:{position:"right-top",dir:o(this,Te).options.get("_rtl")?"rtl":"ltr",minWidth:"200px",keydownTarget:Gt,closeMethod:()=>{u.utils.removeClass(o(this,ht),"on"),E(this,tr,su).call(this)},openMethod:()=>{u.utils.addClass(o(this,ht),"on")}}});return e.attach(o(this,ht),E(this,cp,Gb).bind(this),{class:"se-block-action-menu"}),e.createRows(e.getItems()),e},cp=new WeakSet,Gb=function(e){var t,s;!o(this,_t)||!o(this,Te)||!e||((t=o(this,gt))==null||t.dispatch(e,{block:o(this,_t)}),e.kind!=="dropdownFree"&&((s=o(this,gt))==null||s.close()))};const NL=BL,{NO_EVENT:LL}=pe,AL={bold:["font-weight"],underline:["text-decoration"],italic:["font-style"],strike:["text-decoration"]};class $L{constructor(e){C(this,dp);C(this,hp);C(this,up);C(this,fp);C(this,pp);C(this,mp);C(this,gp);C(this,Xd,void 0);C(this,ae,void 0);C(this,ol,void 0);C(this,It,void 0);C(this,Wt,void 0);C(this,Ln,void 0);C(this,rl,null);C(this,al,null);C(this,An,null);C(this,Ni,null);k(this,Xd,e),k(this,ae,e.$),k(this,ol,e.store),k(this,It,o(this,ae).frameContext),k(this,Wt,o(this,ae).options),k(this,Ln,o(this,ae).eventManager)}async execute(e,t){if(!(o(this,It).get("isReadOnly")&&!/copy|cut|selectAll|selectAll_full|codeView|markdownView|fullScreen|print|preview|showBlocks|finder/.test(e)))switch(e){case"selectAll":E(this,dp,Yb).call(this);break;case"selectAll_full":E(this,hp,Kb).call(this);break;case"copy":{const s=o(this,ae).selection.getRange();if(s.collapsed)break;const n=u.utils.createElement("div",null,s.cloneContents());await o(this,ae).html.copy(n.innerHTML);break}case"newDocument":o(this,ae).html.set(`<${o(this,Wt).get("defaultLine")}><br></${o(this,Wt).get("defaultLine")}>`),o(this,ae).focusManager.focus(),o(this,ae).history.push(!1),o(this,It).has("documentType_use_header")&&o(this,It).get("documentType").reHeader();break;case"finder":o(this,ae).finder.isOpen?o(this,ae).finder.close():o(this,ae).finder.open(!0);break;case"codeView":o(this,ae).viewer.codeView(!o(this,It).get("isCodeView"));break;case"markdownView":o(this,ae).viewer.markdownView(!o(this,It).get("isMarkdownView"));break;case"fullScreen":o(this,ae).viewer.fullScreen(!o(this,It).get("isFullScreen"));break;case"indent":o(this,ae).format.indent();break;case"outdent":o(this,ae).format.outdent();break;case"undo":o(this,ae).history.undo();break;case"redo":o(this,ae).history.redo();break;case"removeFormat":o(this,ae).inline.remove(),o(this,ae).focusManager.focus();break;case"print":o(this,ae).viewer.print();break;case"preview":o(this,ae).viewer.preview();break;case"showBlocks":o(this,ae).viewer.showBlocks(!o(this,It).get("isShowBlocks"));break;case"dir":o(this,ae).ui.setDir(o(this,Wt).get("_rtl")?"ltr":"rtl");break;case"dir_ltr":o(this,ae).ui.setDir("ltr");break;case"dir_rtl":o(this,ae).ui.setDir("rtl");break;case"save":await E(this,up,Xb).call(this);break;case"copyFormat":E(this,fp,Qb).call(this,t);break;case"pageBreak":E(this,gp,t5).call(this);break;case"pageUp":o(this,It).get("documentType").pageUp();break;case"pageDown":o(this,It).get("documentType").pageDown();break;default:E(this,mp,e5).call(this,e)}}copyFormat(){var e,t;if((e=o(this,An))!=null&&e.length)try{const s=[...o(this,An)],n=s.pop();if(o(this,ae).inline.remove(),n){const r=o(this,ae).inline.apply(n,{stylesToModify:null,nodesToRemove:[n.nodeName],strictRemove:!1}),{parent:l,inner:c}=o(this,ae).nodeTransform.createNestedNode(s);r.parentNode.insertBefore(l,r),c.appendChild(r),o(this,ae).selection.setRange(r,u.check.isZeroWidth(r)?1:0,r,1)}if(o(this,Wt).get("copyFormatKeepOn"))return;o(this,Ni).call(this)}catch(s){console.warn("[SUNEDITOR.copyFormat.error] ",s),(t=o(this,Ni))!=null&&t.call(this)||(k(this,An,null),k(this,Ni,null))}}}Xd=new WeakMap,ae=new WeakMap,ol=new WeakMap,It=new WeakMap,Wt=new WeakMap,Ln=new WeakMap,rl=new WeakMap,al=new WeakMap,An=new WeakMap,Ni=new WeakMap,dp=new WeakSet,Yb=function(){var g,y,v,b,w,_,x,S;o(this,ae).ui.offCurrentController(),o(this,ae).menu.containerOff();const e=o(this,It).get("wysiwyg");let t=null,s="";const n=o(this,Wt).get("scopeSelectionTags"),r=o(this,ae).selection.getRange();if(!r.collapsed){let M=t=r.commonAncestorContainer,T=s=(g=M.nodeName)==null?void 0:g.toLowerCase();if(r.startOffset===0&&r.endOffset===((y=r.endContainer.textContent)==null?void 0:y.length)){const L=M.parentElement;(u.check.isList(L)||u.check.isListCell(L))&&((b=(v=L.firstChild).contains)!=null&&b.call(v,r.startContainer))&&((w=L.lastChild)!=null&&w.contains(r.endContainer))&&(t=M=L.parentElement,s=(_=M.nodeName)==null?void 0:_.toLowerCase())}for(T=(x=M.nodeName)==null?void 0:x.toLowerCase();M&&(!M.nextSibling&&!M.previousSibling&&!n.includes(T)||u.check.isContentLess(T))&&M!==e;)M=M.parentElement,T=(S=M.nodeName)==null?void 0:S.toLowerCase();n.includes(T)&&(t=M,s=T)}const l=n.filter(M=>M!==s);let d=u.query.getParentElement(t||o(this,ae).selection.getNode(),M=>{var T;return l.includes((T=M.nodeName)==null?void 0:T.toLowerCase())})||e,{first:h,last:f}=Pg(d);if(!h||!f)return;const p=u.check.isZeroWidth;for(;p(h)&&p(f)&&d!==e;)d=d.parentElement,{first:h,last:f}=Pg(u.query.getParentElement(d,M=>{var T;return l.includes((T=M.nodeName)==null?void 0:T.toLowerCase())})||e);if(!h||!f)return;let m=null;if(u.check.isMedia(h)||(m=o(this,ae).component.get(h))||u.check.isTableElements(h)){m||(m=o(this,ae).component.get(h));const M=u.utils.createElement("BR"),T=u.utils.createElement(o(this,Wt).get("defaultLine"),null,M);h=m?m.container||m.cover:h,h.parentElement.insertBefore(T,h),h=M}if(u.check.isMedia(f)||(m=o(this,ae).component.get(f))||u.check.isTableElements(f)){m||(m=o(this,ae).component.get(f));const M=u.utils.createElement("BR"),T=u.utils.createElement(o(this,Wt).get("defaultLine"),null,M);f=m?m.container||m.cover:f,f.parentElement.appendChild(T),f=M}o(this,ae).toolbar._showBalloon(o(this,ae).selection.setRange(h,0,f,f.textContent.length))},hp=new WeakSet,Kb=function(){o(this,ae).ui.offCurrentController(),o(this,ae).menu.containerOff();const e=o(this,It).get("wysiwyg");let{first:t,last:s}=Pg(e);if(!t||!s)return;let n=null;if(u.check.isMedia(t)||(n=o(this,ae).component.get(t))||u.check.isTableElements(t)){n||(n=o(this,ae).component.get(t));const r=u.utils.createElement("BR"),l=u.utils.createElement(o(this,Wt).get("defaultLine"),null,r);t=n?n.container||n.cover:t,t.parentElement.insertBefore(l,t),t=r}if(u.check.isMedia(s)||(n=o(this,ae).component.get(s))||u.check.isTableElements(s)){n||(n=o(this,ae).component.get(s));const r=u.utils.createElement("BR"),l=u.utils.createElement(o(this,Wt).get("defaultLine"),null,r);s=n?n.container||n.cover:s,s.parentElement.appendChild(l),s=r}o(this,ae).toolbar._showBalloon(o(this,ae).selection.setRange(t,0,s,s.textContent.length))},up=new WeakSet,Xb=async function(){const e=o(this,It);if(!e.get("isChanged"))return;const t=o(this,ae).html.get(),s=await o(this,Ln).triggerEvent("onSave",{frameContext:e,data:t});if(s===LL){const n=e.get("originElement");/^TEXTAREA$/i.test(n.nodeName)?n.value=t:n.innerHTML=t}else if(s===!1)return;e.set("isChanged",!1),e.set("savedIndex",o(this,ae).history.getRootStack()[o(this,ol).get("rootKey")].index),o(this,ae).commandDispatcher.applyTargets("save",n=>{n.disabled=!0})},fp=new WeakSet,Qb=function(e){if(typeof o(this,Ni)=="function"){o(this,Ni).call(this);return}const t=o(this,It).get("wysiwyg");k(this,An,[...o(this,Xd)._eventOrchestrator.__cacheStyleNodes]),k(this,Ni,E(this,pp,Jb).bind(this,o(this,Ln),t,e)),u.utils.addClass(t,"se-copy-format-cursor"),u.utils.addClass(e,"on"),k(this,rl,o(this,Ln).addGlobalEvent("keydown",s=>{var n;Ee.isEsc(s.code)&&((n=o(this,Ni))==null||n.call(this))})),k(this,al,o(this,Ln).addGlobalEvent("mousedown",s=>{var n;t.contains(s.target)||s.target===e||(n=o(this,Ni))==null||n.call(this)}))},pp=new WeakSet,Jb=function(e,t,s){return k(this,rl,e.removeGlobalEvent(o(this,rl))),k(this,al,e.removeGlobalEvent(o(this,al))),k(this,An,null),k(this,Ni,null),u.utils.removeClass(t,"se-copy-format-cursor"),u.utils.removeClass(s,"on"),!0},mp=new WeakSet,e5=function(e){e=o(this,Wt).get("_defaultTagCommand")[e.toLowerCase()]||e;let t=o(this,Wt).get("convertTextTags")[e]||e;const s=o(this,ol).get("currentNodesMap"),n=s.includes(o(this,Wt).get("_styleCommandMap")[t])?null:u.utils.createElement(t);/^sub$/i.test(t)&&s.includes("superscript")?t="sup":/^sup$/i.test(t)&&s.includes("subscript")&&(t="sub"),o(this,ae).inline.apply(n,{stylesToModify:AL[e]||null,nodesToRemove:[t],strictRemove:!1}),o(this,ae).focusManager.focus()},gp=new WeakSet,t5=function(){const e=u.utils.createElement("DIV",{class:"se-component se-component-line-break se-page-break"});o(this,ae).component.insert(e,{skipCharCount:!0,insertBehavior:"line"});const t=e.nextElementSibling||o(this,ae).format.addLine(e);o(this,ae).selection.setRange(t,1,t,1),o(this,ae).history.push(!1)};const Pg=function(i){const e=u.check.isContentLess,t=u.query.getEdgeChild(u.query.getEdgeChild(i,n=>!e(n),!1),n=>n.childNodes.length===0||n.nodeType===3||gg(n)||mg(n),!1)||i.firstChild,s=u.query.getEdgeChild(i.lastChild,n=>n.childNodes.length===0||n.nodeType===3||gg(n)||mg(n),!0)||i.lastChild;return{first:t,last:s}},Hg=".se-menu-list .se-toolbar-btn[data-command]",_y=["bold","underline","italic","strike","subscript","superscript","indent","outdent"],OL=_y.concat(["undo","redo","save","fullScreen","showBlocks","codeView","markdownView","finder","dir","dir_ltr","dir_rtl"]);class VL{constructor(e){C(this,eh);C(this,tt,void 0);C(this,Qd,void 0);C(this,ll,void 0);C(this,cl,void 0);C(this,ii,new Map);C(this,Jd,_y);k(this,tt,e.$),k(this,Qd,o(this,tt).context),k(this,ll,o(this,tt).options),k(this,cl,new $L(e)),this.allCommandButtons=new Map,this.subAllCommandButtons=new Map}get targets(){return o(this,ii)}get activeCommands(){return o(this,Jd)}run(e,t,s){if(t){if(/more/i.test(t)){const n=u.query.getParentElement(s,".se-toolbar"),r=u.utils.hasClass(n,"se-toolbar-sub")?o(this,tt).subToolbar:o(this,tt).toolbar;if(s!==r.currentMoreLayerActiveButton){const l=n.querySelector("."+e);l&&(r._moreLayerOn(s,l),r._showBalloon(),r._showInline()),u.utils.addClass(s,"on")}else r.currentMoreLayerActiveButton&&(r._moreLayerOff(),r._showBalloon(),r._showInline());o(this,tt).viewer._resetFullScreenHeight();return}if(/container/.test(t)&&(o(this,tt).menu.targetMap[e]===null||s!==o(this,tt).menu.currentContainerActiveButton)){o(this,tt).menu.containerOn(s);return}if(o(this,tt).ui.isButtonDisabled(s))return;if(/dropdown/.test(t)&&(o(this,tt).menu.targetMap[e]===null||s!==o(this,tt).menu.currentDropdownActiveButton)){o(this,tt).menu.dropdownOn(s);return}else if(/modal/.test(t)){o(this,tt).plugins[e].open(s);return}else/command/.test(t)?o(this,tt).plugins[e].action(s):/browser/.test(t)?o(this,tt).plugins[e].open(null):/popup/.test(t)&&o(this,tt).plugins[e].show()}else e&&o(this,cl).execute(e,s);/dropdown/.test(t)?o(this,tt).menu.dropdownOff():/command/.test(t)||(o(this,tt).menu.dropdownOff(),o(this,tt).menu.containerOff())}runFromTarget(e){if(u.check.isInputElement(e))return;const t=u.query.getCommandTarget(e);if(!t)return;const s=t.getAttribute("data-command"),n=t.getAttribute("data-type");!s&&!n||t.disabled||this.run(s,n,e)}applyTargets(e,t){o(this,ii).has(e)&&o(this,ii).get(e).forEach(t)}registerTargets(e,t){!e||!t||!OL.includes(e)&&!o(this,tt).plugins[e]||(o(this,ii).get(e)?o(this,ii).get(e).includes(t)||o(this,ii).get(e).push(t):o(this,ii).set(e,[t]))}unregisterTargets(e,t){const s=o(this,ii).get(e);if(!s)return;const n=s.indexOf(t);n!==-1&&s.splice(n,1),s.length===0&&o(this,ii).delete(e)}resetTargets(){k(this,ii,new Map),this._initCommandButtons()}_initCommandButtons(){const e=o(this,Qd);E(this,eh,K0).call(this,this.allCommandButtons,e.get("toolbar_buttonTray")),E(this,eh,K0).call(this,this.subAllCommandButtons,e.get("toolbar_sub_buttonTray"))}_copyFormat(){o(this,cl).copyFormat()}_destroy(){o(this,ii).clear(),this.allCommandButtons.clear(),this.subAllCommandButtons.clear(),k(this,Jd,null)}}tt=new WeakMap,Qd=new WeakMap,ll=new WeakMap,cl=new WeakMap,ii=new WeakMap,Jd=new WeakMap,eh=new WeakSet,K0=function(e,t){if(!t)return;const s=t.querySelectorAll(Hg),n=o(this,ll).get("shortcuts"),r=o(this,ll).get("_reverseCommandArray"),l=o(this,tt).shortcuts.keyMap,c=o(this,tt).shortcuts.reverseKeys;for(let d=0,h=s.length,f,p;d<h;d++)f=s[d],p=f.getAttribute("data-command"),e.set(p,f),this.registerTargets(p,f),Kv(p,f,n[p],l,r,c)};const ky=`${Hg}:not([class~="se-code-view-enabled"]):not([data-type="MORE"])`,xy=`${Hg}:not([class~="se-component-enabled"]):not([data-type="MORE"])`,{_w:o1}=pe;class RL{constructor(e){C(this,vp);C(this,yp);C(this,sh);C(this,bp);C(this,Cp);C(this,wp);C(this,th,void 0);C(this,_e,void 0);C(this,Fi,void 0);C(this,zi,void 0);C(this,pi,void 0);C(this,Ge,void 0);C(this,Lt,void 0);C(this,ji,void 0);C(this,Xt,void 0);C(this,mi,void 0);C(this,$n,void 0);C(this,sr,void 0);C(this,dl,void 0);C(this,hl,void 0);C(this,On,null);C(this,hs,void 0);C(this,Vn,!1);C(this,us,null);C(this,Hs,null);C(this,Fs,[]);C(this,Rn,[]);C(this,ih,!1);C(this,fs,null);C(this,ps,null);C(this,zs,null);zl(this,"setCurrentControllerContext");k(this,th,e),k(this,_e,e.$),k(this,Fi,e.store),k(this,zi,o(this,_e).contextProvider),k(this,pi,o(this,zi).carrierWrapper),k(this,Ge,o(this,_e).options),k(this,Lt,o(this,_e).context),k(this,ji,o(this,_e).frameRoots),k(this,Xt,o(this,_e).frameContext),k(this,mi,o(this,_e).eventManager);const t=IL(o(this,zi));this.alertModal=t,this.alertMessage=t.querySelector("span");const s=DL();s.setAttribute("popover","manual"),this.toastPopup=s,this.toastContainer=s.querySelector(".se-toast-container"),this.toastMessage=s.querySelector("span"),o(this,pi).appendChild(s),k(this,$n,o(this,pi).querySelector(".se-alert")),k(this,sr,o(this,pi).querySelector(".se-alert .se-modal-inner")),o(this,sr).appendChild(t),k(this,dl,[E(this,wp,r5).bind(this),E(this,Cp,o5).bind(this)]),k(this,hl,!1),k(this,hs,o(this,pi).querySelector(".se-back-wrapper")),this.selectMenuOn=!1,this.opendControllers=[],this.controllerTargetContext=null,this._figureContainer=null}setEditorStyle(e,t){t||(t=o(this,Xt));const s=t.get("options");s.set("editorStyle",e);const n=xe._setDefaultOptionStyle(s,e);s.set("_defaultStyles",n),t.get("topArea").style.cssText=n.top;const r=t.get("code");if(o(this,Ge).get("hasCodeMirror")){const l=s.get("_defaultStyles").frame.split(";");for(let c=0,d=l.length,h;c<d;c++){if(h=l[c].trim(),!h)continue;const[f,p]=h.split(":");r.style.setProperty(f.trim(),p.trim())}}else r.style.cssText=s.get("_defaultStyles").frame;s.get("iframe")?(t.get("wysiwygFrame").style.cssText=n.frame,t.get("wysiwyg").style.cssText=n.editor):t.get("wysiwygFrame").style.cssText=n.frame+n.editor}setTheme(e){if(typeof e!="string")return;const t=o(this,Ge),s=t.get("_themeClass").trim();t.set("theme",e||""),t.set("_themeClass",e?` se-theme-${e}`:""),e=t.get("_themeClass").trim();const n=r=>{r&&(s&&u.utils.removeClass(r,s),e&&u.utils.addClass(r,e))};n(o(this,pi)),o(this,zi).applyToRoots(r=>{n(r.get("topArea")),n(r.get("wysiwyg"))}),n(o(this,Lt).get("statusbar_wrapper")),n(o(this,Lt).get("toolbar_wrapper"))}setDir(e){var l,c;const t=e==="rtl";if(o(this,Ge).get("_rtl")===t)return;const s=o(this,Ge).get("textDirection"),n=o(this,Ge).get("_editableClass"),r=o(this,Ge).get("printClass");try{o(this,Ge).set("_rtl",t),o(this,Ge).set("textDirection",e);const d=t?o(this,Ge).get("_editableClass").replace(/\s*se-rtl/,"")+" se-rtl":o(this,Ge).get("_editableClass").replace(/\s*se-rtl/,"");o(this,Ge).set("_editableClass",d),o(this,Ge).get("printClass")&&o(this,Ge).set("printClass",t?o(this,Ge).get("printClass").replace(/\s*se-rtl/,"")+" se-rtl":o(this,Ge).get("printClass").replace(/\s*se-rtl/,"")),this.offCurrentController();const h=o(this,Xt),f=o(this,_e).pluginManager.plugins;for(const y in f)(c=(l=f[y]).setDir)==null||c.call(l,e);const p=o(this,Lt).get("toolbar_wrapper"),m=o(this,Lt).get("statusbar_wrapper");t?(o(this,zi).applyToRoots(y=>{u.utils.addClass([y.get("topArea"),y.get("wysiwyg"),y.get("documentTypePageMirror")],"se-rtl"),y.get("wysiwyg").dir="rtl"}),u.utils.addClass([o(this,pi),p,m],"se-rtl")):(o(this,zi).applyToRoots(y=>{u.utils.removeClass([y.get("topArea"),y.get("wysiwyg"),y.get("documentTypePageMirror")],"se-rtl"),y.get("wysiwyg").removeAttribute("dir")}),u.utils.removeClass([o(this,pi),p,m],"se-rtl"));const g=u.query.getListChildren(h.get("wysiwyg"),y=>o(this,_e).format.isLine(y)&&!!(y.style.marginRight||y.style.marginLeft||y.style.textAlign),null);for(let y=0,v,b,w;v=g[y];y++)v=g[y],w=v.style.marginRight,b=v.style.marginLeft,(w||b)&&(v.style.marginRight=b,v.style.marginLeft=w),w=v.style.textAlign,w==="left"?v.style.textAlign="right":w==="right"&&(v.style.textAlign="left");E(this,yp,s5).call(this,t),E(this,sh,X0).call(this,o(this,Lt).get("toolbar_buttonTray")),o(this,Lt).has("toolbar_sub_buttonTray")&&E(this,sh,X0).call(this,o(this,Lt).get("toolbar_sub_buttonTray")),o(this,Fi).mode.isBalloon?o(this,_e).toolbar._showBalloon():o(this,Fi).mode.isSubBalloon&&o(this,_e).subToolbar._showBalloon()}catch(d){o(this,Ge).set("_rtl",!t),o(this,Ge).set("textDirection",s),o(this,Ge).set("_editableClass",n),r!==null&&o(this,Ge).set("printClass",r),console.warn(`[SUNEDITOR.ui.setDir.fail] ${d.toString()}`)}o(this,Fi).set("_lastSelectionNode",null),o(this,th)._eventOrchestrator.applyTagEffect()}readOnly(e,t){var n,r,l,c,d,h,f,p;const s=t?o(this,ji).get(t):o(this,Xt);s.set("isReadOnly",!!e),this._toggleControllerButtons(!!e),e?(this.offCurrentController(),this.offCurrentModal(),(r=(n=o(this,_e).toolbar)==null?void 0:n.currentMoreLayerActiveButton)!=null&&r.disabled&&o(this,_e).toolbar._moreLayerOff(),(c=(l=o(this,_e).subToolbar)==null?void 0:l.currentMoreLayerActiveButton)!=null&&c.disabled&&o(this,_e).subToolbar._moreLayerOff(),(h=(d=o(this,_e).menu)==null?void 0:d.currentDropdownActiveButton)!=null&&h.disabled&&o(this,_e).menu.dropdownOff(),(p=(f=o(this,_e).menu)==null?void 0:f.currentContainerActiveButton)!=null&&p.disabled&&o(this,_e).menu.containerOff(),s.get("code").setAttribute("readOnly","true"),u.utils.addClass(s.get("wysiwyg"),"se-read-only")):(s.get("code").removeAttribute("readOnly"),u.utils.removeClass(s.get("wysiwyg"),"se-read-only")),o(this,Ge).get("hasCodeMirror")&&o(this,_e).viewer._codeMirrorEditor("readonly",!!e,t)}disable(e){const t=e?o(this,ji).get(e):o(this,Xt);o(this,_e).toolbar.disable(),this.offCurrentController(),this.offCurrentModal(),t.get("wysiwyg").setAttribute("contenteditable","false"),t.set("isDisabled",!0),o(this,Ge).get("hasCodeMirror")?o(this,_e).viewer._codeMirrorEditor("readonly",!0,e):t.get("code").disabled=!0}enable(e){const t=e?o(this,ji).get(e):o(this,Xt);o(this,_e).toolbar.enable(),t.get("wysiwyg").setAttribute("contenteditable","true"),t.set("isDisabled",!1),o(this,Ge).get("hasCodeMirror")?o(this,_e).viewer._codeMirrorEditor("readonly",!1,e):t.get("code").disabled=!1}show(e){const s=(e?o(this,ji).get(e):o(this,Xt)).get("topArea").style;s.display==="none"&&(s.display="block")}hide(e){const t=e?o(this,ji).get(e):o(this,Xt);t.get("topArea").style.display="none"}showLoading(e){var s;const t=(e?o(this,ji).get(e).get("container"):o(this,pi)).querySelector(".se-loading-box");t.style.display="block",(s=t.showPopover)==null||s.call(t)}hideLoading(e){var s;const t=(e?o(this,ji).get(e).get("container"):o(this,pi)).querySelector(".se-loading-box");(s=t.hidePopover)==null||s.call(t),t.style.display="none"}alertOpen(e,t){var s,n;this.alertMessage.textContent=e,u.utils.removeClass(this.alertModal,"se-alert-error|se-alert-success"),t&&u.utils.addClass(this.alertModal,`se-alert-${t}`),o(this,hl)&&k(this,On,o(this,mi).addEvent(o(this,sr),"click",o(this,dl)[1])),o(this,us)&&k(this,us,o(this,mi).removeGlobalEvent(o(this,us))),k(this,us,o(this,mi).addGlobalEvent("keydown",o(this,dl)[0])),o(this,$n).style.display="block",(n=(s=o(this,$n)).showPopover)==null||n.call(s),u.utils.addClass(this.alertModal,"se-modal-show")}alertClose(){var e,t;u.utils.removeClass(this.alertModal,"se-modal-show"),u.utils.removeClass(this.alertModal,"se-alert-*"),(t=(e=o(this,$n)).hidePopover)==null||t.call(e),o(this,$n).style.display="none",o(this,On)&&k(this,On,o(this,mi).removeEvent(o(this,On))),o(this,us)&&k(this,us,o(this,mi).removeGlobalEvent(o(this,us)))}showToast(e,t=1e3,s){var n,r;u.utils.hasClass(this.toastContainer,"se-toast-show")&&this.closeToast(),u.utils.removeClass(this.toastPopup,"se-toast-error|se-toast-success"),s&&u.utils.addClass(this.toastPopup,`se-toast-${s}`),this.toastPopup.style.display="block",(r=(n=this.toastPopup).showPopover)==null||r.call(n),this.toastMessage.textContent=e,u.utils.addClass(this.toastContainer,"se-toast-show"),k(this,Hs,o1.setTimeout(()=>{this.closeToast()},t))}closeToast(){var e,t;o(this,Hs)&&o1.clearTimeout(o(this,Hs)),k(this,Hs,null),u.utils.removeClass(this.toastContainer,"se-toast-show"),(t=(e=this.toastPopup).hidePopover)==null||t.call(e),this.toastPopup.style.display="none"}setControllerOnDisabledButtons(e){return e&&!o(this,Vn)?(this._toggleControllerButtons(!0),k(this,Vn,!0)):!e&&o(this,Vn)&&(this._toggleControllerButtons(!1),k(this,Vn,!1)),o(this,Vn)}onControllerContext(){this.controllerTargetContext=o(this,Xt).get("topArea")}offControllerContext(){this.controllerTargetContext=null}enableBackWrapper(e){var t,s;o(this,hs).style.cursor=e,o(this,hs).style.display="block",(s=(t=o(this,hs)).showPopover)==null||s.call(t)}disableBackWrapper(){var e,t;(t=(e=o(this,hs)).hidePopover)==null||t.call(e),o(this,hs).style.display="none",o(this,hs).style.cursor="default"}offCurrentController(){o(this,_e).component.__deselect()}offCurrentModal(){var e;(e=this.opendModal)==null||e.close()}getVisibleFigure(){var e;return((e=this._figureContainer)==null?void 0:e.style.display)==="block"?this._figureContainer:null}setFigureContainer(e){this._figureContainer=e}preventToolbarHide(e){k(this,ih,e)}get isPreventToolbarHide(){return o(this,ih)}get blockHandle(){return o(this,zs)}reset(e){e.set("_editorHeight",e.get("wysiwygFrame").offsetHeight),k(this,fs,e.get("lineBreaker_t")),k(this,ps,e.get("lineBreaker_b"));const t=o(this,Ge).get("blockHandle");t&&e.get("blockHandleArea")&&!o(this,zs)&&k(this,zs,new NL(o(this,_e),e.get("blockHandleArea"),e.get("blockHandle"),e.get("blockHandlePlus"),e.get("blockHandleDrag"),t.menu))}_offControllers(){var s,n;const e=this.opendControllers,t=[];for(let r=0,l;r<e.length;r++){if(l=e[r],l.fixed){t.push(l);continue}(n=(s=l.inst).controllerClose)==null||n.call(s),l.form&&(l.form.style.display="none")}this.opendControllers=t,this.currentControllerName="",o(this,Fi).set("_preventBlur",!1)}_syncScrollPosition(e){var n;const t=e.scrollTop||e.scrollY||0,s=e.scrollLeft||e.scrollX||0;o(this,Fi).mode.isBalloon&&o(this,Lt).get("toolbar_main").style.display==="block"?(o(this,Lt).get("toolbar_main").style.top=o(this,_e).toolbar.balloonOffset.top-t+"px",o(this,Lt).get("toolbar_main").style.left=o(this,_e).toolbar.balloonOffset.left-s+"px"):o(this,Fi).mode.isSubBalloon&&o(this,Lt).get("toolbar_sub_main").style.display==="block"&&(o(this,Lt).get("toolbar_sub_main").style.top=o(this,_e).subToolbar.balloonOffset.top-t+"px",o(this,Lt).get("toolbar_sub_main").style.left=o(this,_e).subToolbar.balloonOffset.left-s+"px"),(n=o(this,zs))==null||n.syncScroll(),this.controllerTargetContext!==o(this,Xt).get("topArea")&&this.offCurrentController(),E(this,vp,i5).call(this,s,t)}_repositionControllers(){var t;const e=this.opendControllers;if(e.length!==0){ve.get("__dragMove")&&ve.get("__dragMove")();for(let s=0;s<e.length;s++)e[s].notInCarrier||(t=e[s].inst)==null||t._scrollReposition()}}_visibleControllers(e,t){const s=e?"":"hidden",n=t??s?"":"hidden",r=this.opendControllers;for(let l=0,c;l<r.length;l++)c=r[l],c.form&&(c.form.style.visibility=s);o(this,fs).style.visibility=n,o(this,ps).style.visibility=n}_initToggleButtons(){const e=o(this,Lt);k(this,Rn,xe.nodeListToArray(e.get("toolbar_buttonTray").querySelectorAll(ky))),k(this,Fs,xe.nodeListToArray(e.get("toolbar_buttonTray").querySelectorAll(xy))),o(this,Ge).has("_subMode")&&(k(this,Rn,o(this,Rn).concat(xe.nodeListToArray(e.get("toolbar_sub_buttonTray").querySelectorAll(ky)))),k(this,Fs,o(this,Fs).concat(xe.nodeListToArray(e.get("toolbar_sub_buttonTray").querySelectorAll(xy)))))}_toggleCodeViewButtons(e){u.utils.setDisabled(o(this,Rn),e)}_toggleControllerButtons(e){u.utils.setDisabled(o(this,Fs),e)}isButtonDisabled(e){return!!(o(this,Xt).get("isReadOnly")&&u.utils.arrayIncludes(o(this,Fs),e))}_updatePlaceholder(e){e||(e=o(this,Xt));const t=e.get("isMarkdownView")||e.get("isCodeView"),s=!t&&E(this,bp,n5).call(this,e),n=e.get("placeholder");n&&(n.style.display=!t&&!s&&o(this,_e).facade.isEmpty(e)?"block":"none")}resolveLinePlaceholder(e,t){if(!e||!t)return"";if(typeof t!="object")return u.check.isListCell(e)||u.query.getParentElement(e,u.check.isTableCell)?"":t;const s=o(this,_e).format,n=e.nodeName.toLowerCase();if(typeof t[n]=="string")return t[n];if(u.check.isListCell(e)&&typeof t["@list"]=="string")return t["@list"];if(s.isClosureBrLine(e)&&typeof t["@closureBrLine"]=="string")return t["@closureBrLine"];if(s.isBrLine(e)&&typeof t["@brLine"]=="string")return t["@brLine"];const r=s.getBlock(e);if(r&&r!==e){const l=r.nodeName.toLowerCase();if(typeof t[l]=="string")return t[l];if(s.isClosureBlock(r)&&typeof t["@closureBlock"]=="string")return t["@closureBlock"];if(typeof t["@block"]=="string")return t["@block"]}return s.isNormalLine(e)&&typeof t["@normalLine"]=="string"?t["@normalLine"]:typeof t["@line"]=="string"?t["@line"]:""}_syncFrameState(e){e&&(this._iframeAutoHeight(e),this._updatePlaceholder(e),e.has("documentType_use_page")&&(e.get("documentTypePageMirror").innerHTML=e.get("wysiwyg").innerHTML,e.get("documentType").rePage(!0)))}_iframeAutoHeight(e){if(!e)return;const t=e.get("_iframeAuto");if(t)o1.setTimeout(()=>{const s=t.offsetHeight,n=e.get("wysiwygFrame");if(!n)return;n.style.height=s+"px";const r=e.get("options");if(r!=null&&r.get("iframe")){const l=r.get("maxHeight");l&&n.setAttribute("scrolling",s>X.get(l)?"auto":"no")}pe.isResizeObserverSupported||this._emitResizeEvent(e,s,null)},0);else if(!pe.isResizeObserverSupported){const s=e.get("wysiwygFrame");s&&this._emitResizeEvent(e,s.offsetHeight,null)}}_emitResizeEvent(e,t,s){t=t===-1?s!=null&&s.borderBoxSize&&s.borderBoxSize[0]?s.borderBoxSize[0].blockSize:s.contentRect.height+X.get(e.get("wwComputedStyle").getPropertyValue("padding-left"))+X.get(e.get("wwComputedStyle").getPropertyValue("padding-right")):t,e.get("_editorHeight")!==t&&(o(this,mi).triggerEvent("onResizeEditor",{height:t,prevHeight:e.get("_editorHeight"),frameContext:e,observerEntry:s}),e.set("_editorHeight",t)),e.has("documentType_use_page")&&e.get("documentType").resizePage()}init(){k(this,hl,!o(this,mi).addEvent(this.alertModal.querySelector('[data-command="close"]'),"click",this.alertClose.bind(this))),this._initToggleButtons()}_destroy(){var e;o(this,Hs)&&o1.clearTimeout(o(this,Hs)),o(this,us)&&k(this,us,o(this,mi).removeGlobalEvent(o(this,us))),o(this,On)&&k(this,On,o(this,mi).removeEvent(o(this,On))),this.opendModal=null,this.opendBrowser=null,k(this,fs,null),k(this,ps,null),(e=o(this,zs))==null||e.destroy(),k(this,zs,null),k(this,Fs,null),k(this,Rn,null)}}th=new WeakMap,_e=new WeakMap,Fi=new WeakMap,zi=new WeakMap,pi=new WeakMap,Ge=new WeakMap,Lt=new WeakMap,ji=new WeakMap,Xt=new WeakMap,mi=new WeakMap,$n=new WeakMap,sr=new WeakMap,dl=new WeakMap,hl=new WeakMap,On=new WeakMap,hs=new WeakMap,Vn=new WeakMap,us=new WeakMap,Hs=new WeakMap,Fs=new WeakMap,Rn=new WeakMap,ih=new WeakMap,fs=new WeakMap,ps=new WeakMap,zs=new WeakMap,vp=new WeakSet,i5=function(e,t){if(o(this,fs)){const n=o(this,fs).style;if(n.display!=="none"){const r=(o(this,fs).getAttribute("data-offset")||",").split(",");n.top=X.get(n.top,0)-(t-X.get(r[0],0))+"px",n.left=X.get(n.left,0)-(e-X.get(r[1],0))+"px",o(this,fs).setAttribute("data-offset",t+","+e)}}if(o(this,ps)){const n=o(this,ps).style;if(n.display!=="none"){const r=(o(this,ps).getAttribute("data-offset")||",").split(",");n.top=X.get(n.top,0)-(t-X.get(r[0],0))+"px",n[r[1]]=X.get(n[r[1]],0)-(e-X.get(r[2],0))+"px",o(this,ps).setAttribute("data-offset",t+","+r[1]+","+e)}}const s=this.opendControllers;for(let n=0;n<s.length;n++)s[n].notInCarrier&&(s[n].form.style.top=s[n].inst.__offset.top-t+"px",s[n].form.style.left=s[n].inst.__offset.left-e+"px")},yp=new WeakSet,s5=function(e){var r,l,c,d;const t=o(this,zi).icons,s=(r=o(this,_e).commandDispatcher)==null?void 0:r.targets;if(!s)return;const n=(l=o(this,_e).shortcuts)==null?void 0:l.keyMap;(d=(c=o(this,_e).shortcuts)==null?void 0:c.reverseKeys)==null||d.forEach(h=>{const f=n==null?void 0:n.get(h);f&&([f.command,f.r]=[f.r,f.command])}),o(this,_e).commandDispatcher.applyTargets("dir",h=>{u.utils.changeTxt(h.querySelector(".se-tooltip-text"),o(this,zi).lang[e?"dir_ltr":"dir_rtl"]),u.utils.changeElement(h.firstElementChild,t[e?"dir_ltr":"dir_rtl"])}),e?(u.utils.addClass(s.get("dir_rtl"),"active"),u.utils.removeClass(s.get("dir_ltr"),"active")):(u.utils.addClass(s.get("dir_ltr"),"active"),u.utils.removeClass(s.get("dir_rtl"),"active"))},sh=new WeakSet,X0=function(e){if(!e)return;const t=e.querySelector(".se-toolbar-more-layer"),s=Array.from(e.children).filter(n=>n!==t);for(let n=s.length-1;n>=0;n--)e.appendChild(s[n]);t&&e.appendChild(t)},bp=new WeakSet,n5=function(e){const t=e.get("placeholder_line");if(!t)return!1;const s=e.get("wysiwyg"),n=o(this,Fi).get("hasFocus")?o(this,_e).format.getLine(o(this,_e).selection.selectionNode):null,r=u.check.isEmptyLine(n)?this.resolveLinePlaceholder(n,t):"",l=r?n:null,c=s.querySelectorAll(".se-placeholder-line");for(let d=0;d<c.length;d++){const h=c[d];h!==l&&(h.classList.remove("se-placeholder-line"),h.removeAttribute("data-se-placeholder-line"),h.getAttribute("class")||h.removeAttribute("class"))}return l?(l.classList.add("se-placeholder-line"),l.setAttribute("data-se-placeholder-line",r),!0):!1},Cp=new WeakSet,o5=function(e){const t=u.query.getEventTarget(e);(/close/.test(t.getAttribute("data-command"))||t===o(this,sr))&&this.alertClose()},wp=new WeakSet,r5=function(e){Ee.isEsc(e.code)&&this.alertClose()};function IL({lang:i,icons:e}){const t='<div><button type="button" class="close" data-command="close" title="'+i.close+'">'+e.cancel+"</button></div><div><span></span></div>";return u.utils.createElement("DIV",{class:"se-alert-content"},t)}function DL(){const i='<div class="se-toast-container"><span></span></div>';return u.utils.createElement("DIV",{class:"se-toast"},i)}const PL=RL;function HL(i){const e=i.$,t=i.store,s=e.contextProvider,n=e.eventManager,r=s.frameRoots,l=s.context,c=s.frameContext;let d=e.options.get("historyStackDelayTime");const h=e.options.get("historyStackSize");let f=null,p,m,g,y,v=!1,b=null;function w(B,N,O){O&&t.get("hasFocus")&&i._eventOrchestrator.applyTagEffect(),e.history.resetButtons(B.get("key"),N),n.triggerEvent("onChange",{frameContext:B,data:B.get("wysiwyg").innerHTML}),l.get("toolbar_main").style.display==="block"?e.toolbar._showBalloon():t.mode.isSubBalloon&&l.get("toolbar_sub_main").style.display==="block"&&e.subToolbar._showBalloon()}function _(B){const N=m[p],O=g[N];p+=B;const A=B<0&&N!==m[p]&&O.index>0?N:m[p],V=g[A];V.index+=B;const R=V.value[V.index];if(!R){console.warn("[SunEditor.history.setContent.fail] History state desynchronized. Aborting undo/redo operation."),V.index-=B,p-=B;return}r.get(A).get("wysiwyg").innerHTML=R.content,N!==A&&B<0&&p===1?p=0:N!==A&&B>0&&V.index===1?p++:(B<0&&V.index<1||B>0&&V.index>V.value.length)&&(p+=B);let $=A,P=R;if(B<0&&p>0&&V.index===0){const W=m[p+B];if(W!==A){const Z=g[W];$=W,P=Z.value[Z.index]}}e.facade.changeFrameContext($),e.selection.setRange(bg(P.s.path,P.frame),P.s.offset,bg(P.e.path,P.frame),P.e.offset),e.focusManager.focus(),p<0?p=0:p>=m.length&&(p=m.length-1),e.ui.offCurrentController(),e.pluginManager.checkFileInfo(!1),e.char.display(),e.ui._syncFrameState(c),c.has("documentType_use_header")&&c.get("documentType").reHeader(),w(c,V.index,!0)}function x(B,N,O,A){let V,R;N?(V={path:yg(N.startContainer,null,null),offset:N.startOffset},R={path:yg(N.endContainer,null,null),offset:N.endOffset}):(V={path:[0,0],offset:[0,0]},R={path:0,offset:0}),p+=A,m[p]=O;const $=g[O];$.index+=A,$.value[$.index]={content:B,s:V,e:R,frame:r.get(O).get("wysiwyg")}}function S(B){p++,m[p]=B;const N=g[B];N.index=0,N.value[0]={content:y[B],s:{path:[0,0],offset:[0,0]},e:{path:0,offset:0},frame:r.get(B).get("wysiwyg")}}function M(B){g[B]={value:[],index:-1},y[B]=r.get(B).get("wysiwyg").innerHTML}function T(B){const N=[];for(let O=p+1,A=m.length;O<A;O++)N.includes(m[O])||N.push(m[O]);m=m.slice(0,p+1),B.value.splice(B.index+1),e.commandDispatcher.applyTargets("redo",O=>{O.disabled=!0});for(let O=0,A=N.length;O<A;O++)m.includes(N[O])||M(N[O])}function L(B,N){e.pluginManager.checkFileInfo(!1);const O=r.get(B),A=O.get("wysiwyg").innerHTML,V=g[B];if(!(!A||V.value[V.index]&&A===V.value[V.index].content)){if(m.length>p+1&&T(V),V.value.length===0&&S(B),x(A,N,B,1),V.value.length>h){const R=V.value.length-h;V.value.splice(0,R),V.index-=R;let $=0;for(let P=m.length-1;P>=0&&$<R;P--)if(m[P]===B){for(let W=0;W<m.length;W++)if(m[W]===B){m.splice(W,1),$++;break}}p-=R}p===1&&e.commandDispatcher.applyTargets("undo",R=>{R.disabled=!1}),e.char.display(),w(O,V.index,!1)}}return{push(B,N){if(v)return;N=N||N===null?N:t.get("rootKey");const O=t.get("_range");ue.setTimeout(e.ui._syncFrameState.bind(e.ui,r.get(N)),0);const A=typeof B=="number"?B>0?B:0:B?d:0;if((!A||f)&&(ue.clearTimeout(f),!A)){L(N,O);return}f=ue.setTimeout(()=>{ue.clearTimeout(f),f=null,L(N,O)},A)},check(B,N){f&&(ue.clearTimeout(f),f=null,L(B,N))},undo(){p>0&&_(-1)},redo(){m.length-1>p&&_(1)},overwrite(B){x(r.get(B||t.get("rootKey")).get("wysiwyg").innerHTML,null,t.get("rootKey"),0)},pause(){v=!0,b&&(ue.clearTimeout(b),b=null),b=ue.setTimeout(()=>{v=!1},5e3)},resume(){b&&(ue.clearTimeout(b),b=null),v=!1},reset(){e.commandDispatcher.applyTargets("undo",N=>N.disabled=!0),e.commandDispatcher.applyTargets("redo",N=>N.disabled=!0),e.commandDispatcher.applyTargets("save",N=>N.disabled=!0),s.applyToRoots(N=>N.set("historyIndex",-1)),s.applyToRoots(N=>N.set("isChanged",!1)),p=-1,m=[],g={},y={},v=!1;const B=s.rootKeys;for(let N=0,O=B.length;N<O;N++)M(B[N])},resetButtons(B,N){const O=!X.is(N),A=g[B===void 0?m[p]:B];N=O?A.index:N;const V=r.get(B),R=A.value.length-1;e.commandDispatcher.applyTargets("undo",Z=>{N>0&&N<=R?Z.disabled=!1:Z.disabled=!0}),e.commandDispatcher.applyTargets("redo",Z=>{N>-1&&N<R?Z.disabled=!1:Z.disabled=!0});const $=V.get("savedIndex"),P=V.get("historyIndex"),W=$>-1?$!==N:O?A.index>0:N>0&&P!==N;V.set("historyIndex",N),V.set("isChanged",W),e.commandDispatcher.applyTargets("save",Z=>{W?Z.disabled=!1:Z.disabled=!0}),n.triggerEvent("onResetButtons",{rootKey:B})},getRootStack(){return g},resetDelayTime(B){d=B},_destroy(){f&&ue.clearTimeout(f),b&&ue.clearTimeout(b),p=m=g=y=null}}}const{_w:Qi}=pe;class FL{constructor(e,{keyName:t,balloon:s,inline:n,balloonAlways:r,res:l}){C(this,_p);C(this,or);C(this,rr);C(this,kp);C(this,bl);C(this,ul,void 0);C(this,Ve,void 0);C(this,In,void 0);C(this,fl,void 0);C(this,pl,void 0);C(this,Xe,void 0);C(this,ut,void 0);C(this,at,void 0);C(this,nr,void 0);C(this,nh,void 0);C(this,ml,void 0);C(this,Dn,void 0);C(this,gl,"default");C(this,oh,null);C(this,rh,null);C(this,Pn,!1);C(this,vl,!1);C(this,yl,!1);k(this,ul,e),k(this,Ve,e.$),k(this,In,e.store),k(this,fl,o(this,Ve).icons),k(this,pl,o(this,Ve).lang),k(this,Xe,o(this,Ve).context),k(this,ut,o(this,Ve).frameContext),k(this,at,o(this,Ve).options),k(this,nr,o(this,Ve).eventManager),this.isSub=t==="toolbar_sub",this.keyName={main:this.isSub?"toolbar_sub_main":"toolbar_main",buttonTray:this.isSub?"toolbar_sub_buttonTray":"toolbar_buttonTray",width:this.isSub?"toolbar_sub_width":"toolbar_width"},this.currentMoreLayerActiveButton=null,this.isBalloonMode=s,this.isInlineMode=n,this.isBalloonAlwaysMode=r,this.inlineToolbarAttr={top:"",width:"",isShow:!1},this.balloonOffset={top:0,left:0},k(this,nh,l),k(this,ml,l),k(this,Dn,"visualViewport"in Qi);const c=!this.isSub&&!s&&!n,d=o(this,at).get("_toolbar_sticky");if(k(this,Pn,c&&d>=0&&!o(this,at).get("toolbar_container")&&!o(this,at).get("_toolbar_sticky_fixed")&&typeof CSS<"u"&&CSS.supports("position","sticky")),this.isBottomMode=o(this,In).mode.isBottom,o(this,Pn)){const h=o(this,Xe).get(this.keyName.main);this.isBottomMode?(h.style.bottom=d+"px",h.style.top="auto"):d>0&&(h.style.top=d+"px")}else c&&u.utils.addClass(o(this,Xe).get(this.keyName.main),"se-toolbar-relative");this._setResponsive()}get isSticky(){if(this.isSub)return!1;const e=o(this,at).get("_toolbar_sticky");if(e<0)return!1;if(o(this,Pn)){const t=o(this,Xe).get(this.keyName.main);if(!t||t.offsetWidth===0||t.style.display==="none")return!1;if(this.isBottomMode){const s=o(this,Dn)?Qi.visualViewport.height:Qi.innerHeight;return t.getBoundingClientRect().bottom>=s-e-1}return t.getBoundingClientRect().top<=e+1}return o(this,vl)}get isCSSSticky(){return o(this,Pn)}disable(){this._moreLayerOff(),o(this,Ve).menu.dropdownOff(),o(this,Ve).menu.containerOff(),u.utils.setDisabled(o(this,Xe).get(this.keyName.buttonTray).querySelectorAll(".se-menu-list .se-toolbar-btn[data-type]"),!0)}enable(){u.utils.setDisabled(o(this,Xe).get(this.keyName.buttonTray).querySelectorAll(".se-menu-list .se-toolbar-btn[data-type]"),!1)}show(){this.isInlineMode?this._showInline():this.isBalloonMode?this._showBalloon():(o(this,Xe).get(this.keyName.main).style.display="",this.isSub||(o(this,ut).get("_stickyDummy").style.display="")),this.isSub||this.resetResponsiveToolbar()}hide(){this.isInlineMode?(o(this,Xe).get(this.keyName.main).style.display="none",o(this,Xe).get(this.keyName.main).style.top="0px",this.inlineToolbarAttr.isShow=!1):(o(this,Xe).get(this.keyName.main).style.display="none",this.isSub||(o(this,ut).get("_stickyDummy").style.display="none"),this.isBalloonMode&&(this.balloonOffset={top:0,left:0}))}resetResponsiveToolbar(){o(this,Ve).menu.containerOff();const e=o(this,rh);if(e){let t=0;(this.isBalloonMode||this.isInlineMode)&&o(this,at).get("toolbar_width")==="auto"||o(this,In).mode.isSubBalloon&&o(this,at).get("toolbar_sub_width")==="auto"?t=o(this,ut).get("topArea").offsetWidth:t=o(this,Xe).get(this.keyName.main).offsetWidth;let s="default";for(let n=1,r=e.length;n<r;n++)if(t<e[n]){s=e[n]+"";break}o(this,gl)!==s&&(k(this,gl,s),this.setButtons(o(this,oh)[s]))}}setButtons(e){this._moreLayerOff(),o(this,Ve).menu.dropdownOff(),o(this,Ve).menu.containerOff();const t=Sg(e,o(this,Ve).plugins,o(this,at),o(this,fl),o(this,pl),!0);t.updateButtons.forEach(s=>ty(s.button,s.plugin,o(this,fl),o(this,pl))),o(this,Xe).get(this.keyName.main).replaceChild(t.buttonTray,o(this,Xe).get(this.keyName.buttonTray)),o(this,Xe).set(this.keyName.buttonTray,t.buttonTray),E(this,_p,a5).call(this),o(this,nr).triggerEvent("onSetToolbarButtons",{buttonTray:t.buttonTray,frameContext:o(this,ut)})}_resetSticky(){if(o(this,Pn)){E(this,kp,l5).call(this);return}const e=o(this,ut).get("wrapper");if(!e)return;const t=o(this,Xe).get(this.keyName.main),s=o(this,at).get("_toolbar_sticky");if(o(this,ut).get("isFullScreen")||t.offsetWidth===0||s<0)return;const n=o(this,Dn)?Qi.visualViewport.pageTop:Qi.scrollY,r=o(this,ut).get("_minHeight"),l=e.offsetHeight,c=o(this,Ve).offset.getGlobal(o(this,ut).get("topArea")),d=1;if(this.isBottomMode){const h=n+Qi.innerHeight,f=c.top+l,p=h-s-(this.isInlineMode?t.offsetHeight:0),m=o(this,at).get("toolbar_container")?h-s-c.top-r-t.offsetHeight:p-c.top-r;p>f?E(this,bl,$m).call(this):m<0?(this.isSticky||E(this,or,ou).call(this,d),t.style.bottom=d+m+E(this,rr,ru).call(this)+"px",t.style.top="auto"):E(this,or,ou).call(this,d)}else{const h=n+s,f=(this.isBalloonMode||this.isInlineMode?c.top:o(this,Ve).offset.getGlobal(o(this,at).get("toolbar_container")).top)-(this.isInlineMode?t.offsetHeight:0),p=o(this,at).get("toolbar_container")?c.top-n+l-r-s-t.offsetHeight:l+f+s-h-r;h<f?E(this,bl,$m).call(this):p<0?(this.isSticky||E(this,or,ou).call(this,d),t.style.top=d+p+E(this,rr,ru).call(this)+"px"):E(this,or,ou).call(this,d)}}_setResponsive(){var n;if(((n=o(this,ml))==null?void 0:n.length)===0){k(this,ml,null);return}k(this,gl,"default");const e=k(this,rh,[]),t=o(this,nh),s=k(this,oh,{default:t[0]});for(let r=1,l=t.length,c,d;r<l;r++)d=t[r],c=d[0]*1,e.push(c),s[c]=d[1];e.sort((r,l)=>r-l).unshift("default")}_showBalloon(e){if(!this.isBalloonMode)return;this.isSub&&this.resetResponsiveToolbar();const t=e||o(this,Ve).selection.getRange(),s=o(this,Xe).get(this.keyName.main),n=o(this,Ve).selection.get();let r;if(this.isBalloonAlwaysMode&&t.collapsed)r=!0;else if(n.focusNode===n.anchorNode)r=n.focusOffset<n.anchorOffset;else{const l=u.query.getListChildNodes(t.commonAncestorContainer,null,null);r=u.utils.getArrayIndex(l,n.focusNode)<u.utils.getArrayIndex(l,n.anchorNode)}this._setBalloonOffset(r,t),o(this,nr).triggerEvent("onShowToolbar",{toolbar:s,mode:"balloon",frameContext:o(this,ut)})}_setBalloonOffset(e,t){const s=o(this,Xe).get(this.keyName.main),n=o(this,ut).get("topArea"),l=o(this,Ve).offset.getGlobal(n).top;if(!o(this,Ve).offset.setRangePosition(s,t,{position:e?"top":"bottom",addTop:l})){this.hide();return}if(o(this,at).get("toolbar_container")){const d=n.parentElement;let h=o(this,at).get("toolbar_container"),f=h.offsetLeft,p=h.offsetTop;for(;!h.parentElement.contains(d)&&!/^(BODY|HTML)$/i.test(h.parentElement.nodeName);)h=h.offsetParent,f+=h.offsetLeft,p+=h.offsetTop;s.style.left=s.offsetLeft-f+n.offsetLeft+"px",s.style.top=s.offsetTop-p+n.offsetTop+"px"}const c=o(this,Ve).offset.getWWScroll();this.balloonOffset={top:s.offsetTop+c.top,left:s.offsetLeft+c.left,position:e?"top":"bottom"}}_showInline(){if(!this.isInlineMode)return;const e=o(this,Xe).get(this.keyName.main);if(e.style.visibility="hidden",e.style.display="block",E(this,bl,$m).call(this),e.style.top="0px",this.inlineToolbarAttr.width=e.style.width=o(this,at).get(this.keyName.width),this.isBottomMode){const t=o(this,ut).get("topArea");this.inlineToolbarAttr.top=e.style.top=o(this,Ve).offset.getGlobal(t).top+t.offsetHeight-o(this,Ve).offset.getGlobal(e).top+"px"}else this.inlineToolbarAttr.top=e.style.top=-1+(o(this,Ve).offset.getGlobal(o(this,ut).get("topArea")).top-o(this,Ve).offset.getGlobal(e).top-e.offsetHeight)+"px";this._resetSticky(),this.inlineToolbarAttr.isShow=!0,o(this,nr).triggerEvent("onShowToolbar",{toolbar:e,mode:"inline",frameContext:o(this,ut)}),e.style.visibility=""}_moreLayerOn(e,t){this._moreLayerOff(),this.currentMoreLayerActiveButton=e,t.style.display="block"}_moreLayerOff(){if(this.currentMoreLayerActiveButton){const e=o(this,Xe).get(this.keyName.main).querySelector("."+this.currentMoreLayerActiveButton.getAttribute("data-command"));e.style.display="none",u.utils.removeClass(this.currentMoreLayerActiveButton,"on"),this.currentMoreLayerActiveButton=null}}_destroy(){this._moreLayerOff()}}ul=new WeakMap,Ve=new WeakMap,In=new WeakMap,fl=new WeakMap,pl=new WeakMap,Xe=new WeakMap,ut=new WeakMap,at=new WeakMap,nr=new WeakMap,nh=new WeakMap,ml=new WeakMap,Dn=new WeakMap,gl=new WeakMap,oh=new WeakMap,rh=new WeakMap,Pn=new WeakMap,vl=new WeakMap,yl=new WeakMap,_p=new WeakSet,a5=function(){o(this,Ve).shortcuts._registerShortcuts(),o(this,Ve).commandDispatcher.resetTargets(),o(this,Ve).ui._initToggleButtons(),o(this,Ve).history.resetButtons(o(this,ut).get("key"),null),this._resetSticky(),o(this,In).set("_lastSelectionNode",null),o(this,Ve).viewer._setButtonsActive(),o(this,In).get("hasFocus")&&o(this,ul)._eventOrchestrator.applyTagEffect(),o(this,ut).get("isReadOnly")&&o(this,Ve).ui.setControllerOnDisabledButtons(!0)},or=new WeakSet,ou=function(e){const t=o(this,Xe).get(this.keyName.main);if(!this.isInlineMode){const s=o(this,at).get("toolbar_container")?o(this,Xe).get("_stickyDummy"):o(this,ut).get("_stickyDummy");s.style.height=t.offsetHeight+"px",s.style.display="block"}if(this.isBottomMode){const s=o(this,at).get("_toolbar_sticky")+E(this,rr,ru).call(this);t.style.bottom=`${s}px`,t.style.top="auto"}else{const s=o(this,at).get("_toolbar_sticky")+e+E(this,rr,ru).call(this);t.style.top=`${s}px`}t.style.width=this.isInlineMode?this.inlineToolbarAttr.width:t.offsetWidth+"px",u.utils.addClass(t,"se-toolbar-sticky"),k(this,vl,!0)},rr=new WeakSet,ru=function(){return o(this,Dn)?Qi.visualViewport.offsetTop:0},kp=new WeakSet,l5=function(){if(!o(this,Dn)||o(this,ul)._eventOrchestrator.scrollparents.length>0)return;const e=Math.round(Qi.visualViewport.offsetTop);if(e===0&&!o(this,yl))return;const t=o(this,Xe).get(this.keyName.main),s=o(this,at).get("_toolbar_sticky_offset");if(e>0)if(k(this,yl,!0),this.isBottomMode){const n=Math.round(Qi.innerHeight-Qi.visualViewport.height-e);t.style.bottom=s+n+"px",t.style.top="auto"}else t.style.top=s+e+"px";else{k(this,yl,!1);const n=o(this,at).get("_toolbar_sticky");this.isBottomMode?(t.style.bottom=n+"px",t.style.top="auto"):t.style.top=n>0?n+"px":""}},bl=new WeakSet,$m=function(){const e=o(this,at).get("toolbar_container")?o(this,Xe).get("_stickyDummy"):o(this,ut).get("_stickyDummy");e.style.display="none";const t=o(this,Xe).get(this.keyName.main);this.isBottomMode?(t.style.bottom=this.isInlineMode?`${-t.offsetHeight}px`:"",t.style.top="auto",o(this,ut).get("wrapper").style.marginBottom=""):(t.style.top=this.isInlineMode?this.inlineToolbarAttr.top:"",o(this,ut).get("wrapper").style.marginTop=""),t.style.width=this.isInlineMode?this.inlineToolbarAttr.width:"",u.utils.removeClass(t,"se-toolbar-sticky"),k(this,vl,!1)};const Ey=FL,{isMobile:Ty,_w:r1}=pe;class zL{constructor(e){C(this,hr);C(this,lh);C(this,ur);C(this,xp);C(this,fr);C(this,Fn);C(this,Ep);C(this,Tp);C(this,Sp);C(this,Mp);C(this,Bp);C(this,At,void 0);C(this,ms,void 0);C(this,Cl,void 0);C(this,js,void 0);C(this,Ut,void 0);C(this,gs,void 0);C(this,ah,[]);C(this,ar,null);C(this,Hn,null);C(this,lr,null);C(this,cr,null);C(this,wl,null);C(this,_l,null);C(this,vs,null);C(this,Ws,null);C(this,ys,null);C(this,Us,null);C(this,dr,null);C(this,kl,new Set);k(this,At,e.$),k(this,ms,e.store),k(this,Cl,o(this,At).contextProvider),k(this,js,o(this,At).context),k(this,Ut,o(this,At).eventManager),this.targetMap={},this.itemsMap={},this.index=-1,this.menus=[],this.currentButton=null,this.currentDropdown=null,this.currentDropdownActiveButton=null,this.currentDropdownName="",this.currentDropdownType="",this.currentContainer=null,this.currentContainerActiveButton=null,this.currentContainerName="",this.currentDropdownPlugin=null,k(this,gs,{mousedown:E(this,Ep,d5).bind(this),containerDown:this.containerOff.bind(this),keydown:E(this,Sp,u5).bind(this),esc:E(this,Mp,f5).bind(this),mousemove:E(this,Bp,p5).bind(this),mouseout:E(this,Tp,h5).bind(this)}),k(this,ar,null),k(this,Hn,null),k(this,lr,null),k(this,cr,null),k(this,vs,null),k(this,Ws,null),k(this,dr,r1.visualViewport||null)}initDropdownTarget({key:e,type:t},s,n){if(!e)throw Error("[SUNEDITOR.init.fail] The plugin's key is not added.");let r;if(Array.isArray(s)){r=jL(s,n);const l=r.querySelectorAll(".se-list-inner li > button"),c=l.length-s.length;for(let d=0;d<s.length;d++)s[d]._element=l[c+d]||null;this.itemsMap[e]=s}else r=s;return Sy(t)||(r.setAttribute("data-key",e),o(this,ah).push(e)),o(this,js).get("menuTray").appendChild(r),this.targetMap[e]=r,r}dropdownOn(e){var l,c,d;E(this,Fn,ql).call(this);const t=E(this,xp,c5).call(this,e);if(t){const h=u.query.getParentElement(t,".se-btn-tray").querySelector('[data-command="'+t.getAttribute("data-ref")+'"]');if(h){o(this,At).commandDispatcher.runFromTarget(h),this.dropdownOn(e);return}}const s=this.currentButton=e,n=this.currentDropdownName=s.getAttribute("data-command");this.currentDropdownType=s.getAttribute("data-type");const r=this.currentDropdown=this.targetMap[n];this.currentDropdownActiveButton=s,Ty?E(this,lh,Q0).call(this,s,r):E(this,hr,au).call(this,s,r),(c=(l=o(this,js).get("menuTray")).showPopover)==null||c.call(l),k(this,ar,o(this,Ut).addGlobalEvent("mousedown",o(this,gs).mousedown,!1)),k(this,lr,o(this,Ut).addGlobalEvent("keydown",o(this,gs).esc,!0)),o(this,ah).includes(n)&&(this.menus=xe.nodeListToArray(r.querySelectorAll("[data-command]")),this.menus.length>0&&(k(this,Hn,o(this,Ut).addGlobalEvent("keydown",o(this,gs).keydown,!1)),k(this,wl,o(this,Ut).addEvent(r,"mousemove",o(this,gs).mousemove,!1)),k(this,_l,o(this,Ut).addEvent(r,"mouseout",o(this,gs).mouseout,!1)))),this.currentDropdownPlugin=o(this,At).plugins[n],(d=this.currentDropdownPlugin)==null||d.on(s),o(this,ms).set("_preventBlur",!0)}dropdownOff(){var e,t,s,n;E(this,ur,lu).call(this),E(this,Fn,ql).call(this),Sy(this.currentDropdownType)&&((t=(e=this.currentDropdownPlugin)==null?void 0:e.off)==null||t.call(e)),this.index=-1,this.menus=[],k(this,vs,null),k(this,Ws,null),this.currentButton=null,this.currentDropdown&&(this.currentDropdownName="",this.currentDropdownType="",this.currentDropdown.style.display="none",this.currentDropdown=null,this.currentDropdownActiveButton&&u.utils.removeClass(this.currentDropdownActiveButton.parentElement.children,"on"),this.currentDropdownActiveButton=null,o(this,At).ui.preventToolbarHide(!1),(n=(s=o(this,js).get("menuTray")).hidePopover)==null||n.call(s)),o(this,ms).set("_preventBlur",!1),this.currentDropdownPlugin=null;for(const r of[...o(this,kl)])r()}subscribeDropdownOff(e){return o(this,kl).add(e),()=>o(this,kl).delete(e)}dropdownShow(){this.currentButton&&this.dropdownOn(this.currentButton)}dropdownHide(){this.currentDropdown&&(this.currentDropdown.style.display="none")}containerOn(e){var s,n;E(this,Fn,ql).call(this),this.currentContainerActiveButton=e;const t=this.currentContainerName=this.currentContainerActiveButton.getAttribute("data-command");this.currentContainer=this.targetMap[t],Ty?E(this,lh,Q0).call(this,e,this.currentContainer):E(this,hr,au).call(this,e,this.currentContainer),(n=(s=o(this,js).get("menuTray")).showPopover)==null||n.call(s),k(this,cr,o(this,Ut).addGlobalEvent("mousedown",o(this,gs).containerDown,!1)),o(this,At).plugins[t].on&&o(this,At).plugins[t].on(e),o(this,ms).set("_preventBlur",!0)}containerOff(){var e,t;E(this,ur,lu).call(this),E(this,Fn,ql).call(this),this.currentContainer&&(this.currentContainerName="",this.currentContainer.style.display="none",this.currentContainer=null,u.utils.removeClass(this.currentContainerActiveButton,"on"),this.currentContainerActiveButton=null,o(this,At).ui.preventToolbarHide(!1),(t=(e=o(this,js).get("menuTray")).hidePopover)==null||t.call(e)),o(this,ms).set("_preventBlur",!1)}__resetMenuPosition(e,t){o(this,At).offset.setRelPosition(t,o(this,Cl).carrierWrapper,e.parentElement,u.query.getParentElement(e,".se-toolbar"),{preferUp:o(this,ms).mode.isBottom})}__restoreMenuPosition(){!o(this,vs)||!o(this,Ws)||o(this,Us)||o(this,ys)||E(this,hr,au).call(this,o(this,vs),o(this,Ws))}_destroy(){E(this,Fn,ql).call(this)}}At=new WeakMap,ms=new WeakMap,Cl=new WeakMap,js=new WeakMap,Ut=new WeakMap,gs=new WeakMap,ah=new WeakMap,ar=new WeakMap,Hn=new WeakMap,lr=new WeakMap,cr=new WeakMap,wl=new WeakMap,_l=new WeakMap,vs=new WeakMap,Ws=new WeakMap,ys=new WeakMap,Us=new WeakMap,dr=new WeakMap,kl=new WeakMap,hr=new WeakSet,au=function(e,t){t.style.visibility="hidden",t.style.display="block",t.style.height="",u.utils.addClass(e.parentElement.children,"on"),o(this,At).offset.setRelPosition(t,o(this,Cl).carrierWrapper,e.parentElement,u.query.getParentElement(e,".se-toolbar"),{preferUp:o(this,ms).mode.isBottom}),t.style.visibility="",k(this,vs,e),k(this,Ws,t)},lh=new WeakSet,Q0=function(e,t){E(this,ur,lu).call(this),t.style.display="none",u.utils.addClass(e.parentElement.children,"on"),k(this,vs,e),k(this,Ws,t);let s=!1;const n=r=>{s||(s=!0,E(this,ur,lu).call(this),k(this,ys,r1.setTimeout(()=>{k(this,ys,null),o(this,vs)===e&&E(this,hr,au).call(this,e,t)},r)))};o(this,dr)&&(k(this,Us,()=>n(10)),o(this,dr).addEventListener("resize",o(this,Us),{once:!0})),k(this,ys,r1.setTimeout(()=>n(0),50))},ur=new WeakSet,lu=function(){var e;o(this,ys)&&(r1.clearTimeout(o(this,ys)),k(this,ys,null)),o(this,Us)&&((e=o(this,dr))==null||e.removeEventListener("resize",o(this,Us)),k(this,Us,null))},xp=new WeakSet,c5=function(e){const t=u.query.getParentElement(e,".se-more-layer");return t&&t.style.display!=="block"&&t.getAttribute("data-ref")?t:null},fr=new WeakSet,cu=function(e){u.utils.removeClass(this.currentDropdown,"se-select-menu-mouse-move"),u.utils.addClass(this.currentDropdown,"se-select-menu-key-action"),e=this.index+e;const t=this.menus.length,s=this.index=e>=t?0:e<0?t-1:e;for(let n=0;n<t;n++)n===s?u.utils.addClass(this.menus[n],"on"):u.utils.removeClass(this.menus[n],"on")},Fn=new WeakSet,ql=function(){o(this,ar)&&k(this,ar,o(this,Ut).removeGlobalEvent(o(this,ar))),o(this,lr)&&k(this,lr,o(this,Ut).removeGlobalEvent(o(this,lr))),o(this,cr)&&k(this,cr,o(this,Ut).removeGlobalEvent(o(this,cr))),o(this,Hn)&&(k(this,Hn,o(this,Ut).removeGlobalEvent(o(this,Hn))),o(this,wl)&&k(this,wl,o(this,Ut).removeEvent(o(this,wl))),o(this,_l)&&k(this,_l,o(this,Ut).removeEvent(o(this,_l))),u.utils.removeClass(this.menus,"on"),u.utils.removeClass(this.currentDropdown,"se-select-menu-key-action|se-select-menu-mouse-move"))},Ep=new WeakSet,d5=function(e){const t=u.query.getEventTarget(e);u.query.getParentElement(t,".se-dropdown")||this.dropdownOff()},Tp=new WeakSet,h5=function(){this.index=-1},Sp=new WeakSet,u5=function(e){switch(e.code){case"ArrowUp":e.preventDefault(),e.stopPropagation(),E(this,fr,cu).call(this,-1);break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),E(this,fr,cu).call(this,1);break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),E(this,fr,cu).call(this,-1);break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),E(this,fr,cu).call(this,1);break;case"Enter":case"Space":{if(this.index<0)break;const s=this.menus[this.index];if(!s||typeof o(this,At).plugins[this.currentDropdownName].action!="function")return;e.preventDefault(),e.stopPropagation(),o(this,At).plugins[this.currentDropdownName].action(s),this.dropdownOff();break}}},Mp=new WeakSet,f5=function(e){var t;Ee.isEsc(e.code)&&((t=o(this,At).ui.opendControllers)!=null&&t.some(({form:s})=>s&&u.utils.hasClass(s,"se-dropdown"))||(e.preventDefault(),e.stopPropagation(),this.dropdownOff()))},Bp=new WeakSet,p5=function(e){u.utils.addClass(this.currentDropdown,"se-select-menu-mouse-move"),u.utils.removeClass(this.currentDropdown,"se-select-menu-key-action");const t=this.menus.indexOf(e.target);t!==-1&&(this.index=t*1)};function Sy(i){return/free$/.test(i)}function jL(i,e={}){let t="";for(let s=0,n=i.length;s<n;s++){const r=i[s];let l="";if(r.attrs){const c=Object.keys(r.attrs);for(let d=0;d<c.length;d++)l+=` ${c[d]}="${r.attrs[c[d]]}"`}t+=`
117
+ <li>
118
+ <button type="button" class="se-btn se-btn-list${r.className?" "+r.className:""}" data-command="${r.command}"${r.value!==void 0?` data-value="${r.value}"`:""} title="${r.title}" aria-label="${r.title}"${l}>${r.innerHTML}</button>
119
+ </li>`}return u.utils.createElement("DIV",{class:"se-dropdown se-list-layer"+(e.className?" "+e.className:"")},`<div class="se-list-inner"><ul class="se-list-basic">${e.prependHTML||""}${t}</ul></div>`)}const WL=zL,{_w:jr,_d:cn}=pe;class UL{constructor(e){C(this,Np);C(this,Lp);C(this,Ap);C(this,$p);C(this,Th);C(this,xl,void 0);C(this,ee,void 0);C(this,je,void 0);C(this,zn,void 0);C(this,ch,void 0);C(this,dh,void 0);C(this,gi,void 0);C(this,We,void 0);C(this,ye,void 0);C(this,vt,void 0);C(this,pr,void 0);C(this,hh,void 0);C(this,uh,"");C(this,fh,"");C(this,ph,"");C(this,mh,"");C(this,gh,"");C(this,vh,"");C(this,yh,"");C(this,bh,"");C(this,Ch,"");C(this,wh,"");C(this,_h,"");C(this,jn,0);C(this,El,!1);C(this,kh,!1);C(this,xh,!1);C(this,mr,null);C(this,Eh,"");k(this,xl,e),k(this,ee,e.$),k(this,je,e.store),k(this,zn,o(this,ee).icons),k(this,ch,o(this,ee).lang),k(this,dh,o(this,ee).frameRoots),k(this,gi,o(this,ee).context),k(this,We,o(this,ee).frameContext),k(this,ye,o(this,ee).options),k(this,vt,o(this,ee).frameOptions),k(this,pr,o(this,ee).eventManager),k(this,hh,new RegExp(`^(${o(this,ye).get("_disallowedExtraTag")})$`,"i"))}codeView(e){const t=o(this,We);if(!t.get("codeWrapper")||(e===void 0&&(e=!t.get("isCodeView")),e===t.get("isCodeView")))return;e&&t.get("isMarkdownView")&&this.markdownView(!1),t.set("isCodeView",e),o(this,ee).ui.offCurrentController(),o(this,ee).ui.offCurrentModal();const s=t.get("codeWrapper"),n=t.get("code"),r=t.get("wysiwygFrame"),l=t.get("wrapper");e?(o(this,ee).finder.close(),E(this,Lp,g5).call(this),s.style.setProperty("display","flex","important"),r.style.display="none",t.get("isFullScreen")?n.style.height="100%":o(this,vt).get("height")==="auto"&&!o(this,ye).get("hasCodeMirror")&&(n.style.height=n.scrollHeight>0?n.scrollHeight+"px":"auto"),o(this,ye).get("hasCodeMirror")&&this._codeMirrorEditor("refresh",null,null),t.get("isFullScreen")||(o(this,ee).ui.preventToolbarHide(!0),o(this,je).mode.isBalloon&&(o(this,gi).get("toolbar_arrow").style.display="none",o(this,gi).get("toolbar_main").style.left="",o(this,je).mode.isInline=o(this,ee).toolbar.isInlineMode=!0,o(this,je).mode.isBalloon=o(this,ee).toolbar.isBalloonMode=!1,o(this,ee).toolbar._showInline())),o(this,je).mode.isBalloon&&o(this,ee).subToolbar.hide(),My(t),o(this,je).set("_range",null),n.focus(),u.utils.addClass(o(this,ee).commandDispatcher.targets.get("codeView"),"active"),u.utils.addClass(l,"se-source-view-status")):(u.check.isNonEditable(r)||E(this,Np,m5).call(this),r.scrollTop=0,s.style.setProperty("display","none","important"),r.style.display="block",o(this,vt).get("height")==="auto"&&!o(this,ye).get("hasCodeMirror")&&(t.get("code").style.height="0px"),t.get("isFullScreen")||(o(this,ee).ui.preventToolbarHide(!1),/balloon/.test(o(this,ye).get("mode"))&&(o(this,gi).get("toolbar_arrow").style.display="",o(this,je).mode.isInline=o(this,ee).toolbar.isInlineMode=!1,o(this,je).mode.isBalloon=o(this,ee).toolbar.isBalloonMode=!0,o(this,xl)._eventOrchestrator._hideToolbar())),o(this,ee).focusManager.nativeFocus(),u.utils.removeClass(o(this,ee).commandDispatcher.targets.get("codeView"),"active"),u.check.isNonEditable(r)||(o(this,ee).history.push(!1),o(this,ee).history.resetButtons(t.get("key"),null)),u.utils.removeClass(l,"se-source-view-status")),o(this,ee).ui._updatePlaceholder(t),o(this,ee).ui._toggleCodeViewButtons(e),t.has("documentType_use_header")&&(e?t.get("documentTypeInner").style.display="none":(t.get("documentTypeInner").style.display="",t.get("documentType").reHeader())),o(this,pr).triggerEvent("onToggleCodeView",{frameContext:t,is:t.get("isCodeView")})}markdownView(e){const t=o(this,We);if(!t.get("markdownWrapper")||(e===void 0&&(e=!t.get("isMarkdownView")),e===t.get("isMarkdownView")))return;e&&t.get("isCodeView")&&this.codeView(!1),t.set("isMarkdownView",e),o(this,ee).ui.offCurrentController(),o(this,ee).ui.offCurrentModal();const s=t.get("markdownWrapper"),n=t.get("markdown"),r=t.get("wysiwygFrame"),l=t.get("wrapper");e?(o(this,ee).finder.close(),E(this,Ap,v5).call(this),s.style.setProperty("display","flex","important"),r.style.display="none",t.get("isFullScreen")?n.style.height="100%":o(this,vt).get("height")==="auto"&&(n.style.height=n.scrollHeight>0?n.scrollHeight+"px":"auto"),t.get("isFullScreen")||(o(this,ee).ui.preventToolbarHide(!0),o(this,je).mode.isBalloon&&(o(this,gi).get("toolbar_arrow").style.display="none",o(this,gi).get("toolbar_main").style.left="",o(this,je).mode.isInline=o(this,ee).toolbar.isInlineMode=!0,o(this,je).mode.isBalloon=o(this,ee).toolbar.isBalloonMode=!1,o(this,ee).toolbar._showInline())),o(this,je).mode.isBalloon&&o(this,ee).subToolbar.hide(),My(t,"markdown"),o(this,je).set("_range",null),n.focus(),u.utils.addClass(o(this,ee).commandDispatcher.targets.get("markdownView"),"active"),u.utils.addClass(l,"se-source-view-status")):(u.check.isNonEditable(r)||E(this,$p,y5).call(this),r.scrollTop=0,s.style.setProperty("display","none","important"),r.style.display="block",o(this,vt).get("height")==="auto"&&(n.style.height="0px"),t.get("isFullScreen")||(o(this,ee).ui.preventToolbarHide(!1),/balloon/.test(o(this,ye).get("mode"))&&(o(this,gi).get("toolbar_arrow").style.display="",o(this,je).mode.isInline=o(this,ee).toolbar.isInlineMode=!1,o(this,je).mode.isBalloon=o(this,ee).toolbar.isBalloonMode=!0,o(this,xl)._eventOrchestrator._hideToolbar())),o(this,ee).focusManager.nativeFocus(),u.utils.removeClass(o(this,ee).commandDispatcher.targets.get("markdownView"),"active"),u.check.isNonEditable(r)||(o(this,ee).history.push(!1),o(this,ee).history.resetButtons(t.get("key"),null)),u.utils.removeClass(l,"se-source-view-status")),o(this,ee).ui._updatePlaceholder(t),o(this,ee).ui._toggleCodeViewButtons(e),t.has("documentType_use_header")&&(e?t.get("documentTypeInner").style.display="none":(t.get("documentTypeInner").style.display="",t.get("documentType").reHeader())),o(this,pr).triggerEvent("onToggleMarkdownView",{frameContext:t,is:t.get("isMarkdownView")})}fullScreen(e){const t=o(this,We);if(e===void 0&&(e=!t.get("isFullScreen")),e===t.get("isFullScreen"))return;t.set("isFullScreen",e);const s=t.get("topArea"),n=o(this,gi).get("toolbar_main"),r=t.get("wrapper"),l=t.get("wysiwygFrame"),c=t.get("codeWrapper"),d=t.get("code"),h=t.get("codeNumbers"),f=t.get("markdownWrapper"),p=t.get("markdown"),m=t.get("markdownNumbers"),g=o(this,We).get("isCodeView"),y=o(this,We).get("isMarkdownView"),v=o(this,gi).get("toolbar_arrow");o(this,ee).ui.offCurrentController();const b=n.style.display==="none"||o(this,je).mode.isInline&&!o(this,ee).toolbar.inlineToolbarAttr.isShow;if(e){k(this,Eh,s.style.cssText),k(this,fh,r.style.cssText),k(this,ph,l.style.cssText),k(this,mh,c==null?void 0:c.style.cssText),k(this,gh,d.style.cssText),k(this,vh,h==null?void 0:h.style.cssText),k(this,yh,f==null?void 0:f.style.cssText),k(this,bh,p==null?void 0:p.style.cssText),k(this,Ch,m==null?void 0:m.style.cssText),k(this,wh,n.style.cssText),v&&k(this,_h,v.style.cssText),(o(this,je).mode.isBalloon||o(this,je).mode.isInline)&&(v&&(v.style.display="none"),k(this,xh,o(this,je).mode.isInline),k(this,kh,o(this,je).mode.isBalloon),o(this,je).mode.isInline=o(this,ee).toolbar.isInlineMode=!1,o(this,je).mode.isBalloon=o(this,ee).toolbar.isBalloonMode=!1),o(this,ye).get("toolbar_container")&&(k(this,mr,n.parentElement),t.get("container").insertBefore(n,r)),s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.maxWidth="100%",s.style.height="100%",s.style.zIndex="2147483639",t.get("_stickyDummy").style.display!=="none"&&t.get("_stickyDummy").style.display!==""&&(k(this,El,!0),t.get("_stickyDummy").style.display="none",u.utils.removeClass(n,"se-toolbar-sticky")),k(this,uh,cn.body.style.overflow),cn.body.style.overflow="hidden",r.style.cssText=n.style.cssText="",l.style.cssText=(l.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+o(this,vt).get("_defaultStyles").editor+(g||y?"display: none;":""),c&&(c.style.cssText=(c.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+`display: ${g?"flex":"none"} !important;`,c.style.overflow="auto",c.style.height="100%"),f&&(f.style.cssText=(f.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+`display: ${y?"flex":"none"} !important;`,f.style.overflow="auto",f.style.height="100%"),d.style.height="",p&&(p.style.height=""),n.style.width=l.style.height="100%",n.style.position="relative",n.style.display="block",k(this,jn,jr.innerHeight-n.offsetHeight),r.style.height=o(this,jn)-(t.has("statusbar")?t.get("statusbar").offsetHeight:0)-o(this,ye).get("fullScreenOffset")+"px",o(this,vt).get("iframe")&&o(this,vt).get("height")==="auto"&&(r.style.overflow="auto",o(this,ee).ui._iframeAutoHeight(t)),t.get("topArea").style.marginTop=o(this,ye).get("fullScreenOffset")+"px";const w=o(this,zn).reduction;o(this,ee).commandDispatcher.applyTargets("fullScreen",_=>{u.utils.changeElement(_.firstElementChild,w),u.utils.addClass(_,"active")})}else{l.style.cssText=o(this,ph).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+(g||y?"display: none;":""),c&&(c.style.cssText=o(this,mh).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+`display: ${g?"flex":"none"} !important;`),d.style.cssText=o(this,gh),h&&(h.style.cssText=o(this,vh)),f&&(f.style.cssText=o(this,yh).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+`display: ${y?"flex":"none"} !important;`),p&&(p.style.cssText=o(this,bh)),m&&(m.style.cssText=o(this,Ch)),n.style.cssText=o(this,wh),r.style.cssText=o(this,fh),s.style.cssText=o(this,Eh),v&&(v.style.cssText=o(this,_h)),cn.body.style.overflow=o(this,uh),o(this,vt).get("height")==="auto"&&!o(this,ye).get("hasCodeMirror")&&this._codeViewAutoHeight(t.get("code"),t.get("codeNumbers"),!0),o(this,mr)&&(o(this,mr).appendChild(n),k(this,mr,null)),o(this,ye).get("_toolbar_sticky")>-1&&u.utils.removeClass(n,"se-toolbar-sticky"),o(this,El)&&!o(this,ye).get("toolbar_container")&&(k(this,El,!1),t.get("_stickyDummy").style.display="block",u.utils.addClass(n,"se-toolbar-sticky")),o(this,je).mode.isInline=o(this,ee).toolbar.isInlineMode=o(this,xh),o(this,je).mode.isBalloon=o(this,ee).toolbar.isBalloonMode=o(this,kh),t.get("isCodeView")||(o(this,je).mode.isInline?o(this,ee).toolbar._showInline():o(this,je).mode.isBalloon&&o(this,ee).toolbar._showBalloon()),o(this,ee).toolbar._resetSticky(),t.get("topArea").style.marginTop="";const w=o(this,zn).expansion;o(this,ee).commandDispatcher.applyTargets("fullScreen",_=>{u.utils.changeElement(_.firstElementChild,w),u.utils.removeClass(_,"active")})}b&&!t.get("isCodeView")&&!t.get("isMarkdownView")&&o(this,ee).toolbar.hide(),o(this,pr).triggerEvent("onToggleFullScreen",{frameContext:t,is:t.get("isFullScreen")})}showBlocks(e){const t=o(this,We);e===void 0&&(e=!t.get("isShowBlocks")),t.set("isShowBlocks",!!e),e?(u.utils.addClass(t.get("wysiwyg"),"se-show-block"),u.utils.addClass(o(this,ee).commandDispatcher.targets.get("showBlocks"),"active")):(u.utils.removeClass(t.get("wysiwyg"),"se-show-block"),u.utils.removeClass(o(this,ee).commandDispatcher.targets.get("showBlocks"),"active")),o(this,ee).ui._syncFrameState(t)}_setButtonsActive(){const e=o(this,We);if(e.get("isCodeView")?u.utils.addClass(o(this,ee).commandDispatcher.targets.get("codeView"),"active"):u.utils.removeClass(o(this,ee).commandDispatcher.targets.get("codeView"),"active"),e.get("isFullScreen")){const t=o(this,zn).reduction;o(this,ee).commandDispatcher.applyTargets("fullScreen",s=>{u.utils.changeElement(s.firstElementChild,t),u.utils.addClass(s,"active")})}else{const t=o(this,zn).expansion;o(this,ee).commandDispatcher.applyTargets("fullScreen",s=>{u.utils.changeElement(s.firstElementChild,t),u.utils.removeClass(s,"active")})}e.get("isMarkdownView")?u.utils.addClass(o(this,ee).commandDispatcher.targets.get("markdownView"),"active"):u.utils.removeClass(o(this,ee).commandDispatcher.targets.get("markdownView"),"active"),e.get("isShowBlocks")?u.utils.addClass(o(this,ee).commandDispatcher.targets.get("showBlocks"),"active"):u.utils.removeClass(o(this,ee).commandDispatcher.targets.get("showBlocks"),"active")}print(){const e=u.utils.createElement("IFRAME",{style:"display: none;"});cn.body.appendChild(e);const t=jr.getComputedStyle(o(this,We).get("wysiwyg")).padding,s=o(this,ye).get("printTemplate")?o(this,ye).get("printTemplate").replace(/\{\{\s*contents\s*\}\}/i,o(this,ee).html.get()):o(this,ee).html.get(),n=u.query.getIframeDocument(e),r=o(this,We).get("_wd"),l=o(this,ye).get("_rtl")?" se-rtl":"",c=(o(this,ye).get("_themeClass")||"").trim(),d=f=>c?f.replace(c,"").trim():f,h=`
120
+ <style>
121
+ @page {
122
+ size: A4;
123
+ margin: ${t};
124
+ }
125
+ </style>`;if(o(this,vt).get("iframe")){const f=o(this,ye).get("printClass")?'class="'+d(o(this,ye).get("printClass"))+l+'"':o(this,vt).get("iframe_fullPage")?u.utils.getAttributesToString(r.body,["contenteditable"]).replace(c,""):'class="'+d(o(this,ye).get("_editableClass"))+l+'"';n.write(`
126
+ <!DOCTYPE html>
127
+ <html>
128
+ <head>
129
+ ${r.head.innerHTML}
130
+ ${h}
131
+ </head>
132
+ <body ${f} style="padding: 0; padding-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0;">
133
+ ${s}
134
+ </body>
135
+ </html>`)}else{const f=cn.head.getElementsByTagName("link"),p=cn.head.getElementsByTagName("style");let m="";for(let g=0,y=f.length;g<y;g++)m+=f[g].outerHTML;for(let g=0,y=p.length;g<y;g++)m+=p[g].outerHTML;n.write(`
136
+ <!DOCTYPE html>
137
+ <html>
138
+ <head>
139
+ ${m}
140
+ ${h}
141
+ </head>
142
+ <body class="${d(o(this,ye).get("printClass")||o(this,ye).get("_editableClass"))+l}" style="padding: 0; padding-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0;">
143
+ ${s}
144
+ </body>
145
+ </html>`)}o(this,ee).ui.showLoading(),jr.setTimeout(()=>{try{if(e.focus(),pe.isEdge||pe.isChromium||"StyleMedia"in pe._w)try{e.contentWindow.document.execCommand("print",!1,null)}catch(f){console.warn("[SUNEDITOR.print.warn]",f),e.contentWindow.print()}else e.contentWindow.print()}catch(f){throw Error(`[SUNEDITOR.print.fail] error: ${f.message}`)}finally{o(this,ee).ui.hideLoading(),u.utils.removeItem(e)}},1e3)}preview(){o(this,ee).menu.dropdownOff(),o(this,ee).menu.containerOff(),o(this,ee).ui.offCurrentController(),o(this,ee).ui.offCurrentModal();const e=o(this,ye).get("previewTemplate")?o(this,ye).get("previewTemplate").replace(/\{\{\s*contents\s*\}\}/i,o(this,ee).html.get({withFrame:!0})):o(this,ee).html.get({withFrame:!0}),t=jr.open("","_blank"),s=o(this,We).get("_wd"),n=o(this,ye).get("_rtl")?" se-rtl":"";if(o(this,vt).get("iframe")){const r=o(this,ye).get("printClass")?'class="'+o(this,ye).get("printClass")+n+'"':o(this,vt).get("iframe_fullPage")?u.utils.getAttributesToString(s.body,["contenteditable"]):'class="'+o(this,ye).get("_editableClass")+n+'"';t.document.write(`<!DOCTYPE html>
146
+ <html>
147
+ <head>
148
+ ${s.head.innerHTML}
149
+ <style>
150
+ body {overflow:auto !important; height:auto !important;}
151
+ </style>
152
+ </head>
153
+ <body ${r}>
154
+ ${e}
155
+ </body>
156
+ </html>`)}else{const r=cn.head.getElementsByTagName("link"),l=cn.head.getElementsByTagName("style");let c="";for(let d=0,h=r.length;d<h;d++)c+=r[d].outerHTML;for(let d=0,h=l.length;d<h;d++)c+=l[d].outerHTML;t.document.write(`<!DOCTYPE html>
157
+ <html>
158
+ <head>
159
+ <meta charset="utf-8" />
160
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
161
+ <title>${o(this,ch).preview}</title>
162
+ ${c}
163
+ </head>
164
+ <body class="${(o(this,ye).get("printClass")?o(this,ye).get("printClass"):o(this,ye).get("_editableClass"))+n}" style="height:auto">
165
+ ${e}
166
+ </body>
167
+ </html>`)}}_resetFullScreenHeight(){if(o(this,We).get("isFullScreen"))return k(this,jn,o(this,jn)+(jr.innerHeight-o(this,gi).get("toolbar_main").offsetHeight-(o(this,We).has("statusbar")?o(this,We).get("statusbar").offsetHeight:0)-o(this,jn))),o(this,We).get("wrapper").style.height=o(this,jn)+"px",!0}_codeMirrorEditor(e,t,s){const n=s?o(this,dh).get(s).get("options"):o(this,vt);switch(e){case"set":n.get("codeMirrorEditor").getDoc().setValue(t);break;case"get":return n.get("codeMirrorEditor").getDoc().getValue();case"readonly":n.get("codeMirrorEditor").setOption("readOnly",t);break;case"refresh":n.get("codeMirrorEditor").refresh();break}}_setCodeView(e){o(this,ye).get("hasCodeMirror")?this._codeMirrorEditor("set",e,null):o(this,We).get("code").value=e}_getCodeView(){return o(this,ye).get("hasCodeMirror")?this._codeMirrorEditor("get",null,null):o(this,We).get("code").value}_codeViewAutoHeight(e,t,s){s&&(e.style.height=e.scrollHeight+"px"),E(this,Th,J0).call(this,t,e)}_scrollLineNumbers(e){e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft}_markdownViewAutoHeight(e,t,s){s&&(e.style.height=e.scrollHeight+"px"),E(this,Th,J0).call(this,t,e)}_scrollMarkdownLineNumbers(e){e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft}_destroy(){}}xl=new WeakMap,ee=new WeakMap,je=new WeakMap,zn=new WeakMap,ch=new WeakMap,dh=new WeakMap,gi=new WeakMap,We=new WeakMap,ye=new WeakMap,vt=new WeakMap,pr=new WeakMap,hh=new WeakMap,uh=new WeakMap,fh=new WeakMap,ph=new WeakMap,mh=new WeakMap,gh=new WeakMap,vh=new WeakMap,yh=new WeakMap,bh=new WeakMap,Ch=new WeakMap,wh=new WeakMap,_h=new WeakMap,jn=new WeakMap,El=new WeakMap,kh=new WeakMap,xh=new WeakMap,mr=new WeakMap,Eh=new WeakMap,Np=new WeakSet,m5=function(){const e=this._getCodeView();if(o(this,vt).get("iframe_fullPage")){const t=o(this,We).get("_wd"),s=new DOMParser().parseFromString(e,"text/html");if(!o(this,hh).test("script")){const l=s.head.children;for(let c=0,d=l.length;c<d;c++)/^script$/i.test(l[c].tagName)&&(s.head.removeChild(l[c]),c--,d--)}let n=s.head.innerHTML;(!s.head.querySelector('link[rel="stylesheet"]')||o(this,vt).get("height")==="auto"&&!s.head.querySelector("style"))&&(n+=xe._setIframeStyleLinks(o(this,vt).get("iframe_cssFileName"))+xe._setAutoHeightStyle(o(this,vt).get("height"))),t.head.innerHTML=n,t.body.innerHTML=o(this,ee).html.clean(s.body.innerHTML,{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:o(this,ye).get("freeCodeViewMode")});const r=s.body.attributes;for(let l=0,c=r.length;l<c;l++)r[l].name!=="contenteditable"&&t.body.setAttribute(r[l].name,r[l].value);if(!u.utils.hasClass(t.body,"sun-editor-editable")){const l=o(this,ye).get("_editableClass").split(" ");for(let c=0;c<l.length;c++)u.utils.addClass(t.body,l[c])}}else o(this,We).get("wysiwyg").innerHTML=e.length>0?o(this,ee).html.clean(e,{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:o(this,ye).get("freeCodeViewMode")}):"<"+o(this,ye).get("defaultLine")+"><br></"+o(this,ye).get("defaultLine")+">"},Lp=new WeakSet,g5=function(){const e=o(this,ee).html._convertToCode(o(this,We).get("wysiwyg"),!1);let t="";if(o(this,vt).get("iframe_fullPage")){const s=u.utils.getAttributesToString(o(this,We).get("_wd").body,null);t=`<!DOCTYPE html>
168
+ <html>
169
+ `+o(this,We).get("_wd").head.outerHTML.replace(/>(?!\n)/g,`>
170
+ `)+"<body "+s+`>
171
+ `+e+`</body>
172
+ </html>`}else t=e;this._setCodeView(t)},Ap=new WeakSet,v5=function(){const e=xe.htmlToJson(o(this,We).get("wysiwyg").innerHTML),t=Ku.jsonToMarkdown(e);o(this,We).get("markdown").value=t},$p=new WeakSet,y5=function(){const e=o(this,We).get("markdown").value,t=Ku.markdownToHtml(e,o(this,ye).get("defaultLine"));o(this,We).get("wysiwyg").innerHTML=t.length>0?o(this,ee).html.clean(t,{forceFormat:!0,whitelist:null,blacklist:null}):"<"+o(this,ye).get("defaultLine")+"><br></"+o(this,ye).get("defaultLine")+">"},Th=new WeakSet,J0=function(e,t){if(!e)return;const s=(t.value.match(/\n/g)||[]).length+1,n=(e.value.match(/\n/g)||[]).length;if(s!==n){let r="";for(let l=1;l<=s;l++)r+=`${l}
173
+ `;e.value=r}};function My(i,e){const t=e==="markdown"?"markdownNumbers":"codeNumbers",s=e==="markdown"?"markdown":"code",n=i.get(t);if(!n)return;const r=i.get(s),l=(r.value.match(/\n/g)||[]).length+1;let c="";for(let h=1;h<=l;h++)c+=`${h}
174
+ `;const d=jr.getComputedStyle(r);n.style.lineHeight=d.lineHeight,n.style.fontSize=d.fontSize,n.style.fontFamily=d.fontFamily,n.style.paddingTop=d.paddingTop,n.style.paddingBottom=d.paddingBottom,n.value=c}const qL=UL,{_d:Fg,_w:ZL}=pe,wr=class wr{constructor(e){C(this,$h);C(this,Vp);C(this,$l);C(this,Rp);C(this,Ol);C(this,Ip);C(this,Dp);C(this,Pp);C(this,Hp);C(this,Fp);C(this,Oh);C(this,yi);C(this,Vl);C(this,zp);C(this,jp);C(this,Vh);C(this,Wp);C(this,Up);C(this,Rh);C(this,qp);C(this,Ih);C(this,yr);C(this,Rl);C(this,br);C(this,Il);C(this,Dh);C(this,Ph);C(this,Cr);C(this,Zp);C(this,Se,void 0);C(this,qs,void 0);C(this,$t,void 0);C(this,Mt,void 0);C(this,bs,void 0);C(this,Tl,void 0);C(this,Sh,void 0);C(this,Mh,void 0);C(this,Bh,void 0);C(this,Nh,void 0);C(this,Sl,void 0);C(this,Ml,void 0);C(this,Bl,void 0);C(this,Nl,void 0);C(this,Li,!1);C(this,Lh,!0);C(this,Ye,[]);C(this,it,-1);C(this,vi,"");C(this,Ot,{matchCase:!1,wholeWord:!1,regex:!1});C(this,gr,void 0);C(this,Cs,[]);C(this,vr,null);C(this,Wn,null);C(this,Ll,null);C(this,Al,null);C(this,Un,null);C(this,qn,!1);if(k(this,Se,e.$),k(this,qs,e.store),k(this,gr,!!ZL.Highlight&&!!(CSS!=null&&CSS.highlights)),o(this,Se).options.get("finder_panel")){const t=GL(o(this,Se));k(this,$t,t.panel),k(this,Mt,t.findInput),k(this,bs,t.replaceInput),k(this,Tl,t.countDisplay),k(this,Sh,t.replaceRow),k(this,Mh,t.btnCase),k(this,Bh,t.btnWord),k(this,Nh,t.btnRegex),k(this,Sl,t.btnPrev),k(this,Ml,t.btnNext),k(this,Bl,t.btnReplace),k(this,Nl,t.btnReplaceAll),E(this,Ip,_5).call(this);const n=o(this,Se).frameRoots.values().next().value.get("container");if(o(this,qs).mode.isBottom){const r=o(this,Se).context.get("toolbar_main");n.insertBefore(o(this,$t),r)}else{const r=n.querySelector(".se-wrapper");n.insertBefore(o(this,$t),r)}pe.isResizeObserverSupported&&k(this,Ll,new ResizeObserver(()=>E(this,$h,e2).call(this)).observe(o(this,Se).context.get("toolbar_main")))}}get isOpen(){return o(this,Li)}open(e=!0){const t=o(this,Se).frameContext;if(!(t.get("isCodeView")||t.get("isMarkdownView"))&&(k(this,Li,!0),u.utils.addClass(o(this,Se).commandDispatcher.targets.get("finder"),"active"),E(this,Rp,w5).call(this),o(this,$t))){o(this,Sl).disabled=!0,o(this,Ml).disabled=!0,o(this,Bl).disabled=!0,o(this,Nl).disabled=!0,E(this,$h,e2).call(this);const s=o(this,Se).selection.get(),n=s&&!s.isCollapsed?s.toString().trim():"";u.utils.addClass(o(this,$t),"se-find-replace-open"),o(this,qs).set("_preventBlur",!0),E(this,Vp,C5).call(this),e&&E(this,Oh,t2).call(this,e),n&&(o(this,Mt).value=n),o(this,Mt).focus(),o(this,Mt).select(),o(this,Mt).value&&E(this,yi,Ui).call(this)}}close(){o(this,Li)&&(k(this,Li,!1),u.utils.removeClass(o(this,Se).commandDispatcher.targets.get("finder"),"active"),E(this,yr,du).call(this),k(this,Ye,[]),k(this,it,-1),E(this,Cr,uu).call(this),E(this,Ol,Vm).call(this),o(this,$t)&&(u.utils.removeClass(o(this,$t),"se-find-replace-open"),E(this,$l,Om).call(this),o(this,qs).set("_preventBlur",!1),o(this,Se).focusManager.nativeFocus()))}findNext(){!o(this,Li)||o(this,Ye).length===0||(k(this,it,(o(this,it)+1)%o(this,Ye).length),E(this,br,hu).call(this))}findPrev(){!o(this,Li)||o(this,Ye).length===0||(k(this,it,(o(this,it)-1+o(this,Ye).length)%o(this,Ye).length),E(this,br,hu).call(this))}search(e,{matchCase:t,wholeWord:s,regex:n}={}){return o(this,Li)||this.open(),t!==void 0&&(o(this,Ot).matchCase=t),s!==void 0&&(o(this,Ot).wholeWord=s),n!==void 0&&(o(this,Ot).regex=n),k(this,vi,e||""),o(this,Mt)&&(o(this,Mt).value=o(this,vi)),E(this,yi,Ui).call(this),o(this,Ye).length}replace(e){E(this,Il,Dm).call(this,e)}replaceAll(e){E(this,Dh,o2).call(this,e)}get matchInfo(){return{current:o(this,it)+1,total:o(this,Ye).length}}refresh(){!o(this,Li)||!o(this,vi)||o(this,qn)||(k(this,qn,!0),E(this,Rl,Im).call(this),k(this,Cs,[]),k(this,qn,!1),clearTimeout(o(this,Wn)),k(this,Wn,setTimeout(()=>E(this,yi,Ui).call(this),300)))}_destroy(){E(this,$l,Om).call(this),E(this,Ol,Vm).call(this),o(this,Ll)&&k(this,Ll,o(this,Ll).disconnect()),clearTimeout(o(this,Wn))}};Se=new WeakMap,qs=new WeakMap,$t=new WeakMap,Mt=new WeakMap,bs=new WeakMap,Tl=new WeakMap,Sh=new WeakMap,Mh=new WeakMap,Bh=new WeakMap,Nh=new WeakMap,Sl=new WeakMap,Ml=new WeakMap,Bl=new WeakMap,Nl=new WeakMap,Li=new WeakMap,Lh=new WeakMap,Ye=new WeakMap,it=new WeakMap,vi=new WeakMap,Ot=new WeakMap,gr=new WeakMap,Cs=new WeakMap,vr=new WeakMap,Wn=new WeakMap,Ll=new WeakMap,Al=new WeakMap,Un=new WeakMap,qn=new WeakMap,Ah=new WeakMap,Op=new WeakSet,b5=function(){if(o(wr,Ah))return;k(wr,Ah,!0);const e=Fg.createElement("style");e.textContent="::highlight(se-find-match){background-color:var(--se-find-match-color,rgba(255,213,0,.4));color:inherit}::highlight(se-find-current){background-color:var(--se-find-current-color,rgba(255,150,50,.7));color:inherit}",Fg.head.appendChild(e)},$h=new WeakSet,e2=function(){if(!o(this,Li)||!o(this,$t))return;const e=o(this,Se).options.get("_toolbar_sticky");o(this,qs).mode.isBottom?(o(this,$t).style.top="auto",o(this,$t).style.bottom=e>=0?e+o(this,Se).context.get("toolbar_main").offsetHeight+"px":"0px"):o(this,$t).style.top=e>=0?e+o(this,Se).context.get("toolbar_main").offsetHeight+"px":"0px"},Vp=new WeakSet,C5=function(){E(this,$l,Om).call(this),k(this,Al,o(this,Se).eventManager.addGlobalEvent("keydown",e=>{e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.close())},!0))},$l=new WeakSet,Om=function(){o(this,Al)&&k(this,Al,o(this,Se).eventManager.removeGlobalEvent(o(this,Al)))},Rp=new WeakSet,w5=function(){E(this,Ol,Vm).call(this);const e=o(this,Se).frameContext.get("wysiwyg");k(this,Un,new MutationObserver(()=>this.refresh())),o(this,Un).observe(e,{childList:!0,subtree:!0,characterData:!0})},Ol=new WeakSet,Vm=function(){o(this,Un)&&(o(this,Un).disconnect(),k(this,Un,null))},Ip=new WeakSet,_5=function(){const e=o(this,Se).eventManager;e.addEvent(o(this,Mt),"input",E(this,Dp,k5).bind(this)),e.addEvent(o(this,Mt),"keydown",E(this,Pp,x5).bind(this)),e.addEvent(o(this,bs),"keydown",E(this,Hp,E5).bind(this)),e.addEvent(o(this,$t),"click",E(this,Fp,T5).bind(this)),pe.isGecko&&e.addEvent(o(this,$t),"mousedown",t=>{if(t.target.tagName==="BUTTON"){t.preventDefault();const s=u.query.getCommandTarget(t.target);s&&o(this,Se).eventManager._injectActiveEvent(s)}o(this,qs).set("_preventBlur",!0)})},Dp=new WeakSet,k5=function(){o(this,Se).options.get("finder_liveSearch")&&(clearTimeout(o(this,Wn)),k(this,Wn,setTimeout(()=>E(this,yi,Ui).call(this),120)))},Pp=new WeakSet,x5=function(e){e.key==="Escape"?(e.preventDefault(),this.close()):e.key==="Enter"&&(e.preventDefault(),!o(this,Se).options.get("finder_liveSearch")&&o(this,Mt).value!==o(this,vi)?E(this,yi,Ui).call(this):e.shiftKey?this.findPrev():this.findNext())},Hp=new WeakSet,E5=function(e){e.key==="Escape"?(e.preventDefault(),this.close()):e.key==="Enter"&&(e.preventDefault(),E(this,Il,Dm).call(this))},Fp=new WeakSet,T5=function(e){const t=u.query.getEventTarget(e),s=u.query.getCommandTarget(t);if(!s)return;switch(e.preventDefault(),s.getAttribute("data-command")){case"prev":this.findPrev();break;case"next":this.findNext();break;case"toggle-replace":E(this,Oh,t2).call(this,!o(this,Lh));break;case"close":this.close();break;case"replace":E(this,Il,Dm).call(this);break;case"replace-all":E(this,Dh,o2).call(this);break;case"opt-case":o(this,Ot).matchCase=!o(this,Ot).matchCase,u.utils.toggleClass(o(this,Mh),"on",o(this,Ot).matchCase),E(this,yi,Ui).call(this);break;case"opt-word":o(this,Ot).wholeWord=!o(this,Ot).wholeWord,u.utils.toggleClass(o(this,Bh),"on",o(this,Ot).wholeWord),E(this,yi,Ui).call(this);break;case"opt-regex":o(this,Ot).regex=!o(this,Ot).regex,u.utils.toggleClass(o(this,Nh),"on",o(this,Ot).regex),E(this,yi,Ui).call(this);break}},Oh=new WeakSet,t2=function(e){k(this,Lh,e),o(this,Sh).style.display=e?"":"none",u.utils.toggleClass(o(this,$t).querySelector(".se-find-toggle-replace"),"on",e),e&&o(this,bs).focus()},yi=new WeakSet,Ui=function(){const e=o(this,Mt)?o(this,Mt).value:o(this,vi);if(k(this,qn,!0),E(this,yr,du).call(this),k(this,Ye,[]),k(this,it,-1),!e){k(this,vi,""),E(this,Cr,uu).call(this),u.utils.removeClass(o(this,Mt),"se-find-no-match");return}k(this,vi,e);const t=o(this,Se).frameContext.get("wysiwyg");k(this,vr,E(this,Zp,A5).call(this)),k(this,Ye,E(this,Vl,Rm).call(this,e,t)),o(this,Ye).length>0?(k(this,it,0),E(this,zp,S5).call(this),E(this,br,hu).call(this),u.utils.removeClass(o(this,Mt),"se-find-no-match")):o(this,Mt)&&u.utils.toggleClass(o(this,Mt),"se-find-no-match",e.length>0),E(this,Cr,uu).call(this),k(this,qn,!1)},Vl=new WeakSet,Rm=function(e,t){const s=[];if(!e||!t)return s;const n=o(this,Ot).matchCase?"g":"gi";let r;if(o(this,Ot).regex)try{r=new RegExp(e,n)}catch{return s}else{const v=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=o(this,Ot).wholeWord?new RegExp(`\\b${v}\\b`,n):new RegExp(v,n)}const l=o(this,vr),c=o(this,Se).format,d=l.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),h=[];let f="",p=null,m;for(;m=d.nextNode();){const v=c.getLine(m,null)||t;p&&v!==p&&(f+=`
175
+ `),p=v,h.push({node:m,start:f.length}),f+=m.textContent.replace(/\u00A0/g," ")}if(!f)return s;r.lastIndex=0;let g,y=0;for(;(g=r.exec(f))!==null;){if(g[0].length===0){r.lastIndex++;continue}const v=g.index,b=v+g[0].length,w=l.createRange();let _=!1;for(let x=y;x<h.length;x++){const S=h[x],M=S.start+S.node.textContent.length;if(!_&&v>=S.start&&v<M&&(w.setStart(S.node,v-S.start),_=!0,y=x),_&&b>S.start&&b<=M){w.setEnd(S.node,b-S.start);break}}_&&s.push(w)}return s},zp=new WeakSet,S5=function(){if(o(this,Ye).length===0)return;const e=o(this,Se).frameContext.get("options").get("iframe");o(this,gr)&&!e?E(this,jp,M5).call(this):E(this,Wp,B5).call(this)},jp=new WeakSet,M5=function(){var t;E(t=wr,Op,b5).call(t);const e=new Highlight(...o(this,Ye));CSS.highlights.set("se-find-match",e),E(this,Vh,i2).call(this)},Vh=new WeakSet,i2=function(){if(o(this,it)>=0&&o(this,it)<o(this,Ye).length){const e=new Highlight(o(this,Ye)[o(this,it)]);CSS.highlights.set("se-find-current",e)}else CSS.highlights.delete("se-find-current")},Wp=new WeakSet,B5=function(){E(this,Rl,Im).call(this);const e=o(this,vr);for(let t=o(this,Ye).length-1;t>=0;t--){const s=o(this,Ye)[t],n=E(this,Up,N5).call(this,e,s,t);for(let r=0;r<n.length;r++)o(this,Cs).push(n[r])}o(this,Cs).reverse(),E(this,Ih,n2).call(this)},Up=new WeakSet,N5=function(e,t,s){const n=t.startContainer,r=t.endContainer,l=[];if(n===r)l.push(E(this,Rh,s2).call(this,e,n,t.startOffset,t.endOffset,s));else{const c=[n];let d=n;for(;d&&d!==r;)d=E(this,qp,L5).call(this,d,t.commonAncestorContainer),d&&c.push(d);for(let h=c.length-1;h>=0;h--){const f=c[h],p=f===n?t.startOffset:0,m=f===r?t.endOffset:f.textContent.length;p>=m||l.push(E(this,Rh,s2).call(this,e,f,p,m,s))}}return l},Rh=new WeakSet,s2=function(e,t,s,n,r){const l=s>0?t.splitText(s):t;n-s<l.textContent.length&&l.splitText(n-s);const c=e.createElement("mark");return c.className="se-find-mark",c.setAttribute("data-se-find-idx",String(r)),l.parentNode.insertBefore(c,l),c.appendChild(l),c},qp=new WeakSet,L5=function(e,t){let s=e;for(;s;){if(s.firstChild)s=s.firstChild;else{for(;s&&!s.nextSibling;)if(s=s.parentNode,s===t)return null;if(!s)return null;s=s.nextSibling}if(s.nodeType===3)return s}return null},Ih=new WeakSet,n2=function(){for(const e of o(this,Cs))u.utils.removeClass(e,"se-find-current");if(o(this,it)>=0)for(const e of o(this,Cs))e.getAttribute("data-se-find-idx")===String(o(this,it))&&u.utils.addClass(e,"se-find-current")},yr=new WeakSet,du=function(){const e=o(this,Se).frameContext.get("options").get("iframe");o(this,gr)&&!e&&(CSS.highlights.delete("se-find-match"),CSS.highlights.delete("se-find-current")),E(this,Rl,Im).call(this)},Rl=new WeakSet,Im=function(){const t=o(this,Se).frameContext.get("wysiwyg").querySelectorAll("mark.se-find-mark");if(t.length!==0){for(const s of t){const n=s.parentNode;if(n){for(;s.firstChild;)n.insertBefore(s.firstChild,s);n.removeChild(s),n.normalize()}}k(this,Cs,[])}},br=new WeakSet,hu=function(){if(o(this,it)<0||o(this,it)>=o(this,Ye).length)return;const e=o(this,Se).frameContext.get("options").get("iframe");if(o(this,gr)&&!e){E(this,Vh,i2).call(this);const t=o(this,Ye)[o(this,it)];o(this,Se).selection.scrollTo(t,{behavior:"auto"})}else{E(this,Ih,n2).call(this);const t=o(this,Cs).find(s=>s.getAttribute("data-se-find-idx")===String(o(this,it)));t&&o(this,Se).selection.scrollTo(t,{behavior:"auto",noFocus:!0})}E(this,Cr,uu).call(this)},Il=new WeakSet,Dm=function(e){if(o(this,it)<0||o(this,Ye).length===0)return;E(this,yr,du).call(this);const t=o(this,Se).frameContext.get("wysiwyg"),s=E(this,Vl,Rm).call(this,o(this,vi),t);o(this,it)>=s.length||(E(this,Ph,r2).call(this,s[o(this,it)],e??(o(this,bs)?o(this,bs).value:"")),o(this,Se).history.push(!1),E(this,yi,Ui).call(this),o(this,it)>=o(this,Ye).length&&o(this,Ye).length>0&&(k(this,it,0),E(this,br,hu).call(this)))},Dh=new WeakSet,o2=function(e){if(o(this,Ye).length===0)return;E(this,yr,du).call(this);const t=o(this,Se).frameContext.get("wysiwyg"),s=E(this,Vl,Rm).call(this,o(this,vi),t);if(s.length!==0){e=e??(o(this,bs)?o(this,bs).value:"");for(let n=s.length-1;n>=0;n--)E(this,Ph,r2).call(this,s[n],e);t.normalize(),o(this,Se).history.push(!1),E(this,yi,Ui).call(this)}},Ph=new WeakSet,r2=function(e,t){var l,c;const s=e.startContainer,r=o(this,vr).createTextNode(t);if(s===e.endContainer){e.deleteContents(),e.insertNode(r),(l=s.parentNode)==null||l.normalize();return}e.deleteContents(),s.nodeType===3?s.parentNode&&(s.parentNode.insertBefore(r,s.nextSibling),s.parentNode.normalize()):(e.insertNode(r),(c=r.parentNode)==null||c.normalize())},Cr=new WeakSet,uu=function(){if(!o(this,$t))return;const e=o(this,Ye).length>0;e?o(this,Tl).textContent=`${o(this,it)+1}/${o(this,Ye).length}`:o(this,Tl).textContent=o(this,vi)?"0":"",o(this,Sl).disabled=!e,o(this,Ml).disabled=!e,o(this,Bl).disabled=!e,o(this,Nl).disabled=!e},Zp=new WeakSet,A5=function(){const e=o(this,Se).frameContext;return e.get("options").get("iframe")?e.get("_wd"):Fg},C(wr,Op),C(wr,Ah,!1);let zg=wr;function GL({lang:i,icons:e}){const t=`
176
+ <div class="se-find-replace-row">
177
+ <div class="se-find-input-wrapper">
178
+ <input class="se-find-replace-input" type="text" placeholder="${i.find||"Find"}" spellcheck="false" autocomplete="off" />
179
+ <div class="se-find-replace-toggle">
180
+ <div class="se-find-replace-info">
181
+ <span class="se-find-replace-count"></span>
182
+ </div>
183
+ <button class="se-btn se-find-replace-btn se-find-opt-case" type="button" data-command="opt-case" title="${i.finder_matchCase}">
184
+ ${e.match_case}
185
+ </button>
186
+ <button class="se-btn se-find-replace-btn se-find-opt-word" type="button" data-command="opt-word" title="${i.finder_wholeWord}">
187
+ ${e.whole_word}
188
+ </button>
189
+ <button class="se-btn se-find-replace-btn se-find-opt-regex" type="button" data-command="opt-regex" title="${i.finder_regex}">
190
+ ${e.regex}
191
+ </button>
192
+ </div>
193
+ </div>
194
+ <div class="se-find-replace-buttons">
195
+ <button class="se-btn se-find-replace-btn" type="button" data-command="prev" title="${i.finder_prev}
196
+ (${pe.shiftIcon} + Enter)">
197
+ ${e.arrow_up_small}
198
+ </button>
199
+ <button class="se-btn se-find-replace-btn" type="button" data-command="next" title="${i.finder_next}
200
+ (Enter)">
201
+ ${e.arrow_down_small}
202
+ </button>
203
+ <button class="se-btn se-find-replace-btn se-find-toggle-replace" type="button" data-command="toggle-replace" title="${i.replace}">
204
+ ${e.swap_vert}
205
+ </button>
206
+ <button class="se-btn se-find-replace-btn" type="button" data-command="close" title="${i.close}">
207
+ ${e.cancel}
208
+ </button>
209
+ </div>
210
+ </div>
211
+ <div class="se-find-replace-row se-find-replace-row-replace">
212
+ <div class="se-find-input-wrapper">
213
+ <input class="se-find-replace-input se-replace-input" type="text" placeholder="${i.replace}" spellcheck="false" autocomplete="off" />
214
+ </div>
215
+ <div class="se-find-replace-buttons">
216
+ <button class="se-btn se-find-replace-btn" type="button" data-command="replace" title="${i.replace}
217
+ (Enter)">
218
+ ${e.replaceText}
219
+ </button>
220
+ <button class="se-btn se-find-replace-btn" type="button" data-command="replace-all" title="${i.replaceAll}">
221
+ ${e.relaceTextAll}
222
+ </button>
223
+ </div>
224
+ </div>`,s=u.utils.createElement("DIV",{class:"se-find-replace"},t);return{panel:s,findInput:s.querySelector(".se-find-replace-input"),replaceInput:s.querySelector(".se-replace-input"),countDisplay:s.querySelector(".se-find-replace-count"),replaceRow:s.querySelector(".se-find-replace-row-replace"),btnCase:s.querySelector(".se-find-opt-case"),btnWord:s.querySelector(".se-find-opt-word"),btnRegex:s.querySelector(".se-find-opt-regex"),btnPrev:s.querySelector('[data-command="prev"]'),btnNext:s.querySelector('[data-command="next"]'),btnReplace:s.querySelector('[data-command="replace"]'),btnReplaceAll:s.querySelector('[data-command="replace-all"]')}}const YL=zg;class KL{constructor(e){zl(this,"$");this.$=e.$}}const XL=KL,{isMobile:QL,_w:JL}=pe;function eA(i){var n;const e=u.query.getEventTarget(i);let t=e;this.$.store.mode.isBalloon&&!((n=this.$.context.get("toolbar_sub_main"))!=null&&n.contains(t))&&this._hideToolbar_sub();const s=u.check.isInputElement(t);if(s?this.$.store.set("_preventBlur",!1):this.$.frameContext.get("wysiwyg").contains(this.$.selection.getNode())||this.$.focusManager.focus(),u.query.getParentElement(t,".se-dropdown"))i.stopPropagation(),this.$.ui.preventToolbarHide(!0);else{let r=t.getAttribute("data-command"),l=t.className;for(;t&&!r&&!/(se-menu-list|sun-editor-common|se-menu-tray)/.test(l);)t=t.parentElement,r=t.getAttribute("data-command"),l=t.className;if(s&&/^INPUT$/i.test(t==null?void 0:t.getAttribute("data-type"))){if(this.$.store.set("_preventBlur",!0),this._inputFocus=!0,this.$.store.get("hasFocus")||this.applyTagEffect(),!u.check.isInputElement(e)||e.disabled)return;const c=this.$.plugins[r];if(!c||(this.__inputBlurEvent&&this.__removeInput(),typeof c.toolbarInputChange=="function"&&(this.__inputPlugin={obj:c,target:e,value:e.value}),this.__inputBlurEvent=this.$.eventManager.addEvent(e,"blur",d=>{if(!c.isInputActive)try{const h=e.value.trim();typeof c.toolbarInputChange=="function"&&h!==this.__inputPlugin.value&&c.toolbarInputChange({target:e,value:h,event:d})}finally{JL.setTimeout(()=>this._inputFocus=!1,0),this.__removeInput()}}),!c))return;typeof c.toolbarInputKeyDown=="function"&&(this.__inputKeyEvent=this.$.eventManager.addEvent(e,"keydown",d=>{c.toolbarInputKeyDown({target:e,event:d})}))}else if(this.__inputBlurEvent&&this.__inputPlugin){const c=this.__inputPlugin.target.value.trim();c!==this.__inputPlugin.value&&this.__inputPlugin.obj.toolbarInputChange({target:this.__inputPlugin.target,value:c,event:i}),this.__removeInput();return}else this.$.frameContext.get("isCodeView")||(QL?this.$.store.set("_preventBlur",!0):(i.preventDefault(),pe.isGecko&&r&&this.$.eventManager._injectActiveEvent(t)));(r===this.$.menu.currentDropdownName||r===this.$.menu.currentContainerName)&&i.stopPropagation()}}function tA(i){const e=u.query.getEventTarget(i),t=u.query.getCommandTarget(e);if(!t)return;let s=t,n="";for(;s&&!/se-menu-tray/.test(s.className)&&!n;)s=s.parentElement,n=s==null?void 0:s.getAttribute("data-key");if(!n)return;const r=this.$.plugins[n];!r||typeof r.action!="function"||(i.stopPropagation(),r.action(t))}function iA(i){const e=u.query.getEventTarget(i);this.$.commandDispatcher.runFromTarget(e)}const{_w:a1}=pe,By=new WeakMap;async function sA(i,e){const t=u.query.getEventTarget(e);if(this.$.store.set("_mousedown",!0),this.__onDownEv&&Ny.call(this),this.__onDownEv=this.$.eventManager.addGlobalEvent("mouseup",Ny.bind(this)),!(i.get("isReadOnly")||u.check.isNonEditable(i.get("wysiwyg")))){if(this.$.format._isExcludeSelectionElement(t)){e.preventDefault();return}this._setSelectionSync(),a1.setTimeout(this.$.selection.init.bind(this.$.selection),0),await this.$.eventManager.triggerEvent("onMouseDown",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onMouseDown",{frameContext:i,event:e})!==!1&&(this.$.store.mode.isBalloon?this._hideToolbar():this.$.store.mode.isSubBalloon&&this._hideToolbar_sub(),/FIGURE/i.test(t==null?void 0:t.nodeName)&&e.preventDefault())}}function Ny(){this.$.store.set("_mousedown",!1),this.__onDownEv=this.$.eventManager.removeGlobalEvent(this.__onDownEv)}async function nA(i,e){await this.$.eventManager.triggerEvent("onMouseUp",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onMouseUp",{frameContext:i,event:e})}async function oA(i,e){const t=u.query.getEventTarget(e);if(i.get("isReadOnly"))return e.preventDefault(),u.check.isAnchor(t)&&a1.open(t.href,t.target),!1;if(u.check.isNonEditable(i.get("wysiwyg"))||await this.$.eventManager.triggerEvent("onClick",{frameContext:i,event:e})===!1||await this._callPluginEventAsync("onClick",{frameContext:i,event:e})===!1)return;const s=this.$.component.get(t);if(s){e.preventDefault(),this.$.component.select(s.target,s.pluginName);return}if(this.$.selection.init(),e.detail===3){const c=this.$.selection.getRange();this.$.format.isLine(c.endContainer)&&c.endOffset===0&&this.$.selection.setRange(c.startContainer,c.startOffset,c.startContainer,c.startContainer.textContent.length)}const n=this.$.selection.getNode(),r=this.$.format.getLine(n,null),l=this.$.format.getBlock(n,null);if(!r&&!u.check.isNonEditable(t)&&!u.check.isList(l)){const c=this.$.selection.getRange();if(this.$.format.getLine(c.startContainer)===this.$.format.getLine(c.endContainer))if(u.check.isList(l)){e.preventDefault();const d=n.nextElementSibling,h=u.utils.createElement("LI",null,n);l.insertBefore(h,d),this.$.focusManager.focus()}else!u.check.isWysiwygFrame(n)&&!this.$.component.is(n)&&(!u.check.isTableElements(n)||u.check.isTableCell(n))&&this._setDefaultLine(this.$.format.isBlock(l)?"DIV":this.$.options.get("defaultLine"))!==null&&(e.preventDefault(),this.$.focusManager.focus())}this.$.commandDispatcher._copyFormat(),(this.$.store.mode.isBalloon||this.$.store.mode.isSubBalloon)&&a1.setTimeout(this._toggleToolbarBalloon.bind(this),0)}function rA(i,e){if(i.get("isReadOnly")||i.get("isDisabled"))return!1;let t=By.get(i);t||(t={rafId:null,event:null},By.set(i,t)),t.event=e,t.rafId===null&&(t.rafId=a1.requestAnimationFrame(()=>{var r;const s=t.event;if(t.rafId=null,t.event=null,!s)return;const n=u.query.getEventTarget(s);ve.get("__overInfo")!==!1&&!this.$.ui.selectMenuOn&&this.$.component.hoverSelect(n),(r=this.$.ui.blockHandle)==null||r.positionForTarget(n,s.clientY),this._callPluginEvent("onMouseMove",{frameContext:i,event:s})}))}async function aA(i,e){var t;(t=this.$.ui.blockHandle)==null||t.hide(e),await this.$.eventManager.triggerEvent("onMouseLeave",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onMouseLeave",{frameContext:i,event:e})}const lA={"event.prevent":({ctx:i})=>i.e.preventDefault(),"event.stop":({ctx:i})=>i.e.stopPropagation(),"event.prevent.stop":({ctx:i})=>{i.e.preventDefault(),i.e.stopPropagation()},"cache.styleNode":({ports:i})=>i.styleNodeCache(),"cache.formatAttrsTemp":({ports:i},{attrs:e})=>i.formatAttrsTempCache(e),"focusManager.nativeFocus":({ports:i})=>i.focusManager.nativeFocus(),"history.push":({ports:i},e)=>i.history.push(e),"documentType.refreshHeader":({ctx:i})=>{ue.setTimeout(()=>{i.fc.get("documentType").reHeader()},0)},"component.deselect":({ports:i})=>i.component.deselect(),"selection.setRange":({ports:i},{sc:e,so:t,ec:s,eo:n})=>i.selection.setRange(e,t,s,n),"format.removeBlock":({ports:i},{rangeEl:e,selectedFormats:t,newBlockElement:s,shouldDelete:n,skipHistory:r})=>i.format.removeBlock(e,{selectedFormats:t,newBlockElement:s,shouldDelete:n,skipHistory:r}),"dom.utils.removeItem":(i,{item:e})=>u.utils.removeItem(e),"select.component.fallback":({ports:i},{cmponentInfo:e})=>{i.component.select(e.target,e.pluginName)===!1&&i.focusManager.blur()}},cA={"del.format.removeAndMove":({ports:i},{container:e,formatEl:t})=>{const s=i.html.remove();if(s.commonCon!==s.container&&t.parentElement)if(t.contains(e)){const n=dA(t);i.selection.setRange(n,n.textContent.length,n,n.textContent.length)}else{const{focusNode:n,focusOffset:r}=hA(t);i.selection.setRange(n,r,n,r)}},"backspace.brline.strip":({ctx:i,ports:e},{formatEl:t})=>{const s=i.options.get("defaultLine"),n=t.parentNode,r=u.utils.createElement(s);for(;t.firstChild&&!u.check.isBreak(t.firstChild);)r.appendChild(t.firstChild);t.firstChild&&u.check.isBreak(t.firstChild)&&t.removeChild(t.firstChild),r.firstChild||(r.innerHTML="<br>"),n.insertBefore(r,t),(!t.firstChild||!t.textContent.trim()&&!t.querySelector("br"))&&n.removeChild(t);const l=r.firstChild;e.selection.setRange(l,0,l,0)},"backspace.format.maintain":({ctx:i},{formatEl:e})=>{if(e.nodeName.toUpperCase()===i.options.get("defaultLine").toUpperCase()){e.innerHTML="<br>";const t=e.attributes;for(;t[0];)e.removeAttribute(t[0].name)}else e.parentNode.replaceChild(u.utils.createElement(i.options.get("defaultLine"),null,"<br>"),e)},"backspace.component.select":({ports:i},{selectionNode:e,range:t,fileComponentInfo:s})=>{var r;let n=null;u.check.isBreak(e)?u.utils.removeItem(e):u.check.isBreak(n=(r=t.startContainer.childNodes)==null?void 0:r[t.startOffset])&&u.utils.removeItem(n),i.component.select(s.target,s.pluginName)===!1&&i.focusManager.blur()},"backspace.component.remove":({ports:i},{isList:e,sel:t,formatEl:s,fileComponentInfo:n})=>{e&&u.utils.removeItem(t),s.textContent.length===0&&u.utils.removeItem(s),i.component.select(n.target,n.pluginName)===!1&&i.focusManager.blur()},"backspace.list.mergePrev":({ports:i},{prev:e,formatEl:t,rangeEl:s})=>{let n=e===s.parentNode?s.previousSibling:e.lastChild;n||(n=u.utils.createTextNode(Oe.zeroWidthSpace),s.parentNode.insertBefore(n,s.parentNode.firstChild));const r=n.nodeType===3?n.textContent.length:1,l=t.childNodes;let c=n,d=l[0];for(;d=l[0];)e.insertBefore(d,c.nextSibling),c=d;u.utils.removeItem(t),s.children.length===0&&u.utils.removeItem(s),i.selection.setRange(n,r,n,r)},"backspace.list.removeNested":({ports:i},{range:e})=>{i.html.remove(),e.startContainer.nodeType===3&&i.selection.setRange(e.startContainer,e.startContainer.textContent.length,e.startContainer,e.startContainer.textContent.length)},"backspace.emptyLine.mergePrev":({ports:i},{formatEl:e,prev:t})=>{u.utils.removeItem(e),Ly(i,t,!0)},"backspace.brline.rowMerge":({ports:i},{rowEndBr:e,rowStartBr:t})=>{const s=t.nextSibling;s!==e&&(s==null?void 0:s.nodeType)===3&&u.check.isZeroWidth(s)&&u.utils.removeItem(s);const n=t.previousSibling;if(u.utils.removeItem(t),n&&n.nodeType===3)i.selection.setRange(n,n.textContent.length,n,n.textContent.length);else if(u.check.isBreak(n))i.selection.setRange(e,0,e,0);else{const r=e.parentNode;i.selection.setRange(r,0,r,0)}},"backspace.softBreak.merge":({ports:i},{zws:e})=>{const t=e.previousSibling,s=e.parentNode,n=t==null?void 0:t.previousSibling;u.utils.removeItem(e),t&&u.utils.removeItem(t),n?jg(i,n):s&&i.selection.setRange(s,0,s,0)},"delete.component.select":({ports:i},{formatEl:e,fileComponentInfo:t})=>{if(u.check.isListCell(e)){const s=t.container.previousSibling;u.check.isZeroWidth(s)&&u.utils.removeItem(s)}else u.check.isZeroWidth(e)&&u.utils.removeItem(e);i.component.select(t.target,t.pluginName)===!1&&i.focusManager.blur()},"delete.component.selectNext":({ports:i,ctx:e},{formatEl:t,nextEl:s})=>{if(u.check.isZeroWidth(t)&&(u.utils.removeItem(t),u.check.isTable(s))){let r=u.query.getEdgeChild(s,u.check.isTableCell,!1);r=r.firstElementChild||r,i.selection.setRange(r,0,r,0);return}const n=i.component.get(s);n?(e.e.stopPropagation(),i.component.select(n.target,n.pluginName)===!1&&i.focusManager.blur()):i.component.is(s)&&(e.e.stopPropagation(),u.utils.removeItem(s))},"delete.list.removeNested":({ports:i,ctx:e},{range:t,formatEl:s,rangeEl:n})=>{t.startContainer!==t.endContainer&&i.html.remove();const r=u.utils.arrayFind(s.children,u.check.isList)||s.nextElementSibling||n.parentElement.nextElementSibling;if(r&&(u.check.isList(r)||u.utils.arrayFind(r.children,u.check.isList))){e.e.preventDefault();let l,c;if(u.check.isList(r)){const d=r.firstElementChild;for(c=d.childNodes,l=c[0];c[0];)s.insertBefore(c[0],r);u.utils.removeItem(d)}else{for(l=r.firstChild,c=r.childNodes;c[0];)s.appendChild(c[0]);u.utils.removeItem(r)}i.selection.setRange(l,0,l,0),i.history.push(!0)}},"delete.emptyLine.mergeNext":({ports:i},{formatEl:e,next:t})=>{u.utils.removeItem(e),Ly(i,t,!1)},"line.merge":({ports:i},{into:e,from:t})=>{const s=i.format,n=t.parentElement;Ay(e);const r=e.lastChild;for(Ay(t);t.firstChild;)e.appendChild(t.firstChild);u.utils.removeItem(t);let l=n;for(;l&&l!==e.parentElement&&s.isBlock(l)&&!s.isClosureBlock(l)&&u.check.isZeroWidth(l);){const c=l.parentElement;u.utils.removeItem(l),l=c}e.firstChild||e.appendChild(u.utils.createElement("BR")),r?jg(i,r):i.selection.setRange(e,0,e,0)},"delete.brline.rowMerge":({ports:i},{rowEndBr:e})=>{let t=e.nextSibling;(t==null?void 0:t.nodeType)===3&&u.check.isZeroWidth(t)&&(t=t.nextSibling);const s=e.parentNode;u.utils.removeItem(e),t&&(t.nodeType===3||u.check.isBreak(t))?i.selection.setRange(t,0,t,0):i.selection.setRange(s,s.childNodes.length,s,s.childNodes.length)},"delete.softBreak.merge":({ports:i},{br:e})=>{const t=e.previousSibling,s=e.parentNode,n=e.nextSibling;n&&n.nodeType===3&&u.check.isZeroWidth(n.textContent)&&u.utils.removeItem(n),u.utils.removeItem(e),t?jg(i,t):s&&i.selection.setRange(s,0,s,0)},"tab.format.indent":({ports:i,ctx:e},{range:t,formatEl:s,shift:n})=>{const r=i.format.getLines(null),l=[],c=[],d=u.check.isListCell(r[0]),h=u.check.isListCell(r.at(-1));let f={sc:t.startContainer,so:t.startOffset,ec:t.endContainer,eo:t.endOffset};for(let p=0,m=r.length,g;p<m;p++)if(g=r[p],u.check.isListCell(g)){if(!g.previousElementSibling&&!n)continue;l.push(g)}else c.push(g);if(l.length>0&&(f=i.listFormat.applyNested(l,n)),c.length>0)if(n){const p=c.length-1;for(let y=0,v;y<=p;y++){v=c[y].childNodes;for(let b=0,w=v.length,_;b<w&&(_=v[b],!!_);b++)if(!u.check.isZeroWidth(_)){/^\s{1,4}$/.test(_.textContent)?u.utils.removeItem(_):/^\s{1,4}/.test(_.textContent)&&(_.textContent=_.textContent.replace(/^\s{1,4}/,""));break}}const m=u.query.getEdgeChild(c[0],"text",!1),g=u.query.getEdgeChild(c[p],"text",!0);!d&&m&&(f.sc=m,f.so=0),!h&&g&&(f.ec=g,f.eo=g.textContent.length)}else if(c.length===1){let p=e.store.get("tabSize")+1;if(e.options.get("syncTabIndent")){const g=u.query.findTextIndexOnLine(s,t.startContainer,t.startOffset,v=>i.component.is(v)),y=i.format.isLine(s.previousElementSibling)?u.query.findTabEndIndex(s.previousElementSibling,g,2):0;y>g&&(p=y-g)}const m=u.utils.createTextNode(new Array(p).join(" "));if(!i.html.insertNode(m,{afterNode:null,skipCharCount:!1}))return!1;d||(f.sc=m,f.so=m.length),h||(f.ec=m,f.eo=m.length)}else{const p=u.utils.createTextNode(new Array(e.store.get("tabSize")+1).join(" ")),m=c.length-1;for(let v=0,b;v<=m;v++)b=c[v].firstChild,b&&(u.check.isBreak(b)?c[v].insertBefore(p.cloneNode(!1),b):b.textContent=p.textContent+b.textContent);const g=u.query.getEdgeChild(c[0],"text",!1),y=u.query.getEdgeChild(c[m],"text",!0);!d&&g&&(f.sc=g,f.so=0),!h&&y&&(f.ec=y,f.eo=y.textContent.length)}i.selection.setRange(f.sc,f.so,f.ec,f.eo)},"caret.scrollTo":({ports:i},{range:e})=>{i.caretScrollTo(e)},"enter.line.addDefault":({ports:i},{formatEl:e})=>{const s=i.format.addLineAfter(e).firstChild;i.selection.setRange(s,0,s,0)},"enter.list.addItem":({ports:i},{formatEl:e,selectionNode:t})=>{const s=u.utils.createElement("BR"),n=u.utils.createElement("LI",null,s);e.parentNode.insertBefore(n,e.nextElementSibling),n.appendChild(t.nextSibling),i.selection.setRange(s,1,s,1)},"enter.format.exitEmpty":({ports:i,ctx:e},{formatEl:t,rangeEl:s})=>{let n=null;if(u.check.isListCell(s.parentElement)){const r=t.parentNode.parentElement;s=r.parentElement;const l=u.utils.createElement("LI");l.innerHTML="<br>",u.utils.copyTagAttributes(l,t,e.options.get("lineAttrReset")),n=l,s.insertBefore(n,r.nextElementSibling)}else{let r;u.check.isTableCell(s.parentElement)?r="DIV":u.check.isList(s.parentElement)?r="LI":i.format.isLine(s.nextElementSibling)?r=s.nextElementSibling.nodeName:i.format.isLine(s.previousElementSibling)?r=s.previousElementSibling.nodeName:r=e.options.get("defaultLine"),n=u.utils.createElement(r);const l=i.format.removeBlock(s,{selectedFormats:[t],newBlockElement:null,shouldDelete:!0,skipHistory:!0});l.cc.insertBefore(n,l.sc?l.sc.nextSibling:l.cc.firstChild)}n.innerHTML="<br>",i.nodeTransform.removeAllParents(t,null,null),i.selection.setRange(n,1,n,1)},"enter.format.cleanBrAndZWS":({ports:i},{selectionNode:e,selectionFormat:t,brBlock:s,children:n,offset:r})=>{t?u.utils.removeItem(n[r-1]):u.utils.removeItem(e);const l=s.nextElementSibling,c=i.format.addLine(s,i.format.isLine(l)?l:null);u.utils.copyFormatAttributes(c,s),i.selection.setRange(c,1,c,1)},"enter.format.insertBrHtml":({ports:i},{brBlock:e,range:t,wSelection:s,offset:n})=>{i.html.insert(t.collapsed&&u.check.isBreak(t.startContainer.childNodes[t.startOffset-1])?"<br>":"<br><br>",{selectInserted:!1,skipCharCount:!0,skipCleaning:!0});let r=s.focusNode;const l=s.focusOffset;e===r&&(r=r.childNodes[l-n>1?l-1:l]),i.selection.setRange(r,1,r,1),i.setOnShortcutKey(!0)},"enter.brline.insert":({ports:i},{range:e})=>{i.selection.setRange(e.startContainer,e.startOffset,e.endContainer,e.endOffset),e.collapsed||i.html.remove();const t=u.utils.createElement("BR");i.html.insertNode(t,{afterNode:null,skipCharCount:!0}),t.nextSibling||t.parentNode.appendChild(u.utils.createElement("BR"));const s=t.nextSibling;i.selection.setRange(s,0,s,0),i.setOnShortcutKey(!0)},"enter.shift.br":({ports:i,ctx:e},{range:t})=>{const s=e.fc.get("_wd"),n=i.selection.get(),l=(n==null?void 0:n.rangeCount)>0&&e.fc.get("wysiwyg").contains(n.focusNode)?n.getRangeAt(0):t,c=s.createRange();if(c.setStart(l.startContainer,l.startOffset),c.setEnd(l.endContainer,l.endOffset),l.collapsed||(c.deleteContents(),c.collapse(!0)),c.startContainer.nodeType===1&&u.check.isBreak(c.startContainer)){const f=c.startContainer;c.setStart(f.parentNode,u.utils.getArrayIndex(f.parentNode.childNodes,f)+c.startOffset),c.collapse(!0)}const d=u.utils.createElement("BR");c.insertNode(d);const h=d.nextSibling;if(h&&h.nodeType===3&&!u.check.isZeroWidth(h.textContent))i.selection.setRange(h,0,h,0);else{const f=u.utils.createTextNode(Oe.zeroWidthSpace);d.parentNode.insertBefore(f,d.nextSibling),i.selection.setRange(f,1,f,1)}i.history.push(!1)},"enter.brline.exit":({ports:i},{brBlock:e})=>{const t=e.lastChild;t&&(u.check.isBreak(t)||u.check.isZeroWidth(t.textContent))&&u.utils.removeItem(t);const s=e.nextElementSibling,n=i.format.addLine(e,i.format.isLine(s)?s:null);u.utils.copyFormatAttributes(n,e),i.selection.setRange(n,1,n,1)},"enter.format.insertBrNode":({ports:i},{wSelection:e})=>{const t=e.focusNode.nextSibling,s=u.utils.createElement("BR");i.html.insertNode(s,{afterNode:null,skipCharCount:!0});const n=s.previousSibling,r=s.nextSibling;!u.check.isBreak(t)&&!u.check.isBreak(n)&&(!r||u.check.isZeroWidth(r))?(s.parentNode.insertBefore(s.cloneNode(!1),s),i.selection.setRange(s,1,s,1)):i.selection.setRange(r,0,r,0),i.setOnShortcutKey(!0)},"enter.format.breakAtEdge":({ports:i,ctx:e},{formatEl:t,selectionNode:s,formatStartEdge:n,formatEndEdge:r,bidiSwapped:l})=>{const c=u.utils.createElement("BR"),d=u.utils.createElement(t.nodeName,null,c);u.utils.copyTagAttributes(d,t,e.options.get("lineAttrReset"));let h=c;if(!(r&&e.options.get("lineBreakClearStyle"))){let f=s;do{if(!u.check.isBreak(f)&&f.nodeType===1){const p=f.cloneNode(!1);p.appendChild(h),h=p}f=f.parentElement}while(t!==f&&t.contains(f))}if(d.appendChild(h),t.parentNode.insertBefore(d,n&&!r?t:t.nextElementSibling),r)i.selection.setRange(c,1,c,1);else if(l)i.selection.setRange(t,1,t,1);else{const f=t.firstChild||t;i.selection.setRange(f,0,f,0)}},"enter.format.breakWithSelection":({ports:i,ctx:e},{formatEl:t,range:s,formatStartEdge:n,formatEndEdge:r})=>{const l=i.format.getLine(s.startContainer,null)!==i.format.getLine(s.endContainer,null),c=t.cloneNode(!1);c.innerHTML="<br>";const d=s.commonAncestorContainer,h=d===s.startContainer&&d===s.endContainer&&u.check.isZeroWidth(d)?{container:d,offset:s.endOffset,prevContainer:d.previousElementSibling,commonCon:d}:i.html.remove();let f=i.format.getLine(h.container,null),p=0;if(!f){u.check.isWysiwygFrame(h.container)&&(i.enterPrevent(e.e),e.fc.get("wysiwyg").appendChild(c),f=c,u.utils.copyTagAttributes(f,t,e.options.get("lineAttrReset")),i.selection.setRange(f,p,f,p));return}const m=i.format.getBlock(h.container);f=f.contains(m)?u.query.getEdgeChild(m,g=>!!i.format.getLine(g),!1):f,l?r&&!n?(f.parentNode.insertBefore(c,!h.prevContainer||h.container===h.prevContainer?f.nextElementSibling:f),f=c,p=0):(p=h.offset,n&&(f.parentNode.insertBefore(c,f),r&&(p=0))):r&&n?(f.parentNode.insertBefore(c,f),p=0):r?(f=f.parentNode.insertBefore(c,f.nextElementSibling),f=c,p=0):f=i.nodeTransform.split(h.container,h.offset,u.query.getNodeDepth(t)),i.enterPrevent(e.e),u.utils.copyTagAttributes(f,t,e.options.get("lineAttrReset")),i.selection.setRange(f,p,f,p)},"enter.format.breakAtCursor":({ports:i,ctx:e},{formatEl:t,range:s})=>{let n=null;u.check.isZeroWidth(t)?n=i.format.addLine(t,t.cloneNode(!1)):n=i.nodeTransform.split(s.endContainer,s.endOffset,u.query.getNodeDepth(t)),i.enterPrevent(e.e),u.utils.copyTagAttributes(n,t,e.options.get("lineAttrReset")),i.selection.setRange(n,0,n,0)},"enter.figcaption.exitInList":({ports:i},{formatEl:e})=>{const t=i.format.addLine(e,null);i.selection.setRange(t,0,t,0)},"keydown.input.insertNbsp":({ports:i})=>{const e=i.html.insertNode(u.utils.createTextNode(" "),{afterNode:null,skipCharCount:!0});e&&i.selection.setRange(e,e.length,e,e.length)},"keydown.input.insertZWS":({ports:i})=>{const e=u.utils.createTextNode(Oe.zeroWidthSpace);i.html.insertNode(e,{afterNode:null,skipCharCount:!0}),i.selection.setRange(e,1,e,1)}};function Ly(i,e,t){const s=t?e.childNodes.length:0;i.selection.setRange(e,s,e,s)}function jg(i,e){const t=e.nodeType===3?e.textContent.length:e.childNodes.length;i.selection.setRange(e,t,e,t)}function Ay(i){let e=i.lastChild;for(;e&&(u.check.isBreak(e)||e.nodeType===3&&u.check.isZeroWidth(e));){const t=e.previousSibling;u.utils.removeItem(e),e=t}}function dA(i){const e=i.lastChild,t=i.nextElementSibling;if(!t)return e;if(u.check.isZeroWidth(t))return u.utils.removeItem(t),e;const s=t.childNodes;for(;s[0];)i.appendChild(s[0]);return u.utils.removeItem(t),e}function hA(i){var r;const e=i.childNodes,t=i.previousElementSibling;let s=e[0],n=0;if(!t)return{focusNode:s,focusOffset:n};if(u.check.isZeroWidth(t))return u.utils.removeItem(t),{focusNode:s,focusOffset:n};if(e.length>1||((r=e[0])==null?void 0:r.textContent.length)>0)for(;e[0];)t.appendChild(e[0]);else s=t.lastChild,n=s.textContent.length;return u.utils.removeItem(i),{focusNode:s,focusOffset:n}}const uA="action.stop";async function $y(i,e){const t={...lA,...cA};for(const s of i){if(s.t===uA)return!1;const n=t[s.t];if(n&&await n(e,s.p)===!1)return!1}}function Oy(i){var f;const e=i.selection.getRange(),t=e.startContainer,s=e.endContainer,n=i.format.getBlock(t),r=i.format.getBlock(s),l=u.check.isTableCell(n),c=u.check.isTableCell(r);if((l&&!n.previousElementSibling&&!n.parentElement.previousElementSibling||c&&!r.nextElementSibling&&!r.parentElement.nextElementSibling)&&n!==r){const p=((f=u.query.getParentElement(e.commonAncestorContainer,u.check.isFigure))==null?void 0:f.parentElement)||e.commonAncestorContainer;if(!l)u.utils.removeItem(u.query.getParentElement(r,m=>p===m.parentNode));else if(!c)u.utils.removeItem(u.query.getParentElement(n,m=>p===m.parentNode));else return u.utils.removeItem(u.query.getParentElement(n,m=>p===m.parentNode)),i.focusManager.nativeFocus(),!0}const d=t.nodeType===1?u.query.getParentElement(t,".se-component"):null,h=s.nodeType===1?u.query.getParentElement(s,".se-component"):null;return d&&u.utils.removeItem(d),h&&u.utils.removeItem(h),!1}function fA(i,e,t){let s=e.parentNode.previousSibling;const n=e.parentNode.nextSibling;s||(n?s=n:(s=u.utils.createElement("BR"),t.appendChild(s)));let r=e;for(;t.contains(r)&&!r.previousSibling;)r=r.parentNode;if(!t.contains(r))return e.textContent="",i.nodeTransform.removeAllParents(e,null,t),!0}function l1(i,e,t){const s=t?e.startContainer:e.endContainer,n=t?e.startOffset:e.endOffset,r=t?"previousSibling":"nextSibling",l=s.nodeType===1;let c;return l?(c=Vy(i,s.childNodes[n],r,s),u.check.isComponentContainer(c)||u.check.isNonEditable(c)?c:null):(c=Vy(i,s,r,s),u.check.isEdgePoint(s,n,t?"front":"end")&&(u.check.isComponentContainer(c)||u.check.isNonEditable(c))?c:null)}function Vy(i,e,t,s){if(!e)return null;let n=e[t];if(!n)if(n=i.format.getLine(s),n=n?n[t]:null,n&&!i.component.is(n))n=t==="previousSibling"?n.firstChild:n.lastChild;else return null;return n}function pA(i,e){return i.setDefaultLine(e)}function bc(i,e,t,s){if(!i.collapsed||!e)return!1;const n=i.getBoundingClientRect();if(n.height<=0)return!1;const r=s.createRange();r.selectNodeContents(e);const l=r.getBoundingClientRect();return l.width<=2?!1:t==="front"?n.left<=l.left+2:n.left>=l.right-2}const Y={prevent:()=>({t:"event.prevent"}),stop:()=>({t:"event.stop"}),preventStop:()=>({t:"event.prevent.stop"}),cacheStyleNode:()=>({t:"cache.styleNode"}),cacheFormatAttrsTemp:i=>({t:"cache.formatAttrsTemp",p:{attrs:i}}),componentDeselect:()=>({t:"component.deselect"}),editorNativeFocus:()=>({t:"focusManager.nativeFocus"}),historyPush:i=>({t:"history.push",p:i}),documentTypeRefreshHeader:()=>({t:"documentType.refreshHeader"}),selectionSetRange:(i,e,t,s)=>({t:"selection.setRange",p:{sc:i,so:e,ec:t,eo:s}}),formatRemoveBlock:(i,e,t,s,n)=>({t:"format.removeBlock",p:{rangeEl:i,selectedFormats:e,newBlockElement:t,shouldDelete:s,skipHistory:n}}),domUtilsRemoveItem:i=>({t:"dom.utils.removeItem",p:{item:i}}),selectComponentFallback:i=>({t:"select.component.fallback",p:{cmponentInfo:i}}),delFormatRemoveAndMove:(i,e)=>({t:"del.format.removeAndMove",p:{container:i,formatEl:e}}),backspaceFormatMaintain:i=>({t:"backspace.format.maintain",p:{formatEl:i}}),backspaceBrLineStrip:i=>({t:"backspace.brline.strip",p:{formatEl:i}}),backspaceComponentSelect:(i,e,t)=>({t:"backspace.component.select",p:{selectionNode:i,range:e,fileComponentInfo:t}}),backspaceComponentRemove:(i,e,t,s)=>({t:"backspace.component.remove",p:{isList:i,sel:e,formatEl:t,fileComponentInfo:s}}),backspaceListMergePrev:(i,e,t)=>({t:"backspace.list.mergePrev",p:{prev:i,formatEl:e,rangeEl:t}}),backspaceListRemoveNested:i=>({t:"backspace.list.removeNested",p:{range:i}}),backspaceEmptyLineMergePrev:(i,e)=>({t:"backspace.emptyLine.mergePrev",p:{formatEl:i,prev:e}}),backspaceBrLineRowMerge:(i,e)=>({t:"backspace.brline.rowMerge",p:{rowEndBr:i,rowStartBr:e}}),backspaceSoftBreakMerge:i=>({t:"backspace.softBreak.merge",p:{zws:i}}),deleteComponentSelect:(i,e)=>({t:"delete.component.select",p:{formatEl:i,fileComponentInfo:e}}),deleteComponentSelectNext:(i,e)=>({t:"delete.component.selectNext",p:{formatEl:i,nextEl:e}}),deleteListRemoveNested:(i,e,t)=>({t:"delete.list.removeNested",p:{range:i,formatEl:e,rangeEl:t}}),deleteEmptyLineMergeNext:(i,e)=>({t:"delete.emptyLine.mergeNext",p:{formatEl:i,next:e}}),deleteBrLineRowMerge:i=>({t:"delete.brline.rowMerge",p:{rowEndBr:i}}),deleteSoftBreakMerge:i=>({t:"delete.softBreak.merge",p:{br:i}}),mergeLineInto:(i,e)=>({t:"line.merge",p:{into:i,from:e}}),tabFormatIndent:(i,e,t)=>({t:"tab.format.indent",p:{range:i,formatEl:e,shift:t}}),caretScrollTo:i=>({t:"caret.scrollTo",p:{range:i}}),enterLineAddDefault:i=>({t:"enter.line.addDefault",p:{formatEl:i}}),enterListAddItem:(i,e)=>({t:"enter.list.addItem",p:{formatEl:i,selectionNode:e}}),enterFormatExitEmpty:(i,e)=>({t:"enter.format.exitEmpty",p:{formatEl:i,rangeEl:e}}),enterFormatCleanBrAndZWS:(i,e,t,s,n)=>({t:"enter.format.cleanBrAndZWS",p:{selectionNode:i,selectionFormat:e,brBlock:t,children:s,offset:n}}),enterFormatInsertBrHtml:(i,e,t,s)=>({t:"enter.format.insertBrHtml",p:{brBlock:i,range:e,wSelection:t,offset:s}}),enterFormatInsertBrNode:i=>({t:"enter.format.insertBrNode",p:{wSelection:i}}),enterBrLineInsert:i=>({t:"enter.brline.insert",p:{range:i}}),enterShiftBr:i=>({t:"enter.shift.br",p:{range:i}}),enterBrLineExit:i=>({t:"enter.brline.exit",p:{brBlock:i}}),enterFormatBreakAtEdge:(i,e,t,s,n)=>({t:"enter.format.breakAtEdge",p:{formatEl:i,selectionNode:e,formatStartEdge:t,formatEndEdge:s,bidiSwapped:n}}),enterFormatBreakWithSelection:(i,e,t,s)=>({t:"enter.format.breakWithSelection",p:{formatEl:i,range:e,formatStartEdge:t,formatEndEdge:s}}),enterFormatBreakAtCursor:(i,e)=>({t:"enter.format.breakAtCursor",p:{formatEl:i,range:e}}),enterFigcaptionExitInList:i=>({t:"enter.figcaption.exitInList",p:{formatEl:i}}),keydownInputInsertNbsp:()=>({t:"keydown.input.insertNbsp"}),keydownInputInsertZWS:()=>({t:"keydown.input.insertZWS"})};function mA(i,e,t){const{format:s,component:n}=e,{fc:r,options:l,range:c,selectionNode:d}=t;let{formatEl:h}=t;const f=!c.collapsed||c.startContainer!==c.endContainer,p=l.get("_rtl")&&!f&&c.startOffset===0&&bc(c,h,"front",r.get("_wd"));if(i.push(Y.componentDeselect()),i.push(Y.cacheStyleNode()),f&&Oy(e))return i.push(Y.preventStop()),i.push(Y.caretScrollTo(c)),!0;if(!s.isNormalLine(h)&&!s.isBrLine(h)&&!r.get("wysiwyg").firstElementChild&&!n.is(d)&&pA(e,l.get("defaultLine"))!==null)return i.push(Y.preventStop()),!1;if(s.isLine(h)&&f&&u.check.isEdgePoint(c.startContainer,c.startOffset,"front")&&(!c.startContainer.previousSibling||u.check.isZeroWidth(c.startContainer.previousSibling))&&s.getLine(c.startContainer)!==s.getLine(c.endContainer)&&(s.isLine(h.previousElementSibling)||u.check.isListCell(h)))return i.push(Y.preventStop()),i.push(Y.delFormatRemoveAndMove(c.startContainer,h)),i.push(Y.historyPush(!0)),i.push(Y.caretScrollTo(c)),!1;if(!f&&!p&&h&&s.isNormalLine(h)&&!u.check.isListCell(h)&&s.isEdgeLine(c.startContainer,c.startOffset,"front")){const b=gA(s,h);if(b)return i.push(Y.preventStop()),i.push(Y.mergeLineInto(b,h)),i.push(Y.historyPush(!0)),!1}if(!f&&!p&&!h.previousElementSibling&&c.startOffset===0&&!d.previousSibling&&!u.check.isListCell(h)&&s.isLine(h)&&(!s.isBrLine(h)||s.isClosureBrLine(h)||u.check.isWysiwygFrame(h.parentNode)))return s.isClosureBlock(h.parentNode)?(i.push(Y.preventStop()),!1):s.isBrLine(h)&&u.check.isWysiwygFrame(h.parentNode)?(i.push(Y.preventStop()),i.push(Y.backspaceBrLineStrip(h)),i.push(Y.historyPush(!0)),!1):(u.check.isWysiwygFrame(h.parentNode)&&h.childNodes.length<=1&&(!h.firstChild||u.check.isZeroWidth(h.textContent))&&(i.push(Y.preventStop()),i.push(Y.backspaceFormatMaintain(h))),i.push(Y.editorNativeFocus()),i.push(Y.caretScrollTo(c)),!1);const m=c.startContainer;if(h&&!p&&!h.previousElementSibling&&c.startOffset===0&&m.nodeType===3&&u.check.isZeroWidth(m)&&fA(e,m,h)===!0)return!0;if(!f&&h&&(c.startOffset===0||d===h)){const b=d===h?l1(e,c,!0):u.check.isElement(d.previousSibling)?d.previousSibling:u.check.isEdgePoint(c.startContainer,c.startOffset)?u.query.getPreviousDeepestNode(c.startContainer):null;if(n.is(b)){const w=n.get(b);if(w)return i.push(Y.preventStop()),i.push(Y.backspaceComponentSelect(d,c,w)),!0}}if(l1(e,c,!0))return i.push(Y.preventStop()),!0;!f&&!p&&s.isEdgeLine(c.startContainer,c.startOffset,"front")&&s.isLine(h.previousElementSibling)&&i.push(Y.cacheFormatAttrsTemp(h.previousElementSibling.attributes)),h=s.getLine(c.startContainer,null);const g=s.getBlock(h,null),y=c.commonAncestorContainer;if(g&&h&&!u.check.isTableCell(g)&&!/^FIGCAPTION$/i.test(g.nodeName)){if(u.check.isListCell(h)&&u.check.isList(g)&&(u.check.isListCell(g.parentElement)||h.previousElementSibling)&&(d===h||d.nodeType===3&&(!d.previousSibling||u.check.isList(d.previousSibling)))&&(s.getLine(c.startContainer,null)!==s.getLine(c.endContainer,null)?g.contains(c.startContainer):c.startOffset===0&&c.collapsed&&!p)){if(c.startContainer!==c.endContainer)i.push(Y.prevent()),i.push(Y.backspaceListRemoveNested(c)),i.push(Y.historyPush(!0));else{let b=h.previousElementSibling||g.parentElement;if(u.check.isListCell(b)){i.push(Y.prevent());let w=b;if(!b.contains(h)&&u.check.isListCell(w)&&u.check.isList(w.lastElementChild)){for(w=w.lastElementChild.lastElementChild;u.check.isListCell(w)&&u.check.isList(w.lastElementChild);)w=w.lastElementChild&&w.lastElementChild.lastElementChild;b=w}i.push(Y.backspaceListMergePrev(b,h,g)),i.push(Y.historyPush(!0))}}return i.push(Y.caretScrollTo(c)),!0}if(!f&&c.startOffset===0&&!p){let b=!0,w=y;for(;w&&w!==g&&!u.check.isWysiwygFrame(w);){if(w.previousSibling&&(w.previousSibling.nodeType===1||!u.check.isZeroWidth(w.previousSibling.textContent.trim()))){b=!1;break}w=w.parentNode}if(b&&g.parentNode)return i.push(Y.prevent()),i.push(Y.formatRemoveBlock(g,u.check.isListCell(h)?[h]:null,null,!1,!1)),i.push(Y.historyPush(!0)),i.push(Y.caretScrollTo(c)),!0}}if(!f&&h&&u.check.isEmptyLine(h)&&n.is(h.previousElementSibling)){const b=n.get(h.previousElementSibling);if(b)return i.push(Y.preventStop()),i.push(Y.backspaceComponentRemove(!1,h.firstChild,h,b)),i.push(Y.caretScrollTo(c)),!0}if(!f&&h&&(c.startOffset===0||d===h&&h.childNodes[c.startOffset])){const b=u.check.isListCell(h),w=d===h?h.childNodes[c.startOffset]:d,_=(b?w:h).previousSibling,x=b||(y.nodeType===3||u.check.isBreak(y))&&!y.previousSibling&&c.startOffset===0;if(w&&(b||!w.previousSibling)&&(y&&n.is(y.previousSibling)||x&&n.is(_))){const S=n.get(_);return S?(i.push(Y.preventStop()),i.push(Y.backspaceComponentRemove(b,w,h,S))):n.is(_)&&(i.push(Y.preventStop()),i.push(Y.domUtilsRemoveItem(_))),i.push(Y.caretScrollTo(c)),!0}if(w&&u.check.isNonEditable(w.previousSibling))return i.push(Y.preventStop()),i.push(Y.domUtilsRemoveItem(w.previousSibling)),i.push(Y.caretScrollTo(c)),!0}if(!f&&s.isBrLine(h)&&u.check.isBreak(c.startContainer)&&c.startOffset===0){let b=c.startContainer.previousSibling;if((b==null?void 0:b.nodeType)===3&&u.check.isZeroWidth(b)&&(b=b.previousSibling),u.check.isBreak(b))return i.push(Y.preventStop()),i.push(Y.backspaceBrLineRowMerge(c.startContainer,b)),i.push(Y.historyPush(!0)),i.push(Y.caretScrollTo(c)),!1}if(!f&&c.startContainer.nodeType===3&&u.check.isZeroWidth(c.startContainer)&&c.startOffset<=1&&u.check.isBreak(c.startContainer.previousSibling))return i.push(Y.preventStop()),i.push(Y.backspaceSoftBreakMerge(c.startContainer)),i.push(Y.historyPush(!0)),i.push(Y.caretScrollTo(c)),!1;const v=h==null?void 0:h.previousElementSibling;return!f&&h&&s.isNormalLine(h)&&!u.check.isListCell(h)&&u.check.isEmptyLine(h)&&(s.isNormalLine(v)||s.isBrLine(v))?(i.push(Y.preventStop()),i.push(Y.backspaceEmptyLineMergePrev(h,v)),i.push(Y.historyPush(!0)),i.push(Y.caretScrollTo(c)),!1):(i.push(Y.caretScrollTo(c)),!0)}function gA(i,e){let t=e.previousElementSibling;if(t){if(!i.isBlock(t))return null}else{const n=e.parentElement;if(!i.isBlock(n)||i.isClosureBlock(n)||(t=n.previousElementSibling,!t))return null}let s=t;for(;s&&i.isBlock(s)&&!i.isClosureBlock(s);)s=s.lastElementChild;return!i.isNormalLine(s)||u.check.isListCell(s)||i.isBrLine(s)||i.isClosureBrLine(s)?null:s}function vA(i,e,t){var g,y;const{format:s,component:n}=e,{fc:r,range:l,selectionNode:c}=t;let{formatEl:d}=t;const h=!l.collapsed||l.startContainer!==l.endContainer,f=t.options.get("_rtl")&&!h&&l.endOffset>=(((g=l.endContainer.textContent)==null?void 0:g.length)||0)&&bc(l,d,"end",r.get("_wd"));if(i.push(Y.componentDeselect()),i.push(Y.cacheStyleNode()),h&&Oy(e))return i.push(Y.preventStop()),!0;if(!h&&!f&&d&&s.isNormalLine(d)&&!u.check.isListCell(d)&&s.isEdgeLine(l.endContainer,l.endOffset,"end")){const v=yA(s,d);if(v)return i.push(Y.preventStop()),i.push(Y.mergeLineInto(d,v)),i.push(Y.historyPush(!0)),!1}if(!h&&!f&&s.isEdgeLine(l.endContainer,l.endOffset,"end")&&!d.nextSibling)return i.push(Y.preventStop()),!1;if(s.isLine(d)&&h&&u.check.isEdgePoint(l.endContainer,l.endOffset,"end")&&(!l.endContainer.nextSibling||u.check.isZeroWidth(l.endContainer.nextSibling))&&s.getLine(l.startContainer)!==s.getLine(l.endContainer)&&(s.isLine(d.nextElementSibling)||u.check.isListCell(d)))return i.push(Y.preventStop()),i.push(Y.delFormatRemoveAndMove(l.endContainer,d)),i.push(Y.historyPush(!0)),!1;if(!h&&d&&(l.endOffset===l.endContainer.textContent.length||c===d)){const v=c===d?l1(e,l,!1):u.check.isElement(c.nextSibling)?c.nextSibling:u.check.isEdgePoint(l.endContainer,l.endOffset)?u.query.getNextDeepestNode(l.endContainer,null):null;if(n.is(v)){const b=n.get(v);if(b)return i.push(Y.preventStop()),i.push(Y.deleteComponentSelect(d,b)),!0}}if(l1(e,l,!1))return i.push(Y.preventStop()),!0;if((s.isLine(c)||c.nextSibling===null||u.check.isZeroWidth(c.nextSibling)&&c.nextSibling.nextSibling===null)&&l.startOffset===c.textContent.length){const v=d.nextElementSibling;if(!v)return!0;if(n.is(v))return i.push(Y.prevent()),i.push(Y.deleteComponentSelectNext(d,v)),!0}if(!h&&(u.check.isEdgePoint(l.endContainer,l.endOffset)||c===d&&d.childNodes[l.startOffset])){const v=c===d&&d.childNodes[l.startOffset]||c;if(v&&u.check.isNonEditable(v.nextSibling))return i.push(Y.preventStop()),i.push(Y.domUtilsRemoveItem(v.nextSibling)),!0;if(n.is(v))return i.push(Y.preventStop()),i.push(Y.domUtilsRemoveItem(v)),!0}!h&&!f&&s.isEdgeLine(l.endContainer,l.endOffset,"end")&&s.isLine(d.nextElementSibling)&&i.push(Y.cacheFormatAttrsTemp(d.attributes)),d=s.getLine(l.startContainer,null);const p=s.getBlock(d,null);if(u.check.isListCell(d)&&u.check.isList(p)&&(c===d||c.nodeType===3&&(!c.nextSibling||u.check.isList(c.nextSibling))&&(s.getLine(l.startContainer,null)!==s.getLine(l.endContainer,null)?p.contains(l.endContainer):l.endOffset===c.textContent.length&&l.collapsed&&!f)))return i.push(Y.deleteListRemoveNested(l,d,p)),!0;if(!h&&s.isBrLine(d)&&u.check.isBreak(l.startContainer)&&l.startOffset===0){let v=l.startContainer.previousSibling;if((v==null?void 0:v.nodeType)===3&&u.check.isZeroWidth(v)&&(v=v.previousSibling),u.check.isBreak(v))return i.push(Y.preventStop()),i.push(Y.deleteBrLineRowMerge(l.startContainer)),i.push(Y.historyPush(!0)),!1}if(!h){const v=l.startContainer;let b=null;if(v.nodeType===3&&l.startOffset>=v.textContent.length&&u.check.isBreak(v.nextSibling)){const w=v.nextSibling;((y=w.nextSibling)==null?void 0:y.nodeType)===3&&u.check.isZeroWidth(w.nextSibling.textContent)&&(b=w)}else v.nodeType===3&&u.check.isZeroWidth(v)&&l.startOffset===0&&u.check.isBreak(v.previousSibling)&&(b=v.previousSibling);if(b)return i.push(Y.preventStop()),i.push(Y.deleteSoftBreakMerge(b)),i.push(Y.historyPush(!0)),!1}const m=d==null?void 0:d.nextElementSibling;return!h&&d&&s.isNormalLine(d)&&!u.check.isListCell(d)&&u.check.isEmptyLine(d)&&(s.isNormalLine(m)||s.isBrLine(m))?(i.push(Y.preventStop()),i.push(Y.deleteEmptyLineMergeNext(d,m)),i.push(Y.historyPush(!0)),!1):!0}function yA(i,e){let t=e.nextElementSibling;if(t){if(!i.isBlock(t))return null}else{const n=e.parentElement;if(!i.isBlock(n)||i.isClosureBlock(n)||(t=n.nextElementSibling,!t))return null}let s=t;for(;s&&i.isBlock(s)&&!i.isClosureBlock(s);)s=s.firstElementChild;return!i.isNormalLine(s)||u.check.isListCell(s)||i.isBrLine(s)||i.isClosureBrLine(s)?null:s}function bA(i,e){const t=Array.from(i.childNodes),s=[[]];for(const f of t)u.check.isBreak(f)?s.push([]):s[s.length-1].push(f);t.length&&u.check.isBreak(t[t.length-1])&&s.pop();const n=f=>!f||f.every(p=>u.check.isZeroWidth(p.textContent)),r=e.anchorNode;let l=0;if(r===i)for(let f=0;f<e.anchorOffset&&f<t.length;f++)u.check.isBreak(t[f])&&l++;else for(const f of t){if(f===r||f.nodeType===1&&f.contains(r))break;u.check.isBreak(f)&&l++}const c=Math.max(s.length,1),d=Math.min(l,c-1);return{shouldExit:d===c-1&&n(s[d])&&d>=1&&n(s[d-1])}}function Ry(i,e,t){const{format:s,char:n,selection:r}=e,{frameOptions:l,range:c,formatEl:d,selectionNode:h,shift:f,e:p}=t,m=!c.collapsed||c.startContainer!==c.endContainer;i.push(Y.componentDeselect());const g=s.getBrLine(h,null),y=s.getBlock(d,null);if(l.get("charCounter_type")==="byte-html"){let v="";if(!f&&g||f?v="<br>":v="<"+d.nodeName+"><br></"+d.nodeName+">",!n.check(v))return i.push(Y.prevent()),!1}if(f)return e.enterPrevent(p),i.push(Y.enterShiftBr(c)),i.push(Y.caretScrollTo(c)),!0;if(!f){let v=s.isEdgeLine(c.endContainer,c.endOffset,"end"),b=s.isEdgeLine(c.startContainer,c.startOffset,"front"),w=!1;if(t.options.get("_rtl")&&d&&c.collapsed&&b!==v){const _=t.fc.get("_wd");b&&bc(c,d,"front",_)?(b=!1,v=!0,w=!0):v&&bc(c,d,"end",_)&&(v=!1,b=!0,w=!0)}if(v&&(/^H[1-6]$/i.test(d.nodeName)||/^HR$/i.test(d.nodeName)))return e.enterPrevent(p),i.push(Y.enterLineAddDefault(d)),i.push(Y.caretScrollTo(c)),!0;if(y&&d&&!u.check.isTableCell(y)&&!/^FIGCAPTION$/i.test(y.nodeName)){const _=r.getRange();if(u.check.isEdgePoint(_.endContainer,_.endOffset)&&u.check.isList(h.nextSibling))return e.enterPrevent(p),i.push(Y.enterListAddItem(d,h)),i.push(Y.caretScrollTo(c)),!0;if((_.commonAncestorContainer.nodeType!==3||!_.commonAncestorContainer.nextElementSibling)&&u.check.isZeroWidth(d.innerText.trim())&&!u.check.isListCell(d.nextElementSibling))return e.enterPrevent(p),i.push(Y.enterFormatExitEmpty(d,y)),!0}if(g||y===d&&s.isClosureBlock(y)&&s.isLine(d)){if(e.enterPrevent(p),g&&!s.isClosureBrLine(g))return bA(g,r.get()).shouldExit?i.push(Y.enterBrLineExit(g)):i.push(Y.enterBrLineInsert(c)),i.push(Y.caretScrollTo(c)),!0;const _=r.get();return h===g?i.push(Y.enterFormatInsertBrHtml(g,c,_,_.focusOffset)):i.push(Y.enterFormatInsertBrNode(_)),i.push(Y.caretScrollTo(c)),!0}if(c.collapsed&&(b||v))return e.enterPrevent(p),i.push(Y.enterFormatBreakAtEdge(d,h,b,v,w)),i.push(Y.caretScrollTo(c)),!0;if(d){if(i.push(Y.prevent()),m){if(t.options.get("_rtl")&&b&&!v){const _=t.fc.get("_wd"),x=_.createRange();x.setStart(c.startContainer,c.startOffset),x.collapse(!0),bc(x,d,"front",_)&&(b=!1,v=!0,w=!0)}i.push(Y.enterFormatBreakWithSelection(d,c,b,v))}else i.push(Y.enterFormatBreakAtCursor(d,c));return i.push(Y.caretScrollTo(c)),!0}}return m?(i.push(Y.caretScrollTo(c)),!0):(y&&u.query.getParentElement(y,"FIGCAPTION")&&u.query.getParentElement(y,u.check.isList)&&(e.enterPrevent(p),i.push(Y.enterFigcaptionExitInList(d)),i.push(Y.caretScrollTo(c))),!0)}function CA(i,e,t){const{options:s,selectionNode:n,range:r,formatEl:l,ctrl:c,alt:d,shift:h}=t;return s.get("tabDisable")||(i.push(Y.prevent()),c||d||u.check.isWysiwygFrame(n))||(i.push(Y.tabFormatIndent(r,l,h)),i.push(Y.historyPush(!1))),!0}function wA(i,e,t){var p;const{component:s}=e,{formatEl:n,range:r,selectionNode:l,keyCode:c}=t,d=t.options.get("_rtl"),h=c==="ArrowLeft"?d?"forward":"back":c==="ArrowRight"?d?"back":"forward":null;let f=null;switch(c){case"ArrowUp":s.is(n.previousElementSibling)&&(f=s.get(n.previousElementSibling));break;case"ArrowLeft":case"ArrowRight":if(h==="forward"){if(u.check.isEdgePoint(l,r.endOffset,"end")){const m=l.nextElementSibling||u.query.getNextDeepestNode(l);m?s.is(m)&&(f=s.get(m)):s.is(n.nextElementSibling)&&(f=s.get(n.nextElementSibling))}}else if(h==="back"&&u.check.isEdgePoint(l,r.startOffset,"front")){const m=l.previousElementSibling||u.query.getPreviousDeepestNode(l);m?s.is(m)&&(f=s.get(m)):s.is(n.previousElementSibling)&&(f=s.get(n.previousElementSibling))}break;case"ArrowDown":s.is(n.nextElementSibling)&&(f=s.get(n.nextElementSibling));break}f&&!((p=f.options)!=null&&p.isInputComponent)&&(i.push(Y.prevent()),i.push(Y.selectComponentFallback(f)))}const{isOSX_IOS:_A}=pe,kA=!0;function c1(i,e){return kA&&i.get("_canUseBeforeInput")&&!(e!=null&&e.repeat)}async function xA(i,e){const t=[];switch(e.keyCode){case"Backspace":{if(mA(t,i,e)===!1)return t;break}case"Delete":{if(vA(t,i,e)===!1)return t;break}case"Tab":{if(CA(t,i,e)===!1)return t;break}case"Enter":{if(!c1(e.store,e.e)&&Ry(t,i,e)===!1)return t;break}}const{fc:s,keyCode:n,shift:r,alt:l,ctrl:c,range:d}=e;if(r&&(_A?l:c)&&Ee.isSpace(n))return t.push(Y.preventStop()),t.push(Y.keydownInputInsertNbsp()),t;const h=!d.collapsed||d.startContainer!==d.endContainer;return!c&&!l&&!h&&!Ee.isNonTextKey(n)&&u.check.isBreak(d.commonAncestorContainer)?(t.push(Y.keydownInputInsertZWS()),t):s.has("documentType_use_header")&&h&&!c&&!l&&!r&&!Ee.isDirectionKey(n)?(t.push(Y.documentTypeRefreshHeader()),t):(wA(t,i,e),t)}function Iy(i,{_styleNodes:e}){const{frameContext:t,ui:s,focusManager:n,selection:r,format:l,listFormat:c,component:d,html:h,nodeTransform:f,history:p,char:m,menu:g,store:y}=i.$;return{focusManager:{nativeFocus:()=>n.nativeFocus(),blur:()=>n.blur()},selection:{getRange:()=>r.getRange(),getNode:()=>r.getNode(),setRange:(v,b,w,_)=>r.setRange(v,b,w,_),get:()=>r.get()},format:{isLine:v=>l.isLine(v),getLine:(v,b)=>l.getLine(v,b),getLines:v=>l.getLines(v),getBrLine:(v,b)=>l.getBrLine(v,b),getBlock:(v,b)=>l.getBlock(v,b),isNormalLine:v=>l.isNormalLine(v),isBrLine:v=>l.isBrLine(v),isClosureBrLine:v=>l.isClosureBrLine(v),isBlock:v=>l.isBlock(v),isClosureBlock:v=>l.isClosureBlock(v),isEdgeLine:(v,b,w)=>l.isEdgeLine(v,b,w),removeBlock:(v,b)=>l.removeBlock(v,b),addLine:(v,b)=>l.addLine(v,b),addLineAfter:v=>l.addLineAfter(v)},listFormat:{applyNested:(v,b)=>c.applyNested(v,b)},component:{deselect:()=>d.deselect(),is:v=>d.is(v),get:v=>d.get(v),select:(v,b)=>d.select(v,b)},html:{remove:()=>h.remove(),insert:(v,b)=>h.insert(v,b),insertNode:(v,b)=>h.insertNode(v,b)},history:{push:v=>p.push(!!v)},nodeTransform:{removeAllParents:(v,b,w)=>f.removeAllParents(v,b,w),split:(v,b,w)=>f.split(v,b,w)},char:{check:v=>m.check(v)},menu:{dropdownOff:()=>g.dropdownOff()},setDefaultLine:v=>i._setDefaultLine(v),hideToolbar:()=>i._hideToolbar(),hideToolbar_sub:()=>i._hideToolbar_sub(),styleNodeCache:()=>e.value=i.__cacheStyleNodes,formatAttrsTempCache:v=>i._formatAttrsTemp=v,setOnShortcutKey:v=>i._onShortcutKey=v,caretScrollTo(v){s._iframeAutoHeight(t),r.scrollTo(r.getRange()||v,{behavior:"auto",block:"nearest",inline:"nearest"})},enterPrevent(v){v.preventDefault(),!(!bv||c1(y))&&(i.__focusTemp.focus({preventScroll:!0}),t.get("wysiwyg").focus({preventScroll:!0}))}}}const EA={value:[]};async function TA(i,e){if(i.get("isReadOnly")||i.get("isDisabled"))return e.preventDefault(),e.stopPropagation(),!1;if(c1(this.$.store)&&(e.inputType==="insertParagraph"||e.inputType==="insertLineBreak")){await SA.call(this,i,e);return}const t=(e.data===null?"":e.data===void 0?" ":e.data)||"";if(Ee.isComposing(e))this._handledInBefore=!1;else{if(!this.$.char.test(t,!1))return e.preventDefault(),e.stopPropagation(),!1;this._handledInBefore=!0}await this.$.eventManager.triggerEvent("onBeforeInput",{frameContext:i,event:e,data:t})!==!1&&await this._callPluginEventAsync("onBeforeInput",{frameContext:i,event:e,data:t})}async function SA(i,e){if(e.isComposing||this.isComposing||this.$.ui.selectMenuOn)return;let t=this.$.selection.getNode();if(u.check.isInputElement(t)||this.$.menu.currentDropdownName)return;u.check.isWysiwygFrame(t)&&(this._setDefaultLine(this.$.options.get("defaultLine")),t=this.$.selection.getNode());const s=this._enterKeyShift||e.inputType==="insertLineBreak";if(this._enterKeyShift=!1,!s){const h=this._normalizeEditRange();h&&(t=h)}const n=this.$.selection.getRange(),r=this.$.format.getLine(t,null)||t,l={e,fc:i,store:this.$.store,options:this.$.options,frameOptions:this.$.frameOptions,range:n,selectionNode:t,formatEl:r,keyCode:"Enter",ctrl:!1,alt:!1,shift:s},c=Iy(this,{_styleNodes:EA}),d=[];Ry(d,c,l),d.some(h=>h.t==="event.prevent"||h.t==="event.prevent.stop")&&e.preventDefault(),await $y(d,{ports:c,ctx:l})}async function MA(i,e){if(i.get("isReadOnly")||i.get("isDisabled"))return e.preventDefault(),e.stopPropagation(),!1;const t=this.$.selection.getRange(),s=this.$.selection.getNode(),n=this.$.format.getLine(s,null);if(!this.$.format.isNormalLine(n)&&!this.$.format.isBrLine(n)&&t.collapsed&&!this.$.component.is(s)&&!u.check.isList(s)){const l=this.$.format.getBlock(s,null);this._setDefaultLine(this.$.format.isBlock(l)?"DIV":this.$.options.get("defaultLine"))}this.$.selection.init();const r=(e.data===null?"":e.data===void 0?" ":e.data)||"";if(!this._handledInBefore&&!this.$.char.test(r,!0))return e.preventDefault(),e.stopPropagation(),!1;this._handledInBefore=!1,await this.$.eventManager.triggerEvent("onInput",{frameContext:i,event:e,data:r})!==!1&&(await this._callPluginEventAsync("onInput",{frameContext:i,event:e,data:r}),this.$.history.push(!0))}const{_w:Dy}=pe,BA=new RegExp(Oe.zeroWidthSpace+"+",""),Wr={ctrl:!1,alt:!1},d1=Object.preventExtensions({value:[]});async function NA(i,e){var g,y;if(this.isComposing=Ee.isComposing(e))return!0;if(this.$.ui.selectMenuOn||!e.isTrusted)return;let t=this.$.selection.getNode();if(u.check.isInputElement(t)||this.$.menu.currentDropdownName)return;const s=e.code,n=Ee.isShift(e),r=Wr.ctrl=Ee.isCtrl(e),l=Wr.alt=Ee.isAlt(e);if(Ee.isEnter(s)&&(this._enterKeyShift=n),!r&&i.get("isReadOnly")&&!Ee.isDirectionKey(s))return e.preventDefault(),!1;if(this.$.menu.dropdownOff(),this.$.store.mode.isBalloon?this.$.store.mode.isBalloonAlways||this._hideToolbar():this.$.store.mode.isSubBalloon&&(this.$.store.mode.isSubBalloonAlways||this._hideToolbar_sub()),Ee.isEnter(s)&&!c1(this.$.store,e)||Ee.isRemoveKey(s)){const v=this._normalizeEditRange();v&&(t=v)}const d=this.$.selection.getRange(),h=this.$.format.getLine(t,null)||t;if(r&&!Ee.isNonTextKey(s)&&this.$.shortcuts.command(e,r,n,s,"",!1,null,null))return this._onShortcutKey=!0,e.preventDefault(),e.stopPropagation(),!1;if(!r&&!Ee.isNonTextKey(s)&&this.$.format.isLine(h)&&d.collapsed&&u.check.isEdgePoint(d.startContainer,0,"front")){const v=(y=(g=d.startContainer).substringData)==null?void 0:y.call(g,0,d.startOffset);if(v&&this.$.shortcuts.command(e,!1,n,s,v,!0,h,d))return this._onShortcutKey=!0,e.preventDefault(),e.stopPropagation(),!1}else this._onShortcutKey&&(this._onShortcutKey=!1);const f={e,fc:i,store:this.$.store,options:this.$.options,frameOptions:this.$.frameOptions,range:d,selectionNode:t,formatEl:h,keyCode:s,ctrl:r,alt:l,shift:n},p=Iy(this,{_styleNodes:d1}),m=await xA(p,f);await this.$.eventManager.triggerEvent("onKeyDown",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onKeyDown",{frameContext:i,event:e,range:d,line:h})!==!1&&await $y(m,{ports:p,ctx:f})}async function LA(i,e){var p;if(this._onShortcutKey||this.$.menu.currentDropdownName)return;const t=e.code,s=Ee.isCtrl(e),n=Ee.isAlt(e);if(s&&(Wr.ctrl=!1),n&&(Wr.alt=!1),i.get("isReadOnly"))return;const r=this.$.selection.getRange();let l=this.$.selection.getNode();if((this.$.store.mode.isBalloon||this.$.store.mode.isSubBalloon)&&((this.$.store.mode.isBalloonAlways||this.$.store.mode.isSubBalloonAlways)&&!Ee.isEsc(t)||!r.collapsed))if(this.$.store.mode.isBalloonAlways||this.$.store.mode.isSubBalloonAlways)Ee.isEsc(t)||this._showToolbarBalloonDelay();else{this.$.store.mode.isSubBalloon?this.$.subToolbar._showBalloon():this.$.toolbar._showBalloon();return}if(Ee.isBackspace(t)&&u.check.isWysiwygFrame(l)&&l.textContent===""&&l.children.length===0){e.preventDefault(),e.stopPropagation(),l.innerHTML="";const m=this.$.store.get("currentNodes")[0],g=u.utils.createElement(this.$.format.isLine(m)&&!u.check.isListCell(m)?m:this.$.options.get("defaultLine"),null,"<br>");l.appendChild(g),this.$.selection.setRange(g,0,g,0),this.applyTagEffect(),this.$.history.push(!1),i.has("documentType_use_header")&&Ee.isDocumentTypeObserverKey(t)&&i.get("documentType").reHeader();return}const c=this.$.format.getLine(l,null),d=this.$.format.getBlock(l,null),h=this._formatAttrsTemp;if(c&&h){for(let m=0,g=h.length;m<g;m++){if(Ee.isEnter(t)&&/^id$/i.test(h[m].name)){c.removeAttribute("id");continue}c.setAttribute(h[m].name,h[m].value)}this._formatAttrsTemp=null}if(!this.$.format.isNormalLine(c)&&!this.$.format.isBrLine(c)&&r.collapsed&&!this.$.component.is(l)&&!u.check.isList(l)&&this._setDefaultLine(this.$.format.isBlock(d)?"DIV":this.$.options.get("defaultLine"))!==null&&(l=this.$.selection.getNode()),!Wr.ctrl&&!Wr.alt&&!Ee.isNonTextKey(t)&&l.nodeType===3&&Oe.zeroWidthRegExp.test(l.textContent)&&!(e.isComposing!==void 0?e.isComposing:this.isComposing)){let m=r.startOffset,g=r.endOffset;const y=(l.textContent.substring(0,g).match(BA)||"").length;m=r.startOffset-y,g=r.endOffset-y,l.textContent=l.textContent.replace(Oe.zeroWidthRegExp,""),this.$.selection.setRange(l,m<0?0:m,l,g<0?0:g)}if(Ee.isRemoveKey(t)&&u.check.isZeroWidth(c==null?void 0:c.textContent)&&!c.previousElementSibling&&!u.check.isListCell(c)){const m=this.$.options.get("retainStyleMode");m!=="none"&&((p=d1.value)==null?void 0:p.length)>0?m==="repeat"?this.__retainTimer?(this.__retainTimer=Dy.clearTimeout(this.__retainTimer),this._clearRetainStyleNodes(c)):(this.__retainTimer=Dy.setTimeout(()=>{this.__retainTimer=null},0),this._retainStyleNodes(c,d1.value)):(this.__retainTimer=null,this._retainStyleNodes(c,d1.value)):this._clearRetainStyleNodes(c)}if(i.has("documentType_use_header"))if(Ee.isDocumentTypeObserverKey(t)){i.get("documentType").reHeader();const m=u.query.getParentElement(this.$.selection.selectionNode,this.$.format.isLine.bind(this.$.format));i.get("documentType").on(m)}else{const m=u.query.getParentElement(l,g=>g.nodeType===1);i.get("documentType").onChangeText(m)}await this.$.eventManager.triggerEvent("onKeyUp",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onKeyUp",{frameContext:i,event:e,range:r,line:c})!==!1&&Ee.isHistoryRelevantKey(t)&&this.$.history.push(!0)}const{_w:AA}=pe;function $A(i,e){const t=e.clipboardData;return t?this._dataTransferAction("paste",e,t,i):!0}async function OA(i,e){const t=e.clipboardData;if(await this.$.eventManager.triggerEvent("onCopy",{frameContext:i,event:e,clipboardData:t})===!1)return e.preventDefault(),e.stopPropagation(),!1;const s=i.get("_ww").getSelection();this.__secopy=s.toString()}async function VA(i,e){const t=e.clipboardData;if(await this.$.eventManager.triggerEvent("onCut",{frameContext:i,event:e,clipboardData:t})===!1)return e.preventDefault(),e.stopPropagation(),!1;const s=i.get("_ww").getSelection();this.__secopy=s.toString(),AA.setTimeout(()=>{this.$.history.push(!1)},0)}const{_w:h1}=pe;function RA(i,e,t,s,n){var m,g;if(n.dataTransfer&&Array.from(n.dataTransfer.types||[]).includes("application/x-suneditor-block-drag"))return;const{sc:r,so:l,ec:c,eo:d}=this.$.selection.getDragEventLocationRange(n);if(!r)return;n.preventDefault();const h=i.get("_wd").createRange();h.setStart(r,l),h.setEnd(c,d);const f={y:0,x:0};if(t){const y=this.$.offset.getGlobal(t),v=s?this.$.context.get("toolbar_main").offsetHeight:0;f.y=y.top+v-h1.scrollY,f.x=y.left-h1.scrollX}const p=h.getBoundingClientRect();if(p.height>0){const y=i.get("wysiwygFrame");let v=0,b=0;/^iframe$/i.test(y.nodeName)&&(v=y.offsetLeft,b=y.offsetTop),e.style.left=`${p.right+h1.scrollX+f.x+v}px`,e.style.top=`${p.top+h1.scrollY+f.y-5+b}px`,e.style.height=`${p.height+10}px`,e.style.display="block";try{(m=e.showPopover)==null||m.call(e)}catch{}}else{try{(g=e.hidePopover)==null||g.call(e)}catch{}e.style.display="none"}}function IA(i){var e;try{(e=i.hidePopover)==null||e.call(i)}catch{}i.style.display="none"}function DA(i,e,t){var s;try{if(i.get("isReadOnly"))return t.preventDefault(),t.stopPropagation(),!1;const n=t.dataTransfer;if(!n)return!0;if(Array.from(n.types||[]).includes("application/x-suneditor-block-drag"))return;const{sc:r,so:l,ec:c,eo:d}=this.$.selection.getDragEventLocationRange(t);if(!r)return;if(u.query.getParentElement(r,".se-disable-pointer")){t.preventDefault();return}if(ve.get("__dragContainer")){if(t.preventDefault(),ve.get("__dragContainer").contains(t.target)){this.$.component.deselect();return}const h=ve.get("__dragContainer");this.$.component.deselect(),this.$.selection.setRange(r,l,c,d),this.$.html.insertNode(h,{afterNode:null,skipCharCount:!0}),i.has("documentType_use_page")&&(i.get("documentTypePageMirror").innerHTML=i.get("wysiwyg").innerHTML,i.get("documentType").rePage(!0));return}return this.$.html.remove(),this.$.selection.setRange(r,l,c,d),this._dataTransferAction("drop",t,n,i)}finally{try{(s=e.hidePopover)==null||s.call(e)}catch{}e.style.display="none"}}class PA{constructor({$:e}){C(this,Re,void 0);k(this,Re,e)}execute(e){if(!o(this,Re).options.get("__lineFormatFilter"))return null;if(o(this,Re).pluginManager.fileInfo.pluginRegExp.test(o(this,Re).ui.currentControllerName))return;const t=o(this,Re).selection.getRange(),s=t.commonAncestorContainer,n=t.startContainer,r=t.endOffset,l=o(this,Re).format.getBlock(s,null);let c,d,h;if(l){h=u.utils.createElement(e||o(this,Re).options.get("defaultLine")),h.innerHTML=l.innerHTML,h.childNodes.length===0&&(h.innerHTML=Oe.zeroWidthSpace),l.innerHTML=h.outerHTML,h=l.firstChild,c=h.childNodes[r]||u.query.getEdgeChildNodes(h,null).sc,c||(c=u.utils.createTextNode(Oe.zeroWidthSpace),h.insertBefore(c,h.firstChild)),d=c.textContent.length,o(this,Re).selection.setRange(c,d,c,d);return}if(s.nodeType===3&&o(this,Re).component.is(s.parentElement)){const f=o(this,Re).component.get(s.parentElement);if(!f)return;const p=f.container;if(s.parentElement===p){const m=s.nextElementSibling?p:p.nextElementSibling,g=u.utils.createElement(o(this,Re).options.get("defaultLine"),null,s);p.parentElement.insertBefore(g,m),o(this,Re).focusManager.focusEdge(g);return}return o(this,Re).component.select(f.target,f.pluginName),null}else if(s.nodeType===1&&s.getAttribute("data-se-embed")==="true"){let f=s.nextElementSibling;o(this,Re).format.isLine(f)||(f=o(this,Re).format.addLine(s,o(this,Re).options.get("defaultLine"))),o(this,Re).selection.setRange(f.firstChild,0,f.firstChild,0);return}if(!((o(this,Re).format.isBlock(n)||u.check.isWysiwygFrame(n))&&(o(this,Re).component.is(n.children[t.startOffset])||o(this,Re).component.is(n.children[t.startOffset-1])))){if(u.query.getParentElement(s,u.check.isExcludeFormat))return null;if(o(this,Re).format.isBlock(s)&&s.childNodes.length<=1){let f=null;s.childNodes.length===1&&u.check.isBreak(s.firstChild)?f=s.firstChild:(f=u.utils.createTextNode(Oe.zeroWidthSpace),s.appendChild(f)),o(this,Re).selection.setRange(f,1,f,1);return}try{if(s.nodeType===3&&(h=u.utils.createElement(e||o(this,Re).options.get("defaultLine")),s.parentNode.insertBefore(h,s),h.appendChild(s)),u.check.isBreak(h.nextSibling)&&u.utils.removeItem(h.nextSibling),u.check.isBreak(h.previousSibling)&&u.utils.removeItem(h.previousSibling),u.check.isBreak(c)){const f=u.utils.createTextNode(Oe.zeroWidthSpace);c.parentNode.insertBefore(f,c),c=f}}catch{o(this,Re).frameContext.get("_wd").execCommand("formatBlock",!1,`<${e||o(this,Re).options.get("defaultLine")}>`),o(this,Re).store.set("_lastSelectionNode",null),o(this,Re).selection.init();return}if(h&&(u.check.isBreak(h.nextSibling)&&u.utils.removeItem(h.nextSibling),u.check.isBreak(h.previousSibling)&&u.utils.removeItem(h.previousSibling),u.check.isBreak(c))){const f=u.utils.createTextNode(Oe.zeroWidthSpace);c.parentNode.insertBefore(f,c),c=f}o(this,Re).store.set("_lastSelectionNode",null),n?o(this,Re).selection.setRange(n,1,n,1):o(this,Re).focusManager.nativeFocus()}}}Re=new WeakMap;class HA{constructor(e){C(this,zh);C(this,Gp);C(this,Hh,void 0);C(this,Ie,void 0);C(this,Fh,void 0);k(this,Hh,e),k(this,Ie,e.$),k(this,Fh,new RegExp(`^(${Object.keys(o(this,Ie).options.get("_defaultStyleTagMap")).join("|")})$`,"i"))}update(e){if(e||(e=o(this,Ie).selection.getNode()),e===o(this,Ie).store.get("_lastSelectionNode"))return;o(this,Ie).store.set("_lastSelectionNode",e);const t=o(this,Ie).options.get("_rtl")?"marginRight":"marginLeft",s=o(this,Ie).plugins,n=o(this,Ie).commandDispatcher.targets,r=o(this,Fh),l=o(this,Ie).options.get("_styleCommandMap"),c=[],d=[],h=o(this,Ie).options.get("_textStyleTags"),f=[],p=[],m=o(this,Ie).commandDispatcher.activeCommands,g=m.length;let y="";if(o(this,Ie).component.is(e)&&!o(this,Ie).component.__selectionSelected){const w=o(this,Ie).component.get(e);if(!w)return;o(this,Ie).store.set("_lastSelectionNode",null),o(this,Ie).component.select(w.target,w.pluginName);return}for(;e.firstChild;)e=e.firstChild;const v=o(this,Ie).frameContext,b=!v.get("isReadOnly");for(let w=e;!u.check.isWysiwygFrame(w)&&w;w=w.parentElement)if(!(w.nodeType!==1||u.check.isBreak(w))){if(E(this,Gp,$5).call(this,w)){o(this,Ie).focusManager.blur();return}if(y=w.nodeName.toLowerCase(),d.push(y),h.includes(y)&&!o(this,Ie).format.isLine(y)&&f.push(w),b)for(let _=0,x;_<g;_++)x=m[_],!c.includes(x)&&!p.includes(x)&&n.get(x)&&n.get(x).filter(S=>{var T;const M=(T=s[x])==null?void 0:T.active(w,S);return M===void 0&&p.push(x),M}).length>0&&c.push(x);if(o(this,Ie).format.isLine(w)){if(!c.includes("outdent")&&n.has("outdent")&&(u.check.isListCell(w)||w.style[t]&&X.get(w.style[t],0)>0)&&n.get("outdent").filter(_=>u.check.isImportantDisabled(_)?!1:(_.disabled=!1,!0)).length>0&&c.push("outdent"),!c.includes("indent")&&n.has("indent")){const _=u.check.isListCell(w)&&!w.previousElementSibling;n.get("indent").filter(x=>u.check.isImportantDisabled(x)?!1:(x.disabled=_,!0)).length>0&&c.push("indent")}continue}r.test(y)&&(y=l[y]||y,c.push(y),u.utils.addClass(n.get(y),"active"))}return E(this,zh,a2).call(this,c),o(this,Hh).__cacheStyleNodes=f.reverse(),o(this,Ie).store.set("currentNodes",d.reverse()),o(this,Ie).store.set("currentNodesMap",c),o(this,Ie).frameOptions.get("statusbar_showPathLabel")&&v.get("navigation")&&(v.get("navigation").textContent=o(this,Ie).options.get("_rtl")?o(this,Ie).store.get("currentNodes").reverse().join(" < "):o(this,Ie).store.get("currentNodes").join(" > ")),e}reset(){E(this,zh,a2).call(this,[])}}Hh=new WeakMap,Ie=new WeakMap,Fh=new WeakMap,zh=new WeakSet,a2=function(e){const t=o(this,Ie).commandDispatcher.activeCommands,s=o(this,Ie).commandDispatcher.targets,n=o(this,Ie).plugins;for(let r=0,l=t.length,c,d,h;r<l;r++)if(c=t[r],!(e.includes(c)||!(d=s.get(c)))){h=n[c];for(let f=0,p=d.length,m;f<p;f++)m=d[f],m&&(h?h.active(null,m):/^outdent$/i.test(c)?u.check.isImportantDisabled(m)||(m.disabled=!0):/^indent$/i.test(c)?u.check.isImportantDisabled(m)||(m.disabled=!1):u.utils.removeClass(m,"active"))}},Gp=new WeakSet,$5=function(e){return u.check.isElement(e)&&e.getAttribute("data-se-non-focus")==="true"};const{_w:wt,isMobile:Wg,isTouchDevice:Ug}=pe;class FA extends XL{constructor(t){super(t);C(this,Yp);C(this,Kp);C(this,_r);C(this,Xp);C(this,Qp);C(this,Jp);C(this,em);C(this,tm);C(this,im);C(this,sm);C(this,jh);C(this,nm);C(this,om);C(this,rm);C(this,am);C(this,lm);C(this,cm);C(this,dm);C(this,hm);C(this,be,void 0);C(this,ws,void 0);C(this,si,void 0);C(this,Dt,void 0);C(this,ie,void 0);C(this,nt,void 0);C(this,ot,void 0);C(this,Pt,void 0);C(this,qt,null);C(this,Zn,null);C(this,Gn,null);C(this,Yn,null);k(this,be,this.$.store),k(this,ws,this.$.contextProvider),k(this,si,this.$.context),k(this,Dt,this.$.options),k(this,ie,this.$.eventManager),k(this,nt,this.$.toolbar),k(this,ot,this.$.ui),k(this,Pt,this.$.menu),this.isComposing=!1,this._enterKeyShift=!1,this.scrollparents=[],this.defaultLineManager=new PA(this),this.selectionState=new HA(this),this._onShortcutKey=!1,this._handledInBefore=!1,this._wwFrameObserver=null,this._toolbarObserver=null,this._lineBreakComp=null,this._formatAttrsTemp=null,this._resizeClientY=0,this.__cacheStyleNodes=[],this.__onDownEv=null,this._inputFocus=!1,this.__inputPlugin=null,this.__inputBlurEvent=null,this.__inputKeyEvent=null,this.__retainTimer=null,this.__eventDoc=null,this.__secopy=null,this.__focusTemp=o(this,ws).carrierWrapper.querySelector(".__se__focus__temp__")}applyTagEffect(t){return this.selectionState.update(t)}_showToolbarBalloonDelay(){o(this,qt)&&wt.clearTimeout(o(this,qt)),k(this,qt,wt.setTimeout(()=>{wt.clearTimeout(o(this,qt)),k(this,qt,null),o(this,be).mode.isSubBalloon?this.$.subToolbar._showBalloon():o(this,nt)._showBalloon()},250))}_toggleToolbarBalloon(){this.$.selection.init();const t=this.$.selection.getRange(),s=o(this,Dt).has("_subMode");!(s?o(this,be).mode.isSubBalloonAlways:o(this,be).mode.isBalloonAlways)&&t.collapsed?s?this._hideToolbar_sub():this._hideToolbar():s?this.$.subToolbar._showBalloon(t):o(this,nt)._showBalloon(t)}_hideToolbar(){!o(this,ot).isPreventToolbarHide&&!this.$.frameContext.get("isFullScreen")&&o(this,nt).hide()}_hideToolbar_sub(){this.$.subToolbar&&!o(this,ot).isPreventToolbarHide&&this.$.subToolbar.hide()}_setDefaultLine(t){return this.defaultLineManager.execute(t)}_normalizeEditRange(){var s;if(!this.$.format.isLine((s=this.$.selection.getRange())==null?void 0:s.startContainer))return null;this.$.selection.resetRangeToTextNode();const t=this.$.selection.getRange();if(t.startContainer===t.endContainer&&t.startOffset!==t.endOffset&&t.startContainer.nodeType===3&&u.check.isZeroWidth(t.startContainer)){const n=t.startContainer.nextSibling;n&&u.check.isBreak(n)?this.$.selection.setRange(n,0,n,0):this.$.selection.setRange(t.endContainer,t.endOffset,t.endContainer,t.endOffset)}return this.$.selection.getNode()}async _dataTransferAction(t,s,n,r){try{return o(this,ot).showLoading(),await E(this,Kp,V5).call(this,t,s,n,r),s.preventDefault(),s.stopPropagation(),!1}catch(l){console.warn("[SUNEDITOR.paste.error]",l)}finally{o(this,ot).hideLoading()}}_addCommonEvents(){const t=eA.bind(this),s=iA.bind(this);o(this,ie).addEvent(o(this,si).get("menuTray"),"mousedown",t,!1),o(this,ie).addEvent(o(this,si).get("menuTray"),"click",tA.bind(this),!0),o(this,ie).addEvent(o(this,si).get("toolbar_main"),"mousedown",t,!1),o(this,ie).addEvent(o(this,si).get("toolbar_main"),"click",s,!1),o(this,Dt).has("_subMode")&&(o(this,ie).addEvent(o(this,si).get("toolbar_sub_main"),"mousedown",t,!1),o(this,ie).addEvent(o(this,si).get("toolbar_sub_main"),"click",s,!1)),o(this,nt)._setResponsive(),pe.isResizeObserverSupported&&(this._toolbarObserver=new ResizeObserver(()=>{wt.setTimeout(()=>{o(this,nt).resetResponsiveToolbar()},0)}),this._wwFrameObserver=new ResizeObserver(n=>{wt.setTimeout(()=>{n.forEach(r=>{o(this,ot)._emitResizeEvent(this.$.frameRoots.get(r.target.getAttribute("data-root-key")),-1,r)}),o(this,be).mode.isInline&&o(this,be).mode.isBottom&&o(this,nt)._resetSticky()},0)})),o(this,Dt).get("closeModalOutsideClick")&&o(this,ie).addEvent(o(this,ws).carrierWrapper.querySelector(".se-modal .se-modal-inner"),"click",n=>{n.target===o(this,ws).carrierWrapper.querySelector(".se-modal .se-modal-inner")&&o(this,ot).offCurrentModal()},!1),o(this,ie).addEvent(wt,"resize",E(this,nm,j5).bind(this),!1),o(this,ie).addEvent(wt.visualViewport,"resize",E(this,om,W5).bind(this),!1),o(this,ie).addEvent(wt,"scroll",E(this,rm,U5).bind(this),!1),Ug&&o(this,ie).addEvent(wt.visualViewport,"scroll",E(this,am,q5).bind(this),!1)}_addFrameEvents(t){const s=t.get("options").get("iframe"),n=s?t.get("_ww"):t.get("wysiwyg");t.set("eventWysiwyg",n);const r=t.get("code"),l=o(this,ws).carrierWrapper.querySelector(".se-drag-cursor"),c=rA.bind(this,t);o(this,ie).addEvent(n,"mousemove",c,!1),o(this,ie).addEvent(n,"mouseleave",aA.bind(this,t),!1),o(this,ie).addEvent(n,"mousedown",sA.bind(this,t),!1),o(this,ie).addEvent(n,"mouseup",nA.bind(this,t),!1),o(this,ie).addEvent(n,"click",oA.bind(this,t),!1),o(this,ie).addEvent(n,"beforeinput",TA.bind(this,t),!1),o(this,ie).addEvent(n,"input",MA.bind(this,t),!1),o(this,ie).addEvent(n,"keydown",NA.bind(this,t),!1),o(this,ie).addEvent(n,"keyup",LA.bind(this,t),!1),o(this,ie).addEvent(n,"paste",$A.bind(this,t),!1),o(this,ie).addEvent(n,"copy",OA.bind(this,t),!1),o(this,ie).addEvent(n,"cut",VA.bind(this,t),!1),o(this,ie).addEvent(n,"dragover",RA.bind(this,t,l,s?this.$.frameContext.get("topArea"):null,!o(this,Dt).get("toolbar_container")&&!o(this,be).mode.isBalloon&&!o(this,be).mode.isInline),!1),o(this,ie).addEvent(n,"dragend",IA.bind(this,l),!1),o(this,ie).addEvent(n,"drop",DA.bind(this,t,l),!1),o(this,ie).addEvent(n,"scroll",E(this,Qp,I5).bind(this,t,n),{passive:!0,capture:!1}),o(this,ie).addEvent(n,"focus",E(this,Jp,D5).bind(this,t),!1),o(this,ie).addEvent(n,"blur",E(this,em,P5).bind(this,t),!1),o(this,ie).addEvent(r,"mousedown",E(this,dm,Y5).bind(this,t),!1);const d=t.get("wrapper").querySelector(".se-drag-handle");if(o(this,ie).addEvent(d,"wheel",m=>{m.preventDefault(),this.$.component.deselect()},!1),o(this,ie).addEvent(t.get("lineBreaker_t"),"pointerdown",E(this,jh,l2).bind(this,"t"),!1),o(this,ie).addEvent(t.get("lineBreaker_b"),"pointerdown",E(this,jh,l2).bind(this,"b"),!1),Ug&&o(this,ie).addEvent(n,"touchstart",c,{passive:!0,capture:!1}),!o(this,Dt).get("hasCodeMirror")){const m=t.get("codeNumbers"),g=this.$.viewer._codeViewAutoHeight.bind(this.$.viewer,t.get("code"),m,this.$.frameOptions.get("height")==="auto");o(this,ie).addEvent(r,"keydown",g,!1),o(this,ie).addEvent(r,"keyup",g,!1),o(this,ie).addEvent(r,"paste",g,!1),o(this,Dt).get("tabDisable")||o(this,ie).addEvent(r,"keydown",Py,!1),m&&o(this,ie).addEvent(r,"scroll",this.$.viewer._scrollLineNumbers.bind(r,m),!1)}const h=t.get("markdown");if(h){o(this,ie).addEvent(h,"mousedown",E(this,hm,K5).bind(this,t),!1);const m=t.get("markdownNumbers"),g=this.$.viewer._markdownViewAutoHeight.bind(this.$.viewer,h,m,this.$.frameOptions.get("height")==="auto");o(this,ie).addEvent(h,"keydown",g,!1),o(this,ie).addEvent(h,"keyup",g,!1),o(this,ie).addEvent(h,"paste",g,!1),o(this,Dt).get("tabDisable")||o(this,ie).addEvent(h,"keydown",Py,!1),m&&o(this,ie).addEvent(h,"scroll",this.$.viewer._scrollMarkdownLineNumbers.bind(h,m),!1)}t.has("statusbar")&&this.__addStatusbarEvent(t,t.get("options"));const f=E(this,cm,G5).bind(this),p=u.query.getScrollParents(t.get("originElement"));for(const m of p)this.scrollparents.push(m),o(this,ie).addEvent(m,"scroll",f,!1);o(this,ie).addEvent(this.__focusTemp,"focus",m=>m.preventDefault(),!1),this.__eventDoc!==t.get("_wd")&&(this.__eventDoc=t.get("_wd"),o(this,ie).addEvent(this.__eventDoc,"selectionchange",E(this,lm,Z5).bind(this,this.__eventDoc),!1))}__addStatusbarEvent(t,s){/\d+/.test(s.get("height"))&&s.get("statusbar_resizeEnable")?s.set("__statusbarEvent",o(this,ie).addEvent(t.get("statusbar"),"mousedown",E(this,tm,H5).bind(this),!1)):u.utils.addClass(t.get("statusbar"),"se-resizing-none")}_removeAllEvents(){o(this,ie)._init(),this._wwFrameObserver&&(this._wwFrameObserver.disconnect(),this._wwFrameObserver=null),this._toolbarObserver&&(this._toolbarObserver.disconnect(),this._toolbarObserver=null),o(this,qt)&&(wt.clearTimeout(o(this,qt)),k(this,qt,null)),this.__retainTimer&&(wt.clearTimeout(this.__retainTimer),this.__retainTimer=null),o(this,Gn)&&k(this,Gn,o(this,ie).removeGlobalEvent(o(this,Gn))),o(this,Yn)&&k(this,Yn,o(this,ie).removeGlobalEvent(o(this,Yn))),o(this,Zn)&&k(this,Zn,o(this,ie).removeGlobalEvent(o(this,Zn))),this._formatAttrsTemp=null,this.__cacheStyleNodes=null,this.__inputPlugin=null,this.__inputBlurEvent=null,this.__inputKeyEvent=null,this.__focusTemp=null,this.__eventDoc=null,this.__secopy=null,this._lineBreakComp=null,this.scrollparents=null}_setSelectionSync(){o(this,ie).removeGlobalEvent(o(this,Gn)),k(this,Gn,o(this,ie).addGlobalEvent("mouseup",()=>{this.$.selection.init(),o(this,ie).removeGlobalEvent(o(this,Gn))}))}_retainStyleNodes(t,s){let r=s[0].cloneNode(!1);for(let h=1,f=s.length,p;h<f;h++)p=s[h].cloneNode(!1),r.appendChild(p),r=p;const{parent:l,inner:c}=this.$.nodeTransform.createNestedNode(s,null),d=u.utils.createTextNode(Oe.zeroWidthSpace);c.appendChild(d),t.innerHTML="",t.appendChild(l),this.$.selection.setRange(d,1,d,1)}_clearRetainStyleNodes(t){t.innerHTML="<br>",this.$.selection.setRange(t,0,t,0)}_callPluginEvent(t,s){return this.$.pluginManager.emitEvent(t,s)}async _callPluginEventAsync(t,s){return await this.$.pluginManager.emitEventAsync(t,s)}__removeInput(){o(this,be).set("_preventBlur",!1),this._inputFocus=!1,this.__inputBlurEvent=o(this,ie).removeEvent(this.__inputBlurEvent),this.__inputKeyEvent=o(this,ie).removeEvent(this.__inputKeyEvent),this.__inputPlugin=null}__postFocusEvent(t,s){(o(this,be).mode.isInline||o(this,be).mode.isBalloonAlways)&&o(this,nt).show(),o(this,be).mode.isSubBalloonAlways&&this.$.subToolbar.show(),o(this,nt)._resetSticky(),o(this,ot)._updatePlaceholder(t),o(this,ie).triggerEvent("onFocus",{frameContext:t,event:s}),this._callPluginEvent("onFocus",{frameContext:t,event:s})}__postBlurEvent(t,s){o(this,be).mode.isInline?wt.setTimeout(()=>{o(this,be).get("hasFocus")||this._hideToolbar()},0):o(this,be).mode.isBalloon&&this._hideToolbar(),o(this,be).mode.isSubBalloon&&this._hideToolbar_sub(),o(this,ie).triggerEvent("onBlur",{frameContext:t,event:s}),this._callPluginEvent("onBlur",{frameContext:t,event:s})}__setViewportSize(){o(this,be).set("currentViewportHeight",X.get(wt.visualViewport.height,0))}}be=new WeakMap,ws=new WeakMap,si=new WeakMap,Dt=new WeakMap,ie=new WeakMap,nt=new WeakMap,ot=new WeakMap,Pt=new WeakMap,qt=new WeakMap,Zn=new WeakMap,Gn=new WeakMap,Yn=new WeakMap,Yp=new WeakSet,O5=function(){o(this,qt)&&wt.clearTimeout(o(this,qt)),k(this,qt,wt.setTimeout(()=>{wt.clearTimeout(o(this,qt)),k(this,qt,null),this._toggleToolbarBalloon()},250))},Kp=new WeakSet,V5=async function(t,s,n,r){s.preventDefault(),s.stopPropagation();let l=n.getData("text/plain"),c=n.getData("text/html");const d=!c,h=this.__secopy===l,f=/class=["']*Mso(Normal|List)/i.test(c)||/content=["']*Word.Document/i.test(c)||/content=["']*OneNote.File/i.test(c)||/content=["']*Excel.Sheet/i.test(c),p=h?"SE":f?"MS":"";if(d?c=xe.htmlToEntity(l).replace(/\n/g,"<br>"):(c=c.replace(/^<html>\r?\n?<body>\r?\n?\x3C!--StartFragment-->|\x3C!--EndFragment-->\r?\n?<\/body>\r?\n?<\/html>$/g,""),f&&(c=c.replace(/\n/g," "),l=l.replace(/\n/g," "),c=MB.cleanHTML(c))),!h&&o(this,Dt).get("autoLinkify")){const v=new DOMParser().parseFromString(c,"text/html");u.query.getListChildNodes(v.body,xe.textToAnchor,null),c=v.body.innerHTML}d||(c=this.$.html.clean(c,{forceFormat:!1,whitelist:null,blacklist:null}));const m=this.$.char.test(this.$.frameOptions.get("charCounter_type")==="byte-html"?c:l,!1);if(t==="paste"){const y=await o(this,ie).triggerEvent("onPaste",{frameContext:r,event:s,data:c,maxCharCount:m,from:p});if(y===!1)return!1;if(typeof y=="string"){if(!y)return!1;c=y}}if(t==="drop"){const y=await o(this,ie).triggerEvent("onDrop",{frameContext:r,event:s,data:c,maxCharCount:m,from:p});if(y===!1)return!1;if(typeof y=="string"){if(!y)return!1;c=y}}const g=n.files;if(g.length>0&&!f){for(let y=0,v=g.length;y<v;y++)await this._callPluginEventAsync("onFilePasteAndDrop",{frameContext:r,event:s,file:g[y]});return!1}if(!m)return!1;if(c){const y=new DOMParser().parseFromString(c,"text/html");return await this._callPluginEventAsync("onPaste",{frameContext:r,event:s,data:c,doc:y})!==!1&&this.$.html.insert(c,{selectInserted:!1,skipCharCount:!0,skipCleaning:!0}),r.has("documentType_use_header")&&r.get("documentType").reHeader(),!1}},_r=new WeakSet,fu=function(){o(this,Pt).currentDropdownActiveButton&&o(this,Pt).currentDropdown&&o(this,Pt).__resetMenuPosition(o(this,Pt).currentDropdownActiveButton,o(this,Pt).currentDropdown),o(this,ot)._repositionControllers()},Xp=new WeakSet,R5=function(){pe.isResizeObserverSupported||(o(this,nt).resetResponsiveToolbar(),o(this,Dt).get("_subMode")&&this.$.subToolbar.resetResponsiveToolbar());const t=o(this,si).get("toolbar_main"),s=t.style.display==="none"||o(this,be).mode.isInline&&!o(this,nt).inlineToolbarAttr.isShow;if(t.offsetWidth===0&&!s)return;const n=o(this,ot).opendBrowser;if(n&&n.area.style.display==="block"&&(n.body.style.maxHeight=u.utils.getClientSize().h-n.header.offsetHeight-50+"px"),o(this,Pt).currentDropdownActiveButton&&o(this,Pt).currentDropdown&&o(this,Pt).__resetMenuPosition(o(this,Pt).currentDropdownActiveButton,o(this,Pt).currentDropdown),this.$.viewer._resetFullScreenHeight())return;const r=this.$.frameContext;if(r.get("isCodeView")&&o(this,be).mode.isInline){o(this,nt)._showInline();return}o(this,ot)._iframeAutoHeight(r),o(this,nt).isSticky&&(o(this,nt).isCSSSticky||(o(this,si).get("toolbar_main").style.width=r.get("topArea").offsetWidth-2+"px"),o(this,nt)._resetSticky())},Qp=new WeakSet,I5=function(t,s,n){o(this,ot)._syncScrollPosition(s),E(this,_r,fu).call(this),this._callPluginEvent("onScroll",{frameContext:t,event:n}),t.has("documentType_use_page")&&t.get("documentType").scrollPage(),o(this,ie).triggerEvent("onScroll",{frameContext:t,event:n})},Jp=new WeakSet,D5=function(t,s){if(this.$.selection.__iframeFocus||t.get("isReadOnly")||t.get("isDisabled"))return s.preventDefault(),!1;o(this,be).set("hasFocus",!0),this.$.component.__prevent=!1,o(this,ie).triggerEvent("onNativeFocus",{frameContext:t,event:s});const n=t.get("key");if(this._inputFocus){o(this,be).mode.isInline&&wt.setTimeout(()=>{o(this,nt)._showInline()},0);return}o(this,be).get("rootKey")===n&&o(this,be).get("_preventBlur")||o(this,be).get("_preventFocus")||(o(this,be).set("_preventFocus",!0),u.utils.removeClass(this.$.commandDispatcher.targets.get("codeView"),"active"),o(this,ot)._toggleCodeViewButtons(!1),this.$.facade.changeFrameContext(n),this.$.history.resetButtons(n,null),wt.setTimeout(()=>{this.__postFocusEvent(t,s)},0))},em=new WeakSet,P5=function(t,s){t.get("isCodeView")||t.get("isReadOnly")||t.get("isDisabled")||(o(this,be).set("hasFocus",!1),o(this,be).set("_lastSelectionNode",null),o(this,ie).triggerEvent("onNativeBlur",{frameContext:t,event:s}),o(this,ot)._updatePlaceholder(t),!(this._inputFocus||o(this,be).get("_preventBlur"))&&(o(this,be).set("_preventFocus",!1),this.selectionState.reset(),o(this,be).set("currentNodes",[]),o(this,be).set("currentNodesMap",[]),o(this,ot).offCurrentController(),o(this,ws).applyToRoots(n=>{n.get("navigation")&&(n.get("navigation").textContent="")}),this.$.history.check(t.get("key"),o(this,be).get("_range")),this.__postBlurEvent(t,s)))},tm=new WeakSet,H5=function(t){t.stopPropagation(),this._resizeClientY=t.clientY,o(this,ot).enableBackWrapper("ns-resize"),k(this,Yn,o(this,ie).addGlobalEvent("mousemove",E(this,im,F5).bind(this))),k(this,Zn,o(this,ie).addGlobalEvent("mouseup",E(this,sm,z5).bind(this)))},im=new WeakSet,F5=function(t){const s=this.$.frameContext,n=s.get("wrapper").offsetHeight+(t.clientY-this._resizeClientY),r=n<s.get("_minHeight")?s.get("_minHeight"):n;s.get("wysiwygFrame").style.height=s.get("code").style.height=r+"px",this._resizeClientY=t.clientY,pe.isResizeObserverSupported||o(this,ot)._emitResizeEvent(s,r,null)},sm=new WeakSet,z5=function(){o(this,ot).disableBackWrapper(),o(this,Yn)&&k(this,Yn,o(this,ie).removeGlobalEvent(o(this,Yn))),o(this,Zn)&&k(this,Zn,o(this,ie).removeGlobalEvent(o(this,Zn)))},jh=new WeakSet,l2=function(t,s){s.preventDefault();const n=this._lineBreakComp;if(!n)return;const r=u.check.isListCell(n.parentElement),l=u.utils.createElement(r?"BR":u.check.isTableCell(n.parentElement)?"DIV":o(this,Dt).get("defaultLine"));if(r||(l.innerHTML="<br>"),!(this.$.frameOptions.get("charCounter_type")==="byte-html"&&!this.$.char.check(l.outerHTML))){n.parentNode.insertBefore(l,t==="t"?n:n.nextSibling),this.$.component.deselect();try{const c=r?l:l.firstChild;this.$.selection.setRange(c,1,c,1),this.$.history.push(!1)}catch(c){console.warn("[SUNEDITOR.lineBreaker.error]",c)}}},nm=new WeakSet,j5=function(){o(this,be).set("initViewportHeight",wt.visualViewport.height),Wg||o(this,ot).offCurrentController(),o(this,be).mode.isBalloon?o(this,nt).hide():o(this,be).mode.isSubBalloon&&this.$.subToolbar.hide(),E(this,Xp,R5).call(this)},om=new WeakSet,W5=function(){Wg&&o(this,Dt).get("_toolbar_sticky")>-1&&(o(this,nt)._resetSticky(),o(this,Pt).__restoreMenuPosition()),E(this,_r,fu).call(this);const t=o(this,be).get("currentViewportHeight");this.__setViewportSize(),Wg&&t>0&&t-wt.visualViewport.height>100&&o(this,be).get("hasFocus")&&this.$.selection.scrollTo(this.$.selection.getRange(),{behavior:"auto",block:"nearest",inline:"nearest"})},rm=new WeakSet,U5=function(){o(this,Dt).get("_toolbar_sticky")>-1&&o(this,nt)._resetSticky(),o(this,be).mode.isBalloon&&o(this,si).get("toolbar_main").style.display==="block"?o(this,nt)._setBalloonOffset(o(this,nt).balloonOffset.position==="top"):o(this,be).mode.isSubBalloon&&o(this,si).get("toolbar_sub_main").style.display==="block"&&this.$.subToolbar._setBalloonOffset(this.$.subToolbar.balloonOffset.position==="top"),E(this,_r,fu).call(this),this.$.frameContext.has("documentType_use_page")&&this.$.frameContext.get("documentType").scrollWindow()},am=new WeakSet,q5=function(){o(this,Dt).get("_toolbar_sticky")>-1&&(o(this,nt)._resetSticky(),o(this,Pt).__restoreMenuPosition())},lm=new WeakSet,Z5=function(t){let n=t.getSelection().anchorNode;o(this,ws).applyToRoots(r=>{if(n&&r.get("wysiwyg").contains(n)){if(r.get("isReadOnly")||r.get("isDisabled"))return;if(n=null,this.$.selection.init(),this.applyTagEffect(),o(this,ot)._updatePlaceholder(r),Ug&&(o(this,be).mode.isBalloon||o(this,be).mode.isSubBalloon)&&E(this,Yp,O5).call(this),r.has("documentType_use_header")){const l=u.query.getParentElement(this.$.selection.selectionNode,this.$.format.isLine.bind(this.$.format));r.get("documentType").on(l)}}})},cm=new WeakSet,G5=function(){o(this,Pt).dropdownOff(),E(this,_r,fu).call(this)},dm=new WeakSet,Y5=function(t){this.$.facade.changeFrameContext(t.get("key")),u.utils.addClass(this.$.commandDispatcher.targets.get("codeView"),"active"),o(this,ot)._toggleCodeViewButtons(!0)},hm=new WeakSet,K5=function(t){this.$.facade.changeFrameContext(t.get("key")),u.utils.addClass(this.$.commandDispatcher.targets.get("markdownView"),"active"),o(this,ot)._toggleCodeViewButtons(!0)};function Py(i){if(i.key!=="Tab")return;i.preventDefault();const e=i.target,t=e.selectionStart,s=e.selectionEnd;e.value=e.value.substring(0,t)+" "+e.value.substring(s),e.selectionStart=e.selectionEnd=t+1}const zA=FA;class jA{constructor(e,t){C(this,um);C(this,fm);C(this,pm);C(this,mm);C(this,gm);C(this,ni,new Map);C(this,ge,new Map);zl(this,"$",null);const{product:s,options:n}=t;this.store=new XB(s),this.$={facade:e,store:this.store},E(this,um,X5).call(this,s,n),E(this,fm,Q5).call(this),E(this,pm,J5).call(this,s),E(this,gm,tC).call(this),E(this,mm,eC).call(this),this._eventOrchestrator=new zA(this),o(this,ni).get("eventManager")._bindOrchestrator(this._eventOrchestrator)}_destroy(){var t,s,n;if(this.$===null)return;const e=[];for(const[r,l]of o(this,ge))try{(t=l==null?void 0:l._destroy)==null||t.call(l)}catch(c){e.push(`[Logic:${r}] ${c.message}`)}o(this,ge).clear();try{(s=this._eventOrchestrator)==null||s._removeAllEvents()}catch(r){e.push(`[EventOrchestrator] ${r.message}`)}this._eventOrchestrator=null;for(const[r,l]of o(this,ni))try{(n=l==null?void 0:l._destroy)==null||n.call(l)}catch(c){e.push(`[Config:${r}] ${c.message}`)}o(this,ni).clear(),e.length>0&&console.warn("[CoreKernel._destroy] Cleanup completed with errors:",e),this.$=null,this.store._destroy(),this.store=null,this.facade=null}}ni=new WeakMap,ge=new WeakMap,um=new WeakSet,X5=function(e,t){const s=new JB(e),n=new eN(this,e,t);o(this,ni).set("contextProvider",s),o(this,ni).set("optionProvider",n),o(this,ni).set("instanceCheck",new iN(s.frameContext)),o(this,ni).set("eventManager",new dN(s,n,this.$))},fm=new WeakSet,Q5=function(){const e=o(this,ni).get("contextProvider"),t=o(this,ni).get("optionProvider");Object.assign(this.$,{contextProvider:e,optionProvider:t,instanceCheck:o(this,ni).get("instanceCheck"),eventManager:o(this,ni).get("eventManager"),frameRoots:e.frameRoots,context:e.context,options:t.options,icons:e.icons,lang:e.lang,frameContext:e.frameContext,frameOptions:t.frameOptions})},pm=new WeakSet,J5=function(e){o(this,ge).set("offset",new uN(this)),o(this,ge).set("selection",new pN(this)),o(this,ge).set("html",new GN(this)),o(this,ge).set("nodeTransform",new KN(this)),o(this,ge).set("format",new gN(this)),o(this,ge).set("inline",new yN(this)),o(this,ge).set("listFormat",new CN(this)),o(this,ge).set("char",new QN(this)),o(this,ge).set("shortcuts",new eL(this)),o(this,ge).set("component",new vL(this)),o(this,ge).set("pluginManager",new bL(this,e)),o(this,ge).set("focusManager",new CL(this)),o(this,ge).set("ui",new PL(this)),o(this,ge).set("commandDispatcher",new VL(this)),o(this,ge).set("toolbar",new Ey(this,{keyName:"toolbar",balloon:this.store.mode.isBalloon,balloonAlways:this.store.mode.isBalloonAlways,inline:this.store.mode.isInline,res:e.responsiveButtons})),this.$.options.has("_subMode")&&o(this,ge).set("subToolbar",new Ey(this,{keyName:"toolbar_sub",balloon:this.store.mode.isSubBalloon,balloonAlways:this.store.mode.isSubBalloonAlways,inline:!1,res:e.responsiveButtons_sub})),o(this,ge).set("menu",new WL(this)),o(this,ge).set("viewer",new qL(this)),o(this,ge).set("finder",new YL(this)),o(this,ge).set("history",HL(this))},mm=new WeakSet,eC=function(){for(const[,e]of o(this,ge))typeof(e==null?void 0:e._init)=="function"&&e._init()},gm=new WeakSet,tC=function(){const e=o(this,ge).get("pluginManager");Object.assign(this.$,{offset:o(this,ge).get("offset"),selection:o(this,ge).get("selection"),format:o(this,ge).get("format"),inline:o(this,ge).get("inline"),listFormat:o(this,ge).get("listFormat"),html:o(this,ge).get("html"),nodeTransform:o(this,ge).get("nodeTransform"),char:o(this,ge).get("char"),component:o(this,ge).get("component"),focusManager:o(this,ge).get("focusManager"),pluginManager:e,plugins:e.plugins,ui:o(this,ge).get("ui"),commandDispatcher:o(this,ge).get("commandDispatcher"),history:o(this,ge).get("history"),shortcuts:o(this,ge).get("shortcuts"),toolbar:o(this,ge).get("toolbar"),subToolbar:o(this,ge).get("subToolbar"),menu:o(this,ge).get("menu"),viewer:o(this,ge).get("viewer"),finder:o(this,ge).get("finder")})};const WA=jA;class UA{constructor(e,t){C(this,Dl);C(this,vm);C(this,ym);C(this,bm);C(this,Cm);C(this,wm);C(this,oi,void 0);zl(this,"$");const s=VB(e,t),n=new WA(this,{product:s,options:t});k(this,oi,n),this.$=n.$,E(this,wm,rC).call(this,t).catch(r=>{console.error("[SUNEDITOR:E_CREATE_FAIL] Failed to create editor instance.",r)})}isEmpty(e){const t=(e||this.$.frameContext).get("wysiwyg");return u.check.isZeroWidth(t.textContent)&&!t.querySelector(this.$.options.get("allowedEmptyTags"))&&(t.innerText.match(/\n/g)||"").length<=1}resetOptions(e){var t;this.$.optionProvider.reset(e),this.$.store.set("_lastSelectionNode",null),E(this,Dl,Pm).call(this,this.$.frameRoots.get(this.$.store.get("rootKey")));for(const s of Object.values(this.$.plugins))(t=s.init)==null||t.call(s)}changeFrameContext(e){e!==this.$.store.get("rootKey")&&(this.$.store.set("rootKey",e),E(this,Dl,Pm).call(this,this.$.frameRoots.get(e)),this.$.toolbar._resetSticky())}destroy(){this.$.options.get("hasCodeMirror")&&this.$.contextProvider.applyToRoots(e=>{const s=e.get("options").get("codeMirrorEditor");s&&s.toTextArea()}),u.utils.removeItem(this.$.context.get("toolbar_wrapper")),u.utils.removeItem(this.$.context.get("toolbar_sub_wrapper")),u.utils.removeItem(this.$.context.get("statusbar_wrapper"));for(const e in this.events)this.events[e]=null;return this.events=null,o(this,oi)._destroy(),null}}oi=new WeakMap,Dl=new WeakSet,Pm=function(e){this.$.contextProvider.reset(e),this.$.optionProvider.resetFrame(e.get("options")),this.$.ui.reset(e)},vm=new WeakSet,iC=function(e){this.$.store.set("initViewportHeight",pe._w.visualViewport.height),o(this,oi)._eventOrchestrator.__setViewportSize(),this.$.store.set("_canUseBeforeInput",pe.canUseBeforeInput()),this.$.contextProvider.init(),E(this,Dl,Pm).call(this,this.$.frameRoots.get(this.$.store.get("rootKey"))),E(this,bm,nC).call(this,e),this.$.contextProvider.applyToRoots(t=>{o(this,oi)._eventOrchestrator._addFrameEvents(t),E(this,ym,sC).call(this,t,t.get("options").get("value")),t.get("options").get("iframe")&&t.get("options").get("height")==="auto"&&this.$.ui._emitResizeEvent(t,t.get("wysiwygFrame").offsetHeight,null)}),o(this,oi)._eventOrchestrator.__eventDoc=null,this.$.store._editorInitFinished=!0,this.$.pluginManager.checkFileInfo(!0),this.$.history.reset(),pe._w.setTimeout(()=>{var t,s;if(!((t=this.$.context)!=null&&t.size)){console.warn("[SUNEDITOR:E_INIT_FAIL] Editor instance was destroyed before initialization completed. Check if destroy() was called.");return}this.$.context.get("toolbar_main").style.visibility="",this.$.contextProvider.applyToRoots(n=>{o(this,oi)._eventOrchestrator._wwFrameObserver&&o(this,oi)._eventOrchestrator._wwFrameObserver.observe(n.get("wysiwygFrame")),o(this,oi)._eventOrchestrator._toolbarObserver&&o(this,oi)._eventOrchestrator._toolbarObserver.observe(n.get("_toolbarShadow")),this.$.ui._syncFrameState(n)});for(const n of Object.values(this.$.plugins))(s=n.init)==null||s.call(n);this.$.selection.__init(),this.$.eventManager.triggerEvent("onload",{})},0)},ym=new WeakSet,sC=function(e,t){e.get("wysiwyg").innerHTML=this.$.html.clean(typeof t=="string"?t:(/^TEXTAREA$/i.test(e.get("originElement").nodeName)?e.get("originElement").value:e.get("originElement").innerHTML)||"",{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:this.$.options.get("freeCodeViewMode")})||"<"+this.$.options.get("defaultLine")+"><br></"+this.$.options.get("defaultLine")+">",e.has("charCounter")&&(e.get("charCounter").textContent=String(this.$.char.getLength())),e.has("wordCounter")&&(e.get("wordCounter").textContent=String(this.$.char.getWordCount())),this.$.options.get("type")==="document"&&(e.set("documentType",new YB(o(this,oi),e)),e.get("documentType").useHeader&&e.set("documentType_use_header",!0),e.get("documentType").usePage&&(e.set("documentType_use_page",!0),e.get("documentTypePageMirror").innerHTML=e.get("wysiwyg").innerHTML))},bm=new WeakSet,nC=function(e){this.$.pluginManager.init(e),this.$.shortcuts._registerShortcuts(),this.$.commandDispatcher._initCommandButtons(),this.$.ui.init()},Cm=new WeakSet,oC=function(e,t,s){e.contentDocument.documentElement.className="sun-editor",e.contentDocument.head.innerHTML='<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'+xe._setIframeStyleLinks(s.get("iframe_cssFileName"))+xe._setAutoHeightStyle(s.get("height")),e.contentDocument.body.className=t.get("_editableClass"),e.contentDocument.body.setAttribute("contenteditable","true"),t.get("_rtl")&&(e.contentDocument.body.dir="rtl")},wm=new WeakSet,rC=async function(e){o(this,oi)._eventOrchestrator._addCommonEvents();const t=[];this.$.contextProvider.applyToRoots(s=>{const n=s.get("originElement"),r=s.get("topArea");if(n.style.display="none",r.style.display="block",n.parentNode.insertBefore(r,n.nextElementSibling),s.get("options").get("iframe")){const l=new Promise(c=>{const d=h=>{E(this,Cm,oC).call(this,h,this.$.optionProvider.options,s.get("options")),c()};if(pe.isGecko){let h=null;this.$.eventManager.addEvent(s.get("wysiwygFrame"),"load",({target:f})=>{clearTimeout(h),h=setTimeout(()=>{this.$&&d(f)},60)})}else this.$.eventManager.addEvent(s.get("wysiwygFrame"),"load",({target:h})=>{d(h)})});t.push(l)}}),this.$.contextProvider.applyToRoots(s=>{s.get("wrapper").appendChild(s.get("wysiwygFrame")),s.get("documentTypeInner")&&s.get("wrapper").insertBefore(s.get("documentTypeInner"),s.get("wysiwygFrame")),s.get("documentTypePage")&&(s.get("wrapper").appendChild(s.get("documentTypePage")),s.get("wrapper").appendChild(s.get("documentTypePageMirror"))),s.get("blockHandleArea")&&s.get("wrapper").insertBefore(s.get("blockHandleArea"),s.get("wysiwygFrame"))}),t.length>0&&await Promise.all(t),E(this,vm,iC).call(this,e)};const qA=UA,ZA={init(i){return{create:(e,t)=>this.create(e,t,i)}},create(i,e,t){if(typeof e!="object"&&(e={}),t&&(e=(()=>[t,e].reduce((n,r)=>(Object.entries(r).forEach(([l,c])=>{if(l==="plugins"&&c&&n[l]){const d=Array.isArray(n[l])?n[l]:Object.values(n[l]),h=Array.isArray(c)?c:Object.values(c);n[l]=[...h.filter(f=>!d.includes(f)),...d]}else n[l]=c}),n),{}))()),!i)throw Error('[SUNEDITOR.create.fail] The first parameter "target" is missing.');const s=[];if(typeof i=="string"){const n=document.querySelector(i);if(!n)throw Error(`[SUNEDITOR.create.fail]-[document.querySelector(${i})] Cannot find target element. Make sure "${i}" is a valid selector and exists in the document.`);s.push({key:null,target:n})}else if(i.nodeType===1)s.push({key:null,target:i});else{let n;for(const r in i){if(n=i[r],!n.target||n.target.nodeType!==1)throw Error(`[SUNEDITOR.create.fail] suneditor multi root requires textarea's element at the "target" property.`);n.key=r,s.push(n)}}return new qA(s,e)}},GA={class:"ao-rich-text-editor"},qg=a.defineComponent({__name:"AoRichTextEditor",props:{modelValue:{default:""},readonly:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,s=e,n=a.shallowRef(),r=a.shallowRef(null),l=()=>{n.value&&(r.value=ZA.create(n.value,{value:t.modelValue,placeholder:t.placeholder,readOnly:t.readonly,toolbarWidth:"100%",toolbarContainerWidth:"100%",resizingBar:!1,showPathLabel:!1,charCounter:!1,buttonList:[["bold","italic","underline","strike"],["list"]],attributesWhitelist:{all:{"data-mention":"data-mention"}},defaultStyle:`
225
+ font-family: inherit;
226
+ font-size: inherit;
227
+ line-height: 1.5;
228
+ padding: 0.5rem;
229
+ `,style:{"min-height":"100px","border-radius":"var(--ao-border-radius-sm)",border:"1px solid var(--ao-color-neutral-light)"},onChange:c=>{const d=c.getContents();s("update:modelValue",d)}}))};return a.onMounted(()=>{l()}),a.onBeforeUnmount(()=>{r.value&&(r.value.destroy(),r.value=null)}),a.watch(()=>t.modelValue,c=>{if(r.value){const d=r.value.getContents();c!==d&&r.value.setContents(c||"")}}),a.watch(()=>t.readonly,c=>{r.value&&r.value.setReadOnly(c)}),(c,d)=>(a.openBlock(),a.createElementBlock("div",GA,[a.createElementVNode("div",{ref_key:"editorRef",ref:n,class:"ao-rich-text-editor__content"},null,512)]))}}),TD="",YA={class:"ao-comment"},KA={class:"ao-comment__created-at"},XA={class:"ao-comment__body"},QA={class:"ao-comment__content-wrapper"},JA=["innerHTML"],e$={key:1,class:"ao-comment__footer"},t$=a.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(i,{emit:e}){const t=i,s=e,n=a.computed(()=>{const g=t.user;return g?`${g==null?void 0:g.firstName} ${g==null?void 0:g.lastName}`:null}),r=a.ref(!1),l=a.ref(t.content),c=a.computed(()=>{const g=t.editedAt&&Jl(t.editedAt),y=Jl(t.createdAt),v=new Date,b=g??y;return b&&W6(b,v)}),d=()=>{r.value&&(l.value=t.content),r.value=!r.value},h=()=>{s("edit",l.value),r.value=!1},f=()=>{l.value=t.content,r.value=!1},p=()=>{s("remove")},m=a.ref(null);return(g,y)=>{var v;return a.openBlock(),a.createElementBlock("li",YA,[n.value?(a.openBlock(),a.createBlock(ks,{key:0,"avatar-url":(v=i.user)==null?void 0:v.avatarUrl,"user-name":n.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):a.createCommentVNode("",!0),a.createElementVNode("span",KA,a.toDisplayString(c.value),1),a.createElementVNode("div",XA,[a.createElementVNode("div",QA,[r.value?(a.openBlock(),a.createBlock(qg,{key:1,ref_key:"commentEditorRef",ref:m,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=b=>l.value=b),class:"ao-comment__editor"},null,8,["modelValue"])):(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-comment__content",innerHTML:i.content},null,8,JA))])]),i.isEditable?(a.openBlock(),a.createElementBlock("div",e$,[r.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(ke,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:g.discard},null,8,["onClick"]),a.createVNode(ke,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:h}),a.createVNode(ke,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:f})],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(ke,{label:g.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:p},null,8,["label"]),a.createVNode(ke,{label:g.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:d},null,8,["label"])],64))])):a.createCommentVNode("",!0)])}}}),SD="",i$={class:"ao-comments__header"},s$={class:"ao-comments__form-submit"},n$={key:0,class:"ao-comments__list"},o$=a.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(i,{emit:e}){const t=i,s=e,n=a.computed(()=>(t.comments||[]).toSorted((y,v)=>Vk(Jl(y.createdAt),Jl(v.createdAt)))),r=g=>t.users.find(v=>v.id===g),l=a.ref();a.nextTick(()=>{l.value&&(l.value.scrollTop=l.value.scrollHeight)});const c=a.toRef(t.newComment),d=a.computed({get(){return c.value},set(g){c.value=g}}),h=a.ref(null),f=()=>{const g=c.value.trim();g&&(s("createComment",{authorId:t.userId,message:g,mentionedUserIds:[]}),c.value="")},p=(g,y)=>{s("updateComment",{id:g,message:y,mentionedUserIds:[]})},m=g=>{s("removeComment",{id:g})};return(g,y)=>{var v;return a.openBlock(),a.createElementBlock("div",{ref_key:"commentsContainer",ref:l,class:"ao-comments"},[a.createElementVNode("div",i$,[a.createElementVNode("form",{class:"ao-comments__form",onSubmit:a.withModifiers(f,["prevent"])},[a.createVNode(qg,{ref_key:"editorRef",ref:h,modelValue:d.value,"onUpdate:modelValue":y[0]||(y[0]=b=>d.value=b),placeholder:g.$t("activity.comment.label"),class:"ao-comments__form-editor"},null,8,["modelValue","placeholder"]),a.createElementVNode("div",s$,[a.createVNode(ke,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],32)]),((v=n.value)==null?void 0:v.length)>0?(a.openBlock(),a.createElementBlock("ul",n$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,b=>(a.openBlock(),a.createBlock(t$,{key:b.id,user:r(b.author.id),content:b.message,"created-at":b.createdAt,"edited-at":b.updatedAt,"is-editable":b.author.id===i.userId,"mentionable-users":i.users,class:"ao-comment",onEdit:w=>p(b.id,w),onRemove:()=>m(b.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):a.createCommentVNode("",!0)],512)}}}),MD="",Hy=a.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,s=e,n=()=>{s("update:modelValue",!t.modelValue)};return(r,l)=>(a.openBlock(),a.createBlock(ke,{color:i.modelValue?i.color:a.unref(Hm).NEUTRAL,"icon-position":"start",onClick:l[0]||(l[0]=()=>n())},null,8,["color"]))}}),r$=a.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:i=>["underline"].includes(i)}},emits:["update:modelValue"],methods:{selectTab(i){this.$emit("update:modelValue",i)}}}),BD="",a$=["onClick"],l$={class:"tab-button__label"},c$={key:0,class:"tab-button__badge"};function d$(i,e,t,s,n,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":i.variant==="underline"}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.tabs,l=>(a.openBlock(),a.createElementBlock("button",{key:l.value,class:a.normalizeClass(["tab-button",{"tab-button--active":l.value===i.modelValue},{"tab-button--underline":i.variant==="underline"}]),type:"button",onClick:c=>i.selectTab(l.value)},[a.createElementVNode("span",l$,a.toDisplayString(l.label),1),l.count!==void 0&&l.count>0?(a.openBlock(),a.createElementBlock("span",c$,a.toDisplayString(l.count),1)):a.createCommentVNode("",!0)],10,a$))),128))],2)}const Cc=ne(r$,[["render",d$],["__scopeId","data-v-0e91b31f"]]),h$={class:"ao-activity-details"},u$={class:"ao-activity-details__main"},f$={class:"ao-activity-details__header"},p$={key:1,class:"ao-activity__category"},m$={class:"ao-feed__activity-details__header"},g$={key:0,class:"ao-field ao-feed__activity-details__project"},v$={class:"ao-field__label"},y$={key:1,class:"ao-field ao-feed__activity-details__project"},b$={class:"ao-field__label"},C$={class:"ao-activity-details__content"},w$={class:"ao-activity-details__tab-content"},_$={class:"ao-fieldset"},k$={class:"ao-field__row"},x$={class:"ao-activity-details__tab-content"},E$={class:"ao-fieldset"},T$={class:"ao-fieldset__body"},S$={class:"ao-activity-details__tab-content"},M$={key:0,class:"ao-fieldset"},B$={class:"ao-activity-details__aside"},N$={class:"ao-activity-details__close-button"},L$={key:0,class:"ao-activity-details__aside-section"},A$={class:"ao-field"},$$={class:"ao-field__label"},O$={class:"ao-activity-details__aside-section"},V$={class:"ao-field ao-field--multiselect"},R$={class:"assignee-inline"},I$={class:"ao-field__label"},D$={class:"ao-activity-details__aside-section"},P$={key:0,class:"ao-field__row"},H$={class:"ao-field"},F$={class:"ao-field__label"},z$=["readonly"],j$={class:"ao-activity-details__aside-section"},W$={class:"ao-field__row"},U$={class:"ao-field ao-field--inline"},q$={class:"ao-field__label"},Z$=["readonly"],G$={class:"ao-field__row"},Y$={class:"ao-field ao-field--inline"},K$={class:"ao-field__label"},X$={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},Q$={class:"ao-activity-details__aside-section"},J$={class:"ao-fieldset ao-activity-details__aside-section"},eO={class:"ao-fieldset__title"},tO={class:"ao-fieldset__body"},iO={class:"ao-field__row"},sO={class:"ao-field ao-field--multiselect"},nO={class:"ao-field__label"},oO={class:"ao-field__row"},rO={class:"ao-field ao-field--multiselect"},aO={class:"ao-field__label"},Zg=a.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(i,{emit:e}){const t=i,s=e,{t:n}=Ms(),r=a.ref("description"),l=a.computed(()=>{var D,U;return[{label:n("activity.description.label")||"Description",value:"description"},{label:n("activity.tasks.title")||"Checklist",value:"checklist",count:((D=t.activity.tasks)==null?void 0:D.length)??0},{label:n("activity.comments.title")||"Commentaires",value:"comments",count:((U=t.activity.comments)==null?void 0:U.length)??0}]}),c=a.computed(()=>{var D;return t.isEditable===!0?!0:t.userId&&t.isEditable==="only-own"?t.userId===((D=t.activity.assignee)==null?void 0:D.id):!1}),d=D=>{s("update:activity",{id:t.activity.id,name:D})},h=a.computed({get(){return t.activity.description??""},set(D){s("update:activity",{id:t.activity.id,description:D})}}),f=a.computed({get(){return t.activity.estimation??0},set(D){s("update:activity",{id:t.activity.id,estimation:D})}}),p=a.computed({get(){var U;const D=(U=t.timeTrackingData)==null?void 0:U[t.activity.id];return(D==null?void 0:D.timeSpent)??0},set(){}}),m=a.computed(()=>{var U;return((U=t.activity.project)==null?void 0:U.estimationUnit)==="days"?"d":"h"}),g=a.computed(()=>{var U;const D=(U=t.activity.project)==null?void 0:U.estimationUnit;return Eu(p.value,D)}),y=a.computed({get(){return t.activity.important??!1},set(D){s("update:activity",{id:t.activity.id,important:D})}});a.computed({get(){return t.activity.private??!1},set(D){s("update:activity",{id:t.activity.id,private:D})}});const v=a.computed({get(){return t.activity.deadline},set(D){s("update:activity",{id:t.activity.id,deadline:D})}});a.computed(()=>{var D;return(D=t.activityTypes)==null?void 0:D.map(U=>({label:U.name,value:U.id}))}),a.computed({get(){var D;return(D=t.activity.type)==null?void 0:D.id},set(D){s("update:activity",{id:t.activity.id,typeId:D})}});const b=a.computed(()=>t.templateActivities.filter(D=>D.id!==t.activity.id).map(D=>({label:D.name,value:D.id}))),w=a.computed({get(){var D;return(D=t.activity.dependingOn)==null?void 0:D.map(U=>U.id)},set(D){D&&s("update:activity",{id:t.activity.id,dependingOn:D})}}),_=a.computed(()=>b.value.map(D=>{var U;return{...D,disabled:(U=t.activity.blocking)==null?void 0:U.some(z=>z.id===D.value)}})),x=a.computed({get(){var D;return(D=t.activity.blocking)==null?void 0:D.map(U=>U.id)},set(D){D&&s("update:activity",{id:t.activity.id,blocking:D})}}),S=a.computed(()=>b.value.map(D=>{var U;return{...D,disabled:(U=t.activity.dependingOn)==null?void 0:U.some(z=>z.id===D.value)}})),M=D=>{s("addSubtask",D)},T=D=>{s("updateSubtask",D)},L=D=>{s("deleteSubtask",D)};function B(){t.userId?A.value=[t.userId]:console.error("Failed assigning to self: userId is missing")}function N(D){A.value=[D]}const O=a.computed(()=>{var U;const D=new Map;return(U=t.users)==null||U.forEach(z=>{D.has(z.id)||D.set(z.id,z)}),Array.from(D.values()).map(z=>({label:`${z.firstName} ${z.lastName}`,value:z.id,avatar:z.avatarUrl}))}),A=a.computed({get(){var D,U;return(D=t.activity.assignee)!=null&&D.id?[(U=t.activity.assignee)==null?void 0:U.id]:[]},set(D){s("update:activity",{id:t.activity.id,assigneeId:D[0]??null})}}),V=D=>{s("addFiles",{activityId:t.activity.id,files:D})},R=D=>{s("removeFile",{activityId:t.activity.id,file:D})},$=a.computed(()=>t.projects.map(D=>({value:D.id,label:D.name}))),P=a.computed(()=>{var U,z,Q;const D=(Q=(z=(U=t.activity)==null?void 0:U.project)==null?void 0:z.phases)==null?void 0:Q.reduce((re,le)=>[...re,...le.milestones],[]);return D==null?void 0:D.map(re=>({value:re.id,label:re.name}))}),W=D=>{t.activity&&s("update:activity",{id:t.activity.id,projectId:D})},Z=D=>{t.activity&&s("update:activity",{id:t.activity.id,milestoneId:D})},F=a.computed(()=>{var D;return(D=t.statuses)==null?void 0:D.map(U=>({value:U.id,label:U.name}))}),I=D=>{s("update:activity",{id:t.activity.id,statusId:D})},G=D=>{s("addComment",{...D,activityId:t.activity.id})},j=D=>{s("updateComment",D)},K=D=>{s("removeComment",D)};a.computed(()=>{var D,U;return((D=t.activity.createdBy)==null?void 0:D.firstName)&&((U=t.activity.createdBy)==null?void 0:U.lastName)&&`${t.activity.createdBy.firstName} ${t.activity.createdBy.lastName}`});function se(){const D=window.location.origin,U=t.activity.slug,z=`${D}/activity-feed/slug/${U}`;navigator.clipboard.writeText(z).then(()=>{console.log(`Link copied to clipboard: ${z}`),s("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),s("toast","clipboard.copy.error","error")})}return(D,U)=>(a.openBlock(),a.createBlock(Su,{onClose:U[9]||(U[9]=z=>D.$emit("close"))},{default:a.withCtx(()=>{var z,Q,re;return[a.createElementVNode("div",h$,[a.createElementVNode("div",u$,[a.createElementVNode("div",f$,[i.activity.slug?(a.openBlock(),a.createBlock(Zl,{key:0,label:i.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:se},null,8,["label"])):a.createCommentVNode("",!0),i.breadcrumbs?(a.openBlock(),a.createElementBlock("div",p$,a.toDisplayString(i.breadcrumbs),1)):a.createCommentVNode("",!0),a.createVNode(Ht,{title:i.activity.name||"",level:4,"is-editable":c.value,"onUpdate:title":d},null,8,["title","is-editable"]),a.createElementVNode("div",m$,[$.value?(a.openBlock(),a.createElementBlock("label",g$,[a.createElementVNode("span",v$,a.toDisplayString(D.$t("activity.project.label")),1),a.createVNode(ci,{options:$.value,value:(z=i.activity.project)==null?void 0:z.id,searchable:!0,disabled:!c.value,caret:c.value,onChange:W},null,8,["options","value","disabled","caret"])])):a.createCommentVNode("",!0),P.value?(a.openBlock(),a.createElementBlock("label",y$,[a.createElementVNode("span",b$,a.toDisplayString(D.$t("activity.milestone.label")),1),a.createVNode(ci,{options:P.value,value:(Q=i.activity.milestone)==null?void 0:Q.id,searchable:!0,disabled:!c.value,caret:c.value,onChange:Z},null,8,["options","value","disabled","caret"])])):a.createCommentVNode("",!0)]),a.renderSlot(D.$slots,"header")]),a.createElementVNode("div",C$,[a.createVNode(Cc,{modelValue:r.value,"onUpdate:modelValue":U[0]||(U[0]=le=>r.value=le),tabs:l.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),a.withDirectives(a.createElementVNode("div",w$,[a.createElementVNode("fieldset",_$,[a.createElementVNode("div",k$,[a.createVNode(tT,{attachments:i.activity.attachments,"is-editable":i.attachmentEnabled&&c.value&&i.isTemplate!==!0&&!!i.userId,onAdd:V,onRemove:R},{default:a.withCtx(()=>[a.createVNode(qg,{modelValue:h.value,"onUpdate:modelValue":U[1]||(U[1]=le=>h.value=le),readonly:!c.value},null,8,["modelValue","readonly"])]),_:1},8,["attachments","is-editable"])])])],512),[[a.vShow,r.value==="description"]]),a.withDirectives(a.createElementVNode("div",x$,[a.createElementVNode("fieldset",E$,[a.createElementVNode("div",T$,[a.createVNode(WE,{class:"ao-activity-details__tasks ao-field__row",tasks:i.activity.tasks||[],"activity-id":i.activity.id,users:i.users,"is-checkable":i.isTaskCheckable,"is-editable":c.value,"is-template":i.isTemplate,onAdd:M,onUpdate:T,onDelete:L},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[a.vShow,r.value==="checklist"]]),a.withDirectives(a.createElementVNode("div",S$,[i.isTemplate!==!0&&i.userId?(a.openBlock(),a.createElementBlock("div",M$,[a.createVNode(o$,{comments:i.activity.comments,users:i.users,"user-id":i.userId,onCreateComment:G,onUpdateComment:j,onRemoveComment:K},null,8,["comments","users","user-id"])])):a.createCommentVNode("",!0)],512),[[a.vShow,r.value==="comments"]])])]),a.createElementVNode("div",B$,[a.createElementVNode("div",N$,[a.createVNode(qe,{name:"CloseRounded",onClick:U[2]||(U[2]=le=>D.$emit("close"))})]),F.value?(a.openBlock(),a.createElementBlock("div",L$,[a.createElementVNode("label",A$,[a.createElementVNode("span",$$,a.toDisplayString(D.$t("activity.status.label")),1),a.createVNode(ci,{class:"ao-activity-details__multiselect",options:F.value,value:(re=i.activity.status)==null?void 0:re.id,"can-clear":!1,"can-deselect":!1,disabled:!c.value,caret:c.value,onChange:I},null,8,["options","value","disabled","caret"])])])):a.createCommentVNode("",!0),a.createElementVNode("div",O$,[a.createElementVNode("div",V$,[a.createElementVNode("div",R$,[a.createElementVNode("span",I$,a.toDisplayString(D.$t("activity.assignee.label")),1),a.createVNode(ke,{label:D.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:B},null,8,["label"])]),a.createVNode(ci,{modelValue:A.value,"onUpdate:modelValue":U[3]||(U[3]=le=>A.value=le),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:O.value,"close-on-select":!0,searchable:!0,placeholder:D.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!c.value,caret:c.value,onSelect:N},{tag:a.withCtx(({option:le,handleTagRemove:Ue})=>[a.createVNode(ks,{"user-name":le.label,"avatar-url":le.avatar,"is-closable":!0,onClose:fe=>Ue(le,fe)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),a.createElementVNode("div",D$,[i.isTemplate!==!0&&i.userId?(a.openBlock(),a.createElementBlock("div",P$,[a.createElementVNode("label",H$,[a.createElementVNode("span",F$,a.toDisplayString(D.$t("activity.deadline.label")),1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":U[4]||(U[4]=le=>v.value=le),readonly:!c.value,class:"ao-field__input",type:"date"},null,8,z$),[[a.vModelText,v.value,void 0,{lazy:!0}]])])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",j$,[a.createElementVNode("div",W$,[a.createElementVNode("label",U$,[a.createElementVNode("span",q$,a.toDisplayString(D.$t("activity.estimation.label"))+" ("+a.toDisplayString(m.value)+")",1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":U[5]||(U[5]=le=>f.value=le),readonly:!c.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,Z$),[[a.vModelText,f.value,void 0,{lazy:!0,number:!0}]])])]),a.createElementVNode("div",G$,[a.createElementVNode("label",Y$,[a.createElementVNode("span",K$,a.toDisplayString(D.$t("activity.timeSpent.label"))+" ("+a.toDisplayString(m.value)+")",1),a.createElementVNode("span",X$,a.toDisplayString(g.value),1)])])]),a.createElementVNode("div",Q$,[a.createVNode(Hy,{modelValue:y.value,"onUpdate:modelValue":U[6]||(U[6]=le=>y.value=le),modelModifiers:{lazy:!0},label:D.$t("activity.important.label"),disabled:!c.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),a.createElementVNode("fieldset",J$,[a.createElementVNode("div",eO,[a.createVNode(qe,{name:"FlowsheetOutlineRounded"}),a.createVNode(Ht,{level:4,title:D.$t("activity.dependencies.title")},null,8,["title"])]),a.createElementVNode("div",tO,[a.createElementVNode("div",iO,[a.createElementVNode("label",sO,[a.createElementVNode("span",nO,a.toDisplayString(D.$t("activity.dependingOn.label")),1),a.createVNode(ci,{modelValue:w.value,"onUpdate:modelValue":U[7]||(U[7]=le=>w.value=le),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:_.value,disabled:!c.value,caret:c.value},null,8,["modelValue","options","disabled","caret"])])]),a.createElementVNode("div",oO,[a.createElementVNode("label",rO,[a.createElementVNode("span",aO,a.toDisplayString(D.$t("activity.blocking.label")),1),a.createVNode(ci,{modelValue:x.value,"onUpdate:modelValue":U[8]||(U[8]=le=>x.value=le),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:S.value,disabled:!c.value,caret:c.value},null,8,["modelValue","options","disabled","caret"])])])])]),a.renderSlot(D.$slots,"default",{activity:i.activity})])])]}),_:3}))}}),ND="",lO=a.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(i,{emit:e}){const t=i,s=e,n=a.toRef(t.rule.itemType||ct.ACTIVITIES),r=a.computed({get(){return n.value},set(_){n.value=_,s("update:rule",{...t.rule,itemType:_,subItemId:void 0})}}),l=a.computed(()=>Object.values(ct)),c=a.computed({get(){return t.rule.subItemId},set(_){s("update:rule",{...t.rule,subItemId:_,itemType:t.rule.itemType||r.value})}}),d=a.computed(()=>{var x;return!t.templateActivities||!t.templateMilestones||!t.templatePhases?null:(x={[ct.ACTIVITIES]:t.templateActivities,[ct.MILESTONES]:t.templateMilestones,[ct.PHASES]:t.templatePhases}[n.value])==null?void 0:x.map(S=>({value:S.id,label:S.name}))}),h=a.toRef(t.rule.comparator),f=a.computed({get(){return h.value},set(_){s("update:rule",{...t.rule,comparator:_})}}),p=a.computed(()=>Object.values(u2)),m=a.toRef(t.rule.trigger),g=a.computed({get(){return m.value},set(_){s("update:rule",{...t.rule,trigger:_})}}),y=a.computed(()=>Object.values(f2)),v=a.computed({get(){return t.rule.duration},set(_){s("update:rule",{...t.rule,duration:_})}}),b=a.computed({get(){return t.rule.durationUnit},set(_){s("update:rule",{...t.rule,durationUnit:_})}}),w=a.computed(()=>Object.values(p2));return(_,x)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.tagName),{class:"ao-rule-line"},{default:a.withCtx(()=>[a.createVNode(a.unref(nn),{modelValue:r.value,"onUpdate:modelValue":x[0]||(x[0]=S=>r.value=S),options:l.value},null,8,["modelValue","options"]),a.createVNode(a.unref(nn),{modelValue:c.value,"onUpdate:modelValue":x[1]||(x[1]=S=>c.value=S),options:d.value},null,8,["modelValue","options"]),a.createVNode(a.unref(nn),{modelValue:g.value,"onUpdate:modelValue":x[2]||(x[2]=S=>g.value=S),options:y.value},null,8,["modelValue","options"]),a.createVNode(a.unref(nn),{modelValue:f.value,"onUpdate:modelValue":x[3]||(x[3]=S=>f.value=S),options:p.value},null,8,["modelValue","options"]),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":x[4]||(x[4]=S=>v.value=S),type:"number",min:"0"},null,512),[[a.vModelText,v.value,void 0,{number:!0}]]),a.createVNode(a.unref(nn),{modelValue:b.value,"onUpdate:modelValue":x[5]||(x[5]=S=>b.value=S),options:w.value},null,8,["modelValue","options"]),a.createVNode(ke,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:x[6]||(x[6]=S=>_.$emit("close"))})]),_:1}))}}),LD="",cO={class:"ao-template-rules__body"},dO={class:"ao-template-rules__list"},hO=a.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(i,{emit:e}){const t=e,s=()=>{t("addRule")},n=r=>{t("removeRule",r)};return(r,l)=>(a.openBlock(),a.createBlock(Su,null,{header:a.withCtx(()=>[a.createVNode(Ht,{title:r.$t("template.rules.title"),level:2},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("div",cO,[a.createElementVNode("ul",dO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.rules,c=>(a.openBlock(),a.createBlock(lO,{key:c.id,rule:c,"template-phases":i.templatePhases,"template-milestones":i.templateMilestones,"template-activities":i.templateActivities,class:"ao-template-rule",onClose:()=>n(c.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),a.createVNode(Xs,{label:r.$t("template.rules.add"),"icon-name":"Add",onClick:s},null,8,["label"])])]),_:1}))}}),AD="";function fo(i,e,t){const s=i.length,n=i.at(-1),r=n?Ft.LexoRank.parse(n.rank).genNext():Ft.LexoRank.middle();return{name:t(`template.defaultName.${e}`,{idx:s+1}),rank:r.format()}}const uO={key:0,class:"ao-template-details"},fO={class:"ao-template-details__body"},pO={class:"ao-template-details__cols"},mO={class:"ao-template-details__col"},gO={class:"ao-list__footer"},vO={class:"ao-template-details__col"},yO={class:"ao-template-details__col"},Fy=a.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(i,{emit:e}){const{t}=Ms(),s=i,n=e,r=a.computed(()=>{var F;return(F=s.templates)==null?void 0:F.find(I=>I.id===s.templateId)}),l=a.ref(!1);a.watch(()=>[s.templateId,s.phaseId,s.milestoneId],()=>l.value=!1),a.watch(()=>{var F;return(F=r.value)==null?void 0:F.phases},(F,I)=>{l.value&&Bs(F,I)});const c=a.computed(()=>{var F,I;return(I=(F=r==null?void 0:r.value)==null?void 0:F.phases)==null?void 0:I.find(G=>G.id===s.phaseId)});a.watch(()=>{var F;return(F=c.value)==null?void 0:F.milestones},(F,I)=>{l.value&&Bs(F,I)});const d=a.computed(()=>{var F,I;return(I=(F=c.value)==null?void 0:F.milestones)==null?void 0:I.find(G=>G.id===s.milestoneId)});a.watch(()=>{var F;return(F=d.value)==null?void 0:F.activities},(F,I)=>{l.value&&Bs(F,I)});const h=a.computed(()=>{var F,I;return((I=(F=r.value)==null?void 0:F.phases)==null?void 0:I.reduce((G,j)=>{const K=j.milestones||[];return[...G,...K]},[]))||[]}),f=a.computed(()=>{var F,I;return((I=(F=r.value)==null?void 0:F.phases)==null?void 0:I.reduce((G,j)=>{const se=(j.milestones||[]).reduce((D,U)=>U.activities?[...D,...U.activities]:D,[]);return[...G,...se]},[]))||[]}),p=a.computed(()=>{var F,I;return(I=(F=d.value)==null?void 0:F.activities)==null?void 0:I.find(G=>G.id===s.activityId)}),m=a.computed(()=>{var F;return((F=r.value)==null?void 0:F.name)||s.templateId}),g=()=>{if(!r.value)return;const{name:F,rank:I}=fo(r.value.phases,"phase",t);l.value=!0,n("addItem",{type:ct.PHASES,templateId:s.templateId,item:{name:F,rank:I}})},y=F=>{n("updateItem",{templateId:s.templateId,id:s.templateId,itemType:ct.TEMPLATES,data:{name:F}})},v=F=>{n("removeItem",{itemType:ct.PHASES,templateId:s.templateId,data:{id:F}})},b=(F,I)=>{n("updateItem",{templateId:s.templateId,id:F,itemType:ct.PHASES,data:{name:I}})},w=F=>{n("updateItem",F)},_=F=>{if(!c.value)return;const{name:I,rank:G}=fo(c.value.milestones,"milestone",t);l.value=!0,n("addItem",{type:ct.MILESTONES,templateId:s.templateId,phaseId:F.phaseId,item:{name:I,rank:G,phaseId:F.phaseId}})},x=F=>{n("removeItem",{itemType:ct.MILESTONES,templateId:s.templateId,phaseId:F.phaseId,data:{id:F.id}})},S=F=>{const{id:I,...G}=F;n("updateItem",{itemType:ct.MILESTONES,id:I,templateId:s.templateId,data:G})},M=F=>{const{milestoneId:I}=F;if(!d.value)return;const{name:G,rank:j}=fo(d.value.activities,"activity",t);l.value=!0,n("addItem",{type:ct.ACTIVITIES,milestoneId:I,templateId:s.templateId,item:{name:G,rank:j,milestoneId:I}})},T=F=>{var I,G;n("removeItem",{itemType:ct.ACTIVITIES,templateId:s.templateId,phaseId:(I=c.value)==null?void 0:I.id,milestoneId:(G=d.value)==null?void 0:G.id,data:{id:F.id}})},L=F=>{const{id:I,...G}=F;n("updateItem",{itemType:ct.ACTIVITIES,id:I,templateId:s.templateId,data:G})},B=a.ref(!1),N=()=>{B.value=!B.value},O=()=>{n("addRule",{templateId:s.templateId})},A=F=>{n("removeRule",{id:F,templateId:s.templateId})},V=F=>{var I;if(F.moved){const G=rc(F,((I=r.value)==null?void 0:I.phases)??[]);n("updateItem",{itemType:ct.PHASES,id:F.moved.element.id,templateId:s.templateId,data:{rank:G}})}},R=F=>{!c.value||!d.value||!p.value||n("addItem",{type:ct.TASKS,activityId:F.activityId,milestoneId:d.value.id,phaseId:c.value.id,templateId:s.templateId,item:F})},$=F=>{!c.value||!d.value||!p.value||n("updateItem",{itemType:ct.TASKS,id:F.id,templateId:s.templateId,data:F})},P=F=>{!c.value||!d.value||!p.value||n("removeItem",{itemType:ct.TASKS,activityId:p.value.id,milestoneId:d.value.id,phaseId:c.value.id,templateId:s.templateId,data:F})},W=F=>{n("addFiles",F)},Z=F=>{n("removeFile",F)};return(F,I)=>{var G,j,K,se,D,U;return r.value?(a.openBlock(),a.createElementBlock("div",uO,[a.createVNode(ac,{"can-go-back":!0,onGoBack:I[1]||(I[1]=z=>F.$router.push({name:a.unref(mo).TEMPLATES_LIST}))},{primary:a.withCtx(()=>[a.createVNode(Ht,{title:m.value,level:2,"is-editable":!0,"onUpdate:title":I[0]||(I[0]=z=>{y(z)})},null,8,["title"])]),_:1}),a.createElementVNode("div",fO,[a.createElementVNode("ol",pO,[a.createElementVNode("li",mO,[a.createVNode(a.unref(Ai),{"model-value":r.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:V},{header:a.withCtx(()=>[a.createVNode(Ht,{title:F.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:a.withCtx(({element:z})=>{var Q;return[a.createVNode(e9,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((Q=c.value)==null?void 0:Q.id)===z.id,"is-draggable":!0,onClick:re=>F.$router.push({params:{templateId:i.templateId,phaseId:z.id}}),"onUpdate:title":re=>{b(z.id,re)},onRemove:()=>v(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:a.withCtx(()=>[a.createElementVNode("div",gO,[a.createVNode(Xs,{"icon-name":"AddBoxOutlineRounded",label:F.$t("template.phases.add"),onClick:g},null,8,["label"])])]),_:1},8,["model-value"])]),a.createElementVNode("li",vO,[c.value?(a.openBlock(),a.createBlock(s9,{key:0,"template-id":i.templateId,phase:c.value,"milestone-id":(G=d.value)==null?void 0:G.id,onAddMilestone:_,onUpdateMilestone:S,onUpdatePhase:w,onRemoveMilestone:x},null,8,["template-id","phase","milestone-id"])):a.createCommentVNode("",!0)]),a.createElementVNode("li",yO,[c.value&&d.value?(a.openBlock(),a.createBlock(r9,{key:0,"template-id":i.templateId,"phase-id":(j=c.value)==null?void 0:j.id,milestone:d.value,"activity-id":(K=p.value)==null?void 0:K.id,onAddActivity:M,onUpdateActivity:L,onRemoveActivity:T},null,8,["template-id","phase-id","milestone","activity-id"])):a.createCommentVNode("",!0)])])]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[p.value?(a.openBlock(),a.createBlock(Zg,{key:0,activity:p.value,"activity-types":i.activityTypes,breadcrumbs:`${r.value.name} / ${(se=c.value)==null?void 0:se.name} / ${(D=d.value)==null?void 0:D.name}`,"milestone-id":(U=d.value)==null?void 0:U.id,"template-activities":f.value,"template-milestones":h.value,"is-template":!0,"is-editable":!0,users:i.users,"onUpdate:activity":I[2]||(I[2]=z=>{p.value&&L(z)}),"attachment-enabled":!1,onClose:F.$router.back,onAddSubtask:R,onUpdateSubtask:$,onDeleteSubtask:P,onAddFiles:W,onRemoveFile:Z},{default:a.withCtx(z=>[a.renderSlot(F.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(z)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):a.createCommentVNode("",!0)])),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[B.value?(a.openBlock(),a.createBlock(hO,{key:0,"template-id":r.value.id,rules:r.value.rules||[],"template-phases":r.value.phases,"template-milestones":h.value,"template-activities":f.value,onClose:N,onAddRule:O,onRemoveRule:A},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):a.createCommentVNode("",!0)]))])):a.createCommentVNode("",!0)}}}),$D="",bO={class:"ao-card__content"},CO={key:0,class:"ao-card__header"},wO={class:"ao-card__body"},_O={key:1,class:"ao-card__footer"},u1=a.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(i){return(e,t)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.tagName),{class:a.normalizeClass(["ao-card",{"ao-card--clickable":i.isClickable}]),style:a.normalizeStyle(i.isSelected?{border:"solid",borderColor:i.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:a.withCtx(()=>[i.withLeftBorder?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-card__left-border",style:a.normalizeStyle({backgroundColor:i.color})},null,4)):a.createCommentVNode("",!0),a.createElementVNode("div",bO,[e.$slots.header?(a.openBlock(),a.createElementBlock("header",CO,[a.renderSlot(e.$slots,"header")])):a.createCommentVNode("",!0),a.createElementVNode("div",wO,[a.renderSlot(e.$slots,"default")]),e.$slots.footer?(a.openBlock(),a.createElementBlock("footer",_O,[a.renderSlot(e.$slots,"footer")])):a.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}}),OD="",f1=a.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(i){const e=i,t=a.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(s,n)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-progress",i.status?`ao-progress--${i.status}`:""]),role:"meter"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,r=>(a.openBlock(),a.createElementBlock("div",{key:r,class:a.normalizeClass(["ao-progress__progress"]),style:a.normalizeStyle({width:`${r*100}%`,"--ao-progress-color":i.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}}),VD="";/*!
3
230
  * vue-color-kit v1.0.6
4
231
  * (c) 2023
5
232
  * @license MIT
6
- */function ot(a){let t={r:0,g:0,b:0,a:1};/#/.test(a)?t=If(a):/rgb/.test(a)?t=Lr(a):typeof a=="string"?t=Lr(`rgba(${a})`):Object.prototype.toString.call(a)==="[object Object]"&&(t=a);const{r:o,g:n,b:r,a:s}=t,{h:i,s:l,v:c}=Lf(t);return{r:o,g:n,b:r,a:s===void 0?1:s,h:i,s:l,v:c}}function no(a){const t=document.createElement("canvas"),o=t.getContext("2d"),n=a*2;return t.width=n,t.height=n,o.fillStyle="#ffffff",o.fillRect(0,0,n,n),o.fillStyle="#ccd5db",o.fillRect(0,0,a,a),o.fillRect(a,a,a,a),t}function io(a,t,o,n,r,s){const i=a==="l",l=t.createLinearGradient(0,0,i?o:0,i?0:n);l.addColorStop(.01,r),l.addColorStop(.99,s),t.fillStyle=l,t.fillRect(0,0,o,n)}function Of({r:a,g:t,b:o},n){const r=i=>("0"+Number(i).toString(16)).slice(-2),s=`#${r(a)}${r(t)}${r(o)}`;return n?s.toUpperCase():s}function If(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 Lr(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 Lf({r:a,g:t,b:o}){a=a/255,t=t/255,o=o/255;const n=Math.max(a,t,o),r=Math.min(a,t,o),s=n-r;let i=0;n===r?i=0:n===a?t>=o?i=60*(t-o)/s:i=60*(t-o)/s+360:n===t?i=60*(o-a)/s+120:n===o&&(i=60*(a-t)/s+240),i=Math.floor(i);let l=parseFloat((n===0?0:1-r/n).toFixed(2)),c=parseFloat(n.toFixed(2));return{h:i,s:l,v:c}}var so=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),io("l",o,t,t,"#FFFFFF","rgba(255,255,255,0)"),io("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(),n=a.target.getContext("2d"),r=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 p=n.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,u,m]=p.data;this.$emit("selectSaturation",{r:d,g:u,b:m})};r(a);const s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}}});const Df={ref:"canvasSaturation"};function jf(a,t,o,n,r,s){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",Df,null,512),e.createVNode("div",{style:a.slideSaturationStyle,class:"slide"},null,4)],32)}so.render=jf,so.__file="src/color/Saturation.vue";var lo=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,n=a.getContext("2d");a.width=t,a.height=o;const r=n.createLinearGradient(0,0,0,o);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),n.fillStyle=r,n.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"),n=s=>{let i=s.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,p,d]=l.data;this.$emit("selectHue",{r:c,g:p,b:d})};n(a);const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}});const Pf={ref:"canvasHue"};function zf(a,t,o,n,r,s){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",Pf,null,512),e.createVNode("div",{style:a.slideHueStyle,class:"slide"},null,4)],32)}lo.render=zf,lo.__file="src/color/Hue.vue";var co=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,n=this.alphaSize,r=no(n),s=a.getContext("2d");a.width=t,a.height=o,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,t,o),io("p",s,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=r=>{let s=r.clientY-t;s<0&&(s=0),s>this.height&&(s=this.height);let i=parseFloat((s/this.height).toFixed(2));this.$emit("selectAlpha",i)};o(a);const n=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",n)}}});const Hf={ref:"canvasAlpha"};function Rf(a,t,o,n,r,s){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",Hf,null,512),e.createVNode("div",{style:a.slideAlphaStyle,class:"slide"},null,4)],32)}co.render=Rf,co.__file="src/color/Alpha.vue";var po=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,n=this.alphaSize,r=no(n),s=a.getContext("2d");a.width=t,a.height=o,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,t,o),s.fillStyle=this.color,s.fillRect(0,0,t,o)}}});function Uf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("canvas")}po.render=Uf,po.__file="src/color/Preview.vue";var uo=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:n,left:r,width:s,height:i}=this.suckerCanvas.getBoundingClientRect(),l=t-r,c=o-n,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,i-1),1,1);let[u,m,g,f]=d.data;f=parseFloat((f/255).toFixed(2));const C=this.suckerPreview.style;Object.assign(C,{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(${u}, ${m}, ${g}, ${f})`,zIndex:95}),this.suckerArea.length&&t>=this.suckerArea[0]&&o>=this.suckerArea[1]&&t<=this.suckerArea[2]&&o<=this.suckerArea[3]?C.display="":C.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:n}=t,{top:r,left:s,width:i,height:l}=a.getBoundingClientRect(),c=o-s,p=n-r,u=a.getContext("2d").getImageData(Math.min(c,i-1),Math.min(p,l-1),1,1);let[m,g,f,C]=u.data;C=parseFloat((C/255).toFixed(2)),this.$emit("selectSucker",{r:m,g,b:f,a:C})}))}}});const Ff=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),Zf={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Wf=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 qf(a,t,o,n,r,s){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))},[Ff],2)),a.isSucking?(e.openBlock(),e.createBlock("svg",Zf,[Wf])):e.createCommentVNode("v-if",!0)])}uo.render=qf,uo.__file="src/color/Sucker.vue";var mo=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(s){t("inputColor",s)}}),handleFocus:s=>{t("inputFocus",s)},handleBlur:s=>{t("inputBlur",s)}}}});const Yf={class:"color-type"},Kf={class:"name"};function Gf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("div",Yf,[e.createVNode("span",Kf,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]])])}mo.render=Gf,mo.__file="src/color/Box.vue";var fo=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(),n=e.ref([]),r=e.ref();a.colorsHistoryKey&&localStorage&&(n.value=JSON.parse(localStorage.getItem(a.colorsHistoryKey))||[]),r.value=no(4).toDataURL(),e.onUnmounted(()=>{s(o.value)});function s(l){if(!l)return;const c=n.value||[],p=c.indexOf(l);p>=0&&c.splice(p,1),c.length>=8&&(c.length=7),c.unshift(l),n.value=c||[],localStorage&&a.colorsHistoryKey&&localStorage.setItem(a.colorsHistoryKey,JSON.stringify(c))}function i(l){t("selectColor",l)}return{setColorsHistory:s,colorsHistory:n,color:o,imgAlphaBase64:r,selectColor:i}}});const Xf={class:"colors"},Qf={key:0,class:"colors history"};function Jf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("div",null,[e.createVNode("ul",Xf,[(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",Qf,[(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)])}fo.render=Jf,fo.__file="src/color/Colors.vue";var bt=e.defineComponent({components:{Saturation:so,Hue:lo,Alpha:co,Preview:po,Sucker:uo,Box:mo,Colors:fo},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 Of(this.rgba,!0)}},created(){Object.assign(this,ot(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:n,h:r,s,v:i}=ot(a);Object.assign(this,{r:t,g:o,b:n,h:r,s,v:i}),this.setText()},handleFocus(a){this.$emit("inputFocus",a)},handleBlur(a){this.$emit("inputBlur",a)},selectHue(a){const{r:t,g:o,b:n,h:r,s,v:i}=ot(a);Object.assign(this,{r:t,g:o,b:n,h:r,s,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:n,a:r,h:s,s:i,v:l}=ot(a);Object.assign(this,{r:t,g:o,b:n,a:r,h:s,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:n,a:r,h:s,s:i,v:l}=ot(a);Object.assign(this,{r:t,g:o,b:n,a:r,h:s,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:n,a:r,h:s,s:i,v:l}=ot(a);Object.assign(this,{r:t,g:o,b:n,a:r,h:s,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:n,a:r,h:s,s:i,v:l}=ot(a);Object.assign(this,{r:t,g:o,b:n,a:r,h:s,s:i,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const eh={class:"color-set"};function th(a,t,o,n,r,s){const i=e.resolveComponent("Saturation"),l=e.resolveComponent("Hue"),c=e.resolveComponent("Alpha"),p=e.resolveComponent("Preview"),d=e.resolveComponent("Sucker"),u=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",eh,[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(p,{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(u,{name:"HEX",color:a.modelHex,onInputColor:a.inputHex,onInputFocus:a.handleFocus,onInputBlur:a.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),e.createVNode(u,{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)}bt.render=th,bt.__file="src/color/ColorPicker.vue",bt.install=a=>{a.component(bt.name,bt)};const G9="",ah={class:"color-picker-wrapper"},Ea=e.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(a,{emit:t}){const o=a,n=e.ref(!1),r=e.ref(null),s=e.ref(null),i=e.ref(0),l=e.ref(0),c=async g=>{s.value=g,n.value=!0,await e.nextTick();const f=g.getBoundingClientRect(),C=r.value,h=(C==null?void 0:C.offsetHeight)||300,y=window.innerHeight-f.bottom,v=f.top,_=y<h&&v>h;console.log("pickerHeight = "+h),i.value=_?f.top-h-8:f.bottom+8,l.value=f.left,setTimeout(()=>{window.addEventListener("click",d)},0)},p=e.computed(()=>({position:"fixed",top:`${i.value}px`,left:`${l.value}px`,zIndex:1e3})),d=g=>{const f=g.target;r.value&&!r.value.contains(f)&&(n.value=!1,t("update:color",u.value),window.removeEventListener("click",d))};e.onBeforeUnmount(()=>{window.removeEventListener("click",d)}),e.watch(()=>o.color,g=>{n.value||(u.value=g)});const u=e.ref(o.color),m=g=>{const{r:f,g:C,b:h,a:y}=g.rgba;u.value=`rgba(${f}, ${C}, ${h}, ${y})`};return(g,f)=>(e.openBlock(),e.createElementBlock("div",ah,[e.renderSlot(g.$slots,"clickable",{openPicker:c,bgColor:g.color}),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:r,class:"color-picker",style:e.normalizeStyle(p.value)},[e.createVNode(e.unref(bt),{class:"color-picker-box",theme:"light",color:g.color,onChangeColor:m},null,8,["color"])],4)):e.createCommentVNode("",!0)]))}}),X9="",oh={class:"ao-card-project-phase__header"},rh={class:"ao-card-project-item__title-line"},nh={key:0,class:"ao-card-project-item-phase__estimation"},ih={class:"ao-card-project-phase__footer"},sh={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},lh={class:"ao-card-project-phase__subitem"},ch={class:"ao-card-project-phase__subitem"},dh={key:0,class:"ao-card-project-phase__secondary"},ph={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},uh=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,n=f=>{t("update:title",f)},r=e.computed(()=>{var f;return((f=o.milestones)==null?void 0:f.reduce((C,h)=>{var y;return C+((y=h.activities)==null?void 0:y.reduce((v,_)=>v+(_.estimation||0),0))},0))||0}),s=e.computed(()=>!o.milestones||!o.timeTrackingData?0:o.milestones.reduce((f,C)=>{var h;return f+(((h=C.activities)==null?void 0:h.reduce((y,v)=>{var b;const _=(b=o.timeTrackingData)==null?void 0:b[v.id];return y+((_==null?void 0:_.timeSpent)||0)},0))||0)},0)),i=e.computed(()=>o.estimationUnit==="days"?"d":"h"),l=e.computed(()=>ia(s.value,o.estimationUnit)),c=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.length}),p=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.filter(C=>C.status===$t.done).length}),d=e.computed(()=>(p.value||0)/(c.value||1)),u=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})}}),g=(f,C)=>{const h=f.target;h.closest("button")||h.closest("input")||h.closest(".ao-title")||C(h)};return(f,C)=>(e.openBlock(),e.createBlock(Ea,{color:m.value,"onUpdate:color":C[2]||(C[2]=h=>m.value=h)},{clickable:e.withCtx(({openPicker:h,bgColor:y})=>[e.createVNode(ka,{class:"ao-card-project-phase","is-clickable":f.isEditable,color:y,withLeftBorder:!0,onClick:v=>g(v,h)},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",rh,[e.createVNode(ne,{id:f.id,class:"ao-card-project-phase__title",title:f.name||"",level:4,"is-editable":f.isEditable,"onUpdate:title":n},null,8,["id","title","is-editable"]),r.value||s.value?(e.openBlock(),e.createElementBlock("span",nh," ("+e.toDisplayString(l.value)+"/"+e.toDisplayString(r.value)+e.toDisplayString(i.value)+")",1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",ih,[c.value?(e.openBlock(),e.createElementBlock("div",sh,[e.createElementVNode("div",lh,[e.createVNode(ee,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",ch,e.toDisplayString(p.value)+" / "+e.toDisplayString(c.value),1)]),e.createVNode($a,{percentages:d.value,class:"ao-card-project-phase__progress",color:f.color},null,8,["percentages","color"]),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",dh,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ao-card-project-phase__footer-row",u.value?"":"ao-card-project-phase__no_deadline"])},[f.isEditable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=v=>u.value=v),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[e.vModelText,u.value,void 0,{lazy:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("span",ph,e.toDisplayString(e.unref(sa)(f.deadline)),1)],2)])]),_:2},[f.isEditable?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",oh,[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:C[0]||(C[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"]))}}),Q9="",mh=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))}}),J9="",fh={class:"ao-card-project-milestone__default"},hh={class:"ao-title-with-badge-wrapper"},gh={class:"ao-card-project-item__title-line"},_h={key:0,class:"ao-card-project-item-milestone__estimation"},vh={key:0,class:"ao-card-project-milestone__archive"},bh={class:"ao-card-project-milestone__activities"},Ch={class:"ao-card-project-milestone__activities-row"},yh={class:"ao-card-project-milestone__subitem"},wh={class:"ao-card-project-milestone__subitem"},kh={key:1,class:"ao-card-project-milestone__secondary"},$h={class:"ao-card-project-milestone__footer"},Eh={key:1,class:"ao-field ao-card-project-milestone__deadline"},Bh={class:"ao-field__label"},Vh={key:2,class:"ao-card-project-milestone__assignee"},Sh=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,n=e.computed(()=>{var u;return((u=o.activities)==null?void 0:u.reduce((m,g)=>m+(g.estimation||0),0))||0}),r=e.computed(()=>!o.activities||!o.timeTrackingData?0:o.activities.reduce((u,m)=>{var f;const g=(f=o.timeTrackingData)==null?void 0:f[m.id];return u+((g==null?void 0:g.timeSpent)||0)},0)),s=e.computed(()=>o.estimationUnit==="days"?"d":"h"),i=e.computed(()=>ia(r.value,o.estimationUnit));e.computed(()=>{const u=r.value/60;return u%1===0?u.toString():u.toFixed(2)});const l=e.computed(()=>{var u;return(u=o.activities)==null?void 0:u.length}),c=e.computed(()=>{var u;return(u=o.activities)==null?void 0:u.filter(m=>za(m,o.closedStatus)).length}),p=e.computed(()=>(c.value||0)/(l.value||1)),d=u=>{t("updateMilestone",{id:o.id,name:u})};return(u,m)=>(e.openBlock(),e.createBlock(ka,{class:e.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!u.readonly,"tag-name":"li","is-selected":u.isSelected,color:u.phaseColor},{default:e.withCtx(()=>[e.createElementVNode("div",fh,[e.createElementVNode("div",hh,[e.createVNode(mh,{color:u.color||""},null,8,["color"]),e.createElementVNode("div",gh,[e.createVNode(ne,{id:u.id,title:u.name||"",level:5,"is-editable":!u.readonly&&u.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":d},null,8,["id","title","is-editable"]),n.value||r.value?(e.openBlock(),e.createElementBlock("span",_h," ("+e.toDisplayString(i.value)+"/"+e.toDisplayString(n.value)+e.toDisplayString(s.value)+")",1)):e.createCommentVNode("",!0)])]),!u.readonly&&u.isEditable?(e.openBlock(),e.createElementBlock("div",vh,[e.createVNode(G,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:u.active?u.$t("archive"):u.$t("unarchive"),onClick:m[0]||(m[0]=e.withModifiers(()=>u.active?u.$emit("archiveMilestone",{id:u.id}):u.$emit("unarchiveMilestone",{id:u.id}),["stop"]))},null,8,["label"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",bh,[e.createElementVNode("div",Ch,[l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",yh,[e.createVNode(ee,{name:"SelectCheckBox",size:"sm"}),e.createElementVNode("span",wh,e.toDisplayString(c.value)+" / "+e.toDisplayString(l.value),1)]),e.createVNode($a,{percentages:p.value,color:u.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):e.createCommentVNode("",!0),u.$slots.secondary?(e.openBlock(),e.createElementBlock("div",kh,[e.renderSlot(u.$slots,"secondary")])):e.createCommentVNode("",!0)])])]),footer:e.withCtx(()=>[e.createElementVNode("div",$h,[u.important?(e.openBlock(),e.createBlock(ee,{key:0,name:"FlagRounded",class:e.normalizeClass(u.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):e.createCommentVNode("",!0),u.deadline?(e.openBlock(),e.createElementBlock("label",Eh,[e.createElementVNode("span",Bh,e.toDisplayString(e.unref(sa)(u.deadline)),1)])):e.createCommentVNode("",!0),u.assignee?(e.openBlock(),e.createElementBlock("div",Vh,[e.createVNode(Ve,{"user-name":e.unref(or)(u.assignee),"avatar-url":u.assignee.avatarUrl,color:u.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):e.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}}),e4="",Nh={class:"ao-mapping-card-project-phase__header"},xh={class:"ao-card-project-item__title-line"},Mh={key:0,class:"ao-card-project-item-phase__estimation"},Th={class:"ao-mapping-card-project-phase__footer"},Ah={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Oh={class:"ao-mapping-card-project-phase__subitem"},Ih={class:"ao-mapping-card-project-phase__subitem"},Lh={key:0,class:"ao-mapping-card-project-phase__secondary"},Dh={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},jh=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,n=f=>{t("update:title",f)},r=e.computed(()=>{var f;return((f=o.milestones)==null?void 0:f.reduce((C,h)=>{var y;return C+((y=h.activities)==null?void 0:y.reduce((v,_)=>v+(_.estimation||0),0))},0))||0}),s=e.computed(()=>!o.milestones||!o.timeTrackingData?0:o.milestones.reduce((f,C)=>{var h;return f+(((h=C.activities)==null?void 0:h.reduce((y,v)=>{var b;const _=(b=o.timeTrackingData)==null?void 0:b[v.id];return y+((_==null?void 0:_.timeSpent)||0)},0))||0)},0)),i=e.computed(()=>o.estimationUnit==="days"?"d":"h"),l=e.computed(()=>ia(s.value,o.estimationUnit)),c=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.length}),p=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.filter(C=>C.status===$t.done).length}),d=e.computed(()=>(p.value||0)/(c.value||1)),u=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})}}),g=(f,C)=>{const h=f.target;h.closest("button")||h.closest("input")||h.closest(".ao-title")||C()};return(f,C)=>(e.openBlock(),e.createBlock(Ea,{color:m.value,"onUpdate:color":C[2]||(C[2]=h=>m.value=h)},{clickable:e.withCtx(({openPicker:h,bgColor:y})=>[e.createVNode(ka,{class:"ao-mapping-card-project-phase","is-clickable":f.isEditable,color:y,withLeftBorder:!0,onClick:v=>g(v,h)},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",xh,[e.createVNode(ne,{id:f.id,class:"ao-mapping-card-project-phase__title",title:f.name||"",level:4,"is-editable":f.isEditable,"onUpdate:title":n},null,8,["id","title","is-editable"]),r.value||s.value?(e.openBlock(),e.createElementBlock("span",Mh," ("+e.toDisplayString(l.value)+"/"+e.toDisplayString(r.value)+e.toDisplayString(i.value)+")",1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",Th,[c.value?(e.openBlock(),e.createElementBlock("div",Ah,[e.createElementVNode("div",Oh,[e.createVNode(ee,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",Ih,e.toDisplayString(p.value)+" / "+e.toDisplayString(c.value),1)]),e.createVNode($a,{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",Lh,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ao-mapping-card-project-phase__footer-row",u.value?"":"ao-mapping-card-project-phase__no_deadline"])},[f.isEditable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=v=>u.value=v),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[e.vModelText,u.value,void 0,{lazy:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("span",Dh,e.toDisplayString(e.unref(sa)(f.deadline)),1)],2)])]),_:2},[f.isEditable?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",Nh,[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:C[0]||(C[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"]))}}),t4="",Ph={class:"ao-project-phase"},zh={key:0,class:"ao-project-phase__drag ao-card__drag"},Hh={key:1,class:"ao-project-phase__col-phase"},Rh={key:2,class:"ao-mapping-project-phase__col-phase"},Uh={key:0,class:"ao-project-phase__col-milestones"},Fh={class:"ao-project-phase__milestones-list-footer"},Zh=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:n}=Te();e.watch(()=>o.phase.milestones,(v,_)=>{Ae(v,_)});const r=v=>{t("updatePhase",{id:o.phase.id,name:v})},s=v=>{t("updatePhase",{id:o.phase.id,deadline:v})},i=v=>{t("updatePhase",v)},l=e.computed(()=>o.phase.milestones.map(v=>yu(v,o.closedStatus))),c=v=>{const{name:_,rank:b}=at(l.value??[],"milestone",n);t("addMilestone",{name:_,rank:b,phaseId:v})},p=v=>{t("updateMilestone",v)},d=v=>{t("archiveMilestone",v)},u=v=>{t("unarchiveMilestone",v)},m=v=>{t("archivePhase",v)},g=v=>{t("unarchivePhase",v)},f=v=>{"added"in v?t("updateMilestone",{id:v.added.element.id,phaseId:o.phase.id,rank:pt(l.value,v.added.newIndex)}):"removed"in v||"moved"in v&&t("updateMilestone",{id:v.moved.element.id,rank:pt(l.value,v.moved.newIndex)})},C=De.useRoute(),h=e.computed(()=>C.path.includes("/mapping")),y=e.computed(()=>{var v;return o.phase.id!==((v=C.params)==null?void 0:v.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:ku(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,_)=>(e.openBlock(),e.createElementBlock("li",Ph,[e.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:e.normalizeStyle(y.value)},[v.isEditable?(e.openBlock(),e.createElementBlock("div",zh,[e.createVNode(ee,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",Rh,[e.createVNode(jh,{id:v.phase.id,milestones:l.value,name:v.phase.name,deadline:v.phase.deadline,active:v.phase.active,"is-editable":v.isEditable,color:v.phase.color,"estimation-unit":v.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":r,onArchivePhase:m,onUnarchivePhase:g,onUpdatePhase:i},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(e.openBlock(),e.createElementBlock("div",Hh,[e.createVNode(uh,{id:v.phase.id,milestones:l.value,name:v.phase.name,deadline:v.phase.deadline,active:v.phase.active,"is-editable":v.isEditable,color:v.phase.color,"time-tracking-data":v.timeTrackingData,"estimation-unit":v.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":r,onArchivePhase:m,onUnarchivePhase:g,onUpdatePhase:i},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Uh,[e.createElementVNode("div",{class:"ao-project-phase__milestones",style:e.normalizeStyle(y.value)},[e.createVNode(e.unref(je),e.mergeProps({class:"ao-project-phase__milestones-list",list:l.value,disabled:v.readonly||!v.isEditable,"item-key":"id",group:"kanban"},v.$attrs,{onChange:f}),{item:e.withCtx(({element:b})=>{var B;return[e.createVNode(Sh,{id:b.id,name:b.name,color:b.color,"phase-color":v.phase.color,activities:b.activities,deadline:b.deadline,active:b.active,"is-editable":!v.readonly&&v.isEditable,"is-draggable":!v.readonly&&v.isEditable,"closed-status":v.closedStatus,"is-selected":b.id===((B=v.$route.params)==null?void 0:B.milestoneId),assignee:b.assignee,important:b.important,readonly:v.readonly,"time-tracking-data":v.timeTrackingData,"estimation-unit":v.estimationUnit,class:e.normalizeClass(["ao-project-phase__milestone"]),onClick:E=>!v.readonly&&v.$router.push({name:e.unref(re).milestone,params:{phaseId:v.phase.id,milestoneId:b.id}}),onUpdateMilestone:p,onArchiveMilestone:d,onUnarchiveMilestone:u},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",Fh,[v.isEditable?(e.openBlock(),e.createBlock(ze,{key:0,label:v.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:_[0]||(_[0]=()=>c(v.phase.id))},null,8,["label"])):e.createCommentVNode("",!0)])],4)]))]))}}),a4="",Wh={class:"ao-project__phases"},qh={key:0,class:"ao-project-phase__phases-list-footer"},Yh=e.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1),Kh={class:"ao-project-phase__col-phase"},Gh=e.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1),ho=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,g)=>{Ae(m,g)});const n=m=>{t("addMilestone",m)},r=m=>{t("updateMilestone",m)},s=m=>{t("archiveMilestone",m)},i=m=>{t("unarchiveMilestone",m)},l=m=>{t("archivePhase",m)},c=m=>{t("unarchivePhase",m)},p=m=>{if(m.moved){const g=Lt(m,o.phases??[]);t("updatePhase",{id:m.moved.element.id,rank:g})}},d=m=>{t("updatePhase",m)},u=m=>{t("addPhase",m)};return(m,g)=>(e.openBlock(),e.createElementBlock("div",Wh,[e.createVNode(e.unref(je),{class:"ao-project-phase__phases-list","model-value":m.phases,"item-key":"id",handle:".ao-card__drag",onChange:p},{item:e.withCtx(({element:f})=>[e.createVNode(Zh,{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:n,onUpdateMilestone:r,onArchiveMilestone:s,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",qh,[Yh,e.createElementVNode("div",Kh,[e.createVNode(ze,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:u},null,8,["label"])]),Gh])):e.createCommentVNode("",!0)]))}}),o4="",Xh=["onSubmit"],Qh={class:"ao-add-template-modal__form-body"},Jh={class:"field__row"},e5={class:"ao-add-template-modal__form-footer"},Dr=e.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(a,{emit:t}){const o=a,n=e.computed(()=>o.templates.map(l=>({value:l.id,label:l.name}))),r=e.ref(null),s=l=>{r.value=l},i=()=>{r.value&&t("apply",r.value,o.projectId)};return(l,c)=>(e.openBlock(),e.createBlock(la,{size:"sm"},{header:e.withCtx(()=>[e.createVNode(ne,{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",Qh,[e.createElementVNode("div",Jh,[e.createVNode(pe,{value:r.value,options:n.value,detached:!0,onChange:s},null,8,["value","options"])])]),e.createElementVNode("footer",e5,[e.createVNode(G,{label:l.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:i},null,8,["label"])])],40,Xh)]),_:1}))}}),r4="",t5=["onSubmit"],a5={class:"ao-save-template-modal__form-body"},o5={class:"field__row"},r5={class:"ao-field ao-field--inline"},n5={class:"ao-field__label"},i5={class:"ao-save-template-modal__phases"},s5={class:"ao-field__label"},l5={class:"ao-save-template-modal__phases-list"},c5=["value"],d5={class:"ao-save-template-modal__form-footer"},jr=e.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(a,{emit:t}){const o=a,n=e.ref(""),r=e.ref([]);e.onMounted(()=>{r.value=o.phases.map(i=>i.id)});const s=()=>{n.value&&t("save",n.value,r.value)};return(i,l)=>(e.openBlock(),e.createBlock(la,{size:"sm"},{header:e.withCtx(()=>[e.createVNode(ne,{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(s,["prevent"])},[e.createElementVNode("div",a5,[e.createElementVNode("div",o5,[e.createElementVNode("label",r5,[e.createElementVNode("span",n5,e.toDisplayString(i.$t("project.template.name.label"))+": ",1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),type:"text"},null,512),[[e.vModelText,n.value]])])]),e.createElementVNode("div",i5,[e.createElementVNode("div",s5,e.toDisplayString(i.$t("project.template.phases.label")),1),e.createElementVNode("div",l5,[(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]=p=>r.value=p)},null,8,c5),[[e.vModelCheckbox,r.value]]),e.createElementVNode("span",null,e.toDisplayString(c.name),1)]))),128))])])]),e.createElementVNode("footer",d5,[e.createVNode(G,{label:i.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:s},null,8,["label"])])],40,t5)]),_:1}))}}),n4="",p5={class:"ao-project"},u5={class:"ao-project__body"},m5=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:n}=Te(),r=e.computed(()=>o.phases.flatMap($=>$.milestones)),s=()=>{const{name:$,rank:L}=at(o.phases,"phase",n);t("addPhase",{name:$,rank:L,projectId:o.project.id})},i=$=>{t("updatePhase",$)},l=$=>{t("archivePhase",$)},c=$=>{t("unarchivePhase",$)},p=$=>{t("copyPhaseToTemplate",$)},d=$=>{t("addMilestone",$)},u=$=>{t("updateMilestone",$)},m=$=>{t("archiveMilestone",$)},g=$=>{t("unarchiveMilestone",$)},f=$=>{t("addActivity",$)},C=$=>{t("update:activity",$)},h=$=>{t("archiveActivity",$)},y=$=>{t("unarchiveActivity",$)},v=$=>{t("addSubtask",$)},_=$=>{t("updateSubtask",$)},b=$=>{t("deleteSubtask",$)},B=e.computed(()=>r.value.flatMap($=>$.activities)),E=$=>{t("addFiles",$)},N=$=>{t("removeFile",$)},I=$=>{t("addComment",$)},z=$=>{t("updateComment",$)},R=$=>{t("removeComment",$)},F=e.ref(!1),A=e.ref(!1),H=($,L)=>{t("applyTemplate",{templateId:$,projectId:L}),F.value=!1},K=($,L)=>{var q;const V=(q=o.templates)==null?void 0:q.at(-1),D=V?ie.LexoRank.parse(V.rank).genNext():ie.LexoRank.middle();t("saveTemplate",{templateName:$,rank:D.format(),phaseIds:L}),A.value=!1},W=De.useRouter(),U=e.ref("overview"),S=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch(U,$=>{$==="feed"?(W.push({name:re.feed}),console.log("Navigating to feed...")):$==="overview"?(W.push({name:re.project}),console.log("Navigating to feed...")):$==="mapping"&&(W.push({name:re.mapping}),console.log("Navigating to feed..."))}),($,L)=>{var D;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",p5,[e.createVNode(Dt,null,{primary:e.withCtx(()=>[e.createVNode(Ft,{tabs:S,modelValue:U.value,"onUpdate:modelValue":L[0]||(L[0]=q=>U.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=>A.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=>F.value=!0)},null,8,["label"])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",u5,[e.createVNode(ho,{phases:$.phases,"closed-status":$.closedStatus,"is-editable":$.isEditable===!0,users:$.users,"time-tracking-data":$.timeTrackingData,"estimation-unit":(D=$.project)==null?void 0:D.estimationUnit,onAddMilestone:d,onUpdateMilestone:u,onArchiveMilestone:m,onUnarchiveMilestone:g,onAddPhase:s,onUpdatePhase:i,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:p},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(re).project})),onUpdateMilestone:u,onAddActivity:f,onUpdateActivity:C,onArchiveActivity:h,onUnarchiveActivity:y},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":C,onAddSubtask:v,onUpdateSubtask:_,onDeleteSubtask:b,onAddFiles:E,onRemoveFile:N,onAddComment:I,onUpdateComment:z,onRemoveComment:R},{default:e.withCtx(({Component:q})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q),null,{default:e.withCtx(w=>[e.renderSlot($.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(w)))]),_: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"},[A.value?(e.openBlock(),e.createBlock(jr,{key:0,phases:$.phases,onClose:L[5]||(L[5]=q=>A.value=!1),onSave:K},null,8,["phases"])):e.createCommentVNode("",!0),F.value?(e.openBlock(),e.createBlock(Dr,{key:1,"project-id":$.project.id,templates:$.templates,onClose:L[6]||(L[6]=q=>F.value=!1),onApply:H},null,8,["project-id","templates"])):e.createCommentVNode("",!0)]))],64)}}}),i4="",f5={class:"ao-card-feed__header"},h5={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},g5={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},_5={class:"ao-card-feed__body"},v5={key:0,class:"ao-card-feed__breadcrumbs"},b5={class:e.normalizeClass(["ao-card-feed__title-group"])},C5={class:"ao-card-feed__title-line"},y5={key:0,class:"ao-card-feed__slug"},w5={key:1,class:"ao-card-feed__deadline"},k5={class:"ao-card-feed__footer"},$5={class:"ao-card-feed__footer-row"},E5={class:"ao-assignees"},B5={key:0,class:"ao-assignee"},V5={key:0,class:"ao-card-feed__subitems"},S5={key:0,class:"ao-card-feed__subitem"},N5={class:"ao-card-feed__subitem"},x5={key:1,class:"ao-card-feed__subitem"},M5={class:"ao-card-feed__subitem"},T5={class:"ao-card-feed__timer-wrapper"},A5={class:"ao-card-feed__footer-row"},O5={key:0,class:"ao-card-feed__progress-wrapper"},I5={class:"ao-card-feed__subitem"},L5={class:"ao-card-feed__subitem"},go=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,n=e.computed(()=>o.tagType==="milestone"?o.milestoneName:o.projectName),r=e.computed(()=>o.tagType==="milestone"?o.milestoneColor:o.projectColor),s=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(()=>sa(o.deadline)),p=f=>{t("removeAssignee",f)},d=()=>{t("startTimer",{activityId:o.id,name:o.name,project:o.projectName,projectId:o.projectId,slug:o.slug})},u=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(C=>C.isDone).length}),g=e.computed(()=>(m.value||0)/(u.value||1));return(f,C)=>(e.openBlock(),e.createBlock(ka,{class:e.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":f.isClosed}]),"is-clickable":!0},{header:e.withCtx(()=>[e.createElementVNode("div",f5,[n.value?(e.openBlock(),e.createBlock(kt,{key:0,label:n.value,class:"ao-card-feed__project",variant:"solid",color:f.projectColor?void 0:"primary","raw-color":r.value},null,8,["label","color","raw-color"])):e.createCommentVNode("",!0),f.isPrivate||f.important||f.isClosed?(e.openBlock(),e.createElementBlock("div",h5,[f.isPrivate?(e.openBlock(),e.createBlock(ee,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):e.createCommentVNode("",!0),f.important?(e.openBlock(),e.createBlock(ee,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):e.createCommentVNode("",!0),f.isClosed?(e.openBlock(),e.createBlock(ee,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",g5,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",_5,[i.value?(e.openBlock(),e.createElementBlock("span",v5,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",b5,[e.createElementVNode("div",C5,[f.slug?(e.openBlock(),e.createElementBlock("span",y5,e.toDisplayString(f.slug)+": ",1)):e.createCommentVNode("",!0),e.createVNode(ne,{id:f.id,title:f.name,level:5,"is-editable":f.isEditable,"onUpdate:title":s,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),f.deadline?(e.openBlock(),e.createElementBlock("span",w5,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",k5,[e.createElementVNode("div",$5,[e.createElementVNode("ul",E5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h.id},[h?(e.openBlock(),e.createElementBlock("li",B5,[e.createVNode(Ve,{"user-name":e.unref(or)(h),"avatar-url":h.avatarUrl,"is-closable":!0,onClose:()=>p(h.id)},null,8,["user-name","avatar-url","onClose"])])):e.createCommentVNode("",!0)],64))),128))]),f.comments||f.attachments?(e.openBlock(),e.createElementBlock("ul",V5,[f.comments?(e.openBlock(),e.createElementBlock("li",S5,[e.createVNode(ee,{name:"ChatOutline",size:"sm"}),e.createElementVNode("span",N5,e.toDisplayString(f.comments),1)])):e.createCommentVNode("",!0),f.attachments?(e.openBlock(),e.createElementBlock("li",x5,[e.createVNode(ee,{name:"AttachFileRounded",size:"sm"}),e.createElementVNode("span",M5,e.toDisplayString(f.attachments),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T5,[e.createVNode(ee,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:e.withModifiers(d,["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",A5,[f.tasks&&f.tasks.length?(e.openBlock(),e.createElementBlock("div",O5,[e.createElementVNode("div",I5,[e.createVNode(ee,{name:"SelectCheckBox",size:"sm"}),e.createElementVNode("span",L5,e.toDisplayString(m.value)+" / "+e.toDisplayString(u.value),1)]),e.createVNode($a,{percentages:g.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):e.createCommentVNode("",!0)])])]),_:3},8,["class"]))}}),s4="",D5={class:"ao-project-milestone"},j5={class:"ao-project-milestone__header"},P5={class:"ao-project-milestone__header_line"},z5={class:"ao-project-milestone__header_line"},H5={class:"ao-project-milestone__title"},R5={key:0,class:"ao-fieldset ao-milestone__fieldset"},U5={class:"ao-field__row ao-milestone__field-row"},F5={class:"ao-field ao-field--inline"},Z5={class:"ao-field__row ao-milestone__field-row"},W5={class:"ao-field ao-milestone__field-multiselect"},q5=["onClick"],Y5={class:"ao-project-milestone__body"},K5={key:0,class:"ao-project-milestone__footer"},Pr=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:n}=Te(),r=b=>{var B;t("startTimer",b),(B=window.parent)==null||B.postMessage({type:"startTimer",data:b},"*")},s=e.computed(()=>{var b;return(b=o.phases)==null?void 0:b.find(B=>B.id===o.phaseId)}),i=e.computed(()=>{var b;return(b=o.phases)==null?void 0:b.flatMap(B=>B.milestones)}),l=e.computed(()=>{var b;return(b=i.value)==null?void 0:b.find(B=>B.id===o.milestoneId)}),c=e.computed(()=>{var b;return(b=l.value)==null?void 0:b.activities});e.watch(c,(b,B)=>{Ae(b,B)});const p=b=>{t("close",b)},d=()=>{const{name:b,rank:B}=at(c.value??[],"activity",n);t("addActivity",{milestoneId:o.milestoneId,name:b,rank:B,projectId:o.projectId})},u=b=>{t("updateActivity",b)},m=b=>{c.value&&"moved"in b&&t("updateActivity",{id:b.moved.element.id,rank:pt(c.value,b.moved.newIndex)})},g=e.computed({get:()=>{var b;return(b=l.value)==null?void 0:b.color},set:b=>{l.value&&t("updateMilestone",{id:l.value.id,color:b})}}),f=e.computed({get:()=>{var b;return((b=l==null?void 0:l.value)==null?void 0:b.deadline)??""},set:b=>{l.value&&t("updateMilestone",{id:l.value.id,deadline:b!=null&&b.length?b:null})}}),C=b=>o.closedStatus?za(b,o.closedStatus):!1,h=e.computed(()=>{var b;return((b=o.users)==null?void 0:b.map(B=>({label:`${B.firstName} ${B.lastName}`,value:B.id,avatar:B.avatarUrl})))||[]}),y=e.computed({get(){var b,B;return(B=(b=l.value)==null?void 0:b.assignee)!=null&&B.id?[l.value.assignee.id]:[]},set(b){t("updateMilestone",{id:o.milestoneId,assigneeId:b[0]??null})}}),v=e.computed({get(){var b;return((b=l.value)==null?void 0:b.important)??!1},set(b){t("updateMilestone",{id:o.milestoneId,important:b})}}),_=(b,B)=>{const E=b.currentTarget;E instanceof HTMLElement&&B(E)};return(b,B)=>{var E;return e.openBlock(),e.createElementBlock("div",D5,[e.createElementVNode("header",j5,[e.createElementVNode("div",P5,[e.createVNode(G,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:p})]),e.createElementVNode("div",z5,[e.createElementVNode("div",H5,[e.createVNode(ne,{title:((E=l.value)==null?void 0:E.name)||b.milestoneId,level:5},null,8,["title"]),e.createVNode(Or,{modelValue:v.value,"onUpdate:modelValue":B[0]||(B[0]=N=>v.value=N),modelModifiers:{lazy:!0},disabled:!b.isEditable,class:"ao-milestone__important",color:"danger",label:b.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),l.value?(e.openBlock(),e.createElementBlock("div",R5,[e.createElementVNode("div",U5,[e.createElementVNode("label",F5,[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",Z5,[e.createElementVNode("label",W5,[e.createVNode(pe,{modelValue:y.value,"onUpdate:modelValue":B[2]||(B[2]=N=>y.value=N),options:h.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:b.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!b.isEditable,caret:b.isEditable},{tag:e.withCtx(({option:N,handleTagRemove:I})=>[e.createVNode(Ve,{"user-name":N.label,"avatar-url":N.avatar,"is-closable":!0,onClose:z=>I(N,z)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),e.createVNode(Ea,{color:g.value,"onUpdate:color":B[3]||(B[3]=N=>g.value=N)},{clickable:e.withCtx(({openPicker:N,bgColor:I})=>[e.createElementVNode("button",{style:e.normalizeStyle({background:I}),class:"color-button",onClick:z=>_(z,N)},null,12,q5)]),_:1},8,["color"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Y5,[e.createVNode(e.unref(je),e.mergeProps({class:"ao-project-milestone__activities",list:c.value,disabled:!b.isEditable,"item-key":"id",group:"kanban"},b.$attrs,{onChange:m}),{item:e.withCtx(({element:N})=>{var I,z,R,F,A;return[e.createVNode(go,{id:N.id,name:N.name||N.id,"project-id":b.projectId,"phase-name":(I=s.value)==null?void 0:I.name,"milestone-name":(z=l.value)==null?void 0:z.name,"milestone-color":(R=l.value)==null?void 0:R.color,deadline:N.deadline,important:N.important,users:b.users,assignee:N.assignee,slug:N.slug,comments:(F=N.comments)==null?void 0:F.length,attachments:(A=N.attachments)==null?void 0:A.length,tasks:N.tasks,"is-editable":b.isEditable,"is-private":N.private,"is-closed":C(N),onClick:H=>b.$router.push({name:e.unref(re).activity,params:{milestoneId:b.milestoneId,activityId:N.id}}),onUpdateActivity:u,onRemoveAssignee:()=>u({id:N.id,assigneeId:null}),onStartTimer:r},e.createSlots({_:2},[b.isEditable?{name:"secondary",fn:e.withCtx(()=>[b.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:b.$t("archive"),onClick:e.withModifiers(()=>b.$emit("archiveActivity",{id:N.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0),b.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:b.$t("feed.activity.unarchive"),onClick:e.withModifiers(()=>b.$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"]),b.isEditable?(e.openBlock(),e.createElementBlock("div",K5,[e.createVNode(ze,{"icon-name":"Add",label:b.$t("project.activity.add"),onClick:d},null,8,["label"])])):e.createCommentVNode("",!0)])])}}}),l4="",G5=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,n=e.computed(()=>{var h;return(h=o.phases)==null?void 0:h.find(y=>y.id===o.phaseId)}),r=e.computed(()=>{var h;return(h=o.phases)==null?void 0:h.flatMap(y=>y.milestones)}),s=e.computed(()=>{var h;return(h=r.value)==null?void 0:h.find(y=>y.id===o.milestoneId)}),i=e.computed(()=>{var h;return(h=o.activities)==null?void 0:h.find(y=>y.id===o.activityId)}),l=h=>{t("update:activity",h)},c=h=>{t("addSubtask",h)},p=h=>{t("updateSubtask",h)},d=h=>{t("deleteSubtask",h)},u=h=>{t("addFiles",h)},m=h=>{t("removeFile",h)},g=h=>{t("addComment",h)},f=h=>{t("updateComment",h)},C=h=>{t("removeComment",h)};return(h,y)=>{var v,_;return i.value?(e.openBlock(),e.createBlock(ro,{key:0,activity:i.value,"activity-types":h.activityTypes,"milestone-id":h.milestoneId,"template-activities":h.activities,"is-template":!1,users:h.users,"user-id":h.userId,"is-task-checkable":h.isTaskCheckable,statuses:h.statuses,breadcrumbs:`${(v=n.value)==null?void 0:v.name} / ${(_=s.value)==null?void 0:_.name}`,"is-editable":h.isEditable,"attachment-enabled":h.attachmentEnabled,projects:[h.project],"time-tracking-data":h.timeTrackingData,onClose:h.$router.back,"onUpdate:activity":l,onAddSubtask:c,onUpdateSubtask:p,onDeleteSubtask:d,onAddFiles:u,onRemoveFile:m,onAddComment:g,onUpdateComment:f,onRemoveComment:C},{default:e.withCtx(b=>[e.renderSlot(h.$slots,"default",e.normalizeProps(e.guardReactiveProps(b)))]),_: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)}}}),X5={class:"ao-col-header"},Q5=e.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("header",X5,[e.createVNode(ne,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(e.openBlock(),e.createBlock(kt,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):e.createCommentVNode("",!0)]))}}),c4="";function J5(a){return e.getCurrentScope()?(e.onScopeDispose(a),!0):!1}function Ba(a){return typeof a=="function"?a():e.unref(a)}const e7=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const t7=a=>a!=null,Zt=()=>{};function a7(a,t){function o(...n){return new Promise((r,s)=>{Promise.resolve(a(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(s)})}return o}function o7(a,t={}){let o,n,r=Zt;const s=l=>{clearTimeout(l),r(),r=Zt};return l=>{const c=Ba(a),p=Ba(t.maxWait);return o&&s(o),c<=0||p!==void 0&&p<=0?(n&&(s(n),n=null),Promise.resolve(l())):new Promise((d,u)=>{r=t.rejectOnCancel?u:d,p&&!n&&(n=setTimeout(()=>{o&&s(o),n=null,d(l())},p)),o=setTimeout(()=>{n&&s(n),n=null,d(l())},c)})}}function r7(a,t=200,o={}){return a7(o7(t,o),a)}function _o(a){var t;const o=Ba(a);return(t=o==null?void 0:o.$el)!=null?t:o}const n7=e7?window:void 0;function i7(){const a=e.ref(!1),t=e.getCurrentInstance();return t&&e.onMounted(()=>{a.value=!0},t),a}function s7(a){const t=i7();return e.computed(()=>(t.value,!!a()))}function l7(a,t,o={}){const{root:n,rootMargin:r="0px",threshold:s=.1,window:i=n7,immediate:l=!0}=o,c=s7(()=>i&&"IntersectionObserver"in i),p=e.computed(()=>{const f=Ba(a);return(Array.isArray(f)?f:[f]).map(_o).filter(t7)});let d=Zt;const u=e.ref(l),m=c.value?e.watch(()=>[p.value,_o(n),u.value],([f,C])=>{if(d(),!u.value||!f.length)return;const h=new IntersectionObserver(t,{root:_o(C),rootMargin:r,threshold:s});f.forEach(y=>y&&h.observe(y)),d=()=>{h.disconnect(),d=Zt}},{immediate:l,flush:"post"}):Zt,g=()=>{d(),m(),u.value=!1};return J5(g),{isSupported:c,isActive:u,pause(){d(),u.value=!1},resume(){u.value=!0},stop:g}}const c7={class:e.normalizeClass(["ao-list-kanban"])},d7={class:"ao-list-kanban__header"},p7={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},u7={key:1,class:"ao-list-kanban__end"},m7={key:0,class:"ao-list-kanban__no-more"},f7={key:1,class:"ao-list-kanban__divider"},h7={key:1,class:"ao-list-kanban__footer"},g7=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,n=e.ref(!1),r=e.ref(null);l7(r,([{isIntersecting:d}])=>{n.value=d}),e.watch(n,d=>{d&&o.hasMore&&!o.isLoading&&t("loadMore")});const s=d=>{var u;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((u=d.assignee)==null?void 0:u.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:pt(o.list,d.added.newIndex)}):"removed"in d||"moved"in d&&t("updateActivity",{id:d.moved.element.id,rank:pt(o.list,d.moved.newIndex)})},p=e.ref(!1);return(d,u)=>(e.openBlock(),e.createElementBlock("div",c7,[d.title||d.$slots.header?e.renderSlot(d.$slots,"header",{key:0},()=>{var m;return[e.createElementVNode("div",d7,[d.title?(e.openBlock(),e.createBlock(Q5,{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(je),e.mergeProps({class:["ao-list-kanban__list",p.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:u[1]||(u[1]=m=>p.value=!0),onEnd:u[2]||(u[2]=m=>p.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:e.withCtx(({element:m})=>{var g,f,C,h,y,v,_,b,B,E;return[e.createVNode(go,{class:e.normalizeClass(s(m)?"ao-list-draggable":""),id:m.id,name:m.name,"project-name":(g=m.project)==null?void 0:g.name,"project-id":(f=m.project)==null?void 0:f.id,"project-color":(C=m.project)==null?void 0:C.color,"phase-name":(y=(h=m.milestone)==null?void 0:h.phase)==null?void 0:y.name,"milestone-name":(v=m.milestone)==null?void 0:v.name,"milestone-color":(_=m.milestone)==null?void 0:_.color,deadline:m.deadline,rules:((b=m.rules)==null?void 0:b.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":s(m),"is-private":m.private,"tag-type":d.tagType,onUpdateActivity:[N=>s(m)&&l(N),()=>s(m)&&l],onClick:()=>i(m.id),onRemoveAssignee:()=>s(m)&&l({id:m.id,assigneeId:null}),onStartTimer:u[0]||(u[0]=N=>d.$emit("startTimer",N))},{secondary:e.withCtx(()=>[s(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),s(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",p7,[e.createVNode(ee,{name:"Loading"})])):d.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:r,class:"ao-list-kanban__end"},null,512)):(e.openBlock(),e.createElementBlock("div",u7,[d.noMoreLabel?(e.openBlock(),e.createElementBlock("span",m7,e.toDisplayString(d.noMoreLabel),1)):d.isEditable?(e.openBlock(),e.createElementBlock("span",f7)):e.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),d.$slots.footer||d.footerLabel?(e.openBlock(),e.createElementBlock("div",h7,[e.renderSlot(d.$slots,"footer",{},()=>[d.isEditable?(e.openBlock(),e.createBlock(ze,{key:0,"icon-name":"AddBoxOutlineRounded",label:d.footerLabel,onClick:u[3]||(u[3]=m=>d.$emit("add"))},null,8,["label"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}}),d4="",_7={class:"ao-field ao-search-field"},v7=["value","placeholder","onKeypress"],b7=e.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(a,{emit:t}){const o=a,n=async i=>{const c=i.target.value;t("update:modelValue",c,i)},r=r7(n,o.delay),s=i=>{t("clear",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",_7,[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(r)&&e.unref(r)(...c)),onKeypress:e.withKeys(n,["enter"])},null,40,v7),e.createVNode(ee,{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:s},null,8,["class"])]))}}),p4="",C7={class:"ao-feed"},y7={class:"ao-feed__filters"},w7={class:"ao-feed__body"},zr=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:n}=Te();function r(V,D){t("toast",V,D)}const s=e.toRef(o,"activities"),i=async(V,D)=>{await t("selectActivity",V,D)},l=e.ref({}),c=e.ref(!1),p=e.ref(!1),d=e.computed(()=>o.project?"milestone":"project");e.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([V,D,q,w],[x,O])=>{l.value=Object.fromEntries(V.map(M=>[M.id,D.filter(P=>{var Z;return((Z=P.status)==null?void 0:Z.id)===M.id})])),q&&!c.value?(i(q,null),c.value=!0):w&&!c.value&&(i(null,w),c.value=!0),p.value&&Ae(D,O)},{immediate:!0});const u=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 O,M;const D=(O=o.activities)==null?void 0:O.at(-1),q=D?ie.LexoRank.parse(D.rank).genNext():ie.LexoRank.middle(),w=((M=o.activities)==null?void 0:M.length)??0,x={name:n("activity.defaultName",{idx:w+1}),rank:q.format(),statusId:V.id};o.filters.assigneeId.length>0&&(x.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(x.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(x.typeId=o.filters.typeId[0]),p.value=!0,t("addActivity",x)},g=(V,D)=>{p.value=!1,t("update:filters",{...o.filters,[V]:D})},f=e.computed(()=>o.project?[o.project]:o.projects??[]),C=e.computed(()=>f.value.map(V=>({value:V.id,label:V.name}))),h=e.computed(()=>{var V;return(V=o.activityTypes)==null?void 0:V.map(D=>({value:D.id,label:D.name}))}),y=e.computed(()=>o.users.map(V=>({value:V.id,label:`${V.firstName} ${V.lastName}`,avatar:V.avatarUrl}))),v=V=>{o.selectedActivity&&t("update:activity",V)},_=V=>{t("update:activity",V)},b=V=>{t("archiveActivity",V)},B=V=>{t("unarchiveActivity",V)},E=V=>{var D;t("startTimer",V),(D=window.parent)==null||D.postMessage({type:"startTimer",data:V},"*")},N=V=>{p.value=!1,t("update:searchText",V)},I=V=>{p.value=!1,t("clear:searchText",V)},z=V=>{o.selectedActivity&&t("addSubtask",V)},R=V=>{o.selectedActivity&&t("updateSubtask",V)},F=V=>{o.selectedActivity&&t("deleteSubtask",V)},A=V=>{t("addFiles",V)},H=V=>{t("removeFile",V)},K=V=>{o.selectedActivity&&t("addComment",{...V,activityId:o.selectedActivity.id})},W=V=>{const{id:D}=o.selectedActivity||{};D&&t("updateComment",V)},U=V=>{const{id:D}=o.selectedActivity||{};D&&t("removeComment",V)},S=De.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:re.feed}),console.log("Navigating to feed...")):V==="overview"?(S.push({name:re.project}),console.log("Navigating to feed...")):V==="mapping"&&(S.push({name:re.mapping}),console.log("Navigating to feed..."))}),(V,D)=>{var q;return e.openBlock(),e.createElementBlock("div",C7,[e.createVNode(Dt,null,{primary:e.withCtx(()=>[e.createElementVNode("div",y7,[e.createVNode(Ft,{tabs:L,modelValue:$.value,"onUpdate:modelValue":D[0]||(D[0]=w=>$.value=w)},null,8,["modelValue"]),e.createVNode(b7,{"model-value":V.searchText,placeholder:V.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":N,onClear:I},null,8,["model-value","placeholder"]),o.project?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pe,{key:0,"model-value":V.filters[e.unref(Xe).project],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:V.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":D[1]||(D[1]=w=>g(e.unref(Xe).project,w))},null,8,["model-value","options","placeholder"])),h.value?(e.openBlock(),e.createBlock(pe,{key:1,"model-value":V.filters[e.unref(Xe).type],mode:"tags",options:h.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:V.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":D[2]||(D[2]=w=>g(e.unref(Xe).type,w))},null,8,["model-value","options","placeholder"])):e.createCommentVNode("",!0),y.value.length?(e.openBlock(),e.createBlock(pe,{key:2,"model-value":V.filters[e.unref(Xe).assignee],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:V.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":D[3]||(D[3]=w=>g(e.unref(Xe).assignee,w))},{tag:e.withCtx(({option:w,handleTagRemove:x})=>[e.createVNode(Ve,{"user-name":w.label,"avatar-url":w.avatar,"is-closable":!0,onClose:O=>x(w,O)},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:D[4]||(D[4]=w=>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:D[5]||(D[5]=w=>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:D[6]||(D[6]=w=>V.$emit("update:showsArchivedActivities",!V.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),e.createElementVNode("div",w7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.statuses,w=>(e.openBlock(),e.createBlock(g7,{key:w.id,status:w,list:l.value[w.id],title:w.name,"footer-label":V.$t("feed.activity.add"),users:V.users,"user-id":V.userId,"is-editable":V.isEditable,tagType:d.value,onAdd:()=>m(w),onSelectActivity:i,onArchiveActivity:b,onUnarchiveActivity:B,onUpdateActivity:_,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(ro,{key:0,activity:V.selectedActivity,"activity-types":V.activityTypes,"milestone-id":(q=V.selectedActivity.milestone)==null?void 0:q.id,"template-activities":s.value,users:V.users,"user-id":V.userId,"is-task-checkable":V.isTaskCheckable,statuses:V.statuses,breadcrumbs:u.value,"is-editable":V.isEditable,"attachment-enabled":V.attachmentEnabled,projects:f.value,"time-tracking-data":V.timeTrackingData,onClose:D[7]||(D[7]=()=>i(null,null)),"onUpdate:activity":v,onAddSubtask:z,onUpdateSubtask:R,onDeleteSubtask:F,onAddFiles:A,onRemoveFile:H,onAddComment:K,onUpdateComment:W,onRemoveComment:U,onToast:r},{default:e.withCtx(w=>[e.renderSlot(V.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(w)))]),_: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)]))])}}}),u4="",k7={class:"ao-project-mapping"},$7={class:"ao-project-mapping-mapping__body"},E7={class:"ao-project-mapping-mapping__phases"},B7={key:0,class:"ao-project-mapping-mapping__image-wrapper"},V7=["src","alt"],S7=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:n}=Te(),r=()=>{const{name:h,rank:y}=at(o.phases,"phase",n);t("addPhase",{name:h,rank:y,projectId:o.project.id})},s=h=>{t("updatePhase",h)},i=h=>{t("archivePhase",h)},l=h=>{t("unarchivePhase",h)},c=h=>{t("copyPhaseToTemplate",h)},p=e.ref(!1),d=e.ref(!1),u=(h,y)=>{t("applyTemplate",{templateId:h,projectId:y}),p.value=!1},m=(h,y)=>{var b;const v=(b=o.templates)==null?void 0:b.at(-1),_=v?ie.LexoRank.parse(v.rank).genNext():ie.LexoRank.middle();t("saveTemplate",{templateName:h,rank:_.format(),phaseIds:y}),d.value=!1},g=De.useRouter(),f=e.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch(f,h=>{h==="feed"?(g.push({name:re.feed}),console.log("Navigating to feed...")):h==="overview"?(g.push({name:re.project}),console.log("Navigating to feed...")):h==="mapping"&&(g.push({name:re.mapping}),console.log("Navigating to feed..."))}),(h,y)=>{var v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"ao-project-mapping-overview"},h.$attrs),[e.createElementVNode("div",k7,[e.createVNode(Dt,null,{primary:e.withCtx(()=>[e.createVNode(Ft,{modelValue:f.value,"onUpdate:modelValue":y[0]||(y[0]=_=>f.value=_),tabs:C},null,8,["modelValue"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":h.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:h.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":h.showsArchived,onClick:y[1]||(y[1]=_=>h.$emit("update:showsArchived",!h.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:e.withCtx(()=>[h.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:h.$t("project.template.save.label"),onClick:y[2]||(y[2]=_=>d.value=!0)},null,8,["label"])):e.createCommentVNode("",!0),h.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:h.$t("project.template.apply.label"),onClick:y[3]||(y[3]=_=>p.value=!0)},null,8,["label"])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",$7,[e.createElementVNode("div",E7,[e.createVNode(ho,{phases:h.phases,"closed-status":h.closedStatus,"is-editable":h.isEditable===!0,users:h.users,"estimation-unit":(v=h.project)==null?void 0:v.estimationUnit,onAddPhase:r,onUpdatePhase:s,onArchivePhase:i,onUnarchivePhase:l,onCopyPhaseToTemplate:c},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),h.project.architectureImage?(e.openBlock(),e.createElementBlock("div",B7,[e.createElementVNode("img",{class:"architecture-image",src:h.project.architectureImage.url,alt:e.unref(n)("architectureImage.alt")},null,8,V7)])):e.createCommentVNode("",!0)])])],16),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[d.value?(e.openBlock(),e.createBlock(jr,{key:0,phases:h.phases,onClose:y[4]||(y[4]=_=>d.value=!1),onSave:m},null,8,["phases"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createBlock(Dr,{key:1,"project-id":h.project.id,templates:h.templates,onClose:y[5]||(y[5]=_=>p.value=!1),onApply:u},null,8,["project-id","templates"])):e.createCommentVNode("",!0)]))],64)}}}),m4="",rt={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},N7=(a,t={})=>[{path:a,name:rt.TEMPLATES,redirect:{name:rt.TEMPLATES_LIST},...t,children:[{path:"",name:rt.TEMPLATES_LIST,component:Hr},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:rt.TEMPLATE_DETAILS,component:Ir,props:!0}]}],re={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},x7=(a,t={})=>[{path:a,...t,redirect:{name:re.project},children:[{path:"",name:re.project,component:m5,props:!0,children:[{path:":phaseId/:milestoneId",name:re.milestone,component:Pr,props:!0},{path:":phaseId/:milestoneId/:activityId",name:re.activity,props:{default:!0,modal:!0},components:{default:Pr,modal:G5}}]},{path:"feed",name:re.feed,component:zr,props:!0},{path:"mapping",name:re.mapping,component:S7,props:!0}]}],M7={class:"ao-templates"},Hr=e.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(a,{emit:t}){const o=a,{t:n}=Te();e.watch(()=>o.templates,(c,p)=>{Ae(c,p)});const r=()=>{var m,g;const c=(m=o.templates)==null?void 0:m.at(-1),p=c?ie.LexoRank.parse(c.rank).genNext():ie.LexoRank.middle(),d=((g=o.templates)==null?void 0:g.length)??0,u={name:n("template.defaultName.template",{idx:d+1}),rank:p.format()};t("addTemplate",u)},s=(c,p)=>{t("updateItem",{itemType:te.TEMPLATES,id:c,templateId:c,data:{name:p}})},i=(c,p)=>{t("removeItem",{itemType:te.TEMPLATES,templateId:c,data:{id:c,...p?{name:p}:{}}})},l=c=>{if(c.moved){const p=Lt(c,o.templates??[]);t("updateItem",{itemType:te.TEMPLATES,id:c.moved.element.id,templateId:c.moved.element.id,data:{rank:p}})}};return(c,p)=>(e.openBlock(),e.createElementBlock("div",M7,[e.createVNode(Dt,null,{secondary:e.withCtx(()=>[e.createVNode(G,{label:c.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:r},null,8,["label"])]),_:1}),e.createVNode(e.unref(je),{"model-value":c.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:l},{item:e.withCtx(({element:d})=>{var u;return[e.createVNode(Yu,{id:d.id,title:d.name,phases:d.phases,milestones:(u=d.phases)!=null&&u.length?e.unref(_u)(d.phases):0,activities:d.phases?e.unref(vu)(d.phases):0,"updated-at":d.updatedAt,"updated-by":d.updatedBy,onUpdateTitle:m=>s(d.id,m),onClick:m=>c.$router.push({name:e.unref(rt).TEMPLATE_DETAILS,params:{templateId:d.id}}),onDeleteItem:p[0]||(p[0]=(m,g)=>i(m,g))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}}),f4="",T7={class:"ao-field__label"},Rr=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",T7,e.toDisplayString(t.label),1),e.renderSlot(t.$slots,"default")],2))}}),A7=["type","value","disabled","readonly"],O7=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,n=e.computed(()=>o.modelModifiers.lazy?"change":"input"),r=s=>{o.modelModifiers.number&&(s=Number(s)),t("update:modelValue",s)};return(s,i)=>(e.openBlock(),e.createBlock(Rr,{label:s.label},{default:e.withCtx(()=>[e.createElementVNode("input",e.mergeProps({class:"ao-field__input",type:s.type,value:s.modelValue,disabled:s.isDisabled,readonly:s.isReadonly},{[e.toHandlerKey(n.value)]:i[0]||(i[0]=l=>r(l.target.value))}),null,16,A7)]),_:1},8,["label"]))}}),I7={class:"ao-field"},L7={class:"ao-field__label"},D7=["checked","disabled"],j7=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",I7,[e.createElementVNode("span",L7,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]=n=>{var r;return t.$emit("update:modelValue",((r=n.target)==null?void 0:r.checked)??!1)})},null,40,D7)]))}});X.AoAvatar=Ve,X.AoCardFeed=go,X.AoCheckboxField=j7,X.AoColorPicker=Ea,X.AoFeed=zr,X.AoField=Rr,X.AoInputField=O7,X.AoMultiselect=pe,X.AoProjectPhases=ho,X.AoTabBar=Ft,X.AoTemplateDetails=Ir,X.AoTemplates=Gr,X.AoTemplatesList=Hr,X.EstimationUnit=Oo,X.TemplateItemTypeEnum=Ao,X.activityFeedStatus=Ad,X.durationTypes=Td,X.feedFilterTypes=Xe,X.getProjectOverviewRoutes=x7,X.getTemplateRoutes=N7,X.listUpdateTypes=Od,X.milestoneStatus=$t,X.projectOverviewRoutes=re,X.ruleComparators=xo,X.ruleDurationUnits=To,X.ruleTriggerTypes=Mo,X.templateItemType=te,X.templateRouteNames=rt,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});
233
+ */function po(i){let e={r:0,g:0,b:0,a:1};/#/.test(i)?e=xO(i):/rgb/.test(i)?e=zy(i):typeof i=="string"?e=zy(`rgba(${i})`):Object.prototype.toString.call(i)==="[object Object]"&&(e=i);const{r:t,g:s,b:n,a:r}=e,{h:l,s:c,v:d}=EO(e);return{r:t,g:s,b:n,a:r===void 0?1:r,h:l,s:c,v:d}}function Gg(i){const e=document.createElement("canvas"),t=e.getContext("2d"),s=i*2;return e.width=s,e.height=s,t.fillStyle="#ffffff",t.fillRect(0,0,s,s),t.fillStyle="#ccd5db",t.fillRect(0,0,i,i),t.fillRect(i,i,i,i),e}function Yg(i,e,t,s,n,r){const l=i==="l",c=e.createLinearGradient(0,0,l?t:0,l?0:s);c.addColorStop(.01,n),c.addColorStop(.99,r),e.fillStyle=c,e.fillRect(0,0,t,s)}function kO({r:i,g:e,b:t},s){const n=l=>("0"+Number(l).toString(16)).slice(-2),r=`#${n(i)}${n(e)}${n(t)}`;return s?r.toUpperCase():r}function xO(i){i=i.slice(1);const e=t=>parseInt(t,16)||0;return{r:e(i.slice(0,2)),g:e(i.slice(2,4)),b:e(i.slice(4,6))}}function zy(i){return typeof i=="string"?(i=(/rgba?\((.*?)\)/.exec(i)||["","0,0,0,1"])[1].split(","),{r:Number(i[0])||0,g:Number(i[1])||0,b:Number(i[2])||0,a:Number(i[3]?i[3]:1)}):i}function EO({r:i,g:e,b:t}){i=i/255,e=e/255,t=t/255;const s=Math.max(i,e,t),n=Math.min(i,e,t),r=s-n;let l=0;s===n?l=0:s===i?e>=t?l=60*(e-t)/r:l=60*(e-t)/r+360:s===e?l=60*(t-i)/r+120:s===t&&(l=60*(i-e)/r+240),l=Math.floor(l);let c=parseFloat((s===0?0:1-n/s).toFixed(2)),d=parseFloat(s.toFixed(2));return{h:l,s:c,v:d}}var Kg=a.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 i=this.$refs.canvasSaturation,e=this.size,t=i.getContext("2d");i.width=e,i.height=e,t.fillStyle=this.color,t.fillRect(0,0,e,e),Yg("l",t,e,e,"#FFFFFF","rgba(255,255,255,0)"),Yg("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(i){const{top:e,left:t}=this.$el.getBoundingClientRect(),s=i.target.getContext("2d"),n=l=>{let c=l.clientX-t,d=l.clientY-e;c<0&&(c=0),d<0&&(d=0),c>this.size&&(c=this.size),d>this.size&&(d=this.size),this.slideSaturationStyle={left:c-5+"px",top:d-5+"px"};const h=s.getImageData(Math.min(c,this.size-1),Math.min(d,this.size-1),1,1),[f,p,m]=h.data;this.$emit("selectSaturation",{r:f,g:p,b:m})};n(i);const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}});const TO={ref:"canvasSaturation"};function SO(i,e,t,s,n,r){return a.openBlock(),a.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=a.withModifiers((...l)=>i.selectSaturation&&i.selectSaturation(...l),["prevent","stop"]))},[a.createVNode("canvas",TO,null,512),a.createVNode("div",{style:i.slideSaturationStyle,class:"slide"},null,4)],32)}Kg.render=SO,Kg.__file="src/color/Saturation.vue";var Xg=a.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 i=this.$refs.canvasHue,e=this.width,t=this.height,s=i.getContext("2d");i.width=e,i.height=t;const n=s.createLinearGradient(0,0,0,t);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,e,t)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(i){const{top:e}=this.$el.getBoundingClientRect(),t=i.target.getContext("2d"),s=r=>{let l=r.clientY-e;l<0&&(l=0),l>this.height&&(l=this.height),this.slideHueStyle={top:l-2+"px"};const c=t.getImageData(0,Math.min(l,this.height-1),1,1),[d,h,f]=c.data;this.$emit("selectHue",{r:d,g:h,b:f})};s(i);const n=()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",s),document.addEventListener("mouseup",n)}}});const MO={ref:"canvasHue"};function BO(i,e,t,s,n,r){return a.openBlock(),a.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=a.withModifiers((...l)=>i.selectHue&&i.selectHue(...l),["prevent","stop"]))},[a.createVNode("canvas",MO,null,512),a.createVNode("div",{style:i.slideHueStyle,class:"slide"},null,4)],32)}Xg.render=BO,Xg.__file="src/color/Hue.vue";var Qg=a.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 i=this.$refs.canvasAlpha,e=this.width,t=this.height,s=this.alphaSize,n=Gg(s),r=i.getContext("2d");i.width=e,i.height=t,r.fillStyle=r.createPattern(n,"repeat"),r.fillRect(0,0,e,t),Yg("p",r,e,t,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(i){const{top:e}=this.$el.getBoundingClientRect(),t=n=>{let r=n.clientY-e;r<0&&(r=0),r>this.height&&(r=this.height);let l=parseFloat((r/this.height).toFixed(2));this.$emit("selectAlpha",l)};t(i);const s=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",s)}}});const NO={ref:"canvasAlpha"};function LO(i,e,t,s,n,r){return a.openBlock(),a.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=a.withModifiers((...l)=>i.selectAlpha&&i.selectAlpha(...l),["prevent","stop"]))},[a.createVNode("canvas",NO,null,512),a.createVNode("div",{style:i.slideAlphaStyle,class:"slide"},null,4)],32)}Qg.render=LO,Qg.__file="src/color/Alpha.vue";var Jg=a.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 i=this.$el,e=this.width,t=this.height,s=this.alphaSize,n=Gg(s),r=i.getContext("2d");i.width=e,i.height=t,r.fillStyle=r.createPattern(n,"repeat"),r.fillRect(0,0,e,t),r.fillStyle=this.color,r.fillRect(0,0,e,t)}}});function AO(i,e,t,s,n,r){return a.openBlock(),a.createBlock("canvas")}Jg.render=AO,Jg.__file="src/color/Preview.vue";var e0=a.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(i){this.isSucking=!1,this.suckColor(i)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(i){i.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(i){const{clientX:e,clientY:t}=i,{top:s,left:n,width:r,height:l}=this.suckerCanvas.getBoundingClientRect(),c=e-n,d=t-s,f=this.suckerCanvas.getContext("2d").getImageData(Math.min(c,r-1),Math.min(d,l-1),1,1);let[p,m,g,y]=f.data;y=parseFloat((y/255).toFixed(2));const v=this.suckerPreview.style;Object.assign(v,{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(${p}, ${m}, ${g}, ${y})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&t>=this.suckerArea[1]&&e<=this.suckerArea[2]&&t<=this.suckerArea[3]?v.display="":v.display="none"},suckColor(i){i&&i.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),i.addEventListener("click",e=>{const{clientX:t,clientY:s}=e,{top:n,left:r,width:l,height:c}=i.getBoundingClientRect(),d=t-r,h=s-n,p=i.getContext("2d").getImageData(Math.min(d,l-1),Math.min(h,c-1),1,1);let[m,g,y,v]=p.data;v=parseFloat((v/255).toFixed(2)),this.$emit("selectSucker",{r:m,g,b:y,a:v})}))}}});const $O=a.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),OO={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},VO=a.createVNode("g",{fill:"none","fill-rule":"evenodd"},[a.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[a.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),a.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[a.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function RO(i,e,t,s,n,r){return a.openBlock(),a.createBlock("div",null,[i.isSucking?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("svg",{key:0,class:[{active:i.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...l)=>i.openSucker&&i.openSucker(...l))},[$O],2)),i.isSucking?(a.openBlock(),a.createBlock("svg",OO,[VO])):a.createCommentVNode("v-if",!0)])}e0.render=RO,e0.__file="src/color/Sucker.vue";var t0=a.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(i,{emit:e}){return{modelColor:a.computed({get(){return i.color||""},set(r){e("inputColor",r)}}),handleFocus:r=>{e("inputFocus",r)},handleBlur:r=>{e("inputBlur",r)}}}});const IO={class:"color-type"},DO={class:"name"};function PO(i,e,t,s,n,r){return a.openBlock(),a.createBlock("div",IO,[a.createVNode("span",DO,a.toDisplayString(i.name),1),a.withDirectives(a.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>i.modelColor=l),class:"value",onFocus:e[2]||(e[2]=(...l)=>i.handleFocus&&i.handleFocus(...l)),onBlur:e[3]||(e[3]=(...l)=>i.handleBlur&&i.handleBlur(...l))},null,544),[[a.vModelText,i.modelColor]])])}t0.render=PO,t0.__file="src/color/Box.vue";var i0=a.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(i,{emit:e}){const t=a.ref(),s=a.ref([]),n=a.ref();i.colorsHistoryKey&&localStorage&&(s.value=JSON.parse(localStorage.getItem(i.colorsHistoryKey))||[]),n.value=Gg(4).toDataURL(),a.onUnmounted(()=>{r(t.value)});function r(c){if(!c)return;const d=s.value||[],h=d.indexOf(c);h>=0&&d.splice(h,1),d.length>=8&&(d.length=7),d.unshift(c),s.value=d||[],localStorage&&i.colorsHistoryKey&&localStorage.setItem(i.colorsHistoryKey,JSON.stringify(d))}function l(c){e("selectColor",c)}return{setColorsHistory:r,colorsHistory:s,color:t,imgAlphaBase64:n,selectColor:l}}});const HO={class:"colors"},FO={key:0,class:"colors history"};function zO(i,e,t,s,n,r){return a.openBlock(),a.createBlock("div",null,[a.createVNode("ul",HO,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(i.colorsDefault,l=>(a.openBlock(),a.createBlock("li",{key:l,class:"item",onClick:c=>i.selectColor(l)},[a.createVNode("div",{style:{background:`url(${i.imgAlphaBase64})`},class:"alpha"},null,4),a.createVNode("div",{style:{background:l},class:"color"},null,4)],8,["onClick"]))),128))]),i.colorsHistory.length?(a.openBlock(),a.createBlock("ul",FO,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(i.colorsHistory,l=>(a.openBlock(),a.createBlock("li",{key:l,class:"item",onClick:c=>i.selectColor(l)},[a.createVNode("div",{style:{background:`url(${i.imgAlphaBase64})`},class:"alpha"},null,4),a.createVNode("div",{style:{background:l},class:"color"},null,4)],8,["onClick"]))),128))])):a.createCommentVNode("v-if",!0)])}i0.render=zO,i0.__file="src/color/Colors.vue";var Ur=a.defineComponent({components:{Saturation:Kg,Hue:Xg,Alpha:Qg,Preview:Jg,Sucker:e0,Box:t0,Colors:i0},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 kO(this.rgba,!0)}},created(){Object.assign(this,po(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(i){const{r:e,g:t,b:s,h:n,s:r,v:l}=po(i);Object.assign(this,{r:e,g:t,b:s,h:n,s:r,v:l}),this.setText()},handleFocus(i){this.$emit("inputFocus",i)},handleBlur(i){this.$emit("inputBlur",i)},selectHue(i){const{r:e,g:t,b:s,h:n,s:r,v:l}=po(i);Object.assign(this,{r:e,g:t,b:s,h:n,s:r,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(i){this.a=i,this.setText()},inputHex(i){const{r:e,g:t,b:s,a:n,h:r,s:l,v:c}=po(i);Object.assign(this,{r:e,g:t,b:s,a:n,h:r,s:l,v:c}),this.modelHex=i,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(i){const{r:e,g:t,b:s,a:n,h:r,s:l,v:c}=po(i);Object.assign(this,{r:e,g:t,b:s,a:n,h:r,s:l,v:c}),this.modelHex=this.hexString,this.modelRgba=i,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(i){this.$emit("openSucker",i)},selectSucker(i){const{r:e,g:t,b:s,a:n,h:r,s:l,v:c}=po(i);Object.assign(this,{r:e,g:t,b:s,a:n,h:r,s:l,v:c}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(i){const{r:e,g:t,b:s,a:n,h:r,s:l,v:c}=po(i);Object.assign(this,{r:e,g:t,b:s,a:n,h:r,s:l,v:c}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const jO={class:"color-set"};function WO(i,e,t,s,n,r){const l=a.resolveComponent("Saturation"),c=a.resolveComponent("Hue"),d=a.resolveComponent("Alpha"),h=a.resolveComponent("Preview"),f=a.resolveComponent("Sucker"),p=a.resolveComponent("Box"),m=a.resolveComponent("Colors");return a.openBlock(),a.createBlock("div",{class:["hu-color-picker",{light:i.isLightTheme}],style:{width:i.totalWidth+"px"}},[a.createVNode("div",jO,[a.createVNode(l,{ref:"saturation",color:i.rgbString,hsv:i.hsv,size:i.hueHeight,onSelectSaturation:i.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),a.createVNode(c,{ref:"hue",hsv:i.hsv,width:i.hueWidth,height:i.hueHeight,onSelectHue:i.selectHue},null,8,["hsv","width","height","onSelectHue"]),a.createVNode(d,{ref:"alpha",color:i.rgbString,rgba:i.rgba,width:i.hueWidth,height:i.hueHeight,onSelectAlpha:i.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),a.createVNode("div",{style:{height:i.previewHeight+"px"},class:"color-show"},[a.createVNode(h,{color:i.rgbaString,width:i.previewWidth,height:i.previewHeight},null,8,["color","width","height"]),i.suckerHide?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock(f,{key:0,"sucker-canvas":i.suckerCanvas,"sucker-area":i.suckerArea,onOpenSucker:i.openSucker,onSelectSucker:i.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),a.createVNode(p,{name:"HEX",color:i.modelHex,onInputColor:i.inputHex,onInputFocus:i.handleFocus,onInputBlur:i.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),a.createVNode(p,{name:"RGBA",color:i.modelRgba,onInputColor:i.inputRgba,onInputFocus:i.handleFocus,onInputBlur:i.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),a.createVNode(m,{color:i.rgbaString,"colors-default":i.colorsDefault,"colors-history-key":i.colorsHistoryKey,onSelectColor:i.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),a.createCommentVNode(" custom options "),a.renderSlot(i.$slots,"default")],6)}Ur.render=WO,Ur.__file="src/color/ColorPicker.vue",Ur.install=i=>{i.component(Ur.name,Ur)};const RD="",UO={class:"color-picker-wrapper"},p1=a.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(i,{emit:e}){const t=i,s=e,n=a.ref(!1),r=a.ref(null),l=a.ref(null),c=a.ref(0),d=a.ref(0),h=async y=>{l.value=y,n.value=!0,await a.nextTick();const v=y.getBoundingClientRect(),b=r.value,w=(b==null?void 0:b.offsetHeight)||300,_=window.innerHeight-v.bottom,x=v.top,S=_<w&&x>w;console.log("pickerHeight = "+w),c.value=S?v.top-w-8:v.bottom+8,d.value=v.left,setTimeout(()=>{window.addEventListener("click",p)},0)},f=a.computed(()=>({position:"fixed",top:`${c.value}px`,left:`${d.value}px`,zIndex:1e3})),p=y=>{const v=y.target;r.value&&!r.value.contains(v)&&(n.value=!1,s("update:color",m.value),window.removeEventListener("click",p))};a.onBeforeUnmount(()=>{window.removeEventListener("click",p)}),a.watch(()=>t.color,y=>{n.value||(m.value=y)});const m=a.ref(t.color),g=y=>{const{r:v,g:b,b:w,a:_}=y.rgba;m.value=`rgba(${v}, ${b}, ${w}, ${_})`};return(y,v)=>(a.openBlock(),a.createElementBlock("div",UO,[a.renderSlot(y.$slots,"clickable",{openPicker:h,bgColor:i.color}),n.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:r,class:"color-picker",style:a.normalizeStyle(f.value)},[a.createVNode(a.unref(Ur),{class:"color-picker-box",theme:"light",color:i.color,onChangeColor:g},null,8,["color"])],4)):a.createCommentVNode("",!0)]))}}),ID="",qO={class:"ao-card-project-phase__header"},ZO={class:"ao-card-project-item__title-line"},GO={key:0,class:"ao-card-project-item-phase__estimation"},YO={class:"ao-card-project-phase__footer"},KO={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},XO={class:"ao-card-project-phase__subitem"},QO={class:"ao-card-project-phase__subitem"},JO={key:0,class:"ao-card-project-phase__secondary"},eV={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},tV=a.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(i,{emit:e}){const t=i,s=e,n=v=>{s("update:title",v)},r=a.computed(()=>{var v;return((v=t.milestones)==null?void 0:v.reduce((b,w)=>{var _;return b+((_=w.activities)==null?void 0:_.reduce((x,S)=>x+(S.estimation||0),0))},0))||0}),l=a.computed(()=>!t.milestones||!t.timeTrackingData?0:t.milestones.reduce((v,b)=>{var w;return v+(((w=b.activities)==null?void 0:w.reduce((_,x)=>{var M;const S=(M=t.timeTrackingData)==null?void 0:M[x.id];return _+((S==null?void 0:S.timeSpent)||0)},0))||0)},0)),c=a.computed(()=>t.estimationUnit==="days"?"d":"h"),d=a.computed(()=>Eu(l.value,t.estimationUnit)),h=a.computed(()=>{var v;return(v=t.milestones)==null?void 0:v.length}),f=a.computed(()=>{var v;return(v=t.milestones)==null?void 0:v.filter(b=>b.status===Gl.done).length}),p=a.computed(()=>(f.value||0)/(h.value||1)),m=a.computed({get:()=>t.deadline??"",set:v=>s("update:deadline",v!=null&&v.length?v:null)}),g=a.computed({get:()=>t.color,set:v=>{s("updatePhase",{id:t.id,color:v})}}),y=(v,b)=>{const w=v.target;w.closest("button")||w.closest("input")||w.closest(".ao-title")||b(w)};return(v,b)=>(a.openBlock(),a.createBlock(p1,{color:g.value,"onUpdate:color":b[2]||(b[2]=w=>g.value=w)},{clickable:a.withCtx(({openPicker:w,bgColor:_})=>[a.createVNode(u1,{class:"ao-card-project-phase","is-clickable":i.isEditable,color:_,withLeftBorder:!0,onClick:x=>y(x,w)},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",ZO,[a.createVNode(Ht,{id:i.id,class:"ao-card-project-phase__title",title:i.name||"",level:4,"is-editable":i.isEditable,"onUpdate:title":n},null,8,["id","title","is-editable"]),r.value||l.value?(a.openBlock(),a.createElementBlock("span",GO," ("+a.toDisplayString(d.value)+"/"+a.toDisplayString(r.value)+a.toDisplayString(c.value)+")",1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",YO,[h.value?(a.openBlock(),a.createElementBlock("div",KO,[a.createElementVNode("div",XO,[a.createVNode(qe,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",QO,a.toDisplayString(f.value)+" / "+a.toDisplayString(h.value),1)]),a.createVNode(f1,{percentages:p.value,class:"ao-card-project-phase__progress",color:i.color},null,8,["percentages","color"]),v.$slots.secondary?(a.openBlock(),a.createElementBlock("div",JO,[a.renderSlot(v.$slots,"secondary")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["ao-card-project-phase__footer-row",m.value?"":"ao-card-project-phase__no_deadline"])},[i.isEditable?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":b[1]||(b[1]=x=>m.value=x),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[a.vModelText,m.value,void 0,{lazy:!0}]]):a.createCommentVNode("",!0),a.createElementVNode("span",eV,a.toDisplayString(a.unref(Tu)(i.deadline)),1)],2)])]),_:2},[i.isEditable?{name:"header",fn:a.withCtx(()=>[a.createElementVNode("div",qO,[a.createVNode(ke,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:i.active?v.$t("archive"):v.$t("unarchive"),onClick:b[0]||(b[0]=a.withModifiers(()=>i.active?v.$emit("archivePhase",{id:i.id}):v.$emit("unarchivePhase",{id:i.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),DD="",iV=a.defineComponent({__name:"AoBadge",props:{color:{}},setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("span",{class:"aoBadge",style:a.normalizeStyle({backgroundColor:i.color})},null,4))}}),PD="",sV={class:"ao-card-project-milestone__default"},nV={class:"ao-title-with-badge-wrapper"},oV={class:"ao-card-project-item__title-line"},rV={key:0,class:"ao-card-project-item-milestone__estimation"},aV={key:0,class:"ao-card-project-milestone__archive"},lV={class:"ao-card-project-milestone__activities"},cV={class:"ao-card-project-milestone__activities-row"},dV={class:"ao-card-project-milestone__subitem"},hV={class:"ao-card-project-milestone__subitem"},uV={key:1,class:"ao-card-project-milestone__secondary"},fV={class:"ao-card-project-milestone__footer"},pV={key:1,class:"ao-field ao-card-project-milestone__deadline"},mV={class:"ao-field__label"},gV={key:2,class:"ao-card-project-milestone__assignee"},vV=a.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(i,{emit:e}){const t=i,s=e,n=a.computed(()=>{var m;return((m=t.activities)==null?void 0:m.reduce((g,y)=>g+(y.estimation||0),0))||0}),r=a.computed(()=>!t.activities||!t.timeTrackingData?0:t.activities.reduce((m,g)=>{var v;const y=(v=t.timeTrackingData)==null?void 0:v[g.id];return m+((y==null?void 0:y.timeSpent)||0)},0)),l=a.computed(()=>t.estimationUnit==="days"?"d":"h"),c=a.computed(()=>Eu(r.value,t.estimationUnit));a.computed(()=>{const m=r.value/60;return m%1===0?m.toString():m.toFixed(2)});const d=a.computed(()=>{var m;return(m=t.activities)==null?void 0:m.length}),h=a.computed(()=>{var m;return(m=t.activities)==null?void 0:m.filter(g=>Um(g,t.closedStatus)).length}),f=a.computed(()=>(h.value||0)/(d.value||1)),p=m=>{s("updateMilestone",{id:t.id,name:m})};return(m,g)=>(a.openBlock(),a.createBlock(u1,{class:a.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!i.readonly,"tag-name":"li","is-selected":i.isSelected,color:i.phaseColor},{default:a.withCtx(()=>[a.createElementVNode("div",sV,[a.createElementVNode("div",nV,[a.createVNode(iV,{color:i.color||""},null,8,["color"]),a.createElementVNode("div",oV,[a.createVNode(Ht,{id:i.id,title:i.name||"",level:5,"is-editable":!i.readonly&&i.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":p},null,8,["id","title","is-editable"]),n.value||r.value?(a.openBlock(),a.createElementBlock("span",rV," ("+a.toDisplayString(c.value)+"/"+a.toDisplayString(n.value)+a.toDisplayString(l.value)+")",1)):a.createCommentVNode("",!0)])]),!i.readonly&&i.isEditable?(a.openBlock(),a.createElementBlock("div",aV,[a.createVNode(ke,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:i.active?m.$t("archive"):m.$t("unarchive"),onClick:g[0]||(g[0]=a.withModifiers(()=>i.active?m.$emit("archiveMilestone",{id:i.id}):m.$emit("unarchiveMilestone",{id:i.id}),["stop"]))},null,8,["label"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",lV,[a.createElementVNode("div",cV,[d.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",dV,[a.createVNode(qe,{name:"SelectCheckBox",size:"sm"}),a.createElementVNode("span",hV,a.toDisplayString(h.value)+" / "+a.toDisplayString(d.value),1)]),a.createVNode(f1,{percentages:f.value,color:i.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):a.createCommentVNode("",!0),m.$slots.secondary?(a.openBlock(),a.createElementBlock("div",uV,[a.renderSlot(m.$slots,"secondary")])):a.createCommentVNode("",!0)])])]),footer:a.withCtx(()=>[a.createElementVNode("div",fV,[i.important?(a.openBlock(),a.createBlock(qe,{key:0,name:"FlagRounded",class:a.normalizeClass(i.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):a.createCommentVNode("",!0),i.deadline?(a.openBlock(),a.createElementBlock("label",pV,[a.createElementVNode("span",mV,a.toDisplayString(a.unref(Tu)(i.deadline)),1)])):a.createCommentVNode("",!0),i.assignee?(a.openBlock(),a.createElementBlock("div",gV,[a.createVNode(ks,{"user-name":a.unref(P2)(i.assignee),"avatar-url":i.assignee.avatarUrl,color:i.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):a.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}}),HD="",yV={class:"ao-mapping-card-project-phase__header"},bV={class:"ao-card-project-item__title-line"},CV={key:0,class:"ao-card-project-item-phase__estimation"},wV={class:"ao-mapping-card-project-phase__footer"},_V={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},kV={class:"ao-mapping-card-project-phase__subitem"},xV={class:"ao-mapping-card-project-phase__subitem"},EV={key:0,class:"ao-mapping-card-project-phase__secondary"},TV={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},SV=a.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(i,{emit:e}){const t=i,s=e,n=v=>{s("update:title",v)},r=a.computed(()=>{var v;return((v=t.milestones)==null?void 0:v.reduce((b,w)=>{var _;return b+((_=w.activities)==null?void 0:_.reduce((x,S)=>x+(S.estimation||0),0))},0))||0}),l=a.computed(()=>!t.milestones||!t.timeTrackingData?0:t.milestones.reduce((v,b)=>{var w;return v+(((w=b.activities)==null?void 0:w.reduce((_,x)=>{var M;const S=(M=t.timeTrackingData)==null?void 0:M[x.id];return _+((S==null?void 0:S.timeSpent)||0)},0))||0)},0)),c=a.computed(()=>t.estimationUnit==="days"?"d":"h"),d=a.computed(()=>Eu(l.value,t.estimationUnit)),h=a.computed(()=>{var v;return(v=t.milestones)==null?void 0:v.length}),f=a.computed(()=>{var v;return(v=t.milestones)==null?void 0:v.filter(b=>b.status===Gl.done).length}),p=a.computed(()=>(f.value||0)/(h.value||1)),m=a.computed({get:()=>t.deadline??"",set:v=>s("update:deadline",v!=null&&v.length?v:null)}),g=a.computed({get:()=>t.color,set:v=>{s("updatePhase",{id:t.id,color:v})}}),y=(v,b)=>{const w=v.target;w.closest("button")||w.closest("input")||w.closest(".ao-title")||b()};return(v,b)=>(a.openBlock(),a.createBlock(p1,{color:g.value,"onUpdate:color":b[2]||(b[2]=w=>g.value=w)},{clickable:a.withCtx(({openPicker:w,bgColor:_})=>[a.createVNode(u1,{class:"ao-mapping-card-project-phase","is-clickable":i.isEditable,color:_,withLeftBorder:!0,onClick:x=>y(x,w)},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",bV,[a.createVNode(Ht,{id:i.id,class:"ao-mapping-card-project-phase__title",title:i.name||"",level:4,"is-editable":i.isEditable,"onUpdate:title":n},null,8,["id","title","is-editable"]),r.value||l.value?(a.openBlock(),a.createElementBlock("span",CV," ("+a.toDisplayString(d.value)+"/"+a.toDisplayString(r.value)+a.toDisplayString(c.value)+")",1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",wV,[h.value?(a.openBlock(),a.createElementBlock("div",_V,[a.createElementVNode("div",kV,[a.createVNode(qe,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",xV,a.toDisplayString(f.value)+" / "+a.toDisplayString(h.value),1)]),a.createVNode(f1,{percentages:p.value,class:"ao-mapping-card-project-phase__progress",color:g.value},null,8,["percentages","color"]),v.$slots.secondary?(a.openBlock(),a.createElementBlock("div",EV,[a.renderSlot(v.$slots,"secondary")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["ao-mapping-card-project-phase__footer-row",m.value?"":"ao-mapping-card-project-phase__no_deadline"])},[i.isEditable?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":b[1]||(b[1]=x=>m.value=x),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[a.vModelText,m.value,void 0,{lazy:!0}]]):a.createCommentVNode("",!0),a.createElementVNode("span",TV,a.toDisplayString(a.unref(Tu)(i.deadline)),1)],2)])]),_:2},[i.isEditable?{name:"header",fn:a.withCtx(()=>[a.createElementVNode("div",yV,[a.createVNode(ke,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:i.active?v.$t("archive"):v.$t("unarchive"),onClick:b[0]||(b[0]=a.withModifiers(()=>i.active?v.$emit("archivePhase",{id:i.id}):v.$emit("unarchivePhase",{id:i.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),FD="",MV={class:"ao-project-phase"},BV={key:0,class:"ao-project-phase__drag ao-card__drag"},NV={key:1,class:"ao-project-phase__col-phase"},LV={key:2,class:"ao-mapping-project-phase__col-phase"},AV={key:0,class:"ao-project-phase__col-milestones"},$V={class:"ao-project-phase__milestones-list-footer"},OV=a.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(i,{emit:e}){const{t}=Ms(),s=i,n=e;a.watch(()=>s.phase.milestones,(x,S)=>{Bs(x,S)});const r=x=>{n("updatePhase",{id:s.phase.id,name:x})},l=x=>{n("updatePhase",{id:s.phase.id,deadline:x})},c=x=>{n("updatePhase",x)},d=a.computed(()=>s.phase.milestones.map(x=>y8(x,s.closedStatus))),h=x=>{const{name:S,rank:M}=fo(d.value??[],"milestone",t);n("addMilestone",{name:S,rank:M,phaseId:x})},f=x=>{n("updateMilestone",x)},p=x=>{n("archiveMilestone",x)},m=x=>{n("unarchiveMilestone",x)},g=x=>{n("archivePhase",x)},y=x=>{n("unarchivePhase",x)},v=x=>{"added"in x?n("updateMilestone",{id:x.added.element.id,phaseId:s.phase.id,rank:Br(d.value,x.added.newIndex)}):"removed"in x||"moved"in x&&n("updateMilestone",{id:x.moved.element.id,rank:Br(d.value,x.moved.newIndex)})},b=rt.useRoute(),w=a.computed(()=>b.path.includes("/mapping")),_=a.computed(()=>{var x;return s.phase.id!==((x=b.params)==null?void 0:x.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:s.phase.color?{backgroundColor:C8(s.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(x,S)=>(a.openBlock(),a.createElementBlock("li",MV,[a.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:a.normalizeStyle(_.value)},[i.isEditable?(a.openBlock(),a.createElementBlock("div",BV,[a.createVNode(qe,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):a.createCommentVNode("",!0),w.value?(a.openBlock(),a.createElementBlock("div",LV,[a.createVNode(SV,{id:i.phase.id,milestones:d.value,name:i.phase.name,deadline:i.phase.deadline,active:i.phase.active,"is-editable":i.isEditable,color:i.phase.color,"estimation-unit":i.estimationUnit,"onUpdate:deadline":l,"onUpdate:title":r,onArchivePhase:g,onUnarchivePhase:y,onUpdatePhase:c},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(a.openBlock(),a.createElementBlock("div",NV,[a.createVNode(tV,{id:i.phase.id,milestones:d.value,name:i.phase.name,deadline:i.phase.deadline,active:i.phase.active,"is-editable":i.isEditable,color:i.phase.color,"time-tracking-data":i.timeTrackingData,"estimation-unit":i.estimationUnit,"onUpdate:deadline":l,"onUpdate:title":r,onArchivePhase:g,onUnarchivePhase:y,onUpdatePhase:c},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),w.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",AV,[a.createElementVNode("div",{class:"ao-project-phase__milestones",style:a.normalizeStyle(_.value)},[a.createVNode(a.unref(Ai),a.mergeProps({class:"ao-project-phase__milestones-list",list:d.value,disabled:i.readonly||!i.isEditable,"item-key":"id",group:"kanban"},x.$attrs,{onChange:v}),{item:a.withCtx(({element:M})=>{var T;return[a.createVNode(vV,{id:M.id,name:M.name,color:M.color,"phase-color":i.phase.color,activities:M.activities,deadline:M.deadline,active:M.active,"is-editable":!i.readonly&&i.isEditable,"is-draggable":!i.readonly&&i.isEditable,"closed-status":i.closedStatus,"is-selected":M.id===((T=x.$route.params)==null?void 0:T.milestoneId),assignee:M.assignee,important:M.important,readonly:i.readonly,"time-tracking-data":i.timeTrackingData,"estimation-unit":i.estimationUnit,class:a.normalizeClass(["ao-project-phase__milestone"]),onClick:L=>!i.readonly&&x.$router.push({name:a.unref(xt).milestone,params:{phaseId:i.phase.id,milestoneId:M.id}}),onUpdateMilestone:f,onArchiveMilestone:p,onUnarchiveMilestone:m},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"]),a.createElementVNode("div",$V,[i.isEditable?(a.openBlock(),a.createBlock(Xs,{key:0,label:x.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:S[0]||(S[0]=()=>h(i.phase.id))},null,8,["label"])):a.createCommentVNode("",!0)])],4)]))]))}}),zD="",VV={class:"ao-project__phases"},RV={key:0,class:"ao-project-phase__phases-list-footer"},IV={class:"ao-project-phase__col-phase"},s0=a.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(i,{emit:e}){const t=i,s=e;a.watch(()=>t.phases,(g,y)=>{Bs(g,y)});const n=g=>{s("addMilestone",g)},r=g=>{s("updateMilestone",g)},l=g=>{s("archiveMilestone",g)},c=g=>{s("unarchiveMilestone",g)},d=g=>{s("archivePhase",g)},h=g=>{s("unarchivePhase",g)},f=g=>{if(g.moved){const y=rc(g,t.phases??[]);s("updatePhase",{id:g.moved.element.id,rank:y})}},p=g=>{s("updatePhase",g)},m=g=>{s("addPhase",g)};return(g,y)=>(a.openBlock(),a.createElementBlock("div",VV,[a.createVNode(a.unref(Ai),{class:"ao-project-phase__phases-list","model-value":i.phases,"item-key":"id",handle:".ao-card__drag",onChange:f},{item:a.withCtx(({element:v})=>[a.createVNode(OV,{phase:v,"is-editable":!i.readonly&&i.isEditable,"closed-status":i.closedStatus,users:i.users,readonly:i.readonly,"time-tracking-data":i.timeTrackingData,"estimation-unit":i.estimationUnit,onAddMilestone:n,onUpdateMilestone:r,onArchiveMilestone:l,onUnarchiveMilestone:c,onUpdatePhase:p,onArchivePhase:d,onUnarchivePhase:h},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),i.isEditable?(a.openBlock(),a.createElementBlock("div",RV,[y[0]||(y[0]=a.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),a.createElementVNode("div",IV,[a.createVNode(Xs,{label:g.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:m},null,8,["label"])]),y[1]||(y[1]=a.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):a.createCommentVNode("",!0)]))}}),jD="",DV={class:"ao-add-template-modal__form-body"},PV={class:"field__row"},HV={class:"ao-add-template-modal__form-footer"},jy=a.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(i,{emit:e}){const t=i,s=e,n=a.computed(()=>t.templates.map(d=>({value:d.id,label:d.name}))),r=a.ref(null),l=d=>{r.value=d},c=()=>{r.value&&s("apply",r.value,t.projectId)};return(d,h)=>(a.openBlock(),a.createBlock(Su,{size:"sm"},{header:a.withCtx(()=>[a.createVNode(Ht,{title:d.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:a.withModifiers(c,["prevent"])},[a.createElementVNode("p",null,a.toDisplayString(d.$t("project.template.apply.notice")),1),a.createElementVNode("div",DV,[a.createElementVNode("div",PV,[a.createVNode(ci,{value:r.value,options:n.value,detached:!0,onChange:l},null,8,["value","options"])])]),a.createElementVNode("footer",HV,[a.createVNode(ke,{label:d.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:c},null,8,["label"])])],32)]),_:1}))}}),WD="",FV={class:"ao-save-template-modal__form-body"},zV={class:"field__row"},jV={class:"ao-field ao-field--inline"},WV={class:"ao-field__label"},UV={class:"ao-save-template-modal__phases"},qV={class:"ao-field__label"},ZV={class:"ao-save-template-modal__phases-list"},GV=["value"],YV={class:"ao-save-template-modal__form-footer"},Wy=a.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(i,{emit:e}){const t=i,s=e,n=a.ref(""),r=a.ref([]);a.onMounted(()=>{r.value=t.phases.map(c=>c.id)});const l=()=>{n.value&&s("save",n.value,r.value)};return(c,d)=>(a.openBlock(),a.createBlock(Su,{size:"sm"},{header:a.withCtx(()=>[a.createVNode(Ht,{title:c.$t("project.template.save.title"),level:3},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:a.withModifiers(l,["prevent"])},[a.createElementVNode("div",FV,[a.createElementVNode("div",zV,[a.createElementVNode("label",jV,[a.createElementVNode("span",WV,a.toDisplayString(c.$t("project.template.name.label"))+": ",1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=h=>n.value=h),type:"text"},null,512),[[a.vModelText,n.value]])])]),a.createElementVNode("div",UV,[a.createElementVNode("div",qV,a.toDisplayString(c.$t("project.template.phases.label")),1),a.createElementVNode("div",ZV,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.phases,h=>(a.openBlock(),a.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:h.id},[a.withDirectives(a.createElementVNode("input",{type:"checkbox",value:h.id,"onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f)},null,8,GV),[[a.vModelCheckbox,r.value]]),a.createElementVNode("span",null,a.toDisplayString(h.name),1)]))),128))])])]),a.createElementVNode("footer",YV,[a.createVNode(ke,{label:c.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}}),UD="",KV={class:"ao-project"},XV={class:"ao-project__body"},QV=a.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(i,{emit:e}){const{t}=Ms(),s=i,n=e,r=a.computed(()=>s.phases.flatMap(I=>I.milestones)),l=()=>{const{name:I,rank:G}=fo(s.phases,"phase",t);n("addPhase",{name:I,rank:G,projectId:s.project.id})},c=I=>{n("updatePhase",I)},d=I=>{n("archivePhase",I)},h=I=>{n("unarchivePhase",I)},f=I=>{n("copyPhaseToTemplate",I)},p=I=>{n("addMilestone",I)},m=I=>{n("updateMilestone",I)},g=I=>{n("archiveMilestone",I)},y=I=>{n("unarchiveMilestone",I)},v=I=>{n("addActivity",I)},b=I=>{n("update:activity",I)},w=I=>{n("archiveActivity",I)},_=I=>{n("unarchiveActivity",I)},x=I=>{n("addSubtask",I)},S=I=>{n("updateSubtask",I)},M=I=>{n("deleteSubtask",I)},T=a.computed(()=>r.value.flatMap(I=>I.activities)),L=I=>{n("addFiles",I)},B=I=>{n("removeFile",I)},N=I=>{n("addComment",I)},O=I=>{n("updateComment",I)},A=I=>{n("removeComment",I)},V=a.ref(!1),R=a.ref(!1),$=(I,G)=>{n("applyTemplate",{templateId:I,projectId:G}),V.value=!1},P=(I,G)=>{var se;const j=(se=s.templates)==null?void 0:se.at(-1),K=j?Ft.LexoRank.parse(j.rank).genNext():Ft.LexoRank.middle();n("saveTemplate",{templateName:I,rank:K.format(),phaseIds:G}),R.value=!1},W=rt.useRouter(),Z=a.ref("overview"),F=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(Z,I=>{I==="feed"?(W.push({name:xt.feed}),console.log("Navigating to feed...")):I==="overview"?(W.push({name:xt.project}),console.log("Navigating to feed...")):I==="mapping"&&(W.push({name:xt.mapping}),console.log("Navigating to feed..."))}),(I,G)=>{var K;const j=a.resolveComponent("RouterView");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({class:"ao-project-overview"},I.$attrs),[a.createElementVNode("div",KV,[a.createVNode(ac,null,{primary:a.withCtx(()=>[a.createVNode(Cc,{tabs:F,modelValue:Z.value,"onUpdate:modelValue":G[0]||(G[0]=se=>Z.value=se)},null,8,["modelValue"]),a.createVNode(ke,{class:"ao-feed__show-archived",size:"sm","icon-name":i.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:I.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":i.showsArchived,onClick:G[1]||(G[1]=se=>I.$emit("update:showsArchived",!i.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:a.withCtx(()=>[i.isEditable===!0?(a.openBlock(),a.createBlock(ke,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:I.$t("project.template.save.label"),onClick:G[2]||(G[2]=se=>R.value=!0)},null,8,["label"])):a.createCommentVNode("",!0),i.isEditable===!0?(a.openBlock(),a.createBlock(ke,{key:1,class:"ao-project-overview__add-template",color:"primary",label:I.$t("project.template.apply.label"),onClick:G[3]||(G[3]=se=>V.value=!0)},null,8,["label"])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",XV,[a.createVNode(s0,{phases:i.phases,"closed-status":i.closedStatus,"is-editable":i.isEditable===!0,users:i.users,"time-tracking-data":i.timeTrackingData,"estimation-unit":(K=i.project)==null?void 0:K.estimationUnit,onAddMilestone:p,onUpdateMilestone:m,onArchiveMilestone:g,onUnarchiveMilestone:y,onAddPhase:l,onUpdatePhase:c,onArchivePhase:d,onUnarchivePhase:h,onCopyPhaseToTemplate:f},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),a.createVNode(j,{class:"ao-project__sidebar",phases:i.phases,"project-id":i.project.id,"project-name":i.project.name,users:i.users,"is-editable":i.isEditable===!0,"closed-status":i.closedStatus,"time-tracking-data":i.timeTrackingData,onClose:G[4]||(G[4]=se=>I.$router.push({name:a.unref(xt).project})),onUpdateMilestone:m,onAddActivity:v,onUpdateActivity:b,onArchiveActivity:w,onUnarchiveActivity:_},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(j,{name:"modal",activities:T.value,"is-task-checkable":i.isTaskCheckable,statuses:i.statuses,"activity-types":i.activityTypes,phases:i.phases,project:i.project,users:i.users,"user-id":i.userId,"is-editable":i.isEditable,"attachment-enabled":i.attachmentEnabled,"time-tracking-data":i.timeTrackingData,"onUpdate:activity":b,onAddSubtask:x,onUpdateSubtask:S,onDeleteSubtask:M,onAddFiles:L,onRemoveFile:B,onAddComment:N,onUpdateComment:O,onRemoveComment:A},{default:a.withCtx(({Component:se})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(se),null,{default:a.withCtx(D=>[a.renderSlot(I.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(D)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[R.value?(a.openBlock(),a.createBlock(Wy,{key:0,phases:i.phases,onClose:G[5]||(G[5]=se=>R.value=!1),onSave:P},null,8,["phases"])):a.createCommentVNode("",!0),V.value?(a.openBlock(),a.createBlock(jy,{key:1,"project-id":i.project.id,templates:i.templates,onClose:G[6]||(G[6]=se=>V.value=!1),onApply:$},null,8,["project-id","templates"])):a.createCommentVNode("",!0)]))],64)}}}),qD="",JV={class:"ao-card-feed__header"},eR={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},tR={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},iR={class:"ao-card-feed__body"},sR={key:0,class:"ao-card-feed__breadcrumbs"},nR={class:a.normalizeClass(["ao-card-feed__title-group"])},oR={class:"ao-card-feed__title-line"},rR={key:0,class:"ao-card-feed__slug"},aR={key:1,class:"ao-card-feed__deadline"},lR={class:"ao-card-feed__footer"},cR={class:"ao-card-feed__footer-row"},dR={class:"ao-assignees"},hR={key:0,class:"ao-assignee"},uR={key:0,class:"ao-card-feed__subitems"},fR={key:0,class:"ao-card-feed__subitem"},pR={class:"ao-card-feed__subitem"},mR={key:1,class:"ao-card-feed__subitem"},gR={class:"ao-card-feed__subitem"},vR={class:"ao-card-feed__timer-wrapper"},yR={class:"ao-card-feed__footer-row"},bR={key:0,class:"ao-card-feed__progress-wrapper"},CR={class:"ao-card-feed__subitem"},wR={class:"ao-card-feed__subitem"},n0=a.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(i,{emit:e}){const t=i,s=e,n=a.computed(()=>t.tagType==="milestone"?t.milestoneName:t.projectName),r=a.computed(()=>t.tagType==="milestone"?t.milestoneColor:t.projectColor),l=v=>{s("updateActivity",{id:t.id,name:v})},c=a.computed(()=>t.tagType==="milestone"&&t.phaseName?`${t.phaseName}`:t.phaseName&&t.milestoneName?`${t.phaseName} / ${t.milestoneName}`:""),d=a.computed(()=>t.assignee?[t.assignee]:[]),h=a.computed(()=>Tu(t.deadline)),f=v=>{s("removeAssignee",v)},p=()=>{s("startTimer",{activityId:t.id,name:t.name,project:t.projectName,projectId:t.projectId,slug:t.slug})},m=a.computed(()=>{var v;return(v=t.tasks)==null?void 0:v.length}),g=a.computed(()=>{var v;return(v=t.tasks)==null?void 0:v.filter(b=>b.isDone).length}),y=a.computed(()=>(g.value||0)/(m.value||1));return(v,b)=>(a.openBlock(),a.createBlock(u1,{class:a.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":i.isClosed}]),"is-clickable":!0},{header:a.withCtx(()=>[a.createElementVNode("div",JV,[n.value?(a.openBlock(),a.createBlock(Zl,{key:0,label:n.value,class:"ao-card-feed__project",variant:"solid",color:i.projectColor?void 0:"primary","raw-color":r.value},null,8,["label","color","raw-color"])):a.createCommentVNode("",!0),i.isPrivate||i.important||i.isClosed?(a.openBlock(),a.createElementBlock("div",eR,[i.isPrivate?(a.openBlock(),a.createBlock(qe,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):a.createCommentVNode("",!0),i.important?(a.openBlock(),a.createBlock(qe,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):a.createCommentVNode("",!0),i.isClosed?(a.openBlock(),a.createBlock(qe,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),v.$slots.secondary?(a.openBlock(),a.createElementBlock("div",tR,[a.renderSlot(v.$slots,"secondary")])):a.createCommentVNode("",!0)])]),default:a.withCtx(()=>[a.createElementVNode("div",iR,[c.value?(a.openBlock(),a.createElementBlock("span",sR,a.toDisplayString(c.value),1)):a.createCommentVNode("",!0),a.createElementVNode("div",nR,[a.createElementVNode("div",oR,[i.slug?(a.openBlock(),a.createElementBlock("span",rR,a.toDisplayString(i.slug)+": ",1)):a.createCommentVNode("",!0),a.createVNode(Ht,{id:i.id,title:i.name,level:5,"is-editable":i.isEditable,"onUpdate:title":l,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),i.deadline?(a.openBlock(),a.createElementBlock("span",aR,a.toDisplayString(h.value),1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",lR,[a.createElementVNode("div",cR,[a.createElementVNode("ul",dR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.value,w=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:w.id},[w?(a.openBlock(),a.createElementBlock("li",hR,[a.createVNode(ks,{"user-name":a.unref(P2)(w),"avatar-url":w.avatarUrl,"is-closable":!0,onClose:()=>f(w.id)},null,8,["user-name","avatar-url","onClose"])])):a.createCommentVNode("",!0)],64))),128))]),i.comments||i.attachments?(a.openBlock(),a.createElementBlock("ul",uR,[i.comments?(a.openBlock(),a.createElementBlock("li",fR,[a.createVNode(qe,{name:"ChatOutline",size:"sm"}),a.createElementVNode("span",pR,a.toDisplayString(i.comments),1)])):a.createCommentVNode("",!0),i.attachments?(a.openBlock(),a.createElementBlock("li",mR,[a.createVNode(qe,{name:"AttachFileRounded",size:"sm"}),a.createElementVNode("span",gR,a.toDisplayString(i.attachments),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",vR,[a.createVNode(qe,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:a.withModifiers(p,["stop"])})])]),a.createElementVNode("div",yR,[i.tasks&&i.tasks.length?(a.openBlock(),a.createElementBlock("div",bR,[a.createElementVNode("div",CR,[a.createVNode(qe,{name:"SelectCheckBox",size:"sm"}),a.createElementVNode("span",wR,a.toDisplayString(g.value)+" / "+a.toDisplayString(m.value),1)]),a.createVNode(f1,{percentages:y.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):a.createCommentVNode("",!0)])])]),_:3},8,["class"]))}}),ZD="",_R={class:"ao-project-milestone"},kR={class:"ao-project-milestone__header"},xR={class:"ao-project-milestone__header_line"},ER={class:"ao-project-milestone__header_line"},TR={class:"ao-project-milestone__title"},SR={key:0,class:"ao-fieldset ao-milestone__fieldset"},MR={class:"ao-field__row ao-milestone__field-row"},BR={class:"ao-field ao-field--inline"},NR={class:"ao-field__row ao-milestone__field-row"},LR={class:"ao-field ao-milestone__field-multiselect"},AR=["onClick"],$R={class:"ao-project-milestone__body"},OR={key:0,class:"ao-project-milestone__footer"},Uy=a.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(i,{emit:e}){const{t}=Ms(),s=i,n=e,r=M=>{var T;n("startTimer",M),(T=window.parent)==null||T.postMessage({type:"startTimer",data:M},"*")},l=a.computed(()=>{var M;return(M=s.phases)==null?void 0:M.find(T=>T.id===s.phaseId)}),c=a.computed(()=>{var M;return(M=s.phases)==null?void 0:M.flatMap(T=>T.milestones)}),d=a.computed(()=>{var M;return(M=c.value)==null?void 0:M.find(T=>T.id===s.milestoneId)}),h=a.computed(()=>{var M;return(M=d.value)==null?void 0:M.activities});a.watch(h,(M,T)=>{Bs(M,T)});const f=M=>{n("close",M)},p=()=>{const{name:M,rank:T}=fo(h.value??[],"activity",t);n("addActivity",{milestoneId:s.milestoneId,name:M,rank:T,projectId:s.projectId})},m=M=>{n("updateActivity",M)},g=M=>{h.value&&"moved"in M&&n("updateActivity",{id:M.moved.element.id,rank:Br(h.value,M.moved.newIndex)})},y=a.computed({get:()=>{var M;return(M=d.value)==null?void 0:M.color},set:M=>{d.value&&n("updateMilestone",{id:d.value.id,color:M})}}),v=a.computed({get:()=>{var M;return((M=d==null?void 0:d.value)==null?void 0:M.deadline)??""},set:M=>{d.value&&n("updateMilestone",{id:d.value.id,deadline:M!=null&&M.length?M:null})}}),b=M=>s.closedStatus?Um(M,s.closedStatus):!1,w=a.computed(()=>{var M;return((M=s.users)==null?void 0:M.map(T=>({label:`${T.firstName} ${T.lastName}`,value:T.id,avatar:T.avatarUrl})))||[]}),_=a.computed({get(){var M,T;return(T=(M=d.value)==null?void 0:M.assignee)!=null&&T.id?[d.value.assignee.id]:[]},set(M){n("updateMilestone",{id:s.milestoneId,assigneeId:M[0]??null})}}),x=a.computed({get(){var M;return((M=d.value)==null?void 0:M.important)??!1},set(M){n("updateMilestone",{id:s.milestoneId,important:M})}}),S=(M,T)=>{const L=M.currentTarget;L instanceof HTMLElement&&T(L)};return(M,T)=>{var L;return a.openBlock(),a.createElementBlock("div",_R,[a.createElementVNode("header",kR,[a.createElementVNode("div",xR,[a.createVNode(ke,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:f})]),a.createElementVNode("div",ER,[a.createElementVNode("div",TR,[a.createVNode(Ht,{title:((L=d.value)==null?void 0:L.name)||i.milestoneId,level:5},null,8,["title"]),a.createVNode(Hy,{modelValue:x.value,"onUpdate:modelValue":T[0]||(T[0]=B=>x.value=B),modelModifiers:{lazy:!0},disabled:!i.isEditable,class:"ao-milestone__important",color:"danger",label:M.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),d.value?(a.openBlock(),a.createElementBlock("div",SR,[a.createElementVNode("div",MR,[a.createElementVNode("label",BR,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":T[1]||(T[1]=B=>v.value=B),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[a.vModelText,v.value,void 0,{lazy:!0}]])])]),a.createElementVNode("div",NR,[a.createElementVNode("label",LR,[a.createVNode(ci,{modelValue:_.value,"onUpdate:modelValue":T[2]||(T[2]=B=>_.value=B),options:w.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:M.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!i.isEditable,caret:i.isEditable},{tag:a.withCtx(({option:B,handleTagRemove:N})=>[a.createVNode(ks,{"user-name":B.label,"avatar-url":B.avatar,"is-closable":!0,onClose:O=>N(B,O)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),a.createVNode(p1,{color:y.value,"onUpdate:color":T[3]||(T[3]=B=>y.value=B)},{clickable:a.withCtx(({openPicker:B,bgColor:N})=>[a.createElementVNode("button",{style:a.normalizeStyle({background:N}),class:"color-button",onClick:O=>S(O,B)},null,12,AR)]),_:1},8,["color"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",$R,[a.createVNode(a.unref(Ai),a.mergeProps({class:"ao-project-milestone__activities",list:h.value,disabled:!i.isEditable,"item-key":"id",group:"kanban"},M.$attrs,{onChange:g}),{item:a.withCtx(({element:B})=>{var N,O,A,V,R;return[a.createVNode(n0,{id:B.id,name:B.name||B.id,"project-id":i.projectId,"phase-name":(N=l.value)==null?void 0:N.name,"milestone-name":(O=d.value)==null?void 0:O.name,"milestone-color":(A=d.value)==null?void 0:A.color,deadline:B.deadline,important:B.important,users:i.users,assignee:B.assignee,slug:B.slug,comments:(V=B.comments)==null?void 0:V.length,attachments:(R=B.attachments)==null?void 0:R.length,tasks:B.tasks,"is-editable":i.isEditable,"is-private":B.private,"is-closed":b(B),onClick:$=>M.$router.push({name:a.unref(xt).activity,params:{milestoneId:i.milestoneId,activityId:B.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:B.id,assigneeId:null}),onStartTimer:r},a.createSlots({_:2},[i.isEditable?{name:"secondary",fn:a.withCtx(()=>[i.isEditable&&B.active?(a.openBlock(),a.createBlock(ke,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:M.$t("archive"),onClick:a.withModifiers(()=>M.$emit("archiveActivity",{id:B.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0),i.isEditable&&!B.active?(a.openBlock(),a.createBlock(ke,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:M.$t("feed.activity.unarchive"),onClick:a.withModifiers(()=>M.$emit("unarchiveActivity",{id:B.id}),["stop"])},null,8,["label","onClick"])):a.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"]),i.isEditable?(a.openBlock(),a.createElementBlock("div",OR,[a.createVNode(Xs,{"icon-name":"Add",label:M.$t("project.activity.add"),onClick:p},null,8,["label"])])):a.createCommentVNode("",!0)])])}}}),GD="",VR=a.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(i,{emit:e}){const t=i,s=e,n=a.computed(()=>{var w;return(w=t.phases)==null?void 0:w.find(_=>_.id===t.phaseId)}),r=a.computed(()=>{var w;return(w=t.phases)==null?void 0:w.flatMap(_=>_.milestones)}),l=a.computed(()=>{var w;return(w=r.value)==null?void 0:w.find(_=>_.id===t.milestoneId)}),c=a.computed(()=>{var w;return(w=t.activities)==null?void 0:w.find(_=>_.id===t.activityId)}),d=w=>{s("update:activity",w)},h=w=>{s("addSubtask",w)},f=w=>{s("updateSubtask",w)},p=w=>{s("deleteSubtask",w)},m=w=>{s("addFiles",w)},g=w=>{s("removeFile",w)},y=w=>{s("addComment",w)},v=w=>{s("updateComment",w)},b=w=>{s("removeComment",w)};return(w,_)=>{var x,S;return c.value?(a.openBlock(),a.createBlock(Zg,{key:0,activity:c.value,"activity-types":i.activityTypes,"milestone-id":i.milestoneId,"template-activities":i.activities,"is-template":!1,users:i.users,"user-id":i.userId,"is-task-checkable":i.isTaskCheckable,statuses:i.statuses,breadcrumbs:`${(x=n.value)==null?void 0:x.name} / ${(S=l.value)==null?void 0:S.name}`,"is-editable":i.isEditable,"attachment-enabled":i.attachmentEnabled,projects:[i.project],"time-tracking-data":i.timeTrackingData,onClose:w.$router.back,"onUpdate:activity":d,onAddSubtask:h,onUpdateSubtask:f,onDeleteSubtask:p,onAddFiles:m,onRemoveFile:g,onAddComment:y,onUpdateComment:v,onRemoveComment:b},{default:a.withCtx(M=>[a.renderSlot(w.$slots,"default",a.normalizeProps(a.guardReactiveProps(M)))]),_: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"])):a.createCommentVNode("",!0)}}}),RR={class:"ao-col-header"},IR=a.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("header",RR,[a.createVNode(Ht,{title:i.title,class:"ao-col-header__title",level:4},null,8,["title"]),i.items?(a.openBlock(),a.createBlock(Zl,{key:0,label:i.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):a.createCommentVNode("",!0)]))}}),YD="";function DR(i){return a.getCurrentScope()?(a.onScopeDispose(i),!0):!1}function m1(i){return typeof i=="function"?i():a.unref(i)}const PR=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const HR=i=>i!=null,wc=()=>{};function FR(i,e){function t(...s){return new Promise((n,r)=>{Promise.resolve(i(()=>e.apply(this,s),{fn:e,thisArg:this,args:s})).then(n).catch(r)})}return t}function zR(i,e={}){let t,s,n=wc;const r=c=>{clearTimeout(c),n(),n=wc};return c=>{const d=m1(i),h=m1(e.maxWait);return t&&r(t),d<=0||h!==void 0&&h<=0?(s&&(r(s),s=null),Promise.resolve(c())):new Promise((f,p)=>{n=e.rejectOnCancel?p:f,h&&!s&&(s=setTimeout(()=>{t&&r(t),s=null,f(c())},h)),t=setTimeout(()=>{s&&r(s),s=null,f(c())},d)})}}function jR(i,e=200,t={}){return FR(zR(e,t),i)}function o0(i){var e;const t=m1(i);return(e=t==null?void 0:t.$el)!=null?e:t}const WR=PR?window:void 0;function UR(){const i=a.ref(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{i.value=!0},e),i}function qR(i){const e=UR();return a.computed(()=>(e.value,!!i()))}function ZR(i,e,t={}){const{root:s,rootMargin:n="0px",threshold:r=.1,window:l=WR,immediate:c=!0}=t,d=qR(()=>l&&"IntersectionObserver"in l),h=a.computed(()=>{const y=m1(i);return(Array.isArray(y)?y:[y]).map(o0).filter(HR)});let f=wc;const p=a.ref(c),m=d.value?a.watch(()=>[h.value,o0(s),p.value],([y,v])=>{if(f(),!p.value||!y.length)return;const b=new IntersectionObserver(e,{root:o0(v),rootMargin:n,threshold:r});y.forEach(w=>w&&b.observe(w)),f=()=>{b.disconnect(),f=wc}},{immediate:c,flush:"post"}):wc,g=()=>{f(),m(),p.value=!1};return DR(g),{isSupported:d,isActive:p,pause(){f(),p.value=!1},resume(){p.value=!0},stop:g}}const GR={class:a.normalizeClass(["ao-list-kanban"])},YR={class:"ao-list-kanban__header"},KR={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},XR={key:1,class:"ao-list-kanban__end"},QR={key:0,class:"ao-list-kanban__no-more"},JR={key:1,class:"ao-list-kanban__divider"},eI={key:1,class:"ao-list-kanban__footer"},tI=a.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(i,{emit:e}){const t=i,s=e,n=a.ref(!1),r=a.ref(null);ZR(r,([{isIntersecting:p}])=>{n.value=p}),a.watch(n,p=>{p&&t.hasMore&&!t.isLoading&&s("loadMore")});const l=p=>{var m;return t.isEditable===!0?!0:t.userId&&t.isEditable==="only-own"?t.userId===((m=p.assignee)==null?void 0:m.id):!1},c=p=>{s("selectActivity",p)},d=p=>{s("updateActivity",p)},h=p=>{"added"in p?s("updateActivity",{id:p.added.element.id,statusId:t.status.id,rank:Br(t.list,p.added.newIndex)}):"removed"in p||"moved"in p&&s("updateActivity",{id:p.moved.element.id,rank:Br(t.list,p.moved.newIndex)})},f=a.ref(!1);return(p,m)=>(a.openBlock(),a.createElementBlock("div",GR,[i.title||p.$slots.header?a.renderSlot(p.$slots,"header",{},()=>{var g;return[a.createElementVNode("div",YR,[i.title?(a.openBlock(),a.createBlock(IR,{key:0,title:i.title,level:3,items:(g=i.list)==null?void 0:g.length},null,8,["title","items"])):a.createCommentVNode("",!0)])]},void 0,0):a.createCommentVNode("",!0),a.createVNode(a.unref(Ai),a.mergeProps({class:["ao-list-kanban__list",f.value?"ao-list-kanban__transition":void 0],list:i.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},p.$attrs,{draggable:".ao-list-draggable",disabled:!i.isEditable,onChange:h,onStart:m[1]||(m[1]=g=>f.value=!0),onEnd:m[2]||(m[2]=g=>f.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:a.withCtx(({element:g})=>{var y,v,b,w,_,x,S,M,T,L;return[a.createVNode(n0,{class:a.normalizeClass(l(g)?"ao-list-draggable":""),id:g.id,name:g.name,"project-name":(y=g.project)==null?void 0:y.name,"project-id":(v=g.project)==null?void 0:v.id,"project-color":(b=g.project)==null?void 0:b.color,"phase-name":(_=(w=g.milestone)==null?void 0:w.phase)==null?void 0:_.name,"milestone-name":(x=g.milestone)==null?void 0:x.name,"milestone-color":(S=g.milestone)==null?void 0:S.color,deadline:g.deadline,rules:((M=g.rules)==null?void 0:M.length)||0,tasks:g.tasks,description:g.description,important:g.important,type:g.type,comments:(T=g.comments)==null?void 0:T.length,attachments:(L=g.attachments)==null?void 0:L.length,users:i.users,assignee:g.assignee,slug:g.slug,"is-editable":l(g),"is-private":g.private,"tag-type":i.tagType,onUpdateActivity:[B=>l(g)&&d(B),()=>l(g)&&d],onClick:()=>c(g.id),onRemoveAssignee:()=>l(g)&&d({id:g.id,assigneeId:null}),onStartTimer:m[0]||(m[0]=B=>p.$emit("startTimer",B))},{secondary:a.withCtx(()=>[l(g)&&g.active?(a.openBlock(),a.createBlock(ke,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.archive"),onClick:a.withModifiers(()=>p.$emit("archiveActivity",{id:g.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0),l(g)&&!g.active?(a.openBlock(),a.createBlock(ke,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.unarchive"),onClick:a.withModifiers(()=>p.$emit("unarchiveActivity",{id:g.id}),["stop"])},null,8,["label","onClick"])):a.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:a.withCtx(()=>[i.isLoading?(a.openBlock(),a.createElementBlock("div",KR,[a.createVNode(qe,{name:"Loading"})])):i.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:r,class:"ao-list-kanban__end"},null,512)):(a.openBlock(),a.createElementBlock("div",XR,[i.noMoreLabel?(a.openBlock(),a.createElementBlock("span",QR,a.toDisplayString(i.noMoreLabel),1)):i.isEditable?(a.openBlock(),a.createElementBlock("span",JR)):a.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),p.$slots.footer||i.footerLabel?(a.openBlock(),a.createElementBlock("div",eI,[a.renderSlot(p.$slots,"footer",{},()=>[i.isEditable?(a.openBlock(),a.createBlock(Xs,{key:0,"icon-name":"AddBoxOutlineRounded",label:i.footerLabel,onClick:m[3]||(m[3]=g=>p.$emit("add"))},null,8,["label"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]))}}),KD="",iI={class:"ao-field ao-search-field"},sI=["value","placeholder"],nI=a.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(i,{emit:e}){const t=i,s=e,n=async c=>{const h=c.target.value;s("update:modelValue",h,c)},r=jR(n,t.delay),l=c=>{s("clear",c)};return(c,d)=>(a.openBlock(),a.createElementBlock("div",iI,[a.createElementVNode("input",{value:i.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:i.placeholder,onInput:d[0]||(d[0]=(...h)=>a.unref(r)&&a.unref(r)(...h)),onKeypress:a.withKeys(n,["enter"])},null,40,sI),a.createVNode(qe,{name:"SearchRounded",class:a.normalizeClass(`ao-search-field__icon ao-search-field__action ${i.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),a.createVNode(ke,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:a.normalizeClass(`ao-search-field__button ao-search-field__action ${i.modelValue?"ao-search-field__action--visible":""}`),onClick:l},null,8,["class"])]))}}),XD="",oI={class:"ao-feed"},rI={class:"ao-feed__filters"},aI={class:"ao-feed__body"},qy=a.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(i,{emit:e}){const{t}=Ms(),s=i,n=e;function r(j,K){n("toast",j,K)}const l=a.toRef(s,"activities"),c=async(j,K)=>{await n("selectActivity",j,K)},d=a.ref({}),h=a.ref(!1),f=a.ref(!1),p=a.computed(()=>s.project?"milestone":"project");a.watch([()=>s.statuses,()=>s.activities,()=>s.initialActivityId,()=>s.initialActivitySlug],async([j,K,se,D],[U,z])=>{d.value=Object.fromEntries(j.map(Q=>[Q.id,K.filter(re=>{var le;return((le=re.status)==null?void 0:le.id)===Q.id})])),se&&!h.value?(c(se,null),h.value=!0):D&&!h.value&&(c(null,D),h.value=!0),f.value&&Bs(K,z)},{immediate:!0});const m=a.computed(()=>{var j;return!s.selectedActivity||!s.selectedActivity.milestone?"":`${((j=s.selectedActivity.milestone.phase)==null?void 0:j.name)??""} / ${s.selectedActivity.milestone.name??""}`}),g=j=>{var z,Q;const K=(z=s.activities)==null?void 0:z.at(-1),se=K?Ft.LexoRank.parse(K.rank).genNext():Ft.LexoRank.middle(),D=((Q=s.activities)==null?void 0:Q.length)??0,U={name:t("activity.defaultName",{idx:D+1}),rank:se.format(),statusId:j.id};s.filters.assigneeId.length>0&&(U.assigneeId=s.filters.assigneeId[0]),s.filters.projectId.length>0&&(U.projectId=s.filters.projectId[0]),s.filters.typeId.length>0&&(U.typeId=s.filters.typeId[0]),f.value=!0,n("addActivity",U)},y=(j,K)=>{f.value=!1,n("update:filters",{...s.filters,[j]:K})},v=a.computed(()=>s.project?[s.project]:s.projects??[]),b=a.computed(()=>v.value.map(j=>({value:j.id,label:j.name}))),w=a.computed(()=>{var j;return(j=s.activityTypes)==null?void 0:j.map(K=>({value:K.id,label:K.name}))}),_=a.computed(()=>s.users.map(j=>({value:j.id,label:`${j.firstName} ${j.lastName}`,avatar:j.avatarUrl}))),x=j=>{s.selectedActivity&&n("update:activity",j)},S=j=>{n("update:activity",j)},M=j=>{n("archiveActivity",j)},T=j=>{n("unarchiveActivity",j)},L=j=>{var K;n("startTimer",j),(K=window.parent)==null||K.postMessage({type:"startTimer",data:j},"*")},B=j=>{f.value=!1,n("update:searchText",j)},N=j=>{f.value=!1,n("clear:searchText",j)},O=j=>{s.selectedActivity&&n("addSubtask",j)},A=j=>{s.selectedActivity&&n("updateSubtask",j)},V=j=>{s.selectedActivity&&n("deleteSubtask",j)},R=j=>{n("addFiles",j)},$=j=>{n("removeFile",j)},P=j=>{s.selectedActivity&&n("addComment",{...j,activityId:s.selectedActivity.id})},W=j=>{const{id:K}=s.selectedActivity||{};K&&n("updateComment",j)},Z=j=>{const{id:K}=s.selectedActivity||{};K&&n("removeComment",j)},F=rt.useRouter(),I=a.ref("feed"),G=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(I,j=>{j==="feed"?(F.push({name:xt.feed}),console.log("Navigating to feed...")):j==="overview"?(F.push({name:xt.project}),console.log("Navigating to feed...")):j==="mapping"&&(F.push({name:xt.mapping}),console.log("Navigating to feed..."))}),(j,K)=>{var se;return a.openBlock(),a.createElementBlock("div",oI,[a.createVNode(ac,null,{primary:a.withCtx(()=>[a.createElementVNode("div",rI,[a.createVNode(Cc,{tabs:G,modelValue:I.value,"onUpdate:modelValue":K[0]||(K[0]=D=>I.value=D)},null,8,["modelValue"]),a.createVNode(nI,{"model-value":i.searchText,placeholder:j.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":B,onClear:N},null,8,["model-value","placeholder"]),s.project?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(ci,{key:0,"model-value":i.filters[a.unref(Qn).project],mode:"tags",options:b.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:j.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":K[1]||(K[1]=D=>y(a.unref(Qn).project,D))},null,8,["model-value","options","placeholder"])),w.value?(a.openBlock(),a.createBlock(ci,{key:1,"model-value":i.filters[a.unref(Qn).type],mode:"tags",options:w.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:j.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":K[2]||(K[2]=D=>y(a.unref(Qn).type,D))},null,8,["model-value","options","placeholder"])):a.createCommentVNode("",!0),_.value.length?(a.openBlock(),a.createBlock(ci,{key:2,"model-value":i.filters[a.unref(Qn).assignee],mode:"tags",options:_.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:j.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":K[3]||(K[3]=D=>y(a.unref(Qn).assignee,D))},{tag:a.withCtx(({option:D,handleTagRemove:U})=>[a.createVNode(ks,{"user-name":D.label,"avatar-url":D.avatar,"is-closable":!0,onClose:z=>U(D,z)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):a.createCommentVNode("",!0)]),a.createVNode(ke,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":i.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:j.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":i.showsOnlyNonAssigned,onClick:K[4]||(K[4]=D=>j.$emit("update:showsOnlyNonAssigned",!i.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),a.createVNode(ke,{class:"ao-feed__only-important",size:"sm","icon-name":i.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:j.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":i.showsOnlyImportant,onClick:K[5]||(K[5]=D=>j.$emit("update:showsOnlyImportant",!i.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),a.createVNode(ke,{class:"ao-feed__show-archived",size:"sm","icon-name":i.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:j.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":i.showsArchivedActivities,onClick:K[6]||(K[6]=D=>j.$emit("update:showsArchivedActivities",!i.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),a.createElementVNode("div",aI,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.statuses,D=>(a.openBlock(),a.createBlock(tI,{key:D.id,status:D,list:d.value[D.id],title:D.name,"footer-label":j.$t("feed.activity.add"),users:i.users,"user-id":i.userId,"is-editable":i.isEditable,tagType:p.value,onAdd:()=>g(D),onSelectActivity:c,onArchiveActivity:M,onUnarchiveActivity:T,onUpdateActivity:S,onStartTimer:L},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[i.selectedActivity?(a.openBlock(),a.createBlock(Zg,{key:0,activity:i.selectedActivity,"activity-types":i.activityTypes,"milestone-id":(se=i.selectedActivity.milestone)==null?void 0:se.id,"template-activities":l.value,users:i.users,"user-id":i.userId,"is-task-checkable":i.isTaskCheckable,statuses:i.statuses,breadcrumbs:m.value,"is-editable":i.isEditable,"attachment-enabled":i.attachmentEnabled,projects:v.value,"time-tracking-data":i.timeTrackingData,onClose:K[7]||(K[7]=()=>c(null,null)),"onUpdate:activity":x,onAddSubtask:O,onUpdateSubtask:A,onDeleteSubtask:V,onAddFiles:R,onRemoveFile:$,onAddComment:P,onUpdateComment:W,onRemoveComment:Z,onToast:r},{default:a.withCtx(D=>[a.renderSlot(j.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(D)))]),_: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"])):a.createCommentVNode("",!0)]))])}}}),QD="",lI={class:"ao-project-mapping"},cI={class:"ao-project-mapping-mapping__body"},dI={class:"ao-project-mapping-mapping__phases"},hI={key:0,class:"ao-project-mapping-mapping__image-wrapper"},uI=["src","alt"],fI=a.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(i,{emit:e}){const{t}=Ms(),s=i,n=e,r=()=>{const{name:w,rank:_}=fo(s.phases,"phase",t);n("addPhase",{name:w,rank:_,projectId:s.project.id})},l=w=>{n("updatePhase",w)},c=w=>{n("archivePhase",w)},d=w=>{n("unarchivePhase",w)},h=w=>{n("copyPhaseToTemplate",w)},f=a.ref(!1),p=a.ref(!1),m=(w,_)=>{n("applyTemplate",{templateId:w,projectId:_}),f.value=!1},g=(w,_)=>{var M;const x=(M=s.templates)==null?void 0:M.at(-1),S=x?Ft.LexoRank.parse(x.rank).genNext():Ft.LexoRank.middle();n("saveTemplate",{templateName:w,rank:S.format(),phaseIds:_}),p.value=!1},y=rt.useRouter(),v=a.ref("mapping"),b=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(v,w=>{w==="feed"?(y.push({name:xt.feed}),console.log("Navigating to feed...")):w==="overview"?(y.push({name:xt.project}),console.log("Navigating to feed...")):w==="mapping"&&(y.push({name:xt.mapping}),console.log("Navigating to feed..."))}),(w,_)=>{var x;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({class:"ao-project-mapping-overview"},w.$attrs),[a.createElementVNode("div",lI,[a.createVNode(ac,null,{primary:a.withCtx(()=>[a.createVNode(Cc,{modelValue:v.value,"onUpdate:modelValue":_[0]||(_[0]=S=>v.value=S),tabs:b},null,8,["modelValue"]),a.createVNode(ke,{class:"ao-feed__show-archived",size:"sm","icon-name":i.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:w.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":i.showsArchived,onClick:_[1]||(_[1]=S=>w.$emit("update:showsArchived",!i.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:a.withCtx(()=>[i.isEditable===!0?(a.openBlock(),a.createBlock(ke,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:w.$t("project.template.save.label"),onClick:_[2]||(_[2]=S=>p.value=!0)},null,8,["label"])):a.createCommentVNode("",!0),i.isEditable===!0?(a.openBlock(),a.createBlock(ke,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:w.$t("project.template.apply.label"),onClick:_[3]||(_[3]=S=>f.value=!0)},null,8,["label"])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",cI,[a.createElementVNode("div",dI,[a.createVNode(s0,{phases:i.phases,"closed-status":i.closedStatus,"is-editable":i.isEditable===!0,users:i.users,"estimation-unit":(x=i.project)==null?void 0:x.estimationUnit,onAddPhase:r,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:d,onCopyPhaseToTemplate:h},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),i.project.architectureImage?(a.openBlock(),a.createElementBlock("div",hI,[a.createElementVNode("img",{class:"architecture-image",src:i.project.architectureImage.url,alt:a.unref(t)("architectureImage.alt")},null,8,uI)])):a.createCommentVNode("",!0)])])],16),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[p.value?(a.openBlock(),a.createBlock(Wy,{key:0,phases:i.phases,onClose:_[4]||(_[4]=S=>p.value=!1),onSave:g},null,8,["phases"])):a.createCommentVNode("",!0),f.value?(a.openBlock(),a.createBlock(jy,{key:1,"project-id":i.project.id,templates:i.templates,onClose:_[5]||(_[5]=S=>f.value=!1),onApply:m},null,8,["project-id","templates"])):a.createCommentVNode("",!0)]))],64)}}}),JD="",mo={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},pI=(i,e={})=>[{path:i,name:mo.TEMPLATES,redirect:{name:mo.TEMPLATES_LIST},...e,children:[{path:"",name:mo.TEMPLATES_LIST,component:Zy},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:mo.TEMPLATE_DETAILS,component:Fy,props:!0}]}],xt={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},mI=(i,e={})=>[{path:i,...e,redirect:{name:xt.project},children:[{path:"",name:xt.project,component:QV,props:!0,children:[{path:":phaseId/:milestoneId",name:xt.milestone,component:Uy,props:!0},{path:":phaseId/:milestoneId/:activityId",name:xt.activity,props:{default:!0,modal:!0},components:{default:Uy,modal:VR}}]},{path:"feed",name:xt.feed,component:qy,props:!0},{path:"mapping",name:xt.mapping,component:fI,props:!0}]}],gI={class:"ao-templates"},Zy=a.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(i,{emit:e}){const{t}=Ms(),s=i,n=e;a.watch(()=>s.templates,(h,f)=>{Bs(h,f)});const r=()=>{var g,y;const h=(g=s.templates)==null?void 0:g.at(-1),f=h?Ft.LexoRank.parse(h.rank).genNext():Ft.LexoRank.middle(),p=((y=s.templates)==null?void 0:y.length)??0,m={name:t("template.defaultName.template",{idx:p+1}),rank:f.format()};n("addTemplate",m)},l=(h,f)=>{n("updateItem",{itemType:ct.TEMPLATES,id:h,templateId:h,data:{name:f}})},c=(h,f)=>{n("removeItem",{itemType:ct.TEMPLATES,templateId:h,data:{id:h,...f?{name:f}:{}}})},d=h=>{if(h.moved){const f=rc(h,s.templates??[]);n("updateItem",{itemType:ct.TEMPLATES,id:h.moved.element.id,templateId:h.moved.element.id,data:{rank:f}})}};return(h,f)=>(a.openBlock(),a.createElementBlock("div",gI,[a.createVNode(ac,null,{secondary:a.withCtx(()=>[a.createVNode(ke,{label:h.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:r},null,8,["label"])]),_:1}),a.createVNode(a.unref(Ai),{"model-value":i.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:d},{item:a.withCtx(({element:p})=>{var m;return[a.createVNode(W8,{id:p.id,title:p.name,phases:p.phases,milestones:(m=p.phases)!=null&&m.length?a.unref(p8)(p.phases):0,activities:p.phases?a.unref(m8)(p.phases):0,"updated-at":p.updatedAt,"updated-by":p.updatedBy,onUpdateTitle:g=>l(p.id,g),onClick:g=>h.$router.push({name:a.unref(mo).TEMPLATE_DETAILS,params:{templateId:p.id}}),onDeleteItem:f[0]||(f[0]=(g,y)=>c(g,y))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}}),eP="",vI={class:"ao-field__label"},Gy=a.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass(["ao-field",{"ao-field--multiselect":i.isMultiselect}])},[a.createElementVNode("span",vI,a.toDisplayString(i.label),1),a.renderSlot(e.$slots,"default")],2))}}),yI=["type","value","disabled","readonly"],bI=a.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(i,{emit:e}){const t=i,s=e,n=a.computed(()=>t.modelModifiers.lazy?"change":"input"),r=l=>{t.modelModifiers.number&&(l=Number(l)),s("update:modelValue",l)};return(l,c)=>(a.openBlock(),a.createBlock(Gy,{label:i.label},{default:a.withCtx(()=>[a.createElementVNode("input",a.mergeProps({class:"ao-field__input",type:i.type,value:i.modelValue,disabled:i.isDisabled,readonly:i.isReadonly},{[a.toHandlerKey(n.value)]:c[0]||(c[0]=d=>r(d.target.value))}),null,16,yI)]),_:1},8,["label"]))}}),CI={class:"ao-field"},wI={class:"ao-field__label"},_I=["checked","disabled"],kI=a.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(i){return(e,t)=>(a.openBlock(),a.createElementBlock("label",CI,[a.createElementVNode("span",wI,a.toDisplayString(i.label),1),a.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:i.modelValue,disabled:i.isDisabled,onChange:t[0]||(t[0]=s=>{var n;return e.$emit("update:modelValue",((n=s.target)==null?void 0:n.checked)??!1)})},null,40,_I)]))}});ce.AoAvatar=ks,ce.AoCardFeed=n0,ce.AoCheckboxField=kI,ce.AoColorPicker=p1,ce.AoFeed=qy,ce.AoField=Gy,ce.AoInputField=bI,ce.AoMultiselect=ci,ce.AoProjectPhases=s0,ce.AoTabBar=Cc,ce.AoTemplateDetails=Fy,ce.AoTemplates=aC,ce.AoTemplatesList=Zy,ce.EstimationUnit=g2,ce.TemplateItemTypeEnum=m2,ce.activityFeedStatus=Bk,ce.durationTypes=Mk,ce.feedFilterTypes=Qn,ce.getProjectOverviewRoutes=mI,ce.getTemplateRoutes=pI,ce.listUpdateTypes=Nk,ce.milestoneStatus=Gl,ce.projectOverviewRoutes=xt,ce.ruleComparators=u2,ce.ruleDurationUnits=p2,ce.ruleTriggerTypes=f2,ce.templateItemType=ct,ce.templateRouteNames=mo,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});