@wangeditor-next/video-module 1.3.10 → 1.3.12

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 (116) hide show
  1. package/dist/core/src/config/index.d.ts +13 -0
  2. package/dist/core/src/config/interface.d.ts +58 -0
  3. package/dist/core/src/config/register.d.ts +12 -0
  4. package/dist/core/src/constants/index.d.ts +1 -0
  5. package/dist/core/src/constants/svg.d.ts +12 -0
  6. package/dist/core/src/create/bind-node-relation.d.ts +15 -0
  7. package/dist/core/src/create/create-editor.d.ts +21 -0
  8. package/dist/core/src/create/create-toolbar.d.ts +14 -0
  9. package/dist/core/src/create/helper.d.ts +30 -0
  10. package/dist/core/src/create/index.d.ts +7 -0
  11. package/dist/core/src/editor/dom-editor.d.ts +143 -0
  12. package/dist/core/src/editor/interface.d.ts +67 -0
  13. package/dist/core/src/editor/plugins/with-config.d.ts +7 -0
  14. package/dist/core/src/editor/plugins/with-content.d.ts +7 -0
  15. package/dist/core/src/editor/plugins/with-dom.d.ts +10 -0
  16. package/dist/core/src/editor/plugins/with-emitter.d.ts +7 -0
  17. package/dist/core/src/editor/plugins/with-event-data.d.ts +7 -0
  18. package/dist/core/src/editor/plugins/with-max-length.d.ts +7 -0
  19. package/dist/core/src/editor/plugins/with-selection.d.ts +7 -0
  20. package/dist/core/src/i18n/index.d.ts +32 -0
  21. package/dist/core/src/index.d.ts +32 -0
  22. package/dist/core/src/menus/bar/HoverBar.d.ts +48 -0
  23. package/dist/core/src/menus/bar/Toolbar.d.ts +35 -0
  24. package/dist/core/src/menus/bar-item/BaseButton.d.ts +26 -0
  25. package/dist/core/src/menus/bar-item/DropPanelButton.d.ts +14 -0
  26. package/dist/core/src/menus/bar-item/GroupButton.d.ts +17 -0
  27. package/dist/core/src/menus/bar-item/ModalButton.d.ts +25 -0
  28. package/dist/core/src/menus/bar-item/Select.d.ts +22 -0
  29. package/dist/core/src/menus/bar-item/SimpleButton.d.ts +11 -0
  30. package/dist/core/src/menus/bar-item/index.d.ts +24 -0
  31. package/dist/core/src/menus/bar-item/tooltip.d.ts +6 -0
  32. package/dist/core/src/menus/helpers/helpers.d.ts +18 -0
  33. package/dist/core/src/menus/helpers/position.d.ts +36 -0
  34. package/dist/core/src/menus/index.d.ts +9 -0
  35. package/dist/core/src/menus/interface.d.ts +66 -0
  36. package/dist/core/src/menus/panel-and-modal/BaseClass.d.ts +26 -0
  37. package/dist/core/src/menus/panel-and-modal/DropPanel.d.ts +14 -0
  38. package/dist/core/src/menus/panel-and-modal/Modal.d.ts +44 -0
  39. package/dist/core/src/menus/panel-and-modal/SelectList.d.ts +20 -0
  40. package/dist/core/src/menus/register.d.ts +16 -0
  41. package/dist/core/src/parse-html/helper.d.ts +10 -0
  42. package/dist/core/src/parse-html/index.d.ts +35 -0
  43. package/dist/core/src/parse-html/parse-common-elem-html.d.ts +15 -0
  44. package/dist/core/src/parse-html/parse-elem-html.d.ts +15 -0
  45. package/dist/core/src/parse-html/parse-text-elem-html.d.ts +15 -0
  46. package/dist/core/src/render/element/getRenderElem.d.ts +11 -0
  47. package/dist/core/src/render/element/renderElement.d.ts +9 -0
  48. package/dist/core/src/render/element/renderStyle.d.ts +13 -0
  49. package/dist/core/src/render/helper.d.ts +6 -0
  50. package/dist/core/src/render/index.d.ts +27 -0
  51. package/dist/core/src/render/node2Vnode.d.ts +15 -0
  52. package/dist/core/src/render/text/genVnode.d.ts +9 -0
  53. package/dist/core/src/render/text/renderStyle.d.ts +13 -0
  54. package/dist/core/src/render/text/renderText.d.ts +9 -0
  55. package/dist/core/src/text-area/TextArea.d.ts +47 -0
  56. package/dist/core/src/text-area/event-handlers/beforeInput.d.ts +8 -0
  57. package/dist/core/src/text-area/event-handlers/blur.d.ts +8 -0
  58. package/dist/core/src/text-area/event-handlers/click.d.ts +8 -0
  59. package/dist/core/src/text-area/event-handlers/composition.d.ts +27 -0
  60. package/dist/core/src/text-area/event-handlers/copy.d.ts +8 -0
  61. package/dist/core/src/text-area/event-handlers/cut.d.ts +8 -0
  62. package/dist/core/src/text-area/event-handlers/drag.d.ts +9 -0
  63. package/dist/core/src/text-area/event-handlers/drop.d.ts +8 -0
  64. package/dist/core/src/text-area/event-handlers/focus.d.ts +8 -0
  65. package/dist/core/src/text-area/event-handlers/index.d.ts +35 -0
  66. package/dist/core/src/text-area/event-handlers/keydown.d.ts +8 -0
  67. package/dist/core/src/text-area/event-handlers/keypress.d.ts +8 -0
  68. package/dist/core/src/text-area/event-handlers/paste.d.ts +8 -0
  69. package/dist/core/src/text-area/helpers.d.ts +26 -0
  70. package/dist/core/src/text-area/place-holder.d.ts +18 -0
  71. package/dist/core/src/text-area/syncSelection.d.ts +19 -0
  72. package/dist/core/src/text-area/update-view.d.ts +13 -0
  73. package/dist/core/src/to-html/elem2html.d.ts +8 -0
  74. package/dist/core/src/to-html/index.d.ts +32 -0
  75. package/dist/core/src/to-html/node2html.d.ts +8 -0
  76. package/dist/core/src/to-html/text2html.d.ts +8 -0
  77. package/dist/core/src/upload/createUploader.d.ts +8 -0
  78. package/dist/core/src/upload/index.d.ts +7 -0
  79. package/dist/core/src/upload/interface.d.ts +28 -0
  80. package/dist/core/src/utils/dom.d.ts +102 -0
  81. package/dist/core/src/utils/hotkeys.d.ts +35 -0
  82. package/dist/core/src/utils/key.d.ts +11 -0
  83. package/dist/core/src/utils/line.d.ts +14 -0
  84. package/dist/core/src/utils/ua.d.ts +14 -0
  85. package/dist/core/src/utils/util.d.ts +28 -0
  86. package/dist/core/src/utils/vdom.d.ts +34 -0
  87. package/dist/core/src/utils/weak-maps.d.ts +56 -0
  88. package/dist/index.js +1 -1
  89. package/dist/index.js.map +1 -1
  90. package/dist/index.mjs +2 -0
  91. package/dist/index.mjs.map +1 -0
  92. package/dist/video-module/src/constants/svg.d.ts +12 -12
  93. package/dist/video-module/src/index.d.ts +8 -8
  94. package/dist/video-module/src/locale/en.d.ts +21 -21
  95. package/dist/video-module/src/locale/index.d.ts +5 -5
  96. package/dist/video-module/src/locale/zh-CN.d.ts +21 -21
  97. package/dist/video-module/src/module/custom-types.d.ts +23 -23
  98. package/dist/video-module/src/module/elem-to-html.d.ts +11 -11
  99. package/dist/video-module/src/module/helper/insert-video.d.ts +12 -12
  100. package/dist/video-module/src/module/helper/upload-videos.d.ts +6 -6
  101. package/dist/video-module/src/module/index.d.ts +7 -7
  102. package/dist/video-module/src/module/menu/EditVideoSizeMenu.d.ts +25 -25
  103. package/dist/video-module/src/module/menu/EditVideoSrcMenu.d.ts +26 -26
  104. package/dist/video-module/src/module/menu/InsertVideoMenu.d.ts +25 -25
  105. package/dist/video-module/src/module/menu/UploadVideoMenu.d.ts +16 -16
  106. package/dist/video-module/src/module/menu/config.d.ts +33 -33
  107. package/dist/video-module/src/module/menu/index.d.ts +30 -30
  108. package/dist/video-module/src/module/parse-elem-html.d.ts +14 -14
  109. package/dist/video-module/src/module/plugin.d.ts +7 -7
  110. package/dist/video-module/src/module/pre-parse-html.d.ts +15 -15
  111. package/dist/video-module/src/module/render-elem.d.ts +13 -13
  112. package/dist/video-module/src/utils/dom.d.ts +29 -29
  113. package/dist/video-module/src/utils/util.d.ts +12 -12
  114. package/package.json +10 -7
  115. package/dist/index.esm.js +0 -2
  116. package/dist/index.esm.js.map +0 -1
@@ -1,15 +1,15 @@
1
- /**
2
- * @description pre parse html
3
- * @author wangfupeng
4
- */
5
- import { DOMElement } from '../utils/dom';
6
- /**
7
- * pre-prase video ,兼容 V4
8
- * @param elem elem
9
- */
10
- declare function preParse(elem: DOMElement): DOMElement;
11
- export declare const preParseHtmlConf: {
12
- selector: string;
13
- preParseHtml: typeof preParse;
14
- };
15
- export {};
1
+ /**
2
+ * @description pre parse html
3
+ * @author wangfupeng
4
+ */
5
+ import { DOMElement } from '../utils/dom';
6
+ /**
7
+ * pre-prase video ,兼容 V4
8
+ * @param elem elem
9
+ */
10
+ declare function preParse(elem: DOMElement): DOMElement;
11
+ export declare const preParseHtmlConf: {
12
+ selector: string;
13
+ preParseHtml: typeof preParse;
14
+ };
15
+ export {};
@@ -1,13 +1,13 @@
1
- /**
2
- * @description video render elem
3
- * @author wangfupeng
4
- */
5
- import { IDomEditor } from '@wangeditor-next/core';
6
- import { Element } from 'slate';
7
- import { VNode } from 'snabbdom';
8
- declare function renderVideo(elemNode: Element, children: VNode[] | null, editor: IDomEditor): VNode;
9
- declare const renderVideoConf: {
10
- type: string;
11
- renderElem: typeof renderVideo;
12
- };
13
- export { renderVideoConf };
1
+ /**
2
+ * @description video render elem
3
+ * @author wangfupeng
4
+ */
5
+ import { IDomEditor } from '@wangeditor-next/core';
6
+ import { Element } from 'slate';
7
+ import { VNode } from 'snabbdom';
8
+ declare function renderVideo(elemNode: Element, children: VNode[] | null, editor: IDomEditor): VNode;
9
+ declare const renderVideoConf: {
10
+ type: string;
11
+ renderElem: typeof renderVideo;
12
+ };
13
+ export { renderVideoConf };
@@ -1,29 +1,29 @@
1
- /**
2
- * @description DOM 操作
3
- * @author wangfupeng
4
- */
5
- import $, { Dom7Array } from 'dom7';
6
- import { videoStyle } from '../module/custom-types';
7
- import DOMNode = globalThis.Node;
8
- import DOMComment = globalThis.Comment;
9
- import DOMElement = globalThis.Element;
10
- import DOMText = globalThis.Text;
11
- import DOMRange = globalThis.Range;
12
- import DOMSelection = globalThis.Selection;
13
- import DOMStaticRange = globalThis.StaticRange;
14
- export { Dom7Array } from 'dom7';
15
- export default $;
16
- /**
17
- * 获取 tagName lower-case
18
- * @param $elem $elem
19
- */
20
- export declare function getTagName($elem: Dom7Array): string;
21
- /**
22
- * 生成带 size 样式的 iframe html
23
- * @param iframeHtml iframe html string
24
- * @param width width
25
- * @param height height
26
- * @returns iframe html string with size style
27
- */
28
- export declare function genSizeStyledIframeHtml(iframeHtml: string, width?: string, height?: string, style?: videoStyle): string;
29
- export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
1
+ /**
2
+ * @description DOM 操作
3
+ * @author wangfupeng
4
+ */
5
+ import $, { Dom7Array } from 'dom7';
6
+ import { videoStyle } from '../module/custom-types';
7
+ import DOMNode = globalThis.Node;
8
+ import DOMComment = globalThis.Comment;
9
+ import DOMElement = globalThis.Element;
10
+ import DOMText = globalThis.Text;
11
+ import DOMRange = globalThis.Range;
12
+ import DOMSelection = globalThis.Selection;
13
+ import DOMStaticRange = globalThis.StaticRange;
14
+ export { Dom7Array } from 'dom7';
15
+ export default $;
16
+ /**
17
+ * 获取 tagName lower-case
18
+ * @param $elem $elem
19
+ */
20
+ export declare function getTagName($elem: Dom7Array): string;
21
+ /**
22
+ * 生成带 size 样式的 iframe html
23
+ * @param iframeHtml iframe html string
24
+ * @param width width
25
+ * @param height height
26
+ * @returns iframe html string with size style
27
+ */
28
+ export declare function genSizeStyledIframeHtml(iframeHtml: string, width?: string, height?: string, style?: videoStyle): string;
29
+ export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
@@ -1,12 +1,12 @@
1
- /**
2
- * @description 工具函数
3
- * @author wangfupeng
4
- */
5
- /**
6
- * 获取随机数字符串
7
- * @param prefix 前缀
8
- * @returns 随机数字符串
9
- */
10
- export declare function genRandomStr(prefix?: string): string;
11
- export declare function replaceSymbols(str: string): string;
12
- export declare function styleStringToObject(styleString: any): {};
1
+ /**
2
+ * @description 工具函数
3
+ * @author wangfupeng
4
+ */
5
+ /**
6
+ * 获取随机数字符串
7
+ * @param prefix 前缀
8
+ * @returns 随机数字符串
9
+ */
10
+ export declare function genRandomStr(prefix?: string): string;
11
+ export declare function replaceSymbols(str: string): string;
12
+ export declare function styleStringToObject(styleString: any): {};
package/package.json CHANGED
@@ -1,17 +1,20 @@
1
1
  {
2
2
  "name": "@wangeditor-next/video-module",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "wangEditor video module",
5
5
  "author": "cycleccc <2991205548@qq.com>",
6
- "contributors": [],
6
+ "type": "module",
7
7
  "homepage": "https://github.com/cycleccc/wangEditor#readme",
8
8
  "license": "MIT",
9
9
  "types": "dist/video-module/src/index.d.ts",
10
10
  "main": "dist/index.js",
11
- "module": "dist/index.esm.js",
12
- "browser": {
13
- "./dist/index.js": "./dist/index.js",
14
- "./dist/index.esm.js": "./dist/index.esm.js"
11
+ "module": "dist/index.mjs",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/video-module/src/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js"
17
+ }
15
18
  },
16
19
  "directories": {
17
20
  "lib": "dist",
@@ -42,7 +45,7 @@
42
45
  "peerDependencies": {
43
46
  "@uppy/core": "^2.1.4",
44
47
  "@uppy/xhr-upload": "^2.0.7",
45
- "@wangeditor-next/core": "1.7.6",
48
+ "@wangeditor-next/core": "1.7.8",
46
49
  "dom7": "^3.0.0",
47
50
  "nanoid": "^5.0.0",
48
51
  "slate": "^0.72.0",
package/dist/index.esm.js DELETED
@@ -1,2 +0,0 @@
1
- import{i18nAddResources as t,t as e,DomEditor as n,genModalInputElems as r,genModalButtonElems as o,createUploader as i}from"@wangeditor-next/core";import u,{append as c,on as a,focus as s,attr as f,val as l,html as d,parent as p,hasClass as v,empty as h}from"dom7";import{Transforms as y,Range as g}from"slate";import{nanoid as m}from"nanoid";import{jsx as b,h as w}from"snabbdom";t("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),t("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function O(t){var e={exports:{}};return t(e,e.exports),e.exports}var E,x,I=function(t){return t&&t.Math===Math&&t},P=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof S&&S)||I("object"==typeof S&&S)||function(){return this}()||Function("return this")(),j=function(t){try{return!!t()}catch(t){return!0}},T=!j((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=!j((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),A=Function.prototype.call,N=M?A.bind(A):function(){return A.apply(A,arguments)},R={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,k={f:C&&!R.call({1:2},1)?function(t){var e=C(this,t);return!!e&&e.enumerable}:R},L=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=Function.prototype,z=V.call,D=M&&V.bind.bind(z,z),F=M?D:function(t){return function(){return z.apply(t,arguments)}},_=F({}.toString),$=F("".slice),B=function(t){return $(_(t),8,-1)},U=Object,H=F("".split),W=j((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"===B(t)?H(t,""):U(t)}:U,G=function(t){return null==t},K=TypeError,X=function(t){if(G(t))throw new K("Can't call method on "+t);return t},Y=function(t){return W(X(t))},q="object"==typeof document&&document.all,J=void 0===q&&void 0!==q?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},Q=function(t){return"object"==typeof t?null!==t:J(t)},Z=function(t,e){return arguments.length<2?(n=P[t],J(n)?n:void 0):P[t]&&P[t][e];var n},tt=F({}.isPrototypeOf),et=P.navigator,nt=et&&et.userAgent,rt=nt?String(nt):"",ot=P.process,it=P.Deno,ut=ot&&ot.versions||it&&it.version,ct=ut&&ut.v8;ct&&(x=(E=ct.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!x&&rt&&(!(E=rt.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=rt.match(/Chrome\/(\d+)/))&&(x=+E[1]);var at=x,st=P.String,ft=!!Object.getOwnPropertySymbols&&!j((function(){var t=Symbol("symbol detection");return!st(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&at&&at<41})),lt=ft&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dt=Object,pt=lt?function(t){return"symbol"==typeof t}:function(t){var e=Z("Symbol");return J(e)&&tt(e.prototype,dt(t))},vt=String,ht=function(t){try{return vt(t)}catch(t){return"Object"}},yt=TypeError,gt=function(t){if(J(t))return t;throw new yt(ht(t)+" is not a function")},mt=function(t,e){var n=t[e];return G(n)?void 0:gt(n)},bt=TypeError,wt=Object.defineProperty,St=function(t,e){try{wt(P,t,{value:e,configurable:!0,writable:!0})}catch(n){P[t]=e}return e},Ot=O((function(t){var e="__core-js_shared__",n=t.exports=P[e]||St(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),Et=function(t,e){return Ot[t]||(Ot[t]=e||{})},xt=Object,It=function(t){return xt(X(t))},Pt=F({}.hasOwnProperty),jt=Object.hasOwn||function(t,e){return Pt(It(t),e)},Tt=0,Mt=Math.random(),At=F(1..toString),Nt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+At(++Tt+Mt,36)},Rt=P.Symbol,Ct=Et("wks"),kt=lt?Rt.for||Rt:Rt&&Rt.withoutSetter||Nt,Lt=function(t){return jt(Ct,t)||(Ct[t]=ft&&jt(Rt,t)?Rt[t]:kt("Symbol."+t)),Ct[t]},Vt=TypeError,zt=Lt("toPrimitive"),Dt=function(t,e){if(!Q(t)||pt(t))return t;var n,r=mt(t,zt);if(r){if(void 0===e&&(e="default"),n=N(r,t,e),!Q(n)||pt(n))return n;throw new Vt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&J(n=t.toString)&&!Q(r=N(n,t)))return r;if(J(n=t.valueOf)&&!Q(r=N(n,t)))return r;if("string"!==e&&J(n=t.toString)&&!Q(r=N(n,t)))return r;throw new bt("Can't convert object to primitive value")}(t,e)},Ft=function(t){var e=Dt(t,"string");return pt(e)?e:e+""},_t=P.document,$t=Q(_t)&&Q(_t.createElement),Bt=function(t){return $t?_t.createElement(t):{}},Ut=!T&&!j((function(){return 7!==Object.defineProperty(Bt("div"),"a",{get:function(){return 7}}).a})),Ht=Object.getOwnPropertyDescriptor,Wt={f:T?Ht:function(t,e){if(t=Y(t),e=Ft(e),Ut)try{return Ht(t,e)}catch(t){}if(jt(t,e))return L(!N(k.f,t,e),t[e])}},Gt=T&&j((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Kt=String,Xt=TypeError,Yt=function(t){if(Q(t))return t;throw new Xt(Kt(t)+" is not an object")},qt=TypeError,Jt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,Zt="enumerable",te="configurable",ee="writable",ne={f:T?Gt?function(t,e,n){if(Yt(t),e=Ft(e),Yt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&ee in n&&!n[ee]){var r=Qt(t,e);r&&r[ee]&&(t[e]=n.value,n={configurable:te in n?n[te]:r[te],enumerable:Zt in n?n[Zt]:r[Zt],writable:!1})}return Jt(t,e,n)}:Jt:function(t,e,n){if(Yt(t),e=Ft(e),Yt(n),Ut)try{return Jt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new qt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},re=T?function(t,e,n){return ne.f(t,e,L(1,n))}:function(t,e,n){return t[e]=n,t},oe=Function.prototype,ie=T&&Object.getOwnPropertyDescriptor,ue=jt(oe,"name"),ce={EXISTS:ue,PROPER:ue&&"something"===function(){}.name,CONFIGURABLE:ue&&(!T||T&&ie(oe,"name").configurable)},ae=F(Function.toString);J(Ot.inspectSource)||(Ot.inspectSource=function(t){return ae(t)});var se,fe,le,de=Ot.inspectSource,pe=P.WeakMap,ve=J(pe)&&/native code/.test(String(pe)),he=Et("keys"),ye=function(t){return he[t]||(he[t]=Nt(t))},ge={},me="Object already initialized",be=P.TypeError,we=P.WeakMap;if(ve||Ot.state){var Se=Ot.state||(Ot.state=new we);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,se=function(t,e){if(Se.has(t))throw new be(me);return e.facade=t,Se.set(t,e),e},fe=function(t){return Se.get(t)||{}},le=function(t){return Se.has(t)}}else{var Oe=ye("state");ge[Oe]=!0,se=function(t,e){if(jt(t,Oe))throw new be(me);return e.facade=t,re(t,Oe,e),e},fe=function(t){return jt(t,Oe)?t[Oe]:{}},le=function(t){return jt(t,Oe)}}var Ee={set:se,get:fe,has:le,enforce:function(t){return le(t)?fe(t):se(t,{})},getterFor:function(t){return function(e){var n;if(!Q(e)||(n=fe(e)).type!==t)throw new be("Incompatible receiver, "+t+" required");return n}}},xe=O((function(t){var e=ce.CONFIGURABLE,n=Ee.enforce,r=Ee.get,o=String,i=Object.defineProperty,u=F("".slice),c=F("".replace),a=F([].join),s=T&&!j((function(){return 8!==i((function(){}),"length",{value:8}).length})),f=String(String).split("String"),l=t.exports=function(t,r,l){"Symbol("===u(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!jt(t,"name")||e&&t.name!==r)&&(T?i(t,"name",{value:r,configurable:!0}):t.name=r),s&&l&&jt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&jt(l,"constructor")&&l.constructor?T&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var d=n(t);return jt(d,"source")||(d.source=a(f,"string"==typeof r?r:"")),t};Function.prototype.toString=l((function(){return J(this)&&r(this).source||de(this)}),"toString")})),Ie=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(J(n)&&xe(n,i,r),r.global)o?t[e]=n:St(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:ne.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Pe=Math.ceil,je=Math.floor,Te=Math.trunc||function(t){var e=+t;return(e>0?je:Pe)(e)},Me=function(t){var e=+t;return e!=e||0===e?0:Te(e)},Ae=Math.max,Ne=Math.min,Re=function(t,e){var n=Me(t);return n<0?Ae(n+e,0):Ne(n,e)},Ce=Math.min,ke=function(t){var e=Me(t);return e>0?Ce(e,9007199254740991):0},Le=function(t){return ke(t.length)},Ve=function(t){return function(e,n,r){var o=Y(e),i=Le(o);if(0===i)return!t&&-1;var u,c=Re(r,i);if(t&&n!=n){for(;i>c;)if((u=o[c++])!=u)return!0}else for(;i>c;c++)if((t||c in o)&&o[c]===n)return t||c||0;return!t&&-1}},ze={includes:Ve(!0),indexOf:Ve(!1)},De=ze.indexOf,Fe=F([].push),_e=function(t,e){var n,r=Y(t),o=0,i=[];for(n in r)!jt(ge,n)&&jt(r,n)&&Fe(i,n);for(;e.length>o;)jt(r,n=e[o++])&&(~De(i,n)||Fe(i,n));return i},$e=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Be=$e.concat("length","prototype"),Ue={f:Object.getOwnPropertyNames||function(t){return _e(t,Be)}},He={f:Object.getOwnPropertySymbols},We=F([].concat),Ge=Z("Reflect","ownKeys")||function(t){var e=Ue.f(Yt(t)),n=He.f;return n?We(e,n(t)):e},Ke=function(t,e,n){for(var r=Ge(e),o=ne.f,i=Wt.f,u=0;u<r.length;u++){var c=r[u];jt(t,c)||n&&jt(n,c)||o(t,c,i(e,c))}},Xe=/#|\.prototype\./,Ye=function(t,e){var n=Je[qe(t)];return n===Ze||n!==Qe&&(J(e)?j(e):!!e)},qe=Ye.normalize=function(t){return String(t).replace(Xe,".").toLowerCase()},Je=Ye.data={},Qe=Ye.NATIVE="N",Ze=Ye.POLYFILL="P",tn=Ye,en=Wt.f,nn=function(t,e){var n,r,o,i,u,c=t.target,a=t.global,s=t.stat;if(n=a?P:s?P[c]||St(c,{}):P[c]&&P[c].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=en(n,r))&&u.value:n[r],!tn(a?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ke(i,o)}(t.sham||o&&o.sham)&&re(i,"sham",!0),Ie(n,r,i,t)}},rn=Array.isArray||function(t){return"Array"===B(t)},on=TypeError,un=function(t){if(t>9007199254740991)throw on("Maximum allowed index exceeded");return t},cn=function(t,e,n){T?ne.f(t,e,L(0,n)):t[e]=n},an={};an[Lt("toStringTag")]="z";var sn="[object z]"===String(an),fn=Lt("toStringTag"),ln=Object,dn="Arguments"===B(function(){return arguments}()),pn=sn?B: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=ln(t),fn))?n:dn?B(e):"Object"===(r=B(e))&&J(e.callee)?"Arguments":r},vn=function(){},hn=Z("Reflect","construct"),yn=/^\s*(?:class|function)\b/,gn=F(yn.exec),mn=!yn.test(vn),bn=function(t){if(!J(t))return!1;try{return hn(vn,[],t),!0}catch(t){return!1}},wn=function(t){if(!J(t))return!1;switch(pn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mn||!!gn(yn,de(t))}catch(t){return!0}};wn.sham=!0;var Sn=!hn||j((function(){var t;return bn(bn.call)||!bn(Object)||!bn((function(){t=!0}))||t}))?wn:bn,On=Lt("species"),En=Array,xn=function(t,e){return new(function(t){var e;return rn(t)&&(e=t.constructor,(Sn(e)&&(e===En||rn(e.prototype))||Q(e)&&null===(e=e[On]))&&(e=void 0)),void 0===e?En:e}(t))(0===e?0:e)},In=Lt("species"),Pn=function(t){return at>=51||!j((function(){var e=[];return(e.constructor={})[In]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},jn=Lt("isConcatSpreadable"),Tn=at>=51||!j((function(){var t=[];return t[jn]=!1,t.concat()[0]!==t})),Mn=function(t){if(!Q(t))return!1;var e=t[jn];return void 0!==e?!!e:rn(t)},An=!Tn||!Pn("concat");nn({target:"Array",proto:!0,arity:1,forced:An},{concat:function(t){var e,n,r,o,i,u=It(this),c=xn(u,0),a=0;for(e=-1,r=arguments.length;e<r;e++)if(Mn(i=-1===e?u:arguments[e]))for(o=Le(i),un(a+o),n=0;n<o;n++,a++)n in i&&cn(c,a,i[n]);else un(a+1),cn(c,a++,i);return c.length=a,c}});var Nn,Rn=String,Cn=function(t){if("Symbol"===pn(t))throw new TypeError("Cannot convert a Symbol value to a string");return Rn(t)},kn="\t\n\v\f\r                 \u2028\u2029\ufeff",Ln=F("".replace),Vn=RegExp("^["+kn+"]+"),zn=RegExp("(^|[^"+kn+"])["+kn+"]+$"),Dn=function(t){return function(e){var n=Cn(X(e));return 1&t&&(n=Ln(n,Vn,"")),2&t&&(n=Ln(n,zn,"$1")),n}},Fn={start:Dn(1),end:Dn(2),trim:Dn(3)},_n=ce.PROPER,$n=Fn.trim;function Bn(t){return t.length?t[0].tagName.toLowerCase():""}function Un(t,e,n,r){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=u(t),i=r.width,c=void 0===i?"":i,a=r.height,s=void 0===a?"":a,f="";return c&&(f+="width: ".concat(c,";")),s&&(f+="height: ".concat(s,";")),o.attr("width",e),o.attr("height",n),o.attr("style",f),o[0].outerHTML}nn({target:"String",proto:!0,forced:(Nn="trim",j((function(){return!!kn[Nn]()||"​…᠎"!=="​…᠎"[Nn]()||_n&&kn[Nn].name!==Nn})))},{trim:function(){return $n(this)}}),nn({global:!0,forced:P.globalThis!==P},{globalThis:P}),c&&(u.fn.append=c),a&&(u.fn.on=a),s&&(u.fn.focus=s),f&&(u.fn.attr=f),l&&(u.fn.val=l),d&&(u.fn.html=d),p&&(u.fn.parent=p),v&&(u.fn.hasClass=v),h&&(u.fn.empty=h);var Hn={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=void 0===r?"":r,i=n.poster,u=void 0===i?"":i,c=n.width,a=void 0===c?"auto":c,s=n.height,f=void 0===s?"auto":s,l=n.style,d=void 0===l?{}:l,p=n.textAlign,v='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===p?"center":p,';">\n');if(0===o.trim().indexOf("<iframe ")){v+=Un(o,a,f,d)}else{var h=d.width,y=void 0===h?"":h,g=d.height,m=void 0===g?"":g,b="";y&&(b+="width: ".concat(y,";")),m&&(b+="height: ".concat(m,";")),v+='<video poster="'.concat(u,'" controls="true" width="').concat(a,'" height="').concat(f,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return v+="\n</div>"}},Wn=function(t,e,n){return n.get&&xe(n.get,e,{getter:!0}),n.set&&xe(n.set,e,{setter:!0}),ne.f(t,e,n)},Gn=ce.EXISTS,Kn=Function.prototype,Xn=F(Kn.toString),Yn=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,qn=F(Yn.exec);T&&!Gn&&Wn(Kn,"name",{configurable:!0,get:function(){try{return qn(Yn,Xn(this))[1]}catch(t){return""}}});var Jn,Qn=function(t){if("Function"===B(t))return F(t)},Zn=Qn(Qn.bind),tr=function(t,e){return gt(t),void 0===e?t:M?Zn(t,e):function(){return t.apply(e,arguments)}},er=F([].push),nr=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,c=5===t||i;return function(a,s,f,l){for(var d,p,v=It(a),h=W(v),y=Le(h),g=tr(s,f),m=0,b=l||xn,w=e?b(a,y):n||u?b(a,0):void 0;y>m;m++)if((c||m in h)&&(p=g(d=h[m],m,v),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:er(w,d)}else switch(t){case 4:return!1;case 7:er(w,d)}return i?-1:r||o?o:w}},rr={forEach:nr(0),map:nr(1),filter:nr(2),some:nr(3),every:nr(4),find:nr(5),findIndex:nr(6),filterReject:nr(7)},or=Object.keys||function(t){return _e(t,$e)},ir=T&&!Gt?Object.defineProperties:function(t,e){Yt(t);for(var n,r=Y(e),o=or(e),i=o.length,u=0;i>u;)ne.f(t,n=o[u++],r[n]);return t},ur={f:ir},cr=Z("document","documentElement"),ar="prototype",sr="script",fr=ye("IE_PROTO"),lr=function(){},dr=function(t){return"<"+sr+">"+t+"</"+sr+">"},pr=function(t){t.write(dr("")),t.close();var e=t.parentWindow.Object;return t=null,e},vr=function(){try{Jn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;vr="undefined"!=typeof document?document.domain&&Jn?pr(Jn):(e=Bt("iframe"),n="java"+sr+":",e.style.display="none",cr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(dr("document.F=Object")),t.close(),t.F):pr(Jn);for(var r=$e.length;r--;)delete vr[ar][$e[r]];return vr()};ge[fr]=!0;var hr=Object.create||function(t,e){var n;return null!==t?(lr[ar]=Yt(t),n=new lr,lr[ar]=null,n[fr]=t):n=vr(),void 0===e?n:ur.f(n,e)},yr=ne.f,gr=Lt("unscopables"),mr=Array.prototype;void 0===mr[gr]&&yr(mr,gr,{configurable:!0,value:hr(null)});var br=function(t){mr[gr][t]=!0},wr=rr.find,Sr="find",Or=!0;Sr in[]&&Array(1)[Sr]((function(){Or=!1})),nn({target:"Array",proto:!0,forced:Or},{find:function(t){return wr(this,t,arguments.length>1?arguments[1]:void 0)}}),br(Sr);var Er=sn?{}.toString:function(){return"[object "+pn(this)+"]"};sn||Ie(Object.prototype,"toString",Er,{unsafe:!0});var xr,Ir,Pr=function(){var t=Yt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},jr=P.RegExp,Tr=j((function(){var t=jr("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Mr=Tr||j((function(){return!jr("a","y").sticky})),Ar={BROKEN_CARET:Tr||j((function(){var t=jr("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:Mr,UNSUPPORTED_Y:Tr},Nr=P.RegExp,Rr=j((function(){var t=Nr(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Cr=P.RegExp,kr=j((function(){var t=Cr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Lr=Ee.get,Vr=Et("native-string-replace",String.prototype.replace),zr=RegExp.prototype.exec,Dr=zr,Fr=F("".charAt),_r=F("".indexOf),$r=F("".replace),Br=F("".slice),Ur=(Ir=/b*/g,N(zr,xr=/a/,"a"),N(zr,Ir,"a"),0!==xr.lastIndex||0!==Ir.lastIndex),Hr=Ar.BROKEN_CARET,Wr=void 0!==/()??/.exec("")[1];(Ur||Wr||Hr||Rr||kr)&&(Dr=function(t){var e,n,r,o,i,u,c,a=this,s=Lr(a),f=Cn(t),l=s.raw;if(l)return l.lastIndex=a.lastIndex,e=N(Dr,l,f),a.lastIndex=l.lastIndex,e;var d=s.groups,p=Hr&&a.sticky,v=N(Pr,a),h=a.source,y=0,g=f;if(p&&(v=$r(v,"y",""),-1===_r(v,"g")&&(v+="g"),g=Br(f,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Fr(f,a.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",v)),Wr&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Ur&&(r=a.lastIndex),o=N(zr,p?n:a,g),p?o?(o.input=Br(o.input,y),o[0]=Br(o[0],y),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Ur&&o&&(a.lastIndex=a.global?o.index+o[0].length:r),Wr&&o&&o.length>1&&N(Vr,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=u=hr(null),i=0;i<d.length;i++)u[(c=d[i])[0]]=o[c[1]];return o});var Gr=Dr;nn({target:"RegExp",proto:!0,forced:/./.exec!==Gr},{exec:Gr});var Kr=function(){return Kr=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},Kr.apply(this,arguments)};function Xr(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}a((r=r.apply(t,e||[])).next())}))}function Yr(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,r=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){u.label=c[1];break}if(6===c[0]&&u.label<o[1]){u.label=o[1],o=c;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(c);break}o[2]&&u.ops.pop(),u.trys.pop();continue}c=e.call(t,u)}catch(t){c=[6,t],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}function qr(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 Jr(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.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 u}function Qr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=qr(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var Zr=Function.prototype,to=Zr.apply,eo=Zr.call,no="object"==typeof Reflect&&Reflect.apply||(M?eo.bind(to):function(){return eo.apply(to,arguments)}),ro=Lt("species"),oo=RegExp.prototype,io=F("".charAt),uo=F("".charCodeAt),co=F("".slice),ao=function(t){return function(e,n){var r,o,i=Cn(X(e)),u=Me(n),c=i.length;return u<0||u>=c?t?"":void 0:(r=uo(i,u))<55296||r>56319||u+1===c||(o=uo(i,u+1))<56320||o>57343?t?io(i,u):r:t?co(i,u,u+2):o-56320+(r-55296<<10)+65536}},so={codeAt:ao(!1),charAt:ao(!0)},fo=so.charAt,lo=function(t,e,n){return e+(n?fo(t,e).length:1)},po=Math.floor,vo=F("".charAt),ho=F("".replace),yo=F("".slice),go=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,mo=/\$([$&'`]|\d{1,2})/g,bo=function(t,e,n,r,o,i){var u=n+t.length,c=r.length,a=mo;return void 0!==o&&(o=It(o),a=go),ho(i,a,(function(i,a){var s;switch(vo(a,0)){case"$":return"$";case"&":return t;case"`":return yo(e,0,n);case"'":return yo(e,u);case"<":s=o[yo(a,1,-1)];break;default:var f=+a;if(0===f)return i;if(f>c){var l=po(f/10);return 0===l?i:l<=c?void 0===r[l-1]?vo(a,1):r[l-1]+vo(a,1):i}s=r[f-1]}return void 0===s?"":s}))},wo=TypeError,So=function(t,e){var n=t.exec;if(J(n)){var r=N(n,t,e);return null!==r&&Yt(r),r}if("RegExp"===B(t))return N(Gr,t,e);throw new wo("RegExp#exec called on incompatible receiver")},Oo=Lt("replace"),Eo=Math.max,xo=Math.min,Io=F([].concat),Po=F([].push),jo=F("".indexOf),To=F("".slice),Mo="$0"==="a".replace(/./,"$0"),Ao=!!/./[Oo]&&""===/./[Oo]("a","$0");!function(t,e,n,r){var o=Lt(t),i=!j((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),u=i&&!j((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[ro]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!u||n){var c=/./[o],a=e(o,""[t],(function(t,e,n,r,o){var u=e.exec;return u===Gr||u===oo.exec?i&&!o?{done:!0,value:N(c,e,n,r)}:{done:!0,value:N(t,n,e,r)}:{done:!1}}));Ie(String.prototype,t,a[0]),Ie(oo,o,a[1])}r&&re(oo[o],"sham",!0)}("replace",(function(t,e,n){var r=Ao?"$":"$0";return[function(t,n){var r=X(this),o=G(t)?void 0:mt(t,Oo);return o?N(o,t,r,n):N(e,Cn(r),t,n)},function(t,o){var i=Yt(this),u=Cn(t);if("string"==typeof o&&-1===jo(o,r)&&-1===jo(o,"$<")){var c=n(e,i,u,o);if(c.done)return c.value}var a=J(o);a||(o=Cn(o));var s,f=i.global;f&&(s=i.unicode,i.lastIndex=0);for(var l,d=[];null!==(l=So(i,u))&&(Po(d,l),f);){""===Cn(l[0])&&(i.lastIndex=lo(u,ke(i.lastIndex),s))}for(var p,v="",h=0,y=0;y<d.length;y++){for(var g,m=Cn((l=d[y])[0]),b=Eo(xo(Me(l.index),u.length),0),w=[],S=1;S<l.length;S++)Po(w,void 0===(p=l[S])?p:String(p));var O=l.groups;if(a){var E=Io([m],w,b,u);void 0!==O&&Po(E,O),g=Cn(no(o,void 0,E))}else g=bo(m,u,b,w,O,o);b>=h&&(v+=To(u,h,b)+g,h=b+m.length)}return v+To(u,h)}]}),!!j((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Mo||Ao);var No={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},Ro=Bt("span").classList,Co=Ro&&Ro.constructor&&Ro.constructor.prototype,ko=Co===Object.prototype?void 0:Co,Lo=function(t,e){var n=[][t];return!!n&&j((function(){n.call(null,e||function(){return 1},1)}))},Vo=rr.forEach,zo=Lo("forEach")?[].forEach:function(t){return Vo(this,t,arguments.length>1?arguments[1]:void 0)},Do=function(t){if(t&&t.forEach!==zo)try{re(t,"forEach",zo)}catch(e){t.forEach=zo}};for(var Fo in No)No[Fo]&&Do(P[Fo]&&P[Fo].prototype);function _o(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(m())}function $o(t){var e={};return t.trim().split(";").forEach((function(t){if(t){var n=Jr(t.split(":"),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim())}})),e}function Bo(){return _o("w-e-insert-video")}Do(ko);var Uo=function(){function t(){this.title=e("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Bo(),this.heightInputId=Bo(),this.buttonId=Bo()}return t.prototype.getSelectedVideoNode=function(t){return n.getSelectedNodeByType(t,"video")},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 null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,c=i.widthInputId,a=i.heightInputId,s=i.buttonId,f=Jr(r(e("videoModule.width"),c,"auto"),2),l=f[0],d=f[1],p=u(d),v=Jr(r(e("videoModule.height"),a,"auto"),2),h=v[0],g=v[1],m=u(g),b=Jr(o(s,e("videoModule.ok")),1)[0],w=this.getSelectedVideoNode(t);if(null==this.$content){var S=u("<div></div>");S.on("click","#".concat(s),(function(e){e.preventDefault();var r=S.find("#".concat(c)).val().trim(),o=S.find("#".concat(a)).val().trim(),i=function(t){return/^\d+(\.\d+)?%$/.test(t)},u=function(t){return/^\d+(\.\d+)?$/.test(t)},s="auto",f="auto";i(r)?s=r:u(r)&&(s="".concat(parseInt(r,10),"px")),i(o)?f=o:u(o)&&(f="".concat(parseInt(o,10),"px"));var l=w.style,d=void 0===l?{}:l;t.restoreSelection();var p={style:Kr(Kr({},d),{width:s,height:f})};y.setNodes(t,p,{match:function(t){return n.checkNodeType(t,"video")}}),t.hidePanelOrModal()})),this.$content=S}var O=this.$content;if(O.empty(),O.append(l),O.append(h),O.append(b),null==w)return O[0];var E=w.style,x=void 0===E?{}:E,I=x.width,P=void 0===I?"":I,j=x.height,T=void 0===j?"":j;return p.val(P),m.val(T),setTimeout((function(){p.focus()})),O[0]},t}();function Ho(){return _o("w-e-edit-video")}var Wo,Go,Ko,Xo,Yo=function(){function t(){this.title=e("videoModule.edit"),this.iconSvg='<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>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Ho(),this.posterInputId=Ho(),this.buttonId=Ho()}return t.prototype.getSelectedVideoNode=function(t){return n.getSelectedNodeByType(t,"video")},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 null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,c=this,a=c.srcInputId,s=c.posterInputId,f=c.buttonId,l=Jr(r(e("videoModule.videoSrc"),a,e("videoModule.videoSrcPlaceHolder")),2),d=l[0],p=l[1],v=Jr(r(e("videoModule.videoPoster"),s,e("videoModule.videoPosterPlaceHolder")),2),h=v[0],g=v[1],m=u(p),b=u(g),w=Jr(o(f,e("videoModule.ok")),1)[0];if(null==this.$content){var S=u("<div></div>");S.on("click","#".concat(f),(function(e){return Xr(i,void 0,void 0,(function(){var r,o,i,u;return Yr(this,(function(c){return e.preventDefault(),r=S.find("#".concat(a)).val().trim(),o=S.find("#".concat(s)).val().trim(),i=_o("video-"),u={src:r,poster:o,key:i},t.restoreSelection(),y.setNodes(t,u,{match:function(t){return n.checkNodeType(t,"video")}}),t.hidePanelOrModal(),[2]}))}))})),this.$content=S}var O=this.$content;O.empty(),O.append(d),O.append(h),O.append(w);var E=this.getSelectedVideoNode(t);if(null==E)return O[0];var x=E.src,I=void 0===x?"":x,P=E.poster,j=void 0===P?"":P;return m.val(I),b.val(j),setTimeout((function(){m.focus()})),O[0]},t}(),qo=function(t){return rt.slice(0,t.length)===t},Jo=qo("Bun/")?"BUN":qo("Cloudflare-Workers")?"CLOUDFLARE":qo("Deno/")?"DENO":qo("Node.js/")?"NODE":P.Bun&&"string"==typeof Bun.version?"BUN":P.Deno&&"object"==typeof Deno.version?"DENO":"process"===B(P.process)?"NODE":P.window&&P.document?"BROWSER":"REST",Qo="NODE"===Jo,Zo=String,ti=TypeError,ei=function(t){if(function(t){return Q(t)||null===t}(t))return t;throw new ti("Can't set "+Zo(t)+" as a prototype")},ni=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return F(gt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return X(n),ei(r),Q(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),ri=ne.f,oi=Lt("toStringTag"),ii=function(t,e,n){t&&!n&&(t=t.prototype),t&&!jt(t,oi)&&ri(t,oi,{configurable:!0,value:e})},ui=Lt("species"),ci=TypeError,ai=function(t,e){if(tt(e,t))return t;throw new ci("Incorrect invocation")},si=TypeError,fi=Lt("species"),li=function(t,e){var n,r=Yt(t).constructor;return void 0===r||G(n=Yt(r)[fi])?e:function(t){if(Sn(t))return t;throw new si(ht(t)+" is not a constructor")}(n)},di=F([].slice),pi=TypeError,vi=/(?:ipad|iphone|ipod).*applewebkit/i.test(rt),hi=P.setImmediate,yi=P.clearImmediate,gi=P.process,mi=P.Dispatch,bi=P.Function,wi=P.MessageChannel,Si=P.String,Oi=0,Ei={},xi="onreadystatechange";j((function(){Wo=P.location}));var Ii=function(t){if(jt(Ei,t)){var e=Ei[t];delete Ei[t],e()}},Pi=function(t){return function(){Ii(t)}},ji=function(t){Ii(t.data)},Ti=function(t){P.postMessage(Si(t),Wo.protocol+"//"+Wo.host)};hi&&yi||(hi=function(t){!function(t,e){if(t<e)throw new pi("Not enough arguments")}(arguments.length,1);var e=J(t)?t:bi(t),n=di(arguments,1);return Ei[++Oi]=function(){no(e,void 0,n)},Go(Oi),Oi},yi=function(t){delete Ei[t]},Qo?Go=function(t){gi.nextTick(Pi(t))}:mi&&mi.now?Go=function(t){mi.now(Pi(t))}:wi&&!vi?(Xo=(Ko=new wi).port2,Ko.port1.onmessage=ji,Go=tr(Xo.postMessage,Xo)):P.addEventListener&&J(P.postMessage)&&!P.importScripts&&Wo&&"file:"!==Wo.protocol&&!j(Ti)?(Go=Ti,P.addEventListener("message",ji,!1)):Go=xi in Bt("script")?function(t){cr.appendChild(Bt("script"))[xi]=function(){cr.removeChild(this),Ii(t)}}:function(t){setTimeout(Pi(t),0)});var Mi={set:hi,clear:yi},Ai=Object.getOwnPropertyDescriptor,Ni=function(){this.head=null,this.tail=null};Ni.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ri,Ci,ki,Li,Vi,zi=Ni,Di=/ipad|iphone|ipod/i.test(rt)&&"undefined"!=typeof Pebble,Fi=/web0s(?!.*chrome)/i.test(rt),_i=Mi.set,$i=P.MutationObserver||P.WebKitMutationObserver,Bi=P.document,Ui=P.process,Hi=P.Promise,Wi=function(t){if(!T)return P[t];var e=Ai(P,t);return e&&e.value}("queueMicrotask");if(!Wi){var Gi=new zi,Ki=function(){var t,e;for(Qo&&(t=Ui.domain)&&t.exit();e=Gi.get();)try{e()}catch(t){throw Gi.head&&Ri(),t}t&&t.enter()};vi||Qo||Fi||!$i||!Bi?!Di&&Hi&&Hi.resolve?((Li=Hi.resolve(void 0)).constructor=Hi,Vi=tr(Li.then,Li),Ri=function(){Vi(Ki)}):Qo?Ri=function(){Ui.nextTick(Ki)}:(_i=tr(_i,P),Ri=function(){_i(Ki)}):(Ci=!0,ki=Bi.createTextNode(""),new $i(Ki).observe(ki,{characterData:!0}),Ri=function(){ki.data=Ci=!Ci}),Wi=function(t){Gi.head||Ri(),Gi.add(t)}}var Xi=Wi,Yi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},qi=P.Promise;qi&&qi.prototype;var Ji,Qi,Zi,tu,eu=Lt("species"),nu=!1,ru=J(P.PromiseRejectionEvent),ou=tn("Promise",(function(){var t=de(qi),e=t!==String(qi);if(!e&&66===at)return!0;if(!at||at<51||!/native code/.test(t)){var n=new qi((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[eu]=r,!(nu=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==Jo&&"DENO"!==Jo||ru)})),iu={CONSTRUCTOR:ou,REJECTION_EVENT:ru,SUBCLASSING:nu},uu=TypeError,cu=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new uu("Bad Promise constructor");e=t,n=r})),this.resolve=gt(e),this.reject=gt(n)},au={f:function(t){return new cu(t)}},su=Mi.set,fu="Promise",lu=iu.CONSTRUCTOR,du=iu.REJECTION_EVENT,pu=iu.SUBCLASSING,vu=Ee.getterFor(fu),hu=Ee.set,yu=qi&&qi.prototype,gu=qi,mu=yu,bu=P.TypeError,wu=P.document,Su=P.process,Ou=au.f,Eu=Ou,xu=!!(wu&&wu.createEvent&&P.dispatchEvent),Iu="unhandledrejection",Pu=function(t){var e;return!(!Q(t)||!J(e=t.then))&&e},ju=function(t,e){var n,r,o,i=e.value,u=1===e.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,f=t.domain;try{c?(u||(2===e.rejection&&Ru(e),e.rejection=1),!0===c?n=i:(f&&f.enter(),n=c(i),f&&(f.exit(),o=!0)),n===t.promise?s(new bu("Promise-chain cycle")):(r=Pu(n))?N(r,n,a,s):a(n)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},Tu=function(t,e){t.notified||(t.notified=!0,Xi((function(){for(var n,r=t.reactions;n=r.get();)ju(n,t);t.notified=!1,e&&!t.rejection&&Au(t)})))},Mu=function(t,e,n){var r,o;xu?((r=wu.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),P.dispatchEvent(r)):r={promise:e,reason:n},!du&&(o=P["on"+t])?o(r):t===Iu&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},Au=function(t){N(su,P,(function(){var e,n=t.facade,r=t.value;if(Nu(t)&&(e=Yi((function(){Qo?Su.emit("unhandledRejection",r,n):Mu(Iu,n,r)})),t.rejection=Qo||Nu(t)?2:1,e.error))throw e.value}))},Nu=function(t){return 1!==t.rejection&&!t.parent},Ru=function(t){N(su,P,(function(){var e=t.facade;Qo?Su.emit("rejectionHandled",e):Mu("rejectionhandled",e,t.value)}))},Cu=function(t,e,n){return function(r){t(e,r,n)}},ku=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Tu(t,!0))},Lu=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new bu("Promise can't be resolved itself");var r=Pu(e);r?Xi((function(){var n={done:!1};try{N(r,e,Cu(Lu,n,t),Cu(ku,n,t))}catch(e){ku(n,e,t)}})):(t.value=e,t.state=1,Tu(t,!1))}catch(e){ku({done:!1},e,t)}}};if(lu&&(mu=(gu=function(t){ai(this,mu),gt(t),N(Ji,this);var e=vu(this);try{t(Cu(Lu,e),Cu(ku,e))}catch(t){ku(e,t)}}).prototype,(Ji=function(t){hu(this,{type:fu,done:!1,notified:!1,parent:!1,reactions:new zi,rejection:!1,state:0,value:null})}).prototype=Ie(mu,"then",(function(t,e){var n=vu(this),r=Ou(li(this,gu));return n.parent=!0,r.ok=!J(t)||t,r.fail=J(e)&&e,r.domain=Qo?Su.domain:void 0,0===n.state?n.reactions.add(r):Xi((function(){ju(r,n)})),r.promise})),Qi=function(){var t=new Ji,e=vu(t);this.promise=t,this.resolve=Cu(Lu,e),this.reject=Cu(ku,e)},au.f=Ou=function(t){return t===gu||undefined===t?new Qi(t):Eu(t)},J(qi)&&yu!==Object.prototype)){Zi=yu.then,pu||Ie(yu,"then",(function(t,e){var n=this;return new gu((function(t,e){N(Zi,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete yu.constructor}catch(t){}ni&&ni(yu,mu)}nn({global:!0,constructor:!0,wrap:!0,forced:lu},{Promise:gu}),ii(gu,fu,!1),tu=Z(fu),T&&tu&&!tu[ui]&&Wn(tu,ui,{configurable:!0,get:function(){return this}});var Vu={},zu=Lt("iterator"),Du=Array.prototype,Fu=Lt("iterator"),_u=function(t){if(!G(t))return mt(t,Fu)||mt(t,"@@iterator")||Vu[pn(t)]},$u=TypeError,Bu=function(t,e,n){var r,o;Yt(t);try{if(!(r=mt(t,"return"))){if("throw"===e)throw n;return n}r=N(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Yt(r),n},Uu=TypeError,Hu=function(t,e){this.stopped=t,this.result=e},Wu=Hu.prototype,Gu=function(t,e,n){var r,o,i,u,c,a,s,f,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),y=tr(e,l),g=function(t){return r&&Bu(r,"normal",t),new Hu(!0,t)},m=function(t){return d?(Yt(t),h?y(t[0],t[1],g):y(t[0],t[1])):h?y(t,g):y(t)};if(p)r=t.iterator;else if(v)r=t;else{if(!(o=_u(t)))throw new Uu(ht(t)+" is not iterable");if(void 0!==(f=o)&&(Vu.Array===f||Du[zu]===f)){for(i=0,u=Le(t);u>i;i++)if((c=m(t[i]))&&tt(Wu,c))return c;return new Hu(!1)}r=function(t,e){var n=arguments.length<2?_u(t):e;if(gt(n))return Yt(N(n,t));throw new $u(ht(t)+" is not iterable")}(t,o)}for(a=p?t.next:r.next;!(s=N(a,r)).done;){try{c=m(s.value)}catch(t){Bu(r,"throw",t)}if("object"==typeof c&&c&&tt(Wu,c))return c}return new Hu(!1)},Ku=Lt("iterator"),Xu=!1;try{var Yu=0,qu={next:function(){return{done:!!Yu++}},return:function(){Xu=!0}};qu[Ku]=function(){return this},Array.from(qu,(function(){throw 2}))}catch(t){}var Ju=function(t,e){try{if(!e&&!Xu)return!1}catch(t){return!1}var n=!1;try{var r={};r[Ku]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Qu=iu.CONSTRUCTOR||!Ju((function(t){qi.all(t).then(void 0,(function(){}))}));nn({target:"Promise",stat:!0,forced:Qu},{all:function(t){var e=this,n=au.f(e),r=n.resolve,o=n.reject,i=Yi((function(){var n=gt(e.resolve),i=[],u=0,c=1;Gu(t,(function(t){var a=u++,s=!1;c++,N(n,e,t).then((function(t){s||(s=!0,i[a]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Zu=iu.CONSTRUCTOR,tc=qi&&qi.prototype;if(nn({target:"Promise",proto:!0,forced:Zu,real:!0},{catch:function(t){return this.then(void 0,t)}}),J(qi)){var ec=Z("Promise").prototype.catch;tc.catch!==ec&&Ie(tc,"catch",ec,{unsafe:!0})}nn({target:"Promise",stat:!0,forced:Qu},{race:function(t){var e=this,n=au.f(e),r=n.reject,o=Yi((function(){var o=gt(e.resolve);Gu(t,(function(t){N(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),nn({target:"Promise",stat:!0,forced:iu.CONSTRUCTOR},{reject:function(t){var e=au.f(this);return(0,e.reject)(t),e.promise}});var nc=iu.CONSTRUCTOR;function rc(t,e,r,o,i){return void 0===r&&(r=""),void 0===o&&(o=""),void 0===i&&(i=""),Xr(this,void 0,void 0,(function(){var u,c,a,s,f,l,d;return Yr(this,(function(p){switch(p.label){case 0:return e?(t.restoreSelection(),u=t.getMenuConfig("insertVideo"),c=u.onInsertedVideo,a=u.checkVideo,s=u.parseVideoSrc,[4,a(e,r)]):[2];case 1:return"string"==typeof(f=p.sent())?(t.alert(f,"error"),[2]):null==f?[2]:[4,s(e)];case 2:return 0!==(l=p.sent()).trim().indexOf("<iframe ")&&(l=l.replace(/</g,"&lt;").replace(/>/g,"&gt;")),d={type:"video",src:l,poster:r,children:[{text:""}],style:{width:o,height:i}},Promise.resolve().then((function(){n.isSelectedEmptyParagraph(t)&&y.removeNodes(t,{mode:"highest"}),y.insertNodes(t,d,{mode:"highest"})})),c(d),[2]}}))}))}function oc(){return _o("w-e-insert-video")}Z("Promise"),nn({target:"Promise",stat:!0,forced:nc},{resolve:function(t){return function(t,e){if(Yt(t),Q(e)&&e.constructor===t)return e;var n=au.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var ic=function(){function t(){this.title=e("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=oc(),this.posterInputId=oc(),this.buttonId=oc()}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){var e=t.selection;return null==e||(!g.isCollapsed(e)||!!n.getSelectedElems(t).some((function(e){var r=n.getNodeType(e);return"pre"===r||("list-item"===r||!!t.isVoid(e))})))},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,i=this,c=i.srcInputId,a=i.posterInputId,s=i.buttonId,f=Jr(r(e("videoModule.videoSrc"),c,e("videoModule.videoSrcPlaceHolder")),2),l=f[0],d=f[1],p=Jr(r(e("videoModule.videoPoster"),a,e("videoModule.videoPosterPlaceHolder")),2),v=p[0],h=p[1],y=u(d),g=u(h),m=Jr(o(s,e("videoModule.ok")),1)[0];if(null==this.$content){var b=u("<div></div>");b.on("click","#".concat(s),(function(e){return Xr(n,void 0,void 0,(function(){var n,r;return Yr(this,(function(o){switch(o.label){case 0:return e.preventDefault(),n=b.find("#".concat(c)).val().trim(),r=b.find("#".concat(a)).val().trim(),[4,rc(t,n,r)];case 1:return o.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=b}var w=this.$content;return w.empty(),w.append(l),w.append(v),w.append(m),y.val(""),g.val(""),setTimeout((function(){y.focus()})),w[0]},t}(),uc=F([].join),cc=W!==Object||!Lo("join",",");nn({target:"Array",proto:!0,forced:cc},{join:function(t){return uc(Y(this),void 0===t?",":t)}});var ac,sc,fc,lc=!j((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),dc=ye("IE_PROTO"),pc=Object,vc=pc.prototype,hc=lc?pc.getPrototypeOf:function(t){var e=It(t);if(jt(e,dc))return e[dc];var n=e.constructor;return J(n)&&e instanceof n?n.prototype:e instanceof pc?vc:null},yc=Lt("iterator"),gc=!1;[].keys&&("next"in(fc=[].keys())?(sc=hc(hc(fc)))!==Object.prototype&&(ac=sc):gc=!0);var mc=!Q(ac)||j((function(){var t={};return ac[yc].call(t)!==t}));mc&&(ac={}),J(ac[yc])||Ie(ac,yc,(function(){return this}));var bc={IteratorPrototype:ac,BUGGY_SAFARI_ITERATORS:gc},wc=bc.IteratorPrototype,Sc=function(){return this},Oc=ce.PROPER,Ec=ce.CONFIGURABLE,xc=bc.IteratorPrototype,Ic=bc.BUGGY_SAFARI_ITERATORS,Pc=Lt("iterator"),jc="keys",Tc="values",Mc="entries",Ac=function(){return this},Nc=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=hr(wc,{next:L(+!r,n)}),ii(t,o,!1),Vu[o]=Sc}(n,e,r);var c,a,s,f=function(t){if(t===o&&h)return h;if(!Ic&&t&&t in p)return p[t];switch(t){case jc:case Tc:case Mc:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,v=p[Pc]||p["@@iterator"]||o&&p[o],h=!Ic&&v||f(o),y="Array"===e&&p.entries||v;if(y&&(c=hc(y.call(new t)))!==Object.prototype&&c.next&&(hc(c)!==xc&&(ni?ni(c,xc):J(c[Pc])||Ie(c,Pc,Ac)),ii(c,l,!0)),Oc&&o===Tc&&v&&v.name!==Tc&&(Ec?re(p,"name",Tc):(d=!0,h=function(){return N(v,this)})),o)if(a={values:f(Tc),keys:i?h:f(jc),entries:f(Mc)},u)for(s in a)(Ic||d||!(s in p))&&Ie(p,s,a[s]);else nn({target:e,proto:!0,forced:Ic||d},a);return p[Pc]!==h&&Ie(p,Pc,h,{name:o}),Vu[e]=h,a},Rc=function(t,e){return{value:t,done:e}},Cc=ne.f,kc="Array Iterator",Lc=Ee.set,Vc=Ee.getterFor(kc),zc=Nc(Array,"Array",(function(t,e){Lc(this,{type:kc,target:Y(t),index:0,kind:e})}),(function(){var t=Vc(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,Rc(void 0,!0);switch(t.kind){case"keys":return Rc(n,!1);case"values":return Rc(e[n],!1)}return Rc([n,e[n]],!1)}),"values"),Dc=Vu.Arguments=Vu.Array;if(br("keys"),br("values"),br("entries"),T&&"values"!==Dc.name)try{Cc(Dc,"name",{value:"values"})}catch(t){}var Fc=Pn("slice"),_c=Lt("species"),$c=Array,Bc=Math.max;nn({target:"Array",proto:!0,forced:!Fc},{slice:function(t,e){var n,r,o,i=Y(this),u=Le(i),c=Re(t,u),a=Re(void 0===e?u:e,u);if(rn(i)&&(n=i.constructor,(Sn(n)&&(n===$c||rn(n.prototype))||Q(n)&&null===(n=n[_c]))&&(n=void 0),n===$c||void 0===n))return di(i,c,a);for(r=new(void 0===n?$c:n)(Bc(a-c,0)),o=0;c<a;c++,o++)c in i&&cn(r,o,i[c]);return r.length=o,r}});var Uc=so.charAt,Hc="String Iterator",Wc=Ee.set,Gc=Ee.getterFor(Hc);Nc(String,"String",(function(t){Wc(this,{type:Hc,string:Cn(t),index:0})}),(function(){var t,e=Gc(this),n=e.string,r=e.index;return r>=n.length?Rc(void 0,!0):(t=Uc(n,r),e.index+=t.length,Rc(t,!1))}));var Kc=!j((function(){return Object.isExtensible(Object.preventExtensions({}))})),Xc=function(t,e,n){for(var r in e)Ie(t,r,e[r],n);return t},Yc=Ue.f,qc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jc={f:function(t){return qc&&"Window"===B(t)?function(t){try{return Yc(t)}catch(t){return di(qc)}}(t):Yc(Y(t))}},Qc=j((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Zc=Object.isExtensible,ta=j((function(){Zc(1)}))||Qc?function(t){return!!Q(t)&&((!Qc||"ArrayBuffer"!==B(t))&&(!Zc||Zc(t)))}:Zc,ea=O((function(t){var e=ne.f,n=!1,r=Nt("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=Ue.f,e=F([].splice),o={};o[r]=1,t(o).length&&(Ue.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},nn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Jc.f}))},fastKey:function(t,e){if(!Q(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!jt(t,r)){if(!ta(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!jt(t,r)){if(!ta(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return Kc&&n&&ta(t)&&!jt(t,r)&&i(t),t}};ge[r]=!0})),na=ea.getWeakData,ra=Ee.set,oa=Ee.getterFor,ia=rr.find,ua=rr.findIndex,ca=F([].splice),aa=0,sa=function(t){return t.frozen||(t.frozen=new fa)},fa=function(){this.entries=[]},la=function(t,e){return ia(t.entries,(function(t){return t[0]===e}))};fa.prototype={get:function(t){var e=la(this,t);if(e)return e[1]},has:function(t){return!!la(this,t)},set:function(t,e){var n=la(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=ua(this.entries,(function(e){return e[0]===t}));return~e&&ca(this.entries,e,1),!!~e}};var da,pa={getConstructor:function(t,e,n,r){var o=t((function(t,o){ai(t,i),ra(t,{type:e,id:aa++,frozen:null}),G(o)||Gu(o,t[r],{that:t,AS_ENTRIES:n})})),i=o.prototype,u=oa(e),c=function(t,e,n){var r=u(t),o=na(Yt(e),!0);return!0===o?sa(r).set(e,n):o[r.id]=n,t};return Xc(i,{delete:function(t){var e=u(this);if(!Q(t))return!1;var n=na(t);return!0===n?sa(e).delete(t):n&&jt(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!Q(t))return!1;var n=na(t);return!0===n?sa(e).has(t):n&&jt(n,e.id)}}),Xc(i,n?{get:function(t){var e=u(this);if(Q(t)){var n=na(t);if(!0===n)return sa(e).get(t);if(n)return n[e.id]}},set:function(t,e){return c(this,t,e)}}:{add:function(t){return c(this,t,!0)}}),o}},va=Ee.enforce,ha=Object,ya=Array.isArray,ga=ha.isExtensible,ma=ha.isFrozen,ba=ha.isSealed,wa=ha.freeze,Sa=ha.seal,Oa=!P.ActiveXObject&&"ActiveXObject"in P,Ea=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},xa=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=P[t],c=u&&u.prototype,a=u,s={},f=function(t){var e=F(c[t]);Ie(c,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(tn(t,!J(u)||!(o||c.forEach&&!j((function(){(new u).entries().next()})))))a=n.getConstructor(e,t,r,i),ea.enable();else if(tn(t,!0)){var l=new a,d=l[i](o?{}:-0,1)!==l,p=j((function(){l.has(1)})),v=Ju((function(t){new u(t)})),h=!o&&j((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));v||((a=e((function(t,e){ai(t,c);var n=function(t,e,n){var r,o;return ni&&J(r=e.constructor)&&r!==n&&Q(o=r.prototype)&&o!==n.prototype&&ni(t,o),t}(new u,t,a);return G(e)||Gu(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=c,c.constructor=a),(p||h)&&(f("delete"),f("has"),r&&f("get")),(h||d)&&f(i),o&&c.clear&&delete c.clear}return s[t]=a,nn({global:!0,constructor:!0,forced:a!==u},s),ii(a,t),o||n.setStrong(a,t,r),a}("WeakMap",Ea,pa),Ia=xa.prototype,Pa=F(Ia.set);if(ve)if(Oa){da=pa.getConstructor(Ea,"WeakMap",!0),ea.enable();var ja=F(Ia.delete),Ta=F(Ia.has),Ma=F(Ia.get);Xc(Ia,{delete:function(t){if(Q(t)&&!ga(t)){var e=va(this);return e.frozen||(e.frozen=new da),ja(this,t)||e.frozen.delete(t)}return ja(this,t)},has:function(t){if(Q(t)&&!ga(t)){var e=va(this);return e.frozen||(e.frozen=new da),Ta(this,t)||e.frozen.has(t)}return Ta(this,t)},get:function(t){if(Q(t)&&!ga(t)){var e=va(this);return e.frozen||(e.frozen=new da),Ta(this,t)?Ma(this,t):e.frozen.get(t)}return Ma(this,t)},set:function(t,e){if(Q(t)&&!ga(t)){var n=va(this);n.frozen||(n.frozen=new da),Ta(this,t)?Pa(this,t,e):n.frozen.set(t,e)}else Pa(this,t,e);return this}})}else Kc&&j((function(){var t=wa([]);return Pa(new xa,t,1),!ma(t)}))&&Xc(Ia,{set:function(t,e){var n;return ya(t)&&(ma(t)?n=wa:ba(t)&&(n=Sa)),Pa(this,t,e),n&&n(t),this}});var Aa=Lt("iterator"),Na=zc.values,Ra=function(t,e){if(t){if(t[Aa]!==Na)try{re(t,Aa,Na)}catch(e){t[Aa]=Na}if(ii(t,e,!0),No[e])for(var n in zc)if(t[n]!==zc[n])try{re(t,n,zc[n])}catch(e){t[n]=zc[n]}}};for(var Ca in No)Ra(P[Ca]&&P[Ca].prototype,Ca);function ka(t){return t.getMenuConfig("uploadVideo")}Ra(ko,"DOMTokenList");var La=new WeakMap;function Va(t,e){return Xr(this,void 0,void 0,(function(){var n,r,o,u;return Yr(this,(function(c){switch(c.label){case 0:return n=function(t){var e=La.get(t);if(null!=e)return e;var n=ka(t),r=n.onSuccess,o=n.onProgress,u=n.onFailed,c=n.customInsert,a=n.onError;return e=i(Kr(Kr({},n),{onProgress:function(e){t.showProgressBar(e),o&&o(e)},onSuccess:function(e,n){if(c)return c(n,(function(e,n){return rc(t,e,n)})),void r(e,n);var o=n.errno,i=void 0===o?1:o,a=n.data,s=void 0===a?{}:a;if(0===i){var f=s.url,l=void 0===f?"":f,d=s.poster;rc(t,l,void 0===d?"":d),r(e,n)}else u(e,n)},onError:function(t,e,n){a(t,e,n)}})),La.set(t,e),e}(t),r=e.name,o=e.type,u=e.size,n.addFile({name:r,type:o,size:u,data:e}),[4,n.upload()];case 1:return c.sent(),[2]}}))}))}var za=function(){function t(){this.title=e("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(e,n){return rc(t,e,n)}));else{var c="";o.length>0&&(c='accept="'.concat(o.join(", "),'"'));var a=u("body"),s=u('<input type="file" '.concat(c," multiple/>"));s.hide(),a.append(s),s.click(),s.on("change",(function(){var e=s[0].files;!function(t,e){var n,r,o,i;Xr(this,void 0,void 0,(function(){var u,c,a,s,f,l,d;return Yr(this,(function(p){switch(p.label){case 0:if(null==e)return[2];u=Array.prototype.slice.call(e),c=ka(t).customUpload,p.label=1;case 1:p.trys.push([1,12,13,18]),a=!0,s=Qr(u),p.label=2;case 2:return[4,s.next()];case 3:if(f=p.sent(),n=f.done)return[3,11];i=f.value,a=!1,p.label=4;case 4:return p.trys.push([4,,9,10]),l=i,c?[4,c(l,(function(e,n){return rc(t,e,n)}))]:[3,6];case 5:return p.sent(),[3,8];case 6:return[4,Va(t,l)];case 7:p.sent(),p.label=8;case 8:return[3,10];case 9:return a=!0,[7];case 10:return[3,2];case 11:return[3,18];case 12:return d=p.sent(),r={error:d},[3,18];case 13:return p.trys.push([13,,16,17]),a||n||!(o=s.return)?[3,15]:[4,o.call(s)];case 14:p.sent(),p.label=15;case 15:return[3,17];case 16:if(r)throw r.error;return[7];case 17:return[7];case 18:return[2]}}))}))}(t,e)}))}},t.prototype.isDisabled=function(t){var e=t.selection;return null==e||(!g.isCollapsed(e)||!!n.getSelectedElems(t).some((function(e){var r=n.getNodeType(e);return"pre"===r||("list-item"===r||!!t.isVoid(e))})))},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}(),Da={key:"insertVideo",factory:function(){return new ic},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},Fa={key:"uploadVideo",factory:function(){return new za},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'".concat(t.name,"' upload failed"),e)},onError:function(t,e,n){console.error("'".concat(t.name," upload error"),e,n)}}},_a={key:"editVideoSize",factory:function(){return new Uo}},$a={key:"editVideoSrc",factory:function(){return new Yo}};function Ba(t,e,n,r,o){return void 0===e&&(e=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:t,poster:e,width:n,height:r,style:o,children:[{text:""}]}}var Ua={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=u(t),o="",i="",c="auto",a="auto",s={},f=r.find("iframe");if(f.length>0)return c=f.attr("width")||"auto",a=f.attr("height")||"auto",s=$o(s=f.attr("style")||""),Ba(o=f[0].outerHTML,i,c,a,s);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),c=l.attr("width")||"auto",a=l.attr("height")||"auto",Ba(o,i=l.attr("poster")||"",c,a,s=$o(s=l.attr("style")||""))}};var Ha=ze.includes,Wa=j((function(){return!Array(1).includes()}));nn({target:"Array",proto:!0,forced:Wa},{includes:function(t){return Ha(this,t,arguments.length>1?arguments[1]:void 0)}}),br("includes");var Ga={renderElems:[{type:"video",renderElem:function(t,e,r){var o,i=t,u=i.src,c=void 0===u?"":u,a=i.poster,s=void 0===a?"":a,f=i.key,l=void 0===f?"":f,d=i.width,p=void 0===d?"auto":d,v=i.height,h=void 0===v?"auto":v,y=i.style,g=void 0===y?{}:y,m=i.textAlign,S=void 0===m?"center":m,O=n.isNodeSelected(r,t);if(0===c.trim().indexOf("<iframe ")){var E=Un(c,p,h,g);o=b("div",{className:"w-e-textarea-video-container","data-selected":O?"true":"",style:{textAlign:S},innerHTML:E})}else{var x=b("video",{key:l,poster:s,controls:!0,style:g},b("source",{src:c,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==p&&(x.data.width=p),"auto"!==h&&(x.data.height=h),o=b("div",{className:"w-e-textarea-video-container","data-selected":O?"true":"",style:{textAlign:S}},x)}return w("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},o)}}],elemsToHtml:[Hn],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var e=u(t),n=e;if("p"===Bn(e)){var r=e.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=u(o))}}var c=Bn(n);if("iframe"!==c&&"video"!==c)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var a=u('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(n),a[0]}}],parseElemsHtml:[Ua],menus:[Da,Fa,_a,$a],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,o=t;return o.isVoid=function(t){return"video"===t.type||e(t)},o.normalizeNode=function(t){var e=Jr(t,2),i=e[0],u=e[1];"video"===n.getNodeType(i)&&(n.isLastNode(o,i)&&y.insertNodes(o,n.genEmptyParagraph(),{at:[u[0]+1]}));return r([i,u])},o}};export{Ga as default};
2
- //# sourceMappingURL=index.esm.js.map