You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

193 lines
764 KiB

  1. var z=Object.assign;var u6=(s6,Fv,Be)=>new Promise((sr,su)=>{var Hd=Qr=>{try{lu(Be.next(Qr))}catch(cu){su(cu)}},Ud=Qr=>{try{lu(Be.throw(Qr))}catch(cu){su(cu)}},lu=Qr=>Qr.done?sr(Qr.value):Promise.resolve(Qr.value).then(Hd,Ud);lu((Be=Be.apply(s6,Fv)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9199],{3996:function(s6,Fv,Be){"use strict";Be.d(Fv,{M:function(){return nhe},o:function(){return rhe}});var sr=Be(67294),su;if(typeof Be.g=="undefined"){if("ActiveXObject"in window){var Hd="\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668";Hd+=`
  2. Sorry, wangEditor V5+ versions do not support IE browser.`,console.error(Hd)}Ud(),lu()}else Be.g&&((su=Be.g.navigator)===null||su===void 0?void 0:su.userAgent.match("QQBrowser"))&&(Ud(),lu());function Ud(){typeof globalThis=="undefined"&&(window.globalThis=window)}function lu(){typeof AggregateError=="undefined"&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if(typeof Be.g=="object"){var Qr=Object.getOwnPropertyDescriptor(Be.g,"window");(!Be.g.window||Qr.set)&&(Be.g.window=Be.g,Be.g.requestAnimationFrame=function(){},Be.g.navigator={userAgent:""},Be.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},Be.g.btoa=function(){},Be.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),Be.g.document!=null&&Be.g.document.getElementsByTagName==null&&(Be.g.document.getElementsByTagName=function(){return[]})}/*!
  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 cu(e){return Object.prototype.toString.call(e)==="[object Object]"}function en(e){var t,n;return cu(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(cu(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Gt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];{var i=cI[e],o=i?typeof i=="function"?i.apply(null,n):i:"unknown error nr: "+e;throw Error("[Immer] "+o)}}function Ho(e){return!!e&&!!e[En]}function Uo(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===fI}(e)||Array.isArray(e)||!!e[y6]||!!e.constructor[y6]||kv(e)||Pv(e))}function ll(e,t,n){n===void 0&&(n=!1),fu(e)===0?(n?Object.keys:Wv)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function fu(e){var t=e[En];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:kv(e)?2:Pv(e)?3:0}function Tv(e,t){return fu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rI(e,t){return fu(e)===2?e.get(t):e[t]}function l6(e,t,n){var r=fu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function iI(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function kv(e){return sI&&e instanceof Map}function Pv(e){return lI&&e instanceof Set}function Vo(e){return e.o||e.t}function _v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=dI(e);delete t[En];for(var n=Wv(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Nv(e,t){return t===void 0&&(t=!1),Iv(e)||Ho(e)||!Uo(e)||(fu(e)>1&&(e.set=e.add=e.clear=e.delete=oI),Object.freeze(e),t&&ll(e,function(n,r){return Nv(r,!0)},!0)),e}function oI(){Gt(2)}function Iv(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ei(e){var t=pI[e];return t||Gt(18,e),t}function c6(){return du||Gt(0),du}function jv(e,t){t&&(ei("Patches"),e.u=[],e.s=[],e.v=t)}function Vd(e){Rv(e),e.p.forEach(aI),e.p=null}function Rv(e){e===du&&(du=e.l)}function f6(e){return du={p:[],l:du,h:e,m:!0,_:0}}function aI(e){var t=e[En];t.i===0||t.i===1?t.j():t.O=!0}function Lv(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ei("ES5").S(t,e,r),r?(n[En].P&&(Vd(t),Gt(4)),Uo(e)&&(e=Wd(t,e),t.l||Gd(t,e)),t.u&&ei("Patches").M(n[En],e,t.u,t.s)):e=Wd(t,n,[]),Vd(t),t.u&&t.v(t.u,t.s),e!==m6?e:void 0}function Wd(e,t,n){if(Iv(t))return t;var r=t[En];if(!r)return ll(t,function(o,a){return d6(e,r,t,o,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Gd(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=_v(r.k):r.o;ll(r.i===3?new Set(i):i,function(o,a){return d6(e,r,i,o,a,n)}),Gd(e,i,!1),n&&e.u&&ei("Patches").R(r,n,e.u,e.s)}return r.o}function d6(e,t,n,r,i,o){if(i===n&&Gt(5),Ho(i)){var a=Wd(e,i,o&&t&&t.i!==3&&!Tv(t.D,r)?o.concat(r):void 0);if(l6(n,r,a),!Ho(a))return;e.m=!1}if(Uo(i)&&!Iv(i)){if(!e.h.F&&e._<1)return;Wd(e,i),t&&t.A.l||Gd(e,i)}}function Gd(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Nv(t,n)}function Mv(e,t){var n=e[En];return(n?Vo(n):e)[t]}function p6(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 zv(e){e.P||(e.P=!0,e.l&&zv(e.l))}function Hv(e){e.o||(e.o=_v(e.t))}function Uv(e,t,n){var r=kv(t)?ei("MapSet").N(t,n):Pv(t)?ei("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),u={i:a?1:0,A:o?o.A:c6(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},s=u,l=qd;a&&(s=[u],l=Kd);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(t,n):ei("ES5").J(t,n);return(n?n.A:c6()).p.push(r),r}function uI(e){return Ho(e)||Gt(22,e),function t(n){if(!Uo(n))return n;var r,i=n[En],o=fu(n);if(i){if(!i.P&&(i.i<4||!ei("ES5").K(i)))return i.t;i.I=!0,r=h6(n,o),i.I=!1}else r=h6(n,o);return ll(r,function(a,u){i&&rI(i.t,a)===u||l6(r,a,t(u))}),o===3?new Set(r):r}(e)}function h6(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _v(e)}var g6,du,Vv=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",sI=typeof Map!="undefined",lI=typeof Set!="undefined",v6=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",m6=Vv?Symbol.for("immer-nothing"):((g6={})["immer-nothing"]=!0,g6),y6=Vv?Symbol.for("immer-draftable"):"__$immer_draftable",En=Vv?Symbol.for("immer-state"):"__$immer_state",cI={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},fI=""+Object.prototype.constructor,Wv=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,dI=Object.getOwnPropertyDescriptors||function(e){var t={};return Wv(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},pI={},qd={get:function(e,t){if(t===En)return e;var n=Vo(e);if(!Tv(n,t))return function(i,o,a){var u,s=p6(o,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Uo(r)?r:r===Mv(e.t,t)?(Hv(e),e.o[t]=Uv(e.A.h,r,e)):r},has:function(e,t){return t in Vo(e)},ownKeys:function(e){return Reflect.ownKeys(Vo(e))},set:function(e,t,n){var r=p6(Vo(e),t);if(r==null?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Mv(Vo(e),t),o=i==null?void 0:i[En];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(iI(n,i)&&(n!==void 0||Tv(e.t,t)))return!0;Hv(e),zv(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Mv(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Hv(e),zv(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Vo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Gt(12)}},Kd={};ll(qd,function(e,t){Kd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Kd.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Gt(13),qd.deleteProperty.call(this,e[0],t)},Kd.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&Gt(14),qd.set.call(this,e[0],t,n,e[0])};var hI=function(){function e(n){var r=this;this.g=v6,this.F=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var u=o;o=i;var s=r;return function(p){var m=this;p===void 0&&(p=u);for(var v=arguments.length,g=Array(v>1?v-1:0),y=1;y<v;y++)g[y-1]=arguments[y];return s.produce(p,function(h){var $;return($=o).call.apply($,[m,h].concat(g))})}}var l;if(typeof o!="function"&&Gt(6),a!==void 0&&typeof a!="function"&&Gt(7),Uo(i)){var c=f6(r),f=Uv(r,i,void 0),d=!0;try{l=o(f),d=!1}finally{d?Vd(c):Rv(c)}return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(p){return jv(c,a),Lv(p,c)},function(p){throw Vd(c),p}):(jv(c,a),Lv(l,c))}if(!i||typeof i!="object")return(l=o(i))===m6?void 0:(l===void 0&&(l=i),r.F&&Nv(l,!0),l);Gt(21,i)},this.produceWithPatches=function(i,o){return typeof i=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(d){return i.apply(void 0,[d].concat(c))})}:[r.produce(i,o,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Uo(n)||Gt(8),Ho(n)&&(n=uI(n));var r=f6(this),i=Uv(this,n,void 0);return i[En].C=!0,Rv(r),i},t.finishDraft=function(n,r){var i=n&&n[En];i&&i.C||Gt(9),i.I&&Gt(10);var o=i.A;return jv(o,r),Lv(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!v6&&Gt(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=ei("Patches").$;return Ho(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},e}(),xn=new hI,Yd=xn.produce;xn.produceWithPatches.bind(xn),xn.setAutoFreeze.bind(xn),xn.setUseProxies.bind(xn),xn.applyPatches.bind(xn);var b6=xn.createDraft.bind(xn),$6=xn.finishDraft.bind(xn);function xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xd=new WeakMap,cl=new WeakMap,w6=new WeakMap,E6=new WeakMap,x6=new WeakMap,S6=new WeakMap;function D6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gI=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of E.pathRefs(e))GI.transform(n,t);for(var r of E.pointRefs(e))qI.transform(r,t);for(var i of E.rangeRefs(e))XI.transform(i,t);var o=new Set,a=[],u=p=>{if(p){var m=p.join(",");o.has(m)||(o.add(m),a.push(p))}},s=Xd.get(e)||[],l=vI(t);for(var c of s){var f=P.transform(c,t);u(f)}for(var d of l)u(d);Xd.set(e,a),_.transform(e,t),e.operations.push(t),E.normalize(e),t.type==="set_selection"&&(e.marks=null),cl.get(e)||(cl.set(e,!0),Promise.resolve().then(()=>{cl.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(j.isExpanded(r))_.setNodes(e,{[t]:n},{match:J.isText,split:!0});else{var i=Jd(Jd({},E.marks(e)||{}),{},{[t]:n});e.marks=i,cl.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&j.isCollapsed(n)&&_.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&j.isCollapsed(n)&&_.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&j.isExpanded(n)&&_.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?q.fragment(e,t):[]},insertBreak:()=>{_.splitNodes(e,{always:!0})},insertFragment:t=>{_.insertFragment(e,t)},insertNode:t=>{_.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Jd({text:t},r);_.insertNodes(e,i)}else _.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!J.isText(n)){if(ne.isElement(n)&&n.children.length===0){var i={text:""};_.insertNodes(e,i,{at:r.concat(0),voids:!0});return}for(var o=E.isEditor(n)?!1:ne.isElement(n)&&(e.isInline(n)||n.children.length===0||J.isText(n.children[0])||e.isInline(n.children[0])),a=0,u=0;u<n.children.length;u++,a++){var s=q.get(e,r);if(!J.isText(s)){var l=n.children[u],c=s.children[a-1],f=u===n.children.length-1,d=J.isText(l)||ne.isElement(l)&&e.isInline(l);if(d!==o)_.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(ne.isElement(l)){if(e.isInline(l)){if(c==null||!J.isText(c)){var p={text:""};_.insertNodes(e,p,{at:r.concat(a),voids:!0}),a++}else if(f){var m={text:""};_.insertNodes(e,m,{at:r.concat(a+1),voids:!0}),a++}}}else c!=null&&J.isText(c)&&(J.equals(l,c,{loose:!0})?(_.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(_.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(_.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},removeMark:t=>{var{selection:n}=e;if(n)if(j.isExpanded(n))_.unsetNodes(e,t,{match:J.isText,split:!0});else{var r=Jd({},E.marks(e)||{});delete r[t],e.marks=r,cl.get(e)||e.onChange()}}};return e},vI=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":{var{path:t}=e;return P.levels(t)}case"insert_node":{var{node:n,path:r}=e,i=P.levels(r),o=J.isText(n)?[]:Array.from(q.nodes(n),R=>{var[,U]=R;return r.concat(U)});return[...i,...o]}case"merge_node":{var{path:a}=e,u=P.ancestors(a),s=P.previous(a);return[...u,s]}case"move_node":{var{path:l,newPath:c}=e;if(P.equals(l,c))return[];var f=[],d=[];for(var p of P.ancestors(l)){var m=P.transform(p,e);f.push(m)}for(var v of P.ancestors(c)){var g=P.transform(v,e);d.push(g)}var y=d[d.length-1],h=c[c.length-1],$=y.concat(h);return[...f,...d,$]}case"remove_node":{var{path:w}=e,x=P.ancestors(w);return[...x]}case"split_node":{var{path:S}=e,C=P.levels(S),N=P.next(S);return[...C,N]}default:return[]}};function mI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ti(e,t){if(e==null)return{};var n=mI(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}var Gv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,i=n?xI(t):t,o=ve.None,a=ve.None,u=0,s=null,l=null;for(var c of i){var f=c.codePointAt(0);if(!f)break;var d=NI(c,f);if([o,a]=r?[a,d]:[d,o],pu(o,ve.ZWJ)&&pu(a,ve.ExtPict)&&(r?s=C6(t.substring(0,u)):s=C6(t.substring(0,t.length-u)),!s)||pu(o,ve.RI)&&pu(a,ve.RI)&&(l!==null?l=!l:r?l=!0:l=MI(t.substring(0,t.length-u)),!l)||o!==ve.None&&a!==ve.None&&jI(o,a))break;u+=c.length}return u||1},yI=/\s/,bI=/[\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]/,$I=/['\u2018\u2019]/,wI=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,i=!1;t.length>0;){var o=Gv(t,n),[a,u]=qv(t,o,n);if(EI(a,u,n))i=!0,r+=o;else if(!i)r+=o;else break;t=u}return r},qv=(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)]},EI=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(yI.test(t))return!1;if($I.test(t)){var i=Gv(n,r),[o,a]=qv(n,i,r);if(e(o,a,r))return!0}return!bI.test(t)},xI=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var i=t.charAt(n-r);if(DI(i.charCodeAt(0))){var o=t.charAt(n-r-1);if(SI(o.charCodeAt(0))){yield o+i,r++;continue}}yield i}},SI=e=>e>=55296&&e<=56319,DI=e=>e>=56320&&e<=57343,ve;(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"})(ve||(ve={}));var CI=/^(?:[\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])$/,AI=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,OI=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,BI=/^[\u1100-\u115F\uA960-\uA97C]$/,FI=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,TI=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,kI=/^[\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]$/,PI=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,_I=/^(?:[\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])$/,NI=(e,t)=>{var n=ve.Any;return e.search(CI)!==-1&&(n|=ve.Extend),t===8205&&(n|=ve.ZWJ),t>=127462&&t<=127487&&(n|=ve.RI),e.search(AI)!==-1&&(n|=ve.Prepend),e.search(OI)!==-1&&(n|=ve.SpacingMark),e.search(BI)!==-1&&(n|=ve.L),e.search(FI)!==-1&&(n|=ve.V),e.search(TI)!==-1&&(n|=ve.T),e.search(kI)!==-1&&(n|=ve.LV),e.search(PI)!==-1&&(n|=ve.LVT),e.search(_I)!==-1&&(n|=ve.ExtPict),n};function pu(e,t){return(e&t)!=0}var II=[[ve.L,ve.L|ve.V|ve.LV|ve.LVT],[ve.LV|ve.V,ve.V|ve.T],[ve.LVT|ve.T,ve.T],[ve.Any,ve.Extend|ve.ZWJ],[ve.Any,ve.SpacingMark],[ve.Prepend,ve.Any],[ve.ZWJ,ve.ExtPict],[ve.RI,ve.RI]];function jI(e,t){return II.findIndex(n=>pu(e,n[0])&&pu(t,n[1]))===-1}var RI=/(?:[\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$/,C6=e=>e.search(RI)!==-1,LI=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,MI=e=>{var t=e.match(LI);if(t===null)return!1;var n=t[0].length/2;return n%2==1},A6=e=>en(e)&&q.isNodeList(e.children)&&!E.isEditor(e),ne={isAncestor(e){return en(e)&&q.isNodeList(e.children)},isElement:A6,isElementList(e){return Array.isArray(e)&&e.every(t=>ne.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return A6(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},zI=["text"],HI=["text"];function O6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var B6=new WeakMap,E={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(!!i){var a=E.path(e,i),u=r==="lowest";for(var[s,l]of E.levels(e,{at:a,voids:n,match:o,reverse:u}))if(!J.isText(s)&&!P.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.point(e,t,{edge:"end"}),i=E.end(e,[]),o={anchor:r,focus:i},{distance:a=1}=n,u=0,s;for(var l of E.positions(e,hu(hu({},n),{},{at:o}))){if(u>a)break;u!==0&&(s=l),u++}return s},before(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.start(e,[]),i=E.point(e,t,{edge:"start"}),o={anchor:r,focus:i},{distance:a=1}=n,u=0,s;for(var l of E.positions(e,hu(hu({},n),{},{at:o,reverse:!0}))){if(u>a)break;u!==0&&(s=l),u++}return s},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges(e,t){return[E.start(e,t),E.end(e,t)]},end(e,t){return E.point(e,t,{edge:"end"})},first(e,t){var n=E.path(e,t,{edge:"start"});return E.node(e,n)},fragment(e,t){var n=E.range(e,t),r=q.fragment(e,n);return r},hasBlocks(e,t){return t.children.some(n=>E.isBlock(e,n))},hasInlines(e,t){return t.children.some(n=>J.isText(n)||E.isInline(e,n))},hasTexts(e,t){return t.children.every(n=>J.isText(n))},insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock(e,t){return ne.isElement(t)&&!e.isInline(t)},isEditor(e){if(!en(e))return!1;var t=B6.get(e);if(t!==void 0)return t;var n=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=="function"&&(e.marks===null||en(e.marks))&&(e.selection===null||j.isRange(e.selection))&&q.isNodeList(e.children)&&Ci.isOperationList(e.operations);return B6.set(e,n),n},isEnd(e,t,n){var r=E.end(e,n);return $e.equals(t,r)},isEdge(e,t,n){return E.isStart(e,t,n)||E.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&J.isText(r)&&r.text===""&&!e.isVoid(t)},isInline(e,t){return ne.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=w6.get(e);return t===void 0?!0:t},isStart(e,t,n){if(t.offset!==0)return!1;var r=E.start(e,n);return $e.equals(t,r)},isVoid(e,t){return ne.isElement(t)&&e.isVoid(t)},last(e,t){var n=E.path(e,t,{edge:"end"});return E.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),i=q.leaf(e,r);return[i,r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(o==null&&(o=()=>!0),!!n){var a=[],u=E.path(e,n);for(var[s,l]of q.levels(e,u))if(!!o(s,l)&&(a.push([s,l]),!i&&E.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(j.isExpanded(n)){var[r]=E.nodes(e,{match:J.isText});if(r){var[i]=r,o=ti(i,zI);return o}else return{}}var{anchor:a}=n,{path:u}=a,[s]=E.leaf(e,u);if(a.offset===0){var l=E.previous(e,{at:u,match:J.isText}),c=E.above(e,{match:v=>E.isBlock(e,v)});if(l&&c){var[f,d]=l,[,p]=c;P.isAncestor(p,d)&&(s=f)}}var m=ti(s,HI);return m},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(!!o){var a=E.after(e,o,{voids:r});if(!!a){var[,u]=E.last(e,[]),s=[a.path,u];if(P.isPath(o)&&o.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(P.isPath(o)){var[l]=E.parent(e,o);i=f=>l.children.includes(f)}else i=()=>!0;var[c]=E.nodes(e,{at:s,match:i,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),i=q.get(e,r);return[i,r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),!!n){var s,l;if(UI.isSpan(n))s=n[0],l=n[1];else{var c=E.path(e,n,{edge:"start"}),f=E.path(e,n,{edge:"end"});s=o?f:c,l=o?c:f}var d=q.nodes(e,{reverse:o,from:s,to:l,pass:$=>{var[w]=$;return a?!1:E.isVoid(e,w)}}),p=[],m;for(var[v,g]of d){var y=m&&P.compare(g,m[1])===0;if(!(r==="highest"&&y)){if(!u(v,g)){if(i&&!y&&J.isText(v))return;continue}if(r==="lowest"&&y){m=[v,g];continue}var h=r==="lowest"?m:[v,g];h&&(i?p.push(h):yield h),m=[v,g]}}r==="lowest"&&m&&(i?p.push(m):yield m),i&&(yield*p)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=o=>Xd.get(o)||[];if(!!E.isNormalizing(e)){if(n){var i=Array.from(q.nodes(e),o=>{var[,a]=o;return a});Xd.set(e,i)}r(e).length!==0&&E.withoutNormalizing(e,()=>{for(var o of r(e))if(q.has(e,o)){var a=E.node(e,o),[u,s]=a;ne.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=r(e).length*42,c=0;r(e).length!==0;){if(c>l)throw new Error(`
  8. Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
  9. `));var f=r(e).pop();if(q.has(e,f)){var d=E.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),i=P.parent(r),o=E.node(e,i);return o},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:i}=n;if(P.isPath(t)){if(i==="start"){var[,o]=q.first(e,t);t=o}else if(i==="end"){var[,a]=q.last(e,t);t=a}}return j.isRange(t)&&(i==="start"?t=j.start(t):i==="end"?t=j.end(t):t=P.common(t.anchor.path,t.focus.path)),$e.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath(e,t){return q.has(e,t)},pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.pathRefs(e);return u.delete(i),i.current=null,a}},o=E.pathRefs(e);return o.add(i),i},pathRefs(e){var t=E6.get(e);return t||(t=new Set,E6.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(P.isPath(t)){var i;if(r==="end"){var[,o]=q.last(e,t);i=o}else{var[,a]=q.first(e,t);i=a}var u=q.get(e,i);if(!J.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:i,offset:r==="end"?u.text.length:0}}if(j.isRange(t)){var[s,l]=j.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.pointRefs(e);return u.delete(i),i.current=null,a}},o=E.pointRefs(e);return o.add(i),i},pointRefs(e){var t=x6.get(e);return t||(t=new Set,x6.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=t;if(!n)return;var a=E.range(e,n),[u,s]=j.edges(a),l=i?s:u,c=!1,f="",d=0,p=0,m=0;for(var[v,g]of E.nodes(e,{at:n,reverse:i,voids:o})){if(ne.isElement(v)){if(!o&&e.isVoid(v)){yield E.start(e,g);continue}if(e.isInline(v))continue;if(E.hasInlines(e,v)){var y=P.isAncestor(g,s.path)?s:E.end(e,g),h=P.isAncestor(g,u.path)?u:E.start(e,g);f=E.string(e,{anchor:h,focus:y},{voids:o}),c=!0}}if(J.isText(v)){var $=P.equals(g,l.path);for($?(p=i?l.offset:v.text.length-l.offset,m=l.offset):(p=v.text.length,m=i?p:0),($||c||r==="offset")&&(yield{path:g,offset:m},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,i),f=qv(f,d,i)[1]}if(m=i?m-d:m+d,p=p-d,p<0){d=-p;break}d=0,yield{path:g,offset:m}}}}function w(x,S,C){return S==="character"?Gv(x,C):S==="word"?wI(x,C):S==="line"||S==="block"?x.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(!!o){var a=E.before(e,o,{voids:r});if(!!a){var[,u]=E.first(e,[]),s=[a.path,u];if(P.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(P.isPath(o)){var[l]=E.parent(e,o);i=f=>l.children.includes(f)}else i=()=>!0;var[c]=E.nodes(e,{reverse:!0,at:s,match:i,mode:n,voids:r});return c}}},range(e,t,n){if(j.isRange(t)&&!n)return t;var r=E.start(e,t),i=E.end(e,n||t);return{anchor:r,focus:i}},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.rangeRefs(e);return u.delete(i),i.current=null,a}},o=E.rangeRefs(e);return o.add(i),i},rangeRefs(e){var t=S6.get(e);return t||(t=new Set,S6.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){w6.set(e,t)},start(e,t){return E.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=E.range(e,t),[o,a]=j.edges(i),u="";for(var[s,l]of E.nodes(e,{at:i,match:J.isText,voids:r})){var c=s.text;P.equals(l,a.path)&&(c=c.slice(0,a.offset)),P.equals(l,o.path)&&(c=c.slice(o.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,o]=j.edges(t);if(i.offset!==0||o.offset!==0||j.isCollapsed(t))return t;var a=E.above(e,{at:o,match:p=>E.isBlock(e,p)}),u=a?a[1]:[],s=E.start(e,[]),l={anchor:s,focus:o},c=!0;for(var[f,d]of E.nodes(e,{at:l,match:J.isText,reverse:!0,voids:r})){if(c){c=!1;continue}if(f.text!==""||P.isBefore(d,u)){o={path:d,offset:f.text.length};break}}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(e,hu(hu({},t),{},{match:n=>E.isVoid(e,n)}))},withoutNormalizing(e,t){var n=E.isNormalizing(e);E.setNormalizing(e,!1);try{t()}finally{E.setNormalizing(e,n)}E.normalize(e)}},ihe={isLocation(e){return P.isPath(e)||$e.isPoint(e)||j.isRange(e)}},UI={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(P.isPath)}},VI=["children"],WI=["text"],F6=new WeakMap,q={ancestor(e,t){var n=q.get(e,t);if(J.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&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.ancestors(t,n)){var i=q.ancestor(e,r),o=[i,r];yield o}},child(e,t){if(J.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)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&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,i=q.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var u=q.child(i,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=P.common(t,n),i=q.get(e,r);return[i,r]},descendant(e,t){var n=q.get(e,t);if(E.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&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of q.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of q.nodes(e,t))ne.isElement(n)&&(yield[n,r])},extractProps(e){if(ne.isAncestor(e)){var t=ti(e,VI);return t}else{var t=ti(e,WI);return t}},first(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(J.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(J.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Yd({children:e.children},r=>{var[i,o]=j.edges(t),a=q.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!j.includes(t,p)}});for(var[,u]of a){if(!j.includes(t,u)){var s=q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(P.equals(u,o.path)){var c=q.leaf(r,u);c.text=c.text.slice(0,o.offset)}if(P.equals(u,i.path)){var f=q.leaf(r,u);f.text=f.text.slice(i.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(J.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(J.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){return J.isText(e)||ne.isElement(e)||E.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=F6.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return F6.set(e,n),n},last(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(J.isText(r)||r.children.length===0);){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=q.get(e,t);if(!J.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&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.levels(t,n)){var i=q.get(e,r);yield[i,r]}},matches(e,t){return ne.isElement(e)&&ne.isElementProps(t)&&ne.matches(e,t)||J.isText(e)&&J.isTextProps(t)&&J.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,u=[],s=e;!(o&&(r?P.isBefore(u,o):P.isAfter(u,o)));){if(a.has(s)||(yield[s,u]),!a.has(s)&&!J.isText(s)&&s.children.length!==0&&(n==null||n([s,u])===!1)){a.add(s);var l=r?s.children.length-1:0;P.isAncestor(u,i)&&(l=i[u.length]),u=u.concat(l),s=q.get(e,u);continue}if(u.length===0)break;if(!r){var c=P.next(u);if(q.has(e,c)){u=c,s=q.get(e,u);continue}}if(r&&u[u.length-1]!==0){var f=P.previous(u);u=f,s=q.get(e,u);continue}u=P.parent(u),s=q.get(e,u),a.add(s)}},parent(e,t){var n=P.parent(t),r=q.get(e,n);if(J.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return J.isText(e)?e.text:e.children.map(q.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of q.nodes(e,t))J.isText(n)&&(yield[n,r])}};function T6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ci={isNodeOperation(e){return Ci.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!en(e))return!1;switch(e.type){case"insert_node":return P.isPath(e.path)&&q.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"merge_node":return typeof e.position=="number"&&P.isPath(e.path)&&en(e.properties);case"move_node":return P.isPath(e.path)&&P.isPath(e.newPath);case"remove_node":return P.isPath(e.path)&&q.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"set_node":return P.isPath(e.path)&&en(e.properties)&&en(e.newProperties);case"set_selection":return e.properties===null&&j.isRange(e.newProperties)||e.newProperties===null&&j.isRange(e.properties)||en(e.properties)&&en(e.newProperties);case"split_node":return P.isPath(e.path)&&typeof e.position=="number"&&en(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Ci.isOperation(t))},isSelectionOperation(e){return Ci.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Ci.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return it(it({},e),{},{type:"remove_node"});case"insert_text":return it(it({},e),{},{type:"remove_text"});case"merge_node":return it(it({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(P.equals(t,n))return e;if(P.isSibling(n,t))return it(it({},e),{},{path:t,newPath:n});var r=P.transform(n,e),i=P.transform(P.next(n),e);return it(it({},e),{},{path:r,newPath:i})}case"remove_node":return it(it({},e),{},{type:"insert_node"});case"remove_text":return it(it({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:a}=e;return it(it({},e),{},{properties:a,newProperties:o})}case"set_selection":{var{properties:u,newProperties:s}=e;return u==null?it(it({},e),{},{properties:s,newProperties:null}):s==null?it(it({},e),{},{properties:null,newProperties:u}):it(it({},e),{},{properties:s,newProperties:u})}case"split_node":return it(it({},e),{},{type:"merge_node",path:P.next(e.path)})}}},P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=P.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r],o=t[r];if(i!==o)break;n.push(i)}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),i=t.slice(0,n),o=e[n],a=t[n];return P.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return P.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return P.equals(r,i)&&o<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return P.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&P.compare(e,t)===0},isBefore(e,t){return P.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&P.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&P.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&P.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&P.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),i=e[e.length-1],o=t[t.length-1];return i!==o&&P.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(e.length===0)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(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)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(!P.isAncestor(t,e)&&!P.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&&arguments[2]!==void 0?arguments[2]:{};return Yd(e,r=>{var{affinity:i="forward"}=n;if(!(!e||(e==null?void 0:e.length)===0)){if(r===null)return null;switch(t.type){case"insert_node":{var{path:o}=t;(P.equals(o,r)||P.endsBefore(o,r)||P.isAncestor(o,r))&&(r[o.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(P.equals(a,r)||P.isAncestor(a,r))return null;P.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:u,position:s}=t;P.equals(u,r)||P.endsBefore(u,r)?r[u.length-1]-=1:P.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(P.equals(l,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else P.endsBefore(l,r)?r[l.length-1]+=1:P.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(P.equals(f,d))return;if(P.isAncestor(f,r)||P.equals(f,r)){var p=d.slice();return P.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}else P.isSibling(f,d)&&(P.isAncestor(d,r)||P.equals(d,r))?P.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:P.endsBefore(d,r)||P.equals(d,r)||P.isAncestor(d,r)?(P.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):P.endsBefore(f,r)&&(P.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1);break}}}})}},GI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=P.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function k6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function P6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $e={compare(e,t){var n=P.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return $e.compare(e,t)===1},isBefore(e,t){return $e.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&P.equals(e.path,t.path)},isPoint(e){return en(e)&&typeof e.offset=="number"&&P.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Yd(e,r=>{if(r===null)return null;var{affinity:i="forward"}=n,{path:o,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=P.transform(o,t,n);break}case"insert_text":{P.equals(t.path,o)&&t.offset<=a&&(r.offset+=t.text.length);break}case"merge_node":{P.equals(t.path,o)&&(r.offset+=t.position),r.path=P.transform(o,t,n);break}case"remove_text":{P.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(P.equals(t.path,o)||P.isAncestor(t.path,o))return null;r.path=P.transform(o,t,n);break}case"split_node":{if(P.equals(t.path,o)){if(t.position===a&&i==null)return null;(t.position<a||t.position===a&&i==="forward")&&(r.offset-=t.position,r.path=P.transform(o,t,P6(P6({},n),{},{affinity:"forward"})))}else r.path=P.transform(o,t,n);break}}})}},qI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=$e.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},KI=["anchor","focus"];function _6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var j={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return j.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=j.edges(e);return t},equals(e,t){return $e.equals(e.anchor,t.anchor)&&$e.equals(e.focus,t.focus)},includes(e,t){if(j.isRange(t)){if(j.includes(e,t.anchor)||j.includes(e,t.focus))return!0;var[n,r]=j.edges(e),[i,o]=j.edges(t);return $e.isBefore(n,i)&&$e.isAfter(r,o)}var[a,u]=j.edges(e),s=!1,l=!1;return $e.isPoint(t)?(s=$e.compare(t,a)>=0,l=$e.compare(t,u)<=0):(s=P.compare(t,a.path)>=0,l=P.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=ti(e,KI),[r,i]=j.edges(e),[o,a]=j.edges(t),u=$e.isBefore(r,o)?o:r,s=$e.isBefore(i,a)?i:a;return $e.isBefore(s,u)?null:YI({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return $e.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return $e.equals(t,n)},isExpanded(e){return!j.isCollapsed(e)},isForward(e){return!j.isBackward(e)},isRange(e){return en(e)&&$e.isPoint(e.anchor)&&$e.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=j.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Yd(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,o,a;if(i==="inward"){var u=j.isCollapsed(r);j.isForward(r)?(o="forward",a=u?o:"backward"):(o="backward",a=u?o:"forward")}else i==="outward"?j.isForward(r)?(o="backward",a="forward"):(o="forward",a="backward"):(o=i,a=i);var s=$e.transform(r.anchor,t,{affinity:o}),l=$e.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},XI={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=j.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},N6=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(en(r)&&en(i)){if(!N6(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(r!==i)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},JI=["text"],ZI=["anchor","focus"];function I6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var J={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){var a=ti(o,JI);return a}return N6(r?i(e):e,r?i(t):t)},isText(e){return en(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>J.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[ni({},e)];for(var r of t){var i=ti(r,ZI),[o,a]=j.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,o.offset<=f&&a.offset>=s){Object.assign(l,i),u.push(l);continue}if(o.offset!==a.offset&&(o.offset===s||a.offset===f)||o.offset>s||a.offset<f||a.offset===f&&f!==0){u.push(l);continue}var d=l,p=void 0,m=void 0;if(a.offset<s){var v=a.offset-f;m=ni(ni({},d),{},{text:d.text.slice(v)}),d=ni(ni({},d),{},{text:d.text.slice(0,v)})}if(o.offset>f){var g=o.offset-f;p=ni(ni({},d),{},{text:d.text.slice(0,g)}),d=ni(ni({},d),{},{text:d.text.slice(g)})}Object.assign(d,i),p&&u.push(p),u.push(d),m&&u.push(m)}n=u}return n}};function j6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var QI=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:i}=n,o=q.parent(e,r),a=r[r.length-1];if(a>o.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(o.children.splice(a,0,i),t)for(var[u,s]of j.points(t))t[s]=$e.transform(u,n);break}case"insert_text":{var{path:l,offset:c,text:f}=n;if(f.length===0)break;var d=q.leaf(e,l),p=d.text.slice(0,c),m=d.text.slice(c);if(d.text=p+f+m,t)for(var[v,g]of j.points(t))t[g]=$e.transform(v,n);break}case"merge_node":{var{path:y}=n,h=q.get(e,y),$=P.previous(y),w=q.get(e,$),x=q.parent(e,y),S=y[y.length-1];if(J.isText(h)&&J.isText(w))w.text+=h.text;else if(!J.isText(h)&&!J.isText(w))w.children.push(...h.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(h," ").concat(w));if(x.children.splice(S,1),t)for(var[C,N]of j.points(t))t[N]=$e.transform(C,n);break}case"move_node":{var{path:R,newPath:U}=n;if(P.isAncestor(R,U))throw new Error("Cannot move a path [".concat(R,"] to new path [").concat(U,"] because the destination is inside itself."));var W=q.get(e,R),Z=q.parent(e,R),Q=R[R.length-1];Z.children.splice(Q,1);var le=P.transform(R,n),te=q.get(e,P.parent(le)),ue=le[le.length-1];if(te.children.splice(ue,0,W),t)for(var[he,Ie]of j.points(t))t[Ie]=$e.transform(he,n);break}case"remove_node":{var{path:ye}=n,oe=ye[ye.length-1],Le=q.parent(e,ye);if(Le.children.splice(oe,1),t)for(var[T,F]of j.points(t)){var k=$e.transform(T,n);if(t!=null&&k!=null)t[F]=k;else{var I=void 0,V=void 0;for(var[L,ee]of q.texts(e))if(P.compare(ee,ye)===-1)I=[L,ee];else{V=[L,ee];break}var pe=!1;I&&V&&(P.equals(V[1],ye)?pe=!P.hasPrevious(V[1]):pe=P.common(I[1],ye).length<P.common(V[1],ye).length),I&&!pe?(T.path=I[1],T.offset=I[0].text.length):V?(T.path=V[1],T.offset=0):t=null}}break}case"remove_text":{var{path:Ce,offset:Me,text:H}=n;if(H.length===0)break;var We=q.leaf(e,Ce),we=We.text.slice(0,Me),se=We.text.slice(Me+H.length);if(We.text=we+se,t)for(var[Ee,In]of j.points(t))t[In]=$e.transform(Ee,n);break}case"set_node":{var{path:Xe,properties:gt,newProperties:yt}=n;if(Xe.length===0)throw new Error("Cannot set properties on the root node!");var yn=q.get(e,Xe);for(var bt in yt){if(bt==="children"||bt==="text")throw new Error('Cannot set the "'.concat(bt,'" property of nodes!'));var ar=yt[bt];ar==null?delete yn[bt]:yn[bt]=ar}for(var jn in gt)yt.hasOwnProperty(jn)||delete yn[jn];break}case"set_selection":{var{newProperties:bn}=n;if(bn==null)t=bn;else{if(t==null){if(!j.isRange(bn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(bn)," when there is no current selection."));t=fl({},bn)}for(var qr in bn){var Kr=bn[qr];if(Kr==null){if(qr==="anchor"||qr==="focus")throw new Error('Cannot remove the "'.concat(qr,'" selection property'));delete t[qr]}else t[qr]=Kr}}break}case"split_node":{var{path:Rn,position:Yr,properties:cn}=n;if(Rn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Rn,"] because the root node cannot be split."));var ur=q.get(e,Rn),nl=q.parent(e,Rn),Bd=Rn[Rn.length-1],$i;if(J.isText(ur)){var jo=ur.text.slice(0,Yr),rl=ur.text.slice(Yr);ur.text=jo,$i=fl(fl({},cn),{},{text:rl})}else{var Ro=ur.children.slice(0,Yr),wi=ur.children.slice(Yr);ur.children=Ro,$i=fl(fl({},cn),{},{children:wi})}if(nl.children.splice(Bd+1,0,$i),t)for(var[Ln,Lo]of j.points(t))t[Lo]=$e.transform(Ln,n);break}}return t},ej={transform(e,t){e.children=b6(e.children);var n=e.selection&&b6(e.selection);try{n=QI(e,n,t)}finally{e.children=$6(e.children),n?e.selection=Ho(n)?$6(n):n:e.selection=null}}},tj=["text"],nj=["children"];function R6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var rj={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:u,select:s}=n;if(q.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(e.selection?a=e.selection:e.children.length>0?a=E.end(e,[]):a=[0],s=!0),s==null&&(s=!1),j.isRange(a))if(r||(a=E.unhangRange(e,a)),j.isCollapsed(a))a=a.anchor;else{var[,c]=j.edges(a),f=E.pointRef(e,c);_.delete(e,{at:a}),a=f.unref()}if($e.isPoint(a)){u==null&&(J.isText(l)?u=S=>J.isText(S):e.isInline(l)?u=S=>J.isText(S)||E.isInline(e,S):u=S=>E.isBlock(e,S));var[d]=E.nodes(e,{at:a.path,match:u,mode:o,voids:i});if(d){var[,p]=d,m=E.pathRef(e,p),v=E.isEnd(e,a,p);_.splitNodes(e,{at:a,match:u,mode:o,voids:i});var g=m.unref();a=v?P.next(g):g}else return}var y=P.parent(a),h=a[a.length-1];if(!(!i&&E.void(e,{at:y}))){for(var $ of t){var w=y.concat(h);h++,e.apply({type:"insert_node",path:w,node:$}),a=P.next(a)}if(a=P.previous(a),s){var x=E.end(e,a);x&&_.select(e,x)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(o==null&&(o=P.isPath(n)?gu(e,n):$=>E.isBlock(e,$)),!!n){var a=E.nodes(e,{at:n,match:o,mode:r,voids:i}),u=Array.from(a,$=>{var[,w]=$;return E.pathRef(e,w)});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=E.node(e,P.parent(l)),[f,d]=c,p=l[l.length-1],{length:m}=f.children;if(m===1){var v=P.next(d);_.moveNodes(e,{at:l,to:v,voids:i}),_.removeNodes(e,{at:d,voids:i})}else if(p===0)_.moveNodes(e,{at:l,to:d,voids:i});else if(p===m-1){var g=P.next(d);_.moveNodes(e,{at:l,to:g,voids:i})}else{var y=P.next(l),h=P.next(d);_.splitNodes(e,{at:y,voids:i}),_.moveNodes(e,{at:l,to:h,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(!!r){if(n==null)if(P.isPath(r)){var[u]=E.parent(e,r);n=R=>u.children.includes(R)}else n=R=>E.isBlock(e,R);if(!i&&j.isRange(r)&&(r=E.unhangRange(e,r)),j.isRange(r))if(j.isCollapsed(r))r=r.anchor;else{var[,s]=j.edges(r),l=E.pointRef(e,s);_.delete(e,{at:r}),r=l.unref(),t.at==null&&_.select(e,r)}var[c]=E.nodes(e,{at:r,match:n,voids:o,mode:a}),f=E.previous(e,{at:r,match:n,voids:o,mode:a});if(!(!c||!f)){var[d,p]=c,[m,v]=f;if(!(p.length===0||v.length===0)){var g=P.next(v),y=P.common(p,v),h=P.isSibling(p,v),$=Array.from(E.levels(e,{at:p}),R=>{var[U]=R;return U}).slice(y.length).slice(0,-1),w=E.above(e,{at:p,mode:"highest",match:R=>$.includes(R)&&M6(e,R)}),x=w&&E.pathRef(e,w[1]),S,C;if(J.isText(d)&&J.isText(m)){var N=ti(d,tj);C=m.text.length,S=N}else if(ne.isElement(d)&&ne.isElement(m)){var N=ti(d,nj);C=m.children.length,S=N}else 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(m)));h||_.moveNodes(e,{at:p,to:g,voids:o}),x&&_.removeNodes(e,{at:x.current,voids:o}),ne.isElement(m)&&E.isEmpty(e,m)||J.isText(m)&&m.text===""&&v[v.length-1]!==0?_.removeNodes(e,{at:v,voids:o}):e.apply({type:"merge_node",path:g,position:C,properties:S}),x&&x.unref()}}}})},moveNodes(e,t){E.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(!!r){a==null&&(a=P.isPath(r)?gu(e,r):p=>E.isBlock(e,p));var u=E.pathRef(e,n),s=E.nodes(e,{at:r,match:a,mode:i,voids:o}),l=Array.from(s,p=>{var[,m]=p;return E.pathRef(e,m)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&P.isSibling(d,f)&&P.isAfter(d,f)&&(u.current=P.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(!!o){a==null&&(a=P.isPath(o)?gu(e,o):d=>E.isBlock(e,d)),!n&&j.isRange(o)&&(o=E.unhangRange(e,o));var u=E.nodes(e,{at:o,match:a,mode:i,voids:r}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(e,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection}=n,{hanging:o=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(!!i){if(r==null&&(r=P.isPath(i)?gu(e,i):x=>E.isBlock(e,x)),!o&&j.isRange(i)&&(i=E.unhangRange(e,i)),u&&j.isRange(i)){if(j.isCollapsed(i)&&E.leaf(e,i.anchor)[0].text.length>0)return;var l=E.rangeRef(e,i,{affinity:"inward"}),[c,f]=j.edges(i),d=a==="lowest"?"lowest":"highest",p=E.isEnd(e,f,f.path);_.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var m=E.isStart(e,c,c.path);_.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!m}),i=l.unref(),n.at==null&&_.select(e,i)}for(var[v,g]of E.nodes(e,{at:i,match:r,mode:a,voids:s})){var y={},h={};if(g.length!==0){var $=!1;for(var w in t)w==="children"||w==="text"||t[w]!==v[w]&&($=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),t[w]!=null&&(h[w]=t[w]));$&&e.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:u=!1}=t;if(i==null&&(i=he=>E.isBlock(e,he)),j.isRange(o)&&(o=ij(e,o)),P.isPath(o)){var s=o,l=E.point(e,s),[c]=E.parent(e,s);i=he=>he===c,a=l.path.length-s.length+1,o=l,u=!0}if(!!o){var f=E.pointRef(e,o,{affinity:"backward"}),[d]=E.nodes(e,{at:o,match:i,mode:n,voids:r});if(!!d){var p=E.void(e,{at:o,mode:"highest"}),m=0;if(!r&&p){var[v,g]=p;if(ne.isElement(v)&&e.isInline(v)){var y=E.after(e,g);if(!y){var h={text:""},$=P.next(g);_.insertNodes(e,h,{at:$,voids:r}),y=E.point(e,$)}o=y,u=!0}var w=o.path.length-g.length;a=w+1,u=!0}var x=E.pointRef(e,o),S=o.path.length-a,[,C]=d,N=o.path.slice(0,S),R=a===0?o.offset:o.path[S]+m;for(var[U,W]of E.levels(e,{at:N,reverse:!0,voids:r})){var Z=!1;if(W.length<C.length||W.length===0||!r&&E.isVoid(e,U))break;var Q=f.current,le=E.isEnd(e,Q,W);if(u||!f||!E.isEdge(e,Q,W)){Z=!0;var te=q.extractProps(U);e.apply({type:"split_node",path:W,position:R,properties:te})}R=W[W.length-1]+(Z||le?1:0)}if(t.at==null){var ue=x.current||E.end(e,[]);_.select(e,ue)}f.unref(),x.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;_.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(!!o){a==null&&(a=P.isPath(o)?gu(e,o):d=>E.isBlock(e,d)),P.isPath(o)&&(o=E.range(e,o));var u=j.isRange(o)?E.rangeRef(e,o):null,s=E.nodes(e,{at:o,match:a,mode:n,voids:i}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(e,p)}).reverse(),c=function(p){var m=p.unref(),[v]=E.node(e,m),g=E.range(e,m);r&&u&&(g=j.intersection(u.current,g)),_.liftNodes(e,{at:g,match:y=>ne.isAncestor(v)&&v.children.includes(y),voids:i})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:u=e.selection}=n;if(!!u){if(a==null&&(P.isPath(u)?a=gu(e,u):e.isInline(t)?a=g=>E.isInline(e,g)||J.isText(g):a=g=>E.isBlock(e,g)),i&&j.isRange(u)){var[s,l]=j.edges(u),c=E.rangeRef(e,u,{affinity:"inward"});_.splitNodes(e,{at:l,match:a,voids:o}),_.splitNodes(e,{at:s,match:a,voids:o}),u=c.unref(),n.at==null&&_.select(e,u)}var f=Array.from(E.nodes(e,{at:u,match:e.isInline(t)?g=>E.isBlock(e,g):g=>E.isEditor(g),mode:"lowest",voids:o}));for(var[,d]of f){var p=j.isRange(u)?j.intersection(u,E.range(e,d)):u;if(!!p){var m=Array.from(E.nodes(e,{at:p,match:a,mode:r,voids:o}));if(m.length>0){var v=function(){var[g]=m,y=m[m.length-1],[,h]=g,[,$]=y;if(h.length===0&&$.length===0)return"continue";var w=P.equals(h,$)?P.parent(h):P.common(h,$),x=E.range(e,h,$),S=E.node(e,w),[C]=S,N=w.length+1,R=P.next($.slice(0,N)),U=L6(L6({},t),{},{children:[]});_.insertNodes(e,U,{at:R,voids:o}),_.moveNodes(e,{at:x,match:W=>ne.isAncestor(C)&&C.children.includes(W),to:R.concat(0),voids:o})}();if(v==="continue")continue}}}}})}},M6=(e,t)=>{if(ne.isElement(t)){var n=t;return E.isVoid(e,t)?!0:n.children.length===1?M6(e,n.children[0]):!1}else return!E.isEditor(t)},ij=(e,t)=>{if(j.isCollapsed(t))return t.anchor;var[,n]=j.edges(t),r=E.pointRef(e,n);return _.delete(e,{at:t}),r.unref()},gu=(e,t)=>{var[n]=E.node(e,t);return r=>r===n};function z6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function H6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oj={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")_.select(e,r.anchor);else if(n==="focus")_.select(e,r.focus);else if(n==="start"){var[i]=j.edges(r);_.select(e,i)}else if(n==="end"){var[,o]=j.edges(r);_.select(e,o)}}else return},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(!!n){a==="start"&&(a=j.isBackward(n)?"focus":"anchor"),a==="end"&&(a=j.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:i},c={};if(a==null||a==="anchor"){var f=o?E.before(e,u,l):E.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=o?E.before(e,s,l):E.after(e,s,l);d&&(c.focus=d)}_.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=E.range(e,t),n){_.setSelection(e,t);return}if(!j.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&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(!!r){i==="start"&&(i=j.isBackward(r)?"focus":"anchor"),i==="end"&&(i=j.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,u=i==="anchor"?o:a;_.setSelection(e,{[i==="anchor"?"anchor":"focus"]:H6(H6({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(!!n){for(var o in t)(o==="anchor"&&t.anchor!=null&&!$e.equals(t.anchor,n.anchor)||o==="focus"&&t.focus!=null&&!$e.equals(t.focus,n.focus)||o!=="anchor"&&o!=="focus"&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}}},aj={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(!!a){if(j.isRange(a)&&j.isCollapsed(a)&&(a=a.anchor),$e.isPoint(a)){var s=E.void(e,{at:a,mode:"highest"});if(!o&&s){var[,l]=s;a=l}else{var c={unit:r,distance:i},f=n?E.before(e,a,c)||E.start(e,[]):E.after(e,a,c)||E.end(e,[]);a={anchor:a,focus:f},u=!0}}if(P.isPath(a)){_.removeNodes(e,{at:a,voids:o});return}if(!j.isCollapsed(a)){if(!u){var[,d]=j.edges(a),p=E.end(e,[]);$e.equals(d,p)||(a=E.unhangRange(e,a,{voids:o}))}var[m,v]=j.edges(a),g=E.above(e,{match:pe=>E.isBlock(e,pe),at:m,voids:o}),y=E.above(e,{match:pe=>E.isBlock(e,pe),at:v,voids:o}),h=g&&y&&!P.equals(g[1],y[1]),$=P.equals(m.path,v.path),w=o?null:E.void(e,{at:m,mode:"highest"}),x=o?null:E.void(e,{at:v,mode:"highest"});if(w){var S=E.before(e,m);S&&g&&P.isAncestor(g[1],S.path)&&(m=S)}if(x){var C=E.after(e,v);C&&y&&P.isAncestor(y[1],C.path)&&(v=C)}var N=[],R;for(var U of E.nodes(e,{at:a,voids:o})){var[W,Z]=U;R&&P.compare(Z,R)===0||(!o&&E.isVoid(e,W)||!P.isCommon(Z,m.path)&&!P.isCommon(Z,v.path))&&(N.push(U),R=Z)}var Q=Array.from(N,pe=>{var[,Ce]=pe;return E.pathRef(e,Ce)}),le=E.pointRef(e,m),te=E.pointRef(e,v);if(!$&&!w){var ue=le.current,[he]=E.leaf(e,ue),{path:Ie}=ue,{offset:ye}=m,oe=he.text.slice(ye);oe.length>0&&e.apply({type:"remove_text",path:Ie,offset:ye,text:oe})}for(var Le of Q){var T=Le.unref();_.removeNodes(e,{at:T,voids:o})}if(!x){var F=te.current,[k]=E.leaf(e,F),{path:I}=F,V=$?m.offset:0,L=k.text.slice(V,v.offset);L.length>0&&e.apply({type:"remove_text",path:I,offset:V,text:L})}!$&&h&&te.current&&le.current&&_.mergeNodes(e,{at:te.current,hanging:!0,voids:o});var ee=n?le.unref()||te.unref():te.unref()||le.unref();t.at==null&&ee&&_.select(e,ee)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=e.selection}=n;if(!!t.length){if(o)if(j.isRange(o))if(r||(o=E.unhangRange(e,o)),j.isCollapsed(o))o=o.anchor;else{var[,a]=j.edges(o);if(!i&&E.void(e,{at:a}))return;var u=E.pointRef(e,a);_.delete(e,{at:o}),o=u.unref()}else P.isPath(o)&&(o=E.start(e,o));else return;if(!(!i&&E.void(e,{at:o}))){var s=E.above(e,{at:o,match:k=>E.isInline(e,k),mode:"highest",voids:i});if(s){var[,l]=s;if(E.isEnd(e,o,l)){var c=E.after(e,l);o=c}else if(E.isStart(e,o,l)){var f=E.before(e,l);o=f}}var d=E.above(e,{match:k=>E.isBlock(e,k),at:o,voids:i}),[,p]=d,m=E.isStart(e,o,p),v=E.isEnd(e,o,p),g=m&&v,y=!m||m&&v,h=!v,[,$]=q.first({children:t},[]),[,w]=q.last({children:t},[]),x=[],S=k=>{var[I,V]=k,L=V.length===0;return L?!1:g?!0:!(y&&P.isAncestor(V,$)&&ne.isElement(I)&&!e.isVoid(I)&&!e.isInline(I)||h&&P.isAncestor(V,w)&&ne.isElement(I)&&!e.isVoid(I)&&!e.isInline(I))};for(var C of q.nodes({children:t},{pass:S}))S(C)&&x.push(C);var N=[],R=[],U=[],W=!0,Z=!1;for(var[Q]of x)ne.isElement(Q)&&!e.isInline(Q)?(W=!1,Z=!0,R.push(Q)):W?N.push(Q):U.push(Q);var[le]=E.nodes(e,{at:o,match:k=>J.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),[,te]=le,ue=E.isStart(e,o,te),he=E.isEnd(e,o,te),Ie=E.pathRef(e,v?P.next(p):p),ye=E.pathRef(e,he?P.next(te):te),oe=E.pathRef(e,p);_.splitNodes(e,{at:o,match:k=>Z?E.isBlock(e,k):J.isText(k)||E.isInline(e,k),mode:Z?"lowest":"highest",voids:i});var Le=E.pathRef(e,!ue||ue&&he?P.next(te):te);if(_.insertNodes(e,N,{at:Le.current,match:k=>J.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),g&&R.length&&_.delete(e,{at:oe.unref(),voids:i}),_.insertNodes(e,R,{at:Ie.current,match:k=>E.isBlock(e,k),mode:"lowest",voids:i}),_.insertNodes(e,U,{at:ye.current,match:k=>J.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),!n.at){var T;U.length>0?T=P.previous(ye.current):R.length>0?T=P.previous(Ie.current):T=P.previous(Le.current);var F=E.end(e,T);_.select(e,F)}Le.unref(),Ie.unref(),ye.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(!!i){if(P.isPath(i)&&(i=E.range(e,i)),j.isRange(i))if(j.isCollapsed(i))i=i.anchor;else{var o=j.end(i);if(!r&&E.void(e,{at:o}))return;var a=E.pointRef(e,o);_.delete(e,{at:i,voids:r}),i=a.unref(),_.setSelection(e,{anchor:i,focus:i})}if(!(!r&&E.void(e,{at:i}))){var{path:u,offset:s}=i;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function U6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U6(Object(n),!0).forEach(function(r){xr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _=Zd(Zd(Zd(Zd({},ej),rj),oj),aj),ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function Kv(e){var t={exports:{}};return e(t,t.exports),t.exports}var V6=9007199254740991,uj="[object Arguments]",sj="[object Function]",lj="[object GeneratorFunction]",Yv="[object Map]",cj="[object Object]",W6="[object Promise]",Xv="[object Set]",fj="[object String]",G6="[object WeakMap]",q6="[object DataView]",dj=/[\\^$.*+?()[\]{}|]/g,pj=/^\[object .+?Constructor\]$/,hj=/^(?:0|[1-9]\d*)$/,Jv="\\ud800-\\udfff",K6="\\u0300-\\u036f\\ufe20-\\ufe23",Y6="\\u20d0-\\u20f0",X6="\\ufe0e\\ufe0f",gj="["+Jv+"]",Zv="["+K6+Y6+"]",Qv="\\ud83c[\\udffb-\\udfff]",vj="(?:"+Zv+"|"+Qv+")",J6="[^"+Jv+"]",Z6="(?:\\ud83c[\\udde6-\\uddff]){2}",Q6="[\\ud800-\\udbff][\\udc00-\\udfff]",e8="\\u200d",t8=vj+"?",n8="["+X6+"]?",mj="(?:"+e8+"(?:"+[J6,Z6,Q6].join("|")+")"+n8+t8+")*",yj=n8+t8+mj,bj="(?:"+[J6+Zv+"?",Zv,Z6,Q6,gj].join("|")+")",$j=RegExp(Qv+"(?="+Qv+")|"+bj+yj,"g"),wj=RegExp("["+e8+Jv+K6+Y6+X6+"]"),Ej=typeof ot=="object"&&ot&&ot.Object===Object&&ot,xj=typeof self=="object"&&self&&self.Object===Object&&self,Wo=Ej||xj||Function("return this")();function Sj(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Dj(e){return e.split("")}function Cj(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Aj(e,t){return Sj(t,function(n){return e[n]})}function Oj(e,t){return e==null?void 0:e[t]}function Bj(e){return wj.test(e)}function Fj(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function Tj(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function kj(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Pj(e,t){return function(n){return e(t(n))}}function _j(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function Nj(e){return Bj(e)?Ij(e):Dj(e)}function Ij(e){return e.match($j)||[]}var jj=Function.prototype,Qd=Object.prototype,e1=Wo["__core-js_shared__"],r8=function(){var e=/[^.]+$/.exec(e1&&e1.keys&&e1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),i8=jj.toString,ep=Qd.hasOwnProperty,dl=Qd.toString,Rj=RegExp("^"+i8.call(ep).replace(dj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),o8=Wo.Symbol,t1=o8?o8.iterator:void 0,Lj=Qd.propertyIsEnumerable,Mj=Pj(Object.keys,Object),n1=pl(Wo,"DataView"),r1=pl(Wo,"Map"),i1=pl(Wo,"Promise"),o1=pl(Wo,"Set"),a1=pl(Wo,"WeakMap"),zj=qo(n1),Hj=qo(r1),Uj=qo(i1),Vj=qo(o1),Wj=qo(a1);function Gj(e,t){var n=a8(e)||eR(e)?Cj(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||ep.call(e,o))&&!(i&&(o=="length"||Jj(o,r)))&&n.push(o);return n}function qj(e){return dl.call(e)}function Kj(e){if(!s8(e)||Zj(e))return!1;var t=u8(e)||Fj(e)?Rj:pj;return t.test(qo(e))}function Yj(e){if(!Qj(e))return Mj(e);var t=[];for(var n in Object(e))ep.call(e,n)&&n!="constructor"&&t.push(n);return t}function Xj(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function pl(e,t){var n=Oj(e,t);return Kj(n)?n:void 0}var Go=qj;(n1&&Go(new n1(new ArrayBuffer(1)))!=q6||r1&&Go(new r1)!=Yv||i1&&Go(i1.resolve())!=W6||o1&&Go(new o1)!=Xv||a1&&Go(new a1)!=G6)&&(Go=function(e){var t=dl.call(e),n=t==cj?e.constructor:void 0,r=n?qo(n):void 0;if(r)switch(r){case zj:return q6;case Hj:return Yv;case Uj:return W6;case Vj:return Xv;case Wj:return G6}return t});function Jj(e,t){return t=t==null?V6:t,!!t&&(typeof e=="number"||hj.test(e))&&e>-1&&e%1==0&&e<t}function Zj(e){return!!r8&&r8 in e}function Qj(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Qd;return e===n}function qo(e){if(e!=null){try{return i8.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function eR(e){return tR(e)&&ep.call(e,"callee")&&(!Lj.call(e,"callee")||dl.call(e)==uj)}var a8=Array.isArray;function u1(e){return e!=null&&nR(e.length)&&!u8(e)}function tR(e){return l8(e)&&u1(e)}function u8(e){var t=s8(e)?dl.call(e):"";return t==sj||t==lj}function nR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=V6}function s8(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function l8(e){return!!e&&typeof e=="object"}function rR(e){return typeof e=="string"||!a8(e)&&l8(e)&&dl.call(e)==fj}function iR(e){if(!e)return[];if(u1(e))return rR(e)?Nj(e):Xj(e);if(t1&&e[t1])return Tj(e[t1]());var t=Go(e),n=t==Yv?kj:t==Xv?_j:aR;return n(e)}function oR(e){return u1(e)?Gj(e):Yj(e)}function aR(e){return e?Aj(e,oR(e)):[]}var c8=iR;function f8(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function s1(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]=="undefined"?e[n]=t[n]:f8(t[n])&&f8(e[n])&&Object.keys(t[n]).length>0&&s1(e[n],t[n])})}var d8={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 hl(){var e=typeof document!="undefined"?document:{};return s1(e,d8),e}var uR={document:d8,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 typeof setTimeout=="undefined"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout!="undefined"&&clearTimeout(e)}};function Ko(){var e=typeof window!="undefined"?window:{};return s1(e,uR),e}function sR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function l1(e){return l1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},l1(e)}function tp(e,t){return tp=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tp(e,t)}function lR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function np(e,t,n){return lR()?np=Reflect.construct:np=function(i,o,a){var u=[null];u.push.apply(u,o);var s=Function.bind.apply(i,u),l=new s;return a&&tp(l,a.prototype),l},np.apply(null,arguments)}function cR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function c1(e){var t=typeof Map=="function"?new Map:void 0;return c1=function(r){if(r===null||!cR(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return np(r,arguments,l1(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tp(i,r)},c1(e)}function fR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dR(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(r){t.__proto__=r}})}var Ai=function(e){sR(t,e);function t(n){var r;return r=e.call.apply(e,[this].concat(n))||this,dR(fR(r)),r}return t}(c1(Array));function rp(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,rp(n)):t.push(n)}),t}function p8(e,t){return Array.prototype.filter.call(e,t)}function pR(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function hR(e){return e.toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function gR(e,t){if(typeof e!="string")return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}function O(e,t){var n=Ko(),r=hl(),i=[];if(!t&&e instanceof Ai)return e;if(!e)return new Ai(i);if(typeof e=="string"){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";o.indexOf("<li")===0&&(a="ul"),o.indexOf("<tr")===0&&(a="tbody"),(o.indexOf("<td")===0||o.indexOf("<th")===0)&&(a="tr"),o.indexOf("<tbody")===0&&(a="table"),o.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=o;for(var s=0;s<u.childNodes.length;s+=1)i.push(u.childNodes[s])}else i=gR(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof Ai)return e;i=e}return new Ai(pR(i))}O.fn=Ai.prototype;function vu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=rp(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).add.apply(o,r)}),this}function mu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=rp(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).remove.apply(o,r)}),this}function yu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=rp(t.map(function(i){return i.split(" ")}));return p8(this,function(i){return r.filter(function(o){return i.classList.contains(o)}).length>0}).length>0}function Mn(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)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 ip(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function bu(){var e=this[0];if(!!e){var t={};if(e.dataset)for(var n in e.dataset)t[n]=e.dataset[n];else for(var r=0;r<e.attributes.length;r+=1){var i=e.attributes[r];i.name.indexOf("data-")>=0&&(t[hR(i.name.split("data-")[1])]=i.value)}for(var o in t)t[o]==="false"?t[o]=!1:t[o]==="true"?t[o]=!0:parseFloat(t[o])===t[o]*1&&(t[o]*=1);return t}}function Sr(e){if(typeof e=="undefined"){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var o=this[i];if(Array.isArray(e)&&o.multiple&&o.nodeName.toLowerCase()==="select")for(var a=0;a<o.options.length;a+=1)o.options[a].selected=e.indexOf(o.options[a].value)>=0;else o.value=e}return this}function Dr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);function u(v){var g=v.target;if(!!g){var y=v.target.dom7EventData||[];if(y.indexOf(v)<0&&y.unshift(v),O(g).is(i))o.apply(g,y);else for(var h=O(g).parents(),$=0;$<h.length;$+=1)O(h[$]).is(i)&&o.apply(h[$],y)}}function s(v){var g=v&&v.target?v.target.dom7EventData||[]:[];g.indexOf(v)<0&&g.unshift(v),o.apply(this,g)}for(var l=r.split(" "),c,f=0;f<this.length;f+=1){var d=this[f];if(i)for(c=0;c<l.length;c+=1){var m=l[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[m]||(d.dom7LiveListeners[m]=[]),d.dom7LiveListeners[m].push({listener:o,proxyListener:u}),d.addEventListener(m,u,a)}else for(c=0;c<l.length;c+=1){var p=l[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[p]||(d.dom7Listeners[p]=[]),d.dom7Listeners[p].push({listener:o,proxyListener:s}),d.addEventListener(p,s,a)}}return this}function h8(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],o=t[1],a=t[2],i=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(!i&&f.dom7Listeners?d=f.dom7Listeners[l]:i&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var m=d[p];o&&m.listener===o||o&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===o?(f.removeEventListener(l,m.proxyListener,a),d.splice(p,1)):o||(f.removeEventListener(l,m.proxyListener,a),d.splice(p,1))}}return this}function op(){var e=Ko();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function ap(){var e=Ko();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function g8(){if(this.length>0){var e=Ko(),t=hl(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-o,left:r.left+s-a}}return null}function $u(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function up(){for(var e=Ko(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function sp(e,t){var n=Ko(),r;if(arguments.length===1)if(typeof e=="string"){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(r=0;r<this.length;r+=1)for(var i in e)this[r].style[i]=e[i];return this}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function lp(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function v8(e){var t=p8(this,e);return O(t)}function Oi(e){if(typeof e=="undefined")return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function cp(e){if(typeof e=="undefined")return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function m8(e){var t=Ko(),n=hl(),r=this[0],i,o;if(!r||typeof e=="undefined")return!1;if(typeof e=="string"){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(i=O(e),o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}if(e===n)return r===n;if(e===t)return r===t;if(e.nodeType||e instanceof Ai){for(i=e.nodeType?[e]:e,o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}return!1}function zn(){for(var e,t=hl(),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(typeof e=="string"){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof Ai)for(var o=0;o<e.length;o+=1)this[r].appendChild(e[o]);else this[r].appendChild(e)}return this}function y8(e){var t=hl(),n,r;for(n=0;n<this.length;n+=1)if(typeof e=="string"){var i=t.createElement("div");for(i.innerHTML=e,r=i.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(e instanceof Ai)for(r=0;r<e.length;r+=1)this[n].insertBefore(e[r],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this}function wu(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?O(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return O(t)}function fp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?O(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return O(t)}function Eu(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return O(t)}function xu(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)(!e||O(r[i]).is(e))&&t.push(r[i]);return O(t)}function Su(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Du(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){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}var vR="resize scroll".split(" ");function b8(e){function t(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(typeof r[0]=="undefined"){for(var o=0;o<this.length;o+=1)vR.indexOf(e)<0&&(e in this[o]?this[o][e]():O(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}return t}var $8=b8("click"),Bi=b8("focus"),w8=9007199254740991,mR="[object Arguments]",yR="[object Function]",bR="[object GeneratorFunction]",$R=/^(?:0|[1-9]\d*)$/;function wR(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function ER(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function xR(e,t){return function(n){return e(t(n))}}var dp=Object.prototype,f1=dp.hasOwnProperty,E8=dp.toString,SR=dp.propertyIsEnumerable,DR=xR(Object.keys,Object);function CR(e,t){var n=x8(e)||IR(e)?ER(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||f1.call(e,o))&&!(i&&(o=="length"||PR(o,r)))&&n.push(o);return n}var AR=TR(BR),OR=kR();function BR(e,t){return e&&OR(e,t,HR)}function FR(e){if(!_R(e))return DR(e);var t=[];for(var n in Object(e))f1.call(e,n)&&n!="constructor"&&t.push(n);return t}function TR(e,t){return function(n,r){if(n==null)return n;if(!d1(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function kR(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++i];if(n(o[s],s,o)===!1)break}return t}}function PR(e,t){return t=t==null?w8:t,!!t&&(typeof e=="number"||$R.test(e))&&e>-1&&e%1==0&&e<t}function _R(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||dp;return e===n}function NR(e,t){var n=x8(e)?wR:AR;return n(e,typeof t=="function"?t:UR)}function IR(e){return jR(e)&&f1.call(e,"callee")&&(!SR.call(e,"callee")||E8.call(e)==mR)}var x8=Array.isArray;function d1(e){return e!=null&&LR(e.length)&&!RR(e)}function jR(e){return zR(e)&&d1(e)}function RR(e){var t=MR(e)?E8.call(e):"";return t==yR||t==bR}function LR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=w8}function MR(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function zR(e){return!!e&&typeof e=="object"}function HR(e){return d1(e)?CR(e):FR(e)}function UR(e){return e}var p1=NR;{if(typeof navigator!="undefined"&&navigator.product==="ReactNative"&&typeof crypto=="undefined")throw new Error("React Native does not have a built-in secure random generator. If you don\u2019t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if(typeof msCrypto!="undefined"&&typeof crypto=="undefined")throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if(typeof crypto=="undefined")throw new Error("Your browser does not have secure random generator. If you don\u2019t need unpredictable IDs, you can use nanoid/non-secure.")}let S8=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};var D8="Expected a function",C8=0/0,VR="[object Symbol]",WR=/^\s+|\s+$/g,GR=/^[-+]0x[0-9a-f]+$/i,qR=/^0b[01]+$/i,KR=/^0o[0-7]+$/i,YR=parseInt,XR=typeof ot=="object"&&ot&&ot.Object===Object&&ot,JR=typeof self=="object"&&self&&self.Object===Object&&self,ZR=XR||JR||Function("return this")(),QR=Object.prototype,eL=QR.toString,tL=Math.max,nL=Math.min,h1=function(){return ZR.Date.now()};function rL(e,t,n){var r,i,o,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(D8);t=A8(t)||0,pp(n)&&(c=!!n.leading,f="maxWait"in n,o=f?tL(A8(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(S){var C=r,N=i;return r=i=void 0,l=S,a=e.apply(N,C),a}function m(S){return l=S,u=setTimeout(y,t),c?p(S):a}function v(S){var C=S-s,N=S-l,R=t-C;return f?nL(R,o-N):R}function g(S){var C=S-s,N=S-l;return s===void 0||C>=t||C<0||f&&N>=o}function y(){var S=h1();if(g(S))return h(S);u=setTimeout(y,v(S))}function h(S){return u=void 0,d&&r?p(S):(r=i=void 0,a)}function $(){u!==void 0&&clearTimeout(u),l=0,r=s=i=u=void 0}function w(){return u===void 0?a:h(h1())}function x(){var S=h1(),C=g(S);if(r=arguments,i=this,s=S,C){if(u===void 0)return m(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return x.cancel=$,x.flush=w,x}function iL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(D8);return pp(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),rL(e,t,{leading:r,maxWait:t,trailing:i})}function pp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oL(e){return!!e&&typeof e=="object"}function aL(e){return typeof e=="symbol"||oL(e)&&eL.call(e)==VR}function A8(e){if(typeof e=="number")return e;if(aL(e))return C8;if(pp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(WR,"");var n=qR.test(e);return n||KR.test(e)?YR(e.slice(2),n?2:8):GR.test(e)?C8:+e}var Yo=iL;function uL(e,t){return document.createElement(e,t)}function sL(e,t,n){return document.createElementNS(e,t,n)}function lL(e){return document.createTextNode(e)}function cL(e){return document.createComment(e)}function fL(e,t,n){e.insertBefore(t,n)}function dL(e,t){e.removeChild(t)}function pL(e,t){e.appendChild(t)}function hL(e){return e.parentNode}function gL(e){return e.nextSibling}function vL(e){return e.tagName}function mL(e,t){e.textContent=t}function yL(e){return e.textContent}function bL(e){return e.nodeType===1}function $L(e){return e.nodeType===3}function wL(e){return e.nodeType===8}const EL={createElement:uL,createElementNS:sL,createTextNode:lL,createComment:cL,insertBefore:fL,removeChild:dL,appendChild:pL,parentNode:hL,nextSibling:gL,tagName:vL,setTextContent:mL,getTextContent:yL,isElement:bL,isText:$L,isComment:wL};function gl(e,t,n,r,i){const o=t===void 0?void 0:t.key;return{sel:e,data:t,children:n,text:r,elm:i,key:o}}const g1=Array.isArray;function hp(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function v1(e){return e===void 0}function Sn(e){return e!==void 0}const O8=gl("",{},[],void 0,void 0);function vl(e,t){var n,r;const i=e.key===t.key,o=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&i&&o}function xL(e){return e.sel!==void 0}function SL(e,t,n){var r;const i={};for(let o=t;o<=n;++o){const a=(r=e[o])===null||r===void 0?void 0:r.key;a!==void 0&&(i[a]=o)}return i}const DL=["create","update","remove","destroy","pre","post"];function CL(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:EL;for(const d of DL)for(const p of e){const m=p[d];m!==void 0&&n[d].push(m)}function i(d){const p=d.id?"#"+d.id:"",m=d.getAttribute("class"),v=m?"."+m.split(" ").join("."):"";return gl(r.tagName(d).toLowerCase()+p+v,{},[],void 0,d)}function o(d,p){return function(){if(--p==0){const v=r.parentNode(d);r.removeChild(v,d)}}}function a(d,p){var m,v;let g,y=d.data;if(y!==void 0){const w=(m=y.hook)===null||m===void 0?void 0:m.init;Sn(w)&&(w(d),y=d.data)}const h=d.children,$=d.sel;if($==="!")v1(d.text)&&(d.text=""),d.elm=r.createComment(d.text);else if($!==void 0){const w=$.indexOf("#"),x=$.indexOf(".",w),S=w>0?w:$.length,C=x>0?x:$.length,N=w!==-1||x!==-1?$.slice(0,Math.min(S,C)):$,R=d.elm=Sn(y)&&Sn(g=y.ns)?r.createElementNS(g,N,y):r.createElement(N,y);for(S<C&&R.setAttribute("id",$.slice(S+1,C)),x>0&&R.setAttribute("class",$.slice(C+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](O8,d);if(g1(h))for(g=0;g<h.length;++g){const W=h[g];W!=null&&r.appendChild(R,a(W,p))}else hp(d.text)&&r.appendChild(R,r.createTextNode(d.text));const U=d.data.hook;Sn(U)&&((v=U.create)===null||v===void 0||v.call(U,O8,d),U.insert&&p.push(d))}else d.elm=r.createTextNode(d.text);return d.elm}function u(d,p,m,v,g,y){for(;v<=g;++v){const h=m[v];h!=null&&r.insertBefore(d,a(h,y),p)}}function s(d){var p,m;const v=d.data;if(v!==void 0){(m=(p=v==null?void 0:v.hook)===null||p===void 0?void 0:p.destroy)===null||m===void 0||m.call(p,d);for(let g=0;g<n.destroy.length;++g)n.destroy[g](d);if(d.children!==void 0)for(let g=0;g<d.children.length;++g){const y=d.children[g];y!=null&&typeof y!="string"&&s(y)}}}function l(d,p,m,v){for(var g,y;m<=v;++m){let h,$;const w=p[m];if(w!=null)if(Sn(w.sel)){s(w),h=n.remove.length+1,$=o(w.elm,h);for(let S=0;S<n.remove.length;++S)n.remove[S](w,$);const x=(y=(g=w==null?void 0:w.data)===null||g===void 0?void 0:g.hook)===null||y===void 0?void 0:y.remove;Sn(x)?x(w,$):$()}else r.removeChild(d,w.elm)}}function c(d,p,m,v){let g=0,y=0,h=p.length-1,$=p[0],w=p[h],x=m.length-1,S=m[0],C=m[x],N,R,U,W;for(;g<=h&&y<=x;)$==null?$=p[++g]:w==null?w=p[--h]:S==null?S=m[++y]:C==null?C=m[--x]:vl($,S)?(f($,S,v),$=p[++g],S=m[++y]):vl(w,C)?(f(w,C,v),w=p[--h],C=m[--x]):vl($,C)?(f($,C,v),r.insertBefore(d,$.elm,r.nextSibling(w.elm)),$=p[++g],C=m[--x]):vl(w,S)?(f(w,S,v),r.insertBefore(d,w.elm,$.elm),w=p[--h],S=m[++y]):(N===void 0&&(N=SL(p,g,h)),R=N[S.key],v1(R)?r.insertBefore(d,a(S,v),$.elm):(U=p[R],U.sel!==S.sel?r.insertBefore(d,a(S,v),$.elm):(f(U,S,v),p[R]=void 0,r.insertBefore(d,U.elm,$.elm))),S=m[++y]);(g<=h||y<=x)&&(g>h?(W=m[x+1]==null?null:m[x+1].elm,u(d,W,m,y,x,v)):l(d,p,g,h))}function f(d,p,m){var v,g,y,h,$;const w=(v=p.data)===null||v===void 0?void 0:v.hook;(g=w==null?void 0:w.prepatch)===null||g===void 0||g.call(w,d,p);const x=p.elm=d.elm,S=d.children,C=p.children;if(d!==p){if(p.data!==void 0){for(let N=0;N<n.update.length;++N)n.update[N](d,p);(h=(y=p.data.hook)===null||y===void 0?void 0:y.update)===null||h===void 0||h.call(y,d,p)}v1(p.text)?Sn(S)&&Sn(C)?S!==C&&c(x,S,C,m):Sn(C)?(Sn(d.text)&&r.setTextContent(x,""),u(x,null,C,0,C.length-1,m)):Sn(S)?l(x,S,0,S.length-1):Sn(d.text)&&r.setTextContent(x,""):d.text!==p.text&&(Sn(S)&&l(x,S,0,S.length-1),r.setTextContent(x,p.text)),($=w==null?void 0:w.postpatch)===null||$===void 0||$.call(w,d,p)}}return function(p,m){let v,g,y;const h=[];for(v=0;v<n.pre.length;++v)n.pre[v]();for(xL(p)||(p=i(p)),vl(p,m)?f(p,m,h):(g=p.elm,y=r.parentNode(g),a(m,h),y!==null&&(r.insertBefore(y,m.elm,r.nextSibling(g)),l(y,[p],0,0))),v=0;v<h.length;++v)h[v].data.hook.insert(h[v]);for(v=0;v<n.post.length;++v)n.post[v]();return m}}function B8(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const i=t[r].data;i!==void 0&&B8(i,t[r].children,t[r].sel)}}function Cu(e,t,n){let r={},i,o,a;if(n!==void 0?(t!==null&&(r=t),g1(n)?i=n:hp(n)?o=n.toString():n&&n.sel&&(i=[n])):t!=null&&(g1(t)?i=t:hp(t)?o=t.toString():t&&t.sel?i=[t]:r=t),i!==void 0)for(a=0;a<i.length;++a)hp(i[a])&&(i[a]=gl(void 0,void 0,void 0,i[a],void 0));return e[0]==="s"&&e[1]==="v"&&e[2]==="g"&&(e.length===3||e[3]==="."||e[3]==="#")&&B8(r,i,e),gl(e,r,i,o,void 0)}const AL="http://www.w3.org/1999/xlink",OL="http://www.w3.org/XML/1998/namespace",F8=58,BL=120;function T8(e,t){let n;const r=t.elm;let i=e.data.attrs,o=t.data.attrs;if(!(!i&&!o)&&i!==o){i=i||{},o=o||{};for(n in o){const a=o[n];i[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==BL?r.setAttribute(n,a):n.charCodeAt(3)===F8?r.setAttributeNS(OL,n,a):n.charCodeAt(5)===F8?r.setAttributeNS(AL,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}const FL={create:T8,update:T8};function k8(e,t){let n,r;const i=t.elm;let o=e.data.class,a=t.data.class;if(!(!o&&!a)&&o!==a){o=o||{},a=a||{};for(r in o)o[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&i.classList.remove(r);for(r in a)n=a[r],n!==o[r]&&i.classList[n?"add":"remove"](r)}}const TL={create:k8,update:k8},P8=/[A-Z]/g;function _8(e,t){const n=t.elm;let r=e.data.dataset,i=t.data.dataset,o;if(!r&&!i||r===i)return;r=r||{},i=i||{};const a=n.dataset;for(o in r)i[o]||(a?o in a&&delete a[o]:n.removeAttribute("data-"+o.replace(P8,"-$&").toLowerCase()));for(o in i)r[o]!==i[o]&&(a?a[o]=i[o]:n.setAttribute("data-"+o.replace(P8,"-$&").toLowerCase(),i[o]))}const kL={create:_8,update:_8};function N8(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)N8(e[r],t,n)}function PL(e,t){const n=e.type,r=t.data.on;r&&r[n]&&N8(r[n],t,e)}function _L(){return function e(t){PL(t,e.vnode)}}function m1(e,t){const n=e.data.on,r=e.listener,i=e.elm,o=t&&t.data.on,a=t&&t.elm;let u;if(n!==o){if(n&&r)if(o)for(u in n)o[u]||i.removeEventListener(u,r,!1);else for(u in n)i.removeEventListener(u,r,!1);if(o){const s=t.listener=e.listener||_L();if(s.vnode=t,n)for(u in o)n[u]||a.addEventListener(u,s,!1);else for(u in o)a.addEventListener(u,s,!1)}}}const NL={create:m1,update:m1,destroy:m1};function I8(e,t){let n,r,i;const o=t.elm;let a=e.data.props,u=t.data.props;if(!(!a&&!u)&&a!==u){a=a||{},u=u||{};for(n in u)r=u[n],i=a[n],i!==r&&(n!=="value"||o[n]!==r)&&(o[n]=r)}}const IL={create:I8,update:I8},j8=typeof window!="undefined"&&window.requestAnimationFrame.bind(window)||setTimeout,jL=function(e){j8(function(){j8(e)})};let y1=!1;function RL(e,t,n){jL(function(){e[t]=n})}function R8(e,t){let n,r;const i=t.elm;let o=e.data.style,a=t.data.style;if(!o&&!a||o===a)return;o=o||{},a=a||{};const u="delayed"in o;for(r in o)a[r]||(r[0]==="-"&&r[1]==="-"?i.style.removeProperty(r):i.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],(!u||n!==o.delayed[s])&&RL(i.style,s,n);else r!=="remove"&&n!==o[r]&&(r[0]==="-"&&r[1]==="-"?i.style.setProperty(r,n):i.style[r]=n)}function LL(e){let t,n;const r=e.elm,i=e.data.style;if(!(!i||!(t=i.destroy)))for(n in t)r.style[n]=t[n]}function ML(e,t){const n=e.data.style;if(!n||!n.remove){t();return}y1||(e.elm.offsetLeft,y1=!0);let r;const i=e.elm;let o=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),i.style[r]=a[r];const c=getComputedStyle(i)["transition-property"].split(", ");for(;o<c.length;++o)s.indexOf(c[o])!==-1&&u++;i.addEventListener("transitionend",function(f){f.target===i&&--u,u===0&&t()})}function zL(){y1=!1}const HL={pre:zL,create:R8,update:R8,destroy:LL,remove:ML};function L8(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?L8(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(gl(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function fe(e,t,...n){const r=L8(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?Cu(e,t,r[0].text):Cu(e,t,r)}(function(e){})(fe||(fe={}));var UL=1/0,VL="[object Symbol]",WL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,GL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gp="\\ud800-\\udfff",M8="\\u0300-\\u036f\\ufe20-\\ufe23",z8="\\u20d0-\\u20f0",H8="\\u2700-\\u27bf",U8="a-z\\xdf-\\xf6\\xf8-\\xff",qL="\\xac\\xb1\\xd7\\xf7",KL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",YL="\\u2000-\\u206f",XL=" \\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",V8="A-Z\\xc0-\\xd6\\xd8-\\xde",W8="\\ufe0e\\ufe0f",G8=qL+KL+YL+XL,b1="['\u2019]",JL="["+gp+"]",q8="["+G8+"]",vp="["+M8+z8+"]",K8="\\d+",ZL="["+H8+"]",Y8="["+U8+"]",X8="[^"+gp+G8+K8+H8+U8+V8+"]",$1="\\ud83c[\\udffb-\\udfff]",QL="(?:"+vp+"|"+$1+")",J8="[^"+gp+"]",w1="(?:\\ud83c[\\udde6-\\uddff]){2}",E1="[\\ud800-\\udbff][\\udc00-\\udfff]",Au="["+V8+"]",Z8="\\u200d",Q8="(?:"+Y8+"|"+X8+")",eM="(?:"+Au+"|"+X8+")",ex="(?:"+b1+"(?:d|ll|m|re|s|t|ve))?",tx="(?:"+b1+"(?:D|LL|M|RE|S|T|VE))?",nx=QL+"?",rx="["+W8+"]?",tM="(?:"+Z8+"(?:"+[J8,w1,E1].join("|")+")"+rx+nx+")*",ix=rx+nx+tM,nM="(?:"+[ZL,w1,E1].join("|")+")"+ix,rM="(?:"+[J8+vp+"?",vp,w1,E1,JL].join("|")+")",iM=RegExp(b1,"g"),oM=RegExp(vp,"g"),aM=RegExp($1+"(?="+$1+")|"+rM+ix,"g"),uM=RegExp([Au+"?"+Y8+"+"+ex+"(?="+[q8,Au,"$"].join("|")+")",eM+"+"+tx+"(?="+[q8,Au+Q8,"$"].join("|")+")",Au+"?"+Q8+"+"+ex,Au+"+"+tx,K8,nM].join("|"),"g"),sM=RegExp("["+Z8+gp+M8+z8+W8+"]"),lM=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cM={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},fM=typeof ot=="object"&&ot&&ot.Object===Object&&ot,dM=typeof self=="object"&&self&&self.Object===Object&&self,pM=fM||dM||Function("return this")();function hM(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function gM(e){return e.split("")}function vM(e){return e.match(WL)||[]}function mM(e){return function(t){return e==null?void 0:e[t]}}var yM=mM(cM);function ox(e){return sM.test(e)}function bM(e){return lM.test(e)}function $M(e){return ox(e)?wM(e):gM(e)}function wM(e){return e.match(aM)||[]}function EM(e){return e.match(uM)||[]}var xM=Object.prototype,SM=xM.toString,ax=pM.Symbol,ux=ax?ax.prototype:void 0,sx=ux?ux.toString:void 0;function DM(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function CM(e){if(typeof e=="string")return e;if(TM(e))return sx?sx.call(e):"";var t=e+"";return t=="0"&&1/e==-UL?"-0":t}function AM(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:DM(e,t,n)}function OM(e){return function(t){t=mp(t);var n=ox(t)?$M(t):void 0,r=n?n[0]:t.charAt(0),i=n?AM(n,1).join(""):t.slice(1);return r[e]()+i}}function BM(e){return function(t){return hM(IM(_M(t).replace(iM,"")),e,"")}}function FM(e){return!!e&&typeof e=="object"}function TM(e){return typeof e=="symbol"||FM(e)&&SM.call(e)==VL}function mp(e){return e==null?"":CM(e)}var kM=BM(function(e,t,n){return t=t.toLowerCase(),e+(n?PM(t):t)});function PM(e){return NM(mp(e).toLowerCase())}function _M(e){return e=mp(e),e&&e.replace(GL,yM).replace(oM,"")}var NM=OM("toUpperCase");function IM(e,t,n){return e=mp(e),t=n?void 0:t,t===void 0?bM(e)?EM(e):vM(e):e.match(t)||[]}for(var jM=kM,RM=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),x1={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},lx={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:RM?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},S1={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},yp=1;yp<20;yp++)S1["f"+yp]=111+yp;function cx(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return MM(a,t)}),i=function(u){return r.some(function(s){return zM(s,u)})},o=n==null?i:i(n);return o}function LM(e,t){return cx(e,{byKey:!0},t)}function MM(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in x1)r[x1[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c=i[Symbol.iterator](),f;!(u=(f=c.next()).done);u=!0){var d=f.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var m=fx(d),v=x1[m];if(d.length>1&&!v&&!lx[d]&&!S1[m])throw new TypeError('Unknown modifier: "'+d+'"');(o===1||!v)&&(n?r.key=m:r.which=HM(d)),v&&(r[v]=p?null:!0)}}catch(g){s=!0,l=g}finally{try{!u&&c.return&&c.return()}finally{if(s)throw l}}return r}function zM(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&(n==="key"&&t.key!=null?i=t.key.toLowerCase():n==="which"?i=r===91&&t.which===93?91:t.which:i=t[n],!(i==null&&r===!1)&&i!==r))return!1}return!0}function HM(e){e=fx(e);var t=S1[e]||e.toUpperCase().charCodeAt(0);return t}function fx(e){return e=e.toLowerCase(),e=lx[e]||e,e}var UM=cx,D1=LM,VM="Expected a function",dx=0/0,WM="[object Symbol]",GM=/^\s+|\s+$/g,qM=/^[-+]0x[0-9a-f]+$/i,KM=/^0b[01]+$/i,YM=/^0o[0-7]+$/i,XM=parseInt,JM=typeof ot=="object"&&ot&&ot.Object===Object&&ot,ZM=typeof self=="object"&&self&&self.Object===Object&&self,QM=JM||ZM||Function("return this")(),ez=Object.prototype,tz=ez.toString,nz=Math.max,rz=Math.min,C1=function(){return QM.Date.now()};function iz(e,t,n){var r,i,o,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(VM);t=px(t)||0,A1(n)&&(c=!!n.leading,f="maxWait"in n,o=f?nz(px(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(S){var C=r,N=i;return r=i=void 0,l=S,a=e.apply(N,C),a}function m(S){return l=S,u=setTimeout(y,t),c?p(S):a}function v(S){var C=S-s,N=S-l,R=t-C;return f?rz(R,o-N):R}function g(S){var C=S-s,N=S-l;return s===void 0||C>=t||C<0||f&&N>=o}function y(){var S=C1();if(g(S))return h(S);u=setTimeout(y,v(S))}function h(S){return u=void 0,d&&r?p(S):(r=i=void 0,a)}function $(){u!==void 0&&clearTimeout(u),l=0,r=s=i=u=void 0}function w(){return u===void 0?a:h(C1())}function x(){var S=C1(),C=g(S);if(r=arguments,i=this,s=S,C){if(u===void 0)return m(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return x.cancel=$,x.flush=w,x}function A1(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oz(e){return!!e&&typeof e=="object"}function az(e){return typeof e=="symbol"||oz(e)&&tz.call(e)==WM}function px(e){if(typeof e=="number")return e;if(az(e))return dx;if(A1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=A1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(GM,"");var n=KM.test(e);return n||YM.test(e)?XM(e.slice(2),n?2:8):qM.test(e)?dx:+e}var hx=iz,gx=Kv(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object GeneratorFunction]",d="[object Map]",p="[object Number]",m="[object Object]",v="[object Promise]",g="[object RegExp]",y="[object Set]",h="[object String]",$="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",N="[object Float64Array]",R="[object Int8Array]",U="[object Int16Array]",W="[object Int32Array]",Z="[object Uint8Array]",Q="[object Uint8ClampedArray]",le="[object Uint16Array]",te="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,he=/\w*$/,Ie=/^\[object .+?Constructor\]$/,ye=/^(?:0|[1-9]\d*)$/,oe={};oe[o]=oe[a]=oe[x]=oe[S]=oe[u]=oe[s]=oe[C]=oe[N]=oe[R]=oe[U]=oe[W]=oe[d]=oe[p]=oe[m]=oe[g]=oe[y]=oe[h]=oe[$]=oe[Z]=oe[Q]=oe[le]=oe[te]=!0,oe[l]=oe[c]=oe[w]=!1;var Le=typeof ot=="object"&&ot&&ot.Object===Object&&ot,T=typeof self=="object"&&self&&self.Object===Object&&self,F=Le||T||Function("return this")(),k=t&&!t.nodeType&&t,I=k&&!0&&e&&!e.nodeType&&e,V=I&&I.exports===k;function L(b,D){return b.set(D[0],D[1]),b}function ee(b,D){return b.add(D),b}function pe(b,D){for(var B=-1,M=b?b.length:0;++B<M&&D(b[B],B,b)!==!1;);return b}function Ce(b,D){for(var B=-1,M=D.length,be=b.length;++B<M;)b[be+B]=D[B];return b}function Me(b,D,B,M){var be=-1,ae=b?b.length:0;for(M&&ae&&(B=b[++be]);++be<ae;)B=D(B,b[be],be,b);return B}function H(b,D){for(var B=-1,M=Array(b);++B<b;)M[B]=D(B);return M}function We(b,D){return b==null?void 0:b[D]}function we(b){var D=!1;if(b!=null&&typeof b.toString!="function")try{D=!!(b+"")}catch(B){}return D}function se(b){var D=-1,B=Array(b.size);return b.forEach(function(M,be){B[++D]=[be,M]}),B}function Ee(b,D){return function(B){return b(D(B))}}function In(b){var D=-1,B=Array(b.size);return b.forEach(function(M){B[++D]=M}),B}var Xe=Array.prototype,gt=Function.prototype,yt=Object.prototype,yn=F["__core-js_shared__"],bt=function(){var b=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),ar=gt.toString,jn=yt.hasOwnProperty,bn=yt.toString,qr=RegExp("^"+ar.call(jn).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kr=V?F.Buffer:void 0,Rn=F.Symbol,Yr=F.Uint8Array,cn=Ee(Object.getPrototypeOf,Object),ur=Object.create,nl=yt.propertyIsEnumerable,Bd=Xe.splice,$i=Object.getOwnPropertySymbols,jo=Kr?Kr.isBuffer:void 0,rl=Ee(Object.keys,Object),Ro=Er(F,"DataView"),wi=Er(F,"Map"),Ln=Er(F,"Promise"),Lo=Er(F,"Set"),Fd=Er(F,"WeakMap"),ru=Er(Object,"create"),Td=fn(Ro),iu=fn(wi),kd=fn(Ln),Pd=fn(Lo),_d=fn(Fd),Mo=Rn?Rn.prototype:void 0,mv=Mo?Mo.valueOf:void 0;function Ei(b){var D=-1,B=b?b.length:0;for(this.clear();++D<B;){var M=b[D];this.set(M[0],M[1])}}function SE(){this.__data__=ru?ru(null):{}}function DE(b){return this.has(b)&&delete this.__data__[b]}function CE(b){var D=this.__data__;if(ru){var B=D[b];return B===r?void 0:B}return jn.call(D,b)?D[b]:void 0}function yv(b){var D=this.__data__;return ru?D[b]!==void 0:jn.call(D,b)}function Nd(b,D){var B=this.__data__;return B[b]=ru&&D===void 0?r:D,this}Ei.prototype.clear=SE,Ei.prototype.delete=DE,Ei.prototype.get=CE,Ei.prototype.has=yv,Ei.prototype.set=Nd;function Zt(b){var D=-1,B=b?b.length:0;for(this.clear();++D<B;){var M=b[D];this.set(M[0],M[1])}}function AE(){this.__data__=[]}function OE(b){var D=this.__data__,B=ol(D,b);if(B<0)return!1;var M=D.length-1;return B==M?D.pop():Bd.call(D,B,1),!0}function BE(b){var D=this.__data__,B=ol(D,b);return B<0?void 0:D[B][1]}function FE(b){return ol(this.__data__,b)>-1}function TE(b,D){var B=this.__data__,M=ol(B,b);return M<0?B.push([b,D]):B[M][1]=D,this}Zt.prototype.clear=AE,Zt.prototype.delete=OE,Zt.prototype.get=BE,Zt.prototype.has=FE,Zt.prototype.set=TE;function an(b){var D=-1,B=b?b.length:0;for(this.clear();++D<B;){var M=b[D];this.set(M[0],M[1])}}function kE(){this.__data__={hash:new Ei,map:new(wi||Zt),string:new Ei}}function PE(b){return au(this,b).delete(b)}function _E(b){return au(this,b).get(b)}function NE(b){return au(this,b).has(b)}function IE(b,D){return au(this,b).set(b,D),this}an.prototype.clear=kE,an.prototype.delete=PE,an.prototype.get=_E,an.prototype.has=NE,an.prototype.set=IE;function $n(b){this.__data__=new Zt(b)}function jE(){this.__data__=new Zt}function RE(b){return this.__data__.delete(b)}function LE(b){return this.__data__.get(b)}function ME(b){return this.__data__.has(b)}function zE(b,D){var B=this.__data__;if(B instanceof Zt){var M=B.__data__;if(!wi||M.length<n-1)return M.push([b,D]),this;B=this.__data__=new an(M)}return B.set(b,D),this}$n.prototype.clear=jE,$n.prototype.delete=RE,$n.prototype.get=LE,$n.prototype.has=ME,$n.prototype.set=zE;function il(b,D){var B=Ld(b)||ul(b)?H(b.length,String):[],M=B.length,be=!!M;for(var ae in b)(D||jn.call(b,ae))&&!(be&&(ae=="length"||t6(ae,M)))&&B.push(ae);return B}function bv(b,D,B){var M=b[D];(!(jn.call(b,D)&&Sv(M,B))||B===void 0&&!(D in b))&&(b[D]=B)}function ol(b,D){for(var B=b.length;B--;)if(Sv(b[B][0],D))return B;return-1}function Xr(b,D){return b&&Rd(D,zd(D),b)}function Id(b,D,B,M,be,ae,Ne){var je;if(M&&(je=ae?M(b,be,ae,Ne):M(b)),je!==void 0)return je;if(!Zr(b))return b;var _t=Ld(b);if(_t){if(je=QE(b),!D)return XE(b,je)}else{var Ge=Si(b),un=Ge==c||Ge==f;if(Dv(b))return al(b,D);if(Ge==m||Ge==o||un&&!ae){if(we(b))return ae?b:{};if(je=Jr(un?{}:b),!D)return JE(b,Xr(je,b))}else{if(!oe[Ge])return ae?b:{};je=e6(b,Ge,Id,D)}}Ne||(Ne=new $n);var wn=Ne.get(b);if(wn)return wn;if(Ne.set(b,je),!_t)var Mt=B?ZE(b):zd(b);return pe(Mt||b,function(sn,Qt){Mt&&(Qt=sn,sn=b[Qt]),bv(je,Qt,Id(sn,D,B,M,Qt,b,Ne))}),je}function HE(b){return Zr(b)?ur(b):{}}function UE(b,D,B){var M=D(b);return Ld(b)?M:Ce(M,B(b))}function VE(b){return bn.call(b)}function WE(b){if(!Zr(b)||r6(b))return!1;var D=Md(b)||we(b)?qr:Ie;return D.test(fn(b))}function GE(b){if(!Ev(b))return rl(b);var D=[];for(var B in Object(b))jn.call(b,B)&&B!="constructor"&&D.push(B);return D}function al(b,D){if(D)return b.slice();var B=new b.constructor(b.length);return b.copy(B),B}function jd(b){var D=new b.constructor(b.byteLength);return new Yr(D).set(new Yr(b)),D}function ou(b,D){var B=D?jd(b.buffer):b.buffer;return new b.constructor(B,b.byteOffset,b.byteLength)}function $v(b,D,B){var M=D?B(se(b),!0):se(b);return Me(M,L,new b.constructor)}function wv(b){var D=new b.constructor(b.source,he.exec(b));return D.lastIndex=b.lastIndex,D}function qE(b,D,B){var M=D?B(In(b),!0):In(b);return Me(M,ee,new b.constructor)}function KE(b){return mv?Object(mv.call(b)):{}}function YE(b,D){var B=D?jd(b.buffer):b.buffer;return new b.constructor(B,b.byteOffset,b.length)}function XE(b,D){var B=-1,M=b.length;for(D||(D=Array(M));++B<M;)D[B]=b[B];return D}function Rd(b,D,B,M){B||(B={});for(var be=-1,ae=D.length;++be<ae;){var Ne=D[be],je=M?M(B[Ne],b[Ne],Ne,B,b):void 0;bv(B,Ne,je===void 0?b[Ne]:je)}return B}function JE(b,D){return Rd(b,xi(b),D)}function ZE(b){return UE(b,zd,xi)}function au(b,D){var B=b.__data__;return n6(D)?B[typeof D=="string"?"string":"hash"]:B.map}function Er(b,D){var B=We(b,D);return WE(B)?B:void 0}var xi=$i?Ee($i,Object):o6,Si=VE;(Ro&&Si(new Ro(new ArrayBuffer(1)))!=S||wi&&Si(new wi)!=d||Ln&&Si(Ln.resolve())!=v||Lo&&Si(new Lo)!=y||Fd&&Si(new Fd)!=w)&&(Si=function(b){var D=bn.call(b),B=D==m?b.constructor:void 0,M=B?fn(B):void 0;if(M)switch(M){case Td:return S;case iu:return d;case kd:return v;case Pd:return y;case _d:return w}return D});function QE(b){var D=b.length,B=b.constructor(D);return D&&typeof b[0]=="string"&&jn.call(b,"index")&&(B.index=b.index,B.input=b.input),B}function Jr(b){return typeof b.constructor=="function"&&!Ev(b)?HE(cn(b)):{}}function e6(b,D,B,M){var be=b.constructor;switch(D){case x:return jd(b);case u:case s:return new be(+b);case S:return ou(b,M);case C:case N:case R:case U:case W:case Z:case Q:case le:case te:return YE(b,M);case d:return $v(b,M,B);case p:case h:return new be(b);case g:return wv(b);case y:return qE(b,M,B);case $:return KE(b)}}function t6(b,D){return D=D==null?i:D,!!D&&(typeof b=="number"||ye.test(b))&&b>-1&&b%1==0&&b<D}function n6(b){var D=typeof b;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?b!=="__proto__":b===null}function r6(b){return!!bt&&bt in b}function Ev(b){var D=b&&b.constructor,B=typeof D=="function"&&D.prototype||yt;return b===B}function fn(b){if(b!=null){try{return ar.call(b)}catch(D){}try{return b+""}catch(D){}}return""}function xv(b){return Id(b,!0,!0)}function Sv(b,D){return b===D||b!==b&&D!==D}function ul(b){return i6(b)&&jn.call(b,"callee")&&(!nl.call(b,"callee")||bn.call(b)==o)}var Ld=Array.isArray;function sl(b){return b!=null&&Cv(b.length)&&!Md(b)}function i6(b){return Av(b)&&sl(b)}var Dv=jo||a6;function Md(b){var D=Zr(b)?bn.call(b):"";return D==c||D==f}function Cv(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=i}function Zr(b){var D=typeof b;return!!b&&(D=="object"||D=="function")}function Av(b){return!!b&&typeof b=="object"}function zd(b){return sl(b)?il(b):GE(b)}function o6(){return[]}function a6(){return!1}e.exports=xv}),uz=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},Ou;function vx(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sz=0;function lz(e){return"__private_"+sz+++"_"+e}function cz(e,t,n){const r=[];return e.forEach(i=>typeof i!="string"?r.push(i):t[Symbol.split](i).forEach((o,a,u)=>{o!==""&&r.push(o),a<u.length-1&&r.push(n)})),r}/**
  10. * Takes a string with placeholder variables like `%{smart_count} file selected`
  11. * and replaces it with values from options `{smart_count: 5}`
  12. *
  13. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  14. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  15. *
  16. * @param {string} phrase that needs interpolation, with placeholders
  17. * @param {object} options with values that will be used to replace placeholders
  18. * @returns {any[]} interpolated
  19. */function mx(e,t){const n=/\$/g,r="$$$$";let i=[e];if(t==null)return i;for(const o of Object.keys(t))if(o!=="_"){let a=t[o];typeof a=="string"&&(a=n[Symbol.replace](a,r)),i=cz(i,new RegExp(`%\\{${o}\\}`,"g"),a)}return i}var yx=(Ou=lz("apply"),class{constructor(t){Object.defineProperty(this,Ou,{value:fz}),this.locale={strings:{},pluralize(n){return n===1?0:1}},Array.isArray(t)?t.forEach(vx(this,Ou)[Ou],this):vx(this,Ou)[Ou](t)}translate(t,n){return this.translateArray(t,n).join("")}translateArray(t,n){if(!uz(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(n&&typeof n.smart_count!="undefined"){const o=this.locale.pluralize(n.smart_count);return mx(r[o],n)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return mx(r,n)}});function fz(e){if(!(e!=null&&e.strings))return;const t=this.locale;this.locale=z(z({},t),{strings:z(z({},t.strings),e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}var bx=function(){var t={},n=t._fns={};t.emit=function(a,u,s,l,c,f,d){var p=r(a);p.length&&i(a,p,[u,s,l,c,f,d])},t.on=function(a,u){n[a]||(n[a]=[]),n[a].push(u)},t.once=function(a,u){function s(){u.apply(this,arguments),t.off(a,s)}this.on(a,s)},t.off=function(a,u){var s=[];if(a&&u){var l=this._fns[a],c=0,f=l?l.length:0;for(c;c<f;c++)l[c]!==u&&s.push(l[c])}s.length?this._fns[a]=s:delete this._fns[a]};function r(o){var a=n[o]?n[o]:[],u=o.indexOf(":"),s=u===-1?[o]:[o.substring(0,u),o.substring(u+1)],l=Object.keys(n),c=0,f=l.length;for(c;c<f;c++){var d=l[c];if(d==="*"&&(a=a.concat(n[d])),s.length===2&&s[0]===d){a=a.concat(n[d]);break}}return a}function i(o,a,u){var s=0,l=a.length;for(s;s<l&&a[s];s++)a[s].event=o,a[s].apply(a[s],u)}return t},dz={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:pz}=dz;{if(typeof navigator!="undefined"&&navigator.product==="ReactNative"&&typeof crypto=="undefined")throw new Error("React Native does not have a built-in secure random generator. If you don\u2019t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if(typeof msCrypto!="undefined"&&typeof crypto=="undefined")throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if(typeof crypto=="undefined")throw new Error("Your browser does not have secure random generator. If you don\u2019t need unpredictable IDs, you can use nanoid/non-secure.")}let $x=e=>crypto.getRandomValues(new Uint8Array(e)),wx=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let o="";for(;;){let a=n(i),u=i;for(;u--;)if(o+=e[a[u]&r]||"",o.length===t)return o}}};var hz={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t},customAlphabet:(e,t)=>wx(e,t,$x),customRandom:wx,urlAlphabet:pz,random:$x},O1=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var n=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(n&&(t=-t),t<1)return(n?"-":"")+t+" B";var i=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,i));var o=r[i];return t>=10||t%1==0?(n?"-":"")+t.toFixed(0)+" "+o:(n?"-":"")+t.toFixed(1)+" "+o};function Ex(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Ex.prototype.match=function(e){var t=!0,n=this.parts,r,i=n.length,o;if(typeof e=="string"||e instanceof String)if(!this.hasWild&&this.text!=e)t=!1;else{for(o=(e||"").split(this.separator),r=0;t&&r<i;r++)n[r]!=="*"&&(r<o.length?t=n[r]===o[r]:t=!1);t=t&&o}else if(typeof e.splice=="function")for(t=[],r=e.length;r--;)this.match(e[r])&&(t[t.length]=e[r]);else if(typeof e=="object"){t={};for(var a in e)this.match(a)&&(t[a]=e[a])}return t};var gz=function(e,t,n){var r=new Ex(e,n||/[\/\.]/);return typeof t!="undefined"?r.match(t):r},vz=/[\/\+\.]/,mz=function(e,t){function n(r){var i=gz(r,e,vz);return i&&i.length>=2}return t?n(t.split(";")[0]):n};function yz(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bz=0;function $z(e){return"__private_"+bz+++"_"+e}var B1=$z("publish");class xx{constructor(){Object.defineProperty(this,B1,{value:wz}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n=z({},this.state),r=z(z({},this.state),t);this.state=r,yz(this,B1)[B1](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function wz(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}xx.VERSION="2.0.3";var Ez=function(){return new xx},Sx=function(t){const n=t.lastIndexOf(".");return n===-1||n===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,n),extension:t.slice(n+1)}},Dx={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"},xz=function(t){var n;if(t.type)return t.type;const r=t.name?(n=Sx(t.name).extension)==null?void 0:n.toLowerCase():null;return r&&r in Dx?Dx[r]:"application/octet-stream"};function Sz(e){return e.charCodeAt(0).toString(32)}function Cx(e){let t="";return e.replace(/[^A-Z0-9]/ig,n=>(t+=`-${Sz(n)}`,"/"))+t}var Dz=function(t){let n="uppy";return typeof t.name=="string"&&(n+=`-${Cx(t.name.toLowerCase())}`),t.type!==void 0&&(n+=`-${t.type}`),t.meta&&typeof t.meta.relativePath=="string"&&(n+=`-${Cx(t.meta.relativePath.toLowerCase())}`),t.data.size!==void 0&&(n+=`-${t.data.size}`),t.data.lastModified!==void 0&&(n+=`-${t.data.lastModified}`),n},Cz=function(t){if(t==null&&(t=typeof navigator!="undefined"?navigator.userAgent:null),!t)return!0;const n=/Edge\/(\d+\.\d+)/.exec(t);if(!n)return!0;const r=n[1];let[i,o]=r.split(".");return i=parseInt(i,10),o=parseInt(o,10),i<15||i===15&&o<15063||i>18||i===18&&o>=18218},Az=function(t,n){return n.name?n.name:t.split("/")[0]==="image"?`${t.split("/")[0]}.${t.split("/")[1]}`:"noname"};function F1(e){return e<10?`0${e}`:e.toString()}var bp=function(){const t=new Date,n=F1(t.getHours()),r=F1(t.getMinutes()),i=F1(t.getSeconds());return`${n}:${r}:${i}`},Ax={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${bp()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${bp()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${bp()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${bp()}]`,...t)}}},Oz={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}"}}},Ox=hz;let Bx,Fx;function re(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bz=0;function Dt(e){return"__private_"+Bz+++"_"+e}const{nanoid:Fz}=Ox,{justErrorsLogger:Tz,debugLogger:kz}=Ax;class Cr extends Error{constructor(){super(...arguments);this.isRestriction=!0}}typeof AggregateError=="undefined"&&(globalThis.AggregateError=class extends Error{constructor(t,n){super(n);this.errors=t}});class Pz extends AggregateError{constructor(){super(...arguments);this.isRestriction=!0}}var qt=Dt("plugins"),ml=Dt("storeUnsubscribe"),ri=Dt("emitter"),Xo=Dt("preProcessors"),Jo=Dt("uploaders"),ii=Dt("postProcessors"),yl=Dt("checkRestrictions"),T1=Dt("checkMinNumberOfFiles"),bl=Dt("checkRequiredMetaFieldsOnFile"),k1=Dt("checkRequiredMetaFields"),Nt=Dt("showOrLogErrorAndThrow"),$l=Dt("assertNewUploadAllowed"),wl=Dt("checkAndCreateFileStateObject"),El=Dt("startIfAutoProceed"),P1=Dt("addListeners"),lr=Dt("updateOnlineStatus"),oi=Dt("createUpload"),_1=Dt("getUpload"),Zo=Dt("removeUpload"),ai=Dt("runUpload");Bx=Symbol.for("uppy test: getPlugins"),Fx=Symbol.for("uppy test: createUpload");class Tx{constructor(t){Object.defineProperty(this,ai,{value:Gz}),Object.defineProperty(this,Zo,{value:Wz}),Object.defineProperty(this,_1,{value:Vz}),Object.defineProperty(this,oi,{value:Uz}),Object.defineProperty(this,P1,{value:Hz}),Object.defineProperty(this,El,{value:zz}),Object.defineProperty(this,wl,{value:Mz}),Object.defineProperty(this,$l,{value:Lz}),Object.defineProperty(this,Nt,{value:Rz}),Object.defineProperty(this,k1,{value:jz}),Object.defineProperty(this,bl,{value:Iz}),Object.defineProperty(this,T1,{value:Nz}),Object.defineProperty(this,yl,{value:_z}),Object.defineProperty(this,qt,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ml,{writable:!0,value:void 0}),Object.defineProperty(this,ri,{writable:!0,value:bx()}),Object.defineProperty(this,Xo,{writable:!0,value:new Set}),Object.defineProperty(this,Jo,{writable:!0,value:new Set}),Object.defineProperty(this,ii,{writable:!0,value:new Set}),Object.defineProperty(this,lr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Oz;const n={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:r=>r,onBeforeUpload:r=>r,store:Ez(),logger:Tz,infoTimeout:5e3};if(this.opts=z(z(z({},n),t),{restrictions:z(z({},n.restrictions),t&&t.restrictions)}),t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=kz),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Yo(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Cz(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:z({},this.opts.meta),info:[],recoveredState:null}),re(this,ml)[ml]=this.store.subscribe((r,i,o)=>{this.emit("state-update",r,i,o),this.updateAll(i)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),re(this,P1)[P1]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];re(this,ri)[ri].emit(t,...r)}on(t,n){return re(this,ri)[ri].on(t,n),this}once(t,n){return re(this,ri)[ri].once(t,n),this}off(t,n){return re(this,ri)[ri].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can\u2019t set state for ${t} (the file could have been removed)`);this.setState({files:z(z({},this.getState().files),{[t]:z(z({},this.getState().files[t]),n)})})}i18nInit(){const t=new yx([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts=z(z(z({},this.opts),t),{restrictions:z(z({},this.opts.restrictions),t&&t.restrictions)}),t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n=z({},this.getState().files),r={};Object.keys(n).forEach(i=>{const o=z({},n[i]);o.progress=z(z({},o.progress),t),r[i]=o}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){re(this,Xo)[Xo].add(t)}removePreProcessor(t){return re(this,Xo)[Xo].delete(t)}addPostProcessor(t){re(this,ii)[ii].add(t)}removePostProcessor(t){return re(this,ii)[ii].delete(t)}addUploader(t){re(this,Jo)[Jo].add(t)}removeUploader(t){return re(this,Jo)[Jo].delete(t)}setMeta(t){const n=z(z({},this.getState().meta),t),r=z({},this.getState().files);Object.keys(r).forEach(i=>{r[i]=z(z({},r[i]),{meta:z(z({},r[i].meta),t)})}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r=z({},this.getState().files);if(!r[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const i=z(z({},r[t].meta),n);r[t]=z(z({},r[t]),{meta:i}),this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),i=Object.values(t),o=i.filter(m=>{let{progress:v}=m;return!v.uploadComplete&&v.uploadStarted}),a=i.filter(m=>!m.progress.uploadStarted),u=i.filter(m=>m.progress.uploadStarted||m.progress.preprocess||m.progress.postprocess),s=i.filter(m=>m.progress.uploadStarted),l=i.filter(m=>m.isPaused),c=i.filter(m=>m.progress.uploadComplete),f=i.filter(m=>m.error),d=o.filter(m=>!m.isPaused),p=i.filter(m=>m.progress.preprocess||m.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===i.length&&p.length===0,isAllErrored:!!r&&f.length===i.length,isAllPaused:o.length!==0&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:i.some(m=>m.isGhost)}}validateRestrictions(t,n){try{return re(this,yl)[yl](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!!(n[t]&&!n[t].isGhost)}addFile(t){re(this,$l)[$l](t);const{files:n}=this.getState();let r=re(this,wl)[wl](n,t);return n[r.id]&&n[r.id].isGhost&&(r=z(z({},n[r.id]),{data:t.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:z(z({},n),{[r.id]:r})}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),re(this,El)[El](),r.id}addFiles(t){re(this,$l)[$l]();const n=z({},this.getState().files),r=[],i=[];for(let o=0;o<t.length;o++)try{let a=re(this,wl)[wl](n,t[o]);n[a.id]&&n[a.id].isGhost&&(a=z(z({},n[a.id]),{data:t[o].data,isGhost:!1}),this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||i.push(a)}if(this.setState({files:n}),r.forEach(o=>{this.emit("file-added",o)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(o=>{this.log(`Added file: ${r[o].name}
  20. id: ${r[o].id}
  21. type: ${r[o].type}`)}),r.length>0&&re(this,El)[El](),i.length>0){let o=`Multiple errors occurred while adding files:
  22. `;if(i.forEach(a=>{o+=`
  23. * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:o},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(i,o);{const a=new Error(o);throw a.errors=i,a}}}removeFiles(t,n){const{files:r,currentUploads:i}=this.getState(),o=z({},r),a=z({},i),u=Object.create(null);t.forEach(f=>{r[f]&&(u[f]=r[f],delete o[f])});function s(f){return u[f]===void 0}Object.keys(a).forEach(f=>{const d=i[f].fileIDs.filter(s);if(d.length===0){delete a[f];return}a[f]=z(z({},i[f]),{fileIDs:d})});const l={currentUploads:a,files:o};Object.keys(o).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t=z({},this.getState().files);Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i=z(z({},t[r]),{isPaused:!0});t[r]=i}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t=z({},this.getState().files);Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i=z(z({},t[r]),{isPaused:!1,error:null});t[r]=i}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t=z({},this.getState().files),n=Object.keys(t).filter(i=>t[i].error);if(n.forEach(i=>{const o=z(z({},t[i]),{isPaused:!1,error:null});t[i]=o}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=re(this,oi)[oi](n,{forceAllowNewUpload:!0});return re(this,ai)[ai](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=re(this,oi)[oi]([t],{forceAllowNewUpload:!0});return re(this,ai)[ai](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:z(z({},this.getFile(t.id).progress),{bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0})}),this.calculateTotalProgress()}calculateTotalProgress(){const n=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(n.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const r=n.filter(l=>l.progress.bytesTotal!=null),i=n.filter(l=>l.progress.bytesTotal==null);if(r.length===0){const l=n.length*100,c=i.reduce((d,p)=>d+p.progress.percentage,0),f=Math.round(c/l*100);this.setState({totalProgress:f});return}let o=r.reduce((l,c)=>l+c.progress.bytesTotal,0);const a=o/r.length;o+=a*i.length;let u=0;r.forEach(l=>{u+=l.progress.bytesUploaded}),i.forEach(l=>{u+=a*(l.progress.percentage||0)/100});let s=o===0?0:Math.round(u/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){(typeof window.navigator.onLine!="undefined"?window.navigator.onLine:!0)?(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(t,n){if(typeof t!="function"){const a=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(a)}const r=new t(this,n),i=r.id;if(!i)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(i);if(o){const a=`Already found a plugin named '${o.id}'. Tried to use: '${i}'.
  24. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${i} v${t.VERSION}`),r.type in re(this,qt)[qt]?re(this,qt)[qt][r.type].push(r):re(this,qt)[qt][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(re(this,qt)[qt])){const r=n.find(i=>i.id===t);if(r!=null)return r}}[Bx](t){return re(this,qt)[qt][t]}iteratePlugins(t){Object.values(re(this,qt)[qt]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=re(this,qt)[qt][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const i=this.getState(),o={plugins:z(z({},i.plugins),{[t.id]:void 0})};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),re(this,ml)[ml](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",re(this,lr)[lr]),window.removeEventListener("offline",re(this,lr)[lr]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const i=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:i?t.message:t,details:i?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t);break}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?re(this,ai)[ai](t):(re(this,Zo)[Zo](t),Promise.reject(new Error("Nonexistent upload")))}[Fx](){return re(this,oi)[oi](...arguments)}addResultData(t,n){if(!re(this,_1)[_1](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:r}=this.getState(),i=z(z({},r[t]),{result:z(z({},r[t].result),n)});this.setState({currentUploads:z(z({},r),{[t]:i})})}upload(){var t;(t=re(this,qt)[qt].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{re(this,T1)[T1](n),re(this,k1)[k1](n)}).catch(i=>{re(this,Nt)[Nt](i)}).then(()=>{const{currentUploads:i}=this.getState(),o=Object.values(i).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);!l.progress.uploadStarted&&o.indexOf(s)===-1&&a.push(l.id)});const u=re(this,oi)[oi](a);return re(this,ai)[ai](u)}).catch(i=>{re(this,Nt)[Nt](i,{showInformer:!1})}))}}function _z(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.opts.restrictions;if(o&&t.length+1>o)throw new Cr(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(s=>s.indexOf("/")>-1?e.type?mz(e.type.replace(/;.*?$/,""),s):!1:s[0]==="."&&e.extension?e.extension.toLowerCase()===s.substr(1).toLowerCase():!1)){const s=a.join(", ");throw new Cr(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(i&&e.size!=null){let u=0;if(u+=e.size,t.forEach(s=>{u+=s.size}),u>i)throw new Cr(this.i18n("exceedsSize",{size:O1(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new Cr(this.i18n("exceedsSize",{size:O1(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new Cr(this.i18n("inferiorSize",{size:O1(r)}))}function Nz(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Cr(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Iz(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let o=0;o<t.length;o++)if(!n.call(e.meta,t[o])||e.meta[t[o]]===""){const a=new Cr(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),i.push(t[o]),re(this,Nt)[Nt](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function jz(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return re(this,bl)[bl](r)});if(t.length)throw new Pz(t,`${this.i18n("missingRequiredMetaField")}`)}function Rz(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=t===void 0?{}:t;const o=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=o;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:o,details:a},"error",this.opts.infoTimeout),i)throw typeof e=="object"?e:new Error(e)}function Lz(e){const{allowNewUpload:t}=this.getState();t===!1&&re(this,Nt)[Nt](new Cr(this.i18n("noMoreFilesAllowed")),{file:e})}function Mz(e,t){const n=xz(t),r=Az(n,t),i=Sx(r).extension,o=Boolean(t.isRemote),a=Dz(z(z({},t),{type:n}));if(this.checkIfFileAlreadyExists(a)){const f=new Cr(this.i18n("noDuplicates",{fileName:r}));re(this,Nt)[Nt](f,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:i||"",meta:z(z({},this.getState().meta),u),type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:o,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?re(this,Nt)[Nt](new Cr("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(d=>e[d]);re(this,yl)[yl](l,f)}catch(f){re(this,Nt)[Nt](f,{file:l})}return l}function zz(){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 Hz(){const e=(t,n,r)=>{let i=t.message||"Unknown error";t.details&&(i+=` ${t.details}`),this.setState({error:i}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:i,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const i=new Error(n.message);i.details=n.message,n.details&&(i.details+=` ${n.details}`),i.message=this.i18n("failedToUpload",{file:t.name}),re(this,Nt)[Nt](i,{throwErr:!1})}else re(this,Nt)[Nt](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:z(z({},r),{postprocess:re(this,ii)[ii].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:z(z({},this.getFile(t.id).progress),{preprocess:n})})}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const n=z({},this.getState().files);n[t.id]=z(z({},n[t.id]),{progress:z({},n[t.id].progress)}),delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:z(z({},this.getState().files[t.id].progress),{postprocess:n})})}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const n=z({},this.getState().files);n[t.id]=z(z({},n[t.id]),{progress:z({},n[t.id].progress)}),delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&re(this,bl)[bl](t)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",re(this,lr)[lr]),window.addEventListener("offline",re(this,lr)[lr]),setTimeout(re(this,lr)[lr],3e3))}function Uz(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=Fz();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:z(z({},i),{[o]:{fileIDs:e,step:0,result:{}}})}),o}function Vz(e){const{currentUploads:t}=this.getState();return t[e]}function Wz(e){const t=z({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})}function Gz(e){return u6(this,null,function*(){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...re(this,Xo)[Xo],...re(this,Jo)[Jo],...re(this,ii)[ii]];try{for(let a=r;a<i.length&&n;a++){const u=i[a],s=z(z({},n),{step:a});this.setState({currentUploads:z(z({},t),{[e]:s})}),yield u(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),re(this,Zo)[Zo](e),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);yield this.addResultData(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),re(this,Zo)[Zo](e)),o==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),o})}Tx.VERSION="2.1.3";var kx=Tx,qz=Kv(function(e,t){var n,r,i,o,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(T,F){for(var k in F)T[k]=F[k];return T}function m(T){var F=T.parentNode;F&&F.removeChild(T)}function v(T,F,k){var I,V,L,ee={};for(L in F)L=="key"?I=F[L]:L=="ref"?V=F[L]:ee[L]=F[L];if(arguments.length>2&&(ee.children=arguments.length>3?n.call(arguments,2):k),typeof T=="function"&&T.defaultProps!=null)for(L in T.defaultProps)ee[L]===void 0&&(ee[L]=T.defaultProps[L]);return g(T,ee,I,V,null)}function g(T,F,k,I,V){var L={type:T,props:F,key:k,ref:I,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:V==null?++i:V};return V==null&&r.vnode!=null&&r.vnode(L),L}function y(T){return T.children}function h(T,F){this.props=T,this.context=F}function $(T,F){if(F==null)return T.__?$(T.__,T.__.__k.indexOf(T)+1):null;for(var k;F<T.__k.length;F++)if((k=T.__k[F])!=null&&k.__e!=null)return k.__e;return typeof T.type=="function"?$(T):null}function w(T){var F,k;if((T=T.__)!=null&&T.__c!=null){for(T.__e=T.__c.base=null,F=0;F<T.__k.length;F++)if((k=T.__k[F])!=null&&k.__e!=null){T.__e=T.__c.base=k.__e;break}return w(T)}}function x(T){(!T.__d&&(T.__d=!0)&&a.push(T)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var T;S.__r=a.length;)T=a.sort(function(F,k){return F.__v.__b-k.__v.__b}),a=[],T.some(function(F){var k,I,V,L,ee,pe;F.__d&&(ee=(L=(k=F).__v).__e,(pe=k.__P)&&(I=[],(V=p({},L)).__v=L.__v+1,te(pe,L,V,k.__n,pe.ownerSVGElement!==void 0,L.__h!=null?[ee]:null,I,ee==null?$(L):ee,L.__h),ue(I,L),L.__e!=ee&&w(L)))})}function C(T,F,k,I,V,L,ee,pe,Ce,Me){var H,We,we,se,Ee,In,Xe,gt=I&&I.__k||f,yt=gt.length;for(k.__k=[],H=0;H<F.length;H++)if((se=k.__k[H]=(se=F[H])==null||typeof se=="boolean"?null:typeof se=="string"||typeof se=="number"||typeof se=="bigint"?g(null,se,null,null,se):Array.isArray(se)?g(y,{children:se},null,null,null):se.__b>0?g(se.type,se.props,se.key,null,se.__v):se)!=null){if(se.__=k,se.__b=k.__b+1,(we=gt[H])===null||we&&se.key==we.key&&se.type===we.type)gt[H]=void 0;else for(We=0;We<yt;We++){if((we=gt[We])&&se.key==we.key&&se.type===we.type){gt[We]=void 0;break}we=null}te(T,se,we=we||c,V,L,ee,pe,Ce,Me),Ee=se.__e,(We=se.ref)&&we.ref!=We&&(Xe||(Xe=[]),we.ref&&Xe.push(we.ref,null,se),Xe.push(We,se.__c||Ee,se)),Ee!=null?(In==null&&(In=Ee),typeof se.type=="function"&&se.__k===we.__k?se.__d=Ce=N(se,Ce,T):Ce=R(T,se,we,gt,Ee,Ce),typeof k.type=="function"&&(k.__d=Ce)):Ce&&we.__e==Ce&&Ce.parentNode!=T&&(Ce=$(we))}for(k.__e=In,H=yt;H--;)gt[H]!=null&&(typeof k.type=="function"&&gt[H].__e!=null&&gt[H].__e==k.__d&&(k.__d=$(I,H+1)),ye(gt[H],gt[H]));if(Xe)for(H=0;H<Xe.length;H++)Ie(Xe[H],Xe[++H],Xe[++H])}function N(T,F,k){for(var I,V=T.__k,L=0;V&&L<V.length;L++)(I=V[L])&&(I.__=T,F=typeof I.type=="function"?N(I,F,k):R(k,I,I,V,I.__e,F));return F}function R(T,F,k,I,V,L){var ee,pe,Ce;if(F.__d!==void 0)ee=F.__d,F.__d=void 0;else if(k==null||V!=L||V.parentNode==null)e:if(L==null||L.parentNode!==T)T.appendChild(V),ee=null;else{for(pe=L,Ce=0;(pe=pe.nextSibling)&&Ce<I.length;Ce+=2)if(pe==V)break e;T.insertBefore(V,L),ee=L}return ee!==void 0?ee:V.nextSibling}function U(T,F,k,I,V){var L;for(L in k)L==="children"||L==="key"||L in F||Z(T,L,null,k[L],I);for(L in F)V&&typeof F[L]!="function"||L==="children"||L==="key"||L==="value"||L==="checked"||k[L]===F[L]||Z(T,L,F[L],k[L],I)}function W(T,F,k){F[0]==="-"?T.setProperty(F,k):T[F]=k==null?"":typeof k!="number"||d.test(F)?k:k+"px"}function Z(T,F,k,I,V){var L;e:if(F==="style")if(typeof k=="string")T.style.cssText=k;else{if(typeof I=="string"&&(T.style.cssText=I=""),I)for(F in I)k&&F in k||W(T.style,F,"");if(k)for(F in k)I&&k[F]===I[F]||W(T.style,F,k[F])}else if(F[0]==="o"&&F[1]==="n")L=F!==(F=F.replace(/Capture$/,"")),F=F.toLowerCase()in T?F.toLowerCase().slice(2):F.slice(2),T.l||(T.l={}),T.l[F+L]=k,k?I||T.addEventListener(F,L?le:Q,L):T.removeEventListener(F,L?le:Q,L);else if(F!=="dangerouslySetInnerHTML"){if(V)F=F.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(F!=="href"&&F!=="list"&&F!=="form"&&F!=="tabIndex"&&F!=="download"&&F in T)try{T[F]=k==null?"":k;break e}catch(ee){}typeof k=="function"||(k!=null&&(k!==!1||F[0]==="a"&&F[1]==="r")?T.setAttribute(F,k):T.removeAttribute(F))}}function Q(T){this.l[T.type+!1](r.event?r.event(T):T)}function le(T){this.l[T.type+!0](r.event?r.event(T):T)}function te(T,F,k,I,V,L,ee,pe,Ce){var Me,H,We,we,se,Ee,In,Xe,gt,yt,yn,bt=F.type;if(F.constructor!==void 0)return null;k.__h!=null&&(Ce=k.__h,pe=F.__e=k.__e,F.__h=null,L=[pe]),(Me=r.__b)&&Me(F);try{e:if(typeof bt=="function"){if(Xe=F.props,gt=(Me=bt.contextType)&&I[Me.__c],yt=Me?gt?gt.props.value:Me.__:I,k.__c?In=(H=F.__c=k.__c).__=H.__E:("prototype"in bt&&bt.prototype.render?F.__c=H=new bt(Xe,yt):(F.__c=H=new h(Xe,yt),H.constructor=bt,H.render=oe),gt&&gt.sub(H),H.props=Xe,H.state||(H.state={}),H.context=yt,H.__n=I,We=H.__d=!0,H.__h=[]),H.__s==null&&(H.__s=H.state),bt.getDerivedStateFromProps!=null&&(H.__s==H.state&&(H.__s=p({},H.__s)),p(H.__s,bt.getDerivedStateFromProps(Xe,H.__s))),we=H.props,se=H.state,We)bt.getDerivedStateFromProps==null&&H.componentWillMount!=null&&H.componentWillMount(),H.componentDidMount!=null&&H.__h.push(H.componentDidMount);else{if(bt.getDerivedStateFromProps==null&&Xe!==we&&H.componentWillReceiveProps!=null&&H.componentWillReceiveProps(Xe,yt),!H.__e&&H.shouldComponentUpdate!=null&&H.shouldComponentUpdate(Xe,H.__s,yt)===!1||F.__v===k.__v){H.props=Xe,H.state=H.__s,F.__v!==k.__v&&(H.__d=!1),H.__v=F,F.__e=k.__e,F.__k=k.__k,F.__k.forEach(function(ar){ar&&(ar.__=F)}),H.__h.length&&ee.push(H);break e}H.componentWillUpdate!=null&&H.componentWillUpdate(Xe,H.__s,yt),H.componentDidUpdate!=null&&H.__h.push(function(){H.componentDidUpdate(we,se,Ee)})}H.context=yt,H.props=Xe,H.state=H.__s,(Me=r.__r)&&Me(F),H.__d=!1,H.__v=F,H.__P=T,Me=H.render(H.props,H.state,H.context),H.state=H.__s,H.getChildContext!=null&&(I=p(p({},I),H.getChildContext())),We||H.getSnapshotBeforeUpdate==null||(Ee=H.getSnapshotBeforeUpdate(we,se)),yn=Me!=null&&Me.type===y&&Me.key==null?Me.props.children:Me,C(T,Array.isArray(yn)?yn:[yn],F,k,I,V,L,ee,pe,Ce),H.base=F.__e,F.__h=null,H.__h.length&&ee.push(H),In&&(H.__E=H.__=null),H.__e=!1}else L==null&&F.__v===k.__v?(F.__k=k.__k,F.__e=k.__e):F.__e=he(k.__e,F,k,I,V,L,ee,Ce);(Me=r.diffed)&&Me(F)}catch(ar){F.__v=null,(Ce||L!=null)&&(F.__e=pe,F.__h=!!Ce,L[L.indexOf(pe)]=null),r.__e(ar,F,k)}}function ue(T,F){r.__c&&r.__c(F,T),T.some(function(k){try{T=k.__h,k.__h=[],T.some(function(I){I.call(k)})}catch(I){r.__e(I,k.__v)}})}function he(T,F,k,I,V,L,ee,pe){var Ce,Me,H,We=k.props,we=F.props,se=F.type,Ee=0;if(se==="svg"&&(V=!0),L!=null){for(;Ee<L.length;Ee++)if((Ce=L[Ee])&&"setAttribute"in Ce==!!se&&(se?Ce.localName===se:Ce.nodeType===3)){T=Ce,L[Ee]=null;break}}if(T==null){if(se===null)return document.createTextNode(we);T=V?document.createElementNS("http://www.w3.org/2000/svg",se):document.createElement(se,we.is&&we),L=null,pe=!1}if(se===null)We===we||pe&&T.data===we||(T.data=we);else{if(L=L&&n.call(T.childNodes),Me=(We=k.props||c).dangerouslySetInnerHTML,H=we.dangerouslySetInnerHTML,!pe){if(L!=null)for(We={},Ee=0;Ee<T.attributes.length;Ee++)We[T.attributes[Ee].name]=T.attributes[Ee].value;(H||Me)&&(H&&(Me&&H.__html==Me.__html||H.__html===T.innerHTML)||(T.innerHTML=H&&H.__html||""))}if(U(T,we,We,V,pe),H)F.__k=[];else if(Ee=F.props.children,C(T,Array.isArray(Ee)?Ee:[Ee],F,k,I,V&&se!=="foreignObject",L,ee,L?L[0]:k.__k&&$(k,0),pe),L!=null)for(Ee=L.length;Ee--;)L[Ee]!=null&&m(L[Ee]);pe||("value"in we&&(Ee=we.value)!==void 0&&(Ee!==We.value||Ee!==T.value||se==="progress"&&!Ee)&&Z(T,"value",Ee,We.value,!1),"checked"in we&&(Ee=we.checked)!==void 0&&Ee!==T.checked&&Z(T,"checked",Ee,We.checked,!1))}return T}function Ie(T,F,k){try{typeof T=="function"?T(F):T.current=F}catch(I){r.__e(I,k)}}function ye(T,F,k){var I,V;if(r.unmount&&r.unmount(T),(I=T.ref)&&(I.current&&I.current!==T.__e||Ie(I,null,F)),(I=T.__c)!=null){if(I.componentWillUnmount)try{I.componentWillUnmount()}catch(L){r.__e(L,F)}I.base=I.__P=null}if(I=T.__k)for(V=0;V<I.length;V++)I[V]&&ye(I[V],F,typeof T.type!="function");k||T.__e==null||m(T.__e),T.__e=T.__d=void 0}function oe(T,F,k){return this.constructor(T,k)}function Le(T,F,k){var I,V,L;r.__&&r.__(T,F),V=(I=typeof k=="function")?null:k&&k.__k||F.__k,L=[],te(F,T=(!I&&k||F).__k=v(y,null,[T]),V||c,c,F.ownerSVGElement!==void 0,!I&&k?[k]:V?null:F.firstChild?n.call(F.childNodes):null,L,!I&&k?k:V?V.__e:F.firstChild,I),ue(L,T)}n=f.slice,r={__e:function(T,F){for(var k,I,V;F=F.__;)if((k=F.__c)&&!k.__)try{if((I=k.constructor)&&I.getDerivedStateFromError!=null&&(k.setState(I.getDerivedStateFromError(T)),V=k.__d),k.componentDidCatch!=null&&(k.componentDidCatch(T),V=k.__d),V)return k.__E=k}catch(L){T=L}throw T}},i=0,o=function(T){return T!=null&&T.constructor===void 0},h.prototype.setState=function(T,F){var k;k=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof T=="function"&&(T=T(p({},k),this.props)),T&&p(k,T),T!=null&&this.__v&&(F&&this.__h.push(F),x(this))},h.prototype.forceUpdate=function(T){this.__v&&(this.__e=!0,T&&this.__h.push(T),x(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=h,t.Fragment=y,t.cloneElement=function(T,F,k){var I,V,L,ee=p({},T.props);for(L in F)L=="key"?I=F[L]:L=="ref"?V=F[L]:ee[L]=F[L];return arguments.length>2&&(ee.children=arguments.length>3?n.call(arguments,2):k),g(T.type,ee,I||T.key,V||T.ref,null)},t.createContext=function(T,F){var k={__c:F="__cC"+l++,__:T,Consumer:function(I,V){return I.children(V)},Provider:function(I){var V,L;return this.getChildContext||(V=[],(L={})[F]=this,this.getChildContext=function(){return L},this.shouldComponentUpdate=function(ee){this.props.value!==ee.value&&V.some(x)},this.sub=function(ee){V.push(ee);var pe=ee.componentWillUnmount;ee.componentWillUnmount=function(){V.splice(V.indexOf(ee),1),pe&&pe.call(ee)}}),I.children}};return k.Provider.__=k.Consumer.contextType=k},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function T(F,k){Le(F,k,T)},t.isValidElement=o,t.options=r,t.render=Le,t.toChildArray=function T(F,k){return k=k||[],F==null||typeof F=="boolean"||(Array.isArray(F)?F.some(function(I){T(I,k)}):k.push(F)),k}}),Kz=function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE},Yz=function(t,n){return n===void 0&&(n=document),typeof t=="string"?n.querySelector(t):Kz(t)?t:null},N1=class{constructor(t,n){n===void 0&&(n={}),this.uppy=t,this.opts=n}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:n}=this.uppy.getState();this.uppy.setState({plugins:z(z({},n),{[this.id]:z(z({},n[this.id]),t)})})}setOptions(t){this.opts=z(z({},this.opts),t),this.setPluginState(),this.i18nInit()}i18nInit(){const t=new yx([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),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 Px(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xz=0;function Jz(e){return"__private_"+Xz+++"_"+e}const{render:_x}=qz;function Zz(e){let t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=i,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}var xl=Jz("updateUI");class I1 extends N1{constructor(){super(...arguments);Object.defineProperty(this,xl,{writable:!0,value:void 0})}mount(t,n){const r=n.id,i=Yz(t);if(i){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return Px(this,xl)[xl]=Zz(s=>{!this.uppy.getPlugin(this.id)||(_x(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),_x(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,i.appendChild(u),this.onMount(),this.el}let o;if(typeof t=="object"&&t instanceof I1)o=t;else if(typeof t=="function"){const u=t;this.uppy.iteratePlugins(s=>{if(s instanceof u)return o=s,!1})}if(o)return this.uppy.log(`Installing ${r} to ${o.id}`),this.parent=o,this.el=o.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw typeof t=="function"?a+=" 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.":a+="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(a)}update(t){if(this.el!=null){var n,r;(n=(r=Px(this,xl))[xl])==null||n.call(r,t)}}unmount(){if(this.isTargetDOMEl){var t;(t=this.el)==null||t.remove()}this.onUnmount()}onMount(){}onUnmount(){}}var Qz=I1;const{debugLogger:eH}=Ax;var Sl=kx,tH=kx,nH=Qz,rH=N1,iH=eH;Sl.Uppy=tH,Sl.UIPlugin=nH,Sl.BasePlugin=rH,Sl.debugLogger=iH;class oH extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var j1=oH,R1=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new j1(t)})};class aH extends Error{constructor(){super("Authorization required");this.name="AuthError",this.isAuthError=!0}}var uH=aH,$p,Fi,Ar,Ti,Nx;function Or(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sH=0;function L1(e){return"__private_"+sH+++"_"+e}function lH(e){return e.replace(/\/$/,"")}function M1(e){return u6(this,null,function*(){if(e.status===401)throw new uH;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=yield t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t})}var z1=(Nx=(Fi=L1("getPostResponseFunc"),Ar=L1("getUrl"),Ti=L1("errorHandler"),$p=class nI{constructor(t,n){Object.defineProperty(this,Ti,{value:fH}),Object.defineProperty(this,Ar,{value:cH}),Object.defineProperty(this,Fi,{writable:!0,value:r=>i=>r?i:this.onReceiveResponse(i)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return lH(t&&t[n]?t[n]:n)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve(z(z({},nI.defaultHeaders),t))}onReceiveResponse(t){const r=this.uppy.getState().companion||{},i=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==r[i]&&this.uppy.setState({companion:z(z({},r),{[i]:o.get("i-am")})}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Or(this,Ar)[Ar](t),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(n=>{let[r,i]=n;return Object.keys(i).forEach(o=>{r.includes(o.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${o}`),delete i[o])}),i})}get(t,n){const r="get";return this.preflightAndHeaders(t).then(i=>R1(Or(this,Ar)[Ar](t),{method:r,headers:i,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Or(this,Fi)[Fi](n)).then(M1).catch(Or(this,Ti)[Ti](r,t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(o=>R1(Or(this,Ar)[Ar](t),{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(Or(this,Fi)[Fi](r)).then(M1).catch(Or(this,Ti)[Ti](i,t))}delete(t,n,r){const i="delete";return this.preflightAndHeaders(t).then(o=>R1(`${this.hostname}/${t}`,{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(Or(this,Fi)[Fi](r)).then(M1).catch(Or(this,Ti)[Ti](i,t))}}),$p.VERSION="2.0.4",$p.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${$p.VERSION}`},Nx);function cH(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function fH(e,t){return n=>{var r;if(!((r=n)!=null&&r.isAuthError)){const i=new Error(`Could not ${e} ${Or(this,Ar)[Ar](t)}`);i.cause=n,n=i}return Promise.reject(n)}}var dH=(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),pH=e=>Promise.resolve(localStorage.getItem(e)),hH=e=>new Promise(t=>{localStorage.removeItem(e),t()}),gH={setItem:dH,getItem:pH,removeItem:hH};const vH=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var mH=class extends z1{constructor(t,n){super(t,n);this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||vH(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[n,r]=t;const i={};return r&&(i["uppy-auth-token"]=r),this.companionKeysParams&&(i["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),z(z({},n),i)})}onReceiveResponse(t){t=super.onReceiveResponse(t);const n=this.uppy.getPlugin(this.pluginId),i=n.getPluginState().authenticated?t.status!==401:t.status<400;return n.setPluginState({authenticated:i}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[n]=t;return n})}static initPlugin(t,n,r){if(t.type="acquirer",t.files=[],r&&(t.opts=z(z({},r),n)),n.serverUrl||n.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(n.companionAllowedHosts){const i=n.companionAllowedHosts;if(typeof i!="string"&&!Array.isArray(i)&&!(i instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=i}else/^(?!https?:\/\/).*$/i.test(n.companionUrl)?t.opts.companionAllowedHosts=`https://${n.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(n.companionUrl).origin;t.storage=t.opts.storage||gH}};const yH=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var bH=class extends z1{constructor(t,n){super(t,n);this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||yH(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,n){return n=n?`&${n}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${n}`)}},Br,ki,Hn,tn,wp;let Ix,jx;function Ct(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $H=0;function Dl(e){return"__private_"+$H+++"_"+e}var wH=(Br=Dl("queued"),ki=Dl("emitter"),Hn=Dl("isOpen"),tn=Dl("socket"),wp=Dl("handleMessage"),Ix=Symbol.for("uppy test: getSocket"),jx=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,Br,{writable:!0,value:[]}),Object.defineProperty(this,ki,{writable:!0,value:bx()}),Object.defineProperty(this,Hn,{writable:!0,value:!1}),Object.defineProperty(this,tn,{writable:!0,value:void 0}),Object.defineProperty(this,wp,{writable:!0,value:n=>{try{const r=JSON.parse(n.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,(!t||t.autoOpen!==!1)&&this.open()}get isOpen(){return Ct(this,Hn)[Hn]}[Ix](){return Ct(this,tn)[tn]}[jx](){return Ct(this,Br)[Br]}open(){Ct(this,tn)[tn]=new WebSocket(this.opts.target),Ct(this,tn)[tn].onopen=()=>{for(Ct(this,Hn)[Hn]=!0;Ct(this,Br)[Br].length>0&&Ct(this,Hn)[Hn];){const t=Ct(this,Br)[Br].shift();this.send(t.action,t.payload)}},Ct(this,tn)[tn].onclose=()=>{Ct(this,Hn)[Hn]=!1},Ct(this,tn)[tn].onmessage=Ct(this,wp)[wp]}close(){var t;(t=Ct(this,tn)[tn])==null||t.close()}send(t,n){if(!Ct(this,Hn)[Hn]){Ct(this,Br)[Br].push({action:t,payload:n});return}Ct(this,tn)[tn].send(JSON.stringify({action:t,payload:n}))}on(t,n){Ct(this,ki)[ki].on(t,n)}emit(t,n){Ct(this,ki)[ki].emit(t,n)}once(t,n){Ct(this,ki)[ki].once(t,n)}}),EH={RequestClient:z1,Provider:mH,SearchProvider:bH,Socket:wH};function xH(e,t,n){const{progress:r,bytesUploaded:i,bytesTotal:o}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:i,bytesTotal:o}))}var SH=Yo(xH,300,{leading:!0,trailing:!0}),DH=function(t){const r=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(t)[1];return`${/^http:\/\//i.test(t)?"ws":"wss"}://${r}`},CH=function(t){const n=[],r=[];function i(u){n.push(u)}function o(u){r.push(u)}return Promise.all(t.map(u=>u.then(i,o))).then(()=>({successful:n,failed:r}))},Pi,Bu;function Cl(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var AH=0;function Rx(e){return"__private_"+AH+++"_"+e}var Lx=(Pi=Rx("emitter"),Bu=Rx("events"),class{constructor(t){Object.defineProperty(this,Pi,{writable:!0,value:void 0}),Object.defineProperty(this,Bu,{writable:!0,value:[]}),Cl(this,Pi)[Pi]=t}on(t,n){return Cl(this,Bu)[Bu].push([t,n]),Cl(this,Pi)[Pi].on(t,n)}remove(){for(const[t,n]of Cl(this,Bu)[Bu].splice(0))Cl(this,Pi)[Pi].off(t,n)}});function Un(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var OH=0;function Ep(e){return"__private_"+OH+++"_"+e}var ui=Ep("aliveTimer"),Qo=Ep("isDone"),Al=Ep("onTimedOut"),ea=Ep("timeout");class BH{constructor(t,n){Object.defineProperty(this,ui,{writable:!0,value:void 0}),Object.defineProperty(this,Qo,{writable:!0,value:!1}),Object.defineProperty(this,Al,{writable:!0,value:void 0}),Object.defineProperty(this,ea,{writable:!0,value:void 0}),Un(this,ea)[ea]=t,Un(this,Al)[Al]=n}progress(){Un(this,Qo)[Qo]||Un(this,ea)[ea]>0&&(clearTimeout(Un(this,ui)[ui]),Un(this,ui)[ui]=setTimeout(Un(this,Al)[Al],Un(this,ea)[ea]))}done(){Un(this,Qo)[Qo]||(clearTimeout(Un(this,ui)[ui]),Un(this,ui)[ui]=null,Un(this,Qo)[Qo]=!0)}}var Mx=BH;function At(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var FH=0;function ta(e){return"__private_"+FH+++"_"+e}function TH(){return new Error("Cancelled")}var Dn=ta("activeRequests"),ln=ta("queuedHandlers"),Ol=ta("call"),Bl=ta("queueNext"),H1=ta("next"),U1=ta("queue"),V1=ta("dequeue");class kH{constructor(t){Object.defineProperty(this,V1,{value:jH}),Object.defineProperty(this,U1,{value:IH}),Object.defineProperty(this,H1,{value:NH}),Object.defineProperty(this,Bl,{value:_H}),Object.defineProperty(this,Ol,{value:PH}),Object.defineProperty(this,Dn,{writable:!0,value:0}),Object.defineProperty(this,ln,{writable:!0,value:[]}),typeof t!="number"||t===0?this.limit=Infinity:this.limit=t}run(t,n){return At(this,Dn)[Dn]<this.limit?At(this,Ol)[Ol](t):At(this,U1)[U1](t,n)}wrapPromiseFunction(t,n){var r=this;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];let u;const s=new Promise((l,c)=>{u=r.run(()=>{let f,d;try{d=Promise.resolve(t(...o))}catch(p){d=Promise.reject(p)}return d.then(p=>{f?c(f):(u.done(),l(p))},p=>{f?c(f):(u.done(),c(p))}),()=>{f=TH()}},n)});return s.abort=()=>{u.abort()},s}}}function PH(e){At(this,Dn)[Dn]+=1;let t=!1,n;try{n=e()}catch(r){throw At(this,Dn)[Dn]-=1,r}return{abort:()=>{t||(t=!0,At(this,Dn)[Dn]-=1,n(),At(this,Bl)[Bl]())},done:()=>{t||(t=!0,At(this,Dn)[Dn]-=1,At(this,Bl)[Bl]())}}}function _H(){queueMicrotask(()=>At(this,H1)[H1]())}function NH(){if(At(this,Dn)[Dn]>=this.limit||At(this,ln)[ln].length===0)return;const e=At(this,ln)[ln].shift(),t=At(this,Ol)[Ol](e.fn);e.abort=t.abort,e.done=t.done}function IH(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{At(this,V1)[V1](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=At(this,ln)[ln].findIndex(i=>n.priority>i.priority);return r===-1?At(this,ln)[ln].push(n):At(this,ln)[ln].splice(r,0,n),n}function jH(e){const t=At(this,ln)[ln].indexOf(e);t!==-1&&At(this,ln)[ln].splice(t,1)}var RH={RateLimitedQueue:kH,internalRateLimitedQueue:Symbol("__queue")};function LH(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}var zx=LH,MH={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}},Hx,Ux;const{nanoid:zH}=Ox,{Provider:HH,RequestClient:UH,Socket:VH}=EH,{RateLimitedQueue:WH,internalRateLimitedQueue:W1}=RH;function Vx(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),zx(e)?(n=new j1(n,e),n):(n.request=e,n)}function Wx(e){return e.data.slice(0,e.data.size,e.meta.type)}var GH=(Ux=Hx=class extends N1{constructor(t,n){super(t,n);this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=MH;const r={formData:!0,fieldName:n.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:30*1e3,limit:5,withCredentials:!1,responseType:"",getResponseData(i){let o={};try{o=JSON.parse(i)}catch(a){t.log(a)}return o},getResponseError(i,o){let a=new Error("Upload error");return zx(o)&&(a=new j1(a,o)),a},validateStatus(i){return i>=200&&i<300}};if(this.opts=z(z({},r),n),this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),W1 in this.opts?this.requests=this.opts[W1]:this.requests=new WH(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(t){const n=this.uppy.getState().xhrUpload,{headers:r}=this.opts,i=z(z(z(z({},this.opts),n||{}),t.xhrUpload||{}),{headers:{}});return typeof r=="function"?i.headers=r(t):Object.assign(i.headers,this.opts.headers),n&&Object.assign(i.headers,n.headers),t.xhrUpload&&Object.assign(i.headers,t.xhrUpload.headers),i}addMetadata(t,n,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(n)).forEach(o=>{t.append(o,n[o])})}createFormDataUpload(t,n){const r=new FormData;this.addMetadata(r,t.meta,n);const i=Wx(t);return t.name?r.append(n.fieldName,i,t.meta.name):r.append(n.fieldName,i),r}createBundledUpload(t,n){const r=new FormData,{meta:i}=this.uppy.getState();return this.addMetadata(r,i,n),t.forEach(o=>{const a=this.getOptions(o),u=Wx(o);o.name?r.append(a.fieldName,u,o.name):r.append(a.fieldName,u)}),r}upload(t,n,r){const i=this.getOptions(t);return this.uppy.log(`uploading ${n} of ${r}`),new Promise((o,a)=>{this.uppy.emit("upload-started",t);const u=i.formData?this.createFormDataUpload(t,i):t.data,s=new XMLHttpRequest;this.uploaderEvents[t.id]=new Lx(this.uppy);const l=new Mx(i.timeout,()=>{s.abort(),f.done();const d=new Error(this.i18n("timedOut",{seconds:Math.ceil(i.timeout/1e3)}));this.uppy.emit("upload-error",t,d),a(d)}),c=zH();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${c} started`)}),s.upload.addEventListener("progress",d=>{this.uppy.log(`[XHRUpload] ${c} progress: ${d.loaded} / ${d.total}`),l.progress(),d.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:d.loaded,bytesTotal:d.total})}),s.addEventListener("load",d=>{if(this.uppy.log(`[XHRUpload] ${c} finished`),l.done(),f.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),i.validateStatus(d.target.status,s.responseText,s)){const g=i.getResponseData(s.responseText,s),y=g[i.responseUrlFieldName],h={status:d.target.status,body:g,uploadURL:y};return this.uppy.emit("upload-success",t,h),y&&this.uppy.log(`Download ${t.name} from ${y}`),o(t)}const p=i.getResponseData(s.responseText,s),m=Vx(s,i.getResponseError(s.responseText,s)),v={status:d.target.status,body:p};return this.uppy.emit("upload-error",t,m,v),a(m)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${c} errored`),l.done(),f.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const d=Vx(s,i.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",t,d),a(d)}),s.open(i.method.toUpperCase(),i.endpoint,!0),s.withCredentials=i.withCredentials,i.responseType!==""&&(s.responseType=i.responseType);const f=this.requests.run(()=>{this.uppy.emit("upload-started",t);const d=this.getOptions(t);return Object.keys(d.headers).forEach(p=>{s.setRequestHeader(p,d.headers[p])}),s.send(u),()=>{l.done(),s.abort()}});this.onFileRemove(t.id,()=>{f.abort(),a(new Error("File removed"))}),this.onCancelAll(t.id,()=>{f.abort(),a(new Error("Upload cancelled"))})})}uploadRemote(t){const n=this.getOptions(t);return new Promise((r,i)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t.meta)).forEach(l=>{o[l]=t.meta[l]});const u=t.remote.providerOptions.provider?HH:UH;new u(this.uppy,t.remote.providerOptions).post(t.remote.url,z(z({},t.remote.body),{endpoint:n.endpoint,size:t.data.size,fieldname:n.fieldName,metadata:o,httpMethod:n.method,useFormData:n.formData,headers:n.headers})).then(l=>{const{token:c}=l,f=DH(t.remote.companionUrl),d=new VH({target:`${f}/api/${c}`,autoOpen:!1});this.uploaderEvents[t.id]=new Lx(this.uppy),this.onFileRemove(t.id,()=>{d.send("cancel",{}),p.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{d.send("cancel",{}),p.abort(),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{d.send("pause",{}),d.send("resume",{})}),this.onRetryAll(t.id,()=>{d.send("pause",{}),d.send("resume",{})}),d.on("progress",m=>SH(this,m,t)),d.on("success",m=>{const v=n.getResponseData(m.response.responseText,m.response),g=v[n.responseUrlFieldName],y={status:m.response.status,body:v,uploadURL:g};return this.uppy.emit("upload-success",t,y),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),d.on("error",m=>{const v=m.response,g=v?n.getResponseError(v.responseText,v):Object.assign(new Error(m.error.message),{cause:m.error});this.uppy.emit("upload-error",t,g),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),i(g)});const p=this.requests.run(()=>(d.open(),t.isPaused&&d.send("pause",{}),()=>d.close()))}).catch(l=>{this.uppy.emit("upload-error",t,l),i(l)})})}uploadBundle(t){return new Promise((n,r)=>{const{endpoint:i}=this.opts,{method:o}=this.opts,a=this.uppy.getState().xhrUpload,u=this.createBundledUpload(t,z(z({},this.opts),a||{})),s=new XMLHttpRequest,l=new Mx(this.opts.timeout,()=>{s.abort();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(f),r(f)}),c=f=>{t.forEach(d=>{this.uppy.emit("upload-error",d,f)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()}),s.upload.addEventListener("progress",f=>{l.progress(),!!f.lengthComputable&&t.forEach(d=>{this.uppy.emit("upload-progress",d,{uploader:this,bytesUploaded:f.loaded/f.total*d.size,bytesTotal:d.size})})}),s.addEventListener("load",f=>{if(l.done(),this.opts.validateStatus(f.target.status,s.responseText,s)){const p=this.opts.getResponseData(s.responseText,s),m={status:f.target.status,body:p};return t.forEach(v=>{this.uppy.emit("upload-success",v,m)}),n()}const d=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return d.request=s,c(d),r(d)}),s.addEventListener("error",()=>{l.done();const f=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return c(f),r(f)}),this.uppy.on("cancel-all",()=>{l.done(),s.abort()}),s.open(o.toUpperCase(),i,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(f=>{s.setRequestHeader(f,this.opts.headers[f])}),s.send(u),t.forEach(f=>{this.uppy.emit("upload-started",f)})})}uploadFiles(t){const n=t.map((r,i)=>{const o=parseInt(i,10)+1,a=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,a):this.upload(r,o,a)});return CH(n)}onFileRemove(t,n){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&n(r.id)})}onRetry(t,n){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&n()})}onRetryAll(t,n){this.uploaderEvents[t].on("retry-all",()=>{!this.uppy.getFile(t)||n()})}onCancelAll(t,n){this.uploaderEvents[t].on("cancel-all",()=>{!this.uppy.getFile(t)||n()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit===0&&!this.opts[W1]&&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 n=t.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(n.some(i=>i.isRemote))throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(n)}return this.uploadFiles(n).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:z(z({},t),{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:z(z({},t),{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)}},Hx.VERSION="2.0.6",Ux),Gx=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function Fl(e){var t={exports:{}};return e(t,t.exports),t.exports}var _i,xp,Sp=function(e){return e&&e.Math==Math&&e},G=Sp(typeof globalThis=="object"&&globalThis)||Sp(typeof window=="object"&&window)||Sp(typeof self=="object"&&self)||Sp(typeof Gx=="object"&&Gx)||function(){return this}()||Function("return this")(),qH=Object.defineProperty,G1=function(e,t){try{qH(G,e,{value:t,configurable:!0,writable:!0})}catch(n){G[e]=t}return t},Ni=G["__core-js_shared__"]||G1("__core-js_shared__",{}),q1=Fl(function(e){(e.exports=function(t,n){return Ni[t]||(Ni[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),qx=Function.prototype,K1=qx.bind,Y1=qx.call,KH=K1&&K1.bind(Y1),ie=K1?function(e){return e&&KH(Y1,e)}:function(e){return e&&function(){return Y1.apply(e,arguments)}},YH=G.TypeError,Vn=function(e){if(e==null)throw YH("Can't call method on "+e);return e},XH=G.Object,Ii=function(e){return XH(Vn(e))},JH=ie({}.hasOwnProperty),$t=Object.hasOwn||function(e,t){return JH(Ii(e),t)},ZH=0,QH=Math.random(),eU=ie(1 .toString),X1=function(e){return"Symbol("+(e===void 0?"":e)+")_"+eU(++ZH+QH,36)},Ue=function(e){return typeof e=="function"},tU=function(e){return Ue(e)?e:void 0},na=function(e,t){return arguments.length<2?tU(G[e]):G[e]&&G[e][t]},Fu=na("navigator","userAgent")||"",Kx=G.process,Yx=G.Deno,Xx=Kx&&Kx.versions||Yx&&Yx.version,Jx=Xx&&Xx.v8;Jx&&(xp=(_i=Jx.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!xp&&Fu&&(!(_i=Fu.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=Fu.match(/Chrome\/(\d+)/))&&(xp=+_i[1]);var Tl=xp,Re=function(e){try{return!!e()}catch(t){return!0}},J1=!!Object.getOwnPropertySymbols&&!Re(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Tl&&Tl<41}),Z1=J1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",kl=q1("wks"),ra=G.Symbol,Zx=ra&&ra.for,nU=Z1?ra:ra&&ra.withoutSetter||X1,at=function(e){if(!$t(kl,e)||!J1&&typeof kl[e]!="string"){var t="Symbol."+e;J1&&$t(ra,e)?kl[e]=ra[e]:kl[e]=Z1&&Zx?Zx(t):nU(t)}return kl[e]},Qx={};Qx[at("toStringTag")]="z";var Q1=String(Qx)==="[object z]",zt=!Re(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Je=function(e){return typeof e=="object"?e!==null:Ue(e)},em=G.document,rU=Je(em)&&Je(em.createElement),Pl=function(e){return rU?em.createElement(e):{}},eS=!zt&&!Re(function(){return Object.defineProperty(Pl("div"),"a",{get:function(){return 7}}).a!=7}),iU=G.String,oU=G.TypeError,wt=function(e){if(Je(e))return e;throw oU(iU(e)+" is not an object")},_l=Function.prototype.call,Te=_l.bind?_l.bind(_l):function(){return _l.apply(_l,arguments)},ia=ie({}.isPrototypeOf),aU=G.Object,tm=Z1?function(e){return typeof e=="symbol"}:function(e){var t=na("Symbol");return Ue(t)&&ia(t.prototype,aU(e))},uU=G.String,Dp=function(e){try{return uU(e)}catch(t){return"Object"}},sU=G.TypeError,ji=function(e){if(Ue(e))return e;throw sU(Dp(e)+" is not a function")},oa=function(e,t){var n=e[t];return n==null?void 0:ji(n)},lU=G.TypeError,cU=G.TypeError,fU=at("toPrimitive"),dU=function(e,t){if(!Je(e)||tm(e))return e;var n,r=oa(e,fU);if(r){if(t===void 0&&(t="default"),n=Te(r,e,t),!Je(n)||tm(n))return n;throw cU("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Ue(a=i.toString)&&!Je(u=Te(a,i))||Ue(a=i.valueOf)&&!Je(u=Te(a,i))||o!=="string"&&Ue(a=i.toString)&&!Je(u=Te(a,i)))return u;throw lU("Can't convert object to primitive value")}(e,t)},nm=function(e){var t=dU(e,"string");return tm(t)?t:t+""},pU=G.TypeError,tS=Object.defineProperty,cr={f:zt?tS:function(e,t,n){if(wt(e),t=nm(t),wt(n),eS)try{return tS(e,t,n)}catch(r){}if("get"in n||"set"in n)throw pU("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Cp=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fr=zt?function(e,t,n){return cr.f(e,t,Cp(1,n))}:function(e,t,n){return e[t]=n,e},hU=ie(Function.toString);Ue(Ni.inspectSource)||(Ni.inspectSource=function(e){return hU(e)});var Ap,Nl,Op,Bp=Ni.inspectSource,nS=G.WeakMap,rS=Ue(nS)&&/native code/.test(Bp(nS)),iS=q1("keys"),rm=function(e){return iS[e]||(iS[e]=X1(e))},Fp={},im=G.TypeError,gU=G.WeakMap;if(rS||Ni.state){var aa=Ni.state||(Ni.state=new gU),vU=ie(aa.get),oS=ie(aa.has),mU=ie(aa.set);Ap=function(e,t){if(oS(aa,e))throw new im("Object already initialized");return t.facade=e,mU(aa,e,t),t},Nl=function(e){return vU(aa,e)||{}},Op=function(e){return oS(aa,e)}}else{var Tu=rm("state");Fp[Tu]=!0,Ap=function(e,t){if($t(e,Tu))throw new im("Object already initialized");return t.facade=e,fr(e,Tu,t),t},Nl=function(e){return $t(e,Tu)?e[Tu]:{}},Op=function(e){return $t(e,Tu)}}var nn={set:Ap,get:Nl,has:Op,enforce:function(e){return Op(e)?Nl(e):Ap(e,{})},getterFor:function(e){return function(t){var n;if(!Je(t)||(n=Nl(t)).type!==e)throw im("Incompatible receiver, "+e+" required");return n}}},aS=Function.prototype,yU=zt&&Object.getOwnPropertyDescriptor,om=$t(aS,"name"),ku={EXISTS:om,PROPER:om&&function(){}.name==="something",CONFIGURABLE:om&&(!zt||zt&&yU(aS,"name").configurable)},dn=Fl(function(e){var t=ku.CONFIGURABLE,n=nn.get,r=nn.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Ue(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$t(u,"name")||t&&u.name!==p)&&fr(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==G?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:fr(o,a,u)):f?o[a]=u:G1(a,u)})(Function.prototype,"toString",function(){return Ue(this)&&n(this).source||Bp(this)})}),bU=ie({}.toString),$U=ie("".slice),dr=function(e){return $U(bU(e),8,-1)},wU=at("toStringTag"),EU=G.Object,xU=dr(function(){return arguments}())=="Arguments",Tp=Q1?dr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=EU(e),wU))=="string"?n:xU?dr(t):(r=dr(t))=="Object"&&Ue(t.callee)?"Arguments":r},SU=Q1?{}.toString:function(){return"[object "+Tp(this)+"]"};Q1||dn(Object.prototype,"toString",SU,{unsafe:!0});var kp={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},am=Pl("span").classList,uS=am&&am.constructor&&am.constructor.prototype,sS=uS===Object.prototype?void 0:uS,lS=ie(ie.bind),ua=function(e,t){return ji(e),t===void 0?e:lS?lS(e,t):function(){return e.apply(t,arguments)}},um=G.Object,DU=ie("".split),Pp=Re(function(){return!um("z").propertyIsEnumerable(0)})?function(e){return dr(e)=="String"?DU(e,""):um(e)}:um,CU=Math.ceil,AU=Math.floor,Il=function(e){var t=+e;return t!=t||t===0?0:(t>0?AU:CU)(t)},OU=Math.min,Pu=function(e){return e>0?OU(Il(e),9007199254740991):0},sa=function(e){return Pu(e.length)},_p=Array.isArray||function(e){return dr(e)=="Array"},cS=function(){},BU=[],fS=na("Reflect","construct"),sm=/^\s*(?:class|function)\b/,FU=ie(sm.exec),TU=!sm.exec(cS),jl=function(e){if(!Ue(e))return!1;try{return fS(cS,BU,e),!0}catch(t){return!1}},Np=!fS||Re(function(){var e;return jl(jl.call)||!jl(Object)||!jl(function(){e=!0})||e})?function(e){if(!Ue(e))return!1;switch(Tp(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return TU||!!FU(sm,Bp(e))}:jl,kU=at("species"),dS=G.Array,pS=function(e,t){return new(function(n){var r;return _p(n)&&(r=n.constructor,(Np(r)&&(r===dS||_p(r.prototype))||Je(r)&&(r=r[kU])===null)&&(r=void 0)),r===void 0?dS:r}(e))(t===0?0:t)},hS=ie([].push),Ri=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=Ii(s),v=Pp(m),g=ua(l,c),y=sa(v),h=0,$=f||pS,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:hS(w,d)}else switch(e){case 4:return!1;case 7:hS(w,d)}return o?-1:r||i?i:w}},_u={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},gS=function(e,t){var n=[][e];return!!n&&Re(function(){n.call(null,t||function(){throw 1},1)})},PU=_u.forEach,lm=gS("forEach")?[].forEach:function(e){return PU(this,e,arguments.length>1?arguments[1]:void 0)},vS=function(e){if(e&&e.forEach!==lm)try{fr(e,"forEach",lm)}catch(t){e.forEach=lm}};for(var cm in kp)kp[cm]&&vS(G[cm]&&G[cm].prototype);vS(sS);var mS={}.propertyIsEnumerable,yS=Object.getOwnPropertyDescriptor,_U=yS&&!mS.call({1:2},1)?function(e){var t=yS(this,e);return!!t&&t.enumerable}:mS,bS={f:_U},Li=function(e){return Pp(Vn(e))},$S=Object.getOwnPropertyDescriptor,Rl={f:zt?$S:function(e,t){if(e=Li(e),t=nm(t),eS)try{return $S(e,t)}catch(n){}if($t(e,t))return Cp(!Te(bS.f,e,t),e[t])}},NU=Math.max,IU=Math.min,Nu=function(e,t){var n=Il(e);return n<0?NU(n+t,0):IU(n,t)},wS=function(e){return function(t,n,r){var i,o=Li(t),a=sa(o),u=Nu(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},ES={includes:wS(!0),indexOf:wS(!1)},jU=ES.indexOf,xS=ie([].push),SS=function(e,t){var n,r=Li(e),i=0,o=[];for(n in r)!$t(Fp,n)&&$t(r,n)&&xS(o,n);for(;t.length>i;)$t(r,n=t[i++])&&(~jU(o,n)||xS(o,n));return o},Ip=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],RU=Ip.concat("length","prototype"),Ll={f:Object.getOwnPropertyNames||function(e){return SS(e,RU)}},DS={f:Object.getOwnPropertySymbols},LU=ie([].concat),MU=na("Reflect","ownKeys")||function(e){var t=Ll.f(wt(e)),n=DS.f;return n?LU(t,n(e)):t},zU=function(e,t){for(var n=MU(t),r=cr.f,i=Rl.f,o=0;o<n.length;o++){var a=n[o];$t(e,a)||r(e,a,i(t,a))}},HU=/#|\.prototype\./,Ml=function(e,t){var n=VU[UU(e)];return n==GU||n!=WU&&(Ue(t)?Re(t):!!t)},UU=Ml.normalize=function(e){return String(e).replace(HU,".").toLowerCase()},VU=Ml.data={},WU=Ml.NATIVE="N",GU=Ml.POLYFILL="P",zl=Ml,qU=Rl.f,ut=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?G:l?G[u]||G1(u,{}):(G[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=qU(n,r))&&a.value:n[r],!zl(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;zU(o,i)}(e.sham||i&&i.sham)&&fr(o,"sham",!0),dn(n,r,o,e)}},Iu=Object.keys||function(e){return SS(e,Ip)},KU=Re(function(){Iu(1)});/*!
  25. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  26. *
  27. * Copyright (c) 2014-2017, Jon Schlinkert.
  28. * Released under the MIT License.
  29. */function CS(e){return Object.prototype.toString.call(e)==="[object Object]"}ut({target:"Object",stat:!0,forced:KU},{keys:function(e){return Iu(Ii(e))}});var YU={isHistory(e){return CS(t=e)!==!1&&((n=t.constructor)===void 0||CS(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Ci.isOperationList(e.redos[0]))&&(e.undos.length===0||Ci.isOperationList(e.undos[0]));var t,n,r}},fm=new WeakMap,dm=new WeakMap,ju={isHistoryEditor:e=>YU.isHistory(e.history)&&E.isEditor(e),isMerging:e=>dm.get(e),isSaving:e=>fm.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=ju.isMerging(e);dm.set(e,!1),t(),dm.set(e,n)},withoutSaving(e,t){var n=ju.isSaving(e);fm.set(e,!1),t(),fm.set(e,n)}},XU=(e,t)=>e.type==="set_selection"||!(!t||e.type!=="insert_text"||t.type!=="insert_text"||e.offset!==t.offset+t.text.length||!P.equals(e.path,t.path))||!(!t||e.type!=="remove_text"||t.type!=="remove_text"||e.offset+e.text.length!==t.offset||!P.equals(e.path,t.path)),JU=(e,t)=>e.type!=="set_selection"||e.properties!=null&&e.newProperties!=null,ZU=(e,t)=>!(!t||e.type!=="set_selection"||t.type!=="set_selection"),QU=e=>e.type!=="set_selection",eV=G.String,Ke=function(e){if(Tp(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return eV(e)},pm=function(){var e=wt(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},tV=ku.PROPER,hm=RegExp.prototype,AS=hm.toString,nV=ie(pm),rV=Re(function(){return AS.call({source:"a",flags:"b"})!="/a/b"}),iV=tV&&AS.name!="toString";(rV||iV)&&dn(RegExp.prototype,"toString",function(){var e=wt(this),t=Ke(e.source),n=e.flags;return"/"+t+"/"+Ke(n===void 0&&ia(hm,e)&&!("flags"in hm)?nV(e):n)},{unsafe:!0});var jp,oV=zt?Object.defineProperties:function(e,t){wt(e);for(var n,r=Li(t),i=Iu(t),o=i.length,a=0;o>a;)cr.f(e,n=i[a++],r[n]);return e},gm=na("document","documentElement"),OS=rm("IE_PROTO"),vm=function(){},BS=function(e){return"<script>"+e+"</script>"},FS=function(e){e.write(BS("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rp=function(){try{jp=new ActiveXObject("htmlfile")}catch(r){}var e,t;Rp=typeof document!="undefined"?document.domain&&jp?FS(jp):((t=Pl("iframe")).style.display="none",gm.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(BS("document.F=Object")),e.close(),e.F):FS(jp);for(var n=Ip.length;n--;)delete Rp.prototype[Ip[n]];return Rp()};Fp[OS]=!0;var Lp=Object.create||function(e,t){var n;return e!==null?(vm.prototype=wt(e),n=new vm,vm.prototype=null,n[OS]=e):n=Rp(),t===void 0?n:oV(n,t)},mm=at("unscopables"),ym=Array.prototype;ym[mm]==null&&cr.f(ym,mm,{configurable:!0,value:Lp(null)});var Hl=function(e){ym[mm][e]=!0},aV=ES.includes;ut({target:"Array",proto:!0},{includes:function(e){return aV(this,e,arguments.length>1?arguments[1]:void 0)}}),Hl("includes");var uV=at("match"),bm=function(e){var t;return Je(e)&&((t=e[uV])!==void 0?!!t:dr(e)=="RegExp")},sV=G.TypeError,$m=function(e){if(bm(e))throw sV("The method doesn't accept regular expressions");return e},lV=at("match"),wm=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[lV]=!1,"/./"[e](t)}catch(r){}}return!1},cV=ie("".indexOf);ut({target:"String",proto:!0,forced:!wm("includes")},{includes:function(e){return!!~cV(Ke(Vn(this)),Ke($m(e)),arguments.length>1?arguments[1]:void 0)}});var TS,fV=/"/g,dV=ie("".replace);ut({target:"String",proto:!0,forced:(TS="anchor",Re(function(){var e=""[TS]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=Ke(Vn(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+dV(Ke(r),fV,"&quot;")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var Em=function(e,t,n){var r,i;wt(e);try{if(!(r=oa(e,"return"))){if(t==="throw")throw n;return n}r=Te(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return wt(r),n},pV=function(e,t,n,r){try{return r?t(wt(n)[0],n[1]):t(n)}catch(i){Em(e,"throw",i)}},Ru={},hV=at("iterator"),gV=Array.prototype,kS=function(e){return e!==void 0&&(Ru.Array===e||gV[hV]===e)},Ul=function(e,t,n){var r=nm(t);r in e?cr.f(e,r,Cp(0,n)):e[r]=n},vV=at("iterator"),xm=function(e){if(e!=null)return oa(e,vV)||oa(e,"@@iterator")||Ru[Tp(e)]},mV=G.TypeError,PS=function(e,t){var n=arguments.length<2?xm(e):t;if(ji(n))return wt(Te(n,e));throw mV(Dp(e)+" is not iterable")},_S=G.Array,NS=at("iterator"),IS=!1;try{var yV=0,jS={next:function(){return{done:!!yV++}},return:function(){IS=!0}};jS[NS]=function(){return this},Array.from(jS,function(){throw 2})}catch(e){}var Sm=function(e,t){if(!t&&!IS)return!1;var n=!1;try{var r={};r[NS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n},bV=!Sm(function(e){Array.from(e)});ut({target:"Array",stat:!0,forced:bV},{from:function(e){var t=Ii(e),n=Np(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=i!==void 0;o&&(i=ua(i,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=xm(t),p=0;if(!d||this==_S&&kS(d))for(a=sa(t),u=n?new this(a):_S(a);a>p;p++)f=o?i(t[p],p):t[p],Ul(u,p,f);else for(c=(l=PS(t,d)).next,u=n?new this:[];!(s=Te(c,l)).done;p++)f=o?pV(l,i,[s.value,p],!0):s.value,Ul(u,p,f);return u.length=p,u}});var la,RS,LS,$V=ie("".charAt),MS=ie("".charCodeAt),wV=ie("".slice),zS=function(e){return function(t,n){var r,i,o=Ke(Vn(t)),a=Il(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=MS(o,a))<55296||r>56319||a+1===u||(i=MS(o,a+1))<56320||i>57343?e?$V(o,a):r:e?wV(o,a,a+2):i-56320+(r-55296<<10)+65536}},HS={codeAt:zS(!1),charAt:zS(!0)},EV=!Re(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),US=rm("IE_PROTO"),Dm=G.Object,xV=Dm.prototype,Mp=EV?Dm.getPrototypeOf:function(e){var t=Ii(e);if($t(t,US))return t[US];var n=t.constructor;return Ue(n)&&t instanceof n?n.prototype:t instanceof Dm?xV:null},Cm=at("iterator"),VS=!1;[].keys&&("next"in(LS=[].keys())?(RS=Mp(Mp(LS)))!==Object.prototype&&(la=RS):VS=!0);var SV=la==null||Re(function(){var e={};return la[Cm].call(e)!==e});SV&&(la={}),Ue(la[Cm])||dn(la,Cm,function(){return this});var Am={IteratorPrototype:la,BUGGY_SAFARI_ITERATORS:VS},DV=cr.f,WS=at("toStringTag"),zp=function(e,t,n){e&&!$t(e=n?e:e.prototype,WS)&&DV(e,WS,{configurable:!0,value:t})},CV=Am.IteratorPrototype,AV=function(){return this},OV=G.String,BV=G.TypeError,Lu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return wt(r),function(o){if(typeof o=="object"||Ue(o))return o;throw BV("Can't set "+OV(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),FV=ku.PROPER,TV=ku.CONFIGURABLE,GS=Am.IteratorPrototype,Hp=Am.BUGGY_SAFARI_ITERATORS,Vl=at("iterator"),kV=function(){return this},Om=function(e,t,n,r,i,o,a){(function(y,h,$,w){var x=h+" Iterator";y.prototype=Lp(CV,{next:Cp(+!w,$)}),zp(y,x,!1),Ru[x]=AV})(n,t,r);var u,s,l,c=function(y){if(y===i&&v)return v;if(!Hp&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,m=p[Vl]||p["@@iterator"]||i&&p[i],v=!Hp&&m||c(i),g=t=="Array"&&p.entries||m;if(g&&(u=Mp(g.call(new e)))!==Object.prototype&&u.next&&(Mp(u)!==GS&&(Lu?Lu(u,GS):Ue(u[Vl])||dn(u,Vl,kV)),zp(u,f,!0)),FV&&i=="values"&&m&&m.name!=="values"&&(TV?fr(p,"name","values"):(d=!0,v=function(){return Te(m,this)})),i)if(s={values:c("values"),keys:o?v:c("keys"),entries:c("entries")},a)for(l in s)(Hp||d||!(l in p))&&dn(p,l,s[l]);else ut({target:t,proto:!0,forced:Hp||d},s);return p[Vl]!==v&&dn(p,Vl,v,{name:i}),Ru[t]=v,s},PV=HS.charAt,_V=nn.set,NV=nn.getterFor("String Iterator");Om(String,"String",function(e){_V(this,{type:"String Iterator",string:Ke(e),index:0})},function(){var e,t=NV(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=PV(n,r),t.index+=e.length,{value:e,done:!1})});var Bm,IV=Rl.f,qS=ie("".endsWith),jV=ie("".slice),RV=Math.min,KS=wm("endsWith"),LV=!(KS||(Bm=IV(String.prototype,"endsWith"),!Bm||Bm.writable));ut({target:"String",proto:!0,forced:!LV&&!KS},{endsWith:function(e){var t=Ke(Vn(this));$m(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:RV(Pu(n),r),o=Ke(e);return qS?qS(t,o,i):jV(t,i-o.length,i)===o}});var MV=ie([].join),zV=Pp!=Object,HV=gS("join",",");ut({target:"Array",proto:!0,forced:zV||!HV},{join:function(e){return MV(Li(this),e===void 0?",":e)}});var UV=at("species"),Up=function(e){return Tl>=51||!Re(function(){var t=[];return(t.constructor={})[UV]=function(){return{foo:1}},t[e](Boolean).foo!==1})},VV=_u.map,WV=Up("map");ut({target:"Array",proto:!0,forced:!WV},{map:function(e){return VV(this,e,arguments.length>1?arguments[1]:void 0)}});var Fm=G.RegExp,Tm=Re(function(){var e=Fm("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),GV=Tm||Re(function(){return!Fm("a","y").sticky}),Vp={BROKEN_CARET:Tm||Re(function(){var e=Fm("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:GV,UNSUPPORTED_Y:Tm},qV=G.RegExp,km=Re(function(){var e=qV(".","s");return!(e.dotAll&&e.exec(`
  30. `)&&e.flags==="s")}),KV=G.RegExp,Pm=Re(function(){var e=KV("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),YV=nn.get,XV=q1("native-string-replace",String.prototype.replace),Wp=RegExp.prototype.exec,_m=Wp,JV=ie("".charAt),ZV=ie("".indexOf),QV=ie("".replace),Nm=ie("".slice),Im=function(){var e=/a/,t=/b*/g;return Te(Wp,e,"a"),Te(Wp,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),YS=Vp.BROKEN_CARET,jm=/()??/.exec("")[1]!==void 0;(Im||jm||YS||km||Pm)&&(_m=function(e){var t,n,r,i,o,a,u,s=this,l=YV(s),c=Ke(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Te(_m,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=YS&&s.sticky,m=Te(pm,s),v=s.source,g=0,y=c;if(p&&(m=QV(m,"y",""),ZV(m,"g")===-1&&(m+="g"),y=Nm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&JV(c,s.lastIndex-1)!==`
  31. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),jm&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Im&&(r=s.lastIndex),i=Te(Wp,p?n:s,y),p?i?(i.input=Nm(i.input,g),i[0]=Nm(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Im&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),jm&&i&&i.length>1&&Te(XV,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=Lp(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var Wl=_m;ut({target:"RegExp",proto:!0,forced:/./.exec!==Wl},{exec:Wl});var Rm=Function.prototype,XS=Rm.apply,eW=Rm.bind,JS=Rm.call,Lm=typeof Reflect=="object"&&Reflect.apply||(eW?JS.bind(XS):function(){return JS.apply(XS,arguments)}),tW=at("species"),Mm=RegExp.prototype,zm=function(e,t,n,r){var i=at(e),o=!Re(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Re(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[tW]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=ie(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=ie(l),v=c.exec;return v===Wl||v===Mm.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});dn(String.prototype,e,s[0]),dn(Mm,i,s[1])}r&&fr(Mm[i],"sham",!0)},nW=HS.charAt,Hm=function(e,t,n){return t+(n?nW(e,t).length:1)},rW=Math.floor,Um=ie("".charAt),iW=ie("".replace),Vm=ie("".slice),oW=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,aW=/\$([$&'`]|\d{1,2})/g,uW=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=aW;return i!==void 0&&(i=Ii(i),s=oW),iW(o,s,function(l,c){var f;switch(Um(c,0)){case"$":return"$";case"&":return e;case"`":return Vm(t,0,n);case"'":return Vm(t,a);case"<":f=i[Vm(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=rW(d/10);return p===0?l:p<=u?r[p-1]===void 0?Um(c,1):r[p-1]+Um(c,1):l}f=r[d-1]}return f===void 0?"":f})},sW=G.TypeError,Gl=function(e,t){var n=e.exec;if(Ue(n)){var r=Te(n,e,t);return r!==null&&wt(r),r}if(dr(e)==="RegExp")return Te(Wl,e,t);throw sW("RegExp#exec called on incompatible receiver")},Wm=at("replace"),lW=Math.max,cW=Math.min,fW=ie([].concat),Gm=ie([].push),ZS=ie("".indexOf),QS=ie("".slice),dW="a".replace(/./,"$0")==="$0",eD=!!/./[Wm]&&/./[Wm]("a","$0")==="";zm("replace",function(e,t,n){var r=eD?"$":"$0";return[function(i,o){var a=Vn(this),u=i==null?void 0:oa(i,Wm);return u?Te(u,i,a,o):Te(t,Ke(a),i,o)},function(i,o){var a=wt(this),u=Ke(i);if(typeof o=="string"&&ZS(o,r)===-1&&ZS(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Ue(o);l||(o=Ke(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Gl(a,u);if(p===null||(Gm(d,p),!c))break;Ke(p[0])===""&&(a.lastIndex=Hm(u,Pu(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<d.length;y++){for(var h=Ke((p=d[y])[0]),$=lW(cW(Il(p.index),u.length),0),w=[],x=1;x<p.length;x++)Gm(w,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=fW([h],w,$,u);S!==void 0&&Gm(C,S);var N=Ke(Lm(o,void 0,C))}else N=uW(h,u,$,w,S,o);$>=g&&(v+=QS(u,g,$)+N,g=$+h.length)}return v+QS(u,g)}]},!!Re(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!dW||eD);/*! *****************************************************************************
  32. Copyright (c) Microsoft Corporation.
  33. Permission to use, copy, modify, and/or distribute this software for any
  34. purpose with or without fee is hereby granted.
  35. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  36. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  37. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  38. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  39. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  40. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  41. PERFORMANCE OF THIS SOFTWARE.
  42. ***************************************************************************** */var qm=function(e,t){return qm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},qm(e,t)};function Mu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}qm(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Wn=function(){return Wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Wn.apply(this,arguments)};function Gn(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 ke(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Km(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var pW=0,tD=function(){this.id=""+pW++},hW=nn.set,gW=nn.getterFor("Array Iterator"),ql=Om(Array,"Array",function(e,t){hW(this,{type:"Array Iterator",target:Li(e),index:0,kind:t})},function(){var e=gW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Ru.Arguments=Ru.Array,Hl("keys"),Hl("values"),Hl("entries");var zu=function(e,t,n){for(var r in t)dn(e,r,t[r],n);return e},vW=G.Array,mW=Math.max,Ym=function(e,t,n){for(var r=sa(e),i=Nu(t,r),o=Nu(n===void 0?r:n,r),a=vW(mW(o-i,0)),u=0;i<o;i++,u++)Ul(a,u,e[i]);return a.length=u,a},nD=Ll.f,rD=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yW={f:function(e){return rD&&dr(e)=="Window"?function(t){try{return nD(t)}catch(n){return Ym(rD)}}(e):nD(Li(e))}},iD=Re(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Gp=Object.isExtensible,ca=Re(function(){Gp(1)})||iD?function(e){return!!Je(e)&&(!iD||dr(e)!="ArrayBuffer")&&(!Gp||Gp(e))}:Gp,bW=!Re(function(){return Object.isExtensible(Object.preventExtensions({}))}),qp=Fl(function(e){var t=cr.f,n=!1,r=X1("meta"),i=0,o=function(u){t(u,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Ll.f,s=ie([].splice),l={};l[r]=1,u(l).length&&(Ll.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},ut({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yW.f}))},fastKey:function(u,s){if(!Je(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!$t(u,r)){if(!ca(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!$t(u,r)){if(!ca(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return bW&&n&&ca(u)&&!$t(u,r)&&o(u),u}};Fp[r]=!0}),$W=G.TypeError,Kp=function(e,t){this.stopped=e,this.result=t},oD=Kp.prototype,Kl=function(e,t,n){var r,i,o,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=ua(t,c),v=function(y){return r&&Em(r,"normal",y),new Kp(!0,y)},g=function(y){return f?(wt(y),p?m(y[0],y[1],v):m(y[0],y[1])):p?m(y,v):m(y)};if(d)r=e;else{if(!(i=xm(e)))throw $W(Dp(e)+" is not iterable");if(kS(i)){for(o=0,a=sa(e);a>o;o++)if((u=g(e[o]))&&ia(oD,u))return u;return new Kp(!1)}r=PS(e,i)}for(s=r.next;!(l=Te(s,r)).done;){try{u=g(l.value)}catch(y){Em(r,"throw",y)}if(typeof u=="object"&&u&&ia(oD,u))return u}return new Kp(!1)},wW=G.TypeError,Yp=function(e,t){if(ia(t,e))return e;throw wW("Incorrect invocation")},aD=function(e,t,n){var r,i;return Lu&&Ue(r=t.constructor)&&r!==n&&Je(i=r.prototype)&&i!==n.prototype&&Lu(e,i),e},uD=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=G[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=ie(u[g]);dn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Je(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Je(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Je(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(zl(e,!Ue(a)||!(i||u.forEach&&!Re(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),qp.enable();else if(zl(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=Re(function(){f.has(1)}),m=Sm(function(g){new a(g)}),v=!i&&Re(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});m||((s=t(function(g,y){Yp(g,u);var h=aD(new a,g,s);return y!=null&&Kl(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,ut({global:!0,forced:s!=a},l),zp(s,e),i||n.setStrong(s,e,r),s},Xp=qp.getWeakData,EW=nn.set,xW=nn.getterFor,SW=_u.find,DW=_u.findIndex,CW=ie([].splice),AW=0,Jp=function(e){return e.frozen||(e.frozen=new sD)},sD=function(){this.entries=[]},Xm=function(e,t){return SW(e.entries,function(n){return n[0]===t})};sD.prototype={get:function(e){var t=Xm(this,e);if(t)return t[1]},has:function(e){return!!Xm(this,e)},set:function(e,t){var n=Xm(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=DW(this.entries,function(n){return n[0]===e});return~t&&CW(this.entries,t,1),!!~t}};var Yl,lD={getConstructor:function(e,t,n,r){var i=e(function(s,l){Yp(s,o),EW(s,{type:t,id:AW++,frozen:void 0}),l!=null&&Kl(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=xW(t),u=function(s,l,c){var f=a(s),d=Xp(wt(l),!0);return d===!0?Jp(f).set(l,c):d[f.id]=c,s};return zu(o,{delete:function(s){var l=a(this);if(!Je(s))return!1;var c=Xp(s);return c===!0?Jp(l).delete(s):c&&$t(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Je(s))return!1;var c=Xp(s);return c===!0?Jp(l).has(s):c&&$t(c,l.id)}}),zu(o,n?{get:function(s){var l=a(this);if(Je(s)){var c=Xp(s);return c===!0?Jp(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),i}},Zp=nn.enforce,OW=!G.ActiveXObject&&"ActiveXObject"in G,cD=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},BW=uD("WeakMap",cD,lD);if(rS&&OW){Yl=lD.getConstructor(cD,"WeakMap",!0),qp.enable();var Xl=BW.prototype,fD=ie(Xl.delete),Qp=ie(Xl.has),dD=ie(Xl.get),pD=ie(Xl.set);zu(Xl,{delete:function(e){if(Je(e)&&!ca(e)){var t=Zp(this);return t.frozen||(t.frozen=new Yl),fD(this,e)||t.frozen.delete(e)}return fD(this,e)},has:function(e){if(Je(e)&&!ca(e)){var t=Zp(this);return t.frozen||(t.frozen=new Yl),Qp(this,e)||t.frozen.has(e)}return Qp(this,e)},get:function(e){if(Je(e)&&!ca(e)){var t=Zp(this);return t.frozen||(t.frozen=new Yl),Qp(this,e)?dD(this,e):t.frozen.get(e)}return dD(this,e)},set:function(e,t){if(Je(e)&&!ca(e)){var n=Zp(this);n.frozen||(n.frozen=new Yl),Qp(this,e)?pD(this,e,t):n.frozen.set(e,t)}else pD(this,e,t);return this}})}var Jm=at("iterator"),hD=at("toStringTag"),Zm=ql.values,gD=function(e,t){if(e){if(e[Jm]!==Zm)try{fr(e,Jm,Zm)}catch(r){e[Jm]=Zm}if(e[hD]||fr(e,hD,t),kp[t]){for(var n in ql)if(e[n]!==ql[n])try{fr(e,n,ql[n])}catch(r){e[n]=ql[n]}}}};for(var Qm in kp)gD(G[Qm]&&G[Qm].prototype,Qm);gD(sS,"DOMTokenList");var ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,eh=new WeakMap,ry=new WeakMap,th=new WeakMap,iy=new WeakMap,oy=new WeakMap,nh=new WeakMap,vD=new WeakMap,mD=new WeakMap,yD=new WeakMap,bD=new WeakMap,Jl=new WeakMap,Hu=new WeakMap,ay=new WeakMap,rh=new WeakMap,uy=new WeakMap,ih=new WeakMap,oh=new WeakMap,$D=new WeakMap,fa=new WeakMap,sy=new WeakMap,wD=new WeakMap,ly=new WeakMap,FW=_u.find,ED=!0;"find"in[]&&Array(1).find(function(){ED=!1}),ut({target:"Array",proto:!0,forced:ED},{find:function(e){return FW(this,e,arguments.length>1?arguments[1]:void 0)}}),Hl("find"),ut({global:!0},{globalThis:G});const TW=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];sp&&(O.fn.css=sp),zn&&(O.fn.append=zn),vu&&(O.fn.addClass=vu),mu&&(O.fn.removeClass=mu),yu&&(O.fn.hasClass=yu),Dr&&(O.fn.on=Dr),Bi&&(O.fn.focus=Bi),Mn&&(O.fn.attr=Mn),ip&&(O.fn.removeAttr=ip),$u&&(O.fn.hide=$u),up&&(O.fn.show=up),g8&&(O.fn.offset=g8),op&&(O.fn.width=op),ap&&(O.fn.height=ap),wu&&(O.fn.parent=wu),fp&&(O.fn.parents=fp),m8&&(O.fn.is=m8),bu&&(O.fn.dataset=bu),Sr&&(O.fn.val=Sr),cp&&(O.fn.text=cp),Oi&&(O.fn.html=Oi),xu&&(O.fn.children=xu),Su&&(O.fn.remove=Su),Eu&&(O.fn.find=Eu),lp&&(O.fn.each=lp),Du&&(O.fn.empty=Du);var Mi,cy=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},pr=function(e){return da(e)&&e.nodeType===1},da=function(e){var t=cy(e);return!!t&&e instanceof t.Node},xD=function(e){var t=e&&e.anchorNode&&cy(e.anchorNode);return!!t&&e instanceof t.Selection},SD=function(e){return da(e)&&e.nodeType===3},fy=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},DD=function(e,t,n){for(var r,i=e.childNodes,o=i[t],a=t,u=!1,s=!1;(da(r=o)&&r.nodeType===8||pr(o)&&o.childNodes.length===0||pr(o)&&o.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=i.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(o=i[a],t=a,a+=n==="forward"?1:-1);return[o,t]},kW=function(e,t,n){return ke(DD(e,t,n),1)[0]},PW=function e(t){var n,r,i="";if(SD(t)&&t.nodeValue)return t.nodeValue;if(pr(t)){try{for(var o=Gn(Array.from(t.childNodes)),a=o.next();!a.done;a=o.next())i+=e(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(i+=`
  43. `)}return i};function CD(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],o=i.nodeType;o==3?t(i,e):o!=1&&o!=9&&o!=11||CD(i,t)}}function AD(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Mi.ELEMENT_NODE?"":t.tagName.toLowerCase()}(function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(Mi||(Mi={})),globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var dy=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Zl=typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Ql=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),_W=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),NW=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),py=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var ec=!NW&&!_W&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(e){var t=$D.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=oh.get(t);return n||(n=new tD,oh.set(t,n)),n},setNewKey:function(e){var t=new tD;oh.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=Hu.get(r);if(i==null){if(E.isEditor(r))return n;break}var o=Jl.get(r);if(o==null)break;n.unshift(o),r=i}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=A.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Hu.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=A.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[A.findPath(e,t)[0]];return q.get(e,n)},toDOMNode:function(e,t){var n;if(E.isEditor(t))n=ay.get(e);else{var r=A.findKey(e,t);n=uy.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){n===void 0&&(n={});var r,i=n.editable,o=i!==void 0&&i,a=A.toDOMNode(e,e);try{r=pr(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&&(!o||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=j.isBackward(t),o=A.toDOMPoint(e,n),a=j.isCollapsed(t)?o:A.toDOMPoint(e,r),u=A.getWindow(e).document.createRange(),s=ke(i?a:o,2),l=s[0],c=s[1],f=ke(i?o:a,2),d=f[0],p=f[1],m=!!(pr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(pr(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,m?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,i,o=ke(E.node(e,t.path),1)[0],a=A.toDOMNode(e,o);E.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=Gn(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,m=f.getAttribute("data-slate-length"),v=s+(m==null?p:parseInt(m,10));if(t.offset<=v){i=[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(!i)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=pr(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?rh.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,i=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var o,a=A.toSlateNode(e,t.target),u=A.findPath(e,a);if(E.isVoid(e,a)){var s=i.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=E.point(e,u,{edge:l?"start":"end"}),f=l?E.before(e,c):E.after(e,c);if(f)return E.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)o=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((o=d.createRange()).setStart(p.offsetNode,p.offset),o.setEnd(p.offsetNode,p.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return A.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,o,a,u,s=n.exactMatch,l=n.suppressThrow;if((xD(t)?t.anchorNode:t.startContainer)&&(xD(t)?(r=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,u=py&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,u=t.collapsed)),r==null||o==null||i==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=A.toSlatePoint(e,[r,i],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(e,[o,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return j.isExpanded(d)&&j.isForward(d)&&pr(o)&&E.void(e,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,o=n.suppressThrow,a=ke(i?t:function(h){var $,w=ke(h,2),x=w[0],S=w[1];if(pr(x)&&x.childNodes.length){var C=S===x.childNodes.length,N=C?S-1:S;for(x=($=ke(DD(x,N,C?"backward":"forward"),2))[0],C=(N=$[1])<S;pr(x)&&x.childNodes.length;){var R=C?x.childNodes.length-1:0;x=kW(x,R,C?"backward":"forward")}S=C&&x.textContent!=null?x.textContent.length:0}return[x,S]}(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]"),m=null;if(p){c=p.closest('[data-slate-node="text"]');var v=A.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();Km(Km([],ke(c8(g.querySelectorAll("[data-slate-zero-width]")))),ke(c8(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,m=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(m=p).textContent.length,m.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);m&&f===m.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Zl&&((r=m.textContent)===null||r===void 0?void 0:r.endsWith(`
  44. `)))&&f--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=A.toSlateNode(e,c);return{path:A.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return E.hasPath(e,n.path)&&E.hasPath(e,r.path)},getNodeType:function(e){return ne.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return q.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],i=E.nodes(e,{universal:!0});try{for(var o=Gn(i),a=o.next();!a.done;a=o.next()){var u=ke(a.value,1)[0];ne.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=ke(E.nodes(e,{match:function(o){return n.checkNodeType(o,t)},universal:!0}),1),i=r[0];return i==null?null:i[0]},getSelectedTextNode:function(e){var t=ke(E.nodes(e,{match:function(r){return J.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=ke(E.nodes(e,{match:function(i){return i===t},universal:!0}),1),r=n[0];return r!=null&&ke(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(E.isEnd(e,n.anchor,t)||E.isEnd(e,n.focus,t))},getTextarea:function(e){var t=ey.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return eh.get(e)||null},getHoverbar:function(e){return th.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(typeof n!="number"||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,o=A.getTextarea(e).$textArea,a=o==null?void 0:o[0].childNodes;if(a)try{for(var u=Gn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)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=E.nodes(e,{match:function(v){return!(!ne.isElement(v)||e.isInline(v))},universal:!0});try{for(var f=Gn(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var m=p[0];CD(A.toDOMNode(e,m),function(v,g){var y=O(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(v)})}}}catch(v){r={error:v}}finally{try{d&&!d.done&&(i=f.return)&&i.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=E.nodes(e,{match:function(u){return e.isVoid(u)}}),i=0;try{for(var o=Gn(r),a=o.next();!a.done;a=o.next())a.value,i++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||j.isExpanded(t))return!1;var n=A.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=E.node(e,t);if(n==null)return!1;var r=ke(n,1)[0].children;return r.length===1&&r[0].text===""}},IW=1,OD={},tc={};function jW(e,t){var n=e.key,r=e.factory,i=e.config,o=Wn(Wn({},i),t||{});if(tc[n]!=null)throw new Error("Duplicated key '"+n+"' in menu items");tc[n]=r,function(a,u){u!=null&&(OD[a]=u)}(n,o)}var BD=at("species"),hy=function(e){var t=na(e),n=cr.f;zt&&t&&!t[BD]&&n(t,BD,{configurable:!0,get:function(){return this}})},RW=cr.f,FD=qp.fastKey,TD=nn.set,gy=nn.getterFor,LW={getConstructor:function(e,t,n,r){var i=e(function(l,c){Yp(l,o),TD(l,{type:t,index:Lp(null),first:void 0,last:void 0,size:0}),zt||(l.size=0),c!=null&&Kl(c,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=gy(t),u=function(l,c,f){var d,p,m=a(l),v=s(l,c);return v?v.value=f:(m.last=v={index:p=FD(c,!0),key:c,value:f,previous:d=m.last,next:void 0,removed:!1},m.first||(m.first=v),d&&(d.next=v),zt?m.size++:l.size++,p!=="F"&&(m.index[p]=v)),l},s=function(l,c){var f,d=a(l),p=FD(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return zu(o,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,zt?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,m=d.previous;delete f.index[d.index],d.removed=!0,m&&(m.next=p),p&&(p.previous=m),f.first==d&&(f.first=p),f.last==d&&(f.last=m),zt?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=ua(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),zu(o,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),zt&&RW(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=gy(t),o=gy(r);Om(e,t,function(a,u){TD(this,{type:r,target:a,state:i(a),kind:u,last:void 0})},function(){for(var a=o(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),hy(t)}};uD("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},LW);var MW=_u.filter,zW=Up("filter");ut({target:"Array",proto:!0,forced:!zW},{filter:function(e){return MW(this,e,arguments.length>1?arguments[1]:void 0)}});var vy=`
  45. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,kD=ie("".replace),ah="["+vy+"]",HW=RegExp("^"+ah+ah+"*"),UW=RegExp(ah+ah+"*$"),my=function(e){return function(t){var n=Ke(Vn(t));return 1&e&&(n=kD(n,HW,"")),2&e&&(n=kD(n,UW,"")),n}},VW={start:my(1),end:my(2),trim:my(3)},WW=ku.PROPER,GW=VW.trim;ut({target:"String",proto:!0,forced:function(e){return Re(function(){return!!vy[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||WW&&vy[e].name!==e})}("trim")},{trim:function(){return GW(this)}});var yy=[];function qW(e){yy.push(e)}var PD={};function KW(e){var t=e.type,n=e.elemToHtml;PD[t||""]=n}function YW(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function XW(e,t){var n=e.type,r=n===void 0?"":n,i=e.children,o=i===void 0?[]:i,a=E.isVoid(t,e),u="";a||(u=o.map(function(v){return uC(v,t)}).join(""));var s=function(v){return PD[v]||YW}(r),l=s(e,u,t),c="";if(c=typeof l=="string"?l:l.html||"",a||yy.forEach(function(v){return c=v(e,c)}),typeof l=="string")return c;var f=l.prefix,d=f===void 0?"":f,p=l.suffix,m=p===void 0?"":p;return d&&(c=d+c),m&&(c+=m),c}var nc,Uu,_D,by,uh=G.Promise,JW=G.TypeError,ZW=at("species"),ND=function(e,t){var n,r=wt(e).constructor;return r===void 0||(n=wt(r)[ZW])==null?t:function(i){if(Np(i))return i;throw JW(Dp(i)+" is not a constructor")}(n)},ID=ie([].slice),jD=/(?:ipad|iphone|ipod).*applewebkit/i.test(Fu),zi=dr(G.process)=="process",$y=G.setImmediate,wy=G.clearImmediate,QW=G.process,Ey=G.Dispatch,eG=G.Function,RD=G.MessageChannel,tG=G.String,xy=0,rc={};try{nc=G.location}catch(e){}var Sy=function(e){if($t(rc,e)){var t=rc[e];delete rc[e],t()}},Dy=function(e){return function(){Sy(e)}},LD=function(e){Sy(e.data)},MD=function(e){G.postMessage(tG(e),nc.protocol+"//"+nc.host)};$y&&wy||($y=function(e){var t=ID(arguments,1);return rc[++xy]=function(){Lm(Ue(e)?e:eG(e),void 0,t)},Uu(xy),xy},wy=function(e){delete rc[e]},zi?Uu=function(e){QW.nextTick(Dy(e))}:Ey&&Ey.now?Uu=function(e){Ey.now(Dy(e))}:RD&&!jD?(by=(_D=new RD).port2,_D.port1.onmessage=LD,Uu=ua(by.postMessage,by)):G.addEventListener&&Ue(G.postMessage)&&!G.importScripts&&nc&&nc.protocol!=="file:"&&!Re(MD)?(Uu=MD,G.addEventListener("message",LD,!1)):Uu="onreadystatechange"in Pl("script")?function(e){gm.appendChild(Pl("script")).onreadystatechange=function(){gm.removeChild(this),Sy(e)}}:function(e){setTimeout(Dy(e),0)});var ic,pa,oc,Vu,Cy,Ay,Oy,zD,HD={set:$y,clear:wy},nG=/ipad|iphone|ipod/i.test(Fu)&&G.Pebble!==void 0,rG=/web0s(?!.*chrome)/i.test(Fu),iG=Rl.f,By=HD.set,UD=G.MutationObserver||G.WebKitMutationObserver,VD=G.document,WD=G.process,sh=G.Promise,GD=iG(G,"queueMicrotask"),qD=GD&&GD.value;qD||(ic=function(){var e,t;for(zi&&(e=WD.domain)&&e.exit();pa;){t=pa.fn,pa=pa.next;try{t()}catch(n){throw pa?Vu():oc=void 0,n}}oc=void 0,e&&e.enter()},jD||zi||rG||!UD||!VD?!nG&&sh&&sh.resolve?((Oy=sh.resolve(void 0)).constructor=sh,zD=ua(Oy.then,Oy),Vu=function(){zD(ic)}):zi?Vu=function(){WD.nextTick(ic)}:(By=ua(By,G),Vu=function(){By(ic)}):(Cy=!0,Ay=VD.createTextNode(""),new UD(ic).observe(Ay,{characterData:!0}),Vu=function(){Ay.data=Cy=!Cy}));var Fy,KD,YD,XD,JD=qD||function(e){var t={fn:e,next:void 0};oc&&(oc.next=t),pa||(pa=t,Vu()),oc=t},oG=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=ji(t),this.reject=ji(n)},Ty={f:function(e){return new oG(e)}},ky=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},aG=typeof window=="object",ZD=HD.set,uG=at("species"),Fr="Promise",QD=nn.getterFor(Fr),sG=nn.set,lG=nn.getterFor(Fr),ha=uh&&uh.prototype,Tr=uh,ac=ha,eC=G.TypeError,Py=G.document,_y=G.process,Wu=Ty.f,cG=Wu,fG=!!(Py&&Py.createEvent&&G.dispatchEvent),tC=Ue(G.PromiseRejectionEvent),nC=!1,uc=zl(Fr,function(){var e=Bp(Tr),t=e!==String(Tr);if(!t&&Tl===66)return!0;if(Tl>=51&&/native code/.test(e))return!1;var n=new Tr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[uG]=r,!(nC=n.then(function(){})instanceof r)||!t&&aG&&!tC}),dG=uc||!Sm(function(e){Tr.all(e).catch(function(){})}),rC=function(e){var t;return!(!Je(e)||!Ue(t=e.then))&&t},Ny=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;JD(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,u,s,l=n[o++],c=i?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(i||(e.rejection===2&&hG(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(eC("Promise-chain cycle")):(u=rC(a))?Te(u,a,f,d):f(a)):d(r)}catch(m){p&&!s&&p.exit(),d(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&pG(e)})}},iC=function(e,t,n){var r,i;fG?((r=Py.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),G.dispatchEvent(r)):r={promise:t,reason:n},!tC&&(i=G["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var u=G.console;u&&u.error&&(arguments.length==1?u.error(o):u.error(o,a))}("Unhandled promise rejection",n)},pG=function(e){Te(ZD,G,function(){var t,n=e.facade,r=e.value;if(oC(e)&&(t=ky(function(){zi?_y.emit("unhandledRejection",r,n):iC("unhandledrejection",n,r)}),e.rejection=zi||oC(e)?2:1,t.error))throw t.value})},oC=function(e){return e.rejection!==1&&!e.parent},hG=function(e){Te(ZD,G,function(){var t=e.facade;zi?_y.emit("rejectionHandled",t):iC("rejectionhandled",t,e.value)})},Gu=function(e,t,n){return function(r){e(t,r,n)}},qu=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ny(e,!0))},Iy=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw eC("Promise can't be resolved itself");var r=rC(t);r?JD(function(){var i={done:!1};try{Te(r,t,Gu(Iy,i,e),Gu(qu,i,e))}catch(o){qu(i,o,e)}}):(e.value=t,e.state=1,Ny(e,!1))}catch(i){qu({done:!1},i,e)}}};if(uc&&(ac=(Tr=function(e){Yp(this,ac),ji(e),Te(Fy,this);var t=QD(this);try{e(Gu(Iy,t),Gu(qu,t))}catch(n){qu(t,n)}}).prototype,(Fy=function(e){sG(this,{type:Fr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zu(ac,{then:function(e,t){var n=lG(this),r=n.reactions,i=Wu(ND(this,Tr));return i.ok=!Ue(e)||e,i.fail=Ue(t)&&t,i.domain=zi?_y.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Ny(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),KD=function(){var e=new Fy,t=QD(e);this.promise=e,this.resolve=Gu(Iy,t),this.reject=Gu(qu,t)},Ty.f=Wu=function(e){return e===Tr||e===YD?new KD(e):cG(e)},Ue(uh)&&ha!==Object.prototype)){XD=ha.then,nC||(dn(ha,"then",function(e,t){var n=this;return new Tr(function(r,i){Te(XD,n,r,i)}).then(e,t)},{unsafe:!0}),dn(ha,"catch",ac.catch,{unsafe:!0}));try{delete ha.constructor}catch(e){}Lu&&Lu(ha,ac)}ut({global:!0,wrap:!0,forced:uc},{Promise:Tr}),zp(Tr,Fr,!1),hy(Fr),YD=na(Fr),ut({target:Fr,stat:!0,forced:uc},{reject:function(e){var t=Wu(this);return Te(t.reject,void 0,e),t.promise}}),ut({target:Fr,stat:!0,forced:uc},{resolve:function(e){return function(t,n){if(wt(t),Je(n)&&n.constructor===t)return n;var r=Ty.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),ut({target:Fr,stat:!0,forced:dG},{all:function(e){var t=this,n=Wu(t),r=n.resolve,i=n.reject,o=ky(function(){var a=ji(t.resolve),u=[],s=0,l=1;Kl(e,function(c){var f=s++,d=!1;l++,Te(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},i)}),--l||r(u)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Wu(t),r=n.reject,i=ky(function(){var o=ji(t.resolve);Kl(e,function(a){Te(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Ku=Vp.UNSUPPORTED_Y,gG=Math.min,aC=[].push,vG=ie(/./.exec),Yu=ie(aC),sc=ie("".slice);function qn(e){Promise.resolve().then(e)}function uC(e,t){return ne.isElement(e)?XW(e,t):function(n,r){var i=n.text;if(i==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var o=i;o=function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(o);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(o=o.replace(/\r\n|\r|\n/g,"<br>")),a&&(o=o.replace(/&nbsp;/g," ")),o===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return o;o="<br>"}return yy.forEach(function(s){return o=s(n,o)}),o}(e,t)}function sC(e){return"w-e-element-"+e}zm("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a=Ke(Vn(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!bm(i))return Te(t,a,i,u);for(var s,l,c,f=[],d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),p=0,m=new RegExp(i.source,d+"g");(s=Te(Wl,m,a))&&!((l=m.lastIndex)>p&&(Yu(f,sc(a,p,s.index)),s.length>1&&s.index<a.length&&Lm(aC,f,Ym(s,1)),c=s[0].length,p=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return p===a.length?!c&&vG(m,"")||Yu(f,""):Yu(f,sc(a,p)),f.length>u?Ym(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Te(t,this,i,o)}:t,[function(i,o){var a=Vn(this),u=i==null?void 0:oa(i,e);return u?Te(u,i,a,o):Te(r,Ke(a),i,o)},function(i,o){var a=wt(this),u=Ke(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=ND(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ku?"g":"y"),d=new l(Ku?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return Gl(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){d.lastIndex=Ku?0:v;var y,h=Gl(d,Ku?sc(u,v):u);if(h===null||(y=gG(Pu(d.lastIndex+(Ku?v:0)),u.length))===m)v=Hm(u,v,c);else{if(Yu(g,sc(u,m,v)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(Yu(g,h[$]),g.length===p)return g;v=m=y}}return Yu(g,sc(u,m)),g}]},!!Re(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ku);var lC=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},cC=function(e,t,n){var r=A.toDOMRange(e,t).getBoundingClientRect(),i=A.toDOMRange(e,n).getBoundingClientRect();return lC(r,i)&&lC(i,r)},fC=["span","b","strong","i","em","s","strike","u","font","sub","sup"],dC=[];function mG(e){dC.push(e)}var jy=[];function yG(e){jy.push(e)}var lh={};function bG(e){var t=e.selector,n=e.parseElemHtml;lh[t]=n}var $G=cr.f,wG=Ll.f,EG=nn.enforce,xG=at("match"),si=G.RegExp,Xu=si.prototype,SG=G.SyntaxError,DG=ie(pm),CG=ie(Xu.exec),ch=ie("".charAt),pC=ie("".replace),hC=ie("".indexOf),AG=ie("".slice),OG=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ga=/a/g,Ry=/a/g,BG=new si(ga)!==ga,gC=Vp.MISSED_STICKY,FG=Vp.UNSUPPORTED_Y,TG=zt&&(!BG||gC||km||Pm||Re(function(){return Ry[xG]=!1,si(ga)!=ga||si(Ry)==Ry||si(ga,"i")!="/a/i"}));if(zl("RegExp",TG)){for(var Hi=function(e,t){var n,r,i,o,a,u,s=ia(Xu,this),l=bm(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===Hi)return e;if((l||ia(Xu,e))&&(e=e.source,c&&(t="flags"in d?d.flags:DG(d))),e=e===void 0?"":Ke(e),t=t===void 0?"":Ke(t),d=e,km&&"dotAll"in ga&&(r=!!t&&hC(t,"s")>-1)&&(t=pC(t,/s/g,"")),n=t,gC&&"sticky"in ga&&(i=!!t&&hC(t,"y")>-1)&&FG&&(t=pC(t,/y/g,"")),Pm&&(o=function(p){for(var m,v=p.length,g=0,y="",h=[],$={},w=!1,x=!1,S=0,C="";g<=v;g++){if((m=ch(p,g))==="\\")m+=ch(p,++g);else if(m==="]")w=!1;else if(!w)switch(!0){case m==="[":w=!0;break;case m==="(":CG(OG,AG(p,g+1))&&(g+=2,x=!0),y+=m,S++;continue;case(m===">"&&x):if(C===""||$t($,C))throw new SG("Invalid capture group name");$[C]=!0,h[h.length]=[C,S],x=!1,C="";continue}x?C+=m:y+=m}return[y,h]}(e),e=o[0],f=o[1]),a=aD(si(e,t),s?this:Xu,Hi),(r||i||f.length)&&(u=EG(a),r&&(u.dotAll=!0,u.raw=Hi(function(p){for(var m,v=p.length,g=0,y="",h=!1;g<=v;g++)(m=ch(p,g))!=="\\"?h||m!=="."?(m==="["?h=!0:m==="]"&&(h=!1),y+=m):y+="[\\s\\S]":y+=m+ch(p,++g);return y}(e),n)),i&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{fr(a,"source",d===""?"(?:)":d)}catch(p){}return a},kG=function(e){e in Hi||$G(Hi,e,{configurable:!0,get:function(){return si[e]},set:function(t){si[e]=t}})},vC=wG(si),mC=0;vC.length>mC;)kG(vC[mC++]);Xu.constructor=Hi,Hi.prototype=Xu,dn(G,"RegExp",Hi)}hy("RegExp");var PG=new RegExp(String.fromCharCode(160),"g");function yC(e){return e.replace(PG," ")}function bC(e,t){var n=e.length;if(n){var r=e[n-1];if(J.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]==="text")return r.text=r.text+t,!0}}return!1}function _G(e,t,n){return{type:"paragraph",children:[{text:O(e).text().replace(/\s+/gm," ")}]}}function Ly(e,t){var n=function(o,a){var u=[];if(o.attr("data-w-e-is-void")!=null)return u;var s=o[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==Mi.ELEMENT_NODE){if(l.nodeType===Mi.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
  46. `)>=0)return;c&&(c=yC(c),bC(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(bC(u,`
  47. `)||u.push({text:`
  48. `}));var f=zy(O(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(e,t),r=function(o){for(var a in lh)if(o[0].matches(a))return lh[a];return _G}(e),i=r(e[0],n,t);return Array.isArray(i)||(i=[i]),i.forEach(function(o){E.isVoid(t,o)||(n.length===0&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),jy.forEach(function(a){o=a(e[0],o,t)}))}),i}function My(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
  49. `));var n=e[0].textContent||"";n=function(i){return i.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"\xAE").replace(/&copy;/g,"\xA9").replace(/&trade;/g,"\u2122")}(n);var r={text:n=yC(n)};return jy.forEach(function(i){r=i(e[0],r,t)}),r}function zy(e,t){dC.forEach(function(r){var i=r.selector,o=r.preParseHtml;e[0].matches(i)&&(e=O(o(e[0])))});var n=AD(e);return n==="span"?e.attr("data-w-e-type")?Ly(e,t):My(e,t):n==="code"?AD(e.parent())==="pre"?Ly(e,t):My(e,t):fC.includes(n)?My(e,t):Ly(e,t)}function $C(e,t,n){var r=O(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function wC(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(i){return"<p>"+i+"</p>"}).join(""));var r=O("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(i){var o=zy(O(i),e);Array.isArray(o)?o.forEach(function(a){return n.push(a)}):n.push(o)}),n}var NG=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function EC(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):_.insertNodes(e,t,{mode:"highest"})}var IG=function(e){var t=e,n=t.onChange,r=t.insertText,i=t.apply,o=t.deleteBackward;return t.insertText=function(a){t.getConfig().readOnly||r(a)},t.apply=function(a){var u,s,l,c,f,d,p,m,v=[];switch(a.type){case"insert_text":case"remove_text":case"set_node":try{for(var g=Gn(E.levels(t,{at:a.path})),y=g.next();!y.done;y=g.next()){var h=ke(y.value,2),$=h[0],w=h[1],x=A.findKey(t,$);v.push([w,x])}}catch(te){u={error:te}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(u)throw u.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var S=Gn(E.levels(t,{at:P.parent(a.path)})),C=S.next();!C.done;C=S.next()){var N=ke(C.value,2);$=N[0],w=N[1],x=A.findKey(t,$),v.push([w,x])}}catch(te){l={error:te}}finally{try{C&&!C.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}break;case"move_node":try{for(var R=Gn(E.levels(t,{at:P.common(P.parent(a.path),P.parent(a.newPath))})),U=R.next();!U.done;U=R.next()){var W=ke(U.value,2);$=W[0],w=W[1],x=A.findKey(t,$),v.push([w,x])}}catch(te){f={error:te}}finally{try{U&&!U.done&&(d=R.return)&&d.call(R)}finally{if(f)throw f.error}}}i(a);try{for(var Z=Gn(v),Q=Z.next();!Q.done;Q=Z.next()){var le=ke(Q.value,2);w=le[0],x=le[1],$=ke(E.node(t,w),1)[0],oh.set($,x)}}catch(te){p={error:te}}finally{try{Q&&!Q.done&&(m=Z.return)&&m.call(Z)}finally{if(p)throw p.error}}},t.deleteBackward=function(a){if(a!=="line")return o(a);if(e.selection&&j.isCollapsed(e.selection)){var u=E.above(e,{match:function(f){return E.isBlock(e,f)},at:e.selection});if(u){var s=ke(u,2)[1],l=E.range(e,s,e.selection.anchor),c=function(f,d){var p=E.range(f,j.end(d)),m=Array.from(E.positions(f,{at:d})),v=0,g=m.length,y=Math.floor(g/2);if(cC(f,E.range(f,m[v]),p))return E.range(f,m[v],p);if(m.length<2)return E.range(f,m[m.length-1],p);for(;y!==m.length&&y!==v;)cC(f,E.range(f,m[y]),p)?g=y:v=y,y=Math.floor((v+g)/2);return E.range(f,m[g],p)}(t,l);j.isCollapsed(c)||_.delete(e,{at:c})}}},t.onChange=function(){var a=t.selection;a!=null&&sy.set(t,a),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return uC(u,t)}).join("")},t.getText=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return q.string(u)}).join(`
  50. `)},t.getSelectionText=function(){var a=t.selection;return a==null?"":E.string(e,a)},t.getElemsByType=function(a,u){var s,l;u===void 0&&(u=!1);var c=[],f=E.nodes(t,{at:[],universal:!0});try{for(var d=Gn(f),p=d.next();!p.done;p=d.next()){var m=ke(p.value,1)[0];if(ne.isElement(m)&&(u?m.type.indexOf(a)>=0:m.type===a)){var v=sC(A.findKey(t,m).id);c.push(Wn(Wn({},m),{id:v}))}}}catch(g){s={error:g}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(s)throw s.error}}return c},t.getElemsByTypePrefix=function(a){return t.getElemsByType(a,!0)},t.isEmpty=function(){var a=t.children,u=a===void 0?[]:a;if(u.length>1)return!1;var s=u[0];if(s==null)return!0;if(ne.isElement(s)&&s.type==="paragraph"){var l=s.children,c=l===void 0?[]:l;if(c.length>1)return!1;var f=c[0];if(f==null||J.isText(f)&&f.text==="")return!0}return!1},t.clear=function(){_.removeNodes(t,{at:{anchor:E.start(t,[]),focus:E.end(t,[])},mode:"highest"}),t.children.length===0&&_.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(a){return A.getParentNode(t,a)},t.dangerouslyInsertHtml=function(a,u){if(a===void 0&&(a=""),u===void 0&&(u=!1),a){var s=document.createElement("div");s.innerHTML=a;var l=Array.from(s.childNodes);if(l=l.filter(function(p){var m=p.nodeType,v=p.nodeName;return m===Mi.TEXT_NODE||m===Mi.ELEMENT_NODE&&!NG.has(v.toLowerCase())}),l.length!==0){var c=t.selection;if(c!=null){var f=null;A.isSelectedEmptyParagraph(t)&&!u&&(f=[c.focus.path[0]]),s.setAttribute("hidden","true"),document.body.appendChild(s);var d=0;l.forEach(function(p){var m=p.nodeType,v=p.nodeName,g=p.textContent,y=g===void 0?"":g;if(m!==Mi.TEXT_NODE)if(v!=="BR"){var h=p,$=!1;if(fC.includes(v.toLowerCase()))$=!0;else for(var w in lh)if(h.matches(w)){$=!0;break}if($){var x=zy(O(h),t);return Array.isArray(x)?(x.forEach(function(C){return EC(t,C)}),d++):(EC(t,x),d++),void(A.isSelectedVoidNode(t)&&t.move(1))}var S=window.getComputedStyle(h).display;A.isSelectedEmptyParagraph(t)||S.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(h.innerHTML,!0)}else t.insertText(`
  51. `);else{if(!y||!y.trim())return;t.insertNode({text:y})}}),d&&f&&A.isEmptyPath(t,f)&&_.removeNodes(t,{at:f}),s.remove()}}}},t.setHtml=function(a){a===void 0&&(a="");var u=t.isDisabled(),s=t.isFocused(),l=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var c=wC(t,a);if(_.insertFragment(t,c),s||(t.deselect(),t.blur()),u&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(l))}catch(f){t.select(E.start(t,[]))}},t},jG=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var i=t.selection;if(i){var o=ke(j.edges(i),2),a=o[0],u=o[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!j.isCollapsed(i)||s){var c=A.toDOMRange(t,i),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(x){x.textContent&&x.textContent.trim()!==""&&(d=x)}),l){var p=ke(l,1)[0],m=c.cloneRange(),v=A.toDOMNode(t,p);m.setEndAfter(v),f=m.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(x){var S=x.getAttribute("data-slate-zero-width")==="n";x.textContent=S?`
  52. `:""}),SD(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var y=t.getFragment(),h=JSON.stringify(y),$=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",$),r.setData("application/x-slate-fragment",$);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",PW(w)),f.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var i,o,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);t.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Gn(f),m=p.next();!m.done;m=p.next()){var v=m.value;d&&_.splitNodes(t,{always:!0}),n(v),d=!0}}catch(g){i={error:g}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}}},t},lc=function(e){return e!=null},RG={object:!0,function:!0,undefined:!0},LG=function(e){if(!function(t){return!!lc(t)&&hasOwnProperty.call(RG,typeof t)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}},MG=/^\s*class[\s{/}]/,zG=Function.prototype.toString,xC=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch(n){return!1}return!LG(t)}(e)&&!MG.test(zG.call(e))},Hy=function(e){return e!=null},HG=Object.keys,UG=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return HG(Hy(e)?Object(e):e)},VG=function(e){if(!Hy(e))throw new TypeError("Cannot use null or undefined");return e},WG=Math.max,SC=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,i,o=WG(arguments.length,2);for(e=Object(VG(e)),i=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<o;++r)UG(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},GG=Array.prototype.forEach,qG=Object.create,KG=function(e,t){var n;for(n in e)t[n]=e[n]},DC=function(e){var t=qG(null);return GG.call(arguments,function(n){Hy(n)&&KG(Object(n),t)}),t},Uy="razdwatrzy",YG=String.prototype.indexOf,cc=typeof Uy.contains=="function"&&Uy.contains("dwa")===!0&&Uy.contains("foo")===!1?String.prototype.contains:function(e){return YG.call(this,e,arguments[1])>-1},fh=Fl(function(e){var t=e.exports=function(n,r){var i,o,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],lc(n)?(i=cc.call(n,"c"),o=cc.call(n,"e"),a=cc.call(n,"w")):(i=a=!0,o=!1),s={value:r,configurable:i,enumerable:o,writable:a},u?SC(DC(u),s):s};t.gs=function(n,r,i){var o,a,u,s;return typeof n!="string"?(u=i,i=r,r=n,n=null):u=arguments[3],lc(r)?xC(r)?lc(i)?xC(i)||(u=i,i=void 0):i=void 0:(u=r,r=i=void 0):r=void 0,lc(n)?(o=cc.call(n,"c"),a=cc.call(n,"e")):(o=!0,a=!1),s={get:r,set:i,configurable:o,enumerable:a},u?SC(DC(u),s):s}}),Vy=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},XG=Fl(function(e,t){var n,r,i,o,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,m=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var h;return Vy(y),m.call(this,"__ee__")?h=this.__ee__:(h=v.value=f(null),d(this,"__ee__",v),v.value=null),h[g]?typeof h[g]=="object"?h[g].push(y):h[g]=[h[g],y]:h[g]=y,this},r=function(g,y){var h,$;return Vy(y),$=this,n.call(this,g,h=function(){i.call($,g,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},i=function(g,y){var h,$,w,x;if(Vy(y),!m.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof($=h[g])=="object")for(x=0;w=$[x];++x)w!==y&&w.__eeOnceListener__!==y||($.length===2?h[g]=$[x?0:1]:$.splice(x,1));else $!==y&&$.__eeOnceListener__!==y||delete h[g];return this},o=function(g){var y,h,$,w,x;if(m.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,x=new Array(h-1),y=1;y<h;++y)x[y-1]=arguments[y];for(w=w.slice(),y=0;$=w[y];++y)l.call($,this,x)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,x=new Array(h-1),y=1;y<h;++y)x[y-1]=arguments[y];l.call(w,this,x)}},a={on:n,once:r,off:i,emit:o},u={on:fh(n),once:fh(r),off:fh(i),emit:fh(o)},s=p({},u),e.exports=t=function(g){return g==null?f(s):p(Object(g),u)},t.methods=a});function dh(e){var t=wD.get(e);return t==null&&(t=XG(),wD.set(e,t)),t}var ph=new WeakMap;function CC(e,t){var n=ph.get(e);n==null&&(n=new Set,ph.set(e,n)),n.add(t)}function JG(e){return ph.get(e)||new Set}function ZG(e){ph.set(e,new Set)}function Wy(e){var t=A.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function Gy(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=Wy(e);if(r==null)return t;var i=r.top,o=r.left,a=r.width,u=r.height,s=A.toDOMRange(e,n).getClientRects()[0];if(s==null)return t;s.width;var l=s.height,c={},f=s.top-i,d=s.left-o;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var m=u-f;c.bottom=m+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function qy(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var i=ne.isElement(t)&&e.isVoid(t),o=ne.isElement(t)&&e.isInline(t),a=ih.get(t);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(i){var d=function(C){var N=[];N.push(C);for(var R=0;N.length>0;){var U=N.pop();if(U==null||++R>1e4)break;var W=U.nodeName;if(U.nodeType===1){var Z=W.toLowerCase();if(TW.includes(Z)||Z==="iframe"||Z==="video")return U;var Q=U.children||[],le=Q.length;if(le)for(var te=le-1;te>=0;te--)N.push(Q[te])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var m=Wy(e);if(m==null)return r;var v=m.top,g=m.left,y=m.width,h=m.height,$={},w=s-v,x=l-g;if(n==="bar")return $.left=x+"px",w>40?$.bottom=h-w+5+"px":$.top=w+c+5+"px",$;if(n==="modal"){var S;return i?o?x>(y-f)/2?$.right=y-x+5+"px":$.left=x+f+5+"px":$.left="20px":$.left=x+"px",i?((S=w)<0&&(S=0),$.top=S+"px"):w>(h-c)/2?$.bottom=h-w+5+"px":((S=w+c)<0&&(S=0),$.top=S+5+"px"),$}throw new Error("type '"+n+"' is invalid")}function Ky(e,t){qn(function(){var n=Wy(e);if(n!=null){var r,i=n.top,o=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-i,m=c-o,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 h=t.css("bottom"),$=parseInt(h.toString())-Math.abs(l);t.css("bottom",$+"px")}if(v.indexOf("left")>=0&&(r=m+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(v.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}})}var QG=Up("slice"),eq=at("species"),Yy=G.Array,tq=Math.max;ut({target:"Array",proto:!0,forced:!QG},{slice:function(e,t){var n,r,i,o=Li(this),a=sa(o),u=Nu(e,a),s=Nu(t===void 0?a:t,a);if(_p(o)&&(n=o.constructor,(Np(n)&&(n===Yy||_p(n.prototype))||Je(n)&&(n=n[eq])===null)&&(n=void 0),n===Yy||n===void 0))return ID(o,u,s);for(r=new(n===void 0?Yy:n)(tq(s-u,0)),i=0;u<s;u++,i++)u in o&&Ul(r,i,o[u]);return r.length=i,r}});var nq=Rl.f,AC=ie("".startsWith),rq=ie("".slice),iq=Math.min,OC=wm("startsWith"),oq=!OC&&!!function(){var e=nq(String.prototype,"startsWith");return e&&!e.writable}();ut({target:"String",proto:!0,forced:!oq&&!OC},{startsWith:function(e){var t=Ke(Vn(this));$m(e);var n=Pu(iq(arguments.length>1?arguments[1]:void 0,t.length)),r=Ke(e);return AC?AC(t,r,n):rq(t,n,n+r.length)===r}});var Ju=Object.assign,BC=Object.defineProperty,aq=ie([].concat),FC=!Ju||Re(function(){if(zt&&Ju({b:1},Ju(BC({},"a",{enumerable:!0,get:function(){BC(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),Ju({},e)[n]!=7||Iu(Ju({},t)).join("")!=r})?function(e,t){for(var n=Ii(e),r=arguments.length,i=1,o=DS.f,a=bS.f;r>i;)for(var u,s=Pp(arguments[i++]),l=o?aq(Iu(s),o(s)):Iu(s),c=l.length,f=0;c>f;)u=l[f++],zt&&!Te(a,s,u)||(n[u]=s[u]);return n}:Ju;ut({target:"Object",stat:!0,forced:Object.assign!==FC},{assign:FC});var uq=["props","attrs","style","dataset","on","hook"];function TC(e){var t=e.data,n=t===void 0?{}:t,r=e.children,i=r===void 0?[]:r;Object.keys(n).forEach(function(o){var a,u,s=n[o];if(o!=="key"){if(!uq.includes(o)){if(o.startsWith("data-")){var l=o.slice(5);return l=jM(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(e,((a={})[l]=s,a)),void delete n[o]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(u={},u[o]=s,u)),delete n[o]}}else e.key=s}),i.length>0&&i.forEach(function(o){typeof o!="string"&&TC(o)})}var Xy=[];function sq(e){Xy.push(e)}var kC={};function lq(e){var t=e.type,n=e.renderElem;kC[t||""]=n}function cq(e,t,n){var r=n.isInline(e)?"span":"div";return fe(r,null,t)}function fq(e,t){var n,r=A.findKey(t,e),i=t.isInline(e),o=E.isVoid(t,e),a=sC(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":i},s=e.type,l=e.children,c=l===void 0?[]:l,f=function(h){return kC[h]||cq}(s);n=o?null:c.map(function(h,$){return Zy(h,$,e,t)});var d=f(e,n,t);if(o){u["data-slate-void"]=!0;var p=i?"span":"div",m=ke(q.texts(e),1),v=ke(m[0],1)[0],g=Zy(v,0,e,t),y=fe(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},g);d=fe(p,{style:{position:"relative"}},d,y),Jl.set(v,0),Hu.set(v,e)}return d.data==null&&(d.data={}),Object.assign(d.data,u),o||i||(d=function(h,$){var w=$;return Xy.forEach(function(x){w=x(h,$)}),w}(e,d)),qn(function(){var h=fy(a);h!=null&&(uy.set(r,h),ih.set(e,h),rh.set(h,e))}),d}function PC(e,t){return t===void 0&&(t=!1),fe("span",{"data-slate-string":!0},t?e+`
  53. `:e)}function Jy(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),fe("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?fe("br",null):null)}function dq(e,t,n){if(e.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=A.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw new Error("Can not get config.decorate");var o=A.findPath(n,e),a=i([e,o]),u=J.decorations(e,a),s=u.map(function(f,d){var p=function(m,v,g,y,h){v===void 0&&(v=!1);var $=m.text,w=A.findPath(h,g),x=P.parent(w);if(E.isEditor(y))throw new Error("Text node "+JSON.stringify(g)+" parent is Editor");return h.isVoid(y)?Jy(q.string(y).length):$!==""||y.children[y.children.length-1]!==g||h.isInline(y)||E.string(h,x)!==""?$===""?Jy():v&&$.slice(-1)===`
  54. `?PC($,!0):PC($):Jy(0,!0)}(f,d===u.length-1,e,t,n);return p=function(m,v){var g=v;return Xy.forEach(function(y){g=y(m,g)}),g}(f,p),fe("span",{"data-slate-leaf":!0},p)}),l=function(f){return"w-e-text-"+f}(r.id),c=fe("span",{"data-slate-node":"text",id:l,key:r.id},s);return qn(function(){var f=fy(l);f!=null&&(uy.set(r,f),ih.set(e,f),rh.set(f,e))}),c}function Zy(e,t,n,r){return Jl.set(e,t),Hu.set(e,n),ne.isElement(e)?fq(e,r):dq(e,n,r)}function pq(e,t){var n,r=e.$scroll,i=function(v){return"w-e-textarea-"+v}(e.id),o=t.getConfig(),a=o.readOnly,u=o.autoFocus,s=function(v,g){return g===void 0&&(g=!1),Cu("div#"+v,{props:{contentEditable:!g}})}(i,a),l=t.children||[];s.children=l.map(function(v,g){var y=Zy(v,g,t,t);return TC(y),y});var c=mD.get(e);if(c==null&&(c=!0),c){var f=function(v,g){return O(`<div
  55. id="`+v+`"
  56. data-slate-editor
  57. data-slate-node="value"
  58. suppressContentEditableWarning
  59. role="textarea"
  60. spellCheck="true"
  61. autoCorrect="true"
  62. autoCapitalize="true"
  63. ></div>`)}(i);r.append(f),e.$textArea=f,n=f[0],(p=CL([TL,IL,HL,kL,NL,FL]))(n,s),mD.set(e,!1),yD.set(e,p)}else{var d=bD.get(e),p=yD.get(e);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=fy(i))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var m=cy(n);m&&$D.set(t,m)}ay.set(t,n),ih.set(t,n),rh.set(n,t),bD.set(e,s)}}function _C(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function NC(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Qy(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return NC(n.overflowY,t)||NC(n.overflowX,t)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch(a){return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function hh(e,t,n,r,i,o,a,u){return o<e&&a>t||o>e&&a<t?0:o<=e&&u<=n||a>=t&&u>=n?o-e-r:a>t&&u<n||o<e&&u>n?a-t+i:0}function IC(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Ce){return Ce!==a};if(!_C(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;_C(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Qy(f)&&!Qy(document.documentElement)||f!=null&&Qy(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,h=g.width,$=g.top,w=g.right,x=g.bottom,S=g.left,C=i==="start"||i==="nearest"?$:i==="end"?x:$+y/2,N=o==="center"?S+h/2:o==="end"?w:S,R=[],U=0;U<c.length;U++){var W=c[U],Z=W.getBoundingClientRect(),Q=Z.height,le=Z.width,te=Z.top,ue=Z.right,he=Z.bottom,Ie=Z.left;if(r==="if-needed"&&$>=0&&S>=0&&x<=p&&w<=d&&$>=te&&x<=he&&S>=Ie&&w<=ue)return R;var ye=getComputedStyle(W),oe=parseInt(ye.borderLeftWidth,10),Le=parseInt(ye.borderTopWidth,10),T=parseInt(ye.borderRightWidth,10),F=parseInt(ye.borderBottomWidth,10),k=0,I=0,V="offsetWidth"in W?W.offsetWidth-W.clientWidth-oe-T:0,L="offsetHeight"in W?W.offsetHeight-W.clientHeight-Le-F:0;if(l===W)k=i==="start"?C:i==="end"?C-p:i==="nearest"?hh(v,v+p,p,Le,F,v+C,v+C+y,y):C-p/2,I=o==="start"?N:o==="center"?N-d/2:o==="end"?N-d:hh(m,m+d,d,oe,T,m+N,m+N+h,h),k=Math.max(0,k+v),I=Math.max(0,I+m);else{k=i==="start"?C-te-Le:i==="end"?C-he+F+L:i==="nearest"?hh(te,he,Q,Le,F+L,C,C+y,y):C-(te+Q/2)+L/2,I=o==="start"?N-Ie-oe:o==="center"?N-(Ie+le/2)+V/2:o==="end"?N-ue+T+V:hh(Ie,ue,le,oe,T+V,N,N+h,h);var ee=W.scrollLeft,pe=W.scrollTop;C+=pe-(k=Math.max(0,Math.min(pe+k,W.scrollHeight-Q+L))),N+=ee-(I=Math.max(0,Math.min(ee+I,W.scrollWidth-le+V)))}R.push({el:W,top:k,left:I})}return R}function jC(e){return e===Object(e)&&Object.keys(e).length!==0}function hq(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(jC(t)&&typeof t.behavior=="function")return t.behavior(n?[]:IC(e,t));if(!n){var r=function(i){return i===!1?{block:"end",inline:"nearest"}:jC(i)?i:{block:"start",inline:"nearest"}}(t);return function(i,o){o===void 0&&(o="auto");var a="scrollBehavior"in document.body.style;i.forEach(function(u){var s=u.el,l=u.top,c=u.left;s.scroll&&a?s.scroll({top:l,left:c,behavior:o}):(s.scrollTop=l,s.scrollLeft=c)})}(IC(e,r),r.behavior)}}function Kn(e,t){return da(t)&&A.hasDOMNode(e,t,{editable:!0})}function RC(e,t){if(e.getConfig().readOnly)return!1;var n=Zu(e,t)&&A.toSlateNode(e,t);return E.isVoid(e,n)}function Zu(e,t){return da(t)&&A.hasDOMNode(e,t)}function LC(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),o=A.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a=o.type!=="None";if(r||a){var u=ay.get(t),s=!1;if(u.contains(o.anchorNode)&&u.contains(o.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(l&&j.equals(l,r)){var c=!0;if(j.isCollapsed(r)){var f=o.anchorNode,d=o.anchorOffset;if(f===u){var p=u.childNodes,m=void 0;(m=p[d])&&m.matches("table")&&(c=!1),(m=p[d-1])&&m.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&A.toDOMRange(t,r);if(v){j.isBackward(r)?o.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):o.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;hq(g,{scrollMode:"if-needed",boundary:i.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else o.removeAllRanges();setTimeout(function(){v&&Zl&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=A.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})}}}var e2=new WeakMap,MC=new WeakMap,gq={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"},vq={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"},mq={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},nt=function(e){var t=gq[e],n=vq[e],r=mq[e],i=t&&D1(t),o=n&&D1(n),a=r&&D1(r);return function(u){return!(!i||!i(u))||!!(dy&&o&&o(u))||!(dy||!a||!a(u))}},st={isBold:nt("bold"),isCompose:nt("compose"),isMoveBackward:nt("moveBackward"),isMoveForward:nt("moveForward"),isDeleteBackward:nt("deleteBackward"),isDeleteForward:nt("deleteForward"),isDeleteLineBackward:nt("deleteLineBackward"),isDeleteLineForward:nt("deleteLineForward"),isDeleteWordBackward:nt("deleteWordBackward"),isDeleteWordForward:nt("deleteWordForward"),isExtendBackward:nt("extendBackward"),isExtendForward:nt("extendForward"),isExtendLineBackward:nt("extendLineBackward"),isExtendLineForward:nt("extendLineForward"),isItalic:nt("italic"),isMoveLineBackward:nt("moveLineBackward"),isMoveLineForward:nt("moveLineForward"),isMoveWordBackward:nt("moveWordBackward"),isMoveWordForward:nt("moveWordForward"),isRedo:nt("redo"),isSplitBlock:nt("splitBlock"),isTransposeCharacter:nt("transposeCharacter"),isUndo:nt("undo"),isTab:nt("tab"),isSelectAll:nt("selectAll")};function Ot(e){e.preventDefault()}var yq={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(ec&&!i&&Kn(n,r.target)){var o=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=ke(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});o&&j.equals(o,l)||_.select(n,l)}}if(o&&j.isExpanded(o)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!ly.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,o=t.latestElement;if(!n.getConfig().readOnly&&!i&&Kn(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||pr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&da(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ne.isElement(s)&&!n.isVoid(s))return}if(Ql){var l=a.getSelection();l==null||l.removeAllRanges()}fa.delete(n)}}}},focus:function(e,t,n){var r=A.toDOMNode(n,n),i=A.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,Zl&&e.target!==r?r.focus():fa.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Zu(n,e.target)&&da(e.target)){var r=A.toSlateNode(n,e.target),i=A.findPath(n,r);if(E.hasPath(n,i)&&q.get(n,i)===r){var o=E.start(n,i),a=E.end(n,i),u=E.void(n,{at:o}),s=E.void(n,{at:a});if(u&&s&&P.equals(u[1],s[1])){var l=E.range(n,o);_.select(n,l)}}}},compositionstart:function(e,t,n){if(Kn(n,e.target)){var r=n.selection;if(r&&j.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){LC(t,n,!0)})),r&&j.isCollapsed(r)){var i=A.toDOMRange(n,r).startContainer,o=i.textContent||"";e2.set(n,o),MC.set(n,i)}t.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(Kn(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(py||Zl)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var o=j.isBackward(i)?i.focus:i.anchor,a=ke(E.node(n,[o.path[0]]),1)[0],u=0;u<o.path.length;u++){var s=ke(E.node(n,o.path.slice(0,u+1)),1)[0];if(ne.isElement(s)&&((Ql||Zl)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,i).startContainer.textContent=e2.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),t.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Ql||setTimeout(function(){var f=n.selection;if(f!=null){var d=MC.get(n);d!=null&&A.toDOMRange(n,f).startContainer!==d&&(d.textContent=e2.get(n)||"")}})}}}},compositionupdate:function(e,t,n){Kn(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Kn(n,r.target)){if(function(a,u){var s=eh.get(a),l=s&&s.getMenus(),c=th.get(a),f=c&&c.getMenus(),d=Wn(Wn({},l),f);for(var p in d){var m=d[p],v=m.hotkey;if(v&&UM(v,u)&&!m.isDisabled(a)){var g=m.getValue(a);m.exec(a,g)}}}(n,r),st.isTab(r))return Ot(r),void n.handleTab();if(st.isRedo(r))return Ot(r),void(typeof n.redo=="function"&&n.redo());if(st.isUndo(r))return Ot(r),void(typeof n.undo=="function"&&n.undo());if(st.isMoveLineBackward(r))return Ot(r),void _.move(n,{unit:"line",reverse:!0});if(st.isMoveLineForward(r))return Ot(r),void _.move(n,{unit:"line"});if(st.isExtendLineBackward(r))return Ot(r),void _.move(n,{unit:"line",edge:"focus",reverse:!0});if(st.isExtendLineForward(r))return Ot(r),void _.move(n,{unit:"line",edge:"focus"});if(st.isMoveBackward(r))return Ot(r),void(i&&j.isCollapsed(i)?_.move(n,{reverse:!0}):_.collapse(n,{edge:"start"}));if(st.isMoveForward(r))return Ot(r),void(i&&j.isCollapsed(i)?_.move(n):_.collapse(n,{edge:"end"}));if(st.isMoveWordBackward(r))return Ot(r),i&&j.isExpanded(i)&&_.collapse(n,{edge:"focus"}),void _.move(n,{unit:"word",reverse:!0});if(st.isMoveWordForward(r))return Ot(r),i&&j.isExpanded(i)&&_.collapse(n,{edge:"focus"}),void _.move(n,{unit:"word"});if(st.isSelectAll(r))return Ot(r),void n.selectAll();if(ec){if((py||Ql)&&i&&(st.isDeleteBackward(r)||st.isDeleteForward(r))&&j.isCollapsed(i)){var o=q.parent(n,i.anchor.path);if(ne.isElement(o)&&E.isVoid(n,o)&&E.isInline(n,o))return r.preventDefault(),void _.delete(n,{unit:"block"})}}else{if(st.isBold(r)||st.isItalic(r)||st.isTransposeCharacter(r))return void Ot(r);if(st.isSplitBlock(r))return Ot(r),void E.insertBreak(n);if(st.isDeleteBackward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(st.isDeleteForward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(st.isDeleteLineBackward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(st.isDeleteLineForward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(st.isDeleteWordBackward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(st.isDeleteWordForward(r))return Ot(r),void(i&&j.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!ec&&!n.getConfig().readOnly&&Kn(n,e.target)){e.preventDefault();var r=e.key;E.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Kn(n,r.target)){r.preventDefault();var i=r.clipboardData;i!=null&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&Kn(n,r.target)){r.preventDefault();var o=r.clipboardData;if(o!=null&&(n.setFragmentData(o),i))if(j.isExpanded(i))E.deleteFragment(n);else{var a=q.parent(n,i.anchor.path);E.isVoid(n,a)&&_.delete(n)}}},paste:function(e,t,n){ly.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Kn(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void ly.set(n,!1);if(!ec||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var o=r.clipboardData;o!=null&&n.insertData(o)}}},dragover:function(e,t,n){if(Zu(n,e.target)){var r=A.toSlateNode(n,e.target);E.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Zu(n,r.target)&&!n.getConfig().readOnly){var i=A.toSlateNode(n,r.target),o=A.findPath(n,i);if(E.isVoid(n,i)||E.void(n,{at:o,voids:!0})){var a=E.range(n,o);_.select(n,a)}var u=r.dataTransfer;u!=null&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Zu(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Zu(n,r.target)&&i!=null&&!(ec&&Ql&&i.files.length>0)){r.preventDefault();var o=n.selection,a=A.findEventRange(n,r);_.select(n,a),t.isDraggingInternally&&(o&&_.delete(n,{at:o}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},bq=1,$q=function(){function e(t){var n=this;this.id=bq++,this.$textArea=null,this.$progressBar=O('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=O('<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=Yo(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=A.findDocumentOrShadowRoot(s),p=d.activeElement,m=A.toDOMNode(s,s),v=d.getSelection();if(p===m?(u.latestElement=p,fa.set(s,!0)):fa.delete(s),!v)return _.deselect(s);var g=v.anchorNode,y=v.focusNode,h=Kn(s,g)||RC(s,g),$=Kn(s,y)||RC(s,y);if(h&&$){var w=A.toSlateRange(s,v,{exactMatch:!1,suppressThrow:!1});_.select(s,w)}else _.deselect(s)}})(n,a)},100);var r=O(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var i=O('<div class="w-e-text-container"></div>');i.append(this.$progressBar),i.append(this.$maxLengthInfo),r.append(i);var o=O('<div class="w-e-scroll"></div>');i.append(o),this.$scroll=o,this.$textAreaContainer=i,qn(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),i.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=ty.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,i=this.editorInstance;n!=null&&(p1(yq,function(o,a){n.on(a,function(u){o(u,t,i)})}),i.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Yo(function(){i.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),i=r.onBlur,o=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return o&&o(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return i&&i(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;pq(this,n),function(r,i){var o,a=i.getConfig().placeholder;if(a){var u=i.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=O('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((o=r.$placeholder)===null||o===void 0||o.hide(),r.showPlaceholder=!1)}}(this,n),qn(function(){LC(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();zm("match",function(e,t,n){return[function(r){var i=Vn(this),o=r==null?void 0:oa(r,e);return o?Te(o,r,i):new RegExp(r)[e](Ke(i))},function(r){var i=wt(this),o=Ke(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return Gl(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=Gl(i,o))!==null;){var f=Ke(s[0]);l[c]=f,f===""&&(i.lastIndex=Hm(o,Pu(i.lastIndex),u)),c++}return c===0?null:l}]});function t2(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&&t2(t)}function n2(){return O('<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 zC(){return O('<div class="w-e-bar-divider"></div>')}function HC(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var o=dy?"cmd":"ctrl";r=r.replace("mod",o)}if(i)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+`
  64. `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var r2=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=O('<div class="w-e-bar-item"></div>'),this.$button=O('<button type="button"></button>'),this.disabled=!1,this.menu=n;var o=n.tag,a=n.width;if(o!=="button")throw new Error("Invalid tag '"+o+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=O(f);t2(p),d.append(p)}else d.text(u);HC(d,f,u,l,r),r&&f&&d.append(O('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",t),this.$elem.append(d),qn(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),An(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=An(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=An(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=An(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var i="disabled";r?n.addClass(i):n.removeClass(i),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),wq=function(e){function t(n,r,i){return i===void 0&&(i=!1),e.call(this,n,r,i)||this}return Mu(t,e),t.prototype.onButtonClick=function(){},t}(r2),i2=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=oy.get(t);n==null&&(n=new Set,oy.set(t,n)),n.add(this),nh.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=nh.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=nh.get(this);t&&t.emit("modalOrPanelHide")}},e}(),Eq=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=O('<div class="w-e-drop-panel"></div>'),r}return Mu(t,e),t.prototype.genSelfElem=function(){return null},t}(i2),xq=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;if(o.dropPanel=null,o.menu=r,r.showDropPanel){var a=n2();o.$button.append(a)}return o}return Mu(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=An(this);if(this.dropPanel==null){var i=new Eq(r),o=n.getPanelContentElem(r);i.renderContent(o),i.appendTo(this.$elem),i.show(),this.dropPanel=i}else{var a=this.dropPanel;a.isShow?a.hide():(o=n.getPanelContentElem(r),a.renderContent(o),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},t}(r2),Sq=function(e){function t(n,r){r===void 0&&(r=0);var i=e.call(this,n)||this;i.type="modal",i.$elem=O('<div class="w-e-modal"></div>'),i.width=0,r&&(i.width=r);var o=i.$elem;return o.on("click",function(a){return a.stopPropagation()}),o.on("keyup",function(a){a.code==="Escape"&&(i.hide(),n.restoreSelection())}),i}return Mu(t,e),t.prototype.genSelfElem=function(){var n=this,r=O('<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>'),i=nh.get(this);return r.on("click",function(){n.hide(),i==null||i.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,i=this.$elem;i.attr("style",""),r&&i.css("width",r+"px"),i.css(n)},t}(i2);function Cn(e,t,n){var r=O('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=O('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(i),[r[0],i[0]]}function che(e,t,n){var r=O('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=O('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(i),[r[0],i[0]]}function Qu(e,t){var n=O('<div class="button-container"></div>'),r=O('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var Dq=function(e){function t(n,r,i){i===void 0&&(i=!1);var o=e.call(this,n,r,i)||this;return o.$body=O("body"),o.modal=null,o.menu=r,o}return Mu(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=An(this),r=this.menu.getModalPositionNode(n);return ne.isElement(r)?qy(n,r,"modal"):Gy(n)},t.prototype.handleModal=function(){var n=An(this),r=this.menu;if(this.modal==null){var i=new Sq(n,r.modalWidth);this.renderAndShowModal(i,!0),this.modal=i}else(i=this.modal).isShow?i.hide():this.renderAndShowModal(i,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var i=An(this),o=this.menu;if(o.getModalContentElem!=null){var a=A.getTextarea(i),u=A.getToolbar(i),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=o.getModalContentElem(i);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||Ky(i,n.$elem),setTimeout(function(){i.blur()})}},t}(r2),Cq=function(e){function t(n,r){var i=e.call(this,n)||this;return i.type="selectList",i.$elem=O('<div class="w-e-select-list"></div>'),r&&i.$elem.css("width",r+"px"),i.$elem.on("click",function(o){o.stopPropagation()}),i}return Mu(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var i=O("<ul></ul>");n.forEach(function(o){var a=o.value,u=o.text,s=o.selected,l=o.styleForRenderMenuList,c=O('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=O('<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>');c.append(f),c.addClass("selected")}c.append(O('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),i.append(c)}),r.append(i)},t.prototype.genSelfElem=function(){return null},t}(i2),Aq=function(){function e(t,n,r){var i=this;r===void 0&&(r=!1),this.$elem=O('<div class="w-e-bar-item"></div>'),this.$button=O('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(o!=="select")throw new Error("Invalid tag '"+o+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",t),HC(d,l,a,f,r),this.$elem.append(d),this.menu=n,qn(function(){return i.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),An(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=An(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new Cq(n,r.selectPanelWidth);var i=this.selectList,o=r.getOptions(n);i.renderList(o),i.appendTo(this.$elem),i.show(),i.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=O(u).attr("data-value");t.onChange(s)}})}else(i=this.selectList).isShow?i.hide():(o=r.getOptions(n),i.renderList(o),i.show())}},e.prototype.onChange=function(t){var n=An(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=An(this),n=this.menu,r=n.getValue(t),i=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(n.getOptions(t),r.toString()),o=this.$button,a=n2();o.empty(),o.text(i),o.append(a)},e.prototype.setDisabled=function(){var t=An(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var i="disabled";n?r.addClass(i):r.removeClass(i),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),UC=function(){function e(t){this.$elem=O('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=O('<div class="w-e-bar-item-menus-container"></div>'),this.$button=O('<button type="button"></button>');var n=t.key,r=t.iconSvg,i=t.title,o=this.$elem,a=this.$button;if(r){var u=O(r);t2(u),a.append(u)}else a.text(i);a.attr("data-menu-key",n);var s=n2();a.append(s),o.append(a);var l=this.$container;o.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,i=new MutationObserver(function(){var o=n.find("button"),a=o.length;if(a!==0){var u=0;o.each(function(s){O(s).hasClass("disabled")&&u++}),i.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(i)}});return i},e}(),VC=new WeakMap;function An(e){var t=iy.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function WC(e,t,n){n===void 0&&(n=!1);var r=VC.get(t);if(r)return r;var i=t.tag;if(i==="button"){var o=t.showDropPanel,a=t.showModal;r=o?new xq(e,t,n):a?new Dq(e,t,n):new wq(e,t,n)}if(i==="select"&&(r=new Aq(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return VC.set(t,r),r}function Oq(e,t){var n=e.selection;return n!=null&&!j.isCollapsed(n)&&!A.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var i=r.type;return!!["pre","code","table"].includes(i)||void 0})&&!!J.isText(t)}var Bq=function(){function e(){var t=this;this.$elem=O('<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=hx(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},i=r.node,o=i===void 0?null:i,a=r.menuKeys,u=a===void 0?[]:a;o!=null&&t.changeItemsState(),!(o&&ne.isElement(o)&&n&&t.isSamePath(o,t.prevSelectedNode))&&(t.hideAndClean(),o!=null&&(t.registerItems(u),t.setPosition(o),t.show()),t.prevSelectedNode=o)},200),qn(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(o){return o.preventDefault()}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var i=t.hideAndClean.bind(t);n.on("scroll",i),n.on("fullScreen",i),n.on("unFullScreen",i)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.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 t=this;qn(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(i){if(i!=="|")n.registerSingleItem(i);else{var o=zC();r.append(o)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,i=r[t];if(i==null){var o=tc[t];if(o==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof o!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");i=o(),r[t]=i}var a=WC(t,i);this.hoverbarItems.push(a),iy.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ne.isElement(t)){var i=qy(n,t,"bar");return r.css(i),void Ky(n,r)}if(J.isText(t))return i=Gy(n),r.css(i),void Ky(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,i=[],o=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(v,g){return A.checkNodeType(g,u)},p=ke(E.nodes(t,{match:function(v){return d(t,v)},universal:!0}),1),m=p[0];if(m!=null)return r=m[0],i=f,"break"};for(var a in n)if(o(a)==="break")break;return r==null||i.length===0?null:{node:r,menuKeys:i}},e.prototype.getEditorInstance=function(){var t=ry.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=Oq),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=A.findPath(null,t),i=A.findPath(null,n);return P.equals(r,i)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function GC(e,t,n,r){if(Jl.set(e,t),Hu.set(e,n),ne.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach(function(u,s){return GC(u,s,e,r)}),E.isVoid(r,e)){var o=ke(q.texts(e),1),a=ke(o[0],1)[0];Jl.set(a,0),Hu.set(a,e)}}}function Fq(e){var t=e.selector,n=t===void 0?"":t,r=e.config,i=r===void 0?{}:r,o=e.content,a=e.html,u=e.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:$}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:x}=w;if(x.length>0){var S=x[x.length-1];ju.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of S)h.apply(C)})}),w.redos.pop(),w.undos.push(S)}},h.undo=()=>{var{history:w}=h,{undos:x}=w;if(x.length>0){var S=x[x.length-1];ju.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=S.map(Ci.inverse).reverse();for(var N of C)h.apply(N)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:x,history:S}=h,{undos:C}=S,N=C[C.length-1],R=N&&N[N.length-1],U=ZU(w,R),W=ju.isSaving(h),Z=ju.isMerging(h);if(W==null&&(W=JU(w)),W){if(Z==null&&(Z=N!=null&&(x.length!==0||XU(w,R)||U)),N&&Z)U&&N.pop(),N.push(w);else{var Q=[w];C.push(Q)}for(;C.length>100;)C.shift();QU(w)&&(S.redos=[])}$(w)},h})(function(y){var h=y,$=h.insertText,w=h.insertNode,x=h.insertFragment;return h.insertText=function(S){if(h.getConfig().maxLength){var C=A.getLeftLengthOfMaxLength(h);C<=0||(C<S.length?$(S.slice(0,C)):$(S))}else $(S)},h.insertNode=function(S){if(h.getConfig().maxLength){var C=A.getLeftLengthOfMaxLength(h);C<=0||C<q.string(S).length||w(S)}else w(S)},h.insertFragment=function(S){h.getConfig().maxLength?S.forEach(function(C){h.insertNode(C)}):x(S)},h}(function(y){var h=y;return h.on=function($,w){var x=dh(h);if(x.on($,w),$==="destroyed"&&CC(h,w),$!=="destroyed"){var S=function(){return x.off($,w)};x.on("destroyed",S),CC(h,S)}},h.once=function($,w){dh(h).once($,w)},h.off=function($,w){dh(h).off($,w)},h.emit=function($){for(var w=[],x=1;x<arguments.length;x++)w[x-1]=arguments[x];var S=dh(h);S.emit.apply(S,Km([$],ke(w))),$==="destroyed"&&(JG(h).forEach(function(C){return S.off("destroyed",C)}),ZG(h))},h}(function(y){var h=y;return h.select=function($){_.select(h,$)},h.deselect=function(){var $=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),$&&_.deselect(y)},h.move=function($,w){w===void 0&&(w=!1),$&&($<0||_.move(y,{distance:$,unit:"character",reverse:w}))},h.moveReverse=function($){h.move($,!0)},h.restoreSelection=function(){var $=sy.get(h);$!=null&&(h.focus(),_.select(h,$))},h.getSelectionPosition=function(){return Gy(h)},h.getNodePosition=function($){return qy(h,$)},h.isSelectedAll=function(){var $=h.selection;if($==null)return!1;var w=ke(j.edges($),2),x=w[0],S=w[1],C=ke(E.edges(h,[]),2),N=C[0],R=C[1];return!(!$e.equals(x,N)||!$e.equals(S,R))},h.selectAll=function(){var $=E.start(h,[]),w=E.end(h,[]);_.select(h,{anchor:$,focus:w})},h}(IG(function(y){var h=y;return h.getAllMenuKeys=function(){var $=[];for(var w in tc)$.push(w);return $},h.getConfig=function(){var $=vD.get(h);if($==null)throw new Error("Can not get editor config");return $},h.getMenuConfig=function($){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[$]||{}},h.alert=function($,w){w===void 0&&(w="info");var x=h.getConfig().customAlert;x&&x($,w)},h}(function(y){var h=y;return h.id="wangEditor-"+IW++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function($){if(A.toDOMNode(h,h).focus({preventScroll:!0}),fa.set(h,!0),$){var w=E.end(h,[]);_.select(h,w)}else{var x=sy.get(h);x?_.select(h,x):_.select(h,E.start(h,[]))}},h.isFocused=function(){return!!fa.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),_.deselect(h),fa.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var $=A.getToolbar(h);$&&$.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var $=A.getTextarea(h);$.destroy(),ey.delete(h),ty.delete($);var w=A.getToolbar(h);w&&(w.destroy(),eh.delete(h),ny.delete(w));var x=A.getHoverbar(h);x&&(x.destroy(),th.delete(h),ry.delete(x)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function($){if(!h.getConfig().scroll){var w="\u7F16\u8F91\u5668\u7981\u7528\u4E86 scroll \uFF0C\u7F16\u8F91\u5668\u5185\u5BB9\u65E0\u6CD5\u6EDA\u52A8\uFF0C\u8BF7\u81EA\u884C\u5B9E\u73B0\u8BE5\u529F\u80FD";return w+=`
  65. You has disabled editor scroll, please do this yourself`,void console.warn(w)}var x=O("#"+$);if(x.length!==0){var S=x[0];if(!A.hasDOMNode(h,S))return w="Element (found by id is '"+$+"') is not in editor DOM",w+=`
  66. \u901A\u8FC7 id '`+$+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(w,S);var C=A.getTextarea(h),N=C.$textAreaContainer,R=C.$scroll,U=x.offset().top,W=N.offset().top;R[0].scrollBy({top:U-W,behavior:"smooth"})}},h.showProgressBar=function($){$<1||A.getTextarea(h).changeProgress($)},h.hidePanelOrModal=function(){var $=oy.get(h);$!=null&&$.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function($){return A.toDOMNode(h,$)},h.fullScreen=function(){if(!h.isFullScreen){var $=null,w=A.getToolbar(h);w&&($=w.$box);var x=A.getTextarea(h).$box.parent();if($&&$.parent()[0]!==x[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
  67. \u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4`);x.addClass("w-e-full-screen-container");var S=x.css("z-index");x.attr("data-z-index",S.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var $=A.getTextarea(h).$box.parent();setTimeout(function(){$.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}(jG(gI()))))))));if(n&&function(y,h){return $C(y,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var h=gx(OD),$={},w=y.MENU_CONF,x=w===void 0?{}:w;return p1(h,function(S,C){$[C]=Wn(Wn({},S),x[C]||{})}),delete y.MENU_CONF,Wn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:$,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`:
  68. `+S)}},y)}(i);vD.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=wC(l,a)),o&&o.length&&(l.children=o),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var p=new $q(n);ey.set(l,p),ty.set(p,l),p.changeViewState(),qn(function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`\u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38
  69. Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var m=void 0;Object.keys(d).length>0&&(m=new Bq,ry.set(m,l),th.set(l,m)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return GC(y,h,l,l)});var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",function(){return v(l)}),g&&l.on("destroyed",function(){return g(l)}),qn(function(){return l.emit("created")}),l}var Tq=Up("splice"),kq=G.TypeError,Pq=Math.max,_q=Math.min;ut({target:"Array",proto:!0,forced:!Tq},{splice:function(e,t){var n,r,i,o,a,u,s=Ii(this),l=sa(s),c=Nu(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=_q(Pq(Il(t),0),l-c)),l+n-r>9007199254740991)throw kq("Maximum allowed length exceeded");for(i=pS(s,r),o=0;o<r;o++)(a=c+o)in s&&Ul(i,o,s[a]);if(i.length=r,n<r){for(o=c;o<l-r;o++)u=o+n,(a=o+r)in s?s[u]=s[a]:delete s[u];for(o=l;o>l-r+n;o--)delete s[o-1]}else if(n>r)for(o=l-r;o>c;o--)u=o+n-1,(a=o+r-1)in s?s[u]=s[a]:delete s[u];for(o=0;o<n;o++)s[o+c]=arguments[o+2];return s.length=l-r+n,i}});var Nq=function(){function e(t,n){var r=this;this.$toolbar=O('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=hx(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var i=O(t);if(i.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=i;var o=this.$toolbar;o.on("mousedown",function(a){return a.preventDefault()}),i.append(o),qn(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,i=this.config,o=i.toolbarKeys,a=o===void 0?[]:o,u=i.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=i.excludeKeys,c=l===void 0?[]:l,f=gx(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(m,v){f.splice(s.index+v,0,m)}));var d=f.filter(function(m){if(typeof m=="string"){if(c.includes(m))return!1}else if(c.includes(m.key))return!1;return!0}),p=d.length;d.forEach(function(m,v){if(m==="|"){if(v===0||v+1===p||n==="|")return;var g=zC();return r.append(g),void(n=m)}if(typeof m=="string")return t.registerSingleItem(m,t),void(n=m);t.registerGroup(m),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,i=function(l){return new UC(l)}(t),o=t.menuKeys,a=o===void 0?[]:o,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,i)}),r.append(i.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),i=n instanceof UC,o=this.menus,a=o[t];if(a==null){var u=tc[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),o[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
  70. \u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+t+"'");var s=WC(t,a,i);this.toolbarItems.push(s),iy.set(s,r),i?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=ny.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();function Iq(e,t){if(e==null)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,i=r===void 0?{}:r;if(function(u,s){return $C(u,"data-w-e-toolbar",s)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=Wn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}),a=new Nq(n,o);return ny.set(a,e),eh.set(e,a),a}var jq=ku.EXISTS,Rq=cr.f,qC=Function.prototype,Lq=ie(qC.toString),KC=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Mq=ie(KC.exec);function YC(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,i=r===void 0?"":r,o=e.maxFileSize,a=o===void 0?10485760:o,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,m=p===void 0?{}:p,v=e.withCredentials,g=v!==void 0&&v,y=e.timeout,h=y===void 0?1e4:y,$=e.onBeforeUpload,w=$===void 0?function(Q){return Q}:$,x=e.onSuccess,S=x===void 0?function(Q,le){}:x,C=e.onError,N=C===void 0?function(Q,le,te){console.error(Q.name+" upload error",le,te)}:C,R=e.onProgress,U=R===void 0?function(Q){}:R;if(!n)throw new Error(`Cannot get upload server address
  71. \u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!i)throw new Error(`Cannot get fieldName
  72. \u6CA1\u6709\u914D\u7F6E fieldName`);var W=n;d&&(W=function(Q,le){var te=ke(Q.split("#"),2),ue=te[0],he=te[1],Ie=[];p1(le,function(oe,Le){Ie.push(Le+"="+oe)});var ye=Ie.join("&");return ue=ue.indexOf("?")>0?ue+"&"+ye:ue+"?"+ye,he?ue+"#"+he:ue}(W,c));var Z=new Sl({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(GH,{endpoint:W,headers:m,formData:!0,fieldName:i,bundle:!0,withCredentials:g,timeout:h});return Z.on("upload-success",function(Q,le){var te=le.body,ue=te===void 0?{}:te;try{S(Q,ue)}catch(he){console.error("wangEditor upload file - onSuccess error",he)}Z.removeFile(Q.id)}),Z.on("progress",function(Q){Q<1||U(Q)}),Z.on("upload-error",function(Q,le,te){try{N(Q,le,te)}catch(ue){console.error("wangEditor upload file - onError error",ue)}Z.removeFile(Q.id)}),Z.on("restriction-failed",function(Q,le){try{N(Q,le)}catch(te){console.error("wangEditor upload file - onError error",te)}Z.removeFile(Q.id)}),Z}function Ui(e){return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(e)}function zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),r.forEach(function(i){zq(e,i,n[i])})}return e}function li(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XC(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 ci(e,t,n){return t&&XC(e.prototype,t),n&&XC(e,n),e}function va(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fc(e,t){if(t&&(Ui(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return va(e)}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},es(e)}function o2(e,t){return o2=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},o2(e,t)}function gh(e,t){if(typeof t!="function"&&t!==null)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&&o2(e,t)}zt&&!jq&&Rq(qC,"name",{configurable:!0,get:function(){try{return Mq(KC,Lq(this))[1]}catch(e){return""}}});var Hq={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},fi=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};li(this,e),this.init(t,n)}return ci(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Hq,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,Bt({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Vi=function(){function e(){li(this,e),this.observers={}}return ci(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(i){r.observers[i]=r.observers[i]||[],r.observers[i].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.observers[t]){var o=[].concat(this.observers[t]);o.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[t].concat(r))})}}}]),e}();function dc(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function JC(e){return e==null?"":""+e}function Uq(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function a2(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function ZC(e,t,n){var r=a2(e,t,Object);r.obj[r.k]=n}function vh(e,t){var n=a2(e,t),r=n.obj,i=n.k;if(r)return r[i]}function QC(e,t,n){var r=vh(e,n);return r!==void 0?r:vh(t,n)}function eA(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):eA(e[r],t[r],n):e[r]=t[r]);return e}function ts(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Vq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Wq(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Vq[t]}):e}var mh=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function tA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,u=r.slice(o,o+a).join(n),s=i[u];s===void 0&&r.length>o+a;)a++,s=i[u=r.slice(o,o+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(o+a).join(n);return l?tA(s,l,n):void 0}i=i[r[o]]}return i}}var Gq=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return li(this,t),r=fc(this,es(t).call(this)),mh&&Vi.call(va(r)),r.data=n||{},r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return gh(t,Vi),ci(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];i&&typeof i!="string"&&(s=s.concat(i)),i&&typeof i=="string"&&(s=s.concat(a?i.split(a):i)),n.indexOf(".")>-1&&(s=n.split("."));var l=vh(this.data,s);return l||!u||typeof i!="string"?l:tA(this.data&&this.data[n]&&this.data[n][r],i,a)}},{key:"addResource",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];i&&(s=s.concat(u?i.split(u):i)),n.indexOf(".")>-1&&(o=r,r=(s=n.split("."))[1]),this.addNamespaces(r),ZC(this.data,s,o),a.silent||this.emit("added",n,r,i,o)}},{key:"addResources",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in i)typeof i[a]!="string"&&Object.prototype.toString.apply(i[a])!=="[object Array]"||this.addResource(n,r,a,i[a],{silent:!0});o.silent||this.emit("added",n,r,i)}},{key:"addResourceBundle",value:function(n,r,i,o,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(o=i,i=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=vh(this.data,s)||{};o?eA(l,i,a):l=Bt({},l,i),ZC(this.data,s,l),u.silent||this.emit("added",n,r,i)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Bt({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),nA={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach(function(a){o.processors[a]&&(t=o.processors[a].process(t,n,r,i))}),t}},rA={},iA=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return li(this,t),r=fc(this,es(t).call(this)),mh&&Vi.call(va(r)),Uq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,va(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=fi.create("translator"),r}return gh(t,Vi),ci(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var i=this.resolve(n,r);return i&&i.res!==void 0}},{key:"extractFromKey",value:function(n,r){var i=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(i&&n.indexOf(i)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(i);(i!==o||i===o&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(o)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,i){var o=this;if(Ui(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=r.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var m=this.resolve(n,r),v=m&&m.res,g=m&&m.usedKey||s,y=m&&m.exactUsedKey||s,h=Object.prototype.toString.apply(v),$=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(x&&v&&S&&$.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,Bt({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",N=C?[]:{},R=C?y:g;for(var U in v)if(Object.prototype.hasOwnProperty.call(v,U)){var W="".concat(R).concat(a).concat(U);N[U]=this.translate(W,Bt({},r,{joinArrays:!1,ns:l})),N[U]===W&&(N[U]=v[U])}v=N}}else if(x&&typeof w=="string"&&h==="[object Array]")(v=v.join(w))&&(v=this.extendTranslation(v,n,r,i));else{var Z=!1,Q=!1,le=r.count!==void 0&&typeof r.count!="string",te=t.hasDefaultValue(r),ue=le?this.pluralResolver.getSuffix(f,r.count):"",he=r["defaultValue".concat(ue)]||r.defaultValue;!this.isValidLookup(v)&&te&&(Z=!0,v=he),this.isValidLookup(v)||(Q=!0,v=s);var Ie=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ye=Ie&&Q?void 0:v,oe=te&&he!==v&&this.options.updateMissing;if(Q||Z||oe){if(this.logger.log(oe?"updateKey":"missingKey",f,c,s,oe?he:v),a){var Le=this.resolve(s,Bt({},r,{keySeparator:!1}));Le&&Le.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 T=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(var k=0;k<F.length;k++)T.push(F[k]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(r.lng||this.language):T.push(r.lng||this.language);var I=function(V,L,ee){o.options.missingKeyHandler?o.options.missingKeyHandler(V,c,L,oe?ee:ye,oe,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(V,c,L,oe?ee:ye,oe,r),o.emit("missingKey",V,c,L,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&le?T.forEach(function(V){o.pluralResolver.getSuffixes(V).forEach(function(L){I([V],s+L,r["defaultValue".concat(L)]||he)})}):I(T,s,he))}v=this.extendTranslation(v,n,r,m,i),Q&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(s)),(Q||Z)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(n,r,i,o,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,i,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init(Bt({},i,{interpolation:Bt({},this.options.interpolation,i.interpolation)}));var s,l=i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(f=Bt({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,i.lng||this.language,i),l){var d=n.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(i.nest=!1)}i.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var v=arguments.length,g=new Array(v),y=0;y<v;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!i.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(r[0])),null):u.translate.apply(u,g.concat([r]))},i)),i.interpolation&&this.interpolator.reset()}var p=i.postProcess||this.options.postProcess,m=typeof p=="string"?[p]:p;return n!=null&&m&&m.length&&i.applyPostProcessor!==!1&&(n=nA.handle(m,n,r,this.options&&this.options.postProcessPassResolved?Bt({i18nResolved:o},i):i,this)),n}},{key:"resolve",value:function(n){var r,i,o,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),d=f.key;i=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var m=l.count!==void 0&&typeof l.count!="string",v=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(y){s.isValidLookup(r)||(u=y,!rA["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(rA["".concat(g[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(i,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" 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!!!")),g.forEach(function(h){if(!s.isValidLookup(r)){a=h;var $,w,x=d,S=[x];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,d,h,y,l):(m&&($=s.pluralResolver.getSuffix(h,l.count)),m&&v&&S.push(x+$),v&&S.push(x+="".concat(s.options.contextSeparator).concat(l.context)),m&&S.push(x+=$));w=S.pop();)s.isValidLookup(r)||(o=w,r=s.getResource(h,y,w,l))}}))})}}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,i,o):this.resourceStore.getResource(n,r,i,o)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&r===i.substring(0,r.length)&&n[i]!==void 0)return!0;return!1}}]),t}();function u2(e){return e.charAt(0).toUpperCase()+e.slice(1)}var qq=function(){function e(t){li(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fi.create("languageUtils")}return ci(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(i){return i.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=u2(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=u2(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=u2(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(i){if(!n){var o=r.formatLanguageCode(i);r.options.supportedLngs&&!r.isSupportedCode(o)||(n=o)}}),!n&&this.options.supportedLngs&&t.forEach(function(i){if(!n){var o=r.getLanguagePartFromCode(i);if(r.isSupportedCode(o))return n=o;n=r.options.supportedLngs.find(function(a){if(a.indexOf(o)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],a=function(u){u&&(r.isSupportedCode(u)?o.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),i.forEach(function(u){o.indexOf(u)<0&&a(r.formatLanguageCode(u))}),o}}]),e}(),Kq=[{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}],Yq={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},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(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?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:e!==0?1:2)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||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(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}};function Xq(){var e={};return Kq.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Yq[t.fc]}})}),e}var Jq=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};li(this,e),this.languageUtils=t,this.options=n,this.logger=fi.create("pluralResolver"),this.rules=Xq()}return ci(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(i){return n.getSuffix(t,i)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,i=this.getRule(t);if(i){var o=i.noAbs?i.plurals(n):i.plurals(Math.abs(n)),a=i.numbers[o];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?u():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),Zq=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};li(this,e),this.logger=fi.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return ci(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:Wq,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?ts(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ts(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ts(n.nestingPrefix):n.nestingPrefixEscaped||ts("$t("),this.nestingSuffix=n.nestingSuffix?ts(n.nestingSuffix):n.nestingSuffixEscaped||ts(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,i){var o,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(v){return v.replace(/\$/g,"$$$$")}var f=function(v){if(v.indexOf(s.formatSeparator)<0){var g=QC(n,l,v);return s.alwaysFormat?s.format(g,void 0,r,Bt({},i,n,{interpolationkey:v})):g}var y=v.split(s.formatSeparator),h=y.shift().trim(),$=y.join(s.formatSeparator).trim();return s.format(QC(n,l,h),$,r,Bt({},i,n,{interpolationkey:h}))};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(v){return c(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?c(s.escape(v)):c(v)}}];return m.forEach(function(v){for(u=0;o=v.regex.exec(t);){if((a=f(o[1].trim()))===void 0)if(typeof d=="function"){var g=d(t,o,i);a=typeof g=="string"?g:""}else{if(p){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=JC(a));var y=v.safeValue(a);if(t=t.replace(o[0],y),p?(v.regex.lastIndex+=y.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,++u>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,i,o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Bt({},a);function s(d,p){var m=this.nestingOptionsSeparator;if(d.indexOf(m)<0)return d;var v=d.split(new RegExp("".concat(m,"[ ]*{"))),g="{".concat(v[1]);d=v[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=Bt({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(m).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(t);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(d){return d.trim()});r[1]=f.shift(),l=f,c=!0}if((i=n(s.call(this,r[1].trim(),u),u))&&r[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=JC(i)),i||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),i=""),c&&(i=l.reduce(function(d,p){return o.format(d,p,a.lng,Bt({},a,{interpolationkey:r[1].trim()}))},i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}]),e}(),Qq=function(e){function t(n,r,i){var o,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return li(this,t),o=fc(this,es(t).call(this)),mh&&Vi.call(va(o)),o.backend=n,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=fi.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return gh(t,Vi),ci(t,[{key:"queueLoad",value:function(n,r,i,o){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var d=!0;r.forEach(function(p){var m="".concat(f,"|").concat(p);!i.reload&&a.store.hasResourceBundle(f,p)?a.state[m]=2:a.state[m]<0||(a.state[m]===1?s.indexOf(m)<0&&s.push(m):(a.state[m]=1,d=!1,s.indexOf(m)<0&&s.push(m),u.indexOf(m)<0&&u.push(m),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:o}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,i){var o=n.split("|"),a=o[0],u=o[1];r&&this.emit("failedLoading",a,u,r),i&&this.store.addResourceBundle(a,u,i),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var m=a2(c,f,Object),v=m.obj,g=m.k;v[g]=v[g]||[],p&&(v[g]=v[g].concat(d)),p||v[g].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[i](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){o.read.call(o,n,r,i,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,o,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){i.loadOne(s)})}},{key:"load",value:function(n,r,i){this.prepareLoading(n,r,{},i)}},{key:"reload",value:function(n,r,i){this.prepareLoading(n,r,{reload:!0},i)}},{key:"loadOne",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=n.split("|"),a=o[0],u=o[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(i,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(i,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,i,o,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(r,'" 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!!!"):i!=null&&i!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,i,o,null,Bt({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,i,o))}}]),t}();function eK(){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(Ui(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Ui(e[2])==="object"||Ui(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}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 oA(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(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 yh(){}var tK=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(li(this,t),n=fc(this,es(t).call(this)),mh&&Vi.call(va(n)),n.options=oA(r),n.services={},n.logger=fi,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),fc(n,va(n));setTimeout(function(){n.init(r,i)},0)}return n}return gh(t,Vi),ci(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;function o(p){return p?typeof p=="function"?new p:p:null}if(typeof r=="function"&&(i=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.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=Bt({},eK(),this.options,oA(r)),this.format=this.options.interpolation.format,i||(i=yh),!this.options.isClone){this.modules.logger?fi.init(o(this.modules.logger),this.options):fi.init(null,this.options);var a=new qq(this.options);this.store=new Gq(this.options.resources,this.options);var u=this.services;u.logger=fi,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Jq(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Zq(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Qq(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var m=arguments.length,v=new Array(m>1?m-1:0),g=1;g<m;g++)v[g-1]=arguments[g];n.emit.apply(n,[p].concat(v))}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new iA(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,v=new Array(m>1?m-1:0),g=1;g<m;g++)v[g-1]=arguments[g];n.emit.apply(n,[p].concat(v))}),this.modules.external.forEach(function(p){p.init&&p.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){n[p]=function(){var m;return(m=n.store)[p].apply(m,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var m;return(m=n.store)[p].apply(m,arguments),n}});var f=dc(),d=function(){var p=function(m,v){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(v),i(m,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yh,o=i,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return o();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(n,r,i){var o=dc();return n||(n=this.languages),r||(r=this.options.ns),i||(i=yh),this.services.backendConnector.reload(n,r,function(a){o.resolve(),i(a)}),o}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&nA.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var i=this;this.isLanguageChangingTo=n;var o=dc();this.emit("languageChanging",n);var a=function(u){n||u||!i.services.languageDetector||(u=[]);var s=typeof u=="string"?u:i.services.languageUtils.getBestMatchFromCodes(u);s&&(i.language||(i.language=s,i.languages=i.services.languageUtils.toResolveHierarchy(s)),i.translator.language||i.translator.changeLanguage(s),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(s)),i.loadResources(s,function(l){(function(c,f){f?(i.language=f,i.languages=i.services.languageUtils.toResolveHierarchy(f),i.translator.changeLanguage(f),i.isLanguageChangingTo=void 0,i.emit("languageChanged",f),i.logger.log("languageChanged",f)):i.isLanguageChangingTo=void 0,o.resolve(function(){return i.t.apply(i,arguments)}),r&&r(c,function(){return i.t.apply(i,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(n,r,i){var o=this,a=function u(s,l){var c;if(Ui(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=o.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=Bt({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var m=o.options.keySeparator||".",v=i?"".concat(i).concat(m).concat(s):s;return o.t(v,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=i,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?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 o=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=r.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(i.precheck){var l=i.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||!(!s(o,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var i=this,o=dc();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){i.options.ns.indexOf(a)<0&&i.options.ns.push(a)}),this.loadResources(function(a){o.resolve(),r&&r(a)}),o):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var i=dc();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],a=n.filter(function(u){return o.indexOf(u)<0});return a.length?(this.options.preload=o.concat(a),this.loadResources(function(u){i.resolve(),r&&r(u)}),i):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["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(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yh,o=Bt({},this.options,r,{isClone:!0}),a=new t(o),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Bt({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new iA(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(o,i),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),ns=new tK,aA="translation";function pn(e,t){ns.addResourceBundle(e,aA,t,!0,!0)}function fhe(e){ns.changeLanguage(e)}function dhe(e){return ns.getResourceBundle(e,aA)}ns.init({lng:"zh-CN",resources:{}});var K=ns.t.bind(ns),nK={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},rK={editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}};pn("en",nK),pn("zh-CN",rK),pn("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"}}),pn("zh-CN",{common:{ok:"\u786E\u5B9A",delete:"\u5220\u9664",enter:"\u56DE\u8F66"},blockQuote:{title:"\u5F15\u7528"},codeBlock:{title:"\u4EE3\u7801\u5757"},color:{color:"\u6587\u5B57\u989C\u8272",bgColor:"\u80CC\u666F\u8272",default:"\u9ED8\u8BA4\u989C\u8272",clear:"\u6E05\u9664\u80CC\u666F\u8272"},divider:{title:"\u5206\u5272\u7EBF"},emotion:{title:"\u8868\u60C5"},fontSize:{title:"\u5B57\u53F7",default:"\u9ED8\u8BA4\u5B57\u53F7"},fontFamily:{title:"\u5B57\u4F53",default:"\u9ED8\u8BA4\u5B57\u4F53"},fullScreen:{title:"\u5168\u5C4F"},header:{title:"\u6807\u9898",text:"\u6B63\u6587"},image:{netImage:"\u7F51\u7EDC\u56FE\u7247",delete:"\u5220\u9664\u56FE\u7247",edit:"\u7F16\u8F91\u56FE\u7247",viewLink:"\u67E5\u770B\u94FE\u63A5",src:"\u56FE\u7247\u5730\u5740",desc:"\u56FE\u7247\u63CF\u8FF0",link:"\u56FE\u7247\u94FE\u63A5"},indent:{decrease:"\u51CF\u5C11\u7F29\u8FDB",increase:"\u589E\u52A0\u7F29\u8FDB"},justify:{left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D\u5BF9\u9F50",justify:"\u4E24\u7AEF\u5BF9\u9F50"},lineHeight:{title:"\u884C\u9AD8",default:"\u9ED8\u8BA4\u884C\u9AD8"},link:{insert:"\u63D2\u5165\u94FE\u63A5",text:"\u94FE\u63A5\u6587\u672C",url:"\u94FE\u63A5\u5730\u5740",unLink:"\u53D6\u6D88\u94FE\u63A5",edit:"\u4FEE\u6539\u94FE\u63A5",view:"\u67E5\u770B\u94FE\u63A5"},textStyle:{bold:"\u7C97\u4F53",clear:"\u6E05\u9664\u683C\u5F0F",code:"\u884C\u5185\u4EE3\u7801",italic:"\u659C\u4F53",sub:"\u4E0B\u6807",sup:"\u4E0A\u6807",through:"\u5220\u9664\u7EBF",underline:"\u4E0B\u5212\u7EBF"},undo:{undo:"\u64A4\u9500",redo:"\u91CD\u505A"},todo:{todo:"\u5F85\u529E"}});var iK={type:"paragraph",renderElem:function(e,t,n){return fe("p",null,t)}},oK={type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}},bh=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function aK(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $h(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wi,wh,Eh=function(e){return e&&e.Math==Math&&e},me=Eh(typeof globalThis=="object"&&globalThis)||Eh(typeof window=="object"&&window)||Eh(typeof self=="object"&&self)||Eh(typeof bh=="object"&&bh)||function(){return this}()||Function("return this")(),lt=function(e){try{return!!e()}catch(t){return!0}},hr=!lt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pc=Function.prototype.call,vt=pc.bind?pc.bind(pc):function(){return pc.apply(pc,arguments)},uA={}.propertyIsEnumerable,sA=Object.getOwnPropertyDescriptor,uK=sA&&!uA.call({1:2},1)?function(e){var t=sA(this,e);return!!t&&t.enumerable}:uA,lA={f:uK},s2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cA=Function.prototype,l2=cA.bind,c2=cA.call,sK=l2&&l2.bind(c2),ce=l2?function(e){return e&&sK(c2,e)}:function(e){return e&&function(){return c2.apply(e,arguments)}},lK=ce({}.toString),cK=ce("".slice),Gi=function(e){return cK(lK(e),8,-1)},f2=me.Object,fK=ce("".split),xh=lt(function(){return!f2("z").propertyIsEnumerable(0)})?function(e){return Gi(e)=="String"?fK(e,""):f2(e)}:f2,dK=me.TypeError,Yn=function(e){if(e==null)throw dK("Can't call method on "+e);return e},rs=function(e){return xh(Yn(e))},Kt=function(e){return typeof e=="function"},Xn=function(e){return typeof e=="object"?e!==null:Kt(e)},pK=function(e){return Kt(e)?e:void 0},hc=function(e,t){return arguments.length<2?pK(me[e]):me[e]&&me[e][t]},fA=ce({}.isPrototypeOf),d2=hc("navigator","userAgent")||"",dA=me.process,pA=me.Deno,hA=dA&&dA.versions||pA&&pA.version,gA=hA&&hA.v8;gA&&(wh=(Wi=gA.split("."))[0]>0&&Wi[0]<4?1:+(Wi[0]+Wi[1])),!wh&&d2&&(!(Wi=d2.match(/Edge\/(\d+)/))||Wi[1]>=74)&&(Wi=d2.match(/Chrome\/(\d+)/))&&(wh=+Wi[1]);var p2=wh,h2=!!Object.getOwnPropertySymbols&&!lt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&p2&&p2<41}),g2=h2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hK=me.Object,v2=g2?function(e){return typeof e=="symbol"}:function(e){var t=hc("Symbol");return Kt(t)&&fA(t.prototype,hK(e))},gK=me.String,vA=function(e){try{return gK(e)}catch(t){return"Object"}},vK=me.TypeError,mA=function(e){if(Kt(e))return e;throw vK(vA(e)+" is not a function")},Sh=function(e,t){var n=e[t];return n==null?void 0:mA(n)},mK=me.TypeError,yK=Object.defineProperty,m2=function(e,t){try{yK(me,e,{value:t,configurable:!0,writable:!0})}catch(n){me[e]=t}return t},qi=me["__core-js_shared__"]||m2("__core-js_shared__",{}),y2=$h(function(e){(e.exports=function(t,n){return qi[t]||(qi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),bK=me.Object,gc=function(e){return bK(Yn(e))},$K=ce({}.hasOwnProperty),Jn=Object.hasOwn||function(e,t){return $K(gc(e),t)},wK=0,EK=Math.random(),xK=ce(1 .toString),yA=function(e){return"Symbol("+(e===void 0?"":e)+")_"+xK(++wK+EK,36)},vc=y2("wks"),ma=me.Symbol,bA=ma&&ma.for,SK=g2?ma:ma&&ma.withoutSetter||yA,On=function(e){if(!Jn(vc,e)||!h2&&typeof vc[e]!="string"){var t="Symbol."+e;h2&&Jn(ma,e)?vc[e]=ma[e]:vc[e]=g2&&bA?bA(t):SK(t)}return vc[e]},DK=me.TypeError,CK=On("toPrimitive"),AK=function(e,t){if(!Xn(e)||v2(e))return e;var n,r=Sh(e,CK);if(r){if(t===void 0&&(t="default"),n=vt(r,e,t),!Xn(n)||v2(n))return n;throw DK("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Kt(a=i.toString)&&!Xn(u=vt(a,i))||Kt(a=i.valueOf)&&!Xn(u=vt(a,i))||o!=="string"&&Kt(a=i.toString)&&!Xn(u=vt(a,i)))return u;throw mK("Can't convert object to primitive value")}(e,t)},b2=function(e){var t=AK(e,"string");return v2(t)?t:t+""},$2=me.document,OK=Xn($2)&&Xn($2.createElement),w2=function(e){return OK?$2.createElement(e):{}},$A=!hr&&!lt(function(){return Object.defineProperty(w2("div"),"a",{get:function(){return 7}}).a!=7}),wA=Object.getOwnPropertyDescriptor,E2={f:hr?wA:function(e,t){if(e=rs(e),t=b2(t),$A)try{return wA(e,t)}catch(n){}if(Jn(e,t))return s2(!vt(lA.f,e,t),e[t])}},BK=me.String,FK=me.TypeError,Bn=function(e){if(Xn(e))return e;throw FK(BK(e)+" is not an object")},TK=me.TypeError,EA=Object.defineProperty,is={f:hr?EA:function(e,t,n){if(Bn(e),t=b2(t),Bn(n),$A)try{return EA(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},os=hr?function(e,t,n){return is.f(e,t,s2(1,n))}:function(e,t,n){return e[t]=n,e},kK=ce(Function.toString);Kt(qi.inspectSource)||(qi.inspectSource=function(e){return kK(e)});var Dh,mc,Ch,x2=qi.inspectSource,xA=me.WeakMap,PK=Kt(xA)&&/native code/.test(x2(xA)),SA=y2("keys"),DA=function(e){return SA[e]||(SA[e]=yA(e))},S2={},D2=me.TypeError,_K=me.WeakMap;if(PK||qi.state){var ya=qi.state||(qi.state=new _K),NK=ce(ya.get),CA=ce(ya.has),IK=ce(ya.set);Dh=function(e,t){if(CA(ya,e))throw new D2("Object already initialized");return t.facade=e,IK(ya,e,t),t},mc=function(e){return NK(ya,e)||{}},Ch=function(e){return CA(ya,e)}}else{var as=DA("state");S2[as]=!0,Dh=function(e,t){if(Jn(e,as))throw new D2("Object already initialized");return t.facade=e,os(e,as,t),t},mc=function(e){return Jn(e,as)?e[as]:{}},Ch=function(e){return Jn(e,as)}}var C2={set:Dh,get:mc,has:Ch,enforce:function(e){return Ch(e)?mc(e):Dh(e,{})},getterFor:function(e){return function(t){var n;if(!Xn(t)||(n=mc(t)).type!==e)throw D2("Incompatible receiver, "+e+" required");return n}}},AA=Function.prototype,jK=hr&&Object.getOwnPropertyDescriptor,A2=Jn(AA,"name"),Ah={EXISTS:A2,PROPER:A2&&function(){}.name==="something",CONFIGURABLE:A2&&(!hr||hr&&jK(AA,"name").configurable)},yc=$h(function(e){var t=Ah.CONFIGURABLE,n=C2.get,r=C2.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Kt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Jn(u,"name")||t&&u.name!==p)&&os(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==me?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:os(o,a,u)):f?o[a]=u:m2(a,u)})(Function.prototype,"toString",function(){return Kt(this)&&n(this).source||x2(this)})}),RK=Math.ceil,LK=Math.floor,us=function(e){var t=+e;return t!=t||t===0?0:(t>0?LK:RK)(t)},MK=Math.max,zK=Math.min,bc=function(e,t){var n=us(e);return n<0?MK(n+t,0):zK(n,t)},HK=Math.min,$c=function(e){return e>0?HK(us(e),9007199254740991):0},Oh=function(e){return $c(e.length)},OA=function(e){return function(t,n,r){var i,o=rs(t),a=Oh(o),u=bc(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},BA={includes:OA(!0),indexOf:OA(!1)},UK=BA.indexOf,FA=ce([].push),TA=function(e,t){var n,r=rs(e),i=0,o=[];for(n in r)!Jn(S2,n)&&Jn(r,n)&&FA(o,n);for(;t.length>i;)Jn(r,n=t[i++])&&(~UK(o,n)||FA(o,n));return o},Bh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],VK=Bh.concat("length","prototype"),WK={f:Object.getOwnPropertyNames||function(e){return TA(e,VK)}},kA={f:Object.getOwnPropertySymbols},GK=ce([].concat),qK=hc("Reflect","ownKeys")||function(e){var t=WK.f(Bn(e)),n=kA.f;return n?GK(t,n(e)):t},KK=function(e,t){for(var n=qK(t),r=is.f,i=E2.f,o=0;o<n.length;o++){var a=n[o];Jn(e,a)||r(e,a,i(t,a))}},YK=/#|\.prototype\./,wc=function(e,t){var n=JK[XK(e)];return n==QK||n!=ZK&&(Kt(t)?lt(t):!!t)},XK=wc.normalize=function(e){return String(e).replace(YK,".").toLowerCase()},JK=wc.data={},ZK=wc.NATIVE="N",QK=wc.POLYFILL="P",eY=wc,tY=E2.f,It=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?me:l?me[u]||m2(u,{}):(me[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=tY(n,r))&&a.value:n[r],!eY(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;KK(o,i)}(e.sham||i&&i.sham)&&os(o,"sham",!0),yc(n,r,o,e)}},PA=ce(ce.bind),Fh=Array.isArray||function(e){return Gi(e)=="Array"},_A={};_A[On("toStringTag")]="z";var O2=String(_A)==="[object z]",nY=On("toStringTag"),rY=me.Object,iY=Gi(function(){return arguments}())=="Arguments",B2=O2?Gi:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=rY(e),nY))=="string"?n:iY?Gi(t):(r=Gi(t))=="Object"&&Kt(t.callee)?"Arguments":r},NA=function(){},oY=[],IA=hc("Reflect","construct"),F2=/^\s*(?:class|function)\b/,aY=ce(F2.exec),uY=!F2.exec(NA),Ec=function(e){if(!Kt(e))return!1;try{return IA(NA,oY,e),!0}catch(t){return!1}},T2=!IA||lt(function(){var e;return Ec(Ec.call)||!Ec(Object)||!Ec(function(){e=!0})||e})?function(e){if(!Kt(e))return!1;switch(B2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uY||!!aY(F2,x2(e))}:Ec,sY=On("species"),jA=me.Array,lY=function(e,t){return new(function(n){var r;return Fh(n)&&(r=n.constructor,(T2(r)&&(r===jA||Fh(r.prototype))||Xn(r)&&(r=r[sY])===null)&&(r=void 0)),r===void 0?jA:r}(e))(t===0?0:t)},RA=ce([].push),Ki=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=gc(s),v=xh(m),g=function(x,S){return mA(x),S===void 0?x:PA?PA(x,S):function(){return x.apply(S,arguments)}}(l,c),y=Oh(v),h=0,$=f||lY,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:RA(w,d)}else switch(e){case 4:return!1;case 7:RA(w,d)}return o?-1:r||i?i:w}},Th={forEach:Ki(0),map:Ki(1),filter:Ki(2),some:Ki(3),every:Ki(4),find:Ki(5),findIndex:Ki(6),filterReject:Ki(7)},cY=On("species"),k2=function(e){return p2>=51||!lt(function(){var t=[];return(t.constructor={})[cY]=function(){return{foo:1}},t[e](Boolean).foo!==1})},fY=Th.filter;It({target:"Array",proto:!0,forced:!k2("filter")},{filter:function(e){return fY(this,e,arguments.length>1?arguments[1]:void 0)}});var dY=O2?{}.toString:function(){return"[object "+B2(this)+"]"};O2||yc(Object.prototype,"toString",dY,{unsafe:!0});var kh,pY=me.String,ct=function(e){if(B2(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return pY(e)},LA=function(){var e=Bn(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},P2=me.RegExp,_2=lt(function(){var e=P2("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),hY=_2||lt(function(){return!P2("a","y").sticky}),MA={BROKEN_CARET:_2||lt(function(){var e=P2("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:hY,UNSUPPORTED_Y:_2},ss=Object.keys||function(e){return TA(e,Bh)},gY=hr?Object.defineProperties:function(e,t){Bn(e);for(var n,r=rs(t),i=ss(t),o=i.length,a=0;o>a;)is.f(e,n=i[a++],r[n]);return e},vY=hc("document","documentElement"),zA=DA("IE_PROTO"),N2=function(){},HA=function(e){return"<script>"+e+"</script>"},UA=function(e){e.write(HA("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ph=function(){try{kh=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ph=typeof document!="undefined"?document.domain&&kh?UA(kh):((t=w2("iframe")).style.display="none",vY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(HA("document.F=Object")),e.close(),e.F):UA(kh);for(var n=Bh.length;n--;)delete Ph.prototype[Bh[n]];return Ph()};S2[zA]=!0;var VA,I2,WA=Object.create||function(e,t){var n;return e!==null?(N2.prototype=Bn(e),n=new N2,N2.prototype=null,n[zA]=e):n=Ph(),t===void 0?n:gY(n,t)},mY=me.RegExp,yY=lt(function(){var e=mY(".","s");return!(e.dotAll&&e.exec(`
  73. `)&&e.flags==="s")}),bY=me.RegExp,$Y=lt(function(){var e=bY("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),wY=C2.get,EY=y2("native-string-replace",String.prototype.replace),_h=RegExp.prototype.exec,j2=_h,xY=ce("".charAt),SY=ce("".indexOf),DY=ce("".replace),R2=ce("".slice),L2=(I2=/b*/g,vt(_h,VA=/a/,"a"),vt(_h,I2,"a"),VA.lastIndex!==0||I2.lastIndex!==0),GA=MA.BROKEN_CARET,M2=/()??/.exec("")[1]!==void 0;(L2||M2||GA||yY||$Y)&&(j2=function(e){var t,n,r,i,o,a,u,s=this,l=wY(s),c=ct(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=vt(j2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=GA&&s.sticky,m=vt(LA,s),v=s.source,g=0,y=c;if(p&&(m=DY(m,"y",""),SY(m,"g")===-1&&(m+="g"),y=R2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&xY(c,s.lastIndex-1)!==`
  74. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),M2&&(n=new RegExp("^"+v+"$(?!\\s)",m)),L2&&(r=s.lastIndex),i=vt(_h,p?n:s,y),p?i?(i.input=R2(i.input,g),i[0]=R2(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:L2&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),M2&&i&&i.length>1&&vt(EY,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=WA(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var xc=j2;It({target:"RegExp",proto:!0,forced:/./.exec!==xc},{exec:xc});var z2=Function.prototype,qA=z2.apply,CY=z2.bind,KA=z2.call,YA=typeof Reflect=="object"&&Reflect.apply||(CY?KA.bind(qA):function(){return KA.apply(qA,arguments)}),AY=On("species"),H2=RegExp.prototype,U2=function(e,t,n,r){var i=On(e),o=!lt(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!lt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[AY]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=ce(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=ce(l),v=c.exec;return v===xc||v===H2.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});yc(String.prototype,e,s[0]),yc(H2,i,s[1])}r&&os(H2[i],"sham",!0)},OY=ce("".charAt),XA=ce("".charCodeAt),BY=ce("".slice),JA=function(e){return function(t,n){var r,i,o=ct(Yn(t)),a=us(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=XA(o,a))<55296||r>56319||a+1===u||(i=XA(o,a+1))<56320||i>57343?e?OY(o,a):r:e?BY(o,a,a+2):i-56320+(r-55296<<10)+65536}},FY={codeAt:JA(!1),charAt:JA(!0)}.charAt,V2=function(e,t,n){return t+(n?FY(e,t).length:1)},TY=Math.floor,W2=ce("".charAt),kY=ce("".replace),G2=ce("".slice),PY=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_Y=/\$([$&'`]|\d{1,2})/g,NY=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=_Y;return i!==void 0&&(i=gc(i),s=PY),kY(o,s,function(l,c){var f;switch(W2(c,0)){case"$":return"$";case"&":return e;case"`":return G2(t,0,n);case"'":return G2(t,a);case"<":f=i[G2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=TY(d/10);return p===0?l:p<=u?r[p-1]===void 0?W2(c,1):r[p-1]+W2(c,1):l}f=r[d-1]}return f===void 0?"":f})},IY=me.TypeError,Sc=function(e,t){var n=e.exec;if(Kt(n)){var r=vt(n,e,t);return r!==null&&Bn(r),r}if(Gi(e)==="RegExp")return vt(xc,e,t);throw IY("RegExp#exec called on incompatible receiver")},q2=On("replace"),jY=Math.max,RY=Math.min,LY=ce([].concat),K2=ce([].push),ZA=ce("".indexOf),QA=ce("".slice),MY="a".replace(/./,"$0")==="$0",e7=!!/./[q2]&&/./[q2]("a","$0")==="";U2("replace",function(e,t,n){var r=e7?"$":"$0";return[function(i,o){var a=Yn(this),u=i==null?void 0:Sh(i,q2);return u?vt(u,i,a,o):vt(t,ct(a),i,o)},function(i,o){var a=Bn(this),u=ct(i);if(typeof o=="string"&&ZA(o,r)===-1&&ZA(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Kt(o);l||(o=ct(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Sc(a,u);if(p===null||(K2(d,p),!c))break;ct(p[0])===""&&(a.lastIndex=V2(u,$c(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<d.length;y++){for(var h=ct((p=d[y])[0]),$=jY(RY(us(p.index),u.length),0),w=[],x=1;x<p.length;x++)K2(w,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=LY([h],w,$,u);S!==void 0&&K2(C,S);var N=ct(YA(o,void 0,C))}else N=NY(h,u,$,w,S,o);$>=g&&(v+=QA(u,g,$)+N,g=$+h.length)}return v+QA(u,g)}]},!!lt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!MY||e7);var Y2=On("unscopables"),X2=Array.prototype;X2[Y2]==null&&is.f(X2,Y2,{configurable:!0,value:WA(null)});var t7=function(e){X2[Y2][e]=!0},zY=Th.find,n7=!0;"find"in[]&&Array(1).find(function(){n7=!1}),It({target:"Array",proto:!0,forced:n7},{find:function(e){return zY(this,e,arguments.length>1?arguments[1]:void 0)}}),t7("find");var HY=On("match"),r7=function(e){var t;return Xn(e)&&((t=e[HY])!==void 0?!!t:Gi(e)=="RegExp")},UY=me.TypeError,VY=On("species"),WY=function(e,t){var n,r=Bn(e).constructor;return r===void 0||(n=Bn(r)[VY])==null?t:function(i){if(T2(i))return i;throw UY(vA(i)+" is not a constructor")}(n)},i7=function(e,t,n){var r=b2(t);r in e?is.f(e,r,s2(0,n)):e[r]=n},GY=me.Array,qY=Math.max,o7=function(e,t,n){for(var r=Oh(e),i=bc(t,r),o=bc(n===void 0?r:n,r),a=GY(qY(o-i,0)),u=0;i<o;i++,u++)i7(a,u,e[i]);return a.length=u,a},ls=MA.UNSUPPORTED_Y,KY=Math.min,a7=[].push,YY=ce(/./.exec),cs=ce(a7),Dc=ce("".slice);U2("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a=ct(Yn(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!r7(i))return vt(t,a,i,u);for(var s,l,c,f=[],d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),p=0,m=new RegExp(i.source,d+"g");(s=vt(xc,m,a))&&!((l=m.lastIndex)>p&&(cs(f,Dc(a,p,s.index)),s.length>1&&s.index<a.length&&YA(a7,f,o7(s,1)),c=s[0].length,p=l,f.length>=u));)m.lastIndex===s.index&&m.lastIndex++;return p===a.length?!c&&YY(m,"")||cs(f,""):cs(f,Dc(a,p)),f.length>u?o7(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:vt(t,this,i,o)}:t,[function(i,o){var a=Yn(this),u=i==null?void 0:Sh(i,e);return u?vt(u,i,a,o):vt(r,ct(a),i,o)},function(i,o){var a=Bn(this),u=ct(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=WY(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ls?"g":"y"),d=new l(ls?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return Sc(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){d.lastIndex=ls?0:v;var y,h=Sc(d,ls?Dc(u,v):u);if(h===null||(y=KY($c(d.lastIndex+(ls?v:0)),u.length))===m)v=V2(u,v,c);else{if(cs(g,Dc(u,m,v)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(cs(g,h[$]),g.length===p)return g;v=m=y}}return cs(g,Dc(u,m)),g}]},!!lt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),ls);var Cc,J2=`
  75. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,u7=ce("".replace),Nh="["+J2+"]",XY=RegExp("^"+Nh+Nh+"*"),JY=RegExp(Nh+Nh+"*$"),Z2=function(e){return function(t){var n=ct(Yn(t));return 1&e&&(n=u7(n,XY,"")),2&e&&(n=u7(n,JY,"")),n}},ZY={start:Z2(1),end:Z2(2),trim:Z2(3)},QY=Ah.PROPER,eX=ZY.trim;function Q2(e){return O("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function fs(e){return e.length===0?"":e[0].outerHTML}function ds(e){return e.length?e[0].tagName.toLowerCase():""}function gr(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}It({target:"String",proto:!0,forced:(Cc="trim",lt(function(){return!!J2[Cc]()||"\u200B\x85\u180E"[Cc]()!=="\u200B\x85\u180E"||QY&&J2[Cc].name!==Cc}))},{trim:function(){return eX(this)}}),It({global:!0},{globalThis:me}),sp&&(O.fn.css=sp),zn&&(O.fn.append=zn),y8&&(O.fn.prepend=y8),vu&&(O.fn.addClass=vu),mu&&(O.fn.removeClass=mu),yu&&(O.fn.hasClass=yu),Dr&&(O.fn.on=Dr),h8&&(O.fn.off=h8),Bi&&(O.fn.focus=Bi),Mn&&(O.fn.attr=Mn),ip&&(O.fn.removeAttr=ip),$u&&(O.fn.hide=$u),up&&(O.fn.show=up),fp&&(O.fn.parents=fp),bu&&(O.fn.dataset=bu),Sr&&(O.fn.val=Sr),cp&&(O.fn.text=cp),Oi&&(O.fn.html=Oi),xu&&(O.fn.children=xu),Su&&(O.fn.remove=Su),Eu&&(O.fn.find=Eu),op&&(O.fn.width=op),ap&&(O.fn.height=ap),v8&&(O.fn.filter=v8),Du&&(O.fn.empty=Du);var tX={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!J.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},eb=function(e,t){return eb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},eb(e,t)};/*! *****************************************************************************
  76. Copyright (c) Microsoft Corporation.
  77. Permission to use, copy, modify, and/or distribute this software for any
  78. purpose with or without fee is hereby granted.
  79. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  80. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  81. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  82. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  83. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  84. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  85. PERFORMANCE OF THIS SOFTWARE.
  86. ***************************************************************************** */function rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}eb(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Yi=function(){return Yi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Yi.apply(this,arguments)};function Xi(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(l){try{s(r.next(l))}catch(c){o(c)}}function u(l){try{s(r.throw(l))}catch(c){o(c)}}function s(l){var c;l.done?i(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function Ji(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function s7(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 Pe(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l7(e){var t=Pe(E.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1),n=t[0];if(n==null)return!1;var r=n[0];if(!ne.isElement(r)||r.type==="paragraph"||q.string(r)!=="")return!1;var i=r.children,o=i===void 0?[]:i;return!!J.isText(o[0])&&(_.setNodes(e,{type:"paragraph"}),!0)}var nX={renderElems:[iK],elemsToHtml:[oK],parseElemsHtml:[tX],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(i){l7(r)||t(i)},r.deleteForward=function(i){l7(r)||n(i)},r}},rX=/"/g,iX=ce("".replace),Ac=function(e,t,n,r){var i=ct(Yn(e)),o="<"+t;return n!==""&&(o+=" "+n+'="'+iX(ct(r),rX,"&quot;")+'"'),o+">"+i+"</"+t+">"},Oc=function(e){return lt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function tb(e,t){var n=t,r=e,i=r.bold,o=r.italic,a=r.underline;return i&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),o&&(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 ba(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}It({target:"String",proto:!0,forced:Oc("bold")},{bold:function(){return Ac(this,"b","","")}}),It({target:"String",proto:!0,forced:Oc("italics")},{italics:function(){return Ac(this,"i","","")}}),It({target:"String",proto:!0,forced:Oc("sub")},{sub:function(){return Ac(this,"sub","","")}}),It({target:"String",proto:!0,forced:Oc("sup")},{sup:function(){return Ac(this,"sup","","")}});var c7={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},nb=w2("span").classList,f7=nb&&nb.constructor&&nb.constructor.prototype,oX=f7===Object.prototype?void 0:f7,d7=function(e,t){var n=[][e];return!!n&&lt(function(){n.call(null,t||function(){throw 1},1)})},aX=Th.forEach,rb=d7("forEach")?[].forEach:function(e){return aX(this,e,arguments.length>1?arguments[1]:void 0)},p7=function(e){if(e&&e.forEach!==rb)try{os(e,"forEach",rb)}catch(t){e.forEach=rb}};for(var ib in c7)c7[ib]&&p7(me[ib]&&me[ib].prototype);function h7(e,t){return e.selection==null||!!Pe(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function uX(e,t){Object.keys(t).forEach(function(n){n!=="text"&&E.removeMark(e,n)})}p7(oX),It({target:"Object",stat:!0,forced:lt(function(){ss(1)})},{keys:function(e){return ss(gc(e))}});var $a=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r?r[n]:!!Pe(E.nodes(t,{match:function(i){return i[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return h7(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,i=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),i&&i.forEach(function(o){return t.removeMark(o)}))},e}(),sX='<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>',lX='<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>',cX='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',fX='<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>',dX='<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>',g7='<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>',v7='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',pX='<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>',hX='<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>',gX='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',vX='<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>',mX='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',yX='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',bX='<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>',$X='<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>',wX='<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>',EX='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',xX='<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>',SX='<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>',DX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=K("textStyle.bold"),n.iconSvg=sX,n.hotkey="mod+b",n}return rt(t,e),t}($a),CX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=K("textStyle.code"),n.iconSvg=dX,n.hotkey="mod+e",n}return rt(t,e),t}($a),AX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=K("textStyle.italic"),n.iconSvg=cX,n.hotkey="mod+i",n}return rt(t,e),t}($a),OX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=K("textStyle.through"),n.iconSvg=fX,n.hotkey="mod+shift+x",n}return rt(t,e),t}($a),BX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=K("textStyle.underline"),n.iconSvg=lX,n.hotkey="mod+u",n}return rt(t,e),t}($a),FX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=K("textStyle.sub"),n.iconSvg=SX,n.hotkey="",n}return rt(t,e),t}($a),TX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=K("textStyle.sup"),n.iconSvg=xX,n.hotkey="",n}return rt(t,e),t}($a),kX=function(){function e(){this.title=K("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return h7(t)},e.prototype.exec=function(t,n){var r,i,o=E.nodes(t,{match:function(s){return J.isText(s)},universal:!0});try{for(var a=s7(o),u=a.next();!u.done;u=a.next())uX(t,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e}(),PX={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,o=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=fe("strong",null,c)),a&&(c=fe("code",null,c)),i&&(c=fe("em",null,c)),o&&(c=fe("u",null,c)),u&&(c=fe("s",null,c)),s&&(c=fe("sub",null,c)),l&&(c=fe("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new DX}},{key:"underline",factory:function(){return new BX}},{key:"italic",factory:function(){return new AX}},{key:"through",factory:function(){return new OX}},{key:"code",factory:function(){return new CX}},{key:"sub",factory:function(){return new FX}},{key:"sup",factory:function(){return new TX}},{key:"clearStyle",factory:function(){return new kX}}],styleToHtml:function(e,t){if(!J.isText(e))return t;if(Q2(t))return tb(e,t);var n=O(t);if(ds(n)==="br")return tb(e,"<br>");var r=n.html();return r=tb(e,r),n.html(r),fs(n)},parseStyleHtml:function(e,t,n){var r=O(e);if(!J.isText(t))return t;var i=t;return ba(r,"b,strong")&&(i.bold=!0),ba(r,"i,em")&&(i.italic=!0),ba(r,"u")&&(i.underline=!0),ba(r,"s,strike")&&(i.through=!0),ba(r,"sub")&&(i.sub=!0),ba(r,"sup")&&(i.sup=!0),ba(r,"code")&&(i.code=!0),i}};function Bc(e){return function(t,n,r){return fe("h"+e,null,n)}}var _X={type:"header1",renderElem:Bc(1)},NX={type:"header2",renderElem:Bc(2)},IX={type:"header3",renderElem:Bc(3)},jX={type:"header4",renderElem:Bc(4)},RX={type:"header5",renderElem:Bc(5)},LX=Ah.PROPER,ob=RegExp.prototype,m7=ob.toString,MX=ce(LA),zX=lt(function(){return m7.call({source:"a",flags:"b"})!="/a/b"}),HX=LX&&m7.name!="toString";(zX||HX)&&yc(RegExp.prototype,"toString",function(){var e=Bn(this),t=ct(e.source),n=e.flags;return"/"+t+"/"+ct(n===void 0&&fA(ob,e)&&!("flags"in ob)?MX(e):n)},{unsafe:!0});var ab,UX=me.TypeError,y7=function(e){if(r7(e))throw UX("The method doesn't accept regular expressions");return e},VX=On("match"),b7=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[VX]=!1,"/./"[e](t)}catch(r){}}return!1},WX=E2.f,$7=ce("".startsWith),GX=ce("".slice),qX=Math.min,w7=b7("startsWith");function E7(e){var t=Pe(E.nodes(e,{match:function(i){return A.getNodeType(i).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Pe(n,1)[0];return A.getNodeType(r)}function x7(e){return e.selection==null||!Pe(E.nodes(e,{match:function(t){var n=A.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function S7(e,t){t&&_.setNodes(e,{type:t})}It({target:"String",proto:!0,forced:!!(w7||(ab=WX(String.prototype,"startsWith"),!ab||ab.writable))&&!w7},{startsWith:function(e){var t=ct(Yn(this));y7(e);var n=$c(qX(arguments.length>1?arguments[1]:void 0,t.length)),r=ct(e);return $7?$7(t,r,n):GX(t,n,n+r.length)===r}});var KX=function(){function e(){this.title=K("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var n=[{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:K("header.text")}],r=this.getValue(t).toString();return n.forEach(function(i){i.value===r?i.selected=!0:delete i.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return E7(t)},e.prototype.isDisabled=function(t){return x7(t)},e.prototype.exec=function(t,n){S7(t,n.toString())},e}(),Fc=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return E7(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return x7(t)},e.prototype.exec=function(t,n){var r=this.type;S7(t,n===r?"paragraph":r)},e}(),YX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return rt(t,e),t}(Fc),XX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return rt(t,e),t}(Fc),JX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return rt(t,e),t}(Fc),ZX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return rt(t,e),t}(Fc),QX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return rt(t,e),t}(Fc),eJ={key:"headerSelect",factory:function(){return new KX}},tJ={key:"header1",factory:function(){return new YX}},nJ={key:"header2",factory:function(){return new XX}},rJ={key:"header3",factory:function(){return new JX}},iJ={key:"header4",factory:function(){return new ZX}},oJ={key:"header5",factory:function(){return new QX}};function Tc(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function kc(e){return function(t,n,r){var i=O(t);return(n=n.filter(function(o){return!!J.isText(o)||!!r.isInline(o)})).length===0&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var aJ={renderElems:[_X,NX,IX,jX,RX],elemsToHtml:[{type:"header1",elemToHtml:Tc(1)},{type:"header2",elemToHtml:Tc(2)},{type:"header3",elemToHtml:Tc(3)},{type:"header4",elemToHtml:Tc(4)},{type:"header5",elemToHtml:Tc(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:kc(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:kc(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:kc(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:kc(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:kc(5)}],menus:[eJ,tJ,nJ,rJ,iJ,oJ],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Pe(E.nodes(n,{match:function(i){return A.getNodeType(i).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(e,r[1])?_.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},ps=Object.assign,D7=Object.defineProperty,uJ=ce([].concat),C7=!ps||lt(function(){if(hr&&ps({b:1},ps(D7({},"a",{enumerable:!0,get:function(){D7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),ps({},e)[n]!=7||ss(ps({},t)).join("")!=r})?function(e,t){for(var n=gc(e),r=arguments.length,i=1,o=kA.f,a=lA.f;r>i;)for(var u,s=xh(arguments[i++]),l=o?uJ(ss(s),o(s)):ss(s),c=l.length,f=0;c>f;)u=l[f++],hr&&!vt(a,s,u)||(n[u]=s[u]);return n}:ps;function wa(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}It({target:"Object",stat:!0,forced:Object.assign!==C7},{assign:C7});var sJ={selector:"font",preParseHtml:function(e){var t=O(e);if(ds(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},A7=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Pe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=O('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=O(c).attr("data-value");f==="0"?E.removeMark(t,n):E.addMark(t,n,f)}}),this.$content=r}var i=this.$content;if(i==null)return document.createElement("ul");i.empty();var o=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=O('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=O('<li data-value="'+l+'"></li>');o===l&&f.addClass("active"),f.append(c),i.append(f)});var u="";n==="color"&&(u=K("color.default")),n==="bgColor"&&(u=K("color.clear"));var s=O(`
  87. <li data-value="0" class="clear">
  88. <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>
  89. `+u+`
  90. </li>
  91. `);return i.prepend(s),i[0]},e}(),lJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("color.color"),n.iconSvg=pX,n.mark="color",n}return rt(t,e),t}(A7),cJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("color.bgColor"),n.iconSvg=hX,n.mark="bgColor",n}return rt(t,e),t}(A7),O7=["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)"],fJ={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,o=t;return r&&wa(o,{color:r}),i&&wa(o,{backgroundColor:i}),o},styleToHtml:function(e,t){if(!J.isText(e))return t;var n,r=e,i=r.color,o=r.bgColor;return i||o?((Q2(t)||ds(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),i&&n.css("color",i),o&&n.css("background-color",o),fs(n)):t},preParseHtml:[sJ],parseStyleHtml:function(e,t,n){var r=O(e);if(!J.isText(t))return t;var i=t,o=gr(r,"color");o&&(i.color=o);var a=gr(r,"background-color");return a||(a=gr(r,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new lJ},config:{colors:O7}},{key:"bgColor",factory:function(){return new cJ},config:{colors:O7}}]},dJ=function(e){if(typeof e!="string")return!1;var t=e.match(pJ);if(!t)return!1;var n=t[1];return n?!!(hJ.test(n)||gJ.test(n)):!1},pJ=/^(?:\w+:)?\/\/(\S+)$/,hJ=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,gJ=/^[^\s\.]+\.\S{2,}$/,vJ=BA.includes;function Ih(e){return e===void 0&&(e="r"),e+"-"+S8()}function ub(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function B7(e,t,n,r){return Xi(this,void 0,void 0,function(){var i,o;return Ji(this,function(a){switch(a.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(o=a.sent())=="string")return t.alert(o,"error"),[2,!1];if(o==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function F7(e,t,n){return Xi(this,void 0,void 0,function(){var r;return Ji(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function sb(e){return e.selection==null||!!A.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function lb(e,t){return{type:"link",url:ub(e),children:t?[{text:t}]:[]}}function T7(e,t,n){return Xi(this,void 0,void 0,function(){var r,i,o;return Ji(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),sb(e)?[2]:[4,B7("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,F7("insertLink",e,n)]:[2];case 2:return r=a.sent(),(i=e.selection)==null?[2]:(j.isCollapsed(i)?(e.insertText(" "),o=lb(r,t),_.insertNodes(e,o),e.insertFragment([{text:" "}])):E.string(e,i)!==t?(e.deleteFragment(),o=lb(r,t),_.insertNodes(e,o)):(o=lb(r),_.wrapNodes(e,o,{split:!0}),_.collapse(e,{edge:"end"})),[2])}})})}It({target:"Array",proto:!0},{includes:function(e){return vJ(this,e,arguments.length>1?arguments[1]:void 0)}}),t7("includes");var mJ={type:"link",renderElem:function(e,t,n){var r=e,i=r.url,o=r.target;return fe("a",{href:i,target:o===void 0?"_blank":o},t)}},yJ={type:"link",elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return'<a href="'+r+'" target="'+(i===void 0?"_blank":i)+'">'+t+"</a>"}},bJ={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!J.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function cb(){return Ih("w-e-insert-link")}var $J=function(){function e(){this.title=K("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=cb(),this.urlInputId=cb(),this.buttonId=cb()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return sb(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,i=r.textInputId,o=r.urlInputId,a=r.buttonId,u=Pe(Cn(K("link.text"),i),2),s=u[0],l=u[1],c=O(l),f=Pe(Cn(K("link.url"),o),2),d=f[0],p=f[1],m=O(p),v=Pe(Qu(a,K("common.ok")),1)[0];if(this.$content==null){var g=O("<div></div>");g.on("click","#"+a,function($){$.preventDefault();var w=g.find("#"+i).val(),x=g.find("#"+o).val();T7(t,w,x),t.hidePanelOrModal()}),this.$content=g}var y=this.$content;if(y.empty(),y.append(s),y.append(d),y.append(v),n==null||j.isCollapsed(n))c.val("");else{var h=E.string(t,n);c.val(h)}return m.val(""),setTimeout(function(){c.focus()}),y[0]},e}();function k7(){return Ih("w-e-update-link")}var wJ=function(){function e(){this.title=K("link.edit"),this.iconSvg=g7,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=k7(),this.buttonId=k7()}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n==null?null:n},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return A.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,i=Pe(Cn(K("link.url"),n),2),o=i[0],a=i[1],u=O(a),s=Pe(Qu(r,K("common.ok")),1)[0];if(this.$content==null){var l=O("<div></div>");l.on("click","button",function(d){d.preventDefault(),t.restoreSelection();var p=A.getSelectedNodeByType(t,"link"),m=p?q.string(p):"",v=l.find("#"+n).val();(function(g,y,h){Xi(this,void 0,void 0,function(){var $,w;return Ji(this,function(x){switch(x.label){case 0:return h?[4,B7("editLink",g,y,h)]:[2];case 1:return x.sent()?[4,F7("editLink",g,h)]:[2];case 2:return $=x.sent(),w={url:ub($)},_.setNodes(g,w,{match:function(S){return A.checkNodeType(S,"link")}}),[2]}})})})(t,m,v),t.hidePanelOrModal()}),this.$content=l}var c=this.$content;c.empty(),c.append(o),c.append(s);var f=this.getValue(t);return u.val(f),setTimeout(function(){u.focus()}),c[0]},e}(),EJ=function(){function e(){this.title=K("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||_.unwrapNodes(t,{match:function(r){return A.checkNodeType(r,"link")}})},e}(),xJ=function(){function e(){this.title=K("link.view"),this.iconSvg=v7,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n==null?null:n},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),P7={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},SJ={renderElems:[mJ],elemsToHtml:[yJ],parseElemsHtml:[bJ],menus:[{key:"insertLink",factory:function(){return new $J},config:P7},{key:"editLink",factory:function(){return new wJ},config:P7},{key:"unLink",factory:function(){return new EJ}},{key:"viewLink",factory:function(){return new xJ}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(o){return o.type==="link"||t(o)},i.insertData=function(o){var a=o.getData("text/plain");if(dJ(a)){if(!sb(i)){var u=i.selection;if(u!=null){var s=E.string(i,u);T7(i,s,a)}}}else n(o)},i.normalizeNode=function(o){var a=Pe(o,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):q.string(u)===""?_.removeNodes(i,{at:s}):r([u,s])},i}},DJ=ce(1 .valueOf),CJ=me.RangeError,AJ=me.RangeError,_7=me.String,N7=Math.floor,fb=ce(function(e){var t=ct(Yn(this)),n="",r=us(e);if(r<0||r==1/0)throw CJ("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),I7=ce("".slice),Pc=ce(1 .toFixed),hs=function(e,t,n){return t===0?n:t%2==1?hs(e,t-1,n*e):hs(e*e,t/2,n)},gs=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=N7(i/1e7)},db=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=N7(r/t),r=r%t*1e7},j7=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=_7(e[t]);n=n===""?r:n+fb("0",7-r.length)+r}return n};function R7(e,t){return"w-e-image-container-"+A.findKey(e,t).id}function OJ(e,t,n,r){var i=O("body"),o=R7(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(y){d=function(){var w=O("#"+o);if(w.length===0)throw new Error("Cannot find image container elem");return w}(),s=y;var h=d.find("img");if(h.length===0)throw new Error("Cannot find image elem");l=h.width(),c=h.height(),i.on("mousemove",m),i.on("mouseup",v);var $=A.getHoverbar(e);$&&$.hideAndClean()}var m=Yo(function(y){y.preventDefault();var h=y.clientX,$=l+(f?s-h:h-s),w=c*($/l);d!=null&&($<=15||w<=15||(d.css("width",$+"px"),d.css("height",w+"px")))},100);function v(y){if(i.off("mousemove",m),d!=null){var h=d.width().toFixed(2),$=d.height().toFixed(2),w={style:Yi(Yi({},t.style),{width:h+"px",height:$+"px"})};_.setNodes(e,w,{at:A.findPath(e,t)}),i.off("mouseup",v)}}var g={};return a&&(g.width=a),u&&(g.height=u),fe("div",{id:o,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(y){var h=O(y.target);h.hasClass("w-e-image-dragger")&&(y.preventDefault(),(h.hasClass("left-top")||h.hasClass("left-bottom"))&&(f=!0),p(y.clientX))}}},n,fe("div",{className:"w-e-image-dragger left-top"}),fe("div",{className:"w-e-image-dragger right-top"}),fe("div",{className:"w-e-image-dragger left-bottom"}),fe("div",{className:"w-e-image-dragger right-bottom"}))}It({target:"Number",proto:!0,forced:lt(function(){return Pc(8e-5,3)!=="0.000"||Pc(.9,0)!=="1"||Pc(1.255,2)!=="1.25"||Pc(1000000000000000100,0)!=="1000000000000000128"})||!lt(function(){Pc({})})},{toFixed:function(e){var t,n,r,i,o=DJ(this),a=us(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw AJ("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return _7(o);if(o<0&&(s="-",o=-o),o>1e-21)if(n=(t=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(o*hs(2,69,1))-69)<0?o*hs(2,-t,1):o/hs(2,t,1),n*=4503599627370496,(t=52-t)>0){for(gs(u,0,n),r=a;r>=7;)gs(u,1e7,0),r-=7;for(gs(u,hs(10,r,1),0),r=t-1;r>=23;)db(u,1<<23),r-=23;db(u,1<<r),gs(u,1,1),db(u,2),l=j7(u)}else gs(u,0,n),gs(u,1<<-t,0),l=j7(u)+fb("0",a);return l=a>0?s+((i=l.length)<=a?"0."+fb("0",a-i)+l:I7(l,0,i-a)+"."+I7(l,i-a)):s+l}});var BJ={type:"image",renderElem:function(e,t,n){var r=e,i=r.src,o=r.alt,a=o===void 0?"":o,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,m=p===void 0?"":p,v=A.isNodeSelected(n,e),g={};d&&(g.width="100%"),m&&(g.height="100%");var y=fe("img",{style:g,src:i,alt:a,"data-href":s}),h=n.isDisabled();return v&&!h?OJ(n,e,y,{width:d,height:m}):function($,w,x,S){var C=S.width,N=S.height,R={};C&&(R.width=C),N&&(R.height=N);var U=R7($,w);return fe("div",{id:U,style:R,className:"w-e-image-container"},x)}(n,e,y,{width:d,height:m})}},FJ={type:"image",elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,o=i===void 0?"":i,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,m="";return f&&(m+="width: "+f+";"),p&&(m+="height: "+p+";"),'<img src="'+r+'" alt="'+o+'" data-href="'+u+'" style="'+m+'"/>'}},TJ={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e),i=r.attr("data-href")||"";return i=decodeURIComponent(i),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:i,style:{width:gr(r,"width"),height:gr(r,"height")},children:[{text:""}]}}};function L7(e,t,n,r,i){return r===void 0&&(r=""),i===void 0&&(i=""),Xi(this,void 0,void 0,function(){var o,a;return Ji(this,function(u){switch(u.label){case 0:return(o=t.getMenuConfig(e).checkImage)?[4,o(n,r,i)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function M7(e,t,n){return Xi(this,void 0,void 0,function(){var r;return Ji(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function Ea(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Xi(this,void 0,void 0,function(){var i,o,a;return Ji(this,function(u){switch(u.label){case 0:return[4,L7("insertImage",e,t,n,r)];case 1:return u.sent()?[4,M7("insertImage",e,t)]:[2];case 2:return i=u.sent(),o={type:"image",src:ub(i),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),A.getSelectedNodeByType(e,"image")&&e.move(1),jh(e)?[2]:(_.insertNodes(e,o),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(o),[2])}})})}function kJ(e,t,n,r,i){return n===void 0&&(n=""),r===void 0&&(r=""),i===void 0&&(i={}),Xi(this,void 0,void 0,function(){var o,a,u,s,l,c;return Ji(this,function(f){switch(f.label){case 0:return[4,L7("editImage",e,t,n,r)];case 1:return f.sent()?[4,M7("editImage",e,t)]:[2];case 2:return o=f.sent(),(a=A.getSelectedNodeByType(e,"image"))==null?[2]:(u=a.style,s={src:o,alt:n,href:r,style:Yi(Yi({},u===void 0?{}:u),i)},_.setNodes(e,s,{match:function(d){return A.checkNodeType(d,"image")}}),l=A.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l),[2])}})})}function jh(e){var t=e.selection;return t==null||!j.isCollapsed(t)||!!Pe(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function Rh(){return Ih("w-e-insert-image")}var PJ=function(){function e(){this.title=K("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=Rh(),this.altInputId=Rh(),this.hrefInputId=Rh(),this.buttonId=Rh()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return jh(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Pe(Cn(K("image.src"),i),2),l=s[0],c=s[1],f=O(c),d=Pe(Cn(K("image.desc"),o),2),p=d[0],m=d[1],v=O(m),g=Pe(Cn(K("image.link"),a),2),y=g[0],h=g[1],$=O(h),w=Pe(Qu(u,K("common.ok")),1)[0];if(this.$content==null){var x=O("<div></div>");x.on("click","#"+u,function(C){C.preventDefault();var N=x.find("#"+i).val().trim(),R=x.find("#"+o).val().trim(),U=x.find("#"+a).val().trim();n.insertImage(t,N,R,U),t.hidePanelOrModal()}),this.$content=x}var S=this.$content;return S.empty(),S.append(l),S.append(p),S.append(y),S.append(w),f.val(""),v.val(""),$.val(""),setTimeout(function(){f.focus()}),S[0]},e.prototype.insertImage=function(t,n,r,i){r===void 0&&(r=""),i===void 0&&(i=""),n&&(t.restoreSelection(),this.isDisabled(t)||Ea(t,n,r,i))},e}(),_J=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||_.removeNodes(t,{match:function(r){return A.checkNodeType(r,"image")}})},e}();function Lh(){return Ih("w-e-edit-image")}var NJ=function(){function e(){this.title=K("image.edit"),this.iconSvg=g7,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Lh(),this.altInputId=Lh(),this.hrefInputId=Lh(),this.buttonId=Lh()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=Pe(Cn(K("image.src"),i),2),c=l[0],f=l[1],d=O(f),p=Pe(Cn(K("image.desc"),o),2),m=p[0],v=p[1],g=O(v),y=Pe(Cn(K("image.link"),a),2),h=y[0],$=y[1],w=O($),x=Pe(Qu(u,K("common.ok")),1)[0];if(this.$content==null){var S=O("<div></div>");S.on("click","#"+u,function(le){le.preventDefault();var te=S.find("#"+i).val(),ue=S.find("#"+o).val(),he=S.find("#"+a).val();n.updateImage(t,te,ue,he),t.hidePanelOrModal()}),this.$content=S}var C=this.$content;C.empty(),C.append(c),C.append(m),C.append(h),C.append(x);var N=s,R=N.src,U=N.alt,W=U===void 0?"":U,Z=N.href,Q=Z===void 0?"":Z;return d.val(R),g.val(W),w.val(Q),setTimeout(function(){d.focus()}),C[0]},e.prototype.updateImage=function(t,n,r,i,o){r===void 0&&(r=""),i===void 0&&(i=""),o===void 0&&(o={}),n&&(t.restoreSelection(),this.isDisabled(t)||kJ(t,n,r,i,o))},e}(),IJ=function(){function e(){this.title=K("image.viewLink"),this.iconSvg=v7,this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),pb=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var i=A.getHoverbar(t);i&&i.hideAndClean();var o=r.style,a={style:Yi(Yi({},o===void 0?{}:o),{width:this.value,height:""})};_.setNodes(t,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},e}(),jJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return rt(t,e),t}(pb),RJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return rt(t,e),t}(pb),LJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return rt(t,e),t}(pb),z7={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},MJ={renderElems:[BJ],elemsToHtml:[FJ],parseElemsHtml:[TJ],menus:[{key:"insertImage",factory:function(){return new PJ},config:z7},{key:"deleteImage",factory:function(){return new _J}},{key:"editImage",factory:function(){return new NJ},config:z7},{key:"viewImageLink",factory:function(){return new IJ}},{key:"imageWidth30",factory:function(){return new jJ}},{key:"imageWidth50",factory:function(){return new RJ}},{key:"imageWidth100",factory:function(){return new LJ}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(i){return i.type==="image"||t(i)},r.isVoid=function(i){return i.type==="image"||n(i)},r}},zJ={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var i=e.checked,o=fe("div",{style:{margin:"5px 0"}},fe("span",{contentEditable:!1,style:{marginRight:"0.5em"}},fe("input",{type:"checkbox",checked:i,disabled:r,on:{change:function(a){var u=A.findPath(n,e),s={checked:a.target.checked};_.setNodes(n,s,{at:u})}}})),fe("span",null,t));return o}},HJ=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);_.setNodes(t,{type:r?"paragraph":"todo"})},e}(),UJ={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(o){return!!J.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(i=!0),{type:"todo",checked:i,children:t}}},VJ={renderElems:[zJ],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=O(e).find("li"),n=O('<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:[UJ],menus:[{key:"todo",factory:function(){return new HJ}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var i=e.selection;if(i&&j.isCollapsed(i)){var o=A.getSelectedNodeByType(e,"todo");if(o&&q.string(o).length===0)return void _.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},WJ={type:"blockquote",renderElem:function(e,t,n){return fe("blockquote",null,t)}},GJ={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},qJ={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!J.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},KJ=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Pe(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";_.setNodes(t,{type:r},{mode:"highest"})}},e}(),YJ={key:"blockquote",factory:function(){return new KJ}},XJ=ce([].slice),JJ=k2("slice"),ZJ=On("species"),hb=me.Array,QJ=Math.max;It({target:"Array",proto:!0,forced:!JJ},{slice:function(e,t){var n,r,i,o=rs(this),a=Oh(o),u=bc(e,a),s=bc(t===void 0?a:t,a);if(Fh(o)&&(n=o.constructor,(T2(n)&&(n===hb||Fh(n.prototype))||Xn(n)&&(n=n[ZJ])===null)&&(n=void 0),n===hb||n===void 0))return XJ(o,u,s);for(r=new(n===void 0?hb:n)(QJ(s-u,0)),i=0;u<s;u++,i++)u in o&&i7(r,i,o[u]);return r.length=i,r}});var eZ={renderElems:[WJ],elemsToHtml:[GJ],parseElemsHtml:[qJ],menus:[YJ],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(i==null)return t();var o=Pe(E.nodes(e,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!o)return t();var a=o[0],u=A.findPath(e,a),s=E.end(e,u);if($e.equals(s,i.focus)){var l=q.string(a);if(l&&l.slice(-1)===`
  92. `)return e.deleteBackward("character"),void _.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
  93. `)},r}},tZ=function(){function e(){this.title=K("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(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Pe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=O('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(o){var a=o.target;if(a!=null){o.preventDefault();var u=O(a).text();t.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var i=t.getMenuConfig("emotion").emotions;return(i===void 0?[]:i).forEach(function(o){var a=O("<li>"+o+"</li>");r.append(a)}),r[0]},e}(),nZ={menus:[{key:"emotion",factory:function(){return new tZ},config:{emotions:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463} \u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(" ")}}]},rZ={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},iZ={selector:"font",preParseHtml:function(e){var t=O(e);if(ds(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",rZ[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},oZ=ce("".indexOf);It({target:"String",proto:!0,forced:!b7("includes")},{includes:function(e){return!!~oZ(ct(Yn(this)),ct(y7(e)),arguments.length>1?arguments[1]:void 0)}});var Zi,Mh,zh=function(e){return e&&e.Math==Math&&e},xe=zh(typeof globalThis=="object"&&globalThis)||zh(typeof window=="object"&&window)||zh(typeof self=="object"&&self)||zh(typeof bh=="object"&&bh)||function(){return this}()||Function("return this")(),gb=Function.prototype,H7=gb.apply,aZ=gb.bind,U7=gb.call,V7=typeof Reflect=="object"&&Reflect.apply||(aZ?U7.bind(H7):function(){return U7.apply(H7,arguments)}),W7=Function.prototype,vb=W7.bind,mb=W7.call,uZ=vb&&vb.bind(mb),mt=vb?function(e){return e&&uZ(mb,e)}:function(e){return e&&function(){return mb.apply(e,arguments)}},Yt=function(e){return typeof e=="function"},Fn=function(e){try{return!!e()}catch(t){return!0}},hn=!Fn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_c=Function.prototype.call,vr=_c.bind?_c.bind(_c):function(){return _c.apply(_c,arguments)},G7={}.propertyIsEnumerable,q7=Object.getOwnPropertyDescriptor,sZ=q7&&!G7.call({1:2},1)?function(e){var t=q7(this,e);return!!t&&t.enumerable}:G7,yb={f:sZ},xa=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lZ=mt({}.toString),cZ=mt("".slice),Sa=function(e){return cZ(lZ(e),8,-1)},bb=xe.Object,fZ=mt("".split),K7=Fn(function(){return!bb("z").propertyIsEnumerable(0)})?function(e){return Sa(e)=="String"?fZ(e,""):bb(e)}:bb,dZ=xe.TypeError,$b=function(e){if(e==null)throw dZ("Can't call method on "+e);return e},kr=function(e){return K7($b(e))},Zn=function(e){return typeof e=="object"?e!==null:Yt(e)},Qn={},Y7=function(e){return Yt(e)?e:void 0},Nc=function(e,t){return arguments.length<2?Y7(Qn[e])||Y7(xe[e]):Qn[e]&&Qn[e][t]||xe[e]&&xe[e][t]},X7=mt({}.isPrototypeOf),wb=Nc("navigator","userAgent")||"",J7=xe.process,Z7=xe.Deno,Q7=J7&&J7.versions||Z7&&Z7.version,e9=Q7&&Q7.v8;e9&&(Mh=(Zi=e9.split("."))[0]>0&&Zi[0]<4?1:+(Zi[0]+Zi[1])),!Mh&&wb&&(!(Zi=wb.match(/Edge\/(\d+)/))||Zi[1]>=74)&&(Zi=wb.match(/Chrome\/(\d+)/))&&(Mh=+Zi[1]);var Hh=Mh,Pr=!!Object.getOwnPropertySymbols&&!Fn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hh&&Hh<41}),Eb=Pr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pZ=xe.Object,vs=Eb?function(e){return typeof e=="symbol"}:function(e){var t=Nc("Symbol");return Yt(t)&&X7(t.prototype,pZ(e))},hZ=xe.String,gZ=xe.TypeError,t9=function(e){if(Yt(e))return e;throw gZ(function(t){try{return hZ(t)}catch(n){return"Object"}}(e)+" is not a function")},vZ=xe.TypeError,mZ=Object.defineProperty,Qi=xe["__core-js_shared__"]||function(e,t){try{mZ(xe,e,{value:t,configurable:!0,writable:!0})}catch(n){xe[e]=t}return t}("__core-js_shared__",{}),Da=$h(function(e){(e.exports=function(t,n){return Qi[t]||(Qi[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),yZ=xe.Object,Ic=function(e){return yZ($b(e))},bZ=mt({}.hasOwnProperty),_e=Object.hasOwn||function(e,t){return bZ(Ic(e),t)},$Z=0,wZ=Math.random(),EZ=mt(1 .toString),Uh=function(e){return"Symbol("+(e===void 0?"":e)+")_"+EZ(++$Z+wZ,36)},jc=Da("wks"),Ca=xe.Symbol,n9=Ca&&Ca.for,xZ=Eb?Ca:Ca&&Ca.withoutSetter||Uh,Tn=function(e){if(!_e(jc,e)||!Pr&&typeof jc[e]!="string"){var t="Symbol."+e;Pr&&_e(Ca,e)?jc[e]=Ca[e]:jc[e]=Eb&&n9?n9(t):xZ(t)}return jc[e]},SZ=xe.TypeError,DZ=Tn("toPrimitive"),CZ=function(e,t){if(!Zn(e)||vs(e))return e;var n,r,i=(n=e[DZ])==null?void 0:t9(n);if(i){if(t===void 0&&(t="default"),r=vr(i,e,t),!Zn(r)||vs(r))return r;throw SZ("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,a){var u,s;if(a==="string"&&Yt(u=o.toString)&&!Zn(s=vr(u,o))||Yt(u=o.valueOf)&&!Zn(s=vr(u,o))||a!=="string"&&Yt(u=o.toString)&&!Zn(s=vr(u,o)))return s;throw vZ("Can't convert object to primitive value")}(e,t)},ms=function(e){var t=CZ(e,"string");return vs(t)?t:t+""},xb=xe.document,AZ=Zn(xb)&&Zn(xb.createElement),r9=function(e){return AZ?xb.createElement(e):{}},i9=!hn&&!Fn(function(){return Object.defineProperty(r9("div"),"a",{get:function(){return 7}}).a!=7}),o9=Object.getOwnPropertyDescriptor,Sb={f:hn?o9:function(e,t){if(e=kr(e),t=ms(t),i9)try{return o9(e,t)}catch(n){}if(_e(e,t))return xa(!vr(yb.f,e,t),e[t])}},OZ=/#|\.prototype\./,Rc=function(e,t){var n=FZ[BZ(e)];return n==kZ||n!=TZ&&(Yt(t)?Fn(t):!!t)},BZ=Rc.normalize=function(e){return String(e).replace(OZ,".").toLowerCase()},FZ=Rc.data={},TZ=Rc.NATIVE="N",kZ=Rc.POLYFILL="P",PZ=Rc,a9=mt(mt.bind),u9=function(e,t){return t9(e),t===void 0?e:a9?a9(e,t):function(){return e.apply(t,arguments)}},_Z=xe.String,NZ=xe.TypeError,Aa=function(e){if(Zn(e))return e;throw NZ(_Z(e)+" is not an object")},IZ=xe.TypeError,s9=Object.defineProperty,Oa={f:hn?s9:function(e,t,n){if(Aa(e),t=ms(t),Aa(n),i9)try{return s9(e,t,n)}catch(r){}if("get"in n||"set"in n)throw IZ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_r=hn?function(e,t,n){return Oa.f(e,t,xa(1,n))}:function(e,t,n){return e[t]=n,e},jZ=Sb.f,RZ=function(e){var t=function(n,r,i){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,i)}return V7(e,this,arguments)};return t.prototype=e.prototype,t},eo=function(e,t){var n,r,i,o,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,m=f?xe:d?xe[c]:(xe[c]||{}).prototype,v=f?Qn:Qn[c]||_r(Qn,c,{})[c],g=v.prototype;for(i in t)n=!PZ(f?i:c+(d?".":"#")+i,e.forced)&&m&&_e(m,i),a=v[i],n&&(u=e.noTargetGet?(l=jZ(m,i))&&l.value:m[i]),o=n&&u?u:t[i],n&&typeof a==typeof o||(s=e.bind&&n?u9(o,xe):e.wrap&&n?RZ(o):p&&Yt(o)?mt(o):o,(e.sham||o&&o.sham||a&&a.sham)&&_r(s,"sham",!0),_r(v,i,s),p&&(_e(Qn,r=c+"Prototype")||_r(Qn,r,{}),_r(Qn[r],i,o),e.real&&g&&!g[i]&&_r(g,i,o)))},Vh=Array.isArray||function(e){return Sa(e)=="Array"},LZ=Math.ceil,MZ=Math.floor,Db=function(e){var t=+e;return t!=t||t===0?0:(t>0?MZ:LZ)(t)},zZ=Math.min,Wh=function(e){return(t=e.length)>0?zZ(Db(t),9007199254740991):0;var t},Cb=function(e,t,n){var r=ms(t);r in e?Oa.f(e,r,xa(0,n)):e[r]=n},l9={};l9[Tn("toStringTag")]="z";var Ab=String(l9)==="[object z]",HZ=Tn("toStringTag"),UZ=xe.Object,VZ=Sa(function(){return arguments}())=="Arguments",Gh=Ab?Sa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=UZ(e),HZ))=="string"?n:VZ?Sa(t):(r=Sa(t))=="Object"&&Yt(t.callee)?"Arguments":r},WZ=mt(Function.toString);Yt(Qi.inspectSource)||(Qi.inspectSource=function(e){return WZ(e)});var c9=Qi.inspectSource,f9=function(){},GZ=[],d9=Nc("Reflect","construct"),Ob=/^\s*(?:class|function)\b/,qZ=mt(Ob.exec),KZ=!Ob.exec(f9),Lc=function(e){if(!Yt(e))return!1;try{return d9(f9,GZ,e),!0}catch(t){return!1}},YZ=!d9||Fn(function(){var e;return Lc(Lc.call)||!Lc(Object)||!Lc(function(){e=!0})||e})?function(e){if(!Yt(e))return!1;switch(Gh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return KZ||!!qZ(Ob,c9(e))}:Lc,XZ=Tn("species"),p9=xe.Array,h9=function(e,t){return new(function(n){var r;return Vh(n)&&(r=n.constructor,(YZ(r)&&(r===p9||Vh(r.prototype))||Zn(r)&&(r=r[XZ])===null)&&(r=void 0)),r===void 0?p9:r}(e))(t===0?0:t)},JZ=Tn("species"),g9=Tn("isConcatSpreadable"),v9=xe.TypeError,ZZ=Hh>=51||!Fn(function(){var e=[];return e[g9]=!1,e.concat()[0]!==e}),QZ=function(e){return Hh>=51||!Fn(function(){var t=[];return(t.constructor={})[JZ]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("concat"),eQ=function(e){if(!Zn(e))return!1;var t=e[g9];return t!==void 0?!!t:Vh(e)};eo({target:"Array",proto:!0,forced:!ZZ||!QZ},{concat:function(e){var t,n,r,i,o,a=Ic(this),u=h9(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(eQ(o=t===-1?a:arguments[t])){if(s+(i=Wh(o))>9007199254740991)throw v9("Maximum allowed index exceeded");for(n=0;n<i;n++,s++)n in o&&Cb(u,s,o[n])}else{if(s>=9007199254740991)throw v9("Maximum allowed index exceeded");Cb(u,s++,o)}return u.length=s,u}});var qh,tQ=xe.String,Kh=function(e){if(Gh(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return tQ(e)},nQ=Math.max,rQ=Math.min,Bb=function(e,t){var n=Db(e);return n<0?nQ(n+t,0):rQ(n,t)},m9=function(e){return function(t,n,r){var i,o=kr(t),a=Wh(o),u=Bb(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},iQ={includes:m9(!0),indexOf:m9(!1)},Mc={},oQ=iQ.indexOf,y9=mt([].push),b9=function(e,t){var n,r=kr(e),i=0,o=[];for(n in r)!_e(Mc,n)&&_e(r,n)&&y9(o,n);for(;t.length>i;)_e(r,n=t[i++])&&(~oQ(o,n)||y9(o,n));return o},Yh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fb=Object.keys||function(e){return b9(e,Yh)},aQ=hn?Object.defineProperties:function(e,t){Aa(e);for(var n,r=kr(t),i=Fb(t),o=i.length,a=0;o>a;)Oa.f(e,n=i[a++],r[n]);return e},uQ=Nc("document","documentElement"),$9=Da("keys"),Xh=function(e){return $9[e]||($9[e]=Uh(e))},w9=Xh("IE_PROTO"),Tb=function(){},E9=function(e){return"<script>"+e+"</script>"},x9=function(e){e.write(E9("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jh=function(){try{qh=new ActiveXObject("htmlfile")}catch(r){}var e,t;Jh=typeof document!="undefined"?document.domain&&qh?x9(qh):((t=r9("iframe")).style.display="none",uQ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(E9("document.F=Object")),e.close(),e.F):x9(qh);for(var n=Yh.length;n--;)delete Jh.prototype[Yh[n]];return Jh()};Mc[w9]=!0;var Zh,zc,Qh,Ba=Object.create||function(e,t){var n;return e!==null?(Tb.prototype=Aa(e),n=new Tb,Tb.prototype=null,n[w9]=e):n=Jh(),t===void 0?n:aQ(n,t)},sQ=Yh.concat("length","prototype"),S9={f:Object.getOwnPropertyNames||function(e){return b9(e,sQ)}},lQ=xe.Array,cQ=Math.max,D9=S9.f,C9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fQ=function(e){try{return D9(e)}catch(t){return function(n,r,i){for(var o=Wh(n),a=Bb(r,o),u=Bb(i===void 0?o:i,o),s=lQ(cQ(u-a,0)),l=0;a<u;a++,l++)Cb(s,l,n[a]);return s.length=l,s}(C9)}},A9={f:function(e){return C9&&Sa(e)=="Window"?fQ(e):D9(kr(e))}},kb={f:Object.getOwnPropertySymbols},dQ=mt([].slice),ys=function(e,t,n,r){r&&r.enumerable?e[t]=n:_r(e,t,n)},Pb={f:Tn},pQ=Oa.f,Et=function(e){var t=Qn.Symbol||(Qn.Symbol={});_e(t,e)||pQ(t,e,{value:Pb.f(e)})},hQ=Ab?{}.toString:function(){return"[object "+Gh(this)+"]"},gQ=Oa.f,O9=Tn("toStringTag"),eg=function(e,t,n,r){if(e){var i=n?e:e.prototype;_e(i,O9)||gQ(i,O9,{configurable:!0,value:t}),r&&!Ab&&_r(i,"toString",hQ)}},B9=xe.WeakMap,vQ=Yt(B9)&&/native code/.test(c9(B9)),_b=xe.TypeError,mQ=xe.WeakMap;if(vQ||Qi.state){var Fa=Qi.state||(Qi.state=new mQ),yQ=mt(Fa.get),F9=mt(Fa.has),bQ=mt(Fa.set);Zh=function(e,t){if(F9(Fa,e))throw new _b("Object already initialized");return t.facade=e,bQ(Fa,e,t),t},zc=function(e){return yQ(Fa,e)||{}},Qh=function(e){return F9(Fa,e)}}else{var bs=Xh("state");Mc[bs]=!0,Zh=function(e,t){if(_e(e,bs))throw new _b("Object already initialized");return t.facade=e,_r(e,bs,t),t},zc=function(e){return _e(e,bs)?e[bs]:{}},Qh=function(e){return _e(e,bs)}}var $s={set:Zh,get:zc,has:Qh,enforce:function(e){return Qh(e)?zc(e):Zh(e,{})},getterFor:function(e){return function(t){var n;if(!Zn(t)||(n=zc(t)).type!==e)throw _b("Incompatible receiver, "+e+" required");return n}}},T9=mt([].push),to=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=Ic(s),v=K7(m),g=u9(l,c),y=Wh(v),h=0,$=f||h9,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:T9(w,d)}else switch(e){case 4:return!1;case 7:T9(w,d)}return o?-1:r||i?i:w}},tg={forEach:to(0),map:to(1),filter:to(2),some:to(3),every:to(4),find:to(5),findIndex:to(6),filterReject:to(7)}.forEach,gn=Xh("hidden"),k9=Tn("toPrimitive"),$Q=$s.set,P9=$s.getterFor("Symbol"),mr=Object.prototype,no=xe.Symbol,ro=no&&no.prototype,_9=xe.TypeError,Nb=xe.QObject,Hc=Nc("JSON","stringify"),N9=Sb.f,io=Oa.f,I9=A9.f,wQ=yb.f,j9=mt([].push),di=Da("symbols"),Uc=Da("op-symbols"),Ib=Da("string-to-symbol-registry"),jb=Da("symbol-to-string-registry"),EQ=Da("wks"),Rb=!Nb||!Nb.prototype||!Nb.prototype.findChild,Lb=hn&&Fn(function(){return Ba(io({},"a",{get:function(){return io(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=N9(mr,t);r&&delete mr[t],io(e,t,n),r&&e!==mr&&io(mr,t,r)}:io,Mb=function(e,t){var n=di[e]=Ba(ro);return $Q(n,{type:"Symbol",tag:e,description:t}),hn||(n.description=t),n},ng=function(e,t,n){e===mr&&ng(Uc,t,n),Aa(e);var r=ms(t);return Aa(n),_e(di,r)?(n.enumerable?(_e(e,gn)&&e[gn][r]&&(e[gn][r]=!1),n=Ba(n,{enumerable:xa(0,!1)})):(_e(e,gn)||io(e,gn,xa(1,{})),e[gn][r]=!0),Lb(e,r,n)):io(e,r,n)},R9=function(e,t){Aa(e);var n=kr(t),r=Fb(n).concat(zb(n));return tg(r,function(i){hn&&!vr(L9,n,i)||ng(e,i,n[i])}),e},L9=function(e){var t=ms(e),n=vr(wQ,this,t);return!(this===mr&&_e(di,t)&&!_e(Uc,t))&&(!(n||!_e(this,t)||!_e(di,t)||_e(this,gn)&&this[gn][t])||n)},M9=function(e,t){var n=kr(e),r=ms(t);if(n!==mr||!_e(di,r)||_e(Uc,r)){var i=N9(n,r);return!i||!_e(di,r)||_e(n,gn)&&n[gn][r]||(i.enumerable=!0),i}},z9=function(e){var t=I9(kr(e)),n=[];return tg(t,function(r){_e(di,r)||_e(Mc,r)||j9(n,r)}),n},zb=function(e){var t=e===mr,n=I9(t?Uc:kr(e)),r=[];return tg(n,function(i){!_e(di,i)||t&&!_e(mr,i)||j9(r,di[i])}),r};if(Pr||(ro=(no=function(){if(X7(ro,this))throw _9("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Kh(arguments[0]):void 0,t=Uh(e),n=function(r){this===mr&&vr(n,Uc,r),_e(this,gn)&&_e(this[gn],t)&&(this[gn][t]=!1),Lb(this,t,xa(1,r))};return hn&&Rb&&Lb(mr,t,{configurable:!0,set:n}),Mb(t,e)}).prototype,ys(ro,"toString",function(){return P9(this).tag}),ys(no,"withoutSetter",function(e){return Mb(Uh(e),e)}),yb.f=L9,Oa.f=ng,Sb.f=M9,S9.f=A9.f=z9,kb.f=zb,Pb.f=function(e){return Mb(Tn(e),e)},hn&&io(ro,"description",{configurable:!0,get:function(){return P9(this).description}})),eo({global:!0,wrap:!0,forced:!Pr,sham:!Pr},{Symbol:no}),tg(Fb(EQ),function(e){Et(e)}),eo({target:"Symbol",stat:!0,forced:!Pr},{for:function(e){var t=Kh(e);if(_e(Ib,t))return Ib[t];var n=no(t);return Ib[t]=n,jb[n]=t,n},keyFor:function(e){if(!vs(e))throw _9(e+" is not a symbol");if(_e(jb,e))return jb[e]},useSetter:function(){Rb=!0},useSimple:function(){Rb=!1}}),eo({target:"Object",stat:!0,forced:!Pr,sham:!hn},{create:function(e,t){return t===void 0?Ba(e):R9(Ba(e),t)},defineProperty:ng,defineProperties:R9,getOwnPropertyDescriptor:M9}),eo({target:"Object",stat:!0,forced:!Pr},{getOwnPropertyNames:z9,getOwnPropertySymbols:zb}),eo({target:"Object",stat:!0,forced:Fn(function(){kb.f(1)})},{getOwnPropertySymbols:function(e){return kb.f(Ic(e))}}),Hc){var xQ=!Pr||Fn(function(){var e=no();return Hc([e])!="[null]"||Hc({a:e})!="{}"||Hc(Object(e))!="{}"});eo({target:"JSON",stat:!0,forced:xQ},{stringify:function(e,t,n){var r=dQ(arguments),i=t;if((Zn(t)||e!==void 0)&&!vs(e))return Vh(t)||(t=function(o,a){if(Yt(i)&&(a=vr(i,this,o,a)),!vs(a))return a}),r[1]=t,V7(Hc,null,r)}})}if(!ro[k9]){var SQ=ro.valueOf;ys(ro,k9,function(e){return vr(SQ,this)})}eg(no,"Symbol"),Mc[gn]=!0,Et("asyncIterator"),Et("hasInstance"),Et("isConcatSpreadable"),Et("iterator"),Et("match"),Et("matchAll"),Et("replace"),Et("search"),Et("species"),Et("split"),Et("toPrimitive"),Et("toStringTag"),Et("unscopables"),eg(xe.JSON,"JSON",!0);var oo,H9,U9,DQ=Qn.Symbol,Ta={},V9=Function.prototype,CQ=hn&&Object.getOwnPropertyDescriptor,Hb=_e(V9,"name"),AQ={EXISTS:Hb,PROPER:Hb&&function(){}.name==="something",CONFIGURABLE:Hb&&(!hn||hn&&CQ(V9,"name").configurable)},OQ=!Fn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),W9=Xh("IE_PROTO"),Ub=xe.Object,BQ=Ub.prototype,Vb=OQ?Ub.getPrototypeOf:function(e){var t=Ic(e);if(_e(t,W9))return t[W9];var n=t.constructor;return Yt(n)&&t instanceof n?n.prototype:t instanceof Ub?BQ:null},Wb=Tn("iterator"),G9=!1;[].keys&&("next"in(U9=[].keys())?(H9=Vb(Vb(U9)))!==Object.prototype&&(oo=H9):G9=!0);var FQ=oo==null||Fn(function(){var e={};return oo[Wb].call(e)!==e});oo=FQ?{}:Ba(oo),Yt(oo[Wb])||ys(oo,Wb,function(){return this});var q9={IteratorPrototype:oo,BUGGY_SAFARI_ITERATORS:G9},TQ=q9.IteratorPrototype,kQ=function(){return this};xe.String,xe.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e,t=!1,n={};try{(e=mt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}}();var PQ=AQ.PROPER,rg=q9.BUGGY_SAFARI_ITERATORS,Gb=Tn("iterator"),_Q=function(){return this},K9=function(e,t,n,r,i,o,a){(function(y,h,$,w){var x=h+" Iterator";y.prototype=Ba(TQ,{next:xa(+!w,$)}),eg(y,x,!1,!0),Ta[x]=kQ})(n,t,r);var u,s,l,c=function(y){if(y===i&&v)return v;if(!rg&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,m=p[Gb]||p["@@iterator"]||i&&p[i],v=!rg&&m||c(i),g=t=="Array"&&p.entries||m;if(g&&(u=Vb(g.call(new e)))!==Object.prototype&&u.next&&(eg(u,f,!0,!0),Ta[f]=_Q),PQ&&i=="values"&&m&&m.name!=="values"&&(d=!0,v=function(){return vr(m,this)}),i)if(s={values:c("values"),keys:o?v:c("keys"),entries:c("entries")},a)for(l in s)(rg||d||!(l in p))&&ys(p,l,s[l]);else eo({target:t,proto:!0,forced:rg||d},s);return a&&p[Gb]!==v&&ys(p,Gb,v,{name:i}),Ta[t]=v,s},NQ=$s.set,IQ=$s.getterFor("Array Iterator");K9(Array,"Array",function(e,t){NQ(this,{type:"Array Iterator",target:kr(e),index:0,kind:t})},function(){var e=IQ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Ta.Arguments=Ta.Array;var Y9=Tn("toStringTag");for(var qb 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 X9=xe[qb],Kb=X9&&X9.prototype;Kb&&Gh(Kb)!==Y9&&_r(Kb,Y9,qb),Ta[qb]=Ta.Array}var jQ=DQ;Et("asyncDispose"),Et("dispose"),Et("matcher"),Et("metadata"),Et("observable"),Et("patternMatch"),Et("replaceAll");var ig=jQ,RQ=mt("".charAt),J9=mt("".charCodeAt),LQ=mt("".slice),Z9=function(e){return function(t,n){var r,i,o=Kh($b(t)),a=Db(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=J9(o,a))<55296||r>56319||a+1===u||(i=J9(o,a+1))<56320||i>57343?e?RQ(o,a):r:e?LQ(o,a,a+2):i-56320+(r-55296<<10)+65536}},MQ={codeAt:Z9(!1),charAt:Z9(!0)}.charAt,zQ=$s.set,HQ=$s.getterFor("String Iterator");K9(String,"String",function(e){zQ(this,{type:"String Iterator",string:Kh(e),index:0})},function(){var e,t=HQ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=MQ(n,r),t.index+=e.length,{value:e,done:!1})});var UQ=Pb.f("iterator"),VQ=$h(function(e){function t(n){return typeof ig=="function"&&typeof UQ=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof ig=="function"&&r.constructor===ig&&r!==ig.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),Q9=aK(VQ),WQ=Ah.EXISTS,GQ=is.f,eO=Function.prototype,qQ=ce(eO.toString),tO=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,KQ=ce(tO.exec);hr&&!WQ&&GQ(eO,"name",{configurable:!0,get:function(){try{return KQ(tO,qQ(this))[1]}catch(e){return""}}});var nO=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Pe(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),YQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("fontSize.title"),n.iconSvg=gX,n.mark="fontSize",n}return rt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontSizeList,o=i===void 0?[]:i;r.push({text:K("fontSize.default"),value:""}),o.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(Q9(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(nO),XQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("fontFamily.title"),n.iconSvg=vX,n.mark="fontFamily",n.selectPanelWidth=150,n}return rt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontFamilyList,o=i===void 0?[]:i;r.push({text:K("fontFamily.default"),value:""}),o.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(Q9(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(nO),JQ={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,o=t;return r&&wa(o,{fontSize:r}),i&&wa(o,{fontFamily:i}),o},styleToHtml:function(e,t){if(!J.isText(e))return t;var n,r=e,i=r.fontSize,o=r.fontFamily;return i||o?((Q2(t)||ds(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),i&&n.css("font-size",i),o&&n.css("font-family",o),fs(n)):t},preParseHtml:[iZ],parseStyleHtml:function(e,t,n){var r=O(e);if(!J.isText(t))return t;var i=t,o=n.getMenuConfig("fontSize").fontSizeList,a=o===void 0?[]:o,u=gr(r,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(i.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=gr(r,"font-family"),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(i.fontFamily=f),i},menus:[{key:"fontSize",factory:function(){return new YQ},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 XQ},config:{fontFamilyList:["\u9ED1\u4F53",{name:"\u4EFF\u5B8B",value:"\u4EFF\u5B8B"},"\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53",{name:"\u5B8B\u4F53",value:"\u5B8B\u4F53"},"\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},ZQ={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=O(e),n=gr(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]}},rO=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Pe(E.nodes(t,{match:function(i){return!!i.indent},universal:!0}),1),r=n[0];return r==null?"":Pe(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Pe(E.nodes(t,{match:function(r){var i=A.getNodeType(r);return i==="paragraph"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),QQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("indent.decrease"),n.iconSvg=mX,n}return rt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){_.setNodes(n,{indent:null},{match:function(i){return ne.isElement(i)}})},t}(rO),eee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("indent.increase"),n.iconSvg=yX,n}return rt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){_.setNodes(n,{indent:"2em"},{match:function(i){return ne.isElement(i)},mode:"highest"})},t}(rO),tee={renderStyle:function(e,t){if(!ne.isElement(e))return t;var n=e.indent,r=t;return n&&wa(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!ne.isElement(e))return t;var n=e.indent;if(!n)return t;var r=O(t);return r.css("text-indent",n),fs(r)},preParseHtml:[ZQ],parseStyleHtml:function(e,t,n){var r=O(e);if(!ne.isElement(t))return t;var i=t,o=gr(r,"text-indent"),a=parseInt(o,10);return o&&a>0&&(i.indent=o),i},menus:[{key:"indent",factory:function(){return new eee}},{key:"delIndent",factory:function(){return new QQ}}]},og=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Pe(E.nodes(t,{match:function(r){var i=A.getNodeType(r);return i==="paragraph"||i==="blockquote"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),nee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("justify.left"),n.iconSvg=bX,n}return rt(t,e),t.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"left"},{match:function(i){return ne.isElement(i)&&!n.isInline(i)}})},t}(og),ree=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("justify.right"),n.iconSvg=$X,n}return rt(t,e),t.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"right"},{match:function(i){return ne.isElement(i)&&!n.isInline(i)}})},t}(og),iee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("justify.center"),n.iconSvg=wX,n}return rt(t,e),t.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"center"},{match:function(i){return ne.isElement(i)&&!n.isInline(i)}})},t}(og),oee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=K("justify.justify"),n.iconSvg=EX,n}return rt(t,e),t.prototype.exec=function(n,r){_.setNodes(n,{textAlign:"justify"},{match:function(i){return ne.isElement(i)&&!n.isInline(i)}})},t}(og),aee={renderStyle:function(e,t){if(!ne.isElement(e))return t;var n=e.textAlign,r=t;return n&&wa(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!ne.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=O(t);return r.css("text-align",n),fs(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!ne.isElement(t))return t;var i=t,o=gr(r,"text-align");return o&&(i.textAlign=o),i},menus:[{key:"justifyLeft",factory:function(){return new nee}},{key:"justifyRight",factory:function(){return new ree}},{key:"justifyCenter",factory:function(){return new iee}},{key:"justifyJustify",factory:function(){return new oee}}]},uee=function(){function e(){this.title=K("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(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,i=r===void 0?[]:r;n.push({text:K("lineHeight.default"),value:""}),i.forEach(function(a){n.push({text:a,value:a})});var o=this.getValue(t);return n.forEach(function(a){a.value===o?a.selected=!0:delete a.selected}),n},e.prototype.getMatchNode=function(t){var n=Pe(E.nodes(t,{match:function(r){var i=A.getNodeType(r);return!!i.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(i)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":ne.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){_.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),see={renderStyle:function(e,t){if(!ne.isElement(e))return t;var n=e.lineHeight,r=t;return n&&wa(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!ne.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=O(t);return r.css("line-height",n),fs(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!ne.isElement(t))return t;var i=t,o=n.getMenuConfig("lineHeight").lineHeightList,a=o===void 0?[]:o,u=gr(r,"line-height");return u&&a.includes(u)&&(i.lineHeight=u),i},menus:[{key:"lineHeight",factory:function(){return new uee},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},lee=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),cee=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),fee={menus:[{key:"redo",factory:function(){return new lee}},{key:"undo",factory:function(){return new cee}}]},dee={type:"divider",renderElem:function(e,t,n){var r=A.isNodeSelected(n,e);return Cu("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(i){return i.preventDefault()}}},[Cu("hr")])}},pee={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},hee={selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},gee=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){_.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),vee={renderElems:[dee],elemsToHtml:[pee],parseElemsHtml:[hee],menus:[{key:"divider",factory:function(){return new gee}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(i){return i.type==="divider"||t(i)},r.normalizeNode=function(i){var o=Pe(i,2),a=o[0],u=o[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&_.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},mee=Th.map;It({target:"Array",proto:!0,forced:!k2("map")},{map:function(e){return mee(this,e,arguments.length>1?arguments[1]:void 0)}});var yee=ce([].join),bee=xh!=Object,$ee=d7("join",",");It({target:"Array",proto:!0,forced:bee||!$ee},{join:function(e){return yee(rs(this),e===void 0?",":e)}});var wee=function(){function e(){this.title=K("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(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return r==null||A.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=A.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var i=A.getNodeType(r);if(i==="pre"||i==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=q.string(n);_.removeNodes(t,{mode:"highest"});var i=r.split(`
  94. `).map(function(o){return{type:"paragraph",children:[{text:o}]}});_.insertNodes(t,i,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,i,o=[],a=E.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=s7(a),s=u.next();!s.done;s=u.next()){var l=Pe(s.value,1)[0];l&&o.push(q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}_.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:o.join(`
  95. `)}]}]};_.insertNodes(t,c,{mode:"highest"})},e}(),Eee={key:"codeBlock",factory:function(){return new wee}};It({target:"String",proto:!0,forced:Oc("anchor")},{anchor:function(e){return Ac(this,"a","name",e)}}),U2("match",function(e,t,n){return[function(r){var i=Yn(this),o=r==null?void 0:Sh(r,e);return o?vt(o,r,i):new RegExp(r)[e](ct(i))},function(r){var i=Bn(this),o=ct(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return Sc(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=Sc(i,o))!==null;){var f=ct(s[0]);l[c]=f,f===""&&(i.lastIndex=V2(o,$c(i.lastIndex),u)),c++}return c===0?null:l}]});var xee={type:"pre",renderElem:function(e,t,n){return fe("pre",null,t)}},See={type:"code",renderElem:function(e,t,n){return fe("code",null,t)}},Dee={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return A.getNodeType(i)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(i){return A.getNodeType(i)==="code"})}}},Cee={menus:[Eee],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var o=A.getSelectedNodeByType(i,"code");if(o!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=q.string(l),p=f.anchor.offset,m=d.slice(0,p).split(`
  96. `),v=m.length;return v===0?"":m[v-1]}(o,i);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void i.insertText(`
  97. `+s)}}i.insertText(`
  98. `)}else t()},i.normalizeNode=function(o){var a=Pe(o,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&_.setNodes(i,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(i,u)&&_.insertNodes(i,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(_.unwrapNodes(i),_.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([u,s])},i.insertData=function(o){if(A.getSelectedNodeByType(i,"code")!=null){var a=o.getData("text/plain");E.insertText(i,a)}else r(o)},i},renderElems:[xee,See],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=O(e);if(ds(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)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:O(e)[0].textContent||""}]}}},Dee]},Aee=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Oee={menus:[{key:"fullScreen",factory:function(){return new Aee}}]},Bee=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!j.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var i=[r.anchor.path[0]];_.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:i}),t.select(E.start(t,i))}},e}(),Fee=[PX,fJ,JQ,tee,aee,see,MJ,vee,nZ,SJ,Cee,eZ,aJ,nX,VJ,fee,Oee,{menus:[{key:"enter",factory:function(){return new Bee}}]}];pn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),pn("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var iO=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function Yb(e){var t={exports:{}};return e(t,t.exports),t.exports}var ao,ag,ug=function(e){return e&&e.Math==Math&&e},de=ug(typeof globalThis=="object"&&globalThis)||ug(typeof window=="object"&&window)||ug(typeof self=="object"&&self)||ug(typeof iO=="object"&&iO)||function(){return this}()||Function("return this")(),oO=Function.prototype,Xb=oO.bind,Jb=oO.call,Tee=Xb&&Xb.bind(Jb),Ae=Xb?function(e){return e&&Tee(Jb,e)}:function(e){return e&&function(){return Jb.apply(e,arguments)}},ft=function(e){try{return!!e()}catch(t){return!0}},kee=Ae({}.toString),Pee=Ae("".slice),pi=function(e){return Pee(kee(e),8,-1)},Zb=de.Object,_ee=Ae("".split),aO=ft(function(){return!Zb("z").propertyIsEnumerable(0)})?function(e){return pi(e)=="String"?_ee(e,""):Zb(e)}:Zb,Nee=de.TypeError,sg=function(e){if(e==null)throw Nee("Can't call method on "+e);return e},ws=function(e){return aO(sg(e))},Iee=Object.defineProperty,Qb=function(e,t){try{Iee(de,e,{value:t,configurable:!0,writable:!0})}catch(n){de[e]=t}return t},uo=de["__core-js_shared__"]||Qb("__core-js_shared__",{}),e4=Yb(function(e){(e.exports=function(t,n){return uo[t]||(uo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),jee=de.Object,Vc=function(e){return jee(sg(e))},Ree=Ae({}.hasOwnProperty),jt=Object.hasOwn||function(e,t){return Ree(Vc(e),t)},Lee=0,Mee=Math.random(),zee=Ae(1 .toString),t4=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zee(++Lee+Mee,36)},dt=function(e){return typeof e=="function"},Hee=function(e){return dt(e)?e:void 0},Wc=function(e,t){return arguments.length<2?Hee(de[e]):de[e]&&de[e][t]},n4=Wc("navigator","userAgent")||"",uO=de.process,sO=de.Deno,lO=uO&&uO.versions||sO&&sO.version,cO=lO&&lO.v8;cO&&(ag=(ao=cO.split("."))[0]>0&&ao[0]<4?1:+(ao[0]+ao[1])),!ag&&n4&&(!(ao=n4.match(/Edge\/(\d+)/))||ao[1]>=74)&&(ao=n4.match(/Chrome\/(\d+)/))&&(ag=+ao[1]);var lg,r4=ag,i4=!!Object.getOwnPropertySymbols&&!ft(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r4&&r4<41}),o4=i4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Gc=e4("wks"),ka=de.Symbol,fO=ka&&ka.for,Uee=o4?ka:ka&&ka.withoutSetter||t4,Xt=function(e){if(!jt(Gc,e)||!i4&&typeof Gc[e]!="string"){var t="Symbol."+e;i4&&jt(ka,e)?Gc[e]=ka[e]:Gc[e]=o4&&fO?fO(t):Uee(t)}return Gc[e]},pt=function(e){return typeof e=="object"?e!==null:dt(e)},Vee=de.String,Wee=de.TypeError,vn=function(e){if(pt(e))return e;throw Wee(Vee(e)+" is not an object")},so=!ft(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),a4=de.document,Gee=pt(a4)&&pt(a4.createElement),u4=function(e){return Gee?a4.createElement(e):{}},dO=!so&&!ft(function(){return Object.defineProperty(u4("div"),"a",{get:function(){return 7}}).a!=7}),qc=Function.prototype.call,Rt=qc.bind?qc.bind(qc):function(){return qc.apply(qc,arguments)},cg=Ae({}.isPrototypeOf),qee=de.Object,s4=o4?function(e){return typeof e=="symbol"}:function(e){var t=Wc("Symbol");return dt(t)&&cg(t.prototype,qee(e))},Kee=de.String,l4=function(e){try{return Kee(e)}catch(t){return"Object"}},Yee=de.TypeError,c4=function(e){if(dt(e))return e;throw Yee(l4(e)+" is not a function")},Kc=function(e,t){var n=e[t];return n==null?void 0:c4(n)},Xee=de.TypeError,Jee=de.TypeError,Zee=Xt("toPrimitive"),Qee=function(e,t){if(!pt(e)||s4(e))return e;var n,r=Kc(e,Zee);if(r){if(t===void 0&&(t="default"),n=Rt(r,e,t),!pt(n)||s4(n))return n;throw Jee("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&dt(a=i.toString)&&!pt(u=Rt(a,i))||dt(a=i.valueOf)&&!pt(u=Rt(a,i))||o!=="string"&&dt(a=i.toString)&&!pt(u=Rt(a,i)))return u;throw Xee("Can't convert object to primitive value")}(e,t)},f4=function(e){var t=Qee(e,"string");return s4(t)?t:t+""},ete=de.TypeError,pO=Object.defineProperty,Pa={f:so?pO:function(e,t,n){if(vn(e),t=f4(t),vn(n),dO)try{return pO(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ete("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},tte=Math.ceil,nte=Math.floor,Yc=function(e){var t=+e;return t!=t||t===0?0:(t>0?nte:tte)(t)},rte=Math.max,ite=Math.min,d4=function(e,t){var n=Yc(e);return n<0?rte(n+t,0):ite(n,t)},ote=Math.min,hO=function(e){return e>0?ote(Yc(e),9007199254740991):0},Es=function(e){return hO(e.length)},gO=function(e){return function(t,n,r){var i,o=ws(t),a=Es(o),u=d4(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},vO={includes:gO(!0),indexOf:gO(!1)},fg={},ate=vO.indexOf,mO=Ae([].push),yO=function(e,t){var n,r=ws(e),i=0,o=[];for(n in r)!jt(fg,n)&&jt(r,n)&&mO(o,n);for(;t.length>i;)jt(r,n=t[i++])&&(~ate(o,n)||mO(o,n));return o},dg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ute=Object.keys||function(e){return yO(e,dg)},ste=so?Object.defineProperties:function(e,t){vn(e);for(var n,r=ws(t),i=ute(t),o=i.length,a=0;o>a;)Pa.f(e,n=i[a++],r[n]);return e},lte=Wc("document","documentElement"),bO=e4("keys"),p4=function(e){return bO[e]||(bO[e]=t4(e))},$O=p4("IE_PROTO"),h4=function(){},wO=function(e){return"<script>"+e+"</script>"},EO=function(e){e.write(wO("")),e.close();var t=e.parentWindow.Object;return e=null,t},pg=function(){try{lg=new ActiveXObject("htmlfile")}catch(r){}var e,t;pg=typeof document!="undefined"?document.domain&&lg?EO(lg):((t=u4("iframe")).style.display="none",lte.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wO("document.F=Object")),e.close(),e.F):EO(lg);for(var n=dg.length;n--;)delete pg.prototype[dg[n]];return pg()};fg[$O]=!0;var g4=Object.create||function(e,t){var n;return e!==null?(h4.prototype=vn(e),n=new h4,h4.prototype=null,n[$O]=e):n=pg(),t===void 0?n:ste(n,t)},v4=Xt("unscopables"),m4=Array.prototype;m4[v4]==null&&Pa.f(m4,v4,{configurable:!0,value:g4(null)});var Xc=function(e){m4[v4][e]=!0},xs={},cte=Ae(Function.toString);dt(uo.inspectSource)||(uo.inspectSource=function(e){return cte(e)});var hg,Jc,gg,y4=uo.inspectSource,xO=de.WeakMap,SO=dt(xO)&&/native code/.test(y4(xO)),vg=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hi=so?function(e,t,n){return Pa.f(e,t,vg(1,n))}:function(e,t,n){return e[t]=n,e},b4=de.TypeError,fte=de.WeakMap;if(SO||uo.state){var _a=uo.state||(uo.state=new fte),dte=Ae(_a.get),DO=Ae(_a.has),pte=Ae(_a.set);hg=function(e,t){if(DO(_a,e))throw new b4("Object already initialized");return t.facade=e,pte(_a,e,t),t},Jc=function(e){return dte(_a,e)||{}},gg=function(e){return DO(_a,e)}}else{var Ss=p4("state");fg[Ss]=!0,hg=function(e,t){if(jt(e,Ss))throw new b4("Object already initialized");return t.facade=e,hi(e,Ss,t),t},Jc=function(e){return jt(e,Ss)?e[Ss]:{}},gg=function(e){return jt(e,Ss)}}var Na,CO,AO,Nr={set:hg,get:Jc,has:gg,enforce:function(e){return gg(e)?Jc(e):hg(e,{})},getterFor:function(e){return function(t){var n;if(!pt(t)||(n=Jc(t)).type!==e)throw b4("Incompatible receiver, "+e+" required");return n}}},OO={}.propertyIsEnumerable,BO=Object.getOwnPropertyDescriptor,hte={f:BO&&!OO.call({1:2},1)?function(e){var t=BO(this,e);return!!t&&t.enumerable}:OO},FO=Object.getOwnPropertyDescriptor,TO={f:so?FO:function(e,t){if(e=ws(e),t=f4(t),dO)try{return FO(e,t)}catch(n){}if(jt(e,t))return vg(!Rt(hte.f,e,t),e[t])}},kO=Function.prototype,gte=so&&Object.getOwnPropertyDescriptor,$4=jt(kO,"name"),w4={EXISTS:$4,PROPER:$4&&function(){}.name==="something",CONFIGURABLE:$4&&(!so||so&&gte(kO,"name").configurable)},Ir=Yb(function(e){var t=w4.CONFIGURABLE,n=Nr.get,r=Nr.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;dt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jt(u,"name")||t&&u.name!==p)&&hi(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==de?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:hi(o,a,u)):f?o[a]=u:Qb(a,u)})(Function.prototype,"toString",function(){return dt(this)&&n(this).source||y4(this)})}),vte=dg.concat("length","prototype"),mg={f:Object.getOwnPropertyNames||function(e){return yO(e,vte)}},mte={f:Object.getOwnPropertySymbols},yte=Ae([].concat),bte=Wc("Reflect","ownKeys")||function(e){var t=mg.f(vn(e)),n=mte.f;return n?yte(t,n(e)):t},$te=function(e,t){for(var n=bte(t),r=Pa.f,i=TO.f,o=0;o<n.length;o++){var a=n[o];jt(e,a)||r(e,a,i(t,a))}},wte=/#|\.prototype\./,Zc=function(e,t){var n=xte[Ete(e)];return n==Dte||n!=Ste&&(dt(t)?ft(t):!!t)},Ete=Zc.normalize=function(e){return String(e).replace(wte,".").toLowerCase()},xte=Zc.data={},Ste=Zc.NATIVE="N",Dte=Zc.POLYFILL="P",E4=Zc,Cte=TO.f,lo=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?de:l?de[u]||Qb(u,{}):(de[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Cte(n,r))&&a.value:n[r],!E4(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;$te(o,i)}(e.sham||i&&i.sham)&&hi(o,"sham",!0),Ir(n,r,o,e)}},Ate=!ft(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),PO=p4("IE_PROTO"),x4=de.Object,Ote=x4.prototype,yg=Ate?x4.getPrototypeOf:function(e){var t=Vc(e);if(jt(t,PO))return t[PO];var n=t.constructor;return dt(n)&&t instanceof n?n.prototype:t instanceof x4?Ote:null},S4=Xt("iterator"),_O=!1;[].keys&&("next"in(AO=[].keys())?(CO=yg(yg(AO)))!==Object.prototype&&(Na=CO):_O=!0);var Bte=Na==null||ft(function(){var e={};return Na[S4].call(e)!==e});Bte&&(Na={}),dt(Na[S4])||Ir(Na,S4,function(){return this});var D4={IteratorPrototype:Na,BUGGY_SAFARI_ITERATORS:_O},Fte=Pa.f,NO=Xt("toStringTag"),C4=function(e,t,n){e&&!jt(e=n?e:e.prototype,NO)&&Fte(e,NO,{configurable:!0,value:t})},Tte=D4.IteratorPrototype,kte=function(){return this},Pte=de.String,_te=de.TypeError,bg=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(r,i){return vn(r),function(o){if(typeof o=="object"||dt(o))return o;throw _te("Can't set "+Pte(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Nte=w4.PROPER,Ite=w4.CONFIGURABLE,IO=D4.IteratorPrototype,$g=D4.BUGGY_SAFARI_ITERATORS,Qc=Xt("iterator"),jte=function(){return this},jO=function(e,t,n,r,i,o,a){(function(y,h,$,w){var x=h+" Iterator";y.prototype=g4(Tte,{next:vg(+!w,$)}),C4(y,x,!1),xs[x]=kte})(n,t,r);var u,s,l,c=function(y){if(y===i&&v)return v;if(!$g&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,m=p[Qc]||p["@@iterator"]||i&&p[i],v=!$g&&m||c(i),g=t=="Array"&&p.entries||m;if(g&&(u=yg(g.call(new e)))!==Object.prototype&&u.next&&(yg(u)!==IO&&(bg?bg(u,IO):dt(u[Qc])||Ir(u,Qc,jte)),C4(u,f,!0)),Nte&&i=="values"&&m&&m.name!=="values"&&(Ite?hi(p,"name","values"):(d=!0,v=function(){return Rt(m,this)})),i)if(s={values:c("values"),keys:o?v:c("keys"),entries:c("entries")},a)for(l in s)($g||d||!(l in p))&&Ir(p,l,s[l]);else lo({target:t,proto:!0,forced:$g||d},s);return p[Qc]!==v&&Ir(p,Qc,v,{name:i}),xs[t]=v,s},Rte=Nr.set,Lte=Nr.getterFor("Array Iterator"),ef=jO(Array,"Array",function(e,t){Rte(this,{type:"Array Iterator",target:ws(e),index:0,kind:t})},function(){var e=Lte(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");xs.Arguments=xs.Array,Xc("keys"),Xc("values"),Xc("entries");var RO={};RO[Xt("toStringTag")]="z";var A4=String(RO)==="[object z]",Mte=Xt("toStringTag"),zte=de.Object,Hte=pi(function(){return arguments}())=="Arguments",wg=A4?pi:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=zte(e),Mte))=="string"?n:Hte?pi(t):(r=pi(t))=="Object"&&dt(t.callee)?"Arguments":r},Ute=A4?{}.toString:function(){return"[object "+wg(this)+"]"};A4||Ir(Object.prototype,"toString",Ute,{unsafe:!0});var Vte=de.String,gi=function(e){if(wg(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vte(e)},Wte=Ae("".charAt),LO=Ae("".charCodeAt),Gte=Ae("".slice),MO=function(e){return function(t,n){var r,i,o=gi(sg(t)),a=Yc(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=LO(o,a))<55296||r>56319||a+1===u||(i=LO(o,a+1))<56320||i>57343?e?Wte(o,a):r:e?Gte(o,a,a+2):i-56320+(r-55296<<10)+65536}},zO={codeAt:MO(!1),charAt:MO(!0)},qte=zO.charAt,Kte=Nr.set,Yte=Nr.getterFor("String Iterator");jO(String,"String",function(e){Kte(this,{type:"String Iterator",string:gi(e),index:0})},function(){var e,t=Yte(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qte(n,r),t.index+=e.length,{value:e,done:!1})});var O4=function(e,t,n){for(var r in t)Ir(e,r,t[r],n);return e},Xte=de.Array,Jte=Math.max,HO=mg.f,UO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Zte=function(e){try{return HO(e)}catch(t){return function(n,r,i){for(var o,a,u,s,l=Es(n),c=d4(r,l),f=d4(i===void 0?l:i,l),d=Xte(Jte(f-c,0)),p=0;c<f;c++,p++)o=d,a=p,u=n[c],s=void 0,(s=f4(a))in o?Pa.f(o,s,vg(0,u)):o[s]=u;return d.length=p,d}(UO)}},Qte={f:function(e){return UO&&pi(e)=="Window"?Zte(e):HO(ws(e))}},VO=ft(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Eg=Object.isExtensible,Ia=ft(function(){Eg(1)})||VO?function(e){return!!pt(e)&&(!VO||pi(e)!="ArrayBuffer")&&(!Eg||Eg(e))}:Eg,ene=!ft(function(){return Object.isExtensible(Object.preventExtensions({}))}),B4=Yb(function(e){var t=Pa.f,n=!1,r=t4("meta"),i=0,o=function(u){t(u,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=mg.f,s=Ae([].splice),l={};l[r]=1,u(l).length&&(mg.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},lo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Qte.f}))},fastKey:function(u,s){if(!pt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!jt(u,r)){if(!Ia(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!jt(u,r)){if(!Ia(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return ene&&n&&Ia(u)&&!jt(u,r)&&o(u),u}};fg[r]=!0}),WO=Ae(Ae.bind),F4=function(e,t){return c4(e),t===void 0?e:WO?WO(e,t):function(){return e.apply(t,arguments)}},tne=Xt("iterator"),nne=Array.prototype,rne=Xt("iterator"),GO=function(e){if(e!=null)return Kc(e,rne)||Kc(e,"@@iterator")||xs[wg(e)]},ine=de.TypeError,qO=function(e,t,n){var r,i;vn(e);try{if(!(r=Kc(e,"return"))){if(t==="throw")throw n;return n}r=Rt(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return vn(r),n},one=de.TypeError,xg=function(e,t){this.stopped=e,this.result=t},KO=xg.prototype,YO=function(e,t,n){var r,i,o,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=F4(t,f),g=function(h){return r&&qO(r,"normal",h),new xg(!0,h)},y=function(h){return d?(vn(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(p)r=e;else{if(!(i=GO(e)))throw one(l4(e)+" is not iterable");if((c=i)!==void 0&&(xs.Array===c||nne[tne]===c)){for(o=0,a=Es(e);a>o;o++)if((u=y(e[o]))&&cg(KO,u))return u;return new xg(!1)}r=function(h,$){var w=arguments.length<2?GO(h):$;if(c4(w))return vn(Rt(w,h));throw ine(l4(h)+" is not iterable")}(e,i)}for(s=r.next;!(l=Rt(s,r)).done;){try{u=y(l.value)}catch(h){qO(r,"throw",h)}if(typeof u=="object"&&u&&cg(KO,u))return u}return new xg(!1)},ane=de.TypeError,XO=function(e,t){if(cg(t,e))return e;throw ane("Incorrect invocation")},JO=Xt("iterator"),ZO=!1;try{var une=0,QO={next:function(){return{done:!!une++}},return:function(){ZO=!0}};QO[JO]=function(){return this},Array.from(QO,function(){throw 2})}catch(e){}var T4=Array.isArray||function(e){return pi(e)=="Array"},eB=function(){},sne=[],tB=Wc("Reflect","construct"),k4=/^\s*(?:class|function)\b/,lne=Ae(k4.exec),cne=!k4.exec(eB),tf=function(e){if(!dt(e))return!1;try{return tB(eB,sne,e),!0}catch(t){return!1}},fne=!tB||ft(function(){var e;return tf(tf.call)||!tf(Object)||!tf(function(){e=!0})||e})?function(e){if(!dt(e))return!1;switch(wg(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cne||!!lne(k4,y4(e))}:tf,dne=Xt("species"),nB=de.Array,rB=function(e,t){return new(function(n){var r;return T4(n)&&(r=n.constructor,(fne(r)&&(r===nB||T4(r.prototype))||pt(r)&&(r=r[dne])===null)&&(r=void 0)),r===void 0?nB:r}(e))(t===0?0:t)},iB=Ae([].push),co=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=Vc(s),v=aO(m),g=F4(l,c),y=Es(v),h=0,$=f||rB,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:iB(w,d)}else switch(e){case 4:return!1;case 7:iB(w,d)}return o?-1:r||i?i:w}},P4={forEach:co(0),map:co(1),filter:co(2),some:co(3),every:co(4),find:co(5),findIndex:co(6),filterReject:co(7)},Sg=B4.getWeakData,pne=Nr.set,hne=Nr.getterFor,gne=P4.find,vne=P4.findIndex,mne=Ae([].splice),yne=0,Dg=function(e){return e.frozen||(e.frozen=new oB)},oB=function(){this.entries=[]},_4=function(e,t){return gne(e.entries,function(n){return n[0]===t})};oB.prototype={get:function(e){var t=_4(this,e);if(t)return t[1]},has:function(e){return!!_4(this,e)},set:function(e,t){var n=_4(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=vne(this.entries,function(n){return n[0]===e});return~t&&mne(this.entries,t,1),!!~t}};var nf,aB={getConstructor:function(e,t,n,r){var i=e(function(s,l){XO(s,o),pne(s,{type:t,id:yne++,frozen:void 0}),l!=null&&YO(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=hne(t),u=function(s,l,c){var f=a(s),d=Sg(vn(l),!0);return d===!0?Dg(f).set(l,c):d[f.id]=c,s};return O4(o,{delete:function(s){var l=a(this);if(!pt(s))return!1;var c=Sg(s);return c===!0?Dg(l).delete(s):c&&jt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pt(s))return!1;var c=Sg(s);return c===!0?Dg(l).has(s):c&&jt(c,l.id)}}),O4(o,n?{get:function(s){var l=a(this);if(pt(s)){var c=Sg(s);return c===!0?Dg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),i}},Cg=Nr.enforce,bne=!de.ActiveXObject&&"ActiveXObject"in de,uB=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$ne=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=de[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ae(u[g]);Ir(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!pt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!pt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!pt(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(E4(e,!dt(a)||!(i||u.forEach&&!ft(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),B4.enable();else if(E4(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=ft(function(){f.has(1)}),m=function(g,y){if(!y&&!ZO)return!1;var h=!1;try{var $={};$[JO]=function(){return{next:function(){return{done:h=!0}}}},g($)}catch(w){}return h}(function(g){new a(g)}),v=!i&&ft(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});m||((s=t(function(g,y){XO(g,u);var h=function($,w,x){var S,C;return bg&&dt(S=w.constructor)&&S!==x&&pt(C=S.prototype)&&C!==x.prototype&&bg($,C),$}(new a,g,s);return y!=null&&YO(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,lo({global:!0,forced:s!=a},l),C4(s,e),i||n.setStrong(s,e,r),s}("WeakMap",uB,aB);if(SO&&bne){nf=aB.getConstructor(uB,"WeakMap",!0),B4.enable();var rf=$ne.prototype,sB=Ae(rf.delete),Ag=Ae(rf.has),lB=Ae(rf.get),cB=Ae(rf.set);O4(rf,{delete:function(e){if(pt(e)&&!Ia(e)){var t=Cg(this);return t.frozen||(t.frozen=new nf),sB(this,e)||t.frozen.delete(e)}return sB(this,e)},has:function(e){if(pt(e)&&!Ia(e)){var t=Cg(this);return t.frozen||(t.frozen=new nf),Ag(this,e)||t.frozen.has(e)}return Ag(this,e)},get:function(e){if(pt(e)&&!Ia(e)){var t=Cg(this);return t.frozen||(t.frozen=new nf),Ag(this,e)?lB(this,e):t.frozen.get(e)}return lB(this,e)},set:function(e,t){if(pt(e)&&!Ia(e)){var n=Cg(this);n.frozen||(n.frozen=new nf),Ag(this,e)?cB(this,e,t):n.frozen.set(e,t)}else cB(this,e,t);return this}})}var fB={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},N4=u4("span").classList,dB=N4&&N4.constructor&&N4.constructor.prototype,wne=dB===Object.prototype?void 0:dB,I4=Xt("iterator"),pB=Xt("toStringTag"),j4=ef.values,hB=function(e,t){if(e){if(e[I4]!==j4)try{hi(e,I4,j4)}catch(r){e[I4]=j4}if(e[pB]||hi(e,pB,t),fB[t]){for(var n in ef)if(e[n]!==ef[n])try{hi(e,n,ef[n])}catch(r){e[n]=ef[n]}}}};for(var R4 in fB)hB(de[R4]&&de[R4].prototype,R4);hB(wne,"DOMTokenList");var L4=new WeakMap,Ene={type:"list-item",renderElem:function(e,t,n){L4.set(e,n);var r=e,i=r.level,o=i===void 0?0:i,a=r.ordered,u={margin:"5px 0 5px "+20*o+"px"},s="";if(a!==void 0&&a){var l=function(f,d){var p=d,m=p.type,v=p.level,g=v===void 0?0:v,y=p.ordered,h=y!==void 0&&y;if(!h)return-1;var $=1,w=d,x=A.findPath(f,w);if(x[0]===0)return 1;for(;x[0]>0;){var S=P.previous(x),C=E.node(f,S);if(C==null)break;var N=C[0],R=N.level,U=R===void 0?0:R,W=N.type,Z=N.ordered;if(W!==m||U<g)break;if(U===g){if(Z!==h)break;$++}w=N,x=S}return $}(n,e);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="\u2022";break;case 1:d="\u25E6";break;default:d="\u25AA"}return d}(o);var c=function(f){var d,p=f.children||[],m=p.length;if(m===0)return"";for(var v=0;v<m&&!d;v++){var g=p[v];J.isText(g)&&(d=g)}return d==null?"":d.color||""}(e);return fe("div",{style:u},fe("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),fe("span",null,t))}},M4=function(e,t){return M4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},M4(e,t)};/*! *****************************************************************************
  99. Copyright (c) Microsoft Corporation.
  100. Permission to use, copy, modify, and/or distribute this software for any
  101. purpose with or without fee is hereby granted.
  102. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  103. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  104. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  105. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  106. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  107. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  108. PERFORMANCE OF THIS SOFTWARE.
  109. ***************************************************************************** */function gB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}M4(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function vB(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 of(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function mB(e){return E.nodes(e,{at:e.selection||void 0,match:function(t){return A.findPath(e,t).length===1}})}var xne=vO.includes;lo({target:"Array",proto:!0},{includes:function(e){return xne(this,e,arguments.length>1?arguments[1]:void 0)}}),Xc("includes");var yB,z4,Sne=function(){var e=vn(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},H4=de.RegExp,U4=ft(function(){var e=H4("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Dne=U4||ft(function(){return!H4("a","y").sticky}),Cne={BROKEN_CARET:U4||ft(function(){var e=H4("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Dne,UNSUPPORTED_Y:U4},Ane=de.RegExp,One=ft(function(){var e=Ane(".","s");return!(e.dotAll&&e.exec(`
  110. `)&&e.flags==="s")}),Bne=de.RegExp,Fne=ft(function(){var e=Bne("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Tne=Nr.get,kne=e4("native-string-replace",String.prototype.replace),Og=RegExp.prototype.exec,V4=Og,Pne=Ae("".charAt),_ne=Ae("".indexOf),Nne=Ae("".replace),W4=Ae("".slice),G4=(z4=/b*/g,Rt(Og,yB=/a/,"a"),Rt(Og,z4,"a"),yB.lastIndex!==0||z4.lastIndex!==0),bB=Cne.BROKEN_CARET,q4=/()??/.exec("")[1]!==void 0;(G4||q4||bB||One||Fne)&&(V4=function(e){var t,n,r,i,o,a,u,s=this,l=Tne(s),c=gi(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Rt(V4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=bB&&s.sticky,m=Rt(Sne,s),v=s.source,g=0,y=c;if(p&&(m=Nne(m,"y",""),_ne(m,"g")===-1&&(m+="g"),y=W4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Pne(c,s.lastIndex-1)!==`
  111. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),q4&&(n=new RegExp("^"+v+"$(?!\\s)",m)),G4&&(r=s.lastIndex),i=Rt(Og,p?n:s,y),p?i?(i.input=W4(i.input,g),i[0]=W4(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:G4&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),q4&&i&&i.length>1&&Rt(kne,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=g4(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var Bg=V4;lo({target:"RegExp",proto:!0,forced:/./.exec!==Bg},{exec:Bg});var $B=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return A.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?_.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):_.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Ine='<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>',jne='<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>',Rne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=K("listModule.unOrderedList"),n.iconSvg=Ine,n}return gB(t,e),t}($B),Lne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=K("listModule.orderedList"),n.iconSvg=jne,n}return gB(t,e),t}($B),Mne={key:"bulletedList",factory:function(){return new Rne}},zne={key:"numberedList",factory:function(){return new Lne}},wB=[],EB,Hne={type:"list-item",elemToHtml:function(e,t){var n="",r="",i=e.ordered,o=i!==void 0&&i?"ol":"ul",a=function(l){var c=L4.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,m=p!==void 0&&p,v=f.level,g=v===void 0?0:v,y=A.findPath(c,l);if(y[0]===0)return g+1;var h=P.previous(y),$=E.node(c,h);if(!$)return 0;var w=of($,1)[0];if(A.getNodeType(w)!==d)return g+1;var x=w,S=x.ordered,C=S!==void 0&&S,N=x.level,R=N===void 0?0:N;return R<g?g-R:R>g?0:R===g?C===m?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+o+">",wB.push(o);var s=function(l){var c=L4.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,m=p!==void 0&&p,v=f.level,g=v===void 0?0:v,y=A.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=P.next(y),$=E.node(c,h);if(!$)return 0;var w=of($,1)[0];if(A.getNodeType(w)!==d)return g+1;var x=w,S=x.ordered,C=S!==void 0&&S,N=x.level,R=N===void 0?0:N;return R<g?g-R:R>g?0:R===g?C===m?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+wB.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},Une=Xt("species"),Vne=P4.filter,Wne=(EB="filter",r4>=51||!ft(function(){var e=[];return(e.constructor={})[Une]=function(){return{foo:1}},e[EB](Boolean).foo!==1}));lo({target:"Array",proto:!0,forced:!Wne},{filter:function(e){return Vne(this,e,arguments.length>1?arguments[1]:void 0)}});var K4=Function.prototype,xB=K4.apply,Gne=K4.bind,SB=K4.call,qne=typeof Reflect=="object"&&Reflect.apply||(Gne?SB.bind(xB):function(){return SB.apply(xB,arguments)}),Kne=Xt("species"),Y4=RegExp.prototype,Yne=zO.charAt,Xne=function(e,t,n){return t+(n?Yne(e,t).length:1)},Jne=Math.floor,X4=Ae("".charAt),Zne=Ae("".replace),J4=Ae("".slice),Qne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ere=/\$([$&'`]|\d{1,2})/g,tre=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=ere;return i!==void 0&&(i=Vc(i),s=Qne),Zne(o,s,function(l,c){var f;switch(X4(c,0)){case"$":return"$";case"&":return e;case"`":return J4(t,0,n);case"'":return J4(t,a);case"<":f=i[J4(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Jne(d/10);return p===0?l:p<=u?r[p-1]===void 0?X4(c,1):r[p-1]+X4(c,1):l}f=r[d-1]}return f===void 0?"":f})},nre=de.TypeError,rre=function(e,t){var n=e.exec;if(dt(n)){var r=Rt(n,e,t);return r!==null&&vn(r),r}if(pi(e)==="RegExp")return Rt(Bg,e,t);throw nre("RegExp#exec called on incompatible receiver")},Z4=Xt("replace"),ire=Math.max,ore=Math.min,are=Ae([].concat),Q4=Ae([].push),DB=Ae("".indexOf),CB=Ae("".slice),ure="a".replace(/./,"$0")==="$0",AB=!!/./[Z4]&&/./[Z4]("a","$0")==="";(function(e,t,n,r){var i=Xt(e),o=!ft(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!ft(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Kne]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Ae(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=Ae(l),v=c.exec;return v===Bg||v===Y4.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Ir(String.prototype,e,s[0]),Ir(Y4,i,s[1])}r&&hi(Y4[i],"sham",!0)})("replace",function(e,t,n){var r=AB?"$":"$0";return[function(i,o){var a=sg(this),u=i==null?void 0:Kc(i,Z4);return u?Rt(u,i,a,o):Rt(t,gi(a),i,o)},function(i,o){var a=vn(this),u=gi(i);if(typeof o=="string"&&DB(o,r)===-1&&DB(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=dt(o);l||(o=gi(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=rre(a,u);if(p===null||(Q4(d,p),!c))break;gi(p[0])===""&&(a.lastIndex=Xne(u,hO(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<d.length;y++){for(var h=gi((p=d[y])[0]),$=ire(ore(Yc(p.index),u.length),0),w=[],x=1;x<p.length;x++)Q4(w,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=are([h],w,$,u);S!==void 0&&Q4(C,S);var N=gi(qne(o,void 0,C))}else N=tre(h,u,$,w,S,o);$>=g&&(v+=CB(u,g,$)+N,g=$+h.length)}return v+CB(u,g)}]},!!ft(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!ure||AB);var sre=de.TypeError,OB=function(e,t,n,r,i,o,a,u){for(var s,l,c=i,f=0,d=!!a&&F4(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],o>0&&T4(s))l=Es(s),c=OB(e,t,s,l,c,o-1)-1;else{if(c>=9007199254740991)throw sre("Exceed the acceptable array length");e[c]=s}c++}f++}return c},lre=OB;function e$(e){return e.length?e[0].tagName.toLowerCase():""}lo({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Vc(this),n=Es(t),r=rB(t,0);return r.length=lre(r,t,t,n,0,e===void 0?1:Yc(e)),r}}),Xc("flat"),lo({global:!0},{globalThis:de}),zn&&(O.fn.append=zn),Mn&&(O.fn.attr=Mn),wu&&(O.fn.parent=wu);var cre={renderElems:[Ene],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(o){var a=i.selection;if(a!=null)if(j.isExpanded(a))t(o);else{var u=A.getSelectedNodeByType(i,"list-item");if(u!=null)if(a.focus.offset!==0)t(o);else{var s=u.level,l=s===void 0?0:s;l>0?_.setNodes(i,{level:l-1}):_.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(o)}else t(o)},i.handleTab=function(){var o,a,u,s,l=i.selection;if(l!=null){if(j.isCollapsed(l)){var c=A.getSelectedNodeByType(i,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void _.setNodes(i,{level:d+1})}}if(j.isExpanded(l)){var p=0,m=!1;try{for(var v=vB(mB(i)),g=v.next();!g.done;g=v.next()){var y=of(g.value,1)[0];A.getNodeType(y)==="list-item"?p++:m=!0}}catch(C){o={error:C}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}if(m||p<=1)return void n();try{for(var h=vB(mB(i)),$=h.next();!$.done;$=h.next()){var w=of($.value,2),x=(y=w[0],w[1]),S=y.level;d=S===void 0?0:S,_.setNodes(i,{level:d+1},{at:x})}}catch(C){u={error:C}}finally{try{$&&!$.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},i.normalizeNode=function(o){var a=of(o,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||_.unwrapNodes(i,{at:s}),r([u,s])},i},menus:[Mne,zne],elemsToHtml:[Hne],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=O(e);(t=t.filter(function(a){return!!J.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=function(a){return e$(a.parent())==="ol"}(r),o=function(a){for(var u=0,s=a.parent(),l=e$(s);l==="ul"||l==="ol";)l=e$(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:i,level:o,children:t}}}]},BB=Kv(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,u="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",m="[object GeneratorFunction]",v="[object Map]",g="[object Number]",y="[object Null]",h="[object Object]",$="[object Promise]",w="[object Proxy]",x="[object RegExp]",S="[object Set]",C="[object String]",N="[object Symbol]",R="[object Undefined]",U="[object WeakMap]",W="[object ArrayBuffer]",Z="[object DataView]",Q="[object Float32Array]",le="[object Float64Array]",te="[object Int8Array]",ue="[object Int16Array]",he="[object Int32Array]",Ie="[object Uint8Array]",ye="[object Uint8ClampedArray]",oe="[object Uint16Array]",Le="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,I={};I[Q]=I[le]=I[te]=I[ue]=I[he]=I[Ie]=I[ye]=I[oe]=I[Le]=!0,I[u]=I[s]=I[W]=I[c]=I[Z]=I[f]=I[d]=I[p]=I[v]=I[g]=I[h]=I[x]=I[S]=I[C]=I[U]=!1;var V=typeof ot=="object"&&ot&&ot.Object===Object&&ot,L=typeof self=="object"&&self&&self.Object===Object&&self,ee=V||L||Function("return this")(),pe=t&&!t.nodeType&&t,Ce=pe&&!0&&e&&!e.nodeType&&e,Me=Ce&&Ce.exports===pe,H=Me&&V.process,We=function(){try{return H&&H.binding&&H.binding("util")}catch(b){}}(),we=We&&We.isTypedArray;function se(b,D){for(var B=-1,M=b==null?0:b.length,be=0,ae=[];++B<M;){var Ne=b[B];D(Ne,B,b)&&(ae[be++]=Ne)}return ae}function Ee(b,D){for(var B=-1,M=D.length,be=b.length;++B<M;)b[be+B]=D[B];return b}function In(b,D){for(var B=-1,M=b==null?0:b.length;++B<M;)if(D(b[B],B,b))return!0;return!1}function Xe(b,D){for(var B=-1,M=Array(b);++B<b;)M[B]=D(B);return M}function gt(b){return function(D){return b(D)}}function yt(b,D){return b.has(D)}function yn(b,D){return b==null?void 0:b[D]}function bt(b){var D=-1,B=Array(b.size);return b.forEach(function(M,be){B[++D]=[be,M]}),B}function ar(b,D){return function(B){return b(D(B))}}function jn(b){var D=-1,B=Array(b.size);return b.forEach(function(M){B[++D]=M}),B}var bn=Array.prototype,qr=Function.prototype,Kr=Object.prototype,Rn=ee["__core-js_shared__"],Yr=qr.toString,cn=Kr.hasOwnProperty,ur=function(){var b=/[^.]+$/.exec(Rn&&Rn.keys&&Rn.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),nl=Kr.toString,Bd=RegExp("^"+Yr.call(cn).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$i=Me?ee.Buffer:void 0,jo=ee.Symbol,rl=ee.Uint8Array,Ro=Kr.propertyIsEnumerable,wi=bn.splice,Ln=jo?jo.toStringTag:void 0,Lo=Object.getOwnPropertySymbols,Fd=$i?$i.isBuffer:void 0,ru=ar(Object.keys,Object),Td=xi(ee,"DataView"),iu=xi(ee,"Map"),kd=xi(ee,"Promise"),Pd=xi(ee,"Set"),_d=xi(ee,"WeakMap"),Mo=xi(Object,"create"),mv=fn(Td),Ei=fn(iu),SE=fn(kd),DE=fn(Pd),CE=fn(_d),yv=jo?jo.prototype:void 0,Nd=yv?yv.valueOf:void 0;function Zt(b){var D=-1,B=b==null?0:b.length;for(this.clear();++D<B;){var M=b[D];this.set(M[0],M[1])}}function AE(){this.__data__=Mo?Mo(null):{},this.size=0}function OE(b){var D=this.has(b)&&delete this.__data__[b];return this.size-=D?1:0,D}function BE(b){var D=this.__data__;if(Mo){var B=D[b];return B===r?void 0:B}return cn.call(D,b)?D[b]:void 0}function FE(b){var D=this.__data__;return Mo?D[b]!==void 0:cn.call(D,b)}function TE(b,D){var B=this.__data__;return this.size+=this.has(b)?0:1,B[b]=Mo&&D===void 0?r:D,this}Zt.prototype.clear=AE,Zt.prototype.delete=OE,Zt.prototype.get=BE,Zt.prototype.has=FE,Zt.prototype.set=TE;function an(b){var D=-1,B=b==null?0:b.length;for(this.clear();++D<B;){var M=b[D];this.set(M[0],M[1])}}function kE(){this.__data__=[],this.size=0}function PE(b){var D=this.__data__,B=al(D,b);if(B<0)return!1;var M=D.length-1;return B==M?D.pop():wi.call(D,B,1),--this.size,!0}function _E(b){var D=this.__data__,B=al(D,b);return B<0?void 0:D[B][1]}function NE(b){return al(this.__data__,b)>-1}function IE(b,D){var B=this.__data__,M=al(B,b);return M<0?(++this.size,B.push([b,D])):B[M][1]=D,this}an.prototype.clear=kE,an.prototype.delete=PE,an.prototype.get=_E,an.prototype.has=NE,an.prototype.set=IE;function $n(b){var D=-1,B=b==null?0:b.length;for(this.clear();++D<B;){var M=b[D];this.set(M[0],M[1])}}function jE(){this.size=0,this.__data__={hash:new Zt,map:new(iu||an),string:new Zt}}function RE(b){var D=Er(this,b).delete(b);return this.size-=D?1:0,D}function LE(b){return Er(this,b).get(b)}function ME(b){return Er(this,b).has(b)}function zE(b,D){var B=Er(this,b),M=B.size;return B.set(b,D),this.size+=B.size==M?0:1,this}$n.prototype.clear=jE,$n.prototype.delete=RE,$n.prototype.get=LE,$n.prototype.has=ME,$n.prototype.set=zE;function il(b){var D=-1,B=b==null?0:b.length;for(this.__data__=new $n;++D<B;)this.add(b[D])}function bv(b){return this.__data__.set(b,r),this}function ol(b){return this.__data__.has(b)}il.prototype.add=il.prototype.push=bv,il.prototype.has=ol;function Xr(b){var D=this.__data__=new an(b);this.size=D.size}function Id(){this.__data__=new an,this.size=0}function HE(b){var D=this.__data__,B=D.delete(b);return this.size=D.size,B}function UE(b){return this.__data__.get(b)}function VE(b){return this.__data__.has(b)}function WE(b,D){var B=this.__data__;if(B instanceof an){var M=B.__data__;if(!iu||M.length<n-1)return M.push([b,D]),this.size=++B.size,this;B=this.__data__=new $n(M)}return B.set(b,D),this.size=B.size,this}Xr.prototype.clear=Id,Xr.prototype.delete=HE,Xr.prototype.get=UE,Xr.prototype.has=VE,Xr.prototype.set=WE;function GE(b,D){var B=ul(b),M=!B&&Sv(b),be=!B&&!M&&sl(b),ae=!B&&!M&&!be&&Av(b),Ne=B||M||be||ae,je=Ne?Xe(b.length,String):[],_t=je.length;for(var Ge in b)(D||cn.call(b,Ge))&&!(Ne&&(Ge=="length"||be&&(Ge=="offset"||Ge=="parent")||ae&&(Ge=="buffer"||Ge=="byteLength"||Ge=="byteOffset")||e6(Ge,_t)))&&je.push(Ge);return je}function al(b,D){for(var B=b.length;B--;)if(xv(b[B][0],D))return B;return-1}function jd(b,D,B){var M=D(b);return ul(b)?M:Ee(M,B(b))}function ou(b){return b==null?b===void 0?R:y:Ln&&Ln in Object(b)?Si(b):Ev(b)}function $v(b){return Zr(b)&&ou(b)==u}function wv(b,D,B,M,be){return b===D?!0:b==null||D==null||!Zr(b)&&!Zr(D)?b!==b&&D!==D:qE(b,D,B,M,wv,be)}function qE(b,D,B,M,be,ae){var Ne=ul(b),je=ul(D),_t=Ne?s:Jr(b),Ge=je?s:Jr(D);_t=_t==u?h:_t,Ge=Ge==u?h:Ge;var un=_t==h,wn=Ge==h,Mt=_t==Ge;if(Mt&&sl(b)){if(!sl(D))return!1;Ne=!0,un=!1}if(Mt&&!un)return ae||(ae=new Xr),Ne||Av(b)?Rd(b,D,B,M,be,ae):JE(b,D,_t,B,M,be,ae);if(!(B&i)){var sn=un&&cn.call(b,"__wrapped__"),Qt=wn&&cn.call(D,"__wrapped__");if(sn||Qt){var zo=sn?b.value():b,Di=Qt?D.value():D;return ae||(ae=new Xr),be(zo,Di,B,M,ae)}}return Mt?(ae||(ae=new Xr),ZE(b,D,B,M,be,ae)):!1}function KE(b){if(!Cv(b)||n6(b))return!1;var D=Dv(b)?Bd:F;return D.test(fn(b))}function YE(b){return Zr(b)&&Md(b.length)&&!!I[ou(b)]}function XE(b){if(!r6(b))return ru(b);var D=[];for(var B in Object(b))cn.call(b,B)&&B!="constructor"&&D.push(B);return D}function Rd(b,D,B,M,be,ae){var Ne=B&i,je=b.length,_t=D.length;if(je!=_t&&!(Ne&&_t>je))return!1;var Ge=ae.get(b);if(Ge&&ae.get(D))return Ge==D;var un=-1,wn=!0,Mt=B&o?new il:void 0;for(ae.set(b,D),ae.set(D,b);++un<je;){var sn=b[un],Qt=D[un];if(M)var zo=Ne?M(Qt,sn,un,D,b,ae):M(sn,Qt,un,b,D,ae);if(zo!==void 0){if(zo)continue;wn=!1;break}if(Mt){if(!In(D,function(Di,uu){if(!yt(Mt,uu)&&(sn===Di||be(sn,Di,B,M,ae)))return Mt.push(uu)})){wn=!1;break}}else if(!(sn===Qt||be(sn,Qt,B,M,ae))){wn=!1;break}}return ae.delete(b),ae.delete(D),wn}function JE(b,D,B,M,be,ae,Ne){switch(B){case Z:if(b.byteLength!=D.byteLength||b.byteOffset!=D.byteOffset)return!1;b=b.buffer,D=D.buffer;case W:return!(b.byteLength!=D.byteLength||!ae(new rl(b),new rl(D)));case c:case f:case g:return xv(+b,+D);case d:return b.name==D.name&&b.message==D.message;case x:case C:return b==D+"";case v:var je=bt;case S:var _t=M&i;if(je||(je=jn),b.size!=D.size&&!_t)return!1;var Ge=Ne.get(b);if(Ge)return Ge==D;M|=o,Ne.set(b,D);var un=Rd(je(b),je(D),M,be,ae,Ne);return Ne.delete(b),un;case N:if(Nd)return Nd.call(b)==Nd.call(D)}return!1}function ZE(b,D,B,M,be,ae){var Ne=B&i,je=au(b),_t=je.length,Ge=au(D),un=Ge.length;if(_t!=un&&!Ne)return!1;for(var wn=_t;wn--;){var Mt=je[wn];if(!(Ne?Mt in D:cn.call(D,Mt)))return!1}var sn=ae.get(b);if(sn&&ae.get(D))return sn==D;var Qt=!0;ae.set(b,D),ae.set(D,b);for(var zo=Ne;++wn<_t;){Mt=je[wn];var Di=b[Mt],uu=D[Mt];if(M)var tI=Ne?M(uu,Di,Mt,D,b,ae):M(Di,uu,Mt,b,D,ae);if(!(tI===void 0?Di===uu||be(Di,uu,B,M,ae):tI)){Qt=!1;break}zo||(zo=Mt=="constructor")}if(Qt&&!zo){var Ov=b.constructor,Bv=D.constructor;Ov!=Bv&&"constructor"in b&&"constructor"in D&&!(typeof Ov=="function"&&Ov instanceof Ov&&typeof Bv=="function"&&Bv instanceof Bv)&&(Qt=!1)}return ae.delete(b),ae.delete(D),Qt}function au(b){return jd(b,zd,QE)}function Er(b,D){var B=b.__data__;return t6(D)?B[typeof D=="string"?"string":"hash"]:B.map}function xi(b,D){var B=yn(b,D);return KE(B)?B:void 0}function Si(b){var D=cn.call(b,Ln),B=b[Ln];try{b[Ln]=void 0;var M=!0}catch(ae){}var be=nl.call(b);return M&&(D?b[Ln]=B:delete b[Ln]),be}var QE=Lo?function(b){return b==null?[]:(b=Object(b),se(Lo(b),function(D){return Ro.call(b,D)}))}:o6,Jr=ou;(Td&&Jr(new Td(new ArrayBuffer(1)))!=Z||iu&&Jr(new iu)!=v||kd&&Jr(kd.resolve())!=$||Pd&&Jr(new Pd)!=S||_d&&Jr(new _d)!=U)&&(Jr=function(b){var D=ou(b),B=D==h?b.constructor:void 0,M=B?fn(B):"";if(M)switch(M){case mv:return Z;case Ei:return v;case SE:return $;case DE:return S;case CE:return U}return D});function e6(b,D){return D=D==null?a:D,!!D&&(typeof b=="number"||k.test(b))&&b>-1&&b%1==0&&b<D}function t6(b){var D=typeof b;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?b!=="__proto__":b===null}function n6(b){return!!ur&&ur in b}function r6(b){var D=b&&b.constructor,B=typeof D=="function"&&D.prototype||Kr;return b===B}function Ev(b){return nl.call(b)}function fn(b){if(b!=null){try{return Yr.call(b)}catch(D){}try{return b+""}catch(D){}}return""}function xv(b,D){return b===D||b!==b&&D!==D}var Sv=$v(function(){return arguments}())?$v:function(b){return Zr(b)&&cn.call(b,"callee")&&!Ro.call(b,"callee")},ul=Array.isArray;function Ld(b){return b!=null&&Md(b.length)&&!Dv(b)}var sl=Fd||a6;function i6(b,D){return wv(b,D)}function Dv(b){if(!Cv(b))return!1;var D=ou(b);return D==p||D==m||D==l||D==w}function Md(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=a}function Cv(b){var D=typeof b;return b!=null&&(D=="object"||D=="function")}function Zr(b){return b!=null&&typeof b=="object"}var Av=we?gt(we):YE;function zd(b){return Ld(b)?GE(b):XE(b)}function o6(){return[]}function a6(){return!1}e.exports=i6});pn("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"}}),pn("zh-CN",{tableModule:{deleteCol:"\u5220\u9664\u5217",deleteRow:"\u5220\u9664\u884C",deleteTable:"\u5220\u9664\u8868\u683C",widthAuto:"\u5BBD\u5EA6\u81EA\u9002\u5E94",insertCol:"\u63D2\u5165\u5217",insertRow:"\u63D2\u5165\u884C",insertTable:"\u63D2\u5165\u8868\u683C",header:"\u8868\u5934"}});var FB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function TB(e){var t={exports:{}};return e(t,t.exports),t.exports}var fo,Fg,Tg=function(e){return e&&e.Math==Math&&e},Se=Tg(typeof globalThis=="object"&&globalThis)||Tg(typeof window=="object"&&window)||Tg(typeof self=="object"&&self)||Tg(typeof FB=="object"&&FB)||function(){return this}()||Function("return this")(),Ft=function(e){try{return!!e()}catch(t){return!0}},po=!Ft(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),af=Function.prototype.call,Tt=af.bind?af.bind(af):function(){return af.apply(af,arguments)},kB={}.propertyIsEnumerable,PB=Object.getOwnPropertyDescriptor,fre={f:PB&&!kB.call({1:2},1)?function(e){var t=PB(this,e);return!!t&&t.enumerable}:kB},t$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_B=Function.prototype,n$=_B.bind,r$=_B.call,dre=n$&&n$.bind(r$),Fe=n$?function(e){return e&&dre(r$,e)}:function(e){return e&&function(){return r$.apply(e,arguments)}},pre=Fe({}.toString),hre=Fe("".slice),ho=function(e){return hre(pre(e),8,-1)},i$=Se.Object,gre=Fe("".split),NB=Ft(function(){return!i$("z").propertyIsEnumerable(0)})?function(e){return ho(e)=="String"?gre(e,""):i$(e)}:i$,vre=Se.TypeError,go=function(e){if(e==null)throw vre("Can't call method on "+e);return e},uf=function(e){return NB(go(e))},Jt=function(e){return typeof e=="function"},er=function(e){return typeof e=="object"?e!==null:Jt(e)},mre=function(e){return Jt(e)?e:void 0},sf=function(e,t){return arguments.length<2?mre(Se[e]):Se[e]&&Se[e][t]},IB=Fe({}.isPrototypeOf),o$=sf("navigator","userAgent")||"",jB=Se.process,RB=Se.Deno,LB=jB&&jB.versions||RB&&RB.version,MB=LB&&LB.v8;MB&&(Fg=(fo=MB.split("."))[0]>0&&fo[0]<4?1:+(fo[0]+fo[1])),!Fg&&o$&&(!(fo=o$.match(/Edge\/(\d+)/))||fo[1]>=74)&&(fo=o$.match(/Chrome\/(\d+)/))&&(Fg=+fo[1]);var a$=Fg,u$=!!Object.getOwnPropertySymbols&&!Ft(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a$&&a$<41}),s$=u$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yre=Se.Object,l$=s$?function(e){return typeof e=="symbol"}:function(e){var t=sf("Symbol");return Jt(t)&&IB(t.prototype,yre(e))},bre=Se.String,zB=function(e){try{return bre(e)}catch(t){return"Object"}},$re=Se.TypeError,HB=function(e){if(Jt(e))return e;throw $re(zB(e)+" is not a function")},c$=function(e,t){var n=e[t];return n==null?void 0:HB(n)},wre=Se.TypeError,Ere=Object.defineProperty,f$=function(e,t){try{Ere(Se,e,{value:t,configurable:!0,writable:!0})}catch(n){Se[e]=t}return t},vo=Se["__core-js_shared__"]||f$("__core-js_shared__",{}),d$=TB(function(e){(e.exports=function(t,n){return vo[t]||(vo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),xre=Se.Object,p$=function(e){return xre(go(e))},Sre=Fe({}.hasOwnProperty),tr=Object.hasOwn||function(e,t){return Sre(p$(e),t)},Dre=0,Cre=Math.random(),Are=Fe(1 .toString),UB=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Are(++Dre+Cre,36)},lf=d$("wks"),ja=Se.Symbol,VB=ja&&ja.for,Ore=s$?ja:ja&&ja.withoutSetter||UB,nr=function(e){if(!tr(lf,e)||!u$&&typeof lf[e]!="string"){var t="Symbol."+e;u$&&tr(ja,e)?lf[e]=ja[e]:lf[e]=s$&&VB?VB(t):Ore(t)}return lf[e]},Bre=Se.TypeError,Fre=nr("toPrimitive"),Tre=function(e,t){if(!er(e)||l$(e))return e;var n,r=c$(e,Fre);if(r){if(t===void 0&&(t="default"),n=Tt(r,e,t),!er(n)||l$(n))return n;throw Bre("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Jt(a=i.toString)&&!er(u=Tt(a,i))||Jt(a=i.valueOf)&&!er(u=Tt(a,i))||o!=="string"&&Jt(a=i.toString)&&!er(u=Tt(a,i)))return u;throw wre("Can't convert object to primitive value")}(e,t)},h$=function(e){var t=Tre(e,"string");return l$(t)?t:t+""},g$=Se.document,kre=er(g$)&&er(g$.createElement),v$=function(e){return kre?g$.createElement(e):{}},WB=!po&&!Ft(function(){return Object.defineProperty(v$("div"),"a",{get:function(){return 7}}).a!=7}),GB=Object.getOwnPropertyDescriptor,qB={f:po?GB:function(e,t){if(e=uf(e),t=h$(t),WB)try{return GB(e,t)}catch(n){}if(tr(e,t))return t$(!Tt(fre.f,e,t),e[t])}},Pre=Se.String,_re=Se.TypeError,rr=function(e){if(er(e))return e;throw _re(Pre(e)+" is not an object")},Nre=Se.TypeError,KB=Object.defineProperty,cf={f:po?KB:function(e,t,n){if(rr(e),t=h$(t),rr(n),WB)try{return KB(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Nre("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ds=po?function(e,t,n){return cf.f(e,t,t$(1,n))}:function(e,t,n){return e[t]=n,e},Ire=Fe(Function.toString);Jt(vo.inspectSource)||(vo.inspectSource=function(e){return Ire(e)});var kg,ff,Pg,m$=vo.inspectSource,YB=Se.WeakMap,jre=Jt(YB)&&/native code/.test(m$(YB)),XB=d$("keys"),JB=function(e){return XB[e]||(XB[e]=UB(e))},y$={},b$=Se.TypeError,Rre=Se.WeakMap;if(jre||vo.state){var Ra=vo.state||(vo.state=new Rre),Lre=Fe(Ra.get),ZB=Fe(Ra.has),Mre=Fe(Ra.set);kg=function(e,t){if(ZB(Ra,e))throw new b$("Object already initialized");return t.facade=e,Mre(Ra,e,t),t},ff=function(e){return Lre(Ra,e)||{}},Pg=function(e){return ZB(Ra,e)}}else{var Cs=JB("state");y$[Cs]=!0,kg=function(e,t){if(tr(e,Cs))throw new b$("Object already initialized");return t.facade=e,Ds(e,Cs,t),t},ff=function(e){return tr(e,Cs)?e[Cs]:{}},Pg=function(e){return tr(e,Cs)}}var $$={set:kg,get:ff,has:Pg,enforce:function(e){return Pg(e)?ff(e):kg(e,{})},getterFor:function(e){return function(t){var n;if(!er(t)||(n=ff(t)).type!==e)throw b$("Incompatible receiver, "+e+" required");return n}}},QB=Function.prototype,zre=po&&Object.getOwnPropertyDescriptor,w$=tr(QB,"name"),E$={EXISTS:w$,PROPER:w$&&function(){}.name==="something",CONFIGURABLE:w$&&(!po||po&&zre(QB,"name").configurable)},df=TB(function(e){var t=E$.CONFIGURABLE,n=$$.get,r=$$.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Jt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!tr(u,"name")||t&&u.name!==p)&&Ds(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==Se?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:Ds(o,a,u)):f?o[a]=u:f$(a,u)})(Function.prototype,"toString",function(){return Jt(this)&&n(this).source||m$(this)})}),Hre=Math.ceil,Ure=Math.floor,_g=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ure:Hre)(t)},Vre=Math.max,Wre=Math.min,pf=function(e,t){var n=_g(e);return n<0?Vre(n+t,0):Wre(n,t)},Gre=Math.min,x$=function(e){return e>0?Gre(_g(e),9007199254740991):0},Ng=function(e){return x$(e.length)},eF=function(e){return function(t,n,r){var i,o=uf(t),a=Ng(o),u=pf(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},qre={includes:eF(!0),indexOf:eF(!1)}.indexOf,tF=Fe([].push),nF=function(e,t){var n,r=uf(e),i=0,o=[];for(n in r)!tr(y$,n)&&tr(r,n)&&tF(o,n);for(;t.length>i;)tr(r,n=t[i++])&&(~qre(o,n)||tF(o,n));return o},Ig=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kre=Ig.concat("length","prototype"),Yre={f:Object.getOwnPropertyNames||function(e){return nF(e,Kre)}},Xre={f:Object.getOwnPropertySymbols},Jre=Fe([].concat),Zre=sf("Reflect","ownKeys")||function(e){var t=Yre.f(rr(e)),n=Xre.f;return n?Jre(t,n(e)):t},Qre=function(e,t){for(var n=Zre(t),r=cf.f,i=qB.f,o=0;o<n.length;o++){var a=n[o];tr(e,a)||r(e,a,i(t,a))}},eie=/#|\.prototype\./,hf=function(e,t){var n=nie[tie(e)];return n==iie||n!=rie&&(Jt(t)?Ft(t):!!t)},tie=hf.normalize=function(e){return String(e).replace(eie,".").toLowerCase()},nie=hf.data={},rie=hf.NATIVE="N",iie=hf.POLYFILL="P",oie=hf,aie=qB.f,mo=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?Se:l?Se[u]||f$(u,{}):(Se[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=aie(n,r))&&a.value:n[r],!oie(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Qre(o,i)}(e.sham||i&&i.sham)&&Ds(o,"sham",!0),df(n,r,o,e)}},rF={};rF[nr("toStringTag")]="z";var iF,S$=String(rF)==="[object z]",uie=nr("toStringTag"),sie=Se.Object,lie=ho(function(){return arguments}())=="Arguments",D$=S$?ho:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=sie(e),uie))=="string"?n:lie?ho(t):(r=ho(t))=="Object"&&Jt(t.callee)?"Arguments":r},cie=Se.String,rn=function(e){if(D$(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cie(e)},fie=/"/g,die=Fe("".replace);mo({target:"String",proto:!0,forced:(iF="anchor",Ft(function(){var e=""[iF]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=rn(go(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+die(rn(r),fie,"&quot;")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var jg,oF=function(){var e=rr(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},C$=Se.RegExp,A$=Ft(function(){var e=C$("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),pie=A$||Ft(function(){return!C$("a","y").sticky}),aF={BROKEN_CARET:A$||Ft(function(){var e=C$("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:pie,UNSUPPORTED_Y:A$},hie=Object.keys||function(e){return nF(e,Ig)},gie=po?Object.defineProperties:function(e,t){rr(e);for(var n,r=uf(t),i=hie(t),o=i.length,a=0;o>a;)cf.f(e,n=i[a++],r[n]);return e},vie=sf("document","documentElement"),uF=JB("IE_PROTO"),O$=function(){},sF=function(e){return"<script>"+e+"</script>"},lF=function(e){e.write(sF("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rg=function(){try{jg=new ActiveXObject("htmlfile")}catch(r){}var e,t;Rg=typeof document!="undefined"?document.domain&&jg?lF(jg):((t=v$("iframe")).style.display="none",vie.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(sF("document.F=Object")),e.close(),e.F):lF(jg);for(var n=Ig.length;n--;)delete Rg.prototype[Ig[n]];return Rg()};y$[uF]=!0;var cF,B$,fF=Object.create||function(e,t){var n;return e!==null?(O$.prototype=rr(e),n=new O$,O$.prototype=null,n[uF]=e):n=Rg(),t===void 0?n:gie(n,t)},mie=Se.RegExp,yie=Ft(function(){var e=mie(".","s");return!(e.dotAll&&e.exec(`
  112. `)&&e.flags==="s")}),bie=Se.RegExp,$ie=Ft(function(){var e=bie("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),wie=$$.get,Eie=d$("native-string-replace",String.prototype.replace),Lg=RegExp.prototype.exec,F$=Lg,xie=Fe("".charAt),Sie=Fe("".indexOf),Die=Fe("".replace),T$=Fe("".slice),k$=(B$=/b*/g,Tt(Lg,cF=/a/,"a"),Tt(Lg,B$,"a"),cF.lastIndex!==0||B$.lastIndex!==0),dF=aF.BROKEN_CARET,P$=/()??/.exec("")[1]!==void 0;(k$||P$||dF||yie||$ie)&&(F$=function(e){var t,n,r,i,o,a,u,s=this,l=wie(s),c=rn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Tt(F$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=dF&&s.sticky,m=Tt(oF,s),v=s.source,g=0,y=c;if(p&&(m=Die(m,"y",""),Sie(m,"g")===-1&&(m+="g"),y=T$(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&xie(c,s.lastIndex-1)!==`
  113. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),P$&&(n=new RegExp("^"+v+"$(?!\\s)",m)),k$&&(r=s.lastIndex),i=Tt(Lg,p?n:s,y),p?i?(i.input=T$(i.input,g),i[0]=T$(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:k$&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),P$&&i&&i.length>1&&Tt(Eie,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=fF(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var gf=F$;mo({target:"RegExp",proto:!0,forced:/./.exec!==gf},{exec:gf});var Mg=Array.isArray||function(e){return ho(e)=="Array"},pF=function(){},Cie=[],hF=sf("Reflect","construct"),_$=/^\s*(?:class|function)\b/,Aie=Fe(_$.exec),Oie=!_$.exec(pF),vf=function(e){if(!Jt(e))return!1;try{return hF(pF,Cie,e),!0}catch(t){return!1}},N$=!hF||Ft(function(){var e;return vf(vf.call)||!vf(Object)||!vf(function(){e=!0})||e})?function(e){if(!Jt(e))return!1;switch(D$(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Oie||!!Aie(_$,m$(e))}:vf,gF=function(e,t,n){var r=h$(t);r in e?cf.f(e,r,t$(0,n)):e[r]=n},Bie=nr("species"),I$=function(e){return a$>=51||!Ft(function(){var t=[];return(t.constructor={})[Bie]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Fie=Fe([].slice),Tie=I$("slice"),kie=nr("species"),j$=Se.Array,Pie=Math.max;function yr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function vF(e){var t=e.selection;if(t==null)return!1;var n=yr(E.nodes(e,{match:function(o){return A.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=yr(n,2)[1],i=E.start(e,r);if($e.equals(t.anchor,i))return!0}return!1}function mF(e,t){var n,r,i=E.nodes(e,{at:t,match:function(s){return A.getNodeType(s)==="table"}}),o=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u=a.next();!u.done;u=a.next())u.value,o=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}mo({target:"Array",proto:!0,forced:!Tie},{slice:function(e,t){var n,r,i,o=uf(this),a=Ng(o),u=pf(e,a),s=pf(t===void 0?a:t,a);if(Mg(o)&&(n=o.constructor,(N$(n)&&(n===j$||Mg(n.prototype))||er(n)&&(n=n[kie])===null)&&(n=void 0),n===j$||n===void 0))return Fie(o,u,s);for(r=new(n===void 0?j$:n)(Pie(s-u,0)),i=0;u<s;u++,i++)u in o&&gF(r,i,o[u]);return r.length=i,r}});var yF=Fe(Fe.bind),_ie=nr("species"),bF=Se.Array,Nie=function(e,t){return new(function(n){var r;return Mg(n)&&(r=n.constructor,(N$(r)&&(r===bF||Mg(r.prototype))||er(r)&&(r=r[_ie])===null)&&(r=void 0)),r===void 0?bF:r}(e))(t===0?0:t)},$F=Fe([].push),yo=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=p$(s),v=NB(m),g=function(x,S){return HB(x),S===void 0?x:yF?yF(x,S):function(){return x.apply(S,arguments)}}(l,c),y=Ng(v),h=0,$=f||Nie,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:$F(w,d)}else switch(e){case 4:return!1;case 7:$F(w,d)}return o?-1:r||i?i:w}},zg={forEach:yo(0),map:yo(1),filter:yo(2),some:yo(3),every:yo(4),find:yo(5),findIndex:yo(6),filterReject:yo(7)},Iie=zg.map;mo({target:"Array",proto:!0,forced:!I$("map")},{map:function(e){return Iie(this,e,arguments.length>1?arguments[1]:void 0)}});var jie=S$?{}.toString:function(){return"[object "+D$(this)+"]"};function Hg(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function wF(e){return Hg(e).every(function(t){return!!t.isHeader})}S$||df(Object.prototype,"toString",jie,{unsafe:!0});var Rie=E$.PROPER,R$=RegExp.prototype,EF=R$.toString,Lie=Fe(oF),Mie=Ft(function(){return EF.call({source:"a",flags:"b"})!="/a/b"}),zie=Rie&&EF.name!="toString";(Mie||zie)&&df(RegExp.prototype,"toString",function(){var e=rr(this),t=rn(e.source),n=e.flags;return"/"+t+"/"+rn(n===void 0&&IB(R$,e)&&!("flags"in R$)?Lie(e):n)},{unsafe:!0});var L$=nr("unscopables"),M$=Array.prototype;M$[L$]==null&&cf.f(M$,L$,{configurable:!0,value:fF(null)});var xF,Hie=zg.find,SF=!0;"find"in[]&&Array(1).find(function(){SF=!1}),mo({target:"Array",proto:!0,forced:SF},{find:function(e){return Hie(this,e,arguments.length>1?arguments[1]:void 0)}}),xF="find",M$[L$][xF]=!0;var z$=Function.prototype,DF=z$.apply,Uie=z$.bind,CF=z$.call,AF=typeof Reflect=="object"&&Reflect.apply||(Uie?CF.bind(DF):function(){return CF.apply(DF,arguments)}),Vie=nr("species"),H$=RegExp.prototype,OF=function(e,t,n,r){var i=nr(e),o=!Ft(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Ft(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Vie]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Fe(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=Fe(l),v=c.exec;return v===gf||v===H$.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});df(String.prototype,e,s[0]),df(H$,i,s[1])}r&&Ds(H$[i],"sham",!0)},Wie=nr("match"),Gie=Se.TypeError,qie=nr("species"),Kie=function(e,t){var n,r=rr(e).constructor;return r===void 0||(n=rr(r)[qie])==null?t:function(i){if(N$(i))return i;throw Gie(zB(i)+" is not a constructor")}(n)},Yie=Fe("".charAt),BF=Fe("".charCodeAt),Xie=Fe("".slice),FF=function(e){return function(t,n){var r,i,o=rn(go(t)),a=_g(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=BF(o,a))<55296||r>56319||a+1===u||(i=BF(o,a+1))<56320||i>57343?e?Yie(o,a):r:e?Xie(o,a,a+2):i-56320+(r-55296<<10)+65536}},Jie={codeAt:FF(!1),charAt:FF(!0)}.charAt,TF=function(e,t,n){return t+(n?Jie(e,t).length:1)},Zie=Se.Array,Qie=Math.max,kF=function(e,t,n){for(var r=Ng(e),i=pf(t,r),o=pf(n===void 0?r:n,r),a=Zie(Qie(o-i,0)),u=0;i<o;i++,u++)gF(a,u,e[i]);return a.length=u,a},eoe=Se.TypeError,U$=function(e,t){var n=e.exec;if(Jt(n)){var r=Tt(n,e,t);return r!==null&&rr(r),r}if(ho(e)==="RegExp")return Tt(gf,e,t);throw eoe("RegExp#exec called on incompatible receiver")},As=aF.UNSUPPORTED_Y,toe=Math.min,PF=[].push,noe=Fe(/./.exec),Os=Fe(PF),mf=Fe("".slice);OF("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a,u,s=rn(go(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!er(a=i)||!((u=a[Wie])!==void 0?u:ho(a)=="RegExp"))return Tt(t,s,i,l);for(var c,f,d,p=[],m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),v=0,g=new RegExp(i.source,m+"g");(c=Tt(gf,g,s))&&!((f=g.lastIndex)>v&&(Os(p,mf(s,v,c.index)),c.length>1&&c.index<s.length&&AF(PF,p,kF(c,1)),d=c[0].length,v=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return v===s.length?!d&&noe(g,"")||Os(p,""):Os(p,mf(s,v)),p.length>l?kF(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Tt(t,this,i,o)}:t,[function(i,o){var a=go(this),u=i==null?void 0:c$(i,e);return u?Tt(u,i,a,o):Tt(r,rn(a),i,o)},function(i,o){var a=rr(this),u=rn(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=Kie(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(As?"g":"y"),d=new l(As?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return U$(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){d.lastIndex=As?0:v;var y,h=U$(d,As?mf(u,v):u);if(h===null||(y=toe(x$(d.lastIndex+(As?v:0)),u.length))===m)v=TF(u,v,c);else{if(Os(g,mf(u,m,v)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(Os(g,h[$]),g.length===p)return g;v=m=y}}return Os(g,mf(u,m)),g}]},!!Ft(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),As);var V$=`
  114. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,_F=Fe("".replace),Ug="["+V$+"]",roe=RegExp("^"+Ug+Ug+"*"),ioe=RegExp(Ug+Ug+"*$"),W$=function(e){return function(t){var n=rn(go(t));return 1&e&&(n=_F(n,roe,"")),2&e&&(n=_F(n,ioe,"")),n}},ooe={start:W$(1),end:W$(2),trim:W$(3)},aoe=E$.PROPER,uoe=ooe.trim;function NF(e){return e.length?e[0].tagName.toLowerCase():""}mo({target:"String",proto:!0,forced:function(e){return Ft(function(){return!!V$[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||aoe&&V$[e].name!==e})}("trim")},{trim:function(){return uoe(this)}}),mo({global:!0},{globalThis:Se}),zn&&(O.fn.append=zn),Dr&&(O.fn.on=Dr),Bi&&(O.fn.focus=Bi),Mn&&(O.fn.attr=Mn),Sr&&(O.fn.val=Sr),Oi&&(O.fn.html=Oi),bu&&(O.fn.dataset=bu),vu&&(O.fn.addClass=vu),mu&&(O.fn.removeClass=mu),xu&&(O.fn.children=xu),lp&&(O.fn.each=lp),Eu&&(O.fn.find=Eu);var yf=!1,IF=0,jF=0,bf=null,$f=null,wf=O("body");function RF(e){yf=!1,$f=null,bf=null,wf.off("mousemove",LF),wf.off("mouseup",RF)}wf.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),yf=!0;var n=e.clientX;IF=n;var r=t.getBoundingClientRect().width;jF=r,wf.on("mousemove",LF),wf.on("mouseup",RF)}});var LF=Yo(function(e){if(yf&&$f!=null&&bf!=null){e.preventDefault();var t=e.clientX,n=jF+(t-IF);(n=Math.floor(100*n)/100)<30&&(n=30),_.setNodes($f,{width:n.toString()},{at:bf})}},100),soe={type:"table",renderElem:function(e,t,n){var r=function(l,c){if(l.isDisabled())return!1;var f=l.selection;if(f==null||j.isCollapsed(f))return!0;var d=f.anchor,p=f.focus,m=A.findPath(l,c),v=E.start(l,m),g=E.end(l,m),y=$e.compare(d,g)<=0&&$e.compare(d,v)>=0,h=$e.compare(p,g)<=0&&$e.compare(p,v)>=0;return!!(y&&h&&P.equals(d.path.slice(0,3),p.path.slice(0,3)))}(n,e),i=e.width,o=i===void 0?"auto":i,a=A.isNodeSelected(n,e),u=Hg(e),s=fe("div",{className:"table-container","data-selected":a,on:{mousedown:function(l){if(l.target.tagName==="DIV"&&l.preventDefault(),!n.isDisabled()){var c=A.findPath(n,e),f=E.start(n,c),d=n.selection;d!=null?d.anchor.path[0]!==c[0]&&n.select(f):n.select(f)}}}},fe("table",{width:o,contentEditable:r},fe("colgroup",null,u.map(function(l){var c=l.width;return fe("col",{width:c===void 0?"auto":c})})),fe("tbody",null,t)));return s}},loe={type:"table-row",renderElem:function(e,t,n){return fe("tr",null,t)}},coe={type:"table-cell",renderElem:function(e,t,n){var r=function(d,p){var m=A.getParentNode(d,p);if(m==null)return!1;var v=A.getParentNode(d,m);return v!=null&&Hg(v).some(function(g){return g===p})}(n,e),i=e,o=i.colSpan,a=o===void 0?1:o,u=i.rowSpan,s=u===void 0?1:u,l=i.isHeader,c=l!==void 0&&l;if(!r)return fe("td",{colSpan:a,rowSpan:s},t);var f=fe(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Yo(function(d){var p=this.elm;if(p!=null){var m=p.getBoundingClientRect(),v=m.left,g=m.width,y=m.top,h=m.height,$=d.clientX,w=d.clientY;yf||($>v+g-5&&$<v+g&&w>y&&w<y+h?(p.style.cursor="col-resize",$f=n,bf=A.findPath(n,e)):yf||(p.style.cursor="auto",$f=null,bf=null))}},100)}},t);return f}},foe={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},doe={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},poe={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,o=n.rowSpan,a=o===void 0?1:o,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+i+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}},hoe={selector:"table",preParseHtml:function(e){var t=O(e);if(NF(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},goe=zg.filter;mo({target:"Array",proto:!0,forced:!I$("filter")},{filter:function(e){return goe(this,e,arguments.length>1?arguments[1]:void 0)}});var voe=Math.floor,G$=Fe("".charAt),moe=Fe("".replace),q$=Fe("".slice),yoe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,boe=/\$([$&'`]|\d{1,2})/g,$oe=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=boe;return i!==void 0&&(i=p$(i),s=yoe),moe(o,s,function(l,c){var f;switch(G$(c,0)){case"$":return"$";case"&":return e;case"`":return q$(t,0,n);case"'":return q$(t,a);case"<":f=i[q$(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=voe(d/10);return p===0?l:p<=u?r[p-1]===void 0?G$(c,1):r[p-1]+G$(c,1):l}f=r[d-1]}return f===void 0?"":f})},K$=nr("replace"),woe=Math.max,Eoe=Math.min,xoe=Fe([].concat),Y$=Fe([].push),MF=Fe("".indexOf),zF=Fe("".slice),Soe="a".replace(/./,"$0")==="$0",HF=!!/./[K$]&&/./[K$]("a","$0")==="";OF("replace",function(e,t,n){var r=HF?"$":"$0";return[function(i,o){var a=go(this),u=i==null?void 0:c$(i,K$);return u?Tt(u,i,a,o):Tt(t,rn(a),i,o)},function(i,o){var a=rr(this),u=rn(i);if(typeof o=="string"&&MF(o,r)===-1&&MF(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Jt(o);l||(o=rn(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=U$(a,u);if(p===null||(Y$(d,p),!c))break;rn(p[0])===""&&(a.lastIndex=TF(u,x$(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<d.length;y++){for(var h=rn((p=d[y])[0]),$=woe(Eoe(_g(p.index),u.length),0),w=[],x=1;x<p.length;x++)Y$(w,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=xoe([h],w,$,u);S!==void 0&&Y$(C,S);var N=rn(AF(o,void 0,C))}else N=$oe(h,u,$,w,S,o);$>=g&&(v+=zF(u,g,$)+N,g=$+h.length)}return v+zF(u,g)}]},!!Ft(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Soe||HF);var Doe={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(u){return!!J.isText(u)||!!n.isInline(u)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=parseInt(r.attr("colSpan")||"1"),o=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:NF(r)==="th",colSpan:i,rowSpan:o,width:a,children:t}}},Coe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Aoe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=O(e),i="auto";return function(o,a){for(var u="",s=(o.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()===a&&(u=d[1].trim())}}return u}(r,"width")==="100%"&&(i="100%"),r.attr("width")==="100%"&&(i="100%"),{type:"table",width:i,children:t.filter(function(o){return A.getNodeType(o)==="table-row"})}}},Ooe=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var i=A.getNodeType(r);return i==="pre"||i==="table"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=O('<div class="w-e-panel-content-table"></div>'),i=O("<span>0 &times; 0</span>"),o=O("<table></table>"),a=0;a<10;a++){for(var u=O("<tr></tr>"),s=0;s<10;s++){var l=O("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=O(f).dataset(),p=d.x,m=d.y;i[0].innerHTML=p+1+" &times; "+(m+1),o.children().each(function(v){O(v).children().each(function(g){var y=O(g),h=y.dataset(),$=h.x,w=h.y;$<=p&&w<=m?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=O(f).dataset(),p=d.x,m=d.y;n.insertTable(t,m+1,p+1)}})}o.append(u)}return r.append(o),r.append(i),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var i=parseInt(n,10),o=parseInt(r,10);if(i&&o&&!(i<=0||o<=0)){A.isSelectedEmptyParagraph(t)&&_.removeNodes(t,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(i,o);_.insertNodes(t,a,{mode:"highest"})}},e}(),Boe=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||_.removeNodes(t,{mode:"highest"})},e}(),Foe=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=yr(E.nodes(t,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),i=yr(r[0],2),o=i[0],a=i[1],u=A.getParentNode(t,o),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=P.parent(a),d=P.next(f);_.insertNodes(t,l,{at:d})}}},e}(),Toe=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=yr(E.nodes(t,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),i=yr(r[0],2),o=i[0],a=i[1],u=A.getParentNode(t,o);((u==null?void 0:u.children.length)||0)<=1?_.removeNodes(t,{mode:"highest"}):_.removeNodes(t,{at:a})}},e}(),UF={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},X$=v$("span").classList,VF=X$&&X$.constructor&&X$.constructor.prototype,koe=VF===Object.prototype?void 0:VF,Poe=zg.forEach,_oe=function(e,t){var n=[][e];return!!n&&Ft(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),J$=_oe?[].forEach:function(e){return Poe(this,e,arguments.length>1?arguments[1]:void 0)},WF=function(e){if(e&&e.forEach!==J$)try{Ds(e,"forEach",J$)}catch(t){e.forEach=J$}};for(var Z$ in UF)UF[Z$]&&WF(Se[Z$]&&Se[Z$].prototype);WF(koe);var Noe=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=yr(E.nodes(t,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),i=yr(r[0],2),o=i[0],a=i[1],u=A.getParentNode(t,o);if(u!=null){var s=A.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){ne.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(t,f);if(d.length===a.length&&BB(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&wF(s)&&(p.isHeader=!0),_.insertNodes(t,p,{at:d})}})})}}},e}(),Ioe=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=yr(E.nodes(t,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),i=yr(r[0],2),o=i[0],a=i[1],u=A.getParentNode(t,o),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)_.removeNodes(t,{mode:"highest"});else{var l=A.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){ne.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(t,f);d.length===a.length&&BB(d.slice(-1),a.slice(-1))&&_.removeNodes(t,{at:d})})})}}},e}(),joe=function(){function e(){this.title=K("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(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&wF(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,i=A.getSelectedNodeByType(t,"table");i!=null&&Hg(i).forEach(function(o){return _.setNodes(t,{isHeader:r},{at:A.findPath(t,o)})})}},e}(),Roe=function(){function e(){this.title=K("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(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};_.setNodes(t,r,{mode:"highest"})}},e}(),Loe={renderElems:[soe,loe,coe],elemsToHtml:[foe,doe,poe],preParseHtml:[hoe],parseElemsHtml:[Doe,Coe,Aoe],menus:[{key:"insertTable",factory:function(){return new Ooe}},{key:"deleteTable",factory:function(){return new Boe}},{key:"insertTableRow",factory:function(){return new Foe}},{key:"deleteTableRow",factory:function(){return new Toe}},{key:"insertTableCol",factory:function(){return new Noe}},{key:"deleteTableCol",factory:function(){return new Ioe}},{key:"tableHeader",factory:function(){return new joe}},{key:"tableFullWidth",factory:function(){return new Roe}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,o=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
  115. `)},s.deleteBackward=function(l){if(!vF(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=mF(s,f),p=mF(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(e);A.checkNodeType(c[0],"table-cell")&&_.select(e,c[1]);var f=E.next(e);if(f)f[0]&&f[0].text&&(f=(l=E.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),_.select(e,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var m=A.genEmptyParagraph();_.insertNodes(s,m,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){vF(s)||r(l)},s.normalizeNode=function(l){var c=yr(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return i([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();_.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
  116. `||/<img[^>]+>/.test(l.getData("text/html"))?o(l):E.insertText(s,c)}else o(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(P.equals(f.path.slice(0,3),d.path.slice(0,3)))if(q.string(c).length!==0){var p=A.findPath(s,c),m={anchor:E.start(s,p),focus:E.end(s,p)};s.select(m)}else u();else u()}else u()}else u()},s}};pn("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"}}),pn("zh-CN",{videoModule:{delete:"\u5220\u9664\u89C6\u9891",uploadVideo:"\u4E0A\u4F20\u89C6\u9891",insertVideo:"\u63D2\u5165\u89C6\u9891",videoSrc:"\u89C6\u9891\u5730\u5740",videoSrcPlaceHolder:"\u89C6\u9891\u6587\u4EF6 url \u6216\u7B2C\u4E09\u65B9 <iframe>",videoPoster:"\u89C6\u9891\u5C01\u9762",videoPosterPlaceHolder:"\u5C01\u9762\u56FE\u7247 url",ok:"\u786E\u5B9A",editSize:"\u4FEE\u6539\u5C3A\u5BF8",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6"}});/*! *****************************************************************************
  117. Copyright (c) Microsoft Corporation.
  118. Permission to use, copy, modify, and/or distribute this software for any
  119. purpose with or without fee is hereby granted.
  120. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  121. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  122. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  123. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  124. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  125. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  126. PERFORMANCE OF THIS SOFTWARE.
  127. ***************************************************************************** */var Vg=function(){return Vg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Vg.apply(this,arguments)};function Wg(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(l){try{s(r.next(l))}catch(c){o(c)}}function u(l){try{s(r.throw(l))}catch(c){o(c)}}function s(l){var c;l.done?i(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function Gg(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Moe(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 La(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function zoe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Moe(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(o){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(o=e[i](o)).done,o.value)})}}}var GF=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function Q$(e){var t={exports:{}};return e(t,t.exports),t.exports}var bo,qg,Kg=function(e){return e&&e.Math==Math&&e},X=Kg(typeof globalThis=="object"&&globalThis)||Kg(typeof window=="object"&&window)||Kg(typeof self=="object"&&self)||Kg(typeof GF=="object"&&GF)||function(){return this}()||Function("return this")(),Ze=function(e){try{return!!e()}catch(t){return!0}},jr=!Ze(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ef=Function.prototype.call,Ye=Ef.bind?Ef.bind(Ef):function(){return Ef.apply(Ef,arguments)},qF={}.propertyIsEnumerable,KF=Object.getOwnPropertyDescriptor,Hoe={f:KF&&!qF.call({1:2},1)?function(e){var t=KF(this,e);return!!t&&t.enumerable}:qF},Yg=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},YF=Function.prototype,ew=YF.bind,tw=YF.call,Uoe=ew&&ew.bind(tw),ge=ew?function(e){return e&&Uoe(tw,e)}:function(e){return e&&function(){return tw.apply(e,arguments)}},Voe=ge({}.toString),Woe=ge("".slice),Rr=function(e){return Woe(Voe(e),8,-1)},nw=X.Object,Goe=ge("".split),rw=Ze(function(){return!nw("z").propertyIsEnumerable(0)})?function(e){return Rr(e)=="String"?Goe(e,""):nw(e)}:nw,qoe=X.TypeError,xf=function(e){if(e==null)throw qoe("Can't call method on "+e);return e},$o=function(e){return rw(xf(e))},Ve=function(e){return typeof e=="function"},et=function(e){return typeof e=="object"?e!==null:Ve(e)},Koe=function(e){return Ve(e)?e:void 0},Ma=function(e,t){return arguments.length<2?Koe(X[e]):X[e]&&X[e][t]},Sf=ge({}.isPrototypeOf),Bs=Ma("navigator","userAgent")||"",XF=X.process,JF=X.Deno,ZF=XF&&XF.versions||JF&&JF.version,QF=ZF&&ZF.v8;QF&&(qg=(bo=QF.split("."))[0]>0&&bo[0]<4?1:+(bo[0]+bo[1])),!qg&&Bs&&(!(bo=Bs.match(/Edge\/(\d+)/))||bo[1]>=74)&&(bo=Bs.match(/Chrome\/(\d+)/))&&(qg=+bo[1]);var Df=qg,iw=!!Object.getOwnPropertySymbols&&!Ze(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Df&&Df<41}),ow=iw&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yoe=X.Object,aw=ow?function(e){return typeof e=="symbol"}:function(e){var t=Ma("Symbol");return Ve(t)&&Sf(t.prototype,Yoe(e))},Xoe=X.String,Xg=function(e){try{return Xoe(e)}catch(t){return"Object"}},Joe=X.TypeError,wo=function(e){if(Ve(e))return e;throw Joe(Xg(e)+" is not a function")},Cf=function(e,t){var n=e[t];return n==null?void 0:wo(n)},Zoe=X.TypeError,Qoe=Object.defineProperty,uw=function(e,t){try{Qoe(X,e,{value:t,configurable:!0,writable:!0})}catch(n){X[e]=t}return t},Eo=X["__core-js_shared__"]||uw("__core-js_shared__",{}),sw=Q$(function(e){(e.exports=function(t,n){return Eo[t]||(Eo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),eae=X.Object,Jg=function(e){return eae(xf(e))},tae=ge({}.hasOwnProperty),kt=Object.hasOwn||function(e,t){return tae(Jg(e),t)},nae=0,rae=Math.random(),iae=ge(1 .toString),lw=function(e){return"Symbol("+(e===void 0?"":e)+")_"+iae(++nae+rae,36)},Af=sw("wks"),za=X.Symbol,eT=za&&za.for,oae=ow?za:za&&za.withoutSetter||lw,xt=function(e){if(!kt(Af,e)||!iw&&typeof Af[e]!="string"){var t="Symbol."+e;iw&&kt(za,e)?Af[e]=za[e]:Af[e]=ow&&eT?eT(t):oae(t)}return Af[e]},aae=X.TypeError,uae=xt("toPrimitive"),sae=function(e,t){if(!et(e)||aw(e))return e;var n,r=Cf(e,uae);if(r){if(t===void 0&&(t="default"),n=Ye(r,e,t),!et(n)||aw(n))return n;throw aae("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Ve(a=i.toString)&&!et(u=Ye(a,i))||Ve(a=i.valueOf)&&!et(u=Ye(a,i))||o!=="string"&&Ve(a=i.toString)&&!et(u=Ye(a,i)))return u;throw Zoe("Can't convert object to primitive value")}(e,t)},cw=function(e){var t=sae(e,"string");return aw(t)?t:t+""},fw=X.document,lae=et(fw)&&et(fw.createElement),Of=function(e){return lae?fw.createElement(e):{}},tT=!jr&&!Ze(function(){return Object.defineProperty(Of("div"),"a",{get:function(){return 7}}).a!=7}),nT=Object.getOwnPropertyDescriptor,dw={f:jr?nT:function(e,t){if(e=$o(e),t=cw(t),tT)try{return nT(e,t)}catch(n){}if(kt(e,t))return Yg(!Ye(Hoe.f,e,t),e[t])}},cae=X.String,fae=X.TypeError,Ht=function(e){if(et(e))return e;throw fae(cae(e)+" is not an object")},dae=X.TypeError,rT=Object.defineProperty,vi={f:jr?rT:function(e,t,n){if(Ht(e),t=cw(t),Ht(n),tT)try{return rT(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}},mi=jr?function(e,t,n){return vi.f(e,t,Yg(1,n))}:function(e,t,n){return e[t]=n,e},pae=ge(Function.toString);Ve(Eo.inspectSource)||(Eo.inspectSource=function(e){return pae(e)});var Zg,Bf,Qg,e0=Eo.inspectSource,iT=X.WeakMap,oT=Ve(iT)&&/native code/.test(e0(iT)),aT=sw("keys"),pw=function(e){return aT[e]||(aT[e]=lw(e))},t0={},hw=X.TypeError,hae=X.WeakMap;if(oT||Eo.state){var Ha=Eo.state||(Eo.state=new hae),gae=ge(Ha.get),uT=ge(Ha.has),vae=ge(Ha.set);Zg=function(e,t){if(uT(Ha,e))throw new hw("Object already initialized");return t.facade=e,vae(Ha,e,t),t},Bf=function(e){return gae(Ha,e)||{}},Qg=function(e){return uT(Ha,e)}}else{var Fs=pw("state");t0[Fs]=!0,Zg=function(e,t){if(kt(e,Fs))throw new hw("Object already initialized");return t.facade=e,mi(e,Fs,t),t},Bf=function(e){return kt(e,Fs)?e[Fs]:{}},Qg=function(e){return kt(e,Fs)}}var kn={set:Zg,get:Bf,has:Qg,enforce:function(e){return Qg(e)?Bf(e):Zg(e,{})},getterFor:function(e){return function(t){var n;if(!et(t)||(n=Bf(t)).type!==e)throw hw("Incompatible receiver, "+e+" required");return n}}},sT=Function.prototype,mae=jr&&Object.getOwnPropertyDescriptor,gw=kt(sT,"name"),Ts={EXISTS:gw,PROPER:gw&&function(){}.name==="something",CONFIGURABLE:gw&&(!jr||jr&&mae(sT,"name").configurable)},Pn=Q$(function(e){var t=Ts.CONFIGURABLE,n=kn.get,r=kn.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Ve(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!kt(u,"name")||t&&u.name!==p)&&mi(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==X?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:mi(o,a,u)):f?o[a]=u:uw(a,u)})(Function.prototype,"toString",function(){return Ve(this)&&n(this).source||e0(this)})}),yae=Math.ceil,bae=Math.floor,n0=function(e){var t=+e;return t!=t||t===0?0:(t>0?bae:yae)(t)},$ae=Math.max,wae=Math.min,Ff=function(e,t){var n=n0(e);return n<0?$ae(n+t,0):wae(n,t)},Eae=Math.min,lT=function(e){return e>0?Eae(n0(e),9007199254740991):0},Tf=function(e){return lT(e.length)},cT=function(e){return function(t,n,r){var i,o=$o(t),a=Tf(o),u=Ff(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},fT={includes:cT(!0),indexOf:cT(!1)},xae=fT.indexOf,dT=ge([].push),pT=function(e,t){var n,r=$o(e),i=0,o=[];for(n in r)!kt(t0,n)&&kt(r,n)&&dT(o,n);for(;t.length>i;)kt(r,n=t[i++])&&(~xae(o,n)||dT(o,n));return o},r0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sae=r0.concat("length","prototype"),i0={f:Object.getOwnPropertyNames||function(e){return pT(e,Sae)}},Dae={f:Object.getOwnPropertySymbols},Cae=ge([].concat),Aae=Ma("Reflect","ownKeys")||function(e){var t=i0.f(Ht(e)),n=Dae.f;return n?Cae(t,n(e)):t},Oae=function(e,t){for(var n=Aae(t),r=vi.f,i=dw.f,o=0;o<n.length;o++){var a=n[o];kt(e,a)||r(e,a,i(t,a))}},Bae=/#|\.prototype\./,kf=function(e,t){var n=Tae[Fae(e)];return n==Pae||n!=kae&&(Ve(t)?Ze(t):!!t)},Fae=kf.normalize=function(e){return String(e).replace(Bae,".").toLowerCase()},Tae=kf.data={},kae=kf.NATIVE="N",Pae=kf.POLYFILL="P",o0=kf,_ae=dw.f,mn=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?X:l?X[u]||uw(u,{}):(X[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=_ae(n,r))&&a.value:n[r],!o0(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Oae(o,i)}(e.sham||i&&i.sham)&&mi(o,"sham",!0),Pn(n,r,o,e)}},hT={};hT[xt("toStringTag")]="z";var Pf,vw=String(hT)==="[object z]",Nae=xt("toStringTag"),Iae=X.Object,jae=Rr(function(){return arguments}())=="Arguments",a0=vw?Rr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=Iae(e),Nae))=="string"?n:jae?Rr(t):(r=Rr(t))=="Object"&&Ve(t.callee)?"Arguments":r},Rae=X.String,ir=function(e){if(a0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Rae(e)},mw=`
  128. \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,gT=ge("".replace),u0="["+mw+"]",Lae=RegExp("^"+u0+u0+"*"),Mae=RegExp(u0+u0+"*$"),yw=function(e){return function(t){var n=ir(xf(t));return 1&e&&(n=gT(n,Lae,"")),2&e&&(n=gT(n,Mae,"")),n}},zae={start:yw(1),end:yw(2),trim:yw(3)},Hae=Ts.PROPER,Uae=zae.trim;function vT(e){return e.length?e[0].tagName.toLowerCase():""}function mT(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=O(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}mn({target:"String",proto:!0,forced:(Pf="trim",Ze(function(){return!!mw[Pf]()||"\u200B\x85\u180E"[Pf]()!=="\u200B\x85\u180E"||Hae&&mw[Pf].name!==Pf}))},{trim:function(){return Uae(this)}}),mn({global:!0},{globalThis:X}),zn&&(O.fn.append=zn),Dr&&(O.fn.on=Dr),Bi&&(O.fn.focus=Bi),Mn&&(O.fn.attr=Mn),Sr&&(O.fn.val=Sr),Oi&&(O.fn.html=Oi),wu&&(O.fn.parent=wu),yu&&(O.fn.hasClass=yu),Du&&(O.fn.empty=Du);var Vae={type:"video",renderElem:function(e,t,n){var r,i=e,o=i.src,a=o===void 0?"":o,u=i.poster,s=u===void 0?"":u,l=i.width,c=l===void 0?"auto":l,f=i.height,d=f===void 0?"auto":f,p=A.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0){var m=mT(a,c,d);r=fe("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:m})}else{var v=fe("video",{poster:s,controls:!0},fe("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
  129. \u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),r=fe("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return Cu("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},s0,Wae={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?"":r,o=n.poster,a=o===void 0?"":o,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
  130. `;return i.trim().indexOf("<iframe ")===0?f+=mT(i,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+i+'" type="video/mp4"/></video>',f+=`
  131. </div>`}},Gae=Object.keys||function(e){return pT(e,r0)},qae=jr?Object.defineProperties:function(e,t){Ht(e);for(var n,r=$o(t),i=Gae(t),o=i.length,a=0;o>a;)vi.f(e,n=i[a++],r[n]);return e},bw=Ma("document","documentElement"),yT=pw("IE_PROTO"),$w=function(){},bT=function(e){return"<script>"+e+"</script>"},$T=function(e){e.write(bT("")),e.close();var t=e.parentWindow.Object;return e=null,t},l0=function(){try{s0=new ActiveXObject("htmlfile")}catch(r){}var e,t;l0=typeof document!="undefined"?document.domain&&s0?$T(s0):((t=Of("iframe")).style.display="none",bw.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bT("document.F=Object")),e.close(),e.F):$T(s0);for(var n=r0.length;n--;)delete l0.prototype[r0[n]];return l0()};t0[yT]=!0;var ww=Object.create||function(e,t){var n;return e!==null?($w.prototype=Ht(e),n=new $w,$w.prototype=null,n[yT]=e):n=l0(),t===void 0?n:qae(n,t)},Ew=xt("unscopables"),xw=Array.prototype;xw[Ew]==null&&vi.f(xw,Ew,{configurable:!0,value:ww(null)});var _f=function(e){xw[Ew][e]=!0},Kae=fT.includes;mn({target:"Array",proto:!0},{includes:function(e){return Kae(this,e,arguments.length>1?arguments[1]:void 0)}}),_f("includes");var Yae={selector:"iframe,video,p",preParseHtml:function(e){var t=O(e),n=t;if(vT(t)==="p"){var r=t.children();if(r.length===1){var i=r[0],o=i.tagName.toLowerCase();["iframe","video"].includes(o)&&(n=O(i))}}var a=vT(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=O('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},wT=ge(ge.bind),Nf=function(e,t){return wo(e),t===void 0?e:wT?wT(e,t):function(){return e.apply(t,arguments)}},c0=Array.isArray||function(e){return Rr(e)=="Array"},ET=function(){},Xae=[],xT=Ma("Reflect","construct"),Sw=/^\s*(?:class|function)\b/,Jae=ge(Sw.exec),Zae=!Sw.exec(ET),If=function(e){if(!Ve(e))return!1;try{return xT(ET,Xae,e),!0}catch(t){return!1}},Dw=!xT||Ze(function(){var e;return If(If.call)||!If(Object)||!If(function(){e=!0})||e})?function(e){if(!Ve(e))return!1;switch(a0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Zae||!!Jae(Sw,e0(e))}:If,Qae=xt("species"),ST=X.Array,eue=function(e,t){return new(function(n){var r;return c0(n)&&(r=n.constructor,(Dw(r)&&(r===ST||c0(r.prototype))||et(r)&&(r=r[Qae])===null)&&(r=void 0)),r===void 0?ST:r}(e))(t===0?0:t)},DT=ge([].push),xo=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=Jg(s),v=rw(m),g=Nf(l,c),y=Tf(v),h=0,$=f||eue,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:DT(w,d)}else switch(e){case 4:return!1;case 7:DT(w,d)}return o?-1:r||i?i:w}},Cw={forEach:xo(0),map:xo(1),filter:xo(2),some:xo(3),every:xo(4),find:xo(5),findIndex:xo(6),filterReject:xo(7)},tue=Cw.find,CT=!0;"find"in[]&&Array(1).find(function(){CT=!1}),mn({target:"Array",proto:!0,forced:CT},{find:function(e){return tue(this,e,arguments.length>1?arguments[1]:void 0)}}),_f("find");var nue=vw?{}.toString:function(){return"[object "+a0(this)+"]"};function AT(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}vw||Pn(Object.prototype,"toString",nue,{unsafe:!0});var OT,Aw,rue={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=O(e),i="",o="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",AT(i=s[0].outerHTML,o,a,u);var l=r.find("video");return(i=l.attr("src")||"")||l.length>0&&(i=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",AT(i,o=l.attr("poster")||"",a,u)}},BT=function(){var e=Ht(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},Ow=X.RegExp,Bw=Ze(function(){var e=Ow("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),iue=Bw||Ze(function(){return!Ow("a","y").sticky}),oue={BROKEN_CARET:Bw||Ze(function(){var e=Ow("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:iue,UNSUPPORTED_Y:Bw},aue=X.RegExp,uue=Ze(function(){var e=aue(".","s");return!(e.dotAll&&e.exec(`
  132. `)&&e.flags==="s")}),sue=X.RegExp,lue=Ze(function(){var e=sue("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),cue=kn.get,fue=sw("native-string-replace",String.prototype.replace),f0=RegExp.prototype.exec,Fw=f0,due=ge("".charAt),pue=ge("".indexOf),hue=ge("".replace),Tw=ge("".slice),kw=(Aw=/b*/g,Ye(f0,OT=/a/,"a"),Ye(f0,Aw,"a"),OT.lastIndex!==0||Aw.lastIndex!==0),FT=oue.BROKEN_CARET,Pw=/()??/.exec("")[1]!==void 0;(kw||Pw||FT||uue||lue)&&(Fw=function(e){var t,n,r,i,o,a,u,s=this,l=cue(s),c=ir(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ye(Fw,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=FT&&s.sticky,m=Ye(BT,s),v=s.source,g=0,y=c;if(p&&(m=hue(m,"y",""),pue(m,"g")===-1&&(m+="g"),y=Tw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&due(c,s.lastIndex-1)!==`
  133. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),Pw&&(n=new RegExp("^"+v+"$(?!\\s)",m)),kw&&(r=s.lastIndex),i=Ye(f0,p?n:s,y),p?i?(i.input=Tw(i.input,g),i[0]=Tw(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:kw&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Pw&&i&&i.length>1&&Ye(fue,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=ww(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var d0=Fw;mn({target:"RegExp",proto:!0,forced:/./.exec!==d0},{exec:d0});var _w=Function.prototype,TT=_w.apply,gue=_w.bind,kT=_w.call,PT=typeof Reflect=="object"&&Reflect.apply||(gue?kT.bind(TT):function(){return kT.apply(TT,arguments)}),vue=xt("species"),Nw=RegExp.prototype,mue=ge("".charAt),_T=ge("".charCodeAt),yue=ge("".slice),NT=function(e){return function(t,n){var r,i,o=ir(xf(t)),a=n0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=_T(o,a))<55296||r>56319||a+1===u||(i=_T(o,a+1))<56320||i>57343?e?mue(o,a):r:e?yue(o,a,a+2):i-56320+(r-55296<<10)+65536}},IT={codeAt:NT(!1),charAt:NT(!0)},bue=IT.charAt,$ue=function(e,t,n){return t+(n?bue(e,t).length:1)},wue=Math.floor,Iw=ge("".charAt),Eue=ge("".replace),jw=ge("".slice),xue=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Sue=/\$([$&'`]|\d{1,2})/g,Due=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=Sue;return i!==void 0&&(i=Jg(i),s=xue),Eue(o,s,function(l,c){var f;switch(Iw(c,0)){case"$":return"$";case"&":return e;case"`":return jw(t,0,n);case"'":return jw(t,a);case"<":f=i[jw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=wue(d/10);return p===0?l:p<=u?r[p-1]===void 0?Iw(c,1):r[p-1]+Iw(c,1):l}f=r[d-1]}return f===void 0?"":f})},Cue=X.TypeError,Aue=function(e,t){var n=e.exec;if(Ve(n)){var r=Ye(n,e,t);return r!==null&&Ht(r),r}if(Rr(e)==="RegExp")return Ye(d0,e,t);throw Cue("RegExp#exec called on incompatible receiver")},Rw=xt("replace"),Oue=Math.max,Bue=Math.min,Fue=ge([].concat),Lw=ge([].push),jT=ge("".indexOf),RT=ge("".slice),Tue="a".replace(/./,"$0")==="$0",LT=!!/./[Rw]&&/./[Rw]("a","$0")==="";function MT(e){return e===void 0&&(e="r"),e+"-"+S8()}(function(e,t,n,r){var i=xt(e),o=!Ze(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Ze(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[vue]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=ge(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=ge(l),v=c.exec;return v===d0||v===Nw.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Pn(String.prototype,e,s[0]),Pn(Nw,i,s[1])}r&&mi(Nw[i],"sham",!0)})("replace",function(e,t,n){var r=LT?"$":"$0";return[function(i,o){var a=xf(this),u=i==null?void 0:Cf(i,Rw);return u?Ye(u,i,a,o):Ye(t,ir(a),i,o)},function(i,o){var a=Ht(this),u=ir(i);if(typeof o=="string"&&jT(o,r)===-1&&jT(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Ve(o);l||(o=ir(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Aue(a,u);if(p===null||(Lw(d,p),!c))break;ir(p[0])===""&&(a.lastIndex=$ue(u,lT(a.lastIndex),f))}for(var m,v="",g=0,y=0;y<d.length;y++){for(var h=ir((p=d[y])[0]),$=Oue(Bue(n0(p.index),u.length),0),w=[],x=1;x<p.length;x++)Lw(w,(m=p[x])===void 0?m:String(m));var S=p.groups;if(l){var C=Fue([h],w,$,u);S!==void 0&&Lw(C,S);var N=ir(PT(o,void 0,C))}else N=Due(h,u,$,w,S,o);$>=g&&(v+=RT(u,g,$)+N,g=$+h.length)}return v+RT(u,g)}]},!!Ze(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Tue||LT);var p0=X.Promise,h0=function(e,t,n){for(var r in t)Pn(e,r,t[r],n);return e},kue=X.String,Pue=X.TypeError,ks=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return Ht(r),function(o){if(typeof o=="object"||Ve(o))return o;throw Pue("Can't set "+kue(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),_ue=vi.f,zT=xt("toStringTag"),g0=function(e,t,n){e&&!kt(e=n?e:e.prototype,zT)&&_ue(e,zT,{configurable:!0,value:t})},HT=xt("species"),Nue=X.TypeError,Mw=function(e,t){if(Sf(t,e))return e;throw Nue("Incorrect invocation")},Ps={},Iue=xt("iterator"),jue=Array.prototype,Rue=xt("iterator"),UT=function(e){if(e!=null)return Cf(e,Rue)||Cf(e,"@@iterator")||Ps[a0(e)]},Lue=X.TypeError,VT=function(e,t,n){var r,i;Ht(e);try{if(!(r=Cf(e,"return"))){if(t==="throw")throw n;return n}r=Ye(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return Ht(r),n},Mue=X.TypeError,v0=function(e,t){this.stopped=e,this.result=t},WT=v0.prototype,m0=function(e,t,n){var r,i,o,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=Nf(t,f),g=function(h){return r&&VT(r,"normal",h),new v0(!0,h)},y=function(h){return d?(Ht(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(p)r=e;else{if(!(i=UT(e)))throw Mue(Xg(e)+" is not iterable");if((c=i)!==void 0&&(Ps.Array===c||jue[Iue]===c)){for(o=0,a=Tf(e);a>o;o++)if((u=y(e[o]))&&Sf(WT,u))return u;return new v0(!1)}r=function(h,$){var w=arguments.length<2?UT(h):$;if(wo(w))return Ht(Ye(w,h));throw Lue(Xg(h)+" is not iterable")}(e,i)}for(s=r.next;!(l=Ye(s,r)).done;){try{u=y(l.value)}catch(h){VT(r,"throw",h)}if(typeof u=="object"&&u&&Sf(WT,u))return u}return new v0(!1)},GT=xt("iterator"),qT=!1;try{var zue=0,KT={next:function(){return{done:!!zue++}},return:function(){qT=!0}};KT[GT]=function(){return this},Array.from(KT,function(){throw 2})}catch(e){}var jf,_s,YT,zw,XT=function(e,t){if(!t&&!qT)return!1;var n=!1;try{var r={};r[GT]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n},Hue=X.TypeError,Uue=xt("species"),Vue=function(e,t){var n,r=Ht(e).constructor;return r===void 0||(n=Ht(r)[Uue])==null?t:function(i){if(Dw(i))return i;throw Hue(Xg(i)+" is not a constructor")}(n)},JT=ge([].slice),ZT=/(?:ipad|iphone|ipod).*applewebkit/i.test(Bs),So=Rr(X.process)=="process",Hw=X.setImmediate,Uw=X.clearImmediate,Wue=X.process,Vw=X.Dispatch,Gue=X.Function,QT=X.MessageChannel,que=X.String,Ww=0,Rf={};try{jf=X.location}catch(e){}var Gw=function(e){if(kt(Rf,e)){var t=Rf[e];delete Rf[e],t()}},qw=function(e){return function(){Gw(e)}},ek=function(e){Gw(e.data)},tk=function(e){X.postMessage(que(e),jf.protocol+"//"+jf.host)};Hw&&Uw||(Hw=function(e){var t=JT(arguments,1);return Rf[++Ww]=function(){PT(Ve(e)?e:Gue(e),void 0,t)},_s(Ww),Ww},Uw=function(e){delete Rf[e]},So?_s=function(e){Wue.nextTick(qw(e))}:Vw&&Vw.now?_s=function(e){Vw.now(qw(e))}:QT&&!ZT?(zw=(YT=new QT).port2,YT.port1.onmessage=ek,_s=Nf(zw.postMessage,zw)):X.addEventListener&&Ve(X.postMessage)&&!X.importScripts&&jf&&jf.protocol!=="file:"&&!Ze(tk)?(_s=tk,X.addEventListener("message",ek,!1)):_s="onreadystatechange"in Of("script")?function(e){bw.appendChild(Of("script")).onreadystatechange=function(){bw.removeChild(this),Gw(e)}}:function(e){setTimeout(qw(e),0)});var Lf,Ua,Mf,Ns,Kw,Yw,Xw,nk,rk={set:Hw,clear:Uw},Kue=/ipad|iphone|ipod/i.test(Bs)&&X.Pebble!==void 0,Yue=/web0s(?!.*chrome)/i.test(Bs),Xue=dw.f,Jw=rk.set,ik=X.MutationObserver||X.WebKitMutationObserver,ok=X.document,ak=X.process,y0=X.Promise,uk=Xue(X,"queueMicrotask"),sk=uk&&uk.value;sk||(Lf=function(){var e,t;for(So&&(e=ak.domain)&&e.exit();Ua;){t=Ua.fn,Ua=Ua.next;try{t()}catch(n){throw Ua?Ns():Mf=void 0,n}}Mf=void 0,e&&e.enter()},ZT||So||Yue||!ik||!ok?!Kue&&y0&&y0.resolve?((Xw=y0.resolve(void 0)).constructor=y0,nk=Nf(Xw.then,Xw),Ns=function(){nk(Lf)}):So?Ns=function(){ak.nextTick(Lf)}:(Jw=Nf(Jw,X),Ns=function(){Jw(Lf)}):(Kw=!0,Yw=ok.createTextNode(""),new ik(Lf).observe(Yw,{characterData:!0}),Ns=function(){Yw.data=Kw=!Kw}));var Zw,lk,ck,fk,dk=sk||function(e){var t={fn:e,next:void 0};Mf&&(Mf.next=t),Ua||(Ua=t,Ns()),Mf=t},Jue=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=wo(t),this.reject=wo(n)},Qw={f:function(e){return new Jue(e)}},e3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Zue=typeof window=="object",pk=rk.set,Que=xt("species"),Lr="Promise",hk=kn.getterFor(Lr),ese=kn.set,tse=kn.getterFor(Lr),Va=p0&&p0.prototype,Mr=p0,zf=Va,gk=X.TypeError,t3=X.document,n3=X.process,Is=Qw.f,nse=Is,rse=!!(t3&&t3.createEvent&&X.dispatchEvent),vk=Ve(X.PromiseRejectionEvent),mk=!1,Hf=o0(Lr,function(){var e=e0(Mr),t=e!==String(Mr);if(!t&&Df===66)return!0;if(Df>=51&&/native code/.test(e))return!1;var n=new Mr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[Que]=r,!(mk=n.then(function(){})instanceof r)||!t&&Zue&&!vk}),ise=Hf||!XT(function(e){Mr.all(e).catch(function(){})}),yk=function(e){var t;return!(!et(e)||!Ve(t=e.then))&&t},r3=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;dk(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,u,s,l=n[o++],c=i?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(i||(e.rejection===2&&ase(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(gk("Promise-chain cycle")):(u=yk(a))?Ye(u,a,f,d):f(a)):d(r)}catch(m){p&&!s&&p.exit(),d(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ose(e)})}},bk=function(e,t,n){var r,i;rse?((r=t3.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),X.dispatchEvent(r)):r={promise:t,reason:n},!vk&&(i=X["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var u=X.console;u&&u.error&&(arguments.length==1?u.error(o):u.error(o,a))}("Unhandled promise rejection",n)},ose=function(e){Ye(pk,X,function(){var t,n=e.facade,r=e.value;if($k(e)&&(t=e3(function(){So?n3.emit("unhandledRejection",r,n):bk("unhandledrejection",n,r)}),e.rejection=So||$k(e)?2:1,t.error))throw t.value})},$k=function(e){return e.rejection!==1&&!e.parent},ase=function(e){Ye(pk,X,function(){var t=e.facade;So?n3.emit("rejectionHandled",t):bk("rejectionhandled",t,e.value)})},js=function(e,t,n){return function(r){e(t,r,n)}},Rs=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,r3(e,!0))},i3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw gk("Promise can't be resolved itself");var r=yk(t);r?dk(function(){var i={done:!1};try{Ye(r,t,js(i3,i,e),js(Rs,i,e))}catch(o){Rs(i,o,e)}}):(e.value=t,e.state=1,r3(e,!1))}catch(i){Rs({done:!1},i,e)}}};if(Hf&&(zf=(Mr=function(e){Mw(this,zf),wo(e),Ye(Zw,this);var t=hk(this);try{e(js(i3,t),js(Rs,t))}catch(n){Rs(t,n)}}).prototype,(Zw=function(e){ese(this,{type:Lr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h0(zf,{then:function(e,t){var n=tse(this),r=n.reactions,i=Is(Vue(this,Mr));return i.ok=!Ve(e)||e,i.fail=Ve(t)&&t,i.domain=So?n3.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&r3(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),lk=function(){var e=new Zw,t=hk(e);this.promise=e,this.resolve=js(i3,t),this.reject=js(Rs,t)},Qw.f=Is=function(e){return e===Mr||e===ck?new lk(e):nse(e)},Ve(p0)&&Va!==Object.prototype)){fk=Va.then,mk||(Pn(Va,"then",function(e,t){var n=this;return new Mr(function(r,i){Ye(fk,n,r,i)}).then(e,t)},{unsafe:!0}),Pn(Va,"catch",zf.catch,{unsafe:!0}));try{delete Va.constructor}catch(e){}ks&&ks(Va,zf)}function Uf(e,t,n){return n===void 0&&(n=""),Wg(this,void 0,void 0,function(){var r,i,o,a,u,s,l;return Gg(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),i=r.onInsertedVideo,o=r.checkVideo,a=r.parseVideoSrc,[4,o(t,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){_.insertNodes(e,l)}),i(l),[2]}})})}function o3(){return MT("w-e-insert-video")}mn({global:!0,wrap:!0,forced:Hf},{Promise:Mr}),g0(Mr,Lr,!1),function(e){var t=Ma(e),n=vi.f;jr&&t&&!t[HT]&&n(t,HT,{configurable:!0,get:function(){return this}})}(Lr),ck=Ma(Lr),mn({target:Lr,stat:!0,forced:Hf},{reject:function(e){var t=Is(this);return Ye(t.reject,void 0,e),t.promise}}),mn({target:Lr,stat:!0,forced:Hf},{resolve:function(e){return function(t,n){if(Ht(t),et(n)&&n.constructor===t)return n;var r=Qw.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),mn({target:Lr,stat:!0,forced:ise},{all:function(e){var t=this,n=Is(t),r=n.resolve,i=n.reject,o=e3(function(){var a=wo(t.resolve),u=[],s=0,l=1;m0(e,function(c){var f=s++,d=!1;l++,Ye(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},i)}),--l||r(u)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Is(t),r=n.reject,i=e3(function(){var o=wo(t.resolve);m0(e,function(a){Ye(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var use=function(){function e(){this.title=K("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=o3(),this.posterInputId=o3(),this.buttonId=o3()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var i=A.getNodeType(r);return i==="pre"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,i=r.srcInputId,o=r.posterInputId,a=r.buttonId,u=La(Cn(K("videoModule.videoSrc"),i,K("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=La(Cn(K("videoModule.videoPoster"),o,K("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=O(l),m=O(d),v=La(Qu(a,K("videoModule.ok")),1)[0];if(this.$content==null){var g=O("<div></div>");g.on("click","#"+a,function(h){return Wg(n,void 0,void 0,function(){var $,w;return Gg(this,function(x){switch(x.label){case 0:return h.preventDefault(),$=g.find("#"+i).val().trim(),w=g.find("#"+o).val().trim(),[4,Uf(t,$,w)];case 1:return x.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(v),p.val(""),m.val(""),setTimeout(function(){p.focus()}),y[0]},e}(),sse=ge([].join),lse=rw!=Object,cse=function(e,t){var n=[][e];return!!n&&Ze(function(){n.call(null,t||function(){throw 1},1)})}("join",",");mn({target:"Array",proto:!0,forced:lse||!cse},{join:function(e){return sse($o(this),e===void 0?",":e)}});var Wa,wk,Ek,fse=!Ze(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),xk=pw("IE_PROTO"),a3=X.Object,dse=a3.prototype,b0=fse?a3.getPrototypeOf:function(e){var t=Jg(e);if(kt(t,xk))return t[xk];var n=t.constructor;return Ve(n)&&t instanceof n?n.prototype:t instanceof a3?dse:null},u3=xt("iterator"),Sk=!1;[].keys&&("next"in(Ek=[].keys())?(wk=b0(b0(Ek)))!==Object.prototype&&(Wa=wk):Sk=!0);var pse=Wa==null||Ze(function(){var e={};return Wa[u3].call(e)!==e});pse&&(Wa={}),Ve(Wa[u3])||Pn(Wa,u3,function(){return this});var s3={IteratorPrototype:Wa,BUGGY_SAFARI_ITERATORS:Sk},hse=s3.IteratorPrototype,gse=function(){return this},vse=Ts.PROPER,mse=Ts.CONFIGURABLE,Dk=s3.IteratorPrototype,$0=s3.BUGGY_SAFARI_ITERATORS,Vf=xt("iterator"),yse=function(){return this},Ck=function(e,t,n,r,i,o,a){(function(y,h,$,w){var x=h+" Iterator";y.prototype=ww(hse,{next:Yg(+!w,$)}),g0(y,x,!1),Ps[x]=gse})(n,t,r);var u,s,l,c=function(y){if(y===i&&v)return v;if(!$0&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,m=p[Vf]||p["@@iterator"]||i&&p[i],v=!$0&&m||c(i),g=t=="Array"&&p.entries||m;if(g&&(u=b0(g.call(new e)))!==Object.prototype&&u.next&&(b0(u)!==Dk&&(ks?ks(u,Dk):Ve(u[Vf])||Pn(u,Vf,yse)),g0(u,f,!0)),vse&&i=="values"&&m&&m.name!=="values"&&(mse?mi(p,"name","values"):(d=!0,v=function(){return Ye(m,this)})),i)if(s={values:c("values"),keys:o?v:c("keys"),entries:c("entries")},a)for(l in s)($0||d||!(l in p))&&Pn(p,l,s[l]);else mn({target:t,proto:!0,forced:$0||d},s);return p[Vf]!==v&&Pn(p,Vf,v,{name:i}),Ps[t]=v,s},bse=kn.set,$se=kn.getterFor("Array Iterator"),Wf=Ck(Array,"Array",function(e,t){bse(this,{type:"Array Iterator",target:$o(e),index:0,kind:t})},function(){var e=$se(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Ps.Arguments=Ps.Array,_f("keys"),_f("values"),_f("entries");var wse=IT.charAt,Ese=kn.set,xse=kn.getterFor("String Iterator");Ck(String,"String",function(e){Ese(this,{type:"String Iterator",string:ir(e),index:0})},function(){var e,t=xse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wse(n,r),t.index+=e.length,{value:e,done:!1})});var Ak=function(e,t,n){var r=cw(t);r in e?vi.f(e,r,Yg(0,n)):e[r]=n},Sse=X.Array,Dse=Math.max,Ok=i0.f,Bk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Cse=function(e){try{return Ok(e)}catch(t){return function(n,r,i){for(var o=Tf(n),a=Ff(r,o),u=Ff(i===void 0?o:i,o),s=Sse(Dse(u-a,0)),l=0;a<u;a++,l++)Ak(s,l,n[a]);return s.length=l,s}(Bk)}},Ase={f:function(e){return Bk&&Rr(e)=="Window"?Cse(e):Ok($o(e))}},Fk=Ze(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),w0=Object.isExtensible,Ga=Ze(function(){w0(1)})||Fk?function(e){return!!et(e)&&(!Fk||Rr(e)!="ArrayBuffer")&&(!w0||w0(e))}:w0,Ose=!Ze(function(){return Object.isExtensible(Object.preventExtensions({}))}),l3=Q$(function(e){var t=vi.f,n=!1,r=lw("meta"),i=0,o=function(u){t(u,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=i0.f,s=ge([].splice),l={};l[r]=1,u(l).length&&(i0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},mn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ase.f}))},fastKey:function(u,s){if(!et(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!kt(u,r)){if(!Ga(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!kt(u,r)){if(!Ga(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return Ose&&n&&Ga(u)&&!kt(u,r)&&o(u),u}};t0[r]=!0}),E0=l3.getWeakData,Bse=kn.set,Fse=kn.getterFor,Tse=Cw.find,kse=Cw.findIndex,Pse=ge([].splice),_se=0,x0=function(e){return e.frozen||(e.frozen=new Tk)},Tk=function(){this.entries=[]},c3=function(e,t){return Tse(e.entries,function(n){return n[0]===t})};Tk.prototype={get:function(e){var t=c3(this,e);if(t)return t[1]},has:function(e){return!!c3(this,e)},set:function(e,t){var n=c3(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=kse(this.entries,function(n){return n[0]===e});return~t&&Pse(this.entries,t,1),!!~t}};var Gf,kk={getConstructor:function(e,t,n,r){var i=e(function(s,l){Mw(s,o),Bse(s,{type:t,id:_se++,frozen:void 0}),l!=null&&m0(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=Fse(t),u=function(s,l,c){var f=a(s),d=E0(Ht(l),!0);return d===!0?x0(f).set(l,c):d[f.id]=c,s};return h0(o,{delete:function(s){var l=a(this);if(!et(s))return!1;var c=E0(s);return c===!0?x0(l).delete(s):c&&kt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!et(s))return!1;var c=E0(s);return c===!0?x0(l).has(s):c&&kt(c,l.id)}}),h0(o,n?{get:function(s){var l=a(this);if(et(s)){var c=E0(s);return c===!0?x0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),i}},S0=kn.enforce,Nse=!X.ActiveXObject&&"ActiveXObject"in X,Pk=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ise=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=X[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=ge(u[g]);Pn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!et(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!et(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!et(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(o0(e,!Ve(a)||!(i||u.forEach&&!Ze(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),l3.enable();else if(o0(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=Ze(function(){f.has(1)}),m=XT(function(g){new a(g)}),v=!i&&Ze(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});m||((s=t(function(g,y){Mw(g,u);var h=function($,w,x){var S,C;return ks&&Ve(S=w.constructor)&&S!==x&&et(C=S.prototype)&&C!==x.prototype&&ks($,C),$}(new a,g,s);return y!=null&&m0(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,mn({global:!0,forced:s!=a},l),g0(s,e),i||n.setStrong(s,e,r),s}("WeakMap",Pk,kk);if(oT&&Nse){Gf=kk.getConstructor(Pk,"WeakMap",!0),l3.enable();var qf=Ise.prototype,_k=ge(qf.delete),D0=ge(qf.has),Nk=ge(qf.get),Ik=ge(qf.set);h0(qf,{delete:function(e){if(et(e)&&!Ga(e)){var t=S0(this);return t.frozen||(t.frozen=new Gf),_k(this,e)||t.frozen.delete(e)}return _k(this,e)},has:function(e){if(et(e)&&!Ga(e)){var t=S0(this);return t.frozen||(t.frozen=new Gf),D0(this,e)||t.frozen.has(e)}return D0(this,e)},get:function(e){if(et(e)&&!Ga(e)){var t=S0(this);return t.frozen||(t.frozen=new Gf),D0(this,e)?Nk(this,e):t.frozen.get(e)}return Nk(this,e)},set:function(e,t){if(et(e)&&!Ga(e)){var n=S0(this);n.frozen||(n.frozen=new Gf),D0(this,e)?Ik(this,e,t):n.frozen.set(e,t)}else Ik(this,e,t);return this}})}var jk={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},f3=Of("span").classList,Rk=f3&&f3.constructor&&f3.constructor.prototype,jse=Rk===Object.prototype?void 0:Rk,d3=xt("iterator"),Lk=xt("toStringTag"),p3=Wf.values,Mk=function(e,t){if(e){if(e[d3]!==p3)try{mi(e,d3,p3)}catch(r){e[d3]=p3}if(e[Lk]||mi(e,Lk,t),jk[t]){for(var n in Wf)if(e[n]!==Wf[n])try{mi(e,n,Wf[n])}catch(r){e[n]=Wf[n]}}}};for(var h3 in jk)Mk(X[h3]&&X[h3].prototype,h3);Mk(jse,"DOMTokenList");var Rse=Ts.EXISTS,Lse=vi.f,zk=Function.prototype,Mse=ge(zk.toString),Hk=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zse=ge(Hk.exec);jr&&!Rse&&Lse(zk,"name",{configurable:!0,get:function(){try{return zse(Hk,Mse(this))[1]}catch(e){return""}}});var Hse=xt("species"),Use=function(e){return Df>=51||!Ze(function(){var t=[];return(t.constructor={})[Hse]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("slice"),Vse=xt("species"),g3=X.Array,Wse=Math.max;function Uk(e){return e.getMenuConfig("uploadVideo")}mn({target:"Array",proto:!0,forced:!Use},{slice:function(e,t){var n,r,i,o=$o(this),a=Tf(o),u=Ff(e,a),s=Ff(t===void 0?a:t,a);if(c0(o)&&(n=o.constructor,(Dw(n)&&(n===g3||c0(n.prototype))||et(n)&&(n=n[Vse])===null)&&(n=void 0),n===g3||n===void 0))return JT(o,u,s);for(r=new(n===void 0?g3:n)(Wse(s-u,0)),i=0;u<s;u++,i++)u in o&&Ak(r,i,o[u]);return r.length=i,r}});var Vk=new WeakMap;function Gse(e,t){return Wg(this,void 0,void 0,function(){var n,r,i,o;return Gg(this,function(a){switch(a.label){case 0:return n=function(u){var s=Vk.get(u);if(s!=null)return s;var l=Uk(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,m=l.onError;return s=YC(Vg(Vg({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,g){if(p)return p(g,function(N,R){return Uf(u,N,R)}),void c(v,g);var y=g.errno,h=y===void 0?1:y,$=g.data,w=$===void 0?{}:$;if(h===0){var x=w.url,S=x===void 0?"":x,C=w.poster;Uf(u,S,C===void 0?"":C),c(v,g)}else d(v,g)},onError:function(v,g,y){m(v,g,y)}})),Vk.set(u,s),s}(e),r=t.name,i=t.type,o=t.size,n.addFile({name:r,type:i,size:o,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var qse=function(){function e(){this.title=K("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,o=i===void 0?[]:i,a=r.customBrowseAndUpload;if(a)a(function(c,f){return Uf(t,c,f)});else{var u="";o.length>0&&(u='accept="'+o.join(", ")+'"');var s=O("body"),l=O('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,m;Wg(this,void 0,void 0,function(){var v,g,y,h,$,w;return Gg(this,function(x){switch(x.label){case 0:if(d==null)return[2];v=Array.prototype.slice.call(d),g=Uk(f).customUpload,x.label=1;case 1:x.trys.push([1,9,10,15]),y=zoe(v),x.label=2;case 2:return[4,y.next()];case 3:return(h=x.sent()).done?[3,8]:($=h.value,g?[4,g($,function(S,C){return Uf(f,S,C)})]:[3,5]);case 4:return x.sent(),[3,7];case 5:return[4,Gse(f,$)];case 6:x.sent(),x.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=x.sent(),p={error:w},[3,15];case 10:return x.trys.push([10,,13,14]),h&&!h.done&&(m=y.return)?[4,m.call(y)]:[3,12];case 11:x.sent(),x.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!j.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var i=A.getNodeType(r);return i==="pre"||i==="list-item"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),Kse=Ts.PROPER,v3=RegExp.prototype,Wk=v3.toString,Yse=ge(BT),Xse=Ze(function(){return Wk.call({source:"a",flags:"b"})!="/a/b"}),Jse=Kse&&Wk.name!="toString";function m3(){return MT("w-e-insert-video")}(Xse||Jse)&&Pn(RegExp.prototype,"toString",function(){var e=Ht(this),t=ir(e.source),n=e.flags;return"/"+t+"/"+ir(n===void 0&&Sf(v3,e)&&!("flags"in v3)?Yse(e):n)},{unsafe:!0});var Zse=function(){function e(){this.title=K("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=m3(),this.heightInputId=m3(),this.buttonId=m3()}return e.prototype.getSelectedVideoNode=function(t){return A.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,i=n.heightInputId,o=n.buttonId,a=La(Cn(K("videoModule.width"),r,"auto"),2),u=a[0],s=a[1],l=O(s),c=La(Cn(K("videoModule.height"),i,"auto"),2),f=c[0],d=c[1],p=O(d),m=La(Qu(o,K("videoModule.ok")),1)[0];if(this.$content==null){var v=O("<div></div>");v.on("click","#"+o,function(S){S.preventDefault();var C=v.find("#"+r).val().trim(),N=v.find("#"+i).val().trim(),R=parseInt(C),U=parseInt(N),W=R?R.toString():"auto",Z=U?U.toString():"auto";t.restoreSelection(),_.setNodes(t,{width:W,height:Z},{match:function(Q){return A.checkNodeType(Q,"video")}}),t.hidePanelOrModal()}),this.$content=v}var g=this.$content;g.empty(),g.append(u),g.append(f),g.append(m);var y=this.getSelectedVideoNode(t);if(y==null)return g[0];var h=y.width,$=h===void 0?"auto":h,w=y.height,x=w===void 0?"auto":w;return l.val($),p.val(x),setTimeout(function(){l.focus()}),g[0]},e}(),Qse={renderElems:[Vae],elemsToHtml:[Wae],preParseHtml:[Yae],parseElemsHtml:[rue],menus:[{key:"insertVideo",factory:function(){return new use},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new qse},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Zse}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(i){return i.type==="video"||t(i)},r.normalizeNode=function(i){var o=La(i,2),a=o[0],u=o[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&_.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};pn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),pn("zh-CN",{uploadImgModule:{uploadImage:"\u4E0A\u4F20\u56FE\u7247",uploadError:"{{fileName}} \u4E0A\u4F20\u51FA\u9519"}});var Gk=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function y3(e){var t={exports:{}};return e(t,t.exports),t.exports}var Do,C0,A0=function(e){return e&&e.Math==Math&&e},Y=A0(typeof globalThis=="object"&&globalThis)||A0(typeof window=="object"&&window)||A0(typeof self=="object"&&self)||A0(typeof Gk=="object"&&Gk)||function(){return this}()||Function("return this")(),tt=function(e){try{return!!e()}catch(t){return!0}},zr=!tt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Kf=Function.prototype.call,ze=Kf.bind?Kf.bind(Kf):function(){return Kf.apply(Kf,arguments)},qk={}.propertyIsEnumerable,Kk=Object.getOwnPropertyDescriptor,ele={f:Kk&&!qk.call({1:2},1)?function(e){var t=Kk(this,e);return!!t&&t.enumerable}:qk},O0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yk=Function.prototype,b3=Yk.bind,$3=Yk.call,tle=b3&&b3.bind($3),De=b3?function(e){return e&&tle($3,e)}:function(e){return e&&function(){return $3.apply(e,arguments)}},nle=De({}.toString),rle=De("".slice),br=function(e){return rle(nle(e),8,-1)},w3=Y.Object,ile=De("".split),E3=tt(function(){return!w3("z").propertyIsEnumerable(0)})?function(e){return br(e)=="String"?ile(e,""):w3(e)}:w3,ole=Y.TypeError,Yf=function(e){if(e==null)throw ole("Can't call method on "+e);return e},Co=function(e){return E3(Yf(e))},qe=function(e){return typeof e=="function"},Qe=function(e){return typeof e=="object"?e!==null:qe(e)},ale=function(e){return qe(e)?e:void 0},qa=function(e,t){return arguments.length<2?ale(Y[e]):Y[e]&&Y[e][t]},Xf=De({}.isPrototypeOf),Ls=qa("navigator","userAgent")||"",Xk=Y.process,Jk=Y.Deno,Zk=Xk&&Xk.versions||Jk&&Jk.version,Qk=Zk&&Zk.v8;Qk&&(C0=(Do=Qk.split("."))[0]>0&&Do[0]<4?1:+(Do[0]+Do[1])),!C0&&Ls&&(!(Do=Ls.match(/Edge\/(\d+)/))||Do[1]>=74)&&(Do=Ls.match(/Chrome\/(\d+)/))&&(C0=+Do[1]);var Jf=C0,x3=!!Object.getOwnPropertySymbols&&!tt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Jf&&Jf<41}),S3=x3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ule=Y.Object,D3=S3?function(e){return typeof e=="symbol"}:function(e){var t=qa("Symbol");return qe(t)&&Xf(t.prototype,ule(e))},sle=Y.String,B0=function(e){try{return sle(e)}catch(t){return"Object"}},lle=Y.TypeError,Ao=function(e){if(qe(e))return e;throw lle(B0(e)+" is not a function")},Zf=function(e,t){var n=e[t];return n==null?void 0:Ao(n)},cle=Y.TypeError,fle=Object.defineProperty,C3=function(e,t){try{fle(Y,e,{value:t,configurable:!0,writable:!0})}catch(n){Y[e]=t}return t},Oo=Y["__core-js_shared__"]||C3("__core-js_shared__",{}),A3=y3(function(e){(e.exports=function(t,n){return Oo[t]||(Oo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),dle=Y.Object,O3=function(e){return dle(Yf(e))},ple=De({}.hasOwnProperty),Pt=Object.hasOwn||function(e,t){return ple(O3(e),t)},hle=0,gle=Math.random(),vle=De(1 .toString),B3=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vle(++hle+gle,36)},Qf=A3("wks"),Ka=Y.Symbol,eP=Ka&&Ka.for,mle=S3?Ka:Ka&&Ka.withoutSetter||B3,St=function(e){if(!Pt(Qf,e)||!x3&&typeof Qf[e]!="string"){var t="Symbol."+e;x3&&Pt(Ka,e)?Qf[e]=Ka[e]:Qf[e]=S3&&eP?eP(t):mle(t)}return Qf[e]},yle=Y.TypeError,ble=St("toPrimitive"),$le=function(e,t){if(!Qe(e)||D3(e))return e;var n,r=Zf(e,ble);if(r){if(t===void 0&&(t="default"),n=ze(r,e,t),!Qe(n)||D3(n))return n;throw yle("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&qe(a=i.toString)&&!Qe(u=ze(a,i))||qe(a=i.valueOf)&&!Qe(u=ze(a,i))||o!=="string"&&qe(a=i.toString)&&!Qe(u=ze(a,i)))return u;throw cle("Can't convert object to primitive value")}(e,t)},F3=function(e){var t=$le(e,"string");return D3(t)?t:t+""},T3=Y.document,wle=Qe(T3)&&Qe(T3.createElement),ed=function(e){return wle?T3.createElement(e):{}},tP=!zr&&!tt(function(){return Object.defineProperty(ed("div"),"a",{get:function(){return 7}}).a!=7}),nP=Object.getOwnPropertyDescriptor,k3={f:zr?nP:function(e,t){if(e=Co(e),t=F3(t),tP)try{return nP(e,t)}catch(n){}if(Pt(e,t))return O0(!ze(ele.f,e,t),e[t])}},Ele=Y.String,xle=Y.TypeError,Ut=function(e){if(Qe(e))return e;throw xle(Ele(e)+" is not an object")},Sle=Y.TypeError,rP=Object.defineProperty,yi={f:zr?rP:function(e,t,n){if(Ut(e),t=F3(t),Ut(n),tP)try{return rP(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Sle("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Hr=zr?function(e,t,n){return yi.f(e,t,O0(1,n))}:function(e,t,n){return e[t]=n,e},Dle=De(Function.toString);qe(Oo.inspectSource)||(Oo.inspectSource=function(e){return Dle(e)});var F0,td,T0,k0=Oo.inspectSource,iP=Y.WeakMap,oP=qe(iP)&&/native code/.test(k0(iP)),aP=A3("keys"),P3=function(e){return aP[e]||(aP[e]=B3(e))},P0={},_3=Y.TypeError,Cle=Y.WeakMap;if(oP||Oo.state){var Ya=Oo.state||(Oo.state=new Cle),Ale=De(Ya.get),uP=De(Ya.has),Ole=De(Ya.set);F0=function(e,t){if(uP(Ya,e))throw new _3("Object already initialized");return t.facade=e,Ole(Ya,e,t),t},td=function(e){return Ale(Ya,e)||{}},T0=function(e){return uP(Ya,e)}}else{var Ms=P3("state");P0[Ms]=!0,F0=function(e,t){if(Pt(e,Ms))throw new _3("Object already initialized");return t.facade=e,Hr(e,Ms,t),t},td=function(e){return Pt(e,Ms)?e[Ms]:{}},T0=function(e){return Pt(e,Ms)}}var _n={set:F0,get:td,has:T0,enforce:function(e){return T0(e)?td(e):F0(e,{})},getterFor:function(e){return function(t){var n;if(!Qe(t)||(n=td(t)).type!==e)throw _3("Incompatible receiver, "+e+" required");return n}}},sP=Function.prototype,Ble=zr&&Object.getOwnPropertyDescriptor,N3=Pt(sP,"name"),nd={EXISTS:N3,PROPER:N3&&function(){}.name==="something",CONFIGURABLE:N3&&(!zr||zr&&Ble(sP,"name").configurable)},Nn=y3(function(e){var t=nd.CONFIGURABLE,n=_n.get,r=_n.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;qe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pt(u,"name")||t&&u.name!==p)&&Hr(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==Y?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:Hr(o,a,u)):f?o[a]=u:C3(a,u)})(Function.prototype,"toString",function(){return qe(this)&&n(this).source||k0(this)})}),Fle=Math.ceil,Tle=Math.floor,I3=function(e){var t=+e;return t!=t||t===0?0:(t>0?Tle:Fle)(t)},kle=Math.max,Ple=Math.min,rd=function(e,t){var n=I3(e);return n<0?kle(n+t,0):Ple(n,t)},_le=Math.min,lP=function(e){return e>0?_le(I3(e),9007199254740991):0},id=function(e){return lP(e.length)},cP=function(e){return function(t,n,r){var i,o=Co(t),a=id(o),u=rd(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},Nle={includes:cP(!0),indexOf:cP(!1)}.indexOf,fP=De([].push),dP=function(e,t){var n,r=Co(e),i=0,o=[];for(n in r)!Pt(P0,n)&&Pt(r,n)&&fP(o,n);for(;t.length>i;)Pt(r,n=t[i++])&&(~Nle(o,n)||fP(o,n));return o},_0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ile=_0.concat("length","prototype"),N0={f:Object.getOwnPropertyNames||function(e){return dP(e,Ile)}},jle={f:Object.getOwnPropertySymbols},Rle=De([].concat),Lle=qa("Reflect","ownKeys")||function(e){var t=N0.f(Ut(e)),n=jle.f;return n?Rle(t,n(e)):t},Mle=function(e,t){for(var n=Lle(t),r=yi.f,i=k3.f,o=0;o<n.length;o++){var a=n[o];Pt(e,a)||r(e,a,i(t,a))}},zle=/#|\.prototype\./,od=function(e,t){var n=Ule[Hle(e)];return n==Wle||n!=Vle&&(qe(t)?tt(t):!!t)},Hle=od.normalize=function(e){return String(e).replace(zle,".").toLowerCase()},Ule=od.data={},Vle=od.NATIVE="N",Wle=od.POLYFILL="P",I0=od,Gle=k3.f,Ur=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?Y:l?Y[u]||C3(u,{}):(Y[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Gle(n,r))&&a.value:n[r],!I0(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Mle(o,i)}(e.sham||i&&i.sham)&&Hr(o,"sham",!0),Nn(n,r,o,e)}},j0=Array.isArray||function(e){return br(e)=="Array"},pP={};pP[St("toStringTag")]="z";var hP,j3=String(pP)==="[object z]",qle=St("toStringTag"),Kle=Y.Object,Yle=br(function(){return arguments}())=="Arguments",R0=j3?br:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=Kle(e),qle))=="string"?n:Yle?br(t):(r=br(t))=="Object"&&qe(t.callee)?"Arguments":r},gP=function(){},Xle=[],vP=qa("Reflect","construct"),R3=/^\s*(?:class|function)\b/,Jle=De(R3.exec),Zle=!R3.exec(gP),ad=function(e){if(!qe(e))return!1;try{return vP(gP,Xle,e),!0}catch(t){return!1}},L3=!vP||tt(function(){var e;return ad(ad.call)||!ad(Object)||!ad(function(){e=!0})||e})?function(e){if(!qe(e))return!1;switch(R0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Zle||!!Jle(R3,k0(e))}:ad,mP=function(e,t,n){var r=F3(t);r in e?yi.f(e,r,O0(0,n)):e[r]=n},Qle=St("species"),yP=De([].slice),ece=(hP="slice",Jf>=51||!tt(function(){var e=[];return(e.constructor={})[Qle]=function(){return{foo:1}},e[hP](Boolean).foo!==1})),tce=St("species"),M3=Y.Array,nce=Math.max;Ur({target:"Array",proto:!0,forced:!ece},{slice:function(e,t){var n,r,i,o=Co(this),a=id(o),u=rd(e,a),s=rd(t===void 0?a:t,a);if(j0(o)&&(n=o.constructor,(L3(n)&&(n===M3||j0(n.prototype))||Qe(n)&&(n=n[tce])===null)&&(n=void 0),n===M3||n===void 0))return yP(o,u,s);for(r=new(n===void 0?M3:n)(nce(s-u,0)),i=0;u<s;u++,i++)u in o&&mP(r,i,o[u]);return r.length=i,r}});var rce=j3?{}.toString:function(){return"[object "+R0(this)+"]"};j3||Nn(Object.prototype,"toString",rce,{unsafe:!0});var L0,ice=Y.String,Bo=function(e){if(R0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ice(e)},bP=function(){var e=Ut(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},z3=Y.RegExp,H3=tt(function(){var e=z3("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),oce=H3||tt(function(){return!z3("a","y").sticky}),$P={BROKEN_CARET:H3||tt(function(){var e=z3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:oce,UNSUPPORTED_Y:H3},ace=Object.keys||function(e){return dP(e,_0)},uce=zr?Object.defineProperties:function(e,t){Ut(e);for(var n,r=Co(t),i=ace(t),o=i.length,a=0;o>a;)yi.f(e,n=i[a++],r[n]);return e},U3=qa("document","documentElement"),wP=P3("IE_PROTO"),V3=function(){},EP=function(e){return"<script>"+e+"</script>"},xP=function(e){e.write(EP("")),e.close();var t=e.parentWindow.Object;return e=null,t},M0=function(){try{L0=new ActiveXObject("htmlfile")}catch(r){}var e,t;M0=typeof document!="undefined"?document.domain&&L0?xP(L0):((t=ed("iframe")).style.display="none",U3.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(EP("document.F=Object")),e.close(),e.F):xP(L0);for(var n=_0.length;n--;)delete M0.prototype[_0[n]];return M0()};P0[wP]=!0;var SP,W3,G3=Object.create||function(e,t){var n;return e!==null?(V3.prototype=Ut(e),n=new V3,V3.prototype=null,n[wP]=e):n=M0(),t===void 0?n:uce(n,t)},sce=Y.RegExp,lce=tt(function(){var e=sce(".","s");return!(e.dotAll&&e.exec(`
  134. `)&&e.flags==="s")}),cce=Y.RegExp,fce=tt(function(){var e=cce("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),dce=_n.get,pce=A3("native-string-replace",String.prototype.replace),z0=RegExp.prototype.exec,q3=z0,hce=De("".charAt),gce=De("".indexOf),vce=De("".replace),K3=De("".slice),Y3=(W3=/b*/g,ze(z0,SP=/a/,"a"),ze(z0,W3,"a"),SP.lastIndex!==0||W3.lastIndex!==0),DP=$P.BROKEN_CARET,X3=/()??/.exec("")[1]!==void 0;(Y3||X3||DP||lce||fce)&&(q3=function(e){var t,n,r,i,o,a,u,s=this,l=dce(s),c=Bo(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ze(q3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=DP&&s.sticky,m=ze(bP,s),v=s.source,g=0,y=c;if(p&&(m=vce(m,"y",""),gce(m,"g")===-1&&(m+="g"),y=K3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hce(c,s.lastIndex-1)!==`
  135. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),X3&&(n=new RegExp("^"+v+"$(?!\\s)",m)),Y3&&(r=s.lastIndex),i=ze(z0,p?n:s,y),p?i?(i.input=K3(i.input,g),i[0]=K3(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Y3&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),X3&&i&&i.length>1&&ze(pce,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=G3(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var ud=q3;Ur({target:"RegExp",proto:!0,forced:/./.exec!==ud},{exec:ud});var J3=Function.prototype,CP=J3.apply,mce=J3.bind,AP=J3.call,OP=typeof Reflect=="object"&&Reflect.apply||(mce?AP.bind(CP):function(){return AP.apply(CP,arguments)}),yce=St("species"),Z3=RegExp.prototype,bce=St("match"),$ce=Y.TypeError,wce=St("species"),BP=function(e,t){var n,r=Ut(e).constructor;return r===void 0||(n=Ut(r)[wce])==null?t:function(i){if(L3(i))return i;throw $ce(B0(i)+" is not a constructor")}(n)},Ece=De("".charAt),FP=De("".charCodeAt),xce=De("".slice),TP=function(e){return function(t,n){var r,i,o=Bo(Yf(t)),a=I3(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=FP(o,a))<55296||r>56319||a+1===u||(i=FP(o,a+1))<56320||i>57343?e?Ece(o,a):r:e?xce(o,a,a+2):i-56320+(r-55296<<10)+65536}},kP={codeAt:TP(!1),charAt:TP(!0)},Sce=kP.charAt,Dce=function(e,t,n){return t+(n?Sce(e,t).length:1)},Cce=Y.Array,Ace=Math.max,Q3=function(e,t,n){for(var r=id(e),i=rd(t,r),o=rd(n===void 0?r:n,r),a=Cce(Ace(o-i,0)),u=0;i<o;i++,u++)mP(a,u,e[i]);return a.length=u,a},Oce=Y.TypeError,PP=function(e,t){var n=e.exec;if(qe(n)){var r=ze(n,e,t);return r!==null&&Ut(r),r}if(br(e)==="RegExp")return ze(ud,e,t);throw Oce("RegExp#exec called on incompatible receiver")},zs=$P.UNSUPPORTED_Y,Bce=Math.min,_P=[].push,Fce=De(/./.exec),Hs=De(_P),sd=De("".slice);(function(e,t,n,r){var i=St(e),o=!tt(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!tt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[yce]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=De(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=De(l),v=c.exec;return v===ud||v===Z3.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Nn(String.prototype,e,s[0]),Nn(Z3,i,s[1])}r&&Hr(Z3[i],"sham",!0)})("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a,u,s=Bo(Yf(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!Qe(a=i)||!((u=a[bce])!==void 0?u:br(a)=="RegExp"))return ze(t,s,i,l);for(var c,f,d,p=[],m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),v=0,g=new RegExp(i.source,m+"g");(c=ze(ud,g,s))&&!((f=g.lastIndex)>v&&(Hs(p,sd(s,v,c.index)),c.length>1&&c.index<s.length&&OP(_P,p,Q3(c,1)),d=c[0].length,v=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return v===s.length?!d&&Fce(g,"")||Hs(p,""):Hs(p,sd(s,v)),p.length>l?Q3(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:ze(t,this,i,o)}:t,[function(i,o){var a=Yf(this),u=i==null?void 0:Zf(i,e);return u?ze(u,i,a,o):ze(r,Bo(a),i,o)},function(i,o){var a=Ut(this),u=Bo(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=BP(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(zs?"g":"y"),d=new l(zs?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return PP(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){d.lastIndex=zs?0:v;var y,h=PP(d,zs?sd(u,v):u);if(h===null||(y=Bce(lP(d.lastIndex+(zs?v:0)),u.length))===m)v=Dce(u,v,c);else{if(Hs(g,sd(u,m,v)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(Hs(g,h[$]),g.length===p)return g;v=m=y}}return Hs(g,sd(u,m)),g}]},!!tt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),zs);/*! *****************************************************************************
  136. Copyright (c) Microsoft Corporation.
  137. Permission to use, copy, modify, and/or distribute this software for any
  138. purpose with or without fee is hereby granted.
  139. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  140. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  141. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  142. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  143. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  144. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  145. PERFORMANCE OF THIS SOFTWARE.
  146. ***************************************************************************** */var H0=function(){return H0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H0.apply(this,arguments)};function e5(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(l){try{s(r.next(l))}catch(c){o(c)}}function u(l){try{s(r.throw(l))}catch(c){o(c)}}function s(l){var c;l.done?i(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function t5(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Tce(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 kce(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Tce(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(o){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(o=e[i](o)).done,o.value)})}}}var n5=St("unscopables"),r5=Array.prototype;r5[n5]==null&&yi.f(r5,n5,{configurable:!0,value:G3(null)});var Xa,NP,IP,i5=function(e){r5[n5][e]=!0},Us={},Pce=!tt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),jP=P3("IE_PROTO"),o5=Y.Object,_ce=o5.prototype,U0=Pce?o5.getPrototypeOf:function(e){var t=O3(e);if(Pt(t,jP))return t[jP];var n=t.constructor;return qe(n)&&t instanceof n?n.prototype:t instanceof o5?_ce:null},a5=St("iterator"),RP=!1;[].keys&&("next"in(IP=[].keys())?(NP=U0(U0(IP)))!==Object.prototype&&(Xa=NP):RP=!0);var Nce=Xa==null||tt(function(){var e={};return Xa[a5].call(e)!==e});Nce&&(Xa={}),qe(Xa[a5])||Nn(Xa,a5,function(){return this});var u5={IteratorPrototype:Xa,BUGGY_SAFARI_ITERATORS:RP},Ice=yi.f,LP=St("toStringTag"),V0=function(e,t,n){e&&!Pt(e=n?e:e.prototype,LP)&&Ice(e,LP,{configurable:!0,value:t})},jce=u5.IteratorPrototype,Rce=function(){return this},Lce=Y.String,Mce=Y.TypeError,Vs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=De(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(r,i){return Ut(r),function(o){if(typeof o=="object"||qe(o))return o;throw Mce("Can't set "+Lce(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),zce=nd.PROPER,Hce=nd.CONFIGURABLE,MP=u5.IteratorPrototype,W0=u5.BUGGY_SAFARI_ITERATORS,ld=St("iterator"),Uce=function(){return this},zP=function(e,t,n,r,i,o,a){(function(y,h,$,w){var x=h+" Iterator";y.prototype=G3(jce,{next:O0(+!w,$)}),V0(y,x,!1),Us[x]=Rce})(n,t,r);var u,s,l,c=function(y){if(y===i&&v)return v;if(!W0&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,m=p[ld]||p["@@iterator"]||i&&p[i],v=!W0&&m||c(i),g=t=="Array"&&p.entries||m;if(g&&(u=U0(g.call(new e)))!==Object.prototype&&u.next&&(U0(u)!==MP&&(Vs?Vs(u,MP):qe(u[ld])||Nn(u,ld,Uce)),V0(u,f,!0)),zce&&i=="values"&&m&&m.name!=="values"&&(Hce?Hr(p,"name","values"):(d=!0,v=function(){return ze(m,this)})),i)if(s={values:c("values"),keys:o?v:c("keys"),entries:c("entries")},a)for(l in s)(W0||d||!(l in p))&&Nn(p,l,s[l]);else Ur({target:t,proto:!0,forced:W0||d},s);return p[ld]!==v&&Nn(p,ld,v,{name:i}),Us[t]=v,s},Vce=_n.set,Wce=_n.getterFor("Array Iterator"),cd=zP(Array,"Array",function(e,t){Vce(this,{type:"Array Iterator",target:Co(e),index:0,kind:t})},function(){var e=Wce(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Us.Arguments=Us.Array,i5("keys"),i5("values"),i5("entries");var Gce=kP.charAt,qce=_n.set,Kce=_n.getterFor("String Iterator");zP(String,"String",function(e){qce(this,{type:"String Iterator",string:Bo(e),index:0})},function(){var e,t=Kce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Gce(n,r),t.index+=e.length,{value:e,done:!1})});var G0=function(e,t,n){for(var r in t)Nn(e,r,t[r],n);return e},HP=N0.f,UP=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Yce={f:function(e){return UP&&br(e)=="Window"?function(t){try{return HP(t)}catch(n){return Q3(UP)}}(e):HP(Co(e))}},VP=tt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),q0=Object.isExtensible,Ja=tt(function(){q0(1)})||VP?function(e){return!!Qe(e)&&(!VP||br(e)!="ArrayBuffer")&&(!q0||q0(e))}:q0,Xce=!tt(function(){return Object.isExtensible(Object.preventExtensions({}))}),s5=y3(function(e){var t=yi.f,n=!1,r=B3("meta"),i=0,o=function(u){t(u,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=N0.f,s=De([].splice),l={};l[r]=1,u(l).length&&(N0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Ur({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Yce.f}))},fastKey:function(u,s){if(!Qe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Pt(u,r)){if(!Ja(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!Pt(u,r)){if(!Ja(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return Xce&&n&&Ja(u)&&!Pt(u,r)&&o(u),u}};P0[r]=!0}),WP=De(De.bind),fd=function(e,t){return Ao(e),t===void 0?e:WP?WP(e,t):function(){return e.apply(t,arguments)}},Jce=St("iterator"),Zce=Array.prototype,Qce=St("iterator"),GP=function(e){if(e!=null)return Zf(e,Qce)||Zf(e,"@@iterator")||Us[R0(e)]},efe=Y.TypeError,qP=function(e,t,n){var r,i;Ut(e);try{if(!(r=Zf(e,"return"))){if(t==="throw")throw n;return n}r=ze(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return Ut(r),n},tfe=Y.TypeError,K0=function(e,t){this.stopped=e,this.result=t},KP=K0.prototype,Y0=function(e,t,n){var r,i,o,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),v=fd(t,f),g=function(h){return r&&qP(r,"normal",h),new K0(!0,h)},y=function(h){return d?(Ut(h),m?v(h[0],h[1],g):v(h[0],h[1])):m?v(h,g):v(h)};if(p)r=e;else{if(!(i=GP(e)))throw tfe(B0(e)+" is not iterable");if((c=i)!==void 0&&(Us.Array===c||Zce[Jce]===c)){for(o=0,a=id(e);a>o;o++)if((u=y(e[o]))&&Xf(KP,u))return u;return new K0(!1)}r=function(h,$){var w=arguments.length<2?GP(h):$;if(Ao(w))return Ut(ze(w,h));throw efe(B0(h)+" is not iterable")}(e,i)}for(s=r.next;!(l=ze(s,r)).done;){try{u=y(l.value)}catch(h){qP(r,"throw",h)}if(typeof u=="object"&&u&&Xf(KP,u))return u}return new K0(!1)},nfe=Y.TypeError,l5=function(e,t){if(Xf(t,e))return e;throw nfe("Incorrect invocation")},YP=St("iterator"),XP=!1;try{var rfe=0,JP={next:function(){return{done:!!rfe++}},return:function(){XP=!0}};JP[YP]=function(){return this},Array.from(JP,function(){throw 2})}catch(e){}var ZP=function(e,t){if(!t&&!XP)return!1;var n=!1;try{var r={};r[YP]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n},ife=St("species"),QP=Y.Array,ofe=function(e,t){return new(function(n){var r;return j0(n)&&(r=n.constructor,(L3(r)&&(r===QP||j0(r.prototype))||Qe(r)&&(r=r[ife])===null)&&(r=void 0)),r===void 0?QP:r}(e))(t===0?0:t)},e_=De([].push),Fo=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=O3(s),v=E3(m),g=fd(l,c),y=id(v),h=0,$=f||ofe,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:e_(w,d)}else switch(e){case 4:return!1;case 7:e_(w,d)}return o?-1:r||i?i:w}},c5={forEach:Fo(0),map:Fo(1),filter:Fo(2),some:Fo(3),every:Fo(4),find:Fo(5),findIndex:Fo(6),filterReject:Fo(7)},X0=s5.getWeakData,afe=_n.set,ufe=_n.getterFor,sfe=c5.find,lfe=c5.findIndex,cfe=De([].splice),ffe=0,J0=function(e){return e.frozen||(e.frozen=new t_)},t_=function(){this.entries=[]},f5=function(e,t){return sfe(e.entries,function(n){return n[0]===t})};t_.prototype={get:function(e){var t=f5(this,e);if(t)return t[1]},has:function(e){return!!f5(this,e)},set:function(e,t){var n=f5(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=lfe(this.entries,function(n){return n[0]===e});return~t&&cfe(this.entries,t,1),!!~t}};var dd,n_={getConstructor:function(e,t,n,r){var i=e(function(s,l){l5(s,o),afe(s,{type:t,id:ffe++,frozen:void 0}),l!=null&&Y0(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=ufe(t),u=function(s,l,c){var f=a(s),d=X0(Ut(l),!0);return d===!0?J0(f).set(l,c):d[f.id]=c,s};return G0(o,{delete:function(s){var l=a(this);if(!Qe(s))return!1;var c=X0(s);return c===!0?J0(l).delete(s):c&&Pt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Qe(s))return!1;var c=X0(s);return c===!0?J0(l).has(s):c&&Pt(c,l.id)}}),G0(o,n?{get:function(s){var l=a(this);if(Qe(s)){var c=X0(s);return c===!0?J0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),i}},Z0=_n.enforce,dfe=!Y.ActiveXObject&&"ActiveXObject"in Y,r_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},pfe=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=Y[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=De(u[g]);Nn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Qe(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Qe(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Qe(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(I0(e,!qe(a)||!(i||u.forEach&&!tt(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),s5.enable();else if(I0(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=tt(function(){f.has(1)}),m=ZP(function(g){new a(g)}),v=!i&&tt(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});m||((s=t(function(g,y){l5(g,u);var h=function($,w,x){var S,C;return Vs&&qe(S=w.constructor)&&S!==x&&Qe(C=S.prototype)&&C!==x.prototype&&Vs($,C),$}(new a,g,s);return y!=null&&Y0(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,Ur({global:!0,forced:s!=a},l),V0(s,e),i||n.setStrong(s,e,r),s}("WeakMap",r_,n_);if(oP&&dfe){dd=n_.getConstructor(r_,"WeakMap",!0),s5.enable();var pd=pfe.prototype,i_=De(pd.delete),Q0=De(pd.has),o_=De(pd.get),a_=De(pd.set);G0(pd,{delete:function(e){if(Qe(e)&&!Ja(e)){var t=Z0(this);return t.frozen||(t.frozen=new dd),i_(this,e)||t.frozen.delete(e)}return i_(this,e)},has:function(e){if(Qe(e)&&!Ja(e)){var t=Z0(this);return t.frozen||(t.frozen=new dd),Q0(this,e)||t.frozen.has(e)}return Q0(this,e)},get:function(e){if(Qe(e)&&!Ja(e)){var t=Z0(this);return t.frozen||(t.frozen=new dd),Q0(this,e)?o_(this,e):t.frozen.get(e)}return o_(this,e)},set:function(e,t){if(Qe(e)&&!Ja(e)){var n=Z0(this);n.frozen||(n.frozen=new dd),Q0(this,e)?a_(this,e,t):n.frozen.set(e,t)}else a_(this,e,t);return this}})}var ev={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},d5=ed("span").classList,u_=d5&&d5.constructor&&d5.constructor.prototype,s_=u_===Object.prototype?void 0:u_,p5=St("iterator"),l_=St("toStringTag"),h5=cd.values,c_=function(e,t){if(e){if(e[p5]!==h5)try{Hr(e,p5,h5)}catch(r){e[p5]=h5}if(e[l_]||Hr(e,l_,t),ev[t]){for(var n in cd)if(e[n]!==cd[n])try{Hr(e,n,cd[n])}catch(r){e[n]=cd[n]}}}};for(var g5 in ev)c_(Y[g5]&&Y[g5].prototype,g5);c_(s_,"DOMTokenList");var f_=function(e,t){var n=[][e];return!!n&&tt(function(){n.call(null,t||function(){throw 1},1)})},hfe=c5.forEach,v5=f_("forEach")?[].forEach:function(e){return hfe(this,e,arguments.length>1?arguments[1]:void 0)},d_=function(e){if(e&&e.forEach!==v5)try{Hr(e,"forEach",v5)}catch(t){e.forEach=v5}};for(var m5 in ev)ev[m5]&&d_(Y[m5]&&Y[m5].prototype);d_(s_);var hd,Ws,p_,y5,tv=Y.Promise,h_=St("species"),g_=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ls),To=br(Y.process)=="process",b5=Y.setImmediate,$5=Y.clearImmediate,gfe=Y.process,w5=Y.Dispatch,vfe=Y.Function,v_=Y.MessageChannel,mfe=Y.String,E5=0,gd={};try{hd=Y.location}catch(e){}var x5=function(e){if(Pt(gd,e)){var t=gd[e];delete gd[e],t()}},S5=function(e){return function(){x5(e)}},m_=function(e){x5(e.data)},y_=function(e){Y.postMessage(mfe(e),hd.protocol+"//"+hd.host)};b5&&$5||(b5=function(e){var t=yP(arguments,1);return gd[++E5]=function(){OP(qe(e)?e:vfe(e),void 0,t)},Ws(E5),E5},$5=function(e){delete gd[e]},To?Ws=function(e){gfe.nextTick(S5(e))}:w5&&w5.now?Ws=function(e){w5.now(S5(e))}:v_&&!g_?(y5=(p_=new v_).port2,p_.port1.onmessage=m_,Ws=fd(y5.postMessage,y5)):Y.addEventListener&&qe(Y.postMessage)&&!Y.importScripts&&hd&&hd.protocol!=="file:"&&!tt(y_)?(Ws=y_,Y.addEventListener("message",m_,!1)):Ws="onreadystatechange"in ed("script")?function(e){U3.appendChild(ed("script")).onreadystatechange=function(){U3.removeChild(this),x5(e)}}:function(e){setTimeout(S5(e),0)});var vd,Za,md,Gs,D5,C5,A5,b_,$_={set:b5,clear:$5},yfe=/ipad|iphone|ipod/i.test(Ls)&&Y.Pebble!==void 0,bfe=/web0s(?!.*chrome)/i.test(Ls),$fe=k3.f,O5=$_.set,w_=Y.MutationObserver||Y.WebKitMutationObserver,E_=Y.document,x_=Y.process,nv=Y.Promise,S_=$fe(Y,"queueMicrotask"),D_=S_&&S_.value;D_||(vd=function(){var e,t;for(To&&(e=x_.domain)&&e.exit();Za;){t=Za.fn,Za=Za.next;try{t()}catch(n){throw Za?Gs():md=void 0,n}}md=void 0,e&&e.enter()},g_||To||bfe||!w_||!E_?!yfe&&nv&&nv.resolve?((A5=nv.resolve(void 0)).constructor=nv,b_=fd(A5.then,A5),Gs=function(){b_(vd)}):To?Gs=function(){x_.nextTick(vd)}:(O5=fd(O5,Y),Gs=function(){O5(vd)}):(D5=!0,C5=E_.createTextNode(""),new w_(vd).observe(C5,{characterData:!0}),Gs=function(){C5.data=D5=!D5}));var B5,C_,A_,O_,B_=D_||function(e){var t={fn:e,next:void 0};md&&(md.next=t),Za||(Za=t,Gs()),md=t},wfe=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=Ao(t),this.reject=Ao(n)},F5={f:function(e){return new wfe(e)}},T5=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Efe=typeof window=="object",F_=$_.set,xfe=St("species"),Vr="Promise",T_=_n.getterFor(Vr),Sfe=_n.set,Dfe=_n.getterFor(Vr),Qa=tv&&tv.prototype,Wr=tv,yd=Qa,k_=Y.TypeError,k5=Y.document,P5=Y.process,qs=F5.f,Cfe=qs,Afe=!!(k5&&k5.createEvent&&Y.dispatchEvent),P_=qe(Y.PromiseRejectionEvent),__=!1,bd=I0(Vr,function(){var e=k0(Wr),t=e!==String(Wr);if(!t&&Jf===66)return!0;if(Jf>=51&&/native code/.test(e))return!1;var n=new Wr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[xfe]=r,!(__=n.then(function(){})instanceof r)||!t&&Efe&&!P_}),Ofe=bd||!ZP(function(e){Wr.all(e).catch(function(){})}),N_=function(e){var t;return!(!Qe(e)||!qe(t=e.then))&&t},_5=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;B_(function(){for(var r=e.value,i=e.state==1,o=0;n.length>o;){var a,u,s,l=n[o++],c=i?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(i||(e.rejection===2&&Ffe(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(k_("Promise-chain cycle")):(u=N_(a))?ze(u,a,f,d):f(a)):d(r)}catch(m){p&&!s&&p.exit(),d(m)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Bfe(e)})}},I_=function(e,t,n){var r,i;Afe?((r=k5.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Y.dispatchEvent(r)):r={promise:t,reason:n},!P_&&(i=Y["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var u=Y.console;u&&u.error&&(arguments.length==1?u.error(o):u.error(o,a))}("Unhandled promise rejection",n)},Bfe=function(e){ze(F_,Y,function(){var t,n=e.facade,r=e.value;if(j_(e)&&(t=T5(function(){To?P5.emit("unhandledRejection",r,n):I_("unhandledrejection",n,r)}),e.rejection=To||j_(e)?2:1,t.error))throw t.value})},j_=function(e){return e.rejection!==1&&!e.parent},Ffe=function(e){ze(F_,Y,function(){var t=e.facade;To?P5.emit("rejectionHandled",t):I_("rejectionhandled",t,e.value)})},Ks=function(e,t,n){return function(r){e(t,r,n)}},Ys=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,_5(e,!0))},N5=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw k_("Promise can't be resolved itself");var r=N_(t);r?B_(function(){var i={done:!1};try{ze(r,t,Ks(N5,i,e),Ks(Ys,i,e))}catch(o){Ys(i,o,e)}}):(e.value=t,e.state=1,_5(e,!1))}catch(i){Ys({done:!1},i,e)}}};if(bd&&(yd=(Wr=function(e){l5(this,yd),Ao(e),ze(B5,this);var t=T_(this);try{e(Ks(N5,t),Ks(Ys,t))}catch(n){Ys(t,n)}}).prototype,(B5=function(e){Sfe(this,{type:Vr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=G0(yd,{then:function(e,t){var n=Dfe(this),r=n.reactions,i=qs(BP(this,Wr));return i.ok=!qe(e)||e,i.fail=qe(t)&&t,i.domain=To?P5.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&_5(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),C_=function(){var e=new B5,t=T_(e);this.promise=e,this.resolve=Ks(N5,t),this.reject=Ks(Ys,t)},F5.f=qs=function(e){return e===Wr||e===A_?new C_(e):Cfe(e)},qe(tv)&&Qa!==Object.prototype)){O_=Qa.then,__||(Nn(Qa,"then",function(e,t){var n=this;return new Wr(function(r,i){ze(O_,n,r,i)}).then(e,t)},{unsafe:!0}),Nn(Qa,"catch",yd.catch,{unsafe:!0}));try{delete Qa.constructor}catch(e){}Vs&&Vs(Qa,yd)}Ur({global:!0,wrap:!0,forced:bd},{Promise:Wr}),V0(Wr,Vr,!1),function(e){var t=qa(e),n=yi.f;zr&&t&&!t[h_]&&n(t,h_,{configurable:!0,get:function(){return this}})}(Vr),A_=qa(Vr),Ur({target:Vr,stat:!0,forced:bd},{reject:function(e){var t=qs(this);return ze(t.reject,void 0,e),t.promise}}),Ur({target:Vr,stat:!0,forced:bd},{resolve:function(e){return function(t,n){if(Ut(t),Qe(n)&&n.constructor===t)return n;var r=F5.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Ur({target:Vr,stat:!0,forced:Ofe},{all:function(e){var t=this,n=qs(t),r=n.resolve,i=n.reject,o=T5(function(){var a=Ao(t.resolve),u=[],s=0,l=1;Y0(e,function(c){var f=s++,d=!1;l++,ze(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},i)}),--l||r(u)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=qs(t),r=n.reject,i=T5(function(){var o=Ao(t.resolve);Y0(e,function(a){ze(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Tfe=nd.PROPER,I5=RegExp.prototype,R_=I5.toString,kfe=De(bP),Pfe=tt(function(){return R_.call({source:"a",flags:"b"})!="/a/b"}),_fe=Tfe&&R_.name!="toString";(Pfe||_fe)&&Nn(RegExp.prototype,"toString",function(){var e=Ut(this),t=Bo(e.source),n=e.flags;return"/"+t+"/"+Bo(n===void 0&&Xf(I5,e)&&!("flags"in I5)?kfe(e):n)},{unsafe:!0});var Nfe=nd.EXISTS,Ife=yi.f,L_=Function.prototype,jfe=De(L_.toString),M_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rfe=De(M_.exec);zr&&!Nfe&&Ife(L_,"name",{configurable:!0,get:function(){try{return Rfe(M_,jfe(this))[1]}catch(e){return""}}});var z_=new WeakMap;function H_(e){return e.getMenuConfig("uploadImage")}function Lfe(e,t){return e5(this,void 0,void 0,function(){return t5(this,function(n){return[2,new Promise(function(r){var i=new FileReader;i.readAsDataURL(t),i.onload=function(){var o=i.result;if(o){var a=o.toString(),u=a.indexOf("data:image")===0?"":a;Ea(e,a,t.name,u),r("ok")}}})]})})}function Mfe(e,t){return e5(this,void 0,void 0,function(){var n,r,i,o;return t5(this,function(a){switch(a.label){case 0:return n=function(u){var s=z_.get(u);if(s!=null)return s;var l=H_(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,m=l.onError;return s=YC(H0(H0({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,g){if(p)return p(g,function(U,W,Z){return Ea(u,U,W,Z)}),void c(v,g);var y=g.errno,h=y===void 0?1:y,$=g.data,w=$===void 0?{}:$;if(h===0){if(Array.isArray(w))w.forEach(function(U){var W=U.url,Z=W===void 0?"":W,Q=U.alt,le=Q===void 0?"":Q,te=U.href;Ea(u,Z,le,te===void 0?"":te)});else{var x=w.url,S=x===void 0?"":x,C=w.alt,N=C===void 0?"":C,R=w.href;Ea(u,S,N,R===void 0?"":R)}c(v,g)}else d(v,g)},onError:function(v,g,y){m(v,g,y)}})),z_.set(u,s),s}(e),r=t.name,i=t.type,o=t.size,n.addFile({name:r,type:i,size:o,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function U_(e,t){var n,r;return e5(this,void 0,void 0,function(){var i,o,a,u,s,l,c,f,d;return t5(this,function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),o=H_(e),a=o.customUpload,u=o.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=kce(i),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,Lfe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(m,v,g){return Ea(e,m,v,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Mfe(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var zfe=De([].join),Hfe=E3!=Object,Ufe=f_("join",",");Ur({target:"Array",proto:!0,forced:Hfe||!Ufe},{join:function(e){return zfe(Co(this),e===void 0?",":e)}}),zn&&(O.fn.append=zn),Dr&&(O.fn.on=Dr),Su&&(O.fn.remove=Su),Sr&&(O.fn.val=Sr),$8&&(O.fn.click=$8),$u&&(O.fn.hide=$u);var Vfe=function(){function e(){this.title=K("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return jh(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),i=r.allowedFileTypes,o=i===void 0?[]:i,a=r.customBrowseAndUpload;if(a)a(function(c,f,d){return Ea(t,c,f,d)});else{var u="";o.length>0&&(u='accept="'+o.join(", ")+'"');var s=O("body"),l=O('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;U_(t,c)})}},e}(),Wfe={menus:[{key:"uploadImage",factory:function(){return new Vfe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(jh(n))t(r);else if(r.getData("text/plain"))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some(function(o){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(o.type.split("/"),1)[0]==="image"})?U_(e,i):t(r)}},n}};pn("en",{highLightModule:{selectLang:"Language"}}),pn("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var rv=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Be.g!="undefined"?Be.g:typeof self!="undefined"?self:{};function j5(e){var t={exports:{}};return e(t,t.exports),t.exports}var ko,iv,ov=function(e){return e&&e.Math==Math&&e},Oe=ov(typeof globalThis=="object"&&globalThis)||ov(typeof window=="object"&&window)||ov(typeof self=="object"&&self)||ov(typeof rv=="object"&&rv)||function(){return this}()||Function("return this")(),Gfe=Object.defineProperty,R5=function(e,t){try{Gfe(Oe,e,{value:t,configurable:!0,writable:!0})}catch(n){Oe[e]=t}return t},Po=Oe["__core-js_shared__"]||R5("__core-js_shared__",{}),L5=j5(function(e){(e.exports=function(t,n){return Po[t]||(Po[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),V_=Function.prototype,M5=V_.bind,z5=V_.call,qfe=M5&&M5.bind(z5),He=M5?function(e){return e&&qfe(z5,e)}:function(e){return e&&function(){return z5.apply(e,arguments)}},Kfe=Oe.TypeError,Xs=function(e){if(e==null)throw Kfe("Can't call method on "+e);return e},Yfe=Oe.Object,H5=function(e){return Yfe(Xs(e))},Xfe=He({}.hasOwnProperty),or=Object.hasOwn||function(e,t){return Xfe(H5(e),t)},Jfe=0,Zfe=Math.random(),Qfe=He(1 .toString),W_=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Qfe(++Jfe+Zfe,36)},on=function(e){return typeof e=="function"},ede=function(e){return on(e)?e:void 0},$d=function(e,t){return arguments.length<2?ede(Oe[e]):Oe[e]&&Oe[e][t]},U5=$d("navigator","userAgent")||"",G_=Oe.process,q_=Oe.Deno,K_=G_&&G_.versions||q_&&q_.version,Y_=K_&&K_.v8;Y_&&(iv=(ko=Y_.split("."))[0]>0&&ko[0]<4?1:+(ko[0]+ko[1])),!iv&&U5&&(!(ko=U5.match(/Edge\/(\d+)/))||ko[1]>=74)&&(ko=U5.match(/Chrome\/(\d+)/))&&(iv=+ko[1]);var X_=iv,Vt=function(e){try{return!!e()}catch(t){return!0}},V5=!!Object.getOwnPropertySymbols&&!Vt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X_&&X_<41}),W5=V5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wd=L5("wks"),eu=Oe.Symbol,J_=eu&&eu.for,tde=W5?eu:eu&&eu.withoutSetter||W_,_o=function(e){if(!or(wd,e)||!V5&&typeof wd[e]!="string"){var t="Symbol."+e;V5&&or(eu,e)?wd[e]=eu[e]:wd[e]=W5&&J_?J_(t):tde(t)}return wd[e]},Z_={};Z_[_o("toStringTag")]="z";var G5=String(Z_)==="[object z]",Gr=!Vt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),$r=function(e){return typeof e=="object"?e!==null:on(e)},q5=Oe.document,nde=$r(q5)&&$r(q5.createElement),K5=function(e){return nde?q5.createElement(e):{}},Q_=!Gr&&!Vt(function(){return Object.defineProperty(K5("div"),"a",{get:function(){return 7}}).a!=7}),rde=Oe.String,ide=Oe.TypeError,wr=function(e){if($r(e))return e;throw ide(rde(e)+" is not an object")},Ed=Function.prototype.call,Lt=Ed.bind?Ed.bind(Ed):function(){return Ed.apply(Ed,arguments)},eN=He({}.isPrototypeOf),ode=Oe.Object,Y5=W5?function(e){return typeof e=="symbol"}:function(e){var t=$d("Symbol");return on(t)&&eN(t.prototype,ode(e))},ade=Oe.String,tN=function(e){try{return ade(e)}catch(t){return"Object"}},ude=Oe.TypeError,nN=function(e){if(on(e))return e;throw ude(tN(e)+" is not a function")},rN=function(e,t){var n=e[t];return n==null?void 0:nN(n)},sde=Oe.TypeError,lde=Oe.TypeError,cde=_o("toPrimitive"),fde=function(e,t){if(!$r(e)||Y5(e))return e;var n,r=rN(e,cde);if(r){if(t===void 0&&(t="default"),n=Lt(r,e,t),!$r(n)||Y5(n))return n;throw lde("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&on(a=i.toString)&&!$r(u=Lt(a,i))||on(a=i.valueOf)&&!$r(u=Lt(a,i))||o!=="string"&&on(a=i.toString)&&!$r(u=Lt(a,i)))return u;throw sde("Can't convert object to primitive value")}(e,t)},X5=function(e){var t=fde(e,"string");return Y5(t)?t:t+""},dde=Oe.TypeError,iN=Object.defineProperty,av={f:Gr?iN:function(e,t,n){if(wr(e),t=X5(t),wr(n),Q_)try{return iN(e,t,n)}catch(r){}if("get"in n||"set"in n)throw dde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},J5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Js=Gr?function(e,t,n){return av.f(e,t,J5(1,n))}:function(e,t,n){return e[t]=n,e},pde=He(Function.toString);on(Po.inspectSource)||(Po.inspectSource=function(e){return pde(e)});var uv,xd,sv,Z5=Po.inspectSource,oN=Oe.WeakMap,hde=on(oN)&&/native code/.test(Z5(oN)),aN=L5("keys"),uN=function(e){return aN[e]||(aN[e]=W_(e))},Q5={},eE=Oe.TypeError,gde=Oe.WeakMap;if(hde||Po.state){var tu=Po.state||(Po.state=new gde),vde=He(tu.get),sN=He(tu.has),mde=He(tu.set);uv=function(e,t){if(sN(tu,e))throw new eE("Object already initialized");return t.facade=e,mde(tu,e,t),t},xd=function(e){return vde(tu,e)||{}},sv=function(e){return sN(tu,e)}}else{var Zs=uN("state");Q5[Zs]=!0,uv=function(e,t){if(or(e,Zs))throw new eE("Object already initialized");return t.facade=e,Js(e,Zs,t),t},xd=function(e){return or(e,Zs)?e[Zs]:{}},sv=function(e){return or(e,Zs)}}var tE={set:uv,get:xd,has:sv,enforce:function(e){return sv(e)?xd(e):uv(e,{})},getterFor:function(e){return function(t){var n;if(!$r(t)||(n=xd(t)).type!==e)throw eE("Incompatible receiver, "+e+" required");return n}}},lN=Function.prototype,yde=Gr&&Object.getOwnPropertyDescriptor,nE=or(lN,"name"),cN={EXISTS:nE,PROPER:nE&&function(){}.name==="something",CONFIGURABLE:nE&&(!Gr||Gr&&yde(lN,"name").configurable)},Sd=j5(function(e){var t=cN.CONFIGURABLE,n=tE.get,r=tE.enforce,i=String(String).split("String");(e.exports=function(o,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;on(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!or(u,"name")||t&&u.name!==p)&&Js(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==Oe?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:Js(o,a,u)):f?o[a]=u:R5(a,u)})(Function.prototype,"toString",function(){return on(this)&&n(this).source||Z5(this)})}),bde=He({}.toString),$de=He("".slice),No=function(e){return $de(bde(e),8,-1)},wde=_o("toStringTag"),Ede=Oe.Object,xde=No(function(){return arguments}())=="Arguments",rE=G5?No:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch(a){}}(t=Ede(e),wde))=="string"?n:xde?No(t):(r=No(t))=="Object"&&on(t.callee)?"Arguments":r},Sde=G5?{}.toString:function(){return"[object "+rE(this)+"]"};G5||Sd(Object.prototype,"toString",Sde,{unsafe:!0});var Dde,fN,dN={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},iE=K5("span").classList,pN=iE&&iE.constructor&&iE.constructor.prototype,Cde=pN===Object.prototype?void 0:pN,hN=He(He.bind),oE=Oe.Object,Ade=He("".split),aE=Vt(function(){return!oE("z").propertyIsEnumerable(0)})?function(e){return No(e)=="String"?Ade(e,""):oE(e)}:oE,Ode=Math.ceil,Bde=Math.floor,uE=function(e){var t=+e;return t!=t||t===0?0:(t>0?Bde:Ode)(t)},Fde=Math.min,gN=function(e){return e>0?Fde(uE(e),9007199254740991):0},sE=function(e){return gN(e.length)},vN=Array.isArray||function(e){return No(e)=="Array"},mN=function(){},Tde=[],yN=$d("Reflect","construct"),lE=/^\s*(?:class|function)\b/,kde=He(lE.exec),Pde=!lE.exec(mN),Dd=function(e){if(!on(e))return!1;try{return yN(mN,Tde,e),!0}catch(t){return!1}},bN=!yN||Vt(function(){var e;return Dd(Dd.call)||!Dd(Object)||!Dd(function(){e=!0})||e})?function(e){if(!on(e))return!1;switch(rE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pde||!!kde(lE,Z5(e))}:Dd,_de=_o("species"),$N=Oe.Array,Nde=function(e,t){return new(function(n){var r;return vN(n)&&(r=n.constructor,(bN(r)&&(r===$N||vN(r.prototype))||$r(r)&&(r=r[_de])===null)&&(r=void 0)),r===void 0?$N:r}(e))(t===0?0:t)},wN=He([].push),Io=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,m=H5(s),v=aE(m),g=function(x,S){return nN(x),S===void 0?x:hN?hN(x,S):function(){return x.apply(S,arguments)}}(l,c),y=sE(v),h=0,$=f||Nde,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in v)&&(p=g(d=v[h],h,m),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:wN(w,d)}else switch(e){case 4:return!1;case 7:wN(w,d)}return o?-1:r||i?i:w}},Ide={forEach:Io(0),map:Io(1),filter:Io(2),some:Io(3),every:Io(4),find:Io(5),findIndex:Io(6),filterReject:Io(7)}.forEach,cE=!!(fN=[].forEach)&&Vt(function(){fN.call(null,Dde||function(){throw 1},1)})?[].forEach:function(e){return Ide(this,e,arguments.length>1?arguments[1]:void 0)},EN=function(e){if(e&&e.forEach!==cE)try{Js(e,"forEach",cE)}catch(t){e.forEach=cE}};for(var fE in dN)dN[fE]&&EN(Oe[fE]&&Oe[fE].prototype);EN(Cde);var xN={}.propertyIsEnumerable,SN=Object.getOwnPropertyDescriptor,DN={f:SN&&!xN.call({1:2},1)?function(e){var t=SN(this,e);return!!t&&t.enumerable}:xN},lv=function(e){return aE(Xs(e))},CN=Object.getOwnPropertyDescriptor,AN={f:Gr?CN:function(e,t){if(e=lv(e),t=X5(t),Q_)try{return CN(e,t)}catch(n){}if(or(e,t))return J5(!Lt(DN.f,e,t),e[t])}},jde=Math.max,Rde=Math.min,dE=function(e,t){var n=uE(e);return n<0?jde(n+t,0):Rde(n,t)},ON=function(e){return function(t,n,r){var i,o=lv(t),a=sE(o),u=dE(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},Lde={includes:ON(!0),indexOf:ON(!1)}.indexOf,BN=He([].push),FN=function(e,t){var n,r=lv(e),i=0,o=[];for(n in r)!or(Q5,n)&&or(r,n)&&BN(o,n);for(;t.length>i;)or(r,n=t[i++])&&(~Lde(o,n)||BN(o,n));return o},cv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mde=cv.concat("length","prototype"),zde={f:Object.getOwnPropertyNames||function(e){return FN(e,Mde)}},TN={f:Object.getOwnPropertySymbols},Hde=He([].concat),Ude=$d("Reflect","ownKeys")||function(e){var t=zde.f(wr(e)),n=TN.f;return n?Hde(t,n(e)):t},Vde=function(e,t){for(var n=Ude(t),r=av.f,i=AN.f,o=0;o<n.length;o++){var a=n[o];or(e,a)||r(e,a,i(t,a))}},Wde=/#|\.prototype\./,Cd=function(e,t){var n=qde[Gde(e)];return n==Yde||n!=Kde&&(on(t)?Vt(t):!!t)},Gde=Cd.normalize=function(e){return String(e).replace(Wde,".").toLowerCase()},qde=Cd.data={},Kde=Cd.NATIVE="N",Yde=Cd.POLYFILL="P",Xde=Cd,Jde=AN.f,fv=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?Oe:l?Oe[u]||R5(u,{}):(Oe[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Jde(n,r))&&a.value:n[r],!Xde(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Vde(o,i)}(e.sham||i&&i.sham)&&Js(o,"sham",!0),Sd(n,r,o,e)}},dv=Object.keys||function(e){return FN(e,cv)},Qs=Object.assign,kN=Object.defineProperty,Zde=He([].concat),PN=!Qs||Vt(function(){if(Gr&&Qs({b:1},Qs(kN({},"a",{enumerable:!0,get:function(){kN(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(i){t[i]=i}),Qs({},e)[n]!=7||dv(Qs({},t)).join("")!=r})?function(e,t){for(var n=H5(e),r=arguments.length,i=1,o=TN.f,a=DN.f;r>i;)for(var u,s=aE(arguments[i++]),l=o?Zde(dv(s),o(s)):dv(s),c=l.length,f=0;c>f;)u=l[f++],Gr&&!Lt(a,s,u)||(n[u]=s[u]);return n}:Qs;fv({target:"Object",stat:!0,forced:Object.assign!==PN},{assign:PN});var _N=j5(function(e){var t=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,i=0,o={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof u?new u(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++i}),g.__id},clone:function g(y,h){var $,w;switch(h=h||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),h[w])return h[w];for(var x in $={},h[w]=$,y)y.hasOwnProperty(x)&&($[x]=g(y[x],h));return $;case"Array":return w=a.util.objId(y),h[w]?h[w]:($=[],h[w]=$,y.forEach(function(S,C){$[C]=g(S,h)}),$);default:return y}},getLanguage:function(g){for(;g&&!r.test(g.className);)g=g.parentElement;return g?(g.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch($){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec($.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==g)return y[h]}return null}},isActive:function(g,y,h){for(var $="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains($))return!1;g=g.parentElement}return!!h}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(g,y){var h=a.util.clone(a.languages[g]);for(var $ in y)h[$]=y[$];return h},insertBefore:function(g,y,h,$){var w=($=$||a.languages)[g],x={};for(var S in w)if(w.hasOwnProperty(S)){if(S==y)for(var C in h)h.hasOwnProperty(C)&&(x[C]=h[C]);h.hasOwnProperty(S)||(x[S]=w[S])}var N=$[g];return $[g]=x,a.languages.DFS(a.languages,function(R,U){U===N&&R!=g&&(this[R]=x)}),x},DFS:function g(y,h,$,w){w=w||{};var x=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){h.call(y,S,y[S],$||S);var C=y[S],N=a.util.type(C);N!=="Object"||w[x(C)]?N!=="Array"||w[x(C)]||(w[x(C)]=!0,g(C,h,S,w)):(w[x(C)]=!0,g(C,h,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,h){var $={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",$),$.elements=Array.prototype.slice.apply($.container.querySelectorAll($.selector)),a.hooks.run("before-all-elements-highlight",$);for(var w,x=0;w=$.elements[x++];)a.highlightElement(w,y===!0,$.callback)},highlightElement:function(g,y,h){var $=a.util.getLanguage(g),w=a.languages[$];g.className=g.className.replace(r,"").replace(/\s+/g," ")+" language-"+$;var x=g.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&(x.className=x.className.replace(r,"").replace(/\s+/g," ")+" language-"+$);var S={element:g,language:$,grammar:w,code:g.textContent};function C(R){S.highlightedCode=R,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),h&&h.call(S.element)}if(a.hooks.run("before-sanity-check",S),(x=S.element.parentElement)&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(h&&h.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var N=new Worker(a.filename);N.onmessage=function(R){C(R.data)},N.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else C(a.highlight(S.code,S.grammar,S.language));else C(a.util.encode(S.code))},highlight:function(g,y,h){var $={code:g,grammar:y,language:h};return a.hooks.run("before-tokenize",$),$.tokens=a.tokenize($.code,$.grammar),a.hooks.run("after-tokenize",$),u.stringify(a.util.encode($.tokens),$.language)},tokenize:function(g,y){var h=y.rest;if(h){for(var $ in h)y[$]=h[$];delete y.rest}var w=new c;return f(w,w.head,g),l(g,w,y,w.head,0),function(x){for(var S=[],C=x.head.next;C!==x.tail;)S.push(C.value),C=C.next;return S}(w)},hooks:{all:{},add:function(g,y){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(y)},run:function(g,y){var h=a.hooks.all[g];if(h&&h.length)for(var $,w=0;$=h[w++];)$(y)}},Token:u};function u(g,y,h,$){this.type=g,this.content=y,this.alias=h,this.length=0|($||"").length}function s(g,y,h,$){g.lastIndex=y;var w=g.exec(h);if(w&&$&&w[1]){var x=w[1].length;w.index+=x,w[0]=w[0].slice(x)}return w}function l(g,y,h,$,w,x){for(var S in h)if(h.hasOwnProperty(S)&&h[S]){var C=h[S];C=Array.isArray(C)?C:[C];for(var N=0;N<C.length;++N){if(x&&x.cause==S+","+N)return;var R=C[N],U=R.inside,W=!!R.lookbehind,Z=!!R.greedy,Q=R.alias;if(Z&&!R.pattern.global){var le=R.pattern.toString().match(/[imsuy]*$/)[0];R.pattern=RegExp(R.pattern.source,le+"g")}for(var te=R.pattern||R,ue=$.next,he=w;ue!==y.tail&&!(x&&he>=x.reach);he+=ue.value.length,ue=ue.next){var Ie=ue.value;if(y.length>g.length)return;if(!(Ie instanceof u)){var ye,oe=1;if(Z){if(!(ye=s(te,he,g,W)))break;var Le=ye.index,T=ye.index+ye[0].length,F=he;for(F+=ue.value.length;Le>=F;)F+=(ue=ue.next).value.length;if(he=F-=ue.value.length,ue.value instanceof u)continue;for(var k=ue;k!==y.tail&&(F<T||typeof k.value=="string");k=k.next)oe++,F+=k.value.length;oe--,Ie=g.slice(he,F),ye.index-=he}else if(!(ye=s(te,0,Ie,W)))continue;Le=ye.index;var I=ye[0],V=Ie.slice(0,Le),L=Ie.slice(Le+I.length),ee=he+Ie.length;x&&ee>x.reach&&(x.reach=ee);var pe=ue.prev;if(V&&(pe=f(y,pe,V),he+=V.length),d(y,pe,oe),ue=f(y,pe,new u(S,U?a.tokenize(I,U):I,Q,I)),L&&f(y,ue,L),oe>1){var Ce={cause:S+","+N,reach:ee};l(g,y,h,ue.prev,he,Ce),x&&Ce.reach>x.reach&&(x.reach=Ce.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function f(g,y,h){var $=y.next,w={value:h,prev:y,next:$};return y.next=w,$.prev=w,g.length++,w}function d(g,y,h){for(var $=y.next,w=0;w<h&&$!==g.tail;w++)$=$.next;y.next=$,$.prev=y,g.length-=w}if(n.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var $="";return y.forEach(function(N){$+=g(N,h)}),$}var w={type:y.type,content:g(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},x=y.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(w.classes,x):w.classes.push(x)),a.hooks.run("wrap",w);var S="";for(var C in w.attributes)S+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(g){var y=JSON.parse(g.data),h=y.language,$=y.code,w=y.immediateClose;n.postMessage(a.highlight($,a.languages[h],h)),w&&n.close()},!1)),a;var p=a.util.currentScript();function m(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var v=document.readyState;v==="loading"||v==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return a}(typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{});/**
  147. * Prism: Lightweight, robust, elegant syntax highlighting
  148. *
  149. * @license MIT <https://opensource.org/licenses/MIT>
  150. * @author Lea Verou <https://lea.verou.me>
  151. * @namespace
  152. * @public
  153. */e.exports&&(e.exports=t),rv!==void 0&&(rv.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(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\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:[r,"language-"+r],inside:t.languages[r]},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(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.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(t!==void 0&&typeof document!="undefined"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",i="loading",o="loaded",a='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',u=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(c){c.selector+=", "+a}),t.hooks.add("before-sanity-check",function(c){var f=c.element;if(f.matches(a)){c.code="",f.setAttribute(r,i);var d=f.appendChild(document.createElement("CODE"));d.textContent="Loading\u2026";var p=f.getAttribute("data-src"),m=c.language;if(m==="none"){var v=(/\.(\w+)$/.exec(p)||[,"none"])[1];m=n[v]||v}l(d,m),l(f,m);var g=t.plugins.autoloader;g&&g.loadLanguages(m);var y=new XMLHttpRequest;y.open("GET",p,!0),y.onreadystatechange=function(){var h,$;y.readyState==4&&(y.status<400&&y.responseText?(f.setAttribute(r,o),d.textContent=y.responseText,t.highlightElement(d)):(f.setAttribute(r,"failed"),y.status>=400?d.textContent=(h=y.status,$=y.statusText,"\u2716 Error "+h+" while fetching file: "+$):d.textContent="\u2716 Error: File does not exist or is empty"))},y.send(null)}}),t.plugins.fileHighlight={highlight:function(c){for(var f,d=(c||document).querySelectorAll(a),p=0;f=d[p++];)t.highlightElement(f)}};var s=!1;t.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function l(c,f){var d=c.className;d=d.replace(u," ")+" language-"+f,c.className=d.replace(/\s+/g," ").trim()}}()});(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return i}),RegExp(s,l)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\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:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.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){e.type==="entity"&&(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 i={};i[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",i)}}),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,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;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:i,punctuation:o};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:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(s){e.languages["markup-templating"].tokenizePlaceholders(s,"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(T,F){return T.replace(/<<(\d+)>>/g,function(k,I){return"(?:"+F[+I]+")"})}function n(T,F,k){return RegExp(t(T,F),k||"")}function r(T,F){for(var k=0;k<F;k++)T=T.replace(/<<self>>/g,function(){return"(?:"+T+")"});return T.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="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(T){return"\\b(?:"+T.trim().replace(/ /g,"|")+")\\b"}var l=s(o),c=RegExp(s(i+" "+o+" "+a+" "+u)),f=s(o+" "+a+" "+u),d=s(i+" "+o+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),m=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]),h=/\[\s*(?:,\s*)*\]/.source,$=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,m,h]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},N=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,U=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[U]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:RegExp(N),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,S]),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,[$]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,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,[m]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),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,S,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),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 W=R+"|"+N,Z=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[W]),Q=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Z]),2),le=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,te=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Q]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[le,te]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[le]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[Q]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ue=/:[^}\r\n]+/.source,he=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Z]),2),Ie=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[he,ue]),ye=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[W]),2),oe=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ye,ue]);function Le(T,F){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[T]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[F,ue]),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,[Ie]),lookbehind:!0,greedy:!0,inside:Le(Ie,he)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[oe]),lookbehind:!0,greedy:!0,inside:Le(oe,ye)}]})}(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]*)?(?:\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 i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=e.languages.bash[i[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \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("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),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(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var m=f[d];if(m.type==="code"){var v=m.content[1],g=m.content[3];if(v&&g&&v.type==="code-language"&&g.type==="code-block"&&typeof v.content=="string"){var y=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(m.content)}}(l.tokens)}),e.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],m=/language-(.+)/.exec(p);if(m){c=m[1];break}}var v=e.languages[c];if(v)l.content=e.highlight(function(y){var h=y.replace(a,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function($,w){var x;if((w=w.toLowerCase())[0]==="#")return x=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(x);var S=u[w];return S||$})}(l.content),v,c);else if(c&&c!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,e.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(g);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){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 Qde=["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 NN(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+NN(n)},0)}var pv,epe=Oe.String,bi=function(e){if(rE(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return epe(e)},IN=function(){var e=wr(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},pE=Oe.RegExp,hE=Vt(function(){var e=pE("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),tpe=hE||Vt(function(){return!pE("a","y").sticky}),jN={BROKEN_CARET:hE||Vt(function(){var e=pE("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:tpe,UNSUPPORTED_Y:hE},npe=Gr?Object.defineProperties:function(e,t){wr(e);for(var n,r=lv(t),i=dv(t),o=i.length,a=0;o>a;)av.f(e,n=i[a++],r[n]);return e},rpe=$d("document","documentElement"),RN=uN("IE_PROTO"),gE=function(){},LN=function(e){return"<script>"+e+"</script>"},MN=function(e){e.write(LN("")),e.close();var t=e.parentWindow.Object;return e=null,t},hv=function(){try{pv=new ActiveXObject("htmlfile")}catch(r){}var e,t;hv=typeof document!="undefined"?document.domain&&pv?MN(pv):((t=K5("iframe")).style.display="none",rpe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(LN("document.F=Object")),e.close(),e.F):MN(pv);for(var n=cv.length;n--;)delete hv.prototype[cv[n]];return hv()};Q5[RN]=!0;var zN,vE,ipe=Object.create||function(e,t){var n;return e!==null?(gE.prototype=wr(e),n=new gE,gE.prototype=null,n[RN]=e):n=hv(),t===void 0?n:npe(n,t)},ope=Oe.RegExp,ape=Vt(function(){var e=ope(".","s");return!(e.dotAll&&e.exec(`
  154. `)&&e.flags==="s")}),upe=Oe.RegExp,spe=Vt(function(){var e=upe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),lpe=tE.get,cpe=L5("native-string-replace",String.prototype.replace),gv=RegExp.prototype.exec,mE=gv,fpe=He("".charAt),dpe=He("".indexOf),ppe=He("".replace),yE=He("".slice),bE=(vE=/b*/g,Lt(gv,zN=/a/,"a"),Lt(gv,vE,"a"),zN.lastIndex!==0||vE.lastIndex!==0),HN=jN.BROKEN_CARET,$E=/()??/.exec("")[1]!==void 0;(bE||$E||HN||ape||spe)&&(mE=function(e){var t,n,r,i,o,a,u,s=this,l=lpe(s),c=bi(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Lt(mE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=HN&&s.sticky,m=Lt(IN,s),v=s.source,g=0,y=c;if(p&&(m=ppe(m,"y",""),dpe(m,"g")===-1&&(m+="g"),y=yE(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&fpe(c,s.lastIndex-1)!==`
  155. `)&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",m)),$E&&(n=new RegExp("^"+v+"$(?!\\s)",m)),bE&&(r=s.lastIndex),i=Lt(gv,p?n:s,y),p?i?(i.input=yE(i.input,g),i[0]=yE(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:bE&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),$E&&i&&i.length>1&&Lt(cpe,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=ipe(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var Ad=mE;fv({target:"RegExp",proto:!0,forced:/./.exec!==Ad},{exec:Ad});var wE=Function.prototype,UN=wE.apply,hpe=wE.bind,VN=wE.call,gpe=typeof Reflect=="object"&&Reflect.apply||(hpe?VN.bind(UN):function(){return VN.apply(UN,arguments)}),vpe=_o("species"),EE=RegExp.prototype,mpe=_o("match"),ype=Oe.TypeError,bpe=_o("species"),$pe=function(e,t){var n,r=wr(e).constructor;return r===void 0||(n=wr(r)[bpe])==null?t:function(i){if(bN(i))return i;throw ype(tN(i)+" is not a constructor")}(n)},wpe=He("".charAt),WN=He("".charCodeAt),Epe=He("".slice),GN=function(e){return function(t,n){var r,i,o=bi(Xs(t)),a=uE(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=WN(o,a))<55296||r>56319||a+1===u||(i=WN(o,a+1))<56320||i>57343?e?wpe(o,a):r:e?Epe(o,a,a+2):i-56320+(r-55296<<10)+65536}},xpe={codeAt:GN(!1),charAt:GN(!0)}.charAt,Spe=function(e,t,n){return t+(n?xpe(e,t).length:1)},Dpe=Oe.Array,Cpe=Math.max,qN=function(e,t,n){for(var r,i,o,a,u=sE(e),s=dE(t,u),l=dE(n===void 0?u:n,u),c=Dpe(Cpe(l-s,0)),f=0;s<l;s++,f++)r=c,i=f,o=e[s],a=void 0,(a=X5(i))in r?av.f(r,a,J5(0,o)):r[a]=o;return c.length=f,c},Ape=Oe.TypeError,KN=function(e,t){var n=e.exec;if(on(n)){var r=Lt(n,e,t);return r!==null&&wr(r),r}if(No(e)==="RegExp")return Lt(Ad,e,t);throw Ape("RegExp#exec called on incompatible receiver")},el=jN.UNSUPPORTED_Y,Ope=Math.min,YN=[].push,Bpe=He(/./.exec),tl=He(YN),Od=He("".slice);(function(e,t,n,r){var i=_o(e),o=!Vt(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Vt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[vpe]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=He(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var m=He(l),v=c.exec;return v===Ad||v===EE.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:m(f,c,d)}:{done:!1}});Sd(String.prototype,e,s[0]),Sd(EE,i,s[1])}r&&Js(EE[i],"sham",!0)})("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a,u,s=bi(Xs(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!$r(a=i)||!((u=a[mpe])!==void 0?u:No(a)=="RegExp"))return Lt(t,s,i,l);for(var c,f,d,p=[],m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),v=0,g=new RegExp(i.source,m+"g");(c=Lt(Ad,g,s))&&!((f=g.lastIndex)>v&&(tl(p,Od(s,v,c.index)),c.length>1&&c.index<s.length&&gpe(YN,p,qN(c,1)),d=c[0].length,v=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return v===s.length?!d&&Bpe(g,"")||tl(p,""):tl(p,Od(s,v)),p.length>l?qN(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Lt(t,this,i,o)}:t,[function(i,o){var a=Xs(this),u=i==null?void 0:rN(i,e);return u?Lt(u,i,a,o):Lt(r,bi(a),i,o)},function(i,o){var a=wr(this),u=bi(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=$pe(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(el?"g":"y"),d=new l(el?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return KN(d,u)===null?[u]:[];for(var m=0,v=0,g=[];v<u.length;){d.lastIndex=el?0:v;var y,h=KN(d,el?Od(u,v):u);if(h===null||(y=Ope(gN(d.lastIndex+(el?v:0)),u.length))===m)v=Spe(u,v,c);else{if(tl(g,Od(u,m,v)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(tl(g,h[$]),g.length===p)return g;v=m=y}}return tl(g,Od(u,m)),g}]},!!Vt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),el),fv({global:!0},{globalThis:Oe}),Mn&&(O.fn.attr=Mn);var Fpe=cN.PROPER,xE=RegExp.prototype,XN=xE.toString,Tpe=He(IN),kpe=Vt(function(){return XN.call({source:"a",flags:"b"})!="/a/b"}),Ppe=Fpe&&XN.name!="toString";(kpe||Ppe)&&Sd(RegExp.prototype,"toString",function(){var e=wr(this),t=bi(e.source),n=e.flags;return"/"+t+"/"+bi(n===void 0&&eN(xE,e)&&!("flags"in xE)?Tpe(e):n)},{unsafe:!0});var _pe=function(){function e(){this.title=K("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(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,i=r===void 0?[]:r;n.push({text:"plain text",value:""}),i.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var o=this.getValue(t);return n.forEach(function(a){a.value===o?a.selected=!0:delete a.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!ne.isElement(n))return"";var r=n.language.toString(),i=t.getMenuConfig("codeSelectLang").codeLangs;return(i===void 0?[]:i).some(function(o){return o.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};_.setNodes(t,r,{match:function(i){return A.checkNodeType(i,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return ne.isElement(r)?r.type!=="pre"?null:n:null},e}(),Npe={renderStyle:function(e,t){var n=e,r=t,i="";return Qde.forEach(function(o){n[o]&&(i=o)}),i&&function(o,a){o.data==null&&(o.data={});var u=o.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,i="token "+i),r},parseStyleHtml:function(e,t,n){var r=O(e);if(!ne.isElement(t)||A.getNodeType(t)!=="code")return t;var i=t,o=r.attr("class")||"";return o.indexOf("language-")===0?i.language=o.split("-")[1]||"":i.language=o.toLowerCase(),i},menus:[{key:"codeSelectLang",factory:function(){return new _pe},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=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Ipe=/"/g,jpe=He("".replace);fv({target:"String",proto:!0,forced:function(e){return Vt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}("anchor")},{anchor:function(e){return t="a",n="name",r=e,i=bi(Xs(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+jpe(bi(r),Ipe,"&quot;")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var JN=function(e){var t,n,r,i=function(y,h){var $=typeof Symbol=="function"&&y[Symbol.iterator];if(!$)return y;var w,x,S=$.call(y),C=[];try{for(;(h===void 0||h-- >0)&&!(w=S.next()).done;)C.push(w.value)}catch(N){x={error:N}}finally{try{w&&!w.done&&($=S.return)&&$.call(S)}finally{if(x)throw x.error}}return C}(e,2),o=i[0],a=i[1],u=[],s=function(y){if(!J.isText(y))return null;var h=A.getParentNode(null,y);if(h&&A.getNodeType(h)==="code"){var $=A.getParentNode(null,h);if($&&A.getNodeType($)==="pre")return h}return null}(o);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,h){if(!h)return[];var $=_N.languages[h];return $?_N.tokenize(y.text,$):[]}(o,c),d=0;try{for(var p=function(y){var h=typeof Symbol=="function"&&Symbol.iterator,$=h&&y[h],w=0;if($)return $.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),m=p.next();!m.done;m=p.next()){var v=m.value,g=d+NN(v);typeof v!="string"&&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{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u};/*! *****************************************************************************
  156. Copyright (c) Microsoft Corporation.
  157. Permission to use, copy, modify, and/or distribute this software for any
  158. purpose with or without fee is hereby granted.
  159. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  160. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  161. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  162. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  163. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  164. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  165. PERFORMANCE OF THIS SOFTWARE.
  166. ***************************************************************************** */var ht=function(){return ht=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ht.apply(this,arguments)},Wt=function(){function e(){throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
  167. Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=ht(ht({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=ht(ht({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=ht(ht({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=ht(ht({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){jW(t,n)},e.registerRenderElem=function(t){lq(t)},e.registerRenderStyle=function(t){sq(t)},e.registerElemToHtml=function(t){KW(t)},e.registerStyleToHtml=function(t){qW(t)},e.registerPreParseHtml=function(t){mG(t)},e.registerParseElemHtml=function(t){bG(t)},e.registerParseStyleHtml=function(t){yG(t)},e.registerModule=function(t){nu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function nu(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return Wt.registerMenu(c)}),n&&n.forEach(function(c){return Wt.registerRenderElem(c)}),r&&Wt.registerRenderStyle(r),i&&i.forEach(function(c){return Wt.registerElemToHtml(c)}),o&&Wt.registerStyleToHtml(o),a&&a.forEach(function(c){return Wt.registerPreParseHtml(c)}),u&&u.forEach(function(c){return Wt.registerParseElemHtml(c)}),s&&Wt.registerParseStyleHtml(s),l&&Wt.registerPlugin(l)}Fee.forEach(function(e){return nu(e)}),nu(cre),nu(Loe),nu(Qse),nu(Wfe),nu(Npe);var Rpe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Lpe='<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>',ZN='<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>',Mpe='<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>',zpe='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>';function Hpe(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:K("editor.more"),iconSvg:Mpe,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:K("editor.justify"),iconSvg:Lpe,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:K("editor.indent"),iconSvg:Rpe,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:K("editor.image"),iconSvg:ZN,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:K("editor.video"),iconSvg:zpe,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function Upe(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:K("editor.image"),iconSvg:ZN,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var QN={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}};function Vpe(){return ht(ht({},QN),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function Wpe(){return QN}function Gpe(){return{hoverbarKeys:Vpe()}}function qpe(){return{hoverbarKeys:Wpe()}}function Kpe(){return{toolbarKeys:Hpe()}}function Ype(){return{toolbarKeys:Upe()}}var Xpe=Gpe();Wt.setEditorConfig(ht(ht({},Xpe),{decorate:JN}));var Jpe=qpe();Wt.setSimpleEditorConfig(ht(ht({},Jpe),{decorate:JN}));var Zpe=Kpe();Wt.setToolbarConfig(Zpe);var Qpe=Ype();Wt.setSimpleToolbarConfig(Qpe);function ehe(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,i=r===void 0?[]:r,o=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=s===void 0?"default":s,c=l==="simple"?Wt.simpleEditorConfig:Wt.editorConfig,f=ht(ht({},c.hoverbarKeys||{}),u.hoverbarKeys||{}),d=Fq({selector:n,config:ht(ht(ht({},c),u),{hoverbarKeys:f}),content:i,html:o,plugins:Wt.plugins});return d}function the(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,o=e.mode,a=o===void 0?"default":o;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?Wt.simpleToolbarConfig:Wt.toolbarConfig,s=Iq(n,{selector:t,config:ht(ht({},u),i)});return s}var phe={};/*! *****************************************************************************
  168. Copyright (c) Microsoft Corporation.
  169. Permission to use, copy, modify, and/or distribute this software for any
  170. purpose with or without fee is hereby granted.
  171. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  172. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  173. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  174. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  175. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  176. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  177. PERFORMANCE OF THIS SOFTWARE.
  178. ***************************************************************************** */var vv=function(){return vv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vv.apply(this,arguments)};function eI(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function nhe(e){var t=e.defaultContent,n=t===void 0?[]:t,r=e.onCreated,i=e.defaultHtml,o=i===void 0?"":i,a=e.value,u=a===void 0?"":a,s=e.onChange,l=e.defaultConfig,c=l===void 0?{}:l,f=e.mode,d=f===void 0?"default":f,p=e.style,m=p===void 0?{}:p,v=e.className,g=(0,sr.useRef)(null),y=eI((0,sr.useState)(null),2),h=y[0],$=y[1],w=eI((0,sr.useState)(""),2),x=w[0],S=w[1],C=function(U){r&&r(U);var W=c.onCreated;W&&W(U)},N=function(U){S(U.getHtml()),s&&s(U);var W=c.onChange;W&&W(U)},R=function(U){var W=c.onDestroyed;$(null),W&&W(U)};return(0,sr.useEffect)(function(){h!=null&&u!==x&&h.setHtml(u)},[u]),(0,sr.useEffect)(function(){var U;if(g.current!=null&&h==null&&!((U=g.current)===null||U===void 0?void 0:U.getAttribute("data-w-e-textarea"))){var W=ehe({selector:g.current,config:vv(vv({},c),{onCreated:C,onChange:N,onDestroyed:R}),content:n,html:o||u,mode:d});$(W)}},[h]),sr.createElement("div",{style:m,ref:g,className:v})}function rhe(e){var t=e.editor,n=e.defaultConfig,r=n===void 0?{}:n,i=e.mode,o=i===void 0?"default":i,a=e.style,u=a===void 0?{}:a,s=e.className,l=(0,sr.useRef)(null);return(0,sr.useEffect)(function(){l.current!=null&&t!=null&&the({editor:t,selector:l.current,config:r,mode:o})},[t]),sr.createElement("div",{style:u,ref:l,className:s})}}}]);