Files
jiapu/dist/public/js/wangeditor5/index.js
T

191 lines
832 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(So,ld){typeof exports=="object"&&typeof module!="undefined"?ld(exports):typeof define=="function"&&define.amd?define(["exports"],ld):(So=typeof globalThis!="undefined"?globalThis:So||self,ld(So.wangEditor={}))})(this,(function(So){"use strict";var ld;if(typeof global=="undefined"){if("ActiveXObject"in window){var Bm="抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器";Bm+=`
Sorry, wangEditor V5+ versions do not support IE browser.`,console.error(Bm)}Fm(),Pm()}else global&&(!((ld=global.navigator)===null||ld===void 0)&&ld.userAgent.match("QQBrowser"))&&(Fm(),Pm());function Fm(){typeof globalThis=="undefined"&&(window.globalThis=window)}function Pm(){typeof AggregateError=="undefined"&&(window.AggregateError=function(r,e){var t=new Error(e);return t.errors=r,t})}if(typeof global=="object"){var Ob=Object.getOwnPropertyDescriptor(global,"window");(!global.window||Ob.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(r){return nodeCrypto.randomFillSync(r)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}var Ur=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Tb(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function xl(r){var e={exports:{}};return r(e,e.exports),e.exports}/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function km(r){return Object.prototype.toString.call(r)==="[object Object]"}function Bb(r){var e,t;return km(r)===!1?!1:(e=r.constructor,e===void 0?!0:(t=e.prototype,!(km(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}var Fb=Bb,Pb=Object.defineProperty({isPlainObject:Fb},"__esModule",{value:!0}),P0,k0=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",kb=typeof Map!="undefined",Nb=typeof Set!="undefined",Nm=typeof Proxy!="undefined"&&typeof Proxy.revocable!="undefined"&&typeof Reflect!="undefined",Zh=k0?Symbol.for("immer-nothing"):(P0={},P0["immer-nothing"]=!0,P0),Ud=k0?Symbol.for("immer-draftable"):"__$immer_draftable",ai=k0?Symbol.for("immer-state"):"__$immer_state",Jh=typeof Symbol!="undefined"&&Symbol.iterator||"@@iterator",Ib={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"};function ia(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];{var c=Ib[r],f=c?typeof c=="function"?c.apply(null,t):c:"unknown error nr: "+r;throw new Error("[Immer] "+f)}}function Sc(r){return!!r&&!!r[ai]}function nc(r){return r?jb(r)||Array.isArray(r)||!!r[Ud]||!!r.constructor[Ud]||eg(r)||tg(r):!1}var Rb=Object.prototype.constructor.toString();function jb(r){if(!r||typeof r!="object")return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;var t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return t===Object?!0:typeof t=="function"&&Function.toString.call(t)===Rb}function Lb(r){return Sc(r)||ia(23,r),r[ai].base_}var Vd=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:typeof Object.getOwnPropertySymbols!="undefined"?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Im=Object.getOwnPropertyDescriptors||function(e){var t={};return Vd(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t};function of(r,e,t){t===void 0&&(t=!1),Rf(r)===0?(t?Object.keys:Vd)(r).forEach(function(n){(!t||typeof n!="symbol")&&e(n,r[n],r)}):r.forEach(function(n,c){return e(c,n,r)})}function Rf(r){var e=r[ai];return e?e.type_>3?e.type_-4:e.type_:Array.isArray(r)?1:eg(r)?2:tg(r)?3:0}function jf(r,e){return Rf(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Qh(r,e){return Rf(r)===2?r.get(e):r[e]}function Rm(r,e,t){var n=Rf(r);n===2?r.set(e,t):n===3?(r.delete(e),r.add(t)):r[e]=t}function jm(r,e){return r===e?r!==0||1/r===1/e:r!==r&&e!==e}function eg(r){return kb&&r instanceof Map}function tg(r){return Nb&&r instanceof Set}function Au(r){return r.copy_||r.base_}function N0(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Im(r);delete e[ai];for(var t=Vd(e),n=0;n<t.length;n++){var c=t[n],f=e[c];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(e[c]={configurable:!0,writable:!0,enumerable:f.enumerable,value:r[c]})}return Object.create(Object.getPrototypeOf(r),e)}function ng(r,e){return e===void 0&&(e=!1),I0(r)||Sc(r)||!nc(r)||(Rf(r)>1&&(r.set=r.add=r.clear=r.delete=Mb),Object.freeze(r),e&&of(r,function(t,n){return ng(n,!0)},!0)),r}function Mb(){ia(2)}function I0(r){return r==null||typeof r!="object"?!0:Object.isFrozen(r)}var R0={};function af(r){var e=R0[r];return e||ia(18,r),e}function j0(r,e){R0[r]||(R0[r]=e)}var Wd;function Rp(){return Wd||ia(0),Wd}function $b(r,e){return{drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function L0(r,e){e&&(af("Patches"),r.patches_=[],r.inversePatches_=[],r.patchListener_=e)}function rg(r){M0(r),r.drafts_.forEach(zb),r.drafts_=null}function M0(r){r===Wd&&(Wd=r.parent_)}function Lm(r){return Wd=$b(Wd,r)}function zb(r){var e=r[ai];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function $0(r,e){e.unfinalizedDrafts_=e.drafts_.length;var t=e.drafts_[0],n=r!==void 0&&r!==t;return e.immer_.useProxies_||af("ES5").willFinalizeES5_(e,r,n),n?(t[ai].modified_&&(rg(e),ia(4)),nc(r)&&(r=ig(e,r),e.parent_||og(e,r)),e.patches_&&af("Patches").generateReplacementPatches_(t[ai],r,e.patches_,e.inversePatches_)):r=ig(e,t,[]),rg(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),r!==Zh?r:void 0}function ig(r,e,t){if(I0(e))return e;var n=e[ai];if(!n)return of(e,function(f,m){return Mm(r,n,e,f,m,t)},!0),e;if(n.scope_!==r)return e;if(!n.modified_)return og(r,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;var c=n.type_===4||n.type_===5?n.copy_=N0(n.draft_):n.copy_;of(n.type_===3?new Set(c):c,function(f,m){return Mm(r,n,c,f,m,t)}),og(r,c,!1),t&&r.patches_&&af("Patches").generatePatches_(n,t,r.patches_,r.inversePatches_)}return n.copy_}function Mm(r,e,t,n,c,f){if(c===t&&ia(5),Sc(c)){var m=f&&e&&e.type_!==3&&!jf(e.assigned_,n)?f.concat(n):void 0,P=ig(r,c,m);if(Rm(t,n,P),Sc(P))r.canAutoFreeze_=!1;else return}if(nc(c)&&!I0(c)){if(!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1)return;ig(r,c),(!e||!e.scope_.parent_)&&og(r,c)}}function og(r,e,t){t===void 0&&(t=!1),r.immer_.autoFreeze_&&r.canAutoFreeze_&&ng(e,t)}function Hb(r,e){var t=Array.isArray(r),n={type_:t?1:0,scope_:e?e.scope_:Rp(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:r,draft_:null,copy_:null,revoke_:null,isManual_:!1},c=n,f=qd;t&&(c=[n],f=ag);var m=Proxy.revocable(c,f),P=m.revoke,_=m.proxy;return n.draft_=_,n.revoke_=P,_}var qd={get:function(e,t){if(t===ai)return e;var n=Au(e);if(!jf(n,t))return Ub(e,n,t);var c=n[t];return e.finalized_||!nc(c)?c:c===z0(e.base_,t)?(H0(e),e.copy_[t]=jp(e.scope_.immer_,c,e)):c},has:function(e,t){return t in Au(e)},ownKeys:function(e){return Reflect.ownKeys(Au(e))},set:function(e,t,n){var c=$m(Au(e),t);if(c!=null&&c.set)return c.set.call(e.draft_,n),!0;if(!e.modified_){var f=z0(Au(e),t),m=f==null?void 0:f[ai];if(m&&m.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(jm(n,f)&&(n!==void 0||jf(e.base_,t)))return!0;H0(e),nl(e)}return e.copy_[t]===n&&typeof n!="number"&&(n!==void 0||t in e.copy_)||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:function(e,t){return z0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,H0(e),nl(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Au(e),c=Reflect.getOwnPropertyDescriptor(n,t);return c&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:c.enumerable,value:n[t]}},defineProperty:function(){ia(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.base_)},setPrototypeOf:function(){ia(12)}},ag={};of(qd,function(r,e){ag[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ag.deleteProperty=function(r,e){return isNaN(parseInt(e))&&ia(13),qd.deleteProperty.call(this,r[0],e)},ag.set=function(r,e,t){return e!=="length"&&isNaN(parseInt(e))&&ia(14),qd.set.call(this,r[0],e,t,r[0])};function z0(r,e){var t=r[ai],n=t?Au(t):r;return n[e]}function Ub(r,e,t){var n,c=$m(e,t);return c?"value"in c?c.value:(n=c.get)===null||n===void 0?void 0:n.call(r.draft_):void 0}function $m(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function nl(r){r.modified_||(r.modified_=!0,r.parent_&&nl(r.parent_))}function H0(r){r.copy_||(r.copy_=N0(r.base_))}var zm=(function(){function r(t){var n=this;this.useProxies_=Nm,this.autoFreeze_=!0,this.produce=function(c,f,m){if(typeof c=="function"&&typeof f!="function"){var P=f;f=c;var _=n;return function(W){var re=this;W===void 0&&(W=P);for(var te=arguments.length,me=new Array(te>1?te-1:0),ne=1;ne<te;ne++)me[ne-1]=arguments[ne];return _.produce(W,function(X){var q;return(q=f).call.apply(q,[re,X].concat(me))})}}typeof f!="function"&&ia(6),m!==void 0&&typeof m!="function"&&ia(7);var x;if(nc(c)){var O=Lm(n),k=jp(n,c,void 0),S=!0;try{x=f(k),S=!1}finally{S?rg(O):M0(O)}return typeof Promise!="undefined"&&x instanceof Promise?x.then(function(B){return L0(O,m),$0(B,O)},function(B){throw rg(O),B}):(L0(O,m),$0(x,O))}else{if(!c||typeof c!="object")return x=f(c),x===Zh?void 0:(x===void 0&&(x=c),n.autoFreeze_&&ng(x,!0),x);ia(21,c)}},this.produceWithPatches=function(c,f,m){if(typeof c=="function")return function(O){for(var k=arguments.length,S=new Array(k>1?k-1:0),B=1;B<k;B++)S[B-1]=arguments[B];return n.produceWithPatches(O,function(W){return c.apply(void 0,[W].concat(S))})};var P,_,x=n.produce(c,f,function(O,k){P=O,_=k});return[x,P,_]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(n){nc(n)||ia(8),Sc(n)&&(n=Hm(n));var c=Lm(this),f=jp(this,n,void 0);return f[ai].isManual_=!0,M0(c),f},e.finishDraft=function(n,c){var f=n&&n[ai];(!f||!f.isManual_)&&ia(9),f.finalized_&&ia(10);var m=f.scope_;return L0(m,c),$0(void 0,m)},e.setAutoFreeze=function(n){this.autoFreeze_=n},e.setUseProxies=function(n){n&&!Nm&&ia(20),this.useProxies_=n},e.applyPatches=function(n,c){var f;for(f=c.length-1;f>=0;f--){var m=c[f];if(m.path.length===0&&m.op==="replace"){n=m.value;break}}f>-1&&(c=c.slice(f+1));var P=af("Patches").applyPatches_;return Sc(n)?P(n,c):this.produce(n,function(_){return P(_,c)})},r})();function jp(r,e,t){var n=eg(e)?af("MapSet").proxyMap_(e,t):tg(e)?af("MapSet").proxySet_(e,t):r.useProxies_?Hb(e,t):af("ES5").createES5Proxy_(e,t),c=t?t.scope_:Rp();return c.drafts_.push(n),n}function Hm(r){return Sc(r)||ia(22,r),Um(r)}function Um(r){if(!nc(r))return r;var e=r[ai],t,n=Rf(r);if(e){if(!e.modified_&&(e.type_<4||!af("ES5").hasChanges_(e)))return e.base_;e.finalized_=!0,t=Vm(r,n),e.finalized_=!1}else t=Vm(r,n);return of(t,function(c,f){e&&Qh(e.base_,c)===f||Rm(t,c,Um(f))}),n===3?new Set(t):t}function Vm(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return N0(r)}function Wm(){function r(k,S,B){B?Sc(S)&&S[ai].scope_===k&&f(k.drafts_):(k.patches_&&m(k.drafts_[0]),f(k.drafts_))}function e(k,S){if(k){for(var B=new Array(S.length),W=0;W<S.length;W++)Object.defineProperty(B,""+W,c(W,!0));return B}else{var re=Im(S);delete re[ai];for(var te=Vd(re),me=0;me<te.length;me++){var ne=te[me];re[ne]=c(ne,k||!!re[ne].enumerable)}return Object.create(Object.getPrototypeOf(S),re)}}function t(k,S){var B=Array.isArray(k),W=e(B,k),re={type_:B?5:4,scope_:S?S.scope_:Rp(),modified_:!1,finalized_:!1,assigned_:{},parent_:S,base_:k,draft_:W,copy_:null,revoked_:!1,isManual_:!1};return Object.defineProperty(W,ai,{value:re,writable:!0}),W}var n={};function c(k,S){var B=n[k];return B?B.enumerable=S:n[k]=B={configurable:!0,enumerable:S,get:function(){var re=this[ai];return O(re),qd.get(re,k)},set:function(re){var te=this[ai];O(te),qd.set(te,k,re)}},B}function f(k){for(var S=k.length-1;S>=0;S--){var B=k[S][ai];if(!B.modified_)switch(B.type_){case 5:_(B)&&nl(B);break;case 4:P(B)&&nl(B);break}}}function m(k){if(!(!k||typeof k!="object")){var S=k[ai];if(S){var B=S.base_,W=S.draft_,re=S.assigned_,te=S.type_;if(te===4)of(W,function(Ee){Ee!==ai&&(B[Ee]===void 0&&!jf(B,Ee)?(re[Ee]=!0,nl(S)):re[Ee]||m(W[Ee]))}),of(B,function(Ee){W[Ee]===void 0&&!jf(W,Ee)&&(re[Ee]=!1,nl(S))});else if(te===5){if(_(S)&&(nl(S),re.length=!0),W.length<B.length)for(var me=W.length;me<B.length;me++)re[me]=!1;else for(var ne=B.length;ne<W.length;ne++)re[ne]=!0;for(var X=Math.min(W.length,B.length),q=0;q<X;q++)re[q]===void 0&&m(W[q])}}}}function P(k){for(var S=k.base_,B=k.draft_,W=Vd(B),re=W.length-1;re>=0;re--){var te=W[re];if(te!==ai){var me=S[te];if(me===void 0&&!jf(S,te))return!0;var ne=B[te],X=ne&&ne[ai];if(X?X.base_!==me:!jm(ne,me))return!0}}var q=!!S[ai];return W.length!==Vd(S).length+(q?0:1)}function _(k){var S=k.draft_;if(S.length!==k.base_.length)return!0;var B=Object.getOwnPropertyDescriptor(S,S.length-1);return!!(B&&!B.get)}function x(k){return k.type_===4?P(k):_(k)}function O(k){k.revoked_&&ia(3,JSON.stringify(Au(k)))}j0("ES5",{createES5Proxy_:t,willFinalizeES5_:r,hasChanges_:x})}function qm(){var r="replace",e="add",t="remove";function n(k,S,B,W){switch(k.type_){case 0:case 4:case 2:return f(k,S,B,W);case 5:case 1:return c(k,S,B,W);case 3:return m(k,S,B,W)}}function c(k,S,B,W){var re=k.base_,te=k.assigned_,me=k.copy_;if(me.length<re.length){var ne=[me,re];re=ne[0],me=ne[1];var X=[W,B];B=X[0],W=X[1]}for(var q=0;q<re.length;q++)if(te[q]&&me[q]!==re[q]){var Ee=S.concat([q]);B.push({op:r,path:Ee,value:O(me[q])}),W.push({op:r,path:Ee,value:O(re[q])})}for(var ye=re.length;ye<me.length;ye++){var Qe=S.concat([ye]);B.push({op:e,path:Qe,value:O(me[ye])})}re.length<me.length&&W.push({op:r,path:S.concat(["length"]),value:re.length})}function f(k,S,B,W){var re=k.base_,te=k.copy_;of(k.assigned_,function(me,ne){var X=Qh(re,me),q=Qh(te,me),Ee=ne?jf(re,me)?r:e:t;if(!(X===q&&Ee===r)){var ye=S.concat(me);B.push(Ee===t?{op:Ee,path:ye}:{op:Ee,path:ye,value:q}),W.push(Ee===e?{op:t,path:ye}:Ee===t?{op:e,path:ye,value:O(X)}:{op:r,path:ye,value:O(X)})}})}function m(k,S,B,W){var re=k.base_,te=k.copy_,me=0;re.forEach(function(ne){if(!te.has(ne)){var X=S.concat([me]);B.push({op:t,path:X,value:ne}),W.unshift({op:e,path:X,value:ne})}me++}),me=0,te.forEach(function(ne){if(!re.has(ne)){var X=S.concat([me]);B.push({op:e,path:X,value:ne}),W.unshift({op:t,path:X,value:ne})}me++})}function P(k,S,B,W){B.push({op:r,path:[],value:S===Zh?void 0:S}),W.push({op:r,path:[],value:k.base_})}function _(k,S){return S.forEach(function(B){for(var W=B.path,re=B.op,te=k,me=0;me<W.length-1;me++){var ne=Rf(te),X=""+W[me];(ne===0||ne===1)&&(X==="__proto__"||X==="constructor")&&ia(24),typeof te=="function"&&X==="prototype"&&ia(24),te=Qh(te,X),typeof te!="object"&&ia(15,W.join("/"))}var q=Rf(te),Ee=x(B.value),ye=W[W.length-1];switch(re){case r:switch(q){case 2:return te.set(ye,Ee);case 3:ia(16);default:return te[ye]=Ee}case e:switch(q){case 1:return ye==="-"?te.push(Ee):te.splice(ye,0,Ee);case 2:return te.set(ye,Ee);case 3:return te.add(Ee);default:return te[ye]=Ee}case t:switch(q){case 1:return te.splice(ye,1);case 2:return te.delete(ye);case 3:return te.delete(B.value);default:return delete te[ye]}default:ia(17,re)}}),k}function x(k){if(!nc(k))return k;if(Array.isArray(k))return k.map(x);if(eg(k))return new Map(Array.from(k.entries()).map(function(W){var re=W[0],te=W[1];return[re,x(te)]}));if(tg(k))return new Set(Array.from(k).map(x));var S=Object.create(Object.getPrototypeOf(k));for(var B in k)S[B]=x(k[B]);return jf(k,Ud)&&(S[Ud]=k[Ud]),S}function O(k){return Sc(k)?x(k):k}j0("Patches",{applyPatches_:_,generatePatches_:n,generateReplacementPatches_:P})}function Gm(){var r=function(O,k){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,B){S.__proto__=B}||function(S,B){for(var W in B)B.hasOwnProperty(W)&&(S[W]=B[W])},r(O,k)};function e(x,O){r(x,O);function k(){this.constructor=x}x.prototype=(k.prototype=O.prototype,new k)}var t=(function(x){e(O,x);function O(S,B){return this[ai]={type_:2,parent_:B,scope_:B?B.scope_:Rp(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:S,draft_:this,isManual_:!1,revoked_:!1},this}var k=O.prototype;return Object.defineProperty(k,"size",{get:function(){return Au(this[ai]).size}}),k.has=function(S){return Au(this[ai]).has(S)},k.set=function(S,B){var W=this[ai];return _(W),(!Au(W).has(S)||Au(W).get(S)!==B)&&(c(W),nl(W),W.assigned_.set(S,!0),W.copy_.set(S,B),W.assigned_.set(S,!0)),this},k.delete=function(S){if(!this.has(S))return!1;var B=this[ai];return _(B),c(B),nl(B),B.assigned_.set(S,!1),B.copy_.delete(S),!0},k.clear=function(){var S=this[ai];_(S),Au(S).size&&(c(S),nl(S),S.assigned_=new Map,of(S.base_,function(B){S.assigned_.set(B,!1)}),S.copy_.clear())},k.forEach=function(S,B){var W=this,re=this[ai];Au(re).forEach(function(te,me,ne){S.call(B,W.get(me),me,W)})},k.get=function(S){var B=this[ai];_(B);var W=Au(B).get(S);if(B.finalized_||!nc(W)||W!==B.base_.get(S))return W;var re=jp(B.scope_.immer_,W,B);return c(B),B.copy_.set(S,re),re},k.keys=function(){return Au(this[ai]).keys()},k.values=function(){var S=this,B,W=this.keys();return B={},B[Jh]=function(){return S.values()},B.next=function(){var te=W.next();if(te.done)return te;var me=S.get(te.value);return{done:!1,value:me}},B},k.entries=function(){var S=this,B,W=this.keys();return B={},B[Jh]=function(){return S.entries()},B.next=function(){var te=W.next();if(te.done)return te;var me=S.get(te.value);return{done:!1,value:[te.value,me]}},B},k[Jh]=function(){return this.entries()},O})(Map);function n(x,O){return new t(x,O)}function c(x){x.copy_||(x.assigned_=new Map,x.copy_=new Map(x.base_))}var f=(function(x){e(O,x);function O(S,B){return this[ai]={type_:3,parent_:B,scope_:B?B.scope_:Rp(),modified_:!1,finalized_:!1,copy_:void 0,base_:S,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1},this}var k=O.prototype;return Object.defineProperty(k,"size",{get:function(){return Au(this[ai]).size}}),k.has=function(S){var B=this[ai];return _(B),B.copy_?!!(B.copy_.has(S)||B.drafts_.has(S)&&B.copy_.has(B.drafts_.get(S))):B.base_.has(S)},k.add=function(S){var B=this[ai];return _(B),this.has(S)||(P(B),nl(B),B.copy_.add(S)),this},k.delete=function(S){if(!this.has(S))return!1;var B=this[ai];return _(B),P(B),nl(B),B.copy_.delete(S)||(B.drafts_.has(S)?B.copy_.delete(B.drafts_.get(S)):!1)},k.clear=function(){var S=this[ai];_(S),Au(S).size&&(P(S),nl(S),S.copy_.clear())},k.values=function(){var S=this[ai];return _(S),P(S),S.copy_.values()},k.entries=function(){var B=this[ai];return _(B),P(B),B.copy_.entries()},k.keys=function(){return this.values()},k[Jh]=function(){return this.values()},k.forEach=function(B,W){for(var re=this.values(),te=re.next();!te.done;)B.call(W,te.value,te.value,this),te=re.next()},O})(Set);function m(x,O){return new f(x,O)}function P(x){x.copy_||(x.copy_=new Set,x.base_.forEach(function(O){if(nc(O)){var k=jp(x.scope_.immer_,O,x);x.drafts_.set(O,k),x.copy_.add(k)}else x.copy_.add(O)}))}function _(x){x.revoked_&&ia(3,JSON.stringify(Au(x)))}j0("MapSet",{proxyMap_:n,proxySet_:m})}function Vb(){Wm(),Gm(),qm()}var Dl=new zm,Km=Dl.produce,Wb=Dl.produceWithPatches.bind(Dl),qb=Dl.setAutoFreeze.bind(Dl),Gb=Dl.setUseProxies.bind(Dl),Kb=Dl.applyPatches.bind(Dl),Xb=Dl.createDraft.bind(Dl),Yb=Dl.finishDraft.bind(Dl);function Zb(r){return r}function Jb(r){return r}var Qb=zm,e2=Kb,t2=Zb,n2=Jb,r2=Xb,i2=Hm,o2=Km,a2=Vb,u2=Wm,s2=Gm,l2=qm,c2=Yb,f2=ng,d2=Ud,p2=Sc,h2=nc,g2=Zh,v2=Lb,m2=Km,y2=Wb,b2=qb,E2=Gb,w2=Object.defineProperty({Immer:Qb,applyPatches:e2,castDraft:t2,castImmutable:n2,createDraft:r2,current:i2,default:o2,enableAllPlugins:a2,enableES5:u2,enableMapSet:s2,enablePatches:l2,finishDraft:c2,freeze:f2,immerable:d2,isDraft:p2,isDraftable:h2,nothing:g2,original:v2,produce:m2,produceWithPatches:y2,setAutoFreeze:b2,setUseProxies:E2},"__esModule",{value:!0}),x2=w2,D2=xl(function(r){r.exports=x2}),As=Pb,uf=D2;function Sl(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Cl(r,e){return e={exports:{}},r(e,e.exports),e.exports}var ug=Cl(function(r){function e(t,n){(n==null||n>t.length)&&(n=t.length);for(var c=0,f=new Array(n);c<n;c++)f[c]=t[c];return f}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(ug);var Xm=Cl(function(r){function e(t){if(Array.isArray(t))return ug(t)}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(Xm);var Ym=Cl(function(r){function e(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(Ym);var U0=Cl(function(r){function e(t,n){if(t){if(typeof t=="string")return ug(t,n);var c=Object.prototype.toString.call(t).slice(8,-1);if(c==="Object"&&t.constructor&&(c=t.constructor.name),c==="Map"||c==="Set")return Array.from(t);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return ug(t,n)}}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(U0);var Zm=Cl(function(r){function e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(Zm);var S2=Cl(function(r){function e(t){return Xm(t)||Ym(t)||U0(t)||Zm()}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0}),Gd=Sl(S2),Jm=Cl(function(r){function e(t){if(Array.isArray(t))return t}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(Jm);var Qm=Cl(function(r){function e(t,n){var c=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(c!=null){var f=[],m=!0,P=!1,_,x;try{for(c=c.call(t);!(m=(_=c.next()).done)&&(f.push(_.value),!(n&&f.length===n));m=!0);}catch(O){P=!0,x=O}finally{try{!m&&c.return!=null&&c.return()}finally{if(P)throw x}}return f}}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(Qm);var e1=Cl(function(r){function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(e1);var C2=Cl(function(r){function e(t,n){return Jm(t)||Qm(t,n)||U0(t,n)||e1()}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0}),Rt=Sl(C2),A2=Cl(function(r){function e(t,n,c){return n in t?Object.defineProperty(t,n,{value:c,enumerable:!0,configurable:!0,writable:!0}):t[n]=c,t}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0}),Al=Sl(A2),sg=new WeakMap,Lp=new WeakMap,t1=new WeakMap,n1=new WeakMap,r1=new WeakMap,i1=new WeakMap;function o1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function lg(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?o1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):o1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function cd(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_2(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,c=function(){};return{s:c,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,m=!1,P;return{s:function(){t=t.call(r)},n:function(){var x=t.next();return f=x.done,x},e:function(x){m=!0,P=x},f:function(){try{!f&&t.return!=null&&t.return()}finally{if(m)throw P}}}}function _2(r,e){if(r){if(typeof r=="string")return a1(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a1(r,e)}}function a1(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var O2=function(){var e={children:[],operations:[],selection:null,marks:null,isInline:function(){return!1},isVoid:function(){return!1},onChange:function(){},apply:function(n){var c=cd(ce.pathRefs(e)),f;try{for(c.s();!(f=c.n()).done;){var m=f.value;y1.transform(m,n)}}catch(Ge){c.e(Ge)}finally{c.f()}var P=cd(ce.pointRefs(e)),_;try{for(P.s();!(_=P.n()).done;){var x=_.value;w1.transform(x,n)}}catch(Ge){P.e(Ge)}finally{P.f()}var O=cd(ce.rangeRefs(e)),k;try{for(O.s();!(k=O.n()).done;){var S=k.value;D1.transform(S,n)}}catch(Ge){O.e(Ge)}finally{O.f()}var B=new Set,W=[],re=function(zt){if(zt){var qt=zt.join(",");B.has(qt)||(B.add(qt),W.push(zt))}},te=sg.get(e)||[],me=T2(n),ne=cd(te),X;try{for(ne.s();!(X=ne.n()).done;){var q=X.value,Ee=Be.transform(q,n);re(Ee)}}catch(Ge){ne.e(Ge)}finally{ne.f()}var ye=cd(me),Qe;try{for(ye.s();!(Qe=ye.n()).done;){var qe=Qe.value;re(qe)}}catch(Ge){ye.e(Ge)}finally{ye.f()}sg.set(e,W),Vn.transform(e,n),e.operations.push(n),ce.normalize(e),n.type==="set_selection"&&(e.marks=null),Lp.get(e)||(Lp.set(e,!0),Promise.resolve().then(function(){Lp.set(e,!1),e.onChange(),e.operations=[]}))},addMark:function(n,c){var f=e.selection;if(f)if(Qt.isExpanded(f))Vn.setNodes(e,Al({},n,c),{match:yr.isText,split:!0});else{var m=lg(lg({},ce.marks(e)||{}),{},Al({},n,c));e.marks=m,Lp.get(e)||e.onChange()}},deleteBackward:function(n){var c=e.selection;c&&Qt.isCollapsed(c)&&Vn.delete(e,{unit:n,reverse:!0})},deleteForward:function(n){var c=e.selection;c&&Qt.isCollapsed(c)&&Vn.delete(e,{unit:n})},deleteFragment:function(n){var c=e.selection;c&&Qt.isExpanded(c)&&Vn.delete(e,{reverse:n==="backward"})},getFragment:function(){var n=e.selection;return n?$n.fragment(e,n):[]},insertBreak:function(){Vn.splitNodes(e,{always:!0})},insertFragment:function(n){Vn.insertFragment(e,n)},insertNode:function(n){Vn.insertNodes(e,n)},insertText:function(n){var c=e.selection,f=e.marks;if(c){if(f){var m=lg({text:n},f);Vn.insertNodes(e,m)}else Vn.insertText(e,n);e.marks=null}},normalizeNode:function(n){var c=Rt(n,2),f=c[0],m=c[1];if(!yr.isText(f)){if(Fo.isElement(f)&&f.children.length===0){var P={text:""};Vn.insertNodes(e,P,{at:m.concat(0),voids:!0});return}for(var _=ce.isEditor(f)?!1:Fo.isElement(f)&&(e.isInline(f)||f.children.length===0||yr.isText(f.children[0])||e.isInline(f.children[0])),x=0,O=0;O<f.children.length;O++,x++){var k=$n.get(e,m);if(!yr.isText(k)){var S=f.children[O],B=k.children[x-1],W=O===f.children.length-1,re=yr.isText(S)||Fo.isElement(S)&&e.isInline(S);if(re!==_)Vn.removeNodes(e,{at:m.concat(x),voids:!0}),x--;else if(Fo.isElement(S)){if(e.isInline(S)){if(B==null||!yr.isText(B)){var te={text:""};Vn.insertNodes(e,te,{at:m.concat(x),voids:!0}),x++}else if(W){var me={text:""};Vn.insertNodes(e,me,{at:m.concat(x+1),voids:!0}),x++}}}else B!=null&&yr.isText(B)&&(yr.equals(S,B,{loose:!0})?(Vn.mergeNodes(e,{at:m.concat(x),voids:!0}),x--):B.text===""?(Vn.removeNodes(e,{at:m.concat(x-1),voids:!0}),x--):S.text===""&&(Vn.removeNodes(e,{at:m.concat(x),voids:!0}),x--))}}}},removeMark:function(n){var c=e.selection;if(c)if(Qt.isExpanded(c))Vn.unsetNodes(e,n,{match:yr.isText,split:!0});else{var f=lg({},ce.marks(e)||{});delete f[n],e.marks=f,Lp.get(e)||e.onChange()}}};return e},T2=function(e){switch(e.type){case"insert_text":case"remove_text":case"set_node":{var t=e.path;return Be.levels(t)}case"insert_node":{var n=e.node,c=e.path,f=Be.levels(c),m=yr.isText(n)?[]:Array.from($n.nodes(n),function(kn){var At=Rt(kn,2),Wn=At[1];return c.concat(Wn)});return[].concat(Gd(f),Gd(m))}case"merge_node":{var P=e.path,_=Be.ancestors(P),x=Be.previous(P);return[].concat(Gd(_),[x])}case"move_node":{var O=e.path,k=e.newPath;if(Be.equals(O,k))return[];var S=[],B=[],W=cd(Be.ancestors(O)),re;try{for(W.s();!(re=W.n()).done;){var te=re.value,me=Be.transform(te,e);S.push(me)}}catch(kn){W.e(kn)}finally{W.f()}var ne=cd(Be.ancestors(k)),X;try{for(ne.s();!(X=ne.n()).done;){var q=X.value,Ee=Be.transform(q,e);B.push(Ee)}}catch(kn){ne.e(kn)}finally{ne.f()}var ye=B[B.length-1],Qe=k[k.length-1],qe=ye.concat(Qe);return[].concat(S,B,[qe])}case"remove_node":{var Ge=e.path,zt=Be.ancestors(Ge);return Gd(zt)}case"split_node":{var qt=e.path,tn=Be.levels(qt),an=Be.next(qt);return[].concat(Gd(tn),[an])}default:return[]}},u1=Cl(function(r){function e(t,n){if(t==null)return{};var c={},f=Object.keys(t),m,P;for(P=0;P<f.length;P++)m=f[P],!(n.indexOf(m)>=0)&&(c[m]=t[m]);return c}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0});Sl(u1);var B2=Cl(function(r){function e(t,n){if(t==null)return{};var c=u1(t,n),f,m;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(t);for(m=0;m<P.length;m++)f=P[m],!(n.indexOf(f)>=0)&&Object.prototype.propertyIsEnumerable.call(t,f)&&(c[f]=t[f])}return c}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0}),sf=Sl(B2);function F2(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=P2(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,c=function(){};return{s:c,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,m=!1,P;return{s:function(){t=t.call(r)},n:function(){var x=t.next();return f=x.done,x},e:function(x){m=!0,P=x},f:function(){try{!f&&t.return!=null&&t.return()}finally{if(m)throw P}}}}function P2(r,e){if(r){if(typeof r=="string")return s1(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s1(r,e)}}function s1(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var V0=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=!t,c=t?L2(e):e,f=Kr.None,m=Kr.None,P=0,_=null,x=null,O=F2(c),k;try{for(O.s();!(k=O.n()).done;){var S=k.value,B=S.codePointAt(0);if(!B)break;var W=Y2(S,B),re=n?[m,W]:[W,f],te=Rt(re,2);if(f=te[0],m=te[1],Kd(f,Kr.ZWJ)&&Kd(m,Kr.ExtPict)&&(n?_=l1(e.substring(0,P)):_=l1(e.substring(0,e.length-P)),!_)||Kd(f,Kr.RI)&&Kd(m,Kr.RI)&&(x!==null?x=!x:n?x=!0:x=tE(e.substring(0,e.length-P)),!x)||f!==Kr.None&&m!==Kr.None&&J2(f,m))break;P+=S.length}}catch(me){O.e(me)}finally{O.f()}return P||1},k2=/\s/,N2=/[\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]/,I2=/['\u2018\u2019]/,R2=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=0,c=!1;e.length>0;){var f=V0(e,t),m=W0(e,f,t),P=Rt(m,2),_=P[0],x=P[1];if(j2(_,x,t))c=!0,n+=f;else if(!c)n+=f;else break;e=x}return n},W0=function(e,t,n){if(n){var c=e.length-t;return[e.slice(c,e.length),e.slice(0,c)]}return[e.slice(0,t),e.slice(t)]},j2=function r(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(k2.test(e))return!1;if(I2.test(e)){var c=V0(t,n),f=W0(t,c,n),m=Rt(f,2),P=m[0],_=m[1];if(r(P,_,n))return!0}return!N2.test(e)},L2=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var c=e.charAt(t-n);if($2(c.charCodeAt(0))){var f=e.charAt(t-n-1);if(M2(f.charCodeAt(0))){yield f+c,n++;continue}}yield c}},M2=function(e){return e>=55296&&e<=56319},$2=function(e){return e>=56320&&e<=57343},Kr;(function(r){r[r.None=0]="None",r[r.Extend=1]="Extend",r[r.ZWJ=2]="ZWJ",r[r.RI=4]="RI",r[r.Prepend=8]="Prepend",r[r.SpacingMark=16]="SpacingMark",r[r.L=32]="L",r[r.V=64]="V",r[r.T=128]="T",r[r.LV=256]="LV",r[r.LVT=512]="LVT",r[r.ExtPict=1024]="ExtPict",r[r.Any=2048]="Any"})(Kr||(Kr={}));var z2=/^(?:[\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])$/,H2=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,U2=/^(?:[\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])$/,V2=/^[\u1100-\u115F\uA960-\uA97C]$/,W2=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,q2=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,G2=/^[\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]$/,K2=/^[\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]$/,X2=/^(?:[\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])$/,Y2=function(e,t){var n=Kr.Any;return e.search(z2)!==-1&&(n|=Kr.Extend),t===8205&&(n|=Kr.ZWJ),t>=127462&&t<=127487&&(n|=Kr.RI),e.search(H2)!==-1&&(n|=Kr.Prepend),e.search(U2)!==-1&&(n|=Kr.SpacingMark),e.search(V2)!==-1&&(n|=Kr.L),e.search(W2)!==-1&&(n|=Kr.V),e.search(q2)!==-1&&(n|=Kr.T),e.search(G2)!==-1&&(n|=Kr.LV),e.search(K2)!==-1&&(n|=Kr.LVT),e.search(X2)!==-1&&(n|=Kr.ExtPict),n};function Kd(r,e){return(r&e)!==0}var Z2=[[Kr.L,Kr.L|Kr.V|Kr.LV|Kr.LVT],[Kr.LV|Kr.V,Kr.V|Kr.T],[Kr.LVT|Kr.T,Kr.T],[Kr.Any,Kr.Extend|Kr.ZWJ],[Kr.Any,Kr.SpacingMark],[Kr.Prepend,Kr.Any],[Kr.ZWJ,Kr.ExtPict],[Kr.RI,Kr.RI]];function J2(r,e){return Z2.findIndex(function(t){return Kd(r,t[0])&&Kd(e,t[1])})===-1}var Q2=/(?:[\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$/,l1=function(e){return e.search(Q2)!==-1},eE=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,tE=function(e){var t=e.match(eE);if(t===null)return!1;var n=t[0].length/2;return n%2===1},c1=function(e){return As.isPlainObject(e)&&$n.isNodeList(e.children)&&!ce.isEditor(e)},Fo={isAncestor:function(e){return As.isPlainObject(e)&&$n.isNodeList(e.children)},isElement:c1,isElementList:function(e){return Array.isArray(e)&&e.every(function(t){return Fo.isElement(t)})},isElementProps:function(e){return e.children!==void 0},isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return c1(e)&&e[n]===t},matches:function(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},nE=["text"],rE=["text"];function f1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function Xd(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?f1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):f1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function lf(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=iE(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,c=function(){};return{s:c,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,m=!1,P;return{s:function(){t=t.call(r)},n:function(){var x=t.next();return f=x.done,x},e:function(x){m=!0,P=x},f:function(){try{!f&&t.return!=null&&t.return()}finally{if(m)throw P}}}}function iE(r,e){if(r){if(typeof r=="string")return d1(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d1(r,e)}}function d1(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var p1=new WeakMap,ce={above:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.voids,c=n===void 0?!1:n,f=t.mode,m=f===void 0?"lowest":f,P=t.at,_=P===void 0?e.selection:P,x=t.match;if(_){var O=ce.path(e,_),k=m==="lowest",S=lf(ce.levels(e,{at:O,voids:c,match:x,reverse:k})),B;try{for(S.s();!(B=S.n()).done;){var W=Rt(B.value,2),re=W[0],te=W[1];if(!yr.isText(re)&&!Be.equals(O,te))return[re,te]}}catch(me){S.e(me)}finally{S.f()}}},addMark:function(e,t,n){e.addMark(t,n)},after:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=ce.point(e,t,{edge:"end"}),f=ce.end(e,[]),m={anchor:c,focus:f},P=n.distance,_=P===void 0?1:P,x=0,O,k=lf(ce.positions(e,Xd(Xd({},n),{},{at:m}))),S;try{for(k.s();!(S=k.n()).done;){var B=S.value;if(x>_)break;x!==0&&(O=B),x++}}catch(W){k.e(W)}finally{k.f()}return O},before:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=ce.start(e,[]),f=ce.point(e,t,{edge:"start"}),m={anchor:c,focus:f},P=n.distance,_=P===void 0?1:P,x=0,O,k=lf(ce.positions(e,Xd(Xd({},n),{},{at:m,reverse:!0}))),S;try{for(k.s();!(S=k.n()).done;){var B=S.value;if(x>_)break;x!==0&&(O=B),x++}}catch(W){k.e(W)}finally{k.f()}return O},deleteBackward:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.unit,c=n===void 0?"character":n;e.deleteBackward(c)},deleteForward:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.unit,c=n===void 0?"character":n;e.deleteForward(c)},deleteFragment:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.direction,c=n===void 0?"forward":n;e.deleteFragment(c)},edges:function(e,t){return[ce.start(e,t),ce.end(e,t)]},end:function(e,t){return ce.point(e,t,{edge:"end"})},first:function(e,t){var n=ce.path(e,t,{edge:"start"});return ce.node(e,n)},fragment:function(e,t){var n=ce.range(e,t),c=$n.fragment(e,n);return c},hasBlocks:function(e,t){return t.children.some(function(n){return ce.isBlock(e,n)})},hasInlines:function(e,t){return t.children.some(function(n){return yr.isText(n)||ce.isInline(e,n)})},hasTexts:function(e,t){return t.children.every(function(n){return yr.isText(n)})},insertBreak:function(e){e.insertBreak()},insertFragment:function(e,t){e.insertFragment(t)},insertNode:function(e,t){e.insertNode(t)},insertText:function(e,t){e.insertText(t)},isBlock:function(e,t){return Fo.isElement(t)&&!e.isInline(t)},isEditor:function(e){if(!As.isPlainObject(e))return!1;var t=p1.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||As.isPlainObject(e.marks))&&(e.selection===null||Qt.isRange(e.selection))&&$n.isNodeList(e.children)&&Zd.isOperationList(e.operations);return p1.set(e,n),n},isEnd:function(e,t,n){var c=ce.end(e,n);return Ni.equals(t,c)},isEdge:function(e,t,n){return ce.isStart(e,t,n)||ce.isEnd(e,t,n)},isEmpty:function(e,t){var n=t.children,c=Rt(n,1),f=c[0];return n.length===0||n.length===1&&yr.isText(f)&&f.text===""&&!e.isVoid(t)},isInline:function(e,t){return Fo.isElement(t)&&e.isInline(t)},isNormalizing:function(e){var t=t1.get(e);return t===void 0?!0:t},isStart:function(e,t,n){if(t.offset!==0)return!1;var c=ce.start(e,n);return Ni.equals(t,c)},isVoid:function(e,t){return Fo.isElement(t)&&e.isVoid(t)},last:function(e,t){var n=ce.path(e,t,{edge:"end"});return ce.node(e,n)},leaf:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=ce.path(e,t,n),f=$n.leaf(e,c);return[f,c]},levels:function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.at,c=n===void 0?e.selection:n,f=t.reverse,m=f===void 0?!1:f,P=t.voids,_=P===void 0?!1:P,x=t.match;if(x==null&&(x=function(){return!0}),!!c){var O=[],k=ce.path(e,c),S=lf($n.levels(e,k)),B;try{for(S.s();!(B=S.n()).done;){var W=Rt(B.value,2),re=W[0],te=W[1];if(x(re,te)&&(O.push([re,te]),!_&&ce.isVoid(e,re)))break}}catch(me){S.e(me)}finally{S.f()}m&&O.reverse(),yield*O}},marks:function(e){var t=e.marks,n=e.selection;if(!n)return null;if(t)return t;if(Qt.isExpanded(n)){var c=ce.nodes(e,{match:yr.isText}),f=Rt(c,1),m=f[0];if(m){var P=Rt(m,1),_=P[0];_.text;var x=sf(_,nE);return x}else return{}}var O=n.anchor,k=O.path,S=ce.leaf(e,k),B=Rt(S,1),W=B[0];if(O.offset===0){var re=ce.previous(e,{at:k,match:yr.isText}),te=ce.above(e,{match:function(Ge){return ce.isBlock(e,Ge)}});if(re&&te){var me=Rt(re,2),ne=me[0],X=me[1],q=Rt(te,2),Ee=q[1];Be.isAncestor(Ee,X)&&(W=ne)}}var ye=W;ye.text;var Qe=sf(ye,rE);return Qe},next:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.mode,c=n===void 0?"lowest":n,f=t.voids,m=f===void 0?!1:f,P=t.match,_=t.at,x=_===void 0?e.selection:_;if(x){var O=ce.after(e,x,{voids:m});if(O){var k=ce.last(e,[]),S=Rt(k,2),B=S[1],W=[O.path,B];if(Be.isPath(x)&&x.length===0)throw new Error("Cannot get the next node from the root node!");if(P==null)if(Be.isPath(x)){var re=ce.parent(e,x),te=Rt(re,1),me=te[0];P=function(ye){return me.children.includes(ye)}}else P=function(){return!0};var ne=ce.nodes(e,{at:W,match:P,mode:c,voids:m}),X=Rt(ne,1),q=X[0];return q}}},node:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=ce.path(e,t,n),f=$n.get(e,c);return[f,c]},nodes:function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.at,c=n===void 0?e.selection:n,f=t.mode,m=f===void 0?"all":f,P=t.universal,_=P===void 0?!1:P,x=t.reverse,O=x===void 0?!1:x,k=t.voids,S=k===void 0?!1:k,B=t.match;if(B||(B=function(){return!0}),!!c){var W,re;if(h1.isSpan(c))W=c[0],re=c[1];else{var te=ce.path(e,c,{edge:"start"}),me=ce.path(e,c,{edge:"end"});W=O?me:te,re=O?te:me}var ne=$n.nodes(e,{reverse:O,from:W,to:re,pass:function(an){var kn=Rt(an,1),At=kn[0];return S?!1:ce.isVoid(e,At)}}),X=[],q,Ee=lf(ne),ye;try{for(Ee.s();!(ye=Ee.n()).done;){var Qe=Rt(ye.value,2),qe=Qe[0],Ge=Qe[1],zt=q&&Be.compare(Ge,q[1])===0;if(!(m==="highest"&&zt)){if(!B(qe,Ge)){if(_&&!zt&&yr.isText(qe))return;continue}if(m==="lowest"&&zt){q=[qe,Ge];continue}var qt=m==="lowest"?q:[qe,Ge];qt&&(_?X.push(qt):yield qt),q=[qe,Ge]}}}catch(tn){Ee.e(tn)}finally{Ee.f()}m==="lowest"&&q&&(_?X.push(q):yield q),_&&(yield*X)}},normalize:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.force,c=n===void 0?!1:n,f=function(_){return sg.get(_)||[]};if(ce.isNormalizing(e)){if(c){var m=Array.from($n.nodes(e),function(P){var _=Rt(P,2),x=_[1];return x});sg.set(e,m)}f(e).length!==0&&ce.withoutNormalizing(e,function(){var P=lf(f(e)),_;try{for(P.s();!(_=P.n()).done;){var x=_.value;if($n.has(e,x)){var O=ce.node(e,x),k=Rt(O,2),S=k[0],B=k[1];Fo.isElement(S)&&S.children.length===0&&e.normalizeNode(O)}}}catch(ne){P.e(ne)}finally{P.f()}for(var W=f(e).length*42,re=0;f(e).length!==0;){if(re>W)throw new Error(`
Could not completely normalize the editor after `.concat(W,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`));var te=f(e).pop();if($n.has(e,te)){var me=ce.node(e,te);e.normalizeNode(me)}re++}})}},parent:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=ce.path(e,t,n),f=Be.parent(c),m=ce.node(e,f);return m},path:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.depth,f=n.edge;if(Be.isPath(t)){if(f==="start"){var m=$n.first(e,t),P=Rt(m,2),_=P[1];t=_}else if(f==="end"){var x=$n.last(e,t),O=Rt(x,2),k=O[1];t=k}}return Qt.isRange(t)&&(f==="start"?t=Qt.start(t):f==="end"?t=Qt.end(t):t=Be.common(t.anchor.path,t.focus.path)),Ni.isPoint(t)&&(t=t.path),c!=null&&(t=t.slice(0,c)),t},hasPath:function(e,t){return $n.has(e,t)},pathRef:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.affinity,f=c===void 0?"forward":c,m={current:t,affinity:f,unref:function(){var x=m.current,O=ce.pathRefs(e);return O.delete(m),m.current=null,x}},P=ce.pathRefs(e);return P.add(m),m},pathRefs:function(e){var t=n1.get(e);return t||(t=new Set,n1.set(e,t)),t},point:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.edge,f=c===void 0?"start":c;if(Be.isPath(t)){var m;if(f==="end"){var P=$n.last(e,t),_=Rt(P,2),x=_[1];m=x}else{var O=$n.first(e,t),k=Rt(O,2),S=k[1];m=S}var B=$n.get(e,m);if(!yr.isText(B))throw new Error("Cannot get the ".concat(f," point in the node at path [").concat(t,"] because it has no ").concat(f," text node."));return{path:m,offset:f==="end"?B.text.length:0}}if(Qt.isRange(t)){var W=Qt.edges(t),re=Rt(W,2),te=re[0],me=re[1];return f==="start"?te:me}return t},pointRef:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.affinity,f=c===void 0?"forward":c,m={current:t,affinity:f,unref:function(){var x=m.current,O=ce.pointRefs(e);return O.delete(m),m.current=null,x}},P=ce.pointRefs(e);return P.add(m),m},pointRefs:function(e){var t=r1.get(e);return t||(t=new Set,r1.set(e,t)),t},positions:function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.at,c=n===void 0?e.selection:n,f=t.unit,m=f===void 0?"offset":f,P=t.reverse,_=P===void 0?!1:P,x=t.voids,O=x===void 0?!1:x;if(!c)return;var k=ce.range(e,c),S=Qt.edges(k),B=Rt(S,2),W=B[0],re=B[1],te=_?re:W,me=!1,ne="",X=0,q=0,Ee=0,ye=lf(ce.nodes(e,{at:c,reverse:_,voids:O})),Qe;try{for(ye.s();!(Qe=ye.n()).done;){var qe=Rt(Qe.value,2),Ge=qe[0],zt=qe[1];if(Fo.isElement(Ge)){if(!O&&e.isVoid(Ge)){yield ce.start(e,zt);continue}if(e.isInline(Ge))continue;if(ce.hasInlines(e,Ge)){var qt=Be.isAncestor(zt,re.path)?re:ce.end(e,zt),tn=Be.isAncestor(zt,W.path)?W:ce.start(e,zt);ne=ce.string(e,{anchor:tn,focus:qt},{voids:O}),me=!0}}if(yr.isText(Ge)){var an=Be.equals(zt,te.path);for(an?(q=_?te.offset:Ge.text.length-te.offset,Ee=te.offset):(q=Ge.text.length,Ee=_?q:0),(an||me||m==="offset")&&(yield{path:zt,offset:Ee},me=!1);;){if(X===0){if(ne==="")break;X=kn(ne,m,_),ne=W0(ne,X,_)[1]}if(Ee=_?Ee-X:Ee+X,q=q-X,q<0){X=-q;break}X=0,yield{path:zt,offset:Ee}}}}}catch(At){ye.e(At)}finally{ye.f()}function kn(At,Wn,Ae){return Wn==="character"?V0(At,Ae):Wn==="word"?R2(At,Ae):Wn==="line"||Wn==="block"?At.length:1}},previous:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.mode,c=n===void 0?"lowest":n,f=t.voids,m=f===void 0?!1:f,P=t.match,_=t.at,x=_===void 0?e.selection:_;if(x){var O=ce.before(e,x,{voids:m});if(O){var k=ce.first(e,[]),S=Rt(k,2),B=S[1],W=[O.path,B];if(Be.isPath(x)&&x.length===0)throw new Error("Cannot get the previous node from the root node!");if(P==null)if(Be.isPath(x)){var re=ce.parent(e,x),te=Rt(re,1),me=te[0];P=function(ye){return me.children.includes(ye)}}else P=function(){return!0};var ne=ce.nodes(e,{reverse:!0,at:W,match:P,mode:c,voids:m}),X=Rt(ne,1),q=X[0];return q}}},range:function(e,t,n){if(Qt.isRange(t)&&!n)return t;var c=ce.start(e,t),f=ce.end(e,n||t);return{anchor:c,focus:f}},rangeRef:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.affinity,f=c===void 0?"forward":c,m={current:t,affinity:f,unref:function(){var x=m.current,O=ce.rangeRefs(e);return O.delete(m),m.current=null,x}},P=ce.rangeRefs(e);return P.add(m),m},rangeRefs:function(e){var t=i1.get(e);return t||(t=new Set,i1.set(e,t)),t},removeMark:function(e,t){e.removeMark(t)},setNormalizing:function(e,t){t1.set(e,t)},start:function(e,t){return ce.point(e,t,{edge:"start"})},string:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.voids,f=c===void 0?!1:c,m=ce.range(e,t),P=Qt.edges(m),_=Rt(P,2),x=_[0],O=_[1],k="",S=lf(ce.nodes(e,{at:m,match:yr.isText,voids:f})),B;try{for(S.s();!(B=S.n()).done;){var W=Rt(B.value,2),re=W[0],te=W[1],me=re.text;Be.equals(te,O.path)&&(me=me.slice(0,O.offset)),Be.equals(te,x.path)&&(me=me.slice(x.offset)),k+=me}}catch(ne){S.e(ne)}finally{S.f()}return k},unhangRange:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.voids,f=c===void 0?!1:c,m=Qt.edges(t),P=Rt(m,2),_=P[0],x=P[1];if(_.offset!==0||x.offset!==0||Qt.isCollapsed(t))return t;var O=ce.above(e,{at:x,match:function(Ee){return ce.isBlock(e,Ee)}}),k=O?O[1]:[],S=ce.start(e,[]),B={anchor:S,focus:x},W=!0,re=lf(ce.nodes(e,{at:B,match:yr.isText,reverse:!0,voids:f})),te;try{for(re.s();!(te=re.n()).done;){var me=Rt(te.value,2),ne=me[0],X=me[1];if(W){W=!1;continue}if(ne.text!==""||Be.isBefore(X,k)){x={path:X,offset:ne.text.length};break}}}catch(q){re.e(q)}finally{re.f()}return{anchor:_,focus:x}},void:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ce.above(e,Xd(Xd({},t),{},{match:function(c){return ce.isVoid(e,c)}}))},withoutNormalizing:function(e,t){var n=ce.isNormalizing(e);ce.setNormalizing(e,!1);try{t()}finally{ce.setNormalizing(e,n)}ce.normalize(e)}},oE={isLocation:function(e){return Be.isPath(e)||Ni.isPoint(e)||Qt.isRange(e)}},h1={isSpan:function(e){return Array.isArray(e)&&e.length===2&&e.every(Be.isPath)}},aE=["children"],uE=["text"];function Yd(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=sE(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,c=function(){};return{s:c,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,m=!1,P;return{s:function(){t=t.call(r)},n:function(){var x=t.next();return f=x.done,x},e:function(x){m=!0,P=x},f:function(){try{!f&&t.return!=null&&t.return()}finally{if(m)throw P}}}}function sE(r,e){if(r){if(typeof r=="string")return g1(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g1(r,e)}}function g1(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var v1=new WeakMap,$n={ancestor:function(e,t){var n=$n.get(e,t);if(yr.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:function*(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=Yd(Be.ancestors(t,n)),f;try{for(c.s();!(f=c.n()).done;){var m=f.value,P=$n.ancestor(e,m),_=[P,m];yield _}}catch(x){c.e(x)}finally{c.f()}},child:function(e,t){if(yr.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:function*(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.reverse,f=c===void 0?!1:c,m=$n.ancestor(e,t),P=m.children,_=f?P.length-1:0;f?_>=0:_<P.length;){var x=$n.child(m,_),O=t.concat(_);yield[x,O],_=f?_-1:_+1}},common:function(e,t,n){var c=Be.common(t,n),f=$n.get(e,c);return[f,c]},descendant:function(e,t){var n=$n.get(e,t);if(ce.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:function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Yd($n.nodes(e,t)),c;try{for(n.s();!(c=n.n()).done;){var f=Rt(c.value,2),m=f[0],P=f[1];P.length!==0&&(yield[m,P])}}catch(_){n.e(_)}finally{n.f()}},elements:function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Yd($n.nodes(e,t)),c;try{for(n.s();!(c=n.n()).done;){var f=Rt(c.value,2),m=f[0],P=f[1];Fo.isElement(m)&&(yield[m,P])}}catch(_){n.e(_)}finally{n.f()}},extractProps:function(e){if(Fo.isAncestor(e)){e.children;var t=sf(e,aE);return t}else{e.text;var n=sf(e,uE);return n}},first:function(e,t){for(var n=t.slice(),c=$n.get(e,n);c&&!(yr.isText(c)||c.children.length===0);)c=c.children[0],n.push(0);return[c,n]},fragment:function(e,t){if(yr.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=uf.produce({children:e.children},function(c){var f=Qt.edges(t),m=Rt(f,2),P=m[0],_=m[1],x=$n.nodes(c,{reverse:!0,pass:function(X){var q=Rt(X,2),Ee=q[1];return!Qt.includes(t,Ee)}}),O=Yd(x),k;try{for(O.s();!(k=O.n()).done;){var S=Rt(k.value,2),B=S[1];if(!Qt.includes(t,B)){var W=$n.parent(c,B),re=B[B.length-1];W.children.splice(re,1)}if(Be.equals(B,_.path)){var te=$n.leaf(c,B);te.text=te.text.slice(0,_.offset)}if(Be.equals(B,P.path)){var me=$n.leaf(c,B);me.text=me.text.slice(P.offset)}}}catch(ne){O.e(ne)}finally{O.f()}ce.isEditor(c)&&(c.selection=null)});return n.children},get:function(e,t){for(var n=e,c=0;c<t.length;c++){var f=t[c];if(yr.isText(n)||!n.children[f])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[f]}return n},has:function(e,t){for(var n=e,c=0;c<t.length;c++){var f=t[c];if(yr.isText(n)||!n.children[f])return!1;n=n.children[f]}return!0},isNode:function(e){return yr.isText(e)||Fo.isElement(e)||ce.isEditor(e)},isNodeList:function(e){if(!Array.isArray(e))return!1;var t=v1.get(e);if(t!==void 0)return t;var n=e.every(function(c){return $n.isNode(c)});return v1.set(e,n),n},last:function(e,t){for(var n=t.slice(),c=$n.get(e,n);c&&!(yr.isText(c)||c.children.length===0);){var f=c.children.length-1;c=c.children[f],n.push(f)}return[c,n]},leaf:function(e,t){var n=$n.get(e,t);if(!yr.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:function*(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=Yd(Be.levels(t,n)),f;try{for(c.s();!(f=c.n()).done;){var m=f.value,P=$n.get(e,m);yield[P,m]}}catch(_){c.e(_)}finally{c.f()}},matches:function(e,t){return Fo.isElement(e)&&Fo.isElementProps(t)&&Fo.matches(e,t)||yr.isText(e)&&yr.isTextProps(t)&&yr.matches(e,t)},nodes:function*(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.pass,c=t.reverse,f=c===void 0?!1:c,m=t.from,P=m===void 0?[]:m,_=t.to,x=new Set,O=[],k=e;!(_&&(f?Be.isBefore(O,_):Be.isAfter(O,_)));){if(x.has(k)||(yield[k,O]),!x.has(k)&&!yr.isText(k)&&k.children.length!==0&&(n==null||n([k,O])===!1)){x.add(k);var S=f?k.children.length-1:0;Be.isAncestor(O,P)&&(S=P[O.length]),O=O.concat(S),k=$n.get(e,O);continue}if(O.length===0)break;if(!f){var B=Be.next(O);if($n.has(e,B)){O=B,k=$n.get(e,O);continue}}if(f&&O[O.length-1]!==0){var W=Be.previous(O);O=W,k=$n.get(e,O);continue}O=Be.parent(O),k=$n.get(e,O),x.add(k)}},parent:function(e,t){var n=Be.parent(t),c=$n.get(e,n);if(yr.isText(c))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return c},string:function(e){return yr.isText(e)?e.text:e.children.map($n.string).join("")},texts:function*(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Yd($n.nodes(e,t)),c;try{for(n.s();!(c=n.n()).done;){var f=Rt(c.value,2),m=f[0],P=f[1];yr.isText(m)&&(yield[m,P])}}catch(_){n.e(_)}finally{n.f()}}};function m1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function da(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?m1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):m1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var Zd={isNodeOperation:function(e){return Zd.isOperation(e)&&e.type.endsWith("_node")},isOperation:function(e){if(!As.isPlainObject(e))return!1;switch(e.type){case"insert_node":return Be.isPath(e.path)&&$n.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&Be.isPath(e.path);case"merge_node":return typeof e.position=="number"&&Be.isPath(e.path)&&As.isPlainObject(e.properties);case"move_node":return Be.isPath(e.path)&&Be.isPath(e.newPath);case"remove_node":return Be.isPath(e.path)&&$n.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&Be.isPath(e.path);case"set_node":return Be.isPath(e.path)&&As.isPlainObject(e.properties)&&As.isPlainObject(e.newProperties);case"set_selection":return e.properties===null&&Qt.isRange(e.newProperties)||e.newProperties===null&&Qt.isRange(e.properties)||As.isPlainObject(e.properties)&&As.isPlainObject(e.newProperties);case"split_node":return Be.isPath(e.path)&&typeof e.position=="number"&&As.isPlainObject(e.properties);default:return!1}},isOperationList:function(e){return Array.isArray(e)&&e.every(function(t){return Zd.isOperation(t)})},isSelectionOperation:function(e){return Zd.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation:function(e){return Zd.isOperation(e)&&e.type.endsWith("_text")},inverse:function(e){switch(e.type){case"insert_node":return da(da({},e),{},{type:"remove_node"});case"insert_text":return da(da({},e),{},{type:"remove_text"});case"merge_node":return da(da({},e),{},{type:"split_node",path:Be.previous(e.path)});case"move_node":{var t=e.newPath,n=e.path;if(Be.equals(t,n))return e;if(Be.isSibling(n,t))return da(da({},e),{},{path:t,newPath:n});var c=Be.transform(n,e),f=Be.transform(Be.next(n),e);return da(da({},e),{},{path:c,newPath:f})}case"remove_node":return da(da({},e),{},{type:"insert_node"});case"remove_text":return da(da({},e),{},{type:"insert_text"});case"set_node":{var m=e.properties,P=e.newProperties;return da(da({},e),{},{properties:P,newProperties:m})}case"set_selection":{var _=e.properties,x=e.newProperties;return _==null?da(da({},e),{},{properties:x,newProperties:null}):x==null?da(da({},e),{},{properties:null,newProperties:_}):da(da({},e),{},{properties:x,newProperties:_})}case"split_node":return da(da({},e),{},{type:"merge_node",path:Be.next(e.path)})}}},Be={ancestors:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.reverse,c=n===void 0?!1:n,f=Be.levels(e,t);return c?f=f.slice(1):f=f.slice(0,-1),f},common:function(e,t){for(var n=[],c=0;c<e.length&&c<t.length;c++){var f=e[c],m=t[c];if(f!==m)break;n.push(f)}return n},compare:function(e,t){for(var n=Math.min(e.length,t.length),c=0;c<n;c++){if(e[c]<t[c])return-1;if(e[c]>t[c])return 1}return 0},endsAfter:function(e,t){var n=e.length-1,c=e.slice(0,n),f=t.slice(0,n),m=e[n],P=t[n];return Be.equals(c,f)&&m>P},endsAt:function(e,t){var n=e.length,c=e.slice(0,n),f=t.slice(0,n);return Be.equals(c,f)},endsBefore:function(e,t){var n=e.length-1,c=e.slice(0,n),f=t.slice(0,n),m=e[n],P=t[n];return Be.equals(c,f)&&m<P},equals:function(e,t){return e.length===t.length&&e.every(function(n,c){return n===t[c]})},hasPrevious:function(e){return e[e.length-1]>0},isAfter:function(e,t){return Be.compare(e,t)===1},isAncestor:function(e,t){return e.length<t.length&&Be.compare(e,t)===0},isBefore:function(e,t){return Be.compare(e,t)===-1},isChild:function(e,t){return e.length===t.length+1&&Be.compare(e,t)===0},isCommon:function(e,t){return e.length<=t.length&&Be.compare(e,t)===0},isDescendant:function(e,t){return e.length>t.length&&Be.compare(e,t)===0},isParent:function(e,t){return e.length+1===t.length&&Be.compare(e,t)===0},isPath:function(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling:function(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),c=t.slice(0,-1),f=e[e.length-1],m=t[t.length-1];return f!==m&&Be.equals(n,c)},levels:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.reverse,c=n===void 0?!1:n,f=[],m=0;m<=e.length;m++)f.push(e.slice(0,m));return c&&f.reverse(),f},next:function(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:function(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:function(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:function(e,t){if(!Be.isAncestor(t,e)&&!Be.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:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return uf.produce(e,function(c){var f=n.affinity,m=f===void 0?"forward":f;if(!(!e||(e==null?void 0:e.length)===0)){if(c===null)return null;switch(t.type){case"insert_node":{var P=t.path;(Be.equals(P,c)||Be.endsBefore(P,c)||Be.isAncestor(P,c))&&(c[P.length-1]+=1);break}case"remove_node":{var _=t.path;if(Be.equals(_,c)||Be.isAncestor(_,c))return null;Be.endsBefore(_,c)&&(c[_.length-1]-=1);break}case"merge_node":{var x=t.path,O=t.position;Be.equals(x,c)||Be.endsBefore(x,c)?c[x.length-1]-=1:Be.isAncestor(x,c)&&(c[x.length-1]-=1,c[x.length]+=O);break}case"split_node":{var k=t.path,S=t.position;if(Be.equals(k,c)){if(m==="forward")c[c.length-1]+=1;else if(m!=="backward")return null}else Be.endsBefore(k,c)?c[k.length-1]+=1:Be.isAncestor(k,c)&&e[k.length]>=S&&(c[k.length-1]+=1,c[k.length]-=S);break}case"move_node":{var B=t.path,W=t.newPath;if(Be.equals(B,W))return;if(Be.isAncestor(B,c)||Be.equals(B,c)){var re=W.slice();return Be.endsBefore(B,W)&&B.length<W.length&&(re[B.length-1]-=1),re.concat(c.slice(B.length))}else Be.isSibling(B,W)&&(Be.isAncestor(W,c)||Be.equals(W,c))?Be.endsBefore(B,c)?c[B.length-1]-=1:c[B.length-1]+=1:Be.endsBefore(W,c)||Be.equals(W,c)||Be.isAncestor(W,c)?(Be.endsBefore(B,c)&&(c[B.length-1]-=1),c[W.length-1]+=1):Be.endsBefore(B,c)&&(Be.equals(W,c)&&(c[W.length-1]+=1),c[B.length-1]-=1);break}}}})}},y1={transform:function(e,t){var n=e.current,c=e.affinity;if(n!=null){var f=Be.transform(n,t,{affinity:c});e.current=f,f==null&&e.unref()}}};function b1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function E1(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?b1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):b1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var Ni={compare:function(e,t){var n=Be.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:function(e,t){return Ni.compare(e,t)===1},isBefore:function(e,t){return Ni.compare(e,t)===-1},equals:function(e,t){return e.offset===t.offset&&Be.equals(e.path,t.path)},isPoint:function(e){return As.isPlainObject(e)&&typeof e.offset=="number"&&Be.isPath(e.path)},transform:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return uf.produce(e,function(c){if(c===null)return null;var f=n.affinity,m=f===void 0?"forward":f,P=c.path,_=c.offset;switch(t.type){case"insert_node":case"move_node":{c.path=Be.transform(P,t,n);break}case"insert_text":{Be.equals(t.path,P)&&t.offset<=_&&(c.offset+=t.text.length);break}case"merge_node":{Be.equals(t.path,P)&&(c.offset+=t.position),c.path=Be.transform(P,t,n);break}case"remove_text":{Be.equals(t.path,P)&&t.offset<=_&&(c.offset-=Math.min(_-t.offset,t.text.length));break}case"remove_node":{if(Be.equals(t.path,P)||Be.isAncestor(t.path,P))return null;c.path=Be.transform(P,t,n);break}case"split_node":{if(Be.equals(t.path,P)){if(t.position===_&&m==null)return null;(t.position<_||t.position===_&&m==="forward")&&(c.offset-=t.position,c.path=Be.transform(P,t,E1(E1({},n),{},{affinity:"forward"})))}else c.path=Be.transform(P,t,n);break}}})}},w1={transform:function(e,t){var n=e.current,c=e.affinity;if(n!=null){var f=Ni.transform(n,t,{affinity:c});e.current=f,f==null&&e.unref()}}},lE=["anchor","focus"];function x1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function cE(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?x1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):x1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var Qt={edges:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.reverse,c=n===void 0?!1:n,f=e.anchor,m=e.focus;return Qt.isBackward(e)===c?[f,m]:[m,f]},end:function(e){var t=Qt.edges(e),n=Rt(t,2),c=n[1];return c},equals:function(e,t){return Ni.equals(e.anchor,t.anchor)&&Ni.equals(e.focus,t.focus)},includes:function(e,t){if(Qt.isRange(t)){if(Qt.includes(e,t.anchor)||Qt.includes(e,t.focus))return!0;var n=Qt.edges(e),c=Rt(n,2),f=c[0],m=c[1],P=Qt.edges(t),_=Rt(P,2),x=_[0],O=_[1];return Ni.isBefore(f,x)&&Ni.isAfter(m,O)}var k=Qt.edges(e),S=Rt(k,2),B=S[0],W=S[1],re=!1,te=!1;return Ni.isPoint(t)?(re=Ni.compare(t,B)>=0,te=Ni.compare(t,W)<=0):(re=Be.compare(t,B.path)>=0,te=Be.compare(t,W.path)<=0),re&&te},intersection:function(e,t){e.anchor,e.focus;var n=sf(e,lE),c=Qt.edges(e),f=Rt(c,2),m=f[0],P=f[1],_=Qt.edges(t),x=Rt(_,2),O=x[0],k=x[1],S=Ni.isBefore(m,O)?O:m,B=Ni.isBefore(P,k)?P:k;return Ni.isBefore(B,S)?null:cE({anchor:S,focus:B},n)},isBackward:function(e){var t=e.anchor,n=e.focus;return Ni.isAfter(t,n)},isCollapsed:function(e){var t=e.anchor,n=e.focus;return Ni.equals(t,n)},isExpanded:function(e){return!Qt.isCollapsed(e)},isForward:function(e){return!Qt.isBackward(e)},isRange:function(e){return As.isPlainObject(e)&&Ni.isPoint(e.anchor)&&Ni.isPoint(e.focus)},points:function*(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start:function(e){var t=Qt.edges(e),n=Rt(t,1),c=n[0];return c},transform:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return uf.produce(e,function(c){if(c===null)return null;var f=n.affinity,m=f===void 0?"inward":f,P,_;if(m==="inward"){var x=Qt.isCollapsed(c);Qt.isForward(c)?(P="forward",_=x?P:"backward"):(P="backward",_=x?P:"forward")}else m==="outward"?Qt.isForward(c)?(P="backward",_="forward"):(P="forward",_="backward"):(P=m,_=m);var O=Ni.transform(c.anchor,t,{affinity:P}),k=Ni.transform(c.focus,t,{affinity:_});if(!O||!k)return null;c.anchor=O,c.focus=k})}},D1={transform:function(e,t){var n=e.current,c=e.affinity;if(n!=null){var f=Qt.transform(n,t,{affinity:c});e.current=f,f==null&&e.unref()}}},fE=function r(e,t){for(var n in e){var c=e[n],f=t[n];if(As.isPlainObject(c)&&As.isPlainObject(f)){if(!r(c,f))return!1}else if(Array.isArray(c)&&Array.isArray(f)){if(c.length!==f.length)return!1;for(var m=0;m<c.length;m++)if(c[m]!==f[m])return!1}else if(c!==f)return!1}for(var P in t)if(e[P]===void 0&&t[P]!==void 0)return!1;return!0},dE=["text"],pE=["anchor","focus"];function S1(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=hE(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,c=function(){};return{s:c,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,m=!1,P;return{s:function(){t=t.call(r)},n:function(){var x=t.next();return f=x.done,x},e:function(x){m=!0,P=x},f:function(){try{!f&&t.return!=null&&t.return()}finally{if(m)throw P}}}}function hE(r,e){if(r){if(typeof r=="string")return C1(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C1(r,e)}}function C1(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function A1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function cf(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?A1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):A1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var yr={equals:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=n.loose,f=c===void 0?!1:c;function m(P){P.text;var _=sf(P,dE);return _}return fE(f?m(e):e,f?m(t):t)},isText:function(e){return As.isPlainObject(e)&&typeof e.text=="string"},isTextList:function(e){return Array.isArray(e)&&e.every(function(t){return yr.isText(t)})},isTextProps:function(e){return e.text!==void 0},matches:function(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations:function(e,t){var n=[cf({},e)],c=S1(t),f;try{for(c.s();!(f=c.n()).done;){var m=f.value,P=m.anchor,_=m.focus,x=sf(m,pE),O=Qt.edges(m),k=Rt(O,2),S=k[0],B=k[1],W=[],re=0,te=S1(n),me;try{for(te.s();!(me=te.n()).done;){var ne=me.value,X=ne.text.length,q=re;if(re+=X,S.offset<=q&&B.offset>=re){Object.assign(ne,x),W.push(ne);continue}if(S.offset!==B.offset&&(S.offset===re||B.offset===q)||S.offset>re||B.offset<q||B.offset===q&&q!==0){W.push(ne);continue}var Ee=ne,ye=void 0,Qe=void 0;if(B.offset<re){var qe=B.offset-q;Qe=cf(cf({},Ee),{},{text:Ee.text.slice(qe)}),Ee=cf(cf({},Ee),{},{text:Ee.text.slice(0,qe)})}if(S.offset>q){var Ge=S.offset-q;ye=cf(cf({},Ee),{},{text:Ee.text.slice(0,Ge)}),Ee=cf(cf({},Ee),{},{text:Ee.text.slice(Ge)})}Object.assign(Ee,x),ye&&W.push(ye),W.push(Ee),Qe&&W.push(Qe)}}catch(zt){te.e(zt)}finally{te.f()}n=W}}catch(zt){c.e(zt)}finally{c.f()}return n}};function _1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function Mp(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):_1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Lf(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=gE(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,c=function(){};return{s:c,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,m=!1,P;return{s:function(){t=t.call(r)},n:function(){var x=t.next();return f=x.done,x},e:function(x){m=!0,P=x},f:function(){try{!f&&t.return!=null&&t.return()}finally{if(m)throw P}}}}function gE(r,e){if(r){if(typeof r=="string")return O1(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return O1(r,e)}}function O1(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var vE=function(e,t,n){switch(n.type){case"insert_node":{var c=n.path,f=n.node,m=$n.parent(e,c),P=c[c.length-1];if(P>m.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(c,"] because the destination is past the end of the node."));if(m.children.splice(P,0,f),t){var _=Lf(Qt.points(t)),x;try{for(_.s();!(x=_.n()).done;){var O=Rt(x.value,2),k=O[0],S=O[1];t[S]=Ni.transform(k,n)}}catch(Qr){_.e(Qr)}finally{_.f()}}break}case"insert_text":{var B=n.path,W=n.offset,re=n.text;if(re.length===0)break;var te=$n.leaf(e,B),me=te.text.slice(0,W),ne=te.text.slice(W);if(te.text=me+re+ne,t){var X=Lf(Qt.points(t)),q;try{for(X.s();!(q=X.n()).done;){var Ee=Rt(q.value,2),ye=Ee[0],Qe=Ee[1];t[Qe]=Ni.transform(ye,n)}}catch(Qr){X.e(Qr)}finally{X.f()}}break}case"merge_node":{var qe=n.path,Ge=$n.get(e,qe),zt=Be.previous(qe),qt=$n.get(e,zt),tn=$n.parent(e,qe),an=qe[qe.length-1];if(yr.isText(Ge)&&yr.isText(qt))qt.text+=Ge.text;else if(!yr.isText(Ge)&&!yr.isText(qt)){var kn;(kn=qt.children).push.apply(kn,Gd(Ge.children))}else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(qe,"] to nodes of different interfaces: ").concat(Ge," ").concat(qt));if(tn.children.splice(an,1),t){var At=Lf(Qt.points(t)),Wn;try{for(At.s();!(Wn=At.n()).done;){var Ae=Rt(Wn.value,2),Dt=Ae[0],hn=Ae[1];t[hn]=Ni.transform(Dt,n)}}catch(Qr){At.e(Qr)}finally{At.f()}}break}case"move_node":{var Ot=n.path,Sn=n.newPath;if(Be.isAncestor(Ot,Sn))throw new Error("Cannot move a path [".concat(Ot,"] to new path [").concat(Sn,"] because the destination is inside itself."));var be=$n.get(e,Ot),de=$n.parent(e,Ot),xe=Ot[Ot.length-1];de.children.splice(xe,1);var Ie=Be.transform(Ot,n),Ye=$n.get(e,Be.parent(Ie)),oe=Ie[Ie.length-1];if(Ye.children.splice(oe,0,be),t){var ht=Lf(Qt.points(t)),Gt;try{for(ht.s();!(Gt=ht.n()).done;){var xn=Rt(Gt.value,2),bn=xn[0],at=xn[1];t[at]=Ni.transform(bn,n)}}catch(Qr){ht.e(Qr)}finally{ht.f()}}break}case"remove_node":{var un=n.path,Cn=un[un.length-1],Xt=$n.parent(e,un);if(Xt.children.splice(Cn,1),t){var Bn=Lf(Qt.points(t)),er;try{for(Bn.s();!(er=Bn.n()).done;){var $t=Rt(er.value,2),zn=$t[0],Pr=$t[1],Mr=Ni.transform(zn,n);if(t!=null&&Mr!=null)t[Pr]=Mr;else{var qn=void 0,Nn=void 0,Nr=Lf($n.texts(e)),jn;try{for(Nr.s();!(jn=Nr.n()).done;){var br=Rt(jn.value,2),Ut=br[0],fr=br[1];if(Be.compare(fr,un)===-1)qn=[Ut,fr];else{Nn=[Ut,fr];break}}}catch(Qr){Nr.e(Qr)}finally{Nr.f()}var fi=!1;qn&&Nn&&(Be.equals(Nn[1],un)?fi=!Be.hasPrevious(Nn[1]):fi=Be.common(qn[1],un).length<Be.common(Nn[1],un).length),qn&&!fi?(zn.path=qn[1],zn.offset=qn[0].text.length):Nn?(zn.path=Nn[1],zn.offset=0):t=null}}}catch(Qr){Bn.e(Qr)}finally{Bn.f()}}break}case"remove_text":{var Vr=n.path,Jr=n.offset,Ir=n.text;if(Ir.length===0)break;var Tr=$n.leaf(e,Vr),ve=Tr.text.slice(0,Jr),Ve=Tr.text.slice(Jr+Ir.length);if(Tr.text=ve+Ve,t){var Ce=Lf(Qt.points(t)),we;try{for(Ce.s();!(we=Ce.n()).done;){var gt=Rt(we.value,2),jt=gt[0],Mt=gt[1];t[Mt]=Ni.transform(jt,n)}}catch(Qr){Ce.e(Qr)}finally{Ce.f()}}break}case"set_node":{var Ln=n.path,Dr=n.properties,Ar=n.newProperties;if(Ln.length===0)throw new Error("Cannot set properties on the root node!");var ui=$n.get(e,Ln);for(var Kt in Ar){if(Kt==="children"||Kt==="text")throw new Error('Cannot set the "'.concat(Kt,'" property of nodes!'));var Pt=Ar[Kt];Pt==null?delete ui[Kt]:ui[Kt]=Pt}for(var xt in Dr)Ar.hasOwnProperty(xt)||delete ui[xt];break}case"set_selection":{var Yt=n.newProperties;if(Yt==null)t=Yt;else{if(t==null){if(!Qt.isRange(Yt))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Yt)," when there is no current selection."));t=Mp({},Yt)}for(var gn in Yt){var Vt=Yt[gn];if(Vt==null){if(gn==="anchor"||gn==="focus")throw new Error('Cannot remove the "'.concat(gn,'" selection property'));delete t[gn]}else t[gn]=Vt}}break}case"split_node":{var Xn=n.path,Gn=n.position,Hn=n.properties;if(Xn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Xn,"] because the root node cannot be split."));var ln=$n.get(e,Xn),lr=$n.parent(e,Xn),cn=Xn[Xn.length-1],Rr;if(yr.isText(ln)){var mr=ln.text.slice(0,Gn),Er=ln.text.slice(Gn);ln.text=mr,Rr=Mp(Mp({},Hn),{},{text:Er})}else{var yi=ln.children.slice(0,Gn),bi=ln.children.slice(Gn);ln.children=yi,Rr=Mp(Mp({},Hn),{},{children:bi})}if(lr.children.splice(cn+1,0,Rr),t){var _r=Lf(Qt.points(t)),Hr;try{for(_r.s();!(Hr=_r.n()).done;){var Ui=Rt(Hr.value,2),ri=Ui[0],mo=Ui[1];t[mo]=Ni.transform(ri,n)}}catch(Qr){_r.e(Qr)}finally{_r.f()}}break}}return t},mE={transform:function(e,t){e.children=uf.createDraft(e.children);var n=e.selection&&uf.createDraft(e.selection);try{n=vE(e,n,t)}finally{e.children=uf.finishDraft(e.children),n?e.selection=uf.isDraft(n)?uf.finishDraft(n):n:e.selection=null}}},yE=["text"],bE=["children"];function T1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function B1(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?T1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):T1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function $p(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=EE(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,c=function(){};return{s:c,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,m=!1,P;return{s:function(){t=t.call(r)},n:function(){var x=t.next();return f=x.done,x},e:function(x){m=!0,P=x},f:function(){try{!f&&t.return!=null&&t.return()}finally{if(m)throw P}}}}function EE(r,e){if(r){if(typeof r=="string")return F1(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return F1(r,e)}}function F1(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var wE={insertNodes:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ce.withoutNormalizing(e,function(){var c=n.hanging,f=c===void 0?!1:c,m=n.voids,P=m===void 0?!1:m,_=n.mode,x=_===void 0?"lowest":_,O=n.at,k=n.match,S=n.select;if($n.isNode(t)&&(t=[t]),t.length!==0){var B=t,W=Rt(B,1),re=W[0];if(O||(e.selection?O=e.selection:e.children.length>0?O=ce.end(e,[]):O=[0],S=!0),S==null&&(S=!1),Qt.isRange(O))if(f||(O=ce.unhangRange(e,O)),Qt.isCollapsed(O))O=O.anchor;else{var te=Qt.edges(O),me=Rt(te,2),ne=me[1],X=ce.pointRef(e,ne);Vn.delete(e,{at:O}),O=X.unref()}if(Ni.isPoint(O)){k==null&&(yr.isText(re)?k=function(Ot){return yr.isText(Ot)}:e.isInline(re)?k=function(Ot){return yr.isText(Ot)||ce.isInline(e,Ot)}:k=function(Ot){return ce.isBlock(e,Ot)});var q=ce.nodes(e,{at:O.path,match:k,mode:x,voids:P}),Ee=Rt(q,1),ye=Ee[0];if(ye){var Qe=Rt(ye,2),qe=Qe[1],Ge=ce.pathRef(e,qe),zt=ce.isEnd(e,O,qe);Vn.splitNodes(e,{at:O,match:k,mode:x,voids:P});var qt=Ge.unref();O=zt?Be.next(qt):qt}else return}var tn=Be.parent(O),an=O[O.length-1];if(!(!P&&ce.void(e,{at:tn}))){var kn=$p(t),At;try{for(kn.s();!(At=kn.n()).done;){var Wn=At.value,Ae=tn.concat(an);an++,e.apply({type:"insert_node",path:Ae,node:Wn}),O=Be.next(O)}}catch(hn){kn.e(hn)}finally{kn.f()}if(O=Be.previous(O),S){var Dt=ce.end(e,O);Dt&&Vn.select(e,Dt)}}}})},liftNodes:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce.withoutNormalizing(e,function(){var n=t.at,c=n===void 0?e.selection:n,f=t.mode,m=f===void 0?"lowest":f,P=t.voids,_=P===void 0?!1:P,x=t.match;if(x==null&&(x=Be.isPath(c)?Jd(e,c):function(zt){return ce.isBlock(e,zt)}),!!c)for(var O=ce.nodes(e,{at:c,match:x,mode:m,voids:_}),k=Array.from(O,function(zt){var qt=Rt(zt,2),tn=qt[1];return ce.pathRef(e,tn)}),S=0,B=k;S<B.length;S++){var W=B[S],re=W.unref();if(re.length<2)throw new Error("Cannot lift node at a path [".concat(re,"] because it has a depth of less than `2`."));var te=ce.node(e,Be.parent(re)),me=Rt(te,2),ne=me[0],X=me[1],q=re[re.length-1],Ee=ne.children.length;if(Ee===1){var ye=Be.next(X);Vn.moveNodes(e,{at:re,to:ye,voids:_}),Vn.removeNodes(e,{at:X,voids:_})}else if(q===0)Vn.moveNodes(e,{at:re,to:X,voids:_});else if(q===Ee-1){var Qe=Be.next(X);Vn.moveNodes(e,{at:re,to:Qe,voids:_})}else{var qe=Be.next(re),Ge=Be.next(X);Vn.splitNodes(e,{at:qe,voids:_}),Vn.moveNodes(e,{at:re,to:Ge,voids:_})}}})},mergeNodes:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce.withoutNormalizing(e,function(){var n=t.match,c=t.at,f=c===void 0?e.selection:c,m=t.hanging,P=m===void 0?!1:m,_=t.voids,x=_===void 0?!1:_,O=t.mode,k=O===void 0?"lowest":O;if(f){if(n==null)if(Be.isPath(f)){var S=ce.parent(e,f),B=Rt(S,1),W=B[0];n=function(xe){return W.children.includes(xe)}}else n=function(xe){return ce.isBlock(e,xe)};if(!P&&Qt.isRange(f)&&(f=ce.unhangRange(e,f)),Qt.isRange(f))if(Qt.isCollapsed(f))f=f.anchor;else{var re=Qt.edges(f),te=Rt(re,2),me=te[1],ne=ce.pointRef(e,me);Vn.delete(e,{at:f}),f=ne.unref(),t.at==null&&Vn.select(e,f)}var X=ce.nodes(e,{at:f,match:n,voids:x,mode:k}),q=Rt(X,1),Ee=q[0],ye=ce.previous(e,{at:f,match:n,voids:x,mode:k});if(!(!Ee||!ye)){var Qe=Rt(Ee,2),qe=Qe[0],Ge=Qe[1],zt=Rt(ye,2),qt=zt[0],tn=zt[1];if(!(Ge.length===0||tn.length===0)){var an=Be.next(tn),kn=Be.common(Ge,tn),At=Be.isSibling(Ge,tn),Wn=Array.from(ce.levels(e,{at:Ge}),function(de){var xe=Rt(de,1),Ie=xe[0];return Ie}).slice(kn.length).slice(0,-1),Ae=ce.above(e,{at:Ge,mode:"highest",match:function(xe){return Wn.includes(xe)&&xE(e,xe)}}),Dt=Ae&&ce.pathRef(e,Ae[1]),hn,Ot;if(yr.isText(qe)&&yr.isText(qt)){qe.text;var Sn=sf(qe,yE);Ot=qt.text.length,hn=Sn}else if(Fo.isElement(qe)&&Fo.isElement(qt)){qe.children;var be=sf(qe,bE);Ot=qt.children.length,hn=be}else throw new Error("Cannot merge the node at path [".concat(Ge,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(qe)," ").concat(JSON.stringify(qt)));At||Vn.moveNodes(e,{at:Ge,to:an,voids:x}),Dt&&Vn.removeNodes(e,{at:Dt.current,voids:x}),Fo.isElement(qt)&&ce.isEmpty(e,qt)||yr.isText(qt)&&qt.text===""&&tn[tn.length-1]!==0?Vn.removeNodes(e,{at:tn,voids:x}):e.apply({type:"merge_node",path:an,position:Ot,properties:hn}),Dt&&Dt.unref()}}}})},moveNodes:function(e,t){ce.withoutNormalizing(e,function(){var n=t.to,c=t.at,f=c===void 0?e.selection:c,m=t.mode,P=m===void 0?"lowest":m,_=t.voids,x=_===void 0?!1:_,O=t.match;if(f){O==null&&(O=Be.isPath(f)?Jd(e,f):function(X){return ce.isBlock(e,X)});for(var k=ce.pathRef(e,n),S=ce.nodes(e,{at:f,match:O,mode:P,voids:x}),B=Array.from(S,function(X){var q=Rt(X,2),Ee=q[1];return ce.pathRef(e,Ee)}),W=0,re=B;W<re.length;W++){var te=re[W],me=te.unref(),ne=k.current;me.length!==0&&e.apply({type:"move_node",path:me,newPath:ne}),k.current&&Be.isSibling(ne,me)&&Be.isAfter(ne,me)&&(k.current=Be.next(k.current))}k.unref()}})},removeNodes:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce.withoutNormalizing(e,function(){var n=t.hanging,c=n===void 0?!1:n,f=t.voids,m=f===void 0?!1:f,P=t.mode,_=P===void 0?"lowest":P,x=t.at,O=x===void 0?e.selection:x,k=t.match;if(O){k==null&&(k=Be.isPath(O)?Jd(e,O):function(Ee){return ce.isBlock(e,Ee)}),!c&&Qt.isRange(O)&&(O=ce.unhangRange(e,O));for(var S=ce.nodes(e,{at:O,match:k,mode:_,voids:m}),B=Array.from(S,function(Ee){var ye=Rt(Ee,2),Qe=ye[1];return ce.pathRef(e,Qe)}),W=0,re=B;W<re.length;W++){var te=re[W],me=te.unref();if(me){var ne=ce.node(e,me),X=Rt(ne,1),q=X[0];e.apply({type:"remove_node",path:me,node:q})}}}})},setNodes:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ce.withoutNormalizing(e,function(){var c=n.match,f=n.at,m=f===void 0?e.selection:f,P=n.hanging,_=P===void 0?!1:P,x=n.mode,O=x===void 0?"lowest":x,k=n.split,S=k===void 0?!1:k,B=n.voids,W=B===void 0?!1:B;if(m){if(c==null&&(c=Be.isPath(m)?Jd(e,m):function(Wn){return ce.isBlock(e,Wn)}),!_&&Qt.isRange(m)&&(m=ce.unhangRange(e,m)),S&&Qt.isRange(m)){if(Qt.isCollapsed(m)&&ce.leaf(e,m.anchor)[0].text.length>0)return;var re=ce.rangeRef(e,m,{affinity:"inward"}),te=Qt.edges(m),me=Rt(te,2),ne=me[0],X=me[1],q=O==="lowest"?"lowest":"highest",Ee=ce.isEnd(e,X,X.path);Vn.splitNodes(e,{at:X,match:c,mode:q,voids:W,always:!Ee});var ye=ce.isStart(e,ne,ne.path);Vn.splitNodes(e,{at:ne,match:c,mode:q,voids:W,always:!ye}),m=re.unref(),n.at==null&&Vn.select(e,m)}var Qe=$p(ce.nodes(e,{at:m,match:c,mode:O,voids:W})),qe;try{for(Qe.s();!(qe=Qe.n()).done;){var Ge=Rt(qe.value,2),zt=Ge[0],qt=Ge[1],tn={},an={};if(qt.length!==0){var kn=!1;for(var At in t)At==="children"||At==="text"||t[At]!==zt[At]&&(kn=!0,zt.hasOwnProperty(At)&&(tn[At]=zt[At]),t[At]!=null&&(an[At]=t[At]));kn&&e.apply({type:"set_node",path:qt,properties:tn,newProperties:an})}}}catch(Wn){Qe.e(Wn)}finally{Qe.f()}}})},splitNodes:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce.withoutNormalizing(e,function(){var n=t.mode,c=n===void 0?"lowest":n,f=t.voids,m=f===void 0?!1:f,P=t.match,_=t.at,x=_===void 0?e.selection:_,O=t.height,k=O===void 0?0:O,S=t.always,B=S===void 0?!1:S;if(P==null&&(P=function(un){return ce.isBlock(e,un)}),Qt.isRange(x)&&(x=DE(e,x)),Be.isPath(x)){var W=x,re=ce.point(e,W),te=ce.parent(e,W),me=Rt(te,1),ne=me[0];P=function(un){return un===ne},k=re.path.length-W.length+1,x=re,B=!0}if(x){var X=ce.pointRef(e,x,{affinity:"backward"}),q=ce.nodes(e,{at:x,match:P,mode:c,voids:m}),Ee=Rt(q,1),ye=Ee[0];if(ye){var Qe=ce.void(e,{at:x,mode:"highest"}),qe=0;if(!m&&Qe){var Ge=Rt(Qe,2),zt=Ge[0],qt=Ge[1];if(Fo.isElement(zt)&&e.isInline(zt)){var tn=ce.after(e,qt);if(!tn){var an={text:""},kn=Be.next(qt);Vn.insertNodes(e,an,{at:kn,voids:m}),tn=ce.point(e,kn)}x=tn,B=!0}var At=x.path.length-qt.length;k=At+1,B=!0}var Wn=ce.pointRef(e,x),Ae=x.path.length-k,Dt=Rt(ye,2),hn=Dt[1],Ot=x.path.slice(0,Ae),Sn=k===0?x.offset:x.path[Ae]+qe,be=$p(ce.levels(e,{at:Ot,reverse:!0,voids:m})),de;try{for(be.s();!(de=be.n()).done;){var xe=Rt(de.value,2),Ie=xe[0],Ye=xe[1],oe=!1;if(Ye.length<hn.length||Ye.length===0||!m&&ce.isVoid(e,Ie))break;var ht=X.current,Gt=ce.isEnd(e,ht,Ye);if(B||!X||!ce.isEdge(e,ht,Ye)){oe=!0;var xn=$n.extractProps(Ie);e.apply({type:"split_node",path:Ye,position:Sn,properties:xn})}Sn=Ye[Ye.length-1]+(oe||Gt?1:0)}}catch(at){be.e(at)}finally{be.f()}if(t.at==null){var bn=Wn.current||ce.end(e,[]);Vn.select(e,bn)}X.unref(),Wn.unref()}}})},unsetNodes:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var c={},f=$p(t),m;try{for(f.s();!(m=f.n()).done;){var P=m.value;c[P]=null}}catch(_){f.e(_)}finally{f.f()}Vn.setNodes(e,c,n)},unwrapNodes:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce.withoutNormalizing(e,function(){var n=t.mode,c=n===void 0?"lowest":n,f=t.split,m=f===void 0?!1:f,P=t.voids,_=P===void 0?!1:P,x=t.at,O=x===void 0?e.selection:x,k=t.match;if(O){k==null&&(k=Be.isPath(O)?Jd(e,O):function(ne){return ce.isBlock(e,ne)}),Be.isPath(O)&&(O=ce.range(e,O));var S=Qt.isRange(O)?ce.rangeRef(e,O):null,B=ce.nodes(e,{at:O,match:k,mode:c,voids:_}),W=Array.from(B,function(ne){var X=Rt(ne,2),q=X[1];return ce.pathRef(e,q)}).reverse(),re=$p(W),te;try{var me=function(){var X=te.value,q=X.unref(),Ee=ce.node(e,q),ye=Rt(Ee,1),Qe=ye[0],qe=ce.range(e,q);m&&S&&(qe=Qt.intersection(S.current,qe)),Vn.liftNodes(e,{at:qe,match:function(zt){return Fo.isAncestor(Qe)&&Qe.children.includes(zt)},voids:_})};for(re.s();!(te=re.n()).done;)me()}catch(ne){re.e(ne)}finally{re.f()}S&&S.unref()}})},wrapNodes:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ce.withoutNormalizing(e,function(){var c=n.mode,f=c===void 0?"lowest":c,m=n.split,P=m===void 0?!1:m,_=n.voids,x=_===void 0?!1:_,O=n.match,k=n.at,S=k===void 0?e.selection:k;if(S){if(O==null&&(Be.isPath(S)?O=Jd(e,S):e.isInline(t)?O=function(qt){return ce.isInline(e,qt)||yr.isText(qt)}:O=function(qt){return ce.isBlock(e,qt)}),P&&Qt.isRange(S)){var B=Qt.edges(S),W=Rt(B,2),re=W[0],te=W[1],me=ce.rangeRef(e,S,{affinity:"inward"});Vn.splitNodes(e,{at:te,match:O,voids:x}),Vn.splitNodes(e,{at:re,match:O,voids:x}),S=me.unref(),n.at==null&&Vn.select(e,S)}for(var ne=Array.from(ce.nodes(e,{at:S,match:e.isInline(t)?function(zt){return ce.isBlock(e,zt)}:function(zt){return ce.isEditor(zt)},mode:"lowest",voids:x})),X=0,q=ne;X<q.length;X++){var Ee=Rt(q[X],2),ye=Ee[1],Qe=Qt.isRange(S)?Qt.intersection(S,ce.range(e,ye)):S;if(Qe){var qe=Array.from(ce.nodes(e,{at:Qe,match:O,mode:f,voids:x}));if(qe.length>0){var Ge=(function(){var zt=Rt(qe,1),qt=zt[0],tn=qe[qe.length-1],an=Rt(qt,2),kn=an[1],At=Rt(tn,2),Wn=At[1];if(kn.length===0&&Wn.length===0)return"continue";var Ae=Be.equals(kn,Wn)?Be.parent(kn):Be.common(kn,Wn),Dt=ce.range(e,kn,Wn),hn=ce.node(e,Ae),Ot=Rt(hn,1),Sn=Ot[0],be=Ae.length+1,de=Be.next(Wn.slice(0,be)),xe=B1(B1({},t),{},{children:[]});Vn.insertNodes(e,xe,{at:de,voids:x}),Vn.moveNodes(e,{at:Dt,match:function(Ye){return Fo.isAncestor(Sn)&&Sn.children.includes(Ye)},to:de.concat(0),voids:x})})();if(Ge==="continue")continue}}}}})}},xE=function r(e,t){if(Fo.isElement(t)){var n=t;return ce.isVoid(e,t)?!0:n.children.length===1?r(e,n.children[0]):!1}else return!ce.isEditor(t)},DE=function(e,t){if(Qt.isCollapsed(t))return t.anchor;var n=Qt.edges(t),c=Rt(n,2),f=c[1],m=ce.pointRef(e,f);return Vn.delete(e,{at:t}),m.unref()},Jd=function(e,t){var n=ce.node(e,t),c=Rt(n,1),f=c[0];return function(m){return m===f}};function P1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function k1(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?P1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):P1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var SE={collapse:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.edge,c=n===void 0?"anchor":n,f=e.selection;if(f){if(c==="anchor")Vn.select(e,f.anchor);else if(c==="focus")Vn.select(e,f.focus);else if(c==="start"){var m=Qt.edges(f),P=Rt(m,1),_=P[0];Vn.select(e,_)}else if(c==="end"){var x=Qt.edges(f),O=Rt(x,2),k=O[1];Vn.select(e,k)}}else return},deselect:function(e){var t=e.selection;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.selection,c=t.distance,f=c===void 0?1:c,m=t.unit,P=m===void 0?"character":m,_=t.reverse,x=_===void 0?!1:_,O=t.edge,k=O===void 0?null:O;if(n){k==="start"&&(k=Qt.isBackward(n)?"focus":"anchor"),k==="end"&&(k=Qt.isBackward(n)?"anchor":"focus");var S=n.anchor,B=n.focus,W={distance:f,unit:P},re={};if(k==null||k==="anchor"){var te=x?ce.before(e,S,W):ce.after(e,S,W);te&&(re.anchor=te)}if(k==null||k==="focus"){var me=x?ce.before(e,B,W):ce.after(e,B,W);me&&(re.focus=me)}Vn.setSelection(e,re)}},select:function(e,t){var n=e.selection;if(t=ce.range(e,t),n){Vn.setSelection(e,t);return}if(!Qt.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:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=e.selection,f=n.edge,m=f===void 0?"both":f;if(c){m==="start"&&(m=Qt.isBackward(c)?"focus":"anchor"),m==="end"&&(m=Qt.isBackward(c)?"anchor":"focus");var P=c.anchor,_=c.focus,x=m==="anchor"?P:_;Vn.setSelection(e,Al({},m==="anchor"?"anchor":"focus",k1(k1({},x),t)))}},setSelection:function(e,t){var n=e.selection,c={},f={};if(n){for(var m in t)(m==="anchor"&&t.anchor!=null&&!Ni.equals(t.anchor,n.anchor)||m==="focus"&&t.focus!=null&&!Ni.equals(t.focus,n.focus)||m!=="anchor"&&m!=="focus"&&t[m]!==n[m])&&(c[m]=n[m],f[m]=t[m]);Object.keys(c).length>0&&e.apply({type:"set_selection",properties:c,newProperties:f})}}};function N1(r,e){var t=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=CE(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,c=function(){};return{s:c,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(x){throw x},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var f=!0,m=!1,P;return{s:function(){t=t.call(r)},n:function(){var x=t.next();return f=x.done,x},e:function(x){m=!0,P=x},f:function(){try{!f&&t.return!=null&&t.return()}finally{if(m)throw P}}}}function CE(r,e){if(r){if(typeof r=="string")return I1(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I1(r,e)}}function I1(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var AE={delete:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce.withoutNormalizing(e,function(){var n=t.reverse,c=n===void 0?!1:n,f=t.unit,m=f===void 0?"character":f,P=t.distance,_=P===void 0?1:P,x=t.voids,O=x===void 0?!1:x,k=t.at,S=k===void 0?e.selection:k,B=t.hanging,W=B===void 0?!1:B;if(S){if(Qt.isRange(S)&&Qt.isCollapsed(S)&&(S=S.anchor),Ni.isPoint(S)){var re=ce.void(e,{at:S,mode:"highest"});if(!O&&re){var te=Rt(re,2),me=te[1];S=me}else{var ne={unit:m,distance:_},X=c?ce.before(e,S,ne)||ce.start(e,[]):ce.after(e,S,ne)||ce.end(e,[]);S={anchor:S,focus:X},W=!0}}if(Be.isPath(S)){Vn.removeNodes(e,{at:S,voids:O});return}if(!Qt.isCollapsed(S)){if(!W){var q=Qt.edges(S),Ee=Rt(q,2),ye=Ee[1],Qe=ce.end(e,[]);Ni.equals(ye,Qe)||(S=ce.unhangRange(e,S,{voids:O}))}var qe=Qt.edges(S),Ge=Rt(qe,2),zt=Ge[0],qt=Ge[1],tn=ce.above(e,{match:function(Ir){return ce.isBlock(e,Ir)},at:zt,voids:O}),an=ce.above(e,{match:function(Ir){return ce.isBlock(e,Ir)},at:qt,voids:O}),kn=tn&&an&&!Be.equals(tn[1],an[1]),At=Be.equals(zt.path,qt.path),Wn=O?null:ce.void(e,{at:zt,mode:"highest"}),Ae=O?null:ce.void(e,{at:qt,mode:"highest"});if(Wn){var Dt=ce.before(e,zt);Dt&&tn&&Be.isAncestor(tn[1],Dt.path)&&(zt=Dt)}if(Ae){var hn=ce.after(e,qt);hn&&an&&Be.isAncestor(an[1],hn.path)&&(qt=hn)}var Ot=[],Sn,be=N1(ce.nodes(e,{at:S,voids:O})),de;try{for(be.s();!(de=be.n()).done;){var xe=de.value,Ie=Rt(xe,2),Ye=Ie[0],oe=Ie[1];Sn&&Be.compare(oe,Sn)===0||(!O&&ce.isVoid(e,Ye)||!Be.isCommon(oe,zt.path)&&!Be.isCommon(oe,qt.path))&&(Ot.push(xe),Sn=oe)}}catch(Jr){be.e(Jr)}finally{be.f()}var ht=Array.from(Ot,function(Jr){var Ir=Rt(Jr,2),Tr=Ir[1];return ce.pathRef(e,Tr)}),Gt=ce.pointRef(e,zt),xn=ce.pointRef(e,qt);if(!At&&!Wn){var bn=Gt.current,at=ce.leaf(e,bn),un=Rt(at,1),Cn=un[0],Xt=bn.path,Bn=zt,er=Bn.offset,$t=Cn.text.slice(er);$t.length>0&&e.apply({type:"remove_text",path:Xt,offset:er,text:$t})}for(var zn=0,Pr=ht;zn<Pr.length;zn++){var Mr=Pr[zn],qn=Mr.unref();Vn.removeNodes(e,{at:qn,voids:O})}if(!Ae){var Nn=xn.current,Nr=ce.leaf(e,Nn),jn=Rt(Nr,1),br=jn[0],Ut=Nn.path,fr=At?zt.offset:0,fi=br.text.slice(fr,qt.offset);fi.length>0&&e.apply({type:"remove_text",path:Ut,offset:fr,text:fi})}!At&&kn&&xn.current&&Gt.current&&Vn.mergeNodes(e,{at:xn.current,hanging:!0,voids:O});var Vr=c?Gt.unref()||xn.unref():xn.unref()||Gt.unref();t.at==null&&Vr&&Vn.select(e,Vr)}}})},insertFragment:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ce.withoutNormalizing(e,function(){var c=n.hanging,f=c===void 0?!1:c,m=n.voids,P=m===void 0?!1:m,_=n.at,x=_===void 0?e.selection:_;if(t.length){if(x)if(Qt.isRange(x))if(f||(x=ce.unhangRange(e,x)),Qt.isCollapsed(x))x=x.anchor;else{var O=Qt.edges(x),k=Rt(O,2),S=k[1];if(!P&&ce.void(e,{at:S}))return;var B=ce.pointRef(e,S);Vn.delete(e,{at:x}),x=B.unref()}else Be.isPath(x)&&(x=ce.start(e,x));else return;if(!(!P&&ce.void(e,{at:x}))){var W=ce.above(e,{at:x,match:function(jn){return ce.isInline(e,jn)},mode:"highest",voids:P});if(W){var re=Rt(W,2),te=re[1];if(ce.isEnd(e,x,te)){var me=ce.after(e,te);x=me}else if(ce.isStart(e,x,te)){var ne=ce.before(e,te);x=ne}}var X=ce.above(e,{match:function(jn){return ce.isBlock(e,jn)},at:x,voids:P}),q=Rt(X,2),Ee=q[1],ye=ce.isStart(e,x,Ee),Qe=ce.isEnd(e,x,Ee),qe=ye&&Qe,Ge=!ye||ye&&Qe,zt=!Qe,qt=$n.first({children:t},[]),tn=Rt(qt,2),an=tn[1],kn=$n.last({children:t},[]),At=Rt(kn,2),Wn=At[1],Ae=[],Dt=function(jn){var br=Rt(jn,2),Ut=br[0],fr=br[1],fi=fr.length===0;return fi?!1:qe?!0:!(Ge&&Be.isAncestor(fr,an)&&Fo.isElement(Ut)&&!e.isVoid(Ut)&&!e.isInline(Ut)||zt&&Be.isAncestor(fr,Wn)&&Fo.isElement(Ut)&&!e.isVoid(Ut)&&!e.isInline(Ut))},hn=N1($n.nodes({children:t},{pass:Dt})),Ot;try{for(hn.s();!(Ot=hn.n()).done;){var Sn=Ot.value;Dt(Sn)&&Ae.push(Sn)}}catch(Nr){hn.e(Nr)}finally{hn.f()}for(var be=[],de=[],xe=[],Ie=!0,Ye=!1,oe=0,ht=Ae;oe<ht.length;oe++){var Gt=Rt(ht[oe],1),xn=Gt[0];Fo.isElement(xn)&&!e.isInline(xn)?(Ie=!1,Ye=!0,de.push(xn)):Ie?be.push(xn):xe.push(xn)}var bn=ce.nodes(e,{at:x,match:function(jn){return yr.isText(jn)||ce.isInline(e,jn)},mode:"highest",voids:P}),at=Rt(bn,1),un=at[0],Cn=Rt(un,2),Xt=Cn[1],Bn=ce.isStart(e,x,Xt),er=ce.isEnd(e,x,Xt),$t=ce.pathRef(e,Qe?Be.next(Ee):Ee),zn=ce.pathRef(e,er?Be.next(Xt):Xt),Pr=ce.pathRef(e,Ee);Vn.splitNodes(e,{at:x,match:function(jn){return Ye?ce.isBlock(e,jn):yr.isText(jn)||ce.isInline(e,jn)},mode:Ye?"lowest":"highest",voids:P});var Mr=ce.pathRef(e,!Bn||Bn&&er?Be.next(Xt):Xt);if(Vn.insertNodes(e,be,{at:Mr.current,match:function(jn){return yr.isText(jn)||ce.isInline(e,jn)},mode:"highest",voids:P}),qe&&de.length&&Vn.delete(e,{at:Pr.unref(),voids:P}),Vn.insertNodes(e,de,{at:$t.current,match:function(jn){return ce.isBlock(e,jn)},mode:"lowest",voids:P}),Vn.insertNodes(e,xe,{at:zn.current,match:function(jn){return yr.isText(jn)||ce.isInline(e,jn)},mode:"highest",voids:P}),!n.at){var qn;xe.length>0?qn=Be.previous(zn.current):de.length>0?qn=Be.previous($t.current):qn=Be.previous(Mr.current);var Nn=ce.end(e,qn);Vn.select(e,Nn)}Mr.unref(),$t.unref(),zn.unref()}}})},insertText:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ce.withoutNormalizing(e,function(){var c=n.voids,f=c===void 0?!1:c,m=n.at,P=m===void 0?e.selection:m;if(P){if(Be.isPath(P)&&(P=ce.range(e,P)),Qt.isRange(P))if(Qt.isCollapsed(P))P=P.anchor;else{var _=Qt.end(P);if(!f&&ce.void(e,{at:_}))return;var x=ce.pointRef(e,_);Vn.delete(e,{at:P,voids:f}),P=x.unref(),Vn.setSelection(e,{anchor:P,focus:P})}if(!(!f&&ce.void(e,{at:P}))){var O=P,k=O.path,S=O.offset;t.length>0&&e.apply({type:"insert_text",path:k,offset:S,text:t})}}})}};function R1(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),t.push.apply(t,n)}return t}function cg(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?R1(Object(t),!0).forEach(function(n){Al(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):R1(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var Vn=cg(cg(cg(cg({},mE),wE),SE),AE),j1=ce,L1=Fo,M1=oE,$1=$n,_E=Zd,z1=Be,OE=y1,H1=Ni,TE=w1,U1=Qt,BE=D1,FE=h1,V1=yr,W1=Vn,PE=O2,kE=Object.defineProperty({Editor:j1,Element:L1,Location:M1,Node:$1,Operation:_E,Path:z1,PathRef:OE,Point:H1,PointRef:TE,Range:U1,RangeRef:BE,Span:FE,Text:V1,Transforms:W1,createEditor:PE},"__esModule",{value:!0}),q1=9007199254740991,NE="[object Arguments]",IE="[object Function]",RE="[object GeneratorFunction]",q0="[object Map]",jE="[object Object]",G1="[object Promise]",G0="[object Set]",LE="[object String]",K1="[object WeakMap]",X1="[object DataView]",ME=/[\\^$.*+?()[\]{}|]/g,$E=/^\[object .+?Constructor\]$/,zE=/^(?:0|[1-9]\d*)$/,K0="\\ud800-\\udfff",Y1="\\u0300-\\u036f\\ufe20-\\ufe23",Z1="\\u20d0-\\u20f0",J1="\\ufe0e\\ufe0f",HE="["+K0+"]",X0="["+Y1+Z1+"]",Y0="\\ud83c[\\udffb-\\udfff]",UE="(?:"+X0+"|"+Y0+")",Q1="[^"+K0+"]",ey="(?:\\ud83c[\\udde6-\\uddff]){2}",ty="[\\ud800-\\udbff][\\udc00-\\udfff]",ny="\\u200d",ry=UE+"?",iy="["+J1+"]?",VE="(?:"+ny+"(?:"+[Q1,ey,ty].join("|")+")"+iy+ry+")*",WE=iy+ry+VE,qE="(?:"+[Q1+X0+"?",X0,ey,ty,HE].join("|")+")",GE=RegExp(Y0+"(?="+Y0+")|"+qE+WE,"g"),KE=RegExp("["+ny+K0+Y1+Z1+J1+"]"),XE=typeof Ur=="object"&&Ur&&Ur.Object===Object&&Ur,YE=typeof self=="object"&&self&&self.Object===Object&&self,fd=XE||YE||Function("return this")();function ZE(r,e){for(var t=-1,n=r?r.length:0,c=Array(n);++t<n;)c[t]=e(r[t],t,r);return c}function JE(r){return r.split("")}function QE(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}function ew(r,e){return ZE(e,function(t){return r[t]})}function tw(r,e){return r==null?void 0:r[e]}function nw(r){return KE.test(r)}function rw(r){var e=!1;if(r!=null&&typeof r.toString!="function")try{e=!!(r+"")}catch(t){}return e}function iw(r){for(var e,t=[];!(e=r.next()).done;)t.push(e.value);return t}function ow(r){var e=-1,t=Array(r.size);return r.forEach(function(n,c){t[++e]=[c,n]}),t}function aw(r,e){return function(t){return r(e(t))}}function uw(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}function sw(r){return nw(r)?lw(r):JE(r)}function lw(r){return r.match(GE)||[]}var cw=Function.prototype,fg=Object.prototype,Z0=fd["__core-js_shared__"],oy=(function(){var r=/[^.]+$/.exec(Z0&&Z0.keys&&Z0.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})(),ay=cw.toString,dg=fg.hasOwnProperty,zp=fg.toString,fw=RegExp("^"+ay.call(dg).replace(ME,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uy=fd.Symbol,J0=uy?uy.iterator:void 0,dw=fg.propertyIsEnumerable,pw=aw(Object.keys,Object),Q0=Hp(fd,"DataView"),ev=Hp(fd,"Map"),tv=Hp(fd,"Promise"),nv=Hp(fd,"Set"),rv=Hp(fd,"WeakMap"),hw=pd(Q0),gw=pd(ev),vw=pd(tv),mw=pd(nv),yw=pd(rv);function bw(r,e){var t=sy(r)||_w(r)?QE(r.length,String):[],n=t.length,c=!!n;for(var f in r)(e||dg.call(r,f))&&!(c&&(f=="length"||Sw(f,n)))&&t.push(f);return t}function Ew(r){return zp.call(r)}function ww(r){if(!cy(r)||Cw(r))return!1;var e=ly(r)||rw(r)?fw:$E;return e.test(pd(r))}function xw(r){if(!Aw(r))return pw(r);var e=[];for(var t in Object(r))dg.call(r,t)&&t!="constructor"&&e.push(t);return e}function Dw(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}function Hp(r,e){var t=tw(r,e);return ww(t)?t:void 0}var dd=Ew;(Q0&&dd(new Q0(new ArrayBuffer(1)))!=X1||ev&&dd(new ev)!=q0||tv&&dd(tv.resolve())!=G1||nv&&dd(new nv)!=G0||rv&&dd(new rv)!=K1)&&(dd=function(r){var e=zp.call(r),t=e==jE?r.constructor:void 0,n=t?pd(t):void 0;if(n)switch(n){case hw:return X1;case gw:return q0;case vw:return G1;case mw:return G0;case yw:return K1}return e});function Sw(r,e){return e=e==null?q1:e,!!e&&(typeof r=="number"||zE.test(r))&&r>-1&&r%1==0&&r<e}function Cw(r){return!!oy&&oy in r}function Aw(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||fg;return r===t}function pd(r){if(r!=null){try{return ay.call(r)}catch(e){}try{return r+""}catch(e){}}return""}function _w(r){return Ow(r)&&dg.call(r,"callee")&&(!dw.call(r,"callee")||zp.call(r)==NE)}var sy=Array.isArray;function iv(r){return r!=null&&Tw(r.length)&&!ly(r)}function Ow(r){return fy(r)&&iv(r)}function ly(r){var e=cy(r)?zp.call(r):"";return e==IE||e==RE}function Tw(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=q1}function cy(r){var e=typeof r;return!!r&&(e=="object"||e=="function")}function fy(r){return!!r&&typeof r=="object"}function Bw(r){return typeof r=="string"||!sy(r)&&fy(r)&&zp.call(r)==LE}function Fw(r){if(!r)return[];if(iv(r))return Bw(r)?sw(r):Dw(r);if(J0&&r[J0])return iw(r[J0]());var e=dd(r),t=e==q0?ow:e==G0?uw:kw;return t(r)}function Pw(r){return iv(r)?bw(r):xw(r)}function kw(r){return r?ew(r,Pw(r)):[]}var Nw=Fw,_s=xl(function(r,e){(function(t,n){n(e)})(Ur,(function(t){function n(x){return x!==null&&typeof x=="object"&&"constructor"in x&&x.constructor===Object}function c(x,O){x===void 0&&(x={}),O===void 0&&(O={}),Object.keys(O).forEach(function(k){typeof x[k]=="undefined"?x[k]=O[k]:n(O[k])&&n(x[k])&&Object.keys(O[k]).length>0&&c(x[k],O[k])})}var f={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 m(){var x=typeof document!="undefined"?document:{};return c(x,f),x}var P={document:f,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(x){return typeof setTimeout=="undefined"?(x(),null):setTimeout(x,0)},cancelAnimationFrame:function(x){typeof setTimeout!="undefined"&&clearTimeout(x)}};function _(){var x=typeof window!="undefined"?window:{};return c(x,P),x}t.extend=c,t.getDocument=m,t.getWindow=_,t.ssrDocument=f,t.ssrWindow=P,Object.defineProperty(t,"__esModule",{value:!0})}))});function Iw(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function ov(r){return ov=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ov(r)}function pg(r,e){return pg=Object.setPrototypeOf||function(n,c){return n.__proto__=c,n},pg(r,e)}function Rw(){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(r){return!1}}function hg(r,e,t){return Rw()?hg=Reflect.construct:hg=function(c,f,m){var P=[null];P.push.apply(P,f);var _=Function.bind.apply(c,P),x=new _;return m&&pg(x,m.prototype),x},hg.apply(null,arguments)}function jw(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function av(r){var e=typeof Map=="function"?new Map:void 0;return av=function(n){if(n===null||!jw(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,c)}function c(){return hg(n,arguments,ov(this).constructor)}return c.prototype=Object.create(n.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),pg(c,n)},av(r)}function Lw(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Mw(r){var e=r.__proto__;Object.defineProperty(r,"__proto__",{get:function(){return e},set:function(n){e.__proto__=n}})}var Mf=(function(r){Iw(e,r);function e(t){var n;return n=r.call.apply(r,[this].concat(t))||this,Mw(Lw(n)),n}return e})(av(Array));function Up(r){r===void 0&&(r=[]);var e=[];return r.forEach(function(t){Array.isArray(t)?e.push.apply(e,Up(t)):e.push(t)}),e}function dy(r,e){return Array.prototype.filter.call(r,e)}function $w(r){for(var e=[],t=0;t<r.length;t+=1)e.indexOf(r[t])===-1&&e.push(r[t]);return e}function zw(r){return r.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function Hw(r,e){if(typeof r!="string")return[r];for(var t=[],n=e.querySelectorAll(r),c=0;c<n.length;c+=1)t.push(n[c]);return t}function Zr(r,e){var t=_s.getWindow(),n=_s.getDocument(),c=[];if(!e&&r instanceof Mf)return r;if(!r)return new Mf(c);if(typeof r=="string"){var f=r.trim();if(f.indexOf("<")>=0&&f.indexOf(">")>=0){var m="div";f.indexOf("<li")===0&&(m="ul"),f.indexOf("<tr")===0&&(m="tbody"),(f.indexOf("<td")===0||f.indexOf("<th")===0)&&(m="tr"),f.indexOf("<tbody")===0&&(m="table"),f.indexOf("<option")===0&&(m="select");var P=n.createElement(m);P.innerHTML=f;for(var _=0;_<P.childNodes.length;_+=1)c.push(P.childNodes[_])}else c=Hw(r.trim(),e||n)}else if(r.nodeType||r===t||r===n)c.push(r);else if(Array.isArray(r)){if(r instanceof Mf)return r;c=r}return new Mf($w(c))}Zr.fn=Mf.prototype;function Uw(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=Up(e.map(function(c){return c.split(" ")}));return this.forEach(function(c){var f;(f=c.classList).add.apply(f,n)}),this}function Vw(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=Up(e.map(function(c){return c.split(" ")}));return this.forEach(function(c){var f;(f=c.classList).remove.apply(f,n)}),this}function Ww(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=Up(e.map(function(c){return c.split(" ")}));this.forEach(function(c){n.forEach(function(f){c.classList.toggle(f)})})}function qw(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=Up(e.map(function(c){return c.split(" ")}));return dy(this,function(c){return n.filter(function(f){return c.classList.contains(f)}).length>0}).length>0}function Gw(r,e){if(arguments.length===1&&typeof r=="string")return this[0]?this[0].getAttribute(r):void 0;for(var t=0;t<this.length;t+=1)if(arguments.length===2)this[t].setAttribute(r,e);else for(var n in r)this[t][n]=r[n],this[t].setAttribute(n,r[n]);return this}function Kw(r){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(r);return this}function Xw(r,e){if(arguments.length===1&&typeof r=="string"){if(this[0])return this[0][r]}else{for(var t=0;t<this.length;t+=1)if(arguments.length===2)this[t][r]=e;else for(var n in r)this[t][n]=r[n];return this}return this}function Yw(r,e){var t;if(typeof e=="undefined"){if(t=this[0],!t)return;if(t.dom7ElementDataStorage&&r in t.dom7ElementDataStorage)return t.dom7ElementDataStorage[r];var n=t.getAttribute("data-"+r);return n||void 0}for(var c=0;c<this.length;c+=1)t=this[c],t.dom7ElementDataStorage||(t.dom7ElementDataStorage={}),t.dom7ElementDataStorage[r]=e;return this}function Zw(r){for(var e=0;e<this.length;e+=1){var t=this[e];t.dom7ElementDataStorage&&t.dom7ElementDataStorage[r]&&(t.dom7ElementDataStorage[r]=null,delete t.dom7ElementDataStorage[r])}}function Jw(){var r=this[0];if(r){var e={};if(r.dataset)for(var t in r.dataset)e[t]=r.dataset[t];else for(var n=0;n<r.attributes.length;n+=1){var c=r.attributes[n];c.name.indexOf("data-")>=0&&(e[zw(c.name.split("data-")[1])]=c.value)}for(var f in e)e[f]==="false"?e[f]=!1:e[f]==="true"?e[f]=!0:parseFloat(e[f])===e[f]*1&&(e[f]*=1);return e}}function Qw(r){if(typeof r=="undefined"){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var t=[],n=0;n<e.selectedOptions.length;n+=1)t.push(e.selectedOptions[n].value);return t}return e.value}for(var c=0;c<this.length;c+=1){var f=this[c];if(Array.isArray(r)&&f.multiple&&f.nodeName.toLowerCase()==="select")for(var m=0;m<f.options.length;m+=1)f.options[m].selected=r.indexOf(f.options[m].value)>=0;else f.value=r}return this}function e4(r){return this.val(r)}function t4(r){for(var e=0;e<this.length;e+=1)this[e].style.transform=r;return this}function n4(r){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration=typeof r!="string"?r+"ms":r;return this}function r4(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=e[0],c=e[1],f=e[2],m=e[3];typeof e[1]=="function"&&(n=e[0],f=e[1],m=e[2],c=void 0),m||(m=!1);function P(re){var te=re.target;if(te){var me=re.target.dom7EventData||[];if(me.indexOf(re)<0&&me.unshift(re),Zr(te).is(c))f.apply(te,me);else for(var ne=Zr(te).parents(),X=0;X<ne.length;X+=1)Zr(ne[X]).is(c)&&f.apply(ne[X],me)}}function _(re){var te=re&&re.target?re.target.dom7EventData||[]:[];te.indexOf(re)<0&&te.unshift(re),f.apply(this,te)}for(var x=n.split(" "),O,k=0;k<this.length;k+=1){var S=this[k];if(c)for(O=0;O<x.length;O+=1){var W=x[O];S.dom7LiveListeners||(S.dom7LiveListeners={}),S.dom7LiveListeners[W]||(S.dom7LiveListeners[W]=[]),S.dom7LiveListeners[W].push({listener:f,proxyListener:P}),S.addEventListener(W,P,m)}else for(O=0;O<x.length;O+=1){var B=x[O];S.dom7Listeners||(S.dom7Listeners={}),S.dom7Listeners[B]||(S.dom7Listeners[B]=[]),S.dom7Listeners[B].push({listener:f,proxyListener:_}),S.addEventListener(B,_,m)}}return this}function i4(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=e[0],c=e[1],f=e[2],m=e[3];typeof e[1]=="function"&&(n=e[0],f=e[1],m=e[2],c=void 0),m||(m=!1);for(var P=n.split(" "),_=0;_<P.length;_+=1)for(var x=P[_],O=0;O<this.length;O+=1){var k=this[O],S=void 0;if(!c&&k.dom7Listeners?S=k.dom7Listeners[x]:c&&k.dom7LiveListeners&&(S=k.dom7LiveListeners[x]),S&&S.length)for(var B=S.length-1;B>=0;B-=1){var W=S[B];f&&W.listener===f||f&&W.listener&&W.listener.dom7proxy&&W.listener.dom7proxy===f?(k.removeEventListener(x,W.proxyListener,m),S.splice(B,1)):f||(k.removeEventListener(x,W.proxyListener,m),S.splice(B,1))}}return this}function o4(){for(var r=this,e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var c=t[0],f=t[1],m=t[2],P=t[3];typeof t[1]=="function"&&(c=t[0],m=t[1],P=t[2],f=void 0);function _(){for(var x=arguments.length,O=new Array(x),k=0;k<x;k++)O[k]=arguments[k];m.apply(this,O),r.off(c,f,_,P),_.dom7proxy&&delete _.dom7proxy}return _.dom7proxy=m,r.on(c,f,_,P)}function a4(){for(var r=_s.getWindow(),e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var c=t[0].split(" "),f=t[1],m=0;m<c.length;m+=1)for(var P=c[m],_=0;_<this.length;_+=1){var x=this[_];if(r.CustomEvent){var O=new r.CustomEvent(P,{detail:f,bubbles:!0,cancelable:!0});x.dom7EventData=t.filter(function(k,S){return S>0}),x.dispatchEvent(O),x.dom7EventData=[],delete x.dom7EventData}}return this}function u4(r){var e=this;function t(n){n.target===this&&(r.call(this,n),e.off("transitionend",t))}return r&&e.on("transitionend",t),this}function s4(r){var e=this;function t(n){n.target===this&&(r.call(this,n),e.off("animationend",t))}return r&&e.on("animationend",t),this}function l4(){var r=_s.getWindow();return this[0]===r?r.innerWidth:this.length>0?parseFloat(this.css("width")):null}function c4(r){if(this.length>0){if(r){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function f4(){var r=_s.getWindow();return this[0]===r?r.innerHeight:this.length>0?parseFloat(this.css("height")):null}function d4(r){if(this.length>0){if(r){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function p4(){if(this.length>0){var r=_s.getWindow(),e=_s.getDocument(),t=this[0],n=t.getBoundingClientRect(),c=e.body,f=t.clientTop||c.clientTop||0,m=t.clientLeft||c.clientLeft||0,P=t===r?r.scrollY:t.scrollTop,_=t===r?r.scrollX:t.scrollLeft;return{top:n.top+P-f,left:n.left+_-m}}return null}function h4(){for(var r=0;r<this.length;r+=1)this[r].style.display="none";return this}function g4(){for(var r=_s.getWindow(),e=0;e<this.length;e+=1){var t=this[e];t.style.display==="none"&&(t.style.display=""),r.getComputedStyle(t,null).getPropertyValue("display")==="none"&&(t.style.display="block")}return this}function v4(){var r=_s.getWindow();return this[0]?r.getComputedStyle(this[0],null):{}}function m4(r,e){var t=_s.getWindow(),n;if(arguments.length===1)if(typeof r=="string"){if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(r)}else{for(n=0;n<this.length;n+=1)for(var c in r)this[n].style[c]=r[c];return this}if(arguments.length===2&&typeof r=="string"){for(n=0;n<this.length;n+=1)this[n].style[r]=e;return this}return this}function y4(r){return r?(this.forEach(function(e,t){r.apply(e,[e,t])}),this):this}function b4(r){var e=dy(this,r);return Zr(e)}function E4(r){if(typeof r=="undefined")return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=r;return this}function w4(r){if(typeof r=="undefined")return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=r;return this}function x4(r){var e=_s.getWindow(),t=_s.getDocument(),n=this[0],c,f;if(!n||typeof r=="undefined")return!1;if(typeof r=="string"){if(n.matches)return n.matches(r);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(r);if(n.msMatchesSelector)return n.msMatchesSelector(r);for(c=Zr(r),f=0;f<c.length;f+=1)if(c[f]===n)return!0;return!1}if(r===t)return n===t;if(r===e)return n===e;if(r.nodeType||r instanceof Mf){for(c=r.nodeType?[r]:r,f=0;f<c.length;f+=1)if(c[f]===n)return!0;return!1}return!1}function D4(){var r=this[0],e;if(r){for(e=0;(r=r.previousSibling)!==null;)r.nodeType===1&&(e+=1);return e}}function S4(r){if(typeof r=="undefined")return this;var e=this.length;if(r>e-1)return Zr([]);if(r<0){var t=e+r;return t<0?Zr([]):Zr([this[t]])}return Zr([this[r]])}function C4(){for(var r,e=_s.getDocument(),t=0;t<arguments.length;t+=1){r=t<0||arguments.length<=t?void 0:arguments[t];for(var n=0;n<this.length;n+=1)if(typeof r=="string"){var c=e.createElement("div");for(c.innerHTML=r;c.firstChild;)this[n].appendChild(c.firstChild)}else if(r instanceof Mf)for(var f=0;f<r.length;f+=1)this[n].appendChild(r[f]);else this[n].appendChild(r)}return this}function A4(r){return Zr(r).append(this),this}function _4(r){var e=_s.getDocument(),t,n;for(t=0;t<this.length;t+=1)if(typeof r=="string"){var c=e.createElement("div");for(c.innerHTML=r,n=c.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(c.childNodes[n],this[t].childNodes[0])}else if(r instanceof Mf)for(n=0;n<r.length;n+=1)this[t].insertBefore(r[n],this[t].childNodes[0]);else this[t].insertBefore(r,this[t].childNodes[0]);return this}function O4(r){return Zr(r).prepend(this),this}function T4(r){for(var e=Zr(r),t=0;t<this.length;t+=1)if(e.length===1)e[0].parentNode.insertBefore(this[t],e[0]);else if(e.length>1)for(var n=0;n<e.length;n+=1)e[n].parentNode.insertBefore(this[t].cloneNode(!0),e[n])}function B4(r){for(var e=Zr(r),t=0;t<this.length;t+=1)if(e.length===1)e[0].parentNode.insertBefore(this[t],e[0].nextSibling);else if(e.length>1)for(var n=0;n<e.length;n+=1)e[n].parentNode.insertBefore(this[t].cloneNode(!0),e[n].nextSibling)}function F4(r){return this.length>0?r?this[0].nextElementSibling&&Zr(this[0].nextElementSibling).is(r)?Zr([this[0].nextElementSibling]):Zr([]):this[0].nextElementSibling?Zr([this[0].nextElementSibling]):Zr([]):Zr([])}function P4(r){var e=[],t=this[0];if(!t)return Zr([]);for(;t.nextElementSibling;){var n=t.nextElementSibling;r?Zr(n).is(r)&&e.push(n):e.push(n),t=n}return Zr(e)}function k4(r){if(this.length>0){var e=this[0];return r?e.previousElementSibling&&Zr(e.previousElementSibling).is(r)?Zr([e.previousElementSibling]):Zr([]):e.previousElementSibling?Zr([e.previousElementSibling]):Zr([])}return Zr([])}function N4(r){var e=[],t=this[0];if(!t)return Zr([]);for(;t.previousElementSibling;){var n=t.previousElementSibling;r?Zr(n).is(r)&&e.push(n):e.push(n),t=n}return Zr(e)}function I4(r){return this.nextAll(r).add(this.prevAll(r))}function R4(r){for(var e=[],t=0;t<this.length;t+=1)this[t].parentNode!==null&&(r?Zr(this[t].parentNode).is(r)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return Zr(e)}function j4(r){for(var e=[],t=0;t<this.length;t+=1)for(var n=this[t].parentNode;n;)r?Zr(n).is(r)&&e.push(n):e.push(n),n=n.parentNode;return Zr(e)}function L4(r){var e=this;return typeof r=="undefined"?Zr([]):(e.is(r)||(e=e.parents(r).eq(0)),e)}function M4(r){for(var e=[],t=0;t<this.length;t+=1)for(var n=this[t].querySelectorAll(r),c=0;c<n.length;c+=1)e.push(n[c]);return Zr(e)}function $4(r){for(var e=[],t=0;t<this.length;t+=1)for(var n=this[t].children,c=0;c<n.length;c+=1)(!r||Zr(n[c]).is(r))&&e.push(n[c]);return Zr(e)}function z4(){for(var r=0;r<this.length;r+=1)this[r].parentNode&&this[r].parentNode.removeChild(this[r]);return this}function H4(){return this.remove()}function U4(){for(var r=this,e,t,n=arguments.length,c=new Array(n),f=0;f<n;f++)c[f]=arguments[f];for(e=0;e<c.length;e+=1){var m=Zr(c[e]);for(t=0;t<m.length;t+=1)r.push(m[t])}return r}function V4(){for(var r=0;r<this.length;r+=1){var e=this[r];if(e.nodeType===1){for(var t=0;t<e.childNodes.length;t+=1)e.childNodes[t].parentNode&&e.childNodes[t].parentNode.removeChild(e.childNodes[t]);e.textContent=""}}return this}function W4(){for(var r=_s.getWindow(),e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var c=t[0],f=t[1],m=t[2],P=t[3],_=t[4];return t.length===4&&typeof P=="function"&&(_=P,c=t[0],f=t[1],m=t[2],_=t[3],P=t[4]),typeof P=="undefined"&&(P="swing"),this.each(function(){var O=this,k,S,B,W,re,te,me,ne,X=f>0||f===0,q=c>0||c===0;if(typeof P=="undefined"&&(P="swing"),X&&(k=O.scrollTop,m||(O.scrollTop=f)),q&&(S=O.scrollLeft,m||(O.scrollLeft=c)),!m)return;X&&(B=O.scrollHeight-O.offsetHeight,re=Math.max(Math.min(f,B),0)),q&&(W=O.scrollWidth-O.offsetWidth,te=Math.max(Math.min(c,W),0));var Ee=null;X&&re===k&&(X=!1),q&&te===S&&(q=!1);function ye(Qe){Qe===void 0&&(Qe=new Date().getTime()),Ee===null&&(Ee=Qe);var qe=Math.max(Math.min((Qe-Ee)/m,1),0),Ge=P==="linear"?qe:.5-Math.cos(qe*Math.PI)/2,zt;if(X&&(me=k+Ge*(re-k)),q&&(ne=S+Ge*(te-S)),X&&re>k&&me>=re&&(O.scrollTop=re,zt=!0),X&&re<k&&me<=re&&(O.scrollTop=re,zt=!0),q&&te>S&&ne>=te&&(O.scrollLeft=te,zt=!0),q&&te<S&&ne<=te&&(O.scrollLeft=te,zt=!0),zt){_&&_();return}X&&(O.scrollTop=me),q&&(O.scrollLeft=ne),r.requestAnimationFrame(ye)}r.requestAnimationFrame(ye)})}function q4(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=e[0],c=e[1],f=e[2],m=e[3];e.length===3&&typeof f=="function"&&(n=e[0],c=e[1],m=e[2],f=e[3]);var P=this;return typeof n=="undefined"?P.length>0?P[0].scrollTop:null:P.scrollTo(void 0,n,c,f,m)}function G4(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=e[0],c=e[1],f=e[2],m=e[3];e.length===3&&typeof f=="function"&&(n=e[0],c=e[1],m=e[2],f=e[3]);var P=this;return typeof n=="undefined"?P.length>0?P[0].scrollLeft:null:P.scrollTo(n,void 0,c,f,m)}function K4(r,e){var t=_s.getWindow(),n=this,c={props:Object.assign({},r),params:Object.assign({duration:300,easing:"swing"},e),elements:n,animating:!1,que:[],easingProgress:function(_,x){return _==="swing"?.5-Math.cos(x*Math.PI)/2:typeof _=="function"?_(x):x},stop:function(){c.frameId&&t.cancelAnimationFrame(c.frameId),c.animating=!1,c.elements.each(function(_){var x=_;delete x.dom7AnimateInstance}),c.que=[]},done:function(_){if(c.animating=!1,c.elements.each(function(O){var k=O;delete k.dom7AnimateInstance}),_&&_(n),c.que.length>0){var x=c.que.shift();c.animate(x[0],x[1])}},animate:function(_,x){if(c.animating)return c.que.push([_,x]),c;var O=[];c.elements.each(function(ne,X){var q,Ee,ye,Qe,qe;ne.dom7AnimateInstance||(c.elements[X].dom7AnimateInstance=c),O[X]={container:ne},Object.keys(_).forEach(function(Ge){q=t.getComputedStyle(ne,null).getPropertyValue(Ge).replace(",","."),Ee=parseFloat(q),ye=q.replace(Ee,""),Qe=parseFloat(_[Ge]),qe=_[Ge]+ye,O[X][Ge]={initialFullValue:q,initialValue:Ee,unit:ye,finalValue:Qe,finalFullValue:qe,currentValue:Ee}})});var k=null,S,B=0,W=0,re,te=!1;c.animating=!0;function me(){S=new Date().getTime();var ne,X;te||(te=!0,x.begin&&x.begin(n)),k===null&&(k=S),x.progress&&x.progress(n,Math.max(Math.min((S-k)/x.duration,1),0),k+x.duration-S<0?0:k+x.duration-S,k),O.forEach(function(q){var Ee=q;re||Ee.done||Object.keys(_).forEach(function(ye){if(!(re||Ee.done)){ne=Math.max(Math.min((S-k)/x.duration,1),0),X=c.easingProgress(x.easing,ne);var Qe=Ee[ye],qe=Qe.initialValue,Ge=Qe.finalValue,zt=Qe.unit;Ee[ye].currentValue=qe+X*(Ge-qe);var qt=Ee[ye].currentValue;if((Ge>qe&&qt>=Ge||Ge<qe&&qt<=Ge)&&(Ee.container.style[ye]=Ge+zt,W+=1,W===Object.keys(_).length&&(Ee.done=!0,B+=1),B===O.length&&(re=!0)),re){c.done(x.complete);return}Ee.container.style[ye]=qt+zt}})}),!re&&(c.frameId=t.requestAnimationFrame(me))}return c.frameId=t.requestAnimationFrame(me),c}};if(c.elements.length===0)return n;for(var f,m=0;m<c.elements.length;m+=1)c.elements[m].dom7AnimateInstance?f=c.elements[m].dom7AnimateInstance:c.elements[m].dom7AnimateInstance=c;return f||(f=c),r==="stop"?f.stop():f.animate(c.props,c.params),n}function X4(){for(var r=this,e=0;e<r.length;e+=1)r[e].dom7AnimateInstance&&r[e].dom7AnimateInstance.stop()}var Y4="resize scroll".split(" ");function La(r){function e(){for(var t=arguments.length,n=new Array(t),c=0;c<t;c++)n[c]=arguments[c];if(typeof n[0]=="undefined"){for(var f=0;f<this.length;f+=1)Y4.indexOf(r)<0&&(r in this[f]?this[f][r]():Zr(this[f]).trigger(r));return this}return this.on.apply(this,[r].concat(n))}return e}var Z4=La("click"),J4=La("blur"),Q4=La("focus"),ex=La("focusin"),tx=La("focusout"),nx=La("keyup"),rx=La("keydown"),ix=La("keypress"),ox=La("submit"),ax=La("change"),ux=La("mousedown"),sx=La("mousemove"),lx=La("mouseup"),cx=La("mouseenter"),fx=La("mouseleave"),dx=La("mouseout"),px=La("mouseover"),hx=La("touchstart"),gx=La("touchend"),vx=La("touchmove"),mx=La("resize"),yx=La("scroll"),bx=Zr,Ex=U4,wx=Uw,xx=K4,Dx=s4,Sx=C4,Cx=A4,Ax=Gw,_x=J4,Ox=ax,Tx=$4,Bx=Z4,Fx=L4,Px=m4,kx=Yw,Nx=Jw,Ix=Zr,Rx=H4,jx=y4,Lx=V4,Mx=S4,$x=b4,zx=M4,Hx=Q4,Ux=ex,Vx=tx,Wx=qw,qx=f4,Gx=h4,Kx=E4,Xx=D4,Yx=B4,Zx=T4,Jx=x4,Qx=rx,eD=ix,tD=nx,nD=ux,rD=cx,iD=fx,oD=sx,aD=dx,uD=px,sD=lx,lD=F4,cD=P4,fD=i4,dD=p4,pD=r4,hD=o4,gD=d4,vD=c4,mD=R4,yD=j4,bD=_4,ED=O4,wD=k4,xD=N4,DD=Xw,SD=z4,CD=Kw,AD=Vw,_D=Zw,OD=mx,TD=yx,BD=G4,FD=W4,PD=q4,kD=g4,ND=I4,ID=X4,RD=v4,jD=ox,LD=w4,MD=Ww,$D=gx,zD=vx,HD=hx,UD=t4,VD=n4,WD=u4,qD=a4,GD=Qw,KD=e4,XD=l4,YD=Object.defineProperty({$:bx,add:Ex,addClass:wx,animate:xx,animationEnd:Dx,append:Sx,appendTo:Cx,attr:Ax,blur:_x,change:Ox,children:Tx,click:Bx,closest:Fx,css:Px,data:kx,dataset:Nx,default:Ix,detach:Rx,each:jx,empty:Lx,eq:Mx,filter:$x,find:zx,focus:Hx,focusin:Ux,focusout:Vx,hasClass:Wx,height:qx,hide:Gx,html:Kx,index:Xx,insertAfter:Yx,insertBefore:Zx,is:Jx,keydown:Qx,keypress:eD,keyup:tD,mousedown:nD,mouseenter:rD,mouseleave:iD,mousemove:oD,mouseout:aD,mouseover:uD,mouseup:sD,next:lD,nextAll:cD,off:fD,offset:dD,on:pD,once:hD,outerHeight:gD,outerWidth:vD,parent:mD,parents:yD,prepend:bD,prependTo:ED,prev:wD,prevAll:xD,prop:DD,remove:SD,removeAttr:CD,removeClass:AD,removeData:_D,resize:OD,scroll:TD,scrollLeft:BD,scrollTo:FD,scrollTop:PD,show:kD,siblings:ND,stop:ID,styles:RD,submit:jD,text:LD,toggleClass:MD,touchend:$D,touchmove:zD,touchstart:HD,transform:UD,transition:VD,transitionEnd:WD,trigger:qD,val:GD,value:KD,width:XD},"__esModule",{value:!0}),py=9007199254740991,ZD="[object Arguments]",JD="[object Function]",QD="[object GeneratorFunction]",e3=/^(?:0|[1-9]\d*)$/;function t3(r,e){for(var t=-1,n=r?r.length:0;++t<n&&e(r[t],t,r)!==!1;);return r}function n3(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}function r3(r,e){return function(t){return r(e(t))}}var gg=Object.prototype,uv=gg.hasOwnProperty,hy=gg.toString,i3=gg.propertyIsEnumerable,o3=r3(Object.keys,Object);function a3(r,e){var t=gy(r)||v3(r)?n3(r.length,String):[],n=t.length,c=!!n;for(var f in r)(e||uv.call(r,f))&&!(c&&(f=="length"||p3(f,n)))&&t.push(f);return t}var u3=f3(l3),s3=d3();function l3(r,e){return r&&s3(r,e,x3)}function c3(r){if(!h3(r))return o3(r);var e=[];for(var t in Object(r))uv.call(r,t)&&t!="constructor"&&e.push(t);return e}function f3(r,e){return function(t,n){if(t==null)return t;if(!sv(t))return r(t,n);for(var c=t.length,f=e?c:-1,m=Object(t);(e?f--:++f<c)&&n(m[f],f,m)!==!1;);return t}}function d3(r){return function(e,t,n){for(var c=-1,f=Object(e),m=n(e),P=m.length;P--;){var _=m[r?P:++c];if(t(f[_],_,f)===!1)break}return e}}function p3(r,e){return e=e==null?py:e,!!e&&(typeof r=="number"||e3.test(r))&&r>-1&&r%1==0&&r<e}function h3(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||gg;return r===t}function g3(r,e){var t=gy(r)?t3:u3;return t(r,typeof e=="function"?e:D3)}function v3(r){return m3(r)&&uv.call(r,"callee")&&(!i3.call(r,"callee")||hy.call(r)==ZD)}var gy=Array.isArray;function sv(r){return r!=null&&b3(r.length)&&!y3(r)}function m3(r){return w3(r)&&sv(r)}function y3(r){var e=E3(r)?hy.call(r):"";return e==JD||e==QD}function b3(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=py}function E3(r){var e=typeof r;return!!r&&(e=="object"||e=="function")}function w3(r){return!!r&&typeof r=="object"}function x3(r){return sv(r)?a3(r):c3(r)}function D3(r){return r}var S3=g3,C3={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:A3}=C3;{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 dont 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 dont need unpredictable IDs, you can use nanoid/non-secure.")}let vy=r=>crypto.getRandomValues(new Uint8Array(r)),my=(r,e,t)=>{let n=(2<<Math.log(r.length-1)/Math.LN2)-1,c=-~(1.6*n*e/r.length);return()=>{let f="";for(;;){let m=t(c),P=c;for(;P--;)if(f+=r[m[P]&n]||"",f.length===e)return f}}};var _3={nanoid:(r=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(r));for(;r--;){let n=t[r]&63;n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n<63?e+="_":e+="-"}return e},customAlphabet:(r,e)=>my(r,e,vy),customRandom:my,urlAlphabet:A3,random:vy},yy="Expected a function",by=NaN,O3="[object Symbol]",T3=/^\s+|\s+$/g,B3=/^[-+]0x[0-9a-f]+$/i,F3=/^0b[01]+$/i,P3=/^0o[0-7]+$/i,k3=parseInt,N3=typeof Ur=="object"&&Ur&&Ur.Object===Object&&Ur,I3=typeof self=="object"&&self&&self.Object===Object&&self,R3=N3||I3||Function("return this")(),j3=Object.prototype,L3=j3.toString,M3=Math.max,$3=Math.min,lv=function(){return R3.Date.now()};function z3(r,e,t){var n,c,f,m,P,_,x=0,O=!1,k=!1,S=!0;if(typeof r!="function")throw new TypeError(yy);e=Ey(e)||0,vg(t)&&(O=!!t.leading,k="maxWait"in t,f=k?M3(Ey(t.maxWait)||0,e):f,S="trailing"in t?!!t.trailing:S);function B(ye){var Qe=n,qe=c;return n=c=void 0,x=ye,m=r.apply(qe,Qe),m}function W(ye){return x=ye,P=setTimeout(me,e),O?B(ye):m}function re(ye){var Qe=ye-_,qe=ye-x,Ge=e-Qe;return k?$3(Ge,f-qe):Ge}function te(ye){var Qe=ye-_,qe=ye-x;return _===void 0||Qe>=e||Qe<0||k&&qe>=f}function me(){var ye=lv();if(te(ye))return ne(ye);P=setTimeout(me,re(ye))}function ne(ye){return P=void 0,S&&n?B(ye):(n=c=void 0,m)}function X(){P!==void 0&&clearTimeout(P),x=0,n=_=c=P=void 0}function q(){return P===void 0?m:ne(lv())}function Ee(){var ye=lv(),Qe=te(ye);if(n=arguments,c=this,_=ye,Qe){if(P===void 0)return W(_);if(k)return P=setTimeout(me,e),B(_)}return P===void 0&&(P=setTimeout(me,e)),m}return Ee.cancel=X,Ee.flush=q,Ee}function H3(r,e,t){var n=!0,c=!0;if(typeof r!="function")throw new TypeError(yy);return vg(t)&&(n="leading"in t?!!t.leading:n,c="trailing"in t?!!t.trailing:c),z3(r,e,{leading:n,maxWait:e,trailing:c})}function vg(r){var e=typeof r;return!!r&&(e=="object"||e=="function")}function U3(r){return!!r&&typeof r=="object"}function V3(r){return typeof r=="symbol"||U3(r)&&L3.call(r)==O3}function Ey(r){if(typeof r=="number")return r;if(V3(r))return by;if(vg(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=vg(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=r.replace(T3,"");var t=F3.test(r);return t||P3.test(r)?k3(r.slice(2),t?2:8):B3.test(r)?by:+r}var Vp=H3,W3=xl(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});function t(ve,Ve){return document.createElement(ve,Ve)}function n(ve,Ve,Ce){return document.createElementNS(ve,Ve,Ce)}function c(ve){return document.createTextNode(ve)}function f(ve){return document.createComment(ve)}function m(ve,Ve,Ce){ve.insertBefore(Ve,Ce)}function P(ve,Ve){ve.removeChild(Ve)}function _(ve,Ve){ve.appendChild(Ve)}function x(ve){return ve.parentNode}function O(ve){return ve.nextSibling}function k(ve){return ve.tagName}function S(ve,Ve){ve.textContent=Ve}function B(ve){return ve.textContent}function W(ve){return ve.nodeType===1}function re(ve){return ve.nodeType===3}function te(ve){return ve.nodeType===8}const me={createElement:t,createElementNS:n,createTextNode:c,createComment:f,insertBefore:m,removeChild:P,appendChild:_,parentNode:x,nextSibling:O,tagName:k,setTextContent:S,getTextContent:B,isElement:W,isText:re,isComment:te};function ne(ve,Ve,Ce,we,gt){const jt=Ve===void 0?void 0:Ve.key;return{sel:ve,data:Ve,children:Ce,text:we,elm:gt,key:jt}}const X=Array.isArray;function q(ve){return typeof ve=="string"||typeof ve=="number"||ve instanceof String||ve instanceof Number}function Ee(ve){return ve===void 0}function ye(ve){return ve!==void 0}const Qe=ne("",{},[],void 0,void 0);function qe(ve,Ve){var Ce,we;const gt=ve.key===Ve.key,jt=((Ce=ve.data)===null||Ce===void 0?void 0:Ce.is)===((we=Ve.data)===null||we===void 0?void 0:we.is);return ve.sel===Ve.sel&&gt&&jt}function Ge(ve){return ve.sel!==void 0}function zt(ve,Ve,Ce){var we;const gt={};for(let jt=Ve;jt<=Ce;++jt){const Mt=(we=ve[jt])===null||we===void 0?void 0:we.key;Mt!==void 0&&(gt[Mt]=jt)}return gt}const qt=["create","update","remove","destroy","pre","post"];function tn(ve,Ve){const Ce={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},we=Ve!==void 0?Ve:me;for(const Pt of qt)for(const xt of ve){const Yt=xt[Pt];Yt!==void 0&&Ce[Pt].push(Yt)}function gt(Pt){const xt=Pt.id?"#"+Pt.id:"",Yt=Pt.getAttribute("class"),gn=Yt?"."+Yt.split(" ").join("."):"";return ne(we.tagName(Pt).toLowerCase()+xt+gn,{},[],void 0,Pt)}function jt(Pt,xt){return function(){if(--xt===0){const gn=we.parentNode(Pt);we.removeChild(gn,Pt)}}}function Mt(Pt,xt){var Yt,gn;let Vt,Xn=Pt.data;if(Xn!==void 0){const ln=(Yt=Xn.hook)===null||Yt===void 0?void 0:Yt.init;ye(ln)&&(ln(Pt),Xn=Pt.data)}const Gn=Pt.children,Hn=Pt.sel;if(Hn==="!")Ee(Pt.text)&&(Pt.text=""),Pt.elm=we.createComment(Pt.text);else if(Hn!==void 0){const ln=Hn.indexOf("#"),lr=Hn.indexOf(".",ln),cn=ln>0?ln:Hn.length,Rr=lr>0?lr:Hn.length,mr=ln!==-1||lr!==-1?Hn.slice(0,Math.min(cn,Rr)):Hn,Er=Pt.elm=ye(Xn)&&ye(Vt=Xn.ns)?we.createElementNS(Vt,mr,Xn):we.createElement(mr,Xn);for(cn<Rr&&Er.setAttribute("id",Hn.slice(cn+1,Rr)),lr>0&&Er.setAttribute("class",Hn.slice(Rr+1).replace(/\./g," ")),Vt=0;Vt<Ce.create.length;++Vt)Ce.create[Vt](Qe,Pt);if(X(Gn))for(Vt=0;Vt<Gn.length;++Vt){const bi=Gn[Vt];bi!=null&&we.appendChild(Er,Mt(bi,xt))}else q(Pt.text)&&we.appendChild(Er,we.createTextNode(Pt.text));const yi=Pt.data.hook;ye(yi)&&((gn=yi.create)===null||gn===void 0||gn.call(yi,Qe,Pt),yi.insert&&xt.push(Pt))}else Pt.elm=we.createTextNode(Pt.text);return Pt.elm}function Ln(Pt,xt,Yt,gn,Vt,Xn){for(;gn<=Vt;++gn){const Gn=Yt[gn];Gn!=null&&we.insertBefore(Pt,Mt(Gn,Xn),xt)}}function Dr(Pt){var xt,Yt;const gn=Pt.data;if(gn!==void 0){(Yt=(xt=gn==null?void 0:gn.hook)===null||xt===void 0?void 0:xt.destroy)===null||Yt===void 0||Yt.call(xt,Pt);for(let Vt=0;Vt<Ce.destroy.length;++Vt)Ce.destroy[Vt](Pt);if(Pt.children!==void 0)for(let Vt=0;Vt<Pt.children.length;++Vt){const Xn=Pt.children[Vt];Xn!=null&&typeof Xn!="string"&&Dr(Xn)}}}function Ar(Pt,xt,Yt,gn){for(var Vt,Xn;Yt<=gn;++Yt){let Gn,Hn;const ln=xt[Yt];if(ln!=null)if(ye(ln.sel)){Dr(ln),Gn=Ce.remove.length+1,Hn=jt(ln.elm,Gn);for(let cn=0;cn<Ce.remove.length;++cn)Ce.remove[cn](ln,Hn);const lr=(Xn=(Vt=ln==null?void 0:ln.data)===null||Vt===void 0?void 0:Vt.hook)===null||Xn===void 0?void 0:Xn.remove;ye(lr)?lr(ln,Hn):Hn()}else we.removeChild(Pt,ln.elm)}}function ui(Pt,xt,Yt,gn){let Vt=0,Xn=0,Gn=xt.length-1,Hn=xt[0],ln=xt[Gn],lr=Yt.length-1,cn=Yt[0],Rr=Yt[lr],mr,Er,yi,bi;for(;Vt<=Gn&&Xn<=lr;)Hn==null?Hn=xt[++Vt]:ln==null?ln=xt[--Gn]:cn==null?cn=Yt[++Xn]:Rr==null?Rr=Yt[--lr]:qe(Hn,cn)?(Kt(Hn,cn,gn),Hn=xt[++Vt],cn=Yt[++Xn]):qe(ln,Rr)?(Kt(ln,Rr,gn),ln=xt[--Gn],Rr=Yt[--lr]):qe(Hn,Rr)?(Kt(Hn,Rr,gn),we.insertBefore(Pt,Hn.elm,we.nextSibling(ln.elm)),Hn=xt[++Vt],Rr=Yt[--lr]):qe(ln,cn)?(Kt(ln,cn,gn),we.insertBefore(Pt,ln.elm,Hn.elm),ln=xt[--Gn],cn=Yt[++Xn]):(mr===void 0&&(mr=zt(xt,Vt,Gn)),Er=mr[cn.key],Ee(Er)?we.insertBefore(Pt,Mt(cn,gn),Hn.elm):(yi=xt[Er],yi.sel!==cn.sel?we.insertBefore(Pt,Mt(cn,gn),Hn.elm):(Kt(yi,cn,gn),xt[Er]=void 0,we.insertBefore(Pt,yi.elm,Hn.elm))),cn=Yt[++Xn]);(Vt<=Gn||Xn<=lr)&&(Vt>Gn?(bi=Yt[lr+1]==null?null:Yt[lr+1].elm,Ln(Pt,bi,Yt,Xn,lr,gn)):Ar(Pt,xt,Vt,Gn))}function Kt(Pt,xt,Yt){var gn,Vt,Xn,Gn,Hn;const ln=(gn=xt.data)===null||gn===void 0?void 0:gn.hook;(Vt=ln==null?void 0:ln.prepatch)===null||Vt===void 0||Vt.call(ln,Pt,xt);const lr=xt.elm=Pt.elm,cn=Pt.children,Rr=xt.children;if(Pt!==xt){if(xt.data!==void 0){for(let mr=0;mr<Ce.update.length;++mr)Ce.update[mr](Pt,xt);(Gn=(Xn=xt.data.hook)===null||Xn===void 0?void 0:Xn.update)===null||Gn===void 0||Gn.call(Xn,Pt,xt)}Ee(xt.text)?ye(cn)&&ye(Rr)?cn!==Rr&&ui(lr,cn,Rr,Yt):ye(Rr)?(ye(Pt.text)&&we.setTextContent(lr,""),Ln(lr,null,Rr,0,Rr.length-1,Yt)):ye(cn)?Ar(lr,cn,0,cn.length-1):ye(Pt.text)&&we.setTextContent(lr,""):Pt.text!==xt.text&&(ye(cn)&&Ar(lr,cn,0,cn.length-1),we.setTextContent(lr,xt.text)),(Hn=ln==null?void 0:ln.postpatch)===null||Hn===void 0||Hn.call(ln,Pt,xt)}}return function(xt,Yt){let gn,Vt,Xn;const Gn=[];for(gn=0;gn<Ce.pre.length;++gn)Ce.pre[gn]();for(Ge(xt)||(xt=gt(xt)),qe(xt,Yt)?Kt(xt,Yt,Gn):(Vt=xt.elm,Xn=we.parentNode(Vt),Mt(Yt,Gn),Xn!==null&&(we.insertBefore(Xn,Yt.elm,we.nextSibling(Vt)),Ar(Xn,[xt],0,0))),gn=0;gn<Gn.length;++gn)Gn[gn].data.hook.insert(Gn[gn]);for(gn=0;gn<Ce.post.length;++gn)Ce.post[gn]();return Yt}}function an(ve,Ve,Ce){if(ve.ns="http://www.w3.org/2000/svg",Ce!=="foreignObject"&&Ve!==void 0)for(let we=0;we<Ve.length;++we){const gt=Ve[we].data;gt!==void 0&&an(gt,Ve[we].children,Ve[we].sel)}}function kn(ve,Ve,Ce){let we={},gt,jt,Mt;if(Ce!==void 0?(Ve!==null&&(we=Ve),X(Ce)?gt=Ce:q(Ce)?jt=Ce.toString():Ce&&Ce.sel&&(gt=[Ce])):Ve!=null&&(X(Ve)?gt=Ve:q(Ve)?jt=Ve.toString():Ve&&Ve.sel?gt=[Ve]:we=Ve),gt!==void 0)for(Mt=0;Mt<gt.length;++Mt)q(gt[Mt])&&(gt[Mt]=ne(void 0,void 0,void 0,gt[Mt],void 0));return ve[0]==="s"&&ve[1]==="v"&&ve[2]==="g"&&(ve.length===3||ve[3]==="."||ve[3]==="#")&&an(we,gt,ve),ne(ve,we,gt,jt,void 0)}function At(ve,Ve){ve.data.fn=Ve.data.fn,ve.data.args=Ve.data.args,Ve.data=ve.data,Ve.children=ve.children,Ve.text=ve.text,Ve.elm=ve.elm}function Wn(ve){const Ve=ve.data,Ce=Ve.fn(...Ve.args);At(Ce,ve)}function Ae(ve,Ve){let Ce;const we=ve.data,gt=Ve.data,jt=we.args,Mt=gt.args;if(we.fn!==gt.fn||jt.length!==Mt.length){At(gt.fn(...Mt),Ve);return}for(Ce=0;Ce<Mt.length;++Ce)if(jt[Ce]!==Mt[Ce]){At(gt.fn(...Mt),Ve);return}At(ve,Ve)}const Dt=function(Ve,Ce,we,gt){return gt===void 0&&(gt=we,we=Ce,Ce=void 0),kn(Ve,{key:Ce,hook:{init:Wn,prepatch:Ae},fn:we,args:gt})};function hn(ve,Ve){const Ce=ve.data.attachData;Ve.data.attachData.placeholder=Ce.placeholder,Ve.data.attachData.real=Ce.real,ve.elm=ve.data.attachData.real}function Ot(ve,Ve){Ve.elm=Ve.data.attachData.placeholder}function Sn(ve){ve.elm!==void 0&&ve.elm.parentNode.removeChild(ve.elm),ve.elm=ve.data.attachData.real}function be(ve,Ve){const Ce=Ve.elm,we=Ve.data.attachData,gt=document.createElement("span");Ve.elm=gt,we.target.appendChild(Ce),we.real=Ce,we.placeholder=gt}function de(ve,Ve){Ve.data===void 0&&(Ve.data={}),Ve.data.hook===void 0&&(Ve.data.hook={});const Ce=Ve.data,we=Ve.data.hook;return Ce.attachData={target:ve,placeholder:void 0,real:void 0},we.create=be,we.prepatch=hn,we.postpatch=Ot,we.destroy=Sn,Ve}function xe(ve,Ve){const Ce=Ve!==void 0?Ve:me;let we;if(Ce.isElement(ve)){const gt=ve.id?"#"+ve.id:"",jt=ve.getAttribute("class"),Mt=jt?"."+jt.split(" ").join("."):"",Ln=Ce.tagName(ve).toLowerCase()+gt+Mt,Dr={},Ar=[];let ui,Kt,Pt;const xt=ve.attributes,Yt=ve.childNodes;for(Kt=0,Pt=xt.length;Kt<Pt;Kt++)ui=xt[Kt].nodeName,ui!=="id"&&ui!=="class"&&(Dr[ui]=xt[Kt].nodeValue);for(Kt=0,Pt=Yt.length;Kt<Pt;Kt++)Ar.push(xe(Yt[Kt],Ve));return ne(Ln,{attrs:Dr},Ar,void 0,ve)}else return Ce.isText(ve)?(we=Ce.getTextContent(ve),ne(void 0,void 0,void 0,we,ve)):Ce.isComment(ve)?(we=Ce.getTextContent(ve),ne("!",{},[],we,ve)):ne("",{},[],void 0,ve)}const Ie="http://www.w3.org/1999/xlink",Ye="http://www.w3.org/XML/1998/namespace",oe=58,ht=120;function Gt(ve,Ve){let Ce;const we=Ve.elm;let gt=ve.data.attrs,jt=Ve.data.attrs;if(!(!gt&&!jt)&&gt!==jt){gt=gt||{},jt=jt||{};for(Ce in jt){const Mt=jt[Ce];gt[Ce]!==Mt&&(Mt===!0?we.setAttribute(Ce,""):Mt===!1?we.removeAttribute(Ce):Ce.charCodeAt(0)!==ht?we.setAttribute(Ce,Mt):Ce.charCodeAt(3)===oe?we.setAttributeNS(Ye,Ce,Mt):Ce.charCodeAt(5)===oe?we.setAttributeNS(Ie,Ce,Mt):we.setAttribute(Ce,Mt))}for(Ce in gt)Ce in jt||we.removeAttribute(Ce)}}const xn={create:Gt,update:Gt};function bn(ve,Ve){let Ce,we;const gt=Ve.elm;let jt=ve.data.class,Mt=Ve.data.class;if(!(!jt&&!Mt)&&jt!==Mt){jt=jt||{},Mt=Mt||{};for(we in jt)jt[we]&&!Object.prototype.hasOwnProperty.call(Mt,we)&&gt.classList.remove(we);for(we in Mt)Ce=Mt[we],Ce!==jt[we]&&gt.classList[Ce?"add":"remove"](we)}}const at={create:bn,update:bn},un=/[A-Z]/g;function Cn(ve,Ve){const Ce=Ve.elm;let we=ve.data.dataset,gt=Ve.data.dataset,jt;if(!we&&!gt||we===gt)return;we=we||{},gt=gt||{};const Mt=Ce.dataset;for(jt in we)gt[jt]||(Mt?jt in Mt&&delete Mt[jt]:Ce.removeAttribute("data-"+jt.replace(un,"-$&").toLowerCase()));for(jt in gt)we[jt]!==gt[jt]&&(Mt?Mt[jt]=gt[jt]:Ce.setAttribute("data-"+jt.replace(un,"-$&").toLowerCase(),gt[jt]))}const Xt={create:Cn,update:Cn};function Bn(ve,Ve,Ce){if(typeof ve=="function")ve.call(Ve,Ce,Ve);else if(typeof ve=="object")for(let we=0;we<ve.length;we++)Bn(ve[we],Ve,Ce)}function er(ve,Ve){const Ce=ve.type,we=Ve.data.on;we&&we[Ce]&&Bn(we[Ce],Ve,ve)}function $t(){return function ve(Ve){er(Ve,ve.vnode)}}function zn(ve,Ve){const Ce=ve.data.on,we=ve.listener,gt=ve.elm,jt=Ve&&Ve.data.on,Mt=Ve&&Ve.elm;let Ln;if(Ce!==jt){if(Ce&&we)if(jt)for(Ln in Ce)jt[Ln]||gt.removeEventListener(Ln,we,!1);else for(Ln in Ce)gt.removeEventListener(Ln,we,!1);if(jt){const Dr=Ve.listener=ve.listener||$t();if(Dr.vnode=Ve,Ce)for(Ln in jt)Ce[Ln]||Mt.addEventListener(Ln,Dr,!1);else for(Ln in jt)Mt.addEventListener(Ln,Dr,!1)}}}const Pr={create:zn,update:zn,destroy:zn};function Mr(ve,Ve){let Ce,we,gt;const jt=Ve.elm;let Mt=ve.data.props,Ln=Ve.data.props;if(!(!Mt&&!Ln)&&Mt!==Ln){Mt=Mt||{},Ln=Ln||{};for(Ce in Ln)we=Ln[Ce],gt=Mt[Ce],gt!==we&&(Ce!=="value"||jt[Ce]!==we)&&(jt[Ce]=we)}}const qn={create:Mr,update:Mr},Nn=typeof window!="undefined"&&window.requestAnimationFrame.bind(window)||setTimeout,Nr=function(ve){Nn(function(){Nn(ve)})};let jn=!1;function br(ve,Ve,Ce){Nr(function(){ve[Ve]=Ce})}function Ut(ve,Ve){let Ce,we;const gt=Ve.elm;let jt=ve.data.style,Mt=Ve.data.style;if(!jt&&!Mt||jt===Mt)return;jt=jt||{},Mt=Mt||{};const Ln="delayed"in jt;for(we in jt)Mt[we]||(we[0]==="-"&&we[1]==="-"?gt.style.removeProperty(we):gt.style[we]="");for(we in Mt)if(Ce=Mt[we],we==="delayed"&&Mt.delayed)for(const Dr in Mt.delayed)Ce=Mt.delayed[Dr],(!Ln||Ce!==jt.delayed[Dr])&&br(gt.style,Dr,Ce);else we!=="remove"&&Ce!==jt[we]&&(we[0]==="-"&&we[1]==="-"?gt.style.setProperty(we,Ce):gt.style[we]=Ce)}function fr(ve){let Ve,Ce;const we=ve.elm,gt=ve.data.style;if(!(!gt||!(Ve=gt.destroy)))for(Ce in Ve)we.style[Ce]=Ve[Ce]}function fi(ve,Ve){const Ce=ve.data.style;if(!Ce||!Ce.remove){Ve();return}jn||(ve.elm.offsetLeft,jn=!0);let we;const gt=ve.elm;let jt=0;const Mt=Ce.remove;let Ln=0;const Dr=[];for(we in Mt)Dr.push(we),gt.style[we]=Mt[we];const ui=getComputedStyle(gt)["transition-property"].split(", ");for(;jt<ui.length;++jt)Dr.indexOf(ui[jt])!==-1&&Ln++;gt.addEventListener("transitionend",function(Kt){Kt.target===gt&&--Ln,Ln===0&&Ve()})}function Vr(){jn=!1}const Jr={pre:Vr,create:Ut,update:Ut,destroy:fr,remove:fi};function Ir(ve,Ve){for(const Ce of ve)Ce!=null&&Ce!==!1&&Ce!==""&&(Array.isArray(Ce)?Ir(Ce,Ve):typeof Ce=="string"||typeof Ce=="number"||typeof Ce=="boolean"?Ve.push(ne(void 0,void 0,void 0,String(Ce),void 0)):Ve.push(Ce));return Ve}function Tr(ve,Ve,...Ce){const we=Ir(Ce,[]);return typeof ve=="function"?ve(Ve,we):we.length===1&&!we[0].sel&&we[0].text?kn(ve,Ve,we[0].text):kn(ve,Ve,we)}Tr||(Tr={}),e.array=X,e.attachTo=de,e.attributesModule=xn,e.classModule=at,e.datasetModule=Xt,e.eventListenersModule=Pr,e.h=kn,e.htmlDomApi=me,e.init=tn,e.jsx=Tr,e.primitive=q,e.propsModule=qn,e.styleModule=Jr,e.thunk=Dt,e.toVNode=xe,e.vnode=ne}),q3=1/0,G3="[object Symbol]",K3=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,X3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mg="\\ud800-\\udfff",wy="\\u0300-\\u036f\\ufe20-\\ufe23",xy="\\u20d0-\\u20f0",Dy="\\u2700-\\u27bf",Sy="a-z\\xdf-\\xf6\\xf8-\\xff",Y3="\\xac\\xb1\\xd7\\xf7",Z3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",J3="\\u2000-\\u206f",Q3=" \\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",Cy="A-Z\\xc0-\\xd6\\xd8-\\xde",Ay="\\ufe0e\\ufe0f",_y=Y3+Z3+J3+Q3,cv="[']",e6="["+mg+"]",Oy="["+_y+"]",yg="["+wy+xy+"]",Ty="\\d+",t6="["+Dy+"]",By="["+Sy+"]",Fy="[^"+mg+_y+Ty+Dy+Sy+Cy+"]",fv="\\ud83c[\\udffb-\\udfff]",n6="(?:"+yg+"|"+fv+")",Py="[^"+mg+"]",dv="(?:\\ud83c[\\udde6-\\uddff]){2}",pv="[\\ud800-\\udbff][\\udc00-\\udfff]",Qd="["+Cy+"]",ky="\\u200d",Ny="(?:"+By+"|"+Fy+")",r6="(?:"+Qd+"|"+Fy+")",Iy="(?:"+cv+"(?:d|ll|m|re|s|t|ve))?",Ry="(?:"+cv+"(?:D|LL|M|RE|S|T|VE))?",jy=n6+"?",Ly="["+Ay+"]?",i6="(?:"+ky+"(?:"+[Py,dv,pv].join("|")+")"+Ly+jy+")*",My=Ly+jy+i6,o6="(?:"+[t6,dv,pv].join("|")+")"+My,a6="(?:"+[Py+yg+"?",yg,dv,pv,e6].join("|")+")",u6=RegExp(cv,"g"),s6=RegExp(yg,"g"),l6=RegExp(fv+"(?="+fv+")|"+a6+My,"g"),c6=RegExp([Qd+"?"+By+"+"+Iy+"(?="+[Oy,Qd,"$"].join("|")+")",r6+"+"+Ry+"(?="+[Oy,Qd+Ny,"$"].join("|")+")",Qd+"?"+Ny+"+"+Iy,Qd+"+"+Ry,Ty,o6].join("|"),"g"),f6=RegExp("["+ky+mg+wy+xy+Ay+"]"),d6=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,p6={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},h6=typeof Ur=="object"&&Ur&&Ur.Object===Object&&Ur,g6=typeof self=="object"&&self&&self.Object===Object&&self,v6=h6||g6||Function("return this")();function m6(r,e,t,n){var c=-1,f=r?r.length:0;for(n&&f&&(t=r[++c]);++c<f;)t=e(t,r[c],c,r);return t}function y6(r){return r.split("")}function b6(r){return r.match(K3)||[]}function E6(r){return function(e){return r==null?void 0:r[e]}}var w6=E6(p6);function $y(r){return f6.test(r)}function x6(r){return d6.test(r)}function D6(r){return $y(r)?S6(r):y6(r)}function S6(r){return r.match(l6)||[]}function C6(r){return r.match(c6)||[]}var A6=Object.prototype,_6=A6.toString,zy=v6.Symbol,Hy=zy?zy.prototype:void 0,Uy=Hy?Hy.toString:void 0;function O6(r,e,t){var n=-1,c=r.length;e<0&&(e=-e>c?0:c+e),t=t>c?c:t,t<0&&(t+=c),c=e>t?0:t-e>>>0,e>>>=0;for(var f=Array(c);++n<c;)f[n]=r[n+e];return f}function T6(r){if(typeof r=="string")return r;if(N6(r))return Uy?Uy.call(r):"";var e=r+"";return e=="0"&&1/r==-q3?"-0":e}function B6(r,e,t){var n=r.length;return t=t===void 0?n:t,!e&&t>=n?r:O6(r,e,t)}function F6(r){return function(e){e=bg(e);var t=$y(e)?D6(e):void 0,n=t?t[0]:e.charAt(0),c=t?B6(t,1).join(""):e.slice(1);return n[r]()+c}}function P6(r){return function(e){return m6(M6(j6(e).replace(u6,"")),r,"")}}function k6(r){return!!r&&typeof r=="object"}function N6(r){return typeof r=="symbol"||k6(r)&&_6.call(r)==G3}function bg(r){return r==null?"":T6(r)}var I6=P6(function(r,e,t){return e=e.toLowerCase(),r+(t?R6(e):e)});function R6(r){return L6(bg(r).toLowerCase())}function j6(r){return r=bg(r),r&&r.replace(X3,w6).replace(s6,"")}var L6=F6("toUpperCase");function M6(r,e,t){return r=bg(r),e=t?void 0:e,e===void 0?x6(r)?C6(r):b6(r):r.match(e)||[]}for(var $6=I6,z6=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),hv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Vy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:z6?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},gv={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},Eg=1;Eg<20;Eg++)gv["f"+Eg]=111+Eg;function wg(r,e,t){e&&!("byKey"in e)&&(t=e,e=null),Array.isArray(r)||(r=[r]);var n=r.map(function(m){return Wy(m,e)}),c=function(P){return n.some(function(_){return qy(_,P)})},f=t==null?c:c(t);return f}function H6(r,e){return wg(r,e)}function U6(r,e){return wg(r,{byKey:!0},e)}function Wy(r,e){var t=e&&e.byKey,n={};r=r.replace("++","+add");var c=r.split("+"),f=c.length;for(var m in hv)n[hv[m]]=!1;var P=!0,_=!1,x=void 0;try{for(var O=c[Symbol.iterator](),k;!(P=(k=O.next()).done);P=!0){var S=k.value,B=S.endsWith("?")&&S.length>1;B&&(S=S.slice(0,-1));var W=vv(S),re=hv[W];if(S.length>1&&!re&&!Vy[S]&&!gv[W])throw new TypeError('Unknown modifier: "'+S+'"');(f===1||!re)&&(t?n.key=W:n.which=Gy(S)),re&&(n[re]=B?null:!0)}}catch(te){_=!0,x=te}finally{try{!P&&O.return&&O.return()}finally{if(_)throw x}}return n}function qy(r,e){for(var t in r){var n=r[t],c=void 0;if(n!=null&&(t==="key"&&e.key!=null?c=e.key.toLowerCase():t==="which"?c=n===91&&e.which===93?91:e.which:c=e[t],!(c==null&&n===!1)&&c!==n))return!1}return!0}function Gy(r){r=vv(r);var e=gv[r]||r.toUpperCase().charCodeAt(0);return e}function vv(r){return r=r.toLowerCase(),r=Vy[r]||r,r}var V6=wg,W6=wg,q6=H6,G6=U6,K6=Wy,X6=qy,Y6=Gy,Z6=vv,J6=Object.defineProperty({default:V6,isHotkey:W6,isCodeHotkey:q6,isKeyHotkey:G6,parseHotkey:K6,compareHotkey:X6,toKeyCode:Y6,toKeyName:Z6},"__esModule",{value:!0}),Q6="Expected a function",Ky=NaN,eS="[object Symbol]",tS=/^\s+|\s+$/g,nS=/^[-+]0x[0-9a-f]+$/i,rS=/^0b[01]+$/i,iS=/^0o[0-7]+$/i,oS=parseInt,aS=typeof Ur=="object"&&Ur&&Ur.Object===Object&&Ur,uS=typeof self=="object"&&self&&self.Object===Object&&self,sS=aS||uS||Function("return this")(),lS=Object.prototype,cS=lS.toString,fS=Math.max,dS=Math.min,mv=function(){return sS.Date.now()};function pS(r,e,t){var n,c,f,m,P,_,x=0,O=!1,k=!1,S=!0;if(typeof r!="function")throw new TypeError(Q6);e=Xy(e)||0,yv(t)&&(O=!!t.leading,k="maxWait"in t,f=k?fS(Xy(t.maxWait)||0,e):f,S="trailing"in t?!!t.trailing:S);function B(ye){var Qe=n,qe=c;return n=c=void 0,x=ye,m=r.apply(qe,Qe),m}function W(ye){return x=ye,P=setTimeout(me,e),O?B(ye):m}function re(ye){var Qe=ye-_,qe=ye-x,Ge=e-Qe;return k?dS(Ge,f-qe):Ge}function te(ye){var Qe=ye-_,qe=ye-x;return _===void 0||Qe>=e||Qe<0||k&&qe>=f}function me(){var ye=mv();if(te(ye))return ne(ye);P=setTimeout(me,re(ye))}function ne(ye){return P=void 0,S&&n?B(ye):(n=c=void 0,m)}function X(){P!==void 0&&clearTimeout(P),x=0,n=_=c=P=void 0}function q(){return P===void 0?m:ne(mv())}function Ee(){var ye=mv(),Qe=te(ye);if(n=arguments,c=this,_=ye,Qe){if(P===void 0)return W(_);if(k)return P=setTimeout(me,e),B(_)}return P===void 0&&(P=setTimeout(me,e)),m}return Ee.cancel=X,Ee.flush=q,Ee}function yv(r){var e=typeof r;return!!r&&(e=="object"||e=="function")}function hS(r){return!!r&&typeof r=="object"}function gS(r){return typeof r=="symbol"||hS(r)&&cS.call(r)==eS}function Xy(r){if(typeof r=="number")return r;if(gS(r))return Ky;if(yv(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=yv(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=r.replace(tS,"");var t=rS.test(r);return t||iS.test(r)?oS(r.slice(2),t?2:8):nS.test(r)?Ky:+r}var vS=pS,mS=xl(function(r,e){var t=200,n="__lodash_hash_undefined__",c=9007199254740991,f="[object Arguments]",m="[object Array]",P="[object Boolean]",_="[object Date]",x="[object Error]",O="[object Function]",k="[object GeneratorFunction]",S="[object Map]",B="[object Number]",W="[object Object]",re="[object Promise]",te="[object RegExp]",me="[object Set]",ne="[object String]",X="[object Symbol]",q="[object WeakMap]",Ee="[object ArrayBuffer]",ye="[object DataView]",Qe="[object Float32Array]",qe="[object Float64Array]",Ge="[object Int8Array]",zt="[object Int16Array]",qt="[object Int32Array]",tn="[object Uint8Array]",an="[object Uint8ClampedArray]",kn="[object Uint16Array]",At="[object Uint32Array]",Wn=/[\\^$.*+?()[\]{}|]/g,Ae=/\w*$/,Dt=/^\[object .+?Constructor\]$/,hn=/^(?:0|[1-9]\d*)$/,Ot={};Ot[f]=Ot[m]=Ot[Ee]=Ot[ye]=Ot[P]=Ot[_]=Ot[Qe]=Ot[qe]=Ot[Ge]=Ot[zt]=Ot[qt]=Ot[S]=Ot[B]=Ot[W]=Ot[te]=Ot[me]=Ot[ne]=Ot[X]=Ot[tn]=Ot[an]=Ot[kn]=Ot[At]=!0,Ot[x]=Ot[O]=Ot[q]=!1;var Sn=typeof Ur=="object"&&Ur&&Ur.Object===Object&&Ur,be=typeof self=="object"&&self&&self.Object===Object&&self,de=Sn||be||Function("return this")(),xe=e&&!e.nodeType&&e,Ie=xe&&!0&&r&&!r.nodeType&&r,Ye=Ie&&Ie.exports===xe;function oe(b,L){return b.set(L[0],L[1]),b}function ht(b,L){return b.add(L),b}function Gt(b,L){for(var le=-1,He=b?b.length:0;++le<He&&L(b[le],le,b)!==!1;);return b}function xn(b,L){for(var le=-1,He=L.length,An=b.length;++le<He;)b[An+le]=L[le];return b}function bn(b,L,le,He){var An=-1,Dn=b?b.length:0;for(He&&Dn&&(le=b[++An]);++An<Dn;)le=L(le,b[An],An,b);return le}function at(b,L){for(var le=-1,He=Array(b);++le<b;)He[le]=L(le);return He}function un(b,L){return b==null?void 0:b[L]}function Cn(b){var L=!1;if(b!=null&&typeof b.toString!="function")try{L=!!(b+"")}catch(le){}return L}function Xt(b){var L=-1,le=Array(b.size);return b.forEach(function(He,An){le[++L]=[An,He]}),le}function Bn(b,L){return function(le){return b(L(le))}}function er(b){var L=-1,le=Array(b.size);return b.forEach(function(He){le[++L]=He}),le}var $t=Array.prototype,zn=Function.prototype,Pr=Object.prototype,Mr=de["__core-js_shared__"],qn=(function(){var b=/[^.]+$/.exec(Mr&&Mr.keys&&Mr.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""})(),Nn=zn.toString,Nr=Pr.hasOwnProperty,jn=Pr.toString,br=RegExp("^"+Nn.call(Nr).replace(Wn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ut=Ye?de.Buffer:void 0,fr=de.Symbol,fi=de.Uint8Array,Vr=Bn(Object.getPrototypeOf,Object),Jr=Object.create,Ir=Pr.propertyIsEnumerable,Tr=$t.splice,ve=Object.getOwnPropertySymbols,Ve=Ut?Ut.isBuffer:void 0,Ce=Bn(Object.keys,Object),we=Zi(de,"DataView"),gt=Zi(de,"Map"),jt=Zi(de,"Promise"),Mt=Zi(de,"Set"),Ln=Zi(de,"WeakMap"),Dr=Zi(Object,"create"),Ar=Wr(we),ui=Wr(gt),Kt=Wr(jt),Pt=Wr(Mt),xt=Wr(Ln),Yt=fr?fr.prototype:void 0,gn=Yt?Yt.valueOf:void 0;function Vt(b){var L=-1,le=b?b.length:0;for(this.clear();++L<le;){var He=b[L];this.set(He[0],He[1])}}function Xn(){this.__data__=Dr?Dr(null):{}}function Gn(b){return this.has(b)&&delete this.__data__[b]}function Hn(b){var L=this.__data__;if(Dr){var le=L[b];return le===n?void 0:le}return Nr.call(L,b)?L[b]:void 0}function ln(b){var L=this.__data__;return Dr?L[b]!==void 0:Nr.call(L,b)}function lr(b,L){var le=this.__data__;return le[b]=Dr&&L===void 0?n:L,this}Vt.prototype.clear=Xn,Vt.prototype.delete=Gn,Vt.prototype.get=Hn,Vt.prototype.has=ln,Vt.prototype.set=lr;function cn(b){var L=-1,le=b?b.length:0;for(this.clear();++L<le;){var He=b[L];this.set(He[0],He[1])}}function Rr(){this.__data__=[]}function mr(b){var L=this.__data__,le=Ki(L,b);if(le<0)return!1;var He=L.length-1;return le==He?L.pop():Tr.call(L,le,1),!0}function Er(b){var L=this.__data__,le=Ki(L,b);return le<0?void 0:L[le][1]}function yi(b){return Ki(this.__data__,b)>-1}function bi(b,L){var le=this.__data__,He=Ki(le,b);return He<0?le.push([b,L]):le[He][1]=L,this}cn.prototype.clear=Rr,cn.prototype.delete=mr,cn.prototype.get=Er,cn.prototype.has=yi,cn.prototype.set=bi;function _r(b){var L=-1,le=b?b.length:0;for(this.clear();++L<le;){var He=b[L];this.set(He[0],He[1])}}function Hr(){this.__data__={hash:new Vt,map:new(gt||cn),string:new Vt}}function Ui(b){return Eo(this,b).delete(b)}function ri(b){return Eo(this,b).get(b)}function mo(b){return Eo(this,b).has(b)}function Qr(b,L){return Eo(this,b).set(b,L),this}_r.prototype.clear=Hr,_r.prototype.delete=Ui,_r.prototype.get=ri,_r.prototype.has=mo,_r.prototype.set=Qr;function ii(b){this.__data__=new cn(b)}function Co(){this.__data__=new cn}function zo(b){return this.__data__.delete(b)}function Ca(b){return this.__data__.get(b)}function Di(b){return this.__data__.has(b)}function Gi(b,L){var le=this.__data__;if(le instanceof cn){var He=le.__data__;if(!gt||He.length<t-1)return He.push([b,L]),this;le=this.__data__=new _r(He)}return le.set(b,L),this}ii.prototype.clear=Co,ii.prototype.delete=zo,ii.prototype.get=Ca,ii.prototype.has=Di,ii.prototype.set=Gi;function no(b,L){var le=Bi(b)||Ao(b)?at(b.length,String):[],He=le.length,An=!!He;for(var Dn in b)(L||Nr.call(b,Dn))&&!(An&&(Dn=="length"||Io(Dn,He)))&&le.push(Dn);return le}function Ho(b,L,le){var He=b[L];(!(Nr.call(b,L)&&lo(He,le))||le===void 0&&!(L in b))&&(b[L]=le)}function Ki(b,L){for(var le=b.length;le--;)if(lo(b[le][0],L))return le;return-1}function Si(b,L){return b&&Yi(L,ho(L),b)}function Ei(b,L,le,He,An,Dn,dr){var Or;if(He&&(Or=Dn?He(b,An,Dn,dr):He(b)),Or!==void 0)return Or;if(!qr(b))return b;var Fi=Bi(b);if(Fi){if(Or=oa(b),!L)return Ti(b,Or)}else{var kr=No(b),pi=kr==O||kr==k;if(pa(b))return jr(b,L);if(kr==W||kr==f||pi&&!Dn){if(Cn(b))return Dn?b:{};if(Or=si(pi?{}:b),!L)return Aa(b,Si(Or,b))}else{if(!Ot[kr])return Dn?b:{};Or=_a(b,kr,Ei,L)}}dr||(dr=new ii);var Ri=dr.get(b);if(Ri)return Ri;if(dr.set(b,Or),!Fi)var li=le?ko(b):ho(b);return Gt(li||b,function(Pi,ji){li&&(ji=Pi,Pi=b[ji]),Ho(Or,ji,Ei(Pi,L,le,He,ji,b,dr))}),Or}function uo(b){return qr(b)?Jr(b):{}}function yo(b,L,le){var He=L(b);return Bi(b)?He:xn(He,le(b))}function wi(b){return jn.call(b)}function Uo(b){if(!qr(b)||Ma(b))return!1;var L=Vo(b)||Cn(b)?br:Dt;return L.test(Wr(b))}function bo(b){if(!Ro(b))return Ce(b);var L=[];for(var le in Object(b))Nr.call(b,le)&&le!="constructor"&&L.push(le);return L}function jr(b,L){if(L)return b.slice();var le=new b.constructor(b.length);return b.copy(le),le}function so(b){var L=new b.constructor(b.byteLength);return new fi(L).set(new fi(b)),L}function Ci(b,L){var le=L?so(b.buffer):b.buffer;return new b.constructor(le,b.byteOffset,b.byteLength)}function Xi(b,L,le){var He=L?le(Xt(b),!0):Xt(b);return bn(He,oe,new b.constructor)}function Po(b){var L=new b.constructor(b.source,Ae.exec(b));return L.lastIndex=b.lastIndex,L}function di(b,L,le){var He=L?le(er(b),!0):er(b);return bn(He,ht,new b.constructor)}function po(b){return gn?Object(gn.call(b)):{}}function du(b,L){var le=L?so(b.buffer):b.buffer;return new b.constructor(le,b.byteOffset,b.length)}function Ti(b,L){var le=-1,He=b.length;for(L||(L=Array(He));++le<He;)L[le]=b[le];return L}function Yi(b,L,le,He){le||(le={});for(var An=-1,Dn=L.length;++An<Dn;){var dr=L[An],Or=He?He(le[dr],b[dr],dr,le,b):void 0;Ho(le,dr,Or===void 0?b[dr]:Or)}return le}function Aa(b,L){return Yi(b,Ai(b),L)}function ko(b){return yo(b,ho,Ai)}function Eo(b,L){var le=b.__data__;return pu(L)?le[typeof L=="string"?"string":"hash"]:le.map}function Zi(b,L){var le=un(b,L);return Uo(le)?le:void 0}var Ai=ve?Bn(ve,Object):Wo,No=wi;(we&&No(new we(new ArrayBuffer(1)))!=ye||gt&&No(new gt)!=S||jt&&No(jt.resolve())!=re||Mt&&No(new Mt)!=me||Ln&&No(new Ln)!=q)&&(No=function(b){var L=jn.call(b),le=L==W?b.constructor:void 0,He=le?Wr(le):void 0;if(He)switch(He){case Ar:return ye;case ui:return S;case Kt:return re;case Pt:return me;case xt:return q}return L});function oa(b){var L=b.length,le=b.constructor(L);return L&&typeof b[0]=="string"&&Nr.call(b,"index")&&(le.index=b.index,le.input=b.input),le}function si(b){return typeof b.constructor=="function"&&!Ro(b)?uo(Vr(b)):{}}function _a(b,L,le,He){var An=b.constructor;switch(L){case Ee:return so(b);case P:case _:return new An(+b);case ye:return Ci(b,He);case Qe:case qe:case Ge:case zt:case qt:case tn:case an:case kn:case At:return du(b,He);case S:return Xi(b,He,le);case B:case ne:return new An(b);case te:return Po(b);case me:return di(b,He,le);case X:return po(b)}}function Io(b,L){return L=L==null?c:L,!!L&&(typeof b=="number"||hn.test(b))&&b>-1&&b%1==0&&b<L}function pu(b){var L=typeof b;return L=="string"||L=="number"||L=="symbol"||L=="boolean"?b!=="__proto__":b===null}function Ma(b){return!!qn&&qn in b}function Ro(b){var L=b&&b.constructor,le=typeof L=="function"&&L.prototype||Pr;return b===le}function Wr(b){if(b!=null){try{return Nn.call(b)}catch(L){}try{return b+""}catch(L){}}return""}function Za(b){return Ei(b,!0,!0)}function lo(b,L){return b===L||b!==b&&L!==L}function Ao(b){return co(b)&&Nr.call(b,"callee")&&(!Ir.call(b,"callee")||jn.call(b)==f)}var Bi=Array.isArray;function jo(b){return b!=null&&Ii(b.length)&&!Vo(b)}function co(b){return ha(b)&&jo(b)}var pa=Ve||Oa;function Vo(b){var L=qr(b)?jn.call(b):"";return L==O||L==k}function Ii(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=c}function qr(b){var L=typeof b;return!!b&&(L=="object"||L=="function")}function ha(b){return!!b&&typeof b=="object"}function ho(b){return jo(b)?no(b):bo(b)}function Wo(){return[]}function Oa(){return!1}r.exports=Za}),yS=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},ep;function Yy(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var bS=0;function ES(r){return"__private_"+bS+++"_"+r}function wS(r,e,t){const n=[];return r.forEach(c=>typeof c!="string"?n.push(c):e[Symbol.split](c).forEach((f,m,P)=>{f!==""&&n.push(f),m<P.length-1&&n.push(t)})),n}/**
* 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 Zy(r,e){const t=/\$/g,n="$$$$";let c=[r];if(e==null)return c;for(const f of Object.keys(e))if(f!=="_"){let m=e[f];typeof m=="string"&&(m=t[Symbol.replace](m,n)),c=wS(c,new RegExp(`%\\{${f}\\}`,"g"),m)}return c}var Jy=(ep=ES("apply"),class{constructor(e){Object.defineProperty(this,ep,{value:xS}),this.locale={strings:{},pluralize(t){return t===1?0:1}},Array.isArray(e)?e.forEach(Yy(this,ep)[ep],this):Yy(this,ep)[ep](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!yS(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&typeof t.smart_count!="undefined"){const f=this.locale.pluralize(t.smart_count);return Zy(n[f],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Zy(n,t)}});function xS(r){if(!(r!=null&&r.strings))return;const e=this.locale;this.locale={...e,strings:{...e.strings,...r.strings}},this.locale.pluralize=r.pluralize||e.pluralize}var Qy=function(){var e={},t=e._fns={};e.emit=function(m,P,_,x,O,k,S){var B=n(m);B.length&&c(m,B,[P,_,x,O,k,S])},e.on=function(m,P){t[m]||(t[m]=[]),t[m].push(P)},e.once=function(m,P){function _(){P.apply(this,arguments),e.off(m,_)}this.on(m,_)},e.off=function(m,P){var _=[];if(m&&P){var x=this._fns[m],O=0,k=x?x.length:0;for(O;O<k;O++)x[O]!==P&&_.push(x[O])}_.length?this._fns[m]=_:delete this._fns[m]};function n(f){var m=t[f]?t[f]:[],P=f.indexOf(":"),_=P===-1?[f]:[f.substring(0,P),f.substring(P+1)],x=Object.keys(t),O=0,k=x.length;for(O;O<k;O++){var S=x[O];if(S==="*"&&(m=m.concat(t[S])),_.length===2&&_[0]===S){m=m.concat(t[S]);break}}return m}function c(f,m,P){var _=0,x=m.length;for(_;_<x&&m[_];_++)m[_].event=f,m[_].apply(m[_],P)}return e},bv=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var c=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,c));var f=n[c];return e>=10||e%1===0?(t?"-":"")+e.toFixed(0)+" "+f:(t?"-":"")+e.toFixed(1)+" "+f};function eb(r,e){this.text=r=r||"",this.hasWild=~r.indexOf("*"),this.separator=e,this.parts=r.split(e)}eb.prototype.match=function(r){var e=!0,t=this.parts,n,c=t.length,f;if(typeof r=="string"||r instanceof String)if(!this.hasWild&&this.text!=r)e=!1;else{for(f=(r||"").split(this.separator),n=0;e&&n<c;n++)t[n]!=="*"&&(n<f.length?e=t[n]===f[n]:e=!1);e=e&&f}else if(typeof r.splice=="function")for(e=[],n=r.length;n--;)this.match(r[n])&&(e[e.length]=r[n]);else if(typeof r=="object"){e={};for(var m in r)this.match(m)&&(e[m]=r[m])}return e};var DS=function(r,e,t){var n=new eb(r,t||/[\/\.]/);return typeof e!="undefined"?n.match(e):n},SS=/[\/\+\.]/,CS=function(r,e){function t(n){var c=DS(n,r,SS);return c&&c.length>=2}return e?t(e.split(";")[0]):t};function AS(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var _S=0;function OS(r){return"__private_"+_S+++"_"+r}var Ev=OS("publish");class tb{constructor(){Object.defineProperty(this,Ev,{value:TS}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,AS(this,Ev)[Ev](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function TS(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];this.callbacks.forEach(n=>{n(...e)})}tb.VERSION="2.0.3";var BS=function(){return new tb},nb=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},rb={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"},FS=function(e){var t;if(e.type)return e.type;const n=e.name?(t=nb(e.name).extension)==null?void 0:t.toLowerCase():null;return n&&n in rb?rb[n]:"application/octet-stream"};function PS(r){return r.charCodeAt(0).toString(32)}function ib(r){let e="";return r.replace(/[^A-Z0-9]/ig,t=>(e+=`-${PS(t)}`,"/"))+e}var kS=function(e){let t="uppy";return typeof e.name=="string"&&(t+=`-${ib(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath=="string"&&(t+=`-${ib(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(t+=`-${e.data.size}`),e.data.lastModified!==void 0&&(t+=`-${e.data.lastModified}`),t},NS=function(e){if(e==null&&(e=typeof navigator!="undefined"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[c,f]=n.split(".");return c=parseInt(c,10),f=parseInt(f,10),c<15||c===15&&f<15063||c>18||c===18&&f>=18218},IS=function(e,t){return t.name?t.name:e.split("/")[0]==="image"?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"};function wv(r){return r<10?`0${r}`:r.toString()}var xg=function(){const e=new Date,t=wv(e.getHours()),n=wv(e.getMinutes()),c=wv(e.getSeconds());return`${t}:${n}:${c}`},ob={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return console.error(`[Uppy] [${xg()}]`,...e)}},debugLogger:{debug:function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return console.debug(`[Uppy] [${xg()}]`,...e)},warn:function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return console.warn(`[Uppy] [${xg()}]`,...e)},error:function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return console.error(`[Uppy] [${xg()}]`,...e)}}},RS={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}"}}},tp=_3;let ab,ub;function Qn(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var jS=0;function lu(r){return"__private_"+jS+++"_"+r}const{nanoid:LS}=tp,{justErrorsLogger:MS,debugLogger:$S}=ob;class Cc extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError=="undefined"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class zS extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var ls=lu("plugins"),Wp=lu("storeUnsubscribe"),ff=lu("emitter"),hd=lu("preProcessors"),gd=lu("uploaders"),df=lu("postProcessors"),qp=lu("checkRestrictions"),xv=lu("checkMinNumberOfFiles"),Gp=lu("checkRequiredMetaFieldsOnFile"),Dv=lu("checkRequiredMetaFields"),_u=lu("showOrLogErrorAndThrow"),Kp=lu("assertNewUploadAllowed"),Xp=lu("checkAndCreateFileStateObject"),Yp=lu("startIfAutoProceed"),Sv=lu("addListeners"),rc=lu("updateOnlineStatus"),pf=lu("createUpload"),Cv=lu("getUpload"),vd=lu("removeUpload"),hf=lu("runUpload");ab=Symbol.for("uppy test: getPlugins"),ub=Symbol.for("uppy test: createUpload");class sb{constructor(e){Object.defineProperty(this,hf,{value:eC}),Object.defineProperty(this,vd,{value:QS}),Object.defineProperty(this,Cv,{value:JS}),Object.defineProperty(this,pf,{value:ZS}),Object.defineProperty(this,Sv,{value:YS}),Object.defineProperty(this,Yp,{value:XS}),Object.defineProperty(this,Xp,{value:KS}),Object.defineProperty(this,Kp,{value:GS}),Object.defineProperty(this,_u,{value:qS}),Object.defineProperty(this,Dv,{value:WS}),Object.defineProperty(this,Gp,{value:VS}),Object.defineProperty(this,xv,{value:US}),Object.defineProperty(this,qp,{value:HS}),Object.defineProperty(this,ls,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Wp,{writable:!0,value:void 0}),Object.defineProperty(this,ff,{writable:!0,value:Qy()}),Object.defineProperty(this,hd,{writable:!0,value:new Set}),Object.defineProperty(this,gd,{writable:!0,value:new Set}),Object.defineProperty(this,df,{writable:!0,value:new Set}),Object.defineProperty(this,rc,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=RS;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:n=>n,onBeforeUpload:n=>n,store:BS(),logger:MS,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=$S),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=Vp(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:NS(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Qn(this,Wp)[Wp]=this.store.subscribe((n,c,f)=>{this.emit("state-update",n,c,f),this.updateAll(c)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),Qn(this,Sv)[Sv]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),c=1;c<t;c++)n[c-1]=arguments[c];Qn(this,ff)[ff].emit(e,...n)}on(e,t){return Qn(this,ff)[ff].on(e,t),this}once(e,t){return Qn(this,ff)[ff].once(e,t),this}off(e,t){return Qn(this,ff)[ff].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Cant set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new Jy([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(t=>{t.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(c=>{const f={...t[c]};f.progress={...f.progress,...e},n[c]=f}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Qn(this,hd)[hd].add(e)}removePreProcessor(e){return Qn(this,hd)[hd].delete(e)}addPostProcessor(e){Qn(this,df)[df].add(e)}removePostProcessor(e){return Qn(this,df)[df].delete(e)}addUploader(e){Qn(this,gd)[gd].add(e)}removeUploader(e){return Qn(this,gd)[gd].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(c=>{n[c]={...n[c],meta:{...n[c].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e]){this.log("Was trying to set metadata for a file that has been removed: ",e);return}const c={...n[e].meta,...t};n[e]={...n[e],meta:c},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),c=Object.values(e),f=c.filter(W=>{let{progress:re}=W;return!re.uploadComplete&&re.uploadStarted}),m=c.filter(W=>!W.progress.uploadStarted),P=c.filter(W=>W.progress.uploadStarted||W.progress.preprocess||W.progress.postprocess),_=c.filter(W=>W.progress.uploadStarted),x=c.filter(W=>W.isPaused),O=c.filter(W=>W.progress.uploadComplete),k=c.filter(W=>W.error),S=f.filter(W=>!W.isPaused),B=c.filter(W=>W.progress.preprocess||W.progress.postprocess);return{newFiles:m,startedFiles:P,uploadStartedFiles:_,pausedFiles:x,completeFiles:O,erroredFiles:k,inProgressFiles:f,inProgressNotPausedFiles:S,processingFiles:B,isUploadStarted:_.length>0,isAllComplete:t===100&&O.length===c.length&&B.length===0,isAllErrored:!!n&&k.length===c.length,isAllPaused:f.length!==0&&x.length===f.length,isUploadInProgress:f.length>0,isSomeGhost:c.some(W=>W.isGhost)}}validateRestrictions(e,t){try{return Qn(this,qp)[qp](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!!(t[e]&&!t[e].isGhost)}addFile(e){Qn(this,Kp)[Kp](e);const{files:t}=this.getState();let n=Qn(this,Xp)[Xp](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Qn(this,Yp)[Yp](),n.id}addFiles(e){Qn(this,Kp)[Kp]();const t={...this.getState().files},n=[],c=[];for(let f=0;f<e.length;f++)try{let m=Qn(this,Xp)[Xp](t,e[f]);t[m.id]&&t[m.id].isGhost&&(m={...t[m.id],data:e[f].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${m.name}, ${m.id}`)),t[m.id]=m,n.push(m)}catch(m){m.isRestriction||c.push(m)}if(this.setState({files:t}),n.forEach(f=>{this.emit("file-added",f)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(f=>{this.log(`Added file: ${n[f].name}
id: ${n[f].id}
type: ${n[f].type}`)}),n.length>0&&Qn(this,Yp)[Yp](),c.length>0){let f=`Multiple errors occurred while adding files:
`;if(c.forEach(m=>{f+=`
* ${m.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:c.length}),details:f},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(c,f);{const m=new Error(f);throw m.errors=c,m}}}removeFiles(e,t){const{files:n,currentUploads:c}=this.getState(),f={...n},m={...c},P=Object.create(null);e.forEach(k=>{n[k]&&(P[k]=n[k],delete f[k])});function _(k){return P[k]===void 0}Object.keys(m).forEach(k=>{const S=c[k].fileIDs.filter(_);if(S.length===0){delete m[k];return}m[k]={...c[k],fileIDs:S}});const x={currentUploads:m,files:f};Object.keys(f).length===0&&(x.allowNewUpload=!0,x.error=null,x.recoveredState=null),this.setState(x),this.calculateTotalProgress();const O=Object.keys(P);O.forEach(k=>{this.emit("file-removed",P[k],t)}),O.length>5?this.log(`Removed ${O.length} files`):this.log(`Removed files: ${O.join(", ")}`)}removeFile(e,t){t===void 0&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const c={...e[n],isPaused:!0};e[n]=c}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const c={...e[n],isPaused:!1,error:null};e[n]=c}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(c=>e[c].error);if(t.forEach(c=>{const f={...e[c],isPaused:!1,error:null};e[c]=f}),this.setState({files:e,error:null}),this.emit("retry-all",t),t.length===0)return Promise.resolve({successful:[],failed:[]});const n=Qn(this,pf)[pf](t,{forceAllowNewUpload:!0});return Qn(this,hf)[hf](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Qn(this,pf)[pf]([e],{forceAllowNewUpload:!0});return Qn(this,hf)[hf](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${e.id}`);return}const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(x=>x.progress.uploadStarted||x.progress.preprocess||x.progress.postprocess);if(t.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const n=t.filter(x=>x.progress.bytesTotal!=null),c=t.filter(x=>x.progress.bytesTotal==null);if(n.length===0){const x=t.length*100,O=c.reduce((S,B)=>S+B.progress.percentage,0),k=Math.round(O/x*100);this.setState({totalProgress:k});return}let f=n.reduce((x,O)=>x+O.progress.bytesTotal,0);const m=f/n.length;f+=m*c.length;let P=0;n.forEach(x=>{P+=x.progress.bytesUploaded}),c.forEach(x=>{P+=m*(x.progress.percentage||0)/100});let _=f===0?0:Math.round(P/f*100);_>100&&(_=100),this.setState({totalProgress:_}),this.emit("progress",_)}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(e,t){if(typeof e!="function"){const m=`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(m)}const n=new e(this,t),c=n.id;if(!c)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const f=this.getPlugin(c);if(f){const m=`Already found a plugin named '${f.id}'. Tried to use: '${c}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(m)}return e.VERSION&&this.log(`Using ${c} v${e.VERSION}`),n.type in Qn(this,ls)[ls]?Qn(this,ls)[ls][n.type].push(n):Qn(this,ls)[ls][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Qn(this,ls)[ls])){const n=t.find(c=>c.id===e);if(n!=null)return n}}[ab](e){return Qn(this,ls)[ls][e]}iteratePlugins(e){Object.values(Qn(this,ls)[ls]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Qn(this,ls)[ls][e.type],n=t.findIndex(m=>m.id===e.id);n!==-1&&t.splice(n,1);const f={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(f)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Qn(this,Wp)[Wp](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",Qn(this,rc)[rc]),window.removeEventListener("offline",Qn(this,rc)[rc]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){t===void 0&&(t="info"),n===void 0&&(n=3e3);const c=typeof e=="object";this.setState({info:[...this.getState().info,{type:t,message:c?e.message:e,details:c?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e);break}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Qn(this,hf)[hf](e):(Qn(this,vd)[vd](e),Promise.reject(new Error("Nonexistent upload")))}[ub](){return Qn(this,pf)[pf](...arguments)}addResultData(e,t){if(!Qn(this,Cv)[Cv](e)){this.log(`Not setting result for an upload that has been removed: ${e}`);return}const{currentUploads:n}=this.getState(),c={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:c}})}upload(){var e;(e=Qn(this,ls)[ls].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>{Qn(this,xv)[xv](t),Qn(this,Dv)[Dv](t)}).catch(c=>{Qn(this,_u)[_u](c)}).then(()=>{const{currentUploads:c}=this.getState(),f=Object.values(c).flatMap(_=>_.fileIDs),m=[];Object.keys(t).forEach(_=>{const x=this.getFile(_);!x.progress.uploadStarted&&f.indexOf(_)===-1&&m.push(x.id)});const P=Qn(this,pf)[pf](m);return Qn(this,hf)[hf](P)}).catch(c=>{Qn(this,_u)[_u](c,{showInformer:!1})}))}}function HS(r,e){e===void 0&&(e=this.getFiles());const{maxFileSize:t,minFileSize:n,maxTotalFileSize:c,maxNumberOfFiles:f,allowedFileTypes:m}=this.opts.restrictions;if(f&&e.length+1>f)throw new Cc(`${this.i18n("youCanOnlyUploadX",{smart_count:f})}`);if(m&&!m.some(_=>_.indexOf("/")>-1?r.type?CS(r.type.replace(/;.*?$/,""),_):!1:_[0]==="."&&r.extension?r.extension.toLowerCase()===_.substr(1).toLowerCase():!1)){const _=m.join(", ");throw new Cc(this.i18n("youCanOnlyUploadFileTypes",{types:_}))}if(c&&r.size!=null){let P=0;if(P+=r.size,e.forEach(_=>{P+=_.size}),P>c)throw new Cc(this.i18n("exceedsSize",{size:bv(c),file:r.name}))}if(t&&r.size!=null&&r.size>t)throw new Cc(this.i18n("exceedsSize",{size:bv(t),file:r.name}));if(n&&r.size!=null&&r.size<n)throw new Cc(this.i18n("inferiorSize",{size:bv(n)}))}function US(r){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(r).length<e)throw new Cc(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function VS(r){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:t}=Object.prototype,n=[],c=[];for(let f=0;f<e.length;f++)if(!t.call(r.meta,e[f])||r.meta[e[f]]===""){const m=new Cc(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:r.name})}`);n.push(m),c.push(e[f]),Qn(this,_u)[_u](m,{file:r,showInformer:!1,throwErr:!1})}return this.setFileState(r.id,{missingRequiredMetaFields:c}),n}function WS(r){const e=Object.keys(r).flatMap(t=>{const n=this.getFile(t);return Qn(this,Gp)[Gp](n)});if(e.length)throw new zS(e,`${this.i18n("missingRequiredMetaField")}`)}function qS(r,e){let{showInformer:t=!0,file:n=null,throwErr:c=!0}=e===void 0?{}:e;const f=typeof r=="object"?r.message:r,m=typeof r=="object"&&r.details?r.details:"";let P=f;if(m&&(P+=` ${m}`),r.isRestriction?(this.log(P),this.emit("restriction-failed",n,r)):this.log(P,"error"),t&&this.info({message:f,details:m},"error",this.opts.infoTimeout),c)throw typeof r=="object"?r:new Error(r)}function GS(r){const{allowNewUpload:e}=this.getState();e===!1&&Qn(this,_u)[_u](new Cc(this.i18n("noMoreFilesAllowed")),{file:r})}function KS(r,e){const t=FS(e),n=IS(t,e),c=nb(n).extension,f=!!e.isRemote,m=kS({...e,type:t});if(this.checkIfFileAlreadyExists(m)){const k=new Cc(this.i18n("noDuplicates",{fileName:n}));Qn(this,_u)[_u](k,{file:e})}const P=e.meta||{};P.name=n,P.type=t;const _=Number.isFinite(e.data.size)?e.data.size:null;let x={source:e.source||"",id:m,name:n,extension:c||"",meta:{...this.getState().meta,...P},type:t,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:_,uploadComplete:!1,uploadStarted:null},size:_,isRemote:f,remote:e.remote||"",preview:e.preview};const O=this.opts.onBeforeFileAdded(x,r);O===!1?Qn(this,_u)[_u](new Cc("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof O=="object"&&O!==null&&(x=O);try{const k=Object.keys(r).map(S=>r[S]);Qn(this,qp)[qp](x,k)}catch(k){Qn(this,_u)[_u](k,{file:x})}return x}function XS(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(r=>{r.isRestriction||this.log(r.stack||r.message||r)})},4))}function YS(){const r=(e,t,n)=>{let c=e.message||"Unknown error";e.details&&(c+=` ${e.details}`),this.setState({error:c}),t!=null&&t.id in this.getState().files&&this.setFileState(t.id,{error:c,response:n})};this.on("error",r),this.on("upload-error",(e,t,n)=>{if(r(t,e,n),typeof t=="object"&&t.message){const c=new Error(t.message);c.details=t.message,t.details&&(c.details+=` ${t.details}`),c.message=this.i18n("failedToUpload",{file:e.name}),Qn(this,_u)[_u](c,{throwErr:!1})}else Qn(this,_u)[_u](t,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{if(!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${e.id}`);return}this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${e.id}`);return}const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Qn(this,df)[df].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{if(!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${e.id}`);return}this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}})}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${e.id}`);return}const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{if(!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${e.id}`);return}this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}})}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${e.id}`);return}const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&Qn(this,Gp)[Gp](e)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",Qn(this,rc)[rc]),window.addEventListener("offline",Qn(this,rc)[rc]),setTimeout(Qn(this,rc)[rc],3e3))}function ZS(r,e){e===void 0&&(e={});const{forceAllowNewUpload:t=!1}=e,{allowNewUpload:n,currentUploads:c}=this.getState();if(!n&&!t)throw new Error("Cannot create a new upload: already uploading.");const f=LS();return this.emit("upload",{id:f,fileIDs:r}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...c,[f]:{fileIDs:r,step:0,result:{}}}}),f}function JS(r){const{currentUploads:e}=this.getState();return e[r]}function QS(r){const e={...this.getState().currentUploads};delete e[r],this.setState({currentUploads:e})}async function eC(r){let{currentUploads:e}=this.getState(),t=e[r];const n=t.step||0,c=[...Qn(this,hd)[hd],...Qn(this,gd)[gd],...Qn(this,df)[df]];try{for(let m=n;m<c.length&&t;m++){const P=c[m],_={...t,step:m};this.setState({currentUploads:{...e,[r]:_}}),await P(_.fileIDs,r),e=this.getState().currentUploads,t=e[r]}}catch(m){throw this.emit("error",m),Qn(this,vd)[vd](r),m}if(t){t.fileIDs.forEach(x=>{const O=this.getFile(x);O&&O.progress.postprocess&&this.emit("postprocess-complete",O)});const m=t.fileIDs.map(x=>this.getFile(x)),P=m.filter(x=>!x.error),_=m.filter(x=>x.error);await this.addResultData(r,{successful:P,failed:_,uploadID:r}),e=this.getState().currentUploads,t=e[r]}let f;return t&&(f=t.result,this.emit("complete",f),Qn(this,vd)[vd](r)),f==null&&this.log(`Not setting result for an upload that has been removed: ${r}`),f}sb.VERSION="2.1.3";var lb=sb,tC=xl(function(r,e){var t,n,c,f,m,P,_,x,O={},k=[],S=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function B(be,de){for(var xe in de)be[xe]=de[xe];return be}function W(be){var de=be.parentNode;de&&de.removeChild(be)}function re(be,de,xe){var Ie,Ye,oe,ht={};for(oe in de)oe=="key"?Ie=de[oe]:oe=="ref"?Ye=de[oe]:ht[oe]=de[oe];if(arguments.length>2&&(ht.children=arguments.length>3?t.call(arguments,2):xe),typeof be=="function"&&be.defaultProps!=null)for(oe in be.defaultProps)ht[oe]===void 0&&(ht[oe]=be.defaultProps[oe]);return te(be,ht,Ie,Ye,null)}function te(be,de,xe,Ie,Ye){var oe={type:be,props:de,key:xe,ref:Ie,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Ye==null?++c:Ye};return Ye==null&&n.vnode!=null&&n.vnode(oe),oe}function me(be){return be.children}function ne(be,de){this.props=be,this.context=de}function X(be,de){if(de==null)return be.__?X(be.__,be.__.__k.indexOf(be)+1):null;for(var xe;de<be.__k.length;de++)if((xe=be.__k[de])!=null&&xe.__e!=null)return xe.__e;return typeof be.type=="function"?X(be):null}function q(be){var de,xe;if((be=be.__)!=null&&be.__c!=null){for(be.__e=be.__c.base=null,de=0;de<be.__k.length;de++)if((xe=be.__k[de])!=null&&xe.__e!=null){be.__e=be.__c.base=xe.__e;break}return q(be)}}function Ee(be){(!be.__d&&(be.__d=!0)&&m.push(be)&&!ye.__r++||_!==n.debounceRendering)&&((_=n.debounceRendering)||P)(ye)}function ye(){for(var be;ye.__r=m.length;)be=m.sort(function(de,xe){return de.__v.__b-xe.__v.__b}),m=[],be.some(function(de){var xe,Ie,Ye,oe,ht,Gt;de.__d&&(ht=(oe=(xe=de).__v).__e,(Gt=xe.__P)&&(Ie=[],(Ye=B({},oe)).__v=oe.__v+1,At(Gt,oe,Ye,xe.__n,Gt.ownerSVGElement!==void 0,oe.__h!=null?[ht]:null,Ie,ht==null?X(oe):ht,oe.__h),Wn(Ie,oe),oe.__e!=ht&&q(oe)))})}function Qe(be,de,xe,Ie,Ye,oe,ht,Gt,xn,bn){var at,un,Cn,Xt,Bn,er,$t,zn=Ie&&Ie.__k||k,Pr=zn.length;for(xe.__k=[],at=0;at<de.length;at++)if((Xt=xe.__k[at]=(Xt=de[at])==null||typeof Xt=="boolean"?null:typeof Xt=="string"||typeof Xt=="number"||typeof Xt=="bigint"?te(null,Xt,null,null,Xt):Array.isArray(Xt)?te(me,{children:Xt},null,null,null):Xt.__b>0?te(Xt.type,Xt.props,Xt.key,null,Xt.__v):Xt)!=null){if(Xt.__=xe,Xt.__b=xe.__b+1,(Cn=zn[at])===null||Cn&&Xt.key==Cn.key&&Xt.type===Cn.type)zn[at]=void 0;else for(un=0;un<Pr;un++){if((Cn=zn[un])&&Xt.key==Cn.key&&Xt.type===Cn.type){zn[un]=void 0;break}Cn=null}At(be,Xt,Cn=Cn||O,Ye,oe,ht,Gt,xn,bn),Bn=Xt.__e,(un=Xt.ref)&&Cn.ref!=un&&($t||($t=[]),Cn.ref&&$t.push(Cn.ref,null,Xt),$t.push(un,Xt.__c||Bn,Xt)),Bn!=null?(er==null&&(er=Bn),typeof Xt.type=="function"&&Xt.__k===Cn.__k?Xt.__d=xn=qe(Xt,xn,be):xn=Ge(be,Xt,Cn,zn,Bn,xn),typeof xe.type=="function"&&(xe.__d=xn)):xn&&Cn.__e==xn&&xn.parentNode!=be&&(xn=X(Cn))}for(xe.__e=er,at=Pr;at--;)zn[at]!=null&&(typeof xe.type=="function"&&zn[at].__e!=null&&zn[at].__e==xe.__d&&(xe.__d=X(Ie,at+1)),hn(zn[at],zn[at]));if($t)for(at=0;at<$t.length;at++)Dt($t[at],$t[++at],$t[++at])}function qe(be,de,xe){for(var Ie,Ye=be.__k,oe=0;Ye&&oe<Ye.length;oe++)(Ie=Ye[oe])&&(Ie.__=be,de=typeof Ie.type=="function"?qe(Ie,de,xe):Ge(xe,Ie,Ie,Ye,Ie.__e,de));return de}function Ge(be,de,xe,Ie,Ye,oe){var ht,Gt,xn;if(de.__d!==void 0)ht=de.__d,de.__d=void 0;else if(xe==null||Ye!=oe||Ye.parentNode==null)e:if(oe==null||oe.parentNode!==be)be.appendChild(Ye),ht=null;else{for(Gt=oe,xn=0;(Gt=Gt.nextSibling)&&xn<Ie.length;xn+=2)if(Gt==Ye)break e;be.insertBefore(Ye,oe),ht=oe}return ht!==void 0?ht:Ye.nextSibling}function zt(be,de,xe,Ie,Ye){var oe;for(oe in xe)oe==="children"||oe==="key"||oe in de||tn(be,oe,null,xe[oe],Ie);for(oe in de)Ye&&typeof de[oe]!="function"||oe==="children"||oe==="key"||oe==="value"||oe==="checked"||xe[oe]===de[oe]||tn(be,oe,de[oe],xe[oe],Ie)}function qt(be,de,xe){de[0]==="-"?be.setProperty(de,xe):be[de]=xe==null?"":typeof xe!="number"||S.test(de)?xe:xe+"px"}function tn(be,de,xe,Ie,Ye){var oe;e:if(de==="style")if(typeof xe=="string")be.style.cssText=xe;else{if(typeof Ie=="string"&&(be.style.cssText=Ie=""),Ie)for(de in Ie)xe&&de in xe||qt(be.style,de,"");if(xe)for(de in xe)Ie&&xe[de]===Ie[de]||qt(be.style,de,xe[de])}else if(de[0]==="o"&&de[1]==="n")oe=de!==(de=de.replace(/Capture$/,"")),de=de.toLowerCase()in be?de.toLowerCase().slice(2):de.slice(2),be.l||(be.l={}),be.l[de+oe]=xe,xe?Ie||be.addEventListener(de,oe?kn:an,oe):be.removeEventListener(de,oe?kn:an,oe);else if(de!=="dangerouslySetInnerHTML"){if(Ye)de=de.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(de!=="href"&&de!=="list"&&de!=="form"&&de!=="tabIndex"&&de!=="download"&&de in be)try{be[de]=xe==null?"":xe;break e}catch(ht){}typeof xe=="function"||(xe!=null&&(xe!==!1||de[0]==="a"&&de[1]==="r")?be.setAttribute(de,xe):be.removeAttribute(de))}}function an(be){this.l[be.type+!1](n.event?n.event(be):be)}function kn(be){this.l[be.type+!0](n.event?n.event(be):be)}function At(be,de,xe,Ie,Ye,oe,ht,Gt,xn){var bn,at,un,Cn,Xt,Bn,er,$t,zn,Pr,Mr,qn=de.type;if(de.constructor!==void 0)return null;xe.__h!=null&&(xn=xe.__h,Gt=de.__e=xe.__e,de.__h=null,oe=[Gt]),(bn=n.__b)&&bn(de);try{e:if(typeof qn=="function"){if($t=de.props,zn=(bn=qn.contextType)&&Ie[bn.__c],Pr=bn?zn?zn.props.value:bn.__:Ie,xe.__c?er=(at=de.__c=xe.__c).__=at.__E:("prototype"in qn&&qn.prototype.render?de.__c=at=new qn($t,Pr):(de.__c=at=new ne($t,Pr),at.constructor=qn,at.render=Ot),zn&&zn.sub(at),at.props=$t,at.state||(at.state={}),at.context=Pr,at.__n=Ie,un=at.__d=!0,at.__h=[]),at.__s==null&&(at.__s=at.state),qn.getDerivedStateFromProps!=null&&(at.__s==at.state&&(at.__s=B({},at.__s)),B(at.__s,qn.getDerivedStateFromProps($t,at.__s))),Cn=at.props,Xt=at.state,un)qn.getDerivedStateFromProps==null&&at.componentWillMount!=null&&at.componentWillMount(),at.componentDidMount!=null&&at.__h.push(at.componentDidMount);else{if(qn.getDerivedStateFromProps==null&&$t!==Cn&&at.componentWillReceiveProps!=null&&at.componentWillReceiveProps($t,Pr),!at.__e&&at.shouldComponentUpdate!=null&&at.shouldComponentUpdate($t,at.__s,Pr)===!1||de.__v===xe.__v){at.props=$t,at.state=at.__s,de.__v!==xe.__v&&(at.__d=!1),at.__v=de,de.__e=xe.__e,de.__k=xe.__k,de.__k.forEach(function(Nn){Nn&&(Nn.__=de)}),at.__h.length&&ht.push(at);break e}at.componentWillUpdate!=null&&at.componentWillUpdate($t,at.__s,Pr),at.componentDidUpdate!=null&&at.__h.push(function(){at.componentDidUpdate(Cn,Xt,Bn)})}at.context=Pr,at.props=$t,at.state=at.__s,(bn=n.__r)&&bn(de),at.__d=!1,at.__v=de,at.__P=be,bn=at.render(at.props,at.state,at.context),at.state=at.__s,at.getChildContext!=null&&(Ie=B(B({},Ie),at.getChildContext())),un||at.getSnapshotBeforeUpdate==null||(Bn=at.getSnapshotBeforeUpdate(Cn,Xt)),Mr=bn!=null&&bn.type===me&&bn.key==null?bn.props.children:bn,Qe(be,Array.isArray(Mr)?Mr:[Mr],de,xe,Ie,Ye,oe,ht,Gt,xn),at.base=de.__e,de.__h=null,at.__h.length&&ht.push(at),er&&(at.__E=at.__=null),at.__e=!1}else oe==null&&de.__v===xe.__v?(de.__k=xe.__k,de.__e=xe.__e):de.__e=Ae(xe.__e,de,xe,Ie,Ye,oe,ht,xn);(bn=n.diffed)&&bn(de)}catch(Nn){de.__v=null,(xn||oe!=null)&&(de.__e=Gt,de.__h=!!xn,oe[oe.indexOf(Gt)]=null),n.__e(Nn,de,xe)}}function Wn(be,de){n.__c&&n.__c(de,be),be.some(function(xe){try{be=xe.__h,xe.__h=[],be.some(function(Ie){Ie.call(xe)})}catch(Ie){n.__e(Ie,xe.__v)}})}function Ae(be,de,xe,Ie,Ye,oe,ht,Gt){var xn,bn,at,un=xe.props,Cn=de.props,Xt=de.type,Bn=0;if(Xt==="svg"&&(Ye=!0),oe!=null){for(;Bn<oe.length;Bn++)if((xn=oe[Bn])&&"setAttribute"in xn==!!Xt&&(Xt?xn.localName===Xt:xn.nodeType===3)){be=xn,oe[Bn]=null;break}}if(be==null){if(Xt===null)return document.createTextNode(Cn);be=Ye?document.createElementNS("http://www.w3.org/2000/svg",Xt):document.createElement(Xt,Cn.is&&Cn),oe=null,Gt=!1}if(Xt===null)un===Cn||Gt&&be.data===Cn||(be.data=Cn);else{if(oe=oe&&t.call(be.childNodes),bn=(un=xe.props||O).dangerouslySetInnerHTML,at=Cn.dangerouslySetInnerHTML,!Gt){if(oe!=null)for(un={},Bn=0;Bn<be.attributes.length;Bn++)un[be.attributes[Bn].name]=be.attributes[Bn].value;(at||bn)&&(at&&(bn&&at.__html==bn.__html||at.__html===be.innerHTML)||(be.innerHTML=at&&at.__html||""))}if(zt(be,Cn,un,Ye,Gt),at)de.__k=[];else if(Bn=de.props.children,Qe(be,Array.isArray(Bn)?Bn:[Bn],de,xe,Ie,Ye&&Xt!=="foreignObject",oe,ht,oe?oe[0]:xe.__k&&X(xe,0),Gt),oe!=null)for(Bn=oe.length;Bn--;)oe[Bn]!=null&&W(oe[Bn]);Gt||("value"in Cn&&(Bn=Cn.value)!==void 0&&(Bn!==un.value||Bn!==be.value||Xt==="progress"&&!Bn)&&tn(be,"value",Bn,un.value,!1),"checked"in Cn&&(Bn=Cn.checked)!==void 0&&Bn!==be.checked&&tn(be,"checked",Bn,un.checked,!1))}return be}function Dt(be,de,xe){try{typeof be=="function"?be(de):be.current=de}catch(Ie){n.__e(Ie,xe)}}function hn(be,de,xe){var Ie,Ye;if(n.unmount&&n.unmount(be),(Ie=be.ref)&&(Ie.current&&Ie.current!==be.__e||Dt(Ie,null,de)),(Ie=be.__c)!=null){if(Ie.componentWillUnmount)try{Ie.componentWillUnmount()}catch(oe){n.__e(oe,de)}Ie.base=Ie.__P=null}if(Ie=be.__k)for(Ye=0;Ye<Ie.length;Ye++)Ie[Ye]&&hn(Ie[Ye],de,typeof be.type!="function");xe||be.__e==null||W(be.__e),be.__e=be.__d=void 0}function Ot(be,de,xe){return this.constructor(be,xe)}function Sn(be,de,xe){var Ie,Ye,oe;n.__&&n.__(be,de),Ye=(Ie=typeof xe=="function")?null:xe&&xe.__k||de.__k,oe=[],At(de,be=(!Ie&&xe||de).__k=re(me,null,[be]),Ye||O,O,de.ownerSVGElement!==void 0,!Ie&&xe?[xe]:Ye?null:de.firstChild?t.call(de.childNodes):null,oe,!Ie&&xe?xe:Ye?Ye.__e:de.firstChild,Ie),Wn(oe,be)}t=k.slice,n={__e:function(be,de){for(var xe,Ie,Ye;de=de.__;)if((xe=de.__c)&&!xe.__)try{if((Ie=xe.constructor)&&Ie.getDerivedStateFromError!=null&&(xe.setState(Ie.getDerivedStateFromError(be)),Ye=xe.__d),xe.componentDidCatch!=null&&(xe.componentDidCatch(be),Ye=xe.__d),Ye)return xe.__E=xe}catch(oe){be=oe}throw be}},c=0,f=function(be){return be!=null&&be.constructor===void 0},ne.prototype.setState=function(be,de){var xe;xe=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=B({},this.state),typeof be=="function"&&(be=be(B({},xe),this.props)),be&&B(xe,be),be!=null&&this.__v&&(de&&this.__h.push(de),Ee(this))},ne.prototype.forceUpdate=function(be){this.__v&&(this.__e=!0,be&&this.__h.push(be),Ee(this))},ne.prototype.render=me,m=[],P=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ye.__r=0,x=0,e.Component=ne,e.Fragment=me,e.cloneElement=function(be,de,xe){var Ie,Ye,oe,ht=B({},be.props);for(oe in de)oe=="key"?Ie=de[oe]:oe=="ref"?Ye=de[oe]:ht[oe]=de[oe];return arguments.length>2&&(ht.children=arguments.length>3?t.call(arguments,2):xe),te(be.type,ht,Ie||be.key,Ye||be.ref,null)},e.createContext=function(be,de){var xe={__c:de="__cC"+x++,__:be,Consumer:function(Ie,Ye){return Ie.children(Ye)},Provider:function(Ie){var Ye,oe;return this.getChildContext||(Ye=[],(oe={})[de]=this,this.getChildContext=function(){return oe},this.shouldComponentUpdate=function(ht){this.props.value!==ht.value&&Ye.some(Ee)},this.sub=function(ht){Ye.push(ht);var Gt=ht.componentWillUnmount;ht.componentWillUnmount=function(){Ye.splice(Ye.indexOf(ht),1),Gt&&Gt.call(ht)}}),Ie.children}};return xe.Provider.__=xe.Consumer.contextType=xe},e.createElement=re,e.createRef=function(){return{current:null}},e.h=re,e.hydrate=function be(de,xe){Sn(de,xe,be)},e.isValidElement=f,e.options=n,e.render=Sn,e.toChildArray=function be(de,xe){return xe=xe||[],de==null||typeof de=="boolean"||(Array.isArray(de)?de.some(function(Ie){be(Ie,xe)}):xe.push(de)),xe}}),nC=function(e){return(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE},rC=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):nC(e)?e:null},Av=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new Jy([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function cb(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var iC=0;function oC(r){return"__private_"+iC+++"_"+r}const{render:fb}=tC;function aC(r){let e=null,t=null;return function(){for(var n=arguments.length,c=new Array(n),f=0;f<n;f++)c[f]=arguments[f];return t=c,e||(e=Promise.resolve().then(()=>(e=null,r(...t)))),e}}var Zp=oC("updateUI");class _v extends Av{constructor(){super(...arguments),Object.defineProperty(this,Zp,{writable:!0,value:void 0})}mount(e,t){const n=t.id,c=rC(e);if(c){this.isTargetDOMEl=!0;const P=document.createDocumentFragment();return cb(this,Zp)[Zp]=aC(_=>{this.uppy.getPlugin(this.id)&&(fb(this.render(_),P),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(c.innerHTML=""),fb(this.render(this.uppy.getState()),P),this.el=P.firstElementChild,c.appendChild(P),this.onMount(),this.el}let f;if(typeof e=="object"&&e instanceof _v)f=e;else if(typeof e=="function"){const P=e;this.uppy.iteratePlugins(_=>{if(_ instanceof P)return f=_,!1})}if(f)return this.uppy.log(`Installing ${n} to ${f.id}`),this.parent=f,this.el=f.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let m=`Invalid target option given to ${n}.`;throw typeof e=="function"?m+=" 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.":m+="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(m)}update(e){if(this.el!=null){var t,n;(t=(n=cb(this,Zp))[Zp])==null||t.call(n,e)}}unmount(){if(this.isTargetDOMEl){var e;(e=this.el)==null||e.remove()}this.onUnmount()}onMount(){}onUnmount(){}}var uC=_v;const{debugLogger:sC}=ob;var Jp=lb,lC=lb,cC=uC,fC=Av,dC=sC;Jp.Uppy=lC,Jp.UIPlugin=cC,Jp.BasePlugin=fC,Jp.debugLogger=dC;class pC extends Error{constructor(e,t){t===void 0&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var Ov=pC,Tv=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new Ov(e)})};class hC extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var gC=hC,Dg,$f,Ac,zf,db;function _c(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var vC=0;function Bv(r){return"__private_"+vC+++"_"+r}function mC(r){return r.replace(/\/$/,"")}async function Fv(r){if(r.status===401)throw new gC;const e=r.json();if(r.status<200||r.status>300){let t=`Failed request with status: ${r.status}. ${r.statusText}`;try{const n=await e;t=n.message?`${t} message: ${n.message}`:t,t=n.requestId?`${t} request-Id: ${n.requestId}`:t}finally{throw new Error(t)}}return e}var Pv=(db=($f=Bv("getPostResponseFunc"),Ac=Bv("getUrl"),zf=Bv("errorHandler"),Dg=class _b{constructor(e,t){Object.defineProperty(this,zf,{value:bC}),Object.defineProperty(this,Ac,{value:yC}),Object.defineProperty(this,$f,{writable:!0,value:n=>c=>n?c:this.onReceiveResponse(c)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return mC(e&&e[t]?e[t]:t)}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({..._b.defaultHeaders,...e})}onReceiveResponse(e){const n=this.uppy.getState().companion||{},c=this.opts.companionUrl,{headers:f}=e;return f.has("i-am")&&f.get("i-am")!==n[c]&&this.uppy.setState({companion:{...n,[c]:f.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(_c(this,Ac)[Ac](e),{method:"OPTIONS"}).then(t=>(t.headers.has("access-control-allow-headers")&&(this.allowedHeaders=t.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(t=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${t}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(t=>{let[n,c]=t;return Object.keys(c).forEach(f=>{n.includes(f.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${f}`),delete c[f])}),c})}get(e,t){return this.preflightAndHeaders(e).then(c=>Tv(_c(this,Ac)[Ac](e),{method:"get",headers:c,credentials:this.opts.companionCookiesRule||"same-origin"})).then(_c(this,$f)[$f](t)).then(Fv).catch(_c(this,zf)[zf]("get",e))}post(e,t,n){const c="post";return this.preflightAndHeaders(e).then(f=>Tv(_c(this,Ac)[Ac](e),{method:c,headers:f,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})).then(_c(this,$f)[$f](n)).then(Fv).catch(_c(this,zf)[zf](c,e))}delete(e,t,n){const c="delete";return this.preflightAndHeaders(e).then(f=>Tv(`${this.hostname}/${e}`,{method:c,headers:f,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})).then(_c(this,$f)[$f](n)).then(Fv).catch(_c(this,zf)[zf](c,e))}}),Dg.VERSION="2.0.4",Dg.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Dg.VERSION}`},db);function yC(r){return/^(https?:|)\/\//.test(r)?r:`${this.hostname}/${r}`}function bC(r,e){return t=>{var n;if(!((n=t)!=null&&n.isAuthError)){const c=new Error(`Could not ${r} ${_c(this,Ac)[Ac](e)}`);c.cause=t,t=c}return Promise.reject(t)}}var EC=(r,e)=>new Promise(t=>{localStorage.setItem(r,e),t()}),wC=r=>Promise.resolve(localStorage.getItem(r)),xC=r=>new Promise(e=>{localStorage.removeItem(r),e()}),DC={setItem:EC,getItem:wC,removeItem:xC};const SC=r=>r.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");var CC=class extends Pv{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||SC(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const c={};return n&&(c["uppy-auth-token"]=n),this.companionKeysParams&&(c["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...c}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),c=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:c}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const c=t.companionAllowedHosts;if(typeof c!="string"&&!Array.isArray(c)&&!(c instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=c}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||DC}};const AC=r=>r.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");var _C=class extends Pv{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||AC(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Oc,Hf,Rl,Os,Sg;let pb,hb;function cu(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var OC=0;function Qp(r){return"__private_"+OC+++"_"+r}var TC=(Oc=Qp("queued"),Hf=Qp("emitter"),Rl=Qp("isOpen"),Os=Qp("socket"),Sg=Qp("handleMessage"),pb=Symbol.for("uppy test: getSocket"),hb=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Oc,{writable:!0,value:[]}),Object.defineProperty(this,Hf,{writable:!0,value:Qy()}),Object.defineProperty(this,Rl,{writable:!0,value:!1}),Object.defineProperty(this,Os,{writable:!0,value:void 0}),Object.defineProperty(this,Sg,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=e,(!e||e.autoOpen!==!1)&&this.open()}get isOpen(){return cu(this,Rl)[Rl]}[pb](){return cu(this,Os)[Os]}[hb](){return cu(this,Oc)[Oc]}open(){cu(this,Os)[Os]=new WebSocket(this.opts.target),cu(this,Os)[Os].onopen=()=>{for(cu(this,Rl)[Rl]=!0;cu(this,Oc)[Oc].length>0&&cu(this,Rl)[Rl];){const e=cu(this,Oc)[Oc].shift();this.send(e.action,e.payload)}},cu(this,Os)[Os].onclose=()=>{cu(this,Rl)[Rl]=!1},cu(this,Os)[Os].onmessage=cu(this,Sg)[Sg]}close(){var e;(e=cu(this,Os)[Os])==null||e.close()}send(e,t){if(!cu(this,Rl)[Rl]){cu(this,Oc)[Oc].push({action:e,payload:t});return}cu(this,Os)[Os].send(JSON.stringify({action:e,payload:t}))}on(e,t){cu(this,Hf)[Hf].on(e,t)}emit(e,t){cu(this,Hf)[Hf].emit(e,t)}once(e,t){cu(this,Hf)[Hf].once(e,t)}}),BC={RequestClient:Pv,Provider:CC,SearchProvider:_C,Socket:TC};function FC(r,e,t){const{progress:n,bytesUploaded:c,bytesTotal:f}=e;n&&(r.uppy.log(`Upload progress: ${n}`),r.uppy.emit("upload-progress",t,{uploader:r,bytesUploaded:c,bytesTotal:f}))}var PC=Vp(FC,300,{leading:!0,trailing:!0}),kC=function(e){const n=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${n}`},NC=function(e){const t=[],n=[];function c(P){t.push(P)}function f(P){n.push(P)}return Promise.all(e.map(P=>P.then(c,f))).then(()=>({successful:t,failed:n}))},Uf,np;function eh(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var IC=0;function gb(r){return"__private_"+IC+++"_"+r}var vb=(Uf=gb("emitter"),np=gb("events"),class{constructor(e){Object.defineProperty(this,Uf,{writable:!0,value:void 0}),Object.defineProperty(this,np,{writable:!0,value:[]}),eh(this,Uf)[Uf]=e}on(e,t){return eh(this,np)[np].push([e,t]),eh(this,Uf)[Uf].on(e,t)}remove(){for(const[e,t]of eh(this,np)[np].splice(0))eh(this,Uf)[Uf].off(e,t)}});function jl(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var RC=0;function Cg(r){return"__private_"+RC+++"_"+r}var gf=Cg("aliveTimer"),md=Cg("isDone"),th=Cg("onTimedOut"),yd=Cg("timeout");class jC{constructor(e,t){Object.defineProperty(this,gf,{writable:!0,value:void 0}),Object.defineProperty(this,md,{writable:!0,value:!1}),Object.defineProperty(this,th,{writable:!0,value:void 0}),Object.defineProperty(this,yd,{writable:!0,value:void 0}),jl(this,yd)[yd]=e,jl(this,th)[th]=t}progress(){jl(this,md)[md]||jl(this,yd)[yd]>0&&(clearTimeout(jl(this,gf)[gf]),jl(this,gf)[gf]=setTimeout(jl(this,th)[th],jl(this,yd)[yd]))}done(){jl(this,md)[md]||(clearTimeout(jl(this,gf)[gf]),jl(this,gf)[gf]=null,jl(this,md)[md]=!0)}}var mb=jC;function fu(r,e){if(!Object.prototype.hasOwnProperty.call(r,e))throw new TypeError("attempted to use private field on non-instance");return r}var LC=0;function bd(r){return"__private_"+LC+++"_"+r}function MC(){return new Error("Cancelled")}var _l=bd("activeRequests"),qs=bd("queuedHandlers"),nh=bd("call"),rh=bd("queueNext"),kv=bd("next"),Nv=bd("queue"),Iv=bd("dequeue");class $C{constructor(e){Object.defineProperty(this,Iv,{value:WC}),Object.defineProperty(this,Nv,{value:VC}),Object.defineProperty(this,kv,{value:UC}),Object.defineProperty(this,rh,{value:HC}),Object.defineProperty(this,nh,{value:zC}),Object.defineProperty(this,_l,{writable:!0,value:0}),Object.defineProperty(this,qs,{writable:!0,value:[]}),typeof e!="number"||e===0?this.limit=1/0:this.limit=e}run(e,t){return fu(this,_l)[_l]<this.limit?fu(this,nh)[nh](e):fu(this,Nv)[Nv](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var c=arguments.length,f=new Array(c),m=0;m<c;m++)f[m]=arguments[m];let P;const _=new Promise((x,O)=>{P=n.run(()=>{let k,S;try{S=Promise.resolve(e(...f))}catch(B){S=Promise.reject(B)}return S.then(B=>{k?O(k):(P.done(),x(B))},B=>{k?O(k):(P.done(),O(B))}),()=>{k=MC()}},t)});return _.abort=()=>{P.abort()},_}}}function zC(r){fu(this,_l)[_l]+=1;let e=!1,t;try{t=r()}catch(n){throw fu(this,_l)[_l]-=1,n}return{abort:()=>{e||(e=!0,fu(this,_l)[_l]-=1,t(),fu(this,rh)[rh]())},done:()=>{e||(e=!0,fu(this,_l)[_l]-=1,fu(this,rh)[rh]())}}}function HC(){queueMicrotask(()=>fu(this,kv)[kv]())}function UC(){if(fu(this,_l)[_l]>=this.limit||fu(this,qs)[qs].length===0)return;const r=fu(this,qs)[qs].shift(),e=fu(this,nh)[nh](r.fn);r.abort=e.abort,r.done=e.done}function VC(r,e){e===void 0&&(e={});const t={fn:r,priority:e.priority||0,abort:()=>{fu(this,Iv)[Iv](t)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=fu(this,qs)[qs].findIndex(c=>t.priority>c.priority);return n===-1?fu(this,qs)[qs].push(t):fu(this,qs)[qs].splice(n,0,t),t}function WC(r){const e=fu(this,qs)[qs].indexOf(r);e!==-1&&fu(this,qs)[qs].splice(e,1)}var qC={RateLimitedQueue:$C,internalRateLimitedQueue:Symbol("__queue")};function GC(r){return r?r.readyState!==0&&r.readyState!==4||r.status===0:!1}var yb=GC,KC={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}},bb,Eb;const{nanoid:XC}=tp,{Provider:YC,RequestClient:ZC,Socket:JC}=BC,{RateLimitedQueue:QC,internalRateLimitedQueue:Rv}=qC;function wb(r,e){let t=e;return t||(t=new Error("Upload error")),typeof t=="string"&&(t=new Error(t)),t instanceof Error||(t=Object.assign(new Error("Upload error"),{data:t})),yb(r)?(t=new Ov(t,r),t):(t.request=r,t)}function xb(r){return r.data.slice(0,r.data.size,r.meta.type)}var e5=(Eb=bb=class extends Av{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=KC;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:30*1e3,limit:5,withCredentials:!1,responseType:"",getResponseData(c){let f={};try{f=JSON.parse(c)}catch(m){e.log(m)}return f},getResponseError(c,f){let m=new Error("Upload error");return yb(f)&&(m=new Ov(m,f)),m},validateStatus(c){return c>=200&&c<300}};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Rv in this.opts?this.requests=this.opts[Rv]:this.requests=new QC(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,c={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n=="function"?c.headers=n(e):Object.assign(c.headers,this.opts.headers),t&&Object.assign(c.headers,t.headers),e.xhrUpload&&Object.assign(c.headers,e.xhrUpload.headers),c}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(f=>{e.append(f,t[f])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const c=xb(e);return e.name?n.append(t.fieldName,c,e.meta.name):n.append(t.fieldName,c),n}createBundledUpload(e,t){const n=new FormData,{meta:c}=this.uppy.getState();return this.addMetadata(n,c,t),e.forEach(f=>{const m=this.getOptions(f),P=xb(f);f.name?n.append(m.fieldName,P,f.name):n.append(m.fieldName,P)}),n}upload(e,t,n){const c=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((f,m)=>{this.uppy.emit("upload-started",e);const P=c.formData?this.createFormDataUpload(e,c):e.data,_=new XMLHttpRequest;this.uploaderEvents[e.id]=new vb(this.uppy);const x=new mb(c.timeout,()=>{_.abort(),k.done();const S=new Error(this.i18n("timedOut",{seconds:Math.ceil(c.timeout/1e3)}));this.uppy.emit("upload-error",e,S),m(S)}),O=XC();_.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${O} started`)}),_.upload.addEventListener("progress",S=>{this.uppy.log(`[XHRUpload] ${O} progress: ${S.loaded} / ${S.total}`),x.progress(),S.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:S.loaded,bytesTotal:S.total})}),_.addEventListener("load",S=>{if(this.uppy.log(`[XHRUpload] ${O} finished`),x.done(),k.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),c.validateStatus(S.target.status,_.responseText,_)){const te=c.getResponseData(_.responseText,_),me=te[c.responseUrlFieldName],ne={status:S.target.status,body:te,uploadURL:me};return this.uppy.emit("upload-success",e,ne),me&&this.uppy.log(`Download ${e.name} from ${me}`),f(e)}const B=c.getResponseData(_.responseText,_),W=wb(_,c.getResponseError(_.responseText,_)),re={status:S.target.status,body:B};return this.uppy.emit("upload-error",e,W,re),m(W)}),_.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${O} errored`),x.done(),k.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const S=wb(_,c.getResponseError(_.responseText,_));return this.uppy.emit("upload-error",e,S),m(S)}),_.open(c.method.toUpperCase(),c.endpoint,!0),_.withCredentials=c.withCredentials,c.responseType!==""&&(_.responseType=c.responseType);const k=this.requests.run(()=>{this.uppy.emit("upload-started",e);const S=this.getOptions(e);return Object.keys(S.headers).forEach(B=>{_.setRequestHeader(B,S.headers[B])}),_.send(P),()=>{x.done(),_.abort()}});this.onFileRemove(e.id,()=>{k.abort(),m(new Error("File removed"))}),this.onCancelAll(e.id,()=>{k.abort(),m(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,c)=>{this.uppy.emit("upload-started",e);const f={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(x=>{f[x]=e.meta[x]});const P=e.remote.providerOptions.provider?YC:ZC;new P(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:f,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(x=>{const{token:O}=x,k=kC(e.remote.companionUrl),S=new JC({target:`${k}/api/${O}`,autoOpen:!1});this.uploaderEvents[e.id]=new vb(this.uppy),this.onFileRemove(e.id,()=>{S.send("cancel",{}),B.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{S.send("cancel",{}),B.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{S.send("pause",{}),S.send("resume",{})}),this.onRetryAll(e.id,()=>{S.send("pause",{}),S.send("resume",{})}),S.on("progress",W=>PC(this,W,e)),S.on("success",W=>{const re=t.getResponseData(W.response.responseText,W.response),te=re[t.responseUrlFieldName],me={status:W.response.status,body:re,uploadURL:te};return this.uppy.emit("upload-success",e,me),B.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),S.on("error",W=>{const re=W.response,te=re?t.getResponseError(re.responseText,re):Object.assign(new Error(W.error.message),{cause:W.error});this.uppy.emit("upload-error",e,te),B.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),c(te)});const B=this.requests.run(()=>(S.open(),e.isPaused&&S.send("pause",{}),()=>S.close()))}).catch(x=>{this.uppy.emit("upload-error",e,x),c(x)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:c}=this.opts,{method:f}=this.opts,m=this.uppy.getState().xhrUpload,P=this.createBundledUpload(e,{...this.opts,...m||{}}),_=new XMLHttpRequest,x=new mb(this.opts.timeout,()=>{_.abort();const k=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));O(k),n(k)}),O=k=>{e.forEach(S=>{this.uppy.emit("upload-error",S,k)})};_.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),x.progress()}),_.upload.addEventListener("progress",k=>{x.progress(),k.lengthComputable&&e.forEach(S=>{this.uppy.emit("upload-progress",S,{uploader:this,bytesUploaded:k.loaded/k.total*S.size,bytesTotal:S.size})})}),_.addEventListener("load",k=>{if(x.done(),this.opts.validateStatus(k.target.status,_.responseText,_)){const B=this.opts.getResponseData(_.responseText,_),W={status:k.target.status,body:B};return e.forEach(re=>{this.uppy.emit("upload-success",re,W)}),t()}const S=this.opts.getResponseError(_.responseText,_)||new Error("Upload error");return S.request=_,O(S),n(S)}),_.addEventListener("error",()=>{x.done();const k=this.opts.getResponseError(_.responseText,_)||new Error("Upload error");return O(k),n(k)}),this.uppy.on("cancel-all",()=>{x.done(),_.abort()}),_.open(f.toUpperCase(),c,!0),_.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(_.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(k=>{_.setRequestHeader(k,this.opts.headers[k])}),_.send(P),e.forEach(k=>{this.uppy.emit("upload-started",k)})})}uploadFiles(e){const t=e.map((n,c)=>{const f=parseInt(c,10)+1,m=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,f,m):this.upload(n,f,m)});return NC(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit===0&&!this.opts[Rv]&&this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(t.some(c=>c.isRemote))throw new Error("Cant 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(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},bb.VERSION="2.0.6",Eb),rp=kE,Ed=YD,ih=W3,qi=xl(function(r,e){(function(t,n){n(e,rp,Nw,Ed,S3,tp,Vp,ih,$6,J6,vS,mS,Jp,e5)})(Ur,(function(t,n,c,f,m,P,_,x,O,k,S,B,W,re){function te(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var me=te(n),ne=te(c),X=te(f),q=te(m),Ee=te(_),ye=te(O),Qe=te(S),qe=te(B),Ge=te(W),zt=te(re),qt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:{};function tn(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function an(i){var o={exports:{}};return i(o,o.exports),o.exports}var kn,At,Wn=function(i){return i&&i.Math==Math&&i},Ae=Wn(typeof globalThis=="object"&&globalThis)||Wn(typeof window=="object"&&window)||Wn(typeof self=="object"&&self)||Wn(typeof qt=="object"&&qt)||(function(){return this})()||Function("return this")(),Dt=Object.defineProperty,hn=function(i,o){try{Dt(Ae,i,{value:o,configurable:!0,writable:!0})}catch(a){Ae[i]=o}return o},Ot="__core-js_shared__",Sn=Ae[Ot]||hn(Ot,{}),be=an((function(i){(i.exports=function(o,a){return Sn[o]||(Sn[o]=a!==void 0?a:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),de=Function.prototype,xe=de.bind,Ie=de.call,Ye=xe&&xe.bind(Ie),oe=xe?function(i){return i&&Ye(Ie,i)}:function(i){return i&&function(){return Ie.apply(i,arguments)}},ht=Ae.TypeError,Gt=function(i){if(i==null)throw ht("Can't call method on "+i);return i},xn=Ae.Object,bn=function(i){return xn(Gt(i))},at=oe({}.hasOwnProperty),un=Object.hasOwn||function(i,o){return at(bn(i),o)},Cn=0,Xt=Math.random(),Bn=oe(1 .toString),er=function(i){return"Symbol("+(i===void 0?"":i)+")_"+Bn(++Cn+Xt,36)},$t=function(i){return typeof i=="function"},zn=function(i){return $t(i)?i:void 0},Pr=function(i,o){return arguments.length<2?zn(Ae[i]):Ae[i]&&Ae[i][o]},Mr=Pr("navigator","userAgent")||"",qn=Ae.process,Nn=Ae.Deno,Nr=qn&&qn.versions||Nn&&Nn.version,jn=Nr&&Nr.v8;jn&&(At=(kn=jn.split("."))[0]>0&&kn[0]<4?1:+(kn[0]+kn[1])),!At&&Mr&&(!(kn=Mr.match(/Edge\/(\d+)/))||kn[1]>=74)&&(kn=Mr.match(/Chrome\/(\d+)/))&&(At=+kn[1]);var br=At,Ut=function(i){try{return!!i()}catch(o){return!0}},fr=!!Object.getOwnPropertySymbols&&!Ut((function(){var i=Symbol();return!String(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&br&&br<41})),fi=fr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vr=be("wks"),Jr=Ae.Symbol,Ir=Jr&&Jr.for,Tr=fi?Jr:Jr&&Jr.withoutSetter||er,ve=function(i){if(!un(Vr,i)||!fr&&typeof Vr[i]!="string"){var o="Symbol."+i;fr&&un(Jr,i)?Vr[i]=Jr[i]:Vr[i]=fi&&Ir?Ir(o):Tr(o)}return Vr[i]},Ve={};Ve[ve("toStringTag")]="z";var Ce=String(Ve)==="[object z]",we=!Ut((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),gt=function(i){return typeof i=="object"?i!==null:$t(i)},jt=Ae.document,Mt=gt(jt)&&gt(jt.createElement),Ln=function(i){return Mt?jt.createElement(i):{}},Dr=!we&&!Ut((function(){return Object.defineProperty(Ln("div"),"a",{get:function(){return 7}}).a!=7})),Ar=Ae.String,ui=Ae.TypeError,Kt=function(i){if(gt(i))return i;throw ui(Ar(i)+" is not an object")},Pt=Function.prototype.call,xt=Pt.bind?Pt.bind(Pt):function(){return Pt.apply(Pt,arguments)},Yt=oe({}.isPrototypeOf),gn=Ae.Object,Vt=fi?function(i){return typeof i=="symbol"}:function(i){var o=Pr("Symbol");return $t(o)&&Yt(o.prototype,gn(i))},Xn=Ae.String,Gn=function(i){try{return Xn(i)}catch(o){return"Object"}},Hn=Ae.TypeError,ln=function(i){if($t(i))return i;throw Hn(Gn(i)+" is not a function")},lr=function(i,o){var a=i[o];return a==null?void 0:ln(a)},cn=Ae.TypeError,Rr=Ae.TypeError,mr=ve("toPrimitive"),Er=function(i,o){if(!gt(i)||Vt(i))return i;var a,s=lr(i,mr);if(s){if(o===void 0&&(o="default"),a=xt(s,i,o),!gt(a)||Vt(a))return a;throw Rr("Can't convert object to primitive value")}return o===void 0&&(o="number"),(function(d,g){var y,w;if(g==="string"&&$t(y=d.toString)&&!gt(w=xt(y,d))||$t(y=d.valueOf)&&!gt(w=xt(y,d))||g!=="string"&&$t(y=d.toString)&&!gt(w=xt(y,d)))return w;throw cn("Can't convert object to primitive value")})(i,o)},yi=function(i){var o=Er(i,"string");return Vt(o)?o:o+""},bi=Ae.TypeError,_r=Object.defineProperty,Hr={f:we?_r:function(i,o,a){if(Kt(i),o=yi(o),Kt(a),Dr)try{return _r(i,o,a)}catch(s){}if("get"in a||"set"in a)throw bi("Accessors not supported");return"value"in a&&(i[o]=a.value),i}},Ui=function(i,o){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:o}},ri=we?function(i,o,a){return Hr.f(i,o,Ui(1,a))}:function(i,o,a){return i[o]=a,i},mo=oe(Function.toString);$t(Sn.inspectSource)||(Sn.inspectSource=function(i){return mo(i)});var Qr,ii,Co,zo=Sn.inspectSource,Ca=Ae.WeakMap,Di=$t(Ca)&&/native code/.test(zo(Ca)),Gi=be("keys"),no=function(i){return Gi[i]||(Gi[i]=er(i))},Ho={},Ki="Object already initialized",Si=Ae.TypeError,Ei=Ae.WeakMap;if(Di||Sn.state){var uo=Sn.state||(Sn.state=new Ei),yo=oe(uo.get),wi=oe(uo.has),Uo=oe(uo.set);Qr=function(i,o){if(wi(uo,i))throw new Si(Ki);return o.facade=i,Uo(uo,i,o),o},ii=function(i){return yo(uo,i)||{}},Co=function(i){return wi(uo,i)}}else{var bo=no("state");Ho[bo]=!0,Qr=function(i,o){if(un(i,bo))throw new Si(Ki);return o.facade=i,ri(i,bo,o),o},ii=function(i){return un(i,bo)?i[bo]:{}},Co=function(i){return un(i,bo)}}var jr={set:Qr,get:ii,has:Co,enforce:function(i){return Co(i)?ii(i):Qr(i,{})},getterFor:function(i){return function(o){var a;if(!gt(o)||(a=ii(o)).type!==i)throw Si("Incompatible receiver, "+i+" required");return a}}},so=Function.prototype,Ci=we&&Object.getOwnPropertyDescriptor,Xi=un(so,"name"),Po={EXISTS:Xi,PROPER:Xi&&function(){}.name==="something",CONFIGURABLE:Xi&&(!we||we&&Ci(so,"name").configurable)},di=an((function(i){var o=Po.CONFIGURABLE,a=jr.get,s=jr.enforce,d=String(String).split("String");(i.exports=function(g,y,w,D){var I,j=!!D&&!!D.unsafe,U=!!D&&!!D.enumerable,Z=!!D&&!!D.noTargetGet,ee=D&&D.name!==void 0?D.name:y;$t(w)&&(String(ee).slice(0,7)==="Symbol("&&(ee="["+String(ee).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!un(w,"name")||o&&w.name!==ee)&&ri(w,"name",ee),(I=s(w)).source||(I.source=d.join(typeof ee=="string"?ee:""))),g!==Ae?(j?!Z&&g[y]&&(U=!0):delete g[y],U?g[y]=w:ri(g,y,w)):U?g[y]=w:hn(y,w)})(Function.prototype,"toString",(function(){return $t(this)&&a(this).source||zo(this)}))})),po=oe({}.toString),du=oe("".slice),Ti=function(i){return du(po(i),8,-1)},Yi=ve("toStringTag"),Aa=Ae.Object,ko=Ti((function(){return arguments})())=="Arguments",Eo=Ce?Ti:function(i){var o,a,s;return i===void 0?"Undefined":i===null?"Null":typeof(a=(function(d,g){try{return d[g]}catch(y){}})(o=Aa(i),Yi))=="string"?a:ko?Ti(o):(s=Ti(o))=="Object"&&$t(o.callee)?"Arguments":s},Zi=Ce?{}.toString:function(){return"[object "+Eo(this)+"]"};Ce||di(Object.prototype,"toString",Zi,{unsafe:!0});var Ai={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},No=Ln("span").classList,oa=No&&No.constructor&&No.constructor.prototype,si=oa===Object.prototype?void 0:oa,_a=oe(oe.bind),Io=function(i,o){return ln(i),o===void 0?i:_a?_a(i,o):function(){return i.apply(o,arguments)}},pu=Ae.Object,Ma=oe("".split),Ro=Ut((function(){return!pu("z").propertyIsEnumerable(0)}))?function(i){return Ti(i)=="String"?Ma(i,""):pu(i)}:pu,Wr=Math.ceil,Za=Math.floor,lo=function(i){var o=+i;return o!=o||o===0?0:(o>0?Za:Wr)(o)},Ao=Math.min,Bi=function(i){return i>0?Ao(lo(i),9007199254740991):0},jo=function(i){return Bi(i.length)},co=Array.isArray||function(i){return Ti(i)=="Array"},pa=function(){},Vo=[],Ii=Pr("Reflect","construct"),qr=/^\s*(?:class|function)\b/,ha=oe(qr.exec),ho=!qr.exec(pa),Wo=function(i){if(!$t(i))return!1;try{return Ii(pa,Vo,i),!0}catch(o){return!1}},Oa=!Ii||Ut((function(){var i;return Wo(Wo.call)||!Wo(Object)||!Wo((function(){i=!0}))||i}))?function(i){if(!$t(i))return!1;switch(Eo(i)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ho||!!ha(qr,zo(i))}:Wo,b=ve("species"),L=Ae.Array,le=function(i,o){return new((function(a){var s;return co(a)&&(s=a.constructor,(Oa(s)&&(s===L||co(s.prototype))||gt(s)&&(s=s[b])===null)&&(s=void 0)),s===void 0?L:s})(i))(o===0?0:o)},He=oe([].push),An=function(i){var o=i==1,a=i==2,s=i==3,d=i==4,g=i==6,y=i==7,w=i==5||g;return function(D,I,j,U){for(var Z,ee,ie=bn(D),fe=Ro(ie),De=Io(I,j),Se=jo(fe),Y=0,Re=U||le,lt=o?Re(D,Se):a||y?Re(D,0):void 0;Se>Y;Y++)if((w||Y in fe)&&(ee=De(Z=fe[Y],Y,ie),i))if(o)lt[Y]=ee;else if(ee)switch(i){case 3:return!0;case 5:return Z;case 6:return Y;case 2:He(lt,Z)}else switch(i){case 4:return!1;case 7:He(lt,Z)}return g?-1:s||d?d:lt}},Dn={forEach:An(0),map:An(1),filter:An(2),some:An(3),every:An(4),find:An(5),findIndex:An(6),filterReject:An(7)},dr=function(i,o){var a=[][i];return!!a&&Ut((function(){a.call(null,o||function(){throw 1},1)}))},Or=Dn.forEach,Fi=dr("forEach")?[].forEach:function(i){return Or(this,i,arguments.length>1?arguments[1]:void 0)},kr=function(i){if(i&&i.forEach!==Fi)try{ri(i,"forEach",Fi)}catch(o){i.forEach=Fi}};for(var pi in Ai)Ai[pi]&&kr(Ae[pi]&&Ae[pi].prototype);kr(si);var Ri={}.propertyIsEnumerable,li=Object.getOwnPropertyDescriptor,Pi=li&&!Ri.call({1:2},1)?function(i){var o=li(this,i);return!!o&&o.enumerable}:Ri,ji={f:Pi},Ji=function(i){return Ro(Gt(i))},xi=Object.getOwnPropertyDescriptor,go={f:we?xi:function(i,o){if(i=Ji(i),o=yi(o),Dr)try{return xi(i,o)}catch(a){}if(un(i,o))return Ui(!xt(ji.f,i,o),i[o])}},Ja=Math.max,ga=Math.min,io=function(i,o){var a=lo(i);return a<0?Ja(a+o,0):ga(a,o)},hu=function(i){return function(o,a,s){var d,g=Ji(o),y=jo(g),w=io(s,y);if(i&&a!=a){for(;y>w;)if((d=g[w++])!=d)return!0}else for(;y>w;w++)if((i||w in g)&&g[w]===a)return i||w||0;return!i&&-1}},Qa={includes:hu(!0),indexOf:hu(!1)},Ts=Qa.indexOf,hi=oe([].push),va=function(i,o){var a,s=Ji(i),d=0,g=[];for(a in s)!un(Ho,a)&&un(s,a)&&hi(g,a);for(;o.length>d;)un(s,a=o[d++])&&(~Ts(g,a)||hi(g,a));return g},wo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],aa=wo.concat("length","prototype"),ua={f:Object.getOwnPropertyNames||function(i){return va(i,aa)}},_o={f:Object.getOwnPropertySymbols},Tu=oe([].concat),Wu=Pr("Reflect","ownKeys")||function(i){var o=ua.f(Kt(i)),a=_o.f;return a?Tu(o,a(i)):o},Bu=function(i,o){for(var a=Wu(o),s=Hr.f,d=go.f,g=0;g<a.length;g++){var y=a[g];un(i,y)||s(i,y,d(o,y))}},Fu=/#|\.prototype\./,sa=function(i,o){var a=gu[qo(i)];return a==qu||a!=eu&&($t(o)?Ut(o):!!o)},qo=sa.normalize=function(i){return String(i).replace(Fu,".").toLowerCase()},gu=sa.data={},eu=sa.NATIVE="N",qu=sa.POLYFILL="P",tu=sa,Pu=go.f,$r=function(i,o){var a,s,d,g,y,w=i.target,D=i.global,I=i.stat;if(a=D?Ae:I?Ae[w]||hn(w,{}):(Ae[w]||{}).prototype)for(s in o){if(g=o[s],d=i.noTargetGet?(y=Pu(a,s))&&y.value:a[s],!tu(D?s:w+(I?".":"#")+s,i.forced)&&d!==void 0){if(typeof g==typeof d)continue;Bu(g,d)}(i.sham||d&&d.sham)&&ri(g,"sham",!0),di(a,s,g,i)}},$a=Object.keys||function(i){return va(i,wo)},nu=Ut((function(){$a(1)}));/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function xo(i){return Object.prototype.toString.call(i)==="[object Object]"}$r({target:"Object",stat:!0,forced:nu},{keys:function(i){return $a(bn(i))}});var Bs=function(i){var o,a;return xo(i)!==!1&&((o=i.constructor)===void 0||xo(a=o.prototype)!==!1&&a.hasOwnProperty("isPrototypeOf")!==!1)},Fs=Object.defineProperty({isPlainObject:Bs},"__esModule",{value:!0}),la=function(i){return Fs.isPlainObject(i)&&Array.isArray(i.redos)&&Array.isArray(i.undos)&&(i.redos.length===0||me.default.Operation.isOperationList(i.redos[0]))&&(i.undos.length===0||me.default.Operation.isOperationList(i.undos[0]))},ru=new WeakMap,cs=new WeakMap,ku={isHistoryEditor:function(i){return la(i.history)&&me.default.Editor.isEditor(i)},isMerging:function(i){return cs.get(i)},isSaving:function(i){return ru.get(i)},redo:function(i){i.redo()},undo:function(i){i.undo()},withoutMerging:function(i,o){var a=ku.isMerging(i);cs.set(i,!1),o(),cs.set(i,a)},withoutSaving:function(i,o){var a=ku.isSaving(i);ru.set(i,!1),o(),ru.set(i,a)}};function Ta(i,o){var a=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!a){if(Array.isArray(i)||(a=(function(D,I){if(D){if(typeof D=="string")return Gu(D,I);var j=Object.prototype.toString.call(D).slice(8,-1);if(j==="Object"&&D.constructor&&(j=D.constructor.name),j==="Map"||j==="Set")return Array.from(D);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return Gu(D,I)}})(i))||o&&i&&typeof i.length=="number"){a&&(i=a);var s=0,d=function(){};return{s:d,n:function(){return s>=i.length?{done:!0}:{done:!1,value:i[s++]}},e:function(D){throw D},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,y=!0,w=!1;return{s:function(){a=a.call(i)},n:function(){var D=a.next();return y=D.done,D},e:function(D){w=!0,g=D},f:function(){try{y||a.return==null||a.return()}finally{if(w)throw g}}}}function Gu(i,o){(o==null||o>i.length)&&(o=i.length);for(var a=0,s=new Array(o);a<o;a++)s[a]=i[a];return s}var Go=function(i,o){return i.type==="set_selection"||!(!o||i.type!=="insert_text"||o.type!=="insert_text"||i.offset!==o.offset+o.text.length||!me.default.Path.equals(i.path,o.path))||!(!o||i.type!=="remove_text"||o.type!=="remove_text"||i.offset+i.text.length!==o.offset||!me.default.Path.equals(i.path,o.path))},Ku=function(i,o){return i.type!=="set_selection"||i.properties!=null&&i.newProperties!=null},Nu=function(i,o){return!(!o||i.type!=="set_selection"||o.type!=="set_selection")},vu=function(i){return i.type!=="set_selection"},mu=function(i){var o=i,a=o.apply;return o.history={undos:[],redos:[]},o.redo=function(){var s=o.history,d=s.redos;if(d.length>0){var g=d[d.length-1];ku.withoutSaving(o,(function(){me.default.Editor.withoutNormalizing(o,(function(){var y,w=Ta(g);try{for(w.s();!(y=w.n()).done;){var D=y.value;o.apply(D)}}catch(I){w.e(I)}finally{w.f()}}))})),s.redos.pop(),s.undos.push(g)}},o.undo=function(){var s=o.history,d=s.undos;if(d.length>0){var g=d[d.length-1];ku.withoutSaving(o,(function(){me.default.Editor.withoutNormalizing(o,(function(){var y,w=Ta(g.map(me.default.Operation.inverse).reverse());try{for(w.s();!(y=w.n()).done;){var D=y.value;o.apply(D)}}catch(I){w.e(I)}finally{w.f()}}))})),s.redos.push(g),s.undos.pop()}},o.apply=function(s){var d=o.operations,g=o.history,y=g.undos,w=y[y.length-1],D=w&&w[w.length-1],I=Nu(s,D),j=ku.isSaving(o),U=ku.isMerging(o);if(j==null&&(j=Ku(s)),j){if(U==null&&(U=w!=null&&(d.length!==0||Go(s,D)||I)),w&&U)I&&w.pop(),w.push(s);else{var Z=[s];y.push(Z)}for(;y.length>100;)y.shift();vu(s)&&(g.redos=[])}a(s)},o},Iu=Ae.String,Xr=function(i){if(Eo(i)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Iu(i)},za=function(){var i=Kt(this),o="";return i.global&&(o+="g"),i.ignoreCase&&(o+="i"),i.multiline&&(o+="m"),i.dotAll&&(o+="s"),i.unicode&&(o+="u"),i.sticky&&(o+="y"),o},ma=Po.PROPER,iu="toString",Ba=RegExp.prototype,fs=Ba.toString,yu=oe(za),Ps=Ut((function(){return fs.call({source:"a",flags:"b"})!="/a/b"})),Xu=ma&&fs.name!=iu;(Ps||Xu)&&di(RegExp.prototype,iu,(function(){var i=Kt(this),o=Xr(i.source),a=i.flags;return"/"+o+"/"+Xr(a===void 0&&Yt(Ba,i)&&!("flags"in Ba)?yu(i):a)}),{unsafe:!0});var Ko,Yu=we?Object.defineProperties:function(i,o){Kt(i);for(var a,s=Ji(o),d=$a(o),g=d.length,y=0;g>y;)Hr.f(i,a=d[y++],s[a]);return i},Zu=Pr("document","documentElement"),ks=no("IE_PROTO"),ds=function(){},Fa=function(i){return"<script>"+i+"<\/script>"},ya=function(i){i.write(Fa("")),i.close();var o=i.parentWindow.Object;return i=null,o},Pa=function(){try{Ko=new ActiveXObject("htmlfile")}catch(s){}var i,o;Pa=typeof document!="undefined"?document.domain&&Ko?ya(Ko):((o=Ln("iframe")).style.display="none",Zu.appendChild(o),o.src="javascript:",(i=o.contentWindow.document).open(),i.write(Fa("document.F=Object")),i.close(),i.F):ya(Ko);for(var a=wo.length;a--;)delete Pa.prototype[wo[a]];return Pa()};Ho[ks]=!0;var ka=Object.create||function(i,o){var a;return i!==null?(ds.prototype=Kt(i),a=new ds,ds.prototype=null,a[ks]=i):a=Pa(),o===void 0?a:Yu(a,o)},ou=ve("unscopables"),bu=Array.prototype;bu[ou]==null&&Hr.f(bu,ou,{configurable:!0,value:ka(null)});var ba=function(i){bu[ou][i]=!0},Ru=Qa.includes;$r({target:"Array",proto:!0},{includes:function(i){return Ru(this,i,arguments.length>1?arguments[1]:void 0)}}),ba("includes");var Ju=ve("match"),ju=function(i){var o;return gt(i)&&((o=i[Ju])!==void 0?!!o:Ti(i)=="RegExp")},Xo=Ae.TypeError,Ea=function(i){if(ju(i))throw Xo("The method doesn't accept regular expressions");return i},Ns=ve("match"),Ha=function(i){var o=/./;try{"/./"[i](o)}catch(a){try{return o[Ns]=!1,"/./"[i](o)}catch(s){}}return!1},Eu=oe("".indexOf);$r({target:"String",proto:!0,forced:!Ha("includes")},{includes:function(i){return!!~Eu(Xr(Gt(this)),Xr(Ea(i)),arguments.length>1?arguments[1]:void 0)}});var Na,au=/"/g,ps=oe("".replace);$r({target:"String",proto:!0,forced:(Na="anchor",Ut((function(){var i=""[Na]('"');return i!==i.toLowerCase()||i.split('"').length>3})))},{anchor:function(i){return o="a",a="name",s=i,d=Xr(Gt(this)),g="<"+o,a!==""&&(g+=" "+a+'="'+ps(Xr(s),au,"&quot;")+'"'),g+">"+d+"</"+o+">";var o,a,s,d,g}});var wu=function(i,o,a){var s,d;Kt(i);try{if(!(s=lr(i,"return"))){if(o==="throw")throw a;return a}s=xt(s,i)}catch(g){d=!0,s=g}if(o==="throw")throw a;if(d)throw s;return Kt(s),a},hs=function(i,o,a,s){try{return s?o(Kt(a)[0],a[1]):o(a)}catch(d){wu(i,"throw",d)}},Yo={},gs=ve("iterator"),vs=Array.prototype,Qu=function(i){return i!==void 0&&(Yo.Array===i||vs[gs]===i)},ca=function(i,o,a){var s=yi(o);s in i?Hr.f(i,s,Ui(0,a)):i[s]=a},Is=ve("iterator"),uu=function(i){if(i!=null)return lr(i,Is)||lr(i,"@@iterator")||Yo[Eo(i)]},Gs=Ae.TypeError,Rs=function(i,o){var a=arguments.length<2?uu(i):o;if(ln(a))return Kt(xt(a,i));throw Gs(Gn(i)+" is not iterable")},T=Ae.Array,z=ve("iterator"),ue=!1;try{var Me=0,Fe={next:function(){return{done:!!Me++}},return:function(){ue=!0}};Fe[z]=function(){return this},Array.from(Fe,(function(){throw 2}))}catch(i){}var ot=function(i,o){if(!o&&!ue)return!1;var a=!1;try{var s={};s[z]=function(){return{next:function(){return{done:a=!0}}}},i(s)}catch(d){}return a},Te=!ot((function(i){Array.from(i)}));$r({target:"Array",stat:!0,forced:Te},{from:function(i){var o=bn(i),a=Oa(this),s=arguments.length,d=s>1?arguments[1]:void 0,g=d!==void 0;g&&(d=Io(d,s>2?arguments[2]:void 0));var y,w,D,I,j,U,Z=uu(o),ee=0;if(!Z||this==T&&Qu(Z))for(y=jo(o),w=a?new this(y):T(y);y>ee;ee++)U=g?d(o[ee],ee):o[ee],ca(w,ee,U);else for(j=(I=Rs(o,Z)).next,w=a?new this:[];!(D=xt(j,I)).done;ee++)U=g?hs(I,d,[D.value,ee],!0):D.value,ca(w,ee,U);return w.length=ee,w}});var ct,vt,Lt,kt=oe("".charAt),Wt=oe("".charCodeAt),Kn=oe("".slice),rn=function(i){return function(o,a){var s,d,g=Xr(Gt(o)),y=lo(a),w=g.length;return y<0||y>=w?i?"":void 0:(s=Wt(g,y))<55296||s>56319||y+1===w||(d=Wt(g,y+1))<56320||d>57343?i?kt(g,y):s:i?Kn(g,y,y+2):d-56320+(s-55296<<10)+65536}},tr={codeAt:rn(!1),charAt:rn(!0)},In=!Ut((function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})),nt=no("IE_PROTO"),$e=Ae.Object,bt=$e.prototype,Ct=In?$e.getPrototypeOf:function(i){var o=bn(i);if(un(o,nt))return o[nt];var a=o.constructor;return $t(a)&&o instanceof a?a.prototype:o instanceof $e?bt:null},Bt=ve("iterator"),fn=!1;[].keys&&("next"in(Lt=[].keys())?(vt=Ct(Ct(Lt)))!==Object.prototype&&(ct=vt):fn=!0);var en=ct==null||Ut((function(){var i={};return ct[Bt].call(i)!==i}));en&&(ct={}),$t(ct[Bt])||di(ct,Bt,(function(){return this}));var _n={IteratorPrototype:ct,BUGGY_SAFARI_ITERATORS:fn},gi=Hr.f,cr=ve("toStringTag"),Vi=function(i,o,a){i&&!un(i=a?i:i.prototype,cr)&&gi(i,cr,{configurable:!0,value:o})},oo=_n.IteratorPrototype,Lo=function(){return this},Ua=Ae.String,wr=Ae.TypeError,Oo=Object.setPrototypeOf||("__proto__"in{}?(function(){var i,o=!1,a={};try{(i=oe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(a,[]),o=a instanceof Array}catch(s){}return function(s,d){return Kt(s),(function(g){if(typeof g=="object"||$t(g))return g;throw wr("Can't set "+Ua(g)+" as a prototype")})(d),o?i(s,d):s.__proto__=d,s}})():void 0),Li=Po.PROPER,Zo=Po.CONFIGURABLE,Ia=_n.IteratorPrototype,Mi=_n.BUGGY_SAFARI_ITERATORS,$i=ve("iterator"),wa="keys",ci="values",Wi="entries",Jo=function(){return this},xa=function(i,o,a,s,d,g,y){(function(Se,Y,Re,lt){var St=Y+" Iterator";Se.prototype=ka(oo,{next:Ui(+!lt,Re)}),Vi(Se,St,!1),Yo[St]=Lo})(a,o,s);var w,D,I,j=function(Se){if(Se===d&&fe)return fe;if(!Mi&&Se in ee)return ee[Se];switch(Se){case wa:case ci:case Wi:return function(){return new a(this,Se)}}return function(){return new a(this)}},U=o+" Iterator",Z=!1,ee=i.prototype,ie=ee[$i]||ee["@@iterator"]||d&&ee[d],fe=!Mi&&ie||j(d),De=o=="Array"&&ee.entries||ie;if(De&&(w=Ct(De.call(new i)))!==Object.prototype&&w.next&&(Ct(w)!==Ia&&(Oo?Oo(w,Ia):$t(w[$i])||di(w,$i,Jo)),Vi(w,U,!0)),Li&&d==ci&&ie&&ie.name!==ci&&(Zo?ri(ee,"name",ci):(Z=!0,fe=function(){return xt(ie,this)})),d)if(D={values:j(ci),keys:g?fe:j(wa),entries:j(Wi)},y)for(I in D)(Mi||Z||!(I in ee))&&di(ee,I,D[I]);else $r({target:o,proto:!0,forced:Mi||Z},D);return ee[$i]!==fe&&di(ee,$i,fe,{name:d}),Yo[o]=fe,D},ms=tr.charAt,Lu="String Iterator",ys=jr.set,Qo=jr.getterFor(Lu);xa(String,"String",(function(i){ys(this,{type:Lu,string:Xr(i),index:0})}),(function(){var i,o=Qo(this),a=o.string,s=o.index;return s>=a.length?{value:void 0,done:!0}:(i=ms(a,s),o.index+=i.length,{value:i,done:!1})}));var Va,bs=go.f,es=oe("".endsWith),Ks=oe("".slice),Mu=Math.min,Ol=Ha("endsWith"),Ll=!(Ol||(Va=bs(String.prototype,"endsWith"),!Va||Va.writable));$r({target:"String",proto:!0,forced:!Ll&&!Ol},{endsWith:function(i){var o=Xr(Gt(this));Ea(i);var a=arguments.length>1?arguments[1]:void 0,s=o.length,d=a===void 0?s:Mu(Bi(a),s),g=Xr(i);return es?es(o,g,d):Ks(o,d-g.length,d)===g}});var Wa=oe([].join),$u=Ro!=Object,Xs=dr("join",",");$r({target:"Array",proto:!0,forced:$u||!Xs},{join:function(i){return Wa(Ji(this),i===void 0?",":i)}});var js=ve("species"),xu=function(i){return br>=51||!Ut((function(){var o=[];return(o.constructor={})[js]=function(){return{foo:1}},o[i](Boolean).foo!==1}))},rl=Dn.map,il=xu("map");$r({target:"Array",proto:!0,forced:!il},{map:function(i){return rl(this,i,arguments.length>1?arguments[1]:void 0)}});var ts=Ae.RegExp,zu=Ut((function(){var i=ts("a","y");return i.lastIndex=2,i.exec("abcd")!=null})),ns=zu||Ut((function(){return!ts("a","y").sticky})),Du={BROKEN_CARET:zu||Ut((function(){var i=ts("^r","gy");return i.lastIndex=2,i.exec("str")!=null})),MISSED_STICKY:ns,UNSUPPORTED_Y:zu},Es=Ae.RegExp,su=Ut((function(){var i=Es(".","s");return!(i.dotAll&&i.exec(`
`)&&i.flags==="s")})),ws=Ae.RegExp,xs=Ut((function(){var i=ws("(?<a>b)","g");return i.exec("b").groups.a!=="b"||"b".replace(i,"$<a>c")!=="bc"})),Ml=jr.get,$l=be("native-string-replace",String.prototype.replace),ol=RegExp.prototype.exec,Hu=ol,F=oe("".charAt),H=oe("".indexOf),se=oe("".replace),Ke=oe("".slice),Oe=(function(){var i=/a/,o=/b*/g;return xt(ol,i,"a"),xt(ol,o,"a"),i.lastIndex!==0||o.lastIndex!==0})(),We=Du.BROKEN_CARET,dt=/()??/.exec("")[1]!==void 0;(Oe||dt||We||su||xs)&&(Hu=function(i){var o,a,s,d,g,y,w,D=this,I=Ml(D),j=Xr(i),U=I.raw;if(U)return U.lastIndex=D.lastIndex,o=xt(Hu,U,j),D.lastIndex=U.lastIndex,o;var Z=I.groups,ee=We&&D.sticky,ie=xt(za,D),fe=D.source,De=0,Se=j;if(ee&&(ie=se(ie,"y",""),H(ie,"g")===-1&&(ie+="g"),Se=Ke(j,D.lastIndex),D.lastIndex>0&&(!D.multiline||D.multiline&&F(j,D.lastIndex-1)!==`
`)&&(fe="(?: "+fe+")",Se=" "+Se,De++),a=new RegExp("^(?:"+fe+")",ie)),dt&&(a=new RegExp("^"+fe+"$(?!\\s)",ie)),Oe&&(s=D.lastIndex),d=xt(ol,ee?a:D,Se),ee?d?(d.input=Ke(d.input,De),d[0]=Ke(d[0],De),d.index=D.lastIndex,D.lastIndex+=d[0].length):D.lastIndex=0:Oe&&d&&(D.lastIndex=D.global?d.index+d[0].length:s),dt&&d&&d.length>1&&xt($l,d[0],a,(function(){for(g=1;g<arguments.length-2;g++)arguments[g]===void 0&&(d[g]=void 0)})),d&&Z)for(d.groups=y=ka(null),g=0;g<Z.length;g++)y[(w=Z[g])[0]]=d[w[1]];return d});var et=Hu;$r({target:"RegExp",proto:!0,forced:/./.exec!==et},{exec:et});var rt=Function.prototype,Ft=rt.apply,It=rt.bind,Zt=rt.call,sn=typeof Reflect=="object"&&Reflect.apply||(It?Zt.bind(Ft):function(){return Zt.apply(Ft,arguments)}),Jt=ve("species"),gr=RegExp.prototype,pr=function(i,o,a,s){var d=ve(i),g=!Ut((function(){var I={};return I[d]=function(){return 7},""[i](I)!=7})),y=g&&!Ut((function(){var I=!1,j=/a/;return i==="split"&&((j={}).constructor={},j.constructor[Jt]=function(){return j},j.flags="",j[d]=/./[d]),j.exec=function(){return I=!0,null},j[d](""),!I}));if(!g||!y||a){var w=oe(/./[d]),D=o(d,""[i],(function(I,j,U,Z,ee){var ie=oe(I),fe=j.exec;return fe===et||fe===gr.exec?g&&!ee?{done:!0,value:w(j,U,Z)}:{done:!0,value:ie(U,j,Z)}:{done:!1}}));di(String.prototype,i,D[0]),di(gr,d,D[1])}s&&ri(gr[d],"sham",!0)},Lr=tr.charAt,vi=function(i,o,a){return o+(a?Lr(i,o).length:1)},Gr=Math.floor,Qi=oe("".charAt),ea=oe("".replace),Mo=oe("".slice),To=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ra=/\$([$&'`]|\d{1,2})/g,rs=function(i,o,a,s,d,g){var y=a+i.length,w=s.length,D=Ra;return d!==void 0&&(d=bn(d),D=To),ea(g,D,(function(I,j){var U;switch(Qi(j,0)){case"$":return"$";case"&":return i;case"`":return Mo(o,0,a);case"'":return Mo(o,y);case"<":U=d[Mo(j,1,-1)];break;default:var Z=+j;if(Z===0)return I;if(Z>w){var ee=Gr(Z/10);return ee===0?I:ee<=w?s[ee-1]===void 0?Qi(j,1):s[ee-1]+Qi(j,1):I}U=s[Z-1]}return U===void 0?"":U}))},is=Ae.TypeError,os=function(i,o){var a=i.exec;if($t(a)){var s=xt(a,i,o);return s!==null&&Kt(s),s}if(Ti(i)==="RegExp")return xt(et,i,o);throw is("RegExp#exec called on incompatible receiver")},Ls=ve("replace"),al=Math.max,ul=Math.min,C=oe([].concat),V=oe([].push),ge=oe("".indexOf),je=oe("".slice),Le="a".replace(/./,"$0")==="$0",st=!!/./[Ls]&&/./[Ls]("a","$0")==="";pr("replace",(function(i,o,a){var s=st?"$":"$0";return[function(d,g){var y=Gt(this),w=d==null?void 0:lr(d,Ls);return w?xt(w,d,y,g):xt(o,Xr(y),d,g)},function(d,g){var y=Kt(this),w=Xr(d);if(typeof g=="string"&&ge(g,s)===-1&&ge(g,"$<")===-1){var D=a(o,y,w,g);if(D.done)return D.value}var I=$t(g);I||(g=Xr(g));var j=y.global;if(j){var U=y.unicode;y.lastIndex=0}for(var Z=[];;){var ee=os(y,w);if(ee===null||(V(Z,ee),!j))break;Xr(ee[0])===""&&(y.lastIndex=vi(w,Bi(y.lastIndex),U))}for(var ie,fe="",De=0,Se=0;Se<Z.length;Se++){for(var Y=Xr((ee=Z[Se])[0]),Re=al(ul(lo(ee.index),w.length),0),lt=[],St=1;St<ee.length;St++)V(lt,(ie=ee[St])===void 0?ie:String(ie));var Un=ee.groups;if(I){var yn=C([Y],lt,Re,w);Un!==void 0&&V(yn,Un);var Fr=Xr(sn(g,void 0,yn))}else Fr=rs(Y,w,Re,lt,Un,g);Re>=De&&(fe+=je(w,De,Re)+Fr,De=Re+Y.length)}return fe+je(w,De)}]}),!!Ut((function(){var i=/./;return i.exec=function(){var o=[];return o.groups={a:"7"},o},"".replace(i,"$<a>")!=="7"}))||!Le||st);/*! *****************************************************************************
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 Et=function(i,o){return Et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(a[d]=s[d])},Et(i,o)};function Ze(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function a(){this.constructor=i}Et(i,o),i.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}var it=function(){return it=Object.assign||function(i){for(var o,a=1,s=arguments.length;a<s;a++)for(var d in o=arguments[a])Object.prototype.hasOwnProperty.call(o,d)&&(i[d]=o[d]);return i},it.apply(this,arguments)};function Nt(i){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&i[o],s=0;if(a)return a.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(i,o){var a=typeof Symbol=="function"&&i[Symbol.iterator];if(!a)return i;var s,d,g=a.call(i),y=[];try{for(;(o===void 0||o-- >0)&&!(s=g.next()).done;)y.push(s.value)}catch(w){d={error:w}}finally{try{s&&!s.done&&(a=g.return)&&a.call(g)}finally{if(d)throw d.error}}return y}function vn(i,o){for(var a=0,s=o.length,d=i.length;a<s;a++,d++)i[d]=o[a];return i}var dn=0,nn=function(){this.id=""+dn++},Br="Array Iterator",ar=jr.set,Fn=jr.getterFor(Br),Mn=xa(Array,"Array",(function(i,o){ar(this,{type:Br,target:Ji(i),index:0,kind:o})}),(function(){var i=Fn(this),o=i.target,a=i.kind,s=i.index++;return!o||s>=o.length?(i.target=void 0,{value:void 0,done:!0}):a=="keys"?{value:s,done:!1}:a=="values"?{value:o[s],done:!1}:{value:[s,o[s]],done:!1}}),"values");Yo.Arguments=Yo.Array,ba("keys"),ba("values"),ba("entries");var mn=function(i,o,a){for(var s in o)di(i,s,o[s],a);return i},zr=Ae.Array,ki=Math.max,_i=function(i,o,a){for(var s=jo(i),d=io(o,s),g=io(a===void 0?s:a,s),y=zr(ki(g-d,0)),w=0;d<g;d++,w++)ca(y,w,i[d]);return y.length=w,y},ao=ua.f,eo=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qa={f:function(i){return eo&&Ti(i)=="Window"?(function(o){try{return ao(o)}catch(a){return _i(eo)}})(i):ao(Ji(i))}},Da=Ut((function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}})),as=Object.isExtensible,Ms=Ut((function(){as(1)}))||Da?function(i){return!!gt(i)&&(!Da||Ti(i)!="ArrayBuffer")&&(!as||as(i))}:as,sl=!Ut((function(){return Object.isExtensible(Object.preventExtensions({}))})),ll=an((function(i){var o=Hr.f,a=!1,s=er("meta"),d=0,g=function(w){o(w,s,{value:{objectID:"O"+d++,weakData:{}}})},y=i.exports={enable:function(){y.enable=function(){},a=!0;var w=ua.f,D=oe([].splice),I={};I[s]=1,w(I).length&&(ua.f=function(j){for(var U=w(j),Z=0,ee=U.length;Z<ee;Z++)if(U[Z]===s){D(U,Z,1);break}return U},$r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qa.f}))},fastKey:function(w,D){if(!gt(w))return typeof w=="symbol"?w:(typeof w=="string"?"S":"P")+w;if(!un(w,s)){if(!Ms(w))return"F";if(!D)return"E";g(w)}return w[s].objectID},getWeakData:function(w,D){if(!un(w,s)){if(!Ms(w))return!0;if(!D)return!1;g(w)}return w[s].weakData},onFreeze:function(w){return sl&&a&&Ms(w)&&!un(w,s)&&g(w),w}};Ho[s]=!0})),vf=Ae.TypeError,ic=function(i,o){this.stopped=i,this.result=o},oc=ic.prototype,zl=function(i,o,a){var s,d,g,y,w,D,I,j=a&&a.that,U=!(!a||!a.AS_ENTRIES),Z=!(!a||!a.IS_ITERATOR),ee=!(!a||!a.INTERRUPTED),ie=Io(o,j),fe=function(Se){return s&&wu(s,"normal",Se),new ic(!0,Se)},De=function(Se){return U?(Kt(Se),ee?ie(Se[0],Se[1],fe):ie(Se[0],Se[1])):ee?ie(Se,fe):ie(Se)};if(Z)s=i;else{if(!(d=uu(i)))throw vf(Gn(i)+" is not iterable");if(Qu(d)){for(g=0,y=jo(i);y>g;g++)if((w=De(i[g]))&&Yt(oc,w))return w;return new ic(!1)}s=Rs(i,d)}for(D=s.next;!(I=xt(D,s)).done;){try{w=De(I.value)}catch(Se){wu(s,"throw",Se)}if(typeof w=="object"&&w&&Yt(oc,w))return w}return new ic(!1)},xd=Ae.TypeError,Ys=function(i,o){if(Yt(o,i))return i;throw xd("Incorrect invocation")},Hl=function(i,o,a){var s,d;return Oo&&$t(s=o.constructor)&&s!==a&&gt(d=s.prototype)&&d!==a.prototype&&Oo(i,d),i},Tc=function(i,o,a){var s=i.indexOf("Map")!==-1,d=i.indexOf("Weak")!==-1,g=s?"set":"add",y=Ae[i],w=y&&y.prototype,D=y,I={},j=function(De){var Se=oe(w[De]);di(w,De,De=="add"?function(Y){return Se(this,Y===0?0:Y),this}:De=="delete"?function(Y){return!(d&&!gt(Y))&&Se(this,Y===0?0:Y)}:De=="get"?function(Y){return d&&!gt(Y)?void 0:Se(this,Y===0?0:Y)}:De=="has"?function(Y){return!(d&&!gt(Y))&&Se(this,Y===0?0:Y)}:function(Y,Re){return Se(this,Y===0?0:Y,Re),this})};if(tu(i,!$t(y)||!(d||w.forEach&&!Ut((function(){new y().entries().next()})))))D=a.getConstructor(o,i,s,g),ll.enable();else if(tu(i,!0)){var U=new D,Z=U[g](d?{}:-0,1)!=U,ee=Ut((function(){U.has(1)})),ie=ot((function(De){new y(De)})),fe=!d&&Ut((function(){for(var De=new y,Se=5;Se--;)De[g](Se,Se);return!De.has(-0)}));ie||((D=o((function(De,Se){Ys(De,w);var Y=Hl(new y,De,D);return Se!=null&&zl(Se,Y[g],{that:Y,AS_ENTRIES:s}),Y}))).prototype=w,w.constructor=D),(ee||fe)&&(j("delete"),j("has"),s&&j("get")),(fe||Z)&&j(g),d&&w.clear&&delete w.clear}return I[i]=D,$r({global:!0,forced:D!=y},I),Vi(D,i),d||a.setStrong(D,i,s),D},Zs=ll.getWeakData,Tl=jr.set,Uu=jr.getterFor,Bl=Dn.find,Vf=Dn.findIndex,Dd=oe([].splice),cl=0,Ga=function(i){return i.frozen||(i.frozen=new Ul)},Ul=function(){this.entries=[]},ac=function(i,o){return Bl(i.entries,(function(a){return a[0]===o}))};Ul.prototype={get:function(i){var o=ac(this,i);if(o)return o[1]},has:function(i){return!!ac(this,i)},set:function(i,o){var a=ac(this,i);a?a[1]=o:this.entries.push([i,o])},delete:function(i){var o=Vf(this.entries,(function(a){return a[0]===i}));return~o&&Dd(this.entries,o,1),!!~o}};var Ds,Bc={getConstructor:function(i,o,a,s){var d=i((function(D,I){Ys(D,g),Tl(D,{type:o,id:cl++,frozen:void 0}),I!=null&&zl(I,D[s],{that:D,AS_ENTRIES:a})})),g=d.prototype,y=Uu(o),w=function(D,I,j){var U=y(D),Z=Zs(Kt(I),!0);return Z===!0?Ga(U).set(I,j):Z[U.id]=j,D};return mn(g,{delete:function(D){var I=y(this);if(!gt(D))return!1;var j=Zs(D);return j===!0?Ga(I).delete(D):j&&un(j,I.id)&&delete j[I.id]},has:function(D){var I=y(this);if(!gt(D))return!1;var j=Zs(D);return j===!0?Ga(I).has(D):j&&un(j,I.id)}}),mn(g,a?{get:function(D){var I=y(this);if(gt(D)){var j=Zs(D);return j===!0?Ga(I).get(D):j?j[I.id]:void 0}},set:function(D,I){return w(this,D,I)}}:{add:function(D){return w(this,D,!0)}}),d}},$s=jr.enforce,Wf=!Ae.ActiveXObject&&"ActiveXObject"in Ae,qf=function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},mf=Tc("WeakMap",qf,Bc);if(Di&&Wf){Ds=Bc.getConstructor(qf,"WeakMap",!0),ll.enable();var Vl=mf.prototype,yf=oe(Vl.delete),zs=oe(Vl.has),Fc=oe(Vl.get),uc=oe(Vl.set);mn(Vl,{delete:function(i){if(gt(i)&&!Ms(i)){var o=$s(this);return o.frozen||(o.frozen=new Ds),yf(this,i)||o.frozen.delete(i)}return yf(this,i)},has:function(i){if(gt(i)&&!Ms(i)){var o=$s(this);return o.frozen||(o.frozen=new Ds),zs(this,i)||o.frozen.has(i)}return zs(this,i)},get:function(i){if(gt(i)&&!Ms(i)){var o=$s(this);return o.frozen||(o.frozen=new Ds),zs(this,i)?Fc(this,i):o.frozen.get(i)}return Fc(this,i)},set:function(i,o){if(gt(i)&&!Ms(i)){var a=$s(this);a.frozen||(a.frozen=new Ds),zs(this,i)?uc(this,i,o):a.frozen.set(i,o)}else uc(this,i,o);return this}})}var Wl=ve("iterator"),fl=ve("toStringTag"),Ss=Mn.values,Su=function(i,o){if(i){if(i[Wl]!==Ss)try{ri(i,Wl,Ss)}catch(s){i[Wl]=Ss}if(i[fl]||ri(i,fl,o),Ai[o]){for(var a in Mn)if(i[a]!==Mn[a])try{ri(i,a,Mn[a])}catch(s){i[a]=Mn[a]}}}};for(var sc in Ai)Su(Ae[sc]&&Ae[sc].prototype,sc);Su(si,"DOMTokenList");var Cs=new WeakMap,us=new WeakMap,lc=new WeakMap,Pc=new WeakMap,kc=new WeakMap,ql=new WeakMap,cc=new WeakMap,Nc=new WeakMap,dl=new WeakMap,Ic=new WeakMap,Gl=new WeakMap,Js=new WeakMap,Rc=new WeakMap,pl=new WeakMap,Hs=new WeakMap,jc=new WeakMap,fc=new WeakMap,Us=new WeakMap,dc=new WeakMap,Fl=new WeakMap,Lc=new WeakMap,Qs=new WeakMap,Mc=new WeakMap,$c=new WeakMap,zc=new WeakMap,Sd=Dn.find,v="find",R=!0;v in[]&&Array(1).find((function(){R=!1})),$r({target:"Array",proto:!0,forced:R},{find:function(i){return Sd(this,i,arguments.length>1?arguments[1]:void 0)}}),ba(v),$r({global:!0},{globalThis:Ae});const G=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];f.css&&(X.default.fn.css=f.css),f.append&&(X.default.fn.append=f.append),f.addClass&&(X.default.fn.addClass=f.addClass),f.removeClass&&(X.default.fn.removeClass=f.removeClass),f.hasClass&&(X.default.fn.hasClass=f.hasClass),f.on&&(X.default.fn.on=f.on),f.focus&&(X.default.fn.focus=f.focus),f.attr&&(X.default.fn.attr=f.attr),f.removeAttr&&(X.default.fn.removeAttr=f.removeAttr),f.hide&&(X.default.fn.hide=f.hide),f.show&&(X.default.fn.show=f.show),f.offset&&(X.default.fn.offset=f.offset),f.width&&(X.default.fn.width=f.width),f.height&&(X.default.fn.height=f.height),f.parent&&(X.default.fn.parent=f.parent),f.parents&&(X.default.fn.parents=f.parents),f.is&&(X.default.fn.is=f.is),f.dataset&&(X.default.fn.dataset=f.dataset),f.val&&(X.default.fn.val=f.val),f.text&&(X.default.fn.text=f.text),f.html&&(X.default.fn.html=f.html),f.children&&(X.default.fn.children=f.children),f.remove&&(X.default.fn.remove=f.remove),f.find&&(X.default.fn.find=f.find),f.each&&(X.default.fn.each=f.each),f.empty&&(X.default.fn.empty=f.empty);var pe,he=function(i){return i&&i.ownerDocument&&i.ownerDocument.defaultView||null},Ue=function(i){return Xe(i)&&i.nodeType===1},Xe=function(i){var o=he(i);return!!o&&i instanceof o.Node},Ne=function(i){var o=i&&i.anchorNode&&he(i.anchorNode);return!!o&&i instanceof o.Selection},ut=function(i){return Xe(i)&&i.nodeType===3},Tt=function(i){var o,a,s;return(o=window.document.getElementById(i))!==null&&o!==void 0?o:((s=(a=window.document.activeElement)===null||a===void 0?void 0:a.shadowRoot)===null||s===void 0?void 0:s.getElementById(i))||null},mt=function(i,o,a){for(var s,d=i.childNodes,g=d[o],y=o,w=!1,D=!1;(Xe(s=g)&&s.nodeType===8||Ue(g)&&g.childNodes.length===0||Ue(g)&&g.getAttribute("contenteditable")==="false")&&(!w||!D);)y>=d.length?(w=!0,y=o-1,a="backward"):y<0?(D=!0,y=o+1,a="forward"):(g=d[y],o=y,y+=a==="forward"?1:-1);return[g,o]},nr=function(i,o,a){return ft(mt(i,o,a),1)[0]},rr=function i(o){var a,s,d="";if(ut(o)&&o.nodeValue)return o.nodeValue;if(Ue(o)){try{for(var g=Nt(Array.from(o.childNodes)),y=g.next();!y.done;y=g.next())d+=i(y.value)}catch(D){a={error:D}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}var w=getComputedStyle(o).getPropertyValue("display");w!=="block"&&w!=="list"&&w!=="table-row"&&o.tagName!=="BR"||(d+=`
`)}return d};function pn(i,o){if(!(i instanceof HTMLElement&&i.dataset.slateVoid==="true"))for(var a=i.childNodes,s=a.length;s--;){var d=a[s],g=d.nodeType;g==3?o(d,i):g!=1&&g!=9&&g!=11||pn(d,o)}}function ei(i){if(i.length===0)return"";var o=i[0];return o.nodeType!==pe.ELEMENT_NODE?"":o.tagName.toLowerCase()}(function(i){i[i.ELEMENT_NODE=1]="ELEMENT_NODE",i[i.TEXT_NODE=3]="TEXT_NODE",i[i.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",i[i.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",i[i.COMMENT_NODE=8]="COMMENT_NODE",i[i.DOCUMENT_NODE=9]="DOCUMENT_NODE",i[i.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",i[i.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(pe||(pe={})),globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var ur=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),Rn=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 Sr=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),ir=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Yn=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),$o=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent);typeof navigator!="undefined"&&/.*QQBrowser/.test(navigator.userAgent);var Cu=!Yn&&!ir&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",_t={getWindow:function(i){var o=Lc.get(i);if(!o)throw new Error("Unable to find a host window element for this editor");return o},findKey:function(i,o){var a=Fl.get(o);return a||(a=new nn,Fl.set(o,a)),a},setNewKey:function(i){var o=new nn;Fl.set(i,o)},findPath:function(i,o){for(var a=[],s=o;;){var d=Hs.get(s);if(d==null){if(n.Editor.isEditor(s))return a;break}var g=pl.get(s);if(g==null)break;a.unshift(g),s=d}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(o))},findDocumentOrShadowRoot:function(i){if(i.isDestroyed)return window.document;var o=_t.toDOMNode(i,i),a=o.getRootNode();return(a instanceof Document||a instanceof ShadowRoot)&&a.getSelection!=null?a:o.ownerDocument},getParentNode:function(i,o){return Hs.get(o)||null},getParentsNodes:function(i,o){for(var a=[],s=o;s!==i&&s!=null;){var d=_t.getParentNode(i,s);if(d==null)break;a.push(d),s=d}return a},getTopNode:function(i,o){var a=[_t.findPath(i,o)[0]];return n.Node.get(i,a)},toDOMNode:function(i,o){var a;if(n.Editor.isEditor(o))a=jc.get(i);else{var s=_t.findKey(i,o);a=Us.get(s)}if(!a)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(o));return a},hasDOMNode:function(i,o,a){a===void 0&&(a={});var s,d=a.editable,g=d!==void 0&&d,y=_t.toDOMNode(i,i);try{s=Ue(o)?o:o.parentElement}catch(w){if(!w.message.includes('Permission denied to access property "nodeType"'))throw w}return!!s&&s.closest("[data-slate-editor]")===y&&(!g||s.isContentEditable||!!s.getAttribute("data-slate-zero-width"))},toDOMRange:function(i,o){var a=o.anchor,s=o.focus,d=n.Range.isBackward(o),g=_t.toDOMPoint(i,a),y=n.Range.isCollapsed(o)?g:_t.toDOMPoint(i,s),w=_t.getWindow(i).document.createRange(),D=ft(d?y:g,2),I=D[0],j=D[1],U=ft(d?g:y,2),Z=U[0],ee=U[1],ie=!!(Ue(I)?I:I.parentElement).getAttribute("data-slate-zero-width"),fe=!!(Ue(Z)?Z:Z.parentElement).getAttribute("data-slate-zero-width");return w.setStart(I,ie?1:j),w.setEnd(Z,fe?1:ee),w},toDOMPoint:function(i,o){var a,s,d,g=ft(n.Editor.node(i,o.path),1)[0],y=_t.toDOMNode(i,g);n.Editor.void(i,{at:o})&&(o={path:o.path,offset:0});var w=Array.from(y.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),D=0;try{for(var I=Nt(w),j=I.next();!j.done;j=I.next()){var U=j.value,Z=U.childNodes[0];if(Z!=null&&Z.textContent!=null){var ee=Z.textContent.length,ie=U.getAttribute("data-slate-length"),fe=D+(ie==null?ee:parseInt(ie,10));if(o.offset<=fe){d=[Z,Math.min(ee,Math.max(0,o.offset-D))];break}D=fe}}}catch(De){a={error:De}}finally{try{j&&!j.done&&(s=I.return)&&s.call(I)}finally{if(a)throw a.error}}if(!d)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(o));return d},toSlateNode:function(i,o){var a=Ue(o)?o:o.parentElement;a&&!a.hasAttribute("data-slate-node")&&(a=a.closest("[data-slate-node]"));var s=a?fc.get(a):null;if(!s)throw new Error("Cannot resolve a Slate node from DOM node: "+a);return s},findEventRange:function(i,o){"nativeEvent"in o&&(o=o.nativeEvent);var a=o.clientX,s=o.clientY,d=o.target;if(a==null||s==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+o);var g,y=_t.toSlateNode(i,o.target),w=_t.findPath(i,y);if(n.Editor.isVoid(i,y)){var D=d.getBoundingClientRect(),I=i.isInline(y)?a-D.left<D.left+D.width-a:s-D.top<D.top+D.height-s,j=n.Editor.point(i,w,{edge:I?"start":"end"}),U=I?n.Editor.before(i,j):n.Editor.after(i,j);if(U)return n.Editor.range(i,U)}var Z=this.getWindow(i).document;if(Z.caretRangeFromPoint)g=Z.caretRangeFromPoint(a,s);else{var ee=Z.caretPositionFromPoint(a,s);ee&&((g=Z.createRange()).setStart(ee.offsetNode,ee.offset),g.setEnd(ee.offsetNode,ee.offset))}if(!g)throw new Error("Cannot resolve a Slate range from a DOM event: "+o);return _t.toSlateRange(i,g,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(i,o,a){var s,d,g,y,w,D=a.exactMatch,I=a.suppressThrow;if((Ne(o)?o.anchorNode:o.startContainer)&&(Ne(o)?(s=o.anchorNode,d=o.anchorOffset,g=o.focusNode,y=o.focusOffset,w=$o&&window.document.activeElement&&window.document.activeElement.shadowRoot?o.anchorNode===o.focusNode&&o.anchorOffset===o.focusOffset:o.isCollapsed):(s=o.startContainer,d=o.startOffset,g=o.endContainer,y=o.endOffset,w=o.collapsed)),s==null||g==null||d==null||y==null)throw new Error("Cannot resolve a Slate range from DOM range: "+o);var j=_t.toSlatePoint(i,[s,d],{exactMatch:D,suppressThrow:I});if(!j)return null;var U=w?j:_t.toSlatePoint(i,[g,y],{exactMatch:D,suppressThrow:I});if(!U)return null;var Z={anchor:j,focus:U};return n.Range.isExpanded(Z)&&n.Range.isForward(Z)&&Ue(g)&&n.Editor.void(i,{at:Z.focus,mode:"highest"})&&(Z=n.Editor.unhangRange(i,Z,{voids:!0})),Z},toSlatePoint:function(i,o,a){var s,d=a.exactMatch,g=a.suppressThrow,y=ft(d?o:(function(Y){var Re,lt=ft(Y,2),St=lt[0],Un=lt[1];if(Ue(St)&&St.childNodes.length){var yn=Un===St.childNodes.length,Fr=yn?Un-1:Un;for(St=(Re=ft(mt(St,Fr,yn?"backward":"forward"),2))[0],yn=(Fr=Re[1])<Un;Ue(St)&&St.childNodes.length;){var na=yn?St.childNodes.length-1:0;St=nr(St,na,yn?"backward":"forward")}Un=yn&&St.textContent!=null?St.textContent.length:0}return[St,Un]})(o),2),w=y[0],D=y[1],I=w.parentNode,j=null,U=0;if(I){var Z=I.closest('[data-slate-void="true"]'),ee=I.closest("[data-slate-leaf]"),ie=null;if(ee){j=ee.closest('[data-slate-node="text"]');var fe=_t.getWindow(i).document.createRange();fe.setStart(j,0),fe.setEnd(w,D);var De=fe.cloneContents();vn(vn([],ft(ne.default(De.querySelectorAll("[data-slate-zero-width]")))),ft(ne.default(De.querySelectorAll("[contenteditable=false]")))).forEach((function(Y){Y.parentNode.removeChild(Y)})),U=De.textContent.length,ie=j}else Z&&((ee=Z.querySelector("[data-slate-leaf]"))?(j=ee.closest('[data-slate-node="text"]'),U=(ie=ee).textContent.length,ie.querySelectorAll("[data-slate-zero-width]").forEach((function(Y){U-=Y.textContent.length}))):U=1);ie&&U===ie.textContent.length&&(I.hasAttribute("data-slate-zero-width")||Rn&&(!((s=ie.textContent)===null||s===void 0)&&s.endsWith(`
`)))&&U--}if(!j){if(g)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+o)}var Se=_t.toSlateNode(i,j);return{path:_t.findPath(i,Se),offset:U}},hasRange:function(i,o){var a=o.anchor,s=o.focus;return n.Editor.hasPath(i,a.path)&&n.Editor.hasPath(i,s.path)},getNodeType:function(i){return n.Element.isElement(i)?i.type:""},checkNodeType:function(i,o){return this.getNodeType(i)===o},getNodesStr:function(i){return i.map((function(o){return n.Node.string(o)})).join("")},getSelectedElems:function(i){var o,a,s=[],d=n.Editor.nodes(i,{universal:!0});try{for(var g=Nt(d),y=g.next();!y.done;y=g.next()){var w=ft(y.value,1)[0];n.Element.isElement(w)&&s.push(w)}}catch(D){o={error:D}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}return s},getSelectedNodeByType:function(i,o){var a=this,s=ft(n.Editor.nodes(i,{match:function(g){return a.checkNodeType(g,o)},universal:!0}),1),d=s[0];return d==null?null:d[0]},getSelectedTextNode:function(i){var o=ft(n.Editor.nodes(i,{match:function(s){return n.Text.isText(s)},universal:!0}),1),a=o[0];return a==null?null:a[0]},isNodeSelected:function(i,o){var a=ft(n.Editor.nodes(i,{match:function(d){return d===o},universal:!0}),1),s=a[0];return s!=null&&ft(s,1)[0]===o},isSelectionAtLineEnd:function(i,o){var a=i.selection;return!!a&&(n.Editor.isEnd(i,a.anchor,o)||n.Editor.isEnd(i,a.focus,o))},getTextarea:function(i){var o=Cs.get(i);if(o==null)throw new Error("Cannot find textarea instance by editor");return o},getToolbar:function(i){return Pc.get(i)||null},getHoverbar:function(i){return ql.get(i)||null},normalizeContent:function(i){i.children.forEach((function(o,a){i.normalizeNode([o,[a]])}))},getLeftLengthOfMaxLength:function(i){var o=i.getConfig(),a=o.maxLength,s=o.onMaxLength;if(typeof a!="number"||a<=0)return 1/0;var d=a-i.getText().replace(/\r|\n|(\r\n)/g,"").length;return d<=0&&s&&s(i),d},cleanExposedTexNodeInSelectionBlock:function(i){var o,a,s,d,g=_t.getTextarea(i).$textArea,y=g==null?void 0:g[0].childNodes;if(y)try{for(var w=Nt(Array.from(y)),D=w.next();!D.done;D=w.next()){var I=D.value;if(I.nodeType!==3)break;I.remove()}}catch(fe){o={error:fe}}finally{try{D&&!D.done&&(a=w.return)&&a.call(w)}finally{if(o)throw o.error}}var j=n.Editor.nodes(i,{match:function(fe){return!(!n.Element.isElement(fe)||i.isInline(fe))},universal:!0});try{for(var U=Nt(j),Z=U.next();!Z.done;Z=U.next()){var ee=Z.value;if(ee!=null){var ie=ee[0];pn(_t.toDOMNode(i,ie),(function(fe,De){var Se=X.default(De);Se.attr("data-slate-string")||Se.attr("data-slate-zero-width")||Se.attr("data-w-e-reserve")||De.removeChild(fe)}))}}}catch(fe){s={error:fe}}finally{try{Z&&!Z.done&&(d=U.return)&&d.call(U)}finally{if(s)throw s.error}}},isLastNode:function(i,o){var a=i.children||[];return a[a.length-1]===o},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(i){var o,a,s=n.Editor.nodes(i,{match:function(w){return i.isVoid(w)}}),d=0;try{for(var g=Nt(s),y=g.next();!y.done;y=g.next())y.value,d++}catch(w){o={error:w}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}return d>0},isSelectedEmptyParagraph:function(i){var o=i.selection;if(o==null||n.Range.isExpanded(o))return!1;var a=_t.getSelectedNodeByType(i,"paragraph");if(a===null)return!1;var s=a.children;return s.length===1&&(s[0].text===""||void 0)},isEmptyPath:function(i,o){var a=n.Editor.node(i,o);if(a==null)return!1;var s=ft(a,1)[0].children;return s.length===1&&s[0].text===""}},hl=1,bf={},Pl={},Ef=Dn.filter,el=xu("filter");$r({target:"Array",proto:!0,forced:!el},{filter:function(i){return Ef(this,i,arguments.length>1?arguments[1]:void 0)}});var Kl=`
\v\f\r    \u2028\u2029\uFEFF`,fo=oe("".replace),h="["+Kl+"]",N=RegExp("^"+h+h+"*"),M=RegExp(h+h+"*$"),J=function(i){return function(o){var a=Xr(Gt(o));return 1&i&&(a=fo(a,N,"")),2&i&&(a=fo(a,M,"")),a}},ae={start:J(1),end:J(2),trim:J(3)},Pe=Po.PROPER,ze=ae.trim;$r({target:"String",proto:!0,forced:(function(i){return Ut((function(){return!!Kl[i]()||"​…᠎"[i]()!=="​…᠎"||Pe&&Kl[i].name!==i}))})("trim")},{trim:function(){return ze(this)}});var _e=[],tt={};function yt(i,o,a){var s=a.isInline(i)?"span":"div";return"<"+s+">"+o+"</"+s+">"}function pt(i,o){var a=i.type,s=a===void 0?"":a,d=i.children,g=d===void 0?[]:d,y=n.Editor.isVoid(o,i),w="";y||(w=g.map((function(fe){return zg(fe,o)})).join(""));var D=(function(fe){return tt[fe]||yt})(s),I=D(i,w,o),j="";if(j=typeof I=="string"?I:I.html||"",y||_e.forEach((function(fe){return j=fe(i,j)})),typeof I=="string")return j;var U=I.prefix,Z=U===void 0?"":U,ee=I.suffix,ie=ee===void 0?"":ee;return Z&&(j=Z+j),ie&&(j+=ie),j}var Pn,Tn,En,Yr,sr=Ae.Promise,or=ve("species"),Zn=function(i){var o=Pr(i),a=Hr.f;we&&o&&!o[or]&&a(o,or,{configurable:!0,get:function(){return this}})},On=Ae.TypeError,ti=ve("species"),oi=function(i,o){var a,s=Kt(i).constructor;return s===void 0||(a=Kt(s)[ti])==null?o:(function(d){if(Oa(d))return d;throw On(Gn(d)+" is not a constructor")})(a)},zi=oe([].slice),Ka=/(?:ipad|iphone|ipod).*applewebkit/i.test(Mr),fa=Ti(Ae.process)=="process",gl=Ae.setImmediate,pc=Ae.clearImmediate,Cd=Ae.process,Gf=Ae.Dispatch,ip=Ae.Function,wf=Ae.MessageChannel,Xl=Ae.String,Ad=0,_d={},Kf="onreadystatechange";try{Pn=Ae.location}catch(i){}var oh=function(i){if(un(_d,i)){var o=_d[i];delete _d[i],o()}},ah=function(i){return function(){oh(i)}},uh=function(i){oh(i.data)},Ag=function(i){Ae.postMessage(Xl(i),Pn.protocol+"//"+Pn.host)};gl&&pc||(gl=function(i){var o=zi(arguments,1);return _d[++Ad]=function(){sn($t(i)?i:ip(i),void 0,o)},Tn(Ad),Ad},pc=function(i){delete _d[i]},fa?Tn=function(i){Cd.nextTick(ah(i))}:Gf&&Gf.now?Tn=function(i){Gf.now(ah(i))}:wf&&!Ka?(Yr=(En=new wf).port2,En.port1.onmessage=uh,Tn=Io(Yr.postMessage,Yr)):Ae.addEventListener&&$t(Ae.postMessage)&&!Ae.importScripts&&Pn&&Pn.protocol!=="file:"&&!Ut(Ag)?(Tn=Ag,Ae.addEventListener("message",uh,!1)):Tn=Kf in Ln("script")?function(i){Zu.appendChild(Ln("script")).onreadystatechange=function(){Zu.removeChild(this),oh(i)}}:function(i){setTimeout(ah(i),0)});var Od,Hc,vl,ml,sh,xf,lh,Oi,_g={set:gl,clear:pc},Lv=/ipad|iphone|ipod/i.test(Mr)&&Ae.Pebble!==void 0,Mv=/web0s(?!.*chrome)/i.test(Mr),op=go.f,Df=_g.set,Uc=Ae.MutationObserver||Ae.WebKitMutationObserver,ch=Ae.document,Og=Ae.process,ss=Ae.Promise,Tg=op(Ae,"queueMicrotask"),Bg=Tg&&Tg.value;Bg||(Od=function(){var i,o;for(fa&&(i=Og.domain)&&i.exit();Hc;){o=Hc.fn,Hc=Hc.next;try{o()}catch(a){throw Hc?ml():vl=void 0,a}}vl=void 0,i&&i.enter()},Ka||fa||Mv||!Uc||!ch?!Lv&&ss&&ss.resolve?((lh=ss.resolve(void 0)).constructor=ss,Oi=Io(lh.then,lh),ml=function(){Oi(Od)}):fa?ml=function(){Og.nextTick(Od)}:(Df=Io(Df,Ae),ml=function(){Df(Od)}):(sh=!0,xf=ch.createTextNode(""),new Uc(Od).observe(xf,{characterData:!0}),ml=function(){xf.data=sh=!sh}));var fh,Sf,ap,Fg,dh=Bg||function(i){var o={fn:i,next:void 0};vl&&(vl.next=o),Hc||(Hc=o,ml()),vl=o},Pg=function(i){var o,a;this.promise=new i((function(s,d){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=s,a=d})),this.resolve=ln(o),this.reject=ln(a)},up={f:function(i){return new Pg(i)}},Td=function(i){try{return{error:!1,value:i()}}catch(o){return{error:!0,value:o}}},$v=typeof window=="object",Xf=_g.set,zv=ve("species"),Yl="Promise",kg=jr.getterFor(Yl),Hv=jr.set,Uv=jr.getterFor(Yl),Vc=sr&&sr.prototype,kl=sr,Bd=Vc,Ng=Ae.TypeError,hc=Ae.document,ph=Ae.process,Cf=up.f,Af=Cf,Zl=!!(hc&&hc.createEvent&&Ae.dispatchEvent),Ig=$t(Ae.PromiseRejectionEvent),Rg="unhandledrejection",gc=!1,Wc=tu(Yl,(function(){var i=zo(kl),o=i!==String(kl);if(!o&&br===66)return!0;if(br>=51&&/native code/.test(i))return!1;var a=new kl((function(d){d(1)})),s=function(d){d((function(){}),(function(){}))};return(a.constructor={})[zv]=s,!(gc=a.then((function(){}))instanceof s)||!o&&$v&&!Ig})),Vv=Wc||!ot((function(i){kl.all(i).catch((function(){}))})),jg=function(i){var o;return!(!gt(i)||!$t(o=i.then))&&o},Fd=function(i,o){if(!i.notified){i.notified=!0;var a=i.reactions;dh((function(){for(var s=i.value,d=i.state==1,g=0;a.length>g;){var y,w,D,I=a[g++],j=d?I.ok:I.fail,U=I.resolve,Z=I.reject,ee=I.domain;try{j?(d||(i.rejection===2&&Mg(i),i.rejection=1),j===!0?y=s:(ee&&ee.enter(),y=j(s),ee&&(ee.exit(),D=!0)),y===I.promise?Z(Ng("Promise-chain cycle")):(w=jg(y))?xt(w,y,U,Z):U(y)):Z(s)}catch(ie){ee&&!D&&ee.exit(),Z(ie)}}i.reactions=[],i.notified=!1,o&&!i.rejection&&sp(i)}))}},Lg=function(i,o,a){var s,d;Zl?((s=hc.createEvent("Event")).promise=o,s.reason=a,s.initEvent(i,!1,!0),Ae.dispatchEvent(s)):s={promise:o,reason:a},!Ig&&(d=Ae["on"+i])?d(s):i===Rg&&(function(g,y){var w=Ae.console;w&&w.error&&(arguments.length==1?w.error(g):w.error(g,y))})("Unhandled promise rejection",a)},sp=function(i){xt(Xf,Ae,(function(){var o,a=i.facade,s=i.value;if(lp(i)&&(o=Td((function(){fa?ph.emit("unhandledRejection",s,a):Lg(Rg,a,s)})),i.rejection=fa||lp(i)?2:1,o.error))throw o.value}))},lp=function(i){return i.rejection!==1&&!i.parent},Mg=function(i){xt(Xf,Ae,(function(){var o=i.facade;fa?ph.emit("rejectionHandled",o):Lg("rejectionhandled",o,i.value)}))},qc=function(i,o,a){return function(s){i(o,s,a)}},Yf=function(i,o,a){i.done||(i.done=!0,a&&(i=a),i.value=o,i.state=2,Fd(i,!0))},hh=function(i,o,a){if(!i.done){i.done=!0,a&&(i=a);try{if(i.facade===o)throw Ng("Promise can't be resolved itself");var s=jg(o);s?dh((function(){var d={done:!1};try{xt(s,o,qc(hh,d,i),qc(Yf,d,i))}catch(g){Yf(d,g,i)}})):(i.value=o,i.state=1,Fd(i,!1))}catch(d){Yf({done:!1},d,i)}}};if(Wc&&(Bd=(kl=function(i){Ys(this,Bd),ln(i),xt(fh,this);var o=kg(this);try{i(qc(hh,o),qc(Yf,o))}catch(a){Yf(o,a)}}).prototype,(fh=function(i){Hv(this,{type:Yl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=mn(Bd,{then:function(i,o){var a=Uv(this),s=a.reactions,d=Cf(oi(this,kl));return d.ok=!$t(i)||i,d.fail=$t(o)&&o,d.domain=fa?ph.domain:void 0,a.parent=!0,s[s.length]=d,a.state!=0&&Fd(a,!1),d.promise},catch:function(i){return this.then(void 0,i)}}),Sf=function(){var i=new fh,o=kg(i);this.promise=i,this.resolve=qc(hh,o),this.reject=qc(Yf,o)},up.f=Cf=function(i){return i===kl||i===ap?new Sf(i):Af(i)},$t(sr)&&Vc!==Object.prototype)){Fg=Vc.then,gc||(di(Vc,"then",(function(i,o){var a=this;return new kl((function(s,d){xt(Fg,a,s,d)})).then(i,o)}),{unsafe:!0}),di(Vc,"catch",Bd.catch,{unsafe:!0}));try{delete Vc.constructor}catch(i){}Oo&&Oo(Vc,Bd)}$r({global:!0,wrap:!0,forced:Wc},{Promise:kl}),Vi(kl,Yl,!1),Zn(Yl),ap=Pr(Yl),$r({target:Yl,stat:!0,forced:Wc},{reject:function(i){var o=Cf(this);return xt(o.reject,void 0,i),o.promise}}),$r({target:Yl,stat:!0,forced:Wc},{resolve:function(i){return(function(o,a){if(Kt(o),gt(a)&&a.constructor===o)return a;var s=up.f(o);return(0,s.resolve)(a),s.promise})(this,i)}}),$r({target:Yl,stat:!0,forced:Vv},{all:function(i){var o=this,a=Cf(o),s=a.resolve,d=a.reject,g=Td((function(){var y=ln(o.resolve),w=[],D=0,I=1;zl(i,(function(j){var U=D++,Z=!1;I++,xt(y,o,j).then((function(ee){Z||(Z=!0,w[U]=ee,--I||s(w))}),d)})),--I||s(w)}));return g.error&&d(g.value),a.promise},race:function(i){var o=this,a=Cf(o),s=a.reject,d=Td((function(){var g=ln(o.resolve);zl(i,(function(y){xt(g,o,y).then(a.resolve,s)}))}));return d.error&&s(d.value),a.promise}});var Zf=Du.UNSUPPORTED_Y,Pd=4294967295,Wv=Math.min,gh=[].push,$g=oe(/./.exec),Jf=oe(gh),Qf=oe("".slice),vh=!Ut((function(){var i=/(?:)/,o=i.exec;i.exec=function(){return o.apply(this,arguments)};var a="ab".split(i);return a.length!==2||a[0]!=="a"||a[1]!=="b"}));function yl(i){Promise.resolve().then(i)}function zg(i,o){return n.Element.isElement(i)?pt(i,o):(function(a,s){var d=a.text;if(d==null)throw new Error("Current node is not slate Text "+JSON.stringify(a));var g=d;g=(function(D){return D.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")})(g);var y=_t.getParentsNodes(s,a).some((function(D){return _t.getNodeType(D)==="pre"}));if(y||(g=g.replace(/\r\n|\r|\n/g,"<br>")),y&&(g=g.replace(/&nbsp;/g," ")),g===""){var w=_t.getParentNode(null,a);if(!w||w.children.length!==0)return g;g="<br>"}return _e.forEach((function(D){return g=D(a,g)})),g})(i,o)}function ed(i){return"w-e-element-"+i}pr("split",(function(i,o,a){var s;return s="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,g){var y=Xr(Gt(this)),w=g===void 0?Pd:g>>>0;if(w===0)return[];if(d===void 0)return[y];if(!ju(d))return xt(o,y,d,w);for(var D,I,j,U=[],Z=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),ee=0,ie=new RegExp(d.source,Z+"g");(D=xt(et,ie,y))&&!((I=ie.lastIndex)>ee&&(Jf(U,Qf(y,ee,D.index)),D.length>1&&D.index<y.length&&sn(gh,U,_i(D,1)),j=D[0].length,ee=I,U.length>=w));)ie.lastIndex===D.index&&ie.lastIndex++;return ee===y.length?!j&&$g(ie,"")||Jf(U,""):Jf(U,Qf(y,ee)),U.length>w?_i(U,0,w):U}:"0".split(void 0,0).length?function(d,g){return d===void 0&&g===0?[]:xt(o,this,d,g)}:o,[function(d,g){var y=Gt(this),w=d==null?void 0:lr(d,i);return w?xt(w,d,y,g):xt(s,Xr(y),d,g)},function(d,g){var y=Kt(this),w=Xr(d),D=a(s,y,w,g,s!==o);if(D.done)return D.value;var I=oi(y,RegExp),j=y.unicode,U=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(Zf?"g":"y"),Z=new I(Zf?"^(?:"+y.source+")":y,U),ee=g===void 0?Pd:g>>>0;if(ee===0)return[];if(w.length===0)return os(Z,w)===null?[w]:[];for(var ie=0,fe=0,De=[];fe<w.length;){Z.lastIndex=Zf?0:fe;var Se,Y=os(Z,Zf?Qf(w,fe):w);if(Y===null||(Se=Wv(Bi(Z.lastIndex+(Zf?fe:0)),w.length))===ie)fe=vi(w,fe,j);else{if(Jf(De,Qf(w,ie,fe)),De.length===ee)return De;for(var Re=1;Re<=Y.length-1;Re++)if(Jf(De,Y[Re]),De.length===ee)return De;fe=ie=Se}}return Jf(De,Qf(w,ie)),De}]}),!vh,Zf);var Hg=function(i,o){var a=(o.top+o.bottom)/2;return i.top<=a&&i.bottom>=a},Ug=function(i,o,a){var s=_t.toDOMRange(i,o).getBoundingClientRect(),d=_t.toDOMRange(i,a).getBoundingClientRect();return Hg(s,d)&&Hg(d,s)},cp=["span","b","strong","i","em","s","strike","u","font","sub","sup"],fp=[],dp=[],td={},Vg=Hr.f,Wg=ua.f,qg=jr.enforce,qv=ve("match"),vc=Ae.RegExp,nd=vc.prototype,pp=Ae.SyntaxError,Gv=oe(za),hp=oe(nd.exec),gp=oe("".charAt),Gg=oe("".replace),vp=oe("".indexOf),Kg=oe("".slice),Kv=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Nl=/a/g,mh=/a/g,Xg=new vc(Nl)!==Nl,yh=Du.MISSED_STICKY,mp=Du.UNSUPPORTED_Y,bh=we&&(!Xg||yh||su||xs||Ut((function(){return mh[qv]=!1,vc(Nl)!=Nl||vc(mh)==mh||vc(Nl,"i")!="/a/i"})));if(tu("RegExp",bh)){for(var Gc=function(i,o){var a,s,d,g,y,w,D=Yt(nd,this),I=ju(i),j=o===void 0,U=[],Z=i;if(!D&&I&&j&&i.constructor===Gc)return i;if((I||Yt(nd,i))&&(i=i.source,j&&(o="flags"in Z?Z.flags:Gv(Z))),i=i===void 0?"":Xr(i),o=o===void 0?"":Xr(o),Z=i,su&&"dotAll"in Nl&&(s=!!o&&vp(o,"s")>-1)&&(o=Gg(o,/s/g,"")),a=o,yh&&"sticky"in Nl&&(d=!!o&&vp(o,"y")>-1)&&mp&&(o=Gg(o,/y/g,"")),xs&&(g=(function(ee){for(var ie,fe=ee.length,De=0,Se="",Y=[],Re={},lt=!1,St=!1,Un=0,yn="";De<=fe;De++){if((ie=gp(ee,De))==="\\")ie+=gp(ee,++De);else if(ie==="]")lt=!1;else if(!lt)switch(!0){case ie==="[":lt=!0;break;case ie==="(":hp(Kv,Kg(ee,De+1))&&(De+=2,St=!0),Se+=ie,Un++;continue;case(ie===">"&&St):if(yn===""||un(Re,yn))throw new pp("Invalid capture group name");Re[yn]=!0,Y[Y.length]=[yn,Un],St=!1,yn="";continue}St?yn+=ie:Se+=ie}return[Se,Y]})(i),i=g[0],U=g[1]),y=Hl(vc(i,o),D?this:nd,Gc),(s||d||U.length)&&(w=qg(y),s&&(w.dotAll=!0,w.raw=Gc((function(ee){for(var ie,fe=ee.length,De=0,Se="",Y=!1;De<=fe;De++)(ie=gp(ee,De))!=="\\"?Y||ie!=="."?(ie==="["?Y=!0:ie==="]"&&(Y=!1),Se+=ie):Se+="[\\s\\S]":Se+=ie+gp(ee,++De);return Se})(i),a)),d&&(w.sticky=!0),U.length&&(w.groups=U)),i!==Z)try{ri(y,"source",Z===""?"(?:)":Z)}catch(ee){}return y},Xv=function(i){i in Gc||Vg(Gc,i,{configurable:!0,get:function(){return vc[i]},set:function(o){vc[i]=o}})},Eh=Wg(vc),kd=0;Eh.length>kd;)Xv(Eh[kd++]);nd.constructor=Gc,Gc.prototype=nd,di(Ae,"RegExp",Gc)}Zn("RegExp");var Yg=new RegExp(" ","g");function yp(i){return i.replace(Yg," ")}function wh(i,o){var a=i.length;if(a){var s=i[a-1];if(n.Text.isText(s)){var d=Object.keys(s);if(d.length===1&&d[0]==="text")return s.text=s.text+o,!0}}return!1}function Zg(i,o,a){return{type:"paragraph",children:[{text:X.default(i).text().replace(/\s+/gm," ")}]}}function rd(i,o){var a=(function(g,y){var w=[];if(g.attr("data-w-e-is-void")!=null)return w;var D=g[0].childNodes;return D.length===1&&D[0].nodeName==="BR"?(w.push({text:""}),w):(D.forEach((function(I){if(I.nodeType!==pe.ELEMENT_NODE){if(I.nodeType===pe.TEXT_NODE){var j=I.textContent||"";if(j.trim()===""&&j.indexOf(`
`)>=0)return;j&&(j=yp(j),wh(w,j)||w.push({text:j}))}}else{if(I.nodeName==="BR")return void(wh(w,`
`)||w.push({text:`
`}));var U=_f(X.default(I),y);Array.isArray(U)?U.forEach((function(Z){return w.push(Z)})):w.push(U)}})),w)})(i,o),s=(function(g){for(var y in td)if(g[0].matches(y))return td[y];return Zg})(i),d=s(i[0],a,o);return Array.isArray(d)||(d=[d]),d.forEach((function(g){n.Editor.isVoid(o,g)||(a.length===0&&(g.children=[{text:i.text().replace(/\s+/gm," ")}]),dp.forEach((function(y){g=y(i[0],g,o)})))})),d}function id(i,o){i.parents("pre").length===0&&(i[0].innerHTML=i[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var a=i[0].textContent||"";a=(function(d){return d.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')})(a);var s={text:a=yp(a)};return dp.forEach((function(d){s=d(i[0],s,o)})),s}function _f(i,o){fp.forEach((function(s){var d=s.selector,g=s.preParseHtml;i[0].matches(d)&&(i=X.default(g(i[0])))}));var a=ei(i);return a==="span"?i.attr("data-w-e-type")?rd(i,o):id(i,o):a==="code"?ei(i.parent())==="pre"?rd(i,o):id(i,o):cp.includes(a)?id(i,o):rd(i,o)}function Nd(i,o,a){var s=X.default(a);return!!s.attr(o)||(s.attr(o,"true"),i.on("destroyed",(function(){s.removeAttr(o)})),!1)}function Kc(i,o){o===void 0&&(o="");var a=[];o===""&&(o="<p><br></p>"),o.indexOf("<")!==0&&(o=o.split(/\n/).map((function(d){return"<p>"+d+"</p>"})).join(""));var s=X.default("<div>"+o+"</div>");return Array.from(s.children()).forEach((function(d){var g=_f(X.default(d),i);Array.isArray(g)?g.forEach((function(y){return a.push(y)})):a.push(g)})),a}var Yv=Hr.f,xh=ll.fastKey,Jg=jr.set,Dh=jr.getterFor,Qg={getConstructor:function(i,o,a,s){var d=i((function(I,j){Ys(I,g),Jg(I,{type:o,index:ka(null),first:void 0,last:void 0,size:0}),we||(I.size=0),j!=null&&zl(j,I[s],{that:I,AS_ENTRIES:a})})),g=d.prototype,y=Dh(o),w=function(I,j,U){var Z,ee,ie=y(I),fe=D(I,j);return fe?fe.value=U:(ie.last=fe={index:ee=xh(j,!0),key:j,value:U,previous:Z=ie.last,next:void 0,removed:!1},ie.first||(ie.first=fe),Z&&(Z.next=fe),we?ie.size++:I.size++,ee!=="F"&&(ie.index[ee]=fe)),I},D=function(I,j){var U,Z=y(I),ee=xh(j);if(ee!=="F")return Z.index[ee];for(U=Z.first;U;U=U.next)if(U.key==j)return U};return mn(g,{clear:function(){for(var I=y(this),j=I.index,U=I.first;U;)U.removed=!0,U.previous&&(U.previous=U.previous.next=void 0),delete j[U.index],U=U.next;I.first=I.last=void 0,we?I.size=0:this.size=0},delete:function(I){var j=this,U=y(j),Z=D(j,I);if(Z){var ee=Z.next,ie=Z.previous;delete U.index[Z.index],Z.removed=!0,ie&&(ie.next=ee),ee&&(ee.previous=ie),U.first==Z&&(U.first=ee),U.last==Z&&(U.last=ie),we?U.size--:j.size--}return!!Z},forEach:function(I){for(var j,U=y(this),Z=Io(I,arguments.length>1?arguments[1]:void 0);j=j?j.next:U.first;)for(Z(j.value,j.key,this);j&&j.removed;)j=j.previous},has:function(I){return!!D(this,I)}}),mn(g,a?{get:function(I){var j=D(this,I);return j&&j.value},set:function(I,j){return w(this,I===0?0:I,j)}}:{add:function(I){return w(this,I=I===0?0:I,I)}}),we&&Yv(g,"size",{get:function(){return y(this).size}}),d},setStrong:function(i,o,a){var s=o+" Iterator",d=Dh(o),g=Dh(s);xa(i,o,(function(y,w){Jg(this,{type:s,target:y,state:d(y),kind:w,last:void 0})}),(function(){for(var y=g(this),w=y.kind,D=y.last;D&&D.removed;)D=D.previous;return y.target&&(y.last=D=D?D.next:y.state.first)?w=="keys"?{value:D.key,done:!1}:w=="values"?{value:D.value,done:!1}:{value:[D.key,D.value],done:!1}:(y.target=void 0,{value:void 0,done:!0})}),a?"entries":"values",!a,!0),Zn(o)}};Tc("Set",(function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}}),Qg);var Sh=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function e0(i,o){i.isInline(o)?(i.insertNode(o),o.type==="link"&&i.insertFragment([{text:""}])):n.Transforms.insertNodes(i,o,{mode:"highest"})}var t0=function(i){var o=i,a=o.onChange,s=o.insertText,d=o.apply,g=o.deleteBackward;return o.insertText=function(y){o.getConfig().readOnly||s(y)},o.apply=function(y){var w,D,I,j,U,Z,ee,ie,fe=[];switch(y.type){case"insert_text":case"remove_text":case"set_node":try{for(var De=Nt(n.Editor.levels(o,{at:y.path})),Se=De.next();!Se.done;Se=De.next()){var Y=ft(Se.value,2),Re=Y[0],lt=Y[1],St=_t.findKey(o,Re);fe.push([lt,St])}}catch(ro){w={error:ro}}finally{try{Se&&!Se.done&&(D=De.return)&&D.call(De)}finally{if(w)throw w.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var Un=Nt(n.Editor.levels(o,{at:n.Path.parent(y.path)})),yn=Un.next();!yn.done;yn=Un.next()){var Fr=ft(yn.value,2);Re=Fr[0],lt=Fr[1],St=_t.findKey(o,Re),fe.push([lt,St])}}catch(ro){I={error:ro}}finally{try{yn&&!yn.done&&(j=Un.return)&&j.call(Un)}finally{if(I)throw I.error}}break;case"move_node":try{for(var na=Nt(n.Editor.levels(o,{at:n.Path.common(n.Path.parent(y.path),n.Path.parent(y.newPath))})),Do=na.next();!Do.done;Do=na.next()){var vo=ft(Do.value,2);Re=vo[0],lt=vo[1],St=_t.findKey(o,Re),fe.push([lt,St])}}catch(ro){U={error:ro}}finally{try{Do&&!Do.done&&(Z=na.return)&&Z.call(na)}finally{if(U)throw U.error}}}d(y);try{for(var to=Nt(fe),ni=to.next();!ni.done;ni=to.next()){var ra=ft(ni.value,2);lt=ra[0],St=ra[1],Re=ft(n.Editor.node(o,lt),1)[0],Fl.set(Re,St)}}catch(ro){ee={error:ro}}finally{try{ni&&!ni.done&&(ie=to.return)&&ie.call(to)}finally{if(ee)throw ee.error}}},o.deleteBackward=function(y){if(y!=="line")return g(y);if(i.selection&&n.Range.isCollapsed(i.selection)){var w=n.Editor.above(i,{match:function(U){return n.Editor.isBlock(i,U)},at:i.selection});if(w){var D=ft(w,2)[1],I=n.Editor.range(i,D,i.selection.anchor),j=(function(U,Z){var ee=n.Editor.range(U,n.Range.end(Z)),ie=Array.from(n.Editor.positions(U,{at:Z})),fe=0,De=ie.length,Se=Math.floor(De/2);if(Ug(U,n.Editor.range(U,ie[fe]),ee))return n.Editor.range(U,ie[fe],ee);if(ie.length<2)return n.Editor.range(U,ie[ie.length-1],ee);for(;Se!==ie.length&&Se!==fe;)Ug(U,n.Editor.range(U,ie[Se]),ee)?De=Se:fe=Se,Se=Math.floor((fe+De)/2);return n.Editor.range(U,ie[De],ee)})(o,I);n.Range.isCollapsed(j)||n.Transforms.delete(i,{at:j})}}},o.onChange=function(){var y=o.selection;y!=null&&Mc.set(o,y),o.emit("change"),a()},o.handleTab=function(){o.insertText(" ")},o.getHtml=function(){var y=o.children;return(y===void 0?[]:y).map((function(w){return zg(w,o)})).join("")},o.getText=function(){var y=o.children;return(y===void 0?[]:y).map((function(w){return n.Node.string(w)})).join(`
`)},o.getSelectionText=function(){var y=o.selection;return y==null?"":n.Editor.string(i,y)},o.getElemsByType=function(y,w){var D,I;w===void 0&&(w=!1);var j=[],U=n.Editor.nodes(o,{at:[],universal:!0});try{for(var Z=Nt(U),ee=Z.next();!ee.done;ee=Z.next()){var ie=ft(ee.value,1)[0];if(n.Element.isElement(ie)&&(w?ie.type.indexOf(y)>=0:ie.type===y)){var fe=ed(_t.findKey(o,ie).id);j.push(it(it({},ie),{id:fe}))}}}catch(De){D={error:De}}finally{try{ee&&!ee.done&&(I=Z.return)&&I.call(Z)}finally{if(D)throw D.error}}return j},o.getElemsByTypePrefix=function(y){return o.getElemsByType(y,!0)},o.isEmpty=function(){var y=o.children,w=y===void 0?[]:y;if(w.length>1)return!1;var D=w[0];if(D==null)return!0;if(n.Element.isElement(D)&&D.type==="paragraph"){var I=D.children,j=I===void 0?[]:I;if(j.length>1)return!1;var U=j[0];if(U==null||n.Text.isText(U)&&U.text==="")return!0}return!1},o.clear=function(){n.Transforms.delete(o,{at:{anchor:n.Editor.start(o,[]),focus:n.Editor.end(o,[])}}),o.children.length===0&&n.Transforms.insertNodes(o,[{type:"paragraph",children:[{text:""}]}])},o.getParentNode=function(y){return _t.getParentNode(o,y)},o.dangerouslyInsertHtml=function(y,w){if(y===void 0&&(y=""),w===void 0&&(w=!1),y){var D=document.createElement("div");D.innerHTML=y;var I=Array.from(D.childNodes);if(I=I.filter((function(ee){var ie=ee.nodeType,fe=ee.nodeName;return ie===pe.TEXT_NODE||ie===pe.ELEMENT_NODE&&!Sh.has(fe.toLowerCase())})),I.length!==0){var j=o.selection;if(j!=null){var U=null;_t.isSelectedEmptyParagraph(o)&&!w&&(U=[j.focus.path[0]]),D.setAttribute("hidden","true"),document.body.appendChild(D);var Z=0;I.forEach((function(ee){var ie=ee.nodeType,fe=ee.nodeName,De=ee.textContent,Se=De===void 0?"":De;if(ie!==pe.TEXT_NODE)if(fe!=="BR"){var Y=ee,Re=!1;if(cp.includes(fe.toLowerCase()))Re=!0;else for(var lt in td)if(Y.matches(lt)){Re=!0;break}if(Re){var St=_f(X.default(Y),o);return Array.isArray(St)?(St.forEach((function(yn){return e0(o,yn)})),Z++):(e0(o,St),Z++),void(_t.isSelectedVoidNode(o)&&o.move(1))}var Un=window.getComputedStyle(Y).display;_t.isSelectedEmptyParagraph(o)||Un.indexOf("inline")<0&&o.insertBreak(),o.dangerouslyInsertHtml(Y.innerHTML,!0)}else o.insertText(`
`);else{if(!Se||!Se.trim())return;o.insertNode({text:Se})}})),Z&&U&&_t.isEmptyPath(o,U)&&n.Transforms.removeNodes(o,{at:U}),D.remove()}}}},o.setHtml=function(y){y===void 0&&(y="");var w=o.isDisabled(),D=o.isFocused(),I=JSON.stringify(o.selection);o.enable(),o.focus(),o.clear();var j=Kc(o,y);if(n.Transforms.insertFragment(o,j),D||(o.deselect(),o.blur()),w&&(o.deselect(),o.disable()),o.isFocused())try{o.select(JSON.parse(I))}catch(U){o.select(n.Editor.start(o,[]))}},o},Ch=function(i){var o=i,a=o.insertText;return o.insertFragment,o.setFragmentData=function(s){var d=o.selection;if(d){var g=ft(n.Range.edges(d),2),y=g[0],w=g[1],D=n.Editor.void(o,{at:y.path}),I=n.Editor.void(o,{at:w.path});if(!n.Range.isCollapsed(d)||D){var j=_t.toDOMRange(o,d),U=j.cloneContents(),Z=U.childNodes[0];if(U.childNodes.forEach((function(St){St.textContent&&St.textContent.trim()!==""&&(Z=St)})),I){var ee=ft(I,1)[0],ie=j.cloneRange(),fe=_t.toDOMNode(o,ee);ie.setEndAfter(fe),U=ie.cloneContents()}if(D&&(Z=U.querySelector("[data-slate-spacer]")),Array.from(U.querySelectorAll("[data-slate-zero-width]")).forEach((function(St){var Un=St.getAttribute("data-slate-zero-width")==="n";St.textContent=Un?`
`:""})),ut(Z)){var De=Z.ownerDocument.createElement("span");De.style.whiteSpace="pre",De.appendChild(Z),U.appendChild(De),Z=De}var Se=o.getFragment(),Y=JSON.stringify(Se),Re=window.btoa(encodeURIComponent(Y));Z.setAttribute("data-slate-fragment",Re),s.setData("application/x-slate-fragment",Re);var lt=U.ownerDocument.createElement("div");return lt.appendChild(U),lt.setAttribute("hidden","true"),U.ownerDocument.body.appendChild(lt),s.setData("text/html",lt.innerHTML),s.setData("text/plain",rr(lt)),U.ownerDocument.body.removeChild(lt),s}}},o.insertData=function(s){var d,g,y=s.getData("application/x-slate-fragment");if(y){var w=decodeURIComponent(window.atob(y)),D=JSON.parse(w);o.insertFragment(D)}else{var I=s.getData("text/plain"),j=s.getData("text/html");if(j)o.dangerouslyInsertHtml(j);else if(I){var U=I.split(/\r\n|\r|\n/),Z=!1;try{for(var ee=Nt(U),ie=ee.next();!ie.done;ie=ee.next()){var fe=ie.value;Z&&n.Transforms.splitNodes(o,{always:!0}),a(fe),Z=!0}}catch(De){d={error:De}}finally{try{ie&&!ie.done&&(g=ee.return)&&g.call(ee)}finally{if(d)throw d.error}}}}},o},Id=function(i){return i!=null},od={object:!0,function:!0,undefined:!0},Ah=function(i){if(!(function(o){return!!Id(o)&&hasOwnProperty.call(od,typeof o)})(i))return!1;try{return!!i.constructor&&i.constructor.prototype===i}catch(o){return!1}},Zv=/^\s*class[\s{/}]/,ja=Function.prototype.toString,n0=function(i){return!!(function(o){if(typeof o!="function"||!hasOwnProperty.call(o,"length"))return!1;try{if(typeof o.length!="number"||typeof o.call!="function"||typeof o.apply!="function")return!1}catch(a){return!1}return!Ah(o)})(i)&&!Zv.test(ja.call(i))},_h=function(i){return i!=null},r0=Object.keys,bp=(function(){try{return Object.keys("primitive"),!0}catch(i){return!1}})()?Object.keys:function(i){return r0(_h(i)?Object(i):i)},i0=function(i){if(!_h(i))throw new TypeError("Cannot use null or undefined");return i},Jv=Math.max,Oh=(function(){var i,o=Object.assign;return typeof o=="function"&&(o(i={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),i.foo+i.bar+i.trzy==="razdwatrzy")})()?Object.assign:function(i,o){var a,s,d,g=Jv(arguments.length,2);for(i=Object(i0(i)),d=function(y){try{i[y]=o[y]}catch(w){a||(a=w)}},s=1;s<g;++s)bp(o=arguments[s]).forEach(d);if(a!==void 0)throw a;return i},Th=Array.prototype.forEach,Qv=Object.create,Of=function(i,o){var a;for(a in i)o[a]=i[a]},o0=function(i){var o=Qv(null);return Th.call(arguments,(function(a){_h(a)&&Of(Object(a),o)})),o},Ep="razdwatrzy",em=String.prototype.indexOf,Jl=typeof Ep.contains=="function"&&Ep.contains("dwa")===!0&&Ep.contains("foo")===!1?String.prototype.contains:function(i){return em.call(this,i,arguments[1])>-1},mc=an((function(i){var o=i.exports=function(a,s){var d,g,y,w,D;return arguments.length<2||typeof a!="string"?(w=s,s=a,a=null):w=arguments[2],Id(a)?(d=Jl.call(a,"c"),g=Jl.call(a,"e"),y=Jl.call(a,"w")):(d=y=!0,g=!1),D={value:s,configurable:d,enumerable:g,writable:y},w?Oh(o0(w),D):D};o.gs=function(a,s,d){var g,y,w,D;return typeof a!="string"?(w=d,d=s,s=a,a=null):w=arguments[3],Id(s)?n0(s)?Id(d)?n0(d)||(w=d,d=void 0):d=void 0:(w=s,s=d=void 0):s=void 0,Id(a)?(g=Jl.call(a,"c"),y=Jl.call(a,"e")):(g=!0,y=!1),D={get:s,set:d,configurable:g,enumerable:y},w?Oh(o0(w),D):D}})),wp=function(i){if(typeof i!="function")throw new TypeError(i+" is not a function");return i},Xc=an((function(i,o){var a,s,d,g,y,w,D,I=Function.prototype.apply,j=Function.prototype.call,U=Object.create,Z=Object.defineProperty,ee=Object.defineProperties,ie=Object.prototype.hasOwnProperty,fe={configurable:!0,enumerable:!1,writable:!0};a=function(De,Se){var Y;return wp(Se),ie.call(this,"__ee__")?Y=this.__ee__:(Y=fe.value=U(null),Z(this,"__ee__",fe),fe.value=null),Y[De]?typeof Y[De]=="object"?Y[De].push(Se):Y[De]=[Y[De],Se]:Y[De]=Se,this},s=function(De,Se){var Y,Re;return wp(Se),Re=this,a.call(this,De,Y=function(){d.call(Re,De,Y),I.call(Se,this,arguments)}),Y.__eeOnceListener__=Se,this},d=function(De,Se){var Y,Re,lt,St;if(wp(Se),!ie.call(this,"__ee__"))return this;if(!(Y=this.__ee__)[De])return this;if(typeof(Re=Y[De])=="object")for(St=0;lt=Re[St];++St)lt!==Se&&lt.__eeOnceListener__!==Se||(Re.length===2?Y[De]=Re[St?0:1]:Re.splice(St,1));else Re!==Se&&Re.__eeOnceListener__!==Se||delete Y[De];return this},g=function(De){var Se,Y,Re,lt,St;if(ie.call(this,"__ee__")&&(lt=this.__ee__[De]))if(typeof lt=="object"){for(Y=arguments.length,St=new Array(Y-1),Se=1;Se<Y;++Se)St[Se-1]=arguments[Se];for(lt=lt.slice(),Se=0;Re=lt[Se];++Se)I.call(Re,this,St)}else switch(arguments.length){case 1:j.call(lt,this);break;case 2:j.call(lt,this,arguments[1]);break;case 3:j.call(lt,this,arguments[1],arguments[2]);break;default:for(Y=arguments.length,St=new Array(Y-1),Se=1;Se<Y;++Se)St[Se-1]=arguments[Se];I.call(lt,this,St)}},y={on:a,once:s,off:d,emit:g},w={on:mc(a),once:mc(s),off:mc(d),emit:mc(g)},D=ee({},w),i.exports=o=function(De){return De==null?U(D):ee(Object(De),w)},o.methods=y}));function Tf(i){var o=$c.get(i);return o==null&&(o=Xc(),$c.set(i,o)),o}var Vu=new WeakMap;function Rd(i,o){var a=Vu.get(i);a==null&&(a=new Set,Vu.set(i,a)),a.add(o)}function a0(i){return Vu.get(i)||new Set}function tm(i){Vu.set(i,new Set)}function xp(i){var o=_t.getTextarea(i).$textAreaContainer,a=o.width(),s=o.height(),d=o.offset();return{top:d.top,left:d.left,width:a,height:s}}function tl(i){var o={top:"0",left:"0"},a=i.selection;if(a==null)return o;var s=xp(i);if(s==null)return o;var d=s.top,g=s.left,y=s.width,w=s.height,D=_t.toDOMRange(i,a).getClientRects()[0];if(D==null)return o;D.width;var I=D.height,j={},U=D.top-d,Z=D.left-g;if(Z>y/2){var ee=y-Z;j.right=ee+5+"px"}else j.left=Z+5+"px";if(U>w/2){var ie=w-U;j.bottom=ie+5+"px"}else{var fe=U+I;fe<0&&(fe=0),j.top=fe+5+"px"}return j}function Il(i,o,a){a===void 0&&(a="modal");var s={top:"0",left:"0"};if(i.selection==null)return s;var d=n.Element.isElement(o)&&i.isVoid(o),g=n.Element.isElement(o)&&i.isInline(o),y=dc.get(o);if(y==null)return s;var w=y.getBoundingClientRect(),D=w.top,I=w.left,j=w.height,U=w.width;if(d){var Z=(function(yn){var Fr=[];Fr.push(yn);for(var na=0;Fr.length>0;){var Do=Fr.pop();if(Do==null||++na>1e4)break;var vo=Do.nodeName;if(Do.nodeType===1){var to=vo.toLowerCase();if(G.includes(to)||to==="iframe"||to==="video")return Do;var ni=Do.children||[],ra=ni.length;if(ra)for(var ro=ra-1;ro>=0;ro--)Fr.push(ni[ro])}}return null})(y);if(Z!=null){var ee=Z.getBoundingClientRect();D=ee.top,j=ee.height}}var ie=xp(i);if(ie==null)return s;var fe=ie.top,De=ie.left,Se=ie.width,Y=ie.height,Re={},lt=D-fe,St=I-De;if(a==="bar")return Re.left=St+"px",lt>40?Re.bottom=Y-lt+5+"px":Re.top=lt+j+5+"px",Re;if(a==="modal"){var Un;return d?g?St>(Se-U)/2?Re.right=Se-St+5+"px":Re.left=St+U+5+"px":Re.left="20px":Re.left=St+"px",d?((Un=lt)<0&&(Un=0),Re.top=Un+"px"):lt>(Y-j)/2?Re.bottom=Y-lt+5+"px":((Un=lt+j)<0&&(Un=0),Re.top=Un+5+"px"),Re}throw new Error("type '"+a+"' is invalid")}function Ql(i,o){yl((function(){var a=xp(i);if(a!=null){var s,d=a.top,g=a.left,y=a.width,w=a.height,D=o.offset(),I=D.top,j=D.left,U=o.width(),Z=o.height(),ee=I-d,ie=j-g,fe=o.attr("style");if(fe.indexOf("top")>=0&&(s=ee+Z-w)>0){var De=o.css("top"),Se=parseInt(De.toString())-s;Se<0&&(Se=0),o.css("top",Se+"px")}if(fe.indexOf("bottom")>=0&&I<0){var Y=o.css("bottom"),Re=parseInt(Y.toString())-Math.abs(I);o.css("bottom",Re+"px")}if(fe.indexOf("left")>=0&&(s=ie+U-y)>0){var lt=o.css("left"),St=parseInt(lt.toString())-s;St<0&&(St=0),o.css("left",St+"px")}if(fe.indexOf("right")>=0&&j<0){var Un=o.css("right"),yn=parseInt(Un.toString())-Math.abs(j);o.css("right",yn+"px")}}}))}var u0=xu("slice"),Bh=ve("species"),Bf=Ae.Array,s0=Math.max;$r({target:"Array",proto:!0,forced:!u0},{slice:function(i,o){var a,s,d,g=Ji(this),y=jo(g),w=io(i,y),D=io(o===void 0?y:o,y);if(co(g)&&(a=g.constructor,(Oa(a)&&(a===Bf||co(a.prototype))||gt(a)&&(a=a[Bh])===null)&&(a=void 0),a===Bf||a===void 0))return zi(g,w,D);for(s=new(a===void 0?Bf:a)(s0(D-w,0)),d=0;w<D;w++,d++)w in g&&ca(s,d,g[w]);return s.length=d,s}});var Yc=go.f,Fh=oe("".startsWith),nm=oe("".slice),l0=Math.min,ec=Ha("startsWith"),jd=!ec&&!!(function(){var i=Yc(String.prototype,"startsWith");return i&&!i.writable})();$r({target:"String",proto:!0,forced:!jd&&!ec},{startsWith:function(i){var o=Xr(Gt(this));Ea(i);var a=Bi(l0(arguments.length>1?arguments[1]:void 0,o.length)),s=Xr(i);return Fh?Fh(o,s,a):nm(o,a,a+s.length)===s}});var Zc=Object.assign,Dp=Object.defineProperty,rm=oe([].concat),Sp=!Zc||Ut((function(){if(we&&Zc({b:1},Zc(Dp({},"a",{enumerable:!0,get:function(){Dp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var i={},o={},a=Symbol(),s="abcdefghijklmnopqrst";return i[a]=7,s.split("").forEach((function(d){o[d]=d})),Zc({},i)[a]!=7||$a(Zc({},o)).join("")!=s}))?function(i,o){for(var a=bn(i),s=arguments.length,d=1,g=_o.f,y=ji.f;s>d;)for(var w,D=Ro(arguments[d++]),I=g?rm($a(D),g(D)):$a(D),j=I.length,U=0;j>U;)w=I[U++],we&&!xt(y,D,w)||(a[w]=D[w]);return a}:Zc;$r({target:"Object",stat:!0,forced:Object.assign!==Sp},{assign:Sp});var Ph=["props","attrs","style","dataset","on","hook"];function Cp(i){var o=i.data,a=o===void 0?{}:o,s=i.children,d=s===void 0?[]:s;Object.keys(a).forEach((function(g){var y,w,D=a[g];if(g!=="key"){if(!Ph.includes(g)){if(g.startsWith("data-")){var I=g.slice(5);return I=ye.default(I),(function(j,U){j.data==null&&(j.data={});var Z=j.data;Z.dataset==null&&(Z.dataset={}),Object.assign(Z.dataset,U)})(i,((y={})[I]=D,y)),void delete a[g]}(function(j,U){j.data==null&&(j.data={});var Z=j.data;Z.props==null&&(Z.props={}),Object.assign(Z.props,U)})(i,(w={},w[g]=D,w)),delete a[g]}}else i.key=D})),d.length>0&&d.forEach((function(g){typeof g!="string"&&Cp(g)}))}var Ff=[],Ap={};function c0(i,o,a){var s=a.isInline(i)?"span":"div";return x.jsx(s,null,o)}function f0(i,o){var a,s=_t.findKey(o,i),d=o.isInline(i),g=n.Editor.isVoid(o,i),y=ed(s.id),w={id:y,key:s.id,"data-slate-node":"element","data-slate-inline":d},D=i.type,I=i.children,j=I===void 0?[]:I,U=(function(Y){return Ap[Y]||c0})(D);a=g?null:j.map((function(Y,Re){return Nh(Y,Re,i,o)}));var Z=U(i,a,o);if(g){w["data-slate-void"]=!0;var ee=d?"span":"div",ie=ft(n.Node.texts(i),1),fe=ft(ie[0],1)[0],De=Nh(fe,0,i,o),Se=x.jsx(ee,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},De);Z=x.jsx(ee,{style:{position:"relative"}},Z,Se),pl.set(fe,0),Hs.set(fe,i)}return Z.data==null&&(Z.data={}),Object.assign(Z.data,w),g||d||(Z=(function(Y,Re){var lt=Re;return Ff.forEach((function(St){lt=St(Y,Re)})),lt})(i,Z)),yl((function(){var Y=Tt(y);Y!=null&&(Us.set(s,Y),dc.set(i,Y),fc.set(Y,i))})),Z}function kh(i,o){return o===void 0&&(o=!1),x.jsx("span",{"data-slate-string":!0},o?i+`
`:i)}function Ld(i,o){return i===void 0&&(i=0),o===void 0&&(o=!1),x.jsx("span",{"data-slate-zero-width":o?"n":"z","data-slate-length":i},"\uFEFF",o?x.jsx("br",null):null)}function im(i,o,a){if(i.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(i));var s=_t.findKey(a,i),d=a.getConfig().decorate;if(d==null)throw new Error("Can not get config.decorate");var g=_t.findPath(a,i),y=d([i,g]),w=n.Text.decorations(i,y),D=w.map((function(U,Z){var ee=(function(ie,fe,De,Se,Y){fe===void 0&&(fe=!1);var Re=ie.text,lt=_t.findPath(Y,De),St=n.Path.parent(lt);if(n.Editor.isEditor(Se))throw new Error("Text node "+JSON.stringify(De)+" parent is Editor");return Y.isVoid(Se)?Ld(n.Node.string(Se).length):Re!==""||Se.children[Se.children.length-1]!==De||Y.isInline(Se)||n.Editor.string(Y,St)!==""?Re===""?Ld():fe&&Re.slice(-1)===`
`?kh(Re,!0):kh(Re):Ld(0,!0)})(U,Z===w.length-1,i,o,a);return ee=(function(ie,fe){var De=fe;return Ff.forEach((function(Se){De=Se(ie,De)})),De})(U,ee),x.jsx("span",{"data-slate-leaf":!0},ee)})),I=(function(U){return"w-e-text-"+U})(s.id),j=x.jsx("span",{"data-slate-node":"text",id:I,key:s.id},D);return yl((function(){var U=Tt(I);U!=null&&(Us.set(s,U),dc.set(i,U),fc.set(U,i))})),j}function Nh(i,o,a,s){return pl.set(i,o),Hs.set(i,a),n.Element.isElement(i)?f0(i,s):im(i,a,s)}function Jc(i,o){var a,s=i.$scroll,d=(function(fe){return"w-e-textarea-"+fe})(i.id),g=o.getConfig(),y=g.readOnly,w=g.autoFocus,D=(function(fe,De){return De===void 0&&(De=!1),x.h("div#"+fe,{props:{contentEditable:!De}})})(d,y),I=o.children||[];D.children=I.map((function(fe,De){var Se=Nh(fe,De,o,o);return Cp(Se),Se}));var j=Gl.get(i);if(j==null&&(j=!0),j){var U=(function(fe,De){return X.default(`<div
id="`+fe+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)})(d);s.append(U),i.$textArea=U,a=U[0],(ee=x.init([x.classModule,x.propsModule,x.styleModule,x.datasetModule,x.eventListenersModule,x.attributesModule]))(a,D),Gl.set(i,!1),Js.set(i,ee)}else{var Z=Rc.get(i),ee=Js.get(i);if(Z==null||ee==null)return;a=Z.elm,ee(Z,D)}if(a!=null||(a=Tt(d))!=null){if((j?w:o.isFocused())&&a.focus({preventScroll:!0}),j){var ie=he(a);ie&&Lc.set(o,ie)}jc.set(o,a),dc.set(o,a),fc.set(a,o),Rc.set(i,D)}}function Ih(i){return typeof i=="object"&&i!=null&&i.nodeType===1}function Rh(i,o){return(!o||i!=="hidden")&&i!=="visible"&&i!=="clip"}function jh(i,o){if(i.clientHeight<i.scrollHeight||i.clientWidth<i.scrollWidth){var a=getComputedStyle(i,null);return Rh(a.overflowY,o)||Rh(a.overflowX,o)||(function(s){var d=(function(g){if(!g.ownerDocument||!g.ownerDocument.defaultView)return null;try{return g.ownerDocument.defaultView.frameElement}catch(y){return null}})(s);return!!d&&(d.clientHeight<s.scrollHeight||d.clientWidth<s.scrollWidth)})(i)}return!1}function tc(i,o,a,s,d,g,y,w){return g<i&&y>o||g>i&&y<o?0:g<=i&&w<=a||y>=o&&w>=a?g-i-s:y>o&&w<a||g<i&&w>a?y-o+d:0}var d0=function(i,o){var a=window,s=o.scrollMode,d=o.block,g=o.inline,y=o.boundary,w=o.skipOverflowHiddenElements,D=typeof y=="function"?y:function(O5){return O5!==y};if(!Ih(i))throw new TypeError("Invalid target");for(var I=document.scrollingElement||document.documentElement,j=[],U=i;Ih(U)&&D(U);){if((U=U.parentElement)===I){j.push(U);break}U!=null&&U===document.body&&jh(U)&&!jh(document.documentElement)||U!=null&&jh(U,w)&&j.push(U)}for(var Z=a.visualViewport?a.visualViewport.width:innerWidth,ee=a.visualViewport?a.visualViewport.height:innerHeight,ie=window.scrollX||pageXOffset,fe=window.scrollY||pageYOffset,De=i.getBoundingClientRect(),Se=De.height,Y=De.width,Re=De.top,lt=De.right,St=De.bottom,Un=De.left,yn=d==="start"||d==="nearest"?Re:d==="end"?St:Re+Se/2,Fr=g==="center"?Un+Y/2:g==="end"?lt:Un,na=[],Do=0;Do<j.length;Do++){var vo=j[Do],to=vo.getBoundingClientRect(),ni=to.height,ra=to.width,ro=to.top,Ws=to.right,El=to.bottom,kf=to.left;if(s==="if-needed"&&Re>=0&&Un>=0&&St<=ee&&lt<=Z&&Re>=ro&&St<=El&&Un>=kf&&lt<=Ws)return na;var tf=getComputedStyle(vo),wl=parseInt(tf.borderLeftWidth,10),Nf=parseInt(tf.borderTopWidth,10),nf=parseInt(tf.borderRightWidth,10),If=parseInt(tf.borderBottomWidth,10),wc=0,rf=0,xc="offsetWidth"in vo?vo.offsetWidth-vo.clientWidth-wl-nf:0,Dc="offsetHeight"in vo?vo.offsetHeight-vo.clientHeight-Nf-If:0;if(I===vo)wc=d==="start"?yn:d==="end"?yn-ee:d==="nearest"?tc(fe,fe+ee,ee,Nf,If,fe+yn,fe+yn+Se,Se):yn-ee/2,rf=g==="start"?Fr:g==="center"?Fr-Z/2:g==="end"?Fr-Z:tc(ie,ie+Z,Z,wl,nf,ie+Fr,ie+Fr+Y,Y),wc=Math.max(0,wc+fe),rf=Math.max(0,rf+ie);else{wc=d==="start"?yn-ro-Nf:d==="end"?yn-El+If+Dc:d==="nearest"?tc(ro,El,ni,Nf,If+Dc,yn,yn+Se,Se):yn-(ro+ni/2)+Dc/2,rf=g==="start"?Fr-kf-wl:g==="center"?Fr-(kf+ra/2)+xc/2:g==="end"?Fr-Ws+nf+xc:tc(kf,Ws,ra,wl,nf+xc,Fr,Fr+Y,Y);var Yh=vo.scrollLeft,Ab=vo.scrollTop;yn+=Ab-(wc=Math.max(0,Math.min(Ab+wc,vo.scrollHeight-ni+Dc))),Fr+=Yh-(rf=Math.max(0,Math.min(Yh+rf,vo.scrollWidth-ra+xc)))}na.push({el:vo,top:wc,left:rf})}return na},om=an((function(i,o){o.__esModule=!0,o.default=void 0;var a,s=(a=d0)&&a.__esModule?a:{default:a};function d(y){return y===Object(y)&&Object.keys(y).length!==0}var g=function(y,w){var D=!y.ownerDocument.documentElement.contains(y);if(d(w)&&typeof w.behavior=="function")return w.behavior(D?[]:(0,s.default)(y,w));if(!D){var I=(function(j){return j===!1?{block:"end",inline:"nearest"}:d(j)?j:{block:"start",inline:"nearest"}})(w);return(function(j,U){U===void 0&&(U="auto");var Z="scrollBehavior"in document.body.style;j.forEach((function(ee){var ie=ee.el,fe=ee.top,De=ee.left;ie.scroll&&Z?ie.scroll({top:fe,left:De,behavior:U}):(ie.scrollTop=fe,ie.scrollLeft=De)}))})((0,s.default)(y,I),I.behavior)}};o.default=g,i.exports=o.default})),Lh=tn(om);function bl(i,o){return Xe(o)&&_t.hasDOMNode(i,o,{editable:!0})}function p0(i,o){if(i.getConfig().readOnly)return!1;var a=Pf(i,o)&&_t.toSlateNode(i,o);return n.Editor.isVoid(i,a)}function Pf(i,o){return Xe(o)&&_t.hasDOMNode(i,o)}function _p(i,o,a){a===void 0&&(a=!1);var s=o.selection,d=o.getConfig(),g=_t.findDocumentOrShadowRoot(o).getSelection();if(g&&(!i.isComposing||a)&&o.isFocused()){var y=g.type!=="None";if(s||y){var w=jc.get(o),D=!1;if(w.contains(g.anchorNode)&&w.contains(g.focusNode)&&(D=!0),y&&D&&s){var I=_t.toSlateRange(o,g,{exactMatch:!0,suppressThrow:!0});if(I&&n.Range.equals(I,s)){var j=!0;if(n.Range.isCollapsed(s)){var U=g.anchorNode,Z=g.anchorOffset;if(U===w){var ee=w.childNodes,ie=void 0;(ie=ee[Z])&&ie.matches("table")&&(j=!1),(ie=ee[Z-1])&&ie.matches("table")&&(j=!1)}}if(j)return}}if(!s||_t.hasRange(o,s)){i.isUpdatingSelection=!0;var fe=s&&_t.toDOMRange(o,s);if(fe){n.Range.isBackward(s)?g.setBaseAndExtent(fe.endContainer,fe.endOffset,fe.startContainer,fe.startOffset):g.setBaseAndExtent(fe.startContainer,fe.startOffset,fe.endContainer,fe.endOffset);var De=fe.startContainer.parentElement;if(!De.closest("[data-slate-spacer]")){De.getBoundingClientRect=fe.getBoundingClientRect.bind(fe);var Se=document.body;Lh(De,{scrollMode:"if-needed",boundary:d.scroll?w.parentElement:Se,block:"end",behavior:"smooth"}),delete De.getBoundingClientRect}}else g.removeAllRanges();setTimeout((function(){fe&&Rn&&w.focus(),i.isUpdatingSelection=!1}))}else o.selection=_t.toSlateRange(o,g,{exactMatch:!1,suppressThrow:!1})}}}var Mh=new WeakMap,Op=new WeakMap,$h={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"},h0={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"},am={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Bo=function(i){var o=$h[i],a=h0[i],s=am[i],d=o&&k.isKeyHotkey(o),g=a&&k.isKeyHotkey(a),y=s&&k.isKeyHotkey(s);return function(w){return!(!d||!d(w))||!!(ur&&g&&g(w))||!(ur||!y||!y(w))}},ta={isBold:Bo("bold"),isCompose:Bo("compose"),isMoveBackward:Bo("moveBackward"),isMoveForward:Bo("moveForward"),isDeleteBackward:Bo("deleteBackward"),isDeleteForward:Bo("deleteForward"),isDeleteLineBackward:Bo("deleteLineBackward"),isDeleteLineForward:Bo("deleteLineForward"),isDeleteWordBackward:Bo("deleteWordBackward"),isDeleteWordForward:Bo("deleteWordForward"),isExtendBackward:Bo("extendBackward"),isExtendForward:Bo("extendForward"),isExtendLineBackward:Bo("extendLineBackward"),isExtendLineForward:Bo("extendLineForward"),isItalic:Bo("italic"),isMoveLineBackward:Bo("moveLineBackward"),isMoveLineForward:Bo("moveLineForward"),isMoveWordBackward:Bo("moveWordBackward"),isMoveWordForward:Bo("moveWordForward"),isRedo:Bo("redo"),isSplitBlock:Bo("splitBlock"),isTransposeCharacter:Bo("transposeCharacter"),isUndo:Bo("undo"),isTab:Bo("tab"),isSelectAll:Bo("selectAll")};function Xa(i){i.preventDefault()}var um={beforeinput:function(i,o,a){var s=i,d=a.getConfig().readOnly;if(Cu&&!d&&bl(a,s.target)){var g=a.selection,y=s.inputType,w=s.dataTransfer||s.data||void 0;if(y!=="insertCompositionText"&&y!=="deleteCompositionText"){if(s.preventDefault(),!y.startsWith("delete")||y.startsWith("deleteBy")){var D=ft(s.getTargetRanges(),1)[0];if(D){var I=_t.toSlateRange(a,D,{exactMatch:!1,suppressThrow:!1});g&&n.Range.equals(g,I)||n.Transforms.select(a,I)}}if(g&&n.Range.isExpanded(g)&&y.startsWith("delete")){var j=y.endsWith("Backward")?"backward":"forward";n.Editor.deleteFragment(a,{direction:j})}else switch(y){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":n.Editor.deleteFragment(a);break;case"deleteContent":case"deleteContentForward":n.Editor.deleteForward(a);break;case"deleteContentBackward":n.Editor.deleteBackward(a);break;case"deleteEntireSoftLine":n.Editor.deleteBackward(a,{unit:"line"}),n.Editor.deleteForward(a,{unit:"line"});break;case"deleteHardLineBackward":n.Editor.deleteBackward(a,{unit:"block"});break;case"deleteSoftLineBackward":n.Editor.deleteBackward(a,{unit:"line"});break;case"deleteHardLineForward":n.Editor.deleteForward(a,{unit:"block"});break;case"deleteSoftLineForward":n.Editor.deleteForward(a,{unit:"line"});break;case"deleteWordBackward":n.Editor.deleteBackward(a,{unit:"word"});break;case"deleteWordForward":n.Editor.deleteForward(a,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":n.Editor.insertBreak(a);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(y==="insertFromPaste"&&!zc.get(a))break;w instanceof DataTransfer?a.insertData(w):typeof w=="string"&&n.Editor.insertText(a,w)}}}},blur:function(i,o,a){var s=i,d=o.isUpdatingSelection,g=o.latestElement;if(!a.getConfig().readOnly&&!d&&bl(a,s.target)){var y=_t.findDocumentOrShadowRoot(a);if(g!==y.activeElement){var w=s.relatedTarget;if(!(w===_t.toDOMNode(a,a)||Ue(w)&&w.hasAttribute("data-slate-spacer"))){if(w!=null&&Xe(w)&&_t.hasDOMNode(a,w)){var D=_t.toSlateNode(a,w);if(n.Element.isElement(D)&&!a.isVoid(D))return}if(Sr){var I=y.getSelection();I==null||I.removeAllRanges()}Qs.delete(a)}}}},focus:function(i,o,a){var s=_t.toDOMNode(a,a),d=_t.findDocumentOrShadowRoot(a);o.latestElement=d.activeElement,Rn&&i.target!==s?s.focus():Qs.set(a,!0)},click:function(i,o,a){if(!a.getConfig().readOnly&&Pf(a,i.target)&&Xe(i.target)){var s=_t.toSlateNode(a,i.target),d=_t.findPath(a,s);if(n.Editor.hasPath(a,d)&&n.Node.get(a,d)===s){var g=n.Editor.start(a,d),y=n.Editor.end(a,d),w=n.Editor.void(a,{at:g}),D=n.Editor.void(a,{at:y});if(w&&D&&n.Path.equals(w[1],D[1])){var I=n.Editor.range(a,g);n.Transforms.select(a,I)}}}},compositionstart:function(i,o,a){if(bl(a,i.target)){var s=a.selection;if(s&&n.Range.isExpanded(s)&&(n.Editor.deleteFragment(a),Promise.resolve().then((function(){_p(o,a,!0)}))),s&&n.Range.isCollapsed(s)){var d=_t.toDOMRange(a,s).startContainer,g=d.textContent||"";Mh.set(a,g),Op.set(a,d)}o.isComposing=!0,(function(y,w){var D;w.getConfig().placeholder&&w.isEmpty()&&y.showPlaceholder&&((D=y.$placeholder)===null||D===void 0||D.hide(),y.showPlaceholder=!1)})(o,a)}},compositionend:function(i,o,a){var s=i;if(bl(a,s.target)){o.isComposing=!1;var d=a.selection;if(d!=null){($o||Rn)&&_t.cleanExposedTexNodeInSelectionBlock(a);for(var g=n.Range.isBackward(d)?d.focus:d.anchor,y=ft(n.Editor.node(a,[g.path[0]]),1)[0],w=0;w<g.path.length;w++){var D=ft(n.Editor.node(a,g.path.slice(0,w+1)),1)[0];if(n.Element.isElement(D)&&((Sr||Rn)&&D.type==="link"||D.type==="code")){_t.setNewKey(y);break}}var I=s.data;if(I){if(a.getConfig().maxLength){var j=_t.getLeftLengthOfMaxLength(a);j<I.length?(_t.toDOMRange(a,d).startContainer.textContent=Mh.get(a)||"",j>0&&n.Editor.insertText(a,I.slice(0,j)),o.changeViewState()):n.Editor.insertText(a,I)}else n.Editor.insertText(a,I);Sr||setTimeout((function(){var U=a.selection;if(U!=null){var Z=Op.get(a);Z!=null&&_t.toDOMRange(a,U).startContainer!==Z&&(Z.textContent=Mh.get(a)||"")}}))}}}},compositionupdate:function(i,o,a){bl(a,i.target)&&(o.isComposing=!0)},keydown:function(i,o,a){var s=i,d=a.selection;if(!a.getConfig().readOnly&&!o.isComposing&&bl(a,s.target)){if((function(y,w){var D=Pc.get(y),I=D&&D.getMenus(),j=ql.get(y),U=j&&j.getMenus(),Z=it(it({},I),U);for(var ee in Z){var ie=Z[ee],fe=ie.hotkey;if(fe&&k.isHotkey(fe,w)&&!ie.isDisabled(y)){var De=ie.getValue(y);ie.exec(y,De)}}})(a,s),ta.isTab(s))return Xa(s),void a.handleTab();if(ta.isRedo(s))return Xa(s),void(typeof a.redo=="function"&&a.redo());if(ta.isUndo(s))return Xa(s),void(typeof a.undo=="function"&&a.undo());if(ta.isMoveLineBackward(s))return Xa(s),void n.Transforms.move(a,{unit:"line",reverse:!0});if(ta.isMoveLineForward(s))return Xa(s),void n.Transforms.move(a,{unit:"line"});if(ta.isExtendLineBackward(s))return Xa(s),void n.Transforms.move(a,{unit:"line",edge:"focus",reverse:!0});if(ta.isExtendLineForward(s))return Xa(s),void n.Transforms.move(a,{unit:"line",edge:"focus"});if(ta.isMoveBackward(s))return Xa(s),void(d&&n.Range.isCollapsed(d)?n.Transforms.move(a,{reverse:!0}):n.Transforms.collapse(a,{edge:"start"}));if(ta.isMoveForward(s))return Xa(s),void(d&&n.Range.isCollapsed(d)?n.Transforms.move(a):n.Transforms.collapse(a,{edge:"end"}));if(ta.isMoveWordBackward(s))return Xa(s),d&&n.Range.isExpanded(d)&&n.Transforms.collapse(a,{edge:"focus"}),void n.Transforms.move(a,{unit:"word",reverse:!0});if(ta.isMoveWordForward(s))return Xa(s),d&&n.Range.isExpanded(d)&&n.Transforms.collapse(a,{edge:"focus"}),void n.Transforms.move(a,{unit:"word"});if(ta.isSelectAll(s))return Xa(s),void a.selectAll();if(Cu){if(($o||Sr)&&d&&(ta.isDeleteBackward(s)||ta.isDeleteForward(s))&&n.Range.isCollapsed(d)){var g=n.Node.parent(a,d.anchor.path);if(n.Element.isElement(g)&&n.Editor.isVoid(a,g)&&n.Editor.isInline(a,g))return s.preventDefault(),void n.Transforms.delete(a,{unit:"block"})}}else{if(ta.isBold(s)||ta.isItalic(s)||ta.isTransposeCharacter(s))return void Xa(s);if(ta.isSplitBlock(s))return Xa(s),void n.Editor.insertBreak(a);if(ta.isDeleteBackward(s))return Xa(s),void(d&&n.Range.isExpanded(d)?n.Editor.deleteFragment(a,{direction:"backward"}):n.Editor.deleteBackward(a));if(ta.isDeleteForward(s))return Xa(s),void(d&&n.Range.isExpanded(d)?n.Editor.deleteFragment(a,{direction:"forward"}):n.Editor.deleteForward(a));if(ta.isDeleteLineBackward(s))return Xa(s),void(d&&n.Range.isExpanded(d)?n.Editor.deleteFragment(a,{direction:"backward"}):n.Editor.deleteBackward(a,{unit:"line"}));if(ta.isDeleteLineForward(s))return Xa(s),void(d&&n.Range.isExpanded(d)?n.Editor.deleteFragment(a,{direction:"forward"}):n.Editor.deleteForward(a,{unit:"line"}));if(ta.isDeleteWordBackward(s))return Xa(s),void(d&&n.Range.isExpanded(d)?n.Editor.deleteFragment(a,{direction:"backward"}):n.Editor.deleteBackward(a,{unit:"word"}));if(ta.isDeleteWordForward(s))return Xa(s),void(d&&n.Range.isExpanded(d)?n.Editor.deleteFragment(a,{direction:"forward"}):n.Editor.deleteForward(a,{unit:"word"}))}}},keypress:function(i,o,a){if(!Cu&&!a.getConfig().readOnly&&bl(a,i.target)){i.preventDefault();var s=i.key;n.Editor.insertText(a,s)}},copy:function(i,o,a){var s=i;if(bl(a,s.target)){s.preventDefault();var d=s.clipboardData;d!=null&&a.setFragmentData(d)}},cut:function(i,o,a){var s=i,d=a.selection;if(!a.getConfig().readOnly&&bl(a,s.target)){s.preventDefault();var g=s.clipboardData;if(g!=null&&(a.setFragmentData(g),d))if(n.Range.isExpanded(d))n.Editor.deleteFragment(a);else{var y=n.Node.parent(a,d.anchor.path);n.Editor.isVoid(a,y)&&n.Transforms.delete(a)}}},paste:function(i,o,a){zc.set(a,!0);var s=i;if(!a.getConfig().readOnly&&bl(a,s.target)){var d=a.getConfig().customPaste;if(d&&d(a,s)===!1)return void zc.set(a,!1);if(!Cu||(function(y){return y.clipboardData&&y.clipboardData.getData("text/plain")!==""&&y.clipboardData.types.length===1})(s)){s.preventDefault();var g=s.clipboardData;g!=null&&a.insertData(g)}}},dragover:function(i,o,a){if(Pf(a,i.target)){var s=_t.toSlateNode(a,i.target);n.Editor.isVoid(a,s)&&i.preventDefault()}},dragstart:function(i,o,a){var s=i;if(Pf(a,s.target)&&!a.getConfig().readOnly){var d=_t.toSlateNode(a,s.target),g=_t.findPath(a,d);if(n.Editor.isVoid(a,d)||n.Editor.void(a,{at:g,voids:!0})){var y=n.Editor.range(a,g);n.Transforms.select(a,y)}var w=s.dataTransfer;w!=null&&(o.isDraggingInternally=!0,a.setFragmentData(w))}},dragend:function(i,o,a){var s=i;a.getConfig().readOnly||o.isDraggingInternally&&Pf(a,s.target)&&(o.isDraggingInternally=!1)},drop:function(i,o,a){var s=i,d=s.dataTransfer;if(!a.getConfig().readOnly&&Pf(a,s.target)&&d!=null&&!(Cu&&Sr&&d.files.length>0)){s.preventDefault();var g=a.selection,y=_t.findEventRange(a,s);n.Transforms.select(a,y),o.isDraggingInternally&&(g&&n.Transforms.delete(a,{at:g}),o.isDraggingInternally=!1),a.insertData(d),a.isFocused()||a.focus()}}},Tp=1,zh=(function(){function i(o){var a=this;this.id=Tp++,this.$textArea=null,this.$progressBar=X.default('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=X.default('<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=Ee.default((function(){var y=a.editorInstance;(function(w,D){var I=w.isComposing,j=w.isUpdatingSelection,U=w.isDraggingInternally;if(!(D.getConfig().readOnly||I||j||U)){var Z=_t.findDocumentOrShadowRoot(D),ee=Z.activeElement,ie=_t.toDOMNode(D,D),fe=Z.getSelection();if(ee===ie?(w.latestElement=ee,Qs.set(D,!0)):Qs.delete(D),!fe)return n.Transforms.deselect(D);var De=fe.anchorNode,Se=fe.focusNode,Y=bl(D,De)||p0(D,De),Re=bl(D,Se)||p0(D,Se);if(Y&&Re){var lt=_t.toSlateRange(D,fe,{exactMatch:!1,suppressThrow:!1});n.Transforms.select(D,lt)}else n.Transforms.deselect(D)}})(a,y)}),100);var s=X.default(o);if(s.length===0)throw new Error("Cannot find textarea DOM by selector '"+o+"'");this.$box=s;var d=X.default('<div class="w-e-text-container"></div>');d.append(this.$progressBar),d.append(this.$maxLengthInfo),s.append(d);var g=X.default('<div class="w-e-scroll"></div>');d.append(g),this.$scroll=g,this.$textAreaContainer=d,yl((function(){var y=a.editorInstance,w=_t.getWindow(y);w.document.addEventListener("selectionchange",a.onDOMSelectionChange),y.on("destroyed",(function(){w.document.removeEventListener("selectionchange",a.onDOMSelectionChange)})),d.on("click",(function(){return y.hidePanelOrModal()})),y.on("change",a.changeViewState.bind(a));var D=y.getConfig().onChange;D&&y.on("change",(function(){return D(y)})),a.onFocusAndOnBlur(),y.on("change",a.changeMaxLengthInfo.bind(a)),a.bindEvent()}))}return Object.defineProperty(i.prototype,"editorInstance",{get:function(){var o=us.get(this);if(o==null)throw new Error("Can not get editor instance");return o},enumerable:!1,configurable:!0}),i.prototype.bindEvent=function(){var o=this,a=this.$textArea,s=this.$scroll,d=this.editorInstance;a!=null&&(q.default(um,(function(g,y){a.on(y,(function(w){g(w,o,d)}))})),d.getConfig().scroll&&(s.css("overflow-y","auto"),s.on("scroll",Ee.default((function(){d.emit("scroll")}),100))))},i.prototype.onFocusAndOnBlur=function(){var o=this,a=this.editorInstance,s=a.getConfig(),d=s.onBlur,g=s.onFocus;this.latestEditorSelection=a.selection,a.on("change",(function(){o.latestEditorSelection==null&&a.selection!=null?setTimeout((function(){return g&&g(a)})):o.latestEditorSelection!=null&&a.selection==null&&setTimeout((function(){return d&&d(a)})),o.latestEditorSelection=a.selection}))},i.prototype.changeMaxLengthInfo=function(){var o=this.editorInstance,a=o.getConfig().maxLength;if(a){var s=a-_t.getLeftLengthOfMaxLength(o);this.$maxLengthInfo[0].innerHTML=s+"/"+a}},i.prototype.changeProgress=function(o){var a=this.$progressBar;a.css("width",o+"%"),o>=100&&setTimeout((function(){a.hide(),a.css("width","0"),a.show()}),1e3)},i.prototype.changeViewState=function(){var o=this,a=this.editorInstance;Jc(this,a),(function(s,d){var g,y=d.getConfig().placeholder;if(y){var w=d.isEmpty();if(w&&!s.showPlaceholder&&!s.isComposing){if(s.$placeholder==null){var D=X.default('<div class="w-e-text-placeholder">'+y+"</div>");s.$textAreaContainer.append(D),s.$placeholder=D}return s.$placeholder.show(),void(s.showPlaceholder=!0)}!w&&s.showPlaceholder&&((g=s.$placeholder)===null||g===void 0||g.hide(),s.showPlaceholder=!1)}})(this,a),yl((function(){_p(o,a)}))},i.prototype.destroy=function(){this.$textAreaContainer.remove()},i})();pr("match",(function(i,o,a){return[function(s){var d=Gt(this),g=s==null?void 0:lr(s,i);return g?xt(g,s,d):new RegExp(s)[i](Xr(d))},function(s){var d=Kt(this),g=Xr(s),y=a(o,d,g);if(y.done)return y.value;if(!d.global)return os(d,g);var w=d.unicode;d.lastIndex=0;for(var D,I=[],j=0;(D=os(d,g))!==null;){var U=Xr(D[0]);I[j]=U,U===""&&(d.lastIndex=vi(g,Bi(d.lastIndex),w)),j++}return j===0?null:I}]}));function Bp(i){i.removeAttr("width"),i.removeAttr("height"),i.removeAttr("fill"),i.removeAttr("class"),i.removeAttr("t"),i.removeAttr("p-id");var o=i.children();o.length&&Bp(o)}function ad(){return X.default('<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 Hh(){return X.default('<div class="w-e-bar-divider"></div>')}function g0(i,o,a,s,d){if(d===void 0&&(d=!1),o){if(s){var g=ur?"cmd":"ctrl";s=s.replace("mod",g)}if(d)s&&(i.attr("data-tooltip",s),i.addClass("w-e-menu-tooltip-v5"),i.addClass("tooltip-right"));else{var y=s?a+`
`+s:a;i.attr("data-tooltip",y),i.addClass("w-e-menu-tooltip-v5")}}}var Fp=(function(){function i(o,a,s){var d=this;s===void 0&&(s=!1),this.$elem=X.default('<div class="w-e-bar-item"></div>'),this.$button=X.default('<button type="button"></button>'),this.disabled=!1,this.menu=a;var g=a.tag,y=a.width;if(g!=="button")throw new Error("Invalid tag '"+g+"', expected 'button'");var w=a.title,D=a.hotkey,I=D===void 0?"":D,j=a.iconSvg,U=j===void 0?"":j,Z=this.$button;if(U){var ee=X.default(U);Bp(ee),Z.append(ee)}else Z.text(w);g0(Z,U,w,I,s),s&&U&&Z.append(X.default('<span class="title">'+w+"</span>")),y&&Z.css("width",y+"px"),Z.attr("data-menu-key",o),this.$elem.append(Z),yl((function(){return d.init()}))}return i.prototype.init=function(){var o=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(a){a.preventDefault(),Vs(o).hidePanelOrModal(),o.disabled||(o.exec(),o.onButtonClick())}))},i.prototype.exec=function(){var o=Vs(this),a=this.menu,s=a.getValue(o);a.exec(o,s)},i.prototype.setActive=function(){var o=Vs(this),a=this.$button,s="active";this.menu.isActive(o)?a.addClass(s):a.removeClass(s)},i.prototype.setDisabled=function(){var o=Vs(this),a=this.$button,s=this.menu.isDisabled(o);(o.selection==null||o.isDisabled())&&(s=!0),this.menu.alwaysEnable&&(s=!1);var d="disabled";s?a.addClass(d):a.removeClass(d),this.disabled=s},i.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},i})(),v0=(function(i){function o(a,s,d){return d===void 0&&(d=!1),i.call(this,a,s,d)||this}return Ze(o,i),o.prototype.onButtonClick=function(){},o})(Fp),Uh=(function(){function i(o){this.isShow=!1,this.showTime=0,this.record(o)}return i.prototype.record=function(o){var a=Nc.get(o);a==null&&(a=new Set,Nc.set(o,a)),a.add(this),dl.set(this,o)},i.prototype.renderContent=function(o){var a=this.$elem;a.empty(),a.append(o);var s=this.genSelfElem();s&&a.append(s)},i.prototype.appendTo=function(o){var a=this.$elem;o.append(a)},i.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var o=dl.get(this);o&&o.emit("modalOrPanelShow",this)}},i.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var o=dl.get(this);o&&o.emit("modalOrPanelHide")}},i})(),sm=(function(i){function o(a){var s=i.call(this,a)||this;return s.type="dropPanel",s.$elem=X.default('<div class="w-e-drop-panel"></div>'),s}return Ze(o,i),o.prototype.genSelfElem=function(){return null},o})(Uh),m0=(function(i){function o(a,s,d){d===void 0&&(d=!1);var g=i.call(this,a,s,d)||this;if(g.dropPanel=null,g.menu=s,s.showDropPanel){var y=ad();g.$button.append(y)}return g}return Ze(o,i),o.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},o.prototype.handleDropPanel=function(){var a=this.menu;if(a.getPanelContentElem!=null){var s=Vs(this);if(this.dropPanel==null){var d=new sm(s),g=a.getPanelContentElem(s);d.renderContent(g),d.appendTo(this.$elem),d.show(),this.dropPanel=d}else{var y=this.dropPanel;y.isShow?y.hide():(g=a.getPanelContentElem(s),y.renderContent(g),y.show())}var w=this.dropPanel;if(w.isShow){var D=this.$elem,I=D.offset().left,j=D.parents(".w-e-bar");I-j.offset().left>=j.width()/2?w.$elem.css({left:"none",right:"0"}):w.$elem.css({left:"0",right:"none"})}}},o})(Fp),Vh=(function(i){function o(a,s){s===void 0&&(s=0);var d=i.call(this,a)||this;d.type="modal",d.$elem=X.default('<div class="w-e-modal"></div>'),d.width=0,s&&(d.width=s);var g=d.$elem;return g.on("click",(function(y){return y.stopPropagation()})),g.on("keyup",(function(y){y.code==="Escape"&&(d.hide(),a.restoreSelection())})),d}return Ze(o,i),o.prototype.genSelfElem=function(){var a=this,s=X.default('<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>'),d=dl.get(this);return s.on("click",(function(){a.hide(),d==null||d.restoreSelection()})),s},o.prototype.setStyle=function(a){var s=this.width,d=this.$elem;d.attr("style",""),s&&d.css("width",s+"px"),d.css(a)},o})(Uh),y0=(function(i){function o(a,s,d){d===void 0&&(d=!1);var g=i.call(this,a,s,d)||this;return g.$body=X.default("body"),g.modal=null,g.menu=s,g}return Ze(o,i),o.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},o.prototype.getPosition=function(){var a=Vs(this),s=this.menu.getModalPositionNode(a);return n.Element.isElement(s)?Il(a,s,"modal"):tl(a)},o.prototype.handleModal=function(){var a=Vs(this),s=this.menu;if(this.modal==null){var d=new Vh(a,s.modalWidth);this.renderAndShowModal(d,!0),this.modal=d}else(d=this.modal).isShow?d.hide():this.renderAndShowModal(d,!1)},o.prototype.renderAndShowModal=function(a,s){s===void 0&&(s=!1);var d=Vs(this),g=this.menu;if(g.getModalContentElem!=null){var y=_t.getTextarea(d),w=_t.getToolbar(d),D=((w==null?void 0:w.getConfig())||{}).modalAppendToBody,I=g.getModalContentElem(d);if(a.renderContent(I),D)a.setStyle({left:"0",right:"0"});else{var j=this.getPosition();a.setStyle(j)}s&&(D?a.appendTo(this.$body):a.appendTo(y.$textAreaContainer)),a.show(),D||Ql(d,a.$elem),setTimeout((function(){d.blur()}))}},o})(Fp),Wh=(function(i){function o(a,s){var d=i.call(this,a)||this;return d.type="selectList",d.$elem=X.default('<div class="w-e-select-list"></div>'),s&&d.$elem.css("width",s+"px"),d.$elem.on("click",(function(g){g.stopPropagation()})),d}return Ze(o,i),o.prototype.renderList=function(a){var s=this.$elem;s.empty();var d=X.default("<ul></ul>");a.forEach((function(g){var y=g.value,w=g.text,D=g.selected,I=g.styleForRenderMenuList,j=X.default('<li data-value="'+y+'"></li>');if(I&&j.css(I),D){var U=X.default('<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>');j.append(U),j.addClass("selected")}j.append(X.default('<span data-value="'+y+'">'+w+"</span>")),j.attr("title",w),d.append(j)})),s.append(d)},o.prototype.genSelfElem=function(){return null},o})(Uh),lm=(function(){function i(o,a,s){var d=this;s===void 0&&(s=!1),this.$elem=X.default('<div class="w-e-bar-item"></div>'),this.$button=X.default('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var g=a.tag,y=a.title,w=a.width,D=a.iconSvg,I=D===void 0?"":D,j=a.hotkey,U=j===void 0?"":j;if(g!=="select")throw new Error("Invalid tag '"+g+"', expected 'select'");var Z=this.$button;w&&Z.css("width",w+"px"),Z.attr("data-menu-key",o),g0(Z,I,y,U,s),this.$elem.append(Z),this.menu=a,yl((function(){return d.init()}))}return i.prototype.init=function(){var o=this;this.setSelectedValue(),this.$button.on("click",(function(a){a.preventDefault(),Vs(o).hidePanelOrModal(),o.trigger()}))},i.prototype.trigger=function(){var o=this,a=Vs(this);if(!a.isDisabled()&&!this.disabled){var s=this.menu;if(this.selectList==null){this.selectList=new Wh(a,s.selectPanelWidth);var d=this.selectList,g=s.getOptions(a);d.renderList(g),d.appendTo(this.$elem),d.show(),d.$elem.on("click","li",(function(y){var w=y.target;if(w!=null){y.preventDefault();var D=X.default(w).attr("data-value");o.onChange(D)}}))}else(d=this.selectList).isShow?d.hide():(g=s.getOptions(a),d.renderList(g),d.show())}},i.prototype.onChange=function(o){var a=Vs(this),s=this.menu;s.exec&&s.exec(a,o)},i.prototype.setSelectedValue=function(){var o=Vs(this),a=this.menu,s=a.getValue(o),d=(function(w,D){for(var I=w.length,j="",U=0;U<I;U++){var Z=w[U];if(Z.value===D){j=Z.text;break}}return j})(a.getOptions(o),s.toString()),g=this.$button,y=ad();g.empty(),g.text(d),g.append(y)},i.prototype.setDisabled=function(){var o=Vs(this),a=this.menu.isDisabled(o),s=this.$button;(o.selection==null||o.isDisabled())&&(a=!0);var d="disabled";a?s.addClass(d):s.removeClass(d),this.disabled=a},i.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},i})(),Md=(function(){function i(o){this.$elem=X.default('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=X.default('<div class="w-e-bar-item-menus-container"></div>'),this.$button=X.default('<button type="button"></button>');var a=o.key,s=o.iconSvg,d=o.title,g=this.$elem,y=this.$button;if(s){var w=X.default(s);Bp(w),y.append(w)}else y.text(d);y.attr("data-menu-key",a);var D=ad();y.append(D),g.append(y);var I=this.$container;g.append(I);var j=this.createObserver();this.observe(j)}return i.prototype.appendBarItem=function(o){var a=o.$elem;this.$container.append(a)},i.prototype.observe=function(o){var a=this.$container;o.observe(a[0],{childList:!0,subtree:!0,attributes:!0})},i.prototype.createObserver=function(){var o=this,a=this.$container,s=this.$button,d=new MutationObserver((function(){var g=a.find("button"),y=g.length;if(y!==0){var w=0;g.each((function(D){X.default(D).hasClass("disabled")&&w++})),d.disconnect(),w===y?s.addClass("disabled"):s.removeClass("disabled"),o.observe(d)}}));return d},i})(),b0=new WeakMap;function Vs(i){var o=cc.get(i);if(o==null)throw new Error("Can not get editor instance");return o}function E0(i,o,a){a===void 0&&(a=!1);var s=b0.get(o);if(s)return s;var d=o.tag;if(d==="button"){var g=o.showDropPanel,y=o.showModal;s=g?new m0(i,o,a):y?new y0(i,o,a):new v0(i,o,a)}if(d==="select"&&(s=new lm(i,o,a)),s==null)throw new Error("Invalid tag in menu "+JSON.stringify(o));return b0.set(o,s),s}function w0(i,o){var a=i.selection;return a!=null&&!n.Range.isCollapsed(a)&&!_t.getSelectedElems(i).some((function(s){if(i.isVoid(s))return!0;var d=s.type;return!!["pre","code","table"].includes(d)||void 0}))&&!!n.Text.isText(o)}var cm=(function(){function i(){var o=this;this.$elem=X.default('<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=Qe.default((function(){var a=o.isShow,s=o.getSelectedNodeAndMenuKeys()||{},d=s.node,g=d===void 0?null:d,y=s.menuKeys,w=y===void 0?[]:y;g!=null&&o.changeItemsState(),!(g&&n.Element.isElement(g)&&a&&o.isSamePath(g,o.prevSelectedNode))&&(o.hideAndClean(),g!=null&&(o.registerItems(w),o.setPosition(g),o.show()),o.prevSelectedNode=g)}),200),yl((function(){var a=o.getEditorInstance(),s=o.$elem;s.on("mousedown",(function(g){return g.preventDefault()}),{passive:!1}),_t.getTextarea(a).$textAreaContainer.append(s),a.on("change",o.changeHoverbarState);var d=o.hideAndClean.bind(o);a.on("scroll",d),a.on("fullScreen",d),a.on("unFullScreen",d)}))}return i.prototype.getMenus=function(){return this.menus},i.prototype.hideAndClean=function(){var o=this.$elem;o.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],o.empty(),this.isShow=!1},i.prototype.checkPositionBottom=function(){var o=this.$elem,a=!1,s=window.innerHeight;s&&s>=360&&s-o[0].getBoundingClientRect().bottom<360&&(a=!0),a?o.addClass("w-e-bar-bottom"):o.removeClass("w-e-bar-bottom")},i.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},i.prototype.changeItemsState=function(){var o=this;yl((function(){o.hoverbarItems.forEach((function(a){a.changeMenuState()}))}))},i.prototype.registerItems=function(o){var a=this,s=this.$elem;o.forEach((function(d){if(d!=="|")a.registerSingleItem(d);else{var g=Hh();s.append(g)}}))},i.prototype.registerSingleItem=function(o){var a=this.getEditorInstance(),s=this.menus,d=s[o];if(d==null){var g=Pl[o];if(g==null)throw new Error("Not found menu item factory by key '"+o+"'");if(typeof g!="function")throw new Error("Menu item factory (key='"+o+"') is not a function");d=g(),s[o]=d}var y=E0(o,d);this.hoverbarItems.push(y),cc.set(y,a),this.$elem.append(y.$elem)},i.prototype.setPosition=function(o){var a=this.getEditorInstance(),s=this.$elem;if(s.attr("style",""),n.Element.isElement(o)){var d=Il(a,o,"bar");return s.css(d),void Ql(a,s)}if(n.Text.isText(o))return d=tl(a),s.css(d),void Ql(a,s);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},i.prototype.getSelectedNodeAndMenuKeys=function(){var o=this.getEditorInstance();if(o.selection==null)return null;var a=this.getHoverbarKeysConf(),s=null,d=[],g=function(w){var D=a[w],I=D.match,j=D.menuKeys,U=j===void 0?[]:j,Z=I||function(fe,De){return _t.checkNodeType(De,w)},ee=ft(n.Editor.nodes(o,{match:function(fe){return Z(o,fe)},universal:!0}),1),ie=ee[0];if(ie!=null)return s=ie[0],d=U,"break"};for(var y in a)if(g(y)==="break")break;return s==null||d.length===0?null:{node:s,menuKeys:d}},i.prototype.getEditorInstance=function(){var o=kc.get(this);if(o==null)throw new Error("Can not get editor instance");return o},i.prototype.getHoverbarKeysConf=function(){var o=this.getEditorInstance().getConfig().hoverbarKeys,a=o===void 0?{}:o,s=a.text;return s&&s.match==null&&(s.match=w0),a},i.prototype.isSamePath=function(o,a){if(o==null||a==null)return!1;var s=_t.findPath(null,o),d=_t.findPath(null,a);return n.Path.equals(s,d)},i.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},i})();function qh(i,o,a,s){if(pl.set(i,o),Hs.set(i,a),n.Element.isElement(i)){var d=i.children;if((d===void 0?[]:d).forEach((function(w,D){return qh(w,D,i,s)})),n.Editor.isVoid(s,i)){var g=ft(n.Node.texts(i),1),y=ft(g[0],1)[0];pl.set(y,0),Hs.set(y,i)}}}var fm=xu("splice"),dm=Ae.TypeError,pm=Math.max,hm=Math.min,x0=9007199254740991,gm="Maximum allowed length exceeded";$r({target:"Array",proto:!0,forced:!fm},{splice:function(i,o){var a,s,d,g,y,w,D=bn(this),I=jo(D),j=io(i,I),U=arguments.length;if(U===0?a=s=0:U===1?(a=0,s=I-j):(a=U-2,s=hm(pm(lo(o),0),I-j)),I+a-s>x0)throw dm(gm);for(d=le(D,s),g=0;g<s;g++)(y=j+g)in D&&ca(d,g,D[y]);if(d.length=s,a<s){for(g=j;g<I-s;g++)w=g+a,(y=g+s)in D?D[w]=D[y]:delete D[w];for(g=I;g>I-s+a;g--)delete D[g-1]}else if(a>s)for(g=I-s;g>j;g--)w=g+a-1,(y=g+s-1)in D?D[w]=D[y]:delete D[w];for(g=0;g<a;g++)D[g+j]=arguments[g+2];return D.length=I-s+a,d}});var D0=(function(){function i(o,a){var s=this;this.$toolbar=X.default('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Qe.default((function(){s.toolbarItems.forEach((function(y){y.changeMenuState()}))}),200),this.config=a;var d=X.default(o);if(d.length===0)throw new Error("Cannot find toolbar DOM by selector '"+o+"'");this.$box=d;var g=this.$toolbar;g.on("mousedown",(function(y){return y.preventDefault()}),{passive:!1}),d.append(g),yl((function(){s.registerItems(),s.changeToolbarState(),s.getEditorInstance().on("change",s.changeToolbarState)}))}return i.prototype.getMenus=function(){return this.menus},i.prototype.getConfig=function(){return this.config},i.prototype.registerItems=function(){var o=this,a="",s=this.$toolbar,d=this.config,g=d.toolbarKeys,y=g===void 0?[]:g,w=d.insertKeys,D=w===void 0?{index:0,keys:[]}:w,I=d.excludeKeys,j=I===void 0?[]:I,U=qe.default(y);D.keys.length>0&&(typeof D.keys=="string"&&(D.keys=[D.keys]),D.keys.forEach((function(ie,fe){U.splice(D.index+fe,0,ie)})));var Z=U.filter((function(ie){if(typeof ie=="string"){if(j.includes(ie))return!1}else if(j.includes(ie.key))return!1;return!0})),ee=Z.length;Z.forEach((function(ie,fe){if(ie==="|"){if(fe===0||fe+1===ee||a==="|")return;var De=Hh();return s.append(De),void(a=ie)}if(typeof ie=="string")return o.registerSingleItem(ie,o),void(a=ie);o.registerGroup(ie),a="group"}))},i.prototype.registerGroup=function(o){var a=this,s=this.$toolbar,d=(function(I){return new Md(I)})(o),g=o.menuKeys,y=g===void 0?[]:g,w=this.config.excludeKeys,D=w===void 0?[]:w;y.forEach((function(I){D.includes(I)||a.registerSingleItem(I,d)})),s.append(d.$elem)},i.prototype.registerSingleItem=function(o,a){var s=this.getEditorInstance(),d=a instanceof Md,g=this.menus,y=g[o];if(y==null){var w=Pl[o];if(w==null)throw new Error("Not found menu item factory by key '"+o+"'");if(typeof w!="function")throw new Error("Menu item factory (key='"+o+"') is not a function");y=w(),g[o]=y}else console.warn("Duplicated toolbar menu key '"+o+`'
重复注册了菜单栏 menu '`+o+"'");var D=E0(o,y,d);this.toolbarItems.push(D),cc.set(D,s),d?a.appendBarItem(D):a.$toolbar.append(D.$elem)},i.prototype.getEditorInstance=function(){var o=lc.get(this);if(o==null)throw new Error("Can not get editor instance");return o},i.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},i})(),S0=Po.EXISTS,vm=Hr.f,Gh=Function.prototype,mm=oe(Gh.toString),Kh=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ym=oe(Kh.exec);we&&!S0&&vm(Gh,"name",{configurable:!0,get:function(){try{return ym(Kh,mm(this))[1]}catch(i){return""}}});var C0=an((function(i){function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(i.exports=o=function(s){return typeof s},i.exports.default=i.exports,i.exports.__esModule=!0):(i.exports=o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},i.exports.default=i.exports,i.exports.__esModule=!0),o(a)}i.exports=o,i.exports.default=i.exports,i.exports.__esModule=!0})),bm=an((function(i){i.exports=function(o,a,s){return a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o},i.exports.default=i.exports,i.exports.__esModule=!0})),Em=an((function(i){i.exports=function(o){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?Object(arguments[a]):{},d=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&d.push.apply(d,Object.getOwnPropertySymbols(s).filter((function(g){return Object.getOwnPropertyDescriptor(s,g).enumerable}))),d.forEach((function(g){bm(o,g,s[g])}))}return o},i.exports.default=i.exports,i.exports.__esModule=!0})),A0=an((function(i){i.exports=function(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")},i.exports.default=i.exports,i.exports.__esModule=!0})),wm=an((function(i){function o(a,s){for(var d=0;d<s.length;d++){var g=s[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(a,g.key,g)}}i.exports=function(a,s,d){return s&&o(a.prototype,s),d&&o(a,d),a},i.exports.default=i.exports,i.exports.__esModule=!0})),_0=an((function(i){i.exports=function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o},i.exports.default=i.exports,i.exports.__esModule=!0})),xm=an((function(i){var o=C0.default;i.exports=function(a,s){if(s&&(o(s)==="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _0(a)},i.exports.default=i.exports,i.exports.__esModule=!0})),Pp=an((function(i){function o(a){return i.exports=o=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},i.exports.default=i.exports,i.exports.__esModule=!0,o(a)}i.exports=o,i.exports.default=i.exports,i.exports.__esModule=!0})),Dm=an((function(i){function o(a,s){return i.exports=o=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d},i.exports.default=i.exports,i.exports.__esModule=!0,o(a,s)}i.exports=o,i.exports.default=i.exports,i.exports.__esModule=!0})),Sm=an((function(i){i.exports=function(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),a&&Dm(o,a)},i.exports.default=i.exports,i.exports.__esModule=!0}));function Qc(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var $d=Qc(C0),Ya=Qc(Em),yc=Qc(A0),bc=Qc(wm),zd=Qc(xm),kp=Qc(Pp),ud=Qc(_0),Np=Qc(Sm),Cm={type:"logger",log:function(i){this.output("log",i)},warn:function(i){this.output("warn",i)},error:function(i){this.output("error",i)},output:function(i,o){console&&console[i]&&console[i].apply(console,o)}},Am=(function(){function i(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};yc.default(this,i),this.init(o,a)}return bc.default(i,[{key:"init",value:function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=o||Cm,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(o){this.debug=o}},{key:"log",value:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return this.forward(a,"log","",!0)}},{key:"warn",value:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return this.forward(a,"warn","",!0)}},{key:"error",value:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return this.forward(a,"error","")}},{key:"deprecate",value:function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(o,a,s,d){return d&&!this.debug?null:(typeof o[0]=="string"&&(o[0]="".concat(s).concat(this.prefix," ").concat(o[0])),this.logger[a](o))}},{key:"create",value:function(o){return new i(this.logger,Ya.default({},{prefix:"".concat(this.prefix,":").concat(o,":")},this.options))}}]),i})(),Ec=new Am,ef=(function(){function i(){yc.default(this,i),this.observers={}}return bc.default(i,[{key:"on",value:function(o,a){var s=this;return o.split(" ").forEach((function(d){s.observers[d]=s.observers[d]||[],s.observers[d].push(a)})),this}},{key:"off",value:function(o,a){this.observers[o]&&(a?this.observers[o]=this.observers[o].filter((function(s){return s!==a})):delete this.observers[o])}},{key:"emit",value:function(o){for(var a=arguments.length,s=new Array(a>1?a-1:0),d=1;d<a;d++)s[d-1]=arguments[d];if(this.observers[o]){var g=[].concat(this.observers[o]);g.forEach((function(w){w.apply(void 0,s)}))}if(this.observers["*"]){var y=[].concat(this.observers["*"]);y.forEach((function(w){w.apply(w,[o].concat(s))}))}}}]),i})();function Hd(){var i,o,a=new Promise((function(s,d){i=s,o=d}));return a.resolve=i,a.reject=o,a}function O0(i){return i==null?"":""+i}function _m(i,o,a){i.forEach((function(s){o[s]&&(a[s]=o[s])}))}function Xh(i,o,a){function s(w){return w&&w.indexOf("###")>-1?w.replace(/###/g,"."):w}function d(){return!i||typeof i=="string"}for(var g=typeof o!="string"?[].concat(o):o.split(".");g.length>1;){if(d())return{};var y=s(g.shift());!i[y]&&a&&(i[y]=new a),i=Object.prototype.hasOwnProperty.call(i,y)?i[y]:{}}return d()?{}:{obj:i,k:s(g.shift())}}function T0(i,o,a){var s=Xh(i,o,Object);s.obj[s.k]=a}function Ip(i,o){var a=Xh(i,o),s=a.obj,d=a.k;if(s)return s[d]}function B0(i,o,a){var s=Ip(i,a);return s!==void 0?s:Ip(o,a)}function F0(i,o,a){for(var s in o)s!=="__proto__"&&s!=="constructor"&&(s in i?typeof i[s]=="string"||i[s]instanceof String||typeof o[s]=="string"||o[s]instanceof String?a&&(i[s]=o[s]):F0(i[s],o[s],a):i[s]=o[s]);return i}function sd(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Om={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Tm(i){return typeof i=="string"?i.replace(/[&<>"'\/]/g,(function(o){return Om[o]})):i}var u=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function l(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(i){if(i[o])return i[o];for(var s=o.split(a),d=i,g=0;g<s.length;++g){if(!d||typeof d[s[g]]=="string"&&g+1<s.length)return;if(d[s[g]]===void 0){for(var y=2,w=s.slice(g,g+y).join(a),D=d[w];D===void 0&&s.length>g+y;)y++,D=d[w=s.slice(g,g+y).join(a)];if(D===void 0)return;if(typeof D=="string")return D;if(w&&typeof D[w]=="string")return D[w];var I=s.slice(g+y).join(a);return I?l(D,I,a):void 0}d=d[s[g]]}return d}}var p=(function(i){function o(a){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return yc.default(this,o),s=zd.default(this,kp.default(o).call(this)),u&&ef.call(ud.default(s)),s.data=a||{},s.options=d,s.options.keySeparator===void 0&&(s.options.keySeparator="."),s.options.ignoreJSONStructure===void 0&&(s.options.ignoreJSONStructure=!0),s}return Np.default(o,i),bc.default(o,[{key:"addNamespaces",value:function(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}},{key:"removeNamespaces",value:function(a){var s=this.options.ns.indexOf(a);s>-1&&this.options.ns.splice(s,1)}},{key:"getResource",value:function(a,s,d){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator,w=g.ignoreJSONStructure!==void 0?g.ignoreJSONStructure:this.options.ignoreJSONStructure,D=[a,s];d&&typeof d!="string"&&(D=D.concat(d)),d&&typeof d=="string"&&(D=D.concat(y?d.split(y):d)),a.indexOf(".")>-1&&(D=a.split("."));var I=Ip(this.data,D);return I||!w||typeof d!="string"?I:l(this.data&&this.data[a]&&this.data[a][s],d,y)}},{key:"addResource",value:function(a,s,d,g){var y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},w=this.options.keySeparator;w===void 0&&(w=".");var D=[a,s];d&&(D=D.concat(w?d.split(w):d)),a.indexOf(".")>-1&&(g=s,s=(D=a.split("."))[1]),this.addNamespaces(s),T0(this.data,D,g),y.silent||this.emit("added",a,s,d,g)}},{key:"addResources",value:function(a,s,d){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var y in d)typeof d[y]!="string"&&Object.prototype.toString.apply(d[y])!=="[object Array]"||this.addResource(a,s,y,d[y],{silent:!0});g.silent||this.emit("added",a,s,d)}},{key:"addResourceBundle",value:function(a,s,d,g,y){var w=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},D=[a,s];a.indexOf(".")>-1&&(g=d,d=s,s=(D=a.split("."))[1]),this.addNamespaces(s);var I=Ip(this.data,D)||{};g?F0(I,d,y):I=Ya.default({},I,d),T0(this.data,D,I),w.silent||this.emit("added",a,s,d)}},{key:"removeResourceBundle",value:function(a,s){this.hasResourceBundle(a,s)&&delete this.data[a][s],this.removeNamespaces(s),this.emit("removed",a,s)}},{key:"hasResourceBundle",value:function(a,s){return this.getResource(a,s)!==void 0}},{key:"getResourceBundle",value:function(a,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ya.default({},{},this.getResource(a,s)):this.getResource(a,s)}},{key:"getDataByLanguage",value:function(a){return this.data[a]}},{key:"toJSON",value:function(){return this.data}}]),o})(ef),E={processors:{},addPostProcessor:function(i){this.processors[i.name]=i},handle:function(i,o,a,s,d){var g=this;return i.forEach((function(y){g.processors[y]&&(o=g.processors[y].process(o,a,s,d))})),o}},A={},$=(function(i){function o(a){var s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return yc.default(this,o),s=zd.default(this,kp.default(o).call(this)),u&&ef.call(ud.default(s)),_m(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,ud.default(s)),s.options=d,s.options.keySeparator===void 0&&(s.options.keySeparator="."),s.logger=Ec.create("translator"),s}return Np.default(o,i),bc.default(o,[{key:"changeLanguage",value:function(a){a&&(this.language=a)}},{key:"exists",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(a==null)return!1;var d=this.resolve(a,s);return d&&d.res!==void 0}},{key:"extractFromKey",value:function(a,s){var d=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");var g=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,y=s.ns||this.options.defaultNS;if(d&&a.indexOf(d)>-1){var w=a.match(this.interpolator.nestingRegexp);if(w&&w.length>0)return{key:a,namespaces:y};var D=a.split(d);(d!==g||d===g&&this.options.ns.indexOf(D[0])>-1)&&(y=D.shift()),a=D.join(g)}return typeof y=="string"&&(y=[y]),{key:a,namespaces:y}}},{key:"translate",value:function(a,s,d){var g=this;if($d.default(s)!=="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),s||(s={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);var y=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,w=this.extractFromKey(a[a.length-1],s),D=w.key,I=w.namespaces,j=I[I.length-1],U=s.lng||this.language,Z=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(U&&U.toLowerCase()==="cimode"){if(Z){var ee=s.nsSeparator||this.options.nsSeparator;return j+ee+D}return D}var ie=this.resolve(a,s),fe=ie&&ie.res,De=ie&&ie.usedKey||D,Se=ie&&ie.exactUsedKey||D,Y=Object.prototype.toString.apply(fe),Re=["[object Number]","[object Function]","[object RegExp]"],lt=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,St=!this.i18nFormat||this.i18nFormat.handleAsObject,Un=typeof fe!="string"&&typeof fe!="boolean"&&typeof fe!="number";if(St&&fe&&Un&&Re.indexOf(Y)<0&&(typeof lt!="string"||Y!=="[object Array]")){if(!s.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(De,fe,Ya.default({},s,{ns:I})):"key '".concat(D," (").concat(this.language,")' returned an object instead of string.");if(y){var yn=Y==="[object Array]",Fr=yn?[]:{},na=yn?Se:De;for(var Do in fe)if(Object.prototype.hasOwnProperty.call(fe,Do)){var vo="".concat(na).concat(y).concat(Do);Fr[Do]=this.translate(vo,Ya.default({},s,{joinArrays:!1,ns:I})),Fr[Do]===vo&&(Fr[Do]=fe[Do])}fe=Fr}}else if(St&&typeof lt=="string"&&Y==="[object Array]")(fe=fe.join(lt))&&(fe=this.extendTranslation(fe,a,s,d));else{var to=!1,ni=!1,ra=s.count!==void 0&&typeof s.count!="string",ro=o.hasDefaultValue(s),Ws=ra?this.pluralResolver.getSuffix(U,s.count):"",El=s["defaultValue".concat(Ws)]||s.defaultValue;!this.isValidLookup(fe)&&ro&&(to=!0,fe=El),this.isValidLookup(fe)||(ni=!0,fe=D);var kf=s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,tf=kf&&ni?void 0:fe,wl=ro&&El!==fe&&this.options.updateMissing;if(ni||to||wl){if(this.logger.log(wl?"updateKey":"missingKey",U,j,D,wl?El:fe),y){var Nf=this.resolve(D,Ya.default({},s,{keySeparator:!1}));Nf&&Nf.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 nf=[],If=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&If&&If[0])for(var wc=0;wc<If.length;wc++)nf.push(If[wc]);else this.options.saveMissingTo==="all"?nf=this.languageUtils.toResolveHierarchy(s.lng||this.language):nf.push(s.lng||this.language);var rf=function(xc,Dc,Yh){g.options.missingKeyHandler?g.options.missingKeyHandler(xc,j,Dc,wl?Yh:tf,wl,s):g.backendConnector&&g.backendConnector.saveMissing&&g.backendConnector.saveMissing(xc,j,Dc,wl?Yh:tf,wl,s),g.emit("missingKey",xc,j,Dc,fe)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ra?nf.forEach((function(xc){g.pluralResolver.getSuffixes(xc).forEach((function(Dc){rf([xc],D+Dc,s["defaultValue".concat(Dc)]||El)}))})):rf(nf,D,El))}fe=this.extendTranslation(fe,a,s,ie,d),ni&&fe===D&&this.options.appendNamespaceToMissingKey&&(fe="".concat(j,":").concat(D)),(ni||to)&&this.options.parseMissingKeyHandler&&(fe=this.options.parseMissingKeyHandler(fe))}return fe}},{key:"extendTranslation",value:function(a,s,d,g,y){var w=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,d,g.usedLng,g.usedNS,g.usedKey,{resolved:g});else if(!d.skipInterpolation){d.interpolation&&this.interpolator.init(Ya.default({},d,{interpolation:Ya.default({},this.options.interpolation,d.interpolation)}));var D,I=d.interpolation&&d.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(I){var j=a.match(this.interpolator.nestingRegexp);D=j&&j.length}var U=d.replace&&typeof d.replace!="string"?d.replace:d;if(this.options.interpolation.defaultVariables&&(U=Ya.default({},this.options.interpolation.defaultVariables,U)),a=this.interpolator.interpolate(a,U,d.lng||this.language,d),I){var Z=a.match(this.interpolator.nestingRegexp);D<(Z&&Z.length)&&(d.nest=!1)}d.nest!==!1&&(a=this.interpolator.nest(a,(function(){for(var fe=arguments.length,De=new Array(fe),Se=0;Se<fe;Se++)De[Se]=arguments[Se];return y&&y[0]===De[0]&&!d.context?(w.logger.warn("It seems you are nesting recursively key: ".concat(De[0]," in key: ").concat(s[0])),null):w.translate.apply(w,De.concat([s]))}),d)),d.interpolation&&this.interpolator.reset()}var ee=d.postProcess||this.options.postProcess,ie=typeof ee=="string"?[ee]:ee;return a!=null&&ie&&ie.length&&d.applyPostProcessor!==!1&&(a=E.handle(ie,a,s,this.options&&this.options.postProcessPassResolved?Ya.default({i18nResolved:g},d):d,this)),a}},{key:"resolve",value:function(a){var s,d,g,y,w,D=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="string"&&(a=[a]),a.forEach((function(j){if(!D.isValidLookup(s)){var U=D.extractFromKey(j,I),Z=U.key;d=Z;var ee=U.namespaces;D.options.fallbackNS&&(ee=ee.concat(D.options.fallbackNS));var ie=I.count!==void 0&&typeof I.count!="string",fe=I.context!==void 0&&(typeof I.context=="string"||typeof I.context=="number")&&I.context!=="",De=I.lngs?I.lngs:D.languageUtils.toResolveHierarchy(I.lng||D.language,I.fallbackLng);ee.forEach((function(Se){D.isValidLookup(s)||(w=Se,!A["".concat(De[0],"-").concat(Se)]&&D.utils&&D.utils.hasLoadedNamespace&&!D.utils.hasLoadedNamespace(w)&&(A["".concat(De[0],"-").concat(Se)]=!0,D.logger.warn('key "'.concat(d,'" for languages "').concat(De.join(", "),`" won't get resolved as namespace "`).concat(w,'" 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!!!")),De.forEach((function(Y){if(!D.isValidLookup(s)){y=Y;var Re,lt,St=Z,Un=[St];for(D.i18nFormat&&D.i18nFormat.addLookupKeys?D.i18nFormat.addLookupKeys(Un,Z,Y,Se,I):(ie&&(Re=D.pluralResolver.getSuffix(Y,I.count)),ie&&fe&&Un.push(St+Re),fe&&Un.push(St+="".concat(D.options.contextSeparator).concat(I.context)),ie&&Un.push(St+=Re));lt=Un.pop();)D.isValidLookup(s)||(g=lt,s=D.getResource(Y,Se,lt,I))}})))}))}})),{res:s,usedKey:d,exactUsedKey:g,usedLng:y,usedNS:w}}},{key:"isValidLookup",value:function(a){return!(a===void 0||!this.options.returnNull&&a===null||!this.options.returnEmptyString&&a==="")}},{key:"getResource",value:function(a,s,d){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,s,d,g):this.resourceStore.getResource(a,s,d,g)}}],[{key:"hasDefaultValue",value:function(a){var s="defaultValue";for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d)&&s===d.substring(0,s.length)&&a[d]!==void 0)return!0;return!1}}]),o})(ef);function K(i){return i.charAt(0).toUpperCase()+i.slice(1)}var Q=(function(){function i(o){yc.default(this,i),this.options=o,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ec.create("languageUtils")}return bc.default(i,[{key:"getScriptPartFromCode",value:function(o){if(!o||o.indexOf("-")<0)return null;var a=o.split("-");return a.length===2?null:(a.pop(),a[a.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(a.join("-")))}},{key:"getLanguagePartFromCode",value:function(o){if(!o||o.indexOf("-")<0)return o;var a=o.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(o){if(typeof o=="string"&&o.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],s=o.split("-");return this.options.lowerCaseLng?s=s.map((function(d){return d.toLowerCase()})):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),a.indexOf(s[1].toLowerCase())>-1&&(s[1]=K(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),a.indexOf(s[1].toLowerCase())>-1&&(s[1]=K(s[1].toLowerCase())),a.indexOf(s[2].toLowerCase())>-1&&(s[2]=K(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}},{key:"isWhitelisted",value:function(o){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(o)}},{key:"isSupportedCode",value:function(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}},{key:"getBestMatchFromCodes",value:function(o){var a,s=this;return o?(o.forEach((function(d){if(!a){var g=s.formatLanguageCode(d);s.options.supportedLngs&&!s.isSupportedCode(g)||(a=g)}})),!a&&this.options.supportedLngs&&o.forEach((function(d){if(!a){var g=s.getLanguagePartFromCode(d);if(s.isSupportedCode(g))return a=g;a=s.options.supportedLngs.find((function(y){if(y.indexOf(g)===0)return y}))}})),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a):null}},{key:"getFallbackCodes",value:function(o,a){if(!o)return[];if(typeof o=="function"&&(o=o(a)),typeof o=="string"&&(o=[o]),Object.prototype.toString.apply(o)==="[object Array]")return o;if(!a)return o.default||[];var s=o[a];return s||(s=o[this.getScriptPartFromCode(a)]),s||(s=o[this.formatLanguageCode(a)]),s||(s=o[this.getLanguagePartFromCode(a)]),s||(s=o.default),s||[]}},{key:"toResolveHierarchy",value:function(o,a){var s=this,d=this.getFallbackCodes(a||this.options.fallbackLng||[],o),g=[],y=function(w){w&&(s.isSupportedCode(w)?g.push(w):s.logger.warn("rejecting language code not found in supportedLngs: ".concat(w)))};return typeof o=="string"&&o.indexOf("-")>-1?(this.options.load!=="languageOnly"&&y(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&y(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&y(this.getLanguagePartFromCode(o))):typeof o=="string"&&y(this.formatLanguageCode(o)),d.forEach((function(w){g.indexOf(w)<0&&y(s.formatLanguageCode(w))})),g}}]),i})(),ke=[{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}],wt={1:function(i){return+(i>1)},2:function(i){return+(i!=1)},3:function(i){return 0},4:function(i){return i%10==1&&i%100!=11?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2},5:function(i){return i==0?0:i==1?1:i==2?2:i%100>=3&&i%100<=10?3:i%100>=11?4:5},6:function(i){return i==1?0:i>=2&&i<=4?1:2},7:function(i){return i==1?0:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?1:2},8:function(i){return i==1?0:i==2?1:i!=8&&i!=11?2:3},9:function(i){return+(i>=2)},10:function(i){return i==1?0:i==2?1:i<7?2:i<11?3:4},11:function(i){return i==1||i==11?0:i==2||i==12?1:i>2&&i<20?2:3},12:function(i){return+(i%10!=1||i%100==11)},13:function(i){return+(i!==0)},14:function(i){return i==1?0:i==2?1:i==3?2:3},15:function(i){return i%10==1&&i%100!=11?0:i%10>=2&&(i%100<10||i%100>=20)?1:2},16:function(i){return i%10==1&&i%100!=11?0:i!==0?1:2},17:function(i){return i==1||i%10==1&&i%100!=11?0:1},18:function(i){return i==0?0:i==1?1:2},19:function(i){return i==1?0:i==0||i%100>1&&i%100<11?1:i%100>10&&i%100<20?2:3},20:function(i){return i==1?0:i==0||i%100>0&&i%100<20?1:2},21:function(i){return i%100==1?1:i%100==2?2:i%100==3||i%100==4?3:0},22:function(i){return i==1?0:i==2?1:(i<0||i>10)&&i%10==0?2:3}};function Je(){var i={};return ke.forEach((function(o){o.lngs.forEach((function(a){i[a]={numbers:o.nr,plurals:wt[o.fc]}}))})),i}var Ht=(function(){function i(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};yc.default(this,i),this.languageUtils=o,this.options=a,this.logger=Ec.create("pluralResolver"),this.rules=Je()}return bc.default(i,[{key:"addRule",value:function(o,a){this.rules[o]=a}},{key:"getRule",value:function(o){return this.rules[o]||this.rules[this.languageUtils.getLanguagePartFromCode(o)]}},{key:"needsPlural",value:function(o){var a=this.getRule(o);return a&&a.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(o,a){return this.getSuffixes(o).map((function(s){return a+s}))}},{key:"getSuffixes",value:function(o){var a=this,s=this.getRule(o);return s?s.numbers.map((function(d){return a.getSuffix(o,d)})):[]}},{key:"getSuffix",value:function(o,a){var s=this,d=this.getRule(o);if(d){var g=d.noAbs?d.plurals(a):d.plurals(Math.abs(a)),y=d.numbers[g];this.options.simplifyPluralSuffix&&d.numbers.length===2&&d.numbers[0]===1&&(y===2?y="plural":y===1&&(y=""));var w=function(){return s.options.prepend&&y.toString()?s.options.prepend+y.toString():y.toString()};return this.options.compatibilityJSON==="v1"?y===1?"":typeof y=="number"?"_plural_".concat(y.toString()):w():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&d.numbers.length===2&&d.numbers[0]===1?w():this.options.prepend&&g.toString()?this.options.prepend+g.toString():g.toString()}return this.logger.warn("no plural rule found for: ".concat(o)),""}}]),i})(),wn=(function(){function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yc.default(this,i),this.logger=Ec.create("interpolator"),this.options=o,this.format=o.interpolation&&o.interpolation.format||function(a){return a},this.init(o)}return bc.default(i,[{key:"init",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o.interpolation||(o.interpolation={escapeValue:!0});var a=o.interpolation;this.escape=a.escape!==void 0?a.escape:Tm,this.escapeValue=a.escapeValue===void 0||a.escapeValue,this.useRawValueToEscape=a.useRawValueToEscape!==void 0&&a.useRawValueToEscape,this.prefix=a.prefix?sd(a.prefix):a.prefixEscaped||"{{",this.suffix=a.suffix?sd(a.suffix):a.suffixEscaped||"}}",this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||",",this.unescapePrefix=a.unescapeSuffix?"":a.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":a.unescapeSuffix||"",this.nestingPrefix=a.nestingPrefix?sd(a.nestingPrefix):a.nestingPrefixEscaped||sd("$t("),this.nestingSuffix=a.nestingSuffix?sd(a.nestingSuffix):a.nestingSuffixEscaped||sd(")"),this.nestingOptionsSeparator=a.nestingOptionsSeparator?a.nestingOptionsSeparator:a.nestingOptionsSeparator||",",this.maxReplaces=a.maxReplaces?a.maxReplaces:1e3,this.alwaysFormat=a.alwaysFormat!==void 0&&a.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var o="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(o,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var s="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(s,"g")}},{key:"interpolate",value:function(o,a,s,d){var g,y,w,D=this,I=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function j(ie){return ie.replace(/\$/g,"$$$$")}var U=function(ie){if(ie.indexOf(D.formatSeparator)<0){var fe=B0(a,I,ie);return D.alwaysFormat?D.format(fe,void 0,s,Ya.default({},d,a,{interpolationkey:ie})):fe}var De=ie.split(D.formatSeparator),Se=De.shift().trim(),Y=De.join(D.formatSeparator).trim();return D.format(B0(a,I,Se),Y,s,Ya.default({},d,a,{interpolationkey:Se}))};this.resetRegExp();var Z=d&&d.missingInterpolationHandler||this.options.missingInterpolationHandler,ee=d&&d.interpolation&&d.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(ie){return j(ie)}},{regex:this.regexp,safeValue:function(ie){return D.escapeValue?j(D.escape(ie)):j(ie)}}].forEach((function(ie){for(w=0;g=ie.regex.exec(o);){if((y=U(g[1].trim()))===void 0)if(typeof Z=="function"){var fe=Z(o,g,d);y=typeof fe=="string"?fe:""}else{if(ee){y=g[0];continue}D.logger.warn("missed to pass in variable ".concat(g[1]," for interpolating ").concat(o)),y=""}else typeof y=="string"||D.useRawValueToEscape||(y=O0(y));var De=ie.safeValue(y);if(o=o.replace(g[0],De),ee?(ie.regex.lastIndex+=De.length,ie.regex.lastIndex-=g[0].length):ie.regex.lastIndex=0,++w>=D.maxReplaces)break}})),o}},{key:"nest",value:function(o,a){var s,d,g=this,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=Ya.default({},y);function D(Z,ee){var ie=this.nestingOptionsSeparator;if(Z.indexOf(ie)<0)return Z;var fe=Z.split(new RegExp("".concat(ie,"[ ]*{"))),De="{".concat(fe[1]);Z=fe[0],De=(De=this.interpolate(De,w)).replace(/'/g,'"');try{w=JSON.parse(De),ee&&(w=Ya.default({},ee,w))}catch(Se){return this.logger.warn("failed parsing options string in nesting for key ".concat(Z),Se),"".concat(Z).concat(ie).concat(De)}return delete w.defaultValue,Z}for(w.applyPostProcessor=!1,delete w.defaultValue;s=this.nestingRegexp.exec(o);){var I=[],j=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var U=s[1].split(this.formatSeparator).map((function(Z){return Z.trim()}));s[1]=U.shift(),I=U,j=!0}if((d=a(D.call(this,s[1].trim(),w),w))&&s[0]===o&&typeof d!="string")return d;typeof d!="string"&&(d=O0(d)),d||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(o)),d=""),j&&(d=I.reduce((function(Z,ee){return g.format(Z,ee,y.lng,Ya.default({},y,{interpolationkey:s[1].trim()}))}),d.trim())),o=o.replace(s[0],d),this.regexp.lastIndex=0}return o}}]),i})(),on=(function(i){function o(a,s,d){var g,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return yc.default(this,o),g=zd.default(this,kp.default(o).call(this)),u&&ef.call(ud.default(g)),g.backend=a,g.store=s,g.services=d,g.languageUtils=d.languageUtils,g.options=y,g.logger=Ec.create("backendConnector"),g.state={},g.queue=[],g.backend&&g.backend.init&&g.backend.init(d,y.backend,y),g}return Np.default(o,i),bc.default(o,[{key:"queueLoad",value:function(a,s,d,g){var y=this,w=[],D=[],I=[],j=[];return a.forEach((function(U){var Z=!0;s.forEach((function(ee){var ie="".concat(U,"|").concat(ee);!d.reload&&y.store.hasResourceBundle(U,ee)?y.state[ie]=2:y.state[ie]<0||(y.state[ie]===1?D.indexOf(ie)<0&&D.push(ie):(y.state[ie]=1,Z=!1,D.indexOf(ie)<0&&D.push(ie),w.indexOf(ie)<0&&w.push(ie),j.indexOf(ee)<0&&j.push(ee)))})),Z||I.push(U)})),(w.length||D.length)&&this.queue.push({pending:D,loaded:{},errors:[],callback:g}),{toLoad:w,pending:D,toLoadLanguages:I,toLoadNamespaces:j}}},{key:"loaded",value:function(a,s,d){var g=a.split("|"),y=g[0],w=g[1];s&&this.emit("failedLoading",y,w,s),d&&this.store.addResourceBundle(y,w,d),this.state[a]=s?-1:2;var D={};this.queue.forEach((function(I){(function(j,U,Z,ee){var ie=Xh(j,U,Object),fe=ie.obj,De=ie.k;fe[De]=fe[De]||[],ee&&(fe[De]=fe[De].concat(Z)),ee||fe[De].push(Z)})(I.loaded,[y],w),(function(j,U){for(var Z=j.indexOf(U);Z!==-1;)j.splice(Z,1),Z=j.indexOf(U)})(I.pending,a),s&&I.errors.push(s),I.pending.length!==0||I.done||(Object.keys(I.loaded).forEach((function(j){D[j]||(D[j]=[]),I.loaded[j].length&&I.loaded[j].forEach((function(U){D[j].indexOf(U)<0&&D[j].push(U)}))})),I.done=!0,I.errors.length?I.callback(I.errors):I.callback())})),this.emit("loaded",D),this.queue=this.queue.filter((function(I){return!I.done}))}},{key:"read",value:function(a,s,d){var g=this,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,D=arguments.length>5?arguments[5]:void 0;return a.length?this.backend[d](a,s,(function(I,j){I&&j&&y<5?setTimeout((function(){g.read.call(g,a,s,d,y+1,2*w,D)}),w):D(I,j)})):D(null,{})}},{key:"prepareLoading",value:function(a,s){var d=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},y=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."),y&&y();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof s=="string"&&(s=[s]);var w=this.queueLoad(a,s,g,y);if(!w.toLoad.length)return w.pending.length||y(),null;w.toLoad.forEach((function(D){d.loadOne(D)}))}},{key:"load",value:function(a,s,d){this.prepareLoading(a,s,{},d)}},{key:"reload",value:function(a,s,d){this.prepareLoading(a,s,{reload:!0},d)}},{key:"loadOne",value:function(a){var s=this,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",g=a.split("|"),y=g[0],w=g[1];this.read(y,w,"read",void 0,void 0,(function(D,I){D&&s.logger.warn("".concat(d,"loading namespace ").concat(w," for language ").concat(y," failed"),D),!D&&I&&s.logger.log("".concat(d,"loaded namespace ").concat(w," for language ").concat(y),I),s.loaded(a,D,I)}))}},{key:"saveMissing",value:function(a,s,d,g,y){var w=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)?this.logger.warn('did not save key "'.concat(d,'" as the namespace "').concat(s,'" 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!!!"):d!=null&&d!==""&&(this.backend&&this.backend.create&&this.backend.create(a,s,d,g,null,Ya.default({},w,{isUpdate:y})),a&&a[0]&&this.store.addResource(a[0],s,d,g))}}]),o})(ef);function Jn(){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(i){var o={};if($d.default(i[1])==="object"&&(o=i[1]),typeof i[1]=="string"&&(o.defaultValue=i[1]),typeof i[2]=="string"&&(o.tDescription=i[2]),$d.default(i[2])==="object"||$d.default(i[3])==="object"){var a=i[3]||i[2];Object.keys(a).forEach((function(s){o[s]=a[s]}))}return o},interpolation:{escapeValue:!0,format:function(i,o,a,s){return i},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function hr(i){return typeof i.ns=="string"&&(i.ns=[i.ns]),typeof i.fallbackLng=="string"&&(i.fallbackLng=[i.fallbackLng]),typeof i.fallbackNS=="string"&&(i.fallbackNS=[i.fallbackNS]),i.whitelist&&(i.whitelist&&i.whitelist.indexOf("cimode")<0&&(i.whitelist=i.whitelist.concat(["cimode"])),i.supportedLngs=i.whitelist),i.nonExplicitWhitelist&&(i.nonExplicitSupportedLngs=i.nonExplicitWhitelist),i.supportedLngs&&i.supportedLngs.indexOf("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i}function xr(){}var Cr=(function(i){function o(){var a,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;if(yc.default(this,o),a=zd.default(this,kp.default(o).call(this)),u&&ef.call(ud.default(a)),a.options=hr(s),a.services={},a.logger=Ec,a.modules={external:[]},d&&!a.isInitialized&&!s.isClone){if(!a.options.initImmediate)return a.init(s,d),zd.default(a,ud.default(a));setTimeout((function(){a.init(s,d)}),0)}return a}return Np.default(o,i),bc.default(o,[{key:"init",value:function(){var a=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1?arguments[1]:void 0;function g(ee){return ee?typeof ee=="function"?new ee:ee:null}if(typeof s=="function"&&(d=s,s={}),s.whitelist&&!s.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),s.nonExplicitWhitelist&&!s.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=Ya.default({},Jn(),this.options,hr(s)),this.format=this.options.interpolation.format,d||(d=xr),!this.options.isClone){this.modules.logger?Ec.init(g(this.modules.logger),this.options):Ec.init(null,this.options);var y=new Q(this.options);this.store=new p(this.options.resources,this.options);var w=this.services;w.logger=Ec,w.resourceStore=this.store,w.languageUtils=y,w.pluralResolver=new Ht(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),w.interpolator=new wn(this.options),w.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},w.backendConnector=new on(g(this.modules.backend),w.resourceStore,w,this.options),w.backendConnector.on("*",(function(ee){for(var ie=arguments.length,fe=new Array(ie>1?ie-1:0),De=1;De<ie;De++)fe[De-1]=arguments[De];a.emit.apply(a,[ee].concat(fe))})),this.modules.languageDetector&&(w.languageDetector=g(this.modules.languageDetector),w.languageDetector.init(w,this.options.detection,this.options)),this.modules.i18nFormat&&(w.i18nFormat=g(this.modules.i18nFormat),w.i18nFormat.init&&w.i18nFormat.init(this)),this.translator=new $(this.services,this.options),this.translator.on("*",(function(ee){for(var ie=arguments.length,fe=new Array(ie>1?ie-1:0),De=1;De<ie;De++)fe[De-1]=arguments[De];a.emit.apply(a,[ee].concat(fe))})),this.modules.external.forEach((function(ee){ee.init&&ee.init(a)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var D=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);D.length>0&&D[0]!=="dev"&&(this.options.lng=D[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var I=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];I.forEach((function(ee){a[ee]=function(){var ie;return(ie=a.store)[ee].apply(ie,arguments)}}));var j=["addResource","addResources","addResourceBundle","removeResourceBundle"];j.forEach((function(ee){a[ee]=function(){var ie;return(ie=a.store)[ee].apply(ie,arguments),a}}));var U=Hd(),Z=function(){var ee=function(ie,fe){a.isInitialized&&!a.initializedStoreOnce&&a.logger.warn("init: i18next is already initialized. You should call init just once!"),a.isInitialized=!0,a.options.isClone||a.logger.log("initialized",a.options),a.emit("initialized",a.options),U.resolve(fe),d(ie,fe)};if(a.languages&&a.options.compatibilityAPI!=="v1"&&!a.isInitialized)return ee(null,a.t.bind(a));a.changeLanguage(a.options.lng,ee)};return this.options.resources||!this.options.initImmediate?Z():setTimeout(Z,0),U}},{key:"loadResources",value:function(a){var s=this,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xr,g=d,y=typeof a=="string"?a:this.language;if(typeof a=="function"&&(g=a),!this.options.resources||this.options.partialBundledLanguages){if(y&&y.toLowerCase()==="cimode")return g();var w=[],D=function(j){j&&s.services.languageUtils.toResolveHierarchy(j).forEach((function(U){w.indexOf(U)<0&&w.push(U)}))};if(y)D(y);else{var I=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);I.forEach((function(j){return D(j)}))}this.options.preload&&this.options.preload.forEach((function(j){return D(j)})),this.services.backendConnector.load(w,this.options.ns,g)}else g(null)}},{key:"reloadResources",value:function(a,s,d){var g=Hd();return a||(a=this.languages),s||(s=this.options.ns),d||(d=xr),this.services.backendConnector.reload(a,s,(function(y){g.resolve(),d(y)})),g}},{key:"use",value:function(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&E.addPostProcessor(a),a.type==="3rdParty"&&this.modules.external.push(a),this}},{key:"changeLanguage",value:function(a,s){var d=this;this.isLanguageChangingTo=a;var g=Hd();this.emit("languageChanging",a);var y=function(w){a||w||!d.services.languageDetector||(w=[]);var D=typeof w=="string"?w:d.services.languageUtils.getBestMatchFromCodes(w);D&&(d.language||(d.language=D,d.languages=d.services.languageUtils.toResolveHierarchy(D)),d.translator.language||d.translator.changeLanguage(D),d.services.languageDetector&&d.services.languageDetector.cacheUserLanguage(D)),d.loadResources(D,(function(I){(function(j,U){U?(d.language=U,d.languages=d.services.languageUtils.toResolveHierarchy(U),d.translator.changeLanguage(U),d.isLanguageChangingTo=void 0,d.emit("languageChanged",U),d.logger.log("languageChanged",U)):d.isLanguageChangingTo=void 0,g.resolve((function(){return d.t.apply(d,arguments)})),s&&s(j,(function(){return d.t.apply(d,arguments)}))})(I,D)}))};return a||!this.services.languageDetector||this.services.languageDetector.async?!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(y):y(a):y(this.services.languageDetector.detect()),g}},{key:"getFixedT",value:function(a,s,d){var g=this,y=function w(D,I){var j;if($d.default(I)!=="object"){for(var U=arguments.length,Z=new Array(U>2?U-2:0),ee=2;ee<U;ee++)Z[ee-2]=arguments[ee];j=g.options.overloadTranslationOptionHandler([D,I].concat(Z))}else j=Ya.default({},I);j.lng=j.lng||w.lng,j.lngs=j.lngs||w.lngs,j.ns=j.ns||w.ns;var ie=g.options.keySeparator||".",fe=d?"".concat(d).concat(ie).concat(D):D;return g.t(fe,j)};return typeof a=="string"?y.lng=a:y.lngs=a,y.ns=s,y.keyPrefix=d,y}},{key:"t",value:function(){var a;return this.translator&&(a=this.translator).translate.apply(a,arguments)}},{key:"exists",value:function(){var a;return this.translator&&(a=this.translator).exists.apply(a,arguments)}},{key:"setDefaultNamespace",value:function(a){this.options.defaultNS=a}},{key:"hasLoadedNamespace",value:function(a){var s=this,d=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 g=this.languages[0],y=!!this.options&&this.options.fallbackLng,w=this.languages[this.languages.length-1];if(g.toLowerCase()==="cimode")return!0;var D=function(j,U){var Z=s.services.backendConnector.state["".concat(j,"|").concat(U)];return Z===-1||Z===2};if(d.precheck){var I=d.precheck(this,D);if(I!==void 0)return I}return!!this.hasResourceBundle(g,a)||!this.services.backendConnector.backend||!(!D(g,a)||y&&!D(w,a))}},{key:"loadNamespaces",value:function(a,s){var d=this,g=Hd();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach((function(y){d.options.ns.indexOf(y)<0&&d.options.ns.push(y)})),this.loadResources((function(y){g.resolve(),s&&s(y)})),g):(s&&s(),Promise.resolve())}},{key:"loadLanguages",value:function(a,s){var d=Hd();typeof a=="string"&&(a=[a]);var g=this.options.preload||[],y=a.filter((function(w){return g.indexOf(w)<0}));return y.length?(this.options.preload=g.concat(y),this.loadResources((function(w){d.resolve(),s&&s(w)})),d):(s&&s(),Promise.resolve())}},{key:"dir",value:function(a){return a||(a=this.languages&&this.languages.length>0?this.languages[0]:this.language),a?["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(a))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;return new o(a,s)}},{key:"cloneInstance",value:function(){var a=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xr,g=Ya.default({},this.options,s,{isClone:!0}),y=new o(g),w=["store","services","language"];return w.forEach((function(D){y[D]=a[D]})),y.services=Ya.default({},this.services),y.services.utils={hasLoadedNamespace:y.hasLoadedNamespace.bind(y)},y.translator=new $(y.services,y.options),y.translator.on("*",(function(D){for(var I=arguments.length,j=new Array(I>1?I-1:0),U=1;U<I;U++)j[U-1]=arguments[U];y.emit.apply(y,[D].concat(j))})),y.init(g,d),y.translator.options=y.options,y.translator.backendConnector.services.utils={hasLoadedNamespace:y.hasLoadedNamespace.bind(y)},y}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),o})(ef),vr=new Cr,mi="translation";vr.init({lng:"zh-CN",resources:{}});var Hi=vr.t.bind(vr);t.DomEditor=_t,t.ELEM_TO_HTML_CONF=tt,t.PARSE_ELEM_HTML_CONF=td,t.PARSE_STYLE_HTML_FN_LIST=dp,t.PRE_PARSE_HTML_CONF_LIST=fp,t.RENDER_ELEM_CONF=Ap,t.RENDER_STYLE_HANDLER_LIST=Ff,t.STYLE_TO_HTML_FN_LIST=_e,t.TEXT_TAGS=cp,t.Toolbar=D0,t.coreCreateEditor=function(i){var o=i.selector,a=o===void 0?"":o,s=i.config,d=s===void 0?{}:s,g=i.content,y=i.html,w=i.plugins,D=w===void 0?[]:w,I=mu((function(Se){var Y=Se,Re=Y.insertText,lt=Y.insertNode,St=Y.insertFragment,Un=Y.dangerouslyInsertHtml;return Y.insertText=function(yn){if(Y.getConfig().maxLength){var Fr=_t.getLeftLengthOfMaxLength(Y);Fr<=0||(Fr<yn.length?Re(yn.slice(0,Fr)):Re(yn))}else Re(yn)},Y.insertNode=function(yn){if(Y.getConfig().maxLength){var Fr=_t.getLeftLengthOfMaxLength(Y);Fr<=0||Fr<n.Node.string(yn).length||lt(yn)}else lt(yn)},Y.insertFragment=function(yn){if(Y.getConfig().maxLength)if(yn.length!==1)yn.forEach((function(na){Y.insertNode(na)}));else{var Fr=yn[0];if(_t.getLeftLengthOfMaxLength(Y)<n.Node.string(Fr).length)return;St(yn)}else St(yn)},Y.dangerouslyInsertHtml=function(yn,Fr){if(yn===void 0&&(yn=""),Fr===void 0&&(Fr=!1),yn)if(Y.getConfig().maxLength){var na=_t.getLeftLengthOfMaxLength(Y);if(!(na<=0)){var Do=document.createElement("div");Do.innerHTML=yn;var vo=Array.from(Do.childNodes).reduce((function(to,ni){var ra=ni.nodeType,ro=ni.nodeName;return ni?ra===pe.TEXT_NODE?to+(ni.textContent||""):ra===pe.ELEMENT_NODE?Sh.has(ro.toLowerCase())?to:to+(ni.textContent||""):to:to}),"");na<vo.length||Un(yn,Fr)}}else Un(yn,Fr)},Y})((function(Se){var Y=Se;return Y.on=function(Re,lt){var St=Tf(Y);if(St.on(Re,lt),Re==="destroyed"&&Rd(Y,lt),Re!=="destroyed"){var Un=function(){return St.off(Re,lt)};St.on("destroyed",Un),Rd(Y,Un)}},Y.once=function(Re,lt){Tf(Y).once(Re,lt)},Y.off=function(Re,lt){Tf(Y).off(Re,lt)},Y.emit=function(Re){for(var lt=[],St=1;St<arguments.length;St++)lt[St-1]=arguments[St];var Un=Tf(Y);Un.emit.apply(Un,vn([Re],ft(lt))),Re==="destroyed"&&(a0(Y).forEach((function(yn){return Un.off("destroyed",yn)})),tm(Y))},Y})((function(Se){var Y=Se;return Y.select=function(Re){n.Transforms.select(Y,Re)},Y.deselect=function(){var Re=Y.selection,lt=_t.findDocumentOrShadowRoot(Y).getSelection();lt&&lt.rangeCount>0&&lt.removeAllRanges(),Re&&n.Transforms.deselect(Se)},Y.move=function(Re,lt){lt===void 0&&(lt=!1),Re&&(Re<0||n.Transforms.move(Se,{distance:Re,unit:"character",reverse:lt}))},Y.moveReverse=function(Re){Y.move(Re,!0)},Y.restoreSelection=function(){var Re=Mc.get(Y);Re!=null&&(Y.focus(),n.Transforms.select(Y,Re))},Y.getSelectionPosition=function(){return tl(Y)},Y.getNodePosition=function(Re){return Il(Y,Re)},Y.isSelectedAll=function(){var Re=Y.selection;if(Re==null)return!1;var lt=ft(n.Range.edges(Re),2),St=lt[0],Un=lt[1],yn=ft(n.Editor.edges(Y,[]),2),Fr=yn[0],na=yn[1];return!(!n.Point.equals(St,Fr)||!n.Point.equals(Un,na))},Y.selectAll=function(){var Re=n.Editor.start(Y,[]),lt=n.Editor.end(Y,[]);n.Transforms.select(Y,{anchor:Re,focus:lt})},Y})(t0((function(Se){var Y=Se;return Y.getAllMenuKeys=function(){var Re=[];for(var lt in Pl)Re.push(lt);return Re},Y.getConfig=function(){var Re=Ic.get(Y);if(Re==null)throw new Error("Can not get editor config");return Re},Y.getMenuConfig=function(Re){var lt=Y.getConfig().MENU_CONF;return(lt===void 0?{}:lt)[Re]||{}},Y.alert=function(Re,lt){lt===void 0&&(lt="info");var St=Y.getConfig().customAlert;St&&St(Re,lt)},Y})((function(Se){var Y=Se;return Y.id="wangEditor-"+hl++,Y.isDestroyed=!1,Y.isFullScreen=!1,Y.focus=function(Re){if(_t.toDOMNode(Y,Y).focus({preventScroll:!0}),Qs.set(Y,!0),Re){var lt=n.Editor.end(Y,[]);n.Transforms.select(Y,lt)}else{var St=Mc.get(Y);St?n.Transforms.select(Y,St):n.Transforms.select(Y,n.Editor.start(Y,[]))}},Y.isFocused=function(){return!!Qs.get(Y)},Y.blur=function(){_t.toDOMNode(Y,Y).blur(),n.Transforms.deselect(Y),Qs.set(Y,!1)},Y.updateView=function(){_t.getTextarea(Y).changeViewState();var Re=_t.getToolbar(Y);Re&&Re.changeToolbarState();var lt=_t.getHoverbar(Y);lt&&lt.changeHoverbarState()},Y.destroy=function(){if(!Y.isDestroyed){var Re=_t.getTextarea(Y);Re.destroy(),Cs.delete(Y),us.delete(Re);var lt=_t.getToolbar(Y);lt&&(lt.destroy(),Pc.delete(Y),lc.delete(lt));var St=_t.getHoverbar(Y);St&&(St.destroy(),ql.delete(Y),kc.delete(St)),Y.isDestroyed=!0,Y.emit("destroyed")}},Y.scrollToElem=function(Re){if(!Y.getConfig().scroll){var lt="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return lt+=`
You has disabled editor scroll, please do this yourself`,void console.warn(lt)}var St=X.default("#"+Re);if(St.length!==0){var Un=St[0];if(!_t.hasDOMNode(Y,Un))return lt="Element (found by id is '"+Re+"') is not in editor DOM",lt+=`
通过 id '`+Re+"' 找到的 element 不在 editor DOM 之内",void console.error(lt,Un);var yn=_t.getTextarea(Y),Fr=yn.$textAreaContainer,na=yn.$scroll,Do=St.offset().top,vo=Fr.offset().top;na[0].scrollBy({top:Do-vo,behavior:"smooth"})}},Y.showProgressBar=function(Re){Re<1||_t.getTextarea(Y).changeProgress(Re)},Y.hidePanelOrModal=function(){var Re=Nc.get(Y);Re!=null&&Re.forEach((function(lt){return lt.hide()}))},Y.enable=function(){Y.getConfig().readOnly=!1,Y.updateView()},Y.disable=function(){Y.getConfig().readOnly=!0,Y.updateView()},Y.isDisabled=function(){return Y.getConfig().readOnly},Y.toDOMNode=function(Re){return _t.toDOMNode(Y,Re)},Y.fullScreen=function(){if(!Y.isFullScreen){var Re=null,lt=_t.getToolbar(Y);lt&&(Re=lt.$box);var St=_t.getTextarea(Y).$box.parent();if(Re&&Re.parent()[0]!==St[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);St.addClass("w-e-full-screen-container");var Un=St.css("z-index");St.attr("data-z-index",Un.toString()),Y.isFullScreen=!0,Y.emit("fullScreen")}},Y.unFullScreen=function(){if(Y.isFullScreen){var Re=_t.getTextarea(Y).$box.parent();setTimeout((function(){Re.removeClass("w-e-full-screen-container"),Y.isFullScreen=!1,Y.emit("unFullScreen")}),200)}},Y.getEditableContainer=function(){return _t.getTextarea(Y).$textAreaContainer[0]},Y})(Ch(n.createEditor()))))))));if(a&&(function(Se,Y){return Nd(Se,"data-w-e-textarea",Y)})(I,a))throw new Error("Repeated create editor by selector '"+a+"'");var j=(function(Se){Se===void 0&&(Se={});var Y=qe.default(bf),Re={},lt=Se.MENU_CONF,St=lt===void 0?{}:lt;return q.default(Y,(function(Un,yn){Re[yn]=it(it({},Un),St[yn]||{})})),delete Se.MENU_CONF,it({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:Re,hoverbarKeys:{},customAlert:function(Un,yn){window.alert(yn+`:
`+Un)}},Se)})(d);Ic.set(I,j);var U=j.hoverbarKeys,Z=U===void 0?{}:U;if(D.forEach((function(Se){I=Se(I)})),y!=null&&(I.children=Kc(I,y)),g&&g.length&&(I.children=g),I.children.length===0&&(I.children=[{type:"paragraph",children:[{text:""}]}]),_t.normalizeContent(I),a){var ee=new zh(a);Cs.set(I,ee),us.set(ee,I),ee.changeViewState(),yl((function(){var Se=ee.$scroll;Se!=null&&Se.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,Se)}));var ie=void 0;Object.keys(Z).length>0&&(ie=new cm,kc.set(ie,I),ql.set(I,ie)),I.on("change",(function(){I.hidePanelOrModal()})),I.on("scroll",(function(){I.hidePanelOrModal()}))}else I.children.forEach((function(Se,Y){return qh(Se,Y,I,I)}));var fe=j.onCreated,De=j.onDestroyed;return fe&&I.on("created",(function(){return fe(I)})),De&&I.on("destroyed",(function(){return De(I)})),yl((function(){return I.emit("created")})),I},t.coreCreateToolbar=function(i,o){if(i==null)throw new Error("Cannot create toolbar, because editor is null");var a=o.selector,s=o.config,d=s===void 0?{}:s;if((function(w,D){return Nd(w,"data-w-e-toolbar",D)})(i,a))throw new Error("Repeated create toolbar by selector '"+a+"'");var g=it({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),y=new D0(a,g);return lc.set(y,i),Pc.set(i,y),y},t.createUploader=function(i){var o=i.server,a=o===void 0?"":o,s=i.fieldName,d=s===void 0?"":s,g=i.maxFileSize,y=g===void 0?10485760:g,w=i.maxNumberOfFiles,D=w===void 0?100:w,I=i.meta,j=I===void 0?{}:I,U=i.metaWithUrl,Z=U!==void 0&&U,ee=i.headers,ie=ee===void 0?{}:ee,fe=i.withCredentials,De=fe!==void 0&&fe,Se=i.timeout,Y=Se===void 0?1e4:Se,Re=i.onBeforeUpload,lt=Re===void 0?function(ni){return ni}:Re,St=i.onSuccess,Un=St===void 0?function(ni,ra){}:St,yn=i.onError,Fr=yn===void 0?function(ni,ra,ro){console.error(ni.name+" upload error",ra,ro)}:yn,na=i.onProgress,Do=na===void 0?function(ni){}:na;if(!a)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!d)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var vo=a;Z&&(vo=(function(ni,ra){var ro=ft(ni.split("#"),2),Ws=ro[0],El=ro[1],kf=[];q.default(ra,(function(wl,Nf){kf.push(Nf+"="+wl)}));var tf=kf.join("&");return Ws=Ws.indexOf("?")>0?Ws+"&"+tf:Ws+"?"+tf,El?Ws+"#"+El:Ws})(vo,j));var to=new Ge.default({onBeforeUpload:lt,restrictions:{maxFileSize:y,maxNumberOfFiles:D},meta:j}).use(zt.default,{endpoint:vo,headers:ie,formData:!0,fieldName:d,bundle:!0,withCredentials:De,timeout:Y});return to.on("upload-success",(function(ni,ra){var ro=ra.body,Ws=ro===void 0?{}:ro;try{Un(ni,Ws)}catch(El){console.error("wangEditor upload file - onSuccess error",El)}to.removeFile(ni.id)})),to.on("progress",(function(ni){ni<1||Do(ni)})),to.on("upload-error",(function(ni,ra,ro){try{Fr(ni,ra,ro)}catch(Ws){console.error("wangEditor upload file - onError error",Ws)}to.removeFile(ni.id)})),to.on("restriction-failed",(function(ni,ra){try{Fr(ni,ra)}catch(ro){console.error("wangEditor upload file - onError error",ro)}to.removeFile(ni.id)})),to},t.genModalButtonElems=function(i,o){var a=X.default('<div class="button-container"></div>'),s=X.default('<button type="button" id="'+i+'">'+o+"</button>");return a.append(s),[a[0],s[0]]},t.genModalInputElems=function(i,o,a){var s=X.default('<label class="babel-container"></label>');s.append("<span>"+i+"</span>");var d=X.default('<input type="text" id="'+o+'" placeholder="'+(a||"")+'">');return s.append(d),[s[0],d[0]]},t.genModalTextareaElems=function(i,o,a){var s=X.default('<label class="babel-container"></label>');s.append("<span>"+i+"</span>");var d=X.default('<textarea type="text" id="'+o+'" placeholder="'+(a||"")+'"></textarea>');return s.append(d),[s[0],d[0]]},t.i18nAddResources=function(i,o){vr.addResourceBundle(i,mi,o,!0,!0)},t.i18nChangeLanguage=function(i){vr.changeLanguage(i)},t.i18nGetResources=function(i){return vr.getResourceBundle(i,mi)},t.registerElemToHtmlConf=function(i){var o=i.type,a=i.elemToHtml;tt[o||""]=a},t.registerMenu=function(i,o){var a=i.key,s=i.factory,d=i.config,g=it(it({},d),o||{});if(Pl[a]!=null)throw new Error("Duplicated key '"+a+"' in menu items");Pl[a]=s,(function(y,w){w!=null&&(bf[y]=w)})(a,g)},t.registerParseElemHtmlConf=function(i){var o=i.selector,a=i.parseElemHtml;td[o]=a},t.registerParseStyleHtmlHandler=function(i){dp.push(i)},t.registerPreParseHtmlConf=function(i){fp.push(i)},t.registerRenderElemConf=function(i){var o=i.type,a=i.renderElem;Ap[o||""]=a},t.registerStyleHandler=function(i){Ff.push(i)},t.registerStyleToHtmlHandler=function(i){_e.push(i)},t.t=Hi,Object.defineProperty(t,"__esModule",{value:!0})}))}),t5={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},n5={editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}};qi.i18nAddResources("en",t5),qi.i18nAddResources("zh-CN",n5);var Db=xl(function(r,e){(function(t,n){n(e,qi,ih,rp,Ed,tp,Vp)})(Ur,(function(t,n,c,f,m,P,_){function x(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var O=x(m),k=x(_);n.i18nAddResources("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"}}),n.i18nAddResources("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var S={type:"paragraph",renderElem:function(u,l,p){return c.jsx("p",null,l)}},B={type:"paragraph",elemToHtml:function(u,l){return l===""?"<p><br></p>":"<p>"+l+"</p>"}},W=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:{};function re(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function te(u){var l={exports:{}};return u(l,l.exports),l.exports}var me,ne,X=function(u){return u&&u.Math==Math&&u},q=X(typeof globalThis=="object"&&globalThis)||X(typeof window=="object"&&window)||X(typeof self=="object"&&self)||X(typeof W=="object"&&W)||(function(){return this})()||Function("return this")(),Ee=function(u){try{return!!u()}catch(l){return!0}},ye=!Ee((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Qe=Function.prototype.call,qe=Qe.bind?Qe.bind(Qe):function(){return Qe.apply(Qe,arguments)},Ge={}.propertyIsEnumerable,zt=Object.getOwnPropertyDescriptor,qt=zt&&!Ge.call({1:2},1)?function(u){var l=zt(this,u);return!!l&&l.enumerable}:Ge,tn={f:qt},an=function(u,l){return{enumerable:!(1&u),configurable:!(2&u),writable:!(4&u),value:l}},kn=Function.prototype,At=kn.bind,Wn=kn.call,Ae=At&&At.bind(Wn),Dt=At?function(u){return u&&Ae(Wn,u)}:function(u){return u&&function(){return Wn.apply(u,arguments)}},hn=Dt({}.toString),Ot=Dt("".slice),Sn=function(u){return Ot(hn(u),8,-1)},be=q.Object,de=Dt("".split),xe=Ee((function(){return!be("z").propertyIsEnumerable(0)}))?function(u){return Sn(u)=="String"?de(u,""):be(u)}:be,Ie=q.TypeError,Ye=function(u){if(u==null)throw Ie("Can't call method on "+u);return u},oe=function(u){return xe(Ye(u))},ht=function(u){return typeof u=="function"},Gt=function(u){return typeof u=="object"?u!==null:ht(u)},xn=function(u){return ht(u)?u:void 0},bn=function(u,l){return arguments.length<2?xn(q[u]):q[u]&&q[u][l]},at=Dt({}.isPrototypeOf),un=bn("navigator","userAgent")||"",Cn=q.process,Xt=q.Deno,Bn=Cn&&Cn.versions||Xt&&Xt.version,er=Bn&&Bn.v8;er&&(ne=(me=er.split("."))[0]>0&&me[0]<4?1:+(me[0]+me[1])),!ne&&un&&(!(me=un.match(/Edge\/(\d+)/))||me[1]>=74)&&(me=un.match(/Chrome\/(\d+)/))&&(ne=+me[1]);var $t=ne,zn=!!Object.getOwnPropertySymbols&&!Ee((function(){var u=Symbol();return!String(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&$t&&$t<41})),Pr=zn&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mr=q.Object,qn=Pr?function(u){return typeof u=="symbol"}:function(u){var l=bn("Symbol");return ht(l)&&at(l.prototype,Mr(u))},Nn=q.String,Nr=function(u){try{return Nn(u)}catch(l){return"Object"}},jn=q.TypeError,br=function(u){if(ht(u))return u;throw jn(Nr(u)+" is not a function")},Ut=function(u,l){var p=u[l];return p==null?void 0:br(p)},fr=q.TypeError,fi=Object.defineProperty,Vr=function(u,l){try{fi(q,u,{value:l,configurable:!0,writable:!0})}catch(p){q[u]=l}return l},Jr="__core-js_shared__",Ir=q[Jr]||Vr(Jr,{}),Tr=te((function(u){(u.exports=function(l,p){return Ir[l]||(Ir[l]=p!==void 0?p:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ve=q.Object,Ve=function(u){return ve(Ye(u))},Ce=Dt({}.hasOwnProperty),we=Object.hasOwn||function(u,l){return Ce(Ve(u),l)},gt=0,jt=Math.random(),Mt=Dt(1 .toString),Ln=function(u){return"Symbol("+(u===void 0?"":u)+")_"+Mt(++gt+jt,36)},Dr=Tr("wks"),Ar=q.Symbol,ui=Ar&&Ar.for,Kt=Pr?Ar:Ar&&Ar.withoutSetter||Ln,Pt=function(u){if(!we(Dr,u)||!zn&&typeof Dr[u]!="string"){var l="Symbol."+u;zn&&we(Ar,u)?Dr[u]=Ar[u]:Dr[u]=Pr&&ui?ui(l):Kt(l)}return Dr[u]},xt=q.TypeError,Yt=Pt("toPrimitive"),gn=function(u,l){if(!Gt(u)||qn(u))return u;var p,E=Ut(u,Yt);if(E){if(l===void 0&&(l="default"),p=qe(E,u,l),!Gt(p)||qn(p))return p;throw xt("Can't convert object to primitive value")}return l===void 0&&(l="number"),(function(A,$){var K,Q;if($==="string"&&ht(K=A.toString)&&!Gt(Q=qe(K,A))||ht(K=A.valueOf)&&!Gt(Q=qe(K,A))||$!=="string"&&ht(K=A.toString)&&!Gt(Q=qe(K,A)))return Q;throw fr("Can't convert object to primitive value")})(u,l)},Vt=function(u){var l=gn(u,"string");return qn(l)?l:l+""},Xn=q.document,Gn=Gt(Xn)&&Gt(Xn.createElement),Hn=function(u){return Gn?Xn.createElement(u):{}},ln=!ye&&!Ee((function(){return Object.defineProperty(Hn("div"),"a",{get:function(){return 7}}).a!=7})),lr=Object.getOwnPropertyDescriptor,cn={f:ye?lr:function(u,l){if(u=oe(u),l=Vt(l),ln)try{return lr(u,l)}catch(p){}if(we(u,l))return an(!qe(tn.f,u,l),u[l])}},Rr=q.String,mr=q.TypeError,Er=function(u){if(Gt(u))return u;throw mr(Rr(u)+" is not an object")},yi=q.TypeError,bi=Object.defineProperty,_r={f:ye?bi:function(u,l,p){if(Er(u),l=Vt(l),Er(p),ln)try{return bi(u,l,p)}catch(E){}if("get"in p||"set"in p)throw yi("Accessors not supported");return"value"in p&&(u[l]=p.value),u}},Hr=ye?function(u,l,p){return _r.f(u,l,an(1,p))}:function(u,l,p){return u[l]=p,u},Ui=Dt(Function.toString);ht(Ir.inspectSource)||(Ir.inspectSource=function(u){return Ui(u)});var ri,mo,Qr,ii=Ir.inspectSource,Co=q.WeakMap,zo=ht(Co)&&/native code/.test(ii(Co)),Ca=Tr("keys"),Di=function(u){return Ca[u]||(Ca[u]=Ln(u))},Gi={},no="Object already initialized",Ho=q.TypeError,Ki=q.WeakMap;if(zo||Ir.state){var Si=Ir.state||(Ir.state=new Ki),Ei=Dt(Si.get),uo=Dt(Si.has),yo=Dt(Si.set);ri=function(u,l){if(uo(Si,u))throw new Ho(no);return l.facade=u,yo(Si,u,l),l},mo=function(u){return Ei(Si,u)||{}},Qr=function(u){return uo(Si,u)}}else{var wi=Di("state");Gi[wi]=!0,ri=function(u,l){if(we(u,wi))throw new Ho(no);return l.facade=u,Hr(u,wi,l),l},mo=function(u){return we(u,wi)?u[wi]:{}},Qr=function(u){return we(u,wi)}}var Uo={set:ri,get:mo,has:Qr,enforce:function(u){return Qr(u)?mo(u):ri(u,{})},getterFor:function(u){return function(l){var p;if(!Gt(l)||(p=mo(l)).type!==u)throw Ho("Incompatible receiver, "+u+" required");return p}}},bo=Function.prototype,jr=ye&&Object.getOwnPropertyDescriptor,so=we(bo,"name"),Ci={EXISTS:so,PROPER:so&&function(){}.name==="something",CONFIGURABLE:so&&(!ye||ye&&jr(bo,"name").configurable)},Xi=te((function(u){var l=Ci.CONFIGURABLE,p=Uo.get,E=Uo.enforce,A=String(String).split("String");(u.exports=function($,K,Q,ke){var wt,Je=!!ke&&!!ke.unsafe,Ht=!!ke&&!!ke.enumerable,wn=!!ke&&!!ke.noTargetGet,on=ke&&ke.name!==void 0?ke.name:K;ht(Q)&&(String(on).slice(0,7)==="Symbol("&&(on="["+String(on).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!we(Q,"name")||l&&Q.name!==on)&&Hr(Q,"name",on),(wt=E(Q)).source||(wt.source=A.join(typeof on=="string"?on:""))),$!==q?(Je?!wn&&$[K]&&(Ht=!0):delete $[K],Ht?$[K]=Q:Hr($,K,Q)):Ht?$[K]=Q:Vr(K,Q)})(Function.prototype,"toString",(function(){return ht(this)&&p(this).source||ii(this)}))})),Po=Math.ceil,di=Math.floor,po=function(u){var l=+u;return l!=l||l===0?0:(l>0?di:Po)(l)},du=Math.max,Ti=Math.min,Yi=function(u,l){var p=po(u);return p<0?du(p+l,0):Ti(p,l)},Aa=Math.min,ko=function(u){return u>0?Aa(po(u),9007199254740991):0},Eo=function(u){return ko(u.length)},Zi=function(u){return function(l,p,E){var A,$=oe(l),K=Eo($),Q=Yi(E,K);if(u&&p!=p){for(;K>Q;)if((A=$[Q++])!=A)return!0}else for(;K>Q;Q++)if((u||Q in $)&&$[Q]===p)return u||Q||0;return!u&&-1}},Ai={includes:Zi(!0),indexOf:Zi(!1)},No=Ai.indexOf,oa=Dt([].push),si=function(u,l){var p,E=oe(u),A=0,$=[];for(p in E)!we(Gi,p)&&we(E,p)&&oa($,p);for(;l.length>A;)we(E,p=l[A++])&&(~No($,p)||oa($,p));return $},_a=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Io=_a.concat("length","prototype"),pu={f:Object.getOwnPropertyNames||function(u){return si(u,Io)}},Ma={f:Object.getOwnPropertySymbols},Ro=Dt([].concat),Wr=bn("Reflect","ownKeys")||function(u){var l=pu.f(Er(u)),p=Ma.f;return p?Ro(l,p(u)):l},Za=function(u,l){for(var p=Wr(l),E=_r.f,A=cn.f,$=0;$<p.length;$++){var K=p[$];we(u,K)||E(u,K,A(l,K))}},lo=/#|\.prototype\./,Ao=function(u,l){var p=jo[Bi(u)];return p==pa||p!=co&&(ht(l)?Ee(l):!!l)},Bi=Ao.normalize=function(u){return String(u).replace(lo,".").toLowerCase()},jo=Ao.data={},co=Ao.NATIVE="N",pa=Ao.POLYFILL="P",Vo=Ao,Ii=cn.f,qr=function(u,l){var p,E,A,$,K,Q=u.target,ke=u.global,wt=u.stat;if(p=ke?q:wt?q[Q]||Vr(Q,{}):(q[Q]||{}).prototype)for(E in l){if($=l[E],A=u.noTargetGet?(K=Ii(p,E))&&K.value:p[E],!Vo(ke?E:Q+(wt?".":"#")+E,u.forced)&&A!==void 0){if(typeof $==typeof A)continue;Za($,A)}(u.sham||A&&A.sham)&&Hr($,"sham",!0),Xi(p,E,$,u)}},ha=Dt(Dt.bind),ho=Array.isArray||function(u){return Sn(u)=="Array"},Wo={};Wo[Pt("toStringTag")]="z";var Oa=String(Wo)==="[object z]",b=Pt("toStringTag"),L=q.Object,le=Sn((function(){return arguments})())=="Arguments",He=Oa?Sn:function(u){var l,p,E;return u===void 0?"Undefined":u===null?"Null":typeof(p=(function(A,$){try{return A[$]}catch(K){}})(l=L(u),b))=="string"?p:le?Sn(l):(E=Sn(l))=="Object"&&ht(l.callee)?"Arguments":E},An=function(){},Dn=[],dr=bn("Reflect","construct"),Or=/^\s*(?:class|function)\b/,Fi=Dt(Or.exec),kr=!Or.exec(An),pi=function(u){if(!ht(u))return!1;try{return dr(An,Dn,u),!0}catch(l){return!1}},Ri=!dr||Ee((function(){var u;return pi(pi.call)||!pi(Object)||!pi((function(){u=!0}))||u}))?function(u){if(!ht(u))return!1;switch(He(u)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return kr||!!Fi(Or,ii(u))}:pi,li=Pt("species"),Pi=q.Array,ji=function(u,l){return new((function(p){var E;return ho(p)&&(E=p.constructor,(Ri(E)&&(E===Pi||ho(E.prototype))||Gt(E)&&(E=E[li])===null)&&(E=void 0)),E===void 0?Pi:E})(u))(l===0?0:l)},Ji=Dt([].push),xi=function(u){var l=u==1,p=u==2,E=u==3,A=u==4,$=u==6,K=u==7,Q=u==5||$;return function(ke,wt,Je,Ht){for(var wn,on,Jn=Ve(ke),hr=xe(Jn),xr=(function(i,o){return br(i),o===void 0?i:ha?ha(i,o):function(){return i.apply(o,arguments)}})(wt,Je),Cr=Eo(hr),vr=0,mi=Ht||ji,Hi=l?mi(ke,Cr):p||K?mi(ke,0):void 0;Cr>vr;vr++)if((Q||vr in hr)&&(on=xr(wn=hr[vr],vr,Jn),u))if(l)Hi[vr]=on;else if(on)switch(u){case 3:return!0;case 5:return wn;case 6:return vr;case 2:Ji(Hi,wn)}else switch(u){case 4:return!1;case 7:Ji(Hi,wn)}return $?-1:E||A?A:Hi}},go={forEach:xi(0),map:xi(1),filter:xi(2),some:xi(3),every:xi(4),find:xi(5),findIndex:xi(6),filterReject:xi(7)},Ja=Pt("species"),ga=function(u){return $t>=51||!Ee((function(){var l=[];return(l.constructor={})[Ja]=function(){return{foo:1}},l[u](Boolean).foo!==1}))},io=go.filter;qr({target:"Array",proto:!0,forced:!ga("filter")},{filter:function(u){return io(this,u,arguments.length>1?arguments[1]:void 0)}});var hu=Oa?{}.toString:function(){return"[object "+He(this)+"]"};Oa||Xi(Object.prototype,"toString",hu,{unsafe:!0});var Qa,Ts=q.String,hi=function(u){if(He(u)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ts(u)},va=function(){var u=Er(this),l="";return u.global&&(l+="g"),u.ignoreCase&&(l+="i"),u.multiline&&(l+="m"),u.dotAll&&(l+="s"),u.unicode&&(l+="u"),u.sticky&&(l+="y"),l},wo=q.RegExp,aa=Ee((function(){var u=wo("a","y");return u.lastIndex=2,u.exec("abcd")!=null})),ua=aa||Ee((function(){return!wo("a","y").sticky})),_o={BROKEN_CARET:aa||Ee((function(){var u=wo("^r","gy");return u.lastIndex=2,u.exec("str")!=null})),MISSED_STICKY:ua,UNSUPPORTED_Y:aa},Tu=Object.keys||function(u){return si(u,_a)},Wu=ye?Object.defineProperties:function(u,l){Er(u);for(var p,E=oe(l),A=Tu(l),$=A.length,K=0;$>K;)_r.f(u,p=A[K++],E[p]);return u},Bu=bn("document","documentElement"),Fu=Di("IE_PROTO"),sa=function(){},qo=function(u){return"<script>"+u+"<\/script>"},gu=function(u){u.write(qo("")),u.close();var l=u.parentWindow.Object;return u=null,l},eu=function(){try{Qa=new ActiveXObject("htmlfile")}catch(E){}var u,l;eu=typeof document!="undefined"?document.domain&&Qa?gu(Qa):((l=Hn("iframe")).style.display="none",Bu.appendChild(l),l.src="javascript:",(u=l.contentWindow.document).open(),u.write(qo("document.F=Object")),u.close(),u.F):gu(Qa);for(var p=_a.length;p--;)delete eu.prototype[_a[p]];return eu()};Gi[Fu]=!0;var qu,tu,Pu=Object.create||function(u,l){var p;return u!==null?(sa.prototype=Er(u),p=new sa,sa.prototype=null,p[Fu]=u):p=eu(),l===void 0?p:Wu(p,l)},$r=q.RegExp,$a=Ee((function(){var u=$r(".","s");return!(u.dotAll&&u.exec(`
`)&&u.flags==="s")})),nu=q.RegExp,xo=Ee((function(){var u=nu("(?<a>b)","g");return u.exec("b").groups.a!=="b"||"b".replace(u,"$<a>c")!=="bc"})),Bs=Uo.get,Fs=Tr("native-string-replace",String.prototype.replace),la=RegExp.prototype.exec,ru=la,cs=Dt("".charAt),ku=Dt("".indexOf),Ta=Dt("".replace),Gu=Dt("".slice),Go=(tu=/b*/g,qe(la,qu=/a/,"a"),qe(la,tu,"a"),qu.lastIndex!==0||tu.lastIndex!==0),Ku=_o.BROKEN_CARET,Nu=/()??/.exec("")[1]!==void 0;(Go||Nu||Ku||$a||xo)&&(ru=function(u){var l,p,E,A,$,K,Q,ke=this,wt=Bs(ke),Je=hi(u),Ht=wt.raw;if(Ht)return Ht.lastIndex=ke.lastIndex,l=qe(ru,Ht,Je),ke.lastIndex=Ht.lastIndex,l;var wn=wt.groups,on=Ku&&ke.sticky,Jn=qe(va,ke),hr=ke.source,xr=0,Cr=Je;if(on&&(Jn=Ta(Jn,"y",""),ku(Jn,"g")===-1&&(Jn+="g"),Cr=Gu(Je,ke.lastIndex),ke.lastIndex>0&&(!ke.multiline||ke.multiline&&cs(Je,ke.lastIndex-1)!==`
`)&&(hr="(?: "+hr+")",Cr=" "+Cr,xr++),p=new RegExp("^(?:"+hr+")",Jn)),Nu&&(p=new RegExp("^"+hr+"$(?!\\s)",Jn)),Go&&(E=ke.lastIndex),A=qe(la,on?p:ke,Cr),on?A?(A.input=Gu(A.input,xr),A[0]=Gu(A[0],xr),A.index=ke.lastIndex,ke.lastIndex+=A[0].length):ke.lastIndex=0:Go&&A&&(ke.lastIndex=ke.global?A.index+A[0].length:E),Nu&&A&&A.length>1&&qe(Fs,A[0],p,(function(){for($=1;$<arguments.length-2;$++)arguments[$]===void 0&&(A[$]=void 0)})),A&&wn)for(A.groups=K=Pu(null),$=0;$<wn.length;$++)K[(Q=wn[$])[0]]=A[Q[1]];return A});var vu=ru;qr({target:"RegExp",proto:!0,forced:/./.exec!==vu},{exec:vu});var mu=Function.prototype,Iu=mu.apply,Xr=mu.bind,za=mu.call,ma=typeof Reflect=="object"&&Reflect.apply||(Xr?za.bind(Iu):function(){return za.apply(Iu,arguments)}),iu=Pt("species"),Ba=RegExp.prototype,fs=function(u,l,p,E){var A=Pt(u),$=!Ee((function(){var wt={};return wt[A]=function(){return 7},""[u](wt)!=7})),K=$&&!Ee((function(){var wt=!1,Je=/a/;return u==="split"&&((Je={}).constructor={},Je.constructor[iu]=function(){return Je},Je.flags="",Je[A]=/./[A]),Je.exec=function(){return wt=!0,null},Je[A](""),!wt}));if(!$||!K||p){var Q=Dt(/./[A]),ke=l(A,""[u],(function(wt,Je,Ht,wn,on){var Jn=Dt(wt),hr=Je.exec;return hr===vu||hr===Ba.exec?$&&!on?{done:!0,value:Q(Je,Ht,wn)}:{done:!0,value:Jn(Ht,Je,wn)}:{done:!1}}));Xi(String.prototype,u,ke[0]),Xi(Ba,A,ke[1])}E&&Hr(Ba[A],"sham",!0)},yu=Dt("".charAt),Ps=Dt("".charCodeAt),Xu=Dt("".slice),Ko=function(u){return function(l,p){var E,A,$=hi(Ye(l)),K=po(p),Q=$.length;return K<0||K>=Q?u?"":void 0:(E=Ps($,K))<55296||E>56319||K+1===Q||(A=Ps($,K+1))<56320||A>57343?u?yu($,K):E:u?Xu($,K,K+2):A-56320+(E-55296<<10)+65536}},Yu={codeAt:Ko(!1),charAt:Ko(!0)}.charAt,Zu=function(u,l,p){return l+(p?Yu(u,l).length:1)},ks=Math.floor,ds=Dt("".charAt),Fa=Dt("".replace),ya=Dt("".slice),Pa=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ka=/\$([$&'`]|\d{1,2})/g,ou=function(u,l,p,E,A,$){var K=p+u.length,Q=E.length,ke=ka;return A!==void 0&&(A=Ve(A),ke=Pa),Fa($,ke,(function(wt,Je){var Ht;switch(ds(Je,0)){case"$":return"$";case"&":return u;case"`":return ya(l,0,p);case"'":return ya(l,K);case"<":Ht=A[ya(Je,1,-1)];break;default:var wn=+Je;if(wn===0)return wt;if(wn>Q){var on=ks(wn/10);return on===0?wt:on<=Q?E[on-1]===void 0?ds(Je,1):E[on-1]+ds(Je,1):wt}Ht=E[wn-1]}return Ht===void 0?"":Ht}))},bu=q.TypeError,ba=function(u,l){var p=u.exec;if(ht(p)){var E=qe(p,u,l);return E!==null&&Er(E),E}if(Sn(u)==="RegExp")return qe(vu,u,l);throw bu("RegExp#exec called on incompatible receiver")},Ru=Pt("replace"),Ju=Math.max,ju=Math.min,Xo=Dt([].concat),Ea=Dt([].push),Ns=Dt("".indexOf),Ha=Dt("".slice),Eu="a".replace(/./,"$0")==="$0",Na=!!/./[Ru]&&/./[Ru]("a","$0")==="";fs("replace",(function(u,l,p){var E=Na?"$":"$0";return[function(A,$){var K=Ye(this),Q=A==null?void 0:Ut(A,Ru);return Q?qe(Q,A,K,$):qe(l,hi(K),A,$)},function(A,$){var K=Er(this),Q=hi(A);if(typeof $=="string"&&Ns($,E)===-1&&Ns($,"$<")===-1){var ke=p(l,K,Q,$);if(ke.done)return ke.value}var wt=ht($);wt||($=hi($));var Je=K.global;if(Je){var Ht=K.unicode;K.lastIndex=0}for(var wn=[];;){var on=ba(K,Q);if(on===null||(Ea(wn,on),!Je))break;hi(on[0])===""&&(K.lastIndex=Zu(Q,ko(K.lastIndex),Ht))}for(var Jn,hr="",xr=0,Cr=0;Cr<wn.length;Cr++){for(var vr=hi((on=wn[Cr])[0]),mi=Ju(ju(po(on.index),Q.length),0),Hi=[],i=1;i<on.length;i++)Ea(Hi,(Jn=on[i])===void 0?Jn:String(Jn));var o=on.groups;if(wt){var a=Xo([vr],Hi,mi,Q);o!==void 0&&Ea(a,o);var s=hi(ma($,void 0,a))}else s=ou(vr,Q,mi,Hi,o,$);mi>=xr&&(hr+=Ha(Q,xr,mi)+s,xr=mi+vr.length)}return hr+Ha(Q,xr)}]}),!!Ee((function(){var u=/./;return u.exec=function(){var l=[];return l.groups={a:"7"},l},"".replace(u,"$<a>")!=="7"}))||!Eu||Na);var au=Pt("unscopables"),ps=Array.prototype;ps[au]==null&&_r.f(ps,au,{configurable:!0,value:Pu(null)});var wu=function(u){ps[au][u]=!0},hs=go.find,Yo="find",gs=!0;Yo in[]&&Array(1).find((function(){gs=!1})),qr({target:"Array",proto:!0,forced:gs},{find:function(u){return hs(this,u,arguments.length>1?arguments[1]:void 0)}}),wu(Yo);var vs=Pt("match"),Qu=function(u){var l;return Gt(u)&&((l=u[vs])!==void 0?!!l:Sn(u)=="RegExp")},ca=q.TypeError,Is=Pt("species"),uu=function(u,l){var p,E=Er(u).constructor;return E===void 0||(p=Er(E)[Is])==null?l:(function(A){if(Ri(A))return A;throw ca(Nr(A)+" is not a constructor")})(p)},Gs=function(u,l,p){var E=Vt(l);E in u?_r.f(u,E,an(0,p)):u[E]=p},Rs=q.Array,T=Math.max,z=function(u,l,p){for(var E=Eo(u),A=Yi(l,E),$=Yi(p===void 0?E:p,E),K=Rs(T($-A,0)),Q=0;A<$;A++,Q++)Gs(K,Q,u[A]);return K.length=Q,K},ue=_o.UNSUPPORTED_Y,Me=4294967295,Fe=Math.min,ot=[].push,Te=Dt(/./.exec),ct=Dt(ot),vt=Dt("".slice),Lt=!Ee((function(){var u=/(?:)/,l=u.exec;u.exec=function(){return l.apply(this,arguments)};var p="ab".split(u);return p.length!==2||p[0]!=="a"||p[1]!=="b"}));fs("split",(function(u,l,p){var E;return E="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(A,$){var K=hi(Ye(this)),Q=$===void 0?Me:$>>>0;if(Q===0)return[];if(A===void 0)return[K];if(!Qu(A))return qe(l,K,A,Q);for(var ke,wt,Je,Ht=[],wn=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(A.sticky?"y":""),on=0,Jn=new RegExp(A.source,wn+"g");(ke=qe(vu,Jn,K))&&!((wt=Jn.lastIndex)>on&&(ct(Ht,vt(K,on,ke.index)),ke.length>1&&ke.index<K.length&&ma(ot,Ht,z(ke,1)),Je=ke[0].length,on=wt,Ht.length>=Q));)Jn.lastIndex===ke.index&&Jn.lastIndex++;return on===K.length?!Je&&Te(Jn,"")||ct(Ht,""):ct(Ht,vt(K,on)),Ht.length>Q?z(Ht,0,Q):Ht}:"0".split(void 0,0).length?function(A,$){return A===void 0&&$===0?[]:qe(l,this,A,$)}:l,[function(A,$){var K=Ye(this),Q=A==null?void 0:Ut(A,u);return Q?qe(Q,A,K,$):qe(E,hi(K),A,$)},function(A,$){var K=Er(this),Q=hi(A),ke=p(E,K,Q,$,E!==l);if(ke.done)return ke.value;var wt=uu(K,RegExp),Je=K.unicode,Ht=(K.ignoreCase?"i":"")+(K.multiline?"m":"")+(K.unicode?"u":"")+(ue?"g":"y"),wn=new wt(ue?"^(?:"+K.source+")":K,Ht),on=$===void 0?Me:$>>>0;if(on===0)return[];if(Q.length===0)return ba(wn,Q)===null?[Q]:[];for(var Jn=0,hr=0,xr=[];hr<Q.length;){wn.lastIndex=ue?0:hr;var Cr,vr=ba(wn,ue?vt(Q,hr):Q);if(vr===null||(Cr=Fe(ko(wn.lastIndex+(ue?hr:0)),Q.length))===Jn)hr=Zu(Q,hr,Je);else{if(ct(xr,vt(Q,Jn,hr)),xr.length===on)return xr;for(var mi=1;mi<=vr.length-1;mi++)if(ct(xr,vr[mi]),xr.length===on)return xr;hr=Jn=Cr}}return ct(xr,vt(Q,Jn)),xr}]}),!Lt,ue);var kt,Wt=`
\v\f\r    \u2028\u2029\uFEFF`,Kn=Dt("".replace),rn="["+Wt+"]",tr=RegExp("^"+rn+rn+"*"),In=RegExp(rn+rn+"*$"),nt=function(u){return function(l){var p=hi(Ye(l));return 1&u&&(p=Kn(p,tr,"")),2&u&&(p=Kn(p,In,"")),p}},$e={start:nt(1),end:nt(2),trim:nt(3)},bt=Ci.PROPER,Ct=$e.trim;function Bt(u){return O.default("<div>"+u+"</div>").children().filter((function(l){return l.tagName!=="BR"})).length===0}function fn(u){return u.length===0?"":u[0].outerHTML}function en(u){return u.length?u[0].tagName.toLowerCase():""}function _n(u,l){for(var p="",E=(u.attr("style")||"").split(";"),A=E.length,$=0;$<A;$++){var K=E[$];if(K){var Q=K.split(":");Q[0].trim()===l&&(p=Q[1].trim())}}return p}qr({target:"String",proto:!0,forced:(kt="trim",Ee((function(){return!!Wt[kt]()||"​…᠎"[kt]()!=="​…᠎"||bt&&Wt[kt].name!==kt})))},{trim:function(){return Ct(this)}}),qr({global:!0},{globalThis:q}),m.css&&(O.default.fn.css=m.css),m.append&&(O.default.fn.append=m.append),m.prepend&&(O.default.fn.prepend=m.prepend),m.addClass&&(O.default.fn.addClass=m.addClass),m.removeClass&&(O.default.fn.removeClass=m.removeClass),m.hasClass&&(O.default.fn.hasClass=m.hasClass),m.on&&(O.default.fn.on=m.on),m.off&&(O.default.fn.off=m.off),m.focus&&(O.default.fn.focus=m.focus),m.attr&&(O.default.fn.attr=m.attr),m.removeAttr&&(O.default.fn.removeAttr=m.removeAttr),m.hide&&(O.default.fn.hide=m.hide),m.show&&(O.default.fn.show=m.show),m.parents&&(O.default.fn.parents=m.parents),m.dataset&&(O.default.fn.dataset=m.dataset),m.val&&(O.default.fn.val=m.val),m.text&&(O.default.fn.text=m.text),m.html&&(O.default.fn.html=m.html),m.children&&(O.default.fn.children=m.children),m.remove&&(O.default.fn.remove=m.remove),m.find&&(O.default.fn.find=m.find),m.width&&(O.default.fn.width=m.width),m.height&&(O.default.fn.height=m.height),m.filter&&(O.default.fn.filter=m.filter),m.empty&&(O.default.fn.empty=m.empty);var gi=function(u,l){return gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,E){p.__proto__=E}||function(p,E){for(var A in E)Object.prototype.hasOwnProperty.call(E,A)&&(p[A]=E[A])},gi(u,l)};/*! *****************************************************************************
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 cr(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function p(){this.constructor=u}gi(u,l),u.prototype=l===null?Object.create(l):(p.prototype=l.prototype,new p)}var Vi=function(){return Vi=Object.assign||function(u){for(var l,p=1,E=arguments.length;p<E;p++)for(var A in l=arguments[p])Object.prototype.hasOwnProperty.call(l,A)&&(u[A]=l[A]);return u},Vi.apply(this,arguments)};function oo(u,l,p,E){return new(p||(p=Promise))((function(A,$){function K(wt){try{ke(E.next(wt))}catch(Je){$(Je)}}function Q(wt){try{ke(E.throw(wt))}catch(Je){$(Je)}}function ke(wt){var Je;wt.done?A(wt.value):(Je=wt.value,Je instanceof p?Je:new p((function(Ht){Ht(Je)}))).then(K,Q)}ke((E=E.apply(u,l||[])).next())}))}function Lo(u,l){var p,E,A,$,K={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return $={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Q(ke){return function(wt){return(function(Je){if(p)throw new TypeError("Generator is already executing.");for(;K;)try{if(p=1,E&&(A=2&Je[0]?E.return:Je[0]?E.throw||((A=E.return)&&A.call(E),0):E.next)&&!(A=A.call(E,Je[1])).done)return A;switch(E=0,A&&(Je=[2&Je[0],A.value]),Je[0]){case 0:case 1:A=Je;break;case 4:return K.label++,{value:Je[1],done:!1};case 5:K.label++,E=Je[1],Je=[0];continue;case 7:Je=K.ops.pop(),K.trys.pop();continue;default:if(A=K.trys,!((A=A.length>0&&A[A.length-1])||Je[0]!==6&&Je[0]!==2)){K=0;continue}if(Je[0]===3&&(!A||Je[1]>A[0]&&Je[1]<A[3])){K.label=Je[1];break}if(Je[0]===6&&K.label<A[1]){K.label=A[1],A=Je;break}if(A&&K.label<A[2]){K.label=A[2],K.ops.push(Je);break}A[2]&&K.ops.pop(),K.trys.pop();continue}Je=l.call(u,K)}catch(Ht){Je=[6,Ht],E=0}finally{p=A=0}if(5&Je[0])throw Je[1];return{value:Je[0]?Je[1]:void 0,done:!0}})([ke,wt])}}}function Ua(u){var l=typeof Symbol=="function"&&Symbol.iterator,p=l&&u[l],E=0;if(p)return p.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&E>=u.length&&(u=void 0),{value:u&&u[E++],done:!u}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}function wr(u,l){var p=typeof Symbol=="function"&&u[Symbol.iterator];if(!p)return u;var E,A,$=p.call(u),K=[];try{for(;(l===void 0||l-- >0)&&!(E=$.next()).done;)K.push(E.value)}catch(Q){A={error:Q}}finally{try{E&&!E.done&&(p=$.return)&&p.call($)}finally{if(A)throw A.error}}return K}function Oo(u){var l=wr(f.Editor.nodes(u,{match:function(K){return u.children[0]===K},mode:"highest"}),1),p=l[0];if(p==null)return!1;var E=p[0];if(!f.Element.isElement(E)||E.type==="paragraph"||f.Node.string(E)!=="")return!1;var A=E.children,$=A===void 0?[]:A;return!!f.Text.isText($[0])&&(f.Transforms.setNodes(u,{type:"paragraph"}),!0)}var Li={renderElems:[S],elemsToHtml:[B],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(u,l,p){var E=O.default(u);return(l=l.filter((function(A){return!!f.Text.isText(A)||!!p.isInline(A)}))).length===0&&(l=[{text:E.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:l}}}],editorPlugin:function(u){var l=u.deleteBackward,p=u.deleteForward;u.insertText,u.insertBreak;var E=u;return E.deleteBackward=function(A){Oo(E)||l(A)},E.deleteForward=function(A){Oo(E)||p(A)},E}},Zo=/"/g,Ia=Dt("".replace),Mi=function(u,l,p,E){var A=hi(Ye(u)),$="<"+l;return p!==""&&($+=" "+p+'="'+Ia(hi(E),Zo,"&quot;")+'"'),$+">"+A+"</"+l+">"},$i=function(u){return Ee((function(){var l=""[u]('"');return l!==l.toLowerCase()||l.split('"').length>3}))};function wa(u,l){var p=l,E=u,A=E.bold,$=E.italic,K=E.underline;return A&&(p="<strong>"+p+"</strong>"),E.code&&(p="<code>"+p+"</code>"),$&&(p="<em>"+p+"</em>"),K&&(p="<u>"+p+"</u>"),E.through&&(p="<s>"+p+"</s>"),E.sub&&(p="<sub>"+p+"</sub>"),E.sup&&(p="<sup>"+p+"</sup>"),p}function ci(u,l){return u.length!==0&&(!!u[0].matches(l)||u.find(l).length>0)}qr({target:"String",proto:!0,forced:$i("bold")},{bold:function(){return Mi(this,"b","","")}}),qr({target:"String",proto:!0,forced:$i("italics")},{italics:function(){return Mi(this,"i","","")}}),qr({target:"String",proto:!0,forced:$i("sub")},{sub:function(){return Mi(this,"sub","","")}}),qr({target:"String",proto:!0,forced:$i("sup")},{sup:function(){return Mi(this,"sup","","")}});var Wi={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},Jo=Hn("span").classList,xa=Jo&&Jo.constructor&&Jo.constructor.prototype,ms=xa===Object.prototype?void 0:xa,Lu=function(u,l){var p=[][u];return!!p&&Ee((function(){p.call(null,l||function(){throw 1},1)}))},ys=go.forEach,Qo=Lu("forEach")?[].forEach:function(u){return ys(this,u,arguments.length>1?arguments[1]:void 0)},Va=function(u){if(u&&u.forEach!==Qo)try{Hr(u,"forEach",Qo)}catch(l){u.forEach=Qo}};for(var bs in Wi)Wi[bs]&&Va(q[bs]&&q[bs].prototype);function es(u,l){return u.selection==null||!!wr(f.Editor.nodes(u,{match:function(p){return n.DomEditor.getNodeType(p)==="pre"||!!f.Editor.isVoid(u,p)},universal:!0}),1)[0]}function Ks(u,l){Object.keys(l).forEach((function(p){p!=="text"&&f.Editor.removeMark(u,p)}))}Va(ms),qr({target:"Object",stat:!0,forced:Ee((function(){Tu(1)}))},{keys:function(u){return Tu(Ve(u))}});var Mu=(function(){function u(){this.marksNeedToRemove=[],this.tag="button"}return u.prototype.getValue=function(l){var p=this.mark,E=f.Editor.marks(l);return E?E[p]:!!wr(f.Editor.nodes(l,{match:function(A){return A[p]===!0}}),1)[0]},u.prototype.isActive=function(l){return!!this.getValue(l)},u.prototype.isDisabled=function(l){return es(l,this.mark)},u.prototype.exec=function(l,p){var E=this.mark,A=this.marksNeedToRemove;p?l.removeMark(E):(l.addMark(E,!0),A&&A.forEach((function($){return l.removeMark($)})))},u})(),Ol='<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>',Ll='<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>',Wa='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',$u='<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>',Xs='<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>',js='<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>',xu='<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>',rl='<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>',il='<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>',ts='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',zu='<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>',ns='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Du='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Es='<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>',su='<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>',ws='<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>',xs='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Ml='<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>',$l='<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>',ol=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.mark="bold",p.title=n.t("textStyle.bold"),p.iconSvg=Ol,p.hotkey="mod+b",p}return cr(l,u),l})(Mu),Hu=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.mark="code",p.title=n.t("textStyle.code"),p.iconSvg=Xs,p.hotkey="mod+e",p}return cr(l,u),l})(Mu),F=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.mark="italic",p.title=n.t("textStyle.italic"),p.iconSvg=Wa,p.hotkey="mod+i",p}return cr(l,u),l})(Mu),H=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.mark="through",p.title=n.t("textStyle.through"),p.iconSvg=$u,p.hotkey="mod+shift+x",p}return cr(l,u),l})(Mu),se=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.mark="underline",p.title=n.t("textStyle.underline"),p.iconSvg=Ll,p.hotkey="mod+u",p}return cr(l,u),l})(Mu),Ke=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.mark="sub",p.marksNeedToRemove=["sup"],p.title=n.t("textStyle.sub"),p.iconSvg=$l,p.hotkey="",p}return cr(l,u),l})(Mu),Oe=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.mark="sup",p.marksNeedToRemove=["sub"],p.title=n.t("textStyle.sup"),p.iconSvg=Ml,p.hotkey="",p}return cr(l,u),l})(Mu),We=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return es(l)},u.prototype.exec=function(l,p){var E,A,$=f.Editor.nodes(l,{match:function(ke){return f.Text.isText(ke)},universal:!0});try{for(var K=Ua($),Q=K.next();!Q.done;Q=K.next())Ks(l,Q.value[0])}catch(ke){E={error:ke}}finally{try{Q&&!Q.done&&(A=K.return)&&A.call(K)}finally{if(E)throw E.error}}},u})(),dt={renderStyle:function(u,l){var p=u,E=p.bold,A=p.italic,$=p.underline,K=p.code,Q=p.through,ke=p.sub,wt=p.sup,Je=l;return E&&(Je=c.jsx("strong",null,Je)),K&&(Je=c.jsx("code",null,Je)),A&&(Je=c.jsx("em",null,Je)),$&&(Je=c.jsx("u",null,Je)),Q&&(Je=c.jsx("s",null,Je)),ke&&(Je=c.jsx("sub",null,Je)),wt&&(Je=c.jsx("sup",null,Je)),Je},menus:[{key:"bold",factory:function(){return new ol}},{key:"underline",factory:function(){return new se}},{key:"italic",factory:function(){return new F}},{key:"through",factory:function(){return new H}},{key:"code",factory:function(){return new Hu}},{key:"sub",factory:function(){return new Ke}},{key:"sup",factory:function(){return new Oe}},{key:"clearStyle",factory:function(){return new We}}],styleToHtml:function(u,l){if(!f.Text.isText(u))return l;if(Bt(l))return wa(u,l);var p=O.default(l);if(en(p)==="br")return wa(u,"<br>");var E=p.html();return E=wa(u,E),p.html(E),fn(p)},parseStyleHtml:function(u,l,p){var E=O.default(u);if(!f.Text.isText(l))return l;var A=l;return ci(E,"b,strong")&&(A.bold=!0),ci(E,"i,em")&&(A.italic=!0),ci(E,"u")&&(A.underline=!0),ci(E,"s,strike")&&(A.through=!0),ci(E,"sub")&&(A.sub=!0),ci(E,"sup")&&(A.sup=!0),ci(E,"code")&&(A.code=!0),A}};function et(u){return function(l,p,E){var A="h"+u;return c.jsx(A,null,p)}}var rt={type:"header1",renderElem:et(1)},Ft={type:"header2",renderElem:et(2)},It={type:"header3",renderElem:et(3)},Zt={type:"header4",renderElem:et(4)},sn={type:"header5",renderElem:et(5)},Jt=Ci.PROPER,gr="toString",pr=RegExp.prototype,Lr=pr.toString,vi=Dt(va),Gr=Ee((function(){return Lr.call({source:"a",flags:"b"})!="/a/b"})),Qi=Jt&&Lr.name!=gr;(Gr||Qi)&&Xi(RegExp.prototype,gr,(function(){var u=Er(this),l=hi(u.source),p=u.flags;return"/"+l+"/"+hi(p===void 0&&at(pr,u)&&!("flags"in pr)?vi(u):p)}),{unsafe:!0});var ea,Mo=q.TypeError,To=function(u){if(Qu(u))throw Mo("The method doesn't accept regular expressions");return u},Ra=Pt("match"),rs=function(u){var l=/./;try{"/./"[u](l)}catch(p){try{return l[Ra]=!1,"/./"[u](l)}catch(E){}}return!1},is=cn.f,os=Dt("".startsWith),Ls=Dt("".slice),al=Math.min,ul=rs("startsWith");function C(u){var l=wr(f.Editor.nodes(u,{match:function(A){return n.DomEditor.getNodeType(A).startsWith("header")},universal:!0}),1),p=l[0];if(p==null)return"paragraph";var E=wr(p,1)[0];return n.DomEditor.getNodeType(E)}function V(u){return u.selection==null||!wr(f.Editor.nodes(u,{match:function(l){var p=n.DomEditor.getNodeType(l);return p==="paragraph"||!!p.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function ge(u,l){l&&f.Transforms.setNodes(u,{type:l})}qr({target:"String",proto:!0,forced:!!(ul||(ea=is(String.prototype,"startsWith"),!ea||ea.writable))&&!ul},{startsWith:function(u){var l=hi(Ye(this));To(u);var p=ko(al(arguments.length>1?arguments[1]:void 0,l.length)),E=hi(u);return os?os(l,E,p):Ls(l,p,p+E.length)===E}});var je=(function(){function u(){this.title=n.t("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 u.prototype.getOptions=function(l){var p=[{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:n.t("header.text")}],E=this.getValue(l).toString();return p.forEach((function(A){A.value===E?A.selected=!0:delete A.selected})),p},u.prototype.isActive=function(l){return!1},u.prototype.getValue=function(l){return C(l)},u.prototype.isDisabled=function(l){return V(l)},u.prototype.exec=function(l,p){ge(l,p.toString())},u})(),Le=(function(){function u(){this.tag="button"}return u.prototype.getValue=function(l){return C(l)},u.prototype.isActive=function(l){return this.getValue(l)===this.type},u.prototype.isDisabled=function(l){return V(l)},u.prototype.exec=function(l,p){var E=this.type;ge(l,p===E?"paragraph":E)},u})(),st=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title="H1",p.type="header1",p}return cr(l,u),l})(Le),Et=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title="H2",p.type="header2",p}return cr(l,u),l})(Le),Ze=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title="H3",p.type="header3",p}return cr(l,u),l})(Le),it=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title="H4",p.type="header4",p}return cr(l,u),l})(Le),Nt=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title="H5",p.type="header5",p}return cr(l,u),l})(Le),ft={key:"headerSelect",factory:function(){return new je}},vn={key:"header1",factory:function(){return new st}},dn={key:"header2",factory:function(){return new Et}},nn={key:"header3",factory:function(){return new Ze}},Br={key:"header4",factory:function(){return new it}},ar={key:"header5",factory:function(){return new Nt}};function Fn(u){return function(l,p){return"<h"+u+">"+p+"</h"+u+">"}}function Mn(u){return function(l,p,E){var A=O.default(l);return(p=p.filter((function($){return!!f.Text.isText($)||!!E.isInline($)}))).length===0&&(p=[{text:A.text().replace(/\s+/gm," ")}]),{type:"header"+u,children:p}}}var mn={renderElems:[rt,Ft,It,Zt,sn],elemsToHtml:[{type:"header1",elemToHtml:Fn(1)},{type:"header2",elemToHtml:Fn(2)},{type:"header3",elemToHtml:Fn(3)},{type:"header4",elemToHtml:Fn(4)},{type:"header5",elemToHtml:Fn(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Mn(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Mn(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Mn(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Mn(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Mn(5)}],menus:[ft,vn,dn,nn,Br,ar],editorPlugin:function(u){var l=u.insertBreak;u.insertNode;var p=u;return p.insertBreak=function(){var E=wr(f.Editor.nodes(p,{match:function(A){return n.DomEditor.getNodeType(A).startsWith("header")},universal:!0}),1)[0];E&&n.DomEditor.isSelectionAtLineEnd(u,E[1])?f.Transforms.insertNodes(p,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):l()},p}},zr=Object.assign,ki=Object.defineProperty,_i=Dt([].concat),ao=!zr||Ee((function(){if(ye&&zr({b:1},zr(ki({},"a",{enumerable:!0,get:function(){ki(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var u={},l={},p=Symbol(),E="abcdefghijklmnopqrst";return u[p]=7,E.split("").forEach((function(A){l[A]=A})),zr({},u)[p]!=7||Tu(zr({},l)).join("")!=E}))?function(u,l){for(var p=Ve(u),E=arguments.length,A=1,$=Ma.f,K=tn.f;E>A;)for(var Q,ke=xe(arguments[A++]),wt=$?_i(Tu(ke),$(ke)):Tu(ke),Je=wt.length,Ht=0;Je>Ht;)Q=wt[Ht++],ye&&!qe(K,ke,Q)||(p[Q]=ke[Q]);return p}:zr;function eo(u,l){u.data==null&&(u.data={});var p=u.data;p.style==null&&(p.style={}),Object.assign(p.style,l)}qr({target:"Object",stat:!0,forced:Object.assign!==ao},{assign:ao});var qa={selector:"font",preParseHtml:function(u){var l=O.default(u);if(en(l)!=="font")return u;var p=l.attr("color")||"";return p&&(l.removeAttr("color"),l.css("color",p)),l[0]}},Da=(function(){function u(){this.tag="button",this.showDropPanel=!0,this.$content=null}return u.prototype.exec=function(l,p){},u.prototype.getValue=function(l){var p=this.mark,E=f.Editor.marks(l);return E&&E[p]?E[p]:""},u.prototype.isActive=function(l){return!!this.getValue(l)},u.prototype.isDisabled=function(l){return l.selection==null||!!wr(f.Editor.nodes(l,{match:function(p){return n.DomEditor.getNodeType(p)==="pre"||!!f.Editor.isVoid(l,p)},universal:!0}),1)[0]},u.prototype.getPanelContentElem=function(l){var p=this.mark;if(this.$content==null){var E=O.default('<ul class="w-e-panel-content-color"></ul>');E.on("click","li",(function(wt){var Je=wt.target;if(Je!=null&&(wt.preventDefault(),l.selection!=null)){var Ht=O.default(Je).attr("data-value");Ht==="0"?f.Editor.removeMark(l,p):f.Editor.addMark(l,p,Ht)}})),this.$content=E}var A=this.$content;if(A==null)return document.createElement("ul");A.empty();var $=this.getValue(l),K=l.getMenuConfig(p).colors;(K===void 0?[]:K).forEach((function(wt){var Je=O.default('<div class="color-block" data-value="'+wt+'"></div>');Je.css("background-color",wt);var Ht=O.default('<li data-value="'+wt+'"></li>');$===wt&&Ht.addClass("active"),Ht.append(Je),A.append(Ht)}));var Q="";p==="color"&&(Q=n.t("color.default")),p==="bgColor"&&(Q=n.t("color.clear"));var ke=O.default(`
<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>
`+Q+`
</li>
`);return A.prepend(ke),A[0]},u})(),as=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("color.color"),p.iconSvg=rl,p.mark="color",p}return cr(l,u),l})(Da),Ms=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("color.bgColor"),p.iconSvg=il,p.mark="bgColor",p}return cr(l,u),l})(Da),sl=["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)"],ll={renderStyle:function(u,l){var p=u,E=p.color,A=p.bgColor,$=l;return E&&eo($,{color:E}),A&&eo($,{backgroundColor:A}),$},styleToHtml:function(u,l){if(!f.Text.isText(u))return l;var p,E=u,A=E.color,$=E.bgColor;return A||$?((Bt(l)||en(p=O.default(l))!=="span")&&(p=O.default("<span>"+l+"</span>")),A&&p.css("color",A),$&&p.css("background-color",$),fn(p)):l},preParseHtml:[qa],parseStyleHtml:function(u,l,p){var E=O.default(u);if(!f.Text.isText(l))return l;var A=l,$=_n(E,"color");$&&(A.color=$);var K=_n(E,"background-color");return K||(K=_n(E,"background")),K&&(A.bgColor=K),A},menus:[{key:"color",factory:function(){return new as},config:{colors:sl}},{key:"bgColor",factory:function(){return new Ms},config:{colors:sl}}]},vf=function(u){if(typeof u!="string")return!1;var l=u.match(ic);if(!l)return!1;var p=l[1];return p?!!(oc.test(p)||zl.test(p)):!1},ic=/^(?:\w+:)?\/\/(\S+)$/,oc=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,zl=/^[^\s\.]+\.\S{2,}$/,xd=Ai.includes;function Ys(u){return u===void 0&&(u="r"),u+"-"+P.nanoid()}function Hl(u){return u.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Tc(u,l,p,E){return oo(this,void 0,void 0,(function(){var A,$;return Lo(this,(function(K){switch(K.label){case 0:return(A=l.getMenuConfig(u).checkLink)?[4,A(p,E)]:[3,2];case 1:if(typeof($=K.sent())=="string")return l.alert($,"error"),[2,!1];if($==null)return[2,!1];K.label=2;case 2:return[2,!0]}}))}))}function Zs(u,l,p){return oo(this,void 0,void 0,(function(){var E;return Lo(this,(function(A){switch(A.label){case 0:return(E=l.getMenuConfig(u).parseLinkUrl)?[4,E(p)]:[3,2];case 1:return[2,A.sent()];case 2:return[2,p]}}))}))}function Tl(u){return u.selection==null||!!n.DomEditor.getSelectedElems(u).some((function(l){var p=l.type;return!!u.isVoid(l)||!!["pre","code","link"].includes(p)||void 0}))}function Uu(u,l){return{type:"link",url:Hl(u),children:l?[{text:l}]:[]}}function Bl(u,l,p){return oo(this,void 0,void 0,(function(){var E,A,$;return Lo(this,(function(K){switch(K.label){case 0:return p?(l||(l=p),u.restoreSelection(),Tl(u)?[2]:[4,Tc("insertLink",u,l,p)]):[2];case 1:return K.sent()?[4,Zs("insertLink",u,p)]:[2];case 2:return E=K.sent(),(A=u.selection)==null?[2]:(f.Range.isCollapsed(A)?(u.insertText(" "),$=Uu(E,l),f.Transforms.insertNodes(u,$),u.insertFragment([{text:" "}])):f.Editor.string(u,A)!==l?(u.deleteFragment(),$=Uu(E,l),f.Transforms.insertNodes(u,$)):($=Uu(E),f.Transforms.wrapNodes(u,$,{split:!0}),f.Transforms.collapse(u,{edge:"end"})),[2])}}))}))}qr({target:"Array",proto:!0},{includes:function(u){return xd(this,u,arguments.length>1?arguments[1]:void 0)}}),wu("includes");var Vf={type:"link",renderElem:function(u,l,p){var E=u,A=E.url,$=E.target,K=$===void 0?"_blank":$;return c.jsx("a",{href:A,target:K},l)}},Dd={type:"link",elemToHtml:function(u,l){var p=u,E=p.url,A=p.target;return'<a href="'+E+'" target="'+(A===void 0?"_blank":A)+'">'+l+"</a>"}},cl={selector:"a:not([data-w-e-type])",parseElemHtml:function(u,l,p){var E=O.default(u);return(l=l.filter((function(A){return!!f.Text.isText(A)||!!p.isInline(A)}))).length===0&&(l=[{text:E.text().replace(/\s+/gm," ")}]),{type:"link",url:E.attr("href")||"",target:E.attr("target")||"",children:l}}};function Ga(){return Ys("w-e-insert-link")}var Ul=(function(){function u(){this.title=n.t("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=Ga(),this.urlInputId=Ga(),this.buttonId=Ga()}return u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.exec=function(l,p){},u.prototype.isDisabled=function(l){return Tl(l)},u.prototype.getModalPositionNode=function(l){return null},u.prototype.getModalContentElem=function(l){var p=l.selection,E=this,A=E.textInputId,$=E.urlInputId,K=E.buttonId,Q=wr(n.genModalInputElems(n.t("link.text"),A),2),ke=Q[0],wt=Q[1],Je=O.default(wt),Ht=wr(n.genModalInputElems(n.t("link.url"),$),2),wn=Ht[0],on=Ht[1],Jn=O.default(on),hr=wr(n.genModalButtonElems(K,n.t("common.ok")),1)[0];if(this.$content==null){var xr=O.default("<div></div>");xr.on("click","#"+K,(function(mi){mi.preventDefault();var Hi=xr.find("#"+A).val(),i=xr.find("#"+$).val();Bl(l,Hi,i),l.hidePanelOrModal()})),this.$content=xr}var Cr=this.$content;if(Cr.empty(),Cr.append(ke),Cr.append(wn),Cr.append(hr),p==null||f.Range.isCollapsed(p))Je.val("");else{var vr=f.Editor.string(l,p);Je.val(vr)}return Jn.val(""),setTimeout((function(){Je.focus()})),Cr[0]},u})();function ac(){return Ys("w-e-update-link")}var Ds=(function(){function u(){this.title=n.t("link.edit"),this.iconSvg=js,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=ac(),this.buttonId=ac()}return u.prototype.getSelectedLinkElem=function(l){var p=n.DomEditor.getSelectedNodeByType(l,"link");return p==null?null:p},u.prototype.getValue=function(l){var p=this.getSelectedLinkElem(l);return p&&p.url||""},u.prototype.isActive=function(l){return!1},u.prototype.exec=function(l,p){},u.prototype.isDisabled=function(l){return l.selection==null||this.getSelectedLinkElem(l)==null},u.prototype.getModalPositionNode=function(l){return n.DomEditor.getSelectedNodeByType(l,"link")},u.prototype.getModalContentElem=function(l){var p=this.urlInputId,E=this.buttonId,A=wr(n.genModalInputElems(n.t("link.url"),p),2),$=A[0],K=A[1],Q=O.default(K),ke=wr(n.genModalButtonElems(E,n.t("common.ok")),1)[0];if(this.$content==null){var wt=O.default("<div></div>");wt.on("click","button",(function(wn){wn.preventDefault(),l.restoreSelection();var on=n.DomEditor.getSelectedNodeByType(l,"link"),Jn=on?f.Node.string(on):"",hr=wt.find("#"+p).val();(function(xr,Cr,vr){oo(this,void 0,void 0,(function(){var mi,Hi;return Lo(this,(function(i){switch(i.label){case 0:return vr?[4,Tc("editLink",xr,Cr,vr)]:[2];case 1:return i.sent()?[4,Zs("editLink",xr,vr)]:[2];case 2:return mi=i.sent(),Hi={url:Hl(mi)},f.Transforms.setNodes(xr,Hi,{match:function(o){return n.DomEditor.checkNodeType(o,"link")}}),[2]}}))}))})(l,Jn,hr),l.hidePanelOrModal()})),this.$content=wt}var Je=this.$content;Je.empty(),Je.append($),Je.append(ke);var Ht=this.getValue(l);return Q.val(Ht),setTimeout((function(){Q.focus()})),Je[0]},u})(),Bc=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return l.selection==null||n.DomEditor.getSelectedNodeByType(l,"link")==null},u.prototype.exec=function(l,p){this.isDisabled(l)||f.Transforms.unwrapNodes(l,{match:function(E){return n.DomEditor.checkNodeType(E,"link")}})},u})(),$s=(function(){function u(){this.title=n.t("link.view"),this.iconSvg=xu,this.tag="button"}return u.prototype.getSelectedLinkElem=function(l){var p=n.DomEditor.getSelectedNodeByType(l,"link");return p==null?null:p},u.prototype.getValue=function(l){var p=this.getSelectedLinkElem(l);return p&&p.url||""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return l.selection==null||this.getSelectedLinkElem(l)==null},u.prototype.exec=function(l,p){if(!this.isDisabled(l)){if(!p||typeof p!="string")throw new Error("View link failed, link url is '"+p+"'");window.open(p,"_blank")}},u})(),Wf={checkLink:function(u,l){return!0},parseLinkUrl:function(u){return u}},qf={renderElems:[Vf],elemsToHtml:[Dd],parseElemsHtml:[cl],menus:[{key:"insertLink",factory:function(){return new Ul},config:Wf},{key:"editLink",factory:function(){return new Ds},config:Wf},{key:"unLink",factory:function(){return new Bc}},{key:"viewLink",factory:function(){return new $s}}],editorPlugin:function(u){var l=u.isInline,p=u.insertData,E=u.normalizeNode;u.insertNode,u.insertText;var A=u;return A.isInline=function($){return $.type==="link"||l($)},A.insertData=function($){var K=$.getData("text/plain");if(vf(K)){if(!Tl(A)){var Q=A.selection;if(Q!=null){var ke=f.Editor.string(A,Q);Bl(A,ke,K)}}}else p($)},A.normalizeNode=function($){var K=wr($,2),Q=K[0],ke=K[1];return n.DomEditor.getNodeType(Q)!=="link"?E([Q,ke]):f.Node.string(Q)===""?f.Transforms.removeNodes(A,{at:ke}):E([Q,ke])},A}},mf=Dt(1 .valueOf),Vl=q.RangeError,yf=q.RangeError,zs=q.String,Fc=Math.floor,uc=Dt((function(u){var l=hi(Ye(this)),p="",E=po(u);if(E<0||E==1/0)throw Vl("Wrong number of repetitions");for(;E>0;(E>>>=1)&&(l+=l))1&E&&(p+=l);return p})),Wl=Dt("".slice),fl=Dt(1 .toFixed),Ss=function(u,l,p){return l===0?p:l%2==1?Ss(u,l-1,p*u):Ss(u*u,l/2,p)},Su=function(u,l,p){for(var E=-1,A=p;++E<6;)A+=l*u[E],u[E]=A%1e7,A=Fc(A/1e7)},sc=function(u,l){for(var p=6,E=0;--p>=0;)E+=u[p],u[p]=Fc(E/l),E=E%l*1e7},Cs=function(u){for(var l=6,p="";--l>=0;)if(p!==""||l===0||u[l]!==0){var E=zs(u[l]);p=p===""?E:p+uc("0",7-E.length)+E}return p};function us(u,l){return"w-e-image-container-"+n.DomEditor.findKey(u,l).id}function lc(u,l,p,E){var A=O.default("body"),$=us(u,l),K=E.width,Q=E.height,ke=0,wt=0,Je=0,Ht=!1,wn=null;function on(Cr){wn=(function(){var Hi=O.default("#"+$);if(Hi.length===0)throw new Error("Cannot find image container elem");return Hi})(),ke=Cr;var vr=wn.find("img");if(vr.length===0)throw new Error("Cannot find image elem");wt=vr.width(),Je=vr.height(),A.on("mousemove",Jn),A.on("mouseup",hr);var mi=n.DomEditor.getHoverbar(u);mi&&mi.hideAndClean()}var Jn=k.default((function(Cr){Cr.preventDefault();var vr=Cr.clientX,mi=wt+(Ht?ke-vr:vr-ke),Hi=Je*(mi/wt);wn!=null&&(mi<=15||Hi<=15||(wn.css("width",mi+"px"),wn.css("height",Hi+"px")))}),100);function hr(Cr){if(A.off("mousemove",Jn),wn!=null){var vr=wn.width().toFixed(2),mi=wn.height().toFixed(2),Hi={style:Vi(Vi({},l.style),{width:vr+"px",height:mi+"px"})};f.Transforms.setNodes(u,Hi,{at:n.DomEditor.findPath(u,l)}),A.off("mouseup",hr)}}var xr={};return K&&(xr.width=K),Q&&(xr.height=Q),c.jsx("div",{id:$,style:xr,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Cr){var vr=O.default(Cr.target);vr.hasClass("w-e-image-dragger")&&(Cr.preventDefault(),(vr.hasClass("left-top")||vr.hasClass("left-bottom"))&&(Ht=!0),on(Cr.clientX))}}},p,c.jsx("div",{className:"w-e-image-dragger left-top"}),c.jsx("div",{className:"w-e-image-dragger right-top"}),c.jsx("div",{className:"w-e-image-dragger left-bottom"}),c.jsx("div",{className:"w-e-image-dragger right-bottom"}))}qr({target:"Number",proto:!0,forced:Ee((function(){return fl(8e-5,3)!=="0.000"||fl(.9,0)!=="1"||fl(1.255,2)!=="1.25"||fl(0xde0b6b3a7640080,0)!=="1000000000000000128"}))||!Ee((function(){fl({})}))},{toFixed:function(u){var l,p,E,A,$=mf(this),K=po(u),Q=[0,0,0,0,0,0],ke="",wt="0";if(K<0||K>20)throw yf("Incorrect fraction digits");if($!=$)return"NaN";if($<=-1e21||$>=1e21)return zs($);if($<0&&(ke="-",$=-$),$>1e-21)if(p=(l=(function(Je){for(var Ht=0,wn=Je;wn>=4096;)Ht+=12,wn/=4096;for(;wn>=2;)Ht+=1,wn/=2;return Ht})($*Ss(2,69,1))-69)<0?$*Ss(2,-l,1):$/Ss(2,l,1),p*=4503599627370496,(l=52-l)>0){for(Su(Q,0,p),E=K;E>=7;)Su(Q,1e7,0),E-=7;for(Su(Q,Ss(10,E,1),0),E=l-1;E>=23;)sc(Q,1<<23),E-=23;sc(Q,1<<E),Su(Q,1,1),sc(Q,2),wt=Cs(Q)}else Su(Q,0,p),Su(Q,1<<-l,0),wt=Cs(Q)+uc("0",K);return wt=K>0?ke+((A=wt.length)<=K?"0."+uc("0",K-A)+wt:Wl(wt,0,A-K)+"."+Wl(wt,A-K)):ke+wt}});var Pc={type:"image",renderElem:function(u,l,p){var E=u,A=E.src,$=E.alt,K=$===void 0?"":$,Q=E.href,ke=Q===void 0?"":Q,wt=E.style,Je=wt===void 0?{}:wt,Ht=Je.width,wn=Ht===void 0?"":Ht,on=Je.height,Jn=on===void 0?"":on,hr=n.DomEditor.isNodeSelected(p,u),xr={};wn&&(xr.width="100%"),Jn&&(xr.height="100%");var Cr=c.jsx("img",{style:xr,src:A,alt:K,"data-href":ke}),vr=p.isDisabled();return hr&&!vr?lc(p,u,Cr,{width:wn,height:Jn}):(function(mi,Hi,i,o){var a=o.width,s=o.height,d={};a&&(d.width=a),s&&(d.height=s);var g=us(mi,Hi);return c.jsx("div",{id:g,style:d,className:"w-e-image-container"},i)})(p,u,Cr,{width:wn,height:Jn})}},kc={type:"image",elemToHtml:function(u,l){var p=u,E=p.src,A=p.alt,$=A===void 0?"":A,K=p.href,Q=K===void 0?"":K,ke=p.style,wt=ke===void 0?{}:ke,Je=wt.width,Ht=Je===void 0?"":Je,wn=wt.height,on=wn===void 0?"":wn,Jn="";return Ht&&(Jn+="width: "+Ht+";"),on&&(Jn+="height: "+on+";"),'<img src="'+E+'" alt="'+$+'" data-href="'+Q+'" style="'+Jn+'"/>'}},ql={selector:"img:not([data-w-e-type])",parseElemHtml:function(u,l,p){var E=O.default(u),A=E.attr("data-href")||"";return A=decodeURIComponent(A),{type:"image",src:E.attr("src")||"",alt:E.attr("alt")||"",href:A,style:{width:_n(E,"width"),height:_n(E,"height")},children:[{text:""}]}}};function cc(u,l,p,E,A){return E===void 0&&(E=""),A===void 0&&(A=""),oo(this,void 0,void 0,(function(){var $,K;return Lo(this,(function(Q){switch(Q.label){case 0:return($=l.getMenuConfig(u).checkImage)?[4,$(p,E,A)]:[3,2];case 1:if(typeof(K=Q.sent())=="string")return l.alert(K,"error"),[2,!1];if(K==null)return[2,!1];Q.label=2;case 2:return[2,!0]}}))}))}function Nc(u,l,p){return oo(this,void 0,void 0,(function(){var E;return Lo(this,(function(A){switch(A.label){case 0:return(E=l.getMenuConfig(u).parseImageSrc)?[4,E(p)]:[3,2];case 1:return[2,A.sent()];case 2:return[2,p]}}))}))}function dl(u,l,p,E){return p===void 0&&(p=""),E===void 0&&(E=""),oo(this,void 0,void 0,(function(){var A,$,K;return Lo(this,(function(Q){switch(Q.label){case 0:return[4,cc("insertImage",u,l,p,E)];case 1:return Q.sent()?[4,Nc("insertImage",u,l)]:[2];case 2:return A=Q.sent(),$={type:"image",src:Hl(A),href:E,alt:p,style:{},children:[{text:""}]},u.selection===null&&u.restoreSelection(),n.DomEditor.getSelectedNodeByType(u,"image")&&u.move(1),Gl(u)?[2]:(f.Transforms.insertNodes(u,$),(K=u.getMenuConfig("insertImage").onInsertedImage)&&K($),[2])}}))}))}function Ic(u,l,p,E,A){return p===void 0&&(p=""),E===void 0&&(E=""),A===void 0&&(A={}),oo(this,void 0,void 0,(function(){var $,K,Q,ke,wt,Je;return Lo(this,(function(Ht){switch(Ht.label){case 0:return[4,cc("editImage",u,l,p,E)];case 1:return Ht.sent()?[4,Nc("editImage",u,l)]:[2];case 2:return $=Ht.sent(),(K=n.DomEditor.getSelectedNodeByType(u,"image"))==null?[2]:(Q=K.style,ke={src:$,alt:p,href:E,style:Vi(Vi({},Q===void 0?{}:Q),A)},f.Transforms.setNodes(u,ke,{match:function(wn){return n.DomEditor.checkNodeType(wn,"image")}}),wt=n.DomEditor.getSelectedNodeByType(u,"image"),(Je=u.getMenuConfig("editImage").onUpdatedImage)&&Je(wt),[2])}}))}))}function Gl(u){var l=u.selection;return l==null||!f.Range.isCollapsed(l)||!!wr(f.Editor.nodes(u,{match:function(p){var E=n.DomEditor.getNodeType(p);return E==="code"||E==="pre"||E==="link"||E==="list-item"||!!E.startsWith("header")||E==="blockquote"||!!f.Editor.isVoid(u,p)},universal:!0}),1)[0]}function Js(){return Ys("w-e-insert-image")}var Rc=(function(){function u(){this.title=n.t("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=Js(),this.altInputId=Js(),this.hrefInputId=Js(),this.buttonId=Js()}return u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.exec=function(l,p){},u.prototype.isDisabled=function(l){return Gl(l)},u.prototype.getModalPositionNode=function(l){return null},u.prototype.getModalContentElem=function(l){var p=this,E=this,A=E.srcInputId,$=E.altInputId,K=E.hrefInputId,Q=E.buttonId,ke=wr(n.genModalInputElems(n.t("image.src"),A),2),wt=ke[0],Je=ke[1],Ht=O.default(Je),wn=wr(n.genModalInputElems(n.t("image.desc"),$),2),on=wn[0],Jn=wn[1],hr=O.default(Jn),xr=wr(n.genModalInputElems(n.t("image.link"),K),2),Cr=xr[0],vr=xr[1],mi=O.default(vr),Hi=wr(n.genModalButtonElems(Q,n.t("common.ok")),1)[0];if(this.$content==null){var i=O.default("<div></div>");i.on("click","#"+Q,(function(a){a.preventDefault();var s=i.find("#"+A).val().trim(),d=i.find("#"+$).val().trim(),g=i.find("#"+K).val().trim();p.insertImage(l,s,d,g),l.hidePanelOrModal()})),this.$content=i}var o=this.$content;return o.empty(),o.append(wt),o.append(on),o.append(Cr),o.append(Hi),Ht.val(""),hr.val(""),mi.val(""),setTimeout((function(){Ht.focus()})),o[0]},u.prototype.insertImage=function(l,p,E,A){E===void 0&&(E=""),A===void 0&&(A=""),p&&(l.restoreSelection(),this.isDisabled(l)||dl(l,p,E,A))},u})(),pl=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return l.selection==null||n.DomEditor.getSelectedNodeByType(l,"image")==null},u.prototype.exec=function(l,p){this.isDisabled(l)||f.Transforms.removeNodes(l,{match:function(E){return n.DomEditor.checkNodeType(E,"image")}})},u})();function Hs(){return Ys("w-e-edit-image")}var jc=(function(){function u(){this.title=n.t("image.edit"),this.iconSvg=js,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Hs(),this.altInputId=Hs(),this.hrefInputId=Hs(),this.buttonId=Hs()}return u.prototype.getValue=function(l){return""},u.prototype.getImageNode=function(l){return n.DomEditor.getSelectedNodeByType(l,"image")},u.prototype.isActive=function(l){return!1},u.prototype.exec=function(l,p){},u.prototype.isDisabled=function(l){var p=l.selection;return p==null||!f.Range.isCollapsed(p)||n.DomEditor.getSelectedNodeByType(l,"image")==null},u.prototype.getModalPositionNode=function(l){return this.getImageNode(l)},u.prototype.getModalContentElem=function(l){var p=this,E=this,A=E.srcInputId,$=E.altInputId,K=E.hrefInputId,Q=E.buttonId,ke=this.getImageNode(l);if(ke==null)throw new Error("Not found selected image node");var wt=wr(n.genModalInputElems(n.t("image.src"),A),2),Je=wt[0],Ht=wt[1],wn=O.default(Ht),on=wr(n.genModalInputElems(n.t("image.desc"),$),2),Jn=on[0],hr=on[1],xr=O.default(hr),Cr=wr(n.genModalInputElems(n.t("image.link"),K),2),vr=Cr[0],mi=Cr[1],Hi=O.default(mi),i=wr(n.genModalButtonElems(Q,n.t("common.ok")),1)[0];if(this.$content==null){var o=O.default("<div></div>");o.on("click","#"+Q,(function(I){I.preventDefault();var j=o.find("#"+A).val(),U=o.find("#"+$).val(),Z=o.find("#"+K).val();p.updateImage(l,j,U,Z),l.hidePanelOrModal()})),this.$content=o}var a=this.$content;a.empty(),a.append(Je),a.append(Jn),a.append(vr),a.append(i);var s=ke,d=s.src,g=s.alt,y=g===void 0?"":g,w=s.href,D=w===void 0?"":w;return wn.val(d),xr.val(y),Hi.val(D),setTimeout((function(){wn.focus()})),a[0]},u.prototype.updateImage=function(l,p,E,A,$){E===void 0&&(E=""),A===void 0&&(A=""),$===void 0&&($={}),p&&(l.restoreSelection(),this.isDisabled(l)||Ic(l,p,E,A,$))},u})(),fc=(function(){function u(){this.title=n.t("image.viewLink"),this.iconSvg=xu,this.tag="button"}return u.prototype.getValue=function(l){var p=n.DomEditor.getSelectedNodeByType(l,"image");return p&&p.href||""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return l.selection==null||!this.getValue(l)},u.prototype.exec=function(l,p){if(!this.isDisabled(l)){if(!p||typeof p!="string")throw new Error("View image link failed, image.href is '"+p+"'");window.open(p,"_blank")}},u})(),Us=(function(){function u(){this.tag="button"}return u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.getSelectedNode=function(l){return n.DomEditor.getSelectedNodeByType(l,"image")},u.prototype.isDisabled=function(l){return l.selection==null||this.getSelectedNode(l)==null},u.prototype.exec=function(l,p){if(!this.isDisabled(l)){var E=this.getSelectedNode(l);if(E!=null){var A=n.DomEditor.getHoverbar(l);A&&A.hideAndClean();var $=E.style,K={style:Vi(Vi({},$===void 0?{}:$),{width:this.value,height:""})};f.Transforms.setNodes(l,K,{match:function(Q){return n.DomEditor.checkNodeType(Q,"image")}})}}},u})(),dc=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title="30%",p.value="30%",p}return cr(l,u),l})(Us),Fl=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title="50%",p.value="50%",p}return cr(l,u),l})(Us),Lc=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title="100%",p.value="100%",p}return cr(l,u),l})(Us),Qs={onInsertedImage:function(u){},onUpdatedImage:function(u){},checkImage:function(u,l,p){return!0},parseImageSrc:function(u){return u}},Mc={renderElems:[Pc],elemsToHtml:[kc],parseElemsHtml:[ql],menus:[{key:"insertImage",factory:function(){return new Rc},config:Qs},{key:"deleteImage",factory:function(){return new pl}},{key:"editImage",factory:function(){return new jc},config:Qs},{key:"viewImageLink",factory:function(){return new fc}},{key:"imageWidth30",factory:function(){return new dc}},{key:"imageWidth50",factory:function(){return new Fl}},{key:"imageWidth100",factory:function(){return new Lc}}],editorPlugin:function(u){var l=u.isInline,p=u.isVoid;u.insertNode;var E=u;return E.isInline=function(A){return A.type==="image"||l(A)},E.isVoid=function(A){return A.type==="image"||p(A)},E}},$c={type:"todo",renderElem:function(u,l,p){var E=!1;p.isDisabled()&&(E=!0);var A=u.checked,$=c.jsx("div",{style:{margin:"5px 0"}},c.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em"}},c.jsx("input",{type:"checkbox",checked:A,disabled:E,on:{change:function(K){var Q=n.DomEditor.findPath(p,u),ke={checked:K.target.checked};f.Transforms.setNodes(p,ke,{at:Q})}}})),c.jsx("span",null,l));return $}},zc=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!!n.DomEditor.getSelectedNodeByType(l,"todo")},u.prototype.isDisabled=function(l){return l.selection==null||!!n.DomEditor.getSelectedElems(l).some((function(p){if(f.Editor.isVoid(l,p)&&f.Editor.isBlock(l,p))return!0;var E=p.type;return!!["pre","table","list-item"].includes(E)||void 0}))},u.prototype.exec=function(l,p){var E=this.isActive(l);f.Transforms.setNodes(l,{type:E?"paragraph":"todo"})},u})(),Sd={renderElems:[$c],elemsToHtml:[{type:"todo",elemToHtml:function(u,l){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(u.checked?"checked":"")+">"+l+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(u){var l=O.default(u).find("li"),p=O.default('<div data-w-e-type="todo"></div>'),E=l.find("input[type]");return p.append(E),l.children()[0].remove(),p[0].innerHTML=p[0].innerHTML+l[0].innerHTML,p[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(u,l,p){var E=O.default(u);(l=l.filter((function($){return!!f.Text.isText($)||!!p.isInline($)}))).length===0&&(l=[{text:E.text().replace(/\s+/gm," ")}]);var A=!1;return E.find('input[type="checkbox"]').attr("checked")!=null&&(A=!0),{type:"todo",checked:A,children:l}}}],menus:[{key:"todo",factory:function(){return new zc}}],editorPlugin:function(u){var l=u.deleteBackward,p=u;return p.deleteBackward=function(E){var A=u.selection;if(A&&f.Range.isCollapsed(A)){var $=n.DomEditor.getSelectedNodeByType(u,"todo");if($&&f.Node.string($).length===0)return void f.Transforms.setNodes(u,{type:"paragraph"},{mode:"highest"})}l(E)},p}},v={type:"blockquote",renderElem:function(u,l,p){return c.jsx("blockquote",null,l)}},R={type:"blockquote",elemToHtml:function(u,l){return"<blockquote>"+l+"</blockquote>"}},G={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(u,l,p){var E=O.default(u);return(l=l.filter((function(A){return!!f.Text.isText(A)||!!p.isInline(A)}))).length===0&&(l=[{text:E.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:l}}},pe=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!!n.DomEditor.getSelectedNodeByType(l,"blockquote")},u.prototype.isDisabled=function(l){return l.selection==null||!wr(f.Editor.nodes(l,{match:function(p){var E=n.DomEditor.getNodeType(p);return E==="paragraph"||E==="blockquote"},universal:!0,mode:"highest"}),1)[0]},u.prototype.exec=function(l,p){if(!this.isDisabled(l)){var E=this.isActive(l)?"paragraph":"blockquote";f.Transforms.setNodes(l,{type:E},{mode:"highest"})}},u})(),he={key:"blockquote",factory:function(){return new pe}},Ue=Dt([].slice),Xe=ga("slice"),Ne=Pt("species"),ut=q.Array,Tt=Math.max;qr({target:"Array",proto:!0,forced:!Xe},{slice:function(u,l){var p,E,A,$=oe(this),K=Eo($),Q=Yi(u,K),ke=Yi(l===void 0?K:l,K);if(ho($)&&(p=$.constructor,(Ri(p)&&(p===ut||ho(p.prototype))||Gt(p)&&(p=p[Ne])===null)&&(p=void 0),p===ut||p===void 0))return Ue($,Q,ke);for(E=new(p===void 0?ut:p)(Tt(ke-Q,0)),A=0;Q<ke;Q++,A++)Q in $&&Gs(E,A,$[Q]);return E.length=A,E}});var mt={renderElems:[v],elemsToHtml:[R],parseElemsHtml:[G],menus:[he],editorPlugin:function(u){var l=u.insertBreak,p=u.insertText,E=u;return E.insertBreak=function(){var A=E.selection;if(A==null)return l();var $=wr(f.Editor.nodes(u,{match:function(Je){return n.DomEditor.checkNodeType(Je,"blockquote")},universal:!0}),1)[0];if(!$)return l();var K=$[0],Q=n.DomEditor.findPath(u,K),ke=f.Editor.end(u,Q);if(f.Point.equals(ke,A.focus)){var wt=f.Node.string(K);if(wt&&wt.slice(-1)===`
`)return u.deleteBackward("character"),void f.Transforms.insertNodes(E,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}p(`
`)},E}},nr=(function(){function u(){this.title=n.t("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 u.prototype.exec=function(l,p){},u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return l.selection==null||!!wr(f.Editor.nodes(l,{match:function(p){return n.DomEditor.getNodeType(p)==="pre"||!!f.Editor.isVoid(l,p)},universal:!0}),1)[0]},u.prototype.getPanelContentElem=function(l){if(this.$content==null){var p=O.default('<ul class="w-e-panel-content-emotion"></ul>');p.on("click","li",(function($){var K=$.target;if(K!=null){$.preventDefault();var Q=O.default(K).text();l.insertText(Q)}})),this.$content=p}var E=this.$content;if(E==null)return document.createElement("ul");E.empty();var A=l.getMenuConfig("emotion").emotions;return(A===void 0?[]:A).forEach((function($){var K=O.default("<li>"+$+"</li>");E.append(K)})),E[0]},u})(),rr={menus:[{key:"emotion",factory:function(){return new nr},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},pn={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},ei={selector:"font",preParseHtml:function(u){var l=O.default(u);if(en(l)!=="font")return u;var p=l.attr("size")||"";p&&(l.removeAttr("size"),l.css("font-size",pn[p]));var E=l.attr("face")||"";return E&&(l.removeAttr("face"),l.css("font-family",E)),l[0]}},ur=Dt("".indexOf);qr({target:"String",proto:!0,forced:!rs("includes")},{includes:function(u){return!!~ur(hi(Ye(this)),hi(To(u)),arguments.length>1?arguments[1]:void 0)}});var Rn,Sr,ir=function(u){return u&&u.Math==Math&&u},Yn=ir(typeof globalThis=="object"&&globalThis)||ir(typeof window=="object"&&window)||ir(typeof self=="object"&&self)||ir(typeof W=="object"&&W)||(function(){return this})()||Function("return this")(),$o=Function.prototype,Cu=$o.apply,_t=$o.bind,hl=$o.call,bf=typeof Reflect=="object"&&Reflect.apply||(_t?hl.bind(Cu):function(){return hl.apply(Cu,arguments)}),Pl=Function.prototype,Ef=Pl.bind,el=Pl.call,Kl=Ef&&Ef.bind(el),fo=Ef?function(u){return u&&Kl(el,u)}:function(u){return u&&function(){return el.apply(u,arguments)}},h=function(u){return typeof u=="function"},N=function(u){try{return!!u()}catch(l){return!0}},M=!N((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),J=Function.prototype.call,ae=J.bind?J.bind(J):function(){return J.apply(J,arguments)},Pe={}.propertyIsEnumerable,ze=Object.getOwnPropertyDescriptor,_e=ze&&!Pe.call({1:2},1)?function(u){var l=ze(this,u);return!!l&&l.enumerable}:Pe,tt={f:_e},yt=function(u,l){return{enumerable:!(1&u),configurable:!(2&u),writable:!(4&u),value:l}},pt=fo({}.toString),Pn=fo("".slice),Tn=function(u){return Pn(pt(u),8,-1)},En=Yn.Object,Yr=fo("".split),sr=N((function(){return!En("z").propertyIsEnumerable(0)}))?function(u){return Tn(u)=="String"?Yr(u,""):En(u)}:En,or=Yn.TypeError,Zn=function(u){if(u==null)throw or("Can't call method on "+u);return u},On=function(u){return sr(Zn(u))},ti=function(u){return typeof u=="object"?u!==null:h(u)},oi={},zi=function(u){return h(u)?u:void 0},Ka=function(u,l){return arguments.length<2?zi(oi[u])||zi(Yn[u]):oi[u]&&oi[u][l]||Yn[u]&&Yn[u][l]},fa=fo({}.isPrototypeOf),gl=Ka("navigator","userAgent")||"",pc=Yn.process,Cd=Yn.Deno,Gf=pc&&pc.versions||Cd&&Cd.version,ip=Gf&&Gf.v8;ip&&(Sr=(Rn=ip.split("."))[0]>0&&Rn[0]<4?1:+(Rn[0]+Rn[1])),!Sr&&gl&&(!(Rn=gl.match(/Edge\/(\d+)/))||Rn[1]>=74)&&(Rn=gl.match(/Chrome\/(\d+)/))&&(Sr=+Rn[1]);var wf=Sr,Xl=!!Object.getOwnPropertySymbols&&!N((function(){var u=Symbol();return!String(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&wf&&wf<41})),Ad=Xl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_d=Yn.Object,Kf=Ad?function(u){return typeof u=="symbol"}:function(u){var l=Ka("Symbol");return h(l)&&fa(l.prototype,_d(u))},oh=Yn.String,ah=Yn.TypeError,uh=function(u){if(h(u))return u;throw ah((function(l){try{return oh(l)}catch(p){return"Object"}})(u)+" is not a function")},Ag=Yn.TypeError,Od=Object.defineProperty,Hc="__core-js_shared__",vl=Yn[Hc]||(function(u,l){try{Od(Yn,u,{value:l,configurable:!0,writable:!0})}catch(p){Yn[u]=l}return l})(Hc,{}),ml=te((function(u){(u.exports=function(l,p){return vl[l]||(vl[l]=p!==void 0?p:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),sh=Yn.Object,xf=function(u){return sh(Zn(u))},lh=fo({}.hasOwnProperty),Oi=Object.hasOwn||function(u,l){return lh(xf(u),l)},_g=0,Lv=Math.random(),Mv=fo(1 .toString),op=function(u){return"Symbol("+(u===void 0?"":u)+")_"+Mv(++_g+Lv,36)},Df=ml("wks"),Uc=Yn.Symbol,ch=Uc&&Uc.for,Og=Ad?Uc:Uc&&Uc.withoutSetter||op,ss=function(u){if(!Oi(Df,u)||!Xl&&typeof Df[u]!="string"){var l="Symbol."+u;Xl&&Oi(Uc,u)?Df[u]=Uc[u]:Df[u]=Ad&&ch?ch(l):Og(l)}return Df[u]},Tg=Yn.TypeError,Bg=ss("toPrimitive"),fh=function(u,l){if(!ti(u)||Kf(u))return u;var p,E,A=(p=u[Bg])==null?void 0:uh(p);if(A){if(l===void 0&&(l="default"),E=ae(A,u,l),!ti(E)||Kf(E))return E;throw Tg("Can't convert object to primitive value")}return l===void 0&&(l="number"),(function($,K){var Q,ke;if(K==="string"&&h(Q=$.toString)&&!ti(ke=ae(Q,$))||h(Q=$.valueOf)&&!ti(ke=ae(Q,$))||K!=="string"&&h(Q=$.toString)&&!ti(ke=ae(Q,$)))return ke;throw Ag("Can't convert object to primitive value")})(u,l)},Sf=function(u){var l=fh(u,"string");return Kf(l)?l:l+""},ap=Yn.document,Fg=ti(ap)&&ti(ap.createElement),dh=function(u){return Fg?ap.createElement(u):{}},Pg=!M&&!N((function(){return Object.defineProperty(dh("div"),"a",{get:function(){return 7}}).a!=7})),up=Object.getOwnPropertyDescriptor,Td={f:M?up:function(u,l){if(u=On(u),l=Sf(l),Pg)try{return up(u,l)}catch(p){}if(Oi(u,l))return yt(!ae(tt.f,u,l),u[l])}},$v=/#|\.prototype\./,Xf=function(u,l){var p=Yl[zv(u)];return p==Hv||p!=kg&&(h(l)?N(l):!!l)},zv=Xf.normalize=function(u){return String(u).replace($v,".").toLowerCase()},Yl=Xf.data={},kg=Xf.NATIVE="N",Hv=Xf.POLYFILL="P",Uv=Xf,Vc=fo(fo.bind),kl=function(u,l){return uh(u),l===void 0?u:Vc?Vc(u,l):function(){return u.apply(l,arguments)}},Bd=Yn.String,Ng=Yn.TypeError,hc=function(u){if(ti(u))return u;throw Ng(Bd(u)+" is not an object")},ph=Yn.TypeError,Cf=Object.defineProperty,Af={f:M?Cf:function(u,l,p){if(hc(u),l=Sf(l),hc(p),Pg)try{return Cf(u,l,p)}catch(E){}if("get"in p||"set"in p)throw ph("Accessors not supported");return"value"in p&&(u[l]=p.value),u}},Zl=M?function(u,l,p){return Af.f(u,l,yt(1,p))}:function(u,l,p){return u[l]=p,u},Ig=Td.f,Rg=function(u){var l=function(p,E,A){if(this instanceof l){switch(arguments.length){case 0:return new u;case 1:return new u(p);case 2:return new u(p,E)}return new u(p,E,A)}return bf(u,this,arguments)};return l.prototype=u.prototype,l},gc=function(u,l){var p,E,A,$,K,Q,ke,wt,Je=u.target,Ht=u.global,wn=u.stat,on=u.proto,Jn=Ht?Yn:wn?Yn[Je]:(Yn[Je]||{}).prototype,hr=Ht?oi:oi[Je]||Zl(oi,Je,{})[Je],xr=hr.prototype;for(A in l)p=!Uv(Ht?A:Je+(wn?".":"#")+A,u.forced)&&Jn&&Oi(Jn,A),K=hr[A],p&&(Q=u.noTargetGet?(wt=Ig(Jn,A))&&wt.value:Jn[A]),$=p&&Q?Q:l[A],p&&typeof K==typeof $||(ke=u.bind&&p?kl($,Yn):u.wrap&&p?Rg($):on&&h($)?fo($):$,(u.sham||$&&$.sham||K&&K.sham)&&Zl(ke,"sham",!0),Zl(hr,A,ke),on&&(Oi(oi,E=Je+"Prototype")||Zl(oi,E,{}),Zl(oi[E],A,$),u.real&&xr&&!xr[A]&&Zl(xr,A,$)))},Wc=Array.isArray||function(u){return Tn(u)=="Array"},Vv=Math.ceil,jg=Math.floor,Fd=function(u){var l=+u;return l!=l||l===0?0:(l>0?jg:Vv)(l)},Lg=Math.min,sp=function(u){return(l=u.length)>0?Lg(Fd(l),9007199254740991):0;var l},lp=function(u,l,p){var E=Sf(l);E in u?Af.f(u,E,yt(0,p)):u[E]=p},Mg={};Mg[ss("toStringTag")]="z";var qc=String(Mg)==="[object z]",Yf=ss("toStringTag"),hh=Yn.Object,Zf=Tn((function(){return arguments})())=="Arguments",Pd=qc?Tn:function(u){var l,p,E;return u===void 0?"Undefined":u===null?"Null":typeof(p=(function(A,$){try{return A[$]}catch(K){}})(l=hh(u),Yf))=="string"?p:Zf?Tn(l):(E=Tn(l))=="Object"&&h(l.callee)?"Arguments":E},Wv=fo(Function.toString);h(vl.inspectSource)||(vl.inspectSource=function(u){return Wv(u)});var gh=vl.inspectSource,$g=function(){},Jf=[],Qf=Ka("Reflect","construct"),vh=/^\s*(?:class|function)\b/,yl=fo(vh.exec),zg=!vh.exec($g),ed=function(u){if(!h(u))return!1;try{return Qf($g,Jf,u),!0}catch(l){return!1}},Hg=!Qf||N((function(){var u;return ed(ed.call)||!ed(Object)||!ed((function(){u=!0}))||u}))?function(u){if(!h(u))return!1;switch(Pd(u)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zg||!!yl(vh,gh(u))}:ed,Ug=ss("species"),cp=Yn.Array,fp=function(u,l){return new((function(p){var E;return Wc(p)&&(E=p.constructor,(Hg(E)&&(E===cp||Wc(E.prototype))||ti(E)&&(E=E[Ug])===null)&&(E=void 0)),E===void 0?cp:E})(u))(l===0?0:l)},dp=ss("species"),td=ss("isConcatSpreadable"),Vg=9007199254740991,Wg="Maximum allowed index exceeded",qg=Yn.TypeError,qv=wf>=51||!N((function(){var u=[];return u[td]=!1,u.concat()[0]!==u})),vc=(function(u){return wf>=51||!N((function(){var l=[];return(l.constructor={})[dp]=function(){return{foo:1}},l[u](Boolean).foo!==1}))})("concat"),nd=function(u){if(!ti(u))return!1;var l=u[td];return l!==void 0?!!l:Wc(u)};gc({target:"Array",proto:!0,forced:!qv||!vc},{concat:function(u){var l,p,E,A,$,K=xf(this),Q=fp(K,0),ke=0;for(l=-1,E=arguments.length;l<E;l++)if(nd($=l===-1?K:arguments[l])){if(ke+(A=sp($))>Vg)throw qg(Wg);for(p=0;p<A;p++,ke++)p in $&&lp(Q,ke,$[p])}else{if(ke>=Vg)throw qg(Wg);lp(Q,ke++,$)}return Q.length=ke,Q}});var pp,Gv=Yn.String,hp=function(u){if(Pd(u)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Gv(u)},gp=Math.max,Gg=Math.min,vp=function(u,l){var p=Fd(u);return p<0?gp(p+l,0):Gg(p,l)},Kg=function(u){return function(l,p,E){var A,$=On(l),K=sp($),Q=vp(E,K);if(u&&p!=p){for(;K>Q;)if((A=$[Q++])!=A)return!0}else for(;K>Q;Q++)if((u||Q in $)&&$[Q]===p)return u||Q||0;return!u&&-1}},Kv={includes:Kg(!0),indexOf:Kg(!1)},Nl={},mh=Kv.indexOf,Xg=fo([].push),yh=function(u,l){var p,E=On(u),A=0,$=[];for(p in E)!Oi(Nl,p)&&Oi(E,p)&&Xg($,p);for(;l.length>A;)Oi(E,p=l[A++])&&(~mh($,p)||Xg($,p));return $},mp=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bh=Object.keys||function(u){return yh(u,mp)},Gc=M?Object.defineProperties:function(u,l){hc(u);for(var p,E=On(l),A=bh(l),$=A.length,K=0;$>K;)Af.f(u,p=A[K++],E[p]);return u},Xv=Ka("document","documentElement"),Eh=ml("keys"),kd=function(u){return Eh[u]||(Eh[u]=op(u))},Yg=kd("IE_PROTO"),yp=function(){},wh=function(u){return"<script>"+u+"<\/script>"},Zg=function(u){u.write(wh("")),u.close();var l=u.parentWindow.Object;return u=null,l},rd=function(){try{pp=new ActiveXObject("htmlfile")}catch(E){}var u,l;rd=typeof document!="undefined"?document.domain&&pp?Zg(pp):((l=dh("iframe")).style.display="none",Xv.appendChild(l),l.src="javascript:",(u=l.contentWindow.document).open(),u.write(wh("document.F=Object")),u.close(),u.F):Zg(pp);for(var p=mp.length;p--;)delete rd.prototype[mp[p]];return rd()};Nl[Yg]=!0;var id,_f,Nd,Kc=Object.create||function(u,l){var p;return u!==null?(yp.prototype=hc(u),p=new yp,yp.prototype=null,p[Yg]=u):p=rd(),l===void 0?p:Gc(p,l)},Yv=mp.concat("length","prototype"),xh={f:Object.getOwnPropertyNames||function(u){return yh(u,Yv)}},Jg=Yn.Array,Dh=Math.max,Qg=xh.f,Sh=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],e0=function(u){try{return Qg(u)}catch(l){return(function(p,E,A){for(var $=sp(p),K=vp(E,$),Q=vp(A===void 0?$:A,$),ke=Jg(Dh(Q-K,0)),wt=0;K<Q;K++,wt++)lp(ke,wt,p[K]);return ke.length=wt,ke})(Sh)}},t0={f:function(u){return Sh&&Tn(u)=="Window"?e0(u):Qg(On(u))}},Ch={f:Object.getOwnPropertySymbols},Id=fo([].slice),od=function(u,l,p,E){E&&E.enumerable?u[l]=p:Zl(u,l,p)},Ah={f:ss},Zv=Af.f,ja=function(u){var l=oi.Symbol||(oi.Symbol={});Oi(l,u)||Zv(l,u,{value:Ah.f(u)})},n0=qc?{}.toString:function(){return"[object "+Pd(this)+"]"},_h=Af.f,r0=ss("toStringTag"),bp=function(u,l,p,E){if(u){var A=p?u:u.prototype;Oi(A,r0)||_h(A,r0,{configurable:!0,value:l}),E&&!qc&&Zl(A,"toString",n0)}},i0=Yn.WeakMap,Jv=h(i0)&&/native code/.test(gh(i0)),Oh="Object already initialized",Th=Yn.TypeError,Qv=Yn.WeakMap;if(Jv||vl.state){var Of=vl.state||(vl.state=new Qv),o0=fo(Of.get),Ep=fo(Of.has),em=fo(Of.set);id=function(u,l){if(Ep(Of,u))throw new Th(Oh);return l.facade=u,em(Of,u,l),l},_f=function(u){return o0(Of,u)||{}},Nd=function(u){return Ep(Of,u)}}else{var Jl=kd("state");Nl[Jl]=!0,id=function(u,l){if(Oi(u,Jl))throw new Th(Oh);return l.facade=u,Zl(u,Jl,l),l},_f=function(u){return Oi(u,Jl)?u[Jl]:{}},Nd=function(u){return Oi(u,Jl)}}var mc={set:id,get:_f,has:Nd,enforce:function(u){return Nd(u)?_f(u):id(u,{})},getterFor:function(u){return function(l){var p;if(!ti(l)||(p=_f(l)).type!==u)throw Th("Incompatible receiver, "+u+" required");return p}}},wp=fo([].push),Xc=function(u){var l=u==1,p=u==2,E=u==3,A=u==4,$=u==6,K=u==7,Q=u==5||$;return function(ke,wt,Je,Ht){for(var wn,on,Jn=xf(ke),hr=sr(Jn),xr=kl(wt,Je),Cr=sp(hr),vr=0,mi=Ht||fp,Hi=l?mi(ke,Cr):p||K?mi(ke,0):void 0;Cr>vr;vr++)if((Q||vr in hr)&&(on=xr(wn=hr[vr],vr,Jn),u))if(l)Hi[vr]=on;else if(on)switch(u){case 3:return!0;case 5:return wn;case 6:return vr;case 2:wp(Hi,wn)}else switch(u){case 4:return!1;case 7:wp(Hi,wn)}return $?-1:E||A?A:Hi}},Tf={forEach:Xc(0),map:Xc(1),filter:Xc(2),some:Xc(3),every:Xc(4),find:Xc(5),findIndex:Xc(6),filterReject:Xc(7)}.forEach,Vu=kd("hidden"),Rd="Symbol",a0=ss("toPrimitive"),tm=mc.set,xp=mc.getterFor(Rd),tl=Object.prototype,Il=Yn.Symbol,Ql=Il&&Il.prototype,u0=Yn.TypeError,Bh=Yn.QObject,Bf=Ka("JSON","stringify"),s0=Td.f,Yc=Af.f,Fh=t0.f,nm=tt.f,l0=fo([].push),ec=ml("symbols"),jd=ml("op-symbols"),Zc=ml("string-to-symbol-registry"),Dp=ml("symbol-to-string-registry"),rm=ml("wks"),Sp=!Bh||!Bh.prototype||!Bh.prototype.findChild,Ph=M&&N((function(){return Kc(Yc({},"a",{get:function(){return Yc(this,"a",{value:7}).a}})).a!=7}))?function(u,l,p){var E=s0(tl,l);E&&delete tl[l],Yc(u,l,p),E&&u!==tl&&Yc(tl,l,E)}:Yc,Cp=function(u,l){var p=ec[u]=Kc(Ql);return tm(p,{type:Rd,tag:u,description:l}),M||(p.description=l),p},Ff=function(u,l,p){u===tl&&Ff(jd,l,p),hc(u);var E=Sf(l);return hc(p),Oi(ec,E)?(p.enumerable?(Oi(u,Vu)&&u[Vu][E]&&(u[Vu][E]=!1),p=Kc(p,{enumerable:yt(0,!1)})):(Oi(u,Vu)||Yc(u,Vu,yt(1,{})),u[Vu][E]=!0),Ph(u,E,p)):Yc(u,E,p)},Ap=function(u,l){hc(u);var p=On(l),E=bh(p).concat(Ld(p));return Tf(E,(function(A){M&&!ae(c0,p,A)||Ff(u,A,p[A])})),u},c0=function(u){var l=Sf(u),p=ae(nm,this,l);return!(this===tl&&Oi(ec,l)&&!Oi(jd,l))&&(!(p||!Oi(this,l)||!Oi(ec,l)||Oi(this,Vu)&&this[Vu][l])||p)},f0=function(u,l){var p=On(u),E=Sf(l);if(p!==tl||!Oi(ec,E)||Oi(jd,E)){var A=s0(p,E);return!A||!Oi(ec,E)||Oi(p,Vu)&&p[Vu][E]||(A.enumerable=!0),A}},kh=function(u){var l=Fh(On(u)),p=[];return Tf(l,(function(E){Oi(ec,E)||Oi(Nl,E)||l0(p,E)})),p},Ld=function(u){var l=u===tl,p=Fh(l?jd:On(u)),E=[];return Tf(p,(function(A){!Oi(ec,A)||l&&!Oi(tl,A)||l0(E,ec[A])})),E};if(Xl||(Il=function(){if(fa(Ql,this))throw u0("Symbol is not a constructor");var u=arguments.length&&arguments[0]!==void 0?hp(arguments[0]):void 0,l=op(u),p=function(E){this===tl&&ae(p,jd,E),Oi(this,Vu)&&Oi(this[Vu],l)&&(this[Vu][l]=!1),Ph(this,l,yt(1,E))};return M&&Sp&&Ph(tl,l,{configurable:!0,set:p}),Cp(l,u)},Ql=Il.prototype,od(Ql,"toString",(function(){return xp(this).tag})),od(Il,"withoutSetter",(function(u){return Cp(op(u),u)})),tt.f=c0,Af.f=Ff,Td.f=f0,xh.f=t0.f=kh,Ch.f=Ld,Ah.f=function(u){return Cp(ss(u),u)},M&&Yc(Ql,"description",{configurable:!0,get:function(){return xp(this).description}})),gc({global:!0,wrap:!0,forced:!Xl,sham:!Xl},{Symbol:Il}),Tf(bh(rm),(function(u){ja(u)})),gc({target:Rd,stat:!0,forced:!Xl},{for:function(u){var l=hp(u);if(Oi(Zc,l))return Zc[l];var p=Il(l);return Zc[l]=p,Dp[p]=l,p},keyFor:function(u){if(!Kf(u))throw u0(u+" is not a symbol");if(Oi(Dp,u))return Dp[u]},useSetter:function(){Sp=!0},useSimple:function(){Sp=!1}}),gc({target:"Object",stat:!0,forced:!Xl,sham:!M},{create:function(u,l){return l===void 0?Kc(u):Ap(Kc(u),l)},defineProperty:Ff,defineProperties:Ap,getOwnPropertyDescriptor:f0}),gc({target:"Object",stat:!0,forced:!Xl},{getOwnPropertyNames:kh,getOwnPropertySymbols:Ld}),gc({target:"Object",stat:!0,forced:N((function(){Ch.f(1)}))},{getOwnPropertySymbols:function(u){return Ch.f(xf(u))}}),Bf){var im=!Xl||N((function(){var u=Il();return Bf([u])!="[null]"||Bf({a:u})!="{}"||Bf(Object(u))!="{}"}));gc({target:"JSON",stat:!0,forced:im},{stringify:function(u,l,p){var E=Id(arguments),A=l;if((ti(l)||u!==void 0)&&!Kf(u))return Wc(l)||(l=function($,K){if(h(A)&&(K=ae(A,this,$,K)),!Kf(K))return K}),E[1]=l,bf(Bf,null,E)}})}if(!Ql[a0]){var Nh=Ql.valueOf;od(Ql,a0,(function(u){return ae(Nh,this)}))}bp(Il,Rd),Nl[Vu]=!0,ja("asyncIterator"),ja("hasInstance"),ja("isConcatSpreadable"),ja("iterator"),ja("match"),ja("matchAll"),ja("replace"),ja("search"),ja("species"),ja("split"),ja("toPrimitive"),ja("toStringTag"),ja("unscopables"),bp(Yn.JSON,"JSON",!0);var Jc,Ih,Rh,jh=oi.Symbol,tc={},d0=Function.prototype,om=M&&Object.getOwnPropertyDescriptor,Lh=Oi(d0,"name"),bl={EXISTS:Lh,PROPER:Lh&&function(){}.name==="something",CONFIGURABLE:Lh&&(!M||M&&om(d0,"name").configurable)},p0=!N((function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})),Pf=kd("IE_PROTO"),_p=Yn.Object,Mh=_p.prototype,Op=p0?_p.getPrototypeOf:function(u){var l=xf(u);if(Oi(l,Pf))return l[Pf];var p=l.constructor;return h(p)&&l instanceof p?p.prototype:l instanceof _p?Mh:null},$h=ss("iterator"),h0=!1;[].keys&&("next"in(Rh=[].keys())?(Ih=Op(Op(Rh)))!==Object.prototype&&(Jc=Ih):h0=!0);var am=Jc==null||N((function(){var u={};return Jc[$h].call(u)!==u}));Jc=am?{}:Kc(Jc),h(Jc[$h])||od(Jc,$h,(function(){return this}));var Bo={IteratorPrototype:Jc,BUGGY_SAFARI_ITERATORS:h0},ta=Bo.IteratorPrototype,Xa=function(){return this};Yn.String,Yn.TypeError,Object.setPrototypeOf||"__proto__"in{}&&(function(){var u,l=!1,p={};try{(u=fo(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(p,[]),l=p instanceof Array}catch(E){}})();var um=bl.PROPER,Tp=Bo.BUGGY_SAFARI_ITERATORS,zh=ss("iterator"),Bp="keys",ad="values",Hh="entries",g0=function(){return this},Fp=function(u,l,p,E,A,$,K){(function(Cr,vr,mi,Hi){var i=vr+" Iterator";Cr.prototype=Kc(ta,{next:yt(+!Hi,mi)}),bp(Cr,i,!1,!0),tc[i]=Xa})(p,l,E);var Q,ke,wt,Je=function(Cr){if(Cr===A&&hr)return hr;if(!Tp&&Cr in on)return on[Cr];switch(Cr){case Bp:case ad:case Hh:return function(){return new p(this,Cr)}}return function(){return new p(this)}},Ht=l+" Iterator",wn=!1,on=u.prototype,Jn=on[zh]||on["@@iterator"]||A&&on[A],hr=!Tp&&Jn||Je(A),xr=l=="Array"&&on.entries||Jn;if(xr&&(Q=Op(xr.call(new u)))!==Object.prototype&&Q.next&&(bp(Q,Ht,!0,!0),tc[Ht]=g0),um&&A==ad&&Jn&&Jn.name!==ad&&(wn=!0,hr=function(){return ae(Jn,this)}),A)if(ke={values:Je(ad),keys:$?hr:Je(Bp),entries:Je(Hh)},K)for(wt in ke)(Tp||wn||!(wt in on))&&od(on,wt,ke[wt]);else gc({target:l,proto:!0,forced:Tp||wn},ke);return K&&on[zh]!==hr&&od(on,zh,hr,{name:A}),tc[l]=hr,ke},v0="Array Iterator",Uh=mc.set,sm=mc.getterFor(v0);Fp(Array,"Array",(function(u,l){Uh(this,{type:v0,target:On(u),index:0,kind:l})}),(function(){var u=sm(this),l=u.target,p=u.kind,E=u.index++;return!l||E>=l.length?(u.target=void 0,{value:void 0,done:!0}):p=="keys"?{value:E,done:!1}:p=="values"?{value:l[E],done:!1}:{value:[E,l[E]],done:!1}}),"values"),tc.Arguments=tc.Array;var m0=ss("toStringTag");for(var Vh 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 y0=Yn[Vh],Wh=y0&&y0.prototype;Wh&&Pd(Wh)!==m0&&Zl(Wh,m0,Vh),tc[Vh]=tc.Array}var lm=jh;ja("asyncDispose"),ja("dispose"),ja("matcher"),ja("metadata"),ja("observable"),ja("patternMatch"),ja("replaceAll");var Md=lm,b0=fo("".charAt),Vs=fo("".charCodeAt),E0=fo("".slice),w0=function(u){return function(l,p){var E,A,$=hp(Zn(l)),K=Fd(p),Q=$.length;return K<0||K>=Q?u?"":void 0:(E=Vs($,K))<55296||E>56319||K+1===Q||(A=Vs($,K+1))<56320||A>57343?u?b0($,K):E:u?E0($,K,K+2):A-56320+(E-55296<<10)+65536}},cm={codeAt:w0(!1),charAt:w0(!0)}.charAt,qh="String Iterator",fm=mc.set,dm=mc.getterFor(qh);Fp(String,"String",(function(u){fm(this,{type:qh,string:hp(u),index:0})}),(function(){var u,l=dm(this),p=l.string,E=l.index;return E>=p.length?{value:void 0,done:!0}:(u=cm(p,E),l.index+=u.length,{value:u,done:!1})}));var pm=Ah.f("iterator"),hm=te((function(u){function l(p){return typeof Md=="function"&&typeof pm=="symbol"?(u.exports=l=function(E){return typeof E},u.exports.default=u.exports,u.exports.__esModule=!0):(u.exports=l=function(E){return E&&typeof Md=="function"&&E.constructor===Md&&E!==Md.prototype?"symbol":typeof E},u.exports.default=u.exports,u.exports.__esModule=!0),l(p)}u.exports=l,u.exports.default=u.exports,u.exports.__esModule=!0})),x0=re(hm),gm=Ci.EXISTS,D0=_r.f,S0=Function.prototype,vm=Dt(S0.toString),Gh=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mm=Dt(Gh.exec);ye&&!gm&&D0(S0,"name",{configurable:!0,get:function(){try{return mm(Gh,vm(this))[1]}catch(u){return""}}});var Kh=(function(){function u(){this.tag="select",this.width=80}return u.prototype.isActive=function(l){return!1},u.prototype.getValue=function(l){var p=this.mark,E=f.Editor.marks(l);return E&&E[p]?E[p]:""},u.prototype.isDisabled=function(l){return l.selection==null||(this.mark,!!wr(f.Editor.nodes(l,{match:function(p){return n.DomEditor.getNodeType(p)==="pre"||!!f.Editor.isVoid(l,p)},universal:!0}),1)[0])},u.prototype.exec=function(l,p){var E=this.mark;p?l.addMark(E,p):l.removeMark(E)},u})(),ym=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("fontSize.title"),p.iconSvg=ts,p.mark="fontSize",p}return cr(l,u),l.prototype.getOptions=function(p){var E=[],A=p.getMenuConfig(this.mark).fontSizeList,$=A===void 0?[]:A;E.push({text:n.t("fontSize.default"),value:""}),$.forEach((function(Q){if(typeof Q=="string")E.push({text:Q,value:Q});else if(x0(Q)==="object"){var ke=Q.name,wt=Q.value;E.push({text:ke,value:wt})}}));var K=this.getValue(p);return E.forEach((function(Q){Q.value===K?Q.selected=!0:delete Q.selected})),E},l})(Kh),C0=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("fontFamily.title"),p.iconSvg=zu,p.mark="fontFamily",p.selectPanelWidth=150,p}return cr(l,u),l.prototype.getOptions=function(p){var E=[],A=p.getMenuConfig(this.mark).fontFamilyList,$=A===void 0?[]:A;E.push({text:n.t("fontFamily.default"),value:""}),$.forEach((function(Q){if(typeof Q=="string")E.push({text:Q,value:Q,styleForRenderMenuList:{"font-family":Q}});else if(x0(Q)==="object"){var ke=Q.name,wt=Q.value;E.push({text:ke,value:wt,styleForRenderMenuList:{"font-family":wt}})}}));var K=this.getValue(p);return E.forEach((function(Q){Q.value===K?Q.selected=!0:delete Q.selected})),E},l})(Kh),bm={renderStyle:function(u,l){var p=u,E=p.fontSize,A=p.fontFamily,$=l;return E&&eo($,{fontSize:E}),A&&eo($,{fontFamily:A}),$},styleToHtml:function(u,l){if(!f.Text.isText(u))return l;var p,E=u,A=E.fontSize,$=E.fontFamily;return A||$?((Bt(l)||en(p=O.default(l))!=="span")&&(p=O.default("<span>"+l+"</span>")),A&&p.css("font-size",A),$&&p.css("font-family",$),fn(p)):l},preParseHtml:[ei],parseStyleHtml:function(u,l,p){var E=O.default(u);if(!f.Text.isText(l))return l;var A=l,$=p.getMenuConfig("fontSize").fontSizeList,K=$===void 0?[]:$,Q=_n(E,"font-size"),ke=K.find((function(on){return on.value&&on.value===Q}))||K.includes(Q);Q&&ke&&(A.fontSize=Q);var wt=p.getMenuConfig("fontFamily").fontFamilyList,Je=wt===void 0?[]:wt,Ht=_n(E,"font-family").replace(/"/g,""),wn=Je.find((function(on){return on.value&&on.value===Ht}))||Je.includes(Ht);return Ht&&wn&&(A.fontFamily=Ht),A},menus:[{key:"fontSize",factory:function(){return new ym},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new C0},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Em={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(u){var l=O.default(u),p=_n(l,"padding-left");return/\dem/.test(p)&&l.css("text-indent","2em"),/\dpx/.test(p)&&parseInt(p,10)%32==0&&l.css("text-indent","2em"),l[0]}},A0=(function(){function u(){this.tag="button"}return u.prototype.getValue=function(l){var p=wr(f.Editor.nodes(l,{match:function(A){return!!A.indent},universal:!0}),1),E=p[0];return E==null?"":wr(E,1)[0].indent||""},u.prototype.isActive=function(l){return!1},u.prototype.getMatchNode=function(l){var p=wr(f.Editor.nodes(l,{match:function(E){var A=n.DomEditor.getNodeType(E);return A==="paragraph"||!!A.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return p==null?null:p[0]},u})(),wm=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("indent.decrease"),p.iconSvg=ns,p}return cr(l,u),l.prototype.isDisabled=function(p){var E=this.getMatchNode(p);return E==null||!E.indent},l.prototype.exec=function(p,E){f.Transforms.setNodes(p,{indent:null},{match:function(A){return f.Element.isElement(A)}})},l})(A0),_0=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("indent.increase"),p.iconSvg=Du,p}return cr(l,u),l.prototype.isDisabled=function(p){var E=this.getMatchNode(p);return E==null||!!E.indent},l.prototype.exec=function(p,E){f.Transforms.setNodes(p,{indent:"2em"},{match:function(A){return f.Element.isElement(A)},mode:"highest"})},l})(A0),xm={renderStyle:function(u,l){if(!f.Element.isElement(u))return l;var p=u.indent,E=l;return p&&eo(E,{textIndent:p}),E},styleToHtml:function(u,l){if(!f.Element.isElement(u))return l;var p=u.indent;if(!p)return l;var E=O.default(l);return E.css("text-indent",p),fn(E)},preParseHtml:[Em],parseStyleHtml:function(u,l,p){var E=O.default(u);if(!f.Element.isElement(l))return l;var A=l,$=_n(E,"text-indent"),K=parseInt($,10);return $&&K>0&&(A.indent=$),A},menus:[{key:"indent",factory:function(){return new _0}},{key:"delIndent",factory:function(){return new wm}}]},Pp=(function(){function u(){this.tag="button"}return u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.getMatchNode=function(l){var p=wr(f.Editor.nodes(l,{match:function(E){var A=n.DomEditor.getNodeType(E);return A==="paragraph"||A==="blockquote"||!!A.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return p==null?null:p[0]},u.prototype.isDisabled=function(l){return l.selection==null||!!n.DomEditor.getSelectedElems(l).some((function(p){if(f.Editor.isVoid(l,p)&&f.Editor.isBlock(l,p))return!0;var E=p.type;return!!["pre","code"].includes(E)||void 0}))},u})(),Dm=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("justify.left"),p.iconSvg=Es,p}return cr(l,u),l.prototype.exec=function(p,E){f.Transforms.setNodes(p,{textAlign:"left"},{match:function(A){return f.Element.isElement(A)&&!p.isInline(A)}})},l})(Pp),Sm=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("justify.right"),p.iconSvg=su,p}return cr(l,u),l.prototype.exec=function(p,E){f.Transforms.setNodes(p,{textAlign:"right"},{match:function(A){return f.Element.isElement(A)&&!p.isInline(A)}})},l})(Pp),Qc=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("justify.center"),p.iconSvg=ws,p}return cr(l,u),l.prototype.exec=function(p,E){f.Transforms.setNodes(p,{textAlign:"center"},{match:function(A){return f.Element.isElement(A)&&!p.isInline(A)}})},l})(Pp),$d=(function(u){function l(){var p=u!==null&&u.apply(this,arguments)||this;return p.title=n.t("justify.justify"),p.iconSvg=xs,p}return cr(l,u),l.prototype.exec=function(p,E){f.Transforms.setNodes(p,{textAlign:"justify"},{match:function(A){return f.Element.isElement(A)&&!p.isInline(A)}})},l})(Pp),Ya={renderStyle:function(u,l){if(!f.Element.isElement(u))return l;var p=u.textAlign,E=l;return p&&eo(E,{textAlign:p}),E},styleToHtml:function(u,l){if(!f.Element.isElement(u))return l;var p=u.textAlign;if(!p)return l;var E=O.default(l);return E.css("text-align",p),fn(E)},parseStyleHtml:function(u,l,p){var E=O.default(u);if(!f.Element.isElement(l))return l;var A=l,$=_n(E,"text-align");return $&&(A.textAlign=$),A},menus:[{key:"justifyLeft",factory:function(){return new Dm}},{key:"justifyRight",factory:function(){return new Sm}},{key:"justifyCenter",factory:function(){return new Qc}},{key:"justifyJustify",factory:function(){return new $d}}]},yc=(function(){function u(){this.title=n.t("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 u.prototype.getOptions=function(l){var p=[],E=l.getMenuConfig("lineHeight").lineHeightList,A=E===void 0?[]:E;p.push({text:n.t("lineHeight.default"),value:""}),A.forEach((function(K){p.push({text:K,value:K})}));var $=this.getValue(l);return p.forEach((function(K){K.value===$?K.selected=!0:delete K.selected})),p},u.prototype.getMatchNode=function(l){var p=wr(f.Editor.nodes(l,{match:function(E){var A=n.DomEditor.getNodeType(E);return!!A.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(A)},universal:!0,mode:"highest"}),1)[0];return p==null?null:p[0]},u.prototype.isActive=function(l){return!1},u.prototype.getValue=function(l){var p=this.getMatchNode(l);return p==null?"":f.Element.isElement(p)&&p.lineHeight||""},u.prototype.isDisabled=function(l){return l.selection==null||this.getMatchNode(l)==null},u.prototype.exec=function(l,p){f.Transforms.setNodes(l,{lineHeight:p.toString()},{mode:"highest"})},u})(),bc={renderStyle:function(u,l){if(!f.Element.isElement(u))return l;var p=u.lineHeight,E=l;return p&&eo(E,{lineHeight:p}),E},styleToHtml:function(u,l){if(!f.Element.isElement(u))return l;var p=u.lineHeight;if(!p)return l;var E=O.default(l);return E.css("line-height",p),fn(E)},parseStyleHtml:function(u,l,p){var E=O.default(u);if(!f.Element.isElement(l))return l;var A=l,$=p.getMenuConfig("lineHeight").lineHeightList,K=$===void 0?[]:$,Q=_n(E,"line-height");return Q&&K.includes(Q)&&(A.lineHeight=Q),A},menus:[{key:"lineHeight",factory:function(){return new yc},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},zd=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return l.selection==null},u.prototype.exec=function(l,p){typeof l.redo=="function"&&l.redo()},u})(),kp=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return l.selection==null},u.prototype.exec=function(l,p){typeof l.undo=="function"&&l.undo()},u})(),ud={menus:[{key:"redo",factory:function(){return new zd}},{key:"undo",factory:function(){return new kp}}]},Np={type:"divider",renderElem:function(u,l,p){var E=n.DomEditor.isNodeSelected(p,u);return c.h("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:E?"true":""},style:{},on:{mousedown:function(A){return A.preventDefault()}}},[c.h("hr")])}},Cm={type:"divider",elemToHtml:function(u,l){return"<hr/>"}},Am={selector:"hr:not([data-w-e-type])",parseElemHtml:function(u,l,p){return{type:"divider",children:[{text:""}]}}},Ec=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){return l.selection==null||!!n.DomEditor.getSelectedElems(l).some((function(p){if(l.isVoid(p))return!0;var E=n.DomEditor.getNodeType(p);return E==="table"||E==="pre"||void 0}))},u.prototype.exec=function(l,p){f.Transforms.insertNodes(l,{type:"divider",children:[{text:""}]},{mode:"highest"})},u})(),ef={renderElems:[Np],elemsToHtml:[Cm],parseElemsHtml:[Am],menus:[{key:"divider",factory:function(){return new Ec}}],editorPlugin:function(u){var l=u.isVoid,p=u.normalizeNode,E=u;return E.isVoid=function(A){return A.type==="divider"||l(A)},E.normalizeNode=function(A){var $=wr(A,2),K=$[0],Q=$[1];if(n.DomEditor.getNodeType(K)!=="divider")return p([K,Q]);n.DomEditor.isLastNode(E,K)&&f.Transforms.insertNodes(E,n.DomEditor.genEmptyParagraph(),{at:[Q[0]+1]})},E}},Hd=go.map;qr({target:"Array",proto:!0,forced:!ga("map")},{map:function(u){return Hd(this,u,arguments.length>1?arguments[1]:void 0)}});var O0=Dt([].join),_m=xe!=Object,Xh=Lu("join",",");qr({target:"Array",proto:!0,forced:_m||!Xh},{join:function(u){return O0(oe(this),u===void 0?",":u)}});var T0=(function(){function u(){this.title=n.t("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 u.prototype.getSelectCodeElem=function(l){var p=n.DomEditor.getSelectedNodeByType(l,"code");if(p==null)return null;var E=n.DomEditor.getParentNode(l,p);return E==null||n.DomEditor.getNodeType(E)!=="pre"?null:p},u.prototype.getValue=function(l){var p=this.getSelectCodeElem(l);return p==null?"":p.language||""},u.prototype.isActive=function(l){return!!this.getSelectCodeElem(l)},u.prototype.isDisabled=function(l){if(l.selection==null)return!0;var p=n.DomEditor.getSelectedElems(l);return!!p.some((function(E){return l.isVoid(E)}))||!p.some((function(E){var A=n.DomEditor.getNodeType(E);if(A==="pre"||A==="paragraph")return!0}))},u.prototype.exec=function(l,p){this.isActive(l)?this.changeToPlainText(l):this.changeToCodeBlock(l,p.toString())},u.prototype.changeToPlainText=function(l){var p=this.getSelectCodeElem(l);if(p!=null){var E=f.Node.string(p);f.Transforms.removeNodes(l,{mode:"highest"});var A=E.split(`
`).map((function($){return{type:"paragraph",children:[{text:$}]}}));f.Transforms.insertNodes(l,A,{mode:"highest"})}},u.prototype.changeToCodeBlock=function(l,p){var E,A,$=[],K=f.Editor.nodes(l,{match:function(Ht){return l.children.includes(Ht)},universal:!0});try{for(var Q=Ua(K),ke=Q.next();!ke.done;ke=Q.next()){var wt=wr(ke.value,1)[0];wt&&$.push(f.Node.string(wt))}}catch(Ht){E={error:Ht}}finally{try{ke&&!ke.done&&(A=Q.return)&&A.call(Q)}finally{if(E)throw E.error}}f.Transforms.removeNodes(l,{mode:"highest"});var Je={type:"pre",children:[{type:"code",language:p,children:[{text:$.join(`
`)}]}]};f.Transforms.insertNodes(l,Je,{mode:"highest"})},u})(),Ip={key:"codeBlock",factory:function(){return new T0}};qr({target:"String",proto:!0,forced:$i("anchor")},{anchor:function(u){return Mi(this,"a","name",u)}}),fs("match",(function(u,l,p){return[function(E){var A=Ye(this),$=E==null?void 0:Ut(E,u);return $?qe($,E,A):new RegExp(E)[u](hi(A))},function(E){var A=Er(this),$=hi(E),K=p(l,A,$);if(K.done)return K.value;if(!A.global)return ba(A,$);var Q=A.unicode;A.lastIndex=0;for(var ke,wt=[],Je=0;(ke=ba(A,$))!==null;){var Ht=hi(ke[0]);wt[Je]=Ht,Ht===""&&(A.lastIndex=Zu($,ko(A.lastIndex),Q)),Je++}return Je===0?null:wt}]}));var B0={menus:[Ip],editorPlugin:function(u){var l=u.insertBreak,p=u.normalizeNode,E=u.insertData;u.insertNode;var A=u;return A.insertBreak=function(){var $=n.DomEditor.getSelectedNodeByType(A,"code");if($!=null){var K=(function(wt,Je){var Ht=Je.selection;if(Ht==null)return"";var wn=f.Node.string(wt),on=Ht.anchor.offset,Jn=wn.slice(0,on).split(`
`),hr=Jn.length;return hr===0?"":Jn[hr-1]})($,A);if(K){var Q=K.match(/^\s+/);if(Q!=null&&Q[0]!=null){var ke=Q[0];return void A.insertText(`
`+ke)}}A.insertText(`
`)}else l()},A.normalizeNode=function($){var K=wr($,2),Q=K[0],ke=K[1],wt=n.DomEditor.getNodeType(Q);return wt==="code"&&ke.length<=1&&f.Transforms.setNodes(A,{type:"paragraph"},{at:ke}),wt==="pre"&&(n.DomEditor.isLastNode(A,Q)&&f.Transforms.insertNodes(A,n.DomEditor.genEmptyParagraph(),{at:[ke[0]+1]}),n.DomEditor.getNodeType(Q.children[0])!=="code"&&(f.Transforms.unwrapNodes(A),f.Transforms.setNodes(A,{type:"paragraph"},{mode:"highest"}))),p([Q,ke])},A.insertData=function($){if(n.DomEditor.getSelectedNodeByType(A,"code")!=null){var K=$.getData("text/plain");f.Editor.insertText(A,K)}else E($)},A},renderElems:[{type:"pre",renderElem:function(u,l,p){return c.jsx("pre",null,l)}},{type:"code",renderElem:function(u,l,p){return c.jsx("code",null,l)}}],elemsToHtml:[{type:"code",elemToHtml:function(u,l){return"<code>"+l+"</code>"}},{type:"pre",elemToHtml:function(u,l){return"<pre>"+l+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(u){var l=O.default(u);if(en(l)!=="code")return u;var p=l.find("xmp");if(p.length===0)return u;var E=p.text();return p.remove(),l.text(E),l[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(u,l,p){return{type:"code",language:"",children:[{text:O.default(u)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(u,l,p){var E=O.default(u);return(l=l.filter((function(A){return n.DomEditor.getNodeType(A)==="code"}))).length===0&&(l=[{type:"code",language:"",children:[{text:E[0].textContent||""}]}]),{type:"pre",children:l.filter((function(A){return n.DomEditor.getNodeType(A)==="code"}))}}}]},F0=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return l.isFullScreen},u.prototype.isDisabled=function(l){return!1},u.prototype.exec=function(l,p){l.isFullScreen?l.unFullScreen():l.fullScreen()},u})(),sd={menus:[{key:"fullScreen",factory:function(){return new F0}}]},Om=(function(){function u(){this.title=n.t("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 u.prototype.getValue=function(l){return""},u.prototype.isActive=function(l){return!1},u.prototype.isDisabled=function(l){var p=l.selection;return p==null||!!f.Range.isExpanded(p)},u.prototype.exec=function(l,p){var E=l.selection;if(E!=null){var A=[E.anchor.path[0]];f.Transforms.insertNodes(l,{type:"paragraph",children:[{text:""}]},{at:A}),l.select(f.Editor.start(l,A))}},u})(),Tm=[dt,ll,bm,xm,Ya,bc,Mc,ef,rr,qf,B0,mt,mn,Li,Sd,ud,sd,{menus:[{key:"enter",factory:function(){return new Om}}]}];t.default=Tm,t.insertImageNode=dl,t.isInsertImageMenuDisabled=Gl,t.updateImageNode=Ic,Object.defineProperty(t,"__esModule",{value:!0})}))}),r5=Tb(Db),i5=xl(function(r,e){(function(t,n){r.exports=n(qi,rp,ih,Ed)})(Ur,(function(t,n,c,f){function m(C){return C&&typeof C=="object"&&"default"in C?C:{default:C}}var P=m(f);t.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var _=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:{};function x(C){var V={exports:{}};return C(V,V.exports),V.exports}var O,k,S=function(C){return C&&C.Math==Math&&C},B=S(typeof globalThis=="object"&&globalThis)||S(typeof window=="object"&&window)||S(typeof self=="object"&&self)||S(typeof _=="object"&&_)||(function(){return this})()||Function("return this")(),W=Function.prototype,re=W.bind,te=W.call,me=re&&re.bind(te),ne=re?function(C){return C&&me(te,C)}:function(C){return C&&function(){return te.apply(C,arguments)}},X=function(C){try{return!!C()}catch(V){return!0}},q=ne({}.toString),Ee=ne("".slice),ye=function(C){return Ee(q(C),8,-1)},Qe=B.Object,qe=ne("".split),Ge=X((function(){return!Qe("z").propertyIsEnumerable(0)}))?function(C){return ye(C)=="String"?qe(C,""):Qe(C)}:Qe,zt=B.TypeError,qt=function(C){if(C==null)throw zt("Can't call method on "+C);return C},tn=function(C){return Ge(qt(C))},an=Object.defineProperty,kn=function(C,V){try{an(B,C,{value:V,configurable:!0,writable:!0})}catch(ge){B[C]=V}return V},At="__core-js_shared__",Wn=B[At]||kn(At,{}),Ae=x((function(C){(C.exports=function(V,ge){return Wn[V]||(Wn[V]=ge!==void 0?ge:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Dt=B.Object,hn=function(C){return Dt(qt(C))},Ot=ne({}.hasOwnProperty),Sn=Object.hasOwn||function(C,V){return Ot(hn(C),V)},be=0,de=Math.random(),xe=ne(1 .toString),Ie=function(C){return"Symbol("+(C===void 0?"":C)+")_"+xe(++be+de,36)},Ye=function(C){return typeof C=="function"},oe=function(C){return Ye(C)?C:void 0},ht=function(C,V){return arguments.length<2?oe(B[C]):B[C]&&B[C][V]},Gt=ht("navigator","userAgent")||"",xn=B.process,bn=B.Deno,at=xn&&xn.versions||bn&&bn.version,un=at&&at.v8;un&&(k=(O=un.split("."))[0]>0&&O[0]<4?1:+(O[0]+O[1])),!k&&Gt&&(!(O=Gt.match(/Edge\/(\d+)/))||O[1]>=74)&&(O=Gt.match(/Chrome\/(\d+)/))&&(k=+O[1]);var Cn,Xt=k,Bn=!!Object.getOwnPropertySymbols&&!X((function(){var C=Symbol();return!String(C)||!(Object(C)instanceof Symbol)||!Symbol.sham&&Xt&&Xt<41})),er=Bn&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$t=Ae("wks"),zn=B.Symbol,Pr=zn&&zn.for,Mr=er?zn:zn&&zn.withoutSetter||Ie,qn=function(C){if(!Sn($t,C)||!Bn&&typeof $t[C]!="string"){var V="Symbol."+C;Bn&&Sn(zn,C)?$t[C]=zn[C]:$t[C]=er&&Pr?Pr(V):Mr(V)}return $t[C]},Nn=function(C){return typeof C=="object"?C!==null:Ye(C)},Nr=B.String,jn=B.TypeError,br=function(C){if(Nn(C))return C;throw jn(Nr(C)+" is not an object")},Ut=!X((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),fr=B.document,fi=Nn(fr)&&Nn(fr.createElement),Vr=function(C){return fi?fr.createElement(C):{}},Jr=!Ut&&!X((function(){return Object.defineProperty(Vr("div"),"a",{get:function(){return 7}}).a!=7})),Ir=Function.prototype.call,Tr=Ir.bind?Ir.bind(Ir):function(){return Ir.apply(Ir,arguments)},ve=ne({}.isPrototypeOf),Ve=B.Object,Ce=er?function(C){return typeof C=="symbol"}:function(C){var V=ht("Symbol");return Ye(V)&&ve(V.prototype,Ve(C))},we=B.String,gt=function(C){try{return we(C)}catch(V){return"Object"}},jt=B.TypeError,Mt=function(C){if(Ye(C))return C;throw jt(gt(C)+" is not a function")},Ln=function(C,V){var ge=C[V];return ge==null?void 0:Mt(ge)},Dr=B.TypeError,Ar=B.TypeError,ui=qn("toPrimitive"),Kt=function(C,V){if(!Nn(C)||Ce(C))return C;var ge,je=Ln(C,ui);if(je){if(V===void 0&&(V="default"),ge=Tr(je,C,V),!Nn(ge)||Ce(ge))return ge;throw Ar("Can't convert object to primitive value")}return V===void 0&&(V="number"),(function(Le,st){var Et,Ze;if(st==="string"&&Ye(Et=Le.toString)&&!Nn(Ze=Tr(Et,Le))||Ye(Et=Le.valueOf)&&!Nn(Ze=Tr(Et,Le))||st!=="string"&&Ye(Et=Le.toString)&&!Nn(Ze=Tr(Et,Le)))return Ze;throw Dr("Can't convert object to primitive value")})(C,V)},Pt=function(C){var V=Kt(C,"string");return Ce(V)?V:V+""},xt=B.TypeError,Yt=Object.defineProperty,gn={f:Ut?Yt:function(C,V,ge){if(br(C),V=Pt(V),br(ge),Jr)try{return Yt(C,V,ge)}catch(je){}if("get"in ge||"set"in ge)throw xt("Accessors not supported");return"value"in ge&&(C[V]=ge.value),C}},Vt=Math.ceil,Xn=Math.floor,Gn=function(C){var V=+C;return V!=V||V===0?0:(V>0?Xn:Vt)(V)},Hn=Math.max,ln=Math.min,lr=function(C,V){var ge=Gn(C);return ge<0?Hn(ge+V,0):ln(ge,V)},cn=Math.min,Rr=function(C){return C>0?cn(Gn(C),9007199254740991):0},mr=function(C){return Rr(C.length)},Er=function(C){return function(V,ge,je){var Le,st=tn(V),Et=mr(st),Ze=lr(je,Et);if(C&&ge!=ge){for(;Et>Ze;)if((Le=st[Ze++])!=Le)return!0}else for(;Et>Ze;Ze++)if((C||Ze in st)&&st[Ze]===ge)return C||Ze||0;return!C&&-1}},yi={includes:Er(!0),indexOf:Er(!1)},bi={},_r=yi.indexOf,Hr=ne([].push),Ui=function(C,V){var ge,je=tn(C),Le=0,st=[];for(ge in je)!Sn(bi,ge)&&Sn(je,ge)&&Hr(st,ge);for(;V.length>Le;)Sn(je,ge=V[Le++])&&(~_r(st,ge)||Hr(st,ge));return st},ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mo=Object.keys||function(C){return Ui(C,ri)},Qr=Ut?Object.defineProperties:function(C,V){br(C);for(var ge,je=tn(V),Le=mo(V),st=Le.length,Et=0;st>Et;)gn.f(C,ge=Le[Et++],je[ge]);return C},ii=ht("document","documentElement"),Co=Ae("keys"),zo=function(C){return Co[C]||(Co[C]=Ie(C))},Ca=zo("IE_PROTO"),Di=function(){},Gi=function(C){return"<script>"+C+"<\/script>"},no=function(C){C.write(Gi("")),C.close();var V=C.parentWindow.Object;return C=null,V},Ho=function(){try{Cn=new ActiveXObject("htmlfile")}catch(je){}var C,V;Ho=typeof document!="undefined"?document.domain&&Cn?no(Cn):((V=Vr("iframe")).style.display="none",ii.appendChild(V),V.src="javascript:",(C=V.contentWindow.document).open(),C.write(Gi("document.F=Object")),C.close(),C.F):no(Cn);for(var ge=ri.length;ge--;)delete Ho.prototype[ri[ge]];return Ho()};bi[Ca]=!0;var Ki=Object.create||function(C,V){var ge;return C!==null?(Di.prototype=br(C),ge=new Di,Di.prototype=null,ge[Ca]=C):ge=Ho(),V===void 0?ge:Qr(ge,V)},Si=qn("unscopables"),Ei=Array.prototype;Ei[Si]==null&&gn.f(Ei,Si,{configurable:!0,value:Ki(null)});var uo=function(C){Ei[Si][C]=!0},yo={},wi=ne(Function.toString);Ye(Wn.inspectSource)||(Wn.inspectSource=function(C){return wi(C)});var Uo,bo,jr,so=Wn.inspectSource,Ci=B.WeakMap,Xi=Ye(Ci)&&/native code/.test(so(Ci)),Po=function(C,V){return{enumerable:!(1&C),configurable:!(2&C),writable:!(4&C),value:V}},di=Ut?function(C,V,ge){return gn.f(C,V,Po(1,ge))}:function(C,V,ge){return C[V]=ge,C},po="Object already initialized",du=B.TypeError,Ti=B.WeakMap;if(Xi||Wn.state){var Yi=Wn.state||(Wn.state=new Ti),Aa=ne(Yi.get),ko=ne(Yi.has),Eo=ne(Yi.set);Uo=function(C,V){if(ko(Yi,C))throw new du(po);return V.facade=C,Eo(Yi,C,V),V},bo=function(C){return Aa(Yi,C)||{}},jr=function(C){return ko(Yi,C)}}else{var Zi=zo("state");bi[Zi]=!0,Uo=function(C,V){if(Sn(C,Zi))throw new du(po);return V.facade=C,di(C,Zi,V),V},bo=function(C){return Sn(C,Zi)?C[Zi]:{}},jr=function(C){return Sn(C,Zi)}}var Ai,No,oa,si={set:Uo,get:bo,has:jr,enforce:function(C){return jr(C)?bo(C):Uo(C,{})},getterFor:function(C){return function(V){var ge;if(!Nn(V)||(ge=bo(V)).type!==C)throw du("Incompatible receiver, "+C+" required");return ge}}},_a={}.propertyIsEnumerable,Io=Object.getOwnPropertyDescriptor,pu={f:Io&&!_a.call({1:2},1)?function(C){var V=Io(this,C);return!!V&&V.enumerable}:_a},Ma=Object.getOwnPropertyDescriptor,Ro={f:Ut?Ma:function(C,V){if(C=tn(C),V=Pt(V),Jr)try{return Ma(C,V)}catch(ge){}if(Sn(C,V))return Po(!Tr(pu.f,C,V),C[V])}},Wr=Function.prototype,Za=Ut&&Object.getOwnPropertyDescriptor,lo=Sn(Wr,"name"),Ao={EXISTS:lo,PROPER:lo&&function(){}.name==="something",CONFIGURABLE:lo&&(!Ut||Ut&&Za(Wr,"name").configurable)},Bi=x((function(C){var V=Ao.CONFIGURABLE,ge=si.get,je=si.enforce,Le=String(String).split("String");(C.exports=function(st,Et,Ze,it){var Nt,ft=!!it&&!!it.unsafe,vn=!!it&&!!it.enumerable,dn=!!it&&!!it.noTargetGet,nn=it&&it.name!==void 0?it.name:Et;Ye(Ze)&&(String(nn).slice(0,7)==="Symbol("&&(nn="["+String(nn).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sn(Ze,"name")||V&&Ze.name!==nn)&&di(Ze,"name",nn),(Nt=je(Ze)).source||(Nt.source=Le.join(typeof nn=="string"?nn:""))),st!==B?(ft?!dn&&st[Et]&&(vn=!0):delete st[Et],vn?st[Et]=Ze:di(st,Et,Ze)):vn?st[Et]=Ze:kn(Et,Ze)})(Function.prototype,"toString",(function(){return Ye(this)&&ge(this).source||so(this)}))})),jo=ri.concat("length","prototype"),co={f:Object.getOwnPropertyNames||function(C){return Ui(C,jo)}},pa={f:Object.getOwnPropertySymbols},Vo=ne([].concat),Ii=ht("Reflect","ownKeys")||function(C){var V=co.f(br(C)),ge=pa.f;return ge?Vo(V,ge(C)):V},qr=function(C,V){for(var ge=Ii(V),je=gn.f,Le=Ro.f,st=0;st<ge.length;st++){var Et=ge[st];Sn(C,Et)||je(C,Et,Le(V,Et))}},ha=/#|\.prototype\./,ho=function(C,V){var ge=Oa[Wo(C)];return ge==L||ge!=b&&(Ye(V)?X(V):!!V)},Wo=ho.normalize=function(C){return String(C).replace(ha,".").toLowerCase()},Oa=ho.data={},b=ho.NATIVE="N",L=ho.POLYFILL="P",le=ho,He=Ro.f,An=function(C,V){var ge,je,Le,st,Et,Ze=C.target,it=C.global,Nt=C.stat;if(ge=it?B:Nt?B[Ze]||kn(Ze,{}):(B[Ze]||{}).prototype)for(je in V){if(st=V[je],Le=C.noTargetGet?(Et=He(ge,je))&&Et.value:ge[je],!le(it?je:Ze+(Nt?".":"#")+je,C.forced)&&Le!==void 0){if(typeof st==typeof Le)continue;qr(st,Le)}(C.sham||Le&&Le.sham)&&di(st,"sham",!0),Bi(ge,je,st,C)}},Dn=!X((function(){function C(){}return C.prototype.constructor=null,Object.getPrototypeOf(new C)!==C.prototype})),dr=zo("IE_PROTO"),Or=B.Object,Fi=Or.prototype,kr=Dn?Or.getPrototypeOf:function(C){var V=hn(C);if(Sn(V,dr))return V[dr];var ge=V.constructor;return Ye(ge)&&V instanceof ge?ge.prototype:V instanceof Or?Fi:null},pi=qn("iterator"),Ri=!1;[].keys&&("next"in(oa=[].keys())?(No=kr(kr(oa)))!==Object.prototype&&(Ai=No):Ri=!0);var li=Ai==null||X((function(){var C={};return Ai[pi].call(C)!==C}));li&&(Ai={}),Ye(Ai[pi])||Bi(Ai,pi,(function(){return this}));var Pi={IteratorPrototype:Ai,BUGGY_SAFARI_ITERATORS:Ri},ji=gn.f,Ji=qn("toStringTag"),xi=function(C,V,ge){C&&!Sn(C=ge?C:C.prototype,Ji)&&ji(C,Ji,{configurable:!0,value:V})},go=Pi.IteratorPrototype,Ja=function(){return this},ga=B.String,io=B.TypeError,hu=Object.setPrototypeOf||("__proto__"in{}?(function(){var C,V=!1,ge={};try{(C=ne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(ge,[]),V=ge instanceof Array}catch(je){}return function(je,Le){return br(je),(function(st){if(typeof st=="object"||Ye(st))return st;throw io("Can't set "+ga(st)+" as a prototype")})(Le),V?C(je,Le):je.__proto__=Le,je}})():void 0),Qa=Ao.PROPER,Ts=Ao.CONFIGURABLE,hi=Pi.IteratorPrototype,va=Pi.BUGGY_SAFARI_ITERATORS,wo=qn("iterator"),aa="keys",ua="values",_o="entries",Tu=function(){return this},Wu=function(C,V,ge,je,Le,st,Et){(function(Mn,mn,zr,ki){var _i=mn+" Iterator";Mn.prototype=Ki(go,{next:Po(+!ki,zr)}),xi(Mn,_i,!1),yo[_i]=Ja})(ge,V,je);var Ze,it,Nt,ft=function(Mn){if(Mn===Le&&ar)return ar;if(!va&&Mn in nn)return nn[Mn];switch(Mn){case aa:case ua:case _o:return function(){return new ge(this,Mn)}}return function(){return new ge(this)}},vn=V+" Iterator",dn=!1,nn=C.prototype,Br=nn[wo]||nn["@@iterator"]||Le&&nn[Le],ar=!va&&Br||ft(Le),Fn=V=="Array"&&nn.entries||Br;if(Fn&&(Ze=kr(Fn.call(new C)))!==Object.prototype&&Ze.next&&(kr(Ze)!==hi&&(hu?hu(Ze,hi):Ye(Ze[wo])||Bi(Ze,wo,Tu)),xi(Ze,vn,!0)),Qa&&Le==ua&&Br&&Br.name!==ua&&(Ts?di(nn,"name",ua):(dn=!0,ar=function(){return Tr(Br,this)})),Le)if(it={values:ft(ua),keys:st?ar:ft(aa),entries:ft(_o)},Et)for(Nt in it)(va||dn||!(Nt in nn))&&Bi(nn,Nt,it[Nt]);else An({target:V,proto:!0,forced:va||dn},it);return nn[wo]!==ar&&Bi(nn,wo,ar,{name:Le}),yo[V]=ar,it},Bu="Array Iterator",Fu=si.set,sa=si.getterFor(Bu),qo=Wu(Array,"Array",(function(C,V){Fu(this,{type:Bu,target:tn(C),index:0,kind:V})}),(function(){var C=sa(this),V=C.target,ge=C.kind,je=C.index++;return!V||je>=V.length?(C.target=void 0,{value:void 0,done:!0}):ge=="keys"?{value:je,done:!1}:ge=="values"?{value:V[je],done:!1}:{value:[je,V[je]],done:!1}}),"values");yo.Arguments=yo.Array,uo("keys"),uo("values"),uo("entries");var gu={};gu[qn("toStringTag")]="z";var eu=String(gu)==="[object z]",qu=qn("toStringTag"),tu=B.Object,Pu=ye((function(){return arguments})())=="Arguments",$r=eu?ye:function(C){var V,ge,je;return C===void 0?"Undefined":C===null?"Null":typeof(ge=(function(Le,st){try{return Le[st]}catch(Et){}})(V=tu(C),qu))=="string"?ge:Pu?ye(V):(je=ye(V))=="Object"&&Ye(V.callee)?"Arguments":je},$a=eu?{}.toString:function(){return"[object "+$r(this)+"]"};eu||Bi(Object.prototype,"toString",$a,{unsafe:!0});var nu=B.String,xo=function(C){if($r(C)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return nu(C)},Bs=ne("".charAt),Fs=ne("".charCodeAt),la=ne("".slice),ru=function(C){return function(V,ge){var je,Le,st=xo(qt(V)),Et=Gn(ge),Ze=st.length;return Et<0||Et>=Ze?C?"":void 0:(je=Fs(st,Et))<55296||je>56319||Et+1===Ze||(Le=Fs(st,Et+1))<56320||Le>57343?C?Bs(st,Et):je:C?la(st,Et,Et+2):Le-56320+(je-55296<<10)+65536}},cs={codeAt:ru(!1),charAt:ru(!0)},ku=cs.charAt,Ta="String Iterator",Gu=si.set,Go=si.getterFor(Ta);Wu(String,"String",(function(C){Gu(this,{type:Ta,string:xo(C),index:0})}),(function(){var C,V=Go(this),ge=V.string,je=V.index;return je>=ge.length?{value:void 0,done:!0}:(C=ku(ge,je),V.index+=C.length,{value:C,done:!1})}));var Ku=function(C,V,ge){for(var je in V)Bi(C,je,V[je],ge);return C},Nu=B.Array,vu=Math.max,mu=co.f,Iu=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xr=function(C){try{return mu(C)}catch(V){return(function(ge,je,Le){for(var st,Et,Ze,it,Nt=mr(ge),ft=lr(je,Nt),vn=lr(Le===void 0?Nt:Le,Nt),dn=Nu(vu(vn-ft,0)),nn=0;ft<vn;ft++,nn++)st=dn,Et=nn,Ze=ge[ft],it=void 0,(it=Pt(Et))in st?gn.f(st,it,Po(0,Ze)):st[it]=Ze;return dn.length=nn,dn})(Iu)}},za={f:function(C){return Iu&&ye(C)=="Window"?Xr(C):mu(tn(C))}},ma=X((function(){if(typeof ArrayBuffer=="function"){var C=new ArrayBuffer(8);Object.isExtensible(C)&&Object.defineProperty(C,"a",{value:8})}})),iu=Object.isExtensible,Ba=X((function(){iu(1)}))||ma?function(C){return!!Nn(C)&&(!ma||ye(C)!="ArrayBuffer")&&(!iu||iu(C))}:iu,fs=!X((function(){return Object.isExtensible(Object.preventExtensions({}))})),yu=x((function(C){var V=gn.f,ge=!1,je=Ie("meta"),Le=0,st=function(Ze){V(Ze,je,{value:{objectID:"O"+Le++,weakData:{}}})},Et=C.exports={enable:function(){Et.enable=function(){},ge=!0;var Ze=co.f,it=ne([].splice),Nt={};Nt[je]=1,Ze(Nt).length&&(co.f=function(ft){for(var vn=Ze(ft),dn=0,nn=vn.length;dn<nn;dn++)if(vn[dn]===je){it(vn,dn,1);break}return vn},An({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:za.f}))},fastKey:function(Ze,it){if(!Nn(Ze))return typeof Ze=="symbol"?Ze:(typeof Ze=="string"?"S":"P")+Ze;if(!Sn(Ze,je)){if(!Ba(Ze))return"F";if(!it)return"E";st(Ze)}return Ze[je].objectID},getWeakData:function(Ze,it){if(!Sn(Ze,je)){if(!Ba(Ze))return!0;if(!it)return!1;st(Ze)}return Ze[je].weakData},onFreeze:function(Ze){return fs&&ge&&Ba(Ze)&&!Sn(Ze,je)&&st(Ze),Ze}};bi[je]=!0})),Ps=ne(ne.bind),Xu=function(C,V){return Mt(C),V===void 0?C:Ps?Ps(C,V):function(){return C.apply(V,arguments)}},Ko=qn("iterator"),Yu=Array.prototype,Zu=qn("iterator"),ks=function(C){if(C!=null)return Ln(C,Zu)||Ln(C,"@@iterator")||yo[$r(C)]},ds=B.TypeError,Fa=function(C,V,ge){var je,Le;br(C);try{if(!(je=Ln(C,"return"))){if(V==="throw")throw ge;return ge}je=Tr(je,C)}catch(st){Le=!0,je=st}if(V==="throw")throw ge;if(Le)throw je;return br(je),ge},ya=B.TypeError,Pa=function(C,V){this.stopped=C,this.result=V},ka=Pa.prototype,ou=function(C,V,ge){var je,Le,st,Et,Ze,it,Nt,ft,vn=ge&&ge.that,dn=!(!ge||!ge.AS_ENTRIES),nn=!(!ge||!ge.IS_ITERATOR),Br=!(!ge||!ge.INTERRUPTED),ar=Xu(V,vn),Fn=function(mn){return je&&Fa(je,"normal",mn),new Pa(!0,mn)},Mn=function(mn){return dn?(br(mn),Br?ar(mn[0],mn[1],Fn):ar(mn[0],mn[1])):Br?ar(mn,Fn):ar(mn)};if(nn)je=C;else{if(!(Le=ks(C)))throw ya(gt(C)+" is not iterable");if((ft=Le)!==void 0&&(yo.Array===ft||Yu[Ko]===ft)){for(st=0,Et=mr(C);Et>st;st++)if((Ze=Mn(C[st]))&&ve(ka,Ze))return Ze;return new Pa(!1)}je=(function(mn,zr){var ki=arguments.length<2?ks(mn):zr;if(Mt(ki))return br(Tr(ki,mn));throw ds(gt(mn)+" is not iterable")})(C,Le)}for(it=je.next;!(Nt=Tr(it,je)).done;){try{Ze=Mn(Nt.value)}catch(mn){Fa(je,"throw",mn)}if(typeof Ze=="object"&&Ze&&ve(ka,Ze))return Ze}return new Pa(!1)},bu=B.TypeError,ba=function(C,V){if(ve(V,C))return C;throw bu("Incorrect invocation")},Ru=qn("iterator"),Ju=!1;try{var ju=0,Xo={next:function(){return{done:!!ju++}},return:function(){Ju=!0}};Xo[Ru]=function(){return this},Array.from(Xo,(function(){throw 2}))}catch(C){}var Ea=Array.isArray||function(C){return ye(C)=="Array"},Ns=function(){},Ha=[],Eu=ht("Reflect","construct"),Na=/^\s*(?:class|function)\b/,au=ne(Na.exec),ps=!Na.exec(Ns),wu=function(C){if(!Ye(C))return!1;try{return Eu(Ns,Ha,C),!0}catch(V){return!1}},hs=!Eu||X((function(){var C;return wu(wu.call)||!wu(Object)||!wu((function(){C=!0}))||C}))?function(C){if(!Ye(C))return!1;switch($r(C)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ps||!!au(Na,so(C))}:wu,Yo=qn("species"),gs=B.Array,vs=function(C,V){return new((function(ge){var je;return Ea(ge)&&(je=ge.constructor,(hs(je)&&(je===gs||Ea(je.prototype))||Nn(je)&&(je=je[Yo])===null)&&(je=void 0)),je===void 0?gs:je})(C))(V===0?0:V)},Qu=ne([].push),ca=function(C){var V=C==1,ge=C==2,je=C==3,Le=C==4,st=C==6,Et=C==7,Ze=C==5||st;return function(it,Nt,ft,vn){for(var dn,nn,Br=hn(it),ar=Ge(Br),Fn=Xu(Nt,ft),Mn=mr(ar),mn=0,zr=vn||vs,ki=V?zr(it,Mn):ge||Et?zr(it,0):void 0;Mn>mn;mn++)if((Ze||mn in ar)&&(nn=Fn(dn=ar[mn],mn,Br),C))if(V)ki[mn]=nn;else if(nn)switch(C){case 3:return!0;case 5:return dn;case 6:return mn;case 2:Qu(ki,dn)}else switch(C){case 4:return!1;case 7:Qu(ki,dn)}return st?-1:je||Le?Le:ki}},Is={forEach:ca(0),map:ca(1),filter:ca(2),some:ca(3),every:ca(4),find:ca(5),findIndex:ca(6),filterReject:ca(7)},uu=yu.getWeakData,Gs=si.set,Rs=si.getterFor,T=Is.find,z=Is.findIndex,ue=ne([].splice),Me=0,Fe=function(C){return C.frozen||(C.frozen=new ot)},ot=function(){this.entries=[]},Te=function(C,V){return T(C.entries,(function(ge){return ge[0]===V}))};ot.prototype={get:function(C){var V=Te(this,C);if(V)return V[1]},has:function(C){return!!Te(this,C)},set:function(C,V){var ge=Te(this,C);ge?ge[1]=V:this.entries.push([C,V])},delete:function(C){var V=z(this.entries,(function(ge){return ge[0]===C}));return~V&&ue(this.entries,V,1),!!~V}};var ct,vt={getConstructor:function(C,V,ge,je){var Le=C((function(it,Nt){ba(it,st),Gs(it,{type:V,id:Me++,frozen:void 0}),Nt!=null&&ou(Nt,it[je],{that:it,AS_ENTRIES:ge})})),st=Le.prototype,Et=Rs(V),Ze=function(it,Nt,ft){var vn=Et(it),dn=uu(br(Nt),!0);return dn===!0?Fe(vn).set(Nt,ft):dn[vn.id]=ft,it};return Ku(st,{delete:function(it){var Nt=Et(this);if(!Nn(it))return!1;var ft=uu(it);return ft===!0?Fe(Nt).delete(it):ft&&Sn(ft,Nt.id)&&delete ft[Nt.id]},has:function(it){var Nt=Et(this);if(!Nn(it))return!1;var ft=uu(it);return ft===!0?Fe(Nt).has(it):ft&&Sn(ft,Nt.id)}}),Ku(st,ge?{get:function(it){var Nt=Et(this);if(Nn(it)){var ft=uu(it);return ft===!0?Fe(Nt).get(it):ft?ft[Nt.id]:void 0}},set:function(it,Nt){return Ze(this,it,Nt)}}:{add:function(it){return Ze(this,it,!0)}}),Le}},Lt=si.enforce,kt=!B.ActiveXObject&&"ActiveXObject"in B,Wt=function(C){return function(){return C(this,arguments.length?arguments[0]:void 0)}},Kn=(function(C,V,ge){var je=C.indexOf("Map")!==-1,Le=C.indexOf("Weak")!==-1,st=je?"set":"add",Et=B[C],Ze=Et&&Et.prototype,it=Et,Nt={},ft=function(Fn){var Mn=ne(Ze[Fn]);Bi(Ze,Fn,Fn=="add"?function(mn){return Mn(this,mn===0?0:mn),this}:Fn=="delete"?function(mn){return!(Le&&!Nn(mn))&&Mn(this,mn===0?0:mn)}:Fn=="get"?function(mn){return Le&&!Nn(mn)?void 0:Mn(this,mn===0?0:mn)}:Fn=="has"?function(mn){return!(Le&&!Nn(mn))&&Mn(this,mn===0?0:mn)}:function(mn,zr){return Mn(this,mn===0?0:mn,zr),this})};if(le(C,!Ye(Et)||!(Le||Ze.forEach&&!X((function(){new Et().entries().next()})))))it=ge.getConstructor(V,C,je,st),yu.enable();else if(le(C,!0)){var vn=new it,dn=vn[st](Le?{}:-0,1)!=vn,nn=X((function(){vn.has(1)})),Br=(function(Fn,Mn){if(!Mn&&!Ju)return!1;var mn=!1;try{var zr={};zr[Ru]=function(){return{next:function(){return{done:mn=!0}}}},Fn(zr)}catch(ki){}return mn})((function(Fn){new Et(Fn)})),ar=!Le&&X((function(){for(var Fn=new Et,Mn=5;Mn--;)Fn[st](Mn,Mn);return!Fn.has(-0)}));Br||((it=V((function(Fn,Mn){ba(Fn,Ze);var mn=(function(zr,ki,_i){var ao,eo;return hu&&Ye(ao=ki.constructor)&&ao!==_i&&Nn(eo=ao.prototype)&&eo!==_i.prototype&&hu(zr,eo),zr})(new Et,Fn,it);return Mn!=null&&ou(Mn,mn[st],{that:mn,AS_ENTRIES:je}),mn}))).prototype=Ze,Ze.constructor=it),(nn||ar)&&(ft("delete"),ft("has"),je&&ft("get")),(ar||dn)&&ft(st),Le&&Ze.clear&&delete Ze.clear}return Nt[C]=it,An({global:!0,forced:it!=Et},Nt),xi(it,C),Le||ge.setStrong(it,C,je),it})("WeakMap",Wt,vt);if(Xi&&kt){ct=vt.getConstructor(Wt,"WeakMap",!0),yu.enable();var rn=Kn.prototype,tr=ne(rn.delete),In=ne(rn.has),nt=ne(rn.get),$e=ne(rn.set);Ku(rn,{delete:function(C){if(Nn(C)&&!Ba(C)){var V=Lt(this);return V.frozen||(V.frozen=new ct),tr(this,C)||V.frozen.delete(C)}return tr(this,C)},has:function(C){if(Nn(C)&&!Ba(C)){var V=Lt(this);return V.frozen||(V.frozen=new ct),In(this,C)||V.frozen.has(C)}return In(this,C)},get:function(C){if(Nn(C)&&!Ba(C)){var V=Lt(this);return V.frozen||(V.frozen=new ct),In(this,C)?nt(this,C):V.frozen.get(C)}return nt(this,C)},set:function(C,V){if(Nn(C)&&!Ba(C)){var ge=Lt(this);ge.frozen||(ge.frozen=new ct),In(this,C)?$e(this,C,V):ge.frozen.set(C,V)}else $e(this,C,V);return this}})}var bt={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},Ct=Vr("span").classList,Bt=Ct&&Ct.constructor&&Ct.constructor.prototype,fn=Bt===Object.prototype?void 0:Bt,en=qn("iterator"),_n=qn("toStringTag"),gi=qo.values,cr=function(C,V){if(C){if(C[en]!==gi)try{di(C,en,gi)}catch(je){C[en]=gi}if(C[_n]||di(C,_n,V),bt[V]){for(var ge in qo)if(C[ge]!==qo[ge])try{di(C,ge,qo[ge])}catch(je){C[ge]=qo[ge]}}}};for(var Vi in bt)cr(B[Vi]&&B[Vi].prototype,Vi);cr(fn,"DOMTokenList");var oo=new WeakMap,Lo={type:"list-item",renderElem:function(C,V,ge){oo.set(C,ge);var je=C,Le=je.level,st=Le===void 0?0:Le,Et=je.ordered,Ze={margin:"5px 0 5px "+20*st+"px"},it="";if(Et!==void 0&&Et){var Nt=(function(vn,dn){var nn=dn,Br=nn.type,ar=nn.level,Fn=ar===void 0?0:ar,Mn=nn.ordered,mn=Mn!==void 0&&Mn;if(!mn)return-1;var zr=1,ki=dn,_i=t.DomEditor.findPath(vn,ki);if(_i[0]===0)return 1;for(;_i[0]>0;){var ao=n.Path.previous(_i),eo=n.Editor.node(vn,ao);if(eo==null)break;var qa=eo[0],Da=qa.level,as=Da===void 0?0:Da,Ms=qa.type,sl=qa.ordered;if(Ms!==Br||as<Fn)break;if(as===Fn){if(sl!==mn)break;zr++}ki=qa,_i=ao}return zr})(ge,C);it=Nt+"."}else it=(function(vn){vn===void 0&&(vn=0);var dn="";switch(vn){case 0:dn="•";break;case 1:dn="◦";break;default:dn="▪"}return dn})(st);var ft=(function(vn){var dn,nn=vn.children||[],Br=nn.length;if(Br===0)return"";for(var ar=0;ar<Br&&!dn;ar++){var Fn=nn[ar];n.Text.isText(Fn)&&(dn=Fn)}return dn==null?"":dn.color||""})(C);return c.jsx("div",{style:Ze},c.jsx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:ft},"data-w-e-reserve":!0},it),c.jsx("span",null,V))}},Ua=function(C,V){return Ua=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,je){ge.__proto__=je}||function(ge,je){for(var Le in je)Object.prototype.hasOwnProperty.call(je,Le)&&(ge[Le]=je[Le])},Ua(C,V)};/*! *****************************************************************************
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 wr(C,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");function ge(){this.constructor=C}Ua(C,V),C.prototype=V===null?Object.create(V):(ge.prototype=V.prototype,new ge)}function Oo(C){var V=typeof Symbol=="function"&&Symbol.iterator,ge=V&&C[V],je=0;if(ge)return ge.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&je>=C.length&&(C=void 0),{value:C&&C[je++],done:!C}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")}function Li(C,V){var ge=typeof Symbol=="function"&&C[Symbol.iterator];if(!ge)return C;var je,Le,st=ge.call(C),Et=[];try{for(;(V===void 0||V-- >0)&&!(je=st.next()).done;)Et.push(je.value)}catch(Ze){Le={error:Ze}}finally{try{je&&!je.done&&(ge=st.return)&&ge.call(st)}finally{if(Le)throw Le.error}}return Et}function Zo(C){return n.Editor.nodes(C,{at:C.selection||void 0,match:function(V){return t.DomEditor.findPath(C,V).length===1}})}var Ia=yi.includes;An({target:"Array",proto:!0},{includes:function(C){return Ia(this,C,arguments.length>1?arguments[1]:void 0)}}),uo("includes");var Mi,$i,wa=function(){var C=br(this),V="";return C.global&&(V+="g"),C.ignoreCase&&(V+="i"),C.multiline&&(V+="m"),C.dotAll&&(V+="s"),C.unicode&&(V+="u"),C.sticky&&(V+="y"),V},ci=B.RegExp,Wi=X((function(){var C=ci("a","y");return C.lastIndex=2,C.exec("abcd")!=null})),Jo=Wi||X((function(){return!ci("a","y").sticky})),xa={BROKEN_CARET:Wi||X((function(){var C=ci("^r","gy");return C.lastIndex=2,C.exec("str")!=null})),MISSED_STICKY:Jo,UNSUPPORTED_Y:Wi},ms=B.RegExp,Lu=X((function(){var C=ms(".","s");return!(C.dotAll&&C.exec(`
`)&&C.flags==="s")})),ys=B.RegExp,Qo=X((function(){var C=ys("(?<a>b)","g");return C.exec("b").groups.a!=="b"||"b".replace(C,"$<a>c")!=="bc"})),Va=si.get,bs=Ae("native-string-replace",String.prototype.replace),es=RegExp.prototype.exec,Ks=es,Mu=ne("".charAt),Ol=ne("".indexOf),Ll=ne("".replace),Wa=ne("".slice),$u=($i=/b*/g,Tr(es,Mi=/a/,"a"),Tr(es,$i,"a"),Mi.lastIndex!==0||$i.lastIndex!==0),Xs=xa.BROKEN_CARET,js=/()??/.exec("")[1]!==void 0;($u||js||Xs||Lu||Qo)&&(Ks=function(C){var V,ge,je,Le,st,Et,Ze,it=this,Nt=Va(it),ft=xo(C),vn=Nt.raw;if(vn)return vn.lastIndex=it.lastIndex,V=Tr(Ks,vn,ft),it.lastIndex=vn.lastIndex,V;var dn=Nt.groups,nn=Xs&&it.sticky,Br=Tr(wa,it),ar=it.source,Fn=0,Mn=ft;if(nn&&(Br=Ll(Br,"y",""),Ol(Br,"g")===-1&&(Br+="g"),Mn=Wa(ft,it.lastIndex),it.lastIndex>0&&(!it.multiline||it.multiline&&Mu(ft,it.lastIndex-1)!==`
`)&&(ar="(?: "+ar+")",Mn=" "+Mn,Fn++),ge=new RegExp("^(?:"+ar+")",Br)),js&&(ge=new RegExp("^"+ar+"$(?!\\s)",Br)),$u&&(je=it.lastIndex),Le=Tr(es,nn?ge:it,Mn),nn?Le?(Le.input=Wa(Le.input,Fn),Le[0]=Wa(Le[0],Fn),Le.index=it.lastIndex,it.lastIndex+=Le[0].length):it.lastIndex=0:$u&&Le&&(it.lastIndex=it.global?Le.index+Le[0].length:je),js&&Le&&Le.length>1&&Tr(bs,Le[0],ge,(function(){for(st=1;st<arguments.length-2;st++)arguments[st]===void 0&&(Le[st]=void 0)})),Le&&dn)for(Le.groups=Et=Ki(null),st=0;st<dn.length;st++)Et[(Ze=dn[st])[0]]=Le[Ze[1]];return Le});var xu=Ks;An({target:"RegExp",proto:!0,forced:/./.exec!==xu},{exec:xu});var rl=(function(){function C(){this.type="list-item",this.tag="button"}return C.prototype.getListNode=function(V){var ge=this.type;return t.DomEditor.getSelectedNodeByType(V,ge)},C.prototype.getValue=function(V){return""},C.prototype.isActive=function(V){var ge=this.getListNode(V);if(ge==null)return!1;var je=ge.ordered;return(je!==void 0&&je)===this.ordered},C.prototype.isDisabled=function(V){return V.selection==null||!!t.DomEditor.getSelectedElems(V).some((function(ge){if(n.Editor.isVoid(V,ge)&&n.Editor.isBlock(V,ge))return!0;var je=ge.type;return!!["pre","code","table"].includes(je)||void 0}))},C.prototype.exec=function(V,ge){this.isActive(V)?n.Transforms.setNodes(V,{type:"paragraph",ordered:void 0,level:void 0}):n.Transforms.setNodes(V,{type:"list-item",ordered:this.ordered,indent:void 0})},C})(),il='<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>',ts='<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>',zu=(function(C){function V(){var ge=C!==null&&C.apply(this,arguments)||this;return ge.ordered=!1,ge.title=t.t("listModule.unOrderedList"),ge.iconSvg=il,ge}return wr(V,C),V})(rl),ns=(function(C){function V(){var ge=C!==null&&C.apply(this,arguments)||this;return ge.ordered=!0,ge.title=t.t("listModule.orderedList"),ge.iconSvg=ts,ge}return wr(V,C),V})(rl),Du={key:"bulletedList",factory:function(){return new zu}},Es={key:"numberedList",factory:function(){return new ns}},su=[],ws,xs={type:"list-item",elemToHtml:function(C,V){var ge="",je="",Le=C.ordered,st=Le!==void 0&&Le?"ol":"ul",Et=(function(Nt){var ft=oo.get(Nt);if(ft==null)return 0;var vn=Nt,dn=vn.type,nn=vn.ordered,Br=nn!==void 0&&nn,ar=vn.level,Fn=ar===void 0?0:ar,Mn=t.DomEditor.findPath(ft,Nt);if(Mn[0]===0)return Fn+1;var mn=n.Path.previous(Mn),zr=n.Editor.node(ft,mn);if(!zr)return 0;var ki=Li(zr,1)[0];if(t.DomEditor.getNodeType(ki)!==dn)return Fn+1;var _i=ki,ao=_i.ordered,eo=ao!==void 0&&ao,qa=_i.level,Da=qa===void 0?0:qa;return Da<Fn?Fn-Da:Da>Fn?0:Da===Fn?eo===Br?0:1:0})(C);if(Et>0)for(var Ze=0;Ze<Et;Ze++)ge+="<"+st+">",su.push(st);var it=(function(Nt){var ft=oo.get(Nt);if(ft==null)return 0;var vn=Nt,dn=vn.type,nn=vn.ordered,Br=nn!==void 0&&nn,ar=vn.level,Fn=ar===void 0?0:ar,Mn=t.DomEditor.findPath(ft,Nt);if(Mn[0]===ft.children.length-1)return Fn+1;var mn=n.Path.next(Mn),zr=n.Editor.node(ft,mn);if(!zr)return 0;var ki=Li(zr,1)[0];if(t.DomEditor.getNodeType(ki)!==dn)return Fn+1;var _i=ki,ao=_i.ordered,eo=ao!==void 0&&ao,qa=_i.level,Da=qa===void 0?0:qa;return Da<Fn?Fn-Da:Da>Fn?0:Da===Fn?eo===Br?0:1:0})(C);if(it>0)for(Ze=0;Ze<it;Ze++)je+="</"+su.pop()+">";return{html:"<li>"+V+"</li>",prefix:ge,suffix:je}}},Ml=qn("species"),$l=Is.filter,ol=(ws="filter",Xt>=51||!X((function(){var C=[];return(C.constructor={})[Ml]=function(){return{foo:1}},C[ws](Boolean).foo!==1})));An({target:"Array",proto:!0,forced:!ol},{filter:function(C){return $l(this,C,arguments.length>1?arguments[1]:void 0)}});var Hu=Function.prototype,F=Hu.apply,H=Hu.bind,se=Hu.call,Ke=typeof Reflect=="object"&&Reflect.apply||(H?se.bind(F):function(){return se.apply(F,arguments)}),Oe=qn("species"),We=RegExp.prototype,dt=cs.charAt,et=function(C,V,ge){return V+(ge?dt(C,V).length:1)},rt=Math.floor,Ft=ne("".charAt),It=ne("".replace),Zt=ne("".slice),sn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jt=/\$([$&'`]|\d{1,2})/g,gr=function(C,V,ge,je,Le,st){var Et=ge+C.length,Ze=je.length,it=Jt;return Le!==void 0&&(Le=hn(Le),it=sn),It(st,it,(function(Nt,ft){var vn;switch(Ft(ft,0)){case"$":return"$";case"&":return C;case"`":return Zt(V,0,ge);case"'":return Zt(V,Et);case"<":vn=Le[Zt(ft,1,-1)];break;default:var dn=+ft;if(dn===0)return Nt;if(dn>Ze){var nn=rt(dn/10);return nn===0?Nt:nn<=Ze?je[nn-1]===void 0?Ft(ft,1):je[nn-1]+Ft(ft,1):Nt}vn=je[dn-1]}return vn===void 0?"":vn}))},pr=B.TypeError,Lr=function(C,V){var ge=C.exec;if(Ye(ge)){var je=Tr(ge,C,V);return je!==null&&br(je),je}if(ye(C)==="RegExp")return Tr(xu,C,V);throw pr("RegExp#exec called on incompatible receiver")},vi=qn("replace"),Gr=Math.max,Qi=Math.min,ea=ne([].concat),Mo=ne([].push),To=ne("".indexOf),Ra=ne("".slice),rs="a".replace(/./,"$0")==="$0",is=!!/./[vi]&&/./[vi]("a","$0")==="";(function(C,V,ge,je){var Le=qn(C),st=!X((function(){var Nt={};return Nt[Le]=function(){return 7},""[C](Nt)!=7})),Et=st&&!X((function(){var Nt=!1,ft=/a/;return C==="split"&&((ft={}).constructor={},ft.constructor[Oe]=function(){return ft},ft.flags="",ft[Le]=/./[Le]),ft.exec=function(){return Nt=!0,null},ft[Le](""),!Nt}));if(!st||!Et||ge){var Ze=ne(/./[Le]),it=V(Le,""[C],(function(Nt,ft,vn,dn,nn){var Br=ne(Nt),ar=ft.exec;return ar===xu||ar===We.exec?st&&!nn?{done:!0,value:Ze(ft,vn,dn)}:{done:!0,value:Br(vn,ft,dn)}:{done:!1}}));Bi(String.prototype,C,it[0]),Bi(We,Le,it[1])}je&&di(We[Le],"sham",!0)})("replace",(function(C,V,ge){var je=is?"$":"$0";return[function(Le,st){var Et=qt(this),Ze=Le==null?void 0:Ln(Le,vi);return Ze?Tr(Ze,Le,Et,st):Tr(V,xo(Et),Le,st)},function(Le,st){var Et=br(this),Ze=xo(Le);if(typeof st=="string"&&To(st,je)===-1&&To(st,"$<")===-1){var it=ge(V,Et,Ze,st);if(it.done)return it.value}var Nt=Ye(st);Nt||(st=xo(st));var ft=Et.global;if(ft){var vn=Et.unicode;Et.lastIndex=0}for(var dn=[];;){var nn=Lr(Et,Ze);if(nn===null||(Mo(dn,nn),!ft))break;xo(nn[0])===""&&(Et.lastIndex=et(Ze,Rr(Et.lastIndex),vn))}for(var Br,ar="",Fn=0,Mn=0;Mn<dn.length;Mn++){for(var mn=xo((nn=dn[Mn])[0]),zr=Gr(Qi(Gn(nn.index),Ze.length),0),ki=[],_i=1;_i<nn.length;_i++)Mo(ki,(Br=nn[_i])===void 0?Br:String(Br));var ao=nn.groups;if(Nt){var eo=ea([mn],ki,zr,Ze);ao!==void 0&&Mo(eo,ao);var qa=xo(Ke(st,void 0,eo))}else qa=gr(mn,Ze,zr,ki,ao,st);zr>=Fn&&(ar+=Ra(Ze,Fn,zr)+qa,Fn=zr+mn.length)}return ar+Ra(Ze,Fn)}]}),!!X((function(){var C=/./;return C.exec=function(){var V=[];return V.groups={a:"7"},V},"".replace(C,"$<a>")!=="7"}))||!rs||is);var os=B.TypeError,Ls=function(C,V,ge,je,Le,st,Et,Ze){for(var it,Nt,ft=Le,vn=0,dn=!!Et&&Xu(Et,Ze);vn<je;){if(vn in ge){if(it=dn?dn(ge[vn],vn,V):ge[vn],st>0&&Ea(it))Nt=mr(it),ft=Ls(C,V,it,Nt,ft,st-1)-1;else{if(ft>=9007199254740991)throw os("Exceed the acceptable array length");C[ft]=it}ft++}vn++}return ft},al=Ls;function ul(C){return C.length?C[0].tagName.toLowerCase():""}return An({target:"Array",proto:!0},{flat:function(){var C=arguments.length?arguments[0]:void 0,V=hn(this),ge=mr(V),je=vs(V,0);return je.length=al(je,V,V,ge,0,C===void 0?1:Gn(C)),je}}),uo("flat"),An({global:!0},{globalThis:B}),f.append&&(P.default.fn.append=f.append),f.attr&&(P.default.fn.attr=f.attr),f.parent&&(P.default.fn.parent=f.parent),{renderElems:[Lo],editorPlugin:function(C){var V=C.deleteBackward,ge=C.handleTab,je=C.normalizeNode,Le=C;return Le.deleteBackward=function(st){var Et=Le.selection;if(Et!=null)if(n.Range.isExpanded(Et))V(st);else{var Ze=t.DomEditor.getSelectedNodeByType(Le,"list-item");if(Ze!=null)if(Et.focus.offset!==0)V(st);else{var it=Ze.level,Nt=it===void 0?0:it;Nt>0?n.Transforms.setNodes(Le,{level:Nt-1}):n.Transforms.setNodes(Le,{type:"paragraph",ordered:void 0,level:void 0})}else V(st)}else V(st)},Le.handleTab=function(){var st,Et,Ze,it,Nt=Le.selection;if(Nt!=null){if(n.Range.isCollapsed(Nt)){var ft=t.DomEditor.getSelectedNodeByType(Le,"list-item");if(ft==null)return void ge();if(Nt.focus.offset===0){var vn=ft.level,dn=vn===void 0?0:vn;return void n.Transforms.setNodes(Le,{level:dn+1})}}if(n.Range.isExpanded(Nt)){var nn=0,Br=!1;try{for(var ar=Oo(Zo(Le)),Fn=ar.next();!Fn.done;Fn=ar.next()){var Mn=Li(Fn.value,1)[0];t.DomEditor.getNodeType(Mn)==="list-item"?nn++:Br=!0}}catch(eo){st={error:eo}}finally{try{Fn&&!Fn.done&&(Et=ar.return)&&Et.call(ar)}finally{if(st)throw st.error}}if(Br||nn<=1)return void ge();try{for(var mn=Oo(Zo(Le)),zr=mn.next();!zr.done;zr=mn.next()){var ki=Li(zr.value,2),_i=(Mn=ki[0],ki[1]),ao=Mn.level;dn=ao===void 0?0:ao,n.Transforms.setNodes(Le,{level:dn+1},{at:_i})}}catch(eo){Ze={error:eo}}finally{try{zr&&!zr.done&&(it=mn.return)&&it.call(mn)}finally{if(Ze)throw Ze.error}}}else ge()}else ge()},Le.normalizeNode=function(st){var Et=Li(st,2),Ze=Et[0],it=Et[1],Nt=t.DomEditor.getNodeType(Ze);return Nt!=="bulleted-list"&&Nt!=="numbered-list"||n.Transforms.unwrapNodes(Le,{at:it}),je([Ze,it])},Le},menus:[Du,Es],elemsToHtml:[xs],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(C,V,ge){return V.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(C,V,ge){var je=P.default(C);(V=V.filter((function(Et){return!!n.Text.isText(Et)||!!ge.isInline(Et)}))).length===0&&(V=[{text:je.text().replace(/\s+/gm," ")}]);var Le=(function(Et){return ul(Et.parent())==="ol"})(je),st=(function(Et){for(var Ze=0,it=Et.parent(),Nt=ul(it);Nt==="ul"||Nt==="ol";)Nt=ul(it=it.parent()),Ze++;return Ze-1})(je);return{type:"list-item",ordered:Le,level:st,children:V}}}]}}))}),o5=xl(function(r,e){var t=200,n="__lodash_hash_undefined__",c=1,f=2,m=9007199254740991,P="[object Arguments]",_="[object Array]",x="[object AsyncFunction]",O="[object Boolean]",k="[object Date]",S="[object Error]",B="[object Function]",W="[object GeneratorFunction]",re="[object Map]",te="[object Number]",me="[object Null]",ne="[object Object]",X="[object Promise]",q="[object Proxy]",Ee="[object RegExp]",ye="[object Set]",Qe="[object String]",qe="[object Symbol]",Ge="[object Undefined]",zt="[object WeakMap]",qt="[object ArrayBuffer]",tn="[object DataView]",an="[object Float32Array]",kn="[object Float64Array]",At="[object Int8Array]",Wn="[object Int16Array]",Ae="[object Int32Array]",Dt="[object Uint8Array]",hn="[object Uint8ClampedArray]",Ot="[object Uint16Array]",Sn="[object Uint32Array]",be=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,Ie={};Ie[an]=Ie[kn]=Ie[At]=Ie[Wn]=Ie[Ae]=Ie[Dt]=Ie[hn]=Ie[Ot]=Ie[Sn]=!0,Ie[P]=Ie[_]=Ie[qt]=Ie[O]=Ie[tn]=Ie[k]=Ie[S]=Ie[B]=Ie[re]=Ie[te]=Ie[ne]=Ie[Ee]=Ie[ye]=Ie[Qe]=Ie[zt]=!1;var Ye=typeof Ur=="object"&&Ur&&Ur.Object===Object&&Ur,oe=typeof self=="object"&&self&&self.Object===Object&&self,ht=Ye||oe||Function("return this")(),Gt=e&&!e.nodeType&&e,xn=Gt&&!0&&r&&!r.nodeType&&r,bn=xn&&xn.exports===Gt,at=bn&&Ye.process,un=(function(){try{return at&&at.binding&&at.binding("util")}catch(b){}})(),Cn=un&&un.isTypedArray;function Xt(b,L){for(var le=-1,He=b==null?0:b.length,An=0,Dn=[];++le<He;){var dr=b[le];L(dr,le,b)&&(Dn[An++]=dr)}return Dn}function Bn(b,L){for(var le=-1,He=L.length,An=b.length;++le<He;)b[An+le]=L[le];return b}function er(b,L){for(var le=-1,He=b==null?0:b.length;++le<He;)if(L(b[le],le,b))return!0;return!1}function $t(b,L){for(var le=-1,He=Array(b);++le<b;)He[le]=L(le);return He}function zn(b){return function(L){return b(L)}}function Pr(b,L){return b.has(L)}function Mr(b,L){return b==null?void 0:b[L]}function qn(b){var L=-1,le=Array(b.size);return b.forEach(function(He,An){le[++L]=[An,He]}),le}function Nn(b,L){return function(le){return b(L(le))}}function Nr(b){var L=-1,le=Array(b.size);return b.forEach(function(He){le[++L]=He}),le}var jn=Array.prototype,br=Function.prototype,Ut=Object.prototype,fr=ht["__core-js_shared__"],fi=br.toString,Vr=Ut.hasOwnProperty,Jr=(function(){var b=/[^.]+$/.exec(fr&&fr.keys&&fr.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""})(),Ir=Ut.toString,Tr=RegExp("^"+fi.call(Vr).replace(be,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=bn?ht.Buffer:void 0,Ve=ht.Symbol,Ce=ht.Uint8Array,we=Ut.propertyIsEnumerable,gt=jn.splice,jt=Ve?Ve.toStringTag:void 0,Mt=Object.getOwnPropertySymbols,Ln=ve?ve.isBuffer:void 0,Dr=Nn(Object.keys,Object),Ar=Ai(ht,"DataView"),ui=Ai(ht,"Map"),Kt=Ai(ht,"Promise"),Pt=Ai(ht,"Set"),xt=Ai(ht,"WeakMap"),Yt=Ai(Object,"create"),gn=Wr(Ar),Vt=Wr(ui),Xn=Wr(Kt),Gn=Wr(Pt),Hn=Wr(xt),ln=Ve?Ve.prototype:void 0,lr=ln?ln.valueOf:void 0;function cn(b){var L=-1,le=b==null?0:b.length;for(this.clear();++L<le;){var He=b[L];this.set(He[0],He[1])}}function Rr(){this.__data__=Yt?Yt(null):{},this.size=0}function mr(b){var L=this.has(b)&&delete this.__data__[b];return this.size-=L?1:0,L}function Er(b){var L=this.__data__;if(Yt){var le=L[b];return le===n?void 0:le}return Vr.call(L,b)?L[b]:void 0}function yi(b){var L=this.__data__;return Yt?L[b]!==void 0:Vr.call(L,b)}function bi(b,L){var le=this.__data__;return this.size+=this.has(b)?0:1,le[b]=Yt&&L===void 0?n:L,this}cn.prototype.clear=Rr,cn.prototype.delete=mr,cn.prototype.get=Er,cn.prototype.has=yi,cn.prototype.set=bi;function _r(b){var L=-1,le=b==null?0:b.length;for(this.clear();++L<le;){var He=b[L];this.set(He[0],He[1])}}function Hr(){this.__data__=[],this.size=0}function Ui(b){var L=this.__data__,le=jr(L,b);if(le<0)return!1;var He=L.length-1;return le==He?L.pop():gt.call(L,le,1),--this.size,!0}function ri(b){var L=this.__data__,le=jr(L,b);return le<0?void 0:L[le][1]}function mo(b){return jr(this.__data__,b)>-1}function Qr(b,L){var le=this.__data__,He=jr(le,b);return He<0?(++this.size,le.push([b,L])):le[He][1]=L,this}_r.prototype.clear=Hr,_r.prototype.delete=Ui,_r.prototype.get=ri,_r.prototype.has=mo,_r.prototype.set=Qr;function ii(b){var L=-1,le=b==null?0:b.length;for(this.clear();++L<le;){var He=b[L];this.set(He[0],He[1])}}function Co(){this.size=0,this.__data__={hash:new cn,map:new(ui||_r),string:new cn}}function zo(b){var L=Zi(this,b).delete(b);return this.size-=L?1:0,L}function Ca(b){return Zi(this,b).get(b)}function Di(b){return Zi(this,b).has(b)}function Gi(b,L){var le=Zi(this,b),He=le.size;return le.set(b,L),this.size+=le.size==He?0:1,this}ii.prototype.clear=Co,ii.prototype.delete=zo,ii.prototype.get=Ca,ii.prototype.has=Di,ii.prototype.set=Gi;function no(b){var L=-1,le=b==null?0:b.length;for(this.__data__=new ii;++L<le;)this.add(b[L])}function Ho(b){return this.__data__.set(b,n),this}function Ki(b){return this.__data__.has(b)}no.prototype.add=no.prototype.push=Ho,no.prototype.has=Ki;function Si(b){var L=this.__data__=new _r(b);this.size=L.size}function Ei(){this.__data__=new _r,this.size=0}function uo(b){var L=this.__data__,le=L.delete(b);return this.size=L.size,le}function yo(b){return this.__data__.get(b)}function wi(b){return this.__data__.has(b)}function Uo(b,L){var le=this.__data__;if(le instanceof _r){var He=le.__data__;if(!ui||He.length<t-1)return He.push([b,L]),this.size=++le.size,this;le=this.__data__=new ii(He)}return le.set(b,L),this.size=le.size,this}Si.prototype.clear=Ei,Si.prototype.delete=uo,Si.prototype.get=yo,Si.prototype.has=wi,Si.prototype.set=Uo;function bo(b,L){var le=Ao(b),He=!le&&lo(b),An=!le&&!He&&jo(b),Dn=!le&&!He&&!An&&ha(b),dr=le||He||An||Dn,Or=dr?$t(b.length,String):[],Fi=Or.length;for(var kr in b)(L||Vr.call(b,kr))&&!(dr&&(kr=="length"||An&&(kr=="offset"||kr=="parent")||Dn&&(kr=="buffer"||kr=="byteLength"||kr=="byteOffset")||_a(kr,Fi)))&&Or.push(kr);return Or}function jr(b,L){for(var le=b.length;le--;)if(Za(b[le][0],L))return le;return-1}function so(b,L,le){var He=L(b);return Ao(b)?He:Bn(He,le(b))}function Ci(b){return b==null?b===void 0?Ge:me:jt&&jt in Object(b)?No(b):Ro(b)}function Xi(b){return qr(b)&&Ci(b)==P}function Po(b,L,le,He,An){return b===L?!0:b==null||L==null||!qr(b)&&!qr(L)?b!==b&&L!==L:di(b,L,le,He,Po,An)}function di(b,L,le,He,An,Dn){var dr=Ao(b),Or=Ao(L),Fi=dr?_:si(b),kr=Or?_:si(L);Fi=Fi==P?ne:Fi,kr=kr==P?ne:kr;var pi=Fi==ne,Ri=kr==ne,li=Fi==kr;if(li&&jo(b)){if(!jo(L))return!1;dr=!0,pi=!1}if(li&&!pi)return Dn||(Dn=new Si),dr||ha(b)?Yi(b,L,le,He,An,Dn):Aa(b,L,Fi,le,He,An,Dn);if(!(le&c)){var Pi=pi&&Vr.call(b,"__wrapped__"),ji=Ri&&Vr.call(L,"__wrapped__");if(Pi||ji){var Ji=Pi?b.value():b,xi=ji?L.value():L;return Dn||(Dn=new Si),An(Ji,xi,le,He,Dn)}}return li?(Dn||(Dn=new Si),ko(b,L,le,He,An,Dn)):!1}function po(b){if(!Ii(b)||pu(b))return!1;var L=pa(b)?Tr:de;return L.test(Wr(b))}function du(b){return qr(b)&&Vo(b.length)&&!!Ie[Ci(b)]}function Ti(b){if(!Ma(b))return Dr(b);var L=[];for(var le in Object(b))Vr.call(b,le)&&le!="constructor"&&L.push(le);return L}function Yi(b,L,le,He,An,Dn){var dr=le&c,Or=b.length,Fi=L.length;if(Or!=Fi&&!(dr&&Fi>Or))return!1;var kr=Dn.get(b);if(kr&&Dn.get(L))return kr==L;var pi=-1,Ri=!0,li=le&f?new no:void 0;for(Dn.set(b,L),Dn.set(L,b);++pi<Or;){var Pi=b[pi],ji=L[pi];if(He)var Ji=dr?He(ji,Pi,pi,L,b,Dn):He(Pi,ji,pi,b,L,Dn);if(Ji!==void 0){if(Ji)continue;Ri=!1;break}if(li){if(!er(L,function(xi,go){if(!Pr(li,go)&&(Pi===xi||An(Pi,xi,le,He,Dn)))return li.push(go)})){Ri=!1;break}}else if(!(Pi===ji||An(Pi,ji,le,He,Dn))){Ri=!1;break}}return Dn.delete(b),Dn.delete(L),Ri}function Aa(b,L,le,He,An,Dn,dr){switch(le){case tn:if(b.byteLength!=L.byteLength||b.byteOffset!=L.byteOffset)return!1;b=b.buffer,L=L.buffer;case qt:return!(b.byteLength!=L.byteLength||!Dn(new Ce(b),new Ce(L)));case O:case k:case te:return Za(+b,+L);case S:return b.name==L.name&&b.message==L.message;case Ee:case Qe:return b==L+"";case re:var Or=qn;case ye:var Fi=He&c;if(Or||(Or=Nr),b.size!=L.size&&!Fi)return!1;var kr=dr.get(b);if(kr)return kr==L;He|=f,dr.set(b,L);var pi=Yi(Or(b),Or(L),He,An,Dn,dr);return dr.delete(b),pi;case qe:if(lr)return lr.call(b)==lr.call(L)}return!1}function ko(b,L,le,He,An,Dn){var dr=le&c,Or=Eo(b),Fi=Or.length,kr=Eo(L),pi=kr.length;if(Fi!=pi&&!dr)return!1;for(var Ri=Fi;Ri--;){var li=Or[Ri];if(!(dr?li in L:Vr.call(L,li)))return!1}var Pi=Dn.get(b);if(Pi&&Dn.get(L))return Pi==L;var ji=!0;Dn.set(b,L),Dn.set(L,b);for(var Ji=dr;++Ri<Fi;){li=Or[Ri];var xi=b[li],go=L[li];if(He)var Ja=dr?He(go,xi,li,L,b,Dn):He(xi,go,li,b,L,Dn);if(!(Ja===void 0?xi===go||An(xi,go,le,He,Dn):Ja)){ji=!1;break}Ji||(Ji=li=="constructor")}if(ji&&!Ji){var ga=b.constructor,io=L.constructor;ga!=io&&"constructor"in b&&"constructor"in L&&!(typeof ga=="function"&&ga instanceof ga&&typeof io=="function"&&io instanceof io)&&(ji=!1)}return Dn.delete(b),Dn.delete(L),ji}function Eo(b){return so(b,ho,oa)}function Zi(b,L){var le=b.__data__;return Io(L)?le[typeof L=="string"?"string":"hash"]:le.map}function Ai(b,L){var le=Mr(b,L);return po(le)?le:void 0}function No(b){var L=Vr.call(b,jt),le=b[jt];try{b[jt]=void 0;var He=!0}catch(Dn){}var An=Ir.call(b);return He&&(L?b[jt]=le:delete b[jt]),An}var oa=Mt?function(b){return b==null?[]:(b=Object(b),Xt(Mt(b),function(L){return we.call(b,L)}))}:Wo,si=Ci;(Ar&&si(new Ar(new ArrayBuffer(1)))!=tn||ui&&si(new ui)!=re||Kt&&si(Kt.resolve())!=X||Pt&&si(new Pt)!=ye||xt&&si(new xt)!=zt)&&(si=function(b){var L=Ci(b),le=L==ne?b.constructor:void 0,He=le?Wr(le):"";if(He)switch(He){case gn:return tn;case Vt:return re;case Xn:return X;case Gn:return ye;case Hn:return zt}return L});function _a(b,L){return L=L==null?m:L,!!L&&(typeof b=="number"||xe.test(b))&&b>-1&&b%1==0&&b<L}function Io(b){var L=typeof b;return L=="string"||L=="number"||L=="symbol"||L=="boolean"?b!=="__proto__":b===null}function pu(b){return!!Jr&&Jr in b}function Ma(b){var L=b&&b.constructor,le=typeof L=="function"&&L.prototype||Ut;return b===le}function Ro(b){return Ir.call(b)}function Wr(b){if(b!=null){try{return fi.call(b)}catch(L){}try{return b+""}catch(L){}}return""}function Za(b,L){return b===L||b!==b&&L!==L}var lo=Xi((function(){return arguments})())?Xi:function(b){return qr(b)&&Vr.call(b,"callee")&&!we.call(b,"callee")},Ao=Array.isArray;function Bi(b){return b!=null&&Vo(b.length)&&!pa(b)}var jo=Ln||Oa;function co(b,L){return Po(b,L)}function pa(b){if(!Ii(b))return!1;var L=Ci(b);return L==B||L==W||L==x||L==q}function Vo(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=m}function Ii(b){var L=typeof b;return b!=null&&(L=="object"||L=="function")}function qr(b){return b!=null&&typeof b=="object"}var ha=Cn?zn(Cn):du;function ho(b){return Bi(b)?bo(b):Ti(b)}function Wo(){return[]}function Oa(){return!1}r.exports=co}),a5=xl(function(r,e){(function(t,n){r.exports=n(qi,rp,ih,Vp,Ed,tp,o5)})(Ur,(function(t,n,c,f,m,P,_){function x(F){return F&&typeof F=="object"&&"default"in F?F:{default:F}}var O=x(f),k=x(m),S=x(_);t.i18nAddResources("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"}}),t.i18nAddResources("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var B=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:{};function W(F){var H={exports:{}};return F(H,H.exports),H.exports}var re,te,me=function(F){return F&&F.Math==Math&&F},ne=me(typeof globalThis=="object"&&globalThis)||me(typeof window=="object"&&window)||me(typeof self=="object"&&self)||me(typeof B=="object"&&B)||(function(){return this})()||Function("return this")(),X=function(F){try{return!!F()}catch(H){return!0}},q=!X((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Ee=Function.prototype.call,ye=Ee.bind?Ee.bind(Ee):function(){return Ee.apply(Ee,arguments)},Qe={}.propertyIsEnumerable,qe=Object.getOwnPropertyDescriptor,Ge={f:qe&&!Qe.call({1:2},1)?function(F){var H=qe(this,F);return!!H&&H.enumerable}:Qe},zt=function(F,H){return{enumerable:!(1&F),configurable:!(2&F),writable:!(4&F),value:H}},qt=Function.prototype,tn=qt.bind,an=qt.call,kn=tn&&tn.bind(an),At=tn?function(F){return F&&kn(an,F)}:function(F){return F&&function(){return an.apply(F,arguments)}},Wn=At({}.toString),Ae=At("".slice),Dt=function(F){return Ae(Wn(F),8,-1)},hn=ne.Object,Ot=At("".split),Sn=X((function(){return!hn("z").propertyIsEnumerable(0)}))?function(F){return Dt(F)=="String"?Ot(F,""):hn(F)}:hn,be=ne.TypeError,de=function(F){if(F==null)throw be("Can't call method on "+F);return F},xe=function(F){return Sn(de(F))},Ie=function(F){return typeof F=="function"},Ye=function(F){return typeof F=="object"?F!==null:Ie(F)},oe=function(F){return Ie(F)?F:void 0},ht=function(F,H){return arguments.length<2?oe(ne[F]):ne[F]&&ne[F][H]},Gt=At({}.isPrototypeOf),xn=ht("navigator","userAgent")||"",bn=ne.process,at=ne.Deno,un=bn&&bn.versions||at&&at.version,Cn=un&&un.v8;Cn&&(te=(re=Cn.split("."))[0]>0&&re[0]<4?1:+(re[0]+re[1])),!te&&xn&&(!(re=xn.match(/Edge\/(\d+)/))||re[1]>=74)&&(re=xn.match(/Chrome\/(\d+)/))&&(te=+re[1]);var Xt=te,Bn=!!Object.getOwnPropertySymbols&&!X((function(){var F=Symbol();return!String(F)||!(Object(F)instanceof Symbol)||!Symbol.sham&&Xt&&Xt<41})),er=Bn&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$t=ne.Object,zn=er?function(F){return typeof F=="symbol"}:function(F){var H=ht("Symbol");return Ie(H)&&Gt(H.prototype,$t(F))},Pr=ne.String,Mr=function(F){try{return Pr(F)}catch(H){return"Object"}},qn=ne.TypeError,Nn=function(F){if(Ie(F))return F;throw qn(Mr(F)+" is not a function")},Nr=function(F,H){var se=F[H];return se==null?void 0:Nn(se)},jn=ne.TypeError,br=Object.defineProperty,Ut=function(F,H){try{br(ne,F,{value:H,configurable:!0,writable:!0})}catch(se){ne[F]=H}return H},fr="__core-js_shared__",fi=ne[fr]||Ut(fr,{}),Vr=W((function(F){(F.exports=function(H,se){return fi[H]||(fi[H]=se!==void 0?se:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Jr=ne.Object,Ir=function(F){return Jr(de(F))},Tr=At({}.hasOwnProperty),ve=Object.hasOwn||function(F,H){return Tr(Ir(F),H)},Ve=0,Ce=Math.random(),we=At(1 .toString),gt=function(F){return"Symbol("+(F===void 0?"":F)+")_"+we(++Ve+Ce,36)},jt=Vr("wks"),Mt=ne.Symbol,Ln=Mt&&Mt.for,Dr=er?Mt:Mt&&Mt.withoutSetter||gt,Ar=function(F){if(!ve(jt,F)||!Bn&&typeof jt[F]!="string"){var H="Symbol."+F;Bn&&ve(Mt,F)?jt[F]=Mt[F]:jt[F]=er&&Ln?Ln(H):Dr(H)}return jt[F]},ui=ne.TypeError,Kt=Ar("toPrimitive"),Pt=function(F,H){if(!Ye(F)||zn(F))return F;var se,Ke=Nr(F,Kt);if(Ke){if(H===void 0&&(H="default"),se=ye(Ke,F,H),!Ye(se)||zn(se))return se;throw ui("Can't convert object to primitive value")}return H===void 0&&(H="number"),(function(Oe,We){var dt,et;if(We==="string"&&Ie(dt=Oe.toString)&&!Ye(et=ye(dt,Oe))||Ie(dt=Oe.valueOf)&&!Ye(et=ye(dt,Oe))||We!=="string"&&Ie(dt=Oe.toString)&&!Ye(et=ye(dt,Oe)))return et;throw jn("Can't convert object to primitive value")})(F,H)},xt=function(F){var H=Pt(F,"string");return zn(H)?H:H+""},Yt=ne.document,gn=Ye(Yt)&&Ye(Yt.createElement),Vt=function(F){return gn?Yt.createElement(F):{}},Xn=!q&&!X((function(){return Object.defineProperty(Vt("div"),"a",{get:function(){return 7}}).a!=7})),Gn=Object.getOwnPropertyDescriptor,Hn={f:q?Gn:function(F,H){if(F=xe(F),H=xt(H),Xn)try{return Gn(F,H)}catch(se){}if(ve(F,H))return zt(!ye(Ge.f,F,H),F[H])}},ln=ne.String,lr=ne.TypeError,cn=function(F){if(Ye(F))return F;throw lr(ln(F)+" is not an object")},Rr=ne.TypeError,mr=Object.defineProperty,Er={f:q?mr:function(F,H,se){if(cn(F),H=xt(H),cn(se),Xn)try{return mr(F,H,se)}catch(Ke){}if("get"in se||"set"in se)throw Rr("Accessors not supported");return"value"in se&&(F[H]=se.value),F}},yi=q?function(F,H,se){return Er.f(F,H,zt(1,se))}:function(F,H,se){return F[H]=se,F},bi=At(Function.toString);Ie(fi.inspectSource)||(fi.inspectSource=function(F){return bi(F)});var _r,Hr,Ui,ri=fi.inspectSource,mo=ne.WeakMap,Qr=Ie(mo)&&/native code/.test(ri(mo)),ii=Vr("keys"),Co=function(F){return ii[F]||(ii[F]=gt(F))},zo={},Ca="Object already initialized",Di=ne.TypeError,Gi=ne.WeakMap;if(Qr||fi.state){var no=fi.state||(fi.state=new Gi),Ho=At(no.get),Ki=At(no.has),Si=At(no.set);_r=function(F,H){if(Ki(no,F))throw new Di(Ca);return H.facade=F,Si(no,F,H),H},Hr=function(F){return Ho(no,F)||{}},Ui=function(F){return Ki(no,F)}}else{var Ei=Co("state");zo[Ei]=!0,_r=function(F,H){if(ve(F,Ei))throw new Di(Ca);return H.facade=F,yi(F,Ei,H),H},Hr=function(F){return ve(F,Ei)?F[Ei]:{}},Ui=function(F){return ve(F,Ei)}}var uo={set:_r,get:Hr,has:Ui,enforce:function(F){return Ui(F)?Hr(F):_r(F,{})},getterFor:function(F){return function(H){var se;if(!Ye(H)||(se=Hr(H)).type!==F)throw Di("Incompatible receiver, "+F+" required");return se}}},yo=Function.prototype,wi=q&&Object.getOwnPropertyDescriptor,Uo=ve(yo,"name"),bo={EXISTS:Uo,PROPER:Uo&&function(){}.name==="something",CONFIGURABLE:Uo&&(!q||q&&wi(yo,"name").configurable)},jr=W((function(F){var H=bo.CONFIGURABLE,se=uo.get,Ke=uo.enforce,Oe=String(String).split("String");(F.exports=function(We,dt,et,rt){var Ft,It=!!rt&&!!rt.unsafe,Zt=!!rt&&!!rt.enumerable,sn=!!rt&&!!rt.noTargetGet,Jt=rt&&rt.name!==void 0?rt.name:dt;Ie(et)&&(String(Jt).slice(0,7)==="Symbol("&&(Jt="["+String(Jt).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ve(et,"name")||H&&et.name!==Jt)&&yi(et,"name",Jt),(Ft=Ke(et)).source||(Ft.source=Oe.join(typeof Jt=="string"?Jt:""))),We!==ne?(It?!sn&&We[dt]&&(Zt=!0):delete We[dt],Zt?We[dt]=et:yi(We,dt,et)):Zt?We[dt]=et:Ut(dt,et)})(Function.prototype,"toString",(function(){return Ie(this)&&se(this).source||ri(this)}))})),so=Math.ceil,Ci=Math.floor,Xi=function(F){var H=+F;return H!=H||H===0?0:(H>0?Ci:so)(H)},Po=Math.max,di=Math.min,po=function(F,H){var se=Xi(F);return se<0?Po(se+H,0):di(se,H)},du=Math.min,Ti=function(F){return F>0?du(Xi(F),9007199254740991):0},Yi=function(F){return Ti(F.length)},Aa=function(F){return function(H,se,Ke){var Oe,We=xe(H),dt=Yi(We),et=po(Ke,dt);if(F&&se!=se){for(;dt>et;)if((Oe=We[et++])!=Oe)return!0}else for(;dt>et;et++)if((F||et in We)&&We[et]===se)return F||et||0;return!F&&-1}},ko={includes:Aa(!0),indexOf:Aa(!1)}.indexOf,Eo=At([].push),Zi=function(F,H){var se,Ke=xe(F),Oe=0,We=[];for(se in Ke)!ve(zo,se)&&ve(Ke,se)&&Eo(We,se);for(;H.length>Oe;)ve(Ke,se=H[Oe++])&&(~ko(We,se)||Eo(We,se));return We},Ai=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],No=Ai.concat("length","prototype"),oa={f:Object.getOwnPropertyNames||function(F){return Zi(F,No)}},si={f:Object.getOwnPropertySymbols},_a=At([].concat),Io=ht("Reflect","ownKeys")||function(F){var H=oa.f(cn(F)),se=si.f;return se?_a(H,se(F)):H},pu=function(F,H){for(var se=Io(H),Ke=Er.f,Oe=Hn.f,We=0;We<se.length;We++){var dt=se[We];ve(F,dt)||Ke(F,dt,Oe(H,dt))}},Ma=/#|\.prototype\./,Ro=function(F,H){var se=Za[Wr(F)];return se==Ao||se!=lo&&(Ie(H)?X(H):!!H)},Wr=Ro.normalize=function(F){return String(F).replace(Ma,".").toLowerCase()},Za=Ro.data={},lo=Ro.NATIVE="N",Ao=Ro.POLYFILL="P",Bi=Ro,jo=Hn.f,co=function(F,H){var se,Ke,Oe,We,dt,et=F.target,rt=F.global,Ft=F.stat;if(se=rt?ne:Ft?ne[et]||Ut(et,{}):(ne[et]||{}).prototype)for(Ke in H){if(We=H[Ke],Oe=F.noTargetGet?(dt=jo(se,Ke))&&dt.value:se[Ke],!Bi(rt?Ke:et+(Ft?".":"#")+Ke,F.forced)&&Oe!==void 0){if(typeof We==typeof Oe)continue;pu(We,Oe)}(F.sham||Oe&&Oe.sham)&&yi(We,"sham",!0),jr(se,Ke,We,F)}},pa={};pa[Ar("toStringTag")]="z";var Vo,Ii=String(pa)==="[object z]",qr=Ar("toStringTag"),ha=ne.Object,ho=Dt((function(){return arguments})())=="Arguments",Wo=Ii?Dt:function(F){var H,se,Ke;return F===void 0?"Undefined":F===null?"Null":typeof(se=(function(Oe,We){try{return Oe[We]}catch(dt){}})(H=ha(F),qr))=="string"?se:ho?Dt(H):(Ke=Dt(H))=="Object"&&Ie(H.callee)?"Arguments":Ke},Oa=ne.String,b=function(F){if(Wo(F)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Oa(F)},L=/"/g,le=At("".replace);co({target:"String",proto:!0,forced:(Vo="anchor",X((function(){var F=""[Vo]('"');return F!==F.toLowerCase()||F.split('"').length>3})))},{anchor:function(F){return H="a",se="name",Ke=F,Oe=b(de(this)),We="<"+H,se!==""&&(We+=" "+se+'="'+le(b(Ke),L,"&quot;")+'"'),We+">"+Oe+"</"+H+">";var H,se,Ke,Oe,We}});var He,An=function(){var F=cn(this),H="";return F.global&&(H+="g"),F.ignoreCase&&(H+="i"),F.multiline&&(H+="m"),F.dotAll&&(H+="s"),F.unicode&&(H+="u"),F.sticky&&(H+="y"),H},Dn=ne.RegExp,dr=X((function(){var F=Dn("a","y");return F.lastIndex=2,F.exec("abcd")!=null})),Or=dr||X((function(){return!Dn("a","y").sticky})),Fi={BROKEN_CARET:dr||X((function(){var F=Dn("^r","gy");return F.lastIndex=2,F.exec("str")!=null})),MISSED_STICKY:Or,UNSUPPORTED_Y:dr},kr=Object.keys||function(F){return Zi(F,Ai)},pi=q?Object.defineProperties:function(F,H){cn(F);for(var se,Ke=xe(H),Oe=kr(H),We=Oe.length,dt=0;We>dt;)Er.f(F,se=Oe[dt++],Ke[se]);return F},Ri=ht("document","documentElement"),li=Co("IE_PROTO"),Pi=function(){},ji=function(F){return"<script>"+F+"<\/script>"},Ji=function(F){F.write(ji("")),F.close();var H=F.parentWindow.Object;return F=null,H},xi=function(){try{He=new ActiveXObject("htmlfile")}catch(Ke){}var F,H;xi=typeof document!="undefined"?document.domain&&He?Ji(He):((H=Vt("iframe")).style.display="none",Ri.appendChild(H),H.src="javascript:",(F=H.contentWindow.document).open(),F.write(ji("document.F=Object")),F.close(),F.F):Ji(He);for(var se=Ai.length;se--;)delete xi.prototype[Ai[se]];return xi()};zo[li]=!0;var go,Ja,ga=Object.create||function(F,H){var se;return F!==null?(Pi.prototype=cn(F),se=new Pi,Pi.prototype=null,se[li]=F):se=xi(),H===void 0?se:pi(se,H)},io=ne.RegExp,hu=X((function(){var F=io(".","s");return!(F.dotAll&&F.exec(`
`)&&F.flags==="s")})),Qa=ne.RegExp,Ts=X((function(){var F=Qa("(?<a>b)","g");return F.exec("b").groups.a!=="b"||"b".replace(F,"$<a>c")!=="bc"})),hi=uo.get,va=Vr("native-string-replace",String.prototype.replace),wo=RegExp.prototype.exec,aa=wo,ua=At("".charAt),_o=At("".indexOf),Tu=At("".replace),Wu=At("".slice),Bu=(Ja=/b*/g,ye(wo,go=/a/,"a"),ye(wo,Ja,"a"),go.lastIndex!==0||Ja.lastIndex!==0),Fu=Fi.BROKEN_CARET,sa=/()??/.exec("")[1]!==void 0;(Bu||sa||Fu||hu||Ts)&&(aa=function(F){var H,se,Ke,Oe,We,dt,et,rt=this,Ft=hi(rt),It=b(F),Zt=Ft.raw;if(Zt)return Zt.lastIndex=rt.lastIndex,H=ye(aa,Zt,It),rt.lastIndex=Zt.lastIndex,H;var sn=Ft.groups,Jt=Fu&&rt.sticky,gr=ye(An,rt),pr=rt.source,Lr=0,vi=It;if(Jt&&(gr=Tu(gr,"y",""),_o(gr,"g")===-1&&(gr+="g"),vi=Wu(It,rt.lastIndex),rt.lastIndex>0&&(!rt.multiline||rt.multiline&&ua(It,rt.lastIndex-1)!==`
`)&&(pr="(?: "+pr+")",vi=" "+vi,Lr++),se=new RegExp("^(?:"+pr+")",gr)),sa&&(se=new RegExp("^"+pr+"$(?!\\s)",gr)),Bu&&(Ke=rt.lastIndex),Oe=ye(wo,Jt?se:rt,vi),Jt?Oe?(Oe.input=Wu(Oe.input,Lr),Oe[0]=Wu(Oe[0],Lr),Oe.index=rt.lastIndex,rt.lastIndex+=Oe[0].length):rt.lastIndex=0:Bu&&Oe&&(rt.lastIndex=rt.global?Oe.index+Oe[0].length:Ke),sa&&Oe&&Oe.length>1&&ye(va,Oe[0],se,(function(){for(We=1;We<arguments.length-2;We++)arguments[We]===void 0&&(Oe[We]=void 0)})),Oe&&sn)for(Oe.groups=dt=ga(null),We=0;We<sn.length;We++)dt[(et=sn[We])[0]]=Oe[et[1]];return Oe});var qo=aa;co({target:"RegExp",proto:!0,forced:/./.exec!==qo},{exec:qo});var gu=Array.isArray||function(F){return Dt(F)=="Array"},eu=function(){},qu=[],tu=ht("Reflect","construct"),Pu=/^\s*(?:class|function)\b/,$r=At(Pu.exec),$a=!Pu.exec(eu),nu=function(F){if(!Ie(F))return!1;try{return tu(eu,qu,F),!0}catch(H){return!1}},xo=!tu||X((function(){var F;return nu(nu.call)||!nu(Object)||!nu((function(){F=!0}))||F}))?function(F){if(!Ie(F))return!1;switch(Wo(F)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $a||!!$r(Pu,ri(F))}:nu,Bs=function(F,H,se){var Ke=xt(H);Ke in F?Er.f(F,Ke,zt(0,se)):F[Ke]=se},Fs=Ar("species"),la=function(F){return Xt>=51||!X((function(){var H=[];return(H.constructor={})[Fs]=function(){return{foo:1}},H[F](Boolean).foo!==1}))},ru=At([].slice),cs=la("slice"),ku=Ar("species"),Ta=ne.Array,Gu=Math.max;function Go(F,H){var se=typeof Symbol=="function"&&F[Symbol.iterator];if(!se)return F;var Ke,Oe,We=se.call(F),dt=[];try{for(;(H===void 0||H-- >0)&&!(Ke=We.next()).done;)dt.push(Ke.value)}catch(et){Oe={error:et}}finally{try{Ke&&!Ke.done&&(se=We.return)&&se.call(We)}finally{if(Oe)throw Oe.error}}return dt}function Ku(F){var H=F.selection;if(H==null)return!1;var se=Go(n.Editor.nodes(F,{match:function(We){return t.DomEditor.checkNodeType(We,"table-cell")}}),1)[0];if(se){var Ke=Go(se,2)[1],Oe=n.Editor.start(F,Ke);if(n.Point.equals(H.anchor,Oe))return!0}return!1}function Nu(F,H){var se,Ke,Oe=n.Editor.nodes(F,{at:H,match:function(rt){return t.DomEditor.getNodeType(rt)==="table"}}),We=!1;try{for(var dt=(function(rt){var Ft=typeof Symbol=="function"&&Symbol.iterator,It=Ft&&rt[Ft],Zt=0;if(It)return It.call(rt);if(rt&&typeof rt.length=="number")return{next:function(){return rt&&Zt>=rt.length&&(rt=void 0),{value:rt&&rt[Zt++],done:!rt}}};throw new TypeError(Ft?"Object is not iterable.":"Symbol.iterator is not defined.")})(Oe),et=dt.next();!et.done;et=dt.next())et.value,We=!0}catch(rt){se={error:rt}}finally{try{et&&!et.done&&(Ke=dt.return)&&Ke.call(dt)}finally{if(se)throw se.error}}return We}co({target:"Array",proto:!0,forced:!cs},{slice:function(F,H){var se,Ke,Oe,We=xe(this),dt=Yi(We),et=po(F,dt),rt=po(H===void 0?dt:H,dt);if(gu(We)&&(se=We.constructor,(xo(se)&&(se===Ta||gu(se.prototype))||Ye(se)&&(se=se[ku])===null)&&(se=void 0),se===Ta||se===void 0))return ru(We,et,rt);for(Ke=new(se===void 0?Ta:se)(Gu(rt-et,0)),Oe=0;et<rt;et++,Oe++)et in We&&Bs(Ke,Oe,We[et]);return Ke.length=Oe,Ke}});var vu=At(At.bind),mu=Ar("species"),Iu=ne.Array,Xr=function(F,H){return new((function(se){var Ke;return gu(se)&&(Ke=se.constructor,(xo(Ke)&&(Ke===Iu||gu(Ke.prototype))||Ye(Ke)&&(Ke=Ke[mu])===null)&&(Ke=void 0)),Ke===void 0?Iu:Ke})(F))(H===0?0:H)},za=At([].push),ma=function(F){var H=F==1,se=F==2,Ke=F==3,Oe=F==4,We=F==6,dt=F==7,et=F==5||We;return function(rt,Ft,It,Zt){for(var sn,Jt,gr=Ir(rt),pr=Sn(gr),Lr=(function(Mo,To){return Nn(Mo),To===void 0?Mo:vu?vu(Mo,To):function(){return Mo.apply(To,arguments)}})(Ft,It),vi=Yi(pr),Gr=0,Qi=Zt||Xr,ea=H?Qi(rt,vi):se||dt?Qi(rt,0):void 0;vi>Gr;Gr++)if((et||Gr in pr)&&(Jt=Lr(sn=pr[Gr],Gr,gr),F))if(H)ea[Gr]=Jt;else if(Jt)switch(F){case 3:return!0;case 5:return sn;case 6:return Gr;case 2:za(ea,sn)}else switch(F){case 4:return!1;case 7:za(ea,sn)}return We?-1:Ke||Oe?Oe:ea}},iu={forEach:ma(0),map:ma(1),filter:ma(2),some:ma(3),every:ma(4),find:ma(5),findIndex:ma(6),filterReject:ma(7)},Ba=iu.map;co({target:"Array",proto:!0,forced:!la("map")},{map:function(F){return Ba(this,F,arguments.length>1?arguments[1]:void 0)}});var fs=Ii?{}.toString:function(){return"[object "+Wo(this)+"]"};function yu(F){var H=F.children||[];return H.length===0?[]:(H[0]||{}).children||[]}function Ps(F){return yu(F).every((function(H){return!!H.isHeader}))}Ii||jr(Object.prototype,"toString",fs,{unsafe:!0});var Xu=bo.PROPER,Ko="toString",Yu=RegExp.prototype,Zu=Yu.toString,ks=At(An),ds=X((function(){return Zu.call({source:"a",flags:"b"})!="/a/b"})),Fa=Xu&&Zu.name!=Ko;(ds||Fa)&&jr(RegExp.prototype,Ko,(function(){var F=cn(this),H=b(F.source),se=F.flags;return"/"+H+"/"+b(se===void 0&&Gt(Yu,F)&&!("flags"in Yu)?ks(F):se)}),{unsafe:!0});var ya=Ar("unscopables"),Pa=Array.prototype;Pa[ya]==null&&Er.f(Pa,ya,{configurable:!0,value:ga(null)});var ka,ou=iu.find,bu="find",ba=!0;bu in[]&&Array(1).find((function(){ba=!1})),co({target:"Array",proto:!0,forced:ba},{find:function(F){return ou(this,F,arguments.length>1?arguments[1]:void 0)}}),ka=bu,Pa[ya][ka]=!0;var Ru=Function.prototype,Ju=Ru.apply,ju=Ru.bind,Xo=Ru.call,Ea=typeof Reflect=="object"&&Reflect.apply||(ju?Xo.bind(Ju):function(){return Xo.apply(Ju,arguments)}),Ns=Ar("species"),Ha=RegExp.prototype,Eu=function(F,H,se,Ke){var Oe=Ar(F),We=!X((function(){var Ft={};return Ft[Oe]=function(){return 7},""[F](Ft)!=7})),dt=We&&!X((function(){var Ft=!1,It=/a/;return F==="split"&&((It={}).constructor={},It.constructor[Ns]=function(){return It},It.flags="",It[Oe]=/./[Oe]),It.exec=function(){return Ft=!0,null},It[Oe](""),!Ft}));if(!We||!dt||se){var et=At(/./[Oe]),rt=H(Oe,""[F],(function(Ft,It,Zt,sn,Jt){var gr=At(Ft),pr=It.exec;return pr===qo||pr===Ha.exec?We&&!Jt?{done:!0,value:et(It,Zt,sn)}:{done:!0,value:gr(Zt,It,sn)}:{done:!1}}));jr(String.prototype,F,rt[0]),jr(Ha,Oe,rt[1])}Ke&&yi(Ha[Oe],"sham",!0)},Na=Ar("match"),au=ne.TypeError,ps=Ar("species"),wu=function(F,H){var se,Ke=cn(F).constructor;return Ke===void 0||(se=cn(Ke)[ps])==null?H:(function(Oe){if(xo(Oe))return Oe;throw au(Mr(Oe)+" is not a constructor")})(se)},hs=At("".charAt),Yo=At("".charCodeAt),gs=At("".slice),vs=function(F){return function(H,se){var Ke,Oe,We=b(de(H)),dt=Xi(se),et=We.length;return dt<0||dt>=et?F?"":void 0:(Ke=Yo(We,dt))<55296||Ke>56319||dt+1===et||(Oe=Yo(We,dt+1))<56320||Oe>57343?F?hs(We,dt):Ke:F?gs(We,dt,dt+2):Oe-56320+(Ke-55296<<10)+65536}},Qu={codeAt:vs(!1),charAt:vs(!0)}.charAt,ca=function(F,H,se){return H+(se?Qu(F,H).length:1)},Is=ne.Array,uu=Math.max,Gs=function(F,H,se){for(var Ke=Yi(F),Oe=po(H,Ke),We=po(se===void 0?Ke:se,Ke),dt=Is(uu(We-Oe,0)),et=0;Oe<We;Oe++,et++)Bs(dt,et,F[Oe]);return dt.length=et,dt},Rs=ne.TypeError,T=function(F,H){var se=F.exec;if(Ie(se)){var Ke=ye(se,F,H);return Ke!==null&&cn(Ke),Ke}if(Dt(F)==="RegExp")return ye(qo,F,H);throw Rs("RegExp#exec called on incompatible receiver")},z=Fi.UNSUPPORTED_Y,ue=4294967295,Me=Math.min,Fe=[].push,ot=At(/./.exec),Te=At(Fe),ct=At("".slice),vt=!X((function(){var F=/(?:)/,H=F.exec;F.exec=function(){return H.apply(this,arguments)};var se="ab".split(F);return se.length!==2||se[0]!=="a"||se[1]!=="b"}));Eu("split",(function(F,H,se){var Ke;return Ke="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(Oe,We){var dt,et,rt=b(de(this)),Ft=We===void 0?ue:We>>>0;if(Ft===0)return[];if(Oe===void 0)return[rt];if(!Ye(dt=Oe)||!((et=dt[Na])!==void 0?et:Dt(dt)=="RegExp"))return ye(H,rt,Oe,Ft);for(var It,Zt,sn,Jt=[],gr=(Oe.ignoreCase?"i":"")+(Oe.multiline?"m":"")+(Oe.unicode?"u":"")+(Oe.sticky?"y":""),pr=0,Lr=new RegExp(Oe.source,gr+"g");(It=ye(qo,Lr,rt))&&!((Zt=Lr.lastIndex)>pr&&(Te(Jt,ct(rt,pr,It.index)),It.length>1&&It.index<rt.length&&Ea(Fe,Jt,Gs(It,1)),sn=It[0].length,pr=Zt,Jt.length>=Ft));)Lr.lastIndex===It.index&&Lr.lastIndex++;return pr===rt.length?!sn&&ot(Lr,"")||Te(Jt,""):Te(Jt,ct(rt,pr)),Jt.length>Ft?Gs(Jt,0,Ft):Jt}:"0".split(void 0,0).length?function(Oe,We){return Oe===void 0&&We===0?[]:ye(H,this,Oe,We)}:H,[function(Oe,We){var dt=de(this),et=Oe==null?void 0:Nr(Oe,F);return et?ye(et,Oe,dt,We):ye(Ke,b(dt),Oe,We)},function(Oe,We){var dt=cn(this),et=b(Oe),rt=se(Ke,dt,et,We,Ke!==H);if(rt.done)return rt.value;var Ft=wu(dt,RegExp),It=dt.unicode,Zt=(dt.ignoreCase?"i":"")+(dt.multiline?"m":"")+(dt.unicode?"u":"")+(z?"g":"y"),sn=new Ft(z?"^(?:"+dt.source+")":dt,Zt),Jt=We===void 0?ue:We>>>0;if(Jt===0)return[];if(et.length===0)return T(sn,et)===null?[et]:[];for(var gr=0,pr=0,Lr=[];pr<et.length;){sn.lastIndex=z?0:pr;var vi,Gr=T(sn,z?ct(et,pr):et);if(Gr===null||(vi=Me(Ti(sn.lastIndex+(z?pr:0)),et.length))===gr)pr=ca(et,pr,It);else{if(Te(Lr,ct(et,gr,pr)),Lr.length===Jt)return Lr;for(var Qi=1;Qi<=Gr.length-1;Qi++)if(Te(Lr,Gr[Qi]),Lr.length===Jt)return Lr;pr=gr=vi}}return Te(Lr,ct(et,gr)),Lr}]}),!vt,z);var Lt=`
\v\f\r    \u2028\u2029\uFEFF`,kt=At("".replace),Wt="["+Lt+"]",Kn=RegExp("^"+Wt+Wt+"*"),rn=RegExp(Wt+Wt+"*$"),tr=function(F){return function(H){var se=b(de(H));return 1&F&&(se=kt(se,Kn,"")),2&F&&(se=kt(se,rn,"")),se}},In={start:tr(1),end:tr(2),trim:tr(3)},nt=bo.PROPER,$e=In.trim;function bt(F){return F.length?F[0].tagName.toLowerCase():""}co({target:"String",proto:!0,forced:(function(F){return X((function(){return!!Lt[F]()||"​…᠎"[F]()!=="​…᠎"||nt&&Lt[F].name!==F}))})("trim")},{trim:function(){return $e(this)}}),co({global:!0},{globalThis:ne}),m.append&&(k.default.fn.append=m.append),m.on&&(k.default.fn.on=m.on),m.focus&&(k.default.fn.focus=m.focus),m.attr&&(k.default.fn.attr=m.attr),m.val&&(k.default.fn.val=m.val),m.html&&(k.default.fn.html=m.html),m.dataset&&(k.default.fn.dataset=m.dataset),m.addClass&&(k.default.fn.addClass=m.addClass),m.removeClass&&(k.default.fn.removeClass=m.removeClass),m.children&&(k.default.fn.children=m.children),m.each&&(k.default.fn.each=m.each),m.find&&(k.default.fn.find=m.find);var Ct=!1,Bt=0,fn=0,en=null,_n=null,gi=k.default("body");function cr(F){Ct=!1,_n=null,en=null,gi.off("mousemove",Vi),gi.off("mouseup",cr)}gi.on("mousedown",(function(F){var H=F.target;if((H.tagName==="TH"||H.tagName==="TD")&&H.style.cursor==="col-resize"){H.style.cursor="auto",F.preventDefault(),Ct=!0;var se=F.clientX;Bt=se;var Ke=H.getBoundingClientRect().width;fn=Ke,gi.on("mousemove",Vi),gi.on("mouseup",cr)}}));var Vi=O.default((function(F){if(Ct&&_n!=null&&en!=null){F.preventDefault();var H=F.clientX,se=fn+(H-Bt);(se=Math.floor(100*se)/100)<30&&(se=30),n.Transforms.setNodes(_n,{width:se.toString()},{at:en})}}),100),oo={type:"table",renderElem:function(F,H,se){var Ke=(function(Ft,It){if(Ft.isDisabled())return!1;var Zt=Ft.selection;if(Zt==null||n.Range.isCollapsed(Zt))return!0;var sn=Zt.anchor,Jt=Zt.focus,gr=t.DomEditor.findPath(Ft,It),pr=n.Editor.start(Ft,gr),Lr=n.Editor.end(Ft,gr),vi=n.Point.compare(sn,Lr)<=0&&n.Point.compare(sn,pr)>=0,Gr=n.Point.compare(Jt,Lr)<=0&&n.Point.compare(Jt,pr)>=0;return!!(vi&&Gr&&n.Path.equals(sn.path.slice(0,3),Jt.path.slice(0,3)))})(se,F),Oe=F.width,We=Oe===void 0?"auto":Oe,dt=t.DomEditor.isNodeSelected(se,F),et=yu(F),rt=c.jsx("div",{className:"table-container","data-selected":dt,on:{mousedown:function(Ft){if(Ft.target.tagName==="DIV"&&Ft.preventDefault(),!se.isDisabled()){var It=t.DomEditor.findPath(se,F),Zt=n.Editor.start(se,It),sn=se.selection;sn!=null?sn.anchor.path[0]!==It[0]&&se.select(Zt):se.select(Zt)}}}},c.jsx("table",{width:We,contentEditable:Ke},c.jsx("colgroup",null,et.map((function(Ft){var It=Ft.width,Zt=It===void 0?"auto":It;return c.jsx("col",{width:Zt})}))),c.jsx("tbody",null,H)));return rt}},Lo={type:"table-row",renderElem:function(F,H,se){return c.jsx("tr",null,H)}},Ua={type:"table-cell",renderElem:function(F,H,se){var Ke=(function(Jt,gr){var pr=t.DomEditor.getParentNode(Jt,gr);if(pr==null)return!1;var Lr=t.DomEditor.getParentNode(Jt,pr);return Lr!=null&&yu(Lr).some((function(vi){return vi===gr}))})(se,F),Oe=F,We=Oe.colSpan,dt=We===void 0?1:We,et=Oe.rowSpan,rt=et===void 0?1:et,Ft=Oe.isHeader,It=Ft!==void 0&&Ft;if(!Ke)return c.jsx("td",{colSpan:dt,rowSpan:rt},H);var Zt=It?"th":"td",sn=c.jsx(Zt,{colSpan:dt,rowSpan:rt,style:{borderRightWidth:"3px"},on:{mousemove:O.default((function(Jt){var gr=this.elm;if(gr!=null){var pr=gr.getBoundingClientRect(),Lr=pr.left,vi=pr.width,Gr=pr.top,Qi=pr.height,ea=Jt.clientX,Mo=Jt.clientY;Ct||(ea>Lr+vi-5&&ea<Lr+vi&&Mo>Gr&&Mo<Gr+Qi?(gr.style.cursor="col-resize",_n=se,en=t.DomEditor.findPath(se,F)):Ct||(gr.style.cursor="auto",_n=null,en=null))}}),100)}},H);return sn}},wr={type:"table",elemToHtml:function(F,H){var se=F.width;return'<table style="width: '+(se===void 0?"auto":se)+';"><tbody>'+H+"</tbody></table>"}},Oo={type:"table-row",elemToHtml:function(F,H){return"<tr>"+H+"</tr>"}},Li={type:"table-cell",elemToHtml:function(F,H){var se=F,Ke=se.colSpan,Oe=Ke===void 0?1:Ke,We=se.rowSpan,dt=We===void 0?1:We,et=se.isHeader,rt=et!==void 0&&et,Ft=se.width,It=rt?"th":"td";return"<"+It+' colSpan="'+Oe+'" rowSpan="'+dt+'" width="'+(Ft===void 0?"auto":Ft)+'">'+H+"</"+It+">"}},Zo={selector:"table",preParseHtml:function(F){var H=k.default(F);if(bt(H)!=="table")return F;var se=H.find("tbody");if(se.length===0)return F;var Ke=H.find("tr");return H.append(Ke),se.remove(),H[0]}},Ia=iu.filter;co({target:"Array",proto:!0,forced:!la("filter")},{filter:function(F){return Ia(this,F,arguments.length>1?arguments[1]:void 0)}});var Mi=Math.floor,$i=At("".charAt),wa=At("".replace),ci=At("".slice),Wi=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jo=/\$([$&'`]|\d{1,2})/g,xa=function(F,H,se,Ke,Oe,We){var dt=se+F.length,et=Ke.length,rt=Jo;return Oe!==void 0&&(Oe=Ir(Oe),rt=Wi),wa(We,rt,(function(Ft,It){var Zt;switch($i(It,0)){case"$":return"$";case"&":return F;case"`":return ci(H,0,se);case"'":return ci(H,dt);case"<":Zt=Oe[ci(It,1,-1)];break;default:var sn=+It;if(sn===0)return Ft;if(sn>et){var Jt=Mi(sn/10);return Jt===0?Ft:Jt<=et?Ke[Jt-1]===void 0?$i(It,1):Ke[Jt-1]+$i(It,1):Ft}Zt=Ke[sn-1]}return Zt===void 0?"":Zt}))},ms=Ar("replace"),Lu=Math.max,ys=Math.min,Qo=At([].concat),Va=At([].push),bs=At("".indexOf),es=At("".slice),Ks="a".replace(/./,"$0")==="$0",Mu=!!/./[ms]&&/./[ms]("a","$0")==="";Eu("replace",(function(F,H,se){var Ke=Mu?"$":"$0";return[function(Oe,We){var dt=de(this),et=Oe==null?void 0:Nr(Oe,ms);return et?ye(et,Oe,dt,We):ye(H,b(dt),Oe,We)},function(Oe,We){var dt=cn(this),et=b(Oe);if(typeof We=="string"&&bs(We,Ke)===-1&&bs(We,"$<")===-1){var rt=se(H,dt,et,We);if(rt.done)return rt.value}var Ft=Ie(We);Ft||(We=b(We));var It=dt.global;if(It){var Zt=dt.unicode;dt.lastIndex=0}for(var sn=[];;){var Jt=T(dt,et);if(Jt===null||(Va(sn,Jt),!It))break;b(Jt[0])===""&&(dt.lastIndex=ca(et,Ti(dt.lastIndex),Zt))}for(var gr,pr="",Lr=0,vi=0;vi<sn.length;vi++){for(var Gr=b((Jt=sn[vi])[0]),Qi=Lu(ys(Xi(Jt.index),et.length),0),ea=[],Mo=1;Mo<Jt.length;Mo++)Va(ea,(gr=Jt[Mo])===void 0?gr:String(gr));var To=Jt.groups;if(Ft){var Ra=Qo([Gr],ea,Qi,et);To!==void 0&&Va(Ra,To);var rs=b(Ea(We,void 0,Ra))}else rs=xa(Gr,et,Qi,ea,To,We);Qi>=Lr&&(pr+=es(et,Lr,Qi)+rs,Lr=Qi+Gr.length)}return pr+es(et,Lr)}]}),!!X((function(){var F=/./;return F.exec=function(){var H=[];return H.groups={a:"7"},H},"".replace(F,"$<a>")!=="7"}))||!Ks||Mu);var Ol={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(F,H,se){var Ke=k.default(F);(H=H.filter((function(et){return!!n.Text.isText(et)||!!se.isInline(et)}))).length===0&&(H=[{text:Ke.text().replace(/\s+/gm," ")}]);var Oe=parseInt(Ke.attr("colSpan")||"1"),We=parseInt(Ke.attr("rowSpan")||"1"),dt=Ke.attr("width")||"auto";return{type:"table-cell",isHeader:bt(Ke)==="th",colSpan:Oe,rowSpan:We,width:dt,children:H}}},Ll={selector:"tr:not([data-w-e-type])",parseElemHtml:function(F,H,se){return{type:"table-row",children:H.filter((function(Ke){return t.DomEditor.getNodeType(Ke)==="table-cell"}))}}},Wa={selector:"table:not([data-w-e-type])",parseElemHtml:function(F,H,se){var Ke=k.default(F),Oe="auto";return(function(We,dt){for(var et="",rt=(We.attr("style")||"").split(";"),Ft=rt.length,It=0;It<Ft;It++){var Zt=rt[It];if(Zt){var sn=Zt.split(":");sn[0].trim()===dt&&(et=sn[1].trim())}}return et})(Ke,"width")==="100%"&&(Oe="100%"),Ke.attr("width")==="100%"&&(Oe="100%"),{type:"table",width:Oe,children:H.filter((function(We){return t.DomEditor.getNodeType(We)==="table-row"}))}}},$u=(function(){function F(){this.title=t.t("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 F.prototype.getValue=function(H){return""},F.prototype.isActive=function(H){return!1},F.prototype.exec=function(H,se){},F.prototype.isDisabled=function(H){var se=H.selection;return se==null||!n.Range.isCollapsed(se)||!!t.DomEditor.getSelectedElems(H).some((function(Ke){var Oe=t.DomEditor.getNodeType(Ke);return Oe==="pre"||Oe==="table"||Oe==="list-item"||!!H.isVoid(Ke)}))},F.prototype.getPanelContentElem=function(H){var se=this;if(this.$content)return this.$content[0];for(var Ke=k.default('<div class="w-e-panel-content-table"></div>'),Oe=k.default("<span>0 &times; 0</span>"),We=k.default("<table></table>"),dt=0;dt<10;dt++){for(var et=k.default("<tr></tr>"),rt=0;rt<10;rt++){var Ft=k.default("<td></td>");Ft.attr("data-x",rt.toString()),Ft.attr("data-y",dt.toString()),et.append(Ft),Ft.on("mouseenter",(function(It){var Zt=It.target;if(Zt!=null){var sn=k.default(Zt).dataset(),Jt=sn.x,gr=sn.y;Oe[0].innerHTML=Jt+1+" &times; "+(gr+1),We.children().each((function(pr){k.default(pr).children().each((function(Lr){var vi=k.default(Lr),Gr=vi.dataset(),Qi=Gr.x,ea=Gr.y;Qi<=Jt&&ea<=gr?vi.addClass("active"):vi.removeClass("active")}))}))}})),Ft.on("click",(function(It){It.preventDefault();var Zt=It.target;if(Zt!=null){var sn=k.default(Zt).dataset(),Jt=sn.x,gr=sn.y;se.insertTable(H,gr+1,Jt+1)}}))}We.append(et)}return Ke.append(We),Ke.append(Oe),this.$content=Ke,Ke[0]},F.prototype.insertTable=function(H,se,Ke){var Oe=parseInt(se,10),We=parseInt(Ke,10);if(Oe&&We&&!(Oe<=0||We<=0)){t.DomEditor.isSelectedEmptyParagraph(H)&&n.Transforms.removeNodes(H,{mode:"highest"});var dt=(function(et,rt){for(var Ft=[],It=0;It<et;It++){for(var Zt=[],sn=0;sn<rt;sn++){var Jt={type:"table-cell",children:[{text:""}]};It===0&&(Jt.isHeader=!0),Zt.push(Jt)}Ft.push({type:"table-row",children:Zt})}return{type:"table",width:"auto",children:Ft}})(Oe,We);n.Transforms.insertNodes(H,dt,{mode:"highest"})}},F})(),Xs=(function(){function F(){this.title=t.t("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 F.prototype.getValue=function(H){return""},F.prototype.isActive=function(H){return!1},F.prototype.isDisabled=function(H){return H.selection==null||t.DomEditor.getSelectedNodeByType(H,"table")==null},F.prototype.exec=function(H,se){this.isDisabled(H)||n.Transforms.removeNodes(H,{mode:"highest"})},F})(),js=(function(){function F(){this.title=t.t("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 F.prototype.getValue=function(H){return""},F.prototype.isActive=function(H){return!1},F.prototype.isDisabled=function(H){var se=H.selection;return se==null||!n.Range.isCollapsed(se)||t.DomEditor.getSelectedNodeByType(H,"table")==null},F.prototype.exec=function(H,se){if(!this.isDisabled(H)){var Ke=Go(n.Editor.nodes(H,{match:function(Jt){return t.DomEditor.checkNodeType(Jt,"table-cell")},universal:!0}),1),Oe=Go(Ke[0],2),We=Oe[0],dt=Oe[1],et=t.DomEditor.getParentNode(H,We),rt=(et==null?void 0:et.children.length)||0;if(rt!==0){for(var Ft={type:"table-row",children:[]},It=0;It<rt;It++)Ft.children.push({type:"table-cell",children:[{text:""}]});var Zt=n.Path.parent(dt),sn=n.Path.next(Zt);n.Transforms.insertNodes(H,Ft,{at:sn})}}},F})(),xu=(function(){function F(){this.title=t.t("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 F.prototype.getValue=function(H){return""},F.prototype.isActive=function(H){return!1},F.prototype.isDisabled=function(H){var se=H.selection;return se==null||!n.Range.isCollapsed(se)||t.DomEditor.getSelectedNodeByType(H,"table-row")==null},F.prototype.exec=function(H,se){if(!this.isDisabled(H)){var Ke=Go(n.Editor.nodes(H,{match:function(rt){return t.DomEditor.checkNodeType(rt,"table-row")},universal:!0}),1),Oe=Go(Ke[0],2),We=Oe[0],dt=Oe[1],et=t.DomEditor.getParentNode(H,We);((et==null?void 0:et.children.length)||0)<=1?n.Transforms.removeNodes(H,{mode:"highest"}):n.Transforms.removeNodes(H,{at:dt})}},F})(),rl={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},il=Vt("span").classList,ts=il&&il.constructor&&il.constructor.prototype,zu=ts===Object.prototype?void 0:ts,ns=iu.forEach,Du=(function(F,H){var se=[][F];return!!se&&X((function(){se.call(null,H||function(){throw 1},1)}))})("forEach"),Es=Du?[].forEach:function(F){return ns(this,F,arguments.length>1?arguments[1]:void 0)},su=function(F){if(F&&F.forEach!==Es)try{yi(F,"forEach",Es)}catch(H){F.forEach=Es}};for(var ws in rl)rl[ws]&&su(ne[ws]&&ne[ws].prototype);su(zu);var xs=(function(){function F(){this.title=t.t("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 F.prototype.getValue=function(H){return""},F.prototype.isActive=function(H){return!1},F.prototype.isDisabled=function(H){var se=H.selection;return se==null||!n.Range.isCollapsed(se)||t.DomEditor.getSelectedNodeByType(H,"table")==null},F.prototype.exec=function(H,se){if(!this.isDisabled(H)){var Ke=Go(n.Editor.nodes(H,{match:function(Ft){return t.DomEditor.checkNodeType(Ft,"table-cell")},universal:!0}),1),Oe=Go(Ke[0],2),We=Oe[0],dt=Oe[1],et=t.DomEditor.getParentNode(H,We);if(et!=null){var rt=t.DomEditor.getParentNode(H,et);rt!=null&&(rt.children||[]).forEach((function(Ft,It){n.Element.isElement(Ft)&&(Ft.children||[]).forEach((function(Zt){var sn=t.DomEditor.findPath(H,Zt);if(sn.length===dt.length&&S.default(sn.slice(-1),dt.slice(-1))){var Jt={type:"table-cell",children:[{text:""}]};It===0&&Ps(rt)&&(Jt.isHeader=!0),n.Transforms.insertNodes(H,Jt,{at:sn})}}))}))}}},F})(),Ml=(function(){function F(){this.title=t.t("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 F.prototype.getValue=function(H){return""},F.prototype.isActive=function(H){return!1},F.prototype.isDisabled=function(H){var se=H.selection;return se==null||!n.Range.isCollapsed(se)||t.DomEditor.getSelectedNodeByType(H,"table-cell")==null},F.prototype.exec=function(H,se){if(!this.isDisabled(H)){var Ke=Go(n.Editor.nodes(H,{match:function(It){return t.DomEditor.checkNodeType(It,"table-cell")},universal:!0}),1),Oe=Go(Ke[0],2),We=Oe[0],dt=Oe[1],et=t.DomEditor.getParentNode(H,We),rt=(et==null?void 0:et.children.length)||0;if(!et||rt<=1)n.Transforms.removeNodes(H,{mode:"highest"});else{var Ft=t.DomEditor.getParentNode(H,et);Ft!=null&&(Ft.children||[]).forEach((function(It){n.Element.isElement(It)&&(It.children||[]).forEach((function(Zt){var sn=t.DomEditor.findPath(H,Zt);sn.length===dt.length&&S.default(sn.slice(-1),dt.slice(-1))&&n.Transforms.removeNodes(H,{at:sn})}))}))}}},F})(),$l=(function(){function F(){this.title=t.t("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 F.prototype.getValue=function(H){var se=t.DomEditor.getSelectedNodeByType(H,"table");return se!=null&&Ps(se)},F.prototype.isActive=function(H){return!!this.getValue(H)},F.prototype.isDisabled=function(H){var se=H.selection;return se==null||!n.Range.isCollapsed(se)||t.DomEditor.getSelectedNodeByType(H,"table")==null},F.prototype.exec=function(H,se){if(!this.isDisabled(H)){var Ke=!se,Oe=t.DomEditor.getSelectedNodeByType(H,"table");Oe!=null&&yu(Oe).forEach((function(We){return n.Transforms.setNodes(H,{isHeader:Ke},{at:t.DomEditor.findPath(H,We)})}))}},F})(),ol=(function(){function F(){this.title=t.t("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 F.prototype.getValue=function(H){var se=t.DomEditor.getSelectedNodeByType(H,"table");return se!=null&&se.width==="100%"},F.prototype.isActive=function(H){return!!this.getValue(H)},F.prototype.isDisabled=function(H){var se=H.selection;return se==null||!n.Range.isCollapsed(se)||t.DomEditor.getSelectedNodeByType(H,"table")==null},F.prototype.exec=function(H,se){if(!this.isDisabled(H)){var Ke={width:se?"auto":"100%"};n.Transforms.setNodes(H,Ke,{mode:"highest"})}},F})(),Hu={renderElems:[oo,Lo,Ua],elemsToHtml:[wr,Oo,Li],preParseHtml:[Zo],parseElemsHtml:[Ol,Ll,Wa],menus:[{key:"insertTable",factory:function(){return new $u}},{key:"deleteTable",factory:function(){return new Xs}},{key:"insertTableRow",factory:function(){return new js}},{key:"deleteTableRow",factory:function(){return new xu}},{key:"insertTableCol",factory:function(){return new xs}},{key:"deleteTableCol",factory:function(){return new Ml}},{key:"tableHeader",factory:function(){return new $l}},{key:"tableFullWidth",factory:function(){return new ol}}],editorPlugin:function(F){var H=F.insertBreak,se=F.deleteBackward,Ke=F.deleteForward,Oe=F.normalizeNode,We=F.insertData,dt=F.handleTab,et=F.selectAll,rt=F;return rt.insertBreak=function(){t.DomEditor.getSelectedNodeByType(rt,"table")==null?H():rt.insertText(`
`)},rt.deleteBackward=function(Ft){if(!Ku(rt)){var It=rt.selection;if(It){var Zt=n.Editor.before(rt,It);if(Zt){var sn=Nu(rt,Zt),Jt=Nu(rt,It);if(sn&&!Jt)return}}se(Ft)}},rt.handleTab=function(){var Ft;if(t.DomEditor.getSelectedNodeByType(rt,"table")){var It=n.Editor.above(F);t.DomEditor.checkNodeType(It[0],"table-cell")&&n.Transforms.select(F,It[1]);var Zt=n.Editor.next(F);if(Zt)Zt[0]&&Zt[0].text&&(Zt=(Ft=n.Editor.above(F,{at:Zt[1]}))!==null&&Ft!==void 0?Ft:Zt),n.Transforms.select(F,Zt[1]);else{var sn=rt.children||[],Jt=sn.length;if(t.DomEditor.checkNodeType(sn[Jt-1],"table")){var gr=t.DomEditor.genEmptyParagraph();n.Transforms.insertNodes(rt,gr,{at:[Jt]}),rt.handleTab()}}}else dt()},rt.deleteForward=function(Ft){Ku(rt)||Ke(Ft)},rt.normalizeNode=function(Ft){var It=Go(Ft,2),Zt=It[0],sn=It[1];if(t.DomEditor.getNodeType(Zt)!=="table")return Oe([Zt,sn]);if(t.DomEditor.isLastNode(rt,Zt)){var Jt=t.DomEditor.genEmptyParagraph();n.Transforms.insertNodes(rt,Jt,{at:[sn[0]+1]})}},rt.insertData=function(Ft){if(t.DomEditor.getSelectedNodeByType(rt,"table")!=null){var It=Ft.getData("text/plain");It===`
`||/<img[^>]+>/.test(Ft.getData("text/html"))?We(Ft):n.Editor.insertText(rt,It)}else We(Ft)},rt.selectAll=function(){var Ft=rt.selection;if(Ft!=null){var It=t.DomEditor.getSelectedNodeByType(rt,"table-cell");if(It!=null){var Zt=Ft.anchor,sn=Ft.focus;if(n.Path.equals(Zt.path.slice(0,3),sn.path.slice(0,3)))if(n.Node.string(It).length!==0){var Jt=t.DomEditor.findPath(rt,It),gr={anchor:n.Editor.start(rt,Jt),focus:n.Editor.end(rt,Jt)};rt.select(gr)}else et();else et()}else et()}else et()},rt}};return Hu}))}),u5=xl(function(r,e){(function(t,n){r.exports=n(qi,rp,ih,Ed,tp)})(Ur,(function(t,n,c,f,m){function P(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var _=P(f);t.i18nAddResources("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"}}),t.i18nAddResources("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var x=function(){return x=Object.assign||function(h){for(var N,M=1,J=arguments.length;M<J;M++)for(var ae in N=arguments[M])Object.prototype.hasOwnProperty.call(N,ae)&&(h[ae]=N[ae]);return h},x.apply(this,arguments)};function O(h,N,M,J){return new(M||(M=Promise))((function(ae,Pe){function ze(yt){try{tt(J.next(yt))}catch(pt){Pe(pt)}}function _e(yt){try{tt(J.throw(yt))}catch(pt){Pe(pt)}}function tt(yt){var pt;yt.done?ae(yt.value):(pt=yt.value,pt instanceof M?pt:new M((function(Pn){Pn(pt)}))).then(ze,_e)}tt((J=J.apply(h,N||[])).next())}))}function k(h,N){var M,J,ae,Pe,ze={label:0,sent:function(){if(1&ae[0])throw ae[1];return ae[1]},trys:[],ops:[]};return Pe={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function _e(tt){return function(yt){return(function(pt){if(M)throw new TypeError("Generator is already executing.");for(;ze;)try{if(M=1,J&&(ae=2&pt[0]?J.return:pt[0]?J.throw||((ae=J.return)&&ae.call(J),0):J.next)&&!(ae=ae.call(J,pt[1])).done)return ae;switch(J=0,ae&&(pt=[2&pt[0],ae.value]),pt[0]){case 0:case 1:ae=pt;break;case 4:return ze.label++,{value:pt[1],done:!1};case 5:ze.label++,J=pt[1],pt=[0];continue;case 7:pt=ze.ops.pop(),ze.trys.pop();continue;default:if(ae=ze.trys,!((ae=ae.length>0&&ae[ae.length-1])||pt[0]!==6&&pt[0]!==2)){ze=0;continue}if(pt[0]===3&&(!ae||pt[1]>ae[0]&&pt[1]<ae[3])){ze.label=pt[1];break}if(pt[0]===6&&ze.label<ae[1]){ze.label=ae[1],ae=pt;break}if(ae&&ze.label<ae[2]){ze.label=ae[2],ze.ops.push(pt);break}ae[2]&&ze.ops.pop(),ze.trys.pop();continue}pt=N.call(h,ze)}catch(Pn){pt=[6,Pn],J=0}finally{M=ae=0}if(5&pt[0])throw pt[1];return{value:pt[0]?pt[1]:void 0,done:!0}})([tt,yt])}}}function S(h){var N=typeof Symbol=="function"&&Symbol.iterator,M=N&&h[N],J=0;if(M)return M.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&J>=h.length&&(h=void 0),{value:h&&h[J++],done:!h}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}function B(h,N){var M=typeof Symbol=="function"&&h[Symbol.iterator];if(!M)return h;var J,ae,Pe=M.call(h),ze=[];try{for(;(N===void 0||N-- >0)&&!(J=Pe.next()).done;)ze.push(J.value)}catch(_e){ae={error:_e}}finally{try{J&&!J.done&&(M=Pe.return)&&M.call(Pe)}finally{if(ae)throw ae.error}}return ze}function W(h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N,M=h[Symbol.asyncIterator];return M?M.call(h):(h=S(h),N={},J("next"),J("throw"),J("return"),N[Symbol.asyncIterator]=function(){return this},N);function J(ae){N[ae]=h[ae]&&function(Pe){return new Promise((function(ze,_e){(function(tt,yt,pt,Pn){Promise.resolve(Pn).then((function(Tn){tt({value:Tn,done:pt})}),yt)})(ze,_e,(Pe=h[ae](Pe)).done,Pe.value)}))}}}var re=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:{};function te(h){var N={exports:{}};return h(N,N.exports),N.exports}var me,ne,X=function(h){return h&&h.Math==Math&&h},q=X(typeof globalThis=="object"&&globalThis)||X(typeof window=="object"&&window)||X(typeof self=="object"&&self)||X(typeof re=="object"&&re)||(function(){return this})()||Function("return this")(),Ee=function(h){try{return!!h()}catch(N){return!0}},ye=!Ee((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Qe=Function.prototype.call,qe=Qe.bind?Qe.bind(Qe):function(){return Qe.apply(Qe,arguments)},Ge={}.propertyIsEnumerable,zt=Object.getOwnPropertyDescriptor,qt={f:zt&&!Ge.call({1:2},1)?function(h){var N=zt(this,h);return!!N&&N.enumerable}:Ge},tn=function(h,N){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:N}},an=Function.prototype,kn=an.bind,At=an.call,Wn=kn&&kn.bind(At),Ae=kn?function(h){return h&&Wn(At,h)}:function(h){return h&&function(){return At.apply(h,arguments)}},Dt=Ae({}.toString),hn=Ae("".slice),Ot=function(h){return hn(Dt(h),8,-1)},Sn=q.Object,be=Ae("".split),de=Ee((function(){return!Sn("z").propertyIsEnumerable(0)}))?function(h){return Ot(h)=="String"?be(h,""):Sn(h)}:Sn,xe=q.TypeError,Ie=function(h){if(h==null)throw xe("Can't call method on "+h);return h},Ye=function(h){return de(Ie(h))},oe=function(h){return typeof h=="function"},ht=function(h){return typeof h=="object"?h!==null:oe(h)},Gt=function(h){return oe(h)?h:void 0},xn=function(h,N){return arguments.length<2?Gt(q[h]):q[h]&&q[h][N]},bn=Ae({}.isPrototypeOf),at=xn("navigator","userAgent")||"",un=q.process,Cn=q.Deno,Xt=un&&un.versions||Cn&&Cn.version,Bn=Xt&&Xt.v8;Bn&&(ne=(me=Bn.split("."))[0]>0&&me[0]<4?1:+(me[0]+me[1])),!ne&&at&&(!(me=at.match(/Edge\/(\d+)/))||me[1]>=74)&&(me=at.match(/Chrome\/(\d+)/))&&(ne=+me[1]);var er=ne,$t=!!Object.getOwnPropertySymbols&&!Ee((function(){var h=Symbol();return!String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&er&&er<41})),zn=$t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Pr=q.Object,Mr=zn?function(h){return typeof h=="symbol"}:function(h){var N=xn("Symbol");return oe(N)&&bn(N.prototype,Pr(h))},qn=q.String,Nn=function(h){try{return qn(h)}catch(N){return"Object"}},Nr=q.TypeError,jn=function(h){if(oe(h))return h;throw Nr(Nn(h)+" is not a function")},br=function(h,N){var M=h[N];return M==null?void 0:jn(M)},Ut=q.TypeError,fr=Object.defineProperty,fi=function(h,N){try{fr(q,h,{value:N,configurable:!0,writable:!0})}catch(M){q[h]=N}return N},Vr="__core-js_shared__",Jr=q[Vr]||fi(Vr,{}),Ir=te((function(h){(h.exports=function(N,M){return Jr[N]||(Jr[N]=M!==void 0?M:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Tr=q.Object,ve=function(h){return Tr(Ie(h))},Ve=Ae({}.hasOwnProperty),Ce=Object.hasOwn||function(h,N){return Ve(ve(h),N)},we=0,gt=Math.random(),jt=Ae(1 .toString),Mt=function(h){return"Symbol("+(h===void 0?"":h)+")_"+jt(++we+gt,36)},Ln=Ir("wks"),Dr=q.Symbol,Ar=Dr&&Dr.for,ui=zn?Dr:Dr&&Dr.withoutSetter||Mt,Kt=function(h){if(!Ce(Ln,h)||!$t&&typeof Ln[h]!="string"){var N="Symbol."+h;$t&&Ce(Dr,h)?Ln[h]=Dr[h]:Ln[h]=zn&&Ar?Ar(N):ui(N)}return Ln[h]},Pt=q.TypeError,xt=Kt("toPrimitive"),Yt=function(h,N){if(!ht(h)||Mr(h))return h;var M,J=br(h,xt);if(J){if(N===void 0&&(N="default"),M=qe(J,h,N),!ht(M)||Mr(M))return M;throw Pt("Can't convert object to primitive value")}return N===void 0&&(N="number"),(function(ae,Pe){var ze,_e;if(Pe==="string"&&oe(ze=ae.toString)&&!ht(_e=qe(ze,ae))||oe(ze=ae.valueOf)&&!ht(_e=qe(ze,ae))||Pe!=="string"&&oe(ze=ae.toString)&&!ht(_e=qe(ze,ae)))return _e;throw Ut("Can't convert object to primitive value")})(h,N)},gn=function(h){var N=Yt(h,"string");return Mr(N)?N:N+""},Vt=q.document,Xn=ht(Vt)&&ht(Vt.createElement),Gn=function(h){return Xn?Vt.createElement(h):{}},Hn=!ye&&!Ee((function(){return Object.defineProperty(Gn("div"),"a",{get:function(){return 7}}).a!=7})),ln=Object.getOwnPropertyDescriptor,lr={f:ye?ln:function(h,N){if(h=Ye(h),N=gn(N),Hn)try{return ln(h,N)}catch(M){}if(Ce(h,N))return tn(!qe(qt.f,h,N),h[N])}},cn=q.String,Rr=q.TypeError,mr=function(h){if(ht(h))return h;throw Rr(cn(h)+" is not an object")},Er=q.TypeError,yi=Object.defineProperty,bi={f:ye?yi:function(h,N,M){if(mr(h),N=gn(N),mr(M),Hn)try{return yi(h,N,M)}catch(J){}if("get"in M||"set"in M)throw Er("Accessors not supported");return"value"in M&&(h[N]=M.value),h}},_r=ye?function(h,N,M){return bi.f(h,N,tn(1,M))}:function(h,N,M){return h[N]=M,h},Hr=Ae(Function.toString);oe(Jr.inspectSource)||(Jr.inspectSource=function(h){return Hr(h)});var Ui,ri,mo,Qr=Jr.inspectSource,ii=q.WeakMap,Co=oe(ii)&&/native code/.test(Qr(ii)),zo=Ir("keys"),Ca=function(h){return zo[h]||(zo[h]=Mt(h))},Di={},Gi="Object already initialized",no=q.TypeError,Ho=q.WeakMap;if(Co||Jr.state){var Ki=Jr.state||(Jr.state=new Ho),Si=Ae(Ki.get),Ei=Ae(Ki.has),uo=Ae(Ki.set);Ui=function(h,N){if(Ei(Ki,h))throw new no(Gi);return N.facade=h,uo(Ki,h,N),N},ri=function(h){return Si(Ki,h)||{}},mo=function(h){return Ei(Ki,h)}}else{var yo=Ca("state");Di[yo]=!0,Ui=function(h,N){if(Ce(h,yo))throw new no(Gi);return N.facade=h,_r(h,yo,N),N},ri=function(h){return Ce(h,yo)?h[yo]:{}},mo=function(h){return Ce(h,yo)}}var wi={set:Ui,get:ri,has:mo,enforce:function(h){return mo(h)?ri(h):Ui(h,{})},getterFor:function(h){return function(N){var M;if(!ht(N)||(M=ri(N)).type!==h)throw no("Incompatible receiver, "+h+" required");return M}}},Uo=Function.prototype,bo=ye&&Object.getOwnPropertyDescriptor,jr=Ce(Uo,"name"),so={EXISTS:jr,PROPER:jr&&function(){}.name==="something",CONFIGURABLE:jr&&(!ye||ye&&bo(Uo,"name").configurable)},Ci=te((function(h){var N=so.CONFIGURABLE,M=wi.get,J=wi.enforce,ae=String(String).split("String");(h.exports=function(Pe,ze,_e,tt){var yt,pt=!!tt&&!!tt.unsafe,Pn=!!tt&&!!tt.enumerable,Tn=!!tt&&!!tt.noTargetGet,En=tt&&tt.name!==void 0?tt.name:ze;oe(_e)&&(String(En).slice(0,7)==="Symbol("&&(En="["+String(En).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ce(_e,"name")||N&&_e.name!==En)&&_r(_e,"name",En),(yt=J(_e)).source||(yt.source=ae.join(typeof En=="string"?En:""))),Pe!==q?(pt?!Tn&&Pe[ze]&&(Pn=!0):delete Pe[ze],Pn?Pe[ze]=_e:_r(Pe,ze,_e)):Pn?Pe[ze]=_e:fi(ze,_e)})(Function.prototype,"toString",(function(){return oe(this)&&M(this).source||Qr(this)}))})),Xi=Math.ceil,Po=Math.floor,di=function(h){var N=+h;return N!=N||N===0?0:(N>0?Po:Xi)(N)},po=Math.max,du=Math.min,Ti=function(h,N){var M=di(h);return M<0?po(M+N,0):du(M,N)},Yi=Math.min,Aa=function(h){return h>0?Yi(di(h),9007199254740991):0},ko=function(h){return Aa(h.length)},Eo=function(h){return function(N,M,J){var ae,Pe=Ye(N),ze=ko(Pe),_e=Ti(J,ze);if(h&&M!=M){for(;ze>_e;)if((ae=Pe[_e++])!=ae)return!0}else for(;ze>_e;_e++)if((h||_e in Pe)&&Pe[_e]===M)return h||_e||0;return!h&&-1}},Zi={includes:Eo(!0),indexOf:Eo(!1)},Ai=Zi.indexOf,No=Ae([].push),oa=function(h,N){var M,J=Ye(h),ae=0,Pe=[];for(M in J)!Ce(Di,M)&&Ce(J,M)&&No(Pe,M);for(;N.length>ae;)Ce(J,M=N[ae++])&&(~Ai(Pe,M)||No(Pe,M));return Pe},si=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_a=si.concat("length","prototype"),Io={f:Object.getOwnPropertyNames||function(h){return oa(h,_a)}},pu={f:Object.getOwnPropertySymbols},Ma=Ae([].concat),Ro=xn("Reflect","ownKeys")||function(h){var N=Io.f(mr(h)),M=pu.f;return M?Ma(N,M(h)):N},Wr=function(h,N){for(var M=Ro(N),J=bi.f,ae=lr.f,Pe=0;Pe<M.length;Pe++){var ze=M[Pe];Ce(h,ze)||J(h,ze,ae(N,ze))}},Za=/#|\.prototype\./,lo=function(h,N){var M=Bi[Ao(h)];return M==co||M!=jo&&(oe(N)?Ee(N):!!N)},Ao=lo.normalize=function(h){return String(h).replace(Za,".").toLowerCase()},Bi=lo.data={},jo=lo.NATIVE="N",co=lo.POLYFILL="P",pa=lo,Vo=lr.f,Ii=function(h,N){var M,J,ae,Pe,ze,_e=h.target,tt=h.global,yt=h.stat;if(M=tt?q:yt?q[_e]||fi(_e,{}):(q[_e]||{}).prototype)for(J in N){if(Pe=N[J],ae=h.noTargetGet?(ze=Vo(M,J))&&ze.value:M[J],!pa(tt?J:_e+(yt?".":"#")+J,h.forced)&&ae!==void 0){if(typeof Pe==typeof ae)continue;Wr(Pe,ae)}(h.sham||ae&&ae.sham)&&_r(Pe,"sham",!0),Ci(M,J,Pe,h)}},qr={};qr[Kt("toStringTag")]="z";var ha,ho=String(qr)==="[object z]",Wo=Kt("toStringTag"),Oa=q.Object,b=Ot((function(){return arguments})())=="Arguments",L=ho?Ot:function(h){var N,M,J;return h===void 0?"Undefined":h===null?"Null":typeof(M=(function(ae,Pe){try{return ae[Pe]}catch(ze){}})(N=Oa(h),Wo))=="string"?M:b?Ot(N):(J=Ot(N))=="Object"&&oe(N.callee)?"Arguments":J},le=q.String,He=function(h){if(L(h)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return le(h)},An=`
\v\f\r    \u2028\u2029\uFEFF`,Dn=Ae("".replace),dr="["+An+"]",Or=RegExp("^"+dr+dr+"*"),Fi=RegExp(dr+dr+"*$"),kr=function(h){return function(N){var M=He(Ie(N));return 1&h&&(M=Dn(M,Or,"")),2&h&&(M=Dn(M,Fi,"")),M}},pi={start:kr(1),end:kr(2),trim:kr(3)},Ri=so.PROPER,li=pi.trim;function Pi(h){return h.length?h[0].tagName.toLowerCase():""}function ji(h,N,M){N===void 0&&(N="auto"),M===void 0&&(M="auto");var J=_.default(h);return J.attr("width",N),J.attr("height",M),J[0].outerHTML}Ii({target:"String",proto:!0,forced:(ha="trim",Ee((function(){return!!An[ha]()||"​…᠎"[ha]()!=="​…᠎"||Ri&&An[ha].name!==ha})))},{trim:function(){return li(this)}}),Ii({global:!0},{globalThis:q}),f.append&&(_.default.fn.append=f.append),f.on&&(_.default.fn.on=f.on),f.focus&&(_.default.fn.focus=f.focus),f.attr&&(_.default.fn.attr=f.attr),f.val&&(_.default.fn.val=f.val),f.html&&(_.default.fn.html=f.html),f.parent&&(_.default.fn.parent=f.parent),f.hasClass&&(_.default.fn.hasClass=f.hasClass),f.empty&&(_.default.fn.empty=f.empty);var Ji={type:"video",renderElem:function(h,N,M){var J,ae=h,Pe=ae.src,ze=Pe===void 0?"":Pe,_e=ae.poster,tt=_e===void 0?"":_e,yt=ae.width,pt=yt===void 0?"auto":yt,Pn=ae.height,Tn=Pn===void 0?"auto":Pn,En=t.DomEditor.isNodeSelected(M,h);if(ze.trim().indexOf("<iframe ")===0){var Yr=ji(ze,pt,Tn);J=c.jsx("div",{className:"w-e-textarea-video-container","data-selected":En?"true":"",innerHTML:Yr})}else{var sr=c.jsx("video",{poster:tt,controls:!0},c.jsx("source",{src:ze,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
抱歉,浏览器不支持 video 视频`);pt!=="auto"&&(sr.data.width=pt),Tn!=="auto"&&(sr.data.height=Tn),J=c.jsx("div",{className:"w-e-textarea-video-container","data-selected":En?"true":""},sr)}return c.h("div",{props:{contentEditable:!1},on:{mousedown:function(or){return or.preventDefault()}}},J)}},xi,go={type:"video",elemToHtml:function(h,N){var M=h,J=M.src,ae=J===void 0?"":J,Pe=M.poster,ze=Pe===void 0?"":Pe,_e=M.width,tt=_e===void 0?"auto":_e,yt=M.height,pt=yt===void 0?"auto":yt,Pn=`<div data-w-e-type="video" data-w-e-is-void>
`;return ae.trim().indexOf("<iframe ")===0?Pn+=ji(ae,tt,pt):Pn+='<video poster="'+ze+'" controls="true" width="'+tt+'" height="'+pt+'"><source src="'+ae+'" type="video/mp4"/></video>',Pn+=`
</div>`}},Ja=Object.keys||function(h){return oa(h,si)},ga=ye?Object.defineProperties:function(h,N){mr(h);for(var M,J=Ye(N),ae=Ja(N),Pe=ae.length,ze=0;Pe>ze;)bi.f(h,M=ae[ze++],J[M]);return h},io=xn("document","documentElement"),hu=Ca("IE_PROTO"),Qa=function(){},Ts=function(h){return"<script>"+h+"<\/script>"},hi=function(h){h.write(Ts("")),h.close();var N=h.parentWindow.Object;return h=null,N},va=function(){try{xi=new ActiveXObject("htmlfile")}catch(J){}var h,N;va=typeof document!="undefined"?document.domain&&xi?hi(xi):((N=Gn("iframe")).style.display="none",io.appendChild(N),N.src="javascript:",(h=N.contentWindow.document).open(),h.write(Ts("document.F=Object")),h.close(),h.F):hi(xi);for(var M=si.length;M--;)delete va.prototype[si[M]];return va()};Di[hu]=!0;var wo=Object.create||function(h,N){var M;return h!==null?(Qa.prototype=mr(h),M=new Qa,Qa.prototype=null,M[hu]=h):M=va(),N===void 0?M:ga(M,N)},aa=Kt("unscopables"),ua=Array.prototype;ua[aa]==null&&bi.f(ua,aa,{configurable:!0,value:wo(null)});var _o=function(h){ua[aa][h]=!0},Tu=Zi.includes;Ii({target:"Array",proto:!0},{includes:function(h){return Tu(this,h,arguments.length>1?arguments[1]:void 0)}}),_o("includes");var Wu={selector:"iframe,video,p",preParseHtml:function(h){var N=_.default(h),M=N;if(Pi(N)==="p"){var J=N.children();if(J.length===1){var ae=J[0],Pe=ae.tagName.toLowerCase();["iframe","video"].includes(Pe)&&(M=_.default(ae))}}var ze=Pi(M);if(ze!=="iframe"&&ze!=="video"||M.parent().attr("data-w-e-type")==="video")return M[0];var _e=_.default('<div data-w-e-type="video" data-w-e-is-void></div>');return _e.append(M),_e[0]}},Bu=Ae(Ae.bind),Fu=function(h,N){return jn(h),N===void 0?h:Bu?Bu(h,N):function(){return h.apply(N,arguments)}},sa=Array.isArray||function(h){return Ot(h)=="Array"},qo=function(){},gu=[],eu=xn("Reflect","construct"),qu=/^\s*(?:class|function)\b/,tu=Ae(qu.exec),Pu=!qu.exec(qo),$r=function(h){if(!oe(h))return!1;try{return eu(qo,gu,h),!0}catch(N){return!1}},$a=!eu||Ee((function(){var h;return $r($r.call)||!$r(Object)||!$r((function(){h=!0}))||h}))?function(h){if(!oe(h))return!1;switch(L(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pu||!!tu(qu,Qr(h))}:$r,nu=Kt("species"),xo=q.Array,Bs=function(h,N){return new((function(M){var J;return sa(M)&&(J=M.constructor,($a(J)&&(J===xo||sa(J.prototype))||ht(J)&&(J=J[nu])===null)&&(J=void 0)),J===void 0?xo:J})(h))(N===0?0:N)},Fs=Ae([].push),la=function(h){var N=h==1,M=h==2,J=h==3,ae=h==4,Pe=h==6,ze=h==7,_e=h==5||Pe;return function(tt,yt,pt,Pn){for(var Tn,En,Yr=ve(tt),sr=de(Yr),or=Fu(yt,pt),Zn=ko(sr),On=0,ti=Pn||Bs,oi=N?ti(tt,Zn):M||ze?ti(tt,0):void 0;Zn>On;On++)if((_e||On in sr)&&(En=or(Tn=sr[On],On,Yr),h))if(N)oi[On]=En;else if(En)switch(h){case 3:return!0;case 5:return Tn;case 6:return On;case 2:Fs(oi,Tn)}else switch(h){case 4:return!1;case 7:Fs(oi,Tn)}return Pe?-1:J||ae?ae:oi}},ru={forEach:la(0),map:la(1),filter:la(2),some:la(3),every:la(4),find:la(5),findIndex:la(6),filterReject:la(7)},cs=ru.find,ku="find",Ta=!0;ku in[]&&Array(1).find((function(){Ta=!1})),Ii({target:"Array",proto:!0,forced:Ta},{find:function(h){return cs(this,h,arguments.length>1?arguments[1]:void 0)}}),_o(ku);var Gu=ho?{}.toString:function(){return"[object "+L(this)+"]"};function Go(h,N,M,J){return N===void 0&&(N=""),M===void 0&&(M="auto"),J===void 0&&(J="auto"),{type:"video",src:h,poster:N,width:M,height:J,children:[{text:""}]}}ho||Ci(Object.prototype,"toString",Gu,{unsafe:!0});var Ku,Nu,vu={selector:'div[data-w-e-type="video"]',parseElemHtml:function(h,N,M){var J=_.default(h),ae="",Pe="",ze="auto",_e="auto",tt=J.find("iframe");if(tt.length>0)return ze=tt.attr("width")||"auto",_e=tt.attr("height")||"auto",Go(ae=tt[0].outerHTML,Pe,ze,_e);var yt=J.find("video");return(ae=yt.attr("src")||"")||yt.length>0&&(ae=yt.find("source").attr("src")||""),ze=yt.attr("width")||"auto",_e=yt.attr("height")||"auto",Go(ae,Pe=yt.attr("poster")||"",ze,_e)}},mu=function(){var h=mr(this),N="";return h.global&&(N+="g"),h.ignoreCase&&(N+="i"),h.multiline&&(N+="m"),h.dotAll&&(N+="s"),h.unicode&&(N+="u"),h.sticky&&(N+="y"),N},Iu=q.RegExp,Xr=Ee((function(){var h=Iu("a","y");return h.lastIndex=2,h.exec("abcd")!=null})),za=Xr||Ee((function(){return!Iu("a","y").sticky})),ma={BROKEN_CARET:Xr||Ee((function(){var h=Iu("^r","gy");return h.lastIndex=2,h.exec("str")!=null})),MISSED_STICKY:za,UNSUPPORTED_Y:Xr},iu=q.RegExp,Ba=Ee((function(){var h=iu(".","s");return!(h.dotAll&&h.exec(`
`)&&h.flags==="s")})),fs=q.RegExp,yu=Ee((function(){var h=fs("(?<a>b)","g");return h.exec("b").groups.a!=="b"||"b".replace(h,"$<a>c")!=="bc"})),Ps=wi.get,Xu=Ir("native-string-replace",String.prototype.replace),Ko=RegExp.prototype.exec,Yu=Ko,Zu=Ae("".charAt),ks=Ae("".indexOf),ds=Ae("".replace),Fa=Ae("".slice),ya=(Nu=/b*/g,qe(Ko,Ku=/a/,"a"),qe(Ko,Nu,"a"),Ku.lastIndex!==0||Nu.lastIndex!==0),Pa=ma.BROKEN_CARET,ka=/()??/.exec("")[1]!==void 0;(ya||ka||Pa||Ba||yu)&&(Yu=function(h){var N,M,J,ae,Pe,ze,_e,tt=this,yt=Ps(tt),pt=He(h),Pn=yt.raw;if(Pn)return Pn.lastIndex=tt.lastIndex,N=qe(Yu,Pn,pt),tt.lastIndex=Pn.lastIndex,N;var Tn=yt.groups,En=Pa&&tt.sticky,Yr=qe(mu,tt),sr=tt.source,or=0,Zn=pt;if(En&&(Yr=ds(Yr,"y",""),ks(Yr,"g")===-1&&(Yr+="g"),Zn=Fa(pt,tt.lastIndex),tt.lastIndex>0&&(!tt.multiline||tt.multiline&&Zu(pt,tt.lastIndex-1)!==`
`)&&(sr="(?: "+sr+")",Zn=" "+Zn,or++),M=new RegExp("^(?:"+sr+")",Yr)),ka&&(M=new RegExp("^"+sr+"$(?!\\s)",Yr)),ya&&(J=tt.lastIndex),ae=qe(Ko,En?M:tt,Zn),En?ae?(ae.input=Fa(ae.input,or),ae[0]=Fa(ae[0],or),ae.index=tt.lastIndex,tt.lastIndex+=ae[0].length):tt.lastIndex=0:ya&&ae&&(tt.lastIndex=tt.global?ae.index+ae[0].length:J),ka&&ae&&ae.length>1&&qe(Xu,ae[0],M,(function(){for(Pe=1;Pe<arguments.length-2;Pe++)arguments[Pe]===void 0&&(ae[Pe]=void 0)})),ae&&Tn)for(ae.groups=ze=wo(null),Pe=0;Pe<Tn.length;Pe++)ze[(_e=Tn[Pe])[0]]=ae[_e[1]];return ae});var ou=Yu;Ii({target:"RegExp",proto:!0,forced:/./.exec!==ou},{exec:ou});var bu=Function.prototype,ba=bu.apply,Ru=bu.bind,Ju=bu.call,ju=typeof Reflect=="object"&&Reflect.apply||(Ru?Ju.bind(ba):function(){return Ju.apply(ba,arguments)}),Xo=Kt("species"),Ea=RegExp.prototype,Ns=Ae("".charAt),Ha=Ae("".charCodeAt),Eu=Ae("".slice),Na=function(h){return function(N,M){var J,ae,Pe=He(Ie(N)),ze=di(M),_e=Pe.length;return ze<0||ze>=_e?h?"":void 0:(J=Ha(Pe,ze))<55296||J>56319||ze+1===_e||(ae=Ha(Pe,ze+1))<56320||ae>57343?h?Ns(Pe,ze):J:h?Eu(Pe,ze,ze+2):ae-56320+(J-55296<<10)+65536}},au={codeAt:Na(!1),charAt:Na(!0)},ps=au.charAt,wu=function(h,N,M){return N+(M?ps(h,N).length:1)},hs=Math.floor,Yo=Ae("".charAt),gs=Ae("".replace),vs=Ae("".slice),Qu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ca=/\$([$&'`]|\d{1,2})/g,Is=function(h,N,M,J,ae,Pe){var ze=M+h.length,_e=J.length,tt=ca;return ae!==void 0&&(ae=ve(ae),tt=Qu),gs(Pe,tt,(function(yt,pt){var Pn;switch(Yo(pt,0)){case"$":return"$";case"&":return h;case"`":return vs(N,0,M);case"'":return vs(N,ze);case"<":Pn=ae[vs(pt,1,-1)];break;default:var Tn=+pt;if(Tn===0)return yt;if(Tn>_e){var En=hs(Tn/10);return En===0?yt:En<=_e?J[En-1]===void 0?Yo(pt,1):J[En-1]+Yo(pt,1):yt}Pn=J[Tn-1]}return Pn===void 0?"":Pn}))},uu=q.TypeError,Gs=function(h,N){var M=h.exec;if(oe(M)){var J=qe(M,h,N);return J!==null&&mr(J),J}if(Ot(h)==="RegExp")return qe(ou,h,N);throw uu("RegExp#exec called on incompatible receiver")},Rs=Kt("replace"),T=Math.max,z=Math.min,ue=Ae([].concat),Me=Ae([].push),Fe=Ae("".indexOf),ot=Ae("".slice),Te="a".replace(/./,"$0")==="$0",ct=!!/./[Rs]&&/./[Rs]("a","$0")==="";function vt(h){return h===void 0&&(h="r"),h+"-"+m.nanoid()}(function(h,N,M,J){var ae=Kt(h),Pe=!Ee((function(){var yt={};return yt[ae]=function(){return 7},""[h](yt)!=7})),ze=Pe&&!Ee((function(){var yt=!1,pt=/a/;return h==="split"&&((pt={}).constructor={},pt.constructor[Xo]=function(){return pt},pt.flags="",pt[ae]=/./[ae]),pt.exec=function(){return yt=!0,null},pt[ae](""),!yt}));if(!Pe||!ze||M){var _e=Ae(/./[ae]),tt=N(ae,""[h],(function(yt,pt,Pn,Tn,En){var Yr=Ae(yt),sr=pt.exec;return sr===ou||sr===Ea.exec?Pe&&!En?{done:!0,value:_e(pt,Pn,Tn)}:{done:!0,value:Yr(Pn,pt,Tn)}:{done:!1}}));Ci(String.prototype,h,tt[0]),Ci(Ea,ae,tt[1])}J&&_r(Ea[ae],"sham",!0)})("replace",(function(h,N,M){var J=ct?"$":"$0";return[function(ae,Pe){var ze=Ie(this),_e=ae==null?void 0:br(ae,Rs);return _e?qe(_e,ae,ze,Pe):qe(N,He(ze),ae,Pe)},function(ae,Pe){var ze=mr(this),_e=He(ae);if(typeof Pe=="string"&&Fe(Pe,J)===-1&&Fe(Pe,"$<")===-1){var tt=M(N,ze,_e,Pe);if(tt.done)return tt.value}var yt=oe(Pe);yt||(Pe=He(Pe));var pt=ze.global;if(pt){var Pn=ze.unicode;ze.lastIndex=0}for(var Tn=[];;){var En=Gs(ze,_e);if(En===null||(Me(Tn,En),!pt))break;He(En[0])===""&&(ze.lastIndex=wu(_e,Aa(ze.lastIndex),Pn))}for(var Yr,sr="",or=0,Zn=0;Zn<Tn.length;Zn++){for(var On=He((En=Tn[Zn])[0]),ti=T(z(di(En.index),_e.length),0),oi=[],zi=1;zi<En.length;zi++)Me(oi,(Yr=En[zi])===void 0?Yr:String(Yr));var Ka=En.groups;if(yt){var fa=ue([On],oi,ti,_e);Ka!==void 0&&Me(fa,Ka);var gl=He(ju(Pe,void 0,fa))}else gl=Is(On,_e,ti,oi,Ka,Pe);ti>=or&&(sr+=ot(_e,or,ti)+gl,or=ti+On.length)}return sr+ot(_e,or)}]}),!!Ee((function(){var h=/./;return h.exec=function(){var N=[];return N.groups={a:"7"},N},"".replace(h,"$<a>")!=="7"}))||!Te||ct);var Lt=q.Promise,kt=function(h,N,M){for(var J in N)Ci(h,J,N[J],M);return h},Wt=q.String,Kn=q.TypeError,rn=Object.setPrototypeOf||("__proto__"in{}?(function(){var h,N=!1,M={};try{(h=Ae(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(M,[]),N=M instanceof Array}catch(J){}return function(J,ae){return mr(J),(function(Pe){if(typeof Pe=="object"||oe(Pe))return Pe;throw Kn("Can't set "+Wt(Pe)+" as a prototype")})(ae),N?h(J,ae):J.__proto__=ae,J}})():void 0),tr=bi.f,In=Kt("toStringTag"),nt=function(h,N,M){h&&!Ce(h=M?h:h.prototype,In)&&tr(h,In,{configurable:!0,value:N})},$e=Kt("species"),bt=q.TypeError,Ct=function(h,N){if(bn(N,h))return h;throw bt("Incorrect invocation")},Bt={},fn=Kt("iterator"),en=Array.prototype,_n=Kt("iterator"),gi=function(h){if(h!=null)return br(h,_n)||br(h,"@@iterator")||Bt[L(h)]},cr=q.TypeError,Vi=function(h,N,M){var J,ae;mr(h);try{if(!(J=br(h,"return"))){if(N==="throw")throw M;return M}J=qe(J,h)}catch(Pe){ae=!0,J=Pe}if(N==="throw")throw M;if(ae)throw J;return mr(J),M},oo=q.TypeError,Lo=function(h,N){this.stopped=h,this.result=N},Ua=Lo.prototype,wr=function(h,N,M){var J,ae,Pe,ze,_e,tt,yt,pt,Pn=M&&M.that,Tn=!(!M||!M.AS_ENTRIES),En=!(!M||!M.IS_ITERATOR),Yr=!(!M||!M.INTERRUPTED),sr=Fu(N,Pn),or=function(On){return J&&Vi(J,"normal",On),new Lo(!0,On)},Zn=function(On){return Tn?(mr(On),Yr?sr(On[0],On[1],or):sr(On[0],On[1])):Yr?sr(On,or):sr(On)};if(En)J=h;else{if(!(ae=gi(h)))throw oo(Nn(h)+" is not iterable");if((pt=ae)!==void 0&&(Bt.Array===pt||en[fn]===pt)){for(Pe=0,ze=ko(h);ze>Pe;Pe++)if((_e=Zn(h[Pe]))&&bn(Ua,_e))return _e;return new Lo(!1)}J=(function(On,ti){var oi=arguments.length<2?gi(On):ti;if(jn(oi))return mr(qe(oi,On));throw cr(Nn(On)+" is not iterable")})(h,ae)}for(tt=J.next;!(yt=qe(tt,J)).done;){try{_e=Zn(yt.value)}catch(On){Vi(J,"throw",On)}if(typeof _e=="object"&&_e&&bn(Ua,_e))return _e}return new Lo(!1)},Oo=Kt("iterator"),Li=!1;try{var Zo=0,Ia={next:function(){return{done:!!Zo++}},return:function(){Li=!0}};Ia[Oo]=function(){return this},Array.from(Ia,(function(){throw 2}))}catch(h){}var Mi,$i,wa,ci,Wi=function(h,N){if(!N&&!Li)return!1;var M=!1;try{var J={};J[Oo]=function(){return{next:function(){return{done:M=!0}}}},h(J)}catch(ae){}return M},Jo=q.TypeError,xa=Kt("species"),ms=function(h,N){var M,J=mr(h).constructor;return J===void 0||(M=mr(J)[xa])==null?N:(function(ae){if($a(ae))return ae;throw Jo(Nn(ae)+" is not a constructor")})(M)},Lu=Ae([].slice),ys=/(?:ipad|iphone|ipod).*applewebkit/i.test(at),Qo=Ot(q.process)=="process",Va=q.setImmediate,bs=q.clearImmediate,es=q.process,Ks=q.Dispatch,Mu=q.Function,Ol=q.MessageChannel,Ll=q.String,Wa=0,$u={},Xs="onreadystatechange";try{Mi=q.location}catch(h){}var js=function(h){if(Ce($u,h)){var N=$u[h];delete $u[h],N()}},xu=function(h){return function(){js(h)}},rl=function(h){js(h.data)},il=function(h){q.postMessage(Ll(h),Mi.protocol+"//"+Mi.host)};Va&&bs||(Va=function(h){var N=Lu(arguments,1);return $u[++Wa]=function(){ju(oe(h)?h:Mu(h),void 0,N)},$i(Wa),Wa},bs=function(h){delete $u[h]},Qo?$i=function(h){es.nextTick(xu(h))}:Ks&&Ks.now?$i=function(h){Ks.now(xu(h))}:Ol&&!ys?(ci=(wa=new Ol).port2,wa.port1.onmessage=rl,$i=Fu(ci.postMessage,ci)):q.addEventListener&&oe(q.postMessage)&&!q.importScripts&&Mi&&Mi.protocol!=="file:"&&!Ee(il)?($i=il,q.addEventListener("message",rl,!1)):$i=Xs in Gn("script")?function(h){io.appendChild(Gn("script")).onreadystatechange=function(){io.removeChild(this),js(h)}}:function(h){setTimeout(xu(h),0)});var ts,zu,ns,Du,Es,su,ws,xs,Ml={set:Va,clear:bs},$l=/ipad|iphone|ipod/i.test(at)&&q.Pebble!==void 0,ol=/web0s(?!.*chrome)/i.test(at),Hu=lr.f,F=Ml.set,H=q.MutationObserver||q.WebKitMutationObserver,se=q.document,Ke=q.process,Oe=q.Promise,We=Hu(q,"queueMicrotask"),dt=We&&We.value;dt||(ts=function(){var h,N;for(Qo&&(h=Ke.domain)&&h.exit();zu;){N=zu.fn,zu=zu.next;try{N()}catch(M){throw zu?Du():ns=void 0,M}}ns=void 0,h&&h.enter()},ys||Qo||ol||!H||!se?!$l&&Oe&&Oe.resolve?((ws=Oe.resolve(void 0)).constructor=Oe,xs=Fu(ws.then,ws),Du=function(){xs(ts)}):Qo?Du=function(){Ke.nextTick(ts)}:(F=Fu(F,q),Du=function(){F(ts)}):(Es=!0,su=se.createTextNode(""),new H(ts).observe(su,{characterData:!0}),Du=function(){su.data=Es=!Es}));var et,rt,Ft,It,Zt=dt||function(h){var N={fn:h,next:void 0};ns&&(ns.next=N),zu||(zu=N,Du()),ns=N},sn=function(h){var N,M;this.promise=new h((function(J,ae){if(N!==void 0||M!==void 0)throw TypeError("Bad Promise constructor");N=J,M=ae})),this.resolve=jn(N),this.reject=jn(M)},Jt={f:function(h){return new sn(h)}},gr=function(h){try{return{error:!1,value:h()}}catch(N){return{error:!0,value:N}}},pr=typeof window=="object",Lr=Ml.set,vi=Kt("species"),Gr="Promise",Qi=wi.getterFor(Gr),ea=wi.set,Mo=wi.getterFor(Gr),To=Lt&&Lt.prototype,Ra=Lt,rs=To,is=q.TypeError,os=q.document,Ls=q.process,al=Jt.f,ul=al,C=!!(os&&os.createEvent&&q.dispatchEvent),V=oe(q.PromiseRejectionEvent),ge="unhandledrejection",je=!1,Le=pa(Gr,(function(){var h=Qr(Ra),N=h!==String(Ra);if(!N&&er===66)return!0;if(er>=51&&/native code/.test(h))return!1;var M=new Ra((function(ae){ae(1)})),J=function(ae){ae((function(){}),(function(){}))};return(M.constructor={})[vi]=J,!(je=M.then((function(){}))instanceof J)||!N&&pr&&!V})),st=Le||!Wi((function(h){Ra.all(h).catch((function(){}))})),Et=function(h){var N;return!(!ht(h)||!oe(N=h.then))&&N},Ze=function(h,N){if(!h.notified){h.notified=!0;var M=h.reactions;Zt((function(){for(var J=h.value,ae=h.state==1,Pe=0;M.length>Pe;){var ze,_e,tt,yt=M[Pe++],pt=ae?yt.ok:yt.fail,Pn=yt.resolve,Tn=yt.reject,En=yt.domain;try{pt?(ae||(h.rejection===2&&vn(h),h.rejection=1),pt===!0?ze=J:(En&&En.enter(),ze=pt(J),En&&(En.exit(),tt=!0)),ze===yt.promise?Tn(is("Promise-chain cycle")):(_e=Et(ze))?qe(_e,ze,Pn,Tn):Pn(ze)):Tn(J)}catch(Yr){En&&!tt&&En.exit(),Tn(Yr)}}h.reactions=[],h.notified=!1,N&&!h.rejection&&Nt(h)}))}},it=function(h,N,M){var J,ae;C?((J=os.createEvent("Event")).promise=N,J.reason=M,J.initEvent(h,!1,!0),q.dispatchEvent(J)):J={promise:N,reason:M},!V&&(ae=q["on"+h])?ae(J):h===ge&&(function(Pe,ze){var _e=q.console;_e&&_e.error&&(arguments.length==1?_e.error(Pe):_e.error(Pe,ze))})("Unhandled promise rejection",M)},Nt=function(h){qe(Lr,q,(function(){var N,M=h.facade,J=h.value;if(ft(h)&&(N=gr((function(){Qo?Ls.emit("unhandledRejection",J,M):it(ge,M,J)})),h.rejection=Qo||ft(h)?2:1,N.error))throw N.value}))},ft=function(h){return h.rejection!==1&&!h.parent},vn=function(h){qe(Lr,q,(function(){var N=h.facade;Qo?Ls.emit("rejectionHandled",N):it("rejectionhandled",N,h.value)}))},dn=function(h,N,M){return function(J){h(N,J,M)}},nn=function(h,N,M){h.done||(h.done=!0,M&&(h=M),h.value=N,h.state=2,Ze(h,!0))},Br=function(h,N,M){if(!h.done){h.done=!0,M&&(h=M);try{if(h.facade===N)throw is("Promise can't be resolved itself");var J=Et(N);J?Zt((function(){var ae={done:!1};try{qe(J,N,dn(Br,ae,h),dn(nn,ae,h))}catch(Pe){nn(ae,Pe,h)}})):(h.value=N,h.state=1,Ze(h,!1))}catch(ae){nn({done:!1},ae,h)}}};if(Le&&(rs=(Ra=function(h){Ct(this,rs),jn(h),qe(et,this);var N=Qi(this);try{h(dn(Br,N),dn(nn,N))}catch(M){nn(N,M)}}).prototype,(et=function(h){ea(this,{type:Gr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=kt(rs,{then:function(h,N){var M=Mo(this),J=M.reactions,ae=al(ms(this,Ra));return ae.ok=!oe(h)||h,ae.fail=oe(N)&&N,ae.domain=Qo?Ls.domain:void 0,M.parent=!0,J[J.length]=ae,M.state!=0&&Ze(M,!1),ae.promise},catch:function(h){return this.then(void 0,h)}}),rt=function(){var h=new et,N=Qi(h);this.promise=h,this.resolve=dn(Br,N),this.reject=dn(nn,N)},Jt.f=al=function(h){return h===Ra||h===Ft?new rt(h):ul(h)},oe(Lt)&&To!==Object.prototype)){It=To.then,je||(Ci(To,"then",(function(h,N){var M=this;return new Ra((function(J,ae){qe(It,M,J,ae)})).then(h,N)}),{unsafe:!0}),Ci(To,"catch",rs.catch,{unsafe:!0}));try{delete To.constructor}catch(h){}rn&&rn(To,rs)}function ar(h,N,M){return M===void 0&&(M=""),O(this,void 0,void 0,(function(){var J,ae,Pe,ze,_e,tt,yt;return k(this,(function(pt){switch(pt.label){case 0:return N?(h.restoreSelection(),J=h.getMenuConfig("insertVideo"),ae=J.onInsertedVideo,Pe=J.checkVideo,ze=J.parseVideoSrc,[4,Pe(N,M)]):[2];case 1:return typeof(_e=pt.sent())=="string"?(h.alert(_e,"error"),[2]):_e==null?[2]:[4,ze(N)];case 2:return(tt=pt.sent()).trim().indexOf("<iframe ")!==0&&(tt=tt.replace(/</g,"&lt;").replace(/>/g,"&gt;")),yt={type:"video",src:tt,poster:M,children:[{text:""}]},Promise.resolve().then((function(){n.Transforms.insertNodes(h,yt)})),ae(yt),[2]}}))}))}function Fn(){return vt("w-e-insert-video")}Ii({global:!0,wrap:!0,forced:Le},{Promise:Ra}),nt(Ra,Gr,!1),(function(h){var N=xn(h),M=bi.f;ye&&N&&!N[$e]&&M(N,$e,{configurable:!0,get:function(){return this}})})(Gr),Ft=xn(Gr),Ii({target:Gr,stat:!0,forced:Le},{reject:function(h){var N=al(this);return qe(N.reject,void 0,h),N.promise}}),Ii({target:Gr,stat:!0,forced:Le},{resolve:function(h){return(function(N,M){if(mr(N),ht(M)&&M.constructor===N)return M;var J=Jt.f(N);return(0,J.resolve)(M),J.promise})(this,h)}}),Ii({target:Gr,stat:!0,forced:st},{all:function(h){var N=this,M=al(N),J=M.resolve,ae=M.reject,Pe=gr((function(){var ze=jn(N.resolve),_e=[],tt=0,yt=1;wr(h,(function(pt){var Pn=tt++,Tn=!1;yt++,qe(ze,N,pt).then((function(En){Tn||(Tn=!0,_e[Pn]=En,--yt||J(_e))}),ae)})),--yt||J(_e)}));return Pe.error&&ae(Pe.value),M.promise},race:function(h){var N=this,M=al(N),J=M.reject,ae=gr((function(){var Pe=jn(N.resolve);wr(h,(function(ze){qe(Pe,N,ze).then(M.resolve,J)}))}));return ae.error&&J(ae.value),M.promise}});var Mn=(function(){function h(){this.title=t.t("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=Fn(),this.posterInputId=Fn(),this.buttonId=Fn()}return h.prototype.getValue=function(N){return""},h.prototype.isActive=function(N){return!1},h.prototype.exec=function(N,M){},h.prototype.isDisabled=function(N){var M=N.selection;return M==null||!n.Range.isCollapsed(M)||!!t.DomEditor.getSelectedElems(N).some((function(J){var ae=t.DomEditor.getNodeType(J);return ae==="pre"||ae==="list-item"||!!N.isVoid(J)}))},h.prototype.getModalPositionNode=function(N){return null},h.prototype.getModalContentElem=function(N){var M=this,J=this,ae=J.srcInputId,Pe=J.posterInputId,ze=J.buttonId,_e=B(t.genModalInputElems(t.t("videoModule.videoSrc"),ae,t.t("videoModule.videoSrcPlaceHolder")),2),tt=_e[0],yt=_e[1],pt=B(t.genModalInputElems(t.t("videoModule.videoPoster"),Pe,t.t("videoModule.videoPosterPlaceHolder")),2),Pn=pt[0],Tn=pt[1],En=_.default(yt),Yr=_.default(Tn),sr=B(t.genModalButtonElems(ze,t.t("videoModule.ok")),1)[0];if(this.$content==null){var or=_.default("<div></div>");or.on("click","#"+ze,(function(On){return O(M,void 0,void 0,(function(){var ti,oi;return k(this,(function(zi){switch(zi.label){case 0:return On.preventDefault(),ti=or.find("#"+ae).val().trim(),oi=or.find("#"+Pe).val().trim(),[4,ar(N,ti,oi)];case 1:return zi.sent(),N.hidePanelOrModal(),[2]}}))}))})),this.$content=or}var Zn=this.$content;return Zn.empty(),Zn.append(tt),Zn.append(Pn),Zn.append(sr),En.val(""),Yr.val(""),setTimeout((function(){En.focus()})),Zn[0]},h})(),mn=Ae([].join),zr=de!=Object,ki=(function(h,N){var M=[][h];return!!M&&Ee((function(){M.call(null,N||function(){throw 1},1)}))})("join",",");Ii({target:"Array",proto:!0,forced:zr||!ki},{join:function(h){return mn(Ye(this),h===void 0?",":h)}});var _i,ao,eo,qa=!Ee((function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})),Da=Ca("IE_PROTO"),as=q.Object,Ms=as.prototype,sl=qa?as.getPrototypeOf:function(h){var N=ve(h);if(Ce(N,Da))return N[Da];var M=N.constructor;return oe(M)&&N instanceof M?M.prototype:N instanceof as?Ms:null},ll=Kt("iterator"),vf=!1;[].keys&&("next"in(eo=[].keys())?(ao=sl(sl(eo)))!==Object.prototype&&(_i=ao):vf=!0);var ic=_i==null||Ee((function(){var h={};return _i[ll].call(h)!==h}));ic&&(_i={}),oe(_i[ll])||Ci(_i,ll,(function(){return this}));var oc={IteratorPrototype:_i,BUGGY_SAFARI_ITERATORS:vf},zl=oc.IteratorPrototype,xd=function(){return this},Ys=so.PROPER,Hl=so.CONFIGURABLE,Tc=oc.IteratorPrototype,Zs=oc.BUGGY_SAFARI_ITERATORS,Tl=Kt("iterator"),Uu="keys",Bl="values",Vf="entries",Dd=function(){return this},cl=function(h,N,M,J,ae,Pe,ze){(function(Zn,On,ti,oi){var zi=On+" Iterator";Zn.prototype=wo(zl,{next:tn(+!oi,ti)}),nt(Zn,zi,!1),Bt[zi]=xd})(M,N,J);var _e,tt,yt,pt=function(Zn){if(Zn===ae&&sr)return sr;if(!Zs&&Zn in En)return En[Zn];switch(Zn){case Uu:case Bl:case Vf:return function(){return new M(this,Zn)}}return function(){return new M(this)}},Pn=N+" Iterator",Tn=!1,En=h.prototype,Yr=En[Tl]||En["@@iterator"]||ae&&En[ae],sr=!Zs&&Yr||pt(ae),or=N=="Array"&&En.entries||Yr;if(or&&(_e=sl(or.call(new h)))!==Object.prototype&&_e.next&&(sl(_e)!==Tc&&(rn?rn(_e,Tc):oe(_e[Tl])||Ci(_e,Tl,Dd)),nt(_e,Pn,!0)),Ys&&ae==Bl&&Yr&&Yr.name!==Bl&&(Hl?_r(En,"name",Bl):(Tn=!0,sr=function(){return qe(Yr,this)})),ae)if(tt={values:pt(Bl),keys:Pe?sr:pt(Uu),entries:pt(Vf)},ze)for(yt in tt)(Zs||Tn||!(yt in En))&&Ci(En,yt,tt[yt]);else Ii({target:N,proto:!0,forced:Zs||Tn},tt);return En[Tl]!==sr&&Ci(En,Tl,sr,{name:ae}),Bt[N]=sr,tt},Ga="Array Iterator",Ul=wi.set,ac=wi.getterFor(Ga),Ds=cl(Array,"Array",(function(h,N){Ul(this,{type:Ga,target:Ye(h),index:0,kind:N})}),(function(){var h=ac(this),N=h.target,M=h.kind,J=h.index++;return!N||J>=N.length?(h.target=void 0,{value:void 0,done:!0}):M=="keys"?{value:J,done:!1}:M=="values"?{value:N[J],done:!1}:{value:[J,N[J]],done:!1}}),"values");Bt.Arguments=Bt.Array,_o("keys"),_o("values"),_o("entries");var Bc=au.charAt,$s="String Iterator",Wf=wi.set,qf=wi.getterFor($s);cl(String,"String",(function(h){Wf(this,{type:$s,string:He(h),index:0})}),(function(){var h,N=qf(this),M=N.string,J=N.index;return J>=M.length?{value:void 0,done:!0}:(h=Bc(M,J),N.index+=h.length,{value:h,done:!1})}));var mf=function(h,N,M){var J=gn(N);J in h?bi.f(h,J,tn(0,M)):h[J]=M},Vl=q.Array,yf=Math.max,zs=Io.f,Fc=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uc=function(h){try{return zs(h)}catch(N){return(function(M,J,ae){for(var Pe=ko(M),ze=Ti(J,Pe),_e=Ti(ae===void 0?Pe:ae,Pe),tt=Vl(yf(_e-ze,0)),yt=0;ze<_e;ze++,yt++)mf(tt,yt,M[ze]);return tt.length=yt,tt})(Fc)}},Wl={f:function(h){return Fc&&Ot(h)=="Window"?uc(h):zs(Ye(h))}},fl=Ee((function(){if(typeof ArrayBuffer=="function"){var h=new ArrayBuffer(8);Object.isExtensible(h)&&Object.defineProperty(h,"a",{value:8})}})),Ss=Object.isExtensible,Su=Ee((function(){Ss(1)}))||fl?function(h){return!!ht(h)&&(!fl||Ot(h)!="ArrayBuffer")&&(!Ss||Ss(h))}:Ss,sc=!Ee((function(){return Object.isExtensible(Object.preventExtensions({}))})),Cs=te((function(h){var N=bi.f,M=!1,J=Mt("meta"),ae=0,Pe=function(_e){N(_e,J,{value:{objectID:"O"+ae++,weakData:{}}})},ze=h.exports={enable:function(){ze.enable=function(){},M=!0;var _e=Io.f,tt=Ae([].splice),yt={};yt[J]=1,_e(yt).length&&(Io.f=function(pt){for(var Pn=_e(pt),Tn=0,En=Pn.length;Tn<En;Tn++)if(Pn[Tn]===J){tt(Pn,Tn,1);break}return Pn},Ii({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Wl.f}))},fastKey:function(_e,tt){if(!ht(_e))return typeof _e=="symbol"?_e:(typeof _e=="string"?"S":"P")+_e;if(!Ce(_e,J)){if(!Su(_e))return"F";if(!tt)return"E";Pe(_e)}return _e[J].objectID},getWeakData:function(_e,tt){if(!Ce(_e,J)){if(!Su(_e))return!0;if(!tt)return!1;Pe(_e)}return _e[J].weakData},onFreeze:function(_e){return sc&&M&&Su(_e)&&!Ce(_e,J)&&Pe(_e),_e}};Di[J]=!0})),us=Cs.getWeakData,lc=wi.set,Pc=wi.getterFor,kc=ru.find,ql=ru.findIndex,cc=Ae([].splice),Nc=0,dl=function(h){return h.frozen||(h.frozen=new Ic)},Ic=function(){this.entries=[]},Gl=function(h,N){return kc(h.entries,(function(M){return M[0]===N}))};Ic.prototype={get:function(h){var N=Gl(this,h);if(N)return N[1]},has:function(h){return!!Gl(this,h)},set:function(h,N){var M=Gl(this,h);M?M[1]=N:this.entries.push([h,N])},delete:function(h){var N=ql(this.entries,(function(M){return M[0]===h}));return~N&&cc(this.entries,N,1),!!~N}};var Js,Rc={getConstructor:function(h,N,M,J){var ae=h((function(tt,yt){Ct(tt,Pe),lc(tt,{type:N,id:Nc++,frozen:void 0}),yt!=null&&wr(yt,tt[J],{that:tt,AS_ENTRIES:M})})),Pe=ae.prototype,ze=Pc(N),_e=function(tt,yt,pt){var Pn=ze(tt),Tn=us(mr(yt),!0);return Tn===!0?dl(Pn).set(yt,pt):Tn[Pn.id]=pt,tt};return kt(Pe,{delete:function(tt){var yt=ze(this);if(!ht(tt))return!1;var pt=us(tt);return pt===!0?dl(yt).delete(tt):pt&&Ce(pt,yt.id)&&delete pt[yt.id]},has:function(tt){var yt=ze(this);if(!ht(tt))return!1;var pt=us(tt);return pt===!0?dl(yt).has(tt):pt&&Ce(pt,yt.id)}}),kt(Pe,M?{get:function(tt){var yt=ze(this);if(ht(tt)){var pt=us(tt);return pt===!0?dl(yt).get(tt):pt?pt[yt.id]:void 0}},set:function(tt,yt){return _e(this,tt,yt)}}:{add:function(tt){return _e(this,tt,!0)}}),ae}},pl=wi.enforce,Hs=!q.ActiveXObject&&"ActiveXObject"in q,jc=function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},fc=(function(h,N,M){var J=h.indexOf("Map")!==-1,ae=h.indexOf("Weak")!==-1,Pe=J?"set":"add",ze=q[h],_e=ze&&ze.prototype,tt=ze,yt={},pt=function(or){var Zn=Ae(_e[or]);Ci(_e,or,or=="add"?function(On){return Zn(this,On===0?0:On),this}:or=="delete"?function(On){return!(ae&&!ht(On))&&Zn(this,On===0?0:On)}:or=="get"?function(On){return ae&&!ht(On)?void 0:Zn(this,On===0?0:On)}:or=="has"?function(On){return!(ae&&!ht(On))&&Zn(this,On===0?0:On)}:function(On,ti){return Zn(this,On===0?0:On,ti),this})};if(pa(h,!oe(ze)||!(ae||_e.forEach&&!Ee((function(){new ze().entries().next()})))))tt=M.getConstructor(N,h,J,Pe),Cs.enable();else if(pa(h,!0)){var Pn=new tt,Tn=Pn[Pe](ae?{}:-0,1)!=Pn,En=Ee((function(){Pn.has(1)})),Yr=Wi((function(or){new ze(or)})),sr=!ae&&Ee((function(){for(var or=new ze,Zn=5;Zn--;)or[Pe](Zn,Zn);return!or.has(-0)}));Yr||((tt=N((function(or,Zn){Ct(or,_e);var On=(function(ti,oi,zi){var Ka,fa;return rn&&oe(Ka=oi.constructor)&&Ka!==zi&&ht(fa=Ka.prototype)&&fa!==zi.prototype&&rn(ti,fa),ti})(new ze,or,tt);return Zn!=null&&wr(Zn,On[Pe],{that:On,AS_ENTRIES:J}),On}))).prototype=_e,_e.constructor=tt),(En||sr)&&(pt("delete"),pt("has"),J&&pt("get")),(sr||Tn)&&pt(Pe),ae&&_e.clear&&delete _e.clear}return yt[h]=tt,Ii({global:!0,forced:tt!=ze},yt),nt(tt,h),ae||M.setStrong(tt,h,J),tt})("WeakMap",jc,Rc);if(Co&&Hs){Js=Rc.getConstructor(jc,"WeakMap",!0),Cs.enable();var Us=fc.prototype,dc=Ae(Us.delete),Fl=Ae(Us.has),Lc=Ae(Us.get),Qs=Ae(Us.set);kt(Us,{delete:function(h){if(ht(h)&&!Su(h)){var N=pl(this);return N.frozen||(N.frozen=new Js),dc(this,h)||N.frozen.delete(h)}return dc(this,h)},has:function(h){if(ht(h)&&!Su(h)){var N=pl(this);return N.frozen||(N.frozen=new Js),Fl(this,h)||N.frozen.has(h)}return Fl(this,h)},get:function(h){if(ht(h)&&!Su(h)){var N=pl(this);return N.frozen||(N.frozen=new Js),Fl(this,h)?Lc(this,h):N.frozen.get(h)}return Lc(this,h)},set:function(h,N){if(ht(h)&&!Su(h)){var M=pl(this);M.frozen||(M.frozen=new Js),Fl(this,h)?Qs(this,h,N):M.frozen.set(h,N)}else Qs(this,h,N);return this}})}var Mc={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},$c=Gn("span").classList,zc=$c&&$c.constructor&&$c.constructor.prototype,Sd=zc===Object.prototype?void 0:zc,v=Kt("iterator"),R=Kt("toStringTag"),G=Ds.values,pe=function(h,N){if(h){if(h[v]!==G)try{_r(h,v,G)}catch(J){h[v]=G}if(h[R]||_r(h,R,N),Mc[N]){for(var M in Ds)if(h[M]!==Ds[M])try{_r(h,M,Ds[M])}catch(J){h[M]=Ds[M]}}}};for(var he in Mc)pe(q[he]&&q[he].prototype,he);pe(Sd,"DOMTokenList");var Ue=so.EXISTS,Xe=bi.f,Ne=Function.prototype,ut=Ae(Ne.toString),Tt=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mt=Ae(Tt.exec);ye&&!Ue&&Xe(Ne,"name",{configurable:!0,get:function(){try{return mt(Tt,ut(this))[1]}catch(h){return""}}});var nr=Kt("species"),rr=(function(h){return er>=51||!Ee((function(){var N=[];return(N.constructor={})[nr]=function(){return{foo:1}},N[h](Boolean).foo!==1}))})("slice"),pn=Kt("species"),ei=q.Array,ur=Math.max;function Rn(h){return h.getMenuConfig("uploadVideo")}Ii({target:"Array",proto:!0,forced:!rr},{slice:function(h,N){var M,J,ae,Pe=Ye(this),ze=ko(Pe),_e=Ti(h,ze),tt=Ti(N===void 0?ze:N,ze);if(sa(Pe)&&(M=Pe.constructor,($a(M)&&(M===ei||sa(M.prototype))||ht(M)&&(M=M[pn])===null)&&(M=void 0),M===ei||M===void 0))return Lu(Pe,_e,tt);for(J=new(M===void 0?ei:M)(ur(tt-_e,0)),ae=0;_e<tt;_e++,ae++)_e in Pe&&mf(J,ae,Pe[_e]);return J.length=ae,J}});var Sr=new WeakMap;function ir(h,N){return O(this,void 0,void 0,(function(){var M,J,ae,Pe;return k(this,(function(ze){switch(ze.label){case 0:return M=(function(_e){var tt=Sr.get(_e);if(tt!=null)return tt;var yt=Rn(_e),pt=yt.onSuccess,Pn=yt.onProgress,Tn=yt.onFailed,En=yt.customInsert,Yr=yt.onError;return tt=t.createUploader(x(x({},yt),{onProgress:function(sr){_e.showProgressBar(sr),Pn&&Pn(sr)},onSuccess:function(sr,or){if(En)return En(or,(function(gl,pc){return ar(_e,gl,pc)})),void pt(sr,or);var Zn=or.errno,On=Zn===void 0?1:Zn,ti=or.data,oi=ti===void 0?{}:ti;if(On===0){var zi=oi.url,Ka=zi===void 0?"":zi,fa=oi.poster;ar(_e,Ka,fa===void 0?"":fa),pt(sr,or)}else Tn(sr,or)},onError:function(sr,or,Zn){Yr(sr,or,Zn)}})),Sr.set(_e,tt),tt})(h),J=N.name,ae=N.type,Pe=N.size,M.addFile({name:J,type:ae,size:Pe,data:N}),[4,M.upload()];case 1:return ze.sent(),[2]}}))}))}var Yn=(function(){function h(){this.title=t.t("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 h.prototype.getValue=function(N){return""},h.prototype.isActive=function(N){return!1},h.prototype.exec=function(N,M){var J=this.getMenuConfig(N),ae=J.allowedFileTypes,Pe=ae===void 0?[]:ae,ze=J.customBrowseAndUpload;if(ze)ze((function(pt,Pn){return ar(N,pt,Pn)}));else{var _e="";Pe.length>0&&(_e='accept="'+Pe.join(", ")+'"');var tt=_.default("body"),yt=_.default('<input type="file" '+_e+" multiple/>");yt.hide(),tt.append(yt),yt.click(),yt.on("change",(function(){var pt=yt[0].files;(function(Pn,Tn){var En,Yr;O(this,void 0,void 0,(function(){var sr,or,Zn,On,ti,oi;return k(this,(function(zi){switch(zi.label){case 0:if(Tn==null)return[2];sr=Array.prototype.slice.call(Tn),or=Rn(Pn).customUpload,zi.label=1;case 1:zi.trys.push([1,9,10,15]),Zn=W(sr),zi.label=2;case 2:return[4,Zn.next()];case 3:return(On=zi.sent()).done?[3,8]:(ti=On.value,or?[4,or(ti,(function(Ka,fa){return ar(Pn,Ka,fa)}))]:[3,5]);case 4:return zi.sent(),[3,7];case 5:return[4,ir(Pn,ti)];case 6:zi.sent(),zi.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return oi=zi.sent(),En={error:oi},[3,15];case 10:return zi.trys.push([10,,13,14]),On&&!On.done&&(Yr=Zn.return)?[4,Yr.call(Zn)]:[3,12];case 11:zi.sent(),zi.label=12;case 12:return[3,14];case 13:if(En)throw En.error;return[7];case 14:return[7];case 15:return[2]}}))}))})(N,pt)}))}},h.prototype.isDisabled=function(N){var M=N.selection;return M==null||!n.Range.isCollapsed(M)||!!t.DomEditor.getSelectedElems(N).some((function(J){var ae=t.DomEditor.getNodeType(J);return ae==="pre"||ae==="list-item"||!!N.isVoid(J)}))},h.prototype.getMenuConfig=function(N){return N.getMenuConfig("uploadVideo")},h})(),$o=so.PROPER,Cu="toString",_t=RegExp.prototype,hl=_t.toString,bf=Ae(mu),Pl=Ee((function(){return hl.call({source:"a",flags:"b"})!="/a/b"})),Ef=$o&&hl.name!=Cu;function el(){return vt("w-e-insert-video")}(Pl||Ef)&&Ci(RegExp.prototype,Cu,(function(){var h=mr(this),N=He(h.source),M=h.flags;return"/"+N+"/"+He(M===void 0&&bn(_t,h)&&!("flags"in _t)?bf(h):M)}),{unsafe:!0});var Kl=(function(){function h(){this.title=t.t("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=el(),this.heightInputId=el(),this.buttonId=el()}return h.prototype.getSelectedVideoNode=function(N){return t.DomEditor.getSelectedNodeByType(N,"video")},h.prototype.getValue=function(N){return""},h.prototype.isActive=function(N){return!1},h.prototype.exec=function(N,M){},h.prototype.isDisabled=function(N){return N.selection==null||this.getSelectedVideoNode(N)==null},h.prototype.getModalPositionNode=function(N){return this.getSelectedVideoNode(N)},h.prototype.getModalContentElem=function(N){var M=this,J=M.widthInputId,ae=M.heightInputId,Pe=M.buttonId,ze=B(t.genModalInputElems(t.t("videoModule.width"),J,"auto"),2),_e=ze[0],tt=ze[1],yt=_.default(tt),pt=B(t.genModalInputElems(t.t("videoModule.height"),ae,"auto"),2),Pn=pt[0],Tn=pt[1],En=_.default(Tn),Yr=B(t.genModalButtonElems(Pe,t.t("videoModule.ok")),1)[0];if(this.$content==null){var sr=_.default("<div></div>");sr.on("click","#"+Pe,(function(Ka){Ka.preventDefault();var fa=sr.find("#"+J).val().trim(),gl=sr.find("#"+ae).val().trim(),pc=parseInt(fa),Cd=parseInt(gl),Gf=pc?pc.toString():"auto",ip=Cd?Cd.toString():"auto";N.restoreSelection(),n.Transforms.setNodes(N,{width:Gf,height:ip},{match:function(wf){return t.DomEditor.checkNodeType(wf,"video")}}),N.hidePanelOrModal()})),this.$content=sr}var or=this.$content;or.empty(),or.append(_e),or.append(Pn),or.append(Yr);var Zn=this.getSelectedVideoNode(N);if(Zn==null)return or[0];var On=Zn.width,ti=On===void 0?"auto":On,oi=Zn.height,zi=oi===void 0?"auto":oi;return yt.val(ti),En.val(zi),setTimeout((function(){yt.focus()})),or[0]},h})(),fo={renderElems:[Ji],elemsToHtml:[go],preParseHtml:[Wu],parseElemsHtml:[vu],menus:[{key:"insertVideo",factory:function(){return new Mn},config:{onInsertedVideo:function(h){},checkVideo:function(h,N){return!0},parseVideoSrc:function(h){return h}}},{key:"uploadVideo",factory:function(){return new Yn},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(h){return h},onProgress:function(h){},onSuccess:function(h,N){},onFailed:function(h,N){console.error("'"+h.name+"' upload failed",N)},onError:function(h,N,M){console.error("'"+h.name+" upload error",N,M)}}},{key:"editVideoSize",factory:function(){return new Kl}}],editorPlugin:function(h){var N=h.isVoid,M=h.normalizeNode,J=h;return J.isVoid=function(ae){return ae.type==="video"||N(ae)},J.normalizeNode=function(ae){var Pe=B(ae,2),ze=Pe[0],_e=Pe[1];return t.DomEditor.getNodeType(ze)==="video"&&t.DomEditor.isLastNode(J,ze)&&n.Transforms.insertNodes(J,t.DomEditor.genEmptyParagraph(),{at:[_e[0]+1]}),M([ze,_e])},J}};return fo}))}),s5=xl(function(r,e){(function(t,n){r.exports=n(qi,Db,Ed)})(Ur,(function(t,n,c){function f(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}var m=f(c);t.i18nAddResources("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),t.i18nAddResources("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var P=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:{};function _(v){var R={exports:{}};return v(R,R.exports),R.exports}var x,O,k=function(v){return v&&v.Math==Math&&v},S=k(typeof globalThis=="object"&&globalThis)||k(typeof window=="object"&&window)||k(typeof self=="object"&&self)||k(typeof P=="object"&&P)||(function(){return this})()||Function("return this")(),B=function(v){try{return!!v()}catch(R){return!0}},W=!B((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),re=Function.prototype.call,te=re.bind?re.bind(re):function(){return re.apply(re,arguments)},me={}.propertyIsEnumerable,ne=Object.getOwnPropertyDescriptor,X={f:ne&&!me.call({1:2},1)?function(v){var R=ne(this,v);return!!R&&R.enumerable}:me},q=function(v,R){return{enumerable:!(1&v),configurable:!(2&v),writable:!(4&v),value:R}},Ee=Function.prototype,ye=Ee.bind,Qe=Ee.call,qe=ye&&ye.bind(Qe),Ge=ye?function(v){return v&&qe(Qe,v)}:function(v){return v&&function(){return Qe.apply(v,arguments)}},zt=Ge({}.toString),qt=Ge("".slice),tn=function(v){return qt(zt(v),8,-1)},an=S.Object,kn=Ge("".split),At=B((function(){return!an("z").propertyIsEnumerable(0)}))?function(v){return tn(v)=="String"?kn(v,""):an(v)}:an,Wn=S.TypeError,Ae=function(v){if(v==null)throw Wn("Can't call method on "+v);return v},Dt=function(v){return At(Ae(v))},hn=function(v){return typeof v=="function"},Ot=function(v){return typeof v=="object"?v!==null:hn(v)},Sn=function(v){return hn(v)?v:void 0},be=function(v,R){return arguments.length<2?Sn(S[v]):S[v]&&S[v][R]},de=Ge({}.isPrototypeOf),xe=be("navigator","userAgent")||"",Ie=S.process,Ye=S.Deno,oe=Ie&&Ie.versions||Ye&&Ye.version,ht=oe&&oe.v8;ht&&(O=(x=ht.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!O&&xe&&(!(x=xe.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=xe.match(/Chrome\/(\d+)/))&&(O=+x[1]);var Gt=O,xn=!!Object.getOwnPropertySymbols&&!B((function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&Gt&&Gt<41})),bn=xn&&!Symbol.sham&&typeof Symbol.iterator=="symbol",at=S.Object,un=bn?function(v){return typeof v=="symbol"}:function(v){var R=be("Symbol");return hn(R)&&de(R.prototype,at(v))},Cn=S.String,Xt=function(v){try{return Cn(v)}catch(R){return"Object"}},Bn=S.TypeError,er=function(v){if(hn(v))return v;throw Bn(Xt(v)+" is not a function")},$t=function(v,R){var G=v[R];return G==null?void 0:er(G)},zn=S.TypeError,Pr=Object.defineProperty,Mr=function(v,R){try{Pr(S,v,{value:R,configurable:!0,writable:!0})}catch(G){S[v]=R}return R},qn="__core-js_shared__",Nn=S[qn]||Mr(qn,{}),Nr=_((function(v){(v.exports=function(R,G){return Nn[R]||(Nn[R]=G!==void 0?G:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),jn=S.Object,br=function(v){return jn(Ae(v))},Ut=Ge({}.hasOwnProperty),fr=Object.hasOwn||function(v,R){return Ut(br(v),R)},fi=0,Vr=Math.random(),Jr=Ge(1 .toString),Ir=function(v){return"Symbol("+(v===void 0?"":v)+")_"+Jr(++fi+Vr,36)},Tr=Nr("wks"),ve=S.Symbol,Ve=ve&&ve.for,Ce=bn?ve:ve&&ve.withoutSetter||Ir,we=function(v){if(!fr(Tr,v)||!xn&&typeof Tr[v]!="string"){var R="Symbol."+v;xn&&fr(ve,v)?Tr[v]=ve[v]:Tr[v]=bn&&Ve?Ve(R):Ce(R)}return Tr[v]},gt=S.TypeError,jt=we("toPrimitive"),Mt=function(v,R){if(!Ot(v)||un(v))return v;var G,pe=$t(v,jt);if(pe){if(R===void 0&&(R="default"),G=te(pe,v,R),!Ot(G)||un(G))return G;throw gt("Can't convert object to primitive value")}return R===void 0&&(R="number"),(function(he,Ue){var Xe,Ne;if(Ue==="string"&&hn(Xe=he.toString)&&!Ot(Ne=te(Xe,he))||hn(Xe=he.valueOf)&&!Ot(Ne=te(Xe,he))||Ue!=="string"&&hn(Xe=he.toString)&&!Ot(Ne=te(Xe,he)))return Ne;throw zn("Can't convert object to primitive value")})(v,R)},Ln=function(v){var R=Mt(v,"string");return un(R)?R:R+""},Dr=S.document,Ar=Ot(Dr)&&Ot(Dr.createElement),ui=function(v){return Ar?Dr.createElement(v):{}},Kt=!W&&!B((function(){return Object.defineProperty(ui("div"),"a",{get:function(){return 7}}).a!=7})),Pt=Object.getOwnPropertyDescriptor,xt={f:W?Pt:function(v,R){if(v=Dt(v),R=Ln(R),Kt)try{return Pt(v,R)}catch(G){}if(fr(v,R))return q(!te(X.f,v,R),v[R])}},Yt=S.String,gn=S.TypeError,Vt=function(v){if(Ot(v))return v;throw gn(Yt(v)+" is not an object")},Xn=S.TypeError,Gn=Object.defineProperty,Hn={f:W?Gn:function(v,R,G){if(Vt(v),R=Ln(R),Vt(G),Kt)try{return Gn(v,R,G)}catch(pe){}if("get"in G||"set"in G)throw Xn("Accessors not supported");return"value"in G&&(v[R]=G.value),v}},ln=W?function(v,R,G){return Hn.f(v,R,q(1,G))}:function(v,R,G){return v[R]=G,v},lr=Ge(Function.toString);hn(Nn.inspectSource)||(Nn.inspectSource=function(v){return lr(v)});var cn,Rr,mr,Er=Nn.inspectSource,yi=S.WeakMap,bi=hn(yi)&&/native code/.test(Er(yi)),_r=Nr("keys"),Hr=function(v){return _r[v]||(_r[v]=Ir(v))},Ui={},ri="Object already initialized",mo=S.TypeError,Qr=S.WeakMap;if(bi||Nn.state){var ii=Nn.state||(Nn.state=new Qr),Co=Ge(ii.get),zo=Ge(ii.has),Ca=Ge(ii.set);cn=function(v,R){if(zo(ii,v))throw new mo(ri);return R.facade=v,Ca(ii,v,R),R},Rr=function(v){return Co(ii,v)||{}},mr=function(v){return zo(ii,v)}}else{var Di=Hr("state");Ui[Di]=!0,cn=function(v,R){if(fr(v,Di))throw new mo(ri);return R.facade=v,ln(v,Di,R),R},Rr=function(v){return fr(v,Di)?v[Di]:{}},mr=function(v){return fr(v,Di)}}var Gi={set:cn,get:Rr,has:mr,enforce:function(v){return mr(v)?Rr(v):cn(v,{})},getterFor:function(v){return function(R){var G;if(!Ot(R)||(G=Rr(R)).type!==v)throw mo("Incompatible receiver, "+v+" required");return G}}},no=Function.prototype,Ho=W&&Object.getOwnPropertyDescriptor,Ki=fr(no,"name"),Si={EXISTS:Ki,PROPER:Ki&&function(){}.name==="something",CONFIGURABLE:Ki&&(!W||W&&Ho(no,"name").configurable)},Ei=_((function(v){var R=Si.CONFIGURABLE,G=Gi.get,pe=Gi.enforce,he=String(String).split("String");(v.exports=function(Ue,Xe,Ne,ut){var Tt,mt=!!ut&&!!ut.unsafe,nr=!!ut&&!!ut.enumerable,rr=!!ut&&!!ut.noTargetGet,pn=ut&&ut.name!==void 0?ut.name:Xe;hn(Ne)&&(String(pn).slice(0,7)==="Symbol("&&(pn="["+String(pn).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fr(Ne,"name")||R&&Ne.name!==pn)&&ln(Ne,"name",pn),(Tt=pe(Ne)).source||(Tt.source=he.join(typeof pn=="string"?pn:""))),Ue!==S?(mt?!rr&&Ue[Xe]&&(nr=!0):delete Ue[Xe],nr?Ue[Xe]=Ne:ln(Ue,Xe,Ne)):nr?Ue[Xe]=Ne:Mr(Xe,Ne)})(Function.prototype,"toString",(function(){return hn(this)&&G(this).source||Er(this)}))})),uo=Math.ceil,yo=Math.floor,wi=function(v){var R=+v;return R!=R||R===0?0:(R>0?yo:uo)(R)},Uo=Math.max,bo=Math.min,jr=function(v,R){var G=wi(v);return G<0?Uo(G+R,0):bo(G,R)},so=Math.min,Ci=function(v){return v>0?so(wi(v),9007199254740991):0},Xi=function(v){return Ci(v.length)},Po=function(v){return function(R,G,pe){var he,Ue=Dt(R),Xe=Xi(Ue),Ne=jr(pe,Xe);if(v&&G!=G){for(;Xe>Ne;)if((he=Ue[Ne++])!=he)return!0}else for(;Xe>Ne;Ne++)if((v||Ne in Ue)&&Ue[Ne]===G)return v||Ne||0;return!v&&-1}},di={includes:Po(!0),indexOf:Po(!1)}.indexOf,po=Ge([].push),du=function(v,R){var G,pe=Dt(v),he=0,Ue=[];for(G in pe)!fr(Ui,G)&&fr(pe,G)&&po(Ue,G);for(;R.length>he;)fr(pe,G=R[he++])&&(~di(Ue,G)||po(Ue,G));return Ue},Ti=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yi=Ti.concat("length","prototype"),Aa={f:Object.getOwnPropertyNames||function(v){return du(v,Yi)}},ko={f:Object.getOwnPropertySymbols},Eo=Ge([].concat),Zi=be("Reflect","ownKeys")||function(v){var R=Aa.f(Vt(v)),G=ko.f;return G?Eo(R,G(v)):R},Ai=function(v,R){for(var G=Zi(R),pe=Hn.f,he=xt.f,Ue=0;Ue<G.length;Ue++){var Xe=G[Ue];fr(v,Xe)||pe(v,Xe,he(R,Xe))}},No=/#|\.prototype\./,oa=function(v,R){var G=_a[si(v)];return G==pu||G!=Io&&(hn(R)?B(R):!!R)},si=oa.normalize=function(v){return String(v).replace(No,".").toLowerCase()},_a=oa.data={},Io=oa.NATIVE="N",pu=oa.POLYFILL="P",Ma=oa,Ro=xt.f,Wr=function(v,R){var G,pe,he,Ue,Xe,Ne=v.target,ut=v.global,Tt=v.stat;if(G=ut?S:Tt?S[Ne]||Mr(Ne,{}):(S[Ne]||{}).prototype)for(pe in R){if(Ue=R[pe],he=v.noTargetGet?(Xe=Ro(G,pe))&&Xe.value:G[pe],!Ma(ut?pe:Ne+(Tt?".":"#")+pe,v.forced)&&he!==void 0){if(typeof Ue==typeof he)continue;Ai(Ue,he)}(v.sham||he&&he.sham)&&ln(Ue,"sham",!0),Ei(G,pe,Ue,v)}},Za=Array.isArray||function(v){return tn(v)=="Array"},lo={};lo[we("toStringTag")]="z";var Ao,Bi=String(lo)==="[object z]",jo=we("toStringTag"),co=S.Object,pa=tn((function(){return arguments})())=="Arguments",Vo=Bi?tn:function(v){var R,G,pe;return v===void 0?"Undefined":v===null?"Null":typeof(G=(function(he,Ue){try{return he[Ue]}catch(Xe){}})(R=co(v),jo))=="string"?G:pa?tn(R):(pe=tn(R))=="Object"&&hn(R.callee)?"Arguments":pe},Ii=function(){},qr=[],ha=be("Reflect","construct"),ho=/^\s*(?:class|function)\b/,Wo=Ge(ho.exec),Oa=!ho.exec(Ii),b=function(v){if(!hn(v))return!1;try{return ha(Ii,qr,v),!0}catch(R){return!1}},L=!ha||B((function(){var v;return b(b.call)||!b(Object)||!b((function(){v=!0}))||v}))?function(v){if(!hn(v))return!1;switch(Vo(v)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Oa||!!Wo(ho,Er(v))}:b,le=function(v,R,G){var pe=Ln(R);pe in v?Hn.f(v,pe,q(0,G)):v[pe]=G},He=we("species"),An=Ge([].slice),Dn=(Ao="slice",Gt>=51||!B((function(){var v=[];return(v.constructor={})[He]=function(){return{foo:1}},v[Ao](Boolean).foo!==1}))),dr=we("species"),Or=S.Array,Fi=Math.max;Wr({target:"Array",proto:!0,forced:!Dn},{slice:function(v,R){var G,pe,he,Ue=Dt(this),Xe=Xi(Ue),Ne=jr(v,Xe),ut=jr(R===void 0?Xe:R,Xe);if(Za(Ue)&&(G=Ue.constructor,(L(G)&&(G===Or||Za(G.prototype))||Ot(G)&&(G=G[dr])===null)&&(G=void 0),G===Or||G===void 0))return An(Ue,Ne,ut);for(pe=new(G===void 0?Or:G)(Fi(ut-Ne,0)),he=0;Ne<ut;Ne++,he++)Ne in Ue&&le(pe,he,Ue[Ne]);return pe.length=he,pe}});var kr=Bi?{}.toString:function(){return"[object "+Vo(this)+"]"};Bi||Ei(Object.prototype,"toString",kr,{unsafe:!0});var pi,Ri=S.String,li=function(v){if(Vo(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ri(v)},Pi=function(){var v=Vt(this),R="";return v.global&&(R+="g"),v.ignoreCase&&(R+="i"),v.multiline&&(R+="m"),v.dotAll&&(R+="s"),v.unicode&&(R+="u"),v.sticky&&(R+="y"),R},ji=S.RegExp,Ji=B((function(){var v=ji("a","y");return v.lastIndex=2,v.exec("abcd")!=null})),xi=Ji||B((function(){return!ji("a","y").sticky})),go={BROKEN_CARET:Ji||B((function(){var v=ji("^r","gy");return v.lastIndex=2,v.exec("str")!=null})),MISSED_STICKY:xi,UNSUPPORTED_Y:Ji},Ja=Object.keys||function(v){return du(v,Ti)},ga=W?Object.defineProperties:function(v,R){Vt(v);for(var G,pe=Dt(R),he=Ja(R),Ue=he.length,Xe=0;Ue>Xe;)Hn.f(v,G=he[Xe++],pe[G]);return v},io=be("document","documentElement"),hu=Hr("IE_PROTO"),Qa=function(){},Ts=function(v){return"<script>"+v+"<\/script>"},hi=function(v){v.write(Ts("")),v.close();var R=v.parentWindow.Object;return v=null,R},va=function(){try{pi=new ActiveXObject("htmlfile")}catch(pe){}var v,R;va=typeof document!="undefined"?document.domain&&pi?hi(pi):((R=ui("iframe")).style.display="none",io.appendChild(R),R.src="javascript:",(v=R.contentWindow.document).open(),v.write(Ts("document.F=Object")),v.close(),v.F):hi(pi);for(var G=Ti.length;G--;)delete va.prototype[Ti[G]];return va()};Ui[hu]=!0;var wo,aa,ua=Object.create||function(v,R){var G;return v!==null?(Qa.prototype=Vt(v),G=new Qa,Qa.prototype=null,G[hu]=v):G=va(),R===void 0?G:ga(G,R)},_o=S.RegExp,Tu=B((function(){var v=_o(".","s");return!(v.dotAll&&v.exec(`
`)&&v.flags==="s")})),Wu=S.RegExp,Bu=B((function(){var v=Wu("(?<a>b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$<a>c")!=="bc"})),Fu=Gi.get,sa=Nr("native-string-replace",String.prototype.replace),qo=RegExp.prototype.exec,gu=qo,eu=Ge("".charAt),qu=Ge("".indexOf),tu=Ge("".replace),Pu=Ge("".slice),$r=(aa=/b*/g,te(qo,wo=/a/,"a"),te(qo,aa,"a"),wo.lastIndex!==0||aa.lastIndex!==0),$a=go.BROKEN_CARET,nu=/()??/.exec("")[1]!==void 0;($r||nu||$a||Tu||Bu)&&(gu=function(v){var R,G,pe,he,Ue,Xe,Ne,ut=this,Tt=Fu(ut),mt=li(v),nr=Tt.raw;if(nr)return nr.lastIndex=ut.lastIndex,R=te(gu,nr,mt),ut.lastIndex=nr.lastIndex,R;var rr=Tt.groups,pn=$a&&ut.sticky,ei=te(Pi,ut),ur=ut.source,Rn=0,Sr=mt;if(pn&&(ei=tu(ei,"y",""),qu(ei,"g")===-1&&(ei+="g"),Sr=Pu(mt,ut.lastIndex),ut.lastIndex>0&&(!ut.multiline||ut.multiline&&eu(mt,ut.lastIndex-1)!==`
`)&&(ur="(?: "+ur+")",Sr=" "+Sr,Rn++),G=new RegExp("^(?:"+ur+")",ei)),nu&&(G=new RegExp("^"+ur+"$(?!\\s)",ei)),$r&&(pe=ut.lastIndex),he=te(qo,pn?G:ut,Sr),pn?he?(he.input=Pu(he.input,Rn),he[0]=Pu(he[0],Rn),he.index=ut.lastIndex,ut.lastIndex+=he[0].length):ut.lastIndex=0:$r&&he&&(ut.lastIndex=ut.global?he.index+he[0].length:pe),nu&&he&&he.length>1&&te(sa,he[0],G,(function(){for(Ue=1;Ue<arguments.length-2;Ue++)arguments[Ue]===void 0&&(he[Ue]=void 0)})),he&&rr)for(he.groups=Xe=ua(null),Ue=0;Ue<rr.length;Ue++)Xe[(Ne=rr[Ue])[0]]=he[Ne[1]];return he});var xo=gu;Wr({target:"RegExp",proto:!0,forced:/./.exec!==xo},{exec:xo});var Bs=Function.prototype,Fs=Bs.apply,la=Bs.bind,ru=Bs.call,cs=typeof Reflect=="object"&&Reflect.apply||(la?ru.bind(Fs):function(){return ru.apply(Fs,arguments)}),ku=we("species"),Ta=RegExp.prototype,Gu=we("match"),Go=S.TypeError,Ku=we("species"),Nu=function(v,R){var G,pe=Vt(v).constructor;return pe===void 0||(G=Vt(pe)[Ku])==null?R:(function(he){if(L(he))return he;throw Go(Xt(he)+" is not a constructor")})(G)},vu=Ge("".charAt),mu=Ge("".charCodeAt),Iu=Ge("".slice),Xr=function(v){return function(R,G){var pe,he,Ue=li(Ae(R)),Xe=wi(G),Ne=Ue.length;return Xe<0||Xe>=Ne?v?"":void 0:(pe=mu(Ue,Xe))<55296||pe>56319||Xe+1===Ne||(he=mu(Ue,Xe+1))<56320||he>57343?v?vu(Ue,Xe):pe:v?Iu(Ue,Xe,Xe+2):he-56320+(pe-55296<<10)+65536}},za={codeAt:Xr(!1),charAt:Xr(!0)},ma=za.charAt,iu=function(v,R,G){return R+(G?ma(v,R).length:1)},Ba=S.Array,fs=Math.max,yu=function(v,R,G){for(var pe=Xi(v),he=jr(R,pe),Ue=jr(G===void 0?pe:G,pe),Xe=Ba(fs(Ue-he,0)),Ne=0;he<Ue;he++,Ne++)le(Xe,Ne,v[he]);return Xe.length=Ne,Xe},Ps=S.TypeError,Xu=function(v,R){var G=v.exec;if(hn(G)){var pe=te(G,v,R);return pe!==null&&Vt(pe),pe}if(tn(v)==="RegExp")return te(xo,v,R);throw Ps("RegExp#exec called on incompatible receiver")},Ko=go.UNSUPPORTED_Y,Yu=4294967295,Zu=Math.min,ks=[].push,ds=Ge(/./.exec),Fa=Ge(ks),ya=Ge("".slice),Pa=!B((function(){var v=/(?:)/,R=v.exec;v.exec=function(){return R.apply(this,arguments)};var G="ab".split(v);return G.length!==2||G[0]!=="a"||G[1]!=="b"}));(function(v,R,G,pe){var he=we(v),Ue=!B((function(){var Tt={};return Tt[he]=function(){return 7},""[v](Tt)!=7})),Xe=Ue&&!B((function(){var Tt=!1,mt=/a/;return v==="split"&&((mt={}).constructor={},mt.constructor[ku]=function(){return mt},mt.flags="",mt[he]=/./[he]),mt.exec=function(){return Tt=!0,null},mt[he](""),!Tt}));if(!Ue||!Xe||G){var Ne=Ge(/./[he]),ut=R(he,""[v],(function(Tt,mt,nr,rr,pn){var ei=Ge(Tt),ur=mt.exec;return ur===xo||ur===Ta.exec?Ue&&!pn?{done:!0,value:Ne(mt,nr,rr)}:{done:!0,value:ei(nr,mt,rr)}:{done:!1}}));Ei(String.prototype,v,ut[0]),Ei(Ta,he,ut[1])}pe&&ln(Ta[he],"sham",!0)})("split",(function(v,R,G){var pe;return pe="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(he,Ue){var Xe,Ne,ut=li(Ae(this)),Tt=Ue===void 0?Yu:Ue>>>0;if(Tt===0)return[];if(he===void 0)return[ut];if(!Ot(Xe=he)||!((Ne=Xe[Gu])!==void 0?Ne:tn(Xe)=="RegExp"))return te(R,ut,he,Tt);for(var mt,nr,rr,pn=[],ei=(he.ignoreCase?"i":"")+(he.multiline?"m":"")+(he.unicode?"u":"")+(he.sticky?"y":""),ur=0,Rn=new RegExp(he.source,ei+"g");(mt=te(xo,Rn,ut))&&!((nr=Rn.lastIndex)>ur&&(Fa(pn,ya(ut,ur,mt.index)),mt.length>1&&mt.index<ut.length&&cs(ks,pn,yu(mt,1)),rr=mt[0].length,ur=nr,pn.length>=Tt));)Rn.lastIndex===mt.index&&Rn.lastIndex++;return ur===ut.length?!rr&&ds(Rn,"")||Fa(pn,""):Fa(pn,ya(ut,ur)),pn.length>Tt?yu(pn,0,Tt):pn}:"0".split(void 0,0).length?function(he,Ue){return he===void 0&&Ue===0?[]:te(R,this,he,Ue)}:R,[function(he,Ue){var Xe=Ae(this),Ne=he==null?void 0:$t(he,v);return Ne?te(Ne,he,Xe,Ue):te(pe,li(Xe),he,Ue)},function(he,Ue){var Xe=Vt(this),Ne=li(he),ut=G(pe,Xe,Ne,Ue,pe!==R);if(ut.done)return ut.value;var Tt=Nu(Xe,RegExp),mt=Xe.unicode,nr=(Xe.ignoreCase?"i":"")+(Xe.multiline?"m":"")+(Xe.unicode?"u":"")+(Ko?"g":"y"),rr=new Tt(Ko?"^(?:"+Xe.source+")":Xe,nr),pn=Ue===void 0?Yu:Ue>>>0;if(pn===0)return[];if(Ne.length===0)return Xu(rr,Ne)===null?[Ne]:[];for(var ei=0,ur=0,Rn=[];ur<Ne.length;){rr.lastIndex=Ko?0:ur;var Sr,ir=Xu(rr,Ko?ya(Ne,ur):Ne);if(ir===null||(Sr=Zu(Ci(rr.lastIndex+(Ko?ur:0)),Ne.length))===ei)ur=iu(Ne,ur,mt);else{if(Fa(Rn,ya(Ne,ei,ur)),Rn.length===pn)return Rn;for(var Yn=1;Yn<=ir.length-1;Yn++)if(Fa(Rn,ir[Yn]),Rn.length===pn)return Rn;ur=ei=Sr}}return Fa(Rn,ya(Ne,ei)),Rn}]}),!Pa,Ko);/*! *****************************************************************************
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 ka=function(){return ka=Object.assign||function(v){for(var R,G=1,pe=arguments.length;G<pe;G++)for(var he in R=arguments[G])Object.prototype.hasOwnProperty.call(R,he)&&(v[he]=R[he]);return v},ka.apply(this,arguments)};function ou(v,R,G,pe){return new(G||(G=Promise))((function(he,Ue){function Xe(Tt){try{ut(pe.next(Tt))}catch(mt){Ue(mt)}}function Ne(Tt){try{ut(pe.throw(Tt))}catch(mt){Ue(mt)}}function ut(Tt){var mt;Tt.done?he(Tt.value):(mt=Tt.value,mt instanceof G?mt:new G((function(nr){nr(mt)}))).then(Xe,Ne)}ut((pe=pe.apply(v,R||[])).next())}))}function bu(v,R){var G,pe,he,Ue,Xe={label:0,sent:function(){if(1&he[0])throw he[1];return he[1]},trys:[],ops:[]};return Ue={next:Ne(0),throw:Ne(1),return:Ne(2)},typeof Symbol=="function"&&(Ue[Symbol.iterator]=function(){return this}),Ue;function Ne(ut){return function(Tt){return(function(mt){if(G)throw new TypeError("Generator is already executing.");for(;Xe;)try{if(G=1,pe&&(he=2&mt[0]?pe.return:mt[0]?pe.throw||((he=pe.return)&&he.call(pe),0):pe.next)&&!(he=he.call(pe,mt[1])).done)return he;switch(pe=0,he&&(mt=[2&mt[0],he.value]),mt[0]){case 0:case 1:he=mt;break;case 4:return Xe.label++,{value:mt[1],done:!1};case 5:Xe.label++,pe=mt[1],mt=[0];continue;case 7:mt=Xe.ops.pop(),Xe.trys.pop();continue;default:if(he=Xe.trys,!((he=he.length>0&&he[he.length-1])||mt[0]!==6&&mt[0]!==2)){Xe=0;continue}if(mt[0]===3&&(!he||mt[1]>he[0]&&mt[1]<he[3])){Xe.label=mt[1];break}if(mt[0]===6&&Xe.label<he[1]){Xe.label=he[1],he=mt;break}if(he&&Xe.label<he[2]){Xe.label=he[2],Xe.ops.push(mt);break}he[2]&&Xe.ops.pop(),Xe.trys.pop();continue}mt=R.call(v,Xe)}catch(nr){mt=[6,nr],pe=0}finally{G=he=0}if(5&mt[0])throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}})([ut,Tt])}}}function ba(v){var R=typeof Symbol=="function"&&Symbol.iterator,G=R&&v[R],pe=0;if(G)return G.call(v);if(v&&typeof v.length=="number")return{next:function(){return v&&pe>=v.length&&(v=void 0),{value:v&&v[pe++],done:!v}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ru(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R,G=v[Symbol.asyncIterator];return G?G.call(v):(v=ba(v),R={},pe("next"),pe("throw"),pe("return"),R[Symbol.asyncIterator]=function(){return this},R);function pe(he){R[he]=v[he]&&function(Ue){return new Promise((function(Xe,Ne){(function(ut,Tt,mt,nr){Promise.resolve(nr).then((function(rr){ut({value:rr,done:mt})}),Tt)})(Xe,Ne,(Ue=v[he](Ue)).done,Ue.value)}))}}}var Ju=we("unscopables"),ju=Array.prototype;ju[Ju]==null&&Hn.f(ju,Ju,{configurable:!0,value:ua(null)});var Xo,Ea,Ns,Ha=function(v){ju[Ju][v]=!0},Eu={},Na=!B((function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})),au=Hr("IE_PROTO"),ps=S.Object,wu=ps.prototype,hs=Na?ps.getPrototypeOf:function(v){var R=br(v);if(fr(R,au))return R[au];var G=R.constructor;return hn(G)&&R instanceof G?G.prototype:R instanceof ps?wu:null},Yo=we("iterator"),gs=!1;[].keys&&("next"in(Ns=[].keys())?(Ea=hs(hs(Ns)))!==Object.prototype&&(Xo=Ea):gs=!0);var vs=Xo==null||B((function(){var v={};return Xo[Yo].call(v)!==v}));vs&&(Xo={}),hn(Xo[Yo])||Ei(Xo,Yo,(function(){return this}));var Qu={IteratorPrototype:Xo,BUGGY_SAFARI_ITERATORS:gs},ca=Hn.f,Is=we("toStringTag"),uu=function(v,R,G){v&&!fr(v=G?v:v.prototype,Is)&&ca(v,Is,{configurable:!0,value:R})},Gs=Qu.IteratorPrototype,Rs=function(){return this},T=S.String,z=S.TypeError,ue=Object.setPrototypeOf||("__proto__"in{}?(function(){var v,R=!1,G={};try{(v=Ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(G,[]),R=G instanceof Array}catch(pe){}return function(pe,he){return Vt(pe),(function(Ue){if(typeof Ue=="object"||hn(Ue))return Ue;throw z("Can't set "+T(Ue)+" as a prototype")})(he),R?v(pe,he):pe.__proto__=he,pe}})():void 0),Me=Si.PROPER,Fe=Si.CONFIGURABLE,ot=Qu.IteratorPrototype,Te=Qu.BUGGY_SAFARI_ITERATORS,ct=we("iterator"),vt="keys",Lt="values",kt="entries",Wt=function(){return this},Kn=function(v,R,G,pe,he,Ue,Xe){(function(Sr,ir,Yn,$o){var Cu=ir+" Iterator";Sr.prototype=ua(Gs,{next:q(+!$o,Yn)}),uu(Sr,Cu,!1),Eu[Cu]=Rs})(G,R,pe);var Ne,ut,Tt,mt=function(Sr){if(Sr===he&&ur)return ur;if(!Te&&Sr in pn)return pn[Sr];switch(Sr){case vt:case Lt:case kt:return function(){return new G(this,Sr)}}return function(){return new G(this)}},nr=R+" Iterator",rr=!1,pn=v.prototype,ei=pn[ct]||pn["@@iterator"]||he&&pn[he],ur=!Te&&ei||mt(he),Rn=R=="Array"&&pn.entries||ei;if(Rn&&(Ne=hs(Rn.call(new v)))!==Object.prototype&&Ne.next&&(hs(Ne)!==ot&&(ue?ue(Ne,ot):hn(Ne[ct])||Ei(Ne,ct,Wt)),uu(Ne,nr,!0)),Me&&he==Lt&&ei&&ei.name!==Lt&&(Fe?ln(pn,"name",Lt):(rr=!0,ur=function(){return te(ei,this)})),he)if(ut={values:mt(Lt),keys:Ue?ur:mt(vt),entries:mt(kt)},Xe)for(Tt in ut)(Te||rr||!(Tt in pn))&&Ei(pn,Tt,ut[Tt]);else Wr({target:R,proto:!0,forced:Te||rr},ut);return pn[ct]!==ur&&Ei(pn,ct,ur,{name:he}),Eu[R]=ur,ut},rn="Array Iterator",tr=Gi.set,In=Gi.getterFor(rn),nt=Kn(Array,"Array",(function(v,R){tr(this,{type:rn,target:Dt(v),index:0,kind:R})}),(function(){var v=In(this),R=v.target,G=v.kind,pe=v.index++;return!R||pe>=R.length?(v.target=void 0,{value:void 0,done:!0}):G=="keys"?{value:pe,done:!1}:G=="values"?{value:R[pe],done:!1}:{value:[pe,R[pe]],done:!1}}),"values");Eu.Arguments=Eu.Array,Ha("keys"),Ha("values"),Ha("entries");var $e=za.charAt,bt="String Iterator",Ct=Gi.set,Bt=Gi.getterFor(bt);Kn(String,"String",(function(v){Ct(this,{type:bt,string:li(v),index:0})}),(function(){var v,R=Bt(this),G=R.string,pe=R.index;return pe>=G.length?{value:void 0,done:!0}:(v=$e(G,pe),R.index+=v.length,{value:v,done:!1})}));var fn=function(v,R,G){for(var pe in R)Ei(v,pe,R[pe],G);return v},en=Aa.f,_n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gi={f:function(v){return _n&&tn(v)=="Window"?(function(R){try{return en(R)}catch(G){return yu(_n)}})(v):en(Dt(v))}},cr=B((function(){if(typeof ArrayBuffer=="function"){var v=new ArrayBuffer(8);Object.isExtensible(v)&&Object.defineProperty(v,"a",{value:8})}})),Vi=Object.isExtensible,oo=B((function(){Vi(1)}))||cr?function(v){return!!Ot(v)&&(!cr||tn(v)!="ArrayBuffer")&&(!Vi||Vi(v))}:Vi,Lo=!B((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ua=_((function(v){var R=Hn.f,G=!1,pe=Ir("meta"),he=0,Ue=function(Ne){R(Ne,pe,{value:{objectID:"O"+he++,weakData:{}}})},Xe=v.exports={enable:function(){Xe.enable=function(){},G=!0;var Ne=Aa.f,ut=Ge([].splice),Tt={};Tt[pe]=1,Ne(Tt).length&&(Aa.f=function(mt){for(var nr=Ne(mt),rr=0,pn=nr.length;rr<pn;rr++)if(nr[rr]===pe){ut(nr,rr,1);break}return nr},Wr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gi.f}))},fastKey:function(Ne,ut){if(!Ot(Ne))return typeof Ne=="symbol"?Ne:(typeof Ne=="string"?"S":"P")+Ne;if(!fr(Ne,pe)){if(!oo(Ne))return"F";if(!ut)return"E";Ue(Ne)}return Ne[pe].objectID},getWeakData:function(Ne,ut){if(!fr(Ne,pe)){if(!oo(Ne))return!0;if(!ut)return!1;Ue(Ne)}return Ne[pe].weakData},onFreeze:function(Ne){return Lo&&G&&oo(Ne)&&!fr(Ne,pe)&&Ue(Ne),Ne}};Ui[pe]=!0})),wr=Ge(Ge.bind),Oo=function(v,R){return er(v),R===void 0?v:wr?wr(v,R):function(){return v.apply(R,arguments)}},Li=we("iterator"),Zo=Array.prototype,Ia=we("iterator"),Mi=function(v){if(v!=null)return $t(v,Ia)||$t(v,"@@iterator")||Eu[Vo(v)]},$i=S.TypeError,wa=function(v,R,G){var pe,he;Vt(v);try{if(!(pe=$t(v,"return"))){if(R==="throw")throw G;return G}pe=te(pe,v)}catch(Ue){he=!0,pe=Ue}if(R==="throw")throw G;if(he)throw pe;return Vt(pe),G},ci=S.TypeError,Wi=function(v,R){this.stopped=v,this.result=R},Jo=Wi.prototype,xa=function(v,R,G){var pe,he,Ue,Xe,Ne,ut,Tt,mt,nr=G&&G.that,rr=!(!G||!G.AS_ENTRIES),pn=!(!G||!G.IS_ITERATOR),ei=!(!G||!G.INTERRUPTED),ur=Oo(R,nr),Rn=function(ir){return pe&&wa(pe,"normal",ir),new Wi(!0,ir)},Sr=function(ir){return rr?(Vt(ir),ei?ur(ir[0],ir[1],Rn):ur(ir[0],ir[1])):ei?ur(ir,Rn):ur(ir)};if(pn)pe=v;else{if(!(he=Mi(v)))throw ci(Xt(v)+" is not iterable");if((mt=he)!==void 0&&(Eu.Array===mt||Zo[Li]===mt)){for(Ue=0,Xe=Xi(v);Xe>Ue;Ue++)if((Ne=Sr(v[Ue]))&&de(Jo,Ne))return Ne;return new Wi(!1)}pe=(function(ir,Yn){var $o=arguments.length<2?Mi(ir):Yn;if(er($o))return Vt(te($o,ir));throw $i(Xt(ir)+" is not iterable")})(v,he)}for(ut=pe.next;!(Tt=te(ut,pe)).done;){try{Ne=Sr(Tt.value)}catch(ir){wa(pe,"throw",ir)}if(typeof Ne=="object"&&Ne&&de(Jo,Ne))return Ne}return new Wi(!1)},ms=S.TypeError,Lu=function(v,R){if(de(R,v))return v;throw ms("Incorrect invocation")},ys=we("iterator"),Qo=!1;try{var Va=0,bs={next:function(){return{done:!!Va++}},return:function(){Qo=!0}};bs[ys]=function(){return this},Array.from(bs,(function(){throw 2}))}catch(v){}var es=function(v,R){if(!R&&!Qo)return!1;var G=!1;try{var pe={};pe[ys]=function(){return{next:function(){return{done:G=!0}}}},v(pe)}catch(he){}return G},Ks=we("species"),Mu=S.Array,Ol=function(v,R){return new((function(G){var pe;return Za(G)&&(pe=G.constructor,(L(pe)&&(pe===Mu||Za(pe.prototype))||Ot(pe)&&(pe=pe[Ks])===null)&&(pe=void 0)),pe===void 0?Mu:pe})(v))(R===0?0:R)},Ll=Ge([].push),Wa=function(v){var R=v==1,G=v==2,pe=v==3,he=v==4,Ue=v==6,Xe=v==7,Ne=v==5||Ue;return function(ut,Tt,mt,nr){for(var rr,pn,ei=br(ut),ur=At(ei),Rn=Oo(Tt,mt),Sr=Xi(ur),ir=0,Yn=nr||Ol,$o=R?Yn(ut,Sr):G||Xe?Yn(ut,0):void 0;Sr>ir;ir++)if((Ne||ir in ur)&&(pn=Rn(rr=ur[ir],ir,ei),v))if(R)$o[ir]=pn;else if(pn)switch(v){case 3:return!0;case 5:return rr;case 6:return ir;case 2:Ll($o,rr)}else switch(v){case 4:return!1;case 7:Ll($o,rr)}return Ue?-1:pe||he?he:$o}},$u={forEach:Wa(0),map:Wa(1),filter:Wa(2),some:Wa(3),every:Wa(4),find:Wa(5),findIndex:Wa(6),filterReject:Wa(7)},Xs=Ua.getWeakData,js=Gi.set,xu=Gi.getterFor,rl=$u.find,il=$u.findIndex,ts=Ge([].splice),zu=0,ns=function(v){return v.frozen||(v.frozen=new Du)},Du=function(){this.entries=[]},Es=function(v,R){return rl(v.entries,(function(G){return G[0]===R}))};Du.prototype={get:function(v){var R=Es(this,v);if(R)return R[1]},has:function(v){return!!Es(this,v)},set:function(v,R){var G=Es(this,v);G?G[1]=R:this.entries.push([v,R])},delete:function(v){var R=il(this.entries,(function(G){return G[0]===v}));return~R&&ts(this.entries,R,1),!!~R}};var su,ws={getConstructor:function(v,R,G,pe){var he=v((function(ut,Tt){Lu(ut,Ue),js(ut,{type:R,id:zu++,frozen:void 0}),Tt!=null&&xa(Tt,ut[pe],{that:ut,AS_ENTRIES:G})})),Ue=he.prototype,Xe=xu(R),Ne=function(ut,Tt,mt){var nr=Xe(ut),rr=Xs(Vt(Tt),!0);return rr===!0?ns(nr).set(Tt,mt):rr[nr.id]=mt,ut};return fn(Ue,{delete:function(ut){var Tt=Xe(this);if(!Ot(ut))return!1;var mt=Xs(ut);return mt===!0?ns(Tt).delete(ut):mt&&fr(mt,Tt.id)&&delete mt[Tt.id]},has:function(ut){var Tt=Xe(this);if(!Ot(ut))return!1;var mt=Xs(ut);return mt===!0?ns(Tt).has(ut):mt&&fr(mt,Tt.id)}}),fn(Ue,G?{get:function(ut){var Tt=Xe(this);if(Ot(ut)){var mt=Xs(ut);return mt===!0?ns(Tt).get(ut):mt?mt[Tt.id]:void 0}},set:function(ut,Tt){return Ne(this,ut,Tt)}}:{add:function(ut){return Ne(this,ut,!0)}}),he}},xs=Gi.enforce,Ml=!S.ActiveXObject&&"ActiveXObject"in S,$l=function(v){return function(){return v(this,arguments.length?arguments[0]:void 0)}},ol=(function(v,R,G){var pe=v.indexOf("Map")!==-1,he=v.indexOf("Weak")!==-1,Ue=pe?"set":"add",Xe=S[v],Ne=Xe&&Xe.prototype,ut=Xe,Tt={},mt=function(Rn){var Sr=Ge(Ne[Rn]);Ei(Ne,Rn,Rn=="add"?function(ir){return Sr(this,ir===0?0:ir),this}:Rn=="delete"?function(ir){return!(he&&!Ot(ir))&&Sr(this,ir===0?0:ir)}:Rn=="get"?function(ir){return he&&!Ot(ir)?void 0:Sr(this,ir===0?0:ir)}:Rn=="has"?function(ir){return!(he&&!Ot(ir))&&Sr(this,ir===0?0:ir)}:function(ir,Yn){return Sr(this,ir===0?0:ir,Yn),this})};if(Ma(v,!hn(Xe)||!(he||Ne.forEach&&!B((function(){new Xe().entries().next()})))))ut=G.getConstructor(R,v,pe,Ue),Ua.enable();else if(Ma(v,!0)){var nr=new ut,rr=nr[Ue](he?{}:-0,1)!=nr,pn=B((function(){nr.has(1)})),ei=es((function(Rn){new Xe(Rn)})),ur=!he&&B((function(){for(var Rn=new Xe,Sr=5;Sr--;)Rn[Ue](Sr,Sr);return!Rn.has(-0)}));ei||((ut=R((function(Rn,Sr){Lu(Rn,Ne);var ir=(function(Yn,$o,Cu){var _t,hl;return ue&&hn(_t=$o.constructor)&&_t!==Cu&&Ot(hl=_t.prototype)&&hl!==Cu.prototype&&ue(Yn,hl),Yn})(new Xe,Rn,ut);return Sr!=null&&xa(Sr,ir[Ue],{that:ir,AS_ENTRIES:pe}),ir}))).prototype=Ne,Ne.constructor=ut),(pn||ur)&&(mt("delete"),mt("has"),pe&&mt("get")),(ur||rr)&&mt(Ue),he&&Ne.clear&&delete Ne.clear}return Tt[v]=ut,Wr({global:!0,forced:ut!=Xe},Tt),uu(ut,v),he||G.setStrong(ut,v,pe),ut})("WeakMap",$l,ws);if(bi&&Ml){su=ws.getConstructor($l,"WeakMap",!0),Ua.enable();var Hu=ol.prototype,F=Ge(Hu.delete),H=Ge(Hu.has),se=Ge(Hu.get),Ke=Ge(Hu.set);fn(Hu,{delete:function(v){if(Ot(v)&&!oo(v)){var R=xs(this);return R.frozen||(R.frozen=new su),F(this,v)||R.frozen.delete(v)}return F(this,v)},has:function(v){if(Ot(v)&&!oo(v)){var R=xs(this);return R.frozen||(R.frozen=new su),H(this,v)||R.frozen.has(v)}return H(this,v)},get:function(v){if(Ot(v)&&!oo(v)){var R=xs(this);return R.frozen||(R.frozen=new su),H(this,v)?se(this,v):R.frozen.get(v)}return se(this,v)},set:function(v,R){if(Ot(v)&&!oo(v)){var G=xs(this);G.frozen||(G.frozen=new su),H(this,v)?Ke(this,v,R):G.frozen.set(v,R)}else Ke(this,v,R);return this}})}var Oe={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},We=ui("span").classList,dt=We&&We.constructor&&We.constructor.prototype,et=dt===Object.prototype?void 0:dt,rt=we("iterator"),Ft=we("toStringTag"),It=nt.values,Zt=function(v,R){if(v){if(v[rt]!==It)try{ln(v,rt,It)}catch(pe){v[rt]=It}if(v[Ft]||ln(v,Ft,R),Oe[R]){for(var G in nt)if(v[G]!==nt[G])try{ln(v,G,nt[G])}catch(pe){v[G]=nt[G]}}}};for(var sn in Oe)Zt(S[sn]&&S[sn].prototype,sn);Zt(et,"DOMTokenList");var Jt=function(v,R){var G=[][v];return!!G&&B((function(){G.call(null,R||function(){throw 1},1)}))},gr=$u.forEach,pr=Jt("forEach")?[].forEach:function(v){return gr(this,v,arguments.length>1?arguments[1]:void 0)},Lr=function(v){if(v&&v.forEach!==pr)try{ln(v,"forEach",pr)}catch(R){v.forEach=pr}};for(var vi in Oe)Oe[vi]&&Lr(S[vi]&&S[vi].prototype);Lr(et);var Gr,Qi,ea,Mo,To=S.Promise,Ra=we("species"),rs=/(?:ipad|iphone|ipod).*applewebkit/i.test(xe),is=tn(S.process)=="process",os=S.setImmediate,Ls=S.clearImmediate,al=S.process,ul=S.Dispatch,C=S.Function,V=S.MessageChannel,ge=S.String,je=0,Le={},st="onreadystatechange";try{Gr=S.location}catch(v){}var Et=function(v){if(fr(Le,v)){var R=Le[v];delete Le[v],R()}},Ze=function(v){return function(){Et(v)}},it=function(v){Et(v.data)},Nt=function(v){S.postMessage(ge(v),Gr.protocol+"//"+Gr.host)};os&&Ls||(os=function(v){var R=An(arguments,1);return Le[++je]=function(){cs(hn(v)?v:C(v),void 0,R)},Qi(je),je},Ls=function(v){delete Le[v]},is?Qi=function(v){al.nextTick(Ze(v))}:ul&&ul.now?Qi=function(v){ul.now(Ze(v))}:V&&!rs?(Mo=(ea=new V).port2,ea.port1.onmessage=it,Qi=Oo(Mo.postMessage,Mo)):S.addEventListener&&hn(S.postMessage)&&!S.importScripts&&Gr&&Gr.protocol!=="file:"&&!B(Nt)?(Qi=Nt,S.addEventListener("message",it,!1)):Qi=st in ui("script")?function(v){io.appendChild(ui("script")).onreadystatechange=function(){io.removeChild(this),Et(v)}}:function(v){setTimeout(Ze(v),0)});var ft,vn,dn,nn,Br,ar,Fn,Mn,mn={set:os,clear:Ls},zr=/ipad|iphone|ipod/i.test(xe)&&S.Pebble!==void 0,ki=/web0s(?!.*chrome)/i.test(xe),_i=xt.f,ao=mn.set,eo=S.MutationObserver||S.WebKitMutationObserver,qa=S.document,Da=S.process,as=S.Promise,Ms=_i(S,"queueMicrotask"),sl=Ms&&Ms.value;sl||(ft=function(){var v,R;for(is&&(v=Da.domain)&&v.exit();vn;){R=vn.fn,vn=vn.next;try{R()}catch(G){throw vn?nn():dn=void 0,G}}dn=void 0,v&&v.enter()},rs||is||ki||!eo||!qa?!zr&&as&&as.resolve?((Fn=as.resolve(void 0)).constructor=as,Mn=Oo(Fn.then,Fn),nn=function(){Mn(ft)}):is?nn=function(){Da.nextTick(ft)}:(ao=Oo(ao,S),nn=function(){ao(ft)}):(Br=!0,ar=qa.createTextNode(""),new eo(ft).observe(ar,{characterData:!0}),nn=function(){ar.data=Br=!Br}));var ll,vf,ic,oc,zl=sl||function(v){var R={fn:v,next:void 0};dn&&(dn.next=R),vn||(vn=R,nn()),dn=R},xd=function(v){var R,G;this.promise=new v((function(pe,he){if(R!==void 0||G!==void 0)throw TypeError("Bad Promise constructor");R=pe,G=he})),this.resolve=er(R),this.reject=er(G)},Ys={f:function(v){return new xd(v)}},Hl=function(v){try{return{error:!1,value:v()}}catch(R){return{error:!0,value:R}}},Tc=typeof window=="object",Zs=mn.set,Tl=we("species"),Uu="Promise",Bl=Gi.getterFor(Uu),Vf=Gi.set,Dd=Gi.getterFor(Uu),cl=To&&To.prototype,Ga=To,Ul=cl,ac=S.TypeError,Ds=S.document,Bc=S.process,$s=Ys.f,Wf=$s,qf=!!(Ds&&Ds.createEvent&&S.dispatchEvent),mf=hn(S.PromiseRejectionEvent),Vl="unhandledrejection",yf=!1,zs=Ma(Uu,(function(){var v=Er(Ga),R=v!==String(Ga);if(!R&&Gt===66)return!0;if(Gt>=51&&/native code/.test(v))return!1;var G=new Ga((function(he){he(1)})),pe=function(he){he((function(){}),(function(){}))};return(G.constructor={})[Tl]=pe,!(yf=G.then((function(){}))instanceof pe)||!R&&Tc&&!mf})),Fc=zs||!es((function(v){Ga.all(v).catch((function(){}))})),uc=function(v){var R;return!(!Ot(v)||!hn(R=v.then))&&R},Wl=function(v,R){if(!v.notified){v.notified=!0;var G=v.reactions;zl((function(){for(var pe=v.value,he=v.state==1,Ue=0;G.length>Ue;){var Xe,Ne,ut,Tt=G[Ue++],mt=he?Tt.ok:Tt.fail,nr=Tt.resolve,rr=Tt.reject,pn=Tt.domain;try{mt?(he||(v.rejection===2&&sc(v),v.rejection=1),mt===!0?Xe=pe:(pn&&pn.enter(),Xe=mt(pe),pn&&(pn.exit(),ut=!0)),Xe===Tt.promise?rr(ac("Promise-chain cycle")):(Ne=uc(Xe))?te(Ne,Xe,nr,rr):nr(Xe)):rr(pe)}catch(ei){pn&&!ut&&pn.exit(),rr(ei)}}v.reactions=[],v.notified=!1,R&&!v.rejection&&Ss(v)}))}},fl=function(v,R,G){var pe,he;qf?((pe=Ds.createEvent("Event")).promise=R,pe.reason=G,pe.initEvent(v,!1,!0),S.dispatchEvent(pe)):pe={promise:R,reason:G},!mf&&(he=S["on"+v])?he(pe):v===Vl&&(function(Ue,Xe){var Ne=S.console;Ne&&Ne.error&&(arguments.length==1?Ne.error(Ue):Ne.error(Ue,Xe))})("Unhandled promise rejection",G)},Ss=function(v){te(Zs,S,(function(){var R,G=v.facade,pe=v.value;if(Su(v)&&(R=Hl((function(){is?Bc.emit("unhandledRejection",pe,G):fl(Vl,G,pe)})),v.rejection=is||Su(v)?2:1,R.error))throw R.value}))},Su=function(v){return v.rejection!==1&&!v.parent},sc=function(v){te(Zs,S,(function(){var R=v.facade;is?Bc.emit("rejectionHandled",R):fl("rejectionhandled",R,v.value)}))},Cs=function(v,R,G){return function(pe){v(R,pe,G)}},us=function(v,R,G){v.done||(v.done=!0,G&&(v=G),v.value=R,v.state=2,Wl(v,!0))},lc=function(v,R,G){if(!v.done){v.done=!0,G&&(v=G);try{if(v.facade===R)throw ac("Promise can't be resolved itself");var pe=uc(R);pe?zl((function(){var he={done:!1};try{te(pe,R,Cs(lc,he,v),Cs(us,he,v))}catch(Ue){us(he,Ue,v)}})):(v.value=R,v.state=1,Wl(v,!1))}catch(he){us({done:!1},he,v)}}};if(zs&&(Ul=(Ga=function(v){Lu(this,Ul),er(v),te(ll,this);var R=Bl(this);try{v(Cs(lc,R),Cs(us,R))}catch(G){us(R,G)}}).prototype,(ll=function(v){Vf(this,{type:Uu,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=fn(Ul,{then:function(v,R){var G=Dd(this),pe=G.reactions,he=$s(Nu(this,Ga));return he.ok=!hn(v)||v,he.fail=hn(R)&&R,he.domain=is?Bc.domain:void 0,G.parent=!0,pe[pe.length]=he,G.state!=0&&Wl(G,!1),he.promise},catch:function(v){return this.then(void 0,v)}}),vf=function(){var v=new ll,R=Bl(v);this.promise=v,this.resolve=Cs(lc,R),this.reject=Cs(us,R)},Ys.f=$s=function(v){return v===Ga||v===ic?new vf(v):Wf(v)},hn(To)&&cl!==Object.prototype)){oc=cl.then,yf||(Ei(cl,"then",(function(v,R){var G=this;return new Ga((function(pe,he){te(oc,G,pe,he)})).then(v,R)}),{unsafe:!0}),Ei(cl,"catch",Ul.catch,{unsafe:!0}));try{delete cl.constructor}catch(v){}ue&&ue(cl,Ul)}Wr({global:!0,wrap:!0,forced:zs},{Promise:Ga}),uu(Ga,Uu,!1),(function(v){var R=be(v),G=Hn.f;W&&R&&!R[Ra]&&G(R,Ra,{configurable:!0,get:function(){return this}})})(Uu),ic=be(Uu),Wr({target:Uu,stat:!0,forced:zs},{reject:function(v){var R=$s(this);return te(R.reject,void 0,v),R.promise}}),Wr({target:Uu,stat:!0,forced:zs},{resolve:function(v){return(function(R,G){if(Vt(R),Ot(G)&&G.constructor===R)return G;var pe=Ys.f(R);return(0,pe.resolve)(G),pe.promise})(this,v)}}),Wr({target:Uu,stat:!0,forced:Fc},{all:function(v){var R=this,G=$s(R),pe=G.resolve,he=G.reject,Ue=Hl((function(){var Xe=er(R.resolve),Ne=[],ut=0,Tt=1;xa(v,(function(mt){var nr=ut++,rr=!1;Tt++,te(Xe,R,mt).then((function(pn){rr||(rr=!0,Ne[nr]=pn,--Tt||pe(Ne))}),he)})),--Tt||pe(Ne)}));return Ue.error&&he(Ue.value),G.promise},race:function(v){var R=this,G=$s(R),pe=G.reject,he=Hl((function(){var Ue=er(R.resolve);xa(v,(function(Xe){te(Ue,R,Xe).then(G.resolve,pe)}))}));return he.error&&pe(he.value),G.promise}});var Pc=Si.PROPER,kc="toString",ql=RegExp.prototype,cc=ql.toString,Nc=Ge(Pi),dl=B((function(){return cc.call({source:"a",flags:"b"})!="/a/b"})),Ic=Pc&&cc.name!=kc;(dl||Ic)&&Ei(RegExp.prototype,kc,(function(){var v=Vt(this),R=li(v.source),G=v.flags;return"/"+R+"/"+li(G===void 0&&de(ql,v)&&!("flags"in ql)?Nc(v):G)}),{unsafe:!0});var Gl=Si.EXISTS,Js=Hn.f,Rc=Function.prototype,pl=Ge(Rc.toString),Hs=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jc=Ge(Hs.exec);W&&!Gl&&Js(Rc,"name",{configurable:!0,get:function(){try{return jc(Hs,pl(this))[1]}catch(v){return""}}});var fc=new WeakMap;function Us(v){return v.getMenuConfig("uploadImage")}function dc(v,R){return ou(this,void 0,void 0,(function(){return bu(this,(function(G){return[2,new Promise((function(pe){var he=new FileReader;he.readAsDataURL(R),he.onload=function(){var Ue=he.result;if(Ue){var Xe=Ue.toString(),Ne=Xe.indexOf("data:image")===0?"":Xe;n.insertImageNode(v,Xe,R.name,Ne),pe("ok")}}}))]}))}))}function Fl(v,R){return ou(this,void 0,void 0,(function(){var G,pe,he,Ue;return bu(this,(function(Xe){switch(Xe.label){case 0:return G=(function(Ne){var ut=fc.get(Ne);if(ut!=null)return ut;var Tt=Us(Ne),mt=Tt.onSuccess,nr=Tt.onProgress,rr=Tt.onFailed,pn=Tt.customInsert,ei=Tt.onError;return ut=t.createUploader(ka(ka({},Tt),{onProgress:function(ur){Ne.showProgressBar(ur),nr&&nr(ur)},onSuccess:function(ur,Rn){if(pn)return pn(Rn,(function(el,Kl,fo){return n.insertImageNode(Ne,el,Kl,fo)})),void mt(ur,Rn);var Sr=Rn.errno,ir=Sr===void 0?1:Sr,Yn=Rn.data,$o=Yn===void 0?{}:Yn;if(ir===0){if(Array.isArray($o))$o.forEach((function(el){var Kl=el.url,fo=Kl===void 0?"":Kl,h=el.alt,N=h===void 0?"":h,M=el.href,J=M===void 0?"":M;n.insertImageNode(Ne,fo,N,J)}));else{var Cu=$o.url,_t=Cu===void 0?"":Cu,hl=$o.alt,bf=hl===void 0?"":hl,Pl=$o.href,Ef=Pl===void 0?"":Pl;n.insertImageNode(Ne,_t,bf,Ef)}mt(ur,Rn)}else rr(ur,Rn)},onError:function(ur,Rn,Sr){ei(ur,Rn,Sr)}})),fc.set(Ne,ut),ut})(v),pe=R.name,he=R.type,Ue=R.size,G.addFile({name:pe,type:he,size:Ue,data:R}),[4,G.upload()];case 1:return Xe.sent(),[2]}}))}))}function Lc(v,R){var G,pe;return ou(this,void 0,void 0,(function(){var he,Ue,Xe,Ne,ut,Tt,mt,nr,rr;return bu(this,(function(pn){switch(pn.label){case 0:if(R==null)return[2];he=Array.prototype.slice.call(R),Ue=Us(v),Xe=Ue.customUpload,Ne=Ue.base64LimitSize,pn.label=1;case 1:pn.trys.push([1,11,12,17]),ut=Ru(he),pn.label=2;case 2:return[4,ut.next()];case 3:return(Tt=pn.sent()).done?[3,10]:(mt=Tt.value,nr=mt.size,Ne&&nr<=Ne?[4,dc(v,mt)]:[3,5]);case 4:return pn.sent(),[3,9];case 5:return Xe?[4,Xe(mt,(function(ei,ur,Rn){return n.insertImageNode(v,ei,ur,Rn)}))]:[3,7];case 6:return pn.sent(),[3,9];case 7:return[4,Fl(v,mt)];case 8:pn.sent(),pn.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return rr=pn.sent(),G={error:rr},[3,17];case 12:return pn.trys.push([12,,15,16]),Tt&&!Tt.done&&(pe=ut.return)?[4,pe.call(ut)]:[3,14];case 13:pn.sent(),pn.label=14;case 14:return[3,16];case 15:if(G)throw G.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Qs=Ge([].join),Mc=At!=Object,$c=Jt("join",",");Wr({target:"Array",proto:!0,forced:Mc||!$c},{join:function(v){return Qs(Dt(this),v===void 0?",":v)}}),c.append&&(m.default.fn.append=c.append),c.on&&(m.default.fn.on=c.on),c.remove&&(m.default.fn.remove=c.remove),c.val&&(m.default.fn.val=c.val),c.click&&(m.default.fn.click=c.click),c.hide&&(m.default.fn.hide=c.hide);var zc=(function(){function v(){this.title=t.t("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 v.prototype.getValue=function(R){return""},v.prototype.isActive=function(R){return!1},v.prototype.isDisabled=function(R){return n.isInsertImageMenuDisabled(R)},v.prototype.getMenuConfig=function(R){return R.getMenuConfig("uploadImage")},v.prototype.exec=function(R,G){var pe=this.getMenuConfig(R),he=pe.allowedFileTypes,Ue=he===void 0?[]:he,Xe=pe.customBrowseAndUpload;if(Xe)Xe((function(mt,nr,rr){return n.insertImageNode(R,mt,nr,rr)}));else{var Ne="";Ue.length>0&&(Ne='accept="'+Ue.join(", ")+'"');var ut=m.default("body"),Tt=m.default('<input type="file" '+Ne+" multiple/>");Tt.hide(),ut.append(Tt),Tt.click(),Tt.on("change",(function(){var mt=Tt[0].files;Lc(R,mt)}))}},v})(),Sd={menus:[{key:"uploadImage",factory:function(){return new zc},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(v){return v},onProgress:function(v){},onSuccess:function(v,R){},onFailed:function(v,R){console.error("'"+v.name+"' upload failed",R)},onError:function(v,R,G){console.error("'"+v.name+"' upload error",G)},base64LimitSize:0}}],editorPlugin:function(v){var R=v.insertData,G=v;return G.insertData=function(pe){if(n.isInsertImageMenuDisabled(G))R(pe);else if(pe.getData("text/plain"))R(pe);else{var he=pe.files;he.length<=0?R(pe):Array.prototype.slice.call(he).some((function(Ue){return(function(Xe,Ne){var ut=typeof Symbol=="function"&&Xe[Symbol.iterator];if(!ut)return Xe;var Tt,mt,nr=ut.call(Xe),rr=[];try{for(;(Ne===void 0||Ne-- >0)&&!(Tt=nr.next()).done;)rr.push(Tt.value)}catch(pn){mt={error:pn}}finally{try{Tt&&!Tt.done&&(ut=nr.return)&&ut.call(nr)}finally{if(mt)throw mt.error}}return rr})(Ue.type.split("/"),1)[0]==="image"}))?Lc(v,he):R(pe)}},G}};return Sd}))}),jv=xl(function(r,e){(function(t,n){n(e,qi,Ed,rp)})(Ur,(function(t,n,c,f){function m(T){return T&&typeof T=="object"&&"default"in T?T:{default:T}}var P=m(c);n.i18nAddResources("en",{highLightModule:{selectLang:"Language"}}),n.i18nAddResources("zh-CN",{highLightModule:{selectLang:"选择语言"}});var _=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Ur!="undefined"?Ur:typeof self!="undefined"?self:{};function x(T){var z={exports:{}};return T(z,z.exports),z.exports}var O,k,S=function(T){return T&&T.Math==Math&&T},B=S(typeof globalThis=="object"&&globalThis)||S(typeof window=="object"&&window)||S(typeof self=="object"&&self)||S(typeof _=="object"&&_)||(function(){return this})()||Function("return this")(),W=Object.defineProperty,re=function(T,z){try{W(B,T,{value:z,configurable:!0,writable:!0})}catch(ue){B[T]=z}return z},te="__core-js_shared__",me=B[te]||re(te,{}),ne=x((function(T){(T.exports=function(z,ue){return me[z]||(me[z]=ue!==void 0?ue:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=Function.prototype,q=X.bind,Ee=X.call,ye=q&&q.bind(Ee),Qe=q?function(T){return T&&ye(Ee,T)}:function(T){return T&&function(){return Ee.apply(T,arguments)}},qe=B.TypeError,Ge=function(T){if(T==null)throw qe("Can't call method on "+T);return T},zt=B.Object,qt=function(T){return zt(Ge(T))},tn=Qe({}.hasOwnProperty),an=Object.hasOwn||function(T,z){return tn(qt(T),z)},kn=0,At=Math.random(),Wn=Qe(1 .toString),Ae=function(T){return"Symbol("+(T===void 0?"":T)+")_"+Wn(++kn+At,36)},Dt=function(T){return typeof T=="function"},hn=function(T){return Dt(T)?T:void 0},Ot=function(T,z){return arguments.length<2?hn(B[T]):B[T]&&B[T][z]},Sn=Ot("navigator","userAgent")||"",be=B.process,de=B.Deno,xe=be&&be.versions||de&&de.version,Ie=xe&&xe.v8;Ie&&(k=(O=Ie.split("."))[0]>0&&O[0]<4?1:+(O[0]+O[1])),!k&&Sn&&(!(O=Sn.match(/Edge\/(\d+)/))||O[1]>=74)&&(O=Sn.match(/Chrome\/(\d+)/))&&(k=+O[1]);var Ye=k,oe=function(T){try{return!!T()}catch(z){return!0}},ht=!!Object.getOwnPropertySymbols&&!oe((function(){var T=Symbol();return!String(T)||!(Object(T)instanceof Symbol)||!Symbol.sham&&Ye&&Ye<41})),Gt=ht&&!Symbol.sham&&typeof Symbol.iterator=="symbol",xn=ne("wks"),bn=B.Symbol,at=bn&&bn.for,un=Gt?bn:bn&&bn.withoutSetter||Ae,Cn=function(T){if(!an(xn,T)||!ht&&typeof xn[T]!="string"){var z="Symbol."+T;ht&&an(bn,T)?xn[T]=bn[T]:xn[T]=Gt&&at?at(z):un(z)}return xn[T]},Xt={};Xt[Cn("toStringTag")]="z";var Bn=String(Xt)==="[object z]",er=!oe((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),$t=function(T){return typeof T=="object"?T!==null:Dt(T)},zn=B.document,Pr=$t(zn)&&$t(zn.createElement),Mr=function(T){return Pr?zn.createElement(T):{}},qn=!er&&!oe((function(){return Object.defineProperty(Mr("div"),"a",{get:function(){return 7}}).a!=7})),Nn=B.String,Nr=B.TypeError,jn=function(T){if($t(T))return T;throw Nr(Nn(T)+" is not an object")},br=Function.prototype.call,Ut=br.bind?br.bind(br):function(){return br.apply(br,arguments)},fr=Qe({}.isPrototypeOf),fi=B.Object,Vr=Gt?function(T){return typeof T=="symbol"}:function(T){var z=Ot("Symbol");return Dt(z)&&fr(z.prototype,fi(T))},Jr=B.String,Ir=function(T){try{return Jr(T)}catch(z){return"Object"}},Tr=B.TypeError,ve=function(T){if(Dt(T))return T;throw Tr(Ir(T)+" is not a function")},Ve=function(T,z){var ue=T[z];return ue==null?void 0:ve(ue)},Ce=B.TypeError,we=B.TypeError,gt=Cn("toPrimitive"),jt=function(T,z){if(!$t(T)||Vr(T))return T;var ue,Me=Ve(T,gt);if(Me){if(z===void 0&&(z="default"),ue=Ut(Me,T,z),!$t(ue)||Vr(ue))return ue;throw we("Can't convert object to primitive value")}return z===void 0&&(z="number"),(function(Fe,ot){var Te,ct;if(ot==="string"&&Dt(Te=Fe.toString)&&!$t(ct=Ut(Te,Fe))||Dt(Te=Fe.valueOf)&&!$t(ct=Ut(Te,Fe))||ot!=="string"&&Dt(Te=Fe.toString)&&!$t(ct=Ut(Te,Fe)))return ct;throw Ce("Can't convert object to primitive value")})(T,z)},Mt=function(T){var z=jt(T,"string");return Vr(z)?z:z+""},Ln=B.TypeError,Dr=Object.defineProperty,Ar={f:er?Dr:function(T,z,ue){if(jn(T),z=Mt(z),jn(ue),qn)try{return Dr(T,z,ue)}catch(Me){}if("get"in ue||"set"in ue)throw Ln("Accessors not supported");return"value"in ue&&(T[z]=ue.value),T}},ui=function(T,z){return{enumerable:!(1&T),configurable:!(2&T),writable:!(4&T),value:z}},Kt=er?function(T,z,ue){return Ar.f(T,z,ui(1,ue))}:function(T,z,ue){return T[z]=ue,T},Pt=Qe(Function.toString);Dt(me.inspectSource)||(me.inspectSource=function(T){return Pt(T)});var xt,Yt,gn,Vt=me.inspectSource,Xn=B.WeakMap,Gn=Dt(Xn)&&/native code/.test(Vt(Xn)),Hn=ne("keys"),ln=function(T){return Hn[T]||(Hn[T]=Ae(T))},lr={},cn="Object already initialized",Rr=B.TypeError,mr=B.WeakMap;if(Gn||me.state){var Er=me.state||(me.state=new mr),yi=Qe(Er.get),bi=Qe(Er.has),_r=Qe(Er.set);xt=function(T,z){if(bi(Er,T))throw new Rr(cn);return z.facade=T,_r(Er,T,z),z},Yt=function(T){return yi(Er,T)||{}},gn=function(T){return bi(Er,T)}}else{var Hr=ln("state");lr[Hr]=!0,xt=function(T,z){if(an(T,Hr))throw new Rr(cn);return z.facade=T,Kt(T,Hr,z),z},Yt=function(T){return an(T,Hr)?T[Hr]:{}},gn=function(T){return an(T,Hr)}}var Ui={set:xt,get:Yt,has:gn,enforce:function(T){return gn(T)?Yt(T):xt(T,{})},getterFor:function(T){return function(z){var ue;if(!$t(z)||(ue=Yt(z)).type!==T)throw Rr("Incompatible receiver, "+T+" required");return ue}}},ri=Function.prototype,mo=er&&Object.getOwnPropertyDescriptor,Qr=an(ri,"name"),ii={EXISTS:Qr,PROPER:Qr&&function(){}.name==="something",CONFIGURABLE:Qr&&(!er||er&&mo(ri,"name").configurable)},Co=x((function(T){var z=ii.CONFIGURABLE,ue=Ui.get,Me=Ui.enforce,Fe=String(String).split("String");(T.exports=function(ot,Te,ct,vt){var Lt,kt=!!vt&&!!vt.unsafe,Wt=!!vt&&!!vt.enumerable,Kn=!!vt&&!!vt.noTargetGet,rn=vt&&vt.name!==void 0?vt.name:Te;Dt(ct)&&(String(rn).slice(0,7)==="Symbol("&&(rn="["+String(rn).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!an(ct,"name")||z&&ct.name!==rn)&&Kt(ct,"name",rn),(Lt=Me(ct)).source||(Lt.source=Fe.join(typeof rn=="string"?rn:""))),ot!==B?(kt?!Kn&&ot[Te]&&(Wt=!0):delete ot[Te],Wt?ot[Te]=ct:Kt(ot,Te,ct)):Wt?ot[Te]=ct:re(Te,ct)})(Function.prototype,"toString",(function(){return Dt(this)&&ue(this).source||Vt(this)}))})),zo=Qe({}.toString),Ca=Qe("".slice),Di=function(T){return Ca(zo(T),8,-1)},Gi=Cn("toStringTag"),no=B.Object,Ho=Di((function(){return arguments})())=="Arguments",Ki=Bn?Di:function(T){var z,ue,Me;return T===void 0?"Undefined":T===null?"Null":typeof(ue=(function(Fe,ot){try{return Fe[ot]}catch(Te){}})(z=no(T),Gi))=="string"?ue:Ho?Di(z):(Me=Di(z))=="Object"&&Dt(z.callee)?"Arguments":Me},Si=Bn?{}.toString:function(){return"[object "+Ki(this)+"]"};Bn||Co(Object.prototype,"toString",Si,{unsafe:!0});var Ei,uo,yo={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},wi=Mr("span").classList,Uo=wi&&wi.constructor&&wi.constructor.prototype,bo=Uo===Object.prototype?void 0:Uo,jr=Qe(Qe.bind),so=B.Object,Ci=Qe("".split),Xi=oe((function(){return!so("z").propertyIsEnumerable(0)}))?function(T){return Di(T)=="String"?Ci(T,""):so(T)}:so,Po=Math.ceil,di=Math.floor,po=function(T){var z=+T;return z!=z||z===0?0:(z>0?di:Po)(z)},du=Math.min,Ti=function(T){return T>0?du(po(T),9007199254740991):0},Yi=function(T){return Ti(T.length)},Aa=Array.isArray||function(T){return Di(T)=="Array"},ko=function(){},Eo=[],Zi=Ot("Reflect","construct"),Ai=/^\s*(?:class|function)\b/,No=Qe(Ai.exec),oa=!Ai.exec(ko),si=function(T){if(!Dt(T))return!1;try{return Zi(ko,Eo,T),!0}catch(z){return!1}},_a=!Zi||oe((function(){var T;return si(si.call)||!si(Object)||!si((function(){T=!0}))||T}))?function(T){if(!Dt(T))return!1;switch(Ki(T)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oa||!!No(Ai,Vt(T))}:si,Io=Cn("species"),pu=B.Array,Ma=function(T,z){return new((function(ue){var Me;return Aa(ue)&&(Me=ue.constructor,(_a(Me)&&(Me===pu||Aa(Me.prototype))||$t(Me)&&(Me=Me[Io])===null)&&(Me=void 0)),Me===void 0?pu:Me})(T))(z===0?0:z)},Ro=Qe([].push),Wr=function(T){var z=T==1,ue=T==2,Me=T==3,Fe=T==4,ot=T==6,Te=T==7,ct=T==5||ot;return function(vt,Lt,kt,Wt){for(var Kn,rn,tr=qt(vt),In=Xi(tr),nt=(function(fn,en){return ve(fn),en===void 0?fn:jr?jr(fn,en):function(){return fn.apply(en,arguments)}})(Lt,kt),$e=Yi(In),bt=0,Ct=Wt||Ma,Bt=z?Ct(vt,$e):ue||Te?Ct(vt,0):void 0;$e>bt;bt++)if((ct||bt in In)&&(rn=nt(Kn=In[bt],bt,tr),T))if(z)Bt[bt]=rn;else if(rn)switch(T){case 3:return!0;case 5:return Kn;case 6:return bt;case 2:Ro(Bt,Kn)}else switch(T){case 4:return!1;case 7:Ro(Bt,Kn)}return ot?-1:Me||Fe?Fe:Bt}},Za={forEach:Wr(0),map:Wr(1),filter:Wr(2),some:Wr(3),every:Wr(4),find:Wr(5),findIndex:Wr(6),filterReject:Wr(7)}.forEach,lo=(uo=[].forEach)&&oe((function(){uo.call(null,Ei||function(){throw 1},1)}))?[].forEach:function(T){return Za(this,T,arguments.length>1?arguments[1]:void 0)},Ao=function(T){if(T&&T.forEach!==lo)try{Kt(T,"forEach",lo)}catch(z){T.forEach=lo}};for(var Bi in yo)yo[Bi]&&Ao(B[Bi]&&B[Bi].prototype);Ao(bo);var jo={}.propertyIsEnumerable,co=Object.getOwnPropertyDescriptor,pa={f:co&&!jo.call({1:2},1)?function(T){var z=co(this,T);return!!z&&z.enumerable}:jo},Vo=function(T){return Xi(Ge(T))},Ii=Object.getOwnPropertyDescriptor,qr={f:er?Ii:function(T,z){if(T=Vo(T),z=Mt(z),qn)try{return Ii(T,z)}catch(ue){}if(an(T,z))return ui(!Ut(pa.f,T,z),T[z])}},ha=Math.max,ho=Math.min,Wo=function(T,z){var ue=po(T);return ue<0?ha(ue+z,0):ho(ue,z)},Oa=function(T){return function(z,ue,Me){var Fe,ot=Vo(z),Te=Yi(ot),ct=Wo(Me,Te);if(T&&ue!=ue){for(;Te>ct;)if((Fe=ot[ct++])!=Fe)return!0}else for(;Te>ct;ct++)if((T||ct in ot)&&ot[ct]===ue)return T||ct||0;return!T&&-1}},b={includes:Oa(!0),indexOf:Oa(!1)}.indexOf,L=Qe([].push),le=function(T,z){var ue,Me=Vo(T),Fe=0,ot=[];for(ue in Me)!an(lr,ue)&&an(Me,ue)&&L(ot,ue);for(;z.length>Fe;)an(Me,ue=z[Fe++])&&(~b(ot,ue)||L(ot,ue));return ot},He=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],An=He.concat("length","prototype"),Dn={f:Object.getOwnPropertyNames||function(T){return le(T,An)}},dr={f:Object.getOwnPropertySymbols},Or=Qe([].concat),Fi=Ot("Reflect","ownKeys")||function(T){var z=Dn.f(jn(T)),ue=dr.f;return ue?Or(z,ue(T)):z},kr=function(T,z){for(var ue=Fi(z),Me=Ar.f,Fe=qr.f,ot=0;ot<ue.length;ot++){var Te=ue[ot];an(T,Te)||Me(T,Te,Fe(z,Te))}},pi=/#|\.prototype\./,Ri=function(T,z){var ue=Pi[li(T)];return ue==Ji||ue!=ji&&(Dt(z)?oe(z):!!z)},li=Ri.normalize=function(T){return String(T).replace(pi,".").toLowerCase()},Pi=Ri.data={},ji=Ri.NATIVE="N",Ji=Ri.POLYFILL="P",xi=Ri,go=qr.f,Ja=function(T,z){var ue,Me,Fe,ot,Te,ct=T.target,vt=T.global,Lt=T.stat;if(ue=vt?B:Lt?B[ct]||re(ct,{}):(B[ct]||{}).prototype)for(Me in z){if(ot=z[Me],Fe=T.noTargetGet?(Te=go(ue,Me))&&Te.value:ue[Me],!xi(vt?Me:ct+(Lt?".":"#")+Me,T.forced)&&Fe!==void 0){if(typeof ot==typeof Fe)continue;kr(ot,Fe)}(T.sham||Fe&&Fe.sham)&&Kt(ot,"sham",!0),Co(ue,Me,ot,T)}},ga=Object.keys||function(T){return le(T,He)},io=Object.assign,hu=Object.defineProperty,Qa=Qe([].concat),Ts=!io||oe((function(){if(er&&io({b:1},io(hu({},"a",{enumerable:!0,get:function(){hu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var T={},z={},ue=Symbol(),Me="abcdefghijklmnopqrst";return T[ue]=7,Me.split("").forEach((function(Fe){z[Fe]=Fe})),io({},T)[ue]!=7||ga(io({},z)).join("")!=Me}))?function(T,z){for(var ue=qt(T),Me=arguments.length,Fe=1,ot=dr.f,Te=pa.f;Me>Fe;)for(var ct,vt=Xi(arguments[Fe++]),Lt=ot?Qa(ga(vt),ot(vt)):ga(vt),kt=Lt.length,Wt=0;kt>Wt;)ct=Lt[Wt++],er&&!Ut(Te,vt,ct)||(ue[ct]=vt[ct]);return ue}:io;Ja({target:"Object",stat:!0,forced:Object.assign!==Ts},{assign:Ts});var hi=x((function(T){var z=(function(ue){var Me=/\blang(?:uage)?-([\w-]+)\b/i,Fe=0,ot={},Te={manual:ue.Prism&&ue.Prism.manual,disableWorkerMessageHandler:ue.Prism&&ue.Prism.disableWorkerMessageHandler,util:{encode:function nt($e){return $e instanceof ct?new ct($e.type,nt($e.content),$e.alias):Array.isArray($e)?$e.map(nt):$e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(nt){return Object.prototype.toString.call(nt).slice(8,-1)},objId:function(nt){return nt.__id||Object.defineProperty(nt,"__id",{value:++Fe}),nt.__id},clone:function nt($e,bt){var Ct,Bt;switch(bt=bt||{},Te.util.type($e)){case"Object":if(Bt=Te.util.objId($e),bt[Bt])return bt[Bt];for(var fn in Ct={},bt[Bt]=Ct,$e)$e.hasOwnProperty(fn)&&(Ct[fn]=nt($e[fn],bt));return Ct;case"Array":return Bt=Te.util.objId($e),bt[Bt]?bt[Bt]:(Ct=[],bt[Bt]=Ct,$e.forEach((function(en,_n){Ct[_n]=nt(en,bt)})),Ct);default:return $e}},getLanguage:function(nt){for(;nt&&!Me.test(nt.className);)nt=nt.parentElement;return nt?(nt.className.match(Me)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(Ct){var nt=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Ct.stack)||[])[1];if(nt){var $e=document.getElementsByTagName("script");for(var bt in $e)if($e[bt].src==nt)return $e[bt]}return null}},isActive:function(nt,$e,bt){for(var Ct="no-"+$e;nt;){var Bt=nt.classList;if(Bt.contains($e))return!0;if(Bt.contains(Ct))return!1;nt=nt.parentElement}return!!bt}},languages:{plain:ot,plaintext:ot,text:ot,txt:ot,extend:function(nt,$e){var bt=Te.util.clone(Te.languages[nt]);for(var Ct in $e)bt[Ct]=$e[Ct];return bt},insertBefore:function(nt,$e,bt,Ct){var Bt=(Ct=Ct||Te.languages)[nt],fn={};for(var en in Bt)if(Bt.hasOwnProperty(en)){if(en==$e)for(var _n in bt)bt.hasOwnProperty(_n)&&(fn[_n]=bt[_n]);bt.hasOwnProperty(en)||(fn[en]=Bt[en])}var gi=Ct[nt];return Ct[nt]=fn,Te.languages.DFS(Te.languages,(function(cr,Vi){Vi===gi&&cr!=nt&&(this[cr]=fn)})),fn},DFS:function nt($e,bt,Ct,Bt){Bt=Bt||{};var fn=Te.util.objId;for(var en in $e)if($e.hasOwnProperty(en)){bt.call($e,en,$e[en],Ct||en);var _n=$e[en],gi=Te.util.type(_n);gi!=="Object"||Bt[fn(_n)]?gi!=="Array"||Bt[fn(_n)]||(Bt[fn(_n)]=!0,nt(_n,bt,en,Bt)):(Bt[fn(_n)]=!0,nt(_n,bt,null,Bt))}}},plugins:{},highlightAll:function(nt,$e){Te.highlightAllUnder(document,nt,$e)},highlightAllUnder:function(nt,$e,bt){var Ct={callback:bt,container:nt,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Te.hooks.run("before-highlightall",Ct),Ct.elements=Array.prototype.slice.apply(Ct.container.querySelectorAll(Ct.selector)),Te.hooks.run("before-all-elements-highlight",Ct);for(var Bt,fn=0;Bt=Ct.elements[fn++];)Te.highlightElement(Bt,$e===!0,Ct.callback)},highlightElement:function(nt,$e,bt){var Ct=Te.util.getLanguage(nt),Bt=Te.languages[Ct];nt.className=nt.className.replace(Me,"").replace(/\s+/g," ")+" language-"+Ct;var fn=nt.parentElement;fn&&fn.nodeName.toLowerCase()==="pre"&&(fn.className=fn.className.replace(Me,"").replace(/\s+/g," ")+" language-"+Ct);var en={element:nt,language:Ct,grammar:Bt,code:nt.textContent};function _n(cr){en.highlightedCode=cr,Te.hooks.run("before-insert",en),en.element.innerHTML=en.highlightedCode,Te.hooks.run("after-highlight",en),Te.hooks.run("complete",en),bt&&bt.call(en.element)}if(Te.hooks.run("before-sanity-check",en),(fn=en.element.parentElement)&&fn.nodeName.toLowerCase()==="pre"&&!fn.hasAttribute("tabindex")&&fn.setAttribute("tabindex","0"),!en.code)return Te.hooks.run("complete",en),void(bt&&bt.call(en.element));if(Te.hooks.run("before-highlight",en),en.grammar)if($e&&ue.Worker){var gi=new Worker(Te.filename);gi.onmessage=function(cr){_n(cr.data)},gi.postMessage(JSON.stringify({language:en.language,code:en.code,immediateClose:!0}))}else _n(Te.highlight(en.code,en.grammar,en.language));else _n(Te.util.encode(en.code))},highlight:function(nt,$e,bt){var Ct={code:nt,grammar:$e,language:bt};return Te.hooks.run("before-tokenize",Ct),Ct.tokens=Te.tokenize(Ct.code,Ct.grammar),Te.hooks.run("after-tokenize",Ct),ct.stringify(Te.util.encode(Ct.tokens),Ct.language)},tokenize:function(nt,$e){var bt=$e.rest;if(bt){for(var Ct in bt)$e[Ct]=bt[Ct];delete $e.rest}var Bt=new kt;return Wt(Bt,Bt.head,nt),Lt(nt,Bt,$e,Bt.head,0),(function(fn){for(var en=[],_n=fn.head.next;_n!==fn.tail;)en.push(_n.value),_n=_n.next;return en})(Bt)},hooks:{all:{},add:function(nt,$e){var bt=Te.hooks.all;bt[nt]=bt[nt]||[],bt[nt].push($e)},run:function(nt,$e){var bt=Te.hooks.all[nt];if(bt&&bt.length)for(var Ct,Bt=0;Ct=bt[Bt++];)Ct($e)}},Token:ct};function ct(nt,$e,bt,Ct){this.type=nt,this.content=$e,this.alias=bt,this.length=0|(Ct||"").length}function vt(nt,$e,bt,Ct){nt.lastIndex=$e;var Bt=nt.exec(bt);if(Bt&&Ct&&Bt[1]){var fn=Bt[1].length;Bt.index+=fn,Bt[0]=Bt[0].slice(fn)}return Bt}function Lt(nt,$e,bt,Ct,Bt,fn){for(var en in bt)if(bt.hasOwnProperty(en)&&bt[en]){var _n=bt[en];_n=Array.isArray(_n)?_n:[_n];for(var gi=0;gi<_n.length;++gi){if(fn&&fn.cause==en+","+gi)return;var cr=_n[gi],Vi=cr.inside,oo=!!cr.lookbehind,Lo=!!cr.greedy,Ua=cr.alias;if(Lo&&!cr.pattern.global){var wr=cr.pattern.toString().match(/[imsuy]*$/)[0];cr.pattern=RegExp(cr.pattern.source,wr+"g")}for(var Oo=cr.pattern||cr,Li=Ct.next,Zo=Bt;Li!==$e.tail&&!(fn&&Zo>=fn.reach);Zo+=Li.value.length,Li=Li.next){var Ia=Li.value;if($e.length>nt.length)return;if(!(Ia instanceof ct)){var Mi,$i=1;if(Lo){if(!(Mi=vt(Oo,Zo,nt,oo)))break;var wa=Mi.index,ci=Mi.index+Mi[0].length,Wi=Zo;for(Wi+=Li.value.length;wa>=Wi;)Wi+=(Li=Li.next).value.length;if(Zo=Wi-=Li.value.length,Li.value instanceof ct)continue;for(var Jo=Li;Jo!==$e.tail&&(Wi<ci||typeof Jo.value=="string");Jo=Jo.next)$i++,Wi+=Jo.value.length;$i--,Ia=nt.slice(Zo,Wi),Mi.index-=Zo}else if(!(Mi=vt(Oo,0,Ia,oo)))continue;wa=Mi.index;var xa=Mi[0],ms=Ia.slice(0,wa),Lu=Ia.slice(wa+xa.length),ys=Zo+Ia.length;fn&&ys>fn.reach&&(fn.reach=ys);var Qo=Li.prev;if(ms&&(Qo=Wt($e,Qo,ms),Zo+=ms.length),Kn($e,Qo,$i),Li=Wt($e,Qo,new ct(en,Vi?Te.tokenize(xa,Vi):xa,Ua,xa)),Lu&&Wt($e,Li,Lu),$i>1){var Va={cause:en+","+gi,reach:ys};Lt(nt,$e,bt,Li.prev,Zo,Va),fn&&Va.reach>fn.reach&&(fn.reach=Va.reach)}}}}}}function kt(){var nt={value:null,prev:null,next:null},$e={value:null,prev:nt,next:null};nt.next=$e,this.head=nt,this.tail=$e,this.length=0}function Wt(nt,$e,bt){var Ct=$e.next,Bt={value:bt,prev:$e,next:Ct};return $e.next=Bt,Ct.prev=Bt,nt.length++,Bt}function Kn(nt,$e,bt){for(var Ct=$e.next,Bt=0;Bt<bt&&Ct!==nt.tail;Bt++)Ct=Ct.next;$e.next=Ct,Ct.prev=$e,nt.length-=Bt}if(ue.Prism=Te,ct.stringify=function nt($e,bt){if(typeof $e=="string")return $e;if(Array.isArray($e)){var Ct="";return $e.forEach((function(gi){Ct+=nt(gi,bt)})),Ct}var Bt={type:$e.type,content:nt($e.content,bt),tag:"span",classes:["token",$e.type],attributes:{},language:bt},fn=$e.alias;fn&&(Array.isArray(fn)?Array.prototype.push.apply(Bt.classes,fn):Bt.classes.push(fn)),Te.hooks.run("wrap",Bt);var en="";for(var _n in Bt.attributes)en+=" "+_n+'="'+(Bt.attributes[_n]||"").replace(/"/g,"&quot;")+'"';return"<"+Bt.tag+' class="'+Bt.classes.join(" ")+'"'+en+">"+Bt.content+"</"+Bt.tag+">"},!ue.document)return ue.addEventListener&&(Te.disableWorkerMessageHandler||ue.addEventListener("message",(function(nt){var $e=JSON.parse(nt.data),bt=$e.language,Ct=$e.code,Bt=$e.immediateClose;ue.postMessage(Te.highlight(Ct,Te.languages[bt],bt)),Bt&&ue.close()}),!1)),Te;var rn=Te.util.currentScript();function tr(){Te.manual||Te.highlightAll()}if(rn&&(Te.filename=rn.src,rn.hasAttribute("data-manual")&&(Te.manual=!0)),!Te.manual){var In=document.readyState;In==="loading"||In==="interactive"&&rn&&rn.defer?document.addEventListener("DOMContentLoaded",tr):window.requestAnimationFrame?window.requestAnimationFrame(tr):window.setTimeout(tr,16)}return Te})(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
*/T.exports&&(T.exports=z),_!==void 0&&(_.Prism=z),z.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]},z.languages.markup.tag.inside["attr-value"].inside.entity=z.languages.markup.entity,z.languages.markup.doctype.inside["internal-subset"].inside=z.languages.markup,z.hooks.add("wrap",(function(ue){ue.type==="entity"&&(ue.attributes.title=ue.content.replace(/&amp;/,"&"))})),Object.defineProperty(z.languages.markup.tag,"addInlined",{value:function(ue,Me){var Fe={};Fe["language-"+Me]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:z.languages[Me]},Fe.cdata=/^<!\[CDATA\[|\]\]>$/i;var ot={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Fe}};ot["language-"+Me]={pattern:/[\s\S]+/,inside:z.languages[Me]};var Te={};Te[ue]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return ue})),"i"),lookbehind:!0,greedy:!0,inside:ot},z.languages.insertBefore("markup","cdata",Te)}}),Object.defineProperty(z.languages.markup.tag,"addAttribute",{value:function(ue,Me){z.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+ue+")"+/\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:[Me,"language-"+Me],inside:z.languages[Me]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),z.languages.html=z.languages.markup,z.languages.mathml=z.languages.markup,z.languages.svg=z.languages.markup,z.languages.xml=z.languages.extend("markup",{}),z.languages.ssml=z.languages.xml,z.languages.atom=z.languages.xml,z.languages.rss=z.languages.xml,(function(ue){var Me=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;ue.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\\((?:"+Me.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Me.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Me.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Me,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:/[(){};:,]/},ue.languages.css.atrule.inside.rest=ue.languages.css;var Fe=ue.languages.markup;Fe&&(Fe.tag.addInlined("style","css"),Fe.tag.addAttribute("style","css"))})(z),z.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:/[{}[\];(),.:]/},z.languages.javascript=z.languages.extend("clike",{"class-name":[z.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}|\?\?=?|\?\.?|[~:]/}),z.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,z.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:z.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:z.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:z.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:z.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:z.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),z.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:z.languages.javascript}},string:/[\s\S]+/}}}),z.languages.markup&&(z.languages.markup.tag.addInlined("script","javascript"),z.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")),z.languages.js=z.languages.javascript,(function(){if(z!==void 0&&typeof document!="undefined"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var ue={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},Me="data-src-status",Fe="loading",ot="loaded",Te='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',ct=/\blang(?:uage)?-([\w-]+)\b/i;z.hooks.add("before-highlightall",(function(kt){kt.selector+=", "+Te})),z.hooks.add("before-sanity-check",(function(kt){var Wt=kt.element;if(Wt.matches(Te)){kt.code="",Wt.setAttribute(Me,Fe);var Kn=Wt.appendChild(document.createElement("CODE"));Kn.textContent="Loading…";var rn=Wt.getAttribute("data-src"),tr=kt.language;if(tr==="none"){var In=(/\.(\w+)$/.exec(rn)||[,"none"])[1];tr=ue[In]||In}Lt(Kn,tr),Lt(Wt,tr);var nt=z.plugins.autoloader;nt&&nt.loadLanguages(tr);var $e=new XMLHttpRequest;$e.open("GET",rn,!0),$e.onreadystatechange=function(){var bt,Ct;$e.readyState==4&&($e.status<400&&$e.responseText?(Wt.setAttribute(Me,ot),Kn.textContent=$e.responseText,z.highlightElement(Kn)):(Wt.setAttribute(Me,"failed"),$e.status>=400?Kn.textContent=(bt=$e.status,Ct=$e.statusText,"✖ Error "+bt+" while fetching file: "+Ct):Kn.textContent="✖ Error: File does not exist or is empty"))},$e.send(null)}})),z.plugins.fileHighlight={highlight:function(kt){for(var Wt,Kn=(kt||document).querySelectorAll(Te),rn=0;Wt=Kn[rn++];)z.highlightElement(Wt)}};var vt=!1;z.fileHighlight=function(){vt||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),vt=!0),z.plugins.fileHighlight.highlight.apply(this,arguments)}}function Lt(kt,Wt){var Kn=kt.className;Kn=Kn.replace(ct," ")+" language-"+Wt,kt.className=Kn.replace(/\s+/g," ").trim()}})()}));(function(T){var z=T.util.clone(T.languages.javascript),ue=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Me=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,Fe=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function ot(vt,Lt){return vt=vt.replace(/<S>/g,(function(){return ue})).replace(/<BRACES>/g,(function(){return Me})).replace(/<SPREAD>/g,(function(){return Fe})),RegExp(vt,Lt)}Fe=ot(Fe).source,T.languages.jsx=T.languages.extend("markup",z),T.languages.jsx.tag.pattern=ot(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),T.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,T.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,T.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,T.languages.jsx.tag.inside.comment=z.comment,T.languages.insertBefore("inside","attr-name",{spread:{pattern:ot(/<SPREAD>/.source),inside:T.languages.jsx}},T.languages.jsx.tag),T.languages.insertBefore("inside","special-attr",{script:{pattern:ot(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:T.languages.jsx},alias:"language-javascript"}},T.languages.jsx.tag);var Te=function(vt){return vt?typeof vt=="string"?vt:typeof vt.content=="string"?vt.content:vt.content.map(Te).join(""):""},ct=function(vt){for(var Lt=[],kt=0;kt<vt.length;kt++){var Wt=vt[kt],Kn=!1;if(typeof Wt!="string"&&(Wt.type==="tag"&&Wt.content[0]&&Wt.content[0].type==="tag"?Wt.content[0].content[0].content==="</"?Lt.length>0&&Lt[Lt.length-1].tagName===Te(Wt.content[0].content[1])&&Lt.pop():Wt.content[Wt.content.length-1].content==="/>"||Lt.push({tagName:Te(Wt.content[0].content[1]),openedBraces:0}):Lt.length>0&&Wt.type==="punctuation"&&Wt.content==="{"?Lt[Lt.length-1].openedBraces++:Lt.length>0&&Lt[Lt.length-1].openedBraces>0&&Wt.type==="punctuation"&&Wt.content==="}"?Lt[Lt.length-1].openedBraces--:Kn=!0),(Kn||typeof Wt=="string")&&Lt.length>0&&Lt[Lt.length-1].openedBraces===0){var rn=Te(Wt);kt<vt.length-1&&(typeof vt[kt+1]=="string"||vt[kt+1].type==="plain-text")&&(rn+=Te(vt[kt+1]),vt.splice(kt+1,1)),kt>0&&(typeof vt[kt-1]=="string"||vt[kt-1].type==="plain-text")&&(rn=Te(vt[kt-1])+rn,vt.splice(kt-1,1),kt--),vt[kt]=new T.Token("plain-text",rn,null,rn)}Wt.content&&typeof Wt.content!="string"&&ct(Wt.content)}};T.hooks.add("after-tokenize",(function(vt){vt.language!=="jsx"&&vt.language!=="tsx"||ct(vt.tokens)}))})(Prism),(function(T){T.languages.typescript=T.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/}),T.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 T.languages.typescript.parameter;var z=T.languages.extend("typescript",{});delete z["class-name"],T.languages.typescript["class-name"].inside=z,T.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:z}}}}),T.languages.ts=T.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(T){T.type==="entity"&&(T.attributes.title=T.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(T,z){var ue={};ue["language-"+z]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[z]},ue.cdata=/^<!\[CDATA\[|\]\]>$/i;var Me={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:ue}};Me["language-"+z]={pattern:/[\s\S]+/,inside:Prism.languages[z]};var Fe={};Fe[T]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return T})),"i"),lookbehind:!0,greedy:!0,inside:Me},Prism.languages.insertBefore("markup","cdata",Fe)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(T,z){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+T+")"+/\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:[z,"language-"+z],inside:Prism.languages[z]},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(T){var z=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,ue=[{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*\()/],Me=/\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,Fe=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,ot=/[{}\[\](),:;]/;T.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:z,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:ue,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Me,operator:Fe,punctuation:ot};var Te={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:T.languages.php},ct=[{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:Te}},{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:Te}}];T.languages.insertBefore("php","variable",{string:ct,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:z,string:ct,"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:ue,number:Me,operator:Fe,punctuation:ot}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),T.hooks.add("before-tokenize",(function(vt){/<\?/.test(vt.code)&&T.languages["markup-templating"].buildPlaceholders(vt,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),T.hooks.add("after-tokenize",(function(vt){T.languages["markup-templating"].tokenizePlaceholders(vt,"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(T){var z=/\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/,ue=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Me={pattern:RegExp(ue+/[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:/\./}};T.languages.java=T.languages.extend("clike",{"class-name":[Me,{pattern:RegExp(ue+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Me.inside}],keyword:z,function:[T.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}}),T.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),T.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":Me,keyword:z,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 z.source}))),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(T){var z=/\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/,ue=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return z.source}));T.languages.cpp=T.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return z.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:z,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/}),T.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 ue}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),T.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:T.languages.cpp}}}}),T.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),T.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:T.languages.extend("cpp",{})}}),T.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},T.languages.cpp["base-clause"])})(Prism),(function(T){function z(ci,Wi){return ci.replace(/<<(\d+)>>/g,(function(Jo,xa){return"(?:"+Wi[+xa]+")"}))}function ue(ci,Wi,Jo){return RegExp(z(ci,Wi),Jo||"")}function Me(ci,Wi){for(var Jo=0;Jo<Wi;Jo++)ci=ci.replace(/<<self>>/g,(function(){return"(?:"+ci+")"}));return ci.replace(/<<self>>/g,"[^\\s\\S]")}var Fe="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",ot="class enum interface record struct",Te="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*{)",ct="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 vt(ci){return"\\b(?:"+ci.trim().replace(/ /g,"|")+")\\b"}var Lt=vt(ot),kt=RegExp(vt(Fe+" "+ot+" "+Te+" "+ct)),Wt=vt(ot+" "+Te+" "+ct),Kn=vt(Fe+" "+ot+" "+ct),rn=Me(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),tr=Me(/\((?:[^()]|<<self>>)*\)/.source,2),In=/@?\b[A-Za-z_]\w*\b/.source,nt=z(/<<0>>(?:\s*<<1>>)?/.source,[In,rn]),$e=z(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Wt,nt]),bt=/\[\s*(?:,\s*)*\]/.source,Ct=z(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[$e,bt]),Bt=z(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[rn,tr,bt]),fn=z(/\(<<0>>+(?:,<<0>>+)+\)/.source,[Bt]),en=z(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[fn,$e,bt]),_n={keyword:kt,punctuation:/[<>()?,.:[\]]/},gi=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,cr=/"(?:\\.|[^\\"\r\n])*"/.source,Vi=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;T.languages.csharp=T.languages.extend("clike",{string:[{pattern:ue(/(^|[^$\\])<<0>>/.source,[Vi]),lookbehind:!0,greedy:!0},{pattern:ue(/(^|[^@$\\])<<0>>/.source,[cr]),lookbehind:!0,greedy:!0},{pattern:RegExp(gi),greedy:!0,alias:"character"}],"class-name":[{pattern:ue(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[$e]),lookbehind:!0,inside:_n},{pattern:ue(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[In,en]),lookbehind:!0,inside:_n},{pattern:ue(/(\busing\s+)<<0>>(?=\s*=)/.source,[In]),lookbehind:!0},{pattern:ue(/(\b<<0>>\s+)<<1>>/.source,[Lt,nt]),lookbehind:!0,inside:_n},{pattern:ue(/(\bcatch\s*\(\s*)<<0>>/.source,[$e]),lookbehind:!0,inside:_n},{pattern:ue(/(\bwhere\s+)<<0>>/.source,[In]),lookbehind:!0},{pattern:ue(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[Ct]),lookbehind:!0,inside:_n},{pattern:ue(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[en,Kn,In]),inside:_n}],keyword:kt,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:/\?\.?|::|[{}[\];(),.:]/}),T.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),T.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:ue(/([(,]\s*)<<0>>(?=\s*:)/.source,[In]),lookbehind:!0,alias:"punctuation"}}),T.languages.insertBefore("csharp","class-name",{namespace:{pattern:ue(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[In]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:ue(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[tr]),lookbehind:!0,alias:"class-name",inside:_n},"return-type":{pattern:ue(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[en,$e]),inside:_n,alias:"class-name"},"constructor-invocation":{pattern:ue(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[en]),lookbehind:!0,inside:_n,alias:"class-name"},"generic-method":{pattern:ue(/<<0>>\s*<<1>>(?=\s*\()/.source,[In,rn]),inside:{function:ue(/^<<0>>/.source,[In]),generic:{pattern:RegExp(rn),alias:"class-name",inside:_n}}},"type-list":{pattern:ue(/\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,[Lt,nt,In,en,kt.source,tr,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:ue(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[nt,tr]),lookbehind:!0,greedy:!0,inside:T.languages.csharp},keyword:kt,"class-name":{pattern:RegExp(en),greedy:!0,inside:_n},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 oo=cr+"|"+gi,Lo=z(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[oo]),Ua=Me(z(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Lo]),2),wr=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Oo=z(/<<0>>(?:\s*\(<<1>>*\))?/.source,[$e,Ua]);T.languages.insertBefore("csharp","class-name",{attribute:{pattern:ue(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[wr,Oo]),lookbehind:!0,greedy:!0,inside:{target:{pattern:ue(/^<<0>>(?=\s*:)/.source,[wr]),alias:"keyword"},"attribute-arguments":{pattern:ue(/\(<<0>>*\)/.source,[Ua]),inside:T.languages.csharp},"class-name":{pattern:RegExp($e),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Li=/:[^}\r\n]+/.source,Zo=Me(z(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Lo]),2),Ia=z(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Zo,Li]),Mi=Me(z(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[oo]),2),$i=z(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Mi,Li]);function wa(ci,Wi){return{interpolation:{pattern:ue(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ci]),lookbehind:!0,inside:{"format-string":{pattern:ue(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Wi,Li]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:T.languages.csharp}}},string:/[\s\S]+/}}T.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:ue(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Ia]),lookbehind:!0,greedy:!0,inside:wa(Ia,Zo)},{pattern:ue(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[$i]),lookbehind:!0,greedy:!0,inside:wa($i,Mi)}]})})(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(T){T.languages.ruby=T.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 z={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:T.languages.ruby}};delete T.languages.ruby.function,T.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:z}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:z}}],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:T.languages.ruby}}}),T.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)/}),T.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:z}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:z}},{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:z}},{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:/^<<[-~]?'|'$/}}}}],T.languages.rb=T.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(T){T.inside.interpolation.inside=Prism.languages.swift})),(function(T){var z="\\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",ue={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Me={bash:ue,environment:{pattern:RegExp("\\$"+z),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("(\\{)"+z),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})/};T.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;|&]|[<>]\\()"+z),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Me},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:ue}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Me},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Me.entity}}],environment:{pattern:RegExp("\\$?"+z),alias:"constant"},variable:Me.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}},ue.inside=T.languages.bash;for(var Fe=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],ot=Me.variable[1].inside,Te=0;Te<Fe.length;Te++)ot[Fe[Te]]=T.languages.bash[Fe[Te]];T.languages.shell=T.languages.bash})(Prism),(function(T){var z=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function ue(Lt){return Lt=Lt.replace(/<inner>/g,(function(){return z})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+Lt+")")}var Me=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,Fe=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return Me})),ot=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;T.languages.markdown=T.languages.extend("markup",{}),T.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:T.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+Fe+ot+"(?:"+Fe+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+Fe+ot+")(?:"+Fe+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Me),inside:T.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+Fe+")"+ot+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+Fe+"$"),inside:{"table-header":{pattern:RegExp(Me),alias:"important",inside:T.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:ue(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:ue(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:ue(/(~~?)(?:(?!~)<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:ue(/!?\[(?:(?!\])<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(Lt){["url","bold","italic","strike","code-snippet"].forEach((function(kt){Lt!==kt&&(T.languages.markdown[Lt].inside.content.inside[kt]=T.languages.markdown[kt])}))})),T.hooks.add("after-tokenize",(function(Lt){Lt.language!=="markdown"&&Lt.language!=="md"||(function kt(Wt){if(Wt&&typeof Wt!="string")for(var Kn=0,rn=Wt.length;Kn<rn;Kn++){var tr=Wt[Kn];if(tr.type==="code"){var In=tr.content[1],nt=tr.content[3];if(In&&nt&&In.type==="code-language"&&nt.type==="code-block"&&typeof In.content=="string"){var $e=In.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),bt="language-"+($e=(/[a-z][\w-]*/i.exec($e)||[""])[0].toLowerCase());nt.alias?typeof nt.alias=="string"?nt.alias=[nt.alias,bt]:nt.alias.push(bt):nt.alias=[bt]}}else kt(tr.content)}})(Lt.tokens)})),T.hooks.add("wrap",(function(Lt){if(Lt.type==="code-block"){for(var kt="",Wt=0,Kn=Lt.classes.length;Wt<Kn;Wt++){var rn=Lt.classes[Wt],tr=/language-(.+)/.exec(rn);if(tr){kt=tr[1];break}}var In=T.languages[kt];if(In)Lt.content=T.highlight((function($e){var bt=$e.replace(Te,"");return bt=bt.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(Ct,Bt){var fn;if((Bt=Bt.toLowerCase())[0]==="#")return fn=Bt[1]==="x"?parseInt(Bt.slice(2),16):Number(Bt.slice(1)),vt(fn);var en=ct[Bt];return en||Ct}))})(Lt.content),In,kt);else if(kt&&kt!=="none"&&T.plugins.autoloader){var nt="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());Lt.attributes.id=nt,T.plugins.autoloader.loadLanguages(kt,(function(){var $e=document.getElementById(nt);$e&&($e.innerHTML=T.highlight($e.textContent,T.languages[kt],kt))}))}}}));var Te=RegExp(T.languages.markup.tag.pattern.source,"gi"),ct={amp:"&",lt:"<",gt:">",quot:'"'},vt=String.fromCodePoint||String.fromCharCode;T.languages.md=T.languages.markdown})(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(T){if(T.language==="groovy"&&T.type==="string"){var z=T.content[0];if(z!="'"){var ue=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;z==="$"&&(ue=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),T.content=T.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),T.content=Prism.highlight(T.content,{expression:{pattern:ue,lookbehind:!0,inside:Prism.languages.groovy}}),T.classes.push(z==="/"?"regex":"gstring")}}}));var va=["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 wo(T){return typeof T=="string"?T.length:typeof T.content=="string"?T.content.length:T.content.reduce((function(z,ue){return z+wo(ue)}),0)}var aa,ua=B.String,_o=function(T){if(Ki(T)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ua(T)},Tu=function(){var T=jn(this),z="";return T.global&&(z+="g"),T.ignoreCase&&(z+="i"),T.multiline&&(z+="m"),T.dotAll&&(z+="s"),T.unicode&&(z+="u"),T.sticky&&(z+="y"),z},Wu=B.RegExp,Bu=oe((function(){var T=Wu("a","y");return T.lastIndex=2,T.exec("abcd")!=null})),Fu=Bu||oe((function(){return!Wu("a","y").sticky})),sa={BROKEN_CARET:Bu||oe((function(){var T=Wu("^r","gy");return T.lastIndex=2,T.exec("str")!=null})),MISSED_STICKY:Fu,UNSUPPORTED_Y:Bu},qo=er?Object.defineProperties:function(T,z){jn(T);for(var ue,Me=Vo(z),Fe=ga(z),ot=Fe.length,Te=0;ot>Te;)Ar.f(T,ue=Fe[Te++],Me[ue]);return T},gu=Ot("document","documentElement"),eu=ln("IE_PROTO"),qu=function(){},tu=function(T){return"<script>"+T+"<\/script>"},Pu=function(T){T.write(tu("")),T.close();var z=T.parentWindow.Object;return T=null,z},$r=function(){try{aa=new ActiveXObject("htmlfile")}catch(Me){}var T,z;$r=typeof document!="undefined"?document.domain&&aa?Pu(aa):((z=Mr("iframe")).style.display="none",gu.appendChild(z),z.src="javascript:",(T=z.contentWindow.document).open(),T.write(tu("document.F=Object")),T.close(),T.F):Pu(aa);for(var ue=He.length;ue--;)delete $r.prototype[He[ue]];return $r()};lr[eu]=!0;var $a,nu,xo=Object.create||function(T,z){var ue;return T!==null?(qu.prototype=jn(T),ue=new qu,qu.prototype=null,ue[eu]=T):ue=$r(),z===void 0?ue:qo(ue,z)},Bs=B.RegExp,Fs=oe((function(){var T=Bs(".","s");return!(T.dotAll&&T.exec(`
`)&&T.flags==="s")})),la=B.RegExp,ru=oe((function(){var T=la("(?<a>b)","g");return T.exec("b").groups.a!=="b"||"b".replace(T,"$<a>c")!=="bc"})),cs=Ui.get,ku=ne("native-string-replace",String.prototype.replace),Ta=RegExp.prototype.exec,Gu=Ta,Go=Qe("".charAt),Ku=Qe("".indexOf),Nu=Qe("".replace),vu=Qe("".slice),mu=(nu=/b*/g,Ut(Ta,$a=/a/,"a"),Ut(Ta,nu,"a"),$a.lastIndex!==0||nu.lastIndex!==0),Iu=sa.BROKEN_CARET,Xr=/()??/.exec("")[1]!==void 0;(mu||Xr||Iu||Fs||ru)&&(Gu=function(T){var z,ue,Me,Fe,ot,Te,ct,vt=this,Lt=cs(vt),kt=_o(T),Wt=Lt.raw;if(Wt)return Wt.lastIndex=vt.lastIndex,z=Ut(Gu,Wt,kt),vt.lastIndex=Wt.lastIndex,z;var Kn=Lt.groups,rn=Iu&&vt.sticky,tr=Ut(Tu,vt),In=vt.source,nt=0,$e=kt;if(rn&&(tr=Nu(tr,"y",""),Ku(tr,"g")===-1&&(tr+="g"),$e=vu(kt,vt.lastIndex),vt.lastIndex>0&&(!vt.multiline||vt.multiline&&Go(kt,vt.lastIndex-1)!==`
`)&&(In="(?: "+In+")",$e=" "+$e,nt++),ue=new RegExp("^(?:"+In+")",tr)),Xr&&(ue=new RegExp("^"+In+"$(?!\\s)",tr)),mu&&(Me=vt.lastIndex),Fe=Ut(Ta,rn?ue:vt,$e),rn?Fe?(Fe.input=vu(Fe.input,nt),Fe[0]=vu(Fe[0],nt),Fe.index=vt.lastIndex,vt.lastIndex+=Fe[0].length):vt.lastIndex=0:mu&&Fe&&(vt.lastIndex=vt.global?Fe.index+Fe[0].length:Me),Xr&&Fe&&Fe.length>1&&Ut(ku,Fe[0],ue,(function(){for(ot=1;ot<arguments.length-2;ot++)arguments[ot]===void 0&&(Fe[ot]=void 0)})),Fe&&Kn)for(Fe.groups=Te=xo(null),ot=0;ot<Kn.length;ot++)Te[(ct=Kn[ot])[0]]=Fe[ct[1]];return Fe});var za=Gu;Ja({target:"RegExp",proto:!0,forced:/./.exec!==za},{exec:za});var ma=Function.prototype,iu=ma.apply,Ba=ma.bind,fs=ma.call,yu=typeof Reflect=="object"&&Reflect.apply||(Ba?fs.bind(iu):function(){return fs.apply(iu,arguments)}),Ps=Cn("species"),Xu=RegExp.prototype,Ko=Cn("match"),Yu=B.TypeError,Zu=Cn("species"),ks=function(T,z){var ue,Me=jn(T).constructor;return Me===void 0||(ue=jn(Me)[Zu])==null?z:(function(Fe){if(_a(Fe))return Fe;throw Yu(Ir(Fe)+" is not a constructor")})(ue)},ds=Qe("".charAt),Fa=Qe("".charCodeAt),ya=Qe("".slice),Pa=function(T){return function(z,ue){var Me,Fe,ot=_o(Ge(z)),Te=po(ue),ct=ot.length;return Te<0||Te>=ct?T?"":void 0:(Me=Fa(ot,Te))<55296||Me>56319||Te+1===ct||(Fe=Fa(ot,Te+1))<56320||Fe>57343?T?ds(ot,Te):Me:T?ya(ot,Te,Te+2):Fe-56320+(Me-55296<<10)+65536}},ka={codeAt:Pa(!1),charAt:Pa(!0)}.charAt,ou=function(T,z,ue){return z+(ue?ka(T,z).length:1)},bu=B.Array,ba=Math.max,Ru=function(T,z,ue){for(var Me,Fe,ot,Te,ct=Yi(T),vt=Wo(z,ct),Lt=Wo(ue===void 0?ct:ue,ct),kt=bu(ba(Lt-vt,0)),Wt=0;vt<Lt;vt++,Wt++)Me=kt,Fe=Wt,ot=T[vt],Te=void 0,(Te=Mt(Fe))in Me?Ar.f(Me,Te,ui(0,ot)):Me[Te]=ot;return kt.length=Wt,kt},Ju=B.TypeError,ju=function(T,z){var ue=T.exec;if(Dt(ue)){var Me=Ut(ue,T,z);return Me!==null&&jn(Me),Me}if(Di(T)==="RegExp")return Ut(za,T,z);throw Ju("RegExp#exec called on incompatible receiver")},Xo=sa.UNSUPPORTED_Y,Ea=4294967295,Ns=Math.min,Ha=[].push,Eu=Qe(/./.exec),Na=Qe(Ha),au=Qe("".slice),ps=!oe((function(){var T=/(?:)/,z=T.exec;T.exec=function(){return z.apply(this,arguments)};var ue="ab".split(T);return ue.length!==2||ue[0]!=="a"||ue[1]!=="b"}));(function(T,z,ue,Me){var Fe=Cn(T),ot=!oe((function(){var Lt={};return Lt[Fe]=function(){return 7},""[T](Lt)!=7})),Te=ot&&!oe((function(){var Lt=!1,kt=/a/;return T==="split"&&((kt={}).constructor={},kt.constructor[Ps]=function(){return kt},kt.flags="",kt[Fe]=/./[Fe]),kt.exec=function(){return Lt=!0,null},kt[Fe](""),!Lt}));if(!ot||!Te||ue){var ct=Qe(/./[Fe]),vt=z(Fe,""[T],(function(Lt,kt,Wt,Kn,rn){var tr=Qe(Lt),In=kt.exec;return In===za||In===Xu.exec?ot&&!rn?{done:!0,value:ct(kt,Wt,Kn)}:{done:!0,value:tr(Wt,kt,Kn)}:{done:!1}}));Co(String.prototype,T,vt[0]),Co(Xu,Fe,vt[1])}Me&&Kt(Xu[Fe],"sham",!0)})("split",(function(T,z,ue){var Me;return Me="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(Fe,ot){var Te,ct,vt=_o(Ge(this)),Lt=ot===void 0?Ea:ot>>>0;if(Lt===0)return[];if(Fe===void 0)return[vt];if(!$t(Te=Fe)||!((ct=Te[Ko])!==void 0?ct:Di(Te)=="RegExp"))return Ut(z,vt,Fe,Lt);for(var kt,Wt,Kn,rn=[],tr=(Fe.ignoreCase?"i":"")+(Fe.multiline?"m":"")+(Fe.unicode?"u":"")+(Fe.sticky?"y":""),In=0,nt=new RegExp(Fe.source,tr+"g");(kt=Ut(za,nt,vt))&&!((Wt=nt.lastIndex)>In&&(Na(rn,au(vt,In,kt.index)),kt.length>1&&kt.index<vt.length&&yu(Ha,rn,Ru(kt,1)),Kn=kt[0].length,In=Wt,rn.length>=Lt));)nt.lastIndex===kt.index&&nt.lastIndex++;return In===vt.length?!Kn&&Eu(nt,"")||Na(rn,""):Na(rn,au(vt,In)),rn.length>Lt?Ru(rn,0,Lt):rn}:"0".split(void 0,0).length?function(Fe,ot){return Fe===void 0&&ot===0?[]:Ut(z,this,Fe,ot)}:z,[function(Fe,ot){var Te=Ge(this),ct=Fe==null?void 0:Ve(Fe,T);return ct?Ut(ct,Fe,Te,ot):Ut(Me,_o(Te),Fe,ot)},function(Fe,ot){var Te=jn(this),ct=_o(Fe),vt=ue(Me,Te,ct,ot,Me!==z);if(vt.done)return vt.value;var Lt=ks(Te,RegExp),kt=Te.unicode,Wt=(Te.ignoreCase?"i":"")+(Te.multiline?"m":"")+(Te.unicode?"u":"")+(Xo?"g":"y"),Kn=new Lt(Xo?"^(?:"+Te.source+")":Te,Wt),rn=ot===void 0?Ea:ot>>>0;if(rn===0)return[];if(ct.length===0)return ju(Kn,ct)===null?[ct]:[];for(var tr=0,In=0,nt=[];In<ct.length;){Kn.lastIndex=Xo?0:In;var $e,bt=ju(Kn,Xo?au(ct,In):ct);if(bt===null||($e=Ns(Ti(Kn.lastIndex+(Xo?In:0)),ct.length))===tr)In=ou(ct,In,kt);else{if(Na(nt,au(ct,tr,In)),nt.length===rn)return nt;for(var Ct=1;Ct<=bt.length-1;Ct++)if(Na(nt,bt[Ct]),nt.length===rn)return nt;In=tr=$e}}return Na(nt,au(ct,tr)),nt}]}),!ps,Xo),Ja({global:!0},{globalThis:B}),c.attr&&(P.default.fn.attr=c.attr);var wu=ii.PROPER,hs="toString",Yo=RegExp.prototype,gs=Yo.toString,vs=Qe(Tu),Qu=oe((function(){return gs.call({source:"a",flags:"b"})!="/a/b"})),ca=wu&&gs.name!=hs;(Qu||ca)&&Co(RegExp.prototype,hs,(function(){var T=jn(this),z=_o(T.source),ue=T.flags;return"/"+z+"/"+_o(ue===void 0&&fr(Yo,T)&&!("flags"in Yo)?vs(T):ue)}),{unsafe:!0});var Is=(function(){function T(){this.title=n.t("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 T.prototype.getOptions=function(z){var ue=[],Me=z.getMenuConfig("codeSelectLang").codeLangs,Fe=Me===void 0?[]:Me;ue.push({text:"plain text",value:""}),Fe.forEach((function(Te){var ct=Te.text,vt=Te.value;ue.push({text:ct,value:vt})}));var ot=this.getValue(z);return ue.forEach((function(Te){Te.value===ot?Te.selected=!0:delete Te.selected})),ue},T.prototype.isActive=function(z){return!1},T.prototype.getValue=function(z){var ue=this.getSelectCodeElem(z);if(ue==null||!f.Element.isElement(ue))return"";var Me=ue.language.toString(),Fe=z.getMenuConfig("codeSelectLang").codeLangs;return(Fe===void 0?[]:Fe).some((function(ot){return ot.value===Me}))?Me:""},T.prototype.isDisabled=function(z){return z.selection==null||!this.getSelectCodeElem(z)},T.prototype.exec=function(z,ue){if(this.getSelectCodeElem(z)!=null){var Me={language:ue.toString()};f.Transforms.setNodes(z,Me,{match:function(Fe){return n.DomEditor.checkNodeType(Fe,"code")}})}},T.prototype.getSelectCodeElem=function(z){var ue=n.DomEditor.getSelectedNodeByType(z,"code");if(ue==null)return null;var Me=n.DomEditor.getParentNode(z,ue);return f.Element.isElement(Me)?Me.type!=="pre"?null:ue:null},T})(),uu={renderStyle:function(T,z){var ue=T,Me=z,Fe="";return va.forEach((function(ot){ue[ot]&&(Fe=ot)})),Fe&&(function(ot,Te){ot.data==null&&(ot.data={});var ct=ot.data;ct.props==null&&(ct.props={}),Object.assign(ct.props,{className:Te})})(Me,Fe="token "+Fe),Me},parseStyleHtml:function(T,z,ue){var Me=P.default(T);if(!f.Element.isElement(z)||n.DomEditor.getNodeType(z)!=="code")return z;var Fe=z,ot=Me.attr("class")||"";return ot.indexOf("language-")===0?Fe.language=ot.split("-")[1]||"":Fe.language=ot.toLowerCase(),Fe},menus:[{key:"codeSelectLang",factory:function(){return new Is},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(T,z){var ue=T.language,Me=ue===void 0?"":ue;return"<code "+(Me?'class="language-'+Me+'"':"")+">"+z+"</code>"}}]},Gs=/"/g,Rs=Qe("".replace);Ja({target:"String",proto:!0,forced:(function(T){return oe((function(){var z=""[T]('"');return z!==z.toLowerCase()||z.split('"').length>3}))})("anchor")},{anchor:function(T){return z="a",ue="name",Me=T,Fe=_o(Ge(this)),ot="<"+z,ue!==""&&(ot+=" "+ue+'="'+Rs(_o(Me),Gs,"&quot;")+'"'),ot+">"+Fe+"</"+z+">";var z,ue,Me,Fe,ot}}),t.wangEditorCodeHighLightDecorate=function(T){var z,ue,Me,Fe=(function($e,bt){var Ct=typeof Symbol=="function"&&$e[Symbol.iterator];if(!Ct)return $e;var Bt,fn,en=Ct.call($e),_n=[];try{for(;(bt===void 0||bt-- >0)&&!(Bt=en.next()).done;)_n.push(Bt.value)}catch(gi){fn={error:gi}}finally{try{Bt&&!Bt.done&&(Ct=en.return)&&Ct.call(en)}finally{if(fn)throw fn.error}}return _n})(T,2),ot=Fe[0],Te=Fe[1],ct=[],vt=(function($e){if(!f.Text.isText($e))return null;var bt=n.DomEditor.getParentNode(null,$e);if(bt&&n.DomEditor.getNodeType(bt)==="code"){var Ct=n.DomEditor.getParentNode(null,bt);if(Ct&&n.DomEditor.getNodeType(Ct)==="pre")return bt}return null})(ot);if(vt==null)return ct;var Lt=vt.language,kt=Lt===void 0?"":Lt;if(!kt)return ct;var Wt=(function($e,bt){if(!bt)return[];var Ct=hi.languages[bt];return Ct?hi.tokenize($e.text,Ct):[]})(ot,kt),Kn=0;try{for(var rn=(function($e){var bt=typeof Symbol=="function"&&Symbol.iterator,Ct=bt&&$e[bt],Bt=0;if(Ct)return Ct.call($e);if($e&&typeof $e.length=="number")return{next:function(){return $e&&Bt>=$e.length&&($e=void 0),{value:$e&&$e[Bt++],done:!$e}}};throw new TypeError(bt?"Object is not iterable.":"Symbol.iterator is not defined.")})(Wt),tr=rn.next();!tr.done;tr=rn.next()){var In=tr.value,nt=Kn+wo(In);typeof In!="string"&&ct.push(((Me={})[In.type]=!0,Me.anchor={path:Te,offset:Kn},Me.focus={path:Te,offset:nt},Me)),Kn=nt}}catch($e){z={error:$e}}finally{try{tr&&!tr.done&&(ue=rn.return)&&ue.call(rn)}finally{if(z)throw z.error}}return ct},t.wangEditorCodeHighlightModule=uu,Object.defineProperty(t,"__esModule",{value:!0})}))});/*! *****************************************************************************
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 Sa=function(){return Sa=Object.assign||function(e){for(var t,n=1,c=arguments.length;n<c;n++){t=arguments[n];for(var f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f])}return e},Sa.apply(this,arguments)},Ou=(function(){function r(){throw new Error(`不能实例化
Can not construct a instance`)}return r.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Sa(Sa({},this.editorConfig),e)},r.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Sa(Sa({},this.simpleEditorConfig),e)},r.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Sa(Sa({},this.toolbarConfig),e)},r.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Sa(Sa({},this.simpleToolbarConfig),e)},r.registerPlugin=function(e){this.plugins.push(e)},r.registerMenu=function(e,t){qi.registerMenu(e,t)},r.registerRenderElem=function(e){qi.registerRenderElemConf(e)},r.registerRenderStyle=function(e){qi.registerStyleHandler(e)},r.registerElemToHtml=function(e){qi.registerElemToHtmlConf(e)},r.registerStyleToHtml=function(e){qi.registerStyleToHtmlHandler(e)},r.registerPreParseHtml=function(e){qi.registerPreParseHtmlConf(e)},r.registerParseElemHtml=function(e){qi.registerParseElemHtmlConf(e)},r.registerParseStyleHtml=function(e){qi.registerParseStyleHtmlHandler(e)},r.registerModule=function(e){wd(e)},r.editorConfig={},r.simpleEditorConfig={},r.toolbarConfig={},r.simpleToolbarConfig={},r.plugins=[],r})();function wd(r){var e=r.menus,t=r.renderElems,n=r.renderStyle,c=r.elemsToHtml,f=r.styleToHtml,m=r.preParseHtml,P=r.parseElemsHtml,_=r.parseStyleHtml,x=r.editorPlugin;e&&e.forEach(function(O){return Ou.registerMenu(O)}),t&&t.forEach(function(O){return Ou.registerRenderElem(O)}),n&&Ou.registerRenderStyle(n),c&&c.forEach(function(O){return Ou.registerElemToHtml(O)}),f&&Ou.registerStyleToHtml(f),m&&m.forEach(function(O){return Ou.registerPreParseHtml(O)}),P&&P.forEach(function(O){return Ou.registerParseElemHtml(O)}),_&&Ou.registerParseStyleHtml(_),x&&Ou.registerPlugin(x)}r5.forEach(function(r){return wd(r)}),wd(i5),wd(a5),wd(u5),wd(s5),wd(jv.wangEditorCodeHighlightModule);var l5='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',c5='<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>',Sb='<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>',f5='<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>',d5='<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 p5(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:qi.t("editor.more"),iconSvg:f5,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:qi.t("editor.justify"),iconSvg:c5,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:qi.t("editor.indent"),iconSvg:l5,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:qi.t("editor.image"),iconSvg:Sb,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:qi.t("editor.video"),iconSvg:d5,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function h5(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:qi.t("editor.image"),iconSvg:Sb,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var Cb={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 g5(){return Sa(Sa({},Cb),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function v5(){return Cb}function m5(){return{hoverbarKeys:g5()}}function y5(){return{hoverbarKeys:v5()}}function b5(){return{toolbarKeys:p5()}}function E5(){return{toolbarKeys:h5()}}var w5=m5();Ou.setEditorConfig(Sa(Sa({},w5),{decorate:jv.wangEditorCodeHighLightDecorate}));var x5=y5();Ou.setSimpleEditorConfig(Sa(Sa({},x5),{decorate:jv.wangEditorCodeHighLightDecorate}));var D5=b5();Ou.setToolbarConfig(D5);var S5=E5();Ou.setSimpleToolbarConfig(S5);function C5(r){r===void 0&&(r={});var e=r.selector,t=e===void 0?"":e,n=r.content,c=n===void 0?[]:n,f=r.html,m=r.config,P=m===void 0?{}:m,_=r.mode,x=_===void 0?"default":_,O=x==="simple"?Ou.simpleEditorConfig:Ou.editorConfig,k=Sa(Sa({},O.hoverbarKeys||{}),P.hoverbarKeys||{}),S=qi.coreCreateEditor({selector:t,config:Sa(Sa(Sa({},O),P),{hoverbarKeys:k}),content:c,html:f,plugins:Ou.plugins});return S}function A5(r){var e=r.selector,t=r.editor,n=r.config,c=n===void 0?{}:n,f=r.mode,m=f===void 0?"default":f;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var P=m==="simple"?Ou.simpleToolbarConfig:Ou.toolbarConfig,_=qi.coreCreateToolbar(t,{selector:e,config:Sa(Sa({},P),c)});return _}var _5={};So.Boot=Ou,So.DomEditor=qi.DomEditor,So.SlateEditor=j1,So.SlateElement=L1,So.SlateLocation=M1,So.SlateNode=$1,So.SlatePath=z1,So.SlatePoint=H1,So.SlateRange=U1,So.SlateText=V1,So.SlateTransforms=W1,So.Toolbar=qi.Toolbar,So.createEditor=C5,So.createToolbar=A5,So.createUploader=qi.createUploader,So.default=_5,So.genModalButtonElems=qi.genModalButtonElems,So.genModalInputElems=qi.genModalInputElems,So.genModalTextareaElems=qi.genModalTextareaElems,So.i18nAddResources=qi.i18nAddResources,So.i18nChangeLanguage=qi.i18nChangeLanguage,So.i18nGetResources=qi.i18nGetResources,So.t=qi.t,Object.defineProperty(So,"__esModule",{value:!0})}));