@wangeditor-next/video-module 1.3.55 → 1.3.57

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.
@@ -2,13 +2,13 @@
2
2
  * @description config interface
3
3
  * @author wangfupeng
4
4
  */
5
- import { ImageElement } from 'packages/basic-modules/src/modules/image/custom-types';
6
- import { VideoElement } from 'packages/video-module/src/module/custom-types';
7
- import { Descendant, Node, NodeEntry, Range } from 'slate';
8
- import { IDomEditor } from '../editor/interface';
9
- import { IMenuGroup } from '../menus/interface';
10
- import { IUploadConfig } from '../upload';
11
- import { DOMElement } from '../utils/dom';
5
+ import type { ImageElement } from 'packages/basic-modules/src/modules/image/custom-types';
6
+ import type { VideoElement } from 'packages/video-module/src/module/custom-types';
7
+ import type { Descendant, Node, NodeEntry, Range } from 'slate';
8
+ import type { IDomEditor } from '../editor/interface';
9
+ import type { IMenuGroup } from '../menus/interface';
10
+ import type { IUploadConfig } from '../upload';
11
+ import type { DOMElement } from '../utils/dom';
12
12
  interface IHoverbarConf {
13
13
  [key: string]: {
14
14
  match?: (editor: IDomEditor, n: Node) => boolean;
@@ -175,6 +175,9 @@ export interface IMenuConfig {
175
175
  uploadImage: IUploadImageConfig;
176
176
  codeSelectLang: ICodeLangConfig;
177
177
  }
178
+ export type IMenuConfigUpdate = {
179
+ [K in keyof IMenuConfig]?: Partial<IMenuConfig[K]>;
180
+ };
178
181
  /**
179
182
  * editor config
180
183
  */
@@ -205,7 +208,7 @@ export interface IEditorConfig {
205
208
  autoFocus: boolean;
206
209
  decorate?: (nodeEntry: NodeEntry) => Range[];
207
210
  maxLength?: number;
208
- MENU_CONF?: Partial<IMenuConfig>;
211
+ MENU_CONF?: IMenuConfigUpdate;
209
212
  hoverbarKeys?: IHoverbarConf;
210
213
  EXTEND_CONF?: any;
211
214
  skipCacheTypes?: string[];
@@ -3,13 +3,13 @@
3
3
  * @author wangfupeng
4
4
  */
5
5
  import './assets/index.less';
6
- import { IDomEditor } from './editor/interface';
7
- import { IRegisterMenuConf } from './menus/index';
8
- import { IParseElemHtmlConf, IPreParseHtmlConf, ParseStyleHtmlFnType } from './parse-html/index';
9
- import { IRenderElemConf, RenderStyleFnType } from './render/index';
10
- import { IElemToHtmlConf, styleToHtmlFnType } from './to-html/index';
6
+ import type { IDomEditor } from './editor/interface';
7
+ import type { IRegisterMenuConf } from './menus/index';
8
+ import type { IParseElemHtmlConf, IPreParseHtmlConf, ParseStyleHtmlFnType } from './parse-html/index';
9
+ import type { IRenderElemConf, RenderStyleFnType } from './render/index';
10
+ import type { IElemToHtmlConf, styleToHtmlFnType } from './to-html/index';
11
11
  export * from './create/index';
12
- export { IEditorConfig, IToolbarConfig, IUploadImageConfig, IUploadVideoConfig, } from './config/interface';
12
+ export type { IEditorConfig, IToolbarConfig, IUploadImageConfig, IUploadVideoConfig, } from './config/interface';
13
13
  export * from './editor/dom-editor';
14
14
  export * from './editor/interface';
15
15
  export * from './render/index';
@@ -23,6 +23,7 @@ declare class Toolbar {
23
23
  private registerGroup;
24
24
  private registerSingleItem;
25
25
  private getEditorInstance;
26
+ private syncToolbarState;
26
27
  /**
27
28
  * editor onChange 时触发(涉及 DOM 操作,加防抖)
28
29
  */
@@ -2,8 +2,8 @@
2
2
  * @description base button class
3
3
  * @author wangfupeng
4
4
  */
5
- import { IButtonMenu, IDropPanelMenu, IModalMenu } from '../interface';
6
5
  import { Dom7Array } from '../../utils/dom';
6
+ import { IButtonMenu, IDropPanelMenu, IModalMenu } from '../interface';
7
7
  import { IBarItem } from './index';
8
8
  declare abstract class BaseButton implements IBarItem {
9
9
  readonly $elem: Dom7Array;
@@ -4,6 +4,6 @@
4
4
  */
5
5
  import Toolbar from './bar/Toolbar';
6
6
  export { registerMenu } from './register';
7
- export { IButtonMenu, ISelectMenu, IDropPanelMenu, IModalMenu, IRegisterMenuConf, IOption, } from './interface';
8
- export { genModalInputElems, genModalButtonElems, genModalTextareaElems, } from './panel-and-modal/Modal';
7
+ export type { IButtonMenu, IDropPanelMenu, IModalMenu, IOption, IRegisterMenuConf, ISelectMenu, } from './interface';
8
+ export { genModalButtonElems, genModalInputElems, genModalTextareaElems, } from './panel-and-modal/Modal';
9
9
  export { Toolbar };
@@ -5,6 +5,7 @@
5
5
  import { Dom7Array, DOMElement } from '../utils/dom';
6
6
  declare class TextArea {
7
7
  private selectionChangeRoot;
8
+ private destroyed;
8
9
  readonly id: number;
9
10
  $box: Dom7Array;
10
11
  $textAreaContainer: Dom7Array;
@@ -21,6 +22,7 @@ declare class TextArea {
21
22
  private latestEditorSelection;
22
23
  constructor(boxSelector: string | DOMElement);
23
24
  private get editorInstance();
25
+ private getActiveEditor;
24
26
  private bindSelectionChange;
25
27
  private onDOMSelectionChange;
26
28
  flushDOMSelectionChange(): void;
@@ -3,5 +3,6 @@
3
3
  * @author wangfupeng
4
4
  */
5
5
  import createUploader from './createUploader';
6
- import { IUploadConfig } from './interface';
7
- export { createUploader, IUploadConfig };
6
+ import type { IUploadConfig } from './interface';
7
+ export { createUploader };
8
+ export type { IUploadConfig };
@@ -2,8 +2,8 @@
2
2
  * @description upload interface
3
3
  * @author wangfupeng
4
4
  */
5
- import { UppyFile } from '@uppy/core';
6
- import { IDomEditor } from '../editor/interface';
5
+ import type { UppyFile } from '@uppy/core';
6
+ import type { IDomEditor } from '../editor/interface';
7
7
  type FilesType = {
8
8
  [key: string]: UppyFile<{}, {}>;
9
9
  };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@wangeditor-next/core"),require("dom7"),require("slate"),require("nanoid"),require("snabbdom")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","dom7","slate","nanoid","snabbdom"],r):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorVideoModule=r(t.core,t.$,t.slate,t.nanoid,t.snabbdom)}(this,function(t,r,n,e,o){"use strict";t.i18nAddResources("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.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c,a,f={};function s(){if(a)return c;a=1;var t=function(t){return t&&t.Math===Math&&t};return c=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof i&&i)||t("object"==typeof c&&c)||function(){return this}()||Function("return this")()}var l,v,d,p,h,y,g,m,b={};function w(){return v?l:(v=1,l=function(t){try{return!!t()}catch(t){return!0}})}function S(){if(p)return d;p=1;var t=w();return d=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function O(){if(y)return h;y=1;var t=w();return h=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function E(){if(m)return g;m=1;var t=O(),r=Function.prototype.call;return g=t?r.bind(r):function(){return r.apply(r,arguments)},g}var x,j,P,T,I,M,A,C,N,R,k,D,L,z,V,F,_,$,B,U,H,W,G,q,K,Y,X,J,Q,Z,tt,rt,nt,et,ot,it,ut,ct,at,ft,st,lt={};function vt(){return P?j:(P=1,j=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function dt(){if(I)return T;I=1;var t=O(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return T=t?e:function(t){return function(){return n.apply(t,arguments)}},T}function pt(){if(A)return M;A=1;var t=dt(),r=t({}.toString),n=t("".slice);return M=function(t){return n(r(t),8,-1)}}function ht(){if(N)return C;N=1;var t=dt(),r=w(),n=pt(),e=Object,o=t("".split);return C=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}function yt(){return k?R:(k=1,R=function(t){return null==t})}function gt(){if(L)return D;L=1;var t=yt(),r=TypeError;return D=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function mt(){if(V)return z;V=1;var t=ht(),r=gt();return z=function(n){return t(r(n))}}function bt(){if(_)return F;_=1;var t="object"==typeof document&&document.all;return F=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function wt(){if(B)return $;B=1;var t=bt();return $=function(r){return"object"==typeof r?null!==r:t(r)}}function St(){if(H)return U;H=1;var t=s(),r=bt();return U=function(n,e){return arguments.length<2?(o=t[n],r(o)?o:void 0):t[n]&&t[n][e];var o},U}function Ot(){if(G)return W;G=1;var t=dt();return W=t({}.isPrototypeOf)}function Et(){if(K)return q;K=1;var t=s().navigator,r=t&&t.userAgent;return q=r?String(r):""}function xt(){if(X)return Y;X=1;var t,r,n=s(),e=Et(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),Y=r}function jt(){if(Q)return J;Q=1;var t=xt(),r=w(),n=s().String;return J=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Pt(){if(tt)return Z;tt=1;var t=jt();return Z=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Tt(){if(nt)return rt;nt=1;var t=St(),r=bt(),n=Ot(),e=Pt(),o=Object;return rt=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}function It(){if(ot)return et;ot=1;var t=String;return et=function(r){try{return t(r)}catch(t){return"Object"}}}function Mt(){if(ut)return it;ut=1;var t=bt(),r=It(),n=TypeError;return it=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function At(){if(at)return ct;at=1;var t=Mt(),r=yt();return ct=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}var Ct,Nt,Rt,kt,Dt,Lt,zt,Vt,Ft,_t,$t,Bt,Ut,Ht,Wt,Gt,qt,Kt,Yt,Xt,Jt,Qt,Zt,tr,rr={exports:{}};function nr(){return Nt?Ct:(Nt=1,Ct=!1)}function er(){if(kt)return Rt;kt=1;var t=s(),r=Object.defineProperty;return Rt=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function or(){if(Dt)return rr.exports;Dt=1;var t=nr(),r=s(),n=er(),e="__core-js_shared__",o=rr.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rr.exports}function ir(){if(zt)return Lt;zt=1;var t=or();return Lt=function(r,n){return t[r]||(t[r]=n||{})}}function ur(){if(Ft)return Vt;Ft=1;var t=gt(),r=Object;return Vt=function(n){return r(t(n))}}function cr(){if($t)return _t;$t=1;var t=dt(),r=ur(),n=t({}.hasOwnProperty);return _t=Object.hasOwn||function(t,e){return n(r(t),e)}}function ar(){if(Ut)return Bt;Ut=1;var t=dt(),r=0,n=Math.random(),e=t(1.1.toString);return Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function fr(){if(Wt)return Ht;Wt=1;var t=s(),r=ir(),n=cr(),e=ar(),o=jt(),i=Pt(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return Ht=function(t){return n(c,t)||(c[t]=o&&n(u,t)?u[t]:a("Symbol."+t)),c[t]}}function sr(){if(qt)return Gt;qt=1;var t=E(),r=wt(),n=Tt(),e=At(),o=function(){if(st)return ft;st=1;var t=E(),r=bt(),n=wt(),e=TypeError;return ft=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!n(c=t(u,o)))return c;if(r(u=o.valueOf)&&!n(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!n(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")}}(),i=fr(),u=TypeError,c=i("toPrimitive");return Gt=function(i,a){if(!r(i)||n(i))return i;var f,s=e(i,c);if(s){if(void 0===a&&(a="default"),f=t(s,i,a),!r(f)||n(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function lr(){if(Yt)return Kt;Yt=1;var t=sr(),r=Tt();return Kt=function(n){var e=t(n,"string");return r(e)?e:e+""}}function vr(){if(Jt)return Xt;Jt=1;var t=s(),r=wt(),n=t.document,e=r(n)&&r(n.createElement);return Xt=function(t){return e?n.createElement(t):{}}}function dr(){if(Zt)return Qt;Zt=1;var t=S(),r=w(),n=vr();return Qt=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function pr(){if(tr)return b;tr=1;var t=S(),r=E(),n=function(){if(x)return lt;x=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return lt.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,lt}(),e=vt(),o=mt(),i=lr(),u=cr(),c=dr(),a=Object.getOwnPropertyDescriptor;return b.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return e(!r(n.f,t,f),t[f])},b}var hr,yr,gr,mr,br,wr,Sr,Or={};function Er(){if(yr)return hr;yr=1;var t=S(),r=w();return hr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function xr(){if(mr)return gr;mr=1;var t=wt(),r=String,n=TypeError;return gr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function jr(){if(br)return Or;br=1;var t=S(),r=dr(),n=Er(),e=xr(),o=lr(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return Or.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=c(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=o(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[n]=c.value),t},Or}function Pr(){if(Sr)return wr;Sr=1;var t=S(),r=jr(),n=vt();return wr=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}var Tr,Ir,Mr,Ar,Cr,Nr,Rr,kr,Dr,Lr,zr,Vr,Fr,_r,$r,Br={exports:{}};function Ur(){if(Ir)return Tr;Ir=1;var t=S(),r=cr(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=r(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(n,"name").configurable);return Tr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Hr(){if(Ar)return Mr;Ar=1;var t=dt(),r=bt(),n=or(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),Mr=n.inspectSource}function Wr(){if(Nr)return Cr;Nr=1;var t=s(),r=bt(),n=t.WeakMap;return Cr=r(n)&&/native code/.test(String(n))}function Gr(){if(kr)return Rr;kr=1;var t=ir(),r=ar(),n=t("keys");return Rr=function(t){return n[t]||(n[t]=r(t))}}function qr(){return Lr?Dr:(Lr=1,Dr={})}function Kr(){if(Vr)return zr;Vr=1;var t,r,n,e=Wr(),o=s(),i=wt(),u=Pr(),c=cr(),a=or(),f=Gr(),l=qr(),v="Object already initialized",d=o.TypeError,p=o.WeakMap;if(e||a.state){var h=a.state||(a.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new d(v);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var y=f("state");l[y]=!0,t=function(t,r){if(c(t,y))throw new d(v);return r.facade=t,u(t,y,r),r},r=function(t){return c(t,y)?t[y]:{}},n=function(t){return c(t,y)}}return zr={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!i(n)||(e=r(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return e}}}}function Yr(){if(Fr)return Br.exports;Fr=1;var t=dt(),r=w(),n=bt(),e=cr(),o=S(),i=Ur().CONFIGURABLE,u=Hr(),c=Kr(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,v=t("".slice),d=t("".replace),p=t([].join),h=o&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),g=Br.exports=function(t,r,n){"Symbol("===v(s(r),0,7)&&(r="["+d(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return e(u,"source")||(u.source=p(y,"string"==typeof r?r:"")),t};return Function.prototype.toString=g(function(){return n(this)&&f(this).source||u(this)},"toString"),Br.exports}function Xr(){if($r)return _r;$r=1;var t=bt(),r=jr(),n=Yr(),e=er();return _r=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(t(u)&&n(u,f,c),c.global)a?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var Jr,Qr,Zr,tn,rn,nn,en,on,un,cn,an,fn,sn,ln,vn,dn,pn,hn={};function yn(){if(tn)return Zr;tn=1;var t=function(){if(Qr)return Jr;Qr=1;var t=Math.ceil,r=Math.floor;return Jr=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return Zr=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function gn(){if(nn)return rn;nn=1;var t=yn(),r=Math.max,n=Math.min;return rn=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function mn(){if(on)return en;on=1;var t=yn(),r=Math.min;return en=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function bn(){if(cn)return un;cn=1;var t=mn();return un=function(r){return t(r.length)}}function wn(){if(ln)return sn;ln=1;var t=dt(),r=cr(),n=mt(),e=function(){if(fn)return an;fn=1;var t=mt(),r=gn(),n=bn(),e=function(e){return function(o,i,u){var c=t(o),a=n(c);if(0===a)return!e&&-1;var f,s=r(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return an={includes:e(!0),indexOf:e(!1)}}().indexOf,o=qr(),i=t([].push);return sn=function(t,u){var c,a=n(t),f=0,s=[];for(c in a)!r(o,c)&&r(a,c)&&i(s,c);for(;u.length>f;)r(a,c=u[f++])&&(~e(s,c)||i(s,c));return s}}function Sn(){return dn?vn:(dn=1,vn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function On(){if(pn)return hn;pn=1;var t=wn(),r=Sn().concat("length","prototype");return hn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},hn}var En,xn,jn,Pn,Tn,In,Mn,An,Cn,Nn,Rn,kn,Dn,Ln,zn,Vn,Fn,_n,$n,Bn,Un,Hn,Wn,Gn,qn,Kn,Yn,Xn,Jn,Qn,Zn={};function te(){if(jn)return xn;jn=1;var t=St(),r=dt(),n=On(),e=(En||(En=1,Zn.f=Object.getOwnPropertySymbols),Zn),o=xr(),i=r([].concat);return xn=t("Reflect","ownKeys")||function(t){var r=n.f(o(t)),u=e.f;return u?i(r,u(t)):r}}function re(){if(Tn)return Pn;Tn=1;var t=cr(),r=te(),n=pr(),e=jr();return Pn=function(o,i,u){for(var c=r(i),a=e.f,f=n.f,s=0;s<c.length;s++){var l=c[s];t(o,l)||u&&t(u,l)||a(o,l,f(i,l))}}}function ne(){if(Mn)return In;Mn=1;var t=w(),r=bt(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||a!==u&&(r(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return In=e}function ee(){if(Cn)return An;Cn=1;var t=s(),r=pr().f,n=Pr(),e=Xr(),o=er(),i=re(),u=ne();return An=function(c,a){var f,s,l,v,d,p=c.target,h=c.global,y=c.stat;if(f=h?t:y?t[p]||o(p,{}):t[p]&&t[p].prototype)for(s in a){if(v=a[s],l=c.dontCallGetSet?(d=r(f,s))&&d.value:f[s],!u(h?s:p+(y?".":"#")+s,c.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(c.sham||l&&l.sham)&&n(v,"sham",!0),e(f,s,v,c)}}}function oe(){if(Rn)return Nn;Rn=1;var t=pt();return Nn=Array.isArray||function(r){return"Array"===t(r)}}function ie(){if(Dn)return kn;Dn=1;var t=TypeError;return kn=function(r){if(r>9007199254740991)throw new t("Maximum allowed index exceeded");return r}}function ue(){if(zn)return Ln;zn=1;var t=S(),r=jr(),n=vt();return Ln=function(e,o,i){t?r.f(e,o,n(0,i)):e[o]=i}}function ce(){if(Fn)return Vn;Fn=1;var t=S(),r=oe(),n=TypeError,e=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return Vn=o?function(t,o){if(r(t)&&!e(t,"length").writable)throw new n("Cannot set read only .length");return t.length=o}:function(t,r){return t.length=r}}function ae(){if($n)return _n;$n=1;var t={};return t[fr()("toStringTag")]="z",_n="[object z]"===String(t)}function fe(){if(Un)return Bn;Un=1;var t=ae(),r=bt(),n=pt(),e=fr()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Bn=t?n:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?c:i?n(u):"Object"===(a=n(u))&&r(u.callee)?"Arguments":a}}function se(){if(Wn)return Hn;Wn=1;var t=dt(),r=w(),n=bt(),e=fe(),o=St(),i=Hr(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=t(a.exec),s=!a.test(u),l=function(t){if(!n(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(t))}catch(t){return!0}};return v.sham=!0,Hn=!c||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function le(){if(qn)return Gn;qn=1;var t=oe(),r=se(),n=wt(),e=fr()("species"),o=Array;return Gn=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function ve(){if(Yn)return Kn;Yn=1;var t=le();return Kn=function(r,n){return new(t(r))(0===n?0:n)}}function de(){if(Jn)return Xn;Jn=1;var t=w(),r=fr(),n=xt(),e=r("species");return Xn=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(Qn)return f;Qn=1;var t=ee(),r=w(),n=oe(),e=wt(),o=ur(),i=bn(),u=ie(),c=ue(),a=ce(),s=ve(),l=de(),v=fr(),d=xt(),p=v("isConcatSpreadable"),h=d>=51||!r(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),y=function(t){if(!e(t))return!1;var r=t[p];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!h||!l("concat")},{concat:function(t){var r,n,e,f,l,v=o(this),d=s(v,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(y(l=-1===r?v:arguments[r]))for(f=i(l),u(p+f),n=0;n<f;n++,p++)n in l&&c(d,p,l[n]);else u(p+1),c(d,p++,l);return a(d,p),d}})}();var pe,he,ye,ge,me,be,we,Se,Oe,Ee={};function xe(){if(he)return pe;he=1;var t=fe(),r=String;return pe=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}function je(){return ge?ye:(ge=1,ye="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(Oe)return Ee;Oe=1;var t=ee(),r=function(){if(be)return me;be=1;var t=dt(),r=gt(),n=xe(),e=je(),o=t("".replace),i=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),c=function(t){return function(e){var c=n(r(e));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return me={start:c(1),end:c(2),trim:c(3)}}().trim,n=function(){if(Se)return we;Se=1;var t=Ur().PROPER,r=w(),n=je();return we=function(e){return r(function(){return!!n[e]()||"​…᠎"!=="​…᠎"[e]()||t&&n[e].name!==e})}}();t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return r(this)}})}();var Pe,Te,Ie={};function Me(t){return t.length?t[0].tagName.toLowerCase():""}function Ae(t,n,e,o){void 0===n&&(n="auto"),void 0===e&&(e="auto"),void 0===o&&(o={});var i=r(t),u=o.width,c=void 0===u?"":u,a=o.height,f=void 0===a?"":a,s="";return c&&(s+="width: ".concat(c,";")),f&&(s+="height: ".concat(f,";")),i.attr("width",n),i.attr("height",e),i.attr("style",s),i[0].outerHTML}Te||(Te=1,function(){if(Pe)return Ie;Pe=1;var t=ee(),r=s();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),r.append&&(r.fn.append=r.append),r.on&&(r.fn.on=r.on),r.focus&&(r.fn.focus=r.focus),r.attr&&(r.fn.attr=r.attr),r.val&&(r.fn.val=r.val),r.html&&(r.fn.html=r.html),r.parent&&(r.fn.parent=r.parent),r.hasClass&&(r.fn.hasClass=r.hasClass),r.empty&&(r.fn.empty=r.empty);var Ce,Ne,Re,ke={type:"video",elemToHtml:function(t,r){var n=t,e=n.src,o=void 0===e?"":e,i=n.poster,u=void 0===i?"":i,c=n.width,a=void 0===c?"auto":c,f=n.height,s=void 0===f?"auto":f,l=n.style,v=void 0===l?{}:l,d=n.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===d?"center":d,';">\n');if(0===o.trim().indexOf("<iframe ")){p+=Ae(o,a,s,v)}else{var h=v.width,y=void 0===h?"":h,g=v.height,m=void 0===g?"":g,b="";y&&(b+="width: ".concat(y,";")),m&&(b+="height: ".concat(m,";")),p+='<video poster="'.concat(u,'" controls="true" width="').concat(a,'" height="').concat(s,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return p+="\n</div>"}},De={};function Le(){if(Ne)return Ce;Ne=1;var t=Yr(),r=jr();return Ce=function(n,e,o){return o.get&&t(o.get,e,{getter:!0}),o.set&&t(o.set,e,{setter:!0}),r.f(n,e,o)}}!function(){if(Re)return De;Re=1;var t=S(),r=Ur().EXISTS,n=dt(),e=Le(),o=Function.prototype,i=n(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=n(u.exec);t&&!r&&e(o,"name",{configurable:!0,get:function(){try{return c(u,i(this))[1]}catch(t){return""}}})}();var ze,Ve,Fe,_e,$e,Be,Ue={};function He(){if(_e)return Fe;_e=1;var t=function(){if(Ve)return ze;Ve=1;var t=pt(),r=dt();return ze=function(n){if("Function"===t(n))return r(n)}}(),r=Mt(),n=O(),e=t(t.bind);return Fe=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},Fe}function We(){if(Be)return $e;Be=1;var t=He(),r=ht(),n=ur(),e=bn(),o=ve(),i=ue(),u=function(u){var c=1===u,a=2===u,f=3===u,s=4===u,l=6===u,v=7===u,d=5===u||l;return function(p,h,y){for(var g,m,b=n(p),w=r(b),S=e(w),O=t(h,y),E=0,x=0,j=c?o(p,S):a||v?o(p,0):void 0;S>E;E++)if((d||E in w)&&(m=O(g=w[E],E,b),u))if(c)i(j,E,m);else if(m)switch(u){case 3:return!0;case 5:return g;case 6:return E;case 2:i(j,x++,g)}else switch(u){case 4:return!1;case 7:i(j,x++,g)}return l?-1:f||s?s:j}};return $e={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}var Ge,qe,Ke,Ye,Xe,Je,Qe,Ze,to,ro,no={};function eo(){if(qe)return Ge;qe=1;var t=wn(),r=Sn();return Ge=Object.keys||function(n){return t(n,r)}}function oo(){if(Xe)return Ye;Xe=1;var t=St();return Ye=t("document","documentElement")}function io(){if(Qe)return Je;Qe=1;var t,r=xr(),n=function(){if(Ke)return no;Ke=1;var t=S(),r=Er(),n=jr(),e=xr(),o=mt(),i=eo();return no.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,c=o(r),a=i(r),f=a.length,s=0;f>s;)n.f(t,u=a[s++],c[u]);return t},no}(),e=Sn(),o=qr(),i=oo(),u=vr(),c=Gr(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},v=function(t){return"<"+f+">"+t+"</"+f+">"},d=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,o;p="undefined"!=typeof document?document.domain&&t?d(t):(n=u("iframe"),o="java"+f+":",n.style.display="none",i.appendChild(n),n.src=String(o),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):d(t);for(var c=e.length;c--;)delete p[a][e[c]];return p()};return o[s]=!0,Je=Object.create||function(t,e){var o;return null!==t?(l[a]=r(t),o=new l,l[a]=null,o[s]=t):o=p(),void 0===e?o:n.f(o,e)}}function uo(){if(to)return Ze;to=1;var t=fr(),r=io(),n=jr().f,e=t("unscopables"),o=Array.prototype;return void 0===o[e]&&n(o,e,{configurable:!0,value:r(null)}),Ze=function(t){o[e][t]=!0}}!function(){if(ro)return Ue;ro=1;var t=ee(),r=We().find,n=uo(),e="find",o=!0;e in[]&&Array(1)[e](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(e)}();var co,ao,fo,so={};!function(){if(fo)return so;fo=1;var t=ae(),r=Xr(),n=function(){if(ao)return co;ao=1;var t=ae(),r=fe();return co=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var lo,vo,po,ho,yo,go,mo,bo,wo,So,Oo,Eo={};function xo(){if(vo)return lo;vo=1;var t=xr();return lo=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}function jo(){if(So)return wo;So=1;var t,r,n=E(),e=dt(),o=xe(),i=xo(),u=function(){if(ho)return po;ho=1;var t=w(),r=s().RegExp,n=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=n||t(function(){return!r("a","y").sticky}),o=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return po={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),c=ir(),a=io(),f=Kr().get,l=function(){if(go)return yo;go=1;var t=w(),r=s().RegExp;return yo=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),v=function(){if(bo)return mo;bo=1;var t=w(),r=s().RegExp;return mo=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),d=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,y=e("".charAt),g=e("".indexOf),m=e("".replace),b=e("".slice),S=(r=/b*/g,n(p,t=/a/,"a"),n(p,r,"a"),0!==t.lastIndex||0!==r.lastIndex),O=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],j=function(t,r){for(var n=t.groups=a(null),e=0;e<r.length;e++){var o=r[e];n[o[0]]=t[o[1]]}};return(S||x||O||l||v)&&(h=function(t){var r,e,u,c=this,a=f(c),s=o(t),l=a.raw;if(l)return l.lastIndex=c.lastIndex,r=n(h,l,s),c.lastIndex=l.lastIndex,r&&a.groups&&j(r,a.groups),r;var v=a.groups,w=O&&c.sticky,E=n(i,c),P=c.source,T=0,I=s;if(w){E=m(E,"y",""),-1===g(E,"g")&&(E+="g"),I=b(s,c.lastIndex);var M=c.lastIndex>0&&y(s,c.lastIndex-1);c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==M&&"\r"!==M&&"\u2028"!==M&&"\u2029"!==M)&&(P="(?: (?:"+P+"))",I=" "+I,T++),e=new RegExp("^(?:"+P+")",E)}x&&(e=new RegExp("^"+P+"$(?!\\s)",E)),S&&(u=c.lastIndex);var A=n(p,w?e:c,I);return w?A?(A.input=s,A[0]=b(A[0],T),A.index=c.lastIndex,c.lastIndex+=A[0].length):c.lastIndex=0:S&&A&&(c.lastIndex=c.global?A.index+A[0].length:u),x&&A&&A.length>1&&n(d,A[0],e,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(A[t]=void 0)}),A&&v&&j(A,v),A}),wo=h}function Po(){if(Oo)return Eo;Oo=1;var t=ee(),r=jo();return t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),Eo}Po();var To=function(){return To=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},To.apply(this,arguments)};function Io(t,r,n,e){return new(n||(n=Promise))(function(o,i){function u(t){try{a(e.next(t))}catch(t){i(t)}}function c(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n(function(t){t(r)})).then(u,c)}a((e=e.apply(t,r||[])).next())})}function Mo(t,r){var n,e,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(n=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(t,i)}catch(t){c=[6,t],e=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 Ao(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Co(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,o,i=n.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function No(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t[Symbol.asyncIterator];return n?n.call(t):(t=Ao(t),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(n){r[n]=t[n]&&function(r){return new Promise(function(e,o){(function(t,r,n,e){Promise.resolve(e).then(function(r){t({value:r,done:n})},r)})(e,o,(r=t[n](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Ro,ko,Do,Lo,zo,Vo,Fo,_o,$o,Bo,Uo,Ho,Wo,Go,qo,Ko,Yo,Xo={};function Jo(){if(ko)return Ro;ko=1;var t=O(),r=Function.prototype,n=r.apply,e=r.call;return Ro="object"==typeof Reflect&&Reflect.apply||(t?e.bind(n):function(){return e.apply(n,arguments)}),Ro}function Qo(){if(Vo)return zo;Vo=1;var t=dt(),r=yn(),n=xe(),e=gt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),c=function(t){return function(c,a){var f,s,l=n(e(c)),v=r(a),d=l.length;return v<0||v>=d?t?"":void 0:(f=i(l,v))<55296||f>56319||v+1===d||(s=i(l,v+1))<56320||s>57343?t?o(l,v):f:t?u(l,v,v+2):s-56320+(f-55296<<10)+65536}};return zo={codeAt:c(!1),charAt:c(!0)}}function Zo(){if(_o)return Fo;_o=1;var t=Qo().charAt;return Fo=function(r,n,e){return n+(e&&t(r,n).length||1)}}function ti(){if(Bo)return $o;Bo=1;var t=dt(),r=ur(),n=Math.floor,e=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;return $o=function(t,a,f,s,l,v){var d=f+t.length,p=s.length,h=c;return void 0!==l&&(l=r(l),h=u),o(v,h,function(r,o){var u;switch(e(o,0)){case"$":return"$";case"&":return t;case"`":return i(a,0,f);case"'":return i(a,d);case"<":u=l[i(o,1,-1)];break;default:var c=+o;if(0===c)return r;if(c>p){var v=n(c/10);return 0===v?r:v<=p?void 0===s[v-1]?e(o,1):s[v-1]+e(o,1):r}u=s[c-1]}return void 0===u?"":u})}}function ri(){if(Go)return Wo;Go=1;var t=E(),r=cr(),n=Ot(),e=function(){if(Ho)return Uo;Ho=1;var t=s(),r=w(),n=t.RegExp,e=!r(function(){var t=!0;try{n(".","d")}catch(r){t=!1}var r={},e="",o=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(r,t,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in t&&(u.hasIndices="d"),u)i(c,u[c]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(r)!==o||e!==o});return Uo={correct:e}}(),o=xo(),i=RegExp.prototype;return Wo=e.correct?function(t){return t.flags}:function(u){return e.correct||!n(i,u)||r(u,"flags")?u.flags:t(o,u)}}!function(){if(Yo)return Xo;Yo=1;var t=Jo(),r=E(),n=dt(),e=function(){if(Lo)return Do;Lo=1,Po();var t=E(),r=Xr(),n=jo(),e=w(),o=fr(),i=Pr(),u=o("species"),c=RegExp.prototype;return Do=function(a,f,s,l){var v=o(a),d=!e(function(){var t={};return t[v]=function(){return 7},7!==""[a](t)}),p=d&&!e(function(){var t=!1,r=/a/;if("split"===a){var n={};n[u]=function(){return r},(r={constructor:n,flags:""})[v]=/./[v]}return r.exec=function(){return t=!0,null},r[v](""),!t});if(!d||!p||s){var h=/./[v],y=f(v,""[a],function(r,e,o,i,u){var a=e.exec;return a===n||a===c.exec?d&&!u?{done:!0,value:t(h,e,o,i)}:{done:!0,value:t(r,o,e,i)}:{done:!1}});r(String.prototype,a,y[0]),r(c,v,y[1])}l&&i(c[v],"sham",!0)}}(),o=w(),i=xr(),u=bt(),c=wt(),a=yn(),f=mn(),s=xe(),l=gt(),v=Zo(),d=At(),p=ti(),h=ri(),y=function(){if(Ko)return qo;Ko=1;var t=E(),r=xr(),n=bt(),e=pt(),o=jo(),i=TypeError;return qo=function(u,c){var a=u.exec;if(n(a)){var f=t(a,u,c);return null!==f&&r(f),f}if("RegExp"===e(u))return t(o,u,c);throw new i("RegExp#exec called on incompatible receiver")}}(),g=fr()("replace"),m=Math.max,b=Math.min,S=n([].concat),O=n([].push),x=n("".indexOf),j=n("".slice),P=function(t){return void 0===t?t:String(t)},T="$0"==="a".replace(/./,"$0"),I=!!/./[g]&&""===/./[g]("a","$0");e("replace",function(n,e,o){var w=I?"$":"$0";return[function(t,n){var o=l(this),i=c(t)?d(t,g):void 0;return i?r(i,t,o,n):r(e,s(o),t,n)},function(r,n){var c=i(this),l=s(r),d=u(n);d||(n=s(n));var g=s(h(c));if("string"==typeof n&&!~x(n,w)&&!~x(n,"$<")&&!~x(g,"y")){var E=o(e,c,l,n);if(E.done)return E.value}var T,I=!!~x(g,"g");I&&(T=!!~x(g,"u")||!!~x(g,"v"),c.lastIndex=0);for(var M,A=[];null!==(M=y(c,l))&&(O(A,M),I);){""===s(M[0])&&(c.lastIndex=v(l,f(c.lastIndex),T))}for(var C="",N=0,R=0;R<A.length;R++){for(var k,D=s((M=A[R])[0]),L=m(b(a(M.index),l.length),0),z=[],V=1;V<M.length;V++)O(z,P(M[V]));var F=M.groups;if(d){var _=S([D],z,L,l);void 0!==F&&O(_,F),k=s(t(n,void 0,_))}else k=p(D,l,L,z,F,n);L>=N&&(C+=j(l,N,L)+k,N=L+D.length)}return C+j(l,N)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!T||I)}();var ni,ei,oi,ii,ui,ci,ai,fi,si,li={};function vi(){return ei?ni:(ei=1,ni={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})}function di(){if(ii)return oi;ii=1;var t=vr()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return oi=r===Object.prototype?void 0:r}function pi(){if(ci)return ui;ci=1;var t=w();return ui=function(r,n){var e=[][r];return!!e&&t(function(){e.call(null,n||function(){return 1},1)})}}function hi(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(e.nanoid())}function yi(t){var r={};return t.trim().split(";").forEach(function(t){if(t){var n=Co(t.split(":"),2),e=n[0],o=n[1];e&&o&&(r[e.trim()]=o.trim())}}),r}function gi(){return hi("w-e-insert-video")}!function(){if(si)return li;si=1;var t=s(),r=vi(),n=di(),e=function(){if(fi)return ai;fi=1;var t=We().forEach,r=pi()("forEach");return ai=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},ai}(),o=Pr(),i=function(t){if(t&&t.forEach!==e)try{o(t,"forEach",e)}catch(r){t.forEach=e}};for(var u in r)r[u]&&i(t[u]&&t[u].prototype);i(n)}();var mi=function(){function e(){this.title=t.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=gi(),this.heightInputId=gi(),this.buttonId=gi()}return e.prototype.getSelectedVideoNode=function(r){return t.DomEditor.getSelectedNodeByType(r,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(e){var o=this,i=o.widthInputId,u=o.heightInputId,c=o.buttonId,a=Co(t.genModalInputElems(t.t("videoModule.width"),i,"auto"),2),f=a[0],s=a[1],l=r(s),v=Co(t.genModalInputElems(t.t("videoModule.height"),u,"auto"),2),d=v[0],p=v[1],h=r(p),y=Co(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0],g=this.getSelectedVideoNode(e);if(null==this.$content){var m=r("<div></div>");m.on("click","#".concat(c),function(r){r.preventDefault();var o=m.find("#".concat(i)).val().trim(),c=m.find("#".concat(u)).val().trim(),a=function(t){return/^\d+(\.\d+)?%$/.test(t)},f=function(t){return/^\d+(\.\d+)?$/.test(t)},s="auto",l="auto";a(o)?s=o:f(o)&&(s="".concat(parseInt(o,10),"px")),a(c)?l=c:f(c)&&(l="".concat(parseInt(c,10),"px"));var v=g.style,d=void 0===v?{}:v;e.restoreSelection();var p={style:To(To({},d),{width:s,height:l})};n.Transforms.setNodes(e,p,{match:function(r){return t.DomEditor.checkNodeType(r,"video")}}),e.hidePanelOrModal()}),this.$content=m}var b=this.$content;if(b.empty(),b.append(f),b.append(d),b.append(y),null==g)return b[0];var w=g.style,S=void 0===w?{}:w,O=S.width,E=void 0===O?"":O,x=S.height,j=void 0===x?"":x;return l.val(E),h.val(j),setTimeout(function(){l.focus()}),b[0]},e}();function bi(){return hi("w-e-edit-video")}var wi,Si,Oi,Ei,xi,ji,Pi,Ti,Ii,Mi,Ai,Ci,Ni,Ri,ki,Di,Li,zi,Vi,Fi,_i,$i,Bi,Ui,Hi,Wi,Gi,qi,Ki,Yi,Xi,Ji,Qi,Zi,tu,ru,nu,eu,ou,iu,uu,cu,au,fu,su,lu,vu,du,pu,hu,yu=function(){function e(){this.title=t.t("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=bi(),this.posterInputId=bi(),this.buttonId=bi()}return e.prototype.getSelectedVideoNode=function(r){return t.DomEditor.getSelectedNodeByType(r,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(e){var o=this,i=this,u=i.srcInputId,c=i.posterInputId,a=i.buttonId,f=Co(t.genModalInputElems(t.t("videoModule.videoSrc"),u,t.t("videoModule.videoSrcPlaceHolder")),2),s=f[0],l=f[1],v=Co(t.genModalInputElems(t.t("videoModule.videoPoster"),c,t.t("videoModule.videoPosterPlaceHolder")),2),d=v[0],p=v[1],h=r(l),y=r(p),g=Co(t.genModalButtonElems(a,t.t("videoModule.ok")),1)[0];if(null==this.$content){var m=r("<div></div>");m.on("click","#".concat(a),function(r){return Io(o,void 0,void 0,function(){var o,i,a,f;return Mo(this,function(s){return r.preventDefault(),o=m.find("#".concat(u)).val().trim(),i=m.find("#".concat(c)).val().trim(),a=hi("video-"),f={src:o,poster:i,key:a},e.restoreSelection(),n.Transforms.setNodes(e,f,{match:function(r){return t.DomEditor.checkNodeType(r,"video")}}),e.hidePanelOrModal(),[2]})})}),this.$content=m}var b=this.$content;b.empty(),b.append(s),b.append(d),b.append(g);var w=this.getSelectedVideoNode(e);if(null==w)return b[0];var S=w.src,O=void 0===S?"":S,E=w.poster,x=void 0===E?"":E;return h.val(O),y.val(x),setTimeout(function(){h.focus()}),b[0]},e}(),gu={};function mu(){if(Si)return wi;Si=1;var t=s(),r=Et(),n=pt(),e=function(t){return r.slice(0,t.length)===t};return wi=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function bu(){if(Ei)return Oi;Ei=1;var t=mu();return Oi="NODE"===t}function wu(){if(Mi)return Ii;Mi=1;var t=wt();return Ii=function(r){return t(r)||null===r}}function Su(){if(Ci)return Ai;Ci=1;var t=wu(),r=String,n=TypeError;return Ai=function(e){if(t(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}}function Ou(){if(Ri)return Ni;Ri=1;var t=function(){if(Ti)return Pi;Ti=1;var t=dt(),r=Mt();return Pi=function(n,e,o){try{return t(r(Object.getOwnPropertyDescriptor(n,e)[o]))}catch(t){}}}(),r=wt(),n=gt(),e=Su();return Ni=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=t(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(t){}return function(t,u){return n(t),e(u),r(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function Eu(){if(Di)return ki;Di=1;var t=jr().f,r=cr(),n=fr()("toStringTag");return ki=function(e,o,i){e&&!i&&(e=e.prototype),e&&!r(e,n)&&t(e,n,{configurable:!0,value:o})}}function xu(){if(zi)return Li;zi=1;var t=St(),r=Le(),n=fr(),e=S(),o=n("species");return Li=function(n){var i=t(n);e&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}function ju(){if(Fi)return Vi;Fi=1;var t=Ot(),r=TypeError;return Vi=function(n,e){if(t(e,n))return n;throw new r("Incorrect invocation")}}function Pu(){if($i)return _i;$i=1;var t=se(),r=It(),n=TypeError;return _i=function(e){if(t(e))return e;throw new n(r(e)+" is not a constructor")}}function Tu(){if(Ui)return Bi;Ui=1;var t=xr(),r=Pu(),n=yt(),e=fr()("species");return Bi=function(o,i){var u,c=t(o).constructor;return void 0===c||n(u=t(c)[e])?i:r(u)}}function Iu(){if(Wi)return Hi;Wi=1;var t=dt();return Hi=t([].slice)}function Mu(){if(qi)return Gi;qi=1;var t=TypeError;return Gi=function(r,n){if(r<n)throw new t("Not enough arguments");return r}}function Au(){if(Yi)return Ki;Yi=1;var t=Et();return Ki=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function Cu(){if(Ji)return Xi;Ji=1;var t,r,n,e,o=s(),i=Jo(),u=He(),c=bt(),a=cr(),f=w(),l=oo(),v=Iu(),d=vr(),p=Mu(),h=Au(),y=bu(),g=o.setImmediate,m=o.clearImmediate,b=o.process,S=o.Dispatch,O=o.Function,E=o.MessageChannel,x=o.String,j=0,P={},T="onreadystatechange";f(function(){t=o.location});var I=function(t){if(a(P,t)){var r=P[t];delete P[t],r()}},M=function(t){return function(){I(t)}},A=function(t){I(t.data)},C=function(r){o.postMessage(x(r),t.protocol+"//"+t.host)};return g&&m||(g=function(t){p(arguments.length,1);var n=c(t)?t:O(t),e=v(arguments,1);return P[++j]=function(){i(n,void 0,e)},r(j),j},m=function(t){delete P[t]},y?r=function(t){b.nextTick(M(t))}:S&&S.now?r=function(t){S.now(M(t))}:E&&!h?(e=(n=new E).port2,n.port1.onmessage=A,r=u(e.postMessage,e)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!f(C)?(r=C,o.addEventListener("message",A,!1)):r=T in d("script")?function(t){l.appendChild(d("script"))[T]=function(){l.removeChild(this),I(t)}}:function(t){setTimeout(M(t),0)}),Xi={set:g,clear:m}}function Nu(){if(Zi)return Qi;Zi=1;var t=s(),r=S(),n=Object.getOwnPropertyDescriptor;return Qi=function(e){if(!r)return t[e];var o=n(t,e);return o&&o.value}}function Ru(){if(ru)return tu;ru=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},tu=t}function ku(){if(cu)return uu;cu=1;var t,r,n,e,o,i=s(),u=Nu(),c=He(),a=Cu().set,f=Ru(),l=Au(),v=function(){if(eu)return nu;eu=1;var t=Et();return nu=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),d=function(){if(iu)return ou;iu=1;var t=Et();return ou=/web0s(?!.*chrome)/i.test(t)}(),p=bu(),h=i.MutationObserver||i.WebKitMutationObserver,y=i.document,g=i.process,m=i.Promise,b=u("queueMicrotask");if(!b){var w=new f,S=function(){var r,n;for(p&&(r=g.domain)&&r.exit();n=w.get();)try{n()}catch(r){throw w.head&&t(),r}r&&r.enter()};l||p||d||!h||!y?!v&&m&&m.resolve?((e=m.resolve(void 0)).constructor=m,o=c(e.then,e),t=function(){o(S)}):p?t=function(){g.nextTick(S)}:(a=c(a,i),t=function(){a(S)}):(r=!0,n=y.createTextNode(""),new h(S).observe(n,{characterData:!0}),t=function(){n.data=r=!r}),b=function(r){w.head||t(),w.add(r)}}return uu=b}function Du(){return fu||(fu=1,au=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}),au}function Lu(){return lu?su:(lu=1,su=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function zu(){if(du)return vu;du=1;var t=s();return vu=t.Promise}function Vu(){if(hu)return pu;hu=1;var t=s(),r=zu(),n=bt(),e=ne(),o=Hr(),i=fr(),u=mu(),c=nr(),a=xt(),f=r&&r.prototype,l=i("species"),v=!1,d=n(t.PromiseRejectionEvent),p=e("Promise",function(){var t=o(r),n=t!==String(r);if(!n&&66===a)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!a||a<51||!/native code/.test(t)){var e=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((e.constructor={})[l]=i,!(v=e.then(function(){})instanceof i))return!0}return!(n||"BROWSER"!==u&&"DENO"!==u||d)});return pu={CONSTRUCTOR:p,REJECTION_EVENT:d,SUBCLASSING:v}}var Fu,_u,$u={};function Bu(){if(Fu)return $u;Fu=1;var t=Mt(),r=TypeError,n=function(n){var e,o;this.promise=new n(function(t,n){if(void 0!==e||void 0!==o)throw new r("Bad Promise constructor");e=t,o=n}),this.resolve=t(e),this.reject=t(o)};return $u.f=function(t){return new n(t)},$u}function Uu(){if(_u)return gu;_u=1;var t,r,n,e,o=ee(),i=nr(),u=bu(),c=s(),a=function(){if(ji)return xi;ji=1;var t=s();return xi=t}(),f=E(),l=Xr(),v=Ou(),d=Eu(),p=xu(),h=Mt(),y=bt(),g=wt(),m=ju(),b=Tu(),w=Cu().set,S=ku(),O=Du(),x=Lu(),j=Ru(),P=Kr(),T=zu(),I=Vu(),M=Bu(),A="Promise",C=I.CONSTRUCTOR,N=I.REJECTION_EVENT,R=I.SUBCLASSING,k=P.getterFor(A),D=P.set,L=T&&T.prototype,z=T,V=L,F=c.TypeError,_=c.document,$=c.process,B=M.f,U=B,H=!!(_&&_.createEvent&&c.dispatchEvent),W="unhandledrejection",G=function(t){var r;return!(!g(t)||!y(r=t.then))&&r},q=function(t,r){var n,e,o,i=r.value,u=1===r.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&Q(r),r.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?s(new F("Promise-chain cycle")):(e=G(n))?f(e,n,a,s):a(n)):s(i)}catch(t){l&&!o&&l.exit(),s(t)}},K=function(t,r){t.notified||(t.notified=!0,S(function(){for(var n,e=t.reactions;n=e.get();)q(n,t);t.notified=!1,r&&!t.rejection&&X(t)}))},Y=function(t,r,n){var e,o;H?((e=_.createEvent("Event")).promise=r,e.reason=n,e.initEvent(t,!1,!0),c.dispatchEvent(e)):e={promise:r,reason:n},!N&&(o=c["on"+t])?o(e):t===W&&O("Unhandled promise rejection",n)},X=function(t){f(w,c,function(){var r,n=t.facade,e=t.value;if(J(t)&&(r=x(function(){u?$.emit("unhandledRejection",e,n):Y(W,n,e)}),t.rejection=u||J(t)?2:1,r.error))throw r.value})},J=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){f(w,c,function(){var r=t.facade;u?$.emit("rejectionHandled",r):Y("rejectionhandled",r,t.value)})},Z=function(t,r,n){return function(e){t(r,e,n)}},tt=function(t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,K(t,!0))},rt=function(t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===r)throw new F("Promise can't be resolved itself");var e=G(r);e?S(function(){var n={done:!1};try{f(e,r,Z(rt,n,t),Z(tt,n,t))}catch(r){tt(n,r,t)}}):(t.value=r,t.state=1,K(t,!1))}catch(r){tt({done:!1},r,t)}}};if(C&&(V=(z=function(r){m(this,V),h(r),f(t,this);var n=k(this);try{r(Z(rt,n),Z(tt,n))}catch(t){tt(n,t)}}).prototype,(t=function(t){D(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:null})}).prototype=l(V,"then",function(t,r){var n=k(this),e=B(b(this,z));return n.parent=!0,e.ok=!y(t)||t,e.fail=y(r)&&r,e.domain=u?$.domain:void 0,0===n.state?n.reactions.add(e):S(function(){q(e,n)}),e.promise}),r=function(){var r=new t,n=k(r);this.promise=r,this.resolve=Z(rt,n),this.reject=Z(tt,n)},M.f=B=function(t){return t===z||t===n?new r(t):U(t)},!i&&y(T)&&L!==Object.prototype)){e=L.then,R||l(L,"then",function(t,r){var n=this;return new z(function(t,r){f(e,n,t,r)}).then(t,r)},{unsafe:!0});try{delete L.constructor}catch(t){}v&&v(L,V)}return o({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:z}),n=a.Promise,d(z,A,!1,!0),p(A),gu}var Hu,Wu,Gu,qu,Ku,Yu,Xu,Ju,Qu,Zu,tc,rc,nc,ec,oc,ic,uc,cc={};function ac(){return Wu?Hu:(Wu=1,Hu={})}function fc(){if(qu)return Gu;qu=1;var t=fr(),r=ac(),n=t("iterator"),e=Array.prototype;return Gu=function(t){return void 0!==t&&(r.Array===t||e[n]===t)}}function sc(){if(Yu)return Ku;Yu=1;var t=fe(),r=At(),n=yt(),e=ac(),o=fr()("iterator");return Ku=function(i){if(!n(i))return r(i,o)||r(i,"@@iterator")||e[t(i)]}}function lc(){if(Ju)return Xu;Ju=1;var t=E(),r=Mt(),n=xr(),e=It(),o=sc(),i=TypeError;return Xu=function(u,c){var a=arguments.length<2?o(u):c;if(r(a))return n(t(a,u));throw new i(e(u)+" is not iterable")},Xu}function vc(){if(Zu)return Qu;Zu=1;var t=E(),r=xr(),n=At();return Qu=function(e,o,i){var u,c;r(e);try{if(!(u=n(e,"return"))){if("throw"===o)throw i;return i}u=t(u,e)}catch(t){c=!0,u=t}if("throw"===o)throw i;if(c)throw u;return r(u),i}}function dc(){if(rc)return tc;rc=1;var t=He(),r=E(),n=xr(),e=It(),o=fc(),i=bn(),u=Ot(),c=lc(),a=sc(),f=vc(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return tc=function(d,p,h){var y,g,m,b,w,S,O,E=h&&h.that,x=!(!h||!h.AS_ENTRIES),j=!(!h||!h.IS_RECORD),P=!(!h||!h.IS_ITERATOR),T=!(!h||!h.INTERRUPTED),I=t(p,E),M=function(t){var r=y;return y=void 0,r&&f(r,"normal"),new l(!0,t)},A=function(t){return x?(n(t),T?I(t[0],t[1],M):I(t[0],t[1])):T?I(t,M):I(t)};if(j)y=d.iterator;else if(P)y=d;else{if(!(g=a(d)))throw new s(e(d)+" is not iterable");if(o(g)){for(m=0,b=i(d);b>m;m++)if((w=A(d[m]))&&u(v,w))return w;return new l(!1)}y=c(d,g)}for(S=j?d.next:y.next;!(O=r(S,y)).done;){var C=O.value;try{w=A(C)}catch(t){if(!y)throw t;f(y,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function pc(){if(ec)return nc;ec=1;var t=fr()("iterator"),r=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){r=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return nc=function(n,e){try{if(!e&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},n(i)}catch(t){}return o}}function hc(){if(ic)return oc;ic=1;var t=zu(),r=pc(),n=Vu().CONSTRUCTOR;return oc=n||!r(function(r){t.all(r).then(void 0,function(){})})}var yc,gc={};var mc,bc={};var wc,Sc={};var Oc,Ec,xc,jc,Pc={};function Tc(){if(Ec)return Oc;Ec=1;var t=xr(),r=wt(),n=Bu();return Oc=function(e,o){if(t(e),r(o)&&o.constructor===e)return o;var i=n.f(e);return(0,i.resolve)(o),i.promise}}function Ic(r,e){return Io(this,arguments,void 0,function(r,e,o,i,u){var c,a,f,s,l,v,d;return void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u=""),Mo(this,function(p){switch(p.label){case 0:return e?(r.restoreSelection(),c=r.getMenuConfig("insertVideo"),a=c.onInsertedVideo,f=c.checkVideo,s=c.parseVideoSrc,[4,f(e,o)]):[2];case 1:return"string"==typeof(l=p.sent())?(r.alert(l,"error"),[2]):null==l?[2]:[4,s(e)];case 2:return 0!==(v=p.sent()).trim().indexOf("<iframe ")&&(v=v.replace(/</g,"&lt;").replace(/>/g,"&gt;")),d={type:"video",src:v,poster:o,children:[{text:""}],style:{width:i,height:u}},Promise.resolve().then(function(){t.DomEditor.isSelectedEmptyParagraph(r)&&n.Transforms.removeNodes(r,{mode:"highest"}),n.Transforms.insertNodes(r,d,{mode:"highest"})}),a(d),[2]}})})}function Mc(){return hi("w-e-insert-video")}jc||(jc=1,Uu(),function(){if(uc)return cc;uc=1;var t=ee(),r=E(),n=Mt(),e=Bu(),o=Lu(),i=dc();t({target:"Promise",stat:!0,forced:hc()},{all:function(t){var u=this,c=e.f(u),a=c.resolve,f=c.reject,s=o(function(){var e=n(u.resolve),o=[],c=0,s=1;i(t,function(t){var n=c++,i=!1;s++,r(e,u,t).then(function(t){i||(i=!0,o[n]=t,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(yc)return gc;yc=1;var t=ee(),r=nr(),n=Vu().CONSTRUCTOR,e=zu(),o=St(),i=bt(),u=Xr(),c=e&&e.prototype;if(t({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&i(e)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(mc)return bc;mc=1;var t=ee(),r=E(),n=Mt(),e=Bu(),o=Lu(),i=dc();t({target:"Promise",stat:!0,forced:hc()},{race:function(t){var u=this,c=e.f(u),a=c.reject,f=o(function(){var e=n(u.resolve);i(t,function(t){r(e,u,t).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(wc)return Sc;wc=1;var t=ee(),r=Bu();t({target:"Promise",stat:!0,forced:Vu().CONSTRUCTOR},{reject:function(t){var n=r.f(this);return(0,n.reject)(t),n.promise}})}(),function(){if(xc)return Pc;xc=1;var t=ee(),r=St(),n=nr(),e=zu(),o=Vu().CONSTRUCTOR,i=Tc(),u=r("Promise"),c=n&&!o;t({target:"Promise",stat:!0,forced:n||o},{resolve:function(t){return i(c&&this===u?e:this,t)}})}());var Ac,Cc,Nc,Rc,kc,Dc,Lc,zc,Vc,Fc,_c,$c,Bc,Uc,Hc,Wc=function(){function e(){this.title=t.t("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=Mc(),this.posterInputId=Mc(),this.buttonId=Mc()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(r){var e=r.selection;return null==e||(!n.Range.isCollapsed(e)||!!t.DomEditor.getSelectedElems(r).some(function(n){var e=t.DomEditor.getNodeType(n);return"pre"===e||("list-item"===e||!!r.isVoid(n))}))},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(n){var e=this,o=this,i=o.srcInputId,u=o.posterInputId,c=o.buttonId,a=Co(t.genModalInputElems(t.t("videoModule.videoSrc"),i,t.t("videoModule.videoSrcPlaceHolder")),2),f=a[0],s=a[1],l=Co(t.genModalInputElems(t.t("videoModule.videoPoster"),u,t.t("videoModule.videoPosterPlaceHolder")),2),v=l[0],d=l[1],p=r(s),h=r(d),y=Co(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0];if(null==this.$content){var g=r("<div></div>");g.on("click","#".concat(c),function(t){return Io(e,void 0,void 0,function(){var r,e;return Mo(this,function(o){switch(o.label){case 0:return t.preventDefault(),r=g.find("#".concat(i)).val().trim(),e=g.find("#".concat(u)).val().trim(),[4,Ic(n,r,e)];case 1:return o.sent(),n.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(f),m.append(v),m.append(y),p.val(""),h.val(""),setTimeout(function(){p.focus()}),m[0]},e}(),Gc={};function qc(){if(kc)return Rc;kc=1;var t=cr(),r=bt(),n=ur(),e=Gr(),o=function(){if(Nc)return Cc;Nc=1;var t=w();return Cc=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=e("IE_PROTO"),u=Object,c=u.prototype;return Rc=o?u.getPrototypeOf:function(e){var o=n(e);if(t(o,i))return o[i];var a=o.constructor;return r(a)&&o instanceof a?a.prototype:o instanceof u?c:null}}function Kc(){if(Lc)return Dc;Lc=1;var t,r,n,e=w(),o=bt(),i=wt(),u=io(),c=qc(),a=Xr(),f=fr(),s=nr(),l=f("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(r=c(c(n)))!==Object.prototype&&(t=r):v=!0),!i(t)||e(function(){var r={};return t[l].call(r)!==r})?t={}:s&&(t=u(t)),o(t[l])||a(t,l,function(){return this}),Dc={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function Yc(){if(_c)return Fc;_c=1;var t=ee(),r=E(),n=nr(),e=Ur(),o=bt(),i=function(){if(Vc)return zc;Vc=1;var t=Kc().IteratorPrototype,r=io(),n=vt(),e=Eu(),o=ac(),i=function(){return this};return zc=function(u,c,a,f){var s=c+" Iterator";return u.prototype=r(t,{next:n(+!f,a)}),e(u,s,!1,!0),o[s]=i,u}}(),u=qc(),c=Ou(),a=Eu(),f=Pr(),s=Xr(),l=fr(),v=ac(),d=Kc(),p=e.PROPER,h=e.CONFIGURABLE,y=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",O=function(){return this};return Fc=function(e,l,d,E,x,j,P){i(d,l,E);var T,I,M,A=function(t){if(t===x&&D)return D;if(!g&&t&&t in R)return R[t];switch(t){case b:case w:case S:return function(){return new d(this,t)}}return function(){return new d(this)}},C=l+" Iterator",N=!1,R=e.prototype,k=R[m]||R["@@iterator"]||x&&R[x],D=!g&&k||A(x),L="Array"===l&&R.entries||k;if(L&&(T=u(L.call(new e)))!==Object.prototype&&T.next&&(n||u(T)===y||(c?c(T,y):o(T[m])||s(T,m,O)),a(T,C,!0,!0),n&&(v[C]=O)),p&&x===w&&k&&k.name!==w&&(!n&&h?f(R,"name",w):(N=!0,D=function(){return r(k,this)})),x)if(I={values:A(w),keys:j?D:A(b),entries:A(S)},P)for(M in I)(g||N||!(M in R))&&s(R,M,I[M]);else t({target:l,proto:!0,forced:g||N},I);return n&&!P||R[m]===D||s(R,m,D,{name:x}),v[l]=D,I}}function Xc(){return Bc?$c:(Bc=1,$c=function(t,r){return{value:t,done:r}})}function Jc(){if(Hc)return Uc;Hc=1;var t=mt(),r=uo(),n=ac(),e=Kr(),o=jr().f,i=Yc(),u=Xc(),c=nr(),a=S(),f="Array Iterator",s=e.set,l=e.getterFor(f);Uc=i(Array,"Array",function(r,n){s(this,{type:f,target:t(r),index:0,kind:n})},function(){var t=l(this),r=t.target,n=t.index++;if(!r||n>=r.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(r[n],!1)}return u([n,r[n]],!1)},"values");var v=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!c&&a&&"values"!==v.name)try{o(v,"name",{value:"values"})}catch(t){}return Uc}!function(){if(Ac)return Gc;Ac=1;var t=ee(),r=dt(),n=ht(),e=mt(),o=pi(),i=r([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(e(this),void 0===t?",":t)}})}(),Jc();var Qc,Zc={};!function(){if(Qc)return Zc;Qc=1;var t=ee(),r=We().map;t({target:"Array",proto:!0,forced:!de()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var ta,ra={};!function(){if(ta)return ra;ta=1;var t=ee(),r=oe(),n=se(),e=wt(),o=gn(),i=bn(),u=mt(),c=ue(),a=ce(),f=fr(),s=de(),l=Iu(),v=s("slice"),d=f("species"),p=Array,h=Math.max;t({target:"Array",proto:!0,forced:!v},{slice:function(t,f){var s,v,y,g=u(this),m=i(g),b=o(t,m),w=o(void 0===f?m:f,m);if(r(g)&&(s=g.constructor,(n(s)&&(s===p||r(s.prototype))||e(s)&&null===(s=s[d]))&&(s=void 0),s===p||void 0===s))return l(g,b,w);for(v=new(void 0===s?p:s)(h(w-b,0)),y=0;b<w;b++,y++)b in g&&c(v,y,g[b]);return a(v,y),v}})}();var na,ea={};!function(){if(na)return ea;na=1;var t=Qo().charAt,r=xe(),n=Kr(),e=Yc(),o=Xc(),i="String Iterator",u=n.set,c=n.getterFor(i);e(String,"String",function(t){u(this,{type:i,string:r(t),index:0})},function(){var r,n=c(this),e=n.string,i=n.index;return i>=e.length?o(void 0,!0):(r=t(e,i),n.index+=r.length,o(r,!1))})}();var oa,ia,ua,ca,aa={};function fa(){if(ia)return oa;ia=1;var t=w();return oa=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function sa(){if(ca)return ua;ca=1;var t=Xr();return ua=function(r,n,e){for(var o in n)t(r,o,n[o],e);return r}}var la,va,da,pa,ha,ya,ga,ma,ba,wa,Sa,Oa,Ea,xa,ja={exports:{}},Pa={};function Ta(){if(la)return Pa;la=1;var t=pt(),r=mt(),n=On().f,e=Iu(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Pa.f=function(i){return o&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return e(o)}}(i):n(r(i))},Pa}function Ia(){if(ha)return pa;ha=1;var t=w(),r=wt(),n=pt(),e=function(){if(da)return va;da=1;var t=w();return va=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),o=Object.isExtensible,i=t(function(){});return pa=i||e?function(t){return!!r(t)&&((!e||"ArrayBuffer"!==n(t))&&(!o||o(t)))}:o}function Ma(){if(ya)return ja.exports;ya=1;var t=ee(),r=dt(),n=qr(),e=wt(),o=cr(),i=jr().f,u=On(),c=Ta(),a=Ia(),f=ar(),s=fa(),l=!1,v=f("meta"),d=0,p=function(t){i(t,v,{value:{objectID:"O"+d++,weakData:{}}})},h=ja.exports={enable:function(){h.enable=function(){},l=!0;var n=u.f,e=r([].splice),o={};o[v]=1,n(o).length&&(u.f=function(t){for(var r=n(t),o=0,i=r.length;o<i;o++)if(r[o]===v){e(r,o,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,r){if(!e(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,v)){if(!a(t))return"F";if(!r)return"E";p(t)}return t[v].objectID},getWeakData:function(t,r){if(!o(t,v)){if(!a(t))return!0;if(!r)return!1;p(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&a(t)&&!o(t,v)&&p(t),t}};return n[v]=!0,ja.exports}function Aa(){if(ma)return ga;ma=1;var t=bt(),r=wt(),n=Ou();return ga=function(e,o,i){var u,c;return n&&t(u=o.constructor)&&u!==i&&r(c=u.prototype)&&c!==i.prototype&&n(e,c),e}}function Ca(){if(wa)return ba;wa=1;var t=ee(),r=s(),n=dt(),e=ne(),o=Xr(),i=Ma(),u=dc(),c=ju(),a=bt(),f=yt(),l=wt(),v=w(),d=pc(),p=Eu(),h=Aa();return ba=function(s,y,g){var m=-1!==s.indexOf("Map"),b=-1!==s.indexOf("Weak"),w=m?"set":"add",S=r[s],O=S&&S.prototype,E=S,x={},j=function(t){var r=n(O[t]);o(O,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:function(t,n){return r(this,0===t?0:t,n),this})};if(e(s,!a(S)||!(b||O.forEach&&!v(function(){(new S).entries().next()}))))E=g.getConstructor(y,s,m,w),i.enable();else if(e(s,!0)){var P=new E,T=P[w](b?{}:-0,1)!==P,I=v(function(){P.has(1)}),M=d(function(t){new S(t)}),A=!b&&v(function(){for(var t=new S,r=5;r--;)t[w](r,r);return!t.has(-0)});M||((E=y(function(t,r){c(t,O);var n=h(new S,t,E);return f(r)||u(r,n[w],{that:n,AS_ENTRIES:m}),n})).prototype=O,O.constructor=E),(I||A)&&(j("delete"),j("has"),m&&j("get")),(A||T)&&j(w),b&&O.clear&&delete O.clear}return x[s]=E,t({global:!0,constructor:!0,forced:E!==S},x),p(E,s),b||g.setStrong(E,s,m),E}}function Na(){if(Oa)return Sa;Oa=1;var t=dt(),r=sa(),n=Ma().getWeakData,e=ju(),o=xr(),i=yt(),u=wt(),c=dc(),a=We(),f=cr(),s=Kr(),l=s.set,v=s.getterFor,d=a.find,p=a.findIndex,h=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,r){return d(t.entries,function(t){return t[0]===r})};return m.prototype={get:function(t){var r=b(this,t);if(r)return r[1]},has:function(t){return!!b(this,t)},set:function(t,r){var n=b(this,t);n?n[1]=r:this.entries.push([t,r])},delete:function(t){var r=p(this.entries,function(r){return r[0]===t});return~r&&h(this.entries,r,1),!!~r}},Sa={getConstructor:function(t,a,s,d){var p=t(function(t,r){e(t,h),l(t,{type:a,id:y++,frozen:null}),i(r)||c(r,t[d],{that:t,AS_ENTRIES:s})}),h=p.prototype,m=v(a),b=function(t,r,e){var i=m(t),u=n(o(r),!0);return!0===u?g(i).set(r,e):u[i.id]=e,t};return r(h,{delete:function(t){var r=m(this);if(!u(t))return!1;var e=n(t);return!0===e?g(r).delete(t):e&&f(e,r.id)&&delete e[r.id]},has:function(t){var r=m(this);if(!u(t))return!1;var e=n(t);return!0===e?g(r).has(t):e&&f(e,r.id)}}),r(h,s?{get:function(t){var r=m(this);if(u(t)){var e=n(t);if(!0===e)return g(r).get(t);if(e)return e[r.id]}},set:function(t,r){return b(this,t,r)}}:{add:function(t){return b(this,t,!0)}}),p}}}xa||(xa=1,function(){if(Ea)return aa;Ea=1;var t,r=fa(),n=s(),e=dt(),o=sa(),i=Ma(),u=Ca(),c=Na(),a=wt(),f=Kr().enforce,l=w(),v=Wr(),d=Object,p=Array.isArray,h=d.isExtensible,y=d.isFrozen,g=d.isSealed,m=d.freeze,b=d.seal,S=!n.ActiveXObject&&"ActiveXObject"in n,O=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=u("WeakMap",O,c),x=E.prototype,j=e(x.set);if(v)if(S){t=c.getConstructor(O,"WeakMap",!0),i.enable();var P=e(x.delete),T=e(x.has),I=e(x.get);o(x,{delete:function(r){if(a(r)&&!h(r)){var n=f(this);return n.frozen||(n.frozen=new t),P(this,r)||n.frozen.delete(r)}return P(this,r)},has:function(r){if(a(r)&&!h(r)){var n=f(this);return n.frozen||(n.frozen=new t),T(this,r)||n.frozen.has(r)}return T(this,r)},get:function(r){if(a(r)&&!h(r)){var n=f(this);return n.frozen||(n.frozen=new t),T(this,r)?I(this,r):n.frozen.get(r)}return I(this,r)},set:function(r,n){if(a(r)&&!h(r)){var e=f(this);e.frozen||(e.frozen=new t),T(this,r)?j(this,r,n):e.frozen.set(r,n)}else j(this,r,n);return this}})}else r&&l(function(){var t=m([]);return j(new E,t,1),!y(t)})&&o(x,{set:function(t,r){var n;return p(t)&&(y(t)?n=m:g(t)&&(n=b)),j(this,t,r),n&&n(t),this}})}());var Ra,ka={};function Da(t){return t.getMenuConfig("uploadVideo")}!function(){if(Ra)return ka;Ra=1;var t=s(),r=vi(),n=di(),e=Jc(),o=Pr(),i=Eu(),u=fr()("iterator"),c=e.values,a=function(t,n){if(t){if(t[u]!==c)try{o(t,u,c)}catch(r){t[u]=c}if(i(t,n,!0),r[n])for(var a in e)if(t[a]!==e[a])try{o(t,a,e[a])}catch(r){t[a]=e[a]}}};for(var f in r)a(t[f]&&t[f].prototype,f);a(n,"DOMTokenList")}();var La=new WeakMap;function za(r,n){return Io(this,void 0,void 0,function(){var e,o;return Mo(this,function(i){switch(i.label){case 0:return e=function(r){var n=La.get(r);if(null!=n)return n;var e=Da(r),o=e.onSuccess,i=e.onProgress,u=e.onFailed,c=e.customInsert,a=e.onError;return n=t.createUploader(To(To({},e),{onProgress:function(t){r.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(c)return c(n,function(t,n){return Ic(r,t,n)}),void o(t,n);var e=n.errno,i=void 0===e?1:e,a=n.data,f=void 0===a?{}:a;if(0===i){var s=f.url,l=void 0===s?"":s,v=f.poster;Ic(r,l,void 0===v?"":v),o(t,n)}else u(t,n)},onError:function(t,r,n){a(t,r,n)}})),La.set(r,n),n}(r),o=n.map(function(t){return{name:t.name,type:t.type,size:t.size,data:t}}),e.addFiles(o),[4,e.upload()];case 1:return i.sent(),[2]}})})}var Va=function(){function e(){this.title=t.t("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 e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var e=this.getMenuConfig(t),o=e.allowedFileTypes,i=void 0===o?[]:o,u=e.customBrowseAndUpload;if(u)u(function(r,n){return Ic(t,r,n)});else{var c="";i.length>0&&(c='accept="'.concat(i.join(", "),'"'));var a=r("body"),f=r('<input type="file" '.concat(c," multiple/>"));f.hide(),a.append(f),f.click(),f.on("change",function(){var r=f[0].files;!function(t,r){Io(this,void 0,void 0,function(){var n,e,o,i,u,c,a,f,s,l,v,d;return Mo(this,function(p){switch(p.label){case 0:if(null==r)return[2];n=Array.prototype.slice.call(r),e=[],o=Da(t).customUpload,p.label=1;case 1:p.trys.push([1,8,9,14]),i=!0,u=No(n),p.label=2;case 2:return[4,u.next()];case 3:return c=p.sent(),(s=c.done)?[3,7]:(d=c.value,i=!1,a=d,o?[4,o(a,function(r,n){return Ic(t,r,n)},t)]:[3,5]);case 4:return p.sent(),[3,6];case 5:e.push(a),p.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return f=p.sent(),l={error:f},[3,14];case 9:return p.trys.push([9,,12,13]),i||s||!(v=u.return)?[3,11]:[4,v.call(u)];case 10:p.sent(),p.label=11;case 11:return[3,13];case 12:if(l)throw l.error;return[7];case 13:return[7];case 14:return e.length>0?[4,za(t,e)]:[3,16];case 15:p.sent(),p.label=16;case 16:return[2]}})})}(t,r)})}},e.prototype.isDisabled=function(r){var e=r.selection;return null==e||(!n.Range.isCollapsed(e)||!!t.DomEditor.getSelectedElems(r).some(function(n){var e=t.DomEditor.getNodeType(n);return"pre"===e||("list-item"===e||!!r.isVoid(n))}))},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),Fa={key:"insertVideo",factory:function(){return new Wc},config:{onInsertedVideo:function(t){},checkVideo:function(t,r){return!0},parseVideoSrc:function(t){return t}}},_a={key:"uploadVideo",factory:function(){return new Va},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,r){},onFailed:function(t,r){console.error("'".concat(t.name,"' upload failed"),r)},onError:function(t,r,n){console.error("'".concat(t.name," upload error"),r,n)}}},$a={key:"editVideoSize",factory:function(){return new mi}},Ba={key:"editVideoSrc",factory:function(){return new yu}};function Ua(t,r,n,e,o,i){return void 0===r&&(r=""),void 0===n&&(n="auto"),void 0===e&&(e="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:t,poster:r,width:n,height:e,style:o,children:[{text:""}],textAlign:i}}var Ha,Wa,Ga,qa,Ka,Ya,Xa,Ja,Qa={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,n,e){var o=r(t),i="",u="",c="auto",a="auto",f={},s=o.find("iframe");if(s.length>0)return c=s.attr("width")||"auto",a=s.attr("height")||"auto",f=yi(f=s.attr("style")||""),Ua(i=s[0].outerHTML,u,c,a,f,yi(o.attr("style")||"")["text-align"]||"center");var l=o.find("video");return(i=l.attr("src")||"")||l.length>0&&(i=l.find("source").attr("src")||""),c=l.attr("width")||"auto",a=l.attr("height")||"auto",Ua(i,u=l.attr("poster")||"",c,a,f=yi(f=l.attr("style")||""),yi(o.attr("style")||"")["text-align"]||"center")}};function Za(){return Wa?Ha:(Wa=1,Ha=function(t){try{return!!t()}catch(t){return!0}})}function tf(){return qa?Ga:(qa=1,Ga=!Za()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function rf(){if(Ya)return Ka;Ya=1;var t=tf(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return Ka=t?e:function(t){return function(){return n.apply(t,arguments)}},Ka}function nf(){return Ja?Xa:(Ja=1,Xa=rf()({}.isPrototypeOf))}var ef,of,uf,cf,af,ff,sf,lf,vf,df,pf={};function hf(){if(of)return ef;of=1;var t=function(t){return t&&t.Math===Math&&t};return ef=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof i&&i)||t("object"==typeof ef&&ef)||function(){return this}()||Function("return this")()}function yf(){if(cf)return uf;cf=1;var t=tf(),r=Function.prototype,n=r.apply,e=r.call;return uf="object"==typeof Reflect&&Reflect.apply||(t?e.bind(n):function(){return e.apply(n,arguments)}),uf}function gf(){if(ff)return af;ff=1;var t=rf(),r=t({}.toString),n=t("".slice);return af=function(t){return n(r(t),8,-1)}}function mf(){if(lf)return sf;lf=1;var t=gf(),r=rf();return sf=function(n){if("Function"===t(n))return r(n)}}function bf(){if(df)return vf;df=1;var t="object"==typeof document&&document.all;return vf=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}var wf,Sf,Of,Ef,xf={};function jf(){return Sf?wf:(Sf=1,wf=!Za()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Pf(){if(Ef)return Of;Ef=1;var t=tf(),r=Function.prototype.call;return Of=t?r.bind(r):function(){return r.apply(r,arguments)},Of}var Tf,If,Mf,Af,Cf,Nf,Rf,kf,Df,Lf,zf,Vf,Ff,_f,$f,Bf,Uf,Hf,Wf,Gf,qf,Kf,Yf,Xf,Jf,Qf,Zf,ts,rs,ns,es,os,is,us,cs,as={};function fs(){if(Tf)return as;Tf=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return as.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,as}function ss(){return Mf?If:(Mf=1,If=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function ls(){if(Cf)return Af;Cf=1;var t=rf(),r=Za(),n=gf(),e=Object,o=t("".split);return Af=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):e(t)}:e}function vs(){return Rf?Nf:(Rf=1,Nf=function(t){return null==t})}function ds(){if(Df)return kf;Df=1;var t=vs(),r=TypeError;return kf=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function ps(){if(zf)return Lf;zf=1;var t=ls(),r=ds();return Lf=function(n){return t(r(n))}}function hs(){if(Ff)return Vf;Ff=1;var t=bf();return Vf=function(r){return"object"==typeof r?null!==r:t(r)}}function ys(){return $f?_f:($f=1,_f={})}function gs(){if(Uf)return Bf;Uf=1;var t=ys(),r=hf(),n=bf(),e=function(t){return n(t)?t:void 0};return Bf=function(n,o){return arguments.length<2?e(t[n])||e(r[n]):t[n]&&t[n][o]||r[n]&&r[n][o]},Bf}function ms(){if(Wf)return Hf;Wf=1;var t=hf().navigator,r=t&&t.userAgent;return Hf=r?String(r):""}function bs(){if(qf)return Gf;qf=1;var t,r,n=hf(),e=ms(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),Gf=r}function ws(){if(Yf)return Kf;Yf=1;var t=bs(),r=Za(),n=hf().String;return Kf=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Ss(){return Jf?Xf:(Jf=1,Xf=ws()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Os(){if(Zf)return Qf;Zf=1;var t=gs(),r=bf(),n=nf(),e=Object;return Qf=Ss()?function(t){return"symbol"==typeof t}:function(o){var i=t("Symbol");return r(i)&&n(i.prototype,e(o))}}function Es(){if(rs)return ts;rs=1;var t=String;return ts=function(r){try{return t(r)}catch(t){return"Object"}}}function xs(){if(es)return ns;es=1;var t=bf(),r=Es(),n=TypeError;return ns=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function js(){if(is)return os;is=1;var t=xs(),r=vs();return os=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}function Ps(){if(cs)return us;cs=1;var t=Pf(),r=bf(),n=hs(),e=TypeError;return us=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!n(c=t(u,o)))return c;if(r(u=o.valueOf)&&!n(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!n(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")}}var Ts,Is,Ms,As,Cs,Ns,Rs,ks,Ds,Ls,zs,Vs,Fs,_s,$s,Bs,Us,Hs,Ws,Gs,qs,Ks,Ys,Xs,Js,Qs,Zs,tl,rl={exports:{}};function nl(){return Is?Ts:(Is=1,Ts=!0)}function el(){if(As)return Ms;As=1;var t=hf(),r=Object.defineProperty;return Ms=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function ol(){if(Cs)return rl.exports;Cs=1;var t=nl(),r=hf(),n=el(),e="__core-js_shared__",o=rl.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rl.exports}function il(){if(Rs)return Ns;Rs=1;var t=ol();return Ns=function(r,n){return t[r]||(t[r]=n||{})}}function ul(){if(Ds)return ks;Ds=1;var t=ds(),r=Object;return ks=function(n){return r(t(n))}}function cl(){if(zs)return Ls;zs=1;var t=rf(),r=ul(),n=t({}.hasOwnProperty);return Ls=Object.hasOwn||function(t,e){return n(r(t),e)}}function al(){if(Fs)return Vs;Fs=1;var t=rf(),r=0,n=Math.random(),e=t(1.1.toString);return Vs=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function fl(){if($s)return _s;$s=1;var t=hf(),r=il(),n=cl(),e=al(),o=ws(),i=Ss(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||e;return _s=function(t){return n(c,t)||(c[t]=o&&n(u,t)?u[t]:a("Symbol."+t)),c[t]}}function sl(){if(Us)return Bs;Us=1;var t=Pf(),r=hs(),n=Os(),e=js(),o=Ps(),i=TypeError,u=fl()("toPrimitive");return Bs=function(c,a){if(!r(c)||n(c))return c;var f,s=e(c,u);if(s){if(void 0===a&&(a="default"),f=t(s,c,a),!r(f)||n(f))return f;throw new i("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(c,a)}}function ll(){if(Ws)return Hs;Ws=1;var t=sl(),r=Os();return Hs=function(n){var e=t(n,"string");return r(e)?e:e+""}}function vl(){if(qs)return Gs;qs=1;var t=hf(),r=hs(),n=t.document,e=r(n)&&r(n.createElement);return Gs=function(t){return e?n.createElement(t):{}}}function dl(){if(Ys)return Ks;Ys=1;var t=jf(),r=Za(),n=vl();return Ks=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function pl(){if(Xs)return xf;Xs=1;var t=jf(),r=Pf(),n=fs(),e=ss(),o=ps(),i=ll(),u=cl(),c=dl(),a=Object.getOwnPropertyDescriptor;return xf.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return e(!r(n.f,t,f),t[f])},xf}function hl(){if(Qs)return Js;Qs=1;var t=Za(),r=bf(),n=/#|\.prototype\./,e=function(n,e){var a=i[o(n)];return a===c||a!==u&&(r(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Js=e}function yl(){if(tl)return Zs;tl=1;var t=mf(),r=xs(),n=tf(),e=t(t.bind);return Zs=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},Zs}var gl,ml,bl,wl,Sl,Ol,El,xl,jl,Pl,Tl,Il,Ml,Al,Cl,Nl,Rl,kl,Dl,Ll,zl,Vl,Fl,_l,$l,Bl,Ul,Hl,Wl={};function Gl(){return ml?gl:(ml=1,gl=jf()&&Za()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function ql(){if(wl)return bl;wl=1;var t=hs(),r=String,n=TypeError;return bl=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function Kl(){if(Sl)return Wl;Sl=1;var t=jf(),r=dl(),n=Gl(),e=ql(),o=ll(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return Wl.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=c(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:a in n?n[a]:i[a],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=o(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[n]=c.value),t},Wl}function Yl(){if(El)return Ol;El=1;var t=jf(),r=Kl(),n=ss();return Ol=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}function Xl(){if(jl)return xl;jl=1;var t=hf(),r=yf(),n=mf(),e=bf(),o=pl().f,i=hl(),u=ys(),c=yl(),a=Yl(),f=cl(),s=function(t){var n=function(e,o,i){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,o)}return new t(e,o,i)}return r(t,this,arguments)};return n.prototype=t.prototype,n};return xl=function(r,l){var v,d,p,h,y,g,m,b,w,S=r.target,O=r.global,E=r.stat,x=r.proto,j=O?t:E?t[S]:t[S]&&t[S].prototype,P=O?u:u[S]||a(u,S,{})[S],T=P.prototype;for(h in l)d=!(v=i(O?h:S+(E?".":"#")+h,r.forced))&&j&&f(j,h),g=P[h],d&&(m=r.dontCallGetSet?(w=o(j,h))&&w.value:j[h]),y=d&&m?m:l[h],(v||x||typeof g!=typeof y)&&(b=r.bind&&d?c(y,t):r.wrap&&d?s(y):x&&e(y)?n(y):y,(r.sham||y&&y.sham||g&&g.sham)&&a(b,"sham",!0),a(P,h,b),x&&(f(u,p=S+"Prototype")||a(u,p,{}),a(u[p],h,y),r.real&&T&&(v||!T[h])&&a(T,h,y)))}}function Jl(){if(Tl)return Pl;Tl=1;var t=Math.ceil,r=Math.floor;return Pl=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}function Ql(){if(Ml)return Il;Ml=1;var t=Jl();return Il=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function Zl(){if(Cl)return Al;Cl=1;var t=Ql(),r=Math.max,n=Math.min;return Al=function(e,o){var i=t(e);return i<0?r(i+o,0):n(i,o)}}function tv(){if(Rl)return Nl;Rl=1;var t=Ql(),r=Math.min;return Nl=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function rv(){if(Dl)return kl;Dl=1;var t=tv();return kl=function(r){return t(r.length)}}function nv(){if(zl)return Ll;zl=1;var t=ps(),r=Zl(),n=rv(),e=function(e){return function(o,i,u){var c=t(o),a=n(c);if(0===a)return!e&&-1;var f,s=r(u,a);if(e&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((e||s in c)&&c[s]===i)return e||s||0;return!e&&-1}};return Ll={includes:e(!0),indexOf:e(!1)}}function ev(){return Fl?Vl:(Fl=1,Vl=function(){})}function ov(){if(Bl)return $l;Bl=1;var t=hf(),r=ys();return $l=function(n,e){var o=r[n+"Prototype"],i=o&&o[e];if(i)return i;var u=t[n],c=u&&u.prototype;return c&&c[e]}}function iv(){return Hl?Ul:(Hl=1,function(){if(_l)return pf;_l=1;var t=Xl(),r=nv().includes,n=Za(),e=ev(),o=n(function(){return!Array(1).includes()}),i=n(function(){return[,1].includes(void 0,1)});t({target:"Array",proto:!0,forced:o||i},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),e("includes")}(),Ul=ov()("Array","includes"))}var uv,cv,av,fv,sv,lv,vv,dv,pv,hv,yv,gv,mv,bv,wv,Sv,Ov,Ev,xv,jv,Pv,Tv={};function Iv(){if(cv)return uv;cv=1;var t=hs(),r=gf(),n=fl()("match");return uv=function(e){var o;return t(e)&&(void 0!==(o=e[n])?!!o:"RegExp"===r(e))}}function Mv(){if(fv)return av;fv=1;var t=Iv(),r=TypeError;return av=function(n){if(t(n))throw new r("The method doesn't accept regular expressions");return n}}function Av(){if(lv)return sv;lv=1;var t={};return t[fl()("toStringTag")]="z",sv="[object z]"===String(t)}function Cv(){if(dv)return vv;dv=1;var t=Av(),r=bf(),n=gf(),e=fl()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return vv=t?n:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?c:i?n(u):"Object"===(a=n(u))&&r(u.callee)?"Arguments":a}}function Nv(){if(hv)return pv;hv=1;var t=Cv(),r=String;return pv=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}function Rv(){if(gv)return yv;gv=1;var t=fl()("match");return yv=function(r){var n=/./;try{"/./"[r](n)}catch(e){try{return n[t]=!1,"/./"[r](n)}catch(t){}}return!1}}function kv(){return wv?bv:(wv=1,function(){if(mv)return Tv;mv=1;var t=Xl(),r=rf(),n=Mv(),e=ds(),o=Nv(),i=Rv(),u=r("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~u(o(e(this)),o(n(t)),arguments.length>1?arguments[1]:void 0)}})}(),bv=ov()("String","includes"))}function Dv(){if(Ov)return Sv;Ov=1;var t=nf(),r=iv(),n=kv(),e=Array.prototype,o=String.prototype;return Sv=function(i){var u=i.includes;return i===e||t(e,i)&&u===e.includes?r:"string"==typeof i||i===o||t(o,i)&&u===o.includes?n:u}}function Lv(){return xv?Ev:(xv=1,Ev=Dv())}var zv=u(Pv?jv:(Pv=1,jv=Lv()));var Vv={renderElems:[{type:"video",renderElem:function(r,n,e){var i,u=r,c=u.src,a=void 0===c?"":c,f=u.poster,s=void 0===f?"":f,l=u.key,v=void 0===l?"":l,d=u.width,p=void 0===d?"auto":d,h=u.height,y=void 0===h?"auto":h,g=u.style,m=void 0===g?{}:g,b=u.textAlign,w=void 0===b?"center":b,S=t.DomEditor.isNodeSelected(e,r);if(0===a.trim().indexOf("<iframe ")){var O=Ae(a,p,y,m);i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w},innerHTML:O})}else{var E=o.jsx("video",{key:v,poster:s,controls:!0,style:m},o.jsx("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==p&&(E.data.width=p),"auto"!==y&&(E.data.height=y),i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w}},E)}return o.h("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},i)}}],elemsToHtml:[ke],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var n=r(t),e=n;if("p"===Me(n)){var o=n.children();if(1===o.length){var i,u=o[0],c=u.tagName.toLowerCase();zv(i=["iframe","video"]).call(i,c)&&(e=r(u))}}var a=Me(e);if("iframe"!==a&&"video"!==a)return e[0];if("video"===e.parent().attr("data-w-e-type"))return e[0];var f=r('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return f.append(e),f[0]}}],parseElemsHtml:[Qa],menus:[Fa,_a,$a,Ba],editorPlugin:function(r){var e=r.isVoid,o=r.normalizeNode,i=r;return i.isVoid=function(t){return"video"===t.type||e(t)},i.normalizeNode=function(r){var e=Co(r,2),u=e[0],c=e[1];"video"===t.DomEditor.getNodeType(u)&&(t.DomEditor.isLastNode(i,u)&&n.Transforms.insertNodes(i,t.DomEditor.genEmptyParagraph(),{at:[c[0]+1]}));return o([u,c])},i}};return Vv});
1
+ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@wangeditor-next/core"),require("dom7"),require("slate"),require("nanoid"),require("snabbdom")):"function"==typeof define&&define.amd?define(["@wangeditor-next/core","dom7","slate","nanoid","snabbdom"],r):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorVideoModule=r(t.core,t.$,t.slate,t.nanoid,t.snabbdom)}(this,function(t,r,e,n,o){"use strict";t.i18nAddResources("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.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var i,u,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function f(){if(u)return i;u=1;var t=function(t){return t&&t.Math===Math&&t};return i=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof c&&c)||t("object"==typeof i&&i)||function(){return this}()||Function("return this")()}var s,l,d,v,p,h,y,g,m={};function b(){return l?s:(l=1,s=function(t){try{return!!t()}catch(t){return!0}})}function w(){if(v)return d;v=1;var t=b();return d=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function S(){if(h)return p;h=1;var t=b();return p=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function E(){if(g)return y;g=1;var t=S(),r=Function.prototype.call;return y=t?r.bind(r):function(){return r.apply(r,arguments)},y}var x,O,I,j,P,T,M,A,R,N,C,k,D,V,L,z,F,_,$,B,U,H,W,G,q,K,X,Y,J,Q,Z,tt,rt,et,nt,ot,it,ut,ct,at,ft,st={};function lt(){return I?O:(I=1,O=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function dt(){if(P)return j;P=1;var t=S(),r=Function.prototype,e=r.call,n=t&&r.bind.bind(e,e);return j=t?n:function(t){return function(){return e.apply(t,arguments)}},j}function vt(){if(M)return T;M=1;var t=dt(),r=t({}.toString),e=t("".slice);return T=function(t){return e(r(t),8,-1)}}function pt(){if(R)return A;R=1;var t=dt(),r=b(),e=vt(),n=Object,o=t("".split);return A=r(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===e(t)?o(t,""):n(t)}:n}function ht(){return C?N:(C=1,N=function(t){return null==t})}function yt(){if(D)return k;D=1;var t=ht(),r=TypeError;return k=function(e){if(t(e))throw new r("Can't call method on "+e);return e}}function gt(){if(L)return V;L=1;var t=pt(),r=yt();return V=function(e){return t(r(e))}}function mt(){if(F)return z;F=1;var t="object"==typeof document&&document.all;return z=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function bt(){if($)return _;$=1;var t=mt();return _=function(r){return"object"==typeof r?null!==r:t(r)}}function wt(){if(U)return B;U=1;var t=f(),r=mt();return B=function(e,n){return arguments.length<2?(o=t[e],r(o)?o:void 0):t[e]&&t[e][n];var o},B}function St(){if(W)return H;W=1;var t=dt();return H=t({}.isPrototypeOf)}function Et(){if(q)return G;q=1;var t=f().navigator,r=t&&t.userAgent;return G=r?String(r):""}function xt(){if(X)return K;X=1;var t,r,e=f(),n=Et(),o=e.process,i=e.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(r=+t[1]),K=r}function Ot(){if(J)return Y;J=1;var t=xt(),r=b(),e=f().String;return Y=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!e(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function It(){if(Z)return Q;Z=1;var t=Ot();return Q=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function jt(){if(rt)return tt;rt=1;var t=wt(),r=mt(),e=St(),n=It(),o=Object;return tt=n?function(t){return"symbol"==typeof t}:function(n){var i=t("Symbol");return r(i)&&e(i.prototype,o(n))}}function Pt(){if(nt)return et;nt=1;var t=String;return et=function(r){try{return t(r)}catch(t){return"Object"}}}function Tt(){if(it)return ot;it=1;var t=mt(),r=Pt(),e=TypeError;return ot=function(n){if(t(n))return n;throw new e(r(n)+" is not a function")}}function Mt(){if(ct)return ut;ct=1;var t=Tt(),r=ht();return ut=function(e,n){var o=e[n];return r(o)?void 0:t(o)}}function At(){if(ft)return at;ft=1;var t=E(),r=mt(),e=bt(),n=TypeError;return at=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!e(c=t(u,o)))return c;if(r(u=o.valueOf)&&!e(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!e(c=t(u,o)))return c;throw new n("Can't convert object to primitive value")}}var Rt,Nt,Ct,kt,Dt,Vt,Lt,zt,Ft,_t,$t,Bt,Ut,Ht,Wt,Gt,qt,Kt,Xt,Yt,Jt,Qt,Zt,tr,rr={exports:{}};function er(){return Nt?Rt:(Nt=1,Rt=!1)}function nr(){if(kt)return Ct;kt=1;var t=f(),r=Object.defineProperty;return Ct=function(e,n){try{r(t,e,{value:n,configurable:!0,writable:!0})}catch(r){t[e]=n}return n}}function or(){if(Dt)return rr.exports;Dt=1;var t=er(),r=f(),e=nr(),n="__core-js_shared__",o=rr.exports=r[n]||e(n,{});return(o.versions||(o.versions=[])).push({version:"3.47.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),rr.exports}function ir(){if(Lt)return Vt;Lt=1;var t=or();return Vt=function(r,e){return t[r]||(t[r]=e||{})}}function ur(){if(Ft)return zt;Ft=1;var t=yt(),r=Object;return zt=function(e){return r(t(e))}}function cr(){if($t)return _t;$t=1;var t=dt(),r=ur(),e=t({}.hasOwnProperty);return _t=Object.hasOwn||function(t,n){return e(r(t),n)}}function ar(){if(Ut)return Bt;Ut=1;var t=dt(),r=0,e=Math.random(),n=t(1.1.toString);return Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++r+e,36)}}function fr(){if(Wt)return Ht;Wt=1;var t=f(),r=ir(),e=cr(),n=ar(),o=Ot(),i=It(),u=t.Symbol,c=r("wks"),a=i?u.for||u:u&&u.withoutSetter||n;return Ht=function(t){return e(c,t)||(c[t]=o&&e(u,t)?u[t]:a("Symbol."+t)),c[t]}}function sr(){if(qt)return Gt;qt=1;var t=E(),r=bt(),e=jt(),n=Mt(),o=At(),i=fr(),u=TypeError,c=i("toPrimitive");return Gt=function(i,a){if(!r(i)||e(i))return i;var f,s=n(i,c);if(s){if(void 0===a&&(a="default"),f=t(s,i,a),!r(f)||e(f))return f;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),o(i,a)}}function lr(){if(Xt)return Kt;Xt=1;var t=sr(),r=jt();return Kt=function(e){var n=t(e,"string");return r(n)?n:n+""}}function dr(){if(Jt)return Yt;Jt=1;var t=f(),r=bt(),e=t.document,n=r(e)&&r(e.createElement);return Yt=function(t){return n?e.createElement(t):{}}}function vr(){if(Zt)return Qt;Zt=1;var t=w(),r=b(),e=dr();return Qt=!t&&!r(function(){return 7!==Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a})}function pr(){if(tr)return m;tr=1;var t=w(),r=E(),e=function(){if(x)return st;x=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,e=r&&!t.call({1:2},1);return st.f=e?function(t){var e=r(this,t);return!!e&&e.enumerable}:t,st}(),n=lt(),o=gt(),i=lr(),u=cr(),c=vr(),a=Object.getOwnPropertyDescriptor;return m.f=t?a:function(t,f){if(t=o(t),f=i(f),c)try{return a(t,f)}catch(t){}if(u(t,f))return n(!r(e.f,t,f),t[f])},m}var hr,yr,gr,mr,br,wr,Sr,Er={};function xr(){if(yr)return hr;yr=1;var t=w(),r=b();return hr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Or(){if(mr)return gr;mr=1;var t=bt(),r=String,e=TypeError;return gr=function(n){if(t(n))return n;throw new e(r(n)+" is not an object")}}function Ir(){if(br)return Er;br=1;var t=w(),r=vr(),e=xr(),n=Or(),o=lr(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,a="enumerable",f="configurable",s="writable";return Er.f=t?e?function(t,r,e){if(n(t),r=o(r),n(e),"function"==typeof t&&"prototype"===r&&"value"in e&&s in e&&!e[s]){var i=c(t,r);i&&i[s]&&(t[r]=e.value,e={configurable:f in e?e[f]:i[f],enumerable:a in e?e[a]:i[a],writable:!1})}return u(t,r,e)}:u:function(t,e,c){if(n(t),e=o(e),n(c),r)try{return u(t,e,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[e]=c.value),t},Er}function jr(){if(Sr)return wr;Sr=1;var t=w(),r=Ir(),e=lt();return wr=t?function(t,n,o){return r.f(t,n,e(1,o))}:function(t,r,e){return t[r]=e,t}}var Pr,Tr,Mr,Ar,Rr,Nr,Cr,kr,Dr,Vr,Lr,zr,Fr,_r,$r,Br={exports:{}};function Ur(){if(Tr)return Pr;Tr=1;var t=w(),r=cr(),e=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=r(e,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&n(e,"name").configurable);return Pr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Hr(){if(Ar)return Mr;Ar=1;var t=dt(),r=mt(),e=or(),n=t(Function.toString);return r(e.inspectSource)||(e.inspectSource=function(t){return n(t)}),Mr=e.inspectSource}function Wr(){if(Nr)return Rr;Nr=1;var t=f(),r=mt(),e=t.WeakMap;return Rr=r(e)&&/native code/.test(String(e))}function Gr(){if(kr)return Cr;kr=1;var t=ir(),r=ar(),e=t("keys");return Cr=function(t){return e[t]||(e[t]=r(t))}}function qr(){return Vr?Dr:(Vr=1,Dr={})}function Kr(){if(zr)return Lr;zr=1;var t,r,e,n=Wr(),o=f(),i=bt(),u=jr(),c=cr(),a=or(),s=Gr(),l=qr(),d="Object already initialized",v=o.TypeError,p=o.WeakMap;if(n||a.state){var h=a.state||(a.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new v(d);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},e=function(t){return h.has(t)}}else{var y=s("state");l[y]=!0,t=function(t,r){if(c(t,y))throw new v(d);return r.facade=t,u(t,y,r),r},r=function(t){return c(t,y)?t[y]:{}},e=function(t){return c(t,y)}}return Lr={set:t,get:r,has:e,enforce:function(n){return e(n)?r(n):t(n,{})},getterFor:function(t){return function(e){var n;if(!i(e)||(n=r(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}}function Xr(){if(Fr)return Br.exports;Fr=1;var t=dt(),r=b(),e=mt(),n=cr(),o=w(),i=Ur().CONFIGURABLE,u=Hr(),c=Kr(),a=c.enforce,f=c.get,s=String,l=Object.defineProperty,d=t("".slice),v=t("".replace),p=t([].join),h=o&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),g=Br.exports=function(t,r,e){"Symbol("===d(s(r),0,7)&&(r="["+v(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!n(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&e&&n(e,"arity")&&t.length!==e.arity&&l(t,"length",{value:e.arity});try{e&&n(e,"constructor")&&e.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=a(t);return n(u,"source")||(u.source=p(y,"string"==typeof r?r:"")),t};return Function.prototype.toString=g(function(){return e(this)&&f(this).source||u(this)},"toString"),Br.exports}function Yr(){if($r)return _r;$r=1;var t=mt(),r=Ir(),e=Xr(),n=nr();return _r=function(o,i,u,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:i;if(t(u)&&e(u,f,c),c.global)a?o[i]=u:n(i,u);else{try{c.unsafe?o[i]&&(a=!0):delete o[i]}catch(t){}a?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}var Jr,Qr,Zr,te,re,ee,ne,oe,ie,ue,ce,ae,fe,se,le,de,ve,pe={};function he(){if(te)return Zr;te=1;var t=function(){if(Qr)return Jr;Qr=1;var t=Math.ceil,r=Math.floor;return Jr=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}}();return Zr=function(r){var e=+r;return e!=e||0===e?0:t(e)}}function ye(){if(ee)return re;ee=1;var t=he(),r=Math.max,e=Math.min;return re=function(n,o){var i=t(n);return i<0?r(i+o,0):e(i,o)}}function ge(){if(oe)return ne;oe=1;var t=he(),r=Math.min;return ne=function(e){var n=t(e);return n>0?r(n,9007199254740991):0}}function me(){if(ue)return ie;ue=1;var t=ge();return ie=function(r){return t(r.length)}}function be(){if(ae)return ce;ae=1;var t=gt(),r=ye(),e=me(),n=function(n){return function(o,i,u){var c=t(o),a=e(c);if(0===a)return!n&&-1;var f,s=r(u,a);if(n&&i!=i){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((n||s in c)&&c[s]===i)return n||s||0;return!n&&-1}};return ce={includes:n(!0),indexOf:n(!1)}}function we(){if(se)return fe;se=1;var t=dt(),r=cr(),e=gt(),n=be().indexOf,o=qr(),i=t([].push);return fe=function(t,u){var c,a=e(t),f=0,s=[];for(c in a)!r(o,c)&&r(a,c)&&i(s,c);for(;u.length>f;)r(a,c=u[f++])&&(~n(s,c)||i(s,c));return s}}function Se(){return de?le:(de=1,le=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Ee(){if(ve)return pe;ve=1;var t=we(),r=Se().concat("length","prototype");return pe.f=Object.getOwnPropertyNames||function(e){return t(e,r)},pe}var xe,Oe,Ie,je,Pe,Te,Me,Ae,Re,Ne,Ce,ke,De,Ve,Le,ze,Fe,_e,$e,Be,Ue,He,We,Ge,qe,Ke,Xe,Ye,Je={};function Qe(){if(Ie)return Oe;Ie=1;var t=wt(),r=dt(),e=Ee(),n=(xe||(xe=1,Je.f=Object.getOwnPropertySymbols),Je),o=Or(),i=r([].concat);return Oe=t("Reflect","ownKeys")||function(t){var r=e.f(o(t)),u=n.f;return u?i(r,u(t)):r}}function Ze(){if(Pe)return je;Pe=1;var t=cr(),r=Qe(),e=pr(),n=Ir();return je=function(o,i,u){for(var c=r(i),a=n.f,f=e.f,s=0;s<c.length;s++){var l=c[s];t(o,l)||u&&t(u,l)||a(o,l,f(i,l))}}}function tn(){if(Me)return Te;Me=1;var t=b(),r=mt(),e=/#|\.prototype\./,n=function(e,n){var a=i[o(e)];return a===c||a!==u&&(r(n)?t(n):!!n)},o=n.normalize=function(t){return String(t).replace(e,".").toLowerCase()},i=n.data={},u=n.NATIVE="N",c=n.POLYFILL="P";return Te=n}function rn(){if(Re)return Ae;Re=1;var t=f(),r=pr().f,e=jr(),n=Yr(),o=nr(),i=Ze(),u=tn();return Ae=function(c,a){var f,s,l,d,v,p=c.target,h=c.global,y=c.stat;if(f=h?t:y?t[p]||o(p,{}):t[p]&&t[p].prototype)for(s in a){if(d=a[s],l=c.dontCallGetSet?(v=r(f,s))&&v.value:f[s],!u(h?s:p+(y?".":"#")+s,c.forced)&&void 0!==l){if(typeof d==typeof l)continue;i(d,l)}(c.sham||l&&l.sham)&&e(d,"sham",!0),n(f,s,d,c)}}}function en(){if(Ce)return Ne;Ce=1;var t=vt();return Ne=Array.isArray||function(r){return"Array"===t(r)}}function nn(){if(De)return ke;De=1;var t=TypeError;return ke=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function on(){if(Le)return Ve;Le=1;var t=w(),r=Ir(),e=lt();return Ve=function(n,o,i){t?r.f(n,o,e(0,i)):n[o]=i}}function un(){if(Fe)return ze;Fe=1;var t={};return t[fr()("toStringTag")]="z",ze="[object z]"===String(t)}function cn(){if($e)return _e;$e=1;var t=un(),r=mt(),e=vt(),n=fr()("toStringTag"),o=Object,i="Arguments"===e(function(){return arguments}());return _e=t?e:function(t){var u,c,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),n))?c:i?e(u):"Object"===(a=e(u))&&r(u.callee)?"Arguments":a}}function an(){if(Ue)return Be;Ue=1;var t=dt(),r=b(),e=mt(),n=cn(),o=wt(),i=Hr(),u=function(){},c=o("Reflect","construct"),a=/^\s*(?:class|function)\b/,f=t(a.exec),s=!a.test(u),l=function(t){if(!e(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},d=function(t){if(!e(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!f(a,i(t))}catch(t){return!0}};return d.sham=!0,Be=!c||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?d:l}function fn(){if(We)return He;We=1;var t=en(),r=an(),e=bt(),n=fr()("species"),o=Array;return He=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||e(u)&&null===(u=u[n]))&&(u=void 0)),void 0===u?o:u}}function sn(){if(qe)return Ge;qe=1;var t=fn();return Ge=function(r,e){return new(t(r))(0===e?0:e)}}function ln(){if(Xe)return Ke;Xe=1;var t=b(),r=fr(),e=xt(),n=r("species");return Ke=function(r){return e>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(Ye)return a;Ye=1;var t=rn(),r=b(),e=en(),n=bt(),o=ur(),i=me(),u=nn(),c=on(),f=sn(),s=ln(),l=fr(),d=xt(),v=l("isConcatSpreadable"),p=d>=51||!r(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),h=function(t){if(!n(t))return!1;var r=t[v];return void 0!==r?!!r:e(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!s("concat")},{concat:function(t){var r,e,n,a,s,l=o(this),d=f(l,0),v=0;for(r=-1,n=arguments.length;r<n;r++)if(h(s=-1===r?l:arguments[r]))for(a=i(s),u(v+a),e=0;e<a;e++,v++)e in s&&c(d,v,s[e]);else u(v+1),c(d,v++,s);return d.length=v,d}})}();var dn,vn,pn,hn,yn,gn,mn,bn,wn,Sn={};function En(){if(vn)return dn;vn=1;var t=cn(),r=String;return dn=function(e){if("Symbol"===t(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}}function xn(){return hn?pn:(hn=1,pn="\t\n\v\f\r                 \u2028\u2029\ufeff")}!function(){if(wn)return Sn;wn=1;var t=rn(),r=function(){if(gn)return yn;gn=1;var t=dt(),r=yt(),e=En(),n=xn(),o=t("".replace),i=RegExp("^["+n+"]+"),u=RegExp("(^|[^"+n+"])["+n+"]+$"),c=function(t){return function(n){var c=e(r(n));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return yn={start:c(1),end:c(2),trim:c(3)}}().trim,e=function(){if(bn)return mn;bn=1;var t=Ur().PROPER,r=b(),e=xn();return mn=function(n){return r(function(){return!!e[n]()||"​…᠎"!=="​…᠎"[n]()||t&&e[n].name!==n})}}();t({target:"String",proto:!0,forced:e("trim")},{trim:function(){return r(this)}})}();var On,In,jn={};function Pn(t){return t.length?t[0].tagName.toLowerCase():""}function Tn(t,e,n,o){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===o&&(o={});var i=r(t),u=o.width,c=void 0===u?"":u,a=o.height,f=void 0===a?"":a,s="";return c&&(s+="width: ".concat(c,";")),f&&(s+="height: ".concat(f,";")),i.attr("width",e),i.attr("height",n),i.attr("style",s),i[0].outerHTML}In||(In=1,function(){if(On)return jn;On=1;var t=rn(),r=f();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),r.append&&(r.fn.append=r.append),r.on&&(r.fn.on=r.on),r.focus&&(r.fn.focus=r.focus),r.attr&&(r.fn.attr=r.attr),r.val&&(r.fn.val=r.val),r.html&&(r.fn.html=r.html),r.parent&&(r.fn.parent=r.parent),r.hasClass&&(r.fn.hasClass=r.hasClass),r.empty&&(r.fn.empty=r.empty);var Mn,An,Rn,Nn={type:"video",elemToHtml:function(t,r){var e=t,n=e.src,o=void 0===n?"":n,i=e.poster,u=void 0===i?"":i,c=e.width,a=void 0===c?"auto":c,f=e.height,s=void 0===f?"auto":f,l=e.style,d=void 0===l?{}:l,v=e.textAlign,p='<div data-w-e-type="video" data-w-e-is-void style="text-align: '.concat(void 0===v?"center":v,';">\n');if(0===o.trim().indexOf("<iframe ")){p+=Tn(o,a,s,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,";")),p+='<video poster="'.concat(u,'" controls="true" width="').concat(a,'" height="').concat(s,'" style="').concat(b,'"><source src="').concat(o,'" type="video/mp4"/></video>')}return p+="\n</div>"}},Cn={};function kn(){if(An)return Mn;An=1;var t=Xr(),r=Ir();return Mn=function(e,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),r.f(e,n,o)}}!function(){if(Rn)return Cn;Rn=1;var t=w(),r=Ur().EXISTS,e=dt(),n=kn(),o=Function.prototype,i=e(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=e(u.exec);t&&!r&&n(o,"name",{configurable:!0,get:function(){try{return c(u,i(this))[1]}catch(t){return""}}})}();var Dn,Vn,Ln,zn,Fn,_n,$n={};function Bn(){if(zn)return Ln;zn=1;var t=function(){if(Vn)return Dn;Vn=1;var t=vt(),r=dt();return Dn=function(e){if("Function"===t(e))return r(e)}}(),r=Tt(),e=S(),n=t(t.bind);return Ln=function(t,o){return r(t),void 0===o?t:e?n(t,o):function(){return t.apply(o,arguments)}},Ln}function Un(){if(_n)return Fn;_n=1;var t=Bn(),r=dt(),e=pt(),n=ur(),o=me(),i=sn(),u=r([].push),c=function(r){var c=1===r,a=2===r,f=3===r,s=4===r,l=6===r,d=7===r,v=5===r||l;return function(p,h,y,g){for(var m,b,w=n(p),S=e(w),E=o(S),x=t(h,y),O=0,I=g||i,j=c?I(p,E):a||d?I(p,0):void 0;E>O;O++)if((v||O in S)&&(b=x(m=S[O],O,w),r))if(c)j[O]=b;else if(b)switch(r){case 3:return!0;case 5:return m;case 6:return O;case 2:u(j,m)}else switch(r){case 4:return!1;case 7:u(j,m)}return l?-1:f||s?s:j}};return Fn={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}var Hn,Wn,Gn,qn,Kn,Xn,Yn,Jn,Qn,Zn,to={};function ro(){if(Wn)return Hn;Wn=1;var t=we(),r=Se();return Hn=Object.keys||function(e){return t(e,r)}}function eo(){if(Kn)return qn;Kn=1;var t=wt();return qn=t("document","documentElement")}function no(){if(Yn)return Xn;Yn=1;var t,r=Or(),e=function(){if(Gn)return to;Gn=1;var t=w(),r=xr(),e=Ir(),n=Or(),o=gt(),i=ro();return to.f=t&&!r?Object.defineProperties:function(t,r){n(t);for(var u,c=o(r),a=i(r),f=a.length,s=0;f>s;)e.f(t,u=a[s++],c[u]);return t},to}(),n=Se(),o=qr(),i=eo(),u=dr(),c=Gr(),a="prototype",f="script",s=c("IE_PROTO"),l=function(){},d=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(d("")),t.close();var r=t.parentWindow.Object;return t=null,r},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,e,o;p="undefined"!=typeof document?document.domain&&t?v(t):(e=u("iframe"),o="java"+f+":",e.style.display="none",i.appendChild(e),e.src=String(o),(r=e.contentWindow.document).open(),r.write(d("document.F=Object")),r.close(),r.F):v(t);for(var c=n.length;c--;)delete p[a][n[c]];return p()};return o[s]=!0,Xn=Object.create||function(t,n){var o;return null!==t?(l[a]=r(t),o=new l,l[a]=null,o[s]=t):o=p(),void 0===n?o:e.f(o,n)}}function oo(){if(Qn)return Jn;Qn=1;var t=fr(),r=no(),e=Ir().f,n=t("unscopables"),o=Array.prototype;return void 0===o[n]&&e(o,n,{configurable:!0,value:r(null)}),Jn=function(t){o[n][t]=!0}}!function(){if(Zn)return $n;Zn=1;var t=rn(),r=Un().find,e=oo(),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),e(n)}();var io,uo,co,ao={};!function(){if(co)return ao;co=1;var t=un(),r=Yr(),e=function(){if(uo)return io;uo=1;var t=un(),r=cn();return io=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",e,{unsafe:!0})}();var fo,so,lo,vo,po,ho,yo,go,mo,bo,wo,So={};function Eo(){if(so)return fo;so=1;var t=Or();return fo=function(){var r=t(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}}function xo(){if(bo)return mo;bo=1;var t,r,e=E(),n=dt(),o=En(),i=Eo(),u=function(){if(vo)return lo;vo=1;var t=b(),r=f().RegExp,e=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),n=e||t(function(){return!r("a","y").sticky}),o=e||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return lo={BROKEN_CARET:o,MISSED_STICKY:n,UNSUPPORTED_Y:e}}(),c=ir(),a=no(),s=Kr().get,l=function(){if(ho)return po;ho=1;var t=b(),r=f().RegExp;return po=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),d=function(){if(go)return yo;go=1;var t=b(),r=f().RegExp;return yo=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),v=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,y=n("".charAt),g=n("".indexOf),m=n("".replace),w=n("".slice),S=(r=/b*/g,e(p,t=/a/,"a"),e(p,r,"a"),0!==t.lastIndex||0!==r.lastIndex),x=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];return(S||O||x||l||d)&&(h=function(t){var r,n,u,c,f,l,d,b=this,E=s(b),I=o(t),j=E.raw;if(j)return j.lastIndex=b.lastIndex,r=e(h,j,I),b.lastIndex=j.lastIndex,r;var P=E.groups,T=x&&b.sticky,M=e(i,b),A=b.source,R=0,N=I;if(T&&(M=m(M,"y",""),-1===g(M,"g")&&(M+="g"),N=w(I,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==y(I,b.lastIndex-1))&&(A="(?: "+A+")",N=" "+N,R++),n=new RegExp("^(?:"+A+")",M)),O&&(n=new RegExp("^"+A+"$(?!\\s)",M)),S&&(u=b.lastIndex),c=e(p,T?n:b,N),T?c?(c.input=w(c.input,R),c[0]=w(c[0],R),c.index=b.lastIndex,b.lastIndex+=c[0].length):b.lastIndex=0:S&&c&&(b.lastIndex=b.global?c.index+c[0].length:u),O&&c&&c.length>1&&e(v,c[0],n,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(c[f]=void 0)}),c&&P)for(c.groups=l=a(null),f=0;f<P.length;f++)l[(d=P[f])[0]]=c[d[1]];return c}),mo=h}function Oo(){if(wo)return So;wo=1;var t=rn(),r=xo();return t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),So}Oo();var Io=function(){return Io=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},Io.apply(this,arguments)};function jo(t,r,e,n){return new(e||(e=Promise))(function(o,i){function u(t){try{a(n.next(t))}catch(t){i(t)}}function c(t){try{a(n.throw(t))}catch(t){i(t)}}function a(t){var r;t.done?o(t.value):(r=t.value,r instanceof e?r:new e(function(t){t(r)})).then(u,c)}a((n=n.apply(t,r||[])).next())})}function Po(t,r){var e,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(e=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=r.call(t,i)}catch(t){c=[6,t],n=0}finally{e=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}function To(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mo(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function Ao(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,e=t[Symbol.asyncIterator];return e?e.call(t):(t=To(t),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(e){r[e]=t[e]&&function(r){return new Promise(function(n,o){(function(t,r,e,n){Promise.resolve(n).then(function(r){t({value:r,done:e})},r)})(n,o,(r=t[e](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var Ro,No,Co,ko,Do,Vo,Lo,zo,Fo,_o,$o,Bo,Uo,Ho,Wo,Go,qo,Ko={};function Xo(){if(No)return Ro;No=1;var t=S(),r=Function.prototype,e=r.apply,n=r.call;return Ro="object"==typeof Reflect&&Reflect.apply||(t?n.bind(e):function(){return n.apply(e,arguments)}),Ro}function Yo(){if(Vo)return Do;Vo=1;var t=dt(),r=he(),e=En(),n=yt(),o=t("".charAt),i=t("".charCodeAt),u=t("".slice),c=function(t){return function(c,a){var f,s,l=e(n(c)),d=r(a),v=l.length;return d<0||d>=v?t?"":void 0:(f=i(l,d))<55296||f>56319||d+1===v||(s=i(l,d+1))<56320||s>57343?t?o(l,d):f:t?u(l,d,d+2):s-56320+(f-55296<<10)+65536}};return Do={codeAt:c(!1),charAt:c(!0)}}function Jo(){if(zo)return Lo;zo=1;var t=Yo().charAt;return Lo=function(r,e,n){return e+(n?t(r,e).length:1)}}function Qo(){if(_o)return Fo;_o=1;var t=dt(),r=ur(),e=Math.floor,n=t("".charAt),o=t("".replace),i=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;return Fo=function(t,a,f,s,l,d){var v=f+t.length,p=s.length,h=c;return void 0!==l&&(l=r(l),h=u),o(d,h,function(r,o){var u;switch(n(o,0)){case"$":return"$";case"&":return t;case"`":return i(a,0,f);case"'":return i(a,v);case"<":u=l[i(o,1,-1)];break;default:var c=+o;if(0===c)return r;if(c>p){var d=e(c/10);return 0===d?r:d<=p?void 0===s[d-1]?n(o,1):s[d-1]+n(o,1):r}u=s[c-1]}return void 0===u?"":u})}}function Zo(){if(Ho)return Uo;Ho=1;var t=E(),r=cr(),e=St(),n=function(){if(Bo)return $o;Bo=1;var t=f(),r=b(),e=t.RegExp,n=!r(function(){var t=!0;try{e(".","d")}catch(r){t=!1}var r={},n="",o=t?"dgimsy":"gimsy",i=function(t,e){Object.defineProperty(r,t,{get:function(){return n+=e,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in t&&(u.hasIndices="d"),u)i(c,u[c]);return Object.getOwnPropertyDescriptor(e.prototype,"flags").get.call(r)!==o||n!==o});return $o={correct:n}}(),o=Eo(),i=RegExp.prototype;return Uo=n.correct?function(t){return t.flags}:function(u){return n.correct||!e(i,u)||r(u,"flags")?u.flags:t(o,u)}}!function(){if(qo)return Ko;qo=1;var t=Xo(),r=E(),e=dt(),n=function(){if(ko)return Co;ko=1,Oo();var t=E(),r=Yr(),e=xo(),n=b(),o=fr(),i=jr(),u=o("species"),c=RegExp.prototype;return Co=function(a,f,s,l){var d=o(a),v=!n(function(){var t={};return t[d]=function(){return 7},7!==""[a](t)}),p=v&&!n(function(){var t=!1,r=/a/;if("split"===a){var e={};e[u]=function(){return r},(r={constructor:e,flags:""})[d]=/./[d]}return r.exec=function(){return t=!0,null},r[d](""),!t});if(!v||!p||s){var h=/./[d],y=f(d,""[a],function(r,n,o,i,u){var a=n.exec;return a===e||a===c.exec?v&&!u?{done:!0,value:t(h,n,o,i)}:{done:!0,value:t(r,o,n,i)}:{done:!1}});r(String.prototype,a,y[0]),r(c,d,y[1])}l&&i(c[d],"sham",!0)}}(),o=b(),i=Or(),u=mt(),c=bt(),a=he(),f=ge(),s=En(),l=yt(),d=Jo(),v=Mt(),p=Qo(),h=Zo(),y=function(){if(Go)return Wo;Go=1;var t=E(),r=Or(),e=mt(),n=vt(),o=xo(),i=TypeError;return Wo=function(u,c){var a=u.exec;if(e(a)){var f=t(a,u,c);return null!==f&&r(f),f}if("RegExp"===n(u))return t(o,u,c);throw new i("RegExp#exec called on incompatible receiver")}}(),g=fr()("replace"),m=Math.max,w=Math.min,S=e([].concat),x=e([].push),O=e("".indexOf),I=e("".slice),j=function(t){return void 0===t?t:String(t)},P="$0"==="a".replace(/./,"$0"),T=!!/./[g]&&""===/./[g]("a","$0");n("replace",function(e,n,o){var b=T?"$":"$0";return[function(t,e){var o=l(this),i=c(t)?v(t,g):void 0;return i?r(i,t,o,e):r(n,s(o),t,e)},function(r,e){var c=i(this),l=s(r);if("string"==typeof e&&-1===O(e,b)&&-1===O(e,"$<")){var v=o(n,c,l,e);if(v.done)return v.value}var g=u(e);g||(e=s(e));var E,P=s(h(c)),T=-1!==O(P,"g");T&&(E=-1!==O(P,"u"),c.lastIndex=0);for(var M,A=[];null!==(M=y(c,l))&&(x(A,M),T);){""===s(M[0])&&(c.lastIndex=d(l,f(c.lastIndex),E))}for(var R="",N=0,C=0;C<A.length;C++){for(var k,D=s((M=A[C])[0]),V=m(w(a(M.index),l.length),0),L=[],z=1;z<M.length;z++)x(L,j(M[z]));var F=M.groups;if(g){var _=S([D],L,V,l);void 0!==F&&x(_,F),k=s(t(e,void 0,_))}else k=p(D,l,V,L,F,e);V>=N&&(R+=I(l,N,V)+k,N=V+D.length)}return R+I(l,N)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!P||T)}();var ti,ri,ei,ni,oi,ii,ui,ci,ai,fi={};function si(){return ri?ti:(ri=1,ti={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})}function li(){if(ni)return ei;ni=1;var t=dr()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return ei=r===Object.prototype?void 0:r}function di(){if(ii)return oi;ii=1;var t=b();return oi=function(r,e){var n=[][r];return!!n&&t(function(){n.call(null,e||function(){return 1},1)})}}function vi(t){return void 0===t&&(t="r"),"".concat(t,"-").concat(n.nanoid())}function pi(t){var r={};return t.trim().split(";").forEach(function(t){if(t){var e=Mo(t.split(":"),2),n=e[0],o=e[1];n&&o&&(r[n.trim()]=o.trim())}}),r}function hi(){return vi("w-e-insert-video")}!function(){if(ai)return fi;ai=1;var t=f(),r=si(),e=li(),n=function(){if(ci)return ui;ci=1;var t=Un().forEach,r=di()("forEach");return ui=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},ui}(),o=jr(),i=function(t){if(t&&t.forEach!==n)try{o(t,"forEach",n)}catch(r){t.forEach=n}};for(var u in r)r[u]&&i(t[u]&&t[u].prototype);i(e)}();var yi=function(){function n(){this.title=t.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=hi(),this.heightInputId=hi(),this.buttonId=hi()}return n.prototype.getSelectedVideoNode=function(r){return t.DomEditor.getSelectedNodeByType(r,"video")},n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.exec=function(t,r){},n.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},n.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},n.prototype.getModalContentElem=function(n){var o=this,i=o.widthInputId,u=o.heightInputId,c=o.buttonId,a=Mo(t.genModalInputElems(t.t("videoModule.width"),i,"auto"),2),f=a[0],s=a[1],l=r(s),d=Mo(t.genModalInputElems(t.t("videoModule.height"),u,"auto"),2),v=d[0],p=d[1],h=r(p),y=Mo(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0],g=this.getSelectedVideoNode(n);if(null==this.$content){var m=r("<div></div>");m.on("click","#".concat(c),function(r){r.preventDefault();var o=m.find("#".concat(i)).val().trim(),c=m.find("#".concat(u)).val().trim(),a=function(t){return/^\d+(\.\d+)?%$/.test(t)},f=function(t){return/^\d+(\.\d+)?$/.test(t)},s="auto",l="auto";a(o)?s=o:f(o)&&(s="".concat(parseInt(o,10),"px")),a(c)?l=c:f(c)&&(l="".concat(parseInt(c,10),"px"));var d=g.style,v=void 0===d?{}:d;n.restoreSelection();var p={style:Io(Io({},v),{width:s,height:l})};e.Transforms.setNodes(n,p,{match:function(r){return t.DomEditor.checkNodeType(r,"video")}}),n.hidePanelOrModal()}),this.$content=m}var b=this.$content;if(b.empty(),b.append(f),b.append(v),b.append(y),null==g)return b[0];var w=g.style,S=void 0===w?{}:w,E=S.width,x=void 0===E?"":E,O=S.height,I=void 0===O?"":O;return l.val(x),h.val(I),setTimeout(function(){l.focus()}),b[0]},n}();function gi(){return vi("w-e-edit-video")}var mi,bi,wi,Si,Ei,xi,Oi,Ii,ji,Pi,Ti,Mi,Ai,Ri,Ni,Ci,ki,Di,Vi,Li,zi,Fi,_i,$i,Bi,Ui,Hi,Wi,Gi,qi,Ki,Xi,Yi,Ji,Qi,Zi,tu,ru,eu,nu,ou,iu,uu,cu,au,fu,su,lu,du,vu,pu=function(){function n(){this.title=t.t("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=gi(),this.posterInputId=gi(),this.buttonId=gi()}return n.prototype.getSelectedVideoNode=function(r){return t.DomEditor.getSelectedNodeByType(r,"video")},n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.exec=function(t,r){},n.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},n.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},n.prototype.getModalContentElem=function(n){var o=this,i=this,u=i.srcInputId,c=i.posterInputId,a=i.buttonId,f=Mo(t.genModalInputElems(t.t("videoModule.videoSrc"),u,t.t("videoModule.videoSrcPlaceHolder")),2),s=f[0],l=f[1],d=Mo(t.genModalInputElems(t.t("videoModule.videoPoster"),c,t.t("videoModule.videoPosterPlaceHolder")),2),v=d[0],p=d[1],h=r(l),y=r(p),g=Mo(t.genModalButtonElems(a,t.t("videoModule.ok")),1)[0];if(null==this.$content){var m=r("<div></div>");m.on("click","#".concat(a),function(r){return jo(o,void 0,void 0,function(){var o,i,a,f;return Po(this,function(s){return r.preventDefault(),o=m.find("#".concat(u)).val().trim(),i=m.find("#".concat(c)).val().trim(),a=vi("video-"),f={src:o,poster:i,key:a},n.restoreSelection(),e.Transforms.setNodes(n,f,{match:function(r){return t.DomEditor.checkNodeType(r,"video")}}),n.hidePanelOrModal(),[2]})})}),this.$content=m}var b=this.$content;b.empty(),b.append(s),b.append(v),b.append(g);var w=this.getSelectedVideoNode(n);if(null==w)return b[0];var S=w.src,E=void 0===S?"":S,x=w.poster,O=void 0===x?"":x;return h.val(E),y.val(O),setTimeout(function(){h.focus()}),b[0]},n}(),hu={};function yu(){if(bi)return mi;bi=1;var t=f(),r=Et(),e=vt(),n=function(t){return r.slice(0,t.length)===t};return mi=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===e(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function gu(){if(Si)return wi;Si=1;var t=yu();return wi="NODE"===t}function mu(){if(xi)return Ei;xi=1;var t=f();return Ei=t}function bu(){if(Pi)return ji;Pi=1;var t=bt();return ji=function(r){return t(r)||null===r}}function wu(){if(Mi)return Ti;Mi=1;var t=bu(),r=String,e=TypeError;return Ti=function(n){if(t(n))return n;throw new e("Can't set "+r(n)+" as a prototype")}}function Su(){if(Ri)return Ai;Ri=1;var t=function(){if(Ii)return Oi;Ii=1;var t=dt(),r=Tt();return Oi=function(e,n,o){try{return t(r(Object.getOwnPropertyDescriptor(e,n)[o]))}catch(t){}}}(),r=bt(),e=yt(),n=wu();return Ai=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,u={};try{(o=t(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch(t){}return function(t,u){return e(t),n(u),r(t)?(i?o(t,u):t.__proto__=u,t):t}}():void 0)}function Eu(){if(Ci)return Ni;Ci=1;var t=Ir().f,r=cr(),e=fr()("toStringTag");return Ni=function(n,o,i){n&&!i&&(n=n.prototype),n&&!r(n,e)&&t(n,e,{configurable:!0,value:o})}}function xu(){if(Di)return ki;Di=1;var t=wt(),r=kn(),e=fr(),n=w(),o=e("species");return ki=function(e){var i=t(e);n&&i&&!i[o]&&r(i,o,{configurable:!0,get:function(){return this}})}}function Ou(){if(Li)return Vi;Li=1;var t=St(),r=TypeError;return Vi=function(e,n){if(t(n,e))return e;throw new r("Incorrect invocation")}}function Iu(){if(Fi)return zi;Fi=1;var t=an(),r=Pt(),e=TypeError;return zi=function(n){if(t(n))return n;throw new e(r(n)+" is not a constructor")}}function ju(){if($i)return _i;$i=1;var t=Or(),r=Iu(),e=ht(),n=fr()("species");return _i=function(o,i){var u,c=t(o).constructor;return void 0===c||e(u=t(c)[n])?i:r(u)}}function Pu(){if(Ui)return Bi;Ui=1;var t=dt();return Bi=t([].slice)}function Tu(){if(Wi)return Hi;Wi=1;var t=TypeError;return Hi=function(r,e){if(r<e)throw new t("Not enough arguments");return r}}function Mu(){if(qi)return Gi;qi=1;var t=Et();return Gi=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)}function Au(){if(Xi)return Ki;Xi=1;var t,r,e,n,o=f(),i=Xo(),u=Bn(),c=mt(),a=cr(),s=b(),l=eo(),d=Pu(),v=dr(),p=Tu(),h=Mu(),y=gu(),g=o.setImmediate,m=o.clearImmediate,w=o.process,S=o.Dispatch,E=o.Function,x=o.MessageChannel,O=o.String,I=0,j={},P="onreadystatechange";s(function(){t=o.location});var T=function(t){if(a(j,t)){var r=j[t];delete j[t],r()}},M=function(t){return function(){T(t)}},A=function(t){T(t.data)},R=function(r){o.postMessage(O(r),t.protocol+"//"+t.host)};return g&&m||(g=function(t){p(arguments.length,1);var e=c(t)?t:E(t),n=d(arguments,1);return j[++I]=function(){i(e,void 0,n)},r(I),I},m=function(t){delete j[t]},y?r=function(t){w.nextTick(M(t))}:S&&S.now?r=function(t){S.now(M(t))}:x&&!h?(n=(e=new x).port2,e.port1.onmessage=A,r=u(n.postMessage,n)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&t&&"file:"!==t.protocol&&!s(R)?(r=R,o.addEventListener("message",A,!1)):r=P in v("script")?function(t){l.appendChild(v("script"))[P]=function(){l.removeChild(this),T(t)}}:function(t){setTimeout(M(t),0)}),Ki={set:g,clear:m}}function Ru(){if(Ji)return Yi;Ji=1;var t=f(),r=w(),e=Object.getOwnPropertyDescriptor;return Yi=function(n){if(!r)return t[n];var o=e(t,n);return o&&o.value}}function Nu(){if(Zi)return Qi;Zi=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},Qi=t}function Cu(){if(iu)return ou;iu=1;var t,r,e,n,o,i=f(),u=Ru(),c=Bn(),a=Au().set,s=Nu(),l=Mu(),d=function(){if(ru)return tu;ru=1;var t=Et();return tu=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),v=function(){if(nu)return eu;nu=1;var t=Et();return eu=/web0s(?!.*chrome)/i.test(t)}(),p=gu(),h=i.MutationObserver||i.WebKitMutationObserver,y=i.document,g=i.process,m=i.Promise,b=u("queueMicrotask");if(!b){var w=new s,S=function(){var r,e;for(p&&(r=g.domain)&&r.exit();e=w.get();)try{e()}catch(r){throw w.head&&t(),r}r&&r.enter()};l||p||v||!h||!y?!d&&m&&m.resolve?((n=m.resolve(void 0)).constructor=m,o=c(n.then,n),t=function(){o(S)}):p?t=function(){g.nextTick(S)}:(a=c(a,i),t=function(){a(S)}):(r=!0,e=y.createTextNode(""),new h(S).observe(e,{characterData:!0}),t=function(){e.data=r=!r}),b=function(r){w.head||t(),w.add(r)}}return ou=b}function ku(){return cu||(cu=1,uu=function(t,r){try{1===arguments.length?console.error(t):console.error(t,r)}catch(t){}}),uu}function Du(){return fu?au:(fu=1,au=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Vu(){if(lu)return su;lu=1;var t=f();return su=t.Promise}function Lu(){if(vu)return du;vu=1;var t=f(),r=Vu(),e=mt(),n=tn(),o=Hr(),i=fr(),u=yu(),c=er(),a=xt(),s=r&&r.prototype,l=i("species"),d=!1,v=e(t.PromiseRejectionEvent),p=n("Promise",function(){var t=o(r),e=t!==String(r);if(!e&&66===a)return!0;if(c&&(!s.catch||!s.finally))return!0;if(!a||a<51||!/native code/.test(t)){var n=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((n.constructor={})[l]=i,!(d=n.then(function(){})instanceof i))return!0}return!(e||"BROWSER"!==u&&"DENO"!==u||v)});return du={CONSTRUCTOR:p,REJECTION_EVENT:v,SUBCLASSING:d}}var zu,Fu,_u={};function $u(){if(zu)return _u;zu=1;var t=Tt(),r=TypeError,e=function(e){var n,o;this.promise=new e(function(t,e){if(void 0!==n||void 0!==o)throw new r("Bad Promise constructor");n=t,o=e}),this.resolve=t(n),this.reject=t(o)};return _u.f=function(t){return new e(t)},_u}var Bu,Uu,Hu,Wu,Gu,qu,Ku,Xu,Yu,Ju,Qu,Zu,tc,rc,ec,nc,oc,ic={};function uc(){return Uu?Bu:(Uu=1,Bu={})}function cc(){if(Wu)return Hu;Wu=1;var t=fr(),r=uc(),e=t("iterator"),n=Array.prototype;return Hu=function(t){return void 0!==t&&(r.Array===t||n[e]===t)}}function ac(){if(qu)return Gu;qu=1;var t=cn(),r=Mt(),e=ht(),n=uc(),o=fr()("iterator");return Gu=function(i){if(!e(i))return r(i,o)||r(i,"@@iterator")||n[t(i)]}}function fc(){if(Xu)return Ku;Xu=1;var t=E(),r=Tt(),e=Or(),n=Pt(),o=ac(),i=TypeError;return Ku=function(u,c){var a=arguments.length<2?o(u):c;if(r(a))return e(t(a,u));throw new i(n(u)+" is not iterable")},Ku}function sc(){if(Ju)return Yu;Ju=1;var t=E(),r=Or(),e=Mt();return Yu=function(n,o,i){var u,c;r(n);try{if(!(u=e(n,"return"))){if("throw"===o)throw i;return i}u=t(u,n)}catch(t){c=!0,u=t}if("throw"===o)throw i;if(c)throw u;return r(u),i}}function lc(){if(Zu)return Qu;Zu=1;var t=Bn(),r=E(),e=Or(),n=Pt(),o=cc(),i=me(),u=St(),c=fc(),a=ac(),f=sc(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},d=l.prototype;return Qu=function(v,p,h){var y,g,m,b,w,S,E,x=h&&h.that,O=!(!h||!h.AS_ENTRIES),I=!(!h||!h.IS_RECORD),j=!(!h||!h.IS_ITERATOR),P=!(!h||!h.INTERRUPTED),T=t(p,x),M=function(t){return y&&f(y,"normal"),new l(!0,t)},A=function(t){return O?(e(t),P?T(t[0],t[1],M):T(t[0],t[1])):P?T(t,M):T(t)};if(I)y=v.iterator;else if(j)y=v;else{if(!(g=a(v)))throw new s(n(v)+" is not iterable");if(o(g)){for(m=0,b=i(v);b>m;m++)if((w=A(v[m]))&&u(d,w))return w;return new l(!1)}y=c(v,g)}for(S=I?v.next:y.next;!(E=r(S,y)).done;){try{w=A(E.value)}catch(t){f(y,"throw",t)}if("object"==typeof w&&w&&u(d,w))return w}return new l(!1)}}function dc(){if(rc)return tc;rc=1;var t=fr()("iterator"),r=!1;try{var e=0,n={next:function(){return{done:!!e++}},return:function(){r=!0}};n[t]=function(){return this},Array.from(n,function(){throw 2})}catch(t){}return tc=function(e,n){try{if(!n&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[t]=function(){return{next:function(){return{done:o=!0}}}},e(i)}catch(t){}return o}}function vc(){if(nc)return ec;nc=1;var t=Vu(),r=dc(),e=Lu().CONSTRUCTOR;return ec=e||!r(function(r){t.all(r).then(void 0,function(){})})}var pc,hc={};var yc,gc={};var mc,bc={};var wc,Sc,Ec,xc,Oc={};function Ic(){if(Sc)return wc;Sc=1;var t=Or(),r=bt(),e=$u();return wc=function(n,o){if(t(n),r(o)&&o.constructor===n)return o;var i=e.f(n);return(0,i.resolve)(o),i.promise}}function jc(r,n){return jo(this,arguments,void 0,function(r,n,o,i,u){var c,a,f,s,l,d,v;return void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u=""),Po(this,function(p){switch(p.label){case 0:return n?(r.restoreSelection(),c=r.getMenuConfig("insertVideo"),a=c.onInsertedVideo,f=c.checkVideo,s=c.parseVideoSrc,[4,f(n,o)]):[2];case 1:return"string"==typeof(l=p.sent())?(r.alert(l,"error"),[2]):null==l?[2]:[4,s(n)];case 2:return 0!==(d=p.sent()).trim().indexOf("<iframe ")&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;")),v={type:"video",src:d,poster:o,children:[{text:""}],style:{width:i,height:u}},Promise.resolve().then(function(){t.DomEditor.isSelectedEmptyParagraph(r)&&e.Transforms.removeNodes(r,{mode:"highest"}),e.Transforms.insertNodes(r,v,{mode:"highest"})}),a(v),[2]}})})}function Pc(){return vi("w-e-insert-video")}xc||(xc=1,function(){if(Fu)return hu;Fu=1;var t,r,e,n,o=rn(),i=er(),u=gu(),c=f(),a=mu(),s=E(),l=Yr(),d=Su(),v=Eu(),p=xu(),h=Tt(),y=mt(),g=bt(),m=Ou(),b=ju(),w=Au().set,S=Cu(),x=ku(),O=Du(),I=Nu(),j=Kr(),P=Vu(),T=Lu(),M=$u(),A="Promise",R=T.CONSTRUCTOR,N=T.REJECTION_EVENT,C=T.SUBCLASSING,k=j.getterFor(A),D=j.set,V=P&&P.prototype,L=P,z=V,F=c.TypeError,_=c.document,$=c.process,B=M.f,U=B,H=!!(_&&_.createEvent&&c.dispatchEvent),W="unhandledrejection",G=function(t){var r;return!(!g(t)||!y(r=t.then))&&r},q=function(t,r){var e,n,o,i=r.value,u=1===r.state,c=u?t.ok:t.fail,a=t.resolve,f=t.reject,l=t.domain;try{c?(u||(2===r.rejection&&Q(r),r.rejection=1),!0===c?e=i:(l&&l.enter(),e=c(i),l&&(l.exit(),o=!0)),e===t.promise?f(new F("Promise-chain cycle")):(n=G(e))?s(n,e,a,f):a(e)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},K=function(t,r){t.notified||(t.notified=!0,S(function(){for(var e,n=t.reactions;e=n.get();)q(e,t);t.notified=!1,r&&!t.rejection&&Y(t)}))},X=function(t,r,e){var n,o;H?((n=_.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:r,reason:e},!N&&(o=c["on"+t])?o(n):t===W&&x("Unhandled promise rejection",e)},Y=function(t){s(w,c,function(){var r,e=t.facade,n=t.value;if(J(t)&&(r=O(function(){u?$.emit("unhandledRejection",n,e):X(W,e,n)}),t.rejection=u||J(t)?2:1,r.error))throw r.value})},J=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){s(w,c,function(){var r=t.facade;u?$.emit("rejectionHandled",r):X("rejectionhandled",r,t.value)})},Z=function(t,r,e){return function(n){t(r,n,e)}},tt=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,K(t,!0))},rt=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new F("Promise can't be resolved itself");var n=G(r);n?S(function(){var e={done:!1};try{s(n,r,Z(rt,e,t),Z(tt,e,t))}catch(r){tt(e,r,t)}}):(t.value=r,t.state=1,K(t,!1))}catch(r){tt({done:!1},r,t)}}};if(R&&(z=(L=function(r){m(this,z),h(r),s(t,this);var e=k(this);try{r(Z(rt,e),Z(tt,e))}catch(t){tt(e,t)}}).prototype,(t=function(t){D(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:0,value:null})}).prototype=l(z,"then",function(t,r){var e=k(this),n=B(b(this,L));return e.parent=!0,n.ok=!y(t)||t,n.fail=y(r)&&r,n.domain=u?$.domain:void 0,0===e.state?e.reactions.add(n):S(function(){q(n,e)}),n.promise}),r=function(){var r=new t,e=k(r);this.promise=r,this.resolve=Z(rt,e),this.reject=Z(tt,e)},M.f=B=function(t){return t===L||t===e?new r(t):U(t)},!i&&y(P)&&V!==Object.prototype)){n=V.then,C||l(V,"then",function(t,r){var e=this;return new L(function(t,r){s(n,e,t,r)}).then(t,r)},{unsafe:!0});try{delete V.constructor}catch(t){}d&&d(V,z)}o({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:L}),e=a.Promise,v(L,A,!1,!0),p(A)}(),function(){if(oc)return ic;oc=1;var t=rn(),r=E(),e=Tt(),n=$u(),o=Du(),i=lc();t({target:"Promise",stat:!0,forced:vc()},{all:function(t){var u=this,c=n.f(u),a=c.resolve,f=c.reject,s=o(function(){var n=e(u.resolve),o=[],c=0,s=1;i(t,function(t){var e=c++,i=!1;s++,r(n,u,t).then(function(t){i||(i=!0,o[e]=t,--s||a(o))},f)}),--s||a(o)});return s.error&&f(s.value),c.promise}})}(),function(){if(pc)return hc;pc=1;var t=rn(),r=er(),e=Lu().CONSTRUCTOR,n=Vu(),o=wt(),i=mt(),u=Yr(),c=n&&n.prototype;if(t({target:"Promise",proto:!0,forced:e,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&i(n)){var a=o("Promise").prototype.catch;c.catch!==a&&u(c,"catch",a,{unsafe:!0})}}(),function(){if(yc)return gc;yc=1;var t=rn(),r=E(),e=Tt(),n=$u(),o=Du(),i=lc();t({target:"Promise",stat:!0,forced:vc()},{race:function(t){var u=this,c=n.f(u),a=c.reject,f=o(function(){var n=e(u.resolve);i(t,function(t){r(n,u,t).then(c.resolve,a)})});return f.error&&a(f.value),c.promise}})}(),function(){if(mc)return bc;mc=1;var t=rn(),r=$u();t({target:"Promise",stat:!0,forced:Lu().CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})}(),function(){if(Ec)return Oc;Ec=1;var t=rn(),r=wt(),e=er(),n=Vu(),o=Lu().CONSTRUCTOR,i=Ic(),u=r("Promise"),c=e&&!o;t({target:"Promise",stat:!0,forced:e||o},{resolve:function(t){return i(c&&this===u?n:this,t)}})}());var Tc,Mc,Ac,Rc,Nc,Cc,kc,Dc,Vc,Lc,zc,Fc,_c,$c,Bc,Uc=function(){function n(){this.title=t.t("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=Pc(),this.posterInputId=Pc(),this.buttonId=Pc()}return n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.exec=function(t,r){},n.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||!!t.DomEditor.getSelectedElems(r).some(function(e){var n=t.DomEditor.getNodeType(e);return"pre"===n||("list-item"===n||!!r.isVoid(e))}))},n.prototype.getModalPositionNode=function(t){return null},n.prototype.getModalContentElem=function(e){var n=this,o=this,i=o.srcInputId,u=o.posterInputId,c=o.buttonId,a=Mo(t.genModalInputElems(t.t("videoModule.videoSrc"),i,t.t("videoModule.videoSrcPlaceHolder")),2),f=a[0],s=a[1],l=Mo(t.genModalInputElems(t.t("videoModule.videoPoster"),u,t.t("videoModule.videoPosterPlaceHolder")),2),d=l[0],v=l[1],p=r(s),h=r(v),y=Mo(t.genModalButtonElems(c,t.t("videoModule.ok")),1)[0];if(null==this.$content){var g=r("<div></div>");g.on("click","#".concat(c),function(t){return jo(n,void 0,void 0,function(){var r,n;return Po(this,function(o){switch(o.label){case 0:return t.preventDefault(),r=g.find("#".concat(i)).val().trim(),n=g.find("#".concat(u)).val().trim(),[4,jc(e,r,n)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(f),m.append(d),m.append(y),p.val(""),h.val(""),setTimeout(function(){p.focus()}),m[0]},n}(),Hc={};function Wc(){if(Nc)return Rc;Nc=1;var t=cr(),r=mt(),e=ur(),n=Gr(),o=function(){if(Ac)return Mc;Ac=1;var t=b();return Mc=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=n("IE_PROTO"),u=Object,c=u.prototype;return Rc=o?u.getPrototypeOf:function(n){var o=e(n);if(t(o,i))return o[i];var a=o.constructor;return r(a)&&o instanceof a?a.prototype:o instanceof u?c:null}}function Gc(){if(kc)return Cc;kc=1;var t,r,e,n=b(),o=mt(),i=bt(),u=no(),c=Wc(),a=Yr(),f=fr(),s=er(),l=f("iterator"),d=!1;return[].keys&&("next"in(e=[].keys())?(r=c(c(e)))!==Object.prototype&&(t=r):d=!0),!i(t)||n(function(){var r={};return t[l].call(r)!==r})?t={}:s&&(t=u(t)),o(t[l])||a(t,l,function(){return this}),Cc={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}}function qc(){if(zc)return Lc;zc=1;var t=rn(),r=E(),e=er(),n=Ur(),o=mt(),i=function(){if(Vc)return Dc;Vc=1;var t=Gc().IteratorPrototype,r=no(),e=lt(),n=Eu(),o=uc(),i=function(){return this};return Dc=function(u,c,a,f){var s=c+" Iterator";return u.prototype=r(t,{next:e(+!f,a)}),n(u,s,!1,!0),o[s]=i,u}}(),u=Wc(),c=Su(),a=Eu(),f=jr(),s=Yr(),l=fr(),d=uc(),v=Gc(),p=n.PROPER,h=n.CONFIGURABLE,y=v.IteratorPrototype,g=v.BUGGY_SAFARI_ITERATORS,m=l("iterator"),b="keys",w="values",S="entries",x=function(){return this};return Lc=function(n,l,v,E,O,I,j){i(v,l,E);var P,T,M,A=function(t){if(t===O&&D)return D;if(!g&&t&&t in C)return C[t];switch(t){case b:case w:case S:return function(){return new v(this,t)}}return function(){return new v(this)}},R=l+" Iterator",N=!1,C=n.prototype,k=C[m]||C["@@iterator"]||O&&C[O],D=!g&&k||A(O),V="Array"===l&&C.entries||k;if(V&&(P=u(V.call(new n)))!==Object.prototype&&P.next&&(e||u(P)===y||(c?c(P,y):o(P[m])||s(P,m,x)),a(P,R,!0,!0),e&&(d[R]=x)),p&&O===w&&k&&k.name!==w&&(!e&&h?f(C,"name",w):(N=!0,D=function(){return r(k,this)})),O)if(T={values:A(w),keys:I?D:A(b),entries:A(S)},j)for(M in T)(g||N||!(M in C))&&s(C,M,T[M]);else t({target:l,proto:!0,forced:g||N},T);return e&&!j||C[m]===D||s(C,m,D,{name:O}),d[l]=D,T}}function Kc(){return _c?Fc:(_c=1,Fc=function(t,r){return{value:t,done:r}})}function Xc(){if(Bc)return $c;Bc=1;var t=gt(),r=oo(),e=uc(),n=Kr(),o=Ir().f,i=qc(),u=Kc(),c=er(),a=w(),f="Array Iterator",s=n.set,l=n.getterFor(f);$c=i(Array,"Array",function(r,e){s(this,{type:f,target:t(r),index:0,kind:e})},function(){var t=l(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(e,!1);case"values":return u(r[e],!1)}return u([e,r[e]],!1)},"values");var d=e.Arguments=e.Array;if(r("keys"),r("values"),r("entries"),!c&&a&&"values"!==d.name)try{o(d,"name",{value:"values"})}catch(t){}return $c}!function(){if(Tc)return Hc;Tc=1;var t=rn(),r=dt(),e=pt(),n=gt(),o=di(),i=r([].join);t({target:"Array",proto:!0,forced:e!==Object||!o("join",",")},{join:function(t){return i(n(this),void 0===t?",":t)}})}(),Xc();var Yc,Jc={};!function(){if(Yc)return Jc;Yc=1;var t=rn(),r=Un().map;t({target:"Array",proto:!0,forced:!ln()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Qc,Zc={};!function(){if(Qc)return Zc;Qc=1;var t=rn(),r=en(),e=an(),n=bt(),o=ye(),i=me(),u=gt(),c=on(),a=fr(),f=ln(),s=Pu(),l=f("slice"),d=a("species"),v=Array,p=Math.max;t({target:"Array",proto:!0,forced:!l},{slice:function(t,a){var f,l,h,y=u(this),g=i(y),m=o(t,g),b=o(void 0===a?g:a,g);if(r(y)&&(f=y.constructor,(e(f)&&(f===v||r(f.prototype))||n(f)&&null===(f=f[d]))&&(f=void 0),f===v||void 0===f))return s(y,m,b);for(l=new(void 0===f?v:f)(p(b-m,0)),h=0;m<b;m++,h++)m in y&&c(l,h,y[m]);return l.length=h,l}})}();var ta,ra={};!function(){if(ta)return ra;ta=1;var t=Yo().charAt,r=En(),e=Kr(),n=qc(),o=Kc(),i="String Iterator",u=e.set,c=e.getterFor(i);n(String,"String",function(t){u(this,{type:i,string:r(t),index:0})},function(){var r,e=c(this),n=e.string,i=e.index;return i>=n.length?o(void 0,!0):(r=t(n,i),e.index+=r.length,o(r,!1))})}();var ea,na,oa,ia,ua={};function ca(){if(na)return ea;na=1;var t=b();return ea=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function aa(){if(ia)return oa;ia=1;var t=Yr();return oa=function(r,e,n){for(var o in e)t(r,o,e[o],n);return r}}var fa,sa,la,da,va,pa,ha,ya,ga,ma,ba,wa,Sa,Ea,xa={exports:{}},Oa={};function Ia(){if(fa)return Oa;fa=1;var t=vt(),r=gt(),e=Ee().f,n=Pu(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Oa.f=function(i){return o&&"Window"===t(i)?function(t){try{return e(t)}catch(t){return n(o)}}(i):e(r(i))},Oa}function ja(){if(va)return da;va=1;var t=b(),r=bt(),e=vt(),n=function(){if(la)return sa;la=1;var t=b();return sa=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),o=Object.isExtensible,i=t(function(){});return da=i||n?function(t){return!!r(t)&&((!n||"ArrayBuffer"!==e(t))&&(!o||o(t)))}:o}function Pa(){if(pa)return xa.exports;pa=1;var t=rn(),r=dt(),e=qr(),n=bt(),o=cr(),i=Ir().f,u=Ee(),c=Ia(),a=ja(),f=ar(),s=ca(),l=!1,d=f("meta"),v=0,p=function(t){i(t,d,{value:{objectID:"O"+v++,weakData:{}}})},h=xa.exports={enable:function(){h.enable=function(){},l=!0;var e=u.f,n=r([].splice),o={};o[d]=1,e(o).length&&(u.f=function(t){for(var r=e(t),o=0,i=r.length;o<i;o++)if(r[o]===d){n(r,o,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,r){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,d)){if(!a(t))return"F";if(!r)return"E";p(t)}return t[d].objectID},getWeakData:function(t,r){if(!o(t,d)){if(!a(t))return!0;if(!r)return!1;p(t)}return t[d].weakData},onFreeze:function(t){return s&&l&&a(t)&&!o(t,d)&&p(t),t}};return e[d]=!0,xa.exports}function Ta(){if(ya)return ha;ya=1;var t=mt(),r=bt(),e=Su();return ha=function(n,o,i){var u,c;return e&&t(u=o.constructor)&&u!==i&&r(c=u.prototype)&&c!==i.prototype&&e(n,c),n}}function Ma(){if(ma)return ga;ma=1;var t=rn(),r=f(),e=dt(),n=tn(),o=Yr(),i=Pa(),u=lc(),c=Ou(),a=mt(),s=ht(),l=bt(),d=b(),v=dc(),p=Eu(),h=Ta();return ga=function(f,y,g){var m=-1!==f.indexOf("Map"),b=-1!==f.indexOf("Weak"),w=m?"set":"add",S=r[f],E=S&&S.prototype,x=S,O={},I=function(t){var r=e(E[t]);o(E,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(n(f,!a(S)||!(b||E.forEach&&!d(function(){(new S).entries().next()}))))x=g.getConstructor(y,f,m,w),i.enable();else if(n(f,!0)){var j=new x,P=j[w](b?{}:-0,1)!==j,T=d(function(){j.has(1)}),M=v(function(t){new S(t)}),A=!b&&d(function(){for(var t=new S,r=5;r--;)t[w](r,r);return!t.has(-0)});M||((x=y(function(t,r){c(t,E);var e=h(new S,t,x);return s(r)||u(r,e[w],{that:e,AS_ENTRIES:m}),e})).prototype=E,E.constructor=x),(T||A)&&(I("delete"),I("has"),m&&I("get")),(A||P)&&I(w),b&&E.clear&&delete E.clear}return O[f]=x,t({global:!0,constructor:!0,forced:x!==S},O),p(x,f),b||g.setStrong(x,f,m),x}}function Aa(){if(wa)return ba;wa=1;var t=dt(),r=aa(),e=Pa().getWeakData,n=Ou(),o=Or(),i=ht(),u=bt(),c=lc(),a=Un(),f=cr(),s=Kr(),l=s.set,d=s.getterFor,v=a.find,p=a.findIndex,h=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,r){return v(t.entries,function(t){return t[0]===r})};return m.prototype={get:function(t){var r=b(this,t);if(r)return r[1]},has:function(t){return!!b(this,t)},set:function(t,r){var e=b(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=p(this.entries,function(r){return r[0]===t});return~r&&h(this.entries,r,1),!!~r}},ba={getConstructor:function(t,a,s,v){var p=t(function(t,r){n(t,h),l(t,{type:a,id:y++,frozen:null}),i(r)||c(r,t[v],{that:t,AS_ENTRIES:s})}),h=p.prototype,m=d(a),b=function(t,r,n){var i=m(t),u=e(o(r),!0);return!0===u?g(i).set(r,n):u[i.id]=n,t};return r(h,{delete:function(t){var r=m(this);if(!u(t))return!1;var n=e(t);return!0===n?g(r).delete(t):n&&f(n,r.id)&&delete n[r.id]},has:function(t){var r=m(this);if(!u(t))return!1;var n=e(t);return!0===n?g(r).has(t):n&&f(n,r.id)}}),r(h,s?{get:function(t){var r=m(this);if(u(t)){var n=e(t);if(!0===n)return g(r).get(t);if(n)return n[r.id]}},set:function(t,r){return b(this,t,r)}}:{add:function(t){return b(this,t,!0)}}),p}}}Ea||(Ea=1,function(){if(Sa)return ua;Sa=1;var t,r=ca(),e=f(),n=dt(),o=aa(),i=Pa(),u=Ma(),c=Aa(),a=bt(),s=Kr().enforce,l=b(),d=Wr(),v=Object,p=Array.isArray,h=v.isExtensible,y=v.isFrozen,g=v.isSealed,m=v.freeze,w=v.seal,S=!e.ActiveXObject&&"ActiveXObject"in e,E=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},x=u("WeakMap",E,c),O=x.prototype,I=n(O.set);if(d)if(S){t=c.getConstructor(E,"WeakMap",!0),i.enable();var j=n(O.delete),P=n(O.has),T=n(O.get);o(O,{delete:function(r){if(a(r)&&!h(r)){var e=s(this);return e.frozen||(e.frozen=new t),j(this,r)||e.frozen.delete(r)}return j(this,r)},has:function(r){if(a(r)&&!h(r)){var e=s(this);return e.frozen||(e.frozen=new t),P(this,r)||e.frozen.has(r)}return P(this,r)},get:function(r){if(a(r)&&!h(r)){var e=s(this);return e.frozen||(e.frozen=new t),P(this,r)?T(this,r):e.frozen.get(r)}return T(this,r)},set:function(r,e){if(a(r)&&!h(r)){var n=s(this);n.frozen||(n.frozen=new t),P(this,r)?I(this,r,e):n.frozen.set(r,e)}else I(this,r,e);return this}})}else r&&l(function(){var t=m([]);return I(new x,t,1),!y(t)})&&o(O,{set:function(t,r){var e;return p(t)&&(y(t)?e=m:g(t)&&(e=w)),I(this,t,r),e&&e(t),this}})}());var Ra,Na={};function Ca(t){return t.getMenuConfig("uploadVideo")}!function(){if(Ra)return Na;Ra=1;var t=f(),r=si(),e=li(),n=Xc(),o=jr(),i=Eu(),u=fr()("iterator"),c=n.values,a=function(t,e){if(t){if(t[u]!==c)try{o(t,u,c)}catch(r){t[u]=c}if(i(t,e,!0),r[e])for(var a in n)if(t[a]!==n[a])try{o(t,a,n[a])}catch(r){t[a]=n[a]}}};for(var s in r)a(t[s]&&t[s].prototype,s);a(e,"DOMTokenList")}();var ka=new WeakMap;function Da(r,e){return jo(this,void 0,void 0,function(){var n,o;return Po(this,function(i){switch(i.label){case 0:return n=function(r){var e=ka.get(r);if(null!=e)return e;var n=Ca(r),o=n.onSuccess,i=n.onProgress,u=n.onFailed,c=n.customInsert,a=n.onError;return e=t.createUploader(Io(Io({},n),{onProgress:function(t){r.showProgressBar(t),i&&i(t)},onSuccess:function(t,e){if(c)return c(e,function(t,e){return jc(r,t,e)}),void o(t,e);var n=e.errno,i=void 0===n?1:n,a=e.data,f=void 0===a?{}:a;if(0===i){var s=f.url,l=void 0===s?"":s,d=f.poster;jc(r,l,void 0===d?"":d),o(t,e)}else u(t,e)},onError:function(t,r,e){a(t,r,e)}})),ka.set(r,e),e}(r),o=e.map(function(t){return{name:t.name,type:t.type,size:t.size,data:t}}),n.addFiles(o),[4,n.upload()];case 1:return i.sent(),[2]}})})}var Va=function(){function n(){this.title=t.t("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 n.prototype.getValue=function(t){return""},n.prototype.isActive=function(t){return!1},n.prototype.exec=function(t,e){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=void 0===o?[]:o,u=n.customBrowseAndUpload;if(u)u(function(r,e){return jc(t,r,e)});else{var c="";i.length>0&&(c='accept="'.concat(i.join(", "),'"'));var a=r("body"),f=r('<input type="file" '.concat(c," multiple/>"));f.hide(),a.append(f),f.click(),f.on("change",function(){var r=f[0].files;!function(t,r){jo(this,void 0,void 0,function(){var e,n,o,i,u,c,a,f,s,l,d,v;return Po(this,function(p){switch(p.label){case 0:if(null==r)return[2];e=Array.prototype.slice.call(r),n=[],o=Ca(t).customUpload,p.label=1;case 1:p.trys.push([1,8,9,14]),i=!0,u=Ao(e),p.label=2;case 2:return[4,u.next()];case 3:return c=p.sent(),(s=c.done)?[3,7]:(v=c.value,i=!1,a=v,o?[4,o(a,function(r,e){return jc(t,r,e)},t)]:[3,5]);case 4:return p.sent(),[3,6];case 5:n.push(a),p.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return f=p.sent(),l={error:f},[3,14];case 9:return p.trys.push([9,,12,13]),i||s||!(d=u.return)?[3,11]:[4,d.call(u)];case 10:p.sent(),p.label=11;case 11:return[3,13];case 12:if(l)throw l.error;return[7];case 13:return[7];case 14:return n.length>0?[4,Da(t,n)]:[3,16];case 15:p.sent(),p.label=16;case 16:return[2]}})})}(t,r)})}},n.prototype.isDisabled=function(r){var n=r.selection;return null==n||(!e.Range.isCollapsed(n)||!!t.DomEditor.getSelectedElems(r).some(function(e){var n=t.DomEditor.getNodeType(e);return"pre"===n||("list-item"===n||!!r.isVoid(e))}))},n.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},n}(),La={key:"insertVideo",factory:function(){return new Uc},config:{onInsertedVideo:function(t){},checkVideo:function(t,r){return!0},parseVideoSrc:function(t){return t}}},za={key:"uploadVideo",factory:function(){return new Va},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,r){},onFailed:function(t,r){console.error("'".concat(t.name,"' upload failed"),r)},onError:function(t,r,e){console.error("'".concat(t.name," upload error"),r,e)}}},Fa={key:"editVideoSize",factory:function(){return new yi}},_a={key:"editVideoSrc",factory:function(){return new pu}};function $a(t,r,e,n,o,i){return void 0===r&&(r=""),void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:t,poster:r,width:e,height:n,style:o,children:[{text:""}],textAlign:i}}var Ba={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var o=r(t),i="",u="",c="auto",a="auto",f={},s=o.find("iframe");if(s.length>0)return c=s.attr("width")||"auto",a=s.attr("height")||"auto",f=pi(f=s.attr("style")||""),$a(i=s[0].outerHTML,u,c,a,f,pi(o.attr("style")||"")["text-align"]||"center");var l=o.find("video");return(i=l.attr("src")||"")||l.length>0&&(i=l.find("source").attr("src")||""),c=l.attr("width")||"auto",a=l.attr("height")||"auto",$a(i,u=l.attr("poster")||"",c,a,f=pi(f=l.attr("style")||""),pi(o.attr("style")||"")["text-align"]||"center")}};var Ua,Ha={};!function(){if(Ua)return Ha;Ua=1;var t=rn(),r=be().includes,e=b(),n=oo();t({target:"Array",proto:!0,forced:e(function(){return!Array(1).includes()})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("includes")}();var Wa={renderElems:[{type:"video",renderElem:function(r,e,n){var i,u=r,c=u.src,a=void 0===c?"":c,f=u.poster,s=void 0===f?"":f,l=u.key,d=void 0===l?"":l,v=u.width,p=void 0===v?"auto":v,h=u.height,y=void 0===h?"auto":h,g=u.style,m=void 0===g?{}:g,b=u.textAlign,w=void 0===b?"center":b,S=t.DomEditor.isNodeSelected(n,r);if(0===a.trim().indexOf("<iframe ")){var E=Tn(a,p,y,m);i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w},innerHTML:E})}else{var x=o.jsx("video",{key:d,poster:s,controls:!0,style:m},o.jsx("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==p&&(x.data.width=p),"auto"!==y&&(x.data.height=y),i=o.jsx("div",{className:"w-e-textarea-video-container","data-selected":S?"true":"",style:{textAlign:w}},x)}return o.h("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},i)}}],elemsToHtml:[Nn],preParseHtml:[{selector:"iframe,video,p",preParseHtml:function(t){var e=r(t),n=e;if("p"===Pn(e)){var o=e.children();if(1===o.length){var i=o[0],u=i.tagName.toLowerCase();["iframe","video"].includes(u)&&(n=r(i))}}var c=Pn(n);if("iframe"!==c&&"video"!==c)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var a=r('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(n),a[0]}}],parseElemsHtml:[Ba],menus:[La,za,Fa,_a],editorPlugin:function(r){var n=r.isVoid,o=r.normalizeNode,i=r;return i.isVoid=function(t){return"video"===t.type||n(t)},i.normalizeNode=function(r){var n=Mo(r,2),u=n[0],c=n[1];"video"===t.DomEditor.getNodeType(u)&&(t.DomEditor.isLastNode(i,u)&&e.Transforms.insertNodes(i,t.DomEditor.genEmptyParagraph(),{at:[c[0]+1]}));return o([u,c])},i}};return Wa});
2
2
  //# sourceMappingURL=index.js.map