@mnykj/wangeditoroptimize-basic-modules 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/README.md +3 -0
  2. package/dist/basic-modules/src/constants/icon-svg.d.ts +45 -0
  3. package/dist/basic-modules/src/index.d.ts +10 -0
  4. package/dist/basic-modules/src/locale/en.d.ts +93 -0
  5. package/dist/basic-modules/src/locale/index.d.ts +5 -0
  6. package/dist/basic-modules/src/locale/zh-CN.d.ts +93 -0
  7. package/dist/basic-modules/src/modules/blockquote/custom-types.d.ts +9 -0
  8. package/dist/basic-modules/src/modules/blockquote/elem-to-html.d.ts +11 -0
  9. package/dist/basic-modules/src/modules/blockquote/index.d.ts +7 -0
  10. package/dist/basic-modules/src/modules/blockquote/menu/BlockquoteMenu.d.ts +20 -0
  11. package/dist/basic-modules/src/modules/blockquote/menu/BlockquoteMergedMenu.d.ts +14 -0
  12. package/dist/basic-modules/src/modules/blockquote/menu/index.d.ts +15 -0
  13. package/dist/basic-modules/src/modules/blockquote/merge.d.ts +11 -0
  14. package/dist/basic-modules/src/modules/blockquote/parse-elem-html.d.ts +14 -0
  15. package/dist/basic-modules/src/modules/blockquote/plugin.d.ts +7 -0
  16. package/dist/basic-modules/src/modules/blockquote/render-elem.d.ts +16 -0
  17. package/dist/basic-modules/src/modules/blockquote/toolbar-icons.d.ts +7 -0
  18. package/dist/basic-modules/src/modules/code-block/code-block-ops.d.ts +11 -0
  19. package/dist/basic-modules/src/modules/code-block/custom-types.d.ts +19 -0
  20. package/dist/basic-modules/src/modules/code-block/elem-to-html.d.ts +16 -0
  21. package/dist/basic-modules/src/modules/code-block/index.d.ts +7 -0
  22. package/dist/basic-modules/src/modules/code-block/menu/CodeBlockMenu.d.ts +16 -0
  23. package/dist/basic-modules/src/modules/code-block/menu/index.d.ts +14 -0
  24. package/dist/basic-modules/src/modules/code-block/parse-elem-html.d.ts +19 -0
  25. package/dist/basic-modules/src/modules/code-block/plugin.d.ts +7 -0
  26. package/dist/basic-modules/src/modules/code-block/pre-parse-html.d.ts +15 -0
  27. package/dist/basic-modules/src/modules/code-block/pre-toolbar.d.ts +21 -0
  28. package/dist/basic-modules/src/modules/code-block/render-elem.d.ts +18 -0
  29. package/dist/basic-modules/src/modules/color/custom-types.d.ts +9 -0
  30. package/dist/basic-modules/src/modules/color/index.d.ts +7 -0
  31. package/dist/basic-modules/src/modules/color/menu/BaseMenu.d.ts +20 -0
  32. package/dist/basic-modules/src/modules/color/menu/BgColorMenu.d.ts +11 -0
  33. package/dist/basic-modules/src/modules/color/menu/ColorMenu.d.ts +11 -0
  34. package/dist/basic-modules/src/modules/color/menu/config.d.ts +6 -0
  35. package/dist/basic-modules/src/modules/color/menu/index.d.ts +20 -0
  36. package/dist/basic-modules/src/modules/color/parse-style-html.d.ts +8 -0
  37. package/dist/basic-modules/src/modules/color/pre-parse-html.d.ts +15 -0
  38. package/dist/basic-modules/src/modules/color/render-style.d.ts +13 -0
  39. package/dist/basic-modules/src/modules/color/style-to-html.d.ts +12 -0
  40. package/dist/basic-modules/src/modules/common/index.d.ts +7 -0
  41. package/dist/basic-modules/src/modules/common/menu/EnterMenu.d.ts +15 -0
  42. package/dist/basic-modules/src/modules/common/menu/index.d.ts +9 -0
  43. package/dist/basic-modules/src/modules/divider/custom-types.d.ts +12 -0
  44. package/dist/basic-modules/src/modules/divider/elem-to-html.d.ts +11 -0
  45. package/dist/basic-modules/src/modules/divider/index.d.ts +7 -0
  46. package/dist/basic-modules/src/modules/divider/menu/InsertDividerMenu.d.ts +17 -0
  47. package/dist/basic-modules/src/modules/divider/menu/RemoveDividerMenu.d.ts +14 -0
  48. package/dist/basic-modules/src/modules/divider/menu/index.d.ts +19 -0
  49. package/dist/basic-modules/src/modules/divider/parse-elem-html.d.ts +14 -0
  50. package/dist/basic-modules/src/modules/divider/plugin.d.ts +7 -0
  51. package/dist/basic-modules/src/modules/divider/render-elem.d.ts +13 -0
  52. package/dist/basic-modules/src/modules/emotion/index.d.ts +7 -0
  53. package/dist/basic-modules/src/modules/emotion/menu/EmotionMenu.d.ts +19 -0
  54. package/dist/basic-modules/src/modules/emotion/menu/config.d.ts +5 -0
  55. package/dist/basic-modules/src/modules/emotion/menu/index.d.ts +12 -0
  56. package/dist/basic-modules/src/modules/font-size-family/custom-types.d.ts +9 -0
  57. package/dist/basic-modules/src/modules/font-size-family/index.d.ts +7 -0
  58. package/dist/basic-modules/src/modules/font-size-family/menu/BaseMenu.d.ts +18 -0
  59. package/dist/basic-modules/src/modules/font-size-family/menu/FontFamilyMenu.d.ts +14 -0
  60. package/dist/basic-modules/src/modules/font-size-family/menu/FontSizeMenu.d.ts +13 -0
  61. package/dist/basic-modules/src/modules/font-size-family/menu/config.d.ts +12 -0
  62. package/dist/basic-modules/src/modules/font-size-family/menu/index.d.ts +26 -0
  63. package/dist/basic-modules/src/modules/font-size-family/parse-style-html.d.ts +8 -0
  64. package/dist/basic-modules/src/modules/font-size-family/pre-parse-html.d.ts +15 -0
  65. package/dist/basic-modules/src/modules/font-size-family/render-style.d.ts +13 -0
  66. package/dist/basic-modules/src/modules/font-size-family/style-to-html.d.ts +12 -0
  67. package/dist/basic-modules/src/modules/format-painter/index.d.ts +6 -0
  68. package/dist/basic-modules/src/modules/format-painter/menu/FormatPainterMenu.d.ts +25 -0
  69. package/dist/basic-modules/src/modules/format-painter/menu/index.d.ts +8 -0
  70. package/dist/basic-modules/src/modules/format-painter/plugin.d.ts +6 -0
  71. package/dist/basic-modules/src/modules/format-painter/state.d.ts +17 -0
  72. package/dist/basic-modules/src/modules/full-screen/index.d.ts +7 -0
  73. package/dist/basic-modules/src/modules/full-screen/menu/FullScreen.d.ts +16 -0
  74. package/dist/basic-modules/src/modules/full-screen/menu/index.d.ts +9 -0
  75. package/dist/basic-modules/src/modules/header/custom-types.d.ts +25 -0
  76. package/dist/basic-modules/src/modules/header/elem-to-html.d.ts +25 -0
  77. package/dist/basic-modules/src/modules/header/helper.d.ts +14 -0
  78. package/dist/basic-modules/src/modules/header/index.d.ts +7 -0
  79. package/dist/basic-modules/src/modules/header/menu/Header1ButtonMenu.d.ts +10 -0
  80. package/dist/basic-modules/src/modules/header/menu/Header2ButtonMenu.d.ts +10 -0
  81. package/dist/basic-modules/src/modules/header/menu/Header3ButtonMenu.d.ts +10 -0
  82. package/dist/basic-modules/src/modules/header/menu/Header4ButtonMenu.d.ts +10 -0
  83. package/dist/basic-modules/src/modules/header/menu/Header5ButtonMenu.d.ts +10 -0
  84. package/dist/basic-modules/src/modules/header/menu/HeaderButtonMenuBase.d.ts +19 -0
  85. package/dist/basic-modules/src/modules/header/menu/HeaderSelectMenu.d.ts +26 -0
  86. package/dist/basic-modules/src/modules/header/menu/index.d.ts +34 -0
  87. package/dist/basic-modules/src/modules/header/parse-elem-html.d.ts +28 -0
  88. package/dist/basic-modules/src/modules/header/plugin.d.ts +7 -0
  89. package/dist/basic-modules/src/modules/header/render-elem.d.ts +28 -0
  90. package/dist/basic-modules/src/modules/image/custom-types.d.ts +20 -0
  91. package/dist/basic-modules/src/modules/image/elem-to-html.d.ts +11 -0
  92. package/dist/basic-modules/src/modules/image/helper.d.ts +13 -0
  93. package/dist/basic-modules/src/modules/image/index.d.ts +7 -0
  94. package/dist/basic-modules/src/modules/image/menu/DeleteImage.d.ts +15 -0
  95. package/dist/basic-modules/src/modules/image/menu/EditImage.d.ts +28 -0
  96. package/dist/basic-modules/src/modules/image/menu/InsertImage.d.ts +27 -0
  97. package/dist/basic-modules/src/modules/image/menu/ViewImageLink.d.ts +15 -0
  98. package/dist/basic-modules/src/modules/image/menu/Width100.d.ts +10 -0
  99. package/dist/basic-modules/src/modules/image/menu/Width30.d.ts +10 -0
  100. package/dist/basic-modules/src/modules/image/menu/Width50.d.ts +10 -0
  101. package/dist/basic-modules/src/modules/image/menu/Width75.d.ts +9 -0
  102. package/dist/basic-modules/src/modules/image/menu/WidthBase.d.ts +16 -0
  103. package/dist/basic-modules/src/modules/image/menu/config.d.ts +30 -0
  104. package/dist/basic-modules/src/modules/image/menu/index.d.ts +56 -0
  105. package/dist/basic-modules/src/modules/image/parse-elem-html.d.ts +14 -0
  106. package/dist/basic-modules/src/modules/image/plugin.d.ts +7 -0
  107. package/dist/basic-modules/src/modules/image/render-elem.d.ts +13 -0
  108. package/dist/basic-modules/src/modules/indent/custom-types.d.ts +10 -0
  109. package/dist/basic-modules/src/modules/indent/index.d.ts +7 -0
  110. package/dist/basic-modules/src/modules/indent/menu/BaseMenu.d.ts +25 -0
  111. package/dist/basic-modules/src/modules/indent/menu/DecreaseIndentMenu.d.ts +13 -0
  112. package/dist/basic-modules/src/modules/indent/menu/IncreaseIndentMenu.d.ts +15 -0
  113. package/dist/basic-modules/src/modules/indent/menu/index.d.ts +14 -0
  114. package/dist/basic-modules/src/modules/indent/parse-style-html.d.ts +8 -0
  115. package/dist/basic-modules/src/modules/indent/pre-parse-html.d.ts +15 -0
  116. package/dist/basic-modules/src/modules/indent/render-style.d.ts +13 -0
  117. package/dist/basic-modules/src/modules/indent/style-to-html.d.ts +6 -0
  118. package/dist/basic-modules/src/modules/justify/custom-types.d.ts +10 -0
  119. package/dist/basic-modules/src/modules/justify/index.d.ts +7 -0
  120. package/dist/basic-modules/src/modules/justify/menu/BaseMenu.d.ts +21 -0
  121. package/dist/basic-modules/src/modules/justify/menu/JustifyCenterMenu.d.ts +12 -0
  122. package/dist/basic-modules/src/modules/justify/menu/JustifyJustifyMenu.d.ts +12 -0
  123. package/dist/basic-modules/src/modules/justify/menu/JustifyLeftMenu.d.ts +12 -0
  124. package/dist/basic-modules/src/modules/justify/menu/JustifyRightMenu.d.ts +12 -0
  125. package/dist/basic-modules/src/modules/justify/menu/index.d.ts +24 -0
  126. package/dist/basic-modules/src/modules/justify/parse-style-html.d.ts +8 -0
  127. package/dist/basic-modules/src/modules/justify/render-style.d.ts +13 -0
  128. package/dist/basic-modules/src/modules/justify/style-to-html.d.ts +6 -0
  129. package/dist/basic-modules/src/modules/line-height/custom-types.d.ts +10 -0
  130. package/dist/basic-modules/src/modules/line-height/index.d.ts +7 -0
  131. package/dist/basic-modules/src/modules/line-height/menu/LineHeightMenu.d.ts +26 -0
  132. package/dist/basic-modules/src/modules/line-height/menu/config.d.ts +5 -0
  133. package/dist/basic-modules/src/modules/line-height/menu/index.d.ts +12 -0
  134. package/dist/basic-modules/src/modules/line-height/parse-style-html.d.ts +8 -0
  135. package/dist/basic-modules/src/modules/line-height/render-style.d.ts +13 -0
  136. package/dist/basic-modules/src/modules/line-height/style-to-html.d.ts +6 -0
  137. package/dist/basic-modules/src/modules/link/custom-types.d.ts +11 -0
  138. package/dist/basic-modules/src/modules/link/elem-to-html.d.ts +11 -0
  139. package/dist/basic-modules/src/modules/link/helper.d.ts +20 -0
  140. package/dist/basic-modules/src/modules/link/index.d.ts +8 -0
  141. package/dist/basic-modules/src/modules/link/menu/EditLink.d.ts +29 -0
  142. package/dist/basic-modules/src/modules/link/menu/InsertLink.d.ts +25 -0
  143. package/dist/basic-modules/src/modules/link/menu/LinkFormMenu.d.ts +41 -0
  144. package/dist/basic-modules/src/modules/link/menu/UnLink.d.ts +15 -0
  145. package/dist/basic-modules/src/modules/link/menu/ViewLink.d.ts +16 -0
  146. package/dist/basic-modules/src/modules/link/menu/ViewLinkOpenMenu.d.ts +16 -0
  147. package/dist/basic-modules/src/modules/link/menu/config.d.ts +18 -0
  148. package/dist/basic-modules/src/modules/link/menu/index.d.ts +56 -0
  149. package/dist/basic-modules/src/modules/link/menu/link-form-state.d.ts +12 -0
  150. package/dist/basic-modules/src/modules/link/parse-elem-html.d.ts +14 -0
  151. package/dist/basic-modules/src/modules/link/plugin.d.ts +7 -0
  152. package/dist/basic-modules/src/modules/link/render-elem.d.ts +20 -0
  153. package/dist/basic-modules/src/modules/paragraph/custom-types.d.ts +9 -0
  154. package/dist/basic-modules/src/modules/paragraph/elem-to-html.d.ts +11 -0
  155. package/dist/basic-modules/src/modules/paragraph/index.d.ts +7 -0
  156. package/dist/basic-modules/src/modules/paragraph/parse-elem-html.d.ts +14 -0
  157. package/dist/basic-modules/src/modules/paragraph/plugin.d.ts +7 -0
  158. package/dist/basic-modules/src/modules/paragraph/render-elem.d.ts +20 -0
  159. package/dist/basic-modules/src/modules/text-style/custom-types.d.ts +14 -0
  160. package/dist/basic-modules/src/modules/text-style/helper.d.ts +8 -0
  161. package/dist/basic-modules/src/modules/text-style/index.d.ts +7 -0
  162. package/dist/basic-modules/src/modules/text-style/menu/BaseMenu.d.ts +27 -0
  163. package/dist/basic-modules/src/modules/text-style/menu/BoldMenu.d.ts +12 -0
  164. package/dist/basic-modules/src/modules/text-style/menu/ClearStyleMenu.d.ts +15 -0
  165. package/dist/basic-modules/src/modules/text-style/menu/CodeMenu.d.ts +12 -0
  166. package/dist/basic-modules/src/modules/text-style/menu/ItalicMenu.d.ts +12 -0
  167. package/dist/basic-modules/src/modules/text-style/menu/SubMenu.d.ts +13 -0
  168. package/dist/basic-modules/src/modules/text-style/menu/SupMenu.d.ts +13 -0
  169. package/dist/basic-modules/src/modules/text-style/menu/ThroughMenu.d.ts +12 -0
  170. package/dist/basic-modules/src/modules/text-style/menu/UnderlineMenu.d.ts +12 -0
  171. package/dist/basic-modules/src/modules/text-style/menu/index.d.ts +49 -0
  172. package/dist/basic-modules/src/modules/text-style/parse-style-html.d.ts +8 -0
  173. package/dist/basic-modules/src/modules/text-style/render-style.d.ts +13 -0
  174. package/dist/basic-modules/src/modules/text-style/style-to-html.d.ts +12 -0
  175. package/dist/basic-modules/src/modules/todo/custom-types.d.ts +10 -0
  176. package/dist/basic-modules/src/modules/todo/elem-to-html.d.ts +11 -0
  177. package/dist/basic-modules/src/modules/todo/index.d.ts +7 -0
  178. package/dist/basic-modules/src/modules/todo/menu/Todo.d.ts +15 -0
  179. package/dist/basic-modules/src/modules/todo/menu/index.d.ts +9 -0
  180. package/dist/basic-modules/src/modules/todo/parse-elem-html.d.ts +14 -0
  181. package/dist/basic-modules/src/modules/todo/plugin.d.ts +7 -0
  182. package/dist/basic-modules/src/modules/todo/pre-parse-html.d.ts +15 -0
  183. package/dist/basic-modules/src/modules/todo/render-elem.d.ts +20 -0
  184. package/dist/basic-modules/src/modules/undo-redo/index.d.ts +7 -0
  185. package/dist/basic-modules/src/modules/undo-redo/menu/RedoMenu.d.ts +15 -0
  186. package/dist/basic-modules/src/modules/undo-redo/menu/UndoMenu.d.ts +15 -0
  187. package/dist/basic-modules/src/modules/undo-redo/menu/index.d.ts +14 -0
  188. package/dist/basic-modules/src/utils/block-toolbar.d.ts +14 -0
  189. package/dist/basic-modules/src/utils/dom.d.ts +36 -0
  190. package/dist/basic-modules/src/utils/util.d.ts +11 -0
  191. package/dist/basic-modules/src/utils/vdom.d.ts +11 -0
  192. package/dist/css/style.css +1 -0
  193. package/dist/index.esm.js +12379 -0
  194. package/dist/index.esm.js.map +1 -0
  195. package/dist/index.js +2 -0
  196. package/dist/index.js.map +1 -0
  197. package/package.json +57 -0
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@mnykj/wangeditoroptimize-core"),require("snabbdom"),require("slate"),require("dom7"),require("nanoid"),require("lodash.throttle")):"function"==typeof define&&define.amd?define(["exports","@mnykj/wangeditoroptimize-core","snabbdom","slate","dom7","nanoid","lodash.throttle"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorBasicModules={},t.wangeditoroptimizeCore,t.snabbdom,t.slate,t.$,t.nanoid,t.throttle)}(this,(function(t,e,n,r,o,i,a){"use strict";function u(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var l=u(o),c=u(a);e.i18nAddResources("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),e.i18nAddResources("zh-CN",{common:{ok:"็กฎๅฎš",delete:"ๅˆ ้™ค",enter:"ๅ›ž่ฝฆ"},blockQuote:{title:"ๅผ•็”จ"},codeBlock:{title:"ไปฃ็ ๅ—"},color:{color:"ๆ–‡ๅญ—้ขœ่‰ฒ",bgColor:"่ƒŒๆ™ฏ่‰ฒ",default:"้ป˜่ฎค้ขœ่‰ฒ",clear:"ๆธ…้™ค่ƒŒๆ™ฏ่‰ฒ"},divider:{title:"ๅˆ†ๅ‰ฒ็บฟ"},emotion:{title:"่กจๆƒ…"},fontSize:{title:"ๅญ—ๅท",default:"้ป˜่ฎคๅญ—ๅท"},fontFamily:{title:"ๅญ—ไฝ“",default:"้ป˜่ฎคๅญ—ไฝ“"},fullScreen:{title:"ๅ…จๅฑ"},header:{title:"ๆ ‡้ข˜",text:"ๆญฃๆ–‡"},image:{netImage:"็ฝ‘็ปœๅ›พ็‰‡",delete:"ๅˆ ้™คๅ›พ็‰‡",edit:"็ผ–่พ‘ๅ›พ็‰‡",viewLink:"ๆŸฅ็œ‹้“พๆŽฅ",src:"ๅ›พ็‰‡ๅœฐๅ€",desc:"ๅ›พ็‰‡ๆ่ฟฐ",link:"ๅ›พ็‰‡้“พๆŽฅ"},indent:{decrease:"ๅ‡ๅฐ‘็ผฉ่ฟ›",increase:"ๅขžๅŠ ็ผฉ่ฟ›"},justify:{left:"ๅทฆๅฏน้ฝ",right:"ๅณๅฏน้ฝ",center:"ๅฑ…ไธญๅฏน้ฝ",justify:"ไธค็ซฏๅฏน้ฝ"},lineHeight:{title:"่กŒ้ซ˜",default:"้ป˜่ฎค่กŒ้ซ˜"},link:{insert:"ๆ’ๅ…ฅ้“พๆŽฅ",text:"้“พๆŽฅๆ–‡ๆœฌ",url:"้“พๆŽฅๅœฐๅ€",unLink:"ๅ–ๆถˆ้“พๆŽฅ",edit:"ไฟฎๆ”น้“พๆŽฅ",view:"ๆŸฅ็œ‹้“พๆŽฅ"},textStyle:{bold:"็ฒ—ไฝ“",clear:"ๆธ…้™คๆ ผๅผ",code:"่กŒๅ†…ไปฃ็ ",italic:"ๆ–œไฝ“",sub:"ไธ‹ๆ ‡",sup:"ไธŠๆ ‡",through:"ๅˆ ้™ค็บฟ",underline:"ไธ‹ๅˆ’็บฟ"},undo:{undo:"ๆ’ค้”€",redo:"้‡ๅš"},todo:{todo:"ๅพ…ๅŠž"}});var s={type:"paragraph",renderElem:function(t,e,r){return n.jsx("p",null,e)}};var f={type:"paragraph",elemToHtml:function(t,e){return""===e?"<p><br></p>":"<p>"+e+"</p>"}},d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h(t){var e={exports:{}};return t(e,e.exports),e.exports}var v,g,y=function(t){return t&&t.Math==Math&&t},m=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof d&&d)||function(){return this}()||Function("return this")(),b=function(t){try{return!!t()}catch(t){return!0}},w=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,x=E.bind?E.bind(E):function(){return E.apply(E,arguments)},S={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,T=k&&!S.call({1:2},1)?function(t){var e=k(this,t);return!!e&&e.enumerable}:S,N={f:T},D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A=Function.prototype,M=A.bind,L=A.call,P=M&&M.bind(L),I=M?function(t){return t&&P(L,t)}:function(t){return t&&function(){return L.apply(t,arguments)}},O=I({}.toString),j=I("".slice),H=function(t){return j(O(t),8,-1)},z=m.Object,_=I("".split),C=b((function(){return!z("z").propertyIsEnumerable(0)}))?function(t){return"String"==H(t)?_(t,""):z(t)}:z,V=m.TypeError,B=function(t){if(null==t)throw V("Can't call method on "+t);return t},R=function(t){return C(B(t))},F=function(t){return"function"==typeof t},q=function(t){return"object"==typeof t?null!==t:F(t)},W=function(t){return F(t)?t:void 0},$=function(t,e){return arguments.length<2?W(m[t]):m[t]&&m[t][e]},G=I({}.isPrototypeOf),U=$("navigator","userAgent")||"",K=m.process,J=m.Deno,X=K&&K.versions||J&&J.version,Y=X&&X.v8;Y&&(g=(v=Y.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&U&&(!(v=U.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=U.match(/Chrome\/(\d+)/))&&(g=+v[1]);var Q=g,Z=!!Object.getOwnPropertySymbols&&!b((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Q&&Q<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=m.Object,nt=tt?function(t){return"symbol"==typeof t}:function(t){var e=$("Symbol");return F(e)&&G(e.prototype,et(t))},rt=m.String,ot=function(t){try{return rt(t)}catch(t){return"Object"}},it=m.TypeError,at=function(t){if(F(t))return t;throw it(ot(t)+" is not a function")},ut=function(t,e){var n=t[e];return null==n?void 0:at(n)},lt=m.TypeError,ct=Object.defineProperty,st=function(t,e){try{ct(m,t,{value:e,configurable:!0,writable:!0})}catch(n){m[t]=e}return e},ft="__core-js_shared__",dt=m[ft]||st(ft,{}),pt=h((function(t){(t.exports=function(t,e){return dt[t]||(dt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"ยฉ 2021 Denis Pushkarev (zloirock.ru)"})})),ht=m.Object,vt=function(t){return ht(B(t))},gt=I({}.hasOwnProperty),yt=Object.hasOwn||function(t,e){return gt(vt(t),e)},mt=0,bt=Math.random(),wt=I(1..toString),Et=function(t){return"Symbol("+(void 0===t?"":t)+")_"+wt(++mt+bt,36)},xt=pt("wks"),St=m.Symbol,kt=St&&St.for,Tt=tt?St:St&&St.withoutSetter||Et,Nt=function(t){if(!yt(xt,t)||!Z&&"string"!=typeof xt[t]){var e="Symbol."+t;Z&&yt(St,t)?xt[t]=St[t]:xt[t]=tt&&kt?kt(e):Tt(e)}return xt[t]},Dt=m.TypeError,At=Nt("toPrimitive"),Mt=function(t,e){if(!q(t)||nt(t))return t;var n,r=ut(t,At);if(r){if(void 0===e&&(e="default"),n=x(r,t,e),!q(n)||nt(n))return n;throw Dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&F(n=t.toString)&&!q(r=x(n,t)))return r;if(F(n=t.valueOf)&&!q(r=x(n,t)))return r;if("string"!==e&&F(n=t.toString)&&!q(r=x(n,t)))return r;throw lt("Can't convert object to primitive value")}(t,e)},Lt=function(t){var e=Mt(t,"string");return nt(e)?e:e+""},Pt=m.document,It=q(Pt)&&q(Pt.createElement),Ot=function(t){return It?Pt.createElement(t):{}},jt=!w&&!b((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Ht=Object.getOwnPropertyDescriptor,zt={f:w?Ht:function(t,e){if(t=R(t),e=Lt(e),jt)try{return Ht(t,e)}catch(t){}if(yt(t,e))return D(!x(N.f,t,e),t[e])}},_t=m.String,Ct=m.TypeError,Vt=function(t){if(q(t))return t;throw Ct(_t(t)+" is not an object")},Bt=m.TypeError,Rt=Object.defineProperty,Ft={f:w?Rt:function(t,e,n){if(Vt(t),e=Lt(e),Vt(n),jt)try{return Rt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Bt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},qt=w?function(t,e,n){return Ft.f(t,e,D(1,n))}:function(t,e,n){return t[e]=n,t},Wt=I(Function.toString);F(dt.inspectSource)||(dt.inspectSource=function(t){return Wt(t)});var $t,Gt,Ut,Kt=dt.inspectSource,Jt=m.WeakMap,Xt=F(Jt)&&/native code/.test(Kt(Jt)),Yt=pt("keys"),Qt=function(t){return Yt[t]||(Yt[t]=Et(t))},Zt={},te="Object already initialized",ee=m.TypeError,ne=m.WeakMap;if(Xt||dt.state){var re=dt.state||(dt.state=new ne),oe=I(re.get),ie=I(re.has),ae=I(re.set);$t=function(t,e){if(ie(re,t))throw new ee(te);return e.facade=t,ae(re,t,e),e},Gt=function(t){return oe(re,t)||{}},Ut=function(t){return ie(re,t)}}else{var ue=Qt("state");Zt[ue]=!0,$t=function(t,e){if(yt(t,ue))throw new ee(te);return e.facade=t,qt(t,ue,e),e},Gt=function(t){return yt(t,ue)?t[ue]:{}},Ut=function(t){return yt(t,ue)}}var le={set:$t,get:Gt,has:Ut,enforce:function(t){return Ut(t)?Gt(t):$t(t,{})},getterFor:function(t){return function(e){var n;if(!q(e)||(n=Gt(e)).type!==t)throw ee("Incompatible receiver, "+t+" required");return n}}},ce=Function.prototype,se=w&&Object.getOwnPropertyDescriptor,fe=yt(ce,"name"),de={EXISTS:fe,PROPER:fe&&"something"===function(){}.name,CONFIGURABLE:fe&&(!w||w&&se(ce,"name").configurable)},pe=h((function(t){var e=de.CONFIGURABLE,n=le.get,r=le.enforce,o=String(String).split("String");(t.exports=function(t,n,i,a){var u,l=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;F(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!yt(i,"name")||e&&i.name!==f)&&qt(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),t!==m?(l?!s&&t[n]&&(c=!0):delete t[n],c?t[n]=i:qt(t,n,i)):c?t[n]=i:st(n,i)})(Function.prototype,"toString",(function(){return F(this)&&n(this).source||Kt(this)}))})),he=Math.ceil,ve=Math.floor,ge=function(t){var e=+t;return e!=e||0===e?0:(e>0?ve:he)(e)},ye=Math.max,me=Math.min,be=function(t,e){var n=ge(t);return n<0?ye(n+e,0):me(n,e)},we=Math.min,Ee=function(t){return t>0?we(ge(t),9007199254740991):0},xe=function(t){return Ee(t.length)},Se=function(t){return function(e,n,r){var o,i=R(e),a=xe(i),u=be(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ke={includes:Se(!0),indexOf:Se(!1)},Te=ke.indexOf,Ne=I([].push),De=function(t,e){var n,r=R(t),o=0,i=[];for(n in r)!yt(Zt,n)&&yt(r,n)&&Ne(i,n);for(;e.length>o;)yt(r,n=e[o++])&&(~Te(i,n)||Ne(i,n));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Me=Ae.concat("length","prototype"),Le={f:Object.getOwnPropertyNames||function(t){return De(t,Me)}},Pe={f:Object.getOwnPropertySymbols},Ie=I([].concat),Oe=$("Reflect","ownKeys")||function(t){var e=Le.f(Vt(t)),n=Pe.f;return n?Ie(e,n(t)):e},je=function(t,e){for(var n=Oe(e),r=Ft.f,o=zt.f,i=0;i<n.length;i++){var a=n[i];yt(t,a)||r(t,a,o(e,a))}},He=/#|\.prototype\./,ze=function(t,e){var n=Ce[_e(t)];return n==Be||n!=Ve&&(F(e)?b(e):!!e)},_e=ze.normalize=function(t){return String(t).replace(He,".").toLowerCase()},Ce=ze.data={},Ve=ze.NATIVE="N",Be=ze.POLYFILL="P",Re=ze,Fe=zt.f,qe=function(t,e){var n,r,o,i,a,u=t.target,l=t.global,c=t.stat;if(n=l?m:c?m[u]||st(u,{}):(m[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Fe(n,r))&&a.value:n[r],!Re(l?r:u+(c?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;je(i,o)}(t.sham||o&&o.sham)&&qt(i,"sham",!0),pe(n,r,i,t)}},We=I(I.bind),$e=function(t,e){return at(t),void 0===e?t:We?We(t,e):function(){return t.apply(e,arguments)}},Ge=Array.isArray||function(t){return"Array"==H(t)},Ue={};Ue[Nt("toStringTag")]="z";var Ke="[object z]"===String(Ue),Je=Nt("toStringTag"),Xe=m.Object,Ye="Arguments"==H(function(){return arguments}()),Qe=Ke?H:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Xe(t),Je))?n:Ye?H(e):"Object"==(r=H(e))&&F(e.callee)?"Arguments":r},Ze=function(){},tn=[],en=$("Reflect","construct"),nn=/^\s*(?:class|function)\b/,rn=I(nn.exec),on=!nn.exec(Ze),an=function(t){if(!F(t))return!1;try{return en(Ze,tn,t),!0}catch(t){return!1}},un=!en||b((function(){var t;return an(an.call)||!an(Object)||!an((function(){t=!0}))||t}))?function(t){if(!F(t))return!1;switch(Qe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return on||!!rn(nn,Kt(t))}:an,ln=Nt("species"),cn=m.Array,sn=function(t,e){return new(function(t){var e;return Ge(t)&&(e=t.constructor,(un(e)&&(e===cn||Ge(e.prototype))||q(e)&&null===(e=e[ln]))&&(e=void 0)),void 0===e?cn:e}(t))(0===e?0:e)},fn=I([].push),dn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(l,c,s,f){for(var d,p,h=vt(l),v=C(h),g=$e(c,s),y=xe(v),m=0,b=f||sn,w=e?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:fn(w,d)}else switch(t){case 4:return!1;case 7:fn(w,d)}return i?-1:r||o?o:w}},pn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)},hn=Nt("species"),vn=function(t){return Q>=51||!b((function(){var e=[];return(e.constructor={})[hn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},gn=pn.filter,yn=vn("filter");qe({target:"Array",proto:!0,forced:!yn},{filter:function(t){return gn(this,t,arguments.length>1?arguments[1]:void 0)}});var mn=Ke?{}.toString:function(){return"[object "+Qe(this)+"]"};Ke||pe(Object.prototype,"toString",mn,{unsafe:!0});var bn,wn=m.String,En=function(t){if("Symbol"===Qe(t))throw TypeError("Cannot convert a Symbol value to a string");return wn(t)},xn=function(){var t=Vt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Sn=m.RegExp,kn=b((function(){var t=Sn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Tn=kn||b((function(){return!Sn("a","y").sticky})),Nn={BROKEN_CARET:kn||b((function(){var t=Sn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Tn,UNSUPPORTED_Y:kn},Dn=Object.keys||function(t){return De(t,Ae)},An=w?Object.defineProperties:function(t,e){Vt(t);for(var n,r=R(e),o=Dn(e),i=o.length,a=0;i>a;)Ft.f(t,n=o[a++],r[n]);return t},Mn=$("document","documentElement"),Ln=Qt("IE_PROTO"),Pn=function(){},In=function(t){return"<script>"+t+"</"+"script>"},On=function(t){t.write(In("")),t.close();var e=t.parentWindow.Object;return t=null,e},jn=function(){try{bn=new ActiveXObject("htmlfile")}catch(t){}var t,e;jn="undefined"!=typeof document?document.domain&&bn?On(bn):((e=Ot("iframe")).style.display="none",Mn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(In("document.F=Object")),t.close(),t.F):On(bn);for(var n=Ae.length;n--;)delete jn.prototype[Ae[n]];return jn()};Zt[Ln]=!0;var Hn,zn,_n=Object.create||function(t,e){var n;return null!==t?(Pn.prototype=Vt(t),n=new Pn,Pn.prototype=null,n[Ln]=t):n=jn(),void 0===e?n:An(n,e)},Cn=m.RegExp,Vn=b((function(){var t=Cn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Bn=m.RegExp,Rn=b((function(){var t=Bn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Fn=le.get,qn=pt("native-string-replace",String.prototype.replace),Wn=RegExp.prototype.exec,$n=Wn,Gn=I("".charAt),Un=I("".indexOf),Kn=I("".replace),Jn=I("".slice),Xn=(zn=/b*/g,x(Wn,Hn=/a/,"a"),x(Wn,zn,"a"),0!==Hn.lastIndex||0!==zn.lastIndex),Yn=Nn.BROKEN_CARET,Qn=void 0!==/()??/.exec("")[1];(Xn||Qn||Yn||Vn||Rn)&&($n=function(t){var e,n,r,o,i,a,u,l=this,c=Fn(l),s=En(t),f=c.raw;if(f)return f.lastIndex=l.lastIndex,e=x($n,f,s),l.lastIndex=f.lastIndex,e;var d=c.groups,p=Yn&&l.sticky,h=x(xn,l),v=l.source,g=0,y=s;if(p&&(h=Kn(h,"y",""),-1===Un(h,"g")&&(h+="g"),y=Jn(s,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Gn(s,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Qn&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Xn&&(r=l.lastIndex),o=x(Wn,p?n:l,y),p?o?(o.input=Jn(o.input,g),o[0]=Jn(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Xn&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Qn&&o&&o.length>1&&x(qn,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=_n(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Zn=$n;qe({target:"RegExp",proto:!0,forced:/./.exec!==Zn},{exec:Zn});var tr=Function.prototype,er=tr.apply,nr=tr.bind,rr=tr.call,or="object"==typeof Reflect&&Reflect.apply||(nr?rr.bind(er):function(){return rr.apply(er,arguments)}),ir=Nt("species"),ar=RegExp.prototype,ur=function(t,e,n,r){var o=Nt(t),i=!b((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!b((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[ir]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||n){var u=I(/./[o]),l=e(o,""[t],(function(t,e,n,r,o){var a=I(t),l=e.exec;return l===Zn||l===ar.exec?i&&!o?{done:!0,value:u(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));pe(String.prototype,t,l[0]),pe(ar,o,l[1])}r&&qt(ar[o],"sham",!0)},lr=I("".charAt),cr=I("".charCodeAt),sr=I("".slice),fr=function(t){return function(e,n){var r,o,i=En(B(e)),a=ge(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=cr(i,a))<55296||r>56319||a+1===u||(o=cr(i,a+1))<56320||o>57343?t?lr(i,a):r:t?sr(i,a,a+2):o-56320+(r-55296<<10)+65536}},dr={codeAt:fr(!1),charAt:fr(!0)},pr=dr.charAt,hr=function(t,e,n){return e+(n?pr(t,e).length:1)},vr=Math.floor,gr=I("".charAt),yr=I("".replace),mr=I("".slice),br=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wr=/\$([$&'`]|\d{1,2})/g,Er=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,l=wr;return void 0!==o&&(o=vt(o),l=br),yr(i,l,(function(i,l){var c;switch(gr(l,0)){case"$":return"$";case"&":return t;case"`":return mr(e,0,n);case"'":return mr(e,a);case"<":c=o[mr(l,1,-1)];break;default:var s=+l;if(0===s)return i;if(s>u){var f=vr(s/10);return 0===f?i:f<=u?void 0===r[f-1]?gr(l,1):r[f-1]+gr(l,1):i}c=r[s-1]}return void 0===c?"":c}))},xr=m.TypeError,Sr=function(t,e){var n=t.exec;if(F(n)){var r=x(n,t,e);return null!==r&&Vt(r),r}if("RegExp"===H(t))return x(Zn,t,e);throw xr("RegExp#exec called on incompatible receiver")},kr=Nt("replace"),Tr=Math.max,Nr=Math.min,Dr=I([].concat),Ar=I([].push),Mr=I("".indexOf),Lr=I("".slice),Pr="$0"==="a".replace(/./,"$0"),Ir=!!/./[kr]&&""===/./[kr]("a","$0");ur("replace",(function(t,e,n){var r=Ir?"$":"$0";return[function(t,n){var r=B(this),o=null==t?void 0:ut(t,kr);return o?x(o,t,r,n):x(e,En(r),t,n)},function(t,o){var i=Vt(this),a=En(t);if("string"==typeof o&&-1===Mr(o,r)&&-1===Mr(o,"$<")){var u=n(e,i,a,o);if(u.done)return u.value}var l=F(o);l||(o=En(o));var c=i.global;if(c){var s=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Sr(i,a);if(null===d)break;if(Ar(f,d),!c)break;""===En(d[0])&&(i.lastIndex=hr(a,Ee(i.lastIndex),s))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=En((d=f[g])[0]),m=Tr(Nr(ge(d.index),a.length),0),b=[],w=1;w<d.length;w++)Ar(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(l){var x=Dr([y],b,m,a);void 0!==E&&Ar(x,E);var S=En(or(o,void 0,x))}else S=Er(y,a,m,b,E,o);m>=v&&(h+=Lr(a,v,m)+S,v=m+y.length)}return h+Lr(a,v)}]}),!!b((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Pr||Ir);var Or=Nt("unscopables"),jr=Array.prototype;null==jr[Or]&&Ft.f(jr,Or,{configurable:!0,value:_n(null)});var Hr=function(t){jr[Or][t]=!0},zr=pn.find,_r="find",Cr=!0;_r in[]&&Array(1).find((function(){Cr=!1})),qe({target:"Array",proto:!0,forced:Cr},{find:function(t){return zr(this,t,arguments.length>1?arguments[1]:void 0)}}),Hr(_r);var Vr=Nt("match"),Br=function(t){var e;return q(t)&&(void 0!==(e=t[Vr])?!!e:"RegExp"==H(t))},Rr=m.TypeError,Fr=Nt("species"),qr=function(t,e){var n,r=Vt(t).constructor;return void 0===r||null==(n=Vt(r)[Fr])?e:function(t){if(un(t))return t;throw Rr(ot(t)+" is not a constructor")}(n)},Wr=function(t,e,n){var r=Lt(e);r in t?Ft.f(t,r,D(0,n)):t[r]=n},$r=m.Array,Gr=Math.max,Ur=function(t,e,n){for(var r=xe(t),o=be(e,r),i=be(void 0===n?r:n,r),a=$r(Gr(i-o,0)),u=0;o<i;o++,u++)Wr(a,u,t[o]);return a.length=u,a},Kr=Nn.UNSUPPORTED_Y,Jr=4294967295,Xr=Math.min,Yr=[].push,Qr=I(/./.exec),Zr=I(Yr),to=I("".slice),eo=!b((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));ur("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=En(B(this)),o=void 0===n?Jr:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!Br(t))return x(e,r,t,o);for(var i,a,u,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,f=new RegExp(t.source,c+"g");(i=x(Zn,f,r))&&!((a=f.lastIndex)>s&&(Zr(l,to(r,s,i.index)),i.length>1&&i.index<r.length&&or(Yr,l,Ur(i,1)),u=i[0].length,s=a,l.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return s===r.length?!u&&Qr(f,"")||Zr(l,""):Zr(l,to(r,s)),l.length>o?Ur(l,0,o):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:x(e,this,t,n)}:e,[function(e,n){var o=B(this),i=null==e?void 0:ut(e,t);return i?x(i,e,o,n):x(r,En(o),e,n)},function(t,o){var i=Vt(this),a=En(t),u=n(r,i,a,o,r!==e);if(u.done)return u.value;var l=qr(i,RegExp),c=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Kr?"g":"y"),f=new l(Kr?"^(?:"+i.source+")":i,s),d=void 0===o?Jr:o>>>0;if(0===d)return[];if(0===a.length)return null===Sr(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Kr?0:h;var g,y=Sr(f,Kr?to(a,h):a);if(null===y||(g=Xr(Ee(f.lastIndex+(Kr?h:0)),a.length))===p)h=hr(a,h,c);else{if(Zr(v,to(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Zr(v,y[m]),v.length===d)return v;h=p=g}}return Zr(v,to(a,p)),v}]}),!eo,Kr);var no,ro="\t\n\v\f\r ย แš€โ€€โ€โ€‚โ€ƒโ€„โ€…โ€†โ€‡โ€ˆโ€‰โ€Šโ€ฏโŸใ€€\u2028\u2029\ufeff",oo=I("".replace),io="["+ro+"]",ao=RegExp("^"+io+io+"*"),uo=RegExp(io+io+"*$"),lo=function(t){return function(e){var n=En(B(e));return 1&t&&(n=oo(n,ao,"")),2&t&&(n=oo(n,uo,"")),n}},co={start:lo(1),end:lo(2),trim:lo(3)},so=de.PROPER,fo=co.trim;function po(t){return 0===l.default("<div>"+t+"</div>").children().filter((function(t){return"BR"!==t.tagName})).length}function ho(t){return 0===t.length?"":t[0].outerHTML}function vo(t){return t.length?t[0].tagName.toLowerCase():""}function go(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}qe({target:"String",proto:!0,forced:(no="trim",b((function(){return!!ro[no]()||"โ€‹ย…แ Ž"!=="โ€‹ย…แ Ž"[no]()||so&&ro[no].name!==no})))},{trim:function(){return fo(this)}}),qe({global:!0},{globalThis:m}),o.css&&(l.default.fn.css=o.css),o.append&&(l.default.fn.append=o.append),o.prepend&&(l.default.fn.prepend=o.prepend),o.addClass&&(l.default.fn.addClass=o.addClass),o.removeClass&&(l.default.fn.removeClass=o.removeClass),o.hasClass&&(l.default.fn.hasClass=o.hasClass),o.on&&(l.default.fn.on=o.on),o.off&&(l.default.fn.off=o.off),o.focus&&(l.default.fn.focus=o.focus),o.attr&&(l.default.fn.attr=o.attr),o.removeAttr&&(l.default.fn.removeAttr=o.removeAttr),o.hide&&(l.default.fn.hide=o.hide),o.show&&(l.default.fn.show=o.show),o.parents&&(l.default.fn.parents=o.parents),o.dataset&&(l.default.fn.dataset=o.dataset),o.val&&(l.default.fn.val=o.val),o.text&&(l.default.fn.text=o.text),o.html&&(l.default.fn.html=o.html),o.children&&(l.default.fn.children=o.children),o.remove&&(l.default.fn.remove=o.remove),o.find&&(l.default.fn.find=o.find),o.width&&(l.default.fn.width=o.width),o.height&&(l.default.fn.height=o.height),o.filter&&(l.default.fn.filter=o.filter),o.empty&&(l.default.fn.empty=o.empty);var yo=function(t,e){return yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},yo(t,e)};function mo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}yo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var bo=function(){return bo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bo.apply(this,arguments)};function wo(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function u(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}l((r=r.apply(t,e||[])).next())}))}function Eo(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(l){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function xo(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function So(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ko(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function To(t){var e=So(r.Editor.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),n=e[0];if(null==n)return!1;var o=n[0];if(!r.Element.isElement(o))return!1;if("paragraph"===o.type)return!1;if(""!==r.Node.string(o))return!1;var i=o.children,a=void 0===i?[]:i;return!!r.Text.isText(a[0])&&(r.Transforms.setNodes(t,{type:"paragraph"}),!0)}"function"==typeof SuppressedError&&SuppressedError;var No={renderElems:[s],elemsToHtml:[f],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}}],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(t){To(r)||e(t)},r.deleteForward=function(t){To(r)||n(t)},r}},Do=/"/g,Ao=I("".replace),Mo=function(t,e,n,r){var o=En(B(t)),i="<"+e;return""!==n&&(i+=" "+n+'="'+Ao(En(r),Do,"&quot;")+'"'),i+">"+o+"</"+e+">"},Lo=function(t){return b((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};function Po(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Io(t,e){return 0!==t.length&&(!!t[0].matches(e)||t.find(e).length>0)}qe({target:"String",proto:!0,forced:Lo("bold")},{bold:function(){return Mo(this,"b","","")}}),qe({target:"String",proto:!0,forced:Lo("italics")},{italics:function(){return Mo(this,"i","","")}}),qe({target:"String",proto:!0,forced:Lo("sub")},{sub:function(){return Mo(this,"sub","","")}}),qe({target:"String",proto:!0,forced:Lo("sup")},{sup:function(){return Mo(this,"sup","","")}});var Oo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},jo=Ot("span").classList,Ho=jo&&jo.constructor&&jo.constructor.prototype,zo=Ho===Object.prototype?void 0:Ho,_o=function(t,e){var n=[][t];return!!n&&b((function(){n.call(null,e||function(){throw 1},1)}))},Co=pn.forEach,Vo=_o("forEach")?[].forEach:function(t){return Co(this,t,arguments.length>1?arguments[1]:void 0)},Bo=function(t){if(t&&t.forEach!==Vo)try{qt(t,"forEach",Vo)}catch(e){t.forEach=Vo}};for(var Ro in Oo)Oo[Ro]&&Bo(m[Ro]&&m[Ro].prototype);Bo(zo);var Fo=b((function(){Dn(1)}));function qo(t,n){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]}function Wo(t,e){Object.keys(e).forEach((function(e){"text"!==e&&r.Editor.removeMark(t,e)}))}qe({target:"Object",stat:!0,forced:Fo},{keys:function(t){return Dn(vt(t))}});var $o=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n?n[e]:!!So(r.Editor.nodes(t,{match:function(t){return!0===t[e]}}),1)[0]},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return qo(t,this.mark)},t.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach((function(e){return t.removeMark(e)})))},t}(),Go='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',Uo='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',Ko='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Jo='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',Xo='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',Yo='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',Qo='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',Zo='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',ti='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',ei='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',ni='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',ri='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',oi='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',ii='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',ai='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',ui='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',li='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',ci='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',si='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',fi='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',di='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',pi='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',hi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="bold",n.title=e.t("textStyle.bold"),n.iconSvg=Go,n.hotkey="mod+b",n}return mo(n,t),n}($o),vi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="code",n.title=e.t("textStyle.code"),n.iconSvg=Xo,n.hotkey="mod+e",n}return mo(n,t),n}($o),gi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="italic",n.title=e.t("textStyle.italic"),n.iconSvg=Ko,n.hotkey="mod+i",n}return mo(n,t),n}($o),yi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="through",n.title=e.t("textStyle.through"),n.iconSvg=Jo,n.hotkey="mod+shift+x",n}return mo(n,t),n}($o),mi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="underline",n.title=e.t("textStyle.underline"),n.iconSvg=Uo,n.hotkey="mod+u",n}return mo(n,t),n}($o),bi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=e.t("textStyle.sub"),n.iconSvg=pi,n.hotkey="",n}return mo(n,t),n}($o),wi=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=e.t("textStyle.sup"),n.iconSvg=di,n.hotkey="",n}return mo(n,t),n}($o);var Ei=function(){function t(){this.title=e.t("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return qo(t)},t.prototype.exec=function(t,n){var o,i,a=r.Editor.nodes(t,{match:function(t){return r.Text.isText(t)},universal:!0});try{for(var u=xo(a),l=u.next();!l.done;l=u.next()){Wo(t,l.value[0])}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}try{r.Transforms.setNodes(t,{type:"paragraph"},{match:function(t){return"header1"===(n=e.DomEditor.getNodeType(t))||"header2"===n||"header3"===n||"header4"===n||"header5"===n||"header6"===n;var n},mode:"highest"})}catch(t){}},t}(),xi={renderStyle:function(t,e){var r=t,o=r.bold,i=r.italic,a=r.underline,u=r.code,l=r.through,c=r.sub,s=r.sup,f=e;return o&&(f=n.jsx("strong",null,f)),u&&(f=n.jsx("code",null,f)),i&&(f=n.jsx("em",null,f)),a&&(f=n.jsx("u",null,f)),l&&(f=n.jsx("s",null,f)),c&&(f=n.jsx("sub",null,f)),s&&(f=n.jsx("sup",null,f)),f},menus:[{key:"bold",factory:function(){return new hi}},{key:"underline",factory:function(){return new mi}},{key:"italic",factory:function(){return new gi}},{key:"through",factory:function(){return new yi}},{key:"code",factory:function(){return new vi}},{key:"sub",factory:function(){return new bi}},{key:"sup",factory:function(){return new wi}},{key:"clearStyle",factory:function(){return new Ei}},{key:"clearAllFormat",factory:function(){return new Ei}}],styleToHtml:function(t,e){if(!r.Text.isText(t))return e;if(po(e))return Po(t,e);var n=l.default(e);if("br"===vo(n))return Po(t,"<br>");var o=n.html();return o=Po(t,o),n.html(o),ho(n)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e;return Io(o,"b,strong")&&(i.bold=!0),Io(o,"i,em")&&(i.italic=!0),Io(o,"u")&&(i.underline=!0),Io(o,"s,strike")&&(i.through=!0),Io(o,"sub")&&(i.sub=!0),Io(o,"sup")&&(i.sup=!0),Io(o,"code")&&(i.code=!0),i}};function Si(t){return function(e,r,o){var i="h"+t;return n.jsx(i,null,r)}}var ki={type:"header1",renderElem:Si(1)},Ti={type:"header2",renderElem:Si(2)},Ni={type:"header3",renderElem:Si(3)},Di={type:"header4",renderElem:Si(4)},Ai={type:"header5",renderElem:Si(5)},Mi=de.PROPER,Li="toString",Pi=RegExp.prototype,Ii=Pi.toString,Oi=I(xn),ji=b((function(){return"/a/b"!=Ii.call({source:"a",flags:"b"})})),Hi=Mi&&Ii.name!=Li;(ji||Hi)&&pe(RegExp.prototype,Li,(function(){var t=Vt(this),e=En(t.source),n=t.flags;return"/"+e+"/"+En(void 0===n&&G(Pi,t)&&!("flags"in Pi)?Oi(t):n)}),{unsafe:!0});var zi,_i=m.TypeError,Ci=function(t){if(Br(t))throw _i("The method doesn't accept regular expressions");return t},Vi=Nt("match"),Bi=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Vi]=!1,"/./"[t](e)}catch(t){}}return!1},Ri=zt.f,Fi=I("".startsWith),qi=I("".slice),Wi=Math.min,$i=Bi("startsWith"),Gi=!($i||(zi=Ri(String.prototype,"startsWith"),!zi||zi.writable));function Ui(t){var n=So(r.Editor.nodes(t,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1),o=n[0];if(null==o)return"paragraph";var i=So(o,1)[0];return e.DomEditor.getNodeType(i)}function Ki(t){return null==t.selection||!So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Ji(t,e){e&&r.Transforms.setNodes(t,{type:e})}qe({target:"String",proto:!0,forced:!Gi&&!$i},{startsWith:function(t){var e=En(B(this));Ci(t);var n=Ee(Wi(arguments.length>1?arguments[1]:void 0,e.length)),r=En(t);return Fi?Fi(e,r,n):qi(e,n,n+r.length)===r}});var Xi=function(){function t(){this.title=e.t("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:e.t("header.text")}],r=this.getValue(t).toString();return n.forEach((function(t){t.value===r?t.selected=!0:delete t.selected})),n},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){return Ui(t)},t.prototype.isDisabled=function(t){return Ki(t)},t.prototype.exec=function(t,e){Ji(t,e.toString())},t}(),Yi=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return Ui(t)},t.prototype.isActive=function(t){return this.getValue(t)===this.type},t.prototype.isDisabled=function(t){return Ki(t)},t.prototype.exec=function(t,e){var n=this.type;Ji(t,e===n?"paragraph":n)},t}(),Qi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H1",e.type="header1",e}return mo(e,t),e}(Yi),Zi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H2",e.type="header2",e}return mo(e,t),e}(Yi),ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H3",e.type="header3",e}return mo(e,t),e}(Yi),ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H4",e.type="header4",e}return mo(e,t),e}(Yi),na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="H5",e.type="header5",e}return mo(e,t),e}(Yi),ra={key:"headerSelect",factory:function(){return new Xi}},oa={key:"header1",factory:function(){return new Qi}},ia={key:"header2",factory:function(){return new Zi}},aa={key:"header3",factory:function(){return new ta}},ua={key:"header4",factory:function(){return new ea}},la={key:"header5",factory:function(){return new na}};function ca(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function sa(t){return function(e,n,o){var i=l.default(e);return 0===(n=n.filter((function(t){return!!r.Text.isText(t)||!!o.isInline(t)}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var fa={renderElems:[ki,Ti,Ni,Di,Ai],elemsToHtml:[{type:"header1",elemToHtml:ca(1)},{type:"header2",elemToHtml:ca(2)},{type:"header3",elemToHtml:ca(3)},{type:"header4",elemToHtml:ca(4)},{type:"header5",elemToHtml:ca(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:sa(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:sa(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:sa(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:sa(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:sa(5)}],menus:[ra,oa,ia,aa,ua,la],editorPlugin:function(t){var n=t.insertBreak;t.insertNode;var o=t;return o.insertBreak=function(){var i=So(r.Editor.nodes(o,{match:function(t){return e.DomEditor.getNodeType(t).startsWith("header")},universal:!0}),1)[0];if(i)if(e.DomEditor.isSelectionAtLineEnd(t,i[1])){r.Transforms.insertNodes(o,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}else n();else n()},o}},da=Object.assign,pa=Object.defineProperty,ha=I([].concat),va=!da||b((function(){if(w&&1!==da({b:1},da(pa({},"a",{enumerable:!0,get:function(){pa(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=da({},t)[n]||Dn(da({},e)).join("")!=r}))?function(t,e){for(var n=vt(t),r=arguments.length,o=1,i=Pe.f,a=N.f;r>o;)for(var u,l=C(arguments[o++]),c=i?ha(Dn(l),i(l)):Dn(l),s=c.length,f=0;s>f;)u=c[f++],w&&!x(a,l,u)||(n[u]=l[u]);return n}:da;function ga(t,e){null==t.data&&(t.data={});var n=t.data;null==n.style&&(n.style={}),Object.assign(n.style,e)}qe({target:"Object",stat:!0,forced:Object.assign!==va},{assign:va});var ya={selector:"font",preParseHtml:function(t){var e=l.default(t);if("font"!==vo(e))return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}};var ma=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isActive=function(t){return!!this.getValue(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){var n=this.mark;if(null==this.$content){var o=l.default('<ul class="w-e-panel-content-color"></ul>');o.on("click","li",(function(e){var o=e.target;if(null!=o&&(e.preventDefault(),null!=t.selection)){var i=l.default(o).attr("data-value");"0"===i?r.Editor.removeMark(t,n):r.Editor.addMark(t,n,i)}})),this.$content=o}var i=this.$content;if(null==i)return document.createElement("ul");i.empty();var a=this.getValue(t),u=t.getMenuConfig(n).colors;(void 0===u?[]:u).forEach((function(t){var e=l.default('<div class="color-block" data-value="'+t+'"></div>');e.css("background-color",t);var n=l.default('<li data-value="'+t+'"></li>');a===t&&n.addClass("active"),n.append(e),i.append(n)}));var c="";"color"===n&&(c=e.t("color.default")),"bgColor"===n&&(c=e.t("color.clear"));var s=l.default('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+c+"\n </li>\n ");return i.prepend(s),i[0]},t}(),ba=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.color"),n.iconSvg=ti,n.mark="color",n}return mo(n,t),n}(ma),wa=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("color.bgColor"),n.iconSvg=ei,n.mark="bgColor",n}return mo(n,t),n}(ma),Ea=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"];var xa={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&ga(i,{color:r}),o&&ga(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!r.Text.isText(t))return e;var n,o=t,i=o.color,a=o.bgColor;return i||a?((po(e)||"span"!==vo(n=l.default(e)))&&(n=l.default("<span>"+e+"</span>")),i&&n.css("color",i),a&&n.css("background-color",a),ho(n)):e},preParseHtml:[ya],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e,a=go(o,"color");a&&(i.color=a);var u=go(o,"background-color");return u||(u=go(o,"background")),u&&(i.bgColor=u),i},menus:[{key:"color",factory:function(){return new ba},config:{colors:Ea}},{key:"bgColor",factory:function(){return new wa},config:{colors:Ea}}]},Sa=function(t){if("string"!=typeof t)return!1;var e=t.match(ka);if(!e)return!1;var n=e[1];if(!n)return!1;if(Ta.test(n)||Na.test(n))return!0;return!1},ka=/^(?:\w+:)?\/\/(\S+)$/,Ta=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Na=/^[^\s\.]+\.\S{2,}$/;var Da=ke.includes;function Aa(t){return void 0===t&&(t="r"),t+"-"+i.nanoid()}function Ma(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function La(t,e,n,r){return wo(this,void 0,void 0,(function(){var o,i;return Eo(this,(function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return e.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Pa(t,e,n){return wo(this,void 0,void 0,(function(){var r;return Eo(this,(function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Ia(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){var n=e.type;return!!t.isVoid(e)||(!!["pre","code","link"].includes(n)||void 0)}))}function Oa(t,e){return{type:"link",url:Ma(t),children:e?[{text:e}]:[]}}function ja(t,e,n){return wo(this,void 0,void 0,(function(){var o,i,a;return Eo(this,(function(u){switch(u.label){case 0:return n?(e||(e=n),t.restoreSelection(),Ia(t)?[2]:[4,La("insertLink",t,e,n)]):[2];case 1:return u.sent()?[4,Pa("insertLink",t,n)]:[2];case 2:return o=u.sent(),null==(i=t.selection)?[2]:(r.Range.isCollapsed(i)?(t.insertText(" "),a=Oa(o,e),r.Transforms.insertNodes(t,a),t.insertFragment([{text:" "}])):r.Editor.string(t,i)!==e?(t.deleteFragment(),a=Oa(o,e),r.Transforms.insertNodes(t,a)):(a=Oa(o),r.Transforms.wrapNodes(t,a,{split:!0}),r.Transforms.collapse(t,{edge:"end"})),[2])}}))}))}qe({target:"Array",proto:!0},{includes:function(t){return Da(this,t,arguments.length>1?arguments[1]:void 0)}}),Hr("includes");var Ha={type:"link",renderElem:function(t,e,r){var o=t,i=o.url,a=o.target,u=void 0===a?"_blank":a;return n.jsx("a",{href:i,target:u},e)}};var za={type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+e+"</a>"}};var _a={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"link",url:o.attr("href")||"",target:o.attr("target")||"",children:e}}};function Ca(){return Aa("w-e-insert-link")}var Va=function(){function t(){this.title=e.t("link.insert"),this.iconSvg=Yo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=Ca(),this.urlInputId=Ca(),this.buttonId=Ca()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return Ia(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=t.selection,o=this,i=o.textInputId,a=o.urlInputId,u=o.buttonId,c=So(e.genModalInputElems(e.t("link.text"),i),2),s=c[0],f=c[1],d=l.default(f),p=So(e.genModalInputElems(e.t("link.url"),a),2),h=p[0],v=p[1],g=l.default(v),y=So(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var m=l.default("<div></div>");m.on("click","#"+u,(function(e){e.preventDefault();var n=m.find("#"+i).val(),r=m.find("#"+a).val();ja(t,n,r),t.hidePanelOrModal()})),this.$content=m}var b=this.$content;if(b.empty(),b.append(s),b.append(h),b.append(y),null==n||r.Range.isCollapsed(n))d.val("");else{var w=r.Editor.string(t,n);d.val(w)}return g.val(""),setTimeout((function(){d.focus()})),b[0]},t}();function Ba(){return Aa("w-e-update-link")}var Ra=function(){function t(){this.title=e.t("link.edit"),this.iconSvg=Qo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Ba(),this.buttonId=Ba()}return t.prototype.getSelectedLinkElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.getModalPositionNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype.getModalContentElem=function(t){var n=this.urlInputId,o=this.buttonId,i=So(e.genModalInputElems(e.t("link.url"),n),2),a=i[0],u=i[1],c=l.default(u),s=So(e.genModalButtonElems(o,e.t("common.ok")),1)[0];if(null==this.$content){var f=l.default("<div></div>");f.on("click","button",(function(o){o.preventDefault(),t.restoreSelection();var i=e.DomEditor.getSelectedNodeByType(t,"link"),a=i?r.Node.string(i):"",u=f.find("#"+n).val();!function(t,n,o){wo(this,void 0,void 0,(function(){var i,a;return Eo(this,(function(u){switch(u.label){case 0:return o?[4,La("editLink",t,n,o)]:[2];case 1:return u.sent()?[4,Pa("editLink",t,o)]:[2];case 2:return i=u.sent(),a={url:Ma(i)},r.Transforms.setNodes(t,a,{match:function(t){return e.DomEditor.checkNodeType(t,"link")}}),[2]}}))}))}(t,a,u),t.hidePanelOrModal()})),this.$content=f}var d=this.$content;d.empty(),d.append(a),d.append(s);var p=this.getValue(t);return c.val(p),setTimeout((function(){c.focus()})),d[0]},t}(),Fa=function(){function t(){this.title=e.t("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype.exec=function(t,n){this.isDisabled(t)||r.Transforms.unwrapNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"link")}})},t}(),qa=function(){function t(){this.title=e.t("link.view"),this.iconSvg=Zo,this.tag="button"}return t.prototype.getSelectedLinkElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"link");return null==n?null:n},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return e&&e.url||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View link failed, link url is '"+e+"'");window.open(e,"_blank")}},t}(),Wa=I([].slice),$a=vn("slice"),Ga=Nt("species"),Ua=m.Array,Ka=Math.max;qe({target:"Array",proto:!0,forced:!$a},{slice:function(t,e){var n,r,o,i=R(this),a=xe(i),u=be(t,a),l=be(void 0===e?a:e,a);if(Ge(i)&&(n=i.constructor,(un(n)&&(n===Ua||Ge(n.prototype))||q(n)&&null===(n=n[Ga]))&&(n=void 0),n===Ua||void 0===n))return Wa(i,u,l);for(r=new(void 0===n?Ua:n)(Ka(l-u,0)),o=0;u<l;u++,o++)u in i&&Wr(r,o,i[u]);return r.length=o,r}}),qe({target:"String",proto:!0,forced:Lo("anchor")},{anchor:function(t){return Mo(this,"a","name",t)}});var Ja=!1;function Xa(t){Ja=!!t,function(){try{"undefined"!=typeof window&&(window.__wELinkFormApplying=Ja)}catch(t){}}()}var Ya=null;function Qa(t,e){var n="undefined"!=typeof document&&(document.querySelector(".editor-content .w-e-text-container")||document.querySelector(".w-e-text-container"))||null;if(n){var r=n.classList.contains("mdg-link-modal-open");if(t)return n.classList.add("mdg-link-modal-open"),void n.classList.add("w-e-link-modal-open");n.classList.remove("mdg-link-modal-open"),n.classList.remove("w-e-link-modal-open"),r&&(Ja||Za(e))}}function Za(t){var n=t,r=function(){var t,r,o;try{null===(o=null===(r=null===(t=e.DomEditor.getHoverbar)||void 0===t?void 0:t.call(e.DomEditor,n))||void 0===r?void 0:r.hideAndClean)||void 0===o||o.call(r)}catch(t){}};try{n&&!n.isDestroyed&&"function"==typeof n.deselect&&n.deselect()}catch(t){}r(),"function"==typeof requestAnimationFrame&&requestAnimationFrame(r)}function tu(t){var e=String(t||"").trim();return!e||"#"===e||/^javascript:/i.test(e)?"":(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),/^[a-z][a-z0-9+.-]*:/i.test(e)?e:"http://"+e)}var eu=function(){function t(t){void 0===t&&(t="edit"),this.tag="button",this.showModal=!0,this.modalWidth=440,this._root=null,this._editor=null,this._editLinkPath=null,this._savedSelection=null,this.mode="insert"===t?"insert":"edit",this.title="insert"===this.mode?e.t("link.insert"):e.t("link.edit"),this.iconSvg="insert"===this.mode?Yo:Qo;var n=Math.random().toString(36).slice(2,9);this._textInputId="w-e-link-form-text-"+n,this._urlInputId="w-e-link-form-url-"+n}return t.prototype.getSelectedLinkElem=function(t){return e.DomEditor.getSelectedNodeByType(t,"link")||null},t.prototype.getValue=function(t){var e=this.getSelectedLinkElem(t);return(null==e?void 0:e.url)||""},t.prototype.isActive=function(){return!1},t.prototype.exec=function(){},t.prototype._isInsertDisabled=function(t){if(null==t.selection)return!0;try{return(e.DomEditor.getSelectedElems(t)||[]).some((function(n){var r;if(null===(r=t.isVoid)||void 0===r?void 0:r.call(t,n))return!0;var o=e.DomEditor.getNodeType(n);return"pre"===o||"code"===o||"link"===o}))}catch(t){return!0}},t.prototype.isDisabled=function(t){return"insert"===this.mode?this._isInsertDisabled(t):null==t.selection||null==this.getSelectedLinkElem(t)},t.prototype.getModalPositionNode=function(t){return"insert"===this.mode?null:e.DomEditor.getSelectedNodeByType(t,"link")},t.prototype._isCollapsedSelection=function(t){if(!(null==t?void 0:t.anchor)||!(null==t?void 0:t.focus))return!0;var e=t.anchor,n=t.focus;return e.offset===n.offset&&(!(!Array.isArray(e.path)||!Array.isArray(n.path)||e.path.length!==n.path.length)&&e.path.every((function(t,e){return t===n.path[e]})))},t.prototype._readFormAndValidate=function(){if(!this._root)return null;var t=this._root.querySelector("#"+this._textInputId),e=this._root.querySelector("#"+this._urlInputId),n=String((null==t?void 0:t.value)||"").trim(),r=String((null==e?void 0:e.value)||"").trim();return r&&(r=tu(r))?(n||(n=r),{text:n,url:r}):null},t.prototype._restoreEditorSelection=function(t){var e;try{null===(e=t.focus)||void 0===e||e.call(t)}catch(t){}if(this._savedSelection)try{if("function"==typeof t.select?t.select(this._savedSelection):r.Transforms.select(t,this._savedSelection),t.selection)return!0}catch(t){}try{"function"==typeof t.restoreSelection&&t.restoreSelection()}catch(t){}return!!t.selection},t.prototype._applyInsert=function(t){return wo(this,void 0,void 0,(function(){var e,n,o,i,a;return Eo(this,(function(u){Xa(!0);try{if(!this._restoreEditorSelection(t))return[2];if(this._isInsertDisabled(t))return[2];if(!(e=this._readFormAndValidate()))return[2];if(!this._restoreEditorSelection(t))return[2];if(n=e.text,o=e.url,!(i=t.selection))return[2];if(this._isCollapsedSelection(i))"function"==typeof t.insertText?t.insertText(" "):r.Transforms.insertText(t," "),r.Transforms.insertNodes(t,{type:"link",url:o,children:[{text:n}]}),"function"==typeof t.insertFragment?t.insertFragment([{text:" "}]):r.Transforms.insertNodes(t,{text:" "});else{a="";try{a=String(r.Editor.string(t,i)||"")}catch(t){a=""}a!==n?("function"==typeof t.deleteFragment?t.deleteFragment():r.Transforms.delete(t),r.Transforms.insertNodes(t,{type:"link",url:o,children:[{text:n}]})):(r.Transforms.wrapNodes(t,{type:"link",url:o,children:[]},{split:!0}),r.Transforms.collapse(t,{edge:"end"}))}}catch(t){console.warn("[wangeditor] insertLinkForm apply",t)}finally{Xa(!1);try{t.hidePanelOrModal()}catch(t){}Qa(!1,t),Za(t)}return[2]}))}))},t.prototype._resolveEditLinkPath=function(t){var n=this.getSelectedLinkElem(t),o=null;if(n)try{o=e.DomEditor.findPath(t,n)}catch(t){o=null}if((!o||!o.length)&&Array.isArray(this._editLinkPath)&&this._editLinkPath.length){o=ko([],So(this._editLinkPath));try{var i=r.Editor.node(t,o),a=null==i?void 0:i[0];a&&e.DomEditor.checkNodeType(a,"link")&&(n=a)}catch(t){}}return{linkElem:n,path:o}},t.prototype._applyEdit=function(t){return wo(this,void 0,void 0,(function(){var n,o,i,a,u,l,c,s,f;return Eo(this,(function(d){Xa(!0);try{if(this._restoreEditorSelection(t),!(n=this._readFormAndValidate()))return[2];if(o=n.text,i=n.url,this._restoreEditorSelection(t),a=this._resolveEditLinkPath(t),u=a.linkElem,(!(l=a.path)||!l.length)&&u)try{l=e.DomEditor.findPath(t,u)}catch(t){l=null}if(!(null==l?void 0:l.length))return[2];c=u?String(r.Node.string(u)||""):"",r.Transforms.setNodes(t,{url:i},{at:l}),o!==c&&(s=r.Editor.start(t,l),f=r.Editor.end(t,l),s&&f&&(r.Transforms.select(t,{anchor:s,focus:f}),r.Transforms.insertText(t,o)))}catch(t){console.warn("[wangeditor] editLinkForm apply",t)}finally{Xa(!1);try{t.hidePanelOrModal()}catch(t){}Qa(!1,t),Za(t)}return[2]}))}))},t.prototype._apply=function(t){return wo(this,void 0,void 0,(function(){return Eo(this,(function(e){switch(e.label){case 0:return t&&!t.isDestroyed&&this._root?"insert"!==this.mode?[3,2]:[4,this._applyInsert(t)]:[2];case 1:case 3:return e.sent(),[2];case 2:return[4,this._applyEdit(t)]}}))}))},t.prototype._onRootClick=function(t){var e,n,r,o=this._editor;if(o&&!o.isDestroyed){var i=t.target;if(i instanceof Element){var a=null===(n=null===(e=i.closest)||void 0===e?void 0:e.call(i,"[data-w-e-link-action]"))||void 0===n?void 0:n.getAttribute("data-w-e-link-action");if(a){if(t.preventDefault(),"cancel"===a)return o.hidePanelOrModal(),void Qa(!1,o);if("visit"!==a)"ok"===a&&this._apply(o);else{var u=null===(r=this._root)||void 0===r?void 0:r.querySelector("#"+this._urlInputId),l=tu(String((null==u?void 0:u.value)||"").trim());if(!l)return;window.open(l,"_blank","noopener,noreferrer")}}}}},t.prototype._onRootKeydown=function(t){"Enter"===t.key&&(t.target instanceof HTMLInputElement&&(t.preventDefault(),this._apply(this._editor)))},t.prototype.getModalContentElem=function(t){var n,o,i,a=this;this._editor=t;try{null===(i=null===(o=null===(n=e.DomEditor.getHoverbar)||void 0===n?void 0:n.call(e.DomEditor,t))||void 0===o?void 0:o.hideAndClean)||void 0===i||i.call(o)}catch(t){}if(Qa(!0,t),!this._root){var u=document.createElement("div");u.className="mdgch-edit-link-form w-e-link-form",u.addEventListener("click",(function(t){return a._onRootClick(t)})),u.addEventListener("keydown",(function(t){return a._onRootKeydown(t)})),this._root=u}this._editLinkPath=null,this._savedSelection=null;try{t.selection&&(this._savedSelection=JSON.parse(JSON.stringify(t.selection)))}catch(e){this._savedSelection=t.selection||null}var l="",c="";if("edit"===this.mode){var s=this.getSelectedLinkElem(t);if(l=(null==s?void 0:s.url)||"",c=s?String(r.Node.string(s)||""):"",s)try{var f=e.DomEditor.findPath(t,s);(null==f?void 0:f.length)&&(this._editLinkPath=ko([],So(f)))}catch(t){this._editLinkPath=null}}else{var d=t.selection;if(d&&!this._isCollapsedSelection(d))try{c=String(r.Editor.string(t,d)||"")}catch(t){c=""}l=""}this._root.innerHTML='\n <div class="mdgch-edit-link-row">\n <span class="mdgch-edit-link-label">ๆ–‡ๆœฌ</span>\n <input type="text" class="mdgch-edit-link-input" id="'+this._textInputId+'" autocomplete="off" />\n <span class="mdgch-edit-link-visit-spacer" aria-hidden="true">่ฎฟ้—ฎ</span>\n </div>\n <div class="mdgch-edit-link-row">\n <span class="mdgch-edit-link-label">้“พๆŽฅ</span>\n <input type="text" class="mdgch-edit-link-input" id="'+this._urlInputId+'" autocomplete="off" />\n <button type="button" class="mdgch-edit-link-visit" data-w-e-link-action="visit">่ฎฟ้—ฎ</button>\n </div>\n <div class="mdgch-edit-link-actions">\n <button type="button" class="mdgch-edit-link-btn mdgch-edit-link-btn-cancel" data-w-e-link-action="cancel">ๅ–ๆถˆ</button>\n <button type="button" class="mdgch-edit-link-btn mdgch-edit-link-btn-ok" data-w-e-link-action="ok">็กฎๅฎš</button>\n </div>\n ';var p=this._root.querySelector("#"+this._textInputId),h=this._root.querySelector("#"+this._urlInputId);return p&&(p.value=c),h&&(h.value=l),setTimeout((function(){var t;null===(t=null==p?void 0:p.focus)||void 0===t||t.call(p)}),0),this._root},t}(),nu=function(){function t(){this.title=e.t("link.view"),this.iconSvg=Zo,this.tag="button",this.alwaysEnable=!0}return t.prototype._hrefFromSelection=function(t){try{var n=e.DomEditor.getSelectedNodeByType(t,"link"),r=String((null==n?void 0:n.url)||"").trim();if(r&&"#"!==r&&!/^javascript:/i.test(r))return r}catch(t){}return""},t.prototype.getValue=function(t){return this._hrefFromSelection(t)||function(){try{if(Ya)return Ya()||""}catch(t){}try{if("undefined"!=typeof window)return String(window.__wELinkHoverHref||"")}catch(t){}return""}()||""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return!this.getValue(t)},t.prototype.exec=function(t,e){var n="string"==typeof e?e.trim():"";n&&"#"!==n&&!/^javascript:/i.test(n)||(n=String(this.getValue(t)||"")),(n=tu(n)||n)&&window.open(n,"_blank","noopener,noreferrer")},t}();var ru={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},ou={renderElems:[Ha],elemsToHtml:[za],parseElemsHtml:[_a],menus:[{key:"insertLink",factory:function(){return new Va},config:ru},{key:"editLink",factory:function(){return new Ra},config:ru},{key:"unLink",factory:function(){return new Fa}},{key:"viewLink",factory:function(){return new qa}},{key:"insertLinkForm",factory:function(){return new eu("insert")},config:ru},{key:"editLinkForm",factory:function(){return new eu("edit")},config:ru},{key:"viewLinkOpen",factory:function(){return new nu}}],editorPlugin:function(t){var n=t.isInline,o=t.insertData,i=t.normalizeNode;t.insertNode,t.insertText;var a=t;return a.isInline=function(t){return"link"===t.type||n(t)},a.insertData=function(t){var e=t.getData("text/plain");if(Sa(e)){if(!Ia(a)){var n=a.selection;if(null!=n){var i=r.Editor.string(a,n);ja(a,i,e)}}}else o(t)},a.normalizeNode=function(t){var n=So(t,2),o=n[0],u=n[1];return"link"!==e.DomEditor.getNodeType(o)?i([o,u]):""===r.Node.string(o)?r.Transforms.removeNodes(a,{at:u}):i([o,u])},a}};var iu=I(1..valueOf),au=m.RangeError,uu=m.RangeError,lu=m.String,cu=Math.floor,su=I((function(t){var e=En(B(this)),n="",r=ge(t);if(r<0||r==1/0)throw au("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),fu=I("".slice),du=I(1..toFixed),pu=function(t,e,n){return 0===e?n:e%2==1?pu(t,e-1,n*t):pu(t*t,e/2,n)},hu=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=cu(o/1e7)},vu=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=cu(r/e),r=r%e*1e7},gu=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=lu(t[e]);n=""===n?r:n+su("0",7-r.length)+r}return n},yu=b((function(){return"0.000"!==du(8e-5,3)||"1"!==du(.9,0)||"1.25"!==du(1.255,2)||"1000000000000000128"!==du(0xde0b6b3a7640080,0)}))||!b((function(){du({})}));function mu(t,n){return"w-e-image-container-"+e.DomEditor.findKey(t,n).id}function bu(t,o,i,a){var u=l.default("body"),s=mu(t,o),f=a.width,d=a.height,p=0,h=0,v=0,g=!1,y=null;function m(n){y=function(){var t=l.default("#"+s);if(0===t.length)throw new Error("Cannot find image container elem");return t}(),p=n;var r=y.find("img");if(0===r.length)throw new Error("Cannot find image elem");h=r.width(),v=r.height(),u.on("mousemove",b),u.on("mouseup",w);var o=e.DomEditor.getHoverbar(t);o&&o.hideAndClean()}var b=c.default((function(t){t.preventDefault();var e=t.clientX,n=h+(g?p-e:e-p),r=v*(n/h);null!=y&&(n<=15||r<=15||(y.css("width",n+"px"),y.css("height",r+"px")))}),100);function w(n){if(u.off("mousemove",b),null!=y){var i=y.width().toFixed(2),a=y.height().toFixed(2),l={style:bo(bo({},o.style),{width:i+"px",height:a+"px"})};r.Transforms.setNodes(t,l,{at:e.DomEditor.findPath(t,o)}),u.off("mouseup",w)}}var E={};return f&&(E.width=f),d&&(E.height=d),n.jsx("div",{id:s,style:E,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var e=l.default(t.target);e.hasClass("w-e-image-dragger")&&(t.preventDefault(),(e.hasClass("left-top")||e.hasClass("left-bottom"))&&(g=!0),m(t.clientX))}}},i,n.jsx("div",{className:"w-e-image-dragger left-top"}),n.jsx("div",{className:"w-e-image-dragger right-top"}),n.jsx("div",{className:"w-e-image-dragger left-bottom"}),n.jsx("div",{className:"w-e-image-dragger right-bottom"}))}qe({target:"Number",proto:!0,forced:yu},{toFixed:function(t){var e,n,r,o,i=iu(this),a=ge(t),u=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw uu("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return lu(i);if(i<0&&(l="-",i=-i),i>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*pu(2,69,1))-69)<0?i*pu(2,-e,1):i/pu(2,e,1),n*=4503599627370496,(e=52-e)>0){for(hu(u,0,n),r=a;r>=7;)hu(u,1e7,0),r-=7;for(hu(u,pu(10,r,1),0),r=e-1;r>=23;)vu(u,1<<23),r-=23;vu(u,1<<r),hu(u,1,1),vu(u,2),c=gu(u)}else hu(u,0,n),hu(u,1<<-e,0),c=gu(u)+su("0",a);return c=a>0?l+((o=c.length)<=a?"0."+su("0",a-o)+c:fu(c,0,o-a)+"."+fu(c,o-a)):l+c}});var wu={type:"image",renderElem:function(t,r,o){var i=t,a=i.src,u=i.alt,l=void 0===u?"":u,c=i.href,s=void 0===c?"":c,f=i.style,d=void 0===f?{}:f,p=d.width,h=void 0===p?"":p,v=d.height,g=void 0===v?"":v,y=e.DomEditor.isNodeSelected(o,t),m={};h&&(m.width="100%"),g&&(m.height="100%");var b=n.jsx("img",{style:m,src:a,alt:l,"data-href":s}),w=o.isDisabled();return y&&!w?bu(o,t,b,{width:h,height:g}):function(t,e,r,o){var i=o.width,a=o.height,u={};i&&(u.width=i),a&&(u.height=a);var l=mu(t,e);return n.jsx("div",{id:l,style:u,className:"w-e-image-container"},r)}(o,t,b,{width:h,height:g})}};var Eu={type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,l=n.style,c=void 0===l?{}:l,s=c.width,f=void 0===s?"":s,d=c.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}};var xu={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=l.default(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:go(r,"width"),height:go(r,"height")},children:[{text:""}]}}};function Su(t,e,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),wo(this,void 0,void 0,(function(){var i,a;return Eo(this,(function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return e.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function ku(t,e,n){return wo(this,void 0,void 0,(function(){var r;return Eo(this,(function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Tu(t,n,o,i){return void 0===o&&(o=""),void 0===i&&(i=""),wo(this,void 0,void 0,(function(){var a,u,l;return Eo(this,(function(c){switch(c.label){case 0:return[4,Su("insertImage",t,n,o,i)];case 1:return c.sent()?[4,ku("insertImage",t,n)]:[2];case 2:return a=c.sent(),u={type:"image",src:Ma(a),href:i,alt:o,style:{},children:[{text:""}]},null===t.selection&&t.restoreSelection(),e.DomEditor.getSelectedNodeByType(t,"image")&&t.move(1),Du(t)?[2]:(r.Transforms.insertNodes(t,u),(l=t.getMenuConfig("insertImage").onInsertedImage)&&l(u),[2])}}))}))}function Nu(t,n,o,i,a){return void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a={}),wo(this,void 0,void 0,(function(){var u,l,c,s,f,d;return Eo(this,(function(p){switch(p.label){case 0:return[4,Su("editImage",t,n,o,i)];case 1:return p.sent()?[4,ku("editImage",t,n)]:[2];case 2:return u=p.sent(),null==(l=e.DomEditor.getSelectedNodeByType(t,"image"))?[2]:(c=l.style,s={src:u,alt:o,href:i,style:bo(bo({},void 0===c?{}:c),a)},r.Transforms.setNodes(t,s,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}}),f=e.DomEditor.getSelectedNodeByType(t,"image"),(d=t.getMenuConfig("editImage").onUpdatedImage)&&d(f),[2])}}))}))}function Du(t){var n=t.selection;return null==n||(!r.Range.isCollapsed(n)||!!So(r.Editor.nodes(t,{match:function(n){var o=e.DomEditor.getNodeType(n);return"code"===o||("pre"===o||("link"===o||("list-item"===o||(!!o.startsWith("header")||("blockquote"===o||!!r.Editor.isVoid(t,n))))))},universal:!0}),1)[0])}function Au(){return Aa("w-e-insert-image")}var Mu=function(){function t(){this.title=e.t("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Au(),this.altInputId=Au(),this.hrefInputId=Au(),this.buttonId=Au()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return Du(t)},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,c=So(e.genModalInputElems(e.t("image.src"),o),2),s=c[0],f=c[1],d=l.default(f),p=So(e.genModalInputElems(e.t("image.desc"),i),2),h=p[0],v=p[1],g=l.default(v),y=So(e.genModalInputElems(e.t("image.link"),a),2),m=y[0],b=y[1],w=l.default(b),E=So(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var x=l.default("<div></div>");x.on("click","#"+u,(function(e){e.preventDefault();var r=x.find("#"+o).val().trim(),u=x.find("#"+i).val().trim(),l=x.find("#"+a).val().trim();n.insertImage(t,r,u,l),t.hidePanelOrModal()})),this.$content=x}var S=this.$content;return S.empty(),S.append(s),S.append(h),S.append(m),S.append(E),d.val(""),g.val(""),w.val(""),setTimeout((function(){d.focus()})),S[0]},t.prototype.insertImage=function(t,e,n,r){void 0===n&&(n=""),void 0===r&&(r=""),e&&(t.restoreSelection(),this.isDisabled(t)||Tu(t,e,n,r))},t}(),Lu=function(){function t(){this.title=e.t("image.delete"),this.iconSvg=ni,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.exec=function(t,n){this.isDisabled(t)||r.Transforms.removeNodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}})},t}();function Pu(){return Aa("w-e-edit-image")}var Iu=function(){function t(){this.title=e.t("image.edit"),this.iconSvg=Qo,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Pu(),this.altInputId=Pu(),this.hrefInputId=Pu(),this.buttonId=Pu()}return t.prototype.getValue=function(t){return""},t.prototype.getImageNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!r.Range.isCollapsed(n)||null==e.DomEditor.getSelectedNodeByType(t,"image"))},t.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},t.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,c=this.getImageNode(t);if(null==c)throw new Error("Not found selected image node");var s=So(e.genModalInputElems(e.t("image.src"),o),2),f=s[0],d=s[1],p=l.default(d),h=So(e.genModalInputElems(e.t("image.desc"),i),2),v=h[0],g=h[1],y=l.default(g),m=So(e.genModalInputElems(e.t("image.link"),a),2),b=m[0],w=m[1],E=l.default(w),x=So(e.genModalButtonElems(u,e.t("common.ok")),1)[0];if(null==this.$content){var S=l.default("<div></div>");S.on("click","#"+u,(function(e){e.preventDefault();var r=S.find("#"+o).val(),u=S.find("#"+i).val(),l=S.find("#"+a).val();n.updateImage(t,r,u,l),t.hidePanelOrModal()})),this.$content=S}var k=this.$content;k.empty(),k.append(f),k.append(v),k.append(b),k.append(x);var T=c,N=T.src,D=T.alt,A=void 0===D?"":D,M=T.href,L=void 0===M?"":M;return p.val(N),y.val(A),E.val(L),setTimeout((function(){p.focus()})),k[0]},t.prototype.updateImage=function(t,e,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),e&&(t.restoreSelection(),this.isDisabled(t)||Nu(t,e,n,r,o))},t}(),Ou=function(){function t(){this.title=e.t("image.viewLink"),this.iconSvg=Zo,this.tag="button"}return t.prototype.getValue=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"image");return n&&n.href||""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!this.getValue(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){if(!e||"string"!=typeof e)throw new Error("View image link failed, image.href is '"+e+"'");window.open(e,"_blank")}},t}(),ju=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return e.DomEditor.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,n){if(!this.isDisabled(t)){var o=this.getSelectedNode(t);if(null!=o){var i=e.DomEditor.getHoverbar(t);i&&i.hideAndClean();var a=o.style,u={style:bo(bo({},void 0===a?{}:a),{width:this.value,height:""})};r.Transforms.setNodes(t,u,{match:function(t){return e.DomEditor.checkNodeType(t,"image")}})}}},t}(),Hu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="30%",e.value="30%",e}return mo(e,t),e}(ju),zu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="50%",e.value="50%",e}return mo(e,t),e}(ju),_u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="75%",e.value="75%",e}return mo(e,t),e}(ju),Cu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title="100%",e.value="100%",e}return mo(e,t),e}(ju);var Vu={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Bu={renderElems:[wu],elemsToHtml:[Eu],parseElemsHtml:[xu],menus:[{key:"insertImage",factory:function(){return new Mu},config:Vu},{key:"deleteImage",factory:function(){return new Lu}},{key:"editImage",factory:function(){return new Iu},config:Vu},{key:"viewImageLink",factory:function(){return new Ou}},{key:"imageWidth30",factory:function(){return new Hu}},{key:"imageWidth50",factory:function(){return new zu}},{key:"imageWidth75",factory:function(){return new _u}},{key:"imageWidth100",factory:function(){return new Cu}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(t){return"image"===t.type||e(t)},r.isVoid=function(t){return"image"===t.type||n(t)},r}};var Ru={type:"todo",renderElem:function(t,o,i){var a=!1;i.isDisabled()&&(a=!0);var u=t.checked,l=n.jsx("div",{style:{margin:"5px 0"}},n.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},n.jsx("input",{type:"checkbox",checked:u,disabled:a,on:{change:function(n){var o=e.DomEditor.findPath(i,t),a={checked:n.target.checked};r.Transforms.setNodes(i,a,{at:o})}}})),n.jsx("span",null,o));return l}};var Fu=function(){function t(){this.title=e.t("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!e.DomEditor.getSelectedNodeByType(t,"todo")},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){if(r.Editor.isVoid(t,e)&&r.Editor.isBlock(t,e))return!0;var n=e.type;return!!["pre","table","list-item"].includes(n)||void 0}))},t.prototype.exec=function(t,e){var n=this.isActive(t);r.Transforms.setNodes(t,{type:n?"paragraph":"todo"})},t}();var qu={renderElems:[Ru],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=l.default(t).find("li"),n=l.default('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var o=l.default(t);0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]);var i=!1;return null!=o.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:e}}}],menus:[{key:"todo",factory:function(){return new Fu}}],editorPlugin:function(t){var n=t.deleteBackward,o=t;return o.deleteBackward=function(o){var i=t.selection;if(i&&r.Range.isCollapsed(i)){var a=e.DomEditor.getSelectedNodeByType(t,"todo");if(a&&0===r.Node.string(a).length)return void r.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}n(o)},o}},Wu=I([].join),$u=C!=Object,Gu=_o("join",",");function Uu(t){var e,r=t.action,o=t.title,i=t.iconSvg,a=t.actionAttr,u=t.className,l=t.disabled,c=void 0!==l&&l,s=t.active,f=[u,c?"is-disabled":"",void 0!==s&&s?"is-active":""].filter(Boolean).join(" ");return n.h("button",{attrs:bo((e={type:"button",class:f,title:o},e[a]=r,e["aria-label"]=o,e),c?{disabled:"disabled"}:{}),props:{contentEditable:!1,disabled:c},hook:{insert:function(t){var e=t.elm;e&&(e.innerHTML=i)},postpatch:function(t,e){var n=e.elm;n&&n.innerHTML!==i&&(n.innerHTML=i)}},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}})}function Ku(t){return n.h("span",{attrs:{class:t}},[])}qe({target:"Array",proto:!0,forced:$u||!Gu},{join:function(t){return Wu(R(this),void 0===t?",":t)}});var Ju='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',Xu='<svg viewBox="0 0 1024 1024"><path d="M436 680H124v-56h312l-124-124 42-42 220 220-220 220-42-42 124-124z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',Yu='<svg viewBox="0 0 1024 1024"><path d="M360 184h304v-40H360v40zM184 264h656v72H184V264zm72 120v456c0 22 18 40 40 40h432c22 0 40-18 40-40V384H256zm120 88h64v280h-64V472zm208 0h64v280h-64V472z"></path></svg>';var Qu={type:"blockquote",renderElem:function(t,r,o){var i=null==r?[]:Array.isArray(r)?r:[r];if(o.isDisabled())return n.h("blockquote",{},i);var a=!1;try{var u=e.DomEditor.findPath(o,t);a=e.canRemoveEmptyLineAboveBlock(o,u)}catch(t){a=!1}var l=n.h("div",{attrs:{class:"mdg-bq-toolbar",contenteditable:"false","data-mdg-bq-toolbar":"1"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(n){var r,i,a;n.preventDefault(),n.stopPropagation();var u=n.target,l=null===(r=null==u?void 0:u.closest)||void 0===r?void 0:r.call(u,"button[data-bq-action]"),c=null===(i=null==l?void 0:l.getAttribute)||void 0===i?void 0:i.call(l,"data-bq-action");c&&!(null===(a=null==l?void 0:l.classList)||void 0===a?void 0:a.contains("is-disabled"))&&function(t,n,r){if(t&&!t.isDestroyed&&!t.isDisabled()){var o=e.resolveElemPath(t,n);if(null==o?void 0:o.length)if("enter"!==r)if("cancel-enter"!==r)if("unquote"!==r){if("remove"===r){var i=e.DomEditor.getSelectedNodeByType(t,"blockquote")||n;try{var a=e.DomEditor.findPath(t,i);e.replaceBlockWithEmptyLine(t,a,i)}catch(r){e.replaceBlockWithEmptyLine(t,o,n)}}}else e.setBlockToParagraph(t,o);else e.removeEmptyLineAboveTopLevelBlock(t,o);else e.insertEmptyLineAboveAtPath(t,o)}}(o,t,c)}}},[Uu({action:"enter",title:"ๅ›ž่ฝฆ๏ผˆไธŠๆ–น็ฉบ่กŒ๏ผ‰",iconSvg:Ju,actionAttr:"data-bq-action",className:"mdg-bq-btn"}),Uu({action:"cancel-enter",title:"ๅ–ๆถˆๅ›ž่ฝฆ",iconSvg:Xu,actionAttr:"data-bq-action",className:"mdg-bq-btn",disabled:!a}),Ku("mdg-bq-toolbar-spacer"),Uu({action:"unquote",title:"ๅ–ๆถˆๅผ•็”จ",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M422.6 907.1H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m472 0H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',actionAttr:"data-bq-action",className:"mdg-bq-btn"}),Uu({action:"remove",title:"ๅˆ ้™ค",iconSvg:Yu,actionAttr:"data-bq-action",className:"mdg-bq-btn"})]);return n.h("blockquote",{attrs:{class:"mdg-bq-with-toolbar"}},ko([l],So(i)))}};var Zu={type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}};var tl,el,nl={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var o=l.default(t);return 0===(e=e.filter((function(t){return!!r.Text.isText(t)||!!n.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},rl=function(){function t(){this.title=e.t("blockQuote.title"),this.iconSvg=ri,this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!e.DomEditor.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){return null==t.selection||!So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||"blockquote"===n},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";r.Transforms.setNodes(t,{type:n},{mode:"highest"})}},t}(),ol=function(t){return t&&t.Math==Math&&t},il=ol("object"==typeof globalThis&&globalThis)||ol("object"==typeof window&&window)||ol("object"==typeof self&&self)||ol("object"==typeof d&&d)||function(){return this}()||Function("return this")(),al=Function.prototype,ul=al.apply,ll=al.bind,cl=al.call,sl="object"==typeof Reflect&&Reflect.apply||(ll?cl.bind(ul):function(){return cl.apply(ul,arguments)}),fl=Function.prototype,dl=fl.bind,pl=fl.call,hl=dl&&dl.bind(pl),vl=dl?function(t){return t&&hl(pl,t)}:function(t){return t&&function(){return pl.apply(t,arguments)}},gl=function(t){return"function"==typeof t},yl=function(t){try{return!!t()}catch(t){return!0}},ml=!yl((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),bl=Function.prototype.call,wl=bl.bind?bl.bind(bl):function(){return bl.apply(bl,arguments)},El={}.propertyIsEnumerable,xl=Object.getOwnPropertyDescriptor,Sl=xl&&!El.call({1:2},1)?function(t){var e=xl(this,t);return!!e&&e.enumerable}:El,kl={f:Sl},Tl=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Nl=vl({}.toString),Dl=vl("".slice),Al=function(t){return Dl(Nl(t),8,-1)},Ml=il.Object,Ll=vl("".split),Pl=yl((function(){return!Ml("z").propertyIsEnumerable(0)}))?function(t){return"String"==Al(t)?Ll(t,""):Ml(t)}:Ml,Il=il.TypeError,Ol=function(t){if(null==t)throw Il("Can't call method on "+t);return t},jl=function(t){return Pl(Ol(t))},Hl=function(t){return"object"==typeof t?null!==t:gl(t)},zl={},_l=function(t){return gl(t)?t:void 0},Cl=function(t,e){return arguments.length<2?_l(zl[t])||_l(il[t]):zl[t]&&zl[t][e]||il[t]&&il[t][e]},Vl=vl({}.isPrototypeOf),Bl=Cl("navigator","userAgent")||"",Rl=il.process,Fl=il.Deno,ql=Rl&&Rl.versions||Fl&&Fl.version,Wl=ql&&ql.v8;Wl&&(el=(tl=Wl.split("."))[0]>0&&tl[0]<4?1:+(tl[0]+tl[1])),!el&&Bl&&(!(tl=Bl.match(/Edge\/(\d+)/))||tl[1]>=74)&&(tl=Bl.match(/Chrome\/(\d+)/))&&(el=+tl[1]);var $l=el,Gl=!!Object.getOwnPropertySymbols&&!yl((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$l&&$l<41})),Ul=Gl&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Kl=il.Object,Jl=Ul?function(t){return"symbol"==typeof t}:function(t){var e=Cl("Symbol");return gl(e)&&Vl(e.prototype,Kl(t))},Xl=il.String,Yl=il.TypeError,Ql=function(t){if(gl(t))return t;throw Yl(function(t){try{return Xl(t)}catch(t){return"Object"}}(t)+" is not a function")},Zl=il.TypeError,tc=Object.defineProperty,ec="__core-js_shared__",nc=il[ec]||function(t,e){try{tc(il,t,{value:e,configurable:!0,writable:!0})}catch(n){il[t]=e}return e}(ec,{}),rc=h((function(t){(t.exports=function(t,e){return nc[t]||(nc[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"ยฉ 2021 Denis Pushkarev (zloirock.ru)"})})),oc=il.Object,ic=function(t){return oc(Ol(t))},ac=vl({}.hasOwnProperty),uc=Object.hasOwn||function(t,e){return ac(ic(t),e)},lc=0,cc=Math.random(),sc=vl(1..toString),fc=function(t){return"Symbol("+(void 0===t?"":t)+")_"+sc(++lc+cc,36)},dc=rc("wks"),pc=il.Symbol,hc=pc&&pc.for,vc=Ul?pc:pc&&pc.withoutSetter||fc,gc=function(t){if(!uc(dc,t)||!Gl&&"string"!=typeof dc[t]){var e="Symbol."+t;Gl&&uc(pc,t)?dc[t]=pc[t]:dc[t]=Ul&&hc?hc(e):vc(e)}return dc[t]},yc=il.TypeError,mc=gc("toPrimitive"),bc=function(t,e){if(!Hl(t)||Jl(t))return t;var n,r,o=null==(n=t[mc])?void 0:Ql(n);if(o){if(void 0===e&&(e="default"),r=wl(o,t,e),!Hl(r)||Jl(r))return r;throw yc("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&gl(n=t.toString)&&!Hl(r=wl(n,t)))return r;if(gl(n=t.valueOf)&&!Hl(r=wl(n,t)))return r;if("string"!==e&&gl(n=t.toString)&&!Hl(r=wl(n,t)))return r;throw Zl("Can't convert object to primitive value")}(t,e)},wc=function(t){var e=bc(t,"string");return Jl(e)?e:e+""},Ec=il.document,xc=Hl(Ec)&&Hl(Ec.createElement),Sc=function(t){return xc?Ec.createElement(t):{}},kc=!ml&&!yl((function(){return 7!=Object.defineProperty(Sc("div"),"a",{get:function(){return 7}}).a})),Tc=Object.getOwnPropertyDescriptor,Nc={f:ml?Tc:function(t,e){if(t=jl(t),e=wc(e),kc)try{return Tc(t,e)}catch(t){}if(uc(t,e))return Tl(!wl(kl.f,t,e),t[e])}},Dc=/#|\.prototype\./,Ac=function(t,e){var n=Lc[Mc(t)];return n==Ic||n!=Pc&&(gl(e)?yl(e):!!e)},Mc=Ac.normalize=function(t){return String(t).replace(Dc,".").toLowerCase()},Lc=Ac.data={},Pc=Ac.NATIVE="N",Ic=Ac.POLYFILL="P",Oc=Ac,jc=vl(vl.bind),Hc=function(t,e){return Ql(t),void 0===e?t:jc?jc(t,e):function(){return t.apply(e,arguments)}},zc=il.String,_c=il.TypeError,Cc=function(t){if(Hl(t))return t;throw _c(zc(t)+" is not an object")},Vc=il.TypeError,Bc=Object.defineProperty,Rc={f:ml?Bc:function(t,e,n){if(Cc(t),e=wc(e),Cc(n),kc)try{return Bc(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Vc("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Fc=ml?function(t,e,n){return Rc.f(t,e,Tl(1,n))}:function(t,e,n){return t[e]=n,t},qc=Nc.f,Wc=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return sl(t,this,arguments)};return e.prototype=t.prototype,e},$c=function(t,e){var n,r,o,i,a,u,l,c,s=t.target,f=t.global,d=t.stat,p=t.proto,h=f?il:d?il[s]:(il[s]||{}).prototype,v=f?zl:zl[s]||Fc(zl,s,{})[s],g=v.prototype;for(o in e)n=!Oc(f?o:s+(d?".":"#")+o,t.forced)&&h&&uc(h,o),a=v[o],n&&(u=t.noTargetGet?(c=qc(h,o))&&c.value:h[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(l=t.bind&&n?Hc(i,il):t.wrap&&n?Wc(i):p&&gl(i)?vl(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Fc(l,"sham",!0),Fc(v,o,l),p&&(uc(zl,r=s+"Prototype")||Fc(zl,r,{}),Fc(zl[r],o,i),t.real&&g&&!g[o]&&Fc(g,o,i)))},Gc=Array.isArray||function(t){return"Array"==Al(t)},Uc=Math.ceil,Kc=Math.floor,Jc=function(t){var e=+t;return e!=e||0===e?0:(e>0?Kc:Uc)(e)},Xc=Math.min,Yc=function(t){return(e=t.length)>0?Xc(Jc(e),9007199254740991):0;var e},Qc=function(t,e,n){var r=wc(e);r in t?Rc.f(t,r,Tl(0,n)):t[r]=n},Zc={};Zc[gc("toStringTag")]="z";var ts="[object z]"===String(Zc),es=gc("toStringTag"),ns=il.Object,rs="Arguments"==Al(function(){return arguments}()),os=ts?Al:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ns(t),es))?n:rs?Al(e):"Object"==(r=Al(e))&&gl(e.callee)?"Arguments":r},is=vl(Function.toString);gl(nc.inspectSource)||(nc.inspectSource=function(t){return is(t)});var as=nc.inspectSource,us=function(){},ls=[],cs=Cl("Reflect","construct"),ss=/^\s*(?:class|function)\b/,fs=vl(ss.exec),ds=!ss.exec(us),ps=function(t){if(!gl(t))return!1;try{return cs(us,ls,t),!0}catch(t){return!1}},hs=!cs||yl((function(){var t;return ps(ps.call)||!ps(Object)||!ps((function(){t=!0}))||t}))?function(t){if(!gl(t))return!1;switch(os(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ds||!!fs(ss,as(t))}:ps,vs=gc("species"),gs=il.Array,ys=function(t,e){return new(function(t){var e;return Gc(t)&&(e=t.constructor,(hs(e)&&(e===gs||Gc(e.prototype))||Hl(e)&&null===(e=e[vs]))&&(e=void 0)),void 0===e?gs:e}(t))(0===e?0:e)},ms=gc("species"),bs=gc("isConcatSpreadable"),ws=9007199254740991,Es="Maximum allowed index exceeded",xs=il.TypeError,Ss=$l>=51||!yl((function(){var t=[];return t[bs]=!1,t.concat()[0]!==t})),ks=function(t){return $l>=51||!yl((function(){var e=[];return(e.constructor={})[ms]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("concat"),Ts=function(t){if(!Hl(t))return!1;var e=t[bs];return void 0!==e?!!e:Gc(t)};$c({target:"Array",proto:!0,forced:!Ss||!ks},{concat:function(t){var e,n,r,o,i,a=ic(this),u=ys(a,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(Ts(i=-1===e?a:arguments[e])){if(l+(o=Yc(i))>ws)throw xs(Es);for(n=0;n<o;n++,l++)n in i&&Qc(u,l,i[n])}else{if(l>=ws)throw xs(Es);Qc(u,l++,i)}return u.length=l,u}});var Ns,Ds=il.String,As=function(t){if("Symbol"===os(t))throw TypeError("Cannot convert a Symbol value to a string");return Ds(t)},Ms=Math.max,Ls=Math.min,Ps=function(t,e){var n=Jc(t);return n<0?Ms(n+e,0):Ls(n,e)},Is=function(t){return function(e,n,r){var o,i=jl(e),a=Yc(i),u=Ps(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Os={includes:Is(!0),indexOf:Is(!1)},js={},Hs=Os.indexOf,zs=vl([].push),_s=function(t,e){var n,r=jl(t),o=0,i=[];for(n in r)!uc(js,n)&&uc(r,n)&&zs(i,n);for(;e.length>o;)uc(r,n=e[o++])&&(~Hs(i,n)||zs(i,n));return i},Cs=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vs=Object.keys||function(t){return _s(t,Cs)},Bs=ml?Object.defineProperties:function(t,e){Cc(t);for(var n,r=jl(e),o=Vs(e),i=o.length,a=0;i>a;)Rc.f(t,n=o[a++],r[n]);return t},Rs=Cl("document","documentElement"),Fs=rc("keys"),qs=function(t){return Fs[t]||(Fs[t]=fc(t))},Ws=qs("IE_PROTO"),$s=function(){},Gs=function(t){return"<script>"+t+"</"+"script>"},Us=function(t){t.write(Gs("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ks=function(){try{Ns=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ks="undefined"!=typeof document?document.domain&&Ns?Us(Ns):((e=Sc("iframe")).style.display="none",Rs.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Gs("document.F=Object")),t.close(),t.F):Us(Ns);for(var n=Cs.length;n--;)delete Ks.prototype[Cs[n]];return Ks()};js[Ws]=!0;var Js,Xs,Ys,Qs=Object.create||function(t,e){var n;return null!==t?($s.prototype=Cc(t),n=new $s,$s.prototype=null,n[Ws]=t):n=Ks(),void 0===e?n:Bs(n,e)},Zs=Cs.concat("length","prototype"),tf={f:Object.getOwnPropertyNames||function(t){return _s(t,Zs)}},ef=il.Array,nf=Math.max,rf=tf.f,of="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],af=function(t){try{return rf(t)}catch(t){return function(t,e,n){for(var r=Yc(t),o=Ps(e,r),i=Ps(void 0===n?r:n,r),a=ef(nf(i-o,0)),u=0;o<i;o++,u++)Qc(a,u,t[o]);return a.length=u,a}(of)}},uf={f:function(t){return of&&"Window"==Al(t)?af(t):rf(jl(t))}},lf={f:Object.getOwnPropertySymbols},cf=vl([].slice),sf=function(t,e,n,r){r&&r.enumerable?t[e]=n:Fc(t,e,n)},ff={f:gc},df=Rc.f,pf=function(t){var e=zl.Symbol||(zl.Symbol={});uc(e,t)||df(e,t,{value:ff.f(t)})},hf=ts?{}.toString:function(){return"[object "+os(this)+"]"},vf=Rc.f,gf=gc("toStringTag"),yf=function(t,e,n,r){if(t){var o=n?t:t.prototype;uc(o,gf)||vf(o,gf,{configurable:!0,value:e}),r&&!ts&&Fc(o,"toString",hf)}},mf=il.WeakMap,bf=gl(mf)&&/native code/.test(as(mf)),wf="Object already initialized",Ef=il.TypeError,xf=il.WeakMap;if(bf||nc.state){var Sf=nc.state||(nc.state=new xf),kf=vl(Sf.get),Tf=vl(Sf.has),Nf=vl(Sf.set);Js=function(t,e){if(Tf(Sf,t))throw new Ef(wf);return e.facade=t,Nf(Sf,t,e),e},Xs=function(t){return kf(Sf,t)||{}},Ys=function(t){return Tf(Sf,t)}}else{var Df=qs("state");js[Df]=!0,Js=function(t,e){if(uc(t,Df))throw new Ef(wf);return e.facade=t,Fc(t,Df,e),e},Xs=function(t){return uc(t,Df)?t[Df]:{}},Ys=function(t){return uc(t,Df)}}var Af={set:Js,get:Xs,has:Ys,enforce:function(t){return Ys(t)?Xs(t):Js(t,{})},getterFor:function(t){return function(e){var n;if(!Hl(e)||(n=Xs(e)).type!==t)throw Ef("Incompatible receiver, "+t+" required");return n}}},Mf=vl([].push),Lf=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(l,c,s,f){for(var d,p,h=ic(l),v=Pl(h),g=Hc(c,s),y=Yc(v),m=0,b=f||ys,w=e?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:Mf(w,d)}else switch(t){case 4:return!1;case 7:Mf(w,d)}return i?-1:r||o?o:w}},Pf={forEach:Lf(0),map:Lf(1),filter:Lf(2),some:Lf(3),every:Lf(4),find:Lf(5),findIndex:Lf(6),filterReject:Lf(7)}.forEach,If=qs("hidden"),Of="Symbol",jf=gc("toPrimitive"),Hf=Af.set,zf=Af.getterFor(Of),_f=Object.prototype,Cf=il.Symbol,Vf=Cf&&Cf.prototype,Bf=il.TypeError,Rf=il.QObject,Ff=Cl("JSON","stringify"),qf=Nc.f,Wf=Rc.f,$f=uf.f,Gf=kl.f,Uf=vl([].push),Kf=rc("symbols"),Jf=rc("op-symbols"),Xf=rc("string-to-symbol-registry"),Yf=rc("symbol-to-string-registry"),Qf=rc("wks"),Zf=!Rf||!Rf.prototype||!Rf.prototype.findChild,td=ml&&yl((function(){return 7!=Qs(Wf({},"a",{get:function(){return Wf(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=qf(_f,e);r&&delete _f[e],Wf(t,e,n),r&&t!==_f&&Wf(_f,e,r)}:Wf,ed=function(t,e){var n=Kf[t]=Qs(Vf);return Hf(n,{type:Of,tag:t,description:e}),ml||(n.description=e),n},nd=function(t,e,n){t===_f&&nd(Jf,e,n),Cc(t);var r=wc(e);return Cc(n),uc(Kf,r)?(n.enumerable?(uc(t,If)&&t[If][r]&&(t[If][r]=!1),n=Qs(n,{enumerable:Tl(0,!1)})):(uc(t,If)||Wf(t,If,Tl(1,{})),t[If][r]=!0),td(t,r,n)):Wf(t,r,n)},rd=function(t,e){Cc(t);var n=jl(e),r=Vs(n).concat(ud(n));return Pf(r,(function(e){ml&&!wl(od,n,e)||nd(t,e,n[e])})),t},od=function(t){var e=wc(t),n=wl(Gf,this,e);return!(this===_f&&uc(Kf,e)&&!uc(Jf,e))&&(!(n||!uc(this,e)||!uc(Kf,e)||uc(this,If)&&this[If][e])||n)},id=function(t,e){var n=jl(t),r=wc(e);if(n!==_f||!uc(Kf,r)||uc(Jf,r)){var o=qf(n,r);return!o||!uc(Kf,r)||uc(n,If)&&n[If][r]||(o.enumerable=!0),o}},ad=function(t){var e=$f(jl(t)),n=[];return Pf(e,(function(t){uc(Kf,t)||uc(js,t)||Uf(n,t)})),n},ud=function(t){var e=t===_f,n=$f(e?Jf:jl(t)),r=[];return Pf(n,(function(t){!uc(Kf,t)||e&&!uc(_f,t)||Uf(r,Kf[t])})),r};if(Gl||(Cf=function(){if(Vl(Vf,this))throw Bf("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?As(arguments[0]):void 0,e=fc(t),n=function(t){this===_f&&wl(n,Jf,t),uc(this,If)&&uc(this[If],e)&&(this[If][e]=!1),td(this,e,Tl(1,t))};return ml&&Zf&&td(_f,e,{configurable:!0,set:n}),ed(e,t)},Vf=Cf.prototype,sf(Vf,"toString",(function(){return zf(this).tag})),sf(Cf,"withoutSetter",(function(t){return ed(fc(t),t)})),kl.f=od,Rc.f=nd,Nc.f=id,tf.f=uf.f=ad,lf.f=ud,ff.f=function(t){return ed(gc(t),t)},ml&&Wf(Vf,"description",{configurable:!0,get:function(){return zf(this).description}})),$c({global:!0,wrap:!0,forced:!Gl,sham:!Gl},{Symbol:Cf}),Pf(Vs(Qf),(function(t){pf(t)})),$c({target:Of,stat:!0,forced:!Gl},{for:function(t){var e=As(t);if(uc(Xf,e))return Xf[e];var n=Cf(e);return Xf[e]=n,Yf[n]=e,n},keyFor:function(t){if(!Jl(t))throw Bf(t+" is not a symbol");if(uc(Yf,t))return Yf[t]},useSetter:function(){Zf=!0},useSimple:function(){Zf=!1}}),$c({target:"Object",stat:!0,forced:!Gl,sham:!ml},{create:function(t,e){return void 0===e?Qs(t):rd(Qs(t),e)},defineProperty:nd,defineProperties:rd,getOwnPropertyDescriptor:id}),$c({target:"Object",stat:!0,forced:!Gl},{getOwnPropertyNames:ad,getOwnPropertySymbols:ud}),$c({target:"Object",stat:!0,forced:yl((function(){lf.f(1)}))},{getOwnPropertySymbols:function(t){return lf.f(ic(t))}}),Ff){var ld=!Gl||yl((function(){var t=Cf();return"[null]"!=Ff([t])||"{}"!=Ff({a:t})||"{}"!=Ff(Object(t))}));$c({target:"JSON",stat:!0,forced:ld},{stringify:function(t,e,n){var r=cf(arguments),o=e;if((Hl(e)||void 0!==t)&&!Jl(t))return Gc(e)||(e=function(t,e){if(gl(o)&&(e=wl(o,this,t,e)),!Jl(e))return e}),r[1]=e,sl(Ff,null,r)}})}if(!Vf[jf]){var cd=Vf.valueOf;sf(Vf,jf,(function(t){return wl(cd,this)}))}yf(Cf,Of),js[If]=!0,pf("asyncIterator"),pf("hasInstance"),pf("isConcatSpreadable"),pf("iterator"),pf("match"),pf("matchAll"),pf("replace"),pf("search"),pf("species"),pf("split"),pf("toPrimitive"),pf("toStringTag"),pf("unscopables"),yf(il.JSON,"JSON",!0);var sd,fd,dd,pd=zl.Symbol,hd={},vd=Function.prototype,gd=ml&&Object.getOwnPropertyDescriptor,yd=uc(vd,"name"),md={EXISTS:yd,PROPER:yd&&"something"===function(){}.name,CONFIGURABLE:yd&&(!ml||ml&&gd(vd,"name").configurable)},bd=!yl((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),wd=qs("IE_PROTO"),Ed=il.Object,xd=Ed.prototype,Sd=bd?Ed.getPrototypeOf:function(t){var e=ic(t);if(uc(e,wd))return e[wd];var n=e.constructor;return gl(n)&&e instanceof n?n.prototype:e instanceof Ed?xd:null},kd=gc("iterator"),Td=!1;[].keys&&("next"in(dd=[].keys())?(fd=Sd(Sd(dd)))!==Object.prototype&&(sd=fd):Td=!0);var Nd=null==sd||yl((function(){var t={};return sd[kd].call(t)!==t}));sd=Nd?{}:Qs(sd),gl(sd[kd])||sf(sd,kd,(function(){return this}));var Dd={IteratorPrototype:sd,BUGGY_SAFARI_ITERATORS:Td},Ad=Dd.IteratorPrototype,Md=function(){return this};il.String,il.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=vl(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}}();var Ld=md.PROPER,Pd=Dd.BUGGY_SAFARI_ITERATORS,Id=gc("iterator"),Od="keys",jd="values",Hd="entries",zd=function(){return this},_d=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Qs(Ad,{next:Tl(+!r,n)}),yf(t,o,!1,!0),hd[o]=Md}(n,e,r);var u,l,c,s=function(t){if(t===o&&v)return v;if(!Pd&&t in p)return p[t];switch(t){case Od:case jd:case Hd:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,h=p[Id]||p["@@iterator"]||o&&p[o],v=!Pd&&h||s(o),g="Array"==e&&p.entries||h;if(g&&(u=Sd(g.call(new t)))!==Object.prototype&&u.next&&(yf(u,f,!0,!0),hd[f]=zd),Ld&&o==jd&&h&&h.name!==jd&&(d=!0,v=function(){return wl(h,this)}),o)if(l={values:s(jd),keys:i?v:s(Od),entries:s(Hd)},a)for(c in l)(Pd||d||!(c in p))&&sf(p,c,l[c]);else $c({target:e,proto:!0,forced:Pd||d},l);return a&&p[Id]!==v&&sf(p,Id,v,{name:o}),hd[e]=v,l},Cd="Array Iterator",Vd=Af.set,Bd=Af.getterFor(Cd);_d(Array,"Array",(function(t,e){Vd(this,{type:Cd,target:jl(t),index:0,kind:e})}),(function(){var t=Bd(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),hd.Arguments=hd.Array;var Rd=gc("toStringTag");for(var Fd in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var qd=il[Fd],Wd=qd&&qd.prototype;Wd&&os(Wd)!==Rd&&Fc(Wd,Rd,Fd),hd[Fd]=hd.Array}var $d=pd;pf("asyncDispose"),pf("dispose"),pf("matcher"),pf("metadata"),pf("observable"),pf("patternMatch"),pf("replaceAll");var Gd=$d,Ud=vl("".charAt),Kd=vl("".charCodeAt),Jd=vl("".slice),Xd=function(t){return function(e,n){var r,o,i=As(Ol(e)),a=Jc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Kd(i,a))<55296||r>56319||a+1===u||(o=Kd(i,a+1))<56320||o>57343?t?Ud(i,a):r:t?Jd(i,a,a+2):o-56320+(r-55296<<10)+65536}},Yd={codeAt:Xd(!1),charAt:Xd(!0)}.charAt,Qd="String Iterator",Zd=Af.set,tp=Af.getterFor(Qd);_d(String,"String",(function(t){Zd(this,{type:Qd,string:As(t),index:0})}),(function(){var t,e=tp(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Yd(n,r),e.index+=t.length,{value:t,done:!1})}));var ep,np,rp,op=ff.f("iterator"),ip=h((function(t){function e(n){return"function"==typeof Gd&&"symbol"==typeof op?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Gd&&t.constructor===Gd&&t!==Gd.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),ap=p(ip),up={},lp=!b((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cp=Qt("IE_PROTO"),sp=m.Object,fp=sp.prototype,dp=lp?sp.getPrototypeOf:function(t){var e=vt(t);if(yt(e,cp))return e[cp];var n=e.constructor;return F(n)&&e instanceof n?n.prototype:e instanceof sp?fp:null},pp=Nt("iterator"),hp=!1;[].keys&&("next"in(rp=[].keys())?(np=dp(dp(rp)))!==Object.prototype&&(ep=np):hp=!0);var vp=null==ep||b((function(){var t={};return ep[pp].call(t)!==t}));vp&&(ep={}),F(ep[pp])||pe(ep,pp,(function(){return this}));var gp={IteratorPrototype:ep,BUGGY_SAFARI_ITERATORS:hp},yp=Ft.f,mp=Nt("toStringTag"),bp=function(t,e,n){t&&!yt(t=n?t:t.prototype,mp)&&yp(t,mp,{configurable:!0,value:e})},wp=gp.IteratorPrototype,Ep=function(){return this},xp=m.String,Sp=m.TypeError,kp=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=I(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Vt(n),function(t){if("object"==typeof t||F(t))return t;throw Sp("Can't set "+xp(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Tp=de.PROPER,Np=de.CONFIGURABLE,Dp=gp.IteratorPrototype,Ap=gp.BUGGY_SAFARI_ITERATORS,Mp=Nt("iterator"),Lp="keys",Pp="values",Ip="entries",Op=function(){return this},jp=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=_n(wp,{next:D(+!r,n)}),bp(t,o,!1),up[o]=Ep}(n,e,r);var u,l,c,s=function(t){if(t===o&&v)return v;if(!Ap&&t in p)return p[t];switch(t){case Lp:case Pp:case Ip:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,h=p[Mp]||p["@@iterator"]||o&&p[o],v=!Ap&&h||s(o),g="Array"==e&&p.entries||h;if(g&&(u=dp(g.call(new t)))!==Object.prototype&&u.next&&(dp(u)!==Dp&&(kp?kp(u,Dp):F(u[Mp])||pe(u,Mp,Op)),bp(u,f,!0)),Tp&&o==Pp&&h&&h.name!==Pp&&(Np?qt(p,"name",Pp):(d=!0,v=function(){return x(h,this)})),o)if(l={values:s(Pp),keys:i?v:s(Lp),entries:s(Ip)},a)for(c in l)(Ap||d||!(c in p))&&pe(p,c,l[c]);else qe({target:e,proto:!0,forced:Ap||d},l);return p[Mp]!==v&&pe(p,Mp,v,{name:o}),up[e]=v,l},Hp="Array Iterator",zp=le.set,_p=le.getterFor(Hp),Cp=jp(Array,"Array",(function(t,e){zp(this,{type:Hp,target:R(t),index:0,kind:e})}),(function(){var t=_p(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");up.Arguments=up.Array,Hr("keys"),Hr("values"),Hr("entries");var Vp=Le.f,Bp="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rp={f:function(t){return Bp&&"Window"==H(t)?function(t){try{return Vp(t)}catch(t){return Ur(Bp)}}(t):Vp(R(t))}},Fp=b((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),qp=Object.isExtensible,Wp=b((function(){qp(1)}))||Fp?function(t){return!!q(t)&&((!Fp||"ArrayBuffer"!=H(t))&&(!qp||qp(t)))}:qp,$p=!b((function(){return Object.isExtensible(Object.preventExtensions({}))})),Gp=h((function(t){var e=Ft.f,n=!1,r=Et("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var t=Le.f,e=I([].splice),o={};o[r]=1,t(o).length&&(Le.f=function(n){for(var o=t(n),i=0,a=o.length;i<a;i++)if(o[i]===r){e(o,i,1);break}return o},qe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Rp.f}))},fastKey:function(t,e){if(!q(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!yt(t,r)){if(!Wp(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!yt(t,r)){if(!Wp(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return $p&&n&&Wp(t)&&!yt(t,r)&&i(t),t}};Zt[r]=!0})),Up=Nt("iterator"),Kp=Array.prototype,Jp=Nt("iterator"),Xp=function(t){if(null!=t)return ut(t,Jp)||ut(t,"@@iterator")||up[Qe(t)]},Yp=m.TypeError,Qp=function(t,e,n){var r,o;Vt(t);try{if(!(r=ut(t,"return"))){if("throw"===e)throw n;return n}r=x(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Vt(r),n},Zp=m.TypeError,th=function(t,e){this.stopped=t,this.result=e},eh=th.prototype,nh=function(t,e,n){var r,o,i,a,u,l,c,s,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=$e(e,f),g=function(t){return r&&Qp(r,"normal",t),new th(!0,t)},y=function(t){return d?(Vt(t),h?v(t[0],t[1],g):v(t[0],t[1])):h?v(t,g):v(t)};if(p)r=t;else{if(!(o=Xp(t)))throw Zp(ot(t)+" is not iterable");if(void 0!==(s=o)&&(up.Array===s||Kp[Up]===s)){for(i=0,a=xe(t);a>i;i++)if((u=y(t[i]))&&G(eh,u))return u;return new th(!1)}r=function(t,e){var n=arguments.length<2?Xp(t):e;if(at(n))return Vt(x(n,t));throw Yp(ot(t)+" is not iterable")}(t,o)}for(l=r.next;!(c=x(l,r)).done;){try{u=y(c.value)}catch(t){Qp(r,"throw",t)}if("object"==typeof u&&u&&G(eh,u))return u}return new th(!1)},rh=m.TypeError,oh=function(t,e){if(G(e,t))return t;throw rh("Incorrect invocation")},ih=Nt("iterator"),ah=!1;try{var uh=0,lh={next:function(){return{done:!!uh++}},return:function(){ah=!0}};lh[ih]=function(){return this},Array.from(lh,(function(){throw 2}))}catch(t){}var ch=function(t,e,n){for(var r in e)pe(t,r,e[r],n);return t},sh=Nt("species"),fh=Ft.f,dh=Gp.fastKey,ph=le.set,hh=le.getterFor,vh={getConstructor:function(t,e,n,r){var o=t((function(t,o){oh(t,i),ph(t,{type:e,index:_n(null),first:void 0,last:void 0,size:0}),w||(t.size=0),null!=o&&nh(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,a=hh(e),u=function(t,e,n){var r,o,i=a(t),u=l(t,e);return u?u.value=n:(i.last=u={index:o=dh(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),w?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},l=function(t,e){var n,r=a(t),o=dh(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return ch(i,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,w?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=l(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),w?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=$e(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),ch(i,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),w&&fh(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=hh(e),i=hh(r);jp(t,e,(function(t,e){ph(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(t){var e=$(t),n=Ft.f;w&&e&&!e[sh]&&n(e,sh,{configurable:!0,get:function(){return this}})}(e)}};!function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",a=m[t],u=a&&a.prototype,l=a,c={},s=function(t){var e=I(u[t]);pe(u,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!q(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!q(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!q(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(Re(t,!F(a)||!(o||u.forEach&&!b((function(){(new a).entries().next()})))))l=n.getConstructor(e,t,r,i),Gp.enable();else if(Re(t,!0)){var f=new l,d=f[i](o?{}:-0,1)!=f,p=b((function(){f.has(1)})),h=function(t,e){if(!e&&!ah)return!1;var n=!1;try{var r={};r[ih]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){new a(t)})),v=!o&&b((function(){for(var t=new a,e=5;e--;)t[i](e,e);return!t.has(-0)}));h||((l=e((function(t,e){oh(t,u);var n=function(t,e,n){var r,o;return kp&&F(r=e.constructor)&&r!==n&&q(o=r.prototype)&&o!==n.prototype&&kp(t,o),t}(new a,t,l);return null!=e&&nh(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=l),(p||v)&&(s("delete"),s("has"),r&&s("get")),(v||d)&&s(i),o&&u.clear&&delete u.clear}c[t]=l,qe({global:!0,forced:l!=a},c),bp(l,t),o||n.setStrong(l,t,r)}("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),vh);var gh=dr.charAt,yh="String Iterator",mh=le.set,bh=le.getterFor(yh);jp(String,"String",(function(t){mh(this,{type:yh,string:En(t),index:0})}),(function(){var t,e=bh(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=gh(n,r),e.index+=t.length,{value:t,done:!1})}));var wh=Nt("iterator"),Eh=Nt("toStringTag"),xh=Cp.values,Sh=function(t,e){if(t){if(t[wh]!==xh)try{qt(t,wh,xh)}catch(e){t[wh]=xh}if(t[Eh]||qt(t,Eh,e),Oo[e])for(var n in Cp)if(t[n]!==Cp[n])try{qt(t,n,Cp[n])}catch(e){t[n]=Cp[n]}}};for(var kh in Oo)Sh(m[kh]&&m[kh].prototype,kh);Sh(zo,"DOMTokenList");var Th=pn.map,Nh=vn("map");qe({target:"Array",proto:!0,forced:!Nh},{map:function(t){return Th(this,t,arguments.length>1?arguments[1]:void 0)}});var Dh=I("".indexOf);qe({target:"String",proto:!0,forced:!Bi("includes")},{includes:function(t){return!!~Dh(En(B(this)),En(Ci(t)),arguments.length>1?arguments[1]:void 0)}});var Ah=Math.floor,Mh=function(t,e){var n=t.length,r=Ah(n/2);return n<8?Lh(t,e):Ph(t,Mh(Ur(t,0,r),e),Mh(Ur(t,r),e),e)},Lh=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},Ph=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?r(e[a],n[u])<=0?e[a++]:n[u++]:a<o?e[a++]:n[u++];return t},Ih=Mh,Oh=U.match(/firefox\/(\d+)/i),jh=!!Oh&&+Oh[1],Hh=/MSIE|Trident/.test(U),zh=U.match(/AppleWebKit\/(\d+)\./),_h=!!zh&&+zh[1],Ch=[],Vh=I(Ch.sort),Bh=I(Ch.push),Rh=b((function(){Ch.sort(void 0)})),Fh=b((function(){Ch.sort(null)})),qh=_o("sort"),Wh=!b((function(){if(Q)return Q<70;if(!(jh&&jh>3)){if(Hh)return!0;if(_h)return _h<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)Ch.push({k:e+r,v:n})}for(Ch.sort((function(t,e){return e.v-t.v})),r=0;r<Ch.length;r++)e=Ch[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));qe({target:"Array",proto:!0,forced:Rh||!Fh||!qh||!Wh},{sort:function(t){void 0!==t&&at(t);var e=vt(this);if(Wh)return void 0===t?Vh(e):Vh(e,t);var n,r,o=[],i=xe(e);for(r=0;r<i;r++)r in e&&Bh(o,e[r]);for(Ih(o,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:En(e)>En(n)?1:-1}}(t)),n=o.length,r=0;r<n;)e[r]=o[r++];for(;r<i;)delete e[r++];return e}});var $h=new Set(["paragraph","blockquote","header1","header2","header3","header4","header5","header6"]);function Gh(t){return $h.has(t)}function Uh(t){if(null==t||"object"!==ap(t))return{text:""};if("string"==typeof t.text){var e=bo({},t);return delete e.children,e}var n=bo({},t);return Array.isArray(t.children)&&(n.children=t.children.map(Uh)),n}function Kh(t){var e,n=Array.isArray(null===(e=t)||void 0===e?void 0:e.children)?t.children:[];return n.length?n.map(Uh):[{text:""}]}function Jh(t){for(var e=[],n=0;n<t.length;n++)n>0&&e.push({text:"\n"}),e.push.apply(e,ko([],So(Kh(t[n][0]))));return e.length?e:[{text:""}]}function Xh(t){var n,o,i,a,u,l=function(t){var n,o,i=null==t?void 0:t.selection;if(!i)return[];var a=[],u=new Set;try{try{for(var l=xo(r.Editor.nodes(t,{at:i,match:function(n){return null!=n&&"object"===ap(n)&&("function"!=typeof t.isVoid||!t.isVoid(n))&&Gh(e.DomEditor.getNodeType(n))},mode:"highest"})),c=l.next();!c.done;c=l.next()){var s=So(c.value,2),f=s[0],d=s[1];if(Array.isArray(d)&&1===d.length){var p=String(d[0]);u.has(p)||(u.add(p),a.push([f,ko([],So(d))]))}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}catch(t){return[]}return a.sort((function(t,e){return t[1][0]-e[1][0]})),a}(t).filter((function(t){var n=So(t,1)[0];return"pre"!==e.DomEditor.getNodeType(n)}));if(l.length>0)return l;var c=null===(i=t)||void 0===i?void 0:i.__mdgchTrustedBlockPaths;if(Array.isArray(c)&&c.length){var s=[];try{for(var f=xo(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(Array.isArray(p)&&p.length)(v=e.getEditorNodeAtPath(t,p))&&"pre"!==v.type&&Gh(e.DomEditor.getNodeType(v))&&s.push([v,ko([],So(p))])}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}if(s.length)return s}var h=null==t?void 0:t.selection;if(null===(u=null===(a=null==h?void 0:h.anchor)||void 0===a?void 0:a.path)||void 0===u?void 0:u.length){var v;p=[h.anchor.path[0]];if((v=e.getEditorNodeAtPath(t,p))&&"pre"!==v.type&&Gh(e.DomEditor.getNodeType(v)))return[[v,p]]}return[]}function Yh(t){if(t&&!t.isDestroyed){var n=Xh(t);if(n.length){var o=n.every((function(t){var n=So(t,1)[0];return"blockquote"===e.DomEditor.getNodeType(n)}));if(o)try{if(1===n.length){var i=So(n[0],2),a=i[0],u=i[1],l=function(t){var e,n,r=[[]],o=function(t){"string"==typeof t.text&&!t.type&&t.text.includes("\n")?t.text.split("\n").forEach((function(e,n){n>0&&r.push([]),r[r.length-1].push(bo(bo({},t),{text:e}))})):r[r.length-1].push(t)};try{for(var i=xo(t),a=i.next();!a.done;a=i.next())o(a.value)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r.map((function(t){return t.length?t:[{text:""}]}))}(Kh(a));if(l.length>1)return void function(t,n,o,i){var a=n[0];e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){r.Transforms.removeNodes(t,{at:n});for(var e=0;e<i.length;e++)r.Transforms.insertNodes(t,{type:"paragraph",children:i[e]},{at:[a+e]});try{t.select(r.Editor.end(t,[a+i.length-1]))}catch(t){}}))}))}(t,u,0,l)}r.Transforms.setNodes(t,{type:"paragraph"},{mode:"highest"})}catch(t){}else if(1!==n.length){var c=n[0][1][0],s={type:"blockquote",children:Jh(n)};try{e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){for(var o=n.length-1;o>=0;o--){var i=[n[o][1][0]];e.getEditorNodeAtPath(t,i)&&r.Transforms.removeNodes(t,{at:i})}var a=[Math.min(c,t.children.length)];r.Transforms.insertNodes(t,s,{at:a});try{t.select(r.Editor.end(t,a))}catch(t){}t.__mdgchTrustedBlockPath=ko([],So(a))}))}))}catch(t){console.warn("[wangeditor] toggleBlockquoteMerged merge failed",t)}}else try{r.Transforms.setNodes(t,{type:"blockquote"},{mode:"highest"})}catch(t){}}else try{var f=e.DomEditor.getSelectedNodeByType(t,"blockquote");r.Transforms.setNodes(t,{type:f?"paragraph":"blockquote"},{mode:"highest"})}catch(t){}}}var Qh=function(){function t(){this.title=e.t("blockQuote.title"),this.iconSvg=ri,this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(t){return null!=e.DomEditor.getSelectedNodeByType(t,"blockquote")},t.prototype.isDisabled=function(t){if(null==t.selection)return!0;try{var n=e.DomEditor.getSelectedElems(t);return!!n.some((function(e){return t.isVoid(e)}))||!n.some((function(t){return Gh(e.DomEditor.getNodeType(t))}))}catch(t){return!0}},t.prototype.exec=function(t){this.isDisabled(t)||Yh(t)},t}();var Zh={renderElems:[Qu],elemsToHtml:[Zu],parseElemsHtml:[nl],menus:[{key:"blockquote",factory:function(){return new rl}},{key:"blockquoteMerged",factory:function(){return new Qh}}],editorPlugin:function(t){var n=t.insertBreak,o=t.insertText,i=t;return i.insertBreak=function(){var a=i.selection;if(null==a)return n();var u=So(r.Editor.nodes(t,{match:function(t){return e.DomEditor.checkNodeType(t,"blockquote")},universal:!0}),1)[0];if(!u)return n();var l=u[0],c=e.DomEditor.findPath(t,l),s=r.Editor.end(t,c);if(r.Point.equals(s,a.focus)){var f=r.Node.string(l);if(f&&"\n"===f.slice(-1)){t.deleteBackward("character");return void r.Transforms.insertNodes(i,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}}o("\n")},i}},tv=function(){function t(){this.title=e.t("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(t,e){},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(t){if(null==this.$content){var e=l.default('<ul class="w-e-panel-content-emotion"></ul>');e.on("click","li",(function(e){var n=e.target;if(null!=n){e.preventDefault();var r=l.default(n).text();t.insertText(r)}})),this.$content=e}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=t.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(t){var e=l.default("<li>"+t+"</li>");n.append(e)})),n[0]},t}();var ev={menus:[{key:"emotion",factory:function(){return new tv},config:{emotions:"๐Ÿ˜€ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜ ๐Ÿ˜† ๐Ÿ˜… ๐Ÿ˜‚ ๐Ÿคฃ ๐Ÿ˜Š ๐Ÿ˜‡ ๐Ÿ™‚ ๐Ÿ™ƒ ๐Ÿ˜‰ ๐Ÿ˜Œ ๐Ÿ˜ ๐Ÿ˜˜ ๐Ÿ˜— ๐Ÿ˜™ ๐Ÿ˜š ๐Ÿ˜‹ ๐Ÿ˜› ๐Ÿ˜ ๐Ÿ˜œ ๐Ÿค“ ๐Ÿ˜Ž ๐Ÿ˜ ๐Ÿ˜’ ๐Ÿ˜ž ๐Ÿ˜” ๐Ÿ˜Ÿ ๐Ÿ˜• ๐Ÿ™ ๐Ÿ˜ฃ ๐Ÿ˜– ๐Ÿ˜ซ ๐Ÿ˜ฉ ๐Ÿ˜ข ๐Ÿ˜ญ ๐Ÿ˜ค ๐Ÿ˜  ๐Ÿ˜ก ๐Ÿ˜ณ ๐Ÿ˜ฑ ๐Ÿ˜จ ๐Ÿค— ๐Ÿค” ๐Ÿ˜ถ ๐Ÿ˜‘ ๐Ÿ˜ฌ ๐Ÿ™„ ๐Ÿ˜ฏ ๐Ÿ˜ด ๐Ÿ˜ท ๐Ÿค‘ ๐Ÿ˜ˆ ๐Ÿคก ๐Ÿ’ฉ ๐Ÿ‘ป ๐Ÿ’€ ๐Ÿ‘€ ๐Ÿ‘ฃ ๐Ÿ‘ ๐Ÿ™Œ ๐Ÿ‘ ๐Ÿค ๐Ÿ‘ ๐Ÿ‘Ž ๐Ÿ‘Š โœŠ ๐Ÿค› ๐Ÿคœ ๐Ÿคž โœŒ๏ธ ๐Ÿค˜ ๐Ÿ‘Œ ๐Ÿ‘ˆ ๐Ÿ‘‰ ๐Ÿ‘† ๐Ÿ‘‡ โ˜๏ธ โœ‹ ๐Ÿคš ๐Ÿ– ๐Ÿ–– ๐Ÿ‘‹ ๐Ÿค™ ๐Ÿ’ช ๐Ÿ–• โœ๏ธ ๐Ÿ™".split(" ")}}]};var nv={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"};var rv={selector:"font",preParseHtml:function(t){var e=l.default(t);if("font"!==vo(e))return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",nv[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}};var ov=de.EXISTS,iv=Ft.f,av=Function.prototype,uv=I(av.toString),lv=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cv=I(lv.exec);w&&!ov&&iv(av,"name",{configurable:!0,get:function(){try{return cv(lv,uv(this))[1]}catch(t){return""}}});var sv=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.mark,n=r.Editor.marks(t);return n&&n[e]?n[e]:""},t.prototype.isDisabled=function(t){return null==t.selection||(this.mark,!!So(r.Editor.nodes(t,{match:function(n){return"pre"===e.DomEditor.getNodeType(n)||!!r.Editor.isVoid(t,n)},universal:!0}),1)[0])},t.prototype.exec=function(t,e){var n=this.mark;e?t.addMark(n,e):t.removeMark(n)},t}(),fv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontSize.title"),n.iconSvg=oi,n.mark="fontSize",n}return mo(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontSizeList,o=void 0===r?[]:r;n.push({text:e.t("fontSize.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t});else if("object"===ap(t)){var e=t.name,r=t.value;n.push({text:e,value:r})}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},n}(sv),dv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("fontFamily.title"),n.iconSvg=ii,n.mark="fontFamily",n.selectPanelWidth=150,n}return mo(n,t),n.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig(this.mark).fontFamilyList,o=void 0===r?[]:r;n.push({text:e.t("fontFamily.default"),value:""}),o.forEach((function(t){if("string"==typeof t)n.push({text:t,value:t,styleForRenderMenuList:{"font-family":t}});else if("object"===ap(t)){var e=t.name,r=t.value;n.push({text:e,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},n}(sv);var pv={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&ga(i,{fontSize:r}),o&&ga(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!r.Text.isText(t))return e;var n,o=t,i=o.fontSize,a=o.fontFamily;return i||a?((po(e)||"span"!==vo(n=l.default(e)))&&(n=l.default("<span>"+e+"</span>")),i&&n.css("font-size",i),a&&n.css("font-family",a),ho(n)):e},preParseHtml:[rv],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Text.isText(e))return e;var i=e,a=n.getMenuConfig("fontSize").fontSizeList,u=void 0===a?[]:a,c=go(o,"font-size"),s=u.find((function(t){return t.value&&t.value===c}))||u.includes(c);c&&s&&(i.fontSize=c);var f=n.getMenuConfig("fontFamily").fontFamilyList,d=void 0===f?[]:f,p=go(o,"font-family").replace(/"/g,""),h=d.find((function(t){return t.value&&t.value===p}))||d.includes(p);return p&&h&&(i.fontFamily=p),i},menus:[{key:"fontSize",factory:function(){return new fv},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new dv},config:{fontFamilyList:["้ป‘ไฝ“",{name:"ไปฟๅฎ‹",value:"ไปฟๅฎ‹"},"ๆฅทไฝ“","ๆ ‡ๆฅทไฝ“","ๅŽๆ–‡ไปฟๅฎ‹","ๅŽๆ–‡ๆฅทไฝ“",{name:"ๅฎ‹ไฝ“",value:"ๅฎ‹ไฝ“"},"ๅพฎ่ฝฏ้›…้ป‘","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]};var hv={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=l.default(t),n=go(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}};var vv=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){var e=So(r.Editor.nodes(t,{match:function(t){return!!t.indent},universal:!0}),1),n=e[0];return null==n?"":So(n,1)[0].indent||""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t}(),gv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.decrease"),n.iconSvg=ai,n}return mo(n,t),n.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!e.indent},n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{indent:null},{match:function(t){return r.Element.isElement(t)}})},n}(vv),yv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("indent.increase"),n.iconSvg=ui,n.DEFAULT_INDENT_VALUE="2em",n}return mo(n,t),n.prototype.isDisabled=function(t){var e=this.getMatchNode(t);return null==e||!!e.indent},n.prototype.getIndentValue=function(t){var e=this.getMatchNode(t);if(!e)return this.DEFAULT_INDENT_VALUE;var n=e.children.filter(r.Text.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var o=n.fontSize,i=parseInt(n.fontSize);return""+2*i+o.replace(""+i,"")},n.prototype.exec=function(t,e){var n=this.getIndentValue(t);r.Transforms.setNodes(t,{indent:n},{match:function(t){return r.Element.isElement(t)},mode:"highest"})},n}(vv),mv={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.indent,o=e;return n&&ga(o,{textIndent:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.indent;if(!n)return e;var o=l.default(e);return o.css("text-indent",n),ho(o)},preParseHtml:[hv],parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=go(o,"text-indent"),u=parseInt(a,10);return a&&u>0&&(i.indent=a),i},menus:[{key:"indent",factory:function(){return new yv}},{key:"delIndent",factory:function(){return new gv}}]};var bv=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return"paragraph"===n||("blockquote"===n||!!n.startsWith("header"))},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(e){if(r.Editor.isVoid(t,e)&&r.Editor.isBlock(t,e))return!0;var n=e.type;return!!["pre","code"].includes(n)||void 0}))},t}(),wv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.left"),n.iconSvg=li,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"left"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}(bv),Ev=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.right"),n.iconSvg=ci,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"right"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}(bv),xv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.center"),n.iconSvg=si,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"center"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}(bv),Sv=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.title=e.t("justify.justify"),n.iconSvg=fi,n}return mo(n,t),n.prototype.exec=function(t,e){r.Transforms.setNodes(t,{textAlign:"justify"},{match:function(e){return r.Element.isElement(e)&&!t.isInline(e)}})},n}(bv),kv={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.textAlign,o=e;return n&&ga(o,{textAlign:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.textAlign;if(!n)return e;var o=l.default(e);return o.css("text-align",n),ho(o)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=go(o,"text-align");return a&&(i.textAlign=a),i},menus:[{key:"justifyLeft",factory:function(){return new wv}},{key:"justifyRight",factory:function(){return new Ev}},{key:"justifyCenter",factory:function(){return new xv}},{key:"justifyJustify",factory:function(){return new Sv}}]};var Tv=function(){function t(){this.title=e.t("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=void 0===r?[]:r;n.push({text:e.t("lineHeight.default"),value:""}),o.forEach((function(t){n.push({text:t,value:t})}));var i=this.getValue(t);return n.forEach((function(t){t.value===i?t.selected=!0:delete t.selected})),n},t.prototype.getMatchNode=function(t){var n=So(r.Editor.nodes(t,{match:function(t){var n=e.DomEditor.getNodeType(t);return!!n.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(n)},universal:!0,mode:"highest"}),1)[0];return null==n?null:n[0]},t.prototype.isActive=function(t){return!1},t.prototype.getValue=function(t){var e=this.getMatchNode(t);return null==e?"":r.Element.isElement(e)&&e.lineHeight||""},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getMatchNode(t)},t.prototype.exec=function(t,e){r.Transforms.setNodes(t,{lineHeight:e.toString()},{mode:"highest"})},t}();var Nv={renderStyle:function(t,e){if(!r.Element.isElement(t))return e;var n=t.lineHeight,o=e;return n&&ga(o,{lineHeight:n}),o},styleToHtml:function(t,e){if(!r.Element.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var o=l.default(e);return o.css("line-height",n),ho(o)},parseStyleHtml:function(t,e,n){var o=l.default(t);if(!r.Element.isElement(e))return e;var i=e,a=n.getMenuConfig("lineHeight").lineHeightList,u=void 0===a?[]:a,c=go(o,"line-height");return c&&u.includes(c)&&(i.lineHeight=c),i},menus:[{key:"lineHeight",factory:function(){return new Tv},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Dv=function(){function t(){this.title=e.t("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.redo&&t.redo()},t}(),Av=function(){function t(){this.title=e.t("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){return null==t.selection},t.prototype.exec=function(t,e){"function"==typeof t.undo&&t.undo()},t}(),Mv={menus:[{key:"redo",factory:function(){return new Dv}},{key:"undo",factory:function(){return new Av}}]};var Lv={type:"divider",renderElem:function(t,r,o){var i=e.DomEditor.isNodeSelected(o,t);return n.h("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:i?"true":""},style:{},on:{mousedown:function(t){return t.preventDefault()}}},[n.h("hr")])}};var Pv={type:"divider",elemToHtml:function(t,e){return"<hr/>"}};var Iv={selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}};var Ov=function(){function t(){this.title=e.t("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return null==t.selection||!!e.DomEditor.getSelectedElems(t).some((function(n){if(t.isVoid(n))return!0;var r=e.DomEditor.getNodeType(n);return"table"===r||"pre"===r}))},t.prototype.exec=function(t){this.isDisabled(t)||function(t){var n,o,i,a={type:"divider",children:[{text:""}]},u=t.selection,l=null!=(null===(o=null===(n=null==u?void 0:u.anchor)||void 0===n?void 0:n.path)||void 0===o?void 0:o.length)?[u.anchor.path[0]]:null,c=l?e.getEditorNodeAtPath(t,l):null;if(l&&e.isBlankParagraphNode(c)){r.Editor.withoutNormalizing(t,(function(){r.Transforms.removeNodes(t,{at:l});var n=[Math.min(l[0],t.children.length)];r.Transforms.insertNodes(t,a,{at:n});var o=[n[0]+1];try{e.getEditorNodeAtPath(t,o)?t.select(r.Editor.start(t,o)):t.__mdgchTrustedBlockPath=ko([],So(n))}catch(t){}}));try{"function"==typeof t.normalize&&t.normalize()}catch(t){}try{var s=null===(i=t.__mdgchTrustedBlockPath)||void 0===i?void 0:i[0];if(null!=s){var f=e.getEditorNodeAtPath(t,[s+1]),d=e.getEditorNodeAtPath(t,[s]);"divider"===(null==d?void 0:d.type)&&f&&t.select(r.Editor.start(t,[s+1]))}}catch(t){}}else r.Transforms.insertNodes(t,a,{mode:"highest"})}(t)},t}();function jv(t){var n;try{var r=e.DomEditor.getSelectedNodeByType(t,"divider");if(r)if(null==(u=e.DomEditor.findPath(t,r))?void 0:u.length)return u}catch(t){}var o=null==t?void 0:t.selection;if(!(null===(n=null==o?void 0:o.anchor)||void 0===n?void 0:n.path))return null;for(var i=o.anchor.path,a=i.length;a>=1;a--){var u=i.slice(0,a),l=e.getEditorNodeAtPath(t,u);if("divider"===(null==l?void 0:l.type))return u}return null}var Hv=function(){function t(){this.title="ๅˆ ้™ค",this.iconSvg=ni,this.tag="button"}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!1},t.prototype.isDisabled=function(t){return null==t.selection||null==jv(t)},t.prototype.exec=function(t){var n,r,o;if(!this.isDisabled(t)){try{null===(o=null===(r=null===(n=e.DomEditor.getHoverbar)||void 0===n?void 0:n.call(e.DomEditor,t))||void 0===r?void 0:r.hideAndClean)||void 0===o||o.call(r)}catch(t){}var i=jv(t);if(null==i?void 0:i.length){var a=e.getEditorNodeAtPath(t,i);a&&"divider"===a.type&&e.replaceBlockWithEmptyLine(t,i,a)}}},t}(),zv={renderElems:[Lv],elemsToHtml:[Pv],parseElemsHtml:[Iv],menus:[{key:"divider",factory:function(){return new Ov}},{key:"dividerAtCursor",factory:function(){return new Ov}},{key:"removeDivider",factory:function(){return new Hv}}],editorPlugin:function(t){var n=t.isVoid,o=t.normalizeNode,i=t;return i.isVoid=function(t){return"divider"===t.type||n(t)},i.normalizeNode=function(t){var n=So(t,2),a=n[0],u=n[1];if("divider"!==e.DomEditor.getNodeType(a))return o([a,u]);e.DomEditor.isLastNode(i,a)&&r.Transforms.insertNodes(i,e.DomEditor.genEmptyParagraph(),{at:[u[0]+1]})},i}},_v=new Set(["pre","paragraph","blockquote","header1","header2","header3","header4","header5","header6"]);function Cv(t){var n,r;try{var o=e.DomEditor.getSelectedNodeByType(t,"code");if(o){var i=e.DomEditor.getParentNode(t,o);if(i&&"pre"===e.DomEditor.getNodeType(i))return e.DomEditor.findPath(t,i)}}catch(t){}var a=null==t?void 0:t.selection;if(!(null===(r=null===(n=null==a?void 0:a.anchor)||void 0===n?void 0:n.path)||void 0===r?void 0:r.length))return null;var u=[a.anchor.path[0]],l=e.getEditorNodeAtPath(t,u);return l&&"pre"===l.type?u:null}var Vv=function(){function t(){this.title=e.t("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"code");if(null==n)return null;var r=e.DomEditor.getParentNode(t,n);return null==r||"pre"!==e.DomEditor.getNodeType(r)?null:n},t.prototype.getValue=function(t){var e=this.getSelectCodeElem(t);return null==e?"":e.language||""},t.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},t.prototype.isDisabled=function(t){return!this.isActive(t)&&!function(t){if(null==t.selection)return!1;try{var n=e.DomEditor.getSelectedElems(t);return!n.some((function(e){return t.isVoid(e)}))&&n.some((function(t){return _v.has(e.DomEditor.getNodeType(t))}))}catch(e){return null!=Cv(t)}}(t)},t.prototype.exec=function(t,n){this.isActive(t)?function(t,n){var o=n||Cv(t);if(!(null==o?void 0:o.length))return!1;var i=e.getEditorNodeAtPath(t,o);if(!i||"pre"!==i.type)return!1;var a="";try{a=r.Node.string(r.Node.get(t,ko(ko([],So(o)),[0])))}catch(t){a=r.Node.string(i)}var u=String(a).split("\n").map((function(t){return{type:"paragraph",children:[{text:t}]}}));u.length||u.push({type:"paragraph",children:[{text:""}]});try{e.pinEditorScrollDuring(t,(function(){var e,n;r.Transforms.removeNodes(t,{at:o});var i=Math.min(o[0],t.children.length);try{for(var a=xo(u),l=a.next();!l.done;l=a.next()){var c=l.value;r.Transforms.insertNodes(t,c,{at:[i]}),i+=1}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}try{var s=[Math.min(o[0],t.children.length-1)];t.select({anchor:{path:ko(ko([],So(s)),[0]),offset:0},focus:{path:ko(ko([],So(s)),[0]),offset:0}})}catch(t){}}))}catch(t){return!1}}(t,Cv(t)):this.isDisabled(t)||function(t,n){var o,i;if(void 0===n&&(n=""),!t||t.isDestroyed)return!1;var a=Xh(t);if(!a.length){var u=t.selection;if(null===(i=null===(o=null==u?void 0:u.anchor)||void 0===o?void 0:o.path)||void 0===i?void 0:i.length){var l=[u.anchor.path[0]],c=e.getEditorNodeAtPath(t,l);c&&Gh(e.DomEditor.getNodeType(c))&&(a=[[c,l]])}}if(!a.length)return!1;var s=a.map((function(e){var n=So(e,2),o=n[0],i=n[1];try{return r.Node.string(r.Node.get(t,i))}catch(t){return r.Node.string(o)}})),f=s.join("\n"),d=a[0][1][0],p={type:"pre",children:[{type:"code",language:n||"",children:[{text:f}]}]};try{e.pinEditorScrollDuring(t,(function(){r.Editor.withoutNormalizing(t,(function(){for(var n=a.length-1;n>=0;n--){var o=[a[n][1][0]],i=e.getEditorNodeAtPath(t,o);i&&"pre"!==i.type&&r.Transforms.removeNodes(t,{at:o})}var u=[Math.min(d,t.children.length)];r.Transforms.insertNodes(t,p,{at:u});try{t.select(r.Editor.start(t,ko(ko([],So(u)),[0])))}catch(t){}t.__mdgchTrustedBlockPath=ko([],So(u))}))}))}catch(t){return console.warn("[wangeditor] convertSelectionBlockToCodeBlock failed",t),!1}}(t,null!=n?String(n):"")},t}(),Bv={key:"codeBlock",factory:function(){return new Vv}},Rv={key:"codeBlockAtCursor",factory:function(){return new Vv}};ur("match",(function(t,e,n){return[function(e){var n=B(this),r=null==e?void 0:ut(e,t);return r?x(r,e,n):new RegExp(e)[t](En(n))},function(t){var r=Vt(this),o=En(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Sr(r,o);var a=r.unicode;r.lastIndex=0;for(var u,l=[],c=0;null!==(u=Sr(r,o));){var s=En(u[0]);l[c]=s,""===s&&(r.lastIndex=hr(o,Ee(r.lastIndex),a)),c++}return 0===c?null:l}]}));var Fv=[{text:"Plain Text",value:""},{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}];var qv={el:null,anchorEl:null,onDoc:null,onScroll:null,onKey:null};function Wv(){var t=qv.el,e=qv.onDoc,n=qv.onScroll,r=qv.onKey;e&&document.removeEventListener("mousedown",e,!0),n&&window.removeEventListener("scroll",n,!0),r&&document.removeEventListener("keydown",r,!0),(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t),qv={el:null,anchorEl:null,onDoc:null,onScroll:null,onKey:null}}function $v(t,n,o,i){if(t&&!t.isDestroyed&&!t.isDisabled()){var a=e.resolveElemPath(t,n);if(null==a?void 0:a.length)if("enter"!==o)if("cancel-enter"!==o)if("lang"!==o)if("word-wrap"!==o)if("uncode"!==o){if("remove"===o){u=e.getEditorNodeAtPath(t,a)||n;e.replaceBlockWithEmptyLine(t,a,u)}}else{var u=e.getEditorNodeAtPath(t,a)||n;!function(t,n,o){var i="";try{var a=ko(ko([],So(n)),[0]);i=r.Node.string(r.Node.get(t,a))}catch(t){i=r.Node.string(o)}var u=String(i).split("\n").map((function(t){return{type:"paragraph",children:[{text:t}]}}));u.length||u.push({type:"paragraph",children:[{text:""}]});try{e.pinEditorScrollDuring(t,(function(){var e,o;r.Transforms.removeNodes(t,{at:n});var i=Math.min(n[0],t.children.length);try{for(var a=xo(u),l=a.next();!l.done;l=a.next()){var c=l.value;r.Transforms.insertNodes(t,c,{at:[i]}),i+=1}}catch(t){e={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(e)throw e.error}}try{var s=[Math.min(n[0],t.children.length-1)];t.select({anchor:{path:ko(ko([],So(s)),[0]),offset:0},focus:{path:ko(ko([],So(s)),[0]),offset:0}})}catch(t){}}))}catch(t){return!1}}(t,a,u)}else{var l=ko(ko([],So(a)),[0]),c=e.getEditorNodeAtPath(t,l);if(!c||"code"!==c.type)return;e.pinEditorScrollDuring(t,(function(){r.Transforms.setNodes(t,{wordWrap:!c.wordWrap},{at:l})}))}else{var s=ko(ko([],So(a)),[0]),f=e.getEditorNodeAtPath(t,s);if(!f||!r.Element.isElement(f)||"code"!==f.type)return;e.pinEditorScrollDuring(t,(function(){r.Transforms.setNodes(t,{language:null!=i?String(i):""},{at:s})}))}else e.removeEmptyLineAboveTopLevelBlock(t,a);else e.insertEmptyLineAboveAtPath(t,a)}}function Gv(t,n){var r,o,i=!1,a="",u=!1;try{var l=e.DomEditor.findPath(t,n);i=e.canRemoveEmptyLineAboveBlock(t,l);var c=(o=null===(r=n)||void 0===r?void 0:r.children,Array.isArray(o)&&o.length&&o.find((function(t){var e;return"code"===(null===(e=t)||void 0===e?void 0:e.type)}))||null);a=null!=(null==c?void 0:c.language)?String(c.language):"",u=!!(null==c?void 0:c.wordWrap)}catch(t){}return{canCancelEnter:i,lang:a,wordWrap:u}}function Uv(t){var e,r,o,i=null!=t?String(t):"",a=(r=null!=(e=i)?String(e):"",(null==(o=Fv.find((function(t){return t.value===r})))?void 0:o.text)||r||"Plain Text");return n.h("button",{attrs:{type:"button",class:"mdg-pre-lang-btn",title:"่ฏญ่จ€","data-pre-action":"lang-open","data-pre-lang":i,"aria-label":"ไปฃ็ ่ฏญ่จ€","aria-haspopup":"listbox"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}},[n.h("span",{attrs:{class:"mdg-pre-lang-text"}},[a]),n.h("span",{attrs:{class:"mdg-pre-lang-caret"}},["โ–พ"])])}var Kv={menus:[Bv,Rv],editorPlugin:function(t){var n=t.insertBreak,o=t.normalizeNode,i=t.insertData;t.insertNode;var a=t;return a.insertBreak=function(){var t=e.DomEditor.getSelectedNodeByType(a,"code");if(null!=t){var o=function(t,e){var n=e.selection;if(null==n)return"";var o=r.Node.string(t),i=n.anchor.offset,a=o.slice(0,i).split("\n"),u=a.length;return 0===u?"":a[u-1]}(t,a);if(o){var i=o.match(/^\s+/);if(null!=i&&null!=i[0]){var u=i[0];return void a.insertText("\n"+u)}}a.insertText("\n")}else n()},a.normalizeNode=function(t){var n=So(t,2),i=n[0],u=n[1],l=e.DomEditor.getNodeType(i);("code"===l&&u.length<=1&&r.Transforms.setNodes(a,{type:"paragraph"},{at:u}),"pre"===l)&&(e.DomEditor.isLastNode(a,i)&&r.Transforms.insertNodes(a,e.DomEditor.genEmptyParagraph(),{at:[u[0]+1]}),"code"!==e.DomEditor.getNodeType(i.children[0])&&(r.Transforms.unwrapNodes(a),r.Transforms.setNodes(a,{type:"paragraph"},{mode:"highest"})));return o([i,u])},a.insertData=function(t){if(null!=e.DomEditor.getSelectedNodeByType(a,"code")){var n=t.getData("text/plain");r.Editor.insertText(a,n)}else i(t)},a},renderElems:[{type:"pre",renderElem:function(t,e,r){var o=null==e?[]:Array.isArray(e)?e:[e];if(r.isDisabled())return n.h("pre",{},o);var i,a=Gv(r,t),u=a.canCancelEnter,l=a.lang,c=a.wordWrap,s=n.h("div",{attrs:{class:"mdg-pre-toolbar",contenteditable:"false","data-mdg-pre-toolbar":"1"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(e){var n,o;e.preventDefault(),e.stopPropagation();var i=e.target,a=null===(n=null==i?void 0:i.closest)||void 0===n?void 0:n.call(i,"button[data-pre-action]"),u=null===(o=null==a?void 0:a.getAttribute)||void 0===o?void 0:o.call(a,"data-pre-action");if(a&&u&&!a.classList.contains("is-disabled"))if("lang-open"!==u)Wv(),$v(r,t,u);else{var l=a.getAttribute("data-pre-lang")||"";!function(t,e,n,r){var o,i;if(qv.el&&qv.anchorEl===t)Wv();else if(Wv(),t&&"undefined"!=typeof document){var a=null!=r?String(r):"",u=document.createElement("div");u.className="mdg-pre-lang-panel",u.setAttribute("contenteditable","false"),u.setAttribute("role","listbox");var l=ko([],So(Fv));a&&!l.some((function(t){return t.value===a}))&&l.push({text:a,value:a});var c=function(t){var r=document.createElement("button");r.type="button",r.className="mdg-pre-lang-option"+(t.value===a?" is-selected":""),r.setAttribute("role","option"),r.textContent=t.text,r.addEventListener("mousedown",(function(t){t.preventDefault(),t.stopPropagation()})),r.addEventListener("click",(function(r){r.preventDefault(),r.stopPropagation(),Wv(),$v(e,n,"lang",t.value)})),u.appendChild(r)};try{for(var s=xo(l),f=s.next();!f.done;f=s.next())c(f.value)}catch(t){o={error:t}}finally{try{f&&!f.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}document.body.appendChild(u);var d=function(){if(t.isConnected){var e=t.getBoundingClientRect();if(e.bottom<0||e.top>window.innerHeight||e.right<0||e.left>window.innerWidth)Wv();else{var n=window.innerHeight-e.bottom-8,r=e.top-8,o=n<140&&r>n,i=Math.max(96,o?r-4:n-4);u.style.maxHeight=Math.min(240,Math.floor(i))+"px",u.style.minWidth=Math.max(140,Math.round(e.width))+"px";var a=u.offsetWidth||Math.max(140,e.width),l=u.offsetHeight||Math.min(240,i),c=o?Math.max(8,e.top-l-4):e.bottom+4,s=e.left;s+a>window.innerWidth-8&&(s=Math.max(8,window.innerWidth-a-8)),s<8&&(s=8),u.style.top=Math.round(c)+"px",u.style.left=Math.round(s)+"px"}}else Wv()};d(),requestAnimationFrame(d);var p=function(e){var n=e.target;n instanceof globalThis.Node&&(u.contains(n)||t.contains(n))||Wv()},h=function(t){var e=null==t?void 0:t.target;e instanceof globalThis.Node&&(e===u||u.contains(e))||d()},v=function(t){"Escape"===t.key&&(t.preventDefault(),Wv())};qv={el:u,anchorEl:t,onDoc:p,onScroll:h,onKey:v},requestAnimationFrame((function(){document.addEventListener("mousedown",p,!0),window.addEventListener("scroll",h,!0),document.addEventListener("keydown",v,!0)}))}}(a,r,t,l)}}}},[Uu({action:"enter",title:"ๅ›ž่ฝฆ๏ผˆไธŠๆ–น็ฉบ่กŒ๏ผ‰",iconSvg:Ju,actionAttr:"data-pre-action",className:"mdg-pre-btn"}),Uu({action:"cancel-enter",title:"ๅ–ๆถˆๅ›ž่ฝฆ",iconSvg:Xu,actionAttr:"data-pre-action",className:"mdg-pre-btn",disabled:!u}),Uv(l),Ku("mdg-pre-toolbar-spacer"),(i=c,n.h("button",{attrs:{type:"button",class:i?"mdg-pre-wrap-btn is-active":"mdg-pre-wrap-btn",title:"่‡ชๅŠจๆข่กŒ","data-pre-action":"word-wrap","aria-label":"่‡ชๅŠจๆข่กŒ","aria-pressed":i?"true":"false"},props:{contentEditable:!1},on:{mousedown:function(t){t.preventDefault(),t.stopPropagation()}}},[n.h("span",{attrs:{class:"mdg-pre-wrap-label"}},["่‡ชๅŠจๆข่กŒ"]),n.h("span",{attrs:{class:"mdg-pre-wrap-switch"}},[])])),Uu({action:"uncode",title:"ๅ–ๆถˆไปฃ็ ๅ—",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M332.288 758.016l-151.552-151.552 151.552-151.552-60.416-60.416-212.992 211.968 212.992 211.968zM691.712 758.016l151.552-151.552-151.552-151.552 60.416-60.416 212.992 211.968-212.992 211.968zM586.752 264.192l-90.112 495.616h-69.632l90.112-495.616z"></path><path d="M198 128l64-64 628 628-64 64z"></path></svg>',actionAttr:"data-pre-action",className:"mdg-pre-btn"}),Uu({action:"remove",title:"ๅˆ ้™ค",iconSvg:Yu,actionAttr:"data-pre-action",className:"mdg-pre-btn"})]);return n.h("pre",{attrs:{class:"mdg-pre-with-toolbar"}},ko([s],So(o)))}},{type:"code",renderElem:function(t,e,r){var o=t,i=o.language,a=void 0===i?"":i,u=o.wordWrap,l=[];a&&l.push("language-"+a),u&&l.push("w-e-code-word-wrap");var c=l.join(" ");return u?n.jsx("code",{className:c,"data-word-wrap":"true"},e):c?n.jsx("code",{className:c},e):n.jsx("code",null,e)}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=l.default(t);if("code"!==vo(e))return t;var n=e.find("xmp");if(0===n.length)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:l.default(t)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,n,r){var o=l.default(t);return 0===(n=n.filter((function(t){return"code"===e.DomEditor.getNodeType(t)}))).length&&(n=[{type:"code",language:"",children:[{text:o[0].textContent||""}]}]),{type:"pre",children:n.filter((function(t){return"code"===e.DomEditor.getNodeType(t)}))}}}]},Jv=function(){function t(){this.title=e.t("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return t.isFullScreen},t.prototype.isDisabled=function(t){return!1},t.prototype.exec=function(t,e){t.isFullScreen?t.unFullScreen():t.fullScreen()},t}(),Xv={menus:[{key:"fullScreen",factory:function(){return new Jv}}]},Yv=function(){function t(){this.title=e.t("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||!!r.Range.isExpanded(e)},t.prototype.exec=function(t,e){var n=t.selection;if(null!=n){var o=[n.anchor.path[0]];r.Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(r.Editor.start(t,o))}},t}(),Qv={menus:[{key:"enter",factory:function(){return new Yv}}]},Zv=I(N.f),tg=I([].push),eg=function(t){return function(e){for(var n,r=R(e),o=Dn(r),i=o.length,a=0,u=[];i>a;)n=o[a++],w&&!Zv(r,n)||tg(u,t?[n,r[n]]:r[n]);return u}},ng={entries:eg(!0),values:eg(!1)}.entries;qe({target:"Object",stat:!0},{entries:function(t){return ng(t)}});var rg=["bold","italic","underline","through","code","sub","sup","color","bgColor","fontSize","fontFamily"],og={isSelect:!1,formatStyle:null,formatBlockStyle:null,sourceSelKey:""},ig="";function ag(t){try{var n=t?e.DomEditor.getHoverbar(t):null;n&&n.hideAndClean()}catch(t){}"undefined"!=typeof document&&document.querySelectorAll(".w-e-hover-bar").forEach((function(t){t.classList.remove("w-e-bar-show"),t.classList.add("w-e-bar-hidden")}))}function ug(t,e){if("undefined"!=typeof document){document.documentElement.classList.toggle("w-e-format-painter-on",!!t),document.documentElement.classList.toggle("mdg-format-painter-on",!!t);var n=document.querySelector(".editor-content");if(n)if(n.classList.toggle("w-e-format-painter-on",!!t),n.classList.toggle("mdg-format-painter-on",!!t),t){ig="";var r=function(){if(ig)return ig;if("undefined"==typeof document)return"text";try{var t=document.createElement("canvas"),e=Math.min(2,window.devicePixelRatio||1);t.width=22*e,t.height=22*e;var n=t.getContext("2d");if(!n)return"text";n.scale(e,e),n.clearRect(0,0,22,22),n.fillStyle="#111",n.strokeStyle="#111";var r=16.2,o=3.6,i=18.4,a=14,u=11-a/2,l=2.2;n.fillRect(l+3.1,u,2.4,3.4),n.fillRect(l,u+3.4,8.6,3.1),n.lineCap="butt",n.lineWidth=1.35;var c=u+6.5;[[3.1,a-.8],[4.7,a],[6.3,a-.2],[7.9,a-.6],[9.5,a-1.4]].forEach((function(t){var e=So(t,2),r=e[0],o=e[1];n.beginPath(),n.moveTo(r,c),n.lineTo(r,u+o),n.stroke()})),n.lineWidth=1.15,n.beginPath(),n.moveTo(14.1,o),n.lineTo(18.3,o),n.moveTo(r,o),n.lineTo(r,i),n.moveTo(14.1,i),n.lineTo(18.3,i),n.stroke();var s=t.toDataURL("image/png");ig="url("+s+") "+r+" 11, text"}catch(t){ig="text"}return ig}();n.style.setProperty("--w-e-format-painter-cursor",r),n.style.setProperty("--mdg-format-painter-cursor",r),document.documentElement.style.setProperty("--w-e-format-painter-cursor",r),document.documentElement.style.setProperty("--mdg-format-painter-cursor",r),ag(e),[0,50,220,400].forEach((function(t){setTimeout((function(){og.isSelect&&ag(e)}),t)}))}else n.style.removeProperty("--w-e-format-painter-cursor"),n.style.removeProperty("--mdg-format-painter-cursor"),document.documentElement.style.removeProperty("--w-e-format-painter-cursor"),document.documentElement.style.removeProperty("--mdg-format-painter-cursor");else t||(document.documentElement.style.removeProperty("--w-e-format-painter-cursor"),document.documentElement.style.removeProperty("--mdg-format-painter-cursor"))}}function lg(t){og.isSelect=!1,og.formatStyle=null,og.formatBlockStyle=null,og.sourceSelKey="",ug(!1,t)}try{"undefined"!=typeof window&&(window.__wEClearFormatPainter=lg)}catch(t){}function cg(t){var e,n;return(null===(e=null==t?void 0:t.anchor)||void 0===e?void 0:e.path)&&(null===(n=null==t?void 0:t.focus)||void 0===n?void 0:n.path)?[t.anchor.path.join("."),t.anchor.offset,t.focus.path.join("."),t.focus.offset].join("|"):""}var sg=function(){function t(){this.title="ๆ ผๅผๅˆท",this.tag="button",this.iconSvg='<svg viewBox="5.2 4.8 14.2 15.2" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.1 5.75a.75.75 0 01.75.75v3.3a.75.75 0 01-.75.75H6.9a.75.75 0 01-.75-.75V6.5a.75.75 0 01.75-.75h8.2z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path><path d="M15.326 8.15h3.141v5.636l-8.4 1.085V19" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"></path></svg>'}return t.prototype.getValue=function(){return""},t.prototype.isActive=function(){return!!og.isSelect},t.prototype.isDisabled=function(t){if(og.isSelect)return!1;if(null==t.selection)return!0;try{var e="function"==typeof t.getSelectionText?t.getSelectionText():"";return!String(e||"").length}catch(t){return!0}},t.prototype.isSourceBlockType=function(t){return"blockquote"===t||"header1"===t||"header2"===t||"header3"===t||"header4"===t||"header5"===t||"header6"===t||"list-item"===t||"todo"===t},t.prototype.isTargetBlockType=function(t){return"paragraph"===t||this.isSourceBlockType(t)},t.prototype.getTopLevelBlockPaths=function(t,e){var n,o,i=[];try{var a=r.Editor.nodes(t,{at:t.selection||void 0,match:function(t){return!!t&&"object"===ap(t)&&"type"in t}});try{for(var u=xo(a),l=u.next();!l.done;l=u.next()){var c=So(l.value,2),s=c[0],f=c[1];1===(null==f?void 0:f.length)&&e(s.type)&&i.push(f)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}catch(t){}return i},t.prototype.getSelectedBlockStyle=function(t){var e=this,n=this.getTopLevelBlockPaths(t,(function(t){return e.isSourceBlockType(t)}))[0];if(!n)return null;var o=function(t,e){try{return r.Node.get(t,e)}catch(t){return null}}(t,n);return o&&this.isSourceBlockType(o.type)?"list-item"===o.type?{type:"list-item",ordered:!!o.ordered}:{type:o.type}:null},t.prototype.pickMarks=function(t){var e,n,o=null;try{o=r.Editor.marks(t)}catch(t){o=null}if(!o||"object"!==ap(o))return null;var i={};try{for(var a=xo(rg),u=a.next();!u.done;u=a.next()){var l=u.value;null!=o[l]&&!1!==o[l]&&(i[l]=o[l])}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return Object.keys(i).length?i:null},t.prototype.unsetListAttrs=function(t,e){try{r.Transforms.unsetNodes(t,["ordered","level","start"],{at:e})}catch(t){}},t.prototype.applyBlockStyle=function(t,e){var n=this,o=this.getTopLevelBlockPaths(t,(function(t){return n.isTargetBlockType(t)}));o.length&&("list-item"!==e.type?"todo"!==e.type?o.forEach((function(o){try{r.Transforms.setNodes(t,{type:e.type},{at:o}),n.unsetListAttrs(t,o),r.Transforms.unsetNodes(t,"checked",{at:o})}catch(t){}})):o.forEach((function(e){try{r.Transforms.setNodes(t,{type:"todo",checked:!1},{at:e}),n.unsetListAttrs(t,e)}catch(t){}})):o.forEach((function(n){try{r.Transforms.setNodes(t,{type:"list-item",ordered:!!e.ordered,level:0},{at:n}),r.Transforms.unsetNodes(t,"checked",{at:n})}catch(t){}})))},t.prototype.applyCopiedFormat=function(t,e){var n,o;void 0===e&&(e={});var i=e.allowPending,a=void 0!==i&&i;if(!og.isSelect||!t||t.isDestroyed)return"cancel";var u="";try{u="function"==typeof t.getSelectionText?t.getSelectionText():""}catch(t){u=""}u=String(u||"");var l=t.selection,c=cg(l),s=!!c&&c===og.sourceSelKey;if(!u.length||!l||s)return a?"pending":(lg(t),"cancel");try{if(og.formatStyle){!function(t){var e,n;if(t&&!t.isDestroyed&&t.selection)try{r.Transforms.unsetNodes(t,rg,{at:t.selection,match:function(t){return"string"==typeof(null==t?void 0:t.text)},split:!0})}catch(r){try{for(var o=xo(rg),i=o.next();!i.done;i=o.next()){var a=i.value;try{t.removeMark(a)}catch(t){}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}}(t);try{r.Transforms.setNodes(t,og.formatStyle,{at:t.selection||l,match:function(t){return"string"==typeof(null==t?void 0:t.text)},split:!0})}catch(e){try{for(var f=xo(Object.entries(og.formatStyle)),d=f.next();!d.done;d=f.next()){var p=So(d.value,2),h=p[0],v=p[1];try{t.addMark(h,v)}catch(t){}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}}og.formatBlockStyle&&this.applyBlockStyle(t,og.formatBlockStyle)}catch(t){console.warn("[wangeditor] formatPainter apply",t)}finally{lg(t)}return"applied"},t.prototype.exec=function(t){if(!this.isDisabled(t))if(og.isSelect)lg(t);else{var e=this.pickMarks(t),n=this.getSelectedBlockStyle(t);(e||n)&&(og.formatStyle=e,og.formatBlockStyle=n,og.sourceSelKey=cg(t.selection),og.isSelect=!0,ug(!0,t),ag(t))}},t}();var fg=[xi,xa,pv,{menus:[{key:"formatPainter",factory:function(){return new sg}}],editorPlugin:function(t){if(t.__wFormatPainterPatched)return t;t.__wFormatPainterPatched=!0;var e=new sg,n=!1,r=0,o=!1,i=function(){n&&(n=!1,document.removeEventListener("pointerup",a,!1),document.removeEventListener("mouseup",a,!1))},a=function(n){var a,u;if(i(),og.isSelect&&!t.isDestroyed){var l=null===(a=n)||void 0===a?void 0:a.target;l instanceof Element&&(null===(u=l.closest)||void 0===u?void 0:u.call(l,'button[data-menu-key="formatPainter"]'))||function(){if(!o){o=!0,r&&(clearTimeout(r),r=0);var n=0,i=function i(){if(r=0,og.isSelect&&!t.isDestroyed){try{if("pending"===e.applyCopiedFormat(t,{allowPending:n<8}))return n+=1,void(r=window.setTimeout(i,n<3?16:32))}catch(e){lg(t)}o=!1}else o=!1};requestAnimationFrame((function(){requestAnimationFrame(i)}))}}()}},u=function(e){var r,o;if(og.isSelect&&!t.isDestroyed){var i=null===(r=e)||void 0===r?void 0:r.target;i instanceof Element&&(null===(o=i.closest)||void 0===o?void 0:o.call(i,'button[data-menu-key="formatPainter"]'))||og.isSelect&&!t.isDestroyed&&(n||(n=!0,document.addEventListener("pointerup",a,!1),document.addEventListener("mouseup",a,!1)))}},l=function(e){"Escape"===e.key&&og.isSelect&&(e.preventDefault(),e.stopPropagation(),lg(t))};return document.addEventListener("pointerdown",u,!0),document.addEventListener("keydown",l,!0),t.on("destroyed",(function(){r&&clearTimeout(r),i(),document.removeEventListener("pointerdown",u,!0),document.removeEventListener("keydown",l,!0),lg(t)})),t}},mv,kv,Nv,Bu,zv,ev,ou,Kv,Zh,fa,No,qu,Mv,Xv,Qv];t.default=fg,t.insertImageNode=Tu,t.isInsertImageMenuDisabled=Du,t.setLinkHoverHrefGetter=function(t){Ya=t},t.updateImageNode=Nu,Object.defineProperty(t,"__esModule",{value:!0})}));
2
+ //# sourceMappingURL=index.js.map