| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[1611],{34002:function(e,t,n){n.d(t,{Z:function(){return l}});var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{display:"inline"}},[n("el-popconfirm",{attrs:{title:"确定删除当前通告吗?"},on:{confirm:function(t){return e.deleteRow()}}},[n("el-button",{attrs:{slot:"reference",size:"small",type:"primary",plain:""},slot:"reference"},[e._v("删 除")])],1)],1)},o=[],i={props:["data"],methods:{deleteRow(){this.$api.requested({id:20221101095103,method:"delete",content:{sat_noticeids:[this.$route.query.id]}}).then((e=>{this.tool.showMessage(e,(()=>{this.$emit("onSuccess")}))}))}}},a=i,u=n(43736),s=(0,u.Z)(a,r,o,!1,null,null,null),l=s.exports},31611:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"inline-16"},[n("el-button",{attrs:{size:"small",type:"text"},on:{click:function(t){return e.onshow(e.drawer=!0)}}},[e._v("详情")]),n("el-drawer",{attrs:{title:"编辑",visible:e.drawer,"with-header":!1,direction:"rtl",size:"90%","append-to-body":""},on:{"update:visible":function(t){e.drawer=t},close:function(t){e.drawer=!1}}},[n("div",{staticClass:"detail__panel"},[n("div",{staticClass:"container normal-panel normal-margin sticky"},[e.edit?n("el-button",{staticClass:"inline-16",attrs:{disabled:"发布"==e.form.status,type:"primary",size:"small"},on:{click:function(t){return e.onEdit()}}},[e._v("编 辑")]):e._e(),e.save?n("p",{staticClass:"inline-16"},[e._v("编辑")]):e._e(),e.tool.checkAuth(e.$route.name,"update")&&e.status?n("release",{staticClass:"inline-16",attrs:{data:e.form},on:{onSuccess:e.onSuccess}}):e._e(),e.tool.checkAuth(e.$route.name,"update")&&e.status?n("topping",{staticClass:"inline-16",attrs:{data:e.form},on:{onSuccess:e.onSuccess}}):e._e(),e.tool.checkAuth(e.$route.name,"delete")&&"新建"==e.form.status?n("Del",{attrs:{data:{sat_noticeid:e.$route.query.id}},on:{onSuccess:function(t){e.drawer=!1,e.$router.push({path:"/notice_mag_list"})}}}):e._e()],1),n("div",{staticStyle:{"overflow-x":"hidden"}},[n("el-row",{attrs:{gutter:16}},[n("el-col",{attrs:{span:13}},[n("div",{staticClass:"container normal-panel normal-margin"},[n("p",{staticClass:"normal-title normal-margin"},[e._v("通告设置")]),n("el-row",{attrs:{gutter:16}},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px","label-position":"right",size:"small",disabled:e.edit}},[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"标题",prop:"title"}},[n("el-input",{model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"导语",prop:"summary"}},[n("el-input",{model:{value:e.form.summary,callback:function(t){e.$set(e.form,"summary",t)},expression:"form.summary"}})],1)],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"板块",prop:"sat_notice_classid"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.sat_notice_classid,callback:function(t){e.$set(e.form,"sat_notice_classid",t)},expression:"form.sat_notice_classid"}},e._l(e.options,(function(e){return n("el-option",{key:e.sat_notice_classid,attrs:{label:e.classname,value:e.sat_notice_classid}})})),1)],1)],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"生效日期",prop:"begdate"}},[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"生效日期"},model:{value:e.form.begdate,callback:function(t){e.$set(e.form,"begdate",t)},expression:"form.begdate"}})],1)],1),n("el-col",{attrs:{span:8}},[n("el-form-item",{attrs:{label:"截止日期",prop:"enddate"}},[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"截止日期"},model:{value:e.form.enddate,callback:function(t){e.$set(e.form,"enddate",t)},expression:"form.enddate"}})],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"是否置顶"}},[n("el-radio-group",{model:{value:e.form.isontop,callback:function(t){e.$set(e.form,"isontop",t)},expression:"form.isontop"}},[n("el-radio",{attrs:{label:1}},[e._v("置顶")]),n("el-radio",{attrs:{label:0}},[e._v("不置顶")])],1)],1)],1),n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"通告封面"}},[e.form.cover?n("previewImage",{staticStyle:{width:"256px"},attrs:{image:e.image,deletebtn:!0},on:{onSuccess:e.clearCover}}):n("upload",{attrs:{btntype:"image",folderid:e.folderid,accept:".JPG,.PNG",bindData:{ownertable:"sat_notice",ownerid:e.form.sat_noticeid,usetype:"cover"}},on:{onSuccess:e.onCoverSubmit}}),n("p",{staticClass:"info"},[e._v("注:建议上传图片大小130x80像素,大小不超过2M,格式为JPG/PNG")])],1)],1)],1)],1)],1),n("div",{staticClass:"container normal-panel normal-margin"},[n("attachmentList",{attrs:{attinfos:e.attinfo_video,onlyread:e.store.state.pageOnlyRead},on:{onSuccess:e.queryNoticeMain}},[n("p",{attrs:{slot:"title"},slot:"title"},[e._v("视频附件")]),n("upload",{attrs:{slot:"upload",accept:".mp4,.ogg,.webm",folderid:e.folderid,bindData:{ownertable:"sat_notice",ownerid:e.form.sat_noticeid,usetype:"default"}},on:{onSuccess:e.onUploadSuccess},slot:"upload"})],1)],1),n("div",{staticClass:"container normal-panel normal-margin"},[n("attachmentList",{attrs:{attinfos:e.attinfo_attachment,onlyread:e.store.state.pageOnlyRead},on:{onSuccess:e.queryNoticeMain}},[n("upload",{attrs:{slot:"upload",folderid:e.folderid,bindData:{ownertable:"sat_notice",ownerid:e.form.sat_noticeid,usetype:"default"}},on:{onSuccess:e.onUploadSuccess},slot:"upload"})],1)],1),n("div",{staticClass:"container normal-panel normal-margin"},[n("myEditor",{ref:"editor",attrs:{content:e.form.content,id:e.form.sat_noticeid,disabled:!e.save}})],1)]),n("el-col",{attrs:{span:11}},[n("div",{staticClass:"container normal-panel normal-margin"},[n("scopeOfauth",{attrs:{defaultData:e.defaultData,disabled:"发布"==e.form.status,appidname:"sat_noticeid",obiectName:"sat_notice",dataid:e.id},on:{onChecked:e.onChecked}})],1)])],1)],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.save,expression:"save"}],staticClass:"fixed__btn__panel"},[n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:e.onClose}},[e._v("取 消")]),n("el-button",{staticClass:"normal-btn-width",attrs:{size:"small",type:"warning"},on:{click:e.onSubmit}},[e._v("保 存")])],1)])],1)},o=[],i=(n(21703),n(33028)),a=n(39115),u=n(83628),s=n(69813),l=n(67538),c=n(24239),f=n(34488),d=n(1039),p=n(34002),h={components:{upload:i.Z,previewImage:a.Z,attachmentList:u.Z,scopeOfauth:s.Z,myEditor:l.Z,release:f.Z,topping:d.Z,Del:p.Z},props:["id"],data(){var e=(e,t,n)=>{this.form.enddate&&(new Date(t).getTime()>new Date(this.form.enddate).getTime()?n(new Error("生效日期不能大于截止日期")):n())},t=(e,t,n)=>{this.form.begdate&&(new Date(t).getTime()<new Date(this.form.begdate).getTime()?n(new Error("截止日期不能小于生效日期")):n())};return{store:c.Z,edit:!0,save:!1,status:!1,folderid:JSON.parse(sessionStorage.getItem("folderid")).appfolderid,rules:{title:[{required:!0,message:"请输入课程名称",trigger:"blur"}],begdate:[{required:!0,message:"请选择生效日期",trigger:"change"},{required:!0,validator:e,trigger:"change"}],enddate:[{required:!0,message:"请选择截止日期",trigger:"change"},{required:!0,validator:t,trigger:"change"}],sat_notice_classid:[{required:!0,message:"请选择版块",trigger:"change"}]},form:{title:"",notes:"",istextrequired:1,isattrequired:1,onceonly:1,sat_submiteditmodelid:"0",begdate:"",enddate:"",issecret:!1},defaultData:{},image:{},authData:{},attinfo_video:[],attinfo_attachment:[],options:[],drawer:!1}},watch:{drawer(e){e||(this.save=!1,this.edit=!0)},edit(e){e?this.$store.dispatch("pageOnlyRead",!0):this.$store.dispatch("pageOnlyRead",!1)}},methods:{onUploadSuccess(){"新建"!==this.form.status?this.queryNoticeMain():this.onSubmit()},onSubmit(){this.$refs["form"].validate((async e=>{if(!e)return!1;this.form.content=this.$refs.editor.html;const t=await this.$api.requested({id:"20221101094803",method:"insertormodify_notice",content:this.form});this.tool.showMessage(t,(()=>{this.edit=!0,this.save=!1,this.insertCoursewareauth(),this.queryNoticeMain(),this.$emit("updateSuccess")}))}))},async queryNoticeMain(){const e=await this.$api.requested({id:"20221101095003",content:{sat_noticeid:this.id}});this.attinfo_video=e.data.attinfos.filter((e=>{if("mp4"===e.postfix||"ogg"===e.postfix||"webm"===e.postfix)return e})),this.attinfo_attachment=e.data.attinfos.filter((e=>{if("mp4"!==e.postfix&&"ogg"!==e.postfix&&"webm"!==e.postfix)return e})),this.form=Object.assign({},this.form,e.data),"新建"!==this.form.status?this.$store.dispatch("pageOnlyRead",!0):this.$store.dispatch("pageOnlyRead",!1),this.save?this.$store.dispatch("pageOnlyRead",!1):this.$store.dispatch("pageOnlyRead",!0),this.queryFileLink(),this.queryNoticeClass(),console.log("获取通告详细数据"),console.log(this.form),this.status=!0},async queryNoticeClass(){const e=await this.$api.requested({id:"20221101094603",content:{pageNumber:1,pageSize:1e3,where:{condition:""}}});console.log("板块"),console.log(e),this.options=e.data,this.form.sat_notice_classid=e.data[0].sat_notice_classid},async queryFileLink(){this.dialogEditVisible=!0;const e=await this.$api.requested({classname:"system.attachment.Attachment",method:"queryFileLink",content:{ownertable:"sat_notice",ownerid:this.form.sat_noticeid,usetype:"cover"}});console.log("封面信息"),console.log(e),this.image=e.data[0],console.log("获取封面"),console.log(this.image)},onCoverSubmit(e){this.form.cover=JSON.parse(e.attinfos).data[0].url,this.image=JSON.parse(e.attinfos).data[0]},clearCover(){this.form.cover=null,this.image={}},onChecked(e){this.authData=e},async insertCoursewareauth(){const e=await this.$api.requested({id:20221101142003,content:this.authData});console.log("新增"),0===e.code&&this.$notify({title:"失败",message:e.data,type:"error"})},async query_auth(){const e=await this.$api.requested({id:20221101142303,content:{sat_noticeid:this.id}});console.log("查询授权"),this.defaultData=e.data},onshow(){this.$router.replace({path:"notice_mag_list",query:{id:this.id}}),this.queryNoticeMain(),this.query_auth(),this.edit=!0,this.save=!1},onEdit(){this.edit=!1,this.save=!0},handleCommand(e){console.log(e),"analysis"===e&&this.dataAnalysis()},dataAnalysis(){console.log("数据分析"),this.$router.push({path:"notice_analysis",query:{id:this.id}})},onSuccess(){this.drawer=!1,this.$emit("updateSuccess")},onClose(){this.save=!1,this.edit=!0}},mounted(){this.status=!1}},g=h,v=n(43736),y=(0,v.Z)(g,r,o,!1,null,null,null),m=y.exports},34488:function(e,t,n){n.d(t,{Z:function(){return l}});var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.release?n("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.open}},[e._v("发布")]):e._e(),e.unRelease?n("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.unOpen}},[e._v("取消发布")]):e._e()],1)},o=[],i={props:["data"],data(){return{release:!1,unRelease:!1}},methods:{async releaseNotice(){const e=await this.$api.requested({id:"20221101095203",content:{sat_noticeids:[this.$route.query.id]}});console.log(e),1===e.code?(this.$notify({title:"成功",message:"发布"===this.data.status?"下架成功":"发布成功",type:"success"}),this.$emit("onSuccess"),this.release=!1,this.unRelease=!0):this.$notify({title:"失败",message:e.data,type:"error"})},async unReleaseNotice(){const e=await this.$api.requested({id:"20221101095303",content:{sat_noticeids:[this.data.sat_noticeid]}});console.log(e),1===e.code?(this.$notify({title:"成功",message:"发布"===this.data.status?"下架成功":"发布成功",type:"success"}),this.$emit("onSuccess"),this.release=!0,this.unRelease=!1):this.$notify({title:"失败",message:e.data,type:"error"})},open(){this.$confirm("确定发布此通告吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.releaseNotice()})).catch((()=>{this.$message({type:"info",message:"已取消发布"})}))},unOpen(){this.$confirm("确定取消发布此通告吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.unReleaseNotice()})).catch((()=>{this.$message({type:"info",message:"已取消操作"})}))}},watch:{data(e){"新建"===this.data.status?(this.release=!0,this.unRelease=!1):(this.release=!1,this.unRelease=!0)}},mounted(){"新建"===this.data.status?(this.release=!0,this.unRelease=!1):(this.release=!1,this.unRelease=!0)}},a=i,u=n(43736),s=(0,u.Z)(a,r,o,!1,null,null,null),l=s.exports},1039:function(e,t,n){n.d(t,{Z:function(){return l}});var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.top?n("el-button",{attrs:{type:"primary",size:"small",plain:""},on:{click:e.open}},[e._v("置顶")]):e._e(),e.unTop?n("el-button",{attrs:{type:"primary",size:"small",plain:""},on:{click:e.unOpen}},[e._v("取消置顶")]):e._e()],1)},o=[],i={props:["data"],data(){return{top:!1,unTop:!1}},methods:{async releaseNotice(){const e=await this.$api.requested({id:"20221101095403",content:{sat_noticeid:this.data.sat_noticeid}});this.tool.showMessage(e,(()=>{this.unTop=!0,this.top=!1,this.$emit("onSuccess")}))},async unReleaseNotice(){const e=await this.$api.requested({id:"20221101095503",content:{sat_noticeid:this.data.sat_noticeid}});this.tool.showMessage(e,(()=>{this.top=!0,this.unTop=!1,this.$emit("onSuccess")}))},open(){this.$confirm("确定置顶此通告吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.releaseNotice()})).catch((()=>{this.$message({type:"info",message:"已取消发布"})}))},unOpen(){this.$confirm("确定取消置顶此通告吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.unReleaseNotice()})).catch((()=>{this.$message({type:"info",message:"已取消操作"})}))}},mounted(){console.log("输出置顶情况123"),console.log(this.data.isontop),0===this.data.isontop?(this.top=!0,this.unTop=!1):(this.top=!1,this.unTop=!0)}},a=i,u=n(43736),s=(0,u.Z)(a,r,o,!1,null,null,null),l=s.exports},67538:function(e,t,n){n.d(t,{Z:function(){return sle}});var r,o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{border:"1px solid #ccc"}},[n("Toolbar",{staticStyle:{"border-bottom":"1px solid #ccc"},attrs:{editor:e.editor,defaultConfig:e.toolbarConfig,mode:e.mode}}),n("Editor",{staticStyle:{height:"500px","overflow-y":"hidden"},attrs:{defaultConfig:e.editorConfig,mode:e.mode},on:{onCreated:e.onCreated},model:{value:e.html,callback:function(t){e.html=t},expression:"html"}})],1)},i=[],a=n(20144);if("undefined"===typeof n.g){if("ActiveXObject"in window){var u="抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器";u+="\n Sorry, wangEditor V5+ versions do not support IE browser.",console.error(u)}s(),l()}else n.g&&(null===(r=n.g.navigator)||void 0===r?void 0:r.userAgent.match("QQBrowser"))&&(s(),l());function s(){"undefined"===typeof globalThis&&(window.globalThis=window)}function l(){"undefined"===typeof AggregateError&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if("object"===typeof n.g){var c=Object.getOwnPropertyDescriptor(n.g,"window");n.g.window&&!c.set||(n.g.window=n.g,n.g.requestAnimationFrame=function(){},n.g.navigator={userAgent:""},n.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},n.g.btoa=function(){},n.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}})}
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function f(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){var t,n;return!1!==f(e)&&(t=e.constructor,void 0===t||(n=t.prototype,!1!==f(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}function p(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ne[e],i=o?"function"==typeof o?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}function h(e){return!!e&&!!e[te]}function g(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)===re}(e)||Array.isArray(e)||!!e[ee]||!!e.constructor[ee]||D(e)||C(e))}function v(e,t,n){void 0===n&&(n=!1),0===y(e)?(n?Object.keys:oe)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function y(e){var t=e[te];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:D(e)?2:C(e)?3:0}function m(e,t){return 2===y(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function b(e,t){return 2===y(e)?e.get(t):e[t]}function w(e,t,n){var r=y(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function E(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function D(e){return X&&e instanceof Map}function C(e){return Z&&e instanceof Set}function x(e){return e.o||e.t}function S(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ie(e);delete t[te];for(var n=oe(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 A(e,t){return void 0===t&&(t=!1),k(e)||h(e)||!g(e)||(y(e)>1&&(e.set=e.add=e.clear=e.delete=O),Object.freeze(e),t&&v(e,(function(e,t){return A(t,!0)}),!0)),e}function O(){p(2)}function k(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function B(e){var t=ae[e];return t||p(18,e),t}function F(){return K||p(0),K}function _(e,t){t&&(B("Patches"),e.u=[],e.s=[],e.v=t)}function T(e){P(e),e.p.forEach(N),e.p=null}function P(e){e===K&&(K=e.l)}function j(e){return K={p:[],l:K,h:e,m:!0,_:0}}function N(e){var t=e[te];0===t.i||1===t.i?t.j():t.O=!0}function I(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||B("ES5").S(t,e,r),r?(n[te].P&&(T(t),p(4)),g(e)&&(e=R(t,e),t.l||M(t,e)),t.u&&B("Patches").M(n[te],e,t.u,t.s)):e=R(t,n,[]),T(t),t.u&&t.v(t.u,t.s),e!==Q?e:void 0}function R(e,t,n){if(k(t))return t;var r=t[te];if(!r)return v(t,(function(o,i){return L(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return M(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=S(r.k):r.o;v(3===r.i?new Set(o):o,(function(t,i){return L(e,r,o,t,i,n)})),M(e,o,!1),n&&e.u&&B("Patches").R(r,n,e.u,e.s)}return r.o}function L(e,t,n,r,o,i){if(o===n&&p(5),h(o)){var a=R(e,o,i&&t&&3!==t.i&&!m(t.D,r)?i.concat(r):void 0);if(w(n,r,a),!h(a))return;e.m=!1}if(g(o)&&!k(o)){if(!e.h.F&&e._<1)return;R(e,o),t&&t.A.l||M(e,o)}}function M(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&A(t,n)}function z(e,t){var n=e[te];return(n?x(n):e)[t]}function $(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 H(e){e.P||(e.P=!0,e.l&&H(e.l))}function U(e){e.o||(e.o=S(e.t))}function V(e,t,n){var r=D(t)?B("MapSet").N(t,n):C(t)?B("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:F(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=ue;n&&(o=[r],i=se);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):B("ES5").J(t,n);return(n?n.A:F()).p.push(r),r}function W(e){return h(e)||p(22,e),function e(t){if(!g(t))return t;var n,r=t[te],o=y(t);if(r){if(!r.P&&(r.i<4||!B("ES5").K(r)))return r.t;r.I=!0,n=q(t,o),r.I=!1}else n=q(t,o);return v(n,(function(t,o){r&&b(r.t,t)===o||w(n,t,e(o))})),3===o?new Set(n):n}(e)}function q(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return S(e)}var G,K,Y="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,Z="undefined"!=typeof Set,J="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Q=Y?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),ee=Y?Symbol.for("immer-draftable"):"__$immer_draftable",te=Y?Symbol.for("immer-state"):"__$immer_state",ne={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},re=""+Object.prototype.constructor,oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ie=Object.getOwnPropertyDescriptors||function(e){var t={};return oe(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ae={},ue={get:function(e,t){if(t===te)return e;var n=x(e);if(!m(n,t))return function(e,t,n){var r,o=$(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||!g(r)?r:r===z(e.t,t)?(U(e),e.o[t]=V(e.A.h,r,e)):r},has:function(e,t){return t in x(e)},ownKeys:function(e){return Reflect.ownKeys(x(e))},set:function(e,t,n){var r=$(x(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=z(x(e),t),i=null==o?void 0:o[te];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(E(n,o)&&(void 0!==n||m(e.t,t)))return!0;U(e),H(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!==z(e.t,t)||t in e.t?(e.D[t]=!1,U(e),H(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=x(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(){p(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){p(12)}},se={};v(ue,(function(e,t){se[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),se.deleteProperty=function(e,t){return isNaN(parseInt(t))&&p(13),ue.deleteProperty.call(this,e[0],t)},se.set=function(e,t,n){return"length"!==t&&isNaN(parseInt(t))&&p(14),ue.set.call(this,e[0],t,n,e[0])};var le=function(){function e(e){var t=this;this.g=J,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&&p(6),void 0!==r&&"function"!=typeof r&&p(7),g(e)){var u=j(t),s=V(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?T(u):P(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return _(u,r),I(e,u)}),(function(e){throw T(u),e})):(_(u,r),I(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Q)return;return void 0===a&&(a=e),t.F&&A(a,!0),a}p(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){g(e)||p(8),h(e)&&(e=W(e));var t=j(this),n=V(this,e,void 0);return n[te].C=!0,P(t),n},t.finishDraft=function(e,t){var n=e&&e[te];n&&n.C||p(9),n.I&&p(10);var r=n.A;return _(r,t),I(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!J&&p(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=B("Patches").$;return h(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),ce=new le,fe=ce.produce;ce.produceWithPatches.bind(ce),ce.setAutoFreeze.bind(ce),ce.setUseProxies.bind(ce),ce.applyPatches.bind(ce);var de=ce.createDraft.bind(ce),pe=ce.finishDraft.bind(ce);function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ge=new WeakMap,ve=new WeakMap,ye=new WeakMap,me=new WeakMap,be=new WeakMap,we=new WeakMap;function Ee(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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ce=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of st.pathRefs(e))mt.transform(n,t);for(var r of st.pointRefs(e))Dt.transform(r,t);for(var o of st.rangeRefs(e))Ot.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=ge.get(e)||[],l=xe(t);for(var c of s){var f=yt.transform(c,t);u(f)}for(var d of l)u(d);ge.set(e,a),Jt.transform(e,t),e.operations.push(t),st.normalize(e),"set_selection"===t.type&&(e.marks=null),ve.get(e)||(ve.set(e,!0),Promise.resolve().then((()=>{ve.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(At.isExpanded(r))Jt.setNodes(e,{[t]:n},{match:Pt.isText,split:!0});else{var o=De(De({},st.marks(e)||{}),{},{[t]:n});e.marks=o,ve.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&At.isCollapsed(n)&&Jt.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&At.isCollapsed(n)&&Jt.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&At.isExpanded(n)&&Jt.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?pt.fragment(e,t):[]},insertBreak:()=>{Jt.splitNodes(e,{always:!0})},insertFragment:t=>{Jt.insertFragment(e,t)},insertNode:t=>{Jt.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=De({text:t},r);Jt.insertNodes(e,o)}else Jt.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Pt.isText(n))if(nt.isElement(n)&&0===n.children.length){var o={text:""};Jt.insertNodes(e,o,{at:r.concat(0),voids:!0})}else for(var i=!st.isEditor(n)&&(nt.isElement(n)&&(e.isInline(n)||0===n.children.length||Pt.isText(n.children[0])||e.isInline(n.children[0]))),a=0,u=0;u<n.children.length;u++,a++){var s=pt.get(e,r);if(!Pt.isText(s)){var l=n.children[u],c=s.children[a-1],f=u===n.children.length-1,d=Pt.isText(l)||nt.isElement(l)&&e.isInline(l);if(d!==i)Jt.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(nt.isElement(l)){if(e.isInline(l))if(null!=c&&Pt.isText(c)){if(f){var p={text:""};Jt.insertNodes(e,p,{at:r.concat(a+1),voids:!0}),a++}}else{var h={text:""};Jt.insertNodes(e,h,{at:r.concat(a),voids:!0}),a++}}else null!=c&&Pt.isText(c)&&(Pt.equals(l,c,{loose:!0})?(Jt.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):""===c.text?(Jt.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):""===l.text&&(Jt.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(At.isExpanded(n))Jt.unsetNodes(e,t,{match:Pt.isText,split:!0});else{var r=De({},st.marks(e)||{});delete r[t],e.marks=r,ve.get(e)||e.onChange()}}};return e},xe=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return yt.levels(t);case"insert_node":var{node:n,path:r}=e,o=yt.levels(r),i=Pt.isText(n)?[]:Array.from(pt.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e,u=yt.ancestors(a),s=yt.previous(a);return[...u,s];case"move_node":var{path:l,newPath:c}=e;if(yt.equals(l,c))return[];var f=[],d=[];for(var p of yt.ancestors(l)){var h=yt.transform(p,e);f.push(h)}for(var g of yt.ancestors(c)){var v=yt.transform(g,e);d.push(v)}var y=d[d.length-1],m=c[c.length-1],b=y.concat(m);return[...f,...d,b];case"remove_node":var{path:w}=e,E=yt.ancestors(w);return[...E];case"split_node":var{path:D}=e,C=yt.levels(D),x=yt.next(D);return[...C,x];default:return[]}};function Se(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}function Ae(e,t){if(null==e)return{};var n,r,o=Se(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 Oe,ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Ne(e):e,o=Oe.None,i=Oe.None,a=0,u=null,s=null;for(var l of r){var c=l.codePointAt(0);if(!c)break;var f=Ge(l,c);if([o,i]=n?[i,f]:[f,o],Ke(o,Oe.ZWJ)&&Ke(i,Oe.ExtPict)&&(u=Je(n?e.substring(0,a):e.substring(0,e.length-a)),!u))break;if(Ke(o,Oe.RI)&&Ke(i,Oe.RI)&&(s=null!==s?!s:!!n||et(e.substring(0,e.length-a)),!s))break;if(o!==Oe.None&&i!==Oe.None&&Xe(o,i))break;a+=l.length}return a||1},Be=/\s/,Fe=/[\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]/,_e=/['\u2018\u2019]/,Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;while(e.length>0){var o=ke(e,t),[i,a]=Pe(e,o,t);if(je(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n},Pe=(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)]},je=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Be.test(t))return!1;if(_e.test(t)){var o=ke(n,r),[i,a]=Pe(n,o,r);if(e(i,a,r))return!0}return!Fe.test(t)},Ne=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Re(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Ie(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Ie=e=>e>=55296&&e<=56319,Re=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"})(Oe||(Oe={}));var Le=/^(?:[\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])$/,Me=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,ze=/^(?:[\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])$/,$e=/^[\u1100-\u115F\uA960-\uA97C]$/,He=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Ue=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Ve=/^[\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]$/,We=/^[\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]$/,qe=/^(?:[\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])$/,Ge=(e,t)=>{var n=Oe.Any;return-1!==e.search(Le)&&(n|=Oe.Extend),8205===t&&(n|=Oe.ZWJ),t>=127462&&t<=127487&&(n|=Oe.RI),-1!==e.search(Me)&&(n|=Oe.Prepend),-1!==e.search(ze)&&(n|=Oe.SpacingMark),-1!==e.search($e)&&(n|=Oe.L),-1!==e.search(He)&&(n|=Oe.V),-1!==e.search(Ue)&&(n|=Oe.T),-1!==e.search(Ve)&&(n|=Oe.LV),-1!==e.search(We)&&(n|=Oe.LVT),-1!==e.search(qe)&&(n|=Oe.ExtPict),n};function Ke(e,t){return 0!==(e&t)}var Ye=[[Oe.L,Oe.L|Oe.V|Oe.LV|Oe.LVT],[Oe.LV|Oe.V,Oe.V|Oe.T],[Oe.LVT|Oe.T,Oe.T],[Oe.Any,Oe.Extend|Oe.ZWJ],[Oe.Any,Oe.SpacingMark],[Oe.Prepend,Oe.Any],[Oe.ZWJ,Oe.ExtPict],[Oe.RI,Oe.RI]];function Xe(e,t){return-1===Ye.findIndex((n=>Ke(e,n[0])&&Ke(t,n[1])))}var Ze=/(?:[\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$/,Je=e=>-1!==e.search(Ze),Qe=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,et=e=>{var t=e.match(Qe);if(null===t)return!1;var n=t[0].length/2;return n%2===1},tt=e=>d(e)&&pt.isNodeList(e.children)&&!st.isEditor(e),nt={isAncestor(e){return d(e)&&pt.isNodeList(e.children)},isElement:tt,isElementList(e){return Array.isArray(e)&&e.every((e=>nt.isElement(e)))},isElementProps(e){return void 0!==e.children},isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return tt(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},rt=["text"],ot=["text"];function it(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 at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ut=new WeakMap,st={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=st.path(e,o),u="lowest"===r;for(var[s,l]of st.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Pt.isText(s)&&!yt.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=st.point(e,t,{edge:"end"}),i=st.end(e,[]),a={anchor:o,focus:i},{distance:u=1}=r,s=0;for(var l of st.positions(e,at(at({},r),{},{at:a}))){if(s>u)break;0!==s&&(n=l),s++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=st.start(e,[]),i=st.point(e,t,{edge:"start"}),a={anchor:o,focus:i},{distance:u=1}=r,s=0;for(var l of st.positions(e,at(at({},r),{},{at:a,reverse:!0}))){if(s>u)break;0!==s&&(n=l),s++}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){return[st.start(e,t),st.end(e,t)]},end(e,t){return st.point(e,t,{edge:"end"})},first(e,t){var n=st.path(e,t,{edge:"start"});return st.node(e,n)},fragment(e,t){var n=st.range(e,t),r=pt.fragment(e,n);return r},hasBlocks(e,t){return t.children.some((t=>st.isBlock(e,t)))},hasInlines(e,t){return t.children.some((t=>Pt.isText(t)||st.isInline(e,t)))},hasTexts(e,t){return t.children.every((e=>Pt.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){return nt.isElement(t)&&!e.isInline(t)},isEditor(e){if(!d(e))return!1;var t=ut.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||d(e.marks))&&(null===e.selection||At.isRange(e.selection))&&pt.isNodeList(e.children)&&vt.isOperationList(e.operations);return ut.set(e,n),n},isEnd(e,t,n){var r=st.end(e,n);return Et.equals(t,r)},isEdge(e,t,n){return st.isStart(e,t,n)||st.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Pt.isText(r)&&""===r.text&&!e.isVoid(t)},isInline(e,t){return nt.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=ye.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=st.start(e,n);return Et.equals(t,r)},isVoid(e,t){return nt.isElement(t)&&e.isVoid(t)},last(e,t){var n=st.path(e,t,{edge:"end"});return st.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=st.path(e,t,n),o=pt.leaf(e,r);return[o,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=st.path(e,n);for(var[s,l]of pt.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&st.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(At.isExpanded(n)){var[r]=st.nodes(e,{match:Pt.isText});if(r){var[o]=r,i=Ae(o,rt);return i}return{}}var{anchor:a}=n,{path:u}=a,[s]=st.leaf(e,u);if(0===a.offset){var l=st.previous(e,{at:u,match:Pt.isText}),c=st.above(e,{match:t=>st.isBlock(e,t)});if(l&&c){var[f,d]=l,[,p]=c;yt.isAncestor(p,d)&&(s=f)}}var h=Ae(s,ot);return h},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=st.after(e,i,{voids:r});if(a){var[,u]=st.last(e,[]),s=[a.path,u];if(yt.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(yt.isPath(i)){var[l]=st.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=st.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=st.path(e,t,n),o=pt.get(e,r);return[o,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(lt.isSpan(n))s=n[0],l=n[1];else{var c=st.path(e,n,{edge:"start"}),f=st.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=pt.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&st.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===yt.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&&Pt.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=>ge.get(e)||[];if(st.isNormalizing(e)){if(n){var o=Array.from(pt.nodes(e),(e=>{var[,t]=e;return t}));ge.set(e,o)}0!==r(e).length&&st.withoutNormalizing(e,(()=>{for(var t of r(e))if(pt.has(e,t)){var n=st.node(e,t),[o,i]=n;nt.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}var a=42*r(e).length,u=0;while(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(pt.has(e,s)){var l=st.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=st.path(e,t,n),o=yt.parent(r),i=st.node(e,o);return i},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(yt.isPath(t))if("start"===o){var[,i]=pt.first(e,t);t=i}else if("end"===o){var[,a]=pt.last(e,t);t=a}return At.isRange(t)&&(t="start"===o?At.start(t):"end"===o?At.end(t):yt.common(t.anchor.path,t.focus.path)),Et.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath(e,t){return pt.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,n=st.pathRefs(e);return n.delete(o),o.current=null,t}},i=st.pathRefs(e);return i.add(o),o},pathRefs(e){var t=me.get(e);return t||(t=new Set,me.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(yt.isPath(t)){var o;if("end"===r){var[,i]=pt.last(e,t);o=i}else{var[,a]=pt.first(e,t);o=a}var u=pt.get(e,o);if(!Pt.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(At.isRange(t)){var[s,l]=At.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,n=st.pointRefs(e);return n.delete(o),o.current=null,t}},i=st.pointRefs(e);return i.add(o),o},pointRefs(e){var t=be.get(e);return t||(t=new Set,be.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=st.range(e,n),[u,s]=At.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of st.nodes(e,{at:n,reverse:o,voids:i})){if(nt.isElement(g)){if(!i&&e.isVoid(g)){yield st.start(e,v);continue}if(e.isInline(g))continue;if(st.hasInlines(e,g)){var y=yt.isAncestor(v,s.path)?s:st.end(e,v),m=yt.isAncestor(v,u.path)?u:st.start(e,v);f=st.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(Pt.isText(g)){var b=yt.equals(v,l.path);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);while(1){if(0===d){if(""===f)break;d=w(f,r,o),f=Pe(f,d,o)[1]}if(h=o?h-d:h+d,p-=d,p<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?ke(e,n):"word"===t?Te(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=st.before(e,i,{voids:r});if(a){var[,u]=st.first(e,[]),s=[a.path,u];if(yt.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(yt.isPath(i)){var[l]=st.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=st.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range(e,t,n){if(At.isRange(t)&&!n)return t;var r=st.start(e,t),o=st.end(e,n||t);return{anchor:r,focus:o}},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,n=st.rangeRefs(e);return n.delete(o),o.current=null,t}},i=st.rangeRefs(e);return i.add(o),o},rangeRefs(e){var t=we.get(e);return t||(t=new Set,we.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){ye.set(e,t)},start(e,t){return st.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=st.range(e,t),[i,a]=At.edges(o),u="";for(var[s,l]of st.nodes(e,{at:o,match:Pt.isText,voids:r})){var c=s.text;yt.equals(l,a.path)&&(c=c.slice(0,a.offset)),yt.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]=At.edges(t);if(0!==o.offset||0!==i.offset||At.isCollapsed(t))return t;var a=st.above(e,{at:i,match:t=>st.isBlock(e,t)}),u=a?a[1]:[],s=st.start(e,[]),l={anchor:s,focus:i},c=!0;for(var[f,d]of st.nodes(e,{at:l,match:Pt.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==f.text||yt.isBefore(d,u)){i={path:d,offset:f.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return st.above(e,at(at({},t),{},{match:t=>st.isVoid(e,t)}))},withoutNormalizing(e,t){var n=st.isNormalizing(e);st.setNormalizing(e,!1);try{t()}finally{st.setNormalizing(e,n)}st.normalize(e)}},lt={isSpan(e){return Array.isArray(e)&&2===e.length&&e.every(yt.isPath)}},ct=["children"],ft=["text"],dt=new WeakMap,pt={ancestor(e,t){var n=pt.get(e,t);if(Pt.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 yt.ancestors(t,n)){var o=pt.ancestor(e,r),i=[o,r];yield i}},child(e,t){if(Pt.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){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=pt.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;while(r?a>=0:a<i.length){var u=pt.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=yt.common(t,n),o=pt.get(e,r);return[o,r]},descendant(e,t){var n=pt.get(e,t);if(st.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 pt.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 pt.nodes(e,t))nt.isElement(n)&&(yield[n,r])},extractProps(e){if(nt.isAncestor(e)){var t=Ae(e,ct);return t}t=Ae(e,ft);return t},first(e,t){var n=t.slice(),r=pt.get(e,n);while(r){if(Pt.isText(r)||0===r.children.length)break;r=r.children[0],n.push(0)}return[r,n]},fragment(e,t){if(Pt.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=fe({children:e.children},(e=>{var[n,r]=At.edges(t),o=pt.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!At.includes(t,n)}});for(var[,i]of o){if(!At.includes(t,i)){var a=pt.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(yt.equals(i,r.path)){var s=pt.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(yt.equals(i,n.path)){var l=pt.leaf(e,i);l.text=l.text.slice(n.offset)}}st.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Pt.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(Pt.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return Pt.isText(e)||nt.isElement(e)||st.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=dt.get(e);if(void 0!==t)return t;var n=e.every((e=>pt.isNode(e)));return dt.set(e,n),n},last(e,t){var n=t.slice(),r=pt.get(e,n);while(r){if(Pt.isText(r)||0===r.children.length)break;var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=pt.get(e,t);if(!Pt.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 yt.levels(t,n)){var o=pt.get(e,r);yield[o,r]}},matches(e,t){return nt.isElement(e)&&nt.isElementProps(t)&&nt.matches(e,t)||Pt.isText(e)&&Pt.isTextProps(t)&&Pt.matches(e,t)},*nodes(e){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;while(1){if(i&&(r?yt.isBefore(u,i):yt.isAfter(u,i)))break;if(a.has(s)||(yield[s,u]),a.has(s)||Pt.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=yt.next(u);if(pt.has(e,l)){u=l,s=pt.get(e,u);continue}}if(r&&0!==u[u.length-1]){var c=yt.previous(u);u=c,s=pt.get(e,u)}else u=yt.parent(u),s=pt.get(e,u),a.add(s)}else{a.add(s);var f=r?s.children.length-1:0;yt.isAncestor(u,o)&&(f=o[u.length]),u=u.concat(f),s=pt.get(e,u)}}},parent(e,t){var n=yt.parent(t),r=pt.get(e,n);if(Pt.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){return Pt.isText(e)?e.text:e.children.map(pt.string).join("")},*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of pt.nodes(e,t))Pt.isText(n)&&(yield[n,r])}};function ht(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vt={isNodeOperation(e){return vt.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!d(e))return!1;switch(e.type){case"insert_node":return yt.isPath(e.path)&&pt.isNode(e.node);case"insert_text":return"number"===typeof e.offset&&"string"===typeof e.text&&yt.isPath(e.path);case"merge_node":return"number"===typeof e.position&&yt.isPath(e.path)&&d(e.properties);case"move_node":return yt.isPath(e.path)&&yt.isPath(e.newPath);case"remove_node":return yt.isPath(e.path)&&pt.isNode(e.node);case"remove_text":return"number"===typeof e.offset&&"string"===typeof e.text&&yt.isPath(e.path);case"set_node":return yt.isPath(e.path)&&d(e.properties)&&d(e.newProperties);case"set_selection":return null===e.properties&&At.isRange(e.newProperties)||null===e.newProperties&&At.isRange(e.properties)||d(e.properties)&&d(e.newProperties);case"split_node":return yt.isPath(e.path)&&"number"===typeof e.position&&d(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every((e=>vt.isOperation(e)))},isSelectionOperation(e){return vt.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return vt.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return gt(gt({},e),{},{type:"remove_node"});case"insert_text":return gt(gt({},e),{},{type:"remove_text"});case"merge_node":return gt(gt({},e),{},{type:"split_node",path:yt.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(yt.equals(t,n))return e;if(yt.isSibling(n,t))return gt(gt({},e),{},{path:t,newPath:n});var r=yt.transform(n,e),o=yt.transform(yt.next(n),e);return gt(gt({},e),{},{path:r,newPath:o});case"remove_node":return gt(gt({},e),{},{type:"insert_node"});case"remove_text":return gt(gt({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return gt(gt({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return gt(gt({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return gt(gt({},e),{},{type:"merge_node",path:yt.next(e.path)})}}},yt={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=yt.levels(e,t);return r=n?r.slice(1):r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],i=t[r];if(o!==i)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 yt.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return yt.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 yt.equals(r,o)&&i<a},equals(e,t){return e.length===t.length&&e.every(((e,n)=>e===t[n]))},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return 1===yt.compare(e,t)},isAncestor(e,t){return e.length<t.length&&0===yt.compare(e,t)},isBefore(e,t){return-1===yt.compare(e,t)},isChild(e,t){return e.length===t.length+1&&0===yt.compare(e,t)},isCommon(e,t){return e.length<=t.length&&0===yt.compare(e,t)},isDescendant(e,t){return e.length>t.length&&0===yt.compare(e,t)},isParent(e,t){return e.length+1===t.length&&0===yt.compare(e,t)},isPath(e){return 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),o=e[e.length-1],i=t[t.length-1];return o!==i&&yt.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(!yt.isAncestor(t,e)&&!yt.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 fe(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null===e||void 0===e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(yt.equals(i,r)||yt.endsBefore(i,r)||yt.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(yt.equals(a,r)||yt.isAncestor(a,r))return null;yt.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;yt.equals(u,r)||yt.endsBefore(u,r)?r[u.length-1]-=1:yt.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(yt.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else yt.endsBefore(l,r)?r[l.length-1]+=1:yt.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(yt.equals(f,d))return;if(yt.isAncestor(f,r)||yt.equals(f,r)){var p=d.slice();return yt.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}yt.isSibling(f,d)&&(yt.isAncestor(d,r)||yt.equals(d,r))?yt.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:yt.endsBefore(d,r)||yt.equals(d,r)||yt.isAncestor(d,r)?(yt.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):yt.endsBefore(f,r)&&(yt.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1);break}}}))}},mt={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=yt.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function bt(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 wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Et={compare(e,t){var n=yt.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return 1===Et.compare(e,t)},isBefore(e,t){return-1===Et.compare(e,t)},equals(e,t){return e.offset===t.offset&&yt.equals(e.path,t.path)},isPoint(e){return d(e)&&"number"===typeof e.offset&&yt.isPath(e.path)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fe(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=yt.transform(o,t,n);break;case"insert_text":yt.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":yt.equals(t.path,o)&&(e.offset+=t.position),e.path=yt.transform(o,t,n);break;case"remove_text":yt.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(yt.equals(t.path,o)||yt.isAncestor(t.path,o))return null;e.path=yt.transform(o,t,n);break;case"split_node":if(yt.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=yt.transform(o,t,wt(wt({},n),{},{affinity:"forward"})))}else e.path=yt.transform(o,t,n);break}}))}},Dt={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Et.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Ct=["anchor","focus"];function xt(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return At.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=At.edges(e);return t},equals(e,t){return Et.equals(e.anchor,t.anchor)&&Et.equals(e.focus,t.focus)},includes(e,t){if(At.isRange(t)){if(At.includes(e,t.anchor)||At.includes(e,t.focus))return!0;var[n,r]=At.edges(e),[o,i]=At.edges(t);return Et.isBefore(n,o)&&Et.isAfter(r,i)}var[a,u]=At.edges(e),s=!1,l=!1;return Et.isPoint(t)?(s=Et.compare(t,a)>=0,l=Et.compare(t,u)<=0):(s=yt.compare(t,a.path)>=0,l=yt.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Ae(e,Ct),[r,o]=At.edges(e),[i,a]=At.edges(t),u=Et.isBefore(r,i)?i:r,s=Et.isBefore(o,a)?o:a;return Et.isBefore(s,u)?null:St({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Et.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Et.equals(t,n)},isExpanded(e){return!At.isCollapsed(e)},isForward(e){return!At.isBackward(e)},isRange(e){return d(e)&&Et.isPoint(e.anchor)&&Et.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=At.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return fe(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=At.isCollapsed(e);At.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?At.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Et.transform(e.anchor,t,{affinity:r}),s=Et.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Ot={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=At.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},kt=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(d(r)&&d(o)){if(!kt(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},Bt=["text"],Ft=["anchor","focus"];function _t(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 Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pt={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){var t=Ae(e,Bt);return t}return kt(r?o(e):e,r?o(t):t)},isText(e){return d(e)&&"string"===typeof e.text},isTextList(e){return Array.isArray(e)&&e.every((e=>Pt.isText(e)))},isTextProps(e){return 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=[Tt({},e)];for(var r of t){var o=Ae(r,Ft),[i,a]=At.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=Tt(Tt({},d),{},{text:d.text.slice(g)}),d=Tt(Tt({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Tt(Tt({},d),{},{text:d.text.slice(0,v)}),d=Tt(Tt({},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 jt(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 Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var It=(e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=pt.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 At.points(t))t[s]=Et.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=pt.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 At.points(t))t[v]=Et.transform(g,n);break;case"merge_node":var{path:y}=n,m=pt.get(e,y),b=yt.previous(y),w=pt.get(e,b),E=pt.parent(e,y),D=y[y.length-1];if(Pt.isText(m)&&Pt.isText(w))w.text+=m.text;else{if(Pt.isText(m)||Pt.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(E.children.splice(D,1),t)for(var[C,x]of At.points(t))t[x]=Et.transform(C,n);break;case"move_node":var{path:S,newPath:A}=n;if(yt.isAncestor(S,A))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(A,"] because the destination is inside itself."));var O=pt.get(e,S),k=pt.parent(e,S),B=S[S.length-1];k.children.splice(B,1);var F=yt.transform(S,n),_=pt.get(e,yt.parent(F)),T=F[F.length-1];if(_.children.splice(T,0,O),t)for(var[P,j]of At.points(t))t[j]=Et.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1],R=pt.parent(e,N);if(R.children.splice(I,1),t)for(var[L,M]of At.points(t)){var z=Et.transform(L,n);if(null!=t&&null!=z)t[M]=z;else{var $=void 0,H=void 0;for(var[U,V]of pt.texts(e)){if(-1!==yt.compare(V,N)){H=[U,V];break}$=[U,V]}var W=!1;$&&H&&(W=yt.equals(H[1],N)?!yt.hasPrevious(H[1]):yt.common($[1],N).length<yt.common(H[1],N).length),$&&!W?(L.path=$[1],L.offset=$[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:q,offset:G,text:K}=n;if(0===K.length)break;var Y=pt.leaf(e,q),X=Y.text.slice(0,G),Z=Y.text.slice(G+K.length);if(Y.text=X+Z,t)for(var[J,Q]of At.points(t))t[Q]=Et.transform(J,n);break;case"set_node":var{path:ee,properties:te,newProperties:ne}=n;if(0===ee.length)throw new Error("Cannot set properties on the root node!");var re=pt.get(e,ee);for(var oe in ne){if("children"===oe||"text"===oe)throw new Error('Cannot set the "'.concat(oe,'" property of nodes!'));var ie=ne[oe];null==ie?delete re[oe]:re[oe]=ie}for(var ae in te)ne.hasOwnProperty(ae)||delete re[ae];break;case"set_selection":var{newProperties:ue}=n;if(null==ue)t=ue;else{if(null==t){if(!At.isRange(ue))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ue)," when there is no current selection."));t=Nt({},ue)}for(var se in ue){var le=ue[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ce,position:fe,properties:de}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var pe,he=pt.get(e,ce),ge=pt.parent(e,ce),ve=ce[ce.length-1];if(Pt.isText(he)){var ye=he.text.slice(0,fe),me=he.text.slice(fe);he.text=ye,pe=Nt(Nt({},de),{},{text:me})}else{var be=he.children.slice(0,fe),we=he.children.slice(fe);he.children=be,pe=Nt(Nt({},de),{},{children:we})}if(ge.children.splice(ve+1,0,pe),t)for(var[Ee,De]of At.points(t))t[De]=Et.transform(Ee,n);break}return t},Rt={transform(e,t){e.children=de(e.children);var n=e.selection&&de(e.selection);try{n=It(e,n,t)}finally{e.children=pe(e.children),e.selection=n?h(n)?pe(n):n:null}}},Lt=["text"],Mt=["children"];function zt(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 $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ht={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};st.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(pt.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?st.end(e,[]):[0],s=!0),null==s&&(s=!1),At.isRange(a))if(r||(a=st.unhangRange(e,a)),At.isCollapsed(a))a=a.anchor;else{var[,c]=At.edges(a),f=st.pointRef(e,c);Jt.delete(e,{at:a}),a=f.unref()}if(Et.isPoint(a)){null==u&&(u=Pt.isText(l)?e=>Pt.isText(e):e.isInline(l)?t=>Pt.isText(t)||st.isInline(e,t):t=>st.isBlock(e,t));var[d]=st.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=st.pathRef(e,p),g=st.isEnd(e,a,p);Jt.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?yt.next(v):v}var y=yt.parent(a),m=a[a.length-1];if(o||!st.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=yt.next(a)}if(a=yt.previous(a),s){var E=st.end(e,a);E&&Jt.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};st.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=yt.isPath(n)?Wt(e,n):t=>st.isBlock(e,t)),n){var a=st.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return st.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=st.node(e,yt.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=yt.next(d);Jt.moveNodes(e,{at:l,to:g,voids:o}),Jt.removeNodes(e,{at:d,voids:o})}else if(0===p)Jt.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=yt.next(d);Jt.moveNodes(e,{at:l,to:v,voids:o})}else{var y=yt.next(l),m=yt.next(d);Jt.splitNodes(e,{at:y,voids:o}),Jt.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};st.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(yt.isPath(r)){var[u]=st.parent(e,r);n=e=>u.children.includes(e)}else n=t=>st.isBlock(e,t);if(!o&&At.isRange(r)&&(r=st.unhangRange(e,r)),At.isRange(r))if(At.isCollapsed(r))r=r.anchor;else{var[,s]=At.edges(r),l=st.pointRef(e,s);Jt.delete(e,{at:r}),r=l.unref(),null==t.at&&Jt.select(e,r)}var[c]=st.nodes(e,{at:r,match:n,voids:i,mode:a}),f=st.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=yt.next(g),b=yt.common(p,g),w=yt.isSibling(p,g),E=Array.from(st.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),D=st.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&Ut(e,t)}),C=D&&st.pathRef(e,D[1]);if(Pt.isText(d)&&Pt.isText(h)){var x=Ae(d,Lt);y=h.text.length,v=x}else{if(!nt.isElement(d)||!nt.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)));x=Ae(d,Mt);y=h.children.length,v=x}w||Jt.moveNodes(e,{at:p,to:m,voids:i}),C&&Jt.removeNodes(e,{at:C.current,voids:i}),nt.isElement(h)&&st.isEmpty(e,h)||Pt.isText(h)&&""===h.text&&0!==g[g.length-1]?Jt.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),C&&C.unref()}}}}))},moveNodes(e,t){st.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=yt.isPath(r)?Wt(e,r):t=>st.isBlock(e,t));var u=st.pathRef(e,n),s=st.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return st.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&&yt.isSibling(d,f)&&yt.isAfter(d,f)&&(u.current=yt.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};st.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=yt.isPath(i)?Wt(e,i):t=>st.isBlock(e,t)),!n&&At.isRange(i)&&(i=st.unhangRange(e,i));var u=st.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return st.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=st.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]:{};st.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=yt.isPath(o)?Wt(e,o):t=>st.isBlock(e,t)),!i&&At.isRange(o)&&(o=st.unhangRange(e,o)),u&&At.isRange(o)){if(At.isCollapsed(o)&&st.leaf(e,o.anchor)[0].text.length>0)return;var l=st.rangeRef(e,o,{affinity:"inward"}),[c,f]=At.edges(o),d="lowest"===a?"lowest":"highest",p=st.isEnd(e,f,f.path);Jt.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=st.isStart(e,c,c.path);Jt.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Jt.select(e,o)}for(var[g,v]of st.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]:{};st.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=>st.isBlock(e,t)),At.isRange(i)&&(i=Vt(e,i)),yt.isPath(i)){var s=i,l=st.point(e,s),[c]=st.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=st.pointRef(e,i,{affinity:"backward"}),[d]=st.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=st.void(e,{at:i,mode:"highest"}),h=0;if(!r&&p){var[g,v]=p;if(nt.isElement(g)&&e.isInline(g)){var y=st.after(e,v);if(!y){var m={text:""},b=yt.next(v);Jt.insertNodes(e,m,{at:b,voids:r}),y=st.point(e,b)}i=y,u=!0}var w=i.path.length-v.length;a=w+1,u=!0}var E=st.pointRef(e,i),D=i.path.length-a,[,C]=d,x=i.path.slice(0,D),S=0===a?i.offset:i.path[D]+h;for(var[A,O]of st.levels(e,{at:x,reverse:!0,voids:r})){var k=!1;if(O.length<C.length||0===O.length||!r&&st.isVoid(e,A))break;var B=f.current,F=st.isEnd(e,B,O);if(u||!f||!st.isEdge(e,B,O)){k=!0;var _=pt.extractProps(A);e.apply({type:"split_node",path:O,position:S,properties:_})}S=O[O.length-1]+(k||F?1:0)}if(null==t.at){var T=E.current||st.end(e,[]);Jt.select(e,T)}f.unref(),E.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;Jt.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};st.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=yt.isPath(i)?Wt(e,i):t=>st.isBlock(e,t)),yt.isPath(i)&&(i=st.range(e,i));var u=At.isRange(i)?st.rangeRef(e,i):null,s=st.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return st.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=st.node(e,n),a=st.range(e,n);r&&u&&(a=At.intersection(u.current,a)),Jt.liftNodes(e,{at:a,match:e=>nt.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]:{};st.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=yt.isPath(u)?Wt(e,u):e.isInline(t)?t=>st.isInline(e,t)||Pt.isText(t):t=>st.isBlock(e,t)),o&&At.isRange(u)){var[s,l]=At.edges(u),c=st.rangeRef(e,u,{affinity:"inward"});Jt.splitNodes(e,{at:l,match:a,voids:i}),Jt.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Jt.select(e,u)}var f=Array.from(st.nodes(e,{at:u,match:e.isInline(t)?t=>st.isBlock(e,t):e=>st.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=At.isRange(u)?At.intersection(u,st.range(e,d)):u;if(p){var h=Array.from(st.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=yt.equals(o,a)?yt.parent(o):yt.common(o,a),s=st.range(e,o,a),l=st.node(e,u),[c]=l,f=u.length+1,d=yt.next(a.slice(0,f)),p=$t($t({},t),{},{children:[]});Jt.insertNodes(e,p,{at:d,voids:i}),Jt.moveNodes(e,{at:s,match:e=>nt.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===g)continue}}}}}))}},Ut=(e,t)=>{if(nt.isElement(t)){var n=t;return!!st.isVoid(e,t)||1===n.children.length&&Ut(e,n.children[0])}return!st.isEditor(t)},Vt=(e,t)=>{if(At.isCollapsed(t))return t.anchor;var[,n]=At.edges(t),r=st.pointRef(e,n);return Jt.delete(e,{at:t}),r.unref()},Wt=(e,t)=>{var[n]=st.node(e,t);return e=>e===n};function qt(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt={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)Jt.select(e,r.anchor);else if("focus"===n)Jt.select(e,r.focus);else if("start"===n){var[o]=At.edges(r);Jt.select(e,o)}else if("end"===n){var[,i]=At.edges(r);Jt.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=At.isBackward(n)?"focus":"anchor"),"end"===a&&(a=At.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?st.before(e,u,l):st.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?st.before(e,s,l):st.after(e,s,l);d&&(c.focus=d)}Jt.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=st.range(e,t),n)Jt.setSelection(e,t);else{if(!At.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=At.isBackward(r)?"focus":"anchor"),"end"===o&&(o=At.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Jt.setSelection(e,{["anchor"===o?"anchor":"focus"]:Gt(Gt({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Et.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Et.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})}}},Yt={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};st.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(At.isRange(a)&&At.isCollapsed(a)&&(a=a.anchor),Et.isPoint(a)){var s=st.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o},f=n?st.before(e,a,c)||st.start(e,[]):st.after(e,a,c)||st.end(e,[]);a={anchor:a,focus:f},u=!0}}if(yt.isPath(a))Jt.removeNodes(e,{at:a,voids:i});else if(!At.isCollapsed(a)){if(!u){var[,d]=At.edges(a),p=st.end(e,[]);Et.equals(d,p)||(a=st.unhangRange(e,a,{voids:i}))}var[h,g]=At.edges(a),v=st.above(e,{match:t=>st.isBlock(e,t),at:h,voids:i}),y=st.above(e,{match:t=>st.isBlock(e,t),at:g,voids:i}),m=v&&y&&!yt.equals(v[1],y[1]),b=yt.equals(h.path,g.path),w=i?null:st.void(e,{at:h,mode:"highest"}),E=i?null:st.void(e,{at:g,mode:"highest"});if(w){var D=st.before(e,h);D&&v&&yt.isAncestor(v[1],D.path)&&(h=D)}if(E){var C=st.after(e,g);C&&y&&yt.isAncestor(y[1],C.path)&&(g=C)}var x,S=[];for(var A of st.nodes(e,{at:a,voids:i})){var[O,k]=A;x&&0===yt.compare(k,x)||(!i&&st.isVoid(e,O)||!yt.isCommon(k,h.path)&&!yt.isCommon(k,g.path))&&(S.push(A),x=k)}var B=Array.from(S,(t=>{var[,n]=t;return st.pathRef(e,n)})),F=st.pointRef(e,h),_=st.pointRef(e,g);if(!b&&!w){var T=F.current,[P]=st.leaf(e,T),{path:j}=T,{offset:N}=h,I=P.text.slice(N);I.length>0&&e.apply({type:"remove_text",path:j,offset:N,text:I})}for(var R of B){var L=R.unref();Jt.removeNodes(e,{at:L,voids:i})}if(!E){var M=_.current,[z]=st.leaf(e,M),{path:$}=M,H=b?h.offset:0,U=z.text.slice(H,g.offset);U.length>0&&e.apply({type:"remove_text",path:$,offset:H,text:U})}!b&&m&&_.current&&F.current&&Jt.mergeNodes(e,{at:_.current,hanging:!0,voids:i});var V=n?F.unref()||_.unref():_.unref()||F.unref();null==t.at&&V&&Jt.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};st.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(At.isRange(i))if(r||(i=st.unhangRange(e,i)),At.isCollapsed(i))i=i.anchor;else{var[,a]=At.edges(i);if(!o&&st.void(e,{at:a}))return;var u=st.pointRef(e,a);Jt.delete(e,{at:i}),i=u.unref()}else yt.isPath(i)&&(i=st.start(e,i));if(o||!st.void(e,{at:i})){var s=st.above(e,{at:i,match:t=>st.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;if(st.isEnd(e,i,l)){var c=st.after(e,l);i=c}else if(st.isStart(e,i,l)){var f=st.before(e,l);i=f}}var d=st.above(e,{match:t=>st.isBlock(e,t),at:i,voids:o}),[,p]=d,h=st.isStart(e,i,p),g=st.isEnd(e,i,p),v=h&&g,y=!h||h&&g,m=!g,[,b]=pt.first({children:t},[]),[,w]=pt.last({children:t},[]),E=[],D=t=>{var[n,r]=t,o=0===r.length;return!o&&(!!v||!(y&&yt.isAncestor(r,b)&&nt.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(m&&yt.isAncestor(r,w)&&nt.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var C of pt.nodes({children:t},{pass:D}))D(C)&&E.push(C);var x=[],S=[],A=[],O=!0,k=!1;for(var[B]of E)nt.isElement(B)&&!e.isInline(B)?(O=!1,k=!0,S.push(B)):O?x.push(B):A.push(B);var[F]=st.nodes(e,{at:i,match:t=>Pt.isText(t)||st.isInline(e,t),mode:"highest",voids:o}),[,_]=F,T=st.isStart(e,i,_),P=st.isEnd(e,i,_),j=st.pathRef(e,g?yt.next(p):p),N=st.pathRef(e,P?yt.next(_):_),I=st.pathRef(e,p);Jt.splitNodes(e,{at:i,match:t=>k?st.isBlock(e,t):Pt.isText(t)||st.isInline(e,t),mode:k?"lowest":"highest",voids:o});var R=st.pathRef(e,!T||T&&P?yt.next(_):_);if(Jt.insertNodes(e,x,{at:R.current,match:t=>Pt.isText(t)||st.isInline(e,t),mode:"highest",voids:o}),v&&S.length&&Jt.delete(e,{at:I.unref(),voids:o}),Jt.insertNodes(e,S,{at:j.current,match:t=>st.isBlock(e,t),mode:"lowest",voids:o}),Jt.insertNodes(e,A,{at:N.current,match:t=>Pt.isText(t)||st.isInline(e,t),mode:"highest",voids:o}),!n.at){var L;L=A.length>0?yt.previous(N.current):S.length>0?yt.previous(j.current):yt.previous(R.current);var M=st.end(e,L);Jt.select(e,M)}R.unref(),j.unref(),N.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};st.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(yt.isPath(o)&&(o=st.range(e,o)),At.isRange(o))if(At.isCollapsed(o))o=o.anchor;else{var i=At.end(o);if(!r&&st.void(e,{at:i}))return;var a=st.pointRef(e,i);Jt.delete(e,{at:o,voids:r}),o=a.unref(),Jt.setSelection(e,{anchor:o,focus:o})}if(r||!st.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 Xt(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 Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jt=Zt(Zt(Zt(Zt({},Rt),Ht),Kt),Yt),Qt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function en(e){var t={exports:{}};return e(t,t.exports),t.exports}var tn=9007199254740991,nn="[object Arguments]",rn="[object Function]",on="[object GeneratorFunction]",an="[object Map]",un="[object Object]",sn="[object Promise]",ln="[object Set]",cn="[object String]",fn="[object WeakMap]",dn="[object DataView]",pn=/[\\^$.*+?()[\]{}|]/g,hn=/^\[object .+?Constructor\]$/,gn=/^(?:0|[1-9]\d*)$/,vn="\\ud800-\\udfff",yn="\\u0300-\\u036f\\ufe20-\\ufe23",mn="\\u20d0-\\u20f0",bn="\\ufe0e\\ufe0f",wn="["+vn+"]",En="["+yn+mn+"]",Dn="\\ud83c[\\udffb-\\udfff]",Cn="(?:"+En+"|"+Dn+")",xn="[^"+vn+"]",Sn="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",On="\\u200d",kn=Cn+"?",Bn="["+bn+"]?",Fn="(?:"+On+"(?:"+[xn,Sn,An].join("|")+")"+Bn+kn+")*",_n=Bn+kn+Fn,Tn="(?:"+[xn+En+"?",En,Sn,An,wn].join("|")+")",Pn=RegExp(Dn+"(?="+Dn+")|"+Tn+_n,"g"),jn=RegExp("["+On+vn+yn+mn+bn+"]"),Nn="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,In="object"==typeof self&&self&&self.Object===Object&&self,Rn=Nn||In||Function("return this")();function Ln(e,t){var n=-1,r=e?e.length:0,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}function Mn(e){return e.split("")}function zn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function $n(e,t){return Ln(t,(function(t){return e[t]}))}function Hn(e,t){return null==e?void 0:e[t]}function Un(e){return jn.test(e)}function Vn(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function Wn(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function qn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Gn(e,t){return function(n){return e(t(n))}}function Kn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Yn(e){return Un(e)?Xn(e):Mn(e)}function Xn(e){return e.match(Pn)||[]}var Zn=Function.prototype,Jn=Object.prototype,Qn=Rn["__core-js_shared__"],er=function(){var e=/[^.]+$/.exec(Qn&&Qn.keys&&Qn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),tr=Zn.toString,nr=Jn.hasOwnProperty,rr=Jn.toString,or=RegExp("^"+tr.call(nr).replace(pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ir=Rn.Symbol,ar=ir?ir.iterator:void 0,ur=Jn.propertyIsEnumerable,sr=Gn(Object.keys,Object),lr=xr(Rn,"DataView"),cr=xr(Rn,"Map"),fr=xr(Rn,"Promise"),dr=xr(Rn,"Set"),pr=xr(Rn,"WeakMap"),hr=Br(lr),gr=Br(cr),vr=Br(fr),yr=Br(dr),mr=Br(pr);function br(e,t){var n=_r(e)||Fr(e)?zn(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!nr.call(e,i)||o&&("length"==i||Ar(i,r))||n.push(i);return n}function wr(e){return rr.call(e)}function Er(e){if(!Ir(e)||Or(e))return!1;var t=jr(e)||Vn(e)?or:hn;return t.test(Br(e))}function Dr(e){if(!kr(e))return sr(e);var t=[];for(var n in Object(e))nr.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Cr(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}function xr(e,t){var n=Hn(e,t);return Er(n)?n:void 0}var Sr=wr;function Ar(e,t){return t=null==t?tn:t,!!t&&("number"==typeof e||gn.test(e))&&e>-1&&e%1==0&&e<t}function Or(e){return!!er&&er in e}function kr(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Jn;return e===n}function Br(e){if(null!=e){try{return tr.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Fr(e){return Pr(e)&&nr.call(e,"callee")&&(!ur.call(e,"callee")||rr.call(e)==nn)}(lr&&Sr(new lr(new ArrayBuffer(1)))!=dn||cr&&Sr(new cr)!=an||fr&&Sr(fr.resolve())!=sn||dr&&Sr(new dr)!=ln||pr&&Sr(new pr)!=fn)&&(Sr=function(e){var t=rr.call(e),n=t==un?e.constructor:void 0,r=n?Br(n):void 0;if(r)switch(r){case hr:return dn;case gr:return an;case vr:return sn;case yr:return ln;case mr:return fn}return t});var _r=Array.isArray;function Tr(e){return null!=e&&Nr(e.length)&&!jr(e)}function Pr(e){return Rr(e)&&Tr(e)}function jr(e){var t=Ir(e)?rr.call(e):"";return t==rn||t==on}function Nr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=tn}function Ir(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Rr(e){return!!e&&"object"==typeof e}function Lr(e){return"string"==typeof e||!_r(e)&&Rr(e)&&rr.call(e)==cn}function Mr(e){if(!e)return[];if(Tr(e))return Lr(e)?Yn(e):Cr(e);if(ar&&e[ar])return Wn(e[ar]());var t=Sr(e),n=t==an?qn:t==ln?Kn:$r;return n(e)}function zr(e){return Tr(e)?br(e):Dr(e)}function $r(e){return e?$n(e,zr(e)):[]}var Hr=Mr;function Ur(e){return null!==e&&"object"===typeof e&&"constructor"in e&&e.constructor===Object}function Vr(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){"undefined"===typeof e[n]?e[n]=t[n]:Ur(t[n])&&Ur(e[n])&&Object.keys(t[n]).length>0&&Vr(e[n],t[n])}))}var Wr={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 qr(){var e="undefined"!==typeof document?document:{};return Vr(e,Wr),e}var Gr={document:Wr,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 Kr(){var e="undefined"!==typeof window?window:{};return Vr(e,Gr),e}function Yr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Xr(e){return Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xr(e)}function Zr(e,t){return Zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zr(e,t)}function Jr(){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 Qr(e,t,n){return Qr=Jr()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&Zr(i,n.prototype),i},Qr.apply(null,arguments)}function eo(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function to(e){var t="function"===typeof Map?new Map:void 0;return to=function(e){if(null===e||!eo(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Qr(e,arguments,Xr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Zr(n,e)},to(e)}function no(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(e){t.__proto__=e}})}var oo=function(e){function t(t){var n;return n=e.call.apply(e,[this].concat(t))||this,ro(no(n)),n}return Yr(t,e),t}(to(Array));function io(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,io(e)):t.push(e)})),t}function ao(e,t){return Array.prototype.filter.call(e,t)}function uo(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function so(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function lo(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}function co(e,t){var n=Kr(),r=qr(),o=[];if(!t&&e instanceof oo)return e;if(!e)return new oo(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=lo(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof oo)return e;o=e}return new oo(uo(o))}function fo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=io(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function po(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=io(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function ho(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=io(t.map((function(e){return e.split(" ")})));return ao(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function go(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 vo(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function yo(){var e=this[0];if(e){var t={};if(e.dataset)for(var n in e.dataset)t[n]=e.dataset[n];else for(var r=0;r<e.attributes.length;r+=1){var o=e.attributes[r];o.name.indexOf("data-")>=0&&(t[so(o.name.split("data-")[1])]=o.value)}for(var i in t)"false"===t[i]?t[i]=!1:"true"===t[i]?t[i]=!0:parseFloat(t[i])===1*t[i]&&(t[i]*=1);return t}}function mo(e){if("undefined"===typeof 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 bo(){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),co(t).is(o))i.apply(t,n);else for(var r=co(t).parents(),a=0;a<r.length;a+=1)co(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 wo(){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 Eo(){var e=Kr();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Do(){var e=Kr();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Co(){if(this.length>0){var e=Kr(),t=qr(),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 xo(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function So(){for(var e=Kr(),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 Ao(e,t){var n,r=Kr();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 Oo(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function ko(e){var t=ao(this,e);return co(t)}function Bo(e){if("undefined"===typeof e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Fo(e){if("undefined"===typeof 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 _o(e){var t,n,r=Kr(),o=qr(),i=this[0];if(!i||"undefined"===typeof 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=co(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 oo){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function To(){for(var e,t=qr(),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");o.innerHTML=e;while(o.firstChild)this[r].appendChild(o.firstChild)}else if(e instanceof oo)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Po(e){var t,n,r=qr();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 oo)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 jo(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?co(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return co(t)}function No(e){for(var t=[],n=0;n<this.length;n+=1){var r=this[n].parentNode;while(r)e?co(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return co(t)}function Io(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 co(t)}function Ro(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&&!co(r[o]).is(e)||t.push(r[o]);return co(t)}function Lo(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Mo(){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}co.fn=oo.prototype;var zo="resize scroll".split(" ");function $o(e){function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("undefined"===typeof n[0]){for(var o=0;o<this.length;o+=1)zo.indexOf(e)<0&&(e in this[o]?this[o][e]():co(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}return t}var Ho=$o("click"),Uo=$o("focus"),Vo=9007199254740991,Wo="[object Arguments]",qo="[object Function]",Go="[object GeneratorFunction]",Ko=/^(?:0|[1-9]\d*)$/;function Yo(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Xo(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Zo(e,t){return function(n){return e(t(n))}}var Jo=Object.prototype,Qo=Jo.hasOwnProperty,ei=Jo.toString,ti=Jo.propertyIsEnumerable,ni=Zo(Object.keys,Object);function ri(e,t){var n=hi(e)||pi(e)?Xo(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Qo.call(e,i)||o&&("length"==i||ci(i,r))||n.push(i);return n}var oi=si(ai),ii=li();function ai(e,t){return e&&ii(e,t,Ei)}function ui(e){if(!fi(e))return ni(e);var t=[];for(var n in Object(e))Qo.call(e,n)&&"constructor"!=n&&t.push(n);return t}function si(e,t){return function(n,r){if(null==n)return n;if(!gi(n))return e(n,r);var o=n.length,i=t?o:-1,a=Object(n);while(t?i--:++i<o)if(!1===r(a[i],i,a))break;return n}}function li(e){return function(t,n,r){var o=-1,i=Object(t),a=r(t),u=a.length;while(u--){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}function ci(e,t){return t=null==t?Vo:t,!!t&&("number"==typeof e||Ko.test(e))&&e>-1&&e%1==0&&e<t}function fi(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Jo;return e===n}function di(e,t){var n=hi(e)?Yo:oi;return n(e,"function"==typeof t?t:Di)}function pi(e){return vi(e)&&Qo.call(e,"callee")&&(!ti.call(e,"callee")||ei.call(e)==Wo)}var hi=Array.isArray;function gi(e){return null!=e&&mi(e.length)&&!yi(e)}function vi(e){return wi(e)&&gi(e)}function yi(e){var t=bi(e)?ei.call(e):"";return t==qo||t==Go}function mi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Vo}function bi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function wi(e){return!!e&&"object"==typeof e}function Ei(e){return gi(e)?ri(e):ui(e)}function Di(e){return e}var Ci=di;if("undefined"!==typeof navigator&&"ReactNative"===navigator.product&&"undefined"===typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!==typeof msCrypto&&"undefined"===typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"===typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let xi=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));while(e--){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Si="Expected a function",Ai=NaN,Oi="[object Symbol]",ki=/^\s+|\s+$/g,Bi=/^[-+]0x[0-9a-f]+$/i,Fi=/^0b[01]+$/i,_i=/^0o[0-7]+$/i,Ti=parseInt,Pi="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,ji="object"==typeof self&&self&&self.Object===Object&&self,Ni=Pi||ji||Function("return this")(),Ii=Object.prototype,Ri=Ii.toString,Li=Math.max,Mi=Math.min,zi=function(){return Ni.Date.now()};function $i(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(Si);function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n),a}function h(e){return l=e,u=setTimeout(y,t),c?p(e):a}function g(e){var n=e-s,r=e-l,o=t-n;return f?Mi(o,i-r):o}function v(e){var n=e-s,r=e-l;return void 0===s||n>=t||n<0||f&&r>=i}function y(){var e=zi();if(v(e))return m(e);u=setTimeout(y,g(e))}function m(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function b(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0}function w(){return void 0===u?a:m(zi())}function E(){var e=zi(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(y,t),p(s)}return void 0===u&&(u=setTimeout(y,t)),a}return t=qi(t)||0,Ui(n)&&(c=!!n.leading,f="maxWait"in n,i=f?Li(qi(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),E.cancel=b,E.flush=w,E}function Hi(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(Si);return Ui(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$i(e,t,{leading:r,maxWait:t,trailing:o})}function Ui(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Vi(e){return!!e&&"object"==typeof e}function Wi(e){return"symbol"==typeof e||Vi(e)&&Ri.call(e)==Oi}function qi(e){if("number"==typeof e)return e;if(Wi(e))return Ai;if(Ui(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ui(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ki,"");var n=Fi.test(e);return n||_i.test(e)?Ti(e.slice(2),n?2:8):Bi.test(e)?Ai:+e}var Gi=Hi;function Ki(e,t){return document.createElement(e,t)}function Yi(e,t,n){return document.createElementNS(e,t,n)}function Xi(e){return document.createTextNode(e)}function Zi(e){return document.createComment(e)}function Ji(e,t,n){e.insertBefore(t,n)}function Qi(e,t){e.removeChild(t)}function ea(e,t){e.appendChild(t)}function ta(e){return e.parentNode}function na(e){return e.nextSibling}function ra(e){return e.tagName}function oa(e,t){e.textContent=t}function ia(e){return e.textContent}function aa(e){return 1===e.nodeType}function ua(e){return 3===e.nodeType}function sa(e){return 8===e.nodeType}const la={createElement:Ki,createElementNS:Yi,createTextNode:Xi,createComment:Zi,insertBefore:Ji,removeChild:Qi,appendChild:ea,parentNode:ta,nextSibling:na,tagName:ra,setTextContent:oa,getTextContent:ia,isElement:aa,isText:ua,isComment:sa};function ca(e,t,n,r,o){const i=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:r,elm:o,key:i}}const fa=Array.isArray;function da(e){return"string"===typeof e||"number"===typeof e||e instanceof String||e instanceof Number}function pa(e){return void 0===e}function ha(e){return void 0!==e}const ga=ca("",{},[],void 0,void 0);function va(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),a=e.sel===t.sel;return a&&o&&i}function ya(e){return void 0!==e.sel}function ma(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 ba=["create","update","remove","destroy","pre","post"];function wa(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:la;for(const d of ba)for(const t of e){const e=t[d];void 0!==e&&n[d].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return ca(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0===--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;ha(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)pa(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=ha(s)&&ha(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](ga,e);if(fa(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,a(e,t))}else da(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;ha(v)&&(null===(i=v.create)||void 0===i||i.call(v,ga,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function u(e,t,n,o,i,u){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,u),t)}}function s(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null===o||void 0===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&&s(n)}}}function l(e,t,o,a){for(var u,l;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(ha(f.sel)){s(f),a=n.remove.length+1,c=i(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(u=null===f||void 0===f?void 0:f.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;ha(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,n,o){let i,s,c,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];while(p<=g&&h<=m)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:va(v,b)?(f(v,b,o),v=t[++p],b=n[++h]):va(y,w)?(f(y,w,o),y=t[--g],w=n[--m]):va(v,w)?(f(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):va(y,b)?(f(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===i&&(i=ma(t,p,g)),s=i[b.key],pa(s)?r.insertBefore(e,a(b,o),v.elm):(c=t[s],c.sel!==b.sel?r.insertBefore(e,a(b,o),v.elm):(f(c,b,o),t[s]=void 0,r.insertBefore(e,c.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,o)):l(e,t,p,g))}function f(e,t,o){var i,a,s,f,d;const p=null===(i=t.data)||void 0===i?void 0:i.hook;null===(a=null===p||void 0===p?void 0:p.prepatch)||void 0===a||a.call(p,e,t);const h=t.elm=e.elm,g=e.children,v=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===(f=null===(s=t.data.hook)||void 0===s?void 0:s.update)||void 0===f||f.call(s,e,t)}pa(t.text)?ha(g)&&ha(v)?g!==v&&c(h,g,v,o):ha(v)?(ha(e.text)&&r.setTextContent(h,""),u(h,null,v,0,v.length-1,o)):ha(g)?l(h,g,0,g.length-1):ha(e.text)&&r.setTextContent(h,""):e.text!==t.text&&(ha(g)&&l(h,g,0,g.length-1),r.setTextContent(h,t.text)),null===(d=null===p||void 0===p?void 0:p.postpatch)||void 0===d||d.call(p,e,t)}}return function(e,t){let i,u,s;const c=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(ya(e)||(e=o(e)),va(e,t)?f(e,t,c):(u=e.elm,s=r.parentNode(u),a(t,c),null!==s&&(r.insertBefore(s,t.elm,r.nextSibling(u)),l(s,[e],0,0))),i=0;i<c.length;++i)c[i].data.hook.insert(c[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function Ea(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&Ea(e,t[r].children,t[r].sel)}}function Da(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),fa(n)?r=n:da(n)?o=n.toString():n&&n.sel&&(r=[n])):void 0!==t&&null!==t&&(fa(t)?r=t:da(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)da(r[i])&&(r[i]=ca(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]||Ea(a,r,e),ca(e,a,r,o,void 0)}function Ca(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 xa={create:Ca,update:Ca},Sa=/[A-Z]/g;function Aa(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(Sa,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Sa,"-$&").toLowerCase(),i[r]))}const Oa={create:Aa,update:Aa};function ka(e,t,n){if("function"===typeof e)e.call(t,n,t);else if("object"===typeof e)for(let r=0;r<e.length;r++)ka(e[r],t,n)}function Ba(e,t){const n=e.type,r=t.data.on;r&&r[n]&&ka(r[n],t,e)}function Fa(){return function e(t){Ba(t,e.vnode)}}function _a(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||Fa();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 Ta={create:_a,update:_a,destroy:_a};function Pa(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 ja={create:Pa,update:Pa},Na="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,Ia=function(e){Na((function(){Na(e)}))};let Ra=!1;function La(e,t,n){Ia((function(){e[t]=n}))}function Ma(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]||La(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}function za(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]}function $a(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Ra||(e.elm.offsetLeft,Ra=!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),c=l["transition-property"].split(", ");for(;i<c.length;++i)-1!==s.indexOf(c[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}function Ha(){Ra=!1}const Ua={pre:Ha,create:Ma,update:Ma,destroy:za,remove:$a};function Va(e,t){for(const n of e)void 0!==n&&null!==n&&!1!==n&&""!==n&&(Array.isArray(n)?Va(n,t):"string"===typeof n||"number"===typeof n||"boolean"===typeof n?t.push(ca(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Wa(e,t,...n){const r=Va(n,[]);return"function"===typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Da(e,t,r[0].text):Da(e,t,r)}Wa||(Wa={});var qa=1/0,Ga="[object Symbol]",Ka=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ya=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xa="\\ud800-\\udfff",Za="\\u0300-\\u036f\\ufe20-\\ufe23",Ja="\\u20d0-\\u20f0",Qa="\\u2700-\\u27bf",eu="a-z\\xdf-\\xf6\\xf8-\\xff",tu="\\xac\\xb1\\xd7\\xf7",nu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ru="\\u2000-\\u206f",ou=" \\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",iu="A-Z\\xc0-\\xd6\\xd8-\\xde",au="\\ufe0e\\ufe0f",uu=tu+nu+ru+ou,su="['’]",lu="["+Xa+"]",cu="["+uu+"]",fu="["+Za+Ja+"]",du="\\d+",pu="["+Qa+"]",hu="["+eu+"]",gu="[^"+Xa+uu+du+Qa+eu+iu+"]",vu="\\ud83c[\\udffb-\\udfff]",yu="(?:"+fu+"|"+vu+")",mu="[^"+Xa+"]",bu="(?:\\ud83c[\\udde6-\\uddff]){2}",wu="[\\ud800-\\udbff][\\udc00-\\udfff]",Eu="["+iu+"]",Du="\\u200d",Cu="(?:"+hu+"|"+gu+")",xu="(?:"+Eu+"|"+gu+")",Su="(?:"+su+"(?:d|ll|m|re|s|t|ve))?",Au="(?:"+su+"(?:D|LL|M|RE|S|T|VE))?",Ou=yu+"?",ku="["+au+"]?",Bu="(?:"+Du+"(?:"+[mu,bu,wu].join("|")+")"+ku+Ou+")*",Fu=ku+Ou+Bu,_u="(?:"+[pu,bu,wu].join("|")+")"+Fu,Tu="(?:"+[mu+fu+"?",fu,bu,wu,lu].join("|")+")",Pu=RegExp(su,"g"),ju=RegExp(fu,"g"),Nu=RegExp(vu+"(?="+vu+")|"+Tu+Fu,"g"),Iu=RegExp([Eu+"?"+hu+"+"+Su+"(?="+[cu,Eu,"$"].join("|")+")",xu+"+"+Au+"(?="+[cu,Eu+Cu,"$"].join("|")+")",Eu+"?"+Cu+"+"+Su,Eu+"+"+Au,du,_u].join("|"),"g"),Ru=RegExp("["+Du+Xa+Za+Ja+au+"]"),Lu=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mu={"À":"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"},zu="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,$u="object"==typeof self&&self&&self.Object===Object&&self,Hu=zu||$u||Function("return this")();function Uu(e,t,n,r){var o=-1,i=e?e.length:0;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function Vu(e){return e.split("")}function Wu(e){return e.match(Ka)||[]}function qu(e){return function(t){return null==e?void 0:e[t]}}var Gu=qu(Mu);function Ku(e){return Ru.test(e)}function Yu(e){return Lu.test(e)}function Xu(e){return Ku(e)?Zu(e):Vu(e)}function Zu(e){return e.match(Nu)||[]}function Ju(e){return e.match(Iu)||[]}var Qu=Object.prototype,es=Qu.toString,ts=Hu.Symbol,ns=ts?ts.prototype:void 0,rs=ns?ns.toString:void 0;function os(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;var i=Array(o);while(++r<o)i[r]=e[r+t];return i}function is(e){if("string"==typeof e)return e;if(cs(e))return rs?rs.call(e):"";var t=e+"";return"0"==t&&1/e==-qa?"-0":t}function as(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:os(e,t,n)}function us(e){return function(t){t=fs(t);var n=Ku(t)?Xu(t):void 0,r=n?n[0]:t.charAt(0),o=n?as(n,1).join(""):t.slice(1);return r[e]()+o}}function ss(e){return function(t){return Uu(vs(hs(t).replace(Pu,"")),e,"")}}function ls(e){return!!e&&"object"==typeof e}function cs(e){return"symbol"==typeof e||ls(e)&&es.call(e)==Ga}function fs(e){return null==e?"":is(e)}var ds=ss((function(e,t,n){return t=t.toLowerCase(),e+(n?ps(t):t)}));function ps(e){return gs(fs(e).toLowerCase())}function hs(e){return e=fs(e),e&&e.replace(Ya,Gu).replace(ju,"")}var gs=us("toUpperCase");function vs(e,t,n){return e=fs(e),t=n?void 0:t,void 0===t?Yu(e)?Ju(e):Wu(e):e.match(t)||[]}for(var ys=ds,ms="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),bs={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},ws={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ms?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Es={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},Ds=1;Ds<20;Ds++)Es["f"+Ds]=111+Ds;function Cs(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return Ss(e,t)})),o=function(e){return r.some((function(t){return As(t,e)}))},i=null==n?o:o(n);return i}function xs(e,t){return Cs(e,{byKey:!0},t)}function Ss(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var a in bs)r[bs[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=ks(d),g=bs[h];if(d.length>1&&!g&&!ws[d]&&!Es[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Os(d)),g&&(r[g]=!p||null)}}catch(v){s=!0,l=v}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}function As(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n],(null!=o||!1!==r)&&o!==r))return!1}return!0}function Os(e){e=ks(e);var t=Es[e]||e.toUpperCase().charCodeAt(0);return t}function ks(e){return e=e.toLowerCase(),e=ws[e]||e,e}var Bs=Cs,Fs=xs,_s="Expected a function",Ts=NaN,Ps="[object Symbol]",js=/^\s+|\s+$/g,Ns=/^[-+]0x[0-9a-f]+$/i,Is=/^0b[01]+$/i,Rs=/^0o[0-7]+$/i,Ls=parseInt,Ms="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,zs="object"==typeof self&&self&&self.Object===Object&&self,$s=Ms||zs||Function("return this")(),Hs=Object.prototype,Us=Hs.toString,Vs=Math.max,Ws=Math.min,qs=function(){return $s.Date.now()};function Gs(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(_s);function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n),a}function h(e){return l=e,u=setTimeout(y,t),c?p(e):a}function g(e){var n=e-s,r=e-l,o=t-n;return f?Ws(o,i-r):o}function v(e){var n=e-s,r=e-l;return void 0===s||n>=t||n<0||f&&r>=i}function y(){var e=qs();if(v(e))return m(e);u=setTimeout(y,g(e))}function m(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function b(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0}function w(){return void 0===u?a:m(qs())}function E(){var e=qs(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(y,t),p(s)}return void 0===u&&(u=setTimeout(y,t)),a}return t=Zs(t)||0,Ks(n)&&(c=!!n.leading,f="maxWait"in n,i=f?Vs(Zs(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),E.cancel=b,E.flush=w,E}function Ks(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ys(e){return!!e&&"object"==typeof e}function Xs(e){return"symbol"==typeof e||Ys(e)&&Us.call(e)==Ps}function Zs(e){if("number"==typeof e)return e;if(Xs(e))return Ts;if(Ks(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ks(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(js,"");var n=Is.test(e);return n||Rs.test(e)?Ls(e.slice(2),n?2:8):Ns.test(e)?Ts:+e}var Js,Qs=Gs,el=en((function(e,t){var n=200,r="__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 GeneratorFunction]",d="[object Map]",p="[object Number]",h="[object Object]",g="[object Promise]",v="[object RegExp]",y="[object Set]",m="[object String]",b="[object Symbol]",w="[object WeakMap]",E="[object ArrayBuffer]",D="[object DataView]",C="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",A="[object Int16Array]",O="[object Int32Array]",k="[object Uint8Array]",B="[object Uint8ClampedArray]",F="[object Uint16Array]",_="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,P=/\w*$/,j=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[a]=I[E]=I[D]=I[u]=I[s]=I[C]=I[x]=I[S]=I[A]=I[O]=I[d]=I[p]=I[h]=I[v]=I[y]=I[m]=I[b]=I[k]=I[B]=I[F]=I[_]=!0,I[l]=I[c]=I[w]=!1;var R="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,L="object"==typeof self&&self&&self.Object===Object&&self,M=R||L||Function("return this")(),z=t&&!t.nodeType&&t,$=z&&e&&!e.nodeType&&e,H=$&&$.exports===z;function U(e,t){return e.set(t[0],t[1]),e}function V(e,t){return e.add(t),e}function W(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function q(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function G(e,t,n,r){var o=-1,i=e?e.length:0;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function K(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Y(e,t){return null==e?void 0:e[t]}function X(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function Z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function J(e,t){return function(n){return e(t(n))}}function Q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ee=Array.prototype,te=Function.prototype,ne=Object.prototype,re=M["__core-js_shared__"],oe=function(){var e=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ie=te.toString,ae=ne.hasOwnProperty,ue=ne.toString,se=RegExp("^"+ie.call(ae).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=H?M.Buffer:void 0,ce=M.Symbol,fe=M.Uint8Array,de=J(Object.getPrototypeOf,Object),pe=Object.create,he=ne.propertyIsEnumerable,ge=ee.splice,ve=Object.getOwnPropertySymbols,ye=le?le.isBuffer:void 0,me=J(Object.keys,Object),be=St(M,"DataView"),we=St(M,"Map"),Ee=St(M,"Promise"),De=St(M,"Set"),Ce=St(M,"WeakMap"),xe=St(Object,"create"),Se=Nt(be),Ae=Nt(we),Oe=Nt(Ee),ke=Nt(De),Be=Nt(Ce),Fe=ce?ce.prototype:void 0,_e=Fe?Fe.valueOf:void 0;function Te(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Pe(){this.__data__=xe?xe(null):{}}function je(e){return this.has(e)&&delete this.__data__[e]}function Ne(e){var t=this.__data__;if(xe){var n=t[e];return n===r?void 0:n}return ae.call(t,e)?t[e]:void 0}function Ie(e){var t=this.__data__;return xe?void 0!==t[e]:ae.call(t,e)}function Re(e,t){var n=this.__data__;return n[e]=xe&&void 0===t?r:t,this}function Le(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Me(){this.__data__=[]}function ze(e){var t=this.__data__,n=ot(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ge.call(t,n,1),!0}function $e(e){var t=this.__data__,n=ot(t,e);return n<0?void 0:t[n][1]}function He(e){return ot(this.__data__,e)>-1}function Ue(e,t){var n=this.__data__,r=ot(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function Ve(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function We(){this.__data__={hash:new Te,map:new(we||Le),string:new Te}}function qe(e){return xt(this,e)["delete"](e)}function Ge(e){return xt(this,e).get(e)}function Ke(e){return xt(this,e).has(e)}function Ye(e,t){return xt(this,e).set(e,t),this}function Xe(e){this.__data__=new Le(e)}function Ze(){this.__data__=new Le}function Je(e){return this.__data__["delete"](e)}function Qe(e){return this.__data__.get(e)}function et(e){return this.__data__.has(e)}function tt(e,t){var r=this.__data__;if(r instanceof Le){var o=r.__data__;if(!we||o.length<n-1)return o.push([e,t]),this;r=this.__data__=new Ve(o)}return r.set(e,t),this}function nt(e,t){var n=Mt(e)||Lt(e)?K(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!ae.call(e,i)||o&&("length"==i||_t(i,r))||n.push(i);return n}function rt(e,t,n){var r=e[t];ae.call(e,t)&&Rt(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function ot(e,t){var n=e.length;while(n--)if(Rt(e[n][0],t))return n;return-1}function it(e,t){return e&&Et(t,Gt(t),e)}function at(e,t,n,r,o,a,u){var s;if(r&&(s=a?r(e,o,a,u):r(e)),void 0!==s)return s;if(!Wt(e))return e;var l=Mt(e);if(l){if(s=kt(e),!t)return wt(e,s)}else{var d=Ot(e),p=d==c||d==f;if(Ht(e))return dt(e,t);if(d==h||d==i||p&&!a){if(X(e))return a?e:{};if(s=Bt(p?{}:e),!t)return Dt(e,it(s,e))}else{if(!I[d])return a?e:{};s=Ft(e,d,at,t)}}u||(u=new Xe);var g=u.get(e);if(g)return g;if(u.set(e,s),!l)var v=n?Ct(e):Gt(e);return W(v||e,(function(o,i){v&&(i=o,o=e[i]),rt(s,i,at(o,t,n,r,i,e,u))})),s}function ut(e){return Wt(e)?pe(e):{}}function st(e,t,n){var r=t(e);return Mt(e)?r:q(r,n(e))}function lt(e){return ue.call(e)}function ct(e){if(!Wt(e)||Pt(e))return!1;var t=Ut(e)||X(e)?se:j;return t.test(Nt(e))}function ft(e){if(!jt(e))return me(e);var t=[];for(var n in Object(e))ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function dt(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function pt(e){var t=new e.constructor(e.byteLength);return new fe(t).set(new fe(e)),t}function ht(e,t){var n=t?pt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gt(e,t,n){var r=t?n(Z(e),!0):Z(e);return G(r,U,new e.constructor)}function vt(e){var t=new e.constructor(e.source,P.exec(e));return t.lastIndex=e.lastIndex,t}function yt(e,t,n){var r=t?n(Q(e),!0):Q(e);return G(r,V,new e.constructor)}function mt(e){return _e?Object(_e.call(e)):{}}function bt(e,t){var n=t?pt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function wt(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}function Et(e,t,n,r){n||(n={});var o=-1,i=t.length;while(++o<i){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;rt(n,a,void 0===u?e[a]:u)}return n}function Dt(e,t){return Et(e,At(e),t)}function Ct(e){return st(e,Gt,At)}function xt(e,t){var n=e.__data__;return Tt(t)?n["string"==typeof t?"string":"hash"]:n.map}function St(e,t){var n=Y(e,t);return ct(n)?n:void 0}Te.prototype.clear=Pe,Te.prototype["delete"]=je,Te.prototype.get=Ne,Te.prototype.has=Ie,Te.prototype.set=Re,Le.prototype.clear=Me,Le.prototype["delete"]=ze,Le.prototype.get=$e,Le.prototype.has=He,Le.prototype.set=Ue,Ve.prototype.clear=We,Ve.prototype["delete"]=qe,Ve.prototype.get=Ge,Ve.prototype.has=Ke,Ve.prototype.set=Ye,Xe.prototype.clear=Ze,Xe.prototype["delete"]=Je,Xe.prototype.get=Qe,Xe.prototype.has=et,Xe.prototype.set=tt;var At=ve?J(ve,Object):Kt,Ot=lt;function kt(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ae.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Bt(e){return"function"!=typeof e.constructor||jt(e)?{}:ut(de(e))}function Ft(e,t,n,r){var o=e.constructor;switch(t){case E:return pt(e);case u:case s:return new o(+e);case D:return ht(e,r);case C:case x:case S:case A:case O:case k:case B:case F:case _:return bt(e,r);case d:return gt(e,r,n);case p:case m:return new o(e);case v:return vt(e);case y:return yt(e,r,n);case b:return mt(e)}}function _t(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function Tt(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Pt(e){return!!oe&&oe in e}function jt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ne;return e===n}function Nt(e){if(null!=e){try{return ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function It(e){return at(e,!0,!0)}function Rt(e,t){return e===t||e!==e&&t!==t}function Lt(e){return $t(e)&&ae.call(e,"callee")&&(!he.call(e,"callee")||ue.call(e)==i)}(be&&Ot(new be(new ArrayBuffer(1)))!=D||we&&Ot(new we)!=d||Ee&&Ot(Ee.resolve())!=g||De&&Ot(new De)!=y||Ce&&Ot(new Ce)!=w)&&(Ot=function(e){var t=ue.call(e),n=t==h?e.constructor:void 0,r=n?Nt(n):void 0;if(r)switch(r){case Se:return D;case Ae:return d;case Oe:return g;case ke:return y;case Be:return w}return t});var Mt=Array.isArray;function zt(e){return null!=e&&Vt(e.length)&&!Ut(e)}function $t(e){return qt(e)&&zt(e)}var Ht=ye||Yt;function Ut(e){var t=Wt(e)?ue.call(e):"";return t==c||t==f}function Vt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Wt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qt(e){return!!e&&"object"==typeof e}function Gt(e){return zt(e)?nt(e):ft(e)}function Kt(){return[]}function Yt(){return!1}e.exports=It})),tl=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function nl(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rl=0;function ol(e){return"__private_"+rl+++"_"+e}function il(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}
- /**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function al(e,t){const n=/\$/g,r="$$$$";let o=[e];if(null==t)return o;for(const i of Object.keys(t))if("_"!==i){let e=t[i];"string"===typeof e&&(e=n[Symbol.replace](e,r)),o=il(o,new RegExp(`%\\{${i}\\}`,"g"),e)}return o}var ul=(Js=ol("apply"),class{constructor(e){Object.defineProperty(this,Js,{value:sl}),this.locale={strings:{},pluralize(e){return 1===e?0:1}},Array.isArray(e)?e.forEach(nl(this,Js)[Js],this):nl(this,Js)[Js](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!tl(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e],r="object"===typeof n;if(r){if(t&&"undefined"!==typeof t.smart_count){const e=this.locale.pluralize(t.smart_count);return al(n[e],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return al(n,t)}});function sl(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 ll=function(){var e={},t=e._fns={};function n(e){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;for(a;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}function r(e,t,n){var r=0,o=t.length;for(r;r<o;r++){if(!t[r])break;t[r].event=e,t[r].apply(t[r],n)}}return e.emit=function(e,t,o,i,a,u,s){var l=n(e);l.length&&r(e,l,[t,o,i,a,u,s])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){function r(){n.apply(this,arguments),e.off(t,r)}this.on(t,r)},e.off=function(e,t){var n=[];if(e&&t){var r=this._fns[e],o=0,i=r?r.length:0;for(o;o<i;o++)r[o]!==t&&n.push(r[o])}n.length?this._fns[e]=n:delete this._fns[e]},e};let cl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var fl={urlAlphabet:cl};let{urlAlphabet:dl}=fl;if("undefined"!==typeof navigator&&"ReactNative"===navigator.product&&"undefined"===typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!==typeof msCrypto&&"undefined"===typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"===typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let pl=e=>crypto.getRandomValues(new Uint8Array(e)),hl=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";while(1){let a=n(o),u=o;while(u--)if(i+=e[a[u]&r]||"",i.length===t)return i}}},gl=(e,t)=>hl(e,t,pl),vl=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));while(e--){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var yl={nanoid:vl,customAlphabet:gl,customRandom:hl,urlAlphabet:dl,random:pl},ml=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 bl(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}bl.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 wl=function(e,t,n){var r=new bl(e,n||/[\/\.]/);return"undefined"!=typeof t?r.match(t):r},El=/[\/\+\.]/,Dl=function(e,t){function n(t){var n=wl(t,e,El);return n&&n.length>=2}return t?n(t.split(";")[0]):n};function Cl(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xl=0;function Sl(e){return"__private_"+xl+++"_"+e}var Al=Sl("publish");class Ol{constructor(){Object.defineProperty(this,Al,{value:kl}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,Cl(this,Al)[Al](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function kl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Ol.VERSION="2.0.3";var Bl=function(){return new Ol},Fl=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)}},_l={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"},Tl=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Fl(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in _l?_l[n]:"application/octet-stream"};function Pl(e){return e.charCodeAt(0).toString(32)}function jl(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${Pl(e)}`,"/")))+t}var Nl=function(e){let t="uppy";return"string"===typeof e.name&&(t+=`-${jl(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"===typeof e.meta.relativePath&&(t+=`-${jl(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t},Il=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)},Rl=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"};function Ll(e){return e<10?`0${e}`:e.toString()}var Ml=function(){const e=new Date,t=Ll(e.getHours()),n=Ll(e.getMinutes()),r=Ll(e.getSeconds());return`${t}:${n}:${r}`};const zl={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] [${Ml()}]`,...t)}},$l={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Ml()}]`,...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] [${Ml()}]`,...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] [${Ml()}]`,...t)}};var Hl={justErrorsLogger:zl,debugLogger:$l},Ul={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}"}}},Vl=yl;let Wl,ql;function Gl(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Kl=0;function Yl(e){return"__private_"+Kl+++"_"+e}const{nanoid:Xl}=Vl,{justErrorsLogger:Zl,debugLogger:Jl}=Hl;class Ql 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 ec extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var tc=Yl("plugins"),nc=Yl("storeUnsubscribe"),rc=Yl("emitter"),oc=Yl("preProcessors"),ic=Yl("uploaders"),ac=Yl("postProcessors"),uc=Yl("checkRestrictions"),sc=Yl("checkMinNumberOfFiles"),lc=Yl("checkRequiredMetaFieldsOnFile"),cc=Yl("checkRequiredMetaFields"),fc=Yl("showOrLogErrorAndThrow"),dc=Yl("assertNewUploadAllowed"),pc=Yl("checkAndCreateFileStateObject"),hc=Yl("startIfAutoProceed"),gc=Yl("addListeners"),vc=Yl("updateOnlineStatus"),yc=Yl("createUpload"),mc=Yl("getUpload"),bc=Yl("removeUpload"),wc=Yl("runUpload");Wl=Symbol.for("uppy test: getPlugins"),ql=Symbol.for("uppy test: createUpload");class Ec{constructor(e){Object.defineProperty(this,wc,{value:jc}),Object.defineProperty(this,bc,{value:Pc}),Object.defineProperty(this,mc,{value:Tc}),Object.defineProperty(this,yc,{value:_c}),Object.defineProperty(this,gc,{value:Fc}),Object.defineProperty(this,hc,{value:Bc}),Object.defineProperty(this,pc,{value:kc}),Object.defineProperty(this,dc,{value:Oc}),Object.defineProperty(this,fc,{value:Ac}),Object.defineProperty(this,cc,{value:Sc}),Object.defineProperty(this,lc,{value:xc}),Object.defineProperty(this,sc,{value:Cc}),Object.defineProperty(this,uc,{value:Dc}),Object.defineProperty(this,tc,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,nc,{writable:!0,value:void 0}),Object.defineProperty(this,rc,{writable:!0,value:ll()}),Object.defineProperty(this,oc,{writable:!0,value:new Set}),Object.defineProperty(this,ic,{writable:!0,value:new Set}),Object.defineProperty(this,ac,{writable:!0,value:new Set}),Object.defineProperty(this,vc,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Ul;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:Bl(),logger:Zl,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=Jl),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=Gi(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Il(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Gl(this,nc)[nc]=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),Gl(this,gc)[gc]()}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];Gl(this,rc)[rc].emit(e,...n)}on(e,t){return Gl(this,rc)[rc].on(e,t),this}once(e,t){return Gl(this,rc)[rc].once(e,t),this}off(e,t){return Gl(this,rc)[rc].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 ul([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){Gl(this,oc)[oc].add(e)}removePreProcessor(e){return Gl(this,oc)[oc].delete(e)}addPostProcessor(e){Gl(this,ac)[ac].add(e)}removePostProcessor(e){return Gl(this,ac)[ac].delete(e)}addUploader(e){Gl(this,ic)[ic].add(e)}removeUploader(e){return Gl(this,ic)[ic].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 Gl(this,uc)[uc](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Gl(this,dc)[dc](e);const{files:t}=this.getState();let n=Gl(this,pc)[pc](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}`),Gl(this,hc)[hc](),n.id}addFiles(e){Gl(this,dc)[dc]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=Gl(this,pc)[pc](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(o){o.isRestriction||r.push(o)}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&&Gl(this,hc)[hc](),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||!1,n=!t;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted));t.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},t=Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted));t.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=Gl(this,yc)[yc](t,{forceAllowNewUpload:!0});return Gl(this,wc)[wc](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=Gl(this,yc)[yc]([e],{forceAllowNewUpload:!0});return Gl(this,wc)[wc](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(),t=e.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===t.length)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter((e=>null!=e.progress.bytesTotal)),r=t.filter((e=>null==e.progress.bytesTotal));if(0===n.length){const e=100*t.length,n=r.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/e*100);return void this.setState({totalProgress:o})}let o=n.reduce(((e,t)=>e+t.progress.bytesTotal),0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach((e=>{a+=e.progress.bytesUploaded})),r.forEach((e=>{a+=i*(e.progress.percentage||0)/100}));let u=0===o?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){const e="undefined"===typeof window.navigator.onLine||window.navigator.onLine;e?(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){const t=`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(t)}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 Gl(this,tc)[tc]?Gl(this,tc)[tc][n.type].push(n):Gl(this,tc)[tc][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Gl(this,tc)[tc])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[Wl](e){return Gl(this,tc)[tc][e]}iteratePlugins(e){Object.values(Gl(this,tc)[tc]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Gl(this,tc)[tc][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r=this.getState(),o={plugins:{...r.plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Gl(this,nc)[nc](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!==typeof window&&window.removeEventListener&&(window.removeEventListener("online",Gl(this,vc)[vc]),window.removeEventListener("offline",Gl(this,vc)[vc]))}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);break}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Gl(this,wc)[wc](e):(Gl(this,bc)[bc](e),Promise.reject(new Error("Nonexistent upload")))}[ql](){return Gl(this,yc)[yc](...arguments)}addResultData(e,t){if(!Gl(this,mc)[mc](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=Gl(this,tc)[tc].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((()=>{Gl(this,sc)[sc](t),Gl(this,cc)[cc](t)})).catch((e=>{Gl(this,fc)[fc](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=Gl(this,yc)[yc](r);return Gl(this,wc)[wc](o)})).catch((e=>{Gl(this,fc)[fc](e,{showInformer:!1})})))}}function Dc(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 Ql(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a){const t=a.some((t=>t.indexOf("/")>-1?!!e.type&&Dl(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()));if(!t){const e=a.join(", ");throw new Ql(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 Ql(this.i18n("exceedsSize",{size:ml(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Ql(this.i18n("exceedsSize",{size:ml(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Ql(this.i18n("inferiorSize",{size:ml(r)}))}function Cc(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Ql(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function xc(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 Ql(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Gl(this,fc)[fc](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Sc(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Gl(this,lc)[lc](t)}));if(t.length)throw new ec(t,`${this.i18n("missingRequiredMetaField")}`)}function Ac(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 Oc(e){const{allowNewUpload:t}=this.getState();!1===t&&Gl(this,fc)[fc](new Ql(this.i18n("noMoreFilesAllowed")),{file:e})}function kc(e,t){const n=Tl(t),r=Rl(n,t),o=Fl(r).extension,i=Boolean(t.isRemote),a=Nl({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new Ql(this.i18n("noDuplicates",{fileName:r}));Gl(this,fc)[fc](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?Gl(this,fc)[fc](new Ql("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]));Gl(this,uc)[uc](l,t)}catch(f){Gl(this,fc)[fc](f,{file:l})}return l}function Bc(){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 Fc(){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}),Gl(this,fc)[fc](e,{throwErr:!1})}else Gl(this,fc)[fc](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:Gl(this,ac)[ac].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&&Gl(this,lc)[lc](e)})),"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("online",Gl(this,vc)[vc]),window.addEventListener("offline",Gl(this,vc)[vc]),setTimeout(Gl(this,vc)[vc],3e3))}function _c(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=Xl();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 Tc(e){const{currentUploads:t}=this.getState();return t[e]}function Pc(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function jc(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Gl(this,oc)[oc],...Gl(this,ic)[ic],...Gl(this,ac)[ac]];try{for(let i=r;i<o.length;i++){if(!n)break;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(a){throw this.emit("error",a),Gl(this,bc)[bc](e),a}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),Gl(this,bc)[bc](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Ec.VERSION="2.1.3";var Nc=Ec,Ic=en((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 E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var e;D.__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,_(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 C(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,D=r&&r.__k||f,C=D.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=D[d])||h&&g.key==h.key&&g.type===h.type)D[d]=void 0;else for(p=0;p<C;p++){if((h=D[p])&&g.key==h.key&&g.type===h.type){D[p]=void 0;break}h=null}_(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=x(g,s,e):s=S(e,g,h,D,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=C;d--;)null!=D[d]&&("function"==typeof n.type&&null!=D[d].__e&&D[d].__e==n.__d&&(n.__d=b(r,d+1)),N(D[d],D[d]));if(E)for(d=0;d<E.length;d++)j(E[d],E[++d],E[++d])}function x(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?x(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(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,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||k(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]||k(e,i,t[i],n[i],r)}function O(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function k(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||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(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?F:B,i):e.removeEventListener(t,i?F:B,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 B(e){this.l[e.type+!1](r.event?r.event(e):e)}function F(e){this.l[e.type+!0](r.event?r.event(e):e)}function _(e,t,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,E,D,x,S=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 S){if(w=t.props,E=(c=S.contextType)&&o[c.__c],D=c?E?E.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(w,D):(t.__c=f=new m(w,D),f.constructor=S,f.render=I),E&&E.sub(f),f.props=w,f.state||(f.state={}),f.context=D,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,S.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,D),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,D)||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,D),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=D,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)),x=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(x)?x:[x],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=P(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 P(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(A(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,C(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)&&k(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&k(e,"checked",y,p.checked,!1))}return e}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function N(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||j(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]&&N(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function I(e,t,n){return this.constructor(e,n)}function R(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],_(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),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__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(E)},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){R(t,n,e)},t.isValidElement=i,t.options=r,t.render=R,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}})),Rc=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE},Lc=function(e,t){return void 0===t&&(t=document),"string"===typeof e?t.querySelector(e):Rc(e)?e:null},Mc=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 ul([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 zc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $c=0;function Hc(e){return"__private_"+$c+++"_"+e}const{render:Uc}=Ic;function Vc(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}}var Wc=Hc("updateUI");class qc extends Mc{constructor(){super(...arguments),Object.defineProperty(this,Wc,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Lc(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return zc(this,Wc)[Wc]=Vc((e=>{this.uppy.getPlugin(this.id)&&(Uc(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Uc(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 qc)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=zc(this,Wc))[Wc])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var Gc=qc;const{debugLogger:Kc}=Hl;var Yc=Nc,Xc=Nc,Zc=Gc,Jc=Mc,Qc=Kc;Yc.Uppy=Xc,Yc.UIPlugin=Zc,Yc.BasePlugin=Jc,Yc.debugLogger=Qc;class ef 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 tf=ef,nf=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new tf(e)}))};class rf extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var of,af,uf,sf,lf,cf=rf;function ff(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var df=0;function pf(e){return"__private_"+df+++"_"+e}function hf(e){return e.replace(/\/$/,"")}async function gf(e){if(401===e.status)throw new cf;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 vf=(af=pf("getPostResponseFunc"),uf=pf("getUrl"),sf=pf("errorHandler"),lf=of=class e{constructor(e,t){Object.defineProperty(this,sf,{value:mf}),Object.defineProperty(this,uf,{value:yf}),Object.defineProperty(this,af,{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 hf(e&&e[t]?e[t]:t)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState(),n=t.companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ff(this,uf)[uf](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){const n="get";return this.preflightAndHeaders(e).then((t=>nf(ff(this,uf)[uf](e),{method:n,headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(ff(this,af)[af](t)).then(gf).catch(ff(this,sf)[sf](n,e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>nf(ff(this,uf)[uf](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(ff(this,af)[af](n)).then(gf).catch(ff(this,sf)[sf](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>nf(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(ff(this,af)[af](n)).then(gf).catch(ff(this,sf)[sf](r,e))}},of.VERSION="2.0.4",of.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${of.VERSION}`},lf);function yf(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function mf(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${ff(this,uf)[uf](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var bf=(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),wf=e=>Promise.resolve(localStorage.getItem(e)),Ef=e=>new Promise((t=>{localStorage.removeItem(e),t()})),Df={setItem:bf,getItem:wf,removeItem:Ef};const Cf=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");var xf=class extends vf{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||Cf(this.id),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,r=n?401!==e.status:e.status<400;return t.setPluginState({authenticated:r}),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||Df}};const Sf=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");var Af,Of,kf,Bf,Ff,_f=class extends vf{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||Sf(this.id),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}`)}};let Tf,Pf;function jf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nf=0;function If(e){return"__private_"+Nf+++"_"+e}var Rf=(Af=If("queued"),Of=If("emitter"),kf=If("isOpen"),Bf=If("socket"),Ff=If("handleMessage"),Tf=Symbol.for("uppy test: getSocket"),Pf=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Af,{writable:!0,value:[]}),Object.defineProperty(this,Of,{writable:!0,value:ll()}),Object.defineProperty(this,kf,{writable:!0,value:!1}),Object.defineProperty(this,Bf,{writable:!0,value:void 0}),Object.defineProperty(this,Ff,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){console.log(t)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return jf(this,kf)[kf]}[Tf](){return jf(this,Bf)[Bf]}[Pf](){return jf(this,Af)[Af]}open(){jf(this,Bf)[Bf]=new WebSocket(this.opts.target),jf(this,Bf)[Bf].onopen=()=>{jf(this,kf)[kf]=!0;while(jf(this,Af)[Af].length>0&&jf(this,kf)[kf]){const e=jf(this,Af)[Af].shift();this.send(e.action,e.payload)}},jf(this,Bf)[Bf].onclose=()=>{jf(this,kf)[kf]=!1},jf(this,Bf)[Bf].onmessage=jf(this,Ff)[Ff]}close(){var e;null==(e=jf(this,Bf)[Bf])||e.close()}send(e,t){jf(this,kf)[kf]?jf(this,Bf)[Bf].send(JSON.stringify({action:e,payload:t})):jf(this,Af)[Af].push({action:e,payload:t})}on(e,t){jf(this,Of)[Of].on(e,t)}emit(e,t){jf(this,Of)[Of].emit(e,t)}once(e,t){jf(this,Of)[Of].once(e,t)}}),Lf={RequestClient:vf,Provider:xf,SearchProvider:_f,Socket:Rf};function Mf(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}))}var zf,$f,Hf=Gi(Mf,300,{leading:!0,trailing:!0}),Uf=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i,n=t.exec(e)[1],r=/^http:\/\//i.test(e)?"ws":"wss";return`${r}://${n}`},Vf=function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}const i=Promise.all(e.map((e=>e.then(r,o))));return i.then((()=>({successful:t,failed:n})))};function Wf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qf=0;function Gf(e){return"__private_"+qf+++"_"+e}var Kf=(zf=Gf("emitter"),$f=Gf("events"),class{constructor(e){Object.defineProperty(this,zf,{writable:!0,value:void 0}),Object.defineProperty(this,$f,{writable:!0,value:[]}),Wf(this,zf)[zf]=e}on(e,t){return Wf(this,$f)[$f].push([e,t]),Wf(this,zf)[zf].on(e,t)}remove(){for(const[e,t]of Wf(this,$f)[$f].splice(0))Wf(this,zf)[zf].off(e,t)}});function Yf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xf=0;function Zf(e){return"__private_"+Xf+++"_"+e}var Jf=Zf("aliveTimer"),Qf=Zf("isDone"),ed=Zf("onTimedOut"),td=Zf("timeout");class nd{constructor(e,t){Object.defineProperty(this,Jf,{writable:!0,value:void 0}),Object.defineProperty(this,Qf,{writable:!0,value:!1}),Object.defineProperty(this,ed,{writable:!0,value:void 0}),Object.defineProperty(this,td,{writable:!0,value:void 0}),Yf(this,td)[td]=e,Yf(this,ed)[ed]=t}progress(){Yf(this,Qf)[Qf]||Yf(this,td)[td]>0&&(clearTimeout(Yf(this,Jf)[Jf]),Yf(this,Jf)[Jf]=setTimeout(Yf(this,ed)[ed],Yf(this,td)[td]))}done(){Yf(this,Qf)[Qf]||(clearTimeout(Yf(this,Jf)[Jf]),Yf(this,Jf)[Jf]=null,Yf(this,Qf)[Qf]=!0)}}var rd=nd;function od(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var id=0;function ad(e){return"__private_"+id+++"_"+e}function ud(){return new Error("Cancelled")}var sd=ad("activeRequests"),ld=ad("queuedHandlers"),cd=ad("call"),fd=ad("queueNext"),dd=ad("next"),pd=ad("queue"),hd=ad("dequeue");class gd{constructor(e){Object.defineProperty(this,hd,{value:wd}),Object.defineProperty(this,pd,{value:bd}),Object.defineProperty(this,dd,{value:md}),Object.defineProperty(this,fd,{value:yd}),Object.defineProperty(this,cd,{value:vd}),Object.defineProperty(this,sd,{writable:!0,value:0}),Object.defineProperty(this,ld,{writable:!0,value:[]}),this.limit="number"!==typeof e||0===e?1/0:e}run(e,t){return od(this,sd)[sd]<this.limit?od(this,cd)[cd](e):od(this,pd)[pd](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(u){n=Promise.reject(u)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=ud()}}),t)}));return u.abort=()=>{a.abort()},u}}}function vd(e){od(this,sd)[sd]+=1;let t,n=!1;try{t=e()}catch(r){throw od(this,sd)[sd]-=1,r}return{abort:()=>{n||(n=!0,od(this,sd)[sd]-=1,t(),od(this,fd)[fd]())},done:()=>{n||(n=!0,od(this,sd)[sd]-=1,od(this,fd)[fd]())}}}function yd(){queueMicrotask((()=>od(this,dd)[dd]()))}function md(){if(od(this,sd)[sd]>=this.limit)return;if(0===od(this,ld)[ld].length)return;const e=od(this,ld)[ld].shift(),t=od(this,cd)[cd](e.fn);e.abort=t.abort,e.done=t.done}function bd(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{od(this,hd)[hd](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=od(this,ld)[ld].findIndex((e=>n.priority>e.priority));return-1===r?od(this,ld)[ld].push(n):od(this,ld)[ld].splice(r,0,n),n}function wd(e){const t=od(this,ld)[ld].indexOf(e);-1!==t&&od(this,ld)[ld].splice(t,1)}var Ed={RateLimitedQueue:gd,internalRateLimitedQueue:Symbol("__queue")};function Dd(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}var Cd,xd,Sd=Dd,Ad={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Od}=Vl,{Provider:kd,RequestClient:Bd,Socket:Fd}=Lf,{RateLimitedQueue:_d,internalRateLimitedQueue:Td}=Ed;function Pd(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})),Sd(e)?(n=new tf(n,e),n):(n.request=e,n)}function jd(e){const t=e.data.slice(0,e.data.size,e.meta.type);return t}var Nd=(xd=Cd=class extends Mc{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Ad;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(r){e.log(r)}return n},getResponseError(e,t){let n=new Error("Upload error");return Sd(t)&&(n=new tf(n,t)),n},validateStatus(e){return e>=200&&e<300}};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Td in this.opts?this.requests=this.opts[Td]:this.requests=new _d(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){const r=Array.isArray(n.metaFields)?n.metaFields:Object.keys(t);r.forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=jd(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=jd(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 Kf(this.uppy);const a=new rd(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=Od();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=Pd(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=Pd(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={},i=Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta);i.forEach((t=>{o[t]=e.meta[t]}));const a=e.remote.providerOptions.provider?kd:Bd,u=new a(this.uppy,e.remote.providerOptions);u.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=Uf(e.remote.companionUrl),u=new Fd({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Kf(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=>Hf(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 rd(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){const t=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)}));return Vf(t)}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[Td]||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){const e=t.some((e=>e.isRemote));if(e)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)}},Cd.VERSION="2.0.6",xd),Id="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Rd(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ld,Md,zd=function(e){return e&&e.Math==Math&&e},$d=zd("object"==typeof globalThis&&globalThis)||zd("object"==typeof window&&window)||zd("object"==typeof self&&self)||zd("object"==typeof Id&&Id)||function(){return this}()||Function("return this")(),Hd=Object.defineProperty,Ud=function(e,t){try{Hd($d,e,{value:t,configurable:!0,writable:!0})}catch(p){$d[e]=t}return t},Vd=$d["__core-js_shared__"]||Ud("__core-js_shared__",{}),Wd=Rd((function(e){(e.exports=function(e,t){return Vd[e]||(Vd[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),qd=Function.prototype,Gd=qd.bind,Kd=qd.call,Yd=Gd&&Gd.bind(Kd),Xd=Gd?function(e){return e&&Yd(Kd,e)}:function(e){return e&&function(){return Kd.apply(e,arguments)}},Zd=$d.TypeError,Jd=function(e){if(null==e)throw Zd("Can't call method on "+e);return e},Qd=$d.Object,ep=function(e){return Qd(Jd(e))},tp=Xd({}.hasOwnProperty),np=Object.hasOwn||function(e,t){return tp(ep(e),t)},rp=0,op=Math.random(),ip=Xd(1..toString),ap=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ip(++rp+op,36)},up=function(e){return"function"==typeof e},sp=function(e){return up(e)?e:void 0},lp=function(e,t){return arguments.length<2?sp($d[e]):$d[e]&&$d[e][t]},cp=lp("navigator","userAgent")||"",fp=$d.process,dp=$d.Deno,pp=fp&&fp.versions||dp&&dp.version,hp=pp&&pp.v8;hp&&(Md=(Ld=hp.split("."))[0]>0&&Ld[0]<4?1:+(Ld[0]+Ld[1])),!Md&&cp&&(!(Ld=cp.match(/Edge\/(\d+)/))||Ld[1]>=74)&&(Ld=cp.match(/Chrome\/(\d+)/))&&(Md=+Ld[1]);var gp=Md,vp=function(e){try{return!!e()}catch(e){return!0}},yp=!!Object.getOwnPropertySymbols&&!vp((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gp&&gp<41})),mp=yp&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bp=Wd("wks"),wp=$d.Symbol,Ep=wp&&wp.for,Dp=mp?wp:wp&&wp.withoutSetter||ap,Cp=function(e){if(!np(bp,e)||!yp&&"string"!=typeof bp[e]){var t="Symbol."+e;yp&&np(wp,e)?bp[e]=wp[e]:bp[e]=mp&&Ep?Ep(t):Dp(t)}return bp[e]},xp={};xp[Cp("toStringTag")]="z";var Sp="[object z]"===String(xp),Ap=!vp((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Op=function(e){return"object"==typeof e?null!==e:up(e)},kp=$d.document,Bp=Op(kp)&&Op(kp.createElement),Fp=function(e){return Bp?kp.createElement(e):{}},_p=!Ap&&!vp((function(){return 7!=Object.defineProperty(Fp("div"),"a",{get:function(){return 7}}).a})),Tp=$d.String,Pp=$d.TypeError,jp=function(e){if(Op(e))return e;throw Pp(Tp(e)+" is not an object")},Np=Function.prototype.call,Ip=Np.bind?Np.bind(Np):function(){return Np.apply(Np,arguments)},Rp=Xd({}.isPrototypeOf),Lp=$d.Object,Mp=mp?function(e){return"symbol"==typeof e}:function(e){var t=lp("Symbol");return up(t)&&Rp(t.prototype,Lp(e))},zp=$d.String,$p=function(e){try{return zp(e)}catch(e){return"Object"}},Hp=$d.TypeError,Up=function(e){if(up(e))return e;throw Hp($p(e)+" is not a function")},Vp=function(e,t){var n=e[t];return null==n?void 0:Up(n)},Wp=$d.TypeError,qp=$d.TypeError,Gp=Cp("toPrimitive"),Kp=function(e,t){if(!Op(e)||Mp(e))return e;var n,r=Vp(e,Gp);if(r){if(void 0===t&&(t="default"),n=Ip(r,e,t),!Op(n)||Mp(n))return n;throw qp("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&up(n=e.toString)&&!Op(r=Ip(n,e)))return r;if(up(n=e.valueOf)&&!Op(r=Ip(n,e)))return r;if("string"!==t&&up(n=e.toString)&&!Op(r=Ip(n,e)))return r;throw Wp("Can't convert object to primitive value")}(e,t)},Yp=function(e){var t=Kp(e,"string");return Mp(t)?t:t+""},Xp=$d.TypeError,Zp=Object.defineProperty,Jp={f:Ap?Zp:function(e,t,n){if(jp(e),t=Yp(t),jp(n),_p)try{return Zp(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Xp("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Qp=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},eh=Ap?function(e,t,n){return Jp.f(e,t,Qp(1,n))}:function(e,t,n){return e[t]=n,e},th=Xd(Function.toString);up(Vd.inspectSource)||(Vd.inspectSource=function(e){return th(e)});var nh,rh,oh,ih=Vd.inspectSource,ah=$d.WeakMap,uh=up(ah)&&/native code/.test(ih(ah)),sh=Wd("keys"),lh=function(e){return sh[e]||(sh[e]=ap(e))},ch={},fh=$d.TypeError,dh=$d.WeakMap;if(uh||Vd.state){var ph=Vd.state||(Vd.state=new dh),hh=Xd(ph.get),gh=Xd(ph.has),vh=Xd(ph.set);nh=function(e,t){if(gh(ph,e))throw new fh("Object already initialized");return t.facade=e,vh(ph,e,t),t},rh=function(e){return hh(ph,e)||{}},oh=function(e){return gh(ph,e)}}else{var yh=lh("state");ch[yh]=!0,nh=function(e,t){if(np(e,yh))throw new fh("Object already initialized");return t.facade=e,eh(e,yh,t),t},rh=function(e){return np(e,yh)?e[yh]:{}},oh=function(e){return np(e,yh)}}var mh={set:nh,get:rh,has:oh,enforce:function(e){return oh(e)?rh(e):nh(e,{})},getterFor:function(e){return function(t){var n;if(!Op(t)||(n=rh(t)).type!==e)throw fh("Incompatible receiver, "+e+" required");return n}}},bh=Function.prototype,wh=Ap&&Object.getOwnPropertyDescriptor,Eh=np(bh,"name"),Dh={EXISTS:Eh,PROPER:Eh&&"something"===function(){}.name,CONFIGURABLE:Eh&&(!Ap||Ap&&wh(bh,"name").configurable)},Ch=Rd((function(e){var t=Dh.CONFIGURABLE,n=mh.get,r=mh.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;up(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!np(i,"name")||t&&i.name!==f)&&eh(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==$d?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:eh(e,n,i)):l?e[n]=i:Ud(n,i)})(Function.prototype,"toString",(function(){return up(this)&&n(this).source||ih(this)}))})),xh=Xd({}.toString),Sh=Xd("".slice),Ah=function(e){return Sh(xh(e),8,-1)},Oh=Cp("toStringTag"),kh=$d.Object,Bh="Arguments"==Ah(function(){return arguments}()),Fh=Sp?Ah: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=kh(e),Oh))?n:Bh?Ah(t):"Object"==(r=Ah(t))&&up(t.callee)?"Arguments":r},_h=Sp?{}.toString:function(){return"[object "+Fh(this)+"]"};Sp||Ch(Object.prototype,"toString",_h,{unsafe:!0});var Th={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},Ph=Fp("span").classList,jh=Ph&&Ph.constructor&&Ph.constructor.prototype,Nh=jh===Object.prototype?void 0:jh,Ih=Xd(Xd.bind),Rh=function(e,t){return Up(e),void 0===t?e:Ih?Ih(e,t):function(){return e.apply(t,arguments)}},Lh=$d.Object,Mh=Xd("".split),zh=vp((function(){return!Lh("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ah(e)?Mh(e,""):Lh(e)}:Lh,$h=Math.ceil,Hh=Math.floor,Uh=function(e){var t=+e;return t!=t||0===t?0:(t>0?Hh:$h)(t)},Vh=Math.min,Wh=function(e){return e>0?Vh(Uh(e),9007199254740991):0},qh=function(e){return Wh(e.length)},Gh=Array.isArray||function(e){return"Array"==Ah(e)},Kh=function(){},Yh=[],Xh=lp("Reflect","construct"),Zh=/^\s*(?:class|function)\b/,Jh=Xd(Zh.exec),Qh=!Zh.exec(Kh),eg=function(e){if(!up(e))return!1;try{return Xh(Kh,Yh,e),!0}catch(e){return!1}},tg=!Xh||vp((function(){var e;return eg(eg.call)||!eg(Object)||!eg((function(){e=!0}))||e}))?function(e){if(!up(e))return!1;switch(Fh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Qh||!!Jh(Zh,ih(e))}:eg,ng=Cp("species"),rg=$d.Array,og=function(e,t){return new(function(e){var t;return Gh(e)&&(t=e.constructor,(tg(t)&&(t===rg||Gh(t.prototype))||Op(t)&&null===(t=t[ng]))&&(t=void 0)),void 0===t?rg:t}(e))(0===t?0:t)},ig=Xd([].push),ag=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=ep(s),g=zh(h),v=Rh(l,c),y=qh(g),m=0,b=f||og,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:ig(w,d)}else switch(e){case 4:return!1;case 7:ig(w,d)}return i?-1:r||o?o:w}},ug={forEach:ag(0),map:ag(1),filter:ag(2),some:ag(3),every:ag(4),find:ag(5),findIndex:ag(6),filterReject:ag(7)},sg=function(e,t){var n=[][e];return!!n&&vp((function(){n.call(null,t||function(){throw 1},1)}))},lg=ug.forEach,cg=sg("forEach")?[].forEach:function(e){return lg(this,e,arguments.length>1?arguments[1]:void 0)},fg=function(e){if(e&&e.forEach!==cg)try{eh(e,"forEach",cg)}catch(h){e.forEach=cg}};for(var dg in Th)Th[dg]&&fg($d[dg]&&$d[dg].prototype);fg(Nh);var pg={}.propertyIsEnumerable,hg=Object.getOwnPropertyDescriptor,gg=hg&&!pg.call({1:2},1)?function(e){var t=hg(this,e);return!!t&&t.enumerable}:pg,vg={f:gg},yg=function(e){return zh(Jd(e))},mg=Object.getOwnPropertyDescriptor,bg={f:Ap?mg:function(e,t){if(e=yg(e),t=Yp(t),_p)try{return mg(e,t)}catch(e){}if(np(e,t))return Qp(!Ip(vg.f,e,t),e[t])}},wg=Math.max,Eg=Math.min,Dg=function(e,t){var n=Uh(e);return n<0?wg(n+t,0):Eg(n,t)},Cg=function(e){return function(t,n,r){var o,i=yg(t),a=qh(i),u=Dg(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}},xg={includes:Cg(!0),indexOf:Cg(!1)},Sg=xg.indexOf,Ag=Xd([].push),Og=function(e,t){var n,r=yg(e),o=0,i=[];for(n in r)!np(ch,n)&&np(r,n)&&Ag(i,n);for(;t.length>o;)np(r,n=t[o++])&&(~Sg(i,n)||Ag(i,n));return i},kg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bg=kg.concat("length","prototype"),Fg={f:Object.getOwnPropertyNames||function(e){return Og(e,Bg)}},_g={f:Object.getOwnPropertySymbols},Tg=Xd([].concat),Pg=lp("Reflect","ownKeys")||function(e){var t=Fg.f(jp(e)),n=_g.f;return n?Tg(t,n(e)):t},jg=function(e,t){for(var n=Pg(t),r=Jp.f,o=bg.f,i=0;i<n.length;i++){var a=n[i];np(e,a)||r(e,a,o(t,a))}},Ng=/#|\.prototype\./,Ig=function(e,t){var n=Lg[Rg(e)];return n==zg||n!=Mg&&(up(t)?vp(t):!!t)},Rg=Ig.normalize=function(e){return String(e).replace(Ng,".").toLowerCase()},Lg=Ig.data={},Mg=Ig.NATIVE="N",zg=Ig.POLYFILL="P",$g=Ig,Hg=bg.f,Ug=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?$d:l?$d[u]||Ud(u,{}):($d[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Hg(n,r))&&a.value:n[r],!$g(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jg(i,o)}(e.sham||o&&o.sham)&&eh(i,"sham",!0),Ch(n,r,i,e)}},Vg=Cp("species"),Wg=function(e){return gp>=51||!vp((function(){var t=[];return(t.constructor={})[Vg]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},qg=ug.map,Gg=Wg("map");Ug({target:"Array",proto:!0,forced:!Gg},{map:function(e){return qg(this,e,arguments.length>1?arguments[1]:void 0)}});var Kg=function(e,t,n){var r,o;jp(e);try{if(!(r=Vp(e,"return"))){if("throw"===t)throw n;return n}r=Ip(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return jp(r),n},Yg=function(e,t,n,r){try{return r?t(jp(n)[0],n[1]):t(n)}catch(t){Kg(e,"throw",t)}},Xg={},Zg=Cp("iterator"),Jg=Array.prototype,Qg=function(e){return void 0!==e&&(Xg.Array===e||Jg[Zg]===e)},ev=function(e,t,n){var r=Yp(t);r in e?Jp.f(e,r,Qp(0,n)):e[r]=n},tv=Cp("iterator"),nv=function(e){if(null!=e)return Vp(e,tv)||Vp(e,"@@iterator")||Xg[Fh(e)]},rv=$d.TypeError,ov=function(e,t){var n=arguments.length<2?nv(e):t;if(Up(n))return jp(Ip(n,e));throw rv($p(e)+" is not iterable")},iv=$d.Array,av=Cp("iterator"),uv=!1;try{var sv=0,lv={next:function(){return{done:!!sv++}},return:function(){uv=!0}};lv[av]=function(){return this},Array.from(lv,(function(){throw 2}))}catch(lle){}var cv=function(e,t){if(!t&&!uv)return!1;var n=!1;try{var r={};r[av]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},fv=!cv((function(e){Array.from(e)}));Ug({target:"Array",stat:!0,forced:fv},{from:function(e){var t=ep(e),n=tg(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Rh(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=nv(t),p=0;if(!d||this==iv&&Qg(d))for(a=qh(t),u=n?new this(a):iv(a);a>p;p++)f=i?o(t[p],p):t[p],ev(u,p,f);else for(c=(l=ov(t,d)).next,u=n?new this:[];!(s=Ip(c,l)).done;p++)f=i?Yg(l,o,[s.value,p],!0):s.value,ev(u,p,f);return u.length=p,u}});var dv,pv=$d.String,hv=function(e){if("Symbol"===Fh(e))throw TypeError("Cannot convert a Symbol value to a string");return pv(e)},gv=Xd("".charAt),vv=Xd("".charCodeAt),yv=Xd("".slice),mv=function(e){return function(t,n){var r,o,i=hv(Jd(t)),a=Uh(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=vv(i,a))<55296||r>56319||a+1===u||(o=vv(i,a+1))<56320||o>57343?e?gv(i,a):r:e?yv(i,a,a+2):o-56320+(r-55296<<10)+65536}},bv={codeAt:mv(!1),charAt:mv(!0)},wv=Object.keys||function(e){return Og(e,kg)},Ev=Ap?Object.defineProperties:function(e,t){jp(e);for(var n,r=yg(t),o=wv(t),i=o.length,a=0;i>a;)Jp.f(e,n=o[a++],r[n]);return e},Dv=lp("document","documentElement"),Cv=lh("IE_PROTO"),xv=function(){},Sv=function(e){return"<script>"+e+"<\/script>"},Av=function(e){e.write(Sv("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ov=function(){try{dv=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ov="undefined"!=typeof document?document.domain&&dv?Av(dv):((t=Fp("iframe")).style.display="none",Dv.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Sv("document.F=Object")),e.close(),e.F):Av(dv);for(var n=kg.length;n--;)delete Ov.prototype[kg[n]];return Ov()};ch[Cv]=!0;var kv,Bv,Fv,_v=Object.create||function(e,t){var n;return null!==e?(xv.prototype=jp(e),n=new xv,xv.prototype=null,n[Cv]=e):n=Ov(),void 0===t?n:Ev(n,t)},Tv=!vp((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Pv=lh("IE_PROTO"),jv=$d.Object,Nv=jv.prototype,Iv=Tv?jv.getPrototypeOf:function(e){var t=ep(e);if(np(t,Pv))return t[Pv];var n=t.constructor;return up(n)&&t instanceof n?n.prototype:t instanceof jv?Nv:null},Rv=Cp("iterator"),Lv=!1;[].keys&&("next"in(Fv=[].keys())?(Bv=Iv(Iv(Fv)))!==Object.prototype&&(kv=Bv):Lv=!0);var Mv=null==kv||vp((function(){var e={};return kv[Rv].call(e)!==e}));Mv&&(kv={}),up(kv[Rv])||Ch(kv,Rv,(function(){return this}));var zv={IteratorPrototype:kv,BUGGY_SAFARI_ITERATORS:Lv},$v=Jp.f,Hv=Cp("toStringTag"),Uv=function(e,t,n){e&&!np(e=n?e:e.prototype,Hv)&&$v(e,Hv,{configurable:!0,value:t})},Vv=zv.IteratorPrototype,Wv=function(){return this},qv=$d.String,Gv=$d.TypeError,Kv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Xd(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return jp(n),function(e){if("object"==typeof e||up(e))return e;throw Gv("Can't set "+qv(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Yv=Dh.PROPER,Xv=Dh.CONFIGURABLE,Zv=zv.IteratorPrototype,Jv=zv.BUGGY_SAFARI_ITERATORS,Qv=Cp("iterator"),ey=function(){return this},ty=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=_v(Vv,{next:Qp(+!r,n)}),Uv(e,o,!1),Xg[o]=Wv}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Jv&&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[Qv]||p["@@iterator"]||o&&p[o],g=!Jv&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Iv(v.call(new e)))!==Object.prototype&&u.next&&(Iv(u)!==Zv&&(Kv?Kv(u,Zv):up(u[Qv])||Ch(u,Qv,ey)),Uv(u,f,!0)),Yv&&"values"==o&&h&&"values"!==h.name&&(Xv?eh(p,"name","values"):(d=!0,g=function(){return Ip(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Jv||d||!(l in p))&&Ch(p,l,s[l]);else Ug({target:t,proto:!0,forced:Jv||d},s);return p[Qv]!==g&&Ch(p,Qv,g,{name:o}),Xg[t]=g,s},ny=bv.charAt,ry=mh.set,oy=mh.getterFor("String Iterator");ty(String,"String",(function(e){ry(this,{type:"String Iterator",string:hv(e),index:0})}),(function(){var e,t=oy(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ny(n,r),t.index+=e.length,{value:e,done:!1})}));var iy=vp((function(){wv(1)}));
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function ay(e){return"[object Object]"===Object.prototype.toString.call(e)}Ug({target:"Object",stat:!0,forced:iy},{keys:function(e){return wv(ep(e))}});var uy={isHistory(e){return!1!==ay(t=e)&&(void 0===(n=t.constructor)||!1!==ay(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||vt.isOperationList(e.redos[0]))&&(0===e.undos.length||vt.isOperationList(e.undos[0]));var t,n,r}},sy=new WeakMap,ly=new WeakMap,cy={isHistoryEditor:e=>uy.isHistory(e.history)&&st.isEditor(e),isMerging:e=>ly.get(e),isSaving:e=>sy.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=cy.isMerging(e);ly.set(e,!1),t(),ly.set(e,n)},withoutSaving(e,t){var n=cy.isSaving(e);sy.set(e,!1),t(),sy.set(e,n)}},fy=(e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!yt.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!yt.equals(e.path,t.path)),dy=(e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties,py=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),hy=e=>"set_selection"!==e.type,gy=function(){var e=jp(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},vy=Dh.PROPER,yy=RegExp.prototype,my=yy.toString,by=Xd(gy),wy=vp((function(){return"/a/b"!=my.call({source:"a",flags:"b"})})),Ey=vy&&"toString"!=my.name;(wy||Ey)&&Ch(RegExp.prototype,"toString",(function(){var e=jp(this),t=hv(e.source),n=e.flags;return"/"+t+"/"+hv(void 0===n&&Rp(yy,e)&&!("flags"in yy)?by(e):n)}),{unsafe:!0});var Dy=Cp("unscopables"),Cy=Array.prototype;null==Cy[Dy]&&Jp.f(Cy,Dy,{configurable:!0,value:_v(null)});var xy=function(e){Cy[Dy][e]=!0},Sy=xg.includes;Ug({target:"Array",proto:!0},{includes:function(e){return Sy(this,e,arguments.length>1?arguments[1]:void 0)}}),xy("includes");var Ay=Cp("match"),Oy=function(e){var t;return Op(e)&&(void 0!==(t=e[Ay])?!!t:"RegExp"==Ah(e))},ky=$d.TypeError,By=function(e){if(Oy(e))throw ky("The method doesn't accept regular expressions");return e},Fy=Cp("match"),_y=function(e){var t=/./;try{"/./"[e](t)}catch(p){try{return t[Fy]=!1,"/./"[e](t)}catch(e){}}return!1},Ty=Xd("".indexOf);Ug({target:"String",proto:!0,forced:!_y("includes")},{includes:function(e){return!!~Ty(hv(Jd(this)),hv(By(e)),arguments.length>1?arguments[1]:void 0)}});var Py,jy=/"/g,Ny=Xd("".replace);Ug({target:"String",proto:!0,forced:(Py="anchor",vp((function(){var e=""[Py]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=hv(Jd(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+Ny(hv(r),jy,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var Iy,Ry=bg.f,Ly=Xd("".endsWith),My=Xd("".slice),zy=Math.min,$y=_y("endsWith"),Hy=!($y||(Iy=Ry(String.prototype,"endsWith"),!Iy||Iy.writable));Ug({target:"String",proto:!0,forced:!Hy&&!$y},{endsWith:function(e){var t=hv(Jd(this));By(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:zy(Wh(n),r),i=hv(e);return Ly?Ly(t,i,o):My(t,o-i.length,o)===i}});var Uy=Xd([].join),Vy=zh!=Object,Wy=sg("join",",");Ug({target:"Array",proto:!0,forced:Vy||!Wy},{join:function(e){return Uy(yg(this),void 0===e?",":e)}});var qy=$d.RegExp,Gy=vp((function(){var e=qy("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ky=Gy||vp((function(){return!qy("a","y").sticky})),Yy={BROKEN_CARET:Gy||vp((function(){var e=qy("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ky,UNSUPPORTED_Y:Gy},Xy=$d.RegExp,Zy=vp((function(){var e=Xy(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Jy=$d.RegExp,Qy=vp((function(){var e=Jy("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),em=mh.get,tm=Wd("native-string-replace",String.prototype.replace),nm=RegExp.prototype.exec,rm=nm,om=Xd("".charAt),im=Xd("".indexOf),am=Xd("".replace),um=Xd("".slice),sm=function(){var e=/a/,t=/b*/g;return Ip(nm,e,"a"),Ip(nm,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),lm=Yy.BROKEN_CARET,cm=void 0!==/()??/.exec("")[1];(sm||cm||lm||Zy||Qy)&&(rm=function(e){var t,n,r,o,i,a,u,s=this,l=em(s),c=hv(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ip(rm,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=lm&&s.sticky,h=Ip(gy,s),g=s.source,v=0,y=c;if(p&&(h=am(h,"y",""),-1===im(h,"g")&&(h+="g"),y=um(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==om(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),cm&&(n=new RegExp("^"+g+"$(?!\\s)",h)),sm&&(r=s.lastIndex),o=Ip(nm,p?n:s,y),p?o?(o.input=um(o.input,v),o[0]=um(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:sm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),cm&&o&&o.length>1&&Ip(tm,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=_v(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var fm=rm;Ug({target:"RegExp",proto:!0,forced:/./.exec!==fm},{exec:fm});var dm=Function.prototype,pm=dm.apply,hm=dm.bind,gm=dm.call,vm="object"==typeof Reflect&&Reflect.apply||(hm?gm.bind(pm):function(){return gm.apply(pm,arguments)}),ym=Cp("species"),mm=RegExp.prototype,bm=function(e,t,n,r){var o=Cp(e),i=!vp((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!vp((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ym]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Xd(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Xd(e),s=t.exec;return s===fm||s===mm.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Ch(String.prototype,e,s[0]),Ch(mm,o,s[1])}r&&eh(mm[o],"sham",!0)},wm=bv.charAt,Em=function(e,t,n){return t+(n?wm(e,t).length:1)},Dm=Math.floor,Cm=Xd("".charAt),xm=Xd("".replace),Sm=Xd("".slice),Am=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Om=/\$([$&'`]|\d{1,2})/g,km=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Om;return void 0!==o&&(o=ep(o),s=Am),xm(i,s,(function(i,s){var l;switch(Cm(s,0)){case"$":return"$";case"&":return e;case"`":return Sm(t,0,n);case"'":return Sm(t,a);case"<":l=o[Sm(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Dm(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Cm(s,1):r[f-1]+Cm(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Bm=$d.TypeError,Fm=function(e,t){var n=e.exec;if(up(n)){var r=Ip(n,e,t);return null!==r&&jp(r),r}if("RegExp"===Ah(e))return Ip(fm,e,t);throw Bm("RegExp#exec called on incompatible receiver")},_m=Cp("replace"),Tm=Math.max,Pm=Math.min,jm=Xd([].concat),Nm=Xd([].push),Im=Xd("".indexOf),Rm=Xd("".slice),Lm="$0"==="a".replace(/./,"$0"),Mm=!!/./[_m]&&""===/./[_m]("a","$0");bm("replace",(function(e,t,n){var r=Mm?"$":"$0";return[function(e,n){var r=Jd(this),o=null==e?void 0:Vp(e,_m);return o?Ip(o,e,r,n):Ip(t,hv(r),e,n)},function(e,o){var i=jp(this),a=hv(e);if("string"==typeof o&&-1===Im(o,r)&&-1===Im(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=up(o);s||(o=hv(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Fm(i,a);if(null===d)break;if(Nm(f,d),!l)break;""===hv(d[0])&&(i.lastIndex=Em(a,Wh(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=hv((d=f[v])[0]),m=Tm(Pm(Uh(d.index),a.length),0),b=[],w=1;w<d.length;w++)Nm(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=jm([y],b,m,a);void 0!==E&&Nm(D,E);var C=hv(vm(o,void 0,D))}else C=km(y,a,m,b,E,o);m>=g&&(h+=Rm(a,g,m)+C,g=m+y.length)}return h+Rm(a,g)}]}),!!vp((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Lm||Mm);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var zm=function(e,t){return zm=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])},zm(e,t)};function $m(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}zm(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Hm=function(){return Hm=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},Hm.apply(this,arguments)};function Um(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 Vm(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 Wm(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var qm=0,Gm=function(){this.id=""+qm++},Km=mh.set,Ym=mh.getterFor("Array Iterator"),Xm=ty(Array,"Array",(function(e,t){Km(this,{type:"Array Iterator",target:yg(e),index:0,kind:t})}),(function(){var e=Ym(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");Xg.Arguments=Xg.Array,xy("keys"),xy("values"),xy("entries");var Zm=function(e,t,n){for(var r in t)Ch(e,r,t[r],n);return e},Jm=$d.Array,Qm=Math.max,eb=function(e,t,n){for(var r=qh(e),o=Dg(t,r),i=Dg(void 0===n?r:n,r),a=Jm(Qm(i-o,0)),u=0;o<i;o++,u++)ev(a,u,e[o]);return a.length=u,a},tb=Fg.f,nb="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rb={f:function(e){return nb&&"Window"==Ah(e)?function(e){try{return tb(e)}catch(e){return eb(nb)}}(e):tb(yg(e))}},ob=vp((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ib=Object.isExtensible,ab=vp((function(){ib(1)}))||ob?function(e){return!!Op(e)&&(!ob||"ArrayBuffer"!=Ah(e))&&(!ib||ib(e))}:ib,ub=!vp((function(){return Object.isExtensible(Object.preventExtensions({}))})),sb=Rd((function(e){var t=Jp.f,n=!1,r=ap("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=Fg.f,t=Xd([].splice),o={};o[r]=1,e(o).length&&(Fg.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},Ug({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rb.f}))},fastKey:function(e,t){if(!Op(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!np(e,r)){if(!ab(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!np(e,r)){if(!ab(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ub&&n&&ab(e)&&!np(e,r)&&i(e),e}};ch[r]=!0})),lb=$d.TypeError,cb=function(e,t){this.stopped=e,this.result=t},fb=cb.prototype,db=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=Rh(t,c),g=function(e){return r&&Kg(r,"normal",e),new cb(!0,e)},v=function(e){return f?(jp(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=nv(e)))throw lb($p(e)+" is not iterable");if(Qg(o)){for(i=0,a=qh(e);a>i;i++)if((u=v(e[i]))&&Rp(fb,u))return u;return new cb(!1)}r=ov(e,o)}for(s=r.next;!(l=Ip(s,r)).done;){try{u=v(l.value)}catch(e){Kg(r,"throw",e)}if("object"==typeof u&&u&&Rp(fb,u))return u}return new cb(!1)},pb=$d.TypeError,hb=function(e,t){if(Rp(t,e))return e;throw pb("Incorrect invocation")},gb=function(e,t,n){var r,o;return Kv&&up(r=t.constructor)&&r!==n&&Op(o=r.prototype)&&o!==n.prototype&&Kv(e,o),e},vb=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=$d[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Xd(u[e]);Ch(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Op(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Op(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Op(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if($g(e,!up(a)||!(o||u.forEach&&!vp((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),sb.enable();else if($g(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=vp((function(){f.has(1)})),h=cv((function(e){new a(e)})),g=!o&&vp((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){hb(e,u);var n=gb(new a,e,s);return null!=t&&db(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,Ug({global:!0,forced:s!=a},l),Uv(s,e),o||n.setStrong(s,e,r),s},yb=sb.getWeakData,mb=mh.set,bb=mh.getterFor,wb=ug.find,Eb=ug.findIndex,Db=Xd([].splice),Cb=0,xb=function(e){return e.frozen||(e.frozen=new Sb)},Sb=function(){this.entries=[]},Ab=function(e,t){return wb(e.entries,(function(e){return e[0]===t}))};Sb.prototype={get:function(e){var t=Ab(this,e);if(t)return t[1]},has:function(e){return!!Ab(this,e)},set:function(e,t){var n=Ab(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Eb(this.entries,(function(t){return t[0]===e}));return~t&&Db(this.entries,t,1),!!~t}};var Ob,kb={getConstructor:function(e,t,n,r){var o=e((function(e,o){hb(e,i),mb(e,{type:t,id:Cb++,frozen:void 0}),null!=o&&db(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=bb(t),u=function(e,t,n){var r=a(e),o=yb(jp(t),!0);return!0===o?xb(r).set(t,n):o[r.id]=n,e};return Zm(i,{delete:function(e){var t=a(this);if(!Op(e))return!1;var n=yb(e);return!0===n?xb(t).delete(e):n&&np(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Op(e))return!1;var n=yb(e);return!0===n?xb(t).has(e):n&&np(n,t.id)}}),Zm(i,n?{get:function(e){var t=a(this);if(Op(e)){var n=yb(e);return!0===n?xb(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}},Bb=mh.enforce,Fb=!$d.ActiveXObject&&"ActiveXObject"in $d,_b=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Tb=vb("WeakMap",_b,kb);if(uh&&Fb){Ob=kb.getConstructor(_b,"WeakMap",!0),sb.enable();var Pb=Tb.prototype,jb=Xd(Pb.delete),Nb=Xd(Pb.has),Ib=Xd(Pb.get),Rb=Xd(Pb.set);Zm(Pb,{delete:function(e){if(Op(e)&&!ab(e)){var t=Bb(this);return t.frozen||(t.frozen=new Ob),jb(this,e)||t.frozen.delete(e)}return jb(this,e)},has:function(e){if(Op(e)&&!ab(e)){var t=Bb(this);return t.frozen||(t.frozen=new Ob),Nb(this,e)||t.frozen.has(e)}return Nb(this,e)},get:function(e){if(Op(e)&&!ab(e)){var t=Bb(this);return t.frozen||(t.frozen=new Ob),Nb(this,e)?Ib(this,e):t.frozen.get(e)}return Ib(this,e)},set:function(e,t){if(Op(e)&&!ab(e)){var n=Bb(this);n.frozen||(n.frozen=new Ob),Nb(this,e)?Rb(this,e,t):n.frozen.set(e,t)}else Rb(this,e,t);return this}})}var Lb=Cp("iterator"),Mb=Cp("toStringTag"),zb=Xm.values,$b=function(e,t){if(e){if(e[Lb]!==zb)try{eh(e,Lb,zb)}catch(t){e[Lb]=zb}if(e[Mb]||eh(e,Mb,t),Th[t])for(var n in Xm)if(e[n]!==Xm[n])try{eh(e,n,Xm[n])}catch(t){e[n]=Xm[n]}}};for(var Hb in Th)$b($d[Hb]&&$d[Hb].prototype,Hb);$b(Nh,"DOMTokenList");var Ub=new WeakMap,Vb=new WeakMap,Wb=new WeakMap,qb=new WeakMap,Gb=new WeakMap,Kb=new WeakMap,Yb=new WeakMap,Xb=new WeakMap,Zb=new WeakMap,Jb=new WeakMap,Qb=new WeakMap,ew=new WeakMap,tw=new WeakMap,nw=new WeakMap,rw=new WeakMap,ow=new WeakMap,iw=new WeakMap,aw=new WeakMap,uw=new WeakMap,sw=new WeakMap,lw=new WeakMap,cw=new WeakMap,fw=new WeakMap,dw=new WeakMap,pw=new WeakMap,hw=ug.find,gw=!0;"find"in[]&&Array(1).find((function(){gw=!1})),Ug({target:"Array",proto:!0,forced:gw},{find:function(e){return hw(this,e,arguments.length>1?arguments[1]:void 0)}}),xy("find"),Ug({global:!0},{globalThis:$d});const vw=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Ao&&(co.fn.css=Ao),To&&(co.fn.append=To),fo&&(co.fn.addClass=fo),po&&(co.fn.removeClass=po),ho&&(co.fn.hasClass=ho),bo&&(co.fn.on=bo),Uo&&(co.fn.focus=Uo),go&&(co.fn.attr=go),vo&&(co.fn.removeAttr=vo),xo&&(co.fn.hide=xo),So&&(co.fn.show=So),Co&&(co.fn.offset=Co),Eo&&(co.fn.width=Eo),Do&&(co.fn.height=Do),jo&&(co.fn.parent=jo),No&&(co.fn.parents=No),_o&&(co.fn.is=_o),yo&&(co.fn.dataset=yo),mo&&(co.fn.val=mo),Fo&&(co.fn.text=Fo),Bo&&(co.fn.html=Bo),Ro&&(co.fn.children=Ro),Lo&&(co.fn.remove=Lo),Io&&(co.fn.find=Io),Oo&&(co.fn.each=Oo),Mo&&(co.fn.empty=Mo);var yw,mw=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},bw=function(e){return ww(e)&&1===e.nodeType},ww=function(e){var t=mw(e);return!!t&&e instanceof t.Node},Ew=function(e){var t=e&&e.anchorNode&&mw(e.anchorNode);return!!t&&e instanceof t.Selection},Dw=function(e){return ww(e)&&3===e.nodeType},Cw=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},xw=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(ww(r=i)&&8===r.nodeType||bw(i)&&0===i.childNodes.length||bw(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]},Sw=function(e,t,n){return Vm(xw(e,t,n),1)[0]},Aw=function e(t){var n,r,o="";if(Dw(t)&&t.nodeValue)return t.nodeValue;if(bw(t)){try{for(var i=Um(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};function Ow(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||Ow(o,t)}}function kw(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==yw.ELEMENT_NODE?"":t.tagName.toLowerCase()}!function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(yw||(yw={})),void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var Bw="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Fw="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 _w="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Tw="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Pw="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),jw="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var Nw=!Pw&&!Tw&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Iw={getWindow:function(e){var t=lw.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=sw.get(t);return n||(n=new Gm,sw.set(t,n)),n},setNewKey:function(e){var t=new Gm;sw.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=rw.get(r);if(null==o){if(st.isEditor(r))return n;break}var i=nw.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=Iw.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return rw.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=Iw.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[Iw.findPath(e,t)[0]];return pt.get(e,n)},toDOMNode:function(e,t){var n;if(st.isEditor(t))n=ow.get(e);else{var r=Iw.findKey(e,t);n=aw.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=Iw.toDOMNode(e,e);try{r=bw(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=At.isBackward(t),i=Iw.toDOMPoint(e,n),a=At.isCollapsed(t)?i:Iw.toDOMPoint(e,r),u=Iw.getWindow(e).document.createRange(),s=Vm(o?a:i,2),l=s[0],c=s[1],f=Vm(o?i:a,2),d=f[0],p=f[1],h=!!(bw(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(bw(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=Vm(st.node(e,t.path),1)[0],a=Iw.toDOMNode(e,i);st.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=Um(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(lle){n={error:lle}}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=bw(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?iw.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=Iw.toSlateNode(e,t.target),u=Iw.findPath(e,a);if(st.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=st.point(e,u,{edge:l?"start":"end"}),f=l?st.before(e,c):st.after(e,c);if(f)return st.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 Iw.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((Ew(t)?t.anchorNode:t.startContainer)&&(Ew(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=jw&&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=Iw.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:Iw.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return At.isExpanded(d)&&At.isForward(d)&&bw(i)&&st.void(e,{at:d.focus,mode:"highest"})&&(d=st.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Vm(o?t:function(e){var t,n=Vm(e,2),r=n[0],o=n[1];if(bw(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=Vm(xw(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;bw(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=Sw(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=Iw.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();Wm(Wm([],Vm(Hr(v.querySelectorAll("[data-slate-zero-width]")))),Vm(Hr(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")||Fw&&(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=Iw.toSlateNode(e,c);return{path:Iw.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return st.hasPath(e,n.path)&&st.hasPath(e,r.path)},getNodeType:function(e){return nt.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return pt.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=st.nodes(e,{universal:!0});try{for(var i=Um(o),a=i.next();!a.done;a=i.next()){var u=Vm(a.value,1)[0];nt.isElement(u)&&r.push(u)}}catch(lle){t={error:lle}}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=Vm(st.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=Vm(st.nodes(e,{match:function(e){return Pt.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=Vm(st.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&Vm(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(st.isEnd(e,n.anchor,t)||st.isEnd(e,n.focus,t))},getTextarea:function(e){var t=Ub.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return qb.get(e)||null},getHoverbar:function(e){return Kb.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=Iw.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=Um(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(lle){t={error:lle}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=st.nodes(e,{match:function(t){return!(!nt.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=Um(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];Ow(Iw.toDOMNode(e,h),(function(e,t){var n=co(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||t.removeChild(e)}))}}}catch(lle){r={error:lle}}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:""}]}}},Rw=1,Lw={},Mw={};function zw(e,t){var n=e.key,r=e.factory,o=e.config,i=Hm(Hm({},o),t||{});if(null!=Mw[n])throw new Error("Duplicated key '"+n+"' in menu items");Mw[n]=r,function(e,t){null!=t&&(Lw[e]=t)}(n,i)}var $w=Cp("species"),Hw=function(e){var t=lp(e),n=Jp.f;Ap&&t&&!t[$w]&&n(t,$w,{configurable:!0,get:function(){return this}})},Uw=Jp.f,Vw=sb.fastKey,Ww=mh.set,qw=mh.getterFor,Gw={getConstructor:function(e,t,n,r){var o=e((function(e,o){hb(e,i),Ww(e,{type:t,index:_v(null),first:void 0,last:void 0,size:0}),Ap||(e.size=0),null!=o&&db(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=qw(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=Vw(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Ap?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=Vw(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Zm(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,Ap?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),Ap?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Rh(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)}}),Zm(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)}}),Ap&&Uw(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=qw(t),i=qw(r);ty(e,t,(function(e,t){Ww(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),Hw(t)}};vb("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Gw);var Kw=ug.filter,Yw=Wg("filter");Ug({target:"Array",proto:!0,forced:!Yw},{filter:function(e){return Kw(this,e,arguments.length>1?arguments[1]:void 0)}});var Xw="\t\n\v\f\r \u2028\u2029\ufeff",Zw=Xd("".replace),Jw="["+Xw+"]",Qw=RegExp("^"+Jw+Jw+"*"),eE=RegExp(Jw+Jw+"*$"),tE=function(e){return function(t){var n=hv(Jd(t));return 1&e&&(n=Zw(n,Qw,"")),2&e&&(n=Zw(n,eE,"")),n}},nE={start:tE(1),end:tE(2),trim:tE(3)},rE=Dh.PROPER,oE=nE.trim;Ug({target:"String",proto:!0,forced:function(e){return vp((function(){return!!Xw[e]()||"
"!=="
"[e]()||rE&&Xw[e].name!==e}))}("trim")},{trim:function(){return oE(this)}});var iE=$d.TypeError,aE=Cp("species"),uE=function(e,t){var n,r=jp(e).constructor;return void 0===r||null==(n=jp(r)[aE])?t:function(e){if(tg(e))return e;throw iE($p(e)+" is not a constructor")}(n)},sE=Yy.UNSUPPORTED_Y,lE=Math.min,cE=[].push,fE=Xd(/./.exec),dE=Xd(cE),pE=Xd("".slice);bm("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=hv(Jd(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Oy(e))return Ip(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=Ip(fm,f,r))&&!((a=f.lastIndex)>c&&(dE(s,pE(r,c,i.index)),i.length>1&&i.index<r.length&&vm(cE,s,eb(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&fE(f,"")||dE(s,""):dE(s,pE(r,c)),s.length>o?eb(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Ip(t,this,e,n)}:t,[function(t,n){var o=Jd(this),i=null==t?void 0:Vp(t,e);return i?Ip(i,t,o,n):Ip(r,hv(o),t,n)},function(e,o){var i=jp(this),a=hv(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=uE(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(sE?"g":"y"),f=new s(sE?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Fm(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=sE?0:h;var v,y=Fm(f,sE?pE(a,h):a);if(null===y||(v=lE(Wh(f.lastIndex+(sE?h:0)),a.length))===p)h=Em(a,h,l);else{if(dE(g,pE(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(dE(g,y[m]),g.length===d)return g;h=p=v}}return dE(g,pE(a,p)),g}]}),!!vp((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]})),sE);var hE=[];function gE(e){hE.push(e)}var vE={};function yE(e){var t=e.type,n=e.elemToHtml;vE[t||""]=n}function mE(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function bE(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=st.isVoid(t,e),u="";a||(u=i.map((function(e){return VD(e,t)})).join(""));var s=function(e){return vE[e]||mE}(r),l=s(e,u,t);return a||hE.forEach((function(t){return l=t(e,l)})),l}var wE,EE,DE,CE,xE=$d.Promise,SE=Xd([].slice),AE=/(?:ipad|iphone|ipod).*applewebkit/i.test(cp),OE="process"==Ah($d.process),kE=$d.setImmediate,BE=$d.clearImmediate,FE=$d.process,_E=$d.Dispatch,TE=$d.Function,PE=$d.MessageChannel,jE=$d.String,NE=0,IE={};try{wE=$d.location}catch(lle){}var RE=function(e){if(np(IE,e)){var t=IE[e];delete IE[e],t()}},LE=function(e){return function(){RE(e)}},ME=function(e){RE(e.data)},zE=function(e){$d.postMessage(jE(e),wE.protocol+"//"+wE.host)};kE&&BE||(kE=function(e){var t=SE(arguments,1);return IE[++NE]=function(){vm(up(e)?e:TE(e),void 0,t)},EE(NE),NE},BE=function(e){delete IE[e]},OE?EE=function(e){FE.nextTick(LE(e))}:_E&&_E.now?EE=function(e){_E.now(LE(e))}:PE&&!AE?(CE=(DE=new PE).port2,DE.port1.onmessage=ME,EE=Rh(CE.postMessage,CE)):$d.addEventListener&&up($d.postMessage)&&!$d.importScripts&&wE&&"file:"!==wE.protocol&&!vp(zE)?(EE=zE,$d.addEventListener("message",ME,!1)):EE="onreadystatechange"in Fp("script")?function(e){Dv.appendChild(Fp("script")).onreadystatechange=function(){Dv.removeChild(this),RE(e)}}:function(e){setTimeout(LE(e),0)});var $E,HE,UE,VE,WE,qE,GE,KE,YE={set:kE,clear:BE},XE=/ipad|iphone|ipod/i.test(cp)&&void 0!==$d.Pebble,ZE=/web0s(?!.*chrome)/i.test(cp),JE=bg.f,QE=YE.set,eD=$d.MutationObserver||$d.WebKitMutationObserver,tD=$d.document,nD=$d.process,rD=$d.Promise,oD=JE($d,"queueMicrotask"),iD=oD&&oD.value;iD||($E=function(){var e,t;for(OE&&(e=nD.domain)&&e.exit();HE;){t=HE.fn,HE=HE.next;try{t()}catch(e){throw HE?VE():UE=void 0,e}}UE=void 0,e&&e.enter()},AE||OE||ZE||!eD||!tD?!XE&&rD&&rD.resolve?((GE=rD.resolve(void 0)).constructor=rD,KE=Rh(GE.then,GE),VE=function(){KE($E)}):OE?VE=function(){nD.nextTick($E)}:(QE=Rh(QE,$d),VE=function(){QE($E)}):(WE=!0,qE=tD.createTextNode(""),new eD($E).observe(qE,{characterData:!0}),VE=function(){qE.data=WE=!WE}));var aD,uD,sD,lD,cD=iD||function(e){var t={fn:e,next:void 0};UE&&(UE.next=t),HE||(HE=t,VE()),UE=t},fD=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=Up(t),this.reject=Up(n)},dD={f:function(e){return new fD(e)}},pD=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},hD="object"==typeof window,gD=YE.set,vD=Cp("species"),yD="Promise",mD=mh.getterFor(yD),bD=mh.set,wD=mh.getterFor(yD),ED=xE&&xE.prototype,DD=xE,CD=ED,xD=$d.TypeError,SD=$d.document,AD=$d.process,OD=dD.f,kD=OD,BD=!!(SD&&SD.createEvent&&$d.dispatchEvent),FD=up($d.PromiseRejectionEvent),_D=!1,TD=$g(yD,(function(){var e=ih(DD),t=e!==String(DD);if(!t&&66===gp)return!0;if(gp>=51&&/native code/.test(e))return!1;var n=new DD((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[vD]=r,!(_D=n.then((function(){}))instanceof r)||!t&&hD&&!FD})),PD=TD||!cv((function(e){DD.all(e).catch((function(){}))})),jD=function(e){var t;return!(!Op(e)||!up(t=e.then))&&t},ND=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;cD((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&&MD(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(xD("Promise-chain cycle")):(u=jD(a))?Ip(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&RD(e)}))}},ID=function(e,t,n){var r,o;BD?((r=SD.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),$d.dispatchEvent(r)):r={promise:t,reason:n},!FD&&(o=$d["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=$d.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},RD=function(e){Ip(gD,$d,(function(){var t,n=e.facade,r=e.value;if(LD(e)&&(t=pD((function(){OE?AD.emit("unhandledRejection",r,n):ID("unhandledrejection",n,r)})),e.rejection=OE||LD(e)?2:1,t.error))throw t.value}))},LD=function(e){return 1!==e.rejection&&!e.parent},MD=function(e){Ip(gD,$d,(function(){var t=e.facade;OE?AD.emit("rejectionHandled",t):ID("rejectionhandled",t,e.value)}))},zD=function(e,t,n){return function(r){e(t,r,n)}},$D=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ND(e,!0))},HD=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw xD("Promise can't be resolved itself");var r=jD(t);r?cD((function(){var n={done:!1};try{Ip(r,t,zD(HD,n,e),zD($D,n,e))}catch(t){$D(n,t,e)}})):(e.value=t,e.state=1,ND(e,!1))}catch(t){$D({done:!1},t,e)}}};if(TD&&(CD=(DD=function(e){hb(this,CD),Up(e),Ip(aD,this);var t=mD(this);try{e(zD(HD,t),zD($D,t))}catch(e){$D(t,e)}}).prototype,(aD=function(e){bD(this,{type:yD,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Zm(CD,{then:function(e,t){var n=wD(this),r=n.reactions,o=OD(uE(this,DD));return o.ok=!up(e)||e,o.fail=up(t)&&t,o.domain=OE?AD.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&ND(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),uD=function(){var e=new aD,t=mD(e);this.promise=e,this.resolve=zD(HD,t),this.reject=zD($D,t)},dD.f=OD=function(e){return e===DD||e===sD?new uD(e):kD(e)},up(xE)&&ED!==Object.prototype)){lD=ED.then,_D||(Ch(ED,"then",(function(e,t){var n=this;return new DD((function(e,t){Ip(lD,n,e,t)})).then(e,t)}),{unsafe:!0}),Ch(ED,"catch",CD.catch,{unsafe:!0}));try{delete ED.constructor}catch(lle){}Kv&&Kv(ED,CD)}function UD(e){Promise.resolve().then(e)}function VD(e,t){return nt.isElement(e)?bE(e,t):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(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=Iw.getParentsNodes(t,e).some((function(e){return"pre"===Iw.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=Iw.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return hE.forEach((function(t){return r=t(e,r)})),r}(e,t)}function WD(e){return"w-e-element-"+e}Ug({global:!0,wrap:!0,forced:TD},{Promise:DD}),Uv(DD,yD,!1),Hw(yD),sD=lp(yD),Ug({target:yD,stat:!0,forced:TD},{reject:function(e){var t=OD(this);return Ip(t.reject,void 0,e),t.promise}}),Ug({target:yD,stat:!0,forced:TD},{resolve:function(e){return function(e,t){if(jp(e),Op(t)&&t.constructor===e)return t;var n=dD.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Ug({target:yD,stat:!0,forced:PD},{all:function(e){var t=this,n=OD(t),r=n.resolve,o=n.reject,i=pD((function(){var n=Up(t.resolve),i=[],a=0,u=1;db(e,(function(e){var s=a++,l=!1;u++,Ip(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=OD(t),r=n.reject,o=pD((function(){var o=Up(t.resolve);db(e,(function(e){Ip(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var qD=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},GD=function(e,t,n){var r=Iw.toDOMRange(e,t).getBoundingClientRect(),o=Iw.toDOMRange(e,n).getBoundingClientRect();return qD(r,o)&&qD(o,r)},KD=["span","b","strong","i","em","s","strike","u","font","sub","sup"],YD=[];function XD(e){YD.push(e)}var ZD=[];function JD(e){ZD.push(e)}var QD={};function eC(e){var t=e.selector,n=e.parseElemHtml;QD[t]=n}var tC=Jp.f,nC=Fg.f,rC=mh.enforce,oC=Cp("match"),iC=$d.RegExp,aC=iC.prototype,uC=$d.SyntaxError,sC=Xd(gy),lC=Xd(aC.exec),cC=Xd("".charAt),fC=Xd("".replace),dC=Xd("".indexOf),pC=Xd("".slice),hC=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gC=/a/g,vC=/a/g,yC=new iC(gC)!==gC,mC=Yy.MISSED_STICKY,bC=Yy.UNSUPPORTED_Y,wC=Ap&&(!yC||mC||Zy||Qy||vp((function(){return vC[oC]=!1,iC(gC)!=gC||iC(vC)==vC||"/a/i"!=iC(gC,"i")})));if($g("RegExp",wC)){for(var EC=function(e,t){var n,r,o,i,a,u,s=Rp(aC,this),l=Oy(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===EC)return e;if((l||Rp(aC,e))&&(e=e.source,c&&(t="flags"in d?d.flags:sC(d))),e=void 0===e?"":hv(e),t=void 0===t?"":hv(t),d=e,Zy&&"dotAll"in gC&&(r=!!t&&dC(t,"s")>-1)&&(t=fC(t,/s/g,"")),n=t,mC&&"sticky"in gC&&(o=!!t&&dC(t,"y")>-1)&&bC&&(t=fC(t,/y/g,"")),Qy&&(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=cC(e,r)))t+=cC(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:lC(hC,pC(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||np(a,c))throw new uC("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),e=i[0],f=i[1]),a=gb(iC(e,t),s?this:aC,EC),(r||o||f.length)&&(u=rC(a),r&&(u.dotAll=!0,u.raw=EC(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=cC(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+cC(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{eh(a,"source",""===d?"(?:)":d)}catch(e){}return a},DC=function(e){e in EC||tC(EC,e,{configurable:!0,get:function(){return iC[e]},set:function(t){iC[e]=t}})},CC=nC(iC),xC=0;CC.length>xC;)DC(CC[xC++]);aC.constructor=EC,EC.prototype=aC,Ch($d,"RegExp",EC)}Hw("RegExp");var SC=new RegExp(String.fromCharCode(160),"g");function AC(e){return e.replace(SC," ")}function OC(e,t){var n=e.length;if(n){var r=e[n-1];if(Pt.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function kC(e,t,n){return{type:"paragraph",children:[{text:co(e).text().replace(/\s+/gm," ")}]}}function BC(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!==yw.ELEMENT_NODE)if(e.nodeType!==yw.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=AC(r),OC(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(OC(n,"\n")||n.push({text:"\n"}));var o=co(e);n.push(_C(o,t))}})),n)}(e,t),r=function(e){for(var t in QD)if(e[0].matches(t))return QD[t];return kC}(e),o=r(e[0],n,t);return st.isVoid(t,o)||(0===n.length&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),ZD.forEach((function(n){o=n(e[0],o,t)}))),o}function FC(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||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(n);var r={text:n=AC(n)};return ZD.forEach((function(n){r=n(e[0],r,t)})),r}function _C(e,t){YD.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=co(r(e[0])))}));var n=kw(e);return"span"===n?e.attr("data-w-e-type")?BC(e,t):FC(e,t):"code"===n?"pre"===kw(e.parent())?BC(e,t):FC(e,t):KD.includes(n)?FC(e,t):BC(e,t)}var TC=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),PC=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=Um(st.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=Vm(p.value,2),g=h[0],v=h[1],y=Iw.findKey(t,g);f.push([v,y])}}catch(lle){n={error:lle}}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=Um(st.levels(t,{at:yt.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=Vm(b.value,2);g=w[0],v=w[1],y=Iw.findKey(t,g),f.push([v,y])}}catch(lle){i={error:lle}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=Um(st.levels(t,{at:yt.common(yt.parent(e.path),yt.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var C=Vm(D.value,2);g=C[0],v=C[1],y=Iw.findKey(t,g),f.push([v,y])}}catch(lle){u={error:lle}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var x=Um(f),S=x.next();!S.done;S=x.next()){var A=Vm(S.value,2);v=A[0],y=A[1],g=Vm(st.node(t,v),1)[0],sw.set(g,y)}}catch(lle){l={error:lle}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&At.isCollapsed(e.selection)){var r=st.above(e,{match:function(t){return st.isBlock(e,t)},at:e.selection});if(r){var o=Vm(r,2)[1],a=st.range(e,o,e.selection.anchor),u=function(e,t){var n=st.range(e,At.end(t)),r=Array.from(st.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(GD(e,st.range(e,r[o]),n))return st.range(e,r[o],n);if(r.length<2)return st.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)GD(e,st.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return st.range(e,r[i],n)}(t,a);At.isCollapsed(u)||Jt.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&fw.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 VD(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return pt.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":st.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=st.nodes(t,{at:[],universal:!0});try{for(var u=Um(a),s=u.next();!s.done;s=u.next()){var l=Vm(s.value,1)[0];if(nt.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=WD(Iw.findKey(t,l).id);i.push(Hm(Hm({},l),{id:c}))}}}catch(lle){r={error:lle}}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(nt.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(Pt.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Jt.removeNodes(t,{at:{anchor:st.start(t,[]),focus:st.end(t,[])},mode:"highest"}),0===t.children.length&&Jt.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return Iw.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e){if(void 0===e&&(e=""),e){var n=co(e);if(0!==(n=n.filter((function(e){if(e.nodeType!==yw.ELEMENT_NODE)return!1;var t=kw(co(e));return!TC.has(t)}))).length){var r=co('<div hidden="true"></div>');r.append(n),co("body").append(r);var o=[];if(n.forEach((function(e){var n=!1;if(KD.includes(e.tagName.toLowerCase()))n=!0;else for(var r in QD)if(e.matches(r)){n=!0;break}if(n){var i=co(e);o.push(_C(i,t))}else{var a=Aw(e).trim();a&&a.split(/\r\n|\r|\n/).forEach((function(e,t){e.trim()&&o.push({type:"paragraph",children:[{text:e}]})}))}})),o.length)try{t.insertFragment(o)}catch(e){t.insertText(Aw(r[0]))}r.remove()}}},t.setHtml=function(n){if(void 0===n&&(n=""),n){var r=t.isDisabled(),o=t.isFocused(),i=JSON.stringify(t.selection);if(t.enable(),t.focus(),t.select([]),t.deleteFragment(),Jt.setNodes(e,{type:"paragraph"},{mode:"highest"}),t.dangerouslyInsertHtml(n),o||(t.deselect(),t.blur()),r&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch(e){t.select(st.start(t,[]))}}},t},jC=function(e){return null!=e},NC={object:!0,function:!0,undefined:!0},IC=function(e){if(!function(e){return!!jC(e)&&hasOwnProperty.call(NC,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}},RC=/^\s*class[\s{/}]/,LC=Function.prototype.toString,MC=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!IC(e)}(e)&&!RC.test(LC.call(e))},zC=function(e){return null!=e},$C=Object.keys,HC=function(){try{return Object.keys("primitive"),!0}catch(lle){return!1}}()?Object.keys:function(e){return $C(zC(e)?Object(e):e)},UC=function(e){if(!zC(e))throw new TypeError("Cannot use null or undefined");return e},VC=Math.max,WC=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=VC(arguments.length,2);for(e=Object(UC(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)HC(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},qC=Array.prototype.forEach,GC=Object.create,KC=function(e,t){var n;for(n in e)t[n]=e[n]},YC=function(e){var t=GC(null);return qC.call(arguments,(function(e){zC(e)&&KC(Object(e),t)})),t},XC="razdwatrzy",ZC=String.prototype.indexOf,JC="function"==typeof XC.contains&&!0===XC.contains("dwa")&&!1===XC.contains("foo")?String.prototype.contains:function(e){return ZC.call(this,e,arguments[1])>-1},QC=Rd((function(e){var t=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],jC(e)?(n=JC.call(e,"c"),r=JC.call(e,"e"),o=JC.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?WC(YC(i),a):a};t.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],jC(t)?MC(t)?jC(n)?MC(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,jC(e)?(r=JC.call(e,"c"),o=JC.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?WC(YC(i),a):a}})),ex=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},tx=Rd((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};n=function(e,t){var n;return ex(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},r=function(e,t){var r,i;return ex(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(ex(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,once:r,off:o,emit:i},u={on:QC(n),once:QC(r),off:QC(o),emit:QC(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function nx(e){var t=dw.get(e);return null==t&&(t=tx(),dw.set(e,t)),t}var rx=new WeakMap;function ox(e,t){var n=rx.get(e);null==n&&(n=new Set,rx.set(e,n)),n.add(t)}function ix(e){return rx.get(e)||new Set}function ax(e){rx.set(e,new Set)}function ux(e){var t=Iw.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function sx(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=ux(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=Iw.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 lx(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=nt.isElement(t)&&e.isVoid(t),i=nt.isElement(t)&&e.isInline(t),a=uw.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(vw.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=ux(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,D=l-y;if("bar"===n)return w.left=D+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?D>(m-f)/2?w.right=m-D+5+"px":w.left=D+f+5+"px":w.left="20px":w.left=D+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function cx(e,t){UD((function(){var n=ux(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"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var D=t.css("right"),C=parseInt(D.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var fx=Wg("slice"),dx=Cp("species"),px=$d.Array,hx=Math.max;Ug({target:"Array",proto:!0,forced:!fx},{slice:function(e,t){var n,r,o,i=yg(this),a=qh(i),u=Dg(e,a),s=Dg(void 0===t?a:t,a);if(Gh(i)&&(n=i.constructor,(tg(n)&&(n===px||Gh(n.prototype))||Op(n)&&null===(n=n[dx]))&&(n=void 0),n===px||void 0===n))return SE(i,u,s);for(r=new(void 0===n?px:n)(hx(s-u,0)),o=0;u<s;u++,o++)u in i&&ev(r,o,i[u]);return r.length=o,r}});var gx=bg.f,vx=Xd("".startsWith),yx=Xd("".slice),mx=Math.min,bx=_y("startsWith"),wx=!bx&&!!function(){var e=gx(String.prototype,"startsWith");return e&&!e.writable}();Ug({target:"String",proto:!0,forced:!wx&&!bx},{startsWith:function(e){var t=hv(Jd(this));By(e);var n=Wh(mx(arguments.length>1?arguments[1]:void 0,t.length)),r=hv(e);return vx?vx(t,r,n):yx(t,n,n+r.length)===r}});var Ex=Object.assign,Dx=Object.defineProperty,Cx=Xd([].concat),xx=!Ex||vp((function(){if(Ap&&1!==Ex({b:1},Ex(Dx({},"a",{enumerable:!0,get:function(){Dx(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!=Ex({},e)[n]||wv(Ex({},t)).join("")!=r}))?function(e,t){for(var n=ep(e),r=arguments.length,o=1,i=_g.f,a=vg.f;r>o;)for(var u,s=zh(arguments[o++]),l=i?Cx(wv(s),i(s)):wv(s),c=l.length,f=0;c>f;)u=l[f++],Ap&&!Ip(a,s,u)||(n[u]=s[u]);return n}:Ex;Ug({target:"Object",stat:!0,forced:Object.assign!==xx},{assign:xx});var Sx=["props","attrs","style","dataset","on","hook"];function Ax(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!Sx.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=ys(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&Ax(e)}))}var Ox=[];function kx(e){Ox.push(e)}var Bx={};function Fx(e){var t=e.type,n=e.renderElem;Bx[t||""]=n}function _x(e,t,n){var r=n.isInline(e)?"span":"div";return Wa(r,null,t)}function Tx(e,t){var n,r=Iw.findKey(t,e),o=t.isInline(e),i=st.isVoid(t,e),a=WD(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return Bx[e]||_x}(s);n=i?null:c.map((function(n,r){return Ix(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=Vm(pt.texts(e),1),g=Vm(h[0],1)[0],v=Ix(g,0,e,t),y=Wa(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},v);d=Wa(p,{style:{position:"relative"}},d,y),nw.set(g,0),rw.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return Ox.forEach((function(r){n=r(e,t)})),n}(e,d)),UD((function(){var t=Cw(a);null!=t&&(aw.set(r,t),uw.set(e,t),iw.set(t,e))})),d}function Px(e,t){return void 0===t&&(t=!1),Wa("span",{"data-slate-string":!0},t?e+"\n":e)}function jx(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Wa("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Wa("br",null):null)}function Nx(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=Iw.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=Iw.findPath(n,e),a=o([e,i]),u=Pt.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=Iw.findPath(o,n),u=yt.parent(a);if(st.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?jx(pt.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==st.string(o,u)?""===i?jx():t&&"\n"===i.slice(-1)?Px(i,!0):Px(i):jx(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return Ox.forEach((function(t){n=t(e,n)})),n}(r,i),Wa("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=Wa("span",{"data-slate-node":"text",id:l,key:r.id},s);return UD((function(){var t=Cw(l);null!=t&&(aw.set(r,t),uw.set(e,t),iw.set(t,e))})),c}function Ix(e,t,n,r){return nw.set(e,t),rw.set(e,n),nt.isElement(e)?Tx(e,r):Nx(e,n,r)}function Rx(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),Da("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=Ix(e,n,t,t);return Ax(r),r}));var c=Qb.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return co('<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=wa([xa,ja,Ua,Oa,Ta]))(n,s),Qb.set(e,!1),ew.set(e,p)}else{var d=tw.get(e),p=ew.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=Cw(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=mw(n);h&&lw.set(t,h)}ow.set(t,n),uw.set(t,n),iw.set(n,t),tw.set(e,s)}}function Lx(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Mx(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function zx(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Mx(n.overflowY,t)||Mx(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 $x(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 Hx(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(!Lx(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;Lx(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&zx(f)&&!zx(document.documentElement)||null!=f&&zx(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,E=v.bottom,D=v.left,C="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,x="center"===i?D+m/2:"end"===i?w:D,S=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,_=k.top,T=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&D>=0&&E<=p&&w<=d&&b>=_&&E<=P&&D>=j&&w<=T)return S;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),R=parseInt(N.borderTopWidth,10),L=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-L:0,U="offsetHeight"in O?O.offsetHeight-O.clientHeight-R-M:0;if(l===O)z="start"===o?C:"end"===o?C-p:"nearest"===o?$x(g,g+p,p,R,M,g+C,g+C+y,y):C-p/2,$="start"===i?x:"center"===i?x-d/2:"end"===i?x-d:$x(h,h+d,d,I,L,h+x,h+x+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?C-_-R:"end"===o?C-P+M+U:"nearest"===o?$x(_,P,B,R,M+U,C,C+y,y):C-(_+B/2)+U/2,$="start"===i?x-j-I:"center"===i?x-(j+F/2)+H/2:"end"===i?x-T+L+H:$x(j,T,F,I,L+H,x,x+m,m);var V=O.scrollLeft,W=O.scrollTop;C+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+U))),x+=V-($=Math.max(0,Math.min(V+$,O.scrollWidth-F+H)))}S.push({el:O,top:z,left:$})}return S}function Ux(e){return e===Object(e)&&0!==Object.keys(e).length}function Vx(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(Ux(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:Hx(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:Ux(e)?e:{block:"start",inline:"nearest"}}(t);return 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)}))}(Hx(e,r),r.behavior)}}function Wx(e,t){return ww(t)&&Iw.hasDOMNode(e,t,{editable:!0})}function qx(e,t){if(e.getConfig().readOnly)return!1;var n=Gx(e,t)&&Iw.toSlateNode(e,t);return st.isVoid(e,n)}function Gx(e,t){return ww(t)&&Iw.hasDOMNode(e,t)}var Kx=new WeakMap,Yx=new WeakMap,Xx={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"},Zx={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"},Jx={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Qx=function(e){var t=Xx[e],n=Zx[e],r=Jx[e],o=t&&Fs(t),i=n&&Fs(n),a=r&&Fs(r);return function(e){return!(!o||!o(e))||!!(Bw&&i&&i(e))||!(Bw||!a||!a(e))}},eS={isBold:Qx("bold"),isCompose:Qx("compose"),isMoveBackward:Qx("moveBackward"),isMoveForward:Qx("moveForward"),isDeleteBackward:Qx("deleteBackward"),isDeleteForward:Qx("deleteForward"),isDeleteLineBackward:Qx("deleteLineBackward"),isDeleteLineForward:Qx("deleteLineForward"),isDeleteWordBackward:Qx("deleteWordBackward"),isDeleteWordForward:Qx("deleteWordForward"),isExtendBackward:Qx("extendBackward"),isExtendForward:Qx("extendForward"),isExtendLineBackward:Qx("extendLineBackward"),isExtendLineForward:Qx("extendLineForward"),isItalic:Qx("italic"),isMoveLineBackward:Qx("moveLineBackward"),isMoveLineForward:Qx("moveLineForward"),isMoveWordBackward:Qx("moveWordBackward"),isMoveWordForward:Qx("moveWordForward"),isRedo:Qx("redo"),isSplitBlock:Qx("splitBlock"),isTransposeCharacter:Qx("transposeCharacter"),isUndo:Qx("undo"),isTab:Qx("tab"),isSelectAll:Qx("selectAll")};function tS(e){e.preventDefault()}var nS={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Nw&&!o&&Wx(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=Vm(r.getTargetRanges(),1)[0];if(s){var l=Iw.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&At.equals(i,l)||Jt.select(n,l)}}if(i&&At.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";st.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":st.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":st.deleteForward(n);break;case"deleteContentBackward":st.deleteBackward(n);break;case"deleteEntireSoftLine":st.deleteBackward(n,{unit:"line"}),st.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":st.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":st.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":st.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":st.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":st.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":st.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":st.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!pw.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&st.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&Wx(n,r.target)){var a=Iw.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===Iw.toDOMNode(n,n)||bw(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&ww(u)&&Iw.hasDOMNode(n,u)){var s=Iw.toSlateNode(n,u);if(nt.isElement(s)&&!n.isVoid(s))return}if(_w){var l=a.getSelection();null==l||l.removeAllRanges()}cw.delete(n)}}}},focus:function(e,t,n){var r=Iw.toDOMNode(n,n),o=Iw.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,Fw&&e.target!==r?r.focus():cw.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Gx(n,e.target)&&ww(e.target)){var r=Iw.toSlateNode(n,e.target),o=Iw.findPath(n,r);if(st.hasPath(n,o)&&pt.get(n,o)===r){var i=st.start(n,o),a=st.end(n,o),u=st.void(n,{at:i}),s=st.void(n,{at:a});if(u&&s&&yt.equals(u[1],s[1])){var l=st.range(n,i);Jt.select(n,l)}}}},compositionstart:function(e,t,n){if(Wx(n,e.target)){var r=n.selection;if(r&&At.isExpanded(r)&&st.deleteFragment(n),r&&At.isCollapsed(r)){var o=Iw.toDOMRange(n,r).startContainer,i=o.textContent||"";Kx.set(n,i),Yx.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(Wx(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(jw||Fw)&&Iw.cleanExposedTexNodeInSelectionBlock(n);for(var i=At.isBackward(o)?o.focus:o.anchor,a=Vm(st.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Vm(st.node(n,i.path.slice(0,u+1)),1)[0];if(nt.isElement(s)&&((_w||Fw)&&"link"===s.type||"code"===s.type)){Iw.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=Iw.getLeftLengthOfMaxLength(n);c<l.length?(Iw.toDOMRange(n,o).startContainer.textContent=Kx.get(n)||"",c>0&&st.insertText(n,l.slice(0,c)),t.changeViewState()):st.insertText(n,l)}else st.insertText(n,l);_w||setTimeout((function(){var e=n.selection;if(null!=e){var t=Yx.get(n);null!=t&&Iw.toDOMRange(n,e).startContainer!==t&&(t.textContent=Kx.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){Wx(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Wx(n,r.target)){if(function(e,t){var n=qb.get(e),r=n&&n.getMenus(),o=Kb.get(e),i=o&&o.getMenus(),a=Hm(Hm({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Bs(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),eS.isTab(r))return tS(r),void n.handleTab();if(eS.isRedo(r))return tS(r),void("function"==typeof n.redo&&n.redo());if(eS.isUndo(r))return tS(r),void("function"==typeof n.undo&&n.undo());if(eS.isMoveLineBackward(r))return tS(r),void Jt.move(n,{unit:"line",reverse:!0});if(eS.isMoveLineForward(r))return tS(r),void Jt.move(n,{unit:"line"});if(eS.isExtendLineBackward(r))return tS(r),void Jt.move(n,{unit:"line",edge:"focus",reverse:!0});if(eS.isExtendLineForward(r))return tS(r),void Jt.move(n,{unit:"line",edge:"focus"});if(eS.isMoveBackward(r))return tS(r),void(o&&At.isCollapsed(o)?Jt.move(n,{reverse:!0}):Jt.collapse(n,{edge:"start"}));if(eS.isMoveForward(r))return tS(r),void(o&&At.isCollapsed(o)?Jt.move(n):Jt.collapse(n,{edge:"end"}));if(eS.isMoveWordBackward(r))return tS(r),o&&At.isExpanded(o)&&Jt.collapse(n,{edge:"focus"}),void Jt.move(n,{unit:"word",reverse:!0});if(eS.isMoveWordForward(r))return tS(r),o&&At.isExpanded(o)&&Jt.collapse(n,{edge:"focus"}),void Jt.move(n,{unit:"word"});if(eS.isSelectAll(r))return tS(r),void n.selectAll();if(Nw){if((jw||_w)&&o&&(eS.isDeleteBackward(r)||eS.isDeleteForward(r))&&At.isCollapsed(o)){var i=pt.parent(n,o.anchor.path);if(nt.isElement(i)&&st.isVoid(n,i)&&st.isInline(n,i))return r.preventDefault(),void Jt.delete(n,{unit:"block"})}}else{if(eS.isBold(r)||eS.isItalic(r)||eS.isTransposeCharacter(r))return void tS(r);if(eS.isSplitBlock(r))return tS(r),void st.insertBreak(n);if(eS.isDeleteBackward(r))return tS(r),void(o&&At.isExpanded(o)?st.deleteFragment(n,{direction:"backward"}):st.deleteBackward(n));if(eS.isDeleteForward(r))return tS(r),void(o&&At.isExpanded(o)?st.deleteFragment(n,{direction:"forward"}):st.deleteForward(n));if(eS.isDeleteLineBackward(r))return tS(r),void(o&&At.isExpanded(o)?st.deleteFragment(n,{direction:"backward"}):st.deleteBackward(n,{unit:"line"}));if(eS.isDeleteLineForward(r))return tS(r),void(o&&At.isExpanded(o)?st.deleteFragment(n,{direction:"forward"}):st.deleteForward(n,{unit:"line"}));if(eS.isDeleteWordBackward(r))return tS(r),void(o&&At.isExpanded(o)?st.deleteFragment(n,{direction:"backward"}):st.deleteBackward(n,{unit:"word"}));if(eS.isDeleteWordForward(r))return tS(r),void(o&&At.isExpanded(o)?st.deleteFragment(n,{direction:"forward"}):st.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Nw&&!n.getConfig().readOnly&&Wx(n,e.target)){e.preventDefault();var r=e.key;st.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Wx(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&&Wx(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(At.isExpanded(o))st.deleteFragment(n);else{var a=pt.parent(n,o.anchor.path);st.isVoid(n,a)&&Jt.delete(n)}}},paste:function(e,t,n){pw.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Wx(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void pw.set(n,!1);if(!Nw||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(Gx(n,e.target)){var r=Iw.toSlateNode(n,e.target);st.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Gx(n,r.target)&&!n.getConfig().readOnly){var o=Iw.toSlateNode(n,r.target),i=Iw.findPath(n,o);if(st.isVoid(n,o)||st.void(n,{at:i,voids:!0})){var a=st.range(n,i);Jt.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&&Gx(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&Gx(n,r.target)&&null!=o&&!(Nw&&_w&&o.files.length>0)){r.preventDefault();var i=n.selection,a=Iw.findEventRange(n,r);Jt.select(n,a),t.isDraggingInternally&&(i&&Jt.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},rS=1,oS=function(){function e(e){var t=this;this.id=rS++,this.$textArea=null,this.$progressBar=co('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=co('<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=Gi((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=Iw.findDocumentOrShadowRoot(t),a=i.activeElement,u=Iw.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,cw.set(t,!0)):cw.delete(t),!s)return Jt.deselect(t);var l=s.anchorNode,c=s.focusNode,f=Wx(t,l)||qx(t,l),d=Wx(t,c)||qx(t,c);if(f&&d){var p=Iw.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Jt.select(t,p)}else Jt.deselect(t)}}(t,e)}),100);var n=co(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=co('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=co('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,UD((function(){var e=t.editorInstance,n=Iw.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=Vb.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&&(Ci(nS,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Gi((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?o&&o(t):null!=e.latestEditorSelection&&null==t.selection&&r&&r(t),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-Iw.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;Rx(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=co('<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),UD((function(){!function(e,t){var n=t.selection,r=Iw.findDocumentOrShadowRoot(t).getSelection();if(r&&!e.isComposing&&t.isFocused()){var o="None"!==r.type;if(n||o){var i=ow.get(t),a=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(a=!0),o&&a&&n){var u=Iw.toSlateRange(t,r,{exactMatch:!0,suppressThrow:!0});if(u&&At.equals(u,n)){var s=!0;if(At.isCollapsed(n)){var l=r.anchorNode,c=r.anchorOffset;if(l===i){var f=i.childNodes,d=void 0;(d=f[c])&&d.matches("table")&&(s=!1),(d=f[c-1])&&d.matches("table")&&(s=!1)}}if(s)return}}if(!n||Iw.hasRange(t,n)){e.isUpdatingSelection=!0;var p=n&&Iw.toDOMRange(t,n);if(p){At.isBackward(n)?r.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):r.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset);var h=p.startContainer.parentElement;h.closest("[data-slate-spacer]")||(h.getBoundingClientRect=p.getBoundingClientRect.bind(p),Vx(h,{scrollMode:"if-needed",boundary:i.parentElement,block:"end",behavior:"smooth"}),delete h.getBoundingClientRect)}else r.removeAllRanges();setTimeout((function(){p&&Fw&&i.focus(),e.isUpdatingSelection=!1}))}else t.selection=Iw.toSlateRange(t,r,{exactMatch:!1,suppressThrow:!1})}}}(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function iS(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&&iS(t)}function aS(){return co('<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 uS(){return co('<div class="w-e-bar-divider"></div>')}function sS(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=Bw?"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")}}}bm("match",(function(e,t,n){return[function(t){var n=Jd(this),r=null==t?void 0:Vp(t,e);return r?Ip(r,t,n):new RegExp(t)[e](hv(n))},function(e){var r=jp(this),o=hv(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Fm(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Fm(r,o));){var c=hv(u[0]);s[l]=c,""===c&&(r.lastIndex=Em(o,Wh(r.lastIndex),a)),l++}return 0===l?null:s}]}));var lS=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.$elem=co('<div class="w-e-bar-item"></div>'),this.$button=co('<button type="button"></button>'),this.disabled=!1,this.menu=e;var r=e.tag,o=e.width;if("button"!==r)throw new Error("Invalid tag '"+r+"', expected 'button'");var i=e.title,a=e.hotkey,u=void 0===a?"":a,s=e.iconSvg,l=void 0===s?"":s,c=this.$button;if(l){var f=co(l);iS(f),c.append(f)}else c.text(i);sS(c,l,i,u,t),t&&l&&c.append(co('<span class="title">'+i+"</span>")),o&&c.css("width",o+"px"),this.$elem.append(c),UD((function(){return n.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),DS(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=DS(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=DS(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=DS(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}(),cS=function(e){function t(t,n){return void 0===n&&(n=!1),e.call(this,t,n)||this}return $m(t,e),t.prototype.onButtonClick=function(){},t}(lS),fS=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Xb.get(e);null==t&&(t=new Set,Xb.set(e,t)),t.add(this),Zb.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=Zb.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=Zb.get(this);e&&e.emit("modalOrPanelHide")}},e}(),dS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=co('<div class="w-e-drop-panel"></div>'),n}return $m(t,e),t.prototype.genSelfElem=function(){return null},t}(fS),pS=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t,n)||this;if(r.dropPanel=null,r.menu=t,t.showDropPanel){var o=aS();r.$button.append(o)}return r}return $m(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=DS(this);if(null==this.dropPanel){var n=new dS(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}(lS),hS=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=co('<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 $m(t,e),t.prototype.genSelfElem=function(){var e=this,t=co('<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=Zb.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}(fS);function gS(e,t,n){var r=co('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=co('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function vS(e,t){var n=co('<div class="button-container"></div>'),r=co('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var yS=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t,n)||this;return r.$body=co("body"),r.modal=null,r.menu=t,r}return $m(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=DS(this),t=this.menu.getModalPositionNode(e);return nt.isElement(t)?lx(e,t,"modal"):sx(e)},t.prototype.handleModal=function(){var e=DS(this),t=this.menu;if(null==this.modal){var n=new hS(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=DS(this),r=this.menu;if(null!=r.getModalContentElem){var o=Iw.getTextarea(n),i=Iw.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||cx(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(lS),mS=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=co('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return $m(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=co("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=co('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=co('<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(co('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(fS),bS=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.$elem=co('<div class="w-e-bar-item"></div>'),this.$button=co('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var r=e.tag,o=e.title,i=e.width,a=e.iconSvg,u=void 0===a?"":a,s=e.hotkey,l=void 0===s?"":s;if("select"!==r)throw new Error("Invalid tag '"+r+"', expected 'select'");var c=this.$button;i&&c.css("width",i+"px"),sS(c,u,o,l,t),this.$elem.append(c),this.menu=e,UD((function(){return n.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),DS(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=DS(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new mS(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=co(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=DS(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=DS(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=aS();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=DS(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}(),wS=function(){function e(e){this.$elem=co('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=co('<div class="w-e-bar-item-menus-container"></div>'),this.$button=co('<button type="button"></button>');var t=e.iconSvg,n=e.title,r=this.$elem,o=this.$button;if(t){var i=co(t);iS(i),o.append(i)}else o.text(n);var a=aS();o.append(a),r.append(o);var u=this.$container;r.append(u);var s=this.createObserver();this.observe(s)}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){co(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),ES=new WeakMap;function DS(e){var t=Yb.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function CS(e,t){void 0===t&&(t=!1);var n=ES.get(e);if(n)return n;var r=e.tag;if("button"===r){var o=e.showDropPanel,i=e.showModal;n=o?new pS(e,t):i?new yS(e,t):new cS(e,t)}if("select"===r&&(n=new bS(e,t)),null==n)throw new Error("Invalid tag in menu "+JSON.stringify(e));return ES.set(e,n),n}function xS(e,t){var n=e.selection;return null!=n&&!At.isCollapsed(n)&&!Iw.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Pt.isText(t)}var SS=function(){function e(){var e=this;this.$elem=co('<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=Qs((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&&nt.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),UD((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()})),Iw.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;UD((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=uS();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=Mw[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=CS(r);this.hoverbarItems.push(i),Yb.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),nt.isElement(e)){var r=lx(t,e,"bar");return n.css(r),void cx(t,n)}if(Pt.isText(e))return r=sx(t),n.css(r),void cx(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 Iw.checkNodeType(t,o)},c=Vm(st.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[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=Gb.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=xS),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=Iw.findPath(null,e),r=Iw.findPath(null,t);return yt.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function AS(e,t,n){var r=co(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function OS(e,t,n,r){if(nw.set(e,t),rw.set(e,n),nt.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return OS(t,n,e,r)})),st.isVoid(r,e)){var i=Vm(pt.texts(e),1),a=Vm(i[0],1)[0];nw.set(a,0),rw.set(a,e)}}}function kS(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];cy.withoutSaving(t,(()=>{st.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];cy.withoutSaving(t,(()=>{st.withoutNormalizing(t,(()=>{var e=r.map(vt.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=py(e,u),l=cy.isSaving(t),c=cy.isMerging(t);if(null==l&&(l=dy(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||fy(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();hy(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment;return t.insertText=function(e){if(t.getConfig().maxLength){var r=Iw.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=Iw.getLeftLengthOfMaxLength(t);n<=0||n<pt.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){t.getConfig().maxLength?e.forEach((function(e){t.insertNode(e)})):o(e)},t}(function(e){var t=e;return t.on=function(e,n){var r=nx(t);if(r.on(e,n),"destroyed"===e&&ox(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),ox(t,o)}},t.once=function(e,n){nx(t).once(e,n)},t.off=function(e,n){nx(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=nx(t);o.emit.apply(o,Wm([e],Vm(n))),"destroyed"===e&&(ix(t).forEach((function(e){return o.off("destroyed",e)})),ax(t))},t}(function(e){var t=e;return t.select=function(e){Jt.select(t,e)},t.deselect=function(){var n=t.selection,r=Iw.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Jt.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Jt.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=fw.get(t);null!=e&&(t.focus(),Jt.select(t,e))},t.getSelectionPosition=function(){return sx(t)},t.getNodePosition=function(e){return lx(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=Vm(At.edges(e),2),r=n[0],o=n[1],i=Vm(st.edges(t,[]),2),a=i[0],u=i[1];return!(!Et.equals(r,a)||!Et.equals(o,u))},t.selectAll=function(){var e=st.start(t,[]),n=st.end(t,[]);Jt.select(t,{anchor:e,focus:n})},t}(PC(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Mw)e.push(t);return e},t.getConfig=function(){var e=Jb.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=e;return t.id="wangEditor-"+Rw++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){var n=Iw.toDOMNode(t,t),r=Iw.findDocumentOrShadowRoot(t);if(cw.set(t,!0),e){var o=st.end(t,[]);Jt.select(t,o)}r.activeElement!==n&&n.focus({preventScroll:!0})},t.isFocused=function(){return!!cw.get(t)},t.blur=function(){var e=Iw.toDOMNode(t,t),n=Iw.findDocumentOrShadowRoot(t);cw.set(t,!1),n.activeElement===e&&(e.blur(),Jt.deselect(t))},t.updateView=function(){Iw.getTextarea(t).changeViewState();var e=Iw.getToolbar(t);e&&e.changeToolbarState();var n=Iw.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=Iw.getTextarea(t);e.destroy(),Ub.delete(t),Vb.delete(e);var n=Iw.getToolbar(t);n&&(n.destroy(),qb.delete(t),Wb.delete(n));var r=Iw.getHoverbar(t);r&&(r.destroy(),Kb.delete(t),Gb.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=co("#"+e);if(0!==r.length){var o=r[0];if(!Iw.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=Iw.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||Iw.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=Xb.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 Iw.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=Iw.getToolbar(t);n&&(e=n.$box);var r=Iw.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=Iw.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return Iw.getTextarea(t).$textAreaContainer[0]},t}(function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=Vm(At.edges(n),2),o=r[0],i=r[1],a=st.void(t,{at:o.path}),u=st.void(t,{at:i.path});if(!At.isCollapsed(n)||a){var s=Iw.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=Vm(u,1)[0],d=s.cloneRange(),p=Iw.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":""})),Dw(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",Aw(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=Um(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Jt.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}(Ce()))))))));if(n&&function(e,t){return AS(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=el(Lw),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Ci(t,(function(e,t){n[t]=Hm(Hm({},e),o[t]||{})})),delete e.MENU_CONF,Hm({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);Jb.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),a){var p=co("<div>"+a+"</div>");l.children=Array.from(p.children()).map((function(e){return _C(co(e),l)}))}if(i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),Iw.normalizeContent(l),n){var h=new oS(n);Ub.set(l,h),Vb.set(h,l),h.changeViewState(),UD((function(){var e=h.$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 g=void 0;Object.keys(d).length>0&&(g=new SS,Gb.set(g,l),Kb.set(l,g)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return OS(e,t,l,l)}));var v=c.onCreated,y=c.onDestroyed;return v&&l.on("created",(function(){return v(l)})),y&&l.on("destroyed",(function(){return y(l)})),UD((function(){return l.emit("created")})),l}var BS=Wg("splice"),FS=$d.TypeError,_S=Math.max,TS=Math.min;Ug({target:"Array",proto:!0,forced:!BS},{splice:function(e,t){var n,r,o,i,a,u,s=ep(this),l=qh(s),c=Dg(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=TS(_S(Uh(t),0),l-c)),l+n-r>9007199254740991)throw FS("Maximum allowed length exceeded");for(o=og(s,r),i=0;i<r;i++)(a=c+i)in s&&ev(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 PS=function(){function e(e,t){var n=this;this.$toolbar=co('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Qs((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=co(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()})),r.append(o),UD((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=el(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=uS();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 wS(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 wS,o=this.menus,i=o[e];if(null==i){var a=Mw[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=CS(i,r);this.toolbarItems.push(u),Yb.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=Wb.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}();function jS(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 AS(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=Hm({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new PS(n,i);return Wb.set(a,e),qb.set(e,a),a}var NS=Dh.EXISTS,IS=Jp.f,RS=Function.prototype,LS=Xd(RS.toString),MS=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zS=Xd(MS.exec);function $S(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,E=e.onSuccess,D=void 0===E?function(e,t){}:E,C=e.onError,x=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,S=e.onProgress,A=void 0===S?function(e){}:S;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=Vm(e.split("#"),2),r=n[0],o=n[1],i=[];Ci(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 Yc({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Nd,{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;D(e,void 0===n?{}:n),k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("error",(function(e){console.error("wangEditor file upload error",e.stack)})),k.on("upload-error",(function(e,t,n){x(e,t,n),k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){x(e,t),k.removeFile(e.id)})),k}function HS(e){return HS="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},HS(e)}function US(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VS(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){US(e,t,n[t])}))}return e}function WS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qS(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 GS(e,t,n){return t&&qS(e.prototype,t),n&&qS(e,n),e}function KS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YS(e,t){if(t&&("object"===HS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return KS(e)}function XS(e){return XS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},XS(e)}function ZS(e,t){return ZS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZS(e,t)}function JS(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&&ZS(e,t)}Ap&&!NS&&IS(RS,"name",{configurable:!0,get:function(){try{return zS(MS,LS(this))[1]}catch(lle){return""}}});var QS={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)}},eA=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};WS(this,e),this.init(t,n)}return GS(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||QS,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,VS({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),tA=function(){function e(){WS(this,e),this.observers={}}return GS(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 nA(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function rA(e){return null==e?"":""+e}function oA(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function iA(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 aA(e,t,n){var r=iA(e,t,Object);r.obj[r.k]=n}function uA(e,t){var n=iA(e,t),r=n.obj,o=n.k;if(r)return r[o]}function sA(e,t,n){var r=uA(e,n);return void 0!==r?r:uA(t,n)}function lA(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]):lA(e[r],t[r],n):e[r]=t[r]);return e}function cA(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function dA(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return fA[e]})):e}var pA="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function hA(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?hA(s,l,n):void 0}o=o[r[i]]}return o}}var gA=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return WS(this,t),n=YS(this,XS(t).call(this)),pA&&tA.call(KS(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 JS(t,tA),GS(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=uA(this.data,a);return u||!i||"string"!=typeof n?u:hA(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),aA(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=uA(this.data,a)||{};r?lA(u,n,o):u=VS({},u,n),aA(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?VS({},{},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}(),vA={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}},yA={},mA=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return WS(this,t),n=YS(this,XS(t).call(this)),pA&&tA.call(KS(n)),oA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,KS(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=eA.create("translator"),n}return JS(t,tA),GS(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"!==HS(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,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&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,VS({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var D="[object Array]"===y,C=D?[]:{},x=D?v:g;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var A="".concat(x).concat(i).concat(S);C[S]=this.translate(A,VS({},n,{joinArrays:!1,ns:s})),C[S]===A&&(C[S]=h[S])}h=C}}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),_=B?this.pluralResolver.getSuffix(c,n.count):"",T=n["defaultValue".concat(_)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=T),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=F&&T!==h&&this.options.updateMissing;if(k||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?T:h),i){var I=this.resolve(u,VS({},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 R=[],L=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&L&&L[0])for(var M=0;M<L.length;M++)R.push(L[M]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.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?R.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||T)}))})):z(R,u,T))}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(VS({},n,{interpolation:VS({},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=VS({},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=vA.handle(d,e,t,this.options&&this.options.postProcessPassResolved?VS({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,!yA["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(yA["".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 bA(e){return e.charAt(0).toUpperCase()+e.slice(1)}var wA=function(){function e(t){WS(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eA.create("languageUtils")}return GS(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]=bA(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]=bA(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=bA(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}(),EA=[{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}],DA={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 CA(){var e={};return EA.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:DA[t.fc]}}))})),e}var xA=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};WS(this,e),this.languageUtils=t,this.options=n,this.logger=eA.create("pluralResolver"),this.rules=CA()}return GS(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}(),SA=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};WS(this,e),this.logger=eA.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return GS(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:dA,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?cA(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?cA(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?cA(t.nestingPrefix):t.nestingPrefixEscaped||cA("$t("),this.nestingSuffix=t.nestingSuffix?cA(t.nestingSuffix):t.nestingSuffixEscaped||cA(")"),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=sA(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,VS({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(sA(t,s,a),l,n,VS({},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,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.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=rA(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=VS({},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=VS({},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=rA(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,VS({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),AA=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return WS(this,t),o=YS(this,XS(t).call(this)),pA&&tA.call(KS(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=eA.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return JS(t,tA),GS(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=iA(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||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,VS({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function OA(){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"===HS(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===HS(e[2])||"object"===HS(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 kA(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 BA(){}var FA=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(WS(this,t),e=YS(this,XS(t).call(this)),pA&&tA.call(KS(e)),e.options=kA(n),e.services={},e.logger=eA,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),YS(e,KS(e));setTimeout((function(){e.init(n,r)}),0)}return e}return JS(t,tA),GS(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=VS({},OA(),this.options,kA(t)),this.format=this.options.interpolation.format,n||(n=BA),!this.options.isClone){this.modules.logger?eA.init(r(this.modules.logger),this.options):eA.init(null,this.options);var o=new wA(this.options);this.store=new gA(this.options.resources,this.options);var i=this.services;i.logger=eA,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new xA(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new SA(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new AA(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 mA(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=nA(),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]:BA,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=nA();return e||(e=this.languages),t||(t=this.options.ns),n||(n=BA),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&&vA.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=nA();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"!==HS(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=VS({},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=nA();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=nA();"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]:BA,o=VS({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=VS({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new mA(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}(),_A=new FA,TA="translation";function PA(e,t){_A.addResourceBundle(e,TA,t,!0,!0)}_A.init({lng:"zh-CN",resources:{}});var jA=_A.t.bind(_A),NA={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},IA={editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}};PA("en",NA),PA("zh-CN",IA),PA("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"}}),PA("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 RA={type:"paragraph",renderElem:function(e,t,n){return Wa("p",null,t)}},LA={type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}},MA="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function zA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $A(e){var t={exports:{}};return e(t,t.exports),t.exports}var HA,UA,VA=function(e){return e&&e.Math==Math&&e},WA=VA("object"==typeof globalThis&&globalThis)||VA("object"==typeof window&&window)||VA("object"==typeof self&&self)||VA("object"==typeof MA&&MA)||function(){return this}()||Function("return this")(),qA=function(e){try{return!!e()}catch(e){return!0}},GA=!qA((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),KA=Function.prototype.call,YA=KA.bind?KA.bind(KA):function(){return KA.apply(KA,arguments)},XA={}.propertyIsEnumerable,ZA=Object.getOwnPropertyDescriptor,JA=ZA&&!XA.call({1:2},1)?function(e){var t=ZA(this,e);return!!t&&t.enumerable}:XA,QA={f:JA},eO=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tO=Function.prototype,nO=tO.bind,rO=tO.call,oO=nO&&nO.bind(rO),iO=nO?function(e){return e&&oO(rO,e)}:function(e){return e&&function(){return rO.apply(e,arguments)}},aO=iO({}.toString),uO=iO("".slice),sO=function(e){return uO(aO(e),8,-1)},lO=WA.Object,cO=iO("".split),fO=qA((function(){return!lO("z").propertyIsEnumerable(0)}))?function(e){return"String"==sO(e)?cO(e,""):lO(e)}:lO,dO=WA.TypeError,pO=function(e){if(null==e)throw dO("Can't call method on "+e);return e},hO=function(e){return fO(pO(e))},gO=function(e){return"function"==typeof e},vO=function(e){return"object"==typeof e?null!==e:gO(e)},yO=function(e){return gO(e)?e:void 0},mO=function(e,t){return arguments.length<2?yO(WA[e]):WA[e]&&WA[e][t]},bO=iO({}.isPrototypeOf),wO=mO("navigator","userAgent")||"",EO=WA.process,DO=WA.Deno,CO=EO&&EO.versions||DO&&DO.version,xO=CO&&CO.v8;xO&&(UA=(HA=xO.split("."))[0]>0&&HA[0]<4?1:+(HA[0]+HA[1])),!UA&&wO&&(!(HA=wO.match(/Edge\/(\d+)/))||HA[1]>=74)&&(HA=wO.match(/Chrome\/(\d+)/))&&(UA=+HA[1]);var SO=UA,AO=!!Object.getOwnPropertySymbols&&!qA((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&SO&&SO<41})),OO=AO&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kO=WA.Object,BO=OO?function(e){return"symbol"==typeof e}:function(e){var t=mO("Symbol");return gO(t)&&bO(t.prototype,kO(e))},FO=WA.String,_O=function(e){try{return FO(e)}catch(e){return"Object"}},TO=WA.TypeError,PO=function(e){if(gO(e))return e;throw TO(_O(e)+" is not a function")},jO=function(e,t){var n=e[t];return null==n?void 0:PO(n)},NO=WA.TypeError,IO=Object.defineProperty,RO=function(e,t){try{IO(WA,e,{value:t,configurable:!0,writable:!0})}catch(p){WA[e]=t}return t},LO=WA["__core-js_shared__"]||RO("__core-js_shared__",{}),MO=$A((function(e){(e.exports=function(e,t){return LO[e]||(LO[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),zO=WA.Object,$O=function(e){return zO(pO(e))},HO=iO({}.hasOwnProperty),UO=Object.hasOwn||function(e,t){return HO($O(e),t)},VO=0,WO=Math.random(),qO=iO(1..toString),GO=function(e){return"Symbol("+(void 0===e?"":e)+")_"+qO(++VO+WO,36)},KO=MO("wks"),YO=WA.Symbol,XO=YO&&YO.for,ZO=OO?YO:YO&&YO.withoutSetter||GO,JO=function(e){if(!UO(KO,e)||!AO&&"string"!=typeof KO[e]){var t="Symbol."+e;AO&&UO(YO,e)?KO[e]=YO[e]:KO[e]=OO&&XO?XO(t):ZO(t)}return KO[e]},QO=WA.TypeError,ek=JO("toPrimitive"),tk=function(e,t){if(!vO(e)||BO(e))return e;var n,r=jO(e,ek);if(r){if(void 0===t&&(t="default"),n=YA(r,e,t),!vO(n)||BO(n))return n;throw QO("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&gO(n=e.toString)&&!vO(r=YA(n,e)))return r;if(gO(n=e.valueOf)&&!vO(r=YA(n,e)))return r;if("string"!==t&&gO(n=e.toString)&&!vO(r=YA(n,e)))return r;throw NO("Can't convert object to primitive value")}(e,t)},nk=function(e){var t=tk(e,"string");return BO(t)?t:t+""},rk=WA.document,ok=vO(rk)&&vO(rk.createElement),ik=function(e){return ok?rk.createElement(e):{}},ak=!GA&&!qA((function(){return 7!=Object.defineProperty(ik("div"),"a",{get:function(){return 7}}).a})),uk=Object.getOwnPropertyDescriptor,sk={f:GA?uk:function(e,t){if(e=hO(e),t=nk(t),ak)try{return uk(e,t)}catch(e){}if(UO(e,t))return eO(!YA(QA.f,e,t),e[t])}},lk=WA.String,ck=WA.TypeError,fk=function(e){if(vO(e))return e;throw ck(lk(e)+" is not an object")},dk=WA.TypeError,pk=Object.defineProperty,hk={f:GA?pk:function(e,t,n){if(fk(e),t=nk(t),fk(n),ak)try{return pk(e,t,n)}catch(e){}if("get"in n||"set"in n)throw dk("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},gk=GA?function(e,t,n){return hk.f(e,t,eO(1,n))}:function(e,t,n){return e[t]=n,e},vk=iO(Function.toString);gO(LO.inspectSource)||(LO.inspectSource=function(e){return vk(e)});var yk,mk,bk,wk=LO.inspectSource,Ek=WA.WeakMap,Dk=gO(Ek)&&/native code/.test(wk(Ek)),Ck=MO("keys"),xk=function(e){return Ck[e]||(Ck[e]=GO(e))},Sk={},Ak=WA.TypeError,Ok=WA.WeakMap;if(Dk||LO.state){var kk=LO.state||(LO.state=new Ok),Bk=iO(kk.get),Fk=iO(kk.has),_k=iO(kk.set);yk=function(e,t){if(Fk(kk,e))throw new Ak("Object already initialized");return t.facade=e,_k(kk,e,t),t},mk=function(e){return Bk(kk,e)||{}},bk=function(e){return Fk(kk,e)}}else{var Tk=xk("state");Sk[Tk]=!0,yk=function(e,t){if(UO(e,Tk))throw new Ak("Object already initialized");return t.facade=e,gk(e,Tk,t),t},mk=function(e){return UO(e,Tk)?e[Tk]:{}},bk=function(e){return UO(e,Tk)}}var Pk={set:yk,get:mk,has:bk,enforce:function(e){return bk(e)?mk(e):yk(e,{})},getterFor:function(e){return function(t){var n;if(!vO(t)||(n=mk(t)).type!==e)throw Ak("Incompatible receiver, "+e+" required");return n}}},jk=Function.prototype,Nk=GA&&Object.getOwnPropertyDescriptor,Ik=UO(jk,"name"),Rk={EXISTS:Ik,PROPER:Ik&&"something"===function(){}.name,CONFIGURABLE:Ik&&(!GA||GA&&Nk(jk,"name").configurable)},Lk=$A((function(e){var t=Rk.CONFIGURABLE,n=Pk.get,r=Pk.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;gO(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!UO(i,"name")||t&&i.name!==f)&&gk(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==WA?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:gk(e,n,i)):l?e[n]=i:RO(n,i)})(Function.prototype,"toString",(function(){return gO(this)&&n(this).source||wk(this)}))})),Mk=Math.ceil,zk=Math.floor,$k=function(e){var t=+e;return t!=t||0===t?0:(t>0?zk:Mk)(t)},Hk=Math.max,Uk=Math.min,Vk=function(e,t){var n=$k(e);return n<0?Hk(n+t,0):Uk(n,t)},Wk=Math.min,qk=function(e){return e>0?Wk($k(e),9007199254740991):0},Gk=function(e){return qk(e.length)},Kk=function(e){return function(t,n,r){var o,i=hO(t),a=Gk(i),u=Vk(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}},Yk={includes:Kk(!0),indexOf:Kk(!1)},Xk=Yk.indexOf,Zk=iO([].push),Jk=function(e,t){var n,r=hO(e),o=0,i=[];for(n in r)!UO(Sk,n)&&UO(r,n)&&Zk(i,n);for(;t.length>o;)UO(r,n=t[o++])&&(~Xk(i,n)||Zk(i,n));return i},Qk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eB=Qk.concat("length","prototype"),tB={f:Object.getOwnPropertyNames||function(e){return Jk(e,eB)}},nB={f:Object.getOwnPropertySymbols},rB=iO([].concat),oB=mO("Reflect","ownKeys")||function(e){var t=tB.f(fk(e)),n=nB.f;return n?rB(t,n(e)):t},iB=function(e,t){for(var n=oB(t),r=hk.f,o=sk.f,i=0;i<n.length;i++){var a=n[i];UO(e,a)||r(e,a,o(t,a))}},aB=/#|\.prototype\./,uB=function(e,t){var n=lB[sB(e)];return n==fB||n!=cB&&(gO(t)?qA(t):!!t)},sB=uB.normalize=function(e){return String(e).replace(aB,".").toLowerCase()},lB=uB.data={},cB=uB.NATIVE="N",fB=uB.POLYFILL="P",dB=uB,pB=sk.f,hB=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?WA:l?WA[u]||RO(u,{}):(WA[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=pB(n,r))&&a.value:n[r],!dB(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;iB(i,o)}(e.sham||o&&o.sham)&&gk(i,"sham",!0),Lk(n,r,i,e)}},gB=iO(iO.bind),vB=Array.isArray||function(e){return"Array"==sO(e)},yB={};yB[JO("toStringTag")]="z";var mB="[object z]"===String(yB),bB=JO("toStringTag"),wB=WA.Object,EB="Arguments"==sO(function(){return arguments}()),DB=mB?sO: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=wB(e),bB))?n:EB?sO(t):"Object"==(r=sO(t))&&gO(t.callee)?"Arguments":r},CB=function(){},xB=[],SB=mO("Reflect","construct"),AB=/^\s*(?:class|function)\b/,OB=iO(AB.exec),kB=!AB.exec(CB),BB=function(e){if(!gO(e))return!1;try{return SB(CB,xB,e),!0}catch(e){return!1}},FB=!SB||qA((function(){var e;return BB(BB.call)||!BB(Object)||!BB((function(){e=!0}))||e}))?function(e){if(!gO(e))return!1;switch(DB(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return kB||!!OB(AB,wk(e))}:BB,_B=JO("species"),TB=WA.Array,PB=function(e,t){return new(function(e){var t;return vB(e)&&(t=e.constructor,(FB(t)&&(t===TB||vB(t.prototype))||vO(t)&&null===(t=t[_B]))&&(t=void 0)),void 0===t?TB:t}(e))(0===t?0:t)},jB=iO([].push),NB=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=$O(s),g=fO(h),v=function(e,t){return PO(e),void 0===t?e:gB?gB(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Gk(g),m=0,b=f||PB,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:jB(w,d)}else switch(e){case 4:return!1;case 7:jB(w,d)}return i?-1:r||o?o:w}},IB={forEach:NB(0),map:NB(1),filter:NB(2),some:NB(3),every:NB(4),find:NB(5),findIndex:NB(6),filterReject:NB(7)},RB=JO("species"),LB=function(e){return SO>=51||!qA((function(){var t=[];return(t.constructor={})[RB]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},MB=IB.filter;hB({target:"Array",proto:!0,forced:!LB("filter")},{filter:function(e){return MB(this,e,arguments.length>1?arguments[1]:void 0)}});var zB=mB?{}.toString:function(){return"[object "+DB(this)+"]"};mB||Lk(Object.prototype,"toString",zB,{unsafe:!0});var $B,HB=WA.String,UB=function(e){if("Symbol"===DB(e))throw TypeError("Cannot convert a Symbol value to a string");return HB(e)},VB=function(){var e=fk(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},WB=WA.RegExp,qB=qA((function(){var e=WB("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),GB=qB||qA((function(){return!WB("a","y").sticky})),KB={BROKEN_CARET:qB||qA((function(){var e=WB("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:GB,UNSUPPORTED_Y:qB},YB=Object.keys||function(e){return Jk(e,Qk)},XB=GA?Object.defineProperties:function(e,t){fk(e);for(var n,r=hO(t),o=YB(t),i=o.length,a=0;i>a;)hk.f(e,n=o[a++],r[n]);return e},ZB=mO("document","documentElement"),JB=xk("IE_PROTO"),QB=function(){},eF=function(e){return"<script>"+e+"<\/script>"},tF=function(e){e.write(eF("")),e.close();var t=e.parentWindow.Object;return e=null,t},nF=function(){try{$B=new ActiveXObject("htmlfile")}catch(e){}var e,t;nF="undefined"!=typeof document?document.domain&&$B?tF($B):((t=ik("iframe")).style.display="none",ZB.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(eF("document.F=Object")),e.close(),e.F):tF($B);for(var n=Qk.length;n--;)delete nF.prototype[Qk[n]];return nF()};Sk[JB]=!0;var rF,oF,iF=Object.create||function(e,t){var n;return null!==e?(QB.prototype=fk(e),n=new QB,QB.prototype=null,n[JB]=e):n=nF(),void 0===t?n:XB(n,t)},aF=WA.RegExp,uF=qA((function(){var e=aF(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),sF=WA.RegExp,lF=qA((function(){var e=sF("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),cF=Pk.get,fF=MO("native-string-replace",String.prototype.replace),dF=RegExp.prototype.exec,pF=dF,hF=iO("".charAt),gF=iO("".indexOf),vF=iO("".replace),yF=iO("".slice),mF=(oF=/b*/g,YA(dF,rF=/a/,"a"),YA(dF,oF,"a"),0!==rF.lastIndex||0!==oF.lastIndex),bF=KB.BROKEN_CARET,wF=void 0!==/()??/.exec("")[1];(mF||wF||bF||uF||lF)&&(pF=function(e){var t,n,r,o,i,a,u,s=this,l=cF(s),c=UB(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=YA(pF,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=bF&&s.sticky,h=YA(VB,s),g=s.source,v=0,y=c;if(p&&(h=vF(h,"y",""),-1===gF(h,"g")&&(h+="g"),y=yF(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==hF(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),wF&&(n=new RegExp("^"+g+"$(?!\\s)",h)),mF&&(r=s.lastIndex),o=YA(dF,p?n:s,y),p?o?(o.input=yF(o.input,v),o[0]=yF(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:mF&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),wF&&o&&o.length>1&&YA(fF,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=iF(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var EF=pF;hB({target:"RegExp",proto:!0,forced:/./.exec!==EF},{exec:EF});var DF=Function.prototype,CF=DF.apply,xF=DF.bind,SF=DF.call,AF="object"==typeof Reflect&&Reflect.apply||(xF?SF.bind(CF):function(){return SF.apply(CF,arguments)}),OF=JO("species"),kF=RegExp.prototype,BF=function(e,t,n,r){var o=JO(e),i=!qA((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!qA((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[OF]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=iO(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=iO(e),s=t.exec;return s===EF||s===kF.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Lk(String.prototype,e,s[0]),Lk(kF,o,s[1])}r&&gk(kF[o],"sham",!0)},FF=iO("".charAt),_F=iO("".charCodeAt),TF=iO("".slice),PF=function(e){return function(t,n){var r,o,i=UB(pO(t)),a=$k(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=_F(i,a))<55296||r>56319||a+1===u||(o=_F(i,a+1))<56320||o>57343?e?FF(i,a):r:e?TF(i,a,a+2):o-56320+(r-55296<<10)+65536}},jF={codeAt:PF(!1),charAt:PF(!0)}.charAt,NF=function(e,t,n){return t+(n?jF(e,t).length:1)},IF=Math.floor,RF=iO("".charAt),LF=iO("".replace),MF=iO("".slice),zF=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$F=/\$([$&'`]|\d{1,2})/g,HF=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=$F;return void 0!==o&&(o=$O(o),s=zF),LF(i,s,(function(i,s){var l;switch(RF(s,0)){case"$":return"$";case"&":return e;case"`":return MF(t,0,n);case"'":return MF(t,a);case"<":l=o[MF(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=IF(c/10);return 0===f?i:f<=u?void 0===r[f-1]?RF(s,1):r[f-1]+RF(s,1):i}l=r[c-1]}return void 0===l?"":l}))},UF=WA.TypeError,VF=function(e,t){var n=e.exec;if(gO(n)){var r=YA(n,e,t);return null!==r&&fk(r),r}if("RegExp"===sO(e))return YA(EF,e,t);throw UF("RegExp#exec called on incompatible receiver")},WF=JO("replace"),qF=Math.max,GF=Math.min,KF=iO([].concat),YF=iO([].push),XF=iO("".indexOf),ZF=iO("".slice),JF="$0"==="a".replace(/./,"$0"),QF=!!/./[WF]&&""===/./[WF]("a","$0");BF("replace",(function(e,t,n){var r=QF?"$":"$0";return[function(e,n){var r=pO(this),o=null==e?void 0:jO(e,WF);return o?YA(o,e,r,n):YA(t,UB(r),e,n)},function(e,o){var i=fk(this),a=UB(e);if("string"==typeof o&&-1===XF(o,r)&&-1===XF(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=gO(o);s||(o=UB(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=VF(i,a);if(null===d)break;if(YF(f,d),!l)break;""===UB(d[0])&&(i.lastIndex=NF(a,qk(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=UB((d=f[v])[0]),m=qF(GF($k(d.index),a.length),0),b=[],w=1;w<d.length;w++)YF(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=KF([y],b,m,a);void 0!==E&&YF(D,E);var C=UB(AF(o,void 0,D))}else C=HF(y,a,m,b,E,o);m>=g&&(h+=ZF(a,g,m)+C,g=m+y.length)}return h+ZF(a,g)}]}),!!qA((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!JF||QF);var e_=JO("unscopables"),t_=Array.prototype;null==t_[e_]&&hk.f(t_,e_,{configurable:!0,value:iF(null)});var n_=function(e){t_[e_][e]=!0},r_=IB.find,o_=!0;"find"in[]&&Array(1).find((function(){o_=!1})),hB({target:"Array",proto:!0,forced:o_},{find:function(e){return r_(this,e,arguments.length>1?arguments[1]:void 0)}}),n_("find");var i_=JO("match"),a_=function(e){var t;return vO(e)&&(void 0!==(t=e[i_])?!!t:"RegExp"==sO(e))},u_=WA.TypeError,s_=JO("species"),l_=function(e,t){var n,r=fk(e).constructor;return void 0===r||null==(n=fk(r)[s_])?t:function(e){if(FB(e))return e;throw u_(_O(e)+" is not a constructor")}(n)},c_=function(e,t,n){var r=nk(t);r in e?hk.f(e,r,eO(0,n)):e[r]=n},f_=WA.Array,d_=Math.max,p_=function(e,t,n){for(var r=Gk(e),o=Vk(t,r),i=Vk(void 0===n?r:n,r),a=f_(d_(i-o,0)),u=0;o<i;o++,u++)c_(a,u,e[o]);return a.length=u,a},h_=KB.UNSUPPORTED_Y,g_=Math.min,v_=[].push,y_=iO(/./.exec),m_=iO(v_),b_=iO("".slice);BF("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=UB(pO(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!a_(e))return YA(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=YA(EF,f,r))&&!((a=f.lastIndex)>c&&(m_(s,b_(r,c,i.index)),i.length>1&&i.index<r.length&&AF(v_,s,p_(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&y_(f,"")||m_(s,""):m_(s,b_(r,c)),s.length>o?p_(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:YA(t,this,e,n)}:t,[function(t,n){var o=pO(this),i=null==t?void 0:jO(t,e);return i?YA(i,t,o,n):YA(r,UB(o),t,n)},function(e,o){var i=fk(this),a=UB(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=l_(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(h_?"g":"y"),f=new s(h_?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===VF(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=h_?0:h;var v,y=VF(f,h_?b_(a,h):a);if(null===y||(v=g_(qk(f.lastIndex+(h_?h:0)),a.length))===p)h=NF(a,h,l);else{if(m_(g,b_(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(m_(g,y[m]),g.length===d)return g;h=p=v}}return m_(g,b_(a,p)),g}]}),!!qA((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]})),h_);var w_,E_="\t\n\v\f\r \u2028\u2029\ufeff",D_=iO("".replace),C_="["+E_+"]",x_=RegExp("^"+C_+C_+"*"),S_=RegExp(C_+C_+"*$"),A_=function(e){return function(t){var n=UB(pO(t));return 1&e&&(n=D_(n,x_,"")),2&e&&(n=D_(n,S_,"")),n}},O_={start:A_(1),end:A_(2),trim:A_(3)},k_=Rk.PROPER,B_=O_.trim;function F_(e){return 0===co("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function __(e){return 0===e.length?"":e[0].outerHTML}function T_(e){return e.length?e[0].tagName.toLowerCase():""}function P_(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}hB({target:"String",proto:!0,forced:(w_="trim",qA((function(){return!!E_[w_]()||"
"!=="
"[w_]()||k_&&E_[w_].name!==w_})))},{trim:function(){return B_(this)}}),hB({global:!0},{globalThis:WA}),Ao&&(co.fn.css=Ao),To&&(co.fn.append=To),Po&&(co.fn.prepend=Po),fo&&(co.fn.addClass=fo),po&&(co.fn.removeClass=po),ho&&(co.fn.hasClass=ho),bo&&(co.fn.on=bo),wo&&(co.fn.off=wo),Uo&&(co.fn.focus=Uo),go&&(co.fn.attr=go),vo&&(co.fn.removeAttr=vo),xo&&(co.fn.hide=xo),So&&(co.fn.show=So),No&&(co.fn.parents=No),yo&&(co.fn.dataset=yo),mo&&(co.fn.val=mo),Fo&&(co.fn.text=Fo),Bo&&(co.fn.html=Bo),Ro&&(co.fn.children=Ro),Lo&&(co.fn.remove=Lo),Io&&(co.fn.find=Io),Eo&&(co.fn.width=Eo),Do&&(co.fn.height=Do),ko&&(co.fn.filter=ko),Mo&&(co.fn.empty=Mo);var j_={selector:"p",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},N_=function(e,t){return N_=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])},N_(e,t)
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function I_(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}N_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var R_=function(){return R_=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},R_.apply(this,arguments)};function L_(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 M_(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=a.trys,!((o=o.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 z_(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 $_(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 H_(e){var t=$_(st.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1),n=t[0];if(null==n)return!1;var r=n[0];if(!nt.isElement(r))return!1;if("paragraph"===r.type)return!1;if(""!==pt.string(r))return!1;var o=r.children,i=void 0===o?[]:o;return!!Pt.isText(i[0])&&(Jt.setNodes(e,{type:"paragraph"}),!0)}var U_={renderElems:[RA],elemsToHtml:[LA],parseElemsHtml:[j_],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){H_(r)||t(e)},r.deleteForward=function(e){H_(r)||n(e)},r}},V_=/"/g,W_=iO("".replace),q_=function(e,t,n,r){var o=UB(pO(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+W_(UB(r),V_,""")+'"'),i+">"+o+"</"+t+">"},G_=function(e){return qA((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function K_(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 Y_(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}hB({target:"String",proto:!0,forced:G_("bold")},{bold:function(){return q_(this,"b","","")}}),hB({target:"String",proto:!0,forced:G_("italics")},{italics:function(){return q_(this,"i","","")}}),hB({target:"String",proto:!0,forced:G_("sub")},{sub:function(){return q_(this,"sub","","")}}),hB({target:"String",proto:!0,forced:G_("sup")},{sup:function(){return q_(this,"sup","","")}});var X_={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},Z_=ik("span").classList,J_=Z_&&Z_.constructor&&Z_.constructor.prototype,Q_=J_===Object.prototype?void 0:J_,eT=function(e,t){var n=[][e];return!!n&&qA((function(){n.call(null,t||function(){throw 1},1)}))},tT=IB.forEach,nT=eT("forEach")?[].forEach:function(e){return tT(this,e,arguments.length>1?arguments[1]:void 0)},rT=function(e){if(e&&e.forEach!==nT)try{gk(e,"forEach",nT)}catch(lle){e.forEach=nT}};for(var oT in X_)X_[oT]&&rT(WA[oT]&&WA[oT].prototype);function iT(e,t){return null==e.selection||!!$_(st.nodes(e,{match:function(t){return"pre"===Iw.getNodeType(t)||!!st.isVoid(e,t)},universal:!0}),1)[0]}function aT(e,t){Object.keys(t).forEach((function(t){"text"!==t&&st.removeMark(e,t)}))}rT(Q_),hB({target:"Object",stat:!0,forced:qA((function(){YB(1)}))},{keys:function(e){return YB($O(e))}});var uT=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=st.marks(e);return n?n[t]:!!$_(st.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 iT(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}(),sT='<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>',lT='<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>',cT='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',fT='<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>',dT='<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>',pT='<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>',hT='<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>',gT='<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>',vT='<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>',yT='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',mT='<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>',bT='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',wT='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',ET='<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>',DT='<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>',CT='<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>',xT='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',ST='<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>',AT='<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>',OT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=jA("textStyle.bold"),t.iconSvg=sT,t.hotkey="mod+b",t}return I_(t,e),t}(uT),kT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=jA("textStyle.code"),t.iconSvg=dT,t.hotkey="mod+e",t}return I_(t,e),t}(uT),BT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=jA("textStyle.italic"),t.iconSvg=cT,t.hotkey="mod+i",t}return I_(t,e),t}(uT),FT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=jA("textStyle.through"),t.iconSvg=fT,t.hotkey="mod+shift+x",t}return I_(t,e),t}(uT),_T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=jA("textStyle.underline"),t.iconSvg=lT,t.hotkey="mod+u",t}return I_(t,e),t}(uT),TT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=jA("textStyle.sub"),t.iconSvg=AT,t.hotkey="",t}return I_(t,e),t}(uT),PT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=jA("textStyle.sup"),t.iconSvg=ST,t.hotkey="",t}return I_(t,e),t}(uT),jT=function(){function e(){this.title=jA("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 iT(e)},e.prototype.exec=function(e,t){var n,r,o=st.nodes(e,{match:function(e){return Pt.isText(e)},universal:!0});try{for(var i=z_(o),a=i.next();!a.done;a=i.next())aT(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}(),NT={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=Wa("strong",null,c)),a&&(c=Wa("code",null,c)),o&&(c=Wa("em",null,c)),i&&(c=Wa("u",null,c)),u&&(c=Wa("s",null,c)),s&&(c=Wa("sub",null,c)),l&&(c=Wa("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new OT}},{key:"underline",factory:function(){return new _T}},{key:"italic",factory:function(){return new BT}},{key:"through",factory:function(){return new FT}},{key:"code",factory:function(){return new kT}},{key:"sub",factory:function(){return new TT}},{key:"sup",factory:function(){return new PT}},{key:"clearStyle",factory:function(){return new jT}}],styleToHtml:function(e,t){if(!Pt.isText(e))return t;if(F_(t))return K_(e,t);var n=co(t);if("br"===T_(n))return K_(e,"<br>");var r=n.html();return r=K_(e,r),n.html(r),__(n)},parseStyleHtml:function(e,t,n){var r=co(e);if(!Pt.isText(t))return t;var o=t;return Y_(r,"b,strong")&&(o.bold=!0),Y_(r,"i,em")&&(o.italic=!0),Y_(r,"u")&&(o.underline=!0),Y_(r,"s,strike")&&(o.through=!0),Y_(r,"sub")&&(o.sub=!0),Y_(r,"sup")&&(o.sup=!0),Y_(r,"code")&&(o.code=!0),o}};function IT(e){return function(t,n,r){return Wa("h"+e,null,n)}}var RT={type:"header1",renderElem:IT(1)},LT={type:"header2",renderElem:IT(2)},MT={type:"header3",renderElem:IT(3)},zT={type:"header4",renderElem:IT(4)},$T={type:"header5",renderElem:IT(5)},HT=Rk.PROPER,UT=RegExp.prototype,VT=UT.toString,WT=iO(VB),qT=qA((function(){return"/a/b"!=VT.call({source:"a",flags:"b"})})),GT=HT&&"toString"!=VT.name;(qT||GT)&&Lk(RegExp.prototype,"toString",(function(){var e=fk(this),t=UB(e.source),n=e.flags;return"/"+t+"/"+UB(void 0===n&&bO(UT,e)&&!("flags"in UT)?WT(e):n)}),{unsafe:!0});var KT,YT=WA.TypeError,XT=function(e){if(a_(e))throw YT("The method doesn't accept regular expressions");return e},ZT=JO("match"),JT=function(e){var t=/./;try{"/./"[e](t)}catch(p){try{return t[ZT]=!1,"/./"[e](t)}catch(e){}}return!1},QT=sk.f,eP=iO("".startsWith),tP=iO("".slice),nP=Math.min,rP=JT("startsWith");function oP(e){var t=$_(st.nodes(e,{match:function(e){return Iw.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=$_(n,1)[0];return Iw.getNodeType(r)}function iP(e){return null==e.selection||!$_(st.nodes(e,{match:function(e){var t=Iw.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function aP(e,t){t&&Jt.setNodes(e,{type:t})}hB({target:"String",proto:!0,forced:!(!rP&&(KT=QT(String.prototype,"startsWith"),KT&&!KT.writable))&&!rP},{startsWith:function(e){var t=UB(pO(this));XT(e);var n=qk(nP(arguments.length>1?arguments[1]:void 0,t.length)),r=UB(e);return eP?eP(t,r,n):tP(t,n,n+r.length)===r}});var uP=function(){function e(){this.title=jA("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:jA("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 oP(e)},e.prototype.isDisabled=function(e){return iP(e)},e.prototype.exec=function(e,t){aP(e,t.toString())},e}(),sP=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return oP(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return iP(e)},e.prototype.exec=function(e,t){var n=this.type;aP(e,t===n?"paragraph":n)},e}(),lP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return I_(t,e),t}(sP),cP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return I_(t,e),t}(sP),fP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return I_(t,e),t}(sP),dP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return I_(t,e),t}(sP),pP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return I_(t,e),t}(sP),hP={key:"headerSelect",factory:function(){return new uP}},gP={key:"header1",factory:function(){return new lP}},vP={key:"header2",factory:function(){return new cP}},yP={key:"header3",factory:function(){return new fP}},mP={key:"header4",factory:function(){return new dP}},bP={key:"header5",factory:function(){return new pP}};function wP(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function EP(e){return function(t,n,r){var o=co(t);return 0===(n=n.filter((function(e){return!!Pt.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var DP={renderElems:[RT,LT,MT,zT,$T],elemsToHtml:[{type:"header1",elemToHtml:wP(1)},{type:"header2",elemToHtml:wP(2)},{type:"header3",elemToHtml:wP(3)},{type:"header4",elemToHtml:wP(4)},{type:"header5",elemToHtml:wP(5)}],parseElemsHtml:[{selector:"h1",parseElemHtml:EP(1)},{selector:"h2",parseElemHtml:EP(2)},{selector:"h3",parseElemHtml:EP(3)},{selector:"h4",parseElemHtml:EP(4)},{selector:"h5",parseElemHtml:EP(5)}],menus:[hP,gP,vP,yP,mP,bP],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=$_(st.nodes(n,{match:function(e){return Iw.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&Iw.isSelectionAtLineEnd(e,r[1])?Jt.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},CP=Object.assign,xP=Object.defineProperty,SP=iO([].concat),AP=!CP||qA((function(){if(GA&&1!==CP({b:1},CP(xP({},"a",{enumerable:!0,get:function(){xP(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!=CP({},e)[n]||YB(CP({},t)).join("")!=r}))?function(e,t){for(var n=$O(e),r=arguments.length,o=1,i=nB.f,a=QA.f;r>o;)for(var u,s=fO(arguments[o++]),l=i?SP(YB(s),i(s)):YB(s),c=l.length,f=0;c>f;)u=l[f++],GA&&!YA(a,s,u)||(n[u]=s[u]);return n}:CP;function OP(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}hB({target:"Object",stat:!0,forced:Object.assign!==AP},{assign:AP});var kP={selector:"font",preParseHtml:function(e){var t=co(e);if("font"!==T_(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},BP=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=st.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||!!$_(st.nodes(e,{match:function(t){return"pre"===Iw.getNodeType(t)||!!st.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=co('<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=co(r).attr("data-value");"0"===o?st.removeMark(e,t):st.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=co('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=co('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=jA("color.default")),"bgColor"===t&&(a=jA("color.clear"));var u=co('\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}(),FP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("color.color"),t.iconSvg=gT,t.mark="color",t}return I_(t,e),t}(BP),_P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("color.bgColor"),t.iconSvg=vT,t.mark="bgColor",t}return I_(t,e),t}(BP),TP=["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)"],PP={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&OP(i,{color:r}),o&&OP(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Pt.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((F_(t)||"span"!==T_(n=co(t)))&&(n=co("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),__(n)):t},preParseHtml:[kP],parseStyleHtml:function(e,t,n){var r=co(e);if(!Pt.isText(t))return t;var o=t,i=P_(r,"color");i&&(o.color=i);var a=P_(r,"background-color");return a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new FP},config:{colors:TP}},{key:"bgColor",factory:function(){return new _P},config:{colors:TP}}]},jP=function(e){if("string"!=typeof e)return!1;var t=e.match(NP);if(!t)return!1;var n=t[1];return!!n&&!(!IP.test(n)&&!RP.test(n))},NP=/^(?:\w+:)?\/\/(\S+)$/,IP=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,RP=/^[^\s\.]+\.\S{2,}$/,LP=Yk.includes;function MP(e){return void 0===e&&(e="r"),e+"-"+xi()}function zP(e){return e.replace(/</g,"<").replace(/>/g,">")}function $P(e,t,n,r){return L_(this,void 0,void 0,(function(){var o,i;return M_(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 HP(e,t,n){return L_(this,void 0,void 0,(function(){var r;return M_(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 UP(e){return null==e.selection||!!Iw.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function VP(e,t){return{type:"link",url:zP(e),children:t?[{text:t}]:[]}}function WP(e,t,n){return L_(this,void 0,void 0,(function(){var r,o,i;return M_(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),UP(e)?[2]:[4,$P("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,HP("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(At.isCollapsed(o)?(e.insertText(" "),i=VP(r,t),Jt.insertNodes(e,i),e.insertFragment([{text:" "}])):st.string(e,o)!==t?(e.deleteFragment(),i=VP(r,t),Jt.insertNodes(e,i)):(i=VP(r),Jt.wrapNodes(e,i,{split:!0}),Jt.collapse(e,{edge:"end"}))),[2]}}))}))}hB({target:"Array",proto:!0},{includes:function(e){return LP(this,e,arguments.length>1?arguments[1]:void 0)}}),n_("includes");var qP={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Wa("a",{href:o,target:void 0===i?"_blank":i},t)}},GP={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>"}},KP={selector:"a",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return!!Pt.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 YP(){return MP("w-e-insert-link")}var XP=function(){function e(){this.title=jA("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=YP(),this.urlInputId=YP(),this.buttonId=YP()}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 UP(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=$_(gS(jA("link.text"),r),2),u=a[0],s=a[1],l=co(s),c=$_(gS(jA("link.url"),o),2),f=c[0],d=c[1],p=co(d),h=$_(vS(i,jA("common.ok")),1)[0];if(null==this.$content){var g=co("<div></div>");g.on("click","#"+i,(function(t){t.preventDefault();var n=g.find("#"+r).val(),i=g.find("#"+o).val();WP(e,n,i),e.hidePanelOrModal()})),this.$content=g}var v=this.$content;if(v.empty(),v.append(u),v.append(f),v.append(h),null==t||At.isCollapsed(t))l.val("");else{var y=st.string(e,t);l.val(y)}return p.val(""),setTimeout((function(){l.focus()})),v[0]},e}();function ZP(){return MP("w-e-update-link")}var JP=function(){function e(){this.title=jA("link.edit"),this.iconSvg=pT,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=ZP(),this.buttonId=ZP()}return e.prototype.getSelectedLinkElem=function(e){var t=Iw.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 Iw.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=$_(gS(jA("link.url"),t),2),o=r[0],i=r[1],a=co(i),u=$_(vS(n,jA("common.ok")),1)[0];if(null==this.$content){var s=co("<div></div>");s.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=Iw.getSelectedNodeByType(e,"link"),o=r?pt.string(r):"",i=s.find("#"+t).val();!function(e,t,n){L_(this,void 0,void 0,(function(){var r,o;return M_(this,(function(i){switch(i.label){case 0:return n?[4,$P("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,HP("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:zP(r)},Jt.setNodes(e,o,{match:function(e){return Iw.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=s}var l=this.$content;l.empty(),l.append(o),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout((function(){a.focus()})),l[0]},e}(),QP=function(){function e(){this.title=jA("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==Iw.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Jt.unwrapNodes(e,{match:function(e){return Iw.checkNodeType(e,"link")}})},e}(),ej=function(){function e(){this.title=jA("link.view"),this.iconSvg=hT,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=Iw.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}(),tj={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},nj={renderElems:[qP],elemsToHtml:[GP],parseElemsHtml:[KP],menus:[{key:"insertLink",factory:function(){return new XP},config:tj},{key:"editLink",factory:function(){return new JP},config:tj},{key:"unLink",factory:function(){return new QP}},{key:"viewLink",factory:function(){return new ej}}],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(jP(t)){if(!UP(o)){var r=o.selection;if(null!=r){var i=st.string(o,r);WP(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=$_(e,2),n=t[0],i=t[1];return"link"!==Iw.getNodeType(n)?r([n,i]):""===pt.string(n)?Jt.removeNodes(o,{at:i}):r([n,i])},o}},rj=iO(1..valueOf),oj=WA.RangeError,ij=WA.RangeError,aj=WA.String,uj=Math.floor,sj=iO((function(e){var t=UB(pO(this)),n="",r=$k(e);if(r<0||r==1/0)throw oj("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),lj=iO("".slice),cj=iO(1..toFixed),fj=function(e,t,n){return 0===t?n:t%2==1?fj(e,t-1,n*e):fj(e*e,t/2,n)},dj=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=uj(o/1e7)},pj=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=uj(r/t),r=r%t*1e7},hj=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=aj(e[t]);n=""===n?r:n+sj("0",7-r.length)+r}return n};function gj(e,t){return"w-e-image-container-"+Iw.findKey(e,t).id}function vj(e,t,n,r){var o=co("body"),i=gj(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=co("#"+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=Iw.getHoverbar(e);r&&r.hideAndClean()}var h=Gi((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:R_(R_({},t.style),{width:r+"px",height:i+"px"})};Jt.setNodes(e,a,{at:Iw.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),Wa("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=co(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Wa("div",{className:"w-e-image-dragger left-top"}),Wa("div",{className:"w-e-image-dragger right-top"}),Wa("div",{className:"w-e-image-dragger left-bottom"}),Wa("div",{className:"w-e-image-dragger right-bottom"}))}hB({target:"Number",proto:!0,forced:qA((function(){return"0.000"!==cj(8e-5,3)||"1"!==cj(.9,0)||"1.25"!==cj(1.255,2)||"1000000000000000128"!==cj(0xde0b6b3a7640080,0)}))||!qA((function(){cj({})}))},{toFixed:function(e){var t,n,r,o,i=rj(this),a=$k(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw ij("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return aj(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*fj(2,69,1))-69)<0?i*fj(2,-t,1):i/fj(2,t,1),n*=4503599627370496,(t=52-t)>0){for(dj(u,0,n),r=a;r>=7;)dj(u,1e7,0),r-=7;for(dj(u,fj(10,r,1),0),r=t-1;r>=23;)pj(u,1<<23),r-=23;pj(u,1<<r),dj(u,1,1),pj(u,2),l=hj(u)}else dj(u,0,n),dj(u,1<<-t,0),l=hj(u)+sj("0",a);return a>0?s+((o=l.length)<=a?"0."+sj("0",a-o)+l:lj(l,0,o-a)+"."+lj(l,o-a)):s+l}});var yj={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=Iw.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=Wa("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?vj(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};o&&(a.width=o),i&&(a.height=i);var u=gj(e,t);return Wa("div",{id:u,style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},mj={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+'"/>'}},bj={selector:"img",parseElemHtml:function(e,t,n){var r=co(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:P_(r,"width"),height:P_(r,"height")},children:[{text:""}]}}};function wj(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),L_(this,void 0,void 0,(function(){var i,a;return M_(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 Ej(e,t,n){return L_(this,void 0,void 0,(function(){var r;return M_(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 Dj(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),L_(this,void 0,void 0,(function(){var o,i,a;return M_(this,(function(u){switch(u.label){case 0:return[4,wj("insertImage",e,t,n,r)];case 1:return u.sent()?[4,Ej("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:zP(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),Iw.getSelectedNodeByType(e,"image")&&e.move(1),xj(e)||(Jt.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function Cj(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),L_(this,void 0,void 0,(function(){var i,a,u,s,l,c;return M_(this,(function(f){switch(f.label){case 0:return[4,wj("editImage",e,t,n,r)];case 1:return f.sent()?[4,Ej("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=Iw.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:R_(R_({},void 0===u?{}:u),o)},Jt.setNodes(e,s,{match:function(e){return Iw.checkNodeType(e,"image")}}),l=Iw.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}function xj(e){var t=e.selection;return null==t||!At.isCollapsed(t)||!!$_(st.nodes(e,{match:function(t){var n=Iw.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!st.isVoid(e,t)},universal:!0}),1)[0]}function Sj(){return MP("w-e-insert-image")}var Aj=function(){function e(){this.title=jA("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=Sj(),this.altInputId=Sj(),this.hrefInputId=Sj(),this.buttonId=Sj()}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 xj(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=$_(gS(jA("image.src"),r),2),s=u[0],l=u[1],c=co(l),f=$_(gS(jA("image.desc"),o),2),d=f[0],p=f[1],h=co(p),g=$_(gS(jA("image.link"),i),2),v=g[0],y=g[1],m=co(y),b=$_(vS(a,jA("common.ok")),1)[0];if(null==this.$content){var w=co("<div></div>");w.on("click","#"+a,(function(n){n.preventDefault();var a=w.find("#"+r).val().trim(),u=w.find("#"+o).val().trim(),s=w.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=w}var E=this.$content;return E.empty(),E.append(s),E.append(d),E.append(v),E.append(b),c.val(""),h.val(""),m.val(""),setTimeout((function(){c.focus()})),E[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||Dj(e,t,n,r))},e}(),Oj=function(){function e(){this.title=jA("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==Iw.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Jt.removeNodes(e,{match:function(e){return Iw.checkNodeType(e,"image")}})},e}();function kj(){return MP("w-e-edit-image")}var Bj=function(){function e(){this.title=jA("image.edit"),this.iconSvg=pT,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=kj(),this.altInputId=kj(),this.hrefInputId=kj(),this.buttonId=kj()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return Iw.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||!At.isCollapsed(t)||null==Iw.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=$_(gS(jA("image.src"),r),2),l=s[0],c=s[1],f=co(c),d=$_(gS(jA("image.desc"),o),2),p=d[0],h=d[1],g=co(h),v=$_(gS(jA("image.link"),i),2),y=v[0],m=v[1],b=co(m),w=$_(vS(a,jA("common.ok")),1)[0];if(null==this.$content){var E=co("<div></div>");E.on("click","#"+a,(function(n){n.preventDefault();var a=E.find("#"+r).val(),u=E.find("#"+o).val(),s=E.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=E}var D=this.$content;D.empty(),D.append(l),D.append(p),D.append(y),D.append(w);var C=u,x=C.src,S=C.alt,A=void 0===S?"":S,O=C.href,k=void 0===O?"":O;return f.val(x),g.val(A),b.val(k),setTimeout((function(){f.focus()})),D[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)||Cj(e,t,n,r,o))},e}(),Fj=function(){function e(){this.title=jA("image.viewLink"),this.iconSvg=hT,this.tag="button"}return e.prototype.getValue=function(e){var t=Iw.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}(),_j=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 Iw.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=Iw.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:R_(R_({},void 0===o?{}:o),{width:this.value,height:""})};Jt.setNodes(e,i,{match:function(e){return Iw.checkNodeType(e,"image")}})}}},e}(),Tj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return I_(t,e),t}(_j),Pj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return I_(t,e),t}(_j),jj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return I_(t,e),t}(_j),Nj={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Ij={renderElems:[yj],elemsToHtml:[mj],parseElemsHtml:[bj],menus:[{key:"insertImage",factory:function(){return new Aj},config:Nj},{key:"deleteImage",factory:function(){return new Oj}},{key:"editImage",factory:function(){return new Bj},config:Nj},{key:"viewImageLink",factory:function(){return new Fj}},{key:"imageWidth30",factory:function(){return new Tj}},{key:"imageWidth50",factory:function(){return new Pj}},{key:"imageWidth100",factory:function(){return new jj}}],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}},Rj={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=e.checked,i=Wa("div",{style:{margin:"5px 0"}},Wa("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Wa("input",{type:"checkbox",checked:o,disabled:r,on:{change:function(t){var r=Iw.findPath(n,e),o={checked:t.target.checked};Jt.setNodes(n,o,{at:r})}}})),Wa("span",null,t));return i}},Lj=function(){function e(){this.title=jA("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!!Iw.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!Iw.getSelectedElems(e).some((function(t){if(st.isVoid(e,t)&&st.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","bulleted-list","numbered-list"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);Jt.setNodes(e,{type:n?"paragraph":"todo"})},e}(),Mj={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=co(e);0===(t=t.filter((function(e){return!!Pt.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}}},zj={renderElems:[Rj],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=co(e).find("li"),n=co('<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:[Mj],menus:[{key:"todo",factory:function(){return new Lj}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&At.isCollapsed(r)){var o=Iw.getSelectedNodeByType(e,"todo");if(o&&0===pt.string(o).length)return void Jt.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},$j={type:"blockquote",renderElem:function(e,t,n){return Wa("blockquote",null,t)}},Hj={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},Uj={selector:"blockquote",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Vj=function(){function e(){this.title=jA("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!!Iw.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!$_(st.nodes(e,{match:function(e){var t=Iw.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";Jt.setNodes(e,{type:n},{mode:"highest"})}},e}(),Wj={key:"blockquote",factory:function(){return new Vj}},qj=iO([].slice),Gj=LB("slice"),Kj=JO("species"),Yj=WA.Array,Xj=Math.max;hB({target:"Array",proto:!0,forced:!Gj},{slice:function(e,t){var n,r,o,i=hO(this),a=Gk(i),u=Vk(e,a),s=Vk(void 0===t?a:t,a);if(vB(i)&&(n=i.constructor,(FB(n)&&(n===Yj||vB(n.prototype))||vO(n)&&null===(n=n[Kj]))&&(n=void 0),n===Yj||void 0===n))return qj(i,u,s);for(r=new(void 0===n?Yj:n)(Xj(s-u,0)),o=0;u<s;u++,o++)u in i&&c_(r,o,i[u]);return r.length=o,r}});var Zj={renderElems:[$j],elemsToHtml:[Hj],parseElemsHtml:[Uj],menus:[Wj],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=$_(st.nodes(e,{match:function(e){return Iw.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=Iw.findPath(e,a),s=st.end(e,u);if(Et.equals(s,o.focus)){var l=pt.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void Jt.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},Jj=function(){function e(){this.title=jA("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||!!$_(st.nodes(e,{match:function(t){return"pre"===Iw.getNodeType(t)||!!st.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=co('<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=co(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=co("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),Qj={menus:[{key:"emotion",factory:function(){return new Jj},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},eN={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},tN={selector:"font",preParseHtml:function(e){var t=co(e);if("font"!==T_(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",eN[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},nN=iO("".indexOf);hB({target:"String",proto:!0,forced:!JT("includes")},{includes:function(e){return!!~nN(UB(pO(this)),UB(XT(e)),arguments.length>1?arguments[1]:void 0)}});var rN,oN,iN=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=st.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!$_(st.nodes(e,{match:function(t){return"pre"===Iw.getNodeType(t)||!!st.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}(),aN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("fontSize.title"),t.iconSvg=yT,t.mark="fontSize",t}return I_(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:jA("fontSize.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},t}(iN),uN=function(e){return e&&e.Math==Math&&e},sN=uN("object"==typeof globalThis&&globalThis)||uN("object"==typeof window&&window)||uN("object"==typeof self&&self)||uN("object"==typeof MA&&MA)||function(){return this}()||Function("return this")(),lN=Function.prototype,cN=lN.apply,fN=lN.bind,dN=lN.call,pN="object"==typeof Reflect&&Reflect.apply||(fN?dN.bind(cN):function(){return dN.apply(cN,arguments)}),hN=Function.prototype,gN=hN.bind,vN=hN.call,yN=gN&&gN.bind(vN),mN=gN?function(e){return e&&yN(vN,e)}:function(e){return e&&function(){return vN.apply(e,arguments)}},bN=function(e){return"function"==typeof e},wN=function(e){try{return!!e()}catch(e){return!0}},EN=!wN((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),DN=Function.prototype.call,CN=DN.bind?DN.bind(DN):function(){return DN.apply(DN,arguments)},xN={}.propertyIsEnumerable,SN=Object.getOwnPropertyDescriptor,AN=SN&&!xN.call({1:2},1)?function(e){var t=SN(this,e);return!!t&&t.enumerable}:xN,ON={f:AN},kN=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},BN=mN({}.toString),FN=mN("".slice),_N=function(e){return FN(BN(e),8,-1)},TN=sN.Object,PN=mN("".split),jN=wN((function(){return!TN("z").propertyIsEnumerable(0)}))?function(e){return"String"==_N(e)?PN(e,""):TN(e)}:TN,NN=sN.TypeError,IN=function(e){if(null==e)throw NN("Can't call method on "+e);return e},RN=function(e){return jN(IN(e))},LN=function(e){return"object"==typeof e?null!==e:bN(e)},MN={},zN=function(e){return bN(e)?e:void 0},$N=function(e,t){return arguments.length<2?zN(MN[e])||zN(sN[e]):MN[e]&&MN[e][t]||sN[e]&&sN[e][t]},HN=mN({}.isPrototypeOf),UN=$N("navigator","userAgent")||"",VN=sN.process,WN=sN.Deno,qN=VN&&VN.versions||WN&&WN.version,GN=qN&&qN.v8;GN&&(oN=(rN=GN.split("."))[0]>0&&rN[0]<4?1:+(rN[0]+rN[1])),!oN&&UN&&(!(rN=UN.match(/Edge\/(\d+)/))||rN[1]>=74)&&(rN=UN.match(/Chrome\/(\d+)/))&&(oN=+rN[1]);var KN=oN,YN=!!Object.getOwnPropertySymbols&&!wN((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&KN&&KN<41})),XN=YN&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ZN=sN.Object,JN=XN?function(e){return"symbol"==typeof e}:function(e){var t=$N("Symbol");return bN(t)&&HN(t.prototype,ZN(e))},QN=sN.String,eI=sN.TypeError,tI=function(e){if(bN(e))return e;throw eI(function(e){try{return QN(e)}catch(e){return"Object"}}(e)+" is not a function")},nI=sN.TypeError,rI=Object.defineProperty,oI=sN["__core-js_shared__"]||function(e,t){try{rI(sN,e,{value:t,configurable:!0,writable:!0})}catch(p){sN[e]=t}return t}("__core-js_shared__",{}),iI=$A((function(e){(e.exports=function(e,t){return oI[e]||(oI[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),aI=sN.Object,uI=function(e){return aI(IN(e))},sI=mN({}.hasOwnProperty),lI=Object.hasOwn||function(e,t){return sI(uI(e),t)},cI=0,fI=Math.random(),dI=mN(1..toString),pI=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dI(++cI+fI,36)},hI=iI("wks"),gI=sN.Symbol,vI=gI&&gI.for,yI=XN?gI:gI&&gI.withoutSetter||pI,mI=function(e){if(!lI(hI,e)||!YN&&"string"!=typeof hI[e]){var t="Symbol."+e;YN&&lI(gI,e)?hI[e]=gI[e]:hI[e]=XN&&vI?vI(t):yI(t)}return hI[e]},bI=sN.TypeError,wI=mI("toPrimitive"),EI=function(e,t){if(!LN(e)||JN(e))return e;var n,r,o=null==(n=e[wI])?void 0:tI(n);if(o){if(void 0===t&&(t="default"),r=CN(o,e,t),!LN(r)||JN(r))return r;throw bI("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&bN(n=e.toString)&&!LN(r=CN(n,e)))return r;if(bN(n=e.valueOf)&&!LN(r=CN(n,e)))return r;if("string"!==t&&bN(n=e.toString)&&!LN(r=CN(n,e)))return r;throw nI("Can't convert object to primitive value")}(e,t)},DI=function(e){var t=EI(e,"string");return JN(t)?t:t+""},CI=sN.document,xI=LN(CI)&&LN(CI.createElement),SI=function(e){return xI?CI.createElement(e):{}},AI=!EN&&!wN((function(){return 7!=Object.defineProperty(SI("div"),"a",{get:function(){return 7}}).a})),OI=Object.getOwnPropertyDescriptor,kI={f:EN?OI:function(e,t){if(e=RN(e),t=DI(t),AI)try{return OI(e,t)}catch(e){}if(lI(e,t))return kN(!CN(ON.f,e,t),e[t])}},BI=/#|\.prototype\./,FI=function(e,t){var n=TI[_I(e)];return n==jI||n!=PI&&(bN(t)?wN(t):!!t)},_I=FI.normalize=function(e){return String(e).replace(BI,".").toLowerCase()},TI=FI.data={},PI=FI.NATIVE="N",jI=FI.POLYFILL="P",NI=FI,II=mN(mN.bind),RI=function(e,t){return tI(e),void 0===t?e:II?II(e,t):function(){return e.apply(t,arguments)}},LI=sN.String,MI=sN.TypeError,zI=function(e){if(LN(e))return e;throw MI(LI(e)+" is not an object")},$I=sN.TypeError,HI=Object.defineProperty,UI={f:EN?HI:function(e,t,n){if(zI(e),t=DI(t),zI(n),AI)try{return HI(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $I("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},VI=EN?function(e,t,n){return UI.f(e,t,kN(1,n))}:function(e,t,n){return e[t]=n,e},WI=kI.f,qI=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 pN(e,this,arguments)};return t.prototype=e.prototype,t},GI=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?sN:d?sN[c]:(sN[c]||{}).prototype,g=f?MN:MN[c]||VI(MN,c,{})[c],v=g.prototype;for(o in t)n=!NI(f?o:c+(d?".":"#")+o,e.forced)&&h&&lI(h,o),a=g[o],n&&(u=e.noTargetGet?(l=WI(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?RI(i,sN):e.wrap&&n?qI(i):p&&bN(i)?mN(i):i,(e.sham||i&&i.sham||a&&a.sham)&&VI(s,"sham",!0),VI(g,o,s),p&&(lI(MN,r=c+"Prototype")||VI(MN,r,{}),VI(MN[r],o,i),e.real&&v&&!v[o]&&VI(v,o,i)))},KI=Array.isArray||function(e){return"Array"==_N(e)},YI=Math.ceil,XI=Math.floor,ZI=function(e){var t=+e;return t!=t||0===t?0:(t>0?XI:YI)(t)},JI=Math.min,QI=function(e){return(t=e.length)>0?JI(ZI(t),9007199254740991):0;var t},eR=function(e,t,n){var r=DI(t);r in e?UI.f(e,r,kN(0,n)):e[r]=n},tR={};tR[mI("toStringTag")]="z";var nR="[object z]"===String(tR),rR=mI("toStringTag"),oR=sN.Object,iR="Arguments"==_N(function(){return arguments}()),aR=nR?_N: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=oR(e),rR))?n:iR?_N(t):"Object"==(r=_N(t))&&bN(t.callee)?"Arguments":r},uR=mN(Function.toString);bN(oI.inspectSource)||(oI.inspectSource=function(e){return uR(e)});var sR=oI.inspectSource,lR=function(){},cR=[],fR=$N("Reflect","construct"),dR=/^\s*(?:class|function)\b/,pR=mN(dR.exec),hR=!dR.exec(lR),gR=function(e){if(!bN(e))return!1;try{return fR(lR,cR,e),!0}catch(e){return!1}},vR=!fR||wN((function(){var e;return gR(gR.call)||!gR(Object)||!gR((function(){e=!0}))||e}))?function(e){if(!bN(e))return!1;switch(aR(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hR||!!pR(dR,sR(e))}:gR,yR=mI("species"),mR=sN.Array,bR=function(e,t){return new(function(e){var t;return KI(e)&&(t=e.constructor,(vR(t)&&(t===mR||KI(t.prototype))||LN(t)&&null===(t=t[yR]))&&(t=void 0)),void 0===t?mR:t}(e))(0===t?0:t)},wR=mI("species"),ER=mI("isConcatSpreadable"),DR=sN.TypeError,CR=KN>=51||!wN((function(){var e=[];return e[ER]=!1,e.concat()[0]!==e})),xR=function(e){return KN>=51||!wN((function(){var t=[];return(t.constructor={})[wR]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("concat"),SR=function(e){if(!LN(e))return!1;var t=e[ER];return void 0!==t?!!t:KI(e)};GI({target:"Array",proto:!0,forced:!CR||!xR},{concat:function(e){var t,n,r,o,i,a=uI(this),u=bR(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(SR(i=-1===t?a:arguments[t])){if(s+(o=QI(i))>9007199254740991)throw DR("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&eR(u,s,i[n])}else{if(s>=9007199254740991)throw DR("Maximum allowed index exceeded");eR(u,s++,i)}return u.length=s,u}});var AR,OR=sN.String,kR=function(e){if("Symbol"===aR(e))throw TypeError("Cannot convert a Symbol value to a string");return OR(e)},BR=Math.max,FR=Math.min,_R=function(e,t){var n=ZI(e);return n<0?BR(n+t,0):FR(n,t)},TR=function(e){return function(t,n,r){var o,i=RN(t),a=QI(i),u=_R(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}},PR={includes:TR(!0),indexOf:TR(!1)},jR={},NR=PR.indexOf,IR=mN([].push),RR=function(e,t){var n,r=RN(e),o=0,i=[];for(n in r)!lI(jR,n)&&lI(r,n)&&IR(i,n);for(;t.length>o;)lI(r,n=t[o++])&&(~NR(i,n)||IR(i,n));return i},LR=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],MR=Object.keys||function(e){return RR(e,LR)},zR=EN?Object.defineProperties:function(e,t){zI(e);for(var n,r=RN(t),o=MR(t),i=o.length,a=0;i>a;)UI.f(e,n=o[a++],r[n]);return e},$R=$N("document","documentElement"),HR=iI("keys"),UR=function(e){return HR[e]||(HR[e]=pI(e))},VR=UR("IE_PROTO"),WR=function(){},qR=function(e){return"<script>"+e+"<\/script>"},GR=function(e){e.write(qR("")),e.close();var t=e.parentWindow.Object;return e=null,t},KR=function(){try{AR=new ActiveXObject("htmlfile")}catch(e){}var e,t;KR="undefined"!=typeof document?document.domain&&AR?GR(AR):((t=SI("iframe")).style.display="none",$R.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(qR("document.F=Object")),e.close(),e.F):GR(AR);for(var n=LR.length;n--;)delete KR.prototype[LR[n]];return KR()};jR[VR]=!0;var YR,XR,ZR,JR=Object.create||function(e,t){var n;return null!==e?(WR.prototype=zI(e),n=new WR,WR.prototype=null,n[VR]=e):n=KR(),void 0===t?n:zR(n,t)},QR=LR.concat("length","prototype"),eL={f:Object.getOwnPropertyNames||function(e){return RR(e,QR)}},tL=sN.Array,nL=Math.max,rL=eL.f,oL="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iL=function(e){try{return rL(e)}catch(e){return function(e,t,n){for(var r=QI(e),o=_R(t,r),i=_R(void 0===n?r:n,r),a=tL(nL(i-o,0)),u=0;o<i;o++,u++)eR(a,u,e[o]);return a.length=u,a}(oL)}},aL={f:function(e){return oL&&"Window"==_N(e)?iL(e):rL(RN(e))}},uL={f:Object.getOwnPropertySymbols},sL=mN([].slice),lL=function(e,t,n,r){r&&r.enumerable?e[t]=n:VI(e,t,n)},cL={f:mI},fL=UI.f,dL=function(e){var t=MN.Symbol||(MN.Symbol={});lI(t,e)||fL(t,e,{value:cL.f(e)})},pL=nR?{}.toString:function(){return"[object "+aR(this)+"]"},hL=UI.f,gL=mI("toStringTag"),vL=function(e,t,n,r){if(e){var o=n?e:e.prototype;lI(o,gL)||hL(o,gL,{configurable:!0,value:t}),r&&!nR&&VI(o,"toString",pL)}},yL=sN.WeakMap,mL=bN(yL)&&/native code/.test(sR(yL)),bL=sN.TypeError,wL=sN.WeakMap;if(mL||oI.state){var EL=oI.state||(oI.state=new wL),DL=mN(EL.get),CL=mN(EL.has),xL=mN(EL.set);YR=function(e,t){if(CL(EL,e))throw new bL("Object already initialized");return t.facade=e,xL(EL,e,t),t},XR=function(e){return DL(EL,e)||{}},ZR=function(e){return CL(EL,e)}}else{var SL=UR("state");jR[SL]=!0,YR=function(e,t){if(lI(e,SL))throw new bL("Object already initialized");return t.facade=e,VI(e,SL,t),t},XR=function(e){return lI(e,SL)?e[SL]:{}},ZR=function(e){return lI(e,SL)}}var AL={set:YR,get:XR,has:ZR,enforce:function(e){return ZR(e)?XR(e):YR(e,{})},getterFor:function(e){return function(t){var n;if(!LN(t)||(n=XR(t)).type!==e)throw bL("Incompatible receiver, "+e+" required");return n}}},OL=mN([].push),kL=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=uI(s),g=jN(h),v=RI(l,c),y=QI(g),m=0,b=f||bR,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:OL(w,d)}else switch(e){case 4:return!1;case 7:OL(w,d)}return i?-1:r||o?o:w}},BL={forEach:kL(0),map:kL(1),filter:kL(2),some:kL(3),every:kL(4),find:kL(5),findIndex:kL(6),filterReject:kL(7)}.forEach,FL=UR("hidden"),_L=mI("toPrimitive"),TL=AL.set,PL=AL.getterFor("Symbol"),jL=Object.prototype,NL=sN.Symbol,IL=NL&&NL.prototype,RL=sN.TypeError,LL=sN.QObject,ML=$N("JSON","stringify"),zL=kI.f,$L=UI.f,HL=aL.f,UL=ON.f,VL=mN([].push),WL=iI("symbols"),qL=iI("op-symbols"),GL=iI("string-to-symbol-registry"),KL=iI("symbol-to-string-registry"),YL=iI("wks"),XL=!LL||!LL.prototype||!LL.prototype.findChild,ZL=EN&&wN((function(){return 7!=JR($L({},"a",{get:function(){return $L(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=zL(jL,t);r&&delete jL[t],$L(e,t,n),r&&e!==jL&&$L(jL,t,r)}:$L,JL=function(e,t){var n=WL[e]=JR(IL);return TL(n,{type:"Symbol",tag:e,description:t}),EN||(n.description=t),n},QL=function(e,t,n){e===jL&&QL(qL,t,n),zI(e);var r=DI(t);return zI(n),lI(WL,r)?(n.enumerable?(lI(e,FL)&&e[FL][r]&&(e[FL][r]=!1),n=JR(n,{enumerable:kN(0,!1)})):(lI(e,FL)||$L(e,FL,kN(1,{})),e[FL][r]=!0),ZL(e,r,n)):$L(e,r,n)},eM=function(e,t){zI(e);var n=RN(t),r=MR(n).concat(oM(n));return BL(r,(function(t){EN&&!CN(tM,n,t)||QL(e,t,n[t])})),e},tM=function(e){var t=DI(e),n=CN(UL,this,t);return!(this===jL&&lI(WL,t)&&!lI(qL,t))&&(!(n||!lI(this,t)||!lI(WL,t)||lI(this,FL)&&this[FL][t])||n)},nM=function(e,t){var n=RN(e),r=DI(t);if(n!==jL||!lI(WL,r)||lI(qL,r)){var o=zL(n,r);return!o||!lI(WL,r)||lI(n,FL)&&n[FL][r]||(o.enumerable=!0),o}},rM=function(e){var t=HL(RN(e)),n=[];return BL(t,(function(e){lI(WL,e)||lI(jR,e)||VL(n,e)})),n},oM=function(e){var t=e===jL,n=HL(t?qL:RN(e)),r=[];return BL(n,(function(e){!lI(WL,e)||t&&!lI(jL,e)||VL(r,WL[e])})),r};if(YN||(IL=(NL=function(){if(HN(IL,this))throw RL("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?kR(arguments[0]):void 0,t=pI(e),n=function(e){this===jL&&CN(n,qL,e),lI(this,FL)&&lI(this[FL],t)&&(this[FL][t]=!1),ZL(this,t,kN(1,e))};return EN&&XL&&ZL(jL,t,{configurable:!0,set:n}),JL(t,e)}).prototype,lL(IL,"toString",(function(){return PL(this).tag})),lL(NL,"withoutSetter",(function(e){return JL(pI(e),e)})),ON.f=tM,UI.f=QL,kI.f=nM,eL.f=aL.f=rM,uL.f=oM,cL.f=function(e){return JL(mI(e),e)},EN&&$L(IL,"description",{configurable:!0,get:function(){return PL(this).description}})),GI({global:!0,wrap:!0,forced:!YN,sham:!YN},{Symbol:NL}),BL(MR(YL),(function(e){dL(e)})),GI({target:"Symbol",stat:!0,forced:!YN},{for:function(e){var t=kR(e);if(lI(GL,t))return GL[t];var n=NL(t);return GL[t]=n,KL[n]=t,n},keyFor:function(e){if(!JN(e))throw RL(e+" is not a symbol");if(lI(KL,e))return KL[e]},useSetter:function(){XL=!0},useSimple:function(){XL=!1}}),GI({target:"Object",stat:!0,forced:!YN,sham:!EN},{create:function(e,t){return void 0===t?JR(e):eM(JR(e),t)},defineProperty:QL,defineProperties:eM,getOwnPropertyDescriptor:nM}),GI({target:"Object",stat:!0,forced:!YN},{getOwnPropertyNames:rM,getOwnPropertySymbols:oM}),GI({target:"Object",stat:!0,forced:wN((function(){uL.f(1)}))},{getOwnPropertySymbols:function(e){return uL.f(uI(e))}}),ML){var iM=!YN||wN((function(){var e=NL();return"[null]"!=ML([e])||"{}"!=ML({a:e})||"{}"!=ML(Object(e))}));GI({target:"JSON",stat:!0,forced:iM},{stringify:function(e,t,n){var r=sL(arguments),o=t;if((LN(t)||void 0!==e)&&!JN(e))return KI(t)||(t=function(e,t){if(bN(o)&&(t=CN(o,this,e,t)),!JN(t))return t}),r[1]=t,pN(ML,null,r)}})}if(!IL[_L]){var aM=IL.valueOf;lL(IL,_L,(function(e){return CN(aM,this)}))}vL(NL,"Symbol"),jR[FL]=!0,dL("asyncIterator"),dL("hasInstance"),dL("isConcatSpreadable"),dL("iterator"),dL("match"),dL("matchAll"),dL("replace"),dL("search"),dL("species"),dL("split"),dL("toPrimitive"),dL("toStringTag"),dL("unscopables"),vL(sN.JSON,"JSON",!0);var uM,sM,lM,cM=MN.Symbol,fM={},dM=Function.prototype,pM=EN&&Object.getOwnPropertyDescriptor,hM=lI(dM,"name"),gM={EXISTS:hM,PROPER:hM&&"something"===function(){}.name,CONFIGURABLE:hM&&(!EN||EN&&pM(dM,"name").configurable)},vM=!wN((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yM=UR("IE_PROTO"),mM=sN.Object,bM=mM.prototype,wM=vM?mM.getPrototypeOf:function(e){var t=uI(e);if(lI(t,yM))return t[yM];var n=t.constructor;return bN(n)&&t instanceof n?n.prototype:t instanceof mM?bM:null},EM=mI("iterator"),DM=!1;[].keys&&("next"in(lM=[].keys())?(sM=wM(wM(lM)))!==Object.prototype&&(uM=sM):DM=!0);var CM=null==uM||wN((function(){var e={};return uM[EM].call(e)!==e}));uM=CM?{}:JR(uM),bN(uM[EM])||lL(uM,EM,(function(){return this}));var xM={IteratorPrototype:uM,BUGGY_SAFARI_ITERATORS:DM},SM=xM.IteratorPrototype,AM=function(){return this};sN.String,sN.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{mN(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(h){}}();var OM=gM.PROPER,kM=xM.BUGGY_SAFARI_ITERATORS,BM=mI("iterator"),FM=function(){return this},_M=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=JR(SM,{next:kN(+!r,n)}),vL(e,o,!1,!0),fM[o]=AM}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!kM&&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[BM]||p["@@iterator"]||o&&p[o],g=!kM&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=wM(v.call(new e)))!==Object.prototype&&u.next&&(vL(u,f,!0,!0),fM[f]=FM),OM&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return CN(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(kM||d||!(l in p))&&lL(p,l,s[l]);else GI({target:t,proto:!0,forced:kM||d},s);return a&&p[BM]!==g&&lL(p,BM,g,{name:o}),fM[t]=g,s},TM=AL.set,PM=AL.getterFor("Array Iterator");_M(Array,"Array",(function(e,t){TM(this,{type:"Array Iterator",target:RN(e),index:0,kind:t})}),(function(){var e=PM(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"),fM.Arguments=fM.Array;var jM=mI("toStringTag");for(var NM 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 IM=sN[NM],RM=IM&&IM.prototype;RM&&aR(RM)!==jM&&VI(RM,jM,NM),fM[NM]=fM.Array}var LM=cM;dL("asyncDispose"),dL("dispose"),dL("matcher"),dL("metadata"),dL("observable"),dL("patternMatch"),dL("replaceAll");var MM=LM,zM=mN("".charAt),$M=mN("".charCodeAt),HM=mN("".slice),UM=function(e){return function(t,n){var r,o,i=kR(IN(t)),a=ZI(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$M(i,a))<55296||r>56319||a+1===u||(o=$M(i,a+1))<56320||o>57343?e?zM(i,a):r:e?HM(i,a,a+2):o-56320+(r-55296<<10)+65536}},VM={codeAt:UM(!1),charAt:UM(!0)}.charAt,WM=AL.set,qM=AL.getterFor("String Iterator");_M(String,"String",(function(e){WM(this,{type:"String Iterator",string:kR(e),index:0})}),(function(){var e,t=qM(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=VM(n,r),t.index+=e.length,{value:e,done:!1})}));var GM=cL.f("iterator"),KM=$A((function(e){function t(n){return"function"==typeof MM&&"symbol"==typeof GM?(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 MM&&e.constructor===MM&&e!==MM.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})),YM=zA(KM),XM=Rk.EXISTS,ZM=hk.f,JM=Function.prototype,QM=iO(JM.toString),ez=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,tz=iO(ez.exec);GA&&!XM&&ZM(JM,"name",{configurable:!0,get:function(){try{return tz(ez,QM(this))[1]}catch(h){return""}}});var nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("fontFamily.title"),t.iconSvg=mT,t.mark="fontFamily",t.selectPanelWidth=150,t}return I_(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:jA("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===YM(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}(iN),rz={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&OP(i,{fontSize:r}),o&&OP(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Pt.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((F_(t)||"span"!==T_(n=co(t)))&&(n=co("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),__(n)):t},preParseHtml:[tN],parseStyleHtml:function(e,t,n){var r=co(e);if(!Pt.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=P_(r,"font-size");u&&a.includes(u)&&(o.fontSize=u);var s=n.getMenuConfig("fontFamily").fontFamilyList,l=void 0===s?[]:s,c=P_(r,"font-family");return c&&l.includes(c)&&(o.fontFamily=c),o},menus:[{key:"fontSize",factory:function(){return new aN},config:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new nz},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},oz={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=co(e),n=P_(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]}},iz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=$_(st.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":$_(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=$_(st.nodes(e,{match:function(e){var t=Iw.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),az=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("indent.decrease"),t.iconSvg=bT,t}return I_(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Jt.setNodes(e,{indent:null},{match:function(e){return nt.isElement(e)}})},t}(iz),uz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("indent.increase"),t.iconSvg=wT,t}return I_(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Jt.setNodes(e,{indent:"2em"},{match:function(e){return nt.isElement(e)},mode:"highest"})},t}(iz),sz={renderStyle:function(e,t){if(!nt.isElement(e))return t;var n=e.indent,r=t;return n&&OP(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!nt.isElement(e))return t;var n=e.indent;if(!n)return t;var r=co(t);return r.css("text-indent",n),__(r)},preParseHtml:[oz],parseStyleHtml:function(e,t,n){var r=co(e);if(!nt.isElement(t))return t;var o=t,i=P_(r,"text-indent");return i&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new uz}},{key:"delIndent",factory:function(){return new az}}]},lz=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=$_(st.nodes(e,{match:function(e){var t=Iw.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||!!Iw.getSelectedElems(e).some((function(t){if(st.isVoid(e,t)&&st.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),cz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("justify.left"),t.iconSvg=ET,t}return I_(t,e),t.prototype.exec=function(e,t){Jt.setNodes(e,{textAlign:"left"},{match:function(t){return nt.isElement(t)&&!e.isInline(t)}})},t}(lz),fz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("justify.right"),t.iconSvg=DT,t}return I_(t,e),t.prototype.exec=function(e,t){Jt.setNodes(e,{textAlign:"right"},{match:function(t){return nt.isElement(t)&&!e.isInline(t)}})},t}(lz),dz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("justify.center"),t.iconSvg=CT,t}return I_(t,e),t.prototype.exec=function(e,t){Jt.setNodes(e,{textAlign:"center"},{match:function(t){return nt.isElement(t)&&!e.isInline(t)}})},t}(lz),pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=jA("justify.justify"),t.iconSvg=xT,t}return I_(t,e),t.prototype.exec=function(e,t){Jt.setNodes(e,{textAlign:"justify"},{match:function(t){return nt.isElement(t)&&!e.isInline(t)}})},t}(lz),hz={renderStyle:function(e,t){if(!nt.isElement(e))return t;var n=e.textAlign,r=t;return n&&OP(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!nt.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=co(t);return r.css("text-align",n),__(r)},parseStyleHtml:function(e,t,n){var r=co(e);if(!nt.isElement(t))return t;var o=t,i=P_(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new cz}},{key:"justifyRight",factory:function(){return new fz}},{key:"justifyCenter",factory:function(){return new dz}},{key:"justifyJustify",factory:function(){return new pz}}]},gz=function(){function e(){this.title=jA("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:jA("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=$_(st.nodes(e,{match:function(e){var t=Iw.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","bulleted-list","numbered-list"].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?"":nt.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Jt.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),vz={renderStyle:function(e,t){if(!nt.isElement(e))return t;var n=e.lineHeight,r=t;return n&&OP(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!nt.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=co(t);return r.css("line-height",n),__(r)},parseStyleHtml:function(e,t,n){var r=co(e);if(!nt.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=P_(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new gz},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},yz=function(){function e(){this.title=jA("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}(),mz=function(){function e(){this.title=jA("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}(),bz={menus:[{key:"redo",factory:function(){return new yz}},{key:"undo",factory:function(){return new mz}}]},wz={type:"divider",renderElem:function(e,t,n){var r=Iw.isNodeSelected(n,e);return Da("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Da("hr")])}},Ez={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},Dz={selector:"hr",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},Cz=function(){function e(){this.title=jA("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||!!Iw.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=Iw.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Jt.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),xz={renderElems:[wz],elemsToHtml:[Ez],parseElemsHtml:[Dz],menus:[{key:"divider",factory:function(){return new Cz}}],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=$_(e,2),o=t[0],i=t[1];if("divider"!==Iw.getNodeType(o))return n([o,i]);Iw.isLastNode(r,o)&&Jt.insertNodes(r,Iw.genEmptyParagraph(),{at:[i[0]+1]})},r}},Sz=IB.map;hB({target:"Array",proto:!0,forced:!LB("map")},{map:function(e){return Sz(this,e,arguments.length>1?arguments[1]:void 0)}});var Az=iO([].join),Oz=fO!=Object,kz=eT("join",",");hB({target:"Array",proto:!0,forced:Oz||!kz},{join:function(e){return Az(hO(this),void 0===e?",":e)}});var Bz=function(){function e(){this.title=jA("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=Iw.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Iw.getParentNode(e,t);return null==n||"pre"!==Iw.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=Iw.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=Iw.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=pt.string(t);Jt.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Jt.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=st.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=z_(i),u=a.next();!u.done;u=a.next()){var s=$_(u.value,1)[0];s&&o.push(pt.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Jt.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Jt.insertNodes(e,l,{mode:"highest"})},e}(),Fz={key:"codeBlock",factory:function(){return new Bz}};hB({target:"String",proto:!0,forced:G_("anchor")},{anchor:function(e){return q_(this,"a","name",e)}}),BF("match",(function(e,t,n){return[function(t){var n=pO(this),r=null==t?void 0:jO(t,e);return r?YA(r,t,n):new RegExp(t)[e](UB(n))},function(e){var r=fk(this),o=UB(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return VF(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=VF(r,o));){var c=UB(u[0]);s[l]=c,""===c&&(r.lastIndex=NF(o,qk(r.lastIndex),a)),l++}return 0===l?null:s}]}));var _z={type:"pre",renderElem:function(e,t,n){return Wa("pre",null,t)}},Tz={type:"code",renderElem:function(e,t,n){return Wa("code",null,t)}},Pz={selector:"pre",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return"code"===Iw.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===Iw.getNodeType(e)}))}}},jz={menus:[Fz],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=Iw.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=pt.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=$_(e,2),r=t[0],i=t[1],a=Iw.getNodeType(r);return"code"===a&&i.length<=1&&Jt.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(Iw.isLastNode(o,r)&&Jt.insertNodes(o,Iw.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==Iw.getNodeType(r.children[0])&&(Jt.unwrapNodes(o),Jt.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=Iw.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");st.insertText(o,t)}else r(e)},o},renderElems:[_z,Tz],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=co(e);if("code"!==T_(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>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:co(e)[0].textContent||""}]}}},Pz]},Nz=function(){function e(){this.title=jA("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}(),Iz={menus:[{key:"fullScreen",factory:function(){return new Nz}}]},Rz=function(){function e(){this.title=jA("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||!!At.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Jt.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(st.start(e,r))}},e}(),Lz=[NT,PP,rz,sz,hz,vz,Ij,xz,Qj,nj,jz,Zj,DP,U_,zj,bz,Iz,{menus:[{key:"enter",factory:function(){return new Rz}}]}];PA("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),PA("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Mz="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function zz(e){var t={exports:{}};return e(t,t.exports),t.exports}var $z,Hz,Uz=function(e){return e&&e.Math==Math&&e},Vz=Uz("object"==typeof globalThis&&globalThis)||Uz("object"==typeof window&&window)||Uz("object"==typeof self&&self)||Uz("object"==typeof Mz&&Mz)||function(){return this}()||Function("return this")(),Wz=function(e){try{return!!e()}catch(e){return!0}},qz=!Wz((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Gz=Function.prototype.call,Kz=Gz.bind?Gz.bind(Gz):function(){return Gz.apply(Gz,arguments)},Yz={}.propertyIsEnumerable,Xz=Object.getOwnPropertyDescriptor,Zz={f:Xz&&!Yz.call({1:2},1)?function(e){var t=Xz(this,e);return!!t&&t.enumerable}:Yz},Jz=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qz=Function.prototype,e$=Qz.bind,t$=Qz.call,n$=e$&&e$.bind(t$),r$=e$?function(e){return e&&n$(t$,e)}:function(e){return e&&function(){return t$.apply(e,arguments)}},o$=r$({}.toString),i$=r$("".slice),a$=function(e){return i$(o$(e),8,-1)},u$=Vz.Object,s$=r$("".split),l$=Wz((function(){return!u$("z").propertyIsEnumerable(0)}))?function(e){return"String"==a$(e)?s$(e,""):u$(e)}:u$,c$=Vz.TypeError,f$=function(e){if(null==e)throw c$("Can't call method on "+e);return e},d$=function(e){return l$(f$(e))},p$=function(e){return"function"==typeof e},h$=function(e){return"object"==typeof e?null!==e:p$(e)},g$=function(e){return p$(e)?e:void 0},v$=function(e,t){return arguments.length<2?g$(Vz[e]):Vz[e]&&Vz[e][t]},y$=r$({}.isPrototypeOf),m$=v$("navigator","userAgent")||"",b$=Vz.process,w$=Vz.Deno,E$=b$&&b$.versions||w$&&w$.version,D$=E$&&E$.v8;D$&&(Hz=($z=D$.split("."))[0]>0&&$z[0]<4?1:+($z[0]+$z[1])),!Hz&&m$&&(!($z=m$.match(/Edge\/(\d+)/))||$z[1]>=74)&&($z=m$.match(/Chrome\/(\d+)/))&&(Hz=+$z[1]);var C$=Hz,x$=!!Object.getOwnPropertySymbols&&!Wz((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&C$&&C$<41})),S$=x$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,A$=Vz.Object,O$=S$?function(e){return"symbol"==typeof e}:function(e){var t=v$("Symbol");return p$(t)&&y$(t.prototype,A$(e))},k$=Vz.String,B$=Vz.TypeError,F$=function(e){if(p$(e))return e;throw B$(function(e){try{return k$(e)}catch(e){return"Object"}}(e)+" is not a function")},_$=function(e,t){var n=e[t];return null==n?void 0:F$(n)},T$=Vz.TypeError,P$=Object.defineProperty,j$=function(e,t){try{P$(Vz,e,{value:t,configurable:!0,writable:!0})}catch(g){Vz[e]=t}return t},N$=Vz["__core-js_shared__"]||j$("__core-js_shared__",{}),I$=zz((function(e){(e.exports=function(e,t){return N$[e]||(N$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),R$=Vz.Object,L$=function(e){return R$(f$(e))},M$=r$({}.hasOwnProperty),z$=Object.hasOwn||function(e,t){return M$(L$(e),t)},$$=0,H$=Math.random(),U$=r$(1..toString),V$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+U$(++$$+H$,36)},W$=I$("wks"),q$=Vz.Symbol,G$=q$&&q$.for,K$=S$?q$:q$&&q$.withoutSetter||V$,Y$=function(e){if(!z$(W$,e)||!x$&&"string"!=typeof W$[e]){var t="Symbol."+e;x$&&z$(q$,e)?W$[e]=q$[e]:W$[e]=S$&&G$?G$(t):K$(t)}return W$[e]},X$=Vz.TypeError,Z$=Y$("toPrimitive"),J$=function(e,t){if(!h$(e)||O$(e))return e;var n,r=_$(e,Z$);if(r){if(void 0===t&&(t="default"),n=Kz(r,e,t),!h$(n)||O$(n))return n;throw X$("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&p$(n=e.toString)&&!h$(r=Kz(n,e)))return r;if(p$(n=e.valueOf)&&!h$(r=Kz(n,e)))return r;if("string"!==t&&p$(n=e.toString)&&!h$(r=Kz(n,e)))return r;throw T$("Can't convert object to primitive value")}(e,t)},Q$=function(e){var t=J$(e,"string");return O$(t)?t:t+""},eH=Vz.document,tH=h$(eH)&&h$(eH.createElement),nH=function(e){return tH?eH.createElement(e):{}},rH=!qz&&!Wz((function(){return 7!=Object.defineProperty(nH("div"),"a",{get:function(){return 7}}).a})),oH=Object.getOwnPropertyDescriptor,iH={f:qz?oH:function(e,t){if(e=d$(e),t=Q$(t),rH)try{return oH(e,t)}catch(e){}if(z$(e,t))return Jz(!Kz(Zz.f,e,t),e[t])}},aH=Vz.String,uH=Vz.TypeError,sH=function(e){if(h$(e))return e;throw uH(aH(e)+" is not an object")},lH=Vz.TypeError,cH=Object.defineProperty,fH={f:qz?cH:function(e,t,n){if(sH(e),t=Q$(t),sH(n),rH)try{return cH(e,t,n)}catch(e){}if("get"in n||"set"in n)throw lH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},dH=qz?function(e,t,n){return fH.f(e,t,Jz(1,n))}:function(e,t,n){return e[t]=n,e},pH=r$(Function.toString);p$(N$.inspectSource)||(N$.inspectSource=function(e){return pH(e)});var hH,gH,vH,yH=N$.inspectSource,mH=Vz.WeakMap,bH=p$(mH)&&/native code/.test(yH(mH)),wH=I$("keys"),EH=function(e){return wH[e]||(wH[e]=V$(e))},DH={},CH=Vz.TypeError,xH=Vz.WeakMap;if(bH||N$.state){var SH=N$.state||(N$.state=new xH),AH=r$(SH.get),OH=r$(SH.has),kH=r$(SH.set);hH=function(e,t){if(OH(SH,e))throw new CH("Object already initialized");return t.facade=e,kH(SH,e,t),t},gH=function(e){return AH(SH,e)||{}},vH=function(e){return OH(SH,e)}}else{var BH=EH("state");DH[BH]=!0,hH=function(e,t){if(z$(e,BH))throw new CH("Object already initialized");return t.facade=e,dH(e,BH,t),t},gH=function(e){return z$(e,BH)?e[BH]:{}},vH=function(e){return z$(e,BH)}}var FH,_H={set:hH,get:gH,has:vH,enforce:function(e){return vH(e)?gH(e):hH(e,{})},getterFor:function(e){return function(t){var n;if(!h$(t)||(n=gH(t)).type!==e)throw CH("Incompatible receiver, "+e+" required");return n}}},TH=Function.prototype,PH=qz&&Object.getOwnPropertyDescriptor,jH=z$(TH,"name"),NH={EXISTS:jH,PROPER:jH&&"something"===function(){}.name,CONFIGURABLE:jH&&(!qz||qz&&PH(TH,"name").configurable)},IH=zz((function(e){var t=NH.CONFIGURABLE,n=_H.get,r=_H.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;p$(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!z$(i,"name")||t&&i.name!==f)&&dH(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Vz?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:dH(e,n,i)):l?e[n]=i:j$(n,i)})(Function.prototype,"toString",(function(){return p$(this)&&n(this).source||yH(this)}))})),RH=Math.ceil,LH=Math.floor,MH=function(e){var t=+e;return t!=t||0===t?0:(t>0?LH:RH)(t)},zH=Math.max,$H=Math.min,HH=Math.min,UH=function(e){return e>0?HH(MH(e),9007199254740991):0},VH=function(e){return UH(e.length)},WH=function(e){return function(t,n,r){var o,i=d$(t),a=VH(i),u=function(e,t){var n=MH(e);return n<0?zH(n+t,0):$H(n,t)}(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}},qH={includes:WH(!0),indexOf:WH(!1)},GH=qH.indexOf,KH=r$([].push),YH=function(e,t){var n,r=d$(e),o=0,i=[];for(n in r)!z$(DH,n)&&z$(r,n)&&KH(i,n);for(;t.length>o;)z$(r,n=t[o++])&&(~GH(i,n)||KH(i,n));return i},XH=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ZH=XH.concat("length","prototype"),JH={f:Object.getOwnPropertyNames||function(e){return YH(e,ZH)}},QH={f:Object.getOwnPropertySymbols},eU=r$([].concat),tU=v$("Reflect","ownKeys")||function(e){var t=JH.f(sH(e)),n=QH.f;return n?eU(t,n(e)):t},nU=function(e,t){for(var n=tU(t),r=fH.f,o=iH.f,i=0;i<n.length;i++){var a=n[i];z$(e,a)||r(e,a,o(t,a))}},rU=/#|\.prototype\./,oU=function(e,t){var n=aU[iU(e)];return n==sU||n!=uU&&(p$(t)?Wz(t):!!t)},iU=oU.normalize=function(e){return String(e).replace(rU,".").toLowerCase()},aU=oU.data={},uU=oU.NATIVE="N",sU=oU.POLYFILL="P",lU=oU,cU=iH.f,fU=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Vz:l?Vz[u]||j$(u,{}):(Vz[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=cU(n,r))&&a.value:n[r],!lU(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;nU(i,o)}(e.sham||o&&o.sham)&&dH(i,"sham",!0),IH(n,r,i,e)}},dU=Object.keys||function(e){return YH(e,XH)},pU=qz?Object.defineProperties:function(e,t){sH(e);for(var n,r=d$(t),o=dU(t),i=o.length,a=0;i>a;)fH.f(e,n=o[a++],r[n]);return e},hU=v$("document","documentElement"),gU=EH("IE_PROTO"),vU=function(){},yU=function(e){return"<script>"+e+"<\/script>"},mU=function(e){e.write(yU("")),e.close();var t=e.parentWindow.Object;return e=null,t},bU=function(){try{FH=new ActiveXObject("htmlfile")}catch(e){}var e,t;bU="undefined"!=typeof document?document.domain&&FH?mU(FH):((t=nH("iframe")).style.display="none",hU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(yU("document.F=Object")),e.close(),e.F):mU(FH);for(var n=XH.length;n--;)delete bU.prototype[XH[n]];return bU()};DH[gU]=!0;var wU=Object.create||function(e,t){var n;return null!==e?(vU.prototype=sH(e),n=new vU,vU.prototype=null,n[gU]=e):n=bU(),void 0===t?n:pU(n,t)},EU=Y$("unscopables"),DU=Array.prototype;null==DU[EU]&&fH.f(DU,EU,{configurable:!0,value:wU(null)});var CU,xU=qH.includes;function SU(e){if("bulleted-list"===e)return"ul";if("numbered-list"===e)return"ol";if("list-item"===e)return"li";throw new Error("list type '"+e+"' is invalid")}function AU(e){var t=Iw.getNodeType(e);return["bulleted-list","numbered-list"].includes(t)}function OU(e){return function(t,n,r){var o=SU(e);return Wa(o,null,n)}}fU({target:"Array",proto:!0},{includes:function(e){return xU(this,e,arguments.length>1?arguments[1]:void 0)}}),CU="includes",DU[EU][CU]=!0;var kU={type:"bulleted-list",renderElem:OU("bulleted-list")},BU={type:"numbered-list",renderElem:OU("numbered-list")},FU={type:"list-item",renderElem:OU("list-item")};function _U(e){var t=SU(e);return function(e,n){return"<"+t+">"+n+"</"+t+">"}}var TU={type:"bulleted-list",elemToHtml:_U("bulleted-list")},PU={type:"numbered-list",elemToHtml:_U("numbered-list")},jU={type:"list-item",elemToHtml:_U("list-item")},NU=r$(r$.bind),IU=Array.isArray||function(e){return"Array"==a$(e)},RU={};RU[Y$("toStringTag")]="z";var LU="[object z]"===String(RU),MU=Y$("toStringTag"),zU=Vz.Object,$U="Arguments"==a$(function(){return arguments}()),HU=LU?a$: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=zU(e),MU))?n:$U?a$(t):"Object"==(r=a$(t))&&p$(t.callee)?"Arguments":r},UU=function(){},VU=[],WU=v$("Reflect","construct"),qU=/^\s*(?:class|function)\b/,GU=r$(qU.exec),KU=!qU.exec(UU),YU=function(e){if(!p$(e))return!1;try{return WU(UU,VU,e),!0}catch(e){return!1}},XU=!WU||Wz((function(){var e;return YU(YU.call)||!YU(Object)||!YU((function(){e=!0}))||e}))?function(e){if(!p$(e))return!1;switch(HU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return KU||!!GU(qU,yH(e))}:YU,ZU=Y$("species"),JU=Vz.Array,QU=function(e,t){return new(function(e){var t;return IU(e)&&(t=e.constructor,(XU(t)&&(t===JU||IU(t.prototype))||h$(t)&&null===(t=t[ZU]))&&(t=void 0)),void 0===t?JU:t}(e))(0===t?0:t)},eV=r$([].push),tV=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=L$(s),g=l$(h),v=function(e,t){return F$(e),void 0===t?e:NU?NU(e,t):function(){return e.apply(t,arguments)}}(l,c),y=VH(g),m=0,b=f||QU,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:eV(w,d)}else switch(e){case 4:return!1;case 7:eV(w,d)}return i?-1:r||o?o:w}},nV={forEach:tV(0),map:tV(1),filter:tV(2),some:tV(3),every:tV(4),find:tV(5),findIndex:tV(6),filterReject:tV(7)},rV=Y$("species"),oV=function(e){return C$>=51||!Wz((function(){var t=[];return(t.constructor={})[rV]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},iV=nV.filter;fU({target:"Array",proto:!0,forced:!oV("filter")},{filter:function(e){return iV(this,e,arguments.length>1?arguments[1]:void 0)}});var aV=LU?{}.toString:function(){return"[object "+HU(this)+"]"};LU||IH(Object.prototype,"toString",aV,{unsafe:!0});var uV,sV,lV=Vz.String,cV=function(e){if("Symbol"===HU(e))throw TypeError("Cannot convert a Symbol value to a string");return lV(e)},fV=function(){var e=sH(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},dV=Vz.RegExp,pV=Wz((function(){var e=dV("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),hV=pV||Wz((function(){return!dV("a","y").sticky})),gV={BROKEN_CARET:pV||Wz((function(){var e=dV("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:hV,UNSUPPORTED_Y:pV},vV=Vz.RegExp,yV=Wz((function(){var e=vV(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),mV=Vz.RegExp,bV=Wz((function(){var e=mV("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),wV=_H.get,EV=I$("native-string-replace",String.prototype.replace),DV=RegExp.prototype.exec,CV=DV,xV=r$("".charAt),SV=r$("".indexOf),AV=r$("".replace),OV=r$("".slice),kV=(sV=/b*/g,Kz(DV,uV=/a/,"a"),Kz(DV,sV,"a"),0!==uV.lastIndex||0!==sV.lastIndex),BV=gV.BROKEN_CARET,FV=void 0!==/()??/.exec("")[1];(kV||FV||BV||yV||bV)&&(CV=function(e){var t,n,r,o,i,a,u,s=this,l=wV(s),c=cV(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Kz(CV,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=BV&&s.sticky,h=Kz(fV,s),g=s.source,v=0,y=c;if(p&&(h=AV(h,"y",""),-1===SV(h,"g")&&(h+="g"),y=OV(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==xV(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),FV&&(n=new RegExp("^"+g+"$(?!\\s)",h)),kV&&(r=s.lastIndex),o=Kz(DV,p?n:s,y),p?o?(o.input=OV(o.input,v),o[0]=OV(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:kV&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),FV&&o&&o.length>1&&Kz(EV,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=wU(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var _V=CV;fU({target:"RegExp",proto:!0,forced:/./.exec!==_V},{exec:_V});var TV=Function.prototype,PV=TV.apply,jV=TV.bind,NV=TV.call,IV="object"==typeof Reflect&&Reflect.apply||(jV?NV.bind(PV):function(){return NV.apply(PV,arguments)}),RV=Y$("species"),LV=RegExp.prototype,MV=r$("".charAt),zV=r$("".charCodeAt),$V=r$("".slice),HV=function(e){return function(t,n){var r,o,i=cV(f$(t)),a=MH(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=zV(i,a))<55296||r>56319||a+1===u||(o=zV(i,a+1))<56320||o>57343?e?MV(i,a):r:e?$V(i,a,a+2):o-56320+(r-55296<<10)+65536}},UV={codeAt:HV(!1),charAt:HV(!0)}.charAt,VV=function(e,t,n){return t+(n?UV(e,t).length:1)},WV=Math.floor,qV=r$("".charAt),GV=r$("".replace),KV=r$("".slice),YV=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,XV=/\$([$&'`]|\d{1,2})/g,ZV=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=XV;return void 0!==o&&(o=L$(o),s=YV),GV(i,s,(function(i,s){var l;switch(qV(s,0)){case"$":return"$";case"&":return e;case"`":return KV(t,0,n);case"'":return KV(t,a);case"<":l=o[KV(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=WV(c/10);return 0===f?i:f<=u?void 0===r[f-1]?qV(s,1):r[f-1]+qV(s,1):i}l=r[c-1]}return void 0===l?"":l}))},JV=Vz.TypeError,QV=function(e,t){var n=e.exec;if(p$(n)){var r=Kz(n,e,t);return null!==r&&sH(r),r}if("RegExp"===a$(e))return Kz(_V,e,t);throw JV("RegExp#exec called on incompatible receiver")},eW=Y$("replace"),tW=Math.max,nW=Math.min,rW=r$([].concat),oW=r$([].push),iW=r$("".indexOf),aW=r$("".slice),uW="$0"==="a".replace(/./,"$0"),sW=!!/./[eW]&&""===/./[eW]("a","$0");!function(e,t,n,r){var o=Y$(e),i=!Wz((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Wz((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[RV]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=r$(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=r$(e),s=t.exec;return s===_V||s===LV.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));IH(String.prototype,e,s[0]),IH(LV,o,s[1])}r&&dH(LV[o],"sham",!0)}("replace",(function(e,t,n){var r=sW?"$":"$0";return[function(e,n){var r=f$(this),o=null==e?void 0:_$(e,eW);return o?Kz(o,e,r,n):Kz(t,cV(r),e,n)},function(e,o){var i=sH(this),a=cV(e);if("string"==typeof o&&-1===iW(o,r)&&-1===iW(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=p$(o);s||(o=cV(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=QV(i,a);if(null===d)break;if(oW(f,d),!l)break;""===cV(d[0])&&(i.lastIndex=VV(a,UH(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=cV((d=f[v])[0]),m=tW(nW(MH(d.index),a.length),0),b=[],w=1;w<d.length;w++)oW(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=rW([y],b,m,a);void 0!==E&&oW(D,E);var C=cV(IV(o,void 0,D))}else C=ZV(y,a,m,b,E,o);m>=g&&(h+=aW(a,g,m)+C,g=m+y.length)}return h+aW(a,g)}]}),!!Wz((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!uW||sW),fU({global:!0},{globalThis:Vz});var lW={selector:"li",parseElemHtml:function(e,t,n){var r=co(e);return 0===(t=t.filter((function(e){return!!Pt.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",children:t}}},cW={selector:"ul",parseElemHtml:function(e,t,n){return{type:"bulleted-list",children:t.filter((function(e){return"list-item"===Iw.getNodeType(e)}))}}},fW={selector:"ol",parseElemHtml:function(e,t,n){return{type:"numbered-list",children:t.filter((function(e){return"list-item"===Iw.getNodeType(e)}))}}},dW=function(e,t){return dW=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])},dW(e,t)
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function pW(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}dW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function hW(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 gW,vW=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return Iw.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!this.getListNode(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!Iw.getSelectedElems(e).some((function(t){if(st.isVoid(e,t)&&st.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.getMatchListType=function(e){var t=hW(st.nodes(e,{match:function(e){return AU(e)},universal:!0}),1),n=t[0];if(null==n)return"";var r=hW(n,1)[0];return Iw.getNodeType(r)},e.prototype.exec=function(e,t){var n=this.type,r=this.isActive(e);Jt.unwrapNodes(e,{match:function(e){return AU(e)},split:!0}),Jt.setNodes(e,{type:r?"paragraph":"list-item"});var o={type:n,children:[]};r||Jt.wrapNodes(e,o);var i=this.getMatchListType(e);""!=i&&i!==n&&Jt.wrapNodes(e,o)},e}(),yW='<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>',mW='<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>',bW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bulleted-list",t.title=jA("listModule.unOrderedList"),t.iconSvg=yW,t}return pW(t,e),t}(vW),wW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="numbered-list",t.title=jA("listModule.orderedList"),t.iconSvg=mW,t}return pW(t,e),t}(vW),EW={key:"bulletedList",factory:function(){return new bW}},DW={key:"numberedList",factory:function(){return new wW}},CW=/"/g,xW=r$("".replace);fU({target:"String",proto:!0,forced:(gW="anchor",Wz((function(){var e=""[gW]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=cV(f$(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+xW(cV(r),CW,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var SW=function(e,t,n){var r=Q$(t);r in e?fH.f(e,r,Jz(0,n)):e[r]=n},AW=Y$("isConcatSpreadable"),OW=Vz.TypeError,kW=C$>=51||!Wz((function(){var e=[];return e[AW]=!1,e.concat()[0]!==e})),BW=oV("concat"),FW=function(e){if(!h$(e))return!1;var t=e[AW];return void 0!==t?!!t:IU(e)};fU({target:"Array",proto:!0,forced:!kW||!BW},{concat:function(e){var t,n,r,o,i,a=L$(this),u=QU(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(FW(i=-1===t?a:arguments[t])){if(s+(o=VH(i))>9007199254740991)throw OW("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&SW(u,s,i[n])}else{if(s>=9007199254740991)throw OW("Maximum allowed index exceeded");SW(u,s++,i)}return u.length=s,u}});var _W={renderElems:[kU,BU,FU],elemsToHtml:[TU,PU,jU],parseElemsHtml:[lW,fW,cW],menus:[EW,DW],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward;e.insertNode;var r=e;return r.insertBreak=function(){var e=r.selection;if(null!=e){var n=Iw.getSelectedNodeByType(r,"list-item");if(null!=n){var o=Iw.getParentNode(r,n),i=(null==o?void 0:o.children)||[];if(n===i[i.length-1]&&""===pt.string(n)){Jt.removeNodes(r,{match:function(e){return Iw.checkNodeType(e,"list-item")}});var a=[e.anchor.path[0]+1];return Jt.insertNodes(r,Iw.genEmptyParagraph(),{at:a}),void r.select({path:a.concat(0),offset:0})}t()}else t()}else t()},r.deleteBackward=function(e){var t=function(e){var t=hW(st.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1),n=t[0];if(null==n)return!1;var r=n[0];return!(!nt.isElement(r)||pt.string(r)||!AU(r)||(Jt.unwrapNodes(e,{match:function(e){return AU(e)},split:!0}),Jt.setNodes(e,{type:"paragraph"}),0))}(r);t||n(e)},r}},TW=en((function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,u="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",g="[object Map]",v="[object Number]",y="[object Null]",m="[object Object]",b="[object Promise]",w="[object Proxy]",E="[object RegExp]",D="[object Set]",C="[object String]",x="[object Symbol]",S="[object Undefined]",A="[object WeakMap]",O="[object ArrayBuffer]",k="[object DataView]",B="[object Float32Array]",F="[object Float64Array]",_="[object Int8Array]",T="[object Int16Array]",P="[object Int32Array]",j="[object Uint8Array]",N="[object Uint8ClampedArray]",I="[object Uint16Array]",R="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,$={};$[B]=$[F]=$[_]=$[T]=$[P]=$[j]=$[N]=$[I]=$[R]=!0,$[u]=$[s]=$[O]=$[c]=$[k]=$[f]=$[d]=$[p]=$[g]=$[v]=$[m]=$[E]=$[D]=$[C]=$[A]=!1;var H="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,U="object"==typeof self&&self&&self.Object===Object&&self,V=H||U||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&e&&!e.nodeType&&e,G=q&&q.exports===W,K=G&&H.process,Y=function(){try{return K&&K.binding&&K.binding("util")}catch(lle){}}(),X=Y&&Y.isTypedArray;function Z(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function J(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function Q(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}function ee(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function te(e){return function(t){return e(t)}}function ne(e,t){return e.has(t)}function re(e,t){return null==e?void 0:e[t]}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ie(e,t){return function(n){return e(t(n))}}function ae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ue=Array.prototype,se=Function.prototype,le=Object.prototype,ce=V["__core-js_shared__"],fe=se.toString,de=le.hasOwnProperty,pe=function(){var e=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),he=le.toString,ge=RegExp("^"+fe.call(de).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=G?V.Buffer:void 0,ye=V.Symbol,me=V.Uint8Array,be=le.propertyIsEnumerable,we=ue.splice,Ee=ye?ye.toStringTag:void 0,De=Object.getOwnPropertySymbols,Ce=ve?ve.isBuffer:void 0,xe=ie(Object.keys,Object),Se=At(V,"DataView"),Ae=At(V,"Map"),Oe=At(V,"Promise"),ke=At(V,"Set"),Be=At(V,"WeakMap"),Fe=At(Object,"create"),_e=Nt(Se),Te=Nt(Ae),Pe=Nt(Oe),je=Nt(ke),Ne=Nt(Be),Ie=ye?ye.prototype:void 0,Re=Ie?Ie.valueOf:void 0;function Le(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Me(){this.__data__=Fe?Fe(null):{},this.size=0}function ze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function $e(e){var t=this.__data__;if(Fe){var n=t[e];return n===r?void 0:n}return de.call(t,e)?t[e]:void 0}function He(e){var t=this.__data__;return Fe?void 0!==t[e]:de.call(t,e)}function Ue(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Fe&&void 0===t?r:t,this}function Ve(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function We(){this.__data__=[],this.size=0}function qe(e){var t=this.__data__,n=dt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():we.call(t,n,1),--this.size,!0}function Ge(e){var t=this.__data__,n=dt(t,e);return n<0?void 0:t[n][1]}function Ke(e){return dt(this.__data__,e)>-1}function Ye(e,t){var n=this.__data__,r=dt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Xe(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ze(){this.size=0,this.__data__={hash:new Le,map:new(Ae||Ve),string:new Le}}function Je(e){var t=St(this,e)["delete"](e);return this.size-=t?1:0,t}function Qe(e){return St(this,e).get(e)}function et(e){return St(this,e).has(e)}function tt(e,t){var n=St(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function nt(e){var t=-1,n=null==e?0:e.length;this.__data__=new Xe;while(++t<n)this.add(e[t])}function rt(e){return this.__data__.set(e,r),this}function ot(e){return this.__data__.has(e)}function it(e){var t=this.__data__=new Ve(e);this.size=t.size}function at(){this.__data__=new Ve,this.size=0}function ut(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function st(e){return this.__data__.get(e)}function lt(e){return this.__data__.has(e)}function ct(e,t){var r=this.__data__;if(r instanceof Ve){var o=r.__data__;if(!Ae||o.length<n-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Xe(o)}return r.set(e,t),this.size=r.size,this}function ft(e,t){var n=Lt(e),r=!n&&Rt(e),o=!n&&!r&&zt(e),i=!n&&!r&&!o&&qt(e),a=n||r||o||i,u=a?ee(e.length,String):[],s=u.length;for(var l in e)!t&&!de.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ft(l,s))||u.push(l);return u}function dt(e,t){var n=e.length;while(n--)if(It(e[n][0],t))return n;return-1}function pt(e,t,n){var r=t(e);return Lt(e)?r:J(r,n(e))}function ht(e){return null==e?void 0===e?S:y:Ee&&Ee in Object(e)?Ot(e):jt(e)}function gt(e){return Wt(e)&&ht(e)==u}function vt(e,t,n,r,o){return e===t||(null==e||null==t||!Wt(e)&&!Wt(t)?e!==e&&t!==t:yt(e,t,n,r,vt,o))}function yt(e,t,n,r,i,a){var l=Lt(e),c=Lt(t),f=l?s:Bt(e),d=c?s:Bt(t);f=f==u?m:f,d=d==u?m:d;var p=f==m,h=d==m,g=f==d;if(g&&zt(e)){if(!zt(t))return!1;l=!0,p=!1}if(g&&!p)return a||(a=new it),l||qt(e)?Et(e,t,n,r,i,a):Dt(e,t,f,n,r,i,a);if(!(n&o)){var v=p&&de.call(e,"__wrapped__"),y=h&&de.call(t,"__wrapped__");if(v||y){var b=v?e.value():e,w=y?t.value():t;return a||(a=new it),i(b,w,n,r,a)}}return!!g&&(a||(a=new it),Ct(e,t,n,r,i,a))}function mt(e){if(!Vt(e)||Tt(e))return!1;var t=Ht(e)?ge:M;return t.test(Nt(e))}function bt(e){return Wt(e)&&Ut(e.length)&&!!$[ht(e)]}function wt(e){if(!Pt(e))return xe(e);var t=[];for(var n in Object(e))de.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Et(e,t,n,r,a,u){var s=n&o,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var d=-1,p=!0,h=n&i?new nt:void 0;u.set(e,t),u.set(t,e);while(++d<l){var g=e[d],v=t[d];if(r)var y=s?r(v,g,d,t,e,u):r(g,v,d,e,t,u);if(void 0!==y){if(y)continue;p=!1;break}if(h){if(!Q(t,(function(e,t){if(!ne(h,t)&&(g===e||a(g,e,n,r,u)))return h.push(t)}))){p=!1;break}}else if(g!==v&&!a(g,v,n,r,u)){p=!1;break}}return u["delete"](e),u["delete"](t),p}function Dt(e,t,n,r,a,u,s){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!u(new me(e),new me(t)));case c:case f:case v:return It(+e,+t);case d:return e.name==t.name&&e.message==t.message;case E:case C:return e==t+"";case g:var l=oe;case D:var p=r&o;if(l||(l=ae),e.size!=t.size&&!p)return!1;var h=s.get(e);if(h)return h==t;r|=i,s.set(e,t);var y=Et(l(e),l(t),r,a,u,s);return s["delete"](e),y;case x:if(Re)return Re.call(e)==Re.call(t)}return!1}function Ct(e,t,n,r,i,a){var u=n&o,s=xt(e),l=s.length,c=xt(t),f=c.length;if(l!=f&&!u)return!1;var d=l;while(d--){var p=s[d];if(!(u?p in t:de.call(t,p)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var g=!0;a.set(e,t),a.set(t,e);var v=u;while(++d<l){p=s[d];var y=e[p],m=t[p];if(r)var b=u?r(m,y,p,t,e,a):r(y,m,p,e,t,a);if(!(void 0===b?y===m||i(y,m,n,r,a):b)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(g=!1)}return a["delete"](e),a["delete"](t),g}function xt(e){return pt(e,Gt,kt)}function St(e,t){var n=e.__data__;return _t(t)?n["string"==typeof t?"string":"hash"]:n.map}function At(e,t){var n=re(e,t);return mt(n)?n:void 0}function Ot(e){var t=de.call(e,Ee),n=e[Ee];try{e[Ee]=void 0;var r=!0}catch(lle){}var o=he.call(e);return r&&(t?e[Ee]=n:delete e[Ee]),o}Le.prototype.clear=Me,Le.prototype["delete"]=ze,Le.prototype.get=$e,Le.prototype.has=He,Le.prototype.set=Ue,Ve.prototype.clear=We,Ve.prototype["delete"]=qe,Ve.prototype.get=Ge,Ve.prototype.has=Ke,Ve.prototype.set=Ye,Xe.prototype.clear=Ze,Xe.prototype["delete"]=Je,Xe.prototype.get=Qe,Xe.prototype.has=et,Xe.prototype.set=tt,nt.prototype.add=nt.prototype.push=rt,nt.prototype.has=ot,it.prototype.clear=at,it.prototype["delete"]=ut,it.prototype.get=st,it.prototype.has=lt,it.prototype.set=ct;var kt=De?function(e){return null==e?[]:(e=Object(e),Z(De(e),(function(t){return be.call(e,t)})))}:Kt,Bt=ht;function Ft(e,t){return t=null==t?a:t,!!t&&("number"==typeof e||z.test(e))&&e>-1&&e%1==0&&e<t}function _t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Tt(e){return!!pe&&pe in e}function Pt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||le;return e===n}function jt(e){return he.call(e)}function Nt(e){if(null!=e){try{return fe.call(e)}catch(lle){}try{return e+""}catch(lle){}}return""}function It(e,t){return e===t||e!==e&&t!==t}(Se&&Bt(new Se(new ArrayBuffer(1)))!=k||Ae&&Bt(new Ae)!=g||Oe&&Bt(Oe.resolve())!=b||ke&&Bt(new ke)!=D||Be&&Bt(new Be)!=A)&&(Bt=function(e){var t=ht(e),n=t==m?e.constructor:void 0,r=n?Nt(n):"";if(r)switch(r){case _e:return k;case Te:return g;case Pe:return b;case je:return D;case Ne:return A}return t});var Rt=gt(function(){return arguments}())?gt:function(e){return Wt(e)&&de.call(e,"callee")&&!be.call(e,"callee")},Lt=Array.isArray;function Mt(e){return null!=e&&Ut(e.length)&&!Ht(e)}var zt=Ce||Yt;function $t(e,t){return vt(e,t)}function Ht(e){if(!Vt(e))return!1;var t=ht(e);return t==p||t==h||t==l||t==w}function Ut(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Vt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Wt(e){return null!=e&&"object"==typeof e}var qt=X?te(X):bt;function Gt(e){return Mt(e)?ft(e):wt(e)}function Kt(){return[]}function Yt(){return!1}e.exports=$t}));PA("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"}}),PA("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var PW="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function jW(e){var t={exports:{}};return e(t,t.exports),t.exports}var NW,IW,RW=function(e){return e&&e.Math==Math&&e},LW=RW("object"==typeof globalThis&&globalThis)||RW("object"==typeof window&&window)||RW("object"==typeof self&&self)||RW("object"==typeof PW&&PW)||function(){return this}()||Function("return this")(),MW=function(e){try{return!!e()}catch(e){return!0}},zW=!MW((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),$W=Function.prototype.call,HW=$W.bind?$W.bind($W):function(){return $W.apply($W,arguments)},UW={}.propertyIsEnumerable,VW=Object.getOwnPropertyDescriptor,WW={f:VW&&!UW.call({1:2},1)?function(e){var t=VW(this,e);return!!t&&t.enumerable}:UW},qW=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},GW=Function.prototype,KW=GW.bind,YW=GW.call,XW=KW&&KW.bind(YW),ZW=KW?function(e){return e&&XW(YW,e)}:function(e){return e&&function(){return YW.apply(e,arguments)}},JW=ZW({}.toString),QW=ZW("".slice),eq=function(e){return QW(JW(e),8,-1)},tq=LW.Object,nq=ZW("".split),rq=MW((function(){return!tq("z").propertyIsEnumerable(0)}))?function(e){return"String"==eq(e)?nq(e,""):tq(e)}:tq,oq=LW.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=function(e){return"function"==typeof e},sq=function(e){return"object"==typeof e?null!==e:uq(e)},lq=function(e){return uq(e)?e:void 0},cq=function(e,t){return arguments.length<2?lq(LW[e]):LW[e]&&LW[e][t]},fq=ZW({}.isPrototypeOf),dq=cq("navigator","userAgent")||"",pq=LW.process,hq=LW.Deno,gq=pq&&pq.versions||hq&&hq.version,vq=gq&&gq.v8;vq&&(IW=(NW=vq.split("."))[0]>0&&NW[0]<4?1:+(NW[0]+NW[1])),!IW&&dq&&(!(NW=dq.match(/Edge\/(\d+)/))||NW[1]>=74)&&(NW=dq.match(/Chrome\/(\d+)/))&&(IW=+NW[1]);var yq=IW,mq=!!Object.getOwnPropertySymbols&&!MW((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yq&&yq<41})),bq=mq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wq=LW.Object,Eq=bq?function(e){return"symbol"==typeof e}:function(e){var t=cq("Symbol");return uq(t)&&fq(t.prototype,wq(e))},Dq=LW.String,Cq=function(e){try{return Dq(e)}catch(e){return"Object"}},xq=LW.TypeError,Sq=function(e){if(uq(e))return e;throw xq(Cq(e)+" is not a function")},Aq=function(e,t){var n=e[t];return null==n?void 0:Sq(n)},Oq=LW.TypeError,kq=Object.defineProperty,Bq=function(e,t){try{kq(LW,e,{value:t,configurable:!0,writable:!0})}catch(p){LW[e]=t}return t},Fq=LW["__core-js_shared__"]||Bq("__core-js_shared__",{}),_q=jW((function(e){(e.exports=function(e,t){return Fq[e]||(Fq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Tq=LW.Object,Pq=function(e){return Tq(iq(e))},jq=ZW({}.hasOwnProperty),Nq=Object.hasOwn||function(e,t){return jq(Pq(e),t)},Iq=0,Rq=Math.random(),Lq=ZW(1..toString),Mq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Lq(++Iq+Rq,36)},zq=_q("wks"),$q=LW.Symbol,Hq=$q&&$q.for,Uq=bq?$q:$q&&$q.withoutSetter||Mq,Vq=function(e){if(!Nq(zq,e)||!mq&&"string"!=typeof zq[e]){var t="Symbol."+e;mq&&Nq($q,e)?zq[e]=$q[e]:zq[e]=bq&&Hq?Hq(t):Uq(t)}return zq[e]},Wq=LW.TypeError,qq=Vq("toPrimitive"),Gq=function(e,t){if(!sq(e)||Eq(e))return e;var n,r=Aq(e,qq);if(r){if(void 0===t&&(t="default"),n=HW(r,e,t),!sq(n)||Eq(n))return n;throw Wq("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&uq(n=e.toString)&&!sq(r=HW(n,e)))return r;if(uq(n=e.valueOf)&&!sq(r=HW(n,e)))return r;if("string"!==t&&uq(n=e.toString)&&!sq(r=HW(n,e)))return r;throw Oq("Can't convert object to primitive value")}(e,t)},Kq=function(e){var t=Gq(e,"string");return Eq(t)?t:t+""},Yq=LW.document,Xq=sq(Yq)&&sq(Yq.createElement),Zq=function(e){return Xq?Yq.createElement(e):{}},Jq=!zW&&!MW((function(){return 7!=Object.defineProperty(Zq("div"),"a",{get:function(){return 7}}).a})),Qq=Object.getOwnPropertyDescriptor,eG={f:zW?Qq:function(e,t){if(e=aq(e),t=Kq(t),Jq)try{return Qq(e,t)}catch(e){}if(Nq(e,t))return qW(!HW(WW.f,e,t),e[t])}},tG=LW.String,nG=LW.TypeError,rG=function(e){if(sq(e))return e;throw nG(tG(e)+" is not an object")},oG=LW.TypeError,iG=Object.defineProperty,aG={f:zW?iG:function(e,t,n){if(rG(e),t=Kq(t),rG(n),Jq)try{return iG(e,t,n)}catch(e){}if("get"in n||"set"in n)throw oG("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},uG=zW?function(e,t,n){return aG.f(e,t,qW(1,n))}:function(e,t,n){return e[t]=n,e},sG=ZW(Function.toString);uq(Fq.inspectSource)||(Fq.inspectSource=function(e){return sG(e)});var lG,cG,fG,dG=Fq.inspectSource,pG=LW.WeakMap,hG=uq(pG)&&/native code/.test(dG(pG)),gG=_q("keys"),vG=function(e){return gG[e]||(gG[e]=Mq(e))},yG={},mG=LW.TypeError,bG=LW.WeakMap;if(hG||Fq.state){var wG=Fq.state||(Fq.state=new bG),EG=ZW(wG.get),DG=ZW(wG.has),CG=ZW(wG.set);lG=function(e,t){if(DG(wG,e))throw new mG("Object already initialized");return t.facade=e,CG(wG,e,t),t},cG=function(e){return EG(wG,e)||{}},fG=function(e){return DG(wG,e)}}else{var xG=vG("state");yG[xG]=!0,lG=function(e,t){if(Nq(e,xG))throw new mG("Object already initialized");return t.facade=e,uG(e,xG,t),t},cG=function(e){return Nq(e,xG)?e[xG]:{}},fG=function(e){return Nq(e,xG)}}var SG={set:lG,get:cG,has:fG,enforce:function(e){return fG(e)?cG(e):lG(e,{})},getterFor:function(e){return function(t){var n;if(!sq(t)||(n=cG(t)).type!==e)throw mG("Incompatible receiver, "+e+" required");return n}}},AG=Function.prototype,OG=zW&&Object.getOwnPropertyDescriptor,kG=Nq(AG,"name"),BG={EXISTS:kG,PROPER:kG&&"something"===function(){}.name,CONFIGURABLE:kG&&(!zW||zW&&OG(AG,"name").configurable)},FG=jW((function(e){var t=BG.CONFIGURABLE,n=SG.get,r=SG.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;uq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nq(i,"name")||t&&i.name!==f)&&uG(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==LW?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:uG(e,n,i)):l?e[n]=i:Bq(n,i)})(Function.prototype,"toString",(function(){return uq(this)&&n(this).source||dG(this)}))})),_G=Math.ceil,TG=Math.floor,PG=function(e){var t=+e;return t!=t||0===t?0:(t>0?TG:_G)(t)},jG=Math.max,NG=Math.min,IG=function(e,t){var n=PG(e);return n<0?jG(n+t,0):NG(n,t)},RG=Math.min,LG=function(e){return e>0?RG(PG(e),9007199254740991):0},MG=function(e){return LG(e.length)},zG=function(e){return function(t,n,r){var o,i=aq(t),a=MG(i),u=IG(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}},$G={includes:zG(!0),indexOf:zG(!1)}.indexOf,HG=ZW([].push),UG=function(e,t){var n,r=aq(e),o=0,i=[];for(n in r)!Nq(yG,n)&&Nq(r,n)&&HG(i,n);for(;t.length>o;)Nq(r,n=t[o++])&&(~$G(i,n)||HG(i,n));return i},VG=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],WG=VG.concat("length","prototype"),qG={f:Object.getOwnPropertyNames||function(e){return UG(e,WG)}},GG={f:Object.getOwnPropertySymbols},KG=ZW([].concat),YG=cq("Reflect","ownKeys")||function(e){var t=qG.f(rG(e)),n=GG.f;return n?KG(t,n(e)):t},XG=function(e,t){for(var n=YG(t),r=aG.f,o=eG.f,i=0;i<n.length;i++){var a=n[i];Nq(e,a)||r(e,a,o(t,a))}},ZG=/#|\.prototype\./,JG=function(e,t){var n=eK[QG(e)];return n==nK||n!=tK&&(uq(t)?MW(t):!!t)},QG=JG.normalize=function(e){return String(e).replace(ZG,".").toLowerCase()},eK=JG.data={},tK=JG.NATIVE="N",nK=JG.POLYFILL="P",rK=JG,oK=eG.f,iK=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?LW:l?LW[u]||Bq(u,{}):(LW[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=oK(n,r))&&a.value:n[r],!rK(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;XG(i,o)}(e.sham||o&&o.sham)&&uG(i,"sham",!0),FG(n,r,i,e)}},aK={};aK[Vq("toStringTag")]="z";var uK,sK="[object z]"===String(aK),lK=Vq("toStringTag"),cK=LW.Object,fK="Arguments"==eq(function(){return arguments}()),dK=sK?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=cK(e),lK))?n:fK?eq(t):"Object"==(r=eq(t))&&uq(t.callee)?"Arguments":r},pK=LW.String,hK=function(e){if("Symbol"===dK(e))throw TypeError("Cannot convert a Symbol value to a string");return pK(e)},gK=/"/g,vK=ZW("".replace);iK({target:"String",proto:!0,forced:(uK="anchor",MW((function(){var e=""[uK]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=hK(iq(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+vK(hK(r),gK,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var yK,mK=function(){var e=rG(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},bK=LW.RegExp,wK=MW((function(){var e=bK("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),EK=wK||MW((function(){return!bK("a","y").sticky})),DK={BROKEN_CARET:wK||MW((function(){var e=bK("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:EK,UNSUPPORTED_Y:wK},CK=Object.keys||function(e){return UG(e,VG)},xK=zW?Object.defineProperties:function(e,t){rG(e);for(var n,r=aq(t),o=CK(t),i=o.length,a=0;i>a;)aG.f(e,n=o[a++],r[n]);return e},SK=cq("document","documentElement"),AK=vG("IE_PROTO"),OK=function(){},kK=function(e){return"<script>"+e+"<\/script>"},BK=function(e){e.write(kK("")),e.close();var t=e.parentWindow.Object;return e=null,t},FK=function(){try{yK=new ActiveXObject("htmlfile")}catch(e){}var e,t;FK="undefined"!=typeof document?document.domain&&yK?BK(yK):((t=Zq("iframe")).style.display="none",SK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(kK("document.F=Object")),e.close(),e.F):BK(yK);for(var n=VG.length;n--;)delete FK.prototype[VG[n]];return FK()};yG[AK]=!0;var _K,TK,PK=Object.create||function(e,t){var n;return null!==e?(OK.prototype=rG(e),n=new OK,OK.prototype=null,n[AK]=e):n=FK(),void 0===t?n:xK(n,t)},jK=LW.RegExp,NK=MW((function(){var e=jK(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),IK=LW.RegExp,RK=MW((function(){var e=IK("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),LK=SG.get,MK=_q("native-string-replace",String.prototype.replace),zK=RegExp.prototype.exec,$K=zK,HK=ZW("".charAt),UK=ZW("".indexOf),VK=ZW("".replace),WK=ZW("".slice),qK=(TK=/b*/g,HW(zK,_K=/a/,"a"),HW(zK,TK,"a"),0!==_K.lastIndex||0!==TK.lastIndex),GK=DK.BROKEN_CARET,KK=void 0!==/()??/.exec("")[1];(qK||KK||GK||NK||RK)&&($K=function(e){var t,n,r,o,i,a,u,s=this,l=LK(s),c=hK(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=HW($K,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=GK&&s.sticky,h=HW(mK,s),g=s.source,v=0,y=c;if(p&&(h=VK(h,"y",""),-1===UK(h,"g")&&(h+="g"),y=WK(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==HK(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),KK&&(n=new RegExp("^"+g+"$(?!\\s)",h)),qK&&(r=s.lastIndex),o=HW(zK,p?n:s,y),p?o?(o.input=WK(o.input,v),o[0]=WK(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:qK&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),KK&&o&&o.length>1&&HW(MK,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=PK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var YK=$K;iK({target:"RegExp",proto:!0,forced:/./.exec!==YK},{exec:YK});var XK=Array.isArray||function(e){return"Array"==eq(e)},ZK=function(){},JK=[],QK=cq("Reflect","construct"),eY=/^\s*(?:class|function)\b/,tY=ZW(eY.exec),nY=!eY.exec(ZK),rY=function(e){if(!uq(e))return!1;try{return QK(ZK,JK,e),!0}catch(e){return!1}},oY=!QK||MW((function(){var e;return rY(rY.call)||!rY(Object)||!rY((function(){e=!0}))||e}))?function(e){if(!uq(e))return!1;switch(dK(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nY||!!tY(eY,dG(e))}:rY,iY=function(e,t,n){var r=Kq(t);r in e?aG.f(e,r,qW(0,n)):e[r]=n},aY=Vq("species"),uY=function(e){return yq>=51||!MW((function(){var t=[];return(t.constructor={})[aY]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},sY=ZW([].slice),lY=uY("slice"),cY=Vq("species"),fY=LW.Array,dY=Math.max;function pY(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 hY(e){var t=e.selection;if(null==t)return!1;var n=pY(st.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=pY(n,2)[1],o=st.start(e,r);if(Et.equals(t.anchor,o))return!0}return!1}function gY(e,t){var n,r,o=st.nodes(e,{at:t,match:function(e){return"table"===Iw.getNodeType(e)}}),i=!1;try{for(var a=
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- 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}iK({target:"Array",proto:!0,forced:!lY},{slice:function(e,t){var n,r,o,i=aq(this),a=MG(i),u=IG(e,a),s=IG(void 0===t?a:t,a);if(XK(i)&&(n=i.constructor,(oY(n)&&(n===fY||XK(n.prototype))||sq(n)&&null===(n=n[cY]))&&(n=void 0),n===fY||void 0===n))return sY(i,u,s);for(r=new(void 0===n?fY:n)(dY(s-u,0)),o=0;u<s;u++,o++)u in i&&iY(r,o,i[u]);return r.length=o,r}});var vY=ZW(ZW.bind),yY=Vq("species"),mY=LW.Array,bY=function(e,t){return new(function(e){var t;return XK(e)&&(t=e.constructor,(oY(t)&&(t===mY||XK(t.prototype))||sq(t)&&null===(t=t[yY]))&&(t=void 0)),void 0===t?mY:t}(e))(0===t?0:t)},wY=ZW([].push),EY=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=Pq(s),g=rq(h),v=function(e,t){return Sq(e),void 0===t?e:vY?vY(e,t):function(){return e.apply(t,arguments)}}(l,c),y=MG(g),m=0,b=f||bY,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:wY(w,d)}else switch(e){case 4:return!1;case 7:wY(w,d)}return i?-1:r||o?o:w}},DY={forEach:EY(0),map:EY(1),filter:EY(2),some:EY(3),every:EY(4),find:EY(5),findIndex:EY(6),filterReject:EY(7)},CY=DY.map;iK({target:"Array",proto:!0,forced:!uY("map")},{map:function(e){return CY(this,e,arguments.length>1?arguments[1]:void 0)}});var xY=sK?{}.toString:function(){return"[object "+dK(this)+"]"};function SY(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function AY(e){return SY(e).every((function(e){return!!e.isHeader}))}sK||FG(Object.prototype,"toString",xY,{unsafe:!0});var OY=BG.PROPER,kY=RegExp.prototype,BY=kY.toString,FY=ZW(mK),_Y=MW((function(){return"/a/b"!=BY.call({source:"a",flags:"b"})})),TY=OY&&"toString"!=BY.name;(_Y||TY)&&FG(RegExp.prototype,"toString",(function(){var e=rG(this),t=hK(e.source),n=e.flags;return"/"+t+"/"+hK(void 0===n&&fq(kY,e)&&!("flags"in kY)?FY(e):n)}),{unsafe:!0});var PY=Vq("unscopables"),jY=Array.prototype;null==jY[PY]&&aG.f(jY,PY,{configurable:!0,value:PK(null)});var NY,IY=DY.find,RY=!0;"find"in[]&&Array(1).find((function(){RY=!1})),iK({target:"Array",proto:!0,forced:RY},{find:function(e){return IY(this,e,arguments.length>1?arguments[1]:void 0)}}),NY="find",jY[PY][NY]=!0;var LY=Function.prototype,MY=LY.apply,zY=LY.bind,$Y=LY.call,HY="object"==typeof Reflect&&Reflect.apply||(zY?$Y.bind(MY):function(){return $Y.apply(MY,arguments)}),UY=Vq("species"),VY=RegExp.prototype,WY=function(e,t,n,r){var o=Vq(e),i=!MW((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!MW((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[UY]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=ZW(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=ZW(e),s=t.exec;return s===YK||s===VY.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));FG(String.prototype,e,s[0]),FG(VY,o,s[1])}r&&uG(VY[o],"sham",!0)},qY=Vq("match"),GY=LW.TypeError,KY=Vq("species"),YY=function(e,t){var n,r=rG(e).constructor;return void 0===r||null==(n=rG(r)[KY])?t:function(e){if(oY(e))return e;throw GY(Cq(e)+" is not a constructor")}(n)},XY=ZW("".charAt),ZY=ZW("".charCodeAt),JY=ZW("".slice),QY=function(e){return function(t,n){var r,o,i=hK(iq(t)),a=PG(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ZY(i,a))<55296||r>56319||a+1===u||(o=ZY(i,a+1))<56320||o>57343?e?XY(i,a):r:e?JY(i,a,a+2):o-56320+(r-55296<<10)+65536}},eX={codeAt:QY(!1),charAt:QY(!0)}.charAt,tX=function(e,t,n){return t+(n?eX(e,t).length:1)},nX=LW.Array,rX=Math.max,oX=function(e,t,n){for(var r=MG(e),o=IG(t,r),i=IG(void 0===n?r:n,r),a=nX(rX(i-o,0)),u=0;o<i;o++,u++)iY(a,u,e[o]);return a.length=u,a},iX=LW.TypeError,aX=function(e,t){var n=e.exec;if(uq(n)){var r=HW(n,e,t);return null!==r&&rG(r),r}if("RegExp"===eq(e))return HW(YK,e,t);throw iX("RegExp#exec called on incompatible receiver")},uX=DK.UNSUPPORTED_Y,sX=Math.min,lX=[].push,cX=ZW(/./.exec),fX=ZW(lX),dX=ZW("".slice);WY("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=hK(iq(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!sq(r=e)||!(void 0!==(o=r[qY])?o:"RegExp"==eq(r)))return HW(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=HW(YK,p,i))&&!((s=p.lastIndex)>d&&(fX(c,dX(i,d,u.index)),u.length>1&&u.index<i.length&&HY(lX,c,oX(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&cX(p,"")||fX(c,""):fX(c,dX(i,d)),c.length>a?oX(c,0,a):c}:"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=iq(this),i=null==t?void 0:Aq(t,e);return i?HW(i,t,o,n):HW(r,hK(o),t,n)},function(e,o){var i=rG(this),a=hK(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=YY(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(uX?"g":"y"),f=new s(uX?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===aX(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=uX?0:h;var v,y=aX(f,uX?dX(a,h):a);if(null===y||(v=sX(LG(f.lastIndex+(uX?h:0)),a.length))===p)h=tX(a,h,l);else{if(fX(g,dX(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(fX(g,y[m]),g.length===d)return g;h=p=v}}return fX(g,dX(a,p)),g}]}),!!MW((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]})),uX);var pX="\t\n\v\f\r \u2028\u2029\ufeff",hX=ZW("".replace),gX="["+pX+"]",vX=RegExp("^"+gX+gX+"*"),yX=RegExp(gX+gX+"*$"),mX=function(e){return function(t){var n=hK(iq(t));return 1&e&&(n=hX(n,vX,"")),2&e&&(n=hX(n,yX,"")),n}},bX={start:mX(1),end:mX(2),trim:mX(3)},wX=BG.PROPER,EX=bX.trim;function DX(e){return e.length?e[0].tagName.toLowerCase():""}iK({target:"String",proto:!0,forced:function(e){return MW((function(){return!!pX[e]()||"
"!=="
"[e]()||wX&&pX[e].name!==e}))}("trim")},{trim:function(){return EX(this)}}),iK({global:!0},{globalThis:LW}),To&&(co.fn.append=To),bo&&(co.fn.on=bo),Uo&&(co.fn.focus=Uo),go&&(co.fn.attr=go),mo&&(co.fn.val=mo),Bo&&(co.fn.html=Bo),yo&&(co.fn.dataset=yo),fo&&(co.fn.addClass=fo),po&&(co.fn.removeClass=po),Ro&&(co.fn.children=Ro),Oo&&(co.fn.each=Oo),Io&&(co.fn.find=Io);var CX=!1,xX=0,SX=0,AX=null,OX=null,kX=co("body");function BX(e){CX=!1,OX=null,AX=null,kX.off("mousemove",FX),kX.off("mouseup",BX)}kX.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(),CX=!0;var n=e.clientX;xX=n;var r=t.getBoundingClientRect().width;SX=r,kX.on("mousemove",FX),kX.on("mouseup",BX)}}));var FX=Gi((function(e){if(CX&&null!=OX&&null!=AX){e.preventDefault();var t=e.clientX,n=SX+(t-xX);(n=Math.floor(100*n)/100)<30&&(n=30),Jt.setNodes(OX,{width:n.toString()},{at:AX})}}),100),_X={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(At.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Iw.findPath(e,t),a=st.start(e,i),u=st.end(e,i),s=Et.compare(r,u)<=0&&Et.compare(r,a)>=0,l=Et.compare(o,u)<=0&&Et.compare(o,a)>=0;return!!(s&&l&&yt.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=Iw.isNodeSelected(n,e),u=SY(e),s=Wa("div",{className:"table-container","data-selected":a,on:{mousedown:function(t){"DIV"===t.target.tagName&&t.preventDefault();var r=Iw.findPath(n,e),o=st.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}},Wa("table",{width:i,contentEditable:r},Wa("colgroup",null,u.map((function(e){var t=e.width;return Wa("col",{width:void 0===t?"auto":t})}))),Wa("tbody",null,t)));return s}},TX={type:"table-row",renderElem:function(e,t,n){return Wa("tr",null,t)}},PX={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Iw.getParentNode(e,t);if(null==n)return!1;var r=Iw.getParentNode(e,n);return null!=r&&SY(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,c=void 0!==l&&l;if(!r)return Wa("td",{colSpan:a,rowSpan:s},t);var f=Wa(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Gi((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;CX||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",OX=n,AX=Iw.findPath(n,e)):CX||(r.style.cursor="auto",OX=null,AX=null))}}),100)}},t);return f}},jX={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},NX={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},IX={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+">"}},RX={selector:"table",preParseHtml:function(e){var t=co(e);if("table"!==DX(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]}},LX=DY.filter;iK({target:"Array",proto:!0,forced:!uY("filter")},{filter:function(e){return LX(this,e,arguments.length>1?arguments[1]:void 0)}});var MX=Math.floor,zX=ZW("".charAt),$X=ZW("".replace),HX=ZW("".slice),UX=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,VX=/\$([$&'`]|\d{1,2})/g,WX=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=VX;return void 0!==o&&(o=Pq(o),s=UX),$X(i,s,(function(i,s){var l;switch(zX(s,0)){case"$":return"$";case"&":return e;case"`":return HX(t,0,n);case"'":return HX(t,a);case"<":l=o[HX(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=MX(c/10);return 0===f?i:f<=u?void 0===r[f-1]?zX(s,1):r[f-1]+zX(s,1):i}l=r[c-1]}return void 0===l?"":l}))},qX=Vq("replace"),GX=Math.max,KX=Math.min,YX=ZW([].concat),XX=ZW([].push),ZX=ZW("".indexOf),JX=ZW("".slice),QX="$0"==="a".replace(/./,"$0"),eZ=!!/./[qX]&&""===/./[qX]("a","$0");WY("replace",(function(e,t,n){var r=eZ?"$":"$0";return[function(e,n){var r=iq(this),o=null==e?void 0:Aq(e,qX);return o?HW(o,e,r,n):HW(t,hK(r),e,n)},function(e,o){var i=rG(this),a=hK(e);if("string"==typeof o&&-1===ZX(o,r)&&-1===ZX(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=uq(o);s||(o=hK(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=aX(i,a);if(null===d)break;if(XX(f,d),!l)break;""===hK(d[0])&&(i.lastIndex=tX(a,LG(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=hK((d=f[v])[0]),m=GX(KX(PG(d.index),a.length),0),b=[],w=1;w<d.length;w++)XX(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=YX([y],b,m,a);void 0!==E&&XX(D,E);var C=hK(HY(o,void 0,D))}else C=WX(y,a,m,b,E,o);m>=g&&(h+=JX(a,g,m)+C,g=m+y.length)}return h+JX(a,g)}]}),!!MW((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!QX||eZ);var tZ={selector:"td,th",parseElemHtml:function(e,t,n){var r=co(e);0===(t=t.filter((function(e){return!!Pt.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"===DX(r),colSpan:o,rowSpan:i,width:a,children:t}}},nZ={selector:"tr",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===Iw.getNodeType(e)}))}}},rZ={selector:"table",parseElemHtml:function(e,t,n){var r=co(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(":");u[0].trim()===t&&(n=u[1].trim())}}return n}(r,"width")&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===Iw.getNodeType(e)}))}}},oZ=function(){function e(){this.title=jA("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||!At.isCollapsed(t)||!!Iw.getSelectedElems(e).some((function(t){var n=Iw.getNodeType(t);return"pre"===n||"table"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=co('<div class="w-e-panel-content-table"></div>'),r=co("<span>0 × 0</span>"),o=co("<table></table>"),i=0;i<10;i++){for(var a=co("<tr></tr>"),u=0;u<10;u++){var s=co("<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=co(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){co(e).children().each((function(e){var t=co(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=co(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)){var i=Iw.getSelectedNodeByType(e,"paragraph");i&&""===pt.string(i)&&Jt.removeNodes(e,{mode:"highest"});var a=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);Jt.insertNodes(e,a,{mode:"highest"})}},e}(),iZ=function(){function e(){this.title=jA("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==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Jt.removeNodes(e,{mode:"highest"})},e}(),aZ=function(){function e(){this.title=jA("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||!At.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=pY(st.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-cell")},universal:!0}),1),r=pY(n[0],2),o=r[0],i=r[1],a=Iw.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=yt.parent(i),f=yt.next(c);Jt.insertNodes(e,s,{at:f})}}},e}(),uZ=function(){function e(){this.title=jA("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||!At.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=pY(st.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-row")},universal:!0}),1),r=pY(n[0],2),o=r[0],i=r[1],a=Iw.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Jt.removeNodes(e,{mode:"highest"}):Jt.removeNodes(e,{at:i})}},e}(),sZ={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},lZ=Zq("span").classList,cZ=lZ&&lZ.constructor&&lZ.constructor.prototype,fZ=cZ===Object.prototype?void 0:cZ,dZ=DY.forEach,pZ=function(e,t){var n=[][e];return!!n&&MW((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),hZ=pZ?[].forEach:function(e){return dZ(this,e,arguments.length>1?arguments[1]:void 0)},gZ=function(e){if(e&&e.forEach!==hZ)try{uG(e,"forEach",hZ)}catch(lle){e.forEach=hZ}};for(var vZ in sZ)sZ[vZ]&&gZ(LW[vZ]&&LW[vZ].prototype);gZ(fZ);var yZ=function(){function e(){this.title=jA("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||!At.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=pY(st.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-cell")},universal:!0}),1),r=pY(n[0],2),o=r[0],i=r[1],a=Iw.getParentNode(e,o);if(null!=a){var u=Iw.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){nt.isElement(t)&&(t.children||[]).forEach((function(t){var r=Iw.findPath(e,t);if(r.length===i.length&&TW(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&AY(u)&&(o.isHeader=!0),Jt.insertNodes(e,o,{at:r})}}))}))}}},e}(),mZ=function(){function e(){this.title=jA("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||!At.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=pY(st.nodes(e,{match:function(e){return Iw.checkNodeType(e,"table-cell")},universal:!0}),1),r=pY(n[0],2),o=r[0],i=r[1],a=Iw.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Jt.removeNodes(e,{mode:"highest"});else{var s=Iw.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){nt.isElement(t)&&(t.children||[]).forEach((function(t){var n=Iw.findPath(e,t);n.length===i.length&&TW(n.slice(-1),i.slice(-1))&&Jt.removeNodes(e,{at:n})}))}))}}},e}(),bZ=function(){function e(){this.title=jA("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=Iw.getSelectedNodeByType(e,"table");return null!=t&&AY(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!At.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Iw.getSelectedNodeByType(e,"table");null!=r&&SY(r).forEach((function(t){return Jt.setNodes(e,{isHeader:n},{at:Iw.findPath(e,t)})}))}},e}(),wZ=function(){function e(){this.title=jA("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=Iw.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||!At.isCollapsed(t)||null==Iw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Jt.setNodes(e,n,{mode:"highest"})}},e}(),EZ={renderElems:[_X,TX,PX],elemsToHtml:[jX,NX,IX],preParseHtml:[RX],parseElemsHtml:[tZ,nZ,rZ],menus:[{key:"insertTable",factory:function(){return new oZ}},{key:"deleteTable",factory:function(){return new iZ}},{key:"insertTableRow",factory:function(){return new aZ}},{key:"deleteTableRow",factory:function(){return new uZ}},{key:"insertTableCol",factory:function(){return new yZ}},{key:"deleteTableCol",factory:function(){return new mZ}},{key:"tableHeader",factory:function(){return new bZ}},{key:"tableFullWidth",factory:function(){return new wZ}}],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==Iw.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!hY(s)){var t=s.selection;if(t){var r=st.before(s,t);if(r){var o=gY(s,r),i=gY(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(Iw.getSelectedNodeByType(s,"table")){var n=st.above(e);Iw.checkNodeType(n[0],"table-cell")&&Jt.select(e,n[1]);var r=st.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=st.above(e,{at:r[1]}))&&void 0!==t?t:r),Jt.select(e,r[1]);else{var o=s.children||[],i=o.length;if(Iw.checkNodeType(o[i-1],"table")){var u=Iw.genEmptyParagraph();Jt.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){hY(s)||r(e)},s.normalizeNode=function(e){var t=pY(e,2),n=t[0],r=t[1];if("table"!==Iw.getNodeType(n))return o([n,r]);if(Iw.isLastNode(s,n)){var i=Iw.genEmptyParagraph();Jt.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=Iw.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):st.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=Iw.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(yt.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==pt.string(t).length){var o=Iw.findPath(s,t),i={anchor:st.start(s,o),focus:st.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};PA("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"video source",insertPlaceHolder:"video file url, or third-party <iframe>",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),PA("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",insertPlaceHolder:"视频文件 url 或第三方 <iframe>",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var DZ=function(){return DZ=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},DZ.apply(this,arguments)};function CZ(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 xZ(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=a.trys,!((o=o.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 SZ(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 AZ(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 OZ(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=SZ(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)}))}}}var kZ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function BZ(e){var t={exports:{}};return e(t,t.exports),t.exports}var FZ,_Z,TZ=function(e){return e&&e.Math==Math&&e},PZ=TZ("object"==typeof globalThis&&globalThis)||TZ("object"==typeof window&&window)||TZ("object"==typeof self&&self)||TZ("object"==typeof kZ&&kZ)||function(){return this}()||Function("return this")(),jZ=function(e){try{return!!e()}catch(e){return!0}},NZ=!jZ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),IZ=Function.prototype.call,RZ=IZ.bind?IZ.bind(IZ):function(){return IZ.apply(IZ,arguments)},LZ={}.propertyIsEnumerable,MZ=Object.getOwnPropertyDescriptor,zZ={f:MZ&&!LZ.call({1:2},1)?function(e){var t=MZ(this,e);return!!t&&t.enumerable}:LZ},$Z=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},HZ=Function.prototype,UZ=HZ.bind,VZ=HZ.call,WZ=UZ&&UZ.bind(VZ),qZ=UZ?function(e){return e&&WZ(VZ,e)}:function(e){return e&&function(){return VZ.apply(e,arguments)}},GZ=qZ({}.toString),KZ=qZ("".slice),YZ=function(e){return KZ(GZ(e),8,-1)},XZ=PZ.Object,ZZ=qZ("".split),JZ=jZ((function(){return!XZ("z").propertyIsEnumerable(0)}))?function(e){return"String"==YZ(e)?ZZ(e,""):XZ(e)}:XZ,QZ=PZ.TypeError,eJ=function(e){if(null==e)throw QZ("Can't call method on "+e);return e},tJ=function(e){return JZ(eJ(e))},nJ=function(e){return"function"==typeof e},rJ=function(e){return"object"==typeof e?null!==e:nJ(e)},oJ=function(e){return nJ(e)?e:void 0},iJ=function(e,t){return arguments.length<2?oJ(PZ[e]):PZ[e]&&PZ[e][t]},aJ=qZ({}.isPrototypeOf),uJ=iJ("navigator","userAgent")||"",sJ=PZ.process,lJ=PZ.Deno,cJ=sJ&&sJ.versions||lJ&&lJ.version,fJ=cJ&&cJ.v8;fJ&&(_Z=(FZ=fJ.split("."))[0]>0&&FZ[0]<4?1:+(FZ[0]+FZ[1])),!_Z&&uJ&&(!(FZ=uJ.match(/Edge\/(\d+)/))||FZ[1]>=74)&&(FZ=uJ.match(/Chrome\/(\d+)/))&&(_Z=+FZ[1]);var dJ=_Z,pJ=!!Object.getOwnPropertySymbols&&!jZ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dJ&&dJ<41})),hJ=pJ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gJ=PZ.Object,vJ=hJ?function(e){return"symbol"==typeof e}:function(e){var t=iJ("Symbol");return nJ(t)&&aJ(t.prototype,gJ(e))},yJ=PZ.String,mJ=function(e){try{return yJ(e)}catch(e){return"Object"}},bJ=PZ.TypeError,wJ=function(e){if(nJ(e))return e;throw bJ(mJ(e)+" is not a function")},EJ=function(e,t){var n=e[t];return null==n?void 0:wJ(n)},DJ=PZ.TypeError,CJ=Object.defineProperty,xJ=function(e,t){try{CJ(PZ,e,{value:t,configurable:!0,writable:!0})}catch(p){PZ[e]=t}return t},SJ=PZ["__core-js_shared__"]||xJ("__core-js_shared__",{}),AJ=BZ((function(e){(e.exports=function(e,t){return SJ[e]||(SJ[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),OJ=PZ.Object,kJ=function(e){return OJ(eJ(e))},BJ=qZ({}.hasOwnProperty),FJ=Object.hasOwn||function(e,t){return BJ(kJ(e),t)},_J=0,TJ=Math.random(),PJ=qZ(1..toString),jJ=function(e){return"Symbol("+(void 0===e?"":e)+")_"+PJ(++_J+TJ,36)},NJ=AJ("wks"),IJ=PZ.Symbol,RJ=IJ&&IJ.for,LJ=hJ?IJ:IJ&&IJ.withoutSetter||jJ,MJ=function(e){if(!FJ(NJ,e)||!pJ&&"string"!=typeof NJ[e]){var t="Symbol."+e;pJ&&FJ(IJ,e)?NJ[e]=IJ[e]:NJ[e]=hJ&&RJ?RJ(t):LJ(t)}return NJ[e]},zJ=PZ.TypeError,$J=MJ("toPrimitive"),HJ=function(e,t){if(!rJ(e)||vJ(e))return e;var n,r=EJ(e,$J);if(r){if(void 0===t&&(t="default"),n=RZ(r,e,t),!rJ(n)||vJ(n))return n;throw zJ("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&nJ(n=e.toString)&&!rJ(r=RZ(n,e)))return r;if(nJ(n=e.valueOf)&&!rJ(r=RZ(n,e)))return r;if("string"!==t&&nJ(n=e.toString)&&!rJ(r=RZ(n,e)))return r;throw DJ("Can't convert object to primitive value")}(e,t)},UJ=function(e){var t=HJ(e,"string");return vJ(t)?t:t+""},VJ=PZ.document,WJ=rJ(VJ)&&rJ(VJ.createElement),qJ=function(e){return WJ?VJ.createElement(e):{}},GJ=!NZ&&!jZ((function(){return 7!=Object.defineProperty(qJ("div"),"a",{get:function(){return 7}}).a})),KJ=Object.getOwnPropertyDescriptor,YJ={f:NZ?KJ:function(e,t){if(e=tJ(e),t=UJ(t),GJ)try{return KJ(e,t)}catch(e){}if(FJ(e,t))return $Z(!RZ(zZ.f,e,t),e[t])}},XJ=PZ.String,ZJ=PZ.TypeError,JJ=function(e){if(rJ(e))return e;throw ZJ(XJ(e)+" is not an object")},QJ=PZ.TypeError,eQ=Object.defineProperty,tQ={f:NZ?eQ:function(e,t,n){if(JJ(e),t=UJ(t),JJ(n),GJ)try{return eQ(e,t,n)}catch(e){}if("get"in n||"set"in n)throw QJ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},nQ=NZ?function(e,t,n){return tQ.f(e,t,$Z(1,n))}:function(e,t,n){return e[t]=n,e},rQ=qZ(Function.toString);nJ(SJ.inspectSource)||(SJ.inspectSource=function(e){return rQ(e)});var oQ,iQ,aQ,uQ=SJ.inspectSource,sQ=PZ.WeakMap,lQ=nJ(sQ)&&/native code/.test(uQ(sQ)),cQ=AJ("keys"),fQ=function(e){return cQ[e]||(cQ[e]=jJ(e))},dQ={},pQ=PZ.TypeError,hQ=PZ.WeakMap;if(lQ||SJ.state){var gQ=SJ.state||(SJ.state=new hQ),vQ=qZ(gQ.get),yQ=qZ(gQ.has),mQ=qZ(gQ.set);oQ=function(e,t){if(yQ(gQ,e))throw new pQ("Object already initialized");return t.facade=e,mQ(gQ,e,t),t},iQ=function(e){return vQ(gQ,e)||{}},aQ=function(e){return yQ(gQ,e)}}else{var bQ=fQ("state");dQ[bQ]=!0,oQ=function(e,t){if(FJ(e,bQ))throw new pQ("Object already initialized");return t.facade=e,nQ(e,bQ,t),t},iQ=function(e){return FJ(e,bQ)?e[bQ]:{}},aQ=function(e){return FJ(e,bQ)}}var wQ={set:oQ,get:iQ,has:aQ,enforce:function(e){return aQ(e)?iQ(e):oQ(e,{})},getterFor:function(e){return function(t){var n;if(!rJ(t)||(n=iQ(t)).type!==e)throw pQ("Incompatible receiver, "+e+" required");return n}}},EQ=Function.prototype,DQ=NZ&&Object.getOwnPropertyDescriptor,CQ=FJ(EQ,"name"),xQ={EXISTS:CQ,PROPER:CQ&&"something"===function(){}.name,CONFIGURABLE:CQ&&(!NZ||NZ&&DQ(EQ,"name").configurable)},SQ=BZ((function(e){var t=xQ.CONFIGURABLE,n=wQ.get,r=wQ.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;nJ(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!FJ(i,"name")||t&&i.name!==f)&&nQ(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==PZ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:nQ(e,n,i)):l?e[n]=i:xJ(n,i)})(Function.prototype,"toString",(function(){return nJ(this)&&n(this).source||uQ(this)}))})),AQ=Math.ceil,OQ=Math.floor,kQ=function(e){var t=+e;return t!=t||0===t?0:(t>0?OQ:AQ)(t)},BQ=Math.max,FQ=Math.min,_Q=function(e,t){var n=kQ(e);return n<0?BQ(n+t,0):FQ(n,t)},TQ=Math.min,PQ=function(e){return e>0?TQ(kQ(e),9007199254740991):0},jQ=function(e){return PQ(e.length)},NQ=function(e){return function(t,n,r){var o,i=tJ(t),a=jQ(i),u=_Q(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}},IQ={includes:NQ(!0),indexOf:NQ(!1)},RQ=IQ.indexOf,LQ=qZ([].push),MQ=function(e,t){var n,r=tJ(e),o=0,i=[];for(n in r)!FJ(dQ,n)&&FJ(r,n)&&LQ(i,n);for(;t.length>o;)FJ(r,n=t[o++])&&(~RQ(i,n)||LQ(i,n));return i},zQ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$Q=zQ.concat("length","prototype"),HQ={f:Object.getOwnPropertyNames||function(e){return MQ(e,$Q)}},UQ={f:Object.getOwnPropertySymbols},VQ=qZ([].concat),WQ=iJ("Reflect","ownKeys")||function(e){var t=HQ.f(JJ(e)),n=UQ.f;return n?VQ(t,n(e)):t},qQ=function(e,t){for(var n=WQ(t),r=tQ.f,o=YJ.f,i=0;i<n.length;i++){var a=n[i];FJ(e,a)||r(e,a,o(t,a))}},GQ=/#|\.prototype\./,KQ=function(e,t){var n=XQ[YQ(e)];return n==JQ||n!=ZQ&&(nJ(t)?jZ(t):!!t)},YQ=KQ.normalize=function(e){return String(e).replace(GQ,".").toLowerCase()},XQ=KQ.data={},ZQ=KQ.NATIVE="N",JQ=KQ.POLYFILL="P",QQ=KQ,e0=YJ.f,t0=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?PZ:l?PZ[u]||xJ(u,{}):(PZ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=e0(n,r))&&a.value:n[r],!QQ(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;qQ(i,o)}(e.sham||o&&o.sham)&&nQ(i,"sham",!0),SQ(n,r,i,e)}},n0={};n0[MJ("toStringTag")]="z";var r0,o0="[object z]"===String(n0),i0=MJ("toStringTag"),a0=PZ.Object,u0="Arguments"==YZ(function(){return arguments}()),s0=o0?YZ: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=a0(e),i0))?n:u0?YZ(t):"Object"==(r=YZ(t))&&nJ(t.callee)?"Arguments":r},l0=PZ.String,c0=function(e){if("Symbol"===s0(e))throw TypeError("Cannot convert a Symbol value to a string");return l0(e)},f0="\t\n\v\f\r \u2028\u2029\ufeff",d0=qZ("".replace),p0="["+f0+"]",h0=RegExp("^"+p0+p0+"*"),g0=RegExp(p0+p0+"*$"),v0=function(e){return function(t){var n=c0(eJ(t));return 1&e&&(n=d0(n,h0,"")),2&e&&(n=d0(n,g0,"")),n}},y0={start:v0(1),end:v0(2),trim:v0(3)},m0=xQ.PROPER,b0=y0.trim;function w0(e){return e.length?e[0].tagName.toLowerCase():""}function E0(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=co(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}t0({target:"String",proto:!0,forced:(r0="trim",jZ((function(){return!!f0[r0]()||"
"!=="
"[r0]()||m0&&f0[r0].name!==r0})))},{trim:function(){return b0(this)}}),t0({global:!0},{globalThis:PZ}),To&&(co.fn.append=To),bo&&(co.fn.on=bo),Uo&&(co.fn.focus=Uo),go&&(co.fn.attr=go),mo&&(co.fn.val=mo),Bo&&(co.fn.html=Bo),jo&&(co.fn.parent=jo),ho&&(co.fn.hasClass=ho),Mo&&(co.fn.empty=Mo);var D0,C0={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.width,s=void 0===u?"auto":u,l=o.height,c=void 0===l?"auto":l,f=Iw.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){var d=E0(a,s,c);r=Wa("div",{className:"w-e-textarea-video-container","data-selected":f?"true":"",innerHTML:d})}else{var p=Wa("video",{controls:!0},Wa("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==s&&(p.data.width=s),"auto"!==c&&(p.data.height=c),r=Wa("div",{className:"w-e-textarea-video-container","data-selected":f?"true":""},p)}return Da("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},x0={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.width,a=void 0===i?"auto":i,u=n.height,s=void 0===u?"auto":u,l='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?l+=E0(o,a,s):l+='<video controls="true" width="'+a+'" height="'+s+'"><source src="'+o+'" type="video/mp4"/></video>',l+"\n</div>"}},S0=Object.keys||function(e){return MQ(e,zQ)},A0=NZ?Object.defineProperties:function(e,t){JJ(e);for(var n,r=tJ(t),o=S0(t),i=o.length,a=0;i>a;)tQ.f(e,n=o[a++],r[n]);return e},O0=iJ("document","documentElement"),k0=fQ("IE_PROTO"),B0=function(){},F0=function(e){return"<script>"+e+"<\/script>"},_0=function(e){e.write(F0("")),e.close();var t=e.parentWindow.Object;return e=null,t},T0=function(){try{D0=new ActiveXObject("htmlfile")}catch(e){}var e,t;T0="undefined"!=typeof document?document.domain&&D0?_0(D0):((t=qJ("iframe")).style.display="none",O0.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(F0("document.F=Object")),e.close(),e.F):_0(D0);for(var n=zQ.length;n--;)delete T0.prototype[zQ[n]];return T0()};dQ[k0]=!0;var P0=Object.create||function(e,t){var n;return null!==e?(B0.prototype=JJ(e),n=new B0,B0.prototype=null,n[k0]=e):n=T0(),void 0===t?n:A0(n,t)},j0=MJ("unscopables"),N0=Array.prototype;null==N0[j0]&&tQ.f(N0,j0,{configurable:!0,value:P0(null)});var I0=function(e){N0[j0][e]=!0},R0=IQ.includes;t0({target:"Array",proto:!0},{includes:function(e){return R0(this,e,arguments.length>1?arguments[1]:void 0)}}),I0("includes");var L0={selector:"iframe,video,p",preParseHtml:function(e){var t=co(e),n=t;if("p"===w0(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=co(o))}}var a=w0(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=co('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},M0=qZ(qZ.bind),z0=function(e,t){return wJ(e),void 0===t?e:M0?M0(e,t):function(){return e.apply(t,arguments)}},$0=Array.isArray||function(e){return"Array"==YZ(e)},H0=function(){},U0=[],V0=iJ("Reflect","construct"),W0=/^\s*(?:class|function)\b/,q0=qZ(W0.exec),G0=!W0.exec(H0),K0=function(e){if(!nJ(e))return!1;try{return V0(H0,U0,e),!0}catch(e){return!1}},Y0=!V0||jZ((function(){var e;return K0(K0.call)||!K0(Object)||!K0((function(){e=!0}))||e}))?function(e){if(!nJ(e))return!1;switch(s0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return G0||!!q0(W0,uQ(e))}:K0,X0=MJ("species"),Z0=PZ.Array,J0=function(e,t){return new(function(e){var t;return $0(e)&&(t=e.constructor,(Y0(t)&&(t===Z0||$0(t.prototype))||rJ(t)&&null===(t=t[X0]))&&(t=void 0)),void 0===t?Z0:t}(e))(0===t?0:t)},Q0=qZ([].push),e1=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=kJ(s),g=JZ(h),v=z0(l,c),y=jQ(g),m=0,b=f||J0,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:Q0(w,d)}else switch(e){case 4:return!1;case 7:Q0(w,d)}return i?-1:r||o?o:w}},t1={forEach:e1(0),map:e1(1),filter:e1(2),some:e1(3),every:e1(4),find:e1(5),findIndex:e1(6),filterReject:e1(7)},n1=t1.find,r1=!0;"find"in[]&&Array(1).find((function(){r1=!1})),t0({target:"Array",proto:!0,forced:r1},{find:function(e){return n1(this,e,arguments.length>1?arguments[1]:void 0)}}),I0("find");var o1=o0?{}.toString:function(){return"[object "+s0(this)+"]"};function i1(e,t,n){return void 0===t&&(t="auto"),void 0===n&&(n="auto"),{type:"video",src:e,width:t,height:n,children:[{text:""}]}}o0||SQ(Object.prototype,"toString",o1,{unsafe:!0});var a1,u1,s1={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=co(e),o="",i="auto",a="auto",u=r.find("iframe");if(u.length>0)return i=u.attr("width")||"auto",a=u.attr("height")||"auto",i1(o=u[0].outerHTML,i,a);var s=r.find("video");return(o=s.attr("src")||"")||s.length>0&&(o=s.find("source").attr("src")||""),i1(o,i=s.attr("width")||"auto",a=s.attr("height")||"auto")}},l1=function(){var e=JJ(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},c1=PZ.RegExp,f1=jZ((function(){var e=c1("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),d1=f1||jZ((function(){return!c1("a","y").sticky})),p1={BROKEN_CARET:f1||jZ((function(){var e=c1("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:d1,UNSUPPORTED_Y:f1},h1=PZ.RegExp,g1=jZ((function(){var e=h1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),v1=PZ.RegExp,y1=jZ((function(){var e=v1("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),m1=wQ.get,b1=AJ("native-string-replace",String.prototype.replace),w1=RegExp.prototype.exec,E1=w1,D1=qZ("".charAt),C1=qZ("".indexOf),x1=qZ("".replace),S1=qZ("".slice),A1=(u1=/b*/g,RZ(w1,a1=/a/,"a"),RZ(w1,u1,"a"),0!==a1.lastIndex||0!==u1.lastIndex),O1=p1.BROKEN_CARET,k1=void 0!==/()??/.exec("")[1];(A1||k1||O1||g1||y1)&&(E1=function(e){var t,n,r,o,i,a,u,s=this,l=m1(s),c=c0(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=RZ(E1,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=O1&&s.sticky,h=RZ(l1,s),g=s.source,v=0,y=c;if(p&&(h=x1(h,"y",""),-1===C1(h,"g")&&(h+="g"),y=S1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==D1(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),k1&&(n=new RegExp("^"+g+"$(?!\\s)",h)),A1&&(r=s.lastIndex),o=RZ(w1,p?n:s,y),p?o?(o.input=S1(o.input,v),o[0]=S1(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:A1&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),k1&&o&&o.length>1&&RZ(b1,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=P0(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var B1=E1;t0({target:"RegExp",proto:!0,forced:/./.exec!==B1},{exec:B1});var F1=Function.prototype,_1=F1.apply,T1=F1.bind,P1=F1.call,j1="object"==typeof Reflect&&Reflect.apply||(T1?P1.bind(_1):function(){return P1.apply(_1,arguments)}),N1=MJ("species"),I1=RegExp.prototype,R1=qZ("".charAt),L1=qZ("".charCodeAt),M1=qZ("".slice),z1=function(e){return function(t,n){var r,o,i=c0(eJ(t)),a=kQ(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=L1(i,a))<55296||r>56319||a+1===u||(o=L1(i,a+1))<56320||o>57343?e?R1(i,a):r:e?M1(i,a,a+2):o-56320+(r-55296<<10)+65536}},$1={codeAt:z1(!1),charAt:z1(!0)},H1=$1.charAt,U1=function(e,t,n){return t+(n?H1(e,t).length:1)},V1=Math.floor,W1=qZ("".charAt),q1=qZ("".replace),G1=qZ("".slice),K1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Y1=/\$([$&'`]|\d{1,2})/g,X1=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Y1;return void 0!==o&&(o=kJ(o),s=K1),q1(i,s,(function(i,s){var l;switch(W1(s,0)){case"$":return"$";case"&":return e;case"`":return G1(t,0,n);case"'":return G1(t,a);case"<":l=o[G1(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=V1(c/10);return 0===f?i:f<=u?void 0===r[f-1]?W1(s,1):r[f-1]+W1(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Z1=PZ.TypeError,J1=function(e,t){var n=e.exec;if(nJ(n)){var r=RZ(n,e,t);return null!==r&&JJ(r),r}if("RegExp"===YZ(e))return RZ(B1,e,t);throw Z1("RegExp#exec called on incompatible receiver")},Q1=MJ("replace"),e2=Math.max,t2=Math.min,n2=qZ([].concat),r2=qZ([].push),o2=qZ("".indexOf),i2=qZ("".slice),a2="$0"==="a".replace(/./,"$0"),u2=!!/./[Q1]&&""===/./[Q1]("a","$0");function s2(e){return void 0===e&&(e="r"),e+"-"+xi()}!function(e,t,n,r){var o=MJ(e),i=!jZ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!jZ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[N1]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=qZ(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=qZ(e),s=t.exec;return s===B1||s===I1.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));SQ(String.prototype,e,s[0]),SQ(I1,o,s[1])}r&&nQ(I1[o],"sham",!0)}("replace",(function(e,t,n){var r=u2?"$":"$0";return[function(e,n){var r=eJ(this),o=null==e?void 0:EJ(e,Q1);return o?RZ(o,e,r,n):RZ(t,c0(r),e,n)},function(e,o){var i=JJ(this),a=c0(e);if("string"==typeof o&&-1===o2(o,r)&&-1===o2(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=nJ(o);s||(o=c0(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=J1(i,a);if(null===d)break;if(r2(f,d),!l)break;""===c0(d[0])&&(i.lastIndex=U1(a,PQ(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=c0((d=f[v])[0]),m=e2(t2(kQ(d.index),a.length),0),b=[],w=1;w<d.length;w++)r2(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=n2([y],b,m,a);void 0!==E&&r2(D,E);var C=c0(j1(o,void 0,D))}else C=X1(y,a,m,b,E,o);m>=g&&(h+=i2(a,g,m)+C,g=m+y.length)}return h+i2(a,g)}]}),!!jZ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!a2||u2);var l2=PZ.Promise,c2=function(e,t,n){for(var r in t)SQ(e,r,t[r],n);return e},f2=PZ.String,d2=PZ.TypeError,p2=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=qZ(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return JJ(n),function(e){if("object"==typeof e||nJ(e))return e;throw d2("Can't set "+f2(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),h2=tQ.f,g2=MJ("toStringTag"),v2=function(e,t,n){e&&!FJ(e=n?e:e.prototype,g2)&&h2(e,g2,{configurable:!0,value:t})},y2=MJ("species"),m2=PZ.TypeError,b2=function(e,t){if(aJ(t,e))return e;throw m2("Incorrect invocation")},w2={},E2=MJ("iterator"),D2=Array.prototype,C2=MJ("iterator"),x2=function(e){if(null!=e)return EJ(e,C2)||EJ(e,"@@iterator")||w2[s0(e)]},S2=PZ.TypeError,A2=function(e,t,n){var r,o;JJ(e);try{if(!(r=EJ(e,"return"))){if("throw"===t)throw n;return n}r=RZ(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return JJ(r),n},O2=PZ.TypeError,k2=function(e,t){this.stopped=e,this.result=t},B2=k2.prototype,F2=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=z0(t,f),v=function(e){return r&&A2(r,"normal",e),new k2(!0,e)},y=function(e){return d?(JJ(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=x2(e)))throw O2(mJ(e)+" is not iterable");if(void 0!==(c=o)&&(w2.Array===c||D2[E2]===c)){for(i=0,a=jQ(e);a>i;i++)if((u=y(e[i]))&&aJ(B2,u))return u;return new k2(!1)}r=function(e,t){var n=arguments.length<2?x2(e):t;if(wJ(n))return JJ(RZ(n,e));throw S2(mJ(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=RZ(s,r)).done;){try{u=y(l.value)}catch(e){A2(r,"throw",e)}if("object"==typeof u&&u&&aJ(B2,u))return u}return new k2(!1)},_2=MJ("iterator"),T2=!1;try{var P2=0,j2={next:function(){return{done:!!P2++}},return:function(){T2=!0}};j2[_2]=function(){return this},Array.from(j2,(function(){throw 2}))}catch(h){}var N2,I2,R2,L2,M2=function(e,t){if(!t&&!T2)return!1;var n=!1;try{var r={};r[_2]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},z2=PZ.TypeError,$2=MJ("species"),H2=function(e,t){var n,r=JJ(e).constructor;return void 0===r||null==(n=JJ(r)[$2])?t:function(e){if(Y0(e))return e;throw z2(mJ(e)+" is not a constructor")}(n)},U2=qZ([].slice),V2=/(?:ipad|iphone|ipod).*applewebkit/i.test(uJ),W2="process"==YZ(PZ.process),q2=PZ.setImmediate,G2=PZ.clearImmediate,K2=PZ.process,Y2=PZ.Dispatch,X2=PZ.Function,Z2=PZ.MessageChannel,J2=PZ.String,Q2=0,e4={};try{N2=PZ.location}catch(h){}var t4=function(e){if(FJ(e4,e)){var t=e4[e];delete e4[e],t()}},n4=function(e){return function(){t4(e)}},r4=function(e){t4(e.data)},o4=function(e){PZ.postMessage(J2(e),N2.protocol+"//"+N2.host)};q2&&G2||(q2=function(e){var t=U2(arguments,1);return e4[++Q2]=function(){j1(nJ(e)?e:X2(e),void 0,t)},I2(Q2),Q2},G2=function(e){delete e4[e]},W2?I2=function(e){K2.nextTick(n4(e))}:Y2&&Y2.now?I2=function(e){Y2.now(n4(e))}:Z2&&!V2?(L2=(R2=new Z2).port2,R2.port1.onmessage=r4,I2=z0(L2.postMessage,L2)):PZ.addEventListener&&nJ(PZ.postMessage)&&!PZ.importScripts&&N2&&"file:"!==N2.protocol&&!jZ(o4)?(I2=o4,PZ.addEventListener("message",r4,!1)):I2="onreadystatechange"in qJ("script")?function(e){O0.appendChild(qJ("script")).onreadystatechange=function(){O0.removeChild(this),t4(e)}}:function(e){setTimeout(n4(e),0)});var i4,a4,u4,s4,l4,c4,f4,d4,p4={set:q2,clear:G2},h4=/ipad|iphone|ipod/i.test(uJ)&&void 0!==PZ.Pebble,g4=/web0s(?!.*chrome)/i.test(uJ),v4=YJ.f,y4=p4.set,m4=PZ.MutationObserver||PZ.WebKitMutationObserver,b4=PZ.document,w4=PZ.process,E4=PZ.Promise,D4=v4(PZ,"queueMicrotask"),C4=D4&&D4.value;C4||(i4=function(){var e,t;for(W2&&(e=w4.domain)&&e.exit();a4;){t=a4.fn,a4=a4.next;try{t()}catch(e){throw a4?s4():u4=void 0,e}}u4=void 0,e&&e.enter()},V2||W2||g4||!m4||!b4?!h4&&E4&&E4.resolve?((f4=E4.resolve(void 0)).constructor=E4,d4=z0(f4.then,f4),s4=function(){d4(i4)}):W2?s4=function(){w4.nextTick(i4)}:(y4=z0(y4,PZ),s4=function(){y4(i4)}):(l4=!0,c4=b4.createTextNode(""),new m4(i4).observe(c4,{characterData:!0}),s4=function(){c4.data=l4=!l4}));var x4,S4,A4,O4,k4=C4||function(e){var t={fn:e,next:void 0};u4&&(u4.next=t),a4||(a4=t,s4()),u4=t},B4=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=wJ(t),this.reject=wJ(n)},F4={f:function(e){return new B4(e)}},_4=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},T4="object"==typeof window,P4=p4.set,j4=MJ("species"),N4="Promise",I4=wQ.getterFor(N4),R4=wQ.set,L4=wQ.getterFor(N4),M4=l2&&l2.prototype,z4=l2,$4=M4,H4=PZ.TypeError,U4=PZ.document,V4=PZ.process,W4=F4.f,q4=W4,G4=!!(U4&&U4.createEvent&&PZ.dispatchEvent),K4=nJ(PZ.PromiseRejectionEvent),Y4=!1,X4=QQ(N4,(function(){var e=uQ(z4),t=e!==String(z4);if(!t&&66===dJ)return!0;if(dJ>=51&&/native code/.test(e))return!1;var n=new z4((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[j4]=r,!(Y4=n.then((function(){}))instanceof r)||!t&&T4&&!K4})),Z4=X4||!M2((function(e){z4.all(e).catch((function(){}))})),J4=function(e){var t;return!(!rJ(e)||!nJ(t=e.then))&&t},Q4=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;k4((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&&r6(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(H4("Promise-chain cycle")):(u=J4(a))?RZ(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&t6(e)}))}},e6=function(e,t,n){var r,o;G4?((r=U4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),PZ.dispatchEvent(r)):r={promise:t,reason:n},!K4&&(o=PZ["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=PZ.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},t6=function(e){RZ(P4,PZ,(function(){var t,n=e.facade,r=e.value;if(n6(e)&&(t=_4((function(){W2?V4.emit("unhandledRejection",r,n):e6("unhandledrejection",n,r)})),e.rejection=W2||n6(e)?2:1,t.error))throw t.value}))},n6=function(e){return 1!==e.rejection&&!e.parent},r6=function(e){RZ(P4,PZ,(function(){var t=e.facade;W2?V4.emit("rejectionHandled",t):e6("rejectionhandled",t,e.value)}))},o6=function(e,t,n){return function(r){e(t,r,n)}},i6=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Q4(e,!0))},a6=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H4("Promise can't be resolved itself");var r=J4(t);r?k4((function(){var n={done:!1};try{RZ(r,t,o6(a6,n,e),o6(i6,n,e))}catch(t){i6(n,t,e)}})):(e.value=t,e.state=1,Q4(e,!1))}catch(t){i6({done:!1},t,e)}}};if(X4&&($4=(z4=function(e){b2(this,$4),wJ(e),RZ(x4,this);var t=I4(this);try{e(o6(a6,t),o6(i6,t))}catch(e){i6(t,e)}}).prototype,(x4=function(e){R4(this,{type:N4,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=c2($4,{then:function(e,t){var n=L4(this),r=n.reactions,o=W4(H2(this,z4));return o.ok=!nJ(e)||e,o.fail=nJ(t)&&t,o.domain=W2?V4.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Q4(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),S4=function(){var e=new x4,t=I4(e);this.promise=e,this.resolve=o6(a6,t),this.reject=o6(i6,t)},F4.f=W4=function(e){return e===z4||e===A4?new S4(e):q4(e)},nJ(l2)&&M4!==Object.prototype)){O4=M4.then,Y4||(SQ(M4,"then",(function(e,t){var n=this;return new z4((function(e,t){RZ(O4,n,e,t)})).then(e,t)}),{unsafe:!0}),SQ(M4,"catch",$4.catch,{unsafe:!0}));try{delete M4.constructor}catch(h){}p2&&p2(M4,$4)}function u6(e,t){return CZ(this,void 0,void 0,(function(){var n,r,o,i,a,u,s;return xZ(this,(function(l){switch(l.label){case 0:return t?(e.restoreSelection(),n=e.getMenuConfig("insertVideo"),r=n.onInsertedVideo,o=n.checkVideo,i=n.parseVideoSrc,[4,o(t)]):[2];case 1:return"string"==typeof(a=l.sent())?(e.alert(a,"error"),[2]):null==a?[2]:[4,i(t)];case 2:return 0!==(u=l.sent()).trim().indexOf("<iframe ")&&(u=u.replace(/</g,"<").replace(/>/g,">")),s={type:"video",src:u,children:[{text:""}]},Promise.resolve().then((function(){Jt.insertNodes(e,s)})),r(s),[2]}}))}))}function s6(){return s2("w-e-insert-video")}t0({global:!0,wrap:!0,forced:X4},{Promise:z4}),v2(z4,N4,!1),function(e){var t=iJ(e),n=tQ.f;NZ&&t&&!t[y2]&&n(t,y2,{configurable:!0,get:function(){return this}})}(N4),A4=iJ(N4),t0({target:N4,stat:!0,forced:X4},{reject:function(e){var t=W4(this);return RZ(t.reject,void 0,e),t.promise}}),t0({target:N4,stat:!0,forced:X4},{resolve:function(e){return function(e,t){if(JJ(e),rJ(t)&&t.constructor===e)return t;var n=F4.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),t0({target:N4,stat:!0,forced:Z4},{all:function(e){var t=this,n=W4(t),r=n.resolve,o=n.reject,i=_4((function(){var n=wJ(t.resolve),i=[],a=0,u=1;F2(e,(function(e){var s=a++,l=!1;u++,RZ(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=W4(t),r=n.reject,o=_4((function(){var o=wJ(t.resolve);F2(e,(function(e){RZ(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var l6=function(){function e(){this.title=jA("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=s6(),this.buttonId=s6()}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||!At.isCollapsed(t)||!!Iw.getSelectedElems(e).some((function(t){return"pre"===Iw.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this.srcInputId,r=this.buttonId,o=AZ(gS(jA("videoModule.videoSrc"),n,jA("videoModule.insertPlaceHolder")),2),i=o[0],a=o[1],u=co(a),s=AZ(vS(r,jA("videoModule.ok")),1)[0];if(null==this.$content){var l=co("<div></div>");l.on("click","#"+r,(function(r){return CZ(t,void 0,void 0,(function(){var t;return xZ(this,(function(o){switch(o.label){case 0:return r.preventDefault(),t=l.find("#"+n).val().trim(),[4,u6(e,t)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=l}var c=this.$content;return c.empty(),c.append(i),c.append(s),u.val(""),setTimeout((function(){u.focus()})),c[0]},e}(),c6=qZ([].join),f6=JZ!=Object,d6=function(e,t){var n=[][e];return!!n&&jZ((function(){n.call(null,t||function(){throw 1},1)}))}("join",",");t0({target:"Array",proto:!0,forced:f6||!d6},{join:function(e){return c6(tJ(this),void 0===e?",":e)}});var p6,h6,g6,v6=!jZ((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),y6=fQ("IE_PROTO"),m6=PZ.Object,b6=m6.prototype,w6=v6?m6.getPrototypeOf:function(e){var t=kJ(e);if(FJ(t,y6))return t[y6];var n=t.constructor;return nJ(n)&&t instanceof n?n.prototype:t instanceof m6?b6:null},E6=MJ("iterator"),D6=!1;[].keys&&("next"in(g6=[].keys())?(h6=w6(w6(g6)))!==Object.prototype&&(p6=h6):D6=!0);var C6=null==p6||jZ((function(){var e={};return p6[E6].call(e)!==e}));C6&&(p6={}),nJ(p6[E6])||SQ(p6,E6,(function(){return this}));var x6={IteratorPrototype:p6,BUGGY_SAFARI_ITERATORS:D6},S6=x6.IteratorPrototype,A6=function(){return this},O6=xQ.PROPER,k6=xQ.CONFIGURABLE,B6=x6.IteratorPrototype,F6=x6.BUGGY_SAFARI_ITERATORS,_6=MJ("iterator"),T6=function(){return this},P6=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=P0(S6,{next:$Z(+!r,n)}),v2(e,o,!1),w2[o]=A6}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!F6&&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[_6]||p["@@iterator"]||o&&p[o],g=!F6&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=w6(v.call(new e)))!==Object.prototype&&u.next&&(w6(u)!==B6&&(p2?p2(u,B6):nJ(u[_6])||SQ(u,_6,T6)),v2(u,f,!0)),O6&&"values"==o&&h&&"values"!==h.name&&(k6?nQ(p,"name","values"):(d=!0,g=function(){return RZ(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(F6||d||!(l in p))&&SQ(p,l,s[l]);else t0({target:t,proto:!0,forced:F6||d},s);return p[_6]!==g&&SQ(p,_6,g,{name:o}),w2[t]=g,s},j6=wQ.set,N6=wQ.getterFor("Array Iterator"),I6=P6(Array,"Array",(function(e,t){j6(this,{type:"Array Iterator",target:tJ(e),index:0,kind:t})}),(function(){var e=N6(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");w2.Arguments=w2.Array,I0("keys"),I0("values"),I0("entries");var R6=$1.charAt,L6=wQ.set,M6=wQ.getterFor("String Iterator");P6(String,"String",(function(e){L6(this,{type:"String Iterator",string:c0(e),index:0})}),(function(){var e,t=M6(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=R6(n,r),t.index+=e.length,{value:e,done:!1})}));var z6=function(e,t,n){var r=UJ(t);r in e?tQ.f(e,r,$Z(0,n)):e[r]=n},$6=PZ.Array,H6=Math.max,U6=HQ.f,V6="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],W6=function(e){try{return U6(e)}catch(e){return function(e,t,n){for(var r=jQ(e),o=_Q(t,r),i=_Q(void 0===n?r:n,r),a=$6(H6(i-o,0)),u=0;o<i;o++,u++)z6(a,u,e[o]);return a.length=u,a}(V6)}},q6={f:function(e){return V6&&"Window"==YZ(e)?W6(e):U6(tJ(e))}},G6=jZ((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),K6=Object.isExtensible,Y6=jZ((function(){K6(1)}))||G6?function(e){return!!rJ(e)&&(!G6||"ArrayBuffer"!=YZ(e))&&(!K6||K6(e))}:K6,X6=!jZ((function(){return Object.isExtensible(Object.preventExtensions({}))})),Z6=BZ((function(e){var t=tQ.f,n=!1,r=jJ("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=HQ.f,t=qZ([].splice),o={};o[r]=1,e(o).length&&(HQ.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},t0({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:q6.f}))},fastKey:function(e,t){if(!rJ(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!FJ(e,r)){if(!Y6(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!FJ(e,r)){if(!Y6(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return X6&&n&&Y6(e)&&!FJ(e,r)&&i(e),e}};dQ[r]=!0})),J6=Z6.getWeakData,Q6=wQ.set,e3=wQ.getterFor,t3=t1.find,n3=t1.findIndex,r3=qZ([].splice),o3=0,i3=function(e){return e.frozen||(e.frozen=new a3)},a3=function(){this.entries=[]},u3=function(e,t){return t3(e.entries,(function(e){return e[0]===t}))};a3.prototype={get:function(e){var t=u3(this,e);if(t)return t[1]},has:function(e){return!!u3(this,e)},set:function(e,t){var n=u3(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=n3(this.entries,(function(t){return t[0]===e}));return~t&&r3(this.entries,t,1),!!~t}};var s3,l3={getConstructor:function(e,t,n,r){var o=e((function(e,o){b2(e,i),Q6(e,{type:t,id:o3++,frozen:void 0}),null!=o&&F2(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=e3(t),u=function(e,t,n){var r=a(e),o=J6(JJ(t),!0);return!0===o?i3(r).set(t,n):o[r.id]=n,e};return c2(i,{delete:function(e){var t=a(this);if(!rJ(e))return!1;var n=J6(e);return!0===n?i3(t).delete(e):n&&FJ(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!rJ(e))return!1;var n=J6(e);return!0===n?i3(t).has(e):n&&FJ(n,t.id)}}),c2(i,n?{get:function(e){var t=a(this);if(rJ(e)){var n=J6(e);return!0===n?i3(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}},c3=wQ.enforce,f3=!PZ.ActiveXObject&&"ActiveXObject"in PZ,d3=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},p3=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=PZ[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=qZ(u[e]);SQ(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!rJ(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!rJ(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!rJ(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(QQ(e,!nJ(a)||!(o||u.forEach&&!jZ((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Z6.enable();else if(QQ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=jZ((function(){f.has(1)})),h=M2((function(e){new a(e)})),g=!o&&jZ((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){b2(e,u);var n=function(e,t,n){var r,o;return p2&&nJ(r=t.constructor)&&r!==n&&rJ(o=r.prototype)&&o!==n.prototype&&p2(e,o),e}(new a,e,s);return null!=t&&F2(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,t0({global:!0,forced:s!=a},l),v2(s,e),o||n.setStrong(s,e,r),s}("WeakMap",d3,l3);if(lQ&&f3){s3=l3.getConstructor(d3,"WeakMap",!0),Z6.enable();var h3=p3.prototype,g3=qZ(h3.delete),v3=qZ(h3.has),y3=qZ(h3.get),m3=qZ(h3.set);c2(h3,{delete:function(e){if(rJ(e)&&!Y6(e)){var t=c3(this);return t.frozen||(t.frozen=new s3),g3(this,e)||t.frozen.delete(e)}return g3(this,e)},has:function(e){if(rJ(e)&&!Y6(e)){var t=c3(this);return t.frozen||(t.frozen=new s3),v3(this,e)||t.frozen.has(e)}return v3(this,e)},get:function(e){if(rJ(e)&&!Y6(e)){var t=c3(this);return t.frozen||(t.frozen=new s3),v3(this,e)?y3(this,e):t.frozen.get(e)}return y3(this,e)},set:function(e,t){if(rJ(e)&&!Y6(e)){var n=c3(this);n.frozen||(n.frozen=new s3),v3(this,e)?m3(this,e,t):n.frozen.set(e,t)}else m3(this,e,t);return this}})}var b3={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},w3=qJ("span").classList,E3=w3&&w3.constructor&&w3.constructor.prototype,D3=E3===Object.prototype?void 0:E3,C3=MJ("iterator"),x3=MJ("toStringTag"),S3=I6.values,A3=function(e,t){if(e){if(e[C3]!==S3)try{nQ(e,C3,S3)}catch(t){e[C3]=S3}if(e[x3]||nQ(e,x3,t),b3[t])for(var n in I6)if(e[n]!==I6[n])try{nQ(e,n,I6[n])}catch(t){e[n]=I6[n]}}};for(var O3 in b3)A3(PZ[O3]&&PZ[O3].prototype,O3);A3(D3,"DOMTokenList");var k3=xQ.EXISTS,B3=tQ.f,F3=Function.prototype,_3=qZ(F3.toString),T3=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,P3=qZ(T3.exec);NZ&&!k3&&B3(F3,"name",{configurable:!0,get:function(){try{return P3(T3,_3(this))[1]}catch(h){return""}}});var j3=MJ("species"),N3=function(e){return dJ>=51||!jZ((function(){var t=[];return(t.constructor={})[j3]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("slice"),I3=MJ("species"),R3=PZ.Array,L3=Math.max;function M3(e){return e.getMenuConfig("uploadVideo")}t0({target:"Array",proto:!0,forced:!N3},{slice:function(e,t){var n,r,o,i=tJ(this),a=jQ(i),u=_Q(e,a),s=_Q(void 0===t?a:t,a);if($0(i)&&(n=i.constructor,(Y0(n)&&(n===R3||$0(n.prototype))||rJ(n)&&null===(n=n[I3]))&&(n=void 0),n===R3||void 0===n))return U2(i,u,s);for(r=new(void 0===n?R3:n)(L3(s-u,0)),o=0;u<s;u++,o++)u in i&&z6(r,o,i[u]);return r.length=o,r}});var z3=new WeakMap;function $3(e,t){return CZ(this,void 0,void 0,(function(){var n,r,o,i;return xZ(this,(function(a){switch(a.label){case 0:return n=function(e){var t=z3.get(e);if(null!=t)return t;var n=M3(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=$S(DZ(DZ({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)a(n,(function(t){return u6(e,t)}));else{var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0!==u)return console.error("'"+t.name+"' upload failed",n),void i(t,n);var c=l.url;u6(e,void 0===c?"":c),r(t,n)}},onError:function(e,t,n){var r=e.name;console.error("'"+r+" upload error",t,n),u&&u(e,t,n)}})),z3.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 H3=function(){function e(){this.title=jA("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){return u6(e,t)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=co("body"),s=co('<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;CZ(this,void 0,void 0,(function(){var o,i,a,u,s,l;return xZ(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=M3(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=OZ(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){return u6(e,t)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,$3(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||!At.isCollapsed(t)||!!Iw.getSelectedElems(e).some((function(t){return"pre"===Iw.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),U3=xQ.PROPER,V3=RegExp.prototype,W3=V3.toString,q3=qZ(l1),G3=jZ((function(){return"/a/b"!=W3.call({source:"a",flags:"b"})})),K3=U3&&"toString"!=W3.name;function Y3(){return s2("w-e-insert-video")}(G3||K3)&&SQ(RegExp.prototype,"toString",(function(){var e=JJ(this),t=c0(e.source),n=e.flags;return"/"+t+"/"+c0(void 0===n&&aJ(V3,e)&&!("flags"in V3)?q3(e):n)}),{unsafe:!0});var X3=function(){function e(){this.title=jA("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Y3(),this.heightInputId=Y3(),this.buttonId=Y3()}return e.prototype.getSelectedVideoNode=function(e){return Iw.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=AZ(gS(jA("videoModule.width"),n,"auto"),2),a=i[0],u=i[1],s=co(u),l=AZ(gS(jA("videoModule.height"),r,"auto"),2),c=l[0],f=l[1],d=co(f),p=AZ(vS(o,jA("videoModule.ok")),1)[0];if(null==this.$content){var h=co("<div></div>");h.on("click","#"+o,(function(t){t.preventDefault();var o=h.find("#"+n).val().trim(),i=h.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),Jt.setNodes(e,{width:s,height:l},{match:function(e){return Iw.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=h}var g=this.$content;g.empty(),g.append(a),g.append(c),g.append(p);var v=this.getSelectedVideoNode(e);if(null==v)return g[0];var y=v.width,m=void 0===y?"auto":y,b=v.height,w=void 0===b?"auto":b;return s.val(m),d.val(w),setTimeout((function(){s.focus()})),g[0]},e}(),Z3={renderElems:[C0],elemsToHtml:[x0],preParseHtml:[L0],parseElemsHtml:[s1],menus:[{key:"insertVideo",factory:function(){return new l6},config:{onInsertedVideo:function(e){},checkVideo:function(e){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new H3},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){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new X3}}],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=AZ(e,2),o=t[0],i=t[1];return"video"===Iw.getNodeType(o)&&Iw.isLastNode(r,o)&&Jt.insertNodes(r,Iw.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};PA("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),PA("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var J3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Q3(e){var t={exports:{}};return e(t,t.exports),t.exports}var e5,t5,n5=function(e){return e&&e.Math==Math&&e},r5=n5("object"==typeof globalThis&&globalThis)||n5("object"==typeof window&&window)||n5("object"==typeof self&&self)||n5("object"==typeof J3&&J3)||function(){return this}()||Function("return this")(),o5=function(e){try{return!!e()}catch(e){return!0}},i5=!o5((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a5=Function.prototype.call,u5=a5.bind?a5.bind(a5):function(){return a5.apply(a5,arguments)},s5={}.propertyIsEnumerable,l5=Object.getOwnPropertyDescriptor,c5={f:l5&&!s5.call({1:2},1)?function(e){var t=l5(this,e);return!!t&&t.enumerable}:s5},f5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},d5=Function.prototype,p5=d5.bind,h5=d5.call,g5=p5&&p5.bind(h5),v5=p5?function(e){return e&&g5(h5,e)}:function(e){return e&&function(){return h5.apply(e,arguments)}},y5=v5({}.toString),m5=v5("".slice),b5=function(e){return m5(y5(e),8,-1)},w5=r5.Object,E5=v5("".split),D5=o5((function(){return!w5("z").propertyIsEnumerable(0)}))?function(e){return"String"==b5(e)?E5(e,""):w5(e)}:w5,C5=r5.TypeError,x5=function(e){if(null==e)throw C5("Can't call method on "+e);return e},S5=function(e){return D5(x5(e))},A5=function(e){return"function"==typeof e},O5=function(e){return"object"==typeof e?null!==e:A5(e)},k5=function(e){return A5(e)?e:void 0},B5=function(e,t){return arguments.length<2?k5(r5[e]):r5[e]&&r5[e][t]},F5=v5({}.isPrototypeOf),_5=B5("navigator","userAgent")||"",T5=r5.process,P5=r5.Deno,j5=T5&&T5.versions||P5&&P5.version,N5=j5&&j5.v8;N5&&(t5=(e5=N5.split("."))[0]>0&&e5[0]<4?1:+(e5[0]+e5[1])),!t5&&_5&&(!(e5=_5.match(/Edge\/(\d+)/))||e5[1]>=74)&&(e5=_5.match(/Chrome\/(\d+)/))&&(t5=+e5[1]);var I5=t5,R5=!!Object.getOwnPropertySymbols&&!o5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&I5&&I5<41})),L5=R5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,M5=r5.Object,z5=L5?function(e){return"symbol"==typeof e}:function(e){var t=B5("Symbol");return A5(t)&&F5(t.prototype,M5(e))},$5=r5.String,H5=function(e){try{return $5(e)}catch(e){return"Object"}},U5=r5.TypeError,V5=function(e){if(A5(e))return e;throw U5(H5(e)+" is not a function")},W5=function(e,t){var n=e[t];return null==n?void 0:V5(n)},q5=r5.TypeError,G5=Object.defineProperty,K5=function(e,t){try{G5(r5,e,{value:t,configurable:!0,writable:!0})}catch(p){r5[e]=t}return t},Y5=r5["__core-js_shared__"]||K5("__core-js_shared__",{}),X5=Q3((function(e){(e.exports=function(e,t){return Y5[e]||(Y5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Z5=r5.Object,J5=function(e){return Z5(x5(e))},Q5=v5({}.hasOwnProperty),e8=Object.hasOwn||function(e,t){return Q5(J5(e),t)},t8=0,n8=Math.random(),r8=v5(1..toString),o8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r8(++t8+n8,36)},i8=X5("wks"),a8=r5.Symbol,u8=a8&&a8.for,s8=L5?a8:a8&&a8.withoutSetter||o8,l8=function(e){if(!e8(i8,e)||!R5&&"string"!=typeof i8[e]){var t="Symbol."+e;R5&&e8(a8,e)?i8[e]=a8[e]:i8[e]=L5&&u8?u8(t):s8(t)}return i8[e]},c8=r5.TypeError,f8=l8("toPrimitive"),d8=function(e,t){if(!O5(e)||z5(e))return e;var n,r=W5(e,f8);if(r){if(void 0===t&&(t="default"),n=u5(r,e,t),!O5(n)||z5(n))return n;throw c8("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&A5(n=e.toString)&&!O5(r=u5(n,e)))return r;if(A5(n=e.valueOf)&&!O5(r=u5(n,e)))return r;if("string"!==t&&A5(n=e.toString)&&!O5(r=u5(n,e)))return r;throw q5("Can't convert object to primitive value")}(e,t)},p8=function(e){var t=d8(e,"string");return z5(t)?t:t+""},h8=r5.document,g8=O5(h8)&&O5(h8.createElement),v8=function(e){return g8?h8.createElement(e):{}},y8=!i5&&!o5((function(){return 7!=Object.defineProperty(v8("div"),"a",{get:function(){return 7}}).a})),m8=Object.getOwnPropertyDescriptor,b8={f:i5?m8:function(e,t){if(e=S5(e),t=p8(t),y8)try{return m8(e,t)}catch(e){}if(e8(e,t))return f5(!u5(c5.f,e,t),e[t])}},w8=r5.String,E8=r5.TypeError,D8=function(e){if(O5(e))return e;throw E8(w8(e)+" is not an object")},C8=r5.TypeError,x8=Object.defineProperty,S8={f:i5?x8:function(e,t,n){if(D8(e),t=p8(t),D8(n),y8)try{return x8(e,t,n)}catch(e){}if("get"in n||"set"in n)throw C8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},A8=i5?function(e,t,n){return S8.f(e,t,f5(1,n))}:function(e,t,n){return e[t]=n,e},O8=v5(Function.toString);A5(Y5.inspectSource)||(Y5.inspectSource=function(e){return O8(e)});var k8,B8,F8,_8=Y5.inspectSource,T8=r5.WeakMap,P8=A5(T8)&&/native code/.test(_8(T8)),j8=X5("keys"),N8=function(e){return j8[e]||(j8[e]=o8(e))},I8={},R8=r5.TypeError,L8=r5.WeakMap;if(P8||Y5.state){var M8=Y5.state||(Y5.state=new L8),z8=v5(M8.get),$8=v5(M8.has),H8=v5(M8.set);k8=function(e,t){if($8(M8,e))throw new R8("Object already initialized");return t.facade=e,H8(M8,e,t),t},B8=function(e){return z8(M8,e)||{}},F8=function(e){return $8(M8,e)}}else{var U8=N8("state");I8[U8]=!0,k8=function(e,t){if(e8(e,U8))throw new R8("Object already initialized");return t.facade=e,A8(e,U8,t),t},B8=function(e){return e8(e,U8)?e[U8]:{}},F8=function(e){return e8(e,U8)}}var V8={set:k8,get:B8,has:F8,enforce:function(e){return F8(e)?B8(e):k8(e,{})},getterFor:function(e){return function(t){var n;if(!O5(t)||(n=B8(t)).type!==e)throw R8("Incompatible receiver, "+e+" required");return n}}},W8=Function.prototype,q8=i5&&Object.getOwnPropertyDescriptor,G8=e8(W8,"name"),K8={EXISTS:G8,PROPER:G8&&"something"===function(){}.name,CONFIGURABLE:G8&&(!i5||i5&&q8(W8,"name").configurable)},Y8=Q3((function(e){var t=K8.CONFIGURABLE,n=V8.get,r=V8.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;A5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!e8(i,"name")||t&&i.name!==f)&&A8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==r5?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:A8(e,n,i)):l?e[n]=i:K5(n,i)})(Function.prototype,"toString",(function(){return A5(this)&&n(this).source||_8(this)}))})),X8=Math.ceil,Z8=Math.floor,J8=function(e){var t=+e;return t!=t||0===t?0:(t>0?Z8:X8)(t)},Q8=Math.max,e7=Math.min,t7=function(e,t){var n=J8(e);return n<0?Q8(n+t,0):e7(n,t)},n7=Math.min,r7=function(e){return e>0?n7(J8(e),9007199254740991):0},o7=function(e){return r7(e.length)},i7=function(e){return function(t,n,r){var o,i=S5(t),a=o7(i),u=t7(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}},a7={includes:i7(!0),indexOf:i7(!1)}.indexOf,u7=v5([].push),s7=function(e,t){var n,r=S5(e),o=0,i=[];for(n in r)!e8(I8,n)&&e8(r,n)&&u7(i,n);for(;t.length>o;)e8(r,n=t[o++])&&(~a7(i,n)||u7(i,n));return i},l7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],c7=l7.concat("length","prototype"),f7={f:Object.getOwnPropertyNames||function(e){return s7(e,c7)}},d7={f:Object.getOwnPropertySymbols},p7=v5([].concat),h7=B5("Reflect","ownKeys")||function(e){var t=f7.f(D8(e)),n=d7.f;return n?p7(t,n(e)):t},g7=function(e,t){for(var n=h7(t),r=S8.f,o=b8.f,i=0;i<n.length;i++){var a=n[i];e8(e,a)||r(e,a,o(t,a))}},v7=/#|\.prototype\./,y7=function(e,t){var n=b7[m7(e)];return n==E7||n!=w7&&(A5(t)?o5(t):!!t)},m7=y7.normalize=function(e){return String(e).replace(v7,".").toLowerCase()},b7=y7.data={},w7=y7.NATIVE="N",E7=y7.POLYFILL="P",D7=y7,C7=b8.f,x7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?r5:l?r5[u]||K5(u,{}):(r5[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=C7(n,r))&&a.value:n[r],!D7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;g7(i,o)}(e.sham||o&&o.sham)&&A8(i,"sham",!0),Y8(n,r,i,e)}},S7=Array.isArray||function(e){return"Array"==b5(e)},A7={};A7[l8("toStringTag")]="z";var O7,k7="[object z]"===String(A7),B7=l8("toStringTag"),F7=r5.Object,_7="Arguments"==b5(function(){return arguments}()),T7=k7?b5: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=F7(e),B7))?n:_7?b5(t):"Object"==(r=b5(t))&&A5(t.callee)?"Arguments":r},P7=function(){},j7=[],N7=B5("Reflect","construct"),I7=/^\s*(?:class|function)\b/,R7=v5(I7.exec),L7=!I7.exec(P7),M7=function(e){if(!A5(e))return!1;try{return N7(P7,j7,e),!0}catch(e){return!1}},z7=!N7||o5((function(){var e;return M7(M7.call)||!M7(Object)||!M7((function(){e=!0}))||e}))?function(e){if(!A5(e))return!1;switch(T7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return L7||!!R7(I7,_8(e))}:M7,$7=function(e,t,n){var r=p8(t);r in e?S8.f(e,r,f5(0,n)):e[r]=n},H7=l8("species"),U7=v5([].slice),V7=(O7="slice",I5>=51||!o5((function(){var e=[];return(e.constructor={})[H7]=function(){return{foo:1}},1!==e[O7](Boolean).foo}))),W7=l8("species"),q7=r5.Array,G7=Math.max;x7({target:"Array",proto:!0,forced:!V7},{slice:function(e,t){var n,r,o,i=S5(this),a=o7(i),u=t7(e,a),s=t7(void 0===t?a:t,a);if(S7(i)&&(n=i.constructor,(z7(n)&&(n===q7||S7(n.prototype))||O5(n)&&null===(n=n[W7]))&&(n=void 0),n===q7||void 0===n))return U7(i,u,s);for(r=new(void 0===n?q7:n)(G7(s-u,0)),o=0;u<s;u++,o++)u in i&&$7(r,o,i[u]);return r.length=o,r}});var K7=k7?{}.toString:function(){return"[object "+T7(this)+"]"};k7||Y8(Object.prototype,"toString",K7,{unsafe:!0});var Y7,X7=r5.String,Z7=function(e){if("Symbol"===T7(e))throw TypeError("Cannot convert a Symbol value to a string");return X7(e)},J7=function(){var e=D8(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},Q7=r5.RegExp,e9=o5((function(){var e=Q7("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t9=e9||o5((function(){return!Q7("a","y").sticky})),n9={BROKEN_CARET:e9||o5((function(){var e=Q7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:t9,UNSUPPORTED_Y:e9},r9=Object.keys||function(e){return s7(e,l7)},o9=i5?Object.defineProperties:function(e,t){D8(e);for(var n,r=S5(t),o=r9(t),i=o.length,a=0;i>a;)S8.f(e,n=o[a++],r[n]);return e},i9=B5("document","documentElement"),a9=N8("IE_PROTO"),u9=function(){},s9=function(e){return"<script>"+e+"<\/script>"},l9=function(e){e.write(s9("")),e.close();var t=e.parentWindow.Object;return e=null,t},c9=function(){try{Y7=new ActiveXObject("htmlfile")}catch(e){}var e,t;c9="undefined"!=typeof document?document.domain&&Y7?l9(Y7):((t=v8("iframe")).style.display="none",i9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(s9("document.F=Object")),e.close(),e.F):l9(Y7);for(var n=l7.length;n--;)delete c9.prototype[l7[n]];return c9()};I8[a9]=!0;var f9,d9,p9=Object.create||function(e,t){var n;return null!==e?(u9.prototype=D8(e),n=new u9,u9.prototype=null,n[a9]=e):n=c9(),void 0===t?n:o9(n,t)},h9=r5.RegExp,g9=o5((function(){var e=h9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),v9=r5.RegExp,y9=o5((function(){var e=v9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),m9=V8.get,b9=X5("native-string-replace",String.prototype.replace),w9=RegExp.prototype.exec,E9=w9,D9=v5("".charAt),C9=v5("".indexOf),x9=v5("".replace),S9=v5("".slice),A9=(d9=/b*/g,u5(w9,f9=/a/,"a"),u5(w9,d9,"a"),0!==f9.lastIndex||0!==d9.lastIndex),O9=n9.BROKEN_CARET,k9=void 0!==/()??/.exec("")[1];(A9||k9||O9||g9||y9)&&(E9=function(e){var t,n,r,o,i,a,u,s=this,l=m9(s),c=Z7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=u5(E9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=O9&&s.sticky,h=u5(J7,s),g=s.source,v=0,y=c;if(p&&(h=x9(h,"y",""),-1===C9(h,"g")&&(h+="g"),y=S9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==D9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),k9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),A9&&(r=s.lastIndex),o=u5(w9,p?n:s,y),p?o?(o.input=S9(o.input,v),o[0]=S9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:A9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),k9&&o&&o.length>1&&u5(b9,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=p9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var B9=E9;x7({target:"RegExp",proto:!0,forced:/./.exec!==B9},{exec:B9});var F9=Function.prototype,_9=F9.apply,T9=F9.bind,P9=F9.call,j9="object"==typeof Reflect&&Reflect.apply||(T9?P9.bind(_9):function(){return P9.apply(_9,arguments)}),N9=l8("species"),I9=RegExp.prototype,R9=l8("match"),L9=r5.TypeError,M9=l8("species"),z9=function(e,t){var n,r=D8(e).constructor;return void 0===r||null==(n=D8(r)[M9])?t:function(e){if(z7(e))return e;throw L9(H5(e)+" is not a constructor")}(n)},$9=v5("".charAt),H9=v5("".charCodeAt),U9=v5("".slice),V9=function(e){return function(t,n){var r,o,i=Z7(x5(t)),a=J8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=H9(i,a))<55296||r>56319||a+1===u||(o=H9(i,a+1))<56320||o>57343?e?$9(i,a):r:e?U9(i,a,a+2):o-56320+(r-55296<<10)+65536}},W9={codeAt:V9(!1),charAt:V9(!0)},q9=W9.charAt,G9=function(e,t,n){return t+(n?q9(e,t).length:1)},K9=r5.Array,Y9=Math.max,X9=function(e,t,n){for(var r=o7(e),o=t7(t,r),i=t7(void 0===n?r:n,r),a=K9(Y9(i-o,0)),u=0;o<i;o++,u++)$7(a,u,e[o]);return a.length=u,a},Z9=r5.TypeError,J9=function(e,t){var n=e.exec;if(A5(n)){var r=u5(n,e,t);return null!==r&&D8(r),r}if("RegExp"===b5(e))return u5(B9,e,t);throw Z9("RegExp#exec called on incompatible receiver")},Q9=n9.UNSUPPORTED_Y,eee=Math.min,tee=[].push,nee=v5(/./.exec),ree=v5(tee),oee=v5("".slice);!function(e,t,n,r){var o=l8(e),i=!o5((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!o5((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[N9]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=v5(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=v5(e),s=t.exec;return s===B9||s===I9.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Y8(String.prototype,e,s[0]),Y8(I9,o,s[1])}r&&A8(I9[o],"sham",!0)}("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=Z7(x5(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!O5(r=e)||!(void 0!==(o=r[R9])?o:"RegExp"==b5(r)))return u5(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=u5(B9,p,i))&&!((s=p.lastIndex)>d&&(ree(c,oee(i,d,u.index)),u.length>1&&u.index<i.length&&j9(tee,c,X9(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&nee(p,"")||ree(c,""):ree(c,oee(i,d)),c.length>a?X9(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:u5(t,this,e,n)}:t,[function(t,n){var o=x5(this),i=null==t?void 0:W5(t,e);return i?u5(i,t,o,n):u5(r,Z7(o),t,n)},function(e,o){var i=D8(this),a=Z7(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=z9(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Q9?"g":"y"),f=new s(Q9?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===J9(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Q9?0:h;var v,y=J9(f,Q9?oee(a,h):a);if(null===y||(v=eee(r7(f.lastIndex+(Q9?h:0)),a.length))===p)h=G9(a,h,l);else{if(ree(g,oee(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(ree(g,y[m]),g.length===d)return g;h=p=v}}return ree(g,oee(a,p)),g}]}),!!o5((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]})),Q9);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var iee=function(){return iee=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},iee.apply(this,arguments)};function aee(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 uee(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=a.trys,!((o=o.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 see(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 lee(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=see(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)}))}}}var cee=l8("unscopables"),fee=Array.prototype;null==fee[cee]&&S8.f(fee,cee,{configurable:!0,value:p9(null)});var dee,pee,hee,gee=function(e){fee[cee][e]=!0},vee={},yee=!o5((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),mee=N8("IE_PROTO"),bee=r5.Object,wee=bee.prototype,Eee=yee?bee.getPrototypeOf:function(e){var t=J5(e);if(e8(t,mee))return t[mee];var n=t.constructor;return A5(n)&&t instanceof n?n.prototype:t instanceof bee?wee:null},Dee=l8("iterator"),Cee=!1;[].keys&&("next"in(hee=[].keys())?(pee=Eee(Eee(hee)))!==Object.prototype&&(dee=pee):Cee=!0);var xee=null==dee||o5((function(){var e={};return dee[Dee].call(e)!==e}));xee&&(dee={}),A5(dee[Dee])||Y8(dee,Dee,(function(){return this}));var See={IteratorPrototype:dee,BUGGY_SAFARI_ITERATORS:Cee},Aee=S8.f,Oee=l8("toStringTag"),kee=function(e,t,n){e&&!e8(e=n?e:e.prototype,Oee)&&Aee(e,Oee,{configurable:!0,value:t})},Bee=See.IteratorPrototype,Fee=function(){return this},_ee=r5.String,Tee=r5.TypeError,Pee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=v5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return D8(n),function(e){if("object"==typeof e||A5(e))return e;throw Tee("Can't set "+_ee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),jee=K8.PROPER,Nee=K8.CONFIGURABLE,Iee=See.IteratorPrototype,Ree=See.BUGGY_SAFARI_ITERATORS,Lee=l8("iterator"),Mee=function(){return this},zee=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=p9(Bee,{next:f5(+!r,n)}),kee(e,o,!1),vee[o]=Fee}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Ree&&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[Lee]||p["@@iterator"]||o&&p[o],g=!Ree&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Eee(v.call(new e)))!==Object.prototype&&u.next&&(Eee(u)!==Iee&&(Pee?Pee(u,Iee):A5(u[Lee])||Y8(u,Lee,Mee)),kee(u,f,!0)),jee&&"values"==o&&h&&"values"!==h.name&&(Nee?A8(p,"name","values"):(d=!0,g=function(){return u5(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Ree||d||!(l in p))&&Y8(p,l,s[l]);else x7({target:t,proto:!0,forced:Ree||d},s);return p[Lee]!==g&&Y8(p,Lee,g,{name:o}),vee[t]=g,s},$ee=V8.set,Hee=V8.getterFor("Array Iterator"),Uee=zee(Array,"Array",(function(e,t){$ee(this,{type:"Array Iterator",target:S5(e),index:0,kind:t})}),(function(){var e=Hee(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");vee.Arguments=vee.Array,gee("keys"),gee("values"),gee("entries");var Vee=W9.charAt,Wee=V8.set,qee=V8.getterFor("String Iterator");zee(String,"String",(function(e){Wee(this,{type:"String Iterator",string:Z7(e),index:0})}),(function(){var e,t=qee(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Vee(n,r),t.index+=e.length,{value:e,done:!1})}));var Gee=function(e,t,n){for(var r in t)Y8(e,r,t[r],n);return e},Kee=f7.f,Yee="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xee={f:function(e){return Yee&&"Window"==b5(e)?function(e){try{return Kee(e)}catch(e){return X9(Yee)}}(e):Kee(S5(e))}},Zee=o5((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Jee=Object.isExtensible,Qee=o5((function(){Jee(1)}))||Zee?function(e){return!!O5(e)&&(!Zee||"ArrayBuffer"!=b5(e))&&(!Jee||Jee(e))}:Jee,ete=!o5((function(){return Object.isExtensible(Object.preventExtensions({}))})),tte=Q3((function(e){var t=S8.f,n=!1,r=o8("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=f7.f,t=v5([].splice),o={};o[r]=1,e(o).length&&(f7.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},x7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xee.f}))},fastKey:function(e,t){if(!O5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!e8(e,r)){if(!Qee(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!e8(e,r)){if(!Qee(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ete&&n&&Qee(e)&&!e8(e,r)&&i(e),e}};I8[r]=!0})),nte=v5(v5.bind),rte=function(e,t){return V5(e),void 0===t?e:nte?nte(e,t):function(){return e.apply(t,arguments)}},ote=l8("iterator"),ite=Array.prototype,ate=l8("iterator"),ute=function(e){if(null!=e)return W5(e,ate)||W5(e,"@@iterator")||vee[T7(e)]},ste=r5.TypeError,lte=function(e,t,n){var r,o;D8(e);try{if(!(r=W5(e,"return"))){if("throw"===t)throw n;return n}r=u5(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return D8(r),n},cte=r5.TypeError,fte=function(e,t){this.stopped=e,this.result=t},dte=fte.prototype,pte=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=rte(t,f),v=function(e){return r&<e(r,"normal",e),new fte(!0,e)},y=function(e){return d?(D8(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=ute(e)))throw cte(H5(e)+" is not iterable");if(void 0!==(c=o)&&(vee.Array===c||ite[ote]===c)){for(i=0,a=o7(e);a>i;i++)if((u=y(e[i]))&&F5(dte,u))return u;return new fte(!1)}r=function(e,t){var n=arguments.length<2?ute(e):t;if(V5(n))return D8(u5(n,e));throw ste(H5(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=u5(s,r)).done;){try{u=y(l.value)}catch(e){lte(r,"throw",e)}if("object"==typeof u&&u&&F5(dte,u))return u}return new fte(!1)},hte=r5.TypeError,gte=function(e,t){if(F5(t,e))return e;throw hte("Incorrect invocation")},vte=l8("iterator"),yte=!1;try{var mte=0,bte={next:function(){return{done:!!mte++}},return:function(){yte=!0}};bte[vte]=function(){return this},Array.from(bte,(function(){throw 2}))}catch(h){}var wte=function(e,t){if(!t&&!yte)return!1;var n=!1;try{var r={};r[vte]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ete=l8("species"),Dte=r5.Array,Cte=function(e,t){return new(function(e){var t;return S7(e)&&(t=e.constructor,(z7(t)&&(t===Dte||S7(t.prototype))||O5(t)&&null===(t=t[Ete]))&&(t=void 0)),void 0===t?Dte:t}(e))(0===t?0:t)},xte=v5([].push),Ste=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=J5(s),g=D5(h),v=rte(l,c),y=o7(g),m=0,b=f||Cte,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:xte(w,d)}else switch(e){case 4:return!1;case 7:xte(w,d)}return i?-1:r||o?o:w}},Ate={forEach:Ste(0),map:Ste(1),filter:Ste(2),some:Ste(3),every:Ste(4),find:Ste(5),findIndex:Ste(6),filterReject:Ste(7)},Ote=tte.getWeakData,kte=V8.set,Bte=V8.getterFor,Fte=Ate.find,_te=Ate.findIndex,Tte=v5([].splice),Pte=0,jte=function(e){return e.frozen||(e.frozen=new Nte)},Nte=function(){this.entries=[]},Ite=function(e,t){return Fte(e.entries,(function(e){return e[0]===t}))};Nte.prototype={get:function(e){var t=Ite(this,e);if(t)return t[1]},has:function(e){return!!Ite(this,e)},set:function(e,t){var n=Ite(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=_te(this.entries,(function(t){return t[0]===e}));return~t&&Tte(this.entries,t,1),!!~t}};var Rte,Lte={getConstructor:function(e,t,n,r){var o=e((function(e,o){gte(e,i),kte(e,{type:t,id:Pte++,frozen:void 0}),null!=o&&pte(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Bte(t),u=function(e,t,n){var r=a(e),o=Ote(D8(t),!0);return!0===o?jte(r).set(t,n):o[r.id]=n,e};return Gee(i,{delete:function(e){var t=a(this);if(!O5(e))return!1;var n=Ote(e);return!0===n?jte(t).delete(e):n&&e8(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!O5(e))return!1;var n=Ote(e);return!0===n?jte(t).has(e):n&&e8(n,t.id)}}),Gee(i,n?{get:function(e){var t=a(this);if(O5(e)){var n=Ote(e);return!0===n?jte(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}},Mte=V8.enforce,zte=!r5.ActiveXObject&&"ActiveXObject"in r5,$te=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Hte=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=r5[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=v5(u[e]);Y8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!O5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!O5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!O5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(D7(e,!A5(a)||!(o||u.forEach&&!o5((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),tte.enable();else if(D7(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=o5((function(){f.has(1)})),h=wte((function(e){new a(e)})),g=!o&&o5((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){gte(e,u);var n=function(e,t,n){var r,o;return Pee&&A5(r=t.constructor)&&r!==n&&O5(o=r.prototype)&&o!==n.prototype&&Pee(e,o),e}(new a,e,s);return null!=t&&pte(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,x7({global:!0,forced:s!=a},l),kee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",$te,Lte);if(P8&&zte){Rte=Lte.getConstructor($te,"WeakMap",!0),tte.enable();var Ute=Hte.prototype,Vte=v5(Ute.delete),Wte=v5(Ute.has),qte=v5(Ute.get),Gte=v5(Ute.set);Gee(Ute,{delete:function(e){if(O5(e)&&!Qee(e)){var t=Mte(this);return t.frozen||(t.frozen=new Rte),Vte(this,e)||t.frozen.delete(e)}return Vte(this,e)},has:function(e){if(O5(e)&&!Qee(e)){var t=Mte(this);return t.frozen||(t.frozen=new Rte),Wte(this,e)||t.frozen.has(e)}return Wte(this,e)},get:function(e){if(O5(e)&&!Qee(e)){var t=Mte(this);return t.frozen||(t.frozen=new Rte),Wte(this,e)?qte(this,e):t.frozen.get(e)}return qte(this,e)},set:function(e,t){if(O5(e)&&!Qee(e)){var n=Mte(this);n.frozen||(n.frozen=new Rte),Wte(this,e)?Gte(this,e,t):n.frozen.set(e,t)}else Gte(this,e,t);return this}})}var Kte={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},Yte=v8("span").classList,Xte=Yte&&Yte.constructor&&Yte.constructor.prototype,Zte=Xte===Object.prototype?void 0:Xte,Jte=l8("iterator"),Qte=l8("toStringTag"),ene=Uee.values,tne=function(e,t){if(e){if(e[Jte]!==ene)try{A8(e,Jte,ene)}catch(t){e[Jte]=ene}if(e[Qte]||A8(e,Qte,t),Kte[t])for(var n in Uee)if(e[n]!==Uee[n])try{A8(e,n,Uee[n])}catch(t){e[n]=Uee[n]}}};for(var nne in Kte)tne(r5[nne]&&r5[nne].prototype,nne);tne(Zte,"DOMTokenList");var rne=K8.EXISTS,one=S8.f,ine=Function.prototype,ane=v5(ine.toString),une=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sne=v5(une.exec);i5&&!rne&&one(ine,"name",{configurable:!0,get:function(){try{return sne(une,ane(this))[1]}catch(h){return""}}});var lne=function(e,t){var n=[][e];return!!n&&o5((function(){n.call(null,t||function(){throw 1},1)}))},cne=Ate.forEach,fne=lne("forEach")?[].forEach:function(e){return cne(this,e,arguments.length>1?arguments[1]:void 0)},dne=function(e){if(e&&e.forEach!==fne)try{A8(e,"forEach",fne)}catch(lle){e.forEach=fne}};for(var pne in Kte)Kte[pne]&&dne(r5[pne]&&r5[pne].prototype);dne(Zte);var hne,gne,vne,yne,mne=r5.Promise,bne=l8("species"),wne=/(?:ipad|iphone|ipod).*applewebkit/i.test(_5),Ene="process"==b5(r5.process),Dne=r5.setImmediate,Cne=r5.clearImmediate,xne=r5.process,Sne=r5.Dispatch,Ane=r5.Function,One=r5.MessageChannel,kne=r5.String,Bne=0,Fne={};try{hne=r5.location}catch(h){}var _ne=function(e){if(e8(Fne,e)){var t=Fne[e];delete Fne[e],t()}},Tne=function(e){return function(){_ne(e)}},Pne=function(e){_ne(e.data)},jne=function(e){r5.postMessage(kne(e),hne.protocol+"//"+hne.host)};Dne&&Cne||(Dne=function(e){var t=U7(arguments,1);return Fne[++Bne]=function(){j9(A5(e)?e:Ane(e),void 0,t)},gne(Bne),Bne},Cne=function(e){delete Fne[e]},Ene?gne=function(e){xne.nextTick(Tne(e))}:Sne&&Sne.now?gne=function(e){Sne.now(Tne(e))}:One&&!wne?(yne=(vne=new One).port2,vne.port1.onmessage=Pne,gne=rte(yne.postMessage,yne)):r5.addEventListener&&A5(r5.postMessage)&&!r5.importScripts&&hne&&"file:"!==hne.protocol&&!o5(jne)?(gne=jne,r5.addEventListener("message",Pne,!1)):gne="onreadystatechange"in v8("script")?function(e){i9.appendChild(v8("script")).onreadystatechange=function(){i9.removeChild(this),_ne(e)}}:function(e){setTimeout(Tne(e),0)});var Nne,Ine,Rne,Lne,Mne,zne,$ne,Hne,Une={set:Dne,clear:Cne},Vne=/ipad|iphone|ipod/i.test(_5)&&void 0!==r5.Pebble,Wne=/web0s(?!.*chrome)/i.test(_5),qne=b8.f,Gne=Une.set,Kne=r5.MutationObserver||r5.WebKitMutationObserver,Yne=r5.document,Xne=r5.process,Zne=r5.Promise,Jne=qne(r5,"queueMicrotask"),Qne=Jne&&Jne.value;Qne||(Nne=function(){var e,t;for(Ene&&(e=Xne.domain)&&e.exit();Ine;){t=Ine.fn,Ine=Ine.next;try{t()}catch(e){throw Ine?Lne():Rne=void 0,e}}Rne=void 0,e&&e.enter()},wne||Ene||Wne||!Kne||!Yne?!Vne&&Zne&&Zne.resolve?(($ne=Zne.resolve(void 0)).constructor=Zne,Hne=rte($ne.then,$ne),Lne=function(){Hne(Nne)}):Ene?Lne=function(){Xne.nextTick(Nne)}:(Gne=rte(Gne,r5),Lne=function(){Gne(Nne)}):(Mne=!0,zne=Yne.createTextNode(""),new Kne(Nne).observe(zne,{characterData:!0}),Lne=function(){zne.data=Mne=!Mne}));var ere,tre,nre,rre,ore=Qne||function(e){var t={fn:e,next:void 0};Rne&&(Rne.next=t),Ine||(Ine=t,Lne()),Rne=t},ire=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=V5(t),this.reject=V5(n)},are={f:function(e){return new ire(e)}},ure=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},sre="object"==typeof window,lre=Une.set,cre=l8("species"),fre="Promise",dre=V8.getterFor(fre),pre=V8.set,hre=V8.getterFor(fre),gre=mne&&mne.prototype,vre=mne,yre=gre,mre=r5.TypeError,bre=r5.document,wre=r5.process,Ere=are.f,Dre=Ere,Cre=!!(bre&&bre.createEvent&&r5.dispatchEvent),xre=A5(r5.PromiseRejectionEvent),Sre=!1,Are=D7(fre,(function(){var e=_8(vre),t=e!==String(vre);if(!t&&66===I5)return!0;if(I5>=51&&/native code/.test(e))return!1;var n=new vre((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[cre]=r,!(Sre=n.then((function(){}))instanceof r)||!t&&sre&&!xre})),Ore=Are||!wte((function(e){vre.all(e).catch((function(){}))})),kre=function(e){var t;return!(!O5(e)||!A5(t=e.then))&&t},Bre=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;ore((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&&Pre(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(mre("Promise-chain cycle")):(u=kre(a))?u5(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&_re(e)}))}},Fre=function(e,t,n){var r,o;Cre?((r=bre.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),r5.dispatchEvent(r)):r={promise:t,reason:n},!xre&&(o=r5["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=r5.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},_re=function(e){u5(lre,r5,(function(){var t,n=e.facade,r=e.value;if(Tre(e)&&(t=ure((function(){Ene?wre.emit("unhandledRejection",r,n):Fre("unhandledrejection",n,r)})),e.rejection=Ene||Tre(e)?2:1,t.error))throw t.value}))},Tre=function(e){return 1!==e.rejection&&!e.parent},Pre=function(e){u5(lre,r5,(function(){var t=e.facade;Ene?wre.emit("rejectionHandled",t):Fre("rejectionhandled",t,e.value)}))},jre=function(e,t,n){return function(r){e(t,r,n)}},Nre=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Bre(e,!0))},Ire=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw mre("Promise can't be resolved itself");var r=kre(t);r?ore((function(){var n={done:!1};try{u5(r,t,jre(Ire,n,e),jre(Nre,n,e))}catch(t){Nre(n,t,e)}})):(e.value=t,e.state=1,Bre(e,!1))}catch(t){Nre({done:!1},t,e)}}};if(Are&&(yre=(vre=function(e){gte(this,yre),V5(e),u5(ere,this);var t=dre(this);try{e(jre(Ire,t),jre(Nre,t))}catch(e){Nre(t,e)}}).prototype,(ere=function(e){pre(this,{type:fre,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Gee(yre,{then:function(e,t){var n=hre(this),r=n.reactions,o=Ere(z9(this,vre));return o.ok=!A5(e)||e,o.fail=A5(t)&&t,o.domain=Ene?wre.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Bre(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),tre=function(){var e=new ere,t=dre(e);this.promise=e,this.resolve=jre(Ire,t),this.reject=jre(Nre,t)},are.f=Ere=function(e){return e===vre||e===nre?new tre(e):Dre(e)},A5(mne)&&gre!==Object.prototype)){rre=gre.then,Sre||(Y8(gre,"then",(function(e,t){var n=this;return new vre((function(e,t){u5(rre,n,e,t)})).then(e,t)}),{unsafe:!0}),Y8(gre,"catch",yre.catch,{unsafe:!0}));try{delete gre.constructor}catch(h){}Pee&&Pee(gre,yre)}x7({global:!0,wrap:!0,forced:Are},{Promise:vre}),kee(vre,fre,!1),function(e){var t=B5(e),n=S8.f;i5&&t&&!t[bne]&&n(t,bne,{configurable:!0,get:function(){return this}})}(fre),nre=B5(fre),x7({target:fre,stat:!0,forced:Are},{reject:function(e){var t=Ere(this);return u5(t.reject,void 0,e),t.promise}}),x7({target:fre,stat:!0,forced:Are},{resolve:function(e){return function(e,t){if(D8(e),O5(t)&&t.constructor===e)return t;var n=are.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),x7({target:fre,stat:!0,forced:Ore},{all:function(e){var t=this,n=Ere(t),r=n.resolve,o=n.reject,i=ure((function(){var n=V5(t.resolve),i=[],a=0,u=1;pte(e,(function(e){var s=a++,l=!1;u++,u5(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=Ere(t),r=n.reject,o=ure((function(){var o=V5(t.resolve);pte(e,(function(e){u5(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Rre=K8.PROPER,Lre=RegExp.prototype,Mre=Lre.toString,zre=v5(J7),$re=o5((function(){return"/a/b"!=Mre.call({source:"a",flags:"b"})})),Hre=Rre&&"toString"!=Mre.name;($re||Hre)&&Y8(RegExp.prototype,"toString",(function(){var e=D8(this),t=Z7(e.source),n=e.flags;return"/"+t+"/"+Z7(void 0===n&&F5(Lre,e)&&!("flags"in Lre)?zre(e):n)}),{unsafe:!0});var Ure=new WeakMap;function Vre(e){return e.getMenuConfig("uploadImage")}function Wre(e,t){return aee(this,void 0,void 0,(function(){return uee(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;Dj(e,i,t.name,a),n("ok")}}}))]}))}))}function qre(e,t){return aee(this,void 0,void 0,(function(){var n,r,o,i;return uee(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Ure.get(e);if(null!=t)return t;var n=Vre(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=$S(iee(iee({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)a(n,(function(t,n,r){return Dj(e,t,n,r)}));else{var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0!==u)return console.error("'"+t.name+"' upload failed",n),void i(t,n);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;Dj(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;Dj(e,f,p,void 0===h?"":h)}r(t,n)}},onError:function(e,t,n){var r=e.name;console.error("'"+r+" upload error",t,n),u&&u(e,t,n)}})),Ure.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 Gre(e,t){var n,r;return aee(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return uee(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Vre(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=lee(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,Wre(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return Dj(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,qre(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 Kre=v5([].join),Yre=D5!=Object,Xre=lne("join",",");x7({target:"Array",proto:!0,forced:Yre||!Xre},{join:function(e){return Kre(S5(this),void 0===e?",":e)}}),To&&(co.fn.append=To),bo&&(co.fn.on=bo),Lo&&(co.fn.remove=Lo),mo&&(co.fn.val=mo),Ho&&(co.fn.click=Ho),xo&&(co.fn.hide=xo);var Zre=function(){function e(){this.title=jA("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 xj(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 Dj(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=co("body"),s=co('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Gre(e,t)}))}},e}(),Jre={menus:[{key:"uploadImage",factory:function(){return new Zre},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){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(xj(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]}))?Gre(e,o):t(r)}},n}};PA("en",{highLightModule:{selectLang:"Language"}}),PA("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Qre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function eoe(e){var t={exports:{}};return e(t,t.exports),t.exports}var toe,noe,roe=function(e){return e&&e.Math==Math&&e},ooe=roe("object"==typeof globalThis&&globalThis)||roe("object"==typeof window&&window)||roe("object"==typeof self&&self)||roe("object"==typeof Qre&&Qre)||function(){return this}()||Function("return this")(),ioe=Object.defineProperty,aoe=function(e,t){try{ioe(ooe,e,{value:t,configurable:!0,writable:!0})}catch(p){ooe[e]=t}return t},uoe=ooe["__core-js_shared__"]||aoe("__core-js_shared__",{}),soe=eoe((function(e){(e.exports=function(e,t){return uoe[e]||(uoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),loe=Function.prototype,coe=loe.bind,foe=loe.call,doe=coe&&coe.bind(foe),poe=coe?function(e){return e&&doe(foe,e)}:function(e){return e&&function(){return foe.apply(e,arguments)}},hoe=ooe.TypeError,goe=function(e){if(null==e)throw hoe("Can't call method on "+e);return e},voe=ooe.Object,yoe=function(e){return voe(goe(e))},moe=poe({}.hasOwnProperty),boe=Object.hasOwn||function(e,t){return moe(yoe(e),t)},woe=0,Eoe=Math.random(),Doe=poe(1..toString),Coe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Doe(++woe+Eoe,36)},xoe=function(e){return"function"==typeof e},Soe=function(e){return xoe(e)?e:void 0},Aoe=function(e,t){return arguments.length<2?Soe(ooe[e]):ooe[e]&&ooe[e][t]},Ooe=Aoe("navigator","userAgent")||"",koe=ooe.process,Boe=ooe.Deno,Foe=koe&&koe.versions||Boe&&Boe.version,_oe=Foe&&Foe.v8;_oe&&(noe=(toe=_oe.split("."))[0]>0&&toe[0]<4?1:+(toe[0]+toe[1])),!noe&&Ooe&&(!(toe=Ooe.match(/Edge\/(\d+)/))||toe[1]>=74)&&(toe=Ooe.match(/Chrome\/(\d+)/))&&(noe=+toe[1]);var Toe=noe,Poe=function(e){try{return!!e()}catch(e){return!0}},joe=!!Object.getOwnPropertySymbols&&!Poe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Toe&&Toe<41})),Noe=joe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ioe=soe("wks"),Roe=ooe.Symbol,Loe=Roe&&Roe.for,Moe=Noe?Roe:Roe&&Roe.withoutSetter||Coe,zoe=function(e){if(!boe(Ioe,e)||!joe&&"string"!=typeof Ioe[e]){var t="Symbol."+e;joe&&boe(Roe,e)?Ioe[e]=Roe[e]:Ioe[e]=Noe&&Loe?Loe(t):Moe(t)}return Ioe[e]},$oe={};$oe[zoe("toStringTag")]="z";var Hoe="[object z]"===String($oe),Uoe=!Poe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Voe=function(e){return"object"==typeof e?null!==e:xoe(e)},Woe=ooe.document,qoe=Voe(Woe)&&Voe(Woe.createElement),Goe=function(e){return qoe?Woe.createElement(e):{}},Koe=!Uoe&&!Poe((function(){return 7!=Object.defineProperty(Goe("div"),"a",{get:function(){return 7}}).a})),Yoe=ooe.String,Xoe=ooe.TypeError,Zoe=function(e){if(Voe(e))return e;throw Xoe(Yoe(e)+" is not an object")},Joe=Function.prototype.call,Qoe=Joe.bind?Joe.bind(Joe):function(){return Joe.apply(Joe,arguments)},eie=poe({}.isPrototypeOf),tie=ooe.Object,nie=Noe?function(e){return"symbol"==typeof e}:function(e){var t=Aoe("Symbol");return xoe(t)&&eie(t.prototype,tie(e))},rie=ooe.String,oie=function(e){try{return rie(e)}catch(e){return"Object"}},iie=ooe.TypeError,aie=function(e){if(xoe(e))return e;throw iie(oie(e)+" is not a function")},uie=function(e,t){var n=e[t];return null==n?void 0:aie(n)},sie=ooe.TypeError,lie=ooe.TypeError,cie=zoe("toPrimitive"),fie=function(e,t){if(!Voe(e)||nie(e))return e;var n,r=uie(e,cie);if(r){if(void 0===t&&(t="default"),n=Qoe(r,e,t),!Voe(n)||nie(n))return n;throw lie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&xoe(n=e.toString)&&!Voe(r=Qoe(n,e)))return r;if(xoe(n=e.valueOf)&&!Voe(r=Qoe(n,e)))return r;if("string"!==t&&xoe(n=e.toString)&&!Voe(r=Qoe(n,e)))return r;throw sie("Can't convert object to primitive value")}(e,t)},die=function(e){var t=fie(e,"string");return nie(t)?t:t+""},pie=ooe.TypeError,hie=Object.defineProperty,gie={f:Uoe?hie:function(e,t,n){if(Zoe(e),t=die(t),Zoe(n),Koe)try{return hie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw pie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},vie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},yie=Uoe?function(e,t,n){return gie.f(e,t,vie(1,n))}:function(e,t,n){return e[t]=n,e},mie=poe(Function.toString);xoe(uoe.inspectSource)||(uoe.inspectSource=function(e){return mie(e)});var bie,wie,Eie,Die=uoe.inspectSource,Cie=ooe.WeakMap,xie=xoe(Cie)&&/native code/.test(Die(Cie)),Sie=soe("keys"),Aie=function(e){return Sie[e]||(Sie[e]=Coe(e))},Oie={},kie=ooe.TypeError,Bie=ooe.WeakMap;if(xie||uoe.state){var Fie=uoe.state||(uoe.state=new Bie),_ie=poe(Fie.get),Tie=poe(Fie.has),Pie=poe(Fie.set);bie=function(e,t){if(Tie(Fie,e))throw new kie("Object already initialized");return t.facade=e,Pie(Fie,e,t),t},wie=function(e){return _ie(Fie,e)||{}},Eie=function(e){return Tie(Fie,e)}}else{var jie=Aie("state");Oie[jie]=!0,bie=function(e,t){if(boe(e,jie))throw new kie("Object already initialized");return t.facade=e,yie(e,jie,t),t},wie=function(e){return boe(e,jie)?e[jie]:{}},Eie=function(e){return boe(e,jie)}}var Nie={set:bie,get:wie,has:Eie,enforce:function(e){return Eie(e)?wie(e):bie(e,{})},getterFor:function(e){return function(t){var n;if(!Voe(t)||(n=wie(t)).type!==e)throw kie("Incompatible receiver, "+e+" required");return n}}},Iie=Function.prototype,Rie=Uoe&&Object.getOwnPropertyDescriptor,Lie=boe(Iie,"name"),Mie={EXISTS:Lie,PROPER:Lie&&"something"===function(){}.name,CONFIGURABLE:Lie&&(!Uoe||Uoe&&Rie(Iie,"name").configurable)},zie=eoe((function(e){var t=Mie.CONFIGURABLE,n=Nie.get,r=Nie.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;xoe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!boe(i,"name")||t&&i.name!==f)&&yie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==ooe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:yie(e,n,i)):l?e[n]=i:aoe(n,i)})(Function.prototype,"toString",(function(){return xoe(this)&&n(this).source||Die(this)}))})),$ie=poe({}.toString),Hie=poe("".slice),Uie=function(e){return Hie($ie(e),8,-1)},Vie=zoe("toStringTag"),Wie=ooe.Object,qie="Arguments"==Uie(function(){return arguments}()),Gie=Hoe?Uie: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=Wie(e),Vie))?n:qie?Uie(t):"Object"==(r=Uie(t))&&xoe(t.callee)?"Arguments":r},Kie=Hoe?{}.toString:function(){return"[object "+Gie(this)+"]"};Hoe||zie(Object.prototype,"toString",Kie,{unsafe:!0});var Yie,Xie,Zie={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},Jie=Goe("span").classList,Qie=Jie&&Jie.constructor&&Jie.constructor.prototype,eae=Qie===Object.prototype?void 0:Qie,tae=poe(poe.bind),nae=ooe.Object,rae=poe("".split),oae=Poe((function(){return!nae("z").propertyIsEnumerable(0)}))?function(e){return"String"==Uie(e)?rae(e,""):nae(e)}:nae,iae=Math.ceil,aae=Math.floor,uae=function(e){var t=+e;return t!=t||0===t?0:(t>0?aae:iae)(t)},sae=Math.min,lae=function(e){return e>0?sae(uae(e),9007199254740991):0},cae=function(e){return lae(e.length)},fae=Array.isArray||function(e){return"Array"==Uie(e)},dae=function(){},pae=[],hae=Aoe("Reflect","construct"),gae=/^\s*(?:class|function)\b/,vae=poe(gae.exec),yae=!gae.exec(dae),mae=function(e){if(!xoe(e))return!1;try{return hae(dae,pae,e),!0}catch(e){return!1}},bae=!hae||Poe((function(){var e;return mae(mae.call)||!mae(Object)||!mae((function(){e=!0}))||e}))?function(e){if(!xoe(e))return!1;switch(Gie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yae||!!vae(gae,Die(e))}:mae,wae=zoe("species"),Eae=ooe.Array,Dae=function(e,t){return new(function(e){var t;return fae(e)&&(t=e.constructor,(bae(t)&&(t===Eae||fae(t.prototype))||Voe(t)&&null===(t=t[wae]))&&(t=void 0)),void 0===t?Eae:t}(e))(0===t?0:t)},Cae=poe([].push),xae=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=yoe(s),g=oae(h),v=function(e,t){return aie(e),void 0===t?e:tae?tae(e,t):function(){return e.apply(t,arguments)}}(l,c),y=cae(g),m=0,b=f||Dae,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:Cae(w,d)}else switch(e){case 4:return!1;case 7:Cae(w,d)}return i?-1:r||o?o:w}},Sae={forEach:xae(0),map:xae(1),filter:xae(2),some:xae(3),every:xae(4),find:xae(5),findIndex:xae(6),filterReject:xae(7)}.forEach,Aae=(Xie=[]["forEach"])&&Poe((function(){Xie.call(null,Yie||function(){throw 1},1)}))?[].forEach:function(e){return Sae(this,e,arguments.length>1?arguments[1]:void 0)},Oae=function(e){if(e&&e.forEach!==Aae)try{yie(e,"forEach",Aae)}catch(h){e.forEach=Aae}};for(var kae in Zie)Zie[kae]&&Oae(ooe[kae]&&ooe[kae].prototype);Oae(eae);var Bae={}.propertyIsEnumerable,Fae=Object.getOwnPropertyDescriptor,_ae={f:Fae&&!Bae.call({1:2},1)?function(e){var t=Fae(this,e);return!!t&&t.enumerable}:Bae},Tae=function(e){return oae(goe(e))},Pae=Object.getOwnPropertyDescriptor,jae={f:Uoe?Pae:function(e,t){if(e=Tae(e),t=die(t),Koe)try{return Pae(e,t)}catch(e){}if(boe(e,t))return vie(!Qoe(_ae.f,e,t),e[t])}},Nae=Math.max,Iae=Math.min,Rae=function(e,t){var n=uae(e);return n<0?Nae(n+t,0):Iae(n,t)},Lae=function(e){return function(t,n,r){var o,i=Tae(t),a=cae(i),u=Rae(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}},Mae={includes:Lae(!0),indexOf:Lae(!1)}.indexOf,zae=poe([].push),$ae=function(e,t){var n,r=Tae(e),o=0,i=[];for(n in r)!boe(Oie,n)&&boe(r,n)&&zae(i,n);for(;t.length>o;)boe(r,n=t[o++])&&(~Mae(i,n)||zae(i,n));return i},Hae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Uae=Hae.concat("length","prototype"),Vae={f:Object.getOwnPropertyNames||function(e){return $ae(e,Uae)}},Wae={f:Object.getOwnPropertySymbols},qae=poe([].concat),Gae=Aoe("Reflect","ownKeys")||function(e){var t=Vae.f(Zoe(e)),n=Wae.f;return n?qae(t,n(e)):t},Kae=function(e,t){for(var n=Gae(t),r=gie.f,o=jae.f,i=0;i<n.length;i++){var a=n[i];boe(e,a)||r(e,a,o(t,a))}},Yae=/#|\.prototype\./,Xae=function(e,t){var n=Jae[Zae(e)];return n==eue||n!=Qae&&(xoe(t)?Poe(t):!!t)},Zae=Xae.normalize=function(e){return String(e).replace(Yae,".").toLowerCase()},Jae=Xae.data={},Qae=Xae.NATIVE="N",eue=Xae.POLYFILL="P",tue=Xae,nue=jae.f,rue=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ooe:l?ooe[u]||aoe(u,{}):(ooe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=nue(n,r))&&a.value:n[r],!tue(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Kae(i,o)}(e.sham||o&&o.sham)&&yie(i,"sham",!0),zie(n,r,i,e)}},oue=Object.keys||function(e){return $ae(e,Hae)},iue=Object.assign,aue=Object.defineProperty,uue=poe([].concat),sue=!iue||Poe((function(){if(Uoe&&1!==iue({b:1},iue(aue({},"a",{enumerable:!0,get:function(){aue(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!=iue({},e)[n]||oue(iue({},t)).join("")!=r}))?function(e,t){for(var n=yoe(e),r=arguments.length,o=1,i=Wae.f,a=_ae.f;r>o;)for(var u,s=oae(arguments[o++]),l=i?uue(oue(s),i(s)):oue(s),c=l.length,f=0;c>f;)u=l[f++],Uoe&&!Qoe(a,s,u)||(n[u]=s[u]);return n}:iue;rue({target:"Object",stat:!0,forced:Object.assign!==sue},{assign:sue});var lue=eoe((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,"&").replace(/</g,"<").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 E=g.pattern||g,D=r.next,C=s;D!==t.tail&&!(f&&C>=f.reach);C+=D.value.length,D=D.next){var x=D.value;if(t.length>e.length)return;if(!(x instanceof i)){var S,A=1;if(m){if(!(S=a(E,C,e,y)))break;var O=S.index,k=S.index+S[0].length,B=C;for(B+=D.value.length;O>=B;)B+=(D=D.next).value.length;if(C=B-=D.value.length,D.value instanceof i)continue;for(var F=D;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,x=e.slice(C,B),S.index-=C}else if(!(S=a(E,0,x,y)))continue;O=S.index;var _=S[0],T=x.slice(0,O),P=x.slice(O+_.length),j=C+x.length;f&&j>f.reach&&(f.reach=j);var N=D.prev;if(T&&(N=l(t,N,T),C+=T.length),c(t,N,A),D=l(t,N,new i(d,v?o.tokenize(_,v):_,b,_)),P&&l(t,D,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,D.prev,C,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,""")+'"';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:{});
- /**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),void 0!==Qre&&(Qre.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(/&/,"&"))})),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="loading",o="loaded",i='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),t.hooks.add("before-sanity-check",(function(a){var u=a.element;if(u.matches(i)){a.code="",u.setAttribute(n,r);var l=u.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=u.getAttribute("data-src"),f=a.language;if("none"===f){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=e[d]||d}s(l,f),s(u,f);var p=t.plugins.autoloader;p&&p.loadLanguages(f);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){var e,r;4==h.readyState&&(h.status<400&&h.responseText?(u.setAttribute(n,o),l.textContent=h.responseText,t.highlightElement(l)):(u.setAttribute(n,"failed"),h.status>=400?l.textContent=(e=h.status,r=h.statusText,"✖ Error "+e+" while fetching file: "+r):l.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var u=!1;t.fileHighlight=function(){u||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),u=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function s(e,t){var n=e.className;n=n.replace(a," ")+" 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(/&/,"&"))})),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://,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]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\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,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(x),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,g]),inside:C}],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:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:C,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:C}}},"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,D,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(D),greedy:!0,inside:C},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=S+"|"+x,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(/<<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,_]),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 T=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,T]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,T]);function R(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,T]),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:R(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:R(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){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n);var r=u[t];return r||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);var cue=["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 fue(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+fue(t)}),0)}var due,pue=ooe.String,hue=function(e){if("Symbol"===Gie(e))throw TypeError("Cannot convert a Symbol value to a string");return pue(e)},gue=function(){var e=Zoe(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},vue=ooe.RegExp,yue=Poe((function(){var e=vue("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),mue=yue||Poe((function(){return!vue("a","y").sticky})),bue={BROKEN_CARET:yue||Poe((function(){var e=vue("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:mue,UNSUPPORTED_Y:yue},wue=Uoe?Object.defineProperties:function(e,t){Zoe(e);for(var n,r=Tae(t),o=oue(t),i=o.length,a=0;i>a;)gie.f(e,n=o[a++],r[n]);return e},Eue=Aoe("document","documentElement"),Due=Aie("IE_PROTO"),Cue=function(){},xue=function(e){return"<script>"+e+"<\/script>"},Sue=function(e){e.write(xue("")),e.close();var t=e.parentWindow.Object;return e=null,t},Aue=function(){try{due=new ActiveXObject("htmlfile")}catch(e){}var e,t;Aue="undefined"!=typeof document?document.domain&&due?Sue(due):((t=Goe("iframe")).style.display="none",Eue.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xue("document.F=Object")),e.close(),e.F):Sue(due);for(var n=Hae.length;n--;)delete Aue.prototype[Hae[n]];return Aue()};Oie[Due]=!0;var Oue,kue,Bue=Object.create||function(e,t){var n;return null!==e?(Cue.prototype=Zoe(e),n=new Cue,Cue.prototype=null,n[Due]=e):n=Aue(),void 0===t?n:wue(n,t)},Fue=ooe.RegExp,_ue=Poe((function(){var e=Fue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Tue=ooe.RegExp,Pue=Poe((function(){var e=Tue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),jue=Nie.get,Nue=soe("native-string-replace",String.prototype.replace),Iue=RegExp.prototype.exec,Rue=Iue,Lue=poe("".charAt),Mue=poe("".indexOf),zue=poe("".replace),$ue=poe("".slice),Hue=(kue=/b*/g,Qoe(Iue,Oue=/a/,"a"),Qoe(Iue,kue,"a"),0!==Oue.lastIndex||0!==kue.lastIndex),Uue=bue.BROKEN_CARET,Vue=void 0!==/()??/.exec("")[1];(Hue||Vue||Uue||_ue||Pue)&&(Rue=function(e){var t,n,r,o,i,a,u,s=this,l=jue(s),c=hue(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Qoe(Rue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Uue&&s.sticky,h=Qoe(gue,s),g=s.source,v=0,y=c;if(p&&(h=zue(h,"y",""),-1===Mue(h,"g")&&(h+="g"),y=$ue(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Lue(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Vue&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Hue&&(r=s.lastIndex),o=Qoe(Iue,p?n:s,y),p?o?(o.input=$ue(o.input,v),o[0]=$ue(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Hue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Vue&&o&&o.length>1&&Qoe(Nue,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=Bue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Wue=Rue;rue({target:"RegExp",proto:!0,forced:/./.exec!==Wue},{exec:Wue});var que=Function.prototype,Gue=que.apply,Kue=que.bind,Yue=que.call,Xue="object"==typeof Reflect&&Reflect.apply||(Kue?Yue.bind(Gue):function(){return Yue.apply(Gue,arguments)}),Zue=zoe("species"),Jue=RegExp.prototype,Que=zoe("match"),ese=ooe.TypeError,tse=zoe("species"),nse=function(e,t){var n,r=Zoe(e).constructor;return void 0===r||null==(n=Zoe(r)[tse])?t:function(e){if(bae(e))return e;throw ese(oie(e)+" is not a constructor")}(n)},rse=poe("".charAt),ose=poe("".charCodeAt),ise=poe("".slice),ase=function(e){return function(t,n){var r,o,i=hue(goe(t)),a=uae(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ose(i,a))<55296||r>56319||a+1===u||(o=ose(i,a+1))<56320||o>57343?e?rse(i,a):r:e?ise(i,a,a+2):o-56320+(r-55296<<10)+65536}},use={codeAt:ase(!1),charAt:ase(!0)}.charAt,sse=function(e,t,n){return t+(n?use(e,t).length:1)},lse=ooe.Array,cse=Math.max,fse=function(e,t,n){for(var r,o,i,a,u=cae(e),s=Rae(t,u),l=Rae(void 0===n?u:n,u),c=lse(cse(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=die(o))in r?gie.f(r,a,vie(0,i)):r[a]=i;return c.length=f,c},dse=ooe.TypeError,pse=function(e,t){var n=e.exec;if(xoe(n)){var r=Qoe(n,e,t);return null!==r&&Zoe(r),r}if("RegExp"===Uie(e))return Qoe(Wue,e,t);throw dse("RegExp#exec called on incompatible receiver")},hse=bue.UNSUPPORTED_Y,gse=Math.min,vse=[].push,yse=poe(/./.exec),mse=poe(vse),bse=poe("".slice);!function(e,t,n,r){var o=zoe(e),i=!Poe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Poe((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Zue]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=poe(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=poe(e),s=t.exec;return s===Wue||s===Jue.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));zie(String.prototype,e,s[0]),zie(Jue,o,s[1])}r&&yie(Jue[o],"sham",!0)}("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=hue(goe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Voe(r=e)||!(void 0!==(o=r[Que])?o:"RegExp"==Uie(r)))return Qoe(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=Qoe(Wue,p,i))&&!((s=p.lastIndex)>d&&(mse(c,bse(i,d,u.index)),u.length>1&&u.index<i.length&&Xue(vse,c,fse(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&yse(p,"")||mse(c,""):mse(c,bse(i,d)),c.length>a?fse(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Qoe(t,this,e,n)}:t,[function(t,n){var o=goe(this),i=null==t?void 0:uie(t,e);return i?Qoe(i,t,o,n):Qoe(r,hue(o),t,n)},function(e,o){var i=Zoe(this),a=hue(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=nse(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(hse?"g":"y"),f=new s(hse?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===pse(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=hse?0:h;var v,y=pse(f,hse?bse(a,h):a);if(null===y||(v=gse(lae(f.lastIndex+(hse?h:0)),a.length))===p)h=sse(a,h,l);else{if(mse(g,bse(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(mse(g,y[m]),g.length===d)return g;h=p=v}}return mse(g,bse(a,p)),g}]}),!!Poe((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]})),hse),rue({global:!0},{globalThis:ooe}),go&&(co.fn.attr=go);var wse=Mie.PROPER,Ese=RegExp.prototype,Dse=Ese.toString,Cse=poe(gue),xse=Poe((function(){return"/a/b"!=Dse.call({source:"a",flags:"b"})})),Sse=wse&&"toString"!=Dse.name;(xse||Sse)&&zie(RegExp.prototype,"toString",(function(){var e=Zoe(this),t=hue(e.source),n=e.flags;return"/"+t+"/"+hue(void 0===n&&eie(Ese,e)&&!("flags"in Ese)?Cse(e):n)}),{unsafe:!0});var Ase=function(){function e(){this.title=jA("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(!nt.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()};Jt.setNodes(e,n,{match:function(e){return Iw.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Iw.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Iw.getParentNode(e,t);return nt.isElement(n)?"pre"!==n.type?null:t:null},e}(),Ose={renderStyle:function(e,t){var n=e,r=t,o="";return cue.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=co(e);if(!nt.isElement(t))return t;if("code"!==Iw.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 Ase},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:"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>"}}]},kse=/"/g,Bse=poe("".replace);rue({target:"String",proto:!0,forced:function(e){return Poe((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}("anchor")},{anchor:function(e){return t="a",n="name",r=e,o=hue(goe(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+Bse(hue(r),kse,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var Fse=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(!Pt.isText(e))return null;var t=Iw.getParentNode(null,e);if(t&&"code"===Iw.getNodeType(t)){var n=Iw.getParentNode(null,t);if(n&&"pre"===Iw.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=lue.languages[t];return n?lue.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- 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+fue(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},_se=function(){return _se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_se.apply(this,arguments)},Tse=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=_se(_se({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=_se(_se({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=_se(_se({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=_se(_se({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){zw(e,t)},e.registerRenderElem=function(e){Fx(e)},e.registerRenderStyle=function(e){kx(e)},e.registerElemToHtml=function(e){yE(e)},e.registerStyleToHtml=function(e){gE(e)},e.registerPreParseHtml=function(e){XD(e)},e.registerParseElemHtml=function(e){eC(e)},e.registerParseStyleHtml=function(e){JD(e)},e.registerModule=function(e){Pse(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function Pse(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 Tse.registerMenu(e)})),n&&n.forEach((function(e){return Tse.registerRenderElem(e)})),r&&Tse.registerRenderStyle(r),o&&o.forEach((function(e){return Tse.registerElemToHtml(e)})),i&&Tse.registerStyleToHtml(i),a&&a.forEach((function(e){return Tse.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Tse.registerParseElemHtml(e)})),s&&Tse.registerParseStyleHtml(s),l&&Tse.registerPlugin(l)}Lz.forEach((function(e){return Pse(e)})),Pse(_W),Pse(EZ),Pse(Z3),Pse(Jre),Pse(Ose);var jse='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Nse='<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>',Ise='<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>',Rse='<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>',Lse='<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>';function Mse(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:jA("editor.more"),iconSvg:Rse,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:jA("editor.justify"),iconSvg:Nse,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:jA("editor.indent"),iconSvg:jse,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:jA("editor.image"),iconSvg:Ise,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:jA("editor.video"),iconSvg:Lse,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function zse(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:jA("editor.image"),iconSvg:Ise,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var $se={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"]}};function Hse(){return _se(_se({},$se),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function Use(){return $se}function Vse(){return{hoverbarKeys:Hse()}}function Wse(){return{hoverbarKeys:Use()}}function qse(){return{toolbarKeys:Mse()}}function Gse(){return{toolbarKeys:zse()}}var Kse=Vse();Tse.setEditorConfig(_se(_se({},Kse),{decorate:Fse}));var Yse=Wse();Tse.setSimpleEditorConfig(_se(_se({},Yse),{decorate:Fse}));var Xse=qse();Tse.setToolbarConfig(Xse);var Zse=Gse();function Jse(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=void 0===s?"default":s,c="simple"===l?Tse.simpleEditorConfig:Tse.editorConfig,f=_se(_se({},c.hoverbarKeys||{}),u.hoverbarKeys||{}),d=kS({selector:n,config:_se(_se(_se({},c),u),{hoverbarKeys:f}),content:o,html:i,plugins:Tse.plugins});return d}function Qse(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?Tse.simpleToolbarConfig:Tse.toolbarConfig,s=jS(n,{selector:t,config:_se(_se({},u),o)});return s}Tse.setSimpleToolbarConfig(Zse);var ele=function(){return ele=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},ele.apply(this,arguments)};function tle(e){var t="请使用 '@".concat(e,"' 事件,不要放在 props 中");return t+"\nPlease use '@".concat(e,"' event instead of props")}var nle=a["default"].extend({render:function(e){return e("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(e){e===this.curValue||this.setHtml(e)}},methods:{setHtml:function(e){var t=this.editor;if(null!=t){var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);if(t.enable(),t.focus(),t.select([]),t.deleteFragment(),Jt.setNodes(t,{type:"paragraph"},{mode:"highest"}),t.dangerouslyInsertHtml(e),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(st.start(t,[]))}}},create:function(){var e=this;if(null!=this.$refs.box){var t=this.defaultConfig||{},n=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);Jse({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:ele(ele({},t),{onCreated:function(n){if(e.editor=Object.seal(n),e.$emit("onCreated",n),t.onCreated){var r=tle("onCreated");throw new Error(r)}},onChange:function(n){var r=n.getHtml();if(e.curValue=r,e.$emit("input",r),e.$emit("onChange",n),t.onChange){var o=tle("onChange");throw new Error(o)}},onDestroyed:function(n){if(e.$emit("onDestroyed",n),t.onDestroyed){var r=tle("onDestroyed");throw new Error(r)}},onMaxLength:function(n){if(e.$emit("onMaxLength",n),t.onMaxLength){var r=tle("onMaxLength");throw new Error(r)}},onFocus:function(n){if(e.$emit("onFocus",n),t.onFocus){var r=tle("onFocus");throw new Error(r)}},onBlur:function(n){if(e.$emit("onBlur",n),t.onBlur){var r=tle("onBlur");throw new Error(r)}},customAlert:function(n,r){if(e.$emit("customAlert",n,r),t.customAlert){var o=tle("customAlert");throw new Error(o)}},customPaste:function(n,r){if(t.customPaste){var o=tle("customPaste");throw new Error(o)}var i;return e.$emit("customPaste",n,r,(function(e){i=e})),i}}),content:JSON.parse(n),mode:this.mode||"default"})}}}}),rle=a["default"].extend({name:"Toolbar",render:function(e){return e("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(e){null!=this.$refs.box&&null!=e&&(Iw.getToolbar(e)||Qse({editor:e,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(e){null!=e&&this.create(e)},immediate:!0}}}),ole=a["default"].extend({components:{Editor:nle,Toolbar:rle},data(){return{editor:null,html:"",toolbarConfig:{},editorConfig:{placeholder:"请输入内容...",MENU_CONF:{uploadImage:{customUpload:this.update},uploadVideo:{customUpload:this.update}}},mode:"default"}},props:["id","content","disabled"],watch:{disabled(e){e?this.editor.disable():this.editor.enable()}},methods:{onCreated(e){this.editor=Object.seal(e)},update(e,t){let n=e.name.substr(0,e.name.indexOf(".")),r=e.name.substr(e.name.indexOf(".")+1),o={classname:"system.attachment.huawei.OBS",method:"getFileName",content:{filename:n,filetype:r,parentid:JSON.parse(sessionStorage.getItem("folderid")).appfolderid}};this.$api.requested(o).then((r=>{let o=r.data.uploadurl,i=r.data.serialfilename,a={headers:{"Content-Type":"application/octet-stream"}};this.$upload.hw_upload(o,e,a).then((e=>{if("OK"==e.statusText){let e={classname:"system.attachment.huawei.OBS",method:"uploadSuccess",content:{serialfilename:i}};this.$api.requested(e).then((e=>{let r=e.data.attachmentids,o={classname:"system.attachment.Attachment",method:"createFileLink",content:{ownertable:"SAT_SHAREMATERIAL",ownerid:this.id,usetype:"richtext",attachmentids:r}};this.$api.requested(o).then((e=>{"成功"!=e.msg?this.$notify({title:"提示",message:"上传失败",type:"error"}):t(e.data[0].url,n,e.data[0].url)}))}))}}))}))}},mounted(){setTimeout((()=>{this.html=this.content,this.disabled?this.editor.disable():this.editor.enable()}),1e3)},beforeDestroy(){const e=this.editor;null!=e&&e.destroy()}}),ile=ole,ale=n(43736),ule=(0,ale.Z)(ile,o,i,!1,null,null,null),sle=ule.exports}}]);
|