feffery_utils_components 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/DESCRIPTION +1 -1
  2. package/Project.toml +1 -1
  3. package/README-en_US.md +1 -1
  4. package/README.md +1 -1
  5. package/feffery_utils_components/FefferyDPlayer.py +11 -7
  6. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
  7. package/feffery_utils_components/async-feffery_animated_3d_background_three.js +1 -1
  8. package/feffery_utils_components/async-feffery_animated_image.js +1 -1
  9. package/feffery_utils_components/async-feffery_animated_image.js.LICENSE.txt +1 -1
  10. package/feffery_utils_components/async-feffery_aplayer.js +1 -1
  11. package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
  12. package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
  13. package/feffery_utils_components/async-feffery_auto_fit.js.LICENSE.txt +1 -1
  14. package/feffery_utils_components/async-feffery_barcode.js +1 -1
  15. package/feffery_utils_components/async-feffery_burger.js +1 -1
  16. package/feffery_utils_components/async-feffery_captcha.js +1 -1
  17. package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
  18. package/feffery_utils_components/async-feffery_dom2image.js +1 -1
  19. package/feffery_utils_components/async-feffery_dom2image.js.LICENSE.txt +1 -1
  20. package/feffery_utils_components/async-feffery_dplayer.js +1 -1
  21. package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
  22. package/feffery_utils_components/async-feffery_emoji_picker.js.LICENSE.txt +1 -1
  23. package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
  24. package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
  25. package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
  26. package/feffery_utils_components/async-feffery_grid.js +1 -1
  27. package/feffery_utils_components/async-feffery_http_requests.js +1 -1
  28. package/feffery_utils_components/async-feffery_http_requests.js.LICENSE.txt +1 -1
  29. package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
  30. package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
  31. package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
  32. package/feffery_utils_components/async-feffery_local_large_storage.js.LICENSE.txt +1 -1
  33. package/feffery_utils_components/async-feffery_markdown_editor.js +1 -1
  34. package/feffery_utils_components/async-feffery_motion.js +1 -1
  35. package/feffery_utils_components/async-feffery_music_player.js +1 -1
  36. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
  37. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js.LICENSE.txt +4 -2
  38. package/feffery_utils_components/async-feffery_resizable.js +1 -1
  39. package/feffery_utils_components/async-feffery_rich_text_editor.js +1 -1
  40. package/feffery_utils_components/async-feffery_rnd.js +1 -1
  41. package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
  42. package/feffery_utils_components/async-feffery_shortcut_panel.js +2 -2
  43. package/feffery_utils_components/async-feffery_slider_captcha.js +1 -1
  44. package/feffery_utils_components/async-feffery_slider_captcha.js.LICENSE.txt +1 -1
  45. package/feffery_utils_components/async-feffery_sortable.js +1 -1
  46. package/feffery_utils_components/async-feffery_vditor.js +1 -1
  47. package/feffery_utils_components/async-feffery_vditor.js.LICENSE.txt +1 -1
  48. package/feffery_utils_components/async-feffery_word_preview.js +1 -1
  49. package/feffery_utils_components/async-fuc-shared.js +1 -1
  50. package/feffery_utils_components/feffery_utils_components.min.js +8 -8
  51. package/feffery_utils_components/feffery_utils_components.min.js.LICENSE.txt +1 -1
  52. package/feffery_utils_components/metadata.json +1 -1
  53. package/feffery_utils_components/package-info.json +2 -2
  54. package/package.json +2 -2
  55. package/webpack.config.js +1 -0
  56. package/.vscode/settings.json +0 -5
@@ -1,4 +1,4 @@
1
1
  /*! For license information please see async-feffery_rich_text_editor.js.LICENSE.txt */
2
- (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[27],{570:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(634),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(e){var t=e.defaultContent,n=void 0===t?[]:t,s=e.onCreated,l=e.defaultHtml,c=void 0===l?"":l,f=e.value,d=void 0===f?"":f,p=e.onChange,h=e.defaultConfig,g=void 0===h?{}:h,v=e.mode,y=void 0===v?"default":v,m=e.style,b=void 0===m?{}:m,w=e.className,x=Object(r.useRef)(null),E=u(Object(r.useState)(null),2),D=E[0],S=E[1],C=u(Object(r.useState)(""),2),A=C[0],O=C[1],k=function(e){s&&s(e);var t=g.onCreated;t&&t(e)},B=function(e){O(e.getHtml()),p&&p(e);var t=g.onChange;t&&t(e)},F=function(e){var t=g.onDestroyed;S(null),t&&t(e)};return Object(r.useEffect)((function(){if(null!=D&&d!==A)try{D.setHtml(d)}catch(e){console.error(e)}}),[d]),Object(r.useEffect)((function(){var e;if(null!=x.current&&null==D&&!(null===(e=x.current)||void 0===e?void 0:e.getAttribute("data-w-e-textarea"))){var t=Object(i.a)({selector:x.current,config:a(a({},g),{onCreated:k,onChange:B,onDestroyed:F}),content:n,html:c||d,mode:y});S(t)}}),[D]),o.a.createElement("div",{style:b,ref:x,className:w})}function l(e){var t=e.editor,n=e.defaultConfig,a=void 0===n?{}:n,u=e.mode,s=void 0===u?"default":u,l=e.style,c=void 0===l?{}:l,f=e.className,d=Object(r.useRef)(null);return Object(r.useEffect)((function(){null!=d.current&&null!=t&&i.b({editor:t,selector:d.current,config:a,mode:s})}),[t]),o.a.createElement("div",{style:c,ref:d,className:f})}var c=n(100),f=n.n(c),d=(n(943),n(70)),p=n(16),h=n(255);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=function(e){var t=e.id,n=e.className,a=e.style,u=e.key,h=e.toolbarClassName,g=e.toolbarStyle,v=e.editorClassName,m=e.editorStyle,w=e.locale,x=e.mode,E=e.htmlValue,D=(e.textValue,e.selectionTextValue,e.toolbarConfig),S=e.editorConfig,C=e.uploadImage,A=e.uploadVideo,O=e.successMessage,k=e.errorMessage,B=e.setProps,F=b(Object(r.useState)(null),2),T=F[0],_=F[1];C.maxFileSize=C.maxFileSize?C.maxFileSize:2097152,A.maxFileSize=A.maxFileSize?A.maxFileSize:10485760,S.onMaxLength=function(e){f.a.error("zh-CN"==w?"已超出最大长度限制":"Maximum length limit exceeded",y({},k))},S.MENU_CONF=S.MENU_CONF?S.MENU_CONF:{},S.MENU_CONF.uploadImage=y(y({},C),{},{onBeforeUpload:function(e){return e},onProgress:function(e){console.log("progress",e)},onSuccess:function(e,t){f.a.success("".concat(e.name,"zh-CN"==w?"上传成功!":" upload successful"),y({},O))},onFailed:function(e,t){f.a.error("zh-CN"==w?"".concat(e.name,"上传失败!\n").concat(t.message):"".concat(e.name," upload failed.\n").concat(t.message),y({},k))},onError:function(e,t,n){f.a.error("zh-CN"==w?"".concat(e.name,"上传出错!\n").concat(t,"\n").concat(n.message):"".concat(e.name," upload error.\n").concat(t,"\n").concat(n.message),y({},k))}}),S.MENU_CONF.uploadVideo=y(y({},A),{},{onBeforeUpload:function(e){return e},onProgress:function(e){console.log("progress",e)},onSuccess:function(e,t){f.a.success("".concat(e.name,"zh-CN"==w?"上传成功!":" upload successful"),y({},O))},onFailed:function(e,t){f.a.error("zh-CN"==w?"".concat(e.name,"上传失败!\n").concat(t.message):"".concat(e.name," upload failed.\n").concat(t.message),y({},k))},onError:function(e,t,n){f.a.error("zh-CN"==w?"".concat(e.name,"上传出错!\n").concat(t,"\n").concat(n.message):"".concat(e.name," upload error.\n").concat(t,"\n").concat(n.message),y({},k))}});return Object(r.useEffect)((function(){return Object(i.c)(w),function(){null!=T&&(T.destroy(),_(null))}}),[T]),o.a.createElement("div",{id:t,className:Object(p.isString)(n)?n:n?Object(d.a)(n):void 0,style:y({border:"1px solid #ccc",zIndex:9999},a),key:u},o.a.createElement(l,{className:Object(p.isString)(h)?h:h?Object(d.a)(h):void 0,style:y({borderBottom:"1px solid #ccc"},g),mode:x,editor:T,defaultConfig:D}),o.a.createElement(s,{className:Object(p.isString)(v)?v:v?Object(d.a)(v):void 0,style:m,mode:x,defaultConfig:S,value:E,onCreated:_,onChange:function(e){B({htmlValue:e.getHtml(),textValue:e.getText(),selectionTextValue:e.getSelectionText()})}}),o.a.createElement(c.Toaster,null))};t.default=x;x.defaultProps=h.b,x.propTypes=h.c},634:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Vge})),n.d(t,"b",(function(){return Uge})),n.d(t,"c",(function(){return z_}));var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var i,a,u=function(e){return e&&e.Math==Math&&e},s=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof r&&r)||function(){return this}()||Function("return this")(),l=Function.prototype,c=l.apply,f=l.bind,d=l.call,p="object"==typeof Reflect&&Reflect.apply||(f?d.bind(c):function(){return d.apply(c,arguments)}),h=Function.prototype,g=h.bind,v=h.call,y=g&&g.bind(v),m=g?function(e){return e&&y(v,e)}:function(e){return e&&function(){return v.apply(e,arguments)}},b=function(e){return"function"==typeof e},w=function(e){try{return!!e()}catch(e){return!0}},x=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,D=E.bind?E.bind(E):function(){return E.apply(E,arguments)},S={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,A={f:C&&!S.call({1:2},1)?function(e){var t=C(this,e);return!!t&&t.enumerable}:S},O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k=m({}.toString),B=m("".slice),F=function(e){return B(k(e),8,-1)},T=s.Object,_=m("".split),P=w((function(){return!T("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?_(e,""):T(e)}:T,j=s.TypeError,N=function(e){if(null==e)throw j("Can't call method on "+e);return e},I=function(e){return P(N(e))},L=function(e){return"object"==typeof e?null!==e:b(e)},R={},M=function(e){return b(e)?e:void 0},z=function(e,t){return arguments.length<2?M(R[e])||M(s[e]):R[e]&&R[e][t]||s[e]&&s[e][t]},H=m({}.isPrototypeOf),$=z("navigator","userAgent")||"",V=s.process,U=s.Deno,W=V&&V.versions||U&&U.version,G=W&&W.v8;G&&(a=(i=G.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&$&&(!(i=$.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=$.match(/Chrome\/(\d+)/))&&(a=+i[1]);var q,K=a,Y=!!Object.getOwnPropertySymbols&&!w((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&K&&K<41})),X=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=s.Object,J=X?function(e){return"symbol"==typeof e}:function(e){var t=z("Symbol");return b(t)&&H(t.prototype,Z(e))},Q=s.String,ee=function(e){try{return Q(e)}catch(e){return"Object"}},te=s.TypeError,ne=function(e){if(b(e))return e;throw te(ee(e)+" is not a function")},re=function(e,t){var n=e[t];return null==n?void 0:ne(n)},oe=s.TypeError,ie=Object.defineProperty,ae=s["__core-js_shared__"]||function(e,t){try{ie(s,e,{value:t,configurable:!0,writable:!0})}catch(n){s[e]=t}return t}("__core-js_shared__",{}),ue=o((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),se=s.Object,le=function(e){return se(N(e))},ce=m({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return ce(le(e),t)},de=0,pe=Math.random(),he=m(1..toString),ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+he(++de+pe,36)},ve=ue("wks"),ye=s.Symbol,me=ye&&ye.for,be=X?ye:ye&&ye.withoutSetter||ge,we=function(e){if(!fe(ve,e)||!Y&&"string"!=typeof ve[e]){var t="Symbol."+e;Y&&fe(ye,e)?ve[e]=ye[e]:ve[e]=X&&me?me(t):be(t)}return ve[e]},xe=s.TypeError,Ee=we("toPrimitive"),De=function(e){var t=function(e,t){if(!L(e)||J(e))return e;var n,r=re(e,Ee);if(r){if(void 0===t&&(t="default"),n=D(r,e,t),!L(n)||J(n))return n;throw xe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&b(n=e.toString)&&!L(r=D(n,e)))return r;if(b(n=e.valueOf)&&!L(r=D(n,e)))return r;if("string"!==t&&b(n=e.toString)&&!L(r=D(n,e)))return r;throw oe("Can't convert object to primitive value")}(e,t)}(e,"string");return J(t)?t:t+""},Se=s.document,Ce=L(Se)&&L(Se.createElement),Ae=function(e){return Ce?Se.createElement(e):{}},Oe=!x&&!w((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),ke=Object.getOwnPropertyDescriptor,Be={f:x?ke:function(e,t){if(e=I(e),t=De(t),Oe)try{return ke(e,t)}catch(e){}if(fe(e,t))return O(!D(A.f,e,t),e[t])}},Fe=/#|\.prototype\./,Te=function(e,t){var n=Pe[_e(e)];return n==Ne||n!=je&&(b(t)?w(t):!!t)},_e=Te.normalize=function(e){return String(e).replace(Fe,".").toLowerCase()},Pe=Te.data={},je=Te.NATIVE="N",Ne=Te.POLYFILL="P",Ie=Te,Le=m(m.bind),Re=function(e,t){return ne(e),void 0===t?e:Le?Le(e,t):function(){return e.apply(t,arguments)}},Me=s.String,ze=s.TypeError,He=function(e){if(L(e))return e;throw ze(Me(e)+" is not an object")},$e=s.TypeError,Ve=Object.defineProperty,Ue={f:x?Ve:function(e,t,n){if(He(e),t=De(t),He(n),Oe)try{return Ve(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},We=x?function(e,t,n){return Ue.f(e,t,O(1,n))}:function(e,t,n){return e[t]=n,e},Ge=Be.f,qe=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return p(e,this,arguments)};return t.prototype=e.prototype,t},Ke=function(e,t){var n,r,o,i,a,u,l,c,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?s:p?s[f]:(s[f]||{}).prototype,v=d?R:R[f]||We(R,f,{})[f],y=v.prototype;for(o in t)n=!Ie(d?o:f+(p?".":"#")+o,e.forced)&&g&&fe(g,o),a=v[o],n&&(u=e.noTargetGet?(c=Ge(g,o))&&c.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(l=e.bind&&n?Re(i,s):e.wrap&&n?qe(i):h&&b(i)?m(i):i,(e.sham||i&&i.sham||a&&a.sham)&&We(l,"sham",!0),We(v,o,l),h&&(fe(R,r=f+"Prototype")||We(R,r,{}),We(R[r],o,i),e.real&&y&&!y[o]&&We(y,o,i)))},Ye=ue("keys"),Xe=function(e){return Ye[e]||(Ye[e]=ge(e))},Ze=!w((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Je=Xe("IE_PROTO"),Qe=s.Object,et=Qe.prototype,tt=Ze?Qe.getPrototypeOf:function(e){var t=le(e);if(fe(t,Je))return t[Je];var n=t.constructor;return b(n)&&t instanceof n?n.prototype:t instanceof Qe?et:null},nt=s.String,rt=s.TypeError,ot=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=m(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return He(n),function(e){if("object"==typeof e||b(e))return e;throw rt("Can't set "+nt(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),it=Math.ceil,at=Math.floor,ut=function(e){var t=+e;return t!=t||0===t?0:(t>0?at:it)(t)},st=Math.max,lt=Math.min,ct=function(e,t){var n=ut(e);return n<0?st(n+t,0):lt(n,t)},ft=Math.min,dt=function(e){return(t=e.length)>0?ft(ut(t),9007199254740991):0;var t},pt=function(e){return function(t,n,r){var o,i=I(t),a=dt(i),u=ct(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},ht={includes:pt(!0),indexOf:pt(!1)},gt={},vt=ht.indexOf,yt=m([].push),mt=function(e,t){var n,r=I(e),o=0,i=[];for(n in r)!fe(gt,n)&&fe(r,n)&&yt(i,n);for(;t.length>o;)fe(r,n=t[o++])&&(~vt(i,n)||yt(i,n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wt=bt.concat("length","prototype"),xt={f:Object.getOwnPropertyNames||function(e){return mt(e,wt)}},Et={f:Object.getOwnPropertySymbols},Dt=m([].concat),St=z("Reflect","ownKeys")||function(e){var t=xt.f(He(e)),n=Et.f;return n?Dt(t,n(e)):t},Ct=Object.keys||function(e){return mt(e,bt)},At=x?Object.defineProperties:function(e,t){He(e);for(var n,r=I(t),o=Ct(t),i=o.length,a=0;i>a;)Ue.f(e,n=o[a++],r[n]);return e},Ot=z("document","documentElement"),kt=Xe("IE_PROTO"),Bt=function(){},Ft=function(e){return"<script>"+e+"<\/script>"},Tt=function(e){e.write(Ft("")),e.close();var t=e.parentWindow.Object;return e=null,t},_t=function(){try{q=new ActiveXObject("htmlfile")}catch(e){}var e,t;_t="undefined"!=typeof document?document.domain&&q?Tt(q):((t=Ae("iframe")).style.display="none",Ot.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ft("document.F=Object")),e.close(),e.F):Tt(q);for(var n=bt.length;n--;)delete _t.prototype[bt[n]];return _t()};gt[kt]=!0;var Pt=Object.create||function(e,t){var n;return null!==e?(Bt.prototype=He(e),n=new Bt,Bt.prototype=null,n[kt]=e):n=_t(),void 0===t?n:At(n,t)},jt=function(e,t,n){var r=De(t);r in e?Ue.f(e,r,O(0,n)):e[r]=n},Nt=s.Array,It=Math.max,Lt=function(e,t,n){for(var r=dt(e),o=ct(t,r),i=ct(void 0===n?r:n,r),a=Nt(It(i-o,0)),u=0;o<i;o++,u++)jt(a,u,e[o]);return a.length=u,a},Rt=m("".replace),Mt=m("".split),zt=m([].join),Ht=String(Error("zxcasd").stack),$t=/\n\s*at [^:]*:[^\n]*/,Vt=$t.test(Ht),Ut=/@[^\n]*\n/.test(Ht)&&!/zxcasd/.test(Ht),Wt=function(e,t){if("string"!=typeof e)return e;if(Vt)for(;t--;)e=Rt(e,$t,"");else if(Ut)return zt(Lt(Mt(e,"\n"),t),"\n");return e},Gt=function(e,t){L(t)&&"cause"in t&&We(e,"cause",t.cause)},qt={},Kt=we("iterator"),Yt=Array.prototype,Xt={};Xt[we("toStringTag")]="z";var Zt="[object z]"===String(Xt),Jt=we("toStringTag"),Qt=s.Object,en="Arguments"==F(function(){return arguments}()),tn=Zt?F:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Qt(e),Jt))?n:en?F(t):"Object"==(r=F(t))&&b(t.callee)?"Arguments":r},nn=we("iterator"),rn=function(e){if(null!=e)return re(e,nn)||re(e,"@@iterator")||qt[tn(e)]},on=s.TypeError,an=function(e,t,n){var r,o;He(e);try{if(!(r=re(e,"return"))){if("throw"===t)throw n;return n}r=D(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return He(r),n},un=s.TypeError,sn=function(e,t){this.stopped=e,this.result=t},ln=sn.prototype,cn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Re(t,c),g=function(e){return r&&an(r,"normal",e),new sn(!0,e)},v=function(e){return f?(He(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=rn(e)))throw un(ee(e)+" is not iterable");if(function(e){return void 0!==e&&(qt.Array===e||Yt[Kt]===e)}(o)){for(i=0,a=dt(e);a>i;i++)if((u=v(e[i]))&&H(ln,u))return u;return new sn(!1)}r=function(e,t){var n=arguments.length<2?rn(e):t;if(ne(n))return He(D(n,e));throw on(ee(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=D(s,r)).done;){try{u=v(l.value)}catch(e){an(r,"throw",e)}if("object"==typeof u&&u&&H(ln,u))return u}return new sn(!1)},fn=s.String,dn=function(e){if("Symbol"===tn(e))throw TypeError("Cannot convert a Symbol value to a string");return fn(e)},pn=function(e,t){return void 0===e?arguments.length<2?"":t:dn(e)},hn=!w((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",O(1,7)),7!==e.stack)})),gn=we("toStringTag"),vn=s.Error,yn=[].push,mn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=H(bn,this);ot?n=ot(new vn(void 0),o?tt(this):bn):(n=o?this:Pt(bn),We(n,gn,"Error")),We(n,"message",pn(t,"")),hn&&We(n,"stack",Wt(n.stack,1)),Gt(n,r);var i=[];return cn(e,yn,{that:i}),We(n,"errors",i),n};ot?ot(mn,vn):function(e,t){for(var n=St(t),r=Ue.f,o=Be.f,i=0;i<n.length;i++){var a=n[i];fe(e,a)||r(e,a,o(t,a))}}(mn,vn);var bn=mn.prototype=Pt(vn.prototype,{constructor:O(1,mn),message:O(1,""),name:O(1,"AggregateError")});Ke({global:!0},{AggregateError:mn});var wn=m(Function.toString);b(ae.inspectSource)||(ae.inspectSource=function(e){return wn(e)});var xn,En,Dn,Sn=ae.inspectSource,Cn=s.WeakMap,An=b(Cn)&&/native code/.test(Sn(Cn)),On=s.TypeError,kn=s.WeakMap;if(An||ae.state){var Bn=ae.state||(ae.state=new kn),Fn=m(Bn.get),Tn=m(Bn.has),_n=m(Bn.set);xn=function(e,t){if(Tn(Bn,e))throw new On("Object already initialized");return t.facade=e,_n(Bn,e,t),t},En=function(e){return Fn(Bn,e)||{}},Dn=function(e){return Tn(Bn,e)}}else{var Pn=Xe("state");gt[Pn]=!0,xn=function(e,t){if(fe(e,Pn))throw new On("Object already initialized");return t.facade=e,We(e,Pn,t),t},En=function(e){return fe(e,Pn)?e[Pn]:{}},Dn=function(e){return fe(e,Pn)}}var jn,Nn,In,Ln={set:xn,get:En,has:Dn,enforce:function(e){return Dn(e)?En(e):xn(e,{})},getterFor:function(e){return function(t){var n;if(!L(t)||(n=En(t)).type!==e)throw On("Incompatible receiver, "+e+" required");return n}}},Rn=Function.prototype,Mn=x&&Object.getOwnPropertyDescriptor,zn=fe(Rn,"name"),Hn={EXISTS:zn,PROPER:zn&&"something"===function(){}.name,CONFIGURABLE:zn&&(!x||x&&Mn(Rn,"name").configurable)},$n=function(e,t,n,r){r&&r.enumerable?e[t]=n:We(e,t,n)},Vn=we("iterator"),Un=!1;[].keys&&("next"in(In=[].keys())?(Nn=tt(tt(In)))!==Object.prototype&&(jn=Nn):Un=!0);var Wn=null==jn||w((function(){var e={};return jn[Vn].call(e)!==e}));jn=Wn?{}:Pt(jn),b(jn[Vn])||$n(jn,Vn,(function(){return this}));var Gn={IteratorPrototype:jn,BUGGY_SAFARI_ITERATORS:Un},qn=Zt?{}.toString:function(){return"[object "+tn(this)+"]"},Kn=Ue.f,Yn=we("toStringTag"),Xn=function(e,t,n,r){if(e){var o=n?e:e.prototype;fe(o,Yn)||Kn(o,Yn,{configurable:!0,value:t}),r&&!Zt&&We(o,"toString",qn)}},Zn=Gn.IteratorPrototype,Jn=function(){return this},Qn=Hn.PROPER,er=Gn.BUGGY_SAFARI_ITERATORS,tr=we("iterator"),nr=function(){return this},rr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Pt(Zn,{next:O(1,n)}),Xn(e,o,!1,!0),qt[o]=Jn}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!er&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[tr]||p["@@iterator"]||o&&p[o],g=!er&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=tt(v.call(new e)))!==Object.prototype&&u.next&&(Xn(u,f,!0,!0),qt[f]=nr),Qn&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return D(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(er||d||!(l in p))&&$n(p,l,s[l]);else Ke({target:t,proto:!0,forced:er||d},s);return a&&p[tr]!==g&&$n(p,tr,g,{name:o}),qt[t]=g,s},or=Ln.set,ir=Ln.getterFor("Array Iterator");rr(Array,"Array",(function(e,t){or(this,{type:"Array Iterator",target:I(e),index:0,kind:t})}),(function(){var e=ir(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),qt.Arguments=qt.Array;var ar=m("".charAt),ur=m("".charCodeAt),sr=m("".slice),lr=function(e){return function(t,n){var r,o,i=dn(N(t)),a=ut(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ur(i,a))<55296||r>56319||a+1===u||(o=ur(i,a+1))<56320||o>57343?e?ar(i,a):r:e?sr(i,a,a+2):o-56320+(r-55296<<10)+65536}},cr=(lr(!1),lr(!0)),fr=Ln.set,dr=Ln.getterFor("String Iterator");rr(String,"String",(function(e){fr(this,{type:"String Iterator",string:dn(e),index:0})}),(function(){var e,t=dr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=cr(n,r),t.index+=e.length,{value:e,done:!1})}));var pr=R.AggregateError,hr=we("toStringTag");for(var gr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var vr=s[gr],yr=vr&&vr.prototype;yr&&tn(yr)!==hr&&We(yr,hr,gr),qt[gr]=qt.Array}var mr,br,wr=pr,xr=function(e){return e&&e.Math==Math&&e},Er=xr("object"==typeof globalThis&&globalThis)||xr("object"==typeof window&&window)||xr("object"==typeof self&&self)||xr("object"==typeof r&&r)||function(){return this}()||Function("return this")(),Dr=function(e){try{return!!e()}catch(e){return!0}},Sr=!Dr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Cr=Function.prototype.call,Ar=Cr.bind?Cr.bind(Cr):function(){return Cr.apply(Cr,arguments)},Or={}.propertyIsEnumerable,kr=Object.getOwnPropertyDescriptor,Br={f:kr&&!Or.call({1:2},1)?function(e){var t=kr(this,e);return!!t&&t.enumerable}:Or},Fr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Tr=Function.prototype,_r=Tr.bind,Pr=Tr.call,jr=_r&&_r.bind(Pr),Nr=_r?function(e){return e&&jr(Pr,e)}:function(e){return e&&function(){return Pr.apply(e,arguments)}},Ir=Nr({}.toString),Lr=Nr("".slice),Rr=function(e){return Lr(Ir(e),8,-1)},Mr=Er.Object,zr=Nr("".split),Hr=Dr((function(){return!Mr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Rr(e)?zr(e,""):Mr(e)}:Mr,$r=Er.TypeError,Vr=function(e){if(null==e)throw $r("Can't call method on "+e);return e},Ur=function(e){return Hr(Vr(e))},Wr=function(e){return"function"==typeof e},Gr=function(e){return"object"==typeof e?null!==e:Wr(e)},qr=function(e){return Wr(e)?e:void 0},Kr=function(e,t){return arguments.length<2?qr(Er[e]):Er[e]&&Er[e][t]},Yr=Nr({}.isPrototypeOf),Xr=Kr("navigator","userAgent")||"",Zr=Er.process,Jr=Er.Deno,Qr=Zr&&Zr.versions||Jr&&Jr.version,eo=Qr&&Qr.v8;eo&&(br=(mr=eo.split("."))[0]>0&&mr[0]<4?1:+(mr[0]+mr[1])),!br&&Xr&&(!(mr=Xr.match(/Edge\/(\d+)/))||mr[1]>=74)&&(mr=Xr.match(/Chrome\/(\d+)/))&&(br=+mr[1]);var to=br,no=!!Object.getOwnPropertySymbols&&!Dr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&to&&to<41})),ro=no&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,oo=Er.Object,io=ro?function(e){return"symbol"==typeof e}:function(e){var t=Kr("Symbol");return Wr(t)&&Yr(t.prototype,oo(e))},ao=Er.String,uo=function(e){try{return ao(e)}catch(e){return"Object"}},so=Er.TypeError,lo=function(e){if(Wr(e))return e;throw so(uo(e)+" is not a function")},co=function(e,t){var n=e[t];return null==n?void 0:lo(n)},fo=Er.TypeError,po=Object.defineProperty,ho=function(e,t){try{po(Er,e,{value:t,configurable:!0,writable:!0})}catch(n){Er[e]=t}return t},go=Er["__core-js_shared__"]||ho("__core-js_shared__",{}),vo=o((function(e){(e.exports=function(e,t){return go[e]||(go[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),yo=Er.Object,mo=function(e){return yo(Vr(e))},bo=Nr({}.hasOwnProperty),wo=Object.hasOwn||function(e,t){return bo(mo(e),t)},xo=0,Eo=Math.random(),Do=Nr(1..toString),So=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Do(++xo+Eo,36)},Co=vo("wks"),Ao=Er.Symbol,Oo=Ao&&Ao.for,ko=ro?Ao:Ao&&Ao.withoutSetter||So,Bo=function(e){if(!wo(Co,e)||!no&&"string"!=typeof Co[e]){var t="Symbol."+e;no&&wo(Ao,e)?Co[e]=Ao[e]:Co[e]=ro&&Oo?Oo(t):ko(t)}return Co[e]},Fo=Er.TypeError,To=Bo("toPrimitive"),_o=function(e){var t=function(e,t){if(!Gr(e)||io(e))return e;var n,r=co(e,To);if(r){if(void 0===t&&(t="default"),n=Ar(r,e,t),!Gr(n)||io(n))return n;throw Fo("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Wr(n=e.toString)&&!Gr(r=Ar(n,e)))return r;if(Wr(n=e.valueOf)&&!Gr(r=Ar(n,e)))return r;if("string"!==t&&Wr(n=e.toString)&&!Gr(r=Ar(n,e)))return r;throw fo("Can't convert object to primitive value")}(e,t)}(e,"string");return io(t)?t:t+""},Po=Er.document,jo=Gr(Po)&&Gr(Po.createElement),No=function(e){return jo?Po.createElement(e):{}},Io=!Sr&&!Dr((function(){return 7!=Object.defineProperty(No("div"),"a",{get:function(){return 7}}).a})),Lo=Object.getOwnPropertyDescriptor,Ro={f:Sr?Lo:function(e,t){if(e=Ur(e),t=_o(t),Io)try{return Lo(e,t)}catch(e){}if(wo(e,t))return Fr(!Ar(Br.f,e,t),e[t])}},Mo=Er.String,zo=Er.TypeError,Ho=function(e){if(Gr(e))return e;throw zo(Mo(e)+" is not an object")},$o=Er.TypeError,Vo=Object.defineProperty,Uo={f:Sr?Vo:function(e,t,n){if(Ho(e),t=_o(t),Ho(n),Io)try{return Vo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $o("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wo=Sr?function(e,t,n){return Uo.f(e,t,Fr(1,n))}:function(e,t,n){return e[t]=n,e},Go=Nr(Function.toString);Wr(go.inspectSource)||(go.inspectSource=function(e){return Go(e)});var qo,Ko,Yo,Xo=go.inspectSource,Zo=Er.WeakMap,Jo=Wr(Zo)&&/native code/.test(Xo(Zo)),Qo=vo("keys"),ei=function(e){return Qo[e]||(Qo[e]=So(e))},ti={},ni=Er.TypeError,ri=Er.WeakMap;if(Jo||go.state){var oi=go.state||(go.state=new ri),ii=Nr(oi.get),ai=Nr(oi.has),ui=Nr(oi.set);qo=function(e,t){if(ai(oi,e))throw new ni("Object already initialized");return t.facade=e,ui(oi,e,t),t},Ko=function(e){return ii(oi,e)||{}},Yo=function(e){return ai(oi,e)}}else{var si=ei("state");ti[si]=!0,qo=function(e,t){if(wo(e,si))throw new ni("Object already initialized");return t.facade=e,Wo(e,si,t),t},Ko=function(e){return wo(e,si)?e[si]:{}},Yo=function(e){return wo(e,si)}}var li={set:qo,get:Ko,has:Yo,enforce:function(e){return Yo(e)?Ko(e):qo(e,{})},getterFor:function(e){return function(t){var n;if(!Gr(t)||(n=Ko(t)).type!==e)throw ni("Incompatible receiver, "+e+" required");return n}}},ci=Function.prototype,fi=Sr&&Object.getOwnPropertyDescriptor,di=wo(ci,"name"),pi={EXISTS:di,PROPER:di&&"something"===function(){}.name,CONFIGURABLE:di&&(!Sr||Sr&&fi(ci,"name").configurable)},hi=o((function(e){var t=pi.CONFIGURABLE,n=li.get,r=li.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Wr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!wo(i,"name")||t&&i.name!==f)&&Wo(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Er?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Wo(e,n,i)):l?e[n]=i:ho(n,i)})(Function.prototype,"toString",(function(){return Wr(this)&&n(this).source||Xo(this)}))})),gi=Math.ceil,vi=Math.floor,yi=function(e){var t=+e;return t!=t||0===t?0:(t>0?vi:gi)(t)},mi=Math.max,bi=Math.min,wi=function(e,t){var n=yi(e);return n<0?mi(n+t,0):bi(n,t)},xi=Math.min,Ei=function(e){return e>0?xi(yi(e),9007199254740991):0},Di=function(e){return Ei(e.length)},Si=function(e){return function(t,n,r){var o,i=Ur(t),a=Di(i),u=wi(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ci=(Si(!0),Si(!1)),Ai=Nr([].push),Oi=function(e,t){var n,r=Ur(e),o=0,i=[];for(n in r)!wo(ti,n)&&wo(r,n)&&Ai(i,n);for(;t.length>o;)wo(r,n=t[o++])&&(~Ci(i,n)||Ai(i,n));return i},ki=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bi=ki.concat("length","prototype"),Fi={f:Object.getOwnPropertyNames||function(e){return Oi(e,Bi)}},Ti={f:Object.getOwnPropertySymbols},_i=Nr([].concat),Pi=Kr("Reflect","ownKeys")||function(e){var t=Fi.f(Ho(e)),n=Ti.f;return n?_i(t,n(e)):t},ji=function(e,t){for(var n=Pi(t),r=Uo.f,o=Ro.f,i=0;i<n.length;i++){var a=n[i];wo(e,a)||r(e,a,o(t,a))}},Ni=/#|\.prototype\./,Ii=function(e,t){var n=Ri[Li(e)];return n==zi||n!=Mi&&(Wr(t)?Dr(t):!!t)},Li=Ii.normalize=function(e){return String(e).replace(Ni,".").toLowerCase()},Ri=Ii.data={},Mi=Ii.NATIVE="N",zi=Ii.POLYFILL="P",Hi=Ii,$i=Ro.f,Vi=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Er:l?Er[u]||ho(u,{}):(Er[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$i(n,r))&&a.value:n[r],!Hi(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ji(i,o)}(e.sham||o&&o.sham)&&Wo(i,"sham",!0),hi(n,r,i,e)}},Ui={};Ui[Bo("toStringTag")]="z";var Wi,Gi="[object z]"===String(Ui),qi=Bo("toStringTag"),Ki=Er.Object,Yi="Arguments"==Rr(function(){return arguments}()),Xi=Gi?Rr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ki(e),qi))?n:Yi?Rr(t):"Object"==(r=Rr(t))&&Wr(t.callee)?"Arguments":r},Zi=Er.String,Ji=function(e){if("Symbol"===Xi(e))throw TypeError("Cannot convert a Symbol value to a string");return Zi(e)},Qi=function(){var e=Ho(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ea=Er.RegExp,ta=Dr((function(){var e=ea("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),na=ta||Dr((function(){return!ea("a","y").sticky})),ra={BROKEN_CARET:ta||Dr((function(){var e=ea("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:na,UNSUPPORTED_Y:ta},oa=Object.keys||function(e){return Oi(e,ki)},ia=Sr?Object.defineProperties:function(e,t){Ho(e);for(var n,r=Ur(t),o=oa(t),i=o.length,a=0;i>a;)Uo.f(e,n=o[a++],r[n]);return e},aa=Kr("document","documentElement"),ua=ei("IE_PROTO"),sa=function(){},la=function(e){return"<script>"+e+"<\/script>"},ca=function(e){e.write(la("")),e.close();var t=e.parentWindow.Object;return e=null,t},fa=function(){try{Wi=new ActiveXObject("htmlfile")}catch(e){}var e,t;fa="undefined"!=typeof document?document.domain&&Wi?ca(Wi):((t=No("iframe")).style.display="none",aa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(la("document.F=Object")),e.close(),e.F):ca(Wi);for(var n=ki.length;n--;)delete fa.prototype[ki[n]];return fa()};ti[ua]=!0;var da,pa,ha=Object.create||function(e,t){var n;return null!==e?(sa.prototype=Ho(e),n=new sa,sa.prototype=null,n[ua]=e):n=fa(),void 0===t?n:ia(n,t)},ga=Er.RegExp,va=Dr((function(){var e=ga(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ya=Er.RegExp,ma=Dr((function(){var e=ya("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ba=li.get,wa=vo("native-string-replace",String.prototype.replace),xa=RegExp.prototype.exec,Ea=xa,Da=Nr("".charAt),Sa=Nr("".indexOf),Ca=Nr("".replace),Aa=Nr("".slice),Oa=(pa=/b*/g,Ar(xa,da=/a/,"a"),Ar(xa,pa,"a"),0!==da.lastIndex||0!==pa.lastIndex),ka=ra.BROKEN_CARET,Ba=void 0!==/()??/.exec("")[1];(Oa||Ba||ka||va||ma)&&(Ea=function(e){var t,n,r,o,i,a,u,s=this,l=ba(s),c=Ji(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ar(Ea,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ka&&s.sticky,h=Ar(Qi,s),g=s.source,v=0,y=c;if(p&&(h=Ca(h,"y",""),-1===Sa(h,"g")&&(h+="g"),y=Aa(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Da(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ba&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Oa&&(r=s.lastIndex),o=Ar(xa,p?n:s,y),p?o?(o.input=Aa(o.input,v),o[0]=Aa(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Oa&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ba&&o&&o.length>1&&Ar(wa,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=ha(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Fa=Ea;Vi({target:"RegExp",proto:!0,forced:/./.exec!==Fa},{exec:Fa});Bo("species");var Ta=RegExp.prototype,_a=Nr("".charAt),Pa=Nr("".charCodeAt),ja=Nr("".slice),Na=function(e){return function(t,n){var r,o,i=Ji(Vr(t)),a=yi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Pa(i,a))<55296||r>56319||a+1===u||(o=Pa(i,a+1))<56320||o>57343?e?_a(i,a):r:e?ja(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ia={codeAt:Na(!1),charAt:Na(!0)},La=Ia.charAt,Ra=function(e,t,n){return t+(n?La(e,t).length:1)},Ma=Er.TypeError,za=function(e,t){var n=e.exec;if(Wr(n)){var r=Ar(n,e,t);return null!==r&&Ho(r),r}if("RegExp"===Rr(e))return Ar(Fa,e,t);throw Ma("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Bo(e),i=!Dr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Dr((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Nr(/./[o]),s=function(e,t,n){return[function(t){var n=Vr(this),r=null==t?void 0:co(t,e);return r?Ar(r,t,n):new RegExp(t)[e](Ji(n))},function(e){var r=Ho(this),o=Ji(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return za(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=za(r,o));){var c=Ji(u[0]);s[l]=c,""===c&&(r.lastIndex=Ra(o,Ei(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Nr(e),s=t.exec;return s===Fa||s===Ta.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));hi(String.prototype,e,s[0]),hi(Ta,o,s[1])}}("match"),Vi({global:!0},{globalThis:Er});var Ha=!Dr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$a=ei("IE_PROTO"),Va=Er.Object,Ua=Va.prototype,Wa=Ha?Va.getPrototypeOf:function(e){var t=mo(e);if(wo(t,$a))return t[$a];var n=t.constructor;return Wr(n)&&t instanceof n?n.prototype:t instanceof Va?Ua:null},Ga=Er.String,qa=Er.TypeError,Ka=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Nr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ho(n),function(e){if("object"==typeof e||Wr(e))return e;throw qa("Can't set "+Ga(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ya=Er.Array,Xa=Math.max,Za=Nr("".replace),Ja=Nr("".split),Qa=Nr([].join),eu=String(Error("zxcasd").stack),tu=/\n\s*at [^:]*:[^\n]*/,nu=tu.test(eu),ru=/@[^\n]*\n/.test(eu)&&!/zxcasd/.test(eu),ou=function(e,t){if("string"!=typeof e)return e;if(nu)for(;t--;)e=Za(e,tu,"");else if(ru)return Qa(function(e,t,n){for(var r,o,i,a,u=Di(e),s=wi(t,u),l=wi(u,u),c=Ya(Xa(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=_o(o))in r?Uo.f(r,a,Fr(0,i)):r[a]=i;return c.length=f,c}(Ja(e,"\n"),t),"\n");return e},iu=function(e,t){Gr(t)&&"cause"in t&&Wo(e,"cause",t.cause)},au=Nr(Nr.bind),uu=function(e,t){return lo(e),void 0===t?e:au?au(e,t):function(){return e.apply(t,arguments)}},su={},lu=Bo("iterator"),cu=Array.prototype,fu=Bo("iterator"),du=function(e){if(null!=e)return co(e,fu)||co(e,"@@iterator")||su[Xi(e)]},pu=Er.TypeError,hu=function(e,t,n){var r,o;Ho(e);try{if(!(r=co(e,"return"))){if("throw"===t)throw n;return n}r=Ar(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ho(r),n},gu=Er.TypeError,vu=function(e,t){this.stopped=e,this.result=t},yu=vu.prototype,mu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=uu(t,c),g=function(e){return r&&hu(r,"normal",e),new vu(!0,e)},v=function(e){return f?(Ho(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=du(e)))throw gu(uo(e)+" is not iterable");if(function(e){return void 0!==e&&(su.Array===e||cu[lu]===e)}(o)){for(i=0,a=Di(e);a>i;i++)if((u=v(e[i]))&&Yr(yu,u))return u;return new vu(!1)}r=function(e,t){var n=arguments.length<2?du(e):t;if(lo(n))return Ho(Ar(n,e));throw pu(uo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Ar(s,r)).done;){try{u=v(l.value)}catch(e){hu(r,"throw",e)}if("object"==typeof u&&u&&Yr(yu,u))return u}return new vu(!1)},bu=function(e,t){return void 0===e?arguments.length<2?"":t:Ji(e)},wu=!Dr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Fr(1,7)),7!==e.stack)})),xu=Bo("toStringTag"),Eu=Er.Error,Du=[].push,Su=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Yr(Cu,this);Ka?n=Ka(new Eu(void 0),o?Wa(this):Cu):(n=o?this:ha(Cu),Wo(n,xu,"Error")),Wo(n,"message",bu(t,"")),wu&&Wo(n,"stack",ou(n.stack,1)),iu(n,r);var i=[];return mu(e,Du,{that:i}),Wo(n,"errors",i),n};Ka?Ka(Su,Eu):ji(Su,Eu);var Cu=Su.prototype=ha(Eu.prototype,{constructor:Fr(1,Su),message:Fr(1,""),name:Fr(1,"AggregateError")});Vi({global:!0},{AggregateError:Su});var Au=Bo("unscopables"),Ou=Array.prototype;null==Ou[Au]&&Uo.f(Ou,Au,{configurable:!0,value:ha(null)});var ku,Bu,Fu,Tu=function(e){Ou[Au][e]=!0},_u=Bo("iterator"),Pu=!1;[].keys&&("next"in(Fu=[].keys())?(Bu=Wa(Wa(Fu)))!==Object.prototype&&(ku=Bu):Pu=!0),(null==ku||Dr((function(){var e={};return ku[_u].call(e)!==e})))&&(ku={}),Wr(ku[_u])||hi(ku,_u,(function(){return this}));var ju={IteratorPrototype:ku,BUGGY_SAFARI_ITERATORS:Pu},Nu=Uo.f,Iu=Bo("toStringTag"),Lu=function(e,t,n){e&&!wo(e=n?e:e.prototype,Iu)&&Nu(e,Iu,{configurable:!0,value:t})},Ru=ju.IteratorPrototype,Mu=function(){return this},zu=pi.PROPER,Hu=pi.CONFIGURABLE,$u=ju.IteratorPrototype,Vu=ju.BUGGY_SAFARI_ITERATORS,Uu=Bo("iterator"),Wu=function(){return this},Gu=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=ha(Ru,{next:Fr(1,n)}),Lu(e,o,!1),su[o]=Mu}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Vu&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Uu]||p["@@iterator"]||o&&p[o],g=!Vu&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Wa(v.call(new e)))!==Object.prototype&&u.next&&(Wa(u)!==$u&&(Ka?Ka(u,$u):Wr(u[Uu])||hi(u,Uu,Wu)),Lu(u,f,!0)),zu&&"values"==o&&h&&"values"!==h.name&&(Hu?Wo(p,"name","values"):(d=!0,g=function(){return Ar(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Vu||d||!(l in p))&&hi(p,l,s[l]);else Vi({target:t,proto:!0,forced:Vu||d},s);return p[Uu]!==g&&hi(p,Uu,g,{name:o}),su[t]=g,s},qu=li.set,Ku=li.getterFor("Array Iterator"),Yu=Gu(Array,"Array",(function(e,t){qu(this,{type:"Array Iterator",target:Ur(e),index:0,kind:t})}),(function(){var e=Ku(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");su.Arguments=su.Array,Tu("keys"),Tu("values"),Tu("entries");var Xu=Ia.charAt,Zu=li.set,Ju=li.getterFor("String Iterator");Gu(String,"String",(function(e){Zu(this,{type:"String Iterator",string:Ji(e),index:0})}),(function(){var e,t=Ju(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Xu(n,r),t.index+=e.length,{value:e,done:!1})}));var Qu,es={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},ts=No("span").classList,ns=ts&&ts.constructor&&ts.constructor.prototype,rs=ns===Object.prototype?void 0:ns,os=Bo("iterator"),is=Bo("toStringTag"),as=Yu.values,us=function(e,t){if(e){if(e[os]!==as)try{Wo(e,os,as)}catch(t){e[os]=as}if(e[is]||Wo(e,is,t),es[t])for(var n in Yu)if(e[n]!==Yu[n])try{Wo(e,n,Yu[n])}catch(t){e[n]=Yu[n]}}};for(var ss in es)us(Er[ss]&&Er[ss].prototype,ss);function ls(){"undefined"==typeof globalThis&&(window.globalThis=window)}function cs(){void 0===wr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}us(rs,"DOMTokenList"),void 0===e?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),ls(),cs()):e&&(null===(Qu=e.navigator)||void 0===Qu?void 0:Qu.userAgent.match("QQBrowser"))&&(ls(),cs());var fs=Array.isArray||function(e){return"Array"==F(e)},ds=function(){},ps=[],hs=z("Reflect","construct"),gs=/^\s*(?:class|function)\b/,vs=m(gs.exec),ys=!gs.exec(ds),ms=function(e){if(!b(e))return!1;try{return hs(ds,ps,e),!0}catch(e){return!1}},bs=!hs||w((function(){var e;return ms(ms.call)||!ms(Object)||!ms((function(){e=!0}))||e}))?function(e){if(!b(e))return!1;switch(tn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ys||!!vs(gs,Sn(e))}:ms,ws=we("species"),xs=s.Array,Es=function(e,t){return new(function(e){var t;return fs(e)&&(t=e.constructor,(bs(t)&&(t===xs||fs(t.prototype))||L(t)&&null===(t=t[ws]))&&(t=void 0)),void 0===t?xs:t}(e))(0===t?0:t)},Ds=we("species"),Ss=we("isConcatSpreadable"),Cs=s.TypeError,As=K>=51||!w((function(){var e=[];return e[Ss]=!1,e.concat()[0]!==e})),Os=("concat",K>=51||!w((function(){var e=[];return(e.constructor={})[Ds]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),ks=function(e){if(!L(e))return!1;var t=e[Ss];return void 0!==t?!!t:fs(e)};Ke({target:"Array",proto:!0,forced:!As||!Os},{concat:function(e){var t,n,r,o,i,a=le(this),u=Es(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(ks(i=-1===t?a:arguments[t])){if(s+(o=dt(i))>9007199254740991)throw Cs("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&jt(u,s,i[n])}else{if(s>=9007199254740991)throw Cs("Maximum allowed index exceeded");jt(u,s++,i)}return u.length=s,u}});var Bs=xt.f,Fs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ts={f:function(e){return Fs&&"Window"==F(e)?function(e){try{return Bs(e)}catch(e){return Lt(Fs)}}(e):Bs(I(e))}},_s=m([].slice),Ps={f:we},js=Ue.f,Ns=function(e){var t=R.Symbol||(R.Symbol={});fe(t,e)||js(t,e,{value:Ps.f(e)})},Is=m([].push),Ls=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=le(s),g=P(h),v=Re(l,c),y=dt(g),m=0,b=f||Es,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Is(w,d)}else switch(e){case 4:return!1;case 7:Is(w,d)}return i?-1:r||o?o:w}},Rs=[Ls(0),Ls(1),Ls(2),Ls(3),Ls(4),Ls(5),Ls(6),Ls(7)][0],Ms=Xe("hidden"),zs=we("toPrimitive"),Hs=Ln.set,$s=Ln.getterFor("Symbol"),Vs=Object.prototype,Us=s.Symbol,Ws=Us&&Us.prototype,Gs=s.TypeError,qs=s.QObject,Ks=z("JSON","stringify"),Ys=Be.f,Xs=Ue.f,Zs=Ts.f,Js=A.f,Qs=m([].push),el=ue("symbols"),tl=ue("op-symbols"),nl=ue("string-to-symbol-registry"),rl=ue("symbol-to-string-registry"),ol=ue("wks"),il=!qs||!qs.prototype||!qs.prototype.findChild,al=x&&w((function(){return 7!=Pt(Xs({},"a",{get:function(){return Xs(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Ys(Vs,t);r&&delete Vs[t],Xs(e,t,n),r&&e!==Vs&&Xs(Vs,t,r)}:Xs,ul=function(e,t){var n=el[e]=Pt(Ws);return Hs(n,{type:"Symbol",tag:e,description:t}),x||(n.description=t),n},sl=function(e,t,n){e===Vs&&sl(tl,t,n),He(e);var r=De(t);return He(n),fe(el,r)?(n.enumerable?(fe(e,Ms)&&e[Ms][r]&&(e[Ms][r]=!1),n=Pt(n,{enumerable:O(0,!1)})):(fe(e,Ms)||Xs(e,Ms,O(1,{})),e[Ms][r]=!0),al(e,r,n)):Xs(e,r,n)},ll=function(e,t){He(e);var n=I(t),r=Ct(n).concat(pl(n));return Rs(r,(function(t){x&&!D(cl,n,t)||sl(e,t,n[t])})),e},cl=function(e){var t=De(e),n=D(Js,this,t);return!(this===Vs&&fe(el,t)&&!fe(tl,t))&&(!(n||!fe(this,t)||!fe(el,t)||fe(this,Ms)&&this[Ms][t])||n)},fl=function(e,t){var n=I(e),r=De(t);if(n!==Vs||!fe(el,r)||fe(tl,r)){var o=Ys(n,r);return!o||!fe(el,r)||fe(n,Ms)&&n[Ms][r]||(o.enumerable=!0),o}},dl=function(e){var t=Zs(I(e)),n=[];return Rs(t,(function(e){fe(el,e)||fe(gt,e)||Qs(n,e)})),n},pl=function(e){var t=e===Vs,n=Zs(t?tl:I(e)),r=[];return Rs(n,(function(e){!fe(el,e)||t&&!fe(Vs,e)||Qs(r,el[e])})),r};if(Y||(Ws=(Us=function(){if(H(Ws,this))throw Gs("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?dn(arguments[0]):void 0,t=ge(e),n=function(e){this===Vs&&D(n,tl,e),fe(this,Ms)&&fe(this[Ms],t)&&(this[Ms][t]=!1),al(this,t,O(1,e))};return x&&il&&al(Vs,t,{configurable:!0,set:n}),ul(t,e)}).prototype,$n(Ws,"toString",(function(){return $s(this).tag})),$n(Us,"withoutSetter",(function(e){return ul(ge(e),e)})),A.f=cl,Ue.f=sl,Be.f=fl,xt.f=Ts.f=dl,Et.f=pl,Ps.f=function(e){return ul(we(e),e)},x&&Xs(Ws,"description",{configurable:!0,get:function(){return $s(this).description}})),Ke({global:!0,wrap:!0,forced:!Y,sham:!Y},{Symbol:Us}),Rs(Ct(ol),(function(e){Ns(e)})),Ke({target:"Symbol",stat:!0,forced:!Y},{for:function(e){var t=dn(e);if(fe(nl,t))return nl[t];var n=Us(t);return nl[t]=n,rl[n]=t,n},keyFor:function(e){if(!J(e))throw Gs(e+" is not a symbol");if(fe(rl,e))return rl[e]},useSetter:function(){il=!0},useSimple:function(){il=!1}}),Ke({target:"Object",stat:!0,forced:!Y,sham:!x},{create:function(e,t){return void 0===t?Pt(e):ll(Pt(e),t)},defineProperty:sl,defineProperties:ll,getOwnPropertyDescriptor:fl}),Ke({target:"Object",stat:!0,forced:!Y},{getOwnPropertyNames:dl,getOwnPropertySymbols:pl}),Ke({target:"Object",stat:!0,forced:w((function(){Et.f(1)}))},{getOwnPropertySymbols:function(e){return Et.f(le(e))}}),Ks){var hl=!Y||w((function(){var e=Us();return"[null]"!=Ks([e])||"{}"!=Ks({a:e})||"{}"!=Ks(Object(e))}));Ke({target:"JSON",stat:!0,forced:hl},{stringify:function(e,t,n){var r=_s(arguments),o=t;if((L(t)||void 0!==e)&&!J(e))return fs(t)||(t=function(e,t){if(b(o)&&(t=D(o,this,e,t)),!J(t))return t}),r[1]=t,p(Ks,null,r)}})}if(!Ws[zs]){var gl=Ws.valueOf;$n(Ws,zs,(function(e){return D(gl,this)}))}Xn(Us,"Symbol"),gt[Ms]=!0,Ns("asyncIterator"),Ns("hasInstance"),Ns("isConcatSpreadable"),Ns("iterator"),Ns("match"),Ns("matchAll"),Ns("replace"),Ns("search"),Ns("species"),Ns("split"),Ns("toPrimitive"),Ns("toStringTag"),Ns("unscopables"),Xn(s.JSON,"JSON",!0);var vl=R.Symbol;Ns("asyncDispose"),Ns("dispose"),Ns("matcher"),Ns("metadata"),Ns("observable"),Ns("patternMatch"),Ns("replaceAll");var yl=vl,ml=Ps.f("iterator"),bl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(o((function(e){function t(n){return"function"==typeof yl&&"symbol"==typeof ml?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof yl&&e.constructor===yl&&e!==yl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),wl=Ro.f,xl=Dr((function(){wl(1)}));if(Vi({target:"Object",stat:!0,forced:!Sr||xl,sham:!Sr},{getOwnPropertyDescriptor:function(e,t){return wl(Ur(e),t)}}),"object"===(void 0===e?"undefined":bl(e))){var El=Object.getOwnPropertyDescriptor(e,"window");e.window&&!El.set||(e.window=e,e.requestAnimationFrame=function(){},e.navigator={userAgent:""},e.location={hostname:"0.0.0.0",port:0,protocol:"http:"},e.btoa=function(){},e.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=e.document&&null==e.document.getElementsByTagName&&(e.document.getElementsByTagName=function(){return[]})}function Dl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Sl(e){var t,n;return!1!==Dl(e)&&(void 0===(t=e.constructor)||!1!==Dl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Cl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Al(e){return!!e&&!!e[cc]}function Ol(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===fc}(e)||Array.isArray(e)||!!e[lc]||!!e.constructor[lc]||_l(e)||Pl(e))}function kl(e,t,n){void 0===n&&(n=!1),0===Bl(e)?(n?Object.keys:dc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Bl(e){var t=e[cc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_l(e)?2:Pl(e)?3:0}function Fl(e,t){return 2===Bl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tl(e,t,n){var r=Bl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function _l(e){return ic&&e instanceof Map}function Pl(e){return ac&&e instanceof Set}function jl(e){return e.o||e.t}function Nl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=pc(e);delete t[cc];for(var n=dc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Il(e,t){return void 0===t&&(t=!1),Rl(e)||Al(e)||!Ol(e)||(Bl(e)>1&&(e.set=e.add=e.clear=e.delete=Ll),Object.freeze(e),t&&kl(e,(function(e,t){return Il(t,!0)}),!0)),e}function Ll(){Cl(2)}function Rl(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ml(e){var t=hc[e];return t||Cl(18,e),t}function zl(){return rc}function Hl(e,t){t&&(Ml("Patches"),e.u=[],e.s=[],e.v=t)}function $l(e){Vl(e),e.p.forEach(Wl),e.p=null}function Vl(e){e===rc&&(rc=e.l)}function Ul(e){return rc={p:[],l:rc,h:e,m:!0,_:0}}function Wl(e){var t=e[cc];0===t.i||1===t.i?t.j():t.O=!0}function Gl(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Ml("ES5").S(t,e,r),r?(n[cc].P&&($l(t),Cl(4)),Ol(e)&&(e=ql(t,e),t.l||Yl(t,e)),t.u&&Ml("Patches").M(n[cc],e,t.u,t.s)):e=ql(t,n,[]),$l(t),t.u&&t.v(t.u,t.s),e!==sc?e:void 0}function ql(e,t,n){if(Rl(t))return t;var r=t[cc];if(!r)return kl(t,(function(o,i){return Kl(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Yl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Nl(r.k):r.o;kl(3===r.i?new Set(o):o,(function(t,i){return Kl(e,r,o,t,i,n)})),Yl(e,o,!1),n&&e.u&&Ml("Patches").R(r,n,e.u,e.s)}return r.o}function Kl(e,t,n,r,o,i){if(Al(o)){var a=ql(e,o,i&&t&&3!==t.i&&!Fl(t.D,r)?i.concat(r):void 0);if(Tl(n,r,a),!Al(a))return;e.m=!1}if(Ol(o)&&!Rl(o)){if(!e.h.F&&e._<1)return;ql(e,o),t&&t.A.l||Yl(e,o)}}function Yl(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Il(t,n)}function Xl(e,t){var n=e[cc];return(n?jl(n):e)[t]}function Zl(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Jl(e){e.P||(e.P=!0,e.l&&Jl(e.l))}function Ql(e){e.o||(e.o=Nl(e.t))}function ec(e,t,n){var r=_l(t)?Ml("MapSet").N(t,n):Pl(t)?Ml("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:zl(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=gc;n&&(o=[r],i=vc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Ml("ES5").J(t,n);return(n?n.A:zl()).p.push(r),r}function tc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nl(e)}var nc,rc,oc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ic="undefined"!=typeof Map,ac="undefined"!=typeof Set,uc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,sc=oc?Symbol.for("immer-nothing"):((nc={})["immer-nothing"]=!0,nc),lc=oc?Symbol.for("immer-draftable"):"__$immer_draftable",cc=oc?Symbol.for("immer-state"):"__$immer_state",fc=""+Object.prototype.constructor,dc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,pc=Object.getOwnPropertyDescriptors||function(e){var t={};return dc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},hc={},gc={get:function(e,t){if(t===cc)return e;var n=jl(e);if(!Fl(n,t))return function(e,t,n){var r,o=Zl(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Ol(r)?r:r===Xl(e.t,t)?(Ql(e),e.o[t]=ec(e.A.h,r,e)):r},has:function(e,t){return t in jl(e)},ownKeys:function(e){return Reflect.ownKeys(jl(e))},set:function(e,t,n){var r=Zl(jl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Xl(jl(e),t),i=null==o?void 0:o[cc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||Fl(e.t,t)))return!0;Ql(e),Jl(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Xl(e.t,t)||t in e.t?(e.D[t]=!1,Ql(e),Jl(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=jl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Cl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Cl(12)}},vc={};kl(gc,(function(e,t){vc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),vc.deleteProperty=function(e,t){return gc.deleteProperty.call(this,e[0],t)},vc.set=function(e,t,n){return gc.set.call(this,e[0],t,n,e[0])};var yc=new(function(){function e(e){var t=this;this.g=uc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Cl(6),void 0!==r&&"function"!=typeof r&&Cl(7),Ol(e)){var u=Ul(t),s=ec(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?$l(u):Vl(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Hl(u,r),Gl(e,u)}),(function(e){throw $l(u),e})):(Hl(u,r),Gl(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===sc)return;return void 0===a&&(a=e),t.F&&Il(a,!0),a}Cl(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Ol(e)||Cl(8),Al(e)&&(e=function(e){return Al(e)||Cl(22,e),function e(t){if(!Ol(t))return t;var n,r=t[cc],o=Bl(t);if(r){if(!r.P&&(r.i<4||!Ml("ES5").K(r)))return r.t;r.I=!0,n=tc(t,o),r.I=!1}else n=tc(t,o);return kl(n,(function(t,o){r&&function(e,t){return 2===Bl(e)?e.get(t):e[t]}(r.t,t)===o||Tl(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Ul(this),n=ec(this,e,void 0);return n[cc].C=!0,Vl(t),n},t.finishDraft=function(e,t){var n=(e&&e[cc]).A;return Hl(n,t),Gl(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!uc&&Cl(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Ml("Patches").$;return Al(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}()),mc=yc.produce;yc.produceWithPatches.bind(yc),yc.setAutoFreeze.bind(yc),yc.setUseProxies.bind(yc),yc.applyPatches.bind(yc);var bc=yc.createDraft.bind(yc),wc=yc.finishDraft.bind(yc);function xc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ec=new WeakMap,Dc=new WeakMap,Sc=new WeakMap,Cc=new WeakMap,Ac=new WeakMap,Oc=new WeakMap;function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Ef.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Ef.levels(r),...Lf.isText(n)?[]:Array.from(mf.nodes(n),e=>{var[,t]=e;return r.concat(t)})];case"merge_node":var{path:o}=e;return[...Ef.ancestors(o),Ef.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Ef.equals(i,a))return[];var u=[],s=[];for(var l of Ef.ancestors(i)){var c=Ef.transform(l,e);u.push(c)}for(var f of Ef.ancestors(a)){var d=Ef.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...Ef.ancestors(v)];case"split_node":var{path:y}=e;return[...Ef.levels(y),Ef.next(y)];default:return[]}};function Tc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _c,Pc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Mc(e):e,o=_c.None,i=_c.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Zc(s,l);if([o,i]=n?[i,c]:[c,o],Jc(o,_c.ZWJ)&&Jc(i,_c.ExtPict)&&!nf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Jc(o,_c.RI)&&Jc(i,_c.RI)&&!(u=null!==u?!u:!!n||of(e.substring(0,e.length-a))))break;if(o!==_c.None&&i!==_c.None&&ef(o,i))break;a+=s.length}return a||1},jc=/\s/,Nc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Ic=/['\u2018\u2019]/,Lc=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Rc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(jc.test(t))return!1;if(Ic.test(t)){var o=Pc(n,r),[i,a]=Lc(n,o,r);if(e(i,a,r))return!0}return!Nc.test(t)},Mc=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Hc(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(zc(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},zc=e=>e>=55296&&e<=56319,Hc=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(_c||(_c={}));var $c=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Vc=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Uc=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Wc=/^[\u1100-\u115F\uA960-\uA97C]$/,Gc=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,qc=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Kc=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Yc=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Xc=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Zc=(e,t)=>{var n=_c.Any;return-1!==e.search($c)&&(n|=_c.Extend),8205===t&&(n|=_c.ZWJ),t>=127462&&t<=127487&&(n|=_c.RI),-1!==e.search(Vc)&&(n|=_c.Prepend),-1!==e.search(Uc)&&(n|=_c.SpacingMark),-1!==e.search(Wc)&&(n|=_c.L),-1!==e.search(Gc)&&(n|=_c.V),-1!==e.search(qc)&&(n|=_c.T),-1!==e.search(Kc)&&(n|=_c.LV),-1!==e.search(Yc)&&(n|=_c.LVT),-1!==e.search(Xc)&&(n|=_c.ExtPict),n};function Jc(e,t){return 0!=(e&t)}var Qc=[[_c.L,_c.L|_c.V|_c.LV|_c.LVT],[_c.LV|_c.V,_c.V|_c.T],[_c.LVT|_c.T,_c.T],[_c.Any,_c.Extend|_c.ZWJ],[_c.Any,_c.SpacingMark],[_c.Prepend,_c.Any],[_c.ZWJ,_c.ExtPict],[_c.RI,_c.RI]];function ef(e,t){return-1===Qc.findIndex(n=>Jc(e,n[0])&&Jc(t,n[1]))}var tf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,nf=e=>-1!==e.search(tf),rf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,of=e=>{var t=e.match(rf);return null!==t&&t[0].length/2%2==1},af=e=>Sl(e)&&mf.isNodeList(e.children)&&!pf.isEditor(e),uf={isAncestor:e=>Sl(e)&&mf.isNodeList(e.children),isElement:af,isElementList:e=>Array.isArray(e)&&e.every(e=>uf.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return af(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},sf=["text"],lf=["text"];function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var df=new WeakMap,pf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=pf.path(e,o),u="lowest"===r;for(var[s,l]of pf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Lf.isText(s)&&!Ef.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:pf.point(e,t,{edge:"end"}),focus:pf.end(e,[])},{distance:i=1}=r,a=0;for(var u of pf.positions(e,ff(ff({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:pf.start(e,[]),focus:pf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of pf.positions(e,ff(ff({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[pf.start(e,t),pf.end(e,t)],end:(e,t)=>pf.point(e,t,{edge:"end"}),first(e,t){var n=pf.path(e,t,{edge:"start"});return pf.node(e,n)},fragment(e,t){var n=pf.range(e,t);return mf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(t=>pf.isBlock(e,t)),hasInlines:(e,t)=>t.children.some(t=>Lf.isText(t)||pf.isInline(e,t)),hasTexts:(e,t)=>t.children.every(e=>Lf.isText(e)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>uf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Sl(e))return!1;var t=df.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Sl(e.marks))&&(null===e.selection||Ff.isRange(e.selection))&&mf.isNodeList(e.children)&&xf.isOperationList(e.operations);return df.set(e,n),n},isEnd(e,t,n){var r=pf.end(e,n);return Af.equals(t,r)},isEdge:(e,t,n)=>pf.isStart(e,t,n)||pf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Lf.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>uf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Sc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=pf.start(e,n);return Af.equals(t,r)},isVoid:(e,t)=>uf.isElement(t)&&e.isVoid(t),last(e,t){var n=pf.path(e,t,{edge:"end"});return pf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=pf.path(e,t,n);return[mf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=pf.path(e,n);for(var[s,l]of mf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&pf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Ff.isExpanded(n)){var[r]=pf.nodes(e,{match:Lf.isText});if(r){var[o]=r;return Tc(o,sf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=pf.leaf(e,a);if(0===i.offset){var s=pf.previous(e,{at:a,match:Lf.isText}),l=pf.above(e,{match:t=>pf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Ef.isAncestor(d,f)&&(u=c)}}return Tc(u,lf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=pf.after(e,i,{voids:r});if(a){var[,u]=pf.last(e,[]),s=[a.path,u];if(Ef.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Ef.isPath(i)){var[l]=pf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=pf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=pf.path(e,t,n);return[mf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(hf.isSpan(n))s=n[0],l=n[1];else{var c=pf.path(e,n,{edge:"start"}),f=pf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=mf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&pf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Ef.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Lf.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Ec.get(e)||[];if(pf.isNormalizing(e)){if(n){var o=Array.from(mf.nodes(e),e=>{var[,t]=e;return t});Ec.set(e,o)}0!==r(e).length&&pf.withoutNormalizing(e,()=>{for(var t of r(e))if(mf.has(e,t)){var n=pf.node(e,t),[o,i]=n;uf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(mf.has(e,s)){var l=pf.node(e,s);e.normalizeNode(l)}u++}})}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=pf.path(e,t,n),o=Ef.parent(r);return pf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Ef.isPath(t))if("start"===o){var[,i]=mf.first(e,t);t=i}else if("end"===o){var[,a]=mf.last(e,t);t=a}return Ff.isRange(t)&&(t="start"===o?Ff.start(t):"end"===o?Ff.end(t):Ef.common(t.anchor.path,t.focus.path)),Af.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>mf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return pf.pathRefs(e).delete(o),o.current=null,t}};return pf.pathRefs(e).add(o),o},pathRefs(e){var t=Cc.get(e);return t||(t=new Set,Cc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Ef.isPath(t)){var o;if("end"===r){var[,i]=mf.last(e,t);o=i}else{var[,a]=mf.first(e,t);o=a}var u=mf.get(e,o);if(!Lf.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Ff.isRange(t)){var[s,l]=Ff.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return pf.pointRefs(e).delete(o),o.current=null,t}};return pf.pointRefs(e).add(o),o},pointRefs(e){var t=Ac.get(e);return t||(t=new Set,Ac.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=pf.range(e,n),[u,s]=Ff.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of pf.nodes(e,{at:n,reverse:o,voids:i})){if(uf.isElement(g)){if(!i&&e.isVoid(g)){yield pf.start(e,v);continue}if(e.isInline(g))continue;if(pf.hasInlines(e,g)){var y=Ef.isAncestor(v,s.path)?s:pf.end(e,v),m=Ef.isAncestor(v,u.path)?u:pf.start(e,v);f=pf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(Lf.isText(g)){var b=Ef.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=Lc(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Pc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Pc(e,t),[i,a]=Lc(e,o,t);if(Rc(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=pf.before(e,i,{voids:r});if(a){var[,u]=pf.first(e,[]),s=[a.path,u];if(Ef.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Ef.isPath(i)){var[l]=pf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=pf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Ff.isRange(t)&&!n?t:{anchor:pf.start(e,t),focus:pf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return pf.rangeRefs(e).delete(o),o.current=null,t}};return pf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Oc.get(e);return t||(t=new Set,Oc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Sc.set(e,t)},start:(e,t)=>pf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=pf.range(e,t),[i,a]=Ff.edges(o),u="";for(var[s,l]of pf.nodes(e,{at:o,match:Lf.isText,voids:r})){var c=s.text;Ef.equals(l,a.path)&&(c=c.slice(0,a.offset)),Ef.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Ff.edges(t);if(0!==o.offset||0!==i.offset||Ff.isCollapsed(t))return t;var a=pf.above(e,{at:i,match:t=>pf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:pf.start(e,[]),focus:i},l=!0;for(var[c,f]of pf.nodes(e,{at:s,match:Lf.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Ef.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return pf.above(e,ff(ff({},t),{},{match:t=>pf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=pf.isNormalizing(e);pf.setNormalizing(e,!1);try{t()}finally{pf.setNormalizing(e,n)}pf.normalize(e)}},hf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Ef.isPath)},gf=["children"],vf=["text"],yf=new WeakMap,mf={ancestor(e,t){var n=mf.get(e,t);if(Lf.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Ef.ancestors(t,n)){var o=[mf.ancestor(e,r),r];yield o}},child(e,t){if(Lf.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=mf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=mf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Ef.common(t,n);return[mf.get(e,r),r]},descendant(e,t){var n=mf.get(e,t);if(pf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of mf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of mf.nodes(e,t))uf.isElement(n)&&(yield[n,r])},extractProps:e=>uf.isAncestor(e)?Tc(e,gf):Tc(e,vf),first(e,t){for(var n=t.slice(),r=mf.get(e,n);r&&!Lf.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Lf.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return mc({children:e.children},e=>{var[n,r]=Ff.edges(t),o=mf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Ff.includes(t,n)}});for(var[,i]of o){if(!Ff.includes(t,i)){var a=mf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Ef.equals(i,r.path)){var s=mf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Ef.equals(i,n.path)){var l=mf.leaf(e,i);l.text=l.text.slice(n.offset)}}pf.isEditor(e)&&(e.selection=null)}).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Lf.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Lf.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Lf.isText(e)||uf.isElement(e)||pf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=yf.get(e);if(void 0!==t)return t;var n=e.every(e=>mf.isNode(e));return yf.set(e,n),n},last(e,t){for(var n=t.slice(),r=mf.get(e,n);r&&!Lf.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=mf.get(e,t);if(!Lf.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Ef.levels(t,n)){var o=mf.get(e,r);yield[o,r]}},matches:(e,t)=>uf.isElement(e)&&uf.isElementProps(t)&&uf.matches(e,t)||Lf.isText(e)&&Lf.isTextProps(t)&&Lf.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Ef.isBefore(u,i):Ef.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Lf.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Ef.next(u);if(mf.has(e,l)){u=l,s=mf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Ef.previous(u),s=mf.get(e,u)):(u=Ef.parent(u),s=mf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Ef.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=mf.get(e,u)}},parent(e,t){var n=Ef.parent(t),r=mf.get(e,n);if(Lf.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Lf.isText(e)?e.text:e.children.map(mf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of mf.nodes(e,t))Lf.isText(n)&&(yield[n,r])}};function bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xf={isNodeOperation:e=>xf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Sl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Ef.isPath(e.path)&&mf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Ef.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Ef.isPath(e.path)&&Sl(e.properties);case"move_node":return Ef.isPath(e.path)&&Ef.isPath(e.newPath);case"set_node":return Ef.isPath(e.path)&&Sl(e.properties)&&Sl(e.newProperties);case"set_selection":return null===e.properties&&Ff.isRange(e.newProperties)||null===e.newProperties&&Ff.isRange(e.properties)||Sl(e.properties)&&Sl(e.newProperties);case"split_node":return Ef.isPath(e.path)&&"number"==typeof e.position&&Sl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>xf.isOperation(e)),isSelectionOperation:e=>xf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>xf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return wf(wf({},e),{},{type:"remove_node"});case"insert_text":return wf(wf({},e),{},{type:"remove_text"});case"merge_node":return wf(wf({},e),{},{type:"split_node",path:Ef.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Ef.equals(t,n))return e;if(Ef.isSibling(n,t))return wf(wf({},e),{},{path:t,newPath:n});var r=Ef.transform(n,e),o=Ef.transform(Ef.next(n),e);return wf(wf({},e),{},{path:r,newPath:o});case"remove_node":return wf(wf({},e),{},{type:"insert_node"});case"remove_text":return wf(wf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return wf(wf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return wf(wf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return wf(wf({},e),{},{type:"merge_node",path:Ef.next(e.path)})}}},Ef={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Ef.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ef.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Ef.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ef.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Ef.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Ef.compare(e,t),isBefore:(e,t)=>-1===Ef.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Ef.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Ef.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Ef.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Ef.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Ef.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Ef.isAncestor(t,e)&&!Ef.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Ef.equals(i,r)||Ef.endsBefore(i,r)||Ef.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Ef.equals(a,r)||Ef.isAncestor(a,r))return null;Ef.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Ef.equals(u,r)||Ef.endsBefore(u,r)?r[u.length-1]-=1:Ef.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Ef.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Ef.endsBefore(l,r)?r[l.length-1]+=1:Ef.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Ef.equals(f,d))return;if(Ef.isAncestor(f,r)||Ef.equals(f,r)){var p=d.slice();return Ef.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Ef.isSibling(f,d)&&(Ef.isAncestor(d,r)||Ef.equals(d,r))?Ef.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Ef.endsBefore(d,r)||Ef.equals(d,r)||Ef.isAncestor(d,r)?(Ef.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Ef.endsBefore(f,r)&&(Ef.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},Df={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Ef.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Af={compare(e,t){var n=Ef.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Af.compare(e,t),isBefore:(e,t)=>-1===Af.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Ef.equals(e.path,t.path),isPoint:e=>Sl(e)&&"number"==typeof e.offset&&Ef.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Ef.transform(o,t,n);break;case"insert_text":Ef.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Ef.equals(t.path,o)&&(e.offset+=t.position),e.path=Ef.transform(o,t,n);break;case"remove_text":Ef.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Ef.equals(t.path,o)||Ef.isAncestor(t.path,o))return null;e.path=Ef.transform(o,t,n);break;case"split_node":if(Ef.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Ef.transform(o,t,Cf(Cf({},n),{},{affinity:"forward"})))}else e.path=Ef.transform(o,t,n)}})}},Of={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Af.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},kf=["anchor","focus"];function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ff={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Ff.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Ff.edges(e);return t},equals:(e,t)=>Af.equals(e.anchor,t.anchor)&&Af.equals(e.focus,t.focus),includes(e,t){if(Ff.isRange(t)){if(Ff.includes(e,t.anchor)||Ff.includes(e,t.focus))return!0;var[n,r]=Ff.edges(e),[o,i]=Ff.edges(t);return Af.isBefore(n,o)&&Af.isAfter(r,i)}var[a,u]=Ff.edges(e),s=!1,l=!1;return Af.isPoint(t)?(s=Af.compare(t,a)>=0,l=Af.compare(t,u)<=0):(s=Ef.compare(t,a.path)>=0,l=Ef.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Tc(e,kf),[r,o]=Ff.edges(e),[i,a]=Ff.edges(t),u=Af.isBefore(r,i)?i:r,s=Af.isBefore(o,a)?o:a;return Af.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Af.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Af.equals(t,n)},isExpanded:e=>!Ff.isCollapsed(e),isForward:e=>!Ff.isBackward(e),isRange:e=>Sl(e)&&Af.isPoint(e.anchor)&&Af.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Ff.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Ff.isCollapsed(e);Ff.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Ff.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Af.transform(e.anchor,t,{affinity:r}),s=Af.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s})}},Tf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Ff.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},_f=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Sl(r)&&Sl(o)){if(!_f(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Pf=["text"],jf=["anchor","focus"];function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lf={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Tc(e,Pf)}return _f(r?o(e):e,r?o(t):t)},isText:e=>Sl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>Lf.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[If({},e)];for(var r of t){var o=Tc(r,jf),[i,a]=Ff.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=If(If({},d),{},{text:d.text.slice(g)}),d=If(If({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=If(If({},d),{},{text:d.text.slice(0,v)}),d=If(If({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zf=["text"],Hf=["children"];function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$f(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uf={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(mf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?pf.end(e,[]):[0],s=!0),null==s&&(s=!1),Ff.isRange(a))if(r||(a=pf.unhangRange(e,a)),Ff.isCollapsed(a))a=a.anchor;else{var[,c]=Ff.edges(a),f=pf.pointRef(e,c);ed.delete(e,{at:a}),a=f.unref()}if(Af.isPoint(a)){null==u&&(u=Lf.isText(l)?e=>Lf.isText(e):e.isInline(l)?t=>Lf.isText(t)||pf.isInline(e,t):t=>pf.isBlock(e,t));var[d]=pf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=pf.pathRef(e,p),g=pf.isEnd(e,a,p);ed.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Ef.next(v):v}var y=Ef.parent(a),m=a[a.length-1];if(o||!pf.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Ef.next(a)}if(a=Ef.previous(a),s){var x=pf.end(e,a);x&&ed.select(e,x)}}}})},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Ef.isPath(n)?qf(e,n):t=>pf.isBlock(e,t)),n){var a=pf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,t=>{var[,n]=t;return pf.pathRef(e,n)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=pf.node(e,Ef.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Ef.next(d);ed.moveNodes(e,{at:l,to:g,voids:o}),ed.removeNodes(e,{at:d,voids:o})}else if(0===p)ed.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Ef.next(d);ed.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Ef.next(l),m=Ef.next(d);ed.splitNodes(e,{at:y,voids:o}),ed.moveNodes(e,{at:l,to:m,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Ef.isPath(r)){var[u]=pf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>pf.isBlock(e,t);if(!o&&Ff.isRange(r)&&(r=pf.unhangRange(e,r)),Ff.isRange(r))if(Ff.isCollapsed(r))r=r.anchor;else{var[,s]=Ff.edges(r),l=pf.pointRef(e,s);ed.delete(e,{at:r}),r=l.unref(),null==t.at&&ed.select(e,r)}var[c]=pf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=pf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=Ef.next(g),b=Ef.common(p,g),w=Ef.isSibling(p,g),x=Array.from(pf.levels(e,{at:p}),e=>{var[t]=e;return t}).slice(b.length).slice(0,-1),E=pf.above(e,{at:p,mode:"highest",match:t=>x.includes(t)&&Wf(e,t)}),D=E&&pf.pathRef(e,E[1]);if(Lf.isText(d)&&Lf.isText(h)){var S=Tc(d,zf);y=h.text.length,v=S}else{if(!uf.isElement(d)||!uf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));S=Tc(d,Hf),y=h.children.length,v=S}w||ed.moveNodes(e,{at:p,to:m,voids:i}),D&&ed.removeNodes(e,{at:D.current,voids:i}),uf.isElement(h)&&pf.isEmpty(e,h)||Lf.isText(h)&&""===h.text&&0!==g[g.length-1]?ed.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),D&&D.unref()}}}})},moveNodes(e,t){pf.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Ef.isPath(r)?qf(e,r):t=>pf.isBlock(e,t));var u=pf.pathRef(e,n),s=pf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,t=>{var[,n]=t;return pf.pathRef(e,n)});for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Ef.isSibling(d,f)&&Ef.isAfter(d,f)&&(u.current=Ef.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Ef.isPath(i)?qf(e,i):t=>pf.isBlock(e,t)),!n&&Ff.isRange(i)&&(i=pf.unhangRange(e,i));var u=pf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,t=>{var[,n]=t;return pf.pathRef(e,n)});for(var l of s){var c=l.unref();if(c){var[f]=pf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Ef.isPath(o)?qf(e,o):t=>pf.isBlock(e,t)),!i&&Ff.isRange(o)&&(o=pf.unhangRange(e,o)),u&&Ff.isRange(o)){if(Ff.isCollapsed(o)&&pf.leaf(e,o.anchor)[0].text.length>0)return;var l=pf.rangeRef(e,o,{affinity:"inward"}),[c,f]=Ff.edges(o),d="lowest"===a?"lowest":"highest",p=pf.isEnd(e,f,f.path);ed.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=pf.isStart(e,c,c.path);ed.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&ed.select(e,o)}for(var[g,v]of pf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>pf.isBlock(e,t)),Ff.isRange(i)&&(i=Gf(e,i)),Ef.isPath(i)){var s=i,l=pf.point(e,s),[c]=pf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=pf.pointRef(e,i,{affinity:"backward"}),[d]=pf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=pf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(uf.isElement(h)&&e.isInline(h)){var v=pf.after(e,g);if(!v){var y=Ef.next(g);ed.insertNodes(e,{text:""},{at:y,voids:r}),v=pf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=pf.pointRef(e,i),b=i.path.length-a,[,w]=d,x=i.path.slice(0,b),E=0===a?i.offset:i.path[b]+0;for(var[D,S]of pf.levels(e,{at:x,reverse:!0,voids:r})){var C=!1;if(S.length<w.length||0===S.length||!r&&pf.isVoid(e,D))break;var A=f.current,O=pf.isEnd(e,A,S);if(u||!f||!pf.isEdge(e,A,S)){C=!0;var k=mf.extractProps(D);e.apply({type:"split_node",path:S,position:E,properties:k})}E=S[S.length-1]+(C||O?1:0)}if(null==t.at){var B=m.current||pf.end(e,[]);ed.select(e,B)}f.unref(),m.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;ed.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Ef.isPath(i)?qf(e,i):t=>pf.isBlock(e,t)),Ef.isPath(i)&&(i=pf.range(e,i));var u=Ff.isRange(i)?pf.rangeRef(e,i):null,s=pf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,t=>{var[,n]=t;return pf.pathRef(e,n)}).reverse(),c=function(t){var n=t.unref(),[i]=pf.node(e,n),a=pf.range(e,n);r&&u&&(a=Ff.intersection(u.current,a)),ed.liftNodes(e,{at:a,match:e=>uf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Ef.isPath(u)?qf(e,u):e.isInline(t)?t=>pf.isInline(e,t)||Lf.isText(t):t=>pf.isBlock(e,t)),o&&Ff.isRange(u)){var[s,l]=Ff.edges(u),c=pf.rangeRef(e,u,{affinity:"inward"});ed.splitNodes(e,{at:l,match:a,voids:i}),ed.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&ed.select(e,u)}var f=Array.from(pf.nodes(e,{at:u,match:e.isInline(t)?t=>pf.isBlock(e,t):e=>pf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Ff.isRange(u)?Ff.intersection(u,pf.range(e,d)):u;if(p){var h=Array.from(pf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Ef.equals(o,a)?Ef.parent(o):Ef.common(o,a),s=pf.range(e,o,a),l=pf.node(e,u),[c]=l,f=u.length+1,d=Ef.next(a.slice(0,f)),p=Vf(Vf({},t),{},{children:[]});ed.insertNodes(e,p,{at:d,voids:i}),ed.moveNodes(e,{at:s,match:e=>uf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}})}},Wf=(e,t)=>{if(uf.isElement(t)){var n=t;return!!pf.isVoid(e,t)||1===n.children.length&&Wf(e,n.children[0])}return!pf.isEditor(t)},Gf=(e,t)=>{if(Ff.isCollapsed(t))return t.anchor;var[,n]=Ff.edges(t),r=pf.pointRef(e,n);return ed.delete(e,{at:t}),r.unref()},qf=(e,t)=>{var[n]=pf.node(e,t);return e=>e===n};function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xf={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)ed.select(e,r.anchor);else if("focus"===n)ed.select(e,r.focus);else if("start"===n){var[o]=Ff.edges(r);ed.select(e,o)}else if("end"===n){var[,i]=Ff.edges(r);ed.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Ff.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Ff.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?pf.before(e,u,l):pf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?pf.before(e,s,l):pf.after(e,s,l);d&&(c.focus=d)}ed.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=pf.range(e,t),n)ed.setSelection(e,t);else{if(!Ff.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Ff.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Ff.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;ed.setSelection(e,{["anchor"===o?"anchor":"focus"]:Yf(Yf({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Af.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Af.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Zf={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(Ff.isRange(a)&&Ff.isCollapsed(a)&&(a=a.anchor),Af.isPoint(a)){var s=pf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?pf.before(e,a,c)||pf.start(e,[]):pf.after(e,a,c)||pf.end(e,[])},u=!0}}if(Ef.isPath(a))ed.removeNodes(e,{at:a,voids:i});else if(!Ff.isCollapsed(a)){if(!u){var[,f]=Ff.edges(a),d=pf.end(e,[]);Af.equals(f,d)||(a=pf.unhangRange(e,a,{voids:i}))}var[p,h]=Ff.edges(a),g=pf.above(e,{match:t=>pf.isBlock(e,t),at:p,voids:i}),v=pf.above(e,{match:t=>pf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Ef.equals(g[1],v[1]),m=Ef.equals(p.path,h.path),b=i?null:pf.void(e,{at:p,mode:"highest"}),w=i?null:pf.void(e,{at:h,mode:"highest"});if(b){var x=pf.before(e,p);x&&g&&Ef.isAncestor(g[1],x.path)&&(p=x)}if(w){var E=pf.after(e,h);E&&v&&Ef.isAncestor(v[1],E.path)&&(h=E)}var D,S=[];for(var C of pf.nodes(e,{at:a,voids:i})){var[A,O]=C;D&&0===Ef.compare(O,D)||(!i&&pf.isVoid(e,A)||!Ef.isCommon(O,p.path)&&!Ef.isCommon(O,h.path))&&(S.push(C),D=O)}var k=Array.from(S,t=>{var[,n]=t;return pf.pathRef(e,n)}),B=pf.pointRef(e,p),F=pf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=pf.leaf(e,T),{path:P}=T,{offset:j}=p,N=_.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var L=I.unref();ed.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=pf.leaf(e,R),{path:z}=R,H=m?p.offset:0,$=M.text.slice(H,h.offset);$.length>0&&e.apply({type:"remove_text",path:z,offset:H,text:$})}!m&&y&&F.current&&B.current&&ed.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&ed.select(e,V)}}})},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Ff.isRange(i))if(r||(i=pf.unhangRange(e,i)),Ff.isCollapsed(i))i=i.anchor;else{var[,a]=Ff.edges(i);if(!o&&pf.void(e,{at:a}))return;var u=pf.pointRef(e,a);ed.delete(e,{at:i}),i=u.unref()}else Ef.isPath(i)&&(i=pf.start(e,i));if(o||!pf.void(e,{at:i})){var s=pf.above(e,{at:i,match:t=>pf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;pf.isEnd(e,i,l)?i=pf.after(e,l):pf.isStart(e,i,l)&&(i=pf.before(e,l))}var c=pf.above(e,{match:t=>pf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=pf.isStart(e,i,f),p=pf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=mf.first({children:t},[]),[,m]=mf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Ef.isAncestor(r,y)&&uf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Ef.isAncestor(r,m)&&uf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var x of mf.nodes({children:t},{pass:w}))w(x)&&b.push(x);var E=[],D=[],S=[],C=!0,A=!1;for(var[O]of b)uf.isElement(O)&&!e.isInline(O)?(C=!1,A=!0,D.push(O)):C?E.push(O):S.push(O);var[k]=pf.nodes(e,{at:i,match:t=>Lf.isText(t)||pf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=pf.isStart(e,i,B),T=pf.isEnd(e,i,B),_=pf.pathRef(e,p?Ef.next(f):f),P=pf.pathRef(e,T?Ef.next(B):B),j=pf.pathRef(e,f);ed.splitNodes(e,{at:i,match:t=>A?pf.isBlock(e,t):Lf.isText(t)||pf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=pf.pathRef(e,!F||F&&T?Ef.next(B):B);if(ed.insertNodes(e,E,{at:N.current,match:t=>Lf.isText(t)||pf.isInline(e,t),mode:"highest",voids:o}),h&&D.length&&ed.delete(e,{at:j.unref(),voids:o}),ed.insertNodes(e,D,{at:_.current,match:t=>pf.isBlock(e,t),mode:"lowest",voids:o}),ed.insertNodes(e,S,{at:P.current,match:t=>Lf.isText(t)||pf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=S.length>0?Ef.previous(P.current):D.length>0?Ef.previous(_.current):Ef.previous(N.current);var L=pf.end(e,I);ed.select(e,L)}N.unref(),_.unref(),P.unref()}}})},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Ef.isPath(o)&&(o=pf.range(e,o)),Ff.isRange(o))if(Ff.isCollapsed(o))o=o.anchor;else{var i=Ff.end(o);if(!r&&pf.void(e,{at:i}))return;var a=pf.pointRef(e,i);ed.delete(e,{at:o,voids:r}),o=a.unref(),ed.setSelection(e,{anchor:o,focus:o})}if(r||!pf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ed=Qf(Qf(Qf(Qf({},{transform(e,t){e.children=bc(e.children);var n=e.selection&&bc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=mf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of Ff.points(t))t[s]=Af.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=mf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Ff.points(t))t[v]=Af.transform(g,n);break;case"merge_node":var{path:y}=n,m=mf.get(e,y),b=Ef.previous(y),w=mf.get(e,b),x=mf.parent(e,y),E=y[y.length-1];if(Lf.isText(m)&&Lf.isText(w))w.text+=m.text;else{if(Lf.isText(m)||Lf.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(x.children.splice(E,1),t)for(var[D,S]of Ff.points(t))t[S]=Af.transform(D,n);break;case"move_node":var{path:C,newPath:A}=n;if(Ef.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var O=mf.get(e,C),k=mf.parent(e,C),B=C[C.length-1];k.children.splice(B,1);var F=Ef.transform(C,n),T=mf.get(e,Ef.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of Ff.points(t))t[j]=Af.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(mf.parent(e,N).children.splice(I,1),t)for(var[L,R]of Ff.points(t)){var M=Af.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,H=void 0;for(var[$,V]of mf.texts(e)){if(-1!==Ef.compare(V,N)){H=[$,V];break}z=[$,V]}var U=!1;z&&H&&(U=Ef.equals(H[1],N)?!Ef.hasPrevious(H[1]):Ef.common(z[1],N).length<Ef.common(H[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=mf.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of Ff.points(t))t[J]=Af.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=mf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Ff.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Mf({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=mf.get(e,le),he=mf.parent(e,le),ge=le[le.length-1];if(Lf.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Mf(Mf({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Mf(Mf({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,xe]of Ff.points(t))t[xe]=Af.transform(we,n)}return t})(e,n,t)}finally{e.children=wc(e.children),e.selection=n?Al(n)?wc(n):n:null}}}),Uf),Xf),Zf),td="[object Map]",nd="[object Set]",rd=/^\[object .+?Constructor\]$/,od=/^(?:0|[1-9]\d*)$/,id="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ad="\\ud83c[\\udffb-\\udfff]",ud="[^\\ud800-\\udfff]",sd="(?:\\ud83c[\\udde6-\\uddff]){2}",ld="[\\ud800-\\udbff][\\udc00-\\udfff]",cd="(?:"+id+"|"+ad+")?",fd="[\\ufe0e\\ufe0f]?"+cd+"(?:\\u200d(?:"+[ud,sd,ld].join("|")+")[\\ufe0e\\ufe0f]?"+cd+")*",dd="(?:"+[ud+id+"?",id,sd,ld,"[\\ud800-\\udfff]"].join("|")+")",pd=RegExp(ad+"(?="+ad+")|"+dd+fd,"g"),hd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),gd="object"==typeof r&&r&&r.Object===Object&&r,vd="object"==typeof self&&self&&self.Object===Object&&self,yd=gd||vd||Function("return this")();function md(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function bd(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var wd,xd,Ed=Function.prototype,Dd=Object.prototype,Sd=yd["__core-js_shared__"],Cd=function(){var e=/[^.]+$/.exec(Sd&&Sd.keys&&Sd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ad=Ed.toString,Od=Dd.hasOwnProperty,kd=Dd.toString,Bd=RegExp("^"+Ad.call(Od).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fd=yd.Symbol,Td=Fd?Fd.iterator:void 0,_d=Dd.propertyIsEnumerable,Pd=(wd=Object.keys,xd=Object,function(e){return wd(xd(e))}),jd=Ud(yd,"DataView"),Nd=Ud(yd,"Map"),Id=Ud(yd,"Promise"),Ld=Ud(yd,"Set"),Rd=Ud(yd,"WeakMap"),Md=qd(jd),zd=qd(Nd),Hd=qd(Id),$d=qd(Ld),Vd=qd(Rd);function Ud(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Zd(e)||function(e){return!!Cd&&Cd in e}(e))&&(Xd(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Bd:rd).test(qd(e))}(n)?n:void 0}var Wd=function(e){return kd.call(e)};function Gd(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||od.test(e))&&e>-1&&e%1==0&&e<t}function qd(e){if(null!=e){try{return Ad.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(jd&&"[object DataView]"!=Wd(new jd(new ArrayBuffer(1)))||Nd&&Wd(new Nd)!=td||Id&&"[object Promise]"!=Wd(Id.resolve())||Ld&&Wd(new Ld)!=nd||Rd&&"[object WeakMap]"!=Wd(new Rd))&&(Wd=function(e){var t=kd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?qd(n):void 0;if(r)switch(r){case Md:return"[object DataView]";case zd:return td;case Hd:return"[object Promise]";case $d:return nd;case Vd:return"[object WeakMap]"}return t});var Kd=Array.isArray;function Yd(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Xd(e)}function Xd(e){var t=Zd(e)?kd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Zd(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Jd(e){return!!e&&"object"==typeof e}function Qd(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,function(e){return Yd(e)?function(e,t){var n=Kd(e)||function(e){return function(e){return Jd(e)&&Yd(e)}(e)&&Od.call(e,"callee")&&(!_d.call(e,"callee")||"[object Arguments]"==kd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Od.call(e,i)||o&&("length"==i||Gd(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Dd))return Pd(e);var t,n,r=[];for(var o in Object(e))Od.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var ep=function(e){if(!e)return[];if(Yd(e))return function(e){return"string"==typeof e||!Kd(e)&&Jd(e)&&"[object String]"==kd.call(e)}(e)?function(e){return function(e){return hd.test(e)}(e)?function(e){return e.match(pd)||[]}(e):function(e){return e.split("")}(e)}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Td&&e[Td])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Td]());var t=Wd(e);return(t==td?md:t==nd?bd:Qd)(e)};function tp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function np(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:tp(t[n])&&tp(e[n])&&Object.keys(t[n]).length>0&&np(e[n],t[n])}))}var rp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function op(){var e="undefined"!=typeof document?document:{};return np(e,rp),e}var ip={document:rp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function ap(){var e="undefined"!=typeof window?window:{};return np(e,ip),e}function up(e){return(up=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sp(e,t){return(sp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lp(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function cp(e,t,n){return(cp=lp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&sp(o,n.prototype),o}).apply(null,arguments)}function fp(e){var t="function"==typeof Map?new Map:void 0;return(fp=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return cp(e,arguments,up(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sp(n,e)})(e)}var dp=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(fp(Array));function pp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,pp(e)):t.push(e)})),t}function hp(e,t){return Array.prototype.filter.call(e,t)}function gp(e,t){var n=ap(),r=op(),o=[];if(!t&&e instanceof dp)return e;if(!e)return new dp(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof dp)return e;o=e}return new dp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function vp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function mp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pp(t.map((function(e){return e.split(" ")})));return hp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function bp(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function wp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function xp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Ep(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Dp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),gp(t).is(o))i.apply(t,n);else for(var r=gp(t).parents(),a=0;a<r.length;a+=1)gp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Sp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Cp(){var e=ap();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Ap(){var e=ap();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Op(){if(this.length>0){var e=ap(),t=op(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function kp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Bp(){for(var e=ap(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Fp(e,t){var n,r=ap();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Tp(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function _p(e){return gp(hp(this,e))}function Pp(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function jp(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Np(e){var t,n,r=ap(),o=op(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=gp(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof dp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Ip(){for(var e,t=op(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof dp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Lp(e){var t,n,r=op();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof dp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Rp(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?gp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return gp(t)}function Mp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?gp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return gp(t)}function zp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return gp(t)}function Hp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!gp(r[o]).is(e)||t.push(r[o]);return gp(t)}function $p(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Vp(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}gp.fn=dp.prototype;var Up="resize scroll".split(" ");function Wp(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)Up.indexOf(e)<0&&(e in this[o]?this[o][e]():gp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Gp=Wp("click"),qp=Wp("focus"),Kp=/^(?:0|[1-9]\d*)$/;function Yp(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Xp=Object.prototype,Zp=Xp.hasOwnProperty,Jp=Xp.toString,Qp=Xp.propertyIsEnumerable,eh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var th,nh=(th=function(e,t){return e&&rh(e,t,uh)},function(e,t){if(null==e)return e;if(!ah(e))return th(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),rh=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function oh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Kp.test(e))&&e>-1&&e%1==0&&e<t}var ih=Array.isArray;function ah(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Jp.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function uh(e){return ah(e)?function(e,t){var n=ih(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&ah(e)}(e)&&Zp.call(e,"callee")&&(!Qp.call(e,"callee")||"[object Arguments]"==Jp.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Zp.call(e,i)||o&&("length"==i||oh(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Xp))return eh(e);var t,n,r=[];for(var o in Object(e))Zp.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function sh(e){return e}var lh=function(e,t){return(ih(e)?Yp:nh)(e,"function"==typeof t?t:sh)};let ch=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var fh=/^\s+|\s+$/g,dh=/^[-+]0x[0-9a-f]+$/i,ph=/^0b[01]+$/i,hh=/^0o[0-7]+$/i,gh=parseInt,vh="object"==typeof r&&r&&r.Object===Object&&r,yh="object"==typeof self&&self&&self.Object===Object&&self,mh=vh||yh||Function("return this")(),bh=Object.prototype.toString,wh=Math.max,xh=Math.min,Eh=function(){return mh.Date.now()};function Dh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==bh.call(e)}(e))return NaN;if(Dh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Dh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(fh,"");var n=ph.test(e);return n||hh.test(e)?gh(e.slice(2),n?2:8):dh.test(e)?NaN:+e}var Ch=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Dh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Eh();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?xh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Eh(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Sh(t)||0,Dh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?wh(Sh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Eh())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const Ah={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Oh(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const kh=Array.isArray;function Bh(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Fh(e){return void 0===e}function Th(e){return void 0!==e}const _h=Oh("",{},[],void 0,void 0);function Ph(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function jh(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const Nh=["create","update","remove","destroy","pre","post"];function Ih(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Ah;for(const t of Nh)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;Th(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Fh(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=Th(s)&&Th(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](_h,e);if(kh(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else Bh(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Th(v)&&(null===(a=v.create)||void 0===a||a.call(v,_h,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(Th(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;Th(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}Fh(t.text)?Th(v)&&Th(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:Ph(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):Ph(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):Ph(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):Ph(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=jh(t,p,g)),c=u[b.key],Fh(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):Th(y)?(Th(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Th(v)?s(g,v,0,v.length-1):Th(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Th(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return Oh(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),Ph(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Lh(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),kh(n)?r=n:Bh(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(kh(t)?r=t:Bh(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Bh(r[i])&&(r[i]=Oh(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function e(t,n,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==n)for(let t=0;t<n.length;++t){const r=n[t].data;void 0!==r&&e(r,n[t].children,n[t].sel)}}(a,r,e),Oh(e,a,r,o,void 0)}function Rh(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Mh={create:Rh,update:Rh};function zh(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Hh={create:zh,update:zh},$h=/[A-Z]/g;function Vh(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace($h,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace($h,"-$&").toLowerCase(),i[r]))}const Uh={create:Vh,update:Vh};function Wh(e,t){const n=e.type,r=t.data.on;r&&r[n]&&function e(t,n,r){if("function"==typeof t)t.call(n,r,n);else if("object"==typeof t)for(let o=0;o<t.length;o++)e(t[o],n,r)}(r[n],t,e)}function Gh(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Wh(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const qh={create:Gh,update:Gh,destroy:Gh};function Kh(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const Yh={create:Kh,update:Kh},Xh="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Zh=!1;function Jh(e,t,n){!function(e){Xh((function(){Xh(e)}))}((function(){e[t]=n}))}function Qh(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Jh(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const eg={pre:function(){Zh=!1},create:Qh,update:Qh,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Zh||(e.elm.offsetLeft,Zh=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function tg(e,t,...n){const r=function e(t,n){for(const r of t)null!=r&&!1!==r&&""!==r&&(Array.isArray(r)?e(r,n):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?n.push(Oh(void 0,void 0,void 0,String(r),void 0)):n.push(r));return n}(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Lh(e,t,r[0].text):Lh(e,t,r)}tg||(tg={});var ng,rg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,og=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ig="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ag="["+ig+"]",ug="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",sg="\\d+",lg="[a-z\\xdf-\\xf6\\xf8-\\xff]",cg="[^\\ud800-\\udfff"+ig+sg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",fg="\\ud83c[\\udffb-\\udfff]",dg="[^\\ud800-\\udfff]",pg="(?:\\ud83c[\\udde6-\\uddff]){2}",hg="[\\ud800-\\udbff][\\udc00-\\udfff]",gg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",vg="(?:"+lg+"|"+cg+")",yg="(?:"+gg+"|"+cg+")",mg="(?:"+ug+"|"+fg+")?",bg="[\\ufe0e\\ufe0f]?"+mg+"(?:\\u200d(?:"+[dg,pg,hg].join("|")+")[\\ufe0e\\ufe0f]?"+mg+")*",wg="(?:"+["[\\u2700-\\u27bf]",pg,hg].join("|")+")"+bg,xg="(?:"+[dg+ug+"?",ug,pg,hg,"[\\ud800-\\udfff]"].join("|")+")",Eg=RegExp("['’]","g"),Dg=RegExp(ug,"g"),Sg=RegExp(fg+"(?="+fg+")|"+xg+bg,"g"),Cg=RegExp([gg+"?"+lg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ag,gg,"$"].join("|")+")",yg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ag,gg+vg,"$"].join("|")+")",gg+"?"+vg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",gg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",sg,wg].join("|"),"g"),Ag=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Og=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kg="object"==typeof r&&r&&r.Object===Object&&r,Bg="object"==typeof self&&self&&self.Object===Object&&self,Fg=kg||Bg||Function("return this")(),Tg=(ng={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==ng?void 0:ng[e]});function _g(e){return Ag.test(e)}var Pg=Object.prototype.toString,jg=Fg.Symbol,Ng=jg?jg.prototype:void 0,Ig=Ng?Ng.toString:void 0;function Lg(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Pg.call(e)}(e))return Ig?Ig.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var Rg,Mg=(Rg=function(e,t,n){return t=t.toLowerCase(),e+(n?zg(Lg(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=Lg(e),void 0===(t=t)?function(e){return Og.test(e)}(e)?function(e){return e.match(Cg)||[]}(e):function(e){return e.match(rg)||[]}(e):e.match(t)||[]}(function(e){return(e=Lg(e))&&e.replace(og,Tg).replace(Dg,"")}(e).replace(Eg,"")),Rg,"")}),zg=("toUpperCase",function(e){var t=_g(e=Lg(e))?function(e){return _g(e)?function(e){return e.match(Sg)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),Hg=Mg,$g="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Vg={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Ug={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:$g?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Wg={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Gg=1;Gg<20;Gg++)Wg["f"+Gg]=111+Gg;function qg(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Vg)r[Vg[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Yg(d),g=Vg[h];if(d.length>1&&!g&&!Ug[d]&&!Wg[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Kg(d)),g&&(r[g]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Kg(e){return e=Yg(e),Wg[e]||e.toUpperCase().charCodeAt(0)}function Yg(e){return e=e.toLowerCase(),Ug[e]||e}var Xg=qg,Zg=function(e,t){return qg(e,{byKey:!0},t)},Jg=/^\s+|\s+$/g,Qg=/^[-+]0x[0-9a-f]+$/i,ev=/^0b[01]+$/i,tv=/^0o[0-7]+$/i,nv=parseInt,rv="object"==typeof r&&r&&r.Object===Object&&r,ov="object"==typeof self&&self&&self.Object===Object&&self,iv=rv||ov||Function("return this")(),av=Object.prototype.toString,uv=Math.max,sv=Math.min,lv=function(){return iv.Date.now()};function cv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function fv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==av.call(e)}(e))return NaN;if(cv(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=cv(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Jg,"");var n=ev.test(e);return n||tv.test(e)?nv(e.slice(2),n?2:8):Qg.test(e)?NaN:+e}var dv,pv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=lv();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?sv(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=lv(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=fv(t)||0,cv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?uv(fv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(lv())},m},hv=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",E="[object Float64Array]",D="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[b]=P[w]=P[a]=P[u]=P[x]=P[E]=P[D]=P[S]=P[C]=P[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[s]=P[m]=!1;var j="object"==typeof r&&r&&r.Object===Object&&r,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function $(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ge=Ne(I,"Set"),ve=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),xe=ze(ge),Ee=ze(ve),De=re?re.prototype:void 0,Se=De?De.valueOf:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Ae(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Te(e,t,n,r,o,p,m){var T;if(r&&(T=p?r(e,o,p,m):r(e)),void 0!==T)return T;if(!Ge(e))return e;var _=$e(e);if(_){if(T=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var j=Le(e),N=j==s||j==l;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==d||j==i||N&&!p){if(V(e))return p?e:{};if(T=function(e){return"function"!=typeof e.constructor||Me(e)?{}:Ge(t=ie(e))?ae(t):{};var t}(N?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,qe(t),e)}(T,e))}else{if(!P[j])return p?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case b:return _e(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case x:case E:case D:case S:case C:case A:case O:case k:case B:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return $(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return $(t?n(G(e),!0):G(e),H,new e.constructor)}(e,r,n);case y:return function(e){return Se?Object(Se.call(e)):{}}(e)}}(e,j,Te,t)}}m||(m=new ke);var I=m.get(e);if(I)return I;if(m.set(e,T),!_)var L=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Ie)}(e):qe(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(L||e,(function(o,i){L&&(o=e[i=o]),Be(T,i,Te(o,t,n,r,i,e,m))})),T}function _e(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Be(n,a,void 0===u?e[a]:u)}return n}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ge(e)||function(e){return!!Z&&Z in e}(e))&&(We(e)||V(e)?te:T).test(ze(e))}(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Ae.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ce,map:new(pe||Ae),string:new Ce}},Oe.prototype.delete=function(e){return je(this,e).delete(e)},Oe.prototype.get=function(e){return je(this,e).get(e)},Oe.prototype.has=function(e){return je(this,e).has(e)},Oe.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Ae},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Ie=le?W(le,Object):function(){return[]},Le=function(e){return ee.call(e)};function Re(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ze(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(de&&Le(new de(new ArrayBuffer(1)))!=w||pe&&Le(new pe)!=c||he&&Le(he.resolve())!=p||ge&&Le(new ge)!=g||ve&&Le(new ve)!=m)&&(Le=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case xe:return g;case Ee:return m}return t});var $e=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!We(e)}var Ue=ce||function(){return!1};function We(e){var t=Ge(e)?ee.call(e):"";return t==s||t==l}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ve(e)?function(e,t){var n=$e(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||Re(a,r))||n.push(a);return n}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}));function gv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vv=0;function yv(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})),r}function mv(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=yv(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var bv=(dv=function(e){return"__private_"+vv+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,dv,{value:wv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(gv(this,dv)[dv],this):gv(this,dv)[dv](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error("missing string: "+e);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return mv(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return mv(n,t)}});function wv(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var xv=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};let{urlAlphabet:Ev}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Dv=e=>crypto.getRandomValues(new Uint8Array(e)),Sv=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var Cv={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>Sv(e,t,Dv),customRandom:Sv,urlAlphabet:Ev,random:Dv},Av=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Ov(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Ov.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var kv=/[\/\+\.]/,Bv=0;var Fv=function(e){return"__private_"+Bv+++"_"+e}("publish");class Tv{constructor(){Object.defineProperty(this,Fv,{value:_v}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,Fv)[Fv](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function _v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}Tv.VERSION="2.0.3";var Pv=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},jv={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Nv(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"))+t}var Iv=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function Lv(e){return e<10?"0"+e:e.toString()}var Rv=function(){const e=new Date;return`${Lv(e.getHours())}:${Lv(e.getMinutes())}:${Lv(e.getSeconds())}`},Mv={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Rv()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Rv()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Rv()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Rv()}]`,...t)}}},zv={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Hv=Cv;let $v,Vv;function Uv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Wv=0;function Gv(e){return"__private_"+Wv+++"_"+e}const{nanoid:qv}=Hv,{justErrorsLogger:Kv,debugLogger:Yv}=Mv;class Xv extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Zv extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Jv=Gv("plugins"),Qv=Gv("storeUnsubscribe"),ey=Gv("emitter"),ty=Gv("preProcessors"),ny=Gv("uploaders"),ry=Gv("postProcessors"),oy=Gv("checkRestrictions"),iy=Gv("checkMinNumberOfFiles"),ay=Gv("checkRequiredMetaFieldsOnFile"),uy=Gv("checkRequiredMetaFields"),sy=Gv("showOrLogErrorAndThrow"),ly=Gv("assertNewUploadAllowed"),cy=Gv("checkAndCreateFileStateObject"),fy=Gv("startIfAutoProceed"),dy=Gv("addListeners"),py=Gv("updateOnlineStatus"),hy=Gv("createUpload"),gy=Gv("getUpload"),vy=Gv("removeUpload"),yy=Gv("runUpload");$v=Symbol.for("uppy test: getPlugins"),Vv=Symbol.for("uppy test: createUpload");class my{constructor(e){Object.defineProperty(this,yy,{value:Ty}),Object.defineProperty(this,vy,{value:Fy}),Object.defineProperty(this,gy,{value:By}),Object.defineProperty(this,hy,{value:ky}),Object.defineProperty(this,dy,{value:Oy}),Object.defineProperty(this,fy,{value:Ay}),Object.defineProperty(this,cy,{value:Cy}),Object.defineProperty(this,ly,{value:Sy}),Object.defineProperty(this,sy,{value:Dy}),Object.defineProperty(this,uy,{value:Ey}),Object.defineProperty(this,ay,{value:xy}),Object.defineProperty(this,iy,{value:wy}),Object.defineProperty(this,oy,{value:by}),Object.defineProperty(this,Jv,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Qv,{writable:!0,value:void 0}),Object.defineProperty(this,ey,{writable:!0,value:xv()}),Object.defineProperty(this,ty,{writable:!0,value:new Set}),Object.defineProperty(this,ny,{writable:!0,value:new Set}),Object.defineProperty(this,ry,{writable:!0,value:new Set}),Object.defineProperty(this,py,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=zv;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Tv,logger:Kv,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Yv),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ch(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Iv(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Uv(this,Qv)[Qv]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Uv(this,dy)[dy]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Uv(this,ey)[ey].emit(e,...n)}on(e,t){return Uv(this,ey)[ey].on(e,t),this}once(e,t){return Uv(this,ey)[ey].once(e,t),this}off(e,t){return Uv(this,ey)[ey].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new bv([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Uv(this,ty)[ty].add(e)}removePreProcessor(e){return Uv(this,ty)[ty].delete(e)}addPostProcessor(e){Uv(this,ry)[ry].add(e)}removePostProcessor(e){return Uv(this,ry)[ry].delete(e)}addUploader(e){Uv(this,ny)[ny].add(e)}removeUploader(e){return Uv(this,ny)[ny].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),i=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),u=r.filter(e=>e.progress.uploadStarted),s=r.filter(e=>e.isPaused),l=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),f=o.filter(e=>!e.isPaused),d=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return Uv(this,oy)[oy](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Uv(this,ly)[ly](e);const{files:t}=this.getState();let n=Uv(this,cy)[cy](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Uv(this,fy)[fy](),n.id}addFiles(e){Uv(this,ly)[ly]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=Uv(this,cy)[cy](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)}),n.length>0&&Uv(this,fy)[fy](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+="\n * "+t.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]});const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach(e=>{this.emit("file-removed",a[e],t)}),l.length>5?this.log(`Removed ${l.length} files`):this.log("Removed files: "+l.join(", "))}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Uv(this,hy)[hy](t,{forceAllowNewUpload:!0});return Uv(this,yy)[yy](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Uv(this,hy)[hy]([e],{forceAllowNewUpload:!0});return Uv(this,yy)[yy](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach(e=>{i+=e.progress.bytesUploaded}),n.forEach(e=>{i+=o*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Uv(this,Jv)[Jv]?Uv(this,Jv)[Jv][n.type].push(n):Uv(this,Jv)[Jv][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Uv(this,Jv)[Jv])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[$v](e){return Uv(this,Jv)[Jv][e]}iteratePlugins(e){Object.values(Uv(this,Jv)[Jv]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Uv(this,Jv)[Jv][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Uv(this,Qv)[Qv](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Uv(this,py)[py]),window.removeEventListener("offline",Uv(this,py)[py]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Uv(this,yy)[yy](e):(Uv(this,vy)[vy](e),Promise.reject(new Error("Nonexistent upload")))}[Vv](){return Uv(this,hy)[hy](...arguments)}addResultData(e,t){if(!Uv(this,gy)[gy](e))return void this.log("Not setting result for an upload that has been removed: "+e);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Uv(this,Jv)[Jv].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>{Uv(this,iy)[iy](t),Uv(this,uy)[uy](t)}).catch(e=>{Uv(this,sy)[sy](e)}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const o=Uv(this,hy)[hy](r);return Uv(this,yy)[yy](o)}).catch(e=>{Uv(this,sy)[sy](e,{showInformer:!1})}))}}function by(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Xv(""+this.i18n("youCanOnlyUploadX",{smart_count:i}));if(a&&!a.some(t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Ov(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,kv);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase())){const e=a.join(", ");throw new Xv(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach(e=>{n+=e.size}),n>o)throw new Xv(this.i18n("exceedsSize",{size:Av(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Xv(this.i18n("exceedsSize",{size:Av(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Xv(this.i18n("inferiorSize",{size:Av(r)}))}function wy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Xv(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}function xy(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new Xv(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name}));r.push(n),o.push(t[i]),Uv(this,sy)[sy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Ey(e){const t=Object.keys(e).flatMap(e=>{const t=this.getFile(e);return Uv(this,ay)[ay](t)});if(t.length)throw new Zv(t,""+this.i18n("missingRequiredMetaField"))}function Dy(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=" "+a),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Sy(e){const{allowNewUpload:t}=this.getState();!1===t&&Uv(this,sy)[sy](new Xv(this.i18n("noMoreFilesAllowed")),{file:e})}function Cy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Pv(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in jv?jv[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=Pv(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-"+Nv(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+Nv(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new Xv(this.i18n("noDuplicates",{fileName:r}));Uv(this,sy)[sy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?Uv(this,sy)[sy](new Xv("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map(t=>e[t]);Uv(this,oy)[oy](l,t)}catch(e){Uv(this,sy)[sy](e,{file:l})}return l}function Ay(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Oy(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=" "+e.details),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=" "+n.details),e.message=this.i18n("failedToUpload",{file:t.name}),Uv(this,sy)[sy](e,{throwErr:!1})}else Uv(this,sy)[sy](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Uv(this,ry)[ry].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&Uv(this,ay)[ay](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Uv(this,py)[py]),window.addEventListener("offline",Uv(this,py)[py]),setTimeout(Uv(this,py)[py],3e3))}function ky(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=qv();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function By(e){const{currentUploads:t}=this.getState();return t[e]}function Fy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Ty(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Uv(this,ty)[ty],...Uv(this,ny)[ny],...Uv(this,ry)[ry]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),Uv(this,vy)[vy](e),t}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),o=r.filter(e=>!e.error),i=r.filter(e=>e.error);await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Uv(this,vy)[vy](e)),null==i&&this.log("Not setting result for an upload that has been removed: "+e),i}my.VERSION="2.1.3";var _y=my,Py=o((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(E)}function E(){for(var e;E.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function D(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,x,E=r&&r.__k||f,D=E.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=E[d])||h&&g.key==h.key&&g.type===h.type)E[d]=void 0;else for(p=0;p<D;p++){if((h=E[p])&&g.key==h.key&&g.type===h.type){E[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,g),x.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=S(g,s,e):s=C(e,g,h,E,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=D;d--;)null!=E[d]&&("function"==typeof n.type&&null!=E[d].__e&&E[d].__e==n.__d&&(n.__d=b(r,d+1)),j(E[d],E[d]));if(x)for(d=0;d<x.length;d++)P(x[d],x[++d],x[++d])}function S(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):C(n,r,r,o,r.__e,t));return t}function C(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,x,E,S,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof C){if(w=t.props,x=(c=C.contextType)&&o[c.__c],E=c?x?x.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in C&&C.prototype.render?t.__c=f=new C(w,E):(t.__c=f=new m(w,E),f.constructor=C,f.render=N),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=E,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=C.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,C.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==C.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==C.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,E),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,E)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,E),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=E,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),S=null!=c&&c.type===y&&null==c.key?c.props.children:c,D(e,Array.isArray(S)?S:[S],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function T(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function _(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,D(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),jy=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new bv([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Ny(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Iy=0;const{render:Ly}=Py;var Ry=function(e){return"__private_"+Iy+++"_"+e}("updateUI");class My extends jy{constructor(){super(...arguments),Object.defineProperty(this,Ry,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Ny(this,Ry)[Ry]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}(e=>{this.uppy.getPlugin(this.id)&&(Ly(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Ly(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof My)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins(e=>{if(e instanceof t)return o=e,!1})}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing "+n);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Ny(this,Ry))[Ry])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var zy=My;const{debugLogger:Hy}=Mv;var $y=_y,Vy=_y,Uy=zy,Wy=jy,Gy=Hy;$y.Uppy=Vy,$y.UIPlugin=Uy,$y.BasePlugin=Wy,$y.debugLogger=Gy;class qy extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var Ky=qy,Yy=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new Ky(e)})};class Xy extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Zy,Jy,Qy,em,tm,nm=Xy;function rm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var om=0;function im(e){return"__private_"+om+++"_"+e}async function am(e){if(401===e.status)throw new nm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var um=(Jy=im("getPostResponseFunc"),Qy=im("getUrl"),em=im("errorHandler"),tm=Zy=class e{constructor(e,t){Object.defineProperty(this,em,{value:lm}),Object.defineProperty(this,Qy,{value:sm}),Object.defineProperty(this,Jy,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(rm(this,Qy)[Qy](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header "+e),delete n[e])}),n})}get(e,t){return this.preflightAndHeaders(e).then(t=>Yy(rm(this,Qy)[Qy](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"})).then(rm(this,Jy)[Jy](t)).then(am).catch(rm(this,em)[em]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then(n=>Yy(rm(this,Qy)[Qy](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})).then(rm(this,Jy)[Jy](n)).then(am).catch(rm(this,em)[em](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then(n=>Yy(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})).then(rm(this,Jy)[Jy](n)).then(am).catch(rm(this,em)[em](r,e))}},Zy.VERSION="2.0.4",Zy.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+Zy.VERSION},tm);function sm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function lm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${rm(this,Qy)[Qy](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var cm,fm,dm,pm,hm,gm={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})};let vm,ym;function mm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bm=0;function wm(e){return"__private_"+bm+++"_"+e}var xm,Em,Dm=(cm=wm("queued"),fm=wm("emitter"),dm=wm("isOpen"),pm=wm("socket"),hm=wm("handleMessage"),vm=Symbol.for("uppy test: getSocket"),ym=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,cm,{writable:!0,value:[]}),Object.defineProperty(this,fm,{writable:!0,value:xv()}),Object.defineProperty(this,dm,{writable:!0,value:!1}),Object.defineProperty(this,pm,{writable:!0,value:void 0}),Object.defineProperty(this,hm,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return mm(this,dm)[dm]}[vm](){return mm(this,pm)[pm]}[ym](){return mm(this,cm)[cm]}open(){mm(this,pm)[pm]=new WebSocket(this.opts.target),mm(this,pm)[pm].onopen=()=>{for(mm(this,dm)[dm]=!0;mm(this,cm)[cm].length>0&&mm(this,dm)[dm];){const e=mm(this,cm)[cm].shift();this.send(e.action,e.payload)}},mm(this,pm)[pm].onclose=()=>{mm(this,dm)[dm]=!1},mm(this,pm)[pm].onmessage=mm(this,hm)[hm]}close(){var e;null==(e=mm(this,pm)[pm])||e.close()}send(e,t){mm(this,dm)[dm]?mm(this,pm)[pm].send(JSON.stringify({action:e,payload:t})):mm(this,cm)[cm].push({action:e,payload:t})}on(e,t){mm(this,fm)[fm].on(e,t)}emit(e,t){mm(this,fm)[fm].emit(e,t)}once(e,t){mm(this,fm)[fm].once(e,t)}}),Sm={RequestClient:um,Provider:class extends um{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken "+e,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(this.id+"/logout").then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||gm}},SearchProvider:class extends um{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?"&"+t:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:Dm},Cm=Ch((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log("Upload progress: "+r),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Am(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Om=0;function km(e){return"__private_"+Om+++"_"+e}var Bm=(xm=km("emitter"),Em=km("events"),class{constructor(e){Object.defineProperty(this,xm,{writable:!0,value:void 0}),Object.defineProperty(this,Em,{writable:!0,value:[]}),Am(this,xm)[xm]=e}on(e,t){return Am(this,Em)[Em].push([e,t]),Am(this,xm)[xm].on(e,t)}remove(){for(const[e,t]of Am(this,Em)[Em].splice(0))Am(this,xm)[xm].off(e,t)}});function Fm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tm=0;function _m(e){return"__private_"+Tm+++"_"+e}var Pm=_m("aliveTimer"),jm=_m("isDone"),Nm=_m("onTimedOut"),Im=_m("timeout"),Lm=class{constructor(e,t){Object.defineProperty(this,Pm,{writable:!0,value:void 0}),Object.defineProperty(this,jm,{writable:!0,value:!1}),Object.defineProperty(this,Nm,{writable:!0,value:void 0}),Object.defineProperty(this,Im,{writable:!0,value:void 0}),Fm(this,Im)[Im]=e,Fm(this,Nm)[Nm]=t}progress(){Fm(this,jm)[jm]||Fm(this,Im)[Im]>0&&(clearTimeout(Fm(this,Pm)[Pm]),Fm(this,Pm)[Pm]=setTimeout(Fm(this,Nm)[Nm],Fm(this,Im)[Im]))}done(){Fm(this,jm)[jm]||(clearTimeout(Fm(this,Pm)[Pm]),Fm(this,Pm)[Pm]=null,Fm(this,jm)[jm]=!0)}};function Rm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mm=0;function zm(e){return"__private_"+Mm+++"_"+e}function Hm(){return new Error("Cancelled")}var $m=zm("activeRequests"),Vm=zm("queuedHandlers"),Um=zm("call"),Wm=zm("queueNext"),Gm=zm("next"),qm=zm("queue"),Km=zm("dequeue");function Ym(e){Rm(this,$m)[$m]+=1;let t,n=!1;try{t=e()}catch(e){throw Rm(this,$m)[$m]-=1,e}return{abort:()=>{n||(n=!0,Rm(this,$m)[$m]-=1,t(),Rm(this,Wm)[Wm]())},done:()=>{n||(n=!0,Rm(this,$m)[$m]-=1,Rm(this,Wm)[Wm]())}}}function Xm(){queueMicrotask(()=>Rm(this,Gm)[Gm]())}function Zm(){if(Rm(this,$m)[$m]>=this.limit)return;if(0===Rm(this,Vm)[Vm].length)return;const e=Rm(this,Vm)[Vm].shift(),t=Rm(this,Um)[Um](e.fn);e.abort=t.abort,e.done=t.done}function Jm(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Rm(this,Km)[Km](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Rm(this,Vm)[Vm].findIndex(e=>n.priority>e.priority);return-1===r?Rm(this,Vm)[Vm].push(n):Rm(this,Vm)[Vm].splice(r,0,n),n}function Qm(e){const t=Rm(this,Vm)[Vm].indexOf(e);-1!==t&&Rm(this,Vm)[Vm].splice(t,1)}var eb,tb,nb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Km,{value:Qm}),Object.defineProperty(this,qm,{value:Jm}),Object.defineProperty(this,Gm,{value:Zm}),Object.defineProperty(this,Wm,{value:Xm}),Object.defineProperty(this,Um,{value:Ym}),Object.defineProperty(this,$m,{writable:!0,value:0}),Object.defineProperty(this,Vm,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Rm(this,$m)[$m]<this.limit?Rm(this,Um)[Um](e):Rm(this,qm)[qm](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((r,i)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?i(t):(a.done(),r(e))},e=>{t?i(t):(a.done(),i(e))}),()=>{t=Hm()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},rb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},ob={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:ib}=Hv,{Provider:ab,RequestClient:ub,Socket:sb}=Sm,{RateLimitedQueue:lb,internalRateLimitedQueue:cb}=nb;function fb(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),rb(e)?(n=new Ky(n,e),n):(n.request=e,n)}function db(e){return e.data.slice(0,e.data.size,e.meta.type)}var pb=(tb=eb=class extends jy{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=ob;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return rb(t)&&(n=new Ky(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),cb in this.opts?this.requests=this.opts[cb]:this.requests=new lb(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=db(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(e=>{const t=this.getOptions(e),r=db(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Bm(this.uppy);const a=new Lm(r.timeout,()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)}),u=ib();i.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${u} started`)}),i.upload.addEventListener("progress",t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})}),i.addEventListener("load",o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=fb(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)}),i.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=fb(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)}),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run(()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach(e=>{i.setRequestHeader(e,t.headers[e])}),i.send(o),()=>{a.done(),i.abort()}});this.onFileRemove(e.id,()=>{s.abort(),n(new Error("File removed"))}),this.onCancelAll(e.id,()=>{s.abort(),n(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(t=>{o[t]=e.meta[t]}),new(e.remote.providerOptions.provider?ab:ub)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new sb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Bm(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),this.onRetryAll(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),u.on("progress",t=>Cm(this,t,e)),u.on("success",r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),u.on("error",n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)});const s=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(t=>{this.uppy.emit("upload-error",e,t),r(t)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Lm(this.opts.timeout,()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)}),l=t=>{e.forEach(e=>{this.uppy.emit("upload-error",e,t)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",t=>{s.progress(),t.lengthComputable&&e.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),u.addEventListener("load",r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach(e=>{this.uppy.emit("upload-success",e,o)}),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)}),u.addEventListener("error",()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{u.setRequestHeader(e,this.opts.headers[e])}),u.send(a),e.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(e){return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map(e=>e.then(r,o))).then(()=>({successful:t,failed:n}))}(e.map((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}))}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[cb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(t.some(e=>e.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},eb.VERSION="2.0.6",tb),hb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function gb(e){var t={exports:{}};return e(t,t.exports),t.exports}var vb,yb,mb=function(e){return e&&e.Math==Math&&e},bb=mb("object"==typeof globalThis&&globalThis)||mb("object"==typeof window&&window)||mb("object"==typeof self&&self)||mb("object"==typeof hb&&hb)||function(){return this}()||Function("return this")(),wb=Object.defineProperty,xb=function(e,t){try{wb(bb,e,{value:t,configurable:!0,writable:!0})}catch(n){bb[e]=t}return t},Eb=bb["__core-js_shared__"]||xb("__core-js_shared__",{}),Db=gb((function(e){(e.exports=function(e,t){return Eb[e]||(Eb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Sb=Function.prototype,Cb=Sb.bind,Ab=Sb.call,Ob=Cb&&Cb.bind(Ab),kb=Cb?function(e){return e&&Ob(Ab,e)}:function(e){return e&&function(){return Ab.apply(e,arguments)}},Bb=bb.TypeError,Fb=function(e){if(null==e)throw Bb("Can't call method on "+e);return e},Tb=bb.Object,_b=function(e){return Tb(Fb(e))},Pb=kb({}.hasOwnProperty),jb=Object.hasOwn||function(e,t){return Pb(_b(e),t)},Nb=0,Ib=Math.random(),Lb=kb(1..toString),Rb=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Lb(++Nb+Ib,36)},Mb=function(e){return"function"==typeof e},zb=function(e){return Mb(e)?e:void 0},Hb=function(e,t){return arguments.length<2?zb(bb[e]):bb[e]&&bb[e][t]},$b=Hb("navigator","userAgent")||"",Vb=bb.process,Ub=bb.Deno,Wb=Vb&&Vb.versions||Ub&&Ub.version,Gb=Wb&&Wb.v8;Gb&&(yb=(vb=Gb.split("."))[0]>0&&vb[0]<4?1:+(vb[0]+vb[1])),!yb&&$b&&(!(vb=$b.match(/Edge\/(\d+)/))||vb[1]>=74)&&(vb=$b.match(/Chrome\/(\d+)/))&&(yb=+vb[1]);var qb=yb,Kb=function(e){try{return!!e()}catch(e){return!0}},Yb=!!Object.getOwnPropertySymbols&&!Kb((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qb&&qb<41})),Xb=Yb&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zb=Db("wks"),Jb=bb.Symbol,Qb=Jb&&Jb.for,ew=Xb?Jb:Jb&&Jb.withoutSetter||Rb,tw=function(e){if(!jb(Zb,e)||!Yb&&"string"!=typeof Zb[e]){var t="Symbol."+e;Yb&&jb(Jb,e)?Zb[e]=Jb[e]:Zb[e]=Xb&&Qb?Qb(t):ew(t)}return Zb[e]},nw={};nw[tw("toStringTag")]="z";var rw="[object z]"===String(nw),ow=!Kb((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),iw=function(e){return"object"==typeof e?null!==e:Mb(e)},aw=bb.document,uw=iw(aw)&&iw(aw.createElement),sw=function(e){return uw?aw.createElement(e):{}},lw=!ow&&!Kb((function(){return 7!=Object.defineProperty(sw("div"),"a",{get:function(){return 7}}).a})),cw=bb.String,fw=bb.TypeError,dw=function(e){if(iw(e))return e;throw fw(cw(e)+" is not an object")},pw=Function.prototype.call,hw=pw.bind?pw.bind(pw):function(){return pw.apply(pw,arguments)},gw=kb({}.isPrototypeOf),vw=bb.Object,yw=Xb?function(e){return"symbol"==typeof e}:function(e){var t=Hb("Symbol");return Mb(t)&&gw(t.prototype,vw(e))},mw=bb.String,bw=function(e){try{return mw(e)}catch(e){return"Object"}},ww=bb.TypeError,xw=function(e){if(Mb(e))return e;throw ww(bw(e)+" is not a function")},Ew=function(e,t){var n=e[t];return null==n?void 0:xw(n)},Dw=bb.TypeError,Sw=bb.TypeError,Cw=tw("toPrimitive"),Aw=function(e){var t=function(e,t){if(!iw(e)||yw(e))return e;var n,r=Ew(e,Cw);if(r){if(void 0===t&&(t="default"),n=hw(r,e,t),!iw(n)||yw(n))return n;throw Sw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Mb(n=e.toString)&&!iw(r=hw(n,e)))return r;if(Mb(n=e.valueOf)&&!iw(r=hw(n,e)))return r;if("string"!==t&&Mb(n=e.toString)&&!iw(r=hw(n,e)))return r;throw Dw("Can't convert object to primitive value")}(e,t)}(e,"string");return yw(t)?t:t+""},Ow=bb.TypeError,kw=Object.defineProperty,Bw={f:ow?kw:function(e,t,n){if(dw(e),t=Aw(t),dw(n),lw)try{return kw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ow("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Fw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Tw=ow?function(e,t,n){return Bw.f(e,t,Fw(1,n))}:function(e,t,n){return e[t]=n,e},_w=kb(Function.toString);Mb(Eb.inspectSource)||(Eb.inspectSource=function(e){return _w(e)});var Pw,jw,Nw,Iw=Eb.inspectSource,Lw=bb.WeakMap,Rw=Mb(Lw)&&/native code/.test(Iw(Lw)),Mw=Db("keys"),zw=function(e){return Mw[e]||(Mw[e]=Rb(e))},Hw={},$w=bb.TypeError,Vw=bb.WeakMap;if(Rw||Eb.state){var Uw=Eb.state||(Eb.state=new Vw),Ww=kb(Uw.get),Gw=kb(Uw.has),qw=kb(Uw.set);Pw=function(e,t){if(Gw(Uw,e))throw new $w("Object already initialized");return t.facade=e,qw(Uw,e,t),t},jw=function(e){return Ww(Uw,e)||{}},Nw=function(e){return Gw(Uw,e)}}else{var Kw=zw("state");Hw[Kw]=!0,Pw=function(e,t){if(jb(e,Kw))throw new $w("Object already initialized");return t.facade=e,Tw(e,Kw,t),t},jw=function(e){return jb(e,Kw)?e[Kw]:{}},Nw=function(e){return jb(e,Kw)}}var Yw={set:Pw,get:jw,has:Nw,enforce:function(e){return Nw(e)?jw(e):Pw(e,{})},getterFor:function(e){return function(t){var n;if(!iw(t)||(n=jw(t)).type!==e)throw $w("Incompatible receiver, "+e+" required");return n}}},Xw=Function.prototype,Zw=ow&&Object.getOwnPropertyDescriptor,Jw=jb(Xw,"name"),Qw={EXISTS:Jw,PROPER:Jw&&"something"===function(){}.name,CONFIGURABLE:Jw&&(!ow||ow&&Zw(Xw,"name").configurable)},ex=gb((function(e){var t=Qw.CONFIGURABLE,n=Yw.get,r=Yw.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Mb(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jb(i,"name")||t&&i.name!==f)&&Tw(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==bb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Tw(e,n,i)):l?e[n]=i:xb(n,i)})(Function.prototype,"toString",(function(){return Mb(this)&&n(this).source||Iw(this)}))})),tx=kb({}.toString),nx=kb("".slice),rx=function(e){return nx(tx(e),8,-1)},ox=tw("toStringTag"),ix=bb.Object,ax="Arguments"==rx(function(){return arguments}()),ux=rw?rx:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ix(e),ox))?n:ax?rx(t):"Object"==(r=rx(t))&&Mb(t.callee)?"Arguments":r},sx=rw?{}.toString:function(){return"[object "+ux(this)+"]"};rw||ex(Object.prototype,"toString",sx,{unsafe:!0});var lx={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},cx=sw("span").classList,fx=cx&&cx.constructor&&cx.constructor.prototype,dx=fx===Object.prototype?void 0:fx,px=kb(kb.bind),hx=function(e,t){return xw(e),void 0===t?e:px?px(e,t):function(){return e.apply(t,arguments)}},gx=bb.Object,vx=kb("".split),yx=Kb((function(){return!gx("z").propertyIsEnumerable(0)}))?function(e){return"String"==rx(e)?vx(e,""):gx(e)}:gx,mx=Math.ceil,bx=Math.floor,wx=function(e){var t=+e;return t!=t||0===t?0:(t>0?bx:mx)(t)},xx=Math.min,Ex=function(e){return e>0?xx(wx(e),9007199254740991):0},Dx=function(e){return Ex(e.length)},Sx=Array.isArray||function(e){return"Array"==rx(e)},Cx=function(){},Ax=[],Ox=Hb("Reflect","construct"),kx=/^\s*(?:class|function)\b/,Bx=kb(kx.exec),Fx=!kx.exec(Cx),Tx=function(e){if(!Mb(e))return!1;try{return Ox(Cx,Ax,e),!0}catch(e){return!1}},_x=!Ox||Kb((function(){var e;return Tx(Tx.call)||!Tx(Object)||!Tx((function(){e=!0}))||e}))?function(e){if(!Mb(e))return!1;switch(ux(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fx||!!Bx(kx,Iw(e))}:Tx,Px=tw("species"),jx=bb.Array,Nx=function(e,t){return new(function(e){var t;return Sx(e)&&(t=e.constructor,(_x(t)&&(t===jx||Sx(t.prototype))||iw(t)&&null===(t=t[Px]))&&(t=void 0)),void 0===t?jx:t}(e))(0===t?0:t)},Ix=kb([].push),Lx=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=_b(s),g=yx(h),v=hx(l,c),y=Dx(g),m=0,b=f||Nx,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ix(w,d)}else switch(e){case 4:return!1;case 7:Ix(w,d)}return i?-1:r||o?o:w}},Rx={forEach:Lx(0),map:Lx(1),filter:Lx(2),some:Lx(3),every:Lx(4),find:Lx(5),findIndex:Lx(6),filterReject:Lx(7)},Mx=function(e,t){var n=[][e];return!!n&&Kb((function(){n.call(null,t||function(){throw 1},1)}))},zx=Rx.forEach,Hx=Mx("forEach")?[].forEach:function(e){return zx(this,e,arguments.length>1?arguments[1]:void 0)},$x=function(e){if(e&&e.forEach!==Hx)try{Tw(e,"forEach",Hx)}catch(t){e.forEach=Hx}};for(var Vx in lx)lx[Vx]&&$x(bb[Vx]&&bb[Vx].prototype);$x(dx);var Ux={}.propertyIsEnumerable,Wx=Object.getOwnPropertyDescriptor,Gx={f:Wx&&!Ux.call({1:2},1)?function(e){var t=Wx(this,e);return!!t&&t.enumerable}:Ux},qx=function(e){return yx(Fb(e))},Kx=Object.getOwnPropertyDescriptor,Yx={f:ow?Kx:function(e,t){if(e=qx(e),t=Aw(t),lw)try{return Kx(e,t)}catch(e){}if(jb(e,t))return Fw(!hw(Gx.f,e,t),e[t])}},Xx=Math.max,Zx=Math.min,Jx=function(e,t){var n=wx(e);return n<0?Xx(n+t,0):Zx(n,t)},Qx=function(e){return function(t,n,r){var o,i=qx(t),a=Dx(i),u=Jx(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},eE={includes:Qx(!0),indexOf:Qx(!1)},tE=eE.indexOf,nE=kb([].push),rE=function(e,t){var n,r=qx(e),o=0,i=[];for(n in r)!jb(Hw,n)&&jb(r,n)&&nE(i,n);for(;t.length>o;)jb(r,n=t[o++])&&(~tE(i,n)||nE(i,n));return i},oE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iE=oE.concat("length","prototype"),aE={f:Object.getOwnPropertyNames||function(e){return rE(e,iE)}},uE={f:Object.getOwnPropertySymbols},sE=kb([].concat),lE=Hb("Reflect","ownKeys")||function(e){var t=aE.f(dw(e)),n=uE.f;return n?sE(t,n(e)):t},cE=function(e,t){for(var n=lE(t),r=Bw.f,o=Yx.f,i=0;i<n.length;i++){var a=n[i];jb(e,a)||r(e,a,o(t,a))}},fE=/#|\.prototype\./,dE=function(e,t){var n=hE[pE(e)];return n==vE||n!=gE&&(Mb(t)?Kb(t):!!t)},pE=dE.normalize=function(e){return String(e).replace(fE,".").toLowerCase()},hE=dE.data={},gE=dE.NATIVE="N",vE=dE.POLYFILL="P",yE=dE,mE=Yx.f,bE=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?bb:l?bb[u]||xb(u,{}):(bb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=mE(n,r))&&a.value:n[r],!yE(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;cE(i,o)}(e.sham||o&&o.sham)&&Tw(i,"sham",!0),ex(n,r,i,e)}},wE=Object.keys||function(e){return rE(e,oE)},xE=Kb((function(){wE(1)}));function EE(e){return"[object Object]"===Object.prototype.toString.call(e)}bE({target:"Object",stat:!0,forced:xE},{keys:function(e){return wE(_b(e))}});var DE={isHistory(e){return!1!==EE(t=e)&&(void 0===(n=t.constructor)||!1!==EE(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||xf.isOperationList(e.redos[0]))&&(0===e.undos.length||xf.isOperationList(e.undos[0]));var t,n,r}},SE=new WeakMap,CE=new WeakMap,AE={isHistoryEditor:e=>DE.isHistory(e.history)&&pf.isEditor(e),isMerging:e=>CE.get(e),isSaving:e=>SE.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=AE.isMerging(e);CE.set(e,!1),t(),CE.set(e,n)},withoutSaving(e,t){var n=AE.isSaving(e);SE.set(e,!1),t(),SE.set(e,n)}},OE=bb.String,kE=function(e){if("Symbol"===ux(e))throw TypeError("Cannot convert a Symbol value to a string");return OE(e)},BE=function(){var e=dw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},FE=Qw.PROPER,TE=RegExp.prototype,_E=TE.toString,PE=kb(BE),jE=Kb((function(){return"/a/b"!=_E.call({source:"a",flags:"b"})})),NE=FE&&"toString"!=_E.name;(jE||NE)&&ex(RegExp.prototype,"toString",(function(){var e=dw(this),t=kE(e.source),n=e.flags;return"/"+t+"/"+kE(void 0===n&&gw(TE,e)&&!("flags"in TE)?PE(e):n)}),{unsafe:!0});var IE,LE=ow?Object.defineProperties:function(e,t){dw(e);for(var n,r=qx(t),o=wE(t),i=o.length,a=0;i>a;)Bw.f(e,n=o[a++],r[n]);return e},RE=Hb("document","documentElement"),ME=zw("IE_PROTO"),zE=function(){},HE=function(e){return"<script>"+e+"<\/script>"},$E=function(e){e.write(HE("")),e.close();var t=e.parentWindow.Object;return e=null,t},VE=function(){try{IE=new ActiveXObject("htmlfile")}catch(e){}var e,t;VE="undefined"!=typeof document?document.domain&&IE?$E(IE):((t=sw("iframe")).style.display="none",RE.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(HE("document.F=Object")),e.close(),e.F):$E(IE);for(var n=oE.length;n--;)delete VE.prototype[oE[n]];return VE()};Hw[ME]=!0;var UE=Object.create||function(e,t){var n;return null!==e?(zE.prototype=dw(e),n=new zE,zE.prototype=null,n[ME]=e):n=VE(),void 0===t?n:LE(n,t)},WE=tw("unscopables"),GE=Array.prototype;null==GE[WE]&&Bw.f(GE,WE,{configurable:!0,value:UE(null)});var qE=function(e){GE[WE][e]=!0},KE=eE.includes;bE({target:"Array",proto:!0},{includes:function(e){return KE(this,e,arguments.length>1?arguments[1]:void 0)}}),qE("includes");var YE=tw("match"),XE=function(e){var t;return iw(e)&&(void 0!==(t=e[YE])?!!t:"RegExp"==rx(e))},ZE=bb.TypeError,JE=function(e){if(XE(e))throw ZE("The method doesn't accept regular expressions");return e},QE=tw("match"),eD=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[QE]=!1,"/./"[e](t)}catch(e){}}return!1},tD=kb("".indexOf);bE({target:"String",proto:!0,forced:!eD("includes")},{includes:function(e){return!!~tD(kE(Fb(this)),kE(JE(e)),arguments.length>1?arguments[1]:void 0)}});var nD=/"/g,rD=kb("".replace);bE({target:"String",proto:!0,forced:Kb((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=kE(Fb(this)),r="<a",(r+=' name="'+rD(kE(t),nD,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var oD=function(e,t,n){var r,o;dw(e);try{if(!(r=Ew(e,"return"))){if("throw"===t)throw n;return n}r=hw(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return dw(r),n},iD=function(e,t,n,r){try{return r?t(dw(n)[0],n[1]):t(n)}catch(t){oD(e,"throw",t)}},aD={},uD=tw("iterator"),sD=Array.prototype,lD=function(e){return void 0!==e&&(aD.Array===e||sD[uD]===e)},cD=function(e,t,n){var r=Aw(t);r in e?Bw.f(e,r,Fw(0,n)):e[r]=n},fD=tw("iterator"),dD=function(e){if(null!=e)return Ew(e,fD)||Ew(e,"@@iterator")||aD[ux(e)]},pD=bb.TypeError,hD=function(e,t){var n=arguments.length<2?dD(e):t;if(xw(n))return dw(hw(n,e));throw pD(bw(e)+" is not iterable")},gD=bb.Array,vD=tw("iterator"),yD=!1;try{var mD=0,bD={next:function(){return{done:!!mD++}},return:function(){yD=!0}};bD[vD]=function(){return this},Array.from(bD,(function(){throw 2}))}catch($A){}var wD=function(e,t){if(!t&&!yD)return!1;var n=!1;try{var r={};r[vD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},xD=!wD((function(e){Array.from(e)}));bE({target:"Array",stat:!0,forced:xD},{from:function(e){var t=_b(e),n=_x(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=hx(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=dD(t),p=0;if(!d||this==gD&&lD(d))for(a=Dx(t),u=n?new this(a):gD(a);a>p;p++)f=i?o(t[p],p):t[p],cD(u,p,f);else for(c=(l=hD(t,d)).next,u=n?new this:[];!(s=hw(c,l)).done;p++)f=i?iD(l,o,[s.value,p],!0):s.value,cD(u,p,f);return u.length=p,u}});var ED,DD,SD,CD=kb("".charAt),AD=kb("".charCodeAt),OD=kb("".slice),kD=function(e){return function(t,n){var r,o,i=kE(Fb(t)),a=wx(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=AD(i,a))<55296||r>56319||a+1===u||(o=AD(i,a+1))<56320||o>57343?e?CD(i,a):r:e?OD(i,a,a+2):o-56320+(r-55296<<10)+65536}},BD={codeAt:kD(!1),charAt:kD(!0)},FD=!Kb((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),TD=zw("IE_PROTO"),_D=bb.Object,PD=_D.prototype,jD=FD?_D.getPrototypeOf:function(e){var t=_b(e);if(jb(t,TD))return t[TD];var n=t.constructor;return Mb(n)&&t instanceof n?n.prototype:t instanceof _D?PD:null},ND=tw("iterator"),ID=!1;[].keys&&("next"in(SD=[].keys())?(DD=jD(jD(SD)))!==Object.prototype&&(ED=DD):ID=!0),(null==ED||Kb((function(){var e={};return ED[ND].call(e)!==e})))&&(ED={}),Mb(ED[ND])||ex(ED,ND,(function(){return this}));var LD={IteratorPrototype:ED,BUGGY_SAFARI_ITERATORS:ID},RD=Bw.f,MD=tw("toStringTag"),zD=function(e,t,n){e&&!jb(e=n?e:e.prototype,MD)&&RD(e,MD,{configurable:!0,value:t})},HD=LD.IteratorPrototype,$D=function(){return this},VD=bb.String,UD=bb.TypeError,WD=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=kb(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return dw(n),function(e){if("object"==typeof e||Mb(e))return e;throw UD("Can't set "+VD(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),GD=Qw.PROPER,qD=Qw.CONFIGURABLE,KD=LD.IteratorPrototype,YD=LD.BUGGY_SAFARI_ITERATORS,XD=tw("iterator"),ZD=function(){return this},JD=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=UE(HD,{next:Fw(1,n)}),zD(e,o,!1),aD[o]=$D}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!YD&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[XD]||p["@@iterator"]||o&&p[o],g=!YD&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=jD(v.call(new e)))!==Object.prototype&&u.next&&(jD(u)!==KD&&(WD?WD(u,KD):Mb(u[XD])||ex(u,XD,ZD)),zD(u,f,!0)),GD&&"values"==o&&h&&"values"!==h.name&&(qD?Tw(p,"name","values"):(d=!0,g=function(){return hw(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(YD||d||!(l in p))&&ex(p,l,s[l]);else bE({target:t,proto:!0,forced:YD||d},s);return p[XD]!==g&&ex(p,XD,g,{name:o}),aD[t]=g,s},QD=BD.charAt,eS=Yw.set,tS=Yw.getterFor("String Iterator");JD(String,"String",(function(e){eS(this,{type:"String Iterator",string:kE(e),index:0})}),(function(){var e,t=tS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=QD(n,r),t.index+=e.length,{value:e,done:!1})}));var nS,rS=Yx.f,oS=kb("".endsWith),iS=kb("".slice),aS=Math.min,uS=eD("endsWith"),sS=!(uS||(nS=rS(String.prototype,"endsWith"),!nS||nS.writable));bE({target:"String",proto:!0,forced:!sS&&!uS},{endsWith:function(e){var t=kE(Fb(this));JE(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:aS(Ex(n),r),i=kE(e);return oS?oS(t,i,o):iS(t,o-i.length,o)===i}});var lS=kb([].join),cS=yx!=Object,fS=Mx("join",",");bE({target:"Array",proto:!0,forced:cS||!fS},{join:function(e){return lS(qx(this),void 0===e?",":e)}});var dS=tw("species"),pS=function(e){return qb>=51||!Kb((function(){var t=[];return(t.constructor={})[dS]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},hS=Rx.map,gS=pS("map");bE({target:"Array",proto:!0,forced:!gS},{map:function(e){return hS(this,e,arguments.length>1?arguments[1]:void 0)}});var vS=bb.RegExp,yS=Kb((function(){var e=vS("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),mS=yS||Kb((function(){return!vS("a","y").sticky})),bS={BROKEN_CARET:yS||Kb((function(){var e=vS("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:mS,UNSUPPORTED_Y:yS},wS=bb.RegExp,xS=Kb((function(){var e=wS(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ES=bb.RegExp,DS=Kb((function(){var e=ES("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),SS=Yw.get,CS=Db("native-string-replace",String.prototype.replace),AS=RegExp.prototype.exec,OS=AS,kS=kb("".charAt),BS=kb("".indexOf),FS=kb("".replace),TS=kb("".slice),_S=function(){var e=/a/,t=/b*/g;return hw(AS,e,"a"),hw(AS,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),PS=bS.BROKEN_CARET,jS=void 0!==/()??/.exec("")[1];(_S||jS||PS||xS||DS)&&(OS=function(e){var t,n,r,o,i,a,u,s=this,l=SS(s),c=kE(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=hw(OS,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=PS&&s.sticky,h=hw(BE,s),g=s.source,v=0,y=c;if(p&&(h=FS(h,"y",""),-1===BS(h,"g")&&(h+="g"),y=TS(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==kS(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),jS&&(n=new RegExp("^"+g+"$(?!\\s)",h)),_S&&(r=s.lastIndex),o=hw(AS,p?n:s,y),p?o?(o.input=TS(o.input,v),o[0]=TS(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_S&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),jS&&o&&o.length>1&&hw(CS,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=UE(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var NS=OS;bE({target:"RegExp",proto:!0,forced:/./.exec!==NS},{exec:NS});var IS=Function.prototype,LS=IS.apply,RS=IS.bind,MS=IS.call,zS="object"==typeof Reflect&&Reflect.apply||(RS?MS.bind(LS):function(){return MS.apply(LS,arguments)}),HS=tw("species"),$S=RegExp.prototype,VS=function(e,t,n,r){var o=tw(e),i=!Kb((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Kb((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[HS]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=kb(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=kb(e),s=t.exec;return s===NS||s===$S.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ex(String.prototype,e,s[0]),ex($S,o,s[1])}r&&Tw($S[o],"sham",!0)},US=BD.charAt,WS=function(e,t,n){return t+(n?US(e,t).length:1)},GS=Math.floor,qS=kb("".charAt),KS=kb("".replace),YS=kb("".slice),XS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ZS=/\$([$&'`]|\d{1,2})/g,JS=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=ZS;return void 0!==o&&(o=_b(o),s=XS),KS(i,s,(function(i,s){var l;switch(qS(s,0)){case"$":return"$";case"&":return e;case"`":return YS(t,0,n);case"'":return YS(t,a);case"<":l=o[YS(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=GS(c/10);return 0===f?i:f<=u?void 0===r[f-1]?qS(s,1):r[f-1]+qS(s,1):i}l=r[c-1]}return void 0===l?"":l}))},QS=bb.TypeError,eC=function(e,t){var n=e.exec;if(Mb(n)){var r=hw(n,e,t);return null!==r&&dw(r),r}if("RegExp"===rx(e))return hw(NS,e,t);throw QS("RegExp#exec called on incompatible receiver")},tC=tw("replace"),nC=Math.max,rC=Math.min,oC=kb([].concat),iC=kb([].push),aC=kb("".indexOf),uC=kb("".slice),sC="$0"==="a".replace(/./,"$0"),lC=!!/./[tC]&&""===/./[tC]("a","$0");VS("replace",(function(e,t,n){var r=lC?"$":"$0";return[function(e,n){var r=Fb(this),o=null==e?void 0:Ew(e,tC);return o?hw(o,e,r,n):hw(t,kE(r),e,n)},function(e,o){var i=dw(this),a=kE(e);if("string"==typeof o&&-1===aC(o,r)&&-1===aC(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Mb(o);s||(o=kE(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=eC(i,a);if(null===d)break;if(iC(f,d),!l)break;""===kE(d[0])&&(i.lastIndex=WS(a,Ex(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=kE((d=f[v])[0]),m=nC(rC(wx(d.index),a.length),0),b=[],w=1;w<d.length;w++)iC(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=oC([y],b,m,a);void 0!==x&&iC(E,x);var D=kE(zS(o,void 0,E))}else D=JS(y,a,m,b,x,o);m>=g&&(h+=uC(a,g,m)+D,g=m+y.length)}return h+uC(a,g)}]}),!!Kb((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!sC||lC);var cC=function(e,t){return(cC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function fC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}cC(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var dC=function(){return(dC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function pC(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function hC(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function gC(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var vC=0,yC=function(){this.id=""+vC++},mC=Yw.set,bC=Yw.getterFor("Array Iterator"),wC=JD(Array,"Array",(function(e,t){mC(this,{type:"Array Iterator",target:qx(e),index:0,kind:t})}),(function(){var e=bC(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");aD.Arguments=aD.Array,qE("keys"),qE("values"),qE("entries");var xC=function(e,t,n){for(var r in t)ex(e,r,t[r],n);return e},EC=bb.Array,DC=Math.max,SC=function(e,t,n){for(var r=Dx(e),o=Jx(t,r),i=Jx(void 0===n?r:n,r),a=EC(DC(i-o,0)),u=0;o<i;o++,u++)cD(a,u,e[o]);return a.length=u,a},CC=aE.f,AC="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],OC={f:function(e){return AC&&"Window"==rx(e)?function(e){try{return CC(e)}catch(e){return SC(AC)}}(e):CC(qx(e))}},kC=Kb((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),BC=Object.isExtensible,FC=Kb((function(){BC(1)}))||kC?function(e){return!!iw(e)&&(!kC||"ArrayBuffer"!=rx(e))&&(!BC||BC(e))}:BC,TC=!Kb((function(){return Object.isExtensible(Object.preventExtensions({}))})),_C=gb((function(e){var t=Bw.f,n=!1,r=Rb("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=aE.f,t=kb([].splice),o={};o[r]=1,e(o).length&&(aE.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},bE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:OC.f}))},fastKey:function(e,t){if(!iw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!jb(e,r)){if(!FC(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!jb(e,r)){if(!FC(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return TC&&n&&FC(e)&&!jb(e,r)&&i(e),e}};Hw[r]=!0})),PC=bb.TypeError,jC=function(e,t){this.stopped=e,this.result=t},NC=jC.prototype,IC=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=hx(t,c),g=function(e){return r&&oD(r,"normal",e),new jC(!0,e)},v=function(e){return f?(dw(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=dD(e)))throw PC(bw(e)+" is not iterable");if(lD(o)){for(i=0,a=Dx(e);a>i;i++)if((u=v(e[i]))&&gw(NC,u))return u;return new jC(!1)}r=hD(e,o)}for(s=r.next;!(l=hw(s,r)).done;){try{u=v(l.value)}catch(e){oD(r,"throw",e)}if("object"==typeof u&&u&&gw(NC,u))return u}return new jC(!1)},LC=bb.TypeError,RC=function(e,t){if(gw(t,e))return e;throw LC("Incorrect invocation")},MC=function(e,t,n){var r,o;return WD&&Mb(r=t.constructor)&&r!==n&&iw(o=r.prototype)&&o!==n.prototype&&WD(e,o),e},zC=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=bb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=kb(u[e]);ex(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!iw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!iw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!iw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(yE(e,!Mb(a)||!(o||u.forEach&&!Kb((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),_C.enable();else if(yE(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Kb((function(){f.has(1)})),h=wD((function(e){new a(e)})),g=!o&&Kb((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){RC(e,u);var n=MC(new a,e,s);return null!=t&&IC(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,bE({global:!0,forced:s!=a},l),zD(s,e),o||n.setStrong(s,e,r),s},HC=_C.getWeakData,$C=Yw.set,VC=Yw.getterFor,UC=Rx.find,WC=Rx.findIndex,GC=kb([].splice),qC=0,KC=function(e){return e.frozen||(e.frozen=new YC)},YC=function(){this.entries=[]},XC=function(e,t){return UC(e.entries,(function(e){return e[0]===t}))};YC.prototype={get:function(e){var t=XC(this,e);if(t)return t[1]},has:function(e){return!!XC(this,e)},set:function(e,t){var n=XC(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=WC(this.entries,(function(t){return t[0]===e}));return~t&&GC(this.entries,t,1),!!~t}};var ZC,JC={getConstructor:function(e,t,n,r){var o=e((function(e,o){RC(e,i),$C(e,{type:t,id:qC++,frozen:void 0}),null!=o&&IC(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=VC(t),u=function(e,t,n){var r=a(e),o=HC(dw(t),!0);return!0===o?KC(r).set(t,n):o[r.id]=n,e};return xC(i,{delete:function(e){var t=a(this);if(!iw(e))return!1;var n=HC(e);return!0===n?KC(t).delete(e):n&&jb(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!iw(e))return!1;var n=HC(e);return!0===n?KC(t).has(e):n&&jb(n,t.id)}}),xC(i,n?{get:function(e){var t=a(this);if(iw(e)){var n=HC(e);return!0===n?KC(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},QC=Yw.enforce,eA=!bb.ActiveXObject&&"ActiveXObject"in bb,tA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},nA=zC("WeakMap",tA,JC);if(Rw&&eA){ZC=JC.getConstructor(tA,"WeakMap",!0),_C.enable();var rA=nA.prototype,oA=kb(rA.delete),iA=kb(rA.has),aA=kb(rA.get),uA=kb(rA.set);xC(rA,{delete:function(e){if(iw(e)&&!FC(e)){var t=QC(this);return t.frozen||(t.frozen=new ZC),oA(this,e)||t.frozen.delete(e)}return oA(this,e)},has:function(e){if(iw(e)&&!FC(e)){var t=QC(this);return t.frozen||(t.frozen=new ZC),iA(this,e)||t.frozen.has(e)}return iA(this,e)},get:function(e){if(iw(e)&&!FC(e)){var t=QC(this);return t.frozen||(t.frozen=new ZC),iA(this,e)?aA(this,e):t.frozen.get(e)}return aA(this,e)},set:function(e,t){if(iw(e)&&!FC(e)){var n=QC(this);n.frozen||(n.frozen=new ZC),iA(this,e)?uA(this,e,t):n.frozen.set(e,t)}else uA(this,e,t);return this}})}var sA=tw("iterator"),lA=tw("toStringTag"),cA=wC.values,fA=function(e,t){if(e){if(e[sA]!==cA)try{Tw(e,sA,cA)}catch(t){e[sA]=cA}if(e[lA]||Tw(e,lA,t),lx[t])for(var n in wC)if(e[n]!==wC[n])try{Tw(e,n,wC[n])}catch(t){e[n]=wC[n]}}};for(var dA in lx)fA(bb[dA]&&bb[dA].prototype,dA);fA(dx,"DOMTokenList");var pA=new WeakMap,hA=new WeakMap,gA=new WeakMap,vA=new WeakMap,yA=new WeakMap,mA=new WeakMap,bA=new WeakMap,wA=new WeakMap,xA=new WeakMap,EA=new WeakMap,DA=new WeakMap,SA=new WeakMap,CA=new WeakMap,AA=new WeakMap,OA=new WeakMap,kA=new WeakMap,BA=new WeakMap,FA=new WeakMap,TA=new WeakMap,_A=new WeakMap,PA=new WeakMap,jA=new WeakMap,NA=new WeakMap,IA=new WeakMap,LA=new WeakMap,RA=Rx.find,MA=!0;"find"in[]&&Array(1).find((function(){MA=!1})),bE({target:"Array",proto:!0,forced:MA},{find:function(e){return RA(this,e,arguments.length>1?arguments[1]:void 0)}}),qE("find"),bE({global:!0},{globalThis:bb});const zA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Fp&&(gp.fn.css=Fp),Ip&&(gp.fn.append=Ip),vp&&(gp.fn.addClass=vp),yp&&(gp.fn.removeClass=yp),mp&&(gp.fn.hasClass=mp),Dp&&(gp.fn.on=Dp),qp&&(gp.fn.focus=qp),bp&&(gp.fn.attr=bp),wp&&(gp.fn.removeAttr=wp),kp&&(gp.fn.hide=kp),Bp&&(gp.fn.show=Bp),Op&&(gp.fn.offset=Op),Cp&&(gp.fn.width=Cp),Ap&&(gp.fn.height=Ap),Rp&&(gp.fn.parent=Rp),Mp&&(gp.fn.parents=Mp),Np&&(gp.fn.is=Np),xp&&(gp.fn.dataset=xp),Ep&&(gp.fn.val=Ep),jp&&(gp.fn.text=jp),Pp&&(gp.fn.html=Pp),Hp&&(gp.fn.children=Hp),$p&&(gp.fn.remove=$p),zp&&(gp.fn.find=zp),Tp&&(gp.fn.each=Tp),Vp&&(gp.fn.empty=Vp);var HA,$A,VA=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},UA=function(e){return WA(e)&&1===e.nodeType},WA=function(e){var t=VA(e);return!!t&&e instanceof t.Node},GA=function(e){var t=e&&e.anchorNode&&VA(e.anchorNode);return!!t&&e instanceof t.Selection},qA=function(e){return WA(e)&&3===e.nodeType},KA=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},YA=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(WA(r=i)&&8===r.nodeType||UA(i)&&0===i.childNodes.length||UA(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},XA=function(e,t,n){return hC(YA(e,t,n),1)[0]};function ZA(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||ZA(o,t)}}function JA(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==HA.ELEMENT_NODE?"":t.tagName.toLowerCase()}($A=HA||(HA={}))[$A.ELEMENT_NODE=1]="ELEMENT_NODE",$A[$A.TEXT_NODE=3]="TEXT_NODE",$A[$A.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",$A[$A.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",$A[$A.COMMENT_NODE=8]="COMMENT_NODE",$A[$A.DOCUMENT_NODE=9]="DOCUMENT_NODE",$A[$A.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",$A[$A.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var QA="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),eO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var tO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),nO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),rO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),oO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var iO=!rO&&!nO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,aO={getWindow:function(e){var t=PA.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=_A.get(t);return n||(n=new yC,_A.set(t,n)),n},setNewKey:function(e){var t=new yC;_A.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=OA.get(r);if(null==o){if(pf.isEditor(r))return n;break}var i=AA.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=aO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return OA.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=aO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[aO.findPath(e,t)[0]];return mf.get(e,n)},toDOMNode:function(e,t){var n;if(pf.isEditor(t))n=kA.get(e);else{var r=aO.findKey(e,t);n=FA.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=aO.toDOMNode(e,e);try{r=UA(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Ff.isBackward(t),i=aO.toDOMPoint(e,n),a=Ff.isCollapsed(t)?i:aO.toDOMPoint(e,r),u=aO.getWindow(e).document.createRange(),s=hC(o?a:i,2),l=s[0],c=s[1],f=hC(o?i:a,2),d=f[0],p=f[1],h=!!(UA(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(UA(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=hC(pf.node(e,t.path),1)[0],a=aO.toDOMNode(e,i);pf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=pC(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=UA(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?BA.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=aO.toSlateNode(e,t.target),u=aO.findPath(e,a);if(pf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=pf.point(e,u,{edge:l?"start":"end"}),f=l?pf.before(e,c):pf.after(e,c);if(f)return pf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return aO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((GA(t)?t.anchorNode:t.startContainer)&&(GA(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=oO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=aO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:aO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Ff.isExpanded(d)&&Ff.isForward(d)&&UA(i)&&pf.void(e,{at:d.focus,mode:"highest"})&&(d=pf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=hC(o?t:function(e){var t,n=hC(e,2),r=n[0],o=n[1];if(UA(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=hC(YA(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;UA(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=XA(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=aO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();gC(gC([],hC(ep(v.querySelectorAll("[data-slate-zero-width]")))),hC(ep(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||eO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=aO.toSlateNode(e,c);return{path:aO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return pf.hasPath(e,n.path)&&pf.hasPath(e,r.path)},getNodeType:function(e){return uf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return mf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=pf.nodes(e,{universal:!0});try{for(var i=pC(o),a=i.next();!a.done;a=i.next()){var u=hC(a.value,1)[0];uf.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=hC(pf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=hC(pf.nodes(e,{match:function(e){return Lf.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=hC(pf.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&hC(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(pf.isEnd(e,n.anchor,t)||pf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=pA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return vA.get(e)||null},getHoverbar:function(e){return mA.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=aO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=pC(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=pf.nodes(e,{match:function(t){return!(!uf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=pC(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];ZA(aO.toDOMNode(e,h),(function(e,t){var n=gp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=pf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=pC(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Ff.isExpanded(t))return!1;var n=aO.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=pf.node(e,t);if(null==n)return!1;var r=hC(n,1)[0].children;return 1===r.length&&""===r[0].text}},uO=1,sO={},lO={},cO=Rx.filter,fO=pS("filter");bE({target:"Array",proto:!0,forced:!fO},{filter:function(e){return cO(this,e,arguments.length>1?arguments[1]:void 0)}});var dO="\t\n\v\f\r                 \u2028\u2029\ufeff",pO=kb("".replace),hO="["+dO+"]",gO=RegExp("^"+hO+hO+"*"),vO=RegExp(hO+hO+"*$"),yO=function(e){return function(t){var n=kE(Fb(t));return 1&e&&(n=pO(n,gO,"")),2&e&&(n=pO(n,vO,"")),n}},mO={start:yO(1),end:yO(2),trim:yO(3)},bO=Qw.PROPER,wO=mO.trim;bE({target:"String",proto:!0,forced:function(e){return Kb((function(){return!!dO[e]()||"​…᠎"!=="​…᠎"[e]()||bO&&dO[e].name!==e}))}("trim")},{trim:function(){return wO(this)}});var xO=[],EO={};function DO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var SO,CO,AO,OO,kO=bb.Promise,BO=tw("species"),FO=function(e){var t=Hb(e),n=Bw.f;ow&&t&&!t[BO]&&n(t,BO,{configurable:!0,get:function(){return this}})},TO=bb.TypeError,_O=tw("species"),PO=function(e,t){var n,r=dw(e).constructor;return void 0===r||null==(n=dw(r)[_O])?t:function(e){if(_x(e))return e;throw TO(bw(e)+" is not a constructor")}(n)},jO=kb([].slice),NO=/(?:ipad|iphone|ipod).*applewebkit/i.test($b),IO="process"==rx(bb.process),LO=bb.setImmediate,RO=bb.clearImmediate,MO=bb.process,zO=bb.Dispatch,HO=bb.Function,$O=bb.MessageChannel,VO=bb.String,UO=0,WO={};try{SO=bb.location}catch($A){}var GO=function(e){if(jb(WO,e)){var t=WO[e];delete WO[e],t()}},qO=function(e){return function(){GO(e)}},KO=function(e){GO(e.data)},YO=function(e){bb.postMessage(VO(e),SO.protocol+"//"+SO.host)};LO&&RO||(LO=function(e){var t=jO(arguments,1);return WO[++UO]=function(){zS(Mb(e)?e:HO(e),void 0,t)},CO(UO),UO},RO=function(e){delete WO[e]},IO?CO=function(e){MO.nextTick(qO(e))}:zO&&zO.now?CO=function(e){zO.now(qO(e))}:$O&&!NO?(OO=(AO=new $O).port2,AO.port1.onmessage=KO,CO=hx(OO.postMessage,OO)):bb.addEventListener&&Mb(bb.postMessage)&&!bb.importScripts&&SO&&"file:"!==SO.protocol&&!Kb(YO)?(CO=YO,bb.addEventListener("message",KO,!1)):CO="onreadystatechange"in sw("script")?function(e){RE.appendChild(sw("script")).onreadystatechange=function(){RE.removeChild(this),GO(e)}}:function(e){setTimeout(qO(e),0)});var XO,ZO,JO,QO,ek,tk,nk,rk,ok={set:LO,clear:RO},ik=/ipad|iphone|ipod/i.test($b)&&void 0!==bb.Pebble,ak=/web0s(?!.*chrome)/i.test($b),uk=Yx.f,sk=ok.set,lk=bb.MutationObserver||bb.WebKitMutationObserver,ck=bb.document,fk=bb.process,dk=bb.Promise,pk=uk(bb,"queueMicrotask"),hk=pk&&pk.value;hk||(XO=function(){var e,t;for(IO&&(e=fk.domain)&&e.exit();ZO;){t=ZO.fn,ZO=ZO.next;try{t()}catch(e){throw ZO?QO():JO=void 0,e}}JO=void 0,e&&e.enter()},NO||IO||ak||!lk||!ck?!ik&&dk&&dk.resolve?((nk=dk.resolve(void 0)).constructor=dk,rk=hx(nk.then,nk),QO=function(){rk(XO)}):IO?QO=function(){fk.nextTick(XO)}:(sk=hx(sk,bb),QO=function(){sk(XO)}):(ek=!0,tk=ck.createTextNode(""),new lk(XO).observe(tk,{characterData:!0}),QO=function(){tk.data=ek=!ek}));var gk,vk,yk,mk,bk=hk||function(e){var t={fn:e,next:void 0};JO&&(JO.next=t),ZO||(ZO=t,QO()),JO=t},wk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=xw(t),this.reject=xw(n)},xk={f:function(e){return new wk(e)}},Ek=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Dk="object"==typeof window,Sk=ok.set,Ck=tw("species"),Ak="Promise",Ok=Yw.getterFor(Ak),kk=Yw.set,Bk=Yw.getterFor(Ak),Fk=kO&&kO.prototype,Tk=kO,_k=Fk,Pk=bb.TypeError,jk=bb.document,Nk=bb.process,Ik=xk.f,Lk=Ik,Rk=!!(jk&&jk.createEvent&&bb.dispatchEvent),Mk=Mb(bb.PromiseRejectionEvent),zk=!1,Hk=yE(Ak,(function(){var e=Iw(Tk),t=e!==String(Tk);if(!t&&66===qb)return!0;if(qb>=51&&/native code/.test(e))return!1;var n=new Tk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Ck]=r,!(zk=n.then((function(){}))instanceof r)||!t&&Dk&&!Mk})),$k=Hk||!wD((function(e){Tk.all(e).catch((function(){}))})),Vk=function(e){var t;return!(!iw(e)||!Mb(t=e.then))&&t},Uk=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;bk((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Kk(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Pk("Promise-chain cycle")):(u=Vk(a))?hw(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Gk(e)}))}},Wk=function(e,t,n){var r,o;Rk?((r=jk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),bb.dispatchEvent(r)):r={promise:t,reason:n},!Mk&&(o=bb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=bb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Gk=function(e){hw(Sk,bb,(function(){var t,n=e.facade,r=e.value;if(qk(e)&&(t=Ek((function(){IO?Nk.emit("unhandledRejection",r,n):Wk("unhandledrejection",n,r)})),e.rejection=IO||qk(e)?2:1,t.error))throw t.value}))},qk=function(e){return 1!==e.rejection&&!e.parent},Kk=function(e){hw(Sk,bb,(function(){var t=e.facade;IO?Nk.emit("rejectionHandled",t):Wk("rejectionhandled",t,e.value)}))},Yk=function(e,t,n){return function(r){e(t,r,n)}},Xk=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Uk(e,!0))},Zk=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Pk("Promise can't be resolved itself");var r=Vk(t);r?bk((function(){var n={done:!1};try{hw(r,t,Yk(Zk,n,e),Yk(Xk,n,e))}catch(t){Xk(n,t,e)}})):(e.value=t,e.state=1,Uk(e,!1))}catch(t){Xk({done:!1},t,e)}}};if(Hk&&(_k=(Tk=function(e){RC(this,_k),xw(e),hw(gk,this);var t=Ok(this);try{e(Yk(Zk,t),Yk(Xk,t))}catch(e){Xk(t,e)}}).prototype,(gk=function(e){kk(this,{type:Ak,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=xC(_k,{then:function(e,t){var n=Bk(this),r=n.reactions,o=Ik(PO(this,Tk));return o.ok=!Mb(e)||e,o.fail=Mb(t)&&t,o.domain=IO?Nk.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Uk(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),vk=function(){var e=new gk,t=Ok(e);this.promise=e,this.resolve=Yk(Zk,t),this.reject=Yk(Xk,t)},xk.f=Ik=function(e){return e===Tk||e===yk?new vk(e):Lk(e)},Mb(kO)&&Fk!==Object.prototype)){mk=Fk.then,zk||(ex(Fk,"then",(function(e,t){var n=this;return new Tk((function(e,t){hw(mk,n,e,t)})).then(e,t)}),{unsafe:!0}),ex(Fk,"catch",_k.catch,{unsafe:!0}));try{delete Fk.constructor}catch($A){}WD&&WD(Fk,_k)}bE({global:!0,wrap:!0,forced:Hk},{Promise:Tk}),zD(Tk,Ak,!1),FO(Ak),yk=Hb(Ak),bE({target:Ak,stat:!0,forced:Hk},{reject:function(e){var t=Ik(this);return hw(t.reject,void 0,e),t.promise}}),bE({target:Ak,stat:!0,forced:Hk},{resolve:function(e){return function(e,t){if(dw(e),iw(t)&&t.constructor===e)return t;var n=xk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),bE({target:Ak,stat:!0,forced:$k},{all:function(e){var t=this,n=Ik(t),r=n.resolve,o=n.reject,i=Ek((function(){var n=xw(t.resolve),i=[],a=0,u=1;IC(e,(function(e){var s=a++,l=!1;u++,hw(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Ik(t),r=n.reject,o=Ek((function(){var o=xw(t.resolve);IC(e,(function(e){hw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Jk=bS.UNSUPPORTED_Y,Qk=Math.min,eB=[].push,tB=kb(/./.exec),nB=kb(eB),rB=kb("".slice);function oB(e){Promise.resolve().then(e)}function iB(e){return"w-e-element-"+e}VS("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=kE(Fb(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!XE(e))return hw(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=hw(NS,f,r))&&!((a=f.lastIndex)>c&&(nB(s,rB(r,c,i.index)),i.length>1&&i.index<r.length&&zS(eB,s,SC(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&tB(f,"")||nB(s,""):nB(s,rB(r,c)),s.length>o?SC(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:hw(t,this,e,n)}:t,[function(t,n){var o=Fb(this),i=null==t?void 0:Ew(t,e);return i?hw(i,t,o,n):hw(r,kE(o),t,n)},function(e,o){var i=dw(this),a=kE(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=PO(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Jk?"g":"y"),f=new s(Jk?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===eC(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Jk?0:h;var v,y=eC(f,Jk?rB(a,h):a);if(null===y||(v=Qk(Ex(f.lastIndex+(Jk?h:0)),a.length))===p)h=WS(a,h,l);else{if(nB(g,rB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(nB(g,y[m]),g.length===d)return g;h=p=v}}return nB(g,rB(a,p)),g}]}),!!Kb((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Jk);var aB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},uB=function(e,t,n){var r=aO.toDOMRange(e,t).getBoundingClientRect(),o=aO.toDOMRange(e,n).getBoundingClientRect();return aB(r,o)&&aB(o,r)},sB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],lB=[],cB=[],fB={},dB=Bw.f,pB=aE.f,hB=Yw.enforce,gB=tw("match"),vB=bb.RegExp,yB=vB.prototype,mB=bb.SyntaxError,bB=kb(BE),wB=kb(yB.exec),xB=kb("".charAt),EB=kb("".replace),DB=kb("".indexOf),SB=kb("".slice),CB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,AB=/a/g,OB=/a/g,kB=new vB(AB)!==AB,BB=bS.MISSED_STICKY,FB=bS.UNSUPPORTED_Y,TB=ow&&(!kB||BB||xS||DS||Kb((function(){return OB[gB]=!1,vB(AB)!=AB||vB(OB)==OB||"/a/i"!=vB(AB,"i")})));if(yE("RegExp",TB)){for(var _B=function(e,t){var n,r,o,i,a,u,s=gw(yB,this),l=XE(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===_B)return e;if((l||gw(yB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:bB(d))),e=void 0===e?"":kE(e),t=void 0===t?"":kE(t),d=e,xS&&"dotAll"in AB&&(r=!!t&&DB(t,"s")>-1)&&(t=EB(t,/s/g,"")),n=t,BB&&"sticky"in AB&&(o=!!t&&DB(t,"y")>-1)&&FB&&(t=EB(t,/y/g,"")),DS&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=xB(e,r)))t+=xB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:wB(CB,SB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||jb(a,c))throw new mB("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=MC(vB(e,t),s?this:yB,_B),(r||o||f.length)&&(u=hB(a),r&&(u.dotAll=!0,u.raw=_B(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=xB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+xB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Tw(a,"source",""===d?"(?:)":d)}catch(e){}return a},PB=function(e){e in _B||dB(_B,e,{configurable:!0,get:function(){return vB[e]},set:function(t){vB[e]=t}})},jB=pB(vB),NB=0;jB.length>NB;)PB(jB[NB++]);yB.constructor=_B,_B.prototype=yB,ex(bb,"RegExp",_B)}FO("RegExp");var IB=new RegExp(String.fromCharCode(160),"g");function LB(e){return e.replace(IB," ")}function RB(e,t){var n=e.length;if(n){var r=e[n-1];if(Lf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function MB(e,t,n){return{type:"paragraph",children:[{text:gp(e).text().replace(/\s+/gm," ")}]}}function zB(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==HA.ELEMENT_NODE)if(e.nodeType!==HA.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=LB(r),RB(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(RB(n,"\n")||n.push({text:"\n"}));var o=$B(gp(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in fB)if(e[0].matches(t))return fB[t];return MB}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){pf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),cB.forEach((function(n){r=n(e[0],r,t)})))})),r}function HB(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=LB(n=function(e){return e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n))};return cB.forEach((function(n){r=n(e[0],r,t)})),r}function $B(e,t){lB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=gp(r(e[0])))}));var n=JA(e);return"span"===n?e.attr("data-w-e-type")?zB(e,t):HB(e,t):"code"===n?"pre"===JA(e.parent())?zB(e,t):HB(e,t):sB.includes(n)?HB(e,t):zB(e,t)}function VB(e,t,n){var r=gp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function UB(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=gp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=$B(gp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var WB=Bw.f,GB=_C.fastKey,qB=Yw.set,KB=Yw.getterFor;zC("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,o){RC(e,i),qB(e,{type:t,index:UE(null),first:void 0,last:void 0,size:0}),ow||(e.size=0),null!=o&&IC(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=KB(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=GB(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),ow?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=GB(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return xC(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,ow?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),ow?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=hx(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),xC(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),ow&&WB(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=KB(t),i=KB(r);JD(e,t,(function(e,t){qB(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),FO(t)}});var YB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function XB(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):ed.insertNodes(e,t,{mode:"highest"})}var ZB=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=hC(Ff.edges(n),2),o=r[0],i=r[1],a=pf.void(t,{at:o.path}),u=pf.void(t,{at:i.path});if(!Ff.isCollapsed(n)||a){var s=aO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=hC(u,1)[0],d=s.cloneRange(),p=aO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),qA(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",function e(t){var n,r,o="";if(qA(t)&&t.nodeValue)return t.nodeValue;if(UA(t)){try{for(var i=pC(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o}(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=pC(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&ed.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},JB=function(e){return null!=e},QB={object:!0,function:!0,undefined:!0},eF=/^\s*class[\s{/}]/,tF=Function.prototype.toString,nF=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!JB(e)&&hasOwnProperty.call(QB,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!eF.test(tF.call(e))},rF=function(e){return null!=e},oF=Object.keys,iF=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return oF(rF(e)?Object(e):e)},aF=function(e){if(!rF(e))throw new TypeError("Cannot use null or undefined");return e},uF=Math.max,sF=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=uF(arguments.length,2);for(e=Object(aF(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)iF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},lF=Array.prototype.forEach,cF=Object.create,fF=function(e,t){var n;for(n in e)t[n]=e[n]},dF=function(e){var t=cF(null);return lF.call(arguments,(function(e){rF(e)&&fF(Object(e),t)})),t},pF="razdwatrzy",hF=String.prototype.indexOf,gF="function"==typeof pF.contains&&!0===pF.contains("dwa")&&!1===pF.contains("foo")?String.prototype.contains:function(e){return hF.call(this,e,arguments[1])>-1},vF=gb((function(e){(e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],JB(e)?(n=gF.call(e,"c"),r=gF.call(e,"e"),o=gF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?sF(dF(i),a):a}).gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],JB(t)?nF(t)?JB(n)?nF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,JB(e)?(r=gF.call(e,"c"),o=gF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?sF(dF(i),a):a}})),yF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},mF=gb((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return yF(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(yF(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return yF(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o,emit:i},u={on:vF(n),once:vF(r),off:vF(o),emit:vF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function bF(e){var t=IA.get(e);return null==t&&(t=mF(),IA.set(e,t)),t}var wF=new WeakMap;function xF(e,t){var n=wF.get(e);null==n&&(n=new Set,wF.set(e,n)),n.add(t)}function EF(e){return wF.get(e)||new Set}function DF(e){wF.set(e,new Set)}function SF(e){var t=aO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function CF(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=SF(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=aO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function AF(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=uf.isElement(t)&&e.isVoid(t),i=uf.isElement(t)&&e.isInline(t),a=TA.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(zA.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=SF(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},x=s-v,E=l-y;if("bar"===n)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+c+5+"px",w;if("modal"===n)return o?i?E>(m-f)/2?w.right=m-E+5+"px":w.left=E+f+5+"px":w.left="20px":w.left=E+"px",o?((g=x)<0&&(g=0),w.top=g+"px"):x>(b-c)/2?w.bottom=b-x+5+"px":((g=x+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function OF(e,t){oB((function(){var n=SF(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(g.indexOf("right")>=0&&c<0){var E=t.css("right"),D=parseInt(E.toString())-Math.abs(c);t.css("right",D+"px")}}}))}var kF=pS("slice"),BF=tw("species"),FF=bb.Array,TF=Math.max;bE({target:"Array",proto:!0,forced:!kF},{slice:function(e,t){var n,r,o,i=qx(this),a=Dx(i),u=Jx(e,a),s=Jx(void 0===t?a:t,a);if(Sx(i)&&(n=i.constructor,(_x(n)&&(n===FF||Sx(n.prototype))||iw(n)&&null===(n=n[BF]))&&(n=void 0),n===FF||void 0===n))return jO(i,u,s);for(r=new(void 0===n?FF:n)(TF(s-u,0)),o=0;u<s;u++,o++)u in i&&cD(r,o,i[u]);return r.length=o,r}});var _F=Yx.f,PF=kb("".startsWith),jF=kb("".slice),NF=Math.min,IF=eD("startsWith"),LF=!IF&&!!function(){var e=_F(String.prototype,"startsWith");return e&&!e.writable}();bE({target:"String",proto:!0,forced:!LF&&!IF},{startsWith:function(e){var t=kE(Fb(this));JE(e);var n=Ex(NF(arguments.length>1?arguments[1]:void 0,t.length)),r=kE(e);return PF?PF(t,r,n):jF(t,n,n+r.length)===r}});var RF=Object.assign,MF=Object.defineProperty,zF=kb([].concat),HF=!RF||Kb((function(){if(ow&&1!==RF({b:1},RF(MF({},"a",{enumerable:!0,get:function(){MF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=RF({},e)[n]||wE(RF({},t)).join("")!=r}))?function(e,t){for(var n=_b(e),r=arguments.length,o=1,i=uE.f,a=Gx.f;r>o;)for(var u,s=yx(arguments[o++]),l=i?zF(wE(s),i(s)):wE(s),c=l.length,f=0;c>f;)u=l[f++],ow&&!hw(a,s,u)||(n[u]=s[u]);return n}:RF;bE({target:"Object",stat:!0,forced:Object.assign!==HF},{assign:HF});var $F=["props","attrs","style","dataset","on","hook"];var VF=[],UF={};function WF(e,t,n){return tg(n.isInline(e)?"span":"div",null,t)}function GF(e,t){return void 0===t&&(t=!1),tg("span",{"data-slate-string":!0},t?e+"\n":e)}function qF(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),tg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?tg("br",null):null)}function KF(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Lh("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=function e(t,n,r,o){return AA.set(t,n),OA.set(t,r),uf.isElement(t)?function(t,n){var r,o=aO.findKey(n,t),i=n.isInline(t),a=pf.isVoid(n,t),u=iB(o.id),s={id:u,key:o.id,"data-slate-node":"element","data-slate-inline":i},l=t.type,c=t.children,f=void 0===c?[]:c,d=function(e){return UF[e]||WF}(l);r=a?null:f.map((function(r,o){return e(r,o,t,n)}));var p=d(t,r,n);if(a){s["data-slate-void"]=!0;var h=i?"span":"div",g=hC(mf.texts(t),1),v=hC(g[0],1)[0],y=tg(h,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},e(v,0,t,n));p=tg(h,{style:{position:"relative"}},p,y),AA.set(v,0),OA.set(v,t)}return null==p.data&&(p.data={}),Object.assign(p.data,s),a||i||(p=function(e,t){var n=t;return VF.forEach((function(r){n=r(e,t)})),n}(t,p)),oB((function(){var e=KA(u);null!=e&&(FA.set(o,e),TA.set(t,e),BA.set(e,t))})),p}(t,o):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=aO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=aO.findPath(n,e),a=o([e,i]),u=Lf.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=aO.findPath(o,n),u=Ef.parent(a);if(pf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?qF(mf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==pf.string(o,u)?""===i?qF():t&&"\n"===i.slice(-1)?GF(i,!0):GF(i):qF(0,!0)}(r,o===u.length-1,e,t,n);return tg("span",{"data-slate-leaf":!0},i=function(e,t){var n=t;return VF.forEach((function(t){n=t(e,n)})),n}(r,i))})),l=function(e){return"w-e-text-"+e}(r.id),c=tg("span",{"data-slate-node":"text",id:l,key:r.id},s);return oB((function(){var t=KA(l);null!=t&&(FA.set(r,t),TA.set(e,t),BA.set(t,e))})),c}(t,r,o)}(e,n,t,t);return function e(t){var n=t.data,r=void 0===n?{}:n,o=t.children,i=void 0===o?[]:o;Object.keys(r).forEach((function(e){var n,o,i=r[e];if("key"!==e){if(!$F.includes(e)){if(e.startsWith("data-")){var a=e.slice(5);return a=Hg(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(t,((n={})[a]=i,n)),void delete r[e]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(t,(o={},o[e]=i,o)),delete r[e]}}else t.key=i})),i.length>0&&i.forEach((function(t){"string"!=typeof t&&e(t)}))}(r),r}));var c=DA.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return gp('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Ih([Hh,Yh,eg,Uh,qh,Mh]))(n,s),DA.set(e,!1),SA.set(e,p)}else{var d=CA.get(e),p=SA.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=KA(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=VA(n);h&&PA.set(t,h)}kA.set(t,n),TA.set(t,n),BA.set(n,t),CA.set(e,s)}}function YF(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function XF(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ZF(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return XF(n.overflowY,t)||XF(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function JF(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function QF(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!YF(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;YF(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&ZF(f)&&!ZF(document.documentElement)||null!=f&&ZF(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,x=v.bottom,E=v.left,D="start"===o||"nearest"===o?b:"end"===o?x:b+y/2,S="center"===i?E+m/2:"end"===i?w:E,C=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&E>=0&&x<=p&&w<=d&&b>=T&&x<=P&&E>=j&&w<=_)return C;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,H=0,$="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?D:"end"===o?D-p:"nearest"===o?JF(g,g+p,p,L,M,g+D,g+D+y,y):D-p/2,H="start"===i?S:"center"===i?S-d/2:"end"===i?S-d:JF(h,h+d,d,I,R,h+S,h+S+m,m),z=Math.max(0,z+g),H=Math.max(0,H+h);else{z="start"===o?D-T-L:"end"===o?D-P+M+V:"nearest"===o?JF(T,P,B,L,M+V,D,D+y,y):D-(T+B/2)+V/2,H="start"===i?S-j-I:"center"===i?S-(j+F/2)+$/2:"end"===i?S-_+R+$:JF(j,_,F,I,R+$,S,S+m,m);var U=O.scrollLeft,W=O.scrollTop;D+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),S+=U-(H=Math.max(0,Math.min(U+H,O.scrollWidth-F+$)))}C.push({el:O,top:z,left:H})}return C}function eT(e){return e===Object(e)&&0!==Object.keys(e).length}function tT(e,t){return WA(t)&&aO.hasDOMNode(e,t,{editable:!0})}function nT(e,t){if(e.getConfig().readOnly)return!1;var n=rT(e,t)&&aO.toSlateNode(e,t);return pf.isVoid(e,n)}function rT(e,t){return WA(t)&&aO.hasDOMNode(e,t)}function oT(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=aO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=kA.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=aO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Ff.equals(l,r)){var c=!0;if(Ff.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||aO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&aO.toDOMRange(t,r);if(g){Ff.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(eT(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:QF(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:eT(e)?e:{block:"start",inline:"nearest"}}(t);!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(QF(e,r),r.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&eO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=aO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var iT=new WeakMap,aT=new WeakMap,uT={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},sT={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},lT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},cT=function(e){var t=uT[e],n=sT[e],r=lT[e],o=t&&Zg(t),i=n&&Zg(n),a=r&&Zg(r);return function(e){return!(!o||!o(e))||!!(QA&&i&&i(e))||!(QA||!a||!a(e))}},fT={isBold:cT("bold"),isCompose:cT("compose"),isMoveBackward:cT("moveBackward"),isMoveForward:cT("moveForward"),isDeleteBackward:cT("deleteBackward"),isDeleteForward:cT("deleteForward"),isDeleteLineBackward:cT("deleteLineBackward"),isDeleteLineForward:cT("deleteLineForward"),isDeleteWordBackward:cT("deleteWordBackward"),isDeleteWordForward:cT("deleteWordForward"),isExtendBackward:cT("extendBackward"),isExtendForward:cT("extendForward"),isExtendLineBackward:cT("extendLineBackward"),isExtendLineForward:cT("extendLineForward"),isItalic:cT("italic"),isMoveLineBackward:cT("moveLineBackward"),isMoveLineForward:cT("moveLineForward"),isMoveWordBackward:cT("moveWordBackward"),isMoveWordForward:cT("moveWordForward"),isRedo:cT("redo"),isSplitBlock:cT("splitBlock"),isTransposeCharacter:cT("transposeCharacter"),isUndo:cT("undo"),isTab:cT("tab"),isSelectAll:cT("selectAll")};function dT(e){e.preventDefault()}var pT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(iO&&!o&&tT(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=hC(r.getTargetRanges(),1)[0];if(s){var l=aO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Ff.equals(i,l)||ed.select(n,l)}}if(i&&Ff.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";pf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":pf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":pf.deleteForward(n);break;case"deleteContentBackward":pf.deleteBackward(n);break;case"deleteEntireSoftLine":pf.deleteBackward(n,{unit:"line"}),pf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":pf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":pf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":pf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":pf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":pf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":pf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":pf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!LA.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&pf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&tT(n,r.target)){var a=aO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===aO.toDOMNode(n,n)||UA(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&WA(u)&&aO.hasDOMNode(n,u)){var s=aO.toSlateNode(n,u);if(uf.isElement(s)&&!n.isVoid(s))return}if(tO){var l=a.getSelection();null==l||l.removeAllRanges()}jA.delete(n)}}}},focus:function(e,t,n){var r=aO.toDOMNode(n,n),o=aO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,eO&&e.target!==r?r.focus():jA.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&rT(n,e.target)&&WA(e.target)){var r=aO.toSlateNode(n,e.target),o=aO.findPath(n,r);if(pf.hasPath(n,o)&&mf.get(n,o)===r){var i=pf.start(n,o),a=pf.end(n,o),u=pf.void(n,{at:i}),s=pf.void(n,{at:a});if(u&&s&&Ef.equals(u[1],s[1])){var l=pf.range(n,i);ed.select(n,l)}}}},compositionstart:function(e,t,n){if(tT(n,e.target)){var r=n.selection;if(r&&Ff.isExpanded(r)&&(pf.deleteFragment(n),Promise.resolve().then((function(){oT(t,n,!0)}))),r&&Ff.isCollapsed(r)){var o=aO.toDOMRange(n,r).startContainer,i=o.textContent||"";iT.set(n,i),aT.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(tT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(oO||eO)&&aO.cleanExposedTexNodeInSelectionBlock(n);for(var i=Ff.isBackward(o)?o.focus:o.anchor,a=hC(pf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=hC(pf.node(n,i.path.slice(0,u+1)),1)[0];if(uf.isElement(s)&&((tO||eO)&&"link"===s.type||"code"===s.type)){aO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=aO.getLeftLengthOfMaxLength(n);c<l.length?(aO.toDOMRange(n,o).startContainer.textContent=iT.get(n)||"",c>0&&pf.insertText(n,l.slice(0,c)),t.changeViewState()):pf.insertText(n,l)}else pf.insertText(n,l);tO||setTimeout((function(){var e=n.selection;if(null!=e){var t=aT.get(n);null!=t&&aO.toDOMRange(n,e).startContainer!==t&&(t.textContent=iT.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){tT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&tT(n,r.target)){if(function(e,t){var n=vA.get(e),r=n&&n.getMenus(),o=mA.get(e),i=o&&o.getMenus(),a=dC(dC({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Xg(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),fT.isTab(r))return dT(r),void n.handleTab();if(fT.isRedo(r))return dT(r),void("function"==typeof n.redo&&n.redo());if(fT.isUndo(r))return dT(r),void("function"==typeof n.undo&&n.undo());if(fT.isMoveLineBackward(r))return dT(r),void ed.move(n,{unit:"line",reverse:!0});if(fT.isMoveLineForward(r))return dT(r),void ed.move(n,{unit:"line"});if(fT.isExtendLineBackward(r))return dT(r),void ed.move(n,{unit:"line",edge:"focus",reverse:!0});if(fT.isExtendLineForward(r))return dT(r),void ed.move(n,{unit:"line",edge:"focus"});if(fT.isMoveBackward(r))return dT(r),void(o&&Ff.isCollapsed(o)?ed.move(n,{reverse:!0}):ed.collapse(n,{edge:"start"}));if(fT.isMoveForward(r))return dT(r),void(o&&Ff.isCollapsed(o)?ed.move(n):ed.collapse(n,{edge:"end"}));if(fT.isMoveWordBackward(r))return dT(r),o&&Ff.isExpanded(o)&&ed.collapse(n,{edge:"focus"}),void ed.move(n,{unit:"word",reverse:!0});if(fT.isMoveWordForward(r))return dT(r),o&&Ff.isExpanded(o)&&ed.collapse(n,{edge:"focus"}),void ed.move(n,{unit:"word"});if(fT.isSelectAll(r))return dT(r),void n.selectAll();if(iO){if((oO||tO)&&o&&(fT.isDeleteBackward(r)||fT.isDeleteForward(r))&&Ff.isCollapsed(o)){var i=mf.parent(n,o.anchor.path);if(uf.isElement(i)&&pf.isVoid(n,i)&&pf.isInline(n,i))return r.preventDefault(),void ed.delete(n,{unit:"block"})}}else{if(fT.isBold(r)||fT.isItalic(r)||fT.isTransposeCharacter(r))return void dT(r);if(fT.isSplitBlock(r))return dT(r),void pf.insertBreak(n);if(fT.isDeleteBackward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"backward"}):pf.deleteBackward(n));if(fT.isDeleteForward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"forward"}):pf.deleteForward(n));if(fT.isDeleteLineBackward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"backward"}):pf.deleteBackward(n,{unit:"line"}));if(fT.isDeleteLineForward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"forward"}):pf.deleteForward(n,{unit:"line"}));if(fT.isDeleteWordBackward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"backward"}):pf.deleteBackward(n,{unit:"word"}));if(fT.isDeleteWordForward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"forward"}):pf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!iO&&!n.getConfig().readOnly&&tT(n,e.target)){e.preventDefault();var r=e.key;pf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(tT(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&tT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Ff.isExpanded(o))pf.deleteFragment(n);else{var a=mf.parent(n,o.anchor.path);pf.isVoid(n,a)&&ed.delete(n)}}},paste:function(e,t,n){LA.set(n,!0);var r=e;if(!n.getConfig().readOnly&&tT(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void LA.set(n,!1);if(!iO||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(rT(n,e.target)){var r=aO.toSlateNode(n,e.target);pf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(rT(n,r.target)&&!n.getConfig().readOnly){var o=aO.toSlateNode(n,r.target),i=aO.findPath(n,o);if(pf.isVoid(n,o)||pf.void(n,{at:i,voids:!0})){var a=pf.range(n,i);ed.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&rT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&rT(n,r.target)&&null!=o&&!(iO&&tO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=aO.findEventRange(n,r);ed.select(n,a),t.isDraggingInternally&&(i&&ed.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},hT=1,gT=function(){function e(e){var t=this;this.id=hT++,this.$textArea=null,this.$progressBar=gp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=gp('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ch((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=aO.findDocumentOrShadowRoot(t),a=i.activeElement,u=aO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,jA.set(t,!0)):jA.delete(t),!s)return ed.deselect(t);var l=s.anchorNode,c=s.focusNode,f=tT(t,l)||nT(t,l),d=tT(t,c)||nT(t,c);if(f&&d){var p=aO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});ed.select(t,p)}else ed.deselect(t)}}(t,e)}),100);var n=gp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=gp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=gp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,oB((function(){var e=t.editorInstance,n=aO.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=hA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(lh(pT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Ch((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-aO.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;KF(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=gp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),oB((function(){oT(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function vT(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&vT(t)}function yT(){return gp('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function mT(){return gp('<div class="w-e-bar-divider"></div>')}function bT(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=QA?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}VS("match",(function(e,t,n){return[function(t){var n=Fb(this),r=null==t?void 0:Ew(t,e);return r?hw(r,t,n):new RegExp(t)[e](kE(n))},function(e){var r=dw(this),o=kE(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return eC(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=eC(r,o));){var c=kE(u[0]);s[l]=c,""===c&&(r.lastIndex=WS(o,Ex(r.lastIndex),a)),l++}return 0===l?null:s}]}));var wT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=gp('<div class="w-e-bar-item"></div>'),this.$button=gp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=gp(c);vT(d),f.append(d)}else f.text(a);bT(f,c,a,s,n),n&&c&&f.append(gp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),oB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),PT(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=PT(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=PT(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=PT(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),xT=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return fC(t,e),t.prototype.onButtonClick=function(){},t}(wT),ET=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=wA.get(e);null==t&&(t=new Set,wA.set(e,t)),t.add(this),xA.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=xA.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=xA.get(this);e&&e.emit("modalOrPanelHide")}},e}(),DT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=gp('<div class="w-e-drop-panel"></div>'),n}return fC(t,e),t.prototype.genSelfElem=function(){return null},t}(ET),ST=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=yT();o.$button.append(i)}return o}return fC(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=PT(this);if(null==this.dropPanel){var n=new DT(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(wT),CT=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=gp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return fC(t,e),t.prototype.genSelfElem=function(){var e=this,t=gp('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=xA.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(ET);function AT(e,t,n){var r=gp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=gp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function OT(e,t){var n=gp('<div class="button-container"></div>'),r=gp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var kT=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=gp("body"),o.modal=null,o.menu=n,o}return fC(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=PT(this),t=this.menu.getModalPositionNode(e);return uf.isElement(t)?AF(e,t,"modal"):CF(e)},t.prototype.handleModal=function(){var e=PT(this),t=this.menu;if(null==this.modal){var n=new CT(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=PT(this),r=this.menu;if(null!=r.getModalContentElem){var o=aO.getTextarea(n),i=aO.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||OF(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(wT),BT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=gp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return fC(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=gp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=gp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=gp('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(gp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(ET),FT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=gp('<div class="w-e-bar-item"></div>'),this.$button=gp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),bT(f,s,i,c,n),this.$elem.append(f),this.menu=t,oB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),PT(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=PT(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new BT(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=gp(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=PT(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=PT(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=yT();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=PT(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),TT=function(){function e(e){this.$elem=gp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=gp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=gp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=gp(n);vT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=yT();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){gp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),_T=new WeakMap;function PT(e){var t=bA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function jT(e,t,n){void 0===n&&(n=!1);var r=_T.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new ST(e,t,n):a?new kT(e,t,n):new xT(e,t,n)}if("select"===o&&(r=new FT(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return _T.set(t,r),r}function NT(e,t){var n=e.selection;return null!=n&&!Ff.isCollapsed(n)&&!aO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Lf.isText(t)}var IT=function(){function e(){var e=this;this.$elem=gp('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=pv((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&uf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),oB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),aO.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;oB((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=mT();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=lO[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=jT(e,r);this.hoverbarItems.push(i),bA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),uf.isElement(e)){var r=AF(t,e,"bar");return n.css(r),void OF(t,n)}if(Lf.isText(e))return r=CF(t),n.css(r),void OF(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return aO.checkNodeType(t,o)},c=hC(pf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=yA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=NT),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=aO.findPath(null,e),r=aO.findPath(null,t);return Ef.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function LT(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];AE.withoutSaving(t,()=>{pf.withoutNormalizing(t,()=>{for(var e of r)t.apply(e)})}),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];AE.withoutSaving(t,()=>{pf.withoutNormalizing(t,()=>{var e=r.map(xf.inverse).reverse();for(var n of e)t.apply(n)})}),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=AE.isSaving(t),c=AE.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Ef.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Ef.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=aO.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=aO.getLeftLengthOfMaxLength(t);n<=0||n<mf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(aO.getLeftLengthOfMaxLength(t)<mf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=aO.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===HA.TEXT_NODE?e+(t.textContent||""):n===HA.ELEMENT_NODE?YB.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=bF(t);if(r.on(e,n),"destroyed"===e&&xF(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),xF(t,o)}},t.once=function(e,n){bF(t).once(e,n)},t.off=function(e,n){bF(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=bF(t);o.emit.apply(o,gC([e],hC(n))),"destroyed"===e&&(EF(t).forEach((function(e){return o.off("destroyed",e)})),DF(t))},t}(function(e){var t=e;return t.select=function(e){ed.select(t,e)},t.deselect=function(){var n=t.selection,r=aO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&ed.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||ed.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=NA.get(t);null!=e&&(t.focus(),ed.select(t,e))},t.getSelectionPosition=function(){return CF(t)},t.getNodePosition=function(e){return AF(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=hC(Ff.edges(e),2),r=n[0],o=n[1],i=hC(pf.edges(t,[]),2),a=i[0],u=i[1];return!(!Af.equals(r,a)||!Af.equals(o,u))},t.selectAll=function(){var e=pf.start(t,[]),n=pf.end(t,[]);ed.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=pC(pf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=hC(p.value,2),g=h[0],v=h[1],y=aO.findKey(t,g);f.push([v,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=pC(pf.levels(t,{at:Ef.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=hC(b.value,2);g=w[0],v=w[1],y=aO.findKey(t,g),f.push([v,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=pC(pf.levels(t,{at:Ef.common(Ef.parent(e.path),Ef.parent(e.newPath))})),E=x.next();!E.done;E=x.next()){var D=hC(E.value,2);g=D[0],v=D[1],y=aO.findKey(t,g),f.push([v,y])}}catch(e){u={error:e}}finally{try{E&&!E.done&&(s=x.return)&&s.call(x)}finally{if(u)throw u.error}}}o(e);try{for(var S=pC(f),C=S.next();!C.done;C=S.next()){var A=hC(C.value,2);v=A[0],y=A[1],g=hC(pf.node(t,v),1)[0],_A.set(g,y)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Ff.isCollapsed(e.selection)){var r=pf.above(e,{match:function(t){return pf.isBlock(e,t)},at:e.selection});if(r){var o=hC(r,2)[1],a=pf.range(e,o,e.selection.anchor),u=function(e,t){var n=pf.range(e,Ff.end(t)),r=Array.from(pf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(uB(e,pf.range(e,r[o]),n))return pf.range(e,r[o],n);if(r.length<2)return pf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)uB(e,pf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return pf.range(e,r[i],n)}(t,a);Ff.isCollapsed(u)||ed.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&NA.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return function e(t,n){return uf.isElement(t)?function(t,n){var r=t.type,o=void 0===r?"":r,i=t.children,a=void 0===i?[]:i,u=pf.isVoid(n,t),s="";u||(s=a.map((function(t){return e(t,n)})).join(""));var l=function(e){return EO[e]||DO}(o)(t,s,n),c="";if(c="string"==typeof l?l:l.html||"",u||xO.forEach((function(e){return c=e(t,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(t,n):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=aO.getParentsNodes(t,e).some((function(e){return"pre"===aO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=aO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return xO.forEach((function(t){return r=t(e,r)})),r}(t,n)}(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return mf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":pf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=pf.nodes(t,{at:[],universal:!0});try{for(var u=pC(a),s=u.next();!s.done;s=u.next()){var l=hC(s.value,1)[0];if(uf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=iB(aO.findKey(t,l).id);i.push(dC(dC({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(uf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Lf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){ed.delete(t,{at:{anchor:pf.start(t,[]),focus:pf.end(t,[])}}),0===t.children.length&&ed.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return aO.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===HA.TEXT_NODE||t===HA.ELEMENT_NODE&&!YB.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;aO.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==HA.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(sB.includes(r.toLowerCase()))s=!0;else for(var l in fB)if(a.matches(l)){s=!0;break}if(s){var c=$B(gp(a),t);return Array.isArray(c)?(c.forEach((function(e){return XB(t,e)})),u++):(XB(t,c),u++),void(aO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;aO.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&aO.isEmptyPath(t,a)&&ed.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=UB(t,e);if(ed.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(pf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in lO)e.push(t);return e},t.getConfig=function(){var e=EA.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=ZB((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of pf.pathRefs(e))Df.transform(n,t);for(var r of pf.pointRefs(e))Of.transform(r,t);for(var o of pf.rangeRefs(e))Tf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Ec.get(e)||[],l=Fc(t);for(var c of s)u(Ef.transform(c,t));for(var f of l)u(f);Ec.set(e,a),ed.transform(e,t),e.operations.push(t),pf.normalize(e),"set_selection"===t.type&&(e.marks=null),Dc.get(e)||(Dc.set(e,!0),Promise.resolve().then(()=>{Dc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Ff.isExpanded(r))ed.setNodes(e,{[t]:n},{match:Lf.isText,split:!0});else{var o=Bc(Bc({},pf.marks(e)||{}),{},{[t]:n});e.marks=o,Dc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Ff.isCollapsed(n)&&ed.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Ff.isCollapsed(n)&&ed.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Ff.isExpanded(n)&&ed.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?mf.fragment(e,t):[]},insertBreak:()=>{ed.splitNodes(e,{always:!0})},insertFragment:t=>{ed.insertFragment(e,t)},insertNode:t=>{ed.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Bc({text:t},r);ed.insertNodes(e,o)}else ed.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Lf.isText(n))if(uf.isElement(n)&&0===n.children.length)ed.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!pf.isEditor(n)&&uf.isElement(n)&&(e.isInline(n)||0===n.children.length||Lf.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=mf.get(e,r);if(!Lf.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Lf.isText(s)||uf.isElement(s)&&e.isInline(s))!==o?(ed.removeNodes(e,{at:r.concat(i),voids:!0}),i--):uf.isElement(s)?e.isInline(s)&&(null!=l&&Lf.isText(l)?c&&(ed.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(ed.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Lf.isText(l)&&(Lf.equals(s,l,{loose:!0})?(ed.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(ed.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(ed.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Ff.isExpanded(n))ed.unsetNodes(e,t,{match:Lf.isText,split:!0});else{var r=Bc({},pf.marks(e)||{});delete r[t],e.marks=r,Dc.get(e)||e.onChange()}}};return e})());return t.id="wangEditor-"+uO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(aO.toDOMNode(t,t).focus({preventScroll:!0}),jA.set(t,!0),e){var n=pf.end(t,[]);ed.select(t,n)}else{var r=NA.get(t);r?ed.select(t,r):ed.select(t,pf.start(t,[]))}},t.isFocused=function(){return!!jA.get(t)},t.blur=function(){aO.toDOMNode(t,t).blur(),ed.deselect(t),jA.set(t,!1)},t.updateView=function(){aO.getTextarea(t).changeViewState();var e=aO.getToolbar(t);e&&e.changeToolbarState();var n=aO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=aO.getTextarea(t);e.destroy(),pA.delete(t),hA.delete(e);var n=aO.getToolbar(t);n&&(n.destroy(),vA.delete(t),gA.delete(n));var r=aO.getHoverbar(t);r&&(r.destroy(),mA.delete(t),yA.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=gp("#"+e);if(0!==r.length){var o=r[0];if(!aO.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=aO.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||aO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=wA.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return aO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=aO.getToolbar(t);n&&(e=n.$box);var r=aO.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=aO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return aO.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return VB(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=hv(sO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return lh(t,(function(e,t){n[t]=dC(dC({},e),o[t]||{})})),delete e.MENU_CONF,dC({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);EA.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=UB(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),aO.normalizeContent(l),n){var p=new gT(n);pA.set(l,p),hA.set(p,l),p.changeViewState(),oB((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new IT,yA.set(h,l),mA.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return function e(t,n,r,o){if(AA.set(t,n),OA.set(t,r),uf.isElement(t)){var i=t.children;if((void 0===i?[]:i).forEach((function(n,r){return e(n,r,t,o)})),pf.isVoid(o,t)){var a=hC(mf.texts(t),1),u=hC(a[0],1)[0];AA.set(u,0),OA.set(u,t)}}}(e,t,l,l)}));var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",(function(){return g(l)})),v&&l.on("destroyed",(function(){return v(l)})),oB((function(){return l.emit("created")})),l}var RT=pS("splice"),MT=bb.TypeError,zT=Math.max,HT=Math.min;bE({target:"Array",proto:!0,forced:!RT},{splice:function(e,t){var n,r,o,i,a,u,s=_b(this),l=Dx(s),c=Jx(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=HT(zT(wx(t),0),l-c)),l+n-r>9007199254740991)throw MT("Maximum allowed length exceeded");for(o=Nx(s,r),i=0;i<r;i++)(a=c+i)in s&&cD(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var $T=function(){function e(e,t){var n=this;this.$toolbar=gp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=pv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=gp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),oB((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=hv(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=mT();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new TT(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof TT,o=this.menus,i=o[e];if(null==i){var a=lO[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=jT(e,i,r);this.toolbarItems.push(u),bA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=gA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),VT=Qw.EXISTS,UT=Bw.f,WT=Function.prototype,GT=kb(WT.toString),qT=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,KT=kb(qT.exec);function YT(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,E=void 0===x?function(e,t){}:x,D=e.onError,S=void 0===D?function(e,t,n){console.error(e.name+" upload error",t,n)}:D,C=e.onProgress,A=void 0===C?function(e){}:C;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=hC(e.split("#"),2),r=n[0],o=n[1],i=[];lh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var k=new $y({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(pb,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{E(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{S(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{S(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function XT(e){return(XT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ZT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){ZT(e,t,n[t])}))}return e}function QT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t_(e,t,n){return t&&e_(e.prototype,t),n&&e_(e,n),e}function n_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r_(e,t){if(t&&("object"===XT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n_(e)}function o_(e){return(o_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i_(e,t){return(i_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i_(e,t)}ow&&!VT&&UT(WT,"name",{configurable:!0,get:function(){try{return KT(qT,GT(this))[1]}catch(e){return""}}});var u_={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},s_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};QT(this,e),this.init(t,n)}return t_(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||u_,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,JT({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),l_=function(){function e(){QT(this,e),this.observers={}}return t_(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function c_(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function f_(e){return null==e?"":""+e}function d_(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function p_(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function h_(e,t,n){var r=p_(e,t,Object);r.obj[r.k]=n}function g_(e,t){var n=p_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function v_(e,t,n){var r=g_(e,n);return void 0!==r?r:g_(t,n)}function y_(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):y_(e[r],t[r],n):e[r]=t[r]);return e}function m_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var b_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function w_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return b_[e]})):e}var x_="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function E_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?E_(s,l,n):void 0}o=o[r[i]]}return o}}var D_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return QT(this,t),n=r_(this,o_(t).call(this)),x_&&l_.call(n_(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return a_(t,l_),t_(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=g_(this.data,a);return u||!i||"string"!=typeof n?u:E_(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),h_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=g_(this.data,a)||{};r?y_(u,n,o):u=JT({},u,n),h_(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?JT({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),S_={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},C_={},A_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return QT(this,t),n=r_(this,o_(t).call(this)),x_&&l_.call(n_(n)),d_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,n_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=s_.create("translator"),n}return a_(t,l_),t_(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==XT(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&x&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,JT({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===y,D=E?[]:{},S=E?v:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var A="".concat(S).concat(i).concat(C);D[C]=this.translate(A,JT({},n,{joinArrays:!1,ns:s})),D[C]===A&&(D[C]=h[C])}h=D}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=F&&_!==h&&this.options.updateMissing;if(k||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?_:h),i){var I=this.resolve(u,JT({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,N?r:j,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,N?r:j,N,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(JT({},n,{interpolation:JT({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=JT({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=S_.handle(d,e,t,this.options&&this.options.postProcessPassResolved?JT({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!C_["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(C_["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function O_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var k_=function(){function e(t){QT(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=s_.create("languageUtils")}return t_(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O_(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O_(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=O_(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),B_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],F_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function T_(){var e={};return B_.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:F_[t.fc]}}))})),e}var __=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};QT(this,e),this.languageUtils=t,this.options=n,this.logger=s_.create("pluralResolver"),this.rules=T_()}return t_(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),P_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};QT(this,e),this.logger=s_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return t_(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:w_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?m_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?m_(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?m_(t.nestingPrefix):t.nestingPrefixEscaped||m_("$t("),this.nestingSuffix=t.nestingSuffix?m_(t.nestingSuffix):t.nestingSuffixEscaped||m_(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=v_(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,JT({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(v_(t,s,a),l,n,JT({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=f_(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=JT({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=JT({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=f_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,JT({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),j_=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return QT(this,t),o=r_(this,o_(t).call(this)),x_&&l_.call(n_(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=s_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return a_(t,l_),t_(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=p_(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,JT({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function N_(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===XT(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===XT(e[2])||"object"===XT(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function I_(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function L_(){}var R_=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(QT(this,t),e=r_(this,o_(t).call(this)),x_&&l_.call(n_(e)),e.options=I_(n),e.services={},e.logger=s_,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),r_(e,n_(e));setTimeout((function(){e.init(n,r)}),0)}return e}return a_(t,l_),t_(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=JT({},N_(),this.options,I_(t)),this.format=this.options.interpolation.format,n||(n=L_),!this.options.isClone){this.modules.logger?s_.init(r(this.modules.logger),this.options):s_.init(null,this.options);var o=new k_(this.options);this.store=new D_(this.options.resources,this.options);var i=this.services;i.logger=s_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new __(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new P_(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new j_(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new A_(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=c_(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L_,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=c_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=L_),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S_.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=c_();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==XT(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=JT({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=c_();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=c_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L_,o=JT({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=JT({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new A_(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function M_(e,t){R_.addResourceBundle(e,"translation",t,!0,!0)}function z_(e){R_.changeLanguage(e)}R_.init({lng:"zh-CN",resources:{}});var H_=R_.t.bind(R_);M_("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),M_("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var $_=Gi?{}.toString:function(){return"[object "+Xi(this)+"]"};Gi||hi(Object.prototype,"toString",$_,{unsafe:!0});var V_=Array.isArray||function(e){return"Array"==Rr(e)},U_=function(){},W_=[],G_=Kr("Reflect","construct"),q_=/^\s*(?:class|function)\b/,K_=Nr(q_.exec),Y_=!q_.exec(U_),X_=function(e){if(!Wr(e))return!1;try{return G_(U_,W_,e),!0}catch(e){return!1}},Z_=!G_||Dr((function(){var e;return X_(X_.call)||!X_(Object)||!X_((function(){e=!0}))||e}))?function(e){if(!Wr(e))return!1;switch(Xi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Y_||!!K_(q_,Xo(e))}:X_,J_=Bo("species"),Q_=Er.Array,eP=function(e,t){return new(function(e){var t;return V_(e)&&(t=e.constructor,(Z_(t)&&(t===Q_||V_(t.prototype))||Gr(t)&&null===(t=t[J_]))&&(t=void 0)),void 0===t?Q_:t}(e))(0===t?0:t)},tP=Nr([].push),nP=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=mo(s),g=Hr(h),v=uu(l,c),y=Di(g),m=0,b=f||eP,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:tP(w,d)}else switch(e){case 4:return!1;case 7:tP(w,d)}return i?-1:r||o?o:w}},rP=[nP(0),nP(1),nP(2),nP(3),nP(4),nP(5),nP(6),nP(7)][0],oP=function(e,t){var n=[].forEach;return!!n&&Dr((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return rP(this,e,arguments.length>1?arguments[1]:void 0)},iP=function(e){if(e&&e.forEach!==oP)try{Wo(e,"forEach",oP)}catch(t){e.forEach=oP}};for(var aP in es)es[aP]&&iP(Er[aP]&&Er[aP].prototype);iP(rs),M_("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),M_("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var uP={type:"paragraph",renderElem:function(e,t,n){return tg("p",null,t)}},sP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function lP(e){var t={exports:{}};return e(t,t.exports),t.exports}var cP,fP,dP=function(e){return e&&e.Math==Math&&e},pP=dP("object"==typeof globalThis&&globalThis)||dP("object"==typeof window&&window)||dP("object"==typeof self&&self)||dP("object"==typeof sP&&sP)||function(){return this}()||Function("return this")(),hP=function(e){try{return!!e()}catch(e){return!0}},gP=!hP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),vP=Function.prototype.call,yP=vP.bind?vP.bind(vP):function(){return vP.apply(vP,arguments)},mP={}.propertyIsEnumerable,bP=Object.getOwnPropertyDescriptor,wP={f:bP&&!mP.call({1:2},1)?function(e){var t=bP(this,e);return!!t&&t.enumerable}:mP},xP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},EP=Function.prototype,DP=EP.bind,SP=EP.call,CP=DP&&DP.bind(SP),AP=DP?function(e){return e&&CP(SP,e)}:function(e){return e&&function(){return SP.apply(e,arguments)}},OP=AP({}.toString),kP=AP("".slice),BP=function(e){return kP(OP(e),8,-1)},FP=pP.Object,TP=AP("".split),_P=hP((function(){return!FP("z").propertyIsEnumerable(0)}))?function(e){return"String"==BP(e)?TP(e,""):FP(e)}:FP,PP=pP.TypeError,jP=function(e){if(null==e)throw PP("Can't call method on "+e);return e},NP=function(e){return _P(jP(e))},IP=function(e){return"function"==typeof e},LP=function(e){return"object"==typeof e?null!==e:IP(e)},RP=function(e){return IP(e)?e:void 0},MP=function(e,t){return arguments.length<2?RP(pP[e]):pP[e]&&pP[e][t]},zP=AP({}.isPrototypeOf),HP=MP("navigator","userAgent")||"",$P=pP.process,VP=pP.Deno,UP=$P&&$P.versions||VP&&VP.version,WP=UP&&UP.v8;WP&&(fP=(cP=WP.split("."))[0]>0&&cP[0]<4?1:+(cP[0]+cP[1])),!fP&&HP&&(!(cP=HP.match(/Edge\/(\d+)/))||cP[1]>=74)&&(cP=HP.match(/Chrome\/(\d+)/))&&(fP=+cP[1]);var GP=fP,qP=!!Object.getOwnPropertySymbols&&!hP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&GP&&GP<41})),KP=qP&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,YP=pP.Object,XP=KP?function(e){return"symbol"==typeof e}:function(e){var t=MP("Symbol");return IP(t)&&zP(t.prototype,YP(e))},ZP=pP.String,JP=function(e){try{return ZP(e)}catch(e){return"Object"}},QP=pP.TypeError,ej=function(e){if(IP(e))return e;throw QP(JP(e)+" is not a function")},tj=function(e,t){var n=e[t];return null==n?void 0:ej(n)},nj=pP.TypeError,rj=Object.defineProperty,oj=function(e,t){try{rj(pP,e,{value:t,configurable:!0,writable:!0})}catch(n){pP[e]=t}return t},ij=pP["__core-js_shared__"]||oj("__core-js_shared__",{}),aj=lP((function(e){(e.exports=function(e,t){return ij[e]||(ij[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),uj=pP.Object,sj=function(e){return uj(jP(e))},lj=AP({}.hasOwnProperty),cj=Object.hasOwn||function(e,t){return lj(sj(e),t)},fj=0,dj=Math.random(),pj=AP(1..toString),hj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pj(++fj+dj,36)},gj=aj("wks"),vj=pP.Symbol,yj=vj&&vj.for,mj=KP?vj:vj&&vj.withoutSetter||hj,bj=function(e){if(!cj(gj,e)||!qP&&"string"!=typeof gj[e]){var t="Symbol."+e;qP&&cj(vj,e)?gj[e]=vj[e]:gj[e]=KP&&yj?yj(t):mj(t)}return gj[e]},wj=pP.TypeError,xj=bj("toPrimitive"),Ej=function(e){var t=function(e,t){if(!LP(e)||XP(e))return e;var n,r=tj(e,xj);if(r){if(void 0===t&&(t="default"),n=yP(r,e,t),!LP(n)||XP(n))return n;throw wj("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&IP(n=e.toString)&&!LP(r=yP(n,e)))return r;if(IP(n=e.valueOf)&&!LP(r=yP(n,e)))return r;if("string"!==t&&IP(n=e.toString)&&!LP(r=yP(n,e)))return r;throw nj("Can't convert object to primitive value")}(e,t)}(e,"string");return XP(t)?t:t+""},Dj=pP.document,Sj=LP(Dj)&&LP(Dj.createElement),Cj=function(e){return Sj?Dj.createElement(e):{}},Aj=!gP&&!hP((function(){return 7!=Object.defineProperty(Cj("div"),"a",{get:function(){return 7}}).a})),Oj=Object.getOwnPropertyDescriptor,kj={f:gP?Oj:function(e,t){if(e=NP(e),t=Ej(t),Aj)try{return Oj(e,t)}catch(e){}if(cj(e,t))return xP(!yP(wP.f,e,t),e[t])}},Bj=pP.String,Fj=pP.TypeError,Tj=function(e){if(LP(e))return e;throw Fj(Bj(e)+" is not an object")},_j=pP.TypeError,Pj=Object.defineProperty,jj={f:gP?Pj:function(e,t,n){if(Tj(e),t=Ej(t),Tj(n),Aj)try{return Pj(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _j("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Nj=gP?function(e,t,n){return jj.f(e,t,xP(1,n))}:function(e,t,n){return e[t]=n,e},Ij=AP(Function.toString);IP(ij.inspectSource)||(ij.inspectSource=function(e){return Ij(e)});var Lj,Rj,Mj,zj=ij.inspectSource,Hj=pP.WeakMap,$j=IP(Hj)&&/native code/.test(zj(Hj)),Vj=aj("keys"),Uj=function(e){return Vj[e]||(Vj[e]=hj(e))},Wj={},Gj=pP.TypeError,qj=pP.WeakMap;if($j||ij.state){var Kj=ij.state||(ij.state=new qj),Yj=AP(Kj.get),Xj=AP(Kj.has),Zj=AP(Kj.set);Lj=function(e,t){if(Xj(Kj,e))throw new Gj("Object already initialized");return t.facade=e,Zj(Kj,e,t),t},Rj=function(e){return Yj(Kj,e)||{}},Mj=function(e){return Xj(Kj,e)}}else{var Jj=Uj("state");Wj[Jj]=!0,Lj=function(e,t){if(cj(e,Jj))throw new Gj("Object already initialized");return t.facade=e,Nj(e,Jj,t),t},Rj=function(e){return cj(e,Jj)?e[Jj]:{}},Mj=function(e){return cj(e,Jj)}}var Qj={set:Lj,get:Rj,has:Mj,enforce:function(e){return Mj(e)?Rj(e):Lj(e,{})},getterFor:function(e){return function(t){var n;if(!LP(t)||(n=Rj(t)).type!==e)throw Gj("Incompatible receiver, "+e+" required");return n}}},eN=Function.prototype,tN=gP&&Object.getOwnPropertyDescriptor,nN=cj(eN,"name"),rN={EXISTS:nN,PROPER:nN&&"something"===function(){}.name,CONFIGURABLE:nN&&(!gP||gP&&tN(eN,"name").configurable)},oN=lP((function(e){var t=rN.CONFIGURABLE,n=Qj.get,r=Qj.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;IP(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cj(i,"name")||t&&i.name!==f)&&Nj(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==pP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Nj(e,n,i)):l?e[n]=i:oj(n,i)})(Function.prototype,"toString",(function(){return IP(this)&&n(this).source||zj(this)}))})),iN=Math.ceil,aN=Math.floor,uN=function(e){var t=+e;return t!=t||0===t?0:(t>0?aN:iN)(t)},sN=Math.max,lN=Math.min,cN=function(e,t){var n=uN(e);return n<0?sN(n+t,0):lN(n,t)},fN=Math.min,dN=function(e){return e>0?fN(uN(e),9007199254740991):0},pN=function(e){return dN(e.length)},hN=function(e){return function(t,n,r){var o,i=NP(t),a=pN(i),u=cN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},gN={includes:hN(!0),indexOf:hN(!1)},vN=gN.indexOf,yN=AP([].push),mN=function(e,t){var n,r=NP(e),o=0,i=[];for(n in r)!cj(Wj,n)&&cj(r,n)&&yN(i,n);for(;t.length>o;)cj(r,n=t[o++])&&(~vN(i,n)||yN(i,n));return i},bN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wN=bN.concat("length","prototype"),xN={f:Object.getOwnPropertyNames||function(e){return mN(e,wN)}},EN={f:Object.getOwnPropertySymbols},DN=AP([].concat),SN=MP("Reflect","ownKeys")||function(e){var t=xN.f(Tj(e)),n=EN.f;return n?DN(t,n(e)):t},CN=function(e,t){for(var n=SN(t),r=jj.f,o=kj.f,i=0;i<n.length;i++){var a=n[i];cj(e,a)||r(e,a,o(t,a))}},AN=/#|\.prototype\./,ON=function(e,t){var n=BN[kN(e)];return n==TN||n!=FN&&(IP(t)?hP(t):!!t)},kN=ON.normalize=function(e){return String(e).replace(AN,".").toLowerCase()},BN=ON.data={},FN=ON.NATIVE="N",TN=ON.POLYFILL="P",_N=ON,PN=kj.f,jN=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?pP:l?pP[u]||oj(u,{}):(pP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=PN(n,r))&&a.value:n[r],!_N(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;CN(i,o)}(e.sham||o&&o.sham)&&Nj(i,"sham",!0),oN(n,r,i,e)}},NN=AP(AP.bind),IN=Array.isArray||function(e){return"Array"==BP(e)},LN={};LN[bj("toStringTag")]="z";var RN="[object z]"===String(LN),MN=bj("toStringTag"),zN=pP.Object,HN="Arguments"==BP(function(){return arguments}()),$N=RN?BP:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=zN(e),MN))?n:HN?BP(t):"Object"==(r=BP(t))&&IP(t.callee)?"Arguments":r},VN=function(){},UN=[],WN=MP("Reflect","construct"),GN=/^\s*(?:class|function)\b/,qN=AP(GN.exec),KN=!GN.exec(VN),YN=function(e){if(!IP(e))return!1;try{return WN(VN,UN,e),!0}catch(e){return!1}},XN=!WN||hP((function(){var e;return YN(YN.call)||!YN(Object)||!YN((function(){e=!0}))||e}))?function(e){if(!IP(e))return!1;switch($N(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return KN||!!qN(GN,zj(e))}:YN,ZN=bj("species"),JN=pP.Array,QN=function(e,t){return new(function(e){var t;return IN(e)&&(t=e.constructor,(XN(t)&&(t===JN||IN(t.prototype))||LP(t)&&null===(t=t[ZN]))&&(t=void 0)),void 0===t?JN:t}(e))(0===t?0:t)},eI=AP([].push),tI=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=sj(s),g=_P(h),v=function(e,t){return ej(e),void 0===t?e:NN?NN(e,t):function(){return e.apply(t,arguments)}}(l,c),y=pN(g),m=0,b=f||QN,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:eI(w,d)}else switch(e){case 4:return!1;case 7:eI(w,d)}return i?-1:r||o?o:w}},nI={forEach:tI(0),map:tI(1),filter:tI(2),some:tI(3),every:tI(4),find:tI(5),findIndex:tI(6),filterReject:tI(7)},rI=bj("species"),oI=function(e){return GP>=51||!hP((function(){var t=[];return(t.constructor={})[rI]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},iI=nI.filter;jN({target:"Array",proto:!0,forced:!oI("filter")},{filter:function(e){return iI(this,e,arguments.length>1?arguments[1]:void 0)}});var aI=RN?{}.toString:function(){return"[object "+$N(this)+"]"};RN||oN(Object.prototype,"toString",aI,{unsafe:!0});var uI,sI=pP.String,lI=function(e){if("Symbol"===$N(e))throw TypeError("Cannot convert a Symbol value to a string");return sI(e)},cI=function(){var e=Tj(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},fI=pP.RegExp,dI=hP((function(){var e=fI("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pI=dI||hP((function(){return!fI("a","y").sticky})),hI={BROKEN_CARET:dI||hP((function(){var e=fI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:pI,UNSUPPORTED_Y:dI},gI=Object.keys||function(e){return mN(e,bN)},vI=gP?Object.defineProperties:function(e,t){Tj(e);for(var n,r=NP(t),o=gI(t),i=o.length,a=0;i>a;)jj.f(e,n=o[a++],r[n]);return e},yI=MP("document","documentElement"),mI=Uj("IE_PROTO"),bI=function(){},wI=function(e){return"<script>"+e+"<\/script>"},xI=function(e){e.write(wI("")),e.close();var t=e.parentWindow.Object;return e=null,t},EI=function(){try{uI=new ActiveXObject("htmlfile")}catch(e){}var e,t;EI="undefined"!=typeof document?document.domain&&uI?xI(uI):((t=Cj("iframe")).style.display="none",yI.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wI("document.F=Object")),e.close(),e.F):xI(uI);for(var n=bN.length;n--;)delete EI.prototype[bN[n]];return EI()};Wj[mI]=!0;var DI,SI,CI=Object.create||function(e,t){var n;return null!==e?(bI.prototype=Tj(e),n=new bI,bI.prototype=null,n[mI]=e):n=EI(),void 0===t?n:vI(n,t)},AI=pP.RegExp,OI=hP((function(){var e=AI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),kI=pP.RegExp,BI=hP((function(){var e=kI("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),FI=Qj.get,TI=aj("native-string-replace",String.prototype.replace),_I=RegExp.prototype.exec,PI=_I,jI=AP("".charAt),NI=AP("".indexOf),II=AP("".replace),LI=AP("".slice),RI=(SI=/b*/g,yP(_I,DI=/a/,"a"),yP(_I,SI,"a"),0!==DI.lastIndex||0!==SI.lastIndex),MI=hI.BROKEN_CARET,zI=void 0!==/()??/.exec("")[1];(RI||zI||MI||OI||BI)&&(PI=function(e){var t,n,r,o,i,a,u,s=this,l=FI(s),c=lI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=yP(PI,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=MI&&s.sticky,h=yP(cI,s),g=s.source,v=0,y=c;if(p&&(h=II(h,"y",""),-1===NI(h,"g")&&(h+="g"),y=LI(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==jI(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),zI&&(n=new RegExp("^"+g+"$(?!\\s)",h)),RI&&(r=s.lastIndex),o=yP(_I,p?n:s,y),p?o?(o.input=LI(o.input,v),o[0]=LI(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:RI&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),zI&&o&&o.length>1&&yP(TI,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=CI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var HI=PI;jN({target:"RegExp",proto:!0,forced:/./.exec!==HI},{exec:HI});var $I=Function.prototype,VI=$I.apply,UI=$I.bind,WI=$I.call,GI="object"==typeof Reflect&&Reflect.apply||(UI?WI.bind(VI):function(){return WI.apply(VI,arguments)}),qI=bj("species"),KI=RegExp.prototype,YI=function(e,t,n,r){var o=bj(e),i=!hP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!hP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[qI]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=AP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=AP(e),s=t.exec;return s===HI||s===KI.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));oN(String.prototype,e,s[0]),oN(KI,o,s[1])}r&&Nj(KI[o],"sham",!0)},XI=AP("".charAt),ZI=AP("".charCodeAt),JI=AP("".slice),QI=function(e){return function(t,n){var r,o,i=lI(jP(t)),a=uN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ZI(i,a))<55296||r>56319||a+1===u||(o=ZI(i,a+1))<56320||o>57343?e?XI(i,a):r:e?JI(i,a,a+2):o-56320+(r-55296<<10)+65536}},eL=(QI(!1),QI(!0)),tL=function(e,t,n){return t+(n?eL(e,t).length:1)},nL=Math.floor,rL=AP("".charAt),oL=AP("".replace),iL=AP("".slice),aL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,uL=/\$([$&'`]|\d{1,2})/g,sL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=uL;return void 0!==o&&(o=sj(o),s=aL),oL(i,s,(function(i,s){var l;switch(rL(s,0)){case"$":return"$";case"&":return e;case"`":return iL(t,0,n);case"'":return iL(t,a);case"<":l=o[iL(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=nL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?rL(s,1):r[f-1]+rL(s,1):i}l=r[c-1]}return void 0===l?"":l}))},lL=pP.TypeError,cL=function(e,t){var n=e.exec;if(IP(n)){var r=yP(n,e,t);return null!==r&&Tj(r),r}if("RegExp"===BP(e))return yP(HI,e,t);throw lL("RegExp#exec called on incompatible receiver")},fL=bj("replace"),dL=Math.max,pL=Math.min,hL=AP([].concat),gL=AP([].push),vL=AP("".indexOf),yL=AP("".slice),mL="$0"==="a".replace(/./,"$0"),bL=!!/./[fL]&&""===/./[fL]("a","$0");YI("replace",(function(e,t,n){var r=bL?"$":"$0";return[function(e,n){var r=jP(this),o=null==e?void 0:tj(e,fL);return o?yP(o,e,r,n):yP(t,lI(r),e,n)},function(e,o){var i=Tj(this),a=lI(e);if("string"==typeof o&&-1===vL(o,r)&&-1===vL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=IP(o);s||(o=lI(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=cL(i,a);if(null===d)break;if(gL(f,d),!l)break;""===lI(d[0])&&(i.lastIndex=tL(a,dN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=lI((d=f[v])[0]),m=dL(pL(uN(d.index),a.length),0),b=[],w=1;w<d.length;w++)gL(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=hL([y],b,m,a);void 0!==x&&gL(E,x);var D=lI(GI(o,void 0,E))}else D=sL(y,a,m,b,x,o);m>=g&&(h+=yL(a,g,m)+D,g=m+y.length)}return h+yL(a,g)}]}),!!hP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!mL||bL);var wL=bj("unscopables"),xL=Array.prototype;null==xL[wL]&&jj.f(xL,wL,{configurable:!0,value:CI(null)});var EL=function(e){xL[wL][e]=!0},DL=nI.find,SL=!0;"find"in[]&&Array(1).find((function(){SL=!1})),jN({target:"Array",proto:!0,forced:SL},{find:function(e){return DL(this,e,arguments.length>1?arguments[1]:void 0)}}),EL("find");var CL=bj("match"),AL=function(e){var t;return LP(e)&&(void 0!==(t=e[CL])?!!t:"RegExp"==BP(e))},OL=pP.TypeError,kL=bj("species"),BL=function(e,t,n){var r=Ej(t);r in e?jj.f(e,r,xP(0,n)):e[r]=n},FL=pP.Array,TL=Math.max,_L=function(e,t,n){for(var r=pN(e),o=cN(t,r),i=cN(void 0===n?r:n,r),a=FL(TL(i-o,0)),u=0;o<i;o++,u++)BL(a,u,e[o]);return a.length=u,a},PL=hI.UNSUPPORTED_Y,jL=Math.min,NL=[].push,IL=AP(/./.exec),LL=AP(NL),RL=AP("".slice);YI("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=lI(jP(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!AL(e))return yP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=yP(HI,f,r))&&!((a=f.lastIndex)>c&&(LL(s,RL(r,c,i.index)),i.length>1&&i.index<r.length&&GI(NL,s,_L(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&IL(f,"")||LL(s,""):LL(s,RL(r,c)),s.length>o?_L(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:yP(t,this,e,n)}:t,[function(t,n){var o=jP(this),i=null==t?void 0:tj(t,e);return i?yP(i,t,o,n):yP(r,lI(o),t,n)},function(e,o){var i=Tj(this),a=lI(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=Tj(e).constructor;return void 0===r||null==(n=Tj(r)[kL])?t:function(e){if(XN(e))return e;throw OL(JP(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(PL?"g":"y"),f=new s(PL?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===cL(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=PL?0:h;var v,y=cL(f,PL?RL(a,h):a);if(null===y||(v=jL(dN(f.lastIndex+(PL?h:0)),a.length))===p)h=tL(a,h,l);else{if(LL(g,RL(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(LL(g,y[m]),g.length===d)return g;h=p=v}}return LL(g,RL(a,p)),g}]}),!!hP((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),PL);var ML="\t\n\v\f\r                 \u2028\u2029\ufeff",zL=AP("".replace),HL="["+ML+"]",$L=RegExp("^"+HL+HL+"*"),VL=RegExp(HL+HL+"*$"),UL=function(e){return function(t){var n=lI(jP(t));return 1&e&&(n=zL(n,$L,"")),2&e&&(n=zL(n,VL,"")),n}},WL={start:UL(1),end:UL(2),trim:UL(3)},GL=rN.PROPER,qL=WL.trim;function KL(e){return 0===gp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function YL(e){return 0===e.length?"":e[0].outerHTML}function XL(e){return e.length?e[0].tagName.toLowerCase():""}function ZL(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}jN({target:"String",proto:!0,forced:hP((function(){return!!ML.trim()||"​…᠎"!=="​…᠎".trim()||GL&&"trim"!==ML.trim.name}))},{trim:function(){return qL(this)}}),jN({global:!0},{globalThis:pP}),Fp&&(gp.fn.css=Fp),Ip&&(gp.fn.append=Ip),Lp&&(gp.fn.prepend=Lp),vp&&(gp.fn.addClass=vp),yp&&(gp.fn.removeClass=yp),mp&&(gp.fn.hasClass=mp),Dp&&(gp.fn.on=Dp),Sp&&(gp.fn.off=Sp),qp&&(gp.fn.focus=qp),bp&&(gp.fn.attr=bp),wp&&(gp.fn.removeAttr=wp),kp&&(gp.fn.hide=kp),Bp&&(gp.fn.show=Bp),Mp&&(gp.fn.parents=Mp),xp&&(gp.fn.dataset=xp),Ep&&(gp.fn.val=Ep),jp&&(gp.fn.text=jp),Pp&&(gp.fn.html=Pp),Hp&&(gp.fn.children=Hp),$p&&(gp.fn.remove=$p),zp&&(gp.fn.find=zp),Cp&&(gp.fn.width=Cp),Ap&&(gp.fn.height=Ap),_p&&(gp.fn.filter=_p),Vp&&(gp.fn.empty=Vp);var JL=function(e,t){return(JL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function QL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}JL(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var eR=function(){return(eR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tR(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function nR(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function rR(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oR(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function iR(e){var t=oR(pf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!uf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==mf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Lf.isText(o[0])&&(ed.setNodes(e,{type:"paragraph"}),!0)}var aR={renderElems:[uP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}}],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){iR(r)||t(e)},r.deleteForward=function(e){iR(r)||n(e)},r}},uR=/"/g,sR=AP("".replace),lR=function(e,t,n,r){var o=lI(jP(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+sR(lI(r),uR,"&quot;")+'"'),i+">"+o+"</"+t+">"},cR=function(e){return hP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function fR(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function dR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}jN({target:"String",proto:!0,forced:cR("bold")},{bold:function(){return lR(this,"b","","")}}),jN({target:"String",proto:!0,forced:cR("italics")},{italics:function(){return lR(this,"i","","")}}),jN({target:"String",proto:!0,forced:cR("sub")},{sub:function(){return lR(this,"sub","","")}}),jN({target:"String",proto:!0,forced:cR("sup")},{sup:function(){return lR(this,"sup","","")}});var pR={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},hR=Cj("span").classList,gR=hR&&hR.constructor&&hR.constructor.prototype,vR=gR===Object.prototype?void 0:gR,yR=function(e,t){var n=[][e];return!!n&&hP((function(){n.call(null,t||function(){throw 1},1)}))},mR=nI.forEach,bR=yR("forEach")?[].forEach:function(e){return mR(this,e,arguments.length>1?arguments[1]:void 0)},wR=function(e){if(e&&e.forEach!==bR)try{Nj(e,"forEach",bR)}catch(t){e.forEach=bR}};for(var xR in pR)pR[xR]&&wR(pP[xR]&&pP[xR].prototype);function ER(e,t){return null==e.selection||!!oR(pf.nodes(e,{match:function(t){return"pre"===aO.getNodeType(t)||!!pf.isVoid(e,t)},universal:!0}),1)[0]}function DR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&pf.removeMark(e,t)}))}wR(vR),jN({target:"Object",stat:!0,forced:hP((function(){gI(1)}))},{keys:function(e){return gI(sj(e))}});var SR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=pf.marks(e);return n?n[t]:!!oR(pf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return ER(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),CR='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',AR='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',OR='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',kR='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',BR='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',FR='<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>',TR='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',_R='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',PR='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',jR='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',NR='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',IR='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',LR='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',RR='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',MR='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',zR='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',HR='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',$R='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',VR='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',UR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=H_("textStyle.bold"),t.iconSvg=CR,t.hotkey="mod+b",t}return QL(t,e),t}(SR),WR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=H_("textStyle.code"),t.iconSvg=BR,t.hotkey="mod+e",t}return QL(t,e),t}(SR),GR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=H_("textStyle.italic"),t.iconSvg=OR,t.hotkey="mod+i",t}return QL(t,e),t}(SR),qR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=H_("textStyle.through"),t.iconSvg=kR,t.hotkey="mod+shift+x",t}return QL(t,e),t}(SR),KR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=H_("textStyle.underline"),t.iconSvg=AR,t.hotkey="mod+u",t}return QL(t,e),t}(SR),YR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=H_("textStyle.sub"),t.iconSvg=VR,t.hotkey="",t}return QL(t,e),t}(SR),XR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=H_("textStyle.sup"),t.iconSvg=$R,t.hotkey="",t}return QL(t,e),t}(SR),ZR=function(){function e(){this.title=H_("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return ER(e)},e.prototype.exec=function(e,t){var n,r,o=pf.nodes(e,{match:function(e){return Lf.isText(e)},universal:!0});try{for(var i=rR(o),a=i.next();!a.done;a=i.next())DR(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),JR={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=tg("strong",null,c)),a&&(c=tg("code",null,c)),o&&(c=tg("em",null,c)),i&&(c=tg("u",null,c)),u&&(c=tg("s",null,c)),s&&(c=tg("sub",null,c)),l&&(c=tg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new UR}},{key:"underline",factory:function(){return new KR}},{key:"italic",factory:function(){return new GR}},{key:"through",factory:function(){return new qR}},{key:"code",factory:function(){return new WR}},{key:"sub",factory:function(){return new YR}},{key:"sup",factory:function(){return new XR}},{key:"clearStyle",factory:function(){return new ZR}}],styleToHtml:function(e,t){if(!Lf.isText(e))return t;if(KL(t))return fR(e,t);var n=gp(t);if("br"===XL(n))return fR(e,"<br>");var r=n.html();return r=fR(e,r),n.html(r),YL(n)},parseStyleHtml:function(e,t,n){var r=gp(e);if(!Lf.isText(t))return t;var o=t;return dR(r,"b,strong")&&(o.bold=!0),dR(r,"i,em")&&(o.italic=!0),dR(r,"u")&&(o.underline=!0),dR(r,"s,strike")&&(o.through=!0),dR(r,"sub")&&(o.sub=!0),dR(r,"sup")&&(o.sup=!0),dR(r,"code")&&(o.code=!0),o}};function QR(e){return function(t,n,r){return tg("h"+e,null,n)}}var eM={type:"header1",renderElem:QR(1)},tM={type:"header2",renderElem:QR(2)},nM={type:"header3",renderElem:QR(3)},rM={type:"header4",renderElem:QR(4)},oM={type:"header5",renderElem:QR(5)},iM=rN.PROPER,aM=RegExp.prototype,uM=aM.toString,sM=AP(cI),lM=hP((function(){return"/a/b"!=uM.call({source:"a",flags:"b"})})),cM=iM&&"toString"!=uM.name;(lM||cM)&&oN(RegExp.prototype,"toString",(function(){var e=Tj(this),t=lI(e.source),n=e.flags;return"/"+t+"/"+lI(void 0===n&&zP(aM,e)&&!("flags"in aM)?sM(e):n)}),{unsafe:!0});var fM,dM=pP.TypeError,pM=function(e){if(AL(e))throw dM("The method doesn't accept regular expressions");return e},hM=bj("match"),gM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[hM]=!1,"/./"[e](t)}catch(e){}}return!1},vM=kj.f,yM=AP("".startsWith),mM=AP("".slice),bM=Math.min,wM=gM("startsWith");function xM(e){var t=oR(pf.nodes(e,{match:function(e){return aO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=oR(t,1)[0];return aO.getNodeType(n)}function EM(e){return null==e.selection||!oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function DM(e,t){t&&ed.setNodes(e,{type:t})}jN({target:"String",proto:!0,forced:!(!wM&&(fM=vM(String.prototype,"startsWith"),fM&&!fM.writable)||wM)},{startsWith:function(e){var t=lI(jP(this));pM(e);var n=dN(bM(arguments.length>1?arguments[1]:void 0,t.length)),r=lI(e);return yM?yM(t,r,n):mM(t,n,n+r.length)===r}});var SM=function(){function e(){this.title=H_("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:H_("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return xM(e)},e.prototype.isDisabled=function(e){return EM(e)},e.prototype.exec=function(e,t){DM(e,t.toString())},e}(),CM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return xM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return EM(e)},e.prototype.exec=function(e,t){var n=this.type;DM(e,t===n?"paragraph":n)},e}(),AM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return QL(t,e),t}(CM),OM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return QL(t,e),t}(CM),kM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return QL(t,e),t}(CM),BM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return QL(t,e),t}(CM),FM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return QL(t,e),t}(CM),TM={key:"headerSelect",factory:function(){return new SM}},_M={key:"header1",factory:function(){return new AM}},PM={key:"header2",factory:function(){return new OM}},jM={key:"header3",factory:function(){return new kM}},NM={key:"header4",factory:function(){return new BM}},IM={key:"header5",factory:function(){return new FM}};function LM(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function RM(e){return function(t,n,r){var o=gp(t);return 0===(n=n.filter((function(e){return!!Lf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var MM={renderElems:[eM,tM,nM,rM,oM],elemsToHtml:[{type:"header1",elemToHtml:LM(1)},{type:"header2",elemToHtml:LM(2)},{type:"header3",elemToHtml:LM(3)},{type:"header4",elemToHtml:LM(4)},{type:"header5",elemToHtml:LM(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:RM(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:RM(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:RM(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:RM(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:RM(5)}],menus:[TM,_M,PM,jM,NM,IM],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=oR(pf.nodes(n,{match:function(e){return aO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&aO.isSelectionAtLineEnd(e,r[1])?ed.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},zM=Object.assign,HM=Object.defineProperty,$M=AP([].concat),VM=!zM||hP((function(){if(gP&&1!==zM({b:1},zM(HM({},"a",{enumerable:!0,get:function(){HM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=zM({},e)[n]||gI(zM({},t)).join("")!=r}))?function(e,t){for(var n=sj(e),r=arguments.length,o=1,i=EN.f,a=wP.f;r>o;)for(var u,s=_P(arguments[o++]),l=i?$M(gI(s),i(s)):gI(s),c=l.length,f=0;c>f;)u=l[f++],gP&&!yP(a,s,u)||(n[u]=s[u]);return n}:zM;function UM(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}jN({target:"Object",stat:!0,forced:Object.assign!==VM},{assign:VM});var WM={selector:"font",preParseHtml:function(e){var t=gp(e);if("font"!==XL(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},GM=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=pf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!oR(pf.nodes(e,{match:function(t){return"pre"===aO.getNodeType(t)||!!pf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=gp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=gp(r).attr("data-value");"0"===o?pf.removeMark(e,t):pf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=gp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=gp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=H_("color.default")),"bgColor"===t&&(a=H_("color.clear"));var u=gp('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),qM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("color.color"),t.iconSvg=_R,t.mark="color",t}return QL(t,e),t}(GM),KM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("color.bgColor"),t.iconSvg=PR,t.mark="bgColor",t}return QL(t,e),t}(GM),YM=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],XM={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&UM(i,{color:r}),o&&UM(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Lf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((KL(t)||"span"!==XL(n=gp(t)))&&(n=gp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),YL(n)):t},preParseHtml:[WM],parseStyleHtml:function(e,t,n){var r=gp(e);if(!Lf.isText(t))return t;var o=t,i=ZL(r,"color");i&&(o.color=i);var a=ZL(r,"background-color");return a||(a=ZL(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new qM},config:{colors:YM}},{key:"bgColor",factory:function(){return new KM},config:{colors:YM}}]},ZM=/^(?:\w+:)?\/\/(\S+)$/,JM=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,QM=/^[^\s\.]+\.\S{2,}$/,ez=gN.includes;function tz(e){return void 0===e&&(e="r"),e+"-"+ch()}function nz(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function rz(e,t,n,r){return tR(this,void 0,void 0,(function(){var o,i;return nR(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function oz(e,t,n){return tR(this,void 0,void 0,(function(){var r;return nR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function iz(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function az(e,t){return{type:"link",url:nz(e),children:t?[{text:t}]:[]}}function uz(e,t,n){return tR(this,void 0,void 0,(function(){var r,o,i;return nR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),iz(e)?[2]:[4,rz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,oz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Ff.isCollapsed(o)?(e.insertText(" "),i=az(r,t),ed.insertNodes(e,i),e.insertFragment([{text:" "}])):pf.string(e,o)!==t?(e.deleteFragment(),i=az(r,t),ed.insertNodes(e,i)):(i=az(r),ed.wrapNodes(e,i,{split:!0}),ed.collapse(e,{edge:"end"}))),[2]}}))}))}jN({target:"Array",proto:!0},{includes:function(e){return ez(this,e,arguments.length>1?arguments[1]:void 0)}}),EL("includes");var sz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return tg("a",{href:o,target:void 0===i?"_blank":i},t)}},lz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function cz(){return tz("w-e-insert-link")}var fz=function(){function e(){this.title=H_("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=cz(),this.urlInputId=cz(),this.buttonId=cz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return iz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=oR(AT(H_("link.text"),r),2),u=a[0],s=gp(a[1]),l=oR(AT(H_("link.url"),o),2),c=l[0],f=gp(l[1]),d=oR(OT(i,H_("common.ok")),1)[0];if(null==this.$content){var p=gp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();uz(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||Ff.isCollapsed(t))s.val("");else{var g=pf.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function dz(){return tz("w-e-update-link")}var pz=function(){function e(){this.title=H_("link.edit"),this.iconSvg=FR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=dz(),this.buttonId=dz()}return e.prototype.getSelectedLinkElem=function(e){var t=aO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return aO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=oR(AT(H_("link.url"),t),2),o=r[0],i=gp(r[1]),a=oR(OT(n,H_("common.ok")),1)[0];if(null==this.$content){var u=gp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=aO.getSelectedNodeByType(e,"link"),o=r?mf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){tR(this,void 0,void 0,(function(){var r,o;return nR(this,(function(i){switch(i.label){case 0:return n?[4,rz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,oz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:nz(r)},ed.setNodes(e,o,{match:function(e){return aO.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),hz=function(){function e(){this.title=H_("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==aO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||ed.unwrapNodes(e,{match:function(e){return aO.checkNodeType(e,"link")}})},e}(),gz=function(){function e(){this.title=H_("link.view"),this.iconSvg=TR,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=aO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),vz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},yz={renderElems:[sz],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[lz],menus:[{key:"insertLink",factory:function(){return new fz},config:vz},{key:"editLink",factory:function(){return new pz},config:vz},{key:"unLink",factory:function(){return new hz}},{key:"viewLink",factory:function(){return new gz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(ZM);if(!t)return!1;var n=t[1];return!(!n||!JM.test(n)&&!QM.test(n))}(t)){if(!iz(o)){var r=o.selection;if(null!=r){var i=pf.string(o,r);uz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=oR(e,2),n=t[0],i=t[1];return"link"!==aO.getNodeType(n)?r([n,i]):""===mf.string(n)?ed.removeNodes(o,{at:i}):r([n,i])},o}},mz=AP(1..valueOf),bz=pP.RangeError,wz=pP.RangeError,xz=pP.String,Ez=Math.floor,Dz=AP((function(e){var t=lI(jP(this)),n="",r=uN(e);if(r<0||r==1/0)throw bz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Sz=AP("".slice),Cz=AP(1..toFixed),Az=function(e,t,n){return 0===t?n:t%2==1?Az(e,t-1,n*e):Az(e*e,t/2,n)},Oz=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Ez(o/1e7)},kz=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Ez(r/t),r=r%t*1e7},Bz=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=xz(e[t]);n=""===n?r:n+Dz("0",7-r.length)+r}return n};function Fz(e,t){return"w-e-image-container-"+aO.findKey(e,t).id}jN({target:"Number",proto:!0,forced:hP((function(){return"0.000"!==Cz(8e-5,3)||"1"!==Cz(.9,0)||"1.25"!==Cz(1.255,2)||"1000000000000000128"!==Cz(0xde0b6b3a7640080,0)}))||!hP((function(){Cz({})}))},{toFixed:function(e){var t,n,r,o,i=mz(this),a=uN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw wz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return xz(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Az(2,69,1))-69)<0?i*Az(2,-t,1):i/Az(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Oz(u,0,n),r=a;r>=7;)Oz(u,1e7,0),r-=7;for(Oz(u,Az(10,r,1),0),r=t-1;r>=23;)kz(u,1<<23),r-=23;kz(u,1<<r),Oz(u,1,1),kz(u,2),l=Bz(u)}else Oz(u,0,n),Oz(u,1<<-t,0),l=Bz(u)+Dz("0",a);return a>0?s+((o=l.length)<=a?"0."+Dz("0",a-o)+l:Sz(l,0,o-a)+"."+Sz(l,o-a)):s+l}});var Tz={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=aO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=tg("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?function(e,t,n,r){var o=gp("body"),i=Fz(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=gp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=aO.getHoverbar(e);r&&r.hideAndClean()}var h=Ch((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:eR(eR({},t.style),{width:r+"px",height:i+"px"})};ed.setNodes(e,a,{at:aO.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),tg("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=gp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,tg("div",{className:"w-e-image-dragger left-top"}),tg("div",{className:"w-e-image-dragger right-top"}),tg("div",{className:"w-e-image-dragger left-bottom"}),tg("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),tg("div",{id:Fz(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},_z={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:ZL(r,"width"),height:ZL(r,"height")},children:[{text:""}]}}};function Pz(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),tR(this,void 0,void 0,(function(){var i,a;return nR(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function jz(e,t,n){return tR(this,void 0,void 0,(function(){var r;return nR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Nz(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),tR(this,void 0,void 0,(function(){var o,i,a;return nR(this,(function(u){switch(u.label){case 0:return[4,Pz("insertImage",e,t,n,r)];case 1:return u.sent()?[4,jz("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:nz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),aO.getSelectedNodeByType(e,"image")&&e.move(1),Iz(e)||(ed.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function Iz(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||!!oR(pf.nodes(e,{match:function(t){var n=aO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!pf.isVoid(e,t)},universal:!0}),1)[0]}function Lz(){return tz("w-e-insert-image")}var Rz=function(){function e(){this.title=H_("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Lz(),this.altInputId=Lz(),this.hrefInputId=Lz(),this.buttonId=Lz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return Iz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=oR(AT(H_("image.src"),r),2),s=u[0],l=gp(u[1]),c=oR(AT(H_("image.desc"),o),2),f=c[0],d=gp(c[1]),p=oR(AT(H_("image.link"),i),2),h=p[0],g=gp(p[1]),v=oR(OT(a,H_("common.ok")),1)[0];if(null==this.$content){var y=gp("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||Nz(e,t,n,r))},e}(),Mz=function(){function e(){this.title=H_("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==aO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||ed.removeNodes(e,{match:function(e){return aO.checkNodeType(e,"image")}})},e}();function zz(){return tz("w-e-edit-image")}var Hz=function(){function e(){this.title=H_("image.edit"),this.iconSvg=FR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=zz(),this.altInputId=zz(),this.hrefInputId=zz(),this.buttonId=zz()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return aO.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=oR(AT(H_("image.src"),r),2),l=s[0],c=gp(s[1]),f=oR(AT(H_("image.desc"),o),2),d=f[0],p=gp(f[1]),h=oR(AT(H_("image.link"),i),2),g=h[0],v=gp(h[1]),y=oR(OT(a,H_("common.ok")),1)[0];if(null==this.$content){var m=gp("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,x=w.src,E=w.alt,D=void 0===E?"":E,S=w.href,C=void 0===S?"":S;return c.val(x),p.val(D),v.val(C),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),tR(this,void 0,void 0,(function(){var i,a,u,s,l,c;return nR(this,(function(f){switch(f.label){case 0:return[4,Pz("editImage",e,t,n,r)];case 1:return f.sent()?[4,jz("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=aO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:eR(eR({},void 0===u?{}:u),o)},ed.setNodes(e,s,{match:function(e){return aO.checkNodeType(e,"image")}}),l=aO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),$z=function(){function e(){this.title=H_("image.viewLink"),this.iconSvg=TR,this.tag="button"}return e.prototype.getValue=function(e){var t=aO.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),Vz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return aO.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=aO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:eR(eR({},void 0===o?{}:o),{width:this.value,height:""})};ed.setNodes(e,i,{match:function(e){return aO.checkNodeType(e,"image")}})}}},e}(),Uz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return QL(t,e),t}(Vz),Wz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return QL(t,e),t}(Vz),Gz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return QL(t,e),t}(Vz),qz={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Kz={renderElems:[Tz],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[_z],menus:[{key:"insertImage",factory:function(){return new Rz},config:qz},{key:"deleteImage",factory:function(){return new Mz}},{key:"editImage",factory:function(){return new Hz},config:qz},{key:"viewImageLink",factory:function(){return new $z}},{key:"imageWidth30",factory:function(){return new Uz}},{key:"imageWidth50",factory:function(){return new Wz}},{key:"imageWidth100",factory:function(){return new Gz}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},Yz={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),tg("div",{style:{margin:"5px 0"}},tg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},tg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=aO.findPath(n,e),o={checked:t.target.checked};ed.setNodes(n,o,{at:r})}}})),tg("span",null,t))}},Xz=function(){function e(){this.title=H_("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!aO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){if(pf.isVoid(e,t)&&pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);ed.setNodes(e,{type:n?"paragraph":"todo"})},e}(),Zz={renderElems:[Yz],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=gp(e).find("li"),n=gp('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=gp(e);0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}}],menus:[{key:"todo",factory:function(){return new Xz}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Ff.isCollapsed(r)){var o=aO.getSelectedNodeByType(e,"todo");if(o&&0===mf.string(o).length)return void ed.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},Jz={type:"blockquote",renderElem:function(e,t,n){return tg("blockquote",null,t)}},Qz={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},eH=function(){function e(){this.title=H_("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!aO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";ed.setNodes(e,{type:n},{mode:"highest"})}},e}(),tH={key:"blockquote",factory:function(){return new eH}},nH=AP([].slice),rH=oI("slice"),oH=bj("species"),iH=pP.Array,aH=Math.max;jN({target:"Array",proto:!0,forced:!rH},{slice:function(e,t){var n,r,o,i=NP(this),a=pN(i),u=cN(e,a),s=cN(void 0===t?a:t,a);if(IN(i)&&(n=i.constructor,(XN(n)&&(n===iH||IN(n.prototype))||LP(n)&&null===(n=n[oH]))&&(n=void 0),n===iH||void 0===n))return nH(i,u,s);for(r=new(void 0===n?iH:n)(aH(s-u,0)),o=0;u<s;u++,o++)u in i&&BL(r,o,i[u]);return r.length=o,r}});var uH={renderElems:[Jz],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Qz],menus:[tH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=oR(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=aO.findPath(e,a),s=pf.end(e,u);if(Af.equals(s,o.focus)){var l=mf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void ed.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},sH=function(){function e(){this.title=H_("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!oR(pf.nodes(e,{match:function(t){return"pre"===aO.getNodeType(t)||!!pf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=gp('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=gp(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=gp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),lH={menus:[{key:"emotion",factory:function(){return new sH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},cH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},fH={selector:"font",preParseHtml:function(e){var t=gp(e);if("font"!==XL(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",cH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},dH=AP("".indexOf);jN({target:"String",proto:!0,forced:!gM("includes")},{includes:function(e){return!!~dH(lI(jP(this)),lI(pM(e)),arguments.length>1?arguments[1]:void 0)}});var pH,hH,gH=function(e){return e&&e.Math==Math&&e},vH=gH("object"==typeof globalThis&&globalThis)||gH("object"==typeof window&&window)||gH("object"==typeof self&&self)||gH("object"==typeof sP&&sP)||function(){return this}()||Function("return this")(),yH=Function.prototype,mH=yH.apply,bH=yH.bind,wH=yH.call,xH="object"==typeof Reflect&&Reflect.apply||(bH?wH.bind(mH):function(){return wH.apply(mH,arguments)}),EH=Function.prototype,DH=EH.bind,SH=EH.call,CH=DH&&DH.bind(SH),AH=DH?function(e){return e&&CH(SH,e)}:function(e){return e&&function(){return SH.apply(e,arguments)}},OH=function(e){return"function"==typeof e},kH=function(e){try{return!!e()}catch(e){return!0}},BH=!kH((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),FH=Function.prototype.call,TH=FH.bind?FH.bind(FH):function(){return FH.apply(FH,arguments)},_H={}.propertyIsEnumerable,PH=Object.getOwnPropertyDescriptor,jH={f:PH&&!_H.call({1:2},1)?function(e){var t=PH(this,e);return!!t&&t.enumerable}:_H},NH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},IH=AH({}.toString),LH=AH("".slice),RH=function(e){return LH(IH(e),8,-1)},MH=vH.Object,zH=AH("".split),HH=kH((function(){return!MH("z").propertyIsEnumerable(0)}))?function(e){return"String"==RH(e)?zH(e,""):MH(e)}:MH,$H=vH.TypeError,VH=function(e){if(null==e)throw $H("Can't call method on "+e);return e},UH=function(e){return HH(VH(e))},WH=function(e){return"object"==typeof e?null!==e:OH(e)},GH={},qH=function(e){return OH(e)?e:void 0},KH=function(e,t){return arguments.length<2?qH(GH[e])||qH(vH[e]):GH[e]&&GH[e][t]||vH[e]&&vH[e][t]},YH=AH({}.isPrototypeOf),XH=KH("navigator","userAgent")||"",ZH=vH.process,JH=vH.Deno,QH=ZH&&ZH.versions||JH&&JH.version,e$=QH&&QH.v8;e$&&(hH=(pH=e$.split("."))[0]>0&&pH[0]<4?1:+(pH[0]+pH[1])),!hH&&XH&&(!(pH=XH.match(/Edge\/(\d+)/))||pH[1]>=74)&&(pH=XH.match(/Chrome\/(\d+)/))&&(hH=+pH[1]);var t$=hH,n$=!!Object.getOwnPropertySymbols&&!kH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t$&&t$<41})),r$=n$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,o$=vH.Object,i$=r$?function(e){return"symbol"==typeof e}:function(e){var t=KH("Symbol");return OH(t)&&YH(t.prototype,o$(e))},a$=vH.String,u$=vH.TypeError,s$=function(e){if(OH(e))return e;throw u$(function(e){try{return a$(e)}catch(e){return"Object"}}(e)+" is not a function")},l$=vH.TypeError,c$=Object.defineProperty,f$=vH["__core-js_shared__"]||function(e,t){try{c$(vH,e,{value:t,configurable:!0,writable:!0})}catch(n){vH[e]=t}return t}("__core-js_shared__",{}),d$=lP((function(e){(e.exports=function(e,t){return f$[e]||(f$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),p$=vH.Object,h$=function(e){return p$(VH(e))},g$=AH({}.hasOwnProperty),v$=Object.hasOwn||function(e,t){return g$(h$(e),t)},y$=0,m$=Math.random(),b$=AH(1..toString),w$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+b$(++y$+m$,36)},x$=d$("wks"),E$=vH.Symbol,D$=E$&&E$.for,S$=r$?E$:E$&&E$.withoutSetter||w$,C$=function(e){if(!v$(x$,e)||!n$&&"string"!=typeof x$[e]){var t="Symbol."+e;n$&&v$(E$,e)?x$[e]=E$[e]:x$[e]=r$&&D$?D$(t):S$(t)}return x$[e]},A$=vH.TypeError,O$=C$("toPrimitive"),k$=function(e){var t=function(e,t){if(!WH(e)||i$(e))return e;var n,r,o=null==(n=e[O$])?void 0:s$(n);if(o){if(void 0===t&&(t="default"),r=TH(o,e,t),!WH(r)||i$(r))return r;throw A$("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&OH(n=e.toString)&&!WH(r=TH(n,e)))return r;if(OH(n=e.valueOf)&&!WH(r=TH(n,e)))return r;if("string"!==t&&OH(n=e.toString)&&!WH(r=TH(n,e)))return r;throw l$("Can't convert object to primitive value")}(e,t)}(e,"string");return i$(t)?t:t+""},B$=vH.document,F$=WH(B$)&&WH(B$.createElement),T$=function(e){return F$?B$.createElement(e):{}},_$=!BH&&!kH((function(){return 7!=Object.defineProperty(T$("div"),"a",{get:function(){return 7}}).a})),P$=Object.getOwnPropertyDescriptor,j$={f:BH?P$:function(e,t){if(e=UH(e),t=k$(t),_$)try{return P$(e,t)}catch(e){}if(v$(e,t))return NH(!TH(jH.f,e,t),e[t])}},N$=/#|\.prototype\./,I$=function(e,t){var n=R$[L$(e)];return n==z$||n!=M$&&(OH(t)?kH(t):!!t)},L$=I$.normalize=function(e){return String(e).replace(N$,".").toLowerCase()},R$=I$.data={},M$=I$.NATIVE="N",z$=I$.POLYFILL="P",H$=I$,$$=AH(AH.bind),V$=function(e,t){return s$(e),void 0===t?e:$$?$$(e,t):function(){return e.apply(t,arguments)}},U$=vH.String,W$=vH.TypeError,G$=function(e){if(WH(e))return e;throw W$(U$(e)+" is not an object")},q$=vH.TypeError,K$=Object.defineProperty,Y$={f:BH?K$:function(e,t,n){if(G$(e),t=k$(t),G$(n),_$)try{return K$(e,t,n)}catch(e){}if("get"in n||"set"in n)throw q$("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},X$=BH?function(e,t,n){return Y$.f(e,t,NH(1,n))}:function(e,t,n){return e[t]=n,e},Z$=j$.f,J$=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return xH(e,this,arguments)};return t.prototype=e.prototype,t},Q$=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?vH:d?vH[c]:(vH[c]||{}).prototype,g=f?GH:GH[c]||X$(GH,c,{})[c],v=g.prototype;for(o in t)n=!H$(f?o:c+(d?".":"#")+o,e.forced)&&h&&v$(h,o),a=g[o],n&&(u=e.noTargetGet?(l=Z$(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?V$(i,vH):e.wrap&&n?J$(i):p&&OH(i)?AH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&X$(s,"sham",!0),X$(g,o,s),p&&(v$(GH,r=c+"Prototype")||X$(GH,r,{}),X$(GH[r],o,i),e.real&&v&&!v[o]&&X$(v,o,i)))},eV=Array.isArray||function(e){return"Array"==RH(e)},tV=Math.ceil,nV=Math.floor,rV=function(e){var t=+e;return t!=t||0===t?0:(t>0?nV:tV)(t)},oV=Math.min,iV=function(e){return(t=e.length)>0?oV(rV(t),9007199254740991):0;var t},aV=function(e,t,n){var r=k$(t);r in e?Y$.f(e,r,NH(0,n)):e[r]=n},uV={};uV[C$("toStringTag")]="z";var sV="[object z]"===String(uV),lV=C$("toStringTag"),cV=vH.Object,fV="Arguments"==RH(function(){return arguments}()),dV=sV?RH:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=cV(e),lV))?n:fV?RH(t):"Object"==(r=RH(t))&&OH(t.callee)?"Arguments":r},pV=AH(Function.toString);OH(f$.inspectSource)||(f$.inspectSource=function(e){return pV(e)});var hV=f$.inspectSource,gV=function(){},vV=[],yV=KH("Reflect","construct"),mV=/^\s*(?:class|function)\b/,bV=AH(mV.exec),wV=!mV.exec(gV),xV=function(e){if(!OH(e))return!1;try{return yV(gV,vV,e),!0}catch(e){return!1}},EV=!yV||kH((function(){var e;return xV(xV.call)||!xV(Object)||!xV((function(){e=!0}))||e}))?function(e){if(!OH(e))return!1;switch(dV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wV||!!bV(mV,hV(e))}:xV,DV=C$("species"),SV=vH.Array,CV=function(e,t){return new(function(e){var t;return eV(e)&&(t=e.constructor,(EV(t)&&(t===SV||eV(t.prototype))||WH(t)&&null===(t=t[DV]))&&(t=void 0)),void 0===t?SV:t}(e))(0===t?0:t)},AV=C$("species"),OV=C$("isConcatSpreadable"),kV=vH.TypeError,BV=t$>=51||!kH((function(){var e=[];return e[OV]=!1,e.concat()[0]!==e})),FV=t$>=51||!kH((function(){var e=[];return(e.constructor={})[AV]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),TV=function(e){if(!WH(e))return!1;var t=e[OV];return void 0!==t?!!t:eV(e)};Q$({target:"Array",proto:!0,forced:!BV||!FV},{concat:function(e){var t,n,r,o,i,a=h$(this),u=CV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(TV(i=-1===t?a:arguments[t])){if(s+(o=iV(i))>9007199254740991)throw kV("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&aV(u,s,i[n])}else{if(s>=9007199254740991)throw kV("Maximum allowed index exceeded");aV(u,s++,i)}return u.length=s,u}});var _V,PV=vH.String,jV=function(e){if("Symbol"===dV(e))throw TypeError("Cannot convert a Symbol value to a string");return PV(e)},NV=Math.max,IV=Math.min,LV=function(e,t){var n=rV(e);return n<0?NV(n+t,0):IV(n,t)},RV=function(e){return function(t,n,r){var o,i=UH(t),a=iV(i),u=LV(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},MV={includes:RV(!0),indexOf:RV(!1)},zV={},HV=MV.indexOf,$V=AH([].push),VV=function(e,t){var n,r=UH(e),o=0,i=[];for(n in r)!v$(zV,n)&&v$(r,n)&&$V(i,n);for(;t.length>o;)v$(r,n=t[o++])&&(~HV(i,n)||$V(i,n));return i},UV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],WV=Object.keys||function(e){return VV(e,UV)},GV=BH?Object.defineProperties:function(e,t){G$(e);for(var n,r=UH(t),o=WV(t),i=o.length,a=0;i>a;)Y$.f(e,n=o[a++],r[n]);return e},qV=KH("document","documentElement"),KV=d$("keys"),YV=function(e){return KV[e]||(KV[e]=w$(e))},XV=YV("IE_PROTO"),ZV=function(){},JV=function(e){return"<script>"+e+"<\/script>"},QV=function(e){e.write(JV("")),e.close();var t=e.parentWindow.Object;return e=null,t},eU=function(){try{_V=new ActiveXObject("htmlfile")}catch(e){}var e,t;eU="undefined"!=typeof document?document.domain&&_V?QV(_V):((t=T$("iframe")).style.display="none",qV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(JV("document.F=Object")),e.close(),e.F):QV(_V);for(var n=UV.length;n--;)delete eU.prototype[UV[n]];return eU()};zV[XV]=!0;var tU,nU,rU,oU=Object.create||function(e,t){var n;return null!==e?(ZV.prototype=G$(e),n=new ZV,ZV.prototype=null,n[XV]=e):n=eU(),void 0===t?n:GV(n,t)},iU=UV.concat("length","prototype"),aU={f:Object.getOwnPropertyNames||function(e){return VV(e,iU)}},uU=vH.Array,sU=Math.max,lU=aU.f,cU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fU={f:function(e){return cU&&"Window"==RH(e)?function(e){try{return lU(e)}catch(e){return function(e,t,n){for(var r=iV(e),o=LV(void 0,r),i=LV(r,r),a=uU(sU(i-o,0)),u=0;o<i;o++,u++)aV(a,u,e[o]);return a.length=u,a}(cU)}}(e):lU(UH(e))}},dU={f:Object.getOwnPropertySymbols},pU=AH([].slice),hU=function(e,t,n,r){r&&r.enumerable?e[t]=n:X$(e,t,n)},gU={f:C$},vU=Y$.f,yU=function(e){var t=GH.Symbol||(GH.Symbol={});v$(t,e)||vU(t,e,{value:gU.f(e)})},mU=sV?{}.toString:function(){return"[object "+dV(this)+"]"},bU=Y$.f,wU=C$("toStringTag"),xU=function(e,t,n,r){if(e){var o=n?e:e.prototype;v$(o,wU)||bU(o,wU,{configurable:!0,value:t}),r&&!sV&&X$(o,"toString",mU)}},EU=vH.WeakMap,DU=OH(EU)&&/native code/.test(hV(EU)),SU=vH.TypeError,CU=vH.WeakMap;if(DU||f$.state){var AU=f$.state||(f$.state=new CU),OU=AH(AU.get),kU=AH(AU.has),BU=AH(AU.set);tU=function(e,t){if(kU(AU,e))throw new SU("Object already initialized");return t.facade=e,BU(AU,e,t),t},nU=function(e){return OU(AU,e)||{}},rU=function(e){return kU(AU,e)}}else{var FU=YV("state");zV[FU]=!0,tU=function(e,t){if(v$(e,FU))throw new SU("Object already initialized");return t.facade=e,X$(e,FU,t),t},nU=function(e){return v$(e,FU)?e[FU]:{}},rU=function(e){return v$(e,FU)}}var TU={set:tU,get:nU,has:rU,enforce:function(e){return rU(e)?nU(e):tU(e,{})},getterFor:function(e){return function(t){var n;if(!WH(t)||(n=nU(t)).type!==e)throw SU("Incompatible receiver, "+e+" required");return n}}},_U=AH([].push),PU=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=h$(s),g=HH(h),v=V$(l,c),y=iV(g),m=0,b=f||CV,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:_U(w,d)}else switch(e){case 4:return!1;case 7:_U(w,d)}return i?-1:r||o?o:w}},jU=[PU(0),PU(1),PU(2),PU(3),PU(4),PU(5),PU(6),PU(7)][0],NU=YV("hidden"),IU=C$("toPrimitive"),LU=TU.set,RU=TU.getterFor("Symbol"),MU=Object.prototype,zU=vH.Symbol,HU=zU&&zU.prototype,$U=vH.TypeError,VU=vH.QObject,UU=KH("JSON","stringify"),WU=j$.f,GU=Y$.f,qU=fU.f,KU=jH.f,YU=AH([].push),XU=d$("symbols"),ZU=d$("op-symbols"),JU=d$("string-to-symbol-registry"),QU=d$("symbol-to-string-registry"),eW=d$("wks"),tW=!VU||!VU.prototype||!VU.prototype.findChild,nW=BH&&kH((function(){return 7!=oU(GU({},"a",{get:function(){return GU(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=WU(MU,t);r&&delete MU[t],GU(e,t,n),r&&e!==MU&&GU(MU,t,r)}:GU,rW=function(e,t){var n=XU[e]=oU(HU);return LU(n,{type:"Symbol",tag:e,description:t}),BH||(n.description=t),n},oW=function(e,t,n){e===MU&&oW(ZU,t,n),G$(e);var r=k$(t);return G$(n),v$(XU,r)?(n.enumerable?(v$(e,NU)&&e[NU][r]&&(e[NU][r]=!1),n=oU(n,{enumerable:NH(0,!1)})):(v$(e,NU)||GU(e,NU,NH(1,{})),e[NU][r]=!0),nW(e,r,n)):GU(e,r,n)},iW=function(e,t){G$(e);var n=UH(t),r=WV(n).concat(lW(n));return jU(r,(function(t){BH&&!TH(aW,n,t)||oW(e,t,n[t])})),e},aW=function(e){var t=k$(e),n=TH(KU,this,t);return!(this===MU&&v$(XU,t)&&!v$(ZU,t))&&(!(n||!v$(this,t)||!v$(XU,t)||v$(this,NU)&&this[NU][t])||n)},uW=function(e,t){var n=UH(e),r=k$(t);if(n!==MU||!v$(XU,r)||v$(ZU,r)){var o=WU(n,r);return!o||!v$(XU,r)||v$(n,NU)&&n[NU][r]||(o.enumerable=!0),o}},sW=function(e){var t=qU(UH(e)),n=[];return jU(t,(function(e){v$(XU,e)||v$(zV,e)||YU(n,e)})),n},lW=function(e){var t=e===MU,n=qU(t?ZU:UH(e)),r=[];return jU(n,(function(e){!v$(XU,e)||t&&!v$(MU,e)||YU(r,XU[e])})),r};if(n$||(HU=(zU=function(){if(YH(HU,this))throw $U("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?jV(arguments[0]):void 0,t=w$(e),n=function(e){this===MU&&TH(n,ZU,e),v$(this,NU)&&v$(this[NU],t)&&(this[NU][t]=!1),nW(this,t,NH(1,e))};return BH&&tW&&nW(MU,t,{configurable:!0,set:n}),rW(t,e)}).prototype,hU(HU,"toString",(function(){return RU(this).tag})),hU(zU,"withoutSetter",(function(e){return rW(w$(e),e)})),jH.f=aW,Y$.f=oW,j$.f=uW,aU.f=fU.f=sW,dU.f=lW,gU.f=function(e){return rW(C$(e),e)},BH&&GU(HU,"description",{configurable:!0,get:function(){return RU(this).description}})),Q$({global:!0,wrap:!0,forced:!n$,sham:!n$},{Symbol:zU}),jU(WV(eW),(function(e){yU(e)})),Q$({target:"Symbol",stat:!0,forced:!n$},{for:function(e){var t=jV(e);if(v$(JU,t))return JU[t];var n=zU(t);return JU[t]=n,QU[n]=t,n},keyFor:function(e){if(!i$(e))throw $U(e+" is not a symbol");if(v$(QU,e))return QU[e]},useSetter:function(){tW=!0},useSimple:function(){tW=!1}}),Q$({target:"Object",stat:!0,forced:!n$,sham:!BH},{create:function(e,t){return void 0===t?oU(e):iW(oU(e),t)},defineProperty:oW,defineProperties:iW,getOwnPropertyDescriptor:uW}),Q$({target:"Object",stat:!0,forced:!n$},{getOwnPropertyNames:sW,getOwnPropertySymbols:lW}),Q$({target:"Object",stat:!0,forced:kH((function(){dU.f(1)}))},{getOwnPropertySymbols:function(e){return dU.f(h$(e))}}),UU){var cW=!n$||kH((function(){var e=zU();return"[null]"!=UU([e])||"{}"!=UU({a:e})||"{}"!=UU(Object(e))}));Q$({target:"JSON",stat:!0,forced:cW},{stringify:function(e,t,n){var r=pU(arguments),o=t;if((WH(t)||void 0!==e)&&!i$(e))return eV(t)||(t=function(e,t){if(OH(o)&&(t=TH(o,this,e,t)),!i$(t))return t}),r[1]=t,xH(UU,null,r)}})}if(!HU[IU]){var fW=HU.valueOf;hU(HU,IU,(function(e){return TH(fW,this)}))}xU(zU,"Symbol"),zV[NU]=!0,yU("asyncIterator"),yU("hasInstance"),yU("isConcatSpreadable"),yU("iterator"),yU("match"),yU("matchAll"),yU("replace"),yU("search"),yU("species"),yU("split"),yU("toPrimitive"),yU("toStringTag"),yU("unscopables"),xU(vH.JSON,"JSON",!0);var dW,pW,hW,gW=GH.Symbol,vW={},yW=Function.prototype,mW=BH&&Object.getOwnPropertyDescriptor,bW=v$(yW,"name"),wW={EXISTS:bW,PROPER:bW&&"something"===function(){}.name,CONFIGURABLE:bW&&(!BH||BH&&mW(yW,"name").configurable)},xW=!kH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),EW=YV("IE_PROTO"),DW=vH.Object,SW=DW.prototype,CW=xW?DW.getPrototypeOf:function(e){var t=h$(e);if(v$(t,EW))return t[EW];var n=t.constructor;return OH(n)&&t instanceof n?n.prototype:t instanceof DW?SW:null},AW=C$("iterator"),OW=!1;[].keys&&("next"in(hW=[].keys())?(pW=CW(CW(hW)))!==Object.prototype&&(dW=pW):OW=!0);var kW=null==dW||kH((function(){var e={};return dW[AW].call(e)!==e}));dW=kW?{}:oU(dW),OH(dW[AW])||hU(dW,AW,(function(){return this}));var BW={IteratorPrototype:dW,BUGGY_SAFARI_ITERATORS:OW},FW=BW.IteratorPrototype,TW=function(){return this};vH.String,vH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{AH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var _W=wW.PROPER,PW=BW.BUGGY_SAFARI_ITERATORS,jW=C$("iterator"),NW=function(){return this},IW=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=oU(FW,{next:NH(1,n)}),xU(e,o,!1,!0),vW[o]=TW}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!PW&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[jW]||p["@@iterator"]||o&&p[o],g=!PW&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=CW(v.call(new e)))!==Object.prototype&&u.next&&(xU(u,f,!0,!0),vW[f]=NW),_W&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return TH(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(PW||d||!(l in p))&&hU(p,l,s[l]);else Q$({target:t,proto:!0,forced:PW||d},s);return a&&p[jW]!==g&&hU(p,jW,g,{name:o}),vW[t]=g,s},LW=TU.set,RW=TU.getterFor("Array Iterator");IW(Array,"Array",(function(e,t){LW(this,{type:"Array Iterator",target:UH(e),index:0,kind:t})}),(function(){var e=RW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),vW.Arguments=vW.Array;var MW=C$("toStringTag");for(var zW in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var HW=vH[zW],$W=HW&&HW.prototype;$W&&dV($W)!==MW&&X$($W,MW,zW),vW[zW]=vW.Array}var VW=gW;yU("asyncDispose"),yU("dispose"),yU("matcher"),yU("metadata"),yU("observable"),yU("patternMatch"),yU("replaceAll");var UW=VW,WW=AH("".charAt),GW=AH("".charCodeAt),qW=AH("".slice),KW=function(e){return function(t,n){var r,o,i=jV(VH(t)),a=rV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=GW(i,a))<55296||r>56319||a+1===u||(o=GW(i,a+1))<56320||o>57343?e?WW(i,a):r:e?qW(i,a,a+2):o-56320+(r-55296<<10)+65536}},YW=(KW(!1),KW(!0)),XW=TU.set,ZW=TU.getterFor("String Iterator");IW(String,"String",(function(e){XW(this,{type:"String Iterator",string:jV(e),index:0})}),(function(){var e,t=ZW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=YW(n,r),t.index+=e.length,{value:e,done:!1})}));var JW=gU.f("iterator"),QW=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(lP((function(e){function t(n){return"function"==typeof UW&&"symbol"==typeof JW?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof UW&&e.constructor===UW&&e!==UW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),eG=rN.EXISTS,tG=jj.f,nG=Function.prototype,rG=AP(nG.toString),oG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,iG=AP(oG.exec);gP&&!eG&&tG(nG,"name",{configurable:!0,get:function(){try{return iG(oG,rG(this))[1]}catch(e){return""}}});var aG=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=pf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!oR(pf.nodes(e,{match:function(t){return"pre"===aO.getNodeType(t)||!!pf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),uG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("fontSize.title"),t.iconSvg=jR,t.mark="fontSize",t}return QL(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:H_("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===QW(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(aG),sG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("fontFamily.title"),t.iconSvg=NR,t.mark="fontFamily",t.selectPanelWidth=150,t}return QL(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:H_("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===QW(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(aG),lG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&UM(i,{fontSize:r}),o&&UM(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Lf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((KL(t)||"span"!==XL(n=gp(t)))&&(n=gp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),YL(n)):t},preParseHtml:[fH],parseStyleHtml:function(e,t,n){var r=gp(e);if(!Lf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=ZL(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=ZL(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new uG},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new sG},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},cG={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=gp(e),n=ZL(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},fG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=oR(pf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":oR(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),dG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("indent.decrease"),t.iconSvg=IR,t}return QL(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){ed.setNodes(e,{indent:null},{match:function(e){return uf.isElement(e)}})},t}(fG),pG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("indent.increase"),t.iconSvg=LR,t}return QL(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){ed.setNodes(e,{indent:"2em"},{match:function(e){return uf.isElement(e)},mode:"highest"})},t}(fG),hG={renderStyle:function(e,t){if(!uf.isElement(e))return t;var n=e.indent,r=t;return n&&UM(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!uf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=gp(t);return r.css("text-indent",n),YL(r)},preParseHtml:[cG],parseStyleHtml:function(e,t,n){var r=gp(e);if(!uf.isElement(t))return t;var o=t,i=ZL(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new pG}},{key:"delIndent",factory:function(){return new dG}}]},gG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){if(pf.isVoid(e,t)&&pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),vG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("justify.left"),t.iconSvg=RR,t}return QL(t,e),t.prototype.exec=function(e,t){ed.setNodes(e,{textAlign:"left"},{match:function(t){return uf.isElement(t)&&!e.isInline(t)}})},t}(gG),yG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("justify.right"),t.iconSvg=MR,t}return QL(t,e),t.prototype.exec=function(e,t){ed.setNodes(e,{textAlign:"right"},{match:function(t){return uf.isElement(t)&&!e.isInline(t)}})},t}(gG),mG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("justify.center"),t.iconSvg=zR,t}return QL(t,e),t.prototype.exec=function(e,t){ed.setNodes(e,{textAlign:"center"},{match:function(t){return uf.isElement(t)&&!e.isInline(t)}})},t}(gG),bG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("justify.justify"),t.iconSvg=HR,t}return QL(t,e),t.prototype.exec=function(e,t){ed.setNodes(e,{textAlign:"justify"},{match:function(t){return uf.isElement(t)&&!e.isInline(t)}})},t}(gG),wG={renderStyle:function(e,t){if(!uf.isElement(e))return t;var n=e.textAlign,r=t;return n&&UM(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!uf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=gp(t);return r.css("text-align",n),YL(r)},parseStyleHtml:function(e,t,n){var r=gp(e);if(!uf.isElement(t))return t;var o=t,i=ZL(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new vG}},{key:"justifyRight",factory:function(){return new yG}},{key:"justifyCenter",factory:function(){return new mG}},{key:"justifyJustify",factory:function(){return new bG}}]},xG=function(){function e(){this.title=H_("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:H_("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":uf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){ed.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),EG={renderStyle:function(e,t){if(!uf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&UM(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!uf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=gp(t);return r.css("line-height",n),YL(r)},parseStyleHtml:function(e,t,n){var r=gp(e);if(!uf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=ZL(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new xG},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},DG=function(){function e(){this.title=H_("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),SG=function(){function e(){this.title=H_("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),CG={menus:[{key:"redo",factory:function(){return new DG}},{key:"undo",factory:function(){return new SG}}]},AG={type:"divider",renderElem:function(e,t,n){return Lh("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:aO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Lh("hr")])}},OG=function(){function e(){this.title=H_("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=aO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){ed.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),kG={renderElems:[AG],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new OG}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=oR(e,2),o=t[0],i=t[1];if("divider"!==aO.getNodeType(o))return n([o,i]);aO.isLastNode(r,o)&&ed.insertNodes(r,aO.genEmptyParagraph(),{at:[i[0]+1]})},r}},BG=nI.map;jN({target:"Array",proto:!0,forced:!oI("map")},{map:function(e){return BG(this,e,arguments.length>1?arguments[1]:void 0)}});var FG=AP([].join),TG=_P!=Object,_G=yR("join",",");jN({target:"Array",proto:!0,forced:TG||!_G},{join:function(e){return FG(NP(this),void 0===e?",":e)}});var PG=function(){function e(){this.title=H_("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=aO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=aO.getParentNode(e,t);return null==n||"pre"!==aO.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=aO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=aO.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=mf.string(t);ed.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));ed.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=pf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=rR(i),u=a.next();!u.done;u=a.next()){var s=oR(u.value,1)[0];s&&o.push(mf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}ed.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};ed.insertNodes(e,l,{mode:"highest"})},e}(),jG={key:"codeBlock",factory:function(){return new PG}};jN({target:"String",proto:!0,forced:cR("anchor")},{anchor:function(e){return lR(this,"a","name",e)}}),YI("match",(function(e,t,n){return[function(t){var n=jP(this),r=null==t?void 0:tj(t,e);return r?yP(r,t,n):new RegExp(t)[e](lI(n))},function(e){var r=Tj(this),o=lI(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return cL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=cL(r,o));){var c=lI(u[0]);s[l]=c,""===c&&(r.lastIndex=tL(o,dN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var NG={menus:[jG],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=aO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=mf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=oR(e,2),r=t[0],i=t[1],a=aO.getNodeType(r);return"code"===a&&i.length<=1&&ed.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(aO.isLastNode(o,r)&&ed.insertNodes(o,aO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==aO.getNodeType(r.children[0])&&(ed.unwrapNodes(o),ed.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=aO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");pf.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return tg("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return tg("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=gp(e);if("code"!==XL(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:gp(e)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return"code"===aO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===aO.getNodeType(e)}))}}}]},IG=function(){function e(){this.title=H_("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),LG={menus:[{key:"fullScreen",factory:function(){return new IG}}]},RG=function(){function e(){this.title=H_("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Ff.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];ed.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(pf.start(e,r))}},e}(),MG=[JR,XM,lG,hG,wG,EG,Kz,kG,lH,yz,NG,uH,MM,aR,Zz,CG,LG,{menus:[{key:"enter",factory:function(){return new RG}}]}];M_("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),M_("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var zG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function HG(e){var t={exports:{}};return e(t,t.exports),t.exports}var $G,VG,UG=function(e){return e&&e.Math==Math&&e},WG=UG("object"==typeof globalThis&&globalThis)||UG("object"==typeof window&&window)||UG("object"==typeof self&&self)||UG("object"==typeof zG&&zG)||function(){return this}()||Function("return this")(),GG=Function.prototype,qG=GG.bind,KG=GG.call,YG=qG&&qG.bind(KG),XG=qG?function(e){return e&&YG(KG,e)}:function(e){return e&&function(){return KG.apply(e,arguments)}},ZG=function(e){try{return!!e()}catch(e){return!0}},JG=XG({}.toString),QG=XG("".slice),eq=function(e){return QG(JG(e),8,-1)},tq=WG.Object,nq=XG("".split),rq=ZG((function(){return!tq("z").propertyIsEnumerable(0)}))?function(e){return"String"==eq(e)?nq(e,""):tq(e)}:tq,oq=WG.TypeError,iq=function(e){if(null==e)throw oq("Can't call method on "+e);return e},aq=function(e){return rq(iq(e))},uq=Object.defineProperty,sq=function(e,t){try{uq(WG,e,{value:t,configurable:!0,writable:!0})}catch(n){WG[e]=t}return t},lq=WG["__core-js_shared__"]||sq("__core-js_shared__",{}),cq=HG((function(e){(e.exports=function(e,t){return lq[e]||(lq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),fq=WG.Object,dq=function(e){return fq(iq(e))},pq=XG({}.hasOwnProperty),hq=Object.hasOwn||function(e,t){return pq(dq(e),t)},gq=0,vq=Math.random(),yq=XG(1..toString),mq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+yq(++gq+vq,36)},bq=function(e){return"function"==typeof e},wq=function(e){return bq(e)?e:void 0},xq=function(e,t){return arguments.length<2?wq(WG[e]):WG[e]&&WG[e][t]},Eq=xq("navigator","userAgent")||"",Dq=WG.process,Sq=WG.Deno,Cq=Dq&&Dq.versions||Sq&&Sq.version,Aq=Cq&&Cq.v8;Aq&&(VG=($G=Aq.split("."))[0]>0&&$G[0]<4?1:+($G[0]+$G[1])),!VG&&Eq&&(!($G=Eq.match(/Edge\/(\d+)/))||$G[1]>=74)&&($G=Eq.match(/Chrome\/(\d+)/))&&(VG=+$G[1]);var Oq,kq=VG,Bq=!!Object.getOwnPropertySymbols&&!ZG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kq&&kq<41})),Fq=Bq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Tq=cq("wks"),_q=WG.Symbol,Pq=_q&&_q.for,jq=Fq?_q:_q&&_q.withoutSetter||mq,Nq=function(e){if(!hq(Tq,e)||!Bq&&"string"!=typeof Tq[e]){var t="Symbol."+e;Bq&&hq(_q,e)?Tq[e]=_q[e]:Tq[e]=Fq&&Pq?Pq(t):jq(t)}return Tq[e]},Iq=function(e){return"object"==typeof e?null!==e:bq(e)},Lq=WG.String,Rq=WG.TypeError,Mq=function(e){if(Iq(e))return e;throw Rq(Lq(e)+" is not an object")},zq=!ZG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Hq=WG.document,$q=Iq(Hq)&&Iq(Hq.createElement),Vq=function(e){return $q?Hq.createElement(e):{}},Uq=!zq&&!ZG((function(){return 7!=Object.defineProperty(Vq("div"),"a",{get:function(){return 7}}).a})),Wq=Function.prototype.call,Gq=Wq.bind?Wq.bind(Wq):function(){return Wq.apply(Wq,arguments)},qq=XG({}.isPrototypeOf),Kq=WG.Object,Yq=Fq?function(e){return"symbol"==typeof e}:function(e){var t=xq("Symbol");return bq(t)&&qq(t.prototype,Kq(e))},Xq=WG.String,Zq=function(e){try{return Xq(e)}catch(e){return"Object"}},Jq=WG.TypeError,Qq=function(e){if(bq(e))return e;throw Jq(Zq(e)+" is not a function")},eK=function(e,t){var n=e[t];return null==n?void 0:Qq(n)},tK=WG.TypeError,nK=WG.TypeError,rK=Nq("toPrimitive"),oK=function(e){var t=function(e,t){if(!Iq(e)||Yq(e))return e;var n,r=eK(e,rK);if(r){if(void 0===t&&(t="default"),n=Gq(r,e,t),!Iq(n)||Yq(n))return n;throw nK("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&bq(n=e.toString)&&!Iq(r=Gq(n,e)))return r;if(bq(n=e.valueOf)&&!Iq(r=Gq(n,e)))return r;if("string"!==t&&bq(n=e.toString)&&!Iq(r=Gq(n,e)))return r;throw tK("Can't convert object to primitive value")}(e,t)}(e,"string");return Yq(t)?t:t+""},iK=WG.TypeError,aK=Object.defineProperty,uK={f:zq?aK:function(e,t,n){if(Mq(e),t=oK(t),Mq(n),Uq)try{return aK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw iK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},sK=Math.ceil,lK=Math.floor,cK=function(e){var t=+e;return t!=t||0===t?0:(t>0?lK:sK)(t)},fK=Math.max,dK=Math.min,pK=function(e,t){var n=cK(e);return n<0?fK(n+t,0):dK(n,t)},hK=Math.min,gK=function(e){return e>0?hK(cK(e),9007199254740991):0},vK=function(e){return gK(e.length)},yK=function(e){return function(t,n,r){var o,i=aq(t),a=vK(i),u=pK(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},mK={includes:yK(!0),indexOf:yK(!1)},bK={},wK=mK.indexOf,xK=XG([].push),EK=function(e,t){var n,r=aq(e),o=0,i=[];for(n in r)!hq(bK,n)&&hq(r,n)&&xK(i,n);for(;t.length>o;)hq(r,n=t[o++])&&(~wK(i,n)||xK(i,n));return i},DK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SK=Object.keys||function(e){return EK(e,DK)},CK=zq?Object.defineProperties:function(e,t){Mq(e);for(var n,r=aq(t),o=SK(t),i=o.length,a=0;i>a;)uK.f(e,n=o[a++],r[n]);return e},AK=xq("document","documentElement"),OK=cq("keys"),kK=function(e){return OK[e]||(OK[e]=mq(e))},BK=kK("IE_PROTO"),FK=function(){},TK=function(e){return"<script>"+e+"<\/script>"},_K=function(e){e.write(TK("")),e.close();var t=e.parentWindow.Object;return e=null,t},PK=function(){try{Oq=new ActiveXObject("htmlfile")}catch(e){}var e,t;PK="undefined"!=typeof document?document.domain&&Oq?_K(Oq):((t=Vq("iframe")).style.display="none",AK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(TK("document.F=Object")),e.close(),e.F):_K(Oq);for(var n=DK.length;n--;)delete PK.prototype[DK[n]];return PK()};bK[BK]=!0;var jK=Object.create||function(e,t){var n;return null!==e?(FK.prototype=Mq(e),n=new FK,FK.prototype=null,n[BK]=e):n=PK(),void 0===t?n:CK(n,t)},NK=Nq("unscopables"),IK=Array.prototype;null==IK[NK]&&uK.f(IK,NK,{configurable:!0,value:jK(null)});var LK=function(e){IK[NK][e]=!0},RK={},MK=XG(Function.toString);bq(lq.inspectSource)||(lq.inspectSource=function(e){return MK(e)});var zK,HK,$K,VK=lq.inspectSource,UK=WG.WeakMap,WK=bq(UK)&&/native code/.test(VK(UK)),GK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qK=zq?function(e,t,n){return uK.f(e,t,GK(1,n))}:function(e,t,n){return e[t]=n,e},KK=WG.TypeError,YK=WG.WeakMap;if(WK||lq.state){var XK=lq.state||(lq.state=new YK),ZK=XG(XK.get),JK=XG(XK.has),QK=XG(XK.set);zK=function(e,t){if(JK(XK,e))throw new KK("Object already initialized");return t.facade=e,QK(XK,e,t),t},HK=function(e){return ZK(XK,e)||{}},$K=function(e){return JK(XK,e)}}else{var eY=kK("state");bK[eY]=!0,zK=function(e,t){if(hq(e,eY))throw new KK("Object already initialized");return t.facade=e,qK(e,eY,t),t},HK=function(e){return hq(e,eY)?e[eY]:{}},$K=function(e){return hq(e,eY)}}var tY,nY,rY,oY={set:zK,get:HK,has:$K,enforce:function(e){return $K(e)?HK(e):zK(e,{})},getterFor:function(e){return function(t){var n;if(!Iq(t)||(n=HK(t)).type!==e)throw KK("Incompatible receiver, "+e+" required");return n}}},iY={}.propertyIsEnumerable,aY=Object.getOwnPropertyDescriptor,uY={f:aY&&!iY.call({1:2},1)?function(e){var t=aY(this,e);return!!t&&t.enumerable}:iY},sY=Object.getOwnPropertyDescriptor,lY={f:zq?sY:function(e,t){if(e=aq(e),t=oK(t),Uq)try{return sY(e,t)}catch(e){}if(hq(e,t))return GK(!Gq(uY.f,e,t),e[t])}},cY=Function.prototype,fY=zq&&Object.getOwnPropertyDescriptor,dY=hq(cY,"name"),pY={EXISTS:dY,PROPER:dY&&"something"===function(){}.name,CONFIGURABLE:dY&&(!zq||zq&&fY(cY,"name").configurable)},hY=HG((function(e){var t=pY.CONFIGURABLE,n=oY.get,r=oY.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;bq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hq(i,"name")||t&&i.name!==f)&&qK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==WG?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:qK(e,n,i)):l?e[n]=i:sq(n,i)})(Function.prototype,"toString",(function(){return bq(this)&&n(this).source||VK(this)}))})),gY=DK.concat("length","prototype"),vY={f:Object.getOwnPropertyNames||function(e){return EK(e,gY)}},yY={f:Object.getOwnPropertySymbols},mY=XG([].concat),bY=xq("Reflect","ownKeys")||function(e){var t=vY.f(Mq(e)),n=yY.f;return n?mY(t,n(e)):t},wY=function(e,t){for(var n=bY(t),r=uK.f,o=lY.f,i=0;i<n.length;i++){var a=n[i];hq(e,a)||r(e,a,o(t,a))}},xY=/#|\.prototype\./,EY=function(e,t){var n=SY[DY(e)];return n==AY||n!=CY&&(bq(t)?ZG(t):!!t)},DY=EY.normalize=function(e){return String(e).replace(xY,".").toLowerCase()},SY=EY.data={},CY=EY.NATIVE="N",AY=EY.POLYFILL="P",OY=EY,kY=lY.f,BY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?WG:l?WG[u]||sq(u,{}):(WG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=kY(n,r))&&a.value:n[r],!OY(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;wY(i,o)}(e.sham||o&&o.sham)&&qK(i,"sham",!0),hY(n,r,i,e)}},FY=!ZG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),TY=kK("IE_PROTO"),_Y=WG.Object,PY=_Y.prototype,jY=FY?_Y.getPrototypeOf:function(e){var t=dq(e);if(hq(t,TY))return t[TY];var n=t.constructor;return bq(n)&&t instanceof n?n.prototype:t instanceof _Y?PY:null},NY=Nq("iterator"),IY=!1;[].keys&&("next"in(rY=[].keys())?(nY=jY(jY(rY)))!==Object.prototype&&(tY=nY):IY=!0),(null==tY||ZG((function(){var e={};return tY[NY].call(e)!==e})))&&(tY={}),bq(tY[NY])||hY(tY,NY,(function(){return this}));var LY={IteratorPrototype:tY,BUGGY_SAFARI_ITERATORS:IY},RY=uK.f,MY=Nq("toStringTag"),zY=function(e,t,n){e&&!hq(e=n?e:e.prototype,MY)&&RY(e,MY,{configurable:!0,value:t})},HY=LY.IteratorPrototype,$Y=function(){return this},VY=WG.String,UY=WG.TypeError,WY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=XG(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Mq(n),function(e){if("object"==typeof e||bq(e))return e;throw UY("Can't set "+VY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),GY=pY.PROPER,qY=pY.CONFIGURABLE,KY=LY.IteratorPrototype,YY=LY.BUGGY_SAFARI_ITERATORS,XY=Nq("iterator"),ZY=function(){return this},JY=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=jK(HY,{next:GK(1,n)}),zY(e,o,!1),RK[o]=$Y}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!YY&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[XY]||p["@@iterator"]||o&&p[o],g=!YY&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=jY(v.call(new e)))!==Object.prototype&&u.next&&(jY(u)!==KY&&(WY?WY(u,KY):bq(u[XY])||hY(u,XY,ZY)),zY(u,f,!0)),GY&&"values"==o&&h&&"values"!==h.name&&(qY?qK(p,"name","values"):(d=!0,g=function(){return Gq(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(YY||d||!(l in p))&&hY(p,l,s[l]);else BY({target:t,proto:!0,forced:YY||d},s);return p[XY]!==g&&hY(p,XY,g,{name:o}),RK[t]=g,s},QY=oY.set,eX=oY.getterFor("Array Iterator"),tX=JY(Array,"Array",(function(e,t){QY(this,{type:"Array Iterator",target:aq(e),index:0,kind:t})}),(function(){var e=eX(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");RK.Arguments=RK.Array,LK("keys"),LK("values"),LK("entries");var nX={};nX[Nq("toStringTag")]="z";var rX="[object z]"===String(nX),oX=Nq("toStringTag"),iX=WG.Object,aX="Arguments"==eq(function(){return arguments}()),uX=rX?eq:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=iX(e),oX))?n:aX?eq(t):"Object"==(r=eq(t))&&bq(t.callee)?"Arguments":r},sX=rX?{}.toString:function(){return"[object "+uX(this)+"]"};rX||hY(Object.prototype,"toString",sX,{unsafe:!0});var lX=WG.String,cX=function(e){if("Symbol"===uX(e))throw TypeError("Cannot convert a Symbol value to a string");return lX(e)},fX=XG("".charAt),dX=XG("".charCodeAt),pX=XG("".slice),hX=function(e){return function(t,n){var r,o,i=cX(iq(t)),a=cK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=dX(i,a))<55296||r>56319||a+1===u||(o=dX(i,a+1))<56320||o>57343?e?fX(i,a):r:e?pX(i,a,a+2):o-56320+(r-55296<<10)+65536}},gX={codeAt:hX(!1),charAt:hX(!0)},vX=gX.charAt,yX=oY.set,mX=oY.getterFor("String Iterator");JY(String,"String",(function(e){yX(this,{type:"String Iterator",string:cX(e),index:0})}),(function(){var e,t=mX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vX(n,r),t.index+=e.length,{value:e,done:!1})}));var bX=function(e,t,n){for(var r in t)hY(e,r,t[r],n);return e},wX=WG.Array,xX=Math.max,EX=vY.f,DX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],SX={f:function(e){return DX&&"Window"==eq(e)?function(e){try{return EX(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=vK(e),s=pK(void 0,u),l=pK(u,u),c=wX(xX(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=oK(o))in r?uK.f(r,a,GK(0,i)):r[a]=i;return c.length=f,c}(DX)}}(e):EX(aq(e))}},CX=ZG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),AX=Object.isExtensible,OX=ZG((function(){AX(1)}))||CX?function(e){return!!Iq(e)&&(!CX||"ArrayBuffer"!=eq(e))&&(!AX||AX(e))}:AX,kX=!ZG((function(){return Object.isExtensible(Object.preventExtensions({}))})),BX=HG((function(e){var t=uK.f,n=!1,r=mq("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=vY.f,t=XG([].splice),o={};o[r]=1,e(o).length&&(vY.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},BY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:SX.f}))},fastKey:function(e,t){if(!Iq(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hq(e,r)){if(!OX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!hq(e,r)){if(!OX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return kX&&n&&OX(e)&&!hq(e,r)&&i(e),e}};bK[r]=!0})),FX=XG(XG.bind),TX=function(e,t){return Qq(e),void 0===t?e:FX?FX(e,t):function(){return e.apply(t,arguments)}},_X=Nq("iterator"),PX=Array.prototype,jX=Nq("iterator"),NX=function(e){if(null!=e)return eK(e,jX)||eK(e,"@@iterator")||RK[uX(e)]},IX=WG.TypeError,LX=function(e,t,n){var r,o;Mq(e);try{if(!(r=eK(e,"return"))){if("throw"===t)throw n;return n}r=Gq(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Mq(r),n},RX=WG.TypeError,MX=function(e,t){this.stopped=e,this.result=t},zX=MX.prototype,HX=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=TX(t,f),v=function(e){return r&&LX(r,"normal",e),new MX(!0,e)},y=function(e){return d?(Mq(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=NX(e)))throw RX(Zq(e)+" is not iterable");if(void 0!==(c=o)&&(RK.Array===c||PX[_X]===c)){for(i=0,a=vK(e);a>i;i++)if((u=y(e[i]))&&qq(zX,u))return u;return new MX(!1)}r=function(e,t){var n=arguments.length<2?NX(e):t;if(Qq(n))return Mq(Gq(n,e));throw IX(Zq(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Gq(s,r)).done;){try{u=y(l.value)}catch(e){LX(r,"throw",e)}if("object"==typeof u&&u&&qq(zX,u))return u}return new MX(!1)},$X=WG.TypeError,VX=function(e,t){if(qq(t,e))return e;throw $X("Incorrect invocation")},UX=Nq("iterator"),WX=!1;try{var GX=0,qX={next:function(){return{done:!!GX++}},return:function(){WX=!0}};qX[UX]=function(){return this},Array.from(qX,(function(){throw 2}))}catch(Al){}var KX=Array.isArray||function(e){return"Array"==eq(e)},YX=function(){},XX=[],ZX=xq("Reflect","construct"),JX=/^\s*(?:class|function)\b/,QX=XG(JX.exec),eZ=!JX.exec(YX),tZ=function(e){if(!bq(e))return!1;try{return ZX(YX,XX,e),!0}catch(e){return!1}},nZ=!ZX||ZG((function(){var e;return tZ(tZ.call)||!tZ(Object)||!tZ((function(){e=!0}))||e}))?function(e){if(!bq(e))return!1;switch(uX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eZ||!!QX(JX,VK(e))}:tZ,rZ=Nq("species"),oZ=WG.Array,iZ=function(e,t){return new(function(e){var t;return KX(e)&&(t=e.constructor,(nZ(t)&&(t===oZ||KX(t.prototype))||Iq(t)&&null===(t=t[rZ]))&&(t=void 0)),void 0===t?oZ:t}(e))(0===t?0:t)},aZ=XG([].push),uZ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=dq(s),g=rq(h),v=TX(l,c),y=vK(g),m=0,b=f||iZ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:aZ(w,d)}else switch(e){case 4:return!1;case 7:aZ(w,d)}return i?-1:r||o?o:w}},sZ={forEach:uZ(0),map:uZ(1),filter:uZ(2),some:uZ(3),every:uZ(4),find:uZ(5),findIndex:uZ(6),filterReject:uZ(7)},lZ=BX.getWeakData,cZ=oY.set,fZ=oY.getterFor,dZ=sZ.find,pZ=sZ.findIndex,hZ=XG([].splice),gZ=0,vZ=function(e){return e.frozen||(e.frozen=new yZ)},yZ=function(){this.entries=[]},mZ=function(e,t){return dZ(e.entries,(function(e){return e[0]===t}))};yZ.prototype={get:function(e){var t=mZ(this,e);if(t)return t[1]},has:function(e){return!!mZ(this,e)},set:function(e,t){var n=mZ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=pZ(this.entries,(function(t){return t[0]===e}));return~t&&hZ(this.entries,t,1),!!~t}};var bZ,wZ={getConstructor:function(e,t,n,r){var o=e((function(e,o){VX(e,i),cZ(e,{type:t,id:gZ++,frozen:void 0}),null!=o&&HX(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=fZ(t),u=function(e,t,n){var r=a(e),o=lZ(Mq(t),!0);return!0===o?vZ(r).set(t,n):o[r.id]=n,e};return bX(i,{delete:function(e){var t=a(this);if(!Iq(e))return!1;var n=lZ(e);return!0===n?vZ(t).delete(e):n&&hq(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Iq(e))return!1;var n=lZ(e);return!0===n?vZ(t).has(e):n&&hq(n,t.id)}}),bX(i,n?{get:function(e){var t=a(this);if(Iq(e)){var n=lZ(e);return!0===n?vZ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},xZ=oY.enforce,EZ=!WG.ActiveXObject&&"ActiveXObject"in WG,DZ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SZ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=WG[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=XG(u[e]);hY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Iq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Iq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Iq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(OY(e,!bq(a)||!(o||u.forEach&&!ZG((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),BX.enable();else if(OY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ZG((function(){f.has(1)})),h=function(e,t){if(!WX)return!1;var n=!1;try{var r={};r[UX]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!o&&ZG((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){VX(e,u);var n=function(e,t,n){var r,o;return WY&&bq(r=t.constructor)&&r!==n&&Iq(o=r.prototype)&&o!==n.prototype&&WY(e,o),e}(new a,e,s);return null!=t&&HX(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,BY({global:!0,forced:s!=a},l),zY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",DZ,wZ);if(WK&&EZ){bZ=wZ.getConstructor(DZ,"WeakMap",!0),BX.enable();var CZ=SZ.prototype,AZ=XG(CZ.delete),OZ=XG(CZ.has),kZ=XG(CZ.get),BZ=XG(CZ.set);bX(CZ,{delete:function(e){if(Iq(e)&&!OX(e)){var t=xZ(this);return t.frozen||(t.frozen=new bZ),AZ(this,e)||t.frozen.delete(e)}return AZ(this,e)},has:function(e){if(Iq(e)&&!OX(e)){var t=xZ(this);return t.frozen||(t.frozen=new bZ),OZ(this,e)||t.frozen.has(e)}return OZ(this,e)},get:function(e){if(Iq(e)&&!OX(e)){var t=xZ(this);return t.frozen||(t.frozen=new bZ),OZ(this,e)?kZ(this,e):t.frozen.get(e)}return kZ(this,e)},set:function(e,t){if(Iq(e)&&!OX(e)){var n=xZ(this);n.frozen||(n.frozen=new bZ),OZ(this,e)?BZ(this,e,t):n.frozen.set(e,t)}else BZ(this,e,t);return this}})}var FZ={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},TZ=Vq("span").classList,_Z=TZ&&TZ.constructor&&TZ.constructor.prototype,PZ=_Z===Object.prototype?void 0:_Z,jZ=Nq("iterator"),NZ=Nq("toStringTag"),IZ=tX.values,LZ=function(e,t){if(e){if(e[jZ]!==IZ)try{qK(e,jZ,IZ)}catch(t){e[jZ]=IZ}if(e[NZ]||qK(e,NZ,t),FZ[t])for(var n in tX)if(e[n]!==tX[n])try{qK(e,n,tX[n])}catch(t){e[n]=tX[n]}}};for(var RZ in FZ)LZ(WG[RZ]&&WG[RZ].prototype,RZ);LZ(PZ,"DOMTokenList");var MZ=new WeakMap,zZ={type:"list-item",renderElem:function(e,t,n){MZ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=aO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Ef.previous(c),d=pf.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return tg("div",{style:u},tg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Lf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),tg("span",null,t))}},HZ=function(e,t){return(HZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function $Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}HZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function VZ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function UZ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function WZ(e){return pf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===aO.findPath(e,t).length}})}var GZ=mK.includes;BY({target:"Array",proto:!0},{includes:function(e){return GZ(this,e,arguments.length>1?arguments[1]:void 0)}}),LK("includes");var qZ,KZ,YZ=function(){var e=Mq(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},XZ=WG.RegExp,ZZ=ZG((function(){var e=XZ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),JZ=ZZ||ZG((function(){return!XZ("a","y").sticky})),QZ={BROKEN_CARET:ZZ||ZG((function(){var e=XZ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:JZ,UNSUPPORTED_Y:ZZ},eJ=WG.RegExp,tJ=ZG((function(){var e=eJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),nJ=WG.RegExp,rJ=ZG((function(){var e=nJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),oJ=oY.get,iJ=cq("native-string-replace",String.prototype.replace),aJ=RegExp.prototype.exec,uJ=aJ,sJ=XG("".charAt),lJ=XG("".indexOf),cJ=XG("".replace),fJ=XG("".slice),dJ=(KZ=/b*/g,Gq(aJ,qZ=/a/,"a"),Gq(aJ,KZ,"a"),0!==qZ.lastIndex||0!==KZ.lastIndex),pJ=QZ.BROKEN_CARET,hJ=void 0!==/()??/.exec("")[1];(dJ||hJ||pJ||tJ||rJ)&&(uJ=function(e){var t,n,r,o,i,a,u,s=this,l=oJ(s),c=cX(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Gq(uJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=pJ&&s.sticky,h=Gq(YZ,s),g=s.source,v=0,y=c;if(p&&(h=cJ(h,"y",""),-1===lJ(h,"g")&&(h+="g"),y=fJ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==sJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),hJ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),dJ&&(r=s.lastIndex),o=Gq(aJ,p?n:s,y),p?o?(o.input=fJ(o.input,v),o[0]=fJ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:dJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),hJ&&o&&o.length>1&&Gq(iJ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=jK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var gJ=uJ;BY({target:"RegExp",proto:!0,forced:/./.exec!==gJ},{exec:gJ});var vJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return aO.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){if(pf.isVoid(e,t)&&pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?ed.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):ed.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),yJ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',mJ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',bJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=H_("listModule.unOrderedList"),t.iconSvg=yJ,t}return $Z(t,e),t}(vJ),wJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=H_("listModule.orderedList"),t.iconSvg=mJ,t}return $Z(t,e),t}(vJ),xJ={key:"bulletedList",factory:function(){return new bJ}},EJ={key:"numberedList",factory:function(){return new wJ}},DJ=[],SJ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=MZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=aO.findPath(t,e);if(0===s[0])return u+1;var l=Ef.previous(s),c=pf.node(t,l);if(!c)return 0;var f=UZ(c,1)[0];if(aO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",DJ.push(i);var s=function(e){var t=MZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=aO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Ef.next(s),c=pf.node(t,l);if(!c)return 0;var f=UZ(c,1)[0];if(aO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+DJ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},CJ=Nq("species"),AJ=sZ.filter,OJ=kq>=51||!ZG((function(){var e=[];return(e.constructor={})[CJ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));BY({target:"Array",proto:!0,forced:!OJ},{filter:function(e){return AJ(this,e,arguments.length>1?arguments[1]:void 0)}});var kJ=Function.prototype,BJ=kJ.apply,FJ=kJ.bind,TJ=kJ.call,_J="object"==typeof Reflect&&Reflect.apply||(FJ?TJ.bind(BJ):function(){return TJ.apply(BJ,arguments)}),PJ=(Nq("species"),RegExp.prototype),jJ=gX.charAt,NJ=function(e,t,n){return t+(n?jJ(e,t).length:1)},IJ=Math.floor,LJ=XG("".charAt),RJ=XG("".replace),MJ=XG("".slice),zJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HJ=/\$([$&'`]|\d{1,2})/g,$J=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=HJ;return void 0!==o&&(o=dq(o),s=zJ),RJ(i,s,(function(i,s){var l;switch(LJ(s,0)){case"$":return"$";case"&":return e;case"`":return MJ(t,0,n);case"'":return MJ(t,a);case"<":l=o[MJ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=IJ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?LJ(s,1):r[f-1]+LJ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},VJ=WG.TypeError,UJ=function(e,t){var n=e.exec;if(bq(n)){var r=Gq(n,e,t);return null!==r&&Mq(r),r}if("RegExp"===eq(e))return Gq(gJ,e,t);throw VJ("RegExp#exec called on incompatible receiver")},WJ=Nq("replace"),GJ=Math.max,qJ=Math.min,KJ=XG([].concat),YJ=XG([].push),XJ=XG("".indexOf),ZJ=XG("".slice),JJ="$0"==="a".replace(/./,"$0"),QJ=!!/./[WJ]&&""===/./[WJ]("a","$0");!function(e,t,n,r){var o=Nq(e),i=!ZG((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!ZG((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=XG(/./[o]),s=function(e,t,n){var r=QJ?"$":"$0";return[function(e,n){var r=iq(this),o=null==e?void 0:eK(e,WJ);return o?Gq(o,e,r,n):Gq(t,cX(r),e,n)},function(e,o){var i=Mq(this),a=cX(e);if("string"==typeof o&&-1===XJ(o,r)&&-1===XJ(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=bq(o);s||(o=cX(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=UJ(i,a);if(null===d)break;if(YJ(f,d),!l)break;""===cX(d[0])&&(i.lastIndex=NJ(a,gK(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=cX((d=f[v])[0]),m=GJ(qJ(cK(d.index),a.length),0),b=[],w=1;w<d.length;w++)YJ(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=KJ([y],b,m,a);void 0!==x&&YJ(E,x);var D=cX(_J(o,void 0,E))}else D=$J(y,a,m,b,x,o);m>=g&&(h+=ZJ(a,g,m)+D,g=m+y.length)}return h+ZJ(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=XG(e),s=t.exec;return s===gJ||s===PJ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));hY(String.prototype,e,s[0]),hY(PJ,o,s[1])}}("replace",0,!!ZG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!JJ||QJ);var eQ=WG.TypeError,tQ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&TX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&KX(s))l=vK(s),c=tQ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw eQ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},nQ=tQ;function rQ(e){return e.length?e[0].tagName.toLowerCase():""}BY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=dq(this),n=vK(t),r=iZ(t,0);return r.length=nQ(r,t,t,n,0,void 0===e?1:cK(e)),r}}),LK("flat"),BY({global:!0},{globalThis:WG}),Ip&&(gp.fn.append=Ip),bp&&(gp.fn.attr=bp),Rp&&(gp.fn.parent=Rp);var oQ={renderElems:[zZ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Ff.isExpanded(n))t(e);else{var r=aO.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?ed.setNodes(o,{level:a-1}):ed.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Ff.isCollapsed(a)){var u=aO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void ed.setNodes(o,{level:l+1})}}if(Ff.isExpanded(a)){var c=0,f=!1;try{for(var d=VZ(WZ(o)),p=d.next();!p.done;p=d.next()){var h=UZ(p.value,1)[0];"list-item"===aO.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=VZ(WZ(o)),v=g.next();!v.done;v=g.next()){var y=UZ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,ed.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=UZ(e,2),n=t[0],i=t[1],a=aO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||ed.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[xJ,EJ],elemsToHtml:[SJ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",ordered:function(e){return"ol"===rQ(e.parent())}(r),level:function(e){for(var t=0,n=e.parent(),r=rQ(n);"ul"===r||"ol"===r;)r=rQ(n=n.parent()),t++;return t-1}(r),children:t}}}]},iQ=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[i]=D[a]=D[b]=D[u]=D[w]=D[s]=D[l]=D[c]=D[f]=D[d]=D[p]=D[g]=D[v]=D[y]=D[m]=!1;var S="object"==typeof r&&r&&r.Object===Object&&r,C="object"==typeof self&&self&&self.Object===Object&&self,A=S||C||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,B=k&&k.exports===O,F=B&&S.process,T=function(){try{return F&&F.binding&&F.binding("util")}catch(e){}}(),_=T&&T.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,L=Function.prototype,R=Object.prototype,M=A["__core-js_shared__"],z=L.toString,H=R.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=R.toString,U=RegExp("^"+z.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?A.Buffer:void 0,G=A.Symbol,q=A.Uint8Array,K=R.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Ce(A,"DataView"),te=Ce(A,"Map"),ne=Ce(A,"Promise"),re=Ce(A,"Set"),oe=Ce(A,"WeakMap"),ie=Ce(Object,"create"),ae=Be(ee),ue=Be(te),se=Be(ne),le=Be(re),ce=Be(oe),fe=G?G.prototype:void 0,de=fe?fe.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new he(e);this.size=t.size}function me(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=H.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=V.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return V.call(e)}(e)}function we(e){return Le(e)&&be(e)==i}function xe(e,t,n,r,o){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=_e(e),m=_e(t),x=h?a:Oe(e),E=m?a:Oe(t),D=(x=x==i?p:x)==p,S=(E=E==i?p:E)==p,C=x==E;if(C&&Pe(e)){if(!Pe(t))return!1;h=!0,D=!1}if(C&&!D)return c||(c=new ye),h||Re(e)?Ee(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case u:case s:case d:return Fe(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=j;case v:var p=1&r;if(c||(c=N),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var m=Ee(c(e),c(t),r,o,i,a);return a.delete(e),m;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,x,n,r,o,c);if(!(1&n)){var A=D&&H.call(e,"__wrapped__"),O=S&&H.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return c||(c=new ye),o(k,B,n,r,c)}}return!!C&&(c||(c=new ye),function(e,t,n,r,o,i){var a=1&n,u=De(e),s=u.length;if(s!=De(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:H.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,c))}(e,t,n,r,xe,o))}function Ee(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!P(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function De(e){return function(e,t,n){var r=t(e);return _e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Me,Ae)}function Se(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||function(e){return!!$&&$ in e}(e))&&(je(e)?U:x).test(Be(e))}(n)?n:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:H.call(t,e)},pe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&void 0===t?n:t,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Se(this,e).get(e)},ge.prototype.has=function(e){return Se(this,e).has(e)},ge.prototype.set=function(e,t){var n=Se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Ae=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Z(e),(function(t){return K.call(e,t)})))}:function(){return[]},Oe=be;function ke(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(ee&&Oe(new ee(new ArrayBuffer(1)))!=w||te&&Oe(new te)!=f||ne&&Oe(ne.resolve())!=h||re&&Oe(new re)!=v||oe&&Oe(new oe)!=m)&&(Oe=function(e){var t=be(e),n=t==p?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ae:return w;case ue:return f;case se:return h;case le:return v;case ce:return m}return t});var Te=we(function(){return arguments}())?we:function(e){return Le(e)&&H.call(e,"callee")&&!K.call(e,"callee")},_e=Array.isArray,Pe=J||function(){return!1};function je(e){if(!Ie(e))return!1;var t=be(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var Re=_?function(e){return function(t){return e(t)}}(_):function(e){return Le(e)&&Ne(e.length)&&!!D[be(e)]};function Me(e){return null!=(t=e)&&Ne(t.length)&&!je(t)?function(e,t){var n=_e(e),r=!n&&Te(e),o=!n&&!r&&Pe(e),i=!n&&!r&&!o&&Re(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!H.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ke(l,s))||u.push(l);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||R))return Q(e);var t,n,r=[];for(var o in Object(e))H.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return xe(e,t)}}));M_("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),M_("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var aQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function uQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var sQ,lQ,cQ=function(e){return e&&e.Math==Math&&e},fQ=cQ("object"==typeof globalThis&&globalThis)||cQ("object"==typeof window&&window)||cQ("object"==typeof self&&self)||cQ("object"==typeof aQ&&aQ)||function(){return this}()||Function("return this")(),dQ=function(e){try{return!!e()}catch(e){return!0}},pQ=!dQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),hQ=Function.prototype.call,gQ=hQ.bind?hQ.bind(hQ):function(){return hQ.apply(hQ,arguments)},vQ={}.propertyIsEnumerable,yQ=Object.getOwnPropertyDescriptor,mQ={f:yQ&&!vQ.call({1:2},1)?function(e){var t=yQ(this,e);return!!t&&t.enumerable}:vQ},bQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wQ=Function.prototype,xQ=wQ.bind,EQ=wQ.call,DQ=xQ&&xQ.bind(EQ),SQ=xQ?function(e){return e&&DQ(EQ,e)}:function(e){return e&&function(){return EQ.apply(e,arguments)}},CQ=SQ({}.toString),AQ=SQ("".slice),OQ=function(e){return AQ(CQ(e),8,-1)},kQ=fQ.Object,BQ=SQ("".split),FQ=dQ((function(){return!kQ("z").propertyIsEnumerable(0)}))?function(e){return"String"==OQ(e)?BQ(e,""):kQ(e)}:kQ,TQ=fQ.TypeError,_Q=function(e){if(null==e)throw TQ("Can't call method on "+e);return e},PQ=function(e){return FQ(_Q(e))},jQ=function(e){return"function"==typeof e},NQ=function(e){return"object"==typeof e?null!==e:jQ(e)},IQ=function(e){return jQ(e)?e:void 0},LQ=function(e,t){return arguments.length<2?IQ(fQ[e]):fQ[e]&&fQ[e][t]},RQ=SQ({}.isPrototypeOf),MQ=LQ("navigator","userAgent")||"",zQ=fQ.process,HQ=fQ.Deno,$Q=zQ&&zQ.versions||HQ&&HQ.version,VQ=$Q&&$Q.v8;VQ&&(lQ=(sQ=VQ.split("."))[0]>0&&sQ[0]<4?1:+(sQ[0]+sQ[1])),!lQ&&MQ&&(!(sQ=MQ.match(/Edge\/(\d+)/))||sQ[1]>=74)&&(sQ=MQ.match(/Chrome\/(\d+)/))&&(lQ=+sQ[1]);var UQ=lQ,WQ=!!Object.getOwnPropertySymbols&&!dQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&UQ&&UQ<41})),GQ=WQ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qQ=fQ.Object,KQ=GQ?function(e){return"symbol"==typeof e}:function(e){var t=LQ("Symbol");return jQ(t)&&RQ(t.prototype,qQ(e))},YQ=fQ.String,XQ=function(e){try{return YQ(e)}catch(e){return"Object"}},ZQ=fQ.TypeError,JQ=function(e){if(jQ(e))return e;throw ZQ(XQ(e)+" is not a function")},QQ=function(e,t){var n=e[t];return null==n?void 0:JQ(n)},e0=fQ.TypeError,t0=Object.defineProperty,n0=function(e,t){try{t0(fQ,e,{value:t,configurable:!0,writable:!0})}catch(n){fQ[e]=t}return t},r0=fQ["__core-js_shared__"]||n0("__core-js_shared__",{}),o0=uQ((function(e){(e.exports=function(e,t){return r0[e]||(r0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),i0=fQ.Object,a0=function(e){return i0(_Q(e))},u0=SQ({}.hasOwnProperty),s0=Object.hasOwn||function(e,t){return u0(a0(e),t)},l0=0,c0=Math.random(),f0=SQ(1..toString),d0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+f0(++l0+c0,36)},p0=o0("wks"),h0=fQ.Symbol,g0=h0&&h0.for,v0=GQ?h0:h0&&h0.withoutSetter||d0,y0=function(e){if(!s0(p0,e)||!WQ&&"string"!=typeof p0[e]){var t="Symbol."+e;WQ&&s0(h0,e)?p0[e]=h0[e]:p0[e]=GQ&&g0?g0(t):v0(t)}return p0[e]},m0=fQ.TypeError,b0=y0("toPrimitive"),w0=function(e){var t=function(e,t){if(!NQ(e)||KQ(e))return e;var n,r=QQ(e,b0);if(r){if(void 0===t&&(t="default"),n=gQ(r,e,t),!NQ(n)||KQ(n))return n;throw m0("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&jQ(n=e.toString)&&!NQ(r=gQ(n,e)))return r;if(jQ(n=e.valueOf)&&!NQ(r=gQ(n,e)))return r;if("string"!==t&&jQ(n=e.toString)&&!NQ(r=gQ(n,e)))return r;throw e0("Can't convert object to primitive value")}(e,t)}(e,"string");return KQ(t)?t:t+""},x0=fQ.document,E0=NQ(x0)&&NQ(x0.createElement),D0=function(e){return E0?x0.createElement(e):{}},S0=!pQ&&!dQ((function(){return 7!=Object.defineProperty(D0("div"),"a",{get:function(){return 7}}).a})),C0=Object.getOwnPropertyDescriptor,A0={f:pQ?C0:function(e,t){if(e=PQ(e),t=w0(t),S0)try{return C0(e,t)}catch(e){}if(s0(e,t))return bQ(!gQ(mQ.f,e,t),e[t])}},O0=fQ.String,k0=fQ.TypeError,B0=function(e){if(NQ(e))return e;throw k0(O0(e)+" is not an object")},F0=fQ.TypeError,T0=Object.defineProperty,_0={f:pQ?T0:function(e,t,n){if(B0(e),t=w0(t),B0(n),S0)try{return T0(e,t,n)}catch(e){}if("get"in n||"set"in n)throw F0("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P0=pQ?function(e,t,n){return _0.f(e,t,bQ(1,n))}:function(e,t,n){return e[t]=n,e},j0=SQ(Function.toString);jQ(r0.inspectSource)||(r0.inspectSource=function(e){return j0(e)});var N0,I0,L0,R0=r0.inspectSource,M0=fQ.WeakMap,z0=jQ(M0)&&/native code/.test(R0(M0)),H0=o0("keys"),$0=function(e){return H0[e]||(H0[e]=d0(e))},V0={},U0=fQ.TypeError,W0=fQ.WeakMap;if(z0||r0.state){var G0=r0.state||(r0.state=new W0),q0=SQ(G0.get),K0=SQ(G0.has),Y0=SQ(G0.set);N0=function(e,t){if(K0(G0,e))throw new U0("Object already initialized");return t.facade=e,Y0(G0,e,t),t},I0=function(e){return q0(G0,e)||{}},L0=function(e){return K0(G0,e)}}else{var X0=$0("state");V0[X0]=!0,N0=function(e,t){if(s0(e,X0))throw new U0("Object already initialized");return t.facade=e,P0(e,X0,t),t},I0=function(e){return s0(e,X0)?e[X0]:{}},L0=function(e){return s0(e,X0)}}var Z0={set:N0,get:I0,has:L0,enforce:function(e){return L0(e)?I0(e):N0(e,{})},getterFor:function(e){return function(t){var n;if(!NQ(t)||(n=I0(t)).type!==e)throw U0("Incompatible receiver, "+e+" required");return n}}},J0=Function.prototype,Q0=pQ&&Object.getOwnPropertyDescriptor,e1=s0(J0,"name"),t1={EXISTS:e1,PROPER:e1&&"something"===function(){}.name,CONFIGURABLE:e1&&(!pQ||pQ&&Q0(J0,"name").configurable)},n1=uQ((function(e){var t=t1.CONFIGURABLE,n=Z0.get,r=Z0.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;jQ(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s0(i,"name")||t&&i.name!==f)&&P0(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==fQ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:P0(e,n,i)):l?e[n]=i:n0(n,i)})(Function.prototype,"toString",(function(){return jQ(this)&&n(this).source||R0(this)}))})),r1=Math.ceil,o1=Math.floor,i1=function(e){var t=+e;return t!=t||0===t?0:(t>0?o1:r1)(t)},a1=Math.max,u1=Math.min,s1=function(e,t){var n=i1(e);return n<0?a1(n+t,0):u1(n,t)},l1=Math.min,c1=function(e){return e>0?l1(i1(e),9007199254740991):0},f1=function(e){return c1(e.length)},d1=function(e){return function(t,n,r){var o,i=PQ(t),a=f1(i),u=s1(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},p1=(d1(!0),d1(!1)),h1=SQ([].push),g1=function(e,t){var n,r=PQ(e),o=0,i=[];for(n in r)!s0(V0,n)&&s0(r,n)&&h1(i,n);for(;t.length>o;)s0(r,n=t[o++])&&(~p1(i,n)||h1(i,n));return i},v1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],y1=v1.concat("length","prototype"),m1={f:Object.getOwnPropertyNames||function(e){return g1(e,y1)}},b1={f:Object.getOwnPropertySymbols},w1=SQ([].concat),x1=LQ("Reflect","ownKeys")||function(e){var t=m1.f(B0(e)),n=b1.f;return n?w1(t,n(e)):t},E1=function(e,t){for(var n=x1(t),r=_0.f,o=A0.f,i=0;i<n.length;i++){var a=n[i];s0(e,a)||r(e,a,o(t,a))}},D1=/#|\.prototype\./,S1=function(e,t){var n=A1[C1(e)];return n==k1||n!=O1&&(jQ(t)?dQ(t):!!t)},C1=S1.normalize=function(e){return String(e).replace(D1,".").toLowerCase()},A1=S1.data={},O1=S1.NATIVE="N",k1=S1.POLYFILL="P",B1=S1,F1=A0.f,T1=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?fQ:l?fQ[u]||n0(u,{}):(fQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=F1(n,r))&&a.value:n[r],!B1(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;E1(i,o)}(e.sham||o&&o.sham)&&P0(i,"sham",!0),n1(n,r,i,e)}},_1={};_1[y0("toStringTag")]="z";var P1="[object z]"===String(_1),j1=y0("toStringTag"),N1=fQ.Object,I1="Arguments"==OQ(function(){return arguments}()),L1=P1?OQ:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=N1(e),j1))?n:I1?OQ(t):"Object"==(r=OQ(t))&&jQ(t.callee)?"Arguments":r},R1=fQ.String,M1=function(e){if("Symbol"===L1(e))throw TypeError("Cannot convert a Symbol value to a string");return R1(e)},z1=/"/g,H1=SQ("".replace);T1({target:"String",proto:!0,forced:dQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=M1(_Q(this)),r="<a",(r+=' name="'+H1(M1(t),z1,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var $1,V1=function(){var e=B0(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},U1=fQ.RegExp,W1=dQ((function(){var e=U1("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),G1=W1||dQ((function(){return!U1("a","y").sticky})),q1={BROKEN_CARET:W1||dQ((function(){var e=U1("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:G1,UNSUPPORTED_Y:W1},K1=Object.keys||function(e){return g1(e,v1)},Y1=pQ?Object.defineProperties:function(e,t){B0(e);for(var n,r=PQ(t),o=K1(t),i=o.length,a=0;i>a;)_0.f(e,n=o[a++],r[n]);return e},X1=LQ("document","documentElement"),Z1=$0("IE_PROTO"),J1=function(){},Q1=function(e){return"<script>"+e+"<\/script>"},e2=function(e){e.write(Q1("")),e.close();var t=e.parentWindow.Object;return e=null,t},t2=function(){try{$1=new ActiveXObject("htmlfile")}catch(e){}var e,t;t2="undefined"!=typeof document?document.domain&&$1?e2($1):((t=D0("iframe")).style.display="none",X1.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Q1("document.F=Object")),e.close(),e.F):e2($1);for(var n=v1.length;n--;)delete t2.prototype[v1[n]];return t2()};V0[Z1]=!0;var n2,r2,o2=Object.create||function(e,t){var n;return null!==e?(J1.prototype=B0(e),n=new J1,J1.prototype=null,n[Z1]=e):n=t2(),void 0===t?n:Y1(n,t)},i2=fQ.RegExp,a2=dQ((function(){var e=i2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),u2=fQ.RegExp,s2=dQ((function(){var e=u2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),l2=Z0.get,c2=o0("native-string-replace",String.prototype.replace),f2=RegExp.prototype.exec,d2=f2,p2=SQ("".charAt),h2=SQ("".indexOf),g2=SQ("".replace),v2=SQ("".slice),y2=(r2=/b*/g,gQ(f2,n2=/a/,"a"),gQ(f2,r2,"a"),0!==n2.lastIndex||0!==r2.lastIndex),m2=q1.BROKEN_CARET,b2=void 0!==/()??/.exec("")[1];(y2||b2||m2||a2||s2)&&(d2=function(e){var t,n,r,o,i,a,u,s=this,l=l2(s),c=M1(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=gQ(d2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=m2&&s.sticky,h=gQ(V1,s),g=s.source,v=0,y=c;if(p&&(h=g2(h,"y",""),-1===h2(h,"g")&&(h+="g"),y=v2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==p2(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),b2&&(n=new RegExp("^"+g+"$(?!\\s)",h)),y2&&(r=s.lastIndex),o=gQ(f2,p?n:s,y),p?o?(o.input=v2(o.input,v),o[0]=v2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:y2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),b2&&o&&o.length>1&&gQ(c2,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=o2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var w2=d2;T1({target:"RegExp",proto:!0,forced:/./.exec!==w2},{exec:w2});var x2=Array.isArray||function(e){return"Array"==OQ(e)},E2=function(){},D2=[],S2=LQ("Reflect","construct"),C2=/^\s*(?:class|function)\b/,A2=SQ(C2.exec),O2=!C2.exec(E2),k2=function(e){if(!jQ(e))return!1;try{return S2(E2,D2,e),!0}catch(e){return!1}},B2=!S2||dQ((function(){var e;return k2(k2.call)||!k2(Object)||!k2((function(){e=!0}))||e}))?function(e){if(!jQ(e))return!1;switch(L1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return O2||!!A2(C2,R0(e))}:k2,F2=function(e,t,n){var r=w0(t);r in e?_0.f(e,r,bQ(0,n)):e[r]=n},T2=y0("species"),_2=function(e){return UQ>=51||!dQ((function(){var t=[];return(t.constructor={})[T2]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},P2=SQ([].slice),j2=_2("slice"),N2=y0("species"),I2=fQ.Array,L2=Math.max;function R2(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function M2(e){var t=e.selection;if(null==t)return!1;var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=R2(n,2)[1],o=pf.start(e,r);if(Af.equals(t.anchor,o))return!0}return!1}function z2(e,t){var n,r,o=pf.nodes(e,{at:t,match:function(e){return"table"===aO.getNodeType(e)}}),i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}T1({target:"Array",proto:!0,forced:!j2},{slice:function(e,t){var n,r,o,i=PQ(this),a=f1(i),u=s1(e,a),s=s1(void 0===t?a:t,a);if(x2(i)&&(n=i.constructor,(B2(n)&&(n===I2||x2(n.prototype))||NQ(n)&&null===(n=n[N2]))&&(n=void 0),n===I2||void 0===n))return P2(i,u,s);for(r=new(void 0===n?I2:n)(L2(s-u,0)),o=0;u<s;u++,o++)u in i&&F2(r,o,i[u]);return r.length=o,r}});var H2=SQ(SQ.bind),$2=y0("species"),V2=fQ.Array,U2=function(e,t){return new(function(e){var t;return x2(e)&&(t=e.constructor,(B2(t)&&(t===V2||x2(t.prototype))||NQ(t)&&null===(t=t[$2]))&&(t=void 0)),void 0===t?V2:t}(e))(0===t?0:t)},W2=SQ([].push),G2=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=a0(s),g=FQ(h),v=function(e,t){return JQ(e),void 0===t?e:H2?H2(e,t):function(){return e.apply(t,arguments)}}(l,c),y=f1(g),m=0,b=f||U2,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:W2(w,d)}else switch(e){case 4:return!1;case 7:W2(w,d)}return i?-1:r||o?o:w}},q2={forEach:G2(0),map:G2(1),filter:G2(2),some:G2(3),every:G2(4),find:G2(5),findIndex:G2(6),filterReject:G2(7)},K2=q2.map;T1({target:"Array",proto:!0,forced:!_2("map")},{map:function(e){return K2(this,e,arguments.length>1?arguments[1]:void 0)}});var Y2=P1?{}.toString:function(){return"[object "+L1(this)+"]"};function X2(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function Z2(e){return X2(e).every((function(e){return!!e.isHeader}))}P1||n1(Object.prototype,"toString",Y2,{unsafe:!0});var J2=t1.PROPER,Q2=RegExp.prototype,e4=Q2.toString,t4=SQ(V1),n4=dQ((function(){return"/a/b"!=e4.call({source:"a",flags:"b"})})),r4=J2&&"toString"!=e4.name;(n4||r4)&&n1(RegExp.prototype,"toString",(function(){var e=B0(this),t=M1(e.source),n=e.flags;return"/"+t+"/"+M1(void 0===n&&RQ(Q2,e)&&!("flags"in Q2)?t4(e):n)}),{unsafe:!0});var o4=y0("unscopables"),i4=Array.prototype;null==i4[o4]&&_0.f(i4,o4,{configurable:!0,value:o2(null)});var a4=q2.find,u4=!0;"find"in[]&&Array(1).find((function(){u4=!1})),T1({target:"Array",proto:!0,forced:u4},{find:function(e){return a4(this,e,arguments.length>1?arguments[1]:void 0)}}),i4[o4].find=!0;var s4=Function.prototype,l4=s4.apply,c4=s4.bind,f4=s4.call,d4="object"==typeof Reflect&&Reflect.apply||(c4?f4.bind(l4):function(){return f4.apply(l4,arguments)}),p4=y0("species"),h4=RegExp.prototype,g4=function(e,t,n,r){var o=y0(e),i=!dQ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!dQ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[p4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=SQ(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=SQ(e),s=t.exec;return s===w2||s===h4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));n1(String.prototype,e,s[0]),n1(h4,o,s[1])}r&&P0(h4[o],"sham",!0)},v4=y0("match"),y4=fQ.TypeError,m4=y0("species"),b4=SQ("".charAt),w4=SQ("".charCodeAt),x4=SQ("".slice),E4=function(e){return function(t,n){var r,o,i=M1(_Q(t)),a=i1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=w4(i,a))<55296||r>56319||a+1===u||(o=w4(i,a+1))<56320||o>57343?e?b4(i,a):r:e?x4(i,a,a+2):o-56320+(r-55296<<10)+65536}},D4=(E4(!1),E4(!0)),S4=function(e,t,n){return t+(n?D4(e,t).length:1)},C4=fQ.Array,A4=Math.max,O4=function(e,t,n){for(var r=f1(e),o=s1(t,r),i=s1(void 0===n?r:n,r),a=C4(A4(i-o,0)),u=0;o<i;o++,u++)F2(a,u,e[o]);return a.length=u,a},k4=fQ.TypeError,B4=function(e,t){var n=e.exec;if(jQ(n)){var r=gQ(n,e,t);return null!==r&&B0(r),r}if("RegExp"===OQ(e))return gQ(w2,e,t);throw k4("RegExp#exec called on incompatible receiver")},F4=q1.UNSUPPORTED_Y,T4=Math.min,_4=[].push,P4=SQ(/./.exec),j4=SQ(_4),N4=SQ("".slice);g4("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=M1(_Q(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!NQ(r=e)||!(void 0!==(o=r[v4])?o:"RegExp"==OQ(r)))return gQ(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=gQ(w2,p,i))&&!((s=p.lastIndex)>d&&(j4(c,N4(i,d,u.index)),u.length>1&&u.index<i.length&&d4(_4,c,O4(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&P4(p,"")||j4(c,""):j4(c,N4(i,d)),c.length>a?O4(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:gQ(t,this,e,n)}:t,[function(t,n){var o=_Q(this),i=null==t?void 0:QQ(t,e);return i?gQ(i,t,o,n):gQ(r,M1(o),t,n)},function(e,o){var i=B0(this),a=M1(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=B0(e).constructor;return void 0===r||null==(n=B0(r)[m4])?t:function(e){if(B2(e))return e;throw y4(XQ(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(F4?"g":"y"),f=new s(F4?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===B4(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=F4?0:h;var v,y=B4(f,F4?N4(a,h):a);if(null===y||(v=T4(c1(f.lastIndex+(F4?h:0)),a.length))===p)h=S4(a,h,l);else{if(j4(g,N4(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(j4(g,y[m]),g.length===d)return g;h=p=v}}return j4(g,N4(a,p)),g}]}),!!dQ((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),F4);var I4="\t\n\v\f\r                 \u2028\u2029\ufeff",L4=SQ("".replace),R4="["+I4+"]",M4=RegExp("^"+R4+R4+"*"),z4=RegExp(R4+R4+"*$"),H4=function(e){return function(t){var n=M1(_Q(t));return 1&e&&(n=L4(n,M4,"")),2&e&&(n=L4(n,z4,"")),n}},$4={start:H4(1),end:H4(2),trim:H4(3)},V4=t1.PROPER,U4=$4.trim;function W4(e){return e.length?e[0].tagName.toLowerCase():""}T1({target:"String",proto:!0,forced:function(e){return dQ((function(){return!!I4[e]()||"​…᠎"!=="​…᠎"[e]()||V4&&I4[e].name!==e}))}("trim")},{trim:function(){return U4(this)}}),T1({global:!0},{globalThis:fQ}),Ip&&(gp.fn.append=Ip),Dp&&(gp.fn.on=Dp),qp&&(gp.fn.focus=qp),bp&&(gp.fn.attr=bp),Ep&&(gp.fn.val=Ep),Pp&&(gp.fn.html=Pp),xp&&(gp.fn.dataset=xp),vp&&(gp.fn.addClass=vp),yp&&(gp.fn.removeClass=yp),Hp&&(gp.fn.children=Hp),Tp&&(gp.fn.each=Tp),zp&&(gp.fn.find=zp);var G4=!1,q4=0,K4=0,Y4=null,X4=null,Z4=gp("body");function J4(e){G4=!1,X4=null,Y4=null,Z4.off("mousemove",Q4),Z4.off("mouseup",J4)}Z4.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),G4=!0;var n=e.clientX;q4=n;var r=t.getBoundingClientRect().width;K4=r,Z4.on("mousemove",Q4),Z4.on("mouseup",J4)}}));var Q4=Ch((function(e){if(G4&&null!=X4&&null!=Y4){e.preventDefault();var t=e.clientX,n=K4+(t-q4);(n=Math.floor(100*n)/100)<30&&(n=30),ed.setNodes(X4,{width:n.toString()},{at:Y4})}}),100),e3={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Ff.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=aO.findPath(e,t),a=pf.start(e,i),u=pf.end(e,i),s=Af.compare(r,u)<=0&&Af.compare(r,a)>=0,l=Af.compare(o,u)<=0&&Af.compare(o,a)>=0;return!!(s&&l&&Ef.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return tg("div",{className:"table-container","data-selected":aO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=aO.findPath(n,e),o=pf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},tg("table",{width:i,contentEditable:r},tg("colgroup",null,X2(e).map((function(e){var t=e.width;return tg("col",{width:void 0===t?"auto":t})}))),tg("tbody",null,t)))}},t3={type:"table-row",renderElem:function(e,t,n){return tg("tr",null,t)}},n3={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=aO.getParentNode(e,t);if(null==n)return!1;var r=aO.getParentNode(e,n);return null!=r&&X2(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?tg(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ch((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;G4||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",X4=n,Y4=aO.findPath(n,e)):G4||(r.style.cursor="auto",X4=null,Y4=null))}}),100)}},t):tg("td",{colSpan:a,rowSpan:s},t)}},r3={selector:"table",preParseHtml:function(e){var t=gp(e);if("table"!==W4(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},o3=q2.filter;T1({target:"Array",proto:!0,forced:!_2("filter")},{filter:function(e){return o3(this,e,arguments.length>1?arguments[1]:void 0)}});var i3=Math.floor,a3=SQ("".charAt),u3=SQ("".replace),s3=SQ("".slice),l3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c3=/\$([$&'`]|\d{1,2})/g,f3=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=c3;return void 0!==o&&(o=a0(o),s=l3),u3(i,s,(function(i,s){var l;switch(a3(s,0)){case"$":return"$";case"&":return e;case"`":return s3(t,0,n);case"'":return s3(t,a);case"<":l=o[s3(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=i3(c/10);return 0===f?i:f<=u?void 0===r[f-1]?a3(s,1):r[f-1]+a3(s,1):i}l=r[c-1]}return void 0===l?"":l}))},d3=y0("replace"),p3=Math.max,h3=Math.min,g3=SQ([].concat),v3=SQ([].push),y3=SQ("".indexOf),m3=SQ("".slice),b3="$0"==="a".replace(/./,"$0"),w3=!!/./[d3]&&""===/./[d3]("a","$0");g4("replace",(function(e,t,n){var r=w3?"$":"$0";return[function(e,n){var r=_Q(this),o=null==e?void 0:QQ(e,d3);return o?gQ(o,e,r,n):gQ(t,M1(r),e,n)},function(e,o){var i=B0(this),a=M1(e);if("string"==typeof o&&-1===y3(o,r)&&-1===y3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=jQ(o);s||(o=M1(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=B4(i,a);if(null===d)break;if(v3(f,d),!l)break;""===M1(d[0])&&(i.lastIndex=S4(a,c1(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=M1((d=f[v])[0]),m=p3(h3(i1(d.index),a.length),0),b=[],w=1;w<d.length;w++)v3(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=g3([y],b,m,a);void 0!==x&&v3(E,x);var D=M1(d4(o,void 0,E))}else D=f3(y,a,m,b,x,o);m>=g&&(h+=m3(a,g,m)+D,g=m+y.length)}return h+m3(a,g)}]}),!!dQ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!b3||w3);var x3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===W4(r),colSpan:o,rowSpan:i,width:a,children:t}}},E3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===aO.getNodeType(e)}))}}},D3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===aO.getNodeType(e)}))}}},S3=function(){function e(){this.title=H_("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||!!aO.getSelectedElems(e).some((function(t){var n=aO.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=gp('<div class="w-e-panel-content-table"></div>'),r=gp("<span>0 &times; 0</span>"),o=gp("<table></table>"),i=0;i<10;i++){for(var a=gp("<tr></tr>"),u=0;u<10;u++){var s=gp("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=gp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){gp(e).children().each((function(e){var t=gp(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=gp(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){aO.isSelectedEmptyParagraph(e)&&ed.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);ed.insertNodes(e,i,{mode:"highest"})}},e}(),C3=function(){function e(){this.title=H_("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||ed.removeNodes(e,{mode:"highest"})},e}(),A3=function(){function e(){this.title=H_("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-cell")},universal:!0}),1),r=R2(n[0],2),o=r[0],i=r[1],a=aO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Ef.parent(i),f=Ef.next(c);ed.insertNodes(e,s,{at:f})}}},e}(),O3=function(){function e(){this.title=H_("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-row")},universal:!0}),1),r=R2(n[0],2),o=r[0],i=r[1],a=aO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?ed.removeNodes(e,{mode:"highest"}):ed.removeNodes(e,{at:i})}},e}(),k3={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},B3=D0("span").classList,F3=B3&&B3.constructor&&B3.constructor.prototype,T3=F3===Object.prototype?void 0:F3,_3=q2.forEach,P3=function(e,t){var n=[].forEach;return!!n&&dQ((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return _3(this,e,arguments.length>1?arguments[1]:void 0)},j3=function(e){if(e&&e.forEach!==P3)try{P0(e,"forEach",P3)}catch(t){e.forEach=P3}};for(var N3 in k3)k3[N3]&&j3(fQ[N3]&&fQ[N3].prototype);j3(T3);var I3=function(){function e(){this.title=H_("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-cell")},universal:!0}),1),r=R2(n[0],2),o=r[0],i=r[1],a=aO.getParentNode(e,o);if(null!=a){var u=aO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){uf.isElement(t)&&(t.children||[]).forEach((function(t){var r=aO.findPath(e,t);if(r.length===i.length&&iQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&Z2(u)&&(o.isHeader=!0),ed.insertNodes(e,o,{at:r})}}))}))}}},e}(),L3=function(){function e(){this.title=H_("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-cell")},universal:!0}),1),r=R2(n[0],2),o=r[0],i=r[1],a=aO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)ed.removeNodes(e,{mode:"highest"});else{var s=aO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){uf.isElement(t)&&(t.children||[]).forEach((function(t){var n=aO.findPath(e,t);n.length===i.length&&iQ(n.slice(-1),i.slice(-1))&&ed.removeNodes(e,{at:n})}))}))}}},e}(),R3=function(){function e(){this.title=H_("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=aO.getSelectedNodeByType(e,"table");return null!=t&&Z2(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=aO.getSelectedNodeByType(e,"table");null!=r&&X2(r).forEach((function(t){return ed.setNodes(e,{isHeader:n},{at:aO.findPath(e,t)})}))}},e}(),M3=function(){function e(){this.title=H_("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=aO.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};ed.setNodes(e,n,{mode:"highest"})}},e}(),z3={renderElems:[e3,t3,n3],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[r3],parseElemsHtml:[x3,E3,D3],menus:[{key:"insertTable",factory:function(){return new S3}},{key:"deleteTable",factory:function(){return new C3}},{key:"insertTableRow",factory:function(){return new A3}},{key:"deleteTableRow",factory:function(){return new O3}},{key:"insertTableCol",factory:function(){return new I3}},{key:"deleteTableCol",factory:function(){return new L3}},{key:"tableHeader",factory:function(){return new R3}},{key:"tableFullWidth",factory:function(){return new M3}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==aO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!M2(s)){var t=s.selection;if(t){var r=pf.before(s,t);if(r){var o=z2(s,r),i=z2(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(aO.getSelectedNodeByType(s,"table")){var n=pf.above(e);aO.checkNodeType(n[0],"table-cell")&&ed.select(e,n[1]);var r=pf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=pf.above(e,{at:r[1]}))&&void 0!==t?t:r),ed.select(e,r[1]);else{var o=s.children||[],i=o.length;if(aO.checkNodeType(o[i-1],"table")){var u=aO.genEmptyParagraph();ed.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){M2(s)||r(e)},s.normalizeNode=function(e){var t=R2(e,2),n=t[0],r=t[1];if("table"!==aO.getNodeType(n))return o([n,r]);if(aO.isLastNode(s,n)){var i=aO.genEmptyParagraph();ed.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=aO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):pf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=aO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Ef.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==mf.string(t).length){var o=aO.findPath(s,t),i={anchor:pf.start(s,o),focus:pf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};M_("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",width:"Width",height:"Height"}}),M_("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var H3=function(){return(H3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function $3(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function V3(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function U3(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var W3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function G3(e){var t={exports:{}};return e(t,t.exports),t.exports}var q3,K3,Y3=function(e){return e&&e.Math==Math&&e},X3=Y3("object"==typeof globalThis&&globalThis)||Y3("object"==typeof window&&window)||Y3("object"==typeof self&&self)||Y3("object"==typeof W3&&W3)||function(){return this}()||Function("return this")(),Z3=function(e){try{return!!e()}catch(e){return!0}},J3=!Z3((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Q3=Function.prototype.call,e6=Q3.bind?Q3.bind(Q3):function(){return Q3.apply(Q3,arguments)},t6={}.propertyIsEnumerable,n6=Object.getOwnPropertyDescriptor,r6={f:n6&&!t6.call({1:2},1)?function(e){var t=n6(this,e);return!!t&&t.enumerable}:t6},o6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i6=Function.prototype,a6=i6.bind,u6=i6.call,s6=a6&&a6.bind(u6),l6=a6?function(e){return e&&s6(u6,e)}:function(e){return e&&function(){return u6.apply(e,arguments)}},c6=l6({}.toString),f6=l6("".slice),d6=function(e){return f6(c6(e),8,-1)},p6=X3.Object,h6=l6("".split),g6=Z3((function(){return!p6("z").propertyIsEnumerable(0)}))?function(e){return"String"==d6(e)?h6(e,""):p6(e)}:p6,v6=X3.TypeError,y6=function(e){if(null==e)throw v6("Can't call method on "+e);return e},m6=function(e){return g6(y6(e))},b6=function(e){return"function"==typeof e},w6=function(e){return"object"==typeof e?null!==e:b6(e)},x6=function(e){return b6(e)?e:void 0},E6=function(e,t){return arguments.length<2?x6(X3[e]):X3[e]&&X3[e][t]},D6=l6({}.isPrototypeOf),S6=E6("navigator","userAgent")||"",C6=X3.process,A6=X3.Deno,O6=C6&&C6.versions||A6&&A6.version,k6=O6&&O6.v8;k6&&(K3=(q3=k6.split("."))[0]>0&&q3[0]<4?1:+(q3[0]+q3[1])),!K3&&S6&&(!(q3=S6.match(/Edge\/(\d+)/))||q3[1]>=74)&&(q3=S6.match(/Chrome\/(\d+)/))&&(K3=+q3[1]);var B6=K3,F6=!!Object.getOwnPropertySymbols&&!Z3((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B6&&B6<41})),T6=F6&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_6=X3.Object,P6=T6?function(e){return"symbol"==typeof e}:function(e){var t=E6("Symbol");return b6(t)&&D6(t.prototype,_6(e))},j6=X3.String,N6=function(e){try{return j6(e)}catch(e){return"Object"}},I6=X3.TypeError,L6=function(e){if(b6(e))return e;throw I6(N6(e)+" is not a function")},R6=function(e,t){var n=e[t];return null==n?void 0:L6(n)},M6=X3.TypeError,z6=Object.defineProperty,H6=function(e,t){try{z6(X3,e,{value:t,configurable:!0,writable:!0})}catch(n){X3[e]=t}return t},$6=X3["__core-js_shared__"]||H6("__core-js_shared__",{}),V6=G3((function(e){(e.exports=function(e,t){return $6[e]||($6[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),U6=X3.Object,W6=function(e){return U6(y6(e))},G6=l6({}.hasOwnProperty),q6=Object.hasOwn||function(e,t){return G6(W6(e),t)},K6=0,Y6=Math.random(),X6=l6(1..toString),Z6=function(e){return"Symbol("+(void 0===e?"":e)+")_"+X6(++K6+Y6,36)},J6=V6("wks"),Q6=X3.Symbol,e5=Q6&&Q6.for,t5=T6?Q6:Q6&&Q6.withoutSetter||Z6,n5=function(e){if(!q6(J6,e)||!F6&&"string"!=typeof J6[e]){var t="Symbol."+e;F6&&q6(Q6,e)?J6[e]=Q6[e]:J6[e]=T6&&e5?e5(t):t5(t)}return J6[e]},r5=X3.TypeError,o5=n5("toPrimitive"),i5=function(e){var t=function(e,t){if(!w6(e)||P6(e))return e;var n,r=R6(e,o5);if(r){if(void 0===t&&(t="default"),n=e6(r,e,t),!w6(n)||P6(n))return n;throw r5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&b6(n=e.toString)&&!w6(r=e6(n,e)))return r;if(b6(n=e.valueOf)&&!w6(r=e6(n,e)))return r;if("string"!==t&&b6(n=e.toString)&&!w6(r=e6(n,e)))return r;throw M6("Can't convert object to primitive value")}(e,t)}(e,"string");return P6(t)?t:t+""},a5=X3.document,u5=w6(a5)&&w6(a5.createElement),s5=function(e){return u5?a5.createElement(e):{}},l5=!J3&&!Z3((function(){return 7!=Object.defineProperty(s5("div"),"a",{get:function(){return 7}}).a})),c5=Object.getOwnPropertyDescriptor,f5={f:J3?c5:function(e,t){if(e=m6(e),t=i5(t),l5)try{return c5(e,t)}catch(e){}if(q6(e,t))return o6(!e6(r6.f,e,t),e[t])}},d5=X3.String,p5=X3.TypeError,h5=function(e){if(w6(e))return e;throw p5(d5(e)+" is not an object")},g5=X3.TypeError,v5=Object.defineProperty,y5={f:J3?v5:function(e,t,n){if(h5(e),t=i5(t),h5(n),l5)try{return v5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw g5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m5=J3?function(e,t,n){return y5.f(e,t,o6(1,n))}:function(e,t,n){return e[t]=n,e},b5=l6(Function.toString);b6($6.inspectSource)||($6.inspectSource=function(e){return b5(e)});var w5,x5,E5,D5=$6.inspectSource,S5=X3.WeakMap,C5=b6(S5)&&/native code/.test(D5(S5)),A5=V6("keys"),O5=function(e){return A5[e]||(A5[e]=Z6(e))},k5={},B5=X3.TypeError,F5=X3.WeakMap;if(C5||$6.state){var T5=$6.state||($6.state=new F5),_5=l6(T5.get),P5=l6(T5.has),j5=l6(T5.set);w5=function(e,t){if(P5(T5,e))throw new B5("Object already initialized");return t.facade=e,j5(T5,e,t),t},x5=function(e){return _5(T5,e)||{}},E5=function(e){return P5(T5,e)}}else{var N5=O5("state");k5[N5]=!0,w5=function(e,t){if(q6(e,N5))throw new B5("Object already initialized");return t.facade=e,m5(e,N5,t),t},x5=function(e){return q6(e,N5)?e[N5]:{}},E5=function(e){return q6(e,N5)}}var I5={set:w5,get:x5,has:E5,enforce:function(e){return E5(e)?x5(e):w5(e,{})},getterFor:function(e){return function(t){var n;if(!w6(t)||(n=x5(t)).type!==e)throw B5("Incompatible receiver, "+e+" required");return n}}},L5=Function.prototype,R5=J3&&Object.getOwnPropertyDescriptor,M5=q6(L5,"name"),z5={EXISTS:M5,PROPER:M5&&"something"===function(){}.name,CONFIGURABLE:M5&&(!J3||J3&&R5(L5,"name").configurable)},H5=G3((function(e){var t=z5.CONFIGURABLE,n=I5.get,r=I5.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;b6(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!q6(i,"name")||t&&i.name!==f)&&m5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==X3?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:m5(e,n,i)):l?e[n]=i:H6(n,i)})(Function.prototype,"toString",(function(){return b6(this)&&n(this).source||D5(this)}))})),$5=Math.ceil,V5=Math.floor,U5=function(e){var t=+e;return t!=t||0===t?0:(t>0?V5:$5)(t)},W5=Math.max,G5=Math.min,q5=function(e,t){var n=U5(e);return n<0?W5(n+t,0):G5(n,t)},K5=Math.min,Y5=function(e){return e>0?K5(U5(e),9007199254740991):0},X5=function(e){return Y5(e.length)},Z5=function(e){return function(t,n,r){var o,i=m6(t),a=X5(i),u=q5(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},J5={includes:Z5(!0),indexOf:Z5(!1)},Q5=J5.indexOf,e8=l6([].push),t8=function(e,t){var n,r=m6(e),o=0,i=[];for(n in r)!q6(k5,n)&&q6(r,n)&&e8(i,n);for(;t.length>o;)q6(r,n=t[o++])&&(~Q5(i,n)||e8(i,n));return i},n8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],r8=n8.concat("length","prototype"),o8={f:Object.getOwnPropertyNames||function(e){return t8(e,r8)}},i8={f:Object.getOwnPropertySymbols},a8=l6([].concat),u8=E6("Reflect","ownKeys")||function(e){var t=o8.f(h5(e)),n=i8.f;return n?a8(t,n(e)):t},s8=function(e,t){for(var n=u8(t),r=y5.f,o=f5.f,i=0;i<n.length;i++){var a=n[i];q6(e,a)||r(e,a,o(t,a))}},l8=/#|\.prototype\./,c8=function(e,t){var n=d8[f8(e)];return n==h8||n!=p8&&(b6(t)?Z3(t):!!t)},f8=c8.normalize=function(e){return String(e).replace(l8,".").toLowerCase()},d8=c8.data={},p8=c8.NATIVE="N",h8=c8.POLYFILL="P",g8=c8,v8=f5.f,y8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?X3:l?X3[u]||H6(u,{}):(X3[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=v8(n,r))&&a.value:n[r],!g8(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;s8(i,o)}(e.sham||o&&o.sham)&&m5(i,"sham",!0),H5(n,r,i,e)}},m8={};m8[n5("toStringTag")]="z";var b8="[object z]"===String(m8),w8=n5("toStringTag"),x8=X3.Object,E8="Arguments"==d6(function(){return arguments}()),D8=b8?d6:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=x8(e),w8))?n:E8?d6(t):"Object"==(r=d6(t))&&b6(t.callee)?"Arguments":r},S8=X3.String,C8=function(e){if("Symbol"===D8(e))throw TypeError("Cannot convert a Symbol value to a string");return S8(e)},A8="\t\n\v\f\r                 \u2028\u2029\ufeff",O8=l6("".replace),k8="["+A8+"]",B8=RegExp("^"+k8+k8+"*"),F8=RegExp(k8+k8+"*$"),T8=function(e){return function(t){var n=C8(y6(t));return 1&e&&(n=O8(n,B8,"")),2&e&&(n=O8(n,F8,"")),n}},_8={start:T8(1),end:T8(2),trim:T8(3)},P8=z5.PROPER,j8=_8.trim;function N8(e){return e.length?e[0].tagName.toLowerCase():""}function I8(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=gp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}y8({target:"String",proto:!0,forced:Z3((function(){return!!A8.trim()||"​…᠎"!=="​…᠎".trim()||P8&&"trim"!==A8.trim.name}))},{trim:function(){return j8(this)}}),y8({global:!0},{globalThis:X3}),Ip&&(gp.fn.append=Ip),Dp&&(gp.fn.on=Dp),qp&&(gp.fn.focus=qp),bp&&(gp.fn.attr=bp),Ep&&(gp.fn.val=Ep),Pp&&(gp.fn.html=Pp),Rp&&(gp.fn.parent=Rp),mp&&(gp.fn.hasClass=mp),Vp&&(gp.fn.empty=Vp);var L8,R8={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=aO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=tg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:I8(a,c,d)});else{var h=tg("video",{poster:s,controls:!0},tg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=tg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Lh("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},M8={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=I8(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},z8=Object.keys||function(e){return t8(e,n8)},H8=J3?Object.defineProperties:function(e,t){h5(e);for(var n,r=m6(t),o=z8(t),i=o.length,a=0;i>a;)y5.f(e,n=o[a++],r[n]);return e},$8=E6("document","documentElement"),V8=O5("IE_PROTO"),U8=function(){},W8=function(e){return"<script>"+e+"<\/script>"},G8=function(e){e.write(W8("")),e.close();var t=e.parentWindow.Object;return e=null,t},q8=function(){try{L8=new ActiveXObject("htmlfile")}catch(e){}var e,t;q8="undefined"!=typeof document?document.domain&&L8?G8(L8):((t=s5("iframe")).style.display="none",$8.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(W8("document.F=Object")),e.close(),e.F):G8(L8);for(var n=n8.length;n--;)delete q8.prototype[n8[n]];return q8()};k5[V8]=!0;var K8=Object.create||function(e,t){var n;return null!==e?(U8.prototype=h5(e),n=new U8,U8.prototype=null,n[V8]=e):n=q8(),void 0===t?n:H8(n,t)},Y8=n5("unscopables"),X8=Array.prototype;null==X8[Y8]&&y5.f(X8,Y8,{configurable:!0,value:K8(null)});var Z8=function(e){X8[Y8][e]=!0},J8=J5.includes;y8({target:"Array",proto:!0},{includes:function(e){return J8(this,e,arguments.length>1?arguments[1]:void 0)}}),Z8("includes");var Q8={selector:"iframe,video,p",preParseHtml:function(e){var t=gp(e),n=t;if("p"===N8(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=gp(o))}}var a=N8(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=gp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},e7=l6(l6.bind),t7=function(e,t){return L6(e),void 0===t?e:e7?e7(e,t):function(){return e.apply(t,arguments)}},n7=Array.isArray||function(e){return"Array"==d6(e)},r7=function(){},o7=[],i7=E6("Reflect","construct"),a7=/^\s*(?:class|function)\b/,u7=l6(a7.exec),s7=!a7.exec(r7),l7=function(e){if(!b6(e))return!1;try{return i7(r7,o7,e),!0}catch(e){return!1}},c7=!i7||Z3((function(){var e;return l7(l7.call)||!l7(Object)||!l7((function(){e=!0}))||e}))?function(e){if(!b6(e))return!1;switch(D8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return s7||!!u7(a7,D5(e))}:l7,f7=n5("species"),d7=X3.Array,p7=function(e,t){return new(function(e){var t;return n7(e)&&(t=e.constructor,(c7(t)&&(t===d7||n7(t.prototype))||w6(t)&&null===(t=t[f7]))&&(t=void 0)),void 0===t?d7:t}(e))(0===t?0:t)},h7=l6([].push),g7=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=W6(s),g=g6(h),v=t7(l,c),y=X5(g),m=0,b=f||p7,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:h7(w,d)}else switch(e){case 4:return!1;case 7:h7(w,d)}return i?-1:r||o?o:w}},v7={forEach:g7(0),map:g7(1),filter:g7(2),some:g7(3),every:g7(4),find:g7(5),findIndex:g7(6),filterReject:g7(7)},y7=v7.find,m7=!0;"find"in[]&&Array(1).find((function(){m7=!1})),y8({target:"Array",proto:!0,forced:m7},{find:function(e){return y7(this,e,arguments.length>1?arguments[1]:void 0)}}),Z8("find");var b7=b8?{}.toString:function(){return"[object "+D8(this)+"]"};function w7(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}b8||H5(Object.prototype,"toString",b7,{unsafe:!0});var x7,E7,D7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=gp(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",w7(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",w7(o,i=l.attr("poster")||"",a,u)}},S7=function(){var e=h5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},C7=X3.RegExp,A7=Z3((function(){var e=C7("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),O7=A7||Z3((function(){return!C7("a","y").sticky})),k7={BROKEN_CARET:A7||Z3((function(){var e=C7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:O7,UNSUPPORTED_Y:A7},B7=X3.RegExp,F7=Z3((function(){var e=B7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),T7=X3.RegExp,_7=Z3((function(){var e=T7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),P7=I5.get,j7=V6("native-string-replace",String.prototype.replace),N7=RegExp.prototype.exec,I7=N7,L7=l6("".charAt),R7=l6("".indexOf),M7=l6("".replace),z7=l6("".slice),H7=(E7=/b*/g,e6(N7,x7=/a/,"a"),e6(N7,E7,"a"),0!==x7.lastIndex||0!==E7.lastIndex),$7=k7.BROKEN_CARET,V7=void 0!==/()??/.exec("")[1];(H7||V7||$7||F7||_7)&&(I7=function(e){var t,n,r,o,i,a,u,s=this,l=P7(s),c=C8(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=e6(I7,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=$7&&s.sticky,h=e6(S7,s),g=s.source,v=0,y=c;if(p&&(h=M7(h,"y",""),-1===R7(h,"g")&&(h+="g"),y=z7(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==L7(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),V7&&(n=new RegExp("^"+g+"$(?!\\s)",h)),H7&&(r=s.lastIndex),o=e6(N7,p?n:s,y),p?o?(o.input=z7(o.input,v),o[0]=z7(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:H7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),V7&&o&&o.length>1&&e6(j7,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=K8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var U7=I7;y8({target:"RegExp",proto:!0,forced:/./.exec!==U7},{exec:U7});var W7=Function.prototype,G7=W7.apply,q7=W7.bind,K7=W7.call,Y7="object"==typeof Reflect&&Reflect.apply||(q7?K7.bind(G7):function(){return K7.apply(G7,arguments)}),X7=(n5("species"),RegExp.prototype),Z7=l6("".charAt),J7=l6("".charCodeAt),Q7=l6("".slice),e9=function(e){return function(t,n){var r,o,i=C8(y6(t)),a=U5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=J7(i,a))<55296||r>56319||a+1===u||(o=J7(i,a+1))<56320||o>57343?e?Z7(i,a):r:e?Q7(i,a,a+2):o-56320+(r-55296<<10)+65536}},t9={codeAt:e9(!1),charAt:e9(!0)},n9=t9.charAt,r9=function(e,t,n){return t+(n?n9(e,t).length:1)},o9=Math.floor,i9=l6("".charAt),a9=l6("".replace),u9=l6("".slice),s9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l9=/\$([$&'`]|\d{1,2})/g,c9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=l9;return void 0!==o&&(o=W6(o),s=s9),a9(i,s,(function(i,s){var l;switch(i9(s,0)){case"$":return"$";case"&":return e;case"`":return u9(t,0,n);case"'":return u9(t,a);case"<":l=o[u9(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=o9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?i9(s,1):r[f-1]+i9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},f9=X3.TypeError,d9=function(e,t){var n=e.exec;if(b6(n)){var r=e6(n,e,t);return null!==r&&h5(r),r}if("RegExp"===d6(e))return e6(U7,e,t);throw f9("RegExp#exec called on incompatible receiver")},p9=n5("replace"),h9=Math.max,g9=Math.min,v9=l6([].concat),y9=l6([].push),m9=l6("".indexOf),b9=l6("".slice),w9="$0"==="a".replace(/./,"$0"),x9=!!/./[p9]&&""===/./[p9]("a","$0");function E9(e){return void 0===e&&(e="r"),e+"-"+ch()}!function(e,t,n,r){var o=n5(e),i=!Z3((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Z3((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=l6(/./[o]),s=function(e,t,n){var r=x9?"$":"$0";return[function(e,n){var r=y6(this),o=null==e?void 0:R6(e,p9);return o?e6(o,e,r,n):e6(t,C8(r),e,n)},function(e,o){var i=h5(this),a=C8(e);if("string"==typeof o&&-1===m9(o,r)&&-1===m9(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=b6(o);s||(o=C8(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=d9(i,a);if(null===d)break;if(y9(f,d),!l)break;""===C8(d[0])&&(i.lastIndex=r9(a,Y5(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=C8((d=f[v])[0]),m=h9(g9(U5(d.index),a.length),0),b=[],w=1;w<d.length;w++)y9(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=v9([y],b,m,a);void 0!==x&&y9(E,x);var D=C8(Y7(o,void 0,E))}else D=c9(y,a,m,b,x,o);m>=g&&(h+=b9(a,g,m)+D,g=m+y.length)}return h+b9(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=l6(e),s=t.exec;return s===U7||s===X7.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));H5(String.prototype,e,s[0]),H5(X7,o,s[1])}}("replace",0,!!Z3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!w9||x9);var D9=X3.Promise,S9=function(e,t,n){for(var r in t)H5(e,r,t[r],n);return e},C9=X3.String,A9=X3.TypeError,O9=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=l6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return h5(n),function(e){if("object"==typeof e||b6(e))return e;throw A9("Can't set "+C9(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),k9=y5.f,B9=n5("toStringTag"),F9=function(e,t,n){e&&!q6(e=n?e:e.prototype,B9)&&k9(e,B9,{configurable:!0,value:t})},T9=n5("species"),_9=X3.TypeError,P9=function(e,t){if(D6(t,e))return e;throw _9("Incorrect invocation")},j9={},N9=n5("iterator"),I9=Array.prototype,L9=n5("iterator"),R9=function(e){if(null!=e)return R6(e,L9)||R6(e,"@@iterator")||j9[D8(e)]},M9=X3.TypeError,z9=function(e,t,n){var r,o;h5(e);try{if(!(r=R6(e,"return"))){if("throw"===t)throw n;return n}r=e6(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return h5(r),n},H9=X3.TypeError,$9=function(e,t){this.stopped=e,this.result=t},V9=$9.prototype,U9=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=t7(t,f),v=function(e){return r&&z9(r,"normal",e),new $9(!0,e)},y=function(e){return d?(h5(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=R9(e)))throw H9(N6(e)+" is not iterable");if(void 0!==(c=o)&&(j9.Array===c||I9[N9]===c)){for(i=0,a=X5(e);a>i;i++)if((u=y(e[i]))&&D6(V9,u))return u;return new $9(!1)}r=function(e,t){var n=arguments.length<2?R9(e):t;if(L6(n))return h5(e6(n,e));throw M9(N6(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=e6(s,r)).done;){try{u=y(l.value)}catch(e){z9(r,"throw",e)}if("object"==typeof u&&u&&D6(V9,u))return u}return new $9(!1)},W9=n5("iterator"),G9=!1;try{var q9=0,K9={next:function(){return{done:!!q9++}},return:function(){G9=!0}};K9[W9]=function(){return this},Array.from(K9,(function(){throw 2}))}catch(Al){}var Y9,X9,Z9,J9,Q9=function(e,t){if(!t&&!G9)return!1;var n=!1;try{var r={};r[W9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},eee=X3.TypeError,tee=n5("species"),nee=l6([].slice),ree=/(?:ipad|iphone|ipod).*applewebkit/i.test(S6),oee="process"==d6(X3.process),iee=X3.setImmediate,aee=X3.clearImmediate,uee=X3.process,see=X3.Dispatch,lee=X3.Function,cee=X3.MessageChannel,fee=X3.String,dee=0,pee={};try{Y9=X3.location}catch(Al){}var hee=function(e){if(q6(pee,e)){var t=pee[e];delete pee[e],t()}},gee=function(e){return function(){hee(e)}},vee=function(e){hee(e.data)},yee=function(e){X3.postMessage(fee(e),Y9.protocol+"//"+Y9.host)};iee&&aee||(iee=function(e){var t=nee(arguments,1);return pee[++dee]=function(){Y7(b6(e)?e:lee(e),void 0,t)},X9(dee),dee},aee=function(e){delete pee[e]},oee?X9=function(e){uee.nextTick(gee(e))}:see&&see.now?X9=function(e){see.now(gee(e))}:cee&&!ree?(J9=(Z9=new cee).port2,Z9.port1.onmessage=vee,X9=t7(J9.postMessage,J9)):X3.addEventListener&&b6(X3.postMessage)&&!X3.importScripts&&Y9&&"file:"!==Y9.protocol&&!Z3(yee)?(X9=yee,X3.addEventListener("message",vee,!1)):X9="onreadystatechange"in s5("script")?function(e){$8.appendChild(s5("script")).onreadystatechange=function(){$8.removeChild(this),hee(e)}}:function(e){setTimeout(gee(e),0)});var mee,bee,wee,xee,Eee,Dee,See,Cee,Aee={set:iee,clear:aee},Oee=/ipad|iphone|ipod/i.test(S6)&&void 0!==X3.Pebble,kee=/web0s(?!.*chrome)/i.test(S6),Bee=f5.f,Fee=Aee.set,Tee=X3.MutationObserver||X3.WebKitMutationObserver,_ee=X3.document,Pee=X3.process,jee=X3.Promise,Nee=Bee(X3,"queueMicrotask"),Iee=Nee&&Nee.value;Iee||(mee=function(){var e,t;for(oee&&(e=Pee.domain)&&e.exit();bee;){t=bee.fn,bee=bee.next;try{t()}catch(e){throw bee?xee():wee=void 0,e}}wee=void 0,e&&e.enter()},ree||oee||kee||!Tee||!_ee?!Oee&&jee&&jee.resolve?((See=jee.resolve(void 0)).constructor=jee,Cee=t7(See.then,See),xee=function(){Cee(mee)}):oee?xee=function(){Pee.nextTick(mee)}:(Fee=t7(Fee,X3),xee=function(){Fee(mee)}):(Eee=!0,Dee=_ee.createTextNode(""),new Tee(mee).observe(Dee,{characterData:!0}),xee=function(){Dee.data=Eee=!Eee}));var Lee,Ree,Mee,zee,Hee=Iee||function(e){var t={fn:e,next:void 0};wee&&(wee.next=t),bee||(bee=t,xee()),wee=t},$ee=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=L6(t),this.reject=L6(n)},Vee={f:function(e){return new $ee(e)}},Uee=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Wee="object"==typeof window,Gee=Aee.set,qee=n5("species"),Kee="Promise",Yee=I5.getterFor(Kee),Xee=I5.set,Zee=I5.getterFor(Kee),Jee=D9&&D9.prototype,Qee=D9,ete=Jee,tte=X3.TypeError,nte=X3.document,rte=X3.process,ote=Vee.f,ite=ote,ate=!!(nte&&nte.createEvent&&X3.dispatchEvent),ute=b6(X3.PromiseRejectionEvent),ste=!1,lte=g8(Kee,(function(){var e=D5(Qee),t=e!==String(Qee);if(!t&&66===B6)return!0;if(B6>=51&&/native code/.test(e))return!1;var n=new Qee((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[qee]=r,!(ste=n.then((function(){}))instanceof r)||!t&&Wee&&!ute})),cte=lte||!Q9((function(e){Qee.all(e).catch((function(){}))})),fte=function(e){var t;return!(!w6(e)||!b6(t=e.then))&&t},dte=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Hee((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&vte(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(tte("Promise-chain cycle")):(u=fte(a))?e6(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&hte(e)}))}},pte=function(e,t,n){var r,o;ate?((r=nte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),X3.dispatchEvent(r)):r={promise:t,reason:n},!ute&&(o=X3["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=X3.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},hte=function(e){e6(Gee,X3,(function(){var t,n=e.facade,r=e.value;if(gte(e)&&(t=Uee((function(){oee?rte.emit("unhandledRejection",r,n):pte("unhandledrejection",n,r)})),e.rejection=oee||gte(e)?2:1,t.error))throw t.value}))},gte=function(e){return 1!==e.rejection&&!e.parent},vte=function(e){e6(Gee,X3,(function(){var t=e.facade;oee?rte.emit("rejectionHandled",t):pte("rejectionhandled",t,e.value)}))},yte=function(e,t,n){return function(r){e(t,r,n)}},mte=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,dte(e,!0))},bte=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tte("Promise can't be resolved itself");var r=fte(t);r?Hee((function(){var n={done:!1};try{e6(r,t,yte(bte,n,e),yte(mte,n,e))}catch(t){mte(n,t,e)}})):(e.value=t,e.state=1,dte(e,!1))}catch(t){mte({done:!1},t,e)}}};if(lte&&(ete=(Qee=function(e){P9(this,ete),L6(e),e6(Lee,this);var t=Yee(this);try{e(yte(bte,t),yte(mte,t))}catch(e){mte(t,e)}}).prototype,(Lee=function(e){Xee(this,{type:Kee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=S9(ete,{then:function(e,t){var n=Zee(this),r=n.reactions,o=ote(function(e,t){var n,r=h5(e).constructor;return void 0===r||null==(n=h5(r)[tee])?t:function(e){if(c7(e))return e;throw eee(N6(e)+" is not a constructor")}(n)}(this,Qee));return o.ok=!b6(e)||e,o.fail=b6(t)&&t,o.domain=oee?rte.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&dte(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ree=function(){var e=new Lee,t=Yee(e);this.promise=e,this.resolve=yte(bte,t),this.reject=yte(mte,t)},Vee.f=ote=function(e){return e===Qee||e===Mee?new Ree(e):ite(e)},b6(D9)&&Jee!==Object.prototype)){zee=Jee.then,ste||(H5(Jee,"then",(function(e,t){var n=this;return new Qee((function(e,t){e6(zee,n,e,t)})).then(e,t)}),{unsafe:!0}),H5(Jee,"catch",ete.catch,{unsafe:!0}));try{delete Jee.constructor}catch(Al){}O9&&O9(Jee,ete)}function wte(e,t,n){return void 0===n&&(n=""),$3(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return V3(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){ed.insertNodes(e,l)})),o(l),[2]}}))}))}function xte(){return E9("w-e-insert-video")}y8({global:!0,wrap:!0,forced:lte},{Promise:Qee}),F9(Qee,Kee,!1),function(e){var t=E6("Promise"),n=y5.f;J3&&t&&!t[T9]&&n(t,T9,{configurable:!0,get:function(){return this}})}(),Mee=E6(Kee),y8({target:Kee,stat:!0,forced:lte},{reject:function(e){var t=ote(this);return e6(t.reject,void 0,e),t.promise}}),y8({target:Kee,stat:!0,forced:lte},{resolve:function(e){return function(e,t){if(h5(e),w6(t)&&t.constructor===e)return t;var n=Vee.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),y8({target:Kee,stat:!0,forced:cte},{all:function(e){var t=this,n=ote(t),r=n.resolve,o=n.reject,i=Uee((function(){var n=L6(t.resolve),i=[],a=0,u=1;U9(e,(function(e){var s=a++,l=!1;u++,e6(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ote(t),r=n.reject,o=Uee((function(){var o=L6(t.resolve);U9(e,(function(e){e6(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Ete=function(){function e(){this.title=H_("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=xte(),this.posterInputId=xte(),this.buttonId=xte()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||!!aO.getSelectedElems(e).some((function(t){var n=aO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=U3(AT(H_("videoModule.videoSrc"),r,H_("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=U3(AT(H_("videoModule.videoPoster"),o,H_("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=gp(s),p=gp(f),h=U3(OT(i,H_("videoModule.ok")),1)[0];if(null==this.$content){var g=gp("<div></div>");g.on("click","#"+i,(function(n){return $3(t,void 0,void 0,(function(){var t,i;return V3(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,wte(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),Dte=l6([].join),Ste=g6!=Object,Cte=function(e,t){var n=[].join;return!!n&&Z3((function(){n.call(null,",",1)}))}();y8({target:"Array",proto:!0,forced:Ste||!Cte},{join:function(e){return Dte(m6(this),void 0===e?",":e)}});var Ate,Ote,kte,Bte=!Z3((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Fte=O5("IE_PROTO"),Tte=X3.Object,_te=Tte.prototype,Pte=Bte?Tte.getPrototypeOf:function(e){var t=W6(e);if(q6(t,Fte))return t[Fte];var n=t.constructor;return b6(n)&&t instanceof n?n.prototype:t instanceof Tte?_te:null},jte=n5("iterator"),Nte=!1;[].keys&&("next"in(kte=[].keys())?(Ote=Pte(Pte(kte)))!==Object.prototype&&(Ate=Ote):Nte=!0),(null==Ate||Z3((function(){var e={};return Ate[jte].call(e)!==e})))&&(Ate={}),b6(Ate[jte])||H5(Ate,jte,(function(){return this}));var Ite={IteratorPrototype:Ate,BUGGY_SAFARI_ITERATORS:Nte},Lte=Ite.IteratorPrototype,Rte=function(){return this},Mte=z5.PROPER,zte=z5.CONFIGURABLE,Hte=Ite.IteratorPrototype,$te=Ite.BUGGY_SAFARI_ITERATORS,Vte=n5("iterator"),Ute=function(){return this},Wte=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=K8(Lte,{next:o6(1,n)}),F9(e,o,!1),j9[o]=Rte}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!$te&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Vte]||p["@@iterator"]||o&&p[o],g=!$te&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Pte(v.call(new e)))!==Object.prototype&&u.next&&(Pte(u)!==Hte&&(O9?O9(u,Hte):b6(u[Vte])||H5(u,Vte,Ute)),F9(u,f,!0)),Mte&&"values"==o&&h&&"values"!==h.name&&(zte?m5(p,"name","values"):(d=!0,g=function(){return e6(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)($te||d||!(l in p))&&H5(p,l,s[l]);else y8({target:t,proto:!0,forced:$te||d},s);return p[Vte]!==g&&H5(p,Vte,g,{name:o}),j9[t]=g,s},Gte=I5.set,qte=I5.getterFor("Array Iterator"),Kte=Wte(Array,"Array",(function(e,t){Gte(this,{type:"Array Iterator",target:m6(e),index:0,kind:t})}),(function(){var e=qte(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");j9.Arguments=j9.Array,Z8("keys"),Z8("values"),Z8("entries");var Yte=t9.charAt,Xte=I5.set,Zte=I5.getterFor("String Iterator");Wte(String,"String",(function(e){Xte(this,{type:"String Iterator",string:C8(e),index:0})}),(function(){var e,t=Zte(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Yte(n,r),t.index+=e.length,{value:e,done:!1})}));var Jte=function(e,t,n){var r=i5(t);r in e?y5.f(e,r,o6(0,n)):e[r]=n},Qte=X3.Array,ene=Math.max,tne=o8.f,nne="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rne={f:function(e){return nne&&"Window"==d6(e)?function(e){try{return tne(e)}catch(e){return function(e,t,n){for(var r=X5(e),o=q5(void 0,r),i=q5(r,r),a=Qte(ene(i-o,0)),u=0;o<i;o++,u++)Jte(a,u,e[o]);return a.length=u,a}(nne)}}(e):tne(m6(e))}},one=Z3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ine=Object.isExtensible,ane=Z3((function(){ine(1)}))||one?function(e){return!!w6(e)&&(!one||"ArrayBuffer"!=d6(e))&&(!ine||ine(e))}:ine,une=!Z3((function(){return Object.isExtensible(Object.preventExtensions({}))})),sne=G3((function(e){var t=y5.f,n=!1,r=Z6("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=o8.f,t=l6([].splice),o={};o[r]=1,e(o).length&&(o8.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},y8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rne.f}))},fastKey:function(e,t){if(!w6(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!q6(e,r)){if(!ane(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!q6(e,r)){if(!ane(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return une&&n&&ane(e)&&!q6(e,r)&&i(e),e}};k5[r]=!0})),lne=sne.getWeakData,cne=I5.set,fne=I5.getterFor,dne=v7.find,pne=v7.findIndex,hne=l6([].splice),gne=0,vne=function(e){return e.frozen||(e.frozen=new yne)},yne=function(){this.entries=[]},mne=function(e,t){return dne(e.entries,(function(e){return e[0]===t}))};yne.prototype={get:function(e){var t=mne(this,e);if(t)return t[1]},has:function(e){return!!mne(this,e)},set:function(e,t){var n=mne(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=pne(this.entries,(function(t){return t[0]===e}));return~t&&hne(this.entries,t,1),!!~t}};var bne,wne={getConstructor:function(e,t,n,r){var o=e((function(e,o){P9(e,i),cne(e,{type:t,id:gne++,frozen:void 0}),null!=o&&U9(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=fne(t),u=function(e,t,n){var r=a(e),o=lne(h5(t),!0);return!0===o?vne(r).set(t,n):o[r.id]=n,e};return S9(i,{delete:function(e){var t=a(this);if(!w6(e))return!1;var n=lne(e);return!0===n?vne(t).delete(e):n&&q6(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!w6(e))return!1;var n=lne(e);return!0===n?vne(t).has(e):n&&q6(n,t.id)}}),S9(i,n?{get:function(e){var t=a(this);if(w6(e)){var n=lne(e);return!0===n?vne(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},xne=I5.enforce,Ene=!X3.ActiveXObject&&"ActiveXObject"in X3,Dne=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Sne=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=X3[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=l6(u[e]);H5(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!w6(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!w6(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!w6(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(g8(e,!b6(a)||!(o||u.forEach&&!Z3((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),sne.enable();else if(g8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Z3((function(){f.has(1)})),h=Q9((function(e){new a(e)})),g=!o&&Z3((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){P9(e,u);var n=function(e,t,n){var r,o;return O9&&b6(r=t.constructor)&&r!==n&&w6(o=r.prototype)&&o!==n.prototype&&O9(e,o),e}(new a,e,s);return null!=t&&U9(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,y8({global:!0,forced:s!=a},l),F9(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Dne,wne);if(C5&&Ene){bne=wne.getConstructor(Dne,"WeakMap",!0),sne.enable();var Cne=Sne.prototype,Ane=l6(Cne.delete),One=l6(Cne.has),kne=l6(Cne.get),Bne=l6(Cne.set);S9(Cne,{delete:function(e){if(w6(e)&&!ane(e)){var t=xne(this);return t.frozen||(t.frozen=new bne),Ane(this,e)||t.frozen.delete(e)}return Ane(this,e)},has:function(e){if(w6(e)&&!ane(e)){var t=xne(this);return t.frozen||(t.frozen=new bne),One(this,e)||t.frozen.has(e)}return One(this,e)},get:function(e){if(w6(e)&&!ane(e)){var t=xne(this);return t.frozen||(t.frozen=new bne),One(this,e)?kne(this,e):t.frozen.get(e)}return kne(this,e)},set:function(e,t){if(w6(e)&&!ane(e)){var n=xne(this);n.frozen||(n.frozen=new bne),One(this,e)?Bne(this,e,t):n.frozen.set(e,t)}else Bne(this,e,t);return this}})}var Fne={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},Tne=s5("span").classList,_ne=Tne&&Tne.constructor&&Tne.constructor.prototype,Pne=_ne===Object.prototype?void 0:_ne,jne=n5("iterator"),Nne=n5("toStringTag"),Ine=Kte.values,Lne=function(e,t){if(e){if(e[jne]!==Ine)try{m5(e,jne,Ine)}catch(t){e[jne]=Ine}if(e[Nne]||m5(e,Nne,t),Fne[t])for(var n in Kte)if(e[n]!==Kte[n])try{m5(e,n,Kte[n])}catch(t){e[n]=Kte[n]}}};for(var Rne in Fne)Lne(X3[Rne]&&X3[Rne].prototype,Rne);Lne(Pne,"DOMTokenList");var Mne=z5.EXISTS,zne=y5.f,Hne=Function.prototype,$ne=l6(Hne.toString),Vne=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Une=l6(Vne.exec);J3&&!Mne&&zne(Hne,"name",{configurable:!0,get:function(){try{return Une(Vne,$ne(this))[1]}catch(e){return""}}});var Wne=n5("species"),Gne=B6>=51||!Z3((function(){var e=[];return(e.constructor={})[Wne]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),qne=n5("species"),Kne=X3.Array,Yne=Math.max;function Xne(e){return e.getMenuConfig("uploadVideo")}y8({target:"Array",proto:!0,forced:!Gne},{slice:function(e,t){var n,r,o,i=m6(this),a=X5(i),u=q5(e,a),s=q5(void 0===t?a:t,a);if(n7(i)&&(n=i.constructor,(c7(n)&&(n===Kne||n7(n.prototype))||w6(n)&&null===(n=n[qne]))&&(n=void 0),n===Kne||void 0===n))return nee(i,u,s);for(r=new(void 0===n?Kne:n)(Yne(s-u,0)),o=0;u<s;u++,o++)u in i&&Jte(r,o,i[u]);return r.length=o,r}});var Zne=new WeakMap;function Jne(e,t){return $3(this,void 0,void 0,(function(){var n,r,o,i;return V3(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Zne.get(e);if(null!=t)return t;var n=Xne(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=YT(H3(H3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return wte(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;wte(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Zne.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var Qne=function(){function e(){this.title=H_("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return wte(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=gp("body"),s=gp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;$3(this,void 0,void 0,(function(){var o,i,a,u,s,l;return V3(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Xne(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return wte(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Jne(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||!!aO.getSelectedElems(e).some((function(t){var n=aO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),ere=z5.PROPER,tre=RegExp.prototype,nre=tre.toString,rre=l6(S7),ore=Z3((function(){return"/a/b"!=nre.call({source:"a",flags:"b"})})),ire=ere&&"toString"!=nre.name;function are(){return E9("w-e-insert-video")}(ore||ire)&&H5(RegExp.prototype,"toString",(function(){var e=h5(this),t=C8(e.source),n=e.flags;return"/"+t+"/"+C8(void 0===n&&D6(tre,e)&&!("flags"in tre)?rre(e):n)}),{unsafe:!0});var ure=function(){function e(){this.title=H_("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=are(),this.heightInputId=are(),this.buttonId=are()}return e.prototype.getSelectedVideoNode=function(e){return aO.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=U3(AT(H_("videoModule.width"),n,"auto"),2),a=i[0],u=gp(i[1]),s=U3(AT(H_("videoModule.height"),r,"auto"),2),l=s[0],c=gp(s[1]),f=U3(OT(o,H_("videoModule.ok")),1)[0];if(null==this.$content){var d=gp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),ed.setNodes(e,{width:s,height:l},{match:function(e){return aO.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),sre={renderElems:[R8],elemsToHtml:[M8],preParseHtml:[Q8],parseElemsHtml:[D7],menus:[{key:"insertVideo",factory:function(){return new Ete},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Qne},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new ure}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=U3(e,2),o=t[0],i=t[1];return"video"===aO.getNodeType(o)&&aO.isLastNode(r,o)&&ed.insertNodes(r,aO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};M_("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),M_("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var lre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function cre(e){var t={exports:{}};return e(t,t.exports),t.exports}var fre,dre,pre=function(e){return e&&e.Math==Math&&e},hre=pre("object"==typeof globalThis&&globalThis)||pre("object"==typeof window&&window)||pre("object"==typeof self&&self)||pre("object"==typeof lre&&lre)||function(){return this}()||Function("return this")(),gre=function(e){try{return!!e()}catch(e){return!0}},vre=!gre((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yre=Function.prototype.call,mre=yre.bind?yre.bind(yre):function(){return yre.apply(yre,arguments)},bre={}.propertyIsEnumerable,wre=Object.getOwnPropertyDescriptor,xre={f:wre&&!bre.call({1:2},1)?function(e){var t=wre(this,e);return!!t&&t.enumerable}:bre},Ere=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Dre=Function.prototype,Sre=Dre.bind,Cre=Dre.call,Are=Sre&&Sre.bind(Cre),Ore=Sre?function(e){return e&&Are(Cre,e)}:function(e){return e&&function(){return Cre.apply(e,arguments)}},kre=Ore({}.toString),Bre=Ore("".slice),Fre=function(e){return Bre(kre(e),8,-1)},Tre=hre.Object,_re=Ore("".split),Pre=gre((function(){return!Tre("z").propertyIsEnumerable(0)}))?function(e){return"String"==Fre(e)?_re(e,""):Tre(e)}:Tre,jre=hre.TypeError,Nre=function(e){if(null==e)throw jre("Can't call method on "+e);return e},Ire=function(e){return Pre(Nre(e))},Lre=function(e){return"function"==typeof e},Rre=function(e){return"object"==typeof e?null!==e:Lre(e)},Mre=function(e){return Lre(e)?e:void 0},zre=function(e,t){return arguments.length<2?Mre(hre[e]):hre[e]&&hre[e][t]},Hre=Ore({}.isPrototypeOf),$re=zre("navigator","userAgent")||"",Vre=hre.process,Ure=hre.Deno,Wre=Vre&&Vre.versions||Ure&&Ure.version,Gre=Wre&&Wre.v8;Gre&&(dre=(fre=Gre.split("."))[0]>0&&fre[0]<4?1:+(fre[0]+fre[1])),!dre&&$re&&(!(fre=$re.match(/Edge\/(\d+)/))||fre[1]>=74)&&(fre=$re.match(/Chrome\/(\d+)/))&&(dre=+fre[1]);var qre=dre,Kre=!!Object.getOwnPropertySymbols&&!gre((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qre&&qre<41})),Yre=Kre&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xre=hre.Object,Zre=Yre?function(e){return"symbol"==typeof e}:function(e){var t=zre("Symbol");return Lre(t)&&Hre(t.prototype,Xre(e))},Jre=hre.String,Qre=function(e){try{return Jre(e)}catch(e){return"Object"}},eoe=hre.TypeError,toe=function(e){if(Lre(e))return e;throw eoe(Qre(e)+" is not a function")},noe=function(e,t){var n=e[t];return null==n?void 0:toe(n)},roe=hre.TypeError,ooe=Object.defineProperty,ioe=function(e,t){try{ooe(hre,e,{value:t,configurable:!0,writable:!0})}catch(n){hre[e]=t}return t},aoe=hre["__core-js_shared__"]||ioe("__core-js_shared__",{}),uoe=cre((function(e){(e.exports=function(e,t){return aoe[e]||(aoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),soe=hre.Object,loe=function(e){return soe(Nre(e))},coe=Ore({}.hasOwnProperty),foe=Object.hasOwn||function(e,t){return coe(loe(e),t)},doe=0,poe=Math.random(),hoe=Ore(1..toString),goe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hoe(++doe+poe,36)},voe=uoe("wks"),yoe=hre.Symbol,moe=yoe&&yoe.for,boe=Yre?yoe:yoe&&yoe.withoutSetter||goe,woe=function(e){if(!foe(voe,e)||!Kre&&"string"!=typeof voe[e]){var t="Symbol."+e;Kre&&foe(yoe,e)?voe[e]=yoe[e]:voe[e]=Yre&&moe?moe(t):boe(t)}return voe[e]},xoe=hre.TypeError,Eoe=woe("toPrimitive"),Doe=function(e){var t=function(e,t){if(!Rre(e)||Zre(e))return e;var n,r=noe(e,Eoe);if(r){if(void 0===t&&(t="default"),n=mre(r,e,t),!Rre(n)||Zre(n))return n;throw xoe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Lre(n=e.toString)&&!Rre(r=mre(n,e)))return r;if(Lre(n=e.valueOf)&&!Rre(r=mre(n,e)))return r;if("string"!==t&&Lre(n=e.toString)&&!Rre(r=mre(n,e)))return r;throw roe("Can't convert object to primitive value")}(e,t)}(e,"string");return Zre(t)?t:t+""},Soe=hre.document,Coe=Rre(Soe)&&Rre(Soe.createElement),Aoe=function(e){return Coe?Soe.createElement(e):{}},Ooe=!vre&&!gre((function(){return 7!=Object.defineProperty(Aoe("div"),"a",{get:function(){return 7}}).a})),koe=Object.getOwnPropertyDescriptor,Boe={f:vre?koe:function(e,t){if(e=Ire(e),t=Doe(t),Ooe)try{return koe(e,t)}catch(e){}if(foe(e,t))return Ere(!mre(xre.f,e,t),e[t])}},Foe=hre.String,Toe=hre.TypeError,_oe=function(e){if(Rre(e))return e;throw Toe(Foe(e)+" is not an object")},Poe=hre.TypeError,joe=Object.defineProperty,Noe={f:vre?joe:function(e,t,n){if(_oe(e),t=Doe(t),_oe(n),Ooe)try{return joe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Poe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ioe=vre?function(e,t,n){return Noe.f(e,t,Ere(1,n))}:function(e,t,n){return e[t]=n,e},Loe=Ore(Function.toString);Lre(aoe.inspectSource)||(aoe.inspectSource=function(e){return Loe(e)});var Roe,Moe,zoe,Hoe=aoe.inspectSource,$oe=hre.WeakMap,Voe=Lre($oe)&&/native code/.test(Hoe($oe)),Uoe=uoe("keys"),Woe=function(e){return Uoe[e]||(Uoe[e]=goe(e))},Goe={},qoe=hre.TypeError,Koe=hre.WeakMap;if(Voe||aoe.state){var Yoe=aoe.state||(aoe.state=new Koe),Xoe=Ore(Yoe.get),Zoe=Ore(Yoe.has),Joe=Ore(Yoe.set);Roe=function(e,t){if(Zoe(Yoe,e))throw new qoe("Object already initialized");return t.facade=e,Joe(Yoe,e,t),t},Moe=function(e){return Xoe(Yoe,e)||{}},zoe=function(e){return Zoe(Yoe,e)}}else{var Qoe=Woe("state");Goe[Qoe]=!0,Roe=function(e,t){if(foe(e,Qoe))throw new qoe("Object already initialized");return t.facade=e,Ioe(e,Qoe,t),t},Moe=function(e){return foe(e,Qoe)?e[Qoe]:{}},zoe=function(e){return foe(e,Qoe)}}var eie={set:Roe,get:Moe,has:zoe,enforce:function(e){return zoe(e)?Moe(e):Roe(e,{})},getterFor:function(e){return function(t){var n;if(!Rre(t)||(n=Moe(t)).type!==e)throw qoe("Incompatible receiver, "+e+" required");return n}}},tie=Function.prototype,nie=vre&&Object.getOwnPropertyDescriptor,rie=foe(tie,"name"),oie={EXISTS:rie,PROPER:rie&&"something"===function(){}.name,CONFIGURABLE:rie&&(!vre||vre&&nie(tie,"name").configurable)},iie=cre((function(e){var t=oie.CONFIGURABLE,n=eie.get,r=eie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Lre(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!foe(i,"name")||t&&i.name!==f)&&Ioe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==hre?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ioe(e,n,i)):l?e[n]=i:ioe(n,i)})(Function.prototype,"toString",(function(){return Lre(this)&&n(this).source||Hoe(this)}))})),aie=Math.ceil,uie=Math.floor,sie=function(e){var t=+e;return t!=t||0===t?0:(t>0?uie:aie)(t)},lie=Math.max,cie=Math.min,fie=function(e,t){var n=sie(e);return n<0?lie(n+t,0):cie(n,t)},die=Math.min,pie=function(e){return e>0?die(sie(e),9007199254740991):0},hie=function(e){return pie(e.length)},gie=function(e){return function(t,n,r){var o,i=Ire(t),a=hie(i),u=fie(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},vie=(gie(!0),gie(!1)),yie=Ore([].push),mie=function(e,t){var n,r=Ire(e),o=0,i=[];for(n in r)!foe(Goe,n)&&foe(r,n)&&yie(i,n);for(;t.length>o;)foe(r,n=t[o++])&&(~vie(i,n)||yie(i,n));return i},bie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wie=bie.concat("length","prototype"),xie={f:Object.getOwnPropertyNames||function(e){return mie(e,wie)}},Eie={f:Object.getOwnPropertySymbols},Die=Ore([].concat),Sie=zre("Reflect","ownKeys")||function(e){var t=xie.f(_oe(e)),n=Eie.f;return n?Die(t,n(e)):t},Cie=function(e,t){for(var n=Sie(t),r=Noe.f,o=Boe.f,i=0;i<n.length;i++){var a=n[i];foe(e,a)||r(e,a,o(t,a))}},Aie=/#|\.prototype\./,Oie=function(e,t){var n=Bie[kie(e)];return n==Tie||n!=Fie&&(Lre(t)?gre(t):!!t)},kie=Oie.normalize=function(e){return String(e).replace(Aie,".").toLowerCase()},Bie=Oie.data={},Fie=Oie.NATIVE="N",Tie=Oie.POLYFILL="P",_ie=Oie,Pie=Boe.f,jie=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?hre:l?hre[u]||ioe(u,{}):(hre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pie(n,r))&&a.value:n[r],!_ie(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Cie(i,o)}(e.sham||o&&o.sham)&&Ioe(i,"sham",!0),iie(n,r,i,e)}},Nie=Array.isArray||function(e){return"Array"==Fre(e)},Iie={};Iie[woe("toStringTag")]="z";var Lie="[object z]"===String(Iie),Rie=woe("toStringTag"),Mie=hre.Object,zie="Arguments"==Fre(function(){return arguments}()),Hie=Lie?Fre:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Mie(e),Rie))?n:zie?Fre(t):"Object"==(r=Fre(t))&&Lre(t.callee)?"Arguments":r},$ie=function(){},Vie=[],Uie=zre("Reflect","construct"),Wie=/^\s*(?:class|function)\b/,Gie=Ore(Wie.exec),qie=!Wie.exec($ie),Kie=function(e){if(!Lre(e))return!1;try{return Uie($ie,Vie,e),!0}catch(e){return!1}},Yie=!Uie||gre((function(){var e;return Kie(Kie.call)||!Kie(Object)||!Kie((function(){e=!0}))||e}))?function(e){if(!Lre(e))return!1;switch(Hie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qie||!!Gie(Wie,Hoe(e))}:Kie,Xie=function(e,t,n){var r=Doe(t);r in e?Noe.f(e,r,Ere(0,n)):e[r]=n},Zie=woe("species"),Jie=Ore([].slice),Qie=qre>=51||!gre((function(){var e=[];return(e.constructor={})[Zie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),eae=woe("species"),tae=hre.Array,nae=Math.max;jie({target:"Array",proto:!0,forced:!Qie},{slice:function(e,t){var n,r,o,i=Ire(this),a=hie(i),u=fie(e,a),s=fie(void 0===t?a:t,a);if(Nie(i)&&(n=i.constructor,(Yie(n)&&(n===tae||Nie(n.prototype))||Rre(n)&&null===(n=n[eae]))&&(n=void 0),n===tae||void 0===n))return Jie(i,u,s);for(r=new(void 0===n?tae:n)(nae(s-u,0)),o=0;u<s;u++,o++)u in i&&Xie(r,o,i[u]);return r.length=o,r}});var rae=Lie?{}.toString:function(){return"[object "+Hie(this)+"]"};Lie||iie(Object.prototype,"toString",rae,{unsafe:!0});var oae,iae=hre.String,aae=function(e){if("Symbol"===Hie(e))throw TypeError("Cannot convert a Symbol value to a string");return iae(e)},uae=function(){var e=_oe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},sae=hre.RegExp,lae=gre((function(){var e=sae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),cae=lae||gre((function(){return!sae("a","y").sticky})),fae={BROKEN_CARET:lae||gre((function(){var e=sae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:cae,UNSUPPORTED_Y:lae},dae=Object.keys||function(e){return mie(e,bie)},pae=vre?Object.defineProperties:function(e,t){_oe(e);for(var n,r=Ire(t),o=dae(t),i=o.length,a=0;i>a;)Noe.f(e,n=o[a++],r[n]);return e},hae=zre("document","documentElement"),gae=Woe("IE_PROTO"),vae=function(){},yae=function(e){return"<script>"+e+"<\/script>"},mae=function(e){e.write(yae("")),e.close();var t=e.parentWindow.Object;return e=null,t},bae=function(){try{oae=new ActiveXObject("htmlfile")}catch(e){}var e,t;bae="undefined"!=typeof document?document.domain&&oae?mae(oae):((t=Aoe("iframe")).style.display="none",hae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(yae("document.F=Object")),e.close(),e.F):mae(oae);for(var n=bie.length;n--;)delete bae.prototype[bie[n]];return bae()};Goe[gae]=!0;var wae,xae,Eae=Object.create||function(e,t){var n;return null!==e?(vae.prototype=_oe(e),n=new vae,vae.prototype=null,n[gae]=e):n=bae(),void 0===t?n:pae(n,t)},Dae=hre.RegExp,Sae=gre((function(){var e=Dae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Cae=hre.RegExp,Aae=gre((function(){var e=Cae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Oae=eie.get,kae=uoe("native-string-replace",String.prototype.replace),Bae=RegExp.prototype.exec,Fae=Bae,Tae=Ore("".charAt),_ae=Ore("".indexOf),Pae=Ore("".replace),jae=Ore("".slice),Nae=(xae=/b*/g,mre(Bae,wae=/a/,"a"),mre(Bae,xae,"a"),0!==wae.lastIndex||0!==xae.lastIndex),Iae=fae.BROKEN_CARET,Lae=void 0!==/()??/.exec("")[1];(Nae||Lae||Iae||Sae||Aae)&&(Fae=function(e){var t,n,r,o,i,a,u,s=this,l=Oae(s),c=aae(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=mre(Fae,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Iae&&s.sticky,h=mre(uae,s),g=s.source,v=0,y=c;if(p&&(h=Pae(h,"y",""),-1===_ae(h,"g")&&(h+="g"),y=jae(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Tae(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Lae&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Nae&&(r=s.lastIndex),o=mre(Bae,p?n:s,y),p?o?(o.input=jae(o.input,v),o[0]=jae(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Nae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Lae&&o&&o.length>1&&mre(kae,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Eae(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Rae=Fae;jie({target:"RegExp",proto:!0,forced:/./.exec!==Rae},{exec:Rae});var Mae=Function.prototype,zae=Mae.apply,Hae=Mae.bind,$ae=Mae.call,Vae="object"==typeof Reflect&&Reflect.apply||(Hae?$ae.bind(zae):function(){return $ae.apply(zae,arguments)}),Uae=woe("species"),Wae=RegExp.prototype,Gae=woe("match"),qae=hre.TypeError,Kae=woe("species"),Yae=function(e,t){var n,r=_oe(e).constructor;return void 0===r||null==(n=_oe(r)[Kae])?t:function(e){if(Yie(e))return e;throw qae(Qre(e)+" is not a constructor")}(n)},Xae=Ore("".charAt),Zae=Ore("".charCodeAt),Jae=Ore("".slice),Qae=function(e){return function(t,n){var r,o,i=aae(Nre(t)),a=sie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Zae(i,a))<55296||r>56319||a+1===u||(o=Zae(i,a+1))<56320||o>57343?e?Xae(i,a):r:e?Jae(i,a,a+2):o-56320+(r-55296<<10)+65536}},eue={codeAt:Qae(!1),charAt:Qae(!0)},tue=eue.charAt,nue=function(e,t,n){return t+(n?tue(e,t).length:1)},rue=hre.Array,oue=Math.max,iue=function(e,t,n){for(var r=hie(e),o=fie(t,r),i=fie(void 0===n?r:n,r),a=rue(oue(i-o,0)),u=0;o<i;o++,u++)Xie(a,u,e[o]);return a.length=u,a},aue=hre.TypeError,uue=function(e,t){var n=e.exec;if(Lre(n)){var r=mre(n,e,t);return null!==r&&_oe(r),r}if("RegExp"===Fre(e))return mre(Rae,e,t);throw aue("RegExp#exec called on incompatible receiver")},sue=fae.UNSUPPORTED_Y,lue=Math.min,cue=[].push,fue=Ore(/./.exec),due=Ore(cue),pue=Ore("".slice);!function(e,t,n,r){var o=woe(e),i=!gre((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!gre((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Uae]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=Ore(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=aae(Nre(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Rre(r=e)||!(void 0!==(o=r[Gae])?o:"RegExp"==Fre(r)))return mre(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=mre(Rae,p,i))&&!((s=p.lastIndex)>d&&(due(c,pue(i,d,u.index)),u.length>1&&u.index<i.length&&Vae(cue,c,iue(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&fue(p,"")||due(c,""):due(c,pue(i,d)),c.length>a?iue(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:mre(t,this,e,n)}:t,[function(t,n){var o=Nre(this),i=null==t?void 0:noe(t,e);return i?mre(i,t,o,n):mre(r,aae(o),t,n)},function(e,o){var i=_oe(this),a=aae(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Yae(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(sue?"g":"y"),f=new s(sue?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===uue(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=sue?0:h;var v,y=uue(f,sue?pue(a,h):a);if(null===y||(v=lue(pie(f.lastIndex+(sue?h:0)),a.length))===p)h=nue(a,h,l);else{if(due(g,pue(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(due(g,y[m]),g.length===d)return g;h=p=v}}return due(g,pue(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=Ore(e),s=t.exec;return s===Rae||s===Wae.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));iie(String.prototype,e,s[0]),iie(Wae,o,s[1])}r&&Ioe(Wae[o],"sham",!0)}("split",0,!!gre((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),sue);var hue=function(){return(hue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function gue(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function vue(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var yue=woe("unscopables"),mue=Array.prototype;null==mue[yue]&&Noe.f(mue,yue,{configurable:!0,value:Eae(null)});var bue,wue,xue,Eue=function(e){mue[yue][e]=!0},Due={},Sue=!gre((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Cue=Woe("IE_PROTO"),Aue=hre.Object,Oue=Aue.prototype,kue=Sue?Aue.getPrototypeOf:function(e){var t=loe(e);if(foe(t,Cue))return t[Cue];var n=t.constructor;return Lre(n)&&t instanceof n?n.prototype:t instanceof Aue?Oue:null},Bue=woe("iterator"),Fue=!1;[].keys&&("next"in(xue=[].keys())?(wue=kue(kue(xue)))!==Object.prototype&&(bue=wue):Fue=!0),(null==bue||gre((function(){var e={};return bue[Bue].call(e)!==e})))&&(bue={}),Lre(bue[Bue])||iie(bue,Bue,(function(){return this}));var Tue={IteratorPrototype:bue,BUGGY_SAFARI_ITERATORS:Fue},_ue=Noe.f,Pue=woe("toStringTag"),jue=function(e,t,n){e&&!foe(e=n?e:e.prototype,Pue)&&_ue(e,Pue,{configurable:!0,value:t})},Nue=Tue.IteratorPrototype,Iue=function(){return this},Lue=hre.String,Rue=hre.TypeError,Mue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ore(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return _oe(n),function(e){if("object"==typeof e||Lre(e))return e;throw Rue("Can't set "+Lue(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zue=oie.PROPER,Hue=oie.CONFIGURABLE,$ue=Tue.IteratorPrototype,Vue=Tue.BUGGY_SAFARI_ITERATORS,Uue=woe("iterator"),Wue=function(){return this},Gue=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Eae(Nue,{next:Ere(1,n)}),jue(e,o,!1),Due[o]=Iue}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Vue&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Uue]||p["@@iterator"]||o&&p[o],g=!Vue&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=kue(v.call(new e)))!==Object.prototype&&u.next&&(kue(u)!==$ue&&(Mue?Mue(u,$ue):Lre(u[Uue])||iie(u,Uue,Wue)),jue(u,f,!0)),zue&&"values"==o&&h&&"values"!==h.name&&(Hue?Ioe(p,"name","values"):(d=!0,g=function(){return mre(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Vue||d||!(l in p))&&iie(p,l,s[l]);else jie({target:t,proto:!0,forced:Vue||d},s);return p[Uue]!==g&&iie(p,Uue,g,{name:o}),Due[t]=g,s},que=eie.set,Kue=eie.getterFor("Array Iterator"),Yue=Gue(Array,"Array",(function(e,t){que(this,{type:"Array Iterator",target:Ire(e),index:0,kind:t})}),(function(){var e=Kue(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Due.Arguments=Due.Array,Eue("keys"),Eue("values"),Eue("entries");var Xue=eue.charAt,Zue=eie.set,Jue=eie.getterFor("String Iterator");Gue(String,"String",(function(e){Zue(this,{type:"String Iterator",string:aae(e),index:0})}),(function(){var e,t=Jue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Xue(n,r),t.index+=e.length,{value:e,done:!1})}));var Que=function(e,t,n){for(var r in t)iie(e,r,t[r],n);return e},ese=xie.f,tse="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nse={f:function(e){return tse&&"Window"==Fre(e)?function(e){try{return ese(e)}catch(e){return iue(tse)}}(e):ese(Ire(e))}},rse=gre((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ose=Object.isExtensible,ise=gre((function(){ose(1)}))||rse?function(e){return!!Rre(e)&&(!rse||"ArrayBuffer"!=Fre(e))&&(!ose||ose(e))}:ose,ase=!gre((function(){return Object.isExtensible(Object.preventExtensions({}))})),use=cre((function(e){var t=Noe.f,n=!1,r=goe("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=xie.f,t=Ore([].splice),o={};o[r]=1,e(o).length&&(xie.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},jie({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nse.f}))},fastKey:function(e,t){if(!Rre(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!foe(e,r)){if(!ise(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!foe(e,r)){if(!ise(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ase&&n&&ise(e)&&!foe(e,r)&&i(e),e}};Goe[r]=!0})),sse=Ore(Ore.bind),lse=function(e,t){return toe(e),void 0===t?e:sse?sse(e,t):function(){return e.apply(t,arguments)}},cse=woe("iterator"),fse=Array.prototype,dse=woe("iterator"),pse=function(e){if(null!=e)return noe(e,dse)||noe(e,"@@iterator")||Due[Hie(e)]},hse=hre.TypeError,gse=function(e,t,n){var r,o;_oe(e);try{if(!(r=noe(e,"return"))){if("throw"===t)throw n;return n}r=mre(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return _oe(r),n},vse=hre.TypeError,yse=function(e,t){this.stopped=e,this.result=t},mse=yse.prototype,bse=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=lse(t,f),v=function(e){return r&&gse(r,"normal",e),new yse(!0,e)},y=function(e){return d?(_oe(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=pse(e)))throw vse(Qre(e)+" is not iterable");if(void 0!==(c=o)&&(Due.Array===c||fse[cse]===c)){for(i=0,a=hie(e);a>i;i++)if((u=y(e[i]))&&Hre(mse,u))return u;return new yse(!1)}r=function(e,t){var n=arguments.length<2?pse(e):t;if(toe(n))return _oe(mre(n,e));throw hse(Qre(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=mre(s,r)).done;){try{u=y(l.value)}catch(e){gse(r,"throw",e)}if("object"==typeof u&&u&&Hre(mse,u))return u}return new yse(!1)},wse=hre.TypeError,xse=function(e,t){if(Hre(t,e))return e;throw wse("Incorrect invocation")},Ese=woe("iterator"),Dse=!1;try{var Sse=0,Cse={next:function(){return{done:!!Sse++}},return:function(){Dse=!0}};Cse[Ese]=function(){return this},Array.from(Cse,(function(){throw 2}))}catch(Al){}var Ase=function(e,t){if(!t&&!Dse)return!1;var n=!1;try{var r={};r[Ese]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ose=woe("species"),kse=hre.Array,Bse=function(e,t){return new(function(e){var t;return Nie(e)&&(t=e.constructor,(Yie(t)&&(t===kse||Nie(t.prototype))||Rre(t)&&null===(t=t[Ose]))&&(t=void 0)),void 0===t?kse:t}(e))(0===t?0:t)},Fse=Ore([].push),Tse=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=loe(s),g=Pre(h),v=lse(l,c),y=hie(g),m=0,b=f||Bse,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Fse(w,d)}else switch(e){case 4:return!1;case 7:Fse(w,d)}return i?-1:r||o?o:w}},_se={forEach:Tse(0),map:Tse(1),filter:Tse(2),some:Tse(3),every:Tse(4),find:Tse(5),findIndex:Tse(6),filterReject:Tse(7)},Pse=use.getWeakData,jse=eie.set,Nse=eie.getterFor,Ise=_se.find,Lse=_se.findIndex,Rse=Ore([].splice),Mse=0,zse=function(e){return e.frozen||(e.frozen=new Hse)},Hse=function(){this.entries=[]},$se=function(e,t){return Ise(e.entries,(function(e){return e[0]===t}))};Hse.prototype={get:function(e){var t=$se(this,e);if(t)return t[1]},has:function(e){return!!$se(this,e)},set:function(e,t){var n=$se(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Lse(this.entries,(function(t){return t[0]===e}));return~t&&Rse(this.entries,t,1),!!~t}};var Vse,Use={getConstructor:function(e,t,n,r){var o=e((function(e,o){xse(e,i),jse(e,{type:t,id:Mse++,frozen:void 0}),null!=o&&bse(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Nse(t),u=function(e,t,n){var r=a(e),o=Pse(_oe(t),!0);return!0===o?zse(r).set(t,n):o[r.id]=n,e};return Que(i,{delete:function(e){var t=a(this);if(!Rre(e))return!1;var n=Pse(e);return!0===n?zse(t).delete(e):n&&foe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Rre(e))return!1;var n=Pse(e);return!0===n?zse(t).has(e):n&&foe(n,t.id)}}),Que(i,n?{get:function(e){var t=a(this);if(Rre(e)){var n=Pse(e);return!0===n?zse(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Wse=eie.enforce,Gse=!hre.ActiveXObject&&"ActiveXObject"in hre,qse=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Kse=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=hre[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Ore(u[e]);iie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Rre(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Rre(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Rre(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(_ie(e,!Lre(a)||!(o||u.forEach&&!gre((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),use.enable();else if(_ie(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=gre((function(){f.has(1)})),h=Ase((function(e){new a(e)})),g=!o&&gre((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){xse(e,u);var n=function(e,t,n){var r,o;return Mue&&Lre(r=t.constructor)&&r!==n&&Rre(o=r.prototype)&&o!==n.prototype&&Mue(e,o),e}(new a,e,s);return null!=t&&bse(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,jie({global:!0,forced:s!=a},l),jue(s,e),o||n.setStrong(s,e,r),s}("WeakMap",qse,Use);if(Voe&&Gse){Vse=Use.getConstructor(qse,"WeakMap",!0),use.enable();var Yse=Kse.prototype,Xse=Ore(Yse.delete),Zse=Ore(Yse.has),Jse=Ore(Yse.get),Qse=Ore(Yse.set);Que(Yse,{delete:function(e){if(Rre(e)&&!ise(e)){var t=Wse(this);return t.frozen||(t.frozen=new Vse),Xse(this,e)||t.frozen.delete(e)}return Xse(this,e)},has:function(e){if(Rre(e)&&!ise(e)){var t=Wse(this);return t.frozen||(t.frozen=new Vse),Zse(this,e)||t.frozen.has(e)}return Zse(this,e)},get:function(e){if(Rre(e)&&!ise(e)){var t=Wse(this);return t.frozen||(t.frozen=new Vse),Zse(this,e)?Jse(this,e):t.frozen.get(e)}return Jse(this,e)},set:function(e,t){if(Rre(e)&&!ise(e)){var n=Wse(this);n.frozen||(n.frozen=new Vse),Zse(this,e)?Qse(this,e,t):n.frozen.set(e,t)}else Qse(this,e,t);return this}})}var ele={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},tle=Aoe("span").classList,nle=tle&&tle.constructor&&tle.constructor.prototype,rle=nle===Object.prototype?void 0:nle,ole=woe("iterator"),ile=woe("toStringTag"),ale=Yue.values,ule=function(e,t){if(e){if(e[ole]!==ale)try{Ioe(e,ole,ale)}catch(t){e[ole]=ale}if(e[ile]||Ioe(e,ile,t),ele[t])for(var n in Yue)if(e[n]!==Yue[n])try{Ioe(e,n,Yue[n])}catch(t){e[n]=Yue[n]}}};for(var sle in ele)ule(hre[sle]&&hre[sle].prototype,sle);ule(rle,"DOMTokenList");var lle=function(e,t){var n=[][e];return!!n&&gre((function(){n.call(null,t||function(){throw 1},1)}))},cle=_se.forEach,fle=lle("forEach")?[].forEach:function(e){return cle(this,e,arguments.length>1?arguments[1]:void 0)},dle=function(e){if(e&&e.forEach!==fle)try{Ioe(e,"forEach",fle)}catch(t){e.forEach=fle}};for(var ple in ele)ele[ple]&&dle(hre[ple]&&hre[ple].prototype);dle(rle);var hle,gle,vle,yle,mle=hre.Promise,ble=woe("species"),wle=/(?:ipad|iphone|ipod).*applewebkit/i.test($re),xle="process"==Fre(hre.process),Ele=hre.setImmediate,Dle=hre.clearImmediate,Sle=hre.process,Cle=hre.Dispatch,Ale=hre.Function,Ole=hre.MessageChannel,kle=hre.String,Ble=0,Fle={};try{hle=hre.location}catch(Al){}var Tle=function(e){if(foe(Fle,e)){var t=Fle[e];delete Fle[e],t()}},_le=function(e){return function(){Tle(e)}},Ple=function(e){Tle(e.data)},jle=function(e){hre.postMessage(kle(e),hle.protocol+"//"+hle.host)};Ele&&Dle||(Ele=function(e){var t=Jie(arguments,1);return Fle[++Ble]=function(){Vae(Lre(e)?e:Ale(e),void 0,t)},gle(Ble),Ble},Dle=function(e){delete Fle[e]},xle?gle=function(e){Sle.nextTick(_le(e))}:Cle&&Cle.now?gle=function(e){Cle.now(_le(e))}:Ole&&!wle?(yle=(vle=new Ole).port2,vle.port1.onmessage=Ple,gle=lse(yle.postMessage,yle)):hre.addEventListener&&Lre(hre.postMessage)&&!hre.importScripts&&hle&&"file:"!==hle.protocol&&!gre(jle)?(gle=jle,hre.addEventListener("message",Ple,!1)):gle="onreadystatechange"in Aoe("script")?function(e){hae.appendChild(Aoe("script")).onreadystatechange=function(){hae.removeChild(this),Tle(e)}}:function(e){setTimeout(_le(e),0)});var Nle,Ile,Lle,Rle,Mle,zle,Hle,$le,Vle={set:Ele,clear:Dle},Ule=/ipad|iphone|ipod/i.test($re)&&void 0!==hre.Pebble,Wle=/web0s(?!.*chrome)/i.test($re),Gle=Boe.f,qle=Vle.set,Kle=hre.MutationObserver||hre.WebKitMutationObserver,Yle=hre.document,Xle=hre.process,Zle=hre.Promise,Jle=Gle(hre,"queueMicrotask"),Qle=Jle&&Jle.value;Qle||(Nle=function(){var e,t;for(xle&&(e=Xle.domain)&&e.exit();Ile;){t=Ile.fn,Ile=Ile.next;try{t()}catch(e){throw Ile?Rle():Lle=void 0,e}}Lle=void 0,e&&e.enter()},wle||xle||Wle||!Kle||!Yle?!Ule&&Zle&&Zle.resolve?((Hle=Zle.resolve(void 0)).constructor=Zle,$le=lse(Hle.then,Hle),Rle=function(){$le(Nle)}):xle?Rle=function(){Xle.nextTick(Nle)}:(qle=lse(qle,hre),Rle=function(){qle(Nle)}):(Mle=!0,zle=Yle.createTextNode(""),new Kle(Nle).observe(zle,{characterData:!0}),Rle=function(){zle.data=Mle=!Mle}));var ece,tce,nce,rce,oce=Qle||function(e){var t={fn:e,next:void 0};Lle&&(Lle.next=t),Ile||(Ile=t,Rle()),Lle=t},ice=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=toe(t),this.reject=toe(n)},ace={f:function(e){return new ice(e)}},uce=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},sce="object"==typeof window,lce=Vle.set,cce=woe("species"),fce="Promise",dce=eie.getterFor(fce),pce=eie.set,hce=eie.getterFor(fce),gce=mle&&mle.prototype,vce=mle,yce=gce,mce=hre.TypeError,bce=hre.document,wce=hre.process,xce=ace.f,Ece=xce,Dce=!!(bce&&bce.createEvent&&hre.dispatchEvent),Sce=Lre(hre.PromiseRejectionEvent),Cce=!1,Ace=_ie(fce,(function(){var e=Hoe(vce),t=e!==String(vce);if(!t&&66===qre)return!0;if(qre>=51&&/native code/.test(e))return!1;var n=new vce((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[cce]=r,!(Cce=n.then((function(){}))instanceof r)||!t&&sce&&!Sce})),Oce=Ace||!Ase((function(e){vce.all(e).catch((function(){}))})),kce=function(e){var t;return!(!Rre(e)||!Lre(t=e.then))&&t},Bce=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;oce((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Pce(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(mce("Promise-chain cycle")):(u=kce(a))?mre(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Tce(e)}))}},Fce=function(e,t,n){var r,o;Dce?((r=bce.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),hre.dispatchEvent(r)):r={promise:t,reason:n},!Sce&&(o=hre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=hre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Tce=function(e){mre(lce,hre,(function(){var t,n=e.facade,r=e.value;if(_ce(e)&&(t=uce((function(){xle?wce.emit("unhandledRejection",r,n):Fce("unhandledrejection",n,r)})),e.rejection=xle||_ce(e)?2:1,t.error))throw t.value}))},_ce=function(e){return 1!==e.rejection&&!e.parent},Pce=function(e){mre(lce,hre,(function(){var t=e.facade;xle?wce.emit("rejectionHandled",t):Fce("rejectionhandled",t,e.value)}))},jce=function(e,t,n){return function(r){e(t,r,n)}},Nce=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Bce(e,!0))},Ice=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw mce("Promise can't be resolved itself");var r=kce(t);r?oce((function(){var n={done:!1};try{mre(r,t,jce(Ice,n,e),jce(Nce,n,e))}catch(t){Nce(n,t,e)}})):(e.value=t,e.state=1,Bce(e,!1))}catch(t){Nce({done:!1},t,e)}}};if(Ace&&(yce=(vce=function(e){xse(this,yce),toe(e),mre(ece,this);var t=dce(this);try{e(jce(Ice,t),jce(Nce,t))}catch(e){Nce(t,e)}}).prototype,(ece=function(e){pce(this,{type:fce,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Que(yce,{then:function(e,t){var n=hce(this),r=n.reactions,o=xce(Yae(this,vce));return o.ok=!Lre(e)||e,o.fail=Lre(t)&&t,o.domain=xle?wce.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Bce(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),tce=function(){var e=new ece,t=dce(e);this.promise=e,this.resolve=jce(Ice,t),this.reject=jce(Nce,t)},ace.f=xce=function(e){return e===vce||e===nce?new tce(e):Ece(e)},Lre(mle)&&gce!==Object.prototype)){rce=gce.then,Cce||(iie(gce,"then",(function(e,t){var n=this;return new vce((function(e,t){mre(rce,n,e,t)})).then(e,t)}),{unsafe:!0}),iie(gce,"catch",yce.catch,{unsafe:!0}));try{delete gce.constructor}catch(Al){}Mue&&Mue(gce,yce)}jie({global:!0,wrap:!0,forced:Ace},{Promise:vce}),jue(vce,fce,!1),function(e){var t=zre("Promise"),n=Noe.f;vre&&t&&!t[ble]&&n(t,ble,{configurable:!0,get:function(){return this}})}(),nce=zre(fce),jie({target:fce,stat:!0,forced:Ace},{reject:function(e){var t=xce(this);return mre(t.reject,void 0,e),t.promise}}),jie({target:fce,stat:!0,forced:Ace},{resolve:function(e){return function(e,t){if(_oe(e),Rre(t)&&t.constructor===e)return t;var n=ace.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),jie({target:fce,stat:!0,forced:Oce},{all:function(e){var t=this,n=xce(t),r=n.resolve,o=n.reject,i=uce((function(){var n=toe(t.resolve),i=[],a=0,u=1;bse(e,(function(e){var s=a++,l=!1;u++,mre(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=xce(t),r=n.reject,o=uce((function(){var o=toe(t.resolve);bse(e,(function(e){mre(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Lce=oie.PROPER,Rce=RegExp.prototype,Mce=Rce.toString,zce=Ore(uae),Hce=gre((function(){return"/a/b"!=Mce.call({source:"a",flags:"b"})})),$ce=Lce&&"toString"!=Mce.name;(Hce||$ce)&&iie(RegExp.prototype,"toString",(function(){var e=_oe(this),t=aae(e.source),n=e.flags;return"/"+t+"/"+aae(void 0===n&&Hre(Rce,e)&&!("flags"in Rce)?zce(e):n)}),{unsafe:!0});var Vce=oie.EXISTS,Uce=Noe.f,Wce=Function.prototype,Gce=Ore(Wce.toString),qce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Kce=Ore(qce.exec);vre&&!Vce&&Uce(Wce,"name",{configurable:!0,get:function(){try{return Kce(qce,Gce(this))[1]}catch(e){return""}}});var Yce=new WeakMap;function Xce(e){return e.getMenuConfig("uploadImage")}function Zce(e,t){return gue(this,void 0,void 0,(function(){return vue(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;Nz(e,i,t.name,a),n("ok")}}}))]}))}))}function Jce(e,t){return gue(this,void 0,void 0,(function(){var n,r,o,i;return vue(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Yce.get(e);if(null!=t)return t;var n=Xce(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=YT(hue(hue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return Nz(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;Nz(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;Nz(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Yce.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Qce(e,t){var n,r;return gue(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return vue(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Xce(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Zce(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return Nz(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Jce(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var efe=Ore([].join),tfe=Pre!=Object,nfe=lle("join",",");jie({target:"Array",proto:!0,forced:tfe||!nfe},{join:function(e){return efe(Ire(this),void 0===e?",":e)}}),Ip&&(gp.fn.append=Ip),Dp&&(gp.fn.on=Dp),$p&&(gp.fn.remove=$p),Ep&&(gp.fn.val=Ep),Gp&&(gp.fn.click=Gp),kp&&(gp.fn.hide=kp);var rfe=function(){function e(){this.title=H_("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Iz(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return Nz(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=gp("body"),s=gp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Qce(e,t)}))}},e}(),ofe={menus:[{key:"uploadImage",factory:function(){return new rfe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Iz(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Qce(e,o):t(r)}},n}};M_("en",{highLightModule:{selectLang:"Language"}}),M_("zh-CN",{highLightModule:{selectLang:"选择语言"}});var ife="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function afe(e){var t={exports:{}};return e(t,t.exports),t.exports}var ufe,sfe,lfe=function(e){return e&&e.Math==Math&&e},cfe=lfe("object"==typeof globalThis&&globalThis)||lfe("object"==typeof window&&window)||lfe("object"==typeof self&&self)||lfe("object"==typeof ife&&ife)||function(){return this}()||Function("return this")(),ffe=Object.defineProperty,dfe=function(e,t){try{ffe(cfe,e,{value:t,configurable:!0,writable:!0})}catch(n){cfe[e]=t}return t},pfe=cfe["__core-js_shared__"]||dfe("__core-js_shared__",{}),hfe=afe((function(e){(e.exports=function(e,t){return pfe[e]||(pfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),gfe=Function.prototype,vfe=gfe.bind,yfe=gfe.call,mfe=vfe&&vfe.bind(yfe),bfe=vfe?function(e){return e&&mfe(yfe,e)}:function(e){return e&&function(){return yfe.apply(e,arguments)}},wfe=cfe.TypeError,xfe=function(e){if(null==e)throw wfe("Can't call method on "+e);return e},Efe=cfe.Object,Dfe=function(e){return Efe(xfe(e))},Sfe=bfe({}.hasOwnProperty),Cfe=Object.hasOwn||function(e,t){return Sfe(Dfe(e),t)},Afe=0,Ofe=Math.random(),kfe=bfe(1..toString),Bfe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+kfe(++Afe+Ofe,36)},Ffe=function(e){return"function"==typeof e},Tfe=function(e){return Ffe(e)?e:void 0},_fe=function(e,t){return arguments.length<2?Tfe(cfe[e]):cfe[e]&&cfe[e][t]},Pfe=_fe("navigator","userAgent")||"",jfe=cfe.process,Nfe=cfe.Deno,Ife=jfe&&jfe.versions||Nfe&&Nfe.version,Lfe=Ife&&Ife.v8;Lfe&&(sfe=(ufe=Lfe.split("."))[0]>0&&ufe[0]<4?1:+(ufe[0]+ufe[1])),!sfe&&Pfe&&(!(ufe=Pfe.match(/Edge\/(\d+)/))||ufe[1]>=74)&&(ufe=Pfe.match(/Chrome\/(\d+)/))&&(sfe=+ufe[1]);var Rfe=sfe,Mfe=function(e){try{return!!e()}catch(e){return!0}},zfe=!!Object.getOwnPropertySymbols&&!Mfe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rfe&&Rfe<41})),Hfe=zfe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$fe=hfe("wks"),Vfe=cfe.Symbol,Ufe=Vfe&&Vfe.for,Wfe=Hfe?Vfe:Vfe&&Vfe.withoutSetter||Bfe,Gfe=function(e){if(!Cfe($fe,e)||!zfe&&"string"!=typeof $fe[e]){var t="Symbol."+e;zfe&&Cfe(Vfe,e)?$fe[e]=Vfe[e]:$fe[e]=Hfe&&Ufe?Ufe(t):Wfe(t)}return $fe[e]},qfe={};qfe[Gfe("toStringTag")]="z";var Kfe="[object z]"===String(qfe),Yfe=!Mfe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Xfe=function(e){return"object"==typeof e?null!==e:Ffe(e)},Zfe=cfe.document,Jfe=Xfe(Zfe)&&Xfe(Zfe.createElement),Qfe=function(e){return Jfe?Zfe.createElement(e):{}},ede=!Yfe&&!Mfe((function(){return 7!=Object.defineProperty(Qfe("div"),"a",{get:function(){return 7}}).a})),tde=cfe.String,nde=cfe.TypeError,rde=function(e){if(Xfe(e))return e;throw nde(tde(e)+" is not an object")},ode=Function.prototype.call,ide=ode.bind?ode.bind(ode):function(){return ode.apply(ode,arguments)},ade=bfe({}.isPrototypeOf),ude=cfe.Object,sde=Hfe?function(e){return"symbol"==typeof e}:function(e){var t=_fe("Symbol");return Ffe(t)&&ade(t.prototype,ude(e))},lde=cfe.String,cde=function(e){try{return lde(e)}catch(e){return"Object"}},fde=cfe.TypeError,dde=function(e){if(Ffe(e))return e;throw fde(cde(e)+" is not a function")},pde=function(e,t){var n=e[t];return null==n?void 0:dde(n)},hde=cfe.TypeError,gde=cfe.TypeError,vde=Gfe("toPrimitive"),yde=function(e){var t=function(e,t){if(!Xfe(e)||sde(e))return e;var n,r=pde(e,vde);if(r){if(void 0===t&&(t="default"),n=ide(r,e,t),!Xfe(n)||sde(n))return n;throw gde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ffe(n=e.toString)&&!Xfe(r=ide(n,e)))return r;if(Ffe(n=e.valueOf)&&!Xfe(r=ide(n,e)))return r;if("string"!==t&&Ffe(n=e.toString)&&!Xfe(r=ide(n,e)))return r;throw hde("Can't convert object to primitive value")}(e,t)}(e,"string");return sde(t)?t:t+""},mde=cfe.TypeError,bde=Object.defineProperty,wde={f:Yfe?bde:function(e,t,n){if(rde(e),t=yde(t),rde(n),ede)try{return bde(e,t,n)}catch(e){}if("get"in n||"set"in n)throw mde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xde=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ede=Yfe?function(e,t,n){return wde.f(e,t,xde(1,n))}:function(e,t,n){return e[t]=n,e},Dde=bfe(Function.toString);Ffe(pfe.inspectSource)||(pfe.inspectSource=function(e){return Dde(e)});var Sde,Cde,Ade,Ode=pfe.inspectSource,kde=cfe.WeakMap,Bde=Ffe(kde)&&/native code/.test(Ode(kde)),Fde=hfe("keys"),Tde=function(e){return Fde[e]||(Fde[e]=Bfe(e))},_de={},Pde=cfe.TypeError,jde=cfe.WeakMap;if(Bde||pfe.state){var Nde=pfe.state||(pfe.state=new jde),Ide=bfe(Nde.get),Lde=bfe(Nde.has),Rde=bfe(Nde.set);Sde=function(e,t){if(Lde(Nde,e))throw new Pde("Object already initialized");return t.facade=e,Rde(Nde,e,t),t},Cde=function(e){return Ide(Nde,e)||{}},Ade=function(e){return Lde(Nde,e)}}else{var Mde=Tde("state");_de[Mde]=!0,Sde=function(e,t){if(Cfe(e,Mde))throw new Pde("Object already initialized");return t.facade=e,Ede(e,Mde,t),t},Cde=function(e){return Cfe(e,Mde)?e[Mde]:{}},Ade=function(e){return Cfe(e,Mde)}}var zde={set:Sde,get:Cde,has:Ade,enforce:function(e){return Ade(e)?Cde(e):Sde(e,{})},getterFor:function(e){return function(t){var n;if(!Xfe(t)||(n=Cde(t)).type!==e)throw Pde("Incompatible receiver, "+e+" required");return n}}},Hde=Function.prototype,$de=Yfe&&Object.getOwnPropertyDescriptor,Vde=Cfe(Hde,"name"),Ude={EXISTS:Vde,PROPER:Vde&&"something"===function(){}.name,CONFIGURABLE:Vde&&(!Yfe||Yfe&&$de(Hde,"name").configurable)},Wde=afe((function(e){var t=Ude.CONFIGURABLE,n=zde.get,r=zde.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Ffe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cfe(i,"name")||t&&i.name!==f)&&Ede(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==cfe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ede(e,n,i)):l?e[n]=i:dfe(n,i)})(Function.prototype,"toString",(function(){return Ffe(this)&&n(this).source||Ode(this)}))})),Gde=bfe({}.toString),qde=bfe("".slice),Kde=function(e){return qde(Gde(e),8,-1)},Yde=Gfe("toStringTag"),Xde=cfe.Object,Zde="Arguments"==Kde(function(){return arguments}()),Jde=Kfe?Kde:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Xde(e),Yde))?n:Zde?Kde(t):"Object"==(r=Kde(t))&&Ffe(t.callee)?"Arguments":r},Qde=Kfe?{}.toString:function(){return"[object "+Jde(this)+"]"};Kfe||Wde(Object.prototype,"toString",Qde,{unsafe:!0});var epe,tpe={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},npe=Qfe("span").classList,rpe=npe&&npe.constructor&&npe.constructor.prototype,ope=rpe===Object.prototype?void 0:rpe,ipe=bfe(bfe.bind),ape=cfe.Object,upe=bfe("".split),spe=Mfe((function(){return!ape("z").propertyIsEnumerable(0)}))?function(e){return"String"==Kde(e)?upe(e,""):ape(e)}:ape,lpe=Math.ceil,cpe=Math.floor,fpe=function(e){var t=+e;return t!=t||0===t?0:(t>0?cpe:lpe)(t)},dpe=Math.min,ppe=function(e){return e>0?dpe(fpe(e),9007199254740991):0},hpe=function(e){return ppe(e.length)},gpe=Array.isArray||function(e){return"Array"==Kde(e)},vpe=function(){},ype=[],mpe=_fe("Reflect","construct"),bpe=/^\s*(?:class|function)\b/,wpe=bfe(bpe.exec),xpe=!bpe.exec(vpe),Epe=function(e){if(!Ffe(e))return!1;try{return mpe(vpe,ype,e),!0}catch(e){return!1}},Dpe=!mpe||Mfe((function(){var e;return Epe(Epe.call)||!Epe(Object)||!Epe((function(){e=!0}))||e}))?function(e){if(!Ffe(e))return!1;switch(Jde(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xpe||!!wpe(bpe,Ode(e))}:Epe,Spe=Gfe("species"),Cpe=cfe.Array,Ape=function(e,t){return new(function(e){var t;return gpe(e)&&(t=e.constructor,(Dpe(t)&&(t===Cpe||gpe(t.prototype))||Xfe(t)&&null===(t=t[Spe]))&&(t=void 0)),void 0===t?Cpe:t}(e))(0===t?0:t)},Ope=bfe([].push),kpe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Dfe(s),g=spe(h),v=function(e,t){return dde(e),void 0===t?e:ipe?ipe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=hpe(g),m=0,b=f||Ape,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ope(w,d)}else switch(e){case 4:return!1;case 7:Ope(w,d)}return i?-1:r||o?o:w}},Bpe=[kpe(0),kpe(1),kpe(2),kpe(3),kpe(4),kpe(5),kpe(6),kpe(7)][0],Fpe=(epe=[].forEach)&&Mfe((function(){epe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Bpe(this,e,arguments.length>1?arguments[1]:void 0)},Tpe=function(e){if(e&&e.forEach!==Fpe)try{Ede(e,"forEach",Fpe)}catch(t){e.forEach=Fpe}};for(var _pe in tpe)tpe[_pe]&&Tpe(cfe[_pe]&&cfe[_pe].prototype);Tpe(ope);var Ppe={}.propertyIsEnumerable,jpe=Object.getOwnPropertyDescriptor,Npe={f:jpe&&!Ppe.call({1:2},1)?function(e){var t=jpe(this,e);return!!t&&t.enumerable}:Ppe},Ipe=function(e){return spe(xfe(e))},Lpe=Object.getOwnPropertyDescriptor,Rpe={f:Yfe?Lpe:function(e,t){if(e=Ipe(e),t=yde(t),ede)try{return Lpe(e,t)}catch(e){}if(Cfe(e,t))return xde(!ide(Npe.f,e,t),e[t])}},Mpe=Math.max,zpe=Math.min,Hpe=function(e,t){var n=fpe(e);return n<0?Mpe(n+t,0):zpe(n,t)},$pe=function(e){return function(t,n,r){var o,i=Ipe(t),a=hpe(i),u=Hpe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Vpe=($pe(!0),$pe(!1)),Upe=bfe([].push),Wpe=function(e,t){var n,r=Ipe(e),o=0,i=[];for(n in r)!Cfe(_de,n)&&Cfe(r,n)&&Upe(i,n);for(;t.length>o;)Cfe(r,n=t[o++])&&(~Vpe(i,n)||Upe(i,n));return i},Gpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qpe=Gpe.concat("length","prototype"),Kpe={f:Object.getOwnPropertyNames||function(e){return Wpe(e,qpe)}},Ype={f:Object.getOwnPropertySymbols},Xpe=bfe([].concat),Zpe=_fe("Reflect","ownKeys")||function(e){var t=Kpe.f(rde(e)),n=Ype.f;return n?Xpe(t,n(e)):t},Jpe=function(e,t){for(var n=Zpe(t),r=wde.f,o=Rpe.f,i=0;i<n.length;i++){var a=n[i];Cfe(e,a)||r(e,a,o(t,a))}},Qpe=/#|\.prototype\./,ehe=function(e,t){var n=nhe[the(e)];return n==ohe||n!=rhe&&(Ffe(t)?Mfe(t):!!t)},the=ehe.normalize=function(e){return String(e).replace(Qpe,".").toLowerCase()},nhe=ehe.data={},rhe=ehe.NATIVE="N",ohe=ehe.POLYFILL="P",ihe=ehe,ahe=Rpe.f,uhe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?cfe:l?cfe[u]||dfe(u,{}):(cfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ahe(n,r))&&a.value:n[r],!ihe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jpe(i,o)}(e.sham||o&&o.sham)&&Ede(i,"sham",!0),Wde(n,r,i,e)}},she=Object.keys||function(e){return Wpe(e,Gpe)},lhe=Object.assign,che=Object.defineProperty,fhe=bfe([].concat),dhe=!lhe||Mfe((function(){if(Yfe&&1!==lhe({b:1},lhe(che({},"a",{enumerable:!0,get:function(){che(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=lhe({},e)[n]||she(lhe({},t)).join("")!=r}))?function(e,t){for(var n=Dfe(e),r=arguments.length,o=1,i=Ype.f,a=Npe.f;r>o;)for(var u,s=spe(arguments[o++]),l=i?fhe(she(s),i(s)):she(s),c=l.length,f=0;c>f;)u=l[f++],Yfe&&!ide(a,s,u)||(n[u]=s[u]);return n}:lhe;uhe({target:"Object",stat:!0,forced:Object.assign!==dhe},{assign:dhe});var phe=afe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,E=r.next,D=s;E!==t.tail&&!(f&&D>=f.reach);D+=E.value.length,E=E.next){var S=E.value;if(t.length>e.length)return;if(!(S instanceof i)){var C,A=1;if(m){if(!(C=a(x,D,e,y)))break;var O=C.index,k=C.index+C[0].length,B=D;for(B+=E.value.length;O>=B;)B+=(E=E.next).value.length;if(D=B-=E.value.length,E.value instanceof i)continue;for(var F=E;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,S=e.slice(D,B),C.index-=D}else if(!(C=a(x,0,S,y)))continue;O=C.index;var T=C[0],_=S.slice(0,O),P=S.slice(O+T.length),j=D+S.length;f&&j>f.reach&&(f.reach=j);var N=E.prev;if(_&&(N=l(t,N,_),D+=_.length),c(t,N,A),E=l(t,N,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,E,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,E.prev,D,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==ife&&(ife.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,m]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,E]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,d,g]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,y]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,E,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(E),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=C+"|"+S,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){return e.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var hhe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function ghe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+ghe(t)}),0)}var vhe,yhe=cfe.String,mhe=function(e){if("Symbol"===Jde(e))throw TypeError("Cannot convert a Symbol value to a string");return yhe(e)},bhe=function(){var e=rde(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},whe=cfe.RegExp,xhe=Mfe((function(){var e=whe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ehe=xhe||Mfe((function(){return!whe("a","y").sticky})),Dhe={BROKEN_CARET:xhe||Mfe((function(){var e=whe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ehe,UNSUPPORTED_Y:xhe},She=Yfe?Object.defineProperties:function(e,t){rde(e);for(var n,r=Ipe(t),o=she(t),i=o.length,a=0;i>a;)wde.f(e,n=o[a++],r[n]);return e},Che=_fe("document","documentElement"),Ahe=Tde("IE_PROTO"),Ohe=function(){},khe=function(e){return"<script>"+e+"<\/script>"},Bhe=function(e){e.write(khe("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fhe=function(){try{vhe=new ActiveXObject("htmlfile")}catch(e){}var e,t;Fhe="undefined"!=typeof document?document.domain&&vhe?Bhe(vhe):((t=Qfe("iframe")).style.display="none",Che.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(khe("document.F=Object")),e.close(),e.F):Bhe(vhe);for(var n=Gpe.length;n--;)delete Fhe.prototype[Gpe[n]];return Fhe()};_de[Ahe]=!0;var The,_he,Phe=Object.create||function(e,t){var n;return null!==e?(Ohe.prototype=rde(e),n=new Ohe,Ohe.prototype=null,n[Ahe]=e):n=Fhe(),void 0===t?n:She(n,t)},jhe=cfe.RegExp,Nhe=Mfe((function(){var e=jhe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ihe=cfe.RegExp,Lhe=Mfe((function(){var e=Ihe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Rhe=zde.get,Mhe=hfe("native-string-replace",String.prototype.replace),zhe=RegExp.prototype.exec,Hhe=zhe,$he=bfe("".charAt),Vhe=bfe("".indexOf),Uhe=bfe("".replace),Whe=bfe("".slice),Ghe=(_he=/b*/g,ide(zhe,The=/a/,"a"),ide(zhe,_he,"a"),0!==The.lastIndex||0!==_he.lastIndex),qhe=Dhe.BROKEN_CARET,Khe=void 0!==/()??/.exec("")[1];(Ghe||Khe||qhe||Nhe||Lhe)&&(Hhe=function(e){var t,n,r,o,i,a,u,s=this,l=Rhe(s),c=mhe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ide(Hhe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=qhe&&s.sticky,h=ide(bhe,s),g=s.source,v=0,y=c;if(p&&(h=Uhe(h,"y",""),-1===Vhe(h,"g")&&(h+="g"),y=Whe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==$he(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Khe&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ghe&&(r=s.lastIndex),o=ide(zhe,p?n:s,y),p?o?(o.input=Whe(o.input,v),o[0]=Whe(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ghe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Khe&&o&&o.length>1&&ide(Mhe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Phe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Yhe=Hhe;uhe({target:"RegExp",proto:!0,forced:/./.exec!==Yhe},{exec:Yhe});var Xhe=Function.prototype,Zhe=Xhe.apply,Jhe=Xhe.bind,Qhe=Xhe.call,ege="object"==typeof Reflect&&Reflect.apply||(Jhe?Qhe.bind(Zhe):function(){return Qhe.apply(Zhe,arguments)}),tge=Gfe("species"),nge=RegExp.prototype,rge=Gfe("match"),oge=cfe.TypeError,ige=Gfe("species"),age=bfe("".charAt),uge=bfe("".charCodeAt),sge=bfe("".slice),lge=function(e){return function(t,n){var r,o,i=mhe(xfe(t)),a=fpe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=uge(i,a))<55296||r>56319||a+1===u||(o=uge(i,a+1))<56320||o>57343?e?age(i,a):r:e?sge(i,a,a+2):o-56320+(r-55296<<10)+65536}},cge=(lge(!1),lge(!0)),fge=function(e,t,n){return t+(n?cge(e,t).length:1)},dge=cfe.Array,pge=Math.max,hge=function(e,t,n){for(var r,o,i,a,u=hpe(e),s=Hpe(t,u),l=Hpe(void 0===n?u:n,u),c=dge(pge(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=yde(o))in r?wde.f(r,a,xde(0,i)):r[a]=i;return c.length=f,c},gge=cfe.TypeError,vge=function(e,t){var n=e.exec;if(Ffe(n)){var r=ide(n,e,t);return null!==r&&rde(r),r}if("RegExp"===Kde(e))return ide(Yhe,e,t);throw gge("RegExp#exec called on incompatible receiver")},yge=Dhe.UNSUPPORTED_Y,mge=Math.min,bge=[].push,wge=bfe(/./.exec),xge=bfe(bge),Ege=bfe("".slice);!function(e,t,n,r){var o=Gfe(e),i=!Mfe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Mfe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[tge]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=bfe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=mhe(xfe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Xfe(r=e)||!(void 0!==(o=r[rge])?o:"RegExp"==Kde(r)))return ide(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=ide(Yhe,p,i))&&!((s=p.lastIndex)>d&&(xge(c,Ege(i,d,u.index)),u.length>1&&u.index<i.length&&ege(bge,c,hge(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&wge(p,"")||xge(c,""):xge(c,Ege(i,d)),c.length>a?hge(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:ide(t,this,e,n)}:t,[function(t,n){var o=xfe(this),i=null==t?void 0:pde(t,e);return i?ide(i,t,o,n):ide(r,mhe(o),t,n)},function(e,o){var i=rde(this),a=mhe(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=rde(e).constructor;return void 0===r||null==(n=rde(r)[ige])?t:function(e){if(Dpe(e))return e;throw oge(cde(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(yge?"g":"y"),f=new s(yge?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===vge(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=yge?0:h;var v,y=vge(f,yge?Ege(a,h):a);if(null===y||(v=mge(ppe(f.lastIndex+(yge?h:0)),a.length))===p)h=fge(a,h,l);else{if(xge(g,Ege(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(xge(g,y[m]),g.length===d)return g;h=p=v}}return xge(g,Ege(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=bfe(e),s=t.exec;return s===Yhe||s===nge.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Wde(String.prototype,e,s[0]),Wde(nge,o,s[1])}r&&Ede(nge[o],"sham",!0)}("split",0,!!Mfe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),yge),uhe({global:!0},{globalThis:cfe}),bp&&(gp.fn.attr=bp);var Dge=Ude.PROPER,Sge=RegExp.prototype,Cge=Sge.toString,Age=bfe(bhe),Oge=Mfe((function(){return"/a/b"!=Cge.call({source:"a",flags:"b"})})),kge=Dge&&"toString"!=Cge.name;(Oge||kge)&&Wde(RegExp.prototype,"toString",(function(){var e=rde(this),t=mhe(e.source),n=e.flags;return"/"+t+"/"+mhe(void 0===n&&ade(Sge,e)&&!("flags"in Sge)?Age(e):n)}),{unsafe:!0});var Bge=function(){function e(){this.title=H_("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!uf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};ed.setNodes(e,n,{match:function(e){return aO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=aO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=aO.getParentNode(e,t);return uf.isElement(n)?"pre"!==n.type?null:t:null},e}(),Fge={renderStyle:function(e,t){var n=e,r=t,o="";return hhe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=gp(e);if(!uf.isElement(t))return t;if("code"!==aO.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Bge},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Tge=/"/g,_ge=bfe("".replace);uhe({target:"String",proto:!0,forced:Mfe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=mhe(xfe(this)),r="<a",(r+=' name="'+_ge(mhe(t),Tge,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Pge=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!Lf.isText(e))return null;var t=aO.getParentNode(null,e);if(t&&"code"===aO.getNodeType(t)){var n=aO.getParentNode(null,t);if(n&&"pre"===aO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=phe.languages[t];return n?phe.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+ghe(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},jge=function(){return(jge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Nge=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=jge(jge({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=jge(jge({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=jge(jge({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=jge(jge({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=dC(dC({},o),t||{});if(null!=lO[n])throw new Error("Duplicated key '"+n+"' in menu items");lO[n]=r,function(e,t){null!=t&&(sO[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;UF[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){VF.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;EO[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){xO.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){lB.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;fB[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){cB.push(e)}(e)},e.registerModule=function(e){Ige(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Ige(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Nge.registerMenu(e)})),n&&n.forEach((function(e){return Nge.registerRenderElem(e)})),r&&Nge.registerRenderStyle(r),o&&o.forEach((function(e){return Nge.registerElemToHtml(e)})),i&&Nge.registerStyleToHtml(i),a&&a.forEach((function(e){return Nge.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Nge.registerParseElemHtml(e)})),s&&Nge.registerParseStyleHtml(s),l&&Nge.registerPlugin(l)}MG.forEach((function(e){return Ige(e)})),Ige(oQ),Ige(z3),Ige(sre),Ige(ofe),Ige(Fge);var Lge='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Rge={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Mge={hoverbarKeys:jge(jge({},Rge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Nge.setEditorConfig(jge(jge({},Mge),{decorate:Pge}));var zge={hoverbarKeys:Rge};Nge.setSimpleEditorConfig(jge(jge({},zge),{decorate:Pge}));var Hge={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:H_("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:H_("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:H_("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:H_("editor.image"),iconSvg:Lge,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:H_("editor.video"),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>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Nge.setToolbarConfig(Hge);var $ge={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:H_("editor.image"),iconSvg:Lge,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Vge(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Nge.simpleEditorConfig:Nge.editorConfig,c=jge(jge({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return LT({selector:n,config:jge(jge(jge({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Nge.plugins})}function Uge(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Nge.simpleToolbarConfig:Nge.toolbarConfig;return function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return VB(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=dC({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new $T(n,i);return gA.set(a,e),vA.set(e,a),a}(n,{selector:t,config:jge(jge({},u),o)})}Nge.setSimpleToolbarConfig($ge)}).call(this,n(36))},943:function(e,t,n){var r=n(944);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0};n(103)(r,o);r.locals&&(e.exports=r.locals)},944:function(e,t,n){(t=n(102)(!1)).push([e.i,':root,\n:host {\n --w-e-textarea-bg-color: #fff;\n --w-e-textarea-color: #333;\n --w-e-textarea-border-color: #ccc;\n --w-e-textarea-slight-border-color: #e8e8e8;\n --w-e-textarea-slight-color: #d4d4d4;\n --w-e-textarea-slight-bg-color: #f5f2f0;\n --w-e-textarea-selected-border-color: #B4D5FF;\n --w-e-textarea-handler-bg-color: #4290f7;\n --w-e-toolbar-color: #595959;\n --w-e-toolbar-bg-color: #fff;\n --w-e-toolbar-active-color: #333;\n --w-e-toolbar-active-bg-color: #f1f1f1;\n --w-e-toolbar-disabled-color: #999;\n --w-e-toolbar-border-color: #e8e8e8;\n --w-e-modal-button-bg-color: #fafafa;\n --w-e-modal-button-border-color: #d9d9d9;\n}\n.w-e-text-container *,\n.w-e-toolbar * {\n box-sizing: border-box;\n margin: 0;\n outline: none;\n padding: 0;\n}\n.w-e-text-container blockquote,\n.w-e-text-container li,\n.w-e-text-container p,\n.w-e-text-container td,\n.w-e-text-container th,\n.w-e-toolbar * {\n line-height: 1.5;\n}\n.w-e-text-container {\n background-color: var(--w-e-textarea-bg-color);\n color: var(--w-e-textarea-color);\n height: 100%;\n position: relative;\n}\n.w-e-text-container .w-e-scroll {\n -webkit-overflow-scrolling: touch;\n height: 100%;\n}\n.w-e-text-container [data-slate-editor] {\n word-wrap: break-word;\n border-top: 1px solid transparent;\n min-height: 100%;\n outline: 0;\n padding: 0 10px;\n white-space: pre-wrap;\n}\n.w-e-text-container [data-slate-editor] p {\n margin: 15px 0;\n}\n.w-e-text-container [data-slate-editor] h1,\n.w-e-text-container [data-slate-editor] h2,\n.w-e-text-container [data-slate-editor] h3,\n.w-e-text-container [data-slate-editor] h4,\n.w-e-text-container [data-slate-editor] h5 {\n margin: 20px 0;\n}\n.w-e-text-container [data-slate-editor] img {\n cursor: default;\n display: inline!important;\n max-width: 100%;\n min-height: 20px;\n min-width: 20px;\n}\n.w-e-text-container [data-slate-editor] span {\n text-indent: 0;\n}\n.w-e-text-container [data-slate-editor] [data-selected=true] {\n box-shadow: 0 0 0 2px var(--w-e-textarea-selected-border-color);\n}\n.w-e-text-placeholder {\n font-style: italic;\n left: 10px;\n top: 17px;\n width: 90%;\n}\n.w-e-max-length-info,\n.w-e-text-placeholder {\n color: var(--w-e-textarea-slight-color);\n pointer-events: none;\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.w-e-max-length-info {\n bottom: 0.5em;\n right: 1em;\n}\n.w-e-bar {\n background-color: var(--w-e-toolbar-bg-color);\n color: var(--w-e-toolbar-color);\n font-size: 14px;\n padding: 0 5px;\n}\n.w-e-bar svg {\n fill: var(--w-e-toolbar-color);\n height: 14px;\n width: 14px;\n}\n.w-e-bar-show {\n display: flex;\n}\n.w-e-bar-hidden {\n display: none;\n}\n.w-e-hover-bar {\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 5px #0000001f;\n position: absolute;\n}\n.w-e-toolbar {\n flex-wrap: wrap;\n position: relative;\n}\n.w-e-bar-divider {\n background-color: var(--w-e-toolbar-border-color);\n display: inline-flex;\n height: 40px;\n margin: 0 5px;\n width: 1px;\n}\n.w-e-bar-item {\n display: flex;\n height: 40px;\n padding: 4px;\n position: relative;\n text-align: center;\n}\n.w-e-bar-item,\n.w-e-bar-item button {\n align-items: center;\n justify-content: center;\n}\n.w-e-bar-item button {\n background: transparent;\n border: none;\n color: var(--w-e-toolbar-color);\n cursor: pointer;\n display: inline-flex;\n height: 32px;\n overflow: hidden;\n padding: 0 8px;\n white-space: nowrap;\n}\n.w-e-bar-item button:hover {\n background-color: var(--w-e-toolbar-active-bg-color);\n color: var(--w-e-toolbar-active-color);\n}\n.w-e-bar-item button .title {\n margin-left: 5px;\n}\n.w-e-bar-item .active {\n background-color: var(--w-e-toolbar-active-bg-color);\n color: var(--w-e-toolbar-active-color);\n}\n.w-e-bar-item .disabled {\n color: var(--w-e-toolbar-disabled-color);\n cursor: not-allowed;\n}\n.w-e-bar-item .disabled svg {\n fill: var(--w-e-toolbar-disabled-color);\n}\n.w-e-bar-item .disabled:hover {\n background-color: var(--w-e-toolbar-bg-color);\n color: var(--w-e-toolbar-disabled-color);\n}\n.w-e-bar-item .disabled:hover svg {\n fill: var(--w-e-toolbar-disabled-color);\n}\n.w-e-menu-tooltip-v5:before {\n background-color: var(--w-e-toolbar-active-color);\n border-radius: 5px;\n color: var(--w-e-toolbar-bg-color);\n content: attr(data-tooltip);\n font-size: 0.75em;\n opacity: 0;\n padding: 5px 10px;\n position: absolute;\n text-align: center;\n top: 40px;\n transition: opacity 0.6s;\n visibility: hidden;\n white-space: pre;\n z-index: 1;\n}\n.w-e-menu-tooltip-v5:after {\n border: 5px solid transparent;\n border-bottom: 5px solid var(--w-e-toolbar-active-color);\n content: "";\n opacity: 0;\n position: absolute;\n top: 30px;\n transition: opacity 0.6s;\n visibility: hidden;\n}\n.w-e-menu-tooltip-v5:hover:after,\n.w-e-menu-tooltip-v5:hover:before {\n opacity: 1;\n visibility: visible;\n}\n.w-e-menu-tooltip-v5.tooltip-right:before {\n left: 100%;\n top: 10px;\n}\n.w-e-menu-tooltip-v5.tooltip-right:after {\n border-bottom-color: transparent;\n border-left-color: transparent;\n border-right-color: var(--w-e-toolbar-active-color);\n border-top-color: transparent;\n left: 100%;\n margin-left: -10px;\n top: 16px;\n}\n.w-e-bar-item-group .w-e-bar-item-menus-container {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n display: none;\n left: 0;\n margin-top: 40px;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-bar-item-group:hover .w-e-bar-item-menus-container {\n display: block;\n}\n.w-e-select-list {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n left: 0;\n margin-top: 40px;\n max-height: 350px;\n min-width: 100px;\n overflow-y: auto;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-select-list ul {\n line-height: 1;\n list-style: none;\n}\n.w-e-select-list ul .selected {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-select-list ul li {\n cursor: pointer;\n padding: 7px 0 7px 25px;\n position: relative;\n text-align: left;\n white-space: nowrap;\n}\n.w-e-select-list ul li:hover {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-select-list ul li svg {\n left: 0;\n margin-left: 5px;\n margin-top: -7px;\n position: absolute;\n top: 50%;\n}\n.w-e-bar-bottom .w-e-select-list {\n bottom: 0;\n margin-bottom: 40px;\n margin-top: 0;\n top: inherit;\n}\n.w-e-drop-panel {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n margin-top: 40px;\n min-width: 200px;\n padding: 10px;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-bar-bottom .w-e-drop-panel {\n bottom: 0;\n margin-bottom: 40px;\n margin-top: 0;\n top: inherit;\n}\n.w-e-modal {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n color: var(--w-e-toolbar-color);\n font-size: 14px;\n min-height: 40px;\n min-width: 100px;\n padding: 20px 15px 0;\n position: absolute;\n text-align: left;\n z-index: 1;\n}\n.w-e-modal .btn-close {\n cursor: pointer;\n line-height: 1;\n padding: 5px;\n position: absolute;\n right: 8px;\n top: 7px;\n}\n.w-e-modal .btn-close svg {\n fill: var(--w-e-toolbar-color);\n height: 10px;\n width: 10px;\n}\n.w-e-modal .babel-container {\n display: block;\n margin-bottom: 15px;\n}\n.w-e-modal .babel-container span {\n display: block;\n margin-bottom: 10px;\n}\n.w-e-modal .button-container {\n margin-bottom: 15px;\n}\n.w-e-modal button {\n background-color: var(--w-e-modal-button-bg-color);\n border: 1px solid var(--w-e-modal-button-border-color);\n border-radius: 4px;\n color: var(--w-e-toolbar-color);\n cursor: pointer;\n font-weight: 400;\n height: 32px;\n padding: 4.5px 15px;\n text-align: center;\n touch-action: manipulation;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n white-space: nowrap;\n}\n.w-e-modal input[type=number],\n.w-e-modal input[type=text],\n.w-e-modal textarea {\n font-feature-settings: "tnum";\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-modal-button-border-color);\n border-radius: 4px;\n color: var(--w-e-toolbar-color);\n font-variant: tabular-nums;\n padding: 4.5px 11px;\n transition: all 0.3s;\n width: 100%;\n}\n.w-e-modal textarea {\n min-height: 60px;\n}\nbody .w-e-modal,\nbody .w-e-modal * {\n box-sizing: border-box;\n}\n.w-e-progress-bar {\n background-color: var(--w-e-textarea-handler-bg-color);\n height: 1px;\n position: absolute;\n transition: width 0.3s;\n width: 0;\n}\n.w-e-full-screen-container {\n bottom: 0!important;\n display: flex!important;\n flex-direction: column!important;\n height: 100%!important;\n left: 0!important;\n margin: 0!important;\n padding: 0!important;\n position: fixed;\n right: 0!important;\n top: 0!important;\n width: 100% !important;\n}\n.w-e-full-screen-container [data-w-e-textarea=true] {\n flex: 1 !important;\n}\n.w-e-text-container [data-slate-editor] code {\n background-color: var(--w-e-textarea-slight-bg-color);\n border-radius: 3px;\n font-family: monospace;\n padding: 3px;\n}\n.w-e-panel-content-color {\n list-style: none;\n text-align: left;\n width: 230px;\n}\n.w-e-panel-content-color li {\n border: 1px solid var(--w-e-toolbar-bg-color);\n border-radius: 3px 3px;\n cursor: pointer;\n display: inline-block;\n padding: 2px;\n}\n.w-e-panel-content-color li:hover {\n border-color: var(--w-e-toolbar-color);\n}\n.w-e-panel-content-color li .color-block {\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px 3px;\n height: 17px;\n width: 17px;\n}\n.w-e-panel-content-color .active {\n border-color: var(--w-e-toolbar-color);\n}\n.w-e-panel-content-color .clear {\n line-height: 1.5;\n margin-bottom: 5px;\n width: 100%;\n}\n.w-e-panel-content-color .clear svg {\n height: 16px;\n margin-bottom: -4px;\n width: 16px;\n}\n.w-e-text-container [data-slate-editor] blockquote {\n background-color: var(--w-e-textarea-slight-bg-color);\n border-left: 8px solid var(--w-e-textarea-selected-border-color);\n display: block;\n font-size: 100%;\n line-height: 1.5;\n margin: 10px 0;\n padding: 10px;\n}\n.w-e-panel-content-emotion {\n font-size: 20px;\n list-style: none;\n text-align: left;\n width: 300px;\n}\n.w-e-panel-content-emotion li {\n border-radius: 3px 3px;\n cursor: pointer;\n display: inline-block;\n padding: 0 5px;\n}\n.w-e-panel-content-emotion li:hover {\n background-color: var(--w-e-textarea-slight-bg-color);\n}\n.w-e-textarea-divider {\n border-radius: 3px;\n margin: 20px auto;\n padding: 20px;\n}\n.w-e-textarea-divider hr {\n background-color: var(--w-e-textarea-border-color);\n border: 0;\n display: block;\n height: 1px;\n}\n.w-e-text-container [data-slate-editor] pre > code {\n background-color: var(--w-e-textarea-slight-bg-color);\n border: 1px solid var(--w-e-textarea-slight-border-color);\n border-radius: 4px 4px;\n display: block;\n font-size: 14px;\n padding: 10px;\n text-indent: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-image-container {\n display: inline-block;\n margin: 0 3px;\n}\n.w-e-text-container [data-slate-editor] .w-e-image-container:hover {\n box-shadow: 0 0 0 2px var(--w-e-textarea-selected-border-color);\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container {\n overflow: hidden;\n position: relative;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger {\n background-color: var(--w-e-textarea-handler-bg-color);\n height: 7px;\n position: absolute;\n width: 7px;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top {\n cursor: nwse-resize;\n left: 0;\n top: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top {\n cursor: nesw-resize;\n right: 0;\n top: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom {\n bottom: 0;\n cursor: nesw-resize;\n left: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom {\n bottom: 0;\n cursor: nwse-resize;\n right: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover {\n box-shadow: none;\n}\n.w-e-text-container [contenteditable=false] .w-e-image-container:hover {\n box-shadow: none;\n}\n.w-e-text-container [data-slate-editor] .table-container {\n border: 1px dashed var(--w-e-textarea-border-color);\n border-radius: 5px;\n margin-top: 10px;\n overflow-x: auto;\n padding: 10px;\n width: 100%;\n}\n.w-e-text-container [data-slate-editor] table {\n border-collapse: collapse;\n}\n.w-e-text-container [data-slate-editor] table td,\n.w-e-text-container [data-slate-editor] table th {\n border: 1px solid var(--w-e-textarea-border-color);\n line-height: 1.5;\n min-width: 30px;\n padding: 3px 5px;\n text-align: left;\n}\n.w-e-text-container [data-slate-editor] table th {\n background-color: var(--w-e-textarea-slight-bg-color);\n font-weight: 700;\n text-align: center;\n}\n.w-e-panel-content-table {\n background-color: var(--w-e-toolbar-bg-color);\n}\n.w-e-panel-content-table table {\n border-collapse: collapse;\n}\n.w-e-panel-content-table td {\n border: 1px solid var(--w-e-toolbar-border-color);\n cursor: pointer;\n height: 15px;\n padding: 3px 5px;\n width: 20px;\n}\n.w-e-panel-content-table td.active {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-textarea-video-container {\n background-image: linear-gradient(45deg, #eee 25%, transparent 0, transparent 75%, #eee 0, #eee), linear-gradient(45deg, #eee 25%, #fff 0, #fff 75%, #eee 0, #eee);\n background-position: 0 0,10px 10px;\n background-size: 20px 20px;\n border: 1px dashed var(--w-e-textarea-border-color);\n border-radius: 5px;\n margin: 10px auto 0;\n padding: 10px 0;\n text-align: center;\n}\n.w-e-text-container [data-slate-editor] pre > code {\n word-wrap: normal;\n font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;\n -webkit-hyphens: none;\n hyphens: none;\n line-height: 1.5;\n margin: 0.5em 0;\n overflow: auto;\n padding: 1em;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n text-align: left;\n text-shadow: 0 1px #fff;\n white-space: pre;\n word-break: normal;\n word-spacing: normal;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.cdata,\n.w-e-text-container [data-slate-editor] pre > code .token.comment,\n.w-e-text-container [data-slate-editor] pre > code .token.doctype,\n.w-e-text-container [data-slate-editor] pre > code .token.prolog {\n color: #708090;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.punctuation {\n color: #999;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.namespace {\n opacity: 0.7;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.boolean,\n.w-e-text-container [data-slate-editor] pre > code .token.constant,\n.w-e-text-container [data-slate-editor] pre > code .token.deleted,\n.w-e-text-container [data-slate-editor] pre > code .token.number,\n.w-e-text-container [data-slate-editor] pre > code .token.property,\n.w-e-text-container [data-slate-editor] pre > code .token.symbol,\n.w-e-text-container [data-slate-editor] pre > code .token.tag {\n color: #905;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.attr-name,\n.w-e-text-container [data-slate-editor] pre > code .token.builtin,\n.w-e-text-container [data-slate-editor] pre > code .token.char,\n.w-e-text-container [data-slate-editor] pre > code .token.inserted,\n.w-e-text-container [data-slate-editor] pre > code .token.selector,\n.w-e-text-container [data-slate-editor] pre > code .token.string {\n color: #690;\n}\n.w-e-text-container [data-slate-editor] pre > code .language-css .token.string,\n.w-e-text-container [data-slate-editor] pre > code .style .token.string,\n.w-e-text-container [data-slate-editor] pre > code .token.entity,\n.w-e-text-container [data-slate-editor] pre > code .token.operator,\n.w-e-text-container [data-slate-editor] pre > code .token.url {\n color: #9a6e3a;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.atrule,\n.w-e-text-container [data-slate-editor] pre > code .token.attr-value,\n.w-e-text-container [data-slate-editor] pre > code .token.keyword {\n color: #07a;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.class-name,\n.w-e-text-container [data-slate-editor] pre > code .token.function {\n color: #dd4a68;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.important,\n.w-e-text-container [data-slate-editor] pre > code .token.regex,\n.w-e-text-container [data-slate-editor] pre > code .token.variable {\n color: #e90;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.bold,\n.w-e-text-container [data-slate-editor] pre > code .token.important {\n font-weight: 700;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.italic {\n font-style: italic;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.entity {\n cursor: help;\n}\n',""]),e.exports=t}}]);
2
+ (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[27],{572:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n.n(r),i=n(638),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(e){var t=e.defaultContent,n=void 0===t?[]:t,s=e.onCreated,l=e.defaultHtml,c=void 0===l?"":l,f=e.value,d=void 0===f?"":f,p=e.onChange,h=e.defaultConfig,g=void 0===h?{}:h,v=e.mode,y=void 0===v?"default":v,m=e.style,b=void 0===m?{}:m,w=e.className,x=Object(r.useRef)(null),E=u(Object(r.useState)(null),2),D=E[0],S=E[1],C=u(Object(r.useState)(""),2),A=C[0],O=C[1],k=function(e){s&&s(e);var t=g.onCreated;t&&t(e)},B=function(e){O(e.getHtml()),p&&p(e);var t=g.onChange;t&&t(e)},F=function(e){var t=g.onDestroyed;S(null),t&&t(e)};return Object(r.useEffect)((function(){if(null!=D&&d!==A)try{D.setHtml(d)}catch(e){console.error(e)}}),[d]),Object(r.useEffect)((function(){var e;if(null!=x.current&&null==D&&!(null===(e=x.current)||void 0===e?void 0:e.getAttribute("data-w-e-textarea"))){var t=Object(i.a)({selector:x.current,config:a(a({},g),{onCreated:k,onChange:B,onDestroyed:F}),content:n,html:c||d,mode:y});S(t)}}),[D]),o.a.createElement("div",{style:b,ref:x,className:w})}function l(e){var t=e.editor,n=e.defaultConfig,a=void 0===n?{}:n,u=e.mode,s=void 0===u?"default":u,l=e.style,c=void 0===l?{}:l,f=e.className,d=Object(r.useRef)(null);return Object(r.useEffect)((function(){null!=d.current&&null!=t&&i.b({editor:t,selector:d.current,config:a,mode:s})}),[t]),o.a.createElement("div",{style:c,ref:d,className:f})}var c=n(100),f=n.n(c),d=(n(955),n(70)),p=n(16),h=n(258);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=function(e){var t=e.id,n=e.className,a=e.style,u=e.key,h=e.toolbarClassName,g=e.toolbarStyle,v=e.editorClassName,m=e.editorStyle,w=e.locale,x=e.mode,E=e.htmlValue,D=(e.textValue,e.selectionTextValue,e.toolbarConfig),S=e.editorConfig,C=e.uploadImage,A=e.uploadVideo,O=e.successMessage,k=e.errorMessage,B=e.setProps,F=b(Object(r.useState)(null),2),T=F[0],_=F[1];C.maxFileSize=C.maxFileSize?C.maxFileSize:2097152,A.maxFileSize=A.maxFileSize?A.maxFileSize:10485760,S.onMaxLength=function(e){f.a.error("zh-CN"==w?"已超出最大长度限制":"Maximum length limit exceeded",y({},k))},S.MENU_CONF=S.MENU_CONF?S.MENU_CONF:{},S.MENU_CONF.uploadImage=y(y({},C),{},{onBeforeUpload:function(e){return e},onProgress:function(e){console.log("progress",e)},onSuccess:function(e,t){f.a.success("".concat(e.name,"zh-CN"==w?"上传成功!":" upload successful"),y({},O))},onFailed:function(e,t){f.a.error("zh-CN"==w?"".concat(e.name,"上传失败!\n").concat(t.message):"".concat(e.name," upload failed.\n").concat(t.message),y({},k))},onError:function(e,t,n){f.a.error("zh-CN"==w?"".concat(e.name,"上传出错!\n").concat(t,"\n").concat(n.message):"".concat(e.name," upload error.\n").concat(t,"\n").concat(n.message),y({},k))}}),S.MENU_CONF.uploadVideo=y(y({},A),{},{onBeforeUpload:function(e){return e},onProgress:function(e){console.log("progress",e)},onSuccess:function(e,t){f.a.success("".concat(e.name,"zh-CN"==w?"上传成功!":" upload successful"),y({},O))},onFailed:function(e,t){f.a.error("zh-CN"==w?"".concat(e.name,"上传失败!\n").concat(t.message):"".concat(e.name," upload failed.\n").concat(t.message),y({},k))},onError:function(e,t,n){f.a.error("zh-CN"==w?"".concat(e.name,"上传出错!\n").concat(t,"\n").concat(n.message):"".concat(e.name," upload error.\n").concat(t,"\n").concat(n.message),y({},k))}});return Object(r.useEffect)((function(){return Object(i.c)(w),function(){null!=T&&(T.destroy(),_(null))}}),[T]),o.a.createElement("div",{id:t,className:Object(p.isString)(n)?n:n?Object(d.a)(n):void 0,style:y({border:"1px solid #ccc",zIndex:9999},a),key:u},o.a.createElement(l,{className:Object(p.isString)(h)?h:h?Object(d.a)(h):void 0,style:y({borderBottom:"1px solid #ccc"},g),mode:x,editor:T,defaultConfig:D}),o.a.createElement(s,{className:Object(p.isString)(v)?v:v?Object(d.a)(v):void 0,style:m,mode:x,defaultConfig:S,value:E,onCreated:_,onChange:function(e){B({htmlValue:e.getHtml(),textValue:e.getText(),selectionTextValue:e.getSelectionText()})}}),o.a.createElement(c.Toaster,null))};t.default=x;x.defaultProps=h.b,x.propTypes=h.c},638:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Vge})),n.d(t,"b",(function(){return Uge})),n.d(t,"c",(function(){return z_}));var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var i,a,u=function(e){return e&&e.Math==Math&&e},s=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof r&&r)||function(){return this}()||Function("return this")(),l=Function.prototype,c=l.apply,f=l.bind,d=l.call,p="object"==typeof Reflect&&Reflect.apply||(f?d.bind(c):function(){return d.apply(c,arguments)}),h=Function.prototype,g=h.bind,v=h.call,y=g&&g.bind(v),m=g?function(e){return e&&y(v,e)}:function(e){return e&&function(){return v.apply(e,arguments)}},b=function(e){return"function"==typeof e},w=function(e){try{return!!e()}catch(e){return!0}},x=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,D=E.bind?E.bind(E):function(){return E.apply(E,arguments)},S={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,A={f:C&&!S.call({1:2},1)?function(e){var t=C(this,e);return!!t&&t.enumerable}:S},O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k=m({}.toString),B=m("".slice),F=function(e){return B(k(e),8,-1)},T=s.Object,_=m("".split),P=w((function(){return!T("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?_(e,""):T(e)}:T,j=s.TypeError,N=function(e){if(null==e)throw j("Can't call method on "+e);return e},I=function(e){return P(N(e))},L=function(e){return"object"==typeof e?null!==e:b(e)},R={},M=function(e){return b(e)?e:void 0},z=function(e,t){return arguments.length<2?M(R[e])||M(s[e]):R[e]&&R[e][t]||s[e]&&s[e][t]},H=m({}.isPrototypeOf),$=z("navigator","userAgent")||"",V=s.process,U=s.Deno,W=V&&V.versions||U&&U.version,G=W&&W.v8;G&&(a=(i=G.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&$&&(!(i=$.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=$.match(/Chrome\/(\d+)/))&&(a=+i[1]);var q,K=a,Y=!!Object.getOwnPropertySymbols&&!w((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&K&&K<41})),X=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=s.Object,J=X?function(e){return"symbol"==typeof e}:function(e){var t=z("Symbol");return b(t)&&H(t.prototype,Z(e))},Q=s.String,ee=function(e){try{return Q(e)}catch(e){return"Object"}},te=s.TypeError,ne=function(e){if(b(e))return e;throw te(ee(e)+" is not a function")},re=function(e,t){var n=e[t];return null==n?void 0:ne(n)},oe=s.TypeError,ie=Object.defineProperty,ae=s["__core-js_shared__"]||function(e,t){try{ie(s,e,{value:t,configurable:!0,writable:!0})}catch(n){s[e]=t}return t}("__core-js_shared__",{}),ue=o((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),se=s.Object,le=function(e){return se(N(e))},ce=m({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return ce(le(e),t)},de=0,pe=Math.random(),he=m(1..toString),ge=function(e){return"Symbol("+(void 0===e?"":e)+")_"+he(++de+pe,36)},ve=ue("wks"),ye=s.Symbol,me=ye&&ye.for,be=X?ye:ye&&ye.withoutSetter||ge,we=function(e){if(!fe(ve,e)||!Y&&"string"!=typeof ve[e]){var t="Symbol."+e;Y&&fe(ye,e)?ve[e]=ye[e]:ve[e]=X&&me?me(t):be(t)}return ve[e]},xe=s.TypeError,Ee=we("toPrimitive"),De=function(e){var t=function(e,t){if(!L(e)||J(e))return e;var n,r=re(e,Ee);if(r){if(void 0===t&&(t="default"),n=D(r,e,t),!L(n)||J(n))return n;throw xe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&b(n=e.toString)&&!L(r=D(n,e)))return r;if(b(n=e.valueOf)&&!L(r=D(n,e)))return r;if("string"!==t&&b(n=e.toString)&&!L(r=D(n,e)))return r;throw oe("Can't convert object to primitive value")}(e,t)}(e,"string");return J(t)?t:t+""},Se=s.document,Ce=L(Se)&&L(Se.createElement),Ae=function(e){return Ce?Se.createElement(e):{}},Oe=!x&&!w((function(){return 7!=Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a})),ke=Object.getOwnPropertyDescriptor,Be={f:x?ke:function(e,t){if(e=I(e),t=De(t),Oe)try{return ke(e,t)}catch(e){}if(fe(e,t))return O(!D(A.f,e,t),e[t])}},Fe=/#|\.prototype\./,Te=function(e,t){var n=Pe[_e(e)];return n==Ne||n!=je&&(b(t)?w(t):!!t)},_e=Te.normalize=function(e){return String(e).replace(Fe,".").toLowerCase()},Pe=Te.data={},je=Te.NATIVE="N",Ne=Te.POLYFILL="P",Ie=Te,Le=m(m.bind),Re=function(e,t){return ne(e),void 0===t?e:Le?Le(e,t):function(){return e.apply(t,arguments)}},Me=s.String,ze=s.TypeError,He=function(e){if(L(e))return e;throw ze(Me(e)+" is not an object")},$e=s.TypeError,Ve=Object.defineProperty,Ue={f:x?Ve:function(e,t,n){if(He(e),t=De(t),He(n),Oe)try{return Ve(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},We=x?function(e,t,n){return Ue.f(e,t,O(1,n))}:function(e,t,n){return e[t]=n,e},Ge=Be.f,qe=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return p(e,this,arguments)};return t.prototype=e.prototype,t},Ke=function(e,t){var n,r,o,i,a,u,l,c,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?s:p?s[f]:(s[f]||{}).prototype,v=d?R:R[f]||We(R,f,{})[f],y=v.prototype;for(o in t)n=!Ie(d?o:f+(p?".":"#")+o,e.forced)&&g&&fe(g,o),a=v[o],n&&(u=e.noTargetGet?(c=Ge(g,o))&&c.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(l=e.bind&&n?Re(i,s):e.wrap&&n?qe(i):h&&b(i)?m(i):i,(e.sham||i&&i.sham||a&&a.sham)&&We(l,"sham",!0),We(v,o,l),h&&(fe(R,r=f+"Prototype")||We(R,r,{}),We(R[r],o,i),e.real&&y&&!y[o]&&We(y,o,i)))},Ye=ue("keys"),Xe=function(e){return Ye[e]||(Ye[e]=ge(e))},Ze=!w((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Je=Xe("IE_PROTO"),Qe=s.Object,et=Qe.prototype,tt=Ze?Qe.getPrototypeOf:function(e){var t=le(e);if(fe(t,Je))return t[Je];var n=t.constructor;return b(n)&&t instanceof n?n.prototype:t instanceof Qe?et:null},nt=s.String,rt=s.TypeError,ot=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=m(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return He(n),function(e){if("object"==typeof e||b(e))return e;throw rt("Can't set "+nt(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),it=Math.ceil,at=Math.floor,ut=function(e){var t=+e;return t!=t||0===t?0:(t>0?at:it)(t)},st=Math.max,lt=Math.min,ct=function(e,t){var n=ut(e);return n<0?st(n+t,0):lt(n,t)},ft=Math.min,dt=function(e){return(t=e.length)>0?ft(ut(t),9007199254740991):0;var t},pt=function(e){return function(t,n,r){var o,i=I(t),a=dt(i),u=ct(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},ht={includes:pt(!0),indexOf:pt(!1)},gt={},vt=ht.indexOf,yt=m([].push),mt=function(e,t){var n,r=I(e),o=0,i=[];for(n in r)!fe(gt,n)&&fe(r,n)&&yt(i,n);for(;t.length>o;)fe(r,n=t[o++])&&(~vt(i,n)||yt(i,n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wt=bt.concat("length","prototype"),xt={f:Object.getOwnPropertyNames||function(e){return mt(e,wt)}},Et={f:Object.getOwnPropertySymbols},Dt=m([].concat),St=z("Reflect","ownKeys")||function(e){var t=xt.f(He(e)),n=Et.f;return n?Dt(t,n(e)):t},Ct=Object.keys||function(e){return mt(e,bt)},At=x?Object.defineProperties:function(e,t){He(e);for(var n,r=I(t),o=Ct(t),i=o.length,a=0;i>a;)Ue.f(e,n=o[a++],r[n]);return e},Ot=z("document","documentElement"),kt=Xe("IE_PROTO"),Bt=function(){},Ft=function(e){return"<script>"+e+"<\/script>"},Tt=function(e){e.write(Ft("")),e.close();var t=e.parentWindow.Object;return e=null,t},_t=function(){try{q=new ActiveXObject("htmlfile")}catch(e){}var e,t;_t="undefined"!=typeof document?document.domain&&q?Tt(q):((t=Ae("iframe")).style.display="none",Ot.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ft("document.F=Object")),e.close(),e.F):Tt(q);for(var n=bt.length;n--;)delete _t.prototype[bt[n]];return _t()};gt[kt]=!0;var Pt=Object.create||function(e,t){var n;return null!==e?(Bt.prototype=He(e),n=new Bt,Bt.prototype=null,n[kt]=e):n=_t(),void 0===t?n:At(n,t)},jt=function(e,t,n){var r=De(t);r in e?Ue.f(e,r,O(0,n)):e[r]=n},Nt=s.Array,It=Math.max,Lt=function(e,t,n){for(var r=dt(e),o=ct(t,r),i=ct(void 0===n?r:n,r),a=Nt(It(i-o,0)),u=0;o<i;o++,u++)jt(a,u,e[o]);return a.length=u,a},Rt=m("".replace),Mt=m("".split),zt=m([].join),Ht=String(Error("zxcasd").stack),$t=/\n\s*at [^:]*:[^\n]*/,Vt=$t.test(Ht),Ut=/@[^\n]*\n/.test(Ht)&&!/zxcasd/.test(Ht),Wt=function(e,t){if("string"!=typeof e)return e;if(Vt)for(;t--;)e=Rt(e,$t,"");else if(Ut)return zt(Lt(Mt(e,"\n"),t),"\n");return e},Gt=function(e,t){L(t)&&"cause"in t&&We(e,"cause",t.cause)},qt={},Kt=we("iterator"),Yt=Array.prototype,Xt={};Xt[we("toStringTag")]="z";var Zt="[object z]"===String(Xt),Jt=we("toStringTag"),Qt=s.Object,en="Arguments"==F(function(){return arguments}()),tn=Zt?F:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Qt(e),Jt))?n:en?F(t):"Object"==(r=F(t))&&b(t.callee)?"Arguments":r},nn=we("iterator"),rn=function(e){if(null!=e)return re(e,nn)||re(e,"@@iterator")||qt[tn(e)]},on=s.TypeError,an=function(e,t,n){var r,o;He(e);try{if(!(r=re(e,"return"))){if("throw"===t)throw n;return n}r=D(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return He(r),n},un=s.TypeError,sn=function(e,t){this.stopped=e,this.result=t},ln=sn.prototype,cn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Re(t,c),g=function(e){return r&&an(r,"normal",e),new sn(!0,e)},v=function(e){return f?(He(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=rn(e)))throw un(ee(e)+" is not iterable");if(function(e){return void 0!==e&&(qt.Array===e||Yt[Kt]===e)}(o)){for(i=0,a=dt(e);a>i;i++)if((u=v(e[i]))&&H(ln,u))return u;return new sn(!1)}r=function(e,t){var n=arguments.length<2?rn(e):t;if(ne(n))return He(D(n,e));throw on(ee(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=D(s,r)).done;){try{u=v(l.value)}catch(e){an(r,"throw",e)}if("object"==typeof u&&u&&H(ln,u))return u}return new sn(!1)},fn=s.String,dn=function(e){if("Symbol"===tn(e))throw TypeError("Cannot convert a Symbol value to a string");return fn(e)},pn=function(e,t){return void 0===e?arguments.length<2?"":t:dn(e)},hn=!w((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",O(1,7)),7!==e.stack)})),gn=we("toStringTag"),vn=s.Error,yn=[].push,mn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=H(bn,this);ot?n=ot(new vn(void 0),o?tt(this):bn):(n=o?this:Pt(bn),We(n,gn,"Error")),We(n,"message",pn(t,"")),hn&&We(n,"stack",Wt(n.stack,1)),Gt(n,r);var i=[];return cn(e,yn,{that:i}),We(n,"errors",i),n};ot?ot(mn,vn):function(e,t){for(var n=St(t),r=Ue.f,o=Be.f,i=0;i<n.length;i++){var a=n[i];fe(e,a)||r(e,a,o(t,a))}}(mn,vn);var bn=mn.prototype=Pt(vn.prototype,{constructor:O(1,mn),message:O(1,""),name:O(1,"AggregateError")});Ke({global:!0},{AggregateError:mn});var wn=m(Function.toString);b(ae.inspectSource)||(ae.inspectSource=function(e){return wn(e)});var xn,En,Dn,Sn=ae.inspectSource,Cn=s.WeakMap,An=b(Cn)&&/native code/.test(Sn(Cn)),On=s.TypeError,kn=s.WeakMap;if(An||ae.state){var Bn=ae.state||(ae.state=new kn),Fn=m(Bn.get),Tn=m(Bn.has),_n=m(Bn.set);xn=function(e,t){if(Tn(Bn,e))throw new On("Object already initialized");return t.facade=e,_n(Bn,e,t),t},En=function(e){return Fn(Bn,e)||{}},Dn=function(e){return Tn(Bn,e)}}else{var Pn=Xe("state");gt[Pn]=!0,xn=function(e,t){if(fe(e,Pn))throw new On("Object already initialized");return t.facade=e,We(e,Pn,t),t},En=function(e){return fe(e,Pn)?e[Pn]:{}},Dn=function(e){return fe(e,Pn)}}var jn,Nn,In,Ln={set:xn,get:En,has:Dn,enforce:function(e){return Dn(e)?En(e):xn(e,{})},getterFor:function(e){return function(t){var n;if(!L(t)||(n=En(t)).type!==e)throw On("Incompatible receiver, "+e+" required");return n}}},Rn=Function.prototype,Mn=x&&Object.getOwnPropertyDescriptor,zn=fe(Rn,"name"),Hn={EXISTS:zn,PROPER:zn&&"something"===function(){}.name,CONFIGURABLE:zn&&(!x||x&&Mn(Rn,"name").configurable)},$n=function(e,t,n,r){r&&r.enumerable?e[t]=n:We(e,t,n)},Vn=we("iterator"),Un=!1;[].keys&&("next"in(In=[].keys())?(Nn=tt(tt(In)))!==Object.prototype&&(jn=Nn):Un=!0);var Wn=null==jn||w((function(){var e={};return jn[Vn].call(e)!==e}));jn=Wn?{}:Pt(jn),b(jn[Vn])||$n(jn,Vn,(function(){return this}));var Gn={IteratorPrototype:jn,BUGGY_SAFARI_ITERATORS:Un},qn=Zt?{}.toString:function(){return"[object "+tn(this)+"]"},Kn=Ue.f,Yn=we("toStringTag"),Xn=function(e,t,n,r){if(e){var o=n?e:e.prototype;fe(o,Yn)||Kn(o,Yn,{configurable:!0,value:t}),r&&!Zt&&We(o,"toString",qn)}},Zn=Gn.IteratorPrototype,Jn=function(){return this},Qn=Hn.PROPER,er=Gn.BUGGY_SAFARI_ITERATORS,tr=we("iterator"),nr=function(){return this},rr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Pt(Zn,{next:O(1,n)}),Xn(e,o,!1,!0),qt[o]=Jn}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!er&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[tr]||p["@@iterator"]||o&&p[o],g=!er&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=tt(v.call(new e)))!==Object.prototype&&u.next&&(Xn(u,f,!0,!0),qt[f]=nr),Qn&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return D(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(er||d||!(l in p))&&$n(p,l,s[l]);else Ke({target:t,proto:!0,forced:er||d},s);return a&&p[tr]!==g&&$n(p,tr,g,{name:o}),qt[t]=g,s},or=Ln.set,ir=Ln.getterFor("Array Iterator");rr(Array,"Array",(function(e,t){or(this,{type:"Array Iterator",target:I(e),index:0,kind:t})}),(function(){var e=ir(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),qt.Arguments=qt.Array;var ar=m("".charAt),ur=m("".charCodeAt),sr=m("".slice),lr=function(e){return function(t,n){var r,o,i=dn(N(t)),a=ut(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ur(i,a))<55296||r>56319||a+1===u||(o=ur(i,a+1))<56320||o>57343?e?ar(i,a):r:e?sr(i,a,a+2):o-56320+(r-55296<<10)+65536}},cr=(lr(!1),lr(!0)),fr=Ln.set,dr=Ln.getterFor("String Iterator");rr(String,"String",(function(e){fr(this,{type:"String Iterator",string:dn(e),index:0})}),(function(){var e,t=dr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=cr(n,r),t.index+=e.length,{value:e,done:!1})}));var pr=R.AggregateError,hr=we("toStringTag");for(var gr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var vr=s[gr],yr=vr&&vr.prototype;yr&&tn(yr)!==hr&&We(yr,hr,gr),qt[gr]=qt.Array}var mr,br,wr=pr,xr=function(e){return e&&e.Math==Math&&e},Er=xr("object"==typeof globalThis&&globalThis)||xr("object"==typeof window&&window)||xr("object"==typeof self&&self)||xr("object"==typeof r&&r)||function(){return this}()||Function("return this")(),Dr=function(e){try{return!!e()}catch(e){return!0}},Sr=!Dr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Cr=Function.prototype.call,Ar=Cr.bind?Cr.bind(Cr):function(){return Cr.apply(Cr,arguments)},Or={}.propertyIsEnumerable,kr=Object.getOwnPropertyDescriptor,Br={f:kr&&!Or.call({1:2},1)?function(e){var t=kr(this,e);return!!t&&t.enumerable}:Or},Fr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Tr=Function.prototype,_r=Tr.bind,Pr=Tr.call,jr=_r&&_r.bind(Pr),Nr=_r?function(e){return e&&jr(Pr,e)}:function(e){return e&&function(){return Pr.apply(e,arguments)}},Ir=Nr({}.toString),Lr=Nr("".slice),Rr=function(e){return Lr(Ir(e),8,-1)},Mr=Er.Object,zr=Nr("".split),Hr=Dr((function(){return!Mr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Rr(e)?zr(e,""):Mr(e)}:Mr,$r=Er.TypeError,Vr=function(e){if(null==e)throw $r("Can't call method on "+e);return e},Ur=function(e){return Hr(Vr(e))},Wr=function(e){return"function"==typeof e},Gr=function(e){return"object"==typeof e?null!==e:Wr(e)},qr=function(e){return Wr(e)?e:void 0},Kr=function(e,t){return arguments.length<2?qr(Er[e]):Er[e]&&Er[e][t]},Yr=Nr({}.isPrototypeOf),Xr=Kr("navigator","userAgent")||"",Zr=Er.process,Jr=Er.Deno,Qr=Zr&&Zr.versions||Jr&&Jr.version,eo=Qr&&Qr.v8;eo&&(br=(mr=eo.split("."))[0]>0&&mr[0]<4?1:+(mr[0]+mr[1])),!br&&Xr&&(!(mr=Xr.match(/Edge\/(\d+)/))||mr[1]>=74)&&(mr=Xr.match(/Chrome\/(\d+)/))&&(br=+mr[1]);var to=br,no=!!Object.getOwnPropertySymbols&&!Dr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&to&&to<41})),ro=no&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,oo=Er.Object,io=ro?function(e){return"symbol"==typeof e}:function(e){var t=Kr("Symbol");return Wr(t)&&Yr(t.prototype,oo(e))},ao=Er.String,uo=function(e){try{return ao(e)}catch(e){return"Object"}},so=Er.TypeError,lo=function(e){if(Wr(e))return e;throw so(uo(e)+" is not a function")},co=function(e,t){var n=e[t];return null==n?void 0:lo(n)},fo=Er.TypeError,po=Object.defineProperty,ho=function(e,t){try{po(Er,e,{value:t,configurable:!0,writable:!0})}catch(n){Er[e]=t}return t},go=Er["__core-js_shared__"]||ho("__core-js_shared__",{}),vo=o((function(e){(e.exports=function(e,t){return go[e]||(go[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),yo=Er.Object,mo=function(e){return yo(Vr(e))},bo=Nr({}.hasOwnProperty),wo=Object.hasOwn||function(e,t){return bo(mo(e),t)},xo=0,Eo=Math.random(),Do=Nr(1..toString),So=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Do(++xo+Eo,36)},Co=vo("wks"),Ao=Er.Symbol,Oo=Ao&&Ao.for,ko=ro?Ao:Ao&&Ao.withoutSetter||So,Bo=function(e){if(!wo(Co,e)||!no&&"string"!=typeof Co[e]){var t="Symbol."+e;no&&wo(Ao,e)?Co[e]=Ao[e]:Co[e]=ro&&Oo?Oo(t):ko(t)}return Co[e]},Fo=Er.TypeError,To=Bo("toPrimitive"),_o=function(e){var t=function(e,t){if(!Gr(e)||io(e))return e;var n,r=co(e,To);if(r){if(void 0===t&&(t="default"),n=Ar(r,e,t),!Gr(n)||io(n))return n;throw Fo("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Wr(n=e.toString)&&!Gr(r=Ar(n,e)))return r;if(Wr(n=e.valueOf)&&!Gr(r=Ar(n,e)))return r;if("string"!==t&&Wr(n=e.toString)&&!Gr(r=Ar(n,e)))return r;throw fo("Can't convert object to primitive value")}(e,t)}(e,"string");return io(t)?t:t+""},Po=Er.document,jo=Gr(Po)&&Gr(Po.createElement),No=function(e){return jo?Po.createElement(e):{}},Io=!Sr&&!Dr((function(){return 7!=Object.defineProperty(No("div"),"a",{get:function(){return 7}}).a})),Lo=Object.getOwnPropertyDescriptor,Ro={f:Sr?Lo:function(e,t){if(e=Ur(e),t=_o(t),Io)try{return Lo(e,t)}catch(e){}if(wo(e,t))return Fr(!Ar(Br.f,e,t),e[t])}},Mo=Er.String,zo=Er.TypeError,Ho=function(e){if(Gr(e))return e;throw zo(Mo(e)+" is not an object")},$o=Er.TypeError,Vo=Object.defineProperty,Uo={f:Sr?Vo:function(e,t,n){if(Ho(e),t=_o(t),Ho(n),Io)try{return Vo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $o("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wo=Sr?function(e,t,n){return Uo.f(e,t,Fr(1,n))}:function(e,t,n){return e[t]=n,e},Go=Nr(Function.toString);Wr(go.inspectSource)||(go.inspectSource=function(e){return Go(e)});var qo,Ko,Yo,Xo=go.inspectSource,Zo=Er.WeakMap,Jo=Wr(Zo)&&/native code/.test(Xo(Zo)),Qo=vo("keys"),ei=function(e){return Qo[e]||(Qo[e]=So(e))},ti={},ni=Er.TypeError,ri=Er.WeakMap;if(Jo||go.state){var oi=go.state||(go.state=new ri),ii=Nr(oi.get),ai=Nr(oi.has),ui=Nr(oi.set);qo=function(e,t){if(ai(oi,e))throw new ni("Object already initialized");return t.facade=e,ui(oi,e,t),t},Ko=function(e){return ii(oi,e)||{}},Yo=function(e){return ai(oi,e)}}else{var si=ei("state");ti[si]=!0,qo=function(e,t){if(wo(e,si))throw new ni("Object already initialized");return t.facade=e,Wo(e,si,t),t},Ko=function(e){return wo(e,si)?e[si]:{}},Yo=function(e){return wo(e,si)}}var li={set:qo,get:Ko,has:Yo,enforce:function(e){return Yo(e)?Ko(e):qo(e,{})},getterFor:function(e){return function(t){var n;if(!Gr(t)||(n=Ko(t)).type!==e)throw ni("Incompatible receiver, "+e+" required");return n}}},ci=Function.prototype,fi=Sr&&Object.getOwnPropertyDescriptor,di=wo(ci,"name"),pi={EXISTS:di,PROPER:di&&"something"===function(){}.name,CONFIGURABLE:di&&(!Sr||Sr&&fi(ci,"name").configurable)},hi=o((function(e){var t=pi.CONFIGURABLE,n=li.get,r=li.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Wr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!wo(i,"name")||t&&i.name!==f)&&Wo(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Er?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Wo(e,n,i)):l?e[n]=i:ho(n,i)})(Function.prototype,"toString",(function(){return Wr(this)&&n(this).source||Xo(this)}))})),gi=Math.ceil,vi=Math.floor,yi=function(e){var t=+e;return t!=t||0===t?0:(t>0?vi:gi)(t)},mi=Math.max,bi=Math.min,wi=function(e,t){var n=yi(e);return n<0?mi(n+t,0):bi(n,t)},xi=Math.min,Ei=function(e){return e>0?xi(yi(e),9007199254740991):0},Di=function(e){return Ei(e.length)},Si=function(e){return function(t,n,r){var o,i=Ur(t),a=Di(i),u=wi(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ci=(Si(!0),Si(!1)),Ai=Nr([].push),Oi=function(e,t){var n,r=Ur(e),o=0,i=[];for(n in r)!wo(ti,n)&&wo(r,n)&&Ai(i,n);for(;t.length>o;)wo(r,n=t[o++])&&(~Ci(i,n)||Ai(i,n));return i},ki=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bi=ki.concat("length","prototype"),Fi={f:Object.getOwnPropertyNames||function(e){return Oi(e,Bi)}},Ti={f:Object.getOwnPropertySymbols},_i=Nr([].concat),Pi=Kr("Reflect","ownKeys")||function(e){var t=Fi.f(Ho(e)),n=Ti.f;return n?_i(t,n(e)):t},ji=function(e,t){for(var n=Pi(t),r=Uo.f,o=Ro.f,i=0;i<n.length;i++){var a=n[i];wo(e,a)||r(e,a,o(t,a))}},Ni=/#|\.prototype\./,Ii=function(e,t){var n=Ri[Li(e)];return n==zi||n!=Mi&&(Wr(t)?Dr(t):!!t)},Li=Ii.normalize=function(e){return String(e).replace(Ni,".").toLowerCase()},Ri=Ii.data={},Mi=Ii.NATIVE="N",zi=Ii.POLYFILL="P",Hi=Ii,$i=Ro.f,Vi=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Er:l?Er[u]||ho(u,{}):(Er[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$i(n,r))&&a.value:n[r],!Hi(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ji(i,o)}(e.sham||o&&o.sham)&&Wo(i,"sham",!0),hi(n,r,i,e)}},Ui={};Ui[Bo("toStringTag")]="z";var Wi,Gi="[object z]"===String(Ui),qi=Bo("toStringTag"),Ki=Er.Object,Yi="Arguments"==Rr(function(){return arguments}()),Xi=Gi?Rr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ki(e),qi))?n:Yi?Rr(t):"Object"==(r=Rr(t))&&Wr(t.callee)?"Arguments":r},Zi=Er.String,Ji=function(e){if("Symbol"===Xi(e))throw TypeError("Cannot convert a Symbol value to a string");return Zi(e)},Qi=function(){var e=Ho(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ea=Er.RegExp,ta=Dr((function(){var e=ea("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),na=ta||Dr((function(){return!ea("a","y").sticky})),ra={BROKEN_CARET:ta||Dr((function(){var e=ea("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:na,UNSUPPORTED_Y:ta},oa=Object.keys||function(e){return Oi(e,ki)},ia=Sr?Object.defineProperties:function(e,t){Ho(e);for(var n,r=Ur(t),o=oa(t),i=o.length,a=0;i>a;)Uo.f(e,n=o[a++],r[n]);return e},aa=Kr("document","documentElement"),ua=ei("IE_PROTO"),sa=function(){},la=function(e){return"<script>"+e+"<\/script>"},ca=function(e){e.write(la("")),e.close();var t=e.parentWindow.Object;return e=null,t},fa=function(){try{Wi=new ActiveXObject("htmlfile")}catch(e){}var e,t;fa="undefined"!=typeof document?document.domain&&Wi?ca(Wi):((t=No("iframe")).style.display="none",aa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(la("document.F=Object")),e.close(),e.F):ca(Wi);for(var n=ki.length;n--;)delete fa.prototype[ki[n]];return fa()};ti[ua]=!0;var da,pa,ha=Object.create||function(e,t){var n;return null!==e?(sa.prototype=Ho(e),n=new sa,sa.prototype=null,n[ua]=e):n=fa(),void 0===t?n:ia(n,t)},ga=Er.RegExp,va=Dr((function(){var e=ga(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ya=Er.RegExp,ma=Dr((function(){var e=ya("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ba=li.get,wa=vo("native-string-replace",String.prototype.replace),xa=RegExp.prototype.exec,Ea=xa,Da=Nr("".charAt),Sa=Nr("".indexOf),Ca=Nr("".replace),Aa=Nr("".slice),Oa=(pa=/b*/g,Ar(xa,da=/a/,"a"),Ar(xa,pa,"a"),0!==da.lastIndex||0!==pa.lastIndex),ka=ra.BROKEN_CARET,Ba=void 0!==/()??/.exec("")[1];(Oa||Ba||ka||va||ma)&&(Ea=function(e){var t,n,r,o,i,a,u,s=this,l=ba(s),c=Ji(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ar(Ea,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ka&&s.sticky,h=Ar(Qi,s),g=s.source,v=0,y=c;if(p&&(h=Ca(h,"y",""),-1===Sa(h,"g")&&(h+="g"),y=Aa(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Da(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ba&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Oa&&(r=s.lastIndex),o=Ar(xa,p?n:s,y),p?o?(o.input=Aa(o.input,v),o[0]=Aa(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Oa&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ba&&o&&o.length>1&&Ar(wa,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=ha(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Fa=Ea;Vi({target:"RegExp",proto:!0,forced:/./.exec!==Fa},{exec:Fa});Bo("species");var Ta=RegExp.prototype,_a=Nr("".charAt),Pa=Nr("".charCodeAt),ja=Nr("".slice),Na=function(e){return function(t,n){var r,o,i=Ji(Vr(t)),a=yi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Pa(i,a))<55296||r>56319||a+1===u||(o=Pa(i,a+1))<56320||o>57343?e?_a(i,a):r:e?ja(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ia={codeAt:Na(!1),charAt:Na(!0)},La=Ia.charAt,Ra=function(e,t,n){return t+(n?La(e,t).length:1)},Ma=Er.TypeError,za=function(e,t){var n=e.exec;if(Wr(n)){var r=Ar(n,e,t);return null!==r&&Ho(r),r}if("RegExp"===Rr(e))return Ar(Fa,e,t);throw Ma("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Bo(e),i=!Dr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Dr((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Nr(/./[o]),s=function(e,t,n){return[function(t){var n=Vr(this),r=null==t?void 0:co(t,e);return r?Ar(r,t,n):new RegExp(t)[e](Ji(n))},function(e){var r=Ho(this),o=Ji(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return za(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=za(r,o));){var c=Ji(u[0]);s[l]=c,""===c&&(r.lastIndex=Ra(o,Ei(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Nr(e),s=t.exec;return s===Fa||s===Ta.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));hi(String.prototype,e,s[0]),hi(Ta,o,s[1])}}("match"),Vi({global:!0},{globalThis:Er});var Ha=!Dr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$a=ei("IE_PROTO"),Va=Er.Object,Ua=Va.prototype,Wa=Ha?Va.getPrototypeOf:function(e){var t=mo(e);if(wo(t,$a))return t[$a];var n=t.constructor;return Wr(n)&&t instanceof n?n.prototype:t instanceof Va?Ua:null},Ga=Er.String,qa=Er.TypeError,Ka=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Nr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ho(n),function(e){if("object"==typeof e||Wr(e))return e;throw qa("Can't set "+Ga(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ya=Er.Array,Xa=Math.max,Za=Nr("".replace),Ja=Nr("".split),Qa=Nr([].join),eu=String(Error("zxcasd").stack),tu=/\n\s*at [^:]*:[^\n]*/,nu=tu.test(eu),ru=/@[^\n]*\n/.test(eu)&&!/zxcasd/.test(eu),ou=function(e,t){if("string"!=typeof e)return e;if(nu)for(;t--;)e=Za(e,tu,"");else if(ru)return Qa(function(e,t,n){for(var r,o,i,a,u=Di(e),s=wi(t,u),l=wi(u,u),c=Ya(Xa(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=_o(o))in r?Uo.f(r,a,Fr(0,i)):r[a]=i;return c.length=f,c}(Ja(e,"\n"),t),"\n");return e},iu=function(e,t){Gr(t)&&"cause"in t&&Wo(e,"cause",t.cause)},au=Nr(Nr.bind),uu=function(e,t){return lo(e),void 0===t?e:au?au(e,t):function(){return e.apply(t,arguments)}},su={},lu=Bo("iterator"),cu=Array.prototype,fu=Bo("iterator"),du=function(e){if(null!=e)return co(e,fu)||co(e,"@@iterator")||su[Xi(e)]},pu=Er.TypeError,hu=function(e,t,n){var r,o;Ho(e);try{if(!(r=co(e,"return"))){if("throw"===t)throw n;return n}r=Ar(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ho(r),n},gu=Er.TypeError,vu=function(e,t){this.stopped=e,this.result=t},yu=vu.prototype,mu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=uu(t,c),g=function(e){return r&&hu(r,"normal",e),new vu(!0,e)},v=function(e){return f?(Ho(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=du(e)))throw gu(uo(e)+" is not iterable");if(function(e){return void 0!==e&&(su.Array===e||cu[lu]===e)}(o)){for(i=0,a=Di(e);a>i;i++)if((u=v(e[i]))&&Yr(yu,u))return u;return new vu(!1)}r=function(e,t){var n=arguments.length<2?du(e):t;if(lo(n))return Ho(Ar(n,e));throw pu(uo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Ar(s,r)).done;){try{u=v(l.value)}catch(e){hu(r,"throw",e)}if("object"==typeof u&&u&&Yr(yu,u))return u}return new vu(!1)},bu=function(e,t){return void 0===e?arguments.length<2?"":t:Ji(e)},wu=!Dr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Fr(1,7)),7!==e.stack)})),xu=Bo("toStringTag"),Eu=Er.Error,Du=[].push,Su=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Yr(Cu,this);Ka?n=Ka(new Eu(void 0),o?Wa(this):Cu):(n=o?this:ha(Cu),Wo(n,xu,"Error")),Wo(n,"message",bu(t,"")),wu&&Wo(n,"stack",ou(n.stack,1)),iu(n,r);var i=[];return mu(e,Du,{that:i}),Wo(n,"errors",i),n};Ka?Ka(Su,Eu):ji(Su,Eu);var Cu=Su.prototype=ha(Eu.prototype,{constructor:Fr(1,Su),message:Fr(1,""),name:Fr(1,"AggregateError")});Vi({global:!0},{AggregateError:Su});var Au=Bo("unscopables"),Ou=Array.prototype;null==Ou[Au]&&Uo.f(Ou,Au,{configurable:!0,value:ha(null)});var ku,Bu,Fu,Tu=function(e){Ou[Au][e]=!0},_u=Bo("iterator"),Pu=!1;[].keys&&("next"in(Fu=[].keys())?(Bu=Wa(Wa(Fu)))!==Object.prototype&&(ku=Bu):Pu=!0),(null==ku||Dr((function(){var e={};return ku[_u].call(e)!==e})))&&(ku={}),Wr(ku[_u])||hi(ku,_u,(function(){return this}));var ju={IteratorPrototype:ku,BUGGY_SAFARI_ITERATORS:Pu},Nu=Uo.f,Iu=Bo("toStringTag"),Lu=function(e,t,n){e&&!wo(e=n?e:e.prototype,Iu)&&Nu(e,Iu,{configurable:!0,value:t})},Ru=ju.IteratorPrototype,Mu=function(){return this},zu=pi.PROPER,Hu=pi.CONFIGURABLE,$u=ju.IteratorPrototype,Vu=ju.BUGGY_SAFARI_ITERATORS,Uu=Bo("iterator"),Wu=function(){return this},Gu=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=ha(Ru,{next:Fr(1,n)}),Lu(e,o,!1),su[o]=Mu}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Vu&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Uu]||p["@@iterator"]||o&&p[o],g=!Vu&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Wa(v.call(new e)))!==Object.prototype&&u.next&&(Wa(u)!==$u&&(Ka?Ka(u,$u):Wr(u[Uu])||hi(u,Uu,Wu)),Lu(u,f,!0)),zu&&"values"==o&&h&&"values"!==h.name&&(Hu?Wo(p,"name","values"):(d=!0,g=function(){return Ar(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Vu||d||!(l in p))&&hi(p,l,s[l]);else Vi({target:t,proto:!0,forced:Vu||d},s);return p[Uu]!==g&&hi(p,Uu,g,{name:o}),su[t]=g,s},qu=li.set,Ku=li.getterFor("Array Iterator"),Yu=Gu(Array,"Array",(function(e,t){qu(this,{type:"Array Iterator",target:Ur(e),index:0,kind:t})}),(function(){var e=Ku(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");su.Arguments=su.Array,Tu("keys"),Tu("values"),Tu("entries");var Xu=Ia.charAt,Zu=li.set,Ju=li.getterFor("String Iterator");Gu(String,"String",(function(e){Zu(this,{type:"String Iterator",string:Ji(e),index:0})}),(function(){var e,t=Ju(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Xu(n,r),t.index+=e.length,{value:e,done:!1})}));var Qu,es={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},ts=No("span").classList,ns=ts&&ts.constructor&&ts.constructor.prototype,rs=ns===Object.prototype?void 0:ns,os=Bo("iterator"),is=Bo("toStringTag"),as=Yu.values,us=function(e,t){if(e){if(e[os]!==as)try{Wo(e,os,as)}catch(t){e[os]=as}if(e[is]||Wo(e,is,t),es[t])for(var n in Yu)if(e[n]!==Yu[n])try{Wo(e,n,Yu[n])}catch(t){e[n]=Yu[n]}}};for(var ss in es)us(Er[ss]&&Er[ss].prototype,ss);function ls(){"undefined"==typeof globalThis&&(window.globalThis=window)}function cs(){void 0===wr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}us(rs,"DOMTokenList"),void 0===e?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),ls(),cs()):e&&(null===(Qu=e.navigator)||void 0===Qu?void 0:Qu.userAgent.match("QQBrowser"))&&(ls(),cs());var fs=Array.isArray||function(e){return"Array"==F(e)},ds=function(){},ps=[],hs=z("Reflect","construct"),gs=/^\s*(?:class|function)\b/,vs=m(gs.exec),ys=!gs.exec(ds),ms=function(e){if(!b(e))return!1;try{return hs(ds,ps,e),!0}catch(e){return!1}},bs=!hs||w((function(){var e;return ms(ms.call)||!ms(Object)||!ms((function(){e=!0}))||e}))?function(e){if(!b(e))return!1;switch(tn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ys||!!vs(gs,Sn(e))}:ms,ws=we("species"),xs=s.Array,Es=function(e,t){return new(function(e){var t;return fs(e)&&(t=e.constructor,(bs(t)&&(t===xs||fs(t.prototype))||L(t)&&null===(t=t[ws]))&&(t=void 0)),void 0===t?xs:t}(e))(0===t?0:t)},Ds=we("species"),Ss=we("isConcatSpreadable"),Cs=s.TypeError,As=K>=51||!w((function(){var e=[];return e[Ss]=!1,e.concat()[0]!==e})),Os=("concat",K>=51||!w((function(){var e=[];return(e.constructor={})[Ds]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),ks=function(e){if(!L(e))return!1;var t=e[Ss];return void 0!==t?!!t:fs(e)};Ke({target:"Array",proto:!0,forced:!As||!Os},{concat:function(e){var t,n,r,o,i,a=le(this),u=Es(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(ks(i=-1===t?a:arguments[t])){if(s+(o=dt(i))>9007199254740991)throw Cs("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&jt(u,s,i[n])}else{if(s>=9007199254740991)throw Cs("Maximum allowed index exceeded");jt(u,s++,i)}return u.length=s,u}});var Bs=xt.f,Fs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ts={f:function(e){return Fs&&"Window"==F(e)?function(e){try{return Bs(e)}catch(e){return Lt(Fs)}}(e):Bs(I(e))}},_s=m([].slice),Ps={f:we},js=Ue.f,Ns=function(e){var t=R.Symbol||(R.Symbol={});fe(t,e)||js(t,e,{value:Ps.f(e)})},Is=m([].push),Ls=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=le(s),g=P(h),v=Re(l,c),y=dt(g),m=0,b=f||Es,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Is(w,d)}else switch(e){case 4:return!1;case 7:Is(w,d)}return i?-1:r||o?o:w}},Rs=[Ls(0),Ls(1),Ls(2),Ls(3),Ls(4),Ls(5),Ls(6),Ls(7)][0],Ms=Xe("hidden"),zs=we("toPrimitive"),Hs=Ln.set,$s=Ln.getterFor("Symbol"),Vs=Object.prototype,Us=s.Symbol,Ws=Us&&Us.prototype,Gs=s.TypeError,qs=s.QObject,Ks=z("JSON","stringify"),Ys=Be.f,Xs=Ue.f,Zs=Ts.f,Js=A.f,Qs=m([].push),el=ue("symbols"),tl=ue("op-symbols"),nl=ue("string-to-symbol-registry"),rl=ue("symbol-to-string-registry"),ol=ue("wks"),il=!qs||!qs.prototype||!qs.prototype.findChild,al=x&&w((function(){return 7!=Pt(Xs({},"a",{get:function(){return Xs(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Ys(Vs,t);r&&delete Vs[t],Xs(e,t,n),r&&e!==Vs&&Xs(Vs,t,r)}:Xs,ul=function(e,t){var n=el[e]=Pt(Ws);return Hs(n,{type:"Symbol",tag:e,description:t}),x||(n.description=t),n},sl=function(e,t,n){e===Vs&&sl(tl,t,n),He(e);var r=De(t);return He(n),fe(el,r)?(n.enumerable?(fe(e,Ms)&&e[Ms][r]&&(e[Ms][r]=!1),n=Pt(n,{enumerable:O(0,!1)})):(fe(e,Ms)||Xs(e,Ms,O(1,{})),e[Ms][r]=!0),al(e,r,n)):Xs(e,r,n)},ll=function(e,t){He(e);var n=I(t),r=Ct(n).concat(pl(n));return Rs(r,(function(t){x&&!D(cl,n,t)||sl(e,t,n[t])})),e},cl=function(e){var t=De(e),n=D(Js,this,t);return!(this===Vs&&fe(el,t)&&!fe(tl,t))&&(!(n||!fe(this,t)||!fe(el,t)||fe(this,Ms)&&this[Ms][t])||n)},fl=function(e,t){var n=I(e),r=De(t);if(n!==Vs||!fe(el,r)||fe(tl,r)){var o=Ys(n,r);return!o||!fe(el,r)||fe(n,Ms)&&n[Ms][r]||(o.enumerable=!0),o}},dl=function(e){var t=Zs(I(e)),n=[];return Rs(t,(function(e){fe(el,e)||fe(gt,e)||Qs(n,e)})),n},pl=function(e){var t=e===Vs,n=Zs(t?tl:I(e)),r=[];return Rs(n,(function(e){!fe(el,e)||t&&!fe(Vs,e)||Qs(r,el[e])})),r};if(Y||(Ws=(Us=function(){if(H(Ws,this))throw Gs("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?dn(arguments[0]):void 0,t=ge(e),n=function(e){this===Vs&&D(n,tl,e),fe(this,Ms)&&fe(this[Ms],t)&&(this[Ms][t]=!1),al(this,t,O(1,e))};return x&&il&&al(Vs,t,{configurable:!0,set:n}),ul(t,e)}).prototype,$n(Ws,"toString",(function(){return $s(this).tag})),$n(Us,"withoutSetter",(function(e){return ul(ge(e),e)})),A.f=cl,Ue.f=sl,Be.f=fl,xt.f=Ts.f=dl,Et.f=pl,Ps.f=function(e){return ul(we(e),e)},x&&Xs(Ws,"description",{configurable:!0,get:function(){return $s(this).description}})),Ke({global:!0,wrap:!0,forced:!Y,sham:!Y},{Symbol:Us}),Rs(Ct(ol),(function(e){Ns(e)})),Ke({target:"Symbol",stat:!0,forced:!Y},{for:function(e){var t=dn(e);if(fe(nl,t))return nl[t];var n=Us(t);return nl[t]=n,rl[n]=t,n},keyFor:function(e){if(!J(e))throw Gs(e+" is not a symbol");if(fe(rl,e))return rl[e]},useSetter:function(){il=!0},useSimple:function(){il=!1}}),Ke({target:"Object",stat:!0,forced:!Y,sham:!x},{create:function(e,t){return void 0===t?Pt(e):ll(Pt(e),t)},defineProperty:sl,defineProperties:ll,getOwnPropertyDescriptor:fl}),Ke({target:"Object",stat:!0,forced:!Y},{getOwnPropertyNames:dl,getOwnPropertySymbols:pl}),Ke({target:"Object",stat:!0,forced:w((function(){Et.f(1)}))},{getOwnPropertySymbols:function(e){return Et.f(le(e))}}),Ks){var hl=!Y||w((function(){var e=Us();return"[null]"!=Ks([e])||"{}"!=Ks({a:e})||"{}"!=Ks(Object(e))}));Ke({target:"JSON",stat:!0,forced:hl},{stringify:function(e,t,n){var r=_s(arguments),o=t;if((L(t)||void 0!==e)&&!J(e))return fs(t)||(t=function(e,t){if(b(o)&&(t=D(o,this,e,t)),!J(t))return t}),r[1]=t,p(Ks,null,r)}})}if(!Ws[zs]){var gl=Ws.valueOf;$n(Ws,zs,(function(e){return D(gl,this)}))}Xn(Us,"Symbol"),gt[Ms]=!0,Ns("asyncIterator"),Ns("hasInstance"),Ns("isConcatSpreadable"),Ns("iterator"),Ns("match"),Ns("matchAll"),Ns("replace"),Ns("search"),Ns("species"),Ns("split"),Ns("toPrimitive"),Ns("toStringTag"),Ns("unscopables"),Xn(s.JSON,"JSON",!0);var vl=R.Symbol;Ns("asyncDispose"),Ns("dispose"),Ns("matcher"),Ns("metadata"),Ns("observable"),Ns("patternMatch"),Ns("replaceAll");var yl=vl,ml=Ps.f("iterator"),bl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(o((function(e){function t(n){return"function"==typeof yl&&"symbol"==typeof ml?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof yl&&e.constructor===yl&&e!==yl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),wl=Ro.f,xl=Dr((function(){wl(1)}));if(Vi({target:"Object",stat:!0,forced:!Sr||xl,sham:!Sr},{getOwnPropertyDescriptor:function(e,t){return wl(Ur(e),t)}}),"object"===(void 0===e?"undefined":bl(e))){var El=Object.getOwnPropertyDescriptor(e,"window");e.window&&!El.set||(e.window=e,e.requestAnimationFrame=function(){},e.navigator={userAgent:""},e.location={hostname:"0.0.0.0",port:0,protocol:"http:"},e.btoa=function(){},e.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=e.document&&null==e.document.getElementsByTagName&&(e.document.getElementsByTagName=function(){return[]})}function Dl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Sl(e){var t,n;return!1!==Dl(e)&&(void 0===(t=e.constructor)||!1!==Dl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Cl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Al(e){return!!e&&!!e[cc]}function Ol(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===fc}(e)||Array.isArray(e)||!!e[lc]||!!e.constructor[lc]||_l(e)||Pl(e))}function kl(e,t,n){void 0===n&&(n=!1),0===Bl(e)?(n?Object.keys:dc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Bl(e){var t=e[cc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_l(e)?2:Pl(e)?3:0}function Fl(e,t){return 2===Bl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tl(e,t,n){var r=Bl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function _l(e){return ic&&e instanceof Map}function Pl(e){return ac&&e instanceof Set}function jl(e){return e.o||e.t}function Nl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=pc(e);delete t[cc];for(var n=dc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Il(e,t){return void 0===t&&(t=!1),Rl(e)||Al(e)||!Ol(e)||(Bl(e)>1&&(e.set=e.add=e.clear=e.delete=Ll),Object.freeze(e),t&&kl(e,(function(e,t){return Il(t,!0)}),!0)),e}function Ll(){Cl(2)}function Rl(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ml(e){var t=hc[e];return t||Cl(18,e),t}function zl(){return rc}function Hl(e,t){t&&(Ml("Patches"),e.u=[],e.s=[],e.v=t)}function $l(e){Vl(e),e.p.forEach(Wl),e.p=null}function Vl(e){e===rc&&(rc=e.l)}function Ul(e){return rc={p:[],l:rc,h:e,m:!0,_:0}}function Wl(e){var t=e[cc];0===t.i||1===t.i?t.j():t.O=!0}function Gl(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Ml("ES5").S(t,e,r),r?(n[cc].P&&($l(t),Cl(4)),Ol(e)&&(e=ql(t,e),t.l||Yl(t,e)),t.u&&Ml("Patches").M(n[cc],e,t.u,t.s)):e=ql(t,n,[]),$l(t),t.u&&t.v(t.u,t.s),e!==sc?e:void 0}function ql(e,t,n){if(Rl(t))return t;var r=t[cc];if(!r)return kl(t,(function(o,i){return Kl(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Yl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Nl(r.k):r.o;kl(3===r.i?new Set(o):o,(function(t,i){return Kl(e,r,o,t,i,n)})),Yl(e,o,!1),n&&e.u&&Ml("Patches").R(r,n,e.u,e.s)}return r.o}function Kl(e,t,n,r,o,i){if(Al(o)){var a=ql(e,o,i&&t&&3!==t.i&&!Fl(t.D,r)?i.concat(r):void 0);if(Tl(n,r,a),!Al(a))return;e.m=!1}if(Ol(o)&&!Rl(o)){if(!e.h.F&&e._<1)return;ql(e,o),t&&t.A.l||Yl(e,o)}}function Yl(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Il(t,n)}function Xl(e,t){var n=e[cc];return(n?jl(n):e)[t]}function Zl(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Jl(e){e.P||(e.P=!0,e.l&&Jl(e.l))}function Ql(e){e.o||(e.o=Nl(e.t))}function ec(e,t,n){var r=_l(t)?Ml("MapSet").N(t,n):Pl(t)?Ml("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:zl(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=gc;n&&(o=[r],i=vc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Ml("ES5").J(t,n);return(n?n.A:zl()).p.push(r),r}function tc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nl(e)}var nc,rc,oc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ic="undefined"!=typeof Map,ac="undefined"!=typeof Set,uc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,sc=oc?Symbol.for("immer-nothing"):((nc={})["immer-nothing"]=!0,nc),lc=oc?Symbol.for("immer-draftable"):"__$immer_draftable",cc=oc?Symbol.for("immer-state"):"__$immer_state",fc=""+Object.prototype.constructor,dc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,pc=Object.getOwnPropertyDescriptors||function(e){var t={};return dc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},hc={},gc={get:function(e,t){if(t===cc)return e;var n=jl(e);if(!Fl(n,t))return function(e,t,n){var r,o=Zl(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Ol(r)?r:r===Xl(e.t,t)?(Ql(e),e.o[t]=ec(e.A.h,r,e)):r},has:function(e,t){return t in jl(e)},ownKeys:function(e){return Reflect.ownKeys(jl(e))},set:function(e,t,n){var r=Zl(jl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Xl(jl(e),t),i=null==o?void 0:o[cc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||Fl(e.t,t)))return!0;Ql(e),Jl(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Xl(e.t,t)||t in e.t?(e.D[t]=!1,Ql(e),Jl(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=jl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Cl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Cl(12)}},vc={};kl(gc,(function(e,t){vc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),vc.deleteProperty=function(e,t){return gc.deleteProperty.call(this,e[0],t)},vc.set=function(e,t,n){return gc.set.call(this,e[0],t,n,e[0])};var yc=new(function(){function e(e){var t=this;this.g=uc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Cl(6),void 0!==r&&"function"!=typeof r&&Cl(7),Ol(e)){var u=Ul(t),s=ec(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?$l(u):Vl(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Hl(u,r),Gl(e,u)}),(function(e){throw $l(u),e})):(Hl(u,r),Gl(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===sc)return;return void 0===a&&(a=e),t.F&&Il(a,!0),a}Cl(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Ol(e)||Cl(8),Al(e)&&(e=function(e){return Al(e)||Cl(22,e),function e(t){if(!Ol(t))return t;var n,r=t[cc],o=Bl(t);if(r){if(!r.P&&(r.i<4||!Ml("ES5").K(r)))return r.t;r.I=!0,n=tc(t,o),r.I=!1}else n=tc(t,o);return kl(n,(function(t,o){r&&function(e,t){return 2===Bl(e)?e.get(t):e[t]}(r.t,t)===o||Tl(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Ul(this),n=ec(this,e,void 0);return n[cc].C=!0,Vl(t),n},t.finishDraft=function(e,t){var n=(e&&e[cc]).A;return Hl(n,t),Gl(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!uc&&Cl(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Ml("Patches").$;return Al(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}()),mc=yc.produce;yc.produceWithPatches.bind(yc),yc.setAutoFreeze.bind(yc),yc.setUseProxies.bind(yc),yc.applyPatches.bind(yc);var bc=yc.createDraft.bind(yc),wc=yc.finishDraft.bind(yc);function xc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ec=new WeakMap,Dc=new WeakMap,Sc=new WeakMap,Cc=new WeakMap,Ac=new WeakMap,Oc=new WeakMap;function kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Ef.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Ef.levels(r),...Lf.isText(n)?[]:Array.from(mf.nodes(n),e=>{var[,t]=e;return r.concat(t)})];case"merge_node":var{path:o}=e;return[...Ef.ancestors(o),Ef.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Ef.equals(i,a))return[];var u=[],s=[];for(var l of Ef.ancestors(i)){var c=Ef.transform(l,e);u.push(c)}for(var f of Ef.ancestors(a)){var d=Ef.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...Ef.ancestors(v)];case"split_node":var{path:y}=e;return[...Ef.levels(y),Ef.next(y)];default:return[]}};function Tc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _c,Pc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Mc(e):e,o=_c.None,i=_c.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Zc(s,l);if([o,i]=n?[i,c]:[c,o],Jc(o,_c.ZWJ)&&Jc(i,_c.ExtPict)&&!nf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Jc(o,_c.RI)&&Jc(i,_c.RI)&&!(u=null!==u?!u:!!n||of(e.substring(0,e.length-a))))break;if(o!==_c.None&&i!==_c.None&&ef(o,i))break;a+=s.length}return a||1},jc=/\s/,Nc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Ic=/['\u2018\u2019]/,Lc=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Rc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(jc.test(t))return!1;if(Ic.test(t)){var o=Pc(n,r),[i,a]=Lc(n,o,r);if(e(i,a,r))return!0}return!Nc.test(t)},Mc=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Hc(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(zc(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},zc=e=>e>=55296&&e<=56319,Hc=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(_c||(_c={}));var $c=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Vc=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Uc=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Wc=/^[\u1100-\u115F\uA960-\uA97C]$/,Gc=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,qc=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Kc=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Yc=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Xc=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Zc=(e,t)=>{var n=_c.Any;return-1!==e.search($c)&&(n|=_c.Extend),8205===t&&(n|=_c.ZWJ),t>=127462&&t<=127487&&(n|=_c.RI),-1!==e.search(Vc)&&(n|=_c.Prepend),-1!==e.search(Uc)&&(n|=_c.SpacingMark),-1!==e.search(Wc)&&(n|=_c.L),-1!==e.search(Gc)&&(n|=_c.V),-1!==e.search(qc)&&(n|=_c.T),-1!==e.search(Kc)&&(n|=_c.LV),-1!==e.search(Yc)&&(n|=_c.LVT),-1!==e.search(Xc)&&(n|=_c.ExtPict),n};function Jc(e,t){return 0!=(e&t)}var Qc=[[_c.L,_c.L|_c.V|_c.LV|_c.LVT],[_c.LV|_c.V,_c.V|_c.T],[_c.LVT|_c.T,_c.T],[_c.Any,_c.Extend|_c.ZWJ],[_c.Any,_c.SpacingMark],[_c.Prepend,_c.Any],[_c.ZWJ,_c.ExtPict],[_c.RI,_c.RI]];function ef(e,t){return-1===Qc.findIndex(n=>Jc(e,n[0])&&Jc(t,n[1]))}var tf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,nf=e=>-1!==e.search(tf),rf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,of=e=>{var t=e.match(rf);return null!==t&&t[0].length/2%2==1},af=e=>Sl(e)&&mf.isNodeList(e.children)&&!pf.isEditor(e),uf={isAncestor:e=>Sl(e)&&mf.isNodeList(e.children),isElement:af,isElementList:e=>Array.isArray(e)&&e.every(e=>uf.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return af(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},sf=["text"],lf=["text"];function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var df=new WeakMap,pf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=pf.path(e,o),u="lowest"===r;for(var[s,l]of pf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Lf.isText(s)&&!Ef.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:pf.point(e,t,{edge:"end"}),focus:pf.end(e,[])},{distance:i=1}=r,a=0;for(var u of pf.positions(e,ff(ff({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:pf.start(e,[]),focus:pf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of pf.positions(e,ff(ff({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[pf.start(e,t),pf.end(e,t)],end:(e,t)=>pf.point(e,t,{edge:"end"}),first(e,t){var n=pf.path(e,t,{edge:"start"});return pf.node(e,n)},fragment(e,t){var n=pf.range(e,t);return mf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(t=>pf.isBlock(e,t)),hasInlines:(e,t)=>t.children.some(t=>Lf.isText(t)||pf.isInline(e,t)),hasTexts:(e,t)=>t.children.every(e=>Lf.isText(e)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>uf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Sl(e))return!1;var t=df.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Sl(e.marks))&&(null===e.selection||Ff.isRange(e.selection))&&mf.isNodeList(e.children)&&xf.isOperationList(e.operations);return df.set(e,n),n},isEnd(e,t,n){var r=pf.end(e,n);return Af.equals(t,r)},isEdge:(e,t,n)=>pf.isStart(e,t,n)||pf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Lf.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>uf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Sc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=pf.start(e,n);return Af.equals(t,r)},isVoid:(e,t)=>uf.isElement(t)&&e.isVoid(t),last(e,t){var n=pf.path(e,t,{edge:"end"});return pf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=pf.path(e,t,n);return[mf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=pf.path(e,n);for(var[s,l]of mf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&pf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Ff.isExpanded(n)){var[r]=pf.nodes(e,{match:Lf.isText});if(r){var[o]=r;return Tc(o,sf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=pf.leaf(e,a);if(0===i.offset){var s=pf.previous(e,{at:a,match:Lf.isText}),l=pf.above(e,{match:t=>pf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Ef.isAncestor(d,f)&&(u=c)}}return Tc(u,lf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=pf.after(e,i,{voids:r});if(a){var[,u]=pf.last(e,[]),s=[a.path,u];if(Ef.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Ef.isPath(i)){var[l]=pf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=pf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=pf.path(e,t,n);return[mf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(hf.isSpan(n))s=n[0],l=n[1];else{var c=pf.path(e,n,{edge:"start"}),f=pf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=mf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&pf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Ef.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Lf.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Ec.get(e)||[];if(pf.isNormalizing(e)){if(n){var o=Array.from(mf.nodes(e),e=>{var[,t]=e;return t});Ec.set(e,o)}0!==r(e).length&&pf.withoutNormalizing(e,()=>{for(var t of r(e))if(mf.has(e,t)){var n=pf.node(e,t),[o,i]=n;uf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(mf.has(e,s)){var l=pf.node(e,s);e.normalizeNode(l)}u++}})}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=pf.path(e,t,n),o=Ef.parent(r);return pf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Ef.isPath(t))if("start"===o){var[,i]=mf.first(e,t);t=i}else if("end"===o){var[,a]=mf.last(e,t);t=a}return Ff.isRange(t)&&(t="start"===o?Ff.start(t):"end"===o?Ff.end(t):Ef.common(t.anchor.path,t.focus.path)),Af.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>mf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return pf.pathRefs(e).delete(o),o.current=null,t}};return pf.pathRefs(e).add(o),o},pathRefs(e){var t=Cc.get(e);return t||(t=new Set,Cc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Ef.isPath(t)){var o;if("end"===r){var[,i]=mf.last(e,t);o=i}else{var[,a]=mf.first(e,t);o=a}var u=mf.get(e,o);if(!Lf.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Ff.isRange(t)){var[s,l]=Ff.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return pf.pointRefs(e).delete(o),o.current=null,t}};return pf.pointRefs(e).add(o),o},pointRefs(e){var t=Ac.get(e);return t||(t=new Set,Ac.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=pf.range(e,n),[u,s]=Ff.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of pf.nodes(e,{at:n,reverse:o,voids:i})){if(uf.isElement(g)){if(!i&&e.isVoid(g)){yield pf.start(e,v);continue}if(e.isInline(g))continue;if(pf.hasInlines(e,g)){var y=Ef.isAncestor(v,s.path)?s:pf.end(e,v),m=Ef.isAncestor(v,u.path)?u:pf.start(e,v);f=pf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(Lf.isText(g)){var b=Ef.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=Lc(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Pc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Pc(e,t),[i,a]=Lc(e,o,t);if(Rc(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=pf.before(e,i,{voids:r});if(a){var[,u]=pf.first(e,[]),s=[a.path,u];if(Ef.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Ef.isPath(i)){var[l]=pf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=pf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Ff.isRange(t)&&!n?t:{anchor:pf.start(e,t),focus:pf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return pf.rangeRefs(e).delete(o),o.current=null,t}};return pf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Oc.get(e);return t||(t=new Set,Oc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Sc.set(e,t)},start:(e,t)=>pf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=pf.range(e,t),[i,a]=Ff.edges(o),u="";for(var[s,l]of pf.nodes(e,{at:o,match:Lf.isText,voids:r})){var c=s.text;Ef.equals(l,a.path)&&(c=c.slice(0,a.offset)),Ef.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Ff.edges(t);if(0!==o.offset||0!==i.offset||Ff.isCollapsed(t))return t;var a=pf.above(e,{at:i,match:t=>pf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:pf.start(e,[]),focus:i},l=!0;for(var[c,f]of pf.nodes(e,{at:s,match:Lf.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Ef.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return pf.above(e,ff(ff({},t),{},{match:t=>pf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=pf.isNormalizing(e);pf.setNormalizing(e,!1);try{t()}finally{pf.setNormalizing(e,n)}pf.normalize(e)}},hf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Ef.isPath)},gf=["children"],vf=["text"],yf=new WeakMap,mf={ancestor(e,t){var n=mf.get(e,t);if(Lf.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Ef.ancestors(t,n)){var o=[mf.ancestor(e,r),r];yield o}},child(e,t){if(Lf.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=mf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=mf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Ef.common(t,n);return[mf.get(e,r),r]},descendant(e,t){var n=mf.get(e,t);if(pf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of mf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of mf.nodes(e,t))uf.isElement(n)&&(yield[n,r])},extractProps:e=>uf.isAncestor(e)?Tc(e,gf):Tc(e,vf),first(e,t){for(var n=t.slice(),r=mf.get(e,n);r&&!Lf.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Lf.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return mc({children:e.children},e=>{var[n,r]=Ff.edges(t),o=mf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Ff.includes(t,n)}});for(var[,i]of o){if(!Ff.includes(t,i)){var a=mf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Ef.equals(i,r.path)){var s=mf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Ef.equals(i,n.path)){var l=mf.leaf(e,i);l.text=l.text.slice(n.offset)}}pf.isEditor(e)&&(e.selection=null)}).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Lf.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Lf.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Lf.isText(e)||uf.isElement(e)||pf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=yf.get(e);if(void 0!==t)return t;var n=e.every(e=>mf.isNode(e));return yf.set(e,n),n},last(e,t){for(var n=t.slice(),r=mf.get(e,n);r&&!Lf.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=mf.get(e,t);if(!Lf.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Ef.levels(t,n)){var o=mf.get(e,r);yield[o,r]}},matches:(e,t)=>uf.isElement(e)&&uf.isElementProps(t)&&uf.matches(e,t)||Lf.isText(e)&&Lf.isTextProps(t)&&Lf.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Ef.isBefore(u,i):Ef.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Lf.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Ef.next(u);if(mf.has(e,l)){u=l,s=mf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Ef.previous(u),s=mf.get(e,u)):(u=Ef.parent(u),s=mf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Ef.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=mf.get(e,u)}},parent(e,t){var n=Ef.parent(t),r=mf.get(e,n);if(Lf.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Lf.isText(e)?e.text:e.children.map(mf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of mf.nodes(e,t))Lf.isText(n)&&(yield[n,r])}};function bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xf={isNodeOperation:e=>xf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Sl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Ef.isPath(e.path)&&mf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Ef.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Ef.isPath(e.path)&&Sl(e.properties);case"move_node":return Ef.isPath(e.path)&&Ef.isPath(e.newPath);case"set_node":return Ef.isPath(e.path)&&Sl(e.properties)&&Sl(e.newProperties);case"set_selection":return null===e.properties&&Ff.isRange(e.newProperties)||null===e.newProperties&&Ff.isRange(e.properties)||Sl(e.properties)&&Sl(e.newProperties);case"split_node":return Ef.isPath(e.path)&&"number"==typeof e.position&&Sl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>xf.isOperation(e)),isSelectionOperation:e=>xf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>xf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return wf(wf({},e),{},{type:"remove_node"});case"insert_text":return wf(wf({},e),{},{type:"remove_text"});case"merge_node":return wf(wf({},e),{},{type:"split_node",path:Ef.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Ef.equals(t,n))return e;if(Ef.isSibling(n,t))return wf(wf({},e),{},{path:t,newPath:n});var r=Ef.transform(n,e),o=Ef.transform(Ef.next(n),e);return wf(wf({},e),{},{path:r,newPath:o});case"remove_node":return wf(wf({},e),{},{type:"insert_node"});case"remove_text":return wf(wf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return wf(wf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return wf(wf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return wf(wf({},e),{},{type:"merge_node",path:Ef.next(e.path)})}}},Ef={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Ef.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ef.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Ef.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ef.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Ef.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Ef.compare(e,t),isBefore:(e,t)=>-1===Ef.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Ef.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Ef.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Ef.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Ef.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Ef.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Ef.isAncestor(t,e)&&!Ef.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Ef.equals(i,r)||Ef.endsBefore(i,r)||Ef.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Ef.equals(a,r)||Ef.isAncestor(a,r))return null;Ef.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Ef.equals(u,r)||Ef.endsBefore(u,r)?r[u.length-1]-=1:Ef.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Ef.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Ef.endsBefore(l,r)?r[l.length-1]+=1:Ef.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Ef.equals(f,d))return;if(Ef.isAncestor(f,r)||Ef.equals(f,r)){var p=d.slice();return Ef.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Ef.isSibling(f,d)&&(Ef.isAncestor(d,r)||Ef.equals(d,r))?Ef.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Ef.endsBefore(d,r)||Ef.equals(d,r)||Ef.isAncestor(d,r)?(Ef.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Ef.endsBefore(f,r)&&(Ef.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},Df={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Ef.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Af={compare(e,t){var n=Ef.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Af.compare(e,t),isBefore:(e,t)=>-1===Af.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Ef.equals(e.path,t.path),isPoint:e=>Sl(e)&&"number"==typeof e.offset&&Ef.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Ef.transform(o,t,n);break;case"insert_text":Ef.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Ef.equals(t.path,o)&&(e.offset+=t.position),e.path=Ef.transform(o,t,n);break;case"remove_text":Ef.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Ef.equals(t.path,o)||Ef.isAncestor(t.path,o))return null;e.path=Ef.transform(o,t,n);break;case"split_node":if(Ef.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Ef.transform(o,t,Cf(Cf({},n),{},{affinity:"forward"})))}else e.path=Ef.transform(o,t,n)}})}},Of={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Af.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},kf=["anchor","focus"];function Bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ff={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Ff.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Ff.edges(e);return t},equals:(e,t)=>Af.equals(e.anchor,t.anchor)&&Af.equals(e.focus,t.focus),includes(e,t){if(Ff.isRange(t)){if(Ff.includes(e,t.anchor)||Ff.includes(e,t.focus))return!0;var[n,r]=Ff.edges(e),[o,i]=Ff.edges(t);return Af.isBefore(n,o)&&Af.isAfter(r,i)}var[a,u]=Ff.edges(e),s=!1,l=!1;return Af.isPoint(t)?(s=Af.compare(t,a)>=0,l=Af.compare(t,u)<=0):(s=Ef.compare(t,a.path)>=0,l=Ef.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Tc(e,kf),[r,o]=Ff.edges(e),[i,a]=Ff.edges(t),u=Af.isBefore(r,i)?i:r,s=Af.isBefore(o,a)?o:a;return Af.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Af.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Af.equals(t,n)},isExpanded:e=>!Ff.isCollapsed(e),isForward:e=>!Ff.isBackward(e),isRange:e=>Sl(e)&&Af.isPoint(e.anchor)&&Af.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Ff.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return mc(e,e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Ff.isCollapsed(e);Ff.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Ff.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Af.transform(e.anchor,t,{affinity:r}),s=Af.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s})}},Tf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Ff.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},_f=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Sl(r)&&Sl(o)){if(!_f(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Pf=["text"],jf=["anchor","focus"];function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lf={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Tc(e,Pf)}return _f(r?o(e):e,r?o(t):t)},isText:e=>Sl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>Lf.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[If({},e)];for(var r of t){var o=Tc(r,jf),[i,a]=Ff.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=If(If({},d),{},{text:d.text.slice(g)}),d=If(If({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=If(If({},d),{},{text:d.text.slice(0,v)}),d=If(If({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zf=["text"],Hf=["children"];function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$f(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uf={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(mf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?pf.end(e,[]):[0],s=!0),null==s&&(s=!1),Ff.isRange(a))if(r||(a=pf.unhangRange(e,a)),Ff.isCollapsed(a))a=a.anchor;else{var[,c]=Ff.edges(a),f=pf.pointRef(e,c);ed.delete(e,{at:a}),a=f.unref()}if(Af.isPoint(a)){null==u&&(u=Lf.isText(l)?e=>Lf.isText(e):e.isInline(l)?t=>Lf.isText(t)||pf.isInline(e,t):t=>pf.isBlock(e,t));var[d]=pf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=pf.pathRef(e,p),g=pf.isEnd(e,a,p);ed.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Ef.next(v):v}var y=Ef.parent(a),m=a[a.length-1];if(o||!pf.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Ef.next(a)}if(a=Ef.previous(a),s){var x=pf.end(e,a);x&&ed.select(e,x)}}}})},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Ef.isPath(n)?qf(e,n):t=>pf.isBlock(e,t)),n){var a=pf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,t=>{var[,n]=t;return pf.pathRef(e,n)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=pf.node(e,Ef.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Ef.next(d);ed.moveNodes(e,{at:l,to:g,voids:o}),ed.removeNodes(e,{at:d,voids:o})}else if(0===p)ed.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Ef.next(d);ed.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Ef.next(l),m=Ef.next(d);ed.splitNodes(e,{at:y,voids:o}),ed.moveNodes(e,{at:l,to:m,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Ef.isPath(r)){var[u]=pf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>pf.isBlock(e,t);if(!o&&Ff.isRange(r)&&(r=pf.unhangRange(e,r)),Ff.isRange(r))if(Ff.isCollapsed(r))r=r.anchor;else{var[,s]=Ff.edges(r),l=pf.pointRef(e,s);ed.delete(e,{at:r}),r=l.unref(),null==t.at&&ed.select(e,r)}var[c]=pf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=pf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=Ef.next(g),b=Ef.common(p,g),w=Ef.isSibling(p,g),x=Array.from(pf.levels(e,{at:p}),e=>{var[t]=e;return t}).slice(b.length).slice(0,-1),E=pf.above(e,{at:p,mode:"highest",match:t=>x.includes(t)&&Wf(e,t)}),D=E&&pf.pathRef(e,E[1]);if(Lf.isText(d)&&Lf.isText(h)){var S=Tc(d,zf);y=h.text.length,v=S}else{if(!uf.isElement(d)||!uf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));S=Tc(d,Hf),y=h.children.length,v=S}w||ed.moveNodes(e,{at:p,to:m,voids:i}),D&&ed.removeNodes(e,{at:D.current,voids:i}),uf.isElement(h)&&pf.isEmpty(e,h)||Lf.isText(h)&&""===h.text&&0!==g[g.length-1]?ed.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),D&&D.unref()}}}})},moveNodes(e,t){pf.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Ef.isPath(r)?qf(e,r):t=>pf.isBlock(e,t));var u=pf.pathRef(e,n),s=pf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,t=>{var[,n]=t;return pf.pathRef(e,n)});for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Ef.isSibling(d,f)&&Ef.isAfter(d,f)&&(u.current=Ef.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Ef.isPath(i)?qf(e,i):t=>pf.isBlock(e,t)),!n&&Ff.isRange(i)&&(i=pf.unhangRange(e,i));var u=pf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,t=>{var[,n]=t;return pf.pathRef(e,n)});for(var l of s){var c=l.unref();if(c){var[f]=pf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Ef.isPath(o)?qf(e,o):t=>pf.isBlock(e,t)),!i&&Ff.isRange(o)&&(o=pf.unhangRange(e,o)),u&&Ff.isRange(o)){if(Ff.isCollapsed(o)&&pf.leaf(e,o.anchor)[0].text.length>0)return;var l=pf.rangeRef(e,o,{affinity:"inward"}),[c,f]=Ff.edges(o),d="lowest"===a?"lowest":"highest",p=pf.isEnd(e,f,f.path);ed.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=pf.isStart(e,c,c.path);ed.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&ed.select(e,o)}for(var[g,v]of pf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}})},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>pf.isBlock(e,t)),Ff.isRange(i)&&(i=Gf(e,i)),Ef.isPath(i)){var s=i,l=pf.point(e,s),[c]=pf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=pf.pointRef(e,i,{affinity:"backward"}),[d]=pf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=pf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(uf.isElement(h)&&e.isInline(h)){var v=pf.after(e,g);if(!v){var y=Ef.next(g);ed.insertNodes(e,{text:""},{at:y,voids:r}),v=pf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=pf.pointRef(e,i),b=i.path.length-a,[,w]=d,x=i.path.slice(0,b),E=0===a?i.offset:i.path[b]+0;for(var[D,S]of pf.levels(e,{at:x,reverse:!0,voids:r})){var C=!1;if(S.length<w.length||0===S.length||!r&&pf.isVoid(e,D))break;var A=f.current,O=pf.isEnd(e,A,S);if(u||!f||!pf.isEdge(e,A,S)){C=!0;var k=mf.extractProps(D);e.apply({type:"split_node",path:S,position:E,properties:k})}E=S[S.length-1]+(C||O?1:0)}if(null==t.at){var B=m.current||pf.end(e,[]);ed.select(e,B)}f.unref(),m.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;ed.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Ef.isPath(i)?qf(e,i):t=>pf.isBlock(e,t)),Ef.isPath(i)&&(i=pf.range(e,i));var u=Ff.isRange(i)?pf.rangeRef(e,i):null,s=pf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,t=>{var[,n]=t;return pf.pathRef(e,n)}).reverse(),c=function(t){var n=t.unref(),[i]=pf.node(e,n),a=pf.range(e,n);r&&u&&(a=Ff.intersection(u.current,a)),ed.liftNodes(e,{at:a,match:e=>uf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Ef.isPath(u)?qf(e,u):e.isInline(t)?t=>pf.isInline(e,t)||Lf.isText(t):t=>pf.isBlock(e,t)),o&&Ff.isRange(u)){var[s,l]=Ff.edges(u),c=pf.rangeRef(e,u,{affinity:"inward"});ed.splitNodes(e,{at:l,match:a,voids:i}),ed.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&ed.select(e,u)}var f=Array.from(pf.nodes(e,{at:u,match:e.isInline(t)?t=>pf.isBlock(e,t):e=>pf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Ff.isRange(u)?Ff.intersection(u,pf.range(e,d)):u;if(p){var h=Array.from(pf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Ef.equals(o,a)?Ef.parent(o):Ef.common(o,a),s=pf.range(e,o,a),l=pf.node(e,u),[c]=l,f=u.length+1,d=Ef.next(a.slice(0,f)),p=Vf(Vf({},t),{},{children:[]});ed.insertNodes(e,p,{at:d,voids:i}),ed.moveNodes(e,{at:s,match:e=>uf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}})}},Wf=(e,t)=>{if(uf.isElement(t)){var n=t;return!!pf.isVoid(e,t)||1===n.children.length&&Wf(e,n.children[0])}return!pf.isEditor(t)},Gf=(e,t)=>{if(Ff.isCollapsed(t))return t.anchor;var[,n]=Ff.edges(t),r=pf.pointRef(e,n);return ed.delete(e,{at:t}),r.unref()},qf=(e,t)=>{var[n]=pf.node(e,t);return e=>e===n};function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xf={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)ed.select(e,r.anchor);else if("focus"===n)ed.select(e,r.focus);else if("start"===n){var[o]=Ff.edges(r);ed.select(e,o)}else if("end"===n){var[,i]=Ff.edges(r);ed.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Ff.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Ff.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?pf.before(e,u,l):pf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?pf.before(e,s,l):pf.after(e,s,l);d&&(c.focus=d)}ed.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=pf.range(e,t),n)ed.setSelection(e,t);else{if(!Ff.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Ff.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Ff.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;ed.setSelection(e,{["anchor"===o?"anchor":"focus"]:Yf(Yf({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Af.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Af.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Zf={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pf.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(Ff.isRange(a)&&Ff.isCollapsed(a)&&(a=a.anchor),Af.isPoint(a)){var s=pf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?pf.before(e,a,c)||pf.start(e,[]):pf.after(e,a,c)||pf.end(e,[])},u=!0}}if(Ef.isPath(a))ed.removeNodes(e,{at:a,voids:i});else if(!Ff.isCollapsed(a)){if(!u){var[,f]=Ff.edges(a),d=pf.end(e,[]);Af.equals(f,d)||(a=pf.unhangRange(e,a,{voids:i}))}var[p,h]=Ff.edges(a),g=pf.above(e,{match:t=>pf.isBlock(e,t),at:p,voids:i}),v=pf.above(e,{match:t=>pf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Ef.equals(g[1],v[1]),m=Ef.equals(p.path,h.path),b=i?null:pf.void(e,{at:p,mode:"highest"}),w=i?null:pf.void(e,{at:h,mode:"highest"});if(b){var x=pf.before(e,p);x&&g&&Ef.isAncestor(g[1],x.path)&&(p=x)}if(w){var E=pf.after(e,h);E&&v&&Ef.isAncestor(v[1],E.path)&&(h=E)}var D,S=[];for(var C of pf.nodes(e,{at:a,voids:i})){var[A,O]=C;D&&0===Ef.compare(O,D)||(!i&&pf.isVoid(e,A)||!Ef.isCommon(O,p.path)&&!Ef.isCommon(O,h.path))&&(S.push(C),D=O)}var k=Array.from(S,t=>{var[,n]=t;return pf.pathRef(e,n)}),B=pf.pointRef(e,p),F=pf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=pf.leaf(e,T),{path:P}=T,{offset:j}=p,N=_.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var L=I.unref();ed.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=pf.leaf(e,R),{path:z}=R,H=m?p.offset:0,$=M.text.slice(H,h.offset);$.length>0&&e.apply({type:"remove_text",path:z,offset:H,text:$})}!m&&y&&F.current&&B.current&&ed.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&ed.select(e,V)}}})},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Ff.isRange(i))if(r||(i=pf.unhangRange(e,i)),Ff.isCollapsed(i))i=i.anchor;else{var[,a]=Ff.edges(i);if(!o&&pf.void(e,{at:a}))return;var u=pf.pointRef(e,a);ed.delete(e,{at:i}),i=u.unref()}else Ef.isPath(i)&&(i=pf.start(e,i));if(o||!pf.void(e,{at:i})){var s=pf.above(e,{at:i,match:t=>pf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;pf.isEnd(e,i,l)?i=pf.after(e,l):pf.isStart(e,i,l)&&(i=pf.before(e,l))}var c=pf.above(e,{match:t=>pf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=pf.isStart(e,i,f),p=pf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=mf.first({children:t},[]),[,m]=mf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Ef.isAncestor(r,y)&&uf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Ef.isAncestor(r,m)&&uf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var x of mf.nodes({children:t},{pass:w}))w(x)&&b.push(x);var E=[],D=[],S=[],C=!0,A=!1;for(var[O]of b)uf.isElement(O)&&!e.isInline(O)?(C=!1,A=!0,D.push(O)):C?E.push(O):S.push(O);var[k]=pf.nodes(e,{at:i,match:t=>Lf.isText(t)||pf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=pf.isStart(e,i,B),T=pf.isEnd(e,i,B),_=pf.pathRef(e,p?Ef.next(f):f),P=pf.pathRef(e,T?Ef.next(B):B),j=pf.pathRef(e,f);ed.splitNodes(e,{at:i,match:t=>A?pf.isBlock(e,t):Lf.isText(t)||pf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=pf.pathRef(e,!F||F&&T?Ef.next(B):B);if(ed.insertNodes(e,E,{at:N.current,match:t=>Lf.isText(t)||pf.isInline(e,t),mode:"highest",voids:o}),h&&D.length&&ed.delete(e,{at:j.unref(),voids:o}),ed.insertNodes(e,D,{at:_.current,match:t=>pf.isBlock(e,t),mode:"lowest",voids:o}),ed.insertNodes(e,S,{at:P.current,match:t=>Lf.isText(t)||pf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=S.length>0?Ef.previous(P.current):D.length>0?Ef.previous(_.current):Ef.previous(N.current);var L=pf.end(e,I);ed.select(e,L)}N.unref(),_.unref(),P.unref()}}})},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pf.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Ef.isPath(o)&&(o=pf.range(e,o)),Ff.isRange(o))if(Ff.isCollapsed(o))o=o.anchor;else{var i=Ff.end(o);if(!r&&pf.void(e,{at:i}))return;var a=pf.pointRef(e,i);ed.delete(e,{at:o,voids:r}),o=a.unref(),ed.setSelection(e,{anchor:o,focus:o})}if(r||!pf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ed=Qf(Qf(Qf(Qf({},{transform(e,t){e.children=bc(e.children);var n=e.selection&&bc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=mf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of Ff.points(t))t[s]=Af.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=mf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of Ff.points(t))t[v]=Af.transform(g,n);break;case"merge_node":var{path:y}=n,m=mf.get(e,y),b=Ef.previous(y),w=mf.get(e,b),x=mf.parent(e,y),E=y[y.length-1];if(Lf.isText(m)&&Lf.isText(w))w.text+=m.text;else{if(Lf.isText(m)||Lf.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(x.children.splice(E,1),t)for(var[D,S]of Ff.points(t))t[S]=Af.transform(D,n);break;case"move_node":var{path:C,newPath:A}=n;if(Ef.isAncestor(C,A))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(A,"] because the destination is inside itself."));var O=mf.get(e,C),k=mf.parent(e,C),B=C[C.length-1];k.children.splice(B,1);var F=Ef.transform(C,n),T=mf.get(e,Ef.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of Ff.points(t))t[j]=Af.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(mf.parent(e,N).children.splice(I,1),t)for(var[L,R]of Ff.points(t)){var M=Af.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,H=void 0;for(var[$,V]of mf.texts(e)){if(-1!==Ef.compare(V,N)){H=[$,V];break}z=[$,V]}var U=!1;z&&H&&(U=Ef.equals(H[1],N)?!Ef.hasPrevious(H[1]):Ef.common(z[1],N).length<Ef.common(H[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=mf.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of Ff.points(t))t[J]=Af.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=mf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Ff.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Mf({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=mf.get(e,le),he=mf.parent(e,le),ge=le[le.length-1];if(Lf.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Mf(Mf({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Mf(Mf({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,xe]of Ff.points(t))t[xe]=Af.transform(we,n)}return t})(e,n,t)}finally{e.children=wc(e.children),e.selection=n?Al(n)?wc(n):n:null}}}),Uf),Xf),Zf),td="[object Map]",nd="[object Set]",rd=/^\[object .+?Constructor\]$/,od=/^(?:0|[1-9]\d*)$/,id="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ad="\\ud83c[\\udffb-\\udfff]",ud="[^\\ud800-\\udfff]",sd="(?:\\ud83c[\\udde6-\\uddff]){2}",ld="[\\ud800-\\udbff][\\udc00-\\udfff]",cd="(?:"+id+"|"+ad+")?",fd="[\\ufe0e\\ufe0f]?"+cd+"(?:\\u200d(?:"+[ud,sd,ld].join("|")+")[\\ufe0e\\ufe0f]?"+cd+")*",dd="(?:"+[ud+id+"?",id,sd,ld,"[\\ud800-\\udfff]"].join("|")+")",pd=RegExp(ad+"(?="+ad+")|"+dd+fd,"g"),hd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),gd="object"==typeof r&&r&&r.Object===Object&&r,vd="object"==typeof self&&self&&self.Object===Object&&self,yd=gd||vd||Function("return this")();function md(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function bd(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var wd,xd,Ed=Function.prototype,Dd=Object.prototype,Sd=yd["__core-js_shared__"],Cd=function(){var e=/[^.]+$/.exec(Sd&&Sd.keys&&Sd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ad=Ed.toString,Od=Dd.hasOwnProperty,kd=Dd.toString,Bd=RegExp("^"+Ad.call(Od).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fd=yd.Symbol,Td=Fd?Fd.iterator:void 0,_d=Dd.propertyIsEnumerable,Pd=(wd=Object.keys,xd=Object,function(e){return wd(xd(e))}),jd=Ud(yd,"DataView"),Nd=Ud(yd,"Map"),Id=Ud(yd,"Promise"),Ld=Ud(yd,"Set"),Rd=Ud(yd,"WeakMap"),Md=qd(jd),zd=qd(Nd),Hd=qd(Id),$d=qd(Ld),Vd=qd(Rd);function Ud(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Zd(e)||function(e){return!!Cd&&Cd in e}(e))&&(Xd(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Bd:rd).test(qd(e))}(n)?n:void 0}var Wd=function(e){return kd.call(e)};function Gd(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||od.test(e))&&e>-1&&e%1==0&&e<t}function qd(e){if(null!=e){try{return Ad.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(jd&&"[object DataView]"!=Wd(new jd(new ArrayBuffer(1)))||Nd&&Wd(new Nd)!=td||Id&&"[object Promise]"!=Wd(Id.resolve())||Ld&&Wd(new Ld)!=nd||Rd&&"[object WeakMap]"!=Wd(new Rd))&&(Wd=function(e){var t=kd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?qd(n):void 0;if(r)switch(r){case Md:return"[object DataView]";case zd:return td;case Hd:return"[object Promise]";case $d:return nd;case Vd:return"[object WeakMap]"}return t});var Kd=Array.isArray;function Yd(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Xd(e)}function Xd(e){var t=Zd(e)?kd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Zd(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Jd(e){return!!e&&"object"==typeof e}function Qd(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,function(e){return Yd(e)?function(e,t){var n=Kd(e)||function(e){return function(e){return Jd(e)&&Yd(e)}(e)&&Od.call(e,"callee")&&(!_d.call(e,"callee")||"[object Arguments]"==kd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Od.call(e,i)||o&&("length"==i||Gd(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Dd))return Pd(e);var t,n,r=[];for(var o in Object(e))Od.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var ep=function(e){if(!e)return[];if(Yd(e))return function(e){return"string"==typeof e||!Kd(e)&&Jd(e)&&"[object String]"==kd.call(e)}(e)?function(e){return function(e){return hd.test(e)}(e)?function(e){return e.match(pd)||[]}(e):function(e){return e.split("")}(e)}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Td&&e[Td])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Td]());var t=Wd(e);return(t==td?md:t==nd?bd:Qd)(e)};function tp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function np(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:tp(t[n])&&tp(e[n])&&Object.keys(t[n]).length>0&&np(e[n],t[n])}))}var rp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function op(){var e="undefined"!=typeof document?document:{};return np(e,rp),e}var ip={document:rp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function ap(){var e="undefined"!=typeof window?window:{};return np(e,ip),e}function up(e){return(up=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sp(e,t){return(sp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lp(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function cp(e,t,n){return(cp=lp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&sp(o,n.prototype),o}).apply(null,arguments)}function fp(e){var t="function"==typeof Map?new Map:void 0;return(fp=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return cp(e,arguments,up(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sp(n,e)})(e)}var dp=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(fp(Array));function pp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,pp(e)):t.push(e)})),t}function hp(e,t){return Array.prototype.filter.call(e,t)}function gp(e,t){var n=ap(),r=op(),o=[];if(!t&&e instanceof dp)return e;if(!e)return new dp(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof dp)return e;o=e}return new dp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function vp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function mp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pp(t.map((function(e){return e.split(" ")})));return hp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function bp(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function wp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function xp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Ep(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Dp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),gp(t).is(o))i.apply(t,n);else for(var r=gp(t).parents(),a=0;a<r.length;a+=1)gp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Sp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Cp(){var e=ap();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Ap(){var e=ap();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Op(){if(this.length>0){var e=ap(),t=op(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function kp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Bp(){for(var e=ap(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Fp(e,t){var n,r=ap();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Tp(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function _p(e){return gp(hp(this,e))}function Pp(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function jp(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Np(e){var t,n,r=ap(),o=op(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=gp(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof dp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Ip(){for(var e,t=op(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof dp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Lp(e){var t,n,r=op();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof dp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Rp(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?gp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return gp(t)}function Mp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?gp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return gp(t)}function zp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return gp(t)}function Hp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!gp(r[o]).is(e)||t.push(r[o]);return gp(t)}function $p(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Vp(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}gp.fn=dp.prototype;var Up="resize scroll".split(" ");function Wp(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)Up.indexOf(e)<0&&(e in this[o]?this[o][e]():gp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Gp=Wp("click"),qp=Wp("focus"),Kp=/^(?:0|[1-9]\d*)$/;function Yp(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Xp=Object.prototype,Zp=Xp.hasOwnProperty,Jp=Xp.toString,Qp=Xp.propertyIsEnumerable,eh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var th,nh=(th=function(e,t){return e&&rh(e,t,uh)},function(e,t){if(null==e)return e;if(!ah(e))return th(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),rh=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function oh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Kp.test(e))&&e>-1&&e%1==0&&e<t}var ih=Array.isArray;function ah(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Jp.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function uh(e){return ah(e)?function(e,t){var n=ih(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&ah(e)}(e)&&Zp.call(e,"callee")&&(!Qp.call(e,"callee")||"[object Arguments]"==Jp.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Zp.call(e,i)||o&&("length"==i||oh(i,r))||n.push(i);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Xp))return eh(e);var t,n,r=[];for(var o in Object(e))Zp.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function sh(e){return e}var lh=function(e,t){return(ih(e)?Yp:nh)(e,"function"==typeof t?t:sh)};let ch=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var fh=/^\s+|\s+$/g,dh=/^[-+]0x[0-9a-f]+$/i,ph=/^0b[01]+$/i,hh=/^0o[0-7]+$/i,gh=parseInt,vh="object"==typeof r&&r&&r.Object===Object&&r,yh="object"==typeof self&&self&&self.Object===Object&&self,mh=vh||yh||Function("return this")(),bh=Object.prototype.toString,wh=Math.max,xh=Math.min,Eh=function(){return mh.Date.now()};function Dh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==bh.call(e)}(e))return NaN;if(Dh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Dh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(fh,"");var n=ph.test(e);return n||hh.test(e)?gh(e.slice(2),n?2:8):dh.test(e)?NaN:+e}var Ch=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Dh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=Eh();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?xh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Eh(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Sh(t)||0,Dh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?wh(Sh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Eh())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const Ah={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Oh(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const kh=Array.isArray;function Bh(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Fh(e){return void 0===e}function Th(e){return void 0!==e}const _h=Oh("",{},[],void 0,void 0);function Ph(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function jh(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const Nh=["create","update","remove","destroy","pre","post"];function Ih(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Ah;for(const t of Nh)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;Th(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Fh(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=Th(s)&&Th(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](_h,e);if(kh(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else Bh(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Th(v)&&(null===(a=v.create)||void 0===a||a.call(v,_h,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(Th(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;Th(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}Fh(t.text)?Th(v)&&Th(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:Ph(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):Ph(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):Ph(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):Ph(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=jh(t,p,g)),c=u[b.key],Fh(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):Th(y)?(Th(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Th(v)?s(g,v,0,v.length-1):Th(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Th(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return Oh(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),Ph(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Lh(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),kh(n)?r=n:Bh(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(kh(t)?r=t:Bh(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Bh(r[i])&&(r[i]=Oh(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function e(t,n,r){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==n)for(let t=0;t<n.length;++t){const r=n[t].data;void 0!==r&&e(r,n[t].children,n[t].sel)}}(a,r,e),Oh(e,a,r,o,void 0)}function Rh(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Mh={create:Rh,update:Rh};function zh(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Hh={create:zh,update:zh},$h=/[A-Z]/g;function Vh(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace($h,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace($h,"-$&").toLowerCase(),i[r]))}const Uh={create:Vh,update:Vh};function Wh(e,t){const n=e.type,r=t.data.on;r&&r[n]&&function e(t,n,r){if("function"==typeof t)t.call(n,r,n);else if("object"==typeof t)for(let o=0;o<t.length;o++)e(t[o],n,r)}(r[n],t,e)}function Gh(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Wh(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const qh={create:Gh,update:Gh,destroy:Gh};function Kh(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const Yh={create:Kh,update:Kh},Xh="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Zh=!1;function Jh(e,t,n){!function(e){Xh((function(){Xh(e)}))}((function(){e[t]=n}))}function Qh(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Jh(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const eg={pre:function(){Zh=!1},create:Qh,update:Qh,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Zh||(e.elm.offsetLeft,Zh=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function tg(e,t,...n){const r=function e(t,n){for(const r of t)null!=r&&!1!==r&&""!==r&&(Array.isArray(r)?e(r,n):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?n.push(Oh(void 0,void 0,void 0,String(r),void 0)):n.push(r));return n}(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Lh(e,t,r[0].text):Lh(e,t,r)}tg||(tg={});var ng,rg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,og=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ig="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ag="["+ig+"]",ug="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",sg="\\d+",lg="[a-z\\xdf-\\xf6\\xf8-\\xff]",cg="[^\\ud800-\\udfff"+ig+sg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",fg="\\ud83c[\\udffb-\\udfff]",dg="[^\\ud800-\\udfff]",pg="(?:\\ud83c[\\udde6-\\uddff]){2}",hg="[\\ud800-\\udbff][\\udc00-\\udfff]",gg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",vg="(?:"+lg+"|"+cg+")",yg="(?:"+gg+"|"+cg+")",mg="(?:"+ug+"|"+fg+")?",bg="[\\ufe0e\\ufe0f]?"+mg+"(?:\\u200d(?:"+[dg,pg,hg].join("|")+")[\\ufe0e\\ufe0f]?"+mg+")*",wg="(?:"+["[\\u2700-\\u27bf]",pg,hg].join("|")+")"+bg,xg="(?:"+[dg+ug+"?",ug,pg,hg,"[\\ud800-\\udfff]"].join("|")+")",Eg=RegExp("['’]","g"),Dg=RegExp(ug,"g"),Sg=RegExp(fg+"(?="+fg+")|"+xg+bg,"g"),Cg=RegExp([gg+"?"+lg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ag,gg,"$"].join("|")+")",yg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ag,gg+vg,"$"].join("|")+")",gg+"?"+vg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",gg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",sg,wg].join("|"),"g"),Ag=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Og=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kg="object"==typeof r&&r&&r.Object===Object&&r,Bg="object"==typeof self&&self&&self.Object===Object&&self,Fg=kg||Bg||Function("return this")(),Tg=(ng={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==ng?void 0:ng[e]});function _g(e){return Ag.test(e)}var Pg=Object.prototype.toString,jg=Fg.Symbol,Ng=jg?jg.prototype:void 0,Ig=Ng?Ng.toString:void 0;function Lg(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Pg.call(e)}(e))return Ig?Ig.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var Rg,Mg=(Rg=function(e,t,n){return t=t.toLowerCase(),e+(n?zg(Lg(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=Lg(e),void 0===(t=t)?function(e){return Og.test(e)}(e)?function(e){return e.match(Cg)||[]}(e):function(e){return e.match(rg)||[]}(e):e.match(t)||[]}(function(e){return(e=Lg(e))&&e.replace(og,Tg).replace(Dg,"")}(e).replace(Eg,"")),Rg,"")}),zg=("toUpperCase",function(e){var t=_g(e=Lg(e))?function(e){return _g(e)?function(e){return e.match(Sg)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),Hg=Mg,$g="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Vg={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Ug={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:$g?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Wg={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Gg=1;Gg<20;Gg++)Wg["f"+Gg]=111+Gg;function qg(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Vg)r[Vg[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Yg(d),g=Vg[h];if(d.length>1&&!g&&!Ug[d]&&!Wg[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Kg(d)),g&&(r[g]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Kg(e){return e=Yg(e),Wg[e]||e.toUpperCase().charCodeAt(0)}function Yg(e){return e=e.toLowerCase(),Ug[e]||e}var Xg=qg,Zg=function(e,t){return qg(e,{byKey:!0},t)},Jg=/^\s+|\s+$/g,Qg=/^[-+]0x[0-9a-f]+$/i,ev=/^0b[01]+$/i,tv=/^0o[0-7]+$/i,nv=parseInt,rv="object"==typeof r&&r&&r.Object===Object&&r,ov="object"==typeof self&&self&&self.Object===Object&&self,iv=rv||ov||Function("return this")(),av=Object.prototype.toString,uv=Math.max,sv=Math.min,lv=function(){return iv.Date.now()};function cv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function fv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==av.call(e)}(e))return NaN;if(cv(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=cv(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Jg,"");var n=ev.test(e);return n||tv.test(e)?nv(e.slice(2),n?2:8):Qg.test(e)?NaN:+e}var dv,pv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e=lv();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?sv(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=lv(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=fv(t)||0,cv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?uv(fv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(lv())},m},hv=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",E="[object Float64Array]",D="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[b]=P[w]=P[a]=P[u]=P[x]=P[E]=P[D]=P[S]=P[C]=P[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[s]=P[m]=!1;var j="object"==typeof r&&r&&r.Object===Object&&r,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function $(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ge=Ne(I,"Set"),ve=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),xe=ze(ge),Ee=ze(ve),De=re?re.prototype:void 0,Se=De?De.valueOf:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Ae(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Te(e,t,n,r,o,p,m){var T;if(r&&(T=p?r(e,o,p,m):r(e)),void 0!==T)return T;if(!Ge(e))return e;var _=$e(e);if(_){if(T=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var j=Le(e),N=j==s||j==l;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==d||j==i||N&&!p){if(V(e))return p?e:{};if(T=function(e){return"function"!=typeof e.constructor||Me(e)?{}:Ge(t=ie(e))?ae(t):{};var t}(N?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,qe(t),e)}(T,e))}else{if(!P[j])return p?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case b:return _e(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case x:case E:case D:case S:case C:case A:case O:case k:case B:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return $(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return $(t?n(G(e),!0):G(e),H,new e.constructor)}(e,r,n);case y:return function(e){return Se?Object(Se.call(e)):{}}(e)}}(e,j,Te,t)}}m||(m=new ke);var I=m.get(e);if(I)return I;if(m.set(e,T),!_)var L=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Ie)}(e):qe(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(L||e,(function(o,i){L&&(o=e[i=o]),Be(T,i,Te(o,t,n,r,i,e,m))})),T}function _e(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Be(n,a,void 0===u?e[a]:u)}return n}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ge(e)||function(e){return!!Z&&Z in e}(e))&&(We(e)||V(e)?te:T).test(ze(e))}(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Ae.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ce,map:new(pe||Ae),string:new Ce}},Oe.prototype.delete=function(e){return je(this,e).delete(e)},Oe.prototype.get=function(e){return je(this,e).get(e)},Oe.prototype.has=function(e){return je(this,e).has(e)},Oe.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Ae},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Ie=le?W(le,Object):function(){return[]},Le=function(e){return ee.call(e)};function Re(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ze(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(de&&Le(new de(new ArrayBuffer(1)))!=w||pe&&Le(new pe)!=c||he&&Le(he.resolve())!=p||ge&&Le(new ge)!=g||ve&&Le(new ve)!=m)&&(Le=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case xe:return g;case Ee:return m}return t});var $e=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!We(e)}var Ue=ce||function(){return!1};function We(e){var t=Ge(e)?ee.call(e):"";return t==s||t==l}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ve(e)?function(e,t){var n=$e(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||Re(a,r))||n.push(a);return n}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}));function gv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vv=0;function yv(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})),r}function mv(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=yv(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var bv=(dv=function(e){return"__private_"+vv+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,dv,{value:wv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(gv(this,dv)[dv],this):gv(this,dv)[dv](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error("missing string: "+e);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return mv(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return mv(n,t)}});function wv(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var xv=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};let{urlAlphabet:Ev}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Dv=e=>crypto.getRandomValues(new Uint8Array(e)),Sv=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var Cv={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>Sv(e,t,Dv),customRandom:Sv,urlAlphabet:Ev,random:Dv},Av=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Ov(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Ov.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var kv=/[\/\+\.]/,Bv=0;var Fv=function(e){return"__private_"+Bv+++"_"+e}("publish");class Tv{constructor(){Object.defineProperty(this,Fv,{value:_v}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,Fv)[Fv](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function _v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}Tv.VERSION="2.0.3";var Pv=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},jv={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Nv(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"))+t}var Iv=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function Lv(e){return e<10?"0"+e:e.toString()}var Rv=function(){const e=new Date;return`${Lv(e.getHours())}:${Lv(e.getMinutes())}:${Lv(e.getSeconds())}`},Mv={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Rv()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Rv()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Rv()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Rv()}]`,...t)}}},zv={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Hv=Cv;let $v,Vv;function Uv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Wv=0;function Gv(e){return"__private_"+Wv+++"_"+e}const{nanoid:qv}=Hv,{justErrorsLogger:Kv,debugLogger:Yv}=Mv;class Xv extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Zv extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Jv=Gv("plugins"),Qv=Gv("storeUnsubscribe"),ey=Gv("emitter"),ty=Gv("preProcessors"),ny=Gv("uploaders"),ry=Gv("postProcessors"),oy=Gv("checkRestrictions"),iy=Gv("checkMinNumberOfFiles"),ay=Gv("checkRequiredMetaFieldsOnFile"),uy=Gv("checkRequiredMetaFields"),sy=Gv("showOrLogErrorAndThrow"),ly=Gv("assertNewUploadAllowed"),cy=Gv("checkAndCreateFileStateObject"),fy=Gv("startIfAutoProceed"),dy=Gv("addListeners"),py=Gv("updateOnlineStatus"),hy=Gv("createUpload"),gy=Gv("getUpload"),vy=Gv("removeUpload"),yy=Gv("runUpload");$v=Symbol.for("uppy test: getPlugins"),Vv=Symbol.for("uppy test: createUpload");class my{constructor(e){Object.defineProperty(this,yy,{value:Ty}),Object.defineProperty(this,vy,{value:Fy}),Object.defineProperty(this,gy,{value:By}),Object.defineProperty(this,hy,{value:ky}),Object.defineProperty(this,dy,{value:Oy}),Object.defineProperty(this,fy,{value:Ay}),Object.defineProperty(this,cy,{value:Cy}),Object.defineProperty(this,ly,{value:Sy}),Object.defineProperty(this,sy,{value:Dy}),Object.defineProperty(this,uy,{value:Ey}),Object.defineProperty(this,ay,{value:xy}),Object.defineProperty(this,iy,{value:wy}),Object.defineProperty(this,oy,{value:by}),Object.defineProperty(this,Jv,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Qv,{writable:!0,value:void 0}),Object.defineProperty(this,ey,{writable:!0,value:xv()}),Object.defineProperty(this,ty,{writable:!0,value:new Set}),Object.defineProperty(this,ny,{writable:!0,value:new Set}),Object.defineProperty(this,ry,{writable:!0,value:new Set}),Object.defineProperty(this,py,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=zv;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Tv,logger:Kv,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Yv),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Ch(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Iv(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Uv(this,Qv)[Qv]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Uv(this,dy)[dy]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Uv(this,ey)[ey].emit(e,...n)}on(e,t){return Uv(this,ey)[ey].on(e,t),this}once(e,t){return Uv(this,ey)[ey].once(e,t),this}off(e,t){return Uv(this,ey)[ey].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new bv([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Uv(this,ty)[ty].add(e)}removePreProcessor(e){return Uv(this,ty)[ty].delete(e)}addPostProcessor(e){Uv(this,ry)[ry].add(e)}removePostProcessor(e){return Uv(this,ry)[ry].delete(e)}addUploader(e){Uv(this,ny)[ny].add(e)}removeUploader(e){return Uv(this,ny)[ny].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),i=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),u=r.filter(e=>e.progress.uploadStarted),s=r.filter(e=>e.isPaused),l=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),f=o.filter(e=>!e.isPaused),d=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return Uv(this,oy)[oy](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Uv(this,ly)[ly](e);const{files:t}=this.getState();let n=Uv(this,cy)[cy](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Uv(this,fy)[fy](),n.id}addFiles(e){Uv(this,ly)[ly]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=Uv(this,cy)[cy](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)}),n.length>0&&Uv(this,fy)[fy](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+="\n * "+t.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]});const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach(e=>{this.emit("file-removed",a[e],t)}),l.length>5?this.log(`Removed ${l.length} files`):this.log("Removed files: "+l.join(", "))}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Uv(this,hy)[hy](t,{forceAllowNewUpload:!0});return Uv(this,yy)[yy](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Uv(this,hy)[hy]([e],{forceAllowNewUpload:!0});return Uv(this,yy)[yy](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach(e=>{i+=e.progress.bytesUploaded}),n.forEach(e=>{i+=o*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Uv(this,Jv)[Jv]?Uv(this,Jv)[Jv][n.type].push(n):Uv(this,Jv)[Jv][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Uv(this,Jv)[Jv])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[$v](e){return Uv(this,Jv)[Jv][e]}iteratePlugins(e){Object.values(Uv(this,Jv)[Jv]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Uv(this,Jv)[Jv][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Uv(this,Qv)[Qv](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Uv(this,py)[py]),window.removeEventListener("offline",Uv(this,py)[py]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Uv(this,yy)[yy](e):(Uv(this,vy)[vy](e),Promise.reject(new Error("Nonexistent upload")))}[Vv](){return Uv(this,hy)[hy](...arguments)}addResultData(e,t){if(!Uv(this,gy)[gy](e))return void this.log("Not setting result for an upload that has been removed: "+e);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Uv(this,Jv)[Jv].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>{Uv(this,iy)[iy](t),Uv(this,uy)[uy](t)}).catch(e=>{Uv(this,sy)[sy](e)}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const o=Uv(this,hy)[hy](r);return Uv(this,yy)[yy](o)}).catch(e=>{Uv(this,sy)[sy](e,{showInformer:!1})}))}}function by(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Xv(""+this.i18n("youCanOnlyUploadX",{smart_count:i}));if(a&&!a.some(t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new Ov(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,kv);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase())){const e=a.join(", ");throw new Xv(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach(e=>{n+=e.size}),n>o)throw new Xv(this.i18n("exceedsSize",{size:Av(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Xv(this.i18n("exceedsSize",{size:Av(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Xv(this.i18n("inferiorSize",{size:Av(r)}))}function wy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Xv(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}function xy(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new Xv(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name}));r.push(n),o.push(t[i]),Uv(this,sy)[sy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Ey(e){const t=Object.keys(e).flatMap(e=>{const t=this.getFile(e);return Uv(this,ay)[ay](t)});if(t.length)throw new Zv(t,""+this.i18n("missingRequiredMetaField"))}function Dy(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=" "+a),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Sy(e){const{allowNewUpload:t}=this.getState();!1===t&&Uv(this,sy)[sy](new Xv(this.i18n("noMoreFilesAllowed")),{file:e})}function Cy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Pv(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in jv?jv[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=Pv(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-"+Nv(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+Nv(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new Xv(this.i18n("noDuplicates",{fileName:r}));Uv(this,sy)[sy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?Uv(this,sy)[sy](new Xv("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map(t=>e[t]);Uv(this,oy)[oy](l,t)}catch(e){Uv(this,sy)[sy](e,{file:l})}return l}function Ay(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Oy(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=" "+e.details),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=" "+n.details),e.message=this.i18n("failedToUpload",{file:t.name}),Uv(this,sy)[sy](e,{throwErr:!1})}else Uv(this,sy)[sy](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Uv(this,ry)[ry].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&Uv(this,ay)[ay](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Uv(this,py)[py]),window.addEventListener("offline",Uv(this,py)[py]),setTimeout(Uv(this,py)[py],3e3))}function ky(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=qv();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function By(e){const{currentUploads:t}=this.getState();return t[e]}function Fy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Ty(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Uv(this,ty)[ty],...Uv(this,ny)[ny],...Uv(this,ry)[ry]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),Uv(this,vy)[vy](e),t}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),o=r.filter(e=>!e.error),i=r.filter(e=>e.error);await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Uv(this,vy)[vy](e)),null==i&&this.log("Not setting result for an upload that has been removed: "+e),i}my.VERSION="2.1.3";var _y=my,Py=o((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(E)}function E(){for(var e;E.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function D(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,x,E=r&&r.__k||f,D=E.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=E[d])||h&&g.key==h.key&&g.type===h.type)E[d]=void 0;else for(p=0;p<D;p++){if((h=E[p])&&g.key==h.key&&g.type===h.type){E[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,g),x.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=S(g,s,e):s=C(e,g,h,E,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=D;d--;)null!=E[d]&&("function"==typeof n.type&&null!=E[d].__e&&E[d].__e==n.__d&&(n.__d=b(r,d+1)),j(E[d],E[d]));if(x)for(d=0;d<x.length;d++)P(x[d],x[++d],x[++d])}function S(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):C(n,r,r,o,r.__e,t));return t}function C(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,x,E,S,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof C){if(w=t.props,x=(c=C.contextType)&&o[c.__c],E=c?x?x.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in C&&C.prototype.render?t.__c=f=new C(w,E):(t.__c=f=new m(w,E),f.constructor=C,f.render=N),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=E,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=C.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,C.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==C.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==C.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,E),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,E)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,E),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=E,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),S=null!=c&&c.type===y&&null==c.key?c.props.children:c,D(e,Array.isArray(S)?S:[S],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function T(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function _(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,D(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),jy=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new bv([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Ny(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Iy=0;const{render:Ly}=Py;var Ry=function(e){return"__private_"+Iy+++"_"+e}("updateUI");class My extends jy{constructor(){super(...arguments),Object.defineProperty(this,Ry,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Ny(this,Ry)[Ry]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}(e=>{this.uppy.getPlugin(this.id)&&(Ly(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Ly(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof My)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins(e=>{if(e instanceof t)return o=e,!1})}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing "+n);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Ny(this,Ry))[Ry])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var zy=My;const{debugLogger:Hy}=Mv;var $y=_y,Vy=_y,Uy=zy,Wy=jy,Gy=Hy;$y.Uppy=Vy,$y.UIPlugin=Uy,$y.BasePlugin=Wy,$y.debugLogger=Gy;class qy extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var Ky=qy,Yy=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new Ky(e)})};class Xy extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Zy,Jy,Qy,em,tm,nm=Xy;function rm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var om=0;function im(e){return"__private_"+om+++"_"+e}async function am(e){if(401===e.status)throw new nm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var um=(Jy=im("getPostResponseFunc"),Qy=im("getUrl"),em=im("errorHandler"),tm=Zy=class e{constructor(e,t){Object.defineProperty(this,em,{value:lm}),Object.defineProperty(this,Qy,{value:sm}),Object.defineProperty(this,Jy,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(rm(this,Qy)[Qy](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header "+e),delete n[e])}),n})}get(e,t){return this.preflightAndHeaders(e).then(t=>Yy(rm(this,Qy)[Qy](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"})).then(rm(this,Jy)[Jy](t)).then(am).catch(rm(this,em)[em]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then(n=>Yy(rm(this,Qy)[Qy](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})).then(rm(this,Jy)[Jy](n)).then(am).catch(rm(this,em)[em](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then(n=>Yy(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})).then(rm(this,Jy)[Jy](n)).then(am).catch(rm(this,em)[em](r,e))}},Zy.VERSION="2.0.4",Zy.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+Zy.VERSION},tm);function sm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function lm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${rm(this,Qy)[Qy](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var cm,fm,dm,pm,hm,gm={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})};let vm,ym;function mm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bm=0;function wm(e){return"__private_"+bm+++"_"+e}var xm,Em,Dm=(cm=wm("queued"),fm=wm("emitter"),dm=wm("isOpen"),pm=wm("socket"),hm=wm("handleMessage"),vm=Symbol.for("uppy test: getSocket"),ym=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,cm,{writable:!0,value:[]}),Object.defineProperty(this,fm,{writable:!0,value:xv()}),Object.defineProperty(this,dm,{writable:!0,value:!1}),Object.defineProperty(this,pm,{writable:!0,value:void 0}),Object.defineProperty(this,hm,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return mm(this,dm)[dm]}[vm](){return mm(this,pm)[pm]}[ym](){return mm(this,cm)[cm]}open(){mm(this,pm)[pm]=new WebSocket(this.opts.target),mm(this,pm)[pm].onopen=()=>{for(mm(this,dm)[dm]=!0;mm(this,cm)[cm].length>0&&mm(this,dm)[dm];){const e=mm(this,cm)[cm].shift();this.send(e.action,e.payload)}},mm(this,pm)[pm].onclose=()=>{mm(this,dm)[dm]=!1},mm(this,pm)[pm].onmessage=mm(this,hm)[hm]}close(){var e;null==(e=mm(this,pm)[pm])||e.close()}send(e,t){mm(this,dm)[dm]?mm(this,pm)[pm].send(JSON.stringify({action:e,payload:t})):mm(this,cm)[cm].push({action:e,payload:t})}on(e,t){mm(this,fm)[fm].on(e,t)}emit(e,t){mm(this,fm)[fm].emit(e,t)}once(e,t){mm(this,fm)[fm].once(e,t)}}),Sm={RequestClient:um,Provider:class extends um{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken "+e,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(this.id+"/logout").then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||gm}},SearchProvider:class extends um{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?"&"+t:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:Dm},Cm=Ch((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log("Upload progress: "+r),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Am(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Om=0;function km(e){return"__private_"+Om+++"_"+e}var Bm=(xm=km("emitter"),Em=km("events"),class{constructor(e){Object.defineProperty(this,xm,{writable:!0,value:void 0}),Object.defineProperty(this,Em,{writable:!0,value:[]}),Am(this,xm)[xm]=e}on(e,t){return Am(this,Em)[Em].push([e,t]),Am(this,xm)[xm].on(e,t)}remove(){for(const[e,t]of Am(this,Em)[Em].splice(0))Am(this,xm)[xm].off(e,t)}});function Fm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tm=0;function _m(e){return"__private_"+Tm+++"_"+e}var Pm=_m("aliveTimer"),jm=_m("isDone"),Nm=_m("onTimedOut"),Im=_m("timeout"),Lm=class{constructor(e,t){Object.defineProperty(this,Pm,{writable:!0,value:void 0}),Object.defineProperty(this,jm,{writable:!0,value:!1}),Object.defineProperty(this,Nm,{writable:!0,value:void 0}),Object.defineProperty(this,Im,{writable:!0,value:void 0}),Fm(this,Im)[Im]=e,Fm(this,Nm)[Nm]=t}progress(){Fm(this,jm)[jm]||Fm(this,Im)[Im]>0&&(clearTimeout(Fm(this,Pm)[Pm]),Fm(this,Pm)[Pm]=setTimeout(Fm(this,Nm)[Nm],Fm(this,Im)[Im]))}done(){Fm(this,jm)[jm]||(clearTimeout(Fm(this,Pm)[Pm]),Fm(this,Pm)[Pm]=null,Fm(this,jm)[jm]=!0)}};function Rm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mm=0;function zm(e){return"__private_"+Mm+++"_"+e}function Hm(){return new Error("Cancelled")}var $m=zm("activeRequests"),Vm=zm("queuedHandlers"),Um=zm("call"),Wm=zm("queueNext"),Gm=zm("next"),qm=zm("queue"),Km=zm("dequeue");function Ym(e){Rm(this,$m)[$m]+=1;let t,n=!1;try{t=e()}catch(e){throw Rm(this,$m)[$m]-=1,e}return{abort:()=>{n||(n=!0,Rm(this,$m)[$m]-=1,t(),Rm(this,Wm)[Wm]())},done:()=>{n||(n=!0,Rm(this,$m)[$m]-=1,Rm(this,Wm)[Wm]())}}}function Xm(){queueMicrotask(()=>Rm(this,Gm)[Gm]())}function Zm(){if(Rm(this,$m)[$m]>=this.limit)return;if(0===Rm(this,Vm)[Vm].length)return;const e=Rm(this,Vm)[Vm].shift(),t=Rm(this,Um)[Um](e.fn);e.abort=t.abort,e.done=t.done}function Jm(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Rm(this,Km)[Km](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Rm(this,Vm)[Vm].findIndex(e=>n.priority>e.priority);return-1===r?Rm(this,Vm)[Vm].push(n):Rm(this,Vm)[Vm].splice(r,0,n),n}function Qm(e){const t=Rm(this,Vm)[Vm].indexOf(e);-1!==t&&Rm(this,Vm)[Vm].splice(t,1)}var eb,tb,nb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Km,{value:Qm}),Object.defineProperty(this,qm,{value:Jm}),Object.defineProperty(this,Gm,{value:Zm}),Object.defineProperty(this,Wm,{value:Xm}),Object.defineProperty(this,Um,{value:Ym}),Object.defineProperty(this,$m,{writable:!0,value:0}),Object.defineProperty(this,Vm,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Rm(this,$m)[$m]<this.limit?Rm(this,Um)[Um](e):Rm(this,qm)[qm](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((r,i)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?i(t):(a.done(),r(e))},e=>{t?i(t):(a.done(),i(e))}),()=>{t=Hm()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},rb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},ob={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:ib}=Hv,{Provider:ab,RequestClient:ub,Socket:sb}=Sm,{RateLimitedQueue:lb,internalRateLimitedQueue:cb}=nb;function fb(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),rb(e)?(n=new Ky(n,e),n):(n.request=e,n)}function db(e){return e.data.slice(0,e.data.size,e.meta.type)}var pb=(tb=eb=class extends jy{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=ob;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return rb(t)&&(n=new Ky(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),cb in this.opts?this.requests=this.opts[cb]:this.requests=new lb(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=db(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(e=>{const t=this.getOptions(e),r=db(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Bm(this.uppy);const a=new Lm(r.timeout,()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)}),u=ib();i.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${u} started`)}),i.upload.addEventListener("progress",t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})}),i.addEventListener("load",o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=fb(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)}),i.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=fb(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)}),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run(()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach(e=>{i.setRequestHeader(e,t.headers[e])}),i.send(o),()=>{a.done(),i.abort()}});this.onFileRemove(e.id,()=>{s.abort(),n(new Error("File removed"))}),this.onCancelAll(e.id,()=>{s.abort(),n(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(t=>{o[t]=e.meta[t]}),new(e.remote.providerOptions.provider?ab:ub)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new sb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Bm(this.uppy),this.onFileRemove(e.id,()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),this.onRetryAll(e.id,()=>{u.send("pause",{}),u.send("resume",{})}),u.on("progress",t=>Cm(this,t,e)),u.on("success",r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),u.on("error",n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)});const s=this.requests.run(()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close()))}).catch(t=>{this.uppy.emit("upload-error",e,t),r(t)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Lm(this.opts.timeout,()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)}),l=t=>{e.forEach(e=>{this.uppy.emit("upload-error",e,t)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",t=>{s.progress(),t.lengthComputable&&e.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),u.addEventListener("load",r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach(e=>{this.uppy.emit("upload-success",e,o)}),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)}),u.addEventListener("error",()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{u.setRequestHeader(e,this.opts.headers[e])}),u.send(a),e.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(e){return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map(e=>e.then(r,o))).then(()=>({successful:t,failed:n}))}(e.map((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}))}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[cb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(t.some(e=>e.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},eb.VERSION="2.0.6",tb),hb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function gb(e){var t={exports:{}};return e(t,t.exports),t.exports}var vb,yb,mb=function(e){return e&&e.Math==Math&&e},bb=mb("object"==typeof globalThis&&globalThis)||mb("object"==typeof window&&window)||mb("object"==typeof self&&self)||mb("object"==typeof hb&&hb)||function(){return this}()||Function("return this")(),wb=Object.defineProperty,xb=function(e,t){try{wb(bb,e,{value:t,configurable:!0,writable:!0})}catch(n){bb[e]=t}return t},Eb=bb["__core-js_shared__"]||xb("__core-js_shared__",{}),Db=gb((function(e){(e.exports=function(e,t){return Eb[e]||(Eb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Sb=Function.prototype,Cb=Sb.bind,Ab=Sb.call,Ob=Cb&&Cb.bind(Ab),kb=Cb?function(e){return e&&Ob(Ab,e)}:function(e){return e&&function(){return Ab.apply(e,arguments)}},Bb=bb.TypeError,Fb=function(e){if(null==e)throw Bb("Can't call method on "+e);return e},Tb=bb.Object,_b=function(e){return Tb(Fb(e))},Pb=kb({}.hasOwnProperty),jb=Object.hasOwn||function(e,t){return Pb(_b(e),t)},Nb=0,Ib=Math.random(),Lb=kb(1..toString),Rb=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Lb(++Nb+Ib,36)},Mb=function(e){return"function"==typeof e},zb=function(e){return Mb(e)?e:void 0},Hb=function(e,t){return arguments.length<2?zb(bb[e]):bb[e]&&bb[e][t]},$b=Hb("navigator","userAgent")||"",Vb=bb.process,Ub=bb.Deno,Wb=Vb&&Vb.versions||Ub&&Ub.version,Gb=Wb&&Wb.v8;Gb&&(yb=(vb=Gb.split("."))[0]>0&&vb[0]<4?1:+(vb[0]+vb[1])),!yb&&$b&&(!(vb=$b.match(/Edge\/(\d+)/))||vb[1]>=74)&&(vb=$b.match(/Chrome\/(\d+)/))&&(yb=+vb[1]);var qb=yb,Kb=function(e){try{return!!e()}catch(e){return!0}},Yb=!!Object.getOwnPropertySymbols&&!Kb((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qb&&qb<41})),Xb=Yb&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zb=Db("wks"),Jb=bb.Symbol,Qb=Jb&&Jb.for,ew=Xb?Jb:Jb&&Jb.withoutSetter||Rb,tw=function(e){if(!jb(Zb,e)||!Yb&&"string"!=typeof Zb[e]){var t="Symbol."+e;Yb&&jb(Jb,e)?Zb[e]=Jb[e]:Zb[e]=Xb&&Qb?Qb(t):ew(t)}return Zb[e]},nw={};nw[tw("toStringTag")]="z";var rw="[object z]"===String(nw),ow=!Kb((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),iw=function(e){return"object"==typeof e?null!==e:Mb(e)},aw=bb.document,uw=iw(aw)&&iw(aw.createElement),sw=function(e){return uw?aw.createElement(e):{}},lw=!ow&&!Kb((function(){return 7!=Object.defineProperty(sw("div"),"a",{get:function(){return 7}}).a})),cw=bb.String,fw=bb.TypeError,dw=function(e){if(iw(e))return e;throw fw(cw(e)+" is not an object")},pw=Function.prototype.call,hw=pw.bind?pw.bind(pw):function(){return pw.apply(pw,arguments)},gw=kb({}.isPrototypeOf),vw=bb.Object,yw=Xb?function(e){return"symbol"==typeof e}:function(e){var t=Hb("Symbol");return Mb(t)&&gw(t.prototype,vw(e))},mw=bb.String,bw=function(e){try{return mw(e)}catch(e){return"Object"}},ww=bb.TypeError,xw=function(e){if(Mb(e))return e;throw ww(bw(e)+" is not a function")},Ew=function(e,t){var n=e[t];return null==n?void 0:xw(n)},Dw=bb.TypeError,Sw=bb.TypeError,Cw=tw("toPrimitive"),Aw=function(e){var t=function(e,t){if(!iw(e)||yw(e))return e;var n,r=Ew(e,Cw);if(r){if(void 0===t&&(t="default"),n=hw(r,e,t),!iw(n)||yw(n))return n;throw Sw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Mb(n=e.toString)&&!iw(r=hw(n,e)))return r;if(Mb(n=e.valueOf)&&!iw(r=hw(n,e)))return r;if("string"!==t&&Mb(n=e.toString)&&!iw(r=hw(n,e)))return r;throw Dw("Can't convert object to primitive value")}(e,t)}(e,"string");return yw(t)?t:t+""},Ow=bb.TypeError,kw=Object.defineProperty,Bw={f:ow?kw:function(e,t,n){if(dw(e),t=Aw(t),dw(n),lw)try{return kw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ow("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Fw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Tw=ow?function(e,t,n){return Bw.f(e,t,Fw(1,n))}:function(e,t,n){return e[t]=n,e},_w=kb(Function.toString);Mb(Eb.inspectSource)||(Eb.inspectSource=function(e){return _w(e)});var Pw,jw,Nw,Iw=Eb.inspectSource,Lw=bb.WeakMap,Rw=Mb(Lw)&&/native code/.test(Iw(Lw)),Mw=Db("keys"),zw=function(e){return Mw[e]||(Mw[e]=Rb(e))},Hw={},$w=bb.TypeError,Vw=bb.WeakMap;if(Rw||Eb.state){var Uw=Eb.state||(Eb.state=new Vw),Ww=kb(Uw.get),Gw=kb(Uw.has),qw=kb(Uw.set);Pw=function(e,t){if(Gw(Uw,e))throw new $w("Object already initialized");return t.facade=e,qw(Uw,e,t),t},jw=function(e){return Ww(Uw,e)||{}},Nw=function(e){return Gw(Uw,e)}}else{var Kw=zw("state");Hw[Kw]=!0,Pw=function(e,t){if(jb(e,Kw))throw new $w("Object already initialized");return t.facade=e,Tw(e,Kw,t),t},jw=function(e){return jb(e,Kw)?e[Kw]:{}},Nw=function(e){return jb(e,Kw)}}var Yw={set:Pw,get:jw,has:Nw,enforce:function(e){return Nw(e)?jw(e):Pw(e,{})},getterFor:function(e){return function(t){var n;if(!iw(t)||(n=jw(t)).type!==e)throw $w("Incompatible receiver, "+e+" required");return n}}},Xw=Function.prototype,Zw=ow&&Object.getOwnPropertyDescriptor,Jw=jb(Xw,"name"),Qw={EXISTS:Jw,PROPER:Jw&&"something"===function(){}.name,CONFIGURABLE:Jw&&(!ow||ow&&Zw(Xw,"name").configurable)},ex=gb((function(e){var t=Qw.CONFIGURABLE,n=Yw.get,r=Yw.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Mb(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jb(i,"name")||t&&i.name!==f)&&Tw(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==bb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Tw(e,n,i)):l?e[n]=i:xb(n,i)})(Function.prototype,"toString",(function(){return Mb(this)&&n(this).source||Iw(this)}))})),tx=kb({}.toString),nx=kb("".slice),rx=function(e){return nx(tx(e),8,-1)},ox=tw("toStringTag"),ix=bb.Object,ax="Arguments"==rx(function(){return arguments}()),ux=rw?rx:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ix(e),ox))?n:ax?rx(t):"Object"==(r=rx(t))&&Mb(t.callee)?"Arguments":r},sx=rw?{}.toString:function(){return"[object "+ux(this)+"]"};rw||ex(Object.prototype,"toString",sx,{unsafe:!0});var lx={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},cx=sw("span").classList,fx=cx&&cx.constructor&&cx.constructor.prototype,dx=fx===Object.prototype?void 0:fx,px=kb(kb.bind),hx=function(e,t){return xw(e),void 0===t?e:px?px(e,t):function(){return e.apply(t,arguments)}},gx=bb.Object,vx=kb("".split),yx=Kb((function(){return!gx("z").propertyIsEnumerable(0)}))?function(e){return"String"==rx(e)?vx(e,""):gx(e)}:gx,mx=Math.ceil,bx=Math.floor,wx=function(e){var t=+e;return t!=t||0===t?0:(t>0?bx:mx)(t)},xx=Math.min,Ex=function(e){return e>0?xx(wx(e),9007199254740991):0},Dx=function(e){return Ex(e.length)},Sx=Array.isArray||function(e){return"Array"==rx(e)},Cx=function(){},Ax=[],Ox=Hb("Reflect","construct"),kx=/^\s*(?:class|function)\b/,Bx=kb(kx.exec),Fx=!kx.exec(Cx),Tx=function(e){if(!Mb(e))return!1;try{return Ox(Cx,Ax,e),!0}catch(e){return!1}},_x=!Ox||Kb((function(){var e;return Tx(Tx.call)||!Tx(Object)||!Tx((function(){e=!0}))||e}))?function(e){if(!Mb(e))return!1;switch(ux(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fx||!!Bx(kx,Iw(e))}:Tx,Px=tw("species"),jx=bb.Array,Nx=function(e,t){return new(function(e){var t;return Sx(e)&&(t=e.constructor,(_x(t)&&(t===jx||Sx(t.prototype))||iw(t)&&null===(t=t[Px]))&&(t=void 0)),void 0===t?jx:t}(e))(0===t?0:t)},Ix=kb([].push),Lx=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=_b(s),g=yx(h),v=hx(l,c),y=Dx(g),m=0,b=f||Nx,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ix(w,d)}else switch(e){case 4:return!1;case 7:Ix(w,d)}return i?-1:r||o?o:w}},Rx={forEach:Lx(0),map:Lx(1),filter:Lx(2),some:Lx(3),every:Lx(4),find:Lx(5),findIndex:Lx(6),filterReject:Lx(7)},Mx=function(e,t){var n=[][e];return!!n&&Kb((function(){n.call(null,t||function(){throw 1},1)}))},zx=Rx.forEach,Hx=Mx("forEach")?[].forEach:function(e){return zx(this,e,arguments.length>1?arguments[1]:void 0)},$x=function(e){if(e&&e.forEach!==Hx)try{Tw(e,"forEach",Hx)}catch(t){e.forEach=Hx}};for(var Vx in lx)lx[Vx]&&$x(bb[Vx]&&bb[Vx].prototype);$x(dx);var Ux={}.propertyIsEnumerable,Wx=Object.getOwnPropertyDescriptor,Gx={f:Wx&&!Ux.call({1:2},1)?function(e){var t=Wx(this,e);return!!t&&t.enumerable}:Ux},qx=function(e){return yx(Fb(e))},Kx=Object.getOwnPropertyDescriptor,Yx={f:ow?Kx:function(e,t){if(e=qx(e),t=Aw(t),lw)try{return Kx(e,t)}catch(e){}if(jb(e,t))return Fw(!hw(Gx.f,e,t),e[t])}},Xx=Math.max,Zx=Math.min,Jx=function(e,t){var n=wx(e);return n<0?Xx(n+t,0):Zx(n,t)},Qx=function(e){return function(t,n,r){var o,i=qx(t),a=Dx(i),u=Jx(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},eE={includes:Qx(!0),indexOf:Qx(!1)},tE=eE.indexOf,nE=kb([].push),rE=function(e,t){var n,r=qx(e),o=0,i=[];for(n in r)!jb(Hw,n)&&jb(r,n)&&nE(i,n);for(;t.length>o;)jb(r,n=t[o++])&&(~tE(i,n)||nE(i,n));return i},oE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iE=oE.concat("length","prototype"),aE={f:Object.getOwnPropertyNames||function(e){return rE(e,iE)}},uE={f:Object.getOwnPropertySymbols},sE=kb([].concat),lE=Hb("Reflect","ownKeys")||function(e){var t=aE.f(dw(e)),n=uE.f;return n?sE(t,n(e)):t},cE=function(e,t){for(var n=lE(t),r=Bw.f,o=Yx.f,i=0;i<n.length;i++){var a=n[i];jb(e,a)||r(e,a,o(t,a))}},fE=/#|\.prototype\./,dE=function(e,t){var n=hE[pE(e)];return n==vE||n!=gE&&(Mb(t)?Kb(t):!!t)},pE=dE.normalize=function(e){return String(e).replace(fE,".").toLowerCase()},hE=dE.data={},gE=dE.NATIVE="N",vE=dE.POLYFILL="P",yE=dE,mE=Yx.f,bE=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?bb:l?bb[u]||xb(u,{}):(bb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=mE(n,r))&&a.value:n[r],!yE(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;cE(i,o)}(e.sham||o&&o.sham)&&Tw(i,"sham",!0),ex(n,r,i,e)}},wE=Object.keys||function(e){return rE(e,oE)},xE=Kb((function(){wE(1)}));function EE(e){return"[object Object]"===Object.prototype.toString.call(e)}bE({target:"Object",stat:!0,forced:xE},{keys:function(e){return wE(_b(e))}});var DE={isHistory(e){return!1!==EE(t=e)&&(void 0===(n=t.constructor)||!1!==EE(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||xf.isOperationList(e.redos[0]))&&(0===e.undos.length||xf.isOperationList(e.undos[0]));var t,n,r}},SE=new WeakMap,CE=new WeakMap,AE={isHistoryEditor:e=>DE.isHistory(e.history)&&pf.isEditor(e),isMerging:e=>CE.get(e),isSaving:e=>SE.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=AE.isMerging(e);CE.set(e,!1),t(),CE.set(e,n)},withoutSaving(e,t){var n=AE.isSaving(e);SE.set(e,!1),t(),SE.set(e,n)}},OE=bb.String,kE=function(e){if("Symbol"===ux(e))throw TypeError("Cannot convert a Symbol value to a string");return OE(e)},BE=function(){var e=dw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},FE=Qw.PROPER,TE=RegExp.prototype,_E=TE.toString,PE=kb(BE),jE=Kb((function(){return"/a/b"!=_E.call({source:"a",flags:"b"})})),NE=FE&&"toString"!=_E.name;(jE||NE)&&ex(RegExp.prototype,"toString",(function(){var e=dw(this),t=kE(e.source),n=e.flags;return"/"+t+"/"+kE(void 0===n&&gw(TE,e)&&!("flags"in TE)?PE(e):n)}),{unsafe:!0});var IE,LE=ow?Object.defineProperties:function(e,t){dw(e);for(var n,r=qx(t),o=wE(t),i=o.length,a=0;i>a;)Bw.f(e,n=o[a++],r[n]);return e},RE=Hb("document","documentElement"),ME=zw("IE_PROTO"),zE=function(){},HE=function(e){return"<script>"+e+"<\/script>"},$E=function(e){e.write(HE("")),e.close();var t=e.parentWindow.Object;return e=null,t},VE=function(){try{IE=new ActiveXObject("htmlfile")}catch(e){}var e,t;VE="undefined"!=typeof document?document.domain&&IE?$E(IE):((t=sw("iframe")).style.display="none",RE.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(HE("document.F=Object")),e.close(),e.F):$E(IE);for(var n=oE.length;n--;)delete VE.prototype[oE[n]];return VE()};Hw[ME]=!0;var UE=Object.create||function(e,t){var n;return null!==e?(zE.prototype=dw(e),n=new zE,zE.prototype=null,n[ME]=e):n=VE(),void 0===t?n:LE(n,t)},WE=tw("unscopables"),GE=Array.prototype;null==GE[WE]&&Bw.f(GE,WE,{configurable:!0,value:UE(null)});var qE=function(e){GE[WE][e]=!0},KE=eE.includes;bE({target:"Array",proto:!0},{includes:function(e){return KE(this,e,arguments.length>1?arguments[1]:void 0)}}),qE("includes");var YE=tw("match"),XE=function(e){var t;return iw(e)&&(void 0!==(t=e[YE])?!!t:"RegExp"==rx(e))},ZE=bb.TypeError,JE=function(e){if(XE(e))throw ZE("The method doesn't accept regular expressions");return e},QE=tw("match"),eD=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[QE]=!1,"/./"[e](t)}catch(e){}}return!1},tD=kb("".indexOf);bE({target:"String",proto:!0,forced:!eD("includes")},{includes:function(e){return!!~tD(kE(Fb(this)),kE(JE(e)),arguments.length>1?arguments[1]:void 0)}});var nD=/"/g,rD=kb("".replace);bE({target:"String",proto:!0,forced:Kb((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=kE(Fb(this)),r="<a",(r+=' name="'+rD(kE(t),nD,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var oD=function(e,t,n){var r,o;dw(e);try{if(!(r=Ew(e,"return"))){if("throw"===t)throw n;return n}r=hw(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return dw(r),n},iD=function(e,t,n,r){try{return r?t(dw(n)[0],n[1]):t(n)}catch(t){oD(e,"throw",t)}},aD={},uD=tw("iterator"),sD=Array.prototype,lD=function(e){return void 0!==e&&(aD.Array===e||sD[uD]===e)},cD=function(e,t,n){var r=Aw(t);r in e?Bw.f(e,r,Fw(0,n)):e[r]=n},fD=tw("iterator"),dD=function(e){if(null!=e)return Ew(e,fD)||Ew(e,"@@iterator")||aD[ux(e)]},pD=bb.TypeError,hD=function(e,t){var n=arguments.length<2?dD(e):t;if(xw(n))return dw(hw(n,e));throw pD(bw(e)+" is not iterable")},gD=bb.Array,vD=tw("iterator"),yD=!1;try{var mD=0,bD={next:function(){return{done:!!mD++}},return:function(){yD=!0}};bD[vD]=function(){return this},Array.from(bD,(function(){throw 2}))}catch($A){}var wD=function(e,t){if(!t&&!yD)return!1;var n=!1;try{var r={};r[vD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},xD=!wD((function(e){Array.from(e)}));bE({target:"Array",stat:!0,forced:xD},{from:function(e){var t=_b(e),n=_x(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=hx(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=dD(t),p=0;if(!d||this==gD&&lD(d))for(a=Dx(t),u=n?new this(a):gD(a);a>p;p++)f=i?o(t[p],p):t[p],cD(u,p,f);else for(c=(l=hD(t,d)).next,u=n?new this:[];!(s=hw(c,l)).done;p++)f=i?iD(l,o,[s.value,p],!0):s.value,cD(u,p,f);return u.length=p,u}});var ED,DD,SD,CD=kb("".charAt),AD=kb("".charCodeAt),OD=kb("".slice),kD=function(e){return function(t,n){var r,o,i=kE(Fb(t)),a=wx(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=AD(i,a))<55296||r>56319||a+1===u||(o=AD(i,a+1))<56320||o>57343?e?CD(i,a):r:e?OD(i,a,a+2):o-56320+(r-55296<<10)+65536}},BD={codeAt:kD(!1),charAt:kD(!0)},FD=!Kb((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),TD=zw("IE_PROTO"),_D=bb.Object,PD=_D.prototype,jD=FD?_D.getPrototypeOf:function(e){var t=_b(e);if(jb(t,TD))return t[TD];var n=t.constructor;return Mb(n)&&t instanceof n?n.prototype:t instanceof _D?PD:null},ND=tw("iterator"),ID=!1;[].keys&&("next"in(SD=[].keys())?(DD=jD(jD(SD)))!==Object.prototype&&(ED=DD):ID=!0),(null==ED||Kb((function(){var e={};return ED[ND].call(e)!==e})))&&(ED={}),Mb(ED[ND])||ex(ED,ND,(function(){return this}));var LD={IteratorPrototype:ED,BUGGY_SAFARI_ITERATORS:ID},RD=Bw.f,MD=tw("toStringTag"),zD=function(e,t,n){e&&!jb(e=n?e:e.prototype,MD)&&RD(e,MD,{configurable:!0,value:t})},HD=LD.IteratorPrototype,$D=function(){return this},VD=bb.String,UD=bb.TypeError,WD=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=kb(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return dw(n),function(e){if("object"==typeof e||Mb(e))return e;throw UD("Can't set "+VD(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),GD=Qw.PROPER,qD=Qw.CONFIGURABLE,KD=LD.IteratorPrototype,YD=LD.BUGGY_SAFARI_ITERATORS,XD=tw("iterator"),ZD=function(){return this},JD=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=UE(HD,{next:Fw(1,n)}),zD(e,o,!1),aD[o]=$D}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!YD&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[XD]||p["@@iterator"]||o&&p[o],g=!YD&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=jD(v.call(new e)))!==Object.prototype&&u.next&&(jD(u)!==KD&&(WD?WD(u,KD):Mb(u[XD])||ex(u,XD,ZD)),zD(u,f,!0)),GD&&"values"==o&&h&&"values"!==h.name&&(qD?Tw(p,"name","values"):(d=!0,g=function(){return hw(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(YD||d||!(l in p))&&ex(p,l,s[l]);else bE({target:t,proto:!0,forced:YD||d},s);return p[XD]!==g&&ex(p,XD,g,{name:o}),aD[t]=g,s},QD=BD.charAt,eS=Yw.set,tS=Yw.getterFor("String Iterator");JD(String,"String",(function(e){eS(this,{type:"String Iterator",string:kE(e),index:0})}),(function(){var e,t=tS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=QD(n,r),t.index+=e.length,{value:e,done:!1})}));var nS,rS=Yx.f,oS=kb("".endsWith),iS=kb("".slice),aS=Math.min,uS=eD("endsWith"),sS=!(uS||(nS=rS(String.prototype,"endsWith"),!nS||nS.writable));bE({target:"String",proto:!0,forced:!sS&&!uS},{endsWith:function(e){var t=kE(Fb(this));JE(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:aS(Ex(n),r),i=kE(e);return oS?oS(t,i,o):iS(t,o-i.length,o)===i}});var lS=kb([].join),cS=yx!=Object,fS=Mx("join",",");bE({target:"Array",proto:!0,forced:cS||!fS},{join:function(e){return lS(qx(this),void 0===e?",":e)}});var dS=tw("species"),pS=function(e){return qb>=51||!Kb((function(){var t=[];return(t.constructor={})[dS]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},hS=Rx.map,gS=pS("map");bE({target:"Array",proto:!0,forced:!gS},{map:function(e){return hS(this,e,arguments.length>1?arguments[1]:void 0)}});var vS=bb.RegExp,yS=Kb((function(){var e=vS("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),mS=yS||Kb((function(){return!vS("a","y").sticky})),bS={BROKEN_CARET:yS||Kb((function(){var e=vS("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:mS,UNSUPPORTED_Y:yS},wS=bb.RegExp,xS=Kb((function(){var e=wS(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ES=bb.RegExp,DS=Kb((function(){var e=ES("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),SS=Yw.get,CS=Db("native-string-replace",String.prototype.replace),AS=RegExp.prototype.exec,OS=AS,kS=kb("".charAt),BS=kb("".indexOf),FS=kb("".replace),TS=kb("".slice),_S=function(){var e=/a/,t=/b*/g;return hw(AS,e,"a"),hw(AS,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),PS=bS.BROKEN_CARET,jS=void 0!==/()??/.exec("")[1];(_S||jS||PS||xS||DS)&&(OS=function(e){var t,n,r,o,i,a,u,s=this,l=SS(s),c=kE(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=hw(OS,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=PS&&s.sticky,h=hw(BE,s),g=s.source,v=0,y=c;if(p&&(h=FS(h,"y",""),-1===BS(h,"g")&&(h+="g"),y=TS(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==kS(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),jS&&(n=new RegExp("^"+g+"$(?!\\s)",h)),_S&&(r=s.lastIndex),o=hw(AS,p?n:s,y),p?o?(o.input=TS(o.input,v),o[0]=TS(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_S&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),jS&&o&&o.length>1&&hw(CS,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=UE(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var NS=OS;bE({target:"RegExp",proto:!0,forced:/./.exec!==NS},{exec:NS});var IS=Function.prototype,LS=IS.apply,RS=IS.bind,MS=IS.call,zS="object"==typeof Reflect&&Reflect.apply||(RS?MS.bind(LS):function(){return MS.apply(LS,arguments)}),HS=tw("species"),$S=RegExp.prototype,VS=function(e,t,n,r){var o=tw(e),i=!Kb((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Kb((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[HS]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=kb(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=kb(e),s=t.exec;return s===NS||s===$S.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ex(String.prototype,e,s[0]),ex($S,o,s[1])}r&&Tw($S[o],"sham",!0)},US=BD.charAt,WS=function(e,t,n){return t+(n?US(e,t).length:1)},GS=Math.floor,qS=kb("".charAt),KS=kb("".replace),YS=kb("".slice),XS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ZS=/\$([$&'`]|\d{1,2})/g,JS=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=ZS;return void 0!==o&&(o=_b(o),s=XS),KS(i,s,(function(i,s){var l;switch(qS(s,0)){case"$":return"$";case"&":return e;case"`":return YS(t,0,n);case"'":return YS(t,a);case"<":l=o[YS(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=GS(c/10);return 0===f?i:f<=u?void 0===r[f-1]?qS(s,1):r[f-1]+qS(s,1):i}l=r[c-1]}return void 0===l?"":l}))},QS=bb.TypeError,eC=function(e,t){var n=e.exec;if(Mb(n)){var r=hw(n,e,t);return null!==r&&dw(r),r}if("RegExp"===rx(e))return hw(NS,e,t);throw QS("RegExp#exec called on incompatible receiver")},tC=tw("replace"),nC=Math.max,rC=Math.min,oC=kb([].concat),iC=kb([].push),aC=kb("".indexOf),uC=kb("".slice),sC="$0"==="a".replace(/./,"$0"),lC=!!/./[tC]&&""===/./[tC]("a","$0");VS("replace",(function(e,t,n){var r=lC?"$":"$0";return[function(e,n){var r=Fb(this),o=null==e?void 0:Ew(e,tC);return o?hw(o,e,r,n):hw(t,kE(r),e,n)},function(e,o){var i=dw(this),a=kE(e);if("string"==typeof o&&-1===aC(o,r)&&-1===aC(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Mb(o);s||(o=kE(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=eC(i,a);if(null===d)break;if(iC(f,d),!l)break;""===kE(d[0])&&(i.lastIndex=WS(a,Ex(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=kE((d=f[v])[0]),m=nC(rC(wx(d.index),a.length),0),b=[],w=1;w<d.length;w++)iC(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=oC([y],b,m,a);void 0!==x&&iC(E,x);var D=kE(zS(o,void 0,E))}else D=JS(y,a,m,b,x,o);m>=g&&(h+=uC(a,g,m)+D,g=m+y.length)}return h+uC(a,g)}]}),!!Kb((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!sC||lC);var cC=function(e,t){return(cC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function fC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}cC(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var dC=function(){return(dC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function pC(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function hC(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function gC(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var vC=0,yC=function(){this.id=""+vC++},mC=Yw.set,bC=Yw.getterFor("Array Iterator"),wC=JD(Array,"Array",(function(e,t){mC(this,{type:"Array Iterator",target:qx(e),index:0,kind:t})}),(function(){var e=bC(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");aD.Arguments=aD.Array,qE("keys"),qE("values"),qE("entries");var xC=function(e,t,n){for(var r in t)ex(e,r,t[r],n);return e},EC=bb.Array,DC=Math.max,SC=function(e,t,n){for(var r=Dx(e),o=Jx(t,r),i=Jx(void 0===n?r:n,r),a=EC(DC(i-o,0)),u=0;o<i;o++,u++)cD(a,u,e[o]);return a.length=u,a},CC=aE.f,AC="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],OC={f:function(e){return AC&&"Window"==rx(e)?function(e){try{return CC(e)}catch(e){return SC(AC)}}(e):CC(qx(e))}},kC=Kb((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),BC=Object.isExtensible,FC=Kb((function(){BC(1)}))||kC?function(e){return!!iw(e)&&(!kC||"ArrayBuffer"!=rx(e))&&(!BC||BC(e))}:BC,TC=!Kb((function(){return Object.isExtensible(Object.preventExtensions({}))})),_C=gb((function(e){var t=Bw.f,n=!1,r=Rb("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=aE.f,t=kb([].splice),o={};o[r]=1,e(o).length&&(aE.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},bE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:OC.f}))},fastKey:function(e,t){if(!iw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!jb(e,r)){if(!FC(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!jb(e,r)){if(!FC(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return TC&&n&&FC(e)&&!jb(e,r)&&i(e),e}};Hw[r]=!0})),PC=bb.TypeError,jC=function(e,t){this.stopped=e,this.result=t},NC=jC.prototype,IC=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=hx(t,c),g=function(e){return r&&oD(r,"normal",e),new jC(!0,e)},v=function(e){return f?(dw(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=dD(e)))throw PC(bw(e)+" is not iterable");if(lD(o)){for(i=0,a=Dx(e);a>i;i++)if((u=v(e[i]))&&gw(NC,u))return u;return new jC(!1)}r=hD(e,o)}for(s=r.next;!(l=hw(s,r)).done;){try{u=v(l.value)}catch(e){oD(r,"throw",e)}if("object"==typeof u&&u&&gw(NC,u))return u}return new jC(!1)},LC=bb.TypeError,RC=function(e,t){if(gw(t,e))return e;throw LC("Incorrect invocation")},MC=function(e,t,n){var r,o;return WD&&Mb(r=t.constructor)&&r!==n&&iw(o=r.prototype)&&o!==n.prototype&&WD(e,o),e},zC=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=bb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=kb(u[e]);ex(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!iw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!iw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!iw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(yE(e,!Mb(a)||!(o||u.forEach&&!Kb((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),_C.enable();else if(yE(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Kb((function(){f.has(1)})),h=wD((function(e){new a(e)})),g=!o&&Kb((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){RC(e,u);var n=MC(new a,e,s);return null!=t&&IC(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,bE({global:!0,forced:s!=a},l),zD(s,e),o||n.setStrong(s,e,r),s},HC=_C.getWeakData,$C=Yw.set,VC=Yw.getterFor,UC=Rx.find,WC=Rx.findIndex,GC=kb([].splice),qC=0,KC=function(e){return e.frozen||(e.frozen=new YC)},YC=function(){this.entries=[]},XC=function(e,t){return UC(e.entries,(function(e){return e[0]===t}))};YC.prototype={get:function(e){var t=XC(this,e);if(t)return t[1]},has:function(e){return!!XC(this,e)},set:function(e,t){var n=XC(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=WC(this.entries,(function(t){return t[0]===e}));return~t&&GC(this.entries,t,1),!!~t}};var ZC,JC={getConstructor:function(e,t,n,r){var o=e((function(e,o){RC(e,i),$C(e,{type:t,id:qC++,frozen:void 0}),null!=o&&IC(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=VC(t),u=function(e,t,n){var r=a(e),o=HC(dw(t),!0);return!0===o?KC(r).set(t,n):o[r.id]=n,e};return xC(i,{delete:function(e){var t=a(this);if(!iw(e))return!1;var n=HC(e);return!0===n?KC(t).delete(e):n&&jb(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!iw(e))return!1;var n=HC(e);return!0===n?KC(t).has(e):n&&jb(n,t.id)}}),xC(i,n?{get:function(e){var t=a(this);if(iw(e)){var n=HC(e);return!0===n?KC(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},QC=Yw.enforce,eA=!bb.ActiveXObject&&"ActiveXObject"in bb,tA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},nA=zC("WeakMap",tA,JC);if(Rw&&eA){ZC=JC.getConstructor(tA,"WeakMap",!0),_C.enable();var rA=nA.prototype,oA=kb(rA.delete),iA=kb(rA.has),aA=kb(rA.get),uA=kb(rA.set);xC(rA,{delete:function(e){if(iw(e)&&!FC(e)){var t=QC(this);return t.frozen||(t.frozen=new ZC),oA(this,e)||t.frozen.delete(e)}return oA(this,e)},has:function(e){if(iw(e)&&!FC(e)){var t=QC(this);return t.frozen||(t.frozen=new ZC),iA(this,e)||t.frozen.has(e)}return iA(this,e)},get:function(e){if(iw(e)&&!FC(e)){var t=QC(this);return t.frozen||(t.frozen=new ZC),iA(this,e)?aA(this,e):t.frozen.get(e)}return aA(this,e)},set:function(e,t){if(iw(e)&&!FC(e)){var n=QC(this);n.frozen||(n.frozen=new ZC),iA(this,e)?uA(this,e,t):n.frozen.set(e,t)}else uA(this,e,t);return this}})}var sA=tw("iterator"),lA=tw("toStringTag"),cA=wC.values,fA=function(e,t){if(e){if(e[sA]!==cA)try{Tw(e,sA,cA)}catch(t){e[sA]=cA}if(e[lA]||Tw(e,lA,t),lx[t])for(var n in wC)if(e[n]!==wC[n])try{Tw(e,n,wC[n])}catch(t){e[n]=wC[n]}}};for(var dA in lx)fA(bb[dA]&&bb[dA].prototype,dA);fA(dx,"DOMTokenList");var pA=new WeakMap,hA=new WeakMap,gA=new WeakMap,vA=new WeakMap,yA=new WeakMap,mA=new WeakMap,bA=new WeakMap,wA=new WeakMap,xA=new WeakMap,EA=new WeakMap,DA=new WeakMap,SA=new WeakMap,CA=new WeakMap,AA=new WeakMap,OA=new WeakMap,kA=new WeakMap,BA=new WeakMap,FA=new WeakMap,TA=new WeakMap,_A=new WeakMap,PA=new WeakMap,jA=new WeakMap,NA=new WeakMap,IA=new WeakMap,LA=new WeakMap,RA=Rx.find,MA=!0;"find"in[]&&Array(1).find((function(){MA=!1})),bE({target:"Array",proto:!0,forced:MA},{find:function(e){return RA(this,e,arguments.length>1?arguments[1]:void 0)}}),qE("find"),bE({global:!0},{globalThis:bb});const zA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Fp&&(gp.fn.css=Fp),Ip&&(gp.fn.append=Ip),vp&&(gp.fn.addClass=vp),yp&&(gp.fn.removeClass=yp),mp&&(gp.fn.hasClass=mp),Dp&&(gp.fn.on=Dp),qp&&(gp.fn.focus=qp),bp&&(gp.fn.attr=bp),wp&&(gp.fn.removeAttr=wp),kp&&(gp.fn.hide=kp),Bp&&(gp.fn.show=Bp),Op&&(gp.fn.offset=Op),Cp&&(gp.fn.width=Cp),Ap&&(gp.fn.height=Ap),Rp&&(gp.fn.parent=Rp),Mp&&(gp.fn.parents=Mp),Np&&(gp.fn.is=Np),xp&&(gp.fn.dataset=xp),Ep&&(gp.fn.val=Ep),jp&&(gp.fn.text=jp),Pp&&(gp.fn.html=Pp),Hp&&(gp.fn.children=Hp),$p&&(gp.fn.remove=$p),zp&&(gp.fn.find=zp),Tp&&(gp.fn.each=Tp),Vp&&(gp.fn.empty=Vp);var HA,$A,VA=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},UA=function(e){return WA(e)&&1===e.nodeType},WA=function(e){var t=VA(e);return!!t&&e instanceof t.Node},GA=function(e){var t=e&&e.anchorNode&&VA(e.anchorNode);return!!t&&e instanceof t.Selection},qA=function(e){return WA(e)&&3===e.nodeType},KA=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},YA=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(WA(r=i)&&8===r.nodeType||UA(i)&&0===i.childNodes.length||UA(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},XA=function(e,t,n){return hC(YA(e,t,n),1)[0]};function ZA(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||ZA(o,t)}}function JA(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==HA.ELEMENT_NODE?"":t.tagName.toLowerCase()}($A=HA||(HA={}))[$A.ELEMENT_NODE=1]="ELEMENT_NODE",$A[$A.TEXT_NODE=3]="TEXT_NODE",$A[$A.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",$A[$A.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",$A[$A.COMMENT_NODE=8]="COMMENT_NODE",$A[$A.DOCUMENT_NODE=9]="DOCUMENT_NODE",$A[$A.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",$A[$A.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var QA="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),eO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var tO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),nO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),rO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),oO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var iO=!rO&&!nO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,aO={getWindow:function(e){var t=PA.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=_A.get(t);return n||(n=new yC,_A.set(t,n)),n},setNewKey:function(e){var t=new yC;_A.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=OA.get(r);if(null==o){if(pf.isEditor(r))return n;break}var i=AA.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=aO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return OA.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=aO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[aO.findPath(e,t)[0]];return mf.get(e,n)},toDOMNode:function(e,t){var n;if(pf.isEditor(t))n=kA.get(e);else{var r=aO.findKey(e,t);n=FA.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=aO.toDOMNode(e,e);try{r=UA(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Ff.isBackward(t),i=aO.toDOMPoint(e,n),a=Ff.isCollapsed(t)?i:aO.toDOMPoint(e,r),u=aO.getWindow(e).document.createRange(),s=hC(o?a:i,2),l=s[0],c=s[1],f=hC(o?i:a,2),d=f[0],p=f[1],h=!!(UA(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(UA(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=hC(pf.node(e,t.path),1)[0],a=aO.toDOMNode(e,i);pf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=pC(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=UA(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?BA.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=aO.toSlateNode(e,t.target),u=aO.findPath(e,a);if(pf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=pf.point(e,u,{edge:l?"start":"end"}),f=l?pf.before(e,c):pf.after(e,c);if(f)return pf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return aO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((GA(t)?t.anchorNode:t.startContainer)&&(GA(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=oO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=aO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:aO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Ff.isExpanded(d)&&Ff.isForward(d)&&UA(i)&&pf.void(e,{at:d.focus,mode:"highest"})&&(d=pf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=hC(o?t:function(e){var t,n=hC(e,2),r=n[0],o=n[1];if(UA(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=hC(YA(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;UA(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=XA(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=aO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();gC(gC([],hC(ep(v.querySelectorAll("[data-slate-zero-width]")))),hC(ep(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||eO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=aO.toSlateNode(e,c);return{path:aO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return pf.hasPath(e,n.path)&&pf.hasPath(e,r.path)},getNodeType:function(e){return uf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return mf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=pf.nodes(e,{universal:!0});try{for(var i=pC(o),a=i.next();!a.done;a=i.next()){var u=hC(a.value,1)[0];uf.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=hC(pf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=hC(pf.nodes(e,{match:function(e){return Lf.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=hC(pf.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&hC(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(pf.isEnd(e,n.anchor,t)||pf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=pA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return vA.get(e)||null},getHoverbar:function(e){return mA.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=aO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=pC(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=pf.nodes(e,{match:function(t){return!(!uf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=pC(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];ZA(aO.toDOMNode(e,h),(function(e,t){var n=gp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=pf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=pC(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Ff.isExpanded(t))return!1;var n=aO.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=pf.node(e,t);if(null==n)return!1;var r=hC(n,1)[0].children;return 1===r.length&&""===r[0].text}},uO=1,sO={},lO={},cO=Rx.filter,fO=pS("filter");bE({target:"Array",proto:!0,forced:!fO},{filter:function(e){return cO(this,e,arguments.length>1?arguments[1]:void 0)}});var dO="\t\n\v\f\r                 \u2028\u2029\ufeff",pO=kb("".replace),hO="["+dO+"]",gO=RegExp("^"+hO+hO+"*"),vO=RegExp(hO+hO+"*$"),yO=function(e){return function(t){var n=kE(Fb(t));return 1&e&&(n=pO(n,gO,"")),2&e&&(n=pO(n,vO,"")),n}},mO={start:yO(1),end:yO(2),trim:yO(3)},bO=Qw.PROPER,wO=mO.trim;bE({target:"String",proto:!0,forced:function(e){return Kb((function(){return!!dO[e]()||"​…᠎"!=="​…᠎"[e]()||bO&&dO[e].name!==e}))}("trim")},{trim:function(){return wO(this)}});var xO=[],EO={};function DO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var SO,CO,AO,OO,kO=bb.Promise,BO=tw("species"),FO=function(e){var t=Hb(e),n=Bw.f;ow&&t&&!t[BO]&&n(t,BO,{configurable:!0,get:function(){return this}})},TO=bb.TypeError,_O=tw("species"),PO=function(e,t){var n,r=dw(e).constructor;return void 0===r||null==(n=dw(r)[_O])?t:function(e){if(_x(e))return e;throw TO(bw(e)+" is not a constructor")}(n)},jO=kb([].slice),NO=/(?:ipad|iphone|ipod).*applewebkit/i.test($b),IO="process"==rx(bb.process),LO=bb.setImmediate,RO=bb.clearImmediate,MO=bb.process,zO=bb.Dispatch,HO=bb.Function,$O=bb.MessageChannel,VO=bb.String,UO=0,WO={};try{SO=bb.location}catch($A){}var GO=function(e){if(jb(WO,e)){var t=WO[e];delete WO[e],t()}},qO=function(e){return function(){GO(e)}},KO=function(e){GO(e.data)},YO=function(e){bb.postMessage(VO(e),SO.protocol+"//"+SO.host)};LO&&RO||(LO=function(e){var t=jO(arguments,1);return WO[++UO]=function(){zS(Mb(e)?e:HO(e),void 0,t)},CO(UO),UO},RO=function(e){delete WO[e]},IO?CO=function(e){MO.nextTick(qO(e))}:zO&&zO.now?CO=function(e){zO.now(qO(e))}:$O&&!NO?(OO=(AO=new $O).port2,AO.port1.onmessage=KO,CO=hx(OO.postMessage,OO)):bb.addEventListener&&Mb(bb.postMessage)&&!bb.importScripts&&SO&&"file:"!==SO.protocol&&!Kb(YO)?(CO=YO,bb.addEventListener("message",KO,!1)):CO="onreadystatechange"in sw("script")?function(e){RE.appendChild(sw("script")).onreadystatechange=function(){RE.removeChild(this),GO(e)}}:function(e){setTimeout(qO(e),0)});var XO,ZO,JO,QO,ek,tk,nk,rk,ok={set:LO,clear:RO},ik=/ipad|iphone|ipod/i.test($b)&&void 0!==bb.Pebble,ak=/web0s(?!.*chrome)/i.test($b),uk=Yx.f,sk=ok.set,lk=bb.MutationObserver||bb.WebKitMutationObserver,ck=bb.document,fk=bb.process,dk=bb.Promise,pk=uk(bb,"queueMicrotask"),hk=pk&&pk.value;hk||(XO=function(){var e,t;for(IO&&(e=fk.domain)&&e.exit();ZO;){t=ZO.fn,ZO=ZO.next;try{t()}catch(e){throw ZO?QO():JO=void 0,e}}JO=void 0,e&&e.enter()},NO||IO||ak||!lk||!ck?!ik&&dk&&dk.resolve?((nk=dk.resolve(void 0)).constructor=dk,rk=hx(nk.then,nk),QO=function(){rk(XO)}):IO?QO=function(){fk.nextTick(XO)}:(sk=hx(sk,bb),QO=function(){sk(XO)}):(ek=!0,tk=ck.createTextNode(""),new lk(XO).observe(tk,{characterData:!0}),QO=function(){tk.data=ek=!ek}));var gk,vk,yk,mk,bk=hk||function(e){var t={fn:e,next:void 0};JO&&(JO.next=t),ZO||(ZO=t,QO()),JO=t},wk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=xw(t),this.reject=xw(n)},xk={f:function(e){return new wk(e)}},Ek=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Dk="object"==typeof window,Sk=ok.set,Ck=tw("species"),Ak="Promise",Ok=Yw.getterFor(Ak),kk=Yw.set,Bk=Yw.getterFor(Ak),Fk=kO&&kO.prototype,Tk=kO,_k=Fk,Pk=bb.TypeError,jk=bb.document,Nk=bb.process,Ik=xk.f,Lk=Ik,Rk=!!(jk&&jk.createEvent&&bb.dispatchEvent),Mk=Mb(bb.PromiseRejectionEvent),zk=!1,Hk=yE(Ak,(function(){var e=Iw(Tk),t=e!==String(Tk);if(!t&&66===qb)return!0;if(qb>=51&&/native code/.test(e))return!1;var n=new Tk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Ck]=r,!(zk=n.then((function(){}))instanceof r)||!t&&Dk&&!Mk})),$k=Hk||!wD((function(e){Tk.all(e).catch((function(){}))})),Vk=function(e){var t;return!(!iw(e)||!Mb(t=e.then))&&t},Uk=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;bk((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Kk(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Pk("Promise-chain cycle")):(u=Vk(a))?hw(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Gk(e)}))}},Wk=function(e,t,n){var r,o;Rk?((r=jk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),bb.dispatchEvent(r)):r={promise:t,reason:n},!Mk&&(o=bb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=bb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Gk=function(e){hw(Sk,bb,(function(){var t,n=e.facade,r=e.value;if(qk(e)&&(t=Ek((function(){IO?Nk.emit("unhandledRejection",r,n):Wk("unhandledrejection",n,r)})),e.rejection=IO||qk(e)?2:1,t.error))throw t.value}))},qk=function(e){return 1!==e.rejection&&!e.parent},Kk=function(e){hw(Sk,bb,(function(){var t=e.facade;IO?Nk.emit("rejectionHandled",t):Wk("rejectionhandled",t,e.value)}))},Yk=function(e,t,n){return function(r){e(t,r,n)}},Xk=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Uk(e,!0))},Zk=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Pk("Promise can't be resolved itself");var r=Vk(t);r?bk((function(){var n={done:!1};try{hw(r,t,Yk(Zk,n,e),Yk(Xk,n,e))}catch(t){Xk(n,t,e)}})):(e.value=t,e.state=1,Uk(e,!1))}catch(t){Xk({done:!1},t,e)}}};if(Hk&&(_k=(Tk=function(e){RC(this,_k),xw(e),hw(gk,this);var t=Ok(this);try{e(Yk(Zk,t),Yk(Xk,t))}catch(e){Xk(t,e)}}).prototype,(gk=function(e){kk(this,{type:Ak,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=xC(_k,{then:function(e,t){var n=Bk(this),r=n.reactions,o=Ik(PO(this,Tk));return o.ok=!Mb(e)||e,o.fail=Mb(t)&&t,o.domain=IO?Nk.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Uk(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),vk=function(){var e=new gk,t=Ok(e);this.promise=e,this.resolve=Yk(Zk,t),this.reject=Yk(Xk,t)},xk.f=Ik=function(e){return e===Tk||e===yk?new vk(e):Lk(e)},Mb(kO)&&Fk!==Object.prototype)){mk=Fk.then,zk||(ex(Fk,"then",(function(e,t){var n=this;return new Tk((function(e,t){hw(mk,n,e,t)})).then(e,t)}),{unsafe:!0}),ex(Fk,"catch",_k.catch,{unsafe:!0}));try{delete Fk.constructor}catch($A){}WD&&WD(Fk,_k)}bE({global:!0,wrap:!0,forced:Hk},{Promise:Tk}),zD(Tk,Ak,!1),FO(Ak),yk=Hb(Ak),bE({target:Ak,stat:!0,forced:Hk},{reject:function(e){var t=Ik(this);return hw(t.reject,void 0,e),t.promise}}),bE({target:Ak,stat:!0,forced:Hk},{resolve:function(e){return function(e,t){if(dw(e),iw(t)&&t.constructor===e)return t;var n=xk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),bE({target:Ak,stat:!0,forced:$k},{all:function(e){var t=this,n=Ik(t),r=n.resolve,o=n.reject,i=Ek((function(){var n=xw(t.resolve),i=[],a=0,u=1;IC(e,(function(e){var s=a++,l=!1;u++,hw(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Ik(t),r=n.reject,o=Ek((function(){var o=xw(t.resolve);IC(e,(function(e){hw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Jk=bS.UNSUPPORTED_Y,Qk=Math.min,eB=[].push,tB=kb(/./.exec),nB=kb(eB),rB=kb("".slice);function oB(e){Promise.resolve().then(e)}function iB(e){return"w-e-element-"+e}VS("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=kE(Fb(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!XE(e))return hw(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=hw(NS,f,r))&&!((a=f.lastIndex)>c&&(nB(s,rB(r,c,i.index)),i.length>1&&i.index<r.length&&zS(eB,s,SC(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&tB(f,"")||nB(s,""):nB(s,rB(r,c)),s.length>o?SC(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:hw(t,this,e,n)}:t,[function(t,n){var o=Fb(this),i=null==t?void 0:Ew(t,e);return i?hw(i,t,o,n):hw(r,kE(o),t,n)},function(e,o){var i=dw(this),a=kE(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=PO(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Jk?"g":"y"),f=new s(Jk?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===eC(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Jk?0:h;var v,y=eC(f,Jk?rB(a,h):a);if(null===y||(v=Qk(Ex(f.lastIndex+(Jk?h:0)),a.length))===p)h=WS(a,h,l);else{if(nB(g,rB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(nB(g,y[m]),g.length===d)return g;h=p=v}}return nB(g,rB(a,p)),g}]}),!!Kb((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Jk);var aB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},uB=function(e,t,n){var r=aO.toDOMRange(e,t).getBoundingClientRect(),o=aO.toDOMRange(e,n).getBoundingClientRect();return aB(r,o)&&aB(o,r)},sB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],lB=[],cB=[],fB={},dB=Bw.f,pB=aE.f,hB=Yw.enforce,gB=tw("match"),vB=bb.RegExp,yB=vB.prototype,mB=bb.SyntaxError,bB=kb(BE),wB=kb(yB.exec),xB=kb("".charAt),EB=kb("".replace),DB=kb("".indexOf),SB=kb("".slice),CB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,AB=/a/g,OB=/a/g,kB=new vB(AB)!==AB,BB=bS.MISSED_STICKY,FB=bS.UNSUPPORTED_Y,TB=ow&&(!kB||BB||xS||DS||Kb((function(){return OB[gB]=!1,vB(AB)!=AB||vB(OB)==OB||"/a/i"!=vB(AB,"i")})));if(yE("RegExp",TB)){for(var _B=function(e,t){var n,r,o,i,a,u,s=gw(yB,this),l=XE(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===_B)return e;if((l||gw(yB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:bB(d))),e=void 0===e?"":kE(e),t=void 0===t?"":kE(t),d=e,xS&&"dotAll"in AB&&(r=!!t&&DB(t,"s")>-1)&&(t=EB(t,/s/g,"")),n=t,BB&&"sticky"in AB&&(o=!!t&&DB(t,"y")>-1)&&FB&&(t=EB(t,/y/g,"")),DS&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=xB(e,r)))t+=xB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:wB(CB,SB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||jb(a,c))throw new mB("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=MC(vB(e,t),s?this:yB,_B),(r||o||f.length)&&(u=hB(a),r&&(u.dotAll=!0,u.raw=_B(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=xB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+xB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Tw(a,"source",""===d?"(?:)":d)}catch(e){}return a},PB=function(e){e in _B||dB(_B,e,{configurable:!0,get:function(){return vB[e]},set:function(t){vB[e]=t}})},jB=pB(vB),NB=0;jB.length>NB;)PB(jB[NB++]);yB.constructor=_B,_B.prototype=yB,ex(bb,"RegExp",_B)}FO("RegExp");var IB=new RegExp(String.fromCharCode(160),"g");function LB(e){return e.replace(IB," ")}function RB(e,t){var n=e.length;if(n){var r=e[n-1];if(Lf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function MB(e,t,n){return{type:"paragraph",children:[{text:gp(e).text().replace(/\s+/gm," ")}]}}function zB(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==HA.ELEMENT_NODE)if(e.nodeType!==HA.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=LB(r),RB(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(RB(n,"\n")||n.push({text:"\n"}));var o=$B(gp(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in fB)if(e[0].matches(t))return fB[t];return MB}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){pf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),cB.forEach((function(n){r=n(e[0],r,t)})))})),r}function HB(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=LB(n=function(e){return e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n))};return cB.forEach((function(n){r=n(e[0],r,t)})),r}function $B(e,t){lB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=gp(r(e[0])))}));var n=JA(e);return"span"===n?e.attr("data-w-e-type")?zB(e,t):HB(e,t):"code"===n?"pre"===JA(e.parent())?zB(e,t):HB(e,t):sB.includes(n)?HB(e,t):zB(e,t)}function VB(e,t,n){var r=gp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function UB(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=gp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=$B(gp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var WB=Bw.f,GB=_C.fastKey,qB=Yw.set,KB=Yw.getterFor;zC("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,o){RC(e,i),qB(e,{type:t,index:UE(null),first:void 0,last:void 0,size:0}),ow||(e.size=0),null!=o&&IC(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=KB(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=GB(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),ow?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=GB(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return xC(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,ow?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),ow?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=hx(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),xC(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),ow&&WB(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=KB(t),i=KB(r);JD(e,t,(function(e,t){qB(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),FO(t)}});var YB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function XB(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):ed.insertNodes(e,t,{mode:"highest"})}var ZB=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=hC(Ff.edges(n),2),o=r[0],i=r[1],a=pf.void(t,{at:o.path}),u=pf.void(t,{at:i.path});if(!Ff.isCollapsed(n)||a){var s=aO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=hC(u,1)[0],d=s.cloneRange(),p=aO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),qA(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",function e(t){var n,r,o="";if(qA(t)&&t.nodeValue)return t.nodeValue;if(UA(t)){try{for(var i=pC(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o}(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=pC(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&ed.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},JB=function(e){return null!=e},QB={object:!0,function:!0,undefined:!0},eF=/^\s*class[\s{/}]/,tF=Function.prototype.toString,nF=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!JB(e)&&hasOwnProperty.call(QB,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!eF.test(tF.call(e))},rF=function(e){return null!=e},oF=Object.keys,iF=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return oF(rF(e)?Object(e):e)},aF=function(e){if(!rF(e))throw new TypeError("Cannot use null or undefined");return e},uF=Math.max,sF=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=uF(arguments.length,2);for(e=Object(aF(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)iF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},lF=Array.prototype.forEach,cF=Object.create,fF=function(e,t){var n;for(n in e)t[n]=e[n]},dF=function(e){var t=cF(null);return lF.call(arguments,(function(e){rF(e)&&fF(Object(e),t)})),t},pF="razdwatrzy",hF=String.prototype.indexOf,gF="function"==typeof pF.contains&&!0===pF.contains("dwa")&&!1===pF.contains("foo")?String.prototype.contains:function(e){return hF.call(this,e,arguments[1])>-1},vF=gb((function(e){(e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],JB(e)?(n=gF.call(e,"c"),r=gF.call(e,"e"),o=gF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?sF(dF(i),a):a}).gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],JB(t)?nF(t)?JB(n)?nF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,JB(e)?(r=gF.call(e,"c"),o=gF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?sF(dF(i),a):a}})),yF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},mF=gb((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return yF(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(yF(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return yF(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o,emit:i},u={on:vF(n),once:vF(r),off:vF(o),emit:vF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function bF(e){var t=IA.get(e);return null==t&&(t=mF(),IA.set(e,t)),t}var wF=new WeakMap;function xF(e,t){var n=wF.get(e);null==n&&(n=new Set,wF.set(e,n)),n.add(t)}function EF(e){return wF.get(e)||new Set}function DF(e){wF.set(e,new Set)}function SF(e){var t=aO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function CF(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=SF(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=aO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function AF(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=uf.isElement(t)&&e.isVoid(t),i=uf.isElement(t)&&e.isInline(t),a=TA.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(zA.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=SF(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},x=s-v,E=l-y;if("bar"===n)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+c+5+"px",w;if("modal"===n)return o?i?E>(m-f)/2?w.right=m-E+5+"px":w.left=E+f+5+"px":w.left="20px":w.left=E+"px",o?((g=x)<0&&(g=0),w.top=g+"px"):x>(b-c)/2?w.bottom=b-x+5+"px":((g=x+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function OF(e,t){oB((function(){var n=SF(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(g.indexOf("right")>=0&&c<0){var E=t.css("right"),D=parseInt(E.toString())-Math.abs(c);t.css("right",D+"px")}}}))}var kF=pS("slice"),BF=tw("species"),FF=bb.Array,TF=Math.max;bE({target:"Array",proto:!0,forced:!kF},{slice:function(e,t){var n,r,o,i=qx(this),a=Dx(i),u=Jx(e,a),s=Jx(void 0===t?a:t,a);if(Sx(i)&&(n=i.constructor,(_x(n)&&(n===FF||Sx(n.prototype))||iw(n)&&null===(n=n[BF]))&&(n=void 0),n===FF||void 0===n))return jO(i,u,s);for(r=new(void 0===n?FF:n)(TF(s-u,0)),o=0;u<s;u++,o++)u in i&&cD(r,o,i[u]);return r.length=o,r}});var _F=Yx.f,PF=kb("".startsWith),jF=kb("".slice),NF=Math.min,IF=eD("startsWith"),LF=!IF&&!!function(){var e=_F(String.prototype,"startsWith");return e&&!e.writable}();bE({target:"String",proto:!0,forced:!LF&&!IF},{startsWith:function(e){var t=kE(Fb(this));JE(e);var n=Ex(NF(arguments.length>1?arguments[1]:void 0,t.length)),r=kE(e);return PF?PF(t,r,n):jF(t,n,n+r.length)===r}});var RF=Object.assign,MF=Object.defineProperty,zF=kb([].concat),HF=!RF||Kb((function(){if(ow&&1!==RF({b:1},RF(MF({},"a",{enumerable:!0,get:function(){MF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=RF({},e)[n]||wE(RF({},t)).join("")!=r}))?function(e,t){for(var n=_b(e),r=arguments.length,o=1,i=uE.f,a=Gx.f;r>o;)for(var u,s=yx(arguments[o++]),l=i?zF(wE(s),i(s)):wE(s),c=l.length,f=0;c>f;)u=l[f++],ow&&!hw(a,s,u)||(n[u]=s[u]);return n}:RF;bE({target:"Object",stat:!0,forced:Object.assign!==HF},{assign:HF});var $F=["props","attrs","style","dataset","on","hook"];var VF=[],UF={};function WF(e,t,n){return tg(n.isInline(e)?"span":"div",null,t)}function GF(e,t){return void 0===t&&(t=!1),tg("span",{"data-slate-string":!0},t?e+"\n":e)}function qF(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),tg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?tg("br",null):null)}function KF(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Lh("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=function e(t,n,r,o){return AA.set(t,n),OA.set(t,r),uf.isElement(t)?function(t,n){var r,o=aO.findKey(n,t),i=n.isInline(t),a=pf.isVoid(n,t),u=iB(o.id),s={id:u,key:o.id,"data-slate-node":"element","data-slate-inline":i},l=t.type,c=t.children,f=void 0===c?[]:c,d=function(e){return UF[e]||WF}(l);r=a?null:f.map((function(r,o){return e(r,o,t,n)}));var p=d(t,r,n);if(a){s["data-slate-void"]=!0;var h=i?"span":"div",g=hC(mf.texts(t),1),v=hC(g[0],1)[0],y=tg(h,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},e(v,0,t,n));p=tg(h,{style:{position:"relative"}},p,y),AA.set(v,0),OA.set(v,t)}return null==p.data&&(p.data={}),Object.assign(p.data,s),a||i||(p=function(e,t){var n=t;return VF.forEach((function(r){n=r(e,t)})),n}(t,p)),oB((function(){var e=KA(u);null!=e&&(FA.set(o,e),TA.set(t,e),BA.set(e,t))})),p}(t,o):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=aO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=aO.findPath(n,e),a=o([e,i]),u=Lf.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=aO.findPath(o,n),u=Ef.parent(a);if(pf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?qF(mf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==pf.string(o,u)?""===i?qF():t&&"\n"===i.slice(-1)?GF(i,!0):GF(i):qF(0,!0)}(r,o===u.length-1,e,t,n);return tg("span",{"data-slate-leaf":!0},i=function(e,t){var n=t;return VF.forEach((function(t){n=t(e,n)})),n}(r,i))})),l=function(e){return"w-e-text-"+e}(r.id),c=tg("span",{"data-slate-node":"text",id:l,key:r.id},s);return oB((function(){var t=KA(l);null!=t&&(FA.set(r,t),TA.set(e,t),BA.set(t,e))})),c}(t,r,o)}(e,n,t,t);return function e(t){var n=t.data,r=void 0===n?{}:n,o=t.children,i=void 0===o?[]:o;Object.keys(r).forEach((function(e){var n,o,i=r[e];if("key"!==e){if(!$F.includes(e)){if(e.startsWith("data-")){var a=e.slice(5);return a=Hg(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(t,((n={})[a]=i,n)),void delete r[e]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(t,(o={},o[e]=i,o)),delete r[e]}}else t.key=i})),i.length>0&&i.forEach((function(t){"string"!=typeof t&&e(t)}))}(r),r}));var c=DA.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return gp('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Ih([Hh,Yh,eg,Uh,qh,Mh]))(n,s),DA.set(e,!1),SA.set(e,p)}else{var d=CA.get(e),p=SA.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=KA(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=VA(n);h&&PA.set(t,h)}kA.set(t,n),TA.set(t,n),BA.set(n,t),CA.set(e,s)}}function YF(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function XF(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ZF(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return XF(n.overflowY,t)||XF(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function JF(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function QF(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!YF(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;YF(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&ZF(f)&&!ZF(document.documentElement)||null!=f&&ZF(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,x=v.bottom,E=v.left,D="start"===o||"nearest"===o?b:"end"===o?x:b+y/2,S="center"===i?E+m/2:"end"===i?w:E,C=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&E>=0&&x<=p&&w<=d&&b>=T&&x<=P&&E>=j&&w<=_)return C;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,H=0,$="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?D:"end"===o?D-p:"nearest"===o?JF(g,g+p,p,L,M,g+D,g+D+y,y):D-p/2,H="start"===i?S:"center"===i?S-d/2:"end"===i?S-d:JF(h,h+d,d,I,R,h+S,h+S+m,m),z=Math.max(0,z+g),H=Math.max(0,H+h);else{z="start"===o?D-T-L:"end"===o?D-P+M+V:"nearest"===o?JF(T,P,B,L,M+V,D,D+y,y):D-(T+B/2)+V/2,H="start"===i?S-j-I:"center"===i?S-(j+F/2)+$/2:"end"===i?S-_+R+$:JF(j,_,F,I,R+$,S,S+m,m);var U=O.scrollLeft,W=O.scrollTop;D+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),S+=U-(H=Math.max(0,Math.min(U+H,O.scrollWidth-F+$)))}C.push({el:O,top:z,left:H})}return C}function eT(e){return e===Object(e)&&0!==Object.keys(e).length}function tT(e,t){return WA(t)&&aO.hasDOMNode(e,t,{editable:!0})}function nT(e,t){if(e.getConfig().readOnly)return!1;var n=rT(e,t)&&aO.toSlateNode(e,t);return pf.isVoid(e,n)}function rT(e,t){return WA(t)&&aO.hasDOMNode(e,t)}function oT(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=aO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=kA.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=aO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Ff.equals(l,r)){var c=!0;if(Ff.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||aO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&aO.toDOMRange(t,r);if(g){Ff.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(eT(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:QF(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:eT(e)?e:{block:"start",inline:"nearest"}}(t);!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(QF(e,r),r.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&eO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=aO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var iT=new WeakMap,aT=new WeakMap,uT={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},sT={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},lT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},cT=function(e){var t=uT[e],n=sT[e],r=lT[e],o=t&&Zg(t),i=n&&Zg(n),a=r&&Zg(r);return function(e){return!(!o||!o(e))||!!(QA&&i&&i(e))||!(QA||!a||!a(e))}},fT={isBold:cT("bold"),isCompose:cT("compose"),isMoveBackward:cT("moveBackward"),isMoveForward:cT("moveForward"),isDeleteBackward:cT("deleteBackward"),isDeleteForward:cT("deleteForward"),isDeleteLineBackward:cT("deleteLineBackward"),isDeleteLineForward:cT("deleteLineForward"),isDeleteWordBackward:cT("deleteWordBackward"),isDeleteWordForward:cT("deleteWordForward"),isExtendBackward:cT("extendBackward"),isExtendForward:cT("extendForward"),isExtendLineBackward:cT("extendLineBackward"),isExtendLineForward:cT("extendLineForward"),isItalic:cT("italic"),isMoveLineBackward:cT("moveLineBackward"),isMoveLineForward:cT("moveLineForward"),isMoveWordBackward:cT("moveWordBackward"),isMoveWordForward:cT("moveWordForward"),isRedo:cT("redo"),isSplitBlock:cT("splitBlock"),isTransposeCharacter:cT("transposeCharacter"),isUndo:cT("undo"),isTab:cT("tab"),isSelectAll:cT("selectAll")};function dT(e){e.preventDefault()}var pT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(iO&&!o&&tT(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=hC(r.getTargetRanges(),1)[0];if(s){var l=aO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Ff.equals(i,l)||ed.select(n,l)}}if(i&&Ff.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";pf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":pf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":pf.deleteForward(n);break;case"deleteContentBackward":pf.deleteBackward(n);break;case"deleteEntireSoftLine":pf.deleteBackward(n,{unit:"line"}),pf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":pf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":pf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":pf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":pf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":pf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":pf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":pf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!LA.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&pf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&tT(n,r.target)){var a=aO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===aO.toDOMNode(n,n)||UA(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&WA(u)&&aO.hasDOMNode(n,u)){var s=aO.toSlateNode(n,u);if(uf.isElement(s)&&!n.isVoid(s))return}if(tO){var l=a.getSelection();null==l||l.removeAllRanges()}jA.delete(n)}}}},focus:function(e,t,n){var r=aO.toDOMNode(n,n),o=aO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,eO&&e.target!==r?r.focus():jA.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&rT(n,e.target)&&WA(e.target)){var r=aO.toSlateNode(n,e.target),o=aO.findPath(n,r);if(pf.hasPath(n,o)&&mf.get(n,o)===r){var i=pf.start(n,o),a=pf.end(n,o),u=pf.void(n,{at:i}),s=pf.void(n,{at:a});if(u&&s&&Ef.equals(u[1],s[1])){var l=pf.range(n,i);ed.select(n,l)}}}},compositionstart:function(e,t,n){if(tT(n,e.target)){var r=n.selection;if(r&&Ff.isExpanded(r)&&(pf.deleteFragment(n),Promise.resolve().then((function(){oT(t,n,!0)}))),r&&Ff.isCollapsed(r)){var o=aO.toDOMRange(n,r).startContainer,i=o.textContent||"";iT.set(n,i),aT.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(tT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(oO||eO)&&aO.cleanExposedTexNodeInSelectionBlock(n);for(var i=Ff.isBackward(o)?o.focus:o.anchor,a=hC(pf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=hC(pf.node(n,i.path.slice(0,u+1)),1)[0];if(uf.isElement(s)&&((tO||eO)&&"link"===s.type||"code"===s.type)){aO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=aO.getLeftLengthOfMaxLength(n);c<l.length?(aO.toDOMRange(n,o).startContainer.textContent=iT.get(n)||"",c>0&&pf.insertText(n,l.slice(0,c)),t.changeViewState()):pf.insertText(n,l)}else pf.insertText(n,l);tO||setTimeout((function(){var e=n.selection;if(null!=e){var t=aT.get(n);null!=t&&aO.toDOMRange(n,e).startContainer!==t&&(t.textContent=iT.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){tT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&tT(n,r.target)){if(function(e,t){var n=vA.get(e),r=n&&n.getMenus(),o=mA.get(e),i=o&&o.getMenus(),a=dC(dC({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Xg(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),fT.isTab(r))return dT(r),void n.handleTab();if(fT.isRedo(r))return dT(r),void("function"==typeof n.redo&&n.redo());if(fT.isUndo(r))return dT(r),void("function"==typeof n.undo&&n.undo());if(fT.isMoveLineBackward(r))return dT(r),void ed.move(n,{unit:"line",reverse:!0});if(fT.isMoveLineForward(r))return dT(r),void ed.move(n,{unit:"line"});if(fT.isExtendLineBackward(r))return dT(r),void ed.move(n,{unit:"line",edge:"focus",reverse:!0});if(fT.isExtendLineForward(r))return dT(r),void ed.move(n,{unit:"line",edge:"focus"});if(fT.isMoveBackward(r))return dT(r),void(o&&Ff.isCollapsed(o)?ed.move(n,{reverse:!0}):ed.collapse(n,{edge:"start"}));if(fT.isMoveForward(r))return dT(r),void(o&&Ff.isCollapsed(o)?ed.move(n):ed.collapse(n,{edge:"end"}));if(fT.isMoveWordBackward(r))return dT(r),o&&Ff.isExpanded(o)&&ed.collapse(n,{edge:"focus"}),void ed.move(n,{unit:"word",reverse:!0});if(fT.isMoveWordForward(r))return dT(r),o&&Ff.isExpanded(o)&&ed.collapse(n,{edge:"focus"}),void ed.move(n,{unit:"word"});if(fT.isSelectAll(r))return dT(r),void n.selectAll();if(iO){if((oO||tO)&&o&&(fT.isDeleteBackward(r)||fT.isDeleteForward(r))&&Ff.isCollapsed(o)){var i=mf.parent(n,o.anchor.path);if(uf.isElement(i)&&pf.isVoid(n,i)&&pf.isInline(n,i))return r.preventDefault(),void ed.delete(n,{unit:"block"})}}else{if(fT.isBold(r)||fT.isItalic(r)||fT.isTransposeCharacter(r))return void dT(r);if(fT.isSplitBlock(r))return dT(r),void pf.insertBreak(n);if(fT.isDeleteBackward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"backward"}):pf.deleteBackward(n));if(fT.isDeleteForward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"forward"}):pf.deleteForward(n));if(fT.isDeleteLineBackward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"backward"}):pf.deleteBackward(n,{unit:"line"}));if(fT.isDeleteLineForward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"forward"}):pf.deleteForward(n,{unit:"line"}));if(fT.isDeleteWordBackward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"backward"}):pf.deleteBackward(n,{unit:"word"}));if(fT.isDeleteWordForward(r))return dT(r),void(o&&Ff.isExpanded(o)?pf.deleteFragment(n,{direction:"forward"}):pf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!iO&&!n.getConfig().readOnly&&tT(n,e.target)){e.preventDefault();var r=e.key;pf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(tT(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&tT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Ff.isExpanded(o))pf.deleteFragment(n);else{var a=mf.parent(n,o.anchor.path);pf.isVoid(n,a)&&ed.delete(n)}}},paste:function(e,t,n){LA.set(n,!0);var r=e;if(!n.getConfig().readOnly&&tT(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void LA.set(n,!1);if(!iO||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(rT(n,e.target)){var r=aO.toSlateNode(n,e.target);pf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(rT(n,r.target)&&!n.getConfig().readOnly){var o=aO.toSlateNode(n,r.target),i=aO.findPath(n,o);if(pf.isVoid(n,o)||pf.void(n,{at:i,voids:!0})){var a=pf.range(n,i);ed.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&rT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&rT(n,r.target)&&null!=o&&!(iO&&tO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=aO.findEventRange(n,r);ed.select(n,a),t.isDraggingInternally&&(i&&ed.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},hT=1,gT=function(){function e(e){var t=this;this.id=hT++,this.$textArea=null,this.$progressBar=gp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=gp('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Ch((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=aO.findDocumentOrShadowRoot(t),a=i.activeElement,u=aO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,jA.set(t,!0)):jA.delete(t),!s)return ed.deselect(t);var l=s.anchorNode,c=s.focusNode,f=tT(t,l)||nT(t,l),d=tT(t,c)||nT(t,c);if(f&&d){var p=aO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});ed.select(t,p)}else ed.deselect(t)}}(t,e)}),100);var n=gp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=gp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=gp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,oB((function(){var e=t.editorInstance,n=aO.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=hA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(lh(pT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Ch((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-aO.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;KF(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=gp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),oB((function(){oT(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function vT(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&vT(t)}function yT(){return gp('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function mT(){return gp('<div class="w-e-bar-divider"></div>')}function bT(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=QA?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}VS("match",(function(e,t,n){return[function(t){var n=Fb(this),r=null==t?void 0:Ew(t,e);return r?hw(r,t,n):new RegExp(t)[e](kE(n))},function(e){var r=dw(this),o=kE(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return eC(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=eC(r,o));){var c=kE(u[0]);s[l]=c,""===c&&(r.lastIndex=WS(o,Ex(r.lastIndex),a)),l++}return 0===l?null:s}]}));var wT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=gp('<div class="w-e-bar-item"></div>'),this.$button=gp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=gp(c);vT(d),f.append(d)}else f.text(a);bT(f,c,a,s,n),n&&c&&f.append(gp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),oB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),PT(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=PT(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=PT(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=PT(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),xT=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return fC(t,e),t.prototype.onButtonClick=function(){},t}(wT),ET=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=wA.get(e);null==t&&(t=new Set,wA.set(e,t)),t.add(this),xA.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=xA.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=xA.get(this);e&&e.emit("modalOrPanelHide")}},e}(),DT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=gp('<div class="w-e-drop-panel"></div>'),n}return fC(t,e),t.prototype.genSelfElem=function(){return null},t}(ET),ST=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=yT();o.$button.append(i)}return o}return fC(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=PT(this);if(null==this.dropPanel){var n=new DT(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(wT),CT=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=gp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return fC(t,e),t.prototype.genSelfElem=function(){var e=this,t=gp('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=xA.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(ET);function AT(e,t,n){var r=gp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=gp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function OT(e,t){var n=gp('<div class="button-container"></div>'),r=gp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var kT=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=gp("body"),o.modal=null,o.menu=n,o}return fC(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=PT(this),t=this.menu.getModalPositionNode(e);return uf.isElement(t)?AF(e,t,"modal"):CF(e)},t.prototype.handleModal=function(){var e=PT(this),t=this.menu;if(null==this.modal){var n=new CT(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=PT(this),r=this.menu;if(null!=r.getModalContentElem){var o=aO.getTextarea(n),i=aO.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||OF(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(wT),BT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=gp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return fC(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=gp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=gp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=gp('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(gp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(ET),FT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=gp('<div class="w-e-bar-item"></div>'),this.$button=gp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),bT(f,s,i,c,n),this.$elem.append(f),this.menu=t,oB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),PT(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=PT(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new BT(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=gp(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=PT(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=PT(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=yT();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=PT(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),TT=function(){function e(e){this.$elem=gp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=gp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=gp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=gp(n);vT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=yT();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){gp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),_T=new WeakMap;function PT(e){var t=bA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function jT(e,t,n){void 0===n&&(n=!1);var r=_T.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new ST(e,t,n):a?new kT(e,t,n):new xT(e,t,n)}if("select"===o&&(r=new FT(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return _T.set(t,r),r}function NT(e,t){var n=e.selection;return null!=n&&!Ff.isCollapsed(n)&&!aO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Lf.isText(t)}var IT=function(){function e(){var e=this;this.$elem=gp('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=pv((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&uf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),oB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),aO.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;oB((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=mT();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=lO[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=jT(e,r);this.hoverbarItems.push(i),bA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),uf.isElement(e)){var r=AF(t,e,"bar");return n.css(r),void OF(t,n)}if(Lf.isText(e))return r=CF(t),n.css(r),void OF(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return aO.checkNodeType(t,o)},c=hC(pf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=yA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=NT),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=aO.findPath(null,e),r=aO.findPath(null,t);return Ef.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function LT(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];AE.withoutSaving(t,()=>{pf.withoutNormalizing(t,()=>{for(var e of r)t.apply(e)})}),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];AE.withoutSaving(t,()=>{pf.withoutNormalizing(t,()=>{var e=r.map(xf.inverse).reverse();for(var n of e)t.apply(n)})}),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=AE.isSaving(t),c=AE.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Ef.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Ef.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=aO.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=aO.getLeftLengthOfMaxLength(t);n<=0||n<mf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(aO.getLeftLengthOfMaxLength(t)<mf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=aO.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===HA.TEXT_NODE?e+(t.textContent||""):n===HA.ELEMENT_NODE?YB.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=bF(t);if(r.on(e,n),"destroyed"===e&&xF(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),xF(t,o)}},t.once=function(e,n){bF(t).once(e,n)},t.off=function(e,n){bF(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=bF(t);o.emit.apply(o,gC([e],hC(n))),"destroyed"===e&&(EF(t).forEach((function(e){return o.off("destroyed",e)})),DF(t))},t}(function(e){var t=e;return t.select=function(e){ed.select(t,e)},t.deselect=function(){var n=t.selection,r=aO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&ed.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||ed.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=NA.get(t);null!=e&&(t.focus(),ed.select(t,e))},t.getSelectionPosition=function(){return CF(t)},t.getNodePosition=function(e){return AF(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=hC(Ff.edges(e),2),r=n[0],o=n[1],i=hC(pf.edges(t,[]),2),a=i[0],u=i[1];return!(!Af.equals(r,a)||!Af.equals(o,u))},t.selectAll=function(){var e=pf.start(t,[]),n=pf.end(t,[]);ed.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=pC(pf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=hC(p.value,2),g=h[0],v=h[1],y=aO.findKey(t,g);f.push([v,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=pC(pf.levels(t,{at:Ef.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=hC(b.value,2);g=w[0],v=w[1],y=aO.findKey(t,g),f.push([v,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=pC(pf.levels(t,{at:Ef.common(Ef.parent(e.path),Ef.parent(e.newPath))})),E=x.next();!E.done;E=x.next()){var D=hC(E.value,2);g=D[0],v=D[1],y=aO.findKey(t,g),f.push([v,y])}}catch(e){u={error:e}}finally{try{E&&!E.done&&(s=x.return)&&s.call(x)}finally{if(u)throw u.error}}}o(e);try{for(var S=pC(f),C=S.next();!C.done;C=S.next()){var A=hC(C.value,2);v=A[0],y=A[1],g=hC(pf.node(t,v),1)[0],_A.set(g,y)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Ff.isCollapsed(e.selection)){var r=pf.above(e,{match:function(t){return pf.isBlock(e,t)},at:e.selection});if(r){var o=hC(r,2)[1],a=pf.range(e,o,e.selection.anchor),u=function(e,t){var n=pf.range(e,Ff.end(t)),r=Array.from(pf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(uB(e,pf.range(e,r[o]),n))return pf.range(e,r[o],n);if(r.length<2)return pf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)uB(e,pf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return pf.range(e,r[i],n)}(t,a);Ff.isCollapsed(u)||ed.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&NA.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return function e(t,n){return uf.isElement(t)?function(t,n){var r=t.type,o=void 0===r?"":r,i=t.children,a=void 0===i?[]:i,u=pf.isVoid(n,t),s="";u||(s=a.map((function(t){return e(t,n)})).join(""));var l=function(e){return EO[e]||DO}(o)(t,s,n),c="";if(c="string"==typeof l?l:l.html||"",u||xO.forEach((function(e){return c=e(t,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(t,n):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=aO.getParentsNodes(t,e).some((function(e){return"pre"===aO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=aO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return xO.forEach((function(t){return r=t(e,r)})),r}(t,n)}(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return mf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":pf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=pf.nodes(t,{at:[],universal:!0});try{for(var u=pC(a),s=u.next();!s.done;s=u.next()){var l=hC(s.value,1)[0];if(uf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=iB(aO.findKey(t,l).id);i.push(dC(dC({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(uf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Lf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){ed.delete(t,{at:{anchor:pf.start(t,[]),focus:pf.end(t,[])}}),0===t.children.length&&ed.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return aO.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===HA.TEXT_NODE||t===HA.ELEMENT_NODE&&!YB.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;aO.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==HA.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(sB.includes(r.toLowerCase()))s=!0;else for(var l in fB)if(a.matches(l)){s=!0;break}if(s){var c=$B(gp(a),t);return Array.isArray(c)?(c.forEach((function(e){return XB(t,e)})),u++):(XB(t,c),u++),void(aO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;aO.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&aO.isEmptyPath(t,a)&&ed.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=UB(t,e);if(ed.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(pf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in lO)e.push(t);return e},t.getConfig=function(){var e=EA.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=ZB((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of pf.pathRefs(e))Df.transform(n,t);for(var r of pf.pointRefs(e))Of.transform(r,t);for(var o of pf.rangeRefs(e))Tf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Ec.get(e)||[],l=Fc(t);for(var c of s)u(Ef.transform(c,t));for(var f of l)u(f);Ec.set(e,a),ed.transform(e,t),e.operations.push(t),pf.normalize(e),"set_selection"===t.type&&(e.marks=null),Dc.get(e)||(Dc.set(e,!0),Promise.resolve().then(()=>{Dc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Ff.isExpanded(r))ed.setNodes(e,{[t]:n},{match:Lf.isText,split:!0});else{var o=Bc(Bc({},pf.marks(e)||{}),{},{[t]:n});e.marks=o,Dc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Ff.isCollapsed(n)&&ed.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Ff.isCollapsed(n)&&ed.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Ff.isExpanded(n)&&ed.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?mf.fragment(e,t):[]},insertBreak:()=>{ed.splitNodes(e,{always:!0})},insertFragment:t=>{ed.insertFragment(e,t)},insertNode:t=>{ed.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Bc({text:t},r);ed.insertNodes(e,o)}else ed.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Lf.isText(n))if(uf.isElement(n)&&0===n.children.length)ed.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!pf.isEditor(n)&&uf.isElement(n)&&(e.isInline(n)||0===n.children.length||Lf.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=mf.get(e,r);if(!Lf.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Lf.isText(s)||uf.isElement(s)&&e.isInline(s))!==o?(ed.removeNodes(e,{at:r.concat(i),voids:!0}),i--):uf.isElement(s)?e.isInline(s)&&(null!=l&&Lf.isText(l)?c&&(ed.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(ed.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Lf.isText(l)&&(Lf.equals(s,l,{loose:!0})?(ed.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(ed.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(ed.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Ff.isExpanded(n))ed.unsetNodes(e,t,{match:Lf.isText,split:!0});else{var r=Bc({},pf.marks(e)||{});delete r[t],e.marks=r,Dc.get(e)||e.onChange()}}};return e})());return t.id="wangEditor-"+uO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(aO.toDOMNode(t,t).focus({preventScroll:!0}),jA.set(t,!0),e){var n=pf.end(t,[]);ed.select(t,n)}else{var r=NA.get(t);r?ed.select(t,r):ed.select(t,pf.start(t,[]))}},t.isFocused=function(){return!!jA.get(t)},t.blur=function(){aO.toDOMNode(t,t).blur(),ed.deselect(t),jA.set(t,!1)},t.updateView=function(){aO.getTextarea(t).changeViewState();var e=aO.getToolbar(t);e&&e.changeToolbarState();var n=aO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=aO.getTextarea(t);e.destroy(),pA.delete(t),hA.delete(e);var n=aO.getToolbar(t);n&&(n.destroy(),vA.delete(t),gA.delete(n));var r=aO.getHoverbar(t);r&&(r.destroy(),mA.delete(t),yA.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=gp("#"+e);if(0!==r.length){var o=r[0];if(!aO.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=aO.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||aO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=wA.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return aO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=aO.getToolbar(t);n&&(e=n.$box);var r=aO.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=aO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return aO.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return VB(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=hv(sO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return lh(t,(function(e,t){n[t]=dC(dC({},e),o[t]||{})})),delete e.MENU_CONF,dC({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);EA.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=UB(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),aO.normalizeContent(l),n){var p=new gT(n);pA.set(l,p),hA.set(p,l),p.changeViewState(),oB((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new IT,yA.set(h,l),mA.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return function e(t,n,r,o){if(AA.set(t,n),OA.set(t,r),uf.isElement(t)){var i=t.children;if((void 0===i?[]:i).forEach((function(n,r){return e(n,r,t,o)})),pf.isVoid(o,t)){var a=hC(mf.texts(t),1),u=hC(a[0],1)[0];AA.set(u,0),OA.set(u,t)}}}(e,t,l,l)}));var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",(function(){return g(l)})),v&&l.on("destroyed",(function(){return v(l)})),oB((function(){return l.emit("created")})),l}var RT=pS("splice"),MT=bb.TypeError,zT=Math.max,HT=Math.min;bE({target:"Array",proto:!0,forced:!RT},{splice:function(e,t){var n,r,o,i,a,u,s=_b(this),l=Dx(s),c=Jx(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=HT(zT(wx(t),0),l-c)),l+n-r>9007199254740991)throw MT("Maximum allowed length exceeded");for(o=Nx(s,r),i=0;i<r;i++)(a=c+i)in s&&cD(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var $T=function(){function e(e,t){var n=this;this.$toolbar=gp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=pv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=gp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),oB((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=hv(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=mT();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new TT(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof TT,o=this.menus,i=o[e];if(null==i){var a=lO[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=jT(e,i,r);this.toolbarItems.push(u),bA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=gA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),VT=Qw.EXISTS,UT=Bw.f,WT=Function.prototype,GT=kb(WT.toString),qT=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,KT=kb(qT.exec);function YT(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,E=void 0===x?function(e,t){}:x,D=e.onError,S=void 0===D?function(e,t,n){console.error(e.name+" upload error",t,n)}:D,C=e.onProgress,A=void 0===C?function(e){}:C;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=hC(e.split("#"),2),r=n[0],o=n[1],i=[];lh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var k=new $y({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(pb,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{E(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{S(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{S(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function XT(e){return(XT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ZT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){ZT(e,t,n[t])}))}return e}function QT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t_(e,t,n){return t&&e_(e.prototype,t),n&&e_(e,n),e}function n_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r_(e,t){if(t&&("object"===XT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n_(e)}function o_(e){return(o_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i_(e,t){return(i_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i_(e,t)}ow&&!VT&&UT(WT,"name",{configurable:!0,get:function(){try{return KT(qT,GT(this))[1]}catch(e){return""}}});var u_={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},s_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};QT(this,e),this.init(t,n)}return t_(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||u_,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,JT({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),l_=function(){function e(){QT(this,e),this.observers={}}return t_(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function c_(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function f_(e){return null==e?"":""+e}function d_(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function p_(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function h_(e,t,n){var r=p_(e,t,Object);r.obj[r.k]=n}function g_(e,t){var n=p_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function v_(e,t,n){var r=g_(e,n);return void 0!==r?r:g_(t,n)}function y_(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):y_(e[r],t[r],n):e[r]=t[r]);return e}function m_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var b_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function w_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return b_[e]})):e}var x_="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function E_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?E_(s,l,n):void 0}o=o[r[i]]}return o}}var D_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return QT(this,t),n=r_(this,o_(t).call(this)),x_&&l_.call(n_(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return a_(t,l_),t_(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=g_(this.data,a);return u||!i||"string"!=typeof n?u:E_(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),h_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=g_(this.data,a)||{};r?y_(u,n,o):u=JT({},u,n),h_(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?JT({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),S_={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},C_={},A_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return QT(this,t),n=r_(this,o_(t).call(this)),x_&&l_.call(n_(n)),d_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,n_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=s_.create("translator"),n}return a_(t,l_),t_(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==XT(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&x&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,JT({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===y,D=E?[]:{},S=E?v:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var A="".concat(S).concat(i).concat(C);D[C]=this.translate(A,JT({},n,{joinArrays:!1,ns:s})),D[C]===A&&(D[C]=h[C])}h=D}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=F&&_!==h&&this.options.updateMissing;if(k||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?_:h),i){var I=this.resolve(u,JT({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,N?r:j,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,N?r:j,N,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(JT({},n,{interpolation:JT({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=JT({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=S_.handle(d,e,t,this.options&&this.options.postProcessPassResolved?JT({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!C_["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(C_["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function O_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var k_=function(){function e(t){QT(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=s_.create("languageUtils")}return t_(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O_(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O_(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=O_(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),B_=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],F_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function T_(){var e={};return B_.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:F_[t.fc]}}))})),e}var __=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};QT(this,e),this.languageUtils=t,this.options=n,this.logger=s_.create("pluralResolver"),this.rules=T_()}return t_(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),P_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};QT(this,e),this.logger=s_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return t_(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:w_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?m_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?m_(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?m_(t.nestingPrefix):t.nestingPrefixEscaped||m_("$t("),this.nestingSuffix=t.nestingSuffix?m_(t.nestingSuffix):t.nestingSuffixEscaped||m_(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=v_(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,JT({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(v_(t,s,a),l,n,JT({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=f_(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=JT({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=JT({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=f_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,JT({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),j_=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return QT(this,t),o=r_(this,o_(t).call(this)),x_&&l_.call(n_(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=s_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return a_(t,l_),t_(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=p_(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,JT({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function N_(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===XT(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===XT(e[2])||"object"===XT(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function I_(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function L_(){}var R_=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(QT(this,t),e=r_(this,o_(t).call(this)),x_&&l_.call(n_(e)),e.options=I_(n),e.services={},e.logger=s_,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),r_(e,n_(e));setTimeout((function(){e.init(n,r)}),0)}return e}return a_(t,l_),t_(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=JT({},N_(),this.options,I_(t)),this.format=this.options.interpolation.format,n||(n=L_),!this.options.isClone){this.modules.logger?s_.init(r(this.modules.logger),this.options):s_.init(null,this.options);var o=new k_(this.options);this.store=new D_(this.options.resources,this.options);var i=this.services;i.logger=s_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new __(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new P_(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new j_(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new A_(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=c_(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L_,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=c_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=L_),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S_.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=c_();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==XT(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=JT({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=c_();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=c_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L_,o=JT({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=JT({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new A_(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function M_(e,t){R_.addResourceBundle(e,"translation",t,!0,!0)}function z_(e){R_.changeLanguage(e)}R_.init({lng:"zh-CN",resources:{}});var H_=R_.t.bind(R_);M_("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),M_("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var $_=Gi?{}.toString:function(){return"[object "+Xi(this)+"]"};Gi||hi(Object.prototype,"toString",$_,{unsafe:!0});var V_=Array.isArray||function(e){return"Array"==Rr(e)},U_=function(){},W_=[],G_=Kr("Reflect","construct"),q_=/^\s*(?:class|function)\b/,K_=Nr(q_.exec),Y_=!q_.exec(U_),X_=function(e){if(!Wr(e))return!1;try{return G_(U_,W_,e),!0}catch(e){return!1}},Z_=!G_||Dr((function(){var e;return X_(X_.call)||!X_(Object)||!X_((function(){e=!0}))||e}))?function(e){if(!Wr(e))return!1;switch(Xi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Y_||!!K_(q_,Xo(e))}:X_,J_=Bo("species"),Q_=Er.Array,eP=function(e,t){return new(function(e){var t;return V_(e)&&(t=e.constructor,(Z_(t)&&(t===Q_||V_(t.prototype))||Gr(t)&&null===(t=t[J_]))&&(t=void 0)),void 0===t?Q_:t}(e))(0===t?0:t)},tP=Nr([].push),nP=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=mo(s),g=Hr(h),v=uu(l,c),y=Di(g),m=0,b=f||eP,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:tP(w,d)}else switch(e){case 4:return!1;case 7:tP(w,d)}return i?-1:r||o?o:w}},rP=[nP(0),nP(1),nP(2),nP(3),nP(4),nP(5),nP(6),nP(7)][0],oP=function(e,t){var n=[].forEach;return!!n&&Dr((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return rP(this,e,arguments.length>1?arguments[1]:void 0)},iP=function(e){if(e&&e.forEach!==oP)try{Wo(e,"forEach",oP)}catch(t){e.forEach=oP}};for(var aP in es)es[aP]&&iP(Er[aP]&&Er[aP].prototype);iP(rs),M_("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),M_("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var uP={type:"paragraph",renderElem:function(e,t,n){return tg("p",null,t)}},sP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function lP(e){var t={exports:{}};return e(t,t.exports),t.exports}var cP,fP,dP=function(e){return e&&e.Math==Math&&e},pP=dP("object"==typeof globalThis&&globalThis)||dP("object"==typeof window&&window)||dP("object"==typeof self&&self)||dP("object"==typeof sP&&sP)||function(){return this}()||Function("return this")(),hP=function(e){try{return!!e()}catch(e){return!0}},gP=!hP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),vP=Function.prototype.call,yP=vP.bind?vP.bind(vP):function(){return vP.apply(vP,arguments)},mP={}.propertyIsEnumerable,bP=Object.getOwnPropertyDescriptor,wP={f:bP&&!mP.call({1:2},1)?function(e){var t=bP(this,e);return!!t&&t.enumerable}:mP},xP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},EP=Function.prototype,DP=EP.bind,SP=EP.call,CP=DP&&DP.bind(SP),AP=DP?function(e){return e&&CP(SP,e)}:function(e){return e&&function(){return SP.apply(e,arguments)}},OP=AP({}.toString),kP=AP("".slice),BP=function(e){return kP(OP(e),8,-1)},FP=pP.Object,TP=AP("".split),_P=hP((function(){return!FP("z").propertyIsEnumerable(0)}))?function(e){return"String"==BP(e)?TP(e,""):FP(e)}:FP,PP=pP.TypeError,jP=function(e){if(null==e)throw PP("Can't call method on "+e);return e},NP=function(e){return _P(jP(e))},IP=function(e){return"function"==typeof e},LP=function(e){return"object"==typeof e?null!==e:IP(e)},RP=function(e){return IP(e)?e:void 0},MP=function(e,t){return arguments.length<2?RP(pP[e]):pP[e]&&pP[e][t]},zP=AP({}.isPrototypeOf),HP=MP("navigator","userAgent")||"",$P=pP.process,VP=pP.Deno,UP=$P&&$P.versions||VP&&VP.version,WP=UP&&UP.v8;WP&&(fP=(cP=WP.split("."))[0]>0&&cP[0]<4?1:+(cP[0]+cP[1])),!fP&&HP&&(!(cP=HP.match(/Edge\/(\d+)/))||cP[1]>=74)&&(cP=HP.match(/Chrome\/(\d+)/))&&(fP=+cP[1]);var GP=fP,qP=!!Object.getOwnPropertySymbols&&!hP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&GP&&GP<41})),KP=qP&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,YP=pP.Object,XP=KP?function(e){return"symbol"==typeof e}:function(e){var t=MP("Symbol");return IP(t)&&zP(t.prototype,YP(e))},ZP=pP.String,JP=function(e){try{return ZP(e)}catch(e){return"Object"}},QP=pP.TypeError,ej=function(e){if(IP(e))return e;throw QP(JP(e)+" is not a function")},tj=function(e,t){var n=e[t];return null==n?void 0:ej(n)},nj=pP.TypeError,rj=Object.defineProperty,oj=function(e,t){try{rj(pP,e,{value:t,configurable:!0,writable:!0})}catch(n){pP[e]=t}return t},ij=pP["__core-js_shared__"]||oj("__core-js_shared__",{}),aj=lP((function(e){(e.exports=function(e,t){return ij[e]||(ij[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),uj=pP.Object,sj=function(e){return uj(jP(e))},lj=AP({}.hasOwnProperty),cj=Object.hasOwn||function(e,t){return lj(sj(e),t)},fj=0,dj=Math.random(),pj=AP(1..toString),hj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pj(++fj+dj,36)},gj=aj("wks"),vj=pP.Symbol,yj=vj&&vj.for,mj=KP?vj:vj&&vj.withoutSetter||hj,bj=function(e){if(!cj(gj,e)||!qP&&"string"!=typeof gj[e]){var t="Symbol."+e;qP&&cj(vj,e)?gj[e]=vj[e]:gj[e]=KP&&yj?yj(t):mj(t)}return gj[e]},wj=pP.TypeError,xj=bj("toPrimitive"),Ej=function(e){var t=function(e,t){if(!LP(e)||XP(e))return e;var n,r=tj(e,xj);if(r){if(void 0===t&&(t="default"),n=yP(r,e,t),!LP(n)||XP(n))return n;throw wj("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&IP(n=e.toString)&&!LP(r=yP(n,e)))return r;if(IP(n=e.valueOf)&&!LP(r=yP(n,e)))return r;if("string"!==t&&IP(n=e.toString)&&!LP(r=yP(n,e)))return r;throw nj("Can't convert object to primitive value")}(e,t)}(e,"string");return XP(t)?t:t+""},Dj=pP.document,Sj=LP(Dj)&&LP(Dj.createElement),Cj=function(e){return Sj?Dj.createElement(e):{}},Aj=!gP&&!hP((function(){return 7!=Object.defineProperty(Cj("div"),"a",{get:function(){return 7}}).a})),Oj=Object.getOwnPropertyDescriptor,kj={f:gP?Oj:function(e,t){if(e=NP(e),t=Ej(t),Aj)try{return Oj(e,t)}catch(e){}if(cj(e,t))return xP(!yP(wP.f,e,t),e[t])}},Bj=pP.String,Fj=pP.TypeError,Tj=function(e){if(LP(e))return e;throw Fj(Bj(e)+" is not an object")},_j=pP.TypeError,Pj=Object.defineProperty,jj={f:gP?Pj:function(e,t,n){if(Tj(e),t=Ej(t),Tj(n),Aj)try{return Pj(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _j("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Nj=gP?function(e,t,n){return jj.f(e,t,xP(1,n))}:function(e,t,n){return e[t]=n,e},Ij=AP(Function.toString);IP(ij.inspectSource)||(ij.inspectSource=function(e){return Ij(e)});var Lj,Rj,Mj,zj=ij.inspectSource,Hj=pP.WeakMap,$j=IP(Hj)&&/native code/.test(zj(Hj)),Vj=aj("keys"),Uj=function(e){return Vj[e]||(Vj[e]=hj(e))},Wj={},Gj=pP.TypeError,qj=pP.WeakMap;if($j||ij.state){var Kj=ij.state||(ij.state=new qj),Yj=AP(Kj.get),Xj=AP(Kj.has),Zj=AP(Kj.set);Lj=function(e,t){if(Xj(Kj,e))throw new Gj("Object already initialized");return t.facade=e,Zj(Kj,e,t),t},Rj=function(e){return Yj(Kj,e)||{}},Mj=function(e){return Xj(Kj,e)}}else{var Jj=Uj("state");Wj[Jj]=!0,Lj=function(e,t){if(cj(e,Jj))throw new Gj("Object already initialized");return t.facade=e,Nj(e,Jj,t),t},Rj=function(e){return cj(e,Jj)?e[Jj]:{}},Mj=function(e){return cj(e,Jj)}}var Qj={set:Lj,get:Rj,has:Mj,enforce:function(e){return Mj(e)?Rj(e):Lj(e,{})},getterFor:function(e){return function(t){var n;if(!LP(t)||(n=Rj(t)).type!==e)throw Gj("Incompatible receiver, "+e+" required");return n}}},eN=Function.prototype,tN=gP&&Object.getOwnPropertyDescriptor,nN=cj(eN,"name"),rN={EXISTS:nN,PROPER:nN&&"something"===function(){}.name,CONFIGURABLE:nN&&(!gP||gP&&tN(eN,"name").configurable)},oN=lP((function(e){var t=rN.CONFIGURABLE,n=Qj.get,r=Qj.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;IP(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cj(i,"name")||t&&i.name!==f)&&Nj(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==pP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Nj(e,n,i)):l?e[n]=i:oj(n,i)})(Function.prototype,"toString",(function(){return IP(this)&&n(this).source||zj(this)}))})),iN=Math.ceil,aN=Math.floor,uN=function(e){var t=+e;return t!=t||0===t?0:(t>0?aN:iN)(t)},sN=Math.max,lN=Math.min,cN=function(e,t){var n=uN(e);return n<0?sN(n+t,0):lN(n,t)},fN=Math.min,dN=function(e){return e>0?fN(uN(e),9007199254740991):0},pN=function(e){return dN(e.length)},hN=function(e){return function(t,n,r){var o,i=NP(t),a=pN(i),u=cN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},gN={includes:hN(!0),indexOf:hN(!1)},vN=gN.indexOf,yN=AP([].push),mN=function(e,t){var n,r=NP(e),o=0,i=[];for(n in r)!cj(Wj,n)&&cj(r,n)&&yN(i,n);for(;t.length>o;)cj(r,n=t[o++])&&(~vN(i,n)||yN(i,n));return i},bN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wN=bN.concat("length","prototype"),xN={f:Object.getOwnPropertyNames||function(e){return mN(e,wN)}},EN={f:Object.getOwnPropertySymbols},DN=AP([].concat),SN=MP("Reflect","ownKeys")||function(e){var t=xN.f(Tj(e)),n=EN.f;return n?DN(t,n(e)):t},CN=function(e,t){for(var n=SN(t),r=jj.f,o=kj.f,i=0;i<n.length;i++){var a=n[i];cj(e,a)||r(e,a,o(t,a))}},AN=/#|\.prototype\./,ON=function(e,t){var n=BN[kN(e)];return n==TN||n!=FN&&(IP(t)?hP(t):!!t)},kN=ON.normalize=function(e){return String(e).replace(AN,".").toLowerCase()},BN=ON.data={},FN=ON.NATIVE="N",TN=ON.POLYFILL="P",_N=ON,PN=kj.f,jN=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?pP:l?pP[u]||oj(u,{}):(pP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=PN(n,r))&&a.value:n[r],!_N(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;CN(i,o)}(e.sham||o&&o.sham)&&Nj(i,"sham",!0),oN(n,r,i,e)}},NN=AP(AP.bind),IN=Array.isArray||function(e){return"Array"==BP(e)},LN={};LN[bj("toStringTag")]="z";var RN="[object z]"===String(LN),MN=bj("toStringTag"),zN=pP.Object,HN="Arguments"==BP(function(){return arguments}()),$N=RN?BP:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=zN(e),MN))?n:HN?BP(t):"Object"==(r=BP(t))&&IP(t.callee)?"Arguments":r},VN=function(){},UN=[],WN=MP("Reflect","construct"),GN=/^\s*(?:class|function)\b/,qN=AP(GN.exec),KN=!GN.exec(VN),YN=function(e){if(!IP(e))return!1;try{return WN(VN,UN,e),!0}catch(e){return!1}},XN=!WN||hP((function(){var e;return YN(YN.call)||!YN(Object)||!YN((function(){e=!0}))||e}))?function(e){if(!IP(e))return!1;switch($N(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return KN||!!qN(GN,zj(e))}:YN,ZN=bj("species"),JN=pP.Array,QN=function(e,t){return new(function(e){var t;return IN(e)&&(t=e.constructor,(XN(t)&&(t===JN||IN(t.prototype))||LP(t)&&null===(t=t[ZN]))&&(t=void 0)),void 0===t?JN:t}(e))(0===t?0:t)},eI=AP([].push),tI=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=sj(s),g=_P(h),v=function(e,t){return ej(e),void 0===t?e:NN?NN(e,t):function(){return e.apply(t,arguments)}}(l,c),y=pN(g),m=0,b=f||QN,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:eI(w,d)}else switch(e){case 4:return!1;case 7:eI(w,d)}return i?-1:r||o?o:w}},nI={forEach:tI(0),map:tI(1),filter:tI(2),some:tI(3),every:tI(4),find:tI(5),findIndex:tI(6),filterReject:tI(7)},rI=bj("species"),oI=function(e){return GP>=51||!hP((function(){var t=[];return(t.constructor={})[rI]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},iI=nI.filter;jN({target:"Array",proto:!0,forced:!oI("filter")},{filter:function(e){return iI(this,e,arguments.length>1?arguments[1]:void 0)}});var aI=RN?{}.toString:function(){return"[object "+$N(this)+"]"};RN||oN(Object.prototype,"toString",aI,{unsafe:!0});var uI,sI=pP.String,lI=function(e){if("Symbol"===$N(e))throw TypeError("Cannot convert a Symbol value to a string");return sI(e)},cI=function(){var e=Tj(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},fI=pP.RegExp,dI=hP((function(){var e=fI("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pI=dI||hP((function(){return!fI("a","y").sticky})),hI={BROKEN_CARET:dI||hP((function(){var e=fI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:pI,UNSUPPORTED_Y:dI},gI=Object.keys||function(e){return mN(e,bN)},vI=gP?Object.defineProperties:function(e,t){Tj(e);for(var n,r=NP(t),o=gI(t),i=o.length,a=0;i>a;)jj.f(e,n=o[a++],r[n]);return e},yI=MP("document","documentElement"),mI=Uj("IE_PROTO"),bI=function(){},wI=function(e){return"<script>"+e+"<\/script>"},xI=function(e){e.write(wI("")),e.close();var t=e.parentWindow.Object;return e=null,t},EI=function(){try{uI=new ActiveXObject("htmlfile")}catch(e){}var e,t;EI="undefined"!=typeof document?document.domain&&uI?xI(uI):((t=Cj("iframe")).style.display="none",yI.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wI("document.F=Object")),e.close(),e.F):xI(uI);for(var n=bN.length;n--;)delete EI.prototype[bN[n]];return EI()};Wj[mI]=!0;var DI,SI,CI=Object.create||function(e,t){var n;return null!==e?(bI.prototype=Tj(e),n=new bI,bI.prototype=null,n[mI]=e):n=EI(),void 0===t?n:vI(n,t)},AI=pP.RegExp,OI=hP((function(){var e=AI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),kI=pP.RegExp,BI=hP((function(){var e=kI("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),FI=Qj.get,TI=aj("native-string-replace",String.prototype.replace),_I=RegExp.prototype.exec,PI=_I,jI=AP("".charAt),NI=AP("".indexOf),II=AP("".replace),LI=AP("".slice),RI=(SI=/b*/g,yP(_I,DI=/a/,"a"),yP(_I,SI,"a"),0!==DI.lastIndex||0!==SI.lastIndex),MI=hI.BROKEN_CARET,zI=void 0!==/()??/.exec("")[1];(RI||zI||MI||OI||BI)&&(PI=function(e){var t,n,r,o,i,a,u,s=this,l=FI(s),c=lI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=yP(PI,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=MI&&s.sticky,h=yP(cI,s),g=s.source,v=0,y=c;if(p&&(h=II(h,"y",""),-1===NI(h,"g")&&(h+="g"),y=LI(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==jI(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),zI&&(n=new RegExp("^"+g+"$(?!\\s)",h)),RI&&(r=s.lastIndex),o=yP(_I,p?n:s,y),p?o?(o.input=LI(o.input,v),o[0]=LI(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:RI&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),zI&&o&&o.length>1&&yP(TI,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=CI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var HI=PI;jN({target:"RegExp",proto:!0,forced:/./.exec!==HI},{exec:HI});var $I=Function.prototype,VI=$I.apply,UI=$I.bind,WI=$I.call,GI="object"==typeof Reflect&&Reflect.apply||(UI?WI.bind(VI):function(){return WI.apply(VI,arguments)}),qI=bj("species"),KI=RegExp.prototype,YI=function(e,t,n,r){var o=bj(e),i=!hP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!hP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[qI]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=AP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=AP(e),s=t.exec;return s===HI||s===KI.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));oN(String.prototype,e,s[0]),oN(KI,o,s[1])}r&&Nj(KI[o],"sham",!0)},XI=AP("".charAt),ZI=AP("".charCodeAt),JI=AP("".slice),QI=function(e){return function(t,n){var r,o,i=lI(jP(t)),a=uN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ZI(i,a))<55296||r>56319||a+1===u||(o=ZI(i,a+1))<56320||o>57343?e?XI(i,a):r:e?JI(i,a,a+2):o-56320+(r-55296<<10)+65536}},eL=(QI(!1),QI(!0)),tL=function(e,t,n){return t+(n?eL(e,t).length:1)},nL=Math.floor,rL=AP("".charAt),oL=AP("".replace),iL=AP("".slice),aL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,uL=/\$([$&'`]|\d{1,2})/g,sL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=uL;return void 0!==o&&(o=sj(o),s=aL),oL(i,s,(function(i,s){var l;switch(rL(s,0)){case"$":return"$";case"&":return e;case"`":return iL(t,0,n);case"'":return iL(t,a);case"<":l=o[iL(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=nL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?rL(s,1):r[f-1]+rL(s,1):i}l=r[c-1]}return void 0===l?"":l}))},lL=pP.TypeError,cL=function(e,t){var n=e.exec;if(IP(n)){var r=yP(n,e,t);return null!==r&&Tj(r),r}if("RegExp"===BP(e))return yP(HI,e,t);throw lL("RegExp#exec called on incompatible receiver")},fL=bj("replace"),dL=Math.max,pL=Math.min,hL=AP([].concat),gL=AP([].push),vL=AP("".indexOf),yL=AP("".slice),mL="$0"==="a".replace(/./,"$0"),bL=!!/./[fL]&&""===/./[fL]("a","$0");YI("replace",(function(e,t,n){var r=bL?"$":"$0";return[function(e,n){var r=jP(this),o=null==e?void 0:tj(e,fL);return o?yP(o,e,r,n):yP(t,lI(r),e,n)},function(e,o){var i=Tj(this),a=lI(e);if("string"==typeof o&&-1===vL(o,r)&&-1===vL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=IP(o);s||(o=lI(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=cL(i,a);if(null===d)break;if(gL(f,d),!l)break;""===lI(d[0])&&(i.lastIndex=tL(a,dN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=lI((d=f[v])[0]),m=dL(pL(uN(d.index),a.length),0),b=[],w=1;w<d.length;w++)gL(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=hL([y],b,m,a);void 0!==x&&gL(E,x);var D=lI(GI(o,void 0,E))}else D=sL(y,a,m,b,x,o);m>=g&&(h+=yL(a,g,m)+D,g=m+y.length)}return h+yL(a,g)}]}),!!hP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!mL||bL);var wL=bj("unscopables"),xL=Array.prototype;null==xL[wL]&&jj.f(xL,wL,{configurable:!0,value:CI(null)});var EL=function(e){xL[wL][e]=!0},DL=nI.find,SL=!0;"find"in[]&&Array(1).find((function(){SL=!1})),jN({target:"Array",proto:!0,forced:SL},{find:function(e){return DL(this,e,arguments.length>1?arguments[1]:void 0)}}),EL("find");var CL=bj("match"),AL=function(e){var t;return LP(e)&&(void 0!==(t=e[CL])?!!t:"RegExp"==BP(e))},OL=pP.TypeError,kL=bj("species"),BL=function(e,t,n){var r=Ej(t);r in e?jj.f(e,r,xP(0,n)):e[r]=n},FL=pP.Array,TL=Math.max,_L=function(e,t,n){for(var r=pN(e),o=cN(t,r),i=cN(void 0===n?r:n,r),a=FL(TL(i-o,0)),u=0;o<i;o++,u++)BL(a,u,e[o]);return a.length=u,a},PL=hI.UNSUPPORTED_Y,jL=Math.min,NL=[].push,IL=AP(/./.exec),LL=AP(NL),RL=AP("".slice);YI("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=lI(jP(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!AL(e))return yP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=yP(HI,f,r))&&!((a=f.lastIndex)>c&&(LL(s,RL(r,c,i.index)),i.length>1&&i.index<r.length&&GI(NL,s,_L(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&IL(f,"")||LL(s,""):LL(s,RL(r,c)),s.length>o?_L(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:yP(t,this,e,n)}:t,[function(t,n){var o=jP(this),i=null==t?void 0:tj(t,e);return i?yP(i,t,o,n):yP(r,lI(o),t,n)},function(e,o){var i=Tj(this),a=lI(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=Tj(e).constructor;return void 0===r||null==(n=Tj(r)[kL])?t:function(e){if(XN(e))return e;throw OL(JP(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(PL?"g":"y"),f=new s(PL?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===cL(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=PL?0:h;var v,y=cL(f,PL?RL(a,h):a);if(null===y||(v=jL(dN(f.lastIndex+(PL?h:0)),a.length))===p)h=tL(a,h,l);else{if(LL(g,RL(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(LL(g,y[m]),g.length===d)return g;h=p=v}}return LL(g,RL(a,p)),g}]}),!!hP((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),PL);var ML="\t\n\v\f\r                 \u2028\u2029\ufeff",zL=AP("".replace),HL="["+ML+"]",$L=RegExp("^"+HL+HL+"*"),VL=RegExp(HL+HL+"*$"),UL=function(e){return function(t){var n=lI(jP(t));return 1&e&&(n=zL(n,$L,"")),2&e&&(n=zL(n,VL,"")),n}},WL={start:UL(1),end:UL(2),trim:UL(3)},GL=rN.PROPER,qL=WL.trim;function KL(e){return 0===gp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function YL(e){return 0===e.length?"":e[0].outerHTML}function XL(e){return e.length?e[0].tagName.toLowerCase():""}function ZL(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}jN({target:"String",proto:!0,forced:hP((function(){return!!ML.trim()||"​…᠎"!=="​…᠎".trim()||GL&&"trim"!==ML.trim.name}))},{trim:function(){return qL(this)}}),jN({global:!0},{globalThis:pP}),Fp&&(gp.fn.css=Fp),Ip&&(gp.fn.append=Ip),Lp&&(gp.fn.prepend=Lp),vp&&(gp.fn.addClass=vp),yp&&(gp.fn.removeClass=yp),mp&&(gp.fn.hasClass=mp),Dp&&(gp.fn.on=Dp),Sp&&(gp.fn.off=Sp),qp&&(gp.fn.focus=qp),bp&&(gp.fn.attr=bp),wp&&(gp.fn.removeAttr=wp),kp&&(gp.fn.hide=kp),Bp&&(gp.fn.show=Bp),Mp&&(gp.fn.parents=Mp),xp&&(gp.fn.dataset=xp),Ep&&(gp.fn.val=Ep),jp&&(gp.fn.text=jp),Pp&&(gp.fn.html=Pp),Hp&&(gp.fn.children=Hp),$p&&(gp.fn.remove=$p),zp&&(gp.fn.find=zp),Cp&&(gp.fn.width=Cp),Ap&&(gp.fn.height=Ap),_p&&(gp.fn.filter=_p),Vp&&(gp.fn.empty=Vp);var JL=function(e,t){return(JL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function QL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}JL(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var eR=function(){return(eR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tR(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function nR(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function rR(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oR(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function iR(e){var t=oR(pf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!uf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==mf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Lf.isText(o[0])&&(ed.setNodes(e,{type:"paragraph"}),!0)}var aR={renderElems:[uP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}}],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){iR(r)||t(e)},r.deleteForward=function(e){iR(r)||n(e)},r}},uR=/"/g,sR=AP("".replace),lR=function(e,t,n,r){var o=lI(jP(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+sR(lI(r),uR,"&quot;")+'"'),i+">"+o+"</"+t+">"},cR=function(e){return hP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function fR(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function dR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}jN({target:"String",proto:!0,forced:cR("bold")},{bold:function(){return lR(this,"b","","")}}),jN({target:"String",proto:!0,forced:cR("italics")},{italics:function(){return lR(this,"i","","")}}),jN({target:"String",proto:!0,forced:cR("sub")},{sub:function(){return lR(this,"sub","","")}}),jN({target:"String",proto:!0,forced:cR("sup")},{sup:function(){return lR(this,"sup","","")}});var pR={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},hR=Cj("span").classList,gR=hR&&hR.constructor&&hR.constructor.prototype,vR=gR===Object.prototype?void 0:gR,yR=function(e,t){var n=[][e];return!!n&&hP((function(){n.call(null,t||function(){throw 1},1)}))},mR=nI.forEach,bR=yR("forEach")?[].forEach:function(e){return mR(this,e,arguments.length>1?arguments[1]:void 0)},wR=function(e){if(e&&e.forEach!==bR)try{Nj(e,"forEach",bR)}catch(t){e.forEach=bR}};for(var xR in pR)pR[xR]&&wR(pP[xR]&&pP[xR].prototype);function ER(e,t){return null==e.selection||!!oR(pf.nodes(e,{match:function(t){return"pre"===aO.getNodeType(t)||!!pf.isVoid(e,t)},universal:!0}),1)[0]}function DR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&pf.removeMark(e,t)}))}wR(vR),jN({target:"Object",stat:!0,forced:hP((function(){gI(1)}))},{keys:function(e){return gI(sj(e))}});var SR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=pf.marks(e);return n?n[t]:!!oR(pf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return ER(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),CR='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',AR='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',OR='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',kR='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',BR='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',FR='<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>',TR='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',_R='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',PR='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',jR='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',NR='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',IR='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',LR='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',RR='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',MR='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',zR='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',HR='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',$R='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',VR='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',UR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=H_("textStyle.bold"),t.iconSvg=CR,t.hotkey="mod+b",t}return QL(t,e),t}(SR),WR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=H_("textStyle.code"),t.iconSvg=BR,t.hotkey="mod+e",t}return QL(t,e),t}(SR),GR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=H_("textStyle.italic"),t.iconSvg=OR,t.hotkey="mod+i",t}return QL(t,e),t}(SR),qR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=H_("textStyle.through"),t.iconSvg=kR,t.hotkey="mod+shift+x",t}return QL(t,e),t}(SR),KR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=H_("textStyle.underline"),t.iconSvg=AR,t.hotkey="mod+u",t}return QL(t,e),t}(SR),YR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=H_("textStyle.sub"),t.iconSvg=VR,t.hotkey="",t}return QL(t,e),t}(SR),XR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=H_("textStyle.sup"),t.iconSvg=$R,t.hotkey="",t}return QL(t,e),t}(SR),ZR=function(){function e(){this.title=H_("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return ER(e)},e.prototype.exec=function(e,t){var n,r,o=pf.nodes(e,{match:function(e){return Lf.isText(e)},universal:!0});try{for(var i=rR(o),a=i.next();!a.done;a=i.next())DR(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),JR={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=tg("strong",null,c)),a&&(c=tg("code",null,c)),o&&(c=tg("em",null,c)),i&&(c=tg("u",null,c)),u&&(c=tg("s",null,c)),s&&(c=tg("sub",null,c)),l&&(c=tg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new UR}},{key:"underline",factory:function(){return new KR}},{key:"italic",factory:function(){return new GR}},{key:"through",factory:function(){return new qR}},{key:"code",factory:function(){return new WR}},{key:"sub",factory:function(){return new YR}},{key:"sup",factory:function(){return new XR}},{key:"clearStyle",factory:function(){return new ZR}}],styleToHtml:function(e,t){if(!Lf.isText(e))return t;if(KL(t))return fR(e,t);var n=gp(t);if("br"===XL(n))return fR(e,"<br>");var r=n.html();return r=fR(e,r),n.html(r),YL(n)},parseStyleHtml:function(e,t,n){var r=gp(e);if(!Lf.isText(t))return t;var o=t;return dR(r,"b,strong")&&(o.bold=!0),dR(r,"i,em")&&(o.italic=!0),dR(r,"u")&&(o.underline=!0),dR(r,"s,strike")&&(o.through=!0),dR(r,"sub")&&(o.sub=!0),dR(r,"sup")&&(o.sup=!0),dR(r,"code")&&(o.code=!0),o}};function QR(e){return function(t,n,r){return tg("h"+e,null,n)}}var eM={type:"header1",renderElem:QR(1)},tM={type:"header2",renderElem:QR(2)},nM={type:"header3",renderElem:QR(3)},rM={type:"header4",renderElem:QR(4)},oM={type:"header5",renderElem:QR(5)},iM=rN.PROPER,aM=RegExp.prototype,uM=aM.toString,sM=AP(cI),lM=hP((function(){return"/a/b"!=uM.call({source:"a",flags:"b"})})),cM=iM&&"toString"!=uM.name;(lM||cM)&&oN(RegExp.prototype,"toString",(function(){var e=Tj(this),t=lI(e.source),n=e.flags;return"/"+t+"/"+lI(void 0===n&&zP(aM,e)&&!("flags"in aM)?sM(e):n)}),{unsafe:!0});var fM,dM=pP.TypeError,pM=function(e){if(AL(e))throw dM("The method doesn't accept regular expressions");return e},hM=bj("match"),gM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[hM]=!1,"/./"[e](t)}catch(e){}}return!1},vM=kj.f,yM=AP("".startsWith),mM=AP("".slice),bM=Math.min,wM=gM("startsWith");function xM(e){var t=oR(pf.nodes(e,{match:function(e){return aO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=oR(t,1)[0];return aO.getNodeType(n)}function EM(e){return null==e.selection||!oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function DM(e,t){t&&ed.setNodes(e,{type:t})}jN({target:"String",proto:!0,forced:!(!wM&&(fM=vM(String.prototype,"startsWith"),fM&&!fM.writable)||wM)},{startsWith:function(e){var t=lI(jP(this));pM(e);var n=dN(bM(arguments.length>1?arguments[1]:void 0,t.length)),r=lI(e);return yM?yM(t,r,n):mM(t,n,n+r.length)===r}});var SM=function(){function e(){this.title=H_("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:H_("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return xM(e)},e.prototype.isDisabled=function(e){return EM(e)},e.prototype.exec=function(e,t){DM(e,t.toString())},e}(),CM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return xM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return EM(e)},e.prototype.exec=function(e,t){var n=this.type;DM(e,t===n?"paragraph":n)},e}(),AM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return QL(t,e),t}(CM),OM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return QL(t,e),t}(CM),kM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return QL(t,e),t}(CM),BM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return QL(t,e),t}(CM),FM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return QL(t,e),t}(CM),TM={key:"headerSelect",factory:function(){return new SM}},_M={key:"header1",factory:function(){return new AM}},PM={key:"header2",factory:function(){return new OM}},jM={key:"header3",factory:function(){return new kM}},NM={key:"header4",factory:function(){return new BM}},IM={key:"header5",factory:function(){return new FM}};function LM(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function RM(e){return function(t,n,r){var o=gp(t);return 0===(n=n.filter((function(e){return!!Lf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var MM={renderElems:[eM,tM,nM,rM,oM],elemsToHtml:[{type:"header1",elemToHtml:LM(1)},{type:"header2",elemToHtml:LM(2)},{type:"header3",elemToHtml:LM(3)},{type:"header4",elemToHtml:LM(4)},{type:"header5",elemToHtml:LM(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:RM(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:RM(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:RM(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:RM(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:RM(5)}],menus:[TM,_M,PM,jM,NM,IM],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=oR(pf.nodes(n,{match:function(e){return aO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&aO.isSelectionAtLineEnd(e,r[1])?ed.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},zM=Object.assign,HM=Object.defineProperty,$M=AP([].concat),VM=!zM||hP((function(){if(gP&&1!==zM({b:1},zM(HM({},"a",{enumerable:!0,get:function(){HM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=zM({},e)[n]||gI(zM({},t)).join("")!=r}))?function(e,t){for(var n=sj(e),r=arguments.length,o=1,i=EN.f,a=wP.f;r>o;)for(var u,s=_P(arguments[o++]),l=i?$M(gI(s),i(s)):gI(s),c=l.length,f=0;c>f;)u=l[f++],gP&&!yP(a,s,u)||(n[u]=s[u]);return n}:zM;function UM(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}jN({target:"Object",stat:!0,forced:Object.assign!==VM},{assign:VM});var WM={selector:"font",preParseHtml:function(e){var t=gp(e);if("font"!==XL(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},GM=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=pf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!oR(pf.nodes(e,{match:function(t){return"pre"===aO.getNodeType(t)||!!pf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=gp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=gp(r).attr("data-value");"0"===o?pf.removeMark(e,t):pf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=gp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=gp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=H_("color.default")),"bgColor"===t&&(a=H_("color.clear"));var u=gp('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),qM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("color.color"),t.iconSvg=_R,t.mark="color",t}return QL(t,e),t}(GM),KM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("color.bgColor"),t.iconSvg=PR,t.mark="bgColor",t}return QL(t,e),t}(GM),YM=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],XM={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&UM(i,{color:r}),o&&UM(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Lf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((KL(t)||"span"!==XL(n=gp(t)))&&(n=gp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),YL(n)):t},preParseHtml:[WM],parseStyleHtml:function(e,t,n){var r=gp(e);if(!Lf.isText(t))return t;var o=t,i=ZL(r,"color");i&&(o.color=i);var a=ZL(r,"background-color");return a||(a=ZL(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new qM},config:{colors:YM}},{key:"bgColor",factory:function(){return new KM},config:{colors:YM}}]},ZM=/^(?:\w+:)?\/\/(\S+)$/,JM=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,QM=/^[^\s\.]+\.\S{2,}$/,ez=gN.includes;function tz(e){return void 0===e&&(e="r"),e+"-"+ch()}function nz(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function rz(e,t,n,r){return tR(this,void 0,void 0,(function(){var o,i;return nR(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function oz(e,t,n){return tR(this,void 0,void 0,(function(){var r;return nR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function iz(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function az(e,t){return{type:"link",url:nz(e),children:t?[{text:t}]:[]}}function uz(e,t,n){return tR(this,void 0,void 0,(function(){var r,o,i;return nR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),iz(e)?[2]:[4,rz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,oz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Ff.isCollapsed(o)?(e.insertText(" "),i=az(r,t),ed.insertNodes(e,i),e.insertFragment([{text:" "}])):pf.string(e,o)!==t?(e.deleteFragment(),i=az(r,t),ed.insertNodes(e,i)):(i=az(r),ed.wrapNodes(e,i,{split:!0}),ed.collapse(e,{edge:"end"}))),[2]}}))}))}jN({target:"Array",proto:!0},{includes:function(e){return ez(this,e,arguments.length>1?arguments[1]:void 0)}}),EL("includes");var sz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return tg("a",{href:o,target:void 0===i?"_blank":i},t)}},lz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function cz(){return tz("w-e-insert-link")}var fz=function(){function e(){this.title=H_("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=cz(),this.urlInputId=cz(),this.buttonId=cz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return iz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=oR(AT(H_("link.text"),r),2),u=a[0],s=gp(a[1]),l=oR(AT(H_("link.url"),o),2),c=l[0],f=gp(l[1]),d=oR(OT(i,H_("common.ok")),1)[0];if(null==this.$content){var p=gp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();uz(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||Ff.isCollapsed(t))s.val("");else{var g=pf.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function dz(){return tz("w-e-update-link")}var pz=function(){function e(){this.title=H_("link.edit"),this.iconSvg=FR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=dz(),this.buttonId=dz()}return e.prototype.getSelectedLinkElem=function(e){var t=aO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return aO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=oR(AT(H_("link.url"),t),2),o=r[0],i=gp(r[1]),a=oR(OT(n,H_("common.ok")),1)[0];if(null==this.$content){var u=gp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=aO.getSelectedNodeByType(e,"link"),o=r?mf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){tR(this,void 0,void 0,(function(){var r,o;return nR(this,(function(i){switch(i.label){case 0:return n?[4,rz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,oz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:nz(r)},ed.setNodes(e,o,{match:function(e){return aO.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),hz=function(){function e(){this.title=H_("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==aO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||ed.unwrapNodes(e,{match:function(e){return aO.checkNodeType(e,"link")}})},e}(),gz=function(){function e(){this.title=H_("link.view"),this.iconSvg=TR,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=aO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),vz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},yz={renderElems:[sz],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[lz],menus:[{key:"insertLink",factory:function(){return new fz},config:vz},{key:"editLink",factory:function(){return new pz},config:vz},{key:"unLink",factory:function(){return new hz}},{key:"viewLink",factory:function(){return new gz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(ZM);if(!t)return!1;var n=t[1];return!(!n||!JM.test(n)&&!QM.test(n))}(t)){if(!iz(o)){var r=o.selection;if(null!=r){var i=pf.string(o,r);uz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=oR(e,2),n=t[0],i=t[1];return"link"!==aO.getNodeType(n)?r([n,i]):""===mf.string(n)?ed.removeNodes(o,{at:i}):r([n,i])},o}},mz=AP(1..valueOf),bz=pP.RangeError,wz=pP.RangeError,xz=pP.String,Ez=Math.floor,Dz=AP((function(e){var t=lI(jP(this)),n="",r=uN(e);if(r<0||r==1/0)throw bz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Sz=AP("".slice),Cz=AP(1..toFixed),Az=function(e,t,n){return 0===t?n:t%2==1?Az(e,t-1,n*e):Az(e*e,t/2,n)},Oz=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Ez(o/1e7)},kz=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Ez(r/t),r=r%t*1e7},Bz=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=xz(e[t]);n=""===n?r:n+Dz("0",7-r.length)+r}return n};function Fz(e,t){return"w-e-image-container-"+aO.findKey(e,t).id}jN({target:"Number",proto:!0,forced:hP((function(){return"0.000"!==Cz(8e-5,3)||"1"!==Cz(.9,0)||"1.25"!==Cz(1.255,2)||"1000000000000000128"!==Cz(0xde0b6b3a7640080,0)}))||!hP((function(){Cz({})}))},{toFixed:function(e){var t,n,r,o,i=mz(this),a=uN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw wz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return xz(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Az(2,69,1))-69)<0?i*Az(2,-t,1):i/Az(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Oz(u,0,n),r=a;r>=7;)Oz(u,1e7,0),r-=7;for(Oz(u,Az(10,r,1),0),r=t-1;r>=23;)kz(u,1<<23),r-=23;kz(u,1<<r),Oz(u,1,1),kz(u,2),l=Bz(u)}else Oz(u,0,n),Oz(u,1<<-t,0),l=Bz(u)+Dz("0",a);return a>0?s+((o=l.length)<=a?"0."+Dz("0",a-o)+l:Sz(l,0,o-a)+"."+Sz(l,o-a)):s+l}});var Tz={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=aO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=tg("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?function(e,t,n,r){var o=gp("body"),i=Fz(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=gp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=aO.getHoverbar(e);r&&r.hideAndClean()}var h=Ch((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:eR(eR({},t.style),{width:r+"px",height:i+"px"})};ed.setNodes(e,a,{at:aO.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),tg("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=gp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,tg("div",{className:"w-e-image-dragger left-top"}),tg("div",{className:"w-e-image-dragger right-top"}),tg("div",{className:"w-e-image-dragger left-bottom"}),tg("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),tg("div",{id:Fz(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},_z={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:ZL(r,"width"),height:ZL(r,"height")},children:[{text:""}]}}};function Pz(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),tR(this,void 0,void 0,(function(){var i,a;return nR(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function jz(e,t,n){return tR(this,void 0,void 0,(function(){var r;return nR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Nz(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),tR(this,void 0,void 0,(function(){var o,i,a;return nR(this,(function(u){switch(u.label){case 0:return[4,Pz("insertImage",e,t,n,r)];case 1:return u.sent()?[4,jz("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:nz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),aO.getSelectedNodeByType(e,"image")&&e.move(1),Iz(e)||(ed.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function Iz(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||!!oR(pf.nodes(e,{match:function(t){var n=aO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!pf.isVoid(e,t)},universal:!0}),1)[0]}function Lz(){return tz("w-e-insert-image")}var Rz=function(){function e(){this.title=H_("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Lz(),this.altInputId=Lz(),this.hrefInputId=Lz(),this.buttonId=Lz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return Iz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=oR(AT(H_("image.src"),r),2),s=u[0],l=gp(u[1]),c=oR(AT(H_("image.desc"),o),2),f=c[0],d=gp(c[1]),p=oR(AT(H_("image.link"),i),2),h=p[0],g=gp(p[1]),v=oR(OT(a,H_("common.ok")),1)[0];if(null==this.$content){var y=gp("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||Nz(e,t,n,r))},e}(),Mz=function(){function e(){this.title=H_("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==aO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||ed.removeNodes(e,{match:function(e){return aO.checkNodeType(e,"image")}})},e}();function zz(){return tz("w-e-edit-image")}var Hz=function(){function e(){this.title=H_("image.edit"),this.iconSvg=FR,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=zz(),this.altInputId=zz(),this.hrefInputId=zz(),this.buttonId=zz()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return aO.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=oR(AT(H_("image.src"),r),2),l=s[0],c=gp(s[1]),f=oR(AT(H_("image.desc"),o),2),d=f[0],p=gp(f[1]),h=oR(AT(H_("image.link"),i),2),g=h[0],v=gp(h[1]),y=oR(OT(a,H_("common.ok")),1)[0];if(null==this.$content){var m=gp("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,x=w.src,E=w.alt,D=void 0===E?"":E,S=w.href,C=void 0===S?"":S;return c.val(x),p.val(D),v.val(C),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),tR(this,void 0,void 0,(function(){var i,a,u,s,l,c;return nR(this,(function(f){switch(f.label){case 0:return[4,Pz("editImage",e,t,n,r)];case 1:return f.sent()?[4,jz("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=aO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:eR(eR({},void 0===u?{}:u),o)},ed.setNodes(e,s,{match:function(e){return aO.checkNodeType(e,"image")}}),l=aO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),$z=function(){function e(){this.title=H_("image.viewLink"),this.iconSvg=TR,this.tag="button"}return e.prototype.getValue=function(e){var t=aO.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),Vz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return aO.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=aO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:eR(eR({},void 0===o?{}:o),{width:this.value,height:""})};ed.setNodes(e,i,{match:function(e){return aO.checkNodeType(e,"image")}})}}},e}(),Uz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return QL(t,e),t}(Vz),Wz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return QL(t,e),t}(Vz),Gz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return QL(t,e),t}(Vz),qz={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Kz={renderElems:[Tz],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[_z],menus:[{key:"insertImage",factory:function(){return new Rz},config:qz},{key:"deleteImage",factory:function(){return new Mz}},{key:"editImage",factory:function(){return new Hz},config:qz},{key:"viewImageLink",factory:function(){return new $z}},{key:"imageWidth30",factory:function(){return new Uz}},{key:"imageWidth50",factory:function(){return new Wz}},{key:"imageWidth100",factory:function(){return new Gz}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},Yz={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),tg("div",{style:{margin:"5px 0"}},tg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},tg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=aO.findPath(n,e),o={checked:t.target.checked};ed.setNodes(n,o,{at:r})}}})),tg("span",null,t))}},Xz=function(){function e(){this.title=H_("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!aO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){if(pf.isVoid(e,t)&&pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);ed.setNodes(e,{type:n?"paragraph":"todo"})},e}(),Zz={renderElems:[Yz],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=gp(e).find("li"),n=gp('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=gp(e);0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}}],menus:[{key:"todo",factory:function(){return new Xz}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Ff.isCollapsed(r)){var o=aO.getSelectedNodeByType(e,"todo");if(o&&0===mf.string(o).length)return void ed.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},Jz={type:"blockquote",renderElem:function(e,t,n){return tg("blockquote",null,t)}},Qz={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},eH=function(){function e(){this.title=H_("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!aO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";ed.setNodes(e,{type:n},{mode:"highest"})}},e}(),tH={key:"blockquote",factory:function(){return new eH}},nH=AP([].slice),rH=oI("slice"),oH=bj("species"),iH=pP.Array,aH=Math.max;jN({target:"Array",proto:!0,forced:!rH},{slice:function(e,t){var n,r,o,i=NP(this),a=pN(i),u=cN(e,a),s=cN(void 0===t?a:t,a);if(IN(i)&&(n=i.constructor,(XN(n)&&(n===iH||IN(n.prototype))||LP(n)&&null===(n=n[oH]))&&(n=void 0),n===iH||void 0===n))return nH(i,u,s);for(r=new(void 0===n?iH:n)(aH(s-u,0)),o=0;u<s;u++,o++)u in i&&BL(r,o,i[u]);return r.length=o,r}});var uH={renderElems:[Jz],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Qz],menus:[tH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=oR(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=aO.findPath(e,a),s=pf.end(e,u);if(Af.equals(s,o.focus)){var l=mf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void ed.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},sH=function(){function e(){this.title=H_("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!oR(pf.nodes(e,{match:function(t){return"pre"===aO.getNodeType(t)||!!pf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=gp('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=gp(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=gp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),lH={menus:[{key:"emotion",factory:function(){return new sH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},cH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},fH={selector:"font",preParseHtml:function(e){var t=gp(e);if("font"!==XL(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",cH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},dH=AP("".indexOf);jN({target:"String",proto:!0,forced:!gM("includes")},{includes:function(e){return!!~dH(lI(jP(this)),lI(pM(e)),arguments.length>1?arguments[1]:void 0)}});var pH,hH,gH=function(e){return e&&e.Math==Math&&e},vH=gH("object"==typeof globalThis&&globalThis)||gH("object"==typeof window&&window)||gH("object"==typeof self&&self)||gH("object"==typeof sP&&sP)||function(){return this}()||Function("return this")(),yH=Function.prototype,mH=yH.apply,bH=yH.bind,wH=yH.call,xH="object"==typeof Reflect&&Reflect.apply||(bH?wH.bind(mH):function(){return wH.apply(mH,arguments)}),EH=Function.prototype,DH=EH.bind,SH=EH.call,CH=DH&&DH.bind(SH),AH=DH?function(e){return e&&CH(SH,e)}:function(e){return e&&function(){return SH.apply(e,arguments)}},OH=function(e){return"function"==typeof e},kH=function(e){try{return!!e()}catch(e){return!0}},BH=!kH((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),FH=Function.prototype.call,TH=FH.bind?FH.bind(FH):function(){return FH.apply(FH,arguments)},_H={}.propertyIsEnumerable,PH=Object.getOwnPropertyDescriptor,jH={f:PH&&!_H.call({1:2},1)?function(e){var t=PH(this,e);return!!t&&t.enumerable}:_H},NH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},IH=AH({}.toString),LH=AH("".slice),RH=function(e){return LH(IH(e),8,-1)},MH=vH.Object,zH=AH("".split),HH=kH((function(){return!MH("z").propertyIsEnumerable(0)}))?function(e){return"String"==RH(e)?zH(e,""):MH(e)}:MH,$H=vH.TypeError,VH=function(e){if(null==e)throw $H("Can't call method on "+e);return e},UH=function(e){return HH(VH(e))},WH=function(e){return"object"==typeof e?null!==e:OH(e)},GH={},qH=function(e){return OH(e)?e:void 0},KH=function(e,t){return arguments.length<2?qH(GH[e])||qH(vH[e]):GH[e]&&GH[e][t]||vH[e]&&vH[e][t]},YH=AH({}.isPrototypeOf),XH=KH("navigator","userAgent")||"",ZH=vH.process,JH=vH.Deno,QH=ZH&&ZH.versions||JH&&JH.version,e$=QH&&QH.v8;e$&&(hH=(pH=e$.split("."))[0]>0&&pH[0]<4?1:+(pH[0]+pH[1])),!hH&&XH&&(!(pH=XH.match(/Edge\/(\d+)/))||pH[1]>=74)&&(pH=XH.match(/Chrome\/(\d+)/))&&(hH=+pH[1]);var t$=hH,n$=!!Object.getOwnPropertySymbols&&!kH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t$&&t$<41})),r$=n$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,o$=vH.Object,i$=r$?function(e){return"symbol"==typeof e}:function(e){var t=KH("Symbol");return OH(t)&&YH(t.prototype,o$(e))},a$=vH.String,u$=vH.TypeError,s$=function(e){if(OH(e))return e;throw u$(function(e){try{return a$(e)}catch(e){return"Object"}}(e)+" is not a function")},l$=vH.TypeError,c$=Object.defineProperty,f$=vH["__core-js_shared__"]||function(e,t){try{c$(vH,e,{value:t,configurable:!0,writable:!0})}catch(n){vH[e]=t}return t}("__core-js_shared__",{}),d$=lP((function(e){(e.exports=function(e,t){return f$[e]||(f$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),p$=vH.Object,h$=function(e){return p$(VH(e))},g$=AH({}.hasOwnProperty),v$=Object.hasOwn||function(e,t){return g$(h$(e),t)},y$=0,m$=Math.random(),b$=AH(1..toString),w$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+b$(++y$+m$,36)},x$=d$("wks"),E$=vH.Symbol,D$=E$&&E$.for,S$=r$?E$:E$&&E$.withoutSetter||w$,C$=function(e){if(!v$(x$,e)||!n$&&"string"!=typeof x$[e]){var t="Symbol."+e;n$&&v$(E$,e)?x$[e]=E$[e]:x$[e]=r$&&D$?D$(t):S$(t)}return x$[e]},A$=vH.TypeError,O$=C$("toPrimitive"),k$=function(e){var t=function(e,t){if(!WH(e)||i$(e))return e;var n,r,o=null==(n=e[O$])?void 0:s$(n);if(o){if(void 0===t&&(t="default"),r=TH(o,e,t),!WH(r)||i$(r))return r;throw A$("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&OH(n=e.toString)&&!WH(r=TH(n,e)))return r;if(OH(n=e.valueOf)&&!WH(r=TH(n,e)))return r;if("string"!==t&&OH(n=e.toString)&&!WH(r=TH(n,e)))return r;throw l$("Can't convert object to primitive value")}(e,t)}(e,"string");return i$(t)?t:t+""},B$=vH.document,F$=WH(B$)&&WH(B$.createElement),T$=function(e){return F$?B$.createElement(e):{}},_$=!BH&&!kH((function(){return 7!=Object.defineProperty(T$("div"),"a",{get:function(){return 7}}).a})),P$=Object.getOwnPropertyDescriptor,j$={f:BH?P$:function(e,t){if(e=UH(e),t=k$(t),_$)try{return P$(e,t)}catch(e){}if(v$(e,t))return NH(!TH(jH.f,e,t),e[t])}},N$=/#|\.prototype\./,I$=function(e,t){var n=R$[L$(e)];return n==z$||n!=M$&&(OH(t)?kH(t):!!t)},L$=I$.normalize=function(e){return String(e).replace(N$,".").toLowerCase()},R$=I$.data={},M$=I$.NATIVE="N",z$=I$.POLYFILL="P",H$=I$,$$=AH(AH.bind),V$=function(e,t){return s$(e),void 0===t?e:$$?$$(e,t):function(){return e.apply(t,arguments)}},U$=vH.String,W$=vH.TypeError,G$=function(e){if(WH(e))return e;throw W$(U$(e)+" is not an object")},q$=vH.TypeError,K$=Object.defineProperty,Y$={f:BH?K$:function(e,t,n){if(G$(e),t=k$(t),G$(n),_$)try{return K$(e,t,n)}catch(e){}if("get"in n||"set"in n)throw q$("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},X$=BH?function(e,t,n){return Y$.f(e,t,NH(1,n))}:function(e,t,n){return e[t]=n,e},Z$=j$.f,J$=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return xH(e,this,arguments)};return t.prototype=e.prototype,t},Q$=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?vH:d?vH[c]:(vH[c]||{}).prototype,g=f?GH:GH[c]||X$(GH,c,{})[c],v=g.prototype;for(o in t)n=!H$(f?o:c+(d?".":"#")+o,e.forced)&&h&&v$(h,o),a=g[o],n&&(u=e.noTargetGet?(l=Z$(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?V$(i,vH):e.wrap&&n?J$(i):p&&OH(i)?AH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&X$(s,"sham",!0),X$(g,o,s),p&&(v$(GH,r=c+"Prototype")||X$(GH,r,{}),X$(GH[r],o,i),e.real&&v&&!v[o]&&X$(v,o,i)))},eV=Array.isArray||function(e){return"Array"==RH(e)},tV=Math.ceil,nV=Math.floor,rV=function(e){var t=+e;return t!=t||0===t?0:(t>0?nV:tV)(t)},oV=Math.min,iV=function(e){return(t=e.length)>0?oV(rV(t),9007199254740991):0;var t},aV=function(e,t,n){var r=k$(t);r in e?Y$.f(e,r,NH(0,n)):e[r]=n},uV={};uV[C$("toStringTag")]="z";var sV="[object z]"===String(uV),lV=C$("toStringTag"),cV=vH.Object,fV="Arguments"==RH(function(){return arguments}()),dV=sV?RH:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=cV(e),lV))?n:fV?RH(t):"Object"==(r=RH(t))&&OH(t.callee)?"Arguments":r},pV=AH(Function.toString);OH(f$.inspectSource)||(f$.inspectSource=function(e){return pV(e)});var hV=f$.inspectSource,gV=function(){},vV=[],yV=KH("Reflect","construct"),mV=/^\s*(?:class|function)\b/,bV=AH(mV.exec),wV=!mV.exec(gV),xV=function(e){if(!OH(e))return!1;try{return yV(gV,vV,e),!0}catch(e){return!1}},EV=!yV||kH((function(){var e;return xV(xV.call)||!xV(Object)||!xV((function(){e=!0}))||e}))?function(e){if(!OH(e))return!1;switch(dV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wV||!!bV(mV,hV(e))}:xV,DV=C$("species"),SV=vH.Array,CV=function(e,t){return new(function(e){var t;return eV(e)&&(t=e.constructor,(EV(t)&&(t===SV||eV(t.prototype))||WH(t)&&null===(t=t[DV]))&&(t=void 0)),void 0===t?SV:t}(e))(0===t?0:t)},AV=C$("species"),OV=C$("isConcatSpreadable"),kV=vH.TypeError,BV=t$>=51||!kH((function(){var e=[];return e[OV]=!1,e.concat()[0]!==e})),FV=t$>=51||!kH((function(){var e=[];return(e.constructor={})[AV]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),TV=function(e){if(!WH(e))return!1;var t=e[OV];return void 0!==t?!!t:eV(e)};Q$({target:"Array",proto:!0,forced:!BV||!FV},{concat:function(e){var t,n,r,o,i,a=h$(this),u=CV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(TV(i=-1===t?a:arguments[t])){if(s+(o=iV(i))>9007199254740991)throw kV("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&aV(u,s,i[n])}else{if(s>=9007199254740991)throw kV("Maximum allowed index exceeded");aV(u,s++,i)}return u.length=s,u}});var _V,PV=vH.String,jV=function(e){if("Symbol"===dV(e))throw TypeError("Cannot convert a Symbol value to a string");return PV(e)},NV=Math.max,IV=Math.min,LV=function(e,t){var n=rV(e);return n<0?NV(n+t,0):IV(n,t)},RV=function(e){return function(t,n,r){var o,i=UH(t),a=iV(i),u=LV(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},MV={includes:RV(!0),indexOf:RV(!1)},zV={},HV=MV.indexOf,$V=AH([].push),VV=function(e,t){var n,r=UH(e),o=0,i=[];for(n in r)!v$(zV,n)&&v$(r,n)&&$V(i,n);for(;t.length>o;)v$(r,n=t[o++])&&(~HV(i,n)||$V(i,n));return i},UV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],WV=Object.keys||function(e){return VV(e,UV)},GV=BH?Object.defineProperties:function(e,t){G$(e);for(var n,r=UH(t),o=WV(t),i=o.length,a=0;i>a;)Y$.f(e,n=o[a++],r[n]);return e},qV=KH("document","documentElement"),KV=d$("keys"),YV=function(e){return KV[e]||(KV[e]=w$(e))},XV=YV("IE_PROTO"),ZV=function(){},JV=function(e){return"<script>"+e+"<\/script>"},QV=function(e){e.write(JV("")),e.close();var t=e.parentWindow.Object;return e=null,t},eU=function(){try{_V=new ActiveXObject("htmlfile")}catch(e){}var e,t;eU="undefined"!=typeof document?document.domain&&_V?QV(_V):((t=T$("iframe")).style.display="none",qV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(JV("document.F=Object")),e.close(),e.F):QV(_V);for(var n=UV.length;n--;)delete eU.prototype[UV[n]];return eU()};zV[XV]=!0;var tU,nU,rU,oU=Object.create||function(e,t){var n;return null!==e?(ZV.prototype=G$(e),n=new ZV,ZV.prototype=null,n[XV]=e):n=eU(),void 0===t?n:GV(n,t)},iU=UV.concat("length","prototype"),aU={f:Object.getOwnPropertyNames||function(e){return VV(e,iU)}},uU=vH.Array,sU=Math.max,lU=aU.f,cU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fU={f:function(e){return cU&&"Window"==RH(e)?function(e){try{return lU(e)}catch(e){return function(e,t,n){for(var r=iV(e),o=LV(void 0,r),i=LV(r,r),a=uU(sU(i-o,0)),u=0;o<i;o++,u++)aV(a,u,e[o]);return a.length=u,a}(cU)}}(e):lU(UH(e))}},dU={f:Object.getOwnPropertySymbols},pU=AH([].slice),hU=function(e,t,n,r){r&&r.enumerable?e[t]=n:X$(e,t,n)},gU={f:C$},vU=Y$.f,yU=function(e){var t=GH.Symbol||(GH.Symbol={});v$(t,e)||vU(t,e,{value:gU.f(e)})},mU=sV?{}.toString:function(){return"[object "+dV(this)+"]"},bU=Y$.f,wU=C$("toStringTag"),xU=function(e,t,n,r){if(e){var o=n?e:e.prototype;v$(o,wU)||bU(o,wU,{configurable:!0,value:t}),r&&!sV&&X$(o,"toString",mU)}},EU=vH.WeakMap,DU=OH(EU)&&/native code/.test(hV(EU)),SU=vH.TypeError,CU=vH.WeakMap;if(DU||f$.state){var AU=f$.state||(f$.state=new CU),OU=AH(AU.get),kU=AH(AU.has),BU=AH(AU.set);tU=function(e,t){if(kU(AU,e))throw new SU("Object already initialized");return t.facade=e,BU(AU,e,t),t},nU=function(e){return OU(AU,e)||{}},rU=function(e){return kU(AU,e)}}else{var FU=YV("state");zV[FU]=!0,tU=function(e,t){if(v$(e,FU))throw new SU("Object already initialized");return t.facade=e,X$(e,FU,t),t},nU=function(e){return v$(e,FU)?e[FU]:{}},rU=function(e){return v$(e,FU)}}var TU={set:tU,get:nU,has:rU,enforce:function(e){return rU(e)?nU(e):tU(e,{})},getterFor:function(e){return function(t){var n;if(!WH(t)||(n=nU(t)).type!==e)throw SU("Incompatible receiver, "+e+" required");return n}}},_U=AH([].push),PU=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=h$(s),g=HH(h),v=V$(l,c),y=iV(g),m=0,b=f||CV,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:_U(w,d)}else switch(e){case 4:return!1;case 7:_U(w,d)}return i?-1:r||o?o:w}},jU=[PU(0),PU(1),PU(2),PU(3),PU(4),PU(5),PU(6),PU(7)][0],NU=YV("hidden"),IU=C$("toPrimitive"),LU=TU.set,RU=TU.getterFor("Symbol"),MU=Object.prototype,zU=vH.Symbol,HU=zU&&zU.prototype,$U=vH.TypeError,VU=vH.QObject,UU=KH("JSON","stringify"),WU=j$.f,GU=Y$.f,qU=fU.f,KU=jH.f,YU=AH([].push),XU=d$("symbols"),ZU=d$("op-symbols"),JU=d$("string-to-symbol-registry"),QU=d$("symbol-to-string-registry"),eW=d$("wks"),tW=!VU||!VU.prototype||!VU.prototype.findChild,nW=BH&&kH((function(){return 7!=oU(GU({},"a",{get:function(){return GU(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=WU(MU,t);r&&delete MU[t],GU(e,t,n),r&&e!==MU&&GU(MU,t,r)}:GU,rW=function(e,t){var n=XU[e]=oU(HU);return LU(n,{type:"Symbol",tag:e,description:t}),BH||(n.description=t),n},oW=function(e,t,n){e===MU&&oW(ZU,t,n),G$(e);var r=k$(t);return G$(n),v$(XU,r)?(n.enumerable?(v$(e,NU)&&e[NU][r]&&(e[NU][r]=!1),n=oU(n,{enumerable:NH(0,!1)})):(v$(e,NU)||GU(e,NU,NH(1,{})),e[NU][r]=!0),nW(e,r,n)):GU(e,r,n)},iW=function(e,t){G$(e);var n=UH(t),r=WV(n).concat(lW(n));return jU(r,(function(t){BH&&!TH(aW,n,t)||oW(e,t,n[t])})),e},aW=function(e){var t=k$(e),n=TH(KU,this,t);return!(this===MU&&v$(XU,t)&&!v$(ZU,t))&&(!(n||!v$(this,t)||!v$(XU,t)||v$(this,NU)&&this[NU][t])||n)},uW=function(e,t){var n=UH(e),r=k$(t);if(n!==MU||!v$(XU,r)||v$(ZU,r)){var o=WU(n,r);return!o||!v$(XU,r)||v$(n,NU)&&n[NU][r]||(o.enumerable=!0),o}},sW=function(e){var t=qU(UH(e)),n=[];return jU(t,(function(e){v$(XU,e)||v$(zV,e)||YU(n,e)})),n},lW=function(e){var t=e===MU,n=qU(t?ZU:UH(e)),r=[];return jU(n,(function(e){!v$(XU,e)||t&&!v$(MU,e)||YU(r,XU[e])})),r};if(n$||(HU=(zU=function(){if(YH(HU,this))throw $U("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?jV(arguments[0]):void 0,t=w$(e),n=function(e){this===MU&&TH(n,ZU,e),v$(this,NU)&&v$(this[NU],t)&&(this[NU][t]=!1),nW(this,t,NH(1,e))};return BH&&tW&&nW(MU,t,{configurable:!0,set:n}),rW(t,e)}).prototype,hU(HU,"toString",(function(){return RU(this).tag})),hU(zU,"withoutSetter",(function(e){return rW(w$(e),e)})),jH.f=aW,Y$.f=oW,j$.f=uW,aU.f=fU.f=sW,dU.f=lW,gU.f=function(e){return rW(C$(e),e)},BH&&GU(HU,"description",{configurable:!0,get:function(){return RU(this).description}})),Q$({global:!0,wrap:!0,forced:!n$,sham:!n$},{Symbol:zU}),jU(WV(eW),(function(e){yU(e)})),Q$({target:"Symbol",stat:!0,forced:!n$},{for:function(e){var t=jV(e);if(v$(JU,t))return JU[t];var n=zU(t);return JU[t]=n,QU[n]=t,n},keyFor:function(e){if(!i$(e))throw $U(e+" is not a symbol");if(v$(QU,e))return QU[e]},useSetter:function(){tW=!0},useSimple:function(){tW=!1}}),Q$({target:"Object",stat:!0,forced:!n$,sham:!BH},{create:function(e,t){return void 0===t?oU(e):iW(oU(e),t)},defineProperty:oW,defineProperties:iW,getOwnPropertyDescriptor:uW}),Q$({target:"Object",stat:!0,forced:!n$},{getOwnPropertyNames:sW,getOwnPropertySymbols:lW}),Q$({target:"Object",stat:!0,forced:kH((function(){dU.f(1)}))},{getOwnPropertySymbols:function(e){return dU.f(h$(e))}}),UU){var cW=!n$||kH((function(){var e=zU();return"[null]"!=UU([e])||"{}"!=UU({a:e})||"{}"!=UU(Object(e))}));Q$({target:"JSON",stat:!0,forced:cW},{stringify:function(e,t,n){var r=pU(arguments),o=t;if((WH(t)||void 0!==e)&&!i$(e))return eV(t)||(t=function(e,t){if(OH(o)&&(t=TH(o,this,e,t)),!i$(t))return t}),r[1]=t,xH(UU,null,r)}})}if(!HU[IU]){var fW=HU.valueOf;hU(HU,IU,(function(e){return TH(fW,this)}))}xU(zU,"Symbol"),zV[NU]=!0,yU("asyncIterator"),yU("hasInstance"),yU("isConcatSpreadable"),yU("iterator"),yU("match"),yU("matchAll"),yU("replace"),yU("search"),yU("species"),yU("split"),yU("toPrimitive"),yU("toStringTag"),yU("unscopables"),xU(vH.JSON,"JSON",!0);var dW,pW,hW,gW=GH.Symbol,vW={},yW=Function.prototype,mW=BH&&Object.getOwnPropertyDescriptor,bW=v$(yW,"name"),wW={EXISTS:bW,PROPER:bW&&"something"===function(){}.name,CONFIGURABLE:bW&&(!BH||BH&&mW(yW,"name").configurable)},xW=!kH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),EW=YV("IE_PROTO"),DW=vH.Object,SW=DW.prototype,CW=xW?DW.getPrototypeOf:function(e){var t=h$(e);if(v$(t,EW))return t[EW];var n=t.constructor;return OH(n)&&t instanceof n?n.prototype:t instanceof DW?SW:null},AW=C$("iterator"),OW=!1;[].keys&&("next"in(hW=[].keys())?(pW=CW(CW(hW)))!==Object.prototype&&(dW=pW):OW=!0);var kW=null==dW||kH((function(){var e={};return dW[AW].call(e)!==e}));dW=kW?{}:oU(dW),OH(dW[AW])||hU(dW,AW,(function(){return this}));var BW={IteratorPrototype:dW,BUGGY_SAFARI_ITERATORS:OW},FW=BW.IteratorPrototype,TW=function(){return this};vH.String,vH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{AH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var _W=wW.PROPER,PW=BW.BUGGY_SAFARI_ITERATORS,jW=C$("iterator"),NW=function(){return this},IW=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=oU(FW,{next:NH(1,n)}),xU(e,o,!1,!0),vW[o]=TW}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!PW&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[jW]||p["@@iterator"]||o&&p[o],g=!PW&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=CW(v.call(new e)))!==Object.prototype&&u.next&&(xU(u,f,!0,!0),vW[f]=NW),_W&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return TH(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(PW||d||!(l in p))&&hU(p,l,s[l]);else Q$({target:t,proto:!0,forced:PW||d},s);return a&&p[jW]!==g&&hU(p,jW,g,{name:o}),vW[t]=g,s},LW=TU.set,RW=TU.getterFor("Array Iterator");IW(Array,"Array",(function(e,t){LW(this,{type:"Array Iterator",target:UH(e),index:0,kind:t})}),(function(){var e=RW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),vW.Arguments=vW.Array;var MW=C$("toStringTag");for(var zW in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var HW=vH[zW],$W=HW&&HW.prototype;$W&&dV($W)!==MW&&X$($W,MW,zW),vW[zW]=vW.Array}var VW=gW;yU("asyncDispose"),yU("dispose"),yU("matcher"),yU("metadata"),yU("observable"),yU("patternMatch"),yU("replaceAll");var UW=VW,WW=AH("".charAt),GW=AH("".charCodeAt),qW=AH("".slice),KW=function(e){return function(t,n){var r,o,i=jV(VH(t)),a=rV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=GW(i,a))<55296||r>56319||a+1===u||(o=GW(i,a+1))<56320||o>57343?e?WW(i,a):r:e?qW(i,a,a+2):o-56320+(r-55296<<10)+65536}},YW=(KW(!1),KW(!0)),XW=TU.set,ZW=TU.getterFor("String Iterator");IW(String,"String",(function(e){XW(this,{type:"String Iterator",string:jV(e),index:0})}),(function(){var e,t=ZW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=YW(n,r),t.index+=e.length,{value:e,done:!1})}));var JW=gU.f("iterator"),QW=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(lP((function(e){function t(n){return"function"==typeof UW&&"symbol"==typeof JW?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof UW&&e.constructor===UW&&e!==UW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),eG=rN.EXISTS,tG=jj.f,nG=Function.prototype,rG=AP(nG.toString),oG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,iG=AP(oG.exec);gP&&!eG&&tG(nG,"name",{configurable:!0,get:function(){try{return iG(oG,rG(this))[1]}catch(e){return""}}});var aG=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=pf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!oR(pf.nodes(e,{match:function(t){return"pre"===aO.getNodeType(t)||!!pf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),uG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("fontSize.title"),t.iconSvg=jR,t.mark="fontSize",t}return QL(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:H_("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===QW(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(aG),sG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("fontFamily.title"),t.iconSvg=NR,t.mark="fontFamily",t.selectPanelWidth=150,t}return QL(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:H_("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===QW(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(aG),lG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&UM(i,{fontSize:r}),o&&UM(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Lf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((KL(t)||"span"!==XL(n=gp(t)))&&(n=gp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),YL(n)):t},preParseHtml:[fH],parseStyleHtml:function(e,t,n){var r=gp(e);if(!Lf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=ZL(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=ZL(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new uG},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new sG},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},cG={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=gp(e),n=ZL(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},fG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=oR(pf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":oR(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),dG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("indent.decrease"),t.iconSvg=IR,t}return QL(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){ed.setNodes(e,{indent:null},{match:function(e){return uf.isElement(e)}})},t}(fG),pG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("indent.increase"),t.iconSvg=LR,t}return QL(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){ed.setNodes(e,{indent:"2em"},{match:function(e){return uf.isElement(e)},mode:"highest"})},t}(fG),hG={renderStyle:function(e,t){if(!uf.isElement(e))return t;var n=e.indent,r=t;return n&&UM(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!uf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=gp(t);return r.css("text-indent",n),YL(r)},preParseHtml:[cG],parseStyleHtml:function(e,t,n){var r=gp(e);if(!uf.isElement(t))return t;var o=t,i=ZL(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new pG}},{key:"delIndent",factory:function(){return new dG}}]},gG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){if(pf.isVoid(e,t)&&pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),vG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("justify.left"),t.iconSvg=RR,t}return QL(t,e),t.prototype.exec=function(e,t){ed.setNodes(e,{textAlign:"left"},{match:function(t){return uf.isElement(t)&&!e.isInline(t)}})},t}(gG),yG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("justify.right"),t.iconSvg=MR,t}return QL(t,e),t.prototype.exec=function(e,t){ed.setNodes(e,{textAlign:"right"},{match:function(t){return uf.isElement(t)&&!e.isInline(t)}})},t}(gG),mG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("justify.center"),t.iconSvg=zR,t}return QL(t,e),t.prototype.exec=function(e,t){ed.setNodes(e,{textAlign:"center"},{match:function(t){return uf.isElement(t)&&!e.isInline(t)}})},t}(gG),bG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=H_("justify.justify"),t.iconSvg=HR,t}return QL(t,e),t.prototype.exec=function(e,t){ed.setNodes(e,{textAlign:"justify"},{match:function(t){return uf.isElement(t)&&!e.isInline(t)}})},t}(gG),wG={renderStyle:function(e,t){if(!uf.isElement(e))return t;var n=e.textAlign,r=t;return n&&UM(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!uf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=gp(t);return r.css("text-align",n),YL(r)},parseStyleHtml:function(e,t,n){var r=gp(e);if(!uf.isElement(t))return t;var o=t,i=ZL(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new vG}},{key:"justifyRight",factory:function(){return new yG}},{key:"justifyCenter",factory:function(){return new mG}},{key:"justifyJustify",factory:function(){return new bG}}]},xG=function(){function e(){this.title=H_("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:H_("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=oR(pf.nodes(e,{match:function(e){var t=aO.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":uf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){ed.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),EG={renderStyle:function(e,t){if(!uf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&UM(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!uf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=gp(t);return r.css("line-height",n),YL(r)},parseStyleHtml:function(e,t,n){var r=gp(e);if(!uf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=ZL(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new xG},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},DG=function(){function e(){this.title=H_("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),SG=function(){function e(){this.title=H_("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),CG={menus:[{key:"redo",factory:function(){return new DG}},{key:"undo",factory:function(){return new SG}}]},AG={type:"divider",renderElem:function(e,t,n){return Lh("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:aO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Lh("hr")])}},OG=function(){function e(){this.title=H_("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=aO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){ed.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),kG={renderElems:[AG],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new OG}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=oR(e,2),o=t[0],i=t[1];if("divider"!==aO.getNodeType(o))return n([o,i]);aO.isLastNode(r,o)&&ed.insertNodes(r,aO.genEmptyParagraph(),{at:[i[0]+1]})},r}},BG=nI.map;jN({target:"Array",proto:!0,forced:!oI("map")},{map:function(e){return BG(this,e,arguments.length>1?arguments[1]:void 0)}});var FG=AP([].join),TG=_P!=Object,_G=yR("join",",");jN({target:"Array",proto:!0,forced:TG||!_G},{join:function(e){return FG(NP(this),void 0===e?",":e)}});var PG=function(){function e(){this.title=H_("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=aO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=aO.getParentNode(e,t);return null==n||"pre"!==aO.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=aO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=aO.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=mf.string(t);ed.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));ed.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=pf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=rR(i),u=a.next();!u.done;u=a.next()){var s=oR(u.value,1)[0];s&&o.push(mf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}ed.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};ed.insertNodes(e,l,{mode:"highest"})},e}(),jG={key:"codeBlock",factory:function(){return new PG}};jN({target:"String",proto:!0,forced:cR("anchor")},{anchor:function(e){return lR(this,"a","name",e)}}),YI("match",(function(e,t,n){return[function(t){var n=jP(this),r=null==t?void 0:tj(t,e);return r?yP(r,t,n):new RegExp(t)[e](lI(n))},function(e){var r=Tj(this),o=lI(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return cL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=cL(r,o));){var c=lI(u[0]);s[l]=c,""===c&&(r.lastIndex=tL(o,dN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var NG={menus:[jG],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=aO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=mf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=oR(e,2),r=t[0],i=t[1],a=aO.getNodeType(r);return"code"===a&&i.length<=1&&ed.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(aO.isLastNode(o,r)&&ed.insertNodes(o,aO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==aO.getNodeType(r.children[0])&&(ed.unwrapNodes(o),ed.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=aO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");pf.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return tg("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return tg("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=gp(e);if("code"!==XL(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:gp(e)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return"code"===aO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===aO.getNodeType(e)}))}}}]},IG=function(){function e(){this.title=H_("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),LG={menus:[{key:"fullScreen",factory:function(){return new IG}}]},RG=function(){function e(){this.title=H_("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Ff.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];ed.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(pf.start(e,r))}},e}(),MG=[JR,XM,lG,hG,wG,EG,Kz,kG,lH,yz,NG,uH,MM,aR,Zz,CG,LG,{menus:[{key:"enter",factory:function(){return new RG}}]}];M_("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),M_("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var zG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function HG(e){var t={exports:{}};return e(t,t.exports),t.exports}var $G,VG,UG=function(e){return e&&e.Math==Math&&e},WG=UG("object"==typeof globalThis&&globalThis)||UG("object"==typeof window&&window)||UG("object"==typeof self&&self)||UG("object"==typeof zG&&zG)||function(){return this}()||Function("return this")(),GG=Function.prototype,qG=GG.bind,KG=GG.call,YG=qG&&qG.bind(KG),XG=qG?function(e){return e&&YG(KG,e)}:function(e){return e&&function(){return KG.apply(e,arguments)}},ZG=function(e){try{return!!e()}catch(e){return!0}},JG=XG({}.toString),QG=XG("".slice),eq=function(e){return QG(JG(e),8,-1)},tq=WG.Object,nq=XG("".split),rq=ZG((function(){return!tq("z").propertyIsEnumerable(0)}))?function(e){return"String"==eq(e)?nq(e,""):tq(e)}:tq,oq=WG.TypeError,iq=function(e){if(null==e)throw oq("Can't call method on "+e);return e},aq=function(e){return rq(iq(e))},uq=Object.defineProperty,sq=function(e,t){try{uq(WG,e,{value:t,configurable:!0,writable:!0})}catch(n){WG[e]=t}return t},lq=WG["__core-js_shared__"]||sq("__core-js_shared__",{}),cq=HG((function(e){(e.exports=function(e,t){return lq[e]||(lq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),fq=WG.Object,dq=function(e){return fq(iq(e))},pq=XG({}.hasOwnProperty),hq=Object.hasOwn||function(e,t){return pq(dq(e),t)},gq=0,vq=Math.random(),yq=XG(1..toString),mq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+yq(++gq+vq,36)},bq=function(e){return"function"==typeof e},wq=function(e){return bq(e)?e:void 0},xq=function(e,t){return arguments.length<2?wq(WG[e]):WG[e]&&WG[e][t]},Eq=xq("navigator","userAgent")||"",Dq=WG.process,Sq=WG.Deno,Cq=Dq&&Dq.versions||Sq&&Sq.version,Aq=Cq&&Cq.v8;Aq&&(VG=($G=Aq.split("."))[0]>0&&$G[0]<4?1:+($G[0]+$G[1])),!VG&&Eq&&(!($G=Eq.match(/Edge\/(\d+)/))||$G[1]>=74)&&($G=Eq.match(/Chrome\/(\d+)/))&&(VG=+$G[1]);var Oq,kq=VG,Bq=!!Object.getOwnPropertySymbols&&!ZG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kq&&kq<41})),Fq=Bq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Tq=cq("wks"),_q=WG.Symbol,Pq=_q&&_q.for,jq=Fq?_q:_q&&_q.withoutSetter||mq,Nq=function(e){if(!hq(Tq,e)||!Bq&&"string"!=typeof Tq[e]){var t="Symbol."+e;Bq&&hq(_q,e)?Tq[e]=_q[e]:Tq[e]=Fq&&Pq?Pq(t):jq(t)}return Tq[e]},Iq=function(e){return"object"==typeof e?null!==e:bq(e)},Lq=WG.String,Rq=WG.TypeError,Mq=function(e){if(Iq(e))return e;throw Rq(Lq(e)+" is not an object")},zq=!ZG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Hq=WG.document,$q=Iq(Hq)&&Iq(Hq.createElement),Vq=function(e){return $q?Hq.createElement(e):{}},Uq=!zq&&!ZG((function(){return 7!=Object.defineProperty(Vq("div"),"a",{get:function(){return 7}}).a})),Wq=Function.prototype.call,Gq=Wq.bind?Wq.bind(Wq):function(){return Wq.apply(Wq,arguments)},qq=XG({}.isPrototypeOf),Kq=WG.Object,Yq=Fq?function(e){return"symbol"==typeof e}:function(e){var t=xq("Symbol");return bq(t)&&qq(t.prototype,Kq(e))},Xq=WG.String,Zq=function(e){try{return Xq(e)}catch(e){return"Object"}},Jq=WG.TypeError,Qq=function(e){if(bq(e))return e;throw Jq(Zq(e)+" is not a function")},eK=function(e,t){var n=e[t];return null==n?void 0:Qq(n)},tK=WG.TypeError,nK=WG.TypeError,rK=Nq("toPrimitive"),oK=function(e){var t=function(e,t){if(!Iq(e)||Yq(e))return e;var n,r=eK(e,rK);if(r){if(void 0===t&&(t="default"),n=Gq(r,e,t),!Iq(n)||Yq(n))return n;throw nK("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&bq(n=e.toString)&&!Iq(r=Gq(n,e)))return r;if(bq(n=e.valueOf)&&!Iq(r=Gq(n,e)))return r;if("string"!==t&&bq(n=e.toString)&&!Iq(r=Gq(n,e)))return r;throw tK("Can't convert object to primitive value")}(e,t)}(e,"string");return Yq(t)?t:t+""},iK=WG.TypeError,aK=Object.defineProperty,uK={f:zq?aK:function(e,t,n){if(Mq(e),t=oK(t),Mq(n),Uq)try{return aK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw iK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},sK=Math.ceil,lK=Math.floor,cK=function(e){var t=+e;return t!=t||0===t?0:(t>0?lK:sK)(t)},fK=Math.max,dK=Math.min,pK=function(e,t){var n=cK(e);return n<0?fK(n+t,0):dK(n,t)},hK=Math.min,gK=function(e){return e>0?hK(cK(e),9007199254740991):0},vK=function(e){return gK(e.length)},yK=function(e){return function(t,n,r){var o,i=aq(t),a=vK(i),u=pK(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},mK={includes:yK(!0),indexOf:yK(!1)},bK={},wK=mK.indexOf,xK=XG([].push),EK=function(e,t){var n,r=aq(e),o=0,i=[];for(n in r)!hq(bK,n)&&hq(r,n)&&xK(i,n);for(;t.length>o;)hq(r,n=t[o++])&&(~wK(i,n)||xK(i,n));return i},DK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SK=Object.keys||function(e){return EK(e,DK)},CK=zq?Object.defineProperties:function(e,t){Mq(e);for(var n,r=aq(t),o=SK(t),i=o.length,a=0;i>a;)uK.f(e,n=o[a++],r[n]);return e},AK=xq("document","documentElement"),OK=cq("keys"),kK=function(e){return OK[e]||(OK[e]=mq(e))},BK=kK("IE_PROTO"),FK=function(){},TK=function(e){return"<script>"+e+"<\/script>"},_K=function(e){e.write(TK("")),e.close();var t=e.parentWindow.Object;return e=null,t},PK=function(){try{Oq=new ActiveXObject("htmlfile")}catch(e){}var e,t;PK="undefined"!=typeof document?document.domain&&Oq?_K(Oq):((t=Vq("iframe")).style.display="none",AK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(TK("document.F=Object")),e.close(),e.F):_K(Oq);for(var n=DK.length;n--;)delete PK.prototype[DK[n]];return PK()};bK[BK]=!0;var jK=Object.create||function(e,t){var n;return null!==e?(FK.prototype=Mq(e),n=new FK,FK.prototype=null,n[BK]=e):n=PK(),void 0===t?n:CK(n,t)},NK=Nq("unscopables"),IK=Array.prototype;null==IK[NK]&&uK.f(IK,NK,{configurable:!0,value:jK(null)});var LK=function(e){IK[NK][e]=!0},RK={},MK=XG(Function.toString);bq(lq.inspectSource)||(lq.inspectSource=function(e){return MK(e)});var zK,HK,$K,VK=lq.inspectSource,UK=WG.WeakMap,WK=bq(UK)&&/native code/.test(VK(UK)),GK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qK=zq?function(e,t,n){return uK.f(e,t,GK(1,n))}:function(e,t,n){return e[t]=n,e},KK=WG.TypeError,YK=WG.WeakMap;if(WK||lq.state){var XK=lq.state||(lq.state=new YK),ZK=XG(XK.get),JK=XG(XK.has),QK=XG(XK.set);zK=function(e,t){if(JK(XK,e))throw new KK("Object already initialized");return t.facade=e,QK(XK,e,t),t},HK=function(e){return ZK(XK,e)||{}},$K=function(e){return JK(XK,e)}}else{var eY=kK("state");bK[eY]=!0,zK=function(e,t){if(hq(e,eY))throw new KK("Object already initialized");return t.facade=e,qK(e,eY,t),t},HK=function(e){return hq(e,eY)?e[eY]:{}},$K=function(e){return hq(e,eY)}}var tY,nY,rY,oY={set:zK,get:HK,has:$K,enforce:function(e){return $K(e)?HK(e):zK(e,{})},getterFor:function(e){return function(t){var n;if(!Iq(t)||(n=HK(t)).type!==e)throw KK("Incompatible receiver, "+e+" required");return n}}},iY={}.propertyIsEnumerable,aY=Object.getOwnPropertyDescriptor,uY={f:aY&&!iY.call({1:2},1)?function(e){var t=aY(this,e);return!!t&&t.enumerable}:iY},sY=Object.getOwnPropertyDescriptor,lY={f:zq?sY:function(e,t){if(e=aq(e),t=oK(t),Uq)try{return sY(e,t)}catch(e){}if(hq(e,t))return GK(!Gq(uY.f,e,t),e[t])}},cY=Function.prototype,fY=zq&&Object.getOwnPropertyDescriptor,dY=hq(cY,"name"),pY={EXISTS:dY,PROPER:dY&&"something"===function(){}.name,CONFIGURABLE:dY&&(!zq||zq&&fY(cY,"name").configurable)},hY=HG((function(e){var t=pY.CONFIGURABLE,n=oY.get,r=oY.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;bq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hq(i,"name")||t&&i.name!==f)&&qK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==WG?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:qK(e,n,i)):l?e[n]=i:sq(n,i)})(Function.prototype,"toString",(function(){return bq(this)&&n(this).source||VK(this)}))})),gY=DK.concat("length","prototype"),vY={f:Object.getOwnPropertyNames||function(e){return EK(e,gY)}},yY={f:Object.getOwnPropertySymbols},mY=XG([].concat),bY=xq("Reflect","ownKeys")||function(e){var t=vY.f(Mq(e)),n=yY.f;return n?mY(t,n(e)):t},wY=function(e,t){for(var n=bY(t),r=uK.f,o=lY.f,i=0;i<n.length;i++){var a=n[i];hq(e,a)||r(e,a,o(t,a))}},xY=/#|\.prototype\./,EY=function(e,t){var n=SY[DY(e)];return n==AY||n!=CY&&(bq(t)?ZG(t):!!t)},DY=EY.normalize=function(e){return String(e).replace(xY,".").toLowerCase()},SY=EY.data={},CY=EY.NATIVE="N",AY=EY.POLYFILL="P",OY=EY,kY=lY.f,BY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?WG:l?WG[u]||sq(u,{}):(WG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=kY(n,r))&&a.value:n[r],!OY(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;wY(i,o)}(e.sham||o&&o.sham)&&qK(i,"sham",!0),hY(n,r,i,e)}},FY=!ZG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),TY=kK("IE_PROTO"),_Y=WG.Object,PY=_Y.prototype,jY=FY?_Y.getPrototypeOf:function(e){var t=dq(e);if(hq(t,TY))return t[TY];var n=t.constructor;return bq(n)&&t instanceof n?n.prototype:t instanceof _Y?PY:null},NY=Nq("iterator"),IY=!1;[].keys&&("next"in(rY=[].keys())?(nY=jY(jY(rY)))!==Object.prototype&&(tY=nY):IY=!0),(null==tY||ZG((function(){var e={};return tY[NY].call(e)!==e})))&&(tY={}),bq(tY[NY])||hY(tY,NY,(function(){return this}));var LY={IteratorPrototype:tY,BUGGY_SAFARI_ITERATORS:IY},RY=uK.f,MY=Nq("toStringTag"),zY=function(e,t,n){e&&!hq(e=n?e:e.prototype,MY)&&RY(e,MY,{configurable:!0,value:t})},HY=LY.IteratorPrototype,$Y=function(){return this},VY=WG.String,UY=WG.TypeError,WY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=XG(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Mq(n),function(e){if("object"==typeof e||bq(e))return e;throw UY("Can't set "+VY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),GY=pY.PROPER,qY=pY.CONFIGURABLE,KY=LY.IteratorPrototype,YY=LY.BUGGY_SAFARI_ITERATORS,XY=Nq("iterator"),ZY=function(){return this},JY=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=jK(HY,{next:GK(1,n)}),zY(e,o,!1),RK[o]=$Y}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!YY&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[XY]||p["@@iterator"]||o&&p[o],g=!YY&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=jY(v.call(new e)))!==Object.prototype&&u.next&&(jY(u)!==KY&&(WY?WY(u,KY):bq(u[XY])||hY(u,XY,ZY)),zY(u,f,!0)),GY&&"values"==o&&h&&"values"!==h.name&&(qY?qK(p,"name","values"):(d=!0,g=function(){return Gq(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(YY||d||!(l in p))&&hY(p,l,s[l]);else BY({target:t,proto:!0,forced:YY||d},s);return p[XY]!==g&&hY(p,XY,g,{name:o}),RK[t]=g,s},QY=oY.set,eX=oY.getterFor("Array Iterator"),tX=JY(Array,"Array",(function(e,t){QY(this,{type:"Array Iterator",target:aq(e),index:0,kind:t})}),(function(){var e=eX(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");RK.Arguments=RK.Array,LK("keys"),LK("values"),LK("entries");var nX={};nX[Nq("toStringTag")]="z";var rX="[object z]"===String(nX),oX=Nq("toStringTag"),iX=WG.Object,aX="Arguments"==eq(function(){return arguments}()),uX=rX?eq:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=iX(e),oX))?n:aX?eq(t):"Object"==(r=eq(t))&&bq(t.callee)?"Arguments":r},sX=rX?{}.toString:function(){return"[object "+uX(this)+"]"};rX||hY(Object.prototype,"toString",sX,{unsafe:!0});var lX=WG.String,cX=function(e){if("Symbol"===uX(e))throw TypeError("Cannot convert a Symbol value to a string");return lX(e)},fX=XG("".charAt),dX=XG("".charCodeAt),pX=XG("".slice),hX=function(e){return function(t,n){var r,o,i=cX(iq(t)),a=cK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=dX(i,a))<55296||r>56319||a+1===u||(o=dX(i,a+1))<56320||o>57343?e?fX(i,a):r:e?pX(i,a,a+2):o-56320+(r-55296<<10)+65536}},gX={codeAt:hX(!1),charAt:hX(!0)},vX=gX.charAt,yX=oY.set,mX=oY.getterFor("String Iterator");JY(String,"String",(function(e){yX(this,{type:"String Iterator",string:cX(e),index:0})}),(function(){var e,t=mX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vX(n,r),t.index+=e.length,{value:e,done:!1})}));var bX=function(e,t,n){for(var r in t)hY(e,r,t[r],n);return e},wX=WG.Array,xX=Math.max,EX=vY.f,DX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],SX={f:function(e){return DX&&"Window"==eq(e)?function(e){try{return EX(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=vK(e),s=pK(void 0,u),l=pK(u,u),c=wX(xX(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=oK(o))in r?uK.f(r,a,GK(0,i)):r[a]=i;return c.length=f,c}(DX)}}(e):EX(aq(e))}},CX=ZG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),AX=Object.isExtensible,OX=ZG((function(){AX(1)}))||CX?function(e){return!!Iq(e)&&(!CX||"ArrayBuffer"!=eq(e))&&(!AX||AX(e))}:AX,kX=!ZG((function(){return Object.isExtensible(Object.preventExtensions({}))})),BX=HG((function(e){var t=uK.f,n=!1,r=mq("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=vY.f,t=XG([].splice),o={};o[r]=1,e(o).length&&(vY.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},BY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:SX.f}))},fastKey:function(e,t){if(!Iq(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hq(e,r)){if(!OX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!hq(e,r)){if(!OX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return kX&&n&&OX(e)&&!hq(e,r)&&i(e),e}};bK[r]=!0})),FX=XG(XG.bind),TX=function(e,t){return Qq(e),void 0===t?e:FX?FX(e,t):function(){return e.apply(t,arguments)}},_X=Nq("iterator"),PX=Array.prototype,jX=Nq("iterator"),NX=function(e){if(null!=e)return eK(e,jX)||eK(e,"@@iterator")||RK[uX(e)]},IX=WG.TypeError,LX=function(e,t,n){var r,o;Mq(e);try{if(!(r=eK(e,"return"))){if("throw"===t)throw n;return n}r=Gq(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Mq(r),n},RX=WG.TypeError,MX=function(e,t){this.stopped=e,this.result=t},zX=MX.prototype,HX=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=TX(t,f),v=function(e){return r&&LX(r,"normal",e),new MX(!0,e)},y=function(e){return d?(Mq(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=NX(e)))throw RX(Zq(e)+" is not iterable");if(void 0!==(c=o)&&(RK.Array===c||PX[_X]===c)){for(i=0,a=vK(e);a>i;i++)if((u=y(e[i]))&&qq(zX,u))return u;return new MX(!1)}r=function(e,t){var n=arguments.length<2?NX(e):t;if(Qq(n))return Mq(Gq(n,e));throw IX(Zq(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Gq(s,r)).done;){try{u=y(l.value)}catch(e){LX(r,"throw",e)}if("object"==typeof u&&u&&qq(zX,u))return u}return new MX(!1)},$X=WG.TypeError,VX=function(e,t){if(qq(t,e))return e;throw $X("Incorrect invocation")},UX=Nq("iterator"),WX=!1;try{var GX=0,qX={next:function(){return{done:!!GX++}},return:function(){WX=!0}};qX[UX]=function(){return this},Array.from(qX,(function(){throw 2}))}catch(Al){}var KX=Array.isArray||function(e){return"Array"==eq(e)},YX=function(){},XX=[],ZX=xq("Reflect","construct"),JX=/^\s*(?:class|function)\b/,QX=XG(JX.exec),eZ=!JX.exec(YX),tZ=function(e){if(!bq(e))return!1;try{return ZX(YX,XX,e),!0}catch(e){return!1}},nZ=!ZX||ZG((function(){var e;return tZ(tZ.call)||!tZ(Object)||!tZ((function(){e=!0}))||e}))?function(e){if(!bq(e))return!1;switch(uX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eZ||!!QX(JX,VK(e))}:tZ,rZ=Nq("species"),oZ=WG.Array,iZ=function(e,t){return new(function(e){var t;return KX(e)&&(t=e.constructor,(nZ(t)&&(t===oZ||KX(t.prototype))||Iq(t)&&null===(t=t[rZ]))&&(t=void 0)),void 0===t?oZ:t}(e))(0===t?0:t)},aZ=XG([].push),uZ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=dq(s),g=rq(h),v=TX(l,c),y=vK(g),m=0,b=f||iZ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:aZ(w,d)}else switch(e){case 4:return!1;case 7:aZ(w,d)}return i?-1:r||o?o:w}},sZ={forEach:uZ(0),map:uZ(1),filter:uZ(2),some:uZ(3),every:uZ(4),find:uZ(5),findIndex:uZ(6),filterReject:uZ(7)},lZ=BX.getWeakData,cZ=oY.set,fZ=oY.getterFor,dZ=sZ.find,pZ=sZ.findIndex,hZ=XG([].splice),gZ=0,vZ=function(e){return e.frozen||(e.frozen=new yZ)},yZ=function(){this.entries=[]},mZ=function(e,t){return dZ(e.entries,(function(e){return e[0]===t}))};yZ.prototype={get:function(e){var t=mZ(this,e);if(t)return t[1]},has:function(e){return!!mZ(this,e)},set:function(e,t){var n=mZ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=pZ(this.entries,(function(t){return t[0]===e}));return~t&&hZ(this.entries,t,1),!!~t}};var bZ,wZ={getConstructor:function(e,t,n,r){var o=e((function(e,o){VX(e,i),cZ(e,{type:t,id:gZ++,frozen:void 0}),null!=o&&HX(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=fZ(t),u=function(e,t,n){var r=a(e),o=lZ(Mq(t),!0);return!0===o?vZ(r).set(t,n):o[r.id]=n,e};return bX(i,{delete:function(e){var t=a(this);if(!Iq(e))return!1;var n=lZ(e);return!0===n?vZ(t).delete(e):n&&hq(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Iq(e))return!1;var n=lZ(e);return!0===n?vZ(t).has(e):n&&hq(n,t.id)}}),bX(i,n?{get:function(e){var t=a(this);if(Iq(e)){var n=lZ(e);return!0===n?vZ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},xZ=oY.enforce,EZ=!WG.ActiveXObject&&"ActiveXObject"in WG,DZ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SZ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=WG[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=XG(u[e]);hY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Iq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Iq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Iq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(OY(e,!bq(a)||!(o||u.forEach&&!ZG((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),BX.enable();else if(OY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ZG((function(){f.has(1)})),h=function(e,t){if(!WX)return!1;var n=!1;try{var r={};r[UX]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!o&&ZG((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){VX(e,u);var n=function(e,t,n){var r,o;return WY&&bq(r=t.constructor)&&r!==n&&Iq(o=r.prototype)&&o!==n.prototype&&WY(e,o),e}(new a,e,s);return null!=t&&HX(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,BY({global:!0,forced:s!=a},l),zY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",DZ,wZ);if(WK&&EZ){bZ=wZ.getConstructor(DZ,"WeakMap",!0),BX.enable();var CZ=SZ.prototype,AZ=XG(CZ.delete),OZ=XG(CZ.has),kZ=XG(CZ.get),BZ=XG(CZ.set);bX(CZ,{delete:function(e){if(Iq(e)&&!OX(e)){var t=xZ(this);return t.frozen||(t.frozen=new bZ),AZ(this,e)||t.frozen.delete(e)}return AZ(this,e)},has:function(e){if(Iq(e)&&!OX(e)){var t=xZ(this);return t.frozen||(t.frozen=new bZ),OZ(this,e)||t.frozen.has(e)}return OZ(this,e)},get:function(e){if(Iq(e)&&!OX(e)){var t=xZ(this);return t.frozen||(t.frozen=new bZ),OZ(this,e)?kZ(this,e):t.frozen.get(e)}return kZ(this,e)},set:function(e,t){if(Iq(e)&&!OX(e)){var n=xZ(this);n.frozen||(n.frozen=new bZ),OZ(this,e)?BZ(this,e,t):n.frozen.set(e,t)}else BZ(this,e,t);return this}})}var FZ={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},TZ=Vq("span").classList,_Z=TZ&&TZ.constructor&&TZ.constructor.prototype,PZ=_Z===Object.prototype?void 0:_Z,jZ=Nq("iterator"),NZ=Nq("toStringTag"),IZ=tX.values,LZ=function(e,t){if(e){if(e[jZ]!==IZ)try{qK(e,jZ,IZ)}catch(t){e[jZ]=IZ}if(e[NZ]||qK(e,NZ,t),FZ[t])for(var n in tX)if(e[n]!==tX[n])try{qK(e,n,tX[n])}catch(t){e[n]=tX[n]}}};for(var RZ in FZ)LZ(WG[RZ]&&WG[RZ].prototype,RZ);LZ(PZ,"DOMTokenList");var MZ=new WeakMap,zZ={type:"list-item",renderElem:function(e,t,n){MZ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=aO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Ef.previous(c),d=pf.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return tg("div",{style:u},tg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Lf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),tg("span",null,t))}},HZ=function(e,t){return(HZ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function $Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}HZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function VZ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function UZ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function WZ(e){return pf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===aO.findPath(e,t).length}})}var GZ=mK.includes;BY({target:"Array",proto:!0},{includes:function(e){return GZ(this,e,arguments.length>1?arguments[1]:void 0)}}),LK("includes");var qZ,KZ,YZ=function(){var e=Mq(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},XZ=WG.RegExp,ZZ=ZG((function(){var e=XZ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),JZ=ZZ||ZG((function(){return!XZ("a","y").sticky})),QZ={BROKEN_CARET:ZZ||ZG((function(){var e=XZ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:JZ,UNSUPPORTED_Y:ZZ},eJ=WG.RegExp,tJ=ZG((function(){var e=eJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),nJ=WG.RegExp,rJ=ZG((function(){var e=nJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),oJ=oY.get,iJ=cq("native-string-replace",String.prototype.replace),aJ=RegExp.prototype.exec,uJ=aJ,sJ=XG("".charAt),lJ=XG("".indexOf),cJ=XG("".replace),fJ=XG("".slice),dJ=(KZ=/b*/g,Gq(aJ,qZ=/a/,"a"),Gq(aJ,KZ,"a"),0!==qZ.lastIndex||0!==KZ.lastIndex),pJ=QZ.BROKEN_CARET,hJ=void 0!==/()??/.exec("")[1];(dJ||hJ||pJ||tJ||rJ)&&(uJ=function(e){var t,n,r,o,i,a,u,s=this,l=oJ(s),c=cX(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Gq(uJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=pJ&&s.sticky,h=Gq(YZ,s),g=s.source,v=0,y=c;if(p&&(h=cJ(h,"y",""),-1===lJ(h,"g")&&(h+="g"),y=fJ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==sJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),hJ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),dJ&&(r=s.lastIndex),o=Gq(aJ,p?n:s,y),p?o?(o.input=fJ(o.input,v),o[0]=fJ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:dJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),hJ&&o&&o.length>1&&Gq(iJ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=jK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var gJ=uJ;BY({target:"RegExp",proto:!0,forced:/./.exec!==gJ},{exec:gJ});var vJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return aO.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!aO.getSelectedElems(e).some((function(t){if(pf.isVoid(e,t)&&pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?ed.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):ed.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),yJ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',mJ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',bJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=H_("listModule.unOrderedList"),t.iconSvg=yJ,t}return $Z(t,e),t}(vJ),wJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=H_("listModule.orderedList"),t.iconSvg=mJ,t}return $Z(t,e),t}(vJ),xJ={key:"bulletedList",factory:function(){return new bJ}},EJ={key:"numberedList",factory:function(){return new wJ}},DJ=[],SJ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=MZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=aO.findPath(t,e);if(0===s[0])return u+1;var l=Ef.previous(s),c=pf.node(t,l);if(!c)return 0;var f=UZ(c,1)[0];if(aO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",DJ.push(i);var s=function(e){var t=MZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=aO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Ef.next(s),c=pf.node(t,l);if(!c)return 0;var f=UZ(c,1)[0];if(aO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+DJ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},CJ=Nq("species"),AJ=sZ.filter,OJ=kq>=51||!ZG((function(){var e=[];return(e.constructor={})[CJ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));BY({target:"Array",proto:!0,forced:!OJ},{filter:function(e){return AJ(this,e,arguments.length>1?arguments[1]:void 0)}});var kJ=Function.prototype,BJ=kJ.apply,FJ=kJ.bind,TJ=kJ.call,_J="object"==typeof Reflect&&Reflect.apply||(FJ?TJ.bind(BJ):function(){return TJ.apply(BJ,arguments)}),PJ=(Nq("species"),RegExp.prototype),jJ=gX.charAt,NJ=function(e,t,n){return t+(n?jJ(e,t).length:1)},IJ=Math.floor,LJ=XG("".charAt),RJ=XG("".replace),MJ=XG("".slice),zJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HJ=/\$([$&'`]|\d{1,2})/g,$J=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=HJ;return void 0!==o&&(o=dq(o),s=zJ),RJ(i,s,(function(i,s){var l;switch(LJ(s,0)){case"$":return"$";case"&":return e;case"`":return MJ(t,0,n);case"'":return MJ(t,a);case"<":l=o[MJ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=IJ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?LJ(s,1):r[f-1]+LJ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},VJ=WG.TypeError,UJ=function(e,t){var n=e.exec;if(bq(n)){var r=Gq(n,e,t);return null!==r&&Mq(r),r}if("RegExp"===eq(e))return Gq(gJ,e,t);throw VJ("RegExp#exec called on incompatible receiver")},WJ=Nq("replace"),GJ=Math.max,qJ=Math.min,KJ=XG([].concat),YJ=XG([].push),XJ=XG("".indexOf),ZJ=XG("".slice),JJ="$0"==="a".replace(/./,"$0"),QJ=!!/./[WJ]&&""===/./[WJ]("a","$0");!function(e,t,n,r){var o=Nq(e),i=!ZG((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!ZG((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=XG(/./[o]),s=function(e,t,n){var r=QJ?"$":"$0";return[function(e,n){var r=iq(this),o=null==e?void 0:eK(e,WJ);return o?Gq(o,e,r,n):Gq(t,cX(r),e,n)},function(e,o){var i=Mq(this),a=cX(e);if("string"==typeof o&&-1===XJ(o,r)&&-1===XJ(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=bq(o);s||(o=cX(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=UJ(i,a);if(null===d)break;if(YJ(f,d),!l)break;""===cX(d[0])&&(i.lastIndex=NJ(a,gK(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=cX((d=f[v])[0]),m=GJ(qJ(cK(d.index),a.length),0),b=[],w=1;w<d.length;w++)YJ(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=KJ([y],b,m,a);void 0!==x&&YJ(E,x);var D=cX(_J(o,void 0,E))}else D=$J(y,a,m,b,x,o);m>=g&&(h+=ZJ(a,g,m)+D,g=m+y.length)}return h+ZJ(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=XG(e),s=t.exec;return s===gJ||s===PJ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));hY(String.prototype,e,s[0]),hY(PJ,o,s[1])}}("replace",0,!!ZG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!JJ||QJ);var eQ=WG.TypeError,tQ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&TX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&KX(s))l=vK(s),c=tQ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw eQ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},nQ=tQ;function rQ(e){return e.length?e[0].tagName.toLowerCase():""}BY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=dq(this),n=vK(t),r=iZ(t,0);return r.length=nQ(r,t,t,n,0,void 0===e?1:cK(e)),r}}),LK("flat"),BY({global:!0},{globalThis:WG}),Ip&&(gp.fn.append=Ip),bp&&(gp.fn.attr=bp),Rp&&(gp.fn.parent=Rp);var oQ={renderElems:[zZ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Ff.isExpanded(n))t(e);else{var r=aO.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?ed.setNodes(o,{level:a-1}):ed.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Ff.isCollapsed(a)){var u=aO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void ed.setNodes(o,{level:l+1})}}if(Ff.isExpanded(a)){var c=0,f=!1;try{for(var d=VZ(WZ(o)),p=d.next();!p.done;p=d.next()){var h=UZ(p.value,1)[0];"list-item"===aO.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=VZ(WZ(o)),v=g.next();!v.done;v=g.next()){var y=UZ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,ed.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=UZ(e,2),n=t[0],i=t[1],a=aO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||ed.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[xJ,EJ],elemsToHtml:[SJ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);return 0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",ordered:function(e){return"ol"===rQ(e.parent())}(r),level:function(e){for(var t=0,n=e.parent(),r=rQ(n);"ul"===r||"ol"===r;)r=rQ(n=n.parent()),t++;return t-1}(r),children:t}}}]},iQ=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[i]=D[a]=D[b]=D[u]=D[w]=D[s]=D[l]=D[c]=D[f]=D[d]=D[p]=D[g]=D[v]=D[y]=D[m]=!1;var S="object"==typeof r&&r&&r.Object===Object&&r,C="object"==typeof self&&self&&self.Object===Object&&self,A=S||C||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,B=k&&k.exports===O,F=B&&S.process,T=function(){try{return F&&F.binding&&F.binding("util")}catch(e){}}(),_=T&&T.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,L=Function.prototype,R=Object.prototype,M=A["__core-js_shared__"],z=L.toString,H=R.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=R.toString,U=RegExp("^"+z.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?A.Buffer:void 0,G=A.Symbol,q=A.Uint8Array,K=R.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Ce(A,"DataView"),te=Ce(A,"Map"),ne=Ce(A,"Promise"),re=Ce(A,"Set"),oe=Ce(A,"WeakMap"),ie=Ce(Object,"create"),ae=Be(ee),ue=Be(te),se=Be(ne),le=Be(re),ce=Be(oe),fe=G?G.prototype:void 0,de=fe?fe.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new he(e);this.size=t.size}function me(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=H.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=V.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return V.call(e)}(e)}function we(e){return Le(e)&&be(e)==i}function xe(e,t,n,r,o){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=_e(e),m=_e(t),x=h?a:Oe(e),E=m?a:Oe(t),D=(x=x==i?p:x)==p,S=(E=E==i?p:E)==p,C=x==E;if(C&&Pe(e)){if(!Pe(t))return!1;h=!0,D=!1}if(C&&!D)return c||(c=new ye),h||Re(e)?Ee(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case u:case s:case d:return Fe(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=j;case v:var p=1&r;if(c||(c=N),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var m=Ee(c(e),c(t),r,o,i,a);return a.delete(e),m;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,x,n,r,o,c);if(!(1&n)){var A=D&&H.call(e,"__wrapped__"),O=S&&H.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return c||(c=new ye),o(k,B,n,r,c)}}return!!C&&(c||(c=new ye),function(e,t,n,r,o,i){var a=1&n,u=De(e),s=u.length;if(s!=De(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:H.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,c))}(e,t,n,r,xe,o))}function Ee(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!P(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function De(e){return function(e,t,n){var r=t(e);return _e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Me,Ae)}function Se(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||function(e){return!!$&&$ in e}(e))&&(je(e)?U:x).test(Be(e))}(n)?n:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:H.call(t,e)},pe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&void 0===t?n:t,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Se(this,e).get(e)},ge.prototype.has=function(e){return Se(this,e).has(e)},ge.prototype.set=function(e,t){var n=Se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Ae=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Z(e),(function(t){return K.call(e,t)})))}:function(){return[]},Oe=be;function ke(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(ee&&Oe(new ee(new ArrayBuffer(1)))!=w||te&&Oe(new te)!=f||ne&&Oe(ne.resolve())!=h||re&&Oe(new re)!=v||oe&&Oe(new oe)!=m)&&(Oe=function(e){var t=be(e),n=t==p?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ae:return w;case ue:return f;case se:return h;case le:return v;case ce:return m}return t});var Te=we(function(){return arguments}())?we:function(e){return Le(e)&&H.call(e,"callee")&&!K.call(e,"callee")},_e=Array.isArray,Pe=J||function(){return!1};function je(e){if(!Ie(e))return!1;var t=be(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var Re=_?function(e){return function(t){return e(t)}}(_):function(e){return Le(e)&&Ne(e.length)&&!!D[be(e)]};function Me(e){return null!=(t=e)&&Ne(t.length)&&!je(t)?function(e,t){var n=_e(e),r=!n&&Te(e),o=!n&&!r&&Pe(e),i=!n&&!r&&!o&&Re(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!H.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ke(l,s))||u.push(l);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||R))return Q(e);var t,n,r=[];for(var o in Object(e))H.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return xe(e,t)}}));M_("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),M_("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var aQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function uQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var sQ,lQ,cQ=function(e){return e&&e.Math==Math&&e},fQ=cQ("object"==typeof globalThis&&globalThis)||cQ("object"==typeof window&&window)||cQ("object"==typeof self&&self)||cQ("object"==typeof aQ&&aQ)||function(){return this}()||Function("return this")(),dQ=function(e){try{return!!e()}catch(e){return!0}},pQ=!dQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),hQ=Function.prototype.call,gQ=hQ.bind?hQ.bind(hQ):function(){return hQ.apply(hQ,arguments)},vQ={}.propertyIsEnumerable,yQ=Object.getOwnPropertyDescriptor,mQ={f:yQ&&!vQ.call({1:2},1)?function(e){var t=yQ(this,e);return!!t&&t.enumerable}:vQ},bQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wQ=Function.prototype,xQ=wQ.bind,EQ=wQ.call,DQ=xQ&&xQ.bind(EQ),SQ=xQ?function(e){return e&&DQ(EQ,e)}:function(e){return e&&function(){return EQ.apply(e,arguments)}},CQ=SQ({}.toString),AQ=SQ("".slice),OQ=function(e){return AQ(CQ(e),8,-1)},kQ=fQ.Object,BQ=SQ("".split),FQ=dQ((function(){return!kQ("z").propertyIsEnumerable(0)}))?function(e){return"String"==OQ(e)?BQ(e,""):kQ(e)}:kQ,TQ=fQ.TypeError,_Q=function(e){if(null==e)throw TQ("Can't call method on "+e);return e},PQ=function(e){return FQ(_Q(e))},jQ=function(e){return"function"==typeof e},NQ=function(e){return"object"==typeof e?null!==e:jQ(e)},IQ=function(e){return jQ(e)?e:void 0},LQ=function(e,t){return arguments.length<2?IQ(fQ[e]):fQ[e]&&fQ[e][t]},RQ=SQ({}.isPrototypeOf),MQ=LQ("navigator","userAgent")||"",zQ=fQ.process,HQ=fQ.Deno,$Q=zQ&&zQ.versions||HQ&&HQ.version,VQ=$Q&&$Q.v8;VQ&&(lQ=(sQ=VQ.split("."))[0]>0&&sQ[0]<4?1:+(sQ[0]+sQ[1])),!lQ&&MQ&&(!(sQ=MQ.match(/Edge\/(\d+)/))||sQ[1]>=74)&&(sQ=MQ.match(/Chrome\/(\d+)/))&&(lQ=+sQ[1]);var UQ=lQ,WQ=!!Object.getOwnPropertySymbols&&!dQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&UQ&&UQ<41})),GQ=WQ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qQ=fQ.Object,KQ=GQ?function(e){return"symbol"==typeof e}:function(e){var t=LQ("Symbol");return jQ(t)&&RQ(t.prototype,qQ(e))},YQ=fQ.String,XQ=function(e){try{return YQ(e)}catch(e){return"Object"}},ZQ=fQ.TypeError,JQ=function(e){if(jQ(e))return e;throw ZQ(XQ(e)+" is not a function")},QQ=function(e,t){var n=e[t];return null==n?void 0:JQ(n)},e0=fQ.TypeError,t0=Object.defineProperty,n0=function(e,t){try{t0(fQ,e,{value:t,configurable:!0,writable:!0})}catch(n){fQ[e]=t}return t},r0=fQ["__core-js_shared__"]||n0("__core-js_shared__",{}),o0=uQ((function(e){(e.exports=function(e,t){return r0[e]||(r0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),i0=fQ.Object,a0=function(e){return i0(_Q(e))},u0=SQ({}.hasOwnProperty),s0=Object.hasOwn||function(e,t){return u0(a0(e),t)},l0=0,c0=Math.random(),f0=SQ(1..toString),d0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+f0(++l0+c0,36)},p0=o0("wks"),h0=fQ.Symbol,g0=h0&&h0.for,v0=GQ?h0:h0&&h0.withoutSetter||d0,y0=function(e){if(!s0(p0,e)||!WQ&&"string"!=typeof p0[e]){var t="Symbol."+e;WQ&&s0(h0,e)?p0[e]=h0[e]:p0[e]=GQ&&g0?g0(t):v0(t)}return p0[e]},m0=fQ.TypeError,b0=y0("toPrimitive"),w0=function(e){var t=function(e,t){if(!NQ(e)||KQ(e))return e;var n,r=QQ(e,b0);if(r){if(void 0===t&&(t="default"),n=gQ(r,e,t),!NQ(n)||KQ(n))return n;throw m0("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&jQ(n=e.toString)&&!NQ(r=gQ(n,e)))return r;if(jQ(n=e.valueOf)&&!NQ(r=gQ(n,e)))return r;if("string"!==t&&jQ(n=e.toString)&&!NQ(r=gQ(n,e)))return r;throw e0("Can't convert object to primitive value")}(e,t)}(e,"string");return KQ(t)?t:t+""},x0=fQ.document,E0=NQ(x0)&&NQ(x0.createElement),D0=function(e){return E0?x0.createElement(e):{}},S0=!pQ&&!dQ((function(){return 7!=Object.defineProperty(D0("div"),"a",{get:function(){return 7}}).a})),C0=Object.getOwnPropertyDescriptor,A0={f:pQ?C0:function(e,t){if(e=PQ(e),t=w0(t),S0)try{return C0(e,t)}catch(e){}if(s0(e,t))return bQ(!gQ(mQ.f,e,t),e[t])}},O0=fQ.String,k0=fQ.TypeError,B0=function(e){if(NQ(e))return e;throw k0(O0(e)+" is not an object")},F0=fQ.TypeError,T0=Object.defineProperty,_0={f:pQ?T0:function(e,t,n){if(B0(e),t=w0(t),B0(n),S0)try{return T0(e,t,n)}catch(e){}if("get"in n||"set"in n)throw F0("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P0=pQ?function(e,t,n){return _0.f(e,t,bQ(1,n))}:function(e,t,n){return e[t]=n,e},j0=SQ(Function.toString);jQ(r0.inspectSource)||(r0.inspectSource=function(e){return j0(e)});var N0,I0,L0,R0=r0.inspectSource,M0=fQ.WeakMap,z0=jQ(M0)&&/native code/.test(R0(M0)),H0=o0("keys"),$0=function(e){return H0[e]||(H0[e]=d0(e))},V0={},U0=fQ.TypeError,W0=fQ.WeakMap;if(z0||r0.state){var G0=r0.state||(r0.state=new W0),q0=SQ(G0.get),K0=SQ(G0.has),Y0=SQ(G0.set);N0=function(e,t){if(K0(G0,e))throw new U0("Object already initialized");return t.facade=e,Y0(G0,e,t),t},I0=function(e){return q0(G0,e)||{}},L0=function(e){return K0(G0,e)}}else{var X0=$0("state");V0[X0]=!0,N0=function(e,t){if(s0(e,X0))throw new U0("Object already initialized");return t.facade=e,P0(e,X0,t),t},I0=function(e){return s0(e,X0)?e[X0]:{}},L0=function(e){return s0(e,X0)}}var Z0={set:N0,get:I0,has:L0,enforce:function(e){return L0(e)?I0(e):N0(e,{})},getterFor:function(e){return function(t){var n;if(!NQ(t)||(n=I0(t)).type!==e)throw U0("Incompatible receiver, "+e+" required");return n}}},J0=Function.prototype,Q0=pQ&&Object.getOwnPropertyDescriptor,e1=s0(J0,"name"),t1={EXISTS:e1,PROPER:e1&&"something"===function(){}.name,CONFIGURABLE:e1&&(!pQ||pQ&&Q0(J0,"name").configurable)},n1=uQ((function(e){var t=t1.CONFIGURABLE,n=Z0.get,r=Z0.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;jQ(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!s0(i,"name")||t&&i.name!==f)&&P0(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==fQ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:P0(e,n,i)):l?e[n]=i:n0(n,i)})(Function.prototype,"toString",(function(){return jQ(this)&&n(this).source||R0(this)}))})),r1=Math.ceil,o1=Math.floor,i1=function(e){var t=+e;return t!=t||0===t?0:(t>0?o1:r1)(t)},a1=Math.max,u1=Math.min,s1=function(e,t){var n=i1(e);return n<0?a1(n+t,0):u1(n,t)},l1=Math.min,c1=function(e){return e>0?l1(i1(e),9007199254740991):0},f1=function(e){return c1(e.length)},d1=function(e){return function(t,n,r){var o,i=PQ(t),a=f1(i),u=s1(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},p1=(d1(!0),d1(!1)),h1=SQ([].push),g1=function(e,t){var n,r=PQ(e),o=0,i=[];for(n in r)!s0(V0,n)&&s0(r,n)&&h1(i,n);for(;t.length>o;)s0(r,n=t[o++])&&(~p1(i,n)||h1(i,n));return i},v1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],y1=v1.concat("length","prototype"),m1={f:Object.getOwnPropertyNames||function(e){return g1(e,y1)}},b1={f:Object.getOwnPropertySymbols},w1=SQ([].concat),x1=LQ("Reflect","ownKeys")||function(e){var t=m1.f(B0(e)),n=b1.f;return n?w1(t,n(e)):t},E1=function(e,t){for(var n=x1(t),r=_0.f,o=A0.f,i=0;i<n.length;i++){var a=n[i];s0(e,a)||r(e,a,o(t,a))}},D1=/#|\.prototype\./,S1=function(e,t){var n=A1[C1(e)];return n==k1||n!=O1&&(jQ(t)?dQ(t):!!t)},C1=S1.normalize=function(e){return String(e).replace(D1,".").toLowerCase()},A1=S1.data={},O1=S1.NATIVE="N",k1=S1.POLYFILL="P",B1=S1,F1=A0.f,T1=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?fQ:l?fQ[u]||n0(u,{}):(fQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=F1(n,r))&&a.value:n[r],!B1(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;E1(i,o)}(e.sham||o&&o.sham)&&P0(i,"sham",!0),n1(n,r,i,e)}},_1={};_1[y0("toStringTag")]="z";var P1="[object z]"===String(_1),j1=y0("toStringTag"),N1=fQ.Object,I1="Arguments"==OQ(function(){return arguments}()),L1=P1?OQ:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=N1(e),j1))?n:I1?OQ(t):"Object"==(r=OQ(t))&&jQ(t.callee)?"Arguments":r},R1=fQ.String,M1=function(e){if("Symbol"===L1(e))throw TypeError("Cannot convert a Symbol value to a string");return R1(e)},z1=/"/g,H1=SQ("".replace);T1({target:"String",proto:!0,forced:dQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=M1(_Q(this)),r="<a",(r+=' name="'+H1(M1(t),z1,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var $1,V1=function(){var e=B0(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},U1=fQ.RegExp,W1=dQ((function(){var e=U1("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),G1=W1||dQ((function(){return!U1("a","y").sticky})),q1={BROKEN_CARET:W1||dQ((function(){var e=U1("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:G1,UNSUPPORTED_Y:W1},K1=Object.keys||function(e){return g1(e,v1)},Y1=pQ?Object.defineProperties:function(e,t){B0(e);for(var n,r=PQ(t),o=K1(t),i=o.length,a=0;i>a;)_0.f(e,n=o[a++],r[n]);return e},X1=LQ("document","documentElement"),Z1=$0("IE_PROTO"),J1=function(){},Q1=function(e){return"<script>"+e+"<\/script>"},e2=function(e){e.write(Q1("")),e.close();var t=e.parentWindow.Object;return e=null,t},t2=function(){try{$1=new ActiveXObject("htmlfile")}catch(e){}var e,t;t2="undefined"!=typeof document?document.domain&&$1?e2($1):((t=D0("iframe")).style.display="none",X1.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Q1("document.F=Object")),e.close(),e.F):e2($1);for(var n=v1.length;n--;)delete t2.prototype[v1[n]];return t2()};V0[Z1]=!0;var n2,r2,o2=Object.create||function(e,t){var n;return null!==e?(J1.prototype=B0(e),n=new J1,J1.prototype=null,n[Z1]=e):n=t2(),void 0===t?n:Y1(n,t)},i2=fQ.RegExp,a2=dQ((function(){var e=i2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),u2=fQ.RegExp,s2=dQ((function(){var e=u2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),l2=Z0.get,c2=o0("native-string-replace",String.prototype.replace),f2=RegExp.prototype.exec,d2=f2,p2=SQ("".charAt),h2=SQ("".indexOf),g2=SQ("".replace),v2=SQ("".slice),y2=(r2=/b*/g,gQ(f2,n2=/a/,"a"),gQ(f2,r2,"a"),0!==n2.lastIndex||0!==r2.lastIndex),m2=q1.BROKEN_CARET,b2=void 0!==/()??/.exec("")[1];(y2||b2||m2||a2||s2)&&(d2=function(e){var t,n,r,o,i,a,u,s=this,l=l2(s),c=M1(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=gQ(d2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=m2&&s.sticky,h=gQ(V1,s),g=s.source,v=0,y=c;if(p&&(h=g2(h,"y",""),-1===h2(h,"g")&&(h+="g"),y=v2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==p2(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),b2&&(n=new RegExp("^"+g+"$(?!\\s)",h)),y2&&(r=s.lastIndex),o=gQ(f2,p?n:s,y),p?o?(o.input=v2(o.input,v),o[0]=v2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:y2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),b2&&o&&o.length>1&&gQ(c2,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=o2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var w2=d2;T1({target:"RegExp",proto:!0,forced:/./.exec!==w2},{exec:w2});var x2=Array.isArray||function(e){return"Array"==OQ(e)},E2=function(){},D2=[],S2=LQ("Reflect","construct"),C2=/^\s*(?:class|function)\b/,A2=SQ(C2.exec),O2=!C2.exec(E2),k2=function(e){if(!jQ(e))return!1;try{return S2(E2,D2,e),!0}catch(e){return!1}},B2=!S2||dQ((function(){var e;return k2(k2.call)||!k2(Object)||!k2((function(){e=!0}))||e}))?function(e){if(!jQ(e))return!1;switch(L1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return O2||!!A2(C2,R0(e))}:k2,F2=function(e,t,n){var r=w0(t);r in e?_0.f(e,r,bQ(0,n)):e[r]=n},T2=y0("species"),_2=function(e){return UQ>=51||!dQ((function(){var t=[];return(t.constructor={})[T2]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},P2=SQ([].slice),j2=_2("slice"),N2=y0("species"),I2=fQ.Array,L2=Math.max;function R2(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function M2(e){var t=e.selection;if(null==t)return!1;var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=R2(n,2)[1],o=pf.start(e,r);if(Af.equals(t.anchor,o))return!0}return!1}function z2(e,t){var n,r,o=pf.nodes(e,{at:t,match:function(e){return"table"===aO.getNodeType(e)}}),i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}T1({target:"Array",proto:!0,forced:!j2},{slice:function(e,t){var n,r,o,i=PQ(this),a=f1(i),u=s1(e,a),s=s1(void 0===t?a:t,a);if(x2(i)&&(n=i.constructor,(B2(n)&&(n===I2||x2(n.prototype))||NQ(n)&&null===(n=n[N2]))&&(n=void 0),n===I2||void 0===n))return P2(i,u,s);for(r=new(void 0===n?I2:n)(L2(s-u,0)),o=0;u<s;u++,o++)u in i&&F2(r,o,i[u]);return r.length=o,r}});var H2=SQ(SQ.bind),$2=y0("species"),V2=fQ.Array,U2=function(e,t){return new(function(e){var t;return x2(e)&&(t=e.constructor,(B2(t)&&(t===V2||x2(t.prototype))||NQ(t)&&null===(t=t[$2]))&&(t=void 0)),void 0===t?V2:t}(e))(0===t?0:t)},W2=SQ([].push),G2=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=a0(s),g=FQ(h),v=function(e,t){return JQ(e),void 0===t?e:H2?H2(e,t):function(){return e.apply(t,arguments)}}(l,c),y=f1(g),m=0,b=f||U2,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:W2(w,d)}else switch(e){case 4:return!1;case 7:W2(w,d)}return i?-1:r||o?o:w}},q2={forEach:G2(0),map:G2(1),filter:G2(2),some:G2(3),every:G2(4),find:G2(5),findIndex:G2(6),filterReject:G2(7)},K2=q2.map;T1({target:"Array",proto:!0,forced:!_2("map")},{map:function(e){return K2(this,e,arguments.length>1?arguments[1]:void 0)}});var Y2=P1?{}.toString:function(){return"[object "+L1(this)+"]"};function X2(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function Z2(e){return X2(e).every((function(e){return!!e.isHeader}))}P1||n1(Object.prototype,"toString",Y2,{unsafe:!0});var J2=t1.PROPER,Q2=RegExp.prototype,e4=Q2.toString,t4=SQ(V1),n4=dQ((function(){return"/a/b"!=e4.call({source:"a",flags:"b"})})),r4=J2&&"toString"!=e4.name;(n4||r4)&&n1(RegExp.prototype,"toString",(function(){var e=B0(this),t=M1(e.source),n=e.flags;return"/"+t+"/"+M1(void 0===n&&RQ(Q2,e)&&!("flags"in Q2)?t4(e):n)}),{unsafe:!0});var o4=y0("unscopables"),i4=Array.prototype;null==i4[o4]&&_0.f(i4,o4,{configurable:!0,value:o2(null)});var a4=q2.find,u4=!0;"find"in[]&&Array(1).find((function(){u4=!1})),T1({target:"Array",proto:!0,forced:u4},{find:function(e){return a4(this,e,arguments.length>1?arguments[1]:void 0)}}),i4[o4].find=!0;var s4=Function.prototype,l4=s4.apply,c4=s4.bind,f4=s4.call,d4="object"==typeof Reflect&&Reflect.apply||(c4?f4.bind(l4):function(){return f4.apply(l4,arguments)}),p4=y0("species"),h4=RegExp.prototype,g4=function(e,t,n,r){var o=y0(e),i=!dQ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!dQ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[p4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=SQ(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=SQ(e),s=t.exec;return s===w2||s===h4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));n1(String.prototype,e,s[0]),n1(h4,o,s[1])}r&&P0(h4[o],"sham",!0)},v4=y0("match"),y4=fQ.TypeError,m4=y0("species"),b4=SQ("".charAt),w4=SQ("".charCodeAt),x4=SQ("".slice),E4=function(e){return function(t,n){var r,o,i=M1(_Q(t)),a=i1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=w4(i,a))<55296||r>56319||a+1===u||(o=w4(i,a+1))<56320||o>57343?e?b4(i,a):r:e?x4(i,a,a+2):o-56320+(r-55296<<10)+65536}},D4=(E4(!1),E4(!0)),S4=function(e,t,n){return t+(n?D4(e,t).length:1)},C4=fQ.Array,A4=Math.max,O4=function(e,t,n){for(var r=f1(e),o=s1(t,r),i=s1(void 0===n?r:n,r),a=C4(A4(i-o,0)),u=0;o<i;o++,u++)F2(a,u,e[o]);return a.length=u,a},k4=fQ.TypeError,B4=function(e,t){var n=e.exec;if(jQ(n)){var r=gQ(n,e,t);return null!==r&&B0(r),r}if("RegExp"===OQ(e))return gQ(w2,e,t);throw k4("RegExp#exec called on incompatible receiver")},F4=q1.UNSUPPORTED_Y,T4=Math.min,_4=[].push,P4=SQ(/./.exec),j4=SQ(_4),N4=SQ("".slice);g4("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=M1(_Q(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!NQ(r=e)||!(void 0!==(o=r[v4])?o:"RegExp"==OQ(r)))return gQ(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=gQ(w2,p,i))&&!((s=p.lastIndex)>d&&(j4(c,N4(i,d,u.index)),u.length>1&&u.index<i.length&&d4(_4,c,O4(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&P4(p,"")||j4(c,""):j4(c,N4(i,d)),c.length>a?O4(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:gQ(t,this,e,n)}:t,[function(t,n){var o=_Q(this),i=null==t?void 0:QQ(t,e);return i?gQ(i,t,o,n):gQ(r,M1(o),t,n)},function(e,o){var i=B0(this),a=M1(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=B0(e).constructor;return void 0===r||null==(n=B0(r)[m4])?t:function(e){if(B2(e))return e;throw y4(XQ(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(F4?"g":"y"),f=new s(F4?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===B4(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=F4?0:h;var v,y=B4(f,F4?N4(a,h):a);if(null===y||(v=T4(c1(f.lastIndex+(F4?h:0)),a.length))===p)h=S4(a,h,l);else{if(j4(g,N4(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(j4(g,y[m]),g.length===d)return g;h=p=v}}return j4(g,N4(a,p)),g}]}),!!dQ((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),F4);var I4="\t\n\v\f\r                 \u2028\u2029\ufeff",L4=SQ("".replace),R4="["+I4+"]",M4=RegExp("^"+R4+R4+"*"),z4=RegExp(R4+R4+"*$"),H4=function(e){return function(t){var n=M1(_Q(t));return 1&e&&(n=L4(n,M4,"")),2&e&&(n=L4(n,z4,"")),n}},$4={start:H4(1),end:H4(2),trim:H4(3)},V4=t1.PROPER,U4=$4.trim;function W4(e){return e.length?e[0].tagName.toLowerCase():""}T1({target:"String",proto:!0,forced:function(e){return dQ((function(){return!!I4[e]()||"​…᠎"!=="​…᠎"[e]()||V4&&I4[e].name!==e}))}("trim")},{trim:function(){return U4(this)}}),T1({global:!0},{globalThis:fQ}),Ip&&(gp.fn.append=Ip),Dp&&(gp.fn.on=Dp),qp&&(gp.fn.focus=qp),bp&&(gp.fn.attr=bp),Ep&&(gp.fn.val=Ep),Pp&&(gp.fn.html=Pp),xp&&(gp.fn.dataset=xp),vp&&(gp.fn.addClass=vp),yp&&(gp.fn.removeClass=yp),Hp&&(gp.fn.children=Hp),Tp&&(gp.fn.each=Tp),zp&&(gp.fn.find=zp);var G4=!1,q4=0,K4=0,Y4=null,X4=null,Z4=gp("body");function J4(e){G4=!1,X4=null,Y4=null,Z4.off("mousemove",Q4),Z4.off("mouseup",J4)}Z4.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),G4=!0;var n=e.clientX;q4=n;var r=t.getBoundingClientRect().width;K4=r,Z4.on("mousemove",Q4),Z4.on("mouseup",J4)}}));var Q4=Ch((function(e){if(G4&&null!=X4&&null!=Y4){e.preventDefault();var t=e.clientX,n=K4+(t-q4);(n=Math.floor(100*n)/100)<30&&(n=30),ed.setNodes(X4,{width:n.toString()},{at:Y4})}}),100),e3={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Ff.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=aO.findPath(e,t),a=pf.start(e,i),u=pf.end(e,i),s=Af.compare(r,u)<=0&&Af.compare(r,a)>=0,l=Af.compare(o,u)<=0&&Af.compare(o,a)>=0;return!!(s&&l&&Ef.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return tg("div",{className:"table-container","data-selected":aO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=aO.findPath(n,e),o=pf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},tg("table",{width:i,contentEditable:r},tg("colgroup",null,X2(e).map((function(e){var t=e.width;return tg("col",{width:void 0===t?"auto":t})}))),tg("tbody",null,t)))}},t3={type:"table-row",renderElem:function(e,t,n){return tg("tr",null,t)}},n3={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=aO.getParentNode(e,t);if(null==n)return!1;var r=aO.getParentNode(e,n);return null!=r&&X2(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?tg(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ch((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;G4||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",X4=n,Y4=aO.findPath(n,e)):G4||(r.style.cursor="auto",X4=null,Y4=null))}}),100)}},t):tg("td",{colSpan:a,rowSpan:s},t)}},r3={selector:"table",preParseHtml:function(e){var t=gp(e);if("table"!==W4(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},o3=q2.filter;T1({target:"Array",proto:!0,forced:!_2("filter")},{filter:function(e){return o3(this,e,arguments.length>1?arguments[1]:void 0)}});var i3=Math.floor,a3=SQ("".charAt),u3=SQ("".replace),s3=SQ("".slice),l3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c3=/\$([$&'`]|\d{1,2})/g,f3=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=c3;return void 0!==o&&(o=a0(o),s=l3),u3(i,s,(function(i,s){var l;switch(a3(s,0)){case"$":return"$";case"&":return e;case"`":return s3(t,0,n);case"'":return s3(t,a);case"<":l=o[s3(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=i3(c/10);return 0===f?i:f<=u?void 0===r[f-1]?a3(s,1):r[f-1]+a3(s,1):i}l=r[c-1]}return void 0===l?"":l}))},d3=y0("replace"),p3=Math.max,h3=Math.min,g3=SQ([].concat),v3=SQ([].push),y3=SQ("".indexOf),m3=SQ("".slice),b3="$0"==="a".replace(/./,"$0"),w3=!!/./[d3]&&""===/./[d3]("a","$0");g4("replace",(function(e,t,n){var r=w3?"$":"$0";return[function(e,n){var r=_Q(this),o=null==e?void 0:QQ(e,d3);return o?gQ(o,e,r,n):gQ(t,M1(r),e,n)},function(e,o){var i=B0(this),a=M1(e);if("string"==typeof o&&-1===y3(o,r)&&-1===y3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=jQ(o);s||(o=M1(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=B4(i,a);if(null===d)break;if(v3(f,d),!l)break;""===M1(d[0])&&(i.lastIndex=S4(a,c1(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=M1((d=f[v])[0]),m=p3(h3(i1(d.index),a.length),0),b=[],w=1;w<d.length;w++)v3(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=g3([y],b,m,a);void 0!==x&&v3(E,x);var D=M1(d4(o,void 0,E))}else D=f3(y,a,m,b,x,o);m>=g&&(h+=m3(a,g,m)+D,g=m+y.length)}return h+m3(a,g)}]}),!!dQ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!b3||w3);var x3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e);0===(t=t.filter((function(e){return!!Lf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===W4(r),colSpan:o,rowSpan:i,width:a,children:t}}},E3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===aO.getNodeType(e)}))}}},D3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gp(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===aO.getNodeType(e)}))}}},S3=function(){function e(){this.title=H_("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||!!aO.getSelectedElems(e).some((function(t){var n=aO.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=gp('<div class="w-e-panel-content-table"></div>'),r=gp("<span>0 &times; 0</span>"),o=gp("<table></table>"),i=0;i<10;i++){for(var a=gp("<tr></tr>"),u=0;u<10;u++){var s=gp("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=gp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){gp(e).children().each((function(e){var t=gp(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=gp(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){aO.isSelectedEmptyParagraph(e)&&ed.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);ed.insertNodes(e,i,{mode:"highest"})}},e}(),C3=function(){function e(){this.title=H_("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||ed.removeNodes(e,{mode:"highest"})},e}(),A3=function(){function e(){this.title=H_("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-cell")},universal:!0}),1),r=R2(n[0],2),o=r[0],i=r[1],a=aO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Ef.parent(i),f=Ef.next(c);ed.insertNodes(e,s,{at:f})}}},e}(),O3=function(){function e(){this.title=H_("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-row")},universal:!0}),1),r=R2(n[0],2),o=r[0],i=r[1],a=aO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?ed.removeNodes(e,{mode:"highest"}):ed.removeNodes(e,{at:i})}},e}(),k3={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},B3=D0("span").classList,F3=B3&&B3.constructor&&B3.constructor.prototype,T3=F3===Object.prototype?void 0:F3,_3=q2.forEach,P3=function(e,t){var n=[].forEach;return!!n&&dQ((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return _3(this,e,arguments.length>1?arguments[1]:void 0)},j3=function(e){if(e&&e.forEach!==P3)try{P0(e,"forEach",P3)}catch(t){e.forEach=P3}};for(var N3 in k3)k3[N3]&&j3(fQ[N3]&&fQ[N3].prototype);j3(T3);var I3=function(){function e(){this.title=H_("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-cell")},universal:!0}),1),r=R2(n[0],2),o=r[0],i=r[1],a=aO.getParentNode(e,o);if(null!=a){var u=aO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){uf.isElement(t)&&(t.children||[]).forEach((function(t){var r=aO.findPath(e,t);if(r.length===i.length&&iQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&Z2(u)&&(o.isHeader=!0),ed.insertNodes(e,o,{at:r})}}))}))}}},e}(),L3=function(){function e(){this.title=H_("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=R2(pf.nodes(e,{match:function(e){return aO.checkNodeType(e,"table-cell")},universal:!0}),1),r=R2(n[0],2),o=r[0],i=r[1],a=aO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)ed.removeNodes(e,{mode:"highest"});else{var s=aO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){uf.isElement(t)&&(t.children||[]).forEach((function(t){var n=aO.findPath(e,t);n.length===i.length&&iQ(n.slice(-1),i.slice(-1))&&ed.removeNodes(e,{at:n})}))}))}}},e}(),R3=function(){function e(){this.title=H_("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=aO.getSelectedNodeByType(e,"table");return null!=t&&Z2(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=aO.getSelectedNodeByType(e,"table");null!=r&&X2(r).forEach((function(t){return ed.setNodes(e,{isHeader:n},{at:aO.findPath(e,t)})}))}},e}(),M3=function(){function e(){this.title=H_("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=aO.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||null==aO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};ed.setNodes(e,n,{mode:"highest"})}},e}(),z3={renderElems:[e3,t3,n3],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[r3],parseElemsHtml:[x3,E3,D3],menus:[{key:"insertTable",factory:function(){return new S3}},{key:"deleteTable",factory:function(){return new C3}},{key:"insertTableRow",factory:function(){return new A3}},{key:"deleteTableRow",factory:function(){return new O3}},{key:"insertTableCol",factory:function(){return new I3}},{key:"deleteTableCol",factory:function(){return new L3}},{key:"tableHeader",factory:function(){return new R3}},{key:"tableFullWidth",factory:function(){return new M3}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==aO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!M2(s)){var t=s.selection;if(t){var r=pf.before(s,t);if(r){var o=z2(s,r),i=z2(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(aO.getSelectedNodeByType(s,"table")){var n=pf.above(e);aO.checkNodeType(n[0],"table-cell")&&ed.select(e,n[1]);var r=pf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=pf.above(e,{at:r[1]}))&&void 0!==t?t:r),ed.select(e,r[1]);else{var o=s.children||[],i=o.length;if(aO.checkNodeType(o[i-1],"table")){var u=aO.genEmptyParagraph();ed.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){M2(s)||r(e)},s.normalizeNode=function(e){var t=R2(e,2),n=t[0],r=t[1];if("table"!==aO.getNodeType(n))return o([n,r]);if(aO.isLastNode(s,n)){var i=aO.genEmptyParagraph();ed.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=aO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):pf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=aO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Ef.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==mf.string(t).length){var o=aO.findPath(s,t),i={anchor:pf.start(s,o),focus:pf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};M_("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",width:"Width",height:"Height"}}),M_("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var H3=function(){return(H3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function $3(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function V3(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function U3(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var W3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function G3(e){var t={exports:{}};return e(t,t.exports),t.exports}var q3,K3,Y3=function(e){return e&&e.Math==Math&&e},X3=Y3("object"==typeof globalThis&&globalThis)||Y3("object"==typeof window&&window)||Y3("object"==typeof self&&self)||Y3("object"==typeof W3&&W3)||function(){return this}()||Function("return this")(),Z3=function(e){try{return!!e()}catch(e){return!0}},J3=!Z3((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Q3=Function.prototype.call,e6=Q3.bind?Q3.bind(Q3):function(){return Q3.apply(Q3,arguments)},t6={}.propertyIsEnumerable,n6=Object.getOwnPropertyDescriptor,r6={f:n6&&!t6.call({1:2},1)?function(e){var t=n6(this,e);return!!t&&t.enumerable}:t6},o6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i6=Function.prototype,a6=i6.bind,u6=i6.call,s6=a6&&a6.bind(u6),l6=a6?function(e){return e&&s6(u6,e)}:function(e){return e&&function(){return u6.apply(e,arguments)}},c6=l6({}.toString),f6=l6("".slice),d6=function(e){return f6(c6(e),8,-1)},p6=X3.Object,h6=l6("".split),g6=Z3((function(){return!p6("z").propertyIsEnumerable(0)}))?function(e){return"String"==d6(e)?h6(e,""):p6(e)}:p6,v6=X3.TypeError,y6=function(e){if(null==e)throw v6("Can't call method on "+e);return e},m6=function(e){return g6(y6(e))},b6=function(e){return"function"==typeof e},w6=function(e){return"object"==typeof e?null!==e:b6(e)},x6=function(e){return b6(e)?e:void 0},E6=function(e,t){return arguments.length<2?x6(X3[e]):X3[e]&&X3[e][t]},D6=l6({}.isPrototypeOf),S6=E6("navigator","userAgent")||"",C6=X3.process,A6=X3.Deno,O6=C6&&C6.versions||A6&&A6.version,k6=O6&&O6.v8;k6&&(K3=(q3=k6.split("."))[0]>0&&q3[0]<4?1:+(q3[0]+q3[1])),!K3&&S6&&(!(q3=S6.match(/Edge\/(\d+)/))||q3[1]>=74)&&(q3=S6.match(/Chrome\/(\d+)/))&&(K3=+q3[1]);var B6=K3,F6=!!Object.getOwnPropertySymbols&&!Z3((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&B6&&B6<41})),T6=F6&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_6=X3.Object,P6=T6?function(e){return"symbol"==typeof e}:function(e){var t=E6("Symbol");return b6(t)&&D6(t.prototype,_6(e))},j6=X3.String,N6=function(e){try{return j6(e)}catch(e){return"Object"}},I6=X3.TypeError,L6=function(e){if(b6(e))return e;throw I6(N6(e)+" is not a function")},R6=function(e,t){var n=e[t];return null==n?void 0:L6(n)},M6=X3.TypeError,z6=Object.defineProperty,H6=function(e,t){try{z6(X3,e,{value:t,configurable:!0,writable:!0})}catch(n){X3[e]=t}return t},$6=X3["__core-js_shared__"]||H6("__core-js_shared__",{}),V6=G3((function(e){(e.exports=function(e,t){return $6[e]||($6[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),U6=X3.Object,W6=function(e){return U6(y6(e))},G6=l6({}.hasOwnProperty),q6=Object.hasOwn||function(e,t){return G6(W6(e),t)},K6=0,Y6=Math.random(),X6=l6(1..toString),Z6=function(e){return"Symbol("+(void 0===e?"":e)+")_"+X6(++K6+Y6,36)},J6=V6("wks"),Q6=X3.Symbol,e5=Q6&&Q6.for,t5=T6?Q6:Q6&&Q6.withoutSetter||Z6,n5=function(e){if(!q6(J6,e)||!F6&&"string"!=typeof J6[e]){var t="Symbol."+e;F6&&q6(Q6,e)?J6[e]=Q6[e]:J6[e]=T6&&e5?e5(t):t5(t)}return J6[e]},r5=X3.TypeError,o5=n5("toPrimitive"),i5=function(e){var t=function(e,t){if(!w6(e)||P6(e))return e;var n,r=R6(e,o5);if(r){if(void 0===t&&(t="default"),n=e6(r,e,t),!w6(n)||P6(n))return n;throw r5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&b6(n=e.toString)&&!w6(r=e6(n,e)))return r;if(b6(n=e.valueOf)&&!w6(r=e6(n,e)))return r;if("string"!==t&&b6(n=e.toString)&&!w6(r=e6(n,e)))return r;throw M6("Can't convert object to primitive value")}(e,t)}(e,"string");return P6(t)?t:t+""},a5=X3.document,u5=w6(a5)&&w6(a5.createElement),s5=function(e){return u5?a5.createElement(e):{}},l5=!J3&&!Z3((function(){return 7!=Object.defineProperty(s5("div"),"a",{get:function(){return 7}}).a})),c5=Object.getOwnPropertyDescriptor,f5={f:J3?c5:function(e,t){if(e=m6(e),t=i5(t),l5)try{return c5(e,t)}catch(e){}if(q6(e,t))return o6(!e6(r6.f,e,t),e[t])}},d5=X3.String,p5=X3.TypeError,h5=function(e){if(w6(e))return e;throw p5(d5(e)+" is not an object")},g5=X3.TypeError,v5=Object.defineProperty,y5={f:J3?v5:function(e,t,n){if(h5(e),t=i5(t),h5(n),l5)try{return v5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw g5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m5=J3?function(e,t,n){return y5.f(e,t,o6(1,n))}:function(e,t,n){return e[t]=n,e},b5=l6(Function.toString);b6($6.inspectSource)||($6.inspectSource=function(e){return b5(e)});var w5,x5,E5,D5=$6.inspectSource,S5=X3.WeakMap,C5=b6(S5)&&/native code/.test(D5(S5)),A5=V6("keys"),O5=function(e){return A5[e]||(A5[e]=Z6(e))},k5={},B5=X3.TypeError,F5=X3.WeakMap;if(C5||$6.state){var T5=$6.state||($6.state=new F5),_5=l6(T5.get),P5=l6(T5.has),j5=l6(T5.set);w5=function(e,t){if(P5(T5,e))throw new B5("Object already initialized");return t.facade=e,j5(T5,e,t),t},x5=function(e){return _5(T5,e)||{}},E5=function(e){return P5(T5,e)}}else{var N5=O5("state");k5[N5]=!0,w5=function(e,t){if(q6(e,N5))throw new B5("Object already initialized");return t.facade=e,m5(e,N5,t),t},x5=function(e){return q6(e,N5)?e[N5]:{}},E5=function(e){return q6(e,N5)}}var I5={set:w5,get:x5,has:E5,enforce:function(e){return E5(e)?x5(e):w5(e,{})},getterFor:function(e){return function(t){var n;if(!w6(t)||(n=x5(t)).type!==e)throw B5("Incompatible receiver, "+e+" required");return n}}},L5=Function.prototype,R5=J3&&Object.getOwnPropertyDescriptor,M5=q6(L5,"name"),z5={EXISTS:M5,PROPER:M5&&"something"===function(){}.name,CONFIGURABLE:M5&&(!J3||J3&&R5(L5,"name").configurable)},H5=G3((function(e){var t=z5.CONFIGURABLE,n=I5.get,r=I5.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;b6(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!q6(i,"name")||t&&i.name!==f)&&m5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==X3?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:m5(e,n,i)):l?e[n]=i:H6(n,i)})(Function.prototype,"toString",(function(){return b6(this)&&n(this).source||D5(this)}))})),$5=Math.ceil,V5=Math.floor,U5=function(e){var t=+e;return t!=t||0===t?0:(t>0?V5:$5)(t)},W5=Math.max,G5=Math.min,q5=function(e,t){var n=U5(e);return n<0?W5(n+t,0):G5(n,t)},K5=Math.min,Y5=function(e){return e>0?K5(U5(e),9007199254740991):0},X5=function(e){return Y5(e.length)},Z5=function(e){return function(t,n,r){var o,i=m6(t),a=X5(i),u=q5(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},J5={includes:Z5(!0),indexOf:Z5(!1)},Q5=J5.indexOf,e8=l6([].push),t8=function(e,t){var n,r=m6(e),o=0,i=[];for(n in r)!q6(k5,n)&&q6(r,n)&&e8(i,n);for(;t.length>o;)q6(r,n=t[o++])&&(~Q5(i,n)||e8(i,n));return i},n8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],r8=n8.concat("length","prototype"),o8={f:Object.getOwnPropertyNames||function(e){return t8(e,r8)}},i8={f:Object.getOwnPropertySymbols},a8=l6([].concat),u8=E6("Reflect","ownKeys")||function(e){var t=o8.f(h5(e)),n=i8.f;return n?a8(t,n(e)):t},s8=function(e,t){for(var n=u8(t),r=y5.f,o=f5.f,i=0;i<n.length;i++){var a=n[i];q6(e,a)||r(e,a,o(t,a))}},l8=/#|\.prototype\./,c8=function(e,t){var n=d8[f8(e)];return n==h8||n!=p8&&(b6(t)?Z3(t):!!t)},f8=c8.normalize=function(e){return String(e).replace(l8,".").toLowerCase()},d8=c8.data={},p8=c8.NATIVE="N",h8=c8.POLYFILL="P",g8=c8,v8=f5.f,y8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?X3:l?X3[u]||H6(u,{}):(X3[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=v8(n,r))&&a.value:n[r],!g8(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;s8(i,o)}(e.sham||o&&o.sham)&&m5(i,"sham",!0),H5(n,r,i,e)}},m8={};m8[n5("toStringTag")]="z";var b8="[object z]"===String(m8),w8=n5("toStringTag"),x8=X3.Object,E8="Arguments"==d6(function(){return arguments}()),D8=b8?d6:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=x8(e),w8))?n:E8?d6(t):"Object"==(r=d6(t))&&b6(t.callee)?"Arguments":r},S8=X3.String,C8=function(e){if("Symbol"===D8(e))throw TypeError("Cannot convert a Symbol value to a string");return S8(e)},A8="\t\n\v\f\r                 \u2028\u2029\ufeff",O8=l6("".replace),k8="["+A8+"]",B8=RegExp("^"+k8+k8+"*"),F8=RegExp(k8+k8+"*$"),T8=function(e){return function(t){var n=C8(y6(t));return 1&e&&(n=O8(n,B8,"")),2&e&&(n=O8(n,F8,"")),n}},_8={start:T8(1),end:T8(2),trim:T8(3)},P8=z5.PROPER,j8=_8.trim;function N8(e){return e.length?e[0].tagName.toLowerCase():""}function I8(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=gp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}y8({target:"String",proto:!0,forced:Z3((function(){return!!A8.trim()||"​…᠎"!=="​…᠎".trim()||P8&&"trim"!==A8.trim.name}))},{trim:function(){return j8(this)}}),y8({global:!0},{globalThis:X3}),Ip&&(gp.fn.append=Ip),Dp&&(gp.fn.on=Dp),qp&&(gp.fn.focus=qp),bp&&(gp.fn.attr=bp),Ep&&(gp.fn.val=Ep),Pp&&(gp.fn.html=Pp),Rp&&(gp.fn.parent=Rp),mp&&(gp.fn.hasClass=mp),Vp&&(gp.fn.empty=Vp);var L8,R8={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=aO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=tg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:I8(a,c,d)});else{var h=tg("video",{poster:s,controls:!0},tg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=tg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Lh("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},M8={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=I8(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},z8=Object.keys||function(e){return t8(e,n8)},H8=J3?Object.defineProperties:function(e,t){h5(e);for(var n,r=m6(t),o=z8(t),i=o.length,a=0;i>a;)y5.f(e,n=o[a++],r[n]);return e},$8=E6("document","documentElement"),V8=O5("IE_PROTO"),U8=function(){},W8=function(e){return"<script>"+e+"<\/script>"},G8=function(e){e.write(W8("")),e.close();var t=e.parentWindow.Object;return e=null,t},q8=function(){try{L8=new ActiveXObject("htmlfile")}catch(e){}var e,t;q8="undefined"!=typeof document?document.domain&&L8?G8(L8):((t=s5("iframe")).style.display="none",$8.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(W8("document.F=Object")),e.close(),e.F):G8(L8);for(var n=n8.length;n--;)delete q8.prototype[n8[n]];return q8()};k5[V8]=!0;var K8=Object.create||function(e,t){var n;return null!==e?(U8.prototype=h5(e),n=new U8,U8.prototype=null,n[V8]=e):n=q8(),void 0===t?n:H8(n,t)},Y8=n5("unscopables"),X8=Array.prototype;null==X8[Y8]&&y5.f(X8,Y8,{configurable:!0,value:K8(null)});var Z8=function(e){X8[Y8][e]=!0},J8=J5.includes;y8({target:"Array",proto:!0},{includes:function(e){return J8(this,e,arguments.length>1?arguments[1]:void 0)}}),Z8("includes");var Q8={selector:"iframe,video,p",preParseHtml:function(e){var t=gp(e),n=t;if("p"===N8(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=gp(o))}}var a=N8(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=gp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},e7=l6(l6.bind),t7=function(e,t){return L6(e),void 0===t?e:e7?e7(e,t):function(){return e.apply(t,arguments)}},n7=Array.isArray||function(e){return"Array"==d6(e)},r7=function(){},o7=[],i7=E6("Reflect","construct"),a7=/^\s*(?:class|function)\b/,u7=l6(a7.exec),s7=!a7.exec(r7),l7=function(e){if(!b6(e))return!1;try{return i7(r7,o7,e),!0}catch(e){return!1}},c7=!i7||Z3((function(){var e;return l7(l7.call)||!l7(Object)||!l7((function(){e=!0}))||e}))?function(e){if(!b6(e))return!1;switch(D8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return s7||!!u7(a7,D5(e))}:l7,f7=n5("species"),d7=X3.Array,p7=function(e,t){return new(function(e){var t;return n7(e)&&(t=e.constructor,(c7(t)&&(t===d7||n7(t.prototype))||w6(t)&&null===(t=t[f7]))&&(t=void 0)),void 0===t?d7:t}(e))(0===t?0:t)},h7=l6([].push),g7=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=W6(s),g=g6(h),v=t7(l,c),y=X5(g),m=0,b=f||p7,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:h7(w,d)}else switch(e){case 4:return!1;case 7:h7(w,d)}return i?-1:r||o?o:w}},v7={forEach:g7(0),map:g7(1),filter:g7(2),some:g7(3),every:g7(4),find:g7(5),findIndex:g7(6),filterReject:g7(7)},y7=v7.find,m7=!0;"find"in[]&&Array(1).find((function(){m7=!1})),y8({target:"Array",proto:!0,forced:m7},{find:function(e){return y7(this,e,arguments.length>1?arguments[1]:void 0)}}),Z8("find");var b7=b8?{}.toString:function(){return"[object "+D8(this)+"]"};function w7(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}b8||H5(Object.prototype,"toString",b7,{unsafe:!0});var x7,E7,D7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=gp(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",w7(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",w7(o,i=l.attr("poster")||"",a,u)}},S7=function(){var e=h5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},C7=X3.RegExp,A7=Z3((function(){var e=C7("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),O7=A7||Z3((function(){return!C7("a","y").sticky})),k7={BROKEN_CARET:A7||Z3((function(){var e=C7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:O7,UNSUPPORTED_Y:A7},B7=X3.RegExp,F7=Z3((function(){var e=B7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),T7=X3.RegExp,_7=Z3((function(){var e=T7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),P7=I5.get,j7=V6("native-string-replace",String.prototype.replace),N7=RegExp.prototype.exec,I7=N7,L7=l6("".charAt),R7=l6("".indexOf),M7=l6("".replace),z7=l6("".slice),H7=(E7=/b*/g,e6(N7,x7=/a/,"a"),e6(N7,E7,"a"),0!==x7.lastIndex||0!==E7.lastIndex),$7=k7.BROKEN_CARET,V7=void 0!==/()??/.exec("")[1];(H7||V7||$7||F7||_7)&&(I7=function(e){var t,n,r,o,i,a,u,s=this,l=P7(s),c=C8(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=e6(I7,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=$7&&s.sticky,h=e6(S7,s),g=s.source,v=0,y=c;if(p&&(h=M7(h,"y",""),-1===R7(h,"g")&&(h+="g"),y=z7(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==L7(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),V7&&(n=new RegExp("^"+g+"$(?!\\s)",h)),H7&&(r=s.lastIndex),o=e6(N7,p?n:s,y),p?o?(o.input=z7(o.input,v),o[0]=z7(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:H7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),V7&&o&&o.length>1&&e6(j7,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=K8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var U7=I7;y8({target:"RegExp",proto:!0,forced:/./.exec!==U7},{exec:U7});var W7=Function.prototype,G7=W7.apply,q7=W7.bind,K7=W7.call,Y7="object"==typeof Reflect&&Reflect.apply||(q7?K7.bind(G7):function(){return K7.apply(G7,arguments)}),X7=(n5("species"),RegExp.prototype),Z7=l6("".charAt),J7=l6("".charCodeAt),Q7=l6("".slice),e9=function(e){return function(t,n){var r,o,i=C8(y6(t)),a=U5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=J7(i,a))<55296||r>56319||a+1===u||(o=J7(i,a+1))<56320||o>57343?e?Z7(i,a):r:e?Q7(i,a,a+2):o-56320+(r-55296<<10)+65536}},t9={codeAt:e9(!1),charAt:e9(!0)},n9=t9.charAt,r9=function(e,t,n){return t+(n?n9(e,t).length:1)},o9=Math.floor,i9=l6("".charAt),a9=l6("".replace),u9=l6("".slice),s9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l9=/\$([$&'`]|\d{1,2})/g,c9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=l9;return void 0!==o&&(o=W6(o),s=s9),a9(i,s,(function(i,s){var l;switch(i9(s,0)){case"$":return"$";case"&":return e;case"`":return u9(t,0,n);case"'":return u9(t,a);case"<":l=o[u9(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=o9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?i9(s,1):r[f-1]+i9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},f9=X3.TypeError,d9=function(e,t){var n=e.exec;if(b6(n)){var r=e6(n,e,t);return null!==r&&h5(r),r}if("RegExp"===d6(e))return e6(U7,e,t);throw f9("RegExp#exec called on incompatible receiver")},p9=n5("replace"),h9=Math.max,g9=Math.min,v9=l6([].concat),y9=l6([].push),m9=l6("".indexOf),b9=l6("".slice),w9="$0"==="a".replace(/./,"$0"),x9=!!/./[p9]&&""===/./[p9]("a","$0");function E9(e){return void 0===e&&(e="r"),e+"-"+ch()}!function(e,t,n,r){var o=n5(e),i=!Z3((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Z3((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=l6(/./[o]),s=function(e,t,n){var r=x9?"$":"$0";return[function(e,n){var r=y6(this),o=null==e?void 0:R6(e,p9);return o?e6(o,e,r,n):e6(t,C8(r),e,n)},function(e,o){var i=h5(this),a=C8(e);if("string"==typeof o&&-1===m9(o,r)&&-1===m9(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=b6(o);s||(o=C8(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=d9(i,a);if(null===d)break;if(y9(f,d),!l)break;""===C8(d[0])&&(i.lastIndex=r9(a,Y5(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=C8((d=f[v])[0]),m=h9(g9(U5(d.index),a.length),0),b=[],w=1;w<d.length;w++)y9(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=v9([y],b,m,a);void 0!==x&&y9(E,x);var D=C8(Y7(o,void 0,E))}else D=c9(y,a,m,b,x,o);m>=g&&(h+=b9(a,g,m)+D,g=m+y.length)}return h+b9(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=l6(e),s=t.exec;return s===U7||s===X7.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));H5(String.prototype,e,s[0]),H5(X7,o,s[1])}}("replace",0,!!Z3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!w9||x9);var D9=X3.Promise,S9=function(e,t,n){for(var r in t)H5(e,r,t[r],n);return e},C9=X3.String,A9=X3.TypeError,O9=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=l6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return h5(n),function(e){if("object"==typeof e||b6(e))return e;throw A9("Can't set "+C9(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),k9=y5.f,B9=n5("toStringTag"),F9=function(e,t,n){e&&!q6(e=n?e:e.prototype,B9)&&k9(e,B9,{configurable:!0,value:t})},T9=n5("species"),_9=X3.TypeError,P9=function(e,t){if(D6(t,e))return e;throw _9("Incorrect invocation")},j9={},N9=n5("iterator"),I9=Array.prototype,L9=n5("iterator"),R9=function(e){if(null!=e)return R6(e,L9)||R6(e,"@@iterator")||j9[D8(e)]},M9=X3.TypeError,z9=function(e,t,n){var r,o;h5(e);try{if(!(r=R6(e,"return"))){if("throw"===t)throw n;return n}r=e6(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return h5(r),n},H9=X3.TypeError,$9=function(e,t){this.stopped=e,this.result=t},V9=$9.prototype,U9=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=t7(t,f),v=function(e){return r&&z9(r,"normal",e),new $9(!0,e)},y=function(e){return d?(h5(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=R9(e)))throw H9(N6(e)+" is not iterable");if(void 0!==(c=o)&&(j9.Array===c||I9[N9]===c)){for(i=0,a=X5(e);a>i;i++)if((u=y(e[i]))&&D6(V9,u))return u;return new $9(!1)}r=function(e,t){var n=arguments.length<2?R9(e):t;if(L6(n))return h5(e6(n,e));throw M9(N6(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=e6(s,r)).done;){try{u=y(l.value)}catch(e){z9(r,"throw",e)}if("object"==typeof u&&u&&D6(V9,u))return u}return new $9(!1)},W9=n5("iterator"),G9=!1;try{var q9=0,K9={next:function(){return{done:!!q9++}},return:function(){G9=!0}};K9[W9]=function(){return this},Array.from(K9,(function(){throw 2}))}catch(Al){}var Y9,X9,Z9,J9,Q9=function(e,t){if(!t&&!G9)return!1;var n=!1;try{var r={};r[W9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},eee=X3.TypeError,tee=n5("species"),nee=l6([].slice),ree=/(?:ipad|iphone|ipod).*applewebkit/i.test(S6),oee="process"==d6(X3.process),iee=X3.setImmediate,aee=X3.clearImmediate,uee=X3.process,see=X3.Dispatch,lee=X3.Function,cee=X3.MessageChannel,fee=X3.String,dee=0,pee={};try{Y9=X3.location}catch(Al){}var hee=function(e){if(q6(pee,e)){var t=pee[e];delete pee[e],t()}},gee=function(e){return function(){hee(e)}},vee=function(e){hee(e.data)},yee=function(e){X3.postMessage(fee(e),Y9.protocol+"//"+Y9.host)};iee&&aee||(iee=function(e){var t=nee(arguments,1);return pee[++dee]=function(){Y7(b6(e)?e:lee(e),void 0,t)},X9(dee),dee},aee=function(e){delete pee[e]},oee?X9=function(e){uee.nextTick(gee(e))}:see&&see.now?X9=function(e){see.now(gee(e))}:cee&&!ree?(J9=(Z9=new cee).port2,Z9.port1.onmessage=vee,X9=t7(J9.postMessage,J9)):X3.addEventListener&&b6(X3.postMessage)&&!X3.importScripts&&Y9&&"file:"!==Y9.protocol&&!Z3(yee)?(X9=yee,X3.addEventListener("message",vee,!1)):X9="onreadystatechange"in s5("script")?function(e){$8.appendChild(s5("script")).onreadystatechange=function(){$8.removeChild(this),hee(e)}}:function(e){setTimeout(gee(e),0)});var mee,bee,wee,xee,Eee,Dee,See,Cee,Aee={set:iee,clear:aee},Oee=/ipad|iphone|ipod/i.test(S6)&&void 0!==X3.Pebble,kee=/web0s(?!.*chrome)/i.test(S6),Bee=f5.f,Fee=Aee.set,Tee=X3.MutationObserver||X3.WebKitMutationObserver,_ee=X3.document,Pee=X3.process,jee=X3.Promise,Nee=Bee(X3,"queueMicrotask"),Iee=Nee&&Nee.value;Iee||(mee=function(){var e,t;for(oee&&(e=Pee.domain)&&e.exit();bee;){t=bee.fn,bee=bee.next;try{t()}catch(e){throw bee?xee():wee=void 0,e}}wee=void 0,e&&e.enter()},ree||oee||kee||!Tee||!_ee?!Oee&&jee&&jee.resolve?((See=jee.resolve(void 0)).constructor=jee,Cee=t7(See.then,See),xee=function(){Cee(mee)}):oee?xee=function(){Pee.nextTick(mee)}:(Fee=t7(Fee,X3),xee=function(){Fee(mee)}):(Eee=!0,Dee=_ee.createTextNode(""),new Tee(mee).observe(Dee,{characterData:!0}),xee=function(){Dee.data=Eee=!Eee}));var Lee,Ree,Mee,zee,Hee=Iee||function(e){var t={fn:e,next:void 0};wee&&(wee.next=t),bee||(bee=t,xee()),wee=t},$ee=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=L6(t),this.reject=L6(n)},Vee={f:function(e){return new $ee(e)}},Uee=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Wee="object"==typeof window,Gee=Aee.set,qee=n5("species"),Kee="Promise",Yee=I5.getterFor(Kee),Xee=I5.set,Zee=I5.getterFor(Kee),Jee=D9&&D9.prototype,Qee=D9,ete=Jee,tte=X3.TypeError,nte=X3.document,rte=X3.process,ote=Vee.f,ite=ote,ate=!!(nte&&nte.createEvent&&X3.dispatchEvent),ute=b6(X3.PromiseRejectionEvent),ste=!1,lte=g8(Kee,(function(){var e=D5(Qee),t=e!==String(Qee);if(!t&&66===B6)return!0;if(B6>=51&&/native code/.test(e))return!1;var n=new Qee((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[qee]=r,!(ste=n.then((function(){}))instanceof r)||!t&&Wee&&!ute})),cte=lte||!Q9((function(e){Qee.all(e).catch((function(){}))})),fte=function(e){var t;return!(!w6(e)||!b6(t=e.then))&&t},dte=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Hee((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&vte(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(tte("Promise-chain cycle")):(u=fte(a))?e6(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&hte(e)}))}},pte=function(e,t,n){var r,o;ate?((r=nte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),X3.dispatchEvent(r)):r={promise:t,reason:n},!ute&&(o=X3["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=X3.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},hte=function(e){e6(Gee,X3,(function(){var t,n=e.facade,r=e.value;if(gte(e)&&(t=Uee((function(){oee?rte.emit("unhandledRejection",r,n):pte("unhandledrejection",n,r)})),e.rejection=oee||gte(e)?2:1,t.error))throw t.value}))},gte=function(e){return 1!==e.rejection&&!e.parent},vte=function(e){e6(Gee,X3,(function(){var t=e.facade;oee?rte.emit("rejectionHandled",t):pte("rejectionhandled",t,e.value)}))},yte=function(e,t,n){return function(r){e(t,r,n)}},mte=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,dte(e,!0))},bte=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tte("Promise can't be resolved itself");var r=fte(t);r?Hee((function(){var n={done:!1};try{e6(r,t,yte(bte,n,e),yte(mte,n,e))}catch(t){mte(n,t,e)}})):(e.value=t,e.state=1,dte(e,!1))}catch(t){mte({done:!1},t,e)}}};if(lte&&(ete=(Qee=function(e){P9(this,ete),L6(e),e6(Lee,this);var t=Yee(this);try{e(yte(bte,t),yte(mte,t))}catch(e){mte(t,e)}}).prototype,(Lee=function(e){Xee(this,{type:Kee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=S9(ete,{then:function(e,t){var n=Zee(this),r=n.reactions,o=ote(function(e,t){var n,r=h5(e).constructor;return void 0===r||null==(n=h5(r)[tee])?t:function(e){if(c7(e))return e;throw eee(N6(e)+" is not a constructor")}(n)}(this,Qee));return o.ok=!b6(e)||e,o.fail=b6(t)&&t,o.domain=oee?rte.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&dte(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ree=function(){var e=new Lee,t=Yee(e);this.promise=e,this.resolve=yte(bte,t),this.reject=yte(mte,t)},Vee.f=ote=function(e){return e===Qee||e===Mee?new Ree(e):ite(e)},b6(D9)&&Jee!==Object.prototype)){zee=Jee.then,ste||(H5(Jee,"then",(function(e,t){var n=this;return new Qee((function(e,t){e6(zee,n,e,t)})).then(e,t)}),{unsafe:!0}),H5(Jee,"catch",ete.catch,{unsafe:!0}));try{delete Jee.constructor}catch(Al){}O9&&O9(Jee,ete)}function wte(e,t,n){return void 0===n&&(n=""),$3(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return V3(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){ed.insertNodes(e,l)})),o(l),[2]}}))}))}function xte(){return E9("w-e-insert-video")}y8({global:!0,wrap:!0,forced:lte},{Promise:Qee}),F9(Qee,Kee,!1),function(e){var t=E6("Promise"),n=y5.f;J3&&t&&!t[T9]&&n(t,T9,{configurable:!0,get:function(){return this}})}(),Mee=E6(Kee),y8({target:Kee,stat:!0,forced:lte},{reject:function(e){var t=ote(this);return e6(t.reject,void 0,e),t.promise}}),y8({target:Kee,stat:!0,forced:lte},{resolve:function(e){return function(e,t){if(h5(e),w6(t)&&t.constructor===e)return t;var n=Vee.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),y8({target:Kee,stat:!0,forced:cte},{all:function(e){var t=this,n=ote(t),r=n.resolve,o=n.reject,i=Uee((function(){var n=L6(t.resolve),i=[],a=0,u=1;U9(e,(function(e){var s=a++,l=!1;u++,e6(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ote(t),r=n.reject,o=Uee((function(){var o=L6(t.resolve);U9(e,(function(e){e6(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Ete=function(){function e(){this.title=H_("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=xte(),this.posterInputId=xte(),this.buttonId=xte()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||!!aO.getSelectedElems(e).some((function(t){var n=aO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=U3(AT(H_("videoModule.videoSrc"),r,H_("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=U3(AT(H_("videoModule.videoPoster"),o,H_("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=gp(s),p=gp(f),h=U3(OT(i,H_("videoModule.ok")),1)[0];if(null==this.$content){var g=gp("<div></div>");g.on("click","#"+i,(function(n){return $3(t,void 0,void 0,(function(){var t,i;return V3(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,wte(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),Dte=l6([].join),Ste=g6!=Object,Cte=function(e,t){var n=[].join;return!!n&&Z3((function(){n.call(null,",",1)}))}();y8({target:"Array",proto:!0,forced:Ste||!Cte},{join:function(e){return Dte(m6(this),void 0===e?",":e)}});var Ate,Ote,kte,Bte=!Z3((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Fte=O5("IE_PROTO"),Tte=X3.Object,_te=Tte.prototype,Pte=Bte?Tte.getPrototypeOf:function(e){var t=W6(e);if(q6(t,Fte))return t[Fte];var n=t.constructor;return b6(n)&&t instanceof n?n.prototype:t instanceof Tte?_te:null},jte=n5("iterator"),Nte=!1;[].keys&&("next"in(kte=[].keys())?(Ote=Pte(Pte(kte)))!==Object.prototype&&(Ate=Ote):Nte=!0),(null==Ate||Z3((function(){var e={};return Ate[jte].call(e)!==e})))&&(Ate={}),b6(Ate[jte])||H5(Ate,jte,(function(){return this}));var Ite={IteratorPrototype:Ate,BUGGY_SAFARI_ITERATORS:Nte},Lte=Ite.IteratorPrototype,Rte=function(){return this},Mte=z5.PROPER,zte=z5.CONFIGURABLE,Hte=Ite.IteratorPrototype,$te=Ite.BUGGY_SAFARI_ITERATORS,Vte=n5("iterator"),Ute=function(){return this},Wte=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=K8(Lte,{next:o6(1,n)}),F9(e,o,!1),j9[o]=Rte}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!$te&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Vte]||p["@@iterator"]||o&&p[o],g=!$te&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Pte(v.call(new e)))!==Object.prototype&&u.next&&(Pte(u)!==Hte&&(O9?O9(u,Hte):b6(u[Vte])||H5(u,Vte,Ute)),F9(u,f,!0)),Mte&&"values"==o&&h&&"values"!==h.name&&(zte?m5(p,"name","values"):(d=!0,g=function(){return e6(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)($te||d||!(l in p))&&H5(p,l,s[l]);else y8({target:t,proto:!0,forced:$te||d},s);return p[Vte]!==g&&H5(p,Vte,g,{name:o}),j9[t]=g,s},Gte=I5.set,qte=I5.getterFor("Array Iterator"),Kte=Wte(Array,"Array",(function(e,t){Gte(this,{type:"Array Iterator",target:m6(e),index:0,kind:t})}),(function(){var e=qte(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");j9.Arguments=j9.Array,Z8("keys"),Z8("values"),Z8("entries");var Yte=t9.charAt,Xte=I5.set,Zte=I5.getterFor("String Iterator");Wte(String,"String",(function(e){Xte(this,{type:"String Iterator",string:C8(e),index:0})}),(function(){var e,t=Zte(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Yte(n,r),t.index+=e.length,{value:e,done:!1})}));var Jte=function(e,t,n){var r=i5(t);r in e?y5.f(e,r,o6(0,n)):e[r]=n},Qte=X3.Array,ene=Math.max,tne=o8.f,nne="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rne={f:function(e){return nne&&"Window"==d6(e)?function(e){try{return tne(e)}catch(e){return function(e,t,n){for(var r=X5(e),o=q5(void 0,r),i=q5(r,r),a=Qte(ene(i-o,0)),u=0;o<i;o++,u++)Jte(a,u,e[o]);return a.length=u,a}(nne)}}(e):tne(m6(e))}},one=Z3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ine=Object.isExtensible,ane=Z3((function(){ine(1)}))||one?function(e){return!!w6(e)&&(!one||"ArrayBuffer"!=d6(e))&&(!ine||ine(e))}:ine,une=!Z3((function(){return Object.isExtensible(Object.preventExtensions({}))})),sne=G3((function(e){var t=y5.f,n=!1,r=Z6("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=o8.f,t=l6([].splice),o={};o[r]=1,e(o).length&&(o8.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},y8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rne.f}))},fastKey:function(e,t){if(!w6(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!q6(e,r)){if(!ane(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!q6(e,r)){if(!ane(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return une&&n&&ane(e)&&!q6(e,r)&&i(e),e}};k5[r]=!0})),lne=sne.getWeakData,cne=I5.set,fne=I5.getterFor,dne=v7.find,pne=v7.findIndex,hne=l6([].splice),gne=0,vne=function(e){return e.frozen||(e.frozen=new yne)},yne=function(){this.entries=[]},mne=function(e,t){return dne(e.entries,(function(e){return e[0]===t}))};yne.prototype={get:function(e){var t=mne(this,e);if(t)return t[1]},has:function(e){return!!mne(this,e)},set:function(e,t){var n=mne(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=pne(this.entries,(function(t){return t[0]===e}));return~t&&hne(this.entries,t,1),!!~t}};var bne,wne={getConstructor:function(e,t,n,r){var o=e((function(e,o){P9(e,i),cne(e,{type:t,id:gne++,frozen:void 0}),null!=o&&U9(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=fne(t),u=function(e,t,n){var r=a(e),o=lne(h5(t),!0);return!0===o?vne(r).set(t,n):o[r.id]=n,e};return S9(i,{delete:function(e){var t=a(this);if(!w6(e))return!1;var n=lne(e);return!0===n?vne(t).delete(e):n&&q6(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!w6(e))return!1;var n=lne(e);return!0===n?vne(t).has(e):n&&q6(n,t.id)}}),S9(i,n?{get:function(e){var t=a(this);if(w6(e)){var n=lne(e);return!0===n?vne(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},xne=I5.enforce,Ene=!X3.ActiveXObject&&"ActiveXObject"in X3,Dne=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Sne=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=X3[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=l6(u[e]);H5(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!w6(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!w6(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!w6(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(g8(e,!b6(a)||!(o||u.forEach&&!Z3((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),sne.enable();else if(g8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Z3((function(){f.has(1)})),h=Q9((function(e){new a(e)})),g=!o&&Z3((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){P9(e,u);var n=function(e,t,n){var r,o;return O9&&b6(r=t.constructor)&&r!==n&&w6(o=r.prototype)&&o!==n.prototype&&O9(e,o),e}(new a,e,s);return null!=t&&U9(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,y8({global:!0,forced:s!=a},l),F9(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Dne,wne);if(C5&&Ene){bne=wne.getConstructor(Dne,"WeakMap",!0),sne.enable();var Cne=Sne.prototype,Ane=l6(Cne.delete),One=l6(Cne.has),kne=l6(Cne.get),Bne=l6(Cne.set);S9(Cne,{delete:function(e){if(w6(e)&&!ane(e)){var t=xne(this);return t.frozen||(t.frozen=new bne),Ane(this,e)||t.frozen.delete(e)}return Ane(this,e)},has:function(e){if(w6(e)&&!ane(e)){var t=xne(this);return t.frozen||(t.frozen=new bne),One(this,e)||t.frozen.has(e)}return One(this,e)},get:function(e){if(w6(e)&&!ane(e)){var t=xne(this);return t.frozen||(t.frozen=new bne),One(this,e)?kne(this,e):t.frozen.get(e)}return kne(this,e)},set:function(e,t){if(w6(e)&&!ane(e)){var n=xne(this);n.frozen||(n.frozen=new bne),One(this,e)?Bne(this,e,t):n.frozen.set(e,t)}else Bne(this,e,t);return this}})}var Fne={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},Tne=s5("span").classList,_ne=Tne&&Tne.constructor&&Tne.constructor.prototype,Pne=_ne===Object.prototype?void 0:_ne,jne=n5("iterator"),Nne=n5("toStringTag"),Ine=Kte.values,Lne=function(e,t){if(e){if(e[jne]!==Ine)try{m5(e,jne,Ine)}catch(t){e[jne]=Ine}if(e[Nne]||m5(e,Nne,t),Fne[t])for(var n in Kte)if(e[n]!==Kte[n])try{m5(e,n,Kte[n])}catch(t){e[n]=Kte[n]}}};for(var Rne in Fne)Lne(X3[Rne]&&X3[Rne].prototype,Rne);Lne(Pne,"DOMTokenList");var Mne=z5.EXISTS,zne=y5.f,Hne=Function.prototype,$ne=l6(Hne.toString),Vne=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Une=l6(Vne.exec);J3&&!Mne&&zne(Hne,"name",{configurable:!0,get:function(){try{return Une(Vne,$ne(this))[1]}catch(e){return""}}});var Wne=n5("species"),Gne=B6>=51||!Z3((function(){var e=[];return(e.constructor={})[Wne]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),qne=n5("species"),Kne=X3.Array,Yne=Math.max;function Xne(e){return e.getMenuConfig("uploadVideo")}y8({target:"Array",proto:!0,forced:!Gne},{slice:function(e,t){var n,r,o,i=m6(this),a=X5(i),u=q5(e,a),s=q5(void 0===t?a:t,a);if(n7(i)&&(n=i.constructor,(c7(n)&&(n===Kne||n7(n.prototype))||w6(n)&&null===(n=n[qne]))&&(n=void 0),n===Kne||void 0===n))return nee(i,u,s);for(r=new(void 0===n?Kne:n)(Yne(s-u,0)),o=0;u<s;u++,o++)u in i&&Jte(r,o,i[u]);return r.length=o,r}});var Zne=new WeakMap;function Jne(e,t){return $3(this,void 0,void 0,(function(){var n,r,o,i;return V3(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Zne.get(e);if(null!=t)return t;var n=Xne(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=YT(H3(H3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return wte(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;wte(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Zne.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var Qne=function(){function e(){this.title=H_("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(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return wte(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=gp("body"),s=gp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;$3(this,void 0,void 0,(function(){var o,i,a,u,s,l;return V3(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Xne(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return wte(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Jne(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Ff.isCollapsed(t)||!!aO.getSelectedElems(e).some((function(t){var n=aO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),ere=z5.PROPER,tre=RegExp.prototype,nre=tre.toString,rre=l6(S7),ore=Z3((function(){return"/a/b"!=nre.call({source:"a",flags:"b"})})),ire=ere&&"toString"!=nre.name;function are(){return E9("w-e-insert-video")}(ore||ire)&&H5(RegExp.prototype,"toString",(function(){var e=h5(this),t=C8(e.source),n=e.flags;return"/"+t+"/"+C8(void 0===n&&D6(tre,e)&&!("flags"in tre)?rre(e):n)}),{unsafe:!0});var ure=function(){function e(){this.title=H_("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=are(),this.heightInputId=are(),this.buttonId=are()}return e.prototype.getSelectedVideoNode=function(e){return aO.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=U3(AT(H_("videoModule.width"),n,"auto"),2),a=i[0],u=gp(i[1]),s=U3(AT(H_("videoModule.height"),r,"auto"),2),l=s[0],c=gp(s[1]),f=U3(OT(o,H_("videoModule.ok")),1)[0];if(null==this.$content){var d=gp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),ed.setNodes(e,{width:s,height:l},{match:function(e){return aO.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),sre={renderElems:[R8],elemsToHtml:[M8],preParseHtml:[Q8],parseElemsHtml:[D7],menus:[{key:"insertVideo",factory:function(){return new Ete},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Qne},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new ure}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=U3(e,2),o=t[0],i=t[1];return"video"===aO.getNodeType(o)&&aO.isLastNode(r,o)&&ed.insertNodes(r,aO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};M_("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),M_("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var lre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function cre(e){var t={exports:{}};return e(t,t.exports),t.exports}var fre,dre,pre=function(e){return e&&e.Math==Math&&e},hre=pre("object"==typeof globalThis&&globalThis)||pre("object"==typeof window&&window)||pre("object"==typeof self&&self)||pre("object"==typeof lre&&lre)||function(){return this}()||Function("return this")(),gre=function(e){try{return!!e()}catch(e){return!0}},vre=!gre((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yre=Function.prototype.call,mre=yre.bind?yre.bind(yre):function(){return yre.apply(yre,arguments)},bre={}.propertyIsEnumerable,wre=Object.getOwnPropertyDescriptor,xre={f:wre&&!bre.call({1:2},1)?function(e){var t=wre(this,e);return!!t&&t.enumerable}:bre},Ere=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Dre=Function.prototype,Sre=Dre.bind,Cre=Dre.call,Are=Sre&&Sre.bind(Cre),Ore=Sre?function(e){return e&&Are(Cre,e)}:function(e){return e&&function(){return Cre.apply(e,arguments)}},kre=Ore({}.toString),Bre=Ore("".slice),Fre=function(e){return Bre(kre(e),8,-1)},Tre=hre.Object,_re=Ore("".split),Pre=gre((function(){return!Tre("z").propertyIsEnumerable(0)}))?function(e){return"String"==Fre(e)?_re(e,""):Tre(e)}:Tre,jre=hre.TypeError,Nre=function(e){if(null==e)throw jre("Can't call method on "+e);return e},Ire=function(e){return Pre(Nre(e))},Lre=function(e){return"function"==typeof e},Rre=function(e){return"object"==typeof e?null!==e:Lre(e)},Mre=function(e){return Lre(e)?e:void 0},zre=function(e,t){return arguments.length<2?Mre(hre[e]):hre[e]&&hre[e][t]},Hre=Ore({}.isPrototypeOf),$re=zre("navigator","userAgent")||"",Vre=hre.process,Ure=hre.Deno,Wre=Vre&&Vre.versions||Ure&&Ure.version,Gre=Wre&&Wre.v8;Gre&&(dre=(fre=Gre.split("."))[0]>0&&fre[0]<4?1:+(fre[0]+fre[1])),!dre&&$re&&(!(fre=$re.match(/Edge\/(\d+)/))||fre[1]>=74)&&(fre=$re.match(/Chrome\/(\d+)/))&&(dre=+fre[1]);var qre=dre,Kre=!!Object.getOwnPropertySymbols&&!gre((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qre&&qre<41})),Yre=Kre&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xre=hre.Object,Zre=Yre?function(e){return"symbol"==typeof e}:function(e){var t=zre("Symbol");return Lre(t)&&Hre(t.prototype,Xre(e))},Jre=hre.String,Qre=function(e){try{return Jre(e)}catch(e){return"Object"}},eoe=hre.TypeError,toe=function(e){if(Lre(e))return e;throw eoe(Qre(e)+" is not a function")},noe=function(e,t){var n=e[t];return null==n?void 0:toe(n)},roe=hre.TypeError,ooe=Object.defineProperty,ioe=function(e,t){try{ooe(hre,e,{value:t,configurable:!0,writable:!0})}catch(n){hre[e]=t}return t},aoe=hre["__core-js_shared__"]||ioe("__core-js_shared__",{}),uoe=cre((function(e){(e.exports=function(e,t){return aoe[e]||(aoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),soe=hre.Object,loe=function(e){return soe(Nre(e))},coe=Ore({}.hasOwnProperty),foe=Object.hasOwn||function(e,t){return coe(loe(e),t)},doe=0,poe=Math.random(),hoe=Ore(1..toString),goe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hoe(++doe+poe,36)},voe=uoe("wks"),yoe=hre.Symbol,moe=yoe&&yoe.for,boe=Yre?yoe:yoe&&yoe.withoutSetter||goe,woe=function(e){if(!foe(voe,e)||!Kre&&"string"!=typeof voe[e]){var t="Symbol."+e;Kre&&foe(yoe,e)?voe[e]=yoe[e]:voe[e]=Yre&&moe?moe(t):boe(t)}return voe[e]},xoe=hre.TypeError,Eoe=woe("toPrimitive"),Doe=function(e){var t=function(e,t){if(!Rre(e)||Zre(e))return e;var n,r=noe(e,Eoe);if(r){if(void 0===t&&(t="default"),n=mre(r,e,t),!Rre(n)||Zre(n))return n;throw xoe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Lre(n=e.toString)&&!Rre(r=mre(n,e)))return r;if(Lre(n=e.valueOf)&&!Rre(r=mre(n,e)))return r;if("string"!==t&&Lre(n=e.toString)&&!Rre(r=mre(n,e)))return r;throw roe("Can't convert object to primitive value")}(e,t)}(e,"string");return Zre(t)?t:t+""},Soe=hre.document,Coe=Rre(Soe)&&Rre(Soe.createElement),Aoe=function(e){return Coe?Soe.createElement(e):{}},Ooe=!vre&&!gre((function(){return 7!=Object.defineProperty(Aoe("div"),"a",{get:function(){return 7}}).a})),koe=Object.getOwnPropertyDescriptor,Boe={f:vre?koe:function(e,t){if(e=Ire(e),t=Doe(t),Ooe)try{return koe(e,t)}catch(e){}if(foe(e,t))return Ere(!mre(xre.f,e,t),e[t])}},Foe=hre.String,Toe=hre.TypeError,_oe=function(e){if(Rre(e))return e;throw Toe(Foe(e)+" is not an object")},Poe=hre.TypeError,joe=Object.defineProperty,Noe={f:vre?joe:function(e,t,n){if(_oe(e),t=Doe(t),_oe(n),Ooe)try{return joe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Poe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ioe=vre?function(e,t,n){return Noe.f(e,t,Ere(1,n))}:function(e,t,n){return e[t]=n,e},Loe=Ore(Function.toString);Lre(aoe.inspectSource)||(aoe.inspectSource=function(e){return Loe(e)});var Roe,Moe,zoe,Hoe=aoe.inspectSource,$oe=hre.WeakMap,Voe=Lre($oe)&&/native code/.test(Hoe($oe)),Uoe=uoe("keys"),Woe=function(e){return Uoe[e]||(Uoe[e]=goe(e))},Goe={},qoe=hre.TypeError,Koe=hre.WeakMap;if(Voe||aoe.state){var Yoe=aoe.state||(aoe.state=new Koe),Xoe=Ore(Yoe.get),Zoe=Ore(Yoe.has),Joe=Ore(Yoe.set);Roe=function(e,t){if(Zoe(Yoe,e))throw new qoe("Object already initialized");return t.facade=e,Joe(Yoe,e,t),t},Moe=function(e){return Xoe(Yoe,e)||{}},zoe=function(e){return Zoe(Yoe,e)}}else{var Qoe=Woe("state");Goe[Qoe]=!0,Roe=function(e,t){if(foe(e,Qoe))throw new qoe("Object already initialized");return t.facade=e,Ioe(e,Qoe,t),t},Moe=function(e){return foe(e,Qoe)?e[Qoe]:{}},zoe=function(e){return foe(e,Qoe)}}var eie={set:Roe,get:Moe,has:zoe,enforce:function(e){return zoe(e)?Moe(e):Roe(e,{})},getterFor:function(e){return function(t){var n;if(!Rre(t)||(n=Moe(t)).type!==e)throw qoe("Incompatible receiver, "+e+" required");return n}}},tie=Function.prototype,nie=vre&&Object.getOwnPropertyDescriptor,rie=foe(tie,"name"),oie={EXISTS:rie,PROPER:rie&&"something"===function(){}.name,CONFIGURABLE:rie&&(!vre||vre&&nie(tie,"name").configurable)},iie=cre((function(e){var t=oie.CONFIGURABLE,n=eie.get,r=eie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Lre(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!foe(i,"name")||t&&i.name!==f)&&Ioe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==hre?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ioe(e,n,i)):l?e[n]=i:ioe(n,i)})(Function.prototype,"toString",(function(){return Lre(this)&&n(this).source||Hoe(this)}))})),aie=Math.ceil,uie=Math.floor,sie=function(e){var t=+e;return t!=t||0===t?0:(t>0?uie:aie)(t)},lie=Math.max,cie=Math.min,fie=function(e,t){var n=sie(e);return n<0?lie(n+t,0):cie(n,t)},die=Math.min,pie=function(e){return e>0?die(sie(e),9007199254740991):0},hie=function(e){return pie(e.length)},gie=function(e){return function(t,n,r){var o,i=Ire(t),a=hie(i),u=fie(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},vie=(gie(!0),gie(!1)),yie=Ore([].push),mie=function(e,t){var n,r=Ire(e),o=0,i=[];for(n in r)!foe(Goe,n)&&foe(r,n)&&yie(i,n);for(;t.length>o;)foe(r,n=t[o++])&&(~vie(i,n)||yie(i,n));return i},bie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wie=bie.concat("length","prototype"),xie={f:Object.getOwnPropertyNames||function(e){return mie(e,wie)}},Eie={f:Object.getOwnPropertySymbols},Die=Ore([].concat),Sie=zre("Reflect","ownKeys")||function(e){var t=xie.f(_oe(e)),n=Eie.f;return n?Die(t,n(e)):t},Cie=function(e,t){for(var n=Sie(t),r=Noe.f,o=Boe.f,i=0;i<n.length;i++){var a=n[i];foe(e,a)||r(e,a,o(t,a))}},Aie=/#|\.prototype\./,Oie=function(e,t){var n=Bie[kie(e)];return n==Tie||n!=Fie&&(Lre(t)?gre(t):!!t)},kie=Oie.normalize=function(e){return String(e).replace(Aie,".").toLowerCase()},Bie=Oie.data={},Fie=Oie.NATIVE="N",Tie=Oie.POLYFILL="P",_ie=Oie,Pie=Boe.f,jie=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?hre:l?hre[u]||ioe(u,{}):(hre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pie(n,r))&&a.value:n[r],!_ie(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Cie(i,o)}(e.sham||o&&o.sham)&&Ioe(i,"sham",!0),iie(n,r,i,e)}},Nie=Array.isArray||function(e){return"Array"==Fre(e)},Iie={};Iie[woe("toStringTag")]="z";var Lie="[object z]"===String(Iie),Rie=woe("toStringTag"),Mie=hre.Object,zie="Arguments"==Fre(function(){return arguments}()),Hie=Lie?Fre:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Mie(e),Rie))?n:zie?Fre(t):"Object"==(r=Fre(t))&&Lre(t.callee)?"Arguments":r},$ie=function(){},Vie=[],Uie=zre("Reflect","construct"),Wie=/^\s*(?:class|function)\b/,Gie=Ore(Wie.exec),qie=!Wie.exec($ie),Kie=function(e){if(!Lre(e))return!1;try{return Uie($ie,Vie,e),!0}catch(e){return!1}},Yie=!Uie||gre((function(){var e;return Kie(Kie.call)||!Kie(Object)||!Kie((function(){e=!0}))||e}))?function(e){if(!Lre(e))return!1;switch(Hie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qie||!!Gie(Wie,Hoe(e))}:Kie,Xie=function(e,t,n){var r=Doe(t);r in e?Noe.f(e,r,Ere(0,n)):e[r]=n},Zie=woe("species"),Jie=Ore([].slice),Qie=qre>=51||!gre((function(){var e=[];return(e.constructor={})[Zie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),eae=woe("species"),tae=hre.Array,nae=Math.max;jie({target:"Array",proto:!0,forced:!Qie},{slice:function(e,t){var n,r,o,i=Ire(this),a=hie(i),u=fie(e,a),s=fie(void 0===t?a:t,a);if(Nie(i)&&(n=i.constructor,(Yie(n)&&(n===tae||Nie(n.prototype))||Rre(n)&&null===(n=n[eae]))&&(n=void 0),n===tae||void 0===n))return Jie(i,u,s);for(r=new(void 0===n?tae:n)(nae(s-u,0)),o=0;u<s;u++,o++)u in i&&Xie(r,o,i[u]);return r.length=o,r}});var rae=Lie?{}.toString:function(){return"[object "+Hie(this)+"]"};Lie||iie(Object.prototype,"toString",rae,{unsafe:!0});var oae,iae=hre.String,aae=function(e){if("Symbol"===Hie(e))throw TypeError("Cannot convert a Symbol value to a string");return iae(e)},uae=function(){var e=_oe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},sae=hre.RegExp,lae=gre((function(){var e=sae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),cae=lae||gre((function(){return!sae("a","y").sticky})),fae={BROKEN_CARET:lae||gre((function(){var e=sae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:cae,UNSUPPORTED_Y:lae},dae=Object.keys||function(e){return mie(e,bie)},pae=vre?Object.defineProperties:function(e,t){_oe(e);for(var n,r=Ire(t),o=dae(t),i=o.length,a=0;i>a;)Noe.f(e,n=o[a++],r[n]);return e},hae=zre("document","documentElement"),gae=Woe("IE_PROTO"),vae=function(){},yae=function(e){return"<script>"+e+"<\/script>"},mae=function(e){e.write(yae("")),e.close();var t=e.parentWindow.Object;return e=null,t},bae=function(){try{oae=new ActiveXObject("htmlfile")}catch(e){}var e,t;bae="undefined"!=typeof document?document.domain&&oae?mae(oae):((t=Aoe("iframe")).style.display="none",hae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(yae("document.F=Object")),e.close(),e.F):mae(oae);for(var n=bie.length;n--;)delete bae.prototype[bie[n]];return bae()};Goe[gae]=!0;var wae,xae,Eae=Object.create||function(e,t){var n;return null!==e?(vae.prototype=_oe(e),n=new vae,vae.prototype=null,n[gae]=e):n=bae(),void 0===t?n:pae(n,t)},Dae=hre.RegExp,Sae=gre((function(){var e=Dae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Cae=hre.RegExp,Aae=gre((function(){var e=Cae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Oae=eie.get,kae=uoe("native-string-replace",String.prototype.replace),Bae=RegExp.prototype.exec,Fae=Bae,Tae=Ore("".charAt),_ae=Ore("".indexOf),Pae=Ore("".replace),jae=Ore("".slice),Nae=(xae=/b*/g,mre(Bae,wae=/a/,"a"),mre(Bae,xae,"a"),0!==wae.lastIndex||0!==xae.lastIndex),Iae=fae.BROKEN_CARET,Lae=void 0!==/()??/.exec("")[1];(Nae||Lae||Iae||Sae||Aae)&&(Fae=function(e){var t,n,r,o,i,a,u,s=this,l=Oae(s),c=aae(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=mre(Fae,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Iae&&s.sticky,h=mre(uae,s),g=s.source,v=0,y=c;if(p&&(h=Pae(h,"y",""),-1===_ae(h,"g")&&(h+="g"),y=jae(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Tae(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Lae&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Nae&&(r=s.lastIndex),o=mre(Bae,p?n:s,y),p?o?(o.input=jae(o.input,v),o[0]=jae(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Nae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Lae&&o&&o.length>1&&mre(kae,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Eae(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Rae=Fae;jie({target:"RegExp",proto:!0,forced:/./.exec!==Rae},{exec:Rae});var Mae=Function.prototype,zae=Mae.apply,Hae=Mae.bind,$ae=Mae.call,Vae="object"==typeof Reflect&&Reflect.apply||(Hae?$ae.bind(zae):function(){return $ae.apply(zae,arguments)}),Uae=woe("species"),Wae=RegExp.prototype,Gae=woe("match"),qae=hre.TypeError,Kae=woe("species"),Yae=function(e,t){var n,r=_oe(e).constructor;return void 0===r||null==(n=_oe(r)[Kae])?t:function(e){if(Yie(e))return e;throw qae(Qre(e)+" is not a constructor")}(n)},Xae=Ore("".charAt),Zae=Ore("".charCodeAt),Jae=Ore("".slice),Qae=function(e){return function(t,n){var r,o,i=aae(Nre(t)),a=sie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Zae(i,a))<55296||r>56319||a+1===u||(o=Zae(i,a+1))<56320||o>57343?e?Xae(i,a):r:e?Jae(i,a,a+2):o-56320+(r-55296<<10)+65536}},eue={codeAt:Qae(!1),charAt:Qae(!0)},tue=eue.charAt,nue=function(e,t,n){return t+(n?tue(e,t).length:1)},rue=hre.Array,oue=Math.max,iue=function(e,t,n){for(var r=hie(e),o=fie(t,r),i=fie(void 0===n?r:n,r),a=rue(oue(i-o,0)),u=0;o<i;o++,u++)Xie(a,u,e[o]);return a.length=u,a},aue=hre.TypeError,uue=function(e,t){var n=e.exec;if(Lre(n)){var r=mre(n,e,t);return null!==r&&_oe(r),r}if("RegExp"===Fre(e))return mre(Rae,e,t);throw aue("RegExp#exec called on incompatible receiver")},sue=fae.UNSUPPORTED_Y,lue=Math.min,cue=[].push,fue=Ore(/./.exec),due=Ore(cue),pue=Ore("".slice);!function(e,t,n,r){var o=woe(e),i=!gre((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!gre((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Uae]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=Ore(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=aae(Nre(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Rre(r=e)||!(void 0!==(o=r[Gae])?o:"RegExp"==Fre(r)))return mre(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=mre(Rae,p,i))&&!((s=p.lastIndex)>d&&(due(c,pue(i,d,u.index)),u.length>1&&u.index<i.length&&Vae(cue,c,iue(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&fue(p,"")||due(c,""):due(c,pue(i,d)),c.length>a?iue(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:mre(t,this,e,n)}:t,[function(t,n){var o=Nre(this),i=null==t?void 0:noe(t,e);return i?mre(i,t,o,n):mre(r,aae(o),t,n)},function(e,o){var i=_oe(this),a=aae(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Yae(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(sue?"g":"y"),f=new s(sue?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===uue(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=sue?0:h;var v,y=uue(f,sue?pue(a,h):a);if(null===y||(v=lue(pie(f.lastIndex+(sue?h:0)),a.length))===p)h=nue(a,h,l);else{if(due(g,pue(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(due(g,y[m]),g.length===d)return g;h=p=v}}return due(g,pue(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=Ore(e),s=t.exec;return s===Rae||s===Wae.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));iie(String.prototype,e,s[0]),iie(Wae,o,s[1])}r&&Ioe(Wae[o],"sham",!0)}("split",0,!!gre((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),sue);var hue=function(){return(hue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function gue(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function vue(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var yue=woe("unscopables"),mue=Array.prototype;null==mue[yue]&&Noe.f(mue,yue,{configurable:!0,value:Eae(null)});var bue,wue,xue,Eue=function(e){mue[yue][e]=!0},Due={},Sue=!gre((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Cue=Woe("IE_PROTO"),Aue=hre.Object,Oue=Aue.prototype,kue=Sue?Aue.getPrototypeOf:function(e){var t=loe(e);if(foe(t,Cue))return t[Cue];var n=t.constructor;return Lre(n)&&t instanceof n?n.prototype:t instanceof Aue?Oue:null},Bue=woe("iterator"),Fue=!1;[].keys&&("next"in(xue=[].keys())?(wue=kue(kue(xue)))!==Object.prototype&&(bue=wue):Fue=!0),(null==bue||gre((function(){var e={};return bue[Bue].call(e)!==e})))&&(bue={}),Lre(bue[Bue])||iie(bue,Bue,(function(){return this}));var Tue={IteratorPrototype:bue,BUGGY_SAFARI_ITERATORS:Fue},_ue=Noe.f,Pue=woe("toStringTag"),jue=function(e,t,n){e&&!foe(e=n?e:e.prototype,Pue)&&_ue(e,Pue,{configurable:!0,value:t})},Nue=Tue.IteratorPrototype,Iue=function(){return this},Lue=hre.String,Rue=hre.TypeError,Mue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ore(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return _oe(n),function(e){if("object"==typeof e||Lre(e))return e;throw Rue("Can't set "+Lue(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zue=oie.PROPER,Hue=oie.CONFIGURABLE,$ue=Tue.IteratorPrototype,Vue=Tue.BUGGY_SAFARI_ITERATORS,Uue=woe("iterator"),Wue=function(){return this},Gue=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Eae(Nue,{next:Ere(1,n)}),jue(e,o,!1),Due[o]=Iue}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Vue&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Uue]||p["@@iterator"]||o&&p[o],g=!Vue&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=kue(v.call(new e)))!==Object.prototype&&u.next&&(kue(u)!==$ue&&(Mue?Mue(u,$ue):Lre(u[Uue])||iie(u,Uue,Wue)),jue(u,f,!0)),zue&&"values"==o&&h&&"values"!==h.name&&(Hue?Ioe(p,"name","values"):(d=!0,g=function(){return mre(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Vue||d||!(l in p))&&iie(p,l,s[l]);else jie({target:t,proto:!0,forced:Vue||d},s);return p[Uue]!==g&&iie(p,Uue,g,{name:o}),Due[t]=g,s},que=eie.set,Kue=eie.getterFor("Array Iterator"),Yue=Gue(Array,"Array",(function(e,t){que(this,{type:"Array Iterator",target:Ire(e),index:0,kind:t})}),(function(){var e=Kue(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Due.Arguments=Due.Array,Eue("keys"),Eue("values"),Eue("entries");var Xue=eue.charAt,Zue=eie.set,Jue=eie.getterFor("String Iterator");Gue(String,"String",(function(e){Zue(this,{type:"String Iterator",string:aae(e),index:0})}),(function(){var e,t=Jue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Xue(n,r),t.index+=e.length,{value:e,done:!1})}));var Que=function(e,t,n){for(var r in t)iie(e,r,t[r],n);return e},ese=xie.f,tse="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nse={f:function(e){return tse&&"Window"==Fre(e)?function(e){try{return ese(e)}catch(e){return iue(tse)}}(e):ese(Ire(e))}},rse=gre((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ose=Object.isExtensible,ise=gre((function(){ose(1)}))||rse?function(e){return!!Rre(e)&&(!rse||"ArrayBuffer"!=Fre(e))&&(!ose||ose(e))}:ose,ase=!gre((function(){return Object.isExtensible(Object.preventExtensions({}))})),use=cre((function(e){var t=Noe.f,n=!1,r=goe("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=xie.f,t=Ore([].splice),o={};o[r]=1,e(o).length&&(xie.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},jie({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nse.f}))},fastKey:function(e,t){if(!Rre(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!foe(e,r)){if(!ise(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!foe(e,r)){if(!ise(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ase&&n&&ise(e)&&!foe(e,r)&&i(e),e}};Goe[r]=!0})),sse=Ore(Ore.bind),lse=function(e,t){return toe(e),void 0===t?e:sse?sse(e,t):function(){return e.apply(t,arguments)}},cse=woe("iterator"),fse=Array.prototype,dse=woe("iterator"),pse=function(e){if(null!=e)return noe(e,dse)||noe(e,"@@iterator")||Due[Hie(e)]},hse=hre.TypeError,gse=function(e,t,n){var r,o;_oe(e);try{if(!(r=noe(e,"return"))){if("throw"===t)throw n;return n}r=mre(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return _oe(r),n},vse=hre.TypeError,yse=function(e,t){this.stopped=e,this.result=t},mse=yse.prototype,bse=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=lse(t,f),v=function(e){return r&&gse(r,"normal",e),new yse(!0,e)},y=function(e){return d?(_oe(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=pse(e)))throw vse(Qre(e)+" is not iterable");if(void 0!==(c=o)&&(Due.Array===c||fse[cse]===c)){for(i=0,a=hie(e);a>i;i++)if((u=y(e[i]))&&Hre(mse,u))return u;return new yse(!1)}r=function(e,t){var n=arguments.length<2?pse(e):t;if(toe(n))return _oe(mre(n,e));throw hse(Qre(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=mre(s,r)).done;){try{u=y(l.value)}catch(e){gse(r,"throw",e)}if("object"==typeof u&&u&&Hre(mse,u))return u}return new yse(!1)},wse=hre.TypeError,xse=function(e,t){if(Hre(t,e))return e;throw wse("Incorrect invocation")},Ese=woe("iterator"),Dse=!1;try{var Sse=0,Cse={next:function(){return{done:!!Sse++}},return:function(){Dse=!0}};Cse[Ese]=function(){return this},Array.from(Cse,(function(){throw 2}))}catch(Al){}var Ase=function(e,t){if(!t&&!Dse)return!1;var n=!1;try{var r={};r[Ese]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ose=woe("species"),kse=hre.Array,Bse=function(e,t){return new(function(e){var t;return Nie(e)&&(t=e.constructor,(Yie(t)&&(t===kse||Nie(t.prototype))||Rre(t)&&null===(t=t[Ose]))&&(t=void 0)),void 0===t?kse:t}(e))(0===t?0:t)},Fse=Ore([].push),Tse=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=loe(s),g=Pre(h),v=lse(l,c),y=hie(g),m=0,b=f||Bse,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Fse(w,d)}else switch(e){case 4:return!1;case 7:Fse(w,d)}return i?-1:r||o?o:w}},_se={forEach:Tse(0),map:Tse(1),filter:Tse(2),some:Tse(3),every:Tse(4),find:Tse(5),findIndex:Tse(6),filterReject:Tse(7)},Pse=use.getWeakData,jse=eie.set,Nse=eie.getterFor,Ise=_se.find,Lse=_se.findIndex,Rse=Ore([].splice),Mse=0,zse=function(e){return e.frozen||(e.frozen=new Hse)},Hse=function(){this.entries=[]},$se=function(e,t){return Ise(e.entries,(function(e){return e[0]===t}))};Hse.prototype={get:function(e){var t=$se(this,e);if(t)return t[1]},has:function(e){return!!$se(this,e)},set:function(e,t){var n=$se(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Lse(this.entries,(function(t){return t[0]===e}));return~t&&Rse(this.entries,t,1),!!~t}};var Vse,Use={getConstructor:function(e,t,n,r){var o=e((function(e,o){xse(e,i),jse(e,{type:t,id:Mse++,frozen:void 0}),null!=o&&bse(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Nse(t),u=function(e,t,n){var r=a(e),o=Pse(_oe(t),!0);return!0===o?zse(r).set(t,n):o[r.id]=n,e};return Que(i,{delete:function(e){var t=a(this);if(!Rre(e))return!1;var n=Pse(e);return!0===n?zse(t).delete(e):n&&foe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Rre(e))return!1;var n=Pse(e);return!0===n?zse(t).has(e):n&&foe(n,t.id)}}),Que(i,n?{get:function(e){var t=a(this);if(Rre(e)){var n=Pse(e);return!0===n?zse(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Wse=eie.enforce,Gse=!hre.ActiveXObject&&"ActiveXObject"in hre,qse=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Kse=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=hre[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Ore(u[e]);iie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Rre(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Rre(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Rre(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(_ie(e,!Lre(a)||!(o||u.forEach&&!gre((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),use.enable();else if(_ie(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=gre((function(){f.has(1)})),h=Ase((function(e){new a(e)})),g=!o&&gre((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){xse(e,u);var n=function(e,t,n){var r,o;return Mue&&Lre(r=t.constructor)&&r!==n&&Rre(o=r.prototype)&&o!==n.prototype&&Mue(e,o),e}(new a,e,s);return null!=t&&bse(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,jie({global:!0,forced:s!=a},l),jue(s,e),o||n.setStrong(s,e,r),s}("WeakMap",qse,Use);if(Voe&&Gse){Vse=Use.getConstructor(qse,"WeakMap",!0),use.enable();var Yse=Kse.prototype,Xse=Ore(Yse.delete),Zse=Ore(Yse.has),Jse=Ore(Yse.get),Qse=Ore(Yse.set);Que(Yse,{delete:function(e){if(Rre(e)&&!ise(e)){var t=Wse(this);return t.frozen||(t.frozen=new Vse),Xse(this,e)||t.frozen.delete(e)}return Xse(this,e)},has:function(e){if(Rre(e)&&!ise(e)){var t=Wse(this);return t.frozen||(t.frozen=new Vse),Zse(this,e)||t.frozen.has(e)}return Zse(this,e)},get:function(e){if(Rre(e)&&!ise(e)){var t=Wse(this);return t.frozen||(t.frozen=new Vse),Zse(this,e)?Jse(this,e):t.frozen.get(e)}return Jse(this,e)},set:function(e,t){if(Rre(e)&&!ise(e)){var n=Wse(this);n.frozen||(n.frozen=new Vse),Zse(this,e)?Qse(this,e,t):n.frozen.set(e,t)}else Qse(this,e,t);return this}})}var ele={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},tle=Aoe("span").classList,nle=tle&&tle.constructor&&tle.constructor.prototype,rle=nle===Object.prototype?void 0:nle,ole=woe("iterator"),ile=woe("toStringTag"),ale=Yue.values,ule=function(e,t){if(e){if(e[ole]!==ale)try{Ioe(e,ole,ale)}catch(t){e[ole]=ale}if(e[ile]||Ioe(e,ile,t),ele[t])for(var n in Yue)if(e[n]!==Yue[n])try{Ioe(e,n,Yue[n])}catch(t){e[n]=Yue[n]}}};for(var sle in ele)ule(hre[sle]&&hre[sle].prototype,sle);ule(rle,"DOMTokenList");var lle=function(e,t){var n=[][e];return!!n&&gre((function(){n.call(null,t||function(){throw 1},1)}))},cle=_se.forEach,fle=lle("forEach")?[].forEach:function(e){return cle(this,e,arguments.length>1?arguments[1]:void 0)},dle=function(e){if(e&&e.forEach!==fle)try{Ioe(e,"forEach",fle)}catch(t){e.forEach=fle}};for(var ple in ele)ele[ple]&&dle(hre[ple]&&hre[ple].prototype);dle(rle);var hle,gle,vle,yle,mle=hre.Promise,ble=woe("species"),wle=/(?:ipad|iphone|ipod).*applewebkit/i.test($re),xle="process"==Fre(hre.process),Ele=hre.setImmediate,Dle=hre.clearImmediate,Sle=hre.process,Cle=hre.Dispatch,Ale=hre.Function,Ole=hre.MessageChannel,kle=hre.String,Ble=0,Fle={};try{hle=hre.location}catch(Al){}var Tle=function(e){if(foe(Fle,e)){var t=Fle[e];delete Fle[e],t()}},_le=function(e){return function(){Tle(e)}},Ple=function(e){Tle(e.data)},jle=function(e){hre.postMessage(kle(e),hle.protocol+"//"+hle.host)};Ele&&Dle||(Ele=function(e){var t=Jie(arguments,1);return Fle[++Ble]=function(){Vae(Lre(e)?e:Ale(e),void 0,t)},gle(Ble),Ble},Dle=function(e){delete Fle[e]},xle?gle=function(e){Sle.nextTick(_le(e))}:Cle&&Cle.now?gle=function(e){Cle.now(_le(e))}:Ole&&!wle?(yle=(vle=new Ole).port2,vle.port1.onmessage=Ple,gle=lse(yle.postMessage,yle)):hre.addEventListener&&Lre(hre.postMessage)&&!hre.importScripts&&hle&&"file:"!==hle.protocol&&!gre(jle)?(gle=jle,hre.addEventListener("message",Ple,!1)):gle="onreadystatechange"in Aoe("script")?function(e){hae.appendChild(Aoe("script")).onreadystatechange=function(){hae.removeChild(this),Tle(e)}}:function(e){setTimeout(_le(e),0)});var Nle,Ile,Lle,Rle,Mle,zle,Hle,$le,Vle={set:Ele,clear:Dle},Ule=/ipad|iphone|ipod/i.test($re)&&void 0!==hre.Pebble,Wle=/web0s(?!.*chrome)/i.test($re),Gle=Boe.f,qle=Vle.set,Kle=hre.MutationObserver||hre.WebKitMutationObserver,Yle=hre.document,Xle=hre.process,Zle=hre.Promise,Jle=Gle(hre,"queueMicrotask"),Qle=Jle&&Jle.value;Qle||(Nle=function(){var e,t;for(xle&&(e=Xle.domain)&&e.exit();Ile;){t=Ile.fn,Ile=Ile.next;try{t()}catch(e){throw Ile?Rle():Lle=void 0,e}}Lle=void 0,e&&e.enter()},wle||xle||Wle||!Kle||!Yle?!Ule&&Zle&&Zle.resolve?((Hle=Zle.resolve(void 0)).constructor=Zle,$le=lse(Hle.then,Hle),Rle=function(){$le(Nle)}):xle?Rle=function(){Xle.nextTick(Nle)}:(qle=lse(qle,hre),Rle=function(){qle(Nle)}):(Mle=!0,zle=Yle.createTextNode(""),new Kle(Nle).observe(zle,{characterData:!0}),Rle=function(){zle.data=Mle=!Mle}));var ece,tce,nce,rce,oce=Qle||function(e){var t={fn:e,next:void 0};Lle&&(Lle.next=t),Ile||(Ile=t,Rle()),Lle=t},ice=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=toe(t),this.reject=toe(n)},ace={f:function(e){return new ice(e)}},uce=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},sce="object"==typeof window,lce=Vle.set,cce=woe("species"),fce="Promise",dce=eie.getterFor(fce),pce=eie.set,hce=eie.getterFor(fce),gce=mle&&mle.prototype,vce=mle,yce=gce,mce=hre.TypeError,bce=hre.document,wce=hre.process,xce=ace.f,Ece=xce,Dce=!!(bce&&bce.createEvent&&hre.dispatchEvent),Sce=Lre(hre.PromiseRejectionEvent),Cce=!1,Ace=_ie(fce,(function(){var e=Hoe(vce),t=e!==String(vce);if(!t&&66===qre)return!0;if(qre>=51&&/native code/.test(e))return!1;var n=new vce((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[cce]=r,!(Cce=n.then((function(){}))instanceof r)||!t&&sce&&!Sce})),Oce=Ace||!Ase((function(e){vce.all(e).catch((function(){}))})),kce=function(e){var t;return!(!Rre(e)||!Lre(t=e.then))&&t},Bce=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;oce((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Pce(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(mce("Promise-chain cycle")):(u=kce(a))?mre(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Tce(e)}))}},Fce=function(e,t,n){var r,o;Dce?((r=bce.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),hre.dispatchEvent(r)):r={promise:t,reason:n},!Sce&&(o=hre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=hre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Tce=function(e){mre(lce,hre,(function(){var t,n=e.facade,r=e.value;if(_ce(e)&&(t=uce((function(){xle?wce.emit("unhandledRejection",r,n):Fce("unhandledrejection",n,r)})),e.rejection=xle||_ce(e)?2:1,t.error))throw t.value}))},_ce=function(e){return 1!==e.rejection&&!e.parent},Pce=function(e){mre(lce,hre,(function(){var t=e.facade;xle?wce.emit("rejectionHandled",t):Fce("rejectionhandled",t,e.value)}))},jce=function(e,t,n){return function(r){e(t,r,n)}},Nce=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Bce(e,!0))},Ice=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw mce("Promise can't be resolved itself");var r=kce(t);r?oce((function(){var n={done:!1};try{mre(r,t,jce(Ice,n,e),jce(Nce,n,e))}catch(t){Nce(n,t,e)}})):(e.value=t,e.state=1,Bce(e,!1))}catch(t){Nce({done:!1},t,e)}}};if(Ace&&(yce=(vce=function(e){xse(this,yce),toe(e),mre(ece,this);var t=dce(this);try{e(jce(Ice,t),jce(Nce,t))}catch(e){Nce(t,e)}}).prototype,(ece=function(e){pce(this,{type:fce,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Que(yce,{then:function(e,t){var n=hce(this),r=n.reactions,o=xce(Yae(this,vce));return o.ok=!Lre(e)||e,o.fail=Lre(t)&&t,o.domain=xle?wce.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Bce(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),tce=function(){var e=new ece,t=dce(e);this.promise=e,this.resolve=jce(Ice,t),this.reject=jce(Nce,t)},ace.f=xce=function(e){return e===vce||e===nce?new tce(e):Ece(e)},Lre(mle)&&gce!==Object.prototype)){rce=gce.then,Cce||(iie(gce,"then",(function(e,t){var n=this;return new vce((function(e,t){mre(rce,n,e,t)})).then(e,t)}),{unsafe:!0}),iie(gce,"catch",yce.catch,{unsafe:!0}));try{delete gce.constructor}catch(Al){}Mue&&Mue(gce,yce)}jie({global:!0,wrap:!0,forced:Ace},{Promise:vce}),jue(vce,fce,!1),function(e){var t=zre("Promise"),n=Noe.f;vre&&t&&!t[ble]&&n(t,ble,{configurable:!0,get:function(){return this}})}(),nce=zre(fce),jie({target:fce,stat:!0,forced:Ace},{reject:function(e){var t=xce(this);return mre(t.reject,void 0,e),t.promise}}),jie({target:fce,stat:!0,forced:Ace},{resolve:function(e){return function(e,t){if(_oe(e),Rre(t)&&t.constructor===e)return t;var n=ace.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),jie({target:fce,stat:!0,forced:Oce},{all:function(e){var t=this,n=xce(t),r=n.resolve,o=n.reject,i=uce((function(){var n=toe(t.resolve),i=[],a=0,u=1;bse(e,(function(e){var s=a++,l=!1;u++,mre(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=xce(t),r=n.reject,o=uce((function(){var o=toe(t.resolve);bse(e,(function(e){mre(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Lce=oie.PROPER,Rce=RegExp.prototype,Mce=Rce.toString,zce=Ore(uae),Hce=gre((function(){return"/a/b"!=Mce.call({source:"a",flags:"b"})})),$ce=Lce&&"toString"!=Mce.name;(Hce||$ce)&&iie(RegExp.prototype,"toString",(function(){var e=_oe(this),t=aae(e.source),n=e.flags;return"/"+t+"/"+aae(void 0===n&&Hre(Rce,e)&&!("flags"in Rce)?zce(e):n)}),{unsafe:!0});var Vce=oie.EXISTS,Uce=Noe.f,Wce=Function.prototype,Gce=Ore(Wce.toString),qce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Kce=Ore(qce.exec);vre&&!Vce&&Uce(Wce,"name",{configurable:!0,get:function(){try{return Kce(qce,Gce(this))[1]}catch(e){return""}}});var Yce=new WeakMap;function Xce(e){return e.getMenuConfig("uploadImage")}function Zce(e,t){return gue(this,void 0,void 0,(function(){return vue(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;Nz(e,i,t.name,a),n("ok")}}}))]}))}))}function Jce(e,t){return gue(this,void 0,void 0,(function(){var n,r,o,i;return vue(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Yce.get(e);if(null!=t)return t;var n=Xce(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=YT(hue(hue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return Nz(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;Nz(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;Nz(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Yce.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Qce(e,t){var n,r;return gue(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return vue(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Xce(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Zce(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return Nz(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Jce(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var efe=Ore([].join),tfe=Pre!=Object,nfe=lle("join",",");jie({target:"Array",proto:!0,forced:tfe||!nfe},{join:function(e){return efe(Ire(this),void 0===e?",":e)}}),Ip&&(gp.fn.append=Ip),Dp&&(gp.fn.on=Dp),$p&&(gp.fn.remove=$p),Ep&&(gp.fn.val=Ep),Gp&&(gp.fn.click=Gp),kp&&(gp.fn.hide=kp);var rfe=function(){function e(){this.title=H_("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Iz(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return Nz(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=gp("body"),s=gp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Qce(e,t)}))}},e}(),ofe={menus:[{key:"uploadImage",factory:function(){return new rfe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Iz(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Qce(e,o):t(r)}},n}};M_("en",{highLightModule:{selectLang:"Language"}}),M_("zh-CN",{highLightModule:{selectLang:"选择语言"}});var ife="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function afe(e){var t={exports:{}};return e(t,t.exports),t.exports}var ufe,sfe,lfe=function(e){return e&&e.Math==Math&&e},cfe=lfe("object"==typeof globalThis&&globalThis)||lfe("object"==typeof window&&window)||lfe("object"==typeof self&&self)||lfe("object"==typeof ife&&ife)||function(){return this}()||Function("return this")(),ffe=Object.defineProperty,dfe=function(e,t){try{ffe(cfe,e,{value:t,configurable:!0,writable:!0})}catch(n){cfe[e]=t}return t},pfe=cfe["__core-js_shared__"]||dfe("__core-js_shared__",{}),hfe=afe((function(e){(e.exports=function(e,t){return pfe[e]||(pfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),gfe=Function.prototype,vfe=gfe.bind,yfe=gfe.call,mfe=vfe&&vfe.bind(yfe),bfe=vfe?function(e){return e&&mfe(yfe,e)}:function(e){return e&&function(){return yfe.apply(e,arguments)}},wfe=cfe.TypeError,xfe=function(e){if(null==e)throw wfe("Can't call method on "+e);return e},Efe=cfe.Object,Dfe=function(e){return Efe(xfe(e))},Sfe=bfe({}.hasOwnProperty),Cfe=Object.hasOwn||function(e,t){return Sfe(Dfe(e),t)},Afe=0,Ofe=Math.random(),kfe=bfe(1..toString),Bfe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+kfe(++Afe+Ofe,36)},Ffe=function(e){return"function"==typeof e},Tfe=function(e){return Ffe(e)?e:void 0},_fe=function(e,t){return arguments.length<2?Tfe(cfe[e]):cfe[e]&&cfe[e][t]},Pfe=_fe("navigator","userAgent")||"",jfe=cfe.process,Nfe=cfe.Deno,Ife=jfe&&jfe.versions||Nfe&&Nfe.version,Lfe=Ife&&Ife.v8;Lfe&&(sfe=(ufe=Lfe.split("."))[0]>0&&ufe[0]<4?1:+(ufe[0]+ufe[1])),!sfe&&Pfe&&(!(ufe=Pfe.match(/Edge\/(\d+)/))||ufe[1]>=74)&&(ufe=Pfe.match(/Chrome\/(\d+)/))&&(sfe=+ufe[1]);var Rfe=sfe,Mfe=function(e){try{return!!e()}catch(e){return!0}},zfe=!!Object.getOwnPropertySymbols&&!Mfe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rfe&&Rfe<41})),Hfe=zfe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$fe=hfe("wks"),Vfe=cfe.Symbol,Ufe=Vfe&&Vfe.for,Wfe=Hfe?Vfe:Vfe&&Vfe.withoutSetter||Bfe,Gfe=function(e){if(!Cfe($fe,e)||!zfe&&"string"!=typeof $fe[e]){var t="Symbol."+e;zfe&&Cfe(Vfe,e)?$fe[e]=Vfe[e]:$fe[e]=Hfe&&Ufe?Ufe(t):Wfe(t)}return $fe[e]},qfe={};qfe[Gfe("toStringTag")]="z";var Kfe="[object z]"===String(qfe),Yfe=!Mfe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Xfe=function(e){return"object"==typeof e?null!==e:Ffe(e)},Zfe=cfe.document,Jfe=Xfe(Zfe)&&Xfe(Zfe.createElement),Qfe=function(e){return Jfe?Zfe.createElement(e):{}},ede=!Yfe&&!Mfe((function(){return 7!=Object.defineProperty(Qfe("div"),"a",{get:function(){return 7}}).a})),tde=cfe.String,nde=cfe.TypeError,rde=function(e){if(Xfe(e))return e;throw nde(tde(e)+" is not an object")},ode=Function.prototype.call,ide=ode.bind?ode.bind(ode):function(){return ode.apply(ode,arguments)},ade=bfe({}.isPrototypeOf),ude=cfe.Object,sde=Hfe?function(e){return"symbol"==typeof e}:function(e){var t=_fe("Symbol");return Ffe(t)&&ade(t.prototype,ude(e))},lde=cfe.String,cde=function(e){try{return lde(e)}catch(e){return"Object"}},fde=cfe.TypeError,dde=function(e){if(Ffe(e))return e;throw fde(cde(e)+" is not a function")},pde=function(e,t){var n=e[t];return null==n?void 0:dde(n)},hde=cfe.TypeError,gde=cfe.TypeError,vde=Gfe("toPrimitive"),yde=function(e){var t=function(e,t){if(!Xfe(e)||sde(e))return e;var n,r=pde(e,vde);if(r){if(void 0===t&&(t="default"),n=ide(r,e,t),!Xfe(n)||sde(n))return n;throw gde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ffe(n=e.toString)&&!Xfe(r=ide(n,e)))return r;if(Ffe(n=e.valueOf)&&!Xfe(r=ide(n,e)))return r;if("string"!==t&&Ffe(n=e.toString)&&!Xfe(r=ide(n,e)))return r;throw hde("Can't convert object to primitive value")}(e,t)}(e,"string");return sde(t)?t:t+""},mde=cfe.TypeError,bde=Object.defineProperty,wde={f:Yfe?bde:function(e,t,n){if(rde(e),t=yde(t),rde(n),ede)try{return bde(e,t,n)}catch(e){}if("get"in n||"set"in n)throw mde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xde=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ede=Yfe?function(e,t,n){return wde.f(e,t,xde(1,n))}:function(e,t,n){return e[t]=n,e},Dde=bfe(Function.toString);Ffe(pfe.inspectSource)||(pfe.inspectSource=function(e){return Dde(e)});var Sde,Cde,Ade,Ode=pfe.inspectSource,kde=cfe.WeakMap,Bde=Ffe(kde)&&/native code/.test(Ode(kde)),Fde=hfe("keys"),Tde=function(e){return Fde[e]||(Fde[e]=Bfe(e))},_de={},Pde=cfe.TypeError,jde=cfe.WeakMap;if(Bde||pfe.state){var Nde=pfe.state||(pfe.state=new jde),Ide=bfe(Nde.get),Lde=bfe(Nde.has),Rde=bfe(Nde.set);Sde=function(e,t){if(Lde(Nde,e))throw new Pde("Object already initialized");return t.facade=e,Rde(Nde,e,t),t},Cde=function(e){return Ide(Nde,e)||{}},Ade=function(e){return Lde(Nde,e)}}else{var Mde=Tde("state");_de[Mde]=!0,Sde=function(e,t){if(Cfe(e,Mde))throw new Pde("Object already initialized");return t.facade=e,Ede(e,Mde,t),t},Cde=function(e){return Cfe(e,Mde)?e[Mde]:{}},Ade=function(e){return Cfe(e,Mde)}}var zde={set:Sde,get:Cde,has:Ade,enforce:function(e){return Ade(e)?Cde(e):Sde(e,{})},getterFor:function(e){return function(t){var n;if(!Xfe(t)||(n=Cde(t)).type!==e)throw Pde("Incompatible receiver, "+e+" required");return n}}},Hde=Function.prototype,$de=Yfe&&Object.getOwnPropertyDescriptor,Vde=Cfe(Hde,"name"),Ude={EXISTS:Vde,PROPER:Vde&&"something"===function(){}.name,CONFIGURABLE:Vde&&(!Yfe||Yfe&&$de(Hde,"name").configurable)},Wde=afe((function(e){var t=Ude.CONFIGURABLE,n=zde.get,r=zde.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Ffe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cfe(i,"name")||t&&i.name!==f)&&Ede(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==cfe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ede(e,n,i)):l?e[n]=i:dfe(n,i)})(Function.prototype,"toString",(function(){return Ffe(this)&&n(this).source||Ode(this)}))})),Gde=bfe({}.toString),qde=bfe("".slice),Kde=function(e){return qde(Gde(e),8,-1)},Yde=Gfe("toStringTag"),Xde=cfe.Object,Zde="Arguments"==Kde(function(){return arguments}()),Jde=Kfe?Kde:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Xde(e),Yde))?n:Zde?Kde(t):"Object"==(r=Kde(t))&&Ffe(t.callee)?"Arguments":r},Qde=Kfe?{}.toString:function(){return"[object "+Jde(this)+"]"};Kfe||Wde(Object.prototype,"toString",Qde,{unsafe:!0});var epe,tpe={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},npe=Qfe("span").classList,rpe=npe&&npe.constructor&&npe.constructor.prototype,ope=rpe===Object.prototype?void 0:rpe,ipe=bfe(bfe.bind),ape=cfe.Object,upe=bfe("".split),spe=Mfe((function(){return!ape("z").propertyIsEnumerable(0)}))?function(e){return"String"==Kde(e)?upe(e,""):ape(e)}:ape,lpe=Math.ceil,cpe=Math.floor,fpe=function(e){var t=+e;return t!=t||0===t?0:(t>0?cpe:lpe)(t)},dpe=Math.min,ppe=function(e){return e>0?dpe(fpe(e),9007199254740991):0},hpe=function(e){return ppe(e.length)},gpe=Array.isArray||function(e){return"Array"==Kde(e)},vpe=function(){},ype=[],mpe=_fe("Reflect","construct"),bpe=/^\s*(?:class|function)\b/,wpe=bfe(bpe.exec),xpe=!bpe.exec(vpe),Epe=function(e){if(!Ffe(e))return!1;try{return mpe(vpe,ype,e),!0}catch(e){return!1}},Dpe=!mpe||Mfe((function(){var e;return Epe(Epe.call)||!Epe(Object)||!Epe((function(){e=!0}))||e}))?function(e){if(!Ffe(e))return!1;switch(Jde(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xpe||!!wpe(bpe,Ode(e))}:Epe,Spe=Gfe("species"),Cpe=cfe.Array,Ape=function(e,t){return new(function(e){var t;return gpe(e)&&(t=e.constructor,(Dpe(t)&&(t===Cpe||gpe(t.prototype))||Xfe(t)&&null===(t=t[Spe]))&&(t=void 0)),void 0===t?Cpe:t}(e))(0===t?0:t)},Ope=bfe([].push),kpe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Dfe(s),g=spe(h),v=function(e,t){return dde(e),void 0===t?e:ipe?ipe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=hpe(g),m=0,b=f||Ape,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ope(w,d)}else switch(e){case 4:return!1;case 7:Ope(w,d)}return i?-1:r||o?o:w}},Bpe=[kpe(0),kpe(1),kpe(2),kpe(3),kpe(4),kpe(5),kpe(6),kpe(7)][0],Fpe=(epe=[].forEach)&&Mfe((function(){epe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Bpe(this,e,arguments.length>1?arguments[1]:void 0)},Tpe=function(e){if(e&&e.forEach!==Fpe)try{Ede(e,"forEach",Fpe)}catch(t){e.forEach=Fpe}};for(var _pe in tpe)tpe[_pe]&&Tpe(cfe[_pe]&&cfe[_pe].prototype);Tpe(ope);var Ppe={}.propertyIsEnumerable,jpe=Object.getOwnPropertyDescriptor,Npe={f:jpe&&!Ppe.call({1:2},1)?function(e){var t=jpe(this,e);return!!t&&t.enumerable}:Ppe},Ipe=function(e){return spe(xfe(e))},Lpe=Object.getOwnPropertyDescriptor,Rpe={f:Yfe?Lpe:function(e,t){if(e=Ipe(e),t=yde(t),ede)try{return Lpe(e,t)}catch(e){}if(Cfe(e,t))return xde(!ide(Npe.f,e,t),e[t])}},Mpe=Math.max,zpe=Math.min,Hpe=function(e,t){var n=fpe(e);return n<0?Mpe(n+t,0):zpe(n,t)},$pe=function(e){return function(t,n,r){var o,i=Ipe(t),a=hpe(i),u=Hpe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Vpe=($pe(!0),$pe(!1)),Upe=bfe([].push),Wpe=function(e,t){var n,r=Ipe(e),o=0,i=[];for(n in r)!Cfe(_de,n)&&Cfe(r,n)&&Upe(i,n);for(;t.length>o;)Cfe(r,n=t[o++])&&(~Vpe(i,n)||Upe(i,n));return i},Gpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qpe=Gpe.concat("length","prototype"),Kpe={f:Object.getOwnPropertyNames||function(e){return Wpe(e,qpe)}},Ype={f:Object.getOwnPropertySymbols},Xpe=bfe([].concat),Zpe=_fe("Reflect","ownKeys")||function(e){var t=Kpe.f(rde(e)),n=Ype.f;return n?Xpe(t,n(e)):t},Jpe=function(e,t){for(var n=Zpe(t),r=wde.f,o=Rpe.f,i=0;i<n.length;i++){var a=n[i];Cfe(e,a)||r(e,a,o(t,a))}},Qpe=/#|\.prototype\./,ehe=function(e,t){var n=nhe[the(e)];return n==ohe||n!=rhe&&(Ffe(t)?Mfe(t):!!t)},the=ehe.normalize=function(e){return String(e).replace(Qpe,".").toLowerCase()},nhe=ehe.data={},rhe=ehe.NATIVE="N",ohe=ehe.POLYFILL="P",ihe=ehe,ahe=Rpe.f,uhe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?cfe:l?cfe[u]||dfe(u,{}):(cfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ahe(n,r))&&a.value:n[r],!ihe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jpe(i,o)}(e.sham||o&&o.sham)&&Ede(i,"sham",!0),Wde(n,r,i,e)}},she=Object.keys||function(e){return Wpe(e,Gpe)},lhe=Object.assign,che=Object.defineProperty,fhe=bfe([].concat),dhe=!lhe||Mfe((function(){if(Yfe&&1!==lhe({b:1},lhe(che({},"a",{enumerable:!0,get:function(){che(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=lhe({},e)[n]||she(lhe({},t)).join("")!=r}))?function(e,t){for(var n=Dfe(e),r=arguments.length,o=1,i=Ype.f,a=Npe.f;r>o;)for(var u,s=spe(arguments[o++]),l=i?fhe(she(s),i(s)):she(s),c=l.length,f=0;c>f;)u=l[f++],Yfe&&!ide(a,s,u)||(n[u]=s[u]);return n}:lhe;uhe({target:"Object",stat:!0,forced:Object.assign!==dhe},{assign:dhe});var phe=afe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,E=r.next,D=s;E!==t.tail&&!(f&&D>=f.reach);D+=E.value.length,E=E.next){var S=E.value;if(t.length>e.length)return;if(!(S instanceof i)){var C,A=1;if(m){if(!(C=a(x,D,e,y)))break;var O=C.index,k=C.index+C[0].length,B=D;for(B+=E.value.length;O>=B;)B+=(E=E.next).value.length;if(D=B-=E.value.length,E.value instanceof i)continue;for(var F=E;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,S=e.slice(D,B),C.index-=D}else if(!(C=a(x,0,S,y)))continue;O=C.index;var T=C[0],_=S.slice(0,O),P=S.slice(O+T.length),j=D+S.length;f&&j>f.reach&&(f.reach=j);var N=E.prev;if(_&&(N=l(t,N,_),D+=_.length),c(t,N,A),E=l(t,N,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,E,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,E.prev,D,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==ife&&(ife.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,m]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,E]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,d,g]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,y]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,E,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(E),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=C+"|"+S,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){return e.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var hhe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function ghe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+ghe(t)}),0)}var vhe,yhe=cfe.String,mhe=function(e){if("Symbol"===Jde(e))throw TypeError("Cannot convert a Symbol value to a string");return yhe(e)},bhe=function(){var e=rde(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},whe=cfe.RegExp,xhe=Mfe((function(){var e=whe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ehe=xhe||Mfe((function(){return!whe("a","y").sticky})),Dhe={BROKEN_CARET:xhe||Mfe((function(){var e=whe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ehe,UNSUPPORTED_Y:xhe},She=Yfe?Object.defineProperties:function(e,t){rde(e);for(var n,r=Ipe(t),o=she(t),i=o.length,a=0;i>a;)wde.f(e,n=o[a++],r[n]);return e},Che=_fe("document","documentElement"),Ahe=Tde("IE_PROTO"),Ohe=function(){},khe=function(e){return"<script>"+e+"<\/script>"},Bhe=function(e){e.write(khe("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fhe=function(){try{vhe=new ActiveXObject("htmlfile")}catch(e){}var e,t;Fhe="undefined"!=typeof document?document.domain&&vhe?Bhe(vhe):((t=Qfe("iframe")).style.display="none",Che.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(khe("document.F=Object")),e.close(),e.F):Bhe(vhe);for(var n=Gpe.length;n--;)delete Fhe.prototype[Gpe[n]];return Fhe()};_de[Ahe]=!0;var The,_he,Phe=Object.create||function(e,t){var n;return null!==e?(Ohe.prototype=rde(e),n=new Ohe,Ohe.prototype=null,n[Ahe]=e):n=Fhe(),void 0===t?n:She(n,t)},jhe=cfe.RegExp,Nhe=Mfe((function(){var e=jhe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ihe=cfe.RegExp,Lhe=Mfe((function(){var e=Ihe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Rhe=zde.get,Mhe=hfe("native-string-replace",String.prototype.replace),zhe=RegExp.prototype.exec,Hhe=zhe,$he=bfe("".charAt),Vhe=bfe("".indexOf),Uhe=bfe("".replace),Whe=bfe("".slice),Ghe=(_he=/b*/g,ide(zhe,The=/a/,"a"),ide(zhe,_he,"a"),0!==The.lastIndex||0!==_he.lastIndex),qhe=Dhe.BROKEN_CARET,Khe=void 0!==/()??/.exec("")[1];(Ghe||Khe||qhe||Nhe||Lhe)&&(Hhe=function(e){var t,n,r,o,i,a,u,s=this,l=Rhe(s),c=mhe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ide(Hhe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=qhe&&s.sticky,h=ide(bhe,s),g=s.source,v=0,y=c;if(p&&(h=Uhe(h,"y",""),-1===Vhe(h,"g")&&(h+="g"),y=Whe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==$he(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Khe&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ghe&&(r=s.lastIndex),o=ide(zhe,p?n:s,y),p?o?(o.input=Whe(o.input,v),o[0]=Whe(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ghe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Khe&&o&&o.length>1&&ide(Mhe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Phe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Yhe=Hhe;uhe({target:"RegExp",proto:!0,forced:/./.exec!==Yhe},{exec:Yhe});var Xhe=Function.prototype,Zhe=Xhe.apply,Jhe=Xhe.bind,Qhe=Xhe.call,ege="object"==typeof Reflect&&Reflect.apply||(Jhe?Qhe.bind(Zhe):function(){return Qhe.apply(Zhe,arguments)}),tge=Gfe("species"),nge=RegExp.prototype,rge=Gfe("match"),oge=cfe.TypeError,ige=Gfe("species"),age=bfe("".charAt),uge=bfe("".charCodeAt),sge=bfe("".slice),lge=function(e){return function(t,n){var r,o,i=mhe(xfe(t)),a=fpe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=uge(i,a))<55296||r>56319||a+1===u||(o=uge(i,a+1))<56320||o>57343?e?age(i,a):r:e?sge(i,a,a+2):o-56320+(r-55296<<10)+65536}},cge=(lge(!1),lge(!0)),fge=function(e,t,n){return t+(n?cge(e,t).length:1)},dge=cfe.Array,pge=Math.max,hge=function(e,t,n){for(var r,o,i,a,u=hpe(e),s=Hpe(t,u),l=Hpe(void 0===n?u:n,u),c=dge(pge(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=yde(o))in r?wde.f(r,a,xde(0,i)):r[a]=i;return c.length=f,c},gge=cfe.TypeError,vge=function(e,t){var n=e.exec;if(Ffe(n)){var r=ide(n,e,t);return null!==r&&rde(r),r}if("RegExp"===Kde(e))return ide(Yhe,e,t);throw gge("RegExp#exec called on incompatible receiver")},yge=Dhe.UNSUPPORTED_Y,mge=Math.min,bge=[].push,wge=bfe(/./.exec),xge=bfe(bge),Ege=bfe("".slice);!function(e,t,n,r){var o=Gfe(e),i=!Mfe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Mfe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[tge]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=bfe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=mhe(xfe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Xfe(r=e)||!(void 0!==(o=r[rge])?o:"RegExp"==Kde(r)))return ide(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=ide(Yhe,p,i))&&!((s=p.lastIndex)>d&&(xge(c,Ege(i,d,u.index)),u.length>1&&u.index<i.length&&ege(bge,c,hge(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&wge(p,"")||xge(c,""):xge(c,Ege(i,d)),c.length>a?hge(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:ide(t,this,e,n)}:t,[function(t,n){var o=xfe(this),i=null==t?void 0:pde(t,e);return i?ide(i,t,o,n):ide(r,mhe(o),t,n)},function(e,o){var i=rde(this),a=mhe(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=rde(e).constructor;return void 0===r||null==(n=rde(r)[ige])?t:function(e){if(Dpe(e))return e;throw oge(cde(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(yge?"g":"y"),f=new s(yge?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===vge(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=yge?0:h;var v,y=vge(f,yge?Ege(a,h):a);if(null===y||(v=mge(ppe(f.lastIndex+(yge?h:0)),a.length))===p)h=fge(a,h,l);else{if(xge(g,Ege(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(xge(g,y[m]),g.length===d)return g;h=p=v}}return xge(g,Ege(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=bfe(e),s=t.exec;return s===Yhe||s===nge.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Wde(String.prototype,e,s[0]),Wde(nge,o,s[1])}r&&Ede(nge[o],"sham",!0)}("split",0,!!Mfe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),yge),uhe({global:!0},{globalThis:cfe}),bp&&(gp.fn.attr=bp);var Dge=Ude.PROPER,Sge=RegExp.prototype,Cge=Sge.toString,Age=bfe(bhe),Oge=Mfe((function(){return"/a/b"!=Cge.call({source:"a",flags:"b"})})),kge=Dge&&"toString"!=Cge.name;(Oge||kge)&&Wde(RegExp.prototype,"toString",(function(){var e=rde(this),t=mhe(e.source),n=e.flags;return"/"+t+"/"+mhe(void 0===n&&ade(Sge,e)&&!("flags"in Sge)?Age(e):n)}),{unsafe:!0});var Bge=function(){function e(){this.title=H_("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!uf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};ed.setNodes(e,n,{match:function(e){return aO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=aO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=aO.getParentNode(e,t);return uf.isElement(n)?"pre"!==n.type?null:t:null},e}(),Fge={renderStyle:function(e,t){var n=e,r=t,o="";return hhe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=gp(e);if(!uf.isElement(t))return t;if("code"!==aO.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Bge},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Tge=/"/g,_ge=bfe("".replace);uhe({target:"String",proto:!0,forced:Mfe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=mhe(xfe(this)),r="<a",(r+=' name="'+_ge(mhe(t),Tge,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Pge=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!Lf.isText(e))return null;var t=aO.getParentNode(null,e);if(t&&"code"===aO.getNodeType(t)){var n=aO.getParentNode(null,t);if(n&&"pre"===aO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=phe.languages[t];return n?phe.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+ghe(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},jge=function(){return(jge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Nge=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=jge(jge({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=jge(jge({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=jge(jge({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=jge(jge({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=dC(dC({},o),t||{});if(null!=lO[n])throw new Error("Duplicated key '"+n+"' in menu items");lO[n]=r,function(e,t){null!=t&&(sO[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;UF[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){VF.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;EO[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){xO.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){lB.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;fB[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){cB.push(e)}(e)},e.registerModule=function(e){Ige(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Ige(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Nge.registerMenu(e)})),n&&n.forEach((function(e){return Nge.registerRenderElem(e)})),r&&Nge.registerRenderStyle(r),o&&o.forEach((function(e){return Nge.registerElemToHtml(e)})),i&&Nge.registerStyleToHtml(i),a&&a.forEach((function(e){return Nge.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Nge.registerParseElemHtml(e)})),s&&Nge.registerParseStyleHtml(s),l&&Nge.registerPlugin(l)}MG.forEach((function(e){return Ige(e)})),Ige(oQ),Ige(z3),Ige(sre),Ige(ofe),Ige(Fge);var Lge='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Rge={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Mge={hoverbarKeys:jge(jge({},Rge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Nge.setEditorConfig(jge(jge({},Mge),{decorate:Pge}));var zge={hoverbarKeys:Rge};Nge.setSimpleEditorConfig(jge(jge({},zge),{decorate:Pge}));var Hge={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:H_("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:H_("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:H_("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:H_("editor.image"),iconSvg:Lge,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:H_("editor.video"),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>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Nge.setToolbarConfig(Hge);var $ge={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:H_("editor.image"),iconSvg:Lge,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Vge(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Nge.simpleEditorConfig:Nge.editorConfig,c=jge(jge({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return LT({selector:n,config:jge(jge(jge({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Nge.plugins})}function Uge(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Nge.simpleToolbarConfig:Nge.toolbarConfig;return function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return VB(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=dC({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new $T(n,i);return gA.set(a,e),vA.set(e,a),a}(n,{selector:t,config:jge(jge({},u),o)})}Nge.setSimpleToolbarConfig($ge)}).call(this,n(36))},955:function(e,t,n){var r=n(956);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0};n(103)(r,o);r.locals&&(e.exports=r.locals)},956:function(e,t,n){(t=n(102)(!1)).push([e.i,':root,\n:host {\n --w-e-textarea-bg-color: #fff;\n --w-e-textarea-color: #333;\n --w-e-textarea-border-color: #ccc;\n --w-e-textarea-slight-border-color: #e8e8e8;\n --w-e-textarea-slight-color: #d4d4d4;\n --w-e-textarea-slight-bg-color: #f5f2f0;\n --w-e-textarea-selected-border-color: #B4D5FF;\n --w-e-textarea-handler-bg-color: #4290f7;\n --w-e-toolbar-color: #595959;\n --w-e-toolbar-bg-color: #fff;\n --w-e-toolbar-active-color: #333;\n --w-e-toolbar-active-bg-color: #f1f1f1;\n --w-e-toolbar-disabled-color: #999;\n --w-e-toolbar-border-color: #e8e8e8;\n --w-e-modal-button-bg-color: #fafafa;\n --w-e-modal-button-border-color: #d9d9d9;\n}\n.w-e-text-container *,\n.w-e-toolbar * {\n box-sizing: border-box;\n margin: 0;\n outline: none;\n padding: 0;\n}\n.w-e-text-container blockquote,\n.w-e-text-container li,\n.w-e-text-container p,\n.w-e-text-container td,\n.w-e-text-container th,\n.w-e-toolbar * {\n line-height: 1.5;\n}\n.w-e-text-container {\n background-color: var(--w-e-textarea-bg-color);\n color: var(--w-e-textarea-color);\n height: 100%;\n position: relative;\n}\n.w-e-text-container .w-e-scroll {\n -webkit-overflow-scrolling: touch;\n height: 100%;\n}\n.w-e-text-container [data-slate-editor] {\n word-wrap: break-word;\n border-top: 1px solid transparent;\n min-height: 100%;\n outline: 0;\n padding: 0 10px;\n white-space: pre-wrap;\n}\n.w-e-text-container [data-slate-editor] p {\n margin: 15px 0;\n}\n.w-e-text-container [data-slate-editor] h1,\n.w-e-text-container [data-slate-editor] h2,\n.w-e-text-container [data-slate-editor] h3,\n.w-e-text-container [data-slate-editor] h4,\n.w-e-text-container [data-slate-editor] h5 {\n margin: 20px 0;\n}\n.w-e-text-container [data-slate-editor] img {\n cursor: default;\n display: inline!important;\n max-width: 100%;\n min-height: 20px;\n min-width: 20px;\n}\n.w-e-text-container [data-slate-editor] span {\n text-indent: 0;\n}\n.w-e-text-container [data-slate-editor] [data-selected=true] {\n box-shadow: 0 0 0 2px var(--w-e-textarea-selected-border-color);\n}\n.w-e-text-placeholder {\n font-style: italic;\n left: 10px;\n top: 17px;\n width: 90%;\n}\n.w-e-max-length-info,\n.w-e-text-placeholder {\n color: var(--w-e-textarea-slight-color);\n pointer-events: none;\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.w-e-max-length-info {\n bottom: 0.5em;\n right: 1em;\n}\n.w-e-bar {\n background-color: var(--w-e-toolbar-bg-color);\n color: var(--w-e-toolbar-color);\n font-size: 14px;\n padding: 0 5px;\n}\n.w-e-bar svg {\n fill: var(--w-e-toolbar-color);\n height: 14px;\n width: 14px;\n}\n.w-e-bar-show {\n display: flex;\n}\n.w-e-bar-hidden {\n display: none;\n}\n.w-e-hover-bar {\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 5px #0000001f;\n position: absolute;\n}\n.w-e-toolbar {\n flex-wrap: wrap;\n position: relative;\n}\n.w-e-bar-divider {\n background-color: var(--w-e-toolbar-border-color);\n display: inline-flex;\n height: 40px;\n margin: 0 5px;\n width: 1px;\n}\n.w-e-bar-item {\n display: flex;\n height: 40px;\n padding: 4px;\n position: relative;\n text-align: center;\n}\n.w-e-bar-item,\n.w-e-bar-item button {\n align-items: center;\n justify-content: center;\n}\n.w-e-bar-item button {\n background: transparent;\n border: none;\n color: var(--w-e-toolbar-color);\n cursor: pointer;\n display: inline-flex;\n height: 32px;\n overflow: hidden;\n padding: 0 8px;\n white-space: nowrap;\n}\n.w-e-bar-item button:hover {\n background-color: var(--w-e-toolbar-active-bg-color);\n color: var(--w-e-toolbar-active-color);\n}\n.w-e-bar-item button .title {\n margin-left: 5px;\n}\n.w-e-bar-item .active {\n background-color: var(--w-e-toolbar-active-bg-color);\n color: var(--w-e-toolbar-active-color);\n}\n.w-e-bar-item .disabled {\n color: var(--w-e-toolbar-disabled-color);\n cursor: not-allowed;\n}\n.w-e-bar-item .disabled svg {\n fill: var(--w-e-toolbar-disabled-color);\n}\n.w-e-bar-item .disabled:hover {\n background-color: var(--w-e-toolbar-bg-color);\n color: var(--w-e-toolbar-disabled-color);\n}\n.w-e-bar-item .disabled:hover svg {\n fill: var(--w-e-toolbar-disabled-color);\n}\n.w-e-menu-tooltip-v5:before {\n background-color: var(--w-e-toolbar-active-color);\n border-radius: 5px;\n color: var(--w-e-toolbar-bg-color);\n content: attr(data-tooltip);\n font-size: 0.75em;\n opacity: 0;\n padding: 5px 10px;\n position: absolute;\n text-align: center;\n top: 40px;\n transition: opacity 0.6s;\n visibility: hidden;\n white-space: pre;\n z-index: 1;\n}\n.w-e-menu-tooltip-v5:after {\n border: 5px solid transparent;\n border-bottom: 5px solid var(--w-e-toolbar-active-color);\n content: "";\n opacity: 0;\n position: absolute;\n top: 30px;\n transition: opacity 0.6s;\n visibility: hidden;\n}\n.w-e-menu-tooltip-v5:hover:after,\n.w-e-menu-tooltip-v5:hover:before {\n opacity: 1;\n visibility: visible;\n}\n.w-e-menu-tooltip-v5.tooltip-right:before {\n left: 100%;\n top: 10px;\n}\n.w-e-menu-tooltip-v5.tooltip-right:after {\n border-bottom-color: transparent;\n border-left-color: transparent;\n border-right-color: var(--w-e-toolbar-active-color);\n border-top-color: transparent;\n left: 100%;\n margin-left: -10px;\n top: 16px;\n}\n.w-e-bar-item-group .w-e-bar-item-menus-container {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n display: none;\n left: 0;\n margin-top: 40px;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-bar-item-group:hover .w-e-bar-item-menus-container {\n display: block;\n}\n.w-e-select-list {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n left: 0;\n margin-top: 40px;\n max-height: 350px;\n min-width: 100px;\n overflow-y: auto;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-select-list ul {\n line-height: 1;\n list-style: none;\n}\n.w-e-select-list ul .selected {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-select-list ul li {\n cursor: pointer;\n padding: 7px 0 7px 25px;\n position: relative;\n text-align: left;\n white-space: nowrap;\n}\n.w-e-select-list ul li:hover {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-select-list ul li svg {\n left: 0;\n margin-left: 5px;\n margin-top: -7px;\n position: absolute;\n top: 50%;\n}\n.w-e-bar-bottom .w-e-select-list {\n bottom: 0;\n margin-bottom: 40px;\n margin-top: 0;\n top: inherit;\n}\n.w-e-drop-panel {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n margin-top: 40px;\n min-width: 200px;\n padding: 10px;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-bar-bottom .w-e-drop-panel {\n bottom: 0;\n margin-bottom: 40px;\n margin-top: 0;\n top: inherit;\n}\n.w-e-modal {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n color: var(--w-e-toolbar-color);\n font-size: 14px;\n min-height: 40px;\n min-width: 100px;\n padding: 20px 15px 0;\n position: absolute;\n text-align: left;\n z-index: 1;\n}\n.w-e-modal .btn-close {\n cursor: pointer;\n line-height: 1;\n padding: 5px;\n position: absolute;\n right: 8px;\n top: 7px;\n}\n.w-e-modal .btn-close svg {\n fill: var(--w-e-toolbar-color);\n height: 10px;\n width: 10px;\n}\n.w-e-modal .babel-container {\n display: block;\n margin-bottom: 15px;\n}\n.w-e-modal .babel-container span {\n display: block;\n margin-bottom: 10px;\n}\n.w-e-modal .button-container {\n margin-bottom: 15px;\n}\n.w-e-modal button {\n background-color: var(--w-e-modal-button-bg-color);\n border: 1px solid var(--w-e-modal-button-border-color);\n border-radius: 4px;\n color: var(--w-e-toolbar-color);\n cursor: pointer;\n font-weight: 400;\n height: 32px;\n padding: 4.5px 15px;\n text-align: center;\n touch-action: manipulation;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n white-space: nowrap;\n}\n.w-e-modal input[type=number],\n.w-e-modal input[type=text],\n.w-e-modal textarea {\n font-feature-settings: "tnum";\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-modal-button-border-color);\n border-radius: 4px;\n color: var(--w-e-toolbar-color);\n font-variant: tabular-nums;\n padding: 4.5px 11px;\n transition: all 0.3s;\n width: 100%;\n}\n.w-e-modal textarea {\n min-height: 60px;\n}\nbody .w-e-modal,\nbody .w-e-modal * {\n box-sizing: border-box;\n}\n.w-e-progress-bar {\n background-color: var(--w-e-textarea-handler-bg-color);\n height: 1px;\n position: absolute;\n transition: width 0.3s;\n width: 0;\n}\n.w-e-full-screen-container {\n bottom: 0!important;\n display: flex!important;\n flex-direction: column!important;\n height: 100%!important;\n left: 0!important;\n margin: 0!important;\n padding: 0!important;\n position: fixed;\n right: 0!important;\n top: 0!important;\n width: 100% !important;\n}\n.w-e-full-screen-container [data-w-e-textarea=true] {\n flex: 1 !important;\n}\n.w-e-text-container [data-slate-editor] code {\n background-color: var(--w-e-textarea-slight-bg-color);\n border-radius: 3px;\n font-family: monospace;\n padding: 3px;\n}\n.w-e-panel-content-color {\n list-style: none;\n text-align: left;\n width: 230px;\n}\n.w-e-panel-content-color li {\n border: 1px solid var(--w-e-toolbar-bg-color);\n border-radius: 3px 3px;\n cursor: pointer;\n display: inline-block;\n padding: 2px;\n}\n.w-e-panel-content-color li:hover {\n border-color: var(--w-e-toolbar-color);\n}\n.w-e-panel-content-color li .color-block {\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px 3px;\n height: 17px;\n width: 17px;\n}\n.w-e-panel-content-color .active {\n border-color: var(--w-e-toolbar-color);\n}\n.w-e-panel-content-color .clear {\n line-height: 1.5;\n margin-bottom: 5px;\n width: 100%;\n}\n.w-e-panel-content-color .clear svg {\n height: 16px;\n margin-bottom: -4px;\n width: 16px;\n}\n.w-e-text-container [data-slate-editor] blockquote {\n background-color: var(--w-e-textarea-slight-bg-color);\n border-left: 8px solid var(--w-e-textarea-selected-border-color);\n display: block;\n font-size: 100%;\n line-height: 1.5;\n margin: 10px 0;\n padding: 10px;\n}\n.w-e-panel-content-emotion {\n font-size: 20px;\n list-style: none;\n text-align: left;\n width: 300px;\n}\n.w-e-panel-content-emotion li {\n border-radius: 3px 3px;\n cursor: pointer;\n display: inline-block;\n padding: 0 5px;\n}\n.w-e-panel-content-emotion li:hover {\n background-color: var(--w-e-textarea-slight-bg-color);\n}\n.w-e-textarea-divider {\n border-radius: 3px;\n margin: 20px auto;\n padding: 20px;\n}\n.w-e-textarea-divider hr {\n background-color: var(--w-e-textarea-border-color);\n border: 0;\n display: block;\n height: 1px;\n}\n.w-e-text-container [data-slate-editor] pre > code {\n background-color: var(--w-e-textarea-slight-bg-color);\n border: 1px solid var(--w-e-textarea-slight-border-color);\n border-radius: 4px 4px;\n display: block;\n font-size: 14px;\n padding: 10px;\n text-indent: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-image-container {\n display: inline-block;\n margin: 0 3px;\n}\n.w-e-text-container [data-slate-editor] .w-e-image-container:hover {\n box-shadow: 0 0 0 2px var(--w-e-textarea-selected-border-color);\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container {\n overflow: hidden;\n position: relative;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger {\n background-color: var(--w-e-textarea-handler-bg-color);\n height: 7px;\n position: absolute;\n width: 7px;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top {\n cursor: nwse-resize;\n left: 0;\n top: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top {\n cursor: nesw-resize;\n right: 0;\n top: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom {\n bottom: 0;\n cursor: nesw-resize;\n left: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom {\n bottom: 0;\n cursor: nwse-resize;\n right: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover {\n box-shadow: none;\n}\n.w-e-text-container [contenteditable=false] .w-e-image-container:hover {\n box-shadow: none;\n}\n.w-e-text-container [data-slate-editor] .table-container {\n border: 1px dashed var(--w-e-textarea-border-color);\n border-radius: 5px;\n margin-top: 10px;\n overflow-x: auto;\n padding: 10px;\n width: 100%;\n}\n.w-e-text-container [data-slate-editor] table {\n border-collapse: collapse;\n}\n.w-e-text-container [data-slate-editor] table td,\n.w-e-text-container [data-slate-editor] table th {\n border: 1px solid var(--w-e-textarea-border-color);\n line-height: 1.5;\n min-width: 30px;\n padding: 3px 5px;\n text-align: left;\n}\n.w-e-text-container [data-slate-editor] table th {\n background-color: var(--w-e-textarea-slight-bg-color);\n font-weight: 700;\n text-align: center;\n}\n.w-e-panel-content-table {\n background-color: var(--w-e-toolbar-bg-color);\n}\n.w-e-panel-content-table table {\n border-collapse: collapse;\n}\n.w-e-panel-content-table td {\n border: 1px solid var(--w-e-toolbar-border-color);\n cursor: pointer;\n height: 15px;\n padding: 3px 5px;\n width: 20px;\n}\n.w-e-panel-content-table td.active {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-textarea-video-container {\n background-image: linear-gradient(45deg, #eee 25%, transparent 0, transparent 75%, #eee 0, #eee), linear-gradient(45deg, #eee 25%, #fff 0, #fff 75%, #eee 0, #eee);\n background-position: 0 0,10px 10px;\n background-size: 20px 20px;\n border: 1px dashed var(--w-e-textarea-border-color);\n border-radius: 5px;\n margin: 10px auto 0;\n padding: 10px 0;\n text-align: center;\n}\n.w-e-text-container [data-slate-editor] pre > code {\n word-wrap: normal;\n font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;\n -webkit-hyphens: none;\n hyphens: none;\n line-height: 1.5;\n margin: 0.5em 0;\n overflow: auto;\n padding: 1em;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n text-align: left;\n text-shadow: 0 1px #fff;\n white-space: pre;\n word-break: normal;\n word-spacing: normal;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.cdata,\n.w-e-text-container [data-slate-editor] pre > code .token.comment,\n.w-e-text-container [data-slate-editor] pre > code .token.doctype,\n.w-e-text-container [data-slate-editor] pre > code .token.prolog {\n color: #708090;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.punctuation {\n color: #999;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.namespace {\n opacity: 0.7;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.boolean,\n.w-e-text-container [data-slate-editor] pre > code .token.constant,\n.w-e-text-container [data-slate-editor] pre > code .token.deleted,\n.w-e-text-container [data-slate-editor] pre > code .token.number,\n.w-e-text-container [data-slate-editor] pre > code .token.property,\n.w-e-text-container [data-slate-editor] pre > code .token.symbol,\n.w-e-text-container [data-slate-editor] pre > code .token.tag {\n color: #905;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.attr-name,\n.w-e-text-container [data-slate-editor] pre > code .token.builtin,\n.w-e-text-container [data-slate-editor] pre > code .token.char,\n.w-e-text-container [data-slate-editor] pre > code .token.inserted,\n.w-e-text-container [data-slate-editor] pre > code .token.selector,\n.w-e-text-container [data-slate-editor] pre > code .token.string {\n color: #690;\n}\n.w-e-text-container [data-slate-editor] pre > code .language-css .token.string,\n.w-e-text-container [data-slate-editor] pre > code .style .token.string,\n.w-e-text-container [data-slate-editor] pre > code .token.entity,\n.w-e-text-container [data-slate-editor] pre > code .token.operator,\n.w-e-text-container [data-slate-editor] pre > code .token.url {\n color: #9a6e3a;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.atrule,\n.w-e-text-container [data-slate-editor] pre > code .token.attr-value,\n.w-e-text-container [data-slate-editor] pre > code .token.keyword {\n color: #07a;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.class-name,\n.w-e-text-container [data-slate-editor] pre > code .token.function {\n color: #dd4a68;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.important,\n.w-e-text-container [data-slate-editor] pre > code .token.regex,\n.w-e-text-container [data-slate-editor] pre > code .token.variable {\n color: #e90;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.bold,\n.w-e-text-container [data-slate-editor] pre > code .token.important {\n font-weight: 700;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.italic {\n font-style: italic;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.entity {\n cursor: help;\n}\n',""]),e.exports=t}}]);
3
3
  //# sourceMappingURL=async-feffery_rich_text_editor.js.map
4
4
  //# sourceMappingURL=async-feffery_rich_text_editor.js.map