123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- import{d as x$,E as Ki,ba as E9,F as KP,H as YP,a9 as XP,bb as JP,o as A$,c as C9,_ as ZP,b7 as QP,x as ni,N as eN,K as Zt,y as pt,b as y5,u as Id,aK as tN,W as nN,G as rN}from"./index.743f0c80.js";var Lv;if(typeof global=="undefined"){if("ActiveXObject"in window){var b5="\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668";b5+=`
- Sorry, wangEditor V5+ versions do not support IE browser.`,console.error(b5)}$5(),w5()}else global&&((Lv=global.navigator)===null||Lv===void 0?void 0:Lv.userAgent.match("QQBrowser"))&&($5(),w5());function $5(){typeof globalThis=="undefined"&&(window.globalThis=window)}function w5(){typeof AggregateError=="undefined"&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if(typeof global=="object"){var iN=Object.getOwnPropertyDescriptor(global,"window");(!global.window||iN.set)&&(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function E5(e){return Object.prototype.toString.call(e)==="[object Object]"}function en(e){var t,n;return E5(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(E5(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Ut(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=dN[e],o=i?typeof i=="function"?i.apply(null,n):i:"unknown error nr: "+e;throw Error("[Immer] "+o)}}function ka(e){return!!e&&!!e[On]}function _a(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)===pN}(e)||Array.isArray(e)||!!e[F5]||!!e.constructor[F5]||O$(e)||B$(e))}function Xc(e,t,n){n===void 0&&(n=!1),Ns(e)===0?(n?Object.keys:P$)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Ns(e){var t=e[On];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:O$(e)?2:B$(e)?3:0}function w2(e,t){return Ns(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oN(e,t){return Ns(e)===2?e.get(t):e[t]}function D9(e,t,n){var r=Ns(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function aN(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function O$(e){return cN&&e instanceof Map}function B$(e){return fN&&e instanceof Set}function ea(e){return e.o||e.t}function F$(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hN(e);delete t[On];for(var n=P$(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 T$(e,t){return t===void 0&&(t=!1),k$(e)||ka(e)||!_a(e)||(Ns(e)>1&&(e.set=e.add=e.clear=e.delete=uN),Object.freeze(e),t&&Xc(e,function(n,r){return T$(r,!0)},!0)),e}function uN(){Ut(2)}function k$(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function fi(e){var t=gN[e];return t||Ut(18,e),t}function C5(){return ls||Ut(0),ls}function Mv(e,t){t&&(fi("Patches"),e.u=[],e.s=[],e.v=t)}function uh(e){E2(e),e.p.forEach(sN),e.p=null}function E2(e){e===ls&&(ls=e.l)}function D5(e){return ls={p:[],l:ls,h:e,m:!0,_:0}}function sN(e){var t=e[On];t.i===0||t.i===1?t.j():t.O=!0}function zv(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||fi("ES5").S(t,e,r),r?(n[On].P&&(uh(t),Ut(4)),_a(e)&&(e=sh(t,e),t.l||lh(t,e)),t.u&&fi("Patches").M(n[On],e,t.u,t.s)):e=sh(t,n,[]),uh(t),t.u&&t.v(t.u,t.s),e!==S9?e:void 0}function sh(e,t,n){if(k$(t))return t;var r=t[On];if(!r)return Xc(t,function(o,a){return S5(e,r,t,o,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return lh(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=F$(r.k):r.o;Xc(r.i===3?new Set(i):i,function(o,a){return S5(e,r,i,o,a,n)}),lh(e,i,!1),n&&e.u&&fi("Patches").R(r,n,e.u,e.s)}return r.o}function S5(e,t,n,r,i,o){if(i===n&&Ut(5),ka(i)){var a=sh(e,i,o&&t&&t.i!==3&&!w2(t.D,r)?o.concat(r):void 0);if(D9(n,r,a),!ka(a))return;e.m=!1}if(_a(i)&&!k$(i)){if(!e.h.F&&e._<1)return;sh(e,i),t&&t.A.l||lh(e,i)}}function lh(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&T$(t,n)}function Hv(e,t){var n=e[On];return(n?ea(n):e)[t]}function x5(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 C2(e){e.P||(e.P=!0,e.l&&C2(e.l))}function Uv(e){e.o||(e.o=F$(e.t))}function D2(e,t,n){var r=O$(t)?fi("MapSet").N(t,n):B$(t)?fi("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),u={i:a?1:0,A:o?o.A:C5(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},s=u,l=Pp;a&&(s=[u],l=Np);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(t,n):fi("ES5").J(t,n);return(n?n.A:C5()).p.push(r),r}function lN(e){return ka(e)||Ut(22,e),function t(n){if(!_a(n))return n;var r,i=n[On],o=Ns(n);if(i){if(!i.P&&(i.i<4||!fi("ES5").K(i)))return i.t;i.I=!0,r=A5(n,o),i.I=!1}else r=A5(n,o);return Xc(r,function(a,u){i&&oN(i.t,a)===u||D9(r,a,t(u))}),o===3?new Set(r):r}(e)}function A5(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return F$(e)}var O5,ls,_$=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",cN=typeof Map!="undefined",fN=typeof Set!="undefined",B5=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",S9=_$?Symbol.for("immer-nothing"):((O5={})["immer-nothing"]=!0,O5),F5=_$?Symbol.for("immer-draftable"):"__$immer_draftable",On=_$?Symbol.for("immer-state"):"__$immer_state",dN={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"},pN=""+Object.prototype.constructor,P$=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,hN=Object.getOwnPropertyDescriptors||function(e){var t={};return P$(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},gN={},Pp={get:function(e,t){if(t===On)return e;var n=ea(e);if(!w2(n,t))return function(i,o,a){var u,s=x5(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||!_a(r)?r:r===Hv(e.t,t)?(Uv(e),e.o[t]=D2(e.A.h,r,e)):r},has:function(e,t){return t in ea(e)},ownKeys:function(e){return Reflect.ownKeys(ea(e))},set:function(e,t,n){var r=x5(ea(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Hv(ea(e),t),o=i==null?void 0:i[On];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(aN(n,i)&&(n!==void 0||w2(e.t,t)))return!0;Uv(e),C2(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 Hv(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Uv(e),C2(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ea(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Ut(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ut(12)}},Np={};Xc(Pp,function(e,t){Np[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Np.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Ut(13),Pp.deleteProperty.call(this,e[0],t)},Np.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&Ut(14),Pp.set.call(this,e[0],t,n,e[0])};var vN=function(){function e(n){var r=this;this.g=B5,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 v=this;p===void 0&&(p=u);for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return s.produce(p,function(h){var $;return($=o).call.apply($,[v,h].concat(g))})}}var l;if(typeof o!="function"&&Ut(6),a!==void 0&&typeof a!="function"&&Ut(7),_a(i)){var c=D5(r),f=D2(r,i,void 0),d=!0;try{l=o(f),d=!1}finally{d?uh(c):E2(c)}return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(p){return Mv(c,a),zv(p,c)},function(p){throw uh(c),p}):(Mv(c,a),zv(l,c))}if(!i||typeof i!="object")return(l=o(i))===S9?void 0:(l===void 0&&(l=i),r.F&&T$(l,!0),l);Ut(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){_a(n)||Ut(8),ka(n)&&(n=lN(n));var r=D5(this),i=D2(this,n,void 0);return i[On].C=!0,E2(r),i},t.finishDraft=function(n,r){var i=n&&n[On];i&&i.C||Ut(9),i.I&&Ut(10);var o=i.A;return Mv(o,r),zv(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!B5&&Ut(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=fi("Patches").$;return ka(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},e}(),Bn=new vN,Xg=Bn.produce;Bn.produceWithPatches.bind(Bn);Bn.setAutoFreeze.bind(Bn);Bn.setUseProxies.bind(Bn);Bn.applyPatches.bind(Bn);var T5=Bn.createDraft.bind(Bn),k5=Bn.finishDraft.bind(Bn);function Gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ch=new WeakMap,ll=new WeakMap,_5=new WeakMap,P5=new WeakMap,N5=new WeakMap,I5=new WeakMap;function R5(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 Rd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mN=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of E.pathRefs(e))KN.transform(n,t);for(var r of E.pointRefs(e))YN.transform(r,t);for(var i of E.rangeRefs(e))ZN.transform(i,t);var o=new Set,a=[],u=p=>{if(p){var v=p.join(",");o.has(v)||(o.add(v),a.push(p))}},s=ch.get(e)||[],l=yN(t);for(var c of s){var f=_.transform(c,t);u(f)}for(var d of l)u(d);ch.set(e,a),P.transform(e,t),e.operations.push(t),E.normalize(e),t.type==="set_selection"&&(e.marks=null),ll.get(e)||(ll.set(e,!0),Promise.resolve().then(()=>{ll.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(R.isExpanded(r))P.setNodes(e,{[t]:n},{match:X.isText,split:!0});else{var i=Rd(Rd({},E.marks(e)||{}),{},{[t]:n});e.marks=i,ll.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&P.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&P.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&R.isExpanded(n)&&P.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?q.fragment(e,t):[]},insertBreak:()=>{P.splitNodes(e,{always:!0})},insertFragment:t=>{P.insertFragment(e,t)},insertNode:t=>{P.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Rd({text:t},r);P.insertNodes(e,i)}else P.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!X.isText(n)){if(te.isElement(n)&&n.children.length===0){var i={text:""};P.insertNodes(e,i,{at:r.concat(0),voids:!0});return}for(var o=E.isEditor(n)?!1:te.isElement(n)&&(e.isInline(n)||n.children.length===0||X.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(!X.isText(s)){var l=n.children[u],c=s.children[a-1],f=u===n.children.length-1,d=X.isText(l)||te.isElement(l)&&e.isInline(l);if(d!==o)P.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(te.isElement(l)){if(e.isInline(l)){if(c==null||!X.isText(c)){var p={text:""};P.insertNodes(e,p,{at:r.concat(a),voids:!0}),a++}else if(f){var v={text:""};P.insertNodes(e,v,{at:r.concat(a+1),voids:!0}),a++}}}else c!=null&&X.isText(c)&&(X.equals(l,c,{loose:!0})?(P.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(P.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(P.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},removeMark:t=>{var{selection:n}=e;if(n)if(R.isExpanded(n))P.unsetNodes(e,t,{match:X.isText,split:!0});else{var r=Rd({},E.marks(e)||{});delete r[t],e.marks=r,ll.get(e)||e.onChange()}}};return e},yN=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":{var{path:t}=e;return _.levels(t)}case"insert_node":{var{node:n,path:r}=e,i=_.levels(r),o=X.isText(n)?[]:Array.from(q.nodes(n),M=>{var[,U]=M;return r.concat(U)});return[...i,...o]}case"merge_node":{var{path:a}=e,u=_.ancestors(a),s=_.previous(a);return[...u,s]}case"move_node":{var{path:l,newPath:c}=e;if(_.equals(l,c))return[];var f=[],d=[];for(var p of _.ancestors(l)){var v=_.transform(p,e);f.push(v)}for(var m of _.ancestors(c)){var g=_.transform(m,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,C=_.ancestors(w);return[...C]}case"split_node":{var{path:D}=e,A=_.levels(D),N=_.next(D);return[...A,N]}default:return[]}};function bN(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 hi(e,t){if(e==null)return{};var n=bN(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 N$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,i=n?SN(t):t,o=he.None,a=he.None,u=0,s=null,l=null;for(var c of i){var f=c.codePointAt(0);if(!f)break;var d=RN(c,f);if([o,a]=r?[a,d]:[d,o],Wu(o,he.ZWJ)&&Wu(a,he.ExtPict)&&(r?s=j5(t.substring(0,u)):s=j5(t.substring(0,t.length-u)),!s)||Wu(o,he.RI)&&Wu(a,he.RI)&&(l!==null?l=!l:r?l=!0:l=HN(t.substring(0,t.length-u)),!l)||o!==he.None&&a!==he.None&&LN(o,a))break;u+=c.length}return u||1},$N=/\s/,wN=/[\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]/,EN=/['\u2018\u2019]/,CN=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,i=!1;t.length>0;){var o=N$(t,n),[a,u]=I$(t,o,n);if(DN(a,u,n))i=!0,r+=o;else if(!i)r+=o;else break;t=u}return r},I$=(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)]},DN=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if($N.test(t))return!1;if(EN.test(t)){var i=N$(n,r),[o,a]=I$(n,i,r);if(e(o,a,r))return!0}return!wN.test(t)},SN=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var i=t.charAt(n-r);if(AN(i.charCodeAt(0))){var o=t.charAt(n-r-1);if(xN(o.charCodeAt(0))){yield o+i,r++;continue}}yield i}},xN=e=>e>=55296&&e<=56319,AN=e=>e>=56320&&e<=57343,he;(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"})(he||(he={}));var ON=/^(?:[\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])$/,BN=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,FN=/^(?:[\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])$/,TN=/^[\u1100-\u115F\uA960-\uA97C]$/,kN=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,_N=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,PN=/^[\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]$/,NN=/^[\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]$/,IN=/^(?:[\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])$/,RN=(e,t)=>{var n=he.Any;return e.search(ON)!==-1&&(n|=he.Extend),t===8205&&(n|=he.ZWJ),t>=127462&&t<=127487&&(n|=he.RI),e.search(BN)!==-1&&(n|=he.Prepend),e.search(FN)!==-1&&(n|=he.SpacingMark),e.search(TN)!==-1&&(n|=he.L),e.search(kN)!==-1&&(n|=he.V),e.search(_N)!==-1&&(n|=he.T),e.search(PN)!==-1&&(n|=he.LV),e.search(NN)!==-1&&(n|=he.LVT),e.search(IN)!==-1&&(n|=he.ExtPict),n};function Wu(e,t){return(e&t)!==0}var jN=[[he.L,he.L|he.V|he.LV|he.LVT],[he.LV|he.V,he.V|he.T],[he.LVT|he.T,he.T],[he.Any,he.Extend|he.ZWJ],[he.Any,he.SpacingMark],[he.Prepend,he.Any],[he.ZWJ,he.ExtPict],[he.RI,he.RI]];function LN(e,t){return jN.findIndex(n=>Wu(e,n[0])&&Wu(t,n[1]))===-1}var MN=/(?:[\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$/,j5=e=>e.search(MN)!==-1,zN=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,HN=e=>{var t=e.match(zN);if(t===null)return!1;var n=t[0].length/2;return n%2===1},L5=e=>en(e)&&q.isNodeList(e.children)&&!E.isEditor(e),te={isAncestor(e){return en(e)&&q.isNodeList(e.children)},isElement:L5,isElementList(e){return Array.isArray(e)&&e.every(t=>te.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 L5(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},UN=["text"],VN=["text"];function M5(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 lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var z5=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(!X.isText(s)&&!_.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,lu(lu({},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,lu(lu({},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=>X.isText(n)||E.isInline(e,n))},hasTexts(e,t){return t.children.every(n=>X.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 te.isElement(t)&&!e.isInline(t)},isEditor(e){if(!en(e))return!1;var t=z5.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||R.isRange(e.selection))&&q.isNodeList(e.children)&&Ji.isOperationList(e.operations);return z5.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&&X.isText(r)&&r.text===""&&!e.isVoid(t)},isInline(e,t){return te.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=_5.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 te.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(R.isExpanded(n)){var[r]=E.nodes(e,{match:X.isText});if(r){var[i]=r,o=hi(i,UN);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:X.isText}),c=E.above(e,{match:m=>E.isBlock(e,m)});if(l&&c){var[f,d]=l,[,p]=c;_.isAncestor(p,d)&&(s=f)}}var v=hi(s,VN);return v},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(_.isPath(o)&&o.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(_.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(WN.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=[],v;for(var[m,g]of d){var y=v&&_.compare(g,v[1])===0;if(!(r==="highest"&&y)){if(!u(m,g)){if(i&&!y&&X.isText(m))return;continue}if(r==="lowest"&&y){v=[m,g];continue}var h=r==="lowest"?v:[m,g];h&&(i?p.push(h):yield h),v=[m,g]}}r==="lowest"&&v&&(i?p.push(v):yield v),i&&(yield*p)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=o=>ch.get(o)||[];if(!!E.isNormalizing(e)){if(n){var i=Array.from(q.nodes(e),o=>{var[,a]=o;return a});ch.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;te.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(`
- 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.
- `));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=_.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(_.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 R.isRange(t)&&(i==="start"?t=R.start(t):i==="end"?t=R.end(t):t=_.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=P5.get(e);return t||(t=new Set,P5.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(_.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(!X.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(R.isRange(t)){var[s,l]=R.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=N5.get(e);return t||(t=new Set,N5.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]=R.edges(a),l=i?s:u,c=!1,f="",d=0,p=0,v=0;for(var[m,g]of E.nodes(e,{at:n,reverse:i,voids:o})){if(te.isElement(m)){if(!o&&e.isVoid(m)){yield E.start(e,g);continue}if(e.isInline(m))continue;if(E.hasInlines(e,m)){var y=_.isAncestor(g,s.path)?s:E.end(e,g),h=_.isAncestor(g,u.path)?u:E.start(e,g);f=E.string(e,{anchor:h,focus:y},{voids:o}),c=!0}}if(X.isText(m)){var $=_.equals(g,l.path);for($?(p=i?l.offset:m.text.length-l.offset,v=l.offset):(p=m.text.length,v=i?p:0),($||c||r==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,i),f=I$(f,d,i)[1]}if(v=i?v-d:v+d,p=p-d,p<0){d=-p;break}d=0,yield{path:g,offset:v}}}}function w(C,D,A){return D==="character"?N$(C,A):D==="word"?CN(C,A):D==="line"||D==="block"?C.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(_.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(_.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(R.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=I5.get(e);return t||(t=new Set,I5.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){_5.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]=R.edges(i),u="";for(var[s,l]of E.nodes(e,{at:i,match:X.isText,voids:r})){var c=s.text;_.equals(l,a.path)&&(c=c.slice(0,a.offset)),_.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]=R.edges(t);if(i.offset!==0||o.offset!==0||R.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:X.isText,reverse:!0,voids:r})){if(c){c=!1;continue}if(f.text!==""||_.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,lu(lu({},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)}},WN={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(_.isPath)}},qN=["children"],GN=["text"],H5=new WeakMap,q={ancestor(e,t){var n=q.get(e,t);if(X.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 _.ancestors(t,n)){var i=q.ancestor(e,r),o=[i,r];yield o}},child(e,t){if(X.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=_.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))te.isElement(n)&&(yield[n,r])},extractProps(e){if(te.isAncestor(e)){var t=hi(e,qN);return t}else{var t=hi(e,GN);return t}},first(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(X.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(X.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Xg({children:e.children},r=>{var[i,o]=R.edges(t),a=q.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!R.includes(t,p)}});for(var[,u]of a){if(!R.includes(t,u)){var s=q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(_.equals(u,o.path)){var c=q.leaf(r,u);c.text=c.text.slice(0,o.offset)}if(_.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(X.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(X.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode(e){return X.isText(e)||te.isElement(e)||E.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=H5.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return H5.set(e,n),n},last(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(X.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(!X.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 _.levels(t,n)){var i=q.get(e,r);yield[i,r]}},matches(e,t){return te.isElement(e)&&te.isElementProps(t)&&te.matches(e,t)||X.isText(e)&&X.isTextProps(t)&&X.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?_.isBefore(u,o):_.isAfter(u,o)));){if(a.has(s)||(yield[s,u]),!a.has(s)&&!X.isText(s)&&s.children.length!==0&&(n==null||n([s,u])===!1)){a.add(s);var l=r?s.children.length-1:0;_.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=_.next(u);if(q.has(e,c)){u=c,s=q.get(e,u);continue}}if(r&&u[u.length-1]!==0){var f=_.previous(u);u=f,s=q.get(e,u);continue}u=_.parent(u),s=q.get(e,u),a.add(s)}},parent(e,t){var n=_.parent(t),r=q.get(e,n);if(X.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 X.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))X.isText(n)&&(yield[n,r])}};function U5(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 nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ji={isNodeOperation(e){return Ji.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!en(e))return!1;switch(e.type){case"insert_node":return _.isPath(e.path)&&q.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&_.isPath(e.path);case"merge_node":return typeof e.position=="number"&&_.isPath(e.path)&&en(e.properties);case"move_node":return _.isPath(e.path)&&_.isPath(e.newPath);case"remove_node":return _.isPath(e.path)&&q.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&_.isPath(e.path);case"set_node":return _.isPath(e.path)&&en(e.properties)&&en(e.newProperties);case"set_selection":return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||en(e.properties)&&en(e.newProperties);case"split_node":return _.isPath(e.path)&&typeof e.position=="number"&&en(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Ji.isOperation(t))},isSelectionOperation(e){return Ji.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Ji.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return nt(nt({},e),{},{type:"remove_node"});case"insert_text":return nt(nt({},e),{},{type:"remove_text"});case"merge_node":return nt(nt({},e),{},{type:"split_node",path:_.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(_.equals(t,n))return e;if(_.isSibling(n,t))return nt(nt({},e),{},{path:t,newPath:n});var r=_.transform(n,e),i=_.transform(_.next(n),e);return nt(nt({},e),{},{path:r,newPath:i})}case"remove_node":return nt(nt({},e),{},{type:"insert_node"});case"remove_text":return nt(nt({},e),{},{type:"insert_text"});case"set_node":{var{properties:o,newProperties:a}=e;return nt(nt({},e),{},{properties:a,newProperties:o})}case"set_selection":{var{properties:u,newProperties:s}=e;return u==null?nt(nt({},e),{},{properties:s,newProperties:null}):s==null?nt(nt({},e),{},{properties:null,newProperties:u}):nt(nt({},e),{},{properties:s,newProperties:u})}case"split_node":return nt(nt({},e),{},{type:"merge_node",path:_.next(e.path)})}}},_={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=_.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 _.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return _.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 _.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 _.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&_.compare(e,t)===0},isBefore(e,t){return _.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&_.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&_.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&_.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&_.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&&_.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(!_.isAncestor(t,e)&&!_.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 Xg(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;(_.equals(o,r)||_.endsBefore(o,r)||_.isAncestor(o,r))&&(r[o.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(_.equals(a,r)||_.isAncestor(a,r))return null;_.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:u,position:s}=t;_.equals(u,r)||_.endsBefore(u,r)?r[u.length-1]-=1:_.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(_.equals(l,r)){if(i==="forward")r[r.length-1]+=1;else if(i!=="backward")return null}else _.endsBefore(l,r)?r[l.length-1]+=1:_.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(_.equals(f,d))return;if(_.isAncestor(f,r)||_.equals(f,r)){var p=d.slice();return _.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}else _.isSibling(f,d)&&(_.isAncestor(d,r)||_.equals(d,r))?_.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:_.endsBefore(d,r)||_.equals(d,r)||_.isAncestor(d,r)?(_.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):_.endsBefore(f,r)&&(_.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1);break}}}})}},KN={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=_.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}};function V5(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 W5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $e={compare(e,t){var n=_.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&&_.equals(e.path,t.path)},isPoint(e){return en(e)&&typeof e.offset=="number"&&_.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Xg(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=_.transform(o,t,n);break}case"insert_text":{_.equals(t.path,o)&&t.offset<=a&&(r.offset+=t.text.length);break}case"merge_node":{_.equals(t.path,o)&&(r.offset+=t.position),r.path=_.transform(o,t,n);break}case"remove_text":{_.equals(t.path,o)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(_.equals(t.path,o)||_.isAncestor(t.path,o))return null;r.path=_.transform(o,t,n);break}case"split_node":{if(_.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=_.transform(o,t,W5(W5({},n),{},{affinity:"forward"})))}else r.path=_.transform(o,t,n);break}}})}},YN={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()}}},XN=["anchor","focus"];function q5(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 JN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var R={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return R.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=R.edges(e);return t},equals(e,t){return $e.equals(e.anchor,t.anchor)&&$e.equals(e.focus,t.focus)},includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[n,r]=R.edges(e),[i,o]=R.edges(t);return $e.isBefore(n,i)&&$e.isAfter(r,o)}var[a,u]=R.edges(e),s=!1,l=!1;return $e.isPoint(t)?(s=$e.compare(t,a)>=0,l=$e.compare(t,u)<=0):(s=_.compare(t,a.path)>=0,l=_.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=hi(e,XN),[r,i]=R.edges(e),[o,a]=R.edges(t),u=$e.isBefore(r,o)?o:r,s=$e.isBefore(i,a)?i:a;return $e.isBefore(s,u)?null:JN({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!R.isCollapsed(e)},isForward(e){return!R.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]=R.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Xg(e,r=>{if(r===null)return null;var{affinity:i="inward"}=n,o,a;if(i==="inward"){var u=R.isCollapsed(r);R.isForward(r)?(o="forward",a=u?o:"backward"):(o="backward",a=u?o:"forward")}else i==="outward"?R.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})}},ZN={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=R.transform(n,t,{affinity:r});e.current=i,i==null&&e.unref()}}},x9=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(en(r)&&en(i)){if(!x9(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},QN=["text"],eI=["anchor","focus"];function G5(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 ri(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var X={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function i(o){var a=hi(o,QN);return a}return x9(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=>X.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=[ri({},e)];for(var r of t){var i=hi(r,eI),[o,a]=R.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,v=void 0;if(a.offset<s){var m=a.offset-f;v=ri(ri({},d),{},{text:d.text.slice(m)}),d=ri(ri({},d),{},{text:d.text.slice(0,m)})}if(o.offset>f){var g=o.offset-f;p=ri(ri({},d),{},{text:d.text.slice(0,g)}),d=ri(ri({},d),{},{text:d.text.slice(g)})}Object.assign(d,i),p&&u.push(p),u.push(d),v&&u.push(v)}n=u}return n}};function K5(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 cl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var tI=(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 R.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),v=d.text.slice(c);if(d.text=p+f+v,t)for(var[m,g]of R.points(t))t[g]=$e.transform(m,n);break}case"merge_node":{var{path:y}=n,h=q.get(e,y),$=_.previous(y),w=q.get(e,$),C=q.parent(e,y),D=y[y.length-1];if(X.isText(h)&&X.isText(w))w.text+=h.text;else if(!X.isText(h)&&!X.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(C.children.splice(D,1),t)for(var[A,N]of R.points(t))t[N]=$e.transform(A,n);break}case"move_node":{var{path:M,newPath:U}=n;if(_.isAncestor(M,U))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(U,"] because the destination is inside itself."));var V=q.get(e,M),J=q.parent(e,M),Z=M[M.length-1];J.children.splice(Z,1);var se=_.transform(M,n),ee=q.get(e,_.parent(se)),ae=se[se.length-1];if(ee.children.splice(ae,0,V),t)for(var[fe,_e]of R.points(t))t[_e]=$e.transform(fe,n);break}case"remove_node":{var{path:ve}=n,ie=ve[ve.length-1],Ie=q.parent(e,ve);if(Ie.children.splice(ie,1),t)for(var[T,F]of R.points(t)){var k=$e.transform(T,n);if(t!=null&&k!=null)t[F]=k;else{var I=void 0,H=void 0;for(var[j,Q]of q.texts(e))if(_.compare(Q,ve)===-1)I=[j,Q];else{H=[j,Q];break}var ce=!1;I&&H&&(_.equals(H[1],ve)?ce=!_.hasPrevious(H[1]):ce=_.common(I[1],ve).length<_.common(H[1],ve).length),I&&!ce?(T.path=I[1],T.offset=I[0].text.length):H?(T.path=H[1],T.offset=0):t=null}}break}case"remove_text":{var{path:we,offset:Re,text:z}=n;if(z.length===0)break;var ze=q.leaf(e,we),ye=ze.text.slice(0,Re),ue=ze.text.slice(Re+z.length);if(ze.text=ye+ue,t)for(var[be,yn]of R.points(t))t[yn]=$e.transform(be,n);break}case"set_node":{var{path:qe,properties:lt,newProperties:ft}=n;if(qe.length===0)throw new Error("Cannot set properties on the root node!");var ln=q.get(e,qe);for(var dt in ft){if(dt==="children"||dt==="text")throw new Error('Cannot set the "'.concat(dt,'" property of nodes!'));var In=ft[dt];In==null?delete ln[dt]:ln[dt]=In}for(var bn in lt)ft.hasOwnProperty(bn)||delete ln[bn];break}case"set_selection":{var{newProperties:cn}=n;if(cn==null)t=cn;else{if(t==null){if(!R.isRange(cn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(cn)," when there is no current selection."));t=cl({},cn)}for(var yr in cn){var br=cn[yr];if(br==null){if(yr==="anchor"||yr==="focus")throw new Error('Cannot remove the "'.concat(yr,'" selection property'));delete t[yr]}else t[yr]=br}}break}case"split_node":{var{path:$n,position:$r,properties:on}=n;if($n.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat($n,"] because the root node cannot be split."));var Rn=q.get(e,$n),nu=q.parent(e,$n),Xs=$n[$n.length-1],Xr;if(X.isText(Rn)){var $i=Rn.text.slice(0,$r),ru=Rn.text.slice($r);Rn.text=$i,Xr=cl(cl({},on),{},{text:ru})}else{var wi=Rn.children.slice(0,$r),Jr=Rn.children.slice($r);Rn.children=wi,Xr=cl(cl({},on),{},{children:Jr})}if(nu.children.splice(Xs+1,0,Xr),t)for(var[wn,Ei]of R.points(t))t[Ei]=$e.transform(wn,n);break}}return t},nI={transform(e,t){e.children=T5(e.children);var n=e.selection&&T5(e.selection);try{n=tI(e,n,t)}finally{e.children=k5(e.children),n?e.selection=ka(n)?k5(n):n:e.selection=null}}},rI=["text"],iI=["children"];function Y5(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 X5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oI={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),R.isRange(a))if(r||(a=E.unhangRange(e,a)),R.isCollapsed(a))a=a.anchor;else{var[,c]=R.edges(a),f=E.pointRef(e,c);P.delete(e,{at:a}),a=f.unref()}if($e.isPoint(a)){u==null&&(X.isText(l)?u=D=>X.isText(D):e.isInline(l)?u=D=>X.isText(D)||E.isInline(e,D):u=D=>E.isBlock(e,D));var[d]=E.nodes(e,{at:a.path,match:u,mode:o,voids:i});if(d){var[,p]=d,v=E.pathRef(e,p),m=E.isEnd(e,a,p);P.splitNodes(e,{at:a,match:u,mode:o,voids:i});var g=v.unref();a=m?_.next(g):g}else return}var y=_.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=_.next(a)}if(a=_.previous(a),s){var C=E.end(e,a);C&&P.select(e,C)}}}})},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=_.isPath(n)?cu(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,_.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var m=_.next(d);P.moveNodes(e,{at:l,to:m,voids:i}),P.removeNodes(e,{at:d,voids:i})}else if(p===0)P.moveNodes(e,{at:l,to:d,voids:i});else if(p===v-1){var g=_.next(d);P.moveNodes(e,{at:l,to:g,voids:i})}else{var y=_.next(l),h=_.next(d);P.splitNodes(e,{at:y,voids:i}),P.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(_.isPath(r)){var[u]=E.parent(e,r);n=M=>u.children.includes(M)}else n=M=>E.isBlock(e,M);if(!i&&R.isRange(r)&&(r=E.unhangRange(e,r)),R.isRange(r))if(R.isCollapsed(r))r=r.anchor;else{var[,s]=R.edges(r),l=E.pointRef(e,s);P.delete(e,{at:r}),r=l.unref(),t.at==null&&P.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,[v,m]=f;if(!(p.length===0||m.length===0)){var g=_.next(m),y=_.common(p,m),h=_.isSibling(p,m),$=Array.from(E.levels(e,{at:p}),M=>{var[U]=M;return U}).slice(y.length).slice(0,-1),w=E.above(e,{at:p,mode:"highest",match:M=>$.includes(M)&&A9(e,M)}),C=w&&E.pathRef(e,w[1]),D,A;if(X.isText(d)&&X.isText(v)){var N=hi(d,rI);A=v.text.length,D=N}else if(te.isElement(d)&&te.isElement(v)){var N=hi(d,iI);A=v.children.length,D=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(v)));h||P.moveNodes(e,{at:p,to:g,voids:o}),C&&P.removeNodes(e,{at:C.current,voids:o}),te.isElement(v)&&E.isEmpty(e,v)||X.isText(v)&&v.text===""&&m[m.length-1]!==0?P.removeNodes(e,{at:m,voids:o}):e.apply({type:"merge_node",path:g,position:A,properties:D}),C&&C.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=_.isPath(r)?cu(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[,v]=p;return E.pathRef(e,v)});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&&_.isSibling(d,f)&&_.isAfter(d,f)&&(u.current=_.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=_.isPath(o)?cu(e,o):d=>E.isBlock(e,d)),!n&&R.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=_.isPath(i)?cu(e,i):C=>E.isBlock(e,C)),!o&&R.isRange(i)&&(i=E.unhangRange(e,i)),u&&R.isRange(i)){if(R.isCollapsed(i)&&E.leaf(e,i.anchor)[0].text.length>0)return;var l=E.rangeRef(e,i,{affinity:"inward"}),[c,f]=R.edges(i),d=a==="lowest"?"lowest":"highest",p=E.isEnd(e,f,f.path);P.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var v=E.isStart(e,c,c.path);P.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!v}),i=l.unref(),n.at==null&&P.select(e,i)}for(var[m,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]!==m[w]&&($=!0,m.hasOwnProperty(w)&&(y[w]=m[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=fe=>E.isBlock(e,fe)),R.isRange(o)&&(o=aI(e,o)),_.isPath(o)){var s=o,l=E.point(e,s),[c]=E.parent(e,s);i=fe=>fe===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"}),v=0;if(!r&&p){var[m,g]=p;if(te.isElement(m)&&e.isInline(m)){var y=E.after(e,g);if(!y){var h={text:""},$=_.next(g);P.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 C=E.pointRef(e,o),D=o.path.length-a,[,A]=d,N=o.path.slice(0,D),M=a===0?o.offset:o.path[D]+v;for(var[U,V]of E.levels(e,{at:N,reverse:!0,voids:r})){var J=!1;if(V.length<A.length||V.length===0||!r&&E.isVoid(e,U))break;var Z=f.current,se=E.isEnd(e,Z,V);if(u||!f||!E.isEdge(e,Z,V)){J=!0;var ee=q.extractProps(U);e.apply({type:"split_node",path:V,position:M,properties:ee})}M=V[V.length-1]+(J||se?1:0)}if(t.at==null){var ae=C.current||E.end(e,[]);P.select(e,ae)}f.unref(),C.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;P.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=_.isPath(o)?cu(e,o):d=>E.isBlock(e,d)),_.isPath(o)&&(o=E.range(e,o));var u=R.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 v=p.unref(),[m]=E.node(e,v),g=E.range(e,v);r&&u&&(g=R.intersection(u.current,g)),P.liftNodes(e,{at:g,match:y=>te.isAncestor(m)&&m.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&&(_.isPath(u)?a=cu(e,u):e.isInline(t)?a=g=>E.isInline(e,g)||X.isText(g):a=g=>E.isBlock(e,g)),i&&R.isRange(u)){var[s,l]=R.edges(u),c=E.rangeRef(e,u,{affinity:"inward"});P.splitNodes(e,{at:l,match:a,voids:o}),P.splitNodes(e,{at:s,match:a,voids:o}),u=c.unref(),n.at==null&&P.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=R.isRange(u)?R.intersection(u,E.range(e,d)):u;if(!!p){var v=Array.from(E.nodes(e,{at:p,match:a,mode:r,voids:o}));if(v.length>0){var m=function(){var[g]=v,y=v[v.length-1],[,h]=g,[,$]=y;if(h.length===0&&$.length===0)return"continue";var w=_.equals(h,$)?_.parent(h):_.common(h,$),C=E.range(e,h,$),D=E.node(e,w),[A]=D,N=w.length+1,M=_.next($.slice(0,N)),U=X5(X5({},t),{},{children:[]});P.insertNodes(e,U,{at:M,voids:o}),P.moveNodes(e,{at:C,match:V=>te.isAncestor(A)&&A.children.includes(V),to:M.concat(0),voids:o})}();if(m==="continue")continue}}}}})}},A9=(e,t)=>{if(te.isElement(t)){var n=t;return E.isVoid(e,t)?!0:n.children.length===1?A9(e,n.children[0]):!1}else return!E.isEditor(t)},aI=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,n]=R.edges(t),r=E.pointRef(e,n);return P.delete(e,{at:t}),r.unref()},cu=(e,t)=>{var[n]=E.node(e,t);return r=>r===n};function J5(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 Z5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var uI={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")P.select(e,r.anchor);else if(n==="focus")P.select(e,r.focus);else if(n==="start"){var[i]=R.edges(r);P.select(e,i)}else if(n==="end"){var[,o]=R.edges(r);P.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=R.isBackward(n)?"focus":"anchor"),a==="end"&&(a=R.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)}P.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=E.range(e,t),n){P.setSelection(e,t);return}if(!R.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=R.isBackward(r)?"focus":"anchor"),i==="end"&&(i=R.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,u=i==="anchor"?o:a;P.setSelection(e,{[i==="anchor"?"anchor":"focus"]:Z5(Z5({},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})}}},sI={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(R.isRange(a)&&R.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(_.isPath(a)){P.removeNodes(e,{at:a,voids:o});return}if(!R.isCollapsed(a)){if(!u){var[,d]=R.edges(a),p=E.end(e,[]);$e.equals(d,p)||(a=E.unhangRange(e,a,{voids:o}))}var[v,m]=R.edges(a),g=E.above(e,{match:ce=>E.isBlock(e,ce),at:v,voids:o}),y=E.above(e,{match:ce=>E.isBlock(e,ce),at:m,voids:o}),h=g&&y&&!_.equals(g[1],y[1]),$=_.equals(v.path,m.path),w=o?null:E.void(e,{at:v,mode:"highest"}),C=o?null:E.void(e,{at:m,mode:"highest"});if(w){var D=E.before(e,v);D&&g&&_.isAncestor(g[1],D.path)&&(v=D)}if(C){var A=E.after(e,m);A&&y&&_.isAncestor(y[1],A.path)&&(m=A)}var N=[],M;for(var U of E.nodes(e,{at:a,voids:o})){var[V,J]=U;M&&_.compare(J,M)===0||(!o&&E.isVoid(e,V)||!_.isCommon(J,v.path)&&!_.isCommon(J,m.path))&&(N.push(U),M=J)}var Z=Array.from(N,ce=>{var[,we]=ce;return E.pathRef(e,we)}),se=E.pointRef(e,v),ee=E.pointRef(e,m);if(!$&&!w){var ae=se.current,[fe]=E.leaf(e,ae),{path:_e}=ae,{offset:ve}=v,ie=fe.text.slice(ve);ie.length>0&&e.apply({type:"remove_text",path:_e,offset:ve,text:ie})}for(var Ie of Z){var T=Ie.unref();P.removeNodes(e,{at:T,voids:o})}if(!C){var F=ee.current,[k]=E.leaf(e,F),{path:I}=F,H=$?v.offset:0,j=k.text.slice(H,m.offset);j.length>0&&e.apply({type:"remove_text",path:I,offset:H,text:j})}!$&&h&&ee.current&&se.current&&P.mergeNodes(e,{at:ee.current,hanging:!0,voids:o});var Q=n?se.unref()||ee.unref():ee.unref()||se.unref();t.at==null&&Q&&P.select(e,Q)}}})},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(R.isRange(o))if(r||(o=E.unhangRange(e,o)),R.isCollapsed(o))o=o.anchor;else{var[,a]=R.edges(o);if(!i&&E.void(e,{at:a}))return;var u=E.pointRef(e,a);P.delete(e,{at:o}),o=u.unref()}else _.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,v=E.isStart(e,o,p),m=E.isEnd(e,o,p),g=v&&m,y=!v||v&&m,h=!m,[,$]=q.first({children:t},[]),[,w]=q.last({children:t},[]),C=[],D=k=>{var[I,H]=k,j=H.length===0;return j?!1:g?!0:!(y&&_.isAncestor(H,$)&&te.isElement(I)&&!e.isVoid(I)&&!e.isInline(I)||h&&_.isAncestor(H,w)&&te.isElement(I)&&!e.isVoid(I)&&!e.isInline(I))};for(var A of q.nodes({children:t},{pass:D}))D(A)&&C.push(A);var N=[],M=[],U=[],V=!0,J=!1;for(var[Z]of C)te.isElement(Z)&&!e.isInline(Z)?(V=!1,J=!0,M.push(Z)):V?N.push(Z):U.push(Z);var[se]=E.nodes(e,{at:o,match:k=>X.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),[,ee]=se,ae=E.isStart(e,o,ee),fe=E.isEnd(e,o,ee),_e=E.pathRef(e,m?_.next(p):p),ve=E.pathRef(e,fe?_.next(ee):ee),ie=E.pathRef(e,p);P.splitNodes(e,{at:o,match:k=>J?E.isBlock(e,k):X.isText(k)||E.isInline(e,k),mode:J?"lowest":"highest",voids:i});var Ie=E.pathRef(e,!ae||ae&&fe?_.next(ee):ee);if(P.insertNodes(e,N,{at:Ie.current,match:k=>X.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),g&&M.length&&P.delete(e,{at:ie.unref(),voids:i}),P.insertNodes(e,M,{at:_e.current,match:k=>E.isBlock(e,k),mode:"lowest",voids:i}),P.insertNodes(e,U,{at:ve.current,match:k=>X.isText(k)||E.isInline(e,k),mode:"highest",voids:i}),!n.at){var T;U.length>0?T=_.previous(ve.current):M.length>0?T=_.previous(_e.current):T=_.previous(Ie.current);var F=E.end(e,T);P.select(e,F)}Ie.unref(),_e.unref(),ve.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(_.isPath(i)&&(i=E.range(e,i)),R.isRange(i))if(R.isCollapsed(i))i=i.anchor;else{var o=R.end(i);if(!r&&E.void(e,{at:o}))return;var a=E.pointRef(e,o);P.delete(e,{at:i,voids:r}),i=a.unref(),P.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 Q5(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?Q5(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var P=jd(jd(jd(jd({},nI),oI),uI),sI),ot=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function R$(e){var t={exports:{}};return e(t,t.exports),t.exports}var O9=9007199254740991,lI="[object Arguments]",cI="[object Function]",fI="[object GeneratorFunction]",S2="[object Map]",dI="[object Object]",e6="[object Promise]",x2="[object Set]",pI="[object String]",t6="[object WeakMap]",n6="[object DataView]",hI=/[\\^$.*+?()[\]{}|]/g,gI=/^\[object .+?Constructor\]$/,vI=/^(?:0|[1-9]\d*)$/,j$="\\ud800-\\udfff",B9="\\u0300-\\u036f\\ufe20-\\ufe23",F9="\\u20d0-\\u20f0",T9="\\ufe0e\\ufe0f",mI="["+j$+"]",A2="["+B9+F9+"]",O2="\\ud83c[\\udffb-\\udfff]",yI="(?:"+A2+"|"+O2+")",k9="[^"+j$+"]",_9="(?:\\ud83c[\\udde6-\\uddff]){2}",P9="[\\ud800-\\udbff][\\udc00-\\udfff]",N9="\\u200d",I9=yI+"?",R9="["+T9+"]?",bI="(?:"+N9+"(?:"+[k9,_9,P9].join("|")+")"+R9+I9+")*",$I=R9+I9+bI,wI="(?:"+[k9+A2+"?",A2,_9,P9,mI].join("|")+")",EI=RegExp(O2+"(?="+O2+")|"+wI+$I,"g"),CI=RegExp("["+N9+j$+B9+F9+T9+"]"),DI=typeof ot=="object"&&ot&&ot.Object===Object&&ot,SI=typeof self=="object"&&self&&self.Object===Object&&self,qa=DI||SI||Function("return this")();function xI(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 AI(e){return e.split("")}function OI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function BI(e,t){return xI(t,function(n){return e[n]})}function FI(e,t){return e==null?void 0:e[t]}function TI(e){return CI.test(e)}function kI(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function _I(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function PI(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function NI(e,t){return function(n){return e(t(n))}}function II(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function RI(e){return TI(e)?jI(e):AI(e)}function jI(e){return e.match(EI)||[]}var LI=Function.prototype,Jg=Object.prototype,Vv=qa["__core-js_shared__"],r6=function(){var e=/[^.]+$/.exec(Vv&&Vv.keys&&Vv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),j9=LI.toString,Zg=Jg.hasOwnProperty,Hf=Jg.toString,MI=RegExp("^"+j9.call(Zg).replace(hI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),i6=qa.Symbol,Wv=i6?i6.iterator:void 0,zI=Jg.propertyIsEnumerable,HI=NI(Object.keys,Object),B2=Uf(qa,"DataView"),F2=Uf(qa,"Map"),T2=Uf(qa,"Promise"),k2=Uf(qa,"Set"),_2=Uf(qa,"WeakMap"),UI=Ga(B2),VI=Ga(F2),WI=Ga(T2),qI=Ga(k2),GI=Ga(_2);function KI(e,t){var n=L9(e)||nR(e)?OI(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||Zg.call(e,o))&&!(i&&(o=="length"||QI(o,r)))&&n.push(o);return n}function YI(e){return Hf.call(e)}function XI(e){if(!z9(e)||eR(e))return!1;var t=M9(e)||kI(e)?MI:gI;return t.test(Ga(e))}function JI(e){if(!tR(e))return HI(e);var t=[];for(var n in Object(e))Zg.call(e,n)&&n!="constructor"&&t.push(n);return t}function ZI(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Uf(e,t){var n=FI(e,t);return XI(n)?n:void 0}var ta=YI;(B2&&ta(new B2(new ArrayBuffer(1)))!=n6||F2&&ta(new F2)!=S2||T2&&ta(T2.resolve())!=e6||k2&&ta(new k2)!=x2||_2&&ta(new _2)!=t6)&&(ta=function(e){var t=Hf.call(e),n=t==dI?e.constructor:void 0,r=n?Ga(n):void 0;if(r)switch(r){case UI:return n6;case VI:return S2;case WI:return e6;case qI:return x2;case GI:return t6}return t});function QI(e,t){return t=t==null?O9:t,!!t&&(typeof e=="number"||vI.test(e))&&e>-1&&e%1==0&&e<t}function eR(e){return!!r6&&r6 in e}function tR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Jg;return e===n}function Ga(e){if(e!=null){try{return j9.call(e)}catch{}try{return e+""}catch{}}return""}function nR(e){return rR(e)&&Zg.call(e,"callee")&&(!zI.call(e,"callee")||Hf.call(e)==lI)}var L9=Array.isArray;function L$(e){return e!=null&&iR(e.length)&&!M9(e)}function rR(e){return H9(e)&&L$(e)}function M9(e){var t=z9(e)?Hf.call(e):"";return t==cI||t==fI}function iR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=O9}function z9(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function H9(e){return!!e&&typeof e=="object"}function oR(e){return typeof e=="string"||!L9(e)&&H9(e)&&Hf.call(e)==pI}function aR(e){if(!e)return[];if(L$(e))return oR(e)?RI(e):ZI(e);if(Wv&&e[Wv])return _I(e[Wv]());var t=ta(e),n=t==S2?PI:t==x2?II:sR;return n(e)}function uR(e){return L$(e)?KI(e):JI(e)}function sR(e){return e?BI(e,uR(e)):[]}var o6=aR;function a6(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function M$(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]=="undefined"?e[n]=t[n]:a6(t[n])&&a6(e[n])&&Object.keys(t[n]).length>0&&M$(e[n],t[n])})}var U9={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 Vf(){var e=typeof document!="undefined"?document:{};return M$(e,U9),e}var lR={document:U9,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 Ka(){var e=typeof window!="undefined"?window:{};return M$(e,lR),e}function cR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function P2(e){return P2=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},P2(e)}function fh(e,t){return fh=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},fh(e,t)}function fR(){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{return!1}}function Ip(e,t,n){return fR()?Ip=Reflect.construct:Ip=function(i,o,a){var u=[null];u.push.apply(u,o);var s=Function.bind.apply(i,u),l=new s;return a&&fh(l,a.prototype),l},Ip.apply(null,arguments)}function dR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function N2(e){var t=typeof Map=="function"?new Map:void 0;return N2=function(r){if(r===null||!dR(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 Ip(r,arguments,P2(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),fh(i,r)},N2(e)}function pR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hR(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(r){t.__proto__=r}})}var Zi=function(e){cR(t,e);function t(n){var r;return r=e.call.apply(e,[this].concat(n))||this,hR(pR(r)),r}return t}(N2(Array));function Qg(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Qg(n)):t.push(n)}),t}function V9(e,t){return Array.prototype.filter.call(e,t)}function gR(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function vR(e){return e.toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function mR(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=Ka(),r=Vf(),i=[];if(!t&&e instanceof Zi)return e;if(!e)return new Zi(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=mR(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof Zi)return e;i=e}return new Zi(gR(i))}O.fn=Zi.prototype;function cs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Qg(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).add.apply(o,r)}),this}function fs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Qg(t.map(function(i){return i.split(" ")}));return this.forEach(function(i){var o;(o=i.classList).remove.apply(o,r)}),this}function ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Qg(t.map(function(i){return i.split(" ")}));return V9(this,function(i){return r.filter(function(o){return i.classList.contains(o)}).length>0}).length>0}function Mr(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 dh(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function ps(){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[vR(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 zr(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 Hr(){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(m){var g=m.target;if(!!g){var y=m.target.dom7EventData||[];if(y.indexOf(m)<0&&y.unshift(m),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(m){var g=m&&m.target?m.target.dom7EventData||[]:[];g.indexOf(m)<0&&g.unshift(m),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 v=l[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[v]||(d.dom7LiveListeners[v]=[]),d.dom7LiveListeners[v].push({listener:o,proxyListener:u}),d.addEventListener(v,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 u6(){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 v=d[p];o&&v.listener===o||o&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===o?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):o||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function ph(){var e=Ka();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function hh(){var e=Ka();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function s6(){if(this.length>0){var e=Ka(),t=Vf(),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 hs(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function gh(){for(var e=Ka(),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 vh(e,t){var n=Ka(),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 mh(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function l6(e){var t=V9(this,e);return O(t)}function bo(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 yh(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 c6(e){var t=Ka(),n=Vf(),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 Zi){for(i=e.nodeType?[e]:e,o=0;o<i.length;o+=1)if(i[o]===r)return!0;return!1}return!1}function Ur(){for(var e,t=Vf(),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 Zi)for(var o=0;o<e.length;o+=1)this[r].appendChild(e[o]);else this[r].appendChild(e)}return this}function f6(e){var t=Vf(),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 Zi)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 bh(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 $h(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 gs(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 vs(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 ms(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ys(){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 yR="resize scroll".split(" ");function W9(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)yR.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 d6=W9("click"),$o=W9("focus"),q9=9007199254740991,bR="[object Arguments]",$R="[object Function]",wR="[object GeneratorFunction]",ER=/^(?:0|[1-9]\d*)$/;function CR(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function DR(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function SR(e,t){return function(n){return e(t(n))}}var e0=Object.prototype,z$=e0.hasOwnProperty,G9=e0.toString,xR=e0.propertyIsEnumerable,AR=SR(Object.keys,Object);function OR(e,t){var n=K9(e)||jR(e)?DR(e.length,String):[],r=n.length,i=!!r;for(var o in e)(t||z$.call(e,o))&&!(i&&(o=="length"||NR(o,r)))&&n.push(o);return n}var BR=_R(TR),FR=PR();function TR(e,t){return e&&FR(e,t,VR)}function kR(e){if(!IR(e))return AR(e);var t=[];for(var n in Object(e))z$.call(e,n)&&n!="constructor"&&t.push(n);return t}function _R(e,t){return function(n,r){if(n==null)return n;if(!H$(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 PR(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 NR(e,t){return t=t==null?q9:t,!!t&&(typeof e=="number"||ER.test(e))&&e>-1&&e%1==0&&e<t}function IR(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||e0;return e===n}function RR(e,t){var n=K9(e)?CR:BR;return n(e,typeof t=="function"?t:WR)}function jR(e){return LR(e)&&z$.call(e,"callee")&&(!xR.call(e,"callee")||G9.call(e)==bR)}var K9=Array.isArray;function H$(e){return e!=null&&zR(e.length)&&!MR(e)}function LR(e){return UR(e)&&H$(e)}function MR(e){var t=HR(e)?G9.call(e):"";return t==$R||t==wR}function zR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=q9}function HR(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function UR(e){return!!e&&typeof e=="object"}function VR(e){return H$(e)?OR(e):kR(e)}function WR(e){return e}var U$=RR;{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 Y9=(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 X9="Expected a function",p6=0/0,qR="[object Symbol]",GR=/^\s+|\s+$/g,KR=/^[-+]0x[0-9a-f]+$/i,YR=/^0b[01]+$/i,XR=/^0o[0-7]+$/i,JR=parseInt,ZR=typeof ot=="object"&&ot&&ot.Object===Object&&ot,QR=typeof self=="object"&&self&&self.Object===Object&&self,ej=ZR||QR||Function("return this")(),tj=Object.prototype,nj=tj.toString,rj=Math.max,ij=Math.min,qv=function(){return ej.Date.now()};function oj(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(X9);t=h6(t)||0,wh(n)&&(c=!!n.leading,f="maxWait"in n,o=f?rj(h6(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(D){var A=r,N=i;return r=i=void 0,l=D,a=e.apply(N,A),a}function v(D){return l=D,u=setTimeout(y,t),c?p(D):a}function m(D){var A=D-s,N=D-l,M=t-A;return f?ij(M,o-N):M}function g(D){var A=D-s,N=D-l;return s===void 0||A>=t||A<0||f&&N>=o}function y(){var D=qv();if(g(D))return h(D);u=setTimeout(y,m(D))}function h(D){return u=void 0,d&&r?p(D):(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(qv())}function C(){var D=qv(),A=g(D);if(r=arguments,i=this,s=D,A){if(u===void 0)return v(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return C.cancel=$,C.flush=w,C}function aj(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(X9);return wh(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),oj(e,t,{leading:r,maxWait:t,trailing:i})}function wh(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function uj(e){return!!e&&typeof e=="object"}function sj(e){return typeof e=="symbol"||uj(e)&&nj.call(e)==qR}function h6(e){if(typeof e=="number")return e;if(sj(e))return p6;if(wh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(GR,"");var n=YR.test(e);return n||XR.test(e)?JR(e.slice(2),n?2:8):KR.test(e)?p6:+e}var Pa=aj;function lj(e,t){return document.createElement(e,t)}function cj(e,t,n){return document.createElementNS(e,t,n)}function fj(e){return document.createTextNode(e)}function dj(e){return document.createComment(e)}function pj(e,t,n){e.insertBefore(t,n)}function hj(e,t){e.removeChild(t)}function gj(e,t){e.appendChild(t)}function vj(e){return e.parentNode}function mj(e){return e.nextSibling}function yj(e){return e.tagName}function bj(e,t){e.textContent=t}function $j(e){return e.textContent}function wj(e){return e.nodeType===1}function Ej(e){return e.nodeType===3}function Cj(e){return e.nodeType===8}const Dj={createElement:lj,createElementNS:cj,createTextNode:fj,createComment:dj,insertBefore:pj,removeChild:hj,appendChild:gj,parentNode:vj,nextSibling:mj,tagName:yj,setTextContent:bj,getTextContent:$j,isElement:wj,isText:Ej,isComment:Cj};function Jc(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 I2=Array.isArray;function Rp(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function Gv(e){return e===void 0}function En(e){return e!==void 0}const g6=Jc("",{},[],void 0,void 0);function fl(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 Sj(e){return e.sel!==void 0}function xj(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 Aj=["create","update","remove","destroy","pre","post"];function Oj(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:Dj;for(const d of Aj)for(const p of e){const v=p[d];v!==void 0&&n[d].push(v)}function i(d){const p=d.id?"#"+d.id:"",v=d.getAttribute("class"),m=v?"."+v.split(" ").join("."):"";return Jc(r.tagName(d).toLowerCase()+p+m,{},[],void 0,d)}function o(d,p){return function(){if(--p===0){const m=r.parentNode(d);r.removeChild(m,d)}}}function a(d,p){var v,m;let g,y=d.data;if(y!==void 0){const w=(v=y.hook)===null||v===void 0?void 0:v.init;En(w)&&(w(d),y=d.data)}const h=d.children,$=d.sel;if($==="!")Gv(d.text)&&(d.text=""),d.elm=r.createComment(d.text);else if($!==void 0){const w=$.indexOf("#"),C=$.indexOf(".",w),D=w>0?w:$.length,A=C>0?C:$.length,N=w!==-1||C!==-1?$.slice(0,Math.min(D,A)):$,M=d.elm=En(y)&&En(g=y.ns)?r.createElementNS(g,N,y):r.createElement(N,y);for(D<A&&M.setAttribute("id",$.slice(D+1,A)),C>0&&M.setAttribute("class",$.slice(A+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](g6,d);if(I2(h))for(g=0;g<h.length;++g){const V=h[g];V!=null&&r.appendChild(M,a(V,p))}else Rp(d.text)&&r.appendChild(M,r.createTextNode(d.text));const U=d.data.hook;En(U)&&((m=U.create)===null||m===void 0||m.call(U,g6,d),U.insert&&p.push(d))}else d.elm=r.createTextNode(d.text);return d.elm}function u(d,p,v,m,g,y){for(;m<=g;++m){const h=v[m];h!=null&&r.insertBefore(d,a(h,y),p)}}function s(d){var p,v;const m=d.data;if(m!==void 0){(v=(p=m==null?void 0:m.hook)===null||p===void 0?void 0:p.destroy)===null||v===void 0||v.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,v,m){for(var g,y;v<=m;++v){let h,$;const w=p[v];if(w!=null)if(En(w.sel)){s(w),h=n.remove.length+1,$=o(w.elm,h);for(let D=0;D<n.remove.length;++D)n.remove[D](w,$);const C=(y=(g=w==null?void 0:w.data)===null||g===void 0?void 0:g.hook)===null||y===void 0?void 0:y.remove;En(C)?C(w,$):$()}else r.removeChild(d,w.elm)}}function c(d,p,v,m){let g=0,y=0,h=p.length-1,$=p[0],w=p[h],C=v.length-1,D=v[0],A=v[C],N,M,U,V;for(;g<=h&&y<=C;)$==null?$=p[++g]:w==null?w=p[--h]:D==null?D=v[++y]:A==null?A=v[--C]:fl($,D)?(f($,D,m),$=p[++g],D=v[++y]):fl(w,A)?(f(w,A,m),w=p[--h],A=v[--C]):fl($,A)?(f($,A,m),r.insertBefore(d,$.elm,r.nextSibling(w.elm)),$=p[++g],A=v[--C]):fl(w,D)?(f(w,D,m),r.insertBefore(d,w.elm,$.elm),w=p[--h],D=v[++y]):(N===void 0&&(N=xj(p,g,h)),M=N[D.key],Gv(M)?r.insertBefore(d,a(D,m),$.elm):(U=p[M],U.sel!==D.sel?r.insertBefore(d,a(D,m),$.elm):(f(U,D,m),p[M]=void 0,r.insertBefore(d,U.elm,$.elm))),D=v[++y]);(g<=h||y<=C)&&(g>h?(V=v[C+1]==null?null:v[C+1].elm,u(d,V,v,y,C,m)):l(d,p,g,h))}function f(d,p,v){var m,g,y,h,$;const w=(m=p.data)===null||m===void 0?void 0:m.hook;(g=w==null?void 0:w.prepatch)===null||g===void 0||g.call(w,d,p);const C=p.elm=d.elm,D=d.children,A=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)}Gv(p.text)?En(D)&&En(A)?D!==A&&c(C,D,A,v):En(A)?(En(d.text)&&r.setTextContent(C,""),u(C,null,A,0,A.length-1,v)):En(D)?l(C,D,0,D.length-1):En(d.text)&&r.setTextContent(C,""):d.text!==p.text&&(En(D)&&l(C,D,0,D.length-1),r.setTextContent(C,p.text)),($=w==null?void 0:w.postpatch)===null||$===void 0||$.call(w,d,p)}}return function(p,v){let m,g,y;const h=[];for(m=0;m<n.pre.length;++m)n.pre[m]();for(Sj(p)||(p=i(p)),fl(p,v)?f(p,v,h):(g=p.elm,y=r.parentNode(g),a(v,h),y!==null&&(r.insertBefore(y,v.elm,r.nextSibling(g)),l(y,[p],0,0))),m=0;m<h.length;++m)h[m].data.hook.insert(h[m]);for(m=0;m<n.post.length;++m)n.post[m]();return v}}function J9(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&&J9(i,t[r].children,t[r].sel)}}function bs(e,t,n){let r={},i,o,a;if(n!==void 0?(t!==null&&(r=t),I2(n)?i=n:Rp(n)?o=n.toString():n&&n.sel&&(i=[n])):t!=null&&(I2(t)?i=t:Rp(t)?o=t.toString():t&&t.sel?i=[t]:r=t),i!==void 0)for(a=0;a<i.length;++a)Rp(i[a])&&(i[a]=Jc(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]==="#")&&J9(r,i,e),Jc(e,r,i,o,void 0)}function v6(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 Bj={create:v6,update:v6},m6=/[A-Z]/g;function y6(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(m6,"-$&").toLowerCase()));for(o in i)r[o]!==i[o]&&(a?a[o]=i[o]:n.setAttribute("data-"+o.replace(m6,"-$&").toLowerCase(),i[o]))}const Fj={create:y6,update:y6};function Z9(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++)Z9(e[r],t,n)}function Tj(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Z9(r[n],t,e)}function kj(){return function e(t){Tj(t,e.vnode)}}function Kv(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||kj();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 _j={create:Kv,update:Kv,destroy:Kv};function b6(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 Pj={create:b6,update:b6},$6=typeof window!="undefined"&&window.requestAnimationFrame.bind(window)||setTimeout,Nj=function(e){$6(function(){$6(e)})};let R2=!1;function Ij(e,t,n){Nj(function(){e[t]=n})}function w6(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])&&Ij(i.style,s,n);else r!=="remove"&&n!==o[r]&&(r[0]==="-"&&r[1]==="-"?i.style.setProperty(r,n):i.style[r]=n)}function Rj(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 jj(e,t){const n=e.data.style;if(!n||!n.remove){t();return}R2||(e.elm.offsetLeft,R2=!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 Lj(){R2=!1}const Mj={pre:Lj,create:w6,update:w6,destroy:Rj,remove:jj};function Q9(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?Q9(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(Jc(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function de(e,t,...n){const r=Q9(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?bs(e,t,r[0].text):bs(e,t,r)}(function(e){})(de||(de={}));var zj=1/0,Hj="[object Symbol]",Uj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,t0="\\ud800-\\udfff",eO="\\u0300-\\u036f\\ufe20-\\ufe23",tO="\\u20d0-\\u20f0",nO="\\u2700-\\u27bf",rO="a-z\\xdf-\\xf6\\xf8-\\xff",Wj="\\xac\\xb1\\xd7\\xf7",qj="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gj="\\u2000-\\u206f",Kj=" \\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",iO="A-Z\\xc0-\\xd6\\xd8-\\xde",oO="\\ufe0e\\ufe0f",aO=Wj+qj+Gj+Kj,V$="['\u2019]",Yj="["+t0+"]",E6="["+aO+"]",Eh="["+eO+tO+"]",uO="\\d+",Xj="["+nO+"]",sO="["+rO+"]",lO="[^"+t0+aO+uO+nO+rO+iO+"]",j2="\\ud83c[\\udffb-\\udfff]",Jj="(?:"+Eh+"|"+j2+")",cO="[^"+t0+"]",W$="(?:\\ud83c[\\udde6-\\uddff]){2}",q$="[\\ud800-\\udbff][\\udc00-\\udfff]",Lu="["+iO+"]",fO="\\u200d",C6="(?:"+sO+"|"+lO+")",Zj="(?:"+Lu+"|"+lO+")",D6="(?:"+V$+"(?:d|ll|m|re|s|t|ve))?",S6="(?:"+V$+"(?:D|LL|M|RE|S|T|VE))?",dO=Jj+"?",pO="["+oO+"]?",Qj="(?:"+fO+"(?:"+[cO,W$,q$].join("|")+")"+pO+dO+")*",hO=pO+dO+Qj,eL="(?:"+[Xj,W$,q$].join("|")+")"+hO,tL="(?:"+[cO+Eh+"?",Eh,W$,q$,Yj].join("|")+")",nL=RegExp(V$,"g"),rL=RegExp(Eh,"g"),iL=RegExp(j2+"(?="+j2+")|"+tL+hO,"g"),oL=RegExp([Lu+"?"+sO+"+"+D6+"(?="+[E6,Lu,"$"].join("|")+")",Zj+"+"+S6+"(?="+[E6,Lu+C6,"$"].join("|")+")",Lu+"?"+C6+"+"+D6,Lu+"+"+S6,uO,eL].join("|"),"g"),aL=RegExp("["+fO+t0+eO+tO+oO+"]"),uL=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sL={\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"},lL=typeof ot=="object"&&ot&&ot.Object===Object&&ot,cL=typeof self=="object"&&self&&self.Object===Object&&self,fL=lL||cL||Function("return this")();function dL(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 pL(e){return e.split("")}function hL(e){return e.match(Uj)||[]}function gL(e){return function(t){return e==null?void 0:e[t]}}var vL=gL(sL);function gO(e){return aL.test(e)}function mL(e){return uL.test(e)}function yL(e){return gO(e)?bL(e):pL(e)}function bL(e){return e.match(iL)||[]}function $L(e){return e.match(oL)||[]}var wL=Object.prototype,EL=wL.toString,x6=fL.Symbol,A6=x6?x6.prototype:void 0,O6=A6?A6.toString:void 0;function CL(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 DL(e){if(typeof e=="string")return e;if(BL(e))return O6?O6.call(e):"";var t=e+"";return t=="0"&&1/e==-zj?"-0":t}function SL(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:CL(e,t,n)}function xL(e){return function(t){t=n0(t);var n=gO(t)?yL(t):void 0,r=n?n[0]:t.charAt(0),i=n?SL(n,1).join(""):t.slice(1);return r[e]()+i}}function AL(e){return function(t){return dL(PL(kL(t).replace(nL,"")),e,"")}}function OL(e){return!!e&&typeof e=="object"}function BL(e){return typeof e=="symbol"||OL(e)&&EL.call(e)==Hj}function n0(e){return e==null?"":DL(e)}var FL=AL(function(e,t,n){return t=t.toLowerCase(),e+(n?TL(t):t)});function TL(e){return _L(n0(e).toLowerCase())}function kL(e){return e=n0(e),e&&e.replace(Vj,vL).replace(rL,"")}var _L=xL("toUpperCase");function PL(e,t,n){return e=n0(e),t=n?void 0:t,t===void 0?mL(e)?$L(e):hL(e):e.match(t)||[]}var NL=FL,IL=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Yv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},vO={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:IL?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},G$={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};for(var Ld=1;Ld<20;Ld++)G$["f"+Ld]=111+Ld;function mO(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return jL(a,t)}),i=function(u){return r.some(function(s){return LL(s,u)})},o=n==null?i:i(n);return o}function RL(e,t){return mO(e,{byKey:!0},t)}function jL(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var i=e.split("+"),o=i.length;for(var a in Yv)r[Yv[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 v=yO(d),m=Yv[v];if(d.length>1&&!m&&!vO[d]&&!G$[v])throw new TypeError('Unknown modifier: "'+d+'"');(o===1||!m)&&(n?r.key=v:r.which=ML(d)),m&&(r[m]=p?null:!0)}}catch(g){s=!0,l=g}finally{try{!u&&c.return&&c.return()}finally{if(s)throw l}}return r}function LL(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 ML(e){e=yO(e);var t=G$[e]||e.toUpperCase().charCodeAt(0);return t}function yO(e){return e=e.toLowerCase(),e=vO[e]||e,e}var zL=mO,Xv=RL,HL="Expected a function",B6=0/0,UL="[object Symbol]",VL=/^\s+|\s+$/g,WL=/^[-+]0x[0-9a-f]+$/i,qL=/^0b[01]+$/i,GL=/^0o[0-7]+$/i,KL=parseInt,YL=typeof ot=="object"&&ot&&ot.Object===Object&&ot,XL=typeof self=="object"&&self&&self.Object===Object&&self,JL=YL||XL||Function("return this")(),ZL=Object.prototype,QL=ZL.toString,eM=Math.max,tM=Math.min,Jv=function(){return JL.Date.now()};function nM(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(HL);t=F6(t)||0,L2(n)&&(c=!!n.leading,f="maxWait"in n,o=f?eM(F6(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(D){var A=r,N=i;return r=i=void 0,l=D,a=e.apply(N,A),a}function v(D){return l=D,u=setTimeout(y,t),c?p(D):a}function m(D){var A=D-s,N=D-l,M=t-A;return f?tM(M,o-N):M}function g(D){var A=D-s,N=D-l;return s===void 0||A>=t||A<0||f&&N>=o}function y(){var D=Jv();if(g(D))return h(D);u=setTimeout(y,m(D))}function h(D){return u=void 0,d&&r?p(D):(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(Jv())}function C(){var D=Jv(),A=g(D);if(r=arguments,i=this,s=D,A){if(u===void 0)return v(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return C.cancel=$,C.flush=w,C}function L2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function rM(e){return!!e&&typeof e=="object"}function iM(e){return typeof e=="symbol"||rM(e)&&QL.call(e)==UL}function F6(e){if(typeof e=="number")return e;if(iM(e))return B6;if(L2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=L2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(VL,"");var n=qL.test(e);return n||GL.test(e)?KL(e.slice(2),n?2:8):WL.test(e)?B6:+e}var bO=nM,$O=R$(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]",v="[object Object]",m="[object Promise]",g="[object RegExp]",y="[object Set]",h="[object String]",$="[object Symbol]",w="[object WeakMap]",C="[object ArrayBuffer]",D="[object DataView]",A="[object Float32Array]",N="[object Float64Array]",M="[object Int8Array]",U="[object Int16Array]",V="[object Int32Array]",J="[object Uint8Array]",Z="[object Uint8ClampedArray]",se="[object Uint16Array]",ee="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,fe=/\w*$/,_e=/^\[object .+?Constructor\]$/,ve=/^(?:0|[1-9]\d*)$/,ie={};ie[o]=ie[a]=ie[C]=ie[D]=ie[u]=ie[s]=ie[A]=ie[N]=ie[M]=ie[U]=ie[V]=ie[d]=ie[p]=ie[v]=ie[g]=ie[y]=ie[h]=ie[$]=ie[J]=ie[Z]=ie[se]=ie[ee]=!0,ie[l]=ie[c]=ie[w]=!1;var Ie=typeof ot=="object"&&ot&&ot.Object===Object&&ot,T=typeof self=="object"&&self&&self.Object===Object&&self,F=Ie||T||Function("return this")(),k=t&&!t.nodeType&&t,I=k&&!0&&e&&!e.nodeType&&e,H=I&&I.exports===k;function j(b,S){return b.set(S[0],S[1]),b}function Q(b,S){return b.add(S),b}function ce(b,S){for(var B=-1,L=b?b.length:0;++B<L&&S(b[B],B,b)!==!1;);return b}function we(b,S){for(var B=-1,L=S.length,me=b.length;++B<L;)b[me+B]=S[B];return b}function Re(b,S,B,L){var me=-1,oe=b?b.length:0;for(L&&oe&&(B=b[++me]);++me<oe;)B=S(B,b[me],me,b);return B}function z(b,S){for(var B=-1,L=Array(b);++B<b;)L[B]=S(B);return L}function ze(b,S){return b==null?void 0:b[S]}function ye(b){var S=!1;if(b!=null&&typeof b.toString!="function")try{S=!!(b+"")}catch{}return S}function ue(b){var S=-1,B=Array(b.size);return b.forEach(function(L,me){B[++S]=[me,L]}),B}function be(b,S){return function(B){return b(S(B))}}function yn(b){var S=-1,B=Array(b.size);return b.forEach(function(L){B[++S]=L}),B}var qe=Array.prototype,lt=Function.prototype,ft=Object.prototype,ln=F["__core-js_shared__"],dt=function(){var b=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),In=lt.toString,bn=ft.hasOwnProperty,cn=ft.toString,yr=RegExp("^"+In.call(bn).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),br=H?F.Buffer:void 0,$n=F.Symbol,$r=F.Uint8Array,on=be(Object.getPrototypeOf,Object),Rn=Object.create,nu=ft.propertyIsEnumerable,Xs=qe.splice,Xr=Object.getOwnPropertySymbols,$i=br?br.isBuffer:void 0,ru=be(Object.keys,Object),wi=rr(F,"DataView"),Jr=rr(F,"Map"),wn=rr(F,"Promise"),Ei=rr(F,"Set"),Js=rr(F,"WeakMap"),jo=rr(Object,"create"),Zs=an(wi),Lo=an(Jr),Qs=an(wn),el=an(Ei),tl=an(Js),Ci=$n?$n.prototype:void 0,Cd=Ci?Ci.valueOf:void 0;function Zr(b){var S=-1,B=b?b.length:0;for(this.clear();++S<B;){var L=b[S];this.set(L[0],L[1])}}function nv(){this.__data__=jo?jo(null):{}}function rv(b){return this.has(b)&&delete this.__data__[b]}function iv(b){var S=this.__data__;if(jo){var B=S[b];return B===r?void 0:B}return bn.call(S,b)?S[b]:void 0}function Dd(b){var S=this.__data__;return jo?S[b]!==void 0:bn.call(S,b)}function nl(b,S){var B=this.__data__;return B[b]=jo&&S===void 0?r:S,this}Zr.prototype.clear=nv,Zr.prototype.delete=rv,Zr.prototype.get=iv,Zr.prototype.has=Dd,Zr.prototype.set=nl;function Mt(b){var S=-1,B=b?b.length:0;for(this.clear();++S<B;){var L=b[S];this.set(L[0],L[1])}}function ov(){this.__data__=[]}function av(b){var S=this.__data__,B=ou(S,b);if(B<0)return!1;var L=S.length-1;return B==L?S.pop():Xs.call(S,B,1),!0}function uv(b){var S=this.__data__,B=ou(S,b);return B<0?void 0:S[B][1]}function sv(b){return ou(this.__data__,b)>-1}function lv(b,S){var B=this.__data__,L=ou(B,b);return L<0?B.push([b,S]):B[L][1]=S,this}Mt.prototype.clear=ov,Mt.prototype.delete=av,Mt.prototype.get=uv,Mt.prototype.has=sv,Mt.prototype.set=lv;function Yt(b){var S=-1,B=b?b.length:0;for(this.clear();++S<B;){var L=b[S];this.set(L[0],L[1])}}function cv(){this.__data__={hash:new Zr,map:new(Jr||Mt),string:new Zr}}function fv(b){return zo(this,b).delete(b)}function dv(b){return zo(this,b).get(b)}function pv(b){return zo(this,b).has(b)}function hv(b,S){return zo(this,b).set(b,S),this}Yt.prototype.clear=cv,Yt.prototype.delete=fv,Yt.prototype.get=dv,Yt.prototype.has=pv,Yt.prototype.set=hv;function fn(b){this.__data__=new Mt(b)}function gv(){this.__data__=new Mt}function vv(b){return this.__data__.delete(b)}function mv(b){return this.__data__.get(b)}function yv(b){return this.__data__.has(b)}function bv(b,S){var B=this.__data__;if(B instanceof Mt){var L=B.__data__;if(!Jr||L.length<n-1)return L.push([b,S]),this;B=this.__data__=new Yt(L)}return B.set(b,S),this}fn.prototype.clear=gv,fn.prototype.delete=vv,fn.prototype.get=mv,fn.prototype.has=yv,fn.prototype.set=bv;function iu(b,S){var B=al(b)||uu(b)?z(b.length,String):[],L=B.length,me=!!L;for(var oe in b)(S||bn.call(b,oe))&&!(me&&(oe=="length"||_v(oe,L)))&&B.push(oe);return B}function Sd(b,S,B){var L=b[S];(!(bn.call(b,S)&&Fd(L,B))||B===void 0&&!(S in b))&&(b[S]=B)}function ou(b,S){for(var B=b.length;B--;)if(Fd(b[B][0],S))return B;return-1}function wr(b,S){return b&&ol(S,sl(S),b)}function rl(b,S,B,L,me,oe,Fe){var Pe;if(L&&(Pe=oe?L(b,me,oe,Fe):L(b)),Pe!==void 0)return Pe;if(!Cr(b))return b;var wt=al(b);if(wt){if(Pe=Tv(b),!S)return Ov(b,Pe)}else{var He=ei(b),Xt=He==c||He==f;if(Td(b))return au(b,S);if(He==v||He==o||Xt&&!oe){if(ye(b))return oe?b:{};if(Pe=Er(Xt?{}:b),!S)return Bv(b,wr(Pe,b))}else{if(!ie[He])return oe?b:{};Pe=kv(b,He,rl,S)}}Fe||(Fe=new fn);var dn=Fe.get(b);if(dn)return dn;if(Fe.set(b,Pe),!wt)var Tt=B?Fv(b):sl(b);return ce(Tt||b,function(Jt,zt){Tt&&(zt=Jt,Jt=b[zt]),Sd(Pe,zt,rl(Jt,S,B,L,zt,b,Fe))}),Pe}function $v(b){return Cr(b)?Rn(b):{}}function wv(b,S,B){var L=S(b);return al(b)?L:we(L,B(b))}function Ev(b){return cn.call(b)}function Cv(b){if(!Cr(b)||Nv(b))return!1;var S=ul(b)||ye(b)?yr:_e;return S.test(an(b))}function Dv(b){if(!Od(b))return ru(b);var S=[];for(var B in Object(b))bn.call(b,B)&&B!="constructor"&&S.push(B);return S}function au(b,S){if(S)return b.slice();var B=new b.constructor(b.length);return b.copy(B),B}function il(b){var S=new b.constructor(b.byteLength);return new $r(S).set(new $r(b)),S}function Mo(b,S){var B=S?il(b.buffer):b.buffer;return new b.constructor(B,b.byteOffset,b.byteLength)}function xd(b,S,B){var L=S?B(ue(b),!0):ue(b);return Re(L,j,new b.constructor)}function Ad(b){var S=new b.constructor(b.source,fe.exec(b));return S.lastIndex=b.lastIndex,S}function Sv(b,S,B){var L=S?B(yn(b),!0):yn(b);return Re(L,Q,new b.constructor)}function xv(b){return Cd?Object(Cd.call(b)):{}}function Av(b,S){var B=S?il(b.buffer):b.buffer;return new b.constructor(B,b.byteOffset,b.length)}function Ov(b,S){var B=-1,L=b.length;for(S||(S=Array(L));++B<L;)S[B]=b[B];return S}function ol(b,S,B,L){B||(B={});for(var me=-1,oe=S.length;++me<oe;){var Fe=S[me],Pe=L?L(B[Fe],b[Fe],Fe,B,b):void 0;Sd(B,Fe,Pe===void 0?b[Fe]:Pe)}return B}function Bv(b,S){return ol(b,Qr(b),S)}function Fv(b){return wv(b,sl,Qr)}function zo(b,S){var B=b.__data__;return Pv(S)?B[typeof S=="string"?"string":"hash"]:B.map}function rr(b,S){var B=ze(b,S);return Cv(B)?B:void 0}var Qr=Xr?be(Xr,Object):Rv,ei=Ev;(wi&&ei(new wi(new ArrayBuffer(1)))!=D||Jr&&ei(new Jr)!=d||wn&&ei(wn.resolve())!=m||Ei&&ei(new Ei)!=y||Js&&ei(new Js)!=w)&&(ei=function(b){var S=cn.call(b),B=S==v?b.constructor:void 0,L=B?an(B):void 0;if(L)switch(L){case Zs:return D;case Lo:return d;case Qs:return m;case el:return y;case tl:return w}return S});function Tv(b){var S=b.length,B=b.constructor(S);return S&&typeof b[0]=="string"&&bn.call(b,"index")&&(B.index=b.index,B.input=b.input),B}function Er(b){return typeof b.constructor=="function"&&!Od(b)?$v(on(b)):{}}function kv(b,S,B,L){var me=b.constructor;switch(S){case C:return il(b);case u:case s:return new me(+b);case D:return Mo(b,L);case A:case N:case M:case U:case V:case J:case Z:case se:case ee:return Av(b,L);case d:return xd(b,L,B);case p:case h:return new me(b);case g:return Ad(b);case y:return Sv(b,L,B);case $:return xv(b)}}function _v(b,S){return S=S==null?i:S,!!S&&(typeof b=="number"||ve.test(b))&&b>-1&&b%1==0&&b<S}function Pv(b){var S=typeof b;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?b!=="__proto__":b===null}function Nv(b){return!!dt&&dt in b}function Od(b){var S=b&&b.constructor,B=typeof S=="function"&&S.prototype||ft;return b===B}function an(b){if(b!=null){try{return In.call(b)}catch{}try{return b+""}catch{}}return""}function Bd(b){return rl(b,!0,!0)}function Fd(b,S){return b===S||b!==b&&S!==S}function uu(b){return Iv(b)&&bn.call(b,"callee")&&(!nu.call(b,"callee")||cn.call(b)==o)}var al=Array.isArray;function su(b){return b!=null&&kd(b.length)&&!ul(b)}function Iv(b){return _d(b)&&su(b)}var Td=$i||jv;function ul(b){var S=Cr(b)?cn.call(b):"";return S==c||S==f}function kd(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=i}function Cr(b){var S=typeof b;return!!b&&(S=="object"||S=="function")}function _d(b){return!!b&&typeof b=="object"}function sl(b){return su(b)?iu(b):Dv(b)}function Rv(){return[]}function jv(){return!1}e.exports=Bd}),oM=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},fu;function T6(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var aM=0;function uM(e){return"__private_"+aM+++"_"+e}function sM(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}/**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function k6(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=sM(i,new RegExp(`%\\{${o}\\}`,"g"),a)}return i}var wO=(fu=uM("apply"),class{constructor(t){Object.defineProperty(this,fu,{value:lM}),this.locale={strings:{},pluralize(n){return n===1?0:1}},Array.isArray(t)?t.forEach(T6(this,fu)[fu],this):T6(this,fu)[fu](t)}translate(t,n){return this.translateArray(t,n).join("")}translateArray(t,n){if(!oM(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 k6(r[o],n)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return k6(r,n)}});function lM(e){if(!(e!=null&&e.strings))return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var EO=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};let cM="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var fM={urlAlphabet:cM};let{urlAlphabet:dM}=fM;{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 CO=e=>crypto.getRandomValues(new Uint8Array(e)),DO=(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}}},pM=(e,t)=>DO(e,t,CO),hM=(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 gM={nanoid:hM,customAlphabet:pM,customRandom:DO,urlAlphabet:dM,random:CO},Zv=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 SO(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}SO.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 vM=function(e,t,n){var r=new SO(e,n||/[\/\.]/);return typeof t!="undefined"?r.match(t):r},mM=/[\/\+\.]/,yM=function(e,t){function n(r){var i=vM(r,e,mM);return i&&i.length>=2}return t?n(t.split(";")[0]):n};function bM(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var $M=0;function wM(e){return"__private_"+$M+++"_"+e}var Qv=wM("publish");class xO{constructor(){Object.defineProperty(this,Qv,{value:EM}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,bM(this,Qv)[Qv](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function EM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}xO.VERSION="2.0.3";var CM=function(){return new xO},AO=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)}},_6={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"},DM=function(t){var n;if(t.type)return t.type;const r=t.name?(n=AO(t.name).extension)==null?void 0:n.toLowerCase():null;return r&&r in _6?_6[r]:"application/octet-stream"};function SM(e){return e.charCodeAt(0).toString(32)}function P6(e){let t="";return e.replace(/[^A-Z0-9]/ig,n=>(t+=`-${SM(n)}`,"/"))+t}var xM=function(t){let n="uppy";return typeof t.name=="string"&&(n+=`-${P6(t.name.toLowerCase())}`),t.type!==void 0&&(n+=`-${t.type}`),t.meta&&typeof t.meta.relativePath=="string"&&(n+=`-${P6(t.meta.relativePath.toLowerCase())}`),t.data.size!==void 0&&(n+=`-${t.data.size}`),t.data.lastModified!==void 0&&(n+=`-${t.data.lastModified}`),n},AM=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},OM=function(t,n){return n.name?n.name:t.split("/")[0]==="image"?`${t.split("/")[0]}.${t.split("/")[1]}`:"noname"};function e1(e){return e<10?`0${e}`:e.toString()}var jp=function(){const t=new Date,n=e1(t.getHours()),r=e1(t.getMinutes()),i=e1(t.getSeconds());return`${n}:${r}:${i}`};const BM={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] [${jp()}]`,...t)}},FM={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${jp()}]`,...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] [${jp()}]`,...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] [${jp()}]`,...t)}};var OO={justErrorsLogger:BM,debugLogger:FM},TM={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}"}}},BO=gM;let FO,TO;function ne(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var kM=0;function Ft(e){return"__private_"+kM+++"_"+e}const{nanoid:_M}=BO,{justErrorsLogger:PM,debugLogger:NM}=OO;class _r 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 IM extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Ht=Ft("plugins"),dl=Ft("storeUnsubscribe"),ii=Ft("emitter"),oa=Ft("preProcessors"),aa=Ft("uploaders"),si=Ft("postProcessors"),Ac=Ft("checkRestrictions"),t1=Ft("checkMinNumberOfFiles"),Zc=Ft("checkRequiredMetaFieldsOnFile"),n1=Ft("checkRequiredMetaFields"),kt=Ft("showOrLogErrorAndThrow"),pl=Ft("assertNewUploadAllowed"),hl=Ft("checkAndCreateFileStateObject"),gl=Ft("startIfAutoProceed"),r1=Ft("addListeners"),or=Ft("updateOnlineStatus"),oi=Ft("createUpload"),i1=Ft("getUpload"),ca=Ft("removeUpload"),ai=Ft("runUpload");FO=Symbol.for("uppy test: getPlugins");TO=Symbol.for("uppy test: createUpload");class kO{constructor(t){Object.defineProperty(this,ai,{value:YM}),Object.defineProperty(this,ca,{value:KM}),Object.defineProperty(this,i1,{value:GM}),Object.defineProperty(this,oi,{value:qM}),Object.defineProperty(this,r1,{value:WM}),Object.defineProperty(this,gl,{value:VM}),Object.defineProperty(this,hl,{value:UM}),Object.defineProperty(this,pl,{value:HM}),Object.defineProperty(this,kt,{value:zM}),Object.defineProperty(this,n1,{value:MM}),Object.defineProperty(this,Zc,{value:LM}),Object.defineProperty(this,t1,{value:jM}),Object.defineProperty(this,Ac,{value:RM}),Object.defineProperty(this,Ht,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,dl,{writable:!0,value:void 0}),Object.defineProperty(this,ii,{writable:!0,value:EO()}),Object.defineProperty(this,oa,{writable:!0,value:new Set}),Object.defineProperty(this,aa,{writable:!0,value:new Set}),Object.defineProperty(this,si,{writable:!0,value:new Set}),Object.defineProperty(this,or,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=TM;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:CM(),logger:PM,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...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=NM),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=Pa(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:AM(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ne(this,dl)[dl]=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),ne(this,r1)[r1]()}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];ne(this,ii)[ii].emit(t,...r)}on(t,n){return ne(this,ii)[ii].on(t,n),this}once(t,n){return ne(this,ii)[ii].once(t,n),this}off(t,n){return ne(this,ii)[ii].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:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new wO([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={...this.opts,...t,restrictions:{...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={...this.getState().files},r={};Object.keys(n).forEach(i=>{const o={...n[i]};o.progress={...o.progress,...t},r[i]=o}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){ne(this,oa)[oa].add(t)}removePreProcessor(t){return ne(this,oa)[oa].delete(t)}addPostProcessor(t){ne(this,si)[si].add(t)}removePostProcessor(t){return ne(this,si)[si].delete(t)}addUploader(t){ne(this,aa)[aa].add(t)}removeUploader(t){return ne(this,aa)[aa].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(i=>{r[i]={...r[i],meta:{...r[i].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const i={...r[t].meta,...n};r[t]={...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(v=>{let{progress:m}=v;return!m.uploadComplete&&m.uploadStarted}),a=i.filter(v=>!v.progress.uploadStarted),u=i.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=i.filter(v=>v.progress.uploadStarted),l=i.filter(v=>v.isPaused),c=i.filter(v=>v.progress.uploadComplete),f=i.filter(v=>v.error),d=o.filter(v=>!v.isPaused),p=i.filter(v=>v.progress.preprocess||v.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(v=>v.isGhost)}}validateRestrictions(t,n){try{return ne(this,Ac)[Ac](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){ne(this,pl)[pl](t);const{files:n}=this.getState();let r=ne(this,hl)[hl](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...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:{...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}`),ne(this,gl)[gl](),r.id}addFiles(t){ne(this,pl)[pl]();const n={...this.getState().files},r=[],i=[];for(let o=0;o<t.length;o++)try{let a=ne(this,hl)[hl](n,t[o]);n[a.id]&&n[a.id].isGhost&&(a={...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}
- id: ${r[o].id}
- type: ${r[o].type}`)}),r.length>0&&ne(this,gl)[gl](),i.length>0){let o=`Multiple errors occurred while adding files:
- `;if(i.forEach(a=>{o+=`
- * ${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={...r},a={...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]={...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={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i={...t[r],isPaused:!0};t[r]=i}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i={...t[r],isPaused:!1,error:null};t[r]=i}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(i=>t[i].error);if(n.forEach(i=>{const o={...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=ne(this,oi)[oi](n,{forceAllowNewUpload:!0});return ne(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=ne(this,oi)[oi]([t],{forceAllowNewUpload:!0});return ne(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:{...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}'.
- 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 ne(this,Ht)[Ht]?ne(this,Ht)[Ht][r.type].push(r):ne(this,Ht)[Ht][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(ne(this,Ht)[Ht])){const r=n.find(i=>i.id===t);if(r!=null)return r}}[FO](t){return ne(this,Ht)[Ht][t]}iteratePlugins(t){Object.values(ne(this,Ht)[Ht]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=ne(this,Ht)[Ht][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().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(),ne(this,dl)[dl](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",ne(this,or)[or]),window.removeEventListener("offline",ne(this,or)[or]))}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]?ne(this,ai)[ai](t):(ne(this,ca)[ca](t),Promise.reject(new Error("Nonexistent upload")))}[TO](){return ne(this,oi)[oi](...arguments)}addResultData(t,n){if(!ne(this,i1)[i1](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:r}=this.getState(),i={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:i}})}upload(){var t;(t=ne(this,Ht)[Ht].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(()=>{ne(this,t1)[t1](n),ne(this,n1)[n1](n)}).catch(i=>{ne(this,kt)[kt](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=ne(this,oi)[oi](a);return ne(this,ai)[ai](u)}).catch(i=>{ne(this,kt)[kt](i,{showInformer:!1})}))}}function RM(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 _r(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(s=>s.indexOf("/")>-1?e.type?yM(e.type.replace(/;.*?$/,""),s):!1:s[0]==="."&&e.extension?e.extension.toLowerCase()===s.substr(1).toLowerCase():!1)){const s=a.join(", ");throw new _r(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 _r(this.i18n("exceedsSize",{size:Zv(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new _r(this.i18n("exceedsSize",{size:Zv(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new _r(this.i18n("inferiorSize",{size:Zv(r)}))}function jM(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new _r(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function LM(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 _r(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),i.push(t[o]),ne(this,kt)[kt](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function MM(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return ne(this,Zc)[Zc](r)});if(t.length)throw new IM(t,`${this.i18n("missingRequiredMetaField")}`)}function zM(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 HM(e){const{allowNewUpload:t}=this.getState();t===!1&&ne(this,kt)[kt](new _r(this.i18n("noMoreFilesAllowed")),{file:e})}function UM(e,t){const n=DM(t),r=OM(n,t),i=AO(r).extension,o=Boolean(t.isRemote),a=xM({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new _r(this.i18n("noDuplicates",{fileName:r}));ne(this,kt)[kt](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:{...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?ne(this,kt)[kt](new _r("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]);ne(this,Ac)[Ac](l,f)}catch(f){ne(this,kt)[kt](f,{file:l})}return l}function VM(){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 WM(){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}),ne(this,kt)[kt](i,{throwErr:!1})}else ne(this,kt)[kt](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:{...r,postprocess:ne(this,si)[si].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:{...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={...this.getState().files};n[t.id]={...n[t.id],progress:{...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:{...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={...this.getState().files};n[t.id]={...n[t.id],progress:{...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&&ne(this,Zc)[Zc](t)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",ne(this,or)[or]),window.addEventListener("offline",ne(this,or)[or]),setTimeout(ne(this,or)[or],3e3))}function qM(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=_M();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function GM(e){const{currentUploads:t}=this.getState();return t[e]}function KM(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function YM(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...ne(this,oa)[oa],...ne(this,aa)[aa],...ne(this,si)[si]];try{for(let a=r;a<i.length&&n;a++){const u=i[a],s={...n,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),ne(this,ca)[ca](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);await 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),ne(this,ca)[ca](e)),o==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}kO.VERSION="2.1.3";var _O=kO,XM=R$(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 v(T){var F=T.parentNode;F&&F.removeChild(T)}function m(T,F,k){var I,H,j,Q={};for(j in F)j=="key"?I=F[j]:j=="ref"?H=F[j]:Q[j]=F[j];if(arguments.length>2&&(Q.children=arguments.length>3?n.call(arguments,2):k),typeof T=="function"&&T.defaultProps!=null)for(j in T.defaultProps)Q[j]===void 0&&(Q[j]=T.defaultProps[j]);return g(T,Q,I,H,null)}function g(T,F,k,I,H){var j={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:H==null?++i:H};return H==null&&r.vnode!=null&&r.vnode(j),j}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 C(T){(!T.__d&&(T.__d=!0)&&a.push(T)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var T;D.__r=a.length;)T=a.sort(function(F,k){return F.__v.__b-k.__v.__b}),a=[],T.some(function(F){var k,I,H,j,Q,ce;F.__d&&(Q=(j=(k=F).__v).__e,(ce=k.__P)&&(I=[],(H=p({},j)).__v=j.__v+1,ee(ce,j,H,k.__n,ce.ownerSVGElement!==void 0,j.__h!=null?[Q]:null,I,Q==null?$(j):Q,j.__h),ae(I,j),j.__e!=Q&&w(j)))})}function A(T,F,k,I,H,j,Q,ce,we,Re){var z,ze,ye,ue,be,yn,qe,lt=I&&I.__k||f,ft=lt.length;for(k.__k=[],z=0;z<F.length;z++)if((ue=k.__k[z]=(ue=F[z])==null||typeof ue=="boolean"?null:typeof ue=="string"||typeof ue=="number"||typeof ue=="bigint"?g(null,ue,null,null,ue):Array.isArray(ue)?g(y,{children:ue},null,null,null):ue.__b>0?g(ue.type,ue.props,ue.key,null,ue.__v):ue)!=null){if(ue.__=k,ue.__b=k.__b+1,(ye=lt[z])===null||ye&&ue.key==ye.key&&ue.type===ye.type)lt[z]=void 0;else for(ze=0;ze<ft;ze++){if((ye=lt[ze])&&ue.key==ye.key&&ue.type===ye.type){lt[ze]=void 0;break}ye=null}ee(T,ue,ye=ye||c,H,j,Q,ce,we,Re),be=ue.__e,(ze=ue.ref)&&ye.ref!=ze&&(qe||(qe=[]),ye.ref&&qe.push(ye.ref,null,ue),qe.push(ze,ue.__c||be,ue)),be!=null?(yn==null&&(yn=be),typeof ue.type=="function"&&ue.__k===ye.__k?ue.__d=we=N(ue,we,T):we=M(T,ue,ye,lt,be,we),typeof k.type=="function"&&(k.__d=we)):we&&ye.__e==we&&we.parentNode!=T&&(we=$(ye))}for(k.__e=yn,z=ft;z--;)lt[z]!=null&&(typeof k.type=="function"&<[z].__e!=null&<[z].__e==k.__d&&(k.__d=$(I,z+1)),ve(lt[z],lt[z]));if(qe)for(z=0;z<qe.length;z++)_e(qe[z],qe[++z],qe[++z])}function N(T,F,k){for(var I,H=T.__k,j=0;H&&j<H.length;j++)(I=H[j])&&(I.__=T,F=typeof I.type=="function"?N(I,F,k):M(k,I,I,H,I.__e,F));return F}function M(T,F,k,I,H,j){var Q,ce,we;if(F.__d!==void 0)Q=F.__d,F.__d=void 0;else if(k==null||H!=j||H.parentNode==null)e:if(j==null||j.parentNode!==T)T.appendChild(H),Q=null;else{for(ce=j,we=0;(ce=ce.nextSibling)&&we<I.length;we+=2)if(ce==H)break e;T.insertBefore(H,j),Q=j}return Q!==void 0?Q:H.nextSibling}function U(T,F,k,I,H){var j;for(j in k)j==="children"||j==="key"||j in F||J(T,j,null,k[j],I);for(j in F)H&&typeof F[j]!="function"||j==="children"||j==="key"||j==="value"||j==="checked"||k[j]===F[j]||J(T,j,F[j],k[j],I)}function V(T,F,k){F[0]==="-"?T.setProperty(F,k):T[F]=k==null?"":typeof k!="number"||d.test(F)?k:k+"px"}function J(T,F,k,I,H){var j;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||V(T.style,F,"");if(k)for(F in k)I&&k[F]===I[F]||V(T.style,F,k[F])}else if(F[0]==="o"&&F[1]==="n")j=F!==(F=F.replace(/Capture$/,"")),F=F.toLowerCase()in T?F.toLowerCase().slice(2):F.slice(2),T.l||(T.l={}),T.l[F+j]=k,k?I||T.addEventListener(F,j?se:Z,j):T.removeEventListener(F,j?se:Z,j);else if(F!=="dangerouslySetInnerHTML"){if(H)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{}typeof k=="function"||(k!=null&&(k!==!1||F[0]==="a"&&F[1]==="r")?T.setAttribute(F,k):T.removeAttribute(F))}}function Z(T){this.l[T.type+!1](r.event?r.event(T):T)}function se(T){this.l[T.type+!0](r.event?r.event(T):T)}function ee(T,F,k,I,H,j,Q,ce,we){var Re,z,ze,ye,ue,be,yn,qe,lt,ft,ln,dt=F.type;if(F.constructor!==void 0)return null;k.__h!=null&&(we=k.__h,ce=F.__e=k.__e,F.__h=null,j=[ce]),(Re=r.__b)&&Re(F);try{e:if(typeof dt=="function"){if(qe=F.props,lt=(Re=dt.contextType)&&I[Re.__c],ft=Re?lt?lt.props.value:Re.__:I,k.__c?yn=(z=F.__c=k.__c).__=z.__E:("prototype"in dt&&dt.prototype.render?F.__c=z=new dt(qe,ft):(F.__c=z=new h(qe,ft),z.constructor=dt,z.render=ie),lt&<.sub(z),z.props=qe,z.state||(z.state={}),z.context=ft,z.__n=I,ze=z.__d=!0,z.__h=[]),z.__s==null&&(z.__s=z.state),dt.getDerivedStateFromProps!=null&&(z.__s==z.state&&(z.__s=p({},z.__s)),p(z.__s,dt.getDerivedStateFromProps(qe,z.__s))),ye=z.props,ue=z.state,ze)dt.getDerivedStateFromProps==null&&z.componentWillMount!=null&&z.componentWillMount(),z.componentDidMount!=null&&z.__h.push(z.componentDidMount);else{if(dt.getDerivedStateFromProps==null&&qe!==ye&&z.componentWillReceiveProps!=null&&z.componentWillReceiveProps(qe,ft),!z.__e&&z.shouldComponentUpdate!=null&&z.shouldComponentUpdate(qe,z.__s,ft)===!1||F.__v===k.__v){z.props=qe,z.state=z.__s,F.__v!==k.__v&&(z.__d=!1),z.__v=F,F.__e=k.__e,F.__k=k.__k,F.__k.forEach(function(In){In&&(In.__=F)}),z.__h.length&&Q.push(z);break e}z.componentWillUpdate!=null&&z.componentWillUpdate(qe,z.__s,ft),z.componentDidUpdate!=null&&z.__h.push(function(){z.componentDidUpdate(ye,ue,be)})}z.context=ft,z.props=qe,z.state=z.__s,(Re=r.__r)&&Re(F),z.__d=!1,z.__v=F,z.__P=T,Re=z.render(z.props,z.state,z.context),z.state=z.__s,z.getChildContext!=null&&(I=p(p({},I),z.getChildContext())),ze||z.getSnapshotBeforeUpdate==null||(be=z.getSnapshotBeforeUpdate(ye,ue)),ln=Re!=null&&Re.type===y&&Re.key==null?Re.props.children:Re,A(T,Array.isArray(ln)?ln:[ln],F,k,I,H,j,Q,ce,we),z.base=F.__e,F.__h=null,z.__h.length&&Q.push(z),yn&&(z.__E=z.__=null),z.__e=!1}else j==null&&F.__v===k.__v?(F.__k=k.__k,F.__e=k.__e):F.__e=fe(k.__e,F,k,I,H,j,Q,we);(Re=r.diffed)&&Re(F)}catch(In){F.__v=null,(we||j!=null)&&(F.__e=ce,F.__h=!!we,j[j.indexOf(ce)]=null),r.__e(In,F,k)}}function ae(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 fe(T,F,k,I,H,j,Q,ce){var we,Re,z,ze=k.props,ye=F.props,ue=F.type,be=0;if(ue==="svg"&&(H=!0),j!=null){for(;be<j.length;be++)if((we=j[be])&&"setAttribute"in we==!!ue&&(ue?we.localName===ue:we.nodeType===3)){T=we,j[be]=null;break}}if(T==null){if(ue===null)return document.createTextNode(ye);T=H?document.createElementNS("http://www.w3.org/2000/svg",ue):document.createElement(ue,ye.is&&ye),j=null,ce=!1}if(ue===null)ze===ye||ce&&T.data===ye||(T.data=ye);else{if(j=j&&n.call(T.childNodes),Re=(ze=k.props||c).dangerouslySetInnerHTML,z=ye.dangerouslySetInnerHTML,!ce){if(j!=null)for(ze={},be=0;be<T.attributes.length;be++)ze[T.attributes[be].name]=T.attributes[be].value;(z||Re)&&(z&&(Re&&z.__html==Re.__html||z.__html===T.innerHTML)||(T.innerHTML=z&&z.__html||""))}if(U(T,ye,ze,H,ce),z)F.__k=[];else if(be=F.props.children,A(T,Array.isArray(be)?be:[be],F,k,I,H&&ue!=="foreignObject",j,Q,j?j[0]:k.__k&&$(k,0),ce),j!=null)for(be=j.length;be--;)j[be]!=null&&v(j[be]);ce||("value"in ye&&(be=ye.value)!==void 0&&(be!==ze.value||be!==T.value||ue==="progress"&&!be)&&J(T,"value",be,ze.value,!1),"checked"in ye&&(be=ye.checked)!==void 0&&be!==T.checked&&J(T,"checked",be,ze.checked,!1))}return T}function _e(T,F,k){try{typeof T=="function"?T(F):T.current=F}catch(I){r.__e(I,k)}}function ve(T,F,k){var I,H;if(r.unmount&&r.unmount(T),(I=T.ref)&&(I.current&&I.current!==T.__e||_e(I,null,F)),(I=T.__c)!=null){if(I.componentWillUnmount)try{I.componentWillUnmount()}catch(j){r.__e(j,F)}I.base=I.__P=null}if(I=T.__k)for(H=0;H<I.length;H++)I[H]&&ve(I[H],F,typeof T.type!="function");k||T.__e==null||v(T.__e),T.__e=T.__d=void 0}function ie(T,F,k){return this.constructor(T,k)}function Ie(T,F,k){var I,H,j;r.__&&r.__(T,F),H=(I=typeof k=="function")?null:k&&k.__k||F.__k,j=[],ee(F,T=(!I&&k||F).__k=m(y,null,[T]),H||c,c,F.ownerSVGElement!==void 0,!I&&k?[k]:H?null:F.firstChild?n.call(F.childNodes):null,j,!I&&k?k:H?H.__e:F.firstChild,I),ae(j,T)}n=f.slice,r={__e:function(T,F){for(var k,I,H;F=F.__;)if((k=F.__c)&&!k.__)try{if((I=k.constructor)&&I.getDerivedStateFromError!=null&&(k.setState(I.getDerivedStateFromError(T)),H=k.__d),k.componentDidCatch!=null&&(k.componentDidCatch(T),H=k.__d),H)return k.__E=k}catch(j){T=j}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),C(this))},h.prototype.forceUpdate=function(T){this.__v&&(this.__e=!0,T&&this.__h.push(T),C(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,t.Component=h,t.Fragment=y,t.cloneElement=function(T,F,k){var I,H,j,Q=p({},T.props);for(j in F)j=="key"?I=F[j]:j=="ref"?H=F[j]:Q[j]=F[j];return arguments.length>2&&(Q.children=arguments.length>3?n.call(arguments,2):k),g(T.type,Q,I||T.key,H||T.ref,null)},t.createContext=function(T,F){var k={__c:F="__cC"+l++,__:T,Consumer:function(I,H){return I.children(H)},Provider:function(I){var H,j;return this.getChildContext||(H=[],(j={})[F]=this,this.getChildContext=function(){return j},this.shouldComponentUpdate=function(Q){this.props.value!==Q.value&&H.some(C)},this.sub=function(Q){H.push(Q);var ce=Q.componentWillUnmount;Q.componentWillUnmount=function(){H.splice(H.indexOf(Q),1),ce&&ce.call(Q)}}),I.children}};return k.Provider.__=k.Consumer.contextType=k},t.createElement=m,t.createRef=function(){return{current:null}},t.h=m,t.hydrate=function T(F,k){Ie(F,k,T)},t.isValidElement=o,t.options=r,t.render=Ie,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}}),JM=function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE},ZM=function(t,n){return n===void 0&&(n=document),typeof t=="string"?n.querySelector(t):JM(t)?t:null},K$=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:{...n,[this.id]:{...n[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new wO([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 N6(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var QM=0;function ez(e){return"__private_"+QM+++"_"+e}const{render:I6}=XM;function tz(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 vl=ez("updateUI");class Y$ extends K${constructor(){super(...arguments),Object.defineProperty(this,vl,{writable:!0,value:void 0})}mount(t,n){const r=n.id,i=ZM(t);if(i){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return N6(this,vl)[vl]=tz(s=>{!this.uppy.getPlugin(this.id)||(I6(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=""),I6(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 Y$)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=N6(this,vl))[vl])==null||n.call(r,t)}}unmount(){if(this.isTargetDOMEl){var t;(t=this.el)==null||t.remove()}this.onUnmount()}onMount(){}onUnmount(){}}var nz=Y$;const{debugLogger:rz}=OO;var Wf=_O,iz=_O,oz=nz,az=K$,uz=rz;Wf.Uppy=iz;Wf.UIPlugin=oz;Wf.BasePlugin=az;Wf.debugLogger=uz;class sz 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 X$=sz,o1=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new X$(t)})};class lz extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var cz=lz,Md,Si,xr,xi,R6;function Sr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fz=0;function a1(e){return"__private_"+fz+++"_"+e}function dz(e){return e.replace(/\/$/,"")}async function u1(e){if(e.status===401)throw new cz;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await 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 J$=(R6=(Si=a1("getPostResponseFunc"),xr=a1("getUrl"),xi=a1("errorHandler"),Md=class PO{constructor(t,n){Object.defineProperty(this,xi,{value:hz}),Object.defineProperty(this,xr,{value:pz}),Object.defineProperty(this,Si,{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 dz(t&&t[n]?t[n]:n)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...PO.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:{...r,[i]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Sr(this,xr)[xr](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=>o1(Sr(this,xr)[xr](t),{method:r,headers:i,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Sr(this,Si)[Si](n)).then(u1).catch(Sr(this,xi)[xi](r,t))}post(t,n,r){const i="post";return this.preflightAndHeaders(t).then(o=>o1(Sr(this,xr)[xr](t),{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(Sr(this,Si)[Si](r)).then(u1).catch(Sr(this,xi)[xi](i,t))}delete(t,n,r){const i="delete";return this.preflightAndHeaders(t).then(o=>o1(`${this.hostname}/${t}`,{method:i,headers:o,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(Sr(this,Si)[Si](r)).then(u1).catch(Sr(this,xi)[xi](i,t))}}),Md.VERSION="2.0.4",Md.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Md.VERSION}`},R6);function pz(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function hz(e,t){return n=>{var r;if(!((r=n)!=null&&r.isAuthError)){const i=new Error(`Could not ${e} ${Sr(this,xr)[xr](t)}`);i.cause=n,n=i}return Promise.reject(n)}}var gz=(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),vz=e=>Promise.resolve(localStorage.getItem(e)),mz=e=>new Promise(t=>{localStorage.removeItem(e),t()}),yz={setItem:gz,getItem:vz,removeItem:mz};const bz=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var $z=class extends J${constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||bz(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}))),{...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={...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||yz}};const wz=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var Ez=class extends J${constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||wz(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}`)}},Dr,Ai,jn,Qt,zd;let j6,L6;function Et(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Cz=0;function ml(e){return"__private_"+Cz+++"_"+e}var Dz=(Dr=ml("queued"),Ai=ml("emitter"),jn=ml("isOpen"),Qt=ml("socket"),zd=ml("handleMessage"),j6=Symbol.for("uppy test: getSocket"),L6=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,Dr,{writable:!0,value:[]}),Object.defineProperty(this,Ai,{writable:!0,value:EO()}),Object.defineProperty(this,jn,{writable:!0,value:!1}),Object.defineProperty(this,Qt,{writable:!0,value:void 0}),Object.defineProperty(this,zd,{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 Et(this,jn)[jn]}[j6](){return Et(this,Qt)[Qt]}[L6](){return Et(this,Dr)[Dr]}open(){Et(this,Qt)[Qt]=new WebSocket(this.opts.target),Et(this,Qt)[Qt].onopen=()=>{for(Et(this,jn)[jn]=!0;Et(this,Dr)[Dr].length>0&&Et(this,jn)[jn];){const t=Et(this,Dr)[Dr].shift();this.send(t.action,t.payload)}},Et(this,Qt)[Qt].onclose=()=>{Et(this,jn)[jn]=!1},Et(this,Qt)[Qt].onmessage=Et(this,zd)[zd]}close(){var t;(t=Et(this,Qt)[Qt])==null||t.close()}send(t,n){if(!Et(this,jn)[jn]){Et(this,Dr)[Dr].push({action:t,payload:n});return}Et(this,Qt)[Qt].send(JSON.stringify({action:t,payload:n}))}on(t,n){Et(this,Ai)[Ai].on(t,n)}emit(t,n){Et(this,Ai)[Ai].emit(t,n)}once(t,n){Et(this,Ai)[Ai].once(t,n)}}),Sz={RequestClient:J$,Provider:$z,SearchProvider:Ez,Socket:Dz};function xz(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 Az=Pa(xz,300,{leading:!0,trailing:!0}),Oz=function(t){const r=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(t)[1];return`${/^http:\/\//i.test(t)?"ws":"wss"}://${r}`},Bz=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}))},Oi,du;function yl(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fz=0;function M6(e){return"__private_"+Fz+++"_"+e}var z6=(Oi=M6("emitter"),du=M6("events"),class{constructor(t){Object.defineProperty(this,Oi,{writable:!0,value:void 0}),Object.defineProperty(this,du,{writable:!0,value:[]}),yl(this,Oi)[Oi]=t}on(t,n){return yl(this,du)[du].push([t,n]),yl(this,Oi)[Oi].on(t,n)}remove(){for(const[t,n]of yl(this,du)[du].splice(0))yl(this,Oi)[Oi].off(t,n)}});function Ln(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tz=0;function r0(e){return"__private_"+Tz+++"_"+e}var ui=r0("aliveTimer"),Uo=r0("isDone"),bl=r0("onTimedOut"),Vo=r0("timeout");class kz{constructor(t,n){Object.defineProperty(this,ui,{writable:!0,value:void 0}),Object.defineProperty(this,Uo,{writable:!0,value:!1}),Object.defineProperty(this,bl,{writable:!0,value:void 0}),Object.defineProperty(this,Vo,{writable:!0,value:void 0}),Ln(this,Vo)[Vo]=t,Ln(this,bl)[bl]=n}progress(){Ln(this,Uo)[Uo]||Ln(this,Vo)[Vo]>0&&(clearTimeout(Ln(this,ui)[ui]),Ln(this,ui)[ui]=setTimeout(Ln(this,bl)[bl],Ln(this,Vo)[Vo]))}done(){Ln(this,Uo)[Uo]||(clearTimeout(Ln(this,ui)[ui]),Ln(this,ui)[ui]=null,Ln(this,Uo)[Uo]=!0)}}var H6=kz;function St(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _z=0;function Ya(e){return"__private_"+_z+++"_"+e}function Pz(){return new Error("Cancelled")}var Cn=Ya("activeRequests"),un=Ya("queuedHandlers"),Oc=Ya("call"),$c=Ya("queueNext"),M2=Ya("next"),s1=Ya("queue"),z2=Ya("dequeue");class Nz{constructor(t){Object.defineProperty(this,z2,{value:Mz}),Object.defineProperty(this,s1,{value:Lz}),Object.defineProperty(this,M2,{value:jz}),Object.defineProperty(this,$c,{value:Rz}),Object.defineProperty(this,Oc,{value:Iz}),Object.defineProperty(this,Cn,{writable:!0,value:0}),Object.defineProperty(this,un,{writable:!0,value:[]}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,n){return St(this,Cn)[Cn]<this.limit?St(this,Oc)[Oc](t):St(this,s1)[s1](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=Pz()}},n)});return s.abort=()=>{u.abort()},s}}}function Iz(e){St(this,Cn)[Cn]+=1;let t=!1,n;try{n=e()}catch(r){throw St(this,Cn)[Cn]-=1,r}return{abort:()=>{t||(t=!0,St(this,Cn)[Cn]-=1,n(),St(this,$c)[$c]())},done:()=>{t||(t=!0,St(this,Cn)[Cn]-=1,St(this,$c)[$c]())}}}function Rz(){queueMicrotask(()=>St(this,M2)[M2]())}function jz(){if(St(this,Cn)[Cn]>=this.limit||St(this,un)[un].length===0)return;const e=St(this,un)[un].shift(),t=St(this,Oc)[Oc](e.fn);e.abort=t.abort,e.done=t.done}function Lz(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{St(this,z2)[z2](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=St(this,un)[un].findIndex(i=>n.priority>i.priority);return r===-1?St(this,un)[un].push(n):St(this,un)[un].splice(r,0,n),n}function Mz(e){const t=St(this,un)[un].indexOf(e);t!==-1&&St(this,un)[un].splice(t,1)}var zz={RateLimitedQueue:Nz,internalRateLimitedQueue:Symbol("__queue")};function Hz(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}var NO=Hz,Uz={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}},U6,V6;const{nanoid:Vz}=BO,{Provider:Wz,RequestClient:qz,Socket:Gz}=Sz,{RateLimitedQueue:Kz,internalRateLimitedQueue:l1}=zz;function W6(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})),NO(e)?(n=new X$(n,e),n):(n.request=e,n)}function q6(e){return e.data.slice(0,e.data.size,e.meta.type)}var Yz=(V6=U6=class extends K${constructor(t,n){super(t,n),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Uz;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 NO(o)&&(a=new X$(a,o)),a},validateStatus(i){return i>=200&&i<300}};if(this.opts={...r,...n},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),l1 in this.opts?this.requests=this.opts[l1]:this.requests=new Kz(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={...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=q6(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=q6(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 z6(this.uppy);const l=new H6(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=Vz();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),v=W6(s,i.getResponseError(s.responseText,s)),m={status:d.target.status,body:p};return this.uppy.emit("upload-error",t,v,m),a(v)}),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=W6(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?Wz:qz;new u(this.uppy,t.remote.providerOptions).post(t.remote.url,{...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=Oz(t.remote.companionUrl),d=new Gz({target:`${f}/api/${c}`,autoOpen:!1});this.uploaderEvents[t.id]=new z6(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",v=>Az(this,v,t)),d.on("success",v=>{const m=n.getResponseData(v.response.responseText,v.response),g=m[n.responseUrlFieldName],y={status:v.response.status,body:m,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",v=>{const m=v.response,g=m?n.getResponseError(m.responseText,m):Object.assign(new Error(v.error.message),{cause:v.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,{...this.opts,...a||{}}),s=new XMLHttpRequest,l=new H6(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),v={status:f.target.status,body:p};return t.forEach(m=>{this.uppy.emit("upload-success",m,v)}),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 Bz(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[l1]&&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:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},U6.VERSION="2.0.6",V6),G6=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function qf(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bi,Lp,Hd=function(e){return e&&e.Math==Math&&e},W=Hd(typeof globalThis=="object"&&globalThis)||Hd(typeof window=="object"&&window)||Hd(typeof self=="object"&&self)||Hd(typeof G6=="object"&&G6)||function(){return this}()||Function("return this")(),Xz=Object.defineProperty,Z$=function(e,t){try{Xz(W,e,{value:t,configurable:!0,writable:!0})}catch{W[e]=t}return t},to=W["__core-js_shared__"]||Z$("__core-js_shared__",{}),Q$=qf(function(e){(e.exports=function(t,n){return to[t]||(to[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),IO=Function.prototype,H2=IO.bind,U2=IO.call,Jz=H2&&H2.bind(U2),re=H2?function(e){return e&&Jz(U2,e)}:function(e){return e&&function(){return U2.apply(e,arguments)}},Zz=W.TypeError,Zn=function(e){if(e==null)throw Zz("Can't call method on "+e);return e},Qz=W.Object,To=function(e){return Qz(Zn(e))},eH=re({}.hasOwnProperty),mt=Object.hasOwn||function(e,t){return eH(To(e),t)},tH=0,nH=Math.random(),rH=re(1 .toString),ew=function(e){return"Symbol("+(e===void 0?"":e)+")_"+rH(++tH+nH,36)},Ue=function(e){return typeof e=="function"},iH=function(e){return Ue(e)?e:void 0},Xa=function(e,t){return arguments.length<2?iH(W[e]):W[e]&&W[e][t]},Ju=Xa("navigator","userAgent")||"",K6=W.process,Y6=W.Deno,X6=K6&&K6.versions||Y6&&Y6.version,J6=X6&&X6.v8;J6&&(Lp=(Bi=J6.split("."))[0]>0&&Bi[0]<4?1:+(Bi[0]+Bi[1])),!Lp&&Ju&&(!(Bi=Ju.match(/Edge\/(\d+)/))||Bi[1]>=74)&&(Bi=Ju.match(/Chrome\/(\d+)/))&&(Lp=+Bi[1]);var Qc=Lp,je=function(e){try{return!!e()}catch{return!0}},V2=!!Object.getOwnPropertySymbols&&!je(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qc&&Qc<41}),tw=V2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$l=Q$("wks"),ha=W.Symbol,Z6=ha&&ha.for,oH=tw?ha:ha&&ha.withoutSetter||ew,st=function(e){if(!mt($l,e)||!V2&&typeof $l[e]!="string"){var t="Symbol."+e;V2&&mt(ha,e)?$l[e]=ha[e]:$l[e]=tw&&Z6?Z6(t):oH(t)}return $l[e]},RO={};RO[st("toStringTag")]="z";var nw=String(RO)==="[object z]",It=!je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ye=function(e){return typeof e=="object"?e!==null:Ue(e)},W2=W.document,aH=Ye(W2)&&Ye(W2.createElement),ef=function(e){return aH?W2.createElement(e):{}},jO=!It&&!je(function(){return Object.defineProperty(ef("div"),"a",{get:function(){return 7}}).a!=7}),uH=W.String,sH=W.TypeError,yt=function(e){if(Ye(e))return e;throw sH(uH(e)+" is not an object")},wl=Function.prototype.call,Be=wl.bind?wl.bind(wl):function(){return wl.apply(wl,arguments)},Na=re({}.isPrototypeOf),lH=W.Object,q2=tw?function(e){return typeof e=="symbol"}:function(e){var t=Xa("Symbol");return Ue(t)&&Na(t.prototype,lH(e))},cH=W.String,i0=function(e){try{return cH(e)}catch{return"Object"}},fH=W.TypeError,wo=function(e){if(Ue(e))return e;throw fH(i0(e)+" is not a function")},Ia=function(e,t){var n=e[t];return n==null?void 0:wo(n)},dH=W.TypeError,pH=W.TypeError,hH=st("toPrimitive"),gH=function(e,t){if(!Ye(e)||q2(e))return e;var n,r=Ia(e,hH);if(r){if(t===void 0&&(t="default"),n=Be(r,e,t),!Ye(n)||q2(n))return n;throw pH("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)&&!Ye(u=Be(a,i))||Ue(a=i.valueOf)&&!Ye(u=Be(a,i))||o!=="string"&&Ue(a=i.toString)&&!Ye(u=Be(a,i)))return u;throw dH("Can't convert object to primitive value")}(e,t)},rw=function(e){var t=gH(e,"string");return q2(t)?t:t+""},vH=W.TypeError,Q6=Object.defineProperty,mr={f:It?Q6:function(e,t,n){if(yt(e),t=rw(t),yt(n),jO)try{return Q6(e,t,n)}catch{}if("get"in n||"set"in n)throw vH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},o0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cr=It?function(e,t,n){return mr.f(e,t,o0(1,n))}:function(e,t,n){return e[t]=n,e},mH=re(Function.toString);Ue(to.inspectSource)||(to.inspectSource=function(e){return mH(e)});var Ch,Bc,Dh,a0=to.inspectSource,e8=W.WeakMap,LO=Ue(e8)&&/native code/.test(a0(e8)),t8=Q$("keys"),iw=function(e){return t8[e]||(t8[e]=ew(e))},u0={},G2=W.TypeError,yH=W.WeakMap;if(LO||to.state){var Wo=to.state||(to.state=new yH),bH=re(Wo.get),n8=re(Wo.has),$H=re(Wo.set);Ch=function(e,t){if(n8(Wo,e))throw new G2("Object already initialized");return t.facade=e,$H(Wo,e,t),t},Bc=function(e){return bH(Wo,e)||{}},Dh=function(e){return n8(Wo,e)}}else{var pu=iw("state");u0[pu]=!0,Ch=function(e,t){if(mt(e,pu))throw new G2("Object already initialized");return t.facade=e,cr(e,pu,t),t},Bc=function(e){return mt(e,pu)?e[pu]:{}},Dh=function(e){return mt(e,pu)}}var rn={set:Ch,get:Bc,has:Dh,enforce:function(e){return Dh(e)?Bc(e):Ch(e,{})},getterFor:function(e){return function(t){var n;if(!Ye(t)||(n=Bc(t)).type!==e)throw G2("Incompatible receiver, "+e+" required");return n}}},MO=Function.prototype,wH=It&&Object.getOwnPropertyDescriptor,c1=mt(MO,"name"),Is={EXISTS:c1,PROPER:c1&&function(){}.name==="something",CONFIGURABLE:c1&&(!It||It&&wH(MO,"name").configurable)},gn=qf(function(e){var t=Is.CONFIGURABLE,n=rn.get,r=rn.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")+"]"),(!mt(u,"name")||t&&u.name!==p)&&cr(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==W?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:cr(o,a,u)):f?o[a]=u:Z$(a,u)})(Function.prototype,"toString",function(){return Ue(this)&&n(this).source||a0(this)})}),EH=re({}.toString),CH=re("".slice),fr=function(e){return CH(EH(e),8,-1)},DH=st("toStringTag"),SH=W.Object,xH=fr(function(){return arguments}())=="Arguments",s0=nw?fr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=SH(e),DH))=="string"?n:xH?fr(t):(r=fr(t))=="Object"&&Ue(t.callee)?"Arguments":r},AH=nw?{}.toString:function(){return"[object "+s0(this)+"]"};nw||gn(Object.prototype,"toString",AH,{unsafe:!0});var Sh={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},f1=ef("span").classList,r8=f1&&f1.constructor&&f1.constructor.prototype,zO=r8===Object.prototype?void 0:r8,i8=re(re.bind),Ra=function(e,t){return wo(e),t===void 0?e:i8?i8(e,t):function(){return e.apply(t,arguments)}},d1=W.Object,OH=re("".split),l0=je(function(){return!d1("z").propertyIsEnumerable(0)})?function(e){return fr(e)=="String"?OH(e,""):d1(e)}:d1,BH=Math.ceil,FH=Math.floor,Gf=function(e){var t=+e;return t!=t||t===0?0:(t>0?FH:BH)(t)},TH=Math.min,Rs=function(e){return e>0?TH(Gf(e),9007199254740991):0},Ja=function(e){return Rs(e.length)},xh=Array.isArray||function(e){return fr(e)=="Array"},HO=function(){},kH=[],UO=Xa("Reflect","construct"),ow=/^\s*(?:class|function)\b/,_H=re(ow.exec),PH=!ow.exec(HO),El=function(e){if(!Ue(e))return!1;try{return UO(HO,kH,e),!0}catch{return!1}},c0=!UO||je(function(){var e;return El(El.call)||!El(Object)||!El(function(){e=!0})||e})?function(e){if(!Ue(e))return!1;switch(s0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return PH||!!_H(ow,a0(e))}:El,NH=st("species"),o8=W.Array,VO=function(e,t){return new(function(n){var r;return xh(n)&&(r=n.constructor,(c0(r)&&(r===o8||xh(r.prototype))||Ye(r)&&(r=r[NH])===null)&&(r=void 0)),r===void 0?o8:r}(e))(t===0?0:t)},a8=re([].push),Fi=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,v=To(s),m=l0(v),g=Ra(l,c),y=Ja(m),h=0,$=f||VO,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:a8(w,d)}else switch(e){case 4:return!1;case 7:a8(w,d)}return o?-1:r||i?i:w}},js={forEach:Fi(0),map:Fi(1),filter:Fi(2),some:Fi(3),every:Fi(4),find:Fi(5),findIndex:Fi(6),filterReject:Fi(7)},WO=function(e,t){var n=[][e];return!!n&&je(function(){n.call(null,t||function(){throw 1},1)})},IH=js.forEach,p1=WO("forEach")?[].forEach:function(e){return IH(this,e,arguments.length>1?arguments[1]:void 0)},qO=function(e){if(e&&e.forEach!==p1)try{cr(e,"forEach",p1)}catch{e.forEach=p1}};for(var h1 in Sh)Sh[h1]&&qO(W[h1]&&W[h1].prototype);qO(zO);var u8={}.propertyIsEnumerable,s8=Object.getOwnPropertyDescriptor,RH=s8&&!u8.call({1:2},1)?function(e){var t=s8(this,e);return!!t&&t.enumerable}:u8,GO={f:RH},ko=function(e){return l0(Zn(e))},l8=Object.getOwnPropertyDescriptor,Kf={f:It?l8:function(e,t){if(e=ko(e),t=rw(t),jO)try{return l8(e,t)}catch{}if(mt(e,t))return o0(!Be(GO.f,e,t),e[t])}},jH=Math.max,LH=Math.min,$s=function(e,t){var n=Gf(e);return n<0?jH(n+t,0):LH(n,t)},c8=function(e){return function(t,n,r){var i,o=ko(t),a=Ja(o),u=$s(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}},KO={includes:c8(!0),indexOf:c8(!1)},MH=KO.indexOf,f8=re([].push),YO=function(e,t){var n,r=ko(e),i=0,o=[];for(n in r)!mt(u0,n)&&mt(r,n)&&f8(o,n);for(;t.length>i;)mt(r,n=t[i++])&&(~MH(o,n)||f8(o,n));return o},Ah=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zH=Ah.concat("length","prototype"),tf={f:Object.getOwnPropertyNames||function(e){return YO(e,zH)}},XO={f:Object.getOwnPropertySymbols},HH=re([].concat),UH=Xa("Reflect","ownKeys")||function(e){var t=tf.f(yt(e)),n=XO.f;return n?HH(t,n(e)):t},VH=function(e,t){for(var n=UH(t),r=mr.f,i=Kf.f,o=0;o<n.length;o++){var a=n[o];mt(e,a)||r(e,a,i(t,a))}},WH=/#|\.prototype\./,Yf=function(e,t){var n=GH[qH(e)];return n==YH||n!=KH&&(Ue(t)?je(t):!!t)},qH=Yf.normalize=function(e){return String(e).replace(WH,".").toLowerCase()},GH=Yf.data={},KH=Yf.NATIVE="N",YH=Yf.POLYFILL="P",nf=Yf,XH=Kf.f,at=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?W:l?W[u]||Z$(u,{}):(W[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=XH(n,r))&&a.value:n[r],!nf(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;VH(o,i)}(e.sham||i&&i.sham)&&cr(o,"sham",!0),gn(n,r,o,e)}},Zu=Object.keys||function(e){return YO(e,Ah)},JH=je(function(){Zu(1)});/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function d8(e){return Object.prototype.toString.call(e)==="[object Object]"}at({target:"Object",stat:!0,forced:JH},{keys:function(e){return Zu(To(e))}});var ZH={isHistory(e){return d8(t=e)!==!1&&((n=t.constructor)===void 0||d8(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Ji.isOperationList(e.redos[0]))&&(e.undos.length===0||Ji.isOperationList(e.undos[0]));var t,n,r}},g1=new WeakMap,v1=new WeakMap,qu={isHistoryEditor:e=>ZH.isHistory(e.history)&&E.isEditor(e),isMerging:e=>v1.get(e),isSaving:e=>g1.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=qu.isMerging(e);v1.set(e,!1),t(),v1.set(e,n)},withoutSaving(e,t){var n=qu.isSaving(e);g1.set(e,!1),t(),g1.set(e,n)}},QH=(e,t)=>e.type==="set_selection"||!(!t||e.type!=="insert_text"||t.type!=="insert_text"||e.offset!==t.offset+t.text.length||!_.equals(e.path,t.path))||!(!t||e.type!=="remove_text"||t.type!=="remove_text"||e.offset+e.text.length!==t.offset||!_.equals(e.path,t.path)),eU=(e,t)=>e.type!=="set_selection"||e.properties!=null&&e.newProperties!=null,tU=(e,t)=>!(!t||e.type!=="set_selection"||t.type!=="set_selection"),nU=e=>e.type!=="set_selection",rU=W.String,Ge=function(e){if(s0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return rU(e)},aw=function(){var e=yt(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},iU=Is.PROPER,K2=RegExp.prototype,JO=K2.toString,oU=re(aw),aU=je(function(){return JO.call({source:"a",flags:"b"})!="/a/b"}),uU=iU&&JO.name!="toString";(aU||uU)&&gn(RegExp.prototype,"toString",function(){var e=yt(this),t=Ge(e.source),n=e.flags;return"/"+t+"/"+Ge(n===void 0&&Na(K2,e)&&!("flags"in K2)?oU(e):n)},{unsafe:!0});var Ud,sU=It?Object.defineProperties:function(e,t){yt(e);for(var n,r=ko(t),i=Zu(t),o=i.length,a=0;o>a;)mr.f(e,n=i[a++],r[n]);return e},Y2=Xa("document","documentElement"),ZO=iw("IE_PROTO"),m1=function(){},QO=function(e){return"<script>"+e+"<\/script>"},p8=function(e){e.write(QO("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mp=function(){try{Ud=new ActiveXObject("htmlfile")}catch{}var e,t;Mp=typeof document!="undefined"?document.domain&&Ud?p8(Ud):((t=ef("iframe")).style.display="none",Y2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(QO("document.F=Object")),e.close(),e.F):p8(Ud);for(var n=Ah.length;n--;)delete Mp.prototype[Ah[n]];return Mp()};u0[ZO]=!0;var f0=Object.create||function(e,t){var n;return e!==null?(m1.prototype=yt(e),n=new m1,m1.prototype=null,n[ZO]=e):n=Mp(),t===void 0?n:sU(n,t)},X2=st("unscopables"),J2=Array.prototype;J2[X2]==null&&mr.f(J2,X2,{configurable:!0,value:f0(null)});var Fc=function(e){J2[X2][e]=!0},lU=KO.includes;at({target:"Array",proto:!0},{includes:function(e){return lU(this,e,arguments.length>1?arguments[1]:void 0)}}),Fc("includes");var cU=st("match"),uw=function(e){var t;return Ye(e)&&((t=e[cU])!==void 0?!!t:fr(e)=="RegExp")},fU=W.TypeError,sw=function(e){if(uw(e))throw fU("The method doesn't accept regular expressions");return e},dU=st("match"),lw=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[dU]=!1,"/./"[e](t)}catch{}}return!1},pU=re("".indexOf);at({target:"String",proto:!0,forced:!lw("includes")},{includes:function(e){return!!~pU(Ge(Zn(this)),Ge(sw(e)),arguments.length>1?arguments[1]:void 0)}});var h8,hU=/"/g,gU=re("".replace);at({target:"String",proto:!0,forced:(h8="anchor",je(function(){var e=""[h8]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=Ge(Zn(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+gU(Ge(r),hU,""")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var Z2=function(e,t,n){var r,i;yt(e);try{if(!(r=Ia(e,"return"))){if(t==="throw")throw n;return n}r=Be(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return yt(r),n},vU=function(e,t,n,r){try{return r?t(yt(n)[0],n[1]):t(n)}catch(i){Z2(e,"throw",i)}},ws={},mU=st("iterator"),yU=Array.prototype,eB=function(e){return e!==void 0&&(ws.Array===e||yU[mU]===e)},rf=function(e,t,n){var r=rw(t);r in e?mr.f(e,r,o0(0,n)):e[r]=n},bU=st("iterator"),cw=function(e){if(e!=null)return Ia(e,bU)||Ia(e,"@@iterator")||ws[s0(e)]},$U=W.TypeError,tB=function(e,t){var n=arguments.length<2?cw(e):t;if(wo(n))return yt(Be(n,e));throw $U(i0(e)+" is not iterable")},g8=W.Array,nB=st("iterator"),rB=!1;try{var wU=0,v8={next:function(){return{done:!!wU++}},return:function(){rB=!0}};v8[nB]=function(){return this},Array.from(v8,function(){throw 2})}catch{}var fw=function(e,t){if(!t&&!rB)return!1;var n=!1;try{var r={};r[nB]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},EU=!fw(function(e){Array.from(e)});at({target:"Array",stat:!0,forced:EU},{from:function(e){var t=To(e),n=c0(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=i!==void 0;o&&(i=Ra(i,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=cw(t),p=0;if(!d||this==g8&&eB(d))for(a=Ja(t),u=n?new this(a):g8(a);a>p;p++)f=o?i(t[p],p):t[p],rf(u,p,f);else for(c=(l=tB(t,d)).next,u=n?new this:[];!(s=Be(c,l)).done;p++)f=o?vU(l,i,[s.value,p],!0):s.value,rf(u,p,f);return u.length=p,u}});var ga,m8,y8,CU=re("".charAt),b8=re("".charCodeAt),DU=re("".slice),$8=function(e){return function(t,n){var r,i,o=Ge(Zn(t)),a=Gf(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=b8(o,a))<55296||r>56319||a+1===u||(i=b8(o,a+1))<56320||i>57343?e?CU(o,a):r:e?DU(o,a,a+2):i-56320+(r-55296<<10)+65536}},iB={codeAt:$8(!1),charAt:$8(!0)},SU=!je(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),w8=iw("IE_PROTO"),Q2=W.Object,xU=Q2.prototype,Oh=SU?Q2.getPrototypeOf:function(e){var t=To(e);if(mt(t,w8))return t[w8];var n=t.constructor;return Ue(n)&&t instanceof n?n.prototype:t instanceof Q2?xU:null},eb=st("iterator"),oB=!1;[].keys&&("next"in(y8=[].keys())?(m8=Oh(Oh(y8)))!==Object.prototype&&(ga=m8):oB=!0);var AU=ga==null||je(function(){var e={};return ga[eb].call(e)!==e});AU&&(ga={}),Ue(ga[eb])||gn(ga,eb,function(){return this});var dw={IteratorPrototype:ga,BUGGY_SAFARI_ITERATORS:oB},OU=mr.f,E8=st("toStringTag"),Bh=function(e,t,n){e&&!mt(e=n?e:e.prototype,E8)&&OU(e,E8,{configurable:!0,value:t})},BU=dw.IteratorPrototype,FU=function(){return this},TU=W.String,kU=W.TypeError,Es=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=re(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return yt(r),function(o){if(typeof o=="object"||Ue(o))return o;throw kU("Can't set "+TU(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),_U=Is.PROPER,PU=Is.CONFIGURABLE,C8=dw.IteratorPrototype,Vd=dw.BUGGY_SAFARI_ITERATORS,Cl=st("iterator"),NU=function(){return this},pw=function(e,t,n,r,i,o,a){(function(y,h,$,w){var C=h+" Iterator";y.prototype=f0(BU,{next:o0(+!w,$)}),Bh(y,C,!1),ws[C]=FU})(n,t,r);var u,s,l,c=function(y){if(y===i&&m)return m;if(!Vd&&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,v=p[Cl]||p["@@iterator"]||i&&p[i],m=!Vd&&v||c(i),g=t=="Array"&&p.entries||v;if(g&&(u=Oh(g.call(new e)))!==Object.prototype&&u.next&&(Oh(u)!==C8&&(Es?Es(u,C8):Ue(u[Cl])||gn(u,Cl,NU)),Bh(u,f,!0)),_U&&i=="values"&&v&&v.name!=="values"&&(PU?cr(p,"name","values"):(d=!0,m=function(){return Be(v,this)})),i)if(s={values:c("values"),keys:o?m:c("keys"),entries:c("entries")},a)for(l in s)(Vd||d||!(l in p))&&gn(p,l,s[l]);else at({target:t,proto:!0,forced:Vd||d},s);return p[Cl]!==m&&gn(p,Cl,m,{name:i}),ws[t]=m,s},IU=iB.charAt,RU=rn.set,jU=rn.getterFor("String Iterator");pw(String,"String",function(e){RU(this,{type:"String Iterator",string:Ge(e),index:0})},function(){var e,t=jU(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=IU(n,r),t.index+=e.length,{value:e,done:!1})});var y1,LU=Kf.f,D8=re("".endsWith),MU=re("".slice),zU=Math.min,aB=lw("endsWith"),HU=!(aB||(y1=LU(String.prototype,"endsWith"),!y1||y1.writable));at({target:"String",proto:!0,forced:!HU&&!aB},{endsWith:function(e){var t=Ge(Zn(this));sw(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:zU(Rs(n),r),o=Ge(e);return D8?D8(t,o,i):MU(t,i-o.length,i)===o}});var UU=re([].join),VU=l0!=Object,WU=WO("join",",");at({target:"Array",proto:!0,forced:VU||!WU},{join:function(e){return UU(ko(this),e===void 0?",":e)}});var qU=st("species"),d0=function(e){return Qc>=51||!je(function(){var t=[];return(t.constructor={})[qU]=function(){return{foo:1}},t[e](Boolean).foo!==1})},GU=js.map,KU=d0("map");at({target:"Array",proto:!0,forced:!KU},{map:function(e){return GU(this,e,arguments.length>1?arguments[1]:void 0)}});var hw=W.RegExp,tb=je(function(){var e=hw("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),YU=tb||je(function(){return!hw("a","y").sticky}),p0={BROKEN_CARET:tb||je(function(){var e=hw("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:YU,UNSUPPORTED_Y:tb},XU=W.RegExp,gw=je(function(){var e=XU(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),JU=W.RegExp,vw=je(function(){var e=JU("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ZU=rn.get,QU=Q$("native-string-replace",String.prototype.replace),Fh=RegExp.prototype.exec,nb=Fh,eV=re("".charAt),tV=re("".indexOf),nV=re("".replace),b1=re("".slice),$1=function(){var e=/a/,t=/b*/g;return Be(Fh,e,"a"),Be(Fh,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),S8=p0.BROKEN_CARET,w1=/()??/.exec("")[1]!==void 0;($1||w1||S8||gw||vw)&&(nb=function(e){var t,n,r,i,o,a,u,s=this,l=ZU(s),c=Ge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Be(nb,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=S8&&s.sticky,v=Be(aw,s),m=s.source,g=0,y=c;if(p&&(v=nV(v,"y",""),tV(v,"g")===-1&&(v+="g"),y=b1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&eV(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),w1&&(n=new RegExp("^"+m+"$(?!\\s)",v)),$1&&(r=s.lastIndex),i=Be(Fh,p?n:s,y),p?i?(i.input=b1(i.input,g),i[0]=b1(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:$1&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),w1&&i&&i.length>1&&Be(QU,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=f0(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var of=nb;at({target:"RegExp",proto:!0,forced:/./.exec!==of},{exec:of});var mw=Function.prototype,x8=mw.apply,rV=mw.bind,A8=mw.call,yw=typeof Reflect=="object"&&Reflect.apply||(rV?A8.bind(x8):function(){return A8.apply(x8,arguments)}),iV=st("species"),E1=RegExp.prototype,bw=function(e,t,n,r){var i=st(e),o=!je(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!je(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[iV]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=re(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=re(l),m=c.exec;return m===of||m===E1.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});gn(String.prototype,e,s[0]),gn(E1,i,s[1])}r&&cr(E1[i],"sham",!0)},oV=iB.charAt,$w=function(e,t,n){return t+(n?oV(e,t).length:1)},aV=Math.floor,C1=re("".charAt),uV=re("".replace),D1=re("".slice),sV=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lV=/\$([$&'`]|\d{1,2})/g,cV=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=lV;return i!==void 0&&(i=To(i),s=sV),uV(o,s,function(l,c){var f;switch(C1(c,0)){case"$":return"$";case"&":return e;case"`":return D1(t,0,n);case"'":return D1(t,a);case"<":f=i[D1(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=aV(d/10);return p===0?l:p<=u?r[p-1]===void 0?C1(c,1):r[p-1]+C1(c,1):l}f=r[d-1]}return f===void 0?"":f})},fV=W.TypeError,af=function(e,t){var n=e.exec;if(Ue(n)){var r=Be(n,e,t);return r!==null&&yt(r),r}if(fr(e)==="RegExp")return Be(of,e,t);throw fV("RegExp#exec called on incompatible receiver")},rb=st("replace"),dV=Math.max,pV=Math.min,hV=re([].concat),S1=re([].push),O8=re("".indexOf),B8=re("".slice),gV="a".replace(/./,"$0")==="$0",F8=!!/./[rb]&&/./[rb]("a","$0")==="";bw("replace",function(e,t,n){var r=F8?"$":"$0";return[function(i,o){var a=Zn(this),u=i==null?void 0:Ia(i,rb);return u?Be(u,i,a,o):Be(t,Ge(a),i,o)},function(i,o){var a=yt(this),u=Ge(i);if(typeof o=="string"&&O8(o,r)===-1&&O8(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Ue(o);l||(o=Ge(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=af(a,u);if(p===null||(S1(d,p),!c))break;Ge(p[0])===""&&(a.lastIndex=$w(u,Rs(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Ge((p=d[y])[0]),$=dV(pV(Gf(p.index),u.length),0),w=[],C=1;C<p.length;C++)S1(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=hV([h],w,$,u);D!==void 0&&S1(A,D);var N=Ge(yw(o,void 0,A))}else N=cV(h,u,$,w,D,o);$>=g&&(m+=B8(u,g,$)+N,g=$+h.length)}return m+B8(u,g)}]},!!je(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!gV||F8);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var ib=function(e,t){return ib=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])},ib(e,t)};function Ls(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}ib(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Gn=function(){return Gn=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},Gn.apply(this,arguments)};function Un(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 Oe(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 ob(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var vV=0,T8=function(){this.id=""+vV++},mV=rn.set,yV=rn.getterFor("Array Iterator"),wc=pw(Array,"Array",function(e,t){mV(this,{type:"Array Iterator",target:ko(e),index:0,kind:t})},function(){var e=yV(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");ws.Arguments=ws.Array,Fc("keys"),Fc("values"),Fc("entries");var Cs=function(e,t,n){for(var r in t)gn(e,r,t[r],n);return e},bV=W.Array,$V=Math.max,ab=function(e,t,n){for(var r=Ja(e),i=$s(t,r),o=$s(n===void 0?r:n,r),a=bV($V(o-i,0)),u=0;i<o;i++,u++)rf(a,u,e[i]);return a.length=u,a},k8=tf.f,_8=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wV={f:function(e){return _8&&fr(e)=="Window"?function(t){try{return k8(t)}catch{return ab(_8)}}(e):k8(ko(e))}},P8=je(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Wd=Object.isExtensible,fa=je(function(){Wd(1)})||P8?function(e){return!!Ye(e)&&(!P8||fr(e)!="ArrayBuffer")&&(!Wd||Wd(e))}:Wd,EV=!je(function(){return Object.isExtensible(Object.preventExtensions({}))}),h0=qf(function(e){var t=mr.f,n=!1,r=ew("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=tf.f,s=re([].splice),l={};l[r]=1,u(l).length&&(tf.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},at({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wV.f}))},fastKey:function(u,s){if(!Ye(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!mt(u,r)){if(!fa(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!mt(u,r)){if(!fa(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return EV&&n&&fa(u)&&!mt(u,r)&&o(u),u}};u0[r]=!0}),CV=W.TypeError,zp=function(e,t){this.stopped=e,this.result=t},N8=zp.prototype,uf=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),v=Ra(t,c),m=function(y){return r&&Z2(r,"normal",y),new zp(!0,y)},g=function(y){return f?(yt(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)r=e;else{if(!(i=cw(e)))throw CV(i0(e)+" is not iterable");if(eB(i)){for(o=0,a=Ja(e);a>o;o++)if((u=g(e[o]))&&Na(N8,u))return u;return new zp(!1)}r=tB(e,i)}for(s=r.next;!(l=Be(s,r)).done;){try{u=g(l.value)}catch(y){Z2(r,"throw",y)}if(typeof u=="object"&&u&&Na(N8,u))return u}return new zp(!1)},DV=W.TypeError,g0=function(e,t){if(Na(t,e))return e;throw DV("Incorrect invocation")},uB=function(e,t,n){var r,i;return Es&&Ue(r=t.constructor)&&r!==n&&Ye(i=r.prototype)&&i!==n.prototype&&Es(e,i),e},sB=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=W[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=re(u[g]);gn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Ye(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Ye(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Ye(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(nf(e,!Ue(a)||!(i||u.forEach&&!je(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),h0.enable();else if(nf(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=je(function(){f.has(1)}),v=fw(function(g){new a(g)}),m=!i&&je(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});v||((s=t(function(g,y){g0(g,u);var h=uB(new a,g,s);return y!=null&&uf(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,at({global:!0,forced:s!=a},l),Bh(s,e),i||n.setStrong(s,e,r),s},qd=h0.getWeakData,SV=rn.set,xV=rn.getterFor,AV=js.find,OV=js.findIndex,BV=re([].splice),FV=0,Gd=function(e){return e.frozen||(e.frozen=new lB)},lB=function(){this.entries=[]},x1=function(e,t){return AV(e.entries,function(n){return n[0]===t})};lB.prototype={get:function(e){var t=x1(this,e);if(t)return t[1]},has:function(e){return!!x1(this,e)},set:function(e,t){var n=x1(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=OV(this.entries,function(n){return n[0]===e});return~t&&BV(this.entries,t,1),!!~t}};var Dl,cB={getConstructor:function(e,t,n,r){var i=e(function(s,l){g0(s,o),SV(s,{type:t,id:FV++,frozen:void 0}),l!=null&&uf(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=xV(t),u=function(s,l,c){var f=a(s),d=qd(yt(l),!0);return d===!0?Gd(f).set(l,c):d[f.id]=c,s};return Cs(o,{delete:function(s){var l=a(this);if(!Ye(s))return!1;var c=qd(s);return c===!0?Gd(l).delete(s):c&&mt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ye(s))return!1;var c=qd(s);return c===!0?Gd(l).has(s):c&&mt(c,l.id)}}),Cs(o,n?{get:function(s){var l=a(this);if(Ye(s)){var c=qd(s);return c===!0?Gd(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}},Kd=rn.enforce,TV=!W.ActiveXObject&&"ActiveXObject"in W,fB=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},kV=sB("WeakMap",fB,cB);if(LO&&TV){Dl=cB.getConstructor(fB,"WeakMap",!0),h0.enable();var Sl=kV.prototype,I8=re(Sl.delete),Yd=re(Sl.has),R8=re(Sl.get),j8=re(Sl.set);Cs(Sl,{delete:function(e){if(Ye(e)&&!fa(e)){var t=Kd(this);return t.frozen||(t.frozen=new Dl),I8(this,e)||t.frozen.delete(e)}return I8(this,e)},has:function(e){if(Ye(e)&&!fa(e)){var t=Kd(this);return t.frozen||(t.frozen=new Dl),Yd(this,e)||t.frozen.has(e)}return Yd(this,e)},get:function(e){if(Ye(e)&&!fa(e)){var t=Kd(this);return t.frozen||(t.frozen=new Dl),Yd(this,e)?R8(this,e):t.frozen.get(e)}return R8(this,e)},set:function(e,t){if(Ye(e)&&!fa(e)){var n=Kd(this);n.frozen||(n.frozen=new Dl),Yd(this,e)?j8(this,e,t):n.frozen.set(e,t)}else j8(this,e,t);return this}})}var A1=st("iterator"),L8=st("toStringTag"),O1=wc.values,dB=function(e,t){if(e){if(e[A1]!==O1)try{cr(e,A1,O1)}catch{e[A1]=O1}if(e[L8]||cr(e,L8,t),Sh[t]){for(var n in wc)if(e[n]!==wc[n])try{cr(e,n,wc[n])}catch{e[n]=wc[n]}}}};for(var B1 in Sh)dB(W[B1]&&W[B1].prototype,B1);dB(zO,"DOMTokenList");var ub=new WeakMap,sb=new WeakMap,ww=new WeakMap,v0=new WeakMap,lb=new WeakMap,Th=new WeakMap,Ew=new WeakMap,cb=new WeakMap,Hp=new WeakMap,M8=new WeakMap,z8=new WeakMap,H8=new WeakMap,U8=new WeakMap,sf=new WeakMap,Ds=new WeakMap,Cw=new WeakMap,m0=new WeakMap,Dw=new WeakMap,y0=new WeakMap,Up=new WeakMap,pB=new WeakMap,va=new WeakMap,fb=new WeakMap,V8=new WeakMap,F1=new WeakMap,_V=js.find,W8=!0;"find"in[]&&Array(1).find(function(){W8=!1}),at({target:"Array",proto:!0,forced:W8},{find:function(e){return _V(this,e,arguments.length>1?arguments[1]:void 0)}}),Fc("find"),at({global:!0},{globalThis:W});const PV=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];vh&&(O.fn.css=vh),Ur&&(O.fn.append=Ur),cs&&(O.fn.addClass=cs),fs&&(O.fn.removeClass=fs),ds&&(O.fn.hasClass=ds),Hr&&(O.fn.on=Hr),$o&&(O.fn.focus=$o),Mr&&(O.fn.attr=Mr),dh&&(O.fn.removeAttr=dh),hs&&(O.fn.hide=hs),gh&&(O.fn.show=gh),s6&&(O.fn.offset=s6),ph&&(O.fn.width=ph),hh&&(O.fn.height=hh),bh&&(O.fn.parent=bh),$h&&(O.fn.parents=$h),c6&&(O.fn.is=c6),ps&&(O.fn.dataset=ps),zr&&(O.fn.val=zr),yh&&(O.fn.text=yh),bo&&(O.fn.html=bo),vs&&(O.fn.children=vs),ms&&(O.fn.remove=ms),gs&&(O.fn.find=gs),mh&&(O.fn.each=mh),ys&&(O.fn.empty=ys);var no,Sw=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},ir=function(e){return ja(e)&&e.nodeType===1},ja=function(e){var t=Sw(e);return!!t&&e instanceof t.Node},q8=function(e){var t=e&&e.anchorNode&&Sw(e.anchorNode);return!!t&&e instanceof t.Selection},hB=function(e){return ja(e)&&e.nodeType===3},xw=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},gB=function(e,t,n){for(var r,i=e.childNodes,o=i[t],a=t,u=!1,s=!1;(ja(r=o)&&r.nodeType===8||ir(o)&&o.childNodes.length===0||ir(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]},NV=function(e,t,n){return Oe(gB(e,t,n),1)[0]},IV=function e(t){var n,r,i="";if(hB(t)&&t.nodeValue)return t.nodeValue;if(ir(t)){try{for(var o=Un(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+=`
- `)}return i};function vB(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||vB(i,t)}}function G8(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==no.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"})(no||(no={})),globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var db=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Tc=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 xl=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),RV=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),jV=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),pb=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var Al=!jV&&!RV&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",x={getWindow:function(e){var t=pB.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=Up.get(t);return n||(n=new T8,Up.set(t,n)),n},setNewKey:function(e){var t=new T8;Up.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=Ds.get(r);if(i==null){if(E.isEditor(r))return n;break}var o=sf.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=x.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Ds.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=x.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[x.findPath(e,t)[0]];return q.get(e,n)},toDOMNode:function(e,t){var n;if(E.isEditor(t))n=Cw.get(e);else{var r=x.findKey(e,t);n=Dw.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=x.toDOMNode(e,e);try{r=ir(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=R.isBackward(t),o=x.toDOMPoint(e,n),a=R.isCollapsed(t)?o:x.toDOMPoint(e,r),u=x.getWindow(e).document.createRange(),s=Oe(i?a:o,2),l=s[0],c=s[1],f=Oe(i?o:a,2),d=f[0],p=f[1],v=!!(ir(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),m=!!(ir(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,m?1:p),u},toDOMPoint:function(e,t){var n,r,i,o=Oe(E.node(e,t.path),1)[0],a=x.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=Un(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,v=f.getAttribute("data-slate-length"),m=s+(v==null?p:parseInt(v,10));if(t.offset<=m){i=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=m}}}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=ir(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?m0.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=x.toSlateNode(e,t.target),u=x.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 x.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((q8(t)?t.anchorNode:t.startContainer)&&(q8(t)?(r=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,u=pb&&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=x.toSlatePoint(e,[r,i],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:x.toSlatePoint(e,[o,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return R.isExpanded(d)&&R.isForward(d)&&ir(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=Oe(i?t:function(h){var $,w=Oe(h,2),C=w[0],D=w[1];if(ir(C)&&C.childNodes.length){var A=D===C.childNodes.length,N=A?D-1:D;for(C=($=Oe(gB(C,N,A?"backward":"forward"),2))[0],A=(N=$[1])<D;ir(C)&&C.childNodes.length;){var M=A?C.childNodes.length-1:0;C=NV(C,M,A?"backward":"forward")}D=A&&C.textContent!=null?C.textContent.length:0}return[C,D]}(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]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var m=x.getWindow(e).document.createRange();m.setStart(c,0),m.setEnd(u,s);var g=m.cloneContents();ob(ob([],Oe(o6(g.querySelectorAll("[data-slate-zero-width]")))),Oe(o6(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Tc&&((r=v.textContent)===null||r===void 0?void 0:r.endsWith(`
- `)))&&f--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=x.toSlateNode(e,c);return{path:x.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 te.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=Un(i),a=o.next();!a.done;a=o.next()){var u=Oe(a.value,1)[0];te.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=Oe(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=Oe(E.nodes(e,{match:function(r){return X.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Oe(E.nodes(e,{match:function(i){return i===t},universal:!0}),1),r=n[0];return r!=null&&Oe(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=ub.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return v0.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=x.getTextarea(e).$textArea,a=o==null?void 0:o[0].childNodes;if(a)try{for(var u=Un(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(m){t={error:m}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=E.nodes(e,{match:function(m){return!(!te.isElement(m)||e.isInline(m))},universal:!0});try{for(var f=Un(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];vB(x.toDOMNode(e,v),function(m,g){var y=O(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||g.removeChild(m)})}}}catch(m){r={error:m}}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=Un(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||R.isExpanded(t))return!1;var n=x.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=Oe(n,1)[0].children;return r.length===1&&r[0].text===""}},LV=1,mB={},lf={};function MV(e,t){var n=e.key,r=e.factory,i=e.config,o=Gn(Gn({},i),t||{});if(lf[n]!=null)throw new Error("Duplicated key '"+n+"' in menu items");lf[n]=r,function(a,u){u!=null&&(mB[a]=u)}(n,o)}var K8=st("species"),Aw=function(e){var t=Xa(e),n=mr.f;It&&t&&!t[K8]&&n(t,K8,{configurable:!0,get:function(){return this}})},zV=mr.f,Y8=h0.fastKey,X8=rn.set,T1=rn.getterFor,HV={getConstructor:function(e,t,n,r){var i=e(function(l,c){g0(l,o),X8(l,{type:t,index:f0(null),first:void 0,last:void 0,size:0}),It||(l.size=0),c!=null&&uf(c,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=T1(t),u=function(l,c,f){var d,p,v=a(l),m=s(l,c);return m?m.value=f:(v.last=m={index:p=Y8(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=m),d&&(d.next=m),It?v.size++:l.size++,p!=="F"&&(v.index[p]=m)),l},s=function(l,c){var f,d=a(l),p=Y8(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Cs(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,It?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,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),It?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Ra(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)}}),Cs(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)}}),It&&zV(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=T1(t),o=T1(r);pw(e,t,function(a,u){X8(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),Aw(t)}};sB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},HV);var UV=js.filter,VV=d0("filter");at({target:"Array",proto:!0,forced:!VV},{filter:function(e){return UV(this,e,arguments.length>1?arguments[1]:void 0)}});var hb=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,J8=re("".replace),kh="["+hb+"]",WV=RegExp("^"+kh+kh+"*"),qV=RegExp(kh+kh+"*$"),k1=function(e){return function(t){var n=Ge(Zn(t));return 1&e&&(n=J8(n,WV,"")),2&e&&(n=J8(n,qV,"")),n}},GV={start:k1(1),end:k1(2),trim:k1(3)},KV=Is.PROPER,YV=GV.trim;at({target:"String",proto:!0,forced:function(e){return je(function(){return!!hb[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||KV&&hb[e].name!==e})}("trim")},{trim:function(){return YV(this)}});var Ow=[];function XV(e){Ow.push(e)}var yB={};function JV(e){var t=e.type,n=e.elemToHtml;yB[t||""]=n}function ZV(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function QV(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(c){return _B(c,t)}).join(""));var s=function(c){return yB[c]||ZV}(r),l=s(e,u,t);return a||Ow.forEach(function(c){return l=c(e,l)}),l}var cf,hu,Z8,_1,_h=W.Promise,eW=W.TypeError,tW=st("species"),bB=function(e,t){var n,r=yt(e).constructor;return r===void 0||(n=yt(r)[tW])==null?t:function(i){if(c0(i))return i;throw eW(i0(i)+" is not a constructor")}(n)},$B=re([].slice),wB=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ju),ro=fr(W.process)=="process",gb=W.setImmediate,vb=W.clearImmediate,nW=W.process,P1=W.Dispatch,rW=W.Function,Q8=W.MessageChannel,iW=W.String,N1=0,kc={};try{cf=W.location}catch{}var Bw=function(e){if(mt(kc,e)){var t=kc[e];delete kc[e],t()}},I1=function(e){return function(){Bw(e)}},eC=function(e){Bw(e.data)},tC=function(e){W.postMessage(iW(e),cf.protocol+"//"+cf.host)};gb&&vb||(gb=function(e){var t=$B(arguments,1);return kc[++N1]=function(){yw(Ue(e)?e:rW(e),void 0,t)},hu(N1),N1},vb=function(e){delete kc[e]},ro?hu=function(e){nW.nextTick(I1(e))}:P1&&P1.now?hu=function(e){P1.now(I1(e))}:Q8&&!wB?(_1=(Z8=new Q8).port2,Z8.port1.onmessage=eC,hu=Ra(_1.postMessage,_1)):W.addEventListener&&Ue(W.postMessage)&&!W.importScripts&&cf&&cf.protocol!=="file:"&&!je(tC)?(hu=tC,W.addEventListener("message",eC,!1)):hu="onreadystatechange"in ef("script")?function(e){Y2.appendChild(ef("script")).onreadystatechange=function(){Y2.removeChild(this),Bw(e)}}:function(e){setTimeout(I1(e),0)});var Ol,ua,_c,Mu,R1,j1,L1,nC,EB={set:gb,clear:vb},oW=/ipad|iphone|ipod/i.test(Ju)&&W.Pebble!==void 0,aW=/web0s(?!.*chrome)/i.test(Ju),uW=Kf.f,M1=EB.set,rC=W.MutationObserver||W.WebKitMutationObserver,iC=W.document,oC=W.process,Xd=W.Promise,aC=uW(W,"queueMicrotask"),CB=aC&&aC.value;CB||(Ol=function(){var e,t;for(ro&&(e=oC.domain)&&e.exit();ua;){t=ua.fn,ua=ua.next;try{t()}catch(n){throw ua?Mu():_c=void 0,n}}_c=void 0,e&&e.enter()},wB||ro||aW||!rC||!iC?!oW&&Xd&&Xd.resolve?((L1=Xd.resolve(void 0)).constructor=Xd,nC=Ra(L1.then,L1),Mu=function(){nC(Ol)}):ro?Mu=function(){oC.nextTick(Ol)}:(M1=Ra(M1,W),Mu=function(){M1(Ol)}):(R1=!0,j1=iC.createTextNode(""),new rC(Ol).observe(j1,{characterData:!0}),Mu=function(){j1.data=R1=!R1}));var z1,uC,DB,sC,SB=CB||function(e){var t={fn:e,next:void 0};_c&&(_c.next=t),ua||(ua=t,Mu()),_c=t},sW=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)},Fw={f:function(e){return new sW(e)}},mb=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},lW=typeof window=="object",xB=EB.set,cW=st("species"),Or="Promise",lC=rn.getterFor(Or),fW=rn.set,dW=rn.getterFor(Or),na=_h&&_h.prototype,Pr=_h,Bl=na,AB=W.TypeError,yb=W.document,Tw=W.process,Qu=Fw.f,pW=Qu,hW=!!(yb&&yb.createEvent&&W.dispatchEvent),OB=Ue(W.PromiseRejectionEvent),BB=!1,Pc=nf(Or,function(){var e=a0(Pr),t=e!==String(Pr);if(!t&&Qc===66)return!0;if(Qc>=51&&/native code/.test(e))return!1;var n=new Pr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[cW]=r,!(BB=n.then(function(){})instanceof r)||!t&&lW&&!OB}),gW=Pc||!fw(function(e){Pr.all(e).catch(function(){})}),FB=function(e){var t;return!(!Ye(e)||!Ue(t=e.then))&&t},kw=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;SB(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&&mW(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(AB("Promise-chain cycle")):(u=FB(a))?Be(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&vW(e)})}},TB=function(e,t,n){var r,i;hW?((r=yb.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),W.dispatchEvent(r)):r={promise:t,reason:n},!OB&&(i=W["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var u=W.console;u&&u.error&&(arguments.length==1?u.error(o):u.error(o,a))}("Unhandled promise rejection",n)},vW=function(e){Be(xB,W,function(){var t,n=e.facade,r=e.value;if(cC(e)&&(t=mb(function(){ro?Tw.emit("unhandledRejection",r,n):TB("unhandledrejection",n,r)}),e.rejection=ro||cC(e)?2:1,t.error))throw t.value})},cC=function(e){return e.rejection!==1&&!e.parent},mW=function(e){Be(xB,W,function(){var t=e.facade;ro?Tw.emit("rejectionHandled",t):TB("rejectionhandled",t,e.value)})},Gu=function(e,t,n){return function(r){e(t,r,n)}},es=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,kw(e,!0))},bb=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw AB("Promise can't be resolved itself");var r=FB(t);r?SB(function(){var i={done:!1};try{Be(r,t,Gu(bb,i,e),Gu(es,i,e))}catch(o){es(i,o,e)}}):(e.value=t,e.state=1,kw(e,!1))}catch(i){es({done:!1},i,e)}}};if(Pc&&(Bl=(Pr=function(e){g0(this,Bl),wo(e),Be(z1,this);var t=lC(this);try{e(Gu(bb,t),Gu(es,t))}catch(n){es(t,n)}}).prototype,(z1=function(e){fW(this,{type:Or,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Cs(Bl,{then:function(e,t){var n=dW(this),r=n.reactions,i=Qu(bB(this,Pr));return i.ok=!Ue(e)||e,i.fail=Ue(t)&&t,i.domain=ro?Tw.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&kw(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),uC=function(){var e=new z1,t=lC(e);this.promise=e,this.resolve=Gu(bb,t),this.reject=Gu(es,t)},Fw.f=Qu=function(e){return e===Pr||e===DB?new uC(e):pW(e)},Ue(_h)&&na!==Object.prototype)){sC=na.then,BB||(gn(na,"then",function(e,t){var n=this;return new Pr(function(r,i){Be(sC,n,r,i)}).then(e,t)},{unsafe:!0}),gn(na,"catch",Bl.catch,{unsafe:!0}));try{delete na.constructor}catch{}Es&&Es(na,Bl)}at({global:!0,wrap:!0,forced:Pc},{Promise:Pr}),Bh(Pr,Or,!1),Aw(Or),DB=Xa(Or),at({target:Or,stat:!0,forced:Pc},{reject:function(e){var t=Qu(this);return Be(t.reject,void 0,e),t.promise}}),at({target:Or,stat:!0,forced:Pc},{resolve:function(e){return function(t,n){if(yt(t),Ye(n)&&n.constructor===t)return n;var r=Fw.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),at({target:Or,stat:!0,forced:gW},{all:function(e){var t=this,n=Qu(t),r=n.resolve,i=n.reject,o=mb(function(){var a=wo(t.resolve),u=[],s=0,l=1;uf(e,function(c){var f=s++,d=!1;l++,Be(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=Qu(t),r=n.reject,i=mb(function(){var o=wo(t.resolve);uf(e,function(a){Be(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var gu=p0.UNSUPPORTED_Y,yW=Math.min,kB=[].push,bW=re(/./.exec),vu=re(kB),Fl=re("".slice);function Qn(e){Promise.resolve().then(e)}function _B(e,t){return te.isElement(e)?QV(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," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(o);var a=x.getParentsNodes(r,n).some(function(s){return x.getNodeType(s)==="pre"});if(a||(o=o.replace(/\r\n|\r|\n/g,"<br>")),a&&(o=o.replace(/ /g," ")),o===""){var u=x.getParentNode(null,n);if(!u||u.children.length!==0)return o;o="<br>"}return Ow.forEach(function(s){return o=s(n,o)}),o}(e,t)}function PB(e){return"w-e-element-"+e}bw("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=Ge(Zn(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!uw(i))return Be(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,v=new RegExp(i.source,d+"g");(s=Be(of,v,a))&&!((l=v.lastIndex)>p&&(vu(f,Fl(a,p,s.index)),s.length>1&&s.index<a.length&&yw(kB,f,ab(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&bW(v,"")||vu(f,""):vu(f,Fl(a,p)),f.length>u?ab(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Be(t,this,i,o)}:t,[function(i,o){var a=Zn(this),u=i==null?void 0:Ia(i,e);return u?Be(u,i,a,o):Be(r,Ge(a),i,o)},function(i,o){var a=yt(this),u=Ge(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=bB(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(gu?"g":"y"),d=new l(gu?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return af(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=gu?0:m;var y,h=af(d,gu?Fl(u,m):u);if(h===null||(y=yW(Rs(d.lastIndex+(gu?m:0)),u.length))===v)m=$w(u,m,c);else{if(vu(g,Fl(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(vu(g,h[$]),g.length===p)return g;m=v=y}}return vu(g,Fl(u,v)),g}]},!!je(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"}),gu);var fC=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},dC=function(e,t,n){var r=x.toDOMRange(e,t).getBoundingClientRect(),i=x.toDOMRange(e,n).getBoundingClientRect();return fC(r,i)&&fC(i,r)},NB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],IB=[];function $W(e){IB.push(e)}var _w=[];function wW(e){_w.push(e)}var Ph={};function EW(e){var t=e.selector,n=e.parseElemHtml;Ph[t]=n}var CW=mr.f,DW=tf.f,SW=rn.enforce,xW=st("match"),li=W.RegExp,zu=li.prototype,AW=W.SyntaxError,OW=re(aw),BW=re(zu.exec),Jd=re("".charAt),pC=re("".replace),hC=re("".indexOf),FW=re("".slice),TW=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ma=/a/g,H1=/a/g,kW=new li(ma)!==ma,RB=p0.MISSED_STICKY,_W=p0.UNSUPPORTED_Y,PW=It&&(!kW||RB||gw||vw||je(function(){return H1[xW]=!1,li(ma)!=ma||li(H1)==H1||li(ma,"i")!="/a/i"}));if(nf("RegExp",PW)){for(var Ti=function(e,t){var n,r,i,o,a,u,s=Na(zu,this),l=uw(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===Ti)return e;if((l||Na(zu,e))&&(e=e.source,c&&(t="flags"in d?d.flags:OW(d))),e=e===void 0?"":Ge(e),t=t===void 0?"":Ge(t),d=e,gw&&"dotAll"in ma&&(r=!!t&&hC(t,"s")>-1)&&(t=pC(t,/s/g,"")),n=t,RB&&"sticky"in ma&&(i=!!t&&hC(t,"y")>-1)&&_W&&(t=pC(t,/y/g,"")),vw&&(o=function(p){for(var v,m=p.length,g=0,y="",h=[],$={},w=!1,C=!1,D=0,A="";g<=m;g++){if((v=Jd(p,g))==="\\")v+=Jd(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":BW(TW,FW(p,g+1))&&(g+=2,C=!0),y+=v,D++;continue;case(v===">"&&C):if(A===""||mt($,A))throw new AW("Invalid capture group name");$[A]=!0,h[h.length]=[A,D],C=!1,A="";continue}C?A+=v:y+=v}return[y,h]}(e),e=o[0],f=o[1]),a=uB(li(e,t),s?this:zu,Ti),(r||i||f.length)&&(u=SW(a),r&&(u.dotAll=!0,u.raw=Ti(function(p){for(var v,m=p.length,g=0,y="",h=!1;g<=m;g++)(v=Jd(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),y+=v):y+="[\\s\\S]":y+=v+Jd(p,++g);return y}(e),n)),i&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{cr(a,"source",d===""?"(?:)":d)}catch{}return a},NW=function(e){e in Ti||CW(Ti,e,{configurable:!0,get:function(){return li[e]},set:function(t){li[e]=t}})},gC=DW(li),vC=0;gC.length>vC;)NW(gC[vC++]);zu.constructor=Ti,Ti.prototype=zu,gn(W,"RegExp",Ti)}Aw("RegExp");var IW=new RegExp(String.fromCharCode(160),"g");function jB(e){return e.replace(IW," ")}function mC(e,t){var n=e.length;if(n){var r=e[n-1];if(X.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]==="text")return r.text=r.text+t,!0}}return!1}function RW(e,t,n){return{type:"paragraph",children:[{text:O(e).text().replace(/\s+/gm," ")}]}}function U1(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!==no.ELEMENT_NODE){if(l.nodeType===no.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=jB(c),mC(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(mC(u,`
- `)||u.push({text:`
- `}));var f=O(l);u.push(Pw(f,a))}}),u)}(e,t),r=function(o){for(var a in Ph)if(o[0].matches(a))return Ph[a];return RW}(e),i=r(e[0],n,t);return E.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),_w.forEach(function(o){i=o(e[0],i,t)})),i}function V1(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=e[0].textContent||"";n=function(i){return i.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"\xAE").replace(/©/g,"\xA9").replace(/™/g,"\u2122")}(n);var r={text:n=jB(n)};return _w.forEach(function(i){r=i(e[0],r,t)}),r}function Pw(e,t){IB.forEach(function(r){var i=r.selector,o=r.preParseHtml;e[0].matches(i)&&(e=O(o(e[0])))});var n=G8(e);return n==="span"?e.attr("data-w-e-type")?U1(e,t):V1(e,t):n==="code"?G8(e.parent())==="pre"?U1(e,t):V1(e,t):NB.includes(n)?V1(e,t):U1(e,t)}function LB(e,t,n){var r=O(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function MB(e,t){t===void 0&&(t=""),t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(r){return"<p>"+r+"</p>"}).join(""));var n=O("<div>"+t+"</div>");return Array.from(n.children()).map(function(r){return Pw(O(r),e)})}var jW=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),LW=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,v,m=[];switch(a.type){case"insert_text":case"remove_text":case"set_node":try{for(var g=Un(E.levels(t,{at:a.path})),y=g.next();!y.done;y=g.next()){var h=Oe(y.value,2),$=h[0],w=h[1],C=x.findKey(t,$);m.push([w,C])}}catch(ee){u={error:ee}}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 D=Un(E.levels(t,{at:_.parent(a.path)})),A=D.next();!A.done;A=D.next()){var N=Oe(A.value,2);$=N[0],w=N[1],C=x.findKey(t,$),m.push([w,C])}}catch(ee){l={error:ee}}finally{try{A&&!A.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}break;case"move_node":try{for(var M=Un(E.levels(t,{at:_.common(_.parent(a.path),_.parent(a.newPath))})),U=M.next();!U.done;U=M.next()){var V=Oe(U.value,2);$=V[0],w=V[1],C=x.findKey(t,$),m.push([w,C])}}catch(ee){f={error:ee}}finally{try{U&&!U.done&&(d=M.return)&&d.call(M)}finally{if(f)throw f.error}}}i(a);try{for(var J=Un(m),Z=J.next();!Z.done;Z=J.next()){var se=Oe(Z.value,2);w=se[0],C=se[1],$=Oe(E.node(t,w),1)[0],Up.set($,C)}}catch(ee){p={error:ee}}finally{try{Z&&!Z.done&&(v=J.return)&&v.call(J)}finally{if(p)throw p.error}}},t.deleteBackward=function(a){if(a!=="line")return o(a);if(e.selection&&R.isCollapsed(e.selection)){var u=E.above(e,{match:function(f){return E.isBlock(e,f)},at:e.selection});if(u){var s=Oe(u,2)[1],l=E.range(e,s,e.selection.anchor),c=function(f,d){var p=E.range(f,R.end(d)),v=Array.from(E.positions(f,{at:d})),m=0,g=v.length,y=Math.floor(g/2);if(dC(f,E.range(f,v[m]),p))return E.range(f,v[m],p);if(v.length<2)return E.range(f,v[v.length-1],p);for(;y!==v.length&&y!==m;)dC(f,E.range(f,v[y]),p)?g=y:m=y,y=Math.floor((m+g)/2);return E.range(f,v[g],p)}(t,l);R.isCollapsed(c)||P.delete(e,{at:c})}}},t.onChange=function(){var a=t.selection;a!=null&&fb.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 _B(u,t)}).join("")},t.getText=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return q.string(u)}).join(`
- `)},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=Un(f),p=d.next();!p.done;p=d.next()){var v=Oe(p.value,1)[0];if(te.isElement(v)&&(u?v.type.indexOf(a)>=0:v.type===a)){var m=PB(x.findKey(t,v).id);c.push(Gn(Gn({},v),{id:m}))}}}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(te.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||X.isText(f)&&f.text==="")return!0}return!1},t.clear=function(){P.removeNodes(t,{at:{anchor:E.start(t,[]),focus:E.end(t,[])},mode:"highest"}),t.children.length===0&&P.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(a){return x.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 v=p.nodeType,m=p.nodeName;return v===no.TEXT_NODE||v===no.ELEMENT_NODE&&!jW.has(m.toLowerCase())}),l.length!==0){var c=t.selection;if(c!=null){var f=null;x.isSelectedEmptyParagraph(t)&&!u&&(f=[c.focus.path[0]]),s.setAttribute("hidden","true"),document.body.appendChild(s);var d=0;l.forEach(function(p){var v=p.nodeType,m=p.nodeName,g=p.textContent,y=g===void 0?"":g;if(v!==no.TEXT_NODE)if(m!=="BR"){var h=p,$=!1;if(NB.includes(m.toLowerCase()))$=!0;else for(var w in Ph)if(h.matches(w)){$=!0;break}if($){var C=Pw(O(h),t);return t.isInline(C)?(t.insertNode(C),C.type==="link"&&t.insertFragment([{text:""}])):P.insertNodes(t,C,{mode:"highest"}),d++,void(x.isSelectedVoidNode(t)&&t.move(1))}var D=window.getComputedStyle(h).display;x.isSelectedEmptyParagraph(t)||D.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(h.innerHTML,!0)}else t.insertText(`
- `);else{if(!y||!y.trim())return;t.insertNode({text:y})}}),d&&f&&x.isEmptyPath(t,f)&&P.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.select([]),t.deleteFragment(),P.setNodes(t,{type:"paragraph"},{mode:"highest"});var c=MB(t,a);if(P.insertFragment(t,c),s||(t.deselect(),t.blur()),u&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(l))}catch{t.select(E.start(t,[]))}},t},MW=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var i=t.selection;if(i){var o=Oe(R.edges(i),2),a=o[0],u=o[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!R.isCollapsed(i)||s){var c=x.toDOMRange(t,i),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(d=C)}),l){var p=Oe(l,1)[0],v=c.cloneRange(),m=x.toDOMNode(t,p);v.setEndAfter(m),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var D=C.getAttribute("data-slate-zero-width")==="n";C.textContent=D?`
- `:""}),hB(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",IV(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=Un(f),v=p.next();!v.done;v=p.next()){var m=v.value;d&&P.splitNodes(t,{always:!0}),n(m),d=!0}}catch(g){i={error:g}}finally{try{v&&!v.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}}},t},Ec=function(e){return e!=null},zW={object:!0,function:!0,undefined:!0},HW=function(e){if(!function(t){return!!Ec(t)&&hasOwnProperty.call(zW,typeof t)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}},UW=/^\s*class[\s{/}]/,VW=Function.prototype.toString,yC=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{return!1}return!HW(t)}(e)&&!UW.test(VW.call(e))},Nw=function(e){return e!=null},WW=Object.keys,qW=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return WW(Nw(e)?Object(e):e)},GW=function(e){if(!Nw(e))throw new TypeError("Cannot use null or undefined");return e},KW=Math.max,bC=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=KW(arguments.length,2);for(e=Object(GW(e)),i=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<o;++r)qW(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},YW=Array.prototype.forEach,XW=Object.create,JW=function(e,t){var n;for(n in e)t[n]=e[n]},$C=function(e){var t=XW(null);return YW.call(arguments,function(n){Nw(n)&&JW(Object(n),t)}),t},W1="razdwatrzy",ZW=String.prototype.indexOf,Tl=typeof W1.contains=="function"&&W1.contains("dwa")===!0&&W1.contains("foo")===!1?String.prototype.contains:function(e){return ZW.call(this,e,arguments[1])>-1},Zd=qf(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],Ec(n)?(i=Tl.call(n,"c"),o=Tl.call(n,"e"),a=Tl.call(n,"w")):(i=a=!0,o=!1),s={value:r,configurable:i,enumerable:o,writable:a},u?bC($C(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],Ec(r)?yC(r)?Ec(i)?yC(i)||(u=i,i=void 0):i=void 0:(u=r,r=i=void 0):r=void 0,Ec(n)?(o=Tl.call(n,"c"),a=Tl.call(n,"e")):(o=!0,a=!1),s={get:r,set:i,configurable:o,enumerable:a},u?bC($C(u),s):s}}),q1=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},QW=qf(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,v=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var h;return q1(y),v.call(this,"__ee__")?h=this.__ee__:(h=m.value=f(null),d(this,"__ee__",m),m.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 q1(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,C;if(q1(y),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof($=h[g])=="object")for(C=0;w=$[C];++C)w!==y&&w.__eeOnceListener__!==y||($.length===2?h[g]=$[C?0:1]:$.splice(C,1));else $!==y&&$.__eeOnceListener__!==y||delete h[g];return this},o=function(g){var y,h,$,w,C;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,C=new Array(h-1),y=1;y<h;++y)C[y-1]=arguments[y];for(w=w.slice(),y=0;$=w[y];++y)l.call($,this,C)}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,C=new Array(h-1),y=1;y<h;++y)C[y-1]=arguments[y];l.call(w,this,C)}},a={on:n,once:r,off:i,emit:o},u={on:Zd(n),once:Zd(r),off:Zd(i),emit:Zd(o)},s=p({},u),e.exports=t=function(g){return g==null?f(s):p(Object(g),u)},t.methods=a});function Qd(e){var t=V8.get(e);return t==null&&(t=QW(),V8.set(e,t)),t}var Nh=new WeakMap;function wC(e,t){var n=Nh.get(e);n==null&&(n=new Set,Nh.set(e,n)),n.add(t)}function eq(e){return Nh.get(e)||new Set}function tq(e){Nh.set(e,new Set)}function Iw(e){var t=x.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function Rw(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=Iw(e);if(r==null)return t;var i=r.top,o=r.left,a=r.width,u=r.height,s=x.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 v=u-f;c.bottom=v+5+"px"}else{var m=f+l;m<0&&(m=0),c.top=m+5+"px"}return c}function jw(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var i=te.isElement(t)&&e.isVoid(t),o=te.isElement(t)&&e.isInline(t),a=y0.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(A){var N=[];N.push(A);for(var M=0;N.length>0;){var U=N.pop();if(U==null||++M>1e4)break;var V=U.nodeName;if(U.nodeType===1){var J=V.toLowerCase();if(PV.includes(J)||J==="iframe"||J==="video")return U;var Z=U.children||[],se=Z.length;if(se)for(var ee=se-1;ee>=0;ee--)N.push(Z[ee])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=Iw(e);if(v==null)return r;var m=v.top,g=v.left,y=v.width,h=v.height,$={},w=s-m,C=l-g;if(n==="bar")return $.left=C+"px",w>40?$.bottom=h-w+5+"px":$.top=w+c+5+"px",$;if(n==="modal"){var D;return i?o?C>(y-f)/2?$.right=y-C+5+"px":$.left=C+f+5+"px":$.left="20px":$.left=C+"px",i?((D=w)<0&&(D=0),$.top=D+"px"):w>(h-c)/2?$.bottom=h-w+5+"px":((D=w+c)<0&&(D=0),$.top=D+5+"px"),$}throw new Error("type '"+n+"' is invalid")}function $b(e,t){Qn(function(){var n=Iw(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,v=c-o,m=t.attr("style");if(m.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(m.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),$=parseInt(h.toString())-Math.abs(l);t.css("bottom",$+"px")}if(m.indexOf("left")>=0&&(r=v+f-a)>0){var w=t.css("left"),C=parseInt(w.toString())-r;C<0&&(C=0),t.css("left",C+"px")}if(m.indexOf("right")>=0&&c<0){var D=t.css("right"),A=parseInt(D.toString())-Math.abs(c);t.css("right",A+"px")}}})}var nq=d0("slice"),rq=st("species"),G1=W.Array,iq=Math.max;at({target:"Array",proto:!0,forced:!nq},{slice:function(e,t){var n,r,i,o=ko(this),a=Ja(o),u=$s(e,a),s=$s(t===void 0?a:t,a);if(xh(o)&&(n=o.constructor,(c0(n)&&(n===G1||xh(n.prototype))||Ye(n)&&(n=n[rq])===null)&&(n=void 0),n===G1||n===void 0))return $B(o,u,s);for(r=new(n===void 0?G1:n)(iq(s-u,0)),i=0;u<s;u++,i++)u in o&&rf(r,i,o[u]);return r.length=i,r}});var oq=Kf.f,EC=re("".startsWith),aq=re("".slice),uq=Math.min,zB=lw("startsWith"),sq=!zB&&!!function(){var e=oq(String.prototype,"startsWith");return e&&!e.writable}();at({target:"String",proto:!0,forced:!sq&&!zB},{startsWith:function(e){var t=Ge(Zn(this));sw(e);var n=Rs(uq(arguments.length>1?arguments[1]:void 0,t.length)),r=Ge(e);return EC?EC(t,r,n):aq(t,n,n+r.length)===r}});var mu=Object.assign,CC=Object.defineProperty,lq=re([].concat),DC=!mu||je(function(){if(It&&mu({b:1},mu(CC({},"a",{enumerable:!0,get:function(){CC(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}),mu({},e)[n]!=7||Zu(mu({},t)).join("")!=r})?function(e,t){for(var n=To(e),r=arguments.length,i=1,o=XO.f,a=GO.f;r>i;)for(var u,s=l0(arguments[i++]),l=o?lq(Zu(s),o(s)):Zu(s),c=l.length,f=0;c>f;)u=l[f++],It&&!Be(a,s,u)||(n[u]=s[u]);return n}:mu;at({target:"Object",stat:!0,forced:Object.assign!==DC},{assign:DC});var cq=["props","attrs","style","dataset","on","hook"];function HB(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(!cq.includes(o)){if(o.startsWith("data-")){var l=o.slice(5);return l=NL(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"&&HB(o)})}var Lw=[];function fq(e){Lw.push(e)}var UB={};function dq(e){var t=e.type,n=e.renderElem;UB[t||""]=n}function pq(e,t,n){var r=n.isInline(e)?"span":"div";return de(r,null,t)}function hq(e,t){var n,r=x.findKey(t,e),i=t.isInline(e),o=E.isVoid(t,e),a=PB(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 UB[h]||pq}(s);n=o?null:c.map(function(h,$){return wb(h,$,e,t)});var d=f(e,n,t);if(o){u["data-slate-void"]=!0;var p=i?"span":"div",v=Oe(q.texts(e),1),m=Oe(v[0],1)[0],g=wb(m,0,e,t),y=de(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},g);d=de(p,{style:{position:"relative"}},d,y),sf.set(m,0),Ds.set(m,e)}return d.data==null&&(d.data={}),Object.assign(d.data,u),o||i||(d=function(h,$){var w=$;return Lw.forEach(function(C){w=C(h,$)}),w}(e,d)),Qn(function(){var h=xw(a);h!=null&&(Dw.set(r,h),y0.set(e,h),m0.set(h,e))}),d}function SC(e,t){return t===void 0&&(t=!1),de("span",{"data-slate-string":!0},t?e+`
- `:e)}function K1(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),de("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?de("br",null):null)}function gq(e,t,n){if(e.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=x.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw new Error("Can not get config.decorate");var o=x.findPath(n,e),a=i([e,o]),u=X.decorations(e,a),s=u.map(function(f,d){var p=function(v,m,g,y,h){m===void 0&&(m=!1);var $=v.text,w=x.findPath(h,g),C=_.parent(w);if(E.isEditor(y))throw new Error("Text node "+JSON.stringify(g)+" parent is Editor");return h.isVoid(y)?K1(q.string(y).length):$!==""||y.children[y.children.length-1]!==g||h.isInline(y)||E.string(h,C)!==""?$===""?K1():m&&$.slice(-1)===`
- `?SC($,!0):SC($):K1(0,!0)}(f,d===u.length-1,e,t,n);return p=function(v,m){var g=m;return Lw.forEach(function(y){g=y(v,g)}),g}(f,p),de("span",{"data-slate-leaf":!0},p)}),l=function(f){return"w-e-text-"+f}(r.id),c=de("span",{"data-slate-node":"text",id:l,key:r.id},s);return Qn(function(){var f=xw(l);f!=null&&(Dw.set(r,f),y0.set(e,f),m0.set(f,e))}),c}function wb(e,t,n,r){return sf.set(e,t),Ds.set(e,n),te.isElement(e)?hq(e,r):gq(e,n,r)}function vq(e,t){var n,r=e.$scroll,i=function(m){return"w-e-textarea-"+m}(e.id),o=t.getConfig(),a=o.readOnly,u=o.autoFocus,s=function(m,g){return g===void 0&&(g=!1),bs("div#"+m,{props:{contentEditable:!g}})}(i,a),l=t.children||[];s.children=l.map(function(m,g){var y=wb(m,g,t,t);return HB(y),y});var c=z8.get(e);if(c==null&&(c=!0),c){var f=function(m,g){return O(`<div
- id="`+m+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)}(i);r.append(f),e.$textArea=f,n=f[0],(p=Oj([Bj,Pj,Mj,Fj,_j]))(n,s),z8.set(e,!1),H8.set(e,p)}else{var d=U8.get(e),p=H8.get(e);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=xw(i))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var v=Sw(n);v&&pB.set(t,v)}Cw.set(t,n),y0.set(t,n),m0.set(n,t),U8.set(e,s)}}function xC(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function AC(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Y1(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return AC(n.overflowY,t)||AC(n.overflowX,t)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function ep(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 OC(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(we){return we!==a};if(!xC(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;xC(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Y1(f)&&!Y1(document.documentElement)||f!=null&&Y1(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,h=g.width,$=g.top,w=g.right,C=g.bottom,D=g.left,A=i==="start"||i==="nearest"?$:i==="end"?C:$+y/2,N=o==="center"?D+h/2:o==="end"?w:D,M=[],U=0;U<c.length;U++){var V=c[U],J=V.getBoundingClientRect(),Z=J.height,se=J.width,ee=J.top,ae=J.right,fe=J.bottom,_e=J.left;if(r==="if-needed"&&$>=0&&D>=0&&C<=p&&w<=d&&$>=ee&&C<=fe&&D>=_e&&w<=ae)return M;var ve=getComputedStyle(V),ie=parseInt(ve.borderLeftWidth,10),Ie=parseInt(ve.borderTopWidth,10),T=parseInt(ve.borderRightWidth,10),F=parseInt(ve.borderBottomWidth,10),k=0,I=0,H="offsetWidth"in V?V.offsetWidth-V.clientWidth-ie-T:0,j="offsetHeight"in V?V.offsetHeight-V.clientHeight-Ie-F:0;if(l===V)k=i==="start"?A:i==="end"?A-p:i==="nearest"?ep(m,m+p,p,Ie,F,m+A,m+A+y,y):A-p/2,I=o==="start"?N:o==="center"?N-d/2:o==="end"?N-d:ep(v,v+d,d,ie,T,v+N,v+N+h,h),k=Math.max(0,k+m),I=Math.max(0,I+v);else{k=i==="start"?A-ee-Ie:i==="end"?A-fe+F+j:i==="nearest"?ep(ee,fe,Z,Ie,F+j,A,A+y,y):A-(ee+Z/2)+j/2,I=o==="start"?N-_e-ie:o==="center"?N-(_e+se/2)+H/2:o==="end"?N-ae+T+H:ep(_e,ae,se,ie,T+H,N,N+h,h);var Q=V.scrollLeft,ce=V.scrollTop;A+=ce-(k=Math.max(0,Math.min(ce+k,V.scrollHeight-Z+j))),N+=Q-(I=Math.max(0,Math.min(Q+I,V.scrollWidth-se+H)))}M.push({el:V,top:k,left:I})}return M}function BC(e){return e===Object(e)&&Object.keys(e).length!==0}function mq(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(BC(t)&&typeof t.behavior=="function")return t.behavior(n?[]:OC(e,t));if(!n){var r=function(i){return i===!1?{block:"end",inline:"nearest"}:BC(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)})}(OC(e,r),r.behavior)}}function Mn(e,t){return ja(t)&&x.hasDOMNode(e,t,{editable:!0})}function FC(e,t){if(e.getConfig().readOnly)return!1;var n=Hu(e,t)&&x.toSlateNode(e,t);return E.isVoid(e,n)}function Hu(e,t){return ja(t)&&x.hasDOMNode(e,t)}function VB(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),o=x.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a=o.type!=="None";if(r||a){var u=Cw.get(t),s=!1;if(u.contains(o.anchorNode)&&u.contains(o.focusNode)&&(s=!0),a&&s&&r){var l=x.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(l&&R.equals(l,r)){var c=!0;if(R.isCollapsed(r)){var f=o.anchorNode,d=o.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!r||x.hasRange(t,r)){e.isUpdatingSelection=!0;var m=r&&x.toDOMRange(t,r);if(m){R.isBackward(r)?o.setBaseAndExtent(m.endContainer,m.endOffset,m.startContainer,m.startOffset):o.setBaseAndExtent(m.startContainer,m.startOffset,m.endContainer,m.endOffset);var g=m.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=m.getBoundingClientRect.bind(m);var y=document.body;mq(g,{scrollMode:"if-needed",boundary:i.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else o.removeAllRanges();setTimeout(function(){m&&Tc&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=x.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})}}}var X1=new WeakMap,TC=new WeakMap,yq={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"},bq={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"},$q={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},et=function(e){var t=yq[e],n=bq[e],r=$q[e],i=t&&Xv(t),o=n&&Xv(n),a=r&&Xv(r);return function(u){return!(!i||!i(u))||!!(db&&o&&o(u))||!(db||!a||!a(u))}},rt={isBold:et("bold"),isCompose:et("compose"),isMoveBackward:et("moveBackward"),isMoveForward:et("moveForward"),isDeleteBackward:et("deleteBackward"),isDeleteForward:et("deleteForward"),isDeleteLineBackward:et("deleteLineBackward"),isDeleteLineForward:et("deleteLineForward"),isDeleteWordBackward:et("deleteWordBackward"),isDeleteWordForward:et("deleteWordForward"),isExtendBackward:et("extendBackward"),isExtendForward:et("extendForward"),isExtendLineBackward:et("extendLineBackward"),isExtendLineForward:et("extendLineForward"),isItalic:et("italic"),isMoveLineBackward:et("moveLineBackward"),isMoveLineForward:et("moveLineForward"),isMoveWordBackward:et("moveWordBackward"),isMoveWordForward:et("moveWordForward"),isRedo:et("redo"),isSplitBlock:et("splitBlock"),isTransposeCharacter:et("transposeCharacter"),isUndo:et("undo"),isTab:et("tab"),isSelectAll:et("selectAll")};function Ct(e){e.preventDefault()}var wq={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(Al&&!i&&Mn(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=Oe(r.getTargetRanges(),1)[0];if(s){var l=x.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});o&&R.equals(o,l)||P.select(n,l)}}if(o&&R.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"&&!F1.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&&Mn(n,r.target)){var a=x.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var u=r.relatedTarget;if(!(u===x.toDOMNode(n,n)||ir(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ja(u)&&x.hasDOMNode(n,u)){var s=x.toSlateNode(n,u);if(te.isElement(s)&&!n.isVoid(s))return}if(xl){var l=a.getSelection();l==null||l.removeAllRanges()}va.delete(n)}}}},focus:function(e,t,n){var r=x.toDOMNode(n,n),i=x.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,Tc&&e.target!==r?r.focus():va.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Hu(n,e.target)&&ja(e.target)){var r=x.toSlateNode(n,e.target),i=x.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&&_.equals(u[1],s[1])){var l=E.range(n,o);P.select(n,l)}}}},compositionstart:function(e,t,n){if(Mn(n,e.target)){var r=n.selection;if(r&&R.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){VB(t,n,!0)})),r&&R.isCollapsed(r)){var i=x.toDOMRange(n,r).startContainer,o=i.textContent||"";X1.set(n,o),TC.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(Mn(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(pb||Tc)&&x.cleanExposedTexNodeInSelectionBlock(n);for(var o=R.isBackward(i)?i.focus:i.anchor,a=Oe(E.node(n,[o.path[0]]),1)[0],u=0;u<o.path.length;u++){var s=Oe(E.node(n,o.path.slice(0,u+1)),1)[0];if(te.isElement(s)&&((xl||Tc)&&s.type==="link"||s.type==="code")){x.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=x.getLeftLengthOfMaxLength(n);c<l.length?(x.toDOMRange(n,i).startContainer.textContent=X1.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),t.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);xl||setTimeout(function(){var f=n.selection;if(f!=null){var d=TC.get(n);d!=null&&x.toDOMRange(n,f).startContainer!==d&&(d.textContent=X1.get(n)||"")}})}}}},compositionupdate:function(e,t,n){Mn(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Mn(n,r.target)){if(function(a,u){var s=v0.get(a),l=s&&s.getMenus(),c=Th.get(a),f=c&&c.getMenus(),d=Gn(Gn({},l),f);for(var p in d){var v=d[p],m=v.hotkey;if(m&&zL(m,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}}(n,r),rt.isTab(r))return Ct(r),void n.handleTab();if(rt.isRedo(r))return Ct(r),void(typeof n.redo=="function"&&n.redo());if(rt.isUndo(r))return Ct(r),void(typeof n.undo=="function"&&n.undo());if(rt.isMoveLineBackward(r))return Ct(r),void P.move(n,{unit:"line",reverse:!0});if(rt.isMoveLineForward(r))return Ct(r),void P.move(n,{unit:"line"});if(rt.isExtendLineBackward(r))return Ct(r),void P.move(n,{unit:"line",edge:"focus",reverse:!0});if(rt.isExtendLineForward(r))return Ct(r),void P.move(n,{unit:"line",edge:"focus"});if(rt.isMoveBackward(r))return Ct(r),void(i&&R.isCollapsed(i)?P.move(n,{reverse:!0}):P.collapse(n,{edge:"start"}));if(rt.isMoveForward(r))return Ct(r),void(i&&R.isCollapsed(i)?P.move(n):P.collapse(n,{edge:"end"}));if(rt.isMoveWordBackward(r))return Ct(r),i&&R.isExpanded(i)&&P.collapse(n,{edge:"focus"}),void P.move(n,{unit:"word",reverse:!0});if(rt.isMoveWordForward(r))return Ct(r),i&&R.isExpanded(i)&&P.collapse(n,{edge:"focus"}),void P.move(n,{unit:"word"});if(rt.isSelectAll(r))return Ct(r),void n.selectAll();if(Al){if((pb||xl)&&i&&(rt.isDeleteBackward(r)||rt.isDeleteForward(r))&&R.isCollapsed(i)){var o=q.parent(n,i.anchor.path);if(te.isElement(o)&&E.isVoid(n,o)&&E.isInline(n,o))return r.preventDefault(),void P.delete(n,{unit:"block"})}}else{if(rt.isBold(r)||rt.isItalic(r)||rt.isTransposeCharacter(r))return void Ct(r);if(rt.isSplitBlock(r))return Ct(r),void E.insertBreak(n);if(rt.isDeleteBackward(r))return Ct(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(rt.isDeleteForward(r))return Ct(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(rt.isDeleteLineBackward(r))return Ct(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(rt.isDeleteLineForward(r))return Ct(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(rt.isDeleteWordBackward(r))return Ct(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(rt.isDeleteWordForward(r))return Ct(r),void(i&&R.isExpanded(i)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Al&&!n.getConfig().readOnly&&Mn(n,e.target)){e.preventDefault();var r=e.key;E.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Mn(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&&Mn(n,r.target)){r.preventDefault();var o=r.clipboardData;if(o!=null&&(n.setFragmentData(o),i))if(R.isExpanded(i))E.deleteFragment(n);else{var a=q.parent(n,i.anchor.path);E.isVoid(n,a)&&P.delete(n)}}},paste:function(e,t,n){F1.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Mn(n,r.target)){var i=n.getConfig().customPaste;if(i&&i(n,r)===!1)return void F1.set(n,!1);if(!Al||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(Hu(n,e.target)){var r=x.toSlateNode(n,e.target);E.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Hu(n,r.target)&&!n.getConfig().readOnly){var i=x.toSlateNode(n,r.target),o=x.findPath(n,i);if(E.isVoid(n,i)||E.void(n,{at:o,voids:!0})){var a=E.range(n,o);P.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&&Hu(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Hu(n,r.target)&&i!=null&&!(Al&&xl&&i.files.length>0)){r.preventDefault();var o=n.selection,a=x.findEventRange(n,r);P.select(n,a),t.isDraggingInternally&&(o&&P.delete(n,{at:o}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},Eq=1,Cq=function(){function e(t){var n=this;this.id=Eq++,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=Pa(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=x.findDocumentOrShadowRoot(s),p=d.activeElement,v=x.toDOMNode(s,s),m=d.getSelection();if(p===v?(u.latestElement=p,va.set(s,!0)):va.delete(s),!m)return P.deselect(s);var g=m.anchorNode,y=m.focusNode,h=Mn(s,g)||FC(s,g),$=Mn(s,y)||FC(s,y);if(h&&$){var w=x.toSlateRange(s,m,{exactMatch:!1,suppressThrow:!1});P.select(s,w)}else P.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=x.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=sb.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&&(U$(wq,function(o,a){n.on(a,function(u){o(u,t,i)})}),i.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Pa(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?o&&o(n):t.latestEditorSelection!=null&&n.selection==null&&i&&i(n),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-x.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;vq(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(){VB(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();bw("match",function(e,t,n){return[function(r){var i=Zn(this),o=r==null?void 0:Ia(r,e);return o?Be(o,r,i):new RegExp(r)[e](Ge(i))},function(r){var i=yt(this),o=Ge(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return af(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=af(i,o))!==null;){var f=Ge(s[0]);l[c]=f,f===""&&(i.lastIndex=$w(o,Rs(i.lastIndex),u)),c++}return c===0?null:l}]});function Mw(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&&Mw(t)}function zw(){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 WB(){return O('<div class="w-e-bar-divider"></div>')}function qB(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var o=db?"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+`
- `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var Hw=function(){function e(t,n){var r=this;n===void 0&&(n=!1),this.$elem=O('<div class="w-e-bar-item"></div>'),this.$button=O('<button type="button"></button>'),this.disabled=!1,this.menu=t;var i=t.tag,o=t.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var a=t.title,u=t.hotkey,s=u===void 0?"":u,l=t.iconSvg,c=l===void 0?"":l,f=this.$button;if(c){var d=O(c);Mw(d),f.append(d)}else f.text(a);qB(f,c,a,s,n),n&&c&&f.append(O('<span class="title">'+a+"</span>")),o&&f.css("width",o+"px"),this.$elem.append(f),Qn(function(){return r.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Dn(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Dn(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Dn(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Dn(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}(),Dq=function(e){function t(n,r){return r===void 0&&(r=!1),e.call(this,n,r)||this}return Ls(t,e),t.prototype.onButtonClick=function(){},t}(Hw),Uw=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=cb.get(t);n==null&&(n=new Set,cb.set(t,n)),n.add(this),Hp.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=Hp.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=Hp.get(this);t&&t.emit("modalOrPanelHide")}},e}(),Sq=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 Ls(t,e),t.prototype.genSelfElem=function(){return null},t}(Uw),xq=function(e){function t(n,r){r===void 0&&(r=!1);var i=e.call(this,n,r)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var o=zw();i.$button.append(o)}return i}return Ls(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=Dn(this);if(this.dropPanel==null){var i=new Sq(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}(Hw),Aq=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 Ls(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=Hp.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}(Uw);function Sn(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 Ms(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 Oq=function(e){function t(n,r){r===void 0&&(r=!1);var i=e.call(this,n,r)||this;return i.$body=O("body"),i.modal=null,i.menu=n,i}return Ls(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=Dn(this),r=this.menu.getModalPositionNode(n);return te.isElement(r)?jw(n,r,"modal"):Rw(n)},t.prototype.handleModal=function(){var n=Dn(this),r=this.menu;if(this.modal==null){var i=new Aq(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=Dn(this),o=this.menu;if(o.getModalContentElem!=null){var a=x.getTextarea(i),u=x.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||$b(i,n.$elem),setTimeout(function(){i.blur()})}},t}(Hw),Bq=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 Ls(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}(Uw),Fq=function(){function e(t,n){var r=this;n===void 0&&(n=!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 i=t.tag,o=t.title,a=t.width,u=t.iconSvg,s=u===void 0?"":u,l=t.hotkey,c=l===void 0?"":l;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),qB(f,s,o,c,n),this.$elem.append(f),this.menu=t,Qn(function(){return r.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Dn(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=Dn(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new Bq(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=Dn(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=Dn(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=zw();o.empty(),o.text(i),o.append(a)},e.prototype.setDisabled=function(){var t=Dn(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}(),kC=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.iconSvg,r=t.title,i=this.$elem,o=this.$button;if(n){var a=O(n);Mw(a),o.append(a)}else o.text(r);var u=zw();o.append(u),i.append(o);var s=this.$container;i.append(s);var l=this.createObserver();this.observe(l)}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}(),_C=new WeakMap;function Dn(e){var t=Ew.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function GB(e,t){t===void 0&&(t=!1);var n=_C.get(e);if(n)return n;var r=e.tag;if(r==="button"){var i=e.showDropPanel,o=e.showModal;n=i?new xq(e,t):o?new Oq(e,t):new Dq(e,t)}if(r==="select"&&(n=new Fq(e,t)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return _C.set(e,n),n}function Tq(e,t){var n=e.selection;return n!=null&&!R.isCollapsed(n)&&!x.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var i=r.type;return!!["pre","code","table"].includes(i)||void 0})&&!!X.isText(t)}var kq=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=bO(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&&te.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()}),x.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=WB();r.append(o)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,i=r[t];if(i==null){var o=lf[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=GB(i);this.hoverbarItems.push(a),Ew.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),te.isElement(t)){var i=jw(n,t,"bar");return r.css(i),void $b(n,r)}if(X.isText(t))return i=Rw(n),r.css(i),void $b(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(m,g){return x.checkNodeType(g,u)},p=Oe(E.nodes(t,{match:function(m){return d(t,m)},universal:!0}),1),v=p[0];if(v!=null)return r=v[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=lb.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=Tq),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=x.findPath(null,t),i=x.findPath(null,n);return _.equals(r,i)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function KB(e,t,n,r){if(sf.set(e,t),Ds.set(e,n),te.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach(function(u,s){return KB(u,s,e,r)}),E.isVoid(r,e)){var o=Oe(q.texts(e),1),a=Oe(o[0],1)[0];sf.set(a,0),Ds.set(a,e)}}}function _q(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:C}=w;if(C.length>0){var D=C[C.length-1];qu.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var A of D)h.apply(A)})}),w.redos.pop(),w.undos.push(D)}},h.undo=()=>{var{history:w}=h,{undos:C}=w;if(C.length>0){var D=C[C.length-1];qu.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var A=D.map(Ji.inverse).reverse();for(var N of A)h.apply(N)})}),w.redos.push(D),w.undos.pop()}},h.apply=w=>{var{operations:C,history:D}=h,{undos:A}=D,N=A[A.length-1],M=N&&N[N.length-1],U=tU(w,M),V=qu.isSaving(h),J=qu.isMerging(h);if(V==null&&(V=eU(w)),V){if(J==null&&(J=N!=null&&(C.length!==0||QH(w,M)||U)),N&&J)U&&N.pop(),N.push(w);else{var Z=[w];A.push(Z)}for(;A.length>100;)A.shift();nU(w)&&(D.redos=[])}$(w)},h})(function(y){var h=y,$=h.insertText,w=h.insertNode,C=h.insertFragment;return h.insertText=function(D){if(h.getConfig().maxLength){var A=x.getLeftLengthOfMaxLength(h);A<=0||(A<D.length?$(D.slice(0,A)):$(D))}else $(D)},h.insertNode=function(D){if(h.getConfig().maxLength){var A=x.getLeftLengthOfMaxLength(h);A<=0||A<q.string(D).length||w(D)}else w(D)},h.insertFragment=function(D){h.getConfig().maxLength?D.forEach(function(A){h.insertNode(A)}):C(D)},h}(function(y){var h=y;return h.on=function($,w){var C=Qd(h);if(C.on($,w),$==="destroyed"&&wC(h,w),$!=="destroyed"){var D=function(){return C.off($,w)};C.on("destroyed",D),wC(h,D)}},h.once=function($,w){Qd(h).once($,w)},h.off=function($,w){Qd(h).off($,w)},h.emit=function($){for(var w=[],C=1;C<arguments.length;C++)w[C-1]=arguments[C];var D=Qd(h);D.emit.apply(D,ob([$],Oe(w))),$==="destroyed"&&(eq(h).forEach(function(A){return D.off("destroyed",A)}),tq(h))},h}(function(y){var h=y;return h.select=function($){P.select(h,$)},h.deselect=function(){var $=h.selection,w=x.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),$&&P.deselect(y)},h.move=function($,w){w===void 0&&(w=!1),$&&($<0||P.move(y,{distance:$,unit:"character",reverse:w}))},h.moveReverse=function($){h.move($,!0)},h.restoreSelection=function(){var $=fb.get(h);$!=null&&(h.focus(),P.select(h,$))},h.getSelectionPosition=function(){return Rw(h)},h.getNodePosition=function($){return jw(h,$)},h.isSelectedAll=function(){var $=h.selection;if($==null)return!1;var w=Oe(R.edges($),2),C=w[0],D=w[1],A=Oe(E.edges(h,[]),2),N=A[0],M=A[1];return!(!$e.equals(C,N)||!$e.equals(D,M))},h.selectAll=function(){var $=E.start(h,[]),w=E.end(h,[]);P.select(h,{anchor:$,focus:w})},h}(LW(function(y){var h=y;return h.getAllMenuKeys=function(){var $=[];for(var w in lf)$.push(w);return $},h.getConfig=function(){var $=M8.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 C=h.getConfig().customAlert;C&&C($,w)},h}(function(y){var h=y;return h.id="wangEditor-"+LV++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function($){if(x.toDOMNode(h,h).focus({preventScroll:!0}),va.set(h,!0),$){var w=E.end(h,[]);P.select(h,w)}else{var C=fb.get(h);C?P.select(h,C):P.select(h,E.start(h,[]))}},h.isFocused=function(){return!!va.get(h)},h.blur=function(){x.toDOMNode(h,h).blur(),P.deselect(h),va.set(h,!1)},h.updateView=function(){x.getTextarea(h).changeViewState();var $=x.getToolbar(h);$&&$.changeToolbarState();var w=x.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var $=x.getTextarea(h);$.destroy(),ub.delete(h),sb.delete($);var w=x.getToolbar(h);w&&(w.destroy(),v0.delete(h),ww.delete(w));var C=x.getHoverbar(h);C&&(C.destroy(),Th.delete(h),lb.delete(C)),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+=`
- You has disabled editor scroll, please do this yourself`,void console.warn(w)}var C=O("#"+$);if(C.length!==0){var D=C[0];if(!x.hasDOMNode(h,D))return w="Element (found by id is '"+$+"') is not in editor DOM",w+=`
- \u901A\u8FC7 id '`+$+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185",void console.error(w,D);var A=x.getTextarea(h),N=A.$textAreaContainer,M=A.$scroll,U=C.offset().top,V=N.offset().top;M[0].scrollBy({top:U-V,behavior:"smooth"})}},h.showProgressBar=function($){$<1||x.getTextarea(h).changeProgress($)},h.hidePanelOrModal=function(){var $=cb.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 x.toDOMNode(h,$)},h.fullScreen=function(){if(!h.isFullScreen){var $=null,w=x.getToolbar(h);w&&($=w.$box);var C=x.getTextarea(h).$box.parent();if($&&$.parent()[0]!==C[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
- \u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4`);C.addClass("w-e-full-screen-container");var D=C.css("z-index");C.attr("data-z-index",D.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var $=x.getTextarea(h).$box.parent();setTimeout(function(){$.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return x.getTextarea(h).$textAreaContainer[0]},h}(MW(mN()))))))));if(n&&function(y,h){return LB(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=$O(mB),$={},w=y.MENU_CONF,C=w===void 0?{}:w;return U$(h,function(D,A){$[A]=Gn(Gn({},D),C[A]||{})}),delete y.MENU_CONF,Gn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:$,hoverbarKeys:{},customAlert:function(D,A){window.alert(A+`:
- `+D)}},y)}(i);M8.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=MB(l,a)),o&&o.length&&(l.children=o),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),x.normalizeContent(l),n){var p=new Cq(n);ub.set(l,p),sb.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
- Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var v=void 0;Object.keys(d).length>0&&(v=new kq,lb.set(v,l),Th.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return KB(y,h,l,l)});var m=c.onCreated,g=c.onDestroyed;return m&&l.on("created",function(){return m(l)}),g&&l.on("destroyed",function(){return g(l)}),Qn(function(){return l.emit("created")}),l}var Pq=d0("splice"),Nq=W.TypeError,Iq=Math.max,Rq=Math.min;at({target:"Array",proto:!0,forced:!Pq},{splice:function(e,t){var n,r,i,o,a,u,s=To(this),l=Ja(s),c=$s(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=Rq(Iq(Gf(t),0),l-c)),l+n-r>9007199254740991)throw Nq("Maximum allowed length exceeded");for(i=VO(s,r),o=0;o<r;o++)(a=c+o)in s&&rf(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 jq=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=bO(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=$O(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,m){f.splice(s.index+m,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,m){if(v==="|"){if(m===0||m+1===p||n==="|")return;var g=WB();return r.append(g),void(n=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(n=v);t.registerGroup(v),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,i=function(l){return new kC(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 kC,o=this.menus,a=o[t];if(a==null){var u=lf[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+`'
- \u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+t+"'");var s=GB(a,i);this.toolbarItems.push(s),Ew.set(s,r),i?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=ww.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 Lq(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 LB(u,"data-w-e-toolbar",s)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=Gn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}),a=new jq(n,o);return ww.set(a,e),v0.set(e,a),a}var Mq=Is.EXISTS,zq=mr.f,YB=Function.prototype,Hq=re(YB.toString),XB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Uq=re(XB.exec);function JB(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,v=p===void 0?{}:p,m=e.withCredentials,g=m!==void 0&&m,y=e.timeout,h=y===void 0?1e4:y,$=e.onBeforeUpload,w=$===void 0?function(Z){return Z}:$,C=e.onSuccess,D=C===void 0?function(Z,se){}:C,A=e.onError,N=A===void 0?function(Z,se,ee){console.error(Z.name+" upload error",se,ee)}:A,M=e.onProgress,U=M===void 0?function(Z){}:M;if(!n)throw new Error(`Cannot get upload server address
- \u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);if(!i)throw new Error(`Cannot get fieldName
- \u6CA1\u6709\u914D\u7F6E fieldName`);var V=n;d&&(V=function(Z,se){var ee=Oe(Z.split("#"),2),ae=ee[0],fe=ee[1],_e=[];U$(se,function(ie,Ie){_e.push(Ie+"="+ie)});var ve=_e.join("&");return ae=ae.indexOf("?")>0?ae+"&"+ve:ae+"?"+ve,fe?ae+"#"+fe:ae}(V,c));var J=new Wf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Yz,{endpoint:V,headers:v,formData:!0,fieldName:i,bundle:!0,withCredentials:g,timeout:h});return J.on("upload-success",function(Z,se){var ee=se.body,ae=ee===void 0?{}:ee;try{D(Z,ae)}catch(fe){console.error("wangEditor upload file - onSuccess error",fe)}J.removeFile(Z.id)}),J.on("progress",function(Z){Z<1||U(Z)}),J.on("error",function(Z){console.error("wangEditor file upload error",Z.stack)}),J.on("upload-error",function(Z,se,ee){try{N(Z,se,ee)}catch(ae){console.error("wangEditor upload file - onError error",ae)}J.removeFile(Z.id)}),J.on("restriction-failed",function(Z,se){try{N(Z,se)}catch(ee){console.error("wangEditor upload file - onError error",ee)}J.removeFile(Z.id)}),J}function io(e){return io=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},io(e)}function Vq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(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){Vq(e,i,n[i])})}return e}function vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PC(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 mi(e,t,n){return t&&PC(e.prototype,t),n&&PC(e,n),e}function La(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ff(e,t){if(t&&(io(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return La(e)}function Ss(e){return Ss=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ss(e)}function Eb(e,t){return Eb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Eb(e,t)}function b0(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&&Eb(e,t)}It&&!Mq&&zq(YB,"name",{configurable:!0,get:function(){try{return Uq(XB,Hq(this))[1]}catch{return""}}});var Wq={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)}},ci=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};vi(this,e),this.init(t,n)}return mi(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||Wq,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,Dt({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Eo=function(){function e(){vi(this,e),this.observers={}}return mi(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 kl(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function NC(e){return e==null?"":""+e}function qq(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Vw(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 IC(e,t,n){var r=Vw(e,t,Object);r.obj[r.k]=n}function Ih(e,t){var n=Vw(e,t),r=n.obj,i=n.k;if(r)return r[i]}function RC(e,t,n){var r=Ih(e,n);return r!==void 0?r:Ih(t,n)}function ZB(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]):ZB(e[r],t[r],n):e[r]=t[r]);return e}function yu(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Gq={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Kq(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Gq[t]}):e}var $0=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function QB(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?QB(s,l,n):void 0}i=i[r[o]]}return i}}var Yq=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return vi(this,t),r=ff(this,Ss(t).call(this)),$0&&Eo.call(La(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 b0(t,Eo),mi(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=Ih(this.data,s);return l||!u||typeof i!="string"?l:QB(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),IC(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=Ih(this.data,s)||{};o?ZB(l,i,a):l=Dt({},l,i),IC(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"?Dt({},{},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}(),eF={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}},jC={},LC=function(e){function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return vi(this,t),r=ff(this,Ss(t).call(this)),$0&&Eo.call(La(r)),qq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,La(r)),r.options=i,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ci.create("translator"),r}return b0(t,Eo),mi(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(io(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 v=this.resolve(n,r),m=v&&v.res,g=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(m),$=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(C&&m&&D&&$.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,m,Dt({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var A=h==="[object Array]",N=A?[]:{},M=A?y:g;for(var U in m)if(Object.prototype.hasOwnProperty.call(m,U)){var V="".concat(M).concat(a).concat(U);N[U]=this.translate(V,Dt({},r,{joinArrays:!1,ns:l})),N[U]===V&&(N[U]=m[U])}m=N}}else if(C&&typeof w=="string"&&h==="[object Array]")(m=m.join(w))&&(m=this.extendTranslation(m,n,r,i));else{var J=!1,Z=!1,se=r.count!==void 0&&typeof r.count!="string",ee=t.hasDefaultValue(r),ae=se?this.pluralResolver.getSuffix(f,r.count):"",fe=r["defaultValue".concat(ae)]||r.defaultValue;!this.isValidLookup(m)&&ee&&(J=!0,m=fe),this.isValidLookup(m)||(Z=!0,m=s);var _e=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ve=_e&&Z?void 0:m,ie=ee&&fe!==m&&this.options.updateMissing;if(Z||J||ie){if(this.logger.log(ie?"updateKey":"missingKey",f,c,s,ie?fe:m),a){var Ie=this.resolve(s,Dt({},r,{keySeparator:!1}));Ie&&Ie.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(H,j,Q){o.options.missingKeyHandler?o.options.missingKeyHandler(H,c,j,ie?Q:ve,ie,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(H,c,j,ie?Q:ve,ie,r),o.emit("missingKey",H,c,j,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&se?T.forEach(function(H){o.pluralResolver.getSuffixes(H).forEach(function(j){I([H],s+j,r["defaultValue".concat(j)]||fe)})}):I(T,s,fe))}m=this.extendTranslation(m,n,r,v,i),Z&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(s)),(Z||J)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{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(Dt({},i,{interpolation:Dt({},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=Dt({},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 m=arguments.length,g=new Array(m),y=0;y<m;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,v=typeof p=="string"?[p]:p;return n!=null&&v&&v.length&&i.applyPostProcessor!==!1&&(n=eF.handle(v,n,r,this.options&&this.options.postProcessPassResolved?Dt({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 v=l.count!==void 0&&typeof l.count!="string",m=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,!jC["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(jC["".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,C=d,D=[C];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(D,d,h,y,l):(v&&($=s.pluralResolver.getSuffix(h,l.count)),v&&m&&D.push(C+$),m&&D.push(C+="".concat(s.options.contextSeparator).concat(l.context)),v&&D.push(C+=$));w=D.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 J1(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Xq=function(){function e(t){vi(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ci.create("languageUtils")}return mi(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]=J1(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]=J1(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=J1(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}(),Jq=[{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}],Zq={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 Qq(){var e={};return Jq.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Zq[t.fc]}})}),e}var eG=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};vi(this,e),this.languageUtils=t,this.options=n,this.logger=ci.create("pluralResolver"),this.rules=Qq()}return mi(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}(),tG=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vi(this,e),this.logger=ci.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return mi(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:Kq,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?yu(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?yu(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?yu(n.nestingPrefix):n.nestingPrefixEscaped||yu("$t("),this.nestingSuffix=n.nestingSuffix?yu(n.nestingSuffix):n.nestingSuffixEscaped||yu(")"),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(m){return m.replace(/\$/g,"$$$$")}var f=function(m){if(m.indexOf(s.formatSeparator)<0){var g=RC(n,l,m);return s.alwaysFormat?s.format(g,void 0,r,Dt({},i,n,{interpolationkey:m})):g}var y=m.split(s.formatSeparator),h=y.shift().trim(),$=y.join(s.formatSeparator).trim();return s.format(RC(n,l,h),$,r,Dt({},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,v=[{regex:this.regexpUnescape,safeValue:function(m){return c(m)}},{regex:this.regexp,safeValue:function(m){return s.escapeValue?c(s.escape(m)):c(m)}}];return v.forEach(function(m){for(u=0;o=m.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=NC(a));var y=m.safeValue(a);if(t=t.replace(o[0],y),p?(m.regex.lastIndex+=y.length,m.regex.lastIndex-=o[0].length):m.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=Dt({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var m=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(m[1]);d=m[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=Dt({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(v).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=NC(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,Dt({},a,{interpolationkey:r[1].trim()}))},i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}]),e}(),nG=function(e){function t(n,r,i){var o,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return vi(this,t),o=ff(this,Ss(t).call(this)),$0&&Eo.call(La(o)),o.backend=n,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=ci.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return b0(t,Eo),mi(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 v="".concat(f,"|").concat(p);!i.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),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 v=Vw(c,f,Object),m=v.obj,g=v.k;m[g]=m[g]||[],p&&(m[g]=m[g].concat(d)),p||m[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,Dt({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,i,o))}}]),t}();function rG(){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(io(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),io(e[2])==="object"||io(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 MC(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 tp(){}var iG=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(vi(this,t),n=ff(this,Ss(t).call(this)),$0&&Eo.call(La(n)),n.options=MC(r),n.services={},n.logger=ci,n.modules={external:[]},i&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,i),ff(n,La(n));setTimeout(function(){n.init(r,i)},0)}return n}return b0(t,Eo),mi(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=Dt({},rG(),this.options,MC(r)),this.format=this.options.interpolation.format,i||(i=tp),!this.options.isClone){this.modules.logger?ci.init(o(this.modules.logger),this.options):ci.init(null,this.options);var a=new Xq(this.options);this.store=new Yq(this.options.resources,this.options);var u=this.services;u.logger=ci,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new eG(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new tG(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new nG(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];n.emit.apply(n,[p].concat(m))}),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 LC(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];n.emit.apply(n,[p].concat(m))}),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 v;return(v=n.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments),n}});var f=kl(),d=function(){var p=function(v,m){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(m),i(v,m)};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]:tp,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=kl();return n||(n=this.languages),r||(r=this.options.ns),i||(i=tp),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"&&eF.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=kl();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(io(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=Dt({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=o.options.keySeparator||".",m=i?"".concat(i).concat(v).concat(s):s;return o.t(m,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=kl();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=kl();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]:tp,o=Dt({},this.options,r,{isClone:!0}),a=new t(o),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Dt({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new LC(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}(),Rh=new iG,oG="translation";function mn(e,t){Rh.addResourceBundle(e,oG,t,!0,!0)}Rh.init({lng:"zh-CN",resources:{}});var G=Rh.t.bind(Rh),aG={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},uG={editor:{more:"\u66F4\u591A",justify:"\u5BF9\u9F50",indent:"\u7F29\u8FDB",image:"\u56FE\u7247",video:"\u89C6\u9891"}};mn("en",aG);mn("zh-CN",uG);mn("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"}}),mn("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 sG={type:"paragraph",renderElem:function(e,t,n){return de("p",null,t)}},lG={type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}},jh=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function cG(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w0(e){var t={exports:{}};return e(t,t.exports),t.exports}var ki,Vp,np=function(e){return e&&e.Math==Math&&e},ge=np(typeof globalThis=="object"&&globalThis)||np(typeof window=="object"&&window)||np(typeof self=="object"&&self)||np(typeof jh=="object"&&jh)||function(){return this}()||Function("return this")(),ut=function(e){try{return!!e()}catch{return!0}},hr=!ut(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_l=Function.prototype.call,ht=_l.bind?_l.bind(_l):function(){return _l.apply(_l,arguments)},zC={}.propertyIsEnumerable,HC=Object.getOwnPropertyDescriptor,fG=HC&&!zC.call({1:2},1)?function(e){var t=HC(this,e);return!!t&&t.enumerable}:zC,tF={f:fG},Ww=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nF=Function.prototype,Cb=nF.bind,Db=nF.call,dG=Cb&&Cb.bind(Db),le=Cb?function(e){return e&&dG(Db,e)}:function(e){return e&&function(){return Db.apply(e,arguments)}},pG=le({}.toString),hG=le("".slice),oo=function(e){return hG(pG(e),8,-1)},Z1=ge.Object,gG=le("".split),E0=ut(function(){return!Z1("z").propertyIsEnumerable(0)})?function(e){return oo(e)=="String"?gG(e,""):Z1(e)}:Z1,vG=ge.TypeError,er=function(e){if(e==null)throw vG("Can't call method on "+e);return e},zs=function(e){return E0(er(e))},Vt=function(e){return typeof e=="function"},Vn=function(e){return typeof e=="object"?e!==null:Vt(e)},mG=function(e){return Vt(e)?e:void 0},Xf=function(e,t){return arguments.length<2?mG(ge[e]):ge[e]&&ge[e][t]},rF=le({}.isPrototypeOf),Q1=Xf("navigator","userAgent")||"",UC=ge.process,VC=ge.Deno,WC=UC&&UC.versions||VC&&VC.version,qC=WC&&WC.v8;qC&&(Vp=(ki=qC.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!Vp&&Q1&&(!(ki=Q1.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=Q1.match(/Chrome\/(\d+)/))&&(Vp=+ki[1]);var Sb=Vp,xb=!!Object.getOwnPropertySymbols&&!ut(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sb&&Sb<41}),qw=xb&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yG=ge.Object,Ab=qw?function(e){return typeof e=="symbol"}:function(e){var t=Xf("Symbol");return Vt(t)&&rF(t.prototype,yG(e))},bG=ge.String,iF=function(e){try{return bG(e)}catch{return"Object"}},$G=ge.TypeError,oF=function(e){if(Vt(e))return e;throw $G(iF(e)+" is not a function")},C0=function(e,t){var n=e[t];return n==null?void 0:oF(n)},wG=ge.TypeError,EG=Object.defineProperty,Gw=function(e,t){try{EG(ge,e,{value:t,configurable:!0,writable:!0})}catch{ge[e]=t}return t},ao=ge["__core-js_shared__"]||Gw("__core-js_shared__",{}),Kw=w0(function(e){(e.exports=function(t,n){return ao[t]||(ao[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),CG=ge.Object,Jf=function(e){return CG(er(e))},DG=le({}.hasOwnProperty),Kn=Object.hasOwn||function(e,t){return DG(Jf(e),t)},SG=0,xG=Math.random(),AG=le(1 .toString),aF=function(e){return"Symbol("+(e===void 0?"":e)+")_"+AG(++SG+xG,36)},Pl=Kw("wks"),ya=ge.Symbol,GC=ya&&ya.for,OG=qw?ya:ya&&ya.withoutSetter||aF,Pn=function(e){if(!Kn(Pl,e)||!xb&&typeof Pl[e]!="string"){var t="Symbol."+e;xb&&Kn(ya,e)?Pl[e]=ya[e]:Pl[e]=qw&&GC?GC(t):OG(t)}return Pl[e]},BG=ge.TypeError,FG=Pn("toPrimitive"),TG=function(e,t){if(!Vn(e)||Ab(e))return e;var n,r=C0(e,FG);if(r){if(t===void 0&&(t="default"),n=ht(r,e,t),!Vn(n)||Ab(n))return n;throw BG("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Vt(a=i.toString)&&!Vn(u=ht(a,i))||Vt(a=i.valueOf)&&!Vn(u=ht(a,i))||o!=="string"&&Vt(a=i.toString)&&!Vn(u=ht(a,i)))return u;throw wG("Can't convert object to primitive value")}(e,t)},Yw=function(e){var t=TG(e,"string");return Ab(t)?t:t+""},Ob=ge.document,kG=Vn(Ob)&&Vn(Ob.createElement),Xw=function(e){return kG?Ob.createElement(e):{}},uF=!hr&&!ut(function(){return Object.defineProperty(Xw("div"),"a",{get:function(){return 7}}).a!=7}),KC=Object.getOwnPropertyDescriptor,Jw={f:hr?KC:function(e,t){if(e=zs(e),t=Yw(t),uF)try{return KC(e,t)}catch{}if(Kn(e,t))return Ww(!ht(tF.f,e,t),e[t])}},_G=ge.String,PG=ge.TypeError,Fn=function(e){if(Vn(e))return e;throw PG(_G(e)+" is not an object")},NG=ge.TypeError,YC=Object.defineProperty,Hs={f:hr?YC:function(e,t,n){if(Fn(e),t=Yw(t),Fn(n),uF)try{return YC(e,t,n)}catch{}if("get"in n||"set"in n)throw NG("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xs=hr?function(e,t,n){return Hs.f(e,t,Ww(1,n))}:function(e,t,n){return e[t]=n,e},IG=le(Function.toString);Vt(ao.inspectSource)||(ao.inspectSource=function(e){return IG(e)});var Lh,Nc,Mh,Zw=ao.inspectSource,XC=ge.WeakMap,RG=Vt(XC)&&/native code/.test(Zw(XC)),JC=Kw("keys"),sF=function(e){return JC[e]||(JC[e]=aF(e))},Qw={},Bb=ge.TypeError,jG=ge.WeakMap;if(RG||ao.state){var qo=ao.state||(ao.state=new jG),LG=le(qo.get),ZC=le(qo.has),MG=le(qo.set);Lh=function(e,t){if(ZC(qo,e))throw new Bb("Object already initialized");return t.facade=e,MG(qo,e,t),t},Nc=function(e){return LG(qo,e)||{}},Mh=function(e){return ZC(qo,e)}}else{var bu=sF("state");Qw[bu]=!0,Lh=function(e,t){if(Kn(e,bu))throw new Bb("Object already initialized");return t.facade=e,xs(e,bu,t),t},Nc=function(e){return Kn(e,bu)?e[bu]:{}},Mh=function(e){return Kn(e,bu)}}var Fb={set:Lh,get:Nc,has:Mh,enforce:function(e){return Mh(e)?Nc(e):Lh(e,{})},getterFor:function(e){return function(t){var n;if(!Vn(t)||(n=Nc(t)).type!==e)throw Bb("Incompatible receiver, "+e+" required");return n}}},lF=Function.prototype,zG=hr&&Object.getOwnPropertyDescriptor,em=Kn(lF,"name"),D0={EXISTS:em,PROPER:em&&function(){}.name==="something",CONFIGURABLE:em&&(!hr||hr&&zG(lF,"name").configurable)},df=w0(function(e){var t=D0.CONFIGURABLE,n=Fb.get,r=Fb.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;Vt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Kn(u,"name")||t&&u.name!==p)&&xs(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==ge?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:xs(o,a,u)):f?o[a]=u:Gw(a,u)})(Function.prototype,"toString",function(){return Vt(this)&&n(this).source||Zw(this)})}),HG=Math.ceil,UG=Math.floor,Us=function(e){var t=+e;return t!=t||t===0?0:(t>0?UG:HG)(t)},VG=Math.max,WG=Math.min,pf=function(e,t){var n=Us(e);return n<0?VG(n+t,0):WG(n,t)},qG=Math.min,Zf=function(e){return e>0?qG(Us(e),9007199254740991):0},S0=function(e){return Zf(e.length)},QC=function(e){return function(t,n,r){var i,o=zs(t),a=S0(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}},cF={includes:QC(!0),indexOf:QC(!1)},GG=cF.indexOf,eD=le([].push),fF=function(e,t){var n,r=zs(e),i=0,o=[];for(n in r)!Kn(Qw,n)&&Kn(r,n)&&eD(o,n);for(;t.length>i;)Kn(r,n=t[i++])&&(~GG(o,n)||eD(o,n));return o},zh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],KG=zh.concat("length","prototype"),YG={f:Object.getOwnPropertyNames||function(e){return fF(e,KG)}},dF={f:Object.getOwnPropertySymbols},XG=le([].concat),JG=Xf("Reflect","ownKeys")||function(e){var t=YG.f(Fn(e)),n=dF.f;return n?XG(t,n(e)):t},ZG=function(e,t){for(var n=JG(t),r=Hs.f,i=Jw.f,o=0;o<n.length;o++){var a=n[o];Kn(e,a)||r(e,a,i(t,a))}},QG=/#|\.prototype\./,Qf=function(e,t){var n=tK[eK(e)];return n==rK||n!=nK&&(Vt(t)?ut(t):!!t)},eK=Qf.normalize=function(e){return String(e).replace(QG,".").toLowerCase()},tK=Qf.data={},nK=Qf.NATIVE="N",rK=Qf.POLYFILL="P",iK=Qf,oK=Jw.f,Pt=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?ge:l?ge[u]||Gw(u,{}):(ge[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=oK(n,r))&&a.value:n[r],!iK(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;ZG(o,i)}(e.sham||i&&i.sham)&&xs(o,"sham",!0),df(n,r,o,e)}},tD=le(le.bind),Hh=Array.isArray||function(e){return oo(e)=="Array"},pF={};pF[Pn("toStringTag")]="z";var e3=String(pF)==="[object z]",aK=Pn("toStringTag"),uK=ge.Object,sK=oo(function(){return arguments}())=="Arguments",t3=e3?oo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=uK(e),aK))=="string"?n:sK?oo(t):(r=oo(t))=="Object"&&Vt(t.callee)?"Arguments":r},hF=function(){},lK=[],gF=Xf("Reflect","construct"),n3=/^\s*(?:class|function)\b/,cK=le(n3.exec),fK=!n3.exec(hF),Nl=function(e){if(!Vt(e))return!1;try{return gF(hF,lK,e),!0}catch{return!1}},r3=!gF||ut(function(){var e;return Nl(Nl.call)||!Nl(Object)||!Nl(function(){e=!0})||e})?function(e){if(!Vt(e))return!1;switch(t3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fK||!!cK(n3,Zw(e))}:Nl,dK=Pn("species"),nD=ge.Array,pK=function(e,t){return new(function(n){var r;return Hh(n)&&(r=n.constructor,(r3(r)&&(r===nD||Hh(r.prototype))||Vn(r)&&(r=r[dK])===null)&&(r=void 0)),r===void 0?nD:r}(e))(t===0?0:t)},rD=le([].push),_i=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,v=Jf(s),m=E0(v),g=function(C,D){return oF(C),D===void 0?C:tD?tD(C,D):function(){return C.apply(D,arguments)}}(l,c),y=S0(m),h=0,$=f||pK,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:rD(w,d)}else switch(e){case 4:return!1;case 7:rD(w,d)}return o?-1:r||i?i:w}},x0={forEach:_i(0),map:_i(1),filter:_i(2),some:_i(3),every:_i(4),find:_i(5),findIndex:_i(6),filterReject:_i(7)},hK=Pn("species"),i3=function(e){return Sb>=51||!ut(function(){var t=[];return(t.constructor={})[hK]=function(){return{foo:1}},t[e](Boolean).foo!==1})},gK=x0.filter;Pt({target:"Array",proto:!0,forced:!i3("filter")},{filter:function(e){return gK(this,e,arguments.length>1?arguments[1]:void 0)}});var vK=e3?{}.toString:function(){return"[object "+t3(this)+"]"};e3||df(Object.prototype,"toString",vK,{unsafe:!0});var rp,mK=ge.String,it=function(e){if(t3(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mK(e)},vF=function(){var e=Fn(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},o3=ge.RegExp,Tb=ut(function(){var e=o3("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),yK=Tb||ut(function(){return!o3("a","y").sticky}),mF={BROKEN_CARET:Tb||ut(function(){var e=o3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:yK,UNSUPPORTED_Y:Tb},ts=Object.keys||function(e){return fF(e,zh)},bK=hr?Object.defineProperties:function(e,t){Fn(e);for(var n,r=zs(t),i=ts(t),o=i.length,a=0;o>a;)Hs.f(e,n=i[a++],r[n]);return e},$K=Xf("document","documentElement"),yF=sF("IE_PROTO"),tm=function(){},bF=function(e){return"<script>"+e+"<\/script>"},iD=function(e){e.write(bF("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wp=function(){try{rp=new ActiveXObject("htmlfile")}catch{}var e,t;Wp=typeof document!="undefined"?document.domain&&rp?iD(rp):((t=Xw("iframe")).style.display="none",$K.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bF("document.F=Object")),e.close(),e.F):iD(rp);for(var n=zh.length;n--;)delete Wp.prototype[zh[n]];return Wp()};Qw[yF]=!0;var oD,nm,$F=Object.create||function(e,t){var n;return e!==null?(tm.prototype=Fn(e),n=new tm,tm.prototype=null,n[yF]=e):n=Wp(),t===void 0?n:bK(n,t)},wK=ge.RegExp,EK=ut(function(){var e=wK(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),CK=ge.RegExp,DK=ut(function(){var e=CK("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),SK=Fb.get,xK=Kw("native-string-replace",String.prototype.replace),Uh=RegExp.prototype.exec,kb=Uh,AK=le("".charAt),OK=le("".indexOf),BK=le("".replace),rm=le("".slice),im=(nm=/b*/g,ht(Uh,oD=/a/,"a"),ht(Uh,nm,"a"),oD.lastIndex!==0||nm.lastIndex!==0),aD=mF.BROKEN_CARET,om=/()??/.exec("")[1]!==void 0;(im||om||aD||EK||DK)&&(kb=function(e){var t,n,r,i,o,a,u,s=this,l=SK(s),c=it(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ht(kb,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=aD&&s.sticky,v=ht(vF,s),m=s.source,g=0,y=c;if(p&&(v=BK(v,"y",""),OK(v,"g")===-1&&(v+="g"),y=rm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&AK(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),om&&(n=new RegExp("^"+m+"$(?!\\s)",v)),im&&(r=s.lastIndex),i=ht(Uh,p?n:s,y),p?i?(i.input=rm(i.input,g),i[0]=rm(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),om&&i&&i.length>1&&ht(xK,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=$F(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var hf=kb;Pt({target:"RegExp",proto:!0,forced:/./.exec!==hf},{exec:hf});var a3=Function.prototype,uD=a3.apply,FK=a3.bind,sD=a3.call,wF=typeof Reflect=="object"&&Reflect.apply||(FK?sD.bind(uD):function(){return sD.apply(uD,arguments)}),TK=Pn("species"),am=RegExp.prototype,u3=function(e,t,n,r){var i=Pn(e),o=!ut(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!ut(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[TK]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=le(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=le(l),m=c.exec;return m===hf||m===am.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});df(String.prototype,e,s[0]),df(am,i,s[1])}r&&xs(am[i],"sham",!0)},kK=le("".charAt),lD=le("".charCodeAt),_K=le("".slice),cD=function(e){return function(t,n){var r,i,o=it(er(t)),a=Us(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=lD(o,a))<55296||r>56319||a+1===u||(i=lD(o,a+1))<56320||i>57343?e?kK(o,a):r:e?_K(o,a,a+2):i-56320+(r-55296<<10)+65536}},PK={codeAt:cD(!1),charAt:cD(!0)}.charAt,s3=function(e,t,n){return t+(n?PK(e,t).length:1)},NK=Math.floor,um=le("".charAt),IK=le("".replace),sm=le("".slice),RK=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jK=/\$([$&'`]|\d{1,2})/g,LK=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=jK;return i!==void 0&&(i=Jf(i),s=RK),IK(o,s,function(l,c){var f;switch(um(c,0)){case"$":return"$";case"&":return e;case"`":return sm(t,0,n);case"'":return sm(t,a);case"<":f=i[sm(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=NK(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})},MK=ge.TypeError,gf=function(e,t){var n=e.exec;if(Vt(n)){var r=ht(n,e,t);return r!==null&&Fn(r),r}if(oo(e)==="RegExp")return ht(hf,e,t);throw MK("RegExp#exec called on incompatible receiver")},_b=Pn("replace"),zK=Math.max,HK=Math.min,UK=le([].concat),lm=le([].push),fD=le("".indexOf),dD=le("".slice),VK="a".replace(/./,"$0")==="$0",pD=!!/./[_b]&&/./[_b]("a","$0")==="";u3("replace",function(e,t,n){var r=pD?"$":"$0";return[function(i,o){var a=er(this),u=i==null?void 0:C0(i,_b);return u?ht(u,i,a,o):ht(t,it(a),i,o)},function(i,o){var a=Fn(this),u=it(i);if(typeof o=="string"&&fD(o,r)===-1&&fD(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Vt(o);l||(o=it(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=gf(a,u);if(p===null||(lm(d,p),!c))break;it(p[0])===""&&(a.lastIndex=s3(u,Zf(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=it((p=d[y])[0]),$=zK(HK(Us(p.index),u.length),0),w=[],C=1;C<p.length;C++)lm(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=UK([h],w,$,u);D!==void 0&&lm(A,D);var N=it(wF(o,void 0,A))}else N=LK(h,u,$,w,D,o);$>=g&&(m+=dD(u,g,$)+N,g=$+h.length)}return m+dD(u,g)}]},!!ut(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!VK||pD);var Pb=Pn("unscopables"),Nb=Array.prototype;Nb[Pb]==null&&Hs.f(Nb,Pb,{configurable:!0,value:$F(null)});var EF=function(e){Nb[Pb][e]=!0},WK=x0.find,hD=!0;"find"in[]&&Array(1).find(function(){hD=!1}),Pt({target:"Array",proto:!0,forced:hD},{find:function(e){return WK(this,e,arguments.length>1?arguments[1]:void 0)}}),EF("find");var qK=Pn("match"),CF=function(e){var t;return Vn(e)&&((t=e[qK])!==void 0?!!t:oo(e)=="RegExp")},GK=ge.TypeError,KK=Pn("species"),YK=function(e,t){var n,r=Fn(e).constructor;return r===void 0||(n=Fn(r)[KK])==null?t:function(i){if(r3(i))return i;throw GK(iF(i)+" is not a constructor")}(n)},DF=function(e,t,n){var r=Yw(t);r in e?Hs.f(e,r,Ww(0,n)):e[r]=n},XK=ge.Array,JK=Math.max,gD=function(e,t,n){for(var r=S0(e),i=pf(t,r),o=pf(n===void 0?r:n,r),a=XK(JK(o-i,0)),u=0;i<o;i++,u++)DF(a,u,e[i]);return a.length=u,a},$u=mF.UNSUPPORTED_Y,ZK=Math.min,SF=[].push,QK=le(/./.exec),wu=le(SF),Il=le("".slice);u3("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=it(er(this)),u=o===void 0?4294967295:o>>>0;if(u===0)return[];if(i===void 0)return[a];if(!CF(i))return ht(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,v=new RegExp(i.source,d+"g");(s=ht(hf,v,a))&&!((l=v.lastIndex)>p&&(wu(f,Il(a,p,s.index)),s.length>1&&s.index<a.length&&wF(SF,f,gD(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&QK(v,"")||wu(f,""):wu(f,Il(a,p)),f.length>u?gD(f,0,u):f}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:ht(t,this,i,o)}:t,[function(i,o){var a=er(this),u=i==null?void 0:C0(i,e);return u?ht(u,i,a,o):ht(r,it(a),i,o)},function(i,o){var a=Fn(this),u=it(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=YK(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+($u?"g":"y"),d=new l($u?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return gf(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=$u?0:m;var y,h=gf(d,$u?Il(u,m):u);if(h===null||(y=ZK(Zf(d.lastIndex+($u?m:0)),u.length))===v)m=s3(u,m,c);else{if(wu(g,Il(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(wu(g,h[$]),g.length===p)return g;m=v=y}}return wu(g,Il(u,v)),g}]},!!ut(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"}),$u);var Rl,Ib=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,vD=le("".replace),Vh="["+Ib+"]",eY=RegExp("^"+Vh+Vh+"*"),tY=RegExp(Vh+Vh+"*$"),cm=function(e){return function(t){var n=it(er(t));return 1&e&&(n=vD(n,eY,"")),2&e&&(n=vD(n,tY,"")),n}},nY={start:cm(1),end:cm(2),trim:cm(3)},rY=D0.PROPER,iY=nY.trim;function l3(e){return O("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function Vs(e){return e.length===0?"":e[0].outerHTML}function Ws(e){return e.length?e[0].tagName.toLowerCase():""}function dr(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}Pt({target:"String",proto:!0,forced:(Rl="trim",ut(function(){return!!Ib[Rl]()||"\u200B\x85\u180E"[Rl]()!=="\u200B\x85\u180E"||rY&&Ib[Rl].name!==Rl}))},{trim:function(){return iY(this)}}),Pt({global:!0},{globalThis:ge}),vh&&(O.fn.css=vh),Ur&&(O.fn.append=Ur),f6&&(O.fn.prepend=f6),cs&&(O.fn.addClass=cs),fs&&(O.fn.removeClass=fs),ds&&(O.fn.hasClass=ds),Hr&&(O.fn.on=Hr),u6&&(O.fn.off=u6),$o&&(O.fn.focus=$o),Mr&&(O.fn.attr=Mr),dh&&(O.fn.removeAttr=dh),hs&&(O.fn.hide=hs),gh&&(O.fn.show=gh),$h&&(O.fn.parents=$h),ps&&(O.fn.dataset=ps),zr&&(O.fn.val=zr),yh&&(O.fn.text=yh),bo&&(O.fn.html=bo),vs&&(O.fn.children=vs),ms&&(O.fn.remove=ms),gs&&(O.fn.find=gs),ph&&(O.fn.width=ph),hh&&(O.fn.height=hh),l6&&(O.fn.filter=l6),ys&&(O.fn.empty=ys);var oY={selector:"p",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},Rb=function(e,t){return Rb=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])},Rb(e,t)};/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function tt(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}Rb(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Co=function(){return Co=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},Co.apply(this,arguments)};function _o(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 Po(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 xF(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 mD(e){var t=ke(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(!te.isElement(r)||r.type==="paragraph"||q.string(r)!=="")return!1;var i=r.children,o=i===void 0?[]:i;return!!X.isText(o[0])&&(P.setNodes(e,{type:"paragraph"}),!0)}var aY={renderElems:[sG],elemsToHtml:[lG],parseElemsHtml:[oY],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(i){mD(r)||t(i)},r.deleteForward=function(i){mD(r)||n(i)},r}},uY=/"/g,sY=le("".replace),Cc=function(e,t,n,r){var i=it(er(e)),o="<"+t;return n!==""&&(o+=" "+n+'="'+sY(it(r),uY,""")+'"'),o+">"+i+"</"+t+">"},Dc=function(e){return ut(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function fm(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 Go(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Pt({target:"String",proto:!0,forced:Dc("bold")},{bold:function(){return Cc(this,"b","","")}}),Pt({target:"String",proto:!0,forced:Dc("italics")},{italics:function(){return Cc(this,"i","","")}}),Pt({target:"String",proto:!0,forced:Dc("sub")},{sub:function(){return Cc(this,"sub","","")}}),Pt({target:"String",proto:!0,forced:Dc("sup")},{sup:function(){return Cc(this,"sup","","")}});var yD={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},dm=Xw("span").classList,bD=dm&&dm.constructor&&dm.constructor.prototype,lY=bD===Object.prototype?void 0:bD,AF=function(e,t){var n=[][e];return!!n&&ut(function(){n.call(null,t||function(){throw 1},1)})},cY=x0.forEach,pm=AF("forEach")?[].forEach:function(e){return cY(this,e,arguments.length>1?arguments[1]:void 0)},OF=function(e){if(e&&e.forEach!==pm)try{xs(e,"forEach",pm)}catch{e.forEach=pm}};for(var hm in yD)yD[hm]&&OF(ge[hm]&&ge[hm].prototype);function BF(e,t){return e.selection==null||!!ke(E.nodes(e,{match:function(n){return x.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function fY(e,t){Object.keys(t).forEach(function(n){n!=="text"&&E.removeMark(e,n)})}OF(lY),Pt({target:"Object",stat:!0,forced:ut(function(){ts(1)})},{keys:function(e){return ts(Jf(e))}});var Za=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]:!!ke(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 BF(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}(),dY='<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>',pY='<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>',hY='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',gY='<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>',vY='<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>',FF='<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>',TF='<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>',mY='<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>',yY='<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>',bY='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',$Y='<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>',wY='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',EY='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',CY='<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>',DY='<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>',SY='<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>',xY='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',AY='<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>',OY='<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>',BY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=G("textStyle.bold"),n.iconSvg=dY,n.hotkey="mod+b",n}return tt(t,e),t}(Za),FY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=G("textStyle.code"),n.iconSvg=vY,n.hotkey="mod+e",n}return tt(t,e),t}(Za),TY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=G("textStyle.italic"),n.iconSvg=hY,n.hotkey="mod+i",n}return tt(t,e),t}(Za),kY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=G("textStyle.through"),n.iconSvg=gY,n.hotkey="mod+shift+x",n}return tt(t,e),t}(Za),_Y=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=G("textStyle.underline"),n.iconSvg=pY,n.hotkey="mod+u",n}return tt(t,e),t}(Za),PY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=G("textStyle.sub"),n.iconSvg=OY,n.hotkey="",n}return tt(t,e),t}(Za),NY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=G("textStyle.sup"),n.iconSvg=AY,n.hotkey="",n}return tt(t,e),t}(Za),IY=function(){function e(){this.title=G("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 BF(t)},e.prototype.exec=function(t,n){var r,i,o=E.nodes(t,{match:function(s){return X.isText(s)},universal:!0});try{for(var a=xF(o),u=a.next();!u.done;u=a.next())fY(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}(),RY={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=de("strong",null,c)),a&&(c=de("code",null,c)),i&&(c=de("em",null,c)),o&&(c=de("u",null,c)),u&&(c=de("s",null,c)),s&&(c=de("sub",null,c)),l&&(c=de("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new BY}},{key:"underline",factory:function(){return new _Y}},{key:"italic",factory:function(){return new TY}},{key:"through",factory:function(){return new kY}},{key:"code",factory:function(){return new FY}},{key:"sub",factory:function(){return new PY}},{key:"sup",factory:function(){return new NY}},{key:"clearStyle",factory:function(){return new IY}}],styleToHtml:function(e,t){if(!X.isText(e))return t;if(l3(t))return fm(e,t);var n=O(t);if(Ws(n)==="br")return fm(e,"<br>");var r=n.html();return r=fm(e,r),n.html(r),Vs(n)},parseStyleHtml:function(e,t,n){var r=O(e);if(!X.isText(t))return t;var i=t;return Go(r,"b,strong")&&(i.bold=!0),Go(r,"i,em")&&(i.italic=!0),Go(r,"u")&&(i.underline=!0),Go(r,"s,strike")&&(i.through=!0),Go(r,"sub")&&(i.sub=!0),Go(r,"sup")&&(i.sup=!0),Go(r,"code")&&(i.code=!0),i}};function ed(e){return function(t,n,r){return de("h"+e,null,n)}}var jY={type:"header1",renderElem:ed(1)},LY={type:"header2",renderElem:ed(2)},MY={type:"header3",renderElem:ed(3)},zY={type:"header4",renderElem:ed(4)},HY={type:"header5",renderElem:ed(5)},UY=D0.PROPER,jb=RegExp.prototype,kF=jb.toString,VY=le(vF),WY=ut(function(){return kF.call({source:"a",flags:"b"})!="/a/b"}),qY=UY&&kF.name!="toString";(WY||qY)&&df(RegExp.prototype,"toString",function(){var e=Fn(this),t=it(e.source),n=e.flags;return"/"+t+"/"+it(n===void 0&&rF(jb,e)&&!("flags"in jb)?VY(e):n)},{unsafe:!0});var gm,GY=ge.TypeError,_F=function(e){if(CF(e))throw GY("The method doesn't accept regular expressions");return e},KY=Pn("match"),PF=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[KY]=!1,"/./"[e](t)}catch{}}return!1},YY=Jw.f,$D=le("".startsWith),XY=le("".slice),JY=Math.min,wD=PF("startsWith");function NF(e){var t=ke(E.nodes(e,{match:function(i){return x.getNodeType(i).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=ke(n,1)[0];return x.getNodeType(r)}function IF(e){return e.selection==null||!ke(E.nodes(e,{match:function(t){var n=x.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function RF(e,t){t&&P.setNodes(e,{type:t})}Pt({target:"String",proto:!0,forced:!!(wD||(gm=YY(String.prototype,"startsWith"),!gm||gm.writable))&&!wD},{startsWith:function(e){var t=it(er(this));_F(e);var n=Zf(JY(arguments.length>1?arguments[1]:void 0,t.length)),r=it(e);return $D?$D(t,r,n):XY(t,n,n+r.length)===r}});var ZY=function(){function e(){this.title=G("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:G("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 NF(t)},e.prototype.isDisabled=function(t){return IF(t)},e.prototype.exec=function(t,n){RF(t,n.toString())},e}(),td=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return NF(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return IF(t)},e.prototype.exec=function(t,n){var r=this.type;RF(t,n===r?"paragraph":r)},e}(),QY=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return tt(t,e),t}(td),eX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return tt(t,e),t}(td),tX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return tt(t,e),t}(td),nX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return tt(t,e),t}(td),rX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return tt(t,e),t}(td),iX={key:"headerSelect",factory:function(){return new ZY}},oX={key:"header1",factory:function(){return new QY}},aX={key:"header2",factory:function(){return new eX}},uX={key:"header3",factory:function(){return new tX}},sX={key:"header4",factory:function(){return new nX}},lX={key:"header5",factory:function(){return new rX}};function jl(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Ll(e){return function(t,n,r){var i=O(t);return(n=n.filter(function(o){return!!X.isText(o)||!!r.isInline(o)})).length===0&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var cX={renderElems:[jY,LY,MY,zY,HY],elemsToHtml:[{type:"header1",elemToHtml:jl(1)},{type:"header2",elemToHtml:jl(2)},{type:"header3",elemToHtml:jl(3)},{type:"header4",elemToHtml:jl(4)},{type:"header5",elemToHtml:jl(5)}],parseElemsHtml:[{selector:"h1",parseElemHtml:Ll(1)},{selector:"h2",parseElemHtml:Ll(2)},{selector:"h3",parseElemHtml:Ll(3)},{selector:"h4",parseElemHtml:Ll(4)},{selector:"h5",parseElemHtml:Ll(5)}],menus:[iX,oX,aX,uX,sX,lX],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=ke(E.nodes(n,{match:function(i){return x.getNodeType(i).startsWith("header")},universal:!0}),1)[0];r&&x.isSelectionAtLineEnd(e,r[1])?P.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Eu=Object.assign,ED=Object.defineProperty,fX=le([].concat),CD=!Eu||ut(function(){if(hr&&Eu({b:1},Eu(ED({},"a",{enumerable:!0,get:function(){ED(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}),Eu({},e)[n]!=7||ts(Eu({},t)).join("")!=r})?function(e,t){for(var n=Jf(e),r=arguments.length,i=1,o=dF.f,a=tF.f;r>i;)for(var u,s=E0(arguments[i++]),l=o?fX(ts(s),o(s)):ts(s),c=l.length,f=0;c>f;)u=l[f++],hr&&!ht(a,s,u)||(n[u]=s[u]);return n}:Eu;function Ma(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Pt({target:"Object",stat:!0,forced:Object.assign!==CD},{assign:CD});var dX={selector:"font",preParseHtml:function(e){var t=O(e);if(Ws(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},jF=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||!!ke(E.nodes(t,{match:function(n){return x.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=G("color.default")),n==="bgColor"&&(u=G("color.clear"));var s=O(`
- <li data-value="0" class="clear">
- <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>
- `+u+`
- </li>
- `);return i.prepend(s),i[0]},e}(),pX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("color.color"),n.iconSvg=mY,n.mark="color",n}return tt(t,e),t}(jF),hX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("color.bgColor"),n.iconSvg=yY,n.mark="bgColor",n}return tt(t,e),t}(jF),DD=["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)"],gX={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,o=t;return r&&Ma(o,{color:r}),i&&Ma(o,{backgroundColor:i}),o},styleToHtml:function(e,t){if(!X.isText(e))return t;var n,r=e,i=r.color,o=r.bgColor;return i||o?((l3(t)||Ws(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),i&&n.css("color",i),o&&n.css("background-color",o),Vs(n)):t},preParseHtml:[dX],parseStyleHtml:function(e,t,n){var r=O(e);if(!X.isText(t))return t;var i=t,o=dr(r,"color");o&&(i.color=o);var a=dr(r,"background-color");return a||(a=dr(r,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new pX},config:{colors:DD}},{key:"bgColor",factory:function(){return new hX},config:{colors:DD}}]},vX=function(e){if(typeof e!="string")return!1;var t=e.match(mX);if(!t)return!1;var n=t[1];return n?!!(yX.test(n)||bX.test(n)):!1},mX=/^(?:\w+:)?\/\/(\S+)$/,yX=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,bX=/^[^\s\.]+\.\S{2,}$/,$X=cF.includes;function A0(e){return e===void 0&&(e="r"),e+"-"+Y9()}function c3(e){return e.replace(/</g,"<").replace(/>/g,">")}function LF(e,t,n,r){return _o(this,void 0,void 0,function(){var i,o;return Po(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 MF(e,t,n){return _o(this,void 0,void 0,function(){var r;return Po(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 f3(e){return e.selection==null||!!x.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function vm(e,t){return{type:"link",url:c3(e),children:t?[{text:t}]:[]}}function zF(e,t,n){return _o(this,void 0,void 0,function(){var r,i,o;return Po(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),f3(e)?[2]:[4,LF("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,MF("insertLink",e,n)]:[2];case 2:return r=a.sent(),(i=e.selection)==null?[2]:(R.isCollapsed(i)?(e.insertText(" "),o=vm(r,t),P.insertNodes(e,o),e.insertFragment([{text:" "}])):E.string(e,i)!==t?(e.deleteFragment(),o=vm(r,t),P.insertNodes(e,o)):(o=vm(r),P.wrapNodes(e,o,{split:!0}),P.collapse(e,{edge:"end"})),[2])}})})}Pt({target:"Array",proto:!0},{includes:function(e){return $X(this,e,arguments.length>1?arguments[1]:void 0)}}),EF("includes");var wX={type:"link",renderElem:function(e,t,n){var r=e,i=r.url,o=r.target;return de("a",{href:i,target:o===void 0?"_blank":o},t)}},EX={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>"}},CX={selector:"a",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.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 mm(){return A0("w-e-insert-link")}var DX=function(){function e(){this.title=G("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=mm(),this.urlInputId=mm(),this.buttonId=mm()}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 f3(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=ke(Sn(G("link.text"),i),2),s=u[0],l=u[1],c=O(l),f=ke(Sn(G("link.url"),o),2),d=f[0],p=f[1],v=O(p),m=ke(Ms(a,G("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(),C=g.find("#"+o).val();zF(t,w,C),t.hidePanelOrModal()}),this.$content=g}var y=this.$content;if(y.empty(),y.append(s),y.append(d),y.append(m),n==null||R.isCollapsed(n))c.val("");else{var h=E.string(t,n);c.val(h)}return v.val(""),setTimeout(function(){c.focus()}),y[0]},e}();function SD(){return A0("w-e-update-link")}var SX=function(){function e(){this.title=G("link.edit"),this.iconSvg=FF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=SD(),this.buttonId=SD()}return e.prototype.getSelectedLinkElem=function(t){var n=x.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 x.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,i=ke(Sn(G("link.url"),n),2),o=i[0],a=i[1],u=O(a),s=ke(Ms(r,G("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=x.getSelectedNodeByType(t,"link"),v=p?q.string(p):"",m=l.find("#"+n).val();(function(g,y,h){_o(this,void 0,void 0,function(){var $,w;return Po(this,function(C){switch(C.label){case 0:return h?[4,LF("editLink",g,y,h)]:[2];case 1:return C.sent()?[4,MF("editLink",g,h)]:[2];case 2:return $=C.sent(),w={url:c3($)},P.setNodes(g,w,{match:function(D){return x.checkNodeType(D,"link")}}),[2]}})})})(t,v,m),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}(),xX=function(){function e(){this.title=G("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||x.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||P.unwrapNodes(t,{match:function(r){return x.checkNodeType(r,"link")}})},e}(),AX=function(){function e(){this.title=G("link.view"),this.iconSvg=TF,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=x.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}(),xD={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},OX={renderElems:[wX],elemsToHtml:[EX],parseElemsHtml:[CX],menus:[{key:"insertLink",factory:function(){return new DX},config:xD},{key:"editLink",factory:function(){return new SX},config:xD},{key:"unLink",factory:function(){return new xX}},{key:"viewLink",factory:function(){return new AX}}],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(vX(a)){if(!f3(i)){var u=i.selection;if(u!=null){var s=E.string(i,u);zF(i,s,a)}}}else n(o)},i.normalizeNode=function(o){var a=ke(o,2),u=a[0],s=a[1];return x.getNodeType(u)!=="link"?r([u,s]):q.string(u)===""?P.removeNodes(i,{at:s}):r([u,s])},i}},BX=le(1 .valueOf),FX=ge.RangeError,TX=ge.RangeError,HF=ge.String,UF=Math.floor,Lb=le(function(e){var t=it(er(this)),n="",r=Us(e);if(r<0||r==1/0)throw FX("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),AD=le("".slice),Ml=le(1 .toFixed),Ku=function(e,t,n){return t===0?n:t%2==1?Ku(e,t-1,n*e):Ku(e*e,t/2,n)},Cu=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=UF(i/1e7)},ym=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=UF(r/t),r=r%t*1e7},OD=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=HF(e[t]);n=n===""?r:n+Lb("0",7-r.length)+r}return n};function VF(e,t){return"w-e-image-container-"+x.findKey(e,t).id}function kX(e,t,n,r){var i=O("body"),o=VF(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",v),i.on("mouseup",m);var $=x.getHoverbar(e);$&&$.hideAndClean()}var v=Pa(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 m(y){if(i.off("mousemove",v),d!=null){var h=d.width().toFixed(2),$=d.height().toFixed(2),w={style:Co(Co({},t.style),{width:h+"px",height:$+"px"})};P.setNodes(e,w,{at:x.findPath(e,t)}),i.off("mouseup",m)}}var g={};return a&&(g.width=a),u&&(g.height=u),de("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,de("div",{className:"w-e-image-dragger left-top"}),de("div",{className:"w-e-image-dragger right-top"}),de("div",{className:"w-e-image-dragger left-bottom"}),de("div",{className:"w-e-image-dragger right-bottom"}))}Pt({target:"Number",proto:!0,forced:ut(function(){return Ml(8e-5,3)!=="0.000"||Ml(.9,0)!=="1"||Ml(1.255,2)!=="1.25"||Ml(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!ut(function(){Ml({})})},{toFixed:function(e){var t,n,r,i,o=BX(this),a=Us(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw TX("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return HF(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*Ku(2,69,1))-69)<0?o*Ku(2,-t,1):o/Ku(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Cu(u,0,n),r=a;r>=7;)Cu(u,1e7,0),r-=7;for(Cu(u,Ku(10,r,1),0),r=t-1;r>=23;)ym(u,1<<23),r-=23;ym(u,1<<r),Cu(u,1,1),ym(u,2),l=OD(u)}else Cu(u,0,n),Cu(u,1<<-t,0),l=OD(u)+Lb("0",a);return l=a>0?s+((i=l.length)<=a?"0."+Lb("0",a-i)+l:AD(l,0,i-a)+"."+AD(l,i-a)):s+l}});var _X={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,v=p===void 0?"":p,m=x.isNodeSelected(n,e),g={};d&&(g.width="100%"),v&&(g.height="100%");var y=de("img",{style:g,src:i,alt:a,"data-href":s}),h=n.isDisabled();return m&&!h?kX(n,e,y,{width:d,height:v}):function($,w,C,D){var A=D.width,N=D.height,M={};A&&(M.width=A),N&&(M.height=N);var U=VF($,w);return de("div",{id:U,style:M,className:"w-e-image-container"},C)}(n,e,y,{width:d,height:v})}},PX={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,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+r+'" alt="'+o+'" data-href="'+u+'" style="'+v+'"/>'}},NX={selector:"img",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:dr(r,"width"),height:dr(r,"height")},children:[{text:""}]}}};function WF(e,t,n,r,i){return r===void 0&&(r=""),i===void 0&&(i=""),_o(this,void 0,void 0,function(){var o,a;return Po(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 qF(e,t,n){return _o(this,void 0,void 0,function(){var r;return Po(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 ba(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),_o(this,void 0,void 0,function(){var i,o,a;return Po(this,function(u){switch(u.label){case 0:return[4,WF("insertImage",e,t,n,r)];case 1:return u.sent()?[4,qF("insertImage",e,t)]:[2];case 2:return i=u.sent(),o={type:"image",src:c3(i),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),x.getSelectedNodeByType(e,"image")&&e.move(1),O0(e)?[2]:(P.insertNodes(e,o),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(o),[2])}})})}function IX(e,t,n,r,i){return n===void 0&&(n=""),r===void 0&&(r=""),i===void 0&&(i={}),_o(this,void 0,void 0,function(){var o,a,u,s,l,c;return Po(this,function(f){switch(f.label){case 0:return[4,WF("editImage",e,t,n,r)];case 1:return f.sent()?[4,qF("editImage",e,t)]:[2];case 2:return o=f.sent(),(a=x.getSelectedNodeByType(e,"image"))==null?[2]:(u=a.style,s={src:o,alt:n,href:r,style:Co(Co({},u===void 0?{}:u),i)},P.setNodes(e,s,{match:function(d){return x.checkNodeType(d,"image")}}),l=x.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l),[2])}})})}function O0(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!ke(E.nodes(e,{match:function(n){var r=x.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 ip(){return A0("w-e-insert-image")}var RX=function(){function e(){this.title=G("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=ip(),this.altInputId=ip(),this.hrefInputId=ip(),this.buttonId=ip()}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 O0(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=ke(Sn(G("image.src"),i),2),l=s[0],c=s[1],f=O(c),d=ke(Sn(G("image.desc"),o),2),p=d[0],v=d[1],m=O(v),g=ke(Sn(G("image.link"),a),2),y=g[0],h=g[1],$=O(h),w=ke(Ms(u,G("common.ok")),1)[0];if(this.$content==null){var C=O("<div></div>");C.on("click","#"+u,function(A){A.preventDefault();var N=C.find("#"+i).val().trim(),M=C.find("#"+o).val().trim(),U=C.find("#"+a).val().trim();n.insertImage(t,N,M,U),t.hidePanelOrModal()}),this.$content=C}var D=this.$content;return D.empty(),D.append(l),D.append(p),D.append(y),D.append(w),f.val(""),m.val(""),$.val(""),setTimeout(function(){f.focus()}),D[0]},e.prototype.insertImage=function(t,n,r,i){r===void 0&&(r=""),i===void 0&&(i=""),n&&(t.restoreSelection(),this.isDisabled(t)||ba(t,n,r,i))},e}(),jX=function(){function e(){this.title=G("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||x.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||P.removeNodes(t,{match:function(r){return x.checkNodeType(r,"image")}})},e}();function op(){return A0("w-e-edit-image")}var LX=function(){function e(){this.title=G("image.edit"),this.iconSvg=FF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=op(),this.altInputId=op(),this.hrefInputId=op(),this.buttonId=op()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return x.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||!R.isCollapsed(n)||x.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=ke(Sn(G("image.src"),i),2),c=l[0],f=l[1],d=O(f),p=ke(Sn(G("image.desc"),o),2),v=p[0],m=p[1],g=O(m),y=ke(Sn(G("image.link"),a),2),h=y[0],$=y[1],w=O($),C=ke(Ms(u,G("common.ok")),1)[0];if(this.$content==null){var D=O("<div></div>");D.on("click","#"+u,function(se){se.preventDefault();var ee=D.find("#"+i).val(),ae=D.find("#"+o).val(),fe=D.find("#"+a).val();n.updateImage(t,ee,ae,fe),t.hidePanelOrModal()}),this.$content=D}var A=this.$content;A.empty(),A.append(c),A.append(v),A.append(h),A.append(C);var N=s,M=N.src,U=N.alt,V=U===void 0?"":U,J=N.href,Z=J===void 0?"":J;return d.val(M),g.val(V),w.val(Z),setTimeout(function(){d.focus()}),A[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)||IX(t,n,r,i,o))},e}(),MX=function(){function e(){this.title=G("image.viewLink"),this.iconSvg=TF,this.tag="button"}return e.prototype.getValue=function(t){var n=x.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}(),d3=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 x.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=x.getHoverbar(t);i&&i.hideAndClean();var o=r.style,a={style:Co(Co({},o===void 0?{}:o),{width:this.value,height:""})};P.setNodes(t,a,{match:function(u){return x.checkNodeType(u,"image")}})}}},e}(),zX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return tt(t,e),t}(d3),HX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return tt(t,e),t}(d3),UX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return tt(t,e),t}(d3),BD={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},VX={renderElems:[_X],elemsToHtml:[PX],parseElemsHtml:[NX],menus:[{key:"insertImage",factory:function(){return new RX},config:BD},{key:"deleteImage",factory:function(){return new jX}},{key:"editImage",factory:function(){return new LX},config:BD},{key:"viewImageLink",factory:function(){return new MX}},{key:"imageWidth30",factory:function(){return new zX}},{key:"imageWidth50",factory:function(){return new HX}},{key:"imageWidth100",factory:function(){return new UX}}],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}},WX={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var i=e.checked,o=de("div",{style:{margin:"5px 0"}},de("span",{contentEditable:!1,style:{marginRight:"0.5em"}},de("input",{type:"checkbox",checked:i,disabled:r,on:{change:function(a){var u=x.findPath(n,e),s={checked:a.target.checked};P.setNodes(n,s,{at:u})}}})),de("span",null,t));return o}},qX=function(){function e(){this.title=G("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!!x.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!x.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","bulleted-list","numbered-list"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);P.setNodes(t,{type:r?"paragraph":"todo"})},e}(),GX={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(o){return!!X.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}}},KX={renderElems:[WX],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:[GX],menus:[{key:"todo",factory:function(){return new qX}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var i=e.selection;if(i&&R.isCollapsed(i)){var o=x.getSelectedNodeByType(e,"todo");if(o&&q.string(o).length===0)return void P.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},YX={type:"blockquote",renderElem:function(e,t,n){return de("blockquote",null,t)}},XX={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},JX={selector:"blockquote",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},ZX=function(){function e(){this.title=G("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!!x.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!ke(E.nodes(t,{match:function(n){var r=x.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";P.setNodes(t,{type:r},{mode:"highest"})}},e}(),QX={key:"blockquote",factory:function(){return new ZX}},eJ=le([].slice),tJ=i3("slice"),nJ=Pn("species"),bm=ge.Array,rJ=Math.max;Pt({target:"Array",proto:!0,forced:!tJ},{slice:function(e,t){var n,r,i,o=zs(this),a=S0(o),u=pf(e,a),s=pf(t===void 0?a:t,a);if(Hh(o)&&(n=o.constructor,(r3(n)&&(n===bm||Hh(n.prototype))||Vn(n)&&(n=n[nJ])===null)&&(n=void 0),n===bm||n===void 0))return eJ(o,u,s);for(r=new(n===void 0?bm:n)(rJ(s-u,0)),i=0;u<s;u++,i++)u in o&&DF(r,i,o[u]);return r.length=i,r}});var iJ={renderElems:[YX],elemsToHtml:[XX],parseElemsHtml:[JX],menus:[QX],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=ke(E.nodes(e,{match:function(c){return x.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!o)return t();var a=o[0],u=x.findPath(e,a),s=E.end(e,u);if($e.equals(s,i.focus)){var l=q.string(a);if(l&&l.slice(-1)===`
- `)return e.deleteBackward("character"),void P.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},oJ=function(){function e(){this.title=G("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||!!ke(E.nodes(t,{match:function(n){return x.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}(),aJ={menus:[{key:"emotion",factory:function(){return new oJ},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(" ")}}]},uJ={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},sJ={selector:"font",preParseHtml:function(e){var t=O(e);if(Ws(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",uJ[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},lJ=le("".indexOf);Pt({target:"String",proto:!0,forced:!PF("includes")},{includes:function(e){return!!~lJ(it(er(this)),it(_F(e)),arguments.length>1?arguments[1]:void 0)}});var Pi,qp,GF=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,!!ke(E.nodes(t,{match:function(n){return x.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}(),cJ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("fontSize.title"),n.iconSvg=bY,n.mark="fontSize",n}return tt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontSizeList,o=i===void 0?[]:i;r.push({text:G("fontSize.default"),value:""}),o.forEach(function(u){r.push({text:u,value:u})});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(GF),ap=function(e){return e&&e.Math==Math&&e},Ee=ap(typeof globalThis=="object"&&globalThis)||ap(typeof window=="object"&&window)||ap(typeof self=="object"&&self)||ap(typeof jh=="object"&&jh)||function(){return this}()||Function("return this")(),p3=Function.prototype,FD=p3.apply,fJ=p3.bind,TD=p3.call,KF=typeof Reflect=="object"&&Reflect.apply||(fJ?TD.bind(FD):function(){return TD.apply(FD,arguments)}),YF=Function.prototype,Mb=YF.bind,zb=YF.call,dJ=Mb&&Mb.bind(zb),gt=Mb?function(e){return e&&dJ(zb,e)}:function(e){return e&&function(){return zb.apply(e,arguments)}},Wt=function(e){return typeof e=="function"},Tn=function(e){try{return!!e()}catch{return!0}},vn=!Tn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),zl=Function.prototype.call,sr=zl.bind?zl.bind(zl):function(){return zl.apply(zl,arguments)},kD={}.propertyIsEnumerable,_D=Object.getOwnPropertyDescriptor,pJ=_D&&!kD.call({1:2},1)?function(e){var t=_D(this,e);return!!t&&t.enumerable}:kD,h3={f:pJ},za=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hJ=gt({}.toString),gJ=gt("".slice),$a=function(e){return gJ(hJ(e),8,-1)},$m=Ee.Object,vJ=gt("".split),XF=Tn(function(){return!$m("z").propertyIsEnumerable(0)})?function(e){return $a(e)=="String"?vJ(e,""):$m(e)}:$m,mJ=Ee.TypeError,g3=function(e){if(e==null)throw mJ("Can't call method on "+e);return e},Kr=function(e){return XF(g3(e))},Wn=function(e){return typeof e=="object"?e!==null:Wt(e)},zn={},PD=function(e){return Wt(e)?e:void 0},nd=function(e,t){return arguments.length<2?PD(zn[e])||PD(Ee[e]):zn[e]&&zn[e][t]||Ee[e]&&Ee[e][t]},JF=gt({}.isPrototypeOf),wm=nd("navigator","userAgent")||"",ND=Ee.process,ID=Ee.Deno,RD=ND&&ND.versions||ID&&ID.version,jD=RD&&RD.v8;jD&&(qp=(Pi=jD.split("."))[0]>0&&Pi[0]<4?1:+(Pi[0]+Pi[1])),!qp&&wm&&(!(Pi=wm.match(/Edge\/(\d+)/))||Pi[1]>=74)&&(Pi=wm.match(/Chrome\/(\d+)/))&&(qp=+Pi[1]);var Wh=qp,Ar=!!Object.getOwnPropertySymbols&&!Tn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Wh&&Wh<41}),v3=Ar&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yJ=Ee.Object,ns=v3?function(e){return typeof e=="symbol"}:function(e){var t=nd("Symbol");return Wt(t)&&JF(t.prototype,yJ(e))},bJ=Ee.String,$J=Ee.TypeError,ZF=function(e){if(Wt(e))return e;throw $J(function(t){try{return bJ(t)}catch{return"Object"}}(e)+" is not a function")},wJ=Ee.TypeError,EJ=Object.defineProperty,uo=Ee["__core-js_shared__"]||function(e,t){try{EJ(Ee,e,{value:t,configurable:!0,writable:!0})}catch{Ee[e]=t}return t}("__core-js_shared__",{}),Qa=w0(function(e){(e.exports=function(t,n){return uo[t]||(uo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),CJ=Ee.Object,rd=function(e){return CJ(g3(e))},DJ=gt({}.hasOwnProperty),Te=Object.hasOwn||function(e,t){return DJ(rd(e),t)},SJ=0,xJ=Math.random(),AJ=gt(1 .toString),qh=function(e){return"Symbol("+(e===void 0?"":e)+")_"+AJ(++SJ+xJ,36)},Hl=Qa("wks"),wa=Ee.Symbol,LD=wa&&wa.for,OJ=v3?wa:wa&&wa.withoutSetter||qh,Nn=function(e){if(!Te(Hl,e)||!Ar&&typeof Hl[e]!="string"){var t="Symbol."+e;Ar&&Te(wa,e)?Hl[e]=wa[e]:Hl[e]=v3&&LD?LD(t):OJ(t)}return Hl[e]},BJ=Ee.TypeError,FJ=Nn("toPrimitive"),TJ=function(e,t){if(!Wn(e)||ns(e))return e;var n,r,i=(n=e[FJ])==null?void 0:ZF(n);if(i){if(t===void 0&&(t="default"),r=sr(i,e,t),!Wn(r)||ns(r))return r;throw BJ("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,a){var u,s;if(a==="string"&&Wt(u=o.toString)&&!Wn(s=sr(u,o))||Wt(u=o.valueOf)&&!Wn(s=sr(u,o))||a!=="string"&&Wt(u=o.toString)&&!Wn(s=sr(u,o)))return s;throw wJ("Can't convert object to primitive value")}(e,t)},qs=function(e){var t=TJ(e,"string");return ns(t)?t:t+""},Hb=Ee.document,kJ=Wn(Hb)&&Wn(Hb.createElement),QF=function(e){return kJ?Hb.createElement(e):{}},eT=!vn&&!Tn(function(){return Object.defineProperty(QF("div"),"a",{get:function(){return 7}}).a!=7}),MD=Object.getOwnPropertyDescriptor,m3={f:vn?MD:function(e,t){if(e=Kr(e),t=qs(t),eT)try{return MD(e,t)}catch{}if(Te(e,t))return za(!sr(h3.f,e,t),e[t])}},_J=/#|\.prototype\./,id=function(e,t){var n=NJ[PJ(e)];return n==RJ||n!=IJ&&(Wt(t)?Tn(t):!!t)},PJ=id.normalize=function(e){return String(e).replace(_J,".").toLowerCase()},NJ=id.data={},IJ=id.NATIVE="N",RJ=id.POLYFILL="P",jJ=id,zD=gt(gt.bind),tT=function(e,t){return ZF(e),t===void 0?e:zD?zD(e,t):function(){return e.apply(t,arguments)}},LJ=Ee.String,MJ=Ee.TypeError,Ha=function(e){if(Wn(e))return e;throw MJ(LJ(e)+" is not an object")},zJ=Ee.TypeError,HD=Object.defineProperty,eu={f:vn?HD:function(e,t,n){if(Ha(e),t=qs(t),Ha(n),eT)try{return HD(e,t,n)}catch{}if("get"in n||"set"in n)throw zJ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Br=vn?function(e,t,n){return eu.f(e,t,za(1,n))}:function(e,t,n){return e[t]=n,e},HJ=m3.f,UJ=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 KF(e,this,arguments)};return t.prototype=e.prototype,t},Gi=function(e,t){var n,r,i,o,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?Ee:d?Ee[c]:(Ee[c]||{}).prototype,m=f?zn:zn[c]||Br(zn,c,{})[c],g=m.prototype;for(i in t)n=!jJ(f?i:c+(d?".":"#")+i,e.forced)&&v&&Te(v,i),a=m[i],n&&(u=e.noTargetGet?(l=HJ(v,i))&&l.value:v[i]),o=n&&u?u:t[i],n&&typeof a==typeof o||(s=e.bind&&n?tT(o,Ee):e.wrap&&n?UJ(o):p&&Wt(o)?gt(o):o,(e.sham||o&&o.sham||a&&a.sham)&&Br(s,"sham",!0),Br(m,i,s),p&&(Te(zn,r=c+"Prototype")||Br(zn,r,{}),Br(zn[r],i,o),e.real&&g&&!g[i]&&Br(g,i,o)))},Gh=Array.isArray||function(e){return $a(e)=="Array"},VJ=Math.ceil,WJ=Math.floor,y3=function(e){var t=+e;return t!=t||t===0?0:(t>0?WJ:VJ)(t)},qJ=Math.min,B0=function(e){return(t=e.length)>0?qJ(y3(t),9007199254740991):0;var t},Ub=function(e,t,n){var r=qs(t);r in e?eu.f(e,r,za(0,n)):e[r]=n},nT={};nT[Nn("toStringTag")]="z";var b3=String(nT)==="[object z]",GJ=Nn("toStringTag"),KJ=Ee.Object,YJ=$a(function(){return arguments}())=="Arguments",F0=b3?$a:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=KJ(e),GJ))=="string"?n:YJ?$a(t):(r=$a(t))=="Object"&&Wt(t.callee)?"Arguments":r},XJ=gt(Function.toString);Wt(uo.inspectSource)||(uo.inspectSource=function(e){return XJ(e)});var rT=uo.inspectSource,iT=function(){},JJ=[],oT=nd("Reflect","construct"),$3=/^\s*(?:class|function)\b/,ZJ=gt($3.exec),QJ=!$3.exec(iT),Ul=function(e){if(!Wt(e))return!1;try{return oT(iT,JJ,e),!0}catch{return!1}},eZ=!oT||Tn(function(){var e;return Ul(Ul.call)||!Ul(Object)||!Ul(function(){e=!0})||e})?function(e){if(!Wt(e))return!1;switch(F0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return QJ||!!ZJ($3,rT(e))}:Ul,tZ=Nn("species"),UD=Ee.Array,aT=function(e,t){return new(function(n){var r;return Gh(n)&&(r=n.constructor,(eZ(r)&&(r===UD||Gh(r.prototype))||Wn(r)&&(r=r[tZ])===null)&&(r=void 0)),r===void 0?UD:r}(e))(t===0?0:t)},nZ=Nn("species"),uT=Nn("isConcatSpreadable"),VD=Ee.TypeError,rZ=Wh>=51||!Tn(function(){var e=[];return e[uT]=!1,e.concat()[0]!==e}),iZ=function(e){return Wh>=51||!Tn(function(){var t=[];return(t.constructor={})[nZ]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("concat"),oZ=function(e){if(!Wn(e))return!1;var t=e[uT];return t!==void 0?!!t:Gh(e)};Gi({target:"Array",proto:!0,forced:!rZ||!iZ},{concat:function(e){var t,n,r,i,o,a=rd(this),u=aT(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(oZ(o=t===-1?a:arguments[t])){if(s+(i=B0(o))>9007199254740991)throw VD("Maximum allowed index exceeded");for(n=0;n<i;n++,s++)n in o&&Ub(u,s,o[n])}else{if(s>=9007199254740991)throw VD("Maximum allowed index exceeded");Ub(u,s++,o)}return u.length=s,u}});var up,aZ=Ee.String,Kh=function(e){if(F0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return aZ(e)},uZ=Math.max,sZ=Math.min,Vb=function(e,t){var n=y3(e);return n<0?uZ(n+t,0):sZ(n,t)},WD=function(e){return function(t,n,r){var i,o=Kr(t),a=B0(o),u=Vb(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}},lZ={includes:WD(!0),indexOf:WD(!1)},od={},cZ=lZ.indexOf,qD=gt([].push),sT=function(e,t){var n,r=Kr(e),i=0,o=[];for(n in r)!Te(od,n)&&Te(r,n)&&qD(o,n);for(;t.length>i;)Te(r,n=t[i++])&&(~cZ(o,n)||qD(o,n));return o},Yh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],w3=Object.keys||function(e){return sT(e,Yh)},fZ=vn?Object.defineProperties:function(e,t){Ha(e);for(var n,r=Kr(t),i=w3(t),o=i.length,a=0;o>a;)eu.f(e,n=i[a++],r[n]);return e},dZ=nd("document","documentElement"),GD=Qa("keys"),T0=function(e){return GD[e]||(GD[e]=qh(e))},lT=T0("IE_PROTO"),Em=function(){},cT=function(e){return"<script>"+e+"<\/script>"},KD=function(e){e.write(cT("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gp=function(){try{up=new ActiveXObject("htmlfile")}catch{}var e,t;Gp=typeof document!="undefined"?document.domain&&up?KD(up):((t=QF("iframe")).style.display="none",dZ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(cT("document.F=Object")),e.close(),e.F):KD(up);for(var n=Yh.length;n--;)delete Gp.prototype[Yh[n]];return Gp()};od[lT]=!0;var Xh,Ic,Jh,Ua=Object.create||function(e,t){var n;return e!==null?(Em.prototype=Ha(e),n=new Em,Em.prototype=null,n[lT]=e):n=Gp(),t===void 0?n:fZ(n,t)},pZ=Yh.concat("length","prototype"),fT={f:Object.getOwnPropertyNames||function(e){return sT(e,pZ)}},hZ=Ee.Array,gZ=Math.max,dT=fT.f,pT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vZ=function(e){try{return dT(e)}catch{return function(n,r,i){for(var o=B0(n),a=Vb(r,o),u=Vb(i===void 0?o:i,o),s=hZ(gZ(u-a,0)),l=0;a<u;a++,l++)Ub(s,l,n[a]);return s.length=l,s}(pT)}},hT={f:function(e){return pT&&$a(e)=="Window"?vZ(e):dT(Kr(e))}},Cm={f:Object.getOwnPropertySymbols},mZ=gt([].slice),As=function(e,t,n,r){r&&r.enumerable?e[t]=n:Br(e,t,n)},E3={f:Nn},yZ=eu.f,vt=function(e){var t=zn.Symbol||(zn.Symbol={});Te(t,e)||yZ(t,e,{value:E3.f(e)})},bZ=b3?{}.toString:function(){return"[object "+F0(this)+"]"},$Z=eu.f,YD=Nn("toStringTag"),Zh=function(e,t,n,r){if(e){var i=n?e:e.prototype;Te(i,YD)||$Z(i,YD,{configurable:!0,value:t}),r&&!b3&&Br(i,"toString",bZ)}},XD=Ee.WeakMap,wZ=Wt(XD)&&/native code/.test(rT(XD)),Wb=Ee.TypeError,EZ=Ee.WeakMap;if(wZ||uo.state){var Ko=uo.state||(uo.state=new EZ),CZ=gt(Ko.get),JD=gt(Ko.has),DZ=gt(Ko.set);Xh=function(e,t){if(JD(Ko,e))throw new Wb("Object already initialized");return t.facade=e,DZ(Ko,e,t),t},Ic=function(e){return CZ(Ko,e)||{}},Jh=function(e){return JD(Ko,e)}}else{var Du=T0("state");od[Du]=!0,Xh=function(e,t){if(Te(e,Du))throw new Wb("Object already initialized");return t.facade=e,Br(e,Du,t),t},Ic=function(e){return Te(e,Du)?e[Du]:{}},Jh=function(e){return Te(e,Du)}}var Gs={set:Xh,get:Ic,has:Jh,enforce:function(e){return Jh(e)?Ic(e):Xh(e,{})},getterFor:function(e){return function(t){var n;if(!Wn(t)||(n=Ic(t)).type!==e)throw Wb("Incompatible receiver, "+e+" required");return n}}},ZD=gt([].push),Ni=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,v=rd(s),m=XF(v),g=tT(l,c),y=B0(m),h=0,$=f||aT,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:ZD(w,d)}else switch(e){case 4:return!1;case 7:ZD(w,d)}return o?-1:r||i?i:w}},k0={forEach:Ni(0),map:Ni(1),filter:Ni(2),some:Ni(3),every:Ni(4),find:Ni(5),findIndex:Ni(6),filterReject:Ni(7)}.forEach,pn=T0("hidden"),QD=Nn("toPrimitive"),SZ=Gs.set,eS=Gs.getterFor("Symbol"),lr=Object.prototype,Yi=Ee.Symbol,Qi=Yi&&Yi.prototype,tS=Ee.TypeError,Dm=Ee.QObject,Vl=nd("JSON","stringify"),gT=m3.f,Xi=eu.f,vT=hT.f,xZ=h3.f,mT=gt([].push),gi=Qa("symbols"),ad=Qa("op-symbols"),Sm=Qa("string-to-symbol-registry"),xm=Qa("symbol-to-string-registry"),AZ=Qa("wks"),Am=!Dm||!Dm.prototype||!Dm.prototype.findChild,qb=vn&&Tn(function(){return Ua(Xi({},"a",{get:function(){return Xi(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=gT(lr,t);r&&delete lr[t],Xi(e,t,n),r&&e!==lr&&Xi(lr,t,r)}:Xi,Om=function(e,t){var n=gi[e]=Ua(Qi);return SZ(n,{type:"Symbol",tag:e,description:t}),vn||(n.description=t),n},Qh=function(e,t,n){e===lr&&Qh(ad,t,n),Ha(e);var r=qs(t);return Ha(n),Te(gi,r)?(n.enumerable?(Te(e,pn)&&e[pn][r]&&(e[pn][r]=!1),n=Ua(n,{enumerable:za(0,!1)})):(Te(e,pn)||Xi(e,pn,za(1,{})),e[pn][r]=!0),qb(e,r,n)):Xi(e,r,n)},nS=function(e,t){Ha(e);var n=Kr(t),r=w3(n).concat(Gb(n));return k0(r,function(i){vn&&!sr(yT,n,i)||Qh(e,i,n[i])}),e},yT=function(e){var t=qs(e),n=sr(xZ,this,t);return!(this===lr&&Te(gi,t)&&!Te(ad,t))&&(!(n||!Te(this,t)||!Te(gi,t)||Te(this,pn)&&this[pn][t])||n)},rS=function(e,t){var n=Kr(e),r=qs(t);if(n!==lr||!Te(gi,r)||Te(ad,r)){var i=gT(n,r);return!i||!Te(gi,r)||Te(n,pn)&&n[pn][r]||(i.enumerable=!0),i}},iS=function(e){var t=vT(Kr(e)),n=[];return k0(t,function(r){Te(gi,r)||Te(od,r)||mT(n,r)}),n},Gb=function(e){var t=e===lr,n=vT(t?ad:Kr(e)),r=[];return k0(n,function(i){!Te(gi,i)||t&&!Te(lr,i)||mT(r,gi[i])}),r};if(Ar||(Qi=(Yi=function(){if(JF(Qi,this))throw tS("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Kh(arguments[0]):void 0,t=qh(e),n=function(r){this===lr&&sr(n,ad,r),Te(this,pn)&&Te(this[pn],t)&&(this[pn][t]=!1),qb(this,t,za(1,r))};return vn&&Am&&qb(lr,t,{configurable:!0,set:n}),Om(t,e)}).prototype,As(Qi,"toString",function(){return eS(this).tag}),As(Yi,"withoutSetter",function(e){return Om(qh(e),e)}),h3.f=yT,eu.f=Qh,m3.f=rS,fT.f=hT.f=iS,Cm.f=Gb,E3.f=function(e){return Om(Nn(e),e)},vn&&Xi(Qi,"description",{configurable:!0,get:function(){return eS(this).description}})),Gi({global:!0,wrap:!0,forced:!Ar,sham:!Ar},{Symbol:Yi}),k0(w3(AZ),function(e){vt(e)}),Gi({target:"Symbol",stat:!0,forced:!Ar},{for:function(e){var t=Kh(e);if(Te(Sm,t))return Sm[t];var n=Yi(t);return Sm[t]=n,xm[n]=t,n},keyFor:function(e){if(!ns(e))throw tS(e+" is not a symbol");if(Te(xm,e))return xm[e]},useSetter:function(){Am=!0},useSimple:function(){Am=!1}}),Gi({target:"Object",stat:!0,forced:!Ar,sham:!vn},{create:function(e,t){return t===void 0?Ua(e):nS(Ua(e),t)},defineProperty:Qh,defineProperties:nS,getOwnPropertyDescriptor:rS}),Gi({target:"Object",stat:!0,forced:!Ar},{getOwnPropertyNames:iS,getOwnPropertySymbols:Gb}),Gi({target:"Object",stat:!0,forced:Tn(function(){Cm.f(1)})},{getOwnPropertySymbols:function(e){return Cm.f(rd(e))}}),Vl){var OZ=!Ar||Tn(function(){var e=Yi();return Vl([e])!="[null]"||Vl({a:e})!="{}"||Vl(Object(e))!="{}"});Gi({target:"JSON",stat:!0,forced:OZ},{stringify:function(e,t,n){var r=mZ(arguments),i=t;if((Wn(t)||e!==void 0)&&!ns(e))return Gh(t)||(t=function(o,a){if(Wt(i)&&(a=sr(i,this,o,a)),!ns(a))return a}),r[1]=t,KF(Vl,null,r)}})}if(!Qi[QD]){var BZ=Qi.valueOf;As(Qi,QD,function(e){return sr(BZ,this)})}Zh(Yi,"Symbol"),od[pn]=!0,vt("asyncIterator"),vt("hasInstance"),vt("isConcatSpreadable"),vt("iterator"),vt("match"),vt("matchAll"),vt("replace"),vt("search"),vt("species"),vt("split"),vt("toPrimitive"),vt("toStringTag"),vt("unscopables"),Zh(Ee.JSON,"JSON",!0);var eo,oS,aS,FZ=zn.Symbol,Ea={},bT=Function.prototype,TZ=vn&&Object.getOwnPropertyDescriptor,Bm=Te(bT,"name"),kZ={EXISTS:Bm,PROPER:Bm&&function(){}.name==="something",CONFIGURABLE:Bm&&(!vn||vn&&TZ(bT,"name").configurable)},_Z=!Tn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),uS=T0("IE_PROTO"),Kb=Ee.Object,PZ=Kb.prototype,Yb=_Z?Kb.getPrototypeOf:function(e){var t=rd(e);if(Te(t,uS))return t[uS];var n=t.constructor;return Wt(n)&&t instanceof n?n.prototype:t instanceof Kb?PZ:null},Xb=Nn("iterator"),$T=!1;[].keys&&("next"in(aS=[].keys())?(oS=Yb(Yb(aS)))!==Object.prototype&&(eo=oS):$T=!0);var NZ=eo==null||Tn(function(){var e={};return eo[Xb].call(e)!==e});eo=NZ?{}:Ua(eo),Wt(eo[Xb])||As(eo,Xb,function(){return this});var wT={IteratorPrototype:eo,BUGGY_SAFARI_ITERATORS:$T},IZ=wT.IteratorPrototype,RZ=function(){return this};Ee.String,Ee.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var e,t=!1,n={};try{(e=gt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}}();var jZ=kZ.PROPER,sp=wT.BUGGY_SAFARI_ITERATORS,Fm=Nn("iterator"),LZ=function(){return this},ET=function(e,t,n,r,i,o,a){(function(y,h,$,w){var C=h+" Iterator";y.prototype=Ua(IZ,{next:za(+!w,$)}),Zh(y,C,!1,!0),Ea[C]=RZ})(n,t,r);var u,s,l,c=function(y){if(y===i&&m)return m;if(!sp&&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,v=p[Fm]||p["@@iterator"]||i&&p[i],m=!sp&&v||c(i),g=t=="Array"&&p.entries||v;if(g&&(u=Yb(g.call(new e)))!==Object.prototype&&u.next&&(Zh(u,f,!0,!0),Ea[f]=LZ),jZ&&i=="values"&&v&&v.name!=="values"&&(d=!0,m=function(){return sr(v,this)}),i)if(s={values:c("values"),keys:o?m:c("keys"),entries:c("entries")},a)for(l in s)(sp||d||!(l in p))&&As(p,l,s[l]);else Gi({target:t,proto:!0,forced:sp||d},s);return a&&p[Fm]!==m&&As(p,Fm,m,{name:i}),Ea[t]=m,s},MZ=Gs.set,zZ=Gs.getterFor("Array Iterator");ET(Array,"Array",function(e,t){MZ(this,{type:"Array Iterator",target:Kr(e),index:0,kind:t})},function(){var e=zZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Ea.Arguments=Ea.Array;var sS=Nn("toStringTag");for(var Tm 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 lS=Ee[Tm],km=lS&&lS.prototype;km&&F0(km)!==sS&&Br(km,sS,Tm),Ea[Tm]=Ea.Array}var HZ=FZ;vt("asyncDispose"),vt("dispose"),vt("matcher"),vt("metadata"),vt("observable"),vt("patternMatch"),vt("replaceAll");var lp=HZ,UZ=gt("".charAt),cS=gt("".charCodeAt),VZ=gt("".slice),fS=function(e){return function(t,n){var r,i,o=Kh(g3(t)),a=y3(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=cS(o,a))<55296||r>56319||a+1===u||(i=cS(o,a+1))<56320||i>57343?e?UZ(o,a):r:e?VZ(o,a,a+2):i-56320+(r-55296<<10)+65536}},WZ={codeAt:fS(!1),charAt:fS(!0)}.charAt,qZ=Gs.set,GZ=Gs.getterFor("String Iterator");ET(String,"String",function(e){qZ(this,{type:"String Iterator",string:Kh(e),index:0})},function(){var e,t=GZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=WZ(n,r),t.index+=e.length,{value:e,done:!1})});var KZ=E3.f("iterator"),YZ=w0(function(e){function t(n){return typeof lp=="function"&&typeof KZ=="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 lp=="function"&&r.constructor===lp&&r!==lp.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}),XZ=cG(YZ),JZ=D0.EXISTS,ZZ=Hs.f,CT=Function.prototype,QZ=le(CT.toString),DT=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,eQ=le(DT.exec);hr&&!JZ&&ZZ(CT,"name",{configurable:!0,get:function(){try{return eQ(DT,QZ(this))[1]}catch{return""}}});var tQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("fontFamily.title"),n.iconSvg=$Y,n.mark="fontFamily",n.selectPanelWidth=150,n}return tt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontFamilyList,o=i===void 0?[]:i;r.push({text:G("fontFamily.default"),value:""}),o.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(XZ(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}(GF),nQ={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,o=t;return r&&Ma(o,{fontSize:r}),i&&Ma(o,{fontFamily:i}),o},styleToHtml:function(e,t){if(!X.isText(e))return t;var n,r=e,i=r.fontSize,o=r.fontFamily;return i||o?((l3(t)||Ws(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),i&&n.css("font-size",i),o&&n.css("font-family",o),Vs(n)):t},preParseHtml:[sJ],parseStyleHtml:function(e,t,n){var r=O(e);if(!X.isText(t))return t;var i=t,o=n.getMenuConfig("fontSize").fontSizeList,a=o===void 0?[]:o,u=dr(r,"font-size");u&&a.includes(u)&&(i.fontSize=u);var s=n.getMenuConfig("fontFamily").fontFamilyList,l=s===void 0?[]:s,c=dr(r,"font-family"),f=l.find(function(d){return d.value&&d.value===c})||l.includes(c);return c&&f&&(i.fontFamily=c),i},menus:[{key:"fontSize",factory:function(){return new cJ},config:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new tQ},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"]}}]},rQ={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=O(e),n=dr(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]}},ST=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=ke(E.nodes(t,{match:function(i){return!!i.indent},universal:!0}),1),r=n[0];return r==null?"":ke(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=ke(E.nodes(t,{match:function(r){var i=x.getNodeType(r);return i==="paragraph"||!!i.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),iQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("indent.decrease"),n.iconSvg=wY,n}return tt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){P.setNodes(n,{indent:null},{match:function(i){return te.isElement(i)}})},t}(ST),oQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("indent.increase"),n.iconSvg=EY,n}return tt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){P.setNodes(n,{indent:"2em"},{match:function(i){return te.isElement(i)},mode:"highest"})},t}(ST),aQ={renderStyle:function(e,t){if(!te.isElement(e))return t;var n=e.indent,r=t;return n&&Ma(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!te.isElement(e))return t;var n=e.indent;if(!n)return t;var r=O(t);return r.css("text-indent",n),Vs(r)},preParseHtml:[rQ],parseStyleHtml:function(e,t,n){var r=O(e);if(!te.isElement(t))return t;var i=t,o=dr(r,"text-indent"),a=parseInt(o,10);return o&&a>0&&(i.indent=o),i},menus:[{key:"indent",factory:function(){return new oQ}},{key:"delIndent",factory:function(){return new iQ}}]},_0=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=ke(E.nodes(t,{match:function(r){var i=x.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||!!x.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}(),uQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("justify.left"),n.iconSvg=CY,n}return tt(t,e),t.prototype.exec=function(n,r){P.setNodes(n,{textAlign:"left"},{match:function(i){return te.isElement(i)&&!n.isInline(i)}})},t}(_0),sQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("justify.right"),n.iconSvg=DY,n}return tt(t,e),t.prototype.exec=function(n,r){P.setNodes(n,{textAlign:"right"},{match:function(i){return te.isElement(i)&&!n.isInline(i)}})},t}(_0),lQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("justify.center"),n.iconSvg=SY,n}return tt(t,e),t.prototype.exec=function(n,r){P.setNodes(n,{textAlign:"center"},{match:function(i){return te.isElement(i)&&!n.isInline(i)}})},t}(_0),cQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=G("justify.justify"),n.iconSvg=xY,n}return tt(t,e),t.prototype.exec=function(n,r){P.setNodes(n,{textAlign:"justify"},{match:function(i){return te.isElement(i)&&!n.isInline(i)}})},t}(_0),fQ={renderStyle:function(e,t){if(!te.isElement(e))return t;var n=e.textAlign,r=t;return n&&Ma(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!te.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=O(t);return r.css("text-align",n),Vs(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!te.isElement(t))return t;var i=t,o=dr(r,"text-align");return o&&(i.textAlign=o),i},menus:[{key:"justifyLeft",factory:function(){return new uQ}},{key:"justifyRight",factory:function(){return new sQ}},{key:"justifyCenter",factory:function(){return new lQ}},{key:"justifyJustify",factory:function(){return new cQ}}]},dQ=function(){function e(){this.title=G("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:G("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=ke(E.nodes(t,{match:function(r){var i=x.getNodeType(r);return!!i.startsWith("header")||!!["paragraph","blockquote","bulleted-list","numbered-list"].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?"":te.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){P.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),pQ={renderStyle:function(e,t){if(!te.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Ma(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!te.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=O(t);return r.css("line-height",n),Vs(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!te.isElement(t))return t;var i=t,o=n.getMenuConfig("lineHeight").lineHeightList,a=o===void 0?[]:o,u=dr(r,"line-height");return u&&a.includes(u)&&(i.lineHeight=u),i},menus:[{key:"lineHeight",factory:function(){return new dQ},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},hQ=function(){function e(){this.title=G("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}(),gQ=function(){function e(){this.title=G("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}(),vQ={menus:[{key:"redo",factory:function(){return new hQ}},{key:"undo",factory:function(){return new gQ}}]},mQ={type:"divider",renderElem:function(e,t,n){var r=x.isNodeSelected(n,e);return bs("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(i){return i.preventDefault()}}},[bs("hr")])}},yQ={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},bQ={selector:"hr",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},$Q=function(){function e(){this.title=G("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||!!x.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=x.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){P.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),wQ={renderElems:[mQ],elemsToHtml:[yQ],parseElemsHtml:[bQ],menus:[{key:"divider",factory:function(){return new $Q}}],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=ke(i,2),a=o[0],u=o[1];if(x.getNodeType(a)!=="divider")return n([a,u]);x.isLastNode(r,a)&&P.insertNodes(r,x.genEmptyParagraph(),{at:[u[0]+1]})},r}},EQ=x0.map;Pt({target:"Array",proto:!0,forced:!i3("map")},{map:function(e){return EQ(this,e,arguments.length>1?arguments[1]:void 0)}});var CQ=le([].join),DQ=E0!=Object,SQ=AF("join",",");Pt({target:"Array",proto:!0,forced:DQ||!SQ},{join:function(e){return CQ(zs(this),e===void 0?",":e)}});var xQ=function(){function e(){this.title=G("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=x.getSelectedNodeByType(t,"code");if(n==null)return null;var r=x.getParentNode(t,n);return r==null||x.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=x.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var i=x.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);P.removeNodes(t,{mode:"highest"});var i=r.split(`
- `).map(function(o){return{type:"paragraph",children:[{text:o}]}});P.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=xF(a),s=u.next();!s.done;s=u.next()){var l=ke(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}}P.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:o.join(`
- `)}]}]};P.insertNodes(t,c,{mode:"highest"})},e}(),AQ={key:"codeBlock",factory:function(){return new xQ}};Pt({target:"String",proto:!0,forced:Dc("anchor")},{anchor:function(e){return Cc(this,"a","name",e)}}),u3("match",function(e,t,n){return[function(r){var i=er(this),o=r==null?void 0:C0(r,e);return o?ht(o,r,i):new RegExp(r)[e](it(i))},function(r){var i=Fn(this),o=it(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return gf(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=gf(i,o))!==null;){var f=it(s[0]);l[c]=f,f===""&&(i.lastIndex=s3(o,Zf(i.lastIndex),u)),c++}return c===0?null:l}]});var OQ={type:"pre",renderElem:function(e,t,n){return de("pre",null,t)}},BQ={type:"code",renderElem:function(e,t,n){return de("code",null,t)}},FQ={selector:"pre",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return x.getNodeType(i)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(i){return x.getNodeType(i)==="code"})}}},TQ={menus:[AQ],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var o=x.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,v=d.slice(0,p).split(`
- `),m=v.length;return m===0?"":v[m-1]}(o,i);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void i.insertText(`
- `+s)}}i.insertText(`
- `)}else t()},i.normalizeNode=function(o){var a=ke(o,2),u=a[0],s=a[1],l=x.getNodeType(u);return l==="code"&&s.length<=1&&P.setNodes(i,{type:"paragraph"},{at:s}),l==="pre"&&(x.isLastNode(i,u)&&P.insertNodes(i,x.genEmptyParagraph(),{at:[s[0]+1]}),x.getNodeType(u.children[0])!=="code"&&(P.unwrapNodes(i),P.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([u,s])},i.insertData=function(o){if(x.getSelectedNodeByType(i,"code")!=null){var a=o.getData("text/plain");E.insertText(i,a)}else r(o)},i},renderElems:[OQ,BQ],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(Ws(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>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:O(e)[0].textContent||""}]}}},FQ]},kQ=function(){function e(){this.title=G("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}(),_Q={menus:[{key:"fullScreen",factory:function(){return new kQ}}]},PQ=function(){function e(){this.title=G("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||!!R.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var i=[r.anchor.path[0]];P.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:i}),t.select(E.start(t,i))}},e}(),NQ=[RY,gX,nQ,aQ,fQ,pQ,VX,wQ,aJ,OX,TQ,iJ,cX,aY,KX,vQ,_Q,{menus:[{key:"enter",factory:function(){return new PQ}}]}];mn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),mn("zh-CN",{listModule:{unOrderedList:"\u65E0\u5E8F\u5217\u8868",orderedList:"\u6709\u5E8F\u5217\u8868"}});var dS=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xT(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ii,Kp,cp=function(e){return e&&e.Math==Math&&e},Ae=cp(typeof globalThis=="object"&&globalThis)||cp(typeof window=="object"&&window)||cp(typeof self=="object"&&self)||cp(typeof dS=="object"&&dS)||function(){return this}()||Function("return this")(),qt=function(e){try{return!!e()}catch{return!0}},Do=!qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Wl=Function.prototype.call,sn=Wl.bind?Wl.bind(Wl):function(){return Wl.apply(Wl,arguments)},pS={}.propertyIsEnumerable,hS=Object.getOwnPropertyDescriptor,IQ={f:hS&&!pS.call({1:2},1)?function(e){var t=hS(this,e);return!!t&&t.enumerable}:pS},C3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},AT=Function.prototype,Jb=AT.bind,Zb=AT.call,RQ=Jb&&Jb.bind(Zb),Ne=Jb?function(e){return e&&RQ(Zb,e)}:function(e){return e&&function(){return Zb.apply(e,arguments)}},jQ=Ne({}.toString),LQ=Ne("".slice),Ca=function(e){return LQ(jQ(e),8,-1)},_m=Ae.Object,MQ=Ne("".split),OT=qt(function(){return!_m("z").propertyIsEnumerable(0)})?function(e){return Ca(e)=="String"?MQ(e,""):_m(e)}:_m,zQ=Ae.TypeError,ud=function(e){if(e==null)throw zQ("Can't call method on "+e);return e},P0=function(e){return OT(ud(e))},Gt=function(e){return typeof e=="function"},ar=function(e){return typeof e=="object"?e!==null:Gt(e)},HQ=function(e){return Gt(e)?e:void 0},sd=function(e,t){return arguments.length<2?HQ(Ae[e]):Ae[e]&&Ae[e][t]},UQ=Ne({}.isPrototypeOf),Pm=sd("navigator","userAgent")||"",gS=Ae.process,vS=Ae.Deno,mS=gS&&gS.versions||vS&&vS.version,yS=mS&&mS.v8;yS&&(Kp=(Ii=yS.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!Kp&&Pm&&(!(Ii=Pm.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=Pm.match(/Chrome\/(\d+)/))&&(Kp=+Ii[1]);var eg=Kp,Qb=!!Object.getOwnPropertySymbols&&!qt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&eg&&eg<41}),D3=Qb&&!Symbol.sham&&typeof Symbol.iterator=="symbol",VQ=Ae.Object,e4=D3?function(e){return typeof e=="symbol"}:function(e){var t=sd("Symbol");return Gt(t)&&UQ(t.prototype,VQ(e))},WQ=Ae.String,qQ=Ae.TypeError,BT=function(e){if(Gt(e))return e;throw qQ(function(t){try{return WQ(t)}catch{return"Object"}}(e)+" is not a function")},FT=function(e,t){var n=e[t];return n==null?void 0:BT(n)},GQ=Ae.TypeError,KQ=Object.defineProperty,S3=function(e,t){try{KQ(Ae,e,{value:t,configurable:!0,writable:!0})}catch{Ae[e]=t}return t},so=Ae["__core-js_shared__"]||S3("__core-js_shared__",{}),x3=xT(function(e){(e.exports=function(t,n){return so[t]||(so[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),YQ=Ae.Object,N0=function(e){return YQ(ud(e))},XQ=Ne({}.hasOwnProperty),Yn=Object.hasOwn||function(e,t){return XQ(N0(e),t)},JQ=0,ZQ=Math.random(),QQ=Ne(1 .toString),TT=function(e){return"Symbol("+(e===void 0?"":e)+")_"+QQ(++JQ+ZQ,36)},ql=x3("wks"),Da=Ae.Symbol,bS=Da&&Da.for,eee=D3?Da:Da&&Da.withoutSetter||TT,Yr=function(e){if(!Yn(ql,e)||!Qb&&typeof ql[e]!="string"){var t="Symbol."+e;Qb&&Yn(Da,e)?ql[e]=Da[e]:ql[e]=D3&&bS?bS(t):eee(t)}return ql[e]},tee=Ae.TypeError,nee=Yr("toPrimitive"),ree=function(e,t){if(!ar(e)||e4(e))return e;var n,r=FT(e,nee);if(r){if(t===void 0&&(t="default"),n=sn(r,e,t),!ar(n)||e4(n))return n;throw tee("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&Gt(a=i.toString)&&!ar(u=sn(a,i))||Gt(a=i.valueOf)&&!ar(u=sn(a,i))||o!=="string"&&Gt(a=i.toString)&&!ar(u=sn(a,i)))return u;throw GQ("Can't convert object to primitive value")}(e,t)},A3=function(e){var t=ree(e,"string");return e4(t)?t:t+""},t4=Ae.document,iee=ar(t4)&&ar(t4.createElement),kT=function(e){return iee?t4.createElement(e):{}},_T=!Do&&!qt(function(){return Object.defineProperty(kT("div"),"a",{get:function(){return 7}}).a!=7}),$S=Object.getOwnPropertyDescriptor,PT={f:Do?$S:function(e,t){if(e=P0(e),t=A3(t),_T)try{return $S(e,t)}catch{}if(Yn(e,t))return C3(!sn(IQ.f,e,t),e[t])}},oee=Ae.String,aee=Ae.TypeError,So=function(e){if(ar(e))return e;throw aee(oee(e)+" is not an object")},uee=Ae.TypeError,wS=Object.defineProperty,ld={f:Do?wS:function(e,t,n){if(So(e),t=A3(t),So(n),_T)try{return wS(e,t,n)}catch{}if("get"in n||"set"in n)throw uee("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},vf=Do?function(e,t,n){return ld.f(e,t,C3(1,n))}:function(e,t,n){return e[t]=n,e},see=Ne(Function.toString);Gt(so.inspectSource)||(so.inspectSource=function(e){return see(e)});var tg,Rc,ng,O3=so.inspectSource,ES=Ae.WeakMap,lee=Gt(ES)&&/native code/.test(O3(ES)),CS=x3("keys"),NT=function(e){return CS[e]||(CS[e]=TT(e))},B3={},n4=Ae.TypeError,cee=Ae.WeakMap;if(lee||so.state){var Yo=so.state||(so.state=new cee),fee=Ne(Yo.get),DS=Ne(Yo.has),dee=Ne(Yo.set);tg=function(e,t){if(DS(Yo,e))throw new n4("Object already initialized");return t.facade=e,dee(Yo,e,t),t},Rc=function(e){return fee(Yo,e)||{}},ng=function(e){return DS(Yo,e)}}else{var Su=NT("state");B3[Su]=!0,tg=function(e,t){if(Yn(e,Su))throw new n4("Object already initialized");return t.facade=e,vf(e,Su,t),t},Rc=function(e){return Yn(e,Su)?e[Su]:{}},ng=function(e){return Yn(e,Su)}}var fp,r4={set:tg,get:Rc,has:ng,enforce:function(e){return ng(e)?Rc(e):tg(e,{})},getterFor:function(e){return function(t){var n;if(!ar(t)||(n=Rc(t)).type!==e)throw n4("Incompatible receiver, "+e+" required");return n}}},IT=Function.prototype,pee=Do&&Object.getOwnPropertyDescriptor,Nm=Yn(IT,"name"),hee={EXISTS:Nm,PROPER:Nm&&function(){}.name==="something",CONFIGURABLE:Nm&&(!Do||Do&&pee(IT,"name").configurable)},rg=xT(function(e){var t=hee.CONFIGURABLE,n=r4.get,r=r4.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;Gt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Yn(u,"name")||t&&u.name!==p)&&vf(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==Ae?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:vf(o,a,u)):f?o[a]=u:S3(a,u)})(Function.prototype,"toString",function(){return Gt(this)&&n(this).source||O3(this)})}),gee=Math.ceil,vee=Math.floor,I0=function(e){var t=+e;return t!=t||t===0?0:(t>0?vee:gee)(t)},mee=Math.max,yee=Math.min,bee=Math.min,RT=function(e){return e>0?bee(I0(e),9007199254740991):0},F3=function(e){return RT(e.length)},SS=function(e){return function(t,n,r){var i,o=P0(t),a=F3(o),u=function(s,l){var c=I0(s);return c<0?mee(c+l,0):yee(c,l)}(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}},jT={includes:SS(!0),indexOf:SS(!1)},$ee=jT.indexOf,xS=Ne([].push),LT=function(e,t){var n,r=P0(e),i=0,o=[];for(n in r)!Yn(B3,n)&&Yn(r,n)&&xS(o,n);for(;t.length>i;)Yn(r,n=t[i++])&&(~$ee(o,n)||xS(o,n));return o},ig=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wee=ig.concat("length","prototype"),Eee={f:Object.getOwnPropertyNames||function(e){return LT(e,wee)}},Cee={f:Object.getOwnPropertySymbols},Dee=Ne([].concat),See=sd("Reflect","ownKeys")||function(e){var t=Eee.f(So(e)),n=Cee.f;return n?Dee(t,n(e)):t},xee=function(e,t){for(var n=See(t),r=ld.f,i=PT.f,o=0;o<n.length;o++){var a=n[o];Yn(e,a)||r(e,a,i(t,a))}},Aee=/#|\.prototype\./,cd=function(e,t){var n=Bee[Oee(e)];return n==Tee||n!=Fee&&(Gt(t)?qt(t):!!t)},Oee=cd.normalize=function(e){return String(e).replace(Aee,".").toLowerCase()},Bee=cd.data={},Fee=cd.NATIVE="N",Tee=cd.POLYFILL="P",kee=cd,_ee=PT.f,Ks=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ae:l?Ae[u]||S3(u,{}):(Ae[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=_ee(n,r))&&a.value:n[r],!kee(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;xee(o,i)}(e.sham||i&&i.sham)&&vf(o,"sham",!0),rg(n,r,o,e)}},Pee=Object.keys||function(e){return LT(e,ig)},Nee=Do?Object.defineProperties:function(e,t){So(e);for(var n,r=P0(t),i=Pee(t),o=i.length,a=0;o>a;)ld.f(e,n=i[a++],r[n]);return e},Iee=sd("document","documentElement"),MT=NT("IE_PROTO"),Im=function(){},zT=function(e){return"<script>"+e+"<\/script>"},AS=function(e){e.write(zT("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yp=function(){try{fp=new ActiveXObject("htmlfile")}catch{}var e,t;Yp=typeof document!="undefined"?document.domain&&fp?AS(fp):((t=kT("iframe")).style.display="none",Iee.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zT("document.F=Object")),e.close(),e.F):AS(fp);for(var n=ig.length;n--;)delete Yp.prototype[ig[n]];return Yp()};B3[MT]=!0;var HT=Object.create||function(e,t){var n;return e!==null?(Im.prototype=So(e),n=new Im,Im.prototype=null,n[MT]=e):n=Yp(),t===void 0?n:Nee(n,t)},i4=Yr("unscopables"),o4=Array.prototype;o4[i4]==null&&ld.f(o4,i4,{configurable:!0,value:HT(null)});var OS,Ree=jT.includes;function UT(e){if(e==="bulleted-list")return"ul";if(e==="numbered-list")return"ol";if(e==="list-item")return"li";throw new Error("list type '"+e+"' is invalid")}function og(e){var t=x.getNodeType(e);return["bulleted-list","numbered-list"].includes(t)}function T3(e){return function(t,n,r){var i=UT(e);return de(i,null,n)}}Ks({target:"Array",proto:!0},{includes:function(e){return Ree(this,e,arguments.length>1?arguments[1]:void 0)}}),OS="includes",o4[i4][OS]=!0;var jee={type:"bulleted-list",renderElem:T3("bulleted-list")},Lee={type:"numbered-list",renderElem:T3("numbered-list")},Mee={type:"list-item",renderElem:T3("list-item")};function k3(e){var t=UT(e);return function(n,r){return"<"+t+">"+r+"</"+t+">"}}var zee={type:"bulleted-list",elemToHtml:k3("bulleted-list")},Hee={type:"numbered-list",elemToHtml:k3("numbered-list")},Uee={type:"list-item",elemToHtml:k3("list-item")},BS=Ne(Ne.bind),a4=Array.isArray||function(e){return Ca(e)=="Array"},VT={};VT[Yr("toStringTag")]="z";var _3=String(VT)==="[object z]",Vee=Yr("toStringTag"),Wee=Ae.Object,qee=Ca(function(){return arguments}())=="Arguments",P3=_3?Ca:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Wee(e),Vee))=="string"?n:qee?Ca(t):(r=Ca(t))=="Object"&&Gt(t.callee)?"Arguments":r},WT=function(){},Gee=[],qT=sd("Reflect","construct"),N3=/^\s*(?:class|function)\b/,Kee=Ne(N3.exec),Yee=!N3.exec(WT),Gl=function(e){if(!Gt(e))return!1;try{return qT(WT,Gee,e),!0}catch{return!1}},Xee=!qT||qt(function(){var e;return Gl(Gl.call)||!Gl(Object)||!Gl(function(){e=!0})||e})?function(e){if(!Gt(e))return!1;switch(P3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yee||!!Kee(N3,O3(e))}:Gl,Jee=Yr("species"),FS=Ae.Array,GT=function(e,t){return new(function(n){var r;return a4(n)&&(r=n.constructor,(Xee(r)&&(r===FS||a4(r.prototype))||ar(r)&&(r=r[Jee])===null)&&(r=void 0)),r===void 0?FS:r}(e))(t===0?0:t)},TS=Ne([].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,v=N0(s),m=OT(v),g=function(C,D){return BT(C),D===void 0?C:BS?BS(C,D):function(){return C.apply(D,arguments)}}(l,c),y=F3(m),h=0,$=f||GT,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:TS(w,d)}else switch(e){case 4:return!1;case 7:TS(w,d)}return o?-1:r||i?i:w}},Zee={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},Qee=Yr("species"),KT=function(e){return eg>=51||!qt(function(){var t=[];return(t.constructor={})[Qee]=function(){return{foo:1}},t[e](Boolean).foo!==1})},ete=Zee.filter;Ks({target:"Array",proto:!0,forced:!KT("filter")},{filter:function(e){return ete(this,e,arguments.length>1?arguments[1]:void 0)}});var tte=_3?{}.toString:function(){return"[object "+P3(this)+"]"};_3||rg(Object.prototype,"toString",tte,{unsafe:!0});var kS,Rm,nte=Ae.String,Fr=function(e){if(P3(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return nte(e)},rte=function(){var e=So(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},I3=Ae.RegExp,u4=qt(function(){var e=I3("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),ite=u4||qt(function(){return!I3("a","y").sticky}),ote={BROKEN_CARET:u4||qt(function(){var e=I3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:ite,UNSUPPORTED_Y:u4},ate=Ae.RegExp,ute=qt(function(){var e=ate(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),ste=Ae.RegExp,lte=qt(function(){var e=ste("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),cte=r4.get,fte=x3("native-string-replace",String.prototype.replace),ag=RegExp.prototype.exec,s4=ag,dte=Ne("".charAt),pte=Ne("".indexOf),hte=Ne("".replace),jm=Ne("".slice),Lm=(Rm=/b*/g,sn(ag,kS=/a/,"a"),sn(ag,Rm,"a"),kS.lastIndex!==0||Rm.lastIndex!==0),_S=ote.BROKEN_CARET,Mm=/()??/.exec("")[1]!==void 0;(Lm||Mm||_S||ute||lte)&&(s4=function(e){var t,n,r,i,o,a,u,s=this,l=cte(s),c=Fr(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=sn(s4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=_S&&s.sticky,v=sn(rte,s),m=s.source,g=0,y=c;if(p&&(v=hte(v,"y",""),pte(v,"g")===-1&&(v+="g"),y=jm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&dte(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Mm&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Lm&&(r=s.lastIndex),i=sn(ag,p?n:s,y),p?i?(i.input=jm(i.input,g),i[0]=jm(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Lm&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Mm&&i&&i.length>1&&sn(fte,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=HT(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var ug=s4;Ks({target:"RegExp",proto:!0,forced:/./.exec!==ug},{exec:ug});var R3=Function.prototype,PS=R3.apply,gte=R3.bind,NS=R3.call,vte=typeof Reflect=="object"&&Reflect.apply||(gte?NS.bind(PS):function(){return NS.apply(PS,arguments)}),mte=Yr("species"),zm=RegExp.prototype,yte=Ne("".charAt),IS=Ne("".charCodeAt),bte=Ne("".slice),RS=function(e){return function(t,n){var r,i,o=Fr(ud(t)),a=I0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=IS(o,a))<55296||r>56319||a+1===u||(i=IS(o,a+1))<56320||i>57343?e?yte(o,a):r:e?bte(o,a,a+2):i-56320+(r-55296<<10)+65536}},$te={codeAt:RS(!1),charAt:RS(!0)}.charAt,wte=function(e,t,n){return t+(n?$te(e,t).length:1)},Ete=Math.floor,Hm=Ne("".charAt),Cte=Ne("".replace),Um=Ne("".slice),Dte=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ste=/\$([$&'`]|\d{1,2})/g,xte=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=Ste;return i!==void 0&&(i=N0(i),s=Dte),Cte(o,s,function(l,c){var f;switch(Hm(c,0)){case"$":return"$";case"&":return e;case"`":return Um(t,0,n);case"'":return Um(t,a);case"<":f=i[Um(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Ete(d/10);return p===0?l:p<=u?r[p-1]===void 0?Hm(c,1):r[p-1]+Hm(c,1):l}f=r[d-1]}return f===void 0?"":f})},Ate=Ae.TypeError,Ote=function(e,t){var n=e.exec;if(Gt(n)){var r=sn(n,e,t);return r!==null&&So(r),r}if(Ca(e)==="RegExp")return sn(ug,e,t);throw Ate("RegExp#exec called on incompatible receiver")},l4=Yr("replace"),Bte=Math.max,Fte=Math.min,Tte=Ne([].concat),Vm=Ne([].push),jS=Ne("".indexOf),LS=Ne("".slice),kte="a".replace(/./,"$0")==="$0",MS=!!/./[l4]&&/./[l4]("a","$0")==="";(function(e,t,n,r){var i=Yr(e),o=!qt(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!qt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[mte]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Ne(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=Ne(l),m=c.exec;return m===ug||m===zm.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});rg(String.prototype,e,s[0]),rg(zm,i,s[1])}r&&vf(zm[i],"sham",!0)})("replace",function(e,t,n){var r=MS?"$":"$0";return[function(i,o){var a=ud(this),u=i==null?void 0:FT(i,l4);return u?sn(u,i,a,o):sn(t,Fr(a),i,o)},function(i,o){var a=So(this),u=Fr(i);if(typeof o=="string"&&jS(o,r)===-1&&jS(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Gt(o);l||(o=Fr(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Ote(a,u);if(p===null||(Vm(d,p),!c))break;Fr(p[0])===""&&(a.lastIndex=wte(u,RT(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Fr((p=d[y])[0]),$=Bte(Fte(I0(p.index),u.length),0),w=[],C=1;C<p.length;C++)Vm(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=Tte([h],w,$,u);D!==void 0&&Vm(A,D);var N=Fr(vte(o,void 0,A))}else N=xte(h,u,$,w,D,o);$>=g&&(m+=LS(u,g,$)+N,g=$+h.length)}return m+LS(u,g)}]},!!qt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!kte||MS),Ks({global:!0},{globalThis:Ae});var _te={selector:"li",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",children:t}}},Pte={selector:"ul",parseElemHtml:function(e,t,n){return{type:"bulleted-list",children:t.filter(function(r){return x.getNodeType(r)==="list-item"})}}},Nte={selector:"ol",parseElemHtml:function(e,t,n){return{type:"numbered-list",children:t.filter(function(r){return x.getNodeType(r)==="list-item"})}}},c4=function(e,t){return c4=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])},c4(e,t)};/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function YT(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}c4(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function f4(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}var zS,XT=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return x.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!this.getListNode(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!x.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.getMatchListType=function(t){var n=f4(E.nodes(t,{match:function(o){return og(o)},universal:!0}),1),r=n[0];if(r==null)return"";var i=f4(r,1)[0];return x.getNodeType(i)},e.prototype.exec=function(t,n){var r=this.type,i=this.isActive(t);P.unwrapNodes(t,{match:function(u){return og(u)},split:!0}),P.setNodes(t,{type:i?"paragraph":"list-item"});var o={type:r,children:[]};i||P.wrapNodes(t,o);var a=this.getMatchListType(t);a!=""&&a!==r&&P.wrapNodes(t,o)},e}(),Ite='<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>',Rte='<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>',jte=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="bulleted-list",n.title=G("listModule.unOrderedList"),n.iconSvg=Ite,n}return YT(t,e),t}(XT),Lte=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="numbered-list",n.title=G("listModule.orderedList"),n.iconSvg=Rte,n}return YT(t,e),t}(XT),Mte={key:"bulletedList",factory:function(){return new jte}},zte={key:"numberedList",factory:function(){return new Lte}},Hte=/"/g,Ute=Ne("".replace);Ks({target:"String",proto:!0,forced:(zS="anchor",qt(function(){var e=""[zS]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=Fr(ud(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+Ute(Fr(r),Hte,""")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var HS=function(e,t,n){var r=A3(t);r in e?ld.f(e,r,C3(0,n)):e[r]=n},JT=Yr("isConcatSpreadable"),US=Ae.TypeError,Vte=eg>=51||!qt(function(){var e=[];return e[JT]=!1,e.concat()[0]!==e}),Wte=KT("concat"),qte=function(e){if(!ar(e))return!1;var t=e[JT];return t!==void 0?!!t:a4(e)};Ks({target:"Array",proto:!0,forced:!Vte||!Wte},{concat:function(e){var t,n,r,i,o,a=N0(this),u=GT(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(qte(o=t===-1?a:arguments[t])){if(s+(i=F3(o))>9007199254740991)throw US("Maximum allowed index exceeded");for(n=0;n<i;n++,s++)n in o&&HS(u,s,o[n])}else{if(s>=9007199254740991)throw US("Maximum allowed index exceeded");HS(u,s++,o)}return u.length=s,u}});var Gte={renderElems:[jee,Lee,Mee],elemsToHtml:[zee,Hee,Uee],parseElemsHtml:[_te,Nte,Pte],menus:[Mte,zte],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward;e.insertNode;var r=e;return r.insertBreak=function(){var i=r.selection;if(i!=null){var o=x.getSelectedNodeByType(r,"list-item");if(o!=null){var a=x.getParentNode(r,o),u=(a==null?void 0:a.children)||[];if(o===u[u.length-1]&&q.string(o)===""){P.removeNodes(r,{match:function(l){return x.checkNodeType(l,"list-item")}});var s=[i.anchor.path[0]+1];return P.insertNodes(r,x.genEmptyParagraph(),{at:s}),void r.select({path:s.concat(0),offset:0})}t()}else t()}else t()},r.deleteBackward=function(i){var o=function(a){var u=f4(E.nodes(a,{match:function(c){return a.children[0]===c},mode:"highest"}),1),s=u[0];if(s==null)return!1;var l=s[0];return!(!te.isElement(l)||q.string(l)||!og(l)||(P.unwrapNodes(a,{match:function(c){return og(c)},split:!0}),P.setNodes(a,{type:"paragraph"}),0))}(r);o||n(i)},r}},ZT=R$(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]",v="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",h="[object Object]",$="[object Promise]",w="[object Proxy]",C="[object RegExp]",D="[object Set]",A="[object String]",N="[object Symbol]",M="[object Undefined]",U="[object WeakMap]",V="[object ArrayBuffer]",J="[object DataView]",Z="[object Float32Array]",se="[object Float64Array]",ee="[object Int8Array]",ae="[object Int16Array]",fe="[object Int32Array]",_e="[object Uint8Array]",ve="[object Uint8ClampedArray]",ie="[object Uint16Array]",Ie="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,I={};I[Z]=I[se]=I[ee]=I[ae]=I[fe]=I[_e]=I[ve]=I[ie]=I[Ie]=!0,I[u]=I[s]=I[V]=I[c]=I[J]=I[f]=I[d]=I[p]=I[m]=I[g]=I[h]=I[C]=I[D]=I[A]=I[U]=!1;var H=typeof ot=="object"&&ot&&ot.Object===Object&&ot,j=typeof self=="object"&&self&&self.Object===Object&&self,Q=H||j||Function("return this")(),ce=t&&!t.nodeType&&t,we=ce&&!0&&e&&!e.nodeType&&e,Re=we&&we.exports===ce,z=Re&&H.process,ze=function(){try{return z&&z.binding&&z.binding("util")}catch{}}(),ye=ze&&ze.isTypedArray;function ue(b,S){for(var B=-1,L=b==null?0:b.length,me=0,oe=[];++B<L;){var Fe=b[B];S(Fe,B,b)&&(oe[me++]=Fe)}return oe}function be(b,S){for(var B=-1,L=S.length,me=b.length;++B<L;)b[me+B]=S[B];return b}function yn(b,S){for(var B=-1,L=b==null?0:b.length;++B<L;)if(S(b[B],B,b))return!0;return!1}function qe(b,S){for(var B=-1,L=Array(b);++B<b;)L[B]=S(B);return L}function lt(b){return function(S){return b(S)}}function ft(b,S){return b.has(S)}function ln(b,S){return b==null?void 0:b[S]}function dt(b){var S=-1,B=Array(b.size);return b.forEach(function(L,me){B[++S]=[me,L]}),B}function In(b,S){return function(B){return b(S(B))}}function bn(b){var S=-1,B=Array(b.size);return b.forEach(function(L){B[++S]=L}),B}var cn=Array.prototype,yr=Function.prototype,br=Object.prototype,$n=Q["__core-js_shared__"],$r=yr.toString,on=br.hasOwnProperty,Rn=function(){var b=/[^.]+$/.exec($n&&$n.keys&&$n.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),nu=br.toString,Xs=RegExp("^"+$r.call(on).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xr=Re?Q.Buffer:void 0,$i=Q.Symbol,ru=Q.Uint8Array,wi=br.propertyIsEnumerable,Jr=cn.splice,wn=$i?$i.toStringTag:void 0,Ei=Object.getOwnPropertySymbols,Js=Xr?Xr.isBuffer:void 0,jo=In(Object.keys,Object),Zs=Qr(Q,"DataView"),Lo=Qr(Q,"Map"),Qs=Qr(Q,"Promise"),el=Qr(Q,"Set"),tl=Qr(Q,"WeakMap"),Ci=Qr(Object,"create"),Cd=an(Zs),Zr=an(Lo),nv=an(Qs),rv=an(el),iv=an(tl),Dd=$i?$i.prototype:void 0,nl=Dd?Dd.valueOf:void 0;function Mt(b){var S=-1,B=b==null?0:b.length;for(this.clear();++S<B;){var L=b[S];this.set(L[0],L[1])}}function ov(){this.__data__=Ci?Ci(null):{},this.size=0}function av(b){var S=this.has(b)&&delete this.__data__[b];return this.size-=S?1:0,S}function uv(b){var S=this.__data__;if(Ci){var B=S[b];return B===r?void 0:B}return on.call(S,b)?S[b]:void 0}function sv(b){var S=this.__data__;return Ci?S[b]!==void 0:on.call(S,b)}function lv(b,S){var B=this.__data__;return this.size+=this.has(b)?0:1,B[b]=Ci&&S===void 0?r:S,this}Mt.prototype.clear=ov,Mt.prototype.delete=av,Mt.prototype.get=uv,Mt.prototype.has=sv,Mt.prototype.set=lv;function Yt(b){var S=-1,B=b==null?0:b.length;for(this.clear();++S<B;){var L=b[S];this.set(L[0],L[1])}}function cv(){this.__data__=[],this.size=0}function fv(b){var S=this.__data__,B=au(S,b);if(B<0)return!1;var L=S.length-1;return B==L?S.pop():Jr.call(S,B,1),--this.size,!0}function dv(b){var S=this.__data__,B=au(S,b);return B<0?void 0:S[B][1]}function pv(b){return au(this.__data__,b)>-1}function hv(b,S){var B=this.__data__,L=au(B,b);return L<0?(++this.size,B.push([b,S])):B[L][1]=S,this}Yt.prototype.clear=cv,Yt.prototype.delete=fv,Yt.prototype.get=dv,Yt.prototype.has=pv,Yt.prototype.set=hv;function fn(b){var S=-1,B=b==null?0:b.length;for(this.clear();++S<B;){var L=b[S];this.set(L[0],L[1])}}function gv(){this.size=0,this.__data__={hash:new Mt,map:new(Lo||Yt),string:new Mt}}function vv(b){var S=rr(this,b).delete(b);return this.size-=S?1:0,S}function mv(b){return rr(this,b).get(b)}function yv(b){return rr(this,b).has(b)}function bv(b,S){var B=rr(this,b),L=B.size;return B.set(b,S),this.size+=B.size==L?0:1,this}fn.prototype.clear=gv,fn.prototype.delete=vv,fn.prototype.get=mv,fn.prototype.has=yv,fn.prototype.set=bv;function iu(b){var S=-1,B=b==null?0:b.length;for(this.__data__=new fn;++S<B;)this.add(b[S])}function Sd(b){return this.__data__.set(b,r),this}function ou(b){return this.__data__.has(b)}iu.prototype.add=iu.prototype.push=Sd,iu.prototype.has=ou;function wr(b){var S=this.__data__=new Yt(b);this.size=S.size}function rl(){this.__data__=new Yt,this.size=0}function $v(b){var S=this.__data__,B=S.delete(b);return this.size=S.size,B}function wv(b){return this.__data__.get(b)}function Ev(b){return this.__data__.has(b)}function Cv(b,S){var B=this.__data__;if(B instanceof Yt){var L=B.__data__;if(!Lo||L.length<n-1)return L.push([b,S]),this.size=++B.size,this;B=this.__data__=new fn(L)}return B.set(b,S),this.size=B.size,this}wr.prototype.clear=rl,wr.prototype.delete=$v,wr.prototype.get=wv,wr.prototype.has=Ev,wr.prototype.set=Cv;function Dv(b,S){var B=uu(b),L=!B&&Fd(b),me=!B&&!L&&su(b),oe=!B&&!L&&!me&&_d(b),Fe=B||L||me||oe,Pe=Fe?qe(b.length,String):[],wt=Pe.length;for(var He in b)(S||on.call(b,He))&&!(Fe&&(He=="length"||me&&(He=="offset"||He=="parent")||oe&&(He=="buffer"||He=="byteLength"||He=="byteOffset")||kv(He,wt)))&&Pe.push(He);return Pe}function au(b,S){for(var B=b.length;B--;)if(Bd(b[B][0],S))return B;return-1}function il(b,S,B){var L=S(b);return uu(b)?L:be(L,B(b))}function Mo(b){return b==null?b===void 0?M:y:wn&&wn in Object(b)?ei(b):Od(b)}function xd(b){return Cr(b)&&Mo(b)==u}function Ad(b,S,B,L,me){return b===S?!0:b==null||S==null||!Cr(b)&&!Cr(S)?b!==b&&S!==S:Sv(b,S,B,L,Ad,me)}function Sv(b,S,B,L,me,oe){var Fe=uu(b),Pe=uu(S),wt=Fe?s:Er(b),He=Pe?s:Er(S);wt=wt==u?h:wt,He=He==u?h:He;var Xt=wt==h,dn=He==h,Tt=wt==He;if(Tt&&su(b)){if(!su(S))return!1;Fe=!0,Xt=!1}if(Tt&&!Xt)return oe||(oe=new wr),Fe||_d(b)?ol(b,S,B,L,me,oe):Bv(b,S,wt,B,L,me,oe);if(!(B&i)){var Jt=Xt&&on.call(b,"__wrapped__"),zt=dn&&on.call(S,"__wrapped__");if(Jt||zt){var Di=Jt?b.value():b,ti=zt?S.value():S;return oe||(oe=new wr),me(Di,ti,B,L,oe)}}return Tt?(oe||(oe=new wr),Fv(b,S,B,L,me,oe)):!1}function xv(b){if(!kd(b)||Pv(b))return!1;var S=Td(b)?Xs:F;return S.test(an(b))}function Av(b){return Cr(b)&&ul(b.length)&&!!I[Mo(b)]}function Ov(b){if(!Nv(b))return jo(b);var S=[];for(var B in Object(b))on.call(b,B)&&B!="constructor"&&S.push(B);return S}function ol(b,S,B,L,me,oe){var Fe=B&i,Pe=b.length,wt=S.length;if(Pe!=wt&&!(Fe&&wt>Pe))return!1;var He=oe.get(b);if(He&&oe.get(S))return He==S;var Xt=-1,dn=!0,Tt=B&o?new iu:void 0;for(oe.set(b,S),oe.set(S,b);++Xt<Pe;){var Jt=b[Xt],zt=S[Xt];if(L)var Di=Fe?L(zt,Jt,Xt,S,b,oe):L(Jt,zt,Xt,b,S,oe);if(Di!==void 0){if(Di)continue;dn=!1;break}if(Tt){if(!yn(S,function(ti,Ho){if(!ft(Tt,Ho)&&(Jt===ti||me(Jt,ti,B,L,oe)))return Tt.push(Ho)})){dn=!1;break}}else if(!(Jt===zt||me(Jt,zt,B,L,oe))){dn=!1;break}}return oe.delete(b),oe.delete(S),dn}function Bv(b,S,B,L,me,oe,Fe){switch(B){case J:if(b.byteLength!=S.byteLength||b.byteOffset!=S.byteOffset)return!1;b=b.buffer,S=S.buffer;case V:return!(b.byteLength!=S.byteLength||!oe(new ru(b),new ru(S)));case c:case f:case g:return Bd(+b,+S);case d:return b.name==S.name&&b.message==S.message;case C:case A:return b==S+"";case m:var Pe=dt;case D:var wt=L&i;if(Pe||(Pe=bn),b.size!=S.size&&!wt)return!1;var He=Fe.get(b);if(He)return He==S;L|=o,Fe.set(b,S);var Xt=ol(Pe(b),Pe(S),L,me,oe,Fe);return Fe.delete(b),Xt;case N:if(nl)return nl.call(b)==nl.call(S)}return!1}function Fv(b,S,B,L,me,oe){var Fe=B&i,Pe=zo(b),wt=Pe.length,He=zo(S),Xt=He.length;if(wt!=Xt&&!Fe)return!1;for(var dn=wt;dn--;){var Tt=Pe[dn];if(!(Fe?Tt in S:on.call(S,Tt)))return!1}var Jt=oe.get(b);if(Jt&&oe.get(S))return Jt==S;var zt=!0;oe.set(b,S),oe.set(S,b);for(var Di=Fe;++dn<wt;){Tt=Pe[dn];var ti=b[Tt],Ho=S[Tt];if(L)var m5=Fe?L(Ho,ti,Tt,S,b,oe):L(ti,Ho,Tt,b,S,oe);if(!(m5===void 0?ti===Ho||me(ti,Ho,B,L,oe):m5)){zt=!1;break}Di||(Di=Tt=="constructor")}if(zt&&!Di){var Pd=b.constructor,Nd=S.constructor;Pd!=Nd&&"constructor"in b&&"constructor"in S&&!(typeof Pd=="function"&&Pd instanceof Pd&&typeof Nd=="function"&&Nd instanceof Nd)&&(zt=!1)}return oe.delete(b),oe.delete(S),zt}function zo(b){return il(b,sl,Tv)}function rr(b,S){var B=b.__data__;return _v(S)?B[typeof S=="string"?"string":"hash"]:B.map}function Qr(b,S){var B=ln(b,S);return xv(B)?B:void 0}function ei(b){var S=on.call(b,wn),B=b[wn];try{b[wn]=void 0;var L=!0}catch{}var me=nu.call(b);return L&&(S?b[wn]=B:delete b[wn]),me}var Tv=Ei?function(b){return b==null?[]:(b=Object(b),ue(Ei(b),function(S){return wi.call(b,S)}))}:Rv,Er=Mo;(Zs&&Er(new Zs(new ArrayBuffer(1)))!=J||Lo&&Er(new Lo)!=m||Qs&&Er(Qs.resolve())!=$||el&&Er(new el)!=D||tl&&Er(new tl)!=U)&&(Er=function(b){var S=Mo(b),B=S==h?b.constructor:void 0,L=B?an(B):"";if(L)switch(L){case Cd:return J;case Zr:return m;case nv:return $;case rv:return D;case iv:return U}return S});function kv(b,S){return S=S==null?a:S,!!S&&(typeof b=="number"||k.test(b))&&b>-1&&b%1==0&&b<S}function _v(b){var S=typeof b;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?b!=="__proto__":b===null}function Pv(b){return!!Rn&&Rn in b}function Nv(b){var S=b&&b.constructor,B=typeof S=="function"&&S.prototype||br;return b===B}function Od(b){return nu.call(b)}function an(b){if(b!=null){try{return $r.call(b)}catch{}try{return b+""}catch{}}return""}function Bd(b,S){return b===S||b!==b&&S!==S}var Fd=xd(function(){return arguments}())?xd:function(b){return Cr(b)&&on.call(b,"callee")&&!wi.call(b,"callee")},uu=Array.isArray;function al(b){return b!=null&&ul(b.length)&&!Td(b)}var su=Js||jv;function Iv(b,S){return Ad(b,S)}function Td(b){if(!kd(b))return!1;var S=Mo(b);return S==p||S==v||S==l||S==w}function ul(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=a}function kd(b){var S=typeof b;return b!=null&&(S=="object"||S=="function")}function Cr(b){return b!=null&&typeof b=="object"}var _d=ye?lt(ye):Av;function sl(b){return al(b)?Dv(b):Ov(b)}function Rv(){return[]}function jv(){return!1}e.exports=Iv});mn("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"}}),mn("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 VS=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function QT(e){var t={exports:{}};return e(t,t.exports),t.exports}var ji,Xp,dp=function(e){return e&&e.Math==Math&&e},De=dp(typeof globalThis=="object"&&globalThis)||dp(typeof window=="object"&&window)||dp(typeof self=="object"&&self)||dp(typeof VS=="object"&&VS)||function(){return this}()||Function("return this")(),Bt=function(e){try{return!!e()}catch{return!0}},xo=!Bt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Kl=Function.prototype.call,xt=Kl.bind?Kl.bind(Kl):function(){return Kl.apply(Kl,arguments)},WS={}.propertyIsEnumerable,qS=Object.getOwnPropertyDescriptor,Kte={f:qS&&!WS.call({1:2},1)?function(e){var t=qS(this,e);return!!t&&t.enumerable}:WS},j3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ek=Function.prototype,d4=ek.bind,p4=ek.call,Yte=d4&&d4.bind(p4),xe=d4?function(e){return e&&Yte(p4,e)}:function(e){return e&&function(){return p4.apply(e,arguments)}},Xte=xe({}.toString),Jte=xe("".slice),lo=function(e){return Jte(Xte(e),8,-1)},Wm=De.Object,Zte=xe("".split),tk=Bt(function(){return!Wm("z").propertyIsEnumerable(0)})?function(e){return lo(e)=="String"?Zte(e,""):Wm(e)}:Wm,Qte=De.TypeError,Ao=function(e){if(e==null)throw Qte("Can't call method on "+e);return e},fd=function(e){return tk(Ao(e))},Kt=function(e){return typeof e=="function"},qn=function(e){return typeof e=="object"?e!==null:Kt(e)},ene=function(e){return Kt(e)?e:void 0},dd=function(e,t){return arguments.length<2?ene(De[e]):De[e]&&De[e][t]},nk=xe({}.isPrototypeOf),qm=dd("navigator","userAgent")||"",GS=De.process,KS=De.Deno,YS=GS&&GS.versions||KS&&KS.version,XS=YS&&YS.v8;XS&&(Xp=(ji=XS.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!Xp&&qm&&(!(ji=qm.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=qm.match(/Chrome\/(\d+)/))&&(Xp=+ji[1]);var h4=Xp,g4=!!Object.getOwnPropertySymbols&&!Bt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&h4&&h4<41}),L3=g4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tne=De.Object,v4=L3?function(e){return typeof e=="symbol"}:function(e){var t=dd("Symbol");return Kt(t)&&nk(t.prototype,tne(e))},nne=De.String,rk=function(e){try{return nne(e)}catch{return"Object"}},rne=De.TypeError,ik=function(e){if(Kt(e))return e;throw rne(rk(e)+" is not a function")},M3=function(e,t){var n=e[t];return n==null?void 0:ik(n)},ine=De.TypeError,one=Object.defineProperty,z3=function(e,t){try{one(De,e,{value:t,configurable:!0,writable:!0})}catch{De[e]=t}return t},co=De["__core-js_shared__"]||z3("__core-js_shared__",{}),H3=QT(function(e){(e.exports=function(t,n){return co[t]||(co[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),ane=De.Object,U3=function(e){return ane(Ao(e))},une=xe({}.hasOwnProperty),Xn=Object.hasOwn||function(e,t){return une(U3(e),t)},sne=0,lne=Math.random(),cne=xe(1 .toString),ok=function(e){return"Symbol("+(e===void 0?"":e)+")_"+cne(++sne+lne,36)},Yl=H3("wks"),Sa=De.Symbol,JS=Sa&&Sa.for,fne=L3?Sa:Sa&&Sa.withoutSetter||ok,nr=function(e){if(!Xn(Yl,e)||!g4&&typeof Yl[e]!="string"){var t="Symbol."+e;g4&&Xn(Sa,e)?Yl[e]=Sa[e]:Yl[e]=L3&&JS?JS(t):fne(t)}return Yl[e]},dne=De.TypeError,pne=nr("toPrimitive"),hne=function(e,t){if(!qn(e)||v4(e))return e;var n,r=M3(e,pne);if(r){if(t===void 0&&(t="default"),n=xt(r,e,t),!qn(n)||v4(n))return n;throw dne("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)&&!qn(u=xt(a,i))||Kt(a=i.valueOf)&&!qn(u=xt(a,i))||o!=="string"&&Kt(a=i.toString)&&!qn(u=xt(a,i)))return u;throw ine("Can't convert object to primitive value")}(e,t)},V3=function(e){var t=hne(e,"string");return v4(t)?t:t+""},m4=De.document,gne=qn(m4)&&qn(m4.createElement),W3=function(e){return gne?m4.createElement(e):{}},ak=!xo&&!Bt(function(){return Object.defineProperty(W3("div"),"a",{get:function(){return 7}}).a!=7}),ZS=Object.getOwnPropertyDescriptor,uk={f:xo?ZS:function(e,t){if(e=fd(e),t=V3(t),ak)try{return ZS(e,t)}catch{}if(Xn(e,t))return j3(!xt(Kte.f,e,t),e[t])}},vne=De.String,mne=De.TypeError,tr=function(e){if(qn(e))return e;throw mne(vne(e)+" is not an object")},yne=De.TypeError,QS=Object.defineProperty,pd={f:xo?QS:function(e,t,n){if(tr(e),t=V3(t),tr(n),ak)try{return QS(e,t,n)}catch{}if("get"in n||"set"in n)throw yne("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Os=xo?function(e,t,n){return pd.f(e,t,j3(1,n))}:function(e,t,n){return e[t]=n,e},bne=xe(Function.toString);Kt(co.inspectSource)||(co.inspectSource=function(e){return bne(e)});var sg,jc,lg,q3=co.inspectSource,ex=De.WeakMap,$ne=Kt(ex)&&/native code/.test(q3(ex)),tx=H3("keys"),sk=function(e){return tx[e]||(tx[e]=ok(e))},G3={},y4=De.TypeError,wne=De.WeakMap;if($ne||co.state){var Xo=co.state||(co.state=new wne),Ene=xe(Xo.get),nx=xe(Xo.has),Cne=xe(Xo.set);sg=function(e,t){if(nx(Xo,e))throw new y4("Object already initialized");return t.facade=e,Cne(Xo,e,t),t},jc=function(e){return Ene(Xo,e)||{}},lg=function(e){return nx(Xo,e)}}else{var xu=sk("state");G3[xu]=!0,sg=function(e,t){if(Xn(e,xu))throw new y4("Object already initialized");return t.facade=e,Os(e,xu,t),t},jc=function(e){return Xn(e,xu)?e[xu]:{}},lg=function(e){return Xn(e,xu)}}var b4={set:sg,get:jc,has:lg,enforce:function(e){return lg(e)?jc(e):sg(e,{})},getterFor:function(e){return function(t){var n;if(!qn(t)||(n=jc(t)).type!==e)throw y4("Incompatible receiver, "+e+" required");return n}}},lk=Function.prototype,Dne=xo&&Object.getOwnPropertyDescriptor,Gm=Xn(lk,"name"),K3={EXISTS:Gm,PROPER:Gm&&function(){}.name==="something",CONFIGURABLE:Gm&&(!xo||xo&&Dne(lk,"name").configurable)},mf=QT(function(e){var t=K3.CONFIGURABLE,n=b4.get,r=b4.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")+"]"),(!Xn(u,"name")||t&&u.name!==p)&&Os(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:Os(o,a,u)):f?o[a]=u:z3(a,u)})(Function.prototype,"toString",function(){return Kt(this)&&n(this).source||q3(this)})}),Sne=Math.ceil,xne=Math.floor,R0=function(e){var t=+e;return t!=t||t===0?0:(t>0?xne:Sne)(t)},Ane=Math.max,One=Math.min,yf=function(e,t){var n=R0(e);return n<0?Ane(n+t,0):One(n,t)},Bne=Math.min,Y3=function(e){return e>0?Bne(R0(e),9007199254740991):0},j0=function(e){return Y3(e.length)},rx=function(e){return function(t,n,r){var i,o=fd(t),a=j0(o),u=yf(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}},Fne={includes:rx(!0),indexOf:rx(!1)}.indexOf,ix=xe([].push),ck=function(e,t){var n,r=fd(e),i=0,o=[];for(n in r)!Xn(G3,n)&&Xn(r,n)&&ix(o,n);for(;t.length>i;)Xn(r,n=t[i++])&&(~Fne(o,n)||ix(o,n));return o},cg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tne=cg.concat("length","prototype"),kne={f:Object.getOwnPropertyNames||function(e){return ck(e,Tne)}},_ne={f:Object.getOwnPropertySymbols},Pne=xe([].concat),Nne=dd("Reflect","ownKeys")||function(e){var t=kne.f(tr(e)),n=_ne.f;return n?Pne(t,n(e)):t},Ine=function(e,t){for(var n=Nne(t),r=pd.f,i=uk.f,o=0;o<n.length;o++){var a=n[o];Xn(e,a)||r(e,a,i(t,a))}},Rne=/#|\.prototype\./,hd=function(e,t){var n=Lne[jne(e)];return n==zne||n!=Mne&&(Kt(t)?Bt(t):!!t)},jne=hd.normalize=function(e){return String(e).replace(Rne,".").toLowerCase()},Lne=hd.data={},Mne=hd.NATIVE="N",zne=hd.POLYFILL="P",Hne=hd,Une=uk.f,Oo=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]||z3(u,{}):(De[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Une(n,r))&&a.value:n[r],!Hne(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Ine(o,i)}(e.sham||i&&i.sham)&&Os(o,"sham",!0),mf(n,r,o,e)}},fk={};fk[nr("toStringTag")]="z";var ox,X3=String(fk)==="[object z]",Vne=nr("toStringTag"),Wne=De.Object,qne=lo(function(){return arguments}())=="Arguments",J3=X3?lo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Wne(e),Vne))=="string"?n:qne?lo(t):(r=lo(t))=="Object"&&Kt(t.callee)?"Arguments":r},Gne=De.String,tn=function(e){if(J3(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Gne(e)},Kne=/"/g,Yne=xe("".replace);Oo({target:"String",proto:!0,forced:(ox="anchor",Bt(function(){var e=""[ox]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,i=tn(Ao(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+Yne(tn(r),Kne,""")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var pp,dk=function(){var e=tr(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=De.RegExp,$4=Bt(function(){var e=Z3("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Xne=$4||Bt(function(){return!Z3("a","y").sticky}),pk={BROKEN_CARET:$4||Bt(function(){var e=Z3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Xne,UNSUPPORTED_Y:$4},Jne=Object.keys||function(e){return ck(e,cg)},Zne=xo?Object.defineProperties:function(e,t){tr(e);for(var n,r=fd(t),i=Jne(t),o=i.length,a=0;o>a;)pd.f(e,n=i[a++],r[n]);return e},Qne=dd("document","documentElement"),hk=sk("IE_PROTO"),Km=function(){},gk=function(e){return"<script>"+e+"<\/script>"},ax=function(e){e.write(gk("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jp=function(){try{pp=new ActiveXObject("htmlfile")}catch{}var e,t;Jp=typeof document!="undefined"?document.domain&&pp?ax(pp):((t=W3("iframe")).style.display="none",Qne.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(gk("document.F=Object")),e.close(),e.F):ax(pp);for(var n=cg.length;n--;)delete Jp.prototype[cg[n]];return Jp()};G3[hk]=!0;var ux,Ym,vk=Object.create||function(e,t){var n;return e!==null?(Km.prototype=tr(e),n=new Km,Km.prototype=null,n[hk]=e):n=Jp(),t===void 0?n:Zne(n,t)},ere=De.RegExp,tre=Bt(function(){var e=ere(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),nre=De.RegExp,rre=Bt(function(){var e=nre("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),ire=b4.get,ore=H3("native-string-replace",String.prototype.replace),fg=RegExp.prototype.exec,w4=fg,are=xe("".charAt),ure=xe("".indexOf),sre=xe("".replace),Xm=xe("".slice),Jm=(Ym=/b*/g,xt(fg,ux=/a/,"a"),xt(fg,Ym,"a"),ux.lastIndex!==0||Ym.lastIndex!==0),sx=pk.BROKEN_CARET,Zm=/()??/.exec("")[1]!==void 0;(Jm||Zm||sx||tre||rre)&&(w4=function(e){var t,n,r,i,o,a,u,s=this,l=ire(s),c=tn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=xt(w4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=sx&&s.sticky,v=xt(dk,s),m=s.source,g=0,y=c;if(p&&(v=sre(v,"y",""),ure(v,"g")===-1&&(v+="g"),y=Xm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&are(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Zm&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Jm&&(r=s.lastIndex),i=xt(fg,p?n:s,y),p?i?(i.input=Xm(i.input,g),i[0]=Xm(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Jm&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Zm&&i&&i.length>1&&xt(ore,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=vk(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var bf=w4;Oo({target:"RegExp",proto:!0,forced:/./.exec!==bf},{exec:bf});var dg=Array.isArray||function(e){return lo(e)=="Array"},mk=function(){},lre=[],yk=dd("Reflect","construct"),Q3=/^\s*(?:class|function)\b/,cre=xe(Q3.exec),fre=!Q3.exec(mk),Xl=function(e){if(!Kt(e))return!1;try{return yk(mk,lre,e),!0}catch{return!1}},eE=!yk||Bt(function(){var e;return Xl(Xl.call)||!Xl(Object)||!Xl(function(){e=!0})||e})?function(e){if(!Kt(e))return!1;switch(J3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fre||!!cre(Q3,q3(e))}:Xl,bk=function(e,t,n){var r=V3(t);r in e?pd.f(e,r,j3(0,n)):e[r]=n},dre=nr("species"),tE=function(e){return h4>=51||!Bt(function(){var t=[];return(t.constructor={})[dre]=function(){return{foo:1}},t[e](Boolean).foo!==1})},pre=xe([].slice),hre=tE("slice"),gre=nr("species"),Qm=De.Array,vre=Math.max;function gr(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 lx(e){var t=e.selection;if(t==null)return!1;var n=gr(E.nodes(e,{match:function(o){return x.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=gr(n,2)[1],i=E.start(e,r);if($e.equals(t.anchor,i))return!0}return!1}function cx(e,t){var n,r,i=E.nodes(e,{at:t,match:function(s){return x.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}Oo({target:"Array",proto:!0,forced:!hre},{slice:function(e,t){var n,r,i,o=fd(this),a=j0(o),u=yf(e,a),s=yf(t===void 0?a:t,a);if(dg(o)&&(n=o.constructor,(eE(n)&&(n===Qm||dg(n.prototype))||qn(n)&&(n=n[gre])===null)&&(n=void 0),n===Qm||n===void 0))return pre(o,u,s);for(r=new(n===void 0?Qm:n)(vre(s-u,0)),i=0;u<s;u++,i++)u in o&&bk(r,i,o[u]);return r.length=i,r}});var fx=xe(xe.bind),mre=nr("species"),dx=De.Array,yre=function(e,t){return new(function(n){var r;return dg(n)&&(r=n.constructor,(eE(r)&&(r===dx||dg(r.prototype))||qn(r)&&(r=r[mre])===null)&&(r=void 0)),r===void 0?dx:r}(e))(t===0?0:t)},px=xe([].push),Li=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,v=U3(s),m=tk(v),g=function(C,D){return ik(C),D===void 0?C:fx?fx(C,D):function(){return C.apply(D,arguments)}}(l,c),y=j0(m),h=0,$=f||yre,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:px(w,d)}else switch(e){case 4:return!1;case 7:px(w,d)}return o?-1:r||i?i:w}},L0={forEach:Li(0),map:Li(1),filter:Li(2),some:Li(3),every:Li(4),find:Li(5),findIndex:Li(6),filterReject:Li(7)},bre=L0.map;Oo({target:"Array",proto:!0,forced:!tE("map")},{map:function(e){return bre(this,e,arguments.length>1?arguments[1]:void 0)}});var $re=X3?{}.toString:function(){return"[object "+J3(this)+"]"};function M0(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function $k(e){return M0(e).every(function(t){return!!t.isHeader})}X3||mf(Object.prototype,"toString",$re,{unsafe:!0});var wre=K3.PROPER,E4=RegExp.prototype,wk=E4.toString,Ere=xe(dk),Cre=Bt(function(){return wk.call({source:"a",flags:"b"})!="/a/b"}),Dre=wre&&wk.name!="toString";(Cre||Dre)&&mf(RegExp.prototype,"toString",function(){var e=tr(this),t=tn(e.source),n=e.flags;return"/"+t+"/"+tn(n===void 0&&nk(E4,e)&&!("flags"in E4)?Ere(e):n)},{unsafe:!0});var C4=nr("unscopables"),D4=Array.prototype;D4[C4]==null&&pd.f(D4,C4,{configurable:!0,value:vk(null)});var hx,Sre=L0.find,gx=!0;"find"in[]&&Array(1).find(function(){gx=!1}),Oo({target:"Array",proto:!0,forced:gx},{find:function(e){return Sre(this,e,arguments.length>1?arguments[1]:void 0)}}),hx="find",D4[C4][hx]=!0;var nE=Function.prototype,vx=nE.apply,xre=nE.bind,mx=nE.call,Ek=typeof Reflect=="object"&&Reflect.apply||(xre?mx.bind(vx):function(){return mx.apply(vx,arguments)}),Are=nr("species"),ey=RegExp.prototype,Ck=function(e,t,n,r){var i=nr(e),o=!Bt(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Bt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Are]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=xe(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=xe(l),m=c.exec;return m===bf||m===ey.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});mf(String.prototype,e,s[0]),mf(ey,i,s[1])}r&&Os(ey[i],"sham",!0)},Ore=nr("match"),Bre=De.TypeError,Fre=nr("species"),Tre=function(e,t){var n,r=tr(e).constructor;return r===void 0||(n=tr(r)[Fre])==null?t:function(i){if(eE(i))return i;throw Bre(rk(i)+" is not a constructor")}(n)},kre=xe("".charAt),yx=xe("".charCodeAt),_re=xe("".slice),bx=function(e){return function(t,n){var r,i,o=tn(Ao(t)),a=R0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=yx(o,a))<55296||r>56319||a+1===u||(i=yx(o,a+1))<56320||i>57343?e?kre(o,a):r:e?_re(o,a,a+2):i-56320+(r-55296<<10)+65536}},Pre={codeAt:bx(!1),charAt:bx(!0)}.charAt,Dk=function(e,t,n){return t+(n?Pre(e,t).length:1)},Nre=De.Array,Ire=Math.max,$x=function(e,t,n){for(var r=j0(e),i=yf(t,r),o=yf(n===void 0?r:n,r),a=Nre(Ire(o-i,0)),u=0;i<o;i++,u++)bk(a,u,e[i]);return a.length=u,a},Rre=De.TypeError,S4=function(e,t){var n=e.exec;if(Kt(n)){var r=xt(n,e,t);return r!==null&&tr(r),r}if(lo(e)==="RegExp")return xt(bf,e,t);throw Rre("RegExp#exec called on incompatible receiver")},Au=pk.UNSUPPORTED_Y,jre=Math.min,Sk=[].push,Lre=xe(/./.exec),Ou=xe(Sk),Jl=xe("".slice);Ck("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=tn(Ao(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!qn(a=i)||!((u=a[Ore])!==void 0?u:lo(a)=="RegExp"))return xt(t,s,i,l);for(var c,f,d,p=[],v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),m=0,g=new RegExp(i.source,v+"g");(c=xt(bf,g,s))&&!((f=g.lastIndex)>m&&(Ou(p,Jl(s,m,c.index)),c.length>1&&c.index<s.length&&Ek(Sk,p,$x(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&Lre(g,"")||Ou(p,""):Ou(p,Jl(s,m)),p.length>l?$x(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:xt(t,this,i,o)}:t,[function(i,o){var a=Ao(this),u=i==null?void 0:M3(i,e);return u?xt(u,i,a,o):xt(r,tn(a),i,o)},function(i,o){var a=tr(this),u=tn(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=Tre(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Au?"g":"y"),d=new l(Au?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return S4(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Au?0:m;var y,h=S4(d,Au?Jl(u,m):u);if(h===null||(y=jre(Y3(d.lastIndex+(Au?m:0)),u.length))===v)m=Dk(u,m,c);else{if(Ou(g,Jl(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(Ou(g,h[$]),g.length===p)return g;m=v=y}}return Ou(g,Jl(u,v)),g}]},!!Bt(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"}),Au);var x4=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,wx=xe("".replace),pg="["+x4+"]",Mre=RegExp("^"+pg+pg+"*"),zre=RegExp(pg+pg+"*$"),ty=function(e){return function(t){var n=tn(Ao(t));return 1&e&&(n=wx(n,Mre,"")),2&e&&(n=wx(n,zre,"")),n}},Hre={start:ty(1),end:ty(2),trim:ty(3)},Ure=K3.PROPER,Vre=Hre.trim;function xk(e){return e.length?e[0].tagName.toLowerCase():""}Oo({target:"String",proto:!0,forced:function(e){return Bt(function(){return!!x4[e]()||"\u200B\x85\u180E"[e]()!=="\u200B\x85\u180E"||Ure&&x4[e].name!==e})}("trim")},{trim:function(){return Vre(this)}}),Oo({global:!0},{globalThis:De}),Ur&&(O.fn.append=Ur),Hr&&(O.fn.on=Hr),$o&&(O.fn.focus=$o),Mr&&(O.fn.attr=Mr),zr&&(O.fn.val=zr),bo&&(O.fn.html=bo),ps&&(O.fn.dataset=ps),cs&&(O.fn.addClass=cs),fs&&(O.fn.removeClass=fs),vs&&(O.fn.children=vs),mh&&(O.fn.each=mh),gs&&(O.fn.find=gs);var $f=!1,Ak=0,Ok=0,wf=null,Ef=null,Lc=O("body");function Bk(e){$f=!1,Ef=null,wf=null,Lc.off("mousemove",Fk),Lc.off("mouseup",Bk)}Lc.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(),$f=!0;var n=e.clientX;Ak=n;var r=t.getBoundingClientRect().width;Ok=r,Lc.on("mousemove",Fk),Lc.on("mouseup",Bk)}});var Fk=Pa(function(e){if($f&&Ef!=null&&wf!=null){e.preventDefault();var t=e.clientX,n=Ok+(t-Ak);(n=Math.floor(100*n)/100)<30&&(n=30),P.setNodes(Ef,{width:n.toString()},{at:wf})}},100),Wre={type:"table",renderElem:function(e,t,n){var r=function(l,c){if(l.isDisabled())return!1;var f=l.selection;if(f==null||R.isCollapsed(f))return!0;var d=f.anchor,p=f.focus,v=x.findPath(l,c),m=E.start(l,v),g=E.end(l,v),y=$e.compare(d,g)<=0&&$e.compare(d,m)>=0,h=$e.compare(p,g)<=0&&$e.compare(p,m)>=0;return!!(y&&h&&_.equals(d.path.slice(0,3),p.path.slice(0,3)))}(n,e),i=e.width,o=i===void 0?"auto":i,a=x.isNodeSelected(n,e),u=M0(e),s=de("div",{className:"table-container","data-selected":a,on:{mousedown:function(l){if(l.target.tagName==="DIV"&&l.preventDefault(),!n.isDisabled()){var c=x.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)}}}},de("table",{width:o,contentEditable:r},de("colgroup",null,u.map(function(l){var c=l.width;return de("col",{width:c===void 0?"auto":c})})),de("tbody",null,t)));return s}},qre={type:"table-row",renderElem:function(e,t,n){return de("tr",null,t)}},Gre={type:"table-cell",renderElem:function(e,t,n){var r=function(d,p){var v=x.getParentNode(d,p);if(v==null)return!1;var m=x.getParentNode(d,v);return m!=null&&M0(m).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 de("td",{colSpan:a,rowSpan:s},t);var f=de(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Pa(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),m=v.left,g=v.width,y=v.top,h=v.height,$=d.clientX,w=d.clientY;$f||($>m+g-5&&$<m+g&&w>y&&w<y+h?(p.style.cursor="col-resize",Ef=n,wf=x.findPath(n,e)):$f||(p.style.cursor="auto",Ef=null,wf=null))}},100)}},t);return f}},Kre={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},Yre={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},Xre={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+">"}},Jre={selector:"table",preParseHtml:function(e){var t=O(e);if(xk(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]}},Zre=L0.filter;Oo({target:"Array",proto:!0,forced:!tE("filter")},{filter:function(e){return Zre(this,e,arguments.length>1?arguments[1]:void 0)}});var Qre=Math.floor,ny=xe("".charAt),eie=xe("".replace),ry=xe("".slice),tie=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nie=/\$([$&'`]|\d{1,2})/g,rie=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=nie;return i!==void 0&&(i=U3(i),s=tie),eie(o,s,function(l,c){var f;switch(ny(c,0)){case"$":return"$";case"&":return e;case"`":return ry(t,0,n);case"'":return ry(t,a);case"<":f=i[ry(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Qre(d/10);return p===0?l:p<=u?r[p-1]===void 0?ny(c,1):r[p-1]+ny(c,1):l}f=r[d-1]}return f===void 0?"":f})},A4=nr("replace"),iie=Math.max,oie=Math.min,aie=xe([].concat),iy=xe([].push),Ex=xe("".indexOf),Cx=xe("".slice),uie="a".replace(/./,"$0")==="$0",Dx=!!/./[A4]&&/./[A4]("a","$0")==="";Ck("replace",function(e,t,n){var r=Dx?"$":"$0";return[function(i,o){var a=Ao(this),u=i==null?void 0:M3(i,A4);return u?xt(u,i,a,o):xt(t,tn(a),i,o)},function(i,o){var a=tr(this),u=tn(i);if(typeof o=="string"&&Ex(o,r)===-1&&Ex(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Kt(o);l||(o=tn(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=S4(a,u);if(p===null||(iy(d,p),!c))break;tn(p[0])===""&&(a.lastIndex=Dk(u,Y3(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=tn((p=d[y])[0]),$=iie(oie(R0(p.index),u.length),0),w=[],C=1;C<p.length;C++)iy(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=aie([h],w,$,u);D!==void 0&&iy(A,D);var N=tn(Ek(o,void 0,A))}else N=rie(h,u,$,w,D,o);$>=g&&(m+=Cx(u,g,$)+N,g=$+h.length)}return m+Cx(u,g)}]},!!Bt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!uie||Dx);var sie={selector:"td,th",parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(u){return!!X.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:xk(r)==="th",colSpan:i,rowSpan:o,width:a,children:t}}},lie={selector:"tr",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return x.getNodeType(r)==="table-cell"})}}},cie={selector:"table",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 x.getNodeType(o)==="table-row"})}}},fie=function(){function e(){this.title=G("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||!R.isCollapsed(n)||!!x.getSelectedElems(t).some(function(r){var i=x.getNodeType(r);return i==="pre"||i==="table"||!!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 × 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,v=d.y;i[0].innerHTML=p+1+" × "+(v+1),o.children().each(function(m){O(m).children().each(function(g){var y=O(g),h=y.dataset(),$=h.x,w=h.y;$<=p&&w<=v?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,v=d.y;n.insertTable(t,v+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)){var a=x.getSelectedNodeByType(t,"paragraph");a&&q.string(a)===""&&P.removeNodes(t,{mode:"highest"});var u=function(s,l){for(var c=[],f=0;f<s;f++){for(var d=[],p=0;p<l;p++){var v={type:"table-cell",children:[{text:""}]};f===0&&(v.isHeader=!0),d.push(v)}c.push({type:"table-row",children:d})}return{type:"table",width:"auto",children:c}}(i,o);P.insertNodes(t,u,{mode:"highest"})}},e}(),die=function(){function e(){this.title=G("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||x.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||P.removeNodes(t,{mode:"highest"})},e}(),pie=function(){function e(){this.title=G("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||!R.isCollapsed(n)||x.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gr(E.nodes(t,{match:function(p){return x.checkNodeType(p,"table-cell")},universal:!0}),1),i=gr(r[0],2),o=i[0],a=i[1],u=x.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=_.parent(a),d=_.next(f);P.insertNodes(t,l,{at:d})}}},e}(),hie=function(){function e(){this.title=G("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||!R.isCollapsed(n)||x.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gr(E.nodes(t,{match:function(s){return x.checkNodeType(s,"table-row")},universal:!0}),1),i=gr(r[0],2),o=i[0],a=i[1],u=x.getParentNode(t,o);((u==null?void 0:u.children.length)||0)<=1?P.removeNodes(t,{mode:"highest"}):P.removeNodes(t,{at:a})}},e}(),Sx={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},oy=W3("span").classList,xx=oy&&oy.constructor&&oy.constructor.prototype,gie=xx===Object.prototype?void 0:xx,vie=L0.forEach,mie=function(e,t){var n=[][e];return!!n&&Bt(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),ay=mie?[].forEach:function(e){return vie(this,e,arguments.length>1?arguments[1]:void 0)},Tk=function(e){if(e&&e.forEach!==ay)try{Os(e,"forEach",ay)}catch{e.forEach=ay}};for(var uy in Sx)Sx[uy]&&Tk(De[uy]&&De[uy].prototype);Tk(gie);var yie=function(){function e(){this.title=G("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||!R.isCollapsed(n)||x.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gr(E.nodes(t,{match:function(l){return x.checkNodeType(l,"table-cell")},universal:!0}),1),i=gr(r[0],2),o=i[0],a=i[1],u=x.getParentNode(t,o);if(u!=null){var s=x.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){te.isElement(l)&&(l.children||[]).forEach(function(f){var d=x.findPath(t,f);if(d.length===a.length&&ZT(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&$k(s)&&(p.isHeader=!0),P.insertNodes(t,p,{at:d})}})})}}},e}(),bie=function(){function e(){this.title=G("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||!R.isCollapsed(n)||x.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=gr(E.nodes(t,{match:function(c){return x.checkNodeType(c,"table-cell")},universal:!0}),1),i=gr(r[0],2),o=i[0],a=i[1],u=x.getParentNode(t,o),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)P.removeNodes(t,{mode:"highest"});else{var l=x.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){te.isElement(c)&&(c.children||[]).forEach(function(f){var d=x.findPath(t,f);d.length===a.length&&ZT(d.slice(-1),a.slice(-1))&&P.removeNodes(t,{at:d})})})}}},e}(),$ie=function(){function e(){this.title=G("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=x.getSelectedNodeByType(t,"table");return n!=null&&$k(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||x.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,i=x.getSelectedNodeByType(t,"table");i!=null&&M0(i).forEach(function(o){return P.setNodes(t,{isHeader:r},{at:x.findPath(t,o)})})}},e}(),wie=function(){function e(){this.title=G("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=x.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||!R.isCollapsed(n)||x.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};P.setNodes(t,r,{mode:"highest"})}},e}(),Eie={renderElems:[Wre,qre,Gre],elemsToHtml:[Kre,Yre,Xre],preParseHtml:[Jre],parseElemsHtml:[sie,lie,cie],menus:[{key:"insertTable",factory:function(){return new fie}},{key:"deleteTable",factory:function(){return new die}},{key:"insertTableRow",factory:function(){return new pie}},{key:"deleteTableRow",factory:function(){return new hie}},{key:"insertTableCol",factory:function(){return new yie}},{key:"deleteTableCol",factory:function(){return new bie}},{key:"tableHeader",factory:function(){return new $ie}},{key:"tableFullWidth",factory:function(){return new wie}}],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(){x.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
- `)},s.deleteBackward=function(l){if(!lx(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=cx(s,f),p=cx(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(x.getSelectedNodeByType(s,"table")){var c=E.above(e);x.checkNodeType(c[0],"table-cell")&&P.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),P.select(e,f[1]);else{var d=s.children||[],p=d.length;if(x.checkNodeType(d[p-1],"table")){var v=x.genEmptyParagraph();P.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){lx(s)||r(l)},s.normalizeNode=function(l){var c=gr(l,2),f=c[0],d=c[1];if(x.getNodeType(f)!=="table")return i([f,d]);if(x.isLastNode(s,f)){var p=x.genEmptyParagraph();P.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(x.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
- `||/<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=x.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(_.equals(f.path.slice(0,3),d.path.slice(0,3)))if(q.string(c).length!==0){var p=x.findPath(s,c),v={anchor:E.start(s,p),focus:E.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};mn("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"}}),mn("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"}});/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var hg=function(){return hg=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},hg.apply(this,arguments)};function z0(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 H0(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 Cie(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 xa(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 Die(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Cie(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 Ax=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rE(e){var t={exports:{}};return e(t,t.exports),t.exports}var Mi,Zp,hp=function(e){return e&&e.Math==Math&&e},Y=hp(typeof globalThis=="object"&&globalThis)||hp(typeof window=="object"&&window)||hp(typeof self=="object"&&self)||hp(typeof Ax=="object"&&Ax)||function(){return this}()||Function("return this")(),Je=function(e){try{return!!e()}catch{return!0}},Vr=!Je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Zl=Function.prototype.call,Ke=Zl.bind?Zl.bind(Zl):function(){return Zl.apply(Zl,arguments)},Ox={}.propertyIsEnumerable,Bx=Object.getOwnPropertyDescriptor,Sie={f:Bx&&!Ox.call({1:2},1)?function(e){var t=Bx(this,e);return!!t&&t.enumerable}:Ox},U0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},kk=Function.prototype,O4=kk.bind,B4=kk.call,xie=O4&&O4.bind(B4),pe=O4?function(e){return e&&xie(B4,e)}:function(e){return e&&function(){return B4.apply(e,arguments)}},Aie=pe({}.toString),Oie=pe("".slice),jr=function(e){return Oie(Aie(e),8,-1)},sy=Y.Object,Bie=pe("".split),iE=Je(function(){return!sy("z").propertyIsEnumerable(0)})?function(e){return jr(e)=="String"?Bie(e,""):sy(e)}:sy,Fie=Y.TypeError,gd=function(e){if(e==null)throw Fie("Can't call method on "+e);return e},No=function(e){return iE(gd(e))},Ve=function(e){return typeof e=="function"},Ze=function(e){return typeof e=="object"?e!==null:Ve(e)},Tie=function(e){return Ve(e)?e:void 0},Va=function(e,t){return arguments.length<2?Tie(Y[e]):Y[e]&&Y[e][t]},Cf=pe({}.isPrototypeOf),rs=Va("navigator","userAgent")||"",Fx=Y.process,Tx=Y.Deno,kx=Fx&&Fx.versions||Tx&&Tx.version,_x=kx&&kx.v8;_x&&(Zp=(Mi=_x.split("."))[0]>0&&Mi[0]<4?1:+(Mi[0]+Mi[1])),!Zp&&rs&&(!(Mi=rs.match(/Edge\/(\d+)/))||Mi[1]>=74)&&(Mi=rs.match(/Chrome\/(\d+)/))&&(Zp=+Mi[1]);var Df=Zp,F4=!!Object.getOwnPropertySymbols&&!Je(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Df&&Df<41}),oE=F4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",kie=Y.Object,T4=oE?function(e){return typeof e=="symbol"}:function(e){var t=Va("Symbol");return Ve(t)&&Cf(t.prototype,kie(e))},_ie=Y.String,gg=function(e){try{return _ie(e)}catch{return"Object"}},Pie=Y.TypeError,Bo=function(e){if(Ve(e))return e;throw Pie(gg(e)+" is not a function")},Sf=function(e,t){var n=e[t];return n==null?void 0:Bo(n)},Nie=Y.TypeError,Iie=Object.defineProperty,aE=function(e,t){try{Iie(Y,e,{value:t,configurable:!0,writable:!0})}catch{Y[e]=t}return t},fo=Y["__core-js_shared__"]||aE("__core-js_shared__",{}),uE=rE(function(e){(e.exports=function(t,n){return fo[t]||(fo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Rie=Y.Object,V0=function(e){return Rie(gd(e))},jie=pe({}.hasOwnProperty),At=Object.hasOwn||function(e,t){return jie(V0(e),t)},Lie=0,Mie=Math.random(),zie=pe(1 .toString),sE=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zie(++Lie+Mie,36)},Ql=uE("wks"),Aa=Y.Symbol,Px=Aa&&Aa.for,Hie=oE?Aa:Aa&&Aa.withoutSetter||sE,bt=function(e){if(!At(Ql,e)||!F4&&typeof Ql[e]!="string"){var t="Symbol."+e;F4&&At(Aa,e)?Ql[e]=Aa[e]:Ql[e]=oE&&Px?Px(t):Hie(t)}return Ql[e]},Uie=Y.TypeError,Vie=bt("toPrimitive"),Wie=function(e,t){if(!Ze(e)||T4(e))return e;var n,r=Sf(e,Vie);if(r){if(t===void 0&&(t="default"),n=Ke(r,e,t),!Ze(n)||T4(n))return n;throw Uie("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)&&!Ze(u=Ke(a,i))||Ve(a=i.valueOf)&&!Ze(u=Ke(a,i))||o!=="string"&&Ve(a=i.toString)&&!Ze(u=Ke(a,i)))return u;throw Nie("Can't convert object to primitive value")}(e,t)},lE=function(e){var t=Wie(e,"string");return T4(t)?t:t+""},k4=Y.document,qie=Ze(k4)&&Ze(k4.createElement),xf=function(e){return qie?k4.createElement(e):{}},_k=!Vr&&!Je(function(){return Object.defineProperty(xf("div"),"a",{get:function(){return 7}}).a!=7}),Nx=Object.getOwnPropertyDescriptor,cE={f:Vr?Nx:function(e,t){if(e=No(e),t=lE(t),_k)try{return Nx(e,t)}catch{}if(At(e,t))return U0(!Ke(Sie.f,e,t),e[t])}},Gie=Y.String,Kie=Y.TypeError,jt=function(e){if(Ze(e))return e;throw Kie(Gie(e)+" is not an object")},Yie=Y.TypeError,Ix=Object.defineProperty,yi={f:Vr?Ix:function(e,t,n){if(jt(e),t=lE(t),jt(n),_k)try{return Ix(e,t,n)}catch{}if("get"in n||"set"in n)throw Yie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},di=Vr?function(e,t,n){return yi.f(e,t,U0(1,n))}:function(e,t,n){return e[t]=n,e},Xie=pe(Function.toString);Ve(fo.inspectSource)||(fo.inspectSource=function(e){return Xie(e)});var vg,Mc,mg,W0=fo.inspectSource,Rx=Y.WeakMap,Pk=Ve(Rx)&&/native code/.test(W0(Rx)),jx=uE("keys"),fE=function(e){return jx[e]||(jx[e]=sE(e))},q0={},_4=Y.TypeError,Jie=Y.WeakMap;if(Pk||fo.state){var Jo=fo.state||(fo.state=new Jie),Zie=pe(Jo.get),Lx=pe(Jo.has),Qie=pe(Jo.set);vg=function(e,t){if(Lx(Jo,e))throw new _4("Object already initialized");return t.facade=e,Qie(Jo,e,t),t},Mc=function(e){return Zie(Jo,e)||{}},mg=function(e){return Lx(Jo,e)}}else{var Bu=fE("state");q0[Bu]=!0,vg=function(e,t){if(At(e,Bu))throw new _4("Object already initialized");return t.facade=e,di(e,Bu,t),t},Mc=function(e){return At(e,Bu)?e[Bu]:{}},mg=function(e){return At(e,Bu)}}var kn={set:vg,get:Mc,has:mg,enforce:function(e){return mg(e)?Mc(e):vg(e,{})},getterFor:function(e){return function(t){var n;if(!Ze(t)||(n=Mc(t)).type!==e)throw _4("Incompatible receiver, "+e+" required");return n}}},Nk=Function.prototype,eoe=Vr&&Object.getOwnPropertyDescriptor,ly=At(Nk,"name"),Ys={EXISTS:ly,PROPER:ly&&function(){}.name==="something",CONFIGURABLE:ly&&(!Vr||Vr&&eoe(Nk,"name").configurable)},xn=rE(function(e){var t=Ys.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")+"]"),(!At(u,"name")||t&&u.name!==p)&&di(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:di(o,a,u)):f?o[a]=u:aE(a,u)})(Function.prototype,"toString",function(){return Ve(this)&&n(this).source||W0(this)})}),toe=Math.ceil,noe=Math.floor,G0=function(e){var t=+e;return t!=t||t===0?0:(t>0?noe:toe)(t)},roe=Math.max,ioe=Math.min,Af=function(e,t){var n=G0(e);return n<0?roe(n+t,0):ioe(n,t)},ooe=Math.min,Ik=function(e){return e>0?ooe(G0(e),9007199254740991):0},vd=function(e){return Ik(e.length)},Mx=function(e){return function(t,n,r){var i,o=No(t),a=vd(o),u=Af(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}},Rk={includes:Mx(!0),indexOf:Mx(!1)},aoe=Rk.indexOf,zx=pe([].push),jk=function(e,t){var n,r=No(e),i=0,o=[];for(n in r)!At(q0,n)&&At(r,n)&&zx(o,n);for(;t.length>i;)At(r,n=t[i++])&&(~aoe(o,n)||zx(o,n));return o},yg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],uoe=yg.concat("length","prototype"),bg={f:Object.getOwnPropertyNames||function(e){return jk(e,uoe)}},soe={f:Object.getOwnPropertySymbols},loe=pe([].concat),coe=Va("Reflect","ownKeys")||function(e){var t=bg.f(jt(e)),n=soe.f;return n?loe(t,n(e)):t},foe=function(e,t){for(var n=coe(t),r=yi.f,i=cE.f,o=0;o<n.length;o++){var a=n[o];At(e,a)||r(e,a,i(t,a))}},doe=/#|\.prototype\./,md=function(e,t){var n=hoe[poe(e)];return n==voe||n!=goe&&(Ve(t)?Je(t):!!t)},poe=md.normalize=function(e){return String(e).replace(doe,".").toLowerCase()},hoe=md.data={},goe=md.NATIVE="N",voe=md.POLYFILL="P",$g=md,moe=cE.f,hn=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]||aE(u,{}):(Y[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=moe(n,r))&&a.value:n[r],!$g(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;foe(o,i)}(e.sham||i&&i.sham)&&di(o,"sham",!0),xn(n,r,o,e)}},Lk={};Lk[bt("toStringTag")]="z";var ec,dE=String(Lk)==="[object z]",yoe=bt("toStringTag"),boe=Y.Object,$oe=jr(function(){return arguments}())=="Arguments",K0=dE?jr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=boe(e),yoe))=="string"?n:$oe?jr(t):(r=jr(t))=="Object"&&Ve(t.callee)?"Arguments":r},woe=Y.String,Hn=function(e){if(K0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return woe(e)},P4=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Hx=pe("".replace),wg="["+P4+"]",Eoe=RegExp("^"+wg+wg+"*"),Coe=RegExp(wg+wg+"*$"),cy=function(e){return function(t){var n=Hn(gd(t));return 1&e&&(n=Hx(n,Eoe,"")),2&e&&(n=Hx(n,Coe,"")),n}},Doe={start:cy(1),end:cy(2),trim:cy(3)},Soe=Ys.PROPER,xoe=Doe.trim;function Ux(e){return e.length?e[0].tagName.toLowerCase():""}function Mk(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}hn({target:"String",proto:!0,forced:(ec="trim",Je(function(){return!!P4[ec]()||"\u200B\x85\u180E"[ec]()!=="\u200B\x85\u180E"||Soe&&P4[ec].name!==ec}))},{trim:function(){return xoe(this)}}),hn({global:!0},{globalThis:Y}),Ur&&(O.fn.append=Ur),Hr&&(O.fn.on=Hr),$o&&(O.fn.focus=$o),Mr&&(O.fn.attr=Mr),zr&&(O.fn.val=zr),bo&&(O.fn.html=bo),bh&&(O.fn.parent=bh),ds&&(O.fn.hasClass=ds),ys&&(O.fn.empty=ys);var Aoe={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=x.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0){var v=Mk(a,c,d);r=de("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:v})}else{var m=de("video",{poster:s,controls:!0},de("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- \u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891`);c!=="auto"&&(m.data.width=c),d!=="auto"&&(m.data.height=d),r=de("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},m)}return bs("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},gp,Ooe={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>
- `;return i.trim().indexOf("<iframe ")===0?f+=Mk(i,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+i+'" type="video/mp4"/></video>',f+=`
- </div>`}},Boe=Object.keys||function(e){return jk(e,yg)},Foe=Vr?Object.defineProperties:function(e,t){jt(e);for(var n,r=No(t),i=Boe(t),o=i.length,a=0;o>a;)yi.f(e,n=i[a++],r[n]);return e},N4=Va("document","documentElement"),zk=fE("IE_PROTO"),fy=function(){},Hk=function(e){return"<script>"+e+"<\/script>"},Vx=function(e){e.write(Hk("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qp=function(){try{gp=new ActiveXObject("htmlfile")}catch{}var e,t;Qp=typeof document!="undefined"?document.domain&&gp?Vx(gp):((t=xf("iframe")).style.display="none",N4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Hk("document.F=Object")),e.close(),e.F):Vx(gp);for(var n=yg.length;n--;)delete Qp.prototype[yg[n]];return Qp()};q0[zk]=!0;var pE=Object.create||function(e,t){var n;return e!==null?(fy.prototype=jt(e),n=new fy,fy.prototype=null,n[zk]=e):n=Qp(),t===void 0?n:Foe(n,t)},I4=bt("unscopables"),R4=Array.prototype;R4[I4]==null&&yi.f(R4,I4,{configurable:!0,value:pE(null)});var zc=function(e){R4[I4][e]=!0},Toe=Rk.includes;hn({target:"Array",proto:!0},{includes:function(e){return Toe(this,e,arguments.length>1?arguments[1]:void 0)}}),zc("includes");var koe={selector:"iframe,video,p",preParseHtml:function(e){var t=O(e),n=t;if(Ux(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=Ux(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]}},Wx=pe(pe.bind),Of=function(e,t){return Bo(e),t===void 0?e:Wx?Wx(e,t):function(){return e.apply(t,arguments)}},Eg=Array.isArray||function(e){return jr(e)=="Array"},Uk=function(){},_oe=[],Vk=Va("Reflect","construct"),hE=/^\s*(?:class|function)\b/,Poe=pe(hE.exec),Noe=!hE.exec(Uk),tc=function(e){if(!Ve(e))return!1;try{return Vk(Uk,_oe,e),!0}catch{return!1}},gE=!Vk||Je(function(){var e;return tc(tc.call)||!tc(Object)||!tc(function(){e=!0})||e})?function(e){if(!Ve(e))return!1;switch(K0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Noe||!!Poe(hE,W0(e))}:tc,Ioe=bt("species"),qx=Y.Array,Roe=function(e,t){return new(function(n){var r;return Eg(n)&&(r=n.constructor,(gE(r)&&(r===qx||Eg(r.prototype))||Ze(r)&&(r=r[Ioe])===null)&&(r=void 0)),r===void 0?qx:r}(e))(t===0?0:t)},Gx=pe([].push),zi=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,v=V0(s),m=iE(v),g=Of(l,c),y=vd(m),h=0,$=f||Roe,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:Gx(w,d)}else switch(e){case 4:return!1;case 7:Gx(w,d)}return o?-1:r||i?i:w}},vE={forEach:zi(0),map:zi(1),filter:zi(2),some:zi(3),every:zi(4),find:zi(5),findIndex:zi(6),filterReject:zi(7)},joe=vE.find,Kx=!0;"find"in[]&&Array(1).find(function(){Kx=!1}),hn({target:"Array",proto:!0,forced:Kx},{find:function(e){return joe(this,e,arguments.length>1?arguments[1]:void 0)}}),zc("find");var Loe=dE?{}.toString:function(){return"[object "+K0(this)+"]"};function Yx(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:""}]}}dE||xn(Object.prototype,"toString",Loe,{unsafe:!0});var Xx,dy,Moe={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",Yx(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",Yx(i,o=l.attr("poster")||"",a,u)}},Wk=function(){var e=jt(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},mE=Y.RegExp,j4=Je(function(){var e=mE("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),zoe=j4||Je(function(){return!mE("a","y").sticky}),Hoe={BROKEN_CARET:j4||Je(function(){var e=mE("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:zoe,UNSUPPORTED_Y:j4},Uoe=Y.RegExp,Voe=Je(function(){var e=Uoe(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Woe=Y.RegExp,qoe=Je(function(){var e=Woe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Goe=kn.get,Koe=uE("native-string-replace",String.prototype.replace),Cg=RegExp.prototype.exec,L4=Cg,Yoe=pe("".charAt),Xoe=pe("".indexOf),Joe=pe("".replace),py=pe("".slice),hy=(dy=/b*/g,Ke(Cg,Xx=/a/,"a"),Ke(Cg,dy,"a"),Xx.lastIndex!==0||dy.lastIndex!==0),Jx=Hoe.BROKEN_CARET,gy=/()??/.exec("")[1]!==void 0;(hy||gy||Jx||Voe||qoe)&&(L4=function(e){var t,n,r,i,o,a,u,s=this,l=Goe(s),c=Hn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ke(L4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Jx&&s.sticky,v=Ke(Wk,s),m=s.source,g=0,y=c;if(p&&(v=Joe(v,"y",""),Xoe(v,"g")===-1&&(v+="g"),y=py(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Yoe(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),gy&&(n=new RegExp("^"+m+"$(?!\\s)",v)),hy&&(r=s.lastIndex),i=Ke(Cg,p?n:s,y),p?i?(i.input=py(i.input,g),i[0]=py(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:hy&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),gy&&i&&i.length>1&&Ke(Koe,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=pE(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var Dg=L4;hn({target:"RegExp",proto:!0,forced:/./.exec!==Dg},{exec:Dg});var yE=Function.prototype,Zx=yE.apply,Zoe=yE.bind,Qx=yE.call,qk=typeof Reflect=="object"&&Reflect.apply||(Zoe?Qx.bind(Zx):function(){return Qx.apply(Zx,arguments)}),Qoe=bt("species"),vy=RegExp.prototype,eae=pe("".charAt),eA=pe("".charCodeAt),tae=pe("".slice),tA=function(e){return function(t,n){var r,i,o=Hn(gd(t)),a=G0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=eA(o,a))<55296||r>56319||a+1===u||(i=eA(o,a+1))<56320||i>57343?e?eae(o,a):r:e?tae(o,a,a+2):i-56320+(r-55296<<10)+65536}},Gk={codeAt:tA(!1),charAt:tA(!0)},nae=Gk.charAt,rae=function(e,t,n){return t+(n?nae(e,t).length:1)},iae=Math.floor,my=pe("".charAt),oae=pe("".replace),yy=pe("".slice),aae=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,uae=/\$([$&'`]|\d{1,2})/g,sae=function(e,t,n,r,i,o){var a=n+e.length,u=r.length,s=uae;return i!==void 0&&(i=V0(i),s=aae),oae(o,s,function(l,c){var f;switch(my(c,0)){case"$":return"$";case"&":return e;case"`":return yy(t,0,n);case"'":return yy(t,a);case"<":f=i[yy(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=iae(d/10);return p===0?l:p<=u?r[p-1]===void 0?my(c,1):r[p-1]+my(c,1):l}f=r[d-1]}return f===void 0?"":f})},lae=Y.TypeError,cae=function(e,t){var n=e.exec;if(Ve(n)){var r=Ke(n,e,t);return r!==null&&jt(r),r}if(jr(e)==="RegExp")return Ke(Dg,e,t);throw lae("RegExp#exec called on incompatible receiver")},M4=bt("replace"),fae=Math.max,dae=Math.min,pae=pe([].concat),by=pe([].push),nA=pe("".indexOf),rA=pe("".slice),hae="a".replace(/./,"$0")==="$0",iA=!!/./[M4]&&/./[M4]("a","$0")==="";function Kk(e){return e===void 0&&(e="r"),e+"-"+Y9()}(function(e,t,n,r){var i=bt(e),o=!Je(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Je(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Qoe]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=pe(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=pe(l),m=c.exec;return m===Dg||m===vy.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});xn(String.prototype,e,s[0]),xn(vy,i,s[1])}r&&di(vy[i],"sham",!0)})("replace",function(e,t,n){var r=iA?"$":"$0";return[function(i,o){var a=gd(this),u=i==null?void 0:Sf(i,M4);return u?Ke(u,i,a,o):Ke(t,Hn(a),i,o)},function(i,o){var a=jt(this),u=Hn(i);if(typeof o=="string"&&nA(o,r)===-1&&nA(o,"$<")===-1){var s=n(t,a,u,o);if(s.done)return s.value}var l=Ve(o);l||(o=Hn(o));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=cae(a,u);if(p===null||(by(d,p),!c))break;Hn(p[0])===""&&(a.lastIndex=rae(u,Ik(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Hn((p=d[y])[0]),$=fae(dae(G0(p.index),u.length),0),w=[],C=1;C<p.length;C++)by(w,(v=p[C])===void 0?v:String(v));var D=p.groups;if(l){var A=pae([h],w,$,u);D!==void 0&&by(A,D);var N=Hn(qk(o,void 0,A))}else N=sae(h,u,$,w,D,o);$>=g&&(m+=rA(u,g,$)+N,g=$+h.length)}return m+rA(u,g)}]},!!Je(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!hae||iA);var Sg=Y.Promise,xg=function(e,t,n){for(var r in t)xn(e,r,t[r],n);return e},gae=Y.String,vae=Y.TypeError,Bs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return jt(r),function(o){if(typeof o=="object"||Ve(o))return o;throw vae("Can't set "+gae(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),mae=yi.f,oA=bt("toStringTag"),Ag=function(e,t,n){e&&!At(e=n?e:e.prototype,oA)&&mae(e,oA,{configurable:!0,value:t})},aA=bt("species"),yae=Y.TypeError,bE=function(e,t){if(Cf(t,e))return e;throw yae("Incorrect invocation")},Fs={},bae=bt("iterator"),$ae=Array.prototype,wae=bt("iterator"),uA=function(e){if(e!=null)return Sf(e,wae)||Sf(e,"@@iterator")||Fs[K0(e)]},Eae=Y.TypeError,sA=function(e,t,n){var r,i;jt(e);try{if(!(r=Sf(e,"return"))){if(t==="throw")throw n;return n}r=Ke(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return jt(r),n},Cae=Y.TypeError,eh=function(e,t){this.stopped=e,this.result=t},lA=eh.prototype,Og=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),v=!(!n||!n.INTERRUPTED),m=Of(t,f),g=function(h){return r&&sA(r,"normal",h),new eh(!0,h)},y=function(h){return d?(jt(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=e;else{if(!(i=uA(e)))throw Cae(gg(e)+" is not iterable");if((c=i)!==void 0&&(Fs.Array===c||$ae[bae]===c)){for(o=0,a=vd(e);a>o;o++)if((u=y(e[o]))&&Cf(lA,u))return u;return new eh(!1)}r=function(h,$){var w=arguments.length<2?uA(h):$;if(Bo(w))return jt(Ke(w,h));throw Eae(gg(h)+" is not iterable")}(e,i)}for(s=r.next;!(l=Ke(s,r)).done;){try{u=y(l.value)}catch(h){sA(r,"throw",h)}if(typeof u=="object"&&u&&Cf(lA,u))return u}return new eh(!1)},Yk=bt("iterator"),Xk=!1;try{var Dae=0,cA={next:function(){return{done:!!Dae++}},return:function(){Xk=!0}};cA[Yk]=function(){return this},Array.from(cA,function(){throw 2})}catch{}var Bf,Fu,fA,$y,Jk=function(e,t){if(!t&&!Xk)return!1;var n=!1;try{var r={};r[Yk]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Sae=Y.TypeError,xae=bt("species"),Aae=function(e,t){var n,r=jt(e).constructor;return r===void 0||(n=jt(r)[xae])==null?t:function(i){if(gE(i))return i;throw Sae(gg(i)+" is not a constructor")}(n)},Zk=pe([].slice),Qk=/(?:ipad|iphone|ipod).*applewebkit/i.test(rs),po=jr(Y.process)=="process",z4=Y.setImmediate,H4=Y.clearImmediate,Oae=Y.process,wy=Y.Dispatch,Bae=Y.Function,dA=Y.MessageChannel,Fae=Y.String,Ey=0,Hc={};try{Bf=Y.location}catch{}var $E=function(e){if(At(Hc,e)){var t=Hc[e];delete Hc[e],t()}},Cy=function(e){return function(){$E(e)}},pA=function(e){$E(e.data)},hA=function(e){Y.postMessage(Fae(e),Bf.protocol+"//"+Bf.host)};z4&&H4||(z4=function(e){var t=Zk(arguments,1);return Hc[++Ey]=function(){qk(Ve(e)?e:Bae(e),void 0,t)},Fu(Ey),Ey},H4=function(e){delete Hc[e]},po?Fu=function(e){Oae.nextTick(Cy(e))}:wy&&wy.now?Fu=function(e){wy.now(Cy(e))}:dA&&!Qk?($y=(fA=new dA).port2,fA.port1.onmessage=pA,Fu=Of($y.postMessage,$y)):Y.addEventListener&&Ve(Y.postMessage)&&!Y.importScripts&&Bf&&Bf.protocol!=="file:"&&!Je(hA)?(Fu=hA,Y.addEventListener("message",pA,!1)):Fu="onreadystatechange"in xf("script")?function(e){N4.appendChild(xf("script")).onreadystatechange=function(){N4.removeChild(this),$E(e)}}:function(e){setTimeout(Cy(e),0)});var nc,sa,Uc,Uu,Dy,Sy,xy,gA,e_={set:z4,clear:H4},Tae=/ipad|iphone|ipod/i.test(rs)&&Y.Pebble!==void 0,kae=/web0s(?!.*chrome)/i.test(rs),_ae=cE.f,Ay=e_.set,vA=Y.MutationObserver||Y.WebKitMutationObserver,mA=Y.document,yA=Y.process,vp=Y.Promise,bA=_ae(Y,"queueMicrotask"),t_=bA&&bA.value;t_||(nc=function(){var e,t;for(po&&(e=yA.domain)&&e.exit();sa;){t=sa.fn,sa=sa.next;try{t()}catch(n){throw sa?Uu():Uc=void 0,n}}Uc=void 0,e&&e.enter()},Qk||po||kae||!vA||!mA?!Tae&&vp&&vp.resolve?((xy=vp.resolve(void 0)).constructor=vp,gA=Of(xy.then,xy),Uu=function(){gA(nc)}):po?Uu=function(){yA.nextTick(nc)}:(Ay=Of(Ay,Y),Uu=function(){Ay(nc)}):(Dy=!0,Sy=mA.createTextNode(""),new vA(nc).observe(Sy,{characterData:!0}),Uu=function(){Sy.data=Dy=!Dy}));var Oy,$A,n_,wA,r_=t_||function(e){var t={fn:e,next:void 0};Uc&&(Uc.next=t),sa||(sa=t,Uu()),Uc=t},Pae=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=Bo(t),this.reject=Bo(n)},wE={f:function(e){return new Pae(e)}},U4=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Nae=typeof window=="object",i_=e_.set,Iae=bt("species"),Tr="Promise",EA=kn.getterFor(Tr),Rae=kn.set,jae=kn.getterFor(Tr),ra=Sg&&Sg.prototype,Nr=Sg,rc=ra,o_=Y.TypeError,V4=Y.document,EE=Y.process,is=wE.f,Lae=is,Mae=!!(V4&&V4.createEvent&&Y.dispatchEvent),a_=Ve(Y.PromiseRejectionEvent),u_=!1,Vc=$g(Tr,function(){var e=W0(Nr),t=e!==String(Nr);if(!t&&Df===66)return!0;if(Df>=51&&/native code/.test(e))return!1;var n=new Nr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[Iae]=r,!(u_=n.then(function(){})instanceof r)||!t&&Nae&&!a_}),zae=Vc||!Jk(function(e){Nr.all(e).catch(function(){})}),s_=function(e){var t;return!(!Ze(e)||!Ve(t=e.then))&&t},CE=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;r_(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&&Uae(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(o_("Promise-chain cycle")):(u=s_(a))?Ke(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Hae(e)})}},l_=function(e,t,n){var r,i;Mae?((r=V4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Y.dispatchEvent(r)):r={promise:t,reason:n},!a_&&(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)},Hae=function(e){Ke(i_,Y,function(){var t,n=e.facade,r=e.value;if(CA(e)&&(t=U4(function(){po?EE.emit("unhandledRejection",r,n):l_("unhandledrejection",n,r)}),e.rejection=po||CA(e)?2:1,t.error))throw t.value})},CA=function(e){return e.rejection!==1&&!e.parent},Uae=function(e){Ke(i_,Y,function(){var t=e.facade;po?EE.emit("rejectionHandled",t):l_("rejectionhandled",t,e.value)})},Yu=function(e,t,n){return function(r){e(t,r,n)}},os=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,CE(e,!0))},W4=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw o_("Promise can't be resolved itself");var r=s_(t);r?r_(function(){var i={done:!1};try{Ke(r,t,Yu(W4,i,e),Yu(os,i,e))}catch(o){os(i,o,e)}}):(e.value=t,e.state=1,CE(e,!1))}catch(i){os({done:!1},i,e)}}};if(Vc&&(rc=(Nr=function(e){bE(this,rc),Bo(e),Ke(Oy,this);var t=EA(this);try{e(Yu(W4,t),Yu(os,t))}catch(n){os(t,n)}}).prototype,(Oy=function(e){Rae(this,{type:Tr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=xg(rc,{then:function(e,t){var n=jae(this),r=n.reactions,i=is(Aae(this,Nr));return i.ok=!Ve(e)||e,i.fail=Ve(t)&&t,i.domain=po?EE.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&CE(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),$A=function(){var e=new Oy,t=EA(e);this.promise=e,this.resolve=Yu(W4,t),this.reject=Yu(os,t)},wE.f=is=function(e){return e===Nr||e===n_?new $A(e):Lae(e)},Ve(Sg)&&ra!==Object.prototype)){wA=ra.then,u_||(xn(ra,"then",function(e,t){var n=this;return new Nr(function(r,i){Ke(wA,n,r,i)}).then(e,t)},{unsafe:!0}),xn(ra,"catch",rc.catch,{unsafe:!0}));try{delete ra.constructor}catch{}Bs&&Bs(ra,rc)}function Ff(e,t,n){return n===void 0&&(n=""),z0(this,void 0,void 0,function(){var r,i,o,a,u,s,l;return H0(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)]):[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,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){P.insertNodes(e,l)}),i(l),[2]}})})}function By(){return Kk("w-e-insert-video")}hn({global:!0,wrap:!0,forced:Vc},{Promise:Nr}),Ag(Nr,Tr,!1),function(e){var t=Va(e),n=yi.f;Vr&&t&&!t[aA]&&n(t,aA,{configurable:!0,get:function(){return this}})}(Tr),n_=Va(Tr),hn({target:Tr,stat:!0,forced:Vc},{reject:function(e){var t=is(this);return Ke(t.reject,void 0,e),t.promise}}),hn({target:Tr,stat:!0,forced:Vc},{resolve:function(e){return function(t,n){if(jt(t),Ze(n)&&n.constructor===t)return n;var r=wE.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),hn({target:Tr,stat:!0,forced:zae},{all:function(e){var t=this,n=is(t),r=n.resolve,i=n.reject,o=U4(function(){var a=Bo(t.resolve),u=[],s=0,l=1;Og(e,function(c){var f=s++,d=!1;l++,Ke(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=U4(function(){var o=Bo(t.resolve);Og(e,function(a){Ke(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var Vae=function(){function e(){this.title=G("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=By(),this.posterInputId=By(),this.buttonId=By()}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||!R.isCollapsed(n)||!!x.getSelectedElems(t).some(function(r){return x.getNodeType(r)==="pre"||!!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=xa(Sn(G("videoModule.videoSrc"),i,G("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=xa(Sn(G("videoModule.videoPoster"),o,G("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=O(l),v=O(d),m=xa(Ms(a,G("videoModule.ok")),1)[0];if(this.$content==null){var g=O("<div></div>");g.on("click","#"+a,function(h){return z0(n,void 0,void 0,function(){var $,w;return H0(this,function(C){switch(C.label){case 0:return h.preventDefault(),$=g.find("#"+i).val().trim(),w=g.find("#"+o).val().trim(),[4,Ff(t,$,w)];case 1:return C.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(m),p.val(""),v.val(""),setTimeout(function(){p.focus()}),y[0]},e}(),Wae=pe([].join),qae=iE!=Object,Gae=function(e,t){var n=[][e];return!!n&&Je(function(){n.call(null,t||function(){throw 1},1)})}("join",",");hn({target:"Array",proto:!0,forced:qae||!Gae},{join:function(e){return Wae(No(this),e===void 0?",":e)}});var Oa,DA,SA,Kae=!Je(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),xA=fE("IE_PROTO"),q4=Y.Object,Yae=q4.prototype,Bg=Kae?q4.getPrototypeOf:function(e){var t=V0(e);if(At(t,xA))return t[xA];var n=t.constructor;return Ve(n)&&t instanceof n?n.prototype:t instanceof q4?Yae:null},G4=bt("iterator"),c_=!1;[].keys&&("next"in(SA=[].keys())?(DA=Bg(Bg(SA)))!==Object.prototype&&(Oa=DA):c_=!0);var Xae=Oa==null||Je(function(){var e={};return Oa[G4].call(e)!==e});Xae&&(Oa={}),Ve(Oa[G4])||xn(Oa,G4,function(){return this});var DE={IteratorPrototype:Oa,BUGGY_SAFARI_ITERATORS:c_},Jae=DE.IteratorPrototype,Zae=function(){return this},Qae=Ys.PROPER,eue=Ys.CONFIGURABLE,AA=DE.IteratorPrototype,mp=DE.BUGGY_SAFARI_ITERATORS,ic=bt("iterator"),tue=function(){return this},f_=function(e,t,n,r,i,o,a){(function(y,h,$,w){var C=h+" Iterator";y.prototype=pE(Jae,{next:U0(+!w,$)}),Ag(y,C,!1),Fs[C]=Zae})(n,t,r);var u,s,l,c=function(y){if(y===i&&m)return m;if(!mp&&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,v=p[ic]||p["@@iterator"]||i&&p[i],m=!mp&&v||c(i),g=t=="Array"&&p.entries||v;if(g&&(u=Bg(g.call(new e)))!==Object.prototype&&u.next&&(Bg(u)!==AA&&(Bs?Bs(u,AA):Ve(u[ic])||xn(u,ic,tue)),Ag(u,f,!0)),Qae&&i=="values"&&v&&v.name!=="values"&&(eue?di(p,"name","values"):(d=!0,m=function(){return Ke(v,this)})),i)if(s={values:c("values"),keys:o?m:c("keys"),entries:c("entries")},a)for(l in s)(mp||d||!(l in p))&&xn(p,l,s[l]);else hn({target:t,proto:!0,forced:mp||d},s);return p[ic]!==m&&xn(p,ic,m,{name:i}),Fs[t]=m,s},nue=kn.set,rue=kn.getterFor("Array Iterator"),Sc=f_(Array,"Array",function(e,t){nue(this,{type:"Array Iterator",target:No(e),index:0,kind:t})},function(){var e=rue(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");Fs.Arguments=Fs.Array,zc("keys"),zc("values"),zc("entries");var iue=Gk.charAt,oue=kn.set,aue=kn.getterFor("String Iterator");f_(String,"String",function(e){oue(this,{type:"String Iterator",string:Hn(e),index:0})},function(){var e,t=aue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=iue(n,r),t.index+=e.length,{value:e,done:!1})});var d_=function(e,t,n){var r=lE(t);r in e?yi.f(e,r,U0(0,n)):e[r]=n},uue=Y.Array,sue=Math.max,p_=bg.f,h_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lue=function(e){try{return p_(e)}catch{return function(n,r,i){for(var o=vd(n),a=Af(r,o),u=Af(i===void 0?o:i,o),s=uue(sue(u-a,0)),l=0;a<u;a++,l++)d_(s,l,n[a]);return s.length=l,s}(h_)}},cue={f:function(e){return h_&&jr(e)=="Window"?lue(e):p_(No(e))}},OA=Je(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),yp=Object.isExtensible,da=Je(function(){yp(1)})||OA?function(e){return!!Ze(e)&&(!OA||jr(e)!="ArrayBuffer")&&(!yp||yp(e))}:yp,fue=!Je(function(){return Object.isExtensible(Object.preventExtensions({}))}),SE=rE(function(e){var t=yi.f,n=!1,r=sE("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=bg.f,s=pe([].splice),l={};l[r]=1,u(l).length&&(bg.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},hn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:cue.f}))},fastKey:function(u,s){if(!Ze(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!At(u,r)){if(!da(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!At(u,r)){if(!da(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return fue&&n&&da(u)&&!At(u,r)&&o(u),u}};q0[r]=!0}),bp=SE.getWeakData,due=kn.set,pue=kn.getterFor,hue=vE.find,gue=vE.findIndex,vue=pe([].splice),mue=0,$p=function(e){return e.frozen||(e.frozen=new g_)},g_=function(){this.entries=[]},Fy=function(e,t){return hue(e.entries,function(n){return n[0]===t})};g_.prototype={get:function(e){var t=Fy(this,e);if(t)return t[1]},has:function(e){return!!Fy(this,e)},set:function(e,t){var n=Fy(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=gue(this.entries,function(n){return n[0]===e});return~t&&vue(this.entries,t,1),!!~t}};var oc,v_={getConstructor:function(e,t,n,r){var i=e(function(s,l){bE(s,o),due(s,{type:t,id:mue++,frozen:void 0}),l!=null&&Og(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=pue(t),u=function(s,l,c){var f=a(s),d=bp(jt(l),!0);return d===!0?$p(f).set(l,c):d[f.id]=c,s};return xg(o,{delete:function(s){var l=a(this);if(!Ze(s))return!1;var c=bp(s);return c===!0?$p(l).delete(s):c&&At(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ze(s))return!1;var c=bp(s);return c===!0?$p(l).has(s):c&&At(c,l.id)}}),xg(o,n?{get:function(s){var l=a(this);if(Ze(s)){var c=bp(s);return c===!0?$p(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}},wp=kn.enforce,yue=!Y.ActiveXObject&&"ActiveXObject"in Y,m_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bue=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=pe(u[g]);xn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Ze(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Ze(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Ze(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if($g(e,!Ve(a)||!(i||u.forEach&&!Je(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),SE.enable();else if($g(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=Je(function(){f.has(1)}),v=Jk(function(g){new a(g)}),m=!i&&Je(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});v||((s=t(function(g,y){bE(g,u);var h=function($,w,C){var D,A;return Bs&&Ve(D=w.constructor)&&D!==C&&Ze(A=D.prototype)&&A!==C.prototype&&Bs($,A),$}(new a,g,s);return y!=null&&Og(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,hn({global:!0,forced:s!=a},l),Ag(s,e),i||n.setStrong(s,e,r),s}("WeakMap",m_,v_);if(Pk&&yue){oc=v_.getConstructor(m_,"WeakMap",!0),SE.enable();var ac=bue.prototype,BA=pe(ac.delete),Ep=pe(ac.has),FA=pe(ac.get),TA=pe(ac.set);xg(ac,{delete:function(e){if(Ze(e)&&!da(e)){var t=wp(this);return t.frozen||(t.frozen=new oc),BA(this,e)||t.frozen.delete(e)}return BA(this,e)},has:function(e){if(Ze(e)&&!da(e)){var t=wp(this);return t.frozen||(t.frozen=new oc),Ep(this,e)||t.frozen.has(e)}return Ep(this,e)},get:function(e){if(Ze(e)&&!da(e)){var t=wp(this);return t.frozen||(t.frozen=new oc),Ep(this,e)?FA(this,e):t.frozen.get(e)}return FA(this,e)},set:function(e,t){if(Ze(e)&&!da(e)){var n=wp(this);n.frozen||(n.frozen=new oc),Ep(this,e)?TA(this,e,t):n.frozen.set(e,t)}else TA(this,e,t);return this}})}var y_={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},Ty=xf("span").classList,kA=Ty&&Ty.constructor&&Ty.constructor.prototype,$ue=kA===Object.prototype?void 0:kA,ky=bt("iterator"),_A=bt("toStringTag"),_y=Sc.values,b_=function(e,t){if(e){if(e[ky]!==_y)try{di(e,ky,_y)}catch{e[ky]=_y}if(e[_A]||di(e,_A,t),y_[t]){for(var n in Sc)if(e[n]!==Sc[n])try{di(e,n,Sc[n])}catch{e[n]=Sc[n]}}}};for(var Py in y_)b_(Y[Py]&&Y[Py].prototype,Py);b_($ue,"DOMTokenList");var wue=Ys.EXISTS,Eue=yi.f,$_=Function.prototype,Cue=pe($_.toString),w_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Due=pe(w_.exec);Vr&&!wue&&Eue($_,"name",{configurable:!0,get:function(){try{return Due(w_,Cue(this))[1]}catch{return""}}});var Sue=bt("species"),xue=function(e){return Df>=51||!Je(function(){var t=[];return(t.constructor={})[Sue]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("slice"),Aue=bt("species"),Ny=Y.Array,Oue=Math.max;function E_(e){return e.getMenuConfig("uploadVideo")}hn({target:"Array",proto:!0,forced:!xue},{slice:function(e,t){var n,r,i,o=No(this),a=vd(o),u=Af(e,a),s=Af(t===void 0?a:t,a);if(Eg(o)&&(n=o.constructor,(gE(n)&&(n===Ny||Eg(n.prototype))||Ze(n)&&(n=n[Aue])===null)&&(n=void 0),n===Ny||n===void 0))return Zk(o,u,s);for(r=new(n===void 0?Ny:n)(Oue(s-u,0)),i=0;u<s;u++,i++)u in o&&d_(r,i,o[u]);return r.length=i,r}});var PA=new WeakMap;function Bue(e,t){return z0(this,void 0,void 0,function(){var n,r,i,o;return H0(this,function(a){switch(a.label){case 0:return n=function(u){var s=PA.get(u);if(s!=null)return s;var l=E_(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=JB(hg(hg({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)p(g,function(N,M){return Ff(u,N,M)});else{var y=g.errno,h=y===void 0?1:y,$=g.data,w=$===void 0?{}:$;if(h!==0)return console.error("'"+m.name+"' upload failed",g),void d(m,g);var C=w.url,D=C===void 0?"":C,A=w.poster;Ff(u,D,A===void 0?"":A),c(m,g)}},onError:function(m,g,y){var h=m.name;console.error("'"+h+" upload error",g,y),v&&v(m,g,y)}})),PA.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 Fue=function(){function e(){this.title=G("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){return Ff(t,c)});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,v;z0(this,void 0,void 0,function(){var m,g,y,h,$,w;return H0(this,function(C){switch(C.label){case 0:if(d==null)return[2];m=Array.prototype.slice.call(d),g=E_(f).customUpload,C.label=1;case 1:C.trys.push([1,9,10,15]),y=Die(m),C.label=2;case 2:return[4,y.next()];case 3:return(h=C.sent()).done?[3,8]:($=h.value,g?[4,g($,function(D,A){return Ff(f,D,A)})]:[3,5]);case 4:return C.sent(),[3,7];case 5:return[4,Bue(f,$)];case 6:C.sent(),C.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=C.sent(),p={error:w},[3,15];case 10:return C.trys.push([10,,13,14]),h&&!h.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:C.sent(),C.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||!R.isCollapsed(n)||!!x.getSelectedElems(t).some(function(r){return x.getNodeType(r)==="pre"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),Tue=Ys.PROPER,K4=RegExp.prototype,C_=K4.toString,kue=pe(Wk),_ue=Je(function(){return C_.call({source:"a",flags:"b"})!="/a/b"}),Pue=Tue&&C_.name!="toString";function Iy(){return Kk("w-e-insert-video")}(_ue||Pue)&&xn(RegExp.prototype,"toString",function(){var e=jt(this),t=Hn(e.source),n=e.flags;return"/"+t+"/"+Hn(n===void 0&&Cf(K4,e)&&!("flags"in K4)?kue(e):n)},{unsafe:!0});var Nue=function(){function e(){this.title=G("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Iy(),this.heightInputId=Iy(),this.buttonId=Iy()}return e.prototype.getSelectedVideoNode=function(t){return x.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=xa(Sn(G("videoModule.width"),r,"auto"),2),u=a[0],s=a[1],l=O(s),c=xa(Sn(G("videoModule.height"),i,"auto"),2),f=c[0],d=c[1],p=O(d),v=xa(Ms(o,G("videoModule.ok")),1)[0];if(this.$content==null){var m=O("<div></div>");m.on("click","#"+o,function(D){D.preventDefault();var A=m.find("#"+r).val().trim(),N=m.find("#"+i).val().trim(),M=parseInt(A),U=parseInt(N),V=M?M.toString():"auto",J=U?U.toString():"auto";t.restoreSelection(),P.setNodes(t,{width:V,height:J},{match:function(Z){return x.checkNodeType(Z,"video")}}),t.hidePanelOrModal()}),this.$content=m}var g=this.$content;g.empty(),g.append(u),g.append(f),g.append(v);var y=this.getSelectedVideoNode(t);if(y==null)return g[0];var h=y.width,$=h===void 0?"auto":h,w=y.height,C=w===void 0?"auto":w;return l.val($),p.val(C),setTimeout(function(){l.focus()}),g[0]},e}(),Iue={renderElems:[Aoe],elemsToHtml:[Ooe],preParseHtml:[koe],parseElemsHtml:[Moe],menus:[{key:"insertVideo",factory:function(){return new Vae},config:{onInsertedVideo:function(e){},checkVideo:function(e){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Fue},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new Nue}}],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=xa(i,2),a=o[0],u=o[1];return x.getNodeType(a)==="video"&&x.isLastNode(r,a)&&P.insertNodes(r,x.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};mn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),mn("zh-CN",{uploadImgModule:{uploadImage:"\u4E0A\u4F20\u56FE\u7247",uploadError:"{{fileName}} \u4E0A\u4F20\u51FA\u9519"}});var NA=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function xE(e){var t={exports:{}};return e(t,t.exports),t.exports}var Hi,th,Cp=function(e){return e&&e.Math==Math&&e},K=Cp(typeof globalThis=="object"&&globalThis)||Cp(typeof window=="object"&&window)||Cp(typeof self=="object"&&self)||Cp(typeof NA=="object"&&NA)||function(){return this}()||Function("return this")(),Qe=function(e){try{return!!e()}catch{return!0}},Wr=!Qe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),uc=Function.prototype.call,Le=uc.bind?uc.bind(uc):function(){return uc.apply(uc,arguments)},IA={}.propertyIsEnumerable,RA=Object.getOwnPropertyDescriptor,Rue={f:RA&&!IA.call({1:2},1)?function(e){var t=RA(this,e);return!!t&&t.enumerable}:IA},Y0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},D_=Function.prototype,Y4=D_.bind,X4=D_.call,jue=Y4&&Y4.bind(X4),Ce=Y4?function(e){return e&&jue(X4,e)}:function(e){return e&&function(){return X4.apply(e,arguments)}},Lue=Ce({}.toString),Mue=Ce("".slice),pr=function(e){return Mue(Lue(e),8,-1)},Ry=K.Object,zue=Ce("".split),AE=Qe(function(){return!Ry("z").propertyIsEnumerable(0)})?function(e){return pr(e)=="String"?zue(e,""):Ry(e)}:Ry,Hue=K.TypeError,Tf=function(e){if(e==null)throw Hue("Can't call method on "+e);return e},Io=function(e){return AE(Tf(e))},We=function(e){return typeof e=="function"},Xe=function(e){return typeof e=="object"?e!==null:We(e)},Uue=function(e){return We(e)?e:void 0},Wa=function(e,t){return arguments.length<2?Uue(K[e]):K[e]&&K[e][t]},kf=Ce({}.isPrototypeOf),as=Wa("navigator","userAgent")||"",jA=K.process,LA=K.Deno,MA=jA&&jA.versions||LA&&LA.version,zA=MA&&MA.v8;zA&&(th=(Hi=zA.split("."))[0]>0&&Hi[0]<4?1:+(Hi[0]+Hi[1])),!th&&as&&(!(Hi=as.match(/Edge\/(\d+)/))||Hi[1]>=74)&&(Hi=as.match(/Chrome\/(\d+)/))&&(th=+Hi[1]);var _f=th,J4=!!Object.getOwnPropertySymbols&&!Qe(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_f&&_f<41}),OE=J4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vue=K.Object,Z4=OE?function(e){return typeof e=="symbol"}:function(e){var t=Wa("Symbol");return We(t)&&kf(t.prototype,Vue(e))},Wue=K.String,Fg=function(e){try{return Wue(e)}catch{return"Object"}},que=K.TypeError,Fo=function(e){if(We(e))return e;throw que(Fg(e)+" is not a function")},Pf=function(e,t){var n=e[t];return n==null?void 0:Fo(n)},Gue=K.TypeError,Kue=Object.defineProperty,BE=function(e,t){try{Kue(K,e,{value:t,configurable:!0,writable:!0})}catch{K[e]=t}return t},ho=K["__core-js_shared__"]||BE("__core-js_shared__",{}),FE=xE(function(e){(e.exports=function(t,n){return ho[t]||(ho[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),Yue=K.Object,TE=function(e){return Yue(Tf(e))},Xue=Ce({}.hasOwnProperty),Ot=Object.hasOwn||function(e,t){return Xue(TE(e),t)},Jue=0,Zue=Math.random(),Que=Ce(1 .toString),kE=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Que(++Jue+Zue,36)},sc=FE("wks"),Ba=K.Symbol,HA=Ba&&Ba.for,ese=OE?Ba:Ba&&Ba.withoutSetter||kE,$t=function(e){if(!Ot(sc,e)||!J4&&typeof sc[e]!="string"){var t="Symbol."+e;J4&&Ot(Ba,e)?sc[e]=Ba[e]:sc[e]=OE&&HA?HA(t):ese(t)}return sc[e]},tse=K.TypeError,nse=$t("toPrimitive"),rse=function(e,t){if(!Xe(e)||Z4(e))return e;var n,r=Pf(e,nse);if(r){if(t===void 0&&(t="default"),n=Le(r,e,t),!Xe(n)||Z4(n))return n;throw tse("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&We(a=i.toString)&&!Xe(u=Le(a,i))||We(a=i.valueOf)&&!Xe(u=Le(a,i))||o!=="string"&&We(a=i.toString)&&!Xe(u=Le(a,i)))return u;throw Gue("Can't convert object to primitive value")}(e,t)},_E=function(e){var t=rse(e,"string");return Z4(t)?t:t+""},Q4=K.document,ise=Xe(Q4)&&Xe(Q4.createElement),Nf=function(e){return ise?Q4.createElement(e):{}},S_=!Wr&&!Qe(function(){return Object.defineProperty(Nf("div"),"a",{get:function(){return 7}}).a!=7}),UA=Object.getOwnPropertyDescriptor,PE={f:Wr?UA:function(e,t){if(e=Io(e),t=_E(t),S_)try{return UA(e,t)}catch{}if(Ot(e,t))return Y0(!Le(Rue.f,e,t),e[t])}},ose=K.String,ase=K.TypeError,Lt=function(e){if(Xe(e))return e;throw ase(ose(e)+" is not an object")},use=K.TypeError,VA=Object.defineProperty,bi={f:Wr?VA:function(e,t,n){if(Lt(e),t=_E(t),Lt(n),S_)try{return VA(e,t,n)}catch{}if("get"in n||"set"in n)throw use("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Lr=Wr?function(e,t,n){return bi.f(e,t,Y0(1,n))}:function(e,t,n){return e[t]=n,e},sse=Ce(Function.toString);We(ho.inspectSource)||(ho.inspectSource=function(e){return sse(e)});var Tg,Wc,kg,X0=ho.inspectSource,WA=K.WeakMap,x_=We(WA)&&/native code/.test(X0(WA)),qA=FE("keys"),NE=function(e){return qA[e]||(qA[e]=kE(e))},J0={},e$=K.TypeError,lse=K.WeakMap;if(x_||ho.state){var Zo=ho.state||(ho.state=new lse),cse=Ce(Zo.get),GA=Ce(Zo.has),fse=Ce(Zo.set);Tg=function(e,t){if(GA(Zo,e))throw new e$("Object already initialized");return t.facade=e,fse(Zo,e,t),t},Wc=function(e){return cse(Zo,e)||{}},kg=function(e){return GA(Zo,e)}}else{var Tu=NE("state");J0[Tu]=!0,Tg=function(e,t){if(Ot(e,Tu))throw new e$("Object already initialized");return t.facade=e,Lr(e,Tu,t),t},Wc=function(e){return Ot(e,Tu)?e[Tu]:{}},kg=function(e){return Ot(e,Tu)}}var _n={set:Tg,get:Wc,has:kg,enforce:function(e){return kg(e)?Wc(e):Tg(e,{})},getterFor:function(e){return function(t){var n;if(!Xe(t)||(n=Wc(t)).type!==e)throw e$("Incompatible receiver, "+e+" required");return n}}},A_=Function.prototype,dse=Wr&&Object.getOwnPropertyDescriptor,jy=Ot(A_,"name"),yd={EXISTS:jy,PROPER:jy&&function(){}.name==="something",CONFIGURABLE:jy&&(!Wr||Wr&&dse(A_,"name").configurable)},An=xE(function(e){var t=yd.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;We(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ot(u,"name")||t&&u.name!==p)&&Lr(u,"name",p),(l=r(u)).source||(l.source=i.join(typeof p=="string"?p:""))),o!==K?(c?!d&&o[a]&&(f=!0):delete o[a],f?o[a]=u:Lr(o,a,u)):f?o[a]=u:BE(a,u)})(Function.prototype,"toString",function(){return We(this)&&n(this).source||X0(this)})}),pse=Math.ceil,hse=Math.floor,IE=function(e){var t=+e;return t!=t||t===0?0:(t>0?hse:pse)(t)},gse=Math.max,vse=Math.min,If=function(e,t){var n=IE(e);return n<0?gse(n+t,0):vse(n,t)},mse=Math.min,O_=function(e){return e>0?mse(IE(e),9007199254740991):0},bd=function(e){return O_(e.length)},KA=function(e){return function(t,n,r){var i,o=Io(t),a=bd(o),u=If(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}},yse={includes:KA(!0),indexOf:KA(!1)}.indexOf,YA=Ce([].push),B_=function(e,t){var n,r=Io(e),i=0,o=[];for(n in r)!Ot(J0,n)&&Ot(r,n)&&YA(o,n);for(;t.length>i;)Ot(r,n=t[i++])&&(~yse(o,n)||YA(o,n));return o},_g=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bse=_g.concat("length","prototype"),Pg={f:Object.getOwnPropertyNames||function(e){return B_(e,bse)}},$se={f:Object.getOwnPropertySymbols},wse=Ce([].concat),Ese=Wa("Reflect","ownKeys")||function(e){var t=Pg.f(Lt(e)),n=$se.f;return n?wse(t,n(e)):t},Cse=function(e,t){for(var n=Ese(t),r=bi.f,i=PE.f,o=0;o<n.length;o++){var a=n[o];Ot(e,a)||r(e,a,i(t,a))}},Dse=/#|\.prototype\./,$d=function(e,t){var n=xse[Sse(e)];return n==Ose||n!=Ase&&(We(t)?Qe(t):!!t)},Sse=$d.normalize=function(e){return String(e).replace(Dse,".").toLowerCase()},xse=$d.data={},Ase=$d.NATIVE="N",Ose=$d.POLYFILL="P",Ng=$d,Bse=PE.f,Ir=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,l=e.stat;if(n=s?K:l?K[u]||BE(u,{}):(K[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Bse(n,r))&&a.value:n[r],!Ng(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Cse(o,i)}(e.sham||i&&i.sham)&&Lr(o,"sham",!0),An(n,r,o,e)}},Ig=Array.isArray||function(e){return pr(e)=="Array"},F_={};F_[$t("toStringTag")]="z";var XA,RE=String(F_)==="[object z]",Fse=$t("toStringTag"),Tse=K.Object,kse=pr(function(){return arguments}())=="Arguments",Z0=RE?pr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=Tse(e),Fse))=="string"?n:kse?pr(t):(r=pr(t))=="Object"&&We(t.callee)?"Arguments":r},T_=function(){},_se=[],k_=Wa("Reflect","construct"),jE=/^\s*(?:class|function)\b/,Pse=Ce(jE.exec),Nse=!jE.exec(T_),lc=function(e){if(!We(e))return!1;try{return k_(T_,_se,e),!0}catch{return!1}},LE=!k_||Qe(function(){var e;return lc(lc.call)||!lc(Object)||!lc(function(){e=!0})||e})?function(e){if(!We(e))return!1;switch(Z0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Nse||!!Pse(jE,X0(e))}:lc,__=function(e,t,n){var r=_E(t);r in e?bi.f(e,r,Y0(0,n)):e[r]=n},Ise=$t("species"),P_=Ce([].slice),Rse=(XA="slice",_f>=51||!Qe(function(){var e=[];return(e.constructor={})[Ise]=function(){return{foo:1}},e[XA](Boolean).foo!==1})),jse=$t("species"),Ly=K.Array,Lse=Math.max;Ir({target:"Array",proto:!0,forced:!Rse},{slice:function(e,t){var n,r,i,o=Io(this),a=bd(o),u=If(e,a),s=If(t===void 0?a:t,a);if(Ig(o)&&(n=o.constructor,(LE(n)&&(n===Ly||Ig(n.prototype))||Xe(n)&&(n=n[jse])===null)&&(n=void 0),n===Ly||n===void 0))return P_(o,u,s);for(r=new(n===void 0?Ly:n)(Lse(s-u,0)),i=0;u<s;u++,i++)u in o&&__(r,i,o[u]);return r.length=i,r}});var Mse=RE?{}.toString:function(){return"[object "+Z0(this)+"]"};RE||An(Object.prototype,"toString",Mse,{unsafe:!0});var Dp,zse=K.String,go=function(e){if(Z0(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return zse(e)},N_=function(){var e=Lt(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},ME=K.RegExp,t$=Qe(function(){var e=ME("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Hse=t$||Qe(function(){return!ME("a","y").sticky}),I_={BROKEN_CARET:t$||Qe(function(){var e=ME("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Hse,UNSUPPORTED_Y:t$},Use=Object.keys||function(e){return B_(e,_g)},Vse=Wr?Object.defineProperties:function(e,t){Lt(e);for(var n,r=Io(t),i=Use(t),o=i.length,a=0;o>a;)bi.f(e,n=i[a++],r[n]);return e},n$=Wa("document","documentElement"),R_=NE("IE_PROTO"),My=function(){},j_=function(e){return"<script>"+e+"<\/script>"},JA=function(e){e.write(j_("")),e.close();var t=e.parentWindow.Object;return e=null,t},nh=function(){try{Dp=new ActiveXObject("htmlfile")}catch{}var e,t;nh=typeof document!="undefined"?document.domain&&Dp?JA(Dp):((t=Nf("iframe")).style.display="none",n$.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(j_("document.F=Object")),e.close(),e.F):JA(Dp);for(var n=_g.length;n--;)delete nh.prototype[_g[n]];return nh()};J0[R_]=!0;var ZA,zy,zE=Object.create||function(e,t){var n;return e!==null?(My.prototype=Lt(e),n=new My,My.prototype=null,n[R_]=e):n=nh(),t===void 0?n:Vse(n,t)},Wse=K.RegExp,qse=Qe(function(){var e=Wse(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Gse=K.RegExp,Kse=Qe(function(){var e=Gse("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Yse=_n.get,Xse=FE("native-string-replace",String.prototype.replace),Rg=RegExp.prototype.exec,r$=Rg,Jse=Ce("".charAt),Zse=Ce("".indexOf),Qse=Ce("".replace),Hy=Ce("".slice),Uy=(zy=/b*/g,Le(Rg,ZA=/a/,"a"),Le(Rg,zy,"a"),ZA.lastIndex!==0||zy.lastIndex!==0),QA=I_.BROKEN_CARET,Vy=/()??/.exec("")[1]!==void 0;(Uy||Vy||QA||qse||Kse)&&(r$=function(e){var t,n,r,i,o,a,u,s=this,l=Yse(s),c=go(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Le(r$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=QA&&s.sticky,v=Le(N_,s),m=s.source,g=0,y=c;if(p&&(v=Qse(v,"y",""),Zse(v,"g")===-1&&(v+="g"),y=Hy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Jse(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Vy&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Uy&&(r=s.lastIndex),i=Le(Rg,p?n:s,y),p?i?(i.input=Hy(i.input,g),i[0]=Hy(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Uy&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Vy&&i&&i.length>1&&Le(Xse,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=zE(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var Rf=r$;Ir({target:"RegExp",proto:!0,forced:/./.exec!==Rf},{exec:Rf});var HE=Function.prototype,e7=HE.apply,ele=HE.bind,t7=HE.call,L_=typeof Reflect=="object"&&Reflect.apply||(ele?t7.bind(e7):function(){return t7.apply(e7,arguments)}),tle=$t("species"),Wy=RegExp.prototype,nle=$t("match"),rle=K.TypeError,ile=$t("species"),M_=function(e,t){var n,r=Lt(e).constructor;return r===void 0||(n=Lt(r)[ile])==null?t:function(i){if(LE(i))return i;throw rle(Fg(i)+" is not a constructor")}(n)},ole=Ce("".charAt),n7=Ce("".charCodeAt),ale=Ce("".slice),r7=function(e){return function(t,n){var r,i,o=go(Tf(t)),a=IE(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=n7(o,a))<55296||r>56319||a+1===u||(i=n7(o,a+1))<56320||i>57343?e?ole(o,a):r:e?ale(o,a,a+2):i-56320+(r-55296<<10)+65536}},z_={codeAt:r7(!1),charAt:r7(!0)},ule=z_.charAt,sle=function(e,t,n){return t+(n?ule(e,t).length:1)},lle=K.Array,cle=Math.max,i$=function(e,t,n){for(var r=bd(e),i=If(t,r),o=If(n===void 0?r:n,r),a=lle(cle(o-i,0)),u=0;i<o;i++,u++)__(a,u,e[i]);return a.length=u,a},fle=K.TypeError,i7=function(e,t){var n=e.exec;if(We(n)){var r=Le(n,e,t);return r!==null&&Lt(r),r}if(pr(e)==="RegExp")return Le(Rf,e,t);throw fle("RegExp#exec called on incompatible receiver")},ku=I_.UNSUPPORTED_Y,dle=Math.min,H_=[].push,ple=Ce(/./.exec),_u=Ce(H_),cc=Ce("".slice);(function(e,t,n,r){var i=$t(e),o=!Qe(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Qe(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[tle]=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 v=Ce(l),m=c.exec;return m===Rf||m===Wy.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});An(String.prototype,e,s[0]),An(Wy,i,s[1])}r&&Lr(Wy[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=go(Tf(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!Xe(a=i)||!((u=a[nle])!==void 0?u:pr(a)=="RegExp"))return Le(t,s,i,l);for(var c,f,d,p=[],v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),m=0,g=new RegExp(i.source,v+"g");(c=Le(Rf,g,s))&&!((f=g.lastIndex)>m&&(_u(p,cc(s,m,c.index)),c.length>1&&c.index<s.length&&L_(H_,p,i$(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&ple(g,"")||_u(p,""):_u(p,cc(s,m)),p.length>l?i$(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Le(t,this,i,o)}:t,[function(i,o){var a=Tf(this),u=i==null?void 0:Pf(i,e);return u?Le(u,i,a,o):Le(r,go(a),i,o)},function(i,o){var a=Lt(this),u=go(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=M_(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 i7(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=ku?0:m;var y,h=i7(d,ku?cc(u,m):u);if(h===null||(y=dle(O_(d.lastIndex+(ku?m:0)),u.length))===v)m=sle(u,m,c);else{if(_u(g,cc(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(_u(g,h[$]),g.length===p)return g;m=v=y}}return _u(g,cc(u,v)),g}]},!!Qe(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);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var jg=function(){return jg=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},jg.apply(this,arguments)};function UE(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 VE(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 hle(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 gle(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=hle(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 o$=$t("unscopables"),a$=Array.prototype;a$[o$]==null&&bi.f(a$,o$,{configurable:!0,value:zE(null)});var Fa,o7,a7,qy=function(e){a$[o$][e]=!0},Ts={},vle=!Qe(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),u7=NE("IE_PROTO"),u$=K.Object,mle=u$.prototype,Lg=vle?u$.getPrototypeOf:function(e){var t=TE(e);if(Ot(t,u7))return t[u7];var n=t.constructor;return We(n)&&t instanceof n?n.prototype:t instanceof u$?mle:null},s$=$t("iterator"),U_=!1;[].keys&&("next"in(a7=[].keys())?(o7=Lg(Lg(a7)))!==Object.prototype&&(Fa=o7):U_=!0);var yle=Fa==null||Qe(function(){var e={};return Fa[s$].call(e)!==e});yle&&(Fa={}),We(Fa[s$])||An(Fa,s$,function(){return this});var WE={IteratorPrototype:Fa,BUGGY_SAFARI_ITERATORS:U_},ble=bi.f,s7=$t("toStringTag"),Mg=function(e,t,n){e&&!Ot(e=n?e:e.prototype,s7)&&ble(e,s7,{configurable:!0,value:t})},$le=WE.IteratorPrototype,wle=function(){return this},Ele=K.String,Cle=K.TypeError,ks=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ce(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,i){return Lt(r),function(o){if(typeof o=="object"||We(o))return o;throw Cle("Can't set "+Ele(o)+" as a prototype")}(i),t?e(r,i):r.__proto__=i,r}}():void 0),Dle=yd.PROPER,Sle=yd.CONFIGURABLE,l7=WE.IteratorPrototype,Sp=WE.BUGGY_SAFARI_ITERATORS,fc=$t("iterator"),xle=function(){return this},V_=function(e,t,n,r,i,o,a){(function(y,h,$,w){var C=h+" Iterator";y.prototype=zE($le,{next:Y0(+!w,$)}),Mg(y,C,!1),Ts[C]=wle})(n,t,r);var u,s,l,c=function(y){if(y===i&&m)return m;if(!Sp&&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,v=p[fc]||p["@@iterator"]||i&&p[i],m=!Sp&&v||c(i),g=t=="Array"&&p.entries||v;if(g&&(u=Lg(g.call(new e)))!==Object.prototype&&u.next&&(Lg(u)!==l7&&(ks?ks(u,l7):We(u[fc])||An(u,fc,xle)),Mg(u,f,!0)),Dle&&i=="values"&&v&&v.name!=="values"&&(Sle?Lr(p,"name","values"):(d=!0,m=function(){return Le(v,this)})),i)if(s={values:c("values"),keys:o?m:c("keys"),entries:c("entries")},a)for(l in s)(Sp||d||!(l in p))&&An(p,l,s[l]);else Ir({target:t,proto:!0,forced:Sp||d},s);return p[fc]!==m&&An(p,fc,m,{name:i}),Ts[t]=m,s},Ale=_n.set,Ole=_n.getterFor("Array Iterator"),xc=V_(Array,"Array",function(e,t){Ale(this,{type:"Array Iterator",target:Io(e),index:0,kind:t})},function(){var e=Ole(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");Ts.Arguments=Ts.Array,qy("keys"),qy("values"),qy("entries");var Ble=z_.charAt,Fle=_n.set,Tle=_n.getterFor("String Iterator");V_(String,"String",function(e){Fle(this,{type:"String Iterator",string:go(e),index:0})},function(){var e,t=Tle(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ble(n,r),t.index+=e.length,{value:e,done:!1})});var zg=function(e,t,n){for(var r in t)An(e,r,t[r],n);return e},c7=Pg.f,f7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kle={f:function(e){return f7&&pr(e)=="Window"?function(t){try{return c7(t)}catch{return i$(f7)}}(e):c7(Io(e))}},d7=Qe(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),xp=Object.isExtensible,pa=Qe(function(){xp(1)})||d7?function(e){return!!Xe(e)&&(!d7||pr(e)!="ArrayBuffer")&&(!xp||xp(e))}:xp,_le=!Qe(function(){return Object.isExtensible(Object.preventExtensions({}))}),qE=xE(function(e){var t=bi.f,n=!1,r=kE("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=Pg.f,s=Ce([].splice),l={};l[r]=1,u(l).length&&(Pg.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},Ir({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:kle.f}))},fastKey:function(u,s){if(!Xe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ot(u,r)){if(!pa(u))return"F";if(!s)return"E";o(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ot(u,r)){if(!pa(u))return!0;if(!s)return!1;o(u)}return u[r].weakData},onFreeze:function(u){return _le&&n&&pa(u)&&!Ot(u,r)&&o(u),u}};J0[r]=!0}),p7=Ce(Ce.bind),jf=function(e,t){return Fo(e),t===void 0?e:p7?p7(e,t):function(){return e.apply(t,arguments)}},Ple=$t("iterator"),Nle=Array.prototype,Ile=$t("iterator"),h7=function(e){if(e!=null)return Pf(e,Ile)||Pf(e,"@@iterator")||Ts[Z0(e)]},Rle=K.TypeError,g7=function(e,t,n){var r,i;Lt(e);try{if(!(r=Pf(e,"return"))){if(t==="throw")throw n;return n}r=Le(r,e)}catch(o){i=!0,r=o}if(t==="throw")throw n;if(i)throw r;return Lt(r),n},jle=K.TypeError,rh=function(e,t){this.stopped=e,this.result=t},v7=rh.prototype,Hg=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),v=!(!n||!n.INTERRUPTED),m=jf(t,f),g=function(h){return r&&g7(r,"normal",h),new rh(!0,h)},y=function(h){return d?(Lt(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=e;else{if(!(i=h7(e)))throw jle(Fg(e)+" is not iterable");if((c=i)!==void 0&&(Ts.Array===c||Nle[Ple]===c)){for(o=0,a=bd(e);a>o;o++)if((u=y(e[o]))&&kf(v7,u))return u;return new rh(!1)}r=function(h,$){var w=arguments.length<2?h7(h):$;if(Fo(w))return Lt(Le(w,h));throw Rle(Fg(h)+" is not iterable")}(e,i)}for(s=r.next;!(l=Le(s,r)).done;){try{u=y(l.value)}catch(h){g7(r,"throw",h)}if(typeof u=="object"&&u&&kf(v7,u))return u}return new rh(!1)},Lle=K.TypeError,GE=function(e,t){if(kf(t,e))return e;throw Lle("Incorrect invocation")},W_=$t("iterator"),q_=!1;try{var Mle=0,m7={next:function(){return{done:!!Mle++}},return:function(){q_=!0}};m7[W_]=function(){return this},Array.from(m7,function(){throw 2})}catch{}var G_=function(e,t){if(!t&&!q_)return!1;var n=!1;try{var r={};r[W_]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},zle=$t("species"),y7=K.Array,Hle=function(e,t){return new(function(n){var r;return Ig(n)&&(r=n.constructor,(LE(r)&&(r===y7||Ig(r.prototype))||Xe(r)&&(r=r[zle])===null)&&(r=void 0)),r===void 0?y7:r}(e))(t===0?0:t)},b7=Ce([].push),Ui=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,v=TE(s),m=AE(v),g=jf(l,c),y=bd(m),h=0,$=f||Hle,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:b7(w,d)}else switch(e){case 4:return!1;case 7:b7(w,d)}return o?-1:r||i?i:w}},KE={forEach:Ui(0),map:Ui(1),filter:Ui(2),some:Ui(3),every:Ui(4),find:Ui(5),findIndex:Ui(6),filterReject:Ui(7)},Ap=qE.getWeakData,Ule=_n.set,Vle=_n.getterFor,Wle=KE.find,qle=KE.findIndex,Gle=Ce([].splice),Kle=0,Op=function(e){return e.frozen||(e.frozen=new K_)},K_=function(){this.entries=[]},Gy=function(e,t){return Wle(e.entries,function(n){return n[0]===t})};K_.prototype={get:function(e){var t=Gy(this,e);if(t)return t[1]},has:function(e){return!!Gy(this,e)},set:function(e,t){var n=Gy(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=qle(this.entries,function(n){return n[0]===e});return~t&&Gle(this.entries,t,1),!!~t}};var dc,Y_={getConstructor:function(e,t,n,r){var i=e(function(s,l){GE(s,o),Ule(s,{type:t,id:Kle++,frozen:void 0}),l!=null&&Hg(l,s[r],{that:s,AS_ENTRIES:n})}),o=i.prototype,a=Vle(t),u=function(s,l,c){var f=a(s),d=Ap(Lt(l),!0);return d===!0?Op(f).set(l,c):d[f.id]=c,s};return zg(o,{delete:function(s){var l=a(this);if(!Xe(s))return!1;var c=Ap(s);return c===!0?Op(l).delete(s):c&&Ot(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Xe(s))return!1;var c=Ap(s);return c===!0?Op(l).has(s):c&&Ot(c,l.id)}}),zg(o,n?{get:function(s){var l=a(this);if(Xe(s)){var c=Ap(s);return c===!0?Op(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}},Bp=_n.enforce,Yle=!K.ActiveXObject&&"ActiveXObject"in K,X_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Xle=function(e,t,n){var r=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=r?"set":"add",a=K[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ce(u[g]);An(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(i&&!Xe(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return i&&!Xe(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(i&&!Xe(h))&&y(this,h===0?0:h)}:function(h,$){return y(this,h===0?0:h,$),this})};if(Ng(e,!We(a)||!(i||u.forEach&&!Qe(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,o),qE.enable();else if(Ng(e,!0)){var f=new s,d=f[o](i?{}:-0,1)!=f,p=Qe(function(){f.has(1)}),v=G_(function(g){new a(g)}),m=!i&&Qe(function(){for(var g=new a,y=5;y--;)g[o](y,y);return!g.has(-0)});v||((s=t(function(g,y){GE(g,u);var h=function($,w,C){var D,A;return ks&&We(D=w.constructor)&&D!==C&&Xe(A=D.prototype)&&A!==C.prototype&&ks($,A),$}(new a,g,s);return y!=null&&Hg(y,h[o],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(o),i&&u.clear&&delete u.clear}return l[e]=s,Ir({global:!0,forced:s!=a},l),Mg(s,e),i||n.setStrong(s,e,r),s}("WeakMap",X_,Y_);if(x_&&Yle){dc=Y_.getConstructor(X_,"WeakMap",!0),qE.enable();var pc=Xle.prototype,$7=Ce(pc.delete),Fp=Ce(pc.has),w7=Ce(pc.get),E7=Ce(pc.set);zg(pc,{delete:function(e){if(Xe(e)&&!pa(e)){var t=Bp(this);return t.frozen||(t.frozen=new dc),$7(this,e)||t.frozen.delete(e)}return $7(this,e)},has:function(e){if(Xe(e)&&!pa(e)){var t=Bp(this);return t.frozen||(t.frozen=new dc),Fp(this,e)||t.frozen.has(e)}return Fp(this,e)},get:function(e){if(Xe(e)&&!pa(e)){var t=Bp(this);return t.frozen||(t.frozen=new dc),Fp(this,e)?w7(this,e):t.frozen.get(e)}return w7(this,e)},set:function(e,t){if(Xe(e)&&!pa(e)){var n=Bp(this);n.frozen||(n.frozen=new dc),Fp(this,e)?E7(this,e,t):n.frozen.set(e,t)}else E7(this,e,t);return this}})}var Ug={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},Ky=Nf("span").classList,C7=Ky&&Ky.constructor&&Ky.constructor.prototype,J_=C7===Object.prototype?void 0:C7,Yy=$t("iterator"),D7=$t("toStringTag"),Xy=xc.values,Z_=function(e,t){if(e){if(e[Yy]!==Xy)try{Lr(e,Yy,Xy)}catch{e[Yy]=Xy}if(e[D7]||Lr(e,D7,t),Ug[t]){for(var n in xc)if(e[n]!==xc[n])try{Lr(e,n,xc[n])}catch{e[n]=xc[n]}}}};for(var Jy in Ug)Z_(K[Jy]&&K[Jy].prototype,Jy);Z_(J_,"DOMTokenList");var Jle=yd.EXISTS,Zle=bi.f,Q_=Function.prototype,Qle=Ce(Q_.toString),eP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ece=Ce(eP.exec);Wr&&!Jle&&Zle(Q_,"name",{configurable:!0,get:function(){try{return ece(eP,Qle(this))[1]}catch{return""}}});var tP=function(e,t){var n=[][e];return!!n&&Qe(function(){n.call(null,t||function(){throw 1},1)})},tce=KE.forEach,Zy=tP("forEach")?[].forEach:function(e){return tce(this,e,arguments.length>1?arguments[1]:void 0)},nP=function(e){if(e&&e.forEach!==Zy)try{Lr(e,"forEach",Zy)}catch{e.forEach=Zy}};for(var Qy in Ug)Ug[Qy]&&nP(K[Qy]&&K[Qy].prototype);nP(J_);var Lf,Pu,S7,e2,Vg=K.Promise,x7=$t("species"),rP=/(?:ipad|iphone|ipod).*applewebkit/i.test(as),vo=pr(K.process)=="process",l$=K.setImmediate,c$=K.clearImmediate,nce=K.process,t2=K.Dispatch,rce=K.Function,A7=K.MessageChannel,ice=K.String,n2=0,qc={};try{Lf=K.location}catch{}var YE=function(e){if(Ot(qc,e)){var t=qc[e];delete qc[e],t()}},r2=function(e){return function(){YE(e)}},O7=function(e){YE(e.data)},B7=function(e){K.postMessage(ice(e),Lf.protocol+"//"+Lf.host)};l$&&c$||(l$=function(e){var t=P_(arguments,1);return qc[++n2]=function(){L_(We(e)?e:rce(e),void 0,t)},Pu(n2),n2},c$=function(e){delete qc[e]},vo?Pu=function(e){nce.nextTick(r2(e))}:t2&&t2.now?Pu=function(e){t2.now(r2(e))}:A7&&!rP?(e2=(S7=new A7).port2,S7.port1.onmessage=O7,Pu=jf(e2.postMessage,e2)):K.addEventListener&&We(K.postMessage)&&!K.importScripts&&Lf&&Lf.protocol!=="file:"&&!Qe(B7)?(Pu=B7,K.addEventListener("message",O7,!1)):Pu="onreadystatechange"in Nf("script")?function(e){n$.appendChild(Nf("script")).onreadystatechange=function(){n$.removeChild(this),YE(e)}}:function(e){setTimeout(r2(e),0)});var hc,la,Gc,Vu,i2,o2,a2,F7,iP={set:l$,clear:c$},oce=/ipad|iphone|ipod/i.test(as)&&K.Pebble!==void 0,ace=/web0s(?!.*chrome)/i.test(as),uce=PE.f,u2=iP.set,T7=K.MutationObserver||K.WebKitMutationObserver,k7=K.document,_7=K.process,Tp=K.Promise,P7=uce(K,"queueMicrotask"),oP=P7&&P7.value;oP||(hc=function(){var e,t;for(vo&&(e=_7.domain)&&e.exit();la;){t=la.fn,la=la.next;try{t()}catch(n){throw la?Vu():Gc=void 0,n}}Gc=void 0,e&&e.enter()},rP||vo||ace||!T7||!k7?!oce&&Tp&&Tp.resolve?((a2=Tp.resolve(void 0)).constructor=Tp,F7=jf(a2.then,a2),Vu=function(){F7(hc)}):vo?Vu=function(){_7.nextTick(hc)}:(u2=jf(u2,K),Vu=function(){u2(hc)}):(i2=!0,o2=k7.createTextNode(""),new T7(hc).observe(o2,{characterData:!0}),Vu=function(){o2.data=i2=!i2}));var s2,N7,aP,I7,uP=oP||function(e){var t={fn:e,next:void 0};Gc&&(Gc.next=t),la||(la=t,Vu()),Gc=t},sce=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=Fo(t),this.reject=Fo(n)},XE={f:function(e){return new sce(e)}},f$=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},lce=typeof window=="object",sP=iP.set,cce=$t("species"),kr="Promise",R7=_n.getterFor(kr),fce=_n.set,dce=_n.getterFor(kr),ia=Vg&&Vg.prototype,Rr=Vg,gc=ia,lP=K.TypeError,d$=K.document,JE=K.process,us=XE.f,pce=us,hce=!!(d$&&d$.createEvent&&K.dispatchEvent),cP=We(K.PromiseRejectionEvent),fP=!1,Kc=Ng(kr,function(){var e=X0(Rr),t=e!==String(Rr);if(!t&&_f===66)return!0;if(_f>=51&&/native code/.test(e))return!1;var n=new Rr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[cce]=r,!(fP=n.then(function(){})instanceof r)||!t&&lce&&!cP}),gce=Kc||!G_(function(e){Rr.all(e).catch(function(){})}),dP=function(e){var t;return!(!Xe(e)||!We(t=e.then))&&t},ZE=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;uP(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&&mce(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(lP("Promise-chain cycle")):(u=dP(a))?Le(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&vce(e)})}},pP=function(e,t,n){var r,i;hce?((r=d$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),K.dispatchEvent(r)):r={promise:t,reason:n},!cP&&(i=K["on"+e])?i(r):e==="unhandledrejection"&&function(o,a){var u=K.console;u&&u.error&&(arguments.length==1?u.error(o):u.error(o,a))}("Unhandled promise rejection",n)},vce=function(e){Le(sP,K,function(){var t,n=e.facade,r=e.value;if(j7(e)&&(t=f$(function(){vo?JE.emit("unhandledRejection",r,n):pP("unhandledrejection",n,r)}),e.rejection=vo||j7(e)?2:1,t.error))throw t.value})},j7=function(e){return e.rejection!==1&&!e.parent},mce=function(e){Le(sP,K,function(){var t=e.facade;vo?JE.emit("rejectionHandled",t):pP("rejectionhandled",t,e.value)})},Xu=function(e,t,n){return function(r){e(t,r,n)}},ss=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ZE(e,!0))},p$=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw lP("Promise can't be resolved itself");var r=dP(t);r?uP(function(){var i={done:!1};try{Le(r,t,Xu(p$,i,e),Xu(ss,i,e))}catch(o){ss(i,o,e)}}):(e.value=t,e.state=1,ZE(e,!1))}catch(i){ss({done:!1},i,e)}}};if(Kc&&(gc=(Rr=function(e){GE(this,gc),Fo(e),Le(s2,this);var t=R7(this);try{e(Xu(p$,t),Xu(ss,t))}catch(n){ss(t,n)}}).prototype,(s2=function(e){fce(this,{type:kr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zg(gc,{then:function(e,t){var n=dce(this),r=n.reactions,i=us(M_(this,Rr));return i.ok=!We(e)||e,i.fail=We(t)&&t,i.domain=vo?JE.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&ZE(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),N7=function(){var e=new s2,t=R7(e);this.promise=e,this.resolve=Xu(p$,t),this.reject=Xu(ss,t)},XE.f=us=function(e){return e===Rr||e===aP?new N7(e):pce(e)},We(Vg)&&ia!==Object.prototype)){I7=ia.then,fP||(An(ia,"then",function(e,t){var n=this;return new Rr(function(r,i){Le(I7,n,r,i)}).then(e,t)},{unsafe:!0}),An(ia,"catch",gc.catch,{unsafe:!0}));try{delete ia.constructor}catch{}ks&&ks(ia,gc)}Ir({global:!0,wrap:!0,forced:Kc},{Promise:Rr}),Mg(Rr,kr,!1),function(e){var t=Wa(e),n=bi.f;Wr&&t&&!t[x7]&&n(t,x7,{configurable:!0,get:function(){return this}})}(kr),aP=Wa(kr),Ir({target:kr,stat:!0,forced:Kc},{reject:function(e){var t=us(this);return Le(t.reject,void 0,e),t.promise}}),Ir({target:kr,stat:!0,forced:Kc},{resolve:function(e){return function(t,n){if(Lt(t),Xe(n)&&n.constructor===t)return n;var r=XE.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Ir({target:kr,stat:!0,forced:gce},{all:function(e){var t=this,n=us(t),r=n.resolve,i=n.reject,o=f$(function(){var a=Fo(t.resolve),u=[],s=0,l=1;Hg(e,function(c){var f=s++,d=!1;l++,Le(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=us(t),r=n.reject,i=f$(function(){var o=Fo(t.resolve);Hg(e,function(a){Le(o,t,a).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var yce=yd.PROPER,h$=RegExp.prototype,hP=h$.toString,bce=Ce(N_),$ce=Qe(function(){return hP.call({source:"a",flags:"b"})!="/a/b"}),wce=yce&&hP.name!="toString";($ce||wce)&&An(RegExp.prototype,"toString",function(){var e=Lt(this),t=go(e.source),n=e.flags;return"/"+t+"/"+go(n===void 0&&kf(h$,e)&&!("flags"in h$)?bce(e):n)},{unsafe:!0});var L7=new WeakMap;function gP(e){return e.getMenuConfig("uploadImage")}function Ece(e,t){return UE(this,void 0,void 0,function(){return VE(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;ba(e,a,t.name,u),r("ok")}}})]})})}function Cce(e,t){return UE(this,void 0,void 0,function(){var n,r,i,o;return VE(this,function(a){switch(a.label){case 0:return n=function(u){var s=L7.get(u);if(s!=null)return s;var l=gP(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=JB(jg(jg({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)p(g,function(U,V,J){return ba(u,U,V,J)});else{var y=g.errno,h=y===void 0?1:y,$=g.data,w=$===void 0?{}:$;if(h!==0)return console.error("'"+m.name+"' upload failed",g),void d(m,g);if(Array.isArray(w))w.forEach(function(U){var V=U.url,J=V===void 0?"":V,Z=U.alt,se=Z===void 0?"":Z,ee=U.href;ba(u,J,se,ee===void 0?"":ee)});else{var C=w.url,D=C===void 0?"":C,A=w.alt,N=A===void 0?"":A,M=w.href;ba(u,D,N,M===void 0?"":M)}c(m,g)}},onError:function(m,g,y){var h=m.name;console.error("'"+h+" upload error",g,y),v&&v(m,g,y)}})),L7.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 vP(e,t){var n,r;return UE(this,void 0,void 0,function(){var i,o,a,u,s,l,c,f,d;return VE(this,function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),o=gP(e),a=o.customUpload,u=o.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=gle(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,Ece(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,m,g){return ba(e,v,m,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Cce(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 Dce=Ce([].join),Sce=AE!=Object,xce=tP("join",",");Ir({target:"Array",proto:!0,forced:Sce||!xce},{join:function(e){return Dce(Io(this),e===void 0?",":e)}});Ur&&(O.fn.append=Ur),Hr&&(O.fn.on=Hr),ms&&(O.fn.remove=ms),zr&&(O.fn.val=zr),d6&&(O.fn.click=d6),hs&&(O.fn.hide=hs);var Ace=function(){function e(){this.title=G("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 O0(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 ba(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;vP(t,c)})}},e}(),Oce={menus:[{key:"uploadImage",factory:function(){return new Ace},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(O0(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"})?vP(e,i):t(r)}},n}};mn("en",{highLightModule:{selectLang:"Language"}}),mn("zh-CN",{highLightModule:{selectLang:"\u9009\u62E9\u8BED\u8A00"}});var Wg=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function QE(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vi,ih,kp=function(e){return e&&e.Math==Math&&e},Se=kp(typeof globalThis=="object"&&globalThis)||kp(typeof window=="object"&&window)||kp(typeof self=="object"&&self)||kp(typeof Wg=="object"&&Wg)||function(){return this}()||Function("return this")(),Bce=Object.defineProperty,e5=function(e,t){try{Bce(Se,e,{value:t,configurable:!0,writable:!0})}catch{Se[e]=t}return t},mo=Se["__core-js_shared__"]||e5("__core-js_shared__",{}),t5=QE(function(e){(e.exports=function(t,n){return mo[t]||(mo[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),mP=Function.prototype,g$=mP.bind,v$=mP.call,Fce=g$&&g$.bind(v$),Me=g$?function(e){return e&&Fce(v$,e)}:function(e){return e&&function(){return v$.apply(e,arguments)}},Tce=Se.TypeError,_s=function(e){if(e==null)throw Tce("Can't call method on "+e);return e},kce=Se.Object,n5=function(e){return kce(_s(e))},_ce=Me({}.hasOwnProperty),Jn=Object.hasOwn||function(e,t){return _ce(n5(e),t)},Pce=0,Nce=Math.random(),Ice=Me(1 .toString),yP=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ice(++Pce+Nce,36)},nn=function(e){return typeof e=="function"},Rce=function(e){return nn(e)?e:void 0},wd=function(e,t){return arguments.length<2?Rce(Se[e]):Se[e]&&Se[e][t]},l2=wd("navigator","userAgent")||"",M7=Se.process,z7=Se.Deno,H7=M7&&M7.versions||z7&&z7.version,U7=H7&&H7.v8;U7&&(ih=(Vi=U7.split("."))[0]>0&&Vi[0]<4?1:+(Vi[0]+Vi[1])),!ih&&l2&&(!(Vi=l2.match(/Edge\/(\d+)/))||Vi[1]>=74)&&(Vi=l2.match(/Chrome\/(\d+)/))&&(ih=+Vi[1]);var V7=ih,Rt=function(e){try{return!!e()}catch{return!0}},m$=!!Object.getOwnPropertySymbols&&!Rt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V7&&V7<41}),r5=m$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",vc=t5("wks"),Ta=Se.Symbol,W7=Ta&&Ta.for,jce=r5?Ta:Ta&&Ta.withoutSetter||yP,Ro=function(e){if(!Jn(vc,e)||!m$&&typeof vc[e]!="string"){var t="Symbol."+e;m$&&Jn(Ta,e)?vc[e]=Ta[e]:vc[e]=r5&&W7?W7(t):jce(t)}return vc[e]},bP={};bP[Ro("toStringTag")]="z";var i5=String(bP)==="[object z]",qr=!Rt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ur=function(e){return typeof e=="object"?e!==null:nn(e)},y$=Se.document,Lce=ur(y$)&&ur(y$.createElement),o5=function(e){return Lce?y$.createElement(e):{}},$P=!qr&&!Rt(function(){return Object.defineProperty(o5("div"),"a",{get:function(){return 7}}).a!=7}),Mce=Se.String,zce=Se.TypeError,vr=function(e){if(ur(e))return e;throw zce(Mce(e)+" is not an object")},mc=Function.prototype.call,_t=mc.bind?mc.bind(mc):function(){return mc.apply(mc,arguments)},wP=Me({}.isPrototypeOf),Hce=Se.Object,b$=r5?function(e){return typeof e=="symbol"}:function(e){var t=wd("Symbol");return nn(t)&&wP(t.prototype,Hce(e))},Uce=Se.String,EP=function(e){try{return Uce(e)}catch{return"Object"}},Vce=Se.TypeError,CP=function(e){if(nn(e))return e;throw Vce(EP(e)+" is not a function")},DP=function(e,t){var n=e[t];return n==null?void 0:CP(n)},Wce=Se.TypeError,qce=Se.TypeError,Gce=Ro("toPrimitive"),Kce=function(e,t){if(!ur(e)||b$(e))return e;var n,r=DP(e,Gce);if(r){if(t===void 0&&(t="default"),n=_t(r,e,t),!ur(n)||b$(n))return n;throw qce("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,o){var a,u;if(o==="string"&&nn(a=i.toString)&&!ur(u=_t(a,i))||nn(a=i.valueOf)&&!ur(u=_t(a,i))||o!=="string"&&nn(a=i.toString)&&!ur(u=_t(a,i)))return u;throw Wce("Can't convert object to primitive value")}(e,t)},a5=function(e){var t=Kce(e,"string");return b$(t)?t:t+""},Yce=Se.TypeError,q7=Object.defineProperty,Q0={f:qr?q7:function(e,t,n){if(vr(e),t=a5(t),vr(n),$P)try{return q7(e,t,n)}catch{}if("get"in n||"set"in n)throw Yce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},u5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ps=qr?function(e,t,n){return Q0.f(e,t,u5(1,n))}:function(e,t,n){return e[t]=n,e},Xce=Me(Function.toString);nn(mo.inspectSource)||(mo.inspectSource=function(e){return Xce(e)});var qg,Yc,Gg,s5=mo.inspectSource,G7=Se.WeakMap,Jce=nn(G7)&&/native code/.test(s5(G7)),K7=t5("keys"),SP=function(e){return K7[e]||(K7[e]=yP(e))},l5={},$$=Se.TypeError,Zce=Se.WeakMap;if(Jce||mo.state){var Qo=mo.state||(mo.state=new Zce),Qce=Me(Qo.get),Y7=Me(Qo.has),efe=Me(Qo.set);qg=function(e,t){if(Y7(Qo,e))throw new $$("Object already initialized");return t.facade=e,efe(Qo,e,t),t},Yc=function(e){return Qce(Qo,e)||{}},Gg=function(e){return Y7(Qo,e)}}else{var Nu=SP("state");l5[Nu]=!0,qg=function(e,t){if(Jn(e,Nu))throw new $$("Object already initialized");return t.facade=e,Ps(e,Nu,t),t},Yc=function(e){return Jn(e,Nu)?e[Nu]:{}},Gg=function(e){return Jn(e,Nu)}}var w$={set:qg,get:Yc,has:Gg,enforce:function(e){return Gg(e)?Yc(e):qg(e,{})},getterFor:function(e){return function(t){var n;if(!ur(t)||(n=Yc(t)).type!==e)throw $$("Incompatible receiver, "+e+" required");return n}}},xP=Function.prototype,tfe=qr&&Object.getOwnPropertyDescriptor,c2=Jn(xP,"name"),AP={EXISTS:c2,PROPER:c2&&function(){}.name==="something",CONFIGURABLE:c2&&(!qr||qr&&tfe(xP,"name").configurable)},Mf=QE(function(e){var t=AP.CONFIGURABLE,n=w$.get,r=w$.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;nn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Jn(u,"name")||t&&u.name!==p)&&Ps(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:Ps(o,a,u)):f?o[a]=u:e5(a,u)})(Function.prototype,"toString",function(){return nn(this)&&n(this).source||s5(this)})}),nfe=Me({}.toString),rfe=Me("".slice),yo=function(e){return rfe(nfe(e),8,-1)},ife=Ro("toStringTag"),ofe=Se.Object,afe=yo(function(){return arguments}())=="Arguments",c5=i5?yo:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(i,o){try{return i[o]}catch{}}(t=ofe(e),ife))=="string"?n:afe?yo(t):(r=yo(t))=="Object"&&nn(t.callee)?"Arguments":r},ufe=i5?{}.toString:function(){return"[object "+c5(this)+"]"};i5||Mf(Object.prototype,"toString",ufe,{unsafe:!0});var sfe,X7,J7={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},f2=o5("span").classList,Z7=f2&&f2.constructor&&f2.constructor.prototype,lfe=Z7===Object.prototype?void 0:Z7,Q7=Me(Me.bind),d2=Se.Object,cfe=Me("".split),f5=Rt(function(){return!d2("z").propertyIsEnumerable(0)})?function(e){return yo(e)=="String"?cfe(e,""):d2(e)}:d2,ffe=Math.ceil,dfe=Math.floor,d5=function(e){var t=+e;return t!=t||t===0?0:(t>0?dfe:ffe)(t)},pfe=Math.min,OP=function(e){return e>0?pfe(d5(e),9007199254740991):0},p5=function(e){return OP(e.length)},e9=Array.isArray||function(e){return yo(e)=="Array"},BP=function(){},hfe=[],FP=wd("Reflect","construct"),h5=/^\s*(?:class|function)\b/,gfe=Me(h5.exec),vfe=!h5.exec(BP),yc=function(e){if(!nn(e))return!1;try{return FP(BP,hfe,e),!0}catch{return!1}},TP=!FP||Rt(function(){var e;return yc(yc.call)||!yc(Object)||!yc(function(){e=!0})||e})?function(e){if(!nn(e))return!1;switch(c5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vfe||!!gfe(h5,s5(e))}:yc,mfe=Ro("species"),t9=Se.Array,yfe=function(e,t){return new(function(n){var r;return e9(n)&&(r=n.constructor,(TP(r)&&(r===t9||e9(r.prototype))||ur(r)&&(r=r[mfe])===null)&&(r=void 0)),r===void 0?t9:r}(e))(t===0?0:t)},n9=Me([].push),Wi=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,v=n5(s),m=f5(v),g=function(C,D){return CP(C),D===void 0?C:Q7?Q7(C,D):function(){return C.apply(D,arguments)}}(l,c),y=p5(m),h=0,$=f||yfe,w=t?$(s,y):n||a?$(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),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:n9(w,d)}else switch(e){case 4:return!1;case 7:n9(w,d)}return o?-1:r||i?i:w}},bfe={forEach:Wi(0),map:Wi(1),filter:Wi(2),some:Wi(3),every:Wi(4),find:Wi(5),findIndex:Wi(6),filterReject:Wi(7)}.forEach,p2=!!(X7=[].forEach)&&Rt(function(){X7.call(null,sfe||function(){throw 1},1)})?[].forEach:function(e){return bfe(this,e,arguments.length>1?arguments[1]:void 0)},kP=function(e){if(e&&e.forEach!==p2)try{Ps(e,"forEach",p2)}catch{e.forEach=p2}};for(var h2 in J7)J7[h2]&&kP(Se[h2]&&Se[h2].prototype);kP(lfe);var r9={}.propertyIsEnumerable,i9=Object.getOwnPropertyDescriptor,_P={f:i9&&!r9.call({1:2},1)?function(e){var t=i9(this,e);return!!t&&t.enumerable}:r9},ev=function(e){return f5(_s(e))},o9=Object.getOwnPropertyDescriptor,PP={f:qr?o9:function(e,t){if(e=ev(e),t=a5(t),$P)try{return o9(e,t)}catch{}if(Jn(e,t))return u5(!_t(_P.f,e,t),e[t])}},$fe=Math.max,wfe=Math.min,E$=function(e,t){var n=d5(e);return n<0?$fe(n+t,0):wfe(n,t)},a9=function(e){return function(t,n,r){var i,o=ev(t),a=p5(o),u=E$(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}},Efe={includes:a9(!0),indexOf:a9(!1)}.indexOf,u9=Me([].push),NP=function(e,t){var n,r=ev(e),i=0,o=[];for(n in r)!Jn(l5,n)&&Jn(r,n)&&u9(o,n);for(;t.length>i;)Jn(r,n=t[i++])&&(~Efe(o,n)||u9(o,n));return o},Kg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cfe=Kg.concat("length","prototype"),Dfe={f:Object.getOwnPropertyNames||function(e){return NP(e,Cfe)}},IP={f:Object.getOwnPropertySymbols},Sfe=Me([].concat),xfe=wd("Reflect","ownKeys")||function(e){var t=Dfe.f(vr(e)),n=IP.f;return n?Sfe(t,n(e)):t},Afe=function(e,t){for(var n=xfe(t),r=Q0.f,i=PP.f,o=0;o<n.length;o++){var a=n[o];Jn(e,a)||r(e,a,i(t,a))}},Ofe=/#|\.prototype\./,Ed=function(e,t){var n=Ffe[Bfe(e)];return n==kfe||n!=Tfe&&(nn(t)?Rt(t):!!t)},Bfe=Ed.normalize=function(e){return String(e).replace(Ofe,".").toLowerCase()},Ffe=Ed.data={},Tfe=Ed.NATIVE="N",kfe=Ed.POLYFILL="P",_fe=Ed,Pfe=PP.f,tv=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]||e5(u,{}):(Se[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Pfe(n,r))&&a.value:n[r],!_fe(s?r:u+(l?".":"#")+r,e.forced)&&i!==void 0){if(typeof o==typeof i)continue;Afe(o,i)}(e.sham||i&&i.sham)&&Ps(o,"sham",!0),Mf(n,r,o,e)}},oh=Object.keys||function(e){return NP(e,Kg)},Iu=Object.assign,s9=Object.defineProperty,Nfe=Me([].concat),l9=!Iu||Rt(function(){if(qr&&Iu({b:1},Iu(s9({},"a",{enumerable:!0,get:function(){s9(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}),Iu({},e)[n]!=7||oh(Iu({},t)).join("")!=r})?function(e,t){for(var n=n5(e),r=arguments.length,i=1,o=IP.f,a=_P.f;r>i;)for(var u,s=f5(arguments[i++]),l=o?Nfe(oh(s),o(s)):oh(s),c=l.length,f=0;c>f;)u=l[f++],qr&&!_t(a,s,u)||(n[u]=s[u]);return n}:Iu;tv({target:"Object",stat:!0,forced:Object.assign!==l9},{assign:l9});var c9=QE(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,"&").replace(/</g,"<").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 C in $={},h[w]=$,y)y.hasOwnProperty(C)&&($[C]=g(y[C],h));return $;case"Array":return w=a.util.objId(y),h[w]?h[w]:($=[],h[w]=$,y.forEach(function(D,A){$[A]=g(D,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],C={};for(var D in w)if(w.hasOwnProperty(D)){if(D==y)for(var A in h)h.hasOwnProperty(A)&&(C[A]=h[A]);h.hasOwnProperty(D)||(C[D]=w[D])}var N=$[g];return $[g]=C,a.languages.DFS(a.languages,function(M,U){U===N&&M!=g&&(this[M]=C)}),C},DFS:function g(y,h,$,w){w=w||{};var C=a.util.objId;for(var D in y)if(y.hasOwnProperty(D)){h.call(y,D,y[D],$||D);var A=y[D],N=a.util.type(A);N!=="Object"||w[C(A)]?N!=="Array"||w[C(A)]||(w[C(A)]=!0,g(A,h,D,w)):(w[C(A)]=!0,g(A,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,C=0;w=$.elements[C++];)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 C=g.parentElement;C&&C.nodeName.toLowerCase()==="pre"&&(C.className=C.className.replace(r,"").replace(/\s+/g," ")+" language-"+$);var D={element:g,language:$,grammar:w,code:g.textContent};function A(M){D.highlightedCode=M,a.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,a.hooks.run("after-highlight",D),a.hooks.run("complete",D),h&&h.call(D.element)}if(a.hooks.run("before-sanity-check",D),(C=D.element.parentElement)&&C.nodeName.toLowerCase()==="pre"&&!C.hasAttribute("tabindex")&&C.setAttribute("tabindex","0"),!D.code)return a.hooks.run("complete",D),void(h&&h.call(D.element));if(a.hooks.run("before-highlight",D),D.grammar)if(y&&n.Worker){var N=new Worker(a.filename);N.onmessage=function(M){A(M.data)},N.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else A(a.highlight(D.code,D.grammar,D.language));else A(a.util.encode(D.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(C){for(var D=[],A=C.head.next;A!==C.tail;)D.push(A.value),A=A.next;return D}(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 C=w[1].length;w.index+=C,w[0]=w[0].slice(C)}return w}function l(g,y,h,$,w,C){for(var D in h)if(h.hasOwnProperty(D)&&h[D]){var A=h[D];A=Array.isArray(A)?A:[A];for(var N=0;N<A.length;++N){if(C&&C.cause==D+","+N)return;var M=A[N],U=M.inside,V=!!M.lookbehind,J=!!M.greedy,Z=M.alias;if(J&&!M.pattern.global){var se=M.pattern.toString().match(/[imsuy]*$/)[0];M.pattern=RegExp(M.pattern.source,se+"g")}for(var ee=M.pattern||M,ae=$.next,fe=w;ae!==y.tail&&!(C&&fe>=C.reach);fe+=ae.value.length,ae=ae.next){var _e=ae.value;if(y.length>g.length)return;if(!(_e instanceof u)){var ve,ie=1;if(J){if(!(ve=s(ee,fe,g,V)))break;var Ie=ve.index,T=ve.index+ve[0].length,F=fe;for(F+=ae.value.length;Ie>=F;)F+=(ae=ae.next).value.length;if(fe=F-=ae.value.length,ae.value instanceof u)continue;for(var k=ae;k!==y.tail&&(F<T||typeof k.value=="string");k=k.next)ie++,F+=k.value.length;ie--,_e=g.slice(fe,F),ve.index-=fe}else if(!(ve=s(ee,0,_e,V)))continue;Ie=ve.index;var I=ve[0],H=_e.slice(0,Ie),j=_e.slice(Ie+I.length),Q=fe+_e.length;C&&Q>C.reach&&(C.reach=Q);var ce=ae.prev;if(H&&(ce=f(y,ce,H),fe+=H.length),d(y,ce,ie),ae=f(y,ce,new u(D,U?a.tokenize(I,U):I,Z,I)),j&&f(y,ae,j),ie>1){var we={cause:D+","+N,reach:Q};l(g,y,h,ae.prev,fe,we),C&&we.reach>C.reach&&(C.reach=we.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},C=y.alias;C&&(Array.isArray(C)?Array.prototype.push.apply(w.classes,C):w.classes.push(C)),a.hooks.run("wrap",w);var D="";for(var A in w.attributes)D+=" "+A+'="'+(w.attributes[A]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+D+">"+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 v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var m=document.readyState;m==="loading"||m==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{});/**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),Wg!==void 0&&(Wg.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(/&/,"&"))}),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"),v=c.language;if(v==="none"){var m=(/\.(\w+)$/.exec(p)||[,"none"])[1];v=n[m]||m}l(d,v),l(f,v);var g=t.plugins.autoloader;g&&g.loadLanguages(v);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(/&/,"&"))}),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),v=r(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,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,v,h]),C=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,y,h]),A={keyword:c,punctuation:/[<>()?,.:[\]]/},N=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,M=/"(?:\\.|[^\\"\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,[M]),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:A},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,D]),lookbehind:!0,inside:A},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:A},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:A},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[$]),lookbehind:!0,inside:A},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,m]),inside:A}],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,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:A},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:A,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:A,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,p]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(p),alias:"class-name",inside:A}}},"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,m,D,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:A},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 V=M+"|"+N,J=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[V]),Z=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[J]),2),se=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ee=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,Z]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[se,ee]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[se]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[Z]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ae=/:[^}\r\n]+/.source,fe=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[J]),2),_e=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[fe,ae]),ve=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[V]),2),ie=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ve,ae]);function Ie(T,F){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[T]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[F,ae]),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,[_e]),lookbehind:!0,greedy:!0,inside:Ie(_e,fe)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ie]),lookbehind:!0,greedy:!0,inside:Ie(ie,ve)}]})}(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 v=f[d];if(v.type==="code"){var m=v.content[1],g=v.content[3];if(m&&g&&m.type==="code-language"&&g.type==="code-block"&&typeof m.content=="string"){var y=m.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(v.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],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var m=e.languages[c];if(m)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 C;if((w=w.toLowerCase())[0]==="#")return C=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(C);var D=u[w];return D||$})}(l.content),m,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);var Ife=["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 RP(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+RP(n)},0)}var _p,Rfe=Se.String,pi=function(e){if(c5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Rfe(e)},jP=function(){var e=vr(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},g5=Se.RegExp,C$=Rt(function(){var e=g5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),jfe=C$||Rt(function(){return!g5("a","y").sticky}),LP={BROKEN_CARET:C$||Rt(function(){var e=g5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:jfe,UNSUPPORTED_Y:C$},Lfe=qr?Object.defineProperties:function(e,t){vr(e);for(var n,r=ev(t),i=oh(t),o=i.length,a=0;o>a;)Q0.f(e,n=i[a++],r[n]);return e},Mfe=wd("document","documentElement"),MP=SP("IE_PROTO"),g2=function(){},zP=function(e){return"<script>"+e+"<\/script>"},f9=function(e){e.write(zP("")),e.close();var t=e.parentWindow.Object;return e=null,t},ah=function(){try{_p=new ActiveXObject("htmlfile")}catch{}var e,t;ah=typeof document!="undefined"?document.domain&&_p?f9(_p):((t=o5("iframe")).style.display="none",Mfe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zP("document.F=Object")),e.close(),e.F):f9(_p);for(var n=Kg.length;n--;)delete ah.prototype[Kg[n]];return ah()};l5[MP]=!0;var d9,v2,zfe=Object.create||function(e,t){var n;return e!==null?(g2.prototype=vr(e),n=new g2,g2.prototype=null,n[MP]=e):n=ah(),t===void 0?n:Lfe(n,t)},Hfe=Se.RegExp,Ufe=Rt(function(){var e=Hfe(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Vfe=Se.RegExp,Wfe=Rt(function(){var e=Vfe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),qfe=w$.get,Gfe=t5("native-string-replace",String.prototype.replace),Yg=RegExp.prototype.exec,D$=Yg,Kfe=Me("".charAt),Yfe=Me("".indexOf),Xfe=Me("".replace),m2=Me("".slice),y2=(v2=/b*/g,_t(Yg,d9=/a/,"a"),_t(Yg,v2,"a"),d9.lastIndex!==0||v2.lastIndex!==0),p9=LP.BROKEN_CARET,b2=/()??/.exec("")[1]!==void 0;(y2||b2||p9||Ufe||Wfe)&&(D$=function(e){var t,n,r,i,o,a,u,s=this,l=qfe(s),c=pi(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=_t(D$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=p9&&s.sticky,v=_t(jP,s),m=s.source,g=0,y=c;if(p&&(v=Xfe(v,"y",""),Yfe(v,"g")===-1&&(v+="g"),y=m2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Kfe(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),b2&&(n=new RegExp("^"+m+"$(?!\\s)",v)),y2&&(r=s.lastIndex),i=_t(Yg,p?n:s,y),p?i?(i.input=m2(i.input,g),i[0]=m2(i[0],g),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:y2&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),b2&&i&&i.length>1&&_t(Gfe,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=zfe(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var zf=D$;tv({target:"RegExp",proto:!0,forced:/./.exec!==zf},{exec:zf});var v5=Function.prototype,h9=v5.apply,Jfe=v5.bind,g9=v5.call,Zfe=typeof Reflect=="object"&&Reflect.apply||(Jfe?g9.bind(h9):function(){return g9.apply(h9,arguments)}),Qfe=Ro("species"),$2=RegExp.prototype,ede=Ro("match"),tde=Se.TypeError,nde=Ro("species"),rde=function(e,t){var n,r=vr(e).constructor;return r===void 0||(n=vr(r)[nde])==null?t:function(i){if(TP(i))return i;throw tde(EP(i)+" is not a constructor")}(n)},ide=Me("".charAt),v9=Me("".charCodeAt),ode=Me("".slice),m9=function(e){return function(t,n){var r,i,o=pi(_s(t)),a=d5(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=v9(o,a))<55296||r>56319||a+1===u||(i=v9(o,a+1))<56320||i>57343?e?ide(o,a):r:e?ode(o,a,a+2):i-56320+(r-55296<<10)+65536}},ade={codeAt:m9(!1),charAt:m9(!0)}.charAt,ude=function(e,t,n){return t+(n?ade(e,t).length:1)},sde=Se.Array,lde=Math.max,y9=function(e,t,n){for(var r,i,o,a,u=p5(e),s=E$(t,u),l=E$(n===void 0?u:n,u),c=sde(lde(l-s,0)),f=0;s<l;s++,f++)r=c,i=f,o=e[s],a=void 0,(a=a5(i))in r?Q0.f(r,a,u5(0,o)):r[a]=o;return c.length=f,c},cde=Se.TypeError,b9=function(e,t){var n=e.exec;if(nn(n)){var r=_t(n,e,t);return r!==null&&vr(r),r}if(yo(e)==="RegExp")return _t(zf,e,t);throw cde("RegExp#exec called on incompatible receiver")},Ru=LP.UNSUPPORTED_Y,fde=Math.min,HP=[].push,dde=Me(/./.exec),ju=Me(HP),bc=Me("".slice);(function(e,t,n,r){var i=Ro(e),o=!Rt(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Rt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Qfe]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Me(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var v=Me(l),m=c.exec;return m===zf||m===$2.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Mf(String.prototype,e,s[0]),Mf($2,i,s[1])}r&&Ps($2[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=pi(_s(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!ur(a=i)||!((u=a[ede])!==void 0?u:yo(a)=="RegExp"))return _t(t,s,i,l);for(var c,f,d,p=[],v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),m=0,g=new RegExp(i.source,v+"g");(c=_t(zf,g,s))&&!((f=g.lastIndex)>m&&(ju(p,bc(s,m,c.index)),c.length>1&&c.index<s.length&&Zfe(HP,p,y9(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&dde(g,"")||ju(p,""):ju(p,bc(s,m)),p.length>l?y9(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:_t(t,this,i,o)}:t,[function(i,o){var a=_s(this),u=i==null?void 0:DP(i,e);return u?_t(u,i,a,o):_t(r,pi(a),i,o)},function(i,o){var a=vr(this),u=pi(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=rde(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ru?"g":"y"),d=new l(Ru?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return b9(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Ru?0:m;var y,h=b9(d,Ru?bc(u,m):u);if(h===null||(y=fde(OP(d.lastIndex+(Ru?m:0)),u.length))===v)m=ude(u,m,c);else{if(ju(g,bc(u,v,m)),g.length===p)return g;for(var $=1;$<=h.length-1;$++)if(ju(g,h[$]),g.length===p)return g;m=v=y}}return ju(g,bc(u,v)),g}]},!!Rt(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"}),Ru),tv({global:!0},{globalThis:Se}),Mr&&(O.fn.attr=Mr);var pde=AP.PROPER,S$=RegExp.prototype,UP=S$.toString,hde=Me(jP),gde=Rt(function(){return UP.call({source:"a",flags:"b"})!="/a/b"}),vde=pde&&UP.name!="toString";(gde||vde)&&Mf(RegExp.prototype,"toString",function(){var e=vr(this),t=pi(e.source),n=e.flags;return"/"+t+"/"+pi(n===void 0&&wP(S$,e)&&!("flags"in S$)?hde(e):n)},{unsafe:!0});var mde=function(){function e(){this.title=G("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||!te.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()};P.setNodes(t,r,{match:function(i){return x.checkNodeType(i,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=x.getSelectedNodeByType(t,"code");if(n==null)return null;var r=x.getParentNode(t,n);return te.isElement(r)?r.type!=="pre"?null:n:null},e}(),yde={renderStyle:function(e,t){var n=e,r=t,i="";return Ife.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(!te.isElement(t)||x.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 mde},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},bde=/"/g,$de=Me("".replace);tv({target:"String",proto:!0,forced:function(e){return Rt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}("anchor")},{anchor:function(e){return t="a",n="name",r=e,i=pi(_s(this)),o="<"+t,n!==""&&(o+=" "+n+'="'+$de(pi(r),bde,""")+'"'),o+">"+i+"</"+t+">";var t,n,r,i,o}});var VP=function(e){var t,n,r,i=function(y,h){var $=typeof Symbol=="function"&&y[Symbol.iterator];if(!$)return y;var w,C,D=$.call(y),A=[];try{for(;(h===void 0||h-- >0)&&!(w=D.next()).done;)A.push(w.value)}catch(N){C={error:N}}finally{try{w&&!w.done&&($=D.return)&&$.call(D)}finally{if(C)throw C.error}}return A}(e,2),o=i[0],a=i[1],u=[],s=function(y){if(!X.isText(y))return null;var h=x.getParentNode(null,y);if(h&&x.getNodeType(h)==="code"){var $=x.getParentNode(null,h);if($&&x.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 $=c9.languages[h];return $?c9.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),v=p.next();!v.done;v=p.next()){var m=v.value,g=d+RP(m);typeof m!="string"&&u.push(((r={})[m.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(y){t={error:y}}finally{try{v&&!v.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u};/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var ct=function(){return ct=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},ct.apply(this,arguments)},Nt=function(){function e(){throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
- Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=ct(ct({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=ct(ct({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=ct(ct({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=ct(ct({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){MV(t,n)},e.registerRenderElem=function(t){dq(t)},e.registerRenderStyle=function(t){fq(t)},e.registerElemToHtml=function(t){JV(t)},e.registerStyleToHtml=function(t){XV(t)},e.registerPreParseHtml=function(t){$W(t)},e.registerParseElemHtml=function(t){EW(t)},e.registerParseStyleHtml=function(t){wW(t)},e.registerModule=function(t){tu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function tu(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 Nt.registerMenu(c)}),n&&n.forEach(function(c){return Nt.registerRenderElem(c)}),r&&Nt.registerRenderStyle(r),i&&i.forEach(function(c){return Nt.registerElemToHtml(c)}),o&&Nt.registerStyleToHtml(o),a&&a.forEach(function(c){return Nt.registerPreParseHtml(c)}),u&&u.forEach(function(c){return Nt.registerParseElemHtml(c)}),s&&Nt.registerParseStyleHtml(s),l&&Nt.registerPlugin(l)}NQ.forEach(function(e){return tu(e)});tu(Gte);tu(Eie);tu(Iue);tu(Oce);tu(yde);var wde='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Ede='<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>',WP='<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>',Cde='<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>',Dde='<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 Sde(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:G("editor.more"),iconSvg:Cde,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:G("editor.justify"),iconSvg:Ede,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:G("editor.indent"),iconSvg:wde,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:G("editor.image"),iconSvg:WP,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:G("editor.video"),iconSvg:Dde,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function xde(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:G("editor.image"),iconSvg:WP,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var qP={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 Ade(){return ct(ct({},qP),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function Ode(){return qP}function Bde(){return{hoverbarKeys:Ade()}}function Fde(){return{hoverbarKeys:Ode()}}function Tde(){return{toolbarKeys:Sde()}}function kde(){return{toolbarKeys:xde()}}var _de=Bde();Nt.setEditorConfig(ct(ct({},_de),{decorate:VP}));var Pde=Fde();Nt.setSimpleEditorConfig(ct(ct({},Pde),{decorate:VP}));var Nde=Tde();Nt.setToolbarConfig(Nde);var Ide=kde();Nt.setSimpleToolbarConfig(Ide);function Rde(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"?Nt.simpleEditorConfig:Nt.editorConfig,f=ct(ct({},c.hoverbarKeys||{}),u.hoverbarKeys||{}),d=_q({selector:n,config:ct(ct(ct({},c),u),{hoverbarKeys:f}),content:i,html:o,plugins:Nt.plugins});return d}function jde(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"?Nt.simpleToolbarConfig:Nt.toolbarConfig,s=Lq(n,{selector:t,config:ct(ct({},u),i)});return s}var Lde=Object.defineProperty,Mde=Object.defineProperties,zde=Object.getOwnPropertyDescriptors,$9=Object.getOwnPropertySymbols,Hde=Object.prototype.hasOwnProperty,Ude=Object.prototype.propertyIsEnumerable,w9=(e,t,n)=>t in e?Lde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vde=(e,t)=>{for(var n in t||(t={}))Hde.call(t,n)&&w9(e,n,t[n]);if($9)for(var n of $9(t))Ude.call(t,n)&&w9(e,n,t[n]);return e},Wde=(e,t)=>Mde(e,zde(t));function qi(e){let t=`\u8BF7\u4F7F\u7528 '@${e}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return t+=`
- Please use '@${e}' event instead of props`,t}var GP=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const qde=x$({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=Ki(null),r=E9(null),i=Ki(""),o=()=>{if(!n.value)return;const u=JP(e.defaultContent);Rde({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:Wde(Vde({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=qi("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(i.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=qi("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=qi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=qi("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=qi("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=qi("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=qi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=qi("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return KP(()=>{o()}),YP(()=>e.modelValue,u=>{u!==i.value&&a(u)}),{box:n}}}),Gde={ref:"box",style:{height:"100%"}};function Kde(e,t,n,r,i,o){return A$(),C9("div",Gde,null,512)}var Yde=GP(qde,[["render",Kde]]);const Xde=x$({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=Ki(null),n=r=>{if(!!t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");x.getToolbar(r)||jde({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return XP(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Jde={ref:"selector"};function Zde(e,t,n,r,i,o){return A$(),C9("div",Jde,null,512)}var Qde=GP(Xde,[["render",Zde]]);const epe={style:{border:"1px solid #ccc"}},tpe={class:"flex w-full justify-end"},npe=nN("\u4FDD\u5B58"),rpe=x$({__name:"update-modal",props:{loading:{type:Boolean,required:!0}},emits:["create","update"],setup(e,{expose:t,emit:n}){const r="default",i=Ki("create"),o=Ki(!1),a=E9(),u=Ki(),s=Ki(""),l={placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9..."},c=Ki({module:"",system:"",sys_type:"",version:"",addtime:""}),f=g=>({message:g,required:!0,trigger:"change"}),d={module:[f("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A")],system:[f("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A")],sys_type:[f("\u8BF7\u9009\u62E9\u4E00\u4E2A\u7C7B\u578B")],version:[f("\u7248\u672C\u53F7\u4E0D\u80FD\u4E3A\u7A7A")],addtime:[f("\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")]};QP(()=>{const g=a.value;g!=null&&g.destroy()});const p=g=>{a.value=g};function v(){c.value={module:"",system:"",sys_type:"",version:"",addtime:""},rN(()=>{Object.keys(c.value).forEach(g=>u.value.clearValidate(g))})}function m(){u.value.validate(g=>{g&&n(i.value,{...c.value,...i.value==="update"?{id:s.value}:{}})})}return t({onDisplay:g=>{o.value=!0,i.value=g?"update":"create";const{module:y,system:h,sys_type:$,version:w,addtime:C,id:D}=g;s.value=D,c.value={module:y,system:h,sys_type:$,version:w,addtime:C}},onHidden:()=>o.value=!1}),(g,y)=>{const h=ni("ElOption"),$=ni("ElSelect"),w=ni("ElFormItem"),C=ni("ElCol"),D=ni("ElInput"),A=ni("ElRow"),N=ni("ElDatePicker"),M=ni("ElButton"),U=ni("ElDialog");return A$(),eN(U,{modelValue:o.value,"onUpdate:modelValue":y[5]||(y[5]=V=>o.value=V),title:i.value==="create"?"\u6DFB\u52A0\u7248\u672C\u4FE1\u606F":"\u4FEE\u6539\u7248\u672C\u4FE1\u606F",onClose:v,width:"1040px","destroy-on-close":"",center:"",top:"10vh"},{default:Zt(()=>[pt(Id(tN),{"label-width":"80px",model:c.value,rules:d,ref_key:"formRef",ref:u},{default:Zt(()=>[pt(A,{gutter:10},{default:Zt(()=>[pt(C,{span:12},{default:Zt(()=>[pt(w,{label:"\u7C7B\u578B",prop:"sys_type"},{default:Zt(()=>[pt($,{style:{width:"100%"},modelValue:c.value.sys_type,"onUpdate:modelValue":y[0]||(y[0]=V=>c.value.sys_type=V)},{default:Zt(()=>[pt(h,{value:"MSG",label:"\u516C\u544A"}),pt(h,{value:"VER",label:"\u7248\u672C"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),pt(C,{span:12},{default:Zt(()=>[pt(w,{label:"\u7248\u672C\u53F7",prop:"version"},{default:Zt(()=>[pt(D,{placeholder:"\u7248\u672C\u53F7",modelValue:c.value.version,"onUpdate:modelValue":y[1]||(y[1]=V=>c.value.version=V)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),pt(A,{gutter:10},{default:Zt(()=>[pt(C,{span:12},{default:Zt(()=>[pt(w,{label:"\u6807\u9898",prop:"module"},{default:Zt(()=>[pt(D,{placeholder:"\u6807\u9898",modelValue:c.value.module,"onUpdate:modelValue":y[2]||(y[2]=V=>c.value.module=V)},null,8,["modelValue"])]),_:1})]),_:1}),pt(C,{span:12},{default:Zt(()=>[pt(w,{label:"\u65F6\u95F4",prop:"addtime"},{default:Zt(()=>[pt(N,{"value-format":"YYYY-MM-DD HH:mm:ss",modelValue:c.value.addtime,"onUpdate:modelValue":y[3]||(y[3]=V=>c.value.addtime=V),type:"datetime",style:{width:"100%"},placeholder:"\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),pt(w,{label:"\u5185\u5BB9",prop:"system"},{default:Zt(()=>[y5("div",epe,[pt(Id(Qde),{style:{"border-bottom":"1px solid #ccc"},editor:Id(a),mode:r},null,8,["editor"]),pt(Id(Yde),{style:{height:"400px","overflow-y":"hidden"},modelValue:c.value.system,"onUpdate:modelValue":y[4]||(y[4]=V=>c.value.system=V),defaultConfig:l,mode:r,onOnCreated:p},null,8,["modelValue"])])]),_:1}),pt(w,null,{default:Zt(()=>[y5("div",tpe,[pt(M,{type:"primary",onClick:m,loading:e.loading},{default:Zt(()=>[npe]),_:1},8,["loading"])])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])}}});var ppe=ZP(rpe,[["__file","D:/work/accout-vue3-ui/src/views/system/updates/components/update-modal.vue"]]);export{ppe as default};
|