PageSourceSearch

https://www.d2core.com/assets/editor.DVWKh0Dn.js

js d2core.com collected 2026-10-04 00:43:27 UTC 861,248 bytes, 147 lines download raw bytes

1var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r})(t,"symbol"!=typeof n?n+"":n,r),r);import{dl as n,bO as r,bQ as o,bR as i,c as a,w as u,i as s,o as l,am as c,bn as f,a4 as d,n as p,f as h,dk as v,dm as g,cL as y,bS as m,dn as b,aK as w,dp as E,R as x,dq as C,dr as D,bP as S,p as A,H as O,ds as k,k as B,t as _,a as F,a7 as T,a6 as P,q as j,av as I,c9 as N,cq as L,S as R,co as M,bm as z,cp as $,ca as H,cb as V,M as U,g as W,h as G,u as q,r as K,j as X,e as Y,F as Z,N as J,b as Q,bN as ee,dt as te,du as ne,x as re,y as oe,dv as ie,cU as ae,cR as ue,dw as se}from"./index-DEpBscAf.js";import{_ as le,i as ce}from"./tier-gate-modal.DpvxM8IY.js";import{r as fe}from"./uni-app.es.DCMxoOwQ.js";import{d as de,n as pe,p as he}from"./post-content.BXFQEOxg.js";import{_ as ve}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{X as ge}from"./x.Ckpwsymw.js";import{G as ye}from"./gem.CdVydawZ.js";import{D as me}from"./database.BSIK_ey2.js";import{B as be,S as we}from"./sword.vM2imIP-.js";import{S as Ee}from"./skull.1L-ru1G5.js";import{u as xe}from"./uploadUtils.DYBy94uH.js";const Ce=Symbol("editor-session");let De=0;function Se(){const e="editor-session-"+ ++De,t=new Map,r=n({mobile:!1,enabled:!1,activeId:null,capabilities:{},format:{block:"paragraph",marks:{}},canUndo:!1,canRedo:!1});let o;const i=t=>{var n,r,o;return(null==(r=null==(n=null==t?void 0:t.closest)?void 0:n.call(t,"[data-editor-session]"))?void 0:r.getAttribute("data-editor-session"))===e||!!(null==(o=null==t?void 0:t.closest)?void 0:o.call(t,"[data-editor-preview-control]"))},a={id:e,state:r,register:e=>(t.set(e.id,e),()=>{r.activeId===e.id&&a.deactivate(),t.delete(e.id)}),setContext({mobile:e,enabled:t}){r.mobile===e&&t||a.deactivate(),r.mobile=e,r.enabled=t,a.refresh()},activate(e){var n,o;r.enabled&&t.has(e)&&(r.activeId!==e&&(null==(o=null==(n=t.get(r.activeId))?void 0:n.onDeactivate)||o.call(n),r.activeId=e),a.refresh(e))},refresh(e=r.activeId){if(!e||r.activeId!==e)return;const n=t.get(e);Object.assign(r,(null==n?void 0:n.getState())||{capabilities:{},format:{block:"paragraph",marks:{}},canUndo:!1,canRedo:!1})},deactivate(){var e,n;const o=t.get(r.activeId);r.activeId=null,Object.assign(r,{capabilities:{},format:{block:"paragraph",marks:{}},canUndo:!1,canRedo:!1}),null==(e=null==o?void 0:o.onDeactivate)||e.call(o),null==(n=null==o?void 0:o.blur)||n.call(o)},execute(e,n){var o;if(!r.enabled||!r.activeId||!r.capabilities[e])return!1;const i=null==(o=t.get(r.activeId))?void 0:o.execute(e,n);return a.refresh(),i},isActive:e=>r.enabled&&r.activeId===e,scrollCaretIntoView(){var e,n;null==(n=null==(e=t.get(r.activeId))?void 0:e.scrollCaretIntoView)||n.call(e)},isControl:i,connect(e){a.disconnect(),o=e,e.addEventListener("pointerdown",s,!0),e.addEventListener("focusin",l,!0),e.addEventListener("visibilitychange",c)},disconnect(){null==o||o.removeEventListener("pointerdown",s,!0),null==o||o.removeEventListener("focusin",l,!0),null==o||o.removeEventListener("visibilitychange",c),o=null},dispose(){a.setContext({mobile:r.mobile,enabled:!1}),t.clear(),a.disconnect()}};function u(e){return[...t.values()].some((t=>{var n;return null==(n=t.contains)?void 0:n.call(t,e)}))}function s(e){r.enabled&&r.activeId&&!i(e.target)&&!u(e.target)&&a.deactivate()}function l(e){r.enabled&&r.activeId&&!i(e.target)&&!u(e.target)&&a.deactivate()}function c(){(null==o?void 0:o.hidden)&&a.deactivate()}return a}function Ae(){const e=r({bottom:0,height:"undefined"==typeof window?600:window.innerHeight,left:0,width:"100%"});let t;const n=()=>{t=null;const n=window.visualViewport;e.value={bottom:Math.max(0,window.innerHeight-(n?n.offsetTop+n.height:window.innerHeight)),height:(null==n?void 0:n.height)||window.innerHeight,left:(null==n?void 0:n.offsetLeft)||0,width:n?`${n.width}px`:"100%"}},a=()=>{t||(t=window.requestAnimationFrame(n))};return o((()=>{var e,t;"undefined"!=typeof window&&(n(),window.addEventListener("resize",a,{passive:!0}),null==(e=window.visualViewport)||e.addEventListener("resize",a,{passive:!0}
1),null==(t=window.visualViewport)||t.addEventListener("scroll",a,{passive:!0}))})),i((()=>{var e,n;"undefined"!=typeof window&&(window.cancelAnimationFrame(t),window.removeEventListener("resize",a),null==(e=window.visualViewport)||e.removeEventListener("resize",a),null==(n=window.visualViewport)||n.removeEventListener("scroll",a))})),e}const Oe={top:"bottom",bottom:"top",left:"right",right:"left"};const ke=ve({props:{show:Boolean,panelId:String,panelClass:String,role:String,label:String,placement:{type:String,default:"bottom",validator:e=>["top","bottom","left","right"].includes(e)},offset:{type:Number,default:8},reference:Object,align:{type:String,default:"center",validator:e=>["start","center","end"].includes(e)},fitHeight:Boolean},emits:["shown","dismiss","panel-enter","panel-leave","panel-focus","panel-blur"],data(){return{ready:!1,maxHeight:void 0,position:{left:0,top:0,placement:this.placement}}},computed:{panelStyle(){return{left:`${this.position.left}px`,top:`${this.position.top}px`,visibility:this.ready?"visible":"hidden",...this.fitHeight&&void 0!==this.maxHeight?{maxHeight:`${this.maxHeight}px`,"--ui-floating-max-height":`${this.maxHeight}px`}:{}}}},watch:{show:{immediate:!0,handler(e){this.stopTracking(),e&&this.$nextTick(this.startTracking)}},placement(){this.queuePosition()},offset(){this.queuePosition()},align(){this.queuePosition()},reference(){this.stopTracking(),this.show&&this.$nextTick(this.startTracking)}},beforeUnmount(){this._disposed=!0,this.stopTracking()},methods:{getReferenceElement(){var e,t;return(null==(e=this.reference)?void 0:e.contextElement)||(null==(t=this.$refs.anchor)?void 0:t.$el)||this.$refs.anchor},startTracking(){var e,t;if(this.show&&!this._disposed&&(this.stopTracking(),this.updatePosition(),window.addEventListener("scroll",this.queuePosition,{capture:!0,passive:!0}),window.addEventListener("resize",this.queuePosition,{passive:!0}),null==(e=window.visualViewport)||e.addEventListener("resize",this.queuePosition,{passive:!0}),null==(t=window.visualViewport)||t.addEventListener("scroll",this.queuePosition,{passive:!0}),window.addEventListener("keydown",this.onKeydown),window.addEventListener("pointerdown",this.onOutsidePointer,!0),"undefined"!=typeof ResizeObserver)){this._resizeObserver=new ResizeObserver(this.queuePosition);for(const e of[this.getReferenceElement(),this.$refs.panel]){const t=(null==e?void 0:e.$el)||e;t&&this._resizeObserver.observe(t)}}},stopTracking(){var e,t,n;this.ready=!1,"undefined"!=typeof window&&(window.removeEventListener("scroll",this.queuePosition,!0),window.removeEventListener("resize",this.queuePosition),null==(e=window.visualViewport)||e.removeEventListener("resize",this.queuePosition),null==(t=window.visualViewport)||t.removeEventListener("scroll",this.queuePosition),window.removeEventListener("keydown",this.onKeydown),window.removeEventListener("pointerdown",this.onOutsidePointer,!0),window.cancelAnimationFrame(this._positionFrame),this._positionFrame=null,null==(n=this._resizeObserver)||n.disconnect(),this._resizeObserver=null)},onKeydown(e){"Escape"!==e.key||e.isComposing||this.$emit("dismiss","escape")},onOutsidePointer(e){var t;const n=this.getReferenceElement(),r=(null==(t=this.$refs.panel)?void 0:t.$el)||this.$refs.panel;(null==n?void 0:n.contains(e.target))||(null==r?void 0:r.contains(e.target))||this.$emit("dismiss","outside")},queuePosition(){!this.show||this._disposed||this._positionFrame||(this._positionFrame=window.requestAnimationFrame((()=>{this._positionFrame=null,this.updatePosition()})))},updatePosition(){var e;const t=this.getReferenceElement(),n=(null==(e=this.$refs.panel)?void 0:e.$el)||this.$refs.panel;if(!this.show||!t||!n)return;const r=this.reference?this.reference.getBoundingClientRect():t.getBoundingClientRect(),o=window.visualViewport,i=(null==o?void 0:o.offsetLeft)||0,a=(null==o?void 0:o.offsetTop)||0,u={width:(null==o?void 0:o.width)||window.innerWidth,height:(null==o?void 0:o.height)||window.innerHeight},s=r&&{left:r.left-i,right:r.right-i,top:r.top-a,bottom:r.bottom-a,width:r.width,height:r.height};if(!s||s.bottom<=0||s.top>=u.height||s.right<0||s.left>=u.width)return void this.$emit("dismiss","reference-hidden");const l=n.getBoundingClientRect();this.maxHeight=this.fitHeight?Math.max(0,s.top-this.offset-8,u.height-s.bottom-this.offset-8):void 0;const c=function(e,t,n,r="bottom",o=8,i="center"){const a=Oe[r]?r:"bottom",u=[...new Set([a,Oe[a],"bottom","top","right","left"])].map((r=>
1{let a=e.left+(e.width-t.width)/2,u=e.top+(e.height-t.height)/2;return"top"===r&&(u=e.top-t.height-o),"bottom"===r&&(u=e.bottom+o),"left"===r&&(a=e.left-t.width-o),"right"===r&&(a=e.right+o),"top"===r||"bottom"===r?("start"===i&&(a=e.left),"end"===i&&(a=e.right-t.width)):("start"===i&&(u=e.top),"end"===i&&(u=e.bottom-t.height)),{left:a,top:u,placement:r,overflow:"top"===r||"bottom"===r?Math.max(0,8-u)+Math.max(0,u+t.height+8-n.height):Math.max(0,8-a)+Math.max(0,a+t.width+8-n.width)}})).reduce(((e,t)=>t.overflow<e.overflow?t:e)),s=(e,t,n)=>Math.max(8,Math.min(e,n-t-8));return{left:s(u.left,t.width,n.width),top:s(u.top,t.height,n.height),placement:u.placement}}(s,{width:l.width,height:this.fitHeight?Math.min(l.height,this.maxHeight):l.height},u,this.placement,this.offset,this.align);this.position={...c,left:c.left+i,top:c.top+a};const f=!this.ready;this.ready=!0,f&&this.$nextTick((()=>{this.show&&!this._disposed&&this.$emit("shown")}))}}},[["render",function(e,t,n,r,o,i){const v=s;return l(),a(v,{ref:"anchor",class:"ui-floating"},{default:u((()=>[c(e.$slots,"default",{},void 0,!0),(l(),a(f,{to:"body"},[n.show?(l(),a(v,{key:0,ref:"panel",class:p(["ui-floating__panel",n.panelClass]),style:d(i.panelStyle),id:n.panelId,role:n.role,"aria-label":n.label,"data-placement":o.position.placement,onMouseenter:t[0]||(t[0]=t=>e.$emit("panel-enter")),onMouseleave:t[1]||(t[1]=t=>e.$emit("panel-leave")),onFocusin:t[2]||(t[2]=t=>e.$emit("panel-focus",t)),onFocusout:t[3]||(t[3]=t=>e.$emit("panel-blur",t))},{default:u((()=>[c(e.$slots,"content",{},void 0,!0)])),_:3},8,["class","style","id","role","aria-label","data-placement"])):h("",!0)]))])),_:3},512)}],["__scopeId","data-v-9bef2f51"]]);var Be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _e(e){var t={exports:{}};return e(t,t.exports),t.exports}var Fe,Te,Pe=function(e){return e&&e.Math==Math&&e},je=Pe("object"==typeof globalThis&&globalThis)||Pe("object"==typeof window&&window)||Pe("object"==typeof self&&self)||Pe("object"==typeof Be&&Be)||function(){return this}()||Function("return this")(),Ie=Function.prototype,Ne=Ie.apply,Le=Ie.bind,Re=Ie.call,Me="object"==typeof Reflect&&Reflect.apply||(Le?Re.bind(Ne):function(){return Re.apply(Ne,arguments)}),ze=Function.prototype,$e=ze.bind,He=ze.call,Ve=$e&&$e.bind(He),Ue=$e?function(e){return e&&Ve(He,e)}:function(e){return e&&function(){return He.apply(e,arguments)}},We=function(e){return"function"==typeof e},Ge=function(e){try{return!!e()}catch(t){return!0}},qe=!Ge((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ke=Function.prototype.call,Xe=Ke.bind?Ke.bind(Ke):function(){return Ke.apply(Ke,arguments)},Ye={}.propertyIsEnumerable,Ze=Object.getOwnPropertyDescriptor,Je=Ze&&!Ye.call({1:2},1)?function(e){var t=Ze(this,e);return!!t&&t.enumerable}:Ye,Qe={f:Je},et=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tt=Ue({}.toString),nt=Ue("".slice),rt=function(e){return nt(tt(e),8,-1)},ot=je.Object,it=Ue("".split),at=Ge((function(){return!ot("z").propertyIsEnumerable(0)}))?function(e){return"String"==rt(e)?it(e,""):ot(e)}:ot,ut=je.TypeError,st=function(e){if(null==e)throw ut("Can't call method on "+e);return e},lt=function(e){return at(st(e))},ct=function(e){return"object"==typeof e?null!==e:We(e)},ft={},dt=function(e){return We(e)?e:void 0},pt=function(e,t){return arguments.length<2?dt(ft[e])||dt(je[e]):ft[e]&&ft[e][t]||je[e]&&je[e][t]},ht=Ue({}.isPrototypeOf),vt=pt("navigator","userAgent")||"",gt=je.process,yt=je.Deno,mt=gt&&gt.versions||yt&&yt.version,bt=mt&&mt.v8;bt&&(Te=(Fe=bt.split("."))[0]>0&&Fe[0]<4?1:+(Fe[0]+Fe[1])),!Te&&vt&&(!(Fe=vt.match(/Edge\/(\d+)/))||Fe[1]>=74)&&(Fe=vt.match(/Chrome\/(\d+)/))&&(Te=+Fe[1]);var wt,Et,xt=Te,Ct=!!Object.getOwnPropertySymbols&&!Ge((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xt&&xt<41})),Dt=Ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=je.Object,At=Dt?function(e){return"symbol"==typeof e}:function(e){var t=pt("Symbol");return We(t)&&ht(t.prototype,St(e))},Ot=je.String,kt=function(e){try{return Ot(e)}catch(t){return"Object"}},Bt=je.TypeError,_t=function(e){if(We(e))return e;throw Bt(kt(e)+" is not a function")},Ft=function(e,t){var n=e[t];return null==n?void 0:_t(n)},Tt=je.TypeError,Pt=Object.defineProperty,jt=je["__core-js_shared__"]||function(e,t){try{Pt(je,e,{value:t,configurable:!0,writable:!0})}catch(Oj){je[e]=t}return t}("__core-js_shared__",{}),It=_e((function(e){(e.exports=function(e,t){return jt[e]||(jt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Nt=je.Object,Lt=function(e){return Nt(st(e))},Rt=Ue({}.hasOwnProperty),Mt=Object.hasOwn||function(e,t){return Rt(Lt(e),t)},zt=0,$t=Math.random(),Ht=Ue(1..toString),Vt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ht(++zt+$t,36)},Ut=It("wks"),Wt=je.Symbol,Gt=Wt&&Wt.for,qt=Dt?Wt:Wt&&Wt.withoutSetter||Vt,Kt=function(e){if(!Mt(Ut,e)||!Ct&&"string"!=typeof Ut[e]){var t="Symbol."+e;Ct&&Mt(Wt,e)?Ut[e]=Wt[e]:Ut[e]=Dt&&Gt?Gt(t):qt(t)}return Ut[e]},Xt=je.TypeError,Yt=Kt("toPrimitive"),Zt=function(e){var t=function(e,t){if(!ct(e)||At(e))return e;var n,r=Ft(e,Yt);
vendor: 27,066 bytes, line 1
1if(r){if(n=Xe(r,e,t),!ct(n)||At(n))return n;throw Xt("Can't convert object to primitive value")}return function(e,t){var n,r;if(We(n=e.toString)&&!ct(r=Xe(n,e)))return r;if(We(n=e.valueOf)&&!ct(r=Xe(n,e)))return r;throw Tt("Can't convert object to primitive value")}(e)}(e,"string");return At(t)?t:t+""},Jt=je.document,Qt=ct(Jt)&&ct(Jt.createElement),en=function(e){return Qt?Jt.createElement(e):{}},tn=!qe&&!Ge((function(){return 7!=Object.defineProperty(en("div"),"a",{get:function(){return 7}}).a})),nn=Object.getOwnPropertyDescriptor,rn=qe?nn:function(e,t){if(e=lt(e),t=Zt(t),tn)try{return nn(e,t)}catch(n){}if(Mt(e,t))return et(!Xe(Qe.f,e,t),e[t])},on={f:rn},an=/#|\.prototype\./,un=function(e,t){var n=ln[sn(e)];return n==fn||n!=cn&&(We(t)?Ge(t):!!t)},sn=un.normalize=function(e){return String(e).replace(an,".").toLowerCase()},ln=un.data={},cn=un.NATIVE="N",fn=un.POLYFILL="P",dn=un,pn=Ue(Ue.bind),hn=function(e,t){return _t(e),void 0===t?e:pn?pn(e,t):function(){return e.apply(t,arguments)}},vn=je.String,gn=je.TypeError,yn=function(e){if(ct(e))return e;throw gn(vn(e)+" is not an object")},mn=je.TypeError,bn=Object.defineProperty,wn=qe?bn:function(e,t,n){if(yn(e),t=Zt(t),yn(n),tn)try{return bn(e,t,n)}catch(r){}if("get"in n||"set"in n)throw mn("Accessors not supported");return"value"in n&&(e[t]=n.value),e},En={f:wn},xn=qe?function(e,t,n){return En.f(e,t,et(1,n))}:function(e,t,n){return e[t]=n,e},Cn=on.f,Dn=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 Me(e,this,arguments)};return t.prototype=e.prototype,t},Sn=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?je:d?je[c]:(je[c]||{}).prototype,v=f?ft:ft[c]||xn(ft,c,{})[c],g=v.prototype;for(o in t)n=!dn(f?o:c+(d?".":"#")+o,e.forced)&&h&&Mt(h,o),a=v[o],n&&(u=e.noTargetGet?(l=Cn(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?hn(i,je):e.wrap&&n?Dn(i):p&&We(i)?Ue(i):i,(e.sham||i&&i.sham||a&&a.sham)&&xn(s,"sham",!0),xn(v,o,s),p&&(Mt(ft,r=c+"Prototype")||xn(ft,r,{}),xn(ft[r],o,i),e.real&&g&&!g[o]&&xn(g,o,i)))},An=It("keys"),On=function(e){return An[e]||(An[e]=Vt(e))},kn=!Ge((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Bn=On("IE_PROTO"),_n=je.Object,Fn=_n.prototype,Tn=kn?_n.getPrototypeOf:function(e){var t=Lt(e);if(Mt(t,Bn))return t[Bn];var n=t.constructor;return We(n)&&t instanceof n?n.prototype:t instanceof _n?Fn:null},Pn=je.String,jn=je.TypeError,In=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ue(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return yn(n),function(e){if("object"==typeof e||We(e))return e;throw jn("Can't set "+Pn(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Nn=Math.ceil,Ln=Math.floor,Rn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ln:Nn)(t)},Mn=Math.max,zn=Math.min,$n=function(e,t){var n=Rn(e);return n<0?Mn(n+t,0):zn(n,t)},Hn=Math.min,Vn=function(e){return(t=e.length)>0?Hn(Rn(t),9007199254740991):0;var t},Un={indexOf:(Et=!1,function(e,t,n){var r,o=lt(e),i=Vn(o),a=$n(n,i);if(Et&&t!=t){for(;i>a;)if((r=o[a++])!=r)return!0}else for(;i>a;a++)if((Et||a in o)&&o[a]===t)return Et||a||0;return!Et&&-1})},Wn={},Gn=Un.indexOf,qn=Ue([].push),Kn=function(e,t){var n,r=lt(e),o=0,i=[];for(n in r)!Mt(Wn,n)&&Mt(r,n)&&qn(i,n);for(;t.length>o;)Mt(r,n=t[o++])&&(~Gn(i,n)||qn(i,n));return i},Xn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yn=Xn.concat("length","prototype"),Zn=Object.getOwnPropertyNames||function(e){return Kn(e,Yn)},Jn={f:Zn},Qn={f:Object.getOwnPropertySymbols},er=Ue([].concat),tr=pt("Reflect","ownKeys")||function(e){var t=Jn.f(yn(e)),n=Qn.f;return n?er(t,n(e)):t},nr=Object.keys||function(e){return Kn(e,Xn)},rr=qe?Object.defineProperties:function(e,t){yn(e);for(var n,r=lt(t),o=nr(t),i=o.length,a=0;i>a;)En.f(e,n=o[a++],r[n]);return e},or=pt("document","documentElement"),ir=On("IE_PROTO"),ar=function(){},ur=function(e){return"<script>"+e+"<\/script>"},sr=function(e){e.write(ur("")),e.close();var t=e.parentWindow.Object;return e=null,t},lr=function(){try{wt=new ActiveXObject("htmlfile")}catch(r){}var e,t;lr="undefined"!=typeof document?document.domain&&wt?sr(wt):((t=en("iframe")).style.display="none",or.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ur("document.F=Object")),e.close(),e.F):sr(wt);for(var n=Xn.length;n--;)delete lr.prototype[Xn[n]];return lr()};Wn[ir]=!0;var cr=Object.create||function(e,t){var n;return null!==e?(ar.prototype=yn(e),n=new ar,ar.prototype=null,n[ir]=e):n=lr(),void 0===t?n:rr(n,t)},fr=function(e,t,n){var r=Zt(t);r in e?En.f(e,r,et(0,n)):e[r]=n},dr=je.Array,pr=Math.max,hr=function(e,t,n){for(var r=Vn(e),o=$n(t,r),i=$n(r,r),a=dr(pr(i-o,0)),u=0;o<i;o++,u++)fr(a,u,e[o]);return a.length=u,a},vr=Ue("".replace),gr=Ue("".split),yr=Ue([].join),mr=String(Error("zxcasd").stack),br=/\n\s*at [^:]*:[^\n]*/,wr=br.test(mr),Er=/@[^\n]*\n/.test(mr)&&!/zxcasd/.test(mr),xr=function(e,t){if("string"!=typeof e)return e;if(wr)for(;t--;)e=vr(e,br,"");else if(Er)return yr(hr(gr(e,"\n"),t),"\n");return e},Cr=function(e,t){ct(t)&&"cause"in t&&xn(e,"cause",t.cause)},Dr={},Sr=Kt("iterator"),Ar=Array.prototype,Or={};Or[Kt("toStringTag")]="z";var kr="[object z]"===String(Or),Br=Kt("toStringTag"),_r=je.Object,Fr="Arguments"==rt(function(){return arguments}()),Tr=kr?rt: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(n){}}(t=_r(e),Br))?n:Fr?rt(t):"Object"==(r=rt(t))&&We(t.callee)?"Arguments":r},Pr=Kt("iterator"),jr=function(e){if(null!=e)return Ft(e,Pr)||Ft(e,"@@iterator")||Dr[Tr(e)]},Ir=je.TypeError,Nr=function(e,t,n){var r,o;yn(e);try{if(!(r=Ft(e,"return"))){if("throw"===t)throw n;return n}r=Xe(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return yn(r),n},Lr=je.TypeError,Rr=function(e,t){this.stopped=e,this.result=t},Mr=Rr.prototype,zr=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),v=hn(t,f),g=function(e){return r&&Nr(r,"normal",e),new Rr(!0,e)},y=function(e){return d?(yn(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=jr(e)))throw Lr(kt(e)+" is not iterable");if(void 0!==(c=o)&&(Dr.Array===c||Ar[Sr]===c)){for(i=0,a=Vn(e);a>i;i++)if((u=y(e[i]))&&ht(Mr,u))return u;return new Rr(!1)}r=function(e,t){var n=arguments.length<2?jr(e):t;if(_t(n))return yn(Xe(n,e));throw Ir(kt(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Xe(s,r)).done;){try{u=y(l.value)}catch(c){Nr(r,"throw",c)}if("object"==typeof u&&u&&ht(Mr,u))return u}return new Rr(!1)},$r=je.String,Hr=function(e){if("Symbol"===Tr(e))throw TypeError("Cannot convert a Symbol value to a string");return $r(e)},Vr=function(e,t){return void 0===e?arguments.length<2?"":t:Hr(e)},Ur=!Ge((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",et(1,7)),7!==e.stack)})),Wr=Kt("toStringTag"),Gr=je.Error,qr=[].push,Kr=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ht(Xr,this);In?n=In(new Gr(void 0),o?Tn(this):Xr):(n=o?this:cr(Xr),xn(n,Wr,"Error")),xn(n,"message",Vr(t,"")),Ur&&xn(n,"stack",xr(n.stack,1)),Cr(n,r);var i=[];return zr(e,qr,{that:i}),xn(n,"errors",i),n};In?In(Kr,Gr):function(e,t){for(var n=tr(t),r=En.f,o=on.f,i=0;i<n.length;i++){var a=n[i];Mt(e,a)||r(e,a,o(t,a))}}(Kr,Gr);var Xr=Kr.prototype=cr(Gr.prototype,{constructor:et(1,Kr),message:et(1,""),name:et(1,"AggregateError")});Sn({global:!0},{AggregateError:Kr});var Yr=Ue(Function.toString);We(jt.inspectSource)||(jt.inspectSource=function(e){return Yr(e)});var Zr,Jr,Qr,eo=jt.inspectSource,to=je.WeakMap,no=We(to)&&/native code/.test(eo(to)),ro=je.TypeError,oo=je.WeakMap;if(no||jt.state){var io=jt.state||(jt.state=new oo),ao=Ue(io.get),uo=Ue(io.has),so=Ue(io.set);Zr=function(e,t){if(uo(io,e))throw new ro("Object already initialized");return t.facade=e,so(io,e,t),t},Jr=function(e){return ao(io,e)||{}},Qr=function(e){return uo(io,e)}}else{var lo=On("state");Wn[lo]=!0,Zr=function(e,t){if(Mt(e,lo))throw new ro("Object already initialized");return t.facade=e,xn(e,lo,t),t},Jr=function(e){return Mt(e,lo)?e[lo]:{}},Qr=function(e){return Mt(e,lo)}}var co,fo,po,ho={set:Zr,get:Jr,has:Qr,enforce:function(e){return Qr(e)?Jr(e):Zr(e,{})},getterFor:function(e){return function(t){var n;if(!ct(t)||(n=Jr(t)).type!==e)throw ro("Incompatible receiver, "+e+" required");return n}}},vo=Function.prototype,go=qe&&Object.getOwnPropertyDescriptor,yo=Mt(vo,"name"),mo={PROPER:yo&&"something"===function(){}.name,CONFIGURABLE:yo&&(!qe||qe&&go(vo,"name").configurable)},bo=function(e,t,n,r){xn(e,t,n)},wo=Kt("iterator"),Eo=!1;[].keys&&("next"in(po=[].keys())?(fo=Tn(Tn(po)))!==Object.prototype&&(co=fo):Eo=!0);var xo=null==co||Ge((function(){var e={};return co[wo].call(e)!==e}));co=xo?{}:cr(co),We(co[wo])||bo(co,wo,(function(){return this}));var Co={IteratorPrototype:co,BUGGY_SAFARI_ITERATORS:Eo},Do=kr?{}.toString:function(){return"[object "+Tr(this)+"]"},So=En.f,Ao=Kt("toStringTag"),Oo=function(e,t,n,r){if(e){var o=n?e:e.prototype;Mt(o,Ao)||So(o,Ao,{configurable:!0,value:t}),r&&!kr&&xn(o,"toString",Do)}},ko=Co.IteratorPrototype,Bo=function(){return this},_o=mo.PROPER,Fo=Co.BUGGY_SAFARI_ITERATORS,To=Kt("iterator"),Po=function(){return this},jo=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=cr(ko,{next:et(1,s)}),Oo(u,l,!1,!0),Dr[l]=Bo;var c,f,d=function(e){if(e===o&&y)return y;if(!Fo&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,v=e.prototype,g=v[To]||v["@@iterator"]||o&&v[o],y=!Fo&&g||d(o),m="Array"==t&&v.entries||g;return m&&(c=Tn(m.call(new e)))!==Object.prototype&&c.next&&(Oo(c,p,!0,!0),Dr[p]=Po),_o&&"values"==o&&g&&"values"!==g.name&&(h=!0,y=function(){return Xe(g,this)}),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||Sn({target:t,proto:!0,forced:Fo||h},f)),Dr[t]=y,f},Io=ho.set,No=ho.getterFor("Array Iterator");jo(Array,"Array",(function(e,t){Io(this,{type:"Array Iterator",target:lt(e),index:0,kind:t})}),(function(){var e=No(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"),Dr.Arguments=Dr.Array;var Lo=Ue("".charAt),Ro=Ue("".charCodeAt),Mo=Ue("".slice),zo=function(e){return function(t,n){var r,o,i=Hr(st(t)),a=Rn(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ro(i,a))<55296||r>56319||a+1===u||(o=Ro(i,a+1))<56320||o>57343?e?Lo(i,a):r:e?Mo(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),$o=ho.set,Ho=ho.getterFor("String Iterator");jo(String,"String",(function(e){$o(this,{type:"String Iterator",string:Hr(e),index:0})}),(function(){var e,t=Ho(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=zo(n,r),t.index+=e.length,{value:e,done:!1})}));var Vo=ft.AggregateError,Uo=Kt("toStringTag");for(var Wo 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 Go=je[Wo],qo=Go&&Go.prototype;qo&&Tr(qo)!==Uo&&xn(qo,Uo,Wo),Dr[Wo]=Dr.Array}var Ko,Xo,Yo=Vo,Zo=function(e){return e&&e.Math==Math&&e},Jo=Zo("object"==typeof globalThis&&globalThis)||Zo("object"==typeof window&&window)||Zo("object"==typeof self&&self)||Zo("object"==typeof Be&&Be)||function(){return this}()||Function("return this")(),Qo=function(e){try{return!!e()}catch(t){return!0}},ei=!Qo((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ti=Function.prototype.call,ni=ti.bind?ti.bind(ti):function(){return ti.apply(ti,arguments)},ri={}.propertyIsEnumerable,oi=Object.getOwnPropertyDescriptor,ii=oi&&!ri.call({1:2},1)?function(e){var t=oi(this,e);return!!t&&t.enumerable}:ri,ai={f:ii},ui=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},si=Function.prototype,li=si.bind,ci=si.call,fi=li&&li.bind(ci),di=li?function(e){return e&&fi(ci,e)}:function(e){return e&&function(){return ci.apply(e,arguments)}},pi=di({}.toString),hi=di("".slice),vi=function(e){return hi(pi(e),8,-1)},gi=Jo.Object,yi=di("".split),mi=Qo((function(){return!gi("z").propertyIsEnumerable(0)}))?function(e){return"String"==vi(e)?yi(e,""):gi(e)}:gi,bi=Jo.TypeError,wi=function(e){if(null==e)throw bi("Can't call method on "+e);return e},Ei=function(e){return mi(wi(e))},xi=function(e){return"function"==typeof e},Ci=function(e){return"object"==typeof e?null!==e:xi(e)},Di=function(e){return xi(e)?e:void 0},Si=function(e,t){return arguments.length<2?Di(Jo[e]):Jo[e]&&Jo[e][t]},Ai=di({}.isPrototypeOf),Oi=Si("navigator","userAgent")||"",ki=Jo.process,Bi=Jo.Deno,_i=ki&&ki.versions||Bi&&Bi.version,Fi=_i&&_i.v8;Fi&&(Xo=(Ko=Fi.split("."))[0]>0&&Ko[0]<4?1:+(Ko[0]+Ko[1])),!Xo&&Oi&&(!(Ko=Oi.match(/Edge\/(\d+)/))||Ko[1]>=74)&&(Ko=Oi.match(/Chrome\/(\d+)/))&&(Xo=+Ko[1]);var Ti=Xo,Pi=!!Object.getOwnPropertySymbols&&!Qo((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ti&&Ti<41})),ji=Pi&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ii=Jo.Object,Ni=ji?function(e){return"symbol"==typeof e}:function(e){var t=Si("Symbol");return xi(t)&&Ai(t.prototype,Ii(e))},Li=Jo.String,Ri=function(e){try{return Li(e)}catch(t){return"Object"}},Mi=Jo.TypeError,zi=function(e){if(xi(e))return e;throw Mi(Ri(e)+" is not a function")},$i=function(e,t){var n=e[t];return null==n?void 0:zi(n)},Hi=Jo.TypeError,Vi=Object.defineProperty,Ui=function(e,t){try{Vi(Jo,e,{value:t,configurable:!0,writable:!0})}catch(Oj){Jo[e]=t}return t},Wi=Jo["__core-js_shared__"]||Ui("__core-js_shared__",{}),Gi=_e((function(e){(e.exports=function(e,t){return Wi[e]||(Wi[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),qi=Jo.Object,Ki=function(e){return qi(wi(e))},Xi=di({}.hasOwnProperty),Yi=Object.hasOwn||function(e,t){return Xi(Ki(e),t)},Zi=0,Ji=Math.random(),Qi=di(1..toString),ea=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qi(++Zi+Ji,36)},ta=Gi("wks"),na=Jo.Symbol,ra=na&&na.for,oa=ji?na:na&&na.withoutSetter||ea,ia=function(e){if(!Yi(ta,e)||!Pi&&"string"!=typeof ta[e]){var t="Symbol."+e;Pi&&Yi(na,e)?ta[e]=na[e]:ta[e]=ji&&ra?ra(t):oa(t)}return ta[e]},aa=Jo.TypeError,ua=ia("toPrimitive"),sa=function(e){var t=function(e,t){if(!Ci(e)||Ni(e))return e;var n,r=$i(e,ua);if(r){if(n=ni(r,e,t),!Ci(n)||Ni(n))return n;throw aa("Can't convert object to primitive value")}return function(e,t){var n,r;if(xi(n=e.toString)&&!Ci(r=ni(n,e)))return r;if(xi(n=e.valueOf)&&!Ci(r=ni(n,e)))return r;throw Hi("Can't convert object to primitive value")}(e)}(e,"string");return Ni(t)?t:t+""},la=Jo.document,ca=Ci(la)&&Ci(la.createElement),fa=function(e){return ca?la.createElement(e):{}},da=!ei&&!Qo((function(){return 7!=Object.defineProperty(fa("div"),"a",{get:function(){return 7}}).a})),pa=Object.getOwnPropertyDescriptor,ha=ei?pa:function(e,t){if(e=Ei(e),t=sa(t),da)try{return pa(e,t)}catch(n){}if(Yi(e,t))return ui(!ni(ai.f,e,t),e[t])},va={f:ha},ga=Jo.String,ya=Jo.TypeError,ma=function(e){if(Ci(e))return e;throw ya(ga(e)+" is not an object")},ba=Jo.TypeError,wa=Object.defineProperty,Ea=ei?wa:function(e,t,n){if(ma(e),t=sa(t),ma(n),da)try{return wa(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ba("Accessors not supported");return"value"in n&&(e[t]=n.value),e},xa={f:Ea},Ca=ei?function(e,t,n){return xa.f(e,t,ui(1,n))}:function(e,t,n){return e[t]=n,e},Da=di(Function.toString);xi(Wi.inspectSource)||(Wi.inspectSource=function(e){return Da(e)});var Sa,Aa,Oa,ka=Wi.inspectSource,Ba=Jo.WeakMap,_a=xi(Ba)&&/native code/.test(ka(Ba)),Fa=Gi("keys"),Ta=function(e){return Fa[e]||(Fa[e]=ea(e))},Pa={},ja=Jo.TypeError,Ia=Jo.WeakMap;if(_a||Wi.state){var Na=Wi.state||(Wi.state=new Ia),La=di(Na.get),Ra=di(Na.has),Ma=di(Na.set);Sa=function(e,t){if(Ra(Na,e))throw new ja("Object already initialized");return t.facade=e,Ma(Na,e,t),t},Aa=function(e){return La(Na,e)||{}},Oa=function(e){return Ra(Na,e)}}else{var za=Ta("state");Pa[za]=!0,Sa=function(e,t){if(Yi(e,za))throw new ja("Object already initialized");return t.facade=e,Ca(e,za,t),t},Aa=function(e){return Yi(e,za)?e[za]:{}},Oa=function(e){return Yi(e,za)}}var $a={set:Sa,get:Aa,has:Oa,enforce:function(e){return Oa(e)?Aa(e):Sa(e,{})},getterFor:function(e){return function(t){var n;if(!Ci(t)||(n=Aa(t)).type!==e)throw ja("Incompatible receiver, "+e+" required");return n}}},Ha=Function.prototype,Va=ei&&Object.getOwnPropertyDescriptor,Ua=Yi(Ha,"name"),Wa={PROPER:Ua&&"something"===function(){}.name,CONFIGURABLE:Ua&&(!ei||ei&&Va(Ha,"name").configurable)},Ga=_e((function(e){var t=Wa.CONFIGURABLE,n=$a.get,r=$a.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;xi(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Yi(i,"name")||t&&i.name!==f)&&Ca(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Jo?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ca(e,n,i)):l?e[n]=i:Ui(n,i)})(Function.prototype,"toString",(function(){return xi(this)&&n(this).source||ka(this)}))})),qa=Math.ceil,Ka=Math.floor,Xa=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ka:qa)(t)},Ya=Math.max,Za=Math.min,Ja=function(e,t){var n=Xa(e);return n<0?Ya(n+t,0):Za(n,t)},Qa=Math.min,eu=function(e){return e>0?Qa(Xa(e),9007199254740991):0},tu=function(e){return eu(e.length)},nu=function(e){return function(t,n,r){var o,i=Ei(t),a=tu(i),u=Ja(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}}(!1),ru=di([].push),ou=function(e,t){var n,r=Ei(e),o=0,i=[];for(n in r)!Yi(Pa,n)&&Yi(r,n)&&ru(i,n);for(;t.length>o;)Yi(r,n=t[o++])&&(~nu(i,n)||ru(i,n));return i},iu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],au=iu.concat("length","prototype"),uu=Object.getOwnPropertyNames||function(e){return ou(e,au)},su={f:uu},lu={f:Object.getOwnPropertySymbols},cu=di([].concat),fu=Si("Reflect","ownKeys")||function(e){var t=su.f(ma(e)),n=lu.f;return n?cu(t,n(e)):t},du=function(e,t){for(var n=fu(t),r=xa.f,o=va.f,i=0;i<n.length;i++){var a=n[i];Yi(e,a)||r(e,a,o(t,a))}},pu=/#|\.prototype\./,hu=function(e,t){var n=gu[vu(e)];return n==mu||n!=yu&&(xi(t)?Qo(t):!!t)},vu=hu.normalize=function(e){return String(e).replace(pu,".").toLowerCase()},gu=hu.data={},yu=hu.NATIVE="N",mu=hu.POLYFILL="P",bu=hu,wu=va.f,Eu=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Jo:l?Jo[u]||Ui(u,{}):(Jo[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=wu(n,r))&&a.value:n[r],!bu(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;du(i,o)}(e.sham||o&&o.sham)&&Ca(i,"sham",!0),Ga(n,r,i,e)}},xu={};xu[ia("toStringTag")]="z";var Cu,Du="[object z]"===String(xu),Su=ia("toStringTag"),Au=Jo.Object,Ou="Arguments"==vi(function(){return arguments}()),ku=Du?vi: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(n){}}(t=Au(e),Su))?n:Ou?vi(t):"Object"==(r=vi(t))&&xi(t.callee)?"Arguments":r},Bu=Jo.String,_u=function(e){if("Symbol"===ku(e))throw TypeError("Cannot convert a Symbol value to a string");return Bu(e)},Fu=function(){var e=ma(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},Tu=Jo.RegExp,Pu=Qo((function(){var e=Tu("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));Pu||Qo((function(){return!Tu("a","y").sticky}));var ju=Pu||Qo((function(){var e=Tu("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Iu={BROKEN_CARET:ju},Nu=Object.keys||function(e){return ou(e,iu)},Lu=ei?Object.defineProperties:function(e,t){ma(e);for(var n,r=Ei(t),o=Nu(t),i=o.length,a=0;i>a;)xa.f(e,n=o[a++],r[n]);return e},Ru=Si("document","documentElement"),Mu=Ta("IE_PROTO"),zu=function(){},$u=function(e){return"<script>"+e+"<\/script>"},Hu=function(e){e.write($u("")),e.close();var t=e.parentWindow.Object;return e=null,t},Vu=function(){try{Cu=new ActiveXObject("htmlfile")}catch(r){}var e,t;Vu="undefined"!=typeof document?document.domain&&Cu?Hu(Cu):((t=fa("iframe")).style.display="none",Ru.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($u("document.F=Object")),e.close(),e.F):Hu(Cu);for(var n=iu.length;n--;)delete Vu.prototype[iu[n]];return Vu()};Pa[Mu]=!0;var Uu,Wu,Gu=Object.create||function(e,t){var n;return null!==e?(zu.prototype=ma(e),n=new zu,zu.prototype=null,n[Mu]=e):n=Vu(),void 0===t?n:Lu(n,t)},qu=Jo.RegExp,Ku=Qo((function(){var e=qu(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Xu=Jo.RegExp,Yu=Qo((function(){var e=Xu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Zu=$a.get,Ju=Gi("native-string-replace",String.prototype.replace),Qu=RegExp.prototype.exec,es=Qu,ts=di("".charAt),ns=di("".indexOf),rs=di("".replace),os=di("".slice),is=(Wu=/b*/g,ni(Qu,Uu=/a/,"a"),ni(Qu,Wu,"a"),0!==Uu.lastIndex||0!==Wu.lastIndex),as=Iu.BROKEN_CARET,us=void 0!==/()??/.exec("")[1];(is||us||as||Ku||Yu)&&(es=function(e){var t,n,r,o,i,a,u,s=this,l=Zu(s),c=_u(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ni(es,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=as&&s.sticky,h=ni(Fu,s),v=s.source,g=0,y=c;if(p&&(h=rs(h,"y",""),-1===ns(h,"g")&&(h+="g"),y=os(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ts(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),us&&(n=new RegExp("^"+v+"$(?!\\s)",h)),is&&(r=s.lastIndex),o=ni(Qu,p?n:s,y),p?o?(o.input=os(o.input,g),o[0]=os(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:is&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),us&&o&&o.length>1&&ni(Ju,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=Gu(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ss=es;Eu({target:"RegExp",proto:!0,forced:/./.exec!==ss},{exec:ss});ia("species");var ls=RegExp.prototype,cs=di("".charAt),fs=di("".charCodeAt),ds=di("".slice),ps={charAt:function(e){return function(t,n){var r,o,i=_u(wi(t)),a=Xa(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=fs(i,a))<55296||r>56319||a+1===u||(o=fs(i,a+1))<56320||o>57343?e?cs(i,a):r:e?ds(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},hs=ps.charAt,vs=function(e,t,n){return t+(n?hs(e,t).length:1)},gs=Jo.TypeError,ys=function(e,t){var n=e.exec;if(xi(n)){var r=ni(n,e,t);return null!==r&&ma(r),r}if("RegExp"===vi(e))return ni(ss,e,t);throw gs("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=ia(e),i=!Qo((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Qo((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=di(/./[o]),s=function(e,t,n){return[function(t){var n=wi(this),r=null==t?void 0:$i(t,e);return r?ni(r,t,n):new RegExp(t)[e](_u(n))},function(e){var r=ma(this),o=_u(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return ys(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=ys(r,o));){var c=_u(u[0]);s[l]=c,""===c&&(r.lastIndex=vs(o,eu(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=di(e),s=t.exec;return s===ss||s===ls.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Ga(String.prototype,e,s[0]),Ga(ls,o,s[1])}}("match"),Eu({global:!0},{globalThis:Jo});var ms=!Qo((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bs=Ta("IE_PROTO"),ws=Jo.Object,Es=ws.prototype,xs=ms?ws.getPrototypeOf:function(e){var t=Ki(e);if(Yi(t,bs))return t[bs];var n=t.constructor;return xi(n)&&t instanceof n?n.prototype:t instanceof ws?Es:null},Cs=Jo.String,Ds=Jo.TypeError,Ss=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=di(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return ma(n),function(e){if("object"==typeof e||xi(e))return e;throw Ds("Can't set "+Cs(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),As=Jo.Array,Os=Math.max,ks=di("".replace),Bs=di("".split),_s=di([].join),Fs=String(Error("zxcasd").stack),Ts=/\n\s*at [^:]*:[^\n]*/,Ps=Ts.test(Fs),js=/@[^\n]*\n/.test(Fs)&&!/zxcasd/.test(Fs),Is=function(e,t){if("string"!=typeof e)return e;if(Ps)for(;t--;)e=ks(e,Ts,"");else if(js)return _s(function(e,t,n){for(var r,o,i,a,u=tu(e),s=Ja(t,u),l=Ja(u,u),c=As(Os(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=sa(o))in r?xa.f(r,a,ui(0,i)):r[a]=i;return c.length=f,c}(Bs(e,"\n"),t),"\n");return e},Ns=function(e,t){Ci(t)&&"cause"in t&&Ca(e,"cause",t.cause)},Ls=di(di.bind),Rs=function(e,t){return zi(e),void 0===t?e:Ls?Ls(e,t):function(){return e.apply(t,arguments)}},Ms={},zs=ia("iterator"),$s=Array.prototype,Hs=ia("iterator"),Vs=function(e){if(null!=e)return $i(e,Hs)||$i(e,"@@iterator")||Ms[ku(e)]},Us=Jo.TypeError,Ws=function(e,t,n){var r,o;ma(e);try{if(!(r=$i(e,"return"))){if("throw"===t)throw n;return n}r=ni(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return ma(r),n},Gs=Jo.TypeError,qs=function(e,t){this.stopped=e,this.result=t},Ks=qs.prototype,Xs=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),v=Rs(t,f),g=function(e){return r&&Ws(r,"normal",e),new qs(!0,e)},y=function(e){return d?(ma(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=Vs(e)))throw Gs(Ri(e)+" is not iterable");if(void 0!==(c=o)&&(Ms.Array===c||$s[zs]===c)){for(i=0,a=tu(e);a>i;i++)if((u=y(e[i]))&&Ai(Ks,u))return u;return new qs(!1)}r=function(e,t){var n=arguments.length<2?Vs(e):t;if(zi(n))return ma(ni(n,e));throw Us(Ri(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=ni(s,r)).done;){try{u=y(l.value)}catch(c){Ws(r,"throw",c)}if("object"==typeof u&&u&&Ai(Ks,u))return u}return new qs(!1)},Ys=function(e,t){return void 0===e?arguments.length<2?"":t:_u(e)},Zs=!Qo((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ui(1,7)),7!==e.stack)})),Js=ia("toStringTag"),Qs=Jo.Error,el=[].push,tl=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Ai(nl,this);Ss?n=Ss(new Qs(void 0),o?xs(this):nl):(n=o?this:Gu(nl),Ca(n,Js,"Error")),Ca(n,"message",Ys(t,"")),Zs&&Ca(n,"stack",Is(n.stack,
11)),Ns(n,r);var i=[];return Xs(e,el,{that:i}),Ca(n,"errors",i),n};Ss?Ss(tl,Qs):du(tl,Qs);var nl=tl.prototype=Gu(Qs.prototype,{constructor:ui(1,tl),message:ui(1,""),name:ui(1,"AggregateError")});Eu({global:!0},{AggregateError:tl});var rl=ia("unscopables"),ol=Array.prototype;null==ol[rl]&&xa.f(ol,rl,{configurable:!0,value:Gu(null)});var il,al,ul,sl=function(e){ol[rl][e]=!0},ll=ia("iterator"),cl=!1;[].keys&&("next"in(ul=[].keys())?(al=xs(xs(ul)))!==Object.prototype&&(il=al):cl=!0);var fl=null==il||Qo((function(){var e={};return il[ll].call(e)!==e}));fl&&(il={}),xi(il[ll])||Ga(il,ll,(function(){return this}));var dl={IteratorPrototype:il,BUGGY_SAFARI_ITERATORS:cl},pl=xa.f,hl=ia("toStringTag"),vl=function(e,t,n){e&&!Yi(e=n?e:e.prototype,hl)&&pl(e,hl,{configurable:!0,value:t})},gl=dl.IteratorPrototype,yl=function(){return this},ml=Wa.PROPER,bl=Wa.CONFIGURABLE,wl=dl.IteratorPrototype,El=dl.BUGGY_SAFARI_ITERATORS,xl=ia("iterator"),Cl=function(){return this},Dl=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Gu(gl,{next:ui(1,s)}),vl(u,l,!1),Ms[l]=yl;var c,f,d=function(e){if(e===o&&y)return y;if(!El&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,v=e.prototype,g=v[xl]||v["@@iterator"]||o&&v[o],y=!El&&g||d(o),m="Array"==t&&v.entries||g;return m&&(c=xs(m.call(new e)))!==Object.prototype&&c.next&&(xs(c)!==wl&&(Ss?Ss(c,wl):xi(c[xl])||Ga(c,xl,Cl)),vl(c,p,!0)),ml&&"values"==o&&g&&"values"!==g.name&&(bl?Ca(v,"name","values"):(h=!0,y=function(){return ni(g,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||Eu({target:t,proto:!0,forced:El||h},f)),v[xl]!==y&&Ga(v,xl,y,{name:o}),Ms[t]=y,f},Sl=$a.set,Al=$a.getterFor("Array Iterator"),Ol=Dl(Array,"Array",(function(e,t){Sl(this,{type:"Array Iterator",target:Ei(e),index:0,kind:t})}),(function(){var e=Al(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");Ms.Arguments=Ms.Array,sl("keys"),sl("values"),sl("entries");var kl=ps.charAt,Bl=$a.set,_l=$a.getterFor("String Iterator");Dl(String,"String",(function(e){Bl(this,{type:"String Iterator",string:_u(e),index:0})}),(function(){var e,t=_l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=kl(n,r),t.index+=e.length,{value:e,done:!1})}));var Fl,Tl={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},Pl=fa("span").classList,jl=Pl&&Pl.constructor&&Pl.constructor.prototype,Il=jl===Object.prototype?void 0:jl,Nl=ia("iterator"),Ll=ia("toStringTag"),Rl=Ol.values,Ml=function(e,t){if(e){if(e[Nl]!==Rl)try{Ca(e,Nl,Rl)}catch(r){e[Nl]=Rl}if(e[Ll]||Ca(e,Ll,t),Tl[t])for(var n in Ol)if(e[n]!==Ol[n])try{Ca(e,n,Ol[n])}catch(r){e[n]=Ol[n]}}};for(var zl in Tl)Ml(Jo[zl]&&Jo[zl].prototype,zl);function $l(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Hl(){void 0===Yo&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Ml(Il,"DOMTokenList"),"undefined"==typeof global?(window,$l(),Hl()):global&&(null===(Fl=global.navigator)||void 0===Fl?void 0:Fl.userAgent.match("QQBrowser"))&&($l(),Hl());var Vl=Array.isArray||function(e){return"Array"==rt(e)},Ul=function(){},Wl=[],Gl=pt("Reflect","construct"),ql=/^\s*(?:class|function)\b/,Kl=Ue(ql.exec),Xl=!ql.exec(Ul),Yl=function(e){if(!We(e))return!1;
vendor: 20,279 bytes, lines 1-7
1try{return Gl(Ul,Wl,e),!0}catch(t){return!1}},Zl=!Gl||Ge((function(){var e;return Yl(Yl.call)||!Yl(Object)||!Yl((function(){e=!0}))||e}))?function(e){if(!We(e))return!1;switch(Tr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Xl||!!Kl(ql,eo(e))}:Yl,Jl=Kt("species"),Ql=je.Array,ec=function(e,t){return new(Vl(n=e)&&(r=n.constructor,(Zl(r)&&(r===Ql||Vl(r.prototype))||ct(r)&&null===(r=r[Jl]))&&(r=void 0)),void 0===r?Ql:r)(0===t?0:t);var n,r},tc=Kt("species"),nc=Kt("isConcatSpreadable"),rc=je.TypeError,oc=xt>=51||!Ge((function(){var e=[];return e[nc]=!1,e.concat()[0]!==e})),ic=("concat",xt>=51||!Ge((function(){var e=[];return(e.constructor={})[tc]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),ac=function(e){if(!ct(e))return!1;var t=e[nc];return void 0!==t?!!t:Vl(e)};Sn({target:"Array",proto:!0,forced:!oc||!ic},{concat:function(e){var t,n,r,o,i,a=Lt(this),u=ec(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(ac(i=-1===t?a:arguments[t])){if(s+(o=Vn(i))>9007199254740991)throw rc("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&fr(u,s,i[n])}else{if(s>=9007199254740991)throw rc("Maximum allowed index exceeded");fr(u,s++,i)}return u.length=s,u}});var uc=Jn.f,sc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lc={f:function(e){return sc&&"Window"==rt(e)?function(e){try{return uc(e)}catch(t){return hr(sc)}}(e):uc(lt(e))}},cc=Ue([].slice),fc={f:Kt},dc=En.f,pc=function(e){var t=ft.Symbol||(ft.Symbol={});Mt(t,e)||dc(t,e,{value:fc.f(e)})},hc=Ue([].push),vc=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=Lt(s),v=at(h),g=hn(l,c),y=Vn(v),m=0,b=f||ec,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:hc(w,d)}else switch(e){case 4:return!1;case 7:hc(w,d)}return i?-1:r||o?o:w}}(0),gc=On("hidden"),yc=Kt("toPrimitive"),mc=ho.set,bc=ho.getterFor("Symbol"),wc=Object.prototype,Ec=je.Symbol,xc=Ec&&Ec.prototype,Cc=je.TypeError,Dc=je.QObject,Sc=pt("JSON","stringify"),Ac=on.f,Oc=En.f,kc=lc.f,Bc=Qe.f,_c=Ue([].push),Fc=It("symbols"),Tc=It("op-symbols"),Pc=It("string-to-symbol-registry"),jc=It("symbol-to-string-registry"),Ic=It("wks"),Nc=!Dc||!Dc.prototype||!Dc.prototype.findChild,Lc=qe&&Ge((function(){return 7!=cr(Oc({},"a",{get:function(){return Oc(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Ac(wc,t);r&&delete wc[t],Oc(e,t,n),r&&e!==wc&&Oc(wc,t,r)}:Oc,Rc=function(e,t){var n=Fc[e]=cr(xc);return mc(n,{type:"Symbol",tag:e,description:t}),qe||(n.description=t),n},Mc=function(e,t,n){e===wc&&Mc(Tc,t,n),yn(e);var r=Zt(t);return yn(n),Mt(Fc,r)?(n.enumerable?(Mt(e,gc)&&e[gc][r]&&(e[gc][r]=!1),n=cr(n,{enumerable:et(0,!1)})):(Mt(e,gc)||Oc(e,gc,et(1,{})),e[gc][r]=!0),Lc(e,r,n)):Oc(e,r,n)},zc=function(e,t){yn(e);var n=lt(t),r=nr(n).concat(Uc(n));return vc(r,(function(t){qe&&!Xe($c,n,t)||Mc(e,t,n[t])})),e},$c=function(e){var t=Zt(e),n=Xe(Bc,this,t);return!(this===wc&&Mt(Fc,t)&&!Mt(Tc,t))&&(!(n||!Mt(this,t)||!Mt(Fc,t)||Mt(this,gc)&&this[gc][t])||n)},Hc=function(e,t){var n=lt(e),r=Zt(t);if(n!==wc||!Mt(Fc,r)||Mt(Tc,r)){var o=Ac(n,r);return!o||!Mt(Fc,r)||Mt(n,gc)&&n[gc][r]||(o.enumerable=!0),o}},Vc=function(e){var t=kc(lt(e)),n=[];return vc(t,(function(e){Mt(Fc,e)||Mt(Wn,e)||_c(n,e)})),n},Uc=function(e){var t=e===wc,n=kc(t?Tc:lt(e)),r=[];return vc(n,(function(e){!Mt(Fc,e)||t&&!Mt(wc,e)||_c(r,Fc[e])})),r};if(Ct||(xc=(Ec=function(){if(ht(xc,this))throw Cc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Hr(arguments[0]):void 0,t=Vt(e),n=function(e){this===wc&&Xe(n,Tc,e),Mt(this,gc)&&Mt(this[gc],t)&&(this[gc][t]=!1),Lc(this,t,et(1,e))};return qe&&Nc&&Lc(wc,t,{configurable:!0,set:n}),Rc(t,e)}).prototype,bo(xc,"toString",(function(){return bc(this).tag})),bo(Ec,"withoutSetter",(function(e){return Rc(Vt(e),e)})),Qe.f=$c,En.f=Mc,on.f=Hc,Jn.f=lc.f=Vc,Qn.f=Uc,fc.f=function(e){return Rc(Kt(e),e)},qe&&Oc(xc,"description",{configurable:!0,get:function(){return bc(this).description}})),Sn({global:!0,wrap:!0,forced:!Ct,sham:!Ct},{Symbol:Ec}),vc(nr(Ic),(function(e){pc(e)})),Sn({target:"Symbol",stat:!0,forced:!Ct},{for:function(e){var t=Hr(e);if(Mt(Pc,t))return Pc[t];var n=Ec(t);return Pc[t]=n,jc[n]=t,n},keyFor:function(e){if(!At(e))throw Cc(e+" is not a symbol");if(Mt(jc,e))return jc[e]},useSetter:function(){Nc=!0},useSimple:function(){Nc=!1}}),Sn({target:"Object",stat:!0,forced:!Ct,sham:!qe},{create:function(e,t){return void 0===t?cr(e):zc(cr(e),t)},defineProperty:Mc,defineProperties:zc,getOwnPropertyDescriptor:Hc}),Sn({target:"Object",stat:!0,forced:!Ct},{getOwnPropertyNames:Vc,getOwnPropertySymbols:Uc}),Sn({target:"Object",stat:!0,forced:Ge((function(){Qn.f(1)}))},{getOwnPropertySymbols:function(e){return Qn.f(Lt(e))}}),Sc){var Wc=!Ct||Ge((function(){var e=Ec();return"[null]"!=Sc([e])||"{}"!=Sc({a:e})||"{}"!=Sc(Object(e))}));Sn({target:"JSON",stat:!0,forced:Wc},{stringify:function(e,t,n){var r=cc(arguments),o=t;if((ct(t)||void 0!==e)&&!At(e))return Vl(t)||(t=function(e,t){if(We(o)&&(t=Xe(o,this,e,t)),!At(t))return t}),r[1]=t,Me(Sc,null,r)}})}if(!xc[yc]){var Gc=xc.valueOf;bo(xc,yc,(function(e){return Xe(Gc,this)}))}Oo(Ec,"Symbol"),Wn[gc]=!0,pc("asyncIterator"),pc("hasInstance"),pc("isConcatSpreadable"),pc("iterator"),pc("match"),pc("matchAll"),pc("replace"),pc("search"),pc("species"),pc("split"),pc("toPrimitive"),pc("toStringTag"),pc("unscopables"),Oo(je.JSON,"JSON",!0);var qc=ft.Symbol;pc("asyncDispose"),pc("dispose"),pc("matcher"),pc("metadata"),pc("observable"),pc("patternMatch"),pc("replaceAll");var Kc=qc,Xc=fc.f("iterator"),Yc=_e((function(e){function t(n){return"function"==typeof Kc&&"symbol"==typeof Xc?(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 Kc&&e.constructor===Kc&&e!==Kc.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})),Zc=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Yc),Jc=va.f,Qc=Qo((function(){Jc(1)}));if(Eu({target:"Object",stat:!0,forced:!ei||Qc,sham:!ei},{getOwnPropertyDescriptor:function(e,t){return Jc(Ei(e),t)}}),"object"===("undefined"==typeof global?"undefined":Zc(global))){var ef=Object.getOwnPropertyDescriptor(global,"window");global.window&&!ef.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
2/*!
3 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4 *
5 * Copyright (c) 2014-2017, Jon Schlinkert.
6 * Released under the MIT License.
7 */function tf(e){return"[object Object]"===Object.prototype.toString.call(e)}function nf(e){var t,n;return!1!==tf(e)&&(void 0===(t=e.constructor)||!1!==tf(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function rf(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function of(e){return!!e&&!!e[Vf]}function af(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)===Uf}(e)||Array.isArray(e)||!!e[Hf]||!!e.constructor[Hf]||ff(e)||df(e))}function uf(e,t,n){void 0===n&&(n=!1),0===sf(e)?(n?Object.keys:Wf)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function sf(e){var t=e[Vf];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ff(e)?2:df(e)?3:0}function lf(e,t){return 2===sf(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cf(e,t,n){var r=sf(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function ff(e){return Rf&&e instanceof Map}function df(e){return Mf&&e instanceof Set}function pf(e){return e.o||e.t}function hf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Gf(e);delete t[Vf];for(var n=Wf(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 vf(e,t){return void 0===t&&(t=!1),yf(e)||of(e)||!af(e)||(sf(e)>1&&(e.set=e.add=e.clear=e.delete=gf),Object.freeze(e),t&&uf(e,(function(e,t){return vf(t,!0)}),!0)),e}function gf(){rf(2)}function yf(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function mf(e){var t=qf[e];return t||rf(18,e),t}function bf(){return Nf}function wf(e,t){t&&(mf("Patches"),e.u=[],e.s=[],e.v=t)}function Ef(e){xf(e),e.p.forEach(Df),e.p=null}function xf(e){e===Nf&&(Nf=e.l)}function Cf(e){return Nf={p:[],l:Nf,h:e,m:!0,_:0}}function Df(e){var t=e[Vf];0===t.i||1===t.i?t.j():t.O=!0}function Sf(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||mf("ES5").S(t,e,r),r?(n[Vf].P&&(Ef(t),rf(4)),af(e)&&(e=Af(t,e),t.l||kf(t,e)),t.u&&mf("Patches").M(n[Vf],e,t.u,t.s)):e=Af(t,n,[]),Ef(t),t.u&&t.v(t.u,t.s),e!==$f?e:void 0}function Af(e,t,n){if(yf(t))return t;var r=t[Vf];if(!r)return uf(t,(function(o,i){return Of(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return kf(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=hf(r.k):r.o;uf(3===r.i?new Set(o):o,(function(t,i){return Of(e,r,o,t,i,n)})),kf(e,o,!1),n&&e.u&&mf("Patches").R(r,n,e.u,e.s)}return r.o}function Of(e,t,n,r,o,i){if(of(o)){var a=Af(e,o,i&&t&&3!==t.i&&!lf(t.D,r)?i.concat(r):void 0);if(cf(n,r,a),!of(a))return;e.m=!1}if(af(o)&&!yf(o)){if(!e.h.F&&e._<1)return;Af(e,o),t&&t.A.l||kf(e,o)}}function kf(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&vf(t,n)}function Bf(e,t){var n=e[Vf];return(n?pf(n):e)[t]}function _f(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 Ff(e){e.P||(e.P=!0,e.l&&Ff(e.l))}function Tf(e){e.o||(e.o=hf(e.t))}function Pf(e,t,n){var r=ff(t)?mf("MapSet").N(t,n):df(t)?mf("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:bf(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Kf;n&&(o=[r],i=Xf);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):mf("ES5").J(t,n);return(n?n.A:bf()).p.push(r),r}function jf(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return hf(e)}var If,Nf,Lf="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Rf="undefined"!=typeof Map,Mf="undefined"!=typeof Set,zf="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,$f=Lf?Symbol.for("immer-nothing"):((If={})["immer-nothing"]=!0,If),Hf=Lf?Symbol.for("immer-draftable"):"__$immer_draftable",Vf=Lf?Symbol.for("immer-state"):"__$immer_state",Uf=""+Object.prototype.constructor,Wf="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gf=Object.getOwnPropertyDescriptors||function(e){var t={};return Wf(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},qf={},Kf={get:function(e,t){if(t===Vf)return e;var n=pf(e);if(!lf(n,t))return function(e,t,n){var r,o=_f(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||!af(r)?r:r===Bf(e.t,t)?(Tf(e),e.o[t]=Pf(e.A.h,r,e)):r},has:function(e,t){return t in pf(e)},ownKeys:function(e){return Reflect.ownKeys(pf(e))},set:function(e,t,n){var r,o,i=_f(pf(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=Bf(pf(e),t),u=null==a?void 0:a[Vf];if(u&&u.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(((r=n)===(o=a)?0!==r||1/r==1/o:r!=r&&o!=o)&&(void 0!==n||lf(e.t,t)))return!0;Tf(e),Ff(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!==Bf(e.t,t)||t in e.t?(e.D[t]=!1,Tf(e),Ff(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=pf(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(){rf(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){rf(12)}},Xf={};uf(Kf,(function(e,t){Xf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Xf.deleteProperty=function(e,t){return Kf.deleteProperty.call(this,e[0],t)},Xf.set=function(e,t,n){return Kf.set.call(this,e[0],t,n,e[0])};var Yf=function(){function e(e){var t=this;this.g=zf,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&&rf(6),void 0!==r&&"function"!=typeof r&&rf(7),af(e)){var u=Cf(t),s=Pf(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?Ef(u):xf(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return wf(u,r),Sf(e,u)}),(function(e){throw Ef(u),e})):(wf(u,r),Sf(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===$f)return;return void 0===a&&(a=e),t.F&&vf(a,!0),a}rf(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){af(e)||rf(8),of(e)&&(e=function(e){return of(e)||rf(22,e),function e(t){if(!af(t))return t;var n,r=t[Vf],o=sf(t);if(r){if(!r.P&&(r.i<4||!mf("ES5").K(r)))return r.t;r.I=!0,n=jf(t,o),r.I=!1}else n=jf(t,o);return uf(n,(function(t,o){var i,a;r&&(a=t,(2===sf(i=r.t)?i.get(a):i[a])===o)||cf(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Cf(this),n=Pf(this,e,void 0);return n[Vf].C=!0,xf(t),n},t.finishDraft=function(e,t){var n=(e&&e[Vf]).A;return wf(n,t),Sf(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!zf&&rf(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=mf("Patches").$;return of(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Zf=new Yf,Jf=Zf.produce;Zf.produceWithPatches.bind(Zf),Zf.setAutoFreeze.bind(Zf),Zf.setUseProxies.bind(Zf),Zf.applyPatches.bind(Zf);var Qf=Zf.createDraft.bind(Zf),ed=Zf.finishDraft.bind(Zf);function td(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nd=new WeakMap,rd=new WeakMap,od=new WeakMap,id=new WeakMap,ad=new WeakMap,ud=new WeakMap;function sd(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 ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sd(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return tp.levels(t);case"insert_node":var{node:n,path:r}=e;return[...tp.levels(r),...gp.isText(n)?[]:Array.from(Zd.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...tp.ancestors(o),tp.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(tp.equals(i,a))return[];var u=[],s=[];for(var l of tp.ancestors(i)){var c=tp.transform(l,e);u.push(c)}for(var f of tp.ancestors(a)){var d=tp.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],v=p.concat(h);return[...u,...s,v];case"remove_node":var{path:g}=e;return[...tp.ancestors(g)];case"split_node":var{path:y}=e;return[...tp.levels(y),tp.next(y)];default:return[]}};function fd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var dd,pd=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?bd(e):e,o=dd.None,i=dd.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Fd(s,l);if([o,i]=n?[i,c]:[c,o],Td(o,dd.ZWJ)&&Td(i,dd.ExtPict)&&!Nd(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Td(o,dd.RI)&&Td(i,dd.RI)&&!(u=null!==u?!u:!!n||Rd(e.substring(0,e.length-a))))break;if(o!==dd.None&&i!==dd.None&&jd(o,i))break;a+=s.length}return a||1},hd=/\s/,vd=/[\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]/,gd=/['\u2018\u2019]/,yd=(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)]},md=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(hd.test(t))return!1;if(gd.test(t)){var o=pd(n,r),[i,a]=yd(n,o,r);if(e(i,a,r))return!0}return!vd.test(t)},bd=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Ed(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(wd(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},wd=e=>e>=55296&&e<=56319,Ed=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"}(dd||(dd={}));var xd=/^(?:[\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\u
7094D\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])$/,Cd=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Dd=/^(?:[\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\u
71A19\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])$/,Sd=/^[\u1100-\u115F\uA960-\uA97C]$/,Ad=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Od=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,kd=/^[\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]$/,Bd=/^[\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\u
7C2F9-\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]$/,_d=/^(?:[\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])$/,Fd=(e,t)=>{var n=dd.Any;return-1!==e.search(xd)&&(n|=dd.Extend),8205===t&&(n|=dd.ZWJ),t>=127462&&t<=127487&&(n|=dd.RI),-1!==e.search(Cd)&&(n|=dd.Prepend),-1!==e.search(Dd)&&(n|=dd.SpacingMark),-1!==e.search(Sd)&&(n|=dd.L),-1!==e.search(Ad)&&(n|=dd.V),-1!==e.search(Od)&&(n|=dd.T),-1!==e.search(kd)&&(n|=dd.LV),-1!==e.search(Bd)&&(n|=dd.LVT),-1!==e.search(_d)&&(n|=dd.ExtPict),n};function Td(e,t){return 0!=(e&t)}var Pd=[[dd.L,dd.L|dd.V|dd.LV|dd.LVT],[dd.LV|dd.V,dd.V|dd.T],[dd.LVT|dd.T,dd.T],[dd.Any,dd.Extend|dd.ZWJ],[dd.Any,dd.SpacingMark],[dd.Prepend,dd.Any],[dd.ZWJ,dd.ExtPict],[dd.RI,dd.RI]];
vendor: 53,481 bytes, line 7
7function jd(e,t){return-1===Pd.findIndex((n=>Td(e,n[0])&&Td(t,n[1])))}var Id=/(?:[\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$/,Nd=e=>-1!==e.search(Id),Ld=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Rd=e=>{var t=e.match(Ld);return null!==t&&t[0].length/2%2==1},Md=e=>nf(e)&&Zd.isNodeList(e.children)&&!Gd.isEditor(e),zd={isAncestor:e=>nf(e)&&Zd.isNodeList(e.children),isElement:Md,isElementList:e=>Array.isArray(e)&&e.every((e=>zd.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Md(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},$d=["text"],Hd=["text"];function Vd(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 Ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wd=new WeakMap,Gd={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=Gd.path(e,o),u="lowest"===r;for(var[s,l]of Gd.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!gp.isText(s)&&!tp.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Gd.point(e,t,{edge:"end"}),focus:Gd.end(e,[])},{distance:i=1}=r,a=0;for(var u of Gd.positions(e,Ud(Ud({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Gd.start(e,[]),focus:Gd.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Gd.positions(e,Ud(Ud({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Gd.start(e,t),Gd.end(e,t)],end:(e,t)=>Gd.point(e,t,{edge:"end"}),first(e,t){var n=Gd.path(e,t,{edge:"start"});return Gd.node(e,n)},fragment(e,t){var n=Gd.range(e,t);return Zd.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Gd.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>gp.isText(t)||Gd.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>gp.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)=>zd.isElement(t)&&!e.isInline(t),isEditor(e){if(!nf(e))return!1;var t=Wd.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||nf(e.marks))&&(null===e.selection||lp.isRange(e.selection))&&Zd.isNodeList(e.children)&&ep.isOperationList(e.operations);return Wd.set(e,n),n},isEnd(e,t,n){var r=Gd.end(e,n);return ip.equals(t,r)},isEdge:(e,t,n)=>Gd.isStart(e,t,n)||Gd.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&gp.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>zd.isElement(t)&&e.isInline(t),isNormalizing(e){var t=od.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Gd.start(e,n);return ip.equals(t,r)},isVoid:(e,t)=>zd.isElement(t)&&e.isVoid(t),last(e,t){var n=Gd.path(e,t,{edge:"end"});return Gd.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Gd.path(e,t,n);return[Zd.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Gd.path(e,n);for(var[s,l]of Zd.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Gd.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(lp.isExpanded(n)){var[r]=Gd.nodes(e,{match:gp.isText});if(r){var[o]=r;return fd(o,$d)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Gd.leaf(e,a);if(0===i.offset){var s=Gd.previous(e,{at:a,match:gp.isText}),l=Gd.above(e,{match:t=>Gd.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;tp.isAncestor(d,f)&&(u=c)}}return fd(u,Hd)},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=Gd.after(e,i,{voids:r});if(a){var[,u]=Gd.last(e,[]),s=[a.path,u];if(tp.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(tp.isPath(i)){var[l]=Gd.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Gd.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=Gd.path(e,t,n);return[Zd.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(qd.isSpan(n))s=n[0],l=n[1];else{var c=Gd.path(e,n,{edge:"start"}),f=Gd.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Zd.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Gd.isVoid(e,n)}}),h=[];for(var[v,g]of p){var y=d&&0===tp.compare(g,d[1]);if("highest"!==r||!y)if(u(v,g))if("lowest"===r&&y)d=[v,g];else{var m="lowest"===r?d:[v,g];m&&(o?h.push(m):yield m),d=[v,g]}else if(o&&!y&&gp.isText(v))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=>nd.get(e)||[];if(Gd.isNormalizing(e)){if(n){var o=Array.from(Zd.nodes(e),(e=>{var[,t]=e;return t}));nd.set(e,o)}0!==r(e).length&&Gd.withoutNormalizing(e,(()=>{for(var t of r(e))if(Zd.has(e,t)){var n=Gd.node(e,t),[o,i]=n;zd.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n            Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n          "));var s=r(e).pop();if(Zd.has(e,s)){var l=Gd.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Gd.path(e,t,n),o=tp.parent(r);return Gd.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(tp.isPath(t))if("start"===o){var[,i]=Zd.first(e,t);t=i}else if("end"===o){var[,a]=Zd.last(e,t);t=a}return lp.isRange(t)&&(t="start"===o?lp.start(t):"end"===o?lp.end(t):tp.common(t.anchor.path,t.focus.path)),ip.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Zd.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Gd.pathRefs(e).delete(o),o.current=null,t}};return Gd.pathRefs(e).add(o),o},pathRefs(e){var t=id.get(e);return t||(t=new Set,id.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(tp.isPath(t)){var o;if("end"===r){var[,i]=Zd.last(e,t);o=i}else{var[,a]=Zd.first(e,t);o=a}var u=Zd.get(e,o);if(!gp.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(lp.isRange(t)){var[s,l]=lp.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Gd.pointRefs(e).delete(o),o.current=null,t}};return Gd.pointRefs(e).add(o),o},pointRefs(e){var t=ad.get(e);return t||(t=new Set,ad.set(e,t)),t},*positions(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:i=e.selection,unit:a="offset",reverse:u=!1,voids:s=!1}=o;if(i){var l=Gd.range(e,i),[c,f]=lp.edges(l),d=u?f:c,p=!1,h="",v=0,g=0,y=0;for(var[m,b]of Gd.nodes(e,{at:i,reverse:u,voids:s})){if(zd.isElement(m)){if(!s&&e.isVoid(m)){yield Gd.start(e,b);continue}if(e.isInline(m))continue;if(Gd.hasInlines(e,m)){var w=tp.isAncestor(b,f.path)?f:Gd.end(e,b),E=tp.isAncestor(b,c.path)?c:Gd.start(e,b);h=Gd.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(gp.isText(m)){var x=tp.equals(b,d.path);for(x?(g=u?d.offset:m.text.length-d.offset,y=d.offset):(g=m.text.length,y=u?g:0),(x||p||"offset"===a)&&(yield{path:b,offset:y},p=!1);;){if(0===v){if(""===h)break;t=h,r=u,v="character"===(n=a)?pd(t,r):"word"===n?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=pd(e,t),[i,a]=yd(e,o,t);if(md(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(t,r):"line"===n||"block"===n?t.length:1,h=yd(h,v,u)[1]}if(y=u?y-v:y+v,(g-=v)<0){v=-g;break}v=0,yield{path:b,offset:y}}}}}},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=Gd.before(e,i,{voids:r});if(a){var[,u]=Gd.first(e,[]),s=[a.path,u];if(tp.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(tp.isPath(i)){var[l]=Gd.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Gd.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>lp.isRange(t)&&!n?t:{anchor:Gd.start(e,t),focus:Gd.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Gd.rangeRefs(e).delete(o),o.current=null,t}};return Gd.rangeRefs(e).add(o),o},rangeRefs(e){var t=ud.get(e);return t||(t=new Set,ud.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){od.set(e,t)},start:(e,t)=>Gd.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Gd.range(e,t),[i,a]=lp.edges(o),u="";for(var[s,l]of Gd.nodes(e,{at:o,match:gp.isText,voids:r})){var c=s.text;tp.equals(l,a.path)&&(c=c.slice(0,a.offset)),tp.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]=lp.edges(t);if(0!==o.offset||0!==i.offset||lp.isCollapsed(t))return t;var a=Gd.above(e,{at:i,match:t=>Gd.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Gd.start(e,[]),focus:i},l=!0;for(var[c,f]of Gd.nodes(e,{at:s,match:gp.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||tp.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Gd.above(e,Ud(Ud({},t),{},{match:t=>Gd.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Gd.isNormalizing(e);Gd.setNormalizing(e,!1);try{t()}finally{Gd.setNormalizing(e,n)}Gd.normalize(e)}},qd={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(tp.isPath)},Kd=["children"],Xd=["text"],Yd=new WeakMap,Zd={ancestor(e,t){var n=Zd.get(e,t);if(gp.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 tp.ancestors(t,n)){var o=[Zd.ancestor(e,r),r];yield o}},child(e,t){if(gp.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Zd.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Zd.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=tp.common(t,n);return[Zd.get(e,r),r]},descendant(e,t){var n=Zd.get(e,t);if(Gd.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 Zd.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 Zd.nodes(e,t))zd.isElement(n)&&(yield[n,r])},extractProps:e=>zd.isAncestor(e)?fd(e,Kd):fd(e,Xd),first(e,t){for(var n=t.slice(),r=Zd.get(e,n);r&&!gp.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(gp.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Jf({children:e.children},(e=>{var[n,r]=lp.edges(t),o=Zd.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!lp.includes(t,n)}});for(var[,i]of o){if(!lp.includes(t,i)){var a=Zd.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(tp.equals(i,r.path)){var s=Zd.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(tp.equals(i,n.path)){var l=Zd.leaf(e,i);l.text=l.text.slice(n.offset)}}Gd.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(gp.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(gp.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>gp.isText(e)||zd.isElement(e)||Gd.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Yd.get(e);if(void 0!==t)return t;var n=e.every((e=>Zd.isNode(e)));return Yd.set(e,n),n},last(e,t){for(var n=t.slice(),r=Zd.get(e,n);r&&!gp.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Zd.get(e,t);if(!gp.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 tp.levels(t,n)){var o=Zd.get(e,r);yield[o,r]}},matches:(e,t)=>zd.isElement(e)&&zd.isElementProps(t)&&zd.matches(e,t)||gp.isText(e)&&gp.isTextProps(t)&&gp.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?tp.isBefore(u,i):tp.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||gp.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=tp.next(u);if(Zd.has(e,l)){u=l,s=Zd.get(e,u);continue}}r&&0!==u[u.length-1]?(u=tp.previous(u),s=Zd.get(e,u)):(u=tp.parent(u),s=Zd.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;tp.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Zd.get(e,u)}},parent(e,t){var n=tp.parent(t),r=Zd.get(e,n);if(gp.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=>gp.isText(e)?e.text:e.children.map(Zd.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Zd.nodes(e,t))gp.isText(n)&&(yield[n,r])}};function Jd(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 Qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ep={isNodeOperation:e=>ep.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!nf(e))return!1;switch(e.type){case"insert_node":case"remove_node":return tp.isPath(e.path)&&Zd.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&tp.isPath(e.path);case"merge_node":return"number"==typeof e.position&&tp.isPath(e.path)&&nf(e.properties);case"move_node":return tp.isPath(e.path)&&tp.isPath(e.newPath);case"set_node":return tp.isPath(e.path)&&nf(e.properties)&&nf(e.newProperties);case"set_selection":return null===e.properties&&lp.isRange(e.newProperties)||null===e.newProperties&&lp.isRange(e.properties)||nf(e.properties)&&nf(e.newProperties);case"split_node":return tp.isPath(e.path)&&"number"==typeof e.position&&nf(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>ep.isOperation(e))),isSelectionOperation:e=>ep.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>ep.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Qd(Qd({},e),{},{type:"remove_node"});case"insert_text":return Qd(Qd({},e),{},{type:"remove_text"});case"merge_node":return Qd(Qd({},e),{},{type:"split_node",path:tp.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(tp.equals(t,n))return e;if(tp.isSibling(n,t))return Qd(Qd({},e),{},{path:t,newPath:n});var r=tp.transform(n,e),o=tp.transform(tp.next(n),e);return Qd(Qd({},e),{},{path:r,newPath:o});case"remove_node":return Qd(Qd({},e),{},{type:"insert_node"});case"remove_text":return Qd(Qd({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Qd(Qd({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Qd(Qd({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Qd(Qd({},e),{},{type:"merge_node",path:tp.next(e.path)})}}},tp={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=tp.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return tp.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return tp.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 tp.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===tp.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===tp.compare(e,t),isBefore:(e,t)=>-1===tp.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===tp.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===tp.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===tp.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===tp.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&tp.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(!tp.isAncestor(t,e)&&!tp.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 Jf(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(tp.equals(i,r)||tp.endsBefore(i,r)||tp.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(tp.equals(a,r)||tp.isAncestor(a,r))return null;tp.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;tp.equals(u,r)||tp.endsBefore(u,r)?r[u.length-1]-=1:tp.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(tp.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else tp.endsBefore(l,r)?r[l.length-1]+=1:tp.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(tp.equals(f,d))return;if(tp.isAncestor(f,r)||tp.equals(f,r)){var p=d.slice();return tp.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}tp.isSibling(f,d)&&(tp.isAncestor(d,r)||tp.equals(d,r))?tp.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:tp.endsBefore(d,r)||tp.equals(d,r)||tp.isAncestor(d,r)?(tp.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):tp.endsBefore(f,r)&&(tp.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},np={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=tp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function rp(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 op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ip={compare(e,t){var n=tp.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===ip.compare(e,t),isBefore:(e,t)=>-1===ip.compare(e,t),equals:(e,t)=>e.offset===t.offset&&tp.equals(e.path,t.path),isPoint:e=>nf(e)&&"number"==typeof e.offset&&tp.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Jf(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=tp.transform(o,t,n);break;case"insert_text":tp.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":tp.equals(t.path,o)&&(e.offset+=t.position),e.path=tp.transform(o,t,n);break;case"remove_text":tp.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(tp.equals(t.path,o)||tp.isAncestor(t.path,o))return null;e.path=tp.transform(o,t,n);break;case"split_node":if(tp.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=tp.transform(o,t,op(op({},n),{},{affinity:"forward"})))}else e.path=tp.transform(o,t,n)}}))}},ap={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=ip.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},up=["anchor","focus"];function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var lp={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return lp.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=lp.edges(e);return t},equals:(e,t)=>ip.equals(e.anchor,t.anchor)&&ip.equals(e.focus,t.focus),includes(e,t){if(lp.isRange(t)){if(lp.includes(e,t.anchor)||lp.includes(e,t.focus))return!0;var[n,r]=lp.edges(e),[o,i]=lp.edges(t);return ip.isBefore(n,o)&&ip.isAfter(r,i)}var[a,u]=lp.edges(e),s=!1,l=!1;return ip.isPoint(t)?(s=ip.compare(t,a)>=0,l=ip.compare(t,u)<=0):(s=tp.compare(t,a.path)>=0,l=tp.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=fd(e,up),[r,o]=lp.edges(e),[i,a]=lp.edges(t),u=ip.isBefore(r,i)?i:r,s=ip.isBefore(o,a)?o:a;return ip.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ip.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ip.equals(t,n)},isExpanded:e=>!lp.isCollapsed(e),isForward:e=>!lp.isBackward(e),isRange:e=>nf(e)&&ip.isPoint(e.anchor)&&ip.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=lp.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Jf(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=lp.isCollapsed(e);lp.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?lp.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=ip.transform(e.anchor,t,{affinity:r}),s=ip.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},cp={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=lp.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},fp=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(nf(r)&&nf(o)){if(!fp(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},dp=["text"],pp=["anchor","focus"];function hp(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 vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gp={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return fd(e,dp)}return fp(r?o(e):e,r?o(t):t)},isText:e=>nf(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>gp.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[vp({},e)];for(var r of t){var o=fd(r,pp),[i,a]=lp.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 v=a.offset-f;h=vp(vp({},d),{},{text:d.text.slice(v)}),d=vp(vp({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=vp(vp({},d),{},{text:d.text.slice(0,g)}),d=vp(vp({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function yp(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 mp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bp={transform(e,t){e.children=Qf(e.children);var n=e.selection&&Qf(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Zd.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 lp.points(t))t[s]=ip.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Zd.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[v,g]of lp.points(t))t[g]=ip.transform(v,n);break;case"merge_node":var{path:y}=n,m=Zd.get(e,y),b=tp.previous(y),w=Zd.get(e,b),E=Zd.parent(e,y),x=y[y.length-1];if(gp.isText(m)&&gp.isText(w))w.text+=m.text;else{if(gp.isText(m)||gp.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(x,1),t)for(var[C,D]of lp.points(t))t[D]=ip.transform(C,n);break;case"move_node":var{path:S,newPath:A}=n;if(tp.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=Zd.get(e,S),k=Zd.parent(e,S),B=S[S.length-1];k.children.splice(B,1);var _=tp.transform(S,n),F=Zd.get(e,tp.parent(_)),T=_[_.length-1];if(F.children.splice(T,0,O),t)for(var[P,j]of lp.points(t))t[j]=ip.transform(P,n);break;case"remove_node":var{path:I}=n,N=I[I.length-1];if(Zd.parent(e,I).children.splice(N,1),t)for(var[L,R]of lp.points(t)){var M=ip.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Zd.texts(e)){if(-1!==tp.compare(V,I)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=tp.equals($[1],I)?!tp.hasPrevious($[1]):tp.common(z[1],I).length<tp.common($[1],I).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=Zd.leaf(e,W),X=K.text.slice(0,G),Y=K.text.slice(G+q.length);if(K.text=X+Y,t)for(var[Z,J]of lp.points(t))t[J]=ip.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Zd.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!lp.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=mp({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Zd.get(e,le),he=Zd.parent(e,le),ve=le[le.length-1];if(gp.isText(pe)){var ge=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ge,de=mp(mp({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=mp(mp({},fe),{},{children:be})}if(he.children.splice(ve+1,0,de),t)for(var[we,Ee]of lp.points(t))t[Ee]=ip.transform(we,n)}return t})(e,n,t)}finally{e.children=ed(e.children),e.selection=n?of(n)?ed(n):n:null}}},wp=["text"],Ep=["children"];function xp(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 Cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xp(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dp={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Gd.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Zd.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Gd.end(e,[]):[0],s=!0),null==s&&(s=!1),lp.isRange(a))if(r||(a=Gd.unhangRange(e,a)),lp.isCollapsed(a))a=a.anchor;else{var[,c]=lp.edges(a),f=Gd.pointRef(e,c);jp.delete(e,{at:a}),a=f.unref()}if(ip.isPoint(a)){null==u&&(u=gp.isText(l)?e=>gp.isText(e):e.isInline(l)?t=>gp.isText(t)||Gd.isInline(e,t):t=>Gd.isBlock(e,t));var[d]=Gd.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Gd.pathRef(e,p),v=Gd.isEnd(e,a,p);jp.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?tp.next(g):g}var y=tp.parent(a),m=a[a.length-1];if(o||!Gd.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=tp.next(a)}if(a=tp.previous(a),s){var E=Gd.end(e,a);E&&jp.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=tp.isPath(n)?Op(e,n):t=>Gd.isBlock(e,t)),n){var a=Gd.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Gd.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=Gd.node(e,tp.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var v=tp.next(d);jp.moveNodes(e,{at:l,to:v,voids:o}),jp.removeNodes(e,{at:d,voids:o})}else if(0===p)jp.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var g=tp.next(d);jp.moveNodes(e,{at:l,to:g,voids:o})}else{var y=tp.next(l),m=tp.next(d);jp.splitNodes(e,{at:y,voids:o}),jp.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd.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(tp.isPath(r)){var[u]=Gd.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Gd.isBlock(e,t);if(!o&&lp.isRange(r)&&(r=Gd.unhangRange(e,r)),lp.isRange(r))if(lp.isCollapsed(r))r=r.anchor;else{var[,s]=lp.edges(r),l=Gd.pointRef(e,s);jp.delete(e,{at:r}),r=l.unref(),null==t.at&&jp.select(e,r)}var[c]=Gd.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Gd.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,v]=f;if(0!==p.length&&0!==v.length){var g,y,m=tp.next(v),b=tp.common(p,v),w=tp.isSibling(p,v),E=Array.from(Gd.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),x=Gd.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&Sp(e,t)}),C=x&&Gd.pathRef(e,x[1]);if(gp.isText(d)&&gp.isText(h)){var D=fd(d,wp);y=h.text.length,g=D}else{if(!zd.isElement(d)||!zd.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)));D=fd(d,Ep),y=h.children.length,g=D}w||jp.moveNodes(e,{at:p,to:m,voids:i}),C&&jp.removeNodes(e,{at:C.current,voids:i}),zd.isElement(h)&&Gd.isEmpty(e,h)||gp.isText(h)&&""===h.text&&0!==v[v.length-1]?jp.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){Gd.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=tp.isPath(r)?Op(e,r):t=>Gd.isBlock(e,t));var u=Gd.pathRef(e,n),s=Gd.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Gd.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&&tp.isSibling(d,f)&&tp.isAfter(d,f)&&(u.current=tp.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd.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=tp.isPath(i)?Op(e,i):t=>Gd.isBlock(e,t)),!n&&lp.isRange(i)&&(i=Gd.unhangRange(e,i));var u=Gd.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Gd.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Gd.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]:{};Gd.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=tp.isPath(o)?Op(e,o):t=>Gd.isBlock(e,t)),!i&&lp.isRange(o)&&(o=Gd.unhangRange(e,o)),u&&lp.isRange(o)){if(lp.isCollapsed(o)&&Gd.leaf(e,o.anchor)[0].text.length>0)return;var l=Gd.rangeRef(e,o,{affinity:"inward"}),[c,f]=lp.edges(o),d="lowest"===a?"lowest":"highest",p=Gd.isEnd(e,f,f.path);jp.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Gd.isStart(e,c,c.path);jp.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&jp.select(e,o)}for(var[v,g]of Gd.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==g.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd.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=>Gd.isBlock(e,t)),lp.isRange(i)&&(i=Ap(e,i)),tp.isPath(i)){var s=i,l=Gd.point(e,s),[c]=Gd.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Gd.pointRef(e,i,{affinity:"backward"}),[d]=Gd.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Gd.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,v]=p;if(zd.isElement(h)&&e.isInline(h)){var g=Gd.after(e,v);if(!g){var y=tp.next(v);jp.insertNodes(e,{text:""},{at:y,voids:r}),g=Gd.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=Gd.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),x=0===a?i.offset:i.path[b]+0;for(var[C,D]of Gd.levels(e,{at:E,reverse:!0,voids:r})){var S=!1;if(D.length<w.length||0===D.length||!r&&Gd.isVoid(e,C))break;var A=f.current,O=Gd.isEnd(e,A,D);if(u||!f||!Gd.isEdge(e,A,D)){S=!0;var k=Zd.extractProps(C);e.apply({type:"split_node",path:D,position:x,properties:k})}x=D[D.length-1]+(S||O?1:0)}if(null==t.at){var B=m.current||Gd.end(e,[]);jp.select(e,B)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;jp.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd.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=tp.isPath(i)?Op(e,i):t=>Gd.isBlock(e,t)),tp.isPath(i)&&(i=Gd.range(e,i));var u=lp.isRange(i)?Gd.rangeRef(e,i):null,s=Gd.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Gd.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Gd.node(e,n),a=Gd.range(e,n);r&&u&&(a=lp.intersection(u.current,a)),jp.liftNodes(e,{at:a,match:e=>zd.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]:{};Gd.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=tp.isPath(u)?Op(e,u):e.isInline(t)?t=>Gd.isInline(e,t)||gp.isText(t):t=>Gd.isBlock(e,t)),o&&lp.isRange(u)){var[s,l]=lp.edges(u),c=Gd.rangeRef(e,u,{affinity:"inward"});jp.splitNodes(e,{at:l,match:a,voids:i}),jp.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&jp.select(e,u)}var f=Array.from(Gd.nodes(e,{at:u,match:e.isInline(t)?t=>Gd.isBlock(e,t):e=>Gd.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=lp.isRange(u)?lp.intersection(u,Gd.range(e,d)):u;if(p){var h=Array.from(Gd.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=tp.equals(o,a)?tp.parent(o):tp.common(o,a),s=Gd.range(e,o,a),l=Gd.node(e,u),[c]=l,f=u.length+1,d=tp.next(a.slice(0,f)),p=Cp(Cp({},t),{},{children:[]});jp.insertNodes(e,p,{at:d,voids:i}),jp.moveNodes(e,{at:s,match:e=>zd.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},Sp=(e,t)=>{if(zd.isElement(t)){var n=t;return!!Gd.isVoid(e,t)||1===n.children.length&&Sp(e,n.children[0])}return!Gd.isEditor(t)},Ap=(e,t)=>{if(lp.isCollapsed(t))return t.anchor;var[,n]=lp.edges(t),r=Gd.pointRef(e,n);return jp.delete(e,{at:t}),r.unref()},Op=(e,t)=>{var[n]=Gd.node(e,t);return e=>e===n};function kp(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 Bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _p={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)jp.select(e,r.anchor);else if("focus"===n)jp.select(e,r.focus);else if("start"===n){var[o]=lp.edges(r);jp.select(e,o)}else if("end"===n){var[,i]=lp.edges(r);jp.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=lp.isBackward(n)?"focus":"anchor"),"end"===a&&(a=lp.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Gd.before(e,u,l):Gd.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Gd.before(e,s,l):Gd.after(e,s,l);d&&(c.focus=d)}jp.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Gd.range(e,t),n)jp.setSelection(e,t);else{if(!lp.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=lp.isBackward(r)?"focus":"anchor"),"end"===o&&(o=lp.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;jp.setSelection(e,{["anchor"===o?"anchor":"focus"]:Bp(Bp({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!ip.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!ip.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})}}},Fp={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gd.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(lp.isRange(a)&&lp.isCollapsed(a)&&(a=a.anchor),ip.isPoint(a)){var s=Gd.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Gd.before(e,a,c)||Gd.start(e,[]):Gd.after(e,a,c)||Gd.end(e,[])},u=!0}}if(tp.isPath(a))jp.removeNodes(e,{at:a,voids:i});else if(!lp.isCollapsed(a)){if(!u){var[,f]=lp.edges(a),d=Gd.end(e,[]);ip.equals(f,d)||(a=Gd.unhangRange(e,a,{voids:i}))}var[p,h]=lp.edges(a),v=Gd.above(e,{match:t=>Gd.isBlock(e,t),at:p,voids:i}),g=Gd.above(e,{match:t=>Gd.isBlock(e,t),at:h,voids:i}),y=v&&g&&!tp.equals(v[1],g[1]),m=tp.equals(p.path,h.path),b=i?null:Gd.void(e,{at:p,mode:"highest"}),w=i?null:Gd.void(e,{at:h,mode:"highest"});if(b){var E=Gd.before(e,p);E&&v&&tp.isAncestor(v[1],E.path)&&(p=E)}if(w){var x=Gd.after(e,h);x&&g&&tp.isAncestor(g[1],x.path)&&(h=x)}var C,D=[];for(var S of Gd.nodes(e,{at:a,voids:i})){var[A,O]=S;C&&0===tp.compare(O,C)||(!i&&Gd.isVoid(e,A)||!tp.isCommon(O,p.path)&&!tp.isCommon(O,h.path))&&(D.push(S),C=O)}var k=Array.from(D,(t=>{var[,n]=t;return Gd.pathRef(e,n)})),B=Gd.pointRef(e,p),_=Gd.pointRef(e,h);if(!m&&!b){var F=B.current,[T]=Gd.leaf(e,F),{path:P}=F,{offset:j}=p,I=T.text.slice(j);I.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:I})}for(var N of k){var L=N.unref();jp.removeNodes(e,{at:L,voids:i})}if(!w){var R=_.current,[M]=Gd.leaf(e,R),{path:z}=R,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&_.current&&B.current&&jp.mergeNodes(e,{at:_.current,hanging:!0,voids:i});var V=n?B.unref()||_.unref():_.unref()||B.unref();null==t.at&&V&&jp.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Gd.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(lp.isRange(i))if(r||(i=Gd.unhangRange(e,i)),lp.isCollapsed(i))i=i.anchor;else{var[,a]=lp.edges(i);if(!o&&Gd.void(e,{at:a}))return;var u=Gd.pointRef(e,a);jp.delete(e,{at:i}),i=u.unref()}else tp.isPath(i)&&(i=Gd.start(e,i));if(o||!Gd.void(e,{at:i})){var s=Gd.above(e,{at:i,match:t=>Gd.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;Gd.isEnd(e,i,l)?i=Gd.after(e,l):Gd.isStart(e,i,l)&&(i=Gd.before(e,l))}var c=Gd.above(e,{match:t=>Gd.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Gd.isStart(e,i,f),p=Gd.isEnd(e,i,f),h=d&&p,v=!d||d&&p,g=!p,[,y]=Zd.first({children:t},[]),[,m]=Zd.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(v&&tp.isAncestor(r,y)&&zd.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||g&&tp.isAncestor(r,m)&&zd.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Zd.nodes({children:t},{pass:w}))w(E)&&b.push(E);var x=[],C=[],D=[],S=!0,A=!1;for(var[O]of b)zd.isElement(O)&&!e.isInline(O)?(S=!1,A=!0,C.push(O)):S?x.push(O):D.push(O);var[k]=Gd.nodes(e,{at:i,match:t=>gp.isText(t)||Gd.isInline(e,t),mode:"highest",voids:o}),[,B]=k,_=Gd.isStart(e,i,B),F=Gd.isEnd(e,i,B),T=Gd.pathRef(e,p?tp.next(f):f),P=Gd.pathRef(e,F?tp.next(B):B),j=Gd.pathRef(e,f);jp.splitNodes(e,{at:i,match:t=>A?Gd.isBlock(e,t):gp.isText(t)||Gd.isInline(e,t),mode:A?"lowest":"highest",voids:o});var I=Gd.pathRef(e,!_||_&&F?tp.next(B):B);if(jp.insertNodes(e,x,{at:I.current,match:t=>gp.isText(t)||Gd.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&jp.delete(e,{at:j.unref(),voids:o}),jp.insertNodes(e,C,{at:T.current,match:t=>Gd.isBlock(e,t),mode:"lowest",voids:o}),jp.insertNodes(e,D,{at:P.current,match:t=>gp.isText(t)||Gd.isInline(e,t),mode:"highest",voids:o}),!n.at){var N;N=D.length>0?tp.previous(P.current):C.length>0?tp.previous(T.current):tp.previous(I.current);var L=Gd.end(e,N);jp.select(e,L)}I.unref(),T.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Gd.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(tp.isPath(o)&&(o=Gd.range(e,o)),lp.isRange(o))if(lp.isCollapsed(o))o=o.anchor;else{var i=lp.end(o);if(!r&&Gd.void(e,{at:i}))return;var a=Gd.pointRef(e,i);jp.delete(e,{at:o,voids:r}),o=a.unref(),jp.setSelection(e,{anchor:o,focus:o})}if(r||!Gd.void(e,{at:o})){var{path:u,offset:s}=o;t.length>
70&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function Tp(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 Pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tp(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jp=Pp(Pp(Pp(Pp({},bp),Dp),_p),Fp),Ip="[object Map]",Np="[object Set]",Lp=/^\[object .+?Constructor\]$/,Rp=/^(?:0|[1-9]\d*)$/,Mp="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",zp="\\ud83c[\\udffb-\\udfff]",$p="[^\\ud800-\\udfff]",Hp="(?:\\ud83c[\\udde6-\\uddff]){2}",Vp="[\\ud800-\\udbff][\\udc00-\\udfff]",Up="(?:"+Mp+"|"+zp+")?",Wp="[\\ufe0e\\ufe0f]?"+Up+"(?:\\u200d(?:"+[$p,Hp,Vp].join("|")+")[\\ufe0e\\ufe0f]?"+Up+")*",Gp="(?:"+[$p+Mp+"?",Mp,Hp,Vp,"[\\ud800-\\udfff]"].join("|")+")",qp=RegExp(zp+"(?="+zp+")|"+Gp+Wp,"g"),Kp=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Xp="object"==typeof Be&&Be&&Be.Object===Object&&Be,Yp="object"==typeof self&&self&&self.Object===Object&&self,Zp=Xp||Yp||Function("return this")();function Jp(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Qp(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var eh,th,nh=Function.prototype,rh=Object.prototype,oh=Zp["__core-js_shared__"],ih=function(){var e=/[^.]+$/.exec(oh&&oh.keys&&oh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ah=nh.toString,uh=rh.hasOwnProperty,sh=rh.toString,lh=RegExp("^"+ah.call(uh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ch=Zp.Symbol,fh=ch?ch.iterator:void 0,dh=rh.propertyIsEnumerable,ph=(eh=Object.keys,th=Object,function(e){return eh(th(e))}),hh=Dh(Zp,"DataView"),vh=Dh(Zp,"Map"),gh=Dh(Zp,"Promise"),yh=Dh(Zp,"Set"),mh=Dh(Zp,"WeakMap"),bh=Oh(hh),wh=Oh(vh),Eh=Oh(gh),xh=Oh(yh),Ch=Oh(mh);function Dh(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!Fh(e)||(t=e,ih&&ih in t))return!1;var t,n=_h(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?lh:Lp;return n.test(Oh(e))}(o)?o:void 0}var Sh=function(e){return sh.call(e)};function Ah(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Rp.test(e))&&e>-1&&e%1==0&&e<t}function Oh(e){if(null!=e){try{return ah.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(hh&&"[object DataView]"!=Sh(new hh(new ArrayBuffer(1)))||vh&&Sh(new vh)!=Ip||gh&&"[object Promise]"!=Sh(gh.resolve())||yh&&Sh(new yh)!=Np||mh&&"[object WeakMap]"!=Sh(new mh))&&(Sh=function(e){var t=sh.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Oh(n):void 0;if(r)switch(r){case bh:return"[object DataView]";case wh:return Ip;case Eh:return"[object Promise]";case xh:return Np;case Ch:return"[object WeakMap]"}return t});var kh=Array.isArray;function Bh(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!_h(e);var t}function _h(e){var t=Fh(e)?sh.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Fh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Th(e){return!!e&&"object"==typeof e}function Ph(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,Bh(t=e)?function(e,t){var n,r,o=kh(e)||Th(r=n=e)&&Bh(r)&&uh.call(n,"callee")&&(!dh.call(n,"callee")||"[object Arguments]"==sh.call(n))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=o.length,a=!!i;for(var u in e)!uh.call(e,u)||a&&("length"==u||Ah(u,i))||o.push(u);return o}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||rh))return ph(e);var t,n,r=[];for(var o in Object(e))uh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var jh=function(e){if(!e)return[];if(Bh(e))return"string"==typeof(t=e)||!kh(t)&&Th(t)&&"[object String]"==sh.call(t)?function(e){return t=e,Kp.test(t)?function(e){return e.match(qp)||[]}(e):function(e){return e.split("")}(e);var t}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);var t;if(fh&&e[fh])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[fh]());var n=Sh(e);return(n==Ip?Jp:n==Np?Qp:Ph)(e)};function Ih(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Nh(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Ih(t[n])&&Ih(e[n])&&Object.keys(t[n]).length>0&&Nh(e[n],t[n])}))}var Lh={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 Rh(){var e="undefined"!=typeof document?document:{};return Nh(e,Lh),e}var Mh={document:Lh,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 zh(){var e="undefined"!=typeof window?window:{};return Nh(e,Mh),e}
vendor: 11,134 bytes, line 7
7function $h(e){return($h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hh(e,t){return(Hh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vh(){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(Et){return!1}}function Uh(e,t,n){return Uh=Vh()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Hh(o,n.prototype),o},Uh.apply(null,arguments)}function Wh(e){var t="function"==typeof Map?new Map:void 0;return Wh=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Uh(e,arguments,$h(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Hh(r,e)},Wh(e)}var Gh=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Wh(Array));function qh(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,qh(e)):t.push(e)})),t}function Kh(e,t){return Array.prototype.filter.call(e,t)}function Xh(e,t){var n=zh(),r=Rh(),o=[];if(!t&&e instanceof Gh)return e;if(!e)return new Gh(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Gh)return e;o=e}return new Gh(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Yh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=qh(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Zh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=qh(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Jh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=qh(t.map((function(e){return e.split(" ")})));return Kh(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Qh(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 ev(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function tv(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function nv(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function rv(){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),Xh(t).is(o))i.apply(t,n);else for(var r=Xh(t).parents(),a=0;a<r.length;a+=1)Xh(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 ov(){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 iv(){var e=zh();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function av(){var e=zh();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function uv(){if(this.length>0){var e=zh(),t=Rh(),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 sv(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function lv(){for(var e=zh(),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 cv(e,t){var n,r=zh();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 fv(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function dv(e){return Xh(Kh(this,e))}function pv(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function hv(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function vv(e){var t,n,r=zh(),o=Rh(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Xh(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 Gh){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function gv(){for(var e,t=Rh(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Gh)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function yv(e){var t,n,r=Rh();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 Gh)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 mv(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Xh(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Xh(t)}function bv(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Xh(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Xh(t)}function wv(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 Xh(t)}function Ev(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&&!Xh(r[o]).is(e)||t.push(r[o]);return Xh(t)}function xv(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Cv(){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}Xh.fn=Gh.prototype;var Dv="resize scroll".split(" ");function Sv(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)Dv.indexOf(e)<0&&(e in this[o]?this[o][e]():Xh(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Av=Sv("click"),Ov=Sv("focus"),kv=/^(?:0|[1-9]\d*)$/;function Bv(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var _v=Object.prototype,Fv=_v.hasOwnProperty,Tv=_v.toString,Pv=_v.propertyIsEnumerable,jv=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var Iv,Nv=(Iv=function(e,t){return e&&Lv(e,t,$v)},function(e,t){if(null==e)return e;if(!zv(e))return Iv(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Lv=function(e){return function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e}}();function Rv(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||kv.test(e))&&e>-1&&e%1==0&&e<t}var Mv=Array.isArray;function zv(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!function(e){var t,n,r=(n=typeof(t=e),!t||"object"!=n&&"function"!=n?""
7:Tv.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function $v(e){return zv(e)?function(e,t){var n,r,o=Mv(e)||function(e){return!!e&&"object"==typeof e}(r=n=e)&&zv(r)&&Fv.call(n,"callee")&&(!Pv.call(n,"callee")||"[object Arguments]"==Tv.call(n))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=o.length,a=!!i;for(var u in e)!Fv.call(e,u)||a&&("length"==u||Rv(u,i))||o.push(u);return o}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||_v))return jv(e);var t,n,r=[];for(var o in Object(e))Fv.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Hv(e){return e}var Vv=function(e,t){return(Mv(e)?Bv:Nv)(e,"function"==typeof t?t:Hv)};let Uv=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Wv=/^\s+|\s+$/g,Gv=/^[-+]0x[0-9a-f]+$/i,qv=/^0b[01]+$/i,Kv=/^0o[0-7]+$/i,Xv=parseInt,Yv="object"==typeof Be&&Be&&Be.Object===Object&&Be,Zv="object"==typeof self&&self&&self.Object===Object&&self,Jv=Yv||Zv||Function("return this")(),Qv=Object.prototype.toString,eg=Math.max,tg=Math.min,ng=function(){return Jv.Date.now()};function rg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function og(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==Qv.call(t))return NaN;var t;if(rg(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=rg(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Wv,"");var r=qv.test(e);return r||Kv.test(e)?Xv(e.slice(2),r?2:8):Gv.test(e)?NaN:+e}var ig=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return rg(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=ng();if(v(r))return y(r);u=setTimeout(g,(n=t-((e=r)-s),f?tg(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=ng(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=og(t)||0,rg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?eg(og(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(ng())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const ag={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function ug(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const sg=Array.isArray;function lg(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function cg(e){return void 0===e}function fg(e){return void 0!==e}const dg=ug("",{},[],void 0,void 0);function pg(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function hg(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 vg=["create","update","remove","destroy","pre","post"];function gg(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=ag;for(const c of vg)for(const t of e){const e=t[c];void 0!==e&&n[c].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;fg(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)cg(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,v=e.elm=fg(s)&&fg(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&v.setAttribute("id",c.slice(d+1,p)),f>0&&v.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](dg,e);if(sg(l))for(u=0;
vendor: 6,587 bytes, line 7
7u<l.length;++u){const e=l[u];null!=e&&r.appendChild(v,i(e,t))}else lg(e.text)&&r.appendChild(v,r.createTextNode(e.text));const g=e.data.hook;fg(g)&&(null===(a=g.create)||void 0===a||a.call(g,dg,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(fg(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;fg(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const v=t.elm=e.elm,g=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}cg(t.text)?fg(g)&&fg(y)?g!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,v=t.length-1,g=t[0],y=t[v],m=n.length-1,b=n[0],w=n[m];for(;p<=v&&h<=m;)null==g?g=t[++p]:null==y?y=t[--v]:null==b?b=n[++h]:null==w?w=n[--m]:pg(g,b)?(l(g,b,o),g=t[++p],b=n[++h]):pg(y,w)?(l(y,w,o),y=t[--v],w=n[--m]):pg(g,w)?(l(g,w,o),r.insertBefore(e,g.elm,r.nextSibling(y.elm)),g=t[++p],w=n[--m]):pg(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===u&&(u=hg(t,p,v)),c=u[b.key],cg(c)?r.insertBefore(e,i(b,o),g.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),g.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,g.elm))),b=n[++h]);(p<=v||h<=m)&&(p>v?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,v))}(v,g,y,o):fg(y)?(fg(e.text)&&r.setTextContent(v,""),a(v,null,y,0,y.length-1,o)):fg(g)?s(v,g,0,g.length-1):fg(e.text)&&r.setTextContent(v,""):e.text!==t.text&&(fg(g)&&s(v,g,0,g.length-1),r.setTextContent(v,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(void 0!==e.sel||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return ug(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),pg(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function yg(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&&yg(e,t[r].children,t[r].sel)}}function mg(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),sg(n)?r=n:lg(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(sg(t)?r=t:lg(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)lg(r[i])&&(r[i]=ug(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]||yg(a,r,e),ug(e,a,r,o,void 0)}function bg(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const wg={create:bg,update:bg};function Eg(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 xg={create:Eg,update:Eg},Cg=/[A-Z]/g;function Dg(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(Cg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Cg,"-$&").toLowerCase(),i[r]))}const Sg={create:Dg,update:Dg};function Ag(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++)Ag(e[r],t,n)}function Og(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Ag(r[n],t,e)}function kg(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Og(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Bg={create:kg,update:kg,destroy:kg};function _g(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 Fg={create:_g,update:_g},Tg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Pg=!1;function jg(e,t,n){var r;r=function(){e[t]=n},Tg((function(){Tg(r)}))}function Ig(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]||jg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Ng={pre:function(){Pg=!1},create:Ig,update:Ig,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Pg||(e.elm.offsetLeft,Pg=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Lg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Lg(n,t):"str
7ing"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(ug(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Rg(e,t,...n){const r=Lg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?mg(e,t,r[0].text):mg(e,t,r)}Rg||(Rg={});var Mg,zg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$g=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hg="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vg="["+Hg+"]",Ug="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Wg="\\d+",Gg="[a-z\\xdf-\\xf6\\xf8-\\xff]",qg="[^\\ud800-\\udfff"+Hg+Wg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Kg="\\ud83c[\\udffb-\\udfff]",Xg="[^\\ud800-\\udfff]",Yg="(?:\\ud83c[\\udde6-\\uddff]){2}",Zg="[\\ud800-\\udbff][\\udc00-\\udfff]",Jg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Qg="(?:"+Gg+"|"+qg+")",ey="(?:"+Jg+"|"+qg+")",ty="(?:"+Ug+"|"+Kg+")?",ny="[\\ufe0e\\ufe0f]?"+ty+"(?:\\u200d(?:"+[Xg,Yg,Zg].join("|")+")[\\ufe0e\\ufe0f]?"+ty+")*",ry="(?:"+["[\\u2700-\\u27bf]",Yg,Zg].join("|")+")"+ny,oy="(?:"+[Xg+Ug+"?",Ug,Yg,Zg,"[\\ud800-\\udfff]"].join("|")+")",iy=RegExp("['’]","g"),ay=RegExp(Ug,"g"),uy=RegExp(Kg+"(?="+Kg+")|"+oy+ny,"g"),sy=RegExp([Jg+"?"+Gg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Vg,Jg,"$"].join("|")+")",ey+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Vg,Jg+Qg,"$"].join("|")+")",Jg+"?"+Qg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Jg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Wg,ry].join("|"),"g"),ly=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),cy=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fy="object"==typeof Be&&Be&&Be.Object===Object&&Be,dy="object"==typeof self&&self&&self.Object===Object&&self,py=fy||dy||Function("return this")(),hy=(Mg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==Mg?void 0:Mg[e]});function vy(e){return ly.test(e)}var gy=Object.prototype.toString,yy=py.Symbol,my=yy?yy.prototype:void 0,by=my?my.toString:void 0;function wy(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==gy.call(t))return by?by.call(e):"";var t,n=e+"";return"0"==n&&1/e==-1/0?"-0":n}(e)}for(var Ey,xy=(Ey=function(e,t,n){return t=t.toLowerCase(),e+(n?Cy(wy(t).toLowerCase()):t)},function(e){return function(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=wy(e),void 0===t?(r=e,cy.test(r)?function(e){return e.match(sy)||[]}(e):function(e){return e.match(zg)||[]}(e)):e.match(t)||[];var r}((t=e,(t=wy(t))&&t.replace($g,hy).replace(ay,"")).replace(iy,"")),Ey,"");var t}),Cy=("toUpperCase",function(e){var t=vy(e=wy(e))?function(e){return vy(e)?e.match(uy)||[]:(t=e,t.split(""));var t}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}
vendor: 5,296 bytes, line 7
7(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),Dy=xy,Sy="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Ay={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Oy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Sy?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},ky={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},By=1;By<20;By++)ky["f"+By]=111+By;function _y(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Ay)r[Ay[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=Ty(d),v=Ay[h];if(d.length>1&&!v&&!Oy[d]&&!ky[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&v||(n?r.key=h:r.which=Fy(d)),v&&(r[v]=!p||null)}}catch(g){s=!0,l=g}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Fy(e){return e=Ty(e),ky[e]||e.toUpperCase().charCodeAt(0)}function Ty(e){return e=e.toLowerCase(),Oy[e]||e}var Py=_y,jy=function(e,t){return _y(e,{byKey:!0},t)},Iy=/^\s+|\s+$/g,Ny=/^[-+]0x[0-9a-f]+$/i,Ly=/^0b[01]+$/i,Ry=/^0o[0-7]+$/i,My=parseInt,zy="object"==typeof Be&&Be&&Be.Object===Object&&Be,$y="object"==typeof self&&self&&self.Object===Object&&self,Hy=zy||$y||Function("return this")(),Vy=Object.prototype.toString,Uy=Math.max,Wy=Math.min,Gy=function(){return Hy.Date.now()};function qy(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ky(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==Vy.call(t))return NaN;var t;if(qy(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=qy(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Iy,"");var r=Ly.test(e);return r||Ry.test(e)?My(e.slice(2),r?2:8):Ny.test(e)?NaN:+e}var Xy,Yy=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=Gy();if(v(r))return y(r);u=setTimeout(g,(n=t-((e=r)-s),f?Wy(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Gy(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Ky(t)||0,qy(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Uy(Ky(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Gy())},m},Zy=_e((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",x="[object Int8Array]",C="[object Int16Array]",D="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",O="[object Uint16Array]",k="[object Uint32Array]",B=/\w*$/,_=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,T={};T[o]=T["[object Array]"]=T[m]=T[b]=T[i]=T[a]=T[w]=T[E]=T[x]=T[C]=T[D]=T[l]=T[c]=T[f]=T[p]=T[h]=T[v]=T[g]=T[S]=T[A]=T[O]=T[k]=!0,T["[object Error]"]=T[u]=T[y]=!1;var P="object"==typeof Be&&Be&&Be.Object===Object&&Be,j="object"==typeof self&&self&&self.Object===Object&&self,I=P||j||Function("return this")(),N=t&&!t.nodeType&&t,L=N&&e&&!e.nodeType&&e,R=L&&L.exports===N;function M(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function $(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function U(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,q=Function.prototype,K=Object.prototype,X=I["__core-js_shared__"],Y=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");
7return e?"Symbol(src)_1."+e:""}(),Z=q.toString,J=K.hasOwnProperty,Q=K.toString,ee=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=R?I.Buffer:void 0,ne=I.Symbol,re=I.Uint8Array,oe=U(Object.getPrototypeOf,Object),ie=Object.create,ae=K.propertyIsEnumerable,ue=G.splice,se=Object.getOwnPropertySymbols,le=te?te.isBuffer:void 0,ce=U(Object.keys,Object),fe=Ie(I,"DataView"),de=Ie(I,"Map"),pe=Ie(I,"Promise"),he=Ie(I,"Set"),ve=Ie(I,"WeakMap"),ge=Ie(Object,"create"),ye=ze(fe),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ve),xe=ne?ne.prototype:void 0,Ce=xe?xe.valueOf:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new Se(e)}function ke(e,t,n){var r=e[t];J.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function _e(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Fe(e,t,n,r,d,y,_){var F;if(r&&(F=y?r(e,d,y,_):r(e)),void 0!==F)return F;if(!Ge(e))return e;var P,j,I,N=He(e);if(N){if(j=(P=e).length,I=P.constructor(j),j&&"string"==typeof P[0]&&J.call(P,"index")&&(I.index=P.index,I.input=P.input),F=I,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,F)}else{var L=Le(e),R=L==u||L==s;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||R&&!y){if(H(e))return y?e:{};if(F=function(e){return"function"!=typeof e.constructor||Me(e)?{}:Ge(t=oe(e))?ie(t):{};var t}(R?{}:e),!t)return function(e,t){return Pe(e,Ne(e),t)}(e,function(e,t){return e&&Pe(t,qe(t),e)}(F,e))}else{if(!T[L])return y?e:{};F=function(e,t,n,r){var o,u,s=e.constructor;switch(t){case m:return Te(e);case i:case a:return new s(+e);case b:return o=e,u=r?Te(o.buffer):o.buffer,new o.constructor(u,o.byteOffset,o.byteLength);case w:case E:case x:case C:case D:case S:case A:case O:case k:return function(e,t){var n=t?Te(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return $(t?n(V(e),!0):V(e),M,new e.constructor)}(e,r,n);case c:case v:return new s(e);case p:return function(e){var t=new e.constructor(e.source,B.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return $(t?n(W(e),!0):W(e),z,new e.constructor)}(e,r,n);case g:return function(e){return Ce?Object(Ce.call(e)):{}}(e)}}(e,L,Fe,t)}}_||(_=new Oe);var U=_.get(e);if(U)return U;if(_.set(e,F),!N)var G=n?function(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Ne)}(e):qe(e);return function(o,i){for(var a=-1,u=o?o.length:0;++a<u&&!1!==(s=o[a],l=a,G&&(s=e[l=s]),void ke(F,l,Fe(s,t,n,r,l,e,_))););var s,l}(G||e),F}function Te(e){var t=new e.constructor(e.byteLength);return new re(t).set(new re(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o];ke(n,a,e[a])}return n}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ie(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ge(e)||(t=e,Y&&Y in t))&&(We(e)||H(e)?ee:_).test(ze(e));var t}(o)?o:void 0}De.prototype.clear=function(){this.__data__=ge?ge(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(ge){var r=t[e];return r===n?void 0:r}return J.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:J.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?n:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=_e(t,e);return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},Se.prototype.get=function(e){var t=this.__data__,n=_e(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return _e(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new De,map:new(de||Se),string:new De}},Ae.prototype.delete=function(e){return je(this,e).delete(e)},Ae.prototype.get=function(e){return je(this,e).get(e)},Ae.prototype.has=function(e){return je(this,e).has(e)},Ae.prototype.set=function(e,t){return je(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new Se},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var Ne=se?U(se,Object):function(){return[]},Le=function(e){return Q.call(e)};function Re(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K)}function ze(e){if(null!=e){try{return Z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(fe&&Le(new fe(new ArrayBuffer(1)))!=b||de&&Le(new de)!=l||pe&&Le(pe.resolve())!=d||he&&Le(new he)!=h||ve&&Le(new ve)!=y)&&(Le=function(e){var t=Q.call(e),n=t==f?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case ye:return b;case me:return l;case be:return d;case we:return h;case Ee:return y}return t});var He=Array.isArray;function Ve(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!We(e);var t}var Ue=le||function(){return!1};function We(e){var t=Ge(e)?Q.call(e):"";return t==u||t==s}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ve(e)?function(e,t){var n,r,i=He(e)||function(e){return!!e&&"object"==typeof e}(r=n=e)&&Ve(r)&&J.call(n,"callee")&&(!ae.call(n,"callee")||Q.call(n)==o)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=i.length,u=!!a;for(var s in e)!J.call(e,s)||u&&("length"==s||Re(s,a))||i.push(s);return i}(e):function(e){if(!Me(e))return ce(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Fe(e,!0,!0)}}));function Jy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Qy=0;function em(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
8/**
9 * Takes a string with placeholder variables like `%{smart_count} file selected`
10 * and replaces it with values from options `{smart_count: 5}`
11 *
12 * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
13 * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
14 *
15 * @param {string} phrase that needs interpolation, with placeholders
16 * @param {object} options with values that will be used to replace placeholders
17 * @returns {any[]} interpolated
18 */}function tm(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=em(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var nm=(Xy=function(e){return"__private_"+Qy+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Xy,{value:rm}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Jy(this,Xy)[Xy],this):Jy(this,Xy)[Xy](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(n=this.locale.strings,r=e,!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`missing str
18ing: ${e}`);var n,r;const o=this.locale.strings[e];if("object"==typeof o){if(t&&void 0!==t.smart_count)return tm(o[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return tm(o,t)}});function rm(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 om=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},im={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},am=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 um(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}um.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 sm=/[\/\+\.]/,lm=0;var cm=function(e){return"__private_"+lm+++"_"+e}("publish");class fm{constructor(){Object.defineProperty(this,cm,{value:dm}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,cm)[cm](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function dm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}fm.VERSION="2.0.3";var pm=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)}},hm={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function vm(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>
18{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var gm=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};var ym={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}}},mm={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}"}}},bm=im;let wm,Em;function xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Cm=0;function Dm(e){return"__private_"+Cm+++"_"+e}const{nanoid:Sm}=bm,{justErrorsLogger:Am,debugLogger:Om}=ym;class km 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 Bm extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var _m=Dm("plugins"),Fm=Dm("storeUnsubscribe"),Tm=Dm("emitter"),Pm=Dm("preProcessors"),jm=Dm("uploaders"),Im=Dm("postProcessors"),Nm=Dm("checkRestrictions"),Lm=Dm("checkMinNumberOfFiles"),Rm=Dm("checkRequiredMetaFieldsOnFile"),Mm=Dm("checkRequiredMetaFields"),zm=Dm("showOrLogErrorAndThrow"),$m=Dm("assertNewUploadAllowed"),Hm=Dm("checkAndCreateFileStateObject"),Vm=Dm("startIfAutoProceed"),Um=Dm("addListeners"),Wm=Dm("updateOnlineStatus"),Gm=Dm("createUpload"),qm=Dm("getUpload"),Km=Dm("removeUpload"),Xm=Dm("runUpload");wm=Symbol.for("uppy test: getPlugins"),Em=Symbol.for("uppy test: createUpload");class Ym{constructor(e){Object.defineProperty(this,Xm,{value:lb}),Object.defineProperty(this,Km,{value:sb}),Object.defineProperty(this,qm,{value:ub}),Object.defineProperty(this,Gm,{value:ab}),Object.defineProperty(this,Um,{value:ib}),Object.defineProperty(this,Vm,{value:ob}
vendor: 22,512 bytes, line 18
18),Object.defineProperty(this,Hm,{value:rb}),Object.defineProperty(this,$m,{value:nb}),Object.defineProperty(this,zm,{value:tb}),Object.defineProperty(this,Mm,{value:eb}),Object.defineProperty(this,Rm,{value:Qm}),Object.defineProperty(this,Lm,{value:Jm}),Object.defineProperty(this,Nm,{value:Zm}),Object.defineProperty(this,_m,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Fm,{writable:!0,value:void 0}),Object.defineProperty(this,Tm,{writable:!0,value:om()}),Object.defineProperty(this,Pm,{writable:!0,value:new Set}),Object.defineProperty(this,jm,{writable:!0,value:new Set}),Object.defineProperty(this,Im,{writable:!0,value:new Set}),Object.defineProperty(this,Wm,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=mm;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new fm,logger:Am,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=Om),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=ig(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:gm(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),xm(this,Fm)[Fm]=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),xm(this,Um)[Um]()}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];xm(this,Tm)[Tm].emit(e,...n)}on(e,t){return xm(this,Tm)[Tm].on(e,t),this}once(e,t){return xm(this,Tm)[Tm].once(e,t),this}off(e,t){return xm(this,Tm)[Tm].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 nm([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){xm(this,Pm)[Pm].add(e)}removePreProcessor(e){return xm(this,Pm)[Pm].delete(e)}addPostProcessor(e){xm(this,Im)[Im].add(e)}removePostProcessor(e){return xm(this,Im)[Im].delete(e)}addUploader(e){xm(this,jm)[jm].add(e)}removeUploader(e){return xm(this,jm)[jm].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 xm(this,Nm)[Nm](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){xm(this,$m)[$m](e);const{files:t}=this.getState();let n=xm(this,Hm)[Hm](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}`),xm(this,Vm)[Vm](),n.id}addFiles(e){xm(this,$m)[$m]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=xm(this,Hm)[Hm](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&&xm(this,Vm)[Vm](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=xm(this,Gm)[Gm](t,{forceAllowNewUpload:!0});return xm(this,Xm)[Xm](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=xm(this,Gm)[Gm]([e],{forceAllowNewUpload:!0});return xm(this,Xm)[Xm](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in xm(this,_m)[_m]?xm(this,_m)[_m][n.type].push(n):xm(this,_m)[_m][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(xm(this,_m)[_m])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[wm](e){return xm(this,_m)[_m][e]}iteratePlugins(e){Object.values(xm(this,_m)[_m]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=xm(this,_m)[_m][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),xm(this,Fm)[Fm](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",xm(this,Wm)[Wm]),window.removeEventListener("offline",xm(this,Wm)[Wm]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?xm(this,Xm)[Xm](e):(xm(this,Km)[Km](e),Promise.reject(new Error("Nonexistent upload")))}[Em](){return xm(this,Gm)[Gm](...arguments)}addResultData(e,t){if(!xm(this,qm)[qm](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=xm(this,_m)[_m].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((()=>{xm(this,Lm)[Lm](t),xm(this,Mm)[Mm](t)})).catch((e=>{xm(this,zm)[zm](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=xm(this,Gm)[Gm](r);return xm(this,Xm)[Xm](o)})).catch((e=>{xm(this,zm)[zm](e,{showInformer:!1})})))}}function Zm(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 km(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new um(e,sm||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new km(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 km(this.i18n("exceedsSize",{size:am(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new km(this.i18n("exceedsSize",{size:am(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new km(this.i18n("inferiorSize",{size:am(r)}))}function Jm(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new km(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Qm(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 km(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),xm(this,zm)[zm](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function eb(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return xm(this,Rm)[Rm](t)}));if(t.length)throw new Bm(t,`${this.i18n("missingRequiredMetaField")}`)}function tb(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 nb(e){const{allowNewUpload:t}=this.getState();!1===t&&xm(this,zm)[zm](new km(this.i18n("noMoreFilesAllowed")),{file:e})}function rb(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=pm(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in hm?hm[n]:"application/octet-stream"}(t),r=(u=n,(s=t).name?s.name:"image"===u.split("/")[0]?`${u.split("/")[0]}.${u.split("/")[1]}`:"noname"),o=pm(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${vm(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${vm(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});var u,s;if(this.checkIfFileAlreadyExists(a)){const e=new km(this.i18n("noDuplicates",{fileName:r}));xm(this,zm)[zm](e,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const c=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:i,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(f,e);!1===d?xm(this,zm)[zm](new km("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof d&&null!==d&&(f=d);try{const t=Object.keys(e).map((t=>e[t]));xm(this,Nm)[Nm](f,t)}catch(u){xm(this,zm)[zm](u,{file:f})}return f}function ob(){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 ib(){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}),xm(this,zm)[zm](e,{throwErr:!1})}else xm(this,zm)[zm](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:xm(this,Im)[Im].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&&xm(this,Rm)[Rm](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",xm(this,Wm)[Wm]),window.addEventListener("offline",xm(this,Wm)[Wm]),setTimeout(xm(this,Wm)[Wm],3e3))}function ab(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=Sm();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 ub(e){const{currentUploads:t}=this.getState();return t[e]}function sb(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function lb(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...xm(this,Pm)[Pm],...xm(this,jm)[jm],...xm(this,Im)[Im]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),xm(this,Km)[Km](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),xm(this,Km)[Km](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Ym.VERSION="2.1.3";var cb=Ym,fb=_e((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 v(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]
vendor: 4,628 bytes, line 18
18);return g(e,u,o,i,null)}function g(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)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var e;x.__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),F(n,o),o.__e!=i&&w(o)))}))}function C(e,t,n,r,o,i,a,u,s,l){var d,p,h,v,m,w,E,x=r&&r.__k||f,C=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=x[d])||h&&v.key==h.key&&v.type===h.type)x[d]=void 0;else for(p=0;p<C;p++){if((h=x[p])&&v.key==h.key&&v.type===h.type){x[p]=void 0;break}h=null}_(e,v,h=h||c,o,i,a,u,s,l),m=v.__e,(p=v.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,v),E.push(p,v.__c||m,v)),null!=m?(null==w&&(w=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=D(v,s,e):s=S(e,v,h,x,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!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=b(r,d+1)),P(x[d],x[d]));if(E)for(d=0;d<E.length;d++)T(E[d],E[++d],E[++d])}function D(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?D(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){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function _(e,t,o,i,a,u,s,l,f){var d,v,g,w,E,x,D,S,A,k,B,_=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(f=o.__h,l=t.__e=o.__e,t.__h=null,u=[l]),(d=r.__b)&&d(t);try{e:if("function"==typeof _){if(S=t.props,A=(d=_.contextType)&&i[d.__c],k=d?A?A.props.value:d.__:i,o.__c?D=(v=t.__c=o.__c).__=v.__E:("prototype"in _&&_.prototype.render?t.__c=v=new _(S,k):(t.__c=v=new m(S,k),v.constructor=_,v.render=j),A&&A.sub(v),v.props=S,v.state||(v.state={}),v.context=k,v.__n=i,g=v.__d=!0,v.__h=[]),null==v.__s&&(v.__s=v.state),null!=_.getDerivedStateFromProps&&(v.__s==v.state&&(v.__s=p({},v.__s)),p(v.__s,_.getDerivedStateFromProps(S,v.__s))),w=v.props,E=v.state,g)null==_.getDerivedStateFromProps&&null!=v.componentWillMount&&v.componentWillMount(),null!=v.componentDidMount&&v.__h.push(v.componentDidMount);else{if(null==_.getDerivedStateFromProps&&S!==w&&null!=v.componentWillReceiveProps&&v.componentWillReceiveProps(S,k),!v.__e&&null!=v.shouldComponentUpdate&&!1===v.shouldComponentUpdate(S,v.__s,k)||t.__v===o.__v){v.props=S,v.state=v.__s,t.__v!==o.__v&&(v.__d=!1),v.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEac
vendor: 47,586 bytes, lines 18-24
18h((function(e){e&&(e.__=t)})),v.__h.length&&s.push(v);break e}null!=v.componentWillUpdate&&v.componentWillUpdate(S,v.__s,k),null!=v.componentDidUpdate&&v.__h.push((function(){v.componentDidUpdate(w,E,x)}))}v.context=k,v.props=S,v.state=v.__s,(d=r.__r)&&d(t),v.__d=!1,v.__v=t,v.__P=e,d=v.render(v.props,v.state,v.context),v.state=v.__s,null!=v.getChildContext&&(i=p(p({},i),v.getChildContext())),g||null==v.getSnapshotBeforeUpdate||(x=v.getSnapshotBeforeUpdate(w,E)),B=null!=d&&d.type===y&&null==d.key?d.props.children:d,C(e,Array.isArray(B)?B:[B],t,o,i,a,u,s,l,f),v.base=t.__e,t.__h=null,v.__h.length&&s.push(v),D&&(v.__E=v.__=null),v.__e=!1}else null==u&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=function(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!g&&(g?l.localName===g:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)p===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=v.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,v,p,i,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,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 v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&O(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}(o.__e,t,o,i,a,u,s,f);(d=r.diffed)&&d(t)}catch(F){t.__v=null,(f||null!=u)&&(t.__e=l,t.__h=!!f,u[u.indexOf(l)]=null),r.__e(F,t,o)}}function F(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(n){r.__e(n,t.__v)}}))}function T(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(o){r.__e(o,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||T(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){r.__e(a,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function I(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],_(t,e=(!i&&o||t).__k=v(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),F(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(i){e=i}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,x.__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),g(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=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),db=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 nm([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 pb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var hb=0;const{render:vb}=fb;var gb=function(e){return"__private_"+hb+++"_"+e}("updateUI");class yb extends db{constructor(){super(...arguments),Object.defineProperty(this,gb,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return pb(this,gb)[gb]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(vb(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),vb(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 yb)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=pb(this,gb))[gb])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var mb=yb;const{debugLogger:bb}=ym;var wb=cb,Eb=cb,xb=mb,Cb=db,Db=bb;wb.Uppy=Eb,wb.UIPlugin=xb,wb.BasePlugin=Cb,wb.debugLogger=Db;class Sb 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 Ab=Sb,Ob=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new Ab(e)}))};class kb extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Bb,_b,Fb,Tb,Pb,jb=kb;function Ib(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nb=0;function Lb(e){return"__private_"+Nb+++"_"+e}async function Rb(e){if(401===e.status)throw new jb;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 Mb=(_b=Lb("getPostResponseFunc"),Fb=Lb("getUrl"),Tb=Lb("errorHandler"),Pb=Bb=class e{constructor(e,t){Object.defineProperty(this,Tb,{value:$b}),Object.defineProperty(this,Fb,{value:zb}),Object.defineProperty(this,_b,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Ib(this,Fb)[Fb](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Ob(Ib(this,Fb)[Fb](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Ib(this,_b)[_b](t)).then(Rb).catch(Ib(this,Tb)[Tb]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Ob(Ib(this,Fb)[Fb](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Ib(this,_b)[_b](n)).then(Rb).catch(Ib(this,Tb)[Tb](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Ob(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Ib(this,_b)[_b](n)).then(Rb).catch(Ib(this,Tb)[Tb](r,e))}},Bb.VERSION="2.0.4",Bb.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Bb.VERSION}`},Pb);function zb(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function $b(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Ib(this,Fb)[Fb](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Hb,Vb,Ub,Wb,Gb,qb={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let Kb,Xb;function Yb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Zb=0;function Jb(e){return"__private_"+Zb+++"_"+e}var Qb,ew,tw=(Hb=Jb("queued"),Vb=Jb("emitter"),Ub=Jb("isOpen"),Wb=Jb("socket"),Gb=Jb("handleMessage"),Kb=Symbol.for("uppy test: getSocket"),Xb=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Hb,{writable:!0,value:[]}),Object.defineProperty(this,Vb,{writable:!0,value:om()}),Object.defineProperty(this,Ub,{writable:!0,value:!1}),Object.defineProperty(this,Wb,{writable:!0,value:void 0}),Object.defineProperty(this,Gb,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return Yb(this,Ub)[Ub]}[Kb](){return Yb(this,Wb)[Wb]}[Xb](){return Yb(this,Hb)[Hb]}open(){Yb(this,Wb)[Wb]=new WebSocket(this.opts.target),Yb(this,Wb)[Wb].onopen=()=>{for(Yb(this,Ub)[Ub]=!0;Yb(this,Hb)[Hb].length>0&&Yb(this,Ub)[Ub];){const e=Yb(this,Hb)[Hb].shift();this.send(e.action,e.payload)}},Yb(this,Wb)[Wb].onclose=()=>{Yb(this,Ub)[Ub]=!1},Yb(this,Wb)[Wb].onmessage=Yb(this,Gb)[Gb]}close(){var e;null==(e=Yb(this,Wb)[Wb])||e.close()}send(e,t){Yb(this,Ub)[Ub]?Yb(this,Wb)[Wb].send(JSON.stringify({action:e,payload:t})):Yb(this,Hb)[Hb].push({action:e,payload:t})}on(e,t){Yb(this,Vb)[Vb].on(e,t)}emit(e,t){Yb(this,Vb)[Vb].emit(e,t)}once(e,t){Yb(this,Vb)[Vb].once(e,t)}}),nw={RequestClient:Mb,Provider:class extends Mb{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||qb}},Socket:tw},rw=ig((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function ow(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var iw=0;function aw(e){return"__private_"+iw+++"_"+e}var uw=(Qb=aw("emitter"),ew=aw("events"),class{constructor(e){Object.defineProperty(this,Qb,{writable:!0,value:void 0}),Object.defineProperty(this,ew,{writable:!0,value:[]}),ow(this,Qb)[Qb]=e}on(e,t){return ow(this,ew)[ew].push([e,t]),ow(this,Qb)[Qb].on(e,t)}remove(){for(const[e,t]of ow(this,ew)[ew].splice(0))ow(this,Qb)[Qb].off(e,t)}});function sw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lw=0;function cw(e){return"__private_"+lw+++"_"+e}var fw=cw("aliveTimer"),dw=cw("isDone"),pw=cw("onTimedOut"),hw=cw("timeout"),vw=class{constructor(e,t){Object.defineProperty(this,fw,{writable:!0,value:void 0}),Object.defineProperty(this,dw,{writable:!0,value:!1}),Object.defineProperty(this,pw,{writable:!0,value:void 0}),Object.defineProperty(this,hw,{writable:!0,value:void 0}),sw(this,hw)[hw]=e,sw(this,pw)[pw]=t}progress(){sw(this,dw)[dw]||sw(this,hw)[hw]>0&&(clearTimeout(sw(this,fw)[fw]),sw(this,fw)[fw]=setTimeout(sw(this,pw)[pw],sw(this,hw)[hw]))}done(){sw(this,dw)[dw]||(clearTimeout(sw(this,fw)[fw]),sw(this,fw)[fw]=null,sw(this,dw)[dw]=!0)}};function gw(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yw=0;function mw(e){return"__private_"+yw+++"_"+e}function bw(){return new Error("Cancelled")}var ww=mw("activeRequests"),Ew=mw("queuedHandlers"),xw=mw("call"),Cw=mw("queueNext"),Dw=mw("next"),Sw=mw("queue"),Aw=mw("dequeue");function Ow(e){gw(this,ww)[ww]+=1;let t,n=!1;try{t=e()}catch(r){throw gw(this,ww)[ww]-=1,r}return{abort:()=>{n||(n=!0,gw(this,ww)[ww]-=1,t(),gw(this,Cw)[Cw]())},done:()=>{n||(n=!0,gw(this,ww)[ww]-=1,gw(this,Cw)[Cw]())}}}function kw(){queueMicrotask((()=>gw(this,Dw)[Dw]()))}function Bw(){if(gw(this,ww)[ww]>=this.limit)return;if(0===gw(this,Ew)[Ew].length)return;const e=gw(this,Ew)[Ew].shift(),t=gw(this,xw)[xw](e.fn);e.abort=t.abort,e.done=t.done}function _w(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{gw(this,Aw)[Aw](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=gw(this,Ew)[Ew].findIndex((e=>n.priority>e.priority));return-1===r?gw(this,Ew)[Ew].push(n):gw(this,Ew)[Ew].splice(r,0,n),n}function Fw(e){const t=gw(this,Ew)[Ew].indexOf(e);-1!==t&&gw(this,Ew)[Ew].splice(t,1)}var Tw,Pw,jw={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Aw,{value:Fw}),Object.defineProperty(this,Sw,{value:_w}),Object.defineProperty(this,Dw,{value:Bw}),Object.defineProperty(this,Cw,{value:kw}),Object.defineProperty(this,xw,{value:Ow}),Object.defineProperty(this,ww,{writable:!0,value:0}),Object.defineProperty(this,Ew,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return gw(this,ww)[ww]<this.limit?gw(this,xw)[xw](e):gw(this,Sw)[Sw](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=bw()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Iw=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Nw={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Lw}=bm,{Provider:Rw,RequestClient:Mw,Socket:zw}=nw,{RateLimitedQueue:$w,internalRateLimitedQueue:Hw}=jw;function Vw(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})),Iw(e)?(n=new Ab(n,e),n):(n.request=e,n)}function Uw(e){return e.data.slice(0,e.data.size,e.meta.type)}var Ww=(Pw=Tw=class extends db{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Nw;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 Iw(t)&&(n=new Ab(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Hw in this.opts?this.requests=this.opts[Hw]:this.requests=new $w(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=Uw(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=Uw(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 uw(this.uppy);const a=new vw(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=Lw();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=Vw(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=Vw(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?Rw:Mw)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new zw({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new uw(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=>rw(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 vw(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 function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(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[Hw]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Tw.VERSION="2.0.6",Pw),Gw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qw(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kw,Xw,Yw=function(e){return e&&e.Math==Math&&e},Zw=Yw("object"==typeof globalThis&&globalThis)||Yw("object"==typeof window&&window)||Yw("object"==typeof self&&self)||Yw("object"==typeof Gw&&Gw)||function(){return this}()||Function("return this")(),Jw=Object.defineProperty,Qw=function(e,t){try{Jw(Zw,e,{value:t,configurable:!0,writable:!0})}catch(Oj){Zw[e]=t}return t},eE=Zw["__core-js_shared__"]||Qw("__core-js_shared__",{}),tE=qw((function(e){(e.exports=function(e,t){return eE[e]||(eE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),nE=Function.prototype,rE=nE.bind,oE=nE.call,iE=rE&&rE.bind(oE),aE=rE?function(e){return e&&iE(oE,e)}:function(e){return e&&function(){return oE.apply(e,arguments)}},uE=Zw.TypeError,sE=function(e){if(null==e)throw uE("Can't call method on "+e);return e},lE=Zw.Object,cE=function(e){return lE(sE(e))},fE=aE({}.hasOwnProperty),dE=Object.hasOwn||function(e,t){return fE(cE(e),t)},pE=0,hE=Math.random(),vE=aE(1..toString),gE=function(e){return"Symbol("+(void 0===e?"":e)+")_"+vE(++pE+hE,36)},yE=function(e){return"function"==typeof e},mE=function(e){return yE(e)?e:void 0},bE=function(e,t){return arguments.length<2?mE(Zw[e]):Zw[e]&&Zw[e][t]},wE=bE("navigator","userAgent")||"",EE=Zw.process,xE=Zw.Deno,CE=EE&&EE.versions||xE&&xE.version,DE=CE&&CE.v8;DE&&(Xw=(Kw=DE.split("."))[0]>0&&Kw[0]<4?1:+(Kw[0]+Kw[1])),!Xw&&wE&&(!(Kw=wE.match(/Edge\/(\d+)/))||Kw[1]>=74)&&(Kw=wE.match(/Chrome\/(\d+)/))&&(Xw=+Kw[1]);var SE=Xw,AE=function(e){try{return!!e()}catch(t){return!0}},OE=!!Object.getOwnPropertySymbols&&!AE((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&SE&&SE<41})),kE=OE&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,BE=tE("wks"),_E=Zw.Symbol,FE=_E&&_E.for,TE=kE?_E:_E&&_E.withoutSetter||gE,PE=function(e){if(!dE(BE,e)||!OE&&"string"!=typeof BE[e]){var t="Symbol."+e;OE&&dE(_E,e)?BE[e]=_E[e]:BE[e]=kE&&FE?FE(t):TE(t)}return BE[e]},jE={};jE[PE("toStringTag")]="z";var IE="[object z]"===String(jE),NE=!AE((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),LE=function(e){return"object"==typeof e?null!==e:yE(e)},RE=Zw.document,ME=LE(RE)&&LE(RE.createElement),zE=function(e){return ME?RE.createElement(e):{}},$E=!NE&&!AE((function(){return 7!=Object.defineProperty(zE("div"),"a",{get:function(){return 7}}).a})),HE=Zw.String,VE=Zw.TypeError,UE=function(e){if(LE(e))return e;throw VE(HE(e)+" is not an object")},WE=Function.prototype.call,GE=WE.bind?WE.bind(WE):function(){return WE.apply(WE,arguments)},qE=aE({}.isPrototypeOf),KE=Zw.Object,XE=kE?function(e){return"symbol"==typeof e}:function(e){var t=bE("Symbol");return yE(t)&&qE(t.prototype,KE(e))},YE=Zw.String,ZE=function(e){try{return YE(e)}catch(t){return"Object"}},JE=Zw.TypeError,QE=function(e){if(yE(e))return e;throw JE(ZE(e)+" is not a function")},ex=function(e,t){var n=e[t];return null==n?void 0:QE(n)},tx=Zw.TypeError,nx=Zw.TypeError,rx=PE("toPrimitive"),ox=function(e){var t=function(e,t){if(!LE(e)||XE(e))return e;var n,r=ex(e,rx);if(r){if(n=GE(r,e,"string"),!LE(n)||XE(n))return n;throw nx("Can't convert object to primitive value")}return function(e,t){var n,r;if(yE(n=e.toString)&&!LE(r=GE(n,e)))return r;if(yE(n=e.valueOf)&&!LE(r=GE(n,e)))return r;throw tx("Can't convert object to primitive value")}(e)}(e);return XE(t)?t:t+""},ix=Zw.TypeError,ax=Object.defineProperty,ux={f:NE?ax:function(e,t,n){if(UE(e),t=ox(t),UE(n),$E)try{return ax(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ix("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},sx=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lx=NE?function(e,t,n){return ux.f(e,t,sx(1,n))}:function(e,t,n){return e[t]=n,e},cx=aE(Function.toString);yE(eE.inspectSource)||(eE.inspectSource=function(e){return cx(e)});var fx,dx,px,hx=eE.inspectSource,vx=Zw.WeakMap,gx=yE(vx)&&/native code/.test(hx(vx)),yx=tE("keys"),mx=function(e){return yx[e]||(yx[e]=gE(e))},bx={},wx=Zw.TypeError,Ex=Zw.WeakMap;if(gx||eE.state){var xx=eE.state||(eE.state=new Ex),Cx=aE(xx.get),Dx=aE(xx.has),Sx=aE(xx.set);fx=function(e,t){if(Dx(xx,e))throw new wx("Object already initialized");return t.facade=e,Sx(xx,e,t),t},dx=function(e){return Cx(xx,e)||{}},px=function(e){return Dx(xx,e)}}else{var Ax=mx("state");bx[Ax]=!0,fx=function(e,t){if(dE(e,Ax))throw new wx("Object already initialized");return t.facade=e,lx(e,Ax,t),t},dx=function(e){return dE(e,Ax)?e[Ax]:{}},px=function(e){return dE(e,Ax)}}var Ox={set:fx,get:dx,has:px,enforce:function(e){return px(e)?dx(e):fx(e,{})},getterFor:function(e){return function(t){var n;if(!LE(t)||(n=dx(t)).type!==e)throw wx("Incompatible receiver, "+e+" required");return n}}},kx=Function.prototype,Bx=NE&&Object.getOwnPropertyDescriptor,_x=dE(kx,"name"),Fx={EXISTS:_x,PROPER:_x&&"something"===function(){}.name,CONFIGURABLE:_x&&(!NE||NE&&Bx(kx,"name").configurable)},Tx=qw((function(e){var t=Fx.CONFIGURABLE,n=Ox.get,r=Ox.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;yE(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!dE(i,"name")||t&&i.name!==f)&&lx(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Zw?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:lx(e,n,i)):l?e[n]=i:Qw(n,i)})(Function.prototype,"toString",(function(){return yE(this)&&n(this).source||hx(this)}))})),Px=aE({}.toString),jx=aE("".slice),Ix=function(e){return jx(Px(e),8,-1)},Nx=PE("toStringTag"),Lx=Zw.Object,Rx="Arguments"==Ix(function(){return arguments}()),Mx=IE?Ix: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(n){}}(t=Lx(e),Nx))?n:Rx?Ix(t):"Object"==(r=Ix(t))&&yE(t.callee)?"Arguments":r},zx=IE?{}.toString:function(){return"[object "+Mx(this)+"]"};IE||Tx(Object.prototype,"toString",zx,{unsafe:!0});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},Hx=zE("span").classList,Vx=Hx&&Hx.constructor&&Hx.constructor.prototype,Ux=Vx===Object.prototype?void 0:Vx,Wx=aE(aE.bind),Gx=function(e,t){return QE(e),void 0===t?e:Wx?Wx(e,t):function(){return e.apply(t,arguments)}},qx=Zw.Object,Kx=aE("".split),Xx=AE((function(){return!qx("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ix(e)?Kx(e,""):qx(e)}:qx,Yx=Math.ceil,Zx=Math.floor,Jx=function(e){var t=+e;return t!=t||0===t?0:(t>0?Zx:Yx)(t)},Qx=Math.min,eC=function(e){return e>0?Qx(Jx(e),9007199254740991):0},tC=function(e){return eC(e.length)},nC=Array.isArray||function(e){return"Array"==Ix(e)},rC=function(){},oC=[],iC=bE("Reflect","construct"),aC=/^\s*(?:class|function)\b/,uC=aE(aC.exec),sC=!aC.exec(rC),lC=function(e){if(!yE(e))return!1;try{return iC(rC,oC,e),!0}catch(t){return!1}},cC=!iC||AE((function(){var e;return lC(lC.call)||!lC(Object)||!lC((function(){e=!0}))||e}))?function(e){if(!yE(e))return!1;switch(Mx(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sC||!!uC(aC,hx(e))}:lC,fC=PE("species"),dC=Zw.Array,pC=function(e,t){return new(nC(n=e)&&(r=n.constructor,(cC(r)&&(r===dC||nC(r.prototype))||LE(r)&&null===(r=r[fC]))&&(r=void 0)),void 0===r?dC:r)(0===t?0:t);var n,r},hC=aE([].push),vC=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=cE(s),v=Xx(h),g=Gx(l,c),y=tC(v),m=0,b=f||pC,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:hC(w,d)}else switch(e){case 4:return!1;case 7:hC(w,d)}return i?-1:r||o?o:w}},gC={forEach:vC(0),map:vC(1),filter:vC(2),find:vC(5),findIndex:vC(6)},yC=function(e,t){var n=[][e];return!!n&&AE((function(){n.call(null,t||function(){throw 1},1)}))},mC=gC.forEach,bC=yC("forEach")?[].forEach:function(e){return mC(this,e,arguments.length>1?arguments[1]:void 0)},wC=function(e){if(e&&e.forEach!==bC)try{lx(e,"forEach",bC)}catch(t){e.forEach=bC}};for(var EC in $x)$x[EC]&&wC(Zw[EC]&&Zw[EC].prototype);wC(Ux);var xC={}.propertyIsEnumerable,CC=Object.getOwnPropertyDescriptor,DC=CC&&!xC.call({1:2},1)?function(e){var t=CC(this,e);return!!t&&t.enumerable}:xC,SC={f:DC},AC=function(e){return Xx(sE(e))},OC=Object.getOwnPropertyDescriptor,kC={f:NE?OC:function(e,t){if(e=AC(e),t=ox(t),$E)try{return OC(e,t)}catch(n){}if(dE(e,t))return sx(!GE(SC.f,e,t),e[t])}},BC=Math.max,_C=Math.min,FC=function(e,t){var n=Jx(e);return n<0?BC(n+t,0):_C(n,t)},TC=function(e){return function(t,n,r){var o,i=AC(t),a=tC(i),u=FC(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}},PC={includes:TC(!0),indexOf:TC(!1)},jC=PC.indexOf,IC=aE([].push),NC=function(e,t){var n,r=AC(e),o=0,i=[];for(n in r)!dE(bx,n)&&dE(r,n)&&IC(i,n);for(;t.length>o;)dE(r,n=t[o++])&&(~jC(i,n)||IC(i,n));return i},LC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],RC=LC.concat("length","prototype"),MC={f:Object.getOwnPropertyNames||function(e){return NC(e,RC)}},zC={f:Object.getOwnPropertySymbols},$C=aE([].concat),HC=bE("Reflect","ownKeys")||function(e){var t=MC.f(UE(e)),n=zC.f;return n?$C(t,n(e)):t},VC=function(e,t){for(var n=HC(t),r=ux.f,o=kC.f,i=0;i<n.length;i++){var a=n[i];dE(e,a)||r(e,a,o(t,a))}},UC=/#|\.prototype\./,WC=function(e,t){var n=qC[GC(e)];return n==XC||n!=KC&&(yE(t)?AE(t):!!t)},GC=WC.normalize=function(e){return String(e).replace(UC,".").toLowerCase()},qC=WC.data={},KC=WC.NATIVE="N",XC=WC.POLYFILL="P",YC=WC,ZC=kC.f,JC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Zw:l?Zw[u]||Qw(u,{}):(Zw[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ZC(n,r))&&a.value:n[r],!YC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;VC(i,o)}(e.sham||o&&o.sham)&&lx(i,"sham",!0),Tx(n,r,i,e)}},QC=Object.keys||function(e){return NC(e,LC)},eD=AE((function(){QC(1)}));
19/*!
20 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
21 *
22 * Copyright (c) 2014-2017, Jon Schlinkert.
23 * Released under the MIT License.
24 */function tD(e){return"[object Object]"===Object.prototype.toString.call(e)}JC({target:"Object",stat:!0,forced:eD},{keys:function(e){return QC(cE(e))}});var nD={isHistory(e){return!1!==tD(t=e)&&(void 0===(n=t.constructor)||!1!==tD(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||ep.isOperationList(e.redos[0]))&&(0===e.undos.length||ep.isOperationList(e.undos[0]));var t,n,r}},rD=new WeakMap,oD=new WeakMap,iD={isHistoryEditor:e=>nD.isHistory(e.history)&&Gd.isEditor(e),isMerging:e=>oD.get(e),isSaving:e=>rD.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=iD.isMerging(e);oD.set(e,!1),t(),oD.set(e,n)},withoutSaving(e,t){var n=iD.isSaving(e);rD.set(e,!1),t(),rD.set(e,n)}},aD=Zw.String,uD=function(e){if("Symbol"===Mx(e))throw TypeError("Cannot convert a Symbol value to a string");return aD(e)},sD=function(){var e=UE(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},lD=Fx.PROPER,cD=RegExp.prototype,fD=cD.toString,dD=aE(sD),pD=AE((function(){return"/a/b"!=fD.call({source:"a",flags:"b"})})),hD=lD&&"toString"!=fD.name;(pD||hD)&&Tx(RegExp.prototype,"toString",(function(){var e=UE(this),t=uD(e.source),n=e.flags;return"/"+t+"/"+uD(void 0===n&&qE(cD,e)&&!("flags"in cD)?dD(e):n)}),{unsafe:!0});var vD,gD=NE?Object.defineProperties:function(e,t){UE(e);for(var n,r=AC(t),o=QC(t),i=o.length,a=0;i>a;)ux.f(e,n=o[a++],r[n]);return e},yD=bE("document","documentElement"),mD=mx("IE_PROTO"),bD=function(){},wD=function(e){return"<script>"+e+"<\/script>"},ED=function(e){e.write(wD("")),e.close();var t=e.parentWindow.Object;return e=null,t},xD=function(){try{vD=new ActiveXObject("htmlfile")}catch(r){}var e,t;xD="undefined"!=typeof document?document.domain&&vD?ED(vD):((t=zE("iframe")).style.display="none",yD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wD("document.F=Object")),e.close(),e.F):ED(vD);for(var n=LC.length;n--;)delete xD.prototype[LC[n]];return xD()};bx[mD]=!0;var CD=Object.create||function(e,t){var n;return null!==e?(bD.prototype=UE(e),n=new bD,bD.prototype=null,n[mD]=e):n=xD(),void 0===t?n:gD(n,t)},DD=PE("unscopables"),SD=Array.prototype;null==SD[DD]&&ux.f(SD,DD,{configurable:!0,value:CD(null)});var AD=function(e){SD[DD][e]=!0},OD=PC.includes;JC({target:"Array",proto:!0},{includes:function(e){return OD(this,e,arguments.length>1?arguments[1]:void 0)}}),AD("includes");var kD=PE("match"),BD=function(e){var t;return LE(e)&&(void 0!==(t=e[kD])?!!t:"RegExp"==Ix(e))},_D=Zw.TypeError,FD=function(e){if(BD(e))throw _D("The method doesn't accept regular expressions");return e},TD=PE("match"),PD=function(e){var t=/./;try{"/./"[e](t)}catch(Oj){try{return t[TD]=!1,"/./"[e](t)}catch(n){}}return!1},jD=aE("".indexOf);JC({target:"String",proto:!0,forced:!PD("includes")},{includes:function(e){return!!~jD(uD(sE(this)),uD(FD(e)),arguments.length>1?arguments[1]:void 0)}});var ID=/"/g,ND=aE("".replace);JC({target:"String",proto:!0,forced:AE((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=uD(sE(this)),r="<a",(r+=' name="'+ND(uD(t),ID,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var LD=function(e,t,n){var r,o;UE(e);try{if(!(r=ex(e,"return"))){if("throw"===t)throw n;return n}r=GE(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return UE(r),n},RD=function(e,t,n,r){try{return r?t(UE(n)[0],n[1]):t(n)}catch(o){LD(e,"throw",o)}},MD={},zD=PE("iterator"),$D=Array.prototype,HD=function(e){return void 0!==e&&(MD.Array===e||$D[zD]===e)},VD=function(e,t,n){var r=ox(t);r in e?ux.f(e,r,sx(0,n)):e[r]=n},UD=PE("iterator"),WD=function(e){if(null!=e)return ex(e,UD)||ex(e,"@@iterator")||MD[Mx(e)]},GD=Zw.TypeError,qD=function(e,t){var n=arguments.length<2?WD(e):t;if(QE(n))return UE(GE(n,e));throw GD(ZE(e)+" is not iterable")},KD=Zw.Array,XD=PE("iterator"),YD=!1;try{var ZD=0,JD={next:function(){return{done:!!ZD++}},return:function(){YD=!0}};JD[XD]=function(){return this},Array.from(JD,(function(){throw 2}))}catch(Cme){}var QD=function(e,t){if(!YD)return!1;var n=!1;try{var r={};r[XD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},eS=!QD((function(e){Array.from(e)}));JC({target:"Array",stat:!0,forced:eS},{from:function(e){var t=cE(e),n=cC(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Gx(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=WD(t),p=0;if(!d||this==KD&&HD(d))for(a=tC(t),u=n?new this(a):KD(a);a>p;p++)f=i?o(t[p],p):t[p],VD(u,p,f);else for(c=(l=qD(t,d)).next,u=n?new this:[];!(s=GE(c,l)).done;p++)f=i?RD(l,o,[s.value,p],!0):s.value,VD(u,p,f);return u.length=p,u}});var tS,nS,rS,oS=aE("".charAt),iS=aE("".charCodeAt),aS=aE("".slice),uS={charAt:function(e){return function(t,n){var r,o,i=uD(sE(t)),a=Jx(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=iS(i,a))<55296||r>56319||a+1===u||(o=iS(i,a+1))<56320||o>57343?e?oS(i,a):r:e?aS(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},sS=!AE((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lS=mx("IE_PROTO"),cS=Zw.Object,fS=cS.prototype,dS=sS?cS.getPrototypeOf:function(e){var t=cE(e);if(dE(t,lS))return t[lS];var n=t.constructor;return yE(n)&&t instanceof n?n.prototype:t instanceof cS?fS:null},pS=PE("iterator"),hS=!1;[].keys&&("next"in(rS=[].keys())?(nS=dS(dS(rS)))!==Object.prototype&&(tS=nS):hS=!0);var vS=null==tS||AE((function(){var e={};return tS[pS].call(e)!==e}));vS&&(tS={}),yE(tS[pS])||Tx(tS,pS,(function(){return this}));var gS={IteratorPrototype:tS,BUGGY_SAFARI_ITERATORS:hS},yS=ux.f,mS=PE("toStringTag"),bS=function(e,t,n){e&&!dE(e=n?e:e.prototype,mS)&&yS(e,mS,{configurable:!0,value:t})},wS=gS.IteratorPrototype,ES=function(){return this},xS=Zw.String,CS=Zw.TypeError,DS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=aE(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return UE(n),function(e){if("object"==typeof e||yE(e))return e;throw CS("Can't set "+xS(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),SS=Fx.PROPER,AS=Fx.CONFIGURABLE,OS=gS.IteratorPrototype,kS=gS.BUGGY_SAFARI_ITERATORS,BS=PE("iterator"),_S=function(){return this},FS=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=CD(wS,{next:sx(1,s)}),bS(u,l,!1),MD[l]=ES;var c,f,d,p=function(e){if(e===o&&m)return m;if(!kS&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",v=!1,g=e.prototype,y=g[BS]||g["@@iterator"]||o&&g[o],m=!kS&&y||p(o),b="Array"==t&&g.entries||y;if(b&&(c=dS(b.call(new e)))!==Object.prototype&&c.next&&(dS(c)!==OS&&(DS?DS(c,OS):yE(c[BS])||Tx(c,BS,_S)),bS(c,h,!0)),SS&&"values"==o&&y&&"values"!==y.name&&(AS?lx(g,"name","values"):(v=!0,m=function(){return GE(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entr
24ies")},a)for(d in f)(kS||v||!(d in g))&&Tx(g,d,f[d]);else JC({target:t,proto:!0,forced:kS||v},f);return g[BS]!==m&&Tx(g,BS,m,{name:o}),MD[t]=m,f},TS=uS.charAt,PS=Ox.set,jS=Ox.getterFor("String Iterator");FS(String,"String",(function(e){PS(this,{type:"String Iterator",string:uD(e),index:0})}),(function(){var e,t=jS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=TS(n,r),t.index+=e.length,{value:e,done:!1})}));var IS,NS=kC.f,LS=aE("".endsWith),RS=aE("".slice),MS=Math.min,zS=PD("endsWith"),$S=!(zS||(IS=NS(String.prototype,"endsWith"),!IS||IS.writable));JC({target:"String",proto:!0,forced:!$S&&!zS},{endsWith:function(e){var t=uD(sE(this));FD(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:MS(eC(n),r),i=uD(e);return LS?LS(t,i,o):RS(t,o-i.length,o)===i}});var HS=aE([].join),VS=Xx!=Object,US=yC("join",",");JC({target:"Array",proto:!0,forced:VS||!US},{join:function(e){return HS(AC(this),void 0===e?",":e)}});var WS=PE("species"),GS=function(e){return SE>=51||!AE((function(){var t=[];return(t.constructor={})[WS]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},qS=gC.map,KS=GS("map");JC({target:"Array",proto:!0,forced:!KS},{map:function(e){return qS(this,e,arguments.length>1?arguments[1]:void 0)}});var XS=Zw.RegExp,YS=AE((function(){var e=XS("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ZS=YS||AE((function(){return!XS("a","y").sticky})),JS={BROKEN_CARET:YS||AE((function(){var e=XS("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ZS,UNSUPPORTED_Y:YS},QS=Zw.RegExp,eA=AE((function(){var e=QS(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),tA=Zw.RegExp,nA=AE((function(){var e=tA("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),rA=Ox.get,oA=tE("native-string-replace",String.prototype.replace),iA=RegExp.prototype.exec,aA=iA,uA=aE("".charAt),sA=aE("".indexOf),lA=aE("".replace),cA=aE("".slice),fA=function(){var e=/a/,t=/b*/g;return GE(iA,e,"a"),GE(iA,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),dA=JS.BROKEN_CARET,pA=void 0!==/()??/.exec("")[1];(fA||pA||dA||eA||nA)&&(aA=function(e){var t,n,r,o,i,a,u,s=this,l=rA(s),c=uD(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=GE(aA,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=dA&&s.sticky,h=GE(sD,s),v=s.source,g=0,y=c;if(p&&(h=lA(h,"y",""),-1===sA(h,"g")&&(h+="g"),y=cA(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==uA(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),pA&&(n=new RegExp("^"+v+"$(?!\\s)",h)),fA&&(r=s.lastIndex),o=GE(iA,p?n:s,y),p?o?(o.input=cA(o.input,g),o[0]=cA(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:fA&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),pA&&o&&o.length>1&&GE(oA,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=CD(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}
vendor: 93,400 bytes, lines 24-39
24);var hA=aA;JC({target:"RegExp",proto:!0,forced:/./.exec!==hA},{exec:hA});var vA=Function.prototype,gA=vA.apply,yA=vA.bind,mA=vA.call,bA="object"==typeof Reflect&&Reflect.apply||(yA?mA.bind(gA):function(){return mA.apply(gA,arguments)}),wA=PE("species"),EA=RegExp.prototype,xA=function(e,t,n,r){var o=PE(e),i=!AE((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!AE((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[wA]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=aE(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=aE(e),s=t.exec;return s===hA||s===EA.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Tx(String.prototype,e,s[0]),Tx(EA,o,s[1])}r&&lx(EA[o],"sham",!0)},CA=uS.charAt,DA=function(e,t,n){return t+(n?CA(e,t).length:1)},SA=Math.floor,AA=aE("".charAt),OA=aE("".replace),kA=aE("".slice),BA=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_A=/\$([$&'`]|\d{1,2})/g,FA=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=_A;return void 0!==o&&(o=cE(o),s=BA),OA(i,s,(function(i,s){var l;switch(AA(s,0)){case"$":return"$";case"&":return e;case"`":return kA(t,0,n);case"'":return kA(t,a);case"<":l=o[kA(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=SA(c/10);return 0===f?i:f<=u?void 0===r[f-1]?AA(s,1):r[f-1]+AA(s,1):i}l=r[c-1]}return void 0===l?"":l}))},TA=Zw.TypeError,PA=function(e,t){var n=e.exec;if(yE(n)){var r=GE(n,e,t);return null!==r&&UE(r),r}if("RegExp"===Ix(e))return GE(hA,e,t);throw TA("RegExp#exec called on incompatible receiver")},jA=PE("replace"),IA=Math.max,NA=Math.min,LA=aE([].concat),RA=aE([].push),MA=aE("".indexOf),zA=aE("".slice),$A="$0"==="a".replace(/./,"$0"),HA=!!/./[jA]&&""===/./[jA]("a","$0");xA("replace",(function(e,t,n){var r=HA?"$":"$0";return[function(e,n){var r=sE(this),o=null==e?void 0:ex(e,jA);return o?GE(o,e,r,n):GE(t,uD(r),e,n)},function(e,o){var i=UE(this),a=uD(e);if("string"==typeof o&&-1===MA(o,r)&&-1===MA(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=yE(o);s||(o=uD(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=PA(i,a);if(null===d)break;if(RA(f,d),!l)break;""===uD(d[0])&&(i.lastIndex=DA(a,eC(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=uD((d=f[g])[0]),m=IA(NA(Jx(d.index),a.length),0),b=[],w=1;w<d.length;w++)RA(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=LA([y],b,m,a);void 0!==E&&RA(x,E);var C=uD(bA(o,void 0,x))}else C=FA(y,a,m,b,E,o);m>=v&&(h+=zA(a,v,m)+C,v=m+y.length)}return h+zA(a,v)}]}),!!AE((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!$A||HA);
25/*! *****************************************************************************
26Copyright (c) Microsoft Corporation.
27
28Permission to use, copy, modify, and/or distribute this software for any
29purpose with or without fee is hereby granted.
30
31THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
32REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
34INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
35LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
36OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37PERFORMANCE OF THIS SOFTWARE.
38***************************************************************************** */
39var VA=function(e,t){return(VA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function UA(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}VA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var WA=function(){return WA=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},WA.apply(this,arguments)};function GA(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 qA(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(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function KA(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var XA=0,YA=function(){this.id=""+XA++},ZA=Ox.set,JA=Ox.getterFor("Array Iterator"),QA=FS(Array,"Array",(function(e,t){ZA(this,{type:"Array Iterator",target:AC(e),index:0,kind:t})}),(function(){var e=JA(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");MD.Arguments=MD.Array,AD("keys"),AD("values"),AD("entries");var eO=function(e,t,n){for(var r in t)Tx(e,r,t[r],n);return e},tO=Zw.Array,nO=Math.max,rO=function(e,t,n){for(var r=tC(e),o=FC(t,r),i=FC(void 0===n?r:n,r),a=tO(nO(i-o,0)),u=0;o<i;o++,u++)VD(a,u,e[o]);return a.length=u,a},oO=MC.f,iO="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],aO={f:function(e){return iO&&"Window"==Ix(e)?function(e){try{return oO(e)}catch(t){return rO(iO)}}(e):oO(AC(e))}},uO=AE((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),sO=Object.isExtensible,lO=AE((function(){sO(1)}))||uO?function(e){return!!LE(e)&&(!uO||"ArrayBuffer"!=Ix(e))&&(!sO||sO(e))}:sO,cO=!AE((function(){return Object.isExtensible(Object.preventExtensions({}))})),fO=qw((function(e){var t=ux.f,n=!1,r=gE("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=MC.f,t=aE([].splice),o={};o[r]=1,e(o).length&&(MC.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},JC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:aO.f}))},fastKey:function(e,t){if(!LE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!dE(e,r)){if(!lO(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!dE(e,r)){if(!lO(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return cO&&n&&lO(e)&&!dE(e,r)&&i(e),e}};bx[r]=!0})),dO=Zw.TypeError,pO=function(e,t){this.stopped=e,this.result=t},hO=pO.prototype,vO=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=Gx(t,c),v=function(e){return r&&LD(r,"normal",e),new pO(!0,e)},g=function(e){return f?(UE(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=WD(e)))throw dO(ZE(e)+" is not iterable");if(HD(o)){for(i=0,a=tC(e);a>i;i++)if((u=g(e[i]))&&qE(hO,u))return u;return new pO(!1)}r=qD(e,o)}for(s=r.next;!(l=GE(s,r)).done;){try{u=g(l.value)}catch(y){LD(r,"throw",y)}if("object"==typeof u&&u&&qE(hO,u))return u}return new pO(!1)},gO=Zw.TypeError,yO=function(e,t){if(qE(t,e))return e;throw gO("Incorrect invocation")},mO=function(e,t,n){var r,o;return DS&&yE(r=t.constructor)&&r!==n&&LE(o=r.prototype)&&o!==n.prototype&&DS(e,o),e},bO=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Zw[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=aE(u[e]);Tx(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!LE(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!LE(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!LE(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(YC(e,!yE(a)||!(o||u.forEach&&!AE((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),fO.enable();else if(YC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=AE((function(){f.has(1)})),h=QD((function(e){new a(e)})),v=!o&&AE((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){yO(e,u);var n=mO(new a,e,s);return null!=t&&vO(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,JC({global:!0,forced:s!=a},l),bS(s,e),o||n.setStrong(s,e,r),s},wO=fO.getWeakData,EO=Ox.set,xO=Ox.getterFor,CO=gC.find,DO=gC.findIndex,SO=aE([].splice),AO=0,OO=function(e){return e.frozen||(e.frozen=new kO)},kO=function(){this.entries=[]},BO=function(e,t){return CO(e.entries,(function(e){return e[0]===t}))};kO.prototype={get:function(e){var t=BO(this,e);if(t)return t[1]},has:function(e){return!!BO(this,e)},set:function(e,t){var n=BO(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=DO(this.entries,(function(t){return t[0]===e}));return~t&&SO(this.entries,t,1),!!~t}};var _O,FO={getConstructor:function(e,t,n,r){var o=e((function(e,o){yO(e,i),EO(e,{type:t,id:AO++,frozen:void 0}),null!=o&&vO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=xO(t),u=function(e,t,n){var r=a(e),o=wO(UE(t),!0);return!0===o?OO(r).set(t,n):o[r.id]=n,e};return eO(i,{delete:function(e){var t=a(this);if(!LE(e))return!1;var n=wO(e);return!0===n?OO(t).delete(e):n&&dE(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!LE(e))return!1;var n=wO(e);return!0===n?OO(t).has(e):n&&dE(n,t.id)}}),eO(i,n?{get:function(e){var t=a(this);if(LE(e)){var n=wO(e);return!0===n?OO(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}},TO=Ox.enforce,PO=!Zw.ActiveXObject&&"ActiveXObject"in Zw,jO=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},IO=bO("WeakMap",jO,FO);if(gx&&PO){_O=FO.getConstructor(jO,"WeakMap",!0),fO.enable();var NO=IO.prototype,LO=aE(NO.delete),RO=aE(NO.has),MO=aE(NO.get),zO=aE(NO.set);eO(NO,{delete:function(e){if(LE(e)&&!lO(e)){var t=TO(this);return t.frozen||(t.frozen=new _O),LO(this,e)||t.frozen.delete(e)}return LO(this,e)},has:function(e){if(LE(e)&&!lO(e)){var t=TO(this);return t.frozen||(t.frozen=new _O),RO(this,e)||t.frozen.has(e)}return RO(this,e)},get:function(e){if(LE(e)&&!lO(e)){var t=TO(this);return t.frozen||(t.frozen=new _O),RO(this,e)?MO(this,e):t.frozen.get(e)}return MO(this,e)},set:function(e,t){if(LE(e)&&!lO(e)){var n=TO(this);n.frozen||(n.frozen=new _O),RO(this,e)?zO(this,e,t):n.frozen.set(e,t)}else zO(this,e,t);return this}})}var $O=PE("iterator"),HO=PE("toStringTag"),VO=QA.values,UO=function(e,t){if(e){if(e[$O]!==VO)try{lx(e,$O,VO)}catch(r){e[$O]=VO}if(e[HO]||lx(e,HO,t),$x[t])for(var n in QA)if(e[n]!==QA[n])try{lx(e,n,QA[n])}catch(r){e[n]=QA[n]}}};for(var WO in $x)UO(Zw[WO]&&Zw[WO].prototype,WO);UO(Ux,"DOMTokenList");var GO=new WeakMap,qO=new WeakMap,KO=new WeakMap,XO=new WeakMap,YO=new WeakMap,ZO=new WeakMap,JO=new WeakMap,QO=new WeakMap,ek=new WeakMap,tk=new WeakMap,nk=new WeakMap,rk=new WeakMap,ok=new WeakMap,ik=new WeakMap,ak=new WeakMap,uk=new WeakMap,sk=new WeakMap,lk=new WeakMap,ck=new WeakMap,fk=new WeakMap,dk=new WeakMap,pk=new WeakMap,hk=new WeakMap,vk=new WeakMap,gk=new WeakMap,yk=gC.find,mk=!0;"find"in[]&&Array(1).find((function(){mk=!1})),JC({target:"Array",proto:!0,forced:mk},{find:function(e){return yk(this,e,arguments.length>1?arguments[1]:void 0)}}),AD("find"),JC({global:!0},{globalThis:Zw});const bk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];cv&&(Xh.fn.css=cv),gv&&(Xh.fn.append=gv),Yh&&(Xh.fn.addClass=Yh),Zh&&(Xh.fn.removeClass=Zh),Jh&&(Xh.fn.hasClass=Jh),rv&&(Xh.fn.on=rv),Ov&&(Xh.fn.focus=Ov),Qh&&(Xh.fn.attr=Qh),ev&&(Xh.fn.removeAttr=ev),sv&&(Xh.fn.hide=sv),lv&&(Xh.fn.show=lv),uv&&(Xh.fn.offset=uv),iv&&(Xh.fn.width=iv),av&&(Xh.fn.height=av),mv&&(Xh.fn.parent=mv),bv&&(Xh.fn.parents=bv),vv&&(Xh.fn.is=vv),tv&&(Xh.fn.dataset=tv),nv&&(Xh.fn.val=nv),hv&&(Xh.fn.text=hv),pv&&(Xh.fn.html=pv),Ev&&(Xh.fn.children=Ev),xv&&(Xh.fn.remove=xv),wv&&(Xh.fn.find=wv),fv&&(Xh.fn.each=fv),Cv&&(Xh.fn.empty=Cv);var wk,Ek,xk=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Ck=function(e){return Dk(e)&&1===e.nodeType},Dk=function(e){var t=xk(e);return!!t&&e instanceof t.Node},Sk=function(e){var t=e&&e.anchorNode&&xk(e.anchorNode);return!!t&&e instanceof t.Selection},Ak=function(e){return Dk(e)&&3===e.nodeType},Ok=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},kk=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Dk(r=i)&&8===r.nodeType||Ck(i)&&0===i.childNodes.length||Ck(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]},Bk=function(e,t,n){return qA(kk(e,t,n),1)[0]},_k=function e(t){var n,r,o="";if(Ak(t)&&t.nodeValue)return t.nodeValue;if(Ck(t)){try{for(var i=GA(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(Et){n={error:Et}}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 Fk(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||Fk(o,t)}}function Tk(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==wk.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Ek=wk||(wk={}))[Ek.ELEMENT_NODE=1]="ELEMENT_NODE",Ek[Ek.TEXT_NODE=3]="TEXT_NODE",Ek[Ek.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Ek[Ek.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Ek[Ek.COMMENT_NODE=8]="COMMENT_NODE",Ek[Ek.DOCUMENT_NODE=9]="DOCUMENT_NODE",Ek[Ek.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Ek[Ek.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var Pk="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),jk="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ik="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Nk="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Lk="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Rk="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),Mk=!Lk&&!Nk&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,zk={getWindow:function(e){var t=dk.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=fk.get(t);return n||(n=new YA,fk.set(t,n)),n},setNewKey:function(e){var t=new YA;fk.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=ak.get(r);if(null==o){if(Gd.isEditor(r))return n;break}var i=ik.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=zk.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return ak.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=zk.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[zk.findPath(e,t)[0]];return Zd.get(e,n)},toDOMNode:function(e,t){var n;if(Gd.isEditor(t))n=uk.get(e);else{var r=zk.findKey(e,t);n=lk.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=zk.toDOMNode(e,e);try{r=Ck(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}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=lp.isBackward(t),i=zk.toDOMPoint(e,n),a=lp.isCollapsed(t)?i:zk.toDOMPoint(e,r),u=zk.getWindow(e).document.createRange(),s=qA(o?a:i,2),l=s[0],c=s[1],f=qA(o?i:a,2),d=f[0],p=f[1],h=!!(Ck(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(Ck(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=qA(Gd.node(e,t.path),1)[0],a=zk.toDOMNode(e,i);Gd.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=GA(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"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(g){n={error:g}}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=Ck(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?sk.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=zk.toSlateNode(e,t.target),u=zk.findPath(e,a);if(Gd.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=Gd.point(e,u,{edge:l?"start":"end"}),f=l?Gd.before(e,c):Gd.after(e,c);if(f)return Gd.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 zk.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((Sk(t)?t.anchorNode:t.startContainer)&&(Sk(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=Rk&&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=zk.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:zk.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return lp.isExpanded(d)&&lp.isForward(d)&&Ck(i)&&Gd.void(e,{at:d.focus,mode:"highest"})&&(d=Gd.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=qA(o?t:function(e){var t,n=qA(e,2),r=n[0],o=n[1];if(Ck(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=qA(kk(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Ck(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=Bk(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 v=zk.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();KA(KA([],qA(jh(g.querySelectorAll("[data-slate-zero-width]")))),qA(jh(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=g.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")||jk&&(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=zk.toSlateNode(e,c);return{path:zk.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Gd.hasPath(e,n.path)&&Gd.hasPath(e,r.path)},getNodeType:function(e){return zd.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Zd.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Gd.nodes(e,{universal:!0});try{for(var i=GA(o),a=i.next();!a.done;a=i.next()){var u=qA(a.value,1)[0];zd.isElement(u)&&r.push(u)}}catch(s){t={error:s}}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=qA(Gd.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=qA(Gd.nodes(e,{match:function(e){return gp.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=qA(Gd.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&qA(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Gd.isEnd(e,n.anchor,t)||Gd.isEnd(e,n.focus,t))},getTextarea:function(e){var t=GO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return XO.get(e)||null},getHoverbar:function(e){return ZO.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=zk.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=GA(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(v){t={error:v}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Gd.nodes(e,{match:function(t){return!(!zd.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=GA(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];Fk(zk.toDOMNode(e,h),(function(e,t){var n=Xh(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(v){r={error:v}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Gd.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=GA(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(lp.isExpanded(t))return!1;var n=zk.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Gd.node(e,t);if(null==n)return!1;var r=qA(n,1)[0].children;return 1===r.length&&""===r[0].text}},$k=1,Hk={},Vk={},Uk=gC.filter,Wk=GS("filter");JC({target:"Array",proto:!0,forced:!Wk},{filter:function(e){return Uk(this,e,arguments.length>1?arguments[1]:void 0)}});var Gk="\t\n\v\f\r                 \u2028\u2029\ufeff",qk=aE("".replace),Kk="["+Gk+"]",Xk=RegExp("^"+Kk+Kk+"*"),Yk=RegExp(Kk+Kk+"*$"),Zk={trim:function(e){return function(t){var n=uD(sE(t));return 1&e&&(n=qk(n,Xk,"")),2&e&&(n=qk(n,Yk,"")),n}}(3)},Jk=Fx.PROPER,Qk=Zk.trim;JC({target:"String",proto:!0,forced:function(e){return AE((function(){return!!Gk.trim()||"​…᠎"!=="​…᠎".trim()||Jk&&Gk.trim.name!==e}))}("trim")},{trim:function(){return Qk(this)}});var eB=[],tB={};function nB(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var rB,oB,iB,aB,uB=Zw.Promise,sB=PE("species"),lB=function(e){var t=bE(e),n=ux.f;NE&&t&&!t[sB]&&n(t,sB,{configurable:!0,get:function(){return this}})},cB=Zw.TypeError,fB=PE("species"),dB=function(e,t){var n,r=UE(e).constructor;return void 0===r||null==(n=UE(r)[fB])?t:function(e){if(cC(e))return e;throw cB(ZE(e)+" is not a constructor")}(n)},pB=aE([].slice),hB=/(?:ipad|iphone|ipod).*applewebkit/i.test(wE),vB="process"==Ix(Zw.process),gB=Zw.setImmediate,yB=Zw.clearImmediate,mB=Zw.process,bB=Zw.Dispatch,wB=Zw.Function,EB=Zw.MessageChannel,xB=Zw.String,CB=0,DB={};try{rB=Zw.location}catch(Cme){}var SB=function(e){if(dE(DB,e)){var t=DB[e];delete DB[e],t()}},AB=function(e){return function(){SB(e)}},OB=function(e){SB(e.data)},kB=function(e){Zw.postMessage(xB(e),rB.protocol+"//"+rB.host)};gB&&yB||(gB=function(e){var t=pB(arguments,1);return DB[++CB]=function(){bA(yE(e)?e:wB(e),void 0,t)},oB(CB),CB},yB=function(e){delete DB[e]},vB?oB=function(e){mB.nextTick(AB(e))}:bB&&bB.now?oB=function(e){bB.now(AB(e))}:EB&&!hB?(aB=(iB=new EB).port2,iB.port1.onmessage=OB,oB=Gx(aB.postMessage,aB)):Zw.addEventListener&&yE(Zw.postMessage)&&!Zw.importScripts&&rB&&"file:"!==rB.protocol&&!AE(kB)?(oB=kB,Zw.addEventListener("message",OB,!1)):oB="onreadystatechange"in zE("script")?function(e){yD.appendChild(zE("script")).onreadystatechange=function(){yD.removeChild(this),SB(e)}}:function(e){setTimeout(AB(e),0)});var BB,_B,FB,TB,PB,jB,IB,NB,LB={set:gB},RB=/ipad|iphone|ipod/i.test(wE)&&void 0!==Zw.Pebble,MB=/web0s(?!.*chrome)/i.test(wE),zB=kC.f,$B=LB.set,HB=Zw.MutationObserver||Zw.WebKitMutationObserver,VB=Zw.document,UB=Zw.process,WB=Zw.Promise,GB=zB(Zw,"queueMicrotask"),qB=GB&&GB.value;qB||(BB=function(){var e,t;for(vB&&(e=UB.domain)&&e.exit();_B;){t=_B.fn,_B=_B.next;try{t()}catch(n){throw _B?TB():FB=void 0,n}}FB=void 0,e&&e.enter()},hB||vB||MB||!HB||!VB?!RB&&WB&&WB.resolve?((IB=WB.resolve(void 0)).constructor=WB,NB=Gx(IB.then,IB),TB=function(){NB(BB)}):vB?TB=function(){UB.nextTick(BB)}:($B=Gx($B,Zw),TB=function(){$B(BB)}):(PB=!0,jB=VB.createTextNode(""),new HB(BB).observe(jB,{characterData:!0}),TB=function(){jB.data=PB=!PB}));var KB,XB,YB,ZB,JB=qB||function(e){var t={fn:e,next:void 0};FB&&(FB.next=t),_B||(_B=t,TB()),FB=t},QB=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=QE(t),this.reject=QE(n)},e_={f:function(e){return new QB(e)}},t_=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},n_="object"==typeof window,r_=LB.set,o_=PE("species"),i_="Promise",a_=Ox.getterFor(i_),u_=Ox.set,s_=Ox.getterFor(i_),l_=uB&&uB.prototype,c_=uB,f_=l_,d_=Zw.TypeError,p_=Zw.document,h_=Zw.process,v_=e_.f,g_=v_,y_=!!(p_&&p_.createEvent&&Zw.dispatchEvent),m_=yE(Zw.PromiseRejectionEvent),b_=!1,w_=YC(i_,(function(){var e=hx(c_),t=e!==String(c_);if(!t&&66===SE)return!0;if(SE>=51&&/native code/.test(e))return!1;var n=new c_((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[o_]=r,!(b_=n.then((function(){}))instanceof r)||!t&&n_&&!m_})),E_=w_||!QD((function(e){c_.all(e).catch((function(){}))})),x_=function(e){var t;return!(!LE(e)||!yE(t=e.then))&&t},C_=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;JB((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&&O_(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(d_("Promise-chain cycle")):(u=x_(a))?GE(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&S_(e)}))}},D_=function(e,t,n){var r,o;y_?((r=p_.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Zw.dispatchEvent(r)):r={promise:t,reason:n},!m_&&(o=Zw["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Zw.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},S_=function(e){GE(r_,Zw,(function(){var t,n=e.facade,r=e.value;if(A_(e)&&(t=t_((function(){vB?h_.emit("unhandledRejection",r,n):D_("unhandledrejection",n,r)})),e.rejection=vB||A_(e)?2:1,t.error))throw t.value}))},A_=function(e){return 1!==e.rejection&&!e.parent},O_=function(e){GE(r_,Zw,(function(){var t=e.facade;vB?h_.emit("rejectionHandled",t):D_("rejectionhandled",t,e.value)}))},k_=function(e,t,n){return function(r){e(t,r,n)}},B_=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,C_(e,!0))},__=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw d_("Promise can't be resolved itself");var r=x_(t);r?JB((function(){var n={done:!1};try{GE(r,t,k_(__,n,e),k_(B_,n,e))}catch(o){B_(n,o,e)}})):(e.value=t,e.state=1,C_(e,!1))}catch(o){B_({done:!1},o,e)}}};if(w_&&(f_=(c_=function(e){yO(this,f_),QE(e),GE(KB,this);var t=a_(this);try{e(k_(__,t),k_(B_,t))}catch(n){B_(t,n)}}).prototype,(KB=function(e){u_(this,{type:i_,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=eO(f_,{then:function(e,t){var n=s_(this),r=n.reactions,o=v_(dB(this,c_));return o.ok=!yE(e)||e,o.fail=yE(t)&&t,o.domain=vB?h_.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&C_(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),XB=function(){var e=new KB,t=a_(e);this.promise=e,this.resolve=k_(__,t),this.reject=k_(B_,t)},e_.f=v_=function(e){return e===c_||e===YB?new XB(e):g_(e)},yE(uB)&&l_!==Object.prototype)){ZB=l_.then,b_||(Tx(l_,"then",(function(e,t){var n=this;return new c_((function(e,t){GE(ZB,n,e,t)})).then(e,t)}),{unsafe:!0}),Tx(l_,"catch",f_.catch,{unsafe:!0}));try{delete l_.constructor}catch(Cme){}DS&&DS(l_,f_)}JC({global:!0,wrap:!0,forced:w_},{Promise:c_}),bS(c_,i_,!1),lB(i_),YB=bE(i_),JC({target:i_,stat:!0,forced:w_},{reject:function(e){var t=v_(this);return GE(t.reject,void 0,e),t.promise}}),JC({target:i_,stat:!0,forced:w_},{resolve:function(e){return function(e,t){if(UE(e),LE(t)&&t.constructor===e)return t;var n=e_.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),JC({target:i_,stat:!0,forced:E_},{all:function(e){var t=this,n=v_(t),r=n.resolve,o=n.reject,i=t_((function(){var n=QE(t.resolve),i=[],a=0,u=1;vO(e,(function(e){var s=a++,l=!1;u++,GE(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=v_(t),r=n.reject,o=t_((function(){var o=QE(t.resolve);vO(e,(function(e){GE(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var F_=JS.UNSUPPORTED_Y,T_=Math.min,P_=[].push,j_=aE(/./.exec),I_=aE(P_),N_=aE("".slice);function L_(e){Promise.resolve().then(e)}function R_(e,t){return zd.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Gd.isVoid(t,e),u="";a||(u=i.map((function(e){return R_(e,t)})).join(""));var s=(tB[r]||nB)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||eB.forEach((function(t){return l=t(e,l)})),"string"==typeof s)return l;var c=s.prefix,f=void 0===c?"":c,d=s.suffix,p=void 0===d?"":d;return f&&(l=f+l),p&&(l+=p),l}(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=r.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;");var o=zk.getParentsNodes(t,e).some((function(e){return"pre"===zk.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=zk.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return eB.forEach((function(t){return r=t(e,r)})),r}(e,t)}function M_(e){return"w-e-element-"+e}xA("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=uD(sE(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!BD(e))return GE(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=GE(hA,f,r))&&!((a=f.lastIndex)>c&&(I_(s,N_(r,c,i.index)),i.length>1&&i.index<r.length&&bA(P_,s,rO(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&j_(f,"")||I_(s,""):I_(s,N_(r,c)),s.length>o?rO(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:GE(t,this,e,n)}:t,[function(t,n){var o=sE(this),i=null==t?void 0:ex(t,e);return i?GE(i,t,o,n):GE(r,uD(o),t,n)},function(e,o){var i=UE(this),a=uD(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=dB(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(F_?"g":"y"),f=new s(F_?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===PA(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=F_?0:h;var g,y=PA(f,F_?N_(a,h):a);if(null===y||(g=T_(eC(f.lastIndex+(F_?h:0)),a.length))===p)h=DA(a,h,l);else{if(I_(v,N_(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(I_(v,y[m]),v.length===d)return v;h=p=g}}return I_(v,N_(a,p)),v}]}),!!AE((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]})),F_);var z_=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},$_=function(e,t,n){var r=zk.toDOMRange(e,t).getBoundingClientRect(),o=zk.toDOMRange(e,n).getBoundingClientRect();return z_(r,o)&&z_(o,r)},H_=["span","b","strong","i","em","s","strike","u","font","sub","sup"],V_=[],U_=[],W_={},G_=ux.f,q_=MC.f,K_=Ox.enforce,X_=PE("match"),Y_=Zw.RegExp,Z_=Y_.prototype,J_=Zw.SyntaxError,Q_=aE(sD),eF=aE(Z_.exec),tF=aE("".charAt),nF=aE("".replace),rF=aE("".indexOf),oF=aE("".slice),iF=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,aF=/a/g,uF=/a/g,sF=new Y_(aF)!==aF,lF=JS.MISSED_STICKY,cF=JS.UNSUPPORTED_Y,fF=NE&&(!sF||lF||eA||nA||AE((function(){return uF[X_]=!1,Y_(aF)!=aF||Y_(uF)==uF||"/a/i"!=Y_(aF,"i")})));if(YC("RegExp",fF)){for(var dF=function(e,t){var n,r,o,i,a,u,s=qE(Z_,this),l=BD(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===dF)return e;if((l||qE(Z_,e))&&(e=e.source,c&&(t="flags"in d?d.flags:Q_(d))),e=void 0===e?"":uD(e),t=void 0===t?"":uD(t),d=e,eA&&"dotAll"in aF&&(r=!!t&&rF(t,"s")>-1)&&(t=nF(t,/s/g,"")),n=t,lF&&"sticky"in aF&&(o=!!t&&rF(t,"y")>-1)&&cF&&(t=nF(t,/y/g,"")),nA&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=tF(e,r)))t+=tF(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:eF(iF,oF(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||dE(a,c))throw new J_("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=mO(Y_(e,t),s?this:Z_,dF),(r||o||f.length)&&(u=K_(a),r&&(u.dotAll=!0,u.raw=dF(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=tF(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+tF(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{lx(a,"source",""===d?"(?:)":d)}catch(p){}return a},pF=function(e){e in dF||G_(dF,e,{configurable:!0,get:function(){return Y_[e]},set:function(t){Y_[e]=t}})},hF=q_(Y_),vF=0;hF.length>vF;)pF(hF[vF++]);Z_.constructor=dF,dF.prototype=Z_,Tx(Zw,"RegExp",dF)}lB("RegExp");var gF=new RegExp(String.fromCharCode(160),"g");function yF(e){return e.replace(gF," ")}function mF(e,t){var n=e.length;if(n){var r=e[n-1];if(gp.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function bF(e,t,n){return{type:"paragraph",children:[{text:Xh(e).text().replace(/\s+/gm," ")}]}}function wF(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!==wk.ELEMENT_NODE)if(e.nodeType!==wk.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=yF(r),mF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(mF(n,"\n")||n.push({text:"\n"}));var o=xF(Xh(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in W_)if(e[0].matches(t))return W_[t];return bF}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){Gd.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),U_.forEach((function(n){r=n(e[0],r,t)})))})),r}function EF(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=yF(n=n.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"'))};return U_.forEach((function(n){r=n(e[0],r,t)})),r}function xF(e,t){V_.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Xh(r(e[0])))}));var n=Tk(e);return"span"===n?e.attr("data-w-e-type")?wF(e,t):EF(e,t):"code"===n?"pre"===Tk(e.parent())?wF(e,t):EF(e,t):H_.includes(n)?EF(e,t):wF(e,t)}function CF(e,t,n){var r=Xh(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function DF(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Xh("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=xF(Xh(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var SF=ux.f,AF=fO.fastKey,OF=Ox.set,kF=Ox.getterFor,BF={getConstructor:function(e,t,n,r){var o=e((function(e,o){yO(e,i),OF(e,{type:t,index:CD(null),first:void 0,last:void 0,size:0}),NE||(e.size=0),null!=o&&vO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=kF(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=AF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),NE?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=AF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return eO(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,NE?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),NE?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Gx(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)}}),eO(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)}}),NE&&SF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=kF(t),i=kF(r);FS(e,t,(function(e,t){OF(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),lB(t)}};bO("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),BF);var _F=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function FF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):jp.insertNodes(e,t,{mode:"highest"})}var TF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=qA(lp.edges(n),2),o=r[0],i=r[1],a=Gd.void(t,{at:o.path}),u=Gd.void(t,{at:i.path});if(!lp.isCollapsed(n)||a){var s=zk.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=qA(u,1)[0],d=s.cloneRange(),p=zk.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":""})),Ak(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));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",_k(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=GA(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&jp.splitNodes(t,{always:!0}),n(h),f=!0}}catch(v){r={error:v}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},PF=function(e){return null!=e},jF={object:!0,function:!0,undefined:!0},IF=/^\s*class[\s{/}]/,NF=Function.prototype.toString,LF=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(t){return!1}return!function(e){if(!PF(t=e)||!hasOwnProperty.call(jF,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!IF.test(NF.call(e))},RF=function(e){return null!=e},MF=Object.keys,zF=function(){try{return Object.keys("primitive"),!0}catch(Et){return!1}}()?Object.keys:function(e){return MF(RF(e)?Object(e):e)},$F=function(e){if(!RF(e))throw new TypeError("Cannot use null or undefined");return e},HF=Math.max,VF=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=HF(arguments.length,2);for(e=Object($F(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)zF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},UF=Array.prototype.forEach,WF=Object.create,GF=function(e,t){var n;for(n in e)t[n]=e[n]},qF=function(e){var t=WF(null);return UF.call(arguments,(function(e){RF(e)&&GF(Object(e),t)})),t},KF="razdwatrzy",XF=String.prototype.indexOf,YF="function"==typeof KF.contains&&!0===KF.contains("dwa")&&!1===KF.contains("foo")?String.prototype.contains:function(e){return XF.call(this,e,arguments[1])>-1},ZF=qw((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],PF(e)?(n=YF.call(e,"c"),r=YF.call(e,"e"),o=YF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?VF(qF(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],PF(t)?LF(t)?PF(n)?LF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,PF(e)?(r=YF.call(e,"c"),o=YF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?VF(qF(i),a):a}})),JF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},QF=qw((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,v={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return JF(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return JF(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o=function(e,t){var n,r,o,i;if(JF(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},emit:i},u={on:ZF(n),once:ZF(r),off:ZF(o),emit:ZF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function eT(e){var t=vk.get(e);return null==t&&(t=QF(),vk.set(e,t)),t}var tT=new WeakMap;function nT(e,t){var n=tT.get(e);null==n&&(n=new Set,tT.set(e,n)),n.add(t)}function rT(e){return tT.get(e)||new Set}function oT(e){tT.set(e,new Set)}function iT(e){var t=zk.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function aT(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=iT(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=zk.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 v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function uT(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=zd.isElement(t)&&e.isVoid(t),i=zd.isElement(t)&&e.isInline(t),a=ck.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(bk.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=iT(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-g,x=l-y;if("bar"===n)return w.left=x+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?x>(m-f)/2?w.right=m-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((v=E)<0&&(v=0),w.top=v+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((v=E+c)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function sT(e,t){L_((function(){var n=iT(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,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(v.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(v.indexOf("right")>=0&&c<0){var x=t.css("right"),C=parseInt(x.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var lT=GS("slice"),cT=PE("species"),fT=Zw.Array,dT=Math.max;JC({target:"Array",proto:!0,forced:!lT},{slice:function(e,t){var n,r,o,i=AC(this),a=tC(i),u=FC(e,a),s=FC(void 0===t?a:t,a);if(nC(i)&&(n=i.constructor,(cC(n)&&(n===fT||nC(n.prototype))||LE(n)&&null===(n=n[cT]))&&(n=void 0),n===fT||void 0===n))return pB(i,u,s);for(r=new(void 0===n?fT:n)(dT(s-u,0)),o=0;u<s;u++,o++)u in i&&VD(r,o,i[u]);return r.length=o,r}});var pT=kC.f,hT=aE("".startsWith),vT=aE("".slice),gT=Math.min,yT=PD("startsWith"),mT=!yT&&!!function(){var e=pT(String.prototype,"startsWith");return e&&!e.writable}();JC({target:"String",proto:!0,forced:!mT&&!yT},{startsWith:function(e){var t=uD(sE(this));FD(e);var n=eC(gT(arguments.length>1?arguments[1]:void 0,t.length)),r=uD(e);return hT?hT(t,r,n):vT(t,n,n+r.length)===r}});var bT=Object.assign,wT=Object.defineProperty,ET=aE([].concat),xT=!bT||AE((function(){if(NE&&1!==bT({b:1},bT(wT({},"a",{enumerable:!0,get:function(){wT(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!=bT({},e)[n]||QC(bT({},t)).join("")!=r}))?function(e,t){for(var n=cE(e),r=arguments.length,o=1,i=zC.f,a=SC.f;r>o;)for(var u,s=Xx(arguments[o++]),l=i?ET(QC(s),i(s)):QC(s),c=l.length,f=0;c>f;)u=l[f++],NE&&!GE(a,s,u)||(n[u]=s[u]);return n}:bT;JC({target:"Object",stat:!0,forced:Object.assign!==xT},{assign:xT});var CT=["props","attrs","style","dataset","on","hook"];function DT(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(!CT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Dy(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&&DT(e)}))}var ST=[],AT={};function OT(e,t,n){return Rg(n.isInline(e)?"span":"div",null,t)}function kT(e,t){return void 0===t&&(t=!1),Rg("span",{"data-slate-string":!0},t?e+"\n":e)}function BT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Rg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Rg("br",null):null)}function _T(e,t,n,r){return ik.set(e,t),ak.set(e,n),zd.isElement(e)?function(e,t){var n,r=zk.findKey(t,e),o=t.isInline(e),i=Gd.isVoid(t,e),a=M_(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=AT[s]||OT;n=i?null:c.map((function(n,r){return _T(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=qA(Zd.texts(e),1),v=qA(h[0],1)[0],g=Rg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},_T(v,0,e,t));d=Rg(p,{style:{position:"relative"}},d,g),ik.set(v,0),ak.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return ST.forEach((function(r){n=r(e,t)})),n}(e,d)),L_((function(){var t=Ok(a);null!=t&&(lk.set(r,t),ck.set(e,t),sk.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=zk.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=zk.findPath(n,e),a=o([e,i]),u=gp.decorations(e,a),s=u.map((function(r,o){var i,a,s=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=zk.findPath(o,n),u=tp.parent(a);if(Gd.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?BT(Zd.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Gd.string(o,u)?""===i?BT():t&&"\n"===i.slice(-1)?kT(i,!0):kT(i):BT(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,ST.forEach((function(e){a=e(i,a)})),Rg("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=Rg("span",{"data-slate-node":"text",id:l,key:r.id},s);return L_((function(){var t=Ok(l);null!=t&&(lk.set(r,t),ck.set(e,t),sk.set(t,e))})),c}(e,n,r)}function FT(e,t){var n,r=e.$scroll,o="w-e-textarea-"+e.id,i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),mg("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=_T(e,n,t,t);return DT(r),r}));var c=nk.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Xh('<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=gg([xg,Fg,Ng,Sg,Bg,wg]))(n,s),nk.set(e,!1),rk.set(e,p)}else{var d=ok.get(e),p=rk.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=Ok(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=xk(n);h&&dk.set(t,h)}uk.set(t,n),ck.set(t,n),sk.set(n,t),ok.set(e,s)}}function TT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function PT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function jT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return PT(n.overflowY,t)||PT(n.overflowX,t)||!!(o=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(r=e))&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}var r,o;return!1}function IT(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 NT(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(!TT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;TT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&jT(f)&&!jT(document.documentElement)||null!=f&&jT(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,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,w=g.right,E=g.bottom,x=g.left,C="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,D="center"===i?x+m/2:"end"===i?w:x,S=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,_=k.width,F=k.top,T=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&x>=0&&E<=p&&w<=d&&b>=F&&E<=P&&x>=j&&w<=T)return S;var I=getComputedStyle(O),N=parseInt(I.borderLeftWidth,10),L=parseInt(I.borderTopWidth,10),R=parseInt(I.borderRightWidth,10),M=parseInt(I.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-N-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?C:"end"===o?C-p:"nearest"===o?IT(v,v+p,p,L,M,v+C,v+C+y,y):C-p/2,$="start"===i?D:"center"===i?D-d/2:"end"===i?D-d:IT(h,h+d,d,N,R,h+D,h+D+m,m),z=Math.max(0,z+v),$=Math.max(0,$+h);else{z="start"===o?C-F-L:"end"===o?C-P+M+V:"nearest"===o?IT(F,P,B,L,M+V,C,C+y,y):C-(F+B/2)+V/2,$="start"===i?D-j-N:"center"===i?D-(j+_/2)+H/2:"end"===i?D-T+R+H:IT(j,T,_,N,R+H,D,D+m,m);var U=O.scrollLeft,W=O.scrollTop;C+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),D+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-_+H)))}S.push({el:O,top:z,left:$})}return S}function LT(e){return e===Object(e)&&0!==Object.keys(e).length}function RT(e,t){return Dk(t)&&zk.hasDOMNode(e,t,{editable:!0})}function MT(e,t){if(e.getConfig().readOnly)return!1;var n=zT(e,t)&&zk.toSlateNode(e,t);return Gd.isVoid(e,n)}function zT(e,t){return Dk(t)&&zk.hasDOMNode(e,t)}function $T(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=zk.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=uk.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=zk.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&lp.equals(l,r)){var c=!0;if(lp.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||zk.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&zk.toDOMRange(t,r);if(v){lp.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n,r=!e.ownerDocument.documentElement.contains(e);if(LT(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:NT(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:LT(n)?n:{block:"start",inline:"nearest"};!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)}))}(NT(e,o),o.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&jk&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=zk.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var HT=new WeakMap,VT=new WeakMap,UT={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},WT={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"},GT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},qT=function(e){var t=UT[e],n=WT[e],r=GT[e],o=t&&jy(t),i=n&&jy(n),a=r&&jy(r);return function(e){return!(!o||!o(e))||!!(Pk&&i&&i(e))||!(Pk||!a||!a(e))}},KT={isBold:qT("bold"),isCompose:qT("compose"),isMoveBackward:qT("moveBackward"),isMoveForward:qT("moveForward"),isDeleteBackward:qT("deleteBackward"),isDeleteForward:qT("deleteForward"),isDeleteLineBackward:qT("deleteLineBackward"),isDeleteLineForward:qT("deleteLineForward"),isDeleteWordBackward:qT("deleteWordBackward"),isDeleteWordForward:qT("deleteWordForward"),isExtendBackward:qT("extendBackward"),isExtendForward:qT("extendForward"),isExtendLineBackward:qT("extendLineBackward"),isExtendLineForward:qT("extendLineForward"),isItalic:qT("italic"),isMoveLineBackward:qT("moveLineBackward"),isMoveLineForward:qT("moveLineForward"),isMoveWordBackward:qT("moveWordBackward"),isMoveWordForward:qT("moveWordForward"),isRedo:qT("redo"),isSplitBlock:qT("splitBlock"),isTransposeCharacter:qT("transposeCharacter"),isUndo:qT("undo"),isTab:qT("tab"),isSelectAll:qT("selectAll")};function XT(e){e.preventDefault()}var YT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Mk&&!o&&RT(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=qA(r.getTargetRanges(),1)[0];if(s){var l=zk.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&lp.equals(i,l)||jp.select(n,l)}}if(i&&lp.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Gd.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Gd.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Gd.deleteForward(n);break;case"deleteContentBackward":Gd.deleteBackward(n);break;case"deleteEntireSoftLine":Gd.deleteBackward(n,{unit:"line"}),Gd.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Gd.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Gd.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Gd.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Gd.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Gd.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Gd.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Gd.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!gk.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Gd.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&RT(n,r.target)){var a=zk.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===zk.toDOMNode(n,n)||Ck(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&Dk(u)&&zk.hasDOMNode(n,u)){var s=zk.toSlateNode(n,u);if(zd.isElement(s)&&!n.isVoid(s))return}if(Ik){var l=a.getSelection();null==l||l.removeAllRanges()}pk.delete(n)}}}},focus:function(e,t,n){var r=zk.toDOMNode(n,n),o=zk.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,jk&&e.target!==r?r.focus():pk.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&zT(n,e.target)&&Dk(e.target)){var r=zk.toSlateNode(n,e.target),o=zk.findPath(n,r);if(Gd.hasPath(n,o)&&Zd.get(n,o)===r){var i=Gd.start(n,o),a=Gd.end(n,o),u=Gd.void(n,{at:i}),s=Gd.void(n,{at:a});if(u&&s&&tp.equals(u[1],s[1])){var l=Gd.range(n,i);jp.select(n,l)}}}},compositionstart:function(e,t,n){if(RT(n,e.target)){var r=n.selection;if(r&&lp.isExpanded(r)&&(Gd.deleteFragment(n),Promise.resolve().then((function(){$T(t,n,!0)}))),r&&lp.isCollapsed(r)){var o=zk.toDOMRange(n,r).startContainer,i=o.textContent||"";HT.set(n,i),VT.set(n,o)}t.isComposing=!0,a=t,(u=n).getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&(null===(s=a.$placeholder)||void 0===s||s.hide(),a.showPlaceholder=!1)}var a,u,s},compositionend:function(e,t,n){var r=e;if(RT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(Rk||jk)&&zk.cleanExposedTexNodeInSelectionBlock(n);for(var i=lp.isBackward(o)?o.focus:o.anchor,a=qA(Gd.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=qA(Gd.node(n,i.path.slice(0,u+1)),1)[0];if(zd.isElement(s)&&((Ik||jk)&&"link"===s.type||"code"===s.type)){zk.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=zk.getLeftLengthOfMaxLength(n);c<l.length?(zk.toDOMRange(n,o).startContainer.textContent=HT.get(n)||"",c>0&&Gd.insertText(n,l.slice(0,c)),t.changeViewState()):Gd.insertText(n,l)}else Gd.insertText(n,l);Ik||setTimeout((function(){var e=n.selection;if(null!=e){var t=VT.get(n);null!=t&&zk.toDOMRange(n,e).startContainer!==t&&(t.textContent=HT.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){RT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&RT(n,r.target)){if(function(e,t){var n=XO.get(e),r=n&&n.getMenus(),o=ZO.get(e),i=o&&o.getMenus(),a=WA(WA({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Py(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),KT.isTab(r))return XT(r),void n.handleTab();if(KT.isRedo(r))return XT(r),void("function"==typeof n.redo&&n.redo());if(KT.isUndo(r))return XT(r),void("function"==typeof n.undo&&n.undo());if(KT.isMoveLineBackward(r))return XT(r),void jp.move(n,{unit:"line",reverse:!0});if(KT.isMoveLineForward(r))return XT(r),void jp.move(n,{unit:"line"});if(KT.isExtendLineBackward(r))return XT(r),void jp.move(n,{unit:"line",edge:"focus",reverse:!0});if(KT.isExtendLineForward(r))return XT(r),void jp.move(n,{unit:"line",edge:"focus"});if(KT.isMoveBackward(r))return XT(r),void(o&&lp.isCollapsed(o)?jp.move(n,{reverse:!0}):jp.collapse(n,{edge:"start"}));if(KT.isMoveForward(r))return XT(r),void(o&&lp.isCollapsed(o)?jp.move(n):jp.collapse(n,{edge:"end"}));if(KT.isMoveWordBackward(r))return XT(r),o&&lp.isExpanded(o)&&jp.collapse(n,{edge:"focus"}),void jp.move(n,{unit:"word",reverse:!0});if(KT.isMoveWordForward(r))return XT(r),o&&lp.isExpanded(o)&&jp.collapse(n,{edge:"focus"}),void jp.move(n,{unit:"word"});if(KT.isSelectAll(r))return XT(r),void n.selectAll();if(Mk){if((Rk||Ik)&&o&&(KT.isDeleteBackward(r)||KT.isDeleteForward(r))&&lp.isCollapsed(o)){var i=Zd.parent(n,o.anchor.path);if(zd.isElement(i)&&Gd.isVoid(n,i)&&Gd.isInline(n,i))return r.preventDefault(),void jp.delete(n,{unit:"block"})}}else{if(KT.isBold(r)||KT.isItalic(r)||KT.isTransposeCharacter(r))return void XT(r);if(KT.isSplitBlock(r))return XT(r),void Gd.insertBreak(n);if(KT.isDeleteBackward(r))return XT(r),void(o&&lp.isExpanded(o)?Gd.deleteFragment(n,{direction:"backward"}):Gd.deleteBackward(n));if(KT.isDeleteForward(r))return XT(r),void(o&&lp.isExpanded(o)?Gd.deleteFragment(n,{direction:"forward"}):Gd.deleteForward(n));if(KT.isDeleteLineBackward(r))return XT(r),void(o&&lp.isExpanded(o)?Gd.deleteFragment(n,{direction:"backward"}):Gd.deleteBackward(n,{unit:"line"}));if(KT.isDeleteLineForward(r))return XT(r),void(o&&lp.isExpanded(o)?Gd.deleteFragment(n,{direction:"forward"}):Gd.deleteForward(n,{unit:"line"}));if(KT.isDeleteWordBackward(r))return XT(r),void(o&&lp.isExpanded(o)?Gd.deleteFragment(n,{direction:"backward"}):Gd.deleteBackward(n,{unit:"word"}));if(KT.isDeleteWordForward(r))return XT(r),void(o&&lp.isExpanded(o)?Gd.deleteFragment(n,{direction:"forward"}):Gd.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Mk&&!n.getConfig().readOnly&&RT(n,e.target)){e.preventDefault();var r=e.key;Gd.insertText(n,r)}},copy:function(e,t,n){var r=e;if(RT(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&&RT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(lp.isExpanded(o))Gd.deleteFragment(n);else{var a=Zd.parent(n,o.anchor.path);Gd.isVoid(n,a)&&jp.delete(n)}}},paste:function(e,t,n){gk.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&RT(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void gk.set(n,!1);if(!Mk||(r=o).clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length){o.preventDefault();var a=o.clipboardData;null!=a&&n.insertData(a)}}},dragover:function(e,t,n){if(zT(n,e.target)){var r=zk.toSlateNode(n,e.target);Gd.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(zT(n,r.target)&&!n.getConfig().readOnly){var o=zk.toSlateNode(n,r.target),i=zk.findPath(n,o);if(Gd.isVoid(n,o)||Gd.void(n,{at:i,voids:!0})){var a=Gd.range(n,i);jp.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&&zT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&zT(n,r.target)&&null!=o&&!(Mk&&Ik&&o.files.length>0)){r.preventDefault();var i=n.selection,a=zk.findEventRange(n,r);jp.select(n,a),t.isDraggingInternally&&(i&&jp.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},ZT=1,JT=function(){function e(e){var t=this;this.id=ZT++,this.$textArea=null,this.$progressBar=Xh('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Xh('<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=ig((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=zk.findDocumentOrShadowRoot(t),a=i.activeElement,u=zk.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,pk.set(t,!0)):pk.delete(t),!s)return jp.deselect(t);var l=s.anchorNode,c=s.focusNode,f=RT(t,l)||MT(t,l),d=RT(t,c)||MT(t,c);if(f&&d){var p=zk.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});jp.select(t,p)}else jp.deselect(t)}}(t,e)}),100);var n=Xh(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Xh('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Xh('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,L_((function(){var e=t.editorInstance,n=zk.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=qO.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&&(Vv(YT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",ig((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-zk.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;FT(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=Xh('<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),L_((function(){$T(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function QT(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&&QT(t)}function eP(){return Xh('<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 tP(){return Xh('<div class="w-e-bar-divider"></div>')}function nP(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=Pk?"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")}}}xA("match",(function(e,t,n){return[function(t){var n=sE(this),r=null==t?void 0:ex(t,e);return r?GE(r,t,n):new RegExp(t)[e](uD(n))},function(e){var r=UE(this),o=uD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return PA(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=PA(r,o));){var c=uD(u[0]);s[l]=c,""===c&&(r.lastIndex=DA(o,eC(r.lastIndex),a)),l++}return 0===l?null:s}]}));var rP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Xh('<div class="w-e-bar-item"></div>'),this.$button=Xh('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Xh(c);QT(d),f.append(d)}else f.text(a);nP(f,c,a,s,n),n&&c&&f.append(Xh('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),L_((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),gP(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=gP(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=gP(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=gP(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}(),oP=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return UA(t,e),t.prototype.onButtonClick=function(){},t}(rP),iP=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=QO.get(e);null==t&&(t=new Set,QO.set(e,t)),t.add(this),ek.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=ek.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=ek.get(this);e&&e.emit("modalOrPanelHide")}},e}(),aP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Xh('<div class="w-e-drop-panel"></div>'),n}return UA(t,e),t.prototype.genSelfElem=function(){return null},t}(iP),uP=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=eP();o.$button.append(i)}return o}return UA(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=gP(this);if(null==this.dropPanel){var n=new aP(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}(rP),sP=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Xh('<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 UA(t,e),t.prototype.genSelfElem=function(){var e=this,t=Xh('<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=ek.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}(iP);function lP(e,t,n){var r=Xh('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Xh('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function cP(e,t){var n=Xh('<div class="button-container"></div>'),r=Xh('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var fP=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Xh("body"),o.modal=null,o.menu=n,o}return UA(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=gP(this),t=this.menu.getModalPositionNode(e);return zd.isElement(t)?uT(e,t,"modal"):aT(e)},t.prototype.handleModal=function(){var e=gP(this),t=this.menu;if(null==this.modal){var n=new sP(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=gP(this),r=this.menu;if(null!=r.getModalContentElem){var o=zk.getTextarea(n),i=zk.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||sT(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(rP),dP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Xh('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return UA(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Xh("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Xh('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Xh('<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(Xh('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(iP),pP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Xh('<div class="w-e-bar-item"></div>'),this.$button=Xh('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),nP(f,s,i,c,n),this.$elem.append(f),this.menu=t,L_((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),gP(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=gP(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new dP(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=Xh(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=gP(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=gP(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=eP();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=gP(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}(),hP=function(){function e(e){this.$elem=Xh('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Xh('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Xh('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Xh(n);QT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=eP();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Xh(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),vP=new WeakMap;function gP(e){var t=JO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function yP(e,t,n){void 0===n&&(n=!1);var r=vP.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new uP(e,t,n):a?new fP(e,t,n):new oP(e,t,n)}if("select"===o&&(r=new pP(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return vP.set(t,r),r}function mP(e,t){var n=e.selection;return null!=n&&!lp.isCollapsed(n)&&!zk.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!gp.isText(t)}var bP=function(){function e(){var e=this;this.$elem=Xh('<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=Yy((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&&zd.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),L_((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),zk.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;L_((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=tP();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=Vk[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=yP(e,r);this.hoverbarItems.push(i),JO.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),zd.isElement(e)){var r=uT(t,e,"bar");return n.css(r),void sT(t,n)}if(gp.isText(e))return r=aT(t),n.css(r),void sT(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 zk.checkNodeType(t,o)},c=qA(Gd.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=YO.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=mP),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=zk.findPath(null,e),r=zk.findPath(null,t);return tp.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function wP(e,t,n,r){if(ik.set(e,t),ak.set(e,n),zd.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return wP(t,n,e,r)})),Gd.isVoid(r,e)){var i=qA(Zd.texts(e),1),a=qA(i[0],1)[0];ik.set(a,0),ak.set(a,e)}}}function EP(e){var t,n=e.selector,r=void 0===n?"":n,o=e.config,i=void 0===o?{}:o,a=e.content,u=e.html,s=e.plugins,l=void 0===s?[]:s,c=(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];iD.withoutSaving(t,(()=>{Gd.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];iD.withoutSaving(t,(()=>{Gd.withoutNormalizing(t,(()=>{var e=r.map(ep.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var r,o,{operations:i,history:a}=t,{undos:u}=a,s=u[u.length-1],l=s&&s[s.length-1],c=(r=e,!(!(o=l)||"set_selection"!==r.type||"set_selection"!==o.type)),f=iD.isSaving(t),d=iD.isMerging(t);if(null==f&&(f=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),f){if(null==d&&(d=null!=s&&(0!==i.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!tp.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!tp.equals(e.path,t.path)))(e,l)||c)),s&&d)c&&s.pop(),s.push(e);else{var p=[e];u.push(p)}for(;u.length>100;)u.shift();(e=>"set_selection"!==e.type)(e)&&(a.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=zk.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=zk.getLeftLengthOfMaxLength(t);n<=0||n<Zd.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(zk.getLeftLengthOfMaxLength(t)<Zd.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=zk.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e,r<Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===wk.TEXT_NODE?e+(t.textContent||""):n===wk.ELEMENT_NODE?_F.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"").length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=eT(t);if(r.on(e,n),"destroyed"===e&&nT(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),nT(t,o)}},t.once=function(e,n){eT(t).once(e,n)},t.off=function(e,n){eT(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=eT(t);o.emit.apply(o,KA([e],qA(n))),"destroyed"===e&&(rT(t).forEach((function(e){return o.off("destroyed",e)})),oT(t))},t}(function(e){var t=e;return t.select=function(e){jp.select(t,e)},t.deselect=function(){var n=t.selection,r=zk.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&jp.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||jp.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=hk.get(t);null!=e&&(t.focus(),jp.select(t,e))},t.getSelectionPosition=function(){return aT(t)},t.getNodePosition=function(e){return uT(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=qA(lp.edges(e),2),r=n[0],o=n[1],i=qA(Gd.edges(t,[]),2),a=i[0],u=i[1];return!(!ip.equals(r,a)||!ip.equals(o,u))},t.selectAll=function(){var e=Gd.start(t,[]),n=Gd.end(t,[]);jp.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=GA(Gd.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=qA(p.value,2),v=h[0],g=h[1],y=zk.findKey(t,v);f.push([g,y])}}catch(O){n={error:O}}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=GA(Gd.levels(t,{at:tp.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=qA(b.value,2);v=w[0],g=w[1],y=zk.findKey(t,v),f.push([g,y])}}catch(O){i={error:O}}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=GA(Gd.levels(t,{at:tp.common(tp.parent(e.path),tp.parent(e.newPath))})),x=E.next();!x.done;x=E.next()){var C=qA(x.value,2);v=C[0],g=C[1],y=zk.findKey(t,v),f.push([g,y])}}catch(O){u={error:O}}finally{try{x&&!x.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var D=GA(f),S=D.next();!S.done;S=D.next()){var A=qA(S.value,2);g=A[0],y=A[1],v=qA(Gd.node(t,g),1)[0],fk.set(v,y)}}catch(O){l={error:O}}finally{try{S&&!S.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&lp.isCollapsed(e.selection)){var r=Gd.above(e,{match:function(t){return Gd.isBlock(e,t)},at:e.selection});if(r){var o=qA(r,2)[1],a=Gd.range(e,o,e.selection.anchor),u=function(e,t){var n=Gd.range(e,lp.end(t)),r=Array.from(Gd.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if($_(e,Gd.range(e,r[o]),n))return Gd.range(e,r[o],n);if(r.length<2)return Gd.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)$_(e,Gd.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Gd.range(e,r[i],n)}(t,a);lp.isCollapsed(u)||jp.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&hk.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 R_(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Zd.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Gd.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Gd.nodes(t,{at:[],universal:!0});try{for(var u=GA(a),s=u.next();!s.done;s=u.next()){var l=qA(s.value,1)[0];if(zd.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=M_(zk.findKey(t,l).id);i.push(WA(WA({},l),{id:c}))}}}catch(f){r={error:f}}
39finally{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(zd.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(gp.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){jp.delete(t,{at:{anchor:Gd.start(t,[]),focus:Gd.end(t,[])}}),0===t.children.length&&jp.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return zk.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===wk.TEXT_NODE||t===wk.ELEMENT_NODE&&!_F.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;zk.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==wk.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(H_.includes(r.toLowerCase()))s=!0;else for(var l in W_)if(a.matches(l)){s=!0;break}if(s){var c=xF(Xh(a),t);return Array.isArray(c)?(c.forEach((function(e){return FF(t,e)})),u++):(FF(t,c),u++),void(zk.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;zk.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&zk.isEmptyPath(t,a)&&jp.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=DF(t,e);if(jp.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(a){t.select(Gd.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Vk)e.push(t);return e},t.getConfig=function(){var e=tk.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}((t=TF((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Gd.pathRefs(e))np.transform(n,t);for(var r of Gd.pointRefs(e))ap.transform(r,t);for(var o of Gd.rangeRefs(e))cp.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=nd.get(e)||[],l=cd(t);for(var c of s)u(tp.transform(c,t));for(var f of l)u(f);nd.set(e,a),jp.transform(e,t),e.operations.push(t),Gd.normalize(e),"set_selection"===t.type&&(e.marks=null),rd.get(e)||(rd.set(e,!0),Promise.resolve().then((()=>{rd.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(lp.isExpanded(r))jp.setNodes(e,{[t]:n},{match:gp.isText,split:!0});else{var o=ld(ld({},Gd.marks(e)||{}),{},{[t]:n});e.marks=o,rd.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&lp.isCollapsed(n)&&jp.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&lp.isCollapsed(n)&&jp.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&lp.isExpanded(n)&&jp.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Zd.fragment(e,t):[]},insertBreak:()=>{jp.splitNodes(e,{always:!0})},insertFragment:t=>{jp.insertFragment(e,t)},insertNode:t=>{jp.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=ld({text:t},r);jp.insertNodes(e,o)}else jp.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!gp.isText(n))if(zd.isElement(n)&&0===n.children.length)jp.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Gd.isEditor(n)&&zd.isElement(n)&&(e.isInline(n)||0===n.children.length||gp.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Zd.get(e,r);if(!gp.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(gp.isText(s)||zd.isElement(s)&&e.isInline(s))!==o?(jp.removeNodes(e,{at:r.concat(i),voids:!0}),i--):zd.isElement(s)?e.isInline(s)&&(null!=l&&gp.isText(l)?c&&(jp.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(jp.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&gp.isText(l)&&(gp.equals(s,l,{loose:!0})?(jp.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(jp.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(jp.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(lp.isExpanded(n))jp.unsetNodes(e,t,{match:gp.isText,split:!0});else{var r=ld({},Gd.marks(e)||{});delete r[t],e.marks=r,rd.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+$k++,t.isDestroyed=!1,t.isFullScreen=!1,t.focu
vendor: 16,675 bytes, line 39
39s=function(e){if(zk.toDOMNode(t,t).focus({preventScroll:!0}),pk.set(t,!0),e){var n=Gd.end(t,[]);jp.select(t,n)}else{var r=hk.get(t);r?jp.select(t,r):jp.select(t,Gd.start(t,[]))}},t.isFocused=function(){return!!pk.get(t)},t.blur=function(){zk.toDOMNode(t,t).blur(),jp.deselect(t),pk.set(t,!1)},t.updateView=function(){zk.getTextarea(t).changeViewState();var e=zk.getToolbar(t);e&&e.changeToolbarState();var n=zk.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=zk.getTextarea(t);e.destroy(),GO.delete(t),qO.delete(e);var n=zk.getToolbar(t);n&&(n.destroy(),XO.delete(t),KO.delete(n));var r=zk.getHoverbar(t);r&&(r.destroy(),ZO.delete(t),YO.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(t.getConfig().scroll){var n=Xh("#"+e);if(0!==n.length){var r=n[0];if(!zk.hasDOMNode(t,r))return;var o=zk.getTextarea(t),i=o.$textAreaContainer,a=o.$scroll,u=n.offset().top,s=i.offset().top;a[0].scrollBy({top:u-s,behavior:"smooth"})}}},t.showProgressBar=function(e){e<1||zk.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=QO.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 zk.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=zk.getToolbar(t);n&&(e=n.$box);var r=zk.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=zk.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return zk.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return CF(e,"data-w-e-textarea",t)}(c,r))throw new Error("Repeated create editor by selector '"+r+"'");var f=function(e){void 0===e&&(e={});var t=Zy(Hk),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Vv(t,(function(e,t){n[t]=WA(WA({},e),o[t]||{})})),delete e.MENU_CONF,WA({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)}(i);tk.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach((function(e){c=e(c)})),null!=u&&(c.children=DF(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),zk.normalizeContent(c),r){var h=new JT(r);GO.set(c,h),qO.set(h,c),h.changeViewState(),L_((function(){var e=h.$scroll;null!=e&&e.height()}));var v=void 0;Object.keys(p).length>0&&(v=new bP,YO.set(v,c),ZO.set(c,v)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return wP(e,t,c,c)}));var g=f.onCreated,y=f.onDestroyed;return g&&c.on("created",(function(){return g(c)})),y&&c.on("destroyed",(function(){return y(c)})),L_((function(){return c.emit("created")})),c}var xP=GS("splice"),CP=Zw.TypeError,DP=Math.max,SP=Math.min;JC({target:"Array",proto:!0,forced:!xP},{splice:function(e,t){var n,r,o,i,a,u,s=cE(this),l=tC(s),c=FC(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=SP(DP(Jx(t),0),l-c)),l+n-r>9007199254740991)throw CP("Maximum allowed length exceeded");for(o=pC(s,r),i=0;i<r;i++)(a=c+i)in s&&VD(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 AP=function(){function e(e,t){var n=this;this.$toolbar=Xh('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Yy((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Xh(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),L_((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=Zy(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=tP();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=new hP(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 hP,o=this.menus,i=o[e];if(null==i){var a=Vk[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}var u=yP(e,i,r);this.toolbarItems.push(u),JO.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=KO.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}(),OP=Fx.EXISTS,kP=ux.f,BP=Function.prototype,_P=aE(BP.toString),FP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,TP=aE(FP.exec);function PP(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,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,x=void 0===E?function(e,t){}:E,C=e.onError,D=void 0===C?function(e,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=qA(e.split("#"),2),r=n[0],o=n[1],i=[];Vv(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 wb({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Ww,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{x(e,r)}catch(o){}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{D(e,t,n)}catch(r){}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{D(e,t)}catch(n){}k.removeFile(e.id)})),k}function jP(e){return(jP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function IP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NP(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){IP(e,t,n[t])}))}return e}function LP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RP(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 MP(e,t,n){return t&&RP(e.prototype,t),n&&RP(e,n),e}function zP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $P(e,t){if(t&&("object"===jP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zP(e)}function HP(e){return(HP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function VP(e,t){return(VP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function UP(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&&VP(e,t)}NE&&!OP&&kP(BP,"name",{configurable:!0,get:function(){try{return TP(FP,_P(this))[1]}catch(Et){return""}}});var WP={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]}},GP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};LP(this,e),this.init(t,n)}return MP(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||WP,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,NP({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),qP=function(){function e(){LP(this,e),this.observers={}}return MP(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 KP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function XP(e){return null==e?"":""+e}function YP(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function ZP(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 JP(e,t,n){var r=ZP(e,t,Object);r.obj[r.k]=n}function QP(e,t){var n=ZP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function ej(e,t,n){var r=QP(e,n);return void 0!==r?r:QP(t,n)}function tj(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]):tj(e[r],t[r],n):e[r]=t[r]);return e}function nj(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var rj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function oj(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return rj[e]})):e}var ij="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function aj(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?aj(s,l,n):void 0}o=o[r[i]]}return o}}var uj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return LP(this,t),n=$P(this,HP(t).call(this)),ij&&qP.call(zP(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 UP(t,qP),MP(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=QP(this.data,a);return u||!i||"string"!=typeof n?u:aj(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),JP(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=QP(this.data,a)||{};r?tj(u,n,o):u=NP({},u,n),JP(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?NP({},{},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}(),sj={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}},lj={},cj=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return LP(this,t),n=$P(this,HP(t).call(this)),ij&&qP.call(zP(n)),YP(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
39i18nFormat","utils"],e,zP(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=GP.create("translator"),n}return UP(t,qP),MP(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"!==jP(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,v=p&&p.usedKey||u,g=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(v,h,NP({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var x="[object Array]"===y,C=x?[]:{},D=x?g:v;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var A="".concat(D).concat(i).concat(S);C[S]=this.translate(A,NP({},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,_=t.hasDefaultValue(n),F=B?this.pluralResolver.getSuffix(c,n.count):"",T=n["defaultValue".concat(F)]||n.defaultValue;!this.isValidLookup(h)&&_&&(O=!0,h=T),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,I=_&&T!==h&&this.options.updateMissing;if(k||O||I){if(this.logger.log(I?"updateKey":"missingKey",c,l,u,I?T:h),i){var N=this.resolve(u,NP({},n,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,I?r:j,I,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,I?r:j,I,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||T)}))})):z(L,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)
vendor: 6,011 bytes, line 39
39)}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(NP({},n,{interpolation:NP({},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=NP({},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=sj.handle(d,e,t,this.options&&this.options.postProcessPassResolved?NP({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,!lj["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(lj["".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 fj(e){return e.charAt(0).toUpperCase()+e.slice(1)}var dj=function(){function e(t){LP(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=GP.create("languageUtils")}return MP(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]=fj(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]=fj(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=fj(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];
vendor: 4,063 bytes, line 39
39return 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}(),pj=[{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}],hj={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 vj(){var e={};return pj.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:hj[t.fc]}}))})),e}var gj=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};LP(this,e),this.languageUtils=t,this.options=n,this.logger=GP.create("pluralResolver"),this.rules=vj()}return MP(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}}
vendor: 6,224 bytes, line 39
39,{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}(),yj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};LP(this,e),this.logger=GP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return MP(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:oj,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?nj(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?nj(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?nj(t.nestingPrefix):t.nestingPrefixEscaped||nj("$t("),this.nestingSuffix=t.nestingSuffix?nj(t.nestingSuffix):t.nestingSuffixEscaped||nj(")"),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=ej(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,NP({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(ej(t,s,a),l,n,NP({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=XP(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=NP({},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=NP({},t,a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".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=XP(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,NP({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),mj=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return LP(this,t),o=$P(this,HP(t).call(this)),ij&&qP.call(zP(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=GP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return UP(t,qP),MP(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];
vendor: 5,152 bytes, line 39
39t&&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){var r,u,s,l,c;r=n.loaded,u=i,s=ZP(r,[o],Object),l=s.obj,c=s.k,l[c]=l[c]||[],l[c].push(u),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,NP({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function bj(){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"===jP(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===jP(e[2])||"object"===jP(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 wj(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 Ej(){}var xj=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(LP(this,t),e=$P(this,HP(t).call(this)),ij&&qP.call(zP(e)),e.options=wj(n),e.services={},e.logger=GP,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),$P(e,zP(e));setTimeout((function(){e.init(n,r)}),0)}return e}return UP(t,qP),MP(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={}
vendor: 32,418 bytes, line 39
39),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=NP({},bj(),this.options,wj(t)),this.format=this.options.interpolation.format,n||(n=Ej),!this.options.isClone){this.modules.logger?GP.init(r(this.modules.logger),this.options):GP.init(null,this.options);var o=new dj(this.options);this.store=new uj(this.options.resources,this.options);var i=this.services;i.logger=GP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new gj(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new yj(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new mj(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 cj(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=KP(),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]:Ej,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=KP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Ej),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&&sj.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=KP();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){var o,a;o=e,(a=i)?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(o,(function(){return n.t.apply(n,arguments)}))}))};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"!==jP(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=NP({},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=KP();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=KP();"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]:Ej,o=NP({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=NP({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new cj(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}(),Cj=new xj;function Dj(e,t){Cj.addResourceBundle(e,"translation",t,!0,!0)}Cj.init({lng:"zh-CN",resources:{}});var Sj=Cj.t.bind(Cj);Dj("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Dj("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Aj=Du?{}.toString:function(){return"[object "+ku(this)+"]"};Du||Ga(Object.prototype,"toString",Aj,{unsafe:!0});var Oj,kj=Array.isArray||function(e){return"Array"==vi(e)},Bj=function(){},_j=[],Fj=Si("Reflect","construct"),Tj=/^\s*(?:class|function)\b/,Pj=di(Tj.exec),jj=!Tj.exec(Bj),Ij=function(e){if(!xi(e))return!1;try{return Fj(Bj,_j,e),!0}catch(t){return!1}},Nj=!Fj||Qo((function(){var e;return Ij(Ij.call)||!Ij(Object)||!Ij((function(){e=!0}))||e}))?function(e){if(!xi(e))return!1;switch(ku(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jj||!!Pj(Tj,ka(e))}:Ij,Lj=ia("species"),Rj=Jo.Array,Mj=function(e,t){return new(kj(n=e)&&(r=n.constructor,(Nj(r)&&(r===Rj||kj(r.prototype))||Ci(r)&&null===(r=r[Lj]))&&(r=void 0)),void 0===r?Rj:r)(0===t?0:t);var n,r},zj=di([].push),$j=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=Ki(s),v=mi(h),g=Rs(l,c),y=tu(v),m=0,b=f||Mj,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:zj(w,d)}else switch(e){case 4:return!1;case 7:zj(w,d)}return i?-1:r||o?o:w}}(0),Hj=!!(Oj=[].forEach)&&Qo((function(){Oj.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return $j(this,e,arguments.length>1?arguments[1]:void 0)},Vj=function(e){if(e&&e.forEach!==Hj)try{Ca(e,"forEach",Hj)}catch(t){e.forEach=Hj}};for(var Uj in Tl)Tl[Uj]&&Vj(Jo[Uj]&&Jo[Uj].prototype);Vj(Il),Dj("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"}}),Dj("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 Wj={type:"paragraph",renderElem:function(e,t,n){return Rg("p",null,t)}},Gj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qj(e){var t={exports:{}};return e(t,t.exports),t.exports}var Kj,Xj,Yj=function(e){return e&&e.Math==Math&&e},Zj=Yj("object"==typeof globalThis&&globalThis)||Yj("object"==typeof window&&window)||Yj("object"==typeof self&&self)||Yj("object"==typeof Gj&&Gj)||function(){return this}()||Function("return this")(),Jj=function(e){try{return!!e()}catch(t){return!0}},Qj=!Jj((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),eI=Function.prototype.call,tI=eI.bind?eI.bind(eI):function(){return eI.apply(eI,arguments)},nI={}.propertyIsEnumerable,rI=Object.getOwnPropertyDescriptor,oI=rI&&!nI.call({1:2},1)?function(e){var t=rI(this,e);return!!t&&t.enumerable}:nI,iI={f:oI},aI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uI=Function.prototype,sI=uI.bind,lI=uI.call,cI=sI&&sI.bind(lI),fI=sI?function(e){return e&&cI(lI,e)}:function(e){return e&&function(){return lI.apply(e,arguments)}},dI=fI({}.toString),pI=fI("".slice),hI=function(e){return pI(dI(e),8,-1)},vI=Zj.Object,gI=fI("".split),yI=Jj((function(){return!vI("z").propertyIsEnumerable(0)}))?function(e){return"String"==hI(e)?gI(e,""):vI(e)}:vI,mI=Zj.TypeError,bI=function(e){if(null==e)throw mI("Can't call method on "+e);return e},wI=function(e){return yI(bI(e))},EI=function(e){return"function"==typeof e},xI=function(e){return"object"==typeof e?null!==e:EI(e)},CI=function(e){return EI(e)?e:void 0},DI=function(e,t){return arguments.length<2?CI(Zj[e]):Zj[e]&&Zj[e][t]},SI=fI({}.isPrototypeOf),AI=DI("navigator","userAgent")||"",OI=Zj.process,kI=Zj.Deno,BI=OI&&OI.versions||kI&&kI.version,_I=BI&&BI.v8;_I&&(Xj=(Kj=_I.split("."))[0]>0&&Kj[0]<4?1:+(Kj[0]+Kj[1])),!Xj&&AI&&(!(Kj=AI.match(/Edge\/(\d+)/))||Kj[1]>=74)&&(Kj=AI.match(/Chrome\/(\d+)/))&&(Xj=+Kj[1]);var FI=Xj,TI=!!Object.getOwnPropertySymbols&&!Jj((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&FI&&FI<41})),PI=TI&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jI=Zj.Object,II=PI?function(e){return"symbol"==typeof e}:function(e){var t=DI("Symbol");return EI(t)&&SI(t.prototype,jI(e))},NI=Zj.String,LI=function(e){try{return NI(e)}catch(t){return"Object"}},RI=Zj.TypeError,MI=function(e){if(EI(e))return e;throw RI(LI(e)+" is not a function")},zI=function(e,t){var n=e[t];return null==n?void 0:MI(n)},$I=Zj.TypeError,HI=Object.defineProperty,VI=function(e,t){try{HI(Zj,e,{value:t,configurable:!0,writable:!0})}catch(Oj){Zj[e]=t}return t},UI=Zj["__core-js_shared__"]||VI("__core-js_shared__",{}),WI=qj((function(e){(e.exports=function(e,t){return UI[e]||(UI[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),GI=Zj.Object,qI=function(e){return GI(bI(e))},KI=fI({}.hasOwnProperty),XI=Object.hasOwn||function(e,t){return KI(qI(e),t)},YI=0,ZI=Math.random(),JI=fI(1..toString),QI=function(e){return"Symbol("+(void 0===e?"":e)+")_"+JI(++YI+ZI,36)},eN=WI("wks"),tN=Zj.Symbol,nN=tN&&tN.for,rN=PI?tN:tN&&tN.withoutSetter||QI,oN=function(e){if(!XI(eN,e)||!TI&&"string"!=typeof eN[e]){var t="Symbol."+e;TI&&XI(tN,e)?eN[e]=tN[e]:eN[e]=PI&&nN?nN(t):rN(t)}return eN[e]},iN=Zj.TypeError,aN=oN("toPrimitive"),uN=function(e){var t=function(e,t){if(!xI(e)||II(e))return e;var n,r=zI(e,aN);if(r){if(n=tI(r,e,"string"),!xI(n)||II(n))return n;throw iN("Can't convert object to primitive value")}return function(e,t){var n,r;if(EI(n=e.toString)&&!xI(r=tI(n,e)))return r;if(EI(n=e.valueOf)&&!xI(r=tI(n,e)))return r;throw $I("Can't convert object to primitive value")}(e)}(e);return II(t)?t:t+""},sN=Zj.document,lN=xI(sN)&&xI(sN.createElement),cN=function(e){return lN?sN.createElement(e):{}},fN=!Qj&&!Jj((function(){return 7!=Object.defineProperty(cN("div"),"a",{get:function(){return 7}}).a})),dN=Object.getOwnPropertyDescriptor,pN={f:Qj?dN:function(e,t){if(e=wI(e),t=uN(t),fN)try{return dN(e,t)}catch(n){}if(XI(e,t))return aI(!tI(iI.f,e,t),e[t])}},hN=Zj.String,vN=Zj.TypeError,gN=function(e){if(xI(e))return e;throw vN(hN(e)+" is not an object")},yN=Zj.TypeError,mN=Object.defineProperty,bN={f:Qj?mN:function(e,t,n){if(gN(e),t=uN(t),gN(n),fN)try{return mN(e,t,n)}catch(r){}if("get"in n||"set"in n)throw yN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},wN=Qj?function(e,t,n){return bN.f(e,t,aI(1,n))}:function(e,t,n){return e[t]=n,e},EN=fI(Function.toString);EI(UI.inspectSource)||(UI.inspectSource=function(e){return EN(e)});var xN,CN,DN,SN=UI.inspectSource,AN=Zj.WeakMap,ON=EI(AN)&&/native code/.test(SN(AN)),kN=WI("keys"),BN=function(e){return kN[e]||(kN[e]=QI(e))},_N={},FN=Zj.TypeError,TN=Zj.WeakMap;if(ON||UI.state){var PN=UI.state||(UI.state=new TN),jN=fI(PN.get),IN=fI(PN.has),NN=fI(PN.set);xN=function(e,t){if(IN(PN,e))throw new FN("Object already initialized");return t.facade=e,NN(PN,e,t),t},CN=function(e){return jN(PN,e)||{}},DN=function(e){return IN(PN,e)}}else{var LN=BN("state");_N[LN]=!0,xN=function(e,t){if(XI(e,LN))throw new FN("Object already initialized");return t.facade=e,wN(e,LN,t),t},CN=function(e){return XI(e,LN)?e[LN]:{}},DN=function(e){return XI(e,LN)}}var RN={get:CN,enforce:function(e){return DN(e)?CN(e):xN(e,{})}},MN=Function.prototype,zN=Qj&&Object.getOwnPropertyDescriptor,$N=XI(MN,"name"),HN={EXISTS:$N,PROPER:$N&&"something"===function(){}.name,CONFIGURABLE:$N&&(!Qj||Qj&&zN(MN,"name").configurable)},VN=qj((function(e){var t=HN.CONFIGURABLE,n=RN.get,r=RN.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;EI(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!XI(i,"name")||t&&i.name!==f)&&wN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Zj?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:wN(e,n,i)):l?e[n]=i:VI(n,i)})(Function.prototype,"toString",(function(){return EI(this)&&n(this).source||SN(this)}))})),UN=Math.ceil,WN=Math.floor,GN=function(e){var t=+e;return t!=t||0===t?0:(t>0?WN:UN)(t)},qN=Math.max,KN=Math.min,XN=function(e,t){var n=GN(e);return n<0?qN(n+t,0):KN(n,t)},YN=Math.min,ZN=function(e){return e>0?YN(GN(e),9007199254740991):0},JN=function(e){return ZN(e.length)},QN=function(e){return function(t,n,r){var o,i=wI(t),a=JN(i),u=XN(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}},eL={includes:QN(!0),indexOf:QN(!1)},tL=eL.indexOf,nL=fI([].push),rL=function(e,t){var n,r=wI(e),o=0,i=[];for(n in r)!XI(_N,n)&&XI(r,n)&&nL(i,n);for(;t.length>o;)XI(r,n=t[o++])&&(~tL(i,n)||nL(i,n));return i},oL=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iL=oL.concat("length","prototype"),aL={f:Object.getOwnPropertyNames||function(e){return rL(e,iL)}},uL={f:Object.getOwnPropertySymbols},sL=fI([].concat),lL=DI("Reflect","ownKeys")||function(e){var t=aL.f(gN(e)),n=uL.f;return n?sL(t,n(e)):t},cL=function(e,t){for(var n=lL(t),r=bN.f,o=pN.f,i=0;i<n.length;i++){var a=n[i];XI(e,a)||r(e,a,o(t,a))}},fL=/#|\.prototype\./,dL=function(e,t){var n=hL[pL(e)];return n==gL||n!=vL&&(EI(t)?Jj(t):!!t)},pL=dL.normalize=function(e){return String(e).replace(fL,".").toLowerCase()},hL=dL.data={},vL=dL.NATIVE="N",gL=dL.POLYFILL="P",yL=dL,mL=pN.f,bL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Zj:l?Zj[u]||VI(u,{}):(Zj[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=mL(n,r))&&a.value:n[r],!yL(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;cL(i,o)}(e.sham||o&&o.sham)&&wN(i,"sham",!0),VN(n,r,i,e)}},wL=fI(fI.bind),EL=Array.isArray||function(e){return"Array"==hI(e)},xL={};xL[oN("toStringTag")]="z";var CL="[object z]"===String(xL),DL=oN("toStringTag"),SL=Zj.Object,AL="Arguments"==hI(function(){return arguments}()),OL=CL?hI: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(n){}}(t=SL(e),DL))?n:AL?hI(t):"Object"==(r=hI(t))&&EI(t.callee)?"Arguments":r},kL=function(){},BL=[],_L=DI("Reflect","construct"),FL=/^\s*(?:class|function)\b/,TL=fI(FL.exec),PL=!FL.exec(kL),jL=function(e){if(!EI(e))return!1;try{return _L(kL,BL,e),!0}catch(t){return!1}},IL=!_L||Jj((function(){var e;return jL(jL.call)||!jL(Object)||!jL((function(){e=!0}))||e}))?function(e){if(!EI(e))return!1;switch(OL(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return PL||!!TL(FL,SN(e))}:jL,NL=oN("species"),LL=Zj.Array,RL=function(e,t){return new(EL(n=e)&&(r=n.constructor,(IL(r)&&(r===LL||EL(r.prototype))||xI(r)&&null===(r=r[NL]))&&(r=void 0)),void 0===r?LL:r)(0===t?0:t);var n,r},ML=fI([].push),zL=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=qI(s),v=yI(h),g=function(e,t){return MI(e),void 0===t?e:wL?wL(e,t):function(){return e.apply(t,arguments)}}(l,c),y=JN(v),m=0,b=f||RL,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:ML(w,d)}else switch(e){case 4:return!1;case 7:ML(w,d)}return i?-1:r||o?o:w}},$L={forEach:zL(0),map:zL(1),filter:zL(2),find:zL(5)},HL=oN("species"),VL=function(e){return FI>=51||!Jj((function(){var t=[];return(t.constructor={})[HL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},UL=$L.filter;bL({target:"Array",proto:!0,forced:!VL("filter")},{filter:function(e){return UL(this,e,arguments.length>1?arguments[1]:void 0)}});var WL=CL?{}.toString:function(){return"[object "+OL(this)+"]"};CL||VN(Object.prototype,"toString",WL,{unsafe:!0});var GL,qL=Zj.String,KL=function(e){if("Symbol"===OL(e))throw TypeError("Cannot convert a Symbol value to a string");return qL(e)},XL=function(){var e=gN(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},YL=Zj.RegExp,ZL=Jj((function(){var e=YL("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));ZL||Jj((function(){return!YL("a","y").sticky}));var JL={BROKEN_CARET:ZL||Jj((function(){var e=YL("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:ZL},QL=Object.keys||function(e){return rL(e,oL)},eR=Qj?Object.defineProperties:function(e,t){gN(e);for(var n,r=wI(t),o=QL(t),i=o.length,a=0;i>a;)bN.f(e,n=o[a++],r[n]);return e},tR=DI("document","documentElement"),nR=BN("IE_PROTO"),rR=function(){},oR=function(e){return"<script>"+e+"<\/script>"},iR=function(e){e.write(oR("")),e.close();var t=e.parentWindow.Object;return e=null,t},aR=function(){try{GL=new ActiveXObject("htmlfile")}catch(r){}var e,t;aR="undefined"!=typeof document?document.domain&&GL?iR(GL):((t=cN("iframe")).style.display="none",tR.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(oR("document.F=Object")),e.close(),e.F):iR(GL);for(var n=oL.length;n--;)delete aR.prototype[oL[n]];return aR()};_N[nR]=!0;var uR,sR,lR=Object.create||function(e,t){var n;return null!==e?(rR.prototype=gN(e),n=new rR,rR.prototype=null,n[nR]=e):n=aR(),void 0===t?n:eR(n,t)},cR=Zj.RegExp,fR=Jj((function(){var e=cR(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),dR=Zj.RegExp,pR=Jj((function(){var e=dR("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),hR=RN.get,vR=WI("native-string-replace",String.prototype.replace),gR=RegExp.prototype.exec,yR=gR,mR=fI("".charAt),bR=fI("".indexOf),wR=fI("".replace),ER=fI("".slice),xR=(sR=/b*/g,tI(gR,uR=/a/,"a"),tI(gR,sR,"a"),0!==uR.lastIndex||0!==sR.lastIndex),CR=JL.BROKEN_CARET,DR=void 0!==/()??/.exec("")[1];(xR||DR||CR||fR||pR)&&(yR=function(e){var t,n,r,o,i,a,u,s=this,l=hR(s),c=KL(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tI(yR,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=CR&&s.sticky,h=tI(XL,s),v=s.source,g=0,y=c;if(p&&(h=wR(h,"y",""),-1===bR(h,"g")&&(h+="g"),y=ER(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==mR(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),DR&&(n=new RegExp("^"+v+"$(?!\\s)",h)),xR&&(r=s.lastIndex),o=tI(gR,p?n:s,y),p?o?(o.input=ER(o.input,g),o[0]=ER(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:xR&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),DR&&o&&o.length>1&&tI(vR,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=lR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var SR=yR;bL({target:"RegExp",proto:!0,forced:/./.exec!==SR},{exec:SR});var AR=Function.prototype,OR=AR.apply,kR=AR.bind,BR=AR.call,_R="object"==typeof Reflect&&Reflect.apply||(kR?BR.bind(OR):function(){return BR.apply(OR,arguments)}),FR=oN("species"),TR=RegExp.prototype,PR=function(e,t,n,r){var o=oN(e),i=!Jj((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Jj((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[FR]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=fI(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=fI(e),s=t.exec;return s===SR||s===TR.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));VN(String.prototype,e,s[0]),VN(TR,o,s[1])}r&&wN(TR[o],"sham",!0)},jR=fI("".charAt),IR=fI("".charCodeAt),NR=fI("".slice),LR=function(e){return function(t,n){var r,o,i=KL(bI(t)),a=GN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=IR(i,a))<55296||r>56319||a+1===u||(o=IR(i,a+1))<56320||o>57343?e?jR(i,a):r:e?NR(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),RR=function(e,t,n){return t+(n?LR(e,t).length:1)},MR=Math.floor,zR=fI("".charAt),$R=fI("".replace),HR=fI("".slice),VR=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,UR=/\$([$&'`]|\d{1,2})/g,WR=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=UR;return void 0!==o&&(o=qI(o),s=VR),$R(i,s,(function(i,s){var l;switch(zR(s,0)){case"$":return"$";case"&":return e;case"`":return HR(t,0,n);case"'":return HR(t,a);case"<":l=o[HR(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=MR(c/10);return 0===f?i:f<=u?void 0===r[f-1]?zR(s,1):r[f-1]+zR(s,1):i}l=r[c-1]}return void 0===l?"":l}))},GR=Zj.TypeError,qR=function(e,t){var n=e.exec;if(EI(n)){var r=tI(n,e,t);return null!==r&&gN(r),r}if("RegExp"===hI(e))return tI(SR,e,t);throw GR("RegExp#exec called on incompatible receiver")},KR=oN("replace"),XR=Math.max,YR=Math.min,ZR=fI([].concat),JR=fI([].push),QR=fI("".indexOf),eM=fI("".slice),tM="$0"==="a".replace(/./,"$0"),nM=!!/./[KR]&&""===/./[KR]("a","$0");PR("replace",(function(e,t,n){var r=nM?"$":"$0";return[function(e,n){var r=bI(this),o=null==e?void 0:zI(e,KR);return o?tI(o,e,r,n):tI(t,KL(r),e,n)},function(e,o){var i=gN(this),a=KL(e);if("string"==typeof o&&-1===QR(o,r)&&-1===QR(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=EI(o);s||(o=KL(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=qR(i,a);if(null===d)break;if(JR(f,d),!l)break;""===KL(d[0])&&(i.lastIndex=RR(a,ZN(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=KL((d=f[g])[0]),m=XR(YR(GN(d.index),a.length),0),b=[],w=1;w<d.length;w++)JR(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=ZR([y],b,m,a);void 0!==E&&JR(x,E);var C=KL(_R(o,void 0,x))}else C=WR(y,a,m,b,E,o);m>=v&&(h+=eM(a,v,m)+C,v=m+y.length)}return h+eM(a,v)}]}),!!Jj((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!tM||nM);var rM=oN("unscopables"),oM=Array.prototype;null==oM[rM]&&bN.f(oM,rM,{configurable:!0,value:lR(null)});var iM=function(e){oM[rM][e]=!0},aM=$L.find,uM=!0;"find"in[]&&Array(1).find((function(){uM=!1})),bL({target:"Array",proto:!0,forced:uM},{find:function(e){return aM(this,e,arguments.length>1?arguments[1]:void 0)}}),iM("find");var sM=oN("match"),lM=function(e){var t;return xI(e)&&(void 0!==(t=e[sM])?!!t:"RegExp"==hI(e))},cM=Zj.TypeError,fM=oN("species"),dM=function(e,t,n){var r=uN(t);r in e?bN.f(e,r,aI(0,n)):e[r]=n},pM=Zj.Array,hM=Math.max,vM=function(e,t,n){for(var r=JN(e),o=XN(t,r),i=XN(void 0===n?r:n,r),a=pM(hM(i-o,0)),u=0;o<i;o++,u++)dM(a,u,e[o]);return a.length=u,a},gM=JL.UNSUPPORTED_Y,yM=Math.min,mM=[].push,bM=fI(/./.exec),wM=fI(mM),EM=fI("".slice);PR("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=KL(bI(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!lM(e))return tI(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=tI(SR,f,r))&&!((a=f.lastIndex)>c&&(wM(s,EM(r,c,i.index)),i.length>1&&i.index<r.length&&_R(mM,s,vM(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&bM(f,"")||wM(s,""):wM(s,EM(r,c)),s.length>o?vM(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:tI(t,this,e,n)}:t,[function(t,n){var o=bI(this),i=null==t?void 0:zI(t,e);return i?tI(i,t,o,n):tI(r,KL(o),t,n)},function(e,o){var i=gN(this),a=KL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=gN(i).constructor)||null==(l=gN(c)[fM])?s:function(e){if(IL(e))return e;throw cM(LI(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(gM?"g":"y"),h=new f(gM?"^(?:"+i.source+")":i,p),v=void 0===o?4294967295:o>>>0;if(0===v)return[];if(0===a.length)return null===qR(h,a)?[a]:[];for(var g=0,y=0,m=[];y<a.length;){h.lastIndex=gM?0:y;var b,w=qR(h,gM?EM(a,y):a);if(null===w||(b=yM(ZN(h.lastIndex+(gM?y:0)),a.length))===g)y=RR(a,y,d);else{if(wM(m,EM(a,g,y)),m.length===v)return m;for(var E=1;E<=w.length-1;E++)if(wM(m,w[E]),m.length===v)return m;y=g=b}}return wM(m,EM(a,g)),m}]}),!!Jj((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]})),gM);var xM="\t\n\v\f\r                 \u2028\u2029\ufeff",CM=fI("".replace),DM="["+xM+"]",SM=RegExp("^"+DM+DM+"*"),AM=RegExp(DM+DM+"*$"),OM={trim:function(e){return function(t){var n=KL(bI(t));return 1&e&&(n=CM(n,SM,"")),2&e&&(n=CM(n,AM,"")),n}}(3)},kM=HN.PROPER,BM=OM.trim;function _M(e){return 0===Xh("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function FM(e){return 0===e.length?"":e[0].outerHTML}function TM(e){return e.length?e[0].tagName.toLowerCase():""}function PM(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}bL({target:"String",proto:!0,forced:Jj((function(){return!!xM.trim()||"â€
39‹Â…á Ž"!=="​…᠎".trim()||kM&&"trim"!==xM.trim.name}))},{trim:function(){return BM(this)}}),bL({global:!0},{globalThis:Zj}),cv&&(Xh.fn.css=cv),gv&&(Xh.fn.append=gv),yv&&(Xh.fn.prepend=yv),Yh&&(Xh.fn.addClass=Yh),Zh&&(Xh.fn.removeClass=Zh),Jh&&(Xh.fn.hasClass=Jh),rv&&(Xh.fn.on=rv),ov&&(Xh.fn.off=ov),Ov&&(Xh.fn.focus=Ov),Qh&&(Xh.fn.attr=Qh),ev&&(Xh.fn.removeAttr=ev),sv&&(Xh.fn.hide=sv),lv&&(Xh.fn.show=lv),bv&&(Xh.fn.parents=bv),tv&&(Xh.fn.dataset=tv),nv&&(Xh.fn.val=nv),hv&&(Xh.fn.text=hv),pv&&(Xh.fn.html=pv),Ev&&(Xh.fn.children=Ev),xv&&(Xh.fn.remove=xv),wv&&(Xh.fn.find=wv),iv&&(Xh.fn.width=iv),av&&(Xh.fn.height=av),dv&&(Xh.fn.filter=dv),Cv&&(Xh.fn.empty=Cv);var jM={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Xh(e);return 0===(t=t.filter((function(e){return!!gp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},IM=function(e,t){return IM=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])},IM(e,t);
40/*! *****************************************************************************
41  Copyright (c) Microsoft Corporation.
42  
43  Permission to use, copy, modify, and/or distribute this software for any
44  purpose with or without fee is hereby granted.
45  
46  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
47  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
48  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
49  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
50  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
51  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
52  PERFORMANCE OF THIS SOFTWARE.
53  ***************************************************************************** */};function NM(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}IM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var LM=function(){return LM=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},LM.apply(this,arguments)};function RM(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function MM(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],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 zM(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 $M(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(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function HM(e){var t=$M(Gd.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!zd.isElement(n))return!1;if("paragraph"===n.type)return!1;
vendor: 5,175 bytes, line 53
53if(""!==Zd.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!gp.isText(o[0])&&(jp.setNodes(e,{type:"paragraph"}),!0)}var VM={renderElems:[Wj],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[jM],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){HM(r)||t(e)},r.deleteForward=function(e){HM(r)||n(e)},r}},UM=/"/g,WM=fI("".replace),GM=function(e,t,n,r){var o=KL(bI(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+WM(KL(r),UM,"&quot;")+'"'),i+">"+o+"</"+t+">"},qM=function(e){return Jj((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function KM(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 XM(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}bL({target:"String",proto:!0,forced:qM("bold")},{bold:function(){return GM(this,"b","","")}}),bL({target:"String",proto:!0,forced:qM("italics")},{italics:function(){return GM(this,"i","","")}}),bL({target:"String",proto:!0,forced:qM("sub")},{sub:function(){return GM(this,"sub","","")}}),bL({target:"String",proto:!0,forced:qM("sup")},{sup:function(){return GM(this,"sup","","")}});var YM={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},ZM=cN("span").classList,JM=ZM&&ZM.constructor&&ZM.constructor.prototype,QM=JM===Object.prototype?void 0:JM,ez=function(e,t){var n=[][e];return!!n&&Jj((function(){n.call(null,t||function(){throw 1},1)}))},tz=$L.forEach,nz=ez("forEach")?[].forEach:function(e){return tz(this,e,arguments.length>1?arguments[1]:void 0)},rz=function(e){if(e&&e.forEach!==nz)try{wN(e,"forEach",nz)}catch(t){e.forEach=nz}};for(var oz in YM)YM[oz]&&rz(Zj[oz]&&Zj[oz].prototype);function iz(e,t){return null==e.selection||!!$M(Gd.nodes(e,{match:function(t){return"pre"===zk.getNodeType(t)||!!Gd.isVoid(e,t)},universal:!0}),1)[0]}function az(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Gd.removeMark(e,t)}))}rz(QM),bL({target:"Object",stat:!0,forced:Jj((function(){QL(1)}))},{keys:function(e){return QL(qI(e))}});var uz=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Gd.marks(e);return n?n[t]:!!$M(Gd.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 iz(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}(),sz='<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>',lz='<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>',cz='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',fz='<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>',dz='<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>',pz='<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>',hz='<svg viewBox="0 0 1024 1024">
53<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>',vz='<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>',gz='<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>',yz='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',mz='<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>',bz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',wz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Ez='<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>',xz='<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>',Cz='<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>',Dz='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Sz='<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>',Az='<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>',Oz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Sj("textStyle.bold"),t.iconSvg=sz,t.hotkey="mod+b",t}return NM(t,e),t}(uz),kz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Sj("textStyle.code"),t.iconSvg=dz,t.hotkey="mod+e",t}return NM(t,e),t}(uz),Bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Sj("textStyle.italic"),t.iconSvg=cz,t.hotkey="mod+i",t}return NM(t,e),t}(uz),_z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Sj("textStyle.through"),t.iconSvg=fz,t.hotkey="mod+shift+x",t}return NM(t,e),t}(uz),Fz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Sj("textStyle.underline"),t.iconSvg=lz,t.hotkey="mod+u",t}return NM(t,e),t}(uz),Tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=Sj("textStyle.sub"),t.iconSvg=Az,t.hotkey="",t}return NM(t,e),t}(uz),Pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=Sj("textStyle.sup"),t.iconSvg=Sz,t.hotkey="",t}return NM(t,e),t}(uz),jz=function(){function e(){this.title=Sj("textStyle.clear"),this.iconSvg
vendor: 4,401 bytes, line 53
53='<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 iz(e)},e.prototype.exec=function(e,t){var n,r,o=Gd.nodes(e,{match:function(e){return gp.isText(e)},universal:!0});try{for(var i=zM(o),a=i.next();!a.done;a=i.next())az(e,a.value[0])}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),Iz={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=Rg("strong",null,c)),a&&(c=Rg("code",null,c)),o&&(c=Rg("em",null,c)),i&&(c=Rg("u",null,c)),u&&(c=Rg("s",null,c)),s&&(c=Rg("sub",null,c)),l&&(c=Rg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Oz}},{key:"underline",factory:function(){return new Fz}},{key:"italic",factory:function(){return new Bz}},{key:"through",factory:function(){return new _z}},{key:"code",factory:function(){return new kz}},{key:"sub",factory:function(){return new Tz}},{key:"sup",factory:function(){return new Pz}},{key:"clearStyle",factory:function(){return new jz}}],styleToHtml:function(e,t){if(!gp.isText(e))return t;if(_M(t))return KM(e,t);var n=Xh(t);if("br"===TM(n))return KM(e,"<br>");var r=n.html();return r=KM(e,r),n.html(r),FM(n)},parseStyleHtml:function(e,t,n){var r=Xh(e);if(!gp.isText(t))return t;var o=t;return XM(r,"b,strong")&&(o.bold=!0),XM(r,"i,em")&&(o.italic=!0),XM(r,"u")&&(o.underline=!0),XM(r,"s,strike")&&(o.through=!0),XM(r,"sub")&&(o.sub=!0),XM(r,"sup")&&(o.sup=!0),XM(r,"code")&&(o.code=!0),o}};function Nz(e){return function(t,n,r){return Rg("h"+e,null,n)}}var Lz={type:"header1",renderElem:Nz(1)},Rz={type:"header2",renderElem:Nz(2)},Mz={type:"header3",renderElem:Nz(3)},zz={type:"header4",renderElem:Nz(4)},$z={type:"header5",renderElem:Nz(5)},Hz=HN.PROPER,Vz=RegExp.prototype,Uz=Vz.toString,Wz=fI(XL),Gz=Jj((function(){return"/a/b"!=Uz.call({source:"a",flags:"b"})})),qz=Hz&&"toString"!=Uz.name;(Gz||qz)&&VN(RegExp.prototype,"toString",(function(){var e=gN(this),t=KL(e.source),n=e.flags;return"/"+t+"/"+KL(void 0===n&&SI(Vz,e)&&!("flags"in Vz)?Wz(e):n)}),{unsafe:!0});var Kz,Xz=Zj.TypeError,Yz=function(e){if(lM(e))throw Xz("The method doesn't accept regular expressions");return e},Zz=oN("match"),Jz=function(e){var t=/./;try{"/./"[e](t)}catch(Oj){try{return t[Zz]=!1,"/./"[e](t)}catch(n){}}return!1},Qz=pN.f,e$=fI("".startsWith),t$=fI("".slice),n$=Math.min,r$=Jz("startsWith");function o$(e){var t=$M(Gd.nodes(e,{match:function(e){return zk.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=$M(t,1)[0];return zk.getNodeType(n)}function i$(e){return null==e.selection||!$M(Gd.nodes(e,{match:function(e){var t=zk.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function a$(e,t){t&&jp.setNodes(e,{type:t})}bL({target:"String",proto:!0,forced:!(!r$&&(Kz=Qz(String.prototype,"startsWith"),Kz&&!Kz.writable)||r$)},{startsWith:function(e){var t=KL(bI(this));Yz(e);var n=ZN(n$(arguments.length>1?arguments[1]:void 0,t.length)),r=KL(e);return e$?e$(t,r,n):t$(t,n,n+r.length)===r}});var u$=function(){function e(){this.title=Sj("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
53-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:Sj("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 o$(e)},e.prototype.isDisabled=function(e){return i$(e)},e.prototype.exec=function(e,t){a$(e,t.toString())},e}(),s$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return o$(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return i$(e)},e.prototype.exec=function(e,t){var n=this.type;a$(e,t===n?"paragraph":n)},e}(),l$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return NM(t,e),t}(s$),c$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return NM(t,e),t}(s$),f$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return NM(t,e),t}(s$),d$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return NM(t,e),t}(s$),p$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return NM(t,e),t}(s$),h$={key:"headerSelect",factory:function(){return new u$}},v$={key:"header1",factory:function(){return new l$}},g$={key:"header2",factory:function(){return new c$}},y$={key:"header3",factory:function(){return new f$}},m$={key:"header4",factory:function(){return new d$}},b$={key:"header5",factory:function(){return new p$}};function w$(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function E$(e){return function(t,n,r){var o=Xh(t);return 0===(n=n.filter((function(e){return!!gp.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var x$={renderElems:[Lz,Rz,Mz,zz,$z],elemsToHtml:[{type:"header1",elemToHtml:w$(1)},{type:"header2",elemToHtml:w$(2)},{type:"header3",elemToHtml:w$(3)},{type:"header4",elemToHtml:w$(4)},{type:"header5",elemToHtml:w$(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:E$(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:E$(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:E$(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:E$(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:E$(5)}],menus:[h$,v$,g$,y$,m$,b$],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=$M(Gd.nodes(n,{match:function(e){return zk.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&zk.isSelectionAtLineEnd(e,r[1])?jp.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},C$=Object.assign,D$=Object.defineProperty,S$=fI([].concat),A$=!C$||Jj((function(){if(Qj&&1!==C$({b:1},C$(D$({},"a",{enumerable:!0,get:function(){D$(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!=C$({},e)[n]||QL(C$({},t)).join("")!=r}))?function(e,t){for(var n=qI(e),r=arguments.length,o=1,i=uL.f,a=iI.f;r>o;)for(var u,s=yI(arguments[o++]),l=i?S$(QL(s),i(s)):QL(s),c=l.length,f=0;c>f;)u=l[f++],Qj&&!tI(a,s,u)||(n[u]=s[u]);return n}:C$;function O$(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}bL({target:"Object",stat:!0,forced:Object.assign!==A$},{assign:A$});var k$={selector:"font",preParseHtml:function(e){var t=Xh(e);if("font"!==TM(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},B$=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=Gd.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||!!$M(Gd.nodes(e,{match:function(t){return"pre"===zk.getNodeType(t)||!!Gd.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Xh('<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=Xh(r).attr("data-value");"0"===o?Gd.removeMark(e,t):Gd.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;
vendor: 9,498 bytes, line 53
53(void 0===i?[]:i).forEach((function(e){var t=Xh('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Xh('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=Sj("color.default")),"bgColor"===t&&(a=Sj("color.clear"));var u=Xh('\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}(),_$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("color.color"),t.iconSvg=vz,t.mark="color",t}return NM(t,e),t}(B$),F$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("color.bgColor"),t.iconSvg=gz,t.mark="bgColor",t}return NM(t,e),t}(B$),T$=["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)"],P$={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&O$(i,{color:r}),o&&O$(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!gp.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((_M(t)||"span"!==TM(n=Xh(t)))&&(n=Xh("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),FM(n)):t},preParseHtml:[k$],parseStyleHtml:function(e,t,n){var r=Xh(e);if(!gp.isText(t))return t;var o=t,i=PM(r,"color");i&&(o.color=i);var a=PM(r,"background-color");return a||(a=PM(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new _$},config:{colors:T$}},{key:"bgColor",factory:function(){return new F$},config:{colors:T$}}]},j$=/^(?:\w+:)?\/\/(\S+)$/,I$=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,N$=/^[^\s\.]+\.\S{2,}$/,L$=eL.includes;function R$(e){return void 0===e&&(e="r"),e+"-"+Uv()}function M$(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function z$(e,t,n,r){return RM(this,0,void 0,(function(){var o,i;return MM(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 $$(e,t,n){return RM(this,0,void 0,(function(){var r;return MM(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 H$(e){return null==e.selection||!!zk.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function V$(e,t){return{type:"link",url:M$(e),children:t?[{text:t}]:[]}}function U$(e,t,n){return RM(this,0,void 0,(function(){var r,o,i;return MM(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),H$(e)?[2]:[4,z$("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,$$("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(lp.isCollapsed(o)?(e.insertText(" "),i=V$(r,t),jp.insertNodes(e,i),e.insertFragment([{text:" "}])):Gd.string(e,o)!==t?(e.deleteFragment(),i=V$(r,t),jp.insertNodes(e,i)):(i=V$(r),jp.wrapNodes(e,i,{split:!0}),jp.collapse(e,{edge:"end"}))),[2]}}))}))}bL({target:"Array",proto:!0},{includes:function(e){return L$(this,e,arguments.length>1?arguments[1]:void 0)}}),iM("includes");var W$={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Rg("a",{href:o,target:void 0===i?"_blank":i},t)}},G$={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Xh(e);return 0===(t=t.filter((function(e){return!!gp.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 q$(){return R$("w-e-insert-link")}var K$=function(){function e(){this.title=Sj("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=q$(),this.urlInputId=q$(),this.buttonId=q$()}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 H$(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=$M(lP(Sj("link.text"),r),2),u=a[0],s=Xh(a[1]),l=$M(lP(Sj("link.url"),o),2),c=l[0],f=Xh(l[1]),d=$M(cP(i,Sj("common.ok")),1)[0];if(null==this.$content){var p=Xh("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();U$(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||lp.isCollapsed(t))s.val("");else{var v=Gd.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function X$(){return R$("w-e-update-link")}var Y$=function(){function e(){this.title=Sj("link.edit"),this.iconSvg=pz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=X$(),this.buttonId=X$()}return e.prototype.getSelectedLinkElem=function(e){var t=zk.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 zk.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=$M(lP(Sj("link.url"),t),2),o=r[0],i=Xh(r[1]),a=$M(cP(n,Sj("common.ok")),1)[0];if(null==this.$content){var u=Xh("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=zk.getSelectedNodeByType(e,"link"),o=r?Zd.string(r):"",i=u.find("#"+t).val();!function(e,t,n){RM(this,0,void 0,(function(){var r,o;return MM(this,(function(i){switch(i.label){case 0:return n?[4,z$("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,$$("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:M$(r)},jp.setNodes(e,o,{match:function(e){return zk.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),Z$=function(){function e(){this.title=Sj("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.347564
53c56.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==zk.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||jp.unwrapNodes(e,{match:function(e){return zk.checkNodeType(e,"link")}})},e}(),J$=function(){function e(){this.title=Sj("link.view"),this.iconSvg=hz,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=zk.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}(),Q$={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},eH={renderElems:[W$],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[G$],menus:[{key:"insertLink",factory:function(){return new K$},config:Q$},{key:"editLink",factory:function(){return new Y$},config:Q$},{key:"unLink",factory:function(){return new Z$}},{key:"viewLink",factory:function(){return new J$}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(j$);if(!t)return!1;var n=t[1];return!(!n||!I$.test(n)&&!N$.test(n))}(t)){if(!H$(o)){var r=o.selection;if(null!=r){var i=Gd.string(o,r);U$(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=$M(e,2),n=t[0],i=t[1];return"link"!==zk.getNodeType(n)?r([n,i]):""===Zd.string(n)?jp.removeNodes(o,{at:i}):r([n,i])},o}},tH=fI(1..valueOf),nH=Zj.RangeError,rH=Zj.RangeError,oH=Zj.String,iH=Math.floor,aH=fI((function(e){var t=KL(bI(this)),n="",r=GN(e);if(r<0||r==1/0)throw nH("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),uH=fI("".slice),sH=fI(1..toFixed),lH=function(e,t,n){return 0===t?n:t%2==1?lH(e,t-1,n*e):lH(e*e,t/2,n)},cH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=iH(o/1e7)},fH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=iH(r/t),r=r%t*1e7},dH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=oH(e[t]);n=""===n?r:n+aH("0",7-r.length)+r}return n};function pH(e,t){return"w-e-image-container-"+zk.findKey(e,t).id}bL({target:"Number",proto:!0,forced:Jj((function(){return"0.000"!==sH(8e-5,3)||"1"!==sH(.9,0)||"1.25"!==sH(1.255,2)||"1000000000000000128"!==sH(0xde0b6b3a7640080,0)}))||!Jj((function(){sH({})}))},{toFixed:function(e){var t,n,r,o,i=tH(this),a=GN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw rH("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return oH(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*lH(2,69,1))-69)<0?i*lH(2,-t,1):i/lH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(cH(u,0,n),r=a;r>=7;)cH(u,1e7,0),r-=7;for(cH(u,lH(10,r,1),0),r=t-1;r>=23;)fH(u,1<<23),r-=23;fH(u,1<<r),cH(u,1,1),fH(u,2),l=dH(u)}else cH(u,0,n),cH(u,1<<-t,0),l=dH(u)+aH("0",a);return a>0?s+((o=l.length)<=a?"0."+aH("0",a-o)+l:uH(l,0,o-a)+"."+uH(l,o-a)):s+l}});var hH={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,v=zk.isNodeSelected(n,e),g={};d&&(g.width="100%"),h&&(g.height="100%");var y,m,b,w,E,x,C,D=Rg("img",{style:g,src:o,alt:a,"data-href":s}),S=n.isDisabled();return v&&!S?function(e,t,n,r){var o=Xh("body"),i=pH(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=ig((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 h(n){if(o.off("mousemove",p),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:LM(LM({},t.style),{width:r+"px",height:i+"px"})};jp.setNodes(e,a,{at:zk.findPath(e,t)}),o.off("mouseup",h)}}var v={};return a&&(v.width=a),u&&(v.height=u),Rg("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=Xh(t.target);n.hasClass("w-e-image-dragger")&&(t.preventDefault(),(n.hasClass("left-top")||n.hasClass("left-bottom"))&&(f=!0),function(t){d=function(){var e=Xh("#"+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",p),o.on("mouseup",h);var r=zk.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,Rg("div",{className:"w-e-image-dragger left-top"}),Rg("div",{className:"w-e-image-dragger right-top"}),Rg("div",{className:"w-e-image-dragger left-bottom"}),Rg("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,D,{width:d,height:h}):(y=n,m=e,b=D,x=(w={width:d,height:h}).height,C={},(E=w.width)&&(C.width=E),x&&(C.height=x),Rg("div",{id:pH(y,m),style:C,className:"w-e-image-container"},b))}},vH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Xh(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:PM(r,"width"),height:PM(r,"height")},children:[{text:""}]}}};function gH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),RM(this,0,void 0,(function(){var i,a;return MM(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]}}))}))}
vendor: 93,289 bytes, lines 53-67
53function yH(e,t,n){return RM(this,0,void 0,(function(){var r;return MM(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 mH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),RM(this,0,void 0,(function(){var o,i,a;return MM(this,(function(u){switch(u.label){case 0:return[4,gH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,yH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:M$(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),zk.getSelectedNodeByType(e,"image")&&e.move(1),bH(e)||(jp.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function bH(e){var t=e.selection;return null==t||!lp.isCollapsed(t)||!!$M(Gd.nodes(e,{match:function(t){var n=zk.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Gd.isVoid(e,t)},universal:!0}),1)[0]}function wH(){return R$("w-e-insert-image")}var EH=function(){function e(){this.title=Sj("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=wH(),this.altInputId=wH(),this.hrefInputId=wH(),this.buttonId=wH()}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 bH(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=$M(lP(Sj("image.src"),r),2),s=u[0],l=Xh(u[1]),c=$M(lP(Sj("image.desc"),o),2),f=c[0],d=Xh(c[1]),p=$M(lP(Sj("image.link"),i),2),h=p[0],v=Xh(p[1]),g=$M(cP(a,Sj("common.ok")),1)[0];if(null==this.$content){var y=Xh("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),l.val(""),d.val(""),v.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||mH(e,t,n,r))},e}(),xH=function(){function e(){this.title=Sj("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==zk.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||jp.removeNodes(e,{match:function(e){return zk.checkNodeType(e,"image")}})},e}();function CH(){return R$("w-e-edit-image")}var DH=function(){function e(){this.title=Sj("image.edit"),this.iconSvg=pz,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=CH(),this.altInputId=CH(),this.hrefInputId=CH(),this.buttonId=CH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return zk.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||!lp.isCollapsed(t)||null==zk.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=$M(lP(Sj("image.src"),r),2),l=s[0],c=Xh(s[1]),f=$M(lP(Sj("image.desc"),o),2),d=f[0],p=Xh(f[1]),h=$M(lP(Sj("image.link"),i),2),v=h[0],g=Xh(h[1]),y=$M(cP(a,Sj("common.ok")),1)[0];if(null==this.$content){var m=Xh("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(v),b.append(y);var w=u,E=w.src,x=w.alt,C=void 0===x?"":x,D=w.href,S=void 0===D?"":D;return c.val(E),p.val(C),g.val(S),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),RM(this,0,void 0,(function(){var i,a,u,s,l,c;return MM(this,(function(f){switch(f.label){case 0:return[4,gH("editImage",e,t,n,r)];case 1:return f.sent()?[4,yH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=zk.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:LM(LM({},void 0===u?{}:u),o)},jp.setNodes(e,s,{match:function(e){return zk.checkNodeType(e,"image")}}),l=zk.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),SH=function(){function e(){this.title=Sj("image.viewLink"),this.iconSvg=hz,this.tag="button"}return e.prototype.getValue=function(e){var t=zk.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}(),AH=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 zk.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=zk.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:LM(LM({},void 0===o?{}:o),{width:this.value,height:""})};jp.setNodes(e,i,{match:function(e){return zk.checkNodeType(e,"image")}})}}},e}(),OH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return NM(t,e),t}(AH),kH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return NM(t,e),t}(AH),BH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return NM(t,e),t}(AH),_H={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},FH={renderElems:[hH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[vH],menus:[{key:"insertImage",factory:function(){return new EH},config:_H},{key:"deleteImage",factory:function(){return new xH}},{key:"editImage",factory:function(){return new DH},config:_H},{key:"viewImageLink",factory:function(){return new SH}},{key:"imageWidth30",factory:function(){return new OH}},{key:"imageWidth50",factory:function(){return new kH}},{key:"imageWidth100",factory:function(){return new BH}}],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}},TH={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),Rg("div",{style:{margin:"5px 0"}},Rg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Rg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=zk.findPath(n,e),o={checked:t.target.checked};jp.setNodes(n,o,{at:r})}}})),Rg("span",null,t))}},PH=function(){function e(){this.title=Sj("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!!zk.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!zk.getSelectedElems(e).some((function(t){if(Gd.isVoid(e,t)&&Gd.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);jp.setNodes(e,{type:n?"paragraph":"todo"})},e}(),jH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Xh(e);0===(t=t.filter((function(e){return!!gp.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}}},IH={renderElems:[TH],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=Xh(e).find("li"),n=Xh('<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:[jH],menus:[{key:"todo",factory:function(){return new PH}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&lp.isCollapsed(r)){var o=zk.getSelectedNodeByType(e,"todo");if(o&&0===Zd.string(o).length)return void jp.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},NH={type:"blockquote",renderElem:function(e,t,n){return Rg("blockquote",null,t)}},LH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Xh(e);return 0===(t=t.filter((function(e){return!!gp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},RH=function(){function e(){this.title=Sj("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!!zk.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!$M(Gd.nodes(e,{match:function(e){var t=zk.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";jp.setNodes(e,{type:n},{mode:"highest"})}},e}(),MH={key:"blockquote",factory:function(){return new RH}},zH=fI([].slice),$H=VL("slice"),HH=oN("species"),VH=Zj.Array,UH=Math.max;bL({target:"Array",proto:!0,forced:!$H},{slice:function(e,t){var n,r,o,i=wI(this),a=JN(i),u=XN(e,a),s=XN(void 0===t?a:t,a);if(EL(i)&&(n=i.constructor,(IL(n)&&(n===VH||EL(n.prototype))||xI(n)&&null===(n=n[HH]))&&(n=void 0),n===VH||void 0===n))return zH(i,u,s);for(r=new(void 0===n?VH:n)(UH(s-u,0)),o=0;u<s;u++,o++)u in i&&dM(r,o,i[u]);return r.length=o,r}});var WH={renderElems:[NH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[LH],menus:[MH],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=$M(Gd.nodes(e,{match:function(e){return zk.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=zk.findPath(e,a),s=Gd.end(e,u);if(ip.equals(s,o.focus)){var l=Zd.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void jp.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},GH=function(){function e(){this.title=Sj("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||!!$M(Gd.nodes(e,{match:function(t){return"pre"===zk.getNodeType(t)||!!Gd.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Xh('<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=Xh(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=Xh("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),qH={menus:[{key:"emotion",factory:function(){return new GH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},KH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},XH={selector:"font",preParseHtml:function(e){var t=Xh(e);if("font"!==TM(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",KH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},YH=fI("".indexOf);bL({target:"String",proto:!0,forced:!Jz("includes")},{includes:function(e){return!!~YH(KL(bI(this)),KL(Yz(e)),arguments.length>1?arguments[1]:void 0)}});var ZH,JH,QH=function(e){return e&&e.Math==Math&&e},eV=QH("object"==typeof globalThis&&globalThis)||QH("object"==typeof window&&window)||QH("object"==typeof self&&self)||QH("object"==typeof Gj&&Gj)||function(){return this}()||Function("return this")(),tV=Function.prototype,nV=tV.apply,rV=tV.bind,oV=tV.call,iV="object"==typeof Reflect&&Reflect.apply||(rV?oV.bind(nV):function(){return oV.apply(nV,arguments)}),aV=Function.prototype,uV=aV.bind,sV=aV.call,lV=uV&&uV.bind(sV),cV=uV?function(e){return e&&lV(sV,e)}:function(e){return e&&function(){return sV.apply(e,arguments)}},fV=function(e){return"function"==typeof e},dV=function(e){try{return!!e()}catch(t){return!0}},pV=!dV((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),hV=Function.prototype.call,vV=hV.bind?hV.bind(hV):function(){return hV.apply(hV,arguments)},gV={}.propertyIsEnumerable,yV=Object.getOwnPropertyDescriptor,mV=yV&&!gV.call({1:2},1)?function(e){var t=yV(this,e);return!!t&&t.enumerable}:gV,bV={f:mV},wV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},EV=cV({}.toString),xV=cV("".slice),CV=function(e){return xV(EV(e),8,-1)},DV=eV.Object,SV=cV("".split),AV=dV((function(){return!DV("z").propertyIsEnumerable(0)}))?function(e){return"String"==CV(e)?SV(e,""):DV(e)}:DV,OV=eV.TypeError,kV=function(e){if(null==e)throw OV("Can't call method on "+e);return e},BV=function(e){return AV(kV(e))},_V=function(e){return"object"==typeof e?null!==e:fV(e)},FV={},TV=function(e){return fV(e)?e:void 0},PV=function(e,t){return arguments.length<2?TV(FV[e])||TV(eV[e]):FV[e]&&FV[e][t]||eV[e]&&eV[e][t]},jV=cV({}.isPrototypeOf),IV=PV("navigator","userAgent")||"",NV=eV.process,LV=eV.Deno,RV=NV&&NV.versions||LV&&LV.version,MV=RV&&RV.v8;MV&&(JH=(ZH=MV.split("."))[0]>0&&ZH[0]<4?1:+(ZH[0]+ZH[1])),!JH&&IV&&(!(ZH=IV.match(/Edge\/(\d+)/))||ZH[1]>=74)&&(ZH=IV.match(/Chrome\/(\d+)/))&&(JH=+ZH[1]);var zV=JH,$V=!!Object.getOwnPropertySymbols&&!dV((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zV&&zV<41})),HV=$V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,VV=eV.Object,UV=HV?function(e){return"symbol"==typeof e}:function(e){var t=PV("Symbol");return fV(t)&&jV(t.prototype,VV(e))},WV=eV.String,GV=eV.TypeError,qV=function(e){if(fV(e))return e;throw GV(function(e){try{return WV(e)}catch(t){return"Object"}}(e)+" is not a function")},KV=eV.TypeError,XV=Object.defineProperty,YV=eV["__core-js_shared__"]||function(e,t){try{XV(eV,e,{value:t,configurable:!0,writable:!0})}catch(Oj){eV[e]=t}return t}("__core-js_shared__",{}),ZV=qj((function(e){(e.exports=function(e,t){return YV[e]||(YV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),JV=eV.Object,QV=function(e){return JV(kV(e))},eU=cV({}.hasOwnProperty),tU=Object.hasOwn||function(e,t){return eU(QV(e),t)},nU=0,rU=Math.random(),oU=cV(1..toString),iU=function(e){return"Symbol("+(void 0===e?"":e)+")_"+oU(++nU+rU,36)},aU=ZV("wks"),uU=eV.Symbol,sU=uU&&uU.for,lU=HV?uU:uU&&uU.withoutSetter||iU,cU=function(e){if(!tU(aU,e)||!$V&&"string"!=typeof aU[e]){var t="Symbol."+e;$V&&tU(uU,e)?aU[e]=uU[e]:aU[e]=HV&&sU?sU(t):lU(t)}return aU[e]},fU=eV.TypeError,dU=cU("toPrimitive"),pU=function(e){var t=function(e,t){if(!_V(e)||UV(e))return e;var n,r,o=null==(n=e[dU])?void 0:qV(n);if(o){if(r=vV(o,e,"string"),!_V(r)||UV(r))return r;throw fU("Can't convert object to primitive value")}return function(e,t){var n,r;if(fV(n=e.toString)&&!_V(r=vV(n,e)))return r;if(fV(n=e.valueOf)&&!_V(r=vV(n,e)))return r;throw KV("Can't convert object to primitive value")}(e)}(e);return UV(t)?t:t+""},hU=eV.document,vU=_V(hU)&&_V(hU.createElement),gU=function(e){return vU?hU.createElement(e):{}},yU=!pV&&!dV((function(){return 7!=Object.defineProperty(gU("div"),"a",{get:function(){return 7}}).a})),mU=Object.getOwnPropertyDescriptor,bU={f:pV?mU:function(e,t){if(e=BV(e),t=pU(t),yU)try{return mU(e,t)}catch(n){}if(tU(e,t))return wV(!vV(bV.f,e,t),e[t])}},wU=/#|\.prototype\./,EU=function(e,t){var n=CU[xU(e)];return n==SU||n!=DU&&(fV(t)?dV(t):!!t)},xU=EU.normalize=function(e){return String(e).replace(wU,".").toLowerCase()},CU=EU.data={},DU=EU.NATIVE="N",SU=EU.POLYFILL="P",AU=EU,OU=cV(cV.bind),kU=function(e,t){return qV(e),void 0===t?e:OU?OU(e,t):function(){return e.apply(t,arguments)}},BU=eV.String,_U=eV.TypeError,FU=function(e){if(_V(e))return e;throw _U(BU(e)+" is not an object")},TU=eV.TypeError,PU=Object.defineProperty,jU={f:pV?PU:function(e,t,n){if(FU(e),t=pU(t),FU(n),yU)try{return PU(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TU("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},IU=pV?function(e,t,n){return jU.f(e,t,wV(1,n))}:function(e,t,n){return e[t]=n,e},NU=bU.f,LU=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 iV(e,this,arguments)};return t.prototype=e.prototype,t},RU=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?eV:d?eV[c]:(eV[c]||{}).prototype,v=f?FV:FV[c]||IU(FV,c,{})[c],g=v.prototype;for(o in t)n=!AU(f?o:c+(d?".":"#")+o,e.forced)&&h&&tU(h,o),a=v[o],n&&(u=e.noTargetGet?(l=NU(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?kU(i,eV):e.wrap&&n?LU(i):p&&fV(i)?cV(i):i,(e.sham||i&&i.sham||a&&a.sham)&&IU(s,"sham",!0),IU(v,o,s),p&&(tU(FV,r=c+"Prototype")||IU(FV,r,{}),IU(FV[r],o,i),e.real&&g&&!g[o]&&IU(g,o,i)))},MU=Array.isArray||function(e){return"Array"==CV(e)},zU=Math.ceil,$U=Math.floor,HU=function(e){var t=+e;return t!=t||0===t?0:(t>0?$U:zU)(t)},VU=Math.min,UU=function(e){return(t=e.length)>0?VU(HU(t),9007199254740991):0;var t},WU=function(e,t,n){var r=pU(t);r in e?jU.f(e,r,wV(0,n)):e[r]=n},GU={};GU[cU("toStringTag")]="z";var qU="[object z]"===String(GU),KU=cU("toStringTag"),XU=eV.Object,YU="Arguments"==CV(function(){return arguments}()),ZU=qU?CV: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(n){}}(t=XU(e),KU))?n:YU?CV(t):"Object"==(r=CV(t))&&fV(t.callee)?"Arguments":r},JU=cV(Function.toString);fV(YV.inspectSource)||(YV.inspectSource=function(e){return JU(e)});var QU=YV.inspectSource,eW=function(){},tW=[],nW=PV("Reflect","construct"),rW=/^\s*(?:class|function)\b/,oW=cV(rW.exec),iW=!rW.exec(eW),aW=function(e){if(!fV(e))return!1;try{return nW(eW,tW,e),!0}catch(t){return!1}},uW=!nW||dV((function(){var e;return aW(aW.call)||!aW(Object)||!aW((function(){e=!0}))||e}))?function(e){if(!fV(e))return!1;switch(ZU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return iW||!!oW(rW,QU(e))}:aW,sW=cU("species"),lW=eV.Array,cW=function(e,t){return new(MU(n=e)&&(r=n.constructor,(uW(r)&&(r===lW||MU(r.prototype))||_V(r)&&null===(r=r[sW]))&&(r=void 0)),void 0===r?lW:r)(0===t?0:t);var n,r},fW=cU("species"),dW=cU("isConcatSpreadable"),pW=eV.TypeError,hW=zV>=51||!dV((function(){var e=[];return e[dW]=!1,e.concat()[0]!==e})),vW=zV>=51||!dV((function(){var e=[];return(e.constructor={})[fW]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),gW=function(e){if(!_V(e))return!1;var t=e[dW];return void 0!==t?!!t:MU(e)};RU({target:"Array",proto:!0,forced:!hW||!vW},{concat:function(e){var t,n,r,o,i,a=QV(this),u=cW(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(gW(i=-1===t?a:arguments[t])){if(s+(o=UU(i))>9007199254740991)throw pW("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&WU(u,s,i[n])}else{if(s>=9007199254740991)throw pW("Maximum allowed index exceeded");WU(u,s++,i)}return u.length=s,u}});var yW,mW=eV.String,bW=function(e){if("Symbol"===ZU(e))throw TypeError("Cannot convert a Symbol value to a string");return mW(e)},wW=Math.max,EW=Math.min,xW=function(e,t){var n=HU(e);return n<0?wW(n+t,0):EW(n,t)},CW={indexOf:function(e){return function(t,n,r){var o,i=BV(t),a=UU(i),u=xW(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}}(!1)},DW={},SW=CW.indexOf,AW=cV([].push),OW=function(e,t){var n,r=BV(e),o=0,i=[];for(n in r)!tU(DW,n)&&tU(r,n)&&AW(i,n);for(;t.length>o;)tU(r,n=t[o++])&&(~SW(i,n)||AW(i,n));return i},kW=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],BW=Object.keys||function(e){return OW(e,kW)},_W=pV?Object.defineProperties:function(e,t){FU(e);for(var n,r=BV(t),o=BW(t),i=o.length,a=0;i>a;)jU.f(e,n=o[a++],r[n]);return e},FW=PV("document","documentElement"),TW=ZV("keys"),PW=function(e){return TW[e]||(TW[e]=iU(e))},jW=PW("IE_PROTO"),IW=function(){},NW=function(e){return"<script>"+e+"<\/script>"},LW=function(e){e.write(NW("")),e.close();var t=e.parentWindow.Object;return e=null,t},RW=function(){try{yW=new ActiveXObject("htmlfile")}catch(r){}var e,t;RW="undefined"!=typeof document?document.domain&&yW?LW(yW):((t=gU("iframe")).style.display="none",FW.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(NW("document.F=Object")),e.close(),e.F):LW(yW);for(var n=kW.length;n--;)delete RW.prototype[kW[n]];return RW()};DW[jW]=!0;var MW,zW,$W,HW=Object.create||function(e,t){var n;return null!==e?(IW.prototype=FU(e),n=new IW,IW.prototype=null,n[jW]=e):n=RW(),void 0===t?n:_W(n,t)},VW=kW.concat("length","prototype"),UW={f:Object.getOwnPropertyNames||function(e){return OW(e,VW)}},WW=eV.Array,GW=Math.max,qW=UW.f,KW="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],XW={f:function(e){return KW&&"Window"==CV(e)?function(e){try{return qW(e)}catch(t){return function(e,t,n){for(var r=UU(e),o=xW(void 0,r),i=xW(r,r),a=WW(GW(i-o,0)),u=0;o<i;o++,u++)WU(a,u,e[o]);return a.length=u,a}(KW)}}(e):qW(BV(e))}},YW={f:Object.getOwnPropertySymbols},ZW=cV([].slice),JW=function(e,t,n,r){IU(e,t,n)},QW={f:cU},eG=jU.f,tG=function(e){var t=FV.Symbol||(FV.Symbol={});tU(t,e)||eG(t,e,{value:QW.f(e)})},nG=qU?{}.toString:function(){return"[object "+ZU(this)+"]"},rG=jU.f,oG=cU("toStringTag"),iG=function(e,t,n,r){if(e){var o=n?e:e.prototype;tU(o,oG)||rG(o,oG,{configurable:!0,value:t}),r&&!qU&&IU(o,"toString",nG)}},aG=eV.WeakMap,uG=fV(aG)&&/native code/.test(QU(aG)),sG=eV.TypeError,lG=eV.WeakMap;if(uG||YV.state){var cG=YV.state||(YV.state=new lG),fG=cV(cG.get),dG=cV(cG.has),pG=cV(cG.set);MW=function(e,t){if(dG(cG,e))throw new sG("Object already initialized");return t.facade=e,pG(cG,e,t),t},zW=function(e){return fG(cG,e)||{}},$W=function(e){return dG(cG,e)}}else{var hG=PW("state");DW[hG]=!0,MW=function(e,t){if(tU(e,hG))throw new sG("Object already initialized");return t.facade=e,IU(e,hG,t),t},zW=function(e){return tU(e,hG)?e[hG]:{}},$W=function(e){return tU(e,hG)}}var vG={set:MW,get:zW,has:$W,enforce:function(e){return $W(e)?zW(e):MW(e,{})},getterFor:function(e){return function(t){var n;if(!_V(t)||(n=zW(t)).type!==e)throw sG("Incompatible receiver, "+e+" required");return n}}},gG=cV([].push),yG=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=QV(s),v=AV(h),g=kU(l,c),y=UU(v),m=0,b=f||cW,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:gG(w,d)}else switch(e){case 4:return!1;case 7:gG(w,d)}return i?-1:r||o?o:w}},mG=[yG(0),yG(1),yG(2),yG(3),yG(4),yG(5),yG(6),yG(7)][0],bG=PW("hidden"),wG=cU("toPrimitive"),EG=vG.set,xG=vG.getterFor("Symbol"),CG=Object.prototype,DG=eV.Symbol,SG=DG&&DG.prototype,AG=eV.TypeError,OG=eV.QObject,kG=PV("JSON","stringify"),BG=bU.f,_G=jU.f,FG=XW.f,TG=bV.f,PG=cV([].push),jG=ZV("symbols"),IG=ZV("op-symbols"),NG=ZV("string-to-symbol-registry"),LG=ZV("symbol-to-string-registry"),RG=ZV("wks"),MG=!OG||!OG.prototype||!OG.prototype.findChild,zG=pV&&dV((function(){return 7!=HW(_G({},"a",{get:function(){return _G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=BG(CG,t);r&&delete CG[t],_G(e,t,n),r&&e!==CG&&_G(CG,t,r)}:_G,$G=function(e,t){var n=jG[e]=HW(SG);return EG(n,{type:"Symbol",tag:e,description:t}),pV||(n.description=t),n},HG=function(e,t,n){e===CG&&HG(IG,t,n),FU(e);var r=pU(t);return FU(n),tU(jG,r)?(n.enumerable?(tU(e,bG)&&e[bG][r]&&(e[bG][r]=!1),n=HW(n,{enumerable:wV(0,!1)})):(tU(e,bG)||_G(e,bG,wV(1,{})),e[bG][r]=!0),zG(e,r,n)):_G(e,r,n)},VG=function(e,t){FU(e);var n=BV(t),r=BW(n).concat(qG(n));return mG(r,(function(t){pV&&!vV(UG,n,t)||HG(e,t,n[t])})),e},UG=function(e){var t=pU(e),n=vV(TG,this,t);return!(this===CG&&tU(jG,t)&&!tU(IG,t))&&(!(n||!tU(this,t)||!tU(jG,t)||tU(this,bG)&&this[bG][t])||n)},WG=function(e,t){var n=BV(e),r=pU(t);if(n!==CG||!tU(jG,r)||tU(IG,r)){var o=BG(n,r);return!o||!tU(jG,r)||tU(n,bG)&&n[bG][r]||(o.enumerable=!0),o}},GG=function(e){var t=FG(BV(e)),n=[];return mG(t,(function(e){tU(jG,e)||tU(DW,e)||PG(n,e)})),n},qG=function(e){var t=e===CG,n=FG(t?IG:BV(e)),r=[];return mG(n,(function(e){!tU(jG,e)||t&&!tU(CG,e)||PG(r,jG[e])})),r};if($V||(SG=(DG=function(){if(jV(SG,this))throw AG("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?bW(arguments[0]):void 0,t=iU(e),n=function(e){this===CG&&vV(n,IG,e),tU(this,bG)&&tU(this[bG],t)&&(this[bG][t]=!1),zG(this,t,wV(1,e))};return pV&&MG&&zG(CG,t,{configurable:!0,set:n}),$G(t,e)}).prototype,JW(SG,"toString",(function(){return xG(this).tag})),JW(DG,"withoutSetter",(function(e){return $G(iU(e),e)})),bV.f=UG,jU.f=HG,bU.f=WG,UW.f=XW.f=GG,YW.f=qG,QW.f=function(e){return $G(cU(e),e)},pV&&_G(SG,"description",{configurable:!0,get:function(){return xG(this).description}})),RU({global:!0,wrap:!0,forced:!$V,sham:!$V},{Symbol:DG}),mG(BW(RG),(function(e){tG(e)})),RU({target:"Symbol",stat:!0,forced:!$V},{for:function(e){var t=bW(e);if(tU(NG,t))return NG[t];var n=DG(t);return NG[t]=n,LG[n]=t,n},keyFor:function(e){if(!UV(e))throw AG(e+" is not a symbol");if(tU(LG,e))return LG[e]},useSetter:function(){MG=!0},useSimple:function(){MG=!1}}),RU({target:"Object",stat:!0,forced:!$V,sham:!pV},{create:function(e,t){return void 0===t?HW(e):VG(HW(e),t)},defineProperty:HG,defineProperties:VG,getOwnPropertyDescriptor:WG}),RU({target:"Object",stat:!0,forced:!$V},{getOwnPropertyNames:GG,getOwnPropertySymbols:qG}),RU({target:"Object",stat:!0,forced:dV((function(){YW.f(1)}))},{getOwnPropertySymbols:function(e){return YW.f(QV(e))}}),kG){var KG=!$V||dV((function(){var e=DG();return"[null]"!=kG([e])||"{}"!=kG({a:e})||"{}"!=kG(Object(e))}));RU({target:"JSON",stat:!0,forced:KG},{stringify:function(e,t,n){var r=ZW(arguments),o=t;if((_V(t)||void 0!==e)&&!UV(e))return MU(t)||(t=function(e,t){if(fV(o)&&(t=vV(o,this,e,t)),!UV(t))return t}),r[1]=t,iV(kG,null,r)}})}if(!SG[wG]){var XG=SG.valueOf;JW(SG,wG,(function(e){return vV(XG,this)}))}iG(DG,"Symbol"),DW[bG]=!0,tG("asyncIterator"),tG("hasInstance"),tG("isConcatSpreadable"),tG("iterator"),tG("match"),tG("matchAll"),tG("replace"),tG("search"),tG("species"),tG("split"),tG("toPrimitive"),tG("toStringTag"),tG("unscopables"),iG(eV.JSON,"JSON",!0);var YG,ZG,JG,QG=FV.Symbol,eq={},tq=Function.prototype,nq=pV&&Object.getOwnPropertyDescriptor,rq=tU(tq,"name"),oq={PROPER:rq&&"something"===function(){}.name,CONFIGURABLE:rq&&(!pV||pV&&nq(tq,"name").configurable)},iq=!dV((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),aq=PW("IE_PROTO"),uq=eV.Object,sq=uq.prototype,lq=iq?uq.getPrototypeOf:function(e){var t=QV(e);if(tU(t,aq))return t[aq];var n=t.constructor;return fV(n)&&t instanceof n?n.prototype:t instanceof uq?sq:null},cq=cU("iterator"),fq=!1;[].keys&&("next"in(JG=[].keys())?(ZG=lq(lq(JG)))!==Object.prototype&&(YG=ZG):fq=!0);var dq=null==YG||dV((function(){var e={};return YG[cq].call(e)!==e}));YG=dq?{}:HW(YG),fV(YG[cq])||JW(YG,cq,(function(){return this}));var pq={IteratorPrototype:YG,BUGGY_SAFARI_ITERATORS:fq},hq=pq.IteratorPrototype,vq=function(){return this};eV.String,eV.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{cV(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var gq=oq.PROPER,yq=pq.BUGGY_SAFARI_ITERATORS,mq=cU("iterator"),bq=function(){return this},wq=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=HW(hq,{next:wV(1,s)}),iG(u,l,!1,!0),eq[l]=vq;var c,f,d=function(e){if(e===o&&y)return y;if(!yq&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,v=e.prototype,g=v[mq]||v["@@iterator"]||o&&v[o],y=!yq&&g||d(o),m="Array"==t&&v.entries||g;return m&&(c=lq(m.call(new e)))!==Object.prototype&&c.next&&(iG(c,p,!0,!0),eq[p]=bq),gq&&"values"==o&&g&&"values"!==g.name&&(h=!0,y=function(){return vV(g,this)}),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||RU({target:t,proto:!0,forced:yq||h},f)),eq[t]=y,f},Eq=vG.set,xq=vG.getterFor("Array Iterator");wq(Array,"Array",(function(e,t){Eq(this,{type:"Array Iterator",target:BV(e),index:0,kind:t})}),(function(){var e=xq(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"),eq.Arguments=eq.Array;var Cq=cU("toStringTag");for(var Dq 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 Sq=eV[Dq],Aq=Sq&&Sq.prototype;Aq&&ZU(Aq)!==Cq&&IU(Aq,Cq,Dq),eq[Dq]=eq.Array}var Oq=QG;tG("asyncDispose"),tG("dispose"),tG("matcher"),tG("metadata"),tG("observable"),tG("patternMatch"),tG("replaceAll");var kq=Oq,Bq=cV("".charAt),_q=cV("".charCodeAt),Fq=cV("".slice),Tq=function(e){return function(t,n){var r,o,i=bW(kV(t)),a=HU(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=_q(i,a))<55296||r>56319||a+1===u||(o=_q(i,a+1))<56320||o>57343?e?Bq(i,a):r:e?Fq(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Pq=vG.set,jq=vG.getterFor("String Iterator");wq(String,"String",(function(e){Pq(this,{type:"String Iterator",string:bW(e),index:0})}),(function(){var e,t=jq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Tq(n,r),t.index+=e.length,{value:e,done:!1})}));var Iq=QW.f("iterator"),Nq=qj((function(e){function t(n){return"function"==typeof kq&&"symbol"==typeof Iq?(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 kq&&e.constructor===kq&&e!==kq.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})),Lq=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Nq),Rq=HN.EXISTS,Mq=bN.f,zq=Function.prototype,$q=fI(zq.toString),Hq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vq=fI(Hq.exec);Qj&&!Rq&&Mq(zq,"name",{configurable:!0,get:function(){try{return Vq(Hq,$q(this))[1]}catch(Et){return""}}});var Uq=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=Gd.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!$M(Gd.nodes(e,{match:function(t){return"pre"===zk.getNodeType(t)||!!Gd.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}(),Wq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("fontSize.title"),t.iconSvg=yz,t.mark="fontSize",t}return NM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:Sj("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===Lq(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(Uq),Gq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("fontFamily.title"),t.iconSvg=mz,t.mark="fontFamily",t.selectPanelWidth=150,t}return NM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:Sj("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===Lq(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}(Uq),qq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&O$(i,{fontSize:r}),o&&O$(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!gp.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((_M(t)||"span"!==TM(n=Xh(t)))&&(n=Xh("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),FM(n)):t},preParseHtml:[XH],parseStyleHtml:function(e,t,n){var r=Xh(e);if(!gp.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=PM(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=PM(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Wq},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new Gq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Kq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Xh(e),n=PM(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]}},Xq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=$M(Gd.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":$M(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=$M(Gd.nodes(e,{match:function(e){var t=zk.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),Yq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("indent.decrease"),t.iconSvg=bz,t}return NM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){jp.setNodes(e,{indent:null},{match:function(e){return zd.isElement(e)}})},t}(Xq),Zq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("indent.increase"),t.iconSvg=wz,t}return NM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){jp.setNodes(e,{indent:"2em"},{match:function(e){return zd.isElement(e)},mode:"highest"})},t}(Xq),Jq={renderStyle:function(e,t){if(!zd.isElement(e))return t;var n=e.indent,r=t;return n&&O$(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!zd.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Xh(t);return r.css("text-indent",n),FM(r)},preParseHtml:[Kq],parseStyleHtml:function(e,t,n){var r=Xh(e);if(!zd.isElement(t))return t;var o=t,i=PM(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Zq}},{key:"delIndent",factory:function(){return new Yq}}]},Qq=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=$M(Gd.nodes(e,{match:function(e){var t=zk.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||!!zk.getSelectedElems(e).some((function(t){if(Gd.isVoid(e,t)&&Gd.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),eK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("justify.left"),t.iconSvg=Ez,t}return NM(t,e),t.prototype.exec=function(e,t){jp.setNodes(e,{textAlign:"left"},{match:function(t){return zd.isElement(t)&&!e.isInline(t)}})},t}(Qq),tK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("justify.right"),t.iconSvg=xz,t}return NM(t,e),t.prototype.exec=function(e,t){jp.setNodes(e,{textAlign:"right"},{match:function(t){return zd.isElement(t)&&!e.isInline(t)}})},t}(Qq),nK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("justify.center"),t.iconSvg=Cz,t}return NM(t,e),t.prototype.exec=function(e,t){jp.setNodes(e,{textAlign:"center"},{match:function(t){return zd.isElement(t)&&!e.isInline(t)}})},t}(Qq),rK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Sj("justify.justify"),t.iconSvg=Dz,t}return NM(t,e),t.prototype.exec=function(e,t){jp.setNodes(e,{textAlign:"justify"},{match:function(t){return zd.isElement(t)&&!e.isInline(t)}})},t}(Qq),oK={renderStyle:function(e,t){if(!zd.isElement(e))return t;var n=e.textAlign,r=t;return n&&O$(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!zd.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Xh(t);return r.css("text-align",n),FM(r)},parseStyleHtml:function(e,t,n){var r=Xh(e);if(!zd.isElement(t))return t;var o=t,i=PM(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new eK}},{key:"justifyRight",factory:function(){return new tK}},{key:"justifyCenter",factory:function(){return new nK}},{key:"justifyJustify",factory:function(){return new rK}}]},iK=function(){function e(){this.title=Sj("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:Sj("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=$M(Gd.nodes(e,{match:function(e){var t=zk.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":zd.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){jp.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),aK={renderStyle:function(e,t){if(!zd.isElement(e))return t;var n=e.lineHeight,r=t;return n&&O$(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!zd.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Xh(t);return r.css("line-height",n),FM(r)},parseStyleHtml:function(e,t,n){var r=Xh(e);if(!zd.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=PM(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new iK},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},uK=function(){function e(){this.title=Sj("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}(),sK=function(){function e(){this.title=Sj("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}(),lK={menus:[{key:"redo",factory:function(){return new uK}},{key:"undo",factory:function(){return new sK}}]},cK={type:"divider",renderElem:function(e,t,n){return mg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:zk.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[mg("hr")])}},fK=function(){function e(){this.title=Sj("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||!!zk.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=zk.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){jp.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),dK={renderElems:[cK],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new fK}}],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=$M(e,2),o=t[0],i=t[1];if("divider"!==zk.getNodeType(o))return n([o,i]);zk.isLastNode(r,o)&&jp.insertNodes(r,zk.genEmptyParagraph(),{at:[i[0]+1]})},r}},pK=$L.map;bL({target:"Array",proto:!0,forced:!VL("map")},{map:function(e){return pK(this,e,arguments.length>1?arguments[1]:void 0)}});var hK=fI([].join),vK=yI!=Object,gK=ez("join",",");bL({target:"Array",proto:!0,forced:vK||!gK},{join:function(e){return hK(wI(this),void 0===e?",":e)}});var yK=function(){function e(){this.title=Sj("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=zk.getSelectedNodeByType(e,"code");if(null==t)return null;var n=zk.getParentNode(e,t);return null==n||"pre"!==zk.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=zk.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=zk.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=Zd.string(t);jp.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));jp.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Gd.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=zM(i),u=a.next();!u.done;u=a.next()){var s=$M(u.value,1)[0];s&&o.push(Zd.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}jp.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};jp.insertNodes(e,l,{mode:"highest"})},e}(),mK={key:"codeBlock",factory:function(){return new yK}};bL({target:"String",proto:!0,forced:qM("anchor")},{anchor:function(e){return GM(this,"a","name",e)}}),PR("match",(function(e,t,n){return[function(t){var n=bI(this),r=null==t?void 0:zI(t,e);return r?tI(r,t,n):new RegExp(t)[e](KL(n))},function(e){var r=gN(this),o=KL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return qR(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=qR(r,o));){var c=KL(u[0]);s[l]=c,""===c&&(r.lastIndex=RR(o,ZN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var bK={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Xh(e);return 0===(t=t.filter((function(e){return"code"===zk.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===zk.getNodeType(e)}))}}},wK={menus:[mK],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=zk.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Zd.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=$M(e,2),r=t[0],i=t[1],a=zk.getNodeType(r);return"code"===a&&i.length<=1&&jp.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(zk.isLastNode(o,r)&&jp.insertNodes(o,zk.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==zk.getNodeType(r.children[0])&&(jp.unwrapNodes(o),jp.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=zk.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Gd.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return Rg("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return Rg("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Xh(e);if("code"!==TM(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Xh(e)[0].textContent||""}]}}},bK]},EK=function(){function e(){this.title=Sj("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}(),xK={menus:[{key:"fullScreen",factory:function(){return new EK}}]},CK=function(){function e(){this.title=Sj("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||!!lp.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];jp.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Gd.start(e,r))}},e}(),DK=[Iz,P$,qq,Jq,oK,aK,FH,dK,qH,eH,wK,WH,x$,VM,IH,lK,xK,{menus:[{key:"enter",factory:function(){return new CK}}]}];Dj("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Dj("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var SK="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function AK(e){var t={exports:{}};return e(t,t.exports),t.exports}var OK,kK,BK=function(e){return e&&e.Math==Math&&e},_K=BK("object"==typeof globalThis&&globalThis)||BK("object"==typeof window&&window)||BK("object"==typeof self&&self)||BK("object"==typeof SK&&SK)||function(){return this}()||Function("return this")(),FK=Function.prototype,TK=FK.bind,PK=FK.call,jK=TK&&TK.bind(PK),IK=TK?function(e){return e&&jK(PK,e)}:function(e){return e&&function(){return PK.apply(e,arguments)}},NK=function(e){try{return!!e()}catch(t){return!0}},LK=IK({}.toString),RK=IK("".slice),MK=function(e){return RK(LK(e),8,-1)},zK=_K.Object,$K=IK("".split),HK=NK((function(){return!zK("z").propertyIsEnumerable(0)}))?function(e){return"String"==MK(e)?$K(e,""):zK(e)}:zK,VK=_K.TypeError,UK=function(e){if(null==e)throw VK("Can't call method on "+e);return e},WK=function(e){return HK(UK(e))},GK=Object.defineProperty,qK=function(e,t){try{GK(_K,e,{value:t,configurable:!0,writable:!0})}catch(Oj){_K[e]=t}return t},KK=_K["__core-js_shared__"]||qK("__core-js_shared__",{}),XK=AK((function(e){(e.exports=function(e,t){return KK[e]||(KK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),YK=_K.Object,ZK=function(e){return YK(UK(e))},JK=IK({}.hasOwnProperty),QK=Object.hasOwn||function(e,t){return JK(ZK(e),t)},eX=0,tX=Math.random(),nX=IK(1..toString),rX=function(e){return"Symbol("+(void 0===e?"":e)+")_"+nX(++eX+tX,36)},oX=function(e){return"function"==typeof e},iX=function(e){return oX(e)?e:void 0},aX=function(e,t){return arguments.length<2?iX(_K[e]):_K[e]&&_K[e][t]},uX=aX("navigator","userAgent")||"",sX=_K.process,lX=_K.Deno,cX=sX&&sX.versions||lX&&lX.version,fX=cX&&cX.v8;fX&&(kK=(OK=fX.split("."))[0]>0&&OK[0]<4?1:+(OK[0]+OK[1])),!kK&&uX&&(!(OK=uX.match(/Edge\/(\d+)/))||OK[1]>=74)&&(OK=uX.match(/Chrome\/(\d+)/))&&(kK=+OK[1]);var dX,pX=kK,hX=!!Object.getOwnPropertySymbols&&!NK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pX&&pX<41})),vX=hX&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gX=XK("wks"),yX=_K.Symbol,mX=yX&&yX.for,bX=vX?yX:yX&&yX.withoutSetter||rX,wX=function(e){if(!QK(gX,e)||!hX&&"string"!=typeof gX[e]){var t="Symbol."+e;hX&&QK(yX,e)?gX[e]=yX[e]:gX[e]=vX&&mX?mX(t):bX(t)}return gX[e]},EX=function(e){return"object"==typeof e?null!==e:oX(e)},xX=_K.String,CX=_K.TypeError,DX=function(e){if(EX(e))return e;throw CX(xX(e)+" is not an object")},SX=!NK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),AX=_K.document,OX=EX(AX)&&EX(AX.createElement),kX=function(e){return OX?AX.createElement(e):{}},BX=!SX&&!NK((function(){return 7!=Object.defineProperty(kX("div"),"a",{get:function(){return 7}}).a})),_X=Function.prototype.call,FX=_X.bind?_X.bind(_X):function(){return _X.apply(_X,arguments)},TX=IK({}.isPrototypeOf),PX=_K.Object,jX=vX?function(e){return"symbol"==typeof e}:function(e){var t=aX("Symbol");return oX(t)&&TX(t.prototype,PX(e))},IX=_K.String,NX=function(e){try{return IX(e)}catch(t){return"Object"}},LX=_K.TypeError,RX=function(e){if(oX(e))return e;throw LX(NX(e)+" is not a function")},MX=function(e,t){var n=e[t];return null==n?void 0:RX(n)},zX=_K.TypeError,$X=_K.TypeError,HX=wX("toPrimitive"),VX=function(e){var t=function(e,t){if(!EX(e)||jX(e))return e;var n,r=MX(e,HX);if(r){if(n=FX(r,e,"string"),!EX(n)||jX(n))return n;throw $X("Can't convert object to primitive value")}return function(e,t){var n,r;if(oX(n=e.toString)&&!EX(r=FX(n,e)))return r;if(oX(n=e.valueOf)&&!EX(r=FX(n,e)))return r;throw zX("Can't convert object to primitive value")}(e)}(e);return jX(t)?t:t+""},UX=_K.TypeError,WX=Object.defineProperty,GX={f:SX?WX:function(e,t,n){if(DX(e),t=VX(t),DX(n),BX)try{return WX(e,t,n)}catch(r){}if("get"in n||"set"in n)throw UX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qX=Math.ceil,KX=Math.floor,XX=function(e){var t=+e;return t!=t||0===t?0:(t>0?KX:qX)(t)},YX=Math.max,ZX=Math.min,JX=function(e,t){var n=XX(e);return n<0?YX(n+t,0):ZX(n,t)},QX=Math.min,eY=function(e){return e>0?QX(XX(e),9007199254740991):0},tY=function(e){return eY(e.length)},nY=function(e){return function(t,n,r){var o,i=WK(t),a=tY(i),u=JX(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},rY={includes:nY(!0),indexOf:nY(!1)},oY={},iY=rY.indexOf,aY=IK([].push),uY=function(e,t){var n,r=WK(e),o=0,i=[];for(n in r)!QK(oY,n)&&QK(r,n)&&aY(i,n);for(;t.length>o;)QK(r,n=t[o++])&&(~iY(i,n)||aY(i,n));return i},sY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lY=Object.keys||function(e){return uY(e,sY)},cY=SX?Object.defineProperties:function(e,t){DX(e);for(var n,r=WK(t),o=lY(t),i=o.length,a=0;i>a;)GX.f(e,n=o[a++],r[n]);return e},fY=aX("document","documentElement"),dY=XK("keys"),pY=function(e){return dY[e]||(dY[e]=rX(e))},hY=pY("IE_PROTO"),vY=function(){},gY=function(e){return"<script>"+e+"<\/script>"},yY=function(e){e.write(gY("")),e.close();var t=e.parentWindow.Object;return e=null,t},mY=function(){try{dX=new ActiveXObject("htmlfile")}catch(r){}var e,t;mY="undefined"!=typeof document?document.domain&&dX?yY(dX):((t=kX("iframe")).style.display="none",fY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(gY("document.F=Object")),e.close(),e.F):yY(dX);for(var n=sY.length;n--;)delete mY.prototype[sY[n]];return mY()};oY[hY]=!0;var bY=Object.create||function(e,t){var n;return null!==e?(vY.prototype=DX(e),n=new vY,vY.prototype=null,n[hY]=e):n=mY(),void 0===t?n:cY(n,t)},wY=wX("unscopables"),EY=Array.prototype;null==EY[wY]&&GX.f(EY,wY,{configurable:!0,value:bY(null)});var xY=function(e){EY[wY][e]=!0},CY={},DY=IK(Function.toString);oX(KK.inspectSource)||(KK.inspectSource=function(e){return DY(e)});var SY,AY,OY,kY=KK.inspectSource,BY=_K.WeakMap,_Y=oX(BY)&&/native code/.test(kY(BY)),FY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},TY=SX?function(e,t,n){return GX.f(e,t,FY(1,n))}:function(e,t,n){return e[t]=n,e},PY=_K.TypeError,jY=_K.WeakMap;if(_Y||KK.state){var IY=KK.state||(KK.state=new jY),NY=IK(IY.get),LY=IK(IY.has),RY=IK(IY.set);SY=function(e,t){if(LY(IY,e))throw new PY("Object already initialized");return t.facade=e,RY(IY,e,t),t},AY=function(e){return NY(IY,e)||{}},OY=function(e){return LY(IY,e)}}else{var MY=pY("state");oY[MY]=!0,SY=function(e,t){if(QK(e,MY))throw new PY("Object already initialized");return t.facade=e,TY(e,MY,t),t},AY=function(e){return QK(e,MY)?e[MY]:{}},OY=function(e){return QK(e,MY)}}var zY,$Y,HY,VY={set:SY,get:AY,has:OY,enforce:function(e){return OY(e)?AY(e):SY(e,{})},getterFor:function(e){return function(t){var n;if(!EX(t)||(n=AY(t)).type!==e)throw PY("Incompatible receiver, "+e+" required");return n}}},UY={}.propertyIsEnumerable,WY=Object.getOwnPropertyDescriptor,GY={f:WY&&!UY.call({1:2},1)?function(e){var t=WY(this,e);return!!t&&t.enumerable}:UY},qY=Object.getOwnPropertyDescriptor,KY={f:SX?qY:function(e,t){if(e=WK(e),t=VX(t),BX)try{return qY(e,t)}catch(n){}if(QK(e,t))return FY(!FX(GY.f,e,t),e[t])}},XY=Function.prototype,YY=SX&&Object.getOwnPropertyDescriptor,ZY=QK(XY,"name"),JY={PROPER:ZY&&"something"===function(){}.name,CONFIGURABLE:ZY&&(!SX||SX&&YY(XY,"name").configurable)},QY=AK((function(e){var t=JY.CONFIGURABLE,n=VY.get,r=VY.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;oX(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!QK(i,"name")||t&&i.name!==f)&&TY(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==_K?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:TY(e,n,i)):l?e[n]=i:qK(n,i)})(Function.prototype,"toString",(function(){return oX(this)&&n(this).source||kY(this)}))})),eZ=sY.concat("length","prototype"),tZ={f:Object.getOwnPropertyNames||function(e){return uY(e,eZ)}},nZ={f:Object.getOwnPropertySymbols},rZ=IK([].concat),oZ=aX("Reflect","ownKeys")||function(e){var t=tZ.f(DX(e)),n=nZ.f;return n?rZ(t,n(e)):t},iZ=function(e,t){for(var n=oZ(t),r=GX.f,o=KY.f,i=0;i<n.length;i++){var a=n[i];QK(e,a)||r(e,a,o(t,a))}},aZ=/#|\.prototype\./,uZ=function(e,t){var n=lZ[sZ(e)];return n==fZ||n!=cZ&&(oX(t)?NK(t):!!t)},sZ=uZ.normalize=function(e){return String(e).replace(aZ,".").toLowerCase()},lZ=uZ.data={},cZ=uZ.NATIVE="N",fZ=uZ.POLYFILL="P",dZ=uZ,pZ=KY.f,hZ=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?_K:l?_K[u]||qK(u,{}):(_K[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=pZ(n,r))&&a.value:n[r],!dZ(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;iZ(i,o)}(e.sham||o&&o.sham)&&TY(i,"sham",!0),QY(n,r,i,e)}},vZ=!NK((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),gZ=pY("IE_PROTO"),yZ=_K.Object,mZ=yZ.prototype,bZ=vZ?yZ.getPrototypeOf:function(e){var t=ZK(e);if(QK(t,gZ))return t[gZ];var n=t.constructor;return oX(n)&&t instanceof n?n.prototype:t instanceof yZ?mZ:null},wZ=wX("iterator"),EZ=!1;[].keys&&("next"in(HY=[].keys())?($Y=bZ(bZ(HY)))!==Object.prototype&&(zY=$Y):EZ=!0);var xZ=null==zY||NK((function(){var e={};return zY[wZ].call(e)!==e}));xZ&&(zY={}),oX(zY[wZ])||QY(zY,wZ,(function(){return this}));var CZ={IteratorPrototype:zY,BUGGY_SAFARI_ITERATORS:EZ},DZ=GX.f,SZ=wX("toStringTag"),AZ=function(e,t,n){e&&!QK(e=n?e:e.prototype,SZ)&&DZ(e,SZ,{configurable:!0,value:t})},OZ=CZ.IteratorPrototype,kZ=function(){return this},BZ=_K.String,_Z=_K.TypeError,FZ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=IK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return DX(n),function(e){if("object"==typeof e||oX(e))return e;throw _Z("Can't set "+BZ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),TZ=JY.PROPER,PZ=JY.CONFIGURABLE,jZ=CZ.IteratorPrototype,IZ=CZ.BUGGY_SAFARI_ITERATORS,NZ=wX("iterator"),LZ=function(){return this},RZ=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=bY(OZ,{next:FY(1,s)}),AZ(u,l,!1),CY[l]=kZ;var c,f,d=function(e){if(e===o&&y)return y;if(!IZ&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,v=e.prototype,g=v[NZ]||v["@@iterator"]||o&&v[o],y=!IZ&&g||d(o),m="Array"==t&&v.entries||g;return m&&(c=bZ(m.call(new e)))!==Object.prototype&&c.next&&(bZ(c)!==jZ&&(FZ?FZ(c,jZ):oX(c[NZ])||QY(c,NZ,LZ)),AZ(c,p,!0)),TZ&&"values"==o&&g&&"values"!==g.name&&(PZ?TY(v,"name","values"):(h=!0,y=function(){return FX(g,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||hZ({target:t,proto:!0,forced:IZ||h},f)),v[NZ]!==y&&QY(v,NZ,y,{name:o}),CY[t]=y,f},MZ=VY.set,zZ=VY.getterFor("Array Iterator"),$Z=RZ(Array,"Array",(function(e,t){MZ(this,{type:"Array Iterator",target:WK(e),index:0,kind:t})}),(function(){var e=zZ(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");CY.Arguments=CY.Array,xY("keys"),xY("values"),xY("entries");var HZ={};HZ[wX("toStringTag")]="z";var VZ="[object z]"===String(HZ),UZ=wX("toStringTag"),WZ=_K.Object,GZ="Arguments"==MK(function(){return arguments}()),qZ=VZ?MK: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(n){}}(t=WZ(e),UZ))?n:GZ?MK(t):"Object"==(r=MK(t))&&oX(t.callee)?"Arguments":r},KZ=VZ?{}.toString:function(){return"[object "+qZ(this)+"]"};VZ||QY(Object.prototype,"toString",KZ,{unsafe:!0});var XZ=_K.String,YZ=function(e){if("Symbol"===qZ(e))throw TypeError("Cannot convert a Symbol value to a string");return XZ(e)},ZZ=IK("".charAt),JZ=IK("".charCodeAt),QZ=IK("".slice),eJ={charAt:function(e){return function(t,n){var r,o,i=YZ(UK(t)),a=XX(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=JZ(i,a))<55296||r>56319||a+1===u||(o=JZ(i,a+1))<56320||o>57343?e?ZZ(i,a):r:e?QZ(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},tJ=eJ.charAt,nJ=VY.set,rJ=VY.getterFor("String Iterator");RZ(String,"String",(function(e){nJ(this,{type:"String Iterator",string:YZ(e),index:0})}),(function(){var e,t=rJ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=tJ(n,r),t.index+=e.length,{value:e,done:!1})}));var oJ=function(e,t,n){for(var r in t)QY(e,r,t[r],n);return e},iJ=_K.Array,aJ=Math.max,uJ=tZ.f,sJ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lJ={f:function(e){return sJ&&"Window"==MK(e)?function(e){try{return uJ(e)}catch(t){return function(e,t,n){for(var r,o,i,a,u=tY(e),s=JX(void 0,u),l=JX(u,u),c=iJ(aJ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=VX(o))in r?GX.f(r,a,FY(0,i)):r[a]=i;return c.length=f,c}(sJ)}}(e):uJ(WK(e))}},cJ=NK((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),fJ=Object.isExtensible,dJ=NK((function(){fJ(1)}))||cJ?function(e){return!!EX(e)&&(!cJ||"ArrayBuffer"!=MK(e))&&(!fJ||fJ(e))}:fJ,pJ=!NK((function(){return Object.isExtensible(Object.preventExtensions({}))})),hJ=AK((function(e){var t=GX.f,n=!1,r=rX("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=tZ.f,t=IK([].splice),o={};o[r]=1,e(o).length&&(tZ.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},hZ({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:lJ.f}))},fastKey:function(e,t){if(!EX(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!QK(e,r)){if(!dJ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!QK(e,r)){if(!dJ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return pJ&&n&&dJ(e)&&!QK(e,r)&&i(e),e}};oY[r]=!0})),vJ=IK(IK.bind),gJ=function(e,t){return RX(e),void 0===t?e:vJ?vJ(e,t):function(){return e.apply(t,arguments)}},yJ=wX("iterator"),mJ=Array.prototype,bJ=wX("iterator"),wJ=function(e){if(null!=e)return MX(e,bJ)||MX(e,"@@iterator")||CY[qZ(e)]},EJ=_K.TypeError,xJ=function(e,t,n){var r,o;DX(e);try{if(!(r=MX(e,"return"))){if("throw"===t)throw n;return n}r=FX(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return DX(r),n},CJ=_K.TypeError,DJ=function(e,t){this.stopped=e,this.result=t},SJ=DJ.prototype,AJ=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),v=gJ(t,f),g=function(e){return r&&xJ(r,"normal",e),new DJ(!0,e)},y=function(e){return d?(DX(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=wJ(e)))throw CJ(NX(e)+" is not iterable");if(void 0!==(c=o)&&(CY.Array===c||mJ[yJ]===c)){for(i=0,a=tY(e);a>i;i++)if((u=y(e[i]))&&TX(SJ,u))return u;return new DJ(!1)}r=function(e,t){var n=arguments.length<2?wJ(e):t;if(RX(n))return DX(FX(n,e));throw EJ(NX(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=FX(s,r)).done;){try{u=y(l.value)}catch(m){xJ(r,"throw",m)}if("object"==typeof u&&u&&TX(SJ,u))return u}return new DJ(!1)},OJ=_K.TypeError,kJ=function(e,t){if(TX(t,e))return e;throw OJ("Incorrect invocation")},BJ=wX("iterator"),_J=!1;try{var FJ=0,TJ={next:function(){return{done:!!FJ++}},return:function(){_J=!0}};TJ[BJ]=function(){return this},Array.from(TJ,(function(){throw 2}))}catch(Dme){}var PJ=Array.isArray||function(e){return"Array"==MK(e)},jJ=function(){},IJ=[],NJ=aX("Reflect","construct"),LJ=/^\s*(?:class|function)\b/,RJ=IK(LJ.exec),MJ=!LJ.exec(jJ),zJ=function(e){if(!oX(e))return!1;try{return NJ(jJ,IJ,e),!0}catch(t){return!1}},$J=!NJ||NK((function(){var e;return zJ(zJ.call)||!zJ(Object)||!zJ((function(){e=!0}))||e}))?function(e){if(!oX(e))return!1;switch(qZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return MJ||!!RJ(LJ,kY(e))}:zJ,HJ=wX("species"),VJ=_K.Array,UJ=function(e,t){return new(PJ(n=e)&&(r=n.constructor,($J(r)&&(r===VJ||PJ(r.prototype))||EX(r)&&null===(r=r[HJ]))&&(r=void 0)),void 0===r?VJ:r)(0===t?0:t);var n,r},WJ=IK([].push),GJ=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=ZK(s),v=HK(h),g=gJ(l,c),y=tY(v),m=0,b=f||UJ,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:WJ(w,d)}else switch(e){case 4:return!1;case 7:WJ(w,d)}return i?-1:r||o?o:w}},qJ={filter:GJ(2),find:GJ(5),findIndex:GJ(6)},KJ=hJ.getWeakData,XJ=VY.set,YJ=VY.getterFor,ZJ=qJ.find,JJ=qJ.findIndex,QJ=IK([].splice),eQ=0,tQ=function(e){return e.frozen||(e.frozen=new nQ)},nQ=function(){this.entries=[]},rQ=function(e,t){return ZJ(e.entries,(function(e){return e[0]===t}))};nQ.prototype={get:function(e){var t=rQ(this,e);if(t)return t[1]},has:function(e){return!!rQ(this,e)},set:function(e,t){var n=rQ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=JJ(this.entries,(function(t){return t[0]===e}));return~t&&QJ(this.entries,t,1),!!~t}};var oQ,iQ={getConstructor:function(e,t,n,r){var o=e((function(e,o){kJ(e,i),XJ(e,{type:t,id:eQ++,frozen:void 0}),null!=o&&AJ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=YJ(t),u=function(e,t,n){var r=a(e),o=KJ(DX(t),!0);return!0===o?tQ(r).set(t,n):o[r.id]=n,e};return oJ(i,{delete:function(e){var t=a(this);if(!EX(e))return!1;var n=KJ(e);return!0===n?tQ(t).delete(e):n&&QK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!EX(e))return!1;var n=KJ(e);return!0===n?tQ(t).has(e):n&&QK(n,t.id)}}),oJ(i,n?{get:function(e){var t=a(this);if(EX(e)){var n=KJ(e);return!0===n?tQ(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}},aQ=VY.enforce,uQ=!_K.ActiveXObject&&"ActiveXObject"in _K,sQ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},lQ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=_K[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=IK(u[e]);QY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!EX(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!EX(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!EX(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(dZ(e,!oX(a)||!(o||u.forEach&&!NK((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),hJ.enable();else if(dZ(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=NK((function(){f.has(1)})),h=function(e,t){if(!_J)return!1;var n=!1;try{var r={};r[BJ]=function(){return{next:function(){return{done:n=!0}}}},new a(r)}catch(o){}return n}(),v=!o&&NK((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){kJ(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,FZ&&oX(c=o.constructor)&&c!==l&&EX(f=c.prototype)&&f!==l.prototype&&FZ(n,f),n);return null!=t&&AJ(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,hZ({global:!0,forced:s!=a},l),AZ(s,e),o||n.setStrong(s,e,r),s}("WeakMap",sQ,iQ);if(_Y&&uQ){oQ=iQ.getConstructor(sQ,"WeakMap",!0),hJ.enable();var cQ=lQ.prototype,fQ=IK(cQ.delete),dQ=IK(cQ.has),pQ=IK(cQ.get),hQ=IK(cQ.set);oJ(cQ,{delete:function(e){if(EX(e)&&!dJ(e)){var t=aQ(this);return t.frozen||(t.frozen=new oQ),fQ(this,e)||t.frozen.delete(e)}return fQ(this,e)},has:function(e){if(EX(e)&&!dJ(e)){var t=aQ(this);return t.frozen||(t.frozen=new oQ),dQ(this,e)||t.frozen.has(e)}return dQ(this,e)},get:function(e){if(EX(e)&&!dJ(e)){var t=aQ(this);return t.frozen||(t.frozen=new oQ),dQ(this,e)?pQ(this,e):t.frozen.get(e)}return pQ(this,e)},set:function(e,t){if(EX(e)&&!dJ(e)){var n=aQ(this);n.frozen||(n.frozen=new oQ),dQ(this,e)?hQ(this,e,t):n.frozen.set(e,t)}else hQ(this,e,t);return this}})}var vQ={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},gQ=kX("span").classList,yQ=gQ&&gQ.constructor&&gQ.constructor.prototype,mQ=yQ===Object.prototype?void 0:yQ,bQ=wX("iterator"),wQ=wX("toStringTag"),EQ=$Z.values,xQ=function(e,t){if(e){if(e[bQ]!==EQ)try{TY(e,bQ,EQ)}catch(r){e[bQ]=EQ}if(e[wQ]||TY(e,wQ,t),vQ[t])for(var n in $Z)if(e[n]!==$Z[n])try{TY(e,n,$Z[n])}catch(r){e[n]=$Z[n]}}};for(var CQ in vQ)xQ(_K[CQ]&&_K[CQ].prototype,CQ);xQ(mQ,"DOMTokenList");var DQ=new WeakMap,SQ={type:"list-item",renderElem:function(e,t,n){DQ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";void 0!==a&&a?s=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=zk.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=tp.previous(c),d=Gd.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e)+".":s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return Rg("div",{style:u},Rg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];gp.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),Rg("span",null,t))}},AQ=function(e,t){return AQ=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])},AQ(e,t);
54/*! *****************************************************************************
55  Copyright (c) Microsoft Corporation.
56  
57  Permission to use, copy, modify, and/or distribute this software for any
58  purpose with or without fee is hereby granted.
59  
60  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
61  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
62  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
63  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
64  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
65  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
66  PERFORMANCE OF THIS SOFTWARE.
67  ***************************************************************************** */};function OQ(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}AQ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function kQ(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 BQ(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(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _Q(e){return Gd.nodes(e,{at:e.selection||void 0,match:function(t){return 1===zk.findPath(e,t).length}})}var FQ=rY.includes;hZ({target:"Array",proto:!0},{includes:function(e){return FQ(this,e,arguments.length>1?arguments[1]:void 0)}}),xY("includes");var TQ,PQ,jQ=function(){var e=DX(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},IQ=_K.RegExp,NQ=NK((function(){var e=IQ("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));NQ||NK((function(){return!IQ("a","y").sticky}));var LQ={BROKEN_CARET:NQ||NK((function(){var e=IQ("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},RQ=_K.RegExp,MQ=NK((function(){var e=RQ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),zQ=_K.RegExp,$Q=NK((function(){var e=zQ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),HQ=VY.get,VQ=XK("native-string-replace",String.prototype.replace),UQ=RegExp.prototype.exec,WQ=UQ,GQ=IK("".charAt),qQ=IK("".indexOf),KQ=IK("".replace),XQ=IK("".slice),YQ=(PQ=/b*/g,FX(UQ,TQ=/a/,"a"),FX(UQ,PQ,"a"),0!==TQ.lastIndex||0!==PQ.lastIndex),ZQ=LQ.BROKEN_CARET,JQ=void 0!==/()??/.exec("")[1];(YQ||JQ||ZQ||MQ||$Q)&&(WQ=function(e){var t,n,r,o,i,a,u,s=this,l=HQ(s),c=YZ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=FX(WQ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ZQ&&s.sticky,h=FX(jQ,s),v=s.source,g=0,y=c;if(p&&(h=KQ(h,"y",""),-1===qQ(h,"g")&&(h+="g"),y=XQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==GQ(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),JQ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),YQ&&(r=s.lastIndex),o=FX(UQ,p?n:s,y),p?o?(o.input=XQ(o.input,g),o[0]=XQ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:YQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),JQ&&o&&o.length>1&&FX(VQ,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=bY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var QQ=WQ;hZ({target:"RegExp",proto:!0,forced:/./.exec!==QQ},{exec:QQ});var e0=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return zk.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!zk.getSelectedElems(e).some((function(t){if(Gd.isVoid(e,t)&&Gd.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?jp.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):jp.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),t0='<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>',n0='<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>',r0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Sj("listModule.unOrderedList"),t.iconSvg=t0,t}return OQ(t,e),t}(e0),o0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Sj("listModule.orderedList"),t.iconSvg=n0,t}return OQ(t,e),t}(e0),i0={key:"bulletedList",factory:function(){return new r0}},a0={key:"numberedList",factory:function(){return new o0}},u0=[],s0={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=DQ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=zk.findPath(t,e);if(0===s[0])return u+1;var l=tp.previous(s),c=Gd.node(t,l);if(!c)return 0;var f=BQ(c,1)[0];if(zk.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",u0.push(i);var s=function(e){var t=DQ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=zk.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=tp.next(s),c=Gd.node(t,l);if(!c)return 0;var f=BQ(c,1)[0];if(zk.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+u0.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},l0=wX("species"),c0=qJ.filter,f0=pX>=51||!NK((function(){var e=[];return(e.constructor={})[l0]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));hZ({target:"Array",proto:!0,forced:!f0},{filter:function(e){return c0(this,e,arguments.length>1?arguments[1]:void 0)}});var d0=Function.prototype,p0=d0.apply,h0=d0.bind,v0=d0.call,g0="object"==typeof Reflect&&Reflect.apply||(h0?v0.bind(p0):function(){return v0.apply(p0,arguments)}),y0=(wX("species"),RegExp.prototype),m0=eJ.charAt,b0=function(e,t,n){return t+(n?m0(e,t).length:1)},w0=Math.floor,E0=IK("".charAt),x0=IK("".replace),C0=IK("".slice),D0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,S0=/\$([$&'`]|\d{1,2})/g,A0=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=S0;return void 0!==o&&(o=ZK(o),s=D0),x0(i,s,(function(i,s){var l;switch(E0(s,0)){case"$":return"$";case"&":return e;case"`":return C0(t,0,n);case"'":return C0(t,a);case"<":l=o[C0(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=w0(c/10);return 0===f?i:f<=u?void 0===r[f-1]?E0(s,1):r[f-1]+E0(s,1):i}l=r[c-1]}return void 0===l?"":l}))},O0=_K.TypeError,k0=function(e,t){var n=e.exec;if(oX(n)){var r=FX(n,e,t);return null!==r&&DX(r),r}if("RegExp"===MK(e))return FX(QQ,e,t);throw O0("RegExp#exec called on incompatible receiver")},B0=wX("replace"),_0=Math.max,F0=Math.min,T0=IK([].concat),P0=IK([].push),j0=IK("".indexOf),I0=IK("".slice),N0="$0"==="a".replace(/./,"$0"),L0=!!/./[B0]&&""===/./[B0]("a","$0");!function(e,t,n,r){var o=wX(e),i=!NK((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!NK((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=IK(/./[o]),s=function(e,t,n){var r=L0?"$":"$0";return[function(e,n){var r=UK(this),o=null==e?void 0:MX(e,B0);return o?FX(o,e,r,n):FX(t,YZ(r),e,n)},function(e,n){var o=DX(this),a=YZ(e);if("string"==typeof n&&-1===j0(n,r)&&-1===j0(n,"$<")){var s=function(e,t,n,r,o){var a=IK(e),s=t.exec;return s===QQ||s===y0.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}(t,o,a,n);if(s.done)return s.value}var l=oX(n);l||(n=YZ(n));var c=o.global;if(c){var f=o.unicode;o.lastIndex=0}for(var d=[];;){var p=k0(o,a);if(null===p)break;if(P0(d,p),!c)break;""===YZ(p[0])&&(o.lastIndex=b0(a,eY(o.lastIndex),f))}for(var h,v="",g=0,y=0;y<d.length;y++){for(var m=YZ((p=d[y])[0]),b=_0(F0(XX(p.index),a.length),0),w=[],E=1;E<p.length;E++)P0(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(l){var C=T0([m],w,b,a);void 0!==x&&P0(C,x);var D=YZ(g0(n,void 0,C))}else D=A0(m,a,b,w,x,n);b>=g&&(v+=I0(a,g,b)+D,g=b+m.length)}return v+I0(a,g)}]}(0,""[e]);QY(String.prototype,e,s[0]),QY(y0,o,s[1])}}("replace",0,!!NK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!N0||L0);var R0=_K.TypeError,M0=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&gJ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&PJ(s))l=tY(s),c=M0(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw R0("Exceed the acceptable array length");e[c]=s}c++}f++}return c},z0=M0;function $0(e){return e.length?e[0].tagName.toLowerCase():""}hZ({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=ZK(this),n=tY(t),r=UJ(t,0);return r.length=z0(r,t,t,n,0,void 0===e?1:XX(e)),r}}),xY("flat"),hZ({global:!0},{globalThis:_K}),gv&&(Xh.fn.append=gv),Qh&&(Xh.fn.attr=Qh),mv&&(Xh.fn.parent=mv);var H0={renderElems:[SQ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(lp.isExpanded(n))t(e);else{var r=zk.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?jp.setNodes(o,{level:a-1}):jp.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(lp.isCollapsed(a)){var u=zk.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void jp.setNodes(o,{level:l+1})}}if(lp.isExpanded(a)){var c=0,f=!1;try{for(var d=kQ(_Q(o)),p=d.next();!p.done;p=d.next()){var h=BQ(p.value,1)[0];"list-item"===zk.getNodeType(h)?c++:f=!0}}catch(w){e={error:w}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var v=kQ(_Q(o)),g=v.next();!g.done;g=v.next()){var y=BQ(g.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,jp.setNodes(o,{level:l+1},{at:m})}}catch(E){r={error:E}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=BQ(e,2),n=t[0],i=t[1],a=zk.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||jp.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[i0,a0],elemsToHtml:[s0],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Xh(e);0===(t=t.filter((function(e){return!!gp.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===$0(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=$0(n);"ul"===r||"ol"===r;)r=$0(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},V0=_e((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[m]=x[a]=x[b]=x[u]=x[s]=x[l]=x[c]=x[f]=x[d]=x[h]=x[v]=x[g]=x[y]=!1;var C="object"==typeof Be&&Be&&Be.Object===Object&&Be,D="object"==typeof self&&self&&self.Object===Object&&self,S=C||D||Function("return this")(),A=t&&!t.nodeType&&t,O=A&&e&&!e.nodeType&&e,k=O&&O.exports===A,B=k&&C.process,_=function(){try{return B&&B.binding&&B.binding("util")}catch(Et){}}(),F=_&&_.isTypedArray;function T(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function P(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,N=Function.prototype,L=Object.prototype,R=S["__core-js_shared__"],M=N.toString,z=L.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=L.toString,V=RegExp("^"+M.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=k?S.Buffer:void 0,W=S.Symbol,G=S.Uint8Array,q=L.propertyIsEnumerable,K=I.splice,X=W?W.toStringTag:void 0,Y=Object.getOwnPropertySymbols,Z=U?U.isBuffer:void 0,J=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Q=De(S,"DataView"),ee=De(S,"Map"),te=De(S,"Promise"),ne=De(S,"Set"),re=De(S,"WeakMap"),oe=De(Object,"create"),ie=ke(Q),ae=ke(ee),ue=ke(te),se=ke(ne),le=ke(re),ce=W?W.prototype:void 0,fe=ce?ce.valueOf:void 0;function de(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}function ge(e){var t=this.__data__=new pe(e);this.size=t.size}function ye(e,t){for(var n=e.length;n--;)if(_e(e[n][0],t))return n;return-1}
vendor: 1,210 bytes, line 67
67function me(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(i){}var o=H.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):(t=e,H.call(t));var t}function be(e){return Le(e)&&me(e)==o}function we(e,t,n,r,l){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var y=Te(e),w=Te(t),E=y?i:Ae(e),x=w?i:Ae(t),C=(E=E==o?d:E)==d,D=(x=x==o?d:x)==d,S=E==x;if(S&&Pe(e)){if(!Pe(t))return!1;y=!0,C=!1}if(S&&!C)return p||(p=new ge),y||Re(e)?Ee(e,t,n,r,l,p):function(e,t,n,r,o,i,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new G(e),new G(t)));case a:case u:case f:return _e(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case g:return e==t+"";case c:var d=P;case v:var p=1&r;if(d||(d=j),e.size!=t.size&&!p)return!1;var y=l.get(e);if(y)return y==t;r|=2,l.set(e,t);var w=Ee(d(e),d(t),r,o,i,l);return l.delete(e),w;case"[object Symbol]":if(fe)return fe.call(e)==fe.call(t)}return!1}(e,t,E,n,r,l,p);if(!(1&n)){var A=C&&z.call(e,"__wrapped__"),O=D&&z.call(t,"__wrapped__");
vendor: 6,683 bytes, line 67
67if(A||O){var k=A?e.value():e,B=O?t.value():t;return p||(p=new ge),l(k,B,n,r,p)}}return!!S&&(p||(p=new ge),function(e,t,n,r,o,i){var a=1&n,u=xe(e),s=u.length;if(s!=xe(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:z.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],v=t[c];if(r)var g=a?r(v,h,c,t,e,i):r(h,v,c,e,t,i);if(!(void 0===g?h===v||o(h,v,n,r,i):g)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,l,p))}(e,t,n,r,we,l))}function Ee(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var v=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!T(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function xe(e){return n=Se,r=Me(t=e),Te(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r}function Ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function De(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ne(e)||(t=e,$&&$ in t))&&(je(e)?V:w).test(ke(e));var t}(o)?o:void 0}de.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},de.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de.prototype.get=function(e){var t=this.__data__;if(oe){var r=t[e];return r===n?void 0:r}return z.call(t,e)?t[e]:void 0},de.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:z.call(t,e)},de.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oe&&void 0===t?n:t,this},pe.prototype.clear=function(){this.__data__=[],this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=ye(t,e);return!(n<0||(n==t.length-1?t.pop():K.call(t,n,1),--this.size,0))},pe.prototype.get=function(e){var t=this.__data__,n=ye(t,e);return n<0?void 0:t[n][1]},pe.prototype.has=function(e){return ye(this.__data__,e)>-1},pe.prototype.set=function(e,t){var n=this.__data__,r=ye(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},he.prototype.clear=function(){this.size=0,this.__data__={hash:new de,map:new(ee||pe),string:new de}},he.prototype.delete=function(e){var t=Ce(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return Ce(this,e).get(e)},he.prototype.has=function(e){return Ce(this,e).has(e)},he.prototype.set=function(e,t){var n=Ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.clear=function(){this.__data__=new pe,this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ge.prototype.get=function(e){return this.__data__.get(e)},ge.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.set=function(e,t){var n=this.__data__;if(n instanceof pe){var r=n.__data__;if(!ee||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(e,t),this.size=n.size,this};var Se=Y?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Y(e),(function(t){return q.call(e,t)})))}:function(){return[]},Ae=me;function Oe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function ke(e){if(null!=e){try{return M.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function _e(e,t){return e===t||e!=e&&t!=t}(Q&&Ae(new Q(new ArrayBuffer(1)))!=b||ee&&Ae(new ee)!=c||te&&Ae(te.resolve())!=p||ne&&Ae(new ne)!=v||re&&Ae(new re)!=y)&&(Ae=function(e){var t=me(e),n=t==d?e.constructor:void 0,r=n?ke(n):"";if(r)switch(r){case ie:return b;case ae:return c;case ue:return p;case se:return v;case le:return y}return t});var Fe=be(function(){return arguments}())?be:function(e){return Le(e)&&z.call(e,"callee")&&!q.call(e,"callee")},Te=Array.isArray,Pe=Z||function(){return!1};function je(e){if(!Ne(e))return!1;var t=me(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var Re=F?function(e){return function(t){return e(t)}}(F):function(e){return Le(e)&&Ie(e.length)&&!!x[me(e)]};function Me(e){return null!=(t=e)&&Ie(t.length)&&!je(t)?function(e,t){var n=Te(e),r=!n&&Fe(e),o=!n&&!r&&Pe(e),i=!n&&!r&&!o&&Re(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!z.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Oe(l,s))||u.push(l);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||L))return J(e);var t,n,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return we(e,t)}}));Dj("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"}}),Dj("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var U0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function W0(e){var t={exports:{}};return e(t,t.exports),t.exports}var G0,q0,K0=function(e){return e&&e.Math==Math&&e},X0=K0("object"==typeof globalThis&&globalThis)||K0("object"==typeof window&&window)||K0("object"==typeof self&&self)||K0("object"==typeof U0&&U0)||function(){return this}()||Function("return this")(),Y0=function(e){try{return!!e()}catch(t){return!0}},Z0=!Y0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}}
vendor: 19,447 bytes, lines 67-81
67)[1]})),J0=Function.prototype.call,Q0=J0.bind?J0.bind(J0):function(){return J0.apply(J0,arguments)},e1={}.propertyIsEnumerable,t1=Object.getOwnPropertyDescriptor,n1={f:t1&&!e1.call({1:2},1)?function(e){var t=t1(this,e);return!!t&&t.enumerable}:e1},r1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},o1=Function.prototype,i1=o1.bind,a1=o1.call,u1=i1&&i1.bind(a1),s1=i1?function(e){return e&&u1(a1,e)}:function(e){return e&&function(){return a1.apply(e,arguments)}},l1=s1({}.toString),c1=s1("".slice),f1=function(e){return c1(l1(e),8,-1)},d1=X0.Object,p1=s1("".split),h1=Y0((function(){return!d1("z").propertyIsEnumerable(0)}))?function(e){return"String"==f1(e)?p1(e,""):d1(e)}:d1,v1=X0.TypeError,g1=function(e){if(null==e)throw v1("Can't call method on "+e);return e},y1=function(e){return h1(g1(e))},m1=function(e){return"function"==typeof e},b1=function(e){return"object"==typeof e?null!==e:m1(e)},w1=function(e){return m1(e)?e:void 0},E1=function(e,t){return arguments.length<2?w1(X0[e]):X0[e]&&X0[e][t]},x1=s1({}.isPrototypeOf),C1=E1("navigator","userAgent")||"",D1=X0.process,S1=X0.Deno,A1=D1&&D1.versions||S1&&S1.version,O1=A1&&A1.v8;O1&&(q0=(G0=O1.split("."))[0]>0&&G0[0]<4?1:+(G0[0]+G0[1])),!q0&&C1&&(!(G0=C1.match(/Edge\/(\d+)/))||G0[1]>=74)&&(G0=C1.match(/Chrome\/(\d+)/))&&(q0=+G0[1]);var k1=q0,B1=!!Object.getOwnPropertySymbols&&!Y0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&k1&&k1<41})),_1=B1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,F1=X0.Object,T1=_1?function(e){return"symbol"==typeof e}:function(e){var t=E1("Symbol");return m1(t)&&x1(t.prototype,F1(e))},P1=X0.String,j1=function(e){try{return P1(e)}catch(t){return"Object"}},I1=X0.TypeError,N1=function(e){if(m1(e))return e;throw I1(j1(e)+" is not a function")},L1=function(e,t){var n=e[t];return null==n?void 0:N1(n)},R1=X0.TypeError,M1=Object.defineProperty,z1=function(e,t){try{M1(X0,e,{value:t,configurable:!0,writable:!0})}catch(Oj){X0[e]=t}return t},$1=X0["__core-js_shared__"]||z1("__core-js_shared__",{}),H1=W0((function(e){(e.exports=function(e,t){return $1[e]||($1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),V1=X0.Object,U1=function(e){return V1(g1(e))},W1=s1({}.hasOwnProperty),G1=Object.hasOwn||function(e,t){return W1(U1(e),t)},q1=0,K1=Math.random(),X1=s1(1..toString),Y1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+X1(++q1+K1,36)},Z1=H1("wks"),J1=X0.Symbol,Q1=J1&&J1.for,e2=_1?J1:J1&&J1.withoutSetter||Y1,t2=function(e){if(!G1(Z1,e)||!B1&&"string"!=typeof Z1[e]){var t="Symbol."+e;B1&&G1(J1,e)?Z1[e]=J1[e]:Z1[e]=_1&&Q1?Q1(t):e2(t)}return Z1[e]},n2=X0.TypeError,r2=t2("toPrimitive"),o2=function(e){var t=function(e,t){if(!b1(e)||T1(e))return e;var n,r=L1(e,r2);if(r){if(n=Q0(r,e,"string"),!b1(n)||T1(n))return n;throw n2("Can't convert object to primitive value")}return function(e,t){var n,r;if(m1(n=e.toString)&&!b1(r=Q0(n,e)))return r;if(m1(n=e.valueOf)&&!b1(r=Q0(n,e)))return r;throw R1("Can't convert object to primitive value")}(e)}(e);return T1(t)?t:t+""},i2=X0.document,a2=b1(i2)&&b1(i2.createElement),u2=function(e){return a2?i2.createElement(e):{}},s2=!Z0&&!Y0((function(){return 7!=Object.defineProperty(u2("div"),"a",{get:function(){return 7}}).a})),l2=Object.getOwnPropertyDescriptor,c2={f:Z0?l2:function(e,t){if(e=y1(e),t=o2(t),s2)try{return l2(e,t)}catch(n){}if(G1(e,t))return r1(!Q0(n1.f,e,t),e[t])}},f2=X0.String,d2=X0.TypeError,p2=function(e){if(b1(e))return e;throw d2(f2(e)+" is not an object")},h2=X0.TypeError,v2=Object.defineProperty,g2={f:Z0?v2:function(e,t,n){if(p2(e),t=o2(t),p2(n),s2)try{return v2(e,t,n)}catch(r){}if("get"in n||"set"in n)throw h2("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},y2=Z0?function(e,t,n){return g2.f(e,t,r1(1,n))}:function(e,t,n){return e[t]=n,e},m2=s1(Function.toString);m1($1.inspectSource)||($1.inspectSource=function(e){return m2(e)});var b2,w2,E2,x2=$1.inspectSource,C2=X0.WeakMap,D2=m1(C2)&&/native code/.test(x2(C2)),S2=H1("keys"),A2=function(e){return S2[e]||(S2[e]=Y1(e))},O2={},k2=X0.TypeError,B2=X0.WeakMap;if(D2||$1.state){var _2=$1.state||($1.state=new B2),F2=s1(_2.get),T2=s1(_2.has),P2=s1(_2.set);b2=function(e,t){if(T2(_2,e))throw new k2("Object already initialized");return t.facade=e,P2(_2,e,t),t},w2=function(e){return F2(_2,e)||{}},E2=function(e){return T2(_2,e)}}else{var j2=A2("state");O2[j2]=!0,b2=function(e,t){if(G1(e,j2))throw new k2("Object already initialized");return t.facade=e,y2(e,j2,t),t},w2=function(e){return G1(e,j2)?e[j2]:{}},E2=function(e){return G1(e,j2)}}var I2={get:w2,enforce:function(e){return E2(e)?w2(e):b2(e,{})}},N2=Function.prototype,L2=Z0&&Object.getOwnPropertyDescriptor,R2=G1(N2,"name"),M2={PROPER:R2&&"something"===function(){}.name,CONFIGURABLE:R2&&(!Z0||Z0&&L2(N2,"name").configurable)},z2=W0((function(e){var t=M2.CONFIGURABLE,n=I2.get,r=I2.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;m1(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!G1(i,"name")||t&&i.name!==f)&&y2(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==X0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:y2(e,n,i)):l?e[n]=i:z1(n,i)})(Function.prototype,"toString",(function(){return m1(this)&&n(this).source||x2(this)}))})),$2=Math.ceil,H2=Math.floor,V2=function(e){var t=+e;return t!=t||0===t?0:(t>0?H2:$2)(t)},U2=Math.max,W2=Math.min,G2=function(e,t){var n=V2(e);return n<0?U2(n+t,0):W2(n,t)},q2=Math.min,K2=function(e){return e>0?q2(V2(e),9007199254740991):0},X2=function(e){return K2(e.length)},Y2=function(e){return function(t,n,r){var o,i=y1(t),a=X2(i),u=G2(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}}(!1),Z2=s1([].push),J2=function(e,t){var n,r=y1(e),o=0,i=[];for(n in r)!G1(O2,n)&&G1(r,n)&&Z2(i,n);for(;t.length>o;)G1(r,n=t[o++])&&(~Y2(i,n)||Z2(i,n));return i},Q2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],e4=Q2.concat("length","prototype"),t4={f:Object.getOwnPropertyNames||function(e){return J2(e,e4)}},n4={f:Object.getOwnPropertySymbols},r4=s1([].concat),o4=E1("Reflect","ownKeys")||function(e){var t=t4.f(p2(e)),n=n4.f;return n?r4(t,n(e)):t},i4=function(e,t){for(var n=o4(t),r=g2.f,o=c2.f,i=0;i<n.length;i++){var a=n[i];G1(e,a)||r(e,a,o(t,a))}},a4=/#|\.prototype\./,u4=function(e,t){var n=l4[s4(e)];return n==f4||n!=c4&&(m1(t)?Y0(t):!!t)},s4=u4.normalize=function(e){return String(e).replace(a4,".").toLowerCase()},l4=u4.data={},c4=u4.NATIVE="N",f4=u4.POLYFILL="P",d4=u4,p4=c2.f,h4=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?X0:l?X0[u]||z1(u,{}):(X0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=p4(n,r))&&a.value:n[r],!d4(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;i4(i,o)}(e.sham||o&&o.sham)&&y2(i,"sham",!0),z2(n,r,i,e)}},v4={};v4[t2("toStringTag")]="z";var g4="[object z]"===String(v4),y4=t2("toStringTag"),m4=X0.Object,b4="Arguments"==f1(function(){return arguments}()),w4=g4?f1: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(n){}}(t=m4(e),y4))?n:b4?f1(t):"Object"==(r=f1(t))&&m1(t.callee)?"Arguments":r},E4=X0.String,x4=function(e){if("Symbol"===w4(e))throw TypeError("Cannot convert a Symbol value to a string");return E4(e)},C4=/"/g,D4=s1("".replace);h4({target:"String",proto:!0,forced:Y0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=x4(g1(this)),r="<a",(r+=' name="'+D4(x4(t),C4,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var S4,A4=function(){var e=p2(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},O4=X0.RegExp,k4=Y0((function(){var e=O4("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));k4||Y0((function(){return!O4("a","y").sticky}));var B4={BROKEN_CARET:k4||Y0((function(){var e=O4("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:k4},_4=Object.keys||function(e){return J2(e,Q2)},F4=Z0?Object.defineProperties:function(e,t){p2(e);for(var n,r=y1(t),o=_4(t),i=o.length,a=0;i>a;)g2.f(e,n=o[a++],r[n]);return e},T4=E1("document","documentElement"),P4=A2("IE_PROTO"),j4=function(){},I4=function(e){return"<script>"+e+"<\/script>"},N4=function(e){e.write(I4("")),e.close();var t=e.parentWindow.Object;return e=null,t},L4=function(){try{S4=new ActiveXObject("htmlfile")}catch(r){}var e,t;L4="undefined"!=typeof document?document.domain&&S4?N4(S4):((t=u2("iframe")).style.display="none",T4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(I4("document.F=Object")),e.close(),e.F):N4(S4);for(var n=Q2.length;n--;)delete L4.prototype[Q2[n]];return L4()};O2[P4]=!0;var R4,M4,z4=Object.create||function(e,t){var n;return null!==e?(j4.prototype=p2(e),n=new j4,j4.prototype=null,n[P4]=e):n=L4(),void 0===t?n:F4(n,t)},$4=X0.RegExp,H4=Y0((function(){var e=$4(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),V4=X0.RegExp,U4=Y0((function(){var e=V4("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),W4=I2.get,G4=H1("native-string-replace",String.prototype.replace),q4=RegExp.prototype.exec,K4=q4,X4=s1("".charAt),Y4=s1("".indexOf),Z4=s1("".replace),J4=s1("".slice),Q4=(M4=/b*/g,Q0(q4,R4=/a/,"a"),Q0(q4,M4,"a"),0!==R4.lastIndex||0!==M4.lastIndex),e3=B4.BROKEN_CARET,t3=void 0!==/()??/.exec("")[1];(Q4||t3||e3||H4||U4)&&(K4=function(e){var t,n,r,o,i,a,u,s=this,l=W4(s),c=x4(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Q0(K4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=e3&&s.sticky,h=Q0(A4,s),v=s.source,g=0,y=c;if(p&&(h=Z4(h,"y",""),-1===Y4(h,"g")&&(h+="g"),y=J4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==X4(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),t3&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Q4&&(r=s.lastIndex),o=Q0(q4,p?n:s,y),p?o?(o.input=J4(o.input,g),o[0]=J4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Q4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),t3&&o&&o.length>1&&Q0(G4,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=z4(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var n3=K4;h4({target:"RegExp",proto:!0,forced:/./.exec!==n3},{exec:n3});var r3=Array.isArray||function(e){return"Array"==f1(e)},o3=function(){},i3=[],a3=E1("Reflect","construct"),u3=/^\s*(?:class|function)\b/,s3=s1(u3.exec),l3=!u3.exec(o3),c3=function(e){if(!m1(e))return!1;try{return a3(o3,i3,e),!0}catch(t){return!1}},f3=!a3||Y0((function(){var e;return c3(c3.call)||!c3(Object)||!c3((function(){e=!0}))||e}))?function(e){if(!m1(e))return!1;switch(w4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return l3||!!s3(u3,x2(e))}:c3,d3=function(e,t,n){var r=o2(t);r in e?g2.f(e,r,r1(0,n)):e[r]=n},p3=t2("species"),h3=function(e){return k1>=51||!Y0((function(){var t=[];return(t.constructor={})[p3]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},v3=s1([].slice),g3=h3("slice"),y3=t2("species"),m3=X0.Array,b3=Math.max;function w3(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(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function E3(e){var t=e.selection;if(null==t)return!1;var n=w3(Gd.nodes(e,{match:function(e){return zk.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=w3(n,2)[1],o=Gd.start(e,r);if(ip.equals(t.anchor,o))return!0}return!1}function x3(e,t){var n,r,o=Gd.nodes(e,{at:t,match:function(e){return"table"===zk.getNodeType(e)}}),i=!1;try{for(var a=
68/*! *****************************************************************************
69      Copyright (c) Microsoft Corporation.
70      
71      Permission to use, copy, modify, and/or distribute this software for any
72      purpose with or without fee is hereby granted.
73      
74      THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
75      REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
76      AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
77      INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
78      LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
79      OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
80      PERFORMANCE OF THIS SOFTWARE.
81      ***************************************************************************** */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(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}h4({target:"Array",proto:!0,forced:!g3},{slice:function(e,t){var n,r,o,i=y1(this),a=X2(i),u=G2(e,a),s=G2(void 0===t?a:t,a);if(r3(i)&&(n=i.constructor,(f3(n)&&(n===m3||r3(n.prototype))||b1(n)&&null===(n=n[y3]))&&(n=void 0),n===m3||void 0===n))return v3(i,u,s);for(r=new(void 0===n?m3:n)(b3(s-u,0)),o=0;u<s;u++,o++)u in i&&d3(r,o,i[u]);return r.length=o,r}});var C3=s1(s1.bind),D3=t2("species"),S3=X0.Array,A3=function(e,t){return new(r3(n=e)&&(r=n.constructor,(f3(r)&&(r===S3||r3(r.prototype))||b1(r)&&null===(r=r[D3]))&&(r=void 0)),void 0===r?S3:r)(0===t?0:t);var n,r},O3=s1([].push),k3=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=U1(s),v=h1(h),g=function(e,t){return N1(e),void 0===t?e:C3?C3(e,t):function(){return e.apply(t,arguments)}}(l,c),y=X2(v),m=0,b=f||A3,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:O3(w,d)}else switch(e){case 4:return!1;case 7:O3(w,d)}return i?-1:r||o?o:w}},B3={forEach:k3(0),map:k3(1),filter:k3(2),find:k3(5)},_3=B3.map;h4({target:"Array",proto:!0,forced:!h3("map")},{map:function(e){return _3(this,e,arguments.length>1?arguments[1]:void 0)}});var F3=g4?{}.toString:function(){return"[object "+w4(this)+"]"};function T3(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function P3(e){return T3(e).every((function(e){return!!e.isHeader}))}g4||z2(Object.prototype,"toString",F3,{unsafe:!0});var j3=M2.PROPER,I3=RegExp.prototype,N3=I3.toString,L3=s1(A4),R3=Y0((function(){return"/a/b"!=N3.call({source:"a",flags:"b"})})),M3=j3&&"toString"!=N3.name;(R3||M3)&&z2(RegExp.prototype,"toString",(function(){var e=p2(this),t=x4(e.source),n=e.flags;return"/"+t+"/"+x4(void 0===n&&x1(I3,e)&&!("flags"in I3)?L3(e):n)}),{unsafe:!0});var z3=t2("unscopables"),$3=Array.prototype;null==$3[z3]&&g2.f($3,z3,{configurable:!0,value:z4(null)});var H3=B3.find,V3=!0;"find"in[]&&Array(1).find((function(){V3=!1})),h4({target:"Array",proto:!0,forced:V3},{find:function(e){return H3(this,e,arguments.length>1?arguments[1]:void 0)}}),$3[z3].find=!0;var U3=Function.prototype,W3=U3.apply,G3=U3.bind,q3=U3.call,K3="object"==typeof Reflect&&Reflect.apply||(G3?q3.bind(W3):function(){return q3.apply(W3,arguments)}),X3=t2("species"),Y3=RegExp.prototype,Z3=function(e,t,n,r){var o=t2(e),i=!Y0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Y0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[X3]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=s1(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=s1(e),s=t.exec;return s===n3||s===Y3.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));z2(String.prototype,e,s[0]),z2(Y3,o,s[1])}r&&y2(Y3[o],"sham",!0)},J3=t2("match"),Q3=X0.TypeError,e6=t2("species"),t6=s1("".charAt),n6=s1("".charCodeAt),r6=s1("".slice),o6=function(e){return function(t,n){var r,o,i=x4(g1(t)),a=V2(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=n6(i,a))<55296||r>56319||a+1===u||(o=n6(i,a+1))<56320||o>57343?e?t6(i,a):r:e?r6(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),i6=function(e,t,n){return t+(n?o6(e,t).length:1)},a6=X0.Array,u6=Math.max,s6=function(e,t,n){for(var r=X2(e),o=G2(t,r),i=G2(void 0===n?r:n,r),a=a6(u6(i-o,0)),u=0;o<i;o++,u++)d3(a,u,e[o]);return a.length=u,a},l6=X0.TypeError,c6=function(e,t){var n=e.exec;if(m1(n)){var r=Q0(n,e,t);return null!==r&&p2(r),r}if("RegExp"===f1(e))return Q0(n3,e,t);throw l6("RegExp#exec called on incompatible receiver")},f6=B4.UNSUPPORTED_Y,d6=Math.min,p6=[].push,h6=s1(/./.exec),v6=s1(p6),g6=s1("".slice);Z3("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=x4(g1(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!b1(r=e)||!(void 0!==(o=r[J3])?o:"RegExp"==f1(r)))return Q0(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=Q0(n3,p,i))&&!((s=p.lastIndex)>d&&(v6(c,g6(i,d,u.index)),u.length>1&&u.index<i.length&&K3(p6,c,s6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&h6(p,"")||v6(c,""):v6(c,g6(i,d)),c.length>a?s6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Q0(t,this,e,n)}:t,[function(t,n){var o=g1(this),i=null==t?void 0:L1(t,e);return i?Q0(i,t,o,n):Q0(r,x4(o),t,n)},function(e,o){var i=p2(this),a=x4(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=p2(i).constructor)||null==(l=p2(c)[e6])?s:function(e){if(f3(e))return e;throw Q3(j1(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(f6?"g":"y"),h=new f(f6?"^(?:"+i.source+")":i,p),v=void 0===o?4294967295:o>>>0;if(0===v)return[];if(0===a.length)return null===c6(h,a)?[a]:[];for(var g=0,y=0,m=[];y<a.length;){h.lastIndex=f6?0:y;var b,w=c6(h,f6?g6(a,y):a);if(null===w||(b=d6(K2(h.lastIndex+(f6?y:0)),a.length))===g)y=i6(a,y,d);else{if(v6(m,g6(a,g,y)),m.length===v)return m;for(var E=1;E<=w.length-1;E++)if(v6(m,w[E]),m.length===v)return m;y=g=b}}return v6(m,g6(a,g)),m}]}),!!Y0((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]})),f6);var y6="\t\n\v\f\r                 \u2028\u2029\ufeff",m6=s1("".replace),b6="["+y6+"]",w6=RegExp("^"+b6+b6+"*"),E6=RegExp(b6+b6+"*$"),x6={trim:function(e){return function(t){var n=x4(g1(t));return 1&e&&(n=m6(n,w6,"")),2&e&&(n=m6(n,E6,"")),n}}(3)},C6=M2.PROPER,D6=x6.trim;function S6(e){return e.length?e[0].tagName.toLowerCase():""}h4({target:"String",proto:!0,forced:function(e){return Y0((function(){return!!y6.trim()||"â€
81‹Â…á Ž"!=="​…᠎".trim()||C6&&y6.trim.name!==e}))}("trim")},{trim:function(){return D6(this)}}),h4({global:!0},{globalThis:X0}),gv&&(Xh.fn.append=gv),rv&&(Xh.fn.on=rv),Ov&&(Xh.fn.focus=Ov),Qh&&(Xh.fn.attr=Qh),nv&&(Xh.fn.val=nv),pv&&(Xh.fn.html=pv),tv&&(Xh.fn.dataset=tv),Yh&&(Xh.fn.addClass=Yh),Zh&&(Xh.fn.removeClass=Zh),Ev&&(Xh.fn.children=Ev),fv&&(Xh.fn.each=fv),wv&&(Xh.fn.find=wv);var A6=!1,O6=0,k6=0,B6=null,_6=null,F6=Xh("body");function T6(e){A6=!1,_6=null,B6=null,F6.off("mousemove",P6),F6.off("mouseup",T6)}F6.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(),A6=!0;var n=e.clientX;O6=n;var r=t.getBoundingClientRect().width;k6=r,F6.on("mousemove",P6),F6.on("mouseup",T6)}}));var P6=ig((function(e){if(A6&&null!=_6&&null!=B6){e.preventDefault();var t=e.clientX,n=k6+(t-O6);(n=Math.floor(100*n)/100)<30&&(n=30),jp.setNodes(_6,{width:n.toString()},{at:B6})}}),100),j6={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(lp.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=zk.findPath(e,t),a=Gd.start(e,i),u=Gd.end(e,i),s=ip.compare(r,u)<=0&&ip.compare(r,a)>=0,l=ip.compare(o,u)<=0&&ip.compare(o,a)>=0;return!!(s&&l&&tp.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return Rg("div",{className:"table-container","data-selected":zk.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=zk.findPath(n,e),o=Gd.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Rg("table",{width:i,contentEditable:r},Rg("colgroup",null,T3(e).map((function(e){var t=e.width;return Rg("col",{width:void 0===t?"auto":t})}))),Rg("tbody",null,t)))}},I6={type:"table-row",renderElem:function(e,t,n){return Rg("tr",null,t)}},N6={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=zk.getParentNode(e,t);if(null==n)return!1;var r=zk.getParentNode(e,n);return null!=r&&T3(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?Rg(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:ig((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;A6||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",_6=n,B6=zk.findPath(n,e)):A6||(r.style.cursor="auto",_6=null,B6=null))}}),100)}},t):Rg("td",{colSpan:a,rowSpan:s},t)}},L6={selector:"table",preParseHtml:function(e){var t=Xh(e);if("table"!==S6(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]}},R6=B3.filter;h4({target:"Array",proto:!0,forced:!h3("filter")},{filter:function(e){return R6(this,e,arguments.length>1?arguments[1]:void 0)}});var M6=Math.floor,z6=s1("".charAt),$6=s1("".replace),H6=s1("".slice),V6=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,U6=/\$([$&'`]|\d{1,2})/g,W6=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=U6;return void 0!==o&&(o=U1(o),s=V6),$6(i,s,(function(i,s){var l;switch(z6(s,0)){case"$":return"$";case"&":return e;case"`":return H6(t,0,n);case"'":return H6(t,a);case"<":l=o[H6(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=M6(c/10);return 0===f?i:f<=u?void 0===r[f-1]?z6(s,1):r[f-1]+z6(s,1):i}l=r[c-1]}return void 0===l?"":l}))},G6=t2("replace"),q6=Math.max,K6=Math.min,X6=s1([].concat),Y6=s1([].push),Z6=s1("".indexOf),J6=s1("".slice),Q6="$0"==="a".replace(/./,"$0"),e5=!!/./[G6]&&""===/./[G6]("a","$0");Z3("replace",(function(e,t,n){var r=e5?"$":"$0";return[function(e,n){var r=g1(this),o=null==e?void 0:L1(e,G6);return o?Q0(o,e,r,n):Q0(t,x4(r),e,n)},function(e,o){var i=p2(this),a=x4(e);if("string"==typeof o&&-1===Z6(o,r)&&-1===Z6(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=m1(o);s||(o=x4(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=c6(i,a);if(null===d)break;if(Y6(f,d),!l)break;""===x4(d[0])&&(i.lastIndex=i6(a,K2(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=x4((d=f[g])[0]),m=q6(K6(V2(d.index),a.length),0),b=[],w=1;w<d.length;w++)Y6(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var x=X6([y],b,m,a);void 0!==E&&Y6(x,E);var C=x4(K3(o,void 0,x))}else C=W6(y,a,m,b,E,o);m>=v&&(h+=J6(a,v,m)+C,v=m+y.length)}return h+J6(a,v)}]}),!!Y0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Q6||e5);var t5={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Xh(e);0===(t=t.filter((function(e){return!!gp.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"===S6(r),colSpan:o,rowSpan:i,width:a,children:t}}},n5={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===zk.getNodeType(e)}))}}},r5={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Xh(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===z
vendor: 47,324 bytes, lines 81-96
81k.getNodeType(e)}))}}},o5=function(){function e(){this.title=Sj("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||!lp.isCollapsed(t)||!!zk.getSelectedElems(e).some((function(t){var n=zk.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Xh('<div class="w-e-panel-content-table"></div>'),r=Xh("<span>0 &times; 0</span>"),o=Xh("<table></table>"),i=0;i<10;i++){for(var a=Xh("<tr></tr>"),u=0;u<10;u++){var s=Xh("<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=Xh(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){Xh(e).children().each((function(e){var t=Xh(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=Xh(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)){zk.isSelectedEmptyParagraph(e)&&jp.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);jp.insertNodes(e,i,{mode:"highest"})}},e}(),i5=function(){function e(){this.title=Sj("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==zk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||jp.removeNodes(e,{mode:"highest"})},e}(),a5=function(){function e(){this.title=Sj("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||!lp.isCollapsed(t)||null==zk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=w3(Gd.nodes(e,{match:function(e){return zk.checkNodeType(e,"table-cell")},universal:!0}),1),r=w3(n[0],2),o=r[0],i=r[1],a=zk.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=tp.parent(i),f=tp.next(c);jp.insertNodes(e,s,{at:f})}}},e}(),u5=function(){function e(){this.title=Sj("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||!lp.isCollapsed(t)||null==zk.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=w3(Gd.nodes(e,{match:function(e){return zk.checkNodeType(e,"table-row")},universal:!0}),1),r=w3(n[0],2),o=r[0],i=r[1],a=zk.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?jp.removeNodes(e,{mode:"highest"}):jp.removeNodes(e,{at:i})}},e}(),s5={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},l5=u2("span").classList,c5=l5&&l5.constructor&&l5.constructor.prototype,f5=c5===Object.prototype?void 0:c5,d5=B3.forEach,p5=function(e,t){var n=[].forEach;return!!n&&Y0((function(){n.call(null,(function(){throw 1}),1)}))}(),h5=p5?[].forEach:function(e){return d5(this,e,arguments.length>1?arguments[1]:void 0)},v5=function(e){if(e&&e.forEach!==h5)try{y2(e,"forEach",h5)}catch(t){e.forEach=h5}};for(var g5 in s5)s5[g5]&&v5(X0[g5]&&X0[g5].prototype);v5(f5);var y5=function(){function e(){this.title=Sj("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||!lp.isCollapsed(t)||null==zk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=w3(Gd.nodes(e,{match:function(e){return zk.checkNodeType(e,"table-cell")},universal:!0}),1),r=w3(n[0],2),o=r[0],i=r[1],a=zk.getParentNode(e,o);if(null!=a){var u=zk.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){zd.isElement(t)&&(t.children||[]).forEach((function(t){var r=zk.findPath(e,t);if(r.length===i.length&&V0(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&P3(u)&&(o.isHeader=!0),jp.insertNodes(e,o,{at:r})}}))}))}}},e}(),m5=function(){function e(){this.title=Sj("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||!lp.isCollapsed(t)||null==zk.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=w3(Gd.nodes(e,{match:function(e){return zk.checkNodeType(e,"table-cell")},universal:!0}),1),r=w3(n[0],2),o=r[0],i=r[1],a=zk.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)jp.removeNodes(e,{mode:"highest"});else{var s=zk.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){zd.isElement(t)&&(t.children||[]).forEach((function(t){var n=zk.findPath(e,t);n.length===i.length&&V0(n.slice(-1),i.slice(-1))&&jp.removeNodes(e,{at:n})}))}))}}},e}(),b5=function(){function e(){this.title=Sj("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=zk.getSelectedNodeByType(e,"table");return null!=t&&P3(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!lp.isCollapsed(t)||null==zk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=zk.getSelectedNodeByType(e,"table");null!=r&&T3(r).forEach((function(t){return jp.setNodes(e,{isHeader:n},{at:zk.findPath(e,t)})}))}},e}(),w5=function(){function e(){this.title=Sj("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=zk.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||!lp.isCollapsed(t)||null==zk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};jp.setNodes(e,n,{mode:"highest"})}},e}(),E5={renderElems:[j6,I6,N6],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[L6],parseElemsHtml:[t5,n5,r5],menus:[{key:"insertTable",factory:function(){return new o5}},{key:"deleteTable",factory:function(){return new i5}},{key:"insertTableRow",factory:function(){return new a5}},{key:"deleteTableRow",factory:function(){return new u5}},{key:"insertTableCol",factory:function(){return new y5}},{key:"deleteTableCol",factory:function(){return new m5}},{key:"tableHeader",factory:function(){return new b5}},{key:"tableFullWidth",factory:function(){return new w5}}],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==zk.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!E3(s)){var t=s.selection;if(t){var r=Gd.before(s,t);if(r){var o=x3(s,r),i=x3(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(zk.getSelectedNodeByType(s,"table")){var n=Gd.above(e);zk.checkNodeType(n[0],"table-cell")&&jp.select(e,n[1]);var r=Gd.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Gd.above(e,{at:r[1]}))&&void 0!==t?t:r),jp.select(e,r[1]);else{var o=s.children||[],i=o.length;if(zk.checkNodeType(o[i-1],"table")){var u=zk.genEmptyParagraph();jp.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){E3(s)||r(e)},s.normalizeNode=function(e){var t=w3(e,2),n=t[0],r=t[1];if("table"!==zk.getNodeType(n))return o([n,r]);if(zk.isLastNode(s,n)){var i=zk.genEmptyParagraph();jp.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=zk.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Gd.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=zk.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(tp.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Zd.string(t).length){var o=zk.findPath(s,t),i={anchor:Gd.start(s,o),focus:Gd.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};Dj("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Dj("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
82/*! *****************************************************************************
83Copyright (c) Microsoft Corporation.
84
85Permission to use, copy, modify, and/or distribute this software for any
86purpose with or without fee is hereby granted.
87
88THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
89REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
90AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
91INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
92LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
93OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
94PERFORMANCE OF THIS SOFTWARE.
95***************************************************************************** */
96var x5=function(){return x5=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},x5.apply(this,arguments)};function C5(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function D5(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],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 S5(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(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var A5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function O5(e){var t={exports:{}};return e(t,t.exports),t.exports}var k5,B5,_5=function(e){return e&&e.Math==Math&&e},F5=_5("object"==typeof globalThis&&globalThis)||_5("object"==typeof window&&window)||_5("object"==typeof self&&self)||_5("object"==typeof A5&&A5)||function(){return this}()||Function("return this")(),T5=function(e){try{return!!e()}catch(t){return!0}},P5=!T5((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),j5=Function.prototype.call,I5=j5.bind?j5.bind(j5):function(){return j5.apply(j5,arguments)},N5={}.propertyIsEnumerable,L5=Object.getOwnPropertyDescriptor,R5={f:L5&&!N5.call({1:2},1)?function(e){var t=L5(this,e);return!!t&&t.enumerable}:N5},M5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z5=Function.prototype,$5=z5.bind,H5=z5.call,V5=$5&&$5.bind(H5),U5=$5?function(e){return e&&V5(H5,e)}:function(e){return e&&function(){return H5.apply(e,arguments)}},W5=U5({}.toString),G5=U5("".slice),q5=function(e){return G5(W5(e),8,-1)},K5=F5.Object,X5=U5("".split),Y5=T5((function(){return!K5("z").propertyIsEnumerable(0)}))?function(e){return"String"==q5(e)?X5(e,""):K5(e)}:K5,Z5=F5.TypeError,J5=function(e){if(null==e)throw Z5("Can't call method on "+e);return e},Q5=function(e){return Y5(J5(e))},e8=function(e){return"function"==typeof e},t8=function(e){return"object"==typeof e?null!==e:e8(e)},n8=function(e){return e8(e)?e:void 0},r8=function(e,t){return arguments.length<2?n8(F5[e]):F5[e]&&F5[e][t]},o8=U5({}.isPrototypeOf),i8=r8("navigator","userAgent")||"",a8=F5.process,u8=F5.Deno,s8=a8&&a8.versions||u8&&u8.version,l8=s8&&s8.v8;l8&&(B5=(k5=l8.split("."))[0]>0&&k5[0]<4?1:+(k5[0]+k5[1])),!B5&&i8&&(!(k5=i8.match(/Edge\/(\d+)/))||k5[1]>=74)&&(k5=i8.match(/Chrome\/(\d+)/))&&(B5=+k5[1]);var c8=B5,f8=!!Object.getOwnPropertySymbols&&!T5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&c8&&c8<41})),d8=f8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,p8=F5.Object,h8=d8?function(e){return"symbol"==typeof e}:function(e){var t=r8("Symbol");return e8(t)&&o8(t.prototype,p8(e))},v8=F5.String,g8=function(e){try{return v8(e)}catch(t){return"Object"}},y8=F5.TypeError,m8=function(e){if(e8(e))return e;throw y8(g8(e)+" is not a function")},b8=function(e,t){var n=e[t];return null==n?void 0:m8(n)},w8=F5.TypeError,E8=Object.defineProperty,x8=function(e,t){try{E8(F5,e,{value:t,configurable:!0,writable:!0})}catch(Oj){F5[e]=t}return t},C8=F5["__core-js_shared__"]||x8("__core-js_shared__",{}),D8=O5((function(e){(e.exports=function(e,t){return C8[e]||(C8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),S8=F5.Object,A8=function(e){return S8(J5(e))},O8=U5({}.hasOwnProperty),k8=Object.hasOwn||function(e,t){return O8(A8(e),t)},B8=0,_8=Math.random(),F8=U5(1..toString),T8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+F8(++B8+_8,36)},P8=D8("wks"),j8=F5.Symbol,I8=j8&&j8.for,N8=d8?j8:j8&&j8.withoutSetter||T8,L8=function(e){if(!k8(P8,e)||!f8&&"string"!=typeof P8[e]){var t="Symbol."+e;f8&&k8(j8,e)?P8[e]=j8[e]:P8[e]=d8&&I8?I8(t):N8(t)}return P8[e]},R8=F5.TypeError,M8=L8("toPrimitive"),z8=function(e){var t=function(e,t){if(!t8(e)||h8(e))return e;var n,r=b8(e,M8);if(r){if(n=I5(r,e,"string"),!t8(n)||h8(n))return n;throw R8("Can't convert object to primitive value")}return function(e,t){var n,r;if(e8(n=e.toString)&&!t8(r=I5(n,e)))return r;if(e8(n=e.valueOf)&&!t8(r=I5(n,e)))return r;throw w8("Can't convert object to primitive value")}(e)}(e);return h8(t)?t:t+""},$8=F5.document,H8=t8($8)&&t8($8.createElement),V8=function(e){return H8?$8.createElement(e):{}},U8=!P5&&!T5((function(){return 7!=Object.defineProperty(V8("div"),"a",{get:function(){return 7}}).a})),W8=Object.getOwnPropertyDescriptor,G8={f:P5?W8:function(e,t){if(e=Q5(e),t=z8(t),U8)try{return W8(e,t)}catch(n){}if(k8(e,t))return M5(!I5(R5.f,e,t),e[t])}},q8=F5.String,K8=F5.TypeError,X8=function(e){if(t8(e))return e;throw K8(q8(e)+" is not an object")},Y8=F5.TypeError,Z8=Object.defineProperty,J8={f:P5?Z8:function(e,t,n){if(X8(e),t=z8(t),X8(n),U8)try{return Z8(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Y8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Q8=P5?function(e,t,n){return J8.f(e,t,M5(1,n))}:function(e,t,n){return e[t]=n,e},e7=U5(Function.toString);e8(C8.inspectSource)||(C8.inspectSource=function(e){return e7(e)});var t7,n7,r7,o7=C8.inspectSource,i7=F5.WeakMap,a7=e8(i7)&&/native code/.test(o7(i7)),u7=D8("keys"),s7=function(e){return u7[e]||(u7[e]=T8(e))},l7={},c7=F5.TypeError,f7=F5.WeakMap;if(a7||C8.state){var d7=C8.state||(C8.state=new f7),p7=U5(d7.get),h7=U5(d7.has),v7=U5(d7.set);t7=function(e,t){if(h7(d7,e))throw new c7("Object already initialized");return t.facade=e,v7(d7,e,t),t},n7=function(e){return p7(d7,e)||{}},r7=function(e){return h7(d7,e)}}else{var g7=s7("state");l7[g7]=!0,t7=function(e,t){if(k8(e,g7))throw new c7("Object already initialized");return t.facade=e,Q8(e,g7,t),t},n7=function(e){return k8(e,g7)?e[g7]:{}},r7=function(e){return k8(e,g7)}}var y7={set:t7,get:n7,has:r7,enforce:function(e){return r7(e)?n7(e):t7(e,{})},getterFor:function(e){return function(t){var n;if(!t8(t)||(n=n7(t)).type!==e)throw c7("Incompatible receiver, "+e+" required");return n}}},m7=Function.prototype,b7=P5&&Object.getOwnPropertyDescriptor,w7=k8(m7,"name"),E7={EXISTS:w7,PROPER:w7&&"something"===function(){}.name,CONFIGURABLE:w7&&(!P5||P5&&b7(m7,"name").configurable)},x7=O5((function(e){var t=E7.CONFIGURABLE,n=y7.get,r=y7.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;e8(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!k8(i,"name")||t&&i.name!==f)&&Q8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==F5?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Q8(e,n,i)):l?e[n]=i:x8(n,i)})(Function.prototype,"toString",(function(){return e8(this)&&n(this).source||o7(this)}))})),C7=Math.ceil,D7=Math.floor,S7=function(e){var t=+e;return t!=t||0===t?0:(t>0?D7:C7)(t)},A7=Math.max,O7=Math.min,k7=function(e,t){var n=S7(e);return n<0?A7(n+t,0):O7(n,t)},B7=Math.min,_7=function(e){return e>0?B7(S7(e),9007199254740991):0},F7=function(e){return _7(e.length)},T7=function(e){return function(t,n,r){var o,i=Q5(t),a=F7(i),u=k7(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}},P7={includes:T7(!0),indexOf:T7(!1)},j7=P7.indexOf,I7=U5([].push),N7=function(e,t){var n,r=Q5(e),o=0,i=[];for(n in r)!k8(l7,n)&&k8(r,n)&&I7(i,n);for(;t.length>o;)k8(r,n=t[o++])&&(~j7(i,n)||I7(i,n));return i},L7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],R7=L7.concat("length","prototype"),M7={f:Object.getOwnPropertyNames||function(e){return N7(e,R7)}},z7={f:Object.getOwnPropertySymbols},$7=U5([].concat),H7=r8("Reflect","ownKeys")||function(e){var t=M7.f(X8(e)),n=z7.f;return n?$7(t,n(e)):t},V7=function(e,t){for(var n=H7(t),r=J8.f,o=G8.f,i=0;i<n.length;i++){var a=n[i];k8(e,a)||r(e,a,o(t,a))}},U7=/#|\.prototype\./,W7=function(e,t){var n=q7[G7(e)];return n==X7||n!=K7&&(e8(t)?T5(t):!!t)},G7=W7.normalize=function(e){return String(e).replace(U7,".").toLowerCase()},q7=W7.data={},K7=W7.NATIVE="N",X7=W7.POLYFILL="P",Y7=W7,Z7=G8.f,J7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?F5:l?F5[u]||x8(u,{}):(F5[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Z7(n,r))&&a.value:n[r],!Y7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;V7(i,o)}(e.sham||o&&o.sham)&&Q8(i,"sham",!0),x7(n,r,i,e)}},Q7={};Q7[L8("toStringTag")]="z";var e9="[object z]"===String(Q7),t9=L8("toStringTag"),n9=F5.Object,r9="Arguments"==q5(function(){return arguments}()),o9=e9?q5: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(n){}}(t=n9(e),t9))?n:r9?q5(t):"Object"==(r=q5(t))&&e8(t.callee)?"Arguments":r},i9=F5.String,a9=function(e){if("Symbol"===o9(e))throw TypeError("Cannot convert a Symbol value to a string");return i9(e)},u9="\t\n\v\f\r                 \u2028\u2029\ufeff",s9=U5("".replace),l9="["+u9+"]",c9=RegExp("^"+l9+l9+"*"),f9=RegExp(l9+l9+"*$"),d9={trim:function(e){return function(t){var n=a9(J5(t));return 1&e&&(n=s9(n,c9,"")),2&e&&(n=s9(n,f9,"")),n}}(3)},p9=E7.PROPER,h9=d9.trim;function v9(e){return e.length?e[0].tagName.toLowerCase():""}function g9(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Xh(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}J7({target:"String",proto:!0,forced:T5((function(){return!!u9.trim()||"​…᠎"!=="​…᠎".trim()||p9&&"trim"!==u9.trim.name}))},{trim:function(){return h9(this)}}),J7({global:!0},{globalThis:F5}),gv&&(Xh.fn.append=gv),rv&&(Xh.fn.on=rv),Ov&&(Xh.fn.focus=Ov),Qh&&(Xh.fn.attr=Qh),nv&&(Xh.fn.val=nv),pv&&(Xh.fn.html=pv),mv&&(Xh.fn.parent=mv),Jh&&(Xh.fn.hasClass=Jh),Cv&&(Xh.fn.empty=Cv);var y9,m9={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=zk.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Rg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:g9(a,c,d)});else{var h=Rg("video",{poster:s,controls:!0},Rg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=Rg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return mg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},b9={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=g9(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},w9=Object.keys||function(e){return N7(e,L7)},E9=P5?Object.defineProperties:function(e,t){X8(e);for(var n,r=Q5(t),o=w9(t),i=o.length,a=0;i>a;)J8.f(e,n=o[a++],r[n]);return e},x9=r8("document","documentElement"),C9=s7("IE_PROTO"),D9=function(){},S9=function(e){return"<script>"+e+"<\/script>"},A9=function(e){e.write(S9("")),e.close();var t=e.parentWindow.Object;return e=null,t},O9=function(){try{y9=new ActiveXObject("htmlfile")}catch(r){}var e,t;O9="undefined"!=typeof document?document.domain&&y9?A9(y9):((t=V8("iframe")).style.display="none",x9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(S9("document.F=Object")),e.close(),e.F):A9(y9);for(var n=L7.length;n--;)delete O9.prototype[L7[n]];return O9()};l7[C9]=!0;var k9=Object.create||function(e,t){var n;return null!==e?(D9.prototype=X8(e),n=new D9,D9.prototype=null,n[C9]=e):n=O9(),void 0===t?n:E9(n,t)},B9=L8("unscopables"),_9=Array.prototype;null==_9[B9]&&J8.f(_9,B9,{configurable:!0,value:k9(null)});var F9=function(e){_9[B9][e]=!0},T9=P7.includes;J7({target:"Array",proto:!0},{includes:function(e){return T9(this,e,arguments.length>1?arguments[1]:void 0)}}),F9("includes");var P9={selector:"iframe,video,p",preParseHtml:function(e){var t=Xh(e),n=t;if("p"===v9(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Xh(o))}}var a=v9(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Xh('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},j9=U5(U5.bind),I9=function(e,t){return m8(e),void 0===t?e:j9?j9(e,t):function(){return e.apply(t,arguments)}},N9=Array.isArray||function(e){return"Array"==q5(e)},L9=function(){},R9=[],M9=r8("Reflect","construct"),z9=/^\s*(?:class|function)\b/,$9=U5(z9.exec),H9=!z9.exec(L9),V9=function(e){if(!e8(e))return!1;try{return M9(L9,R9,e),!0}catch(t){return!1}},U9=!M9||T5((function(){var e;return V9(V9.call)||!V9(Object)||!V9((function(){e=!0}))||e}))?function(e){if(!e8(e))return!1;switch(o9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return H9||!!$9(z9,o7(e))}:V9,W9=L8("species"),G9=F5.Array,q9=function(e,t){return new(N9(n=e)&&(r=n.constructor,(U9(r)&&(r===G9||N9(r.prototype))||t8(r)&&null===(r=r[W9]))&&(r=void 0)),void 0===r?G9:r)(0===t?0:t);var n,r},K9=U5([].push),X9=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=A8(s),v=Y5(h),g=I9(l,c),y=F7(v),m=0,b=f||q9,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:K9(w,d)}else switch(e){case 4:return!1;case 7:K9(w,d)}return i?-1:r||o?o:w}},Y9={find:X9(5),findIndex:X9(6)},Z9=Y9.find,J9=!0;"find"in[]&&Array(1).find((function(){J9=!1})),J7({target:"Array",proto:!0,forced:J9},{find:function(e){return Z9(this,e,arguments.length>1?arguments[1]:void 0)}}),F9("find");var Q9=e9?{}.toString:function(){return"[object "+o9(this)+"]"};function eee(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}e9||x7(Object.prototype,"toString",Q9,{unsafe:!0});var tee,nee,ree={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Xh(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",eee(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",eee(o,i=l.attr("poster")||"",a,u)}},oee=function(){var e=X8(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},iee=F5.RegExp,aee=T5((function(){var e=iee("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));aee||T5((function(){return!iee("a","y").sticky}));var uee={BROKEN_CARET:aee||T5((function(){var e=iee("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},see=F5.RegExp,lee=T5((function(){var e=see(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),cee=F5.RegExp,fee=T5((function(){var e=cee("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),dee=y7.get,pee=D8("native-string-replace",String.prototype.replace),hee=RegExp.prototype.exec,vee=hee,gee=U5("".charAt),yee=U5("".indexOf),mee=U5("".replace),bee=U5("".slice),wee=(nee=/b*/g,I5(hee,tee=/a/,"a"),I5(hee,nee,"a"),0!==tee.lastIndex||0!==nee.lastIndex),Eee=uee.BROKEN_CARET,xee=void 0!==/()??/.exec("")[1];(wee||xee||Eee||lee||fee)&&(vee=function(e){var t,n,r,o,i,a,u,s=this,l=dee(s),c=a9(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=I5(vee,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Eee&&s.sticky,h=I5(oee,s),v=s.source,g=0,y=c;if(p&&(h=mee(h,"y",""),-1===yee(h,"g")&&(h+="g"),y=bee(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==gee(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),xee&&(n=new RegExp("^"+v+"$(?!\\s)",h)),wee&&(r=s.lastIndex),o=I5(hee,p?n:s,y),p?o?(o.input=bee(o.input,g),o[0]=bee(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:wee&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),xee&&o&&o.length>1&&I5(pee,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=k9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Cee=vee;J7({target:"RegExp",proto:!0,forced:/./.exec!==Cee},{exec:Cee});var Dee=Function.prototype,See=Dee.apply,Aee=Dee.bind,Oee=Dee.call,kee="object"==typeof Reflect&&Reflect.apply||(Aee?Oee.bind(See):function(){return Oee.apply(See,arguments)}),Bee=(L8("species"),RegExp.prototype),_ee=U5("".charAt),Fee=U5("".charCodeAt),Tee=U5("".slice),Pee={charAt:function(e){return function(t,n){var r,o,i=a9(J5(t)),a=S7(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Fee(i,a))<55296||r>56319||a+1===u||(o=Fee(i,a+1))<56320||o>57343?e?_ee(i,a):r:e?Tee(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},jee=Pee.charAt,Iee=function(e,t,n){return t+(n?jee(e,t).length:1)},Nee=Math.floor,Lee=U5("".charAt),Ree=U5("".replace),Mee=U5("".slice),zee=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$ee=/\$([$&'`]|\d{1,2})/g,Hee=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=$ee;return void 0!==o&&(o=A8(o),s=zee),Ree(i,s,(function(i,s){var l;switch(Lee(s,0)){case"$":return"$";case"&":return e;case"`":return Mee(t,0,n);case"'":return Mee(t,a);case"<":l=o[Mee(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Nee(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Lee(s,1):r[f-1]+Lee(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Vee=F5.TypeError,Uee=function(e,t){var n=e.exec;if(e8(n)){var r=I5(n,e,t);return null!==r&&X8(r),r}if("RegExp"===q5(e))return I5(Cee,e,t);throw Vee("RegExp#exec called on incompatible receiver")},Wee=L8("replace"),Gee=Math.max,qee=Math.min,Kee=U5([].concat),Xee=U5([].push),Yee=U5("".indexOf),Zee=U5("".slice),Jee="$0"==="a".replace(/./,"$0"),Qee=!!/./[Wee]&&""===/./[Wee]("a","$0");function ete(e){return e+"-"+Uv()}!function(e,t,n,r){var o=L8(e),i=!T5((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!T5((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=U5(/./[o]),s=function(e,t,n){var r=Qee?"$":"$0";return[function(e,n){var r=J5(this),o=null==e?void 0:b8(e,Wee);return o?I5(o,e,r,n):I5(t,a9(r),e,n)},function(e,n){var o=X8(this),a=a9(e);if("string"==typeof n&&-1===Yee(n,r)&&-1===Yee(n,"$<")){var s=function(e,t,n,r,o){var a=U5(e),s=t.exec;return s===Cee||s===Bee.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}(t,o,a,n);if(s.done)return s.value}var l=e8(n);l||(n=a9(n));var c=o.global;if(c){var f=o.unicode;o.lastIndex=0}for(var d=[];;){var p=Uee(o,a);if(null===p)break;if(Xee(d,p),!c)break;""===a9(p[0])&&(o.lastIndex=Iee(a,_7(o.lastIndex),f))}for(var h,v="",g=0,y=0;y<d.length;y++){for(var m=a9((p=d[y])[0]),b=Gee(qee(S7(p.index),a.length),0),w=[],E=1;E<p.length;E++)Xee(w,void 0===(h=p[E])?h:String(h));var x=p.groups;if(l){var C=Kee([m],w,b,a);void 0!==x&&Xee(C,x);var D=a9(kee(n,void 0,C))}else D=Hee(m,a,b,w,x,n);b>=g&&(v+=Zee(a,g,b)+D,g=b+m.length)}return v+Zee(a,g)}]}(0,""[e]);x7(String.prototype,e,s[0]),x7(Bee,o,s[1])}}("replace",0,!!T5((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Jee||Qee);var tte=F5.Promise,nte=function(e,t,n){for(var r in t)x7(e,r,t[r],n);return e},rte=F5.String,ote=F5.TypeError,ite=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=U5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return X8(n),function(e){if("object"==typeof e||e8(e))return e;throw ote("Can't set "+rte(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ate=J8.f,ute=L8("toStringTag"),ste=function(e,t,n){e&&!k8(e=n?e:e.prototype,ute)&&ate(e,ute,{configurable:!0,value:t})},lte=L8("species"),cte=F5.TypeError,fte=function(e,t){if(o8(t,e))return e;throw cte("Incorrect invocation")},dte={},pte=L8("iterator"),hte=Array.prototype,vte=L8("iterator"),gte=function(e){if(null!=e)return b8(e,vte)||b8(e,"@@iterator")||dte[o9(e)]},yte=F5.TypeError,mte=function(e,t,n){var r,o;X8(e);try{if(!(r=b8(e,"return"))){if("throw"===t)throw n;return n}r=I5(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return X8(r),n},bte=F5.TypeError,wte=function(e,t){this.stopped=e,this.result=t},Ete=wte.prototype,xte=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),v=I9(t,f),g=function(e){return r&&mte(r,"normal",e),new wte(!0,e)},y=function(e){return d?(X8(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=gte(e)))throw bte(g8(e)+" is not iterable");if(void 0!==(c=o)&&(dte.Array===c||hte[pte]===c)){for(i=0,a=F7(e);a>i;i++)if((u=y(e[i]))&&o8(Ete,u))return u;return new wte(!1)}r=function(e,t){var n=arguments.length<2?gte(e):t;if(m8(n))return X8(I5(n,e));throw yte(g8(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=I5(s,r)).done;){try{u=y(l.value)}catch(m){mte(r,"throw",m)}if("object"==typeof u&&u&&o8(Ete,u))return u}return new wte(!1)},Cte=L8("iterator"),Dte=!1;try{var Ste=0,Ate={next:function(){return{done:!!Ste++}},return:function(){Dte=!0}};Ate[Cte]=function(){return this},Array.from(Ate,(function(){throw 2}))}catch(Dme){}var Ote,kte,Bte,_te,Fte=function(e,t){if(!Dte)return!1;var n=!1;try{var r={};r[Cte]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Tte=F5.TypeError,Pte=L8("species"),jte=U5([].slice),Ite=/(?:ipad|iphone|ipod).*applewebkit/i.test(i8),Nte="process"==q5(F5.process),Lte=F5.setImmediate,Rte=F5.clearImmediate,Mte=F5.process,zte=F5.Dispatch,$te=F5.Function,Hte=F5.MessageChannel,Vte=F5.String,Ute=0,Wte={};try{Ote=F5.location}catch(Dme){}var Gte=function(e){if(k8(Wte,e)){var t=Wte[e];delete Wte[e],t()}},qte=function(e){return function(){Gte(e)}},Kte=function(e){Gte(e.data)},Xte=function(e){F5.postMessage(Vte(e),Ote.protocol+"//"+Ote.host)};Lte&&Rte||(Lte=function(e){var t=jte(arguments,1);return Wte[++Ute]=function(){kee(e8(e)?e:$te(e),void 0,t)},kte(Ute),Ute},Rte=function(e){delete Wte[e]},Nte?kte=function(e){Mte.nextTick(qte(e))}:zte&&zte.now?kte=function(e){zte.now(qte(e))}:Hte&&!Ite?(_te=(Bte=new Hte).port2,Bte.port1.onmessage=Kte,kte=I9(_te.postMessage,_te)):F5.addEventListener&&e8(F5.postMessage)&&!F5.importScripts&&Ote&&"file:"!==Ote.protocol&&!T5(Xte)?(kte=Xte,F5.addEventListener("message",Kte,!1)):kte="onreadystatechange"in V8("script")?function(e){x9.appendChild(V8("script")).onreadystatechange=function(){x9.removeChild(this),Gte(e)}}:function(e){setTimeout(qte(e),0)});var Yte,Zte,Jte,Qte,ene,tne,nne,rne,one={set:Lte},ine=/ipad|iphone|ipod/i.test(i8)&&void 0!==F5.Pebble,ane=/web0s(?!.*chrome)/i.test(i8),une=G8.f,sne=one.set,lne=F5.MutationObserver||F5.WebKitMutationObserver,cne=F5.document,fne=F5.process,dne=F5.Promise,pne=une(F5,"queueMicrotask"),hne=pne&&pne.value;hne||(Yte=function(){var e,t;for(Nte&&(e=fne.domain)&&e.exit();Zte;){t=Zte.fn,Zte=Zte.next;try{t()}catch(n){throw Zte?Qte():Jte=void 0,n}}Jte=void 0,e&&e.enter()},Ite||Nte||ane||!lne||!cne?!ine&&dne&&dne.resolve?((nne=dne.resolve(void 0)).constructor=dne,rne=I9(nne.then,nne),Qte=function(){rne(Yte)}):Nte?Qte=function(){fne.nextTick(Yte)}:(sne=I9(sne,F5),Qte=function(){sne(Yte)}):(ene=!0,tne=cne.createTextNode(""),new lne(Yte).observe(tne,{characterData:!0}),Qte=function(){tne.data=ene=!ene}));var vne,gne,yne,mne,bne=hne||function(e){var t={fn:e,next:void 0};Jte&&(Jte.next=t),Zte||(Zte=t,Qte()),Jte=t},wne=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=m8(t),this.reject=m8(n)},Ene={f:function(e){return new wne(e)}},xne=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Cne="object"==typeof window,Dne=one.set,Sne=L8("species"),Ane="Promise",One=y7.getterFor(Ane),kne=y7.set,Bne=y7.getterFor(Ane),_ne=tte&&tte.prototype,Fne=tte,Tne=_ne,Pne=F5.TypeError,jne=F5.document,Ine=F5.process,Nne=Ene.f,Lne=Nne,Rne=!!(jne&&jne.createEvent&&F5.dispatchEvent),Mne=e8(F5.PromiseRejectionEvent),zne=!1,$ne=Y7(Ane,(function(){var e=o7(Fne),t=e!==String(Fne);if(!t&&66===c8)return!0;if(c8>=51&&/native code/.test(e))return!1;var n=new Fne((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Sne]=r,!(zne=n.then((function(){}))instanceof r)||!t&&Cne&&!Mne})),Hne=$ne||!Fte((function(e){Fne.all(e).catch((function(){}))})),Vne=function(e){var t;return!(!t8(e)||!e8(t=e.then))&&t},Une=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;bne((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&&Kne(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Pne("Promise-chain cycle")):(u=Vne(a))?I5(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Gne(e)}))}},Wne=function(e,t,n){var r,o;Rne?((r=jne.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),F5.dispatchEvent(r)):r={promise:t,reason:n},!Mne&&(o=F5["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=F5.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Gne=function(e){I5(Dne,F5,(function(){var t,n=e.facade,r=e.value;if(qne(e)&&(t=xne((function(){Nte?Ine.emit("unhandledRejection",r,n):Wne("unhandledrejection",n,r)})),e.rejection=Nte||qne(e)?2:1,t.error))throw t.value}))},qne=function(e){return 1!==e.rejection&&!e.parent},Kne=function(e){I5(Dne,F5,(function(){var t=e.facade;Nte?Ine.emit("rejectionHandled",t):Wne("rejectionhandled",t,e.value)}))},Xne=function(e,t,n){return function(r){e(t,r,n)}},Yne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Une(e,!0))},Zne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Pne("Promise can't be resolved itself");var r=Vne(t);r?bne((function(){var n={done:!1};try{I5(r,t,Xne(Zne,n,e),Xne(Yne,n,e))}catch(o){Yne(n,o,e)}})):(e.value=t,e.state=1,Une(e,!1))}catch(o){Yne({done:!1},o,e)}}};if($ne&&(Tne=(Fne=function(e){fte(this,Tne),m8(e),I5(vne,this);var t=One(this);try{e(Xne(Zne,t),Xne(Yne,t))}catch(n){Yne(t,n)}}).prototype,(vne=function(e){kne(this,{type:Ane,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=nte(Tne,{then:function(e,t){var n,r,o,i=Bne(this),a=i.reactions,u=Nne((n=Fne,void 0===(o=X8(this).constructor)||null==(r=X8(o)[Pte])?n:function(e){if(U9(e))return e;throw Tte(g8(e)+" is not a constructor")}(r)));return u.ok=!e8(e)||e,u.fail=e8(t)&&t,u.domain=Nte?Ine.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&Une(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),gne=function(){var e=new vne,t=One(e);this.promise=e,this.resolve=Xne(Zne,t),this.reject=Xne(Yne,t)},Ene.f=Nne=function(e){return e===Fne||e===yne?new gne(e):Lne(e)},e8(tte)&&_ne!==Object.prototype)){mne=_ne.then,zne||(x7(_ne,"then",(function(e,t){var n=this;return new Fne((function(e,t){I5(mne,n,e,t)})).then(e,t)}),{unsafe:!0}),x7(_ne,"catch",Tne.catch,{unsafe:!0}));try{delete _ne.constructor}catch(Dme){}ite&&ite(_ne,Tne)}function Jne(e,t,n){return void 0===n&&(n=""),C5(this,0,void 0,(function(){var r,o,i,a,u,s,l;return D5(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){jp.insertNodes(e,l)})),o(l),[2]}}))}))}function Qne(){return ete("w-e-insert-video")}J7({global:!0,wrap:!0,forced:$ne},{Promise:Fne}),ste(Fne,Ane,!1),function(e){var t=r8("Promise"),n=J8.f;P5&&t&&!t[lte]&&n(t,lte,{configurable:!0,get:function(){return this}})}(),yne=r8(Ane),J7({target:Ane,stat:!0,forced:$ne},{reject:function(e){var t=Nne(this);return I5(t.reject,void 0,e),t.promise}}),J7({target:Ane,stat:!0,forced:$ne},{resolve:function(e){return function(e,t){if(X8(e),t8(t)&&t.constructor===e)return t;var n=Ene.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),J7({target:Ane,stat:!0,forced:Hne},{all:function(e){var t=this,n=Nne(t),r=n.resolve,o=n.reject,i=xne((function(){var n=m8(t.resolve),i=[],a=0,u=1;xte(e,(function(e){var s=a++,l=!1;u++,I5(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=Nne(t),r=n.reject,o=xne((function(){var o=m8(t.resolve);xte(e,(function(e){I5(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ere=function(){function e(){this.title=Sj("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 
96637.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=Qne(),this.posterInputId=Qne(),this.buttonId=Qne()}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||!lp.isCollapsed(t)||!!zk.getSelectedElems(e).some((function(t){var n=zk.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=S5(lP(Sj("videoModule.videoSrc"),r,Sj("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=S5(lP(Sj("videoModule.videoPoster"),o,Sj("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Xh(s),p=Xh(f),h=S5(cP(i,Sj("videoModule.ok")),1)[0];if(null==this.$content){var v=Xh("<div></div>");v.on("click","#"+i,(function(n){return C5(t,0,void 0,(function(){var t,i;return D5(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,Jne(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(c),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),tre=U5([].join),nre=Y5!=Object,rre=function(e,t){var n=[].join;return!!n&&T5((function(){n.call(null,",",1)}))}();J7({target:"Array",proto:!0,forced:nre||!rre},{join:function(e){return tre(Q5(this),void 0===e?",":e)}});var ore,ire,are,ure=!T5((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),sre=s7("IE_PROTO"),lre=F5.Object,cre=lre.prototype,fre=ure?lre.getPrototypeOf:function(e){var t=A8(e);if(k8(t,sre))return t[sre];var n=t.constructor;return e8(n)&&t instanceof n?n.prototype:t instanceof lre?cre:null},dre=L8("iterator"),pre=!1;[].keys&&("next"in(are=[].keys())?(ire=fre(fre(are)))!==Object.prototype&&(ore=ire):pre=!0);var hre=null==ore||T5((function(){var e={};return ore[dre].call(e)!==e}));hre&&(ore={}),e8(ore[dre])||x7(ore,dre,(function(){return this}));var vre={IteratorPrototype:ore,BUGGY_SAFARI_ITERATORS:pre},gre=vre.IteratorPrototype,yre=function(){return this},mre=E7.PROPER,bre=E7.CONFIGURABLE,wre=vre.IteratorPrototype,Ere=vre.BUGGY_SAFARI_ITERATORS,xre=L8("iterator"),Cre=function(){return this},Dre=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=k9(gre,{next:M5(1,s)}),ste(u,l,!1),dte[l]=yre;var c,f,d=function(e){if(e===o&&y)return y;if(!Ere&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,v=e.prototype,g=v[xre]||v["@@iterator"]||o&&v[o],y=!Ere&&g||d(o),m="Array"==t&&v.entries||g;return m&&(c=fre(m.call(new e)))!==Object.prototype&&c.next&&(fre(c)!==wre&&(ite?ite(c,wre):e8(c[xre])||x7(c,xre,Cre)),ste(c,p,!0)),mre&&"values"==o&&g&&"values"!==g.name&&(bre?Q8(v,"name","values"):(h=!0,y=function(){return I5(g,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||J7({target:t,proto:!0,forced:Ere||h},f)),v[xre]!==y&&x7(v,xre,y,{name:o}),dte[t]=y,f},Sre=y7.set,Are=y7.getterFor("Array Iterator"),Ore=Dre(Array,"Array",(function(e,t){Sre(this,{type:"Array Iterator",target:Q5(e),index:0,kind:t})}),(function(){var e=Are(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");dte.Arguments=dte.Array,F9("keys"),F9("values"),F9("entries");var kre=Pee.charAt,Bre=y7.set,_re=y7.getterFor("String Iterator");Dre(String,"String",(function(e){Bre(this,{type:"String Iterator",string:a9(e),index:0})}),(function(){var e,t=_re(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=kre(n,r),t.index+=e.length,{value:e,done:!1})}));var Fre=function(e,t,n){var r=z8(t);r in e?J8.f(e,r,M5(0,n)):e[r]=n},Tre=F5.Array,Pre=Math.max,jre=M7.f,Ire="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Nre={f:function(e){return Ire&&"Window"==q5(e)?function(e){try{return jre(e)}catch(t){return function(e,t,n){for(var r=F7(e),o=k7(void 0,r),i=k7(r,r),a=Tre(Pre(i-o,0)),u=0;o<i;o++,u++)Fre(a,u,e[o]);return a.length=u,a}(Ire)}}(e):jre(Q5(e))}},Lre=T5((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Rre=Object.isExtensible,Mre=T5((function(){Rre(1)}))||Lre?function(e){return!!t8(e)&&(!Lre||"ArrayBuffer"!=q5(e))&&(!Rre||Rre(e))}:Rre,zre=!T5((function(){return Object.isExtensible(Object.preventExtensions({}))})),$re=O5((function(e){var t=J8.f,n=!1,r=T8("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=M7.f,t=U5([].splice),o={};o[r]=1,e(o).length&&(M7.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},J7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Nre.f}))},fastKey:function(e,t){if(!t8(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!k8(e,r)){if(!Mre(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!k8(e,r)){if(!Mre(e))return!0;
vendor: 50,398 bytes, lines 96-111
96if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return zre&&n&&Mre(e)&&!k8(e,r)&&i(e),e}};l7[r]=!0})),Hre=$re.getWeakData,Vre=y7.set,Ure=y7.getterFor,Wre=Y9.find,Gre=Y9.findIndex,qre=U5([].splice),Kre=0,Xre=function(e){return e.frozen||(e.frozen=new Yre)},Yre=function(){this.entries=[]},Zre=function(e,t){return Wre(e.entries,(function(e){return e[0]===t}))};Yre.prototype={get:function(e){var t=Zre(this,e);if(t)return t[1]},has:function(e){return!!Zre(this,e)},set:function(e,t){var n=Zre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Gre(this.entries,(function(t){return t[0]===e}));return~t&&qre(this.entries,t,1),!!~t}};var Jre,Qre={getConstructor:function(e,t,n,r){var o=e((function(e,o){fte(e,i),Vre(e,{type:t,id:Kre++,frozen:void 0}),null!=o&&xte(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Ure(t),u=function(e,t,n){var r=a(e),o=Hre(X8(t),!0);return!0===o?Xre(r).set(t,n):o[r.id]=n,e};return nte(i,{delete:function(e){var t=a(this);if(!t8(e))return!1;var n=Hre(e);return!0===n?Xre(t).delete(e):n&&k8(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!t8(e))return!1;var n=Hre(e);return!0===n?Xre(t).has(e):n&&k8(n,t.id)}}),nte(i,n?{get:function(e){var t=a(this);if(t8(e)){var n=Hre(e);return!0===n?Xre(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}},eoe=y7.enforce,toe=!F5.ActiveXObject&&"ActiveXObject"in F5,noe=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},roe=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=F5[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=U5(u[e]);x7(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!t8(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!t8(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!t8(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Y7(e,!e8(a)||!(o||u.forEach&&!T5((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),$re.enable();else if(Y7(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=T5((function(){f.has(1)})),h=Fte((function(e){new a(e)})),v=!o&&T5((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){fte(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,ite&&e8(c=o.constructor)&&c!==l&&t8(f=c.prototype)&&f!==l.prototype&&ite(n,f),n);return null!=t&&xte(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,J7({global:!0,forced:s!=a},l),ste(s,e),o||n.setStrong(s,e,r),s}("WeakMap",noe,Qre);if(a7&&toe){Jre=Qre.getConstructor(noe,"WeakMap",!0),$re.enable();var ooe=roe.prototype,ioe=U5(ooe.delete),aoe=U5(ooe.has),uoe=U5(ooe.get),soe=U5(ooe.set);nte(ooe,{delete:function(e){if(t8(e)&&!Mre(e)){var t=eoe(this);return t.frozen||(t.frozen=new Jre),ioe(this,e)||t.frozen.delete(e)}return ioe(this,e)},has:function(e){if(t8(e)&&!Mre(e)){var t=eoe(this);return t.frozen||(t.frozen=new Jre),aoe(this,e)||t.frozen.has(e)}return aoe(this,e)},get:function(e){if(t8(e)&&!Mre(e)){var t=eoe(this);return t.frozen||(t.frozen=new Jre),aoe(this,e)?uoe(this,e):t.frozen.get(e)}return uoe(this,e)},set:function(e,t){if(t8(e)&&!Mre(e)){var n=eoe(this);n.frozen||(n.frozen=new Jre),aoe(this,e)?soe(this,e,t):n.frozen.set(e,t)}else soe(this,e,t);return this}})}var loe={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},coe=V8("span").classList,foe=coe&&coe.constructor&&coe.constructor.prototype,doe=foe===Object.prototype?void 0:foe,poe=L8("iterator"),hoe=L8("toStringTag"),voe=Ore.values,goe=function(e,t){if(e){if(e[poe]!==voe)try{Q8(e,poe,voe)}catch(r){e[poe]=voe}if(e[hoe]||Q8(e,hoe,t),loe[t])for(var n in Ore)if(e[n]!==Ore[n])try{Q8(e,n,Ore[n])}catch(r){e[n]=Ore[n]}}};for(var yoe in loe)goe(F5[yoe]&&F5[yoe].prototype,yoe);goe(doe,"DOMTokenList");var moe=E7.EXISTS,boe=J8.f,woe=Function.prototype,Eoe=U5(woe.toString),xoe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Coe=U5(xoe.exec);P5&&!moe&&boe(woe,"name",{configurable:!0,get:function(){try{return Coe(xoe,Eoe(this))[1]}catch(Et){return""}}});var Doe=L8("species"),Soe=c8>=51||!T5((function(){var e=[];return(e.constructor={})[Doe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Aoe=L8("species"),Ooe=F5.Array,koe=Math.max;function Boe(e){return e.getMenuConfig("uploadVideo")}J7({target:"Array",proto:!0,forced:!Soe},{slice:function(e,t){var n,r,o,i=Q5(this),a=F7(i),u=k7(e,a),s=k7(void 0===t?a:t,a);if(N9(i)&&(n=i.constructor,(U9(n)&&(n===Ooe||N9(n.prototype))||t8(n)&&null===(n=n[Aoe]))&&(n=void 0),n===Ooe||void 0===n))return jte(i,u,s);for(r=new(void 0===n?Ooe:n)(koe(s-u,0)),o=0;u<s;u++,o++)u in i&&Fre(r,o,i[u]);return r.length=o,r}});var _oe=new WeakMap;function Foe(e,t){return C5(this,0,void 0,(function(){var n,r,o,i;return D5(this,(function(a){switch(a.label){case 0:return n=function(e){var t=_oe.get(e);if(null!=t)return t;var n=Boe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=PP(x5(x5({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Jne(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;Jne(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),_oe.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 Toe=function(){function e(){this.title=Sj("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return Jne(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Xh("body"),s=Xh('<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;C5(this,0,void 0,(function(){var o,i,a,u,s,l;return D5(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Boe(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return Jne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Foe(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||!lp.isCollapsed(t)||!!zk.getSelectedElems(e).some((function(t){var n=zk.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Poe=E7.PROPER,joe=RegExp.prototype,Ioe=joe.toString,Noe=U5(oee),Loe=T5((function(){return"/a/b"!=Ioe.call({source:"a",flags:"b"})})),Roe=Poe&&"toString"!=Ioe.name;function Moe(){return ete("w-e-insert-video")}(Loe||Roe)&&x7(RegExp.prototype,"toString",(function(){var e=X8(this),t=a9(e.source),n=e.flags;return"/"+t+"/"+a9(void 0===n&&o8(joe,e)&&!("flags"in joe)?Noe(e):n)}),{unsafe:!0});var zoe=function(){function e(){this.title=Sj("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Moe(),this.heightInputId=Moe(),this.buttonId=Moe()}return e.prototype.getSelectedVideoNode=function(e){return zk.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=S5(lP(Sj("videoModule.width"),n,"auto"),2),a=i[0],u=Xh(i[1]),s=S5(lP(Sj("videoModule.height"),r,"auto"),2),l=s[0],c=Xh(s[1]),f=S5(cP(o,Sj("videoModule.ok")),1)[0];if(null==this.$content){var d=Xh("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),jp.setNodes(e,{width:s,height:l},{match:function(e){return zk.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.width,g=void 0===v?"auto":v,y=h.height,m=void 0===y?"auto":y;return u.val(g),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),$oe={renderElems:[m9],elemsToHtml:[b9],preParseHtml:[P9],parseElemsHtml:[ree],menus:[{key:"insertVideo",factory:function(){return new ere},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Toe},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 zoe}}],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=S5(e,2),o=t[0],i=t[1];return"video"===zk.getNodeType(o)&&zk.isLastNode(r,o)&&jp.insertNodes(r,zk.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};Dj("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Dj("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Hoe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Voe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Uoe,Woe,Goe=function(e){return e&&e.Math==Math&&e},qoe=Goe("object"==typeof globalThis&&globalThis)||Goe("object"==typeof window&&window)||Goe("object"==typeof self&&self)||Goe("object"==typeof Hoe&&Hoe)||function(){return this}()||Function("return this")(),Koe=function(e){try{return!!e()}catch(t){return!0}},Xoe=!Koe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Yoe=Function.prototype.call,Zoe=Yoe.bind?Yoe.bind(Yoe):function(){return Yoe.apply(Yoe,arguments)},Joe={}.propertyIsEnumerable,Qoe=Object.getOwnPropertyDescriptor,eie={f:Qoe&&!Joe.call({1:2},1)?function(e){var t=Qoe(this,e);return!!t&&t.enumerable}:Joe},tie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nie=Function.prototype,rie=nie.bind,oie=nie.call,iie=rie&&rie.bind(oie),aie=rie?function(e){return e&&iie(oie,e)}:function(e){return e&&function(){return oie.apply(e,arguments)}},uie=aie({}.toString),sie=aie("".slice),lie=function(e){return sie(uie(e),8,-1)},cie=qoe.Object,fie=aie("".split),die=Koe((function(){return!cie("z").propertyIsEnumerable(0)}))?function(e){return"String"==lie(e)?fie(e,""):cie(e)}:cie,pie=qoe.TypeError,hie=function(e){if(null==e)throw pie("Can't call method on "+e);return e},vie=function(e){return die(hie(e))},gie=function(e){return"function"==typeof e},yie=function(e){return"object"==typeof e?null!==e:gie(e)},mie=function(e){return gie(e)?e:void 0},bie=function(e,t){return arguments.length<2?mie(qoe[e]):qoe[e]&&qoe[e][t]},wie=aie({}.isPrototypeOf),Eie=bie("navigator","userAgent")||"",xie=qoe.process,Cie=qoe.Deno,Die=xie&&xie.versions||Cie&&Cie.version,Sie=Die&&Die.v8;Sie&&(Woe=(Uoe=Sie.split("."))[0]>0&&Uoe[0]<4?1:+(Uoe[0]+Uoe[1])),!Woe&&Eie&&(!(Uoe=Eie.match(/Edge\/(\d+)/))||Uoe[1]>=74)&&(Uoe=Eie.match(/Chrome\/(\d+)/))&&(Woe=+Uoe[1]);var Aie=Woe,Oie=!!Object.getOwnPropertySymbols&&!Koe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Aie&&Aie<41})),kie=Oie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Bie=qoe.Object,_ie=kie?function(e){return"symbol"==typeof e}:function(e){var t=bie("Symbol");return gie(t)&&wie(t.prototype,Bie(e))},Fie=qoe.String,Tie=function(e){try{return Fie(e)}catch(t){return"Object"}},Pie=qoe.TypeError,jie=function(e){if(gie(e))return e;throw Pie(Tie(e)+" is not a function")},Iie=function(e,t){var n=e[t];return null==n?void 0:jie(n)},Nie=qoe.TypeError,Lie=Object.defineProperty,Rie=function(e,t){try{Lie(qoe,e,{value:t,configurable:!0,writable:!0})}catch(Oj){qoe[e]=t}return t},Mie=qoe["__core-js_shared__"]||Rie("__core-js_shared__",{}),zie=Voe((function(e){(e.exports=function(e,t){return Mie[e]||(Mie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),$ie=qoe.Object,Hie=function(e){return $ie(hie(e))},Vie=aie({}.hasOwnProperty),Uie=Object.hasOwn||function(e,t){return Vie(Hie(e),t)},Wie=0,Gie=Math.random(),qie=aie(1..toString),Kie=function(e){return"Symbol("+(void 0===e?"":e)+")_"+qie(++Wie+Gie,36)},Xie=zie("wks"),Yie=qoe.Symbol,Zie=Yie&&Yie.for,Jie=kie?Yie:Yie&&Yie.withoutSetter||Kie,Qie=function(e){if(!Uie(Xie,e)||!Oie&&"string"!=typeof Xie[e]){var t="Symbol."+e;Oie&&Uie(Yie,e)?Xie[e]=Yie[e]:Xie[e]=kie&&Zie?Zie(t):Jie(t)}return Xie[e]},eae=qoe.TypeError,tae=Qie("toPrimitive"),nae=function(e){var t=function(e,t){if(!yie(e)||_ie(e))return e;var n,r=Iie(e,tae);if(r){if(n=Zoe(r,e,"string"),!yie(n)||_ie(n))return n;throw eae("Can't convert object to primitive value")}return function(e,t){var n,r;if(gie(n=e.toString)&&!yie(r=Zoe(n,e)))return r;if(gie(n=e.valueOf)&&!yie(r=Zoe(n,e)))return r;throw Nie("Can't convert object to primitive value")}(e)}(e);return _ie(t)?t:t+""},rae=qoe.document,oae=yie(rae)&&yie(rae.createElement),iae=function(e){return oae?rae.createElement(e):{}},aae=!Xoe&&!Koe((function(){return 7!=Object.defineProperty(iae("div"),"a",{get:function(){return 7}}).a})),uae=Object.getOwnPropertyDescriptor,sae={f:Xoe?uae:function(e,t){if(e=vie(e),t=nae(t),aae)try{return uae(e,t)}catch(n){}if(Uie(e,t))return tie(!Zoe(eie.f,e,t),e[t])}},lae=qoe.String,cae=qoe.TypeError,fae=function(e){if(yie(e))return e;throw cae(lae(e)+" is not an object")},dae=qoe.TypeError,pae=Object.defineProperty,hae={f:Xoe?pae:function(e,t,n){if(fae(e),t=nae(t),fae(n),aae)try{return pae(e,t,n)}catch(r){}if("get"in n||"set"in n)throw dae("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},vae=Xoe?function(e,t,n){return hae.f(e,t,tie(1,n))}:function(e,t,n){return e[t]=n,e},gae=aie(Function.toString);gie(Mie.inspectSource)||(Mie.inspectSource=function(e){return gae(e)});var yae,mae,bae,wae=Mie.inspectSource,Eae=qoe.WeakMap,xae=gie(Eae)&&/native code/.test(wae(Eae)),Cae=zie("keys"),Dae=function(e){return Cae[e]||(Cae[e]=Kie(e))},Sae={},Aae=qoe.TypeError,Oae=qoe.WeakMap;if(xae||Mie.state){var kae=Mie.state||(Mie.state=new Oae),Bae=aie(kae.get),_ae=aie(kae.has),Fae=aie(kae.set);yae=function(e,t){if(_ae(kae,e))throw new Aae("Object already initialized");return t.facade=e,Fae(kae,e,t),t},mae=function(e){return Bae(kae,e)||{}},bae=function(e){return _ae(kae,e)}}else{var Tae=Dae("state");Sae[Tae]=!0,yae=function(e,t){if(Uie(e,Tae))throw new Aae("Object already initialized");return t.facade=e,vae(e,Tae,t),t},mae=function(e){return Uie(e,Tae)?e[Tae]:{}},bae=function(e){return Uie(e,Tae)}}var Pae={set:yae,get:mae,has:bae,enforce:function(e){return bae(e)?mae(e):yae(e,{})},getterFor:function(e){return function(t){var n;if(!yie(t)||(n=mae(t)).type!==e)throw Aae("Incompatible receiver, "+e+" required");return n}}},jae=Function.prototype,Iae=Xoe&&Object.getOwnPropertyDescriptor,Nae=Uie(jae,"name"),Lae={EXISTS:Nae,PROPER:Nae&&"something"===function(){}.name,CONFIGURABLE:Nae&&(!Xoe||Xoe&&Iae(jae,"name").configurable)},Rae=Voe((function(e){var t=Lae.CONFIGURABLE,n=Pae.get,r=Pae.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;gie(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Uie(i,"name")||t&&i.name!==f)&&vae(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==qoe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:vae(e,n,i)):l?e[n]=i:Rie(n,i)})(Function.prototype,"toString",(function(){return gie(this)&&n(this).source||wae(this)}))})),Mae=Math.ceil,zae=Math.floor,$ae=function(e){var t=+e;return t!=t||0===t?0:(t>0?zae:Mae)(t)},Hae=Math.max,Vae=Math.min,Uae=function(e,t){var n=$ae(e);return n<0?Hae(n+t,0):Vae(n,t)},Wae=Math.min,Gae=function(e){return e>0?Wae($ae(e),9007199254740991):0},qae=function(e){return Gae(e.length)},Kae=function(e){return function(t,n,r){var o,i=vie(t),a=qae(i),u=Uae(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}}(!1),Xae=aie([].push),Yae=function(e,t){var n,r=vie(e),o=0,i=[];for(n in r)!Uie(Sae,n)&&Uie(r,n)&&Xae(i,n);for(;t.length>o;)Uie(r,n=t[o++])&&(~Kae(i,n)||Xae(i,n));return i},Zae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jae=Zae.concat("length","prototype"),Qae={f:Object.getOwnPropertyNames||function(e){return Yae(e,Jae)}},eue={f:Object.getOwnPropertySymbols},tue=aie([].concat),nue=bie("Reflect","ownKeys")||function(e){var t=Qae.f(fae(e)),n=eue.f;return n?tue(t,n(e)):t},rue=function(e,t){for(var n=nue(t),r=hae.f,o=sae.f,i=0;i<n.length;i++){var a=n[i];Uie(e,a)||r(e,a,o(t,a))}},oue=/#|\.prototype\./,iue=function(e,t){var n=uue[aue(e)];return n==lue||n!=sue&&(gie(t)?Koe(t):!!t)},aue=iue.normalize=function(e){return String(e).replace(oue,".").toLowerCase()},uue=iue.data={},sue=iue.NATIVE="N",lue=iue.POLYFILL="P",cue=iue,fue=sae.f,due=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?qoe:l?qoe[u]||Rie(u,{}):(qoe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=fue(n,r))&&a.value:n[r],!cue(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;rue(i,o)}(e.sham||o&&o.sham)&&vae(i,"sham",!0),Rae(n,r,i,e)}},pue=Array.isArray||function(e){return"Array"==lie(e)},hue={};hue[Qie("toStringTag")]="z";var vue="[object z]"===String(hue),gue=Qie("toStringTag"),yue=qoe.Object,mue="Arguments"==lie(function(){return arguments}()),bue=vue?lie: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(n){}}(t=yue(e),gue))?n:mue?lie(t):"Object"==(r=lie(t))&&gie(t.callee)?"Arguments":r},wue=function(){},Eue=[],xue=bie("Reflect","construct"),Cue=/^\s*(?:class|function)\b/,Due=aie(Cue.exec),Sue=!Cue.exec(wue),Aue=function(e){if(!gie(e))return!1;try{return xue(wue,Eue,e),!0}catch(t){return!1}},Oue=!xue||Koe((function(){var e;return Aue(Aue.call)||!Aue(Object)||!Aue((function(){e=!0}))||e}))?function(e){if(!gie(e))return!1;switch(bue(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Sue||!!Due(Cue,wae(e))}:Aue,kue=function(e,t,n){var r=nae(t);r in e?hae.f(e,r,tie(0,n)):e[r]=n},Bue=Qie("species"),_ue=aie([].slice),Fue=Aie>=51||!Koe((function(){var e=[];return(e.constructor={})[Bue]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Tue=Qie("species"),Pue=qoe.Array,jue=Math.max;due({target:"Array",proto:!0,forced:!Fue},{slice:function(e,t){var n,r,o,i=vie(this),a=qae(i),u=Uae(e,a),s=Uae(void 0===t?a:t,a);if(pue(i)&&(n=i.constructor,(Oue(n)&&(n===Pue||pue(n.prototype))||yie(n)&&null===(n=n[Tue]))&&(n=void 0),n===Pue||void 0===n))return _ue(i,u,s);for(r=new(void 0===n?Pue:n)(jue(s-u,0)),o=0;u<s;u++,o++)u in i&&kue(r,o,i[u]);return r.length=o,r}});var Iue=vue?{}.toString:function(){return"[object "+bue(this)+"]"};vue||Rae(Object.prototype,"toString",Iue,{unsafe:!0});var Nue,Lue=qoe.String,Rue=function(e){if("Symbol"===bue(e))throw TypeError("Cannot convert a Symbol value to a string");return Lue(e)},Mue=function(){var e=fae(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},zue=qoe.RegExp,$ue=Koe((function(){var e=zue("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));$ue||Koe((function(){return!zue("a","y").sticky}));var Hue={BROKEN_CARET:$ue||Koe((function(){var e=zue("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:$ue},Vue=Object.keys||function(e){return Yae(e,Zae)},Uue=Xoe?Object.defineProperties:function(e,t){fae(e);for(var n,r=vie(t),o=Vue(t),i=o.length,a=0;i>a;)hae.f(e,n=o[a++],r[n]);return e},Wue=bie("document","documentElement"),Gue=Dae("IE_PROTO"),que=function(){},Kue=function(e){return"<script>"+e+"<\/script>"},Xue=function(e){e.write(Kue("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yue=function(){try{Nue=new ActiveXObject("htmlfile")}catch(r){}var e,t;Yue="undefined"!=typeof document?document.domain&&Nue?Xue(Nue):((t=iae("iframe")).style.display="none",Wue.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Kue("document.F=Object")),e.close(),e.F):Xue(Nue);for(var n=Zae.length;n--;)delete Yue.prototype[Zae[n]];return Yue()};Sae[Gue]=!0;var Zue,Jue,Que=Object.create||function(e,t){var n;return null!==e?(que.prototype=fae(e),n=new que,que.prototype=null,n[Gue]=e):n=Yue(),void 0===t?n:Uue(n,t)},ese=qoe.RegExp,tse=Koe((function(){var e=ese(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),nse=qoe.RegExp,rse=Koe((function(){var e=nse("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ose=Pae.get,ise=zie("native-string-replace",String.prototype.replace),ase=RegExp.prototype.exec,use=ase,sse=aie("".charAt),lse=aie("".indexOf),cse=aie("".replace),fse=aie("".slice),dse=(Jue=/b*/g,Zoe(ase,Zue=/a/,"a"),Zoe(ase,Jue,"a"),0!==Zue.lastIndex||0!==Jue.lastIndex),pse=Hue.BROKEN_CARET,hse=void 0!==/()??/.exec("")[1];(dse||hse||pse||tse||rse)&&(use=function(e){var t,n,r,o,i,a,u,s=this,l=ose(s),c=Rue(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Zoe(use,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=pse&&s.sticky,h=Zoe(Mue,s),v=s.source,g=0,y=c;if(p&&(h=cse(h,"y",""),-1===lse(h,"g")&&(h+="g"),y=fse(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==sse(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),hse&&(n=new RegExp("^"+v+"$(?!\\s)",h)),dse&&(r=s.lastIndex),o=Zoe(ase,p?n:s,y),p?o?(o.input=fse(o.input,g),o[0]=fse(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:dse&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),hse&&o&&o.length>1&&Zoe(ise,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=Que(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var vse=use;due({target:"RegExp",proto:!0,forced:/./.exec!==vse},{exec:vse});var gse=Function.prototype,yse=gse.apply,mse=gse.bind,bse=gse.call,wse="object"==typeof Reflect&&Reflect.apply||(mse?bse.bind(yse):function(){return bse.apply(yse,arguments)}),Ese=Qie("species"),xse=RegExp.prototype,Cse=Qie("match"),Dse=qoe.TypeError,Sse=Qie("species"),Ase=function(e,t){var n,r=fae(e).constructor;return void 0===r||null==(n=fae(r)[Sse])?t:function(e){if(Oue(e))return e;throw Dse(Tie(e)+" is not a constructor")}(n)},Ose=aie("".charAt),kse=aie("".charCodeAt),Bse=aie("".slice),_se={charAt:function(e){return function(t,n){var r,o,i=Rue(hie(t)),a=$ae(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=kse(i,a))<55296||r>56319||a+1===u||(o=kse(i,a+1))<56320||o>57343?e?Ose(i,a):r:e?Bse(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},Fse=_se.charAt,Tse=function(e,t,n){return t+(n?Fse(e,t).length:1)},Pse=qoe.Array,jse=Math.max,Ise=function(e,t,n){for(var r=qae(e),o=Uae(t,r),i=Uae(void 0===n?r:n,r),a=Pse(jse(i-o,0)),u=0;o<i;o++,u++)kue(a,u,e[o]);return a.length=u,a},Nse=qoe.TypeError,Lse=function(e,t){var n=e.exec;if(gie(n)){var r=Zoe(n,e,t);return null!==r&&fae(r),r}if("RegExp"===lie(e))return Zoe(vse,e,t);throw Nse("RegExp#exec called on incompatible receiver")},Rse=Hue.UNSUPPORTED_Y,Mse=Math.min,zse=[].push,$se=aie(/./.exec),Hse=aie(zse),Vse=aie("".slice);!function(e,t,n,r){var o,i,a,u=Qie(e),s=!Koe((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Koe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Ese]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=aie(/./[u]),f=(o=u,i=""[e],a="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,t){var n,r,o=Rue(hie(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!yie(n=e)||!(void 0!==(r=n[Cse])?r:"RegExp"==lie(n)))return Zoe(i,o,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=Zoe(vse,p,o))&&!((s=p.lastIndex)>d&&(Hse(c,Vse(o,d,u.index)),u.length>1&&u.index<o.length&&wse(zse,c,Ise(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&$se(p,"")||Hse(c,""):Hse(c,Vse(o,d)),c.length>a?Ise(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Zoe(i,this,e,t)}:i,[function(e,t){var n=hie(this),r=null==e?void 0:Iie(e,o);return r?Zoe(r,e,n,t):Zoe(a,Rue(n),e,t)},function(e,t){var n=fae(this),r=Rue(e),o=function(e,t,n,r,o){var i=aie(e),a=t.exec;return a===vse||a===xse.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u=Ase(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Rse?"g":"y"),d=new u(Rse?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===Lse(d,r)?[r]:[];for(var h=0,v=0,g=[];v<r.length;){d.lastIndex=Rse?0:v;var y,m=Lse(d,Rse?Vse(r,v):r);if(null===m||(y=Mse(Gae(d.lastIndex+(Rse?v:0)),r.length))===h)v=Tse(r,v,l);else{if(Hse(g,Vse(r,h,v)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(Hse(g,m[b]),g.length===p)return g;v=h=y}}return Hse(g,Vse(r,h)),g}]);Rae(String.prototype,e,f[0]),Rae(xse,u,f[1])}r&&vae(xse[u],"sham",!0)}("split",0,!!Koe((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]})),Rse);
97/*! *****************************************************************************
98Copyright (c) Microsoft Corporation.
99
100Permission to use, copy, modify, and/or distribute this software for any
101purpose with or without fee is hereby granted.
102
103THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
104REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
105AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
106INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
107LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
108OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
109PERFORMANCE OF THIS SOFTWARE.
110***************************************************************************** */
111var Use=function(){return Use=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},Use.apply(this,arguments)};function Wse(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function Gse(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var qse=Qie("unscopables"),Kse=Array.prototype;null==Kse[qse]&&hae.f(Kse,qse,{configurable:!0,value:Que(null)});var Xse,Yse,Zse,Jse=function(e){Kse[qse][e]=!0},Qse={},ele=!Koe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tle=Dae("IE_PROTO"),nle=qoe.Object,rle=nle.prototype,ole=ele?nle.getPrototypeOf:function(e){var t=Hie(e);if(Uie(t,tle))return t[tle];var n=t.constructor;return gie(n)&&t instanceof n?n.prototype:t instanceof nle?rle:null},ile=Qie("iterator"),ale=!1;[].keys&&("next"in(Zse=[].keys())?(Yse=ole(ole(Zse)))!==Object.prototype&&(Xse=Yse):ale=!0);var ule=null==Xse||Koe((function(){var e={};return Xse[ile].call(e)!==e}));ule&&(Xse={}),gie(Xse[ile])||Rae(Xse,ile,(function(){return this}));var sle={IteratorPrototype:Xse,BUGGY_SAFARI_ITERATORS:ale},lle=hae.f,cle=Qie("toStringTag"),fle=function(e,t,n){e&&!Uie(e=n?e:e.prototype,cle)&&lle(e,cle,{configurable:!0,value:t})},dle=sle.IteratorPrototype,ple=function(){return this},hle=qoe.String,vle=qoe.TypeError,gle=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=aie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return fae(n),function(e){if("object"==typeof e||gie(e))return e;throw vle("Can't set "+hle(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),yle=Lae.PROPER,mle=Lae.CONFIGURABLE,ble=sle.IteratorPrototype,wle=sle.BUGGY_SAFARI_ITERATORS,Ele=Qie("iterator"),xle=function(){return this},Cle=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Que(dle,{next:tie(1,s)}),fle(u,l,!1),Qse[l]=ple;var c,f,d=function(e){if(e===o&&y)return y;if(!wle&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,v=e.prototype,g=v[Ele]||v["@@iterator"]||o&&v[o],y=!wle&&g||d(o),m="Array"==t&&v.entries||g;return m&&(c=ole(m.call(new e)))!==Object.prototype&&c.next&&(ole(c)!==ble&&(gle?gle(c,ble):gie(c[Ele])||Rae(c,Ele,xle)),fle(c,p,!0)),yle&&"values"==o&&g&&"values"!==g.name&&(mle?vae(v,"name","values"):(h=!0,y=function(){return Zoe(g,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||due({target:t,proto:!0,forced:wle||h},f)),v[Ele]!==y&&Rae(v,Ele,y,{name:o}),Qse[t]=y,f},Dle=Pae.set,Sle=Pae.getterFor("Array Iterator"),Ale=Cle(Array,"Array",(function(e,t){Dle(this,{type:"Array Iterator",target:vie(e),index:0,kind:t})}),(function(){var e=Sle(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");Qse.Arguments=Qse.Array,Jse("keys"),Jse("values"),Jse("entries");var Ole=_se.charAt,kle=Pae.set,Ble=Pae.getterFor("String Iterator");Cle(String,"String",(function(e){kle(this,{type:"String Iterator",string:Rue(e),index:0})}),(function(){var e,t=Ble(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ole(n,r),t.index+=e.length,{value:e,done:!1})}));var _le=function(e,t,n){for(var r in t)Rae(e,r,t[r],n);return e},Fle=Qae.f,Tle="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ple={f:function(e){return Tle&&"Window"==lie(e)?function(e){try{return Fle(e)}catch(t){return Ise(Tle)}}(e):Fle(vie(e))}},jle=Koe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ile=Object.isExtensible,Nle=Koe((function(){Ile(1)}))||jle?function(e){return!!yie(e)&&(!jle||"ArrayBuffer"!=lie(e))&&(!Ile||Ile(e))}:Ile,Lle=!Koe((function(){return Object.isExtensible(Object.preventExtensions({}))})),Rle=Voe((function(e){var t=hae.f,n=!1,r=Kie("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=Qae.f,t=aie([].splice),o={};o[r]=1,e(o).length&&(Qae.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},due({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ple.f}))},fastKey:function(e,t){if(!yie(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Uie(e,r)){if(!Nle(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Uie(e,r)){if(!Nle(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Lle&&n&&Nle(e)&&!Uie(e,r)&&i(e),e}};Sae[r]=!0})),Mle=aie(aie.bind),zle=function(e,t){return jie(e),void 0===t?e:Mle?Mle(e,t):function(){return e.apply(t,arguments)}},$le=Qie("iterator"),Hle=Array.prototype,Vle=Qie("iterator"),Ule=function(e){if(null!=e)return Iie(e,Vle)||Iie(e,"@@iterator")||Qse[bue(e)]},Wle=qoe.TypeError,Gle=function(e,t,n){var r,o;fae(e);try{if(!(r=Iie(e,"return"))){if("throw"===t)throw n;return n}r=Zoe(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return fae(r),n},qle=qoe.TypeError,Kle=function(e,t){this.stopped=e,this.result=t},Xle=Kle.prototype,Yle=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),v=zle(t,f),g=function(e){return r&&Gle(r,"normal",e),new Kle(!0,e)},y=function(e){return d?(fae(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=Ule(e)))throw qle(Tie(e)+" is not iterable");if(void 0!==(c=o)&&(Qse.Array===c||Hle[$le]===c)){for(i=0,a=qae(e);a>i;i++)if((u=y(e[i]))&&wie(Xle,u))return u;return new Kle(!1)}r=function(e,t){var n=arguments.length<2?Ule(e):t;if(jie(n))return fae(Zoe(n,e));throw Wle(Tie(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Zoe(s,r)).done;){try{u=y(l.value)}catch(m){Gle(r,"throw",m)}if("object"==typeof u&&u&&wie(Xle,u))return u}return new Kle(!1)},Zle=qoe.TypeError,Jle=function(e,t){if(wie(t,e))return e;throw Zle("Incorrect invocation")},Qle=Qie("iterator"),ece=!1;try{var tce=0,nce={next:function(){return{done:!!tce++}},return:function(){ece=!0}};nce[Qle]=function(){return this},Array.from(nce,(function(){throw 2}))}catch(Dme){}var rce=function(e,t){if(!ece)return!1;var n=!1;try{var r={};r[Qle]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},oce=Qie("species"),ice=qoe.Array,ace=function(e,t){return new(pue(n=e)&&(r=n.constructor,(Oue(r)&&(r===ice||pue(r.prototype))||yie(r)&&null===(r=r[oce]))&&(r=void 0)),void 0===r?ice:r)(0===t?0:t);var n,r},uce=aie([].push),sce=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=Hie(s),v=die(h),g=zle(l,c),y=qae(v),m=0,b=f||ace,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:uce(w,d)}else switch(e){case 4:return!1;case 7:uce(w,d)}return i?-1:r||o?o:w}},lce={forEach:sce(0),find:sce(5),findIndex:sce(6)},cce=Rle.getWeakData,fce=Pae.set,dce=Pae.getterFor,pce=lce.find,hce=lce.findIndex,vce=aie([].splice),gce=0,yce=function(e){return e.frozen||(e.frozen=new mce)},mce=function(){this.entries=[]},bce=function(e,t){return pce(e.entries,(function(e){return e[0]===t}))};mce.prototype={get:function(e){var t=bce(this,e);if(t)return t[1]},has:function(e){return!!bce(this,e)},set:function(e,t){var n=bce(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=hce(this.entries,(function(t){return t[0]===e}));return~t&&vce(this.entries,t,1),!!~t}};var wce,Ece={getConstructor:function(e,t,n,r){var o=e((function(e,o){Jle(e,i),fce(e,{type:t,id:gce++,frozen:void 0}),null!=o&&Yle(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=dce(t),u=function(e,t,n){var r=a(e),o=cce(fae(t),!0);return!0===o?yce(r).set(t,n):o[r.id]=n,e};return _le(i,{delete:function(e){var t=a(this);if(!yie(e))return!1;var n=cce(e);return!0===n?yce(t).delete(e):n&&Uie(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!yie(e))return!1;var n=cce(e);return!0===n?yce(t).has(e):n&&Uie(n,t.id)}}),_le(i,n?{get:function(e){var t=a(this);if(yie(e)){var n=cce(e);return!0===n?yce(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}},xce=Pae.enforce,Cce=!qoe.ActiveXObject&&"ActiveXObject"in qoe,Dce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Sce=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=qoe[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=aie(u[e]);Rae(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!yie(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!yie(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!yie(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(cue(e,!gie(a)||!(o||u.forEach&&!Koe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Rle.enable();else if(cue(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Koe((function(){f.has(1)})),h=rce((function(e){new a(e)})),v=!o&&Koe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Jle(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,gle&&gie(c=o.constructor)&&c!==l&&yie(f=c.prototype)&&f!==l.prototype&&gle(n,f),n);return null!=t&&Yle(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,due({global:!0,forced:s!=a},l),fle(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Dce,Ece);if(xae&&Cce){wce=Ece.getConstructor(Dce,"WeakMap",!0),Rle.enable();var Ace=Sce.prototype,Oce=aie(Ace.delete),kce=aie(Ace.has),Bce=aie(Ace.get),_ce=aie(Ace.set);_le(Ace,{delete:function(e){if(yie(e)&&!Nle(e)){var t=xce(this);return t.frozen||(t.frozen=new wce),Oce(this,e)||t.frozen.delete(e)}return Oce(this,e)},has:function(e){if(yie(e)&&!Nle(e)){var t=xce(this);return t.frozen||(t.frozen=new wce),kce(this,e)||t.frozen.has(e)}return kce(this,e)},get:function(e){if(yie(e)&&!Nle(e)){var t=xce(this);return t.frozen||(t.frozen=new wce),kce(this,e)?Bce(this,e):t.frozen.get(e)}return Bce(this,e)},set:function(e,t){if(yie(e)&&!Nle(e)){var n=xce(this);n.frozen||(n.frozen=new wce),kce(this,e)?_ce(this,e,t):n.frozen.set(e,t)}else _ce(this,e,t);return this}})}var Fce={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},Tce=iae("span").classList,Pce=Tce&&Tce.constructor&&Tce.constructor.prototype,jce=Pce===Object.prototype?void 0:Pce,Ice=Qie("iterator"),Nce=Qie("toStringTag"),Lce=Ale.values,Rce=function(e,t){if(e){if(e[Ice]!==Lce)try{vae(e,Ice,Lce)}catch(r){e[Ice]=Lce}if(e[Nce]||vae(e,Nce,t),Fce[t])for(var n in Ale)if(e[n]!==Ale[n])try{vae(e,n,Ale[n])}catch(r){e[n]=Ale[n]}}};for(var Mce in Fce)Rce(qoe[Mce]&&qoe[Mce].prototype,Mce);Rce(jce,"DOMTokenList");var zce=function(e,t){var n=[][e];return!!n&&Koe((function(){n.call(null,t||function(){throw 1},1)}))},$ce=lce.forEach,Hce=zce("forEach")?[].forEach:function(e){return $ce(this,e,arguments.length>1?arguments[1]:void 0)},Vce=function(e){if(e&&e.forEach!==Hce)try{vae(e,"forEach",Hce)}catch(t){e.forEach=Hce}};for(var Uce in Fce)Fce[Uce]&&Vce(qoe[Uce]&&qoe[Uce].prototype);Vce(jce);var Wce,Gce,qce,Kce,Xce=qoe.Promise,Yce=Qie("species"),Zce=/(?:ipad|iphone|ipod).*applewebkit/i.test(Eie),Jce="process"==lie(qoe.process),Qce=qoe.setImmediate,efe=qoe.clearImmediate,tfe=qoe.process,nfe=qoe.Dispatch,rfe=qoe.Function,ofe=qoe.MessageChannel,ife=qoe.String,afe=0,ufe={};try{Wce=qoe.location}catch(Dme){}var sfe=function(e){if(Uie(ufe,e)){var t=ufe[e];delete ufe[e],t()}},lfe=function(e){return function(){sfe(e)}},cfe=function(e){sfe(e.data)},ffe=function(e){qoe.postMessage(ife(e),Wce.protocol+"//"+Wce.host)};Qce&&efe||(Qce=function(e){var t=_ue(arguments,1);return ufe[++afe]=function(){wse(gie(e)?e:rfe(e),void 0,t)},Gce(afe),afe},efe=function(e){delete ufe[e]},Jce?Gce=function(e){tfe.nextTick(lfe(e))}:nfe&&nfe.now?Gce=function(e){nfe.now(lfe(e))}:ofe&&!Zce?(Kce=(qce=new ofe).port2,qce.port1.onmessage=cfe,Gce=zle(Kce.postMessage,Kce)):qoe.addEventListener&&gie(qoe.postMessage)&&!qoe.importScripts&&Wce&&"file:"!==Wce.protocol&&!Koe(ffe)?(Gce=ffe,qoe.addEventListener("message",cfe,!1)):Gce="onreadystatechange"in iae("script")?function(e){Wue.appendChild(iae("script")).onreadystatechange=function(){Wue.removeChild(this),sfe(e)}}:function(e){setTimeout(lfe(e),0)});var dfe,pfe,hfe,vfe,gfe,yfe,mfe,bfe,wfe={set:Qce},Efe=/ipad|iphone|ipod/i.test(Eie)&&void 0!==qoe.Pebble,xfe=/web0s(?!.*chrome)/i.test(Eie),Cfe=sae.f,Dfe=wfe.set,Sfe=qoe.MutationObserver||qoe.WebKitMutationObserver,Afe=qoe.document,Ofe=qoe.process,kfe=qoe.Promise,Bfe=Cfe(qoe,"queueMicrotask"),_fe=Bfe&&Bfe.value;_fe||(dfe=function(){var e,t;for(Jce&&(e=Ofe.domain)&&e.exit();pfe;){t=pfe.fn,pfe=pfe.next;try{t()}catch(n){throw pfe?vfe():hfe=void 0,n}}hfe=void 0,e&&e.enter()},Zce||Jce||xfe||!Sfe||!Afe?!Efe&&kfe&&kfe.resolve?((mfe=kfe.resolve(void 0)).constructor=kfe,bfe=zle(mfe.then,mfe),vfe=function(){bfe(dfe)}):Jce?vfe=function(){Ofe.nextTick(dfe)}:(Dfe=zle(Dfe,qoe),vfe=function(){Dfe(dfe)}):(gfe=!0,yfe=Afe.createTextNode(""),new Sfe(dfe).observe(yfe,{characterData:!0}),vfe=function(){yfe.data=gfe=!gfe}));var Ffe,Tfe,Pfe,jfe,Ife=_fe||function(e){var t={fn:e,next:void 0};hfe&&(hfe.next=t),pfe||(pfe=t,vfe()),hfe=t},Nfe=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=jie(t),this.reject=jie(n)},Lfe={f:function(e){return new Nfe(e)}},Rfe=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Mfe="object"==typeof window,zfe=wfe.set,$fe=Qie("species"),Hfe="Promise",Vfe=Pae.getterFor(Hfe),Ufe=Pae.set,Wfe=Pae.getterFor(Hfe),Gfe=Xce&&Xce.prototype,qfe=Xce,Kfe=Gfe,Xfe=qoe.TypeError,Yfe=qoe.document,Zfe=qoe.process,Jfe=Lfe.f,Qfe=Jfe,ede=!!(Yfe&&Yfe.createEvent&&qoe.dispatchEvent),tde=gie(qoe.PromiseRejectionEvent),nde=!1,rde=cue(Hfe,(function(){var e=wae(qfe),t=e!==String(qfe);if(!t&&66===Aie)return!0;if(Aie>=51&&/native code/.test(e))return!1;var n=new qfe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[$fe]=r,!(nde=n.then((function(){}))instanceof r)||!t&&Mfe&&!tde})),ode=rde||!rce((function(e){qfe.all(e).catch((function(){}))})),ide=function(e){var t;return!(!yie(e)||!gie(t=e.then))&&t},ade=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ife((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&&cde(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Xfe("Promise-chain cycle")):(u=ide(a))?Zoe(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&sde(e)}))}},ude=function(e,t,n){var r,o;ede?((r=Yfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),qoe.dispatchEvent(r)):r={promise:t,reason:n},!tde&&(o=qoe["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=qoe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},sde=function(e){Zoe(zfe,qoe,(function(){var t,n=e.facade,r=e.value;if(lde(e)&&(t=Rfe((function(){Jce?Zfe.emit("unhandledRejection",r,n):ude("unhandledrejection",n,r)})),e.rejection=Jce||lde(e)?2:1,t.error))throw t.value}))},lde=function(e){return 1!==e.rejection&&!e.parent},cde=function(e){Zoe(zfe,qoe,(function(){var t=e.facade;Jce?Zfe.emit("rejectionHandled",t):ude("rejectionhandled",t,e.value)}))},fde=function(e,t,n){return function(r){e(t,r,n)}},dde=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ade(e,!0))},pde=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Xfe("Promise can't be resolved itself");var r=ide(t);r?Ife((function(){var n={done:!1};try{Zoe(r,t,fde(pde,n,e),fde(dde,n,e))}catch(o){dde(n,o,e)}})):(e.value=t,e.state=1,ade(e,!1))}catch(o){dde({done:!1},o,e)}}};if(rde&&(Kfe=(qfe=function(e){Jle(this,Kfe),jie(e),Zoe(Ffe,this);var t=Vfe(this);try{e(fde(pde,t),fde(dde,t))}catch(n){dde(t,n)}}).prototype,(Ffe=function(e){Ufe(this,{type:Hfe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=_le(Kfe,{then:function(e,t){var n=Wfe(this),r=n.reactions,o=Jfe(Ase(this,qfe));return o.ok=!gie(e)||e,o.fail=gie(t)&&t,o.domain=Jce?Zfe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&ade(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Tfe=function(){var e=new Ffe,t=Vfe(e);this.promise=e,this.resolve=fde(pde,t),this.reject=fde(dde,t)},Lfe.f=Jfe=function(e){return e===qfe||e===Pfe?new Tfe(e):Qfe(e)},gie(Xce)&&Gfe!==Object.prototype)){jfe=Gfe.then,nde||(Rae(Gfe,"then",(function(e,t){var n=this;return new qfe((function(e,t){Zoe(jfe,n,e,t)})).then(e,t)}),{unsafe:!0}),Rae(Gfe,"catch",Kfe.catch,{unsafe:!0}));try{delete Gfe.constructor}catch(Dme){}gle&&gle(Gfe,Kfe)}due({global:!0,wrap:!0,forced:rde},{Promise:qfe}),fle(qfe,Hfe,!1),function(e){var t=bie("Promise"),n=hae.f;Xoe&&t&&!t[Yce]&&n(t,Yce,{configurable:!0,get:function(){return this}})}(),Pfe=bie(Hfe),due({target:Hfe,stat:!0,forced:rde},{reject:function(e){var t=Jfe(this);return Zoe(t.reject,void 0,e),t.promise}}),due({target:Hfe,stat:!0,forced:rde},{resolve:function(e){return function(e,t){if(fae(e),yie(t)&&t.constructor===e)return t;var n=Lfe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),due({target:Hfe,stat:!0,forced:ode},{all:function(e){var t=this,n=Jfe(t),r=n.resolve,o=n.reject,i=Rfe((function(){var n=jie(t.resolve),i=[],a=0,u=1;Yle(e,(function(e){var s=a++,l=!1;u++,Zoe(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=Jfe(t),r=n.reject,o=Rfe((function(){var o=jie(t.resolve);Yle(e,(function(e){Zoe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var hde=Lae.PROPER,vde=RegExp.prototype,gde=vde.toString,yde=aie(Mue),mde=Koe((function(){return"/a/b"!=gde.call({source:"a",flags:"b"})})),bde=hde&&"toString"!=gde.name;(mde||bde)&&Rae(RegExp.prototype,"toString",(function(){var e=fae(this),t=Rue(e.source),n=e.flags;return"/"+t+"/"+Rue(void 0===n&&wie(vde,e)&&!("flags"in vde)?yde(e):n)}),{unsafe:!0});var wde=Lae.EXISTS,Ede=hae.f,xde=Function.prototype,Cde=aie(xde.toString),Dde=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Sde=aie(Dde.exec);Xoe&&!wde&&Ede(xde,"name",{configurable:!0,get:function(){try{return Sde(Dde,Cde(this))[1]}catch(Et){return""}}});var Ade=new WeakMap;function Ode(e){return e.getMenuConfig("uploadImage")}function kde(e,t){return Wse(this,0,void 0,(function(){return Gse(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;
111r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;mH(e,i,t.name,a),n("ok")}}}))]}))}))}function Bde(e,t){return Wse(this,0,void 0,(function(){var n,r,o,i;return Gse(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Ade.get(e);if(null!=t)return t;var n=Ode(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=PP(Use(Use({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return mH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;mH(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;mH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Ade.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 _de(e,t){var n,r;return Wse(this,0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return Gse(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Ode(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(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,kde(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return mH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Bde(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]}}
vendor: 16,021 bytes, line 111
111))}))}var Fde=aie([].join),Tde=die!=Object,Pde=zce("join",",");due({target:"Array",proto:!0,forced:Tde||!Pde},{join:function(e){return Fde(vie(this),void 0===e?",":e)}}),gv&&(Xh.fn.append=gv),rv&&(Xh.fn.on=rv),xv&&(Xh.fn.remove=xv),nv&&(Xh.fn.val=nv),Av&&(Xh.fn.click=Av),sv&&(Xh.fn.hide=sv);var jde=function(){function e(){this.title=Sj("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 bH(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 mH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Xh("body"),s=Xh('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;_de(e,t)}))}},e}(),Ide={menus:[{key:"uploadImage",factory:function(){return new jde},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(bH(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(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?_de(e,o):t(r)}},n}};Dj("en",{highLightModule:{selectLang:"Language"}}),Dj("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Nde="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Lde(e){var t={exports:{}};return e(t,t.exports),t.exports}var Rde,Mde,zde=function(e){return e&&e.Math==Math&&e},$de=zde("object"==typeof globalThis&&globalThis)||zde("object"==typeof window&&window)||zde("object"==typeof self&&self)||zde("object"==typeof Nde&&Nde)||function(){return this}()||Function("return this")(),Hde=Object.defineProperty,Vde=function(e,t){try{Hde($de,e,{value:t,configurable:!0,writable:!0})}catch(Oj){$de[e]=t}return t},Ude=$de["__core-js_shared__"]||Vde("__core-js_shared__",{}),Wde=Lde((function(e){(e.exports=function(e,t){return Ude[e]||(Ude[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Gde=Function.prototype,qde=Gde.bind,Kde=Gde.call,Xde=qde&&qde.bind(Kde),Yde=qde?function(e){return e&&Xde(Kde,e)}:function(e){return e&&function(){return Kde.apply(e,arguments)}},Zde=$de.TypeError,Jde=function(e){if(null==e)throw Zde("Can't call method on "+e);return e},Qde=$de.Object,epe=function(e){return Qde(Jde(e))},tpe=Yde({}.hasOwnProperty),npe=Object.hasOwn||function(e,t){return tpe(epe(e),t)},rpe=0,ope=Math.random(),ipe=Yde(1..toString),ape=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ipe(++rpe+ope,36)},upe=function(e){return"function"==typeof e},spe=function(e){return upe(e)?e:void 0},lpe=function(e,t){return arguments.length<2?spe($de[e]):$de[e]&&$de[e][t]},cpe=lpe("navigator","userAgent")||"",fpe=$de.process,dpe=$de.Deno,ppe=fpe&&fpe.versions||dpe&&dpe.version,hpe=ppe&&ppe.v8;hpe&&(Mde=(Rde=hpe.split("."))[0]>0&&Rde[0]<4?1:+(Rde[0]+Rde[1])),!Mde&&cpe&&(!(Rde=cpe.match(/Edge\/(\d+)/))||Rde[1]>=74)&&(Rde=cpe.match(/Chrome\/(\d+)/))&&(Mde=+Rde[1]);var vpe=Mde,gpe=function(e){try{return!!e()}catch(t){return!0}},ype=!!Object.getOwnPropertySymbols&&!gpe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vpe&&vpe<41})),mpe=ype&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bpe=Wde("wks"),wpe=$de.Symbol,Epe=wpe&&wpe.for,xpe=mpe?wpe:wpe&&wpe.withoutSetter||ape,Cpe=function(e){if(!npe(bpe,e)||!ype&&"string"!=typeof bpe[e]){var t="Symbol."+e;ype&&npe(wpe,e)?bpe[e]=wpe[e]:bpe[e]=mpe&&Epe?Epe(t):xpe(t)}return bpe[e]},Dpe={};Dpe[Cpe("toStringTag")]="z";var Spe="[object z]"===String(Dpe),Ape=!gpe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ope=function(e){return"object"==typeof e?null!==e:upe(e)},kpe=$de.document,Bpe=Ope(kpe)&&Ope(kpe.createElement),_pe=function(e){return Bpe?kpe.createElement(e):{}},Fpe=!Ape&&!gpe((function(){return 7!=Object.defineProperty(_pe("div"),"a",{get:function(){return 7}}).a})),Tpe=$de.String,Ppe=$de.TypeError,jpe=function(e){if(Ope(e))return e;throw Ppe(Tpe(e)+" is not an object")},Ipe=Function.prototype.call,Npe=Ipe.bind?Ipe.bind(Ipe):function(){return Ipe.apply(Ipe,arguments)},Lpe=Yde({}.isPrototypeOf),Rpe=$de.Object,Mpe=mpe?function(e){return"symbol"==typeof e}:function(e){var t=lpe("Symbol");return upe(t)&&Lpe(t.prototype,Rpe(e))},zpe=$de.String,$pe=function(e){try{return zpe(e)}catch(t){return"Object"}},Hpe=$de.TypeError,Vpe=function(e){if(upe(e))return e;throw Hpe($pe(e)+" is not a function")},Upe=function(e,t){var n=e[t];return null==n?void 0:Vpe(n)},Wpe=$de.TypeError,Gpe=$de.TypeError,qpe=Cpe("toPrimitive"),Kpe=function(e){var t=function(e,t){if(!Ope(e)||Mpe(e))return e;var n,r=Upe(e,qpe);if(r){if(n=Npe(r,e,"string"),!Ope(n)||Mpe(n))return n;throw Gpe("Can't convert object to primitive value")}return function(e,t){var n,r;if(upe(n=e.toString)&&!Ope(r=Npe(n,e)))return r;if(upe(n=e.valueOf)&&!Ope(r=Npe(n,e)))return r;throw Wpe("Can't convert object to primitive value")}(e)}(e);return Mpe(t)?t:t+""},Xpe=$de.TypeError,Ype=Object.defineProperty,Zpe={f:Ape?Ype:function(e,t,n){if(jpe(e),t=Kpe(t),jpe(n),Fpe)try{return Ype(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Xpe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Jpe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qpe=Ape?function(e,t,n){return Zpe.f(e,t,Jpe(1,n))}:function(e,t,n){return e[t]=n,e},ehe=Yde(Function.toString);upe(Ude.inspectSource)||(Ude.inspectSource=function(e){return ehe(e)});var the,nhe,rhe,ohe=Ude.inspectSource,ihe=$de.WeakMap,ahe=upe(ihe)&&/native code/.test(ohe(ihe)),uhe=Wde("keys"),she=function(e){return uhe[e]||(uhe[e]=ape(e))},lhe={},che=$de.TypeError,fhe=$de.WeakMap;if(ahe||Ude.state){var dhe=Ude.state||(Ude.state=new fhe),phe=Yde(dhe.get),hhe=Yde(dhe.has),vhe=Yde(dhe.set);the=function(e,t){if(hhe(dhe,e))throw new che("Object already initialized");return t.facade=e,vhe(dhe,e,t),t},nhe=function(e){return phe(dhe,e)||{}},rhe=function(e){return hhe(dhe,e)}}else{var ghe=she("state");lhe[ghe]=!0,the=function(e,t){if(npe(e,ghe))throw new che("Object already initialized");return t.facade=e,Qpe(e,ghe,t),t},nhe=function(e){return npe(e,ghe)?e[ghe]:{}},rhe=function(e){return npe(e,ghe)}}var yhe={get:nhe,enforce:function(e){return rhe(e)?nhe(e):the(e,{})}},mhe=Function.prototype,bhe=Ape&&Object.getOwnPropertyDescriptor,whe=npe(mhe,"name"),Ehe={PROPER:whe&&"something"===function(){}.name,CONFIGURABLE:whe&&(!Ape||Ape&&bhe(mhe,"name").configurable)},xhe=Lde((function(e){var t=Ehe.CONFIGURABLE,n=yhe.get,r=yhe.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;upe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!npe(i,"name")||t&&i.name!==f)&&Qpe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==$de?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Qpe(e,n,i)):l?e[n]=i:Vde(n,i)})(Function.prototype,"toString",(function(){return upe(this)&&n(this).source||ohe(this)}))})),Che=Yde({}.toString),Dhe=Yde("".slice),She=function(e){return Dhe(Che(e),8,-1)},Ahe=Cpe("toStringTag"),Ohe=$de.Object,khe="Arguments"==She(function(){return arguments}()),Bhe=Spe?She: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(n){}}(t=Ohe(e),Ahe))?n:khe?She(t):"Object"==(r=She(t))&&upe(t.callee)?"Arguments":r},_he=Spe?{}.toString:function(){return"[object "+Bhe(this)+"]"};Spe||xhe(Object.prototype,"toString",_he,{unsafe:!0});var Fhe,The={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},Phe=_pe("span").classList,jhe=Phe&&Phe.constructor&&Phe.constructor.prototype,Ihe=jhe===Object.prototype?void 0:jhe,Nhe=Yde(Yde.bind),Lhe=$de.Object,Rhe=Yde("".split),Mhe=gpe((function(){return!Lhe("z").propertyIsEnumerable(0)}))?function(e){return"String"==She(e)?Rhe(e,""):Lhe(e)}:Lhe,zhe=Math.ceil,$he=Math.floor,Hhe=function(e){var t=+e;return t!=t||0===t?0:(t>0?$he:zhe)(t)},Vhe=Math.min,Uhe=function(e){return e>0?Vhe(Hhe(e),9007199254740991):0},Whe=function(e){return Uhe(e.length)},Ghe=Array.isArray||function(e){return"Array"==She(e)},qhe=function(){},Khe=[],Xhe=lpe("Reflect","construct"),Yhe=/^\s*(?:class|function)\b/,Zhe=Yde(Yhe.exec),Jhe=!Yhe.exec(qhe),Qhe=function(e){if(!upe(e))return!1;try{return Xhe(qhe,Khe,e),!0}catch(t){return!1}},eve=!Xhe||gpe((function(){var e;return Qhe(Qhe.call)||!Qhe(Object)||!Qhe((function(){e=!0}))||e}))?function(e){if(!upe(e))return!1;switch(Bhe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jhe||!!Zhe(Yhe,ohe(e))}:Qhe,tve=Cpe("species"),nve=$de.Array,rve=function(e,t){return new(Ghe(n=e)&&(r=n.constructor,(eve(r)&&(r===nve||Ghe(r.prototype))||Ope(r)&&null===(r=r[tve]))&&(r=void 0)),void 0===r?nve:r)(0===t?0:t);var n,r},ove=Yde([].push),ive=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=epe(s),v=Mhe(h),g=function(e,t){return Vpe(e),void 0===t?e:Nhe?Nhe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Whe(v),m=0,b=f||rve,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[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:ove(w,d)}else switch(e){case 4:return!1;case 7:ove(w,d)}return i?-1:r||o?o:w}},ave=[ive(0),ive(1),ive(2),ive(3),ive(4),ive(5),ive(6),ive(7)][0],uve=(Fhe=[].forEach)&&gpe((function(){Fhe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return ave(this,e,arguments.length>1?arguments[1]:void 0)},sve=function(e){if(e&&e.forEach!==uve)try{Qpe(e,"forEach",uve)}catch(t){e.forEach=uve}};for(var lve in The)The[lve]&&sve($de[lve]&&$de[lve].prototype);sve(Ihe);var cve={}.propertyIsEnumerable,fve=Object.getOwnPropertyDescriptor,dve={f:fve&&!cve.call({1:2},1)?function(e){var t=fve(this,e);return!!t&&t.enumerable}:cve},pve=function(e){return Mhe(Jde(e))},hve=Object.getOwnPropertyDescriptor,vve={f:Ape?hve:function(e,t){if(e=pve(e),t=Kpe(t),Fpe)try{return hve(e,t)}catch(n){}if(npe(e,t))return Jpe(!Npe(dve.f,e,t),e[t])}},gve=Math.max,yve=Math.min,mve=function(e,t){var n=Hhe(e);return n<0?gve(n+t,0):yve(n,t)},bve=function(e){return function(t,n,r){var o,i=pve(t),a=Whe(i),u=mve(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}}(!1),wve=Yde([].push),Eve=function(e,t){var n,r=pve(e),o=0,i=[];for(n in r)!npe(lhe,n)&&npe(r,n)&&wve(i,n);for(;t.length>o;)npe(r,n=t[o++])&&(~bve(i,n)||wve(i,n));return i},xve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cve=xve.concat("length","prototype"),Dve={f:Object.getOwnPropertyNames||function(e){return Eve(e,Cve)}},Sve={f:Object.getOwnPropertySymbols},Ave=Yde([].concat),Ove=lpe("Reflect","ownKeys")||function(e){var t=Dve.f(jpe(e)),n=Sve.f;return n?Ave(t,n(e)):t},kve=function(e,t){for(var n=Ove(t),r=Zpe.f,o=vve.f,i=0;i<n.length;i++){var a=n[i];npe(e,a)||r(e,a,o(t,a))}},Bve=/#|\.prototype\./,_ve=function(e,t){var n=Tve[Fve(e)];return n==jve||n!=Pve&&(upe(t)?gpe(t):!!t)},Fve=_ve.normalize=function(e){return String(e).replace(Bve,".").toLowerCase()},Tve=_ve.data={},Pve=_ve.NATIVE="N",jve=_ve.POLYFILL="P",Ive=_ve,Nve=vve.f,Lve=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?$de:l?$de[u]||Vde(u,{}):($de[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Nve(n,r))&&a.value:n[r],!Ive(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;kve(i,o)}(e.sham||o&&o.sham)&&Qpe(i,"sham",!0),xhe(n,r,i,e)}},Rve=Object.keys||function(e){return Eve(e,xve)},Mve=Object.assign,zve=Object.defineProperty,$ve=Yde([].concat),Hve=!Mve||gpe((function(){if(Ape&&1!==Mve({b:1},Mve(zve({},"a",{enumerable:!0,get:function(){zve(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!=Mve({},e)[n]||Rve(Mve({},t)).join("")!=r}))?function(e,t){for(var n=epe(e),r=arguments.length,o=1,i=Sve.f,a=dve.f;r>o;)for(var u,s=Mhe(arguments[o++]),l=i?$ve(Rve(s),i(s)):Rve(s),c=l.length,f=0;c>f;)u=l[f++],Ape&&!Npe(a,s,u)||(n[u]=s[u]);return n}:Mve;Lve({target:"Object",stat:!0,forced:Object.assign!==Hve},{assign:Hve});var Vve=Lde((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)}
vendor: 5,030 bytes, line 111
111)),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 v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}for(var E=v.pattern||v,x=r.next,C=s;x!==t.tail&&!(f&&C>=f.reach);C+=x.value.length,x=x.next){var D=x.value;if(t.length>e.length)return;if(!(D 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+=x.value.length;O>=B;)B+=(x=x.next).value.length;if(C=B-=x.value.length,x.value instanceof i)continue;for(var _=x;_!==t.tail&&(B<k||"string"==typeof _.value);_=_.next)A++,B+=_.value.length;A--,D=e.slice(C,B),S.index-=C}else if(!(S=a(E,0,D,y)))continue;O=S.index;var F=S[0],T=D.slice(0,O),P=D.slice(O+F.length),j=C+D.length;f&&j>f.reach&&(f.reach=j);var I=x.prev;if(T&&(I=l(t,I,T),C+=T.length),c(t,I,A),x=l(t,I,new i(d,g?o.tokenize(F,g):F,b,F)),P&&l(t,x,P),A>1){var N={cause:d+","+h,reach:j};u(e,t,n,x.prev,C,N),f&&N.reach>f.reach&&(f.reach=N.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}
vendor: 1,619 bytes, lines 111-119
111function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
112/**
113   * Prism: Lightweight, robust, elegant syntax highlighting
114   *
115   * @license MIT <https://opensource.org/licenses/MIT>
116   * @author Lea Verou <https://lea.verou.me>
117   * @namespace
118   * @public
119   */e.exports&&(e.exports=t),void 0!==Nde&&(N
vendor: 32,476 bytes, line 119
119de.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),
vendor: 4,157 bytes, line 119
119"")}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),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),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]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\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(D),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,[v,x]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),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,[x,d,v]),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,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),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,[x,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),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,g,v,x,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>
vendor: 1,997 bytes, line 119
119/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),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+"|"+D,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),_=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=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,[_]),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]),I=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,T]);function L(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:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:L(N,I
vendor: 21,291 bytes, line 119
119)}]})}(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(
119t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e})),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|
vendor: 19,862 bytes, lines 119-147
119super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Uve=["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 Wve(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Wve(t)}),0)}var Gve,qve=$de.String,Kve=function(e){if("Symbol"===Bhe(e))throw TypeError("Cannot convert a Symbol value to a string");return qve(e)},Xve=function(){var e=jpe(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},Yve=$de.RegExp,Zve=gpe((function(){var e=Yve("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));Zve||gpe((function(){return!Yve("a","y").sticky}));var Jve={BROKEN_CARET:Zve||gpe((function(){var e=Yve("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:Zve},Qve=Ape?Object.defineProperties:function(e,t){jpe(e);for(var n,r=pve(t),o=Rve(t),i=o.length,a=0;i>a;)Zpe.f(e,n=o[a++],r[n]);return e},ege=lpe("document","documentElement"),tge=she("IE_PROTO"),nge=function(){},rge=function(e){return"<script>"+e+"<\/script>"},oge=function(e){e.write(rge("")),e.close();var t=e.parentWindow.Object;return e=null,t},ige=function(){try{Gve=new ActiveXObject("htmlfile")}catch(r){}var e,t;ige="undefined"!=typeof document?document.domain&&Gve?oge(Gve):((t=_pe("iframe")).style.display="none",ege.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rge("document.F=Object")),e.close(),e.F):oge(Gve);for(var n=xve.length;n--;)delete ige.prototype[xve[n]];return ige()};lhe[tge]=!0;var age,uge,sge=Object.create||function(e,t){var n;return null!==e?(nge.prototype=jpe(e),n=new nge,nge.prototype=null,n[tge]=e):n=ige(),void 0===t?n:Qve(n,t)},lge=$de.RegExp,cge=gpe((function(){var e=lge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),fge=$de.RegExp,dge=gpe((function(){var e=fge("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),pge=yhe.get,hge=Wde("native-string-replace",String.prototype.replace),vge=RegExp.prototype.exec,gge=vge,yge=Yde("".charAt),mge=Yde("".indexOf),bge=Yde("".replace),wge=Yde("".slice),Ege=(uge=/b*/g,Npe(vge,age=/a/,"a"),Npe(vge,uge,"a"),0!==age.lastIndex||0!==uge.lastIndex),xge=Jve.BROKEN_CARET,Cge=void 0!==/()??/.exec("")[1];(Ege||Cge||xge||cge||dge)&&(gge=function(e){var t,n,r,o,i,a,u,s=this,l=pge(s),c=Kve(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Npe(gge,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xge&&s.sticky,h=Npe(Xve,s),v=s.source,g=0,y=c;if(p&&(h=bge(h,"y",""),-1===mge(h,"g")&&(h+="g"),y=wge(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==yge(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Cge&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Ege&&(r=s.lastIndex),o=Npe(vge,p?n:s,y),p?o?(o.input=wge(o.input,g),o[0]=wge(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ege&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Cge&&o&&o.length>1&&Npe(hge,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=sge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Dge=gge;Lve({target:"RegExp",proto:!0,forced:/./.exec!==Dge},{exec:Dge});var Sge=Function.prototype,Age=Sge.apply,Oge=Sge.bind,kge=Sge.call,Bge="object"==typeof Reflect&&Reflect.apply||(Oge?kge.bind(Age):function(){return kge.apply(Age,arguments)}),_ge=Cpe("species"),Fge=RegExp.prototype,Tge=Cpe("match"),Pge=$de.TypeError,jge=Cpe("species"),Ige=Yde("".charAt),Nge=Yde("".charCodeAt),Lge=Yde("".slice),Rge=function(e){return function(t,n){var r,o,i=Kve(Jde(t)),a=Hhe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Nge(i,a))<55296||r>56319||a+1===u||(o=Nge(i,a+1))<56320||o>57343?e?Ige(i,a):r:e?Lge(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Mge=function(e,t,n){return t+(n?Rge(e,t).length:1)},zge=$de.Array,$ge=Math.max,Hge=function(e,t,n){for(var r,o,i,a,u=Whe(e),s=mve(t,u),l=mve(void 0===n?u:n,u),c=zge($ge(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Kpe(o))in r?Zpe.f(r,a,Jpe(0,i)):r[a]=i;return c.length=f,c},Vge=$de.TypeError,Uge=function(e,t){var n=e.exec;if(upe(n)){var r=Npe(n,e,t);return null!==r&&jpe(r),r}if("RegExp"===She(e))return Npe(Dge,e,t);throw Vge("RegExp#exec called on incompatible receiver")},Wge=Jve.UNSUPPORTED_Y,Gge=Math.min,qge=[].push,Kge=Yde(/./.exec),Xge=Yde(qge),Yge=Yde("".slice);!function(e,t,n,r){var o,i,a,u=Cpe(e),s=!gpe((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!gpe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[_ge]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=Yde(/./[u]),f=(o=u,i=""[e],a="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,t){var n,r,o=Kve(Jde(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Ope(n=e)||!(void 0!==(r=n[Tge])?r:"RegExp"==She(n)))return Npe(i,o,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=Npe(Dge,p,o))&&!((s=p.lastIndex)>d&&(Xge(c,Yge(o,d,u.index)),u.length>1&&u.index<o.length&&Bge(qge,c,Hge(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Kge(p,"")||Xge(c,""):Xge(c,Yge(o,d)),c.length>a?Hge(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Npe(i,this,e,t)}:i,[function(e,t){var n=Jde(this),r=null==e?void 0:Upe(e,o);return r?Npe(r,e,n,t):Npe(a,Kve(n),e,t)},function(e,t){var n=jpe(this),r=Kve(e),o=function(e,t,n,r,o){var i=Yde(e),a=t.exec;return a===Dge||a===Fge.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u,l,f,d=(u=RegExp,void 0===(f=jpe(n).constructor)||null==(l=jpe(f)[jge])?u:function(e){if(eve(e))return e;throw Pge($pe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Wge?"g":"y"),v=new d(Wge?"^(?:"+n.source+")":n,h),g=void 0===t?4294967295:t>>>0;if(0===g)return[];if(0===r.length)return null===Uge(v,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){v.lastIndex=Wge?0:m;var w,E=Uge(v,Wge?Yge(r,m):r);if(null===E||(w=Gge(Uhe(v.lastIndex+(Wge?m:0)),r.length))===y)m=Mge(r,m,p);else{if(Xge(b,Yge(r,y,m)),b.length===g)return b;for(var x=1;x<=E.length-1;x++)if(Xge(b,E[x]),b.length===g)return b;m=y=w}}return Xge(b,Yge(r,y)),b}]);xhe(String.prototype,e,f[0]),xhe(Fge,u,f[1])}r&&Qpe(Fge[u],"sham",!0)}("split",0,!!gpe((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]})),Wge),Lve({global:!0},{globalThis:$de}),Qh&&(Xh.fn.attr=Qh);var Zge=Ehe.PROPER,Jge=RegExp.prototype,Qge=Jge.toString,eye=Yde(Xve),tye=gpe((function(){return"/a/b"!=Qge.call({source:"a",flags:"b"})})),nye=Zge&&"toString"!=Qge.name;(tye||nye)&&xhe(RegExp.prototype,"toString",(function(){var e=jpe(this),t=Kve(e.source),n=e.flags;return"/"+t+"/"+Kve(void 0===n&&Lpe(Jge,e)&&!("flags"in Jge)?eye(e):n)}),{unsafe:!0});var rye=function(){function e(){this.title=Sj("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(!zd.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()};jp.setNodes(e,n,{match:function(e){return zk.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=zk.getSelectedNodeByType(e,"code");if(null==t)return null;var n=zk.getParentNode(e,t);return zd.isElement(n)?"pre"!==n.type?null:t:null},e}(),oye={renderStyle:function(e,t){var n=e,r=t,o="";return Uve.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=Xh(e);if(!zd.isElement(t))return t;if("code"!==zk.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 rye},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},iye=/"/g,aye=Yde("".replace);Lve({target:"String",proto:!0,forced:gpe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Kve(Jde(this)),r="<a",(r+=' name="'+aye(Kve(t),iye,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var uye=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(u){o={error:u}}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(!gp.isText(e))return null;var t=zk.getParentNode(null,e);if(t&&"code"===zk.getNodeType(t)){var n=zk.getParentNode(null,t);if(n&&"pre"===zk.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=Vve.languages[t];return n?Vve.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
120/*! *****************************************************************************
121      Copyright (c) Microsoft Corporation.
122      
123      Permission to use, copy, modify, and/or distribute this software for any
124      purpose with or without fee is hereby granted.
125      
126      THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
127      REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
128      AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
129      INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
130      LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
131      OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
132      PERFORMANCE OF THIS SOFTWARE.
133      ***************************************************************************** */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 v=h.value,g=d+Wve(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(y){t={error:y}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},sye=function(){return sye=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},sye.apply(this,arguments)},lye=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=sye(sye({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=sye(sye({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=sye(sye({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=sye(sye({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n,r,o=e.key,i=e.factory,a=e.config,u=WA(WA({},a),t||{});if(null!=Vk[o])throw new Error("Duplicated key '"+o+"' in menu items");Vk[o]=i,n=o,null!=(r=u)&&(Hk[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;AT[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,ST.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;tB[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,eB.push(t)},e.registerPreParseHtml=function(e){var t;t=e,V_.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;W_[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,U_.push(t)},e.registerModule=function(e){cye(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
134/*! *****************************************************************************
135Copyright (c) Microsoft Corporation.
136
137Permission to use, copy, modify, and/or distribute this software for any
138purpose with or without fee is hereby granted.
139
140THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
141REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
142AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
143INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
144LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
145OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
146PERFORMANCE OF THIS SOFTWARE.
147***************************************************************************** */function cye(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 lye.registerMenu(e)})),n&&n.forEach((function(e){return lye.registerRenderElem(e)})),r&&lye.registerRenderStyle(r),o&&o.forEach((function(e){return lye.registerElemToHtml(e)})),i&&lye.registerStyleToHtml(i),a&&a.forEach((function(e){return lye.registerPreParseHtml(e)})),u&&u.forEach((function(e){return lye.registerParseElemHtml(e)})),s&&lye.registerParseStyleHtml(s),l&&lye.registerPlugin(l)}DK.forEach((function(e){return cye(e)})),cye(H0),cye(E5),cye($oe),cye(Ide),cye(oye);var fye='<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>',dye={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"]}},pye={hoverbarKeys:sye(sye({},dye),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};lye.setEditorConfig(sye(sye({},pye),{decorate:uye}));var hye={hoverbarKeys:dye};lye.setSimpleEditorConfig(sye(sye({},hye),{decorate:uye}));var vye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Sj("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Sj("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Sj("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Sj("editor.image"),iconSvg:fye,menuKeys:["insertImage","uploadImage"]}
147,{key:"group-video",title:Sj("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};lye.setToolbarConfig(vye);var gye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Sj("editor.image"),iconSvg:fye,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function yye(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}lye.setSimpleToolbarConfig(gye);const mye=Array.isArray;function bye(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function wye(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];if("string"==typeof e)continue;const n=e.data;void 0!==n&&wye(n,e.children,e.sel)}}function Eye(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),mye(n)?r=n:bye(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(mye(t)?r=t:bye(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)bye(r[i])&&(r[i]=yye(void 0,void 0,void 0,r[i],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||wye(a,r,e),yye(e,a,r,o,void 0)}const xye={editorPlugin:function(e){const{insertText:t,isInline:n,isVoid:r}=e,o=e;return o.insertText=e=>{if(zk.getSelectedElems(o).some((e=>o.isVoid(e))))return void t(e);const n=function(e){const{EXTEND_CONF:t}=e.getConfig();return null==t?void 0:t.mentionConfig}(o),r=null==n?void 0:n.showModal,i=null==n?void 0:n.hideModal,a=(null==n?void 0:n.triggerKey)??"@",u=!!r&&e===a,s=u?o.getText():"";t(e),u&&o.getText()!==s&&setTimeout((()=>{r(o),setTimeout((()=>{function e(){i&&i(o)}o.once("fullScreen",e),o.once("unFullScreen",e),o.once("scroll",e),o.once("modalOrPanelShow",e),o.once("modalOrPanelHide",e),o.on("change",(function t(){null!=o.selection&&(e(),o.off("change",t))}))}))}))},o.isInline=e=>"mention"===zk.getNodeType(e)||n(e),o.isVoid=e=>"mention"===zk.getNodeType(e)||r(e),o},renderElems:[{type:"mention",renderElem:function(e,t,n){const r=zk.isNodeSelected(n,e),{value:o="",info:i={}}=e,a=null!=i.tooltip&&""!==i.tooltip,u=a?i.tooltip:null!=i.type&&""!==i.type?`${i.type}:${o}`:String(o),s=a?i.tooltip.split(":")[0].trim():String(i.type??"").trim(),l=i.color||v[s]||"";return Eye("span",{props:{contentEditable:!1},style:{marginLeft:"1px",marginRight:"1px",padding:"2px",borderRadius:"2px",border:r?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent"},attrs:{class:l||"tooltip-link",tooltip:u}},`[${o}]`)}}],elemsToHtml:[{type:"mention",elemToHtml:function(e,t){const{value:n="",info:r={}}=e,o=encodeURIComponent(JSON.stringify(r)),i=null!=r.tooltip&&""!==r.tooltip,a=i?r.tooltip:null!=r.type&&""!==r.type?`${r.type}:${n}`:String(n),u=i?r.tooltip.split(":")[0].trim():String(r.type??"").trim(),s=r.color||v[u];return`<span style="margin: 0 2px" data-w-e-type="mention" data-w-e-is-void data-w-e-is-inline class="${s||"tooltip-link"}" tooltip="${a}" data-value="${n}" data-info="${o}">[${n}]</span>`}}],parseElemsHtml:[{selector:'span[data-w-e-type="mention"]',parseElemHtml:function(e,t,n){const r=e.getAttribute("data-value")||"",o=decodeURIComponent(e.getAttribute("data-info")||"");let i;try{i=JSON.parse(o)}catch(a){i=o}return{type:"mention",value:r,info:i,children:[{text:""}]}}}]};const Cye=["bold","italic","underline"],Dye=["header1","header2","blockquote","bulletedList","numberedList"];function Sye(e){var t,n,r,o;const i=null==(t=e.getEditableContainer)?void 0:t.call(e),a=(null==(n=null==i?void 0:i.matches)?void 0:n.call(i,'[contenteditable="true"]'))?i:null==(r=null==i?void 0:i.querySelector)?void 0:r.call(i,'[contenteditable="true"]');a?a.focus({preventScroll:!0}):null==(o=e.focus)||o.call(e)}function Aye(e,t,n){const r=e.history;if(!r)return n();const o=r.undos;r.undos=[];try{let i;return t.Editor.withoutNormalizing(e,(()=>{i=n()})),i}finally{const e=r.undos.flat();r.undos=e.some((e=>"set_selection"!==e.type))?[...o,e].slice(-100):o}}function Oye(e,{Editor:t,Element:n}){return e.selection&&t.above(e,{at:e.selection.focus,match:r=>n.isElement(r)&&t.isBlock(e,r)})||null}function kye(e,t){var n;const r=null==(n=Oye(e,t))?void 0:n[0],o=null==r?void 0:r.type,i="list-item"===o?r.ordered?"numberedList":"bulletedList":Dye.includes(o)?o:"paragraph",a=e.selection&&t.Editor.marks(e)||{};return{block:i,marks:Object.fromEntries(Cye.map((e=>[e,!!a[e]]))),canStyle:!!r&&["paragraph","header1","header2","header3","header4","header5","header6","blockquote","list-item"].includes(o)}}function Bye(e,t,n){const r=Oye(e,n);if(!r)return;const o=r[1],i="bulletedList"===t||"numberedList"===t;n.Editor.withoutNormalizing(e,(()=>{n.Transforms.setNodes(e,{type:i?"list-item":t},{at:o}),n.Transforms.unsetNodes(e,["ordered","level","indent"],{at:o}),i&&n.Transforms.setNodes(e,{ordered:"numberedList"===t,level:0},{at:o})}))}function _ye(e,t,{Editor:n}){const r=n.marks(e)||{};for(const o of Object.keys(r))o in t||e.removeMark(o);for(const[o,i]of Object.entries(t))e.addMark(o,i)}function Fye(e,t,{selection:n=e.selection,valid:r=(()=>!0),trigger:o=""}={}){if(!n)return null;const i=t.Editor.pointRef(e,n.focus,{affinity:"forward"}),a={...t.Editor.marks(e)||{}};let u,s=!1;if(o){const r=t.Editor.before(e,n.focus,{unit:"character"}),i=r&&{anchor:r,focus:n.focus};i&&t.Editor.string(e,i)===o&&(u=t.Editor.rangeRef(e,i,{affinity:"inward"}))}const l=()=>{if(s||!r()||!i.current)return!1;
147const n=i.current;if(!t.Node.has(e,n.path))return!1;const o=t.Node.get(e,n.path);return"string"==typeof o.text&&n.offset>=0&&n.offset<=o.text.length};return{isValid:l,restore:(n=!0)=>!!l()&&(t.Transforms.select(e,i.current),_ye(e,a,t),n&&Sye(e),!0),consumeTrigger(){const n=null==u?void 0:u.current;n&&l()&&t.Editor.string(e,n)===o&&t.Transforms.delete(e,{at:n})},release(){s||(s=!0,i.unref(),null==u||u.unref())}}}function Tye(e,t,n){var r;const o={...t.Editor.marks(e)};e.insertNode(n);const i=t.Editor.above(e,{match:r=>r.type===n.type&&t.Editor.isInline(e,r)});if(!i)return;const a=[...i[1]];a[a.length-1]+=1;const[u]=t.Editor.parent(e,i[1]);"string"!=typeof(null==(r=u.children[a[a.length-1]])?void 0:r.text)&&t.Transforms.insertNodes(e,{text:""},{at:a}),t.Transforms.select(e,{path:a,offset:0}),_ye(e,o,t)}lye.registerModule(xye);const Pye={},jye={};function Iye(e,t=(()=>!0),n={}){const{locale:o}=g(),a=y([]),u=r(!1),s=y(null),l=r(!1),c=r("");let f,d,p=!1,h=0;const v={Editor:Gd,Transforms:jp,Node:Zd},D=(e=!0)=>{u.value=!1,s.value=null,!p&&e&&f&&(null==d||d.restore()),null==d||d.release(),d=null};return m((()=>{var r;const i=e();return[i,o.value,t(),null==(r=n.getActiveChar)?void 0:r.call(n),"d4"===i?x("items"):"d2r"===i?C("d2r","items",!0):""]}),(async([e,,t,n,r])=>{const o=++h;if(D(!1),a.value=[],c.value="",l.value=!1,!e||!t)return;const i=r;if(r){l.value=!0,Pye[i]||jye[i]||(jye[i]=b({url:r}).then((e=>{const t=Array.isArray(e)?e:[];return t.length&&(Pye[i]=t),t})).finally((()=>{delete jye[i]})));try{const[t,r]=await Promise.allSettled([Pye[i]||jye[i],"d4"===e&&n?w():Promise.resolve(null)]);p||o!==h||(a.value=[..."fulfilled"===t.status?t.value:[],..."fulfilled"===r.status?E(r.value,n):[]],"rejected"!==t.status&&"rejected"!==r.status||(c.value="部分数据库加载失败,请稍后重试"))}catch(u){p||o!==h||(c.value="数据库加载失败,请稍后重试")}finally{p||o!==h||(l.value=!1)}}}),{immediate:!0}),i((()=>{p=!0,null==d||d.release(),f=null,s.value=null,u.value=!1})),{mentionData:a,mentionReference:s,mentionLoading:l,mentionError:c,isShowModal:u,showMentionModal:(e,{source:r="slash"}={})=>{var o;if(p||!t())return;null==d||d.release(),f=e;const i={trigger:"slash"===r?"/":""},a=null==(o=n.isMobile)?void 0:o.call(n);d=a&&n.capture?n.capture(e,i):Fye(e,v,{...i,valid:()=>!p&&t()}),s.value=a?null:function(e,t){if(!(null==e?void 0:e.selection))return null;try{const n=t.toDOMRange(e,e.selection).cloneRange();n.collapse(!1);const r=t.toDOMNode(e,e);return{contextElement:r,getBoundingClientRect(){if(!r.isConnected||!r.contains(n.startContainer))return null;const e=n.getBoundingClientRect();if(e.height>0)return e;const t=(3===n.startContainer.nodeType?n.startContainer.parentElement:n.startContainer).getBoundingClientRect(),o=t.height||26;return{left:t.left,right:t.left,top:t.top,bottom:t.top+o,width:0,height:o}}}}catch(n){return null}}(e,zk),u.value=!!d&&(a||!!s.value),u.value||(null==d||d.release(),d=null)},hideMentionModal:D,insertMention:(e,t,n,r)=>{!p&&f&&(!function(e,t,n,{type:r,name:o,tooltip:i,color:a},u=!0){Aye(e,t,(()=>!!(null==n?void 0:n.restore(u))&&(n.consumeTrigger(),Tye(e,t,{type:"mention",value:o,info:{type:r,tooltip:i,...a?{color:a}:{}},children:[{text:""}]}),!0)))}(f,v,d,{type:e,name:t,tooltip:n,color:r}),D(!1))}}}const Nye={Editor:Gd,Transforms:jp,Element:zd,Node:Zd};function Lye({textOnly:e=!1,capabilities:t=(()=>({})),commands:n={},onDeactivate:r=(()=>{})}={}){const o=D(Ce,null),a=S((()=>!!(null==o?void 0:o.state.mobile))),u=new Map;let s=!1;return i((()=>{s=!0,u.forEach((e=>e.destroy())),u.clear()})),{session:o,mobile:a,register:(i,l=(()=>i.getEditableContainer()))=>{if(!o)return;let c;const f=i.getEditableContainer();let d,p=!1,h=!0;const v=()=>!s&&h&&o.state.enabled,g=()=>{i.selection&&v()&&(null==c||c.release(),c=Fye(i,Nye,{valid:v}))},y=()=>{var n,r;const a=!(!i.selection&&!(null==c?void 0:c.isValid())||p||i.isDisabled()),u=i.selection?kye(i,Nye):o.state.format;return{format:u,capabilities:a&&!e?{link:!0,image:!0,style:u.canStyle,mention:!0,undo:!0,redo:!0,...t()}:{}
147,canUndo:a&&!e&&!!(null==(n=i.history)?void 0:n.undos.length),canRedo:a&&!e&&!!(null==(r=i.history)?void 0:r.redos.length)}},m=e=>{var t,n,r;return v()?(null==(r=null==(n=null==(t=zk.getTextarea(i))?void 0:t.onDOMSelectionChange)?void 0:n.flush)||r.call(n),i.selection||(null==c?void 0:c.restore(!1))?Fye(i,Nye,{valid:v,...e}):null):null},b=()=>{var e,t,n;return null==(n=null==(t=null==(e=zk.getTextarea(i))?void 0:e.onDOMSelectionChange)?void 0:t.flush)||n.call(t),i.selection?(jp.collapse(i,{edge:"focus"}),!0):!!(null==c?void 0:c.restore())},w=()=>{a.value&&o.isActive(i.id)&&!p&&!d&&(d=requestAnimationFrame((()=>{if(d=null,!h||!i.selection||!f.contains(document.activeElement))return;const e=document.querySelector(`.planner-mobile-toolbar[data-editor-session="${o.id}"]`);if(e)try{const t=zk.toDOMRange(i,i.selection).getBoundingClientRect(),n=t.bottom-e.getBoundingClientRect().top+16;if(t.height<=0||n<=0)return;const r=f.closest(".w-e-scroll"),o=(null==r?void 0:r.scrollTop)||0;r&&(r.scrollTop+=n);const a=n-(((null==r?void 0:r.scrollTop)||0)-o);a>0&&window.scrollBy(0,a)}catch(t){}})))},E=()=>{h&&(o.isActive(i.id)&&g(),o.refresh(i.id),w())},x=()=>{h&&o.state.enabled&&(o.activate(i.id),g(),o.refresh(i.id))},C=()=>{p=!0,o.refresh(i.id)},D=()=>{p=!1,E()},S=()=>{g()},A=o.register({id:i.id,contains:e=>{var t;return null==(t=l())?void 0:t.contains(e)},getState:y,scrollCaretIntoView:w,blur:()=>i.blur(),onDeactivate:r,execute(e,t){var r;const o=y();if(!o.capabilities[e])return!1;if("style"===e){if(!b())return!1;const e=function(e,t,n){if(!e.selection||!Cye.includes(t)&&!Dye.includes(t))return!1;n.Transforms.collapse(e,{edge:"focus"});const r=kye(e,n);if(!r.canStyle)return!1;if(Cye.includes(t)){const n=r.marks[t];Cye.forEach((t=>e.removeMark(t))),n||e.addMark(t,!0)}else{const o={...n.Editor.marks(e)};Aye(e,n,(()=>Bye(e,r.block===t?"paragraph":t,n))),_ye(e,o,n)}return!0}(i,t,Nye);return Sye(i),E(),e}return"undo"===e||"redo"===e?!!o["undo"===e?"canUndo":"canRedo"]&&(i[e](),Sye(i),E(),!0):!!b()&&(null==(r=n[e])?void 0:r.call(n,i,m))}});!function(e,t,n,r=!1){const{insertBreak:o,insertText:i}=e;if(e.insertBreak=()=>{if(!n()||r||!e.selection)return o();const i=kye(e,t),a={...t.Editor.marks(e)};t.Editor.withoutNormalizing(e,(()=>{o(),i.canStyle&&e.selection&&(Bye(e,i.block,t),_ye(e,a,t))}))},r){const{addMark:t}=e;e.addMark=(e,r)=>{n()||t(e,r)},e.insertText=t=>{n()&&e.selection&&(e.marks={}),i(t)}}}(i,Nye,(()=>a.value&&o.isActive(i.id)),e),f.addEventListener("focusin",x),f.addEventListener("pointerup",x),f.addEventListener("compositionstart",C),f.addEventListener("compositionend",D),f.addEventListener("focusout",S),i.on("change",E),u.set(i.id,{bookmark:m,refresh:E,destroy(){h=!1,cancelAnimationFrame(d),A(),null==c||c.release(),f.removeEventListener("focusin",x),f.removeEventListener("pointerup",x),f.removeEventListener("compositionstart",C),f.removeEventListener("compositionend",D),f.removeEventListener("focusout",S),i.off("change",E)}})},isActive:e=>!!e&&!!(null==o?void 0:o.isActive(e.id)),capture:(e,t)=>{var n;return null==(n=u.get(e.id))?void 0:n.bookmark(t)}}}function Rye(e){var t;return((null==(t=null==e?void 0:e.getText)?void 0:t.call(e))||"").replace(/\r|\n/g,"").length}function Mye(e,t){return!(t>0)||e<=.8*t?"":`剩余 ${Math.max(0,t-e)} 字`}function zye(e,t){if(!(t>0))return;const n=e.map(Rye),r=n.reduce(((e,t)=>e+t),0);e.forEach(((e,o)=>{e&&(e.getConfig().maxLength=Math.max(1,t-r+n[o]))}))}function $ye(e,t,n){for(const r of["insertText","insertNode","insertFragment","dangerouslyInsertHtml"]){const o=e[r].bind(e);e[r]=(...r)=>{const i=n();if(i>0){const n=t();zye(n,i);if(n.filter((t=>t!==e)).reduce(((e,t)=>e+Rye(t)),0)>=i)return}return o(...r)}}}const Hye={parseElemsHtml:[{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){let r=0,o=!1;for(let d=e.parentElement;d;d=d.parentElement)"UL"!==d.tagName&&"OL"!==d.tagName||(0===r&&(o="OL"===d.tagName),r++);const i=Math.max(0,r-1),a=[];let u=[],s=!1;const l=()=>u.some((e=>"string"==typeof e.text?e.text.trim().length>0:n.isInline(e))),c=(e=!1)=>{(l()||e)&&a.push({type:"list-item",ordered:o,level:i,children:u.length?u:[{text:""}]}),u=[],s=!1},f=e=>{"list-item"===e.type?(c(0===a.length),a.push(e)):"string"==typeof e.text||n.isInline(e)?(s&&l()&&u.push({text:"\n"}),s=!1,u.push(e)):Array.isArray(e.children)&&(s=!0,e.children.forEac
147h(f),s=!0)};return t.forEach(f),c(0===a.length),a}}]};const Vye={editorPlugin:function(e){const{isInline:t,isVoid:n}=e,r=e;return r.isInline=e=>"embeddedVideo"!==zk.getNodeType(e)&&t(e),r.isVoid=e=>"embeddedVideo"===zk.getNodeType(e)||n(e),r},renderElems:[{type:"embeddedVideo",renderElem:function(e,t,n){const r=zk.isNodeSelected(n,e),{src:o="",provider:i="bilibili"}=e,a=Eye("iframe",{attrs:{src:o.startsWith("//")?`https:${o}`:o,scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true"},style:{display:"block",width:"100%",height:"100%",border:"none"}}),u=Eye("div",{attrs:{class:"w-e-video-frame"},style:{width:"100%",height:"368rpx",borderRadius:"12rpx",overflow:"hidden",backgroundColor:"var(--d2core-item-hover, rgba(255,255,255,0.06))"}},[a]);return Eye("div",{props:{contentEditable:!1},attrs:{class:"w-e-video-embed post-video-embed","data-w-e-type":"embeddedVideo","data-video-provider":i},style:{margin:"24rpx 0",border:r?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"12rpx"}},[u])}}],elemsToHtml:[{type:"embeddedVideo",elemToHtml:function(e,t){const{src:n="",provider:r="bilibili"}=e,o=de(n),i=de(r),a=n.startsWith("//")?`https:${n}`:n;return`<div data-w-e-type="embeddedVideo" data-w-e-is-void data-video-provider="${i}" class="post-video-embed" data-video-src="${o}"><div class="post-video-embed__frame"><iframe src="${de(a)}" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe></div></div>`}}],parseElemsHtml:[{selector:'div[data-w-e-type="embeddedVideo"]',parseElemHtml:function(e,t,n){var r;e.getAttribute("data-video-provider");const o="bilibili";let i=e.getAttribute("data-video-src")||(null==(r=e.querySelector("iframe"))?void 0:r.getAttribute("src"))||"";i=i.trim();const a=function(e,t){return pe(t)}(0,i);return a.ok?{type:"embeddedVideo",provider:o,src:a.src,children:[{text:""}]}:{type:"paragraph",children:[{text:""}]}}},{selector:'div[data-w-e-type="bilibiliVideo"]',parseElemHtml:function(e,t,n){var r;let o=e.getAttribute("data-bilibili-src")||(null==(r=e.querySelector("iframe"))?void 0:r.getAttribute("src"))||"";o=o.trim();const i=pe(o);return i.ok?{type:"embeddedVideo",provider:"bilibili",src:i.src,children:[{text:""}]}:{type:"paragraph",children:[{text:""}]}}}]},Uye=new WeakMap;function Wye(e,t){t?Uye.set(e,t):Uye.delete(e)}class Gye{constructor(e){t(this,"iconSvg",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="fill:none;stroke:currentColor"><path fill="none" d="m12.296 3.464 3.02 3.956"/><path fill="none" d="M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z"/><path fill="none" d="M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path fill="none" d="m6.18 5.276 3.1 3.899"/></svg>'),t(this,"tag","button"),this.opts=e}get title(){return this.opts.getTitle()}getValue(e){return""}isActive(e){return!1}isDisabled(e){return!!e.isDisabled()}exec(e,t){var n;this.isDisabled(e)||null==(n=Uye.get(e))||n(e)}}const qye={skill:"skills",legendary:"aspect",uniqueItem:"uniqueItem",gem:"gem",summon:"summon",rune:"rune",talisman:"talisman"},Kye=new Map;function Xye(e){return e.tooltip||`${e.type||""}:${e.key||e.name||""}`}function Yye(e,t){if(t)return null==e?void 0:e.find((e=>[e.id,e.modId,e.engName,e.name].some((e=>null!=e&&String(e)===t))))}async function Zye(e,t){if("paragon"===e.type&&e.iconFile)return A(`${O}/data_img/d4/paragon/${e.iconFile}`,72);const[n,r,,,o]=Xye(e).split(":"),i=n.trim(),a=null==r?void 0:r.trim();if(!Object.hasOwn(qye,i)||!a)return"";const u=qye[i],s=x(u);try{if(!Kye.has(s)){const e=Promise.resolve().then((()=>t({key:u,url:s}))).then((e=>{const t="talisman"===i?[...(null==e?void 0:e.charm)||[],...(null==e?void 0:e.seal)||[]]:e;if(!Array.isArray(t)||!t.length)throw new Error("数据库图标数据不可用");return t})).catch((e=>{throw Kye.delete(s),e}));Kye.set(s,e)}const e=await Kye.get(s);let n=e.find((e=>null!=e.id&&String(e.id)===a))||e.find((e=>e.key===a||e.name===a));if("skill"===i){const t=!n;t&&(n=e.find((e=>Yye(e.mods,a))));const r=Yye(null==n?void 0:n.mods,o||(t?a:""));r&&(n={...n,icon:r.icon||n.icon})}return function(e,t){if(!(null==t?void 0:t.icon)&&!(null==t?void 0:t.key))return"";let n,r=e;if("legendary"===e||"talisman"===e){if(!t.icon)return"";r="legendary"===e?"aspect":e,n=`${t.icon}.webp`}else if("uniqueItem"===e)n=t.icon?`${t.icon}.webp`:`${t.key}_f.png`;else{const r="skill"===e&&"druid_earth_spike"===t.key?"druid_earth_spike2":t.key;n=`${t.icon||r}.${"rune"===e?"webp":"png"}`}return A(`${O}/data_img/d4/${r}/${n}`,72)}(i,n)}catch(l){return""}}const Jye=ve({components:{X:ge,VanPopup:k},props:{show:Boolean,label:String,sessionId:String},emits:["shown","dismiss"],setup(){const e=Ae();return{sheetStyle:S((()=>({bottom:`${e.value.bottom}px`,left:`${e.value.left}px`,width:e.value.width,maxHeight:`${Math.max(120,e.value.height-16)}px`,background:"var(--d2core-surface)","--editor-sheet-safe-bottom":e.value.bottom>0?"0px":"env(safe-area-inset-bottom, 0px)"})))}}},[["render",function(e,t,n,r,o,i){const s=j("X"),f=I,p=j("van-popup");return l(),a(p,{show:n.show,position:"bottom",round:"",teleport:"body","z-index":2200,style:d(r.sheetStyle),"data-editor-session":n.sessionId,onOpened:t[2]||(t[2]=t=>e.$emit("shown")),onClickOverlay:t[3]||(t[3]=t=>e.$emit("dismiss","overlay")),onKeydown:t[4]||(t[4]=P(T((t=>e.$emit("dismiss","escape")),["stop","prevent"]),["esc"]))},{default:u((()=>[B("div",{class:"editor-mobile-sheet","data-editor-session":n.sessionId},[B("div",{class:"editor-mobile-sheet__header"},[B("span",null,_(n.label),1),F(f,{type:"button","aria-label":"关闭",onPointerdown:t[0]||(t[0]=T((()=>{}),["prevent"])),onClick:t[1]||(t[1]=t=>e.$emit("dismiss","close"))},{default:u((()=>[F(s,{size:20})])),_:1})]),B("div",{class:"editor-mobile-sheet__body"}
147,[c(e.$slots,"content",{},void 0,!0)])],8,["data-editor-session"])])),_:3},8,["show","style","data-editor-session"])}],["__scopeId","data-v-f849fc99"]]),Qye={skill:{label:"技能",icon:H},paragonNode:{label:"传奇节点",icon:z},paragonGlyph:{label:"巅峰雕文",icon:ye},legendary:{label:"威能",icon:we},uniqueItem:{label:"装备",icon:z},gem:{label:"宝石",icon:ye},summon:{label:"召唤材料",icon:Ee},rune:{label:"符文",icon:V},talisman:{label:"护身符",icon:be},d2r_skill:{label:"技能",icon:H},d2r_runeword:{label:"符文之语",icon:$},d2r_runewordItem:{label:"符文之语",icon:$},d2r_uniqueItem:{label:"暗金装备",icon:z},d2r_normalItem:{label:"基底装备",icon:M},d2r_setItem:{label:"套装装备",icon:R},d2r_craftedItem:{label:"手工装备",icon:L},d2r_presetItem:{label:"物品",icon:me},d2r_socketItem:{label:"镶嵌物",icon:ye},d2r_stat:{label:"属性",icon:N}},eme={label:"词条",icon:me};const tme=ve({name:"MentionModal",components:{UiFloating:ke,EditorMobileSheet:Jye},props:{mobile:Boolean,sessionId:String,loading:Boolean,error:String,reference:Object,mentionData:{type:Array,default:()=>[]}},emits:["insertMention","hideMentionModal"],data:()=>({TOOLTIP_COLOR_MAP:v,inputFocused:!1,searchVal:"",selectedIndex:0,iconUrls:{},failedIconUrls:{}}),computed:{searchedList(){const e=this.searchVal.trim().toLowerCase();if(""===e)return[];return this.mentionData.filter((t=>!!t.name.toLowerCase().includes(e)||!(!t.engName||!t.engName.toLowerCase().includes(e)))).slice(0,30)}},watch:{searchedList(e){this.selectedIndex=0,this.$nextTick((()=>this.scrollSelectedIntoView())),this.loadMentionIcons(e)}},beforeUnmount(){this._disposed=!0,clearTimeout(this._searchTimer)},methods:{onDismiss(e){this.$emit("hideMentionModal","escape"===e||"close"===e)},mentionTypeKeyFromTooltip:e=>null!=e.tooltip&&""!==e.tooltip?e.tooltip.split(":")[0].trim():e.type,getMentionType(e){return e.paragonKind?Qye["glyph"===e.paragonKind?"paragonGlyph":"paragonNode"]:Qye[this.mentionTypeKeyFromTooltip(e)]||eme},getMentionIconUrl(e){const t=this.iconUrls[Xye(e)];return t&&!this.failedIconUrls[t]?t:""},onIconError(e){this.failedIconUrls[e]=!0},async loadMentionIcons(e){const t=this._iconRequestVersion=(this._iconRequestVersion||0)+1;await Promise.all(e.map((async e=>{const n=Xye(e);if(this.iconUrls[n])return;const r=await Zye(e,(e=>this.$store.dispatch("fetchDataBase",e)));this._disposed||t!==this._iconRequestVersion||(this.iconUrls[n]=r)})))},inputKeyupHander(e){if(this.searchedList.length&&!e.isComposing)return"ArrowDown"===e.key?(this.selectedIndex=(this.selectedIndex+1)%this.searchedList.length,void this.$nextTick((()=>this.scrollSelectedIntoView()))):"ArrowUp"===e.key?(this.selectedIndex=(this.selectedIndex-1+this.searchedList.length)%this.searchedList.length,void this.$nextTick((()=>this.scrollSelectedIntoView()))):void 0},scrollSelectedIntoView(){const e=this.$refs.listRef;if(!e)return;const t=e.$el??e,n=t.querySelectorAll("li")[this.selectedIndex];if(!n)return;const r=t.scrollTop,o=r+t.clientHeight,i=n.getBoundingClientRect().top-t.getBoundingClientRect().top+r,a=i+n.offsetHeight;i<r?t.scrollTop=i:a>o&&(t.scrollTop=a-t.clientHeight)},insertMentionHandler(e,t,n,r){this.$emit("insertMention",e,t,n,r)},handleConfirm(){const e=this.searchedList[this.selectedIndex];if(e){const{type:t,name:n,tooltip:r,color:o}=e;this.insertMentionHandler(t,n,r,o)}},debounceInputHandler(e){var t,n;const r=(null==(t=e.detail)?void 0:t.value)??(null==(n=e.target)?void 0:n.value)??"";clearTimeout(this._searchTimer),this._searchTimer=setTimeout((()=>{this.searchVal=r}),300)}}},[["render",function(e,t,n,r,o,i){const c=U,f=q,d=s,v=X;return l(),a(K(n.mobile?"EditorMobileSheet":"UiFloating"),{show:n.mobile||!!n.reference,reference:n.reference,"session-id":n.sessionId,placement:"bottom",align:"start",offset:6,"fit-height":"",role:"dialog",label:"插入数据库词条",onShown:t[1]||(t[1]=e=>o.inputFocused=!0),onDismiss:i.onDismiss},{content:u((()=>[F(d,{class:p(["mention-modal",{"mention-modal--mobile":n.mobile}]),"data-editor-session":n.sessionId},{default:u((()=>[F(c,{class:"mention-input",value:o.searchVal,focus:o.inputFocused,placeholder:"搜索数据库","placeholder-style":"opacity: 0.5","aria-label":"搜索数据库",onKeyup:i.inputKeyupHander,onConfirm:i.handleConfirm,onInput:i.debounceInputHandler},null,8,["value","focus","onKeyup","onConfirm","onInput"]),i.searchedList.length?(l(),a(d,{key:0,ref:"listRef",class:"mention-list"},{default:u((()=>[B("ul",{role:"listbox","aria-label":"数据库词条"},[(l(!0),W(Z,null,G(i.searchedList,((e,n)=>(l(),W("li",{class:p({selected:o.selectedIndex===n}),key:n,role:"option","aria-selected":o.selectedIndex===n,onMousedown:t[0]||(t[0]=T((()=>{}),["prevent"])),onClick:t=>i.insertMentionHandler(e.type,e.name,e.tooltip,e.color)},[F(d,{class:"mention-item"},{default:u((()=>[F(d,{class:"mention-item__icon","aria-hidden":"true"},{default:u((()=>[i.getMentionIconUrl(e)?(l(),a(f,{key:i.getMentionIconUrl(e),src:i.getMentionIconUrl(e),class:"mention-item__image",mode:"aspectFit",onError:t=>i.onIconError(i.getMentionIconUrl(e))},null,8,["src","onError"])):(l(),a(K(i.getMentionType(e).icon),{key:1,size:18,"stroke-width":1.8}))])),_:2},1024),F(d,{class:"mention-item__names"},{default:u((()=>[F(v,{class:p(["mention-item__name",e.color||o.TOOLTIP_COLOR_MAP[i.mentionTypeKeyFromTooltip(e)]||""])},{default:u((()=>[Y(_(e.name),1)])),_:2},1032,["class"]),e.engName?(l(),a(v,{key:0,class:"mention-item__name-en"},{default:u((()=>[Y(_(e.engName),1)])),_:2},1024)):h("",!0)])),_:2},1024),F(v,{class:"mention-item__type"},{default:u((()=>[Y(_(i.getMentionType(e).label),1)])),_:2},1024)])),_:2},1024)],42,["aria-selected","onClick"])))),128))])])),_:1},512)):n.mobile?(l(),a(d,{key:1,class:"mention-empty",role:"status"},{default:u((()=>[Y(_(n.loading?"正在加载数据库…":n.error||(o.searchVal.trim()?"没有找到相关词条":"输入名称搜索数据库词条")),1)])),_:1})):h("",!0)])),_:1},8,["class","data-editor-session"])])),_:1},40,["show","reference","session-id","onDismiss"])}
147],["__scopeId","data-v-5aafe200"]]);const nme=ve({name:"InsertVideoModal",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","confirm"],data:()=>({videoUrl:""}),computed:{dialogWidthPx:()=>Q?"min(94vw, 680px)":560,fieldRules(){const e=String(this.$tm("d4.ui.bbsPost.videoEmbedErrInvalidFormat"));return[{required:!0,message:String(this.$tm("d4.ui.bbsPost.videoEmbedErrEmpty"))},{validator:e=>he(e||"").ok,message:e}]}},watch:{visible(e){e&&(this.videoUrl="",this.$nextTick((()=>{const e=this.$refs.formRef;e&&"function"==typeof e.resetValidation&&e.resetValidation()})))}},methods:{onUpdateShow(e){this.$emit("update:visible",e)},onCancel(){this.$emit("update:visible",!1)},onConfirm(){const e=this.$refs.formRef;e&&e.validate().then((()=>{const e=he(this.videoUrl||"");e.ok?(this.$emit("confirm",{src:e.src,provider:"bilibili"}),this.$emit("update:visible",!1)):J({title:String(this.$tm("d4.ui.bbsPost.videoEmbedErrInvalidFormat")),icon:"none"})})).catch((()=>{}))}}},[["render",function(e,t,n,r,o,i){const c=j("van-field"),f=j("van-form"),d=X,p=s,v=j("van-dialog");return l(),a(v,{show:n.visible,class:"insert-video-dialog",title:e.$tm("d4.ui.bbsPost.videoEmbedModalTitle"),theme:"dark","show-confirm-button":!1,"show-cancel-button":!1,"close-on-click-overlay":"","lock-scroll":!1,width:i.dialogWidthPx,"onUpdate:show":i.onUpdateShow},{default:u((()=>[n.visible?(l(),a(p,{key:0,class:"insert-video-dialog__body"},{default:u((()=>[F(f,{ref:"formRef"},{default:u((()=>[F(c,{modelValue:o.videoUrl,"onUpdate:modelValue":t[0]||(t[0]=e=>o.videoUrl=e),name:"videoUrl",label:e.$tm("d4.ui.bbsPost.videoEmbedCodeLabel"),placeholder:e.$tm("d4.ui.bbsPost.videoEmbedCodePh"),type:"textarea",autosize:"",rows:3,maxlength:500,"show-word-limit":!1,rules:i.fieldRules,class:"insert-video-dialog__field"},null,8,["modelValue","label","placeholder","rules"])])),_:1},512),F(p,{class:"insert-video-dialog__actions"},{default:u((()=>[F(p,{class:"insert-video-dialog__btn insert-video-dialog__btn--ghost",onClick:i.onCancel},{default:u((()=>[F(d,{class:"insert-video-dialog__btn-text"},{default:u((()=>[Y(_(e.$tm("d4.ui.bbsPost.videoEmbedCancel")),1)])),_:1})])),_:1},8,["onClick"]),F(p,{class:"insert-video-dialog__btn insert-video-dialog__btn--primary",onClick:i.onConfirm},{default:u((()=>[F(d,{class:"insert-video-dialog__btn-text insert-video-dialog__btn-text--primary"},{default:u((()=>[Y(_(e.$tm("d4.ui.bbsPost.videoEmbedConfirm")),1)])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:1})):h("",!0)])),_:1},8,["show","title","width","onUpdate:show"])}],["__scopeId","data-v-00ff1f2f"]]);var rme=Object.defineProperty,ome=Object.defineProperties,ime=Object.getOwnPropertyDescriptors,ame=Object.getOwnPropertySymbols,ume=Object.prototype.hasOwnProperty,sme=Object.prototype.propertyIsEnumerable,lme=(e,t,n)=>t in e?rme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cme=(e,t)=>{for(var n in t||(t={}))ume.call(t,n)&&lme(e,n,t[n]);if(ame)for(var n of ame(t))sme.call(t,n)&&lme(e,n,t[n]);return e},fme=(e,t)=>ome(e,ime(t));function dme(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var pme=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const hme=ee({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=r(null),i=y(null),a=r(""),u=()=>{if(!n.value)return;const r=te(e.defaultContent);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?lye.simpleEditorConfig:lye.editorConfig,c=sye(sye({},l.hoverbarKeys||{}),u.hoverbarKeys||{});EP({selector:n,config:sye(sye(sye({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:lye.plugins})}({selector:n.value,mode:e.mode,content:r||[],html:e.defaultHtml||e.modelValue||"",config:fme(cme({},e.defaultConfig),{onCreated(n){if(i.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){const e=dme("onCreated");throw new Error(e)}},onChange(n){const r=n.getHtml();if(a.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){const e=dme("onChange");throw new Error(e)}},onDestroyed(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){const e=dme("onDestroyed");throw new Error(e)}}
147,onMaxLength(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){const e=dme("onMaxLength");throw new Error(e)}},onFocus(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){const e=dme("onFocus");throw new Error(e)}},onBlur(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){const e=dme("onBlur");throw new Error(e)}},customAlert(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){const e=dme("customAlert");throw new Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){const e=dme("customPaste");throw new Error(e)}let o;return t.emit("customPaste",n,r,(e=>{o=e})),o}})})};return o((()=>{u()})),m((()=>e.modelValue),(e=>{e!==a.value&&function(e){const t=i.value;null!=t&&t.setHtml(e)}(e)})),{box:n}}}),vme={ref:"box",style:{height:"100%"}};var gme=pme(hme,[["render",function(e,t,n,r,o,i){return l(),W("div",vme,null,512)}]]);const yme=ee({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=r(null),n=n=>{if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");zk.getToolbar(n)||function(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?lye.simpleToolbarConfig:lye.toolbarConfig;(function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(CF(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=WA({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new AP(n,i);KO.set(a,e),XO.set(e,a)})(n,{selector:t,config:sye(sye({},u),o)})}({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return ne((()=>{const{editor:t}=e;null!=t&&n(t)})),{selector:t}}}),mme={ref:"selector"};var bme=pme(yme,[["render",function(e,t,n,r,o,i){return l(),W("div",mme,null,512)}]]);lye.registerModule(Vye),lye.registerModule(Hye),lye.registerPlugin((e=>function(e,t){const{normalizeNode:n}=e;return e.normalizeNode=r=>t.withoutNormalizing(e,(()=>n(r))),e}(e,Gd)));let wme=!1;const Eme=ve({components:{Editor:gme,Toolbar:bme,MentionModal:tme,InsertVideoModal:nme,EditorMobileSheet:Jye},props:{userId:String,modelValue:String,defaultGame:String,activeChar:String,showDatabaseSelector:{type:Boolean,default:!0},videoEnabled:{type:Boolean,default:!0},toolbarKeys:{type:Array,default:null},autoSize:{type:Boolean,default:!1},minRows:{type:Number,default:3},maxLength:{type:Number,default:0},mentionEnabled:{type:Boolean,default:!0},placeholder:{type:String,default:"请输入内容...输入斜杠可插入数据库词条"}},emits:["update:modelValue"],setup(e,t){var n;const{tm:o}=g(),a=r(e.defaultGame||"");m((()=>e.defaultGame),(e=>{a.value=e||""}));const u=se();var s;wme||(wme=!0,lye.registerMenu({key:"insertEmbeddedVideo",factory:(s={getTitle:()=>String(o("d4.ui.bbsPost.videoEmbedMenuTitle"))},function(){return new Gye(s)})}));const l=y(),c=r(null),f=r(e.modelValue);let d,p=e.modelValue,h=!1;const v=Iye((()=>a.value),(()=>e.mentionEnabled),{getActiveChar:()=>e.activeChar,isMobile:()=>R.mobile.value,capture:(e,t)=>R.session?R.capture(e,t):void 0}),b=r(0),w=S((()=>Mye(b.value,e.maxLength)));m((()=>e.modelValue),(e=>f.value=e));const E=r(!1),x=y(null),C=r(null),D=r(null),A=r(0),O=r(0),k=S((()=>A.value>0)),B=r(!1),_=r(""),F=r(""),T=r("");let P,j,I;const N=(e="close")=>{B.value=!1,!1===e||h||null==P||P.bookmark.restore(),null==P||P.bookmark.release(),P=null},L=()=>{null==j||j.bookmark.release(),j=null,null==I||I.remove(),I=null},R=Lye({capabilities:()=>({mention:e.mentionEnabled&&["d4","d2r"].includes(a.value),image:!k.value}),onDeactivate:()=>{N(!1),v.hideMentionModal(!1)},commands:{link(e,t){N(!1);const n=t();return!!n&&(P={editor:e,bookmark:n},_.value="",F.value="",T.value="",B.value=!0,!0)},mention:e=>(v.showMentionModal(e,{source:"toolbar"}),!0),image(e,t){if("undefined"==typeof document)return!1;L();const n=t();return!!n&&(j={editor:e,bookmark:n},I=document.createElement("input"),I.type="file",I.accept="image/*",I.hidden=!0,I.dataset.editorSession=R.session.id,I.addEventListener("change",M,{once:!0}),I.addEventListener("cancel",L,{once:!0}),document.body.appendChild(I),I.click(),!0)}}});async function M(e){var t;const n=null==(t=e.target.files)?void 0:t[0],r=j;if(j=null,null==I||I.remove(),I=null,n&&r){if(n.type&&!n.type.startsWith("image/"))return r.bookmark.release(),void J({title:"请选择图片文件",icon:"none"});$();try{const e=await xe(n,"bbs",V);!function(e,t,n,r,o=!0){Aye(e,t,(()=>!!(null==n?void 0:n.restore(o))&&(Tye(e,t,{type:"image",src:r,alt:"",href:"",style:{},children:[{text:""}]}),!0)))}(r.editor,{Editor:Gd,Transforms:jp},r.bookmark,`${ue}/${e}`,R.isActive(r.editor))}catch(o){h||J({title:"图片上传失败,请重试",icon:"none"})}finally{r.bookmark.release(),H()}}else null==r||r.bookmark.release()}m([k,a],(()=>{var e;return null==(e=R.session)?void 0:e.refresh()}));const z=S((()=>{const e=O.value,t="图片上传中";return e>0?`图片上传中 ${e}%`:t})),$=()=>{A.value+=1,O.value=0},H=()=>{A.value=Math.max(0,A.value-1),0===A.value&&(O.value=0)},V=e=>{const t=Math.round(100*Math.max(0,Math.min(1,(null==e?void 0:e.percent)||0)));O.value=t},U=t=>{var n;!1!==e.videoEnabled&&(ce(null==(n=u.state.user)?void 0:n.userInfo,"legendary")?(x.value=t,C.value=t.selection?JSON.parse(JSON.stringify(t.selection)):null,E.value=!0):D.value&&D.value.open("legendary","富文本插入视频"))},W=S((()=>
147{if(e.toolbarKeys)return{toolbarKeys:[...e.toolbarKeys]};const t=["insertLink","uploadImage","insertImage"];return!1!==e.videoEnabled&&t.push("insertEmbeddedVideo"),t.push("insertTable","|","headerSelect","color","bold","italic","underline","blockquote","bulletedList","numberedList","|","undo","redo"),{toolbarKeys:t}})),G=S((()=>({autoFocus:!1,placeholder:e.placeholder,maxLength:e.maxLength||void 0,hoverbarKeys:{},MENU_CONF:{color:{colors:["#ffffff","#888888","#e9c964","#cda1d8","#f7c99c","#f8930a","#f1f25c","#6d9eeb","#43d630","#ff5353"]},uploadImage:{customUpload:async(e,t)=>{$();try{const n=await xe(e,"bbs",V);O.value=100,t(`${ue}/${n}`,"","")}catch(Et){}finally{H()}}}},EXTEND_CONF:{...e.mentionEnabled?{mentionConfig:{showModal:v.showMentionModal,hideModal:v.hideMentionModal,triggerKey:"/"}}:{}}})));i((()=>{var e,t,n;h=!0,N(!1),L();const r=l.value;null!=r&&(Wye(r,null),null==(n=null==(t=null==(e=zk.getTextarea(r))?void 0:e.onDOMSelectionChange)?void 0:t.cancel)||n.call(t),r.destroy())}));return{editorRef:l,editorRoot:c,mobile:R.mobile,mobileActive:S((()=>R.mobile.value&&R.isActive(l.value))),editorSessionId:null==(n=R.session)?void 0:n.id,mobileLinkVisible:B,mobileLinkUrl:_,mobileLinkText:F,mobileLinkError:T,closeMobileLink:N,insertMobileLink:()=>{const t=function(e){const t=String(e||"").trim();if(!t)return"";const n=/^(https?:|mailto:|tel:)/i.test(t)?t:/^[\w.-]+\.[a-z]{2,}(?:[/:?#]|$)/i.test(t)?`https://${t}`:"";if(!n)return"";try{const e=new URL(n);return["http:","https:","mailto:","tel:"].includes(e.protocol)?e.href:""}catch(r){return""}}(_.value);if(!t)return void(T.value="请输入有效的链接地址");const n=F.value.trim()||t,r=P;(null==r?void 0:r.bookmark.isValid())?e.maxLength>0&&Rye(r.editor)+n.length>e.maxLength?T.value="剩余字数不足,无法插入链接":(!function(e,t,n,r,o){Aye(e,t,(()=>
147!!(null==n?void 0:n.restore())&&(t.Transforms.unwrapNodes(e,{match:e=>"link"===e.type,split:!0}),Tye(e,t,{type:"link",url:r,children:[{text:o}]}),!0)))}(r.editor,{Editor:Gd,Transforms:jp},r.bookmark,t,n),N(!1)):N(!1)},getContent:()=>{var e;const t=null==(e=l.value)?void 0:e.getHtml();return void 0===t||t===d?p:t},valueHtml:f,mode:"default",toolbarConfig:W,editorConfig:G,handleCreated:t=>{l.value=t,R.register(t,(()=>c.value)),d=t.getHtml(),p=e.modelValue,b.value=Rye(t),Wye(t,!1===e.videoEnabled?null:U)},handleChange:e=>{if(h)return;b.value=Rye(e);const n=e.getHtml();n!==d&&(d=n,p=n,t.emit("update:modelValue",n))},...v,remainingTextHint:w,videoModalVisible:E,onEmbeddedVideoConfirm:e=>{const{src:t,provider:n="bilibili"}=e||{},r=x.value;if(x.value=null,!r||!t)return;r.focus();const o=C.value;if(C.value=null,o)try{r.select(o)}catch(i){}r.insertNode({type:"embeddedVideo",provider:n,src:t,children:[{text:""}]})},tierGateModalRef:D,GAME_OPTIONS:[{key:"d4",label:"暗黑4"},{key:"d2r",label:"暗黑2"}],selectedGame:a,isImageUploading:k,imageUploadProgress:O,imageUploadText:z}}},[["render",function(e,t,n,r,o,i){const c=j("Toolbar"),f=j("Editor",!0),v=s,g=X,y=j("mention-modal"),m=U,b=ae,w=I,E=j("editor-mobile-sheet"),x=j("insert-video-modal"),C=fe(K("tier-gate-modal"),le);return l(),W("div",{ref:"editorRoot",class:p(["editor",{"editor--auto-size":n.autoSize,"editor--limited":n.maxLength>0,"editor--mobile":r.mobile,"editor--mobile-active":r.mobileActive}]),style:d(n.autoSize?{"--editor-min-rows":n.minRows}:void 0)},[re(B("div",{class:"editor-toolbar-row"},[F(c,{class:"editor-toolbar",editor:r.editorRef,defaultConfig:r.toolbarConfig,mode:r.mode},null,8,["editor","defaultConfig","mode"]),n.mentionEnabled&&n.showDatabaseSelector?(l(),W("div",{key:0,class:"db-selector"},[B("span",{class:"db-selector__label"},"数据库"),re(B("select",{"onUpdate:modelValue":t[0]||(t[0]=e=>r.selectedGame=e),class:"db-selector__select"},[B("option",{value:""},"未选择"),(l(!0),W(Z,null,G(r.GAME_OPTIONS,(e=>(l(),W("option",{key:e.key,value:e.key},_(e.label),9,["value"])))),128))],512),[[ie,r.selectedGame]])])):h("",!0),r.remainingTextHint?(l(),W("span",{key:1,class:"editor-length-hint","aria-live":"polite"},_(r.remainingTextHint),1)):h("",!0)],512),[[oe,!r.mobile]]),r.mobile&&r.remainingTextHint?(l(),W("span",{key:0,class:"editor-length-hint editor-length-hint--mobile","aria-live":"polite"},_(r.remainingTextHint),1)):h("",!0),F(v,{class:"editor-main"},{default:u((()=>[F(f,{style:d({overflowY:n.autoSize?"visible":"hidden"}),modelValue:r.valueHtml,"onUpdate:modelValue":t[1]||(t[1]=e=>r.valueHtml=e),defaultConfig:r.editorConfig,mode:r.mode,onOnCreated:r.handleCreated,onOnChange:r.handleChange},null,8,["style","modelValue","defaultConfig","mode","onOnCreated","onOnChange"]),r.isImageUploading?(l(),a(v,{key:0,class:"editor-upload-mask"},{default:u((()=>[F(v,{class:"editor-upload-card"},{default:u((()=>[F(v,{class:"editor-upload-spinner"}),F(g,{class:"editor-upload-text"},{default:u((()=>[Y(_(r.imageUploadText),1)])),_:1}),F(v,{class:"editor-upload-progress"},{default:u((()=>[F(v,{class:"editor-upload-progress__bar",style:d({width:`${r.imageUploadProgress||8}%`})}
147,null,8,["style"])])),_:1})])),_:1})])),_:1})):h("",!0),e.isShowModal?(l(),a(y,{key:1,mentionData:e.mentionData,reference:e.mentionReference,mobile:r.mobile,"session-id":r.editorSessionId,loading:e.mentionLoading,error:e.mentionError,onHideMentionModal:e.hideMentionModal,onInsertMention:e.insertMention},null,8,["mentionData","reference","mobile","session-id","loading","error","onHideMentionModal","onInsertMention"])):h("",!0),r.mobileLinkVisible?(l(),a(E,{key:2,show:"",label:"插入链接","session-id":r.editorSessionId,onDismiss:r.closeMobileLink},{content:u((()=>[B("div",{class:"editor-link-form"},[F(b,null,{default:u((()=>[Y("链接地址"),F(m,{modelValue:r.mobileLinkUrl,"onUpdate:modelValue":t[2]||(t[2]=e=>r.mobileLinkUrl=e),type:"text",inputmode:"url",placeholder:"https://","aria-label":"链接地址"},null,8,["modelValue"])])),_:1}),F(b,null,{default:u((()=>[Y("显示文字"),F(m,{modelValue:r.mobileLinkText,"onUpdate:modelValue":t[3]||(t[3]=e=>r.mobileLinkText=e),type:"text",placeholder:"留空时显示链接地址","aria-label":"显示文字"},null,8,["modelValue"])])),_:1}),r.mobileLinkError?(l(),W("span",{key:0,class:"editor-link-form__error",role:"alert"},_(r.mobileLinkError),1)):h("",!0),F(w,{type:"button",onPointerdown:t[4]||(t[4]=T((()=>{}),["prevent"])),onClick:r.insertMobileLink},{default:u((()=>[Y("插入链接")])),_:1},8,["onClick"])])])),_:1},8,["session-id","onDismiss"])):h("",!0),n.videoEnabled?(l(),a(x,{key:3,visible:r.videoModalVisible,"onUpdate:visible":t[5]||(t[5]=e=>r.videoModalVisible=e),onConfirm:r.onEmbeddedVideoConfirm},null,8,["visible","onConfirm"])):h("",!0),F(C,{ref:"tierGateModalRef"},null,512)])),_:1})],6)}],["__scopeId","data-v-a13170cb"]]),xme=Object.freeze(Object.defineProperty({__proto__:null,default:Eme},Symbol.toStringTag,{value:"Module"}));export{Gd as B,gme as E,tme as M,Zd as N,zk as Q,bme as T,ip as V,ke as _,Mye as a,Lye as b,Iye as c,Eme as d,Ce as e,Se as f,Rye as g,xme as h,jp as m,lp as q,zye as s,Ae as u,$ye as w};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.