jwt-ui 1.0.9 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,159 +0,0 @@
1
- (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["jwt-ui"]=t(require("vue")):e["jwt-ui"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={3577:function(e,t,n){"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{HD:function(){return f},Kn:function(){return p},RI:function(){return l},S0:function(){return m},W7:function(){return v},_A:function(){return w},_N:function(){return s},aU:function(){return E},dG:function(){return o},fY:function(){return r},kJ:function(){return u},l7:function(){return i},mf:function(){return c},yk:function(){return d}});const o=()=>{},i=Object.assign,a=Object.prototype.hasOwnProperty,l=(e,t)=>a.call(e,t),u=Array.isArray,s=e=>"[object Map]"===g(e),c=e=>"function"===typeof e,f=e=>"string"===typeof e,d=e=>"symbol"===typeof e,p=e=>null!==e&&"object"===typeof e,h=Object.prototype.toString,g=e=>h.call(e),v=e=>g(e).slice(8,-1),m=e=>f(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,y=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},b=/-(\w)/g,w=y((e=>e.replace(b,((e,t)=>t?t.toUpperCase():"")))),x=/\B([A-Z])/g,C=(y((e=>e.replace(x,"-$1").toLowerCase())),y((e=>e.charAt(0).toUpperCase()+e.slice(1)))),E=(y((e=>e?`on${C(e)}`:"")),(e,t)=>!Object.is(e,t))},7877:function(e,t,n){"use strict";var r;if(n.r(t),n.d(t,{Boot:function(){return Nue},DomEditor:function(){return Tw},SlateEditor:function(){return it},SlateElement:function(){return Qe},SlateLocation:function(){return at},SlateNode:function(){return ft},SlatePath:function(){return gt},SlatePoint:function(){return bt},SlateRange:function(){return St},SlateText:function(){return Ft},SlateTransforms:function(){return Jt},Toolbar:function(){return Tk},createEditor:function(){return tse},createToolbar:function(){return nse},createUploader:function(){return $k},default:function(){return rse},genModalButtonElems:function(){return mk},genModalInputElems:function(){return gk},genModalTextareaElems:function(){return vk},i18nAddResources:function(){return TD},i18nChangeLanguage:function(){return ND},i18nGetResources:function(){return ID},t:function(){return LD}}),"undefined"===typeof n.g){if("ActiveXObject"in window){var o="抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器";o+="\n Sorry, wangEditor V5+ versions do not support IE browser.",console.error(o)}i(),a()}else n.g&&(null===(r=n.g.navigator)||void 0===r?void 0:r.userAgent.match("QQBrowser"))&&(i(),a());function i(){"undefined"===typeof globalThis&&(window.globalThis=window)}function a(){"undefined"===typeof AggregateError&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if("object"===typeof n.g){var l=Object.getOwnPropertyDescriptor(n.g,"window");n.g.window&&!l.set||(n.g.window=n.g,n.g.requestAnimationFrame=function(){},n.g.navigator={userAgent:""},n.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},n.g.btoa=function(){},n.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=n.g.document&&null==n.g.document.getElementsByTagName&&(n.g.document.getElementsByTagName=function(){return[]})}
2
- /*!
3
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
- *
5
- * Copyright (c) 2014-2017, Jon Schlinkert.
6
- * Released under the MIT License.
7
- */function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){var t,n;return!1!==u(e)&&(t=e.constructor,void 0===t||(n=t.prototype,!1!==u(n)&&!1!==n.hasOwnProperty("isPrototypeOf")))}function c(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Q[e],i=o?"function"==typeof o?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}function f(e){return!!e&&!!e[X]}function d(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ee}(e)||Array.isArray(e)||!!e[Z]||!!e.constructor[Z]||b(e)||w(e))}function p(e,t,n){void 0===n&&(n=!1),0===h(e)?(n?Object.keys:te)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function h(e){var t=e[X];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:b(e)?2:w(e)?3:0}function g(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return 2===h(e)?e.get(t):e[t]}function m(e,t,n){var r=h(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function y(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function b(e){return K&&e instanceof Map}function w(e){return G&&e instanceof Set}function x(e){return e.o||e.t}function C(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ne(e);delete t[X];for(var n=te(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function E(e,t){return void 0===t&&(t=!1),k(e)||f(e)||!d(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=S),Object.freeze(e),t&&p(e,(function(e,t){return E(t,!0)}),!0)),e}function S(){c(2)}function k(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function D(e){var t=re[e];return t||c(18,e),t}function A(){return W||c(0),W}function O(e,t){t&&(D("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){B(e),e.p.forEach(j),e.p=null}function B(e){e===W&&(W=e.l)}function F(e){return W={p:[],l:W,h:e,m:!0,_:0}}function j(e){var t=e[X];0===t.i||1===t.i?t.j():t.O=!0}function P(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||D("ES5").S(t,e,r),r?(n[X].P&&(_(t),c(4)),d(e)&&(e=T(t,e),t.l||I(t,e)),t.u&&D("Patches").M(n[X],e,t.u,t.s)):e=T(t,n,[]),_(t),t.u&&t.v(t.u,t.s),e!==J?e:void 0}function T(e,t,n){if(k(t))return t;var r=t[X];if(!r)return p(t,(function(o,i){return N(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return I(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=C(r.k):r.o;p(3===r.i?new Set(o):o,(function(t,i){return N(e,r,o,t,i,n)})),I(e,o,!1),n&&e.u&&D("Patches").R(r,n,e.u,e.s)}return r.o}function N(e,t,n,r,o,i){if(o===n&&c(5),f(o)){var a=T(e,o,i&&t&&3!==t.i&&!g(t.D,r)?i.concat(r):void 0);if(m(n,r,a),!f(a))return;e.m=!1}if(d(o)&&!k(o)){if(!e.h.F&&e._<1)return;T(e,o),t&&t.A.l||I(e,o)}}function I(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&E(t,n)}function L(e,t){var n=e[X];return(n?x(n):e)[t]}function M(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function z(e){e.o||(e.o=C(e.t))}function V(e,t,n){var r=b(t)?D("MapSet").N(t,n):w(t)?D("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:A(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=oe;n&&(o=[r],i=ie);var a=Proxy.revocable(o,i),l=a.revoke,u=a.proxy;return r.k=u,r.j=l,u}(t,n):D("ES5").J(t,n);return(n?n.A:A()).p.push(r),r}function $(e){return f(e)||c(22,e),function e(t){if(!d(t))return t;var n,r=t[X],o=h(t);if(r){if(!r.P&&(r.i<4||!D("ES5").K(r)))return r.t;r.I=!0,n=U(t,o),r.I=!1}else n=U(t,o);return p(n,(function(t,o){r&&v(r.t,t)===o||m(n,t,e(o))})),3===o?new Set(n):n}(e)}function U(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return C(e)}var H,W,q="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),K="undefined"!=typeof Map,G="undefined"!=typeof Set,Y="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,J=q?Symbol.for("immer-nothing"):((H={})["immer-nothing"]=!0,H),Z=q?Symbol.for("immer-draftable"):"__$immer_draftable",X=q?Symbol.for("immer-state"):"__$immer_state",Q={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"},ee=""+Object.prototype.constructor,te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ne=Object.getOwnPropertyDescriptors||function(e){var t={};return te(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},re={},oe={get:function(e,t){if(t===X)return e;var n=x(e);if(!g(n,t))return function(e,t,n){var r,o=M(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!d(r)?r:r===L(e.t,t)?(z(e),e.o[t]=V(e.A.h,r,e)):r},has:function(e,t){return t in x(e)},ownKeys:function(e){return Reflect.ownKeys(x(e))},set:function(e,t,n){var r=M(x(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=L(x(e),t),i=null==o?void 0:o[X];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(y(n,o)&&(void 0!==n||g(e.t,t)))return!0;z(e),R(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==L(e.t,t)||t in e.t?(e.D[t]=!1,z(e),R(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=x(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){c(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){c(12)}},ie={};p(oe,(function(e,t){ie[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ie.deleteProperty=function(e,t){return isNaN(parseInt(t))&&c(13),oe.deleteProperty.call(this,e[0],t)},ie.set=function(e,t,n){return"length"!==t&&isNaN(parseInt(t))&&c(14),oe.set.call(this,e[0],t,n,e[0])};var ae=function(){function e(e){var t=this;this.g=Y,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&c(6),void 0!==r&&"function"!=typeof r&&c(7),d(e)){var l=F(t),u=V(t,e,void 0),s=!0;try{a=n(u),s=!1}finally{s?_(l):B(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return O(l,r),P(e,l)}),(function(e){throw _(l),e})):(O(l,r),P(a,l))}if(!e||"object"!=typeof e){if((a=n(e))===J)return;return void 0===a&&(a=e),t.F&&E(a,!0),a}c(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){d(e)||c(8),f(e)&&(e=$(e));var t=F(this),n=V(this,e,void 0);return n[X].C=!0,B(t),n},t.finishDraft=function(e,t){var n=e&&e[X];n&&n.C||c(9),n.I&&c(10);var r=n.A;return O(r,t),P(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Y&&c(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=D("Patches").$;return f(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),le=new ae,ue=le.produce;le.produceWithPatches.bind(le),le.setAutoFreeze.bind(le),le.setUseProxies.bind(le),le.applyPatches.bind(le);var se=le.createDraft.bind(le),ce=le.finishDraft.bind(le);function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de=new WeakMap,pe=new WeakMap,he=new WeakMap,ge=new WeakMap,ve=new WeakMap,me=new WeakMap;function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var we=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of it.pathRefs(e))vt.transform(n,t);for(var r of it.pointRefs(e))wt.transform(r,t);for(var o of it.rangeRefs(e))kt.transform(o,t);var i=new Set,a=[],l=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},u=de.get(e)||[],s=xe(t);for(var c of u){var f=gt.transform(c,t);l(f)}for(var d of s)l(d);de.set(e,a),Jt.transform(e,t),e.operations.push(t),it.normalize(e),"set_selection"===t.type&&(e.marks=null),pe.get(e)||(pe.set(e,!0),Promise.resolve().then((()=>{pe.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(St.isExpanded(r))Jt.setNodes(e,{[t]:n},{match:Ft.isText,split:!0});else{var o=be(be({},it.marks(e)||{}),{},{[t]:n});e.marks=o,pe.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&St.isCollapsed(n)&&Jt.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&St.isCollapsed(n)&&Jt.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&St.isExpanded(n)&&Jt.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?ft.fragment(e,t):[]},insertBreak:()=>{Jt.splitNodes(e,{always:!0})},insertFragment:t=>{Jt.insertFragment(e,t)},insertNode:t=>{Jt.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=be({text:t},r);Jt.insertNodes(e,o)}else Jt.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Ft.isText(n))if(Qe.isElement(n)&&0===n.children.length){var o={text:""};Jt.insertNodes(e,o,{at:r.concat(0),voids:!0})}else for(var i=!it.isEditor(n)&&(Qe.isElement(n)&&(e.isInline(n)||0===n.children.length||Ft.isText(n.children[0])||e.isInline(n.children[0]))),a=0,l=0;l<n.children.length;l++,a++){var u=ft.get(e,r);if(!Ft.isText(u)){var s=n.children[l],c=u.children[a-1],f=l===n.children.length-1,d=Ft.isText(s)||Qe.isElement(s)&&e.isInline(s);if(d!==i)Jt.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(Qe.isElement(s)){if(e.isInline(s))if(null!=c&&Ft.isText(c)){if(f){var p={text:""};Jt.insertNodes(e,p,{at:r.concat(a+1),voids:!0}),a++}}else{var h={text:""};Jt.insertNodes(e,h,{at:r.concat(a),voids:!0}),a++}}else null!=c&&Ft.isText(c)&&(Ft.equals(s,c,{loose:!0})?(Jt.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):""===c.text?(Jt.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):""===s.text&&(Jt.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(St.isExpanded(n))Jt.unsetNodes(e,t,{match:Ft.isText,split:!0});else{var r=be({},it.marks(e)||{});delete r[t],e.marks=r,pe.get(e)||e.onChange()}}};return e},xe=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return gt.levels(t);case"insert_node":var{node:n,path:r}=e,o=gt.levels(r),i=Ft.isText(n)?[]:Array.from(ft.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e,l=gt.ancestors(a),u=gt.previous(a);return[...l,u];case"move_node":var{path:s,newPath:c}=e;if(gt.equals(s,c))return[];var f=[],d=[];for(var p of gt.ancestors(s)){var h=gt.transform(p,e);f.push(h)}for(var g of gt.ancestors(c)){var v=gt.transform(g,e);d.push(v)}var m=d[d.length-1],y=c[c.length-1],b=m.concat(y);return[...f,...d,b];case"remove_node":var{path:w}=e,x=gt.ancestors(w);return[...x];case"split_node":var{path:C}=e,E=gt.levels(C),S=gt.next(C);return[...E,S];default:return[]}};function Ce(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ee(e,t){if(null==e)return{};var n,r,o=Ce(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Se,ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?je(e):e,o=Se.None,i=Se.None,a=0,l=null,u=null;for(var s of r){var c=s.codePointAt(0);if(!c)break;var f=He(s,c);if([o,i]=n?[i,f]:[f,o],We(o,Se.ZWJ)&&We(i,Se.ExtPict)&&(l=Ye(n?e.substring(0,a):e.substring(0,e.length-a)),!l))break;if(We(o,Se.RI)&&We(i,Se.RI)&&(u=null!==u?!u:!!n||Ze(e.substring(0,e.length-a)),!u))break;if(o!==Se.None&&i!==Se.None&&Ke(o,i))break;a+=s.length}return a||1},De=/\s/,Ae=/[\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]/,Oe=/['\u2018\u2019]/,_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;while(e.length>0){var o=ke(e,t),[i,a]=Be(e,o,t);if(Fe(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n},Be=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Fe=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(De.test(t))return!1;if(Oe.test(t)){var o=ke(n,r),[i,a]=Be(n,o,r);if(e(i,a,r))return!0}return!Ae.test(t)},je=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Te(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Pe(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Pe=e=>e>=55296&&e<=56319,Te=e=>e>=56320&&e<=57343;(function(e){e[e["None"]=0]="None",e[e["Extend"]=1]="Extend",e[e["ZWJ"]=2]="ZWJ",e[e["RI"]=4]="RI",e[e["Prepend"]=8]="Prepend",e[e["SpacingMark"]=16]="SpacingMark",e[e["L"]=32]="L",e[e["V"]=64]="V",e[e["T"]=128]="T",e[e["LV"]=256]="LV",e[e["LVT"]=512]="LVT",e[e["ExtPict"]=1024]="ExtPict",e[e["Any"]=2048]="Any"})(Se||(Se={}));var Ne=/^(?:[\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])$/,Ie=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Le=/^(?:[\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])$/,Me=/^[\u1100-\u115F\uA960-\uA97C]$/,Re=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,ze=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Ve=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,$e=/^[\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]$/,Ue=/^(?:[\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])$/,He=(e,t)=>{var n=Se.Any;return-1!==e.search(Ne)&&(n|=Se.Extend),8205===t&&(n|=Se.ZWJ),t>=127462&&t<=127487&&(n|=Se.RI),-1!==e.search(Ie)&&(n|=Se.Prepend),-1!==e.search(Le)&&(n|=Se.SpacingMark),-1!==e.search(Me)&&(n|=Se.L),-1!==e.search(Re)&&(n|=Se.V),-1!==e.search(ze)&&(n|=Se.T),-1!==e.search(Ve)&&(n|=Se.LV),-1!==e.search($e)&&(n|=Se.LVT),-1!==e.search(Ue)&&(n|=Se.ExtPict),n};function We(e,t){return 0!==(e&t)}var qe=[[Se.L,Se.L|Se.V|Se.LV|Se.LVT],[Se.LV|Se.V,Se.V|Se.T],[Se.LVT|Se.T,Se.T],[Se.Any,Se.Extend|Se.ZWJ],[Se.Any,Se.SpacingMark],[Se.Prepend,Se.Any],[Se.ZWJ,Se.ExtPict],[Se.RI,Se.RI]];function Ke(e,t){return-1===qe.findIndex((n=>We(e,n[0])&&We(t,n[1])))}var Ge=/(?:[\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$/,Ye=e=>-1!==e.search(Ge),Je=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ze=e=>{var t=e.match(Je);if(null===t)return!1;var n=t[0].length/2;return n%2===1},Xe=e=>s(e)&&ft.isNodeList(e.children)&&!it.isEditor(e),Qe={isAncestor(e){return s(e)&&ft.isNodeList(e.children)},isElement:Xe,isElementList(e){return Array.isArray(e)&&e.every((e=>Qe.isElement(e)))},isElementProps(e){return void 0!==e.children},isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Xe(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},et=["text"],tt=["text"];function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=new WeakMap,it={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=it.path(e,o),l="lowest"===r;for(var[u,s]of it.levels(e,{at:a,voids:n,match:i,reverse:l}))if(!Ft.isText(u)&&!gt.equals(a,s))return[u,s]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=it.point(e,t,{edge:"end"}),i=it.end(e,[]),a={anchor:o,focus:i},{distance:l=1}=r,u=0;for(var s of it.positions(e,rt(rt({},r),{},{at:a}))){if(u>l)break;0!==u&&(n=s),u++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=it.start(e,[]),i=it.point(e,t,{edge:"start"}),a={anchor:o,focus:i},{distance:l=1}=r,u=0;for(var s of it.positions(e,rt(rt({},r),{},{at:a,reverse:!0}))){if(u>l)break;0!==u&&(n=s),u++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges(e,t){return[it.start(e,t),it.end(e,t)]},end(e,t){return it.point(e,t,{edge:"end"})},first(e,t){var n=it.path(e,t,{edge:"start"});return it.node(e,n)},fragment(e,t){var n=it.range(e,t),r=ft.fragment(e,n);return r},hasBlocks(e,t){return t.children.some((t=>it.isBlock(e,t)))},hasInlines(e,t){return t.children.some((t=>Ft.isText(t)||it.isInline(e,t)))},hasTexts(e,t){return t.children.every((e=>Ft.isText(e)))},insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock(e,t){return Qe.isElement(t)&&!e.isInline(t)},isEditor(e){if(!s(e))return!1;var t=ot.get(e);if(void 0!==t)return t;var n="function"===typeof e.addMark&&"function"===typeof e.apply&&"function"===typeof e.deleteBackward&&"function"===typeof e.deleteForward&&"function"===typeof e.deleteFragment&&"function"===typeof e.insertBreak&&"function"===typeof e.insertFragment&&"function"===typeof e.insertNode&&"function"===typeof e.insertText&&"function"===typeof e.isInline&&"function"===typeof e.isVoid&&"function"===typeof e.normalizeNode&&"function"===typeof e.onChange&&"function"===typeof e.removeMark&&(null===e.marks||s(e.marks))&&(null===e.selection||St.isRange(e.selection))&&ft.isNodeList(e.children)&&ht.isOperationList(e.operations);return ot.set(e,n),n},isEnd(e,t,n){var r=it.end(e,n);return bt.equals(t,r)},isEdge(e,t,n){return it.isStart(e,t,n)||it.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Ft.isText(r)&&""===r.text&&!e.isVoid(t)},isInline(e,t){return Qe.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=he.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=it.start(e,n);return bt.equals(t,r)},isVoid(e,t){return Qe.isElement(t)&&e.isVoid(t)},last(e,t){var n=it.path(e,t,{edge:"end"});return it.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=it.path(e,t,n),o=ft.leaf(e,r);return[o,r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],l=it.path(e,n);for(var[u,s]of ft.levels(e,l))if(i(u,s)&&(a.push([u,s]),!o&&it.isVoid(e,u)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(St.isExpanded(n)){var[r]=it.nodes(e,{match:Ft.isText});if(r){var[o]=r,i=Ee(o,et);return i}return{}}var{anchor:a}=n,{path:l}=a,[u]=it.leaf(e,l);if(0===a.offset){var s=it.previous(e,{at:l,match:Ft.isText}),c=it.above(e,{match:t=>it.isBlock(e,t)});if(s&&c){var[f,d]=s,[,p]=c;gt.isAncestor(p,d)&&(u=f)}}var h=Ee(u,tt);return h},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=it.after(e,i,{voids:r});if(a){var[,l]=it.last(e,[]),u=[a.path,l];if(gt.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(gt.isPath(i)){var[s]=it.parent(e,i);o=e=>s.children.includes(e)}else o=()=>!0;var[c]=it.nodes(e,{at:u,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=it.path(e,t,n),o=ft.get(e,r);return[o,r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:l}=t;if(l||(l=()=>!0),n){var u,s;if(lt.isSpan(n))u=n[0],s=n[1];else{var c=it.path(e,n,{edge:"start"}),f=it.path(e,n,{edge:"end"});u=i?f:c,s=i?c:f}var d,p=ft.nodes(e,{reverse:i,from:u,to:s,pass:t=>{var[n]=t;return!a&&it.isVoid(e,n)}}),h=[];for(var[g,v]of p){var m=d&&0===gt.compare(v,d[1]);if("highest"!==r||!m)if(l(g,v))if("lowest"===r&&m)d=[g,v];else{var y="lowest"===r?d:[g,v];y&&(o?h.push(y):yield y),d=[g,v]}else if(o&&!m&&Ft.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>de.get(e)||[];if(it.isNormalizing(e)){if(n){var o=Array.from(ft.nodes(e),(e=>{var[,t]=e;return t}));de.set(e,o)}0!==r(e).length&&it.withoutNormalizing(e,(()=>{for(var t of r(e))if(ft.has(e,t)){var n=it.node(e,t),[o,i]=n;Qe.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}var a=42*r(e).length,l=0;while(0!==r(e).length){if(l>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var u=r(e).pop();if(ft.has(e,u)){var s=it.node(e,u);e.normalizeNode(s)}l++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=it.path(e,t,n),o=gt.parent(r),i=it.node(e,o);return i},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(gt.isPath(t))if("start"===o){var[,i]=ft.first(e,t);t=i}else if("end"===o){var[,a]=ft.last(e,t);t=a}return St.isRange(t)&&(t="start"===o?St.start(t):"end"===o?St.end(t):gt.common(t.anchor.path,t.focus.path)),bt.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath(e,t){return ft.has(e,t)},pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o,n=it.pathRefs(e);return n.delete(o),o.current=null,t}},i=it.pathRefs(e);return i.add(o),o},pathRefs(e){var t=ge.get(e);return t||(t=new Set,ge.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(gt.isPath(t)){var o;if("end"===r){var[,i]=ft.last(e,t);o=i}else{var[,a]=ft.first(e,t);o=a}var l=ft.get(e,o);if(!Ft.isText(l))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?l.text.length:0}}if(St.isRange(t)){var[u,s]=St.edges(t);return"start"===r?u:s}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o,n=it.pointRefs(e);return n.delete(o),o.current=null,t}},i=it.pointRefs(e);return i.add(o),o},pointRefs(e){var t=ve.get(e);return t||(t=new Set,ve.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=it.range(e,n),[l,u]=St.edges(a),s=o?u:l,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of it.nodes(e,{at:n,reverse:o,voids:i})){if(Qe.isElement(g)){if(!i&&e.isVoid(g)){yield it.start(e,v);continue}if(e.isInline(g))continue;if(it.hasInlines(e,g)){var m=gt.isAncestor(v,u.path)?u:it.end(e,v),y=gt.isAncestor(v,l.path)?l:it.start(e,v);f=it.string(e,{anchor:y,focus:m},{voids:i}),c=!0}}if(Ft.isText(g)){var b=gt.equals(v,s.path);b?(p=o?s.offset:g.text.length-s.offset,h=s.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);while(1){if(0===d){if(""===f)break;d=w(f,r,o),f=Be(f,d,o)[1]}if(h=o?h-d:h+d,p-=d,p<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?ke(e,n):"word"===t?_e(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=it.before(e,i,{voids:r});if(a){var[,l]=it.first(e,[]),u=[a.path,l];if(gt.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(gt.isPath(i)){var[s]=it.parent(e,i);o=e=>s.children.includes(e)}else o=()=>!0;var[c]=it.nodes(e,{reverse:!0,at:u,match:o,mode:n,voids:r});return c}}},range(e,t,n){if(St.isRange(t)&&!n)return t;var r=it.start(e,t),o=it.end(e,n||t);return{anchor:r,focus:o}},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o,n=it.rangeRefs(e);return n.delete(o),o.current=null,t}},i=it.rangeRefs(e);return i.add(o),o},rangeRefs(e){var t=me.get(e);return t||(t=new Set,me.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){he.set(e,t)},start(e,t){return it.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=it.range(e,t),[i,a]=St.edges(o),l="";for(var[u,s]of it.nodes(e,{at:o,match:Ft.isText,voids:r})){var c=u.text;gt.equals(s,a.path)&&(c=c.slice(0,a.offset)),gt.equals(s,i.path)&&(c=c.slice(i.offset)),l+=c}return l},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=St.edges(t);if(0!==o.offset||0!==i.offset||St.isCollapsed(t))return t;var a=it.above(e,{at:i,match:t=>it.isBlock(e,t)}),l=a?a[1]:[],u=it.start(e,[]),s={anchor:u,focus:i},c=!0;for(var[f,d]of it.nodes(e,{at:s,match:Ft.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==f.text||gt.isBefore(d,l)){i={path:d,offset:f.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it.above(e,rt(rt({},t),{},{match:t=>it.isVoid(e,t)}))},withoutNormalizing(e,t){var n=it.isNormalizing(e);it.setNormalizing(e,!1);try{t()}finally{it.setNormalizing(e,n)}it.normalize(e)}},at={isLocation(e){return gt.isPath(e)||bt.isPoint(e)||St.isRange(e)}},lt={isSpan(e){return Array.isArray(e)&&2===e.length&&e.every(gt.isPath)}},ut=["children"],st=["text"],ct=new WeakMap,ft={ancestor(e,t){var n=ft.get(e,t);if(Ft.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of gt.ancestors(t,n)){var o=ft.ancestor(e,r),i=[o,r];yield i}},child(e,t){if(Ft.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=ft.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;while(r?a>=0:a<i.length){var l=ft.child(o,a),u=t.concat(a);yield[l,u],a=r?a-1:a+1}},common(e,t,n){var r=gt.common(t,n),o=ft.get(e,r);return[o,r]},descendant(e,t){var n=ft.get(e,t);if(it.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of ft.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of ft.nodes(e,t))Qe.isElement(n)&&(yield[n,r])},extractProps(e){if(Qe.isAncestor(e)){var t=Ee(e,ut);return t}t=Ee(e,st);return t},first(e,t){var n=t.slice(),r=ft.get(e,n);while(r){if(Ft.isText(r)||0===r.children.length)break;r=r.children[0],n.push(0)}return[r,n]},fragment(e,t){if(Ft.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=ue({children:e.children},(e=>{var[n,r]=St.edges(t),o=ft.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!St.includes(t,n)}});for(var[,i]of o){if(!St.includes(t,i)){var a=ft.parent(e,i),l=i[i.length-1];a.children.splice(l,1)}if(gt.equals(i,r.path)){var u=ft.leaf(e,i);u.text=u.text.slice(0,r.offset)}if(gt.equals(i,n.path)){var s=ft.leaf(e,i);s.text=s.text.slice(n.offset)}}it.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Ft.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Ft.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return Ft.isText(e)||Qe.isElement(e)||it.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=ct.get(e);if(void 0!==t)return t;var n=e.every((e=>ft.isNode(e)));return ct.set(e,n),n},last(e,t){var n=t.slice(),r=ft.get(e,n);while(r){if(Ft.isText(r)||0===r.children.length)break;var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=ft.get(e,t);if(!Ft.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of gt.levels(t,n)){var o=ft.get(e,r);yield[o,r]}},matches(e,t){return Qe.isElement(e)&&Qe.isElementProps(t)&&Qe.matches(e,t)||Ft.isText(e)&&Ft.isTextProps(t)&&Ft.matches(e,t)},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,l=[],u=e;while(1){if(i&&(r?gt.isBefore(l,i):gt.isAfter(l,i)))break;if(a.has(u)||(yield[u,l]),a.has(u)||Ft.isText(u)||0===u.children.length||null!=n&&!1!==n([u,l])){if(0===l.length)break;if(!r){var s=gt.next(l);if(ft.has(e,s)){l=s,u=ft.get(e,l);continue}}if(r&&0!==l[l.length-1]){var c=gt.previous(l);l=c,u=ft.get(e,l)}else l=gt.parent(l),u=ft.get(e,l),a.add(u)}else{a.add(u);var f=r?u.children.length-1:0;gt.isAncestor(l,o)&&(f=o[l.length]),l=l.concat(f),u=ft.get(e,l)}}},parent(e,t){var n=gt.parent(t),r=ft.get(e,n);if(Ft.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return Ft.isText(e)?e.text:e.children.map(ft.string).join("")},*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of ft.nodes(e,t))Ft.isText(n)&&(yield[n,r])}};function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ht={isNodeOperation(e){return ht.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!s(e))return!1;switch(e.type){case"insert_node":return gt.isPath(e.path)&&ft.isNode(e.node);case"insert_text":return"number"===typeof e.offset&&"string"===typeof e.text&&gt.isPath(e.path);case"merge_node":return"number"===typeof e.position&&gt.isPath(e.path)&&s(e.properties);case"move_node":return gt.isPath(e.path)&&gt.isPath(e.newPath);case"remove_node":return gt.isPath(e.path)&&ft.isNode(e.node);case"remove_text":return"number"===typeof e.offset&&"string"===typeof e.text&&gt.isPath(e.path);case"set_node":return gt.isPath(e.path)&&s(e.properties)&&s(e.newProperties);case"set_selection":return null===e.properties&&St.isRange(e.newProperties)||null===e.newProperties&&St.isRange(e.properties)||s(e.properties)&&s(e.newProperties);case"split_node":return gt.isPath(e.path)&&"number"===typeof e.position&&s(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every((e=>ht.isOperation(e)))},isSelectionOperation(e){return ht.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return ht.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return pt(pt({},e),{},{type:"remove_node"});case"insert_text":return pt(pt({},e),{},{type:"remove_text"});case"merge_node":return pt(pt({},e),{},{type:"split_node",path:gt.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(gt.equals(t,n))return e;if(gt.isSibling(n,t))return pt(pt({},e),{},{path:t,newPath:n});var r=gt.transform(n,e),o=gt.transform(gt.next(n),e);return pt(pt({},e),{},{path:r,newPath:o});case"remove_node":return pt(pt({},e),{},{type:"insert_node"});case"remove_text":return pt(pt({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return pt(pt({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:l,newProperties:u}=e;return pt(pt({},e),{},null==l?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:l}:{properties:u,newProperties:l});case"split_node":return pt(pt({},e),{},{type:"merge_node",path:gt.next(e.path)})}}},gt={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=gt.levels(e,t);return r=n?r.slice(1):r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],i=t[r];if(o!==i)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return gt.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return gt.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return gt.equals(r,o)&&i<a},equals(e,t){return e.length===t.length&&e.every(((e,n)=>e===t[n]))},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return 1===gt.compare(e,t)},isAncestor(e,t){return e.length<t.length&&0===gt.compare(e,t)},isBefore(e,t){return-1===gt.compare(e,t)},isChild(e,t){return e.length===t.length+1&&0===gt.compare(e,t)},isCommon(e,t){return e.length<=t.length&&0===gt.compare(e,t)},isDescendant(e,t){return e.length>t.length&&0===gt.compare(e,t)},isParent(e,t){return e.length+1===t.length&&0===gt.compare(e,t)},isPath(e){return Array.isArray(e)&&(0===e.length||"number"===typeof e[0])},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],i=t[t.length-1];return o!==i&&gt.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!gt.isAncestor(t,e)&&!gt.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ue(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null===e||void 0===e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(gt.equals(i,r)||gt.endsBefore(i,r)||gt.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(gt.equals(a,r)||gt.isAncestor(a,r))return null;gt.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:l,position:u}=t;gt.equals(l,r)||gt.endsBefore(l,r)?r[l.length-1]-=1:gt.isAncestor(l,r)&&(r[l.length-1]-=1,r[l.length]+=u);break;case"split_node":var{path:s,position:c}=t;if(gt.equals(s,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else gt.endsBefore(s,r)?r[s.length-1]+=1:gt.isAncestor(s,r)&&e[s.length]>=c&&(r[s.length-1]+=1,r[s.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(gt.equals(f,d))return;if(gt.isAncestor(f,r)||gt.equals(f,r)){var p=d.slice();return gt.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}gt.isSibling(f,d)&&(gt.isAncestor(d,r)||gt.equals(d,r))?gt.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:gt.endsBefore(d,r)||gt.equals(d,r)||gt.isAncestor(d,r)?(gt.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):gt.endsBefore(f,r)&&(gt.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1);break}}}))}},vt={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=gt.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bt={compare(e,t){var n=gt.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return 1===bt.compare(e,t)},isBefore(e,t){return-1===bt.compare(e,t)},equals(e,t){return e.offset===t.offset&&gt.equals(e.path,t.path)},isPoint(e){return s(e)&&"number"===typeof e.offset&&gt.isPath(e.path)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ue(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=gt.transform(o,t,n);break;case"insert_text":gt.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":gt.equals(t.path,o)&&(e.offset+=t.position),e.path=gt.transform(o,t,n);break;case"remove_text":gt.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(gt.equals(t.path,o)||gt.isAncestor(t.path,o))return null;e.path=gt.transform(o,t,n);break;case"split_node":if(gt.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=gt.transform(o,t,yt(yt({},n),{},{affinity:"forward"})))}else e.path=gt.transform(o,t,n);break}}))}},wt={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=bt.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},xt=["anchor","focus"];function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var St={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return St.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=St.edges(e);return t},equals(e,t){return bt.equals(e.anchor,t.anchor)&&bt.equals(e.focus,t.focus)},includes(e,t){if(St.isRange(t)){if(St.includes(e,t.anchor)||St.includes(e,t.focus))return!0;var[n,r]=St.edges(e),[o,i]=St.edges(t);return bt.isBefore(n,o)&&bt.isAfter(r,i)}var[a,l]=St.edges(e),u=!1,s=!1;return bt.isPoint(t)?(u=bt.compare(t,a)>=0,s=bt.compare(t,l)<=0):(u=gt.compare(t,a.path)>=0,s=gt.compare(t,l.path)<=0),u&&s},intersection(e,t){var n=Ee(e,xt),[r,o]=St.edges(e),[i,a]=St.edges(t),l=bt.isBefore(r,i)?i:r,u=bt.isBefore(o,a)?o:a;return bt.isBefore(u,l)?null:Et({anchor:l,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return bt.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return bt.equals(t,n)},isExpanded(e){return!St.isCollapsed(e)},isForward(e){return!St.isBackward(e)},isRange(e){return s(e)&&bt.isPoint(e.anchor)&&bt.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=St.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ue(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=St.isCollapsed(e);St.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?St.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var l=bt.transform(e.anchor,t,{affinity:r}),u=bt.transform(e.focus,t,{affinity:o});if(!l||!u)return null;e.anchor=l,e.focus=u}))}},kt={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=St.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Dt=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(s(r)&&s(o)){if(!Dt(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},At=["text"],Ot=["anchor","focus"];function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ft={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){var t=Ee(e,At);return t}return Dt(r?o(e):e,r?o(t):t)},isText(e){return s(e)&&"string"===typeof e.text},isTextList(e){return Array.isArray(e)&&e.every((e=>Ft.isText(e)))},isTextProps(e){return void 0!==e.text},matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Bt({},e)];for(var r of t){var o=Ee(r,Ot),[i,a]=St.edges(r),l=[],u=0;for(var s of n){var{length:c}=s.text,f=u;if(u+=c,i.offset<=f&&a.offset>=u)Object.assign(s,o),l.push(s);else if(i.offset!==a.offset&&(i.offset===u||a.offset===f)||i.offset>u||a.offset<f||a.offset===f&&0!==f)l.push(s);else{var d=s,p=void 0,h=void 0;if(a.offset<u){var g=a.offset-f;h=Bt(Bt({},d),{},{text:d.text.slice(g)}),d=Bt(Bt({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Bt(Bt({},d),{},{text:d.text.slice(0,v)}),d=Bt(Bt({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&l.push(p),l.push(d),h&&l.push(h)}}n=l}return n}};function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tt=(e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=ft.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[l,u]of St.points(t))t[u]=bt.transform(l,n);break;case"insert_text":var{path:s,offset:c,text:f}=n;if(0===f.length)break;var d=ft.leaf(e,s),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of St.points(t))t[v]=bt.transform(g,n);break;case"merge_node":var{path:m}=n,y=ft.get(e,m),b=gt.previous(m),w=ft.get(e,b),x=ft.parent(e,m),C=m[m.length-1];if(Ft.isText(y)&&Ft.isText(w))w.text+=y.text;else{if(Ft.isText(y)||Ft.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(m,"] to nodes of different interfaces: ").concat(y," ").concat(w));w.children.push(...y.children)}if(x.children.splice(C,1),t)for(var[E,S]of St.points(t))t[S]=bt.transform(E,n);break;case"move_node":var{path:k,newPath:D}=n;if(gt.isAncestor(k,D))throw new Error("Cannot move a path [".concat(k,"] to new path [").concat(D,"] because the destination is inside itself."));var A=ft.get(e,k),O=ft.parent(e,k),_=k[k.length-1];O.children.splice(_,1);var B=gt.transform(k,n),F=ft.get(e,gt.parent(B)),j=B[B.length-1];if(F.children.splice(j,0,A),t)for(var[P,T]of St.points(t))t[T]=bt.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1],L=ft.parent(e,N);if(L.children.splice(I,1),t)for(var[M,R]of St.points(t)){var z=bt.transform(M,n);if(null!=t&&null!=z)t[R]=z;else{var V=void 0,$=void 0;for(var[U,H]of ft.texts(e)){if(-1!==gt.compare(H,N)){$=[U,H];break}V=[U,H]}var W=!1;V&&$&&(W=gt.equals($[1],N)?!gt.hasPrevious($[1]):gt.common(V[1],N).length<gt.common($[1],N).length),V&&!W?(M.path=V[1],M.offset=V[0].text.length):$?(M.path=$[1],M.offset=0):t=null}}break;case"remove_text":var{path:q,offset:K,text:G}=n;if(0===G.length)break;var Y=ft.leaf(e,q),J=Y.text.slice(0,K),Z=Y.text.slice(K+G.length);if(Y.text=J+Z,t)for(var[X,Q]of St.points(t))t[Q]=bt.transform(X,n);break;case"set_node":var{path:ee,properties:te,newProperties:ne}=n;if(0===ee.length)throw new Error("Cannot set properties on the root node!");var re=ft.get(e,ee);for(var oe in ne){if("children"===oe||"text"===oe)throw new Error('Cannot set the "'.concat(oe,'" property of nodes!'));var ie=ne[oe];null==ie?delete re[oe]:re[oe]=ie}for(var ae in te)ne.hasOwnProperty(ae)||delete re[ae];break;case"set_selection":var{newProperties:le}=n;if(null==le)t=le;else{if(null==t){if(!St.isRange(le))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(le)," when there is no current selection."));t=Pt({},le)}for(var ue in le){var se=le[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:ce,position:fe,properties:de}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var pe,he=ft.get(e,ce),ge=ft.parent(e,ce),ve=ce[ce.length-1];if(Ft.isText(he)){var me=he.text.slice(0,fe),ye=he.text.slice(fe);he.text=me,pe=Pt(Pt({},de),{},{text:ye})}else{var be=he.children.slice(0,fe),we=he.children.slice(fe);he.children=be,pe=Pt(Pt({},de),{},{children:we})}if(ge.children.splice(ve+1,0,pe),t)for(var[xe,Ce]of St.points(t))t[Ce]=bt.transform(xe,n);break}return t},Nt={transform(e,t){e.children=se(e.children);var n=e.selection&&se(e.selection);try{n=Tt(e,n,t)}finally{e.children=ce(e.children),e.selection=n?f(n)?ce(n):n:null}}},It=["text"],Lt=["children"];function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zt={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};it.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:l,select:u}=n;if(ft.isNode(t)&&(t=[t]),0!==t.length){var[s]=t;if(a||(a=e.selection?e.selection:e.children.length>0?it.end(e,[]):[0],u=!0),null==u&&(u=!1),St.isRange(a))if(r||(a=it.unhangRange(e,a)),St.isCollapsed(a))a=a.anchor;else{var[,c]=St.edges(a),f=it.pointRef(e,c);Jt.delete(e,{at:a}),a=f.unref()}if(bt.isPoint(a)){null==l&&(l=Ft.isText(s)?e=>Ft.isText(e):e.isInline(s)?t=>Ft.isText(t)||it.isInline(e,t):t=>it.isBlock(e,t));var[d]=it.nodes(e,{at:a.path,match:l,mode:i,voids:o});if(!d)return;var[,p]=d,h=it.pathRef(e,p),g=it.isEnd(e,a,p);Jt.splitNodes(e,{at:a,match:l,mode:i,voids:o});var v=h.unref();a=g?gt.next(v):v}var m=gt.parent(a),y=a[a.length-1];if(o||!it.void(e,{at:m})){for(var b of t){var w=m.concat(y);y++,e.apply({type:"insert_node",path:w,node:b}),a=gt.next(a)}if(a=gt.previous(a),u){var x=it.end(e,a);x&&Jt.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=gt.isPath(n)?Ut(e,n):t=>it.isBlock(e,t)),n){var a=it.nodes(e,{at:n,match:i,mode:r,voids:o}),l=Array.from(a,(t=>{var[,n]=t;return it.pathRef(e,n)}));for(var u of l){var s=u.unref();if(s.length<2)throw new Error("Cannot lift node at a path [".concat(s,"] because it has a depth of less than `2`."));var c=it.node(e,gt.parent(s)),[f,d]=c,p=s[s.length-1],{length:h}=f.children;if(1===h){var g=gt.next(d);Jt.moveNodes(e,{at:s,to:g,voids:o}),Jt.removeNodes(e,{at:d,voids:o})}else if(0===p)Jt.moveNodes(e,{at:s,to:d,voids:o});else if(p===h-1){var v=gt.next(d);Jt.moveNodes(e,{at:s,to:v,voids:o})}else{var m=gt.next(s),y=gt.next(d);Jt.splitNodes(e,{at:m,voids:o}),Jt.moveNodes(e,{at:s,to:y,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(gt.isPath(r)){var[l]=it.parent(e,r);n=e=>l.children.includes(e)}else n=t=>it.isBlock(e,t);if(!o&&St.isRange(r)&&(r=it.unhangRange(e,r)),St.isRange(r))if(St.isCollapsed(r))r=r.anchor;else{var[,u]=St.edges(r),s=it.pointRef(e,u);Jt.delete(e,{at:r}),r=s.unref(),null==t.at&&Jt.select(e,r)}var[c]=it.nodes(e,{at:r,match:n,voids:i,mode:a}),f=it.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,m,y=gt.next(g),b=gt.common(p,g),w=gt.isSibling(p,g),x=Array.from(it.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),C=it.above(e,{at:p,mode:"highest",match:t=>x.includes(t)&&Vt(e,t)}),E=C&&it.pathRef(e,C[1]);if(Ft.isText(d)&&Ft.isText(h)){var S=Ee(d,It);m=h.text.length,v=S}else{if(!Qe.isElement(d)||!Qe.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));S=Ee(d,Lt);m=h.children.length,v=S}w||Jt.moveNodes(e,{at:p,to:y,voids:i}),E&&Jt.removeNodes(e,{at:E.current,voids:i}),Qe.isElement(h)&&it.isEmpty(e,h)||Ft.isText(h)&&""===h.text&&0!==g[g.length-1]?Jt.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:y,position:m,properties:v}),E&&E.unref()}}}}))},moveNodes(e,t){it.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=gt.isPath(r)?Ut(e,r):t=>it.isBlock(e,t));var l=it.pathRef(e,n),u=it.nodes(e,{at:r,match:a,mode:o,voids:i}),s=Array.from(u,(t=>{var[,n]=t;return it.pathRef(e,n)}));for(var c of s){var f=c.unref(),d=l.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),l.current&&gt.isSibling(d,f)&&gt.isAfter(d,f)&&(l.current=gt.next(l.current))}l.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=gt.isPath(i)?Ut(e,i):t=>it.isBlock(e,t)),!n&&St.isRange(i)&&(i=it.unhangRange(e,i));var l=it.nodes(e,{at:i,match:a,mode:o,voids:r}),u=Array.from(l,(t=>{var[,n]=t;return it.pathRef(e,n)}));for(var s of u){var c=s.unref();if(c){var[f]=it.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};it.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:l=!1,voids:u=!1}=n;if(o){if(null==r&&(r=gt.isPath(o)?Ut(e,o):t=>it.isBlock(e,t)),!i&&St.isRange(o)&&(o=it.unhangRange(e,o)),l&&St.isRange(o)){if(St.isCollapsed(o)&&it.leaf(e,o.anchor)[0].text.length>0)return;var s=it.rangeRef(e,o,{affinity:"inward"}),[c,f]=St.edges(o),d="lowest"===a?"lowest":"highest",p=it.isEnd(e,f,f.path);Jt.splitNodes(e,{at:f,match:r,mode:d,voids:u,always:!p});var h=it.isStart(e,c,c.path);Jt.splitNodes(e,{at:c,match:r,mode:d,voids:u,always:!h}),o=s.unref(),null==n.at&&Jt.select(e,o)}for(var[g,v]of it.nodes(e,{at:o,match:r,mode:a,voids:u})){var m={},y={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(m[w]=g[w]),null!=t[w]&&(y[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:m,newProperties:y})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:l=!1}=t;if(null==o&&(o=t=>it.isBlock(e,t)),St.isRange(i)&&(i=$t(e,i)),gt.isPath(i)){var u=i,s=it.point(e,u),[c]=it.parent(e,u);o=e=>e===c,a=s.path.length-u.length+1,i=s,l=!0}if(i){var f=it.pointRef(e,i,{affinity:"backward"}),[d]=it.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=it.void(e,{at:i,mode:"highest"}),h=0;if(!r&&p){var[g,v]=p;if(Qe.isElement(g)&&e.isInline(g)){var m=it.after(e,v);if(!m){var y={text:""},b=gt.next(v);Jt.insertNodes(e,y,{at:b,voids:r}),m=it.point(e,b)}i=m,l=!0}var w=i.path.length-v.length;a=w+1,l=!0}var x=it.pointRef(e,i),C=i.path.length-a,[,E]=d,S=i.path.slice(0,C),k=0===a?i.offset:i.path[C]+h;for(var[D,A]of it.levels(e,{at:S,reverse:!0,voids:r})){var O=!1;if(A.length<E.length||0===A.length||!r&&it.isVoid(e,D))break;var _=f.current,B=it.isEnd(e,_,A);if(l||!f||!it.isEdge(e,_,A)){O=!0;var F=ft.extractProps(D);e.apply({type:"split_node",path:A,position:k,properties:F})}k=A[A.length-1]+(O||B?1:0)}if(null==t.at){var j=x.current||it.end(e,[]);Jt.select(e,j)}f.unref(),x.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Jt.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=gt.isPath(i)?Ut(e,i):t=>it.isBlock(e,t)),gt.isPath(i)&&(i=it.range(e,i));var l=St.isRange(i)?it.rangeRef(e,i):null,u=it.nodes(e,{at:i,match:a,mode:n,voids:o}),s=Array.from(u,(t=>{var[,n]=t;return it.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=it.node(e,n),a=it.range(e,n);r&&l&&(a=St.intersection(l.current,a)),Jt.liftNodes(e,{at:a,match:e=>Qe.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of s)c(f);l&&l.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};it.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:l=e.selection}=n;if(l){if(null==a&&(a=gt.isPath(l)?Ut(e,l):e.isInline(t)?t=>it.isInline(e,t)||Ft.isText(t):t=>it.isBlock(e,t)),o&&St.isRange(l)){var[u,s]=St.edges(l),c=it.rangeRef(e,l,{affinity:"inward"});Jt.splitNodes(e,{at:s,match:a,voids:i}),Jt.splitNodes(e,{at:u,match:a,voids:i}),l=c.unref(),null==n.at&&Jt.select(e,l)}var f=Array.from(it.nodes(e,{at:l,match:e.isInline(t)?t=>it.isBlock(e,t):e=>it.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=St.isRange(l)?St.intersection(l,it.range(e,d)):l;if(p){var h=Array.from(it.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var l=gt.equals(o,a)?gt.parent(o):gt.common(o,a),u=it.range(e,o,a),s=it.node(e,l),[c]=s,f=l.length+1,d=gt.next(a.slice(0,f)),p=Rt(Rt({},t),{},{children:[]});Jt.insertNodes(e,p,{at:d,voids:i}),Jt.moveNodes(e,{at:u,match:e=>Qe.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===g)continue}}}}}))}},Vt=(e,t)=>{if(Qe.isElement(t)){var n=t;return!!it.isVoid(e,t)||1===n.children.length&&Vt(e,n.children[0])}return!it.isEditor(t)},$t=(e,t)=>{if(St.isCollapsed(t))return t.anchor;var[,n]=St.edges(t),r=it.pointRef(e,n);return Jt.delete(e,{at:t}),r.unref()},Ut=(e,t)=>{var[n]=it.node(e,t);return e=>e===n};function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qt={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Jt.select(e,r.anchor);else if("focus"===n)Jt.select(e,r.focus);else if("start"===n){var[o]=St.edges(r);Jt.select(e,o)}else if("end"===n){var[,i]=St.edges(r);Jt.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=St.isBackward(n)?"focus":"anchor"),"end"===a&&(a=St.isBackward(n)?"anchor":"focus");var{anchor:l,focus:u}=n,s={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?it.before(e,l,s):it.after(e,l,s);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?it.before(e,u,s):it.after(e,u,s);d&&(c.focus=d)}Jt.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=it.range(e,t),n)Jt.setSelection(e,t);else{if(!St.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=St.isBackward(r)?"focus":"anchor"),"end"===o&&(o=St.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,l="anchor"===o?i:a;Jt.setSelection(e,{["anchor"===o?"anchor":"focus"]:Wt(Wt({},l),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!bt.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!bt.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Kt={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};it.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:l=!1}=t;if(a){if(St.isRange(a)&&St.isCollapsed(a)&&(a=a.anchor),bt.isPoint(a)){var u=it.void(e,{at:a,mode:"highest"});if(!i&&u){var[,s]=u;a=s}else{var c={unit:r,distance:o},f=n?it.before(e,a,c)||it.start(e,[]):it.after(e,a,c)||it.end(e,[]);a={anchor:a,focus:f},l=!0}}if(gt.isPath(a))Jt.removeNodes(e,{at:a,voids:i});else if(!St.isCollapsed(a)){if(!l){var[,d]=St.edges(a),p=it.end(e,[]);bt.equals(d,p)||(a=it.unhangRange(e,a,{voids:i}))}var[h,g]=St.edges(a),v=it.above(e,{match:t=>it.isBlock(e,t),at:h,voids:i}),m=it.above(e,{match:t=>it.isBlock(e,t),at:g,voids:i}),y=v&&m&&!gt.equals(v[1],m[1]),b=gt.equals(h.path,g.path),w=i?null:it.void(e,{at:h,mode:"highest"}),x=i?null:it.void(e,{at:g,mode:"highest"});if(w){var C=it.before(e,h);C&&v&&gt.isAncestor(v[1],C.path)&&(h=C)}if(x){var E=it.after(e,g);E&&m&&gt.isAncestor(m[1],E.path)&&(g=E)}var S,k=[];for(var D of it.nodes(e,{at:a,voids:i})){var[A,O]=D;S&&0===gt.compare(O,S)||(!i&&it.isVoid(e,A)||!gt.isCommon(O,h.path)&&!gt.isCommon(O,g.path))&&(k.push(D),S=O)}var _=Array.from(k,(t=>{var[,n]=t;return it.pathRef(e,n)})),B=it.pointRef(e,h),F=it.pointRef(e,g);if(!b&&!w){var j=B.current,[P]=it.leaf(e,j),{path:T}=j,{offset:N}=h,I=P.text.slice(N);I.length>0&&e.apply({type:"remove_text",path:T,offset:N,text:I})}for(var L of _){var M=L.unref();Jt.removeNodes(e,{at:M,voids:i})}if(!x){var R=F.current,[z]=it.leaf(e,R),{path:V}=R,$=b?h.offset:0,U=z.text.slice($,g.offset);U.length>0&&e.apply({type:"remove_text",path:V,offset:$,text:U})}!b&&y&&F.current&&B.current&&Jt.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var H=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&H&&Jt.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};it.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(St.isRange(i))if(r||(i=it.unhangRange(e,i)),St.isCollapsed(i))i=i.anchor;else{var[,a]=St.edges(i);if(!o&&it.void(e,{at:a}))return;var l=it.pointRef(e,a);Jt.delete(e,{at:i}),i=l.unref()}else gt.isPath(i)&&(i=it.start(e,i));if(o||!it.void(e,{at:i})){var u=it.above(e,{at:i,match:t=>it.isInline(e,t),mode:"highest",voids:o});if(u){var[,s]=u;if(it.isEnd(e,i,s)){var c=it.after(e,s);i=c}else if(it.isStart(e,i,s)){var f=it.before(e,s);i=f}}var d=it.above(e,{match:t=>it.isBlock(e,t),at:i,voids:o}),[,p]=d,h=it.isStart(e,i,p),g=it.isEnd(e,i,p),v=h&&g,m=!h||h&&g,y=!g,[,b]=ft.first({children:t},[]),[,w]=ft.last({children:t},[]),x=[],C=t=>{var[n,r]=t,o=0===r.length;return!o&&(!!v||!(m&&gt.isAncestor(r,b)&&Qe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(y&&gt.isAncestor(r,w)&&Qe.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of ft.nodes({children:t},{pass:C}))C(E)&&x.push(E);var S=[],k=[],D=[],A=!0,O=!1;for(var[_]of x)Qe.isElement(_)&&!e.isInline(_)?(A=!1,O=!0,k.push(_)):A?S.push(_):D.push(_);var[B]=it.nodes(e,{at:i,match:t=>Ft.isText(t)||it.isInline(e,t),mode:"highest",voids:o}),[,F]=B,j=it.isStart(e,i,F),P=it.isEnd(e,i,F),T=it.pathRef(e,g?gt.next(p):p),N=it.pathRef(e,P?gt.next(F):F),I=it.pathRef(e,p);Jt.splitNodes(e,{at:i,match:t=>O?it.isBlock(e,t):Ft.isText(t)||it.isInline(e,t),mode:O?"lowest":"highest",voids:o});var L=it.pathRef(e,!j||j&&P?gt.next(F):F);if(Jt.insertNodes(e,S,{at:L.current,match:t=>Ft.isText(t)||it.isInline(e,t),mode:"highest",voids:o}),v&&k.length&&Jt.delete(e,{at:I.unref(),voids:o}),Jt.insertNodes(e,k,{at:T.current,match:t=>it.isBlock(e,t),mode:"lowest",voids:o}),Jt.insertNodes(e,D,{at:N.current,match:t=>Ft.isText(t)||it.isInline(e,t),mode:"highest",voids:o}),!n.at){var M;M=D.length>0?gt.previous(N.current):k.length>0?gt.previous(T.current):gt.previous(L.current);var R=it.end(e,M);Jt.select(e,R)}L.unref(),T.unref(),N.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};it.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(gt.isPath(o)&&(o=it.range(e,o)),St.isRange(o))if(St.isCollapsed(o))o=o.anchor;else{var i=St.end(o);if(!r&&it.void(e,{at:i}))return;var a=it.pointRef(e,i);Jt.delete(e,{at:o,voids:r}),o=a.unref(),Jt.setSelection(e,{anchor:o,focus:o})}if(r||!it.void(e,{at:o})){var{path:l,offset:u}=o;t.length>0&&e.apply({type:"insert_text",path:l,offset:u,text:t})}}}))}};function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jt=Yt(Yt(Yt(Yt({},Nt),zt),qt),Kt),Zt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function Xt(e){var t={exports:{}};return e(t,t.exports),t.exports}var Qt=9007199254740991,en="[object Arguments]",tn="[object Function]",nn="[object GeneratorFunction]",rn="[object Map]",on="[object Object]",an="[object Promise]",ln="[object Set]",un="[object String]",sn="[object WeakMap]",cn="[object DataView]",fn=/[\\^$.*+?()[\]{}|]/g,dn=/^\[object .+?Constructor\]$/,pn=/^(?:0|[1-9]\d*)$/,hn="\\ud800-\\udfff",gn="\\u0300-\\u036f\\ufe20-\\ufe23",vn="\\u20d0-\\u20f0",mn="\\ufe0e\\ufe0f",yn="["+hn+"]",bn="["+gn+vn+"]",wn="\\ud83c[\\udffb-\\udfff]",xn="(?:"+bn+"|"+wn+")",Cn="[^"+hn+"]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",Sn="[\\ud800-\\udbff][\\udc00-\\udfff]",kn="\\u200d",Dn=xn+"?",An="["+mn+"]?",On="(?:"+kn+"(?:"+[Cn,En,Sn].join("|")+")"+An+Dn+")*",_n=An+Dn+On,Bn="(?:"+[Cn+bn+"?",bn,En,Sn,yn].join("|")+")",Fn=RegExp(wn+"(?="+wn+")|"+Bn+_n,"g"),jn=RegExp("["+kn+hn+gn+vn+mn+"]"),Pn="object"==typeof Zt&&Zt&&Zt.Object===Object&&Zt,Tn="object"==typeof self&&self&&self.Object===Object&&self,Nn=Pn||Tn||Function("return this")();function In(e,t){var n=-1,r=e?e.length:0,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}function Ln(e){return e.split("")}function Mn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Rn(e,t){return In(t,(function(t){return e[t]}))}function zn(e,t){return null==e?void 0:e[t]}function Vn(e){return jn.test(e)}function $n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function Un(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function Hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Wn(e,t){return function(n){return e(t(n))}}function qn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Kn(e){return Vn(e)?Gn(e):Ln(e)}function Gn(e){return e.match(Fn)||[]}var Yn=Function.prototype,Jn=Object.prototype,Zn=Nn["__core-js_shared__"],Xn=function(){var e=/[^.]+$/.exec(Zn&&Zn.keys&&Zn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Qn=Yn.toString,er=Jn.hasOwnProperty,tr=Jn.toString,nr=RegExp("^"+Qn.call(er).replace(fn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rr=Nn.Symbol,or=rr?rr.iterator:void 0,ir=Jn.propertyIsEnumerable,ar=Wn(Object.keys,Object),lr=Cr(Nn,"DataView"),ur=Cr(Nn,"Map"),sr=Cr(Nn,"Promise"),cr=Cr(Nn,"Set"),fr=Cr(Nn,"WeakMap"),dr=Ar(lr),pr=Ar(ur),hr=Ar(sr),gr=Ar(cr),vr=Ar(fr);function mr(e,t){var n=_r(e)||Or(e)?Mn(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!er.call(e,i)||o&&("length"==i||Sr(i,r))||n.push(i);return n}function yr(e){return tr.call(e)}function br(e){if(!Tr(e)||kr(e))return!1;var t=jr(e)||$n(e)?nr:dn;return t.test(Ar(e))}function wr(e){if(!Dr(e))return ar(e);var t=[];for(var n in Object(e))er.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xr(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}function Cr(e,t){var n=zn(e,t);return br(n)?n:void 0}var Er=yr;function Sr(e,t){return t=null==t?Qt:t,!!t&&("number"==typeof e||pn.test(e))&&e>-1&&e%1==0&&e<t}function kr(e){return!!Xn&&Xn in e}function Dr(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Jn;return e===n}function Ar(e){if(null!=e){try{return Qn.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Or(e){return Fr(e)&&er.call(e,"callee")&&(!ir.call(e,"callee")||tr.call(e)==en)}(lr&&Er(new lr(new ArrayBuffer(1)))!=cn||ur&&Er(new ur)!=rn||sr&&Er(sr.resolve())!=an||cr&&Er(new cr)!=ln||fr&&Er(new fr)!=sn)&&(Er=function(e){var t=tr.call(e),n=t==on?e.constructor:void 0,r=n?Ar(n):void 0;if(r)switch(r){case dr:return cn;case pr:return rn;case hr:return an;case gr:return ln;case vr:return sn}return t});var _r=Array.isArray;function Br(e){return null!=e&&Pr(e.length)&&!jr(e)}function Fr(e){return Nr(e)&&Br(e)}function jr(e){var t=Tr(e)?tr.call(e):"";return t==tn||t==nn}function Pr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Qt}function Tr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Nr(e){return!!e&&"object"==typeof e}function Ir(e){return"string"==typeof e||!_r(e)&&Nr(e)&&tr.call(e)==un}function Lr(e){if(!e)return[];if(Br(e))return Ir(e)?Kn(e):xr(e);if(or&&e[or])return Un(e[or]());var t=Er(e),n=t==rn?Hn:t==ln?qn:Rr;return n(e)}function Mr(e){return Br(e)?mr(e):wr(e)}function Rr(e){return e?Rn(e,Mr(e)):[]}var zr=Lr;function Vr(e){return null!==e&&"object"===typeof e&&"constructor"in e&&e.constructor===Object}function $r(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){"undefined"===typeof e[n]?e[n]=t[n]:Vr(t[n])&&Vr(e[n])&&Object.keys(t[n]).length>0&&$r(e[n],t[n])}))}var Ur={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 Hr(){var e="undefined"!==typeof document?document:{};return $r(e,Ur),e}var Wr={document:Ur,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)}};function qr(){var e="undefined"!==typeof window?window:{};return $r(e,Wr),e}function Kr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Gr(e){return Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gr(e)}function Yr(e,t){return Yr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yr(e,t)}function Jr(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Zr(e,t,n){return Zr=Jr()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&Yr(i,n.prototype),i},Zr.apply(null,arguments)}function Xr(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Qr(e){var t="function"===typeof Map?new Map:void 0;return Qr=function(e){if(null===e||!Xr(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Zr(e,arguments,Gr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Yr(n,e)},Qr(e)}function eo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function to(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(e){t.__proto__=e}})}var no=function(e){function t(t){var n;return n=e.call.apply(e,[this].concat(t))||this,to(eo(n)),n}return Kr(t,e),t}(Qr(Array));function ro(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,ro(e)):t.push(e)})),t}function oo(e,t){return Array.prototype.filter.call(e,t)}function io(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function ao(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function lo(e,t){if("string"!==typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}function uo(e,t){var n=qr(),r=Hr(),o=[];if(!t&&e instanceof no)return e;if(!e)return new no(o);if("string"===typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var l=r.createElement(a);l.innerHTML=i;for(var u=0;u<l.childNodes.length;u+=1)o.push(l.childNodes[u])}else o=lo(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof no)return e;o=e}return new no(io(o))}function so(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=ro(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function co(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=ro(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function fo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=ro(t.map((function(e){return e.split(" ")})));return oo(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function po(e,t){if(1===arguments.length&&"string"===typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function ho(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function go(){var e=this[0];if(e){var t={};if(e.dataset)for(var n in e.dataset)t[n]=e.dataset[n];else for(var r=0;r<e.attributes.length;r+=1){var o=e.attributes[r];o.name.indexOf("data-")>=0&&(t[ao(o.name.split("data-")[1])]=o.value)}for(var i in t)"false"===t[i]?t[i]=!1:"true"===t[i]?t[i]=!0:parseFloat(t[i])===1*t[i]&&(t[i]*=1);return t}}function vo(e){if("undefined"===typeof e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function mo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function l(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),uo(t).is(o))i.apply(t,n);else for(var r=uo(t).parents(),a=0;a<r.length;a+=1)uo(r[a]).is(o)&&i.apply(r[a],n)}}function u(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"===typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var s,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(s=0;s<c.length;s+=1){var p=c[s];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:l}),d.addEventListener(p,l,a)}else for(s=0;s<c.length;s+=1){var h=c[s];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:u}),d.addEventListener(h,u,a)}}return this}function yo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"===typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l=r.split(" "),u=0;u<l.length;u+=1)for(var s=l[u],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[s]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[s]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(s,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(s,h.proxyListener,a),d.splice(p,1))}}return this}function bo(){var e=qr();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function wo(){var e=qr();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function xo(){if(this.length>0){var e=qr(),t=Hr(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,l=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+l-i,left:r.left+u-a}}return null}function Co(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Eo(){for(var e=qr(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function So(e,t){var n,r=qr();if(1===arguments.length){if("string"!==typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"===typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function ko(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Do(e){var t=oo(this,e);return uo(t)}function Ao(e){if("undefined"===typeof e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Oo(e){if("undefined"===typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function _o(e){var t,n,r=qr(),o=Hr(),i=this[0];if(!i||"undefined"===typeof e)return!1;if("string"===typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=uo(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof no){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Bo(){for(var e,t=Hr(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"===typeof e){var o=t.createElement("div");o.innerHTML=e;while(o.firstChild)this[r].appendChild(o.firstChild)}else if(e instanceof no)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Fo(e){var t,n,r=Hr();for(t=0;t<this.length;t+=1)if("string"===typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof no)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function jo(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?uo(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return uo(t)}function Po(e){for(var t=[],n=0;n<this.length;n+=1){var r=this[n].parentNode;while(r)e?uo(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return uo(t)}function To(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return uo(t)}function No(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!uo(r[o]).is(e)||t.push(r[o]);return uo(t)}function Io(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Lo(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}uo.fn=no.prototype;var Mo="resize scroll".split(" ");function Ro(e){function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if("undefined"===typeof n[0]){for(var o=0;o<this.length;o+=1)Mo.indexOf(e)<0&&(e in this[o]?this[o][e]():uo(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}return t}var zo=Ro("click"),Vo=Ro("focus"),$o=9007199254740991,Uo="[object Arguments]",Ho="[object Function]",Wo="[object GeneratorFunction]",qo=/^(?:0|[1-9]\d*)$/;function Ko(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Go(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Yo(e,t){return function(n){return e(t(n))}}var Jo=Object.prototype,Zo=Jo.hasOwnProperty,Xo=Jo.toString,Qo=Jo.propertyIsEnumerable,ei=Yo(Object.keys,Object);function ti(e,t){var n=di(e)||fi(e)?Go(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Zo.call(e,i)||o&&("length"==i||ui(i,r))||n.push(i);return n}var ni=ai(oi),ri=li();function oi(e,t){return e&&ri(e,t,bi)}function ii(e){if(!si(e))return ei(e);var t=[];for(var n in Object(e))Zo.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ai(e,t){return function(n,r){if(null==n)return n;if(!pi(n))return e(n,r);var o=n.length,i=t?o:-1,a=Object(n);while(t?i--:++i<o)if(!1===r(a[i],i,a))break;return n}}function li(e){return function(t,n,r){var o=-1,i=Object(t),a=r(t),l=a.length;while(l--){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}function ui(e,t){return t=null==t?$o:t,!!t&&("number"==typeof e||qo.test(e))&&e>-1&&e%1==0&&e<t}function si(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Jo;return e===n}function ci(e,t){var n=di(e)?Ko:ni;return n(e,"function"==typeof t?t:wi)}function fi(e){return hi(e)&&Zo.call(e,"callee")&&(!Qo.call(e,"callee")||Xo.call(e)==Uo)}var di=Array.isArray;function pi(e){return null!=e&&vi(e.length)&&!gi(e)}function hi(e){return yi(e)&&pi(e)}function gi(e){var t=mi(e)?Xo.call(e):"";return t==Ho||t==Wo}function vi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=$o}function mi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function yi(e){return!!e&&"object"==typeof e}function bi(e){return pi(e)?ti(e):ii(e)}function wi(e){return e}var xi=ci;if("undefined"!==typeof navigator&&"ReactNative"===navigator.product&&"undefined"===typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!==typeof msCrypto&&"undefined"===typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"===typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let Ci=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));while(e--){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Ei="Expected a function",Si=NaN,ki="[object Symbol]",Di=/^\s+|\s+$/g,Ai=/^[-+]0x[0-9a-f]+$/i,Oi=/^0b[01]+$/i,_i=/^0o[0-7]+$/i,Bi=parseInt,Fi="object"==typeof Zt&&Zt&&Zt.Object===Object&&Zt,ji="object"==typeof self&&self&&self.Object===Object&&self,Pi=Fi||ji||Function("return this")(),Ti=Object.prototype,Ni=Ti.toString,Ii=Math.max,Li=Math.min,Mi=function(){return Pi.Date.now()};function Ri(e,t,n){var r,o,i,a,l,u,s=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError(Ei);function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n),a}function h(e){return s=e,l=setTimeout(m,t),c?p(e):a}function g(e){var n=e-u,r=e-s,o=t-n;return f?Li(o,i-r):o}function v(e){var n=e-u,r=e-s;return void 0===u||n>=t||n<0||f&&r>=i}function m(){var e=Mi();if(v(e))return y(e);l=setTimeout(m,g(e))}function y(e){return l=void 0,d&&r?p(e):(r=o=void 0,a)}function b(){void 0!==l&&clearTimeout(l),s=0,r=u=o=l=void 0}function w(){return void 0===l?a:y(Mi())}function x(){var e=Mi(),n=v(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return h(u);if(f)return l=setTimeout(m,t),p(u)}return void 0===l&&(l=setTimeout(m,t)),a}return t=Hi(t)||0,Vi(n)&&(c=!!n.leading,f="maxWait"in n,i=f?Ii(Hi(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=b,x.flush=w,x}function zi(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(Ei);return Vi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ri(e,t,{leading:r,maxWait:t,trailing:o})}function Vi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $i(e){return!!e&&"object"==typeof e}function Ui(e){return"symbol"==typeof e||$i(e)&&Ni.call(e)==ki}function Hi(e){if("number"==typeof e)return e;if(Ui(e))return Si;if(Vi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Vi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Di,"");var n=Oi.test(e);return n||_i.test(e)?Bi(e.slice(2),n?2:8):Ai.test(e)?Si:+e}var Wi=zi;function qi(e,t){return document.createElement(e,t)}function Ki(e,t,n){return document.createElementNS(e,t,n)}function Gi(e){return document.createTextNode(e)}function Yi(e){return document.createComment(e)}function Ji(e,t,n){e.insertBefore(t,n)}function Zi(e,t){e.removeChild(t)}function Xi(e,t){e.appendChild(t)}function Qi(e){return e.parentNode}function ea(e){return e.nextSibling}function ta(e){return e.tagName}function na(e,t){e.textContent=t}function ra(e){return e.textContent}function oa(e){return 1===e.nodeType}function ia(e){return 3===e.nodeType}function aa(e){return 8===e.nodeType}const la={createElement:qi,createElementNS:Ki,createTextNode:Gi,createComment:Yi,insertBefore:Ji,removeChild:Zi,appendChild:Xi,parentNode:Qi,nextSibling:ea,tagName:ta,setTextContent:na,getTextContent:ra,isElement:oa,isText:ia,isComment:aa};function ua(e,t,n,r,o){const i=void 0===t?void 0:t.key;return{sel:e,data:t,children:n,text:r,elm:o,key:i}}const sa=Array.isArray;function ca(e){return"string"===typeof e||"number"===typeof e||e instanceof String||e instanceof Number}function fa(e){return void 0===e}function da(e){return void 0!==e}const pa=ua("",{},[],void 0,void 0);function ha(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is),a=e.sel===t.sel;return a&&o&&i}function ga(e){return void 0!==e.sel}function va(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const ma=["create","update","remove","destroy","pre","post"];function ya(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:la;for(const d of ma)for(const t of e){const e=t[d];void 0!==e&&n[d].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return ua(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0===--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let l,u=e.data;if(void 0!==u){const t=null===(o=u.hook)||void 0===o?void 0:o.init;da(t)&&(t(e),u=e.data)}const s=e.children,c=e.sel;if("!"===c)fa(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=da(u)&&da(l=u.ns)?r.createElementNS(l,h,u):r.createElement(h,u);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),l=0;l<n.create.length;++l)n.create[l](pa,e);if(sa(s))for(l=0;l<s.length;++l){const e=s[l];null!=e&&r.appendChild(g,a(e,t))}else ca(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;da(v)&&(null===(i=v.create)||void 0===i||i.call(v,pa,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function l(e,t,n,o,i,l){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,l),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null===o||void 0===o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!==typeof n&&u(n)}}}function s(e,t,o,a){for(var l,s;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(da(f.sel)){u(f),a=n.remove.length+1,c=i(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(s=null===(l=null===f||void 0===f?void 0:f.data)||void 0===l?void 0:l.hook)||void 0===s?void 0:s.remove;da(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,n,o){let i,u,c,d,p=0,h=0,g=t.length-1,v=t[0],m=t[g],y=n.length-1,b=n[0],w=n[y];while(p<=g&&h<=y)null==v?v=t[++p]:null==m?m=t[--g]:null==b?b=n[++h]:null==w?w=n[--y]:ha(v,b)?(f(v,b,o),v=t[++p],b=n[++h]):ha(m,w)?(f(m,w,o),m=t[--g],w=n[--y]):ha(v,w)?(f(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(m.elm)),v=t[++p],w=n[--y]):ha(m,b)?(f(m,b,o),r.insertBefore(e,m.elm,v.elm),m=t[--g],b=n[++h]):(void 0===i&&(i=va(t,p,g)),u=i[b.key],fa(u)?r.insertBefore(e,a(b,o),v.elm):(c=t[u],c.sel!==b.sel?r.insertBefore(e,a(b,o),v.elm):(f(c,b,o),t[u]=void 0,r.insertBefore(e,c.elm,v.elm))),b=n[++h]);(p<=g||h<=y)&&(p>g?(d=null==n[y+1]?null:n[y+1].elm,l(e,d,n,h,y,o)):s(e,t,p,g))}function f(e,t,o){var i,a,u,f,d;const p=null===(i=t.data)||void 0===i?void 0:i.hook;null===(a=null===p||void 0===p?void 0:p.prepatch)||void 0===a||a.call(p,e,t);const h=t.elm=e.elm,g=e.children,v=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(f=null===(u=t.data.hook)||void 0===u?void 0:u.update)||void 0===f||f.call(u,e,t)}fa(t.text)?da(g)&&da(v)?g!==v&&c(h,g,v,o):da(v)?(da(e.text)&&r.setTextContent(h,""),l(h,null,v,0,v.length-1,o)):da(g)?s(h,g,0,g.length-1):da(e.text)&&r.setTextContent(h,""):e.text!==t.text&&(da(g)&&s(h,g,0,g.length-1),r.setTextContent(h,t.text)),null===(d=null===p||void 0===p?void 0:p.postpatch)||void 0===d||d.call(p,e,t)}}return function(e,t){let i,l,u;const c=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(ga(e)||(e=o(e)),ha(e,t)?f(e,t,c):(l=e.elm,u=r.parentNode(l),a(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(l)),s(u,[e],0,0))),i=0;i<c.length;++i)c[i].data.hook.insert(c[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function ba(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&ba(e,t[r].children,t[r].sel)}}function wa(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),sa(n)?r=n:ca(n)?o=n.toString():n&&n.sel&&(r=[n])):void 0!==t&&null!==t&&(sa(t)?r=t:ca(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)ca(r[i])&&(r[i]=ua(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||ba(a,r,e),ua(e,a,r,o,void 0)}function xa(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Ca={create:xa,update:xa},Ea=/[A-Z]/g;function Sa(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(Ea,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Ea,"-$&").toLowerCase(),i[r]))}const ka={create:Sa,update:Sa};function Da(e,t,n){if("function"===typeof e)e.call(t,n,t);else if("object"===typeof e)for(let r=0;r<e.length;r++)Da(e[r],t,n)}function Aa(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Da(r[n],t,e)}function Oa(){return function e(t){Aa(t,e.vnode)}}function _a(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let l;if(n!==i){if(n&&r)if(i)for(l in n)i[l]||o.removeEventListener(l,r,!1);else for(l in n)o.removeEventListener(l,r,!1);if(i){const r=t.listener=e.listener||Oa();if(r.vnode=t,n)for(l in i)n[l]||a.addEventListener(l,r,!1);else for(l in i)a.addEventListener(l,r,!1)}}}const Ba={create:_a,update:_a,destroy:_a};function Fa(e,t){let n,r,o;const i=t.elm;let a=e.data.props,l=t.data.props;if((a||l)&&a!==l)for(n in a=a||{},l=l||{},l)r=l[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const ja={create:Fa,update:Fa},Pa="undefined"!==typeof window&&window.requestAnimationFrame.bind(window)||setTimeout,Ta=function(e){Pa((function(){Pa(e)}))};let Na=!1;function Ia(e,t,n){Ta((function(){e[t]=n}))}function La(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const l="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],l&&n===i.delayed[e]||Ia(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}function Ma(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]}function Ra(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Na||(e.elm.offsetLeft,Na=!0);const o=e.elm;let i=0;const a=n.remove;let l=0;const u=[];for(r in a)u.push(r),o.style[r]=a[r];const s=getComputedStyle(o),c=s["transition-property"].split(", ");for(;i<c.length;++i)-1!==u.indexOf(c[i])&&l++;o.addEventListener("transitionend",(function(e){e.target===o&&--l,0===l&&t()}))}function za(){Na=!1}const Va={pre:za,create:La,update:La,destroy:Ma,remove:Ra};function $a(e,t){for(const n of e)void 0!==n&&null!==n&&!1!==n&&""!==n&&(Array.isArray(n)?$a(n,t):"string"===typeof n||"number"===typeof n||"boolean"===typeof n?t.push(ua(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Ua(e,t,...n){const r=$a(n,[]);return"function"===typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?wa(e,t,r[0].text):wa(e,t,r)}Ua||(Ua={});var Ha=1/0,Wa="[object Symbol]",qa=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ka=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ga="\\ud800-\\udfff",Ya="\\u0300-\\u036f\\ufe20-\\ufe23",Ja="\\u20d0-\\u20f0",Za="\\u2700-\\u27bf",Xa="a-z\\xdf-\\xf6\\xf8-\\xff",Qa="\\xac\\xb1\\xd7\\xf7",el="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tl="\\u2000-\\u206f",nl=" \\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",rl="A-Z\\xc0-\\xd6\\xd8-\\xde",ol="\\ufe0e\\ufe0f",il=Qa+el+tl+nl,al="['’]",ll="["+Ga+"]",ul="["+il+"]",sl="["+Ya+Ja+"]",cl="\\d+",fl="["+Za+"]",dl="["+Xa+"]",pl="[^"+Ga+il+cl+Za+Xa+rl+"]",hl="\\ud83c[\\udffb-\\udfff]",gl="(?:"+sl+"|"+hl+")",vl="[^"+Ga+"]",ml="(?:\\ud83c[\\udde6-\\uddff]){2}",yl="[\\ud800-\\udbff][\\udc00-\\udfff]",bl="["+rl+"]",wl="\\u200d",xl="(?:"+dl+"|"+pl+")",Cl="(?:"+bl+"|"+pl+")",El="(?:"+al+"(?:d|ll|m|re|s|t|ve))?",Sl="(?:"+al+"(?:D|LL|M|RE|S|T|VE))?",kl=gl+"?",Dl="["+ol+"]?",Al="(?:"+wl+"(?:"+[vl,ml,yl].join("|")+")"+Dl+kl+")*",Ol=Dl+kl+Al,_l="(?:"+[fl,ml,yl].join("|")+")"+Ol,Bl="(?:"+[vl+sl+"?",sl,ml,yl,ll].join("|")+")",Fl=RegExp(al,"g"),jl=RegExp(sl,"g"),Pl=RegExp(hl+"(?="+hl+")|"+Bl+Ol,"g"),Tl=RegExp([bl+"?"+dl+"+"+El+"(?="+[ul,bl,"$"].join("|")+")",Cl+"+"+Sl+"(?="+[ul,bl+xl,"$"].join("|")+")",bl+"?"+xl+"+"+El,bl+"+"+Sl,cl,_l].join("|"),"g"),Nl=RegExp("["+wl+Ga+Ya+Ja+ol+"]"),Il=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ll={"À":"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"},Ml="object"==typeof Zt&&Zt&&Zt.Object===Object&&Zt,Rl="object"==typeof self&&self&&self.Object===Object&&self,zl=Ml||Rl||Function("return this")();function Vl(e,t,n,r){var o=-1,i=e?e.length:0;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function $l(e){return e.split("")}function Ul(e){return e.match(qa)||[]}function Hl(e){return function(t){return null==e?void 0:e[t]}}var Wl=Hl(Ll);function ql(e){return Nl.test(e)}function Kl(e){return Il.test(e)}function Gl(e){return ql(e)?Yl(e):$l(e)}function Yl(e){return e.match(Pl)||[]}function Jl(e){return e.match(Tl)||[]}var Zl=Object.prototype,Xl=Zl.toString,Ql=zl.Symbol,eu=Ql?Ql.prototype:void 0,tu=eu?eu.toString:void 0;function nu(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;var i=Array(o);while(++r<o)i[r]=e[r+t];return i}function ru(e){if("string"==typeof e)return e;if(uu(e))return tu?tu.call(e):"";var t=e+"";return"0"==t&&1/e==-Ha?"-0":t}function ou(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:nu(e,t,n)}function iu(e){return function(t){t=su(t);var n=ql(t)?Gl(t):void 0,r=n?n[0]:t.charAt(0),o=n?ou(n,1).join(""):t.slice(1);return r[e]()+o}}function au(e){return function(t){return Vl(hu(du(t).replace(Fl,"")),e,"")}}function lu(e){return!!e&&"object"==typeof e}function uu(e){return"symbol"==typeof e||lu(e)&&Xl.call(e)==Wa}function su(e){return null==e?"":ru(e)}var cu=au((function(e,t,n){return t=t.toLowerCase(),e+(n?fu(t):t)}));function fu(e){return pu(su(e).toLowerCase())}function du(e){return e=su(e),e&&e.replace(Ka,Wl).replace(jl,"")}var pu=iu("toUpperCase");function hu(e,t,n){return e=su(e),t=n?void 0:t,void 0===t?Kl(e)?Jl(e):Ul(e):e.match(t)||[]}for(var gu=cu,vu="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),mu={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},yu={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:vu?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},bu={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},wu=1;wu<20;wu++)bu["f"+wu]=111+wu;function xu(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return Eu(e,t)})),o=function(e){return r.some((function(t){return Su(t,e)}))},i=null==n?o:o(n);return i}function Cu(e,t){return xu(e,{byKey:!0},t)}function Eu(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var a in mu)r[mu[a]]=!1;var l=!0,u=!1,s=void 0;try{for(var c,f=o[Symbol.iterator]();!(l=(c=f.next()).done);l=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Du(d),g=mu[h];if(d.length>1&&!g&&!yu[d]&&!bu[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=ku(d)),g&&(r[g]=!p||null)}}catch(v){u=!0,s=v}finally{try{!l&&f.return&&f.return()}finally{if(u)throw s}}return r}function Su(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n],(null!=o||!1!==r)&&o!==r))return!1}return!0}function ku(e){e=Du(e);var t=bu[e]||e.toUpperCase().charCodeAt(0);return t}function Du(e){return e=e.toLowerCase(),e=yu[e]||e,e}var Au=xu,Ou=Cu,_u="Expected a function",Bu=NaN,Fu="[object Symbol]",ju=/^\s+|\s+$/g,Pu=/^[-+]0x[0-9a-f]+$/i,Tu=/^0b[01]+$/i,Nu=/^0o[0-7]+$/i,Iu=parseInt,Lu="object"==typeof Zt&&Zt&&Zt.Object===Object&&Zt,Mu="object"==typeof self&&self&&self.Object===Object&&self,Ru=Lu||Mu||Function("return this")(),zu=Object.prototype,Vu=zu.toString,$u=Math.max,Uu=Math.min,Hu=function(){return Ru.Date.now()};function Wu(e,t,n){var r,o,i,a,l,u,s=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError(_u);function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n),a}function h(e){return s=e,l=setTimeout(m,t),c?p(e):a}function g(e){var n=e-u,r=e-s,o=t-n;return f?Uu(o,i-r):o}function v(e){var n=e-u,r=e-s;return void 0===u||n>=t||n<0||f&&r>=i}function m(){var e=Hu();if(v(e))return y(e);l=setTimeout(m,g(e))}function y(e){return l=void 0,d&&r?p(e):(r=o=void 0,a)}function b(){void 0!==l&&clearTimeout(l),s=0,r=u=o=l=void 0}function w(){return void 0===l?a:y(Hu())}function x(){var e=Hu(),n=v(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return h(u);if(f)return l=setTimeout(m,t),p(u)}return void 0===l&&(l=setTimeout(m,t)),a}return t=Yu(t)||0,qu(n)&&(c=!!n.leading,f="maxWait"in n,i=f?$u(Yu(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=b,x.flush=w,x}function qu(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ku(e){return!!e&&"object"==typeof e}function Gu(e){return"symbol"==typeof e||Ku(e)&&Vu.call(e)==Fu}function Yu(e){if("number"==typeof e)return e;if(Gu(e))return Bu;if(qu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ju,"");var n=Tu.test(e);return n||Nu.test(e)?Iu(e.slice(2),n?2:8):Pu.test(e)?Bu:+e}var Ju,Zu=Wu,Xu=Xt((function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",l="[object Boolean]",u="[object Date]",s="[object Error]",c="[object Function]",f="[object GeneratorFunction]",d="[object Map]",p="[object Number]",h="[object Object]",g="[object Promise]",v="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",k="[object Int8Array]",D="[object Int16Array]",A="[object Int32Array]",O="[object Uint8Array]",_="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,P=/\w*$/,T=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,I={};I[i]=I[a]=I[x]=I[C]=I[l]=I[u]=I[E]=I[S]=I[k]=I[D]=I[A]=I[d]=I[p]=I[h]=I[v]=I[m]=I[y]=I[b]=I[O]=I[_]=I[B]=I[F]=!0,I[s]=I[c]=I[w]=!1;var L="object"==typeof Zt&&Zt&&Zt.Object===Object&&Zt,M="object"==typeof self&&self&&self.Object===Object&&self,R=L||M||Function("return this")(),z=t&&!t.nodeType&&t,V=z&&e&&!e.nodeType&&e,$=V&&V.exports===z;function U(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function W(e,t){var n=-1,r=e?e.length:0;while(++n<r)if(!1===t(e[n],n,e))break;return e}function q(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function K(e,t,n,r){var o=-1,i=e?e.length:0;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function G(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Y(e,t){return null==e?void 0:e[t]}function J(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function Z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function X(e,t){return function(n){return e(t(n))}}function Q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ee=Array.prototype,te=Function.prototype,ne=Object.prototype,re=R["__core-js_shared__"],oe=function(){var e=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ie=te.toString,ae=ne.hasOwnProperty,le=ne.toString,ue=RegExp("^"+ie.call(ae).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=$?R.Buffer:void 0,ce=R.Symbol,fe=R.Uint8Array,de=X(Object.getPrototypeOf,Object),pe=Object.create,he=ne.propertyIsEnumerable,ge=ee.splice,ve=Object.getOwnPropertySymbols,me=se?se.isBuffer:void 0,ye=X(Object.keys,Object),be=kt(R,"DataView"),we=kt(R,"Map"),xe=kt(R,"Promise"),Ce=kt(R,"Set"),Ee=kt(R,"WeakMap"),Se=kt(Object,"create"),ke=Nt(be),De=Nt(we),Ae=Nt(xe),Oe=Nt(Ce),_e=Nt(Ee),Be=ce?ce.prototype:void 0,Fe=Be?Be.valueOf:void 0;function je(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Pe(){this.__data__=Se?Se(null):{}}function Te(e){return this.has(e)&&delete this.__data__[e]}function Ne(e){var t=this.__data__;if(Se){var n=t[e];return n===r?void 0:n}return ae.call(t,e)?t[e]:void 0}function Ie(e){var t=this.__data__;return Se?void 0!==t[e]:ae.call(t,e)}function Le(e,t){var n=this.__data__;return n[e]=Se&&void 0===t?r:t,this}function Me(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Re(){this.__data__=[]}function ze(e){var t=this.__data__,n=ot(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ge.call(t,n,1),!0}function Ve(e){var t=this.__data__,n=ot(t,e);return n<0?void 0:t[n][1]}function $e(e){return ot(this.__data__,e)>-1}function Ue(e,t){var n=this.__data__,r=ot(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function He(e){var t=-1,n=e?e.length:0;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function We(){this.__data__={hash:new je,map:new(we||Me),string:new je}}function qe(e){return St(this,e)["delete"](e)}function Ke(e){return St(this,e).get(e)}function Ge(e){return St(this,e).has(e)}function Ye(e,t){return St(this,e).set(e,t),this}function Je(e){this.__data__=new Me(e)}function Ze(){this.__data__=new Me}function Xe(e){return this.__data__["delete"](e)}function Qe(e){return this.__data__.get(e)}function et(e){return this.__data__.has(e)}function tt(e,t){var r=this.__data__;if(r instanceof Me){var o=r.__data__;if(!we||o.length<n-1)return o.push([e,t]),this;r=this.__data__=new He(o)}return r.set(e,t),this}function nt(e,t){var n=Rt(e)||Mt(e)?G(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!ae.call(e,i)||o&&("length"==i||Ft(i,r))||n.push(i);return n}function rt(e,t,n){var r=e[t];ae.call(e,t)&&Lt(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function ot(e,t){var n=e.length;while(n--)if(Lt(e[n][0],t))return n;return-1}function it(e,t){return e&&xt(t,Kt(t),e)}function at(e,t,n,r,o,a,l){var u;if(r&&(u=a?r(e,o,a,l):r(e)),void 0!==u)return u;if(!Wt(e))return e;var s=Rt(e);if(s){if(u=Ot(e),!t)return wt(e,u)}else{var d=At(e),p=d==c||d==f;if($t(e))return dt(e,t);if(d==h||d==i||p&&!a){if(J(e))return a?e:{};if(u=_t(p?{}:e),!t)return Ct(e,it(u,e))}else{if(!I[d])return a?e:{};u=Bt(e,d,at,t)}}l||(l=new Je);var g=l.get(e);if(g)return g;if(l.set(e,u),!s)var v=n?Et(e):Kt(e);return W(v||e,(function(o,i){v&&(i=o,o=e[i]),rt(u,i,at(o,t,n,r,i,e,l))})),u}function lt(e){return Wt(e)?pe(e):{}}function ut(e,t,n){var r=t(e);return Rt(e)?r:q(r,n(e))}function st(e){return le.call(e)}function ct(e){if(!Wt(e)||Pt(e))return!1;var t=Ut(e)||J(e)?ue:T;return t.test(Nt(e))}function ft(e){if(!Tt(e))return ye(e);var t=[];for(var n in Object(e))ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}function dt(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function pt(e){var t=new e.constructor(e.byteLength);return new fe(t).set(new fe(e)),t}function ht(e,t){var n=t?pt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gt(e,t,n){var r=t?n(Z(e),!0):Z(e);return K(r,U,new e.constructor)}function vt(e){var t=new e.constructor(e.source,P.exec(e));return t.lastIndex=e.lastIndex,t}function mt(e,t,n){var r=t?n(Q(e),!0):Q(e);return K(r,H,new e.constructor)}function yt(e){return Fe?Object(Fe.call(e)):{}}function bt(e,t){var n=t?pt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function wt(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}function xt(e,t,n,r){n||(n={});var o=-1,i=t.length;while(++o<i){var a=t[o],l=r?r(n[a],e[a],a,n,e):void 0;rt(n,a,void 0===l?e[a]:l)}return n}function Ct(e,t){return xt(e,Dt(e),t)}function Et(e){return ut(e,Kt,Dt)}function St(e,t){var n=e.__data__;return jt(t)?n["string"==typeof t?"string":"hash"]:n.map}function kt(e,t){var n=Y(e,t);return ct(n)?n:void 0}je.prototype.clear=Pe,je.prototype["delete"]=Te,je.prototype.get=Ne,je.prototype.has=Ie,je.prototype.set=Le,Me.prototype.clear=Re,Me.prototype["delete"]=ze,Me.prototype.get=Ve,Me.prototype.has=$e,Me.prototype.set=Ue,He.prototype.clear=We,He.prototype["delete"]=qe,He.prototype.get=Ke,He.prototype.has=Ge,He.prototype.set=Ye,Je.prototype.clear=Ze,Je.prototype["delete"]=Xe,Je.prototype.get=Qe,Je.prototype.has=et,Je.prototype.set=tt;var Dt=ve?X(ve,Object):Gt,At=st;function Ot(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ae.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function _t(e){return"function"!=typeof e.constructor||Tt(e)?{}:lt(de(e))}function Bt(e,t,n,r){var o=e.constructor;switch(t){case x:return pt(e);case l:case u:return new o(+e);case C:return ht(e,r);case E:case S:case k:case D:case A:case O:case _:case B:case F:return bt(e,r);case d:return gt(e,r,n);case p:case y:return new o(e);case v:return vt(e);case m:return mt(e,r,n);case b:return yt(e)}}function Ft(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function jt(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Pt(e){return!!oe&&oe in e}function Tt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ne;return e===n}function Nt(e){if(null!=e){try{return ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function It(e){return at(e,!0,!0)}function Lt(e,t){return e===t||e!==e&&t!==t}function Mt(e){return Vt(e)&&ae.call(e,"callee")&&(!he.call(e,"callee")||le.call(e)==i)}(be&&At(new be(new ArrayBuffer(1)))!=C||we&&At(new we)!=d||xe&&At(xe.resolve())!=g||Ce&&At(new Ce)!=m||Ee&&At(new Ee)!=w)&&(At=function(e){var t=le.call(e),n=t==h?e.constructor:void 0,r=n?Nt(n):void 0;if(r)switch(r){case ke:return C;case De:return d;case Ae:return g;case Oe:return m;case _e:return w}return t});var Rt=Array.isArray;function zt(e){return null!=e&&Ht(e.length)&&!Ut(e)}function Vt(e){return qt(e)&&zt(e)}var $t=me||Yt;function Ut(e){var t=Wt(e)?le.call(e):"";return t==c||t==f}function Ht(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Wt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qt(e){return!!e&&"object"==typeof e}function Kt(e){return zt(e)?nt(e):ft(e)}function Gt(){return[]}function Yt(){return!1}e.exports=It})),Qu=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function es(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ts=0;function ns(e){return"__private_"+ts+++"_"+e}function rs(e,t,n){const r=[];return e.forEach((e=>"string"!==typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
8
- /**
9
- * Takes a string with placeholder variables like `%{smart_count} file selected`
10
- * and replaces it with values from options `{smart_count: 5}`
11
- *
12
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
13
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
14
- *
15
- * @param {string} phrase that needs interpolation, with placeholders
16
- * @param {object} options with values that will be used to replace placeholders
17
- * @returns {any[]} interpolated
18
- */function os(e,t){const n=/\$/g,r="$$$$";let o=[e];if(null==t)return o;for(const i of Object.keys(t))if("_"!==i){let e=t[i];"string"===typeof e&&(e=n[Symbol.replace](e,r)),o=rs(o,new RegExp(`%\\{${i}\\}`,"g"),e)}return o}var is=(Ju=ns("apply"),class{constructor(e){Object.defineProperty(this,Ju,{value:as}),this.locale={strings:{},pluralize(e){return 1===e?0:1}},Array.isArray(e)?e.forEach(es(this,Ju)[Ju],this):es(this,Ju)[Ju](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!Qu(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e],r="object"===typeof n;if(r){if(t&&"undefined"!==typeof t.smart_count){const e=this.locale.pluralize(t.smart_count);return os(n[e],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return os(n,t)}});function as(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var ls=function(){var e={},t=e._fns={};function n(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,l=i.length;for(a;a<l;a++){var u=i[a];if("*"===u&&(n=n.concat(t[u])),2===o.length&&o[0]===u){n=n.concat(t[u]);break}}return n}function r(e,t,n){var r=0,o=t.length;for(r;r<o;r++){if(!t[r])break;t[r].event=e,t[r].apply(t[r],n)}}return e.emit=function(e,t,o,i,a,l,u){var s=n(e);s.length&&r(e,s,[t,o,i,a,l,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){function r(){n.apply(this,arguments),e.off(t,r)}this.on(t,r)},e.off=function(e,t){var n=[];if(e&&t){var r=this._fns[e],o=0,i=r?r.length:0;for(o;o<i;o++)r[o]!==t&&n.push(r[o])}n.length?this._fns[e]=n:delete this._fns[e]},e};let us="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var ss={urlAlphabet:us};let{urlAlphabet:cs}=ss;if("undefined"!==typeof navigator&&"ReactNative"===navigator.product&&"undefined"===typeof crypto)throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if("undefined"!==typeof msCrypto&&"undefined"===typeof crypto)throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if("undefined"===typeof crypto)throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.");let fs=e=>crypto.getRandomValues(new Uint8Array(e)),ds=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";while(1){let a=n(o),l=o;while(l--)if(i+=e[a[l]&r]||"",i.length===t)return i}}},ps=(e,t)=>ds(e,t,fs),hs=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));while(e--){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var gs={nanoid:hs,customAlphabet:ps,customRandom:ds,urlAlphabet:cs,random:fs},vs=function(e){if("number"!==typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1===0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function ms(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}ms.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var ys=function(e,t,n){var r=new ms(e,n||/[\/\.]/);return"undefined"!=typeof t?r.match(t):r},bs=/[\/\+\.]/,ws=function(e,t){function n(t){var n=ys(t,e,bs);return n&&n.length>=2}return t?n(t.split(";")[0]):n};function xs(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Cs=0;function Es(e){return"__private_"+Cs+++"_"+e}var Ss=Es("publish");class ks{constructor(){Object.defineProperty(this,Ss,{value:Ds}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,xs(this,Ss)[Ss](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}ks.VERSION="2.0.3";var As=function(){return new ks},Os=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},_s={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"},Bs=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Os(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in _s?_s[n]:"application/octet-stream"};function Fs(e){return e.charCodeAt(0).toString(32)}function js(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${Fs(e)}`,"/")))+t}var Ps=function(e){let t="uppy";return"string"===typeof e.name&&(t+=`-${js(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"===typeof e.meta.relativePath&&(t+=`-${js(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t},Ts=function(e){if(null==e&&(e="undefined"!==typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)},Ns=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"};function Is(e){return e<10?`0${e}`:e.toString()}var Ls=function(){const e=new Date,t=Is(e.getHours()),n=Is(e.getMinutes()),r=Is(e.getSeconds());return`${t}:${n}:${r}`};const Ms={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Ls()}]`,...t)}},Rs={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Ls()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Ls()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Ls()}]`,...t)}};var zs={justErrorsLogger:Ms,debugLogger:Rs},Vs={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}"}}},$s=gs;let Us,Hs;function Ws(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qs=0;function Ks(e){return"__private_"+qs+++"_"+e}const{nanoid:Gs}=$s,{justErrorsLogger:Ys,debugLogger:Js}=zs;class Zs extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"===typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Xs extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Qs=Ks("plugins"),ec=Ks("storeUnsubscribe"),tc=Ks("emitter"),nc=Ks("preProcessors"),rc=Ks("uploaders"),oc=Ks("postProcessors"),ic=Ks("checkRestrictions"),ac=Ks("checkMinNumberOfFiles"),lc=Ks("checkRequiredMetaFieldsOnFile"),uc=Ks("checkRequiredMetaFields"),sc=Ks("showOrLogErrorAndThrow"),cc=Ks("assertNewUploadAllowed"),fc=Ks("checkAndCreateFileStateObject"),dc=Ks("startIfAutoProceed"),pc=Ks("addListeners"),hc=Ks("updateOnlineStatus"),gc=Ks("createUpload"),vc=Ks("getUpload"),mc=Ks("removeUpload"),yc=Ks("runUpload");Us=Symbol.for("uppy test: getPlugins"),Hs=Symbol.for("uppy test: createUpload");class bc{constructor(e){Object.defineProperty(this,yc,{value:jc}),Object.defineProperty(this,mc,{value:Fc}),Object.defineProperty(this,vc,{value:Bc}),Object.defineProperty(this,gc,{value:_c}),Object.defineProperty(this,pc,{value:Oc}),Object.defineProperty(this,dc,{value:Ac}),Object.defineProperty(this,fc,{value:Dc}),Object.defineProperty(this,cc,{value:kc}),Object.defineProperty(this,sc,{value:Sc}),Object.defineProperty(this,uc,{value:Ec}),Object.defineProperty(this,lc,{value:Cc}),Object.defineProperty(this,ac,{value:xc}),Object.defineProperty(this,ic,{value:wc}),Object.defineProperty(this,Qs,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ec,{writable:!0,value:void 0}),Object.defineProperty(this,tc,{writable:!0,value:ls()}),Object.defineProperty(this,nc,{writable:!0,value:new Set}),Object.defineProperty(this,rc,{writable:!0,value:new Set}),Object.defineProperty(this,oc,{writable:!0,value:new Set}),Object.defineProperty(this,hc,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Vs;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:As(),logger:Ys,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=Js),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Wi(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Ts(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Ws(this,ec)[ec]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!==typeof window&&(window[this.opts.id]=this),Ws(this,pc)[pc]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ws(this,tc)[tc].emit(e,...n)}on(e,t){return Ws(this,tc)[tc].on(e,t),this}once(e,t){return Ws(this,tc)[tc].once(e,t),this}off(e,t){return Ws(this,tc)[tc].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new is([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Ws(this,nc)[nc].add(e)}removePreProcessor(e){return Ws(this,nc)[nc].delete(e)}addPostProcessor(e){Ws(this,oc)[oc].add(e)}removePostProcessor(e){return Ws(this,oc)[oc].delete(e)}addUploader(e){Ws(this,rc)[rc].add(e)}removeUploader(e){return Ws(this,rc)[rc].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),l=r.filter((e=>e.progress.uploadStarted)),u=r.filter((e=>e.isPaused)),s=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:l,pausedFiles:u,completeFiles:s,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:l.length>0,isAllComplete:100===t&&s.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&u.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Ws(this,ic)[ic](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){Ws(this,cc)[cc](e);const{files:t}=this.getState();let n=Ws(this,fc)[fc](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}`),Ws(this,dc)[dc](),n.id}addFiles(e){Ws(this,cc)[cc]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=Ws(this,fc)[fc](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(o){o.isRestriction||r.push(o)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Ws(this,dc)[dc](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"===typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function l(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(l);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const u={currentUploads:i,files:o};0===Object.keys(o).length&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();const s=Object.keys(a);s.forEach((e=>{this.emit("file-removed",a[e],t)})),s.length>5?this.log(`Removed ${s.length} files`):this.log(`Removed files: ${s.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=this.getFile(e).isPaused||!1,n=!t;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted));t.forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted));t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Ws(this,gc)[gc](t,{forceAllowNewUpload:!0});return Ws(this,yc)[yc](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=Ws(this,gc)[gc]([e],{forceAllowNewUpload:!0});return Ws(this,yc)[yc](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles(),t=e.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===t.length)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter((e=>null!=e.progress.bytesTotal)),r=t.filter((e=>null==e.progress.bytesTotal));if(0===n.length){const e=100*t.length,n=r.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/e*100);return void this.setState({totalProgress:o})}let o=n.reduce(((e,t)=>e+t.progress.bytesTotal),0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach((e=>{a+=e.progress.bytesUploaded})),r.forEach((e=>{a+=i*(e.progress.percentage||0)/100}));let l=0===o?0:Math.round(a/o*100);l>100&&(l=100),this.setState({totalProgress:l}),this.emit("progress",l)}updateOnlineStatus(){const e="undefined"===typeof window.navigator.onLine||window.navigator.onLine;e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!==typeof e){const t=`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(t)}const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Ws(this,Qs)[Qs]?Ws(this,Qs)[Qs][n.type].push(n):Ws(this,Qs)[Qs][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Ws(this,Qs)[Qs])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[Us](e){return Ws(this,Qs)[Qs][e]}iteratePlugins(e){Object.values(Ws(this,Qs)[Qs]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Ws(this,Qs)[Qs][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r=this.getState(),o={plugins:{...r.plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Ws(this,ec)[ec](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!==typeof window&&window.removeEventListener&&(window.removeEventListener("online",Ws(this,hc)[hc]),window.removeEventListener("offline",Ws(this,hc)[hc]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"===typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e);break}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Ws(this,yc)[yc](e):(Ws(this,mc)[mc](e),Promise.reject(new Error("Nonexistent upload")))}[Hs](){return Ws(this,gc)[gc](...arguments)}addResultData(e,t){if(!Ws(this,vc)[vc](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Ws(this,Qs)[Qs].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"===typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Ws(this,ac)[ac](t),Ws(this,uc)[uc](t)})).catch((e=>{Ws(this,sc)[sc](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Ws(this,gc)[gc](r);return Ws(this,yc)[yc](o)})).catch((e=>{Ws(this,sc)[sc](e,{showInformer:!1})})))}}function wc(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Zs(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a){const t=a.some((t=>t.indexOf("/")>-1?!!e.type&&ws(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()));if(!t){const e=a.join(", ");throw new Zs(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new Zs(this.i18n("exceedsSize",{size:vs(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Zs(this.i18n("exceedsSize",{size:vs(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Zs(this.i18n("inferiorSize",{size:vs(r)}))}function xc(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Zs(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Cc(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new Zs(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Ws(this,sc)[sc](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Ec(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Ws(this,lc)[lc](t)}));if(t.length)throw new Xs(t,`${this.i18n("missingRequiredMetaField")}`)}function Sc(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"===typeof e?e.message:e,a="object"===typeof e&&e.details?e.details:"";let l=i;if(a&&(l+=` ${a}`),e.isRestriction?(this.log(l),this.emit("restriction-failed",r,e)):this.log(l,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"===typeof e?e:new Error(e)}function kc(e){const{allowNewUpload:t}=this.getState();!1===t&&Ws(this,sc)[sc](new Zs(this.i18n("noMoreFilesAllowed")),{file:e})}function Dc(e,t){const n=Bs(t),r=Ns(n,t),o=Os(r).extension,i=Boolean(t.isRemote),a=Ps({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new Zs(this.i18n("noDuplicates",{fileName:r}));Ws(this,sc)[sc](e,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const u=Number.isFinite(t.data.size)?t.data.size:null;let s={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:u,uploadComplete:!1,uploadStarted:null},size:u,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(s,e);!1===c?Ws(this,sc)[sc](new Zs("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"===typeof c&&null!==c&&(s=c);try{const t=Object.keys(e).map((t=>e[t]));Ws(this,ic)[ic](s,t)}catch(f){Ws(this,sc)[sc](f,{file:s})}return s}function Ac(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Oc(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"===typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Ws(this,sc)[sc](e,{throwErr:!1})}else Ws(this,sc)[sc](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Ws(this,oc)[oc].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Ws(this,lc)[lc](e)})),"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("online",Ws(this,hc)[hc]),window.addEventListener("offline",Ws(this,hc)[hc]),setTimeout(Ws(this,hc)[hc],3e3))}function _c(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Gs();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Bc(e){const{currentUploads:t}=this.getState();return t[e]}function Fc(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function jc(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Ws(this,nc)[nc],...Ws(this,rc)[rc],...Ws(this,oc)[oc]];try{for(let i=r;i<o.length;i++){if(!n)break;const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),Ws(this,mc)[mc](e),a}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Ws(this,mc)[mc](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}bc.VERSION="2.1.3";var Pc=bc,Tc=Xt((function(e,t){var n,r,o,i,a,l,u,s,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,l={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=t[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===l[a]&&(l[a]=e.defaultProps[a]);return v(e,l,o,i,null)}function v(e,t,n,i,a){var l={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(l),l}function m(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!C.__r++||u!==r.debounceRendering)&&((u=r.debounceRendering)||l)(C)}function C(){for(var e;C.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),j(n,o),o.__e!=i&&w(o)))}))}function E(e,t,n,r,o,i,a,l,u,s){var d,p,h,g,y,w,x,C=r&&r.__k||f,E=C.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(m,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=C[d])||h&&g.key==h.key&&g.type===h.type)C[d]=void 0;else for(p=0;p<E;p++){if((h=C[p])&&g.key==h.key&&g.type===h.type){C[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,l,u,s),y=g.__e,(p=g.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,g),x.push(p,g.__c||y,g)),null!=y?(null==w&&(w=y),"function"==typeof g.type&&g.__k===h.__k?g.__d=u=S(g,u,e):u=k(e,g,h,C,y,u),"function"==typeof n.type&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=b(h))}for(n.__e=w,d=E;d--;)null!=C[d]&&("function"==typeof n.type&&null!=C[d].__e&&C[d].__e==n.__d&&(n.__d=b(r,d+1)),N(C[d],C[d]));if(x)for(d=0;d<x.length;d++)T(x[d],x[++d],x[++d])}function S(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):k(n,r,r,o,r.__e,t));return t}function k(e,t,n,r,o,i){var a,l,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=2)if(l==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function D(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:_,i):e.removeEventListener(t,i?B:_,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function _(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,n,o,i,a,l,u,s){var c,f,d,h,g,v,b,w,x,C,S,k=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(s=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(c=r.__b)&&c(t);try{e:if("function"==typeof k){if(w=t.props,x=(c=k.contextType)&&o[c.__c],C=c?x?x.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in k&&k.prototype.render?t.__c=f=new k(w,C):(t.__c=f=new y(w,C),f.constructor=k,f.render=I),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=C,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=k.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,k.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==k.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==k.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,C),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,C)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&l.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,C),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=C,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),S=null!=c&&c.type===m&&null==c.key?c.props.children:c,E(e,Array.isArray(S)?S:[S],t,n,o,i,a,l,u,s),f.base=t.__e,t.__h=null,f.__h.length&&l.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P(n.__e,t,n,o,i,a,l,s);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(s||null!=a)&&(t.__e=u,t.__h=!!s,a[a.indexOf(u)]=null),r.__e(e,t,n)}}function j(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function P(e,t,r,o,i,a,l,u){var s,f,d,p=r.props,g=t.props,v=t.type,m=0;if("svg"===v&&(i=!0),null!=a)for(;m<a.length;m++)if((s=a[m])&&"setAttribute"in s==!!v&&(v?s.localName===v:3===s.nodeType)){e=s,a[m]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,u=!1}if(null===v)p===g||u&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(D(e,g,p,i,u),d)t.__k=[];else if(m=t.props.children,E(e,Array.isArray(m)?m:[m],t,r,o,i&&"foreignObject"!==v,a,l,a?a[0]:r.__k&&b(r,0),u),null!=a)for(m=a.length;m--;)null!=a[m]&&h(a[m]);u||("value"in g&&void 0!==(m=g.value)&&(m!==p.value||m!==e.value||"progress"===v&&!m)&&O(e,"value",m,p.value,!1),"checked"in g&&void 0!==(m=g.checked)&&m!==e.checked&&O(e,"checked",m,p.checked,!1))}return e}function T(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function N(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||T(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&N(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function I(e,t,n){return this.constructor(e,n)}function L(e,t,o){var i,a,l;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,l=[],F(t,e=(!i&&o||t).__k=g(m,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,l,!i&&o?o:a?a.__e:t.firstChild,i),j(l,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},y.prototype.render=m,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C.__r=0,s=0,t.Component=y,t.Fragment=m,t.cloneElement=function(e,t,r){var o,i,a,l=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=t[a];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),v(e.type,l,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){L(t,n,e)},t.isValidElement=i,t.options=r,t.render=L,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Nc=function(e){return(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE},Ic=function(e,t){return void 0===t&&(t=document),"string"===typeof e?t.querySelector(e):Nc(e)?e:null},Lc=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new is([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 Mc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Rc=0;function zc(e){return"__private_"+Rc+++"_"+e}const{render:Vc}=Tc;function $c(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}var Uc=zc("updateUI");class Hc extends Lc{constructor(){super(...arguments),Object.defineProperty(this,Uc,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Ic(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Mc(this,Uc)[Uc]=$c((e=>{this.uppy.getPlugin(this.id)&&(Vc(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Vc(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"===typeof e&&e instanceof Hc)o=e;else if("function"===typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"===typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Mc(this,Uc))[Uc])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var Wc=Hc;const{debugLogger:qc}=zs;var Kc=Pc,Gc=Pc,Yc=Wc,Jc=Lc,Zc=qc;Kc.Uppy=Gc,Kc.UIPlugin=Yc,Kc.BasePlugin=Jc,Kc.debugLogger=Zc;class Xc extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var Qc=Xc,ef=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new Qc(e)}))};class tf extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var nf,rf,of,af,lf,uf=tf;function sf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var cf=0;function ff(e){return"__private_"+cf+++"_"+e}function df(e){return e.replace(/\/$/,"")}async function pf(e){if(401===e.status)throw new uf;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var hf=(rf=ff("getPostResponseFunc"),of=ff("getUrl"),af=ff("errorHandler"),lf=nf=class e{constructor(e,t){Object.defineProperty(this,af,{value:vf}),Object.defineProperty(this,of,{value:gf}),Object.defineProperty(this,rf,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return df(e&&e[t]?e[t]:t)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState(),n=t.companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(sf(this,of)[of](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){const n="get";return this.preflightAndHeaders(e).then((t=>ef(sf(this,of)[of](e),{method:n,headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(sf(this,rf)[rf](t)).then(pf).catch(sf(this,af)[af](n,e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>ef(sf(this,of)[of](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(sf(this,rf)[rf](n)).then(pf).catch(sf(this,af)[af](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>ef(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(sf(this,rf)[rf](n)).then(pf).catch(sf(this,af)[af](r,e))}},nf.VERSION="2.0.4",nf.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${nf.VERSION}`},lf);function gf(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function vf(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${sf(this,of)[of](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var mf=(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),yf=e=>Promise.resolve(localStorage.getItem(e)),bf=e=>new Promise((t=>{localStorage.removeItem(e),t()})),wf={setItem:mf,getItem:yf,removeItem:bf};const xf=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");var Cf=class extends hf{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||xf(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated,r=n?401!==e.status:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if("string"!==typeof n&&!Array.isArray(n)&&!(n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||wf}};const Ef=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");var Sf,kf,Df,Af,Of,_f=class extends hf{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||Ef(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}};let Bf,Ff;function jf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Pf=0;function Tf(e){return"__private_"+Pf+++"_"+e}var Nf=(Sf=Tf("queued"),kf=Tf("emitter"),Df=Tf("isOpen"),Af=Tf("socket"),Of=Tf("handleMessage"),Bf=Symbol.for("uppy test: getSocket"),Ff=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Sf,{writable:!0,value:[]}),Object.defineProperty(this,kf,{writable:!0,value:ls()}),Object.defineProperty(this,Df,{writable:!0,value:!1}),Object.defineProperty(this,Af,{writable:!0,value:void 0}),Object.defineProperty(this,Of,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){console.log(t)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return jf(this,Df)[Df]}[Bf](){return jf(this,Af)[Af]}[Ff](){return jf(this,Sf)[Sf]}open(){jf(this,Af)[Af]=new WebSocket(this.opts.target),jf(this,Af)[Af].onopen=()=>{jf(this,Df)[Df]=!0;while(jf(this,Sf)[Sf].length>0&&jf(this,Df)[Df]){const e=jf(this,Sf)[Sf].shift();this.send(e.action,e.payload)}},jf(this,Af)[Af].onclose=()=>{jf(this,Df)[Df]=!1},jf(this,Af)[Af].onmessage=jf(this,Of)[Of]}close(){var e;null==(e=jf(this,Af)[Af])||e.close()}send(e,t){jf(this,Df)[Df]?jf(this,Af)[Af].send(JSON.stringify({action:e,payload:t})):jf(this,Sf)[Sf].push({action:e,payload:t})}on(e,t){jf(this,kf)[kf].on(e,t)}emit(e,t){jf(this,kf)[kf].emit(e,t)}once(e,t){jf(this,kf)[kf].once(e,t)}}),If={RequestClient:hf,Provider:Cf,SearchProvider:_f,Socket:Nf};function Lf(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}var Mf,Rf,zf=Wi(Lf,300,{leading:!0,trailing:!0}),Vf=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i,n=t.exec(e)[1],r=/^http:\/\//i.test(e)?"ws":"wss";return`${r}://${n}`},$f=function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}const i=Promise.all(e.map((e=>e.then(r,o))));return i.then((()=>({successful:t,failed:n})))};function Uf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Hf=0;function Wf(e){return"__private_"+Hf+++"_"+e}var qf=(Mf=Wf("emitter"),Rf=Wf("events"),class{constructor(e){Object.defineProperty(this,Mf,{writable:!0,value:void 0}),Object.defineProperty(this,Rf,{writable:!0,value:[]}),Uf(this,Mf)[Mf]=e}on(e,t){return Uf(this,Rf)[Rf].push([e,t]),Uf(this,Mf)[Mf].on(e,t)}remove(){for(const[e,t]of Uf(this,Rf)[Rf].splice(0))Uf(this,Mf)[Mf].off(e,t)}});function Kf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Gf=0;function Yf(e){return"__private_"+Gf+++"_"+e}var Jf=Yf("aliveTimer"),Zf=Yf("isDone"),Xf=Yf("onTimedOut"),Qf=Yf("timeout");class ed{constructor(e,t){Object.defineProperty(this,Jf,{writable:!0,value:void 0}),Object.defineProperty(this,Zf,{writable:!0,value:!1}),Object.defineProperty(this,Xf,{writable:!0,value:void 0}),Object.defineProperty(this,Qf,{writable:!0,value:void 0}),Kf(this,Qf)[Qf]=e,Kf(this,Xf)[Xf]=t}progress(){Kf(this,Zf)[Zf]||Kf(this,Qf)[Qf]>0&&(clearTimeout(Kf(this,Jf)[Jf]),Kf(this,Jf)[Jf]=setTimeout(Kf(this,Xf)[Xf],Kf(this,Qf)[Qf]))}done(){Kf(this,Zf)[Zf]||(clearTimeout(Kf(this,Jf)[Jf]),Kf(this,Jf)[Jf]=null,Kf(this,Zf)[Zf]=!0)}}var td=ed;function nd(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rd=0;function od(e){return"__private_"+rd+++"_"+e}function id(){return new Error("Cancelled")}var ad=od("activeRequests"),ld=od("queuedHandlers"),ud=od("call"),sd=od("queueNext"),cd=od("next"),fd=od("queue"),dd=od("dequeue");class pd{constructor(e){Object.defineProperty(this,dd,{value:yd}),Object.defineProperty(this,fd,{value:md}),Object.defineProperty(this,cd,{value:vd}),Object.defineProperty(this,sd,{value:gd}),Object.defineProperty(this,ud,{value:hd}),Object.defineProperty(this,ad,{writable:!0,value:0}),Object.defineProperty(this,ld,{writable:!0,value:[]}),this.limit="number"!==typeof e||0===e?1/0:e}run(e,t){return nd(this,ad)[ad]<this.limit?nd(this,ud)[ud](e):nd(this,fd)[fd](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const l=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(l){n=Promise.reject(l)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=id()}}),t)}));return l.abort=()=>{a.abort()},l}}}function hd(e){nd(this,ad)[ad]+=1;let t,n=!1;try{t=e()}catch(r){throw nd(this,ad)[ad]-=1,r}return{abort:()=>{n||(n=!0,nd(this,ad)[ad]-=1,t(),nd(this,sd)[sd]())},done:()=>{n||(n=!0,nd(this,ad)[ad]-=1,nd(this,sd)[sd]())}}}function gd(){queueMicrotask((()=>nd(this,cd)[cd]()))}function vd(){if(nd(this,ad)[ad]>=this.limit)return;if(0===nd(this,ld)[ld].length)return;const e=nd(this,ld)[ld].shift(),t=nd(this,ud)[ud](e.fn);e.abort=t.abort,e.done=t.done}function md(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{nd(this,dd)[dd](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=nd(this,ld)[ld].findIndex((e=>n.priority>e.priority));return-1===r?nd(this,ld)[ld].push(n):nd(this,ld)[ld].splice(r,0,n),n}function yd(e){const t=nd(this,ld)[ld].indexOf(e);-1!==t&&nd(this,ld)[ld].splice(t,1)}var bd={RateLimitedQueue:pd,internalRateLimitedQueue:Symbol("__queue")};function wd(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}var xd,Cd,Ed=wd,Sd={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:kd}=$s,{Provider:Dd,RequestClient:Ad,Socket:Od}=If,{RateLimitedQueue:_d,internalRateLimitedQueue:Bd}=bd;function Fd(e,t){let n=t;return n||(n=new Error("Upload error")),"string"===typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Ed(e)?(n=new Qc(n,e),n):(n.request=e,n)}function jd(e){const t=e.data.slice(0,e.data.size,e.meta.type);return t}var Pd=(Cd=xd=class extends Lc{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Sd;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(r){e.log(r)}return n},getResponseError(e,t){let n=new Error("Upload error");return Ed(t)&&(n=new Qc(n,t)),n},validateStatus(e){return e>=200&&e<300}};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Bd in this.opts?this.requests=this.opts[Bd]:this.requests=new _d(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"===typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){const r=Array.isArray(n.metaFields)?n.metaFields:Object.keys(t);r.forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=jd(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=jd(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new qf(this.uppy);const a=new td(r.timeout,(()=>{i.abort(),u.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),l=kd();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${l} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${l} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),a.done(),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],l={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,l),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const s=r.getResponseData(i.responseText,i),c=Fd(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:s};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${l} errored`),a.done(),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=Fd(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const u=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{u.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{u.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={},i=Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta);i.forEach((t=>{o[t]=e.meta[t]}));const a=e.remote.providerOptions.provider?Dd:Ad,l=new a(this.uppy,e.remote.providerOptions);l.post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=Vf(e.remote.companionUrl),l=new Od({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new qf(this.uppy),this.onFileRemove(e.id,(()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{l.send("cancel",{}),u.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{l.send("pause",{}),l.send("resume",{})})),this.onRetryAll(e.id,(()=>{l.send("pause",{}),l.send("resume",{})})),l.on("progress",(t=>zf(this,t,e))),l.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),l.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),u.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const u=this.requests.run((()=>(l.open(),e.isPaused&&l.send("pause",{}),()=>l.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),l=new XMLHttpRequest,u=new td(this.opts.timeout,(()=>{l.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));s(e),n(e)})),s=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};l.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()})),l.upload.addEventListener("progress",(t=>{u.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),l.addEventListener("load",(r=>{if(u.done(),this.opts.validateStatus(r.target.status,l.responseText,l)){const n=this.opts.getResponseData(l.responseText,l),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(l.responseText,l)||new Error("Upload error");return o.request=l,s(o),n(o)})),l.addEventListener("error",(()=>{u.done();const e=this.opts.getResponseError(l.responseText,l)||new Error("Upload error");return s(e),n(e)})),this.uppy.on("cancel-all",(()=>{u.done(),l.abort()})),l.open(o.toUpperCase(),r,!0),l.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(l.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{l.setRequestHeader(e,this.opts.headers[e])})),l.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return $f(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[Bd]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){const e=t.some((e=>e.isRemote));if(e)throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"===typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},xd.VERSION="2.0.6",Cd),Td="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Nd(e){var t={exports:{}};return e(t,t.exports),t.exports}var Id,Ld,Md=function(e){return e&&e.Math==Math&&e},Rd=Md("object"==typeof globalThis&&globalThis)||Md("object"==typeof window&&window)||Md("object"==typeof self&&self)||Md("object"==typeof Td&&Td)||function(){return this}()||Function("return this")(),zd=Object.defineProperty,Vd=function(e,t){try{zd(Rd,e,{value:t,configurable:!0,writable:!0})}catch(c){Rd[e]=t}return t},$d=Rd["__core-js_shared__"]||Vd("__core-js_shared__",{}),Ud=Nd((function(e){(e.exports=function(e,t){return $d[e]||($d[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Hd=Function.prototype,Wd=Hd.bind,qd=Hd.call,Kd=Wd&&Wd.bind(qd),Gd=Wd?function(e){return e&&Kd(qd,e)}:function(e){return e&&function(){return qd.apply(e,arguments)}},Yd=Rd.TypeError,Jd=function(e){if(null==e)throw Yd("Can't call method on "+e);return e},Zd=Rd.Object,Xd=function(e){return Zd(Jd(e))},Qd=Gd({}.hasOwnProperty),ep=Object.hasOwn||function(e,t){return Qd(Xd(e),t)},tp=0,np=Math.random(),rp=Gd(1..toString),op=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rp(++tp+np,36)},ip=function(e){return"function"==typeof e},ap=function(e){return ip(e)?e:void 0},lp=function(e,t){return arguments.length<2?ap(Rd[e]):Rd[e]&&Rd[e][t]},up=lp("navigator","userAgent")||"",sp=Rd.process,cp=Rd.Deno,fp=sp&&sp.versions||cp&&cp.version,dp=fp&&fp.v8;dp&&(Ld=(Id=dp.split("."))[0]>0&&Id[0]<4?1:+(Id[0]+Id[1])),!Ld&&up&&(!(Id=up.match(/Edge\/(\d+)/))||Id[1]>=74)&&(Id=up.match(/Chrome\/(\d+)/))&&(Ld=+Id[1]);var pp=Ld,hp=function(e){try{return!!e()}catch(e){return!0}},gp=!!Object.getOwnPropertySymbols&&!hp((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pp&&pp<41})),vp=gp&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mp=Ud("wks"),yp=Rd.Symbol,bp=yp&&yp.for,wp=vp?yp:yp&&yp.withoutSetter||op,xp=function(e){if(!ep(mp,e)||!gp&&"string"!=typeof mp[e]){var t="Symbol."+e;gp&&ep(yp,e)?mp[e]=yp[e]:mp[e]=vp&&bp?bp(t):wp(t)}return mp[e]},Cp={};Cp[xp("toStringTag")]="z";var Ep="[object z]"===String(Cp),Sp=!hp((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),kp=function(e){return"object"==typeof e?null!==e:ip(e)},Dp=Rd.document,Ap=kp(Dp)&&kp(Dp.createElement),Op=function(e){return Ap?Dp.createElement(e):{}},_p=!Sp&&!hp((function(){return 7!=Object.defineProperty(Op("div"),"a",{get:function(){return 7}}).a})),Bp=Rd.String,Fp=Rd.TypeError,jp=function(e){if(kp(e))return e;throw Fp(Bp(e)+" is not an object")},Pp=Function.prototype.call,Tp=Pp.bind?Pp.bind(Pp):function(){return Pp.apply(Pp,arguments)},Np=Gd({}.isPrototypeOf),Ip=Rd.Object,Lp=vp?function(e){return"symbol"==typeof e}:function(e){var t=lp("Symbol");return ip(t)&&Np(t.prototype,Ip(e))},Mp=Rd.String,Rp=function(e){try{return Mp(e)}catch(e){return"Object"}},zp=Rd.TypeError,Vp=function(e){if(ip(e))return e;throw zp(Rp(e)+" is not a function")},$p=function(e,t){var n=e[t];return null==n?void 0:Vp(n)},Up=Rd.TypeError,Hp=Rd.TypeError,Wp=xp("toPrimitive"),qp=function(e,t){if(!kp(e)||Lp(e))return e;var n,r=$p(e,Wp);if(r){if(void 0===t&&(t="default"),n=Tp(r,e,t),!kp(n)||Lp(n))return n;throw Hp("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ip(n=e.toString)&&!kp(r=Tp(n,e)))return r;if(ip(n=e.valueOf)&&!kp(r=Tp(n,e)))return r;if("string"!==t&&ip(n=e.toString)&&!kp(r=Tp(n,e)))return r;throw Up("Can't convert object to primitive value")}(e,t)},Kp=function(e){var t=qp(e,"string");return Lp(t)?t:t+""},Gp=Rd.TypeError,Yp=Object.defineProperty,Jp={f:Sp?Yp:function(e,t,n){if(jp(e),t=Kp(t),jp(n),_p)try{return Yp(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Gp("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Zp=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xp=Sp?function(e,t,n){return Jp.f(e,t,Zp(1,n))}:function(e,t,n){return e[t]=n,e},Qp=Gd(Function.toString);ip($d.inspectSource)||($d.inspectSource=function(e){return Qp(e)});var eh,th,nh,rh=$d.inspectSource,oh=Rd.WeakMap,ih=ip(oh)&&/native code/.test(rh(oh)),ah=Ud("keys"),lh=function(e){return ah[e]||(ah[e]=op(e))},uh={},sh=Rd.TypeError,ch=Rd.WeakMap;if(ih||$d.state){var fh=$d.state||($d.state=new ch),dh=Gd(fh.get),ph=Gd(fh.has),hh=Gd(fh.set);eh=function(e,t){if(ph(fh,e))throw new sh("Object already initialized");return t.facade=e,hh(fh,e,t),t},th=function(e){return dh(fh,e)||{}},nh=function(e){return ph(fh,e)}}else{var gh=lh("state");uh[gh]=!0,eh=function(e,t){if(ep(e,gh))throw new sh("Object already initialized");return t.facade=e,Xp(e,gh,t),t},th=function(e){return ep(e,gh)?e[gh]:{}},nh=function(e){return ep(e,gh)}}var vh={set:eh,get:th,has:nh,enforce:function(e){return nh(e)?th(e):eh(e,{})},getterFor:function(e){return function(t){var n;if(!kp(t)||(n=th(t)).type!==e)throw sh("Incompatible receiver, "+e+" required");return n}}},mh=Function.prototype,yh=Sp&&Object.getOwnPropertyDescriptor,bh=ep(mh,"name"),wh={EXISTS:bh,PROPER:bh&&"something"===function(){}.name,CONFIGURABLE:bh&&(!Sp||Sp&&yh(mh,"name").configurable)},xh=Nd((function(e){var t=wh.CONFIGURABLE,n=vh.get,r=vh.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;ip(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ep(i,"name")||t&&i.name!==f)&&Xp(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==Rd?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:Xp(e,n,i)):s?e[n]=i:Vd(n,i)})(Function.prototype,"toString",(function(){return ip(this)&&n(this).source||rh(this)}))})),Ch=Gd({}.toString),Eh=Gd("".slice),Sh=function(e){return Eh(Ch(e),8,-1)},kh=xp("toStringTag"),Dh=Rd.Object,Ah="Arguments"==Sh(function(){return arguments}()),Oh=Ep?Sh:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Dh(e),kh))?n:Ah?Sh(t):"Object"==(r=Sh(t))&&ip(t.callee)?"Arguments":r},_h=Ep?{}.toString:function(){return"[object "+Oh(this)+"]"};Ep||xh(Object.prototype,"toString",_h,{unsafe:!0});var Bh={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},Fh=Op("span").classList,jh=Fh&&Fh.constructor&&Fh.constructor.prototype,Ph=jh===Object.prototype?void 0:jh,Th=Gd(Gd.bind),Nh=function(e,t){return Vp(e),void 0===t?e:Th?Th(e,t):function(){return e.apply(t,arguments)}},Ih=Rd.Object,Lh=Gd("".split),Mh=hp((function(){return!Ih("z").propertyIsEnumerable(0)}))?function(e){return"String"==Sh(e)?Lh(e,""):Ih(e)}:Ih,Rh=Math.ceil,zh=Math.floor,Vh=function(e){var t=+e;return t!=t||0===t?0:(t>0?zh:Rh)(t)},$h=Math.min,Uh=function(e){return e>0?$h(Vh(e),9007199254740991):0},Hh=function(e){return Uh(e.length)},Wh=Array.isArray||function(e){return"Array"==Sh(e)},qh=function(){},Kh=[],Gh=lp("Reflect","construct"),Yh=/^\s*(?:class|function)\b/,Jh=Gd(Yh.exec),Zh=!Yh.exec(qh),Xh=function(e){if(!ip(e))return!1;try{return Gh(qh,Kh,e),!0}catch(e){return!1}},Qh=!Gh||hp((function(){var e;return Xh(Xh.call)||!Xh(Object)||!Xh((function(){e=!0}))||e}))?function(e){if(!ip(e))return!1;switch(Oh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Zh||!!Jh(Yh,rh(e))}:Xh,eg=xp("species"),tg=Rd.Array,ng=function(e,t){return new(function(e){var t;return Wh(e)&&(t=e.constructor,(Qh(t)&&(t===tg||Wh(t.prototype))||kp(t)&&null===(t=t[eg]))&&(t=void 0)),void 0===t?tg:t}(e))(0===t?0:t)},rg=Gd([].push),og=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=Xd(u),g=Mh(h),v=Nh(s,c),m=Hh(g),y=0,b=f||ng,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:rg(w,d)}else switch(e){case 4:return!1;case 7:rg(w,d)}return i?-1:r||o?o:w}},ig={forEach:og(0),map:og(1),filter:og(2),some:og(3),every:og(4),find:og(5),findIndex:og(6),filterReject:og(7)},ag=function(e,t){var n=[][e];return!!n&&hp((function(){n.call(null,t||function(){throw 1},1)}))},lg=ig.forEach,ug=ag("forEach")?[].forEach:function(e){return lg(this,e,arguments.length>1?arguments[1]:void 0)},sg=function(e){if(e&&e.forEach!==ug)try{Xp(e,"forEach",ug)}catch(f){e.forEach=ug}};for(var cg in Bh)Bh[cg]&&sg(Rd[cg]&&Rd[cg].prototype);sg(Ph);var fg={}.propertyIsEnumerable,dg=Object.getOwnPropertyDescriptor,pg=dg&&!fg.call({1:2},1)?function(e){var t=dg(this,e);return!!t&&t.enumerable}:fg,hg={f:pg},gg=function(e){return Mh(Jd(e))},vg=Object.getOwnPropertyDescriptor,mg={f:Sp?vg:function(e,t){if(e=gg(e),t=Kp(t),_p)try{return vg(e,t)}catch(e){}if(ep(e,t))return Zp(!Tp(hg.f,e,t),e[t])}},yg=Math.max,bg=Math.min,wg=function(e,t){var n=Vh(e);return n<0?yg(n+t,0):bg(n,t)},xg=function(e){return function(t,n,r){var o,i=gg(t),a=Hh(i),l=wg(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},Cg={includes:xg(!0),indexOf:xg(!1)},Eg=Cg.indexOf,Sg=Gd([].push),kg=function(e,t){var n,r=gg(e),o=0,i=[];for(n in r)!ep(uh,n)&&ep(r,n)&&Sg(i,n);for(;t.length>o;)ep(r,n=t[o++])&&(~Eg(i,n)||Sg(i,n));return i},Dg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ag=Dg.concat("length","prototype"),Og={f:Object.getOwnPropertyNames||function(e){return kg(e,Ag)}},_g={f:Object.getOwnPropertySymbols},Bg=Gd([].concat),Fg=lp("Reflect","ownKeys")||function(e){var t=Og.f(jp(e)),n=_g.f;return n?Bg(t,n(e)):t},jg=function(e,t){for(var n=Fg(t),r=Jp.f,o=mg.f,i=0;i<n.length;i++){var a=n[i];ep(e,a)||r(e,a,o(t,a))}},Pg=/#|\.prototype\./,Tg=function(e,t){var n=Ig[Ng(e)];return n==Mg||n!=Lg&&(ip(t)?hp(t):!!t)},Ng=Tg.normalize=function(e){return String(e).replace(Pg,".").toLowerCase()},Ig=Tg.data={},Lg=Tg.NATIVE="N",Mg=Tg.POLYFILL="P",Rg=Tg,zg=mg.f,Vg=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?Rd:s?Rd[l]||Vd(l,{}):(Rd[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=zg(n,r))&&a.value:n[r],!Rg(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jg(i,o)}(e.sham||o&&o.sham)&&Xp(i,"sham",!0),xh(n,r,i,e)}},$g=xp("species"),Ug=function(e){return pp>=51||!hp((function(){var t=[];return(t.constructor={})[$g]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Hg=ig.map,Wg=Ug("map");Vg({target:"Array",proto:!0,forced:!Wg},{map:function(e){return Hg(this,e,arguments.length>1?arguments[1]:void 0)}});var qg=function(e,t,n){var r,o;jp(e);try{if(!(r=$p(e,"return"))){if("throw"===t)throw n;return n}r=Tp(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return jp(r),n},Kg=function(e,t,n,r){try{return r?t(jp(n)[0],n[1]):t(n)}catch(t){qg(e,"throw",t)}},Gg={},Yg=xp("iterator"),Jg=Array.prototype,Zg=function(e){return void 0!==e&&(Gg.Array===e||Jg[Yg]===e)},Xg=function(e,t,n){var r=Kp(t);r in e?Jp.f(e,r,Zp(0,n)):e[r]=n},Qg=xp("iterator"),ev=function(e){if(null!=e)return $p(e,Qg)||$p(e,"@@iterator")||Gg[Oh(e)]},tv=Rd.TypeError,nv=function(e,t){var n=arguments.length<2?ev(e):t;if(Vp(n))return jp(Tp(n,e));throw tv(Rp(e)+" is not iterable")},rv=Rd.Array,ov=xp("iterator"),iv=!1;try{var av=0,lv={next:function(){return{done:!!av++}},return:function(){iv=!0}};lv[ov]=function(){return this},Array.from(lv,(function(){throw 2}))}catch(ose){}var uv=function(e,t){if(!t&&!iv)return!1;var n=!1;try{var r={};r[ov]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},sv=!uv((function(e){Array.from(e)}));Vg({target:"Array",stat:!0,forced:sv},{from:function(e){var t=Xd(e),n=Qh(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Nh(o,r>2?arguments[2]:void 0));var a,l,u,s,c,f,d=ev(t),p=0;if(!d||this==rv&&Zg(d))for(a=Hh(t),l=n?new this(a):rv(a);a>p;p++)f=i?o(t[p],p):t[p],Xg(l,p,f);else for(c=(s=nv(t,d)).next,l=n?new this:[];!(u=Tp(c,s)).done;p++)f=i?Kg(s,o,[u.value,p],!0):u.value,Xg(l,p,f);return l.length=p,l}});var cv,fv=Rd.String,dv=function(e){if("Symbol"===Oh(e))throw TypeError("Cannot convert a Symbol value to a string");return fv(e)},pv=Gd("".charAt),hv=Gd("".charCodeAt),gv=Gd("".slice),vv=function(e){return function(t,n){var r,o,i=dv(Jd(t)),a=Vh(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=hv(i,a))<55296||r>56319||a+1===l||(o=hv(i,a+1))<56320||o>57343?e?pv(i,a):r:e?gv(i,a,a+2):o-56320+(r-55296<<10)+65536}},mv={codeAt:vv(!1),charAt:vv(!0)},yv=Object.keys||function(e){return kg(e,Dg)},bv=Sp?Object.defineProperties:function(e,t){jp(e);for(var n,r=gg(t),o=yv(t),i=o.length,a=0;i>a;)Jp.f(e,n=o[a++],r[n]);return e},wv=lp("document","documentElement"),xv=lh("IE_PROTO"),Cv=function(){},Ev=function(e){return"<script>"+e+"<\/script>"},Sv=function(e){e.write(Ev("")),e.close();var t=e.parentWindow.Object;return e=null,t},kv=function(){try{cv=new ActiveXObject("htmlfile")}catch(e){}var e,t;kv="undefined"!=typeof document?document.domain&&cv?Sv(cv):((t=Op("iframe")).style.display="none",wv.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ev("document.F=Object")),e.close(),e.F):Sv(cv);for(var n=Dg.length;n--;)delete kv.prototype[Dg[n]];return kv()};uh[xv]=!0;var Dv,Av,Ov,_v=Object.create||function(e,t){var n;return null!==e?(Cv.prototype=jp(e),n=new Cv,Cv.prototype=null,n[xv]=e):n=kv(),void 0===t?n:bv(n,t)},Bv=!hp((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Fv=lh("IE_PROTO"),jv=Rd.Object,Pv=jv.prototype,Tv=Bv?jv.getPrototypeOf:function(e){var t=Xd(e);if(ep(t,Fv))return t[Fv];var n=t.constructor;return ip(n)&&t instanceof n?n.prototype:t instanceof jv?Pv:null},Nv=xp("iterator"),Iv=!1;[].keys&&("next"in(Ov=[].keys())?(Av=Tv(Tv(Ov)))!==Object.prototype&&(Dv=Av):Iv=!0);var Lv=null==Dv||hp((function(){var e={};return Dv[Nv].call(e)!==e}));Lv&&(Dv={}),ip(Dv[Nv])||xh(Dv,Nv,(function(){return this}));var Mv={IteratorPrototype:Dv,BUGGY_SAFARI_ITERATORS:Iv},Rv=Jp.f,zv=xp("toStringTag"),Vv=function(e,t,n){e&&!ep(e=n?e:e.prototype,zv)&&Rv(e,zv,{configurable:!0,value:t})},$v=Mv.IteratorPrototype,Uv=function(){return this},Hv=Rd.String,Wv=Rd.TypeError,qv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Gd(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return jp(n),function(e){if("object"==typeof e||ip(e))return e;throw Wv("Can't set "+Hv(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Kv=wh.PROPER,Gv=wh.CONFIGURABLE,Yv=Mv.IteratorPrototype,Jv=Mv.BUGGY_SAFARI_ITERATORS,Zv=xp("iterator"),Xv=function(){return this},Qv=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=_v($v,{next:Zp(+!r,n)}),Vv(e,o,!1),Gg[o]=Uv}(n,t,r);var l,u,s,c=function(e){if(e===o&&g)return g;if(!Jv&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Zv]||p["@@iterator"]||o&&p[o],g=!Jv&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(l=Tv(v.call(new e)))!==Object.prototype&&l.next&&(Tv(l)!==Yv&&(qv?qv(l,Yv):ip(l[Zv])||xh(l,Zv,Xv)),Vv(l,f,!0)),Kv&&"values"==o&&h&&"values"!==h.name&&(Gv?Xp(p,"name","values"):(d=!0,g=function(){return Tp(h,this)})),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(s in u)(Jv||d||!(s in p))&&xh(p,s,u[s]);else Vg({target:t,proto:!0,forced:Jv||d},u);return p[Zv]!==g&&xh(p,Zv,g,{name:o}),Gg[t]=g,u},em=mv.charAt,tm=vh.set,nm=vh.getterFor("String Iterator");Qv(String,"String",(function(e){tm(this,{type:"String Iterator",string:dv(e),index:0})}),(function(){var e,t=nm(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=em(n,r),t.index+=e.length,{value:e,done:!1})}));var rm=hp((function(){yv(1)}));
19
- /*!
20
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
21
- *
22
- * Copyright (c) 2014-2017, Jon Schlinkert.
23
- * Released under the MIT License.
24
- */function om(e){return"[object Object]"===Object.prototype.toString.call(e)}Vg({target:"Object",stat:!0,forced:rm},{keys:function(e){return yv(Xd(e))}});var im={isHistory(e){return!1!==om(t=e)&&(void 0===(n=t.constructor)||!1!==om(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||ht.isOperationList(e.redos[0]))&&(0===e.undos.length||ht.isOperationList(e.undos[0]));var t,n,r}},am=new WeakMap,lm=new WeakMap,um={isHistoryEditor:e=>im.isHistory(e.history)&&it.isEditor(e),isMerging:e=>lm.get(e),isSaving:e=>am.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=um.isMerging(e);lm.set(e,!1),t(),lm.set(e,n)},withoutSaving(e,t){var n=um.isSaving(e);am.set(e,!1),t(),am.set(e,n)}},sm=(e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!gt.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!gt.equals(e.path,t.path)),cm=(e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties,fm=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),dm=e=>"set_selection"!==e.type,pm=function(){var e=jp(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hm=wh.PROPER,gm=RegExp.prototype,vm=gm.toString,mm=Gd(pm),ym=hp((function(){return"/a/b"!=vm.call({source:"a",flags:"b"})})),bm=hm&&"toString"!=vm.name;(ym||bm)&&xh(RegExp.prototype,"toString",(function(){var e=jp(this),t=dv(e.source),n=e.flags;return"/"+t+"/"+dv(void 0===n&&Np(gm,e)&&!("flags"in gm)?mm(e):n)}),{unsafe:!0});var wm=xp("unscopables"),xm=Array.prototype;null==xm[wm]&&Jp.f(xm,wm,{configurable:!0,value:_v(null)});var Cm=function(e){xm[wm][e]=!0},Em=Cg.includes;Vg({target:"Array",proto:!0},{includes:function(e){return Em(this,e,arguments.length>1?arguments[1]:void 0)}}),Cm("includes");var Sm=xp("match"),km=function(e){var t;return kp(e)&&(void 0!==(t=e[Sm])?!!t:"RegExp"==Sh(e))},Dm=Rd.TypeError,Am=function(e){if(km(e))throw Dm("The method doesn't accept regular expressions");return e},Om=xp("match"),_m=function(e){var t=/./;try{"/./"[e](t)}catch(c){try{return t[Om]=!1,"/./"[e](t)}catch(e){}}return!1},Bm=Gd("".indexOf);Vg({target:"String",proto:!0,forced:!_m("includes")},{includes:function(e){return!!~Bm(dv(Jd(this)),dv(Am(e)),arguments.length>1?arguments[1]:void 0)}});var Fm,jm=/"/g,Pm=Gd("".replace);Vg({target:"String",proto:!0,forced:(Fm="anchor",hp((function(){var e=""[Fm]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=dv(Jd(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+Pm(dv(r),jm,"&quot;")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var Tm,Nm=mg.f,Im=Gd("".endsWith),Lm=Gd("".slice),Mm=Math.min,Rm=_m("endsWith"),zm=!(Rm||(Tm=Nm(String.prototype,"endsWith"),!Tm||Tm.writable));Vg({target:"String",proto:!0,forced:!zm&&!Rm},{endsWith:function(e){var t=dv(Jd(this));Am(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Mm(Uh(n),r),i=dv(e);return Im?Im(t,i,o):Lm(t,o-i.length,o)===i}});var Vm=Gd([].join),$m=Mh!=Object,Um=ag("join",",");Vg({target:"Array",proto:!0,forced:$m||!Um},{join:function(e){return Vm(gg(this),void 0===e?",":e)}});var Hm=Rd.RegExp,Wm=hp((function(){var e=Hm("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),qm=Wm||hp((function(){return!Hm("a","y").sticky})),Km={BROKEN_CARET:Wm||hp((function(){var e=Hm("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:qm,UNSUPPORTED_Y:Wm},Gm=Rd.RegExp,Ym=hp((function(){var e=Gm(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Jm=Rd.RegExp,Zm=hp((function(){var e=Jm("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Xm=vh.get,Qm=Ud("native-string-replace",String.prototype.replace),ey=RegExp.prototype.exec,ty=ey,ny=Gd("".charAt),ry=Gd("".indexOf),oy=Gd("".replace),iy=Gd("".slice),ay=function(){var e=/a/,t=/b*/g;return Tp(ey,e,"a"),Tp(ey,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),ly=Km.BROKEN_CARET,uy=void 0!==/()??/.exec("")[1];(ay||uy||ly||Ym||Zm)&&(ty=function(e){var t,n,r,o,i,a,l,u=this,s=Xm(u),c=dv(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=Tp(ty,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=ly&&u.sticky,h=Tp(pm,u),g=u.source,v=0,m=c;if(p&&(h=oy(h,"y",""),-1===ry(h,"g")&&(h+="g"),m=iy(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==ny(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),uy&&(n=new RegExp("^"+g+"$(?!\\s)",h)),ay&&(r=u.lastIndex),o=Tp(ey,p?n:u,m),p?o?(o.input=iy(o.input,v),o[0]=iy(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:ay&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),uy&&o&&o.length>1&&Tp(Qm,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=_v(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var sy=ty;Vg({target:"RegExp",proto:!0,forced:/./.exec!==sy},{exec:sy});var cy=Function.prototype,fy=cy.apply,dy=cy.bind,py=cy.call,hy="object"==typeof Reflect&&Reflect.apply||(dy?py.bind(fy):function(){return py.apply(fy,arguments)}),gy=xp("species"),vy=RegExp.prototype,my=function(e,t,n,r){var o=xp(e),i=!hp((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!hp((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[gy]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=Gd(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=Gd(e),u=t.exec;return u===sy||u===vy.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));xh(String.prototype,e,u[0]),xh(vy,o,u[1])}r&&Xp(vy[o],"sham",!0)},yy=mv.charAt,by=function(e,t,n){return t+(n?yy(e,t).length:1)},wy=Math.floor,xy=Gd("".charAt),Cy=Gd("".replace),Ey=Gd("".slice),Sy=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ky=/\$([$&'`]|\d{1,2})/g,Dy=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=ky;return void 0!==o&&(o=Xd(o),u=Sy),Cy(i,u,(function(i,u){var s;switch(xy(u,0)){case"$":return"$";case"&":return e;case"`":return Ey(t,0,n);case"'":return Ey(t,a);case"<":s=o[Ey(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=wy(c/10);return 0===f?i:f<=l?void 0===r[f-1]?xy(u,1):r[f-1]+xy(u,1):i}s=r[c-1]}return void 0===s?"":s}))},Ay=Rd.TypeError,Oy=function(e,t){var n=e.exec;if(ip(n)){var r=Tp(n,e,t);return null!==r&&jp(r),r}if("RegExp"===Sh(e))return Tp(sy,e,t);throw Ay("RegExp#exec called on incompatible receiver")},_y=xp("replace"),By=Math.max,Fy=Math.min,jy=Gd([].concat),Py=Gd([].push),Ty=Gd("".indexOf),Ny=Gd("".slice),Iy="$0"==="a".replace(/./,"$0"),Ly=!!/./[_y]&&""===/./[_y]("a","$0");my("replace",(function(e,t,n){var r=Ly?"$":"$0";return[function(e,n){var r=Jd(this),o=null==e?void 0:$p(e,_y);return o?Tp(o,e,r,n):Tp(t,dv(r),e,n)},function(e,o){var i=jp(this),a=dv(e);if("string"==typeof o&&-1===Ty(o,r)&&-1===Ty(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=ip(o);u||(o=dv(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Oy(i,a);if(null===d)break;if(Py(f,d),!s)break;""===dv(d[0])&&(i.lastIndex=by(a,Uh(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=dv((d=f[v])[0]),y=By(Fy(Vh(d.index),a.length),0),b=[],w=1;w<d.length;w++)Py(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=jy([m],b,y,a);void 0!==x&&Py(C,x);var E=dv(hy(o,void 0,C))}else E=Dy(m,a,y,b,x,o);y>=g&&(h+=Ny(a,g,y)+E,g=y+m.length)}return h+Ny(a,g)}]}),!!hp((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Iy||Ly);
25
- /*! *****************************************************************************
26
- Copyright (c) Microsoft Corporation.
27
-
28
- Permission to use, copy, modify, and/or distribute this software for any
29
- purpose with or without fee is hereby granted.
30
-
31
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
32
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
34
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
35
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
36
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37
- PERFORMANCE OF THIS SOFTWARE.
38
- ***************************************************************************** */
39
- var My=function(e,t){return My=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},My(e,t)};function Ry(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}My(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var zy=function(){return zy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zy.apply(this,arguments)};function Vy(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Uy(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var Hy=0,Wy=function(){this.id=""+Hy++},qy=vh.set,Ky=vh.getterFor("Array Iterator"),Gy=Qv(Array,"Array",(function(e,t){qy(this,{type:"Array Iterator",target:gg(e),index:0,kind:t})}),(function(){var e=Ky(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Gg.Arguments=Gg.Array,Cm("keys"),Cm("values"),Cm("entries");var Yy=function(e,t,n){for(var r in t)xh(e,r,t[r],n);return e},Jy=Rd.Array,Zy=Math.max,Xy=function(e,t,n){for(var r=Hh(e),o=wg(t,r),i=wg(void 0===n?r:n,r),a=Jy(Zy(i-o,0)),l=0;o<i;o++,l++)Xg(a,l,e[o]);return a.length=l,a},Qy=Og.f,eb="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tb={f:function(e){return eb&&"Window"==Sh(e)?function(e){try{return Qy(e)}catch(e){return Xy(eb)}}(e):Qy(gg(e))}},nb=hp((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),rb=Object.isExtensible,ob=hp((function(){rb(1)}))||nb?function(e){return!!kp(e)&&(!nb||"ArrayBuffer"!=Sh(e))&&(!rb||rb(e))}:rb,ib=!hp((function(){return Object.isExtensible(Object.preventExtensions({}))})),ab=Nd((function(e){var t=Jp.f,n=!1,r=op("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Og.f,t=Gd([].splice),o={};o[r]=1,e(o).length&&(Og.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Vg({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tb.f}))},fastKey:function(e,t){if(!kp(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ep(e,r)){if(!ob(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ep(e,r)){if(!ob(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ib&&n&&ob(e)&&!ep(e,r)&&i(e),e}};uh[r]=!0})),lb=Rd.TypeError,ub=function(e,t){this.stopped=e,this.result=t},sb=ub.prototype,cb=function(e,t,n){var r,o,i,a,l,u,s,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Nh(t,c),g=function(e){return r&&qg(r,"normal",e),new ub(!0,e)},v=function(e){return f?(jp(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=ev(e)))throw lb(Rp(e)+" is not iterable");if(Zg(o)){for(i=0,a=Hh(e);a>i;i++)if((l=v(e[i]))&&Np(sb,l))return l;return new ub(!1)}r=nv(e,o)}for(u=r.next;!(s=Tp(u,r)).done;){try{l=v(s.value)}catch(e){qg(r,"throw",e)}if("object"==typeof l&&l&&Np(sb,l))return l}return new ub(!1)},fb=Rd.TypeError,db=function(e,t){if(Np(t,e))return e;throw fb("Incorrect invocation")},pb=function(e,t,n){var r,o;return qv&&ip(r=t.constructor)&&r!==n&&kp(o=r.prototype)&&o!==n.prototype&&qv(e,o),e},hb=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Rd[e],l=a&&a.prototype,u=a,s={},c=function(e){var t=Gd(l[e]);xh(l,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!kp(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!kp(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!kp(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Rg(e,!ip(a)||!(o||l.forEach&&!hp((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),ab.enable();else if(Rg(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=hp((function(){f.has(1)})),h=uv((function(e){new a(e)})),g=!o&&hp((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(e,t){db(e,l);var n=pb(new a,e,u);return null!=t&&cb(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=l,l.constructor=u),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&l.clear&&delete l.clear}return s[e]=u,Vg({global:!0,forced:u!=a},s),Vv(u,e),o||n.setStrong(u,e,r),u},gb=ab.getWeakData,vb=vh.set,mb=vh.getterFor,yb=ig.find,bb=ig.findIndex,wb=Gd([].splice),xb=0,Cb=function(e){return e.frozen||(e.frozen=new Eb)},Eb=function(){this.entries=[]},Sb=function(e,t){return yb(e.entries,(function(e){return e[0]===t}))};Eb.prototype={get:function(e){var t=Sb(this,e);if(t)return t[1]},has:function(e){return!!Sb(this,e)},set:function(e,t){var n=Sb(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=bb(this.entries,(function(t){return t[0]===e}));return~t&&wb(this.entries,t,1),!!~t}};var kb,Db={getConstructor:function(e,t,n,r){var o=e((function(e,o){db(e,i),vb(e,{type:t,id:xb++,frozen:void 0}),null!=o&&cb(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=mb(t),l=function(e,t,n){var r=a(e),o=gb(jp(t),!0);return!0===o?Cb(r).set(t,n):o[r.id]=n,e};return Yy(i,{delete:function(e){var t=a(this);if(!kp(e))return!1;var n=gb(e);return!0===n?Cb(t).delete(e):n&&ep(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!kp(e))return!1;var n=gb(e);return!0===n?Cb(t).has(e):n&&ep(n,t.id)}}),Yy(i,n?{get:function(e){var t=a(this);if(kp(e)){var n=gb(e);return!0===n?Cb(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return l(this,e,t)}}:{add:function(e){return l(this,e,!0)}}),o}},Ab=vh.enforce,Ob=!Rd.ActiveXObject&&"ActiveXObject"in Rd,_b=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Bb=hb("WeakMap",_b,Db);if(ih&&Ob){kb=Db.getConstructor(_b,"WeakMap",!0),ab.enable();var Fb=Bb.prototype,jb=Gd(Fb.delete),Pb=Gd(Fb.has),Tb=Gd(Fb.get),Nb=Gd(Fb.set);Yy(Fb,{delete:function(e){if(kp(e)&&!ob(e)){var t=Ab(this);return t.frozen||(t.frozen=new kb),jb(this,e)||t.frozen.delete(e)}return jb(this,e)},has:function(e){if(kp(e)&&!ob(e)){var t=Ab(this);return t.frozen||(t.frozen=new kb),Pb(this,e)||t.frozen.has(e)}return Pb(this,e)},get:function(e){if(kp(e)&&!ob(e)){var t=Ab(this);return t.frozen||(t.frozen=new kb),Pb(this,e)?Tb(this,e):t.frozen.get(e)}return Tb(this,e)},set:function(e,t){if(kp(e)&&!ob(e)){var n=Ab(this);n.frozen||(n.frozen=new kb),Pb(this,e)?Nb(this,e,t):n.frozen.set(e,t)}else Nb(this,e,t);return this}})}var Ib=xp("iterator"),Lb=xp("toStringTag"),Mb=Gy.values,Rb=function(e,t){if(e){if(e[Ib]!==Mb)try{Xp(e,Ib,Mb)}catch(t){e[Ib]=Mb}if(e[Lb]||Xp(e,Lb,t),Bh[t])for(var n in Gy)if(e[n]!==Gy[n])try{Xp(e,n,Gy[n])}catch(t){e[n]=Gy[n]}}};for(var zb in Bh)Rb(Rd[zb]&&Rd[zb].prototype,zb);Rb(Ph,"DOMTokenList");var Vb=new WeakMap,$b=new WeakMap,Ub=new WeakMap,Hb=new WeakMap,Wb=new WeakMap,qb=new WeakMap,Kb=new WeakMap,Gb=new WeakMap,Yb=new WeakMap,Jb=new WeakMap,Zb=new WeakMap,Xb=new WeakMap,Qb=new WeakMap,ew=new WeakMap,tw=new WeakMap,nw=new WeakMap,rw=new WeakMap,ow=new WeakMap,iw=new WeakMap,aw=new WeakMap,lw=new WeakMap,uw=new WeakMap,sw=new WeakMap,cw=new WeakMap,fw=new WeakMap,dw=ig.find,pw=!0;"find"in[]&&Array(1).find((function(){pw=!1})),Vg({target:"Array",proto:!0,forced:pw},{find:function(e){return dw(this,e,arguments.length>1?arguments[1]:void 0)}}),Cm("find"),Vg({global:!0},{globalThis:Rd});const hw=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];So&&(uo.fn.css=So),Bo&&(uo.fn.append=Bo),so&&(uo.fn.addClass=so),co&&(uo.fn.removeClass=co),fo&&(uo.fn.hasClass=fo),mo&&(uo.fn.on=mo),Vo&&(uo.fn.focus=Vo),po&&(uo.fn.attr=po),ho&&(uo.fn.removeAttr=ho),Co&&(uo.fn.hide=Co),Eo&&(uo.fn.show=Eo),xo&&(uo.fn.offset=xo),bo&&(uo.fn.width=bo),wo&&(uo.fn.height=wo),jo&&(uo.fn.parent=jo),Po&&(uo.fn.parents=Po),_o&&(uo.fn.is=_o),go&&(uo.fn.dataset=go),vo&&(uo.fn.val=vo),Oo&&(uo.fn.text=Oo),Ao&&(uo.fn.html=Ao),No&&(uo.fn.children=No),Io&&(uo.fn.remove=Io),To&&(uo.fn.find=To),ko&&(uo.fn.each=ko),Lo&&(uo.fn.empty=Lo);var gw,vw=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},mw=function(e){return yw(e)&&1===e.nodeType},yw=function(e){var t=vw(e);return!!t&&e instanceof t.Node},bw=function(e){var t=e&&e.anchorNode&&vw(e.anchorNode);return!!t&&e instanceof t.Selection},ww=function(e){return yw(e)&&3===e.nodeType},xw=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},Cw=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,l=!1,u=!1;(yw(r=i)&&8===r.nodeType||mw(i)&&0===i.childNodes.length||mw(i)&&"false"===i.getAttribute("contenteditable"))&&(!l||!u);)a>=o.length?(l=!0,a=t-1,n="backward"):a<0?(u=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},Ew=function(e,t,n){return $y(Cw(e,t,n),1)[0]},Sw=function e(t){var n,r,o="";if(ww(t)&&t.nodeValue)return t.nodeValue;if(mw(t)){try{for(var i=Vy(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var l=getComputedStyle(t).getPropertyValue("display");"block"!==l&&"list"!==l&&"table-row"!==l&&"BR"!==t.tagName||(o+="\n")}return o};function kw(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||kw(o,t)}}function Dw(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==gw.ELEMENT_NODE?"":t.tagName.toLowerCase()}!function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(gw||(gw={})),void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var Aw="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Ow="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var _w="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Bw="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Fw="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),jw="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var Pw=!Fw&&!Bw&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Tw={getWindow:function(e){var t=lw.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=aw.get(t);return n||(n=new Wy,aw.set(t,n)),n},setNewKey:function(e){var t=new Wy;aw.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=tw.get(r);if(null==o){if(it.isEditor(r))return n;break}var i=ew.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=Tw.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return tw.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=Tw.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[Tw.findPath(e,t)[0]];return ft.get(e,n)},toDOMNode:function(e,t){var n;if(it.isEditor(t))n=nw.get(e);else{var r=Tw.findKey(e,t);n=ow.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=Tw.toDOMNode(e,e);try{r=mw(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=St.isBackward(t),i=Tw.toDOMPoint(e,n),a=St.isCollapsed(t)?i:Tw.toDOMPoint(e,r),l=Tw.getWindow(e).document.createRange(),u=$y(o?a:i,2),s=u[0],c=u[1],f=$y(o?i:a,2),d=f[0],p=f[1],h=!!(mw(s)?s:s.parentElement).getAttribute("data-slate-zero-width"),g=!!(mw(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return l.setStart(s,h?1:c),l.setEnd(d,g?1:p),l},toDOMPoint:function(e,t){var n,r,o,i=$y(it.node(e,t.path),1)[0],a=Tw.toDOMNode(e,i);it.void(e,{at:t})&&(t={path:t.path,offset:0});var l=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var s=Vy(l),c=s.next();!c.done;c=s.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=u+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-u))];break}u=g}}}catch(ose){n={error:ose}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=mw(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?rw.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=Tw.toSlateNode(e,t.target),l=Tw.findPath(e,a);if(it.isVoid(e,a)){var u=o.getBoundingClientRect(),s=e.isInline(a)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,c=it.point(e,l,{edge:s?"start":"end"}),f=s?it.before(e,c):it.after(e,c);if(f)return it.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return Tw.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,l,u=n.exactMatch,s=n.suppressThrow;if((bw(t)?t.anchorNode:t.startContainer)&&(bw(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,l=jw&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,l=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=Tw.toSlatePoint(e,[r,o],{exactMatch:u,suppressThrow:s});if(!c)return null;var f=l?c:Tw.toSlatePoint(e,[i,a],{exactMatch:u,suppressThrow:s});if(!f)return null;var d={anchor:c,focus:f};return St.isExpanded(d)&&St.isForward(d)&&mw(i)&&it.void(e,{at:d.focus,mode:"highest"})&&(d=it.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=$y(o?t:function(e){var t,n=$y(e,2),r=n[0],o=n[1];if(mw(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=$y(Cw(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;mw(r)&&r.childNodes.length;){var l=i?r.childNodes.length-1:0;r=Ew(r,l,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),l=a[0],u=a[1],s=l.parentNode,c=null,f=0;if(s){var d=s.closest('[data-slate-void="true"]'),p=s.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=Tw.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(l,u);var v=g.cloneContents();Uy(Uy([],$y(zr(v.querySelectorAll("[data-slate-zero-width]")))),$y(zr(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(s.hasAttribute("data-slate-zero-width")||Ow&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var m=Tw.toSlateNode(e,c);return{path:Tw.findPath(e,m),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return it.hasPath(e,n.path)&&it.hasPath(e,r.path)},getNodeType:function(e){return Qe.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return ft.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=it.nodes(e,{universal:!0});try{for(var i=Vy(o),a=i.next();!a.done;a=i.next()){var l=$y(a.value,1)[0];Qe.isElement(l)&&r.push(l)}}catch(ose){t={error:ose}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=$y(it.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=$y(it.nodes(e,{match:function(e){return Ft.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=$y(it.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&$y(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(it.isEnd(e,n.anchor,t)||it.isEnd(e,n.focus,t))},getTextarea:function(e){var t=Vb.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Hb.get(e)||null},getHoverbar:function(e){return qb.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=Tw.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var l=Vy(Array.from(a)),u=l.next();!u.done;u=l.next()){var s=u.value;if(3!==s.nodeType)break;s.remove()}}catch(ose){t={error:ose}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}var c=it.nodes(e,{match:function(t){return!(!Qe.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=Vy(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];kw(Tw.toDOMNode(e,h),(function(e,t){var n=uo(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||t.removeChild(e)}))}}}catch(ose){r={error:ose}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=it.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Vy(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(ose){t={error:ose}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(St.isExpanded(t))return!1;var n=Tw.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=it.node(e,t);if(null==n)return!1;var r=$y(n,1)[0].children;return 1===r.length&&""===r[0].text}},Nw=1,Iw={},Lw={};function Mw(e,t){var n=e.key,r=e.factory,o=e.config,i=zy(zy({},o),t||{});if(null!=Lw[n])throw new Error("Duplicated key '"+n+"' in menu items");Lw[n]=r,function(e,t){null!=t&&(Iw[e]=t)}(n,i)}var Rw=xp("species"),zw=function(e){var t=lp(e),n=Jp.f;Sp&&t&&!t[Rw]&&n(t,Rw,{configurable:!0,get:function(){return this}})},Vw=Jp.f,$w=ab.fastKey,Uw=vh.set,Hw=vh.getterFor,Ww={getConstructor:function(e,t,n,r){var o=e((function(e,o){db(e,i),Uw(e,{type:t,index:_v(null),first:void 0,last:void 0,size:0}),Sp||(e.size=0),null!=o&&cb(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Hw(t),l=function(e,t,n){var r,o,i=a(e),l=u(e,t);return l?l.value=n:(i.last=l={index:o=$w(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=l),r&&(r.next=l),Sp?i.size++:e.size++,"F"!==o&&(i.index[o]=l)),e},u=function(e,t){var n,r=a(e),o=$w(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Yy(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Sp?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=u(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Sp?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Nh(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),Yy(i,n?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return l(this,0===e?0:e,t)}}:{add:function(e){return l(this,e=0===e?0:e,e)}}),Sp&&Vw(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Hw(t),i=Hw(r);Qv(e,t,(function(e,t){Uw(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),zw(t)}};hb("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ww);var qw=ig.filter,Kw=Ug("filter");Vg({target:"Array",proto:!0,forced:!Kw},{filter:function(e){return qw(this,e,arguments.length>1?arguments[1]:void 0)}});var Gw="\t\n\v\f\r                 \u2028\u2029\ufeff",Yw=Gd("".replace),Jw="["+Gw+"]",Zw=RegExp("^"+Jw+Jw+"*"),Xw=RegExp(Jw+Jw+"*$"),Qw=function(e){return function(t){var n=dv(Jd(t));return 1&e&&(n=Yw(n,Zw,"")),2&e&&(n=Yw(n,Xw,"")),n}},ex={start:Qw(1),end:Qw(2),trim:Qw(3)},tx=wh.PROPER,nx=ex.trim;Vg({target:"String",proto:!0,forced:function(e){return hp((function(){return!!Gw[e]()||"​…᠎"!=="​…᠎"[e]()||tx&&Gw[e].name!==e}))}("trim")},{trim:function(){return nx(this)}});var rx=[];function ox(e){rx.push(e)}var ix={};function ax(e){var t=e.type,n=e.elemToHtml;ix[t||""]=n}function lx(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function ux(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=it.isVoid(t,e),l="";a||(l=i.map((function(e){return $C(e,t)})).join(""));var u=function(e){return ix[e]||lx}(r),s=u(e,l,t);return a||rx.forEach((function(t){return s=t(e,s)})),s}var sx,cx,fx,dx,px=Rd.Promise,hx=Rd.TypeError,gx=xp("species"),vx=function(e,t){var n,r=jp(e).constructor;return void 0===r||null==(n=jp(r)[gx])?t:function(e){if(Qh(e))return e;throw hx(Rp(e)+" is not a constructor")}(n)},mx=Gd([].slice),yx=/(?:ipad|iphone|ipod).*applewebkit/i.test(up),bx="process"==Sh(Rd.process),wx=Rd.setImmediate,xx=Rd.clearImmediate,Cx=Rd.process,Ex=Rd.Dispatch,Sx=Rd.Function,kx=Rd.MessageChannel,Dx=Rd.String,Ax=0,Ox={};try{sx=Rd.location}catch(ose){}var _x=function(e){if(ep(Ox,e)){var t=Ox[e];delete Ox[e],t()}},Bx=function(e){return function(){_x(e)}},Fx=function(e){_x(e.data)},jx=function(e){Rd.postMessage(Dx(e),sx.protocol+"//"+sx.host)};wx&&xx||(wx=function(e){var t=mx(arguments,1);return Ox[++Ax]=function(){hy(ip(e)?e:Sx(e),void 0,t)},cx(Ax),Ax},xx=function(e){delete Ox[e]},bx?cx=function(e){Cx.nextTick(Bx(e))}:Ex&&Ex.now?cx=function(e){Ex.now(Bx(e))}:kx&&!yx?(dx=(fx=new kx).port2,fx.port1.onmessage=Fx,cx=Nh(dx.postMessage,dx)):Rd.addEventListener&&ip(Rd.postMessage)&&!Rd.importScripts&&sx&&"file:"!==sx.protocol&&!hp(jx)?(cx=jx,Rd.addEventListener("message",Fx,!1)):cx="onreadystatechange"in Op("script")?function(e){wv.appendChild(Op("script")).onreadystatechange=function(){wv.removeChild(this),_x(e)}}:function(e){setTimeout(Bx(e),0)});var Px,Tx,Nx,Ix,Lx,Mx,Rx,zx,Vx={set:wx,clear:xx},$x=/ipad|iphone|ipod/i.test(up)&&void 0!==Rd.Pebble,Ux=/web0s(?!.*chrome)/i.test(up),Hx=mg.f,Wx=Vx.set,qx=Rd.MutationObserver||Rd.WebKitMutationObserver,Kx=Rd.document,Gx=Rd.process,Yx=Rd.Promise,Jx=Hx(Rd,"queueMicrotask"),Zx=Jx&&Jx.value;Zx||(Px=function(){var e,t;for(bx&&(e=Gx.domain)&&e.exit();Tx;){t=Tx.fn,Tx=Tx.next;try{t()}catch(e){throw Tx?Ix():Nx=void 0,e}}Nx=void 0,e&&e.enter()},yx||bx||Ux||!qx||!Kx?!$x&&Yx&&Yx.resolve?((Rx=Yx.resolve(void 0)).constructor=Yx,zx=Nh(Rx.then,Rx),Ix=function(){zx(Px)}):bx?Ix=function(){Gx.nextTick(Px)}:(Wx=Nh(Wx,Rd),Ix=function(){Wx(Px)}):(Lx=!0,Mx=Kx.createTextNode(""),new qx(Px).observe(Mx,{characterData:!0}),Ix=function(){Mx.data=Lx=!Lx}));var Xx,Qx,eC,tC,nC=Zx||function(e){var t={fn:e,next:void 0};Nx&&(Nx.next=t),Tx||(Tx=t,Ix()),Nx=t},rC=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Vp(t),this.reject=Vp(n)},oC={f:function(e){return new rC(e)}},iC=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},aC="object"==typeof window,lC=Vx.set,uC=xp("species"),sC="Promise",cC=vh.getterFor(sC),fC=vh.set,dC=vh.getterFor(sC),pC=px&&px.prototype,hC=px,gC=pC,vC=Rd.TypeError,mC=Rd.document,yC=Rd.process,bC=oC.f,wC=bC,xC=!!(mC&&mC.createEvent&&Rd.dispatchEvent),CC=ip(Rd.PromiseRejectionEvent),EC=!1,SC=Rg(sC,(function(){var e=rh(hC),t=e!==String(hC);if(!t&&66===pp)return!0;if(pp>=51&&/native code/.test(e))return!1;var n=new hC((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[uC]=r,!(EC=n.then((function(){}))instanceof r)||!t&&aC&&!CC})),kC=SC||!uv((function(e){hC.all(e).catch((function(){}))})),DC=function(e){var t;return!(!kp(e)||!ip(t=e.then))&&t},AC=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;nC((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,l,u,s=n[i++],c=o?s.ok:s.fail,f=s.resolve,d=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&FC(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),u=!0)),a===s.promise?d(vC("Promise-chain cycle")):(l=DC(a))?Tp(l,a,f,d):f(a)):d(r)}catch(e){p&&!u&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&_C(e)}))}},OC=function(e,t,n){var r,o;xC?((r=mC.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Rd.dispatchEvent(r)):r={promise:t,reason:n},!CC&&(o=Rd["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Rd.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},_C=function(e){Tp(lC,Rd,(function(){var t,n=e.facade,r=e.value;if(BC(e)&&(t=iC((function(){bx?yC.emit("unhandledRejection",r,n):OC("unhandledrejection",n,r)})),e.rejection=bx||BC(e)?2:1,t.error))throw t.value}))},BC=function(e){return 1!==e.rejection&&!e.parent},FC=function(e){Tp(lC,Rd,(function(){var t=e.facade;bx?yC.emit("rejectionHandled",t):OC("rejectionhandled",t,e.value)}))},jC=function(e,t,n){return function(r){e(t,r,n)}},PC=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,AC(e,!0))},TC=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw vC("Promise can't be resolved itself");var r=DC(t);r?nC((function(){var n={done:!1};try{Tp(r,t,jC(TC,n,e),jC(PC,n,e))}catch(t){PC(n,t,e)}})):(e.value=t,e.state=1,AC(e,!1))}catch(t){PC({done:!1},t,e)}}};if(SC&&(gC=(hC=function(e){db(this,gC),Vp(e),Tp(Xx,this);var t=cC(this);try{e(jC(TC,t),jC(PC,t))}catch(e){PC(t,e)}}).prototype,(Xx=function(e){fC(this,{type:sC,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Yy(gC,{then:function(e,t){var n=dC(this),r=n.reactions,o=bC(vx(this,hC));return o.ok=!ip(e)||e,o.fail=ip(t)&&t,o.domain=bx?yC.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&AC(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Qx=function(){var e=new Xx,t=cC(e);this.promise=e,this.resolve=jC(TC,t),this.reject=jC(PC,t)},oC.f=bC=function(e){return e===hC||e===eC?new Qx(e):wC(e)},ip(px)&&pC!==Object.prototype)){tC=pC.then,EC||(xh(pC,"then",(function(e,t){var n=this;return new hC((function(e,t){Tp(tC,n,e,t)})).then(e,t)}),{unsafe:!0}),xh(pC,"catch",gC.catch,{unsafe:!0}));try{delete pC.constructor}catch(ose){}qv&&qv(pC,gC)}Vg({global:!0,wrap:!0,forced:SC},{Promise:hC}),Vv(hC,sC,!1),zw(sC),eC=lp(sC),Vg({target:sC,stat:!0,forced:SC},{reject:function(e){var t=bC(this);return Tp(t.reject,void 0,e),t.promise}}),Vg({target:sC,stat:!0,forced:SC},{resolve:function(e){return function(e,t){if(jp(e),kp(t)&&t.constructor===e)return t;var n=oC.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Vg({target:sC,stat:!0,forced:kC},{all:function(e){var t=this,n=bC(t),r=n.resolve,o=n.reject,i=iC((function(){var n=Vp(t.resolve),i=[],a=0,l=1;cb(e,(function(e){var u=a++,s=!1;l++,Tp(n,t,e).then((function(e){s||(s=!0,i[u]=e,--l||r(i))}),o)})),--l||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=bC(t),r=n.reject,o=iC((function(){var o=Vp(t.resolve);cb(e,(function(e){Tp(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var NC=Km.UNSUPPORTED_Y,IC=Math.min,LC=[].push,MC=Gd(/./.exec),RC=Gd(LC),zC=Gd("".slice);function VC(e){Promise.resolve().then(e)}function $C(e,t){return Qe.isElement(e)?ux(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=Tw.getParentsNodes(t,e).some((function(e){return"pre"===Tw.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=Tw.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return rx.forEach((function(t){return r=t(e,r)})),r}(e,t)}function UC(e){return"w-e-element-"+e}my("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=dv(Jd(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!km(e))return Tp(t,r,e,o);for(var i,a,l,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,s+"g");(i=Tp(sy,f,r))&&!((a=f.lastIndex)>c&&(RC(u,zC(r,c,i.index)),i.length>1&&i.index<r.length&&hy(LC,u,Xy(i,1)),l=i[0].length,c=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!l&&MC(f,"")||RC(u,""):RC(u,zC(r,c)),u.length>o?Xy(u,0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Tp(t,this,e,n)}:t,[function(t,n){var o=Jd(this),i=null==t?void 0:$p(t,e);return i?Tp(i,t,o,n):Tp(r,dv(o),t,n)},function(e,o){var i=jp(this),a=dv(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=vx(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(NC?"g":"y"),f=new u(NC?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Oy(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=NC?0:h;var v,m=Oy(f,NC?zC(a,h):a);if(null===m||(v=IC(Uh(f.lastIndex+(NC?h:0)),a.length))===p)h=by(a,h,s);else{if(RC(g,zC(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(RC(g,m[y]),g.length===d)return g;h=p=v}}return RC(g,zC(a,p)),g}]}),!!hp((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),NC);var HC=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},WC=function(e,t,n){var r=Tw.toDOMRange(e,t).getBoundingClientRect(),o=Tw.toDOMRange(e,n).getBoundingClientRect();return HC(r,o)&&HC(o,r)},qC=["span","b","strong","i","em","s","strike","u","font","sub","sup"],KC=[];function GC(e){KC.push(e)}var YC=[];function JC(e){YC.push(e)}var ZC={};function XC(e){var t=e.selector,n=e.parseElemHtml;ZC[t]=n}var QC=Jp.f,eE=Og.f,tE=vh.enforce,nE=xp("match"),rE=Rd.RegExp,oE=rE.prototype,iE=Rd.SyntaxError,aE=Gd(pm),lE=Gd(oE.exec),uE=Gd("".charAt),sE=Gd("".replace),cE=Gd("".indexOf),fE=Gd("".slice),dE=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,pE=/a/g,hE=/a/g,gE=new rE(pE)!==pE,vE=Km.MISSED_STICKY,mE=Km.UNSUPPORTED_Y,yE=Sp&&(!gE||vE||Ym||Zm||hp((function(){return hE[nE]=!1,rE(pE)!=pE||rE(hE)==hE||"/a/i"!=rE(pE,"i")})));if(Rg("RegExp",yE)){for(var bE=function(e,t){var n,r,o,i,a,l,u=Np(oE,this),s=km(e),c=void 0===t,f=[],d=e;if(!u&&s&&c&&e.constructor===bE)return e;if((s||Np(oE,e))&&(e=e.source,c&&(t="flags"in d?d.flags:aE(d))),e=void 0===e?"":dv(e),t=void 0===t?"":dv(t),d=e,Ym&&"dotAll"in pE&&(r=!!t&&cE(t,"s")>-1)&&(t=sE(t,/s/g,"")),n=t,vE&&"sticky"in pE&&(o=!!t&&cE(t,"y")>-1)&&mE&&(t=sE(t,/y/g,"")),Zm&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},l=!1,u=!1,s=0,c="";r<=n;r++){if("\\"===(t=uE(e,r)))t+=uE(e,++r);else if("]"===t)l=!1;else if(!l)switch(!0){case"["===t:l=!0;break;case"("===t:lE(dE,fE(e,r+1))&&(r+=2,u=!0),o+=t,s++;continue;case">"===t&&u:if(""===c||ep(a,c))throw new iE("Invalid capture group name");a[c]=!0,i[i.length]=[c,s],u=!1,c="";continue}u?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=pb(rE(e,t),u?this:oE,bE),(r||o||f.length)&&(l=tE(a),r&&(l.dotAll=!0,l.raw=bE(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=uE(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+uE(e,++r);return o}(e),n)),o&&(l.sticky=!0),f.length&&(l.groups=f)),e!==d)try{Xp(a,"source",""===d?"(?:)":d)}catch(e){}return a},wE=function(e){e in bE||QC(bE,e,{configurable:!0,get:function(){return rE[e]},set:function(t){rE[e]=t}})},xE=eE(rE),CE=0;xE.length>CE;)wE(xE[CE++]);oE.constructor=bE,bE.prototype=oE,xh(Rd,"RegExp",bE)}zw("RegExp");var EE=new RegExp(String.fromCharCode(160),"g");function SE(e){return e.replace(EE," ")}function kE(e,t){var n=e.length;if(n){var r=e[n-1];if(Ft.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function DE(e,t,n){return{type:"paragraph",children:[{text:uo(e).text().replace(/\s+/gm," ")}]}}function AE(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==gw.ELEMENT_NODE)if(e.nodeType!==gw.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=SE(r),kE(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(kE(n,"\n")||n.push({text:"\n"}));var o=uo(e);n.push(_E(o,t))}})),n)}(e,t),r=function(e){for(var t in ZC)if(e[0].matches(t))return ZC[t];return DE}(e),o=r(e[0],n,t);return it.isVoid(t,o)||(0===n.length&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),YC.forEach((function(n){o=n(e[0],o,t)}))),o}function OE(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™")}(n);var r={text:n=SE(n)};return YC.forEach((function(n){r=n(e[0],r,t)})),r}function _E(e,t){KC.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=uo(r(e[0])))}));var n=Dw(e);return"span"===n?e.attr("data-w-e-type")?AE(e,t):OE(e,t):"code"===n?"pre"===Dw(e.parent())?AE(e,t):OE(e,t):qC.includes(n)?OE(e,t):AE(e,t)}var BE=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),FE=function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,l,u,s,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=Vy(it.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=$y(p.value,2),g=h[0],v=h[1],m=Tw.findKey(t,g);f.push([v,m])}}catch(ose){n={error:ose}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var y=Vy(it.levels(t,{at:gt.parent(e.path)})),b=y.next();!b.done;b=y.next()){var w=$y(b.value,2);g=w[0],v=w[1],m=Tw.findKey(t,g),f.push([v,m])}}catch(ose){i={error:ose}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=Vy(it.levels(t,{at:gt.common(gt.parent(e.path),gt.parent(e.newPath))})),C=x.next();!C.done;C=x.next()){var E=$y(C.value,2);g=E[0],v=E[1],m=Tw.findKey(t,g),f.push([v,m])}}catch(ose){l={error:ose}}finally{try{C&&!C.done&&(u=x.return)&&u.call(x)}finally{if(l)throw l.error}}}o(e);try{for(var S=Vy(f),k=S.next();!k.done;k=S.next()){var D=$y(k.value,2);v=D[0],m=D[1],g=$y(it.node(t,v),1)[0],aw.set(g,m)}}catch(ose){s={error:ose}}finally{try{k&&!k.done&&(c=S.return)&&c.call(S)}finally{if(s)throw s.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&St.isCollapsed(e.selection)){var r=it.above(e,{match:function(t){return it.isBlock(e,t)},at:e.selection});if(r){var o=$y(r,2)[1],a=it.range(e,o,e.selection.anchor),l=function(e,t){var n=it.range(e,St.end(t)),r=Array.from(it.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(WC(e,it.range(e,r[o]),n))return it.range(e,r[o],n);if(r.length<2)return it.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)WC(e,it.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return it.range(e,r[i],n)}(t,a);St.isCollapsed(l)||Jt.delete(e,{at:l})}}},t.onChange=function(){var e=t.selection;null!=e&&sw.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return $C(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return ft.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":it.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=it.nodes(t,{at:[],universal:!0});try{for(var l=Vy(a),u=l.next();!u.done;u=l.next()){var s=$y(u.value,1)[0];if(Qe.isElement(s)&&(n?s.type.indexOf(e)>=0:s.type===e)){var c=UC(Tw.findKey(t,s).id);i.push(zy(zy({},s),{id:c}))}}}catch(ose){r={error:ose}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Qe.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Ft.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Jt.removeNodes(t,{at:{anchor:it.start(t,[]),focus:it.end(t,[])},mode:"highest"}),0===t.children.length&&Jt.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return Tw.getParentNode(t,e)},t.dangerouslyInsertHtml=function(n,r){if(void 0===n&&(n=""),void 0===r&&(r=!1),n){var o=document.createElement("div");o.innerHTML=n;var i=Array.from(o.childNodes);if(i=i.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===gw.TEXT_NODE||t===gw.ELEMENT_NODE&&!BE.has(n.toLowerCase())})),0!==i.length){var a=t.selection;if(null!=a){var l=null;Tw.isSelectedEmptyParagraph(t)&&!r&&(l=[a.focus.path[0]]),o.setAttribute("hidden","true"),document.body.appendChild(o);var u=0;i.forEach((function(n){var r=n.nodeType,o=n.nodeName,i=n.textContent,a=void 0===i?"":i;if(r!==gw.TEXT_NODE)if("BR"!==o){var l=n,s=!1;if(qC.includes(o.toLowerCase()))s=!0;else for(var c in ZC)if(l.matches(c)){s=!0;break}if(s){var f=_E(uo(l),t);return t.isInline(f)?t.insertNode(f):Jt.insertNodes(t,f,{mode:"highest"}),u++,void(Tw.isSelectedVoidNode(t)&&t.move(1))}var d=window.getComputedStyle(l).display;Tw.isSelectedEmptyParagraph(t)||d.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(l.innerHTML,!0)}else e.insertText("\n");else{if(!a||!a.trim())return;t.insertNode({text:a})}})),u&&l&&Tw.isEmptyPath(t,l)&&Jt.removeNodes(t,{at:l}),o.remove()}}}},t.setHtml=function(n){if(void 0===n&&(n=""),n){var r=t.isDisabled(),o=t.isFocused(),i=JSON.stringify(t.selection);if(t.enable(),t.focus(),t.select([]),t.deleteFragment(),Jt.setNodes(e,{type:"paragraph"},{mode:"highest"}),t.dangerouslyInsertHtml(n),o||(t.deselect(),t.blur()),r&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch(e){t.select(it.start(t,[]))}}},t},jE=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=$y(St.edges(n),2),o=r[0],i=r[1],a=it.void(t,{at:o.path}),l=it.void(t,{at:i.path});if(!St.isCollapsed(n)||a){var u=Tw.toDOMRange(t,n),s=u.cloneContents(),c=s.childNodes[0];if(s.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),l){var f=$y(l,1)[0],d=u.cloneRange(),p=Tw.toDOMNode(t,f);d.setEndAfter(p),s=d.cloneContents()}if(a&&(c=s.querySelector("[data-slate-spacer]")),Array.from(s.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),ww(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),s.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),m=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",m),e.setData("application/x-slate-fragment",m);var y=s.ownerDocument.createElement("div");return y.appendChild(s),y.setAttribute("hidden","true"),s.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",Sw(y)),s.ownerDocument.body.removeChild(y),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),l=JSON.parse(a);t.insertFragment(l)}else{var u=e.getData("text/plain"),s=e.getData("text/html");if(s)t.dangerouslyInsertHtml(s);else if(u){var c=u.split(/\r\n|\r|\n/),f=!1;try{for(var d=Vy(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Jt.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},PE=function(e){return null!=e},TE={object:!0,function:!0,undefined:!0},NE=function(e){if(!function(e){return!!PE(e)&&hasOwnProperty.call(TE,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}},IE=/^\s*class[\s{/}]/,LE=Function.prototype.toString,ME=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!NE(e)}(e)&&!IE.test(LE.call(e))},RE=function(e){return null!=e},zE=Object.keys,VE=function(){try{return Object.keys("primitive"),!0}catch(ose){return!1}}()?Object.keys:function(e){return zE(RE(e)?Object(e):e)},$E=function(e){if(!RE(e))throw new TypeError("Cannot use null or undefined");return e},UE=Math.max,HE=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=UE(arguments.length,2);for(e=Object($E(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)VE(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},WE=Array.prototype.forEach,qE=Object.create,KE=function(e,t){var n;for(n in e)t[n]=e[n]},GE=function(e){var t=qE(null);return WE.call(arguments,(function(e){RE(e)&&KE(Object(e),t)})),t},YE="razdwatrzy",JE=String.prototype.indexOf,ZE="function"==typeof YE.contains&&!0===YE.contains("dwa")&&!1===YE.contains("foo")?String.prototype.contains:function(e){return JE.call(this,e,arguments[1])>-1},XE=Nd((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],PE(e)?(n=ZE.call(e,"c"),r=ZE.call(e,"e"),o=ZE.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?HE(GE(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],PE(t)?ME(t)?PE(n)?ME(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,PE(e)?(r=ZE.call(e,"c"),o=ZE.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?HE(GE(i),a):a}})),QE=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},eS=Nd((function(e,t){var n,r,o,i,a,l,u,s=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return QE(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return QE(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),s.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(QE(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)s.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];s.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},l={on:XE(n),once:XE(r),off:XE(o),emit:XE(i)},u=p({},l),e.exports=t=function(e){return null==e?f(u):p(Object(e),l)},t.methods=a}));function tS(e){var t=cw.get(e);return null==t&&(t=eS(),cw.set(e,t)),t}var nS=new WeakMap;function rS(e,t){var n=nS.get(e);null==n&&(n=new Set,nS.set(e,n)),n.add(t)}function oS(e){return nS.get(e)||new Set}function iS(e){nS.set(e,new Set)}function aS(e){var t=Tw.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function lS(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=aS(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,l=r.height,u=Tw.toDOMRange(e,n).getClientRects()[0];if(null==u)return t;u.width;var s=u.height,c={},f=u.top-o,d=u.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>l/2){var h=l-f;c.bottom=h+5+"px"}else{var g=f+s;g<0&&(g=0),c.top=g+5+"px"}return c}function uS(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Qe.isElement(t)&&e.isVoid(t),i=Qe.isElement(t)&&e.isInline(t),a=iw.get(t);if(null==a)return r;var l=a.getBoundingClientRect(),u=l.top,s=l.left,c=l.height,f=l.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(hw.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],l=a.length;if(l)for(var u=l-1;u>=0;u--)t.push(a[u])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();u=p.top,c=p.height}}var h=aS(e);if(null==h)return r;var g,v=h.top,m=h.left,y=h.width,b=h.height,w={},x=u-v,C=s-m;if("bar"===n)return w.left=C+"px",x>40?w.bottom=b-x+5+"px":w.top=x+c+5+"px",w;if("modal"===n)return o?i?C>(y-f)/2?w.right=y-C+5+"px":w.left=C+f+5+"px":w.left="20px":w.left=C+"px",o?((g=x)<0&&(g=0),w.top=g+"px"):x>(b-c)/2?w.bottom=b-x+5+"px":((g=x+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function sS(e,t){VC((function(){var n=aS(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,l=n.height,u=t.offset(),s=u.top,c=u.left,f=t.width(),d=t.height(),p=s-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-l)>0){var v=t.css("top"),m=parseInt(v.toString())-r;m<0&&(m=0),t.css("top",m+"px")}if(g.indexOf("bottom")>=0&&s<0){var y=t.css("bottom"),b=parseInt(y.toString())-Math.abs(s);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(g.indexOf("right")>=0&&c<0){var C=t.css("right"),E=parseInt(C.toString())-Math.abs(c);t.css("right",E+"px")}}}))}var cS=Ug("slice"),fS=xp("species"),dS=Rd.Array,pS=Math.max;Vg({target:"Array",proto:!0,forced:!cS},{slice:function(e,t){var n,r,o,i=gg(this),a=Hh(i),l=wg(e,a),u=wg(void 0===t?a:t,a);if(Wh(i)&&(n=i.constructor,(Qh(n)&&(n===dS||Wh(n.prototype))||kp(n)&&null===(n=n[fS]))&&(n=void 0),n===dS||void 0===n))return mx(i,l,u);for(r=new(void 0===n?dS:n)(pS(u-l,0)),o=0;l<u;l++,o++)l in i&&Xg(r,o,i[l]);return r.length=o,r}});var hS=mg.f,gS=Gd("".startsWith),vS=Gd("".slice),mS=Math.min,yS=_m("startsWith"),bS=!yS&&!!function(){var e=hS(String.prototype,"startsWith");return e&&!e.writable}();Vg({target:"String",proto:!0,forced:!bS&&!yS},{startsWith:function(e){var t=dv(Jd(this));Am(e);var n=Uh(mS(arguments.length>1?arguments[1]:void 0,t.length)),r=dv(e);return gS?gS(t,r,n):vS(t,n,n+r.length)===r}});var wS=Object.assign,xS=Object.defineProperty,CS=Gd([].concat),ES=!wS||hp((function(){if(Sp&&1!==wS({b:1},wS(xS({},"a",{enumerable:!0,get:function(){xS(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=wS({},e)[n]||yv(wS({},t)).join("")!=r}))?function(e,t){for(var n=Xd(e),r=arguments.length,o=1,i=_g.f,a=hg.f;r>o;)for(var l,u=Mh(arguments[o++]),s=i?CS(yv(u),i(u)):yv(u),c=s.length,f=0;c>f;)l=s[f++],Sp&&!Tp(a,u,l)||(n[l]=u[l]);return n}:wS;Vg({target:"Object",stat:!0,forced:Object.assign!==ES},{assign:ES});var SS=["props","attrs","style","dataset","on","hook"];function kS(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!SS.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=gu(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&kS(e)}))}var DS=[];function AS(e){DS.push(e)}var OS={};function _S(e){var t=e.type,n=e.renderElem;OS[t||""]=n}function BS(e,t,n){var r=n.isInline(e)?"span":"div";return Ua(r,null,t)}function FS(e,t){var n,r=Tw.findKey(t,e),o=t.isInline(e),i=it.isVoid(t,e),a=UC(r.id),l={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},u=e.type,s=e.children,c=void 0===s?[]:s,f=function(e){return OS[e]||BS}(u);n=i?null:c.map((function(n,r){return NS(n,r,e,t)}));var d=f(e,n,t);if(i){l["data-slate-void"]=!0;var p=o?"span":"div",h=$y(ft.texts(e),1),g=$y(h[0],1)[0],v=NS(g,0,e,t),m=Ua(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},v);d=Ua(p,{style:{position:"relative"}},d,m),ew.set(g,0),tw.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,l),i||o||(d=function(e,t){var n=t;return DS.forEach((function(r){n=r(e,t)})),n}(e,d)),VC((function(){var t=xw(a);null!=t&&(ow.set(r,t),iw.set(e,t),rw.set(t,e))})),d}function jS(e,t){return void 0===t&&(t=!1),Ua("span",{"data-slate-string":!0},t?e+"\n":e)}function PS(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Ua("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Ua("br",null):null)}function TS(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=Tw.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=Tw.findPath(n,e),a=o([e,i]),l=Ft.decorations(e,a),u=l.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=Tw.findPath(o,n),l=gt.parent(a);if(it.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?PS(ft.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==it.string(o,l)?""===i?PS():t&&"\n"===i.slice(-1)?jS(i,!0):jS(i):PS(0,!0)}(r,o===l.length-1,e,t,n);return i=function(e,t){var n=t;return DS.forEach((function(t){n=t(e,n)})),n}(r,i),Ua("span",{"data-slate-leaf":!0},i)})),s=function(e){return"w-e-text-"+e}(r.id),c=Ua("span",{"data-slate-node":"text",id:s,key:r.id},u);return VC((function(){var t=xw(s);null!=t&&(ow.set(r,t),iw.set(e,t),rw.set(t,e))})),c}function NS(e,t,n,r){return ew.set(e,t),tw.set(e,n),Qe.isElement(e)?FS(e,r):TS(e,n,r)}function IS(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,l=i.autoFocus,u=function(e,t){return void 0===t&&(t=!1),wa("div#"+e,{props:{contentEditable:!t}})}(o,a),s=t.children||[];u.children=s.map((function(e,n){var r=NS(e,n,t,t);return kS(r),r}));var c=Zb.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return uo('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=ya([Ca,ja,Va,ka,Ba]))(n,u),Zb.set(e,!1),Xb.set(e,p)}else{var d=Qb.get(e),p=Xb.get(e);if(null==d||null==p)return;n=d.elm,p(d,u)}if(null!=n||null!=(n=xw(o))){if((c?l:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=vw(n);h&&lw.set(t,h)}nw.set(t,n),iw.set(t,n),rw.set(n,t),Qb.set(e,u)}}function LS(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function MS(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function RS(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return MS(n.overflowY,t)||MS(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function zS(e,t,n,r,o,i,a,l){return i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0}function VS(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!LS(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,c=[],f=e;LS(f)&&u(f);){if((f=f.parentElement)===s){c.push(f);break}null!=f&&f===document.body&&RS(f)&&!RS(document.documentElement)||null!=f&&RS(f,l)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,b=v.top,w=v.right,x=v.bottom,C=v.left,E="start"===o||"nearest"===o?b:"end"===o?x:b+m/2,S="center"===i?C+y/2:"end"===i?w:C,k=[],D=0;D<c.length;D++){var A=c[D],O=A.getBoundingClientRect(),_=O.height,B=O.width,F=O.top,j=O.right,P=O.bottom,T=O.left;if("if-needed"===r&&b>=0&&C>=0&&x<=p&&w<=d&&b>=F&&x<=P&&C>=T&&w<=j)return k;var N=getComputedStyle(A),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),M=parseInt(N.borderRightWidth,10),R=parseInt(N.borderBottomWidth,10),z=0,V=0,$="offsetWidth"in A?A.offsetWidth-A.clientWidth-I-M:0,U="offsetHeight"in A?A.offsetHeight-A.clientHeight-L-R:0;if(s===A)z="start"===o?E:"end"===o?E-p:"nearest"===o?zS(g,g+p,p,L,R,g+E,g+E+m,m):E-p/2,V="start"===i?S:"center"===i?S-d/2:"end"===i?S-d:zS(h,h+d,d,I,M,h+S,h+S+y,y),z=Math.max(0,z+g),V=Math.max(0,V+h);else{z="start"===o?E-F-L:"end"===o?E-P+R+U:"nearest"===o?zS(F,P,_,L,R+U,E,E+m,m):E-(F+_/2)+U/2,V="start"===i?S-T-I:"center"===i?S-(T+B/2)+$/2:"end"===i?S-j+M+$:zS(T,j,B,I,M+$,S,S+y,y);var H=A.scrollLeft,W=A.scrollTop;E+=W-(z=Math.max(0,Math.min(W+z,A.scrollHeight-_+U))),S+=H-(V=Math.max(0,Math.min(H+V,A.scrollWidth-B+$)))}k.push({el:A,top:z,left:V})}return k}function $S(e){return e===Object(e)&&0!==Object.keys(e).length}function US(e,t){var n=!e.ownerDocument.documentElement.contains(e);if($S(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:VS(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:$S(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(VS(e,r),r.behavior)}}function HS(e,t){return yw(t)&&Tw.hasDOMNode(e,t,{editable:!0})}function WS(e,t){if(e.getConfig().readOnly)return!1;var n=qS(e,t)&&Tw.toSlateNode(e,t);return it.isVoid(e,n)}function qS(e,t){return yw(t)&&Tw.hasDOMNode(e,t)}function KS(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=Tw.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var l=nw.get(t),u=!1;if(l.contains(i.anchorNode)&&l.contains(i.focusNode)&&(u=!0),a&&u&&r){var s=Tw.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(s&&St.equals(s,r)){var c=!0;if(St.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===l){var p=l.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||Tw.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&Tw.toDOMRange(t,r);if(g){St.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var m=document.body;US(v,{scrollMode:"if-needed",boundary:o.scroll?l.parentElement:m,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&Ow&&l.focus(),e.isUpdatingSelection=!1}))}else t.selection=Tw.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var GS=new WeakMap,YS=new WeakMap,JS={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"},ZS={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"},XS={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},QS=function(e){var t=JS[e],n=ZS[e],r=XS[e],o=t&&Ou(t),i=n&&Ou(n),a=r&&Ou(r);return function(e){return!(!o||!o(e))||!!(Aw&&i&&i(e))||!(Aw||!a||!a(e))}},ek={isBold:QS("bold"),isCompose:QS("compose"),isMoveBackward:QS("moveBackward"),isMoveForward:QS("moveForward"),isDeleteBackward:QS("deleteBackward"),isDeleteForward:QS("deleteForward"),isDeleteLineBackward:QS("deleteLineBackward"),isDeleteLineForward:QS("deleteLineForward"),isDeleteWordBackward:QS("deleteWordBackward"),isDeleteWordForward:QS("deleteWordForward"),isExtendBackward:QS("extendBackward"),isExtendForward:QS("extendForward"),isExtendLineBackward:QS("extendLineBackward"),isExtendLineForward:QS("extendLineForward"),isItalic:QS("italic"),isMoveLineBackward:QS("moveLineBackward"),isMoveLineForward:QS("moveLineForward"),isMoveWordBackward:QS("moveWordBackward"),isMoveWordForward:QS("moveWordForward"),isRedo:QS("redo"),isSplitBlock:QS("splitBlock"),isTransposeCharacter:QS("transposeCharacter"),isUndo:QS("undo"),isTab:QS("tab"),isSelectAll:QS("selectAll")};function tk(e){e.preventDefault()}var nk={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Pw&&!o&&HS(n,r.target)){var i=n.selection,a=r.inputType,l=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var u=$y(r.getTargetRanges(),1)[0];if(u){var s=Tw.toSlateRange(n,u,{exactMatch:!1,suppressThrow:!1});i&&St.equals(i,s)||Jt.select(n,s)}}if(i&&St.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";it.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":it.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":it.deleteForward(n);break;case"deleteContentBackward":it.deleteBackward(n);break;case"deleteEntireSoftLine":it.deleteBackward(n,{unit:"line"}),it.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":it.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":it.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":it.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":it.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":it.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":it.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":it.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!fw.get(n))break;l instanceof DataTransfer?n.insertData(l):"string"==typeof l&&it.insertText(n,l)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&HS(n,r.target)){var a=Tw.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var l=r.relatedTarget;if(!(l===Tw.toDOMNode(n,n)||mw(l)&&l.hasAttribute("data-slate-spacer"))){if(null!=l&&yw(l)&&Tw.hasDOMNode(n,l)){var u=Tw.toSlateNode(n,l);if(Qe.isElement(u)&&!n.isVoid(u))return}if(_w){var s=a.getSelection();null==s||s.removeAllRanges()}uw.delete(n)}}}},focus:function(e,t,n){var r=Tw.toDOMNode(n,n),o=Tw.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,Ow&&e.target!==r?r.focus():uw.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&qS(n,e.target)&&yw(e.target)){var r=Tw.toSlateNode(n,e.target),o=Tw.findPath(n,r);if(it.hasPath(n,o)&&ft.get(n,o)===r){var i=it.start(n,o),a=it.end(n,o),l=it.void(n,{at:i}),u=it.void(n,{at:a});if(l&&u&&gt.equals(l[1],u[1])){var s=it.range(n,i);Jt.select(n,s)}}}},compositionstart:function(e,t,n){if(HS(n,e.target)){var r=n.selection;if(r&&St.isExpanded(r)&&(it.deleteFragment(n),Promise.resolve().then((function(){KS(t,n,!0)}))),r&&St.isCollapsed(r)){var o=Tw.toDOMRange(n,r).startContainer,i=o.textContent||"";GS.set(n,i),YS.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(HS(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(jw||Ow)&&Tw.cleanExposedTexNodeInSelectionBlock(n);for(var i=St.isBackward(o)?o.focus:o.anchor,a=$y(it.node(n,[i.path[0]]),1)[0],l=0;l<i.path.length;l++){var u=$y(it.node(n,i.path.slice(0,l+1)),1)[0];if(Qe.isElement(u)&&((_w||Ow)&&"link"===u.type||"code"===u.type)){Tw.setNewKey(a);break}}var s=r.data;if(s){if(n.getConfig().maxLength){var c=Tw.getLeftLengthOfMaxLength(n);c<s.length?(Tw.toDOMRange(n,o).startContainer.textContent=GS.get(n)||"",c>0&&it.insertText(n,s.slice(0,c)),t.changeViewState()):it.insertText(n,s)}else it.insertText(n,s);_w||setTimeout((function(){var e=n.selection;if(null!=e){var t=YS.get(n);null!=t&&Tw.toDOMRange(n,e).startContainer!==t&&(t.textContent=GS.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){HS(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&HS(n,r.target)){if(function(e,t){var n=Hb.get(e),r=n&&n.getMenus(),o=qb.get(e),i=o&&o.getMenus(),a=zy(zy({},r),i);for(var l in a){var u=a[l],s=u.hotkey;if(s&&Au(s,t)&&!u.isDisabled(e)){var c=u.getValue(e);u.exec(e,c)}}}(n,r),ek.isTab(r))return tk(r),void n.handleTab();if(ek.isRedo(r))return tk(r),void("function"==typeof n.redo&&n.redo());if(ek.isUndo(r))return tk(r),void("function"==typeof n.undo&&n.undo());if(ek.isMoveLineBackward(r))return tk(r),void Jt.move(n,{unit:"line",reverse:!0});if(ek.isMoveLineForward(r))return tk(r),void Jt.move(n,{unit:"line"});if(ek.isExtendLineBackward(r))return tk(r),void Jt.move(n,{unit:"line",edge:"focus",reverse:!0});if(ek.isExtendLineForward(r))return tk(r),void Jt.move(n,{unit:"line",edge:"focus"});if(ek.isMoveBackward(r))return tk(r),void(o&&St.isCollapsed(o)?Jt.move(n,{reverse:!0}):Jt.collapse(n,{edge:"start"}));if(ek.isMoveForward(r))return tk(r),void(o&&St.isCollapsed(o)?Jt.move(n):Jt.collapse(n,{edge:"end"}));if(ek.isMoveWordBackward(r))return tk(r),o&&St.isExpanded(o)&&Jt.collapse(n,{edge:"focus"}),void Jt.move(n,{unit:"word",reverse:!0});if(ek.isMoveWordForward(r))return tk(r),o&&St.isExpanded(o)&&Jt.collapse(n,{edge:"focus"}),void Jt.move(n,{unit:"word"});if(ek.isSelectAll(r))return tk(r),void n.selectAll();if(Pw){if((jw||_w)&&o&&(ek.isDeleteBackward(r)||ek.isDeleteForward(r))&&St.isCollapsed(o)){var i=ft.parent(n,o.anchor.path);if(Qe.isElement(i)&&it.isVoid(n,i)&&it.isInline(n,i))return r.preventDefault(),void Jt.delete(n,{unit:"block"})}}else{if(ek.isBold(r)||ek.isItalic(r)||ek.isTransposeCharacter(r))return void tk(r);if(ek.isSplitBlock(r))return tk(r),void it.insertBreak(n);if(ek.isDeleteBackward(r))return tk(r),void(o&&St.isExpanded(o)?it.deleteFragment(n,{direction:"backward"}):it.deleteBackward(n));if(ek.isDeleteForward(r))return tk(r),void(o&&St.isExpanded(o)?it.deleteFragment(n,{direction:"forward"}):it.deleteForward(n));if(ek.isDeleteLineBackward(r))return tk(r),void(o&&St.isExpanded(o)?it.deleteFragment(n,{direction:"backward"}):it.deleteBackward(n,{unit:"line"}));if(ek.isDeleteLineForward(r))return tk(r),void(o&&St.isExpanded(o)?it.deleteFragment(n,{direction:"forward"}):it.deleteForward(n,{unit:"line"}));if(ek.isDeleteWordBackward(r))return tk(r),void(o&&St.isExpanded(o)?it.deleteFragment(n,{direction:"backward"}):it.deleteBackward(n,{unit:"word"}));if(ek.isDeleteWordForward(r))return tk(r),void(o&&St.isExpanded(o)?it.deleteFragment(n,{direction:"forward"}):it.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Pw&&!n.getConfig().readOnly&&HS(n,e.target)){e.preventDefault();var r=e.key;it.insertText(n,r)}},copy:function(e,t,n){var r=e;if(HS(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&HS(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(St.isExpanded(o))it.deleteFragment(n);else{var a=ft.parent(n,o.anchor.path);it.isVoid(n,a)&&Jt.delete(n)}}},paste:function(e,t,n){fw.set(n,!0);var r=e;if(!n.getConfig().readOnly&&HS(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void fw.set(n,!1);if(!Pw||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(qS(n,e.target)){var r=Tw.toSlateNode(n,e.target);it.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(qS(n,r.target)&&!n.getConfig().readOnly){var o=Tw.toSlateNode(n,r.target),i=Tw.findPath(n,o);if(it.isVoid(n,o)||it.void(n,{at:i,voids:!0})){var a=it.range(n,i);Jt.select(n,a)}var l=r.dataTransfer;null!=l&&(t.isDraggingInternally=!0,n.setFragmentData(l))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&qS(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&qS(n,r.target)&&null!=o&&!(Pw&&_w&&o.files.length>0)){r.preventDefault();var i=n.selection,a=Tw.findEventRange(n,r);Jt.select(n,a),t.isDraggingInternally&&(i&&Jt.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},rk=1,ok=function(){function e(e){var t=this;this.id=rk++,this.$textArea=null,this.$progressBar=uo('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=uo('<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=Wi((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=Tw.findDocumentOrShadowRoot(t),a=i.activeElement,l=Tw.toDOMNode(t,t),u=i.getSelection();if(a===l?(e.latestElement=a,uw.set(t,!0)):uw.delete(t),!u)return Jt.deselect(t);var s=u.anchorNode,c=u.focusNode,f=HS(t,s)||WS(t,s),d=HS(t,c)||WS(t,c);if(f&&d){var p=Tw.toSlateRange(t,u,{exactMatch:!1,suppressThrow:!1});Jt.select(t,p)}else Jt.deselect(t)}}(t,e)}),100);var n=uo(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=uo('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=uo('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,VC((function(){var e=t.editorInstance,n=Tw.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=$b.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(xi(nk,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Wi((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?o&&o(t):null!=e.latestEditorSelection&&null==t.selection&&r&&r(t),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-Tw.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;IS(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=uo('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),VC((function(){KS(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function ik(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&ik(t)}function ak(){return uo('<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 lk(){return uo('<div class="w-e-bar-divider"></div>')}function uk(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=Aw?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}my("match",(function(e,t,n){return[function(t){var n=Jd(this),r=null==t?void 0:$p(t,e);return r?Tp(r,t,n):new RegExp(t)[e](dv(n))},function(e){var r=jp(this),o=dv(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Oy(r,o);var a=r.unicode;r.lastIndex=0;for(var l,u=[],s=0;null!==(l=Oy(r,o));){var c=dv(l[0]);u[s]=c,""===c&&(r.lastIndex=by(o,Uh(r.lastIndex),a)),s++}return 0===s?null:u}]}));var sk=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.$elem=uo('<div class="w-e-bar-item"></div>'),this.$button=uo('<button type="button"></button>'),this.disabled=!1,this.menu=e;var r=e.tag,o=e.width;if("button"!==r)throw new Error("Invalid tag '"+r+"', expected 'button'");var i=e.title,a=e.hotkey,l=void 0===a?"":a,u=e.iconSvg,s=void 0===u?"":u,c=this.$button;if(s){var f=uo(s);ik(f),c.append(f)}else c.text(i);uk(c,s,i,l,t),t&&s&&c.append(uo('<span class="title">'+i+"</span>")),o&&c.css("width",o+"px"),this.$elem.append(c),VC((function(){return n.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),Ek(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=Ek(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=Ek(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=Ek(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),ck=function(e){function t(t,n){return void 0===n&&(n=!1),e.call(this,t,n)||this}return Ry(t,e),t.prototype.onButtonClick=function(){},t}(sk),fk=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Gb.get(e);null==t&&(t=new Set,Gb.set(e,t)),t.add(this),Yb.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Yb.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Yb.get(this);e&&e.emit("modalOrPanelHide")}},e}(),dk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=uo('<div class="w-e-drop-panel"></div>'),n}return Ry(t,e),t.prototype.genSelfElem=function(){return null},t}(fk),pk=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t,n)||this;if(r.dropPanel=null,r.menu=t,t.showDropPanel){var o=ak();r.$button.append(o)}return r}return Ry(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=Ek(this);if(null==this.dropPanel){var n=new dk(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,l=a.offset().left,u=a.parents(".w-e-bar");l-u.offset().left>=u.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(sk),hk=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=uo('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return Ry(t,e),t.prototype.genSelfElem=function(){var e=this,t=uo('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=Yb.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(fk);function gk(e,t,n){var r=uo('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=uo('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function vk(e,t,n){var r=uo('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=uo('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(o),[r[0],o[0]]}function mk(e,t){var n=uo('<div class="button-container"></div>'),r=uo('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var yk=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t,n)||this;return r.$body=uo("body"),r.modal=null,r.menu=t,r}return Ry(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=Ek(this),t=this.menu.getModalPositionNode(e);return Qe.isElement(t)?uS(e,t,"modal"):lS(e)},t.prototype.handleModal=function(){var e=Ek(this),t=this.menu;if(null==this.modal){var n=new hk(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=Ek(this),r=this.menu;if(null!=r.getModalContentElem){var o=Tw.getTextarea(n),i=Tw.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,l=r.getModalContentElem(n);if(e.renderContent(l),a)e.setStyle({left:"0",right:"0"});else{var u=this.getPosition();e.setStyle(u)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||sS(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(sk),bk=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=uo('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return Ry(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=uo("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=uo('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var l=uo('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(l),a.addClass("selected")}a.append(uo('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(fk),wk=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.$elem=uo('<div class="w-e-bar-item"></div>'),this.$button=uo('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var r=e.tag,o=e.title,i=e.width,a=e.iconSvg,l=void 0===a?"":a,u=e.hotkey,s=void 0===u?"":u;if("select"!==r)throw new Error("Invalid tag '"+r+"', expected 'select'");var c=this.$button;i&&c.css("width",i+"px"),uk(c,l,o,s,t),this.$elem.append(c),this.menu=e,VC((function(){return n.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),Ek(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=Ek(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new bk(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=uo(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=Ek(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=Ek(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=ak();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=Ek(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),xk=function(){function e(e){this.$elem=uo('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=uo('<div class="w-e-bar-item-menus-container"></div>'),this.$button=uo('<button type="button"></button>');var t=e.iconSvg,n=e.title,r=this.$elem,o=this.$button;if(t){var i=uo(t);ik(i),o.append(i)}else o.text(n);var a=ak();o.append(a),r.append(o);var l=this.$container;r.append(l);var u=this.createObserver();this.observe(u)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){uo(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),Ck=new WeakMap;function Ek(e){var t=Kb.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function Sk(e,t){void 0===t&&(t=!1);var n=Ck.get(e);if(n)return n;var r=e.tag;if("button"===r){var o=e.showDropPanel,i=e.showModal;n=o?new pk(e,t):i?new yk(e,t):new ck(e,t)}if("select"===r&&(n=new wk(e,t)),null==n)throw new Error("Invalid tag in menu "+JSON.stringify(e));return Ck.set(e,n),n}function kk(e,t){var n=e.selection;return null!=n&&!St.isCollapsed(n)&&!Tw.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Ft.isText(t)}var Dk=function(){function e(){var e=this;this.$elem=uo('<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=Zu((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Qe.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),VC((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()})),Tw.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;VC((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=lk();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=Lw[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=Sk(r);this.hoverbarItems.push(i),Kb.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Qe.isElement(e)){var r=uS(t,e,"bar");return n.css(r),void sS(t,n)}if(Ft.isText(e))return r=lS(t),n.css(r),void sS(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,l=i.menuKeys,u=void 0===l?[]:l,s=a||function(e,t){return Tw.checkNodeType(t,o)},c=$y(it.nodes(e,{match:function(t){return s(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=u,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=Wb.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=kk),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=Tw.findPath(null,e),r=Tw.findPath(null,t);return gt.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function Ak(e,t,n){var r=uo(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function Ok(e,t,n,r){if(ew.set(e,t),tw.set(e,n),Qe.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return Ok(t,n,e,r)})),it.isVoid(r,e)){var i=$y(ft.texts(e),1),a=$y(i[0],1)[0];ew.set(a,0),tw.set(a,e)}}}function _k(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,l=e.plugins,u=void 0===l?[]:l,s=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];um.withoutSaving(t,(()=>{it.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];um.withoutSaving(t,(()=>{it.withoutNormalizing(t,(()=>{var e=r.map(ht.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],l=a&&a[a.length-1],u=fm(e,l),s=um.isSaving(t),c=um.isMerging(t);if(null==s&&(s=cm(e)),s){if(null==c&&(c=null!=a&&(0!==r.length||sm(e,l)||u)),a&&c)u&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();dm(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment;return t.insertText=function(e){if(t.getConfig().maxLength){var r=Tw.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=Tw.getLeftLengthOfMaxLength(t);n<=0||n<ft.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){t.getConfig().maxLength?e.forEach((function(e){t.insertNode(e)})):o(e)},t}(function(e){var t=e;return t.on=function(e,n){var r=tS(t);if(r.on(e,n),"destroyed"===e&&rS(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),rS(t,o)}},t.once=function(e,n){tS(t).once(e,n)},t.off=function(e,n){tS(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=tS(t);o.emit.apply(o,Uy([e],$y(n))),"destroyed"===e&&(oS(t).forEach((function(e){return o.off("destroyed",e)})),iS(t))},t}(function(e){var t=e;return t.select=function(e){Jt.select(t,e)},t.deselect=function(){var n=t.selection,r=Tw.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Jt.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Jt.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=sw.get(t);null!=e&&(t.focus(),Jt.select(t,e))},t.getSelectionPosition=function(){return lS(t)},t.getNodePosition=function(e){return uS(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=$y(St.edges(e),2),r=n[0],o=n[1],i=$y(it.edges(t,[]),2),a=i[0],l=i[1];return!(!bt.equals(r,a)||!bt.equals(o,l))},t.selectAll=function(){var e=it.start(t,[]),n=it.end(t,[]);Jt.select(t,{anchor:e,focus:n})},t}(FE(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Lw)e.push(t);return e},t.getConfig=function(){var e=Jb.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=e;return t.id="wangEditor-"+Nw++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(Tw.toDOMNode(t,t).focus({preventScroll:!0}),uw.set(t,!0),e){var n=it.end(t,[]);Jt.select(t,n)}else{var r=sw.get(t);r?Jt.select(t,r):Jt.select(t,it.start(t,[]))}},t.isFocused=function(){return!!uw.get(t)},t.blur=function(){Tw.toDOMNode(t,t).blur(),Jt.deselect(t),uw.set(t,!1)},t.updateView=function(){Tw.getTextarea(t).changeViewState();var e=Tw.getToolbar(t);e&&e.changeToolbarState();var n=Tw.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=Tw.getTextarea(t);e.destroy(),Vb.delete(t),$b.delete(e);var n=Tw.getToolbar(t);n&&(n.destroy(),Hb.delete(t),Ub.delete(n));var r=Tw.getHoverbar(t);r&&(r.destroy(),qb.delete(t),Wb.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=uo("#"+e);if(0!==r.length){var o=r[0];if(!Tw.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=Tw.getTextarea(t),a=i.$textAreaContainer,l=i.$scroll,u=r.offset().top,s=a.offset().top;l[0].scrollBy({top:u-s,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||Tw.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=Gb.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return Tw.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=Tw.getToolbar(t);n&&(e=n.$box);var r=Tw.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=Tw.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return Tw.getTextarea(t).$textAreaContainer[0]},t}(jE(we()))))))));if(n&&function(e,t){return Ak(e,"data-w-e-textarea",t)}(s,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=Xu(Iw),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return xi(t,(function(e,t){n[t]=zy(zy({},e),o[t]||{})})),delete e.MENU_CONF,zy({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);Jb.set(s,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(u.forEach((function(e){s=e(s)})),a){var p=uo("<div>"+a+"</div>");s.children=Array.from(p.children()).map((function(e){return _E(uo(e),s)}))}if(i&&i.length&&(s.children=i),0===s.children.length&&(s.children=[{type:"paragraph",children:[{text:""}]}]),Tw.normalizeContent(s),n){var h=new ok(n);Vb.set(s,h),$b.set(h,s),h.changeViewState(),VC((function(){var e=h.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var g=void 0;Object.keys(d).length>0&&(g=new Dk,Wb.set(g,s),qb.set(s,g)),s.on("change",(function(){s.hidePanelOrModal()})),s.on("scroll",(function(){s.hidePanelOrModal()}))}else s.children.forEach((function(e,t){return Ok(e,t,s,s)}));var v=c.onCreated,m=c.onDestroyed;return v&&s.on("created",(function(){return v(s)})),m&&s.on("destroyed",(function(){return m(s)})),VC((function(){return s.emit("created")})),s}var Bk=Ug("splice"),Fk=Rd.TypeError,jk=Math.max,Pk=Math.min;Vg({target:"Array",proto:!0,forced:!Bk},{splice:function(e,t){var n,r,o,i,a,l,u=Xd(this),s=Hh(u),c=wg(e,s),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=s-c):(n=f-2,r=Pk(jk(Vh(t),0),s-c)),s+n-r>9007199254740991)throw Fk("Maximum allowed length exceeded");for(o=ng(u,r),i=0;i<r;i++)(a=c+i)in u&&Xg(o,i,u[a]);if(o.length=r,n<r){for(i=c;i<s-r;i++)l=i+n,(a=i+r)in u?u[l]=u[a]:delete u[l];for(i=s;i>s-r+n;i--)delete u[i-1]}else if(n>r)for(i=s-r;i>c;i--)l=i+n-1,(a=i+r-1)in u?u[l]=u[a]:delete u[l];for(i=0;i<n;i++)u[i+c]=arguments[i+2];return u.length=s-r+n,o}});var Tk=function(){function e(e,t){var n=this;this.$toolbar=uo('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Zu((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=uo(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()})),r.append(o),VC((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,l=void 0===a?{index:0,keys:[]}:a,u=r.excludeKeys,s=void 0===u?[]:u,c=Xu(i);l.keys.length>0&&("string"==typeof l.keys&&(l.keys=[l.keys]),l.keys.forEach((function(e,t){c.splice(l.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(s.includes(e))return!1}else if(s.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=lk();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new xk(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,l=void 0===a?[]:a;i.forEach((function(e){l.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof xk,o=this.menus,i=o[e];if(null==i){var a=Lw[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var l=Sk(i,r);this.toolbarItems.push(l),Kb.set(l,n),r?t.appendBarItem(l):t.$toolbar.append(l.$elem)},e.prototype.getEditorInstance=function(){var e=Ub.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();function Nk(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return Ak(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=zy({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new Tk(n,i);return Ub.set(a,e),Hb.set(e,a),a}var Ik=wh.EXISTS,Lk=Jp.f,Mk=Function.prototype,Rk=Gd(Mk.toString),zk=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vk=Gd(zk.exec);function $k(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,l=e.maxNumberOfFiles,u=void 0===l?100:l,s=e.meta,c=void 0===s?{}:s,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,m=e.timeout,y=void 0===m?1e4:m,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,C=void 0===x?function(e,t){}:x,E=e.onError,S=void 0===E?function(e,t,n){console.error(e.name+" upload error",t,n)}:E,k=e.onProgress,D=void 0===k?function(e){}:k;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;d&&(A=function(e,t){var n=$y(e.split("#"),2),r=n[0],o=n[1],i=[];xi(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(A,c));var O=new Kc({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:u},meta:c}).use(Pd,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:y});return O.on("upload-success",(function(e,t){var n=t.body;C(e,void 0===n?{}:n),O.removeFile(e.id)})),O.on("progress",(function(e){e<1||D(e)})),O.on("error",(function(e){console.error("wangEditor file upload error",e.stack)})),O.on("upload-error",(function(e,t,n){S(e,t,n),O.removeFile(e.id)})),O.on("restriction-failed",(function(e,t){S(e,t),O.removeFile(e.id)})),O}function Uk(e){return Uk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uk(e)}function Hk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Hk(e,t,n[t])}))}return e}function qk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gk(e,t,n){return t&&Kk(e.prototype,t),n&&Kk(e,n),e}function Yk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jk(e,t){if(t&&("object"===Uk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yk(e)}function Zk(e){return Zk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zk(e)}function Xk(e,t){return Xk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xk(e,t)}function Qk(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xk(e,t)}Sp&&!Ik&&Lk(Mk,"name",{configurable:!0,get:function(){try{return Vk(zk,Rk(this))[1]}catch(ose){return""}}});var eD={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},tD=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qk(this,e),this.init(t,n)}return Gk(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||eD,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,Wk({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),nD=function(){function e(){qk(this,e),this.observers={}}return Gk(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function rD(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function oD(e){return null==e?"":""+e}function iD(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function aD(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function lD(e,t,n){var r=aD(e,t,Object);r.obj[r.k]=n}function uD(e,t){var n=aD(e,t),r=n.obj,o=n.k;if(r)return r[o]}function sD(e,t,n){var r=uD(e,n);return void 0!==r?r:uD(t,n)}function cD(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):cD(e[r],t[r],n):e[r]=t[r]);return e}function fD(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function pD(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return dD[e]})):e}var hD="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function gD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,l=r.slice(i,i+a).join(n),u=o[l];void 0===u&&r.length>i+a;)a++,u=o[l=r.slice(i,i+a).join(n)];if(void 0===u)return;if("string"==typeof u)return u;if(l&&"string"==typeof u[l])return u[l];var s=r.slice(i+a).join(n);return s?gD(u,s,n):void 0}o=o[r[i]]}return o}}var vD=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return qk(this,t),n=Jk(this,Zk(t).call(this)),hD&&nD.call(Yk(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return Qk(t,nD),Gk(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=uD(this.data,a);return l||!i||"string"!=typeof n?l:gD(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),lD(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=uD(this.data,a)||{};r?cD(l,n,o):l=Wk({},l,n),lD(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Wk({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),mD={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},yD={},bD=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qk(this,t),n=Jk(this,Zk(t).call(this)),hD&&nD.call(Yk(n)),iD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Yk(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=tD.create("translator"),n}return Qk(t,nD),Gk(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==Uk(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),l=a.key,u=a.namespaces,s=u[u.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return s+d+l}return l}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||l,v=p&&p.exactUsedKey||l,m=Object.prototype.toString.apply(h),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&x&&y.indexOf(m)<0&&("string"!=typeof b||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,Wk({},n,{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(i){var C="[object Array]"===m,E=C?[]:{},S=C?v:g;for(var k in h)if(Object.prototype.hasOwnProperty.call(h,k)){var D="".concat(S).concat(i).concat(k);E[k]=this.translate(D,Wk({},n,{joinArrays:!1,ns:u})),E[k]===D&&(E[k]=h[k])}h=E}}else if(w&&"string"==typeof b&&"[object Array]"===m)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var A=!1,O=!1,_=void 0!==n.count&&"string"!=typeof n.count,B=t.hasDefaultValue(n),F=_?this.pluralResolver.getSuffix(c,n.count):"",j=n["defaultValue".concat(F)]||n.defaultValue;!this.isValidLookup(h)&&B&&(A=!0,h=j),this.isValidLookup(h)||(O=!0,h=l);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,T=P&&O?void 0:h,N=B&&j!==h&&this.options.updateMissing;if(O||A||N){if(this.logger.log(N?"updateKey":"missingKey",c,s,l,N?j:h),i){var I=this.resolve(l,Wk({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var R=0;R<M.length;R++)L.push(M[R]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,s,t,N?r:T,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,s,t,N?r:T,N,n),o.emit("missingKey",e,s,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],l+t,n["defaultValue".concat(t)]||j)}))})):z(L,l,j))}h=this.extendTranslation(h,e,n,p,r),O&&h===l&&this.options.appendNamespaceToMissingKey&&(h="".concat(s,":").concat(l)),(O||A)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Wk({},n,{interpolation:Wk({},this.options.interpolation,n.interpolation)}));var a,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s=Wk({},this.options.interpolation.defaultVariables,s)),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),l){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=mD.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Wk({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,l),s=u.key;n=s;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==l.count&&"string"!=typeof l.count,d=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,p=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!yD["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(yD["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u,c=s,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,s,n,e,l):(f&&(i=a.pluralResolver.getSuffix(n,l.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(l.context)),f&&p.push(c+=i));u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function wD(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xD=function(){function e(t){qk(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tD.create("languageUtils")}return Gk(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=wD(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=wD(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=wD(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),CD=[{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}],ED={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function SD(){var e={};return CD.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:ED[t.fc]}}))})),e}var kD=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qk(this,e),this.languageUtils=t,this.options=n,this.logger=tD.create("pluralResolver"),this.rules=SD()}return Gk(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),DD=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qk(this,e),this.logger=tD.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Gk(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:pD,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?fD(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?fD(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?fD(t.nestingPrefix):t.nestingPrefixEscaped||fD("$t("),this.nestingSuffix=t.nestingSuffix?fD(t.nestingSuffix):t.nestingSuffixEscaped||fD(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(l.formatSeparator)<0){var o=sD(t,u,e);return l.alwaysFormat?l.format(o,void 0,n,Wk({},r,t,{interpolationkey:e})):o}var i=e.split(l.formatSeparator),a=i.shift().trim(),s=i.join(l.formatSeparator).trim();return l.format(sD(t,u,a),s,n,Wk({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?s(l.escape(e)):s(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=oD(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Wk({},i);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=Wk({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),u=c,s=!0}if((r=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=oD(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),s&&(r=u.reduce((function(e,t){return o.format(e,t,i.lng,Wk({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),AD=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return qk(this,t),o=Jk(this,Zk(t).call(this)),hD&&nD.call(Yk(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=tD.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return Qk(t,nD),Gk(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],l=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?a.indexOf(l)<0&&a.push(l):(o.state[l]=1,r=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),u.indexOf(t)<0&&u.push(t)))})),r||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=aD(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(l,u){l&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(l,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Wk({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function OD(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Uk(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Uk(e[2])||"object"===Uk(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function _D(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function BD(){}var FD=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(qk(this,t),e=Jk(this,Zk(t).call(this)),hD&&nD.call(Yk(e)),e.options=_D(n),e.services={},e.logger=tD,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Jk(e,Yk(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Qk(t,nD),Gk(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Wk({},OD(),this.options,_D(t)),this.format=this.options.interpolation.format,n||(n=BD),!this.options.isClone){this.modules.logger?tD.init(r(this.modules.logger),this.options):tD.init(null,this.options);var o=new xD(this.options);this.store=new vD(this.options.resources,this.options);var i=this.services;i.logger=tD,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new kD(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new DD(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new AD(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new bD(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=rD(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BD,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=rD();return e||(e=this.languages),t||(t=this.options.ns),n||(n=BD),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&mD.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=rD();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==Uk(o)){for(var a=arguments.length,l=new Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];i=r.options.overloadTranslationOptionHandler([t,o].concat(l))}else i=Wk({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var s=r.options.keySeparator||".",c=n?"".concat(n).concat(s).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=rD();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=rD();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BD,o=Wk({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=Wk({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new bD(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),jD=new FD,PD="translation";function TD(e,t){jD.addResourceBundle(e,PD,t,!0,!0)}function ND(e){jD.changeLanguage(e)}function ID(e){return jD.getResourceBundle(e,PD)}jD.init({lng:"zh-CN",resources:{}});var LD=jD.t.bind(jD),MD={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},RD={editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}};TD("en",MD),TD("zh-CN",RD),TD("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"}}),TD("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 zD={type:"paragraph",renderElem:function(e,t,n){return Ua("p",null,t)}},VD={type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}},$D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function UD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function HD(e){var t={exports:{}};return e(t,t.exports),t.exports}var WD,qD,KD=function(e){return e&&e.Math==Math&&e},GD=KD("object"==typeof globalThis&&globalThis)||KD("object"==typeof window&&window)||KD("object"==typeof self&&self)||KD("object"==typeof $D&&$D)||function(){return this}()||Function("return this")(),YD=function(e){try{return!!e()}catch(e){return!0}},JD=!YD((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ZD=Function.prototype.call,XD=ZD.bind?ZD.bind(ZD):function(){return ZD.apply(ZD,arguments)},QD={}.propertyIsEnumerable,eA=Object.getOwnPropertyDescriptor,tA=eA&&!QD.call({1:2},1)?function(e){var t=eA(this,e);return!!t&&t.enumerable}:QD,nA={f:tA},rA=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},oA=Function.prototype,iA=oA.bind,aA=oA.call,lA=iA&&iA.bind(aA),uA=iA?function(e){return e&&lA(aA,e)}:function(e){return e&&function(){return aA.apply(e,arguments)}},sA=uA({}.toString),cA=uA("".slice),fA=function(e){return cA(sA(e),8,-1)},dA=GD.Object,pA=uA("".split),hA=YD((function(){return!dA("z").propertyIsEnumerable(0)}))?function(e){return"String"==fA(e)?pA(e,""):dA(e)}:dA,gA=GD.TypeError,vA=function(e){if(null==e)throw gA("Can't call method on "+e);return e},mA=function(e){return hA(vA(e))},yA=function(e){return"function"==typeof e},bA=function(e){return"object"==typeof e?null!==e:yA(e)},wA=function(e){return yA(e)?e:void 0},xA=function(e,t){return arguments.length<2?wA(GD[e]):GD[e]&&GD[e][t]},CA=uA({}.isPrototypeOf),EA=xA("navigator","userAgent")||"",SA=GD.process,kA=GD.Deno,DA=SA&&SA.versions||kA&&kA.version,AA=DA&&DA.v8;AA&&(qD=(WD=AA.split("."))[0]>0&&WD[0]<4?1:+(WD[0]+WD[1])),!qD&&EA&&(!(WD=EA.match(/Edge\/(\d+)/))||WD[1]>=74)&&(WD=EA.match(/Chrome\/(\d+)/))&&(qD=+WD[1]);var OA=qD,_A=!!Object.getOwnPropertySymbols&&!YD((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&OA&&OA<41})),BA=_A&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,FA=GD.Object,jA=BA?function(e){return"symbol"==typeof e}:function(e){var t=xA("Symbol");return yA(t)&&CA(t.prototype,FA(e))},PA=GD.String,TA=function(e){try{return PA(e)}catch(e){return"Object"}},NA=GD.TypeError,IA=function(e){if(yA(e))return e;throw NA(TA(e)+" is not a function")},LA=function(e,t){var n=e[t];return null==n?void 0:IA(n)},MA=GD.TypeError,RA=Object.defineProperty,zA=function(e,t){try{RA(GD,e,{value:t,configurable:!0,writable:!0})}catch(c){GD[e]=t}return t},VA=GD["__core-js_shared__"]||zA("__core-js_shared__",{}),$A=HD((function(e){(e.exports=function(e,t){return VA[e]||(VA[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),UA=GD.Object,HA=function(e){return UA(vA(e))},WA=uA({}.hasOwnProperty),qA=Object.hasOwn||function(e,t){return WA(HA(e),t)},KA=0,GA=Math.random(),YA=uA(1..toString),JA=function(e){return"Symbol("+(void 0===e?"":e)+")_"+YA(++KA+GA,36)},ZA=$A("wks"),XA=GD.Symbol,QA=XA&&XA.for,eO=BA?XA:XA&&XA.withoutSetter||JA,tO=function(e){if(!qA(ZA,e)||!_A&&"string"!=typeof ZA[e]){var t="Symbol."+e;_A&&qA(XA,e)?ZA[e]=XA[e]:ZA[e]=BA&&QA?QA(t):eO(t)}return ZA[e]},nO=GD.TypeError,rO=tO("toPrimitive"),oO=function(e,t){if(!bA(e)||jA(e))return e;var n,r=LA(e,rO);if(r){if(void 0===t&&(t="default"),n=XD(r,e,t),!bA(n)||jA(n))return n;throw nO("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&yA(n=e.toString)&&!bA(r=XD(n,e)))return r;if(yA(n=e.valueOf)&&!bA(r=XD(n,e)))return r;if("string"!==t&&yA(n=e.toString)&&!bA(r=XD(n,e)))return r;throw MA("Can't convert object to primitive value")}(e,t)},iO=function(e){var t=oO(e,"string");return jA(t)?t:t+""},aO=GD.document,lO=bA(aO)&&bA(aO.createElement),uO=function(e){return lO?aO.createElement(e):{}},sO=!JD&&!YD((function(){return 7!=Object.defineProperty(uO("div"),"a",{get:function(){return 7}}).a})),cO=Object.getOwnPropertyDescriptor,fO={f:JD?cO:function(e,t){if(e=mA(e),t=iO(t),sO)try{return cO(e,t)}catch(e){}if(qA(e,t))return rA(!XD(nA.f,e,t),e[t])}},dO=GD.String,pO=GD.TypeError,hO=function(e){if(bA(e))return e;throw pO(dO(e)+" is not an object")},gO=GD.TypeError,vO=Object.defineProperty,mO={f:JD?vO:function(e,t,n){if(hO(e),t=iO(t),hO(n),sO)try{return vO(e,t,n)}catch(e){}if("get"in n||"set"in n)throw gO("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yO=JD?function(e,t,n){return mO.f(e,t,rA(1,n))}:function(e,t,n){return e[t]=n,e},bO=uA(Function.toString);yA(VA.inspectSource)||(VA.inspectSource=function(e){return bO(e)});var wO,xO,CO,EO=VA.inspectSource,SO=GD.WeakMap,kO=yA(SO)&&/native code/.test(EO(SO)),DO=$A("keys"),AO=function(e){return DO[e]||(DO[e]=JA(e))},OO={},_O=GD.TypeError,BO=GD.WeakMap;if(kO||VA.state){var FO=VA.state||(VA.state=new BO),jO=uA(FO.get),PO=uA(FO.has),TO=uA(FO.set);wO=function(e,t){if(PO(FO,e))throw new _O("Object already initialized");return t.facade=e,TO(FO,e,t),t},xO=function(e){return jO(FO,e)||{}},CO=function(e){return PO(FO,e)}}else{var NO=AO("state");OO[NO]=!0,wO=function(e,t){if(qA(e,NO))throw new _O("Object already initialized");return t.facade=e,yO(e,NO,t),t},xO=function(e){return qA(e,NO)?e[NO]:{}},CO=function(e){return qA(e,NO)}}var IO={set:wO,get:xO,has:CO,enforce:function(e){return CO(e)?xO(e):wO(e,{})},getterFor:function(e){return function(t){var n;if(!bA(t)||(n=xO(t)).type!==e)throw _O("Incompatible receiver, "+e+" required");return n}}},LO=Function.prototype,MO=JD&&Object.getOwnPropertyDescriptor,RO=qA(LO,"name"),zO={EXISTS:RO,PROPER:RO&&"something"===function(){}.name,CONFIGURABLE:RO&&(!JD||JD&&MO(LO,"name").configurable)},VO=HD((function(e){var t=zO.CONFIGURABLE,n=IO.get,r=IO.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;yA(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qA(i,"name")||t&&i.name!==f)&&yO(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==GD?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:yO(e,n,i)):s?e[n]=i:zA(n,i)})(Function.prototype,"toString",(function(){return yA(this)&&n(this).source||EO(this)}))})),$O=Math.ceil,UO=Math.floor,HO=function(e){var t=+e;return t!=t||0===t?0:(t>0?UO:$O)(t)},WO=Math.max,qO=Math.min,KO=function(e,t){var n=HO(e);return n<0?WO(n+t,0):qO(n,t)},GO=Math.min,YO=function(e){return e>0?GO(HO(e),9007199254740991):0},JO=function(e){return YO(e.length)},ZO=function(e){return function(t,n,r){var o,i=mA(t),a=JO(i),l=KO(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},XO={includes:ZO(!0),indexOf:ZO(!1)},QO=XO.indexOf,e_=uA([].push),t_=function(e,t){var n,r=mA(e),o=0,i=[];for(n in r)!qA(OO,n)&&qA(r,n)&&e_(i,n);for(;t.length>o;)qA(r,n=t[o++])&&(~QO(i,n)||e_(i,n));return i},n_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],r_=n_.concat("length","prototype"),o_={f:Object.getOwnPropertyNames||function(e){return t_(e,r_)}},i_={f:Object.getOwnPropertySymbols},a_=uA([].concat),l_=xA("Reflect","ownKeys")||function(e){var t=o_.f(hO(e)),n=i_.f;return n?a_(t,n(e)):t},u_=function(e,t){for(var n=l_(t),r=mO.f,o=fO.f,i=0;i<n.length;i++){var a=n[i];qA(e,a)||r(e,a,o(t,a))}},s_=/#|\.prototype\./,c_=function(e,t){var n=d_[f_(e)];return n==h_||n!=p_&&(yA(t)?YD(t):!!t)},f_=c_.normalize=function(e){return String(e).replace(s_,".").toLowerCase()},d_=c_.data={},p_=c_.NATIVE="N",h_=c_.POLYFILL="P",g_=c_,v_=fO.f,m_=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?GD:s?GD[l]||zA(l,{}):(GD[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=v_(n,r))&&a.value:n[r],!g_(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;u_(i,o)}(e.sham||o&&o.sham)&&yO(i,"sham",!0),VO(n,r,i,e)}},y_=uA(uA.bind),b_=Array.isArray||function(e){return"Array"==fA(e)},w_={};w_[tO("toStringTag")]="z";var x_="[object z]"===String(w_),C_=tO("toStringTag"),E_=GD.Object,S_="Arguments"==fA(function(){return arguments}()),k_=x_?fA:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=E_(e),C_))?n:S_?fA(t):"Object"==(r=fA(t))&&yA(t.callee)?"Arguments":r},D_=function(){},A_=[],O_=xA("Reflect","construct"),__=/^\s*(?:class|function)\b/,B_=uA(__.exec),F_=!__.exec(D_),j_=function(e){if(!yA(e))return!1;try{return O_(D_,A_,e),!0}catch(e){return!1}},P_=!O_||YD((function(){var e;return j_(j_.call)||!j_(Object)||!j_((function(){e=!0}))||e}))?function(e){if(!yA(e))return!1;switch(k_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return F_||!!B_(__,EO(e))}:j_,T_=tO("species"),N_=GD.Array,I_=function(e,t){return new(function(e){var t;return b_(e)&&(t=e.constructor,(P_(t)&&(t===N_||b_(t.prototype))||bA(t)&&null===(t=t[T_]))&&(t=void 0)),void 0===t?N_:t}(e))(0===t?0:t)},L_=uA([].push),M_=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=HA(u),g=hA(h),v=function(e,t){return IA(e),void 0===t?e:y_?y_(e,t):function(){return e.apply(t,arguments)}}(s,c),m=JO(g),y=0,b=f||I_,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:L_(w,d)}else switch(e){case 4:return!1;case 7:L_(w,d)}return i?-1:r||o?o:w}},R_={forEach:M_(0),map:M_(1),filter:M_(2),some:M_(3),every:M_(4),find:M_(5),findIndex:M_(6),filterReject:M_(7)},z_=tO("species"),V_=function(e){return OA>=51||!YD((function(){var t=[];return(t.constructor={})[z_]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$_=R_.filter;m_({target:"Array",proto:!0,forced:!V_("filter")},{filter:function(e){return $_(this,e,arguments.length>1?arguments[1]:void 0)}});var U_=x_?{}.toString:function(){return"[object "+k_(this)+"]"};x_||VO(Object.prototype,"toString",U_,{unsafe:!0});var H_,W_=GD.String,q_=function(e){if("Symbol"===k_(e))throw TypeError("Cannot convert a Symbol value to a string");return W_(e)},K_=function(){var e=hO(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},G_=GD.RegExp,Y_=YD((function(){var e=G_("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),J_=Y_||YD((function(){return!G_("a","y").sticky})),Z_={BROKEN_CARET:Y_||YD((function(){var e=G_("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:J_,UNSUPPORTED_Y:Y_},X_=Object.keys||function(e){return t_(e,n_)},Q_=JD?Object.defineProperties:function(e,t){hO(e);for(var n,r=mA(t),o=X_(t),i=o.length,a=0;i>a;)mO.f(e,n=o[a++],r[n]);return e},eB=xA("document","documentElement"),tB=AO("IE_PROTO"),nB=function(){},rB=function(e){return"<script>"+e+"<\/script>"},oB=function(e){e.write(rB("")),e.close();var t=e.parentWindow.Object;return e=null,t},iB=function(){try{H_=new ActiveXObject("htmlfile")}catch(e){}var e,t;iB="undefined"!=typeof document?document.domain&&H_?oB(H_):((t=uO("iframe")).style.display="none",eB.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rB("document.F=Object")),e.close(),e.F):oB(H_);for(var n=n_.length;n--;)delete iB.prototype[n_[n]];return iB()};OO[tB]=!0;var aB,lB,uB=Object.create||function(e,t){var n;return null!==e?(nB.prototype=hO(e),n=new nB,nB.prototype=null,n[tB]=e):n=iB(),void 0===t?n:Q_(n,t)},sB=GD.RegExp,cB=YD((function(){var e=sB(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),fB=GD.RegExp,dB=YD((function(){var e=fB("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),pB=IO.get,hB=$A("native-string-replace",String.prototype.replace),gB=RegExp.prototype.exec,vB=gB,mB=uA("".charAt),yB=uA("".indexOf),bB=uA("".replace),wB=uA("".slice),xB=(lB=/b*/g,XD(gB,aB=/a/,"a"),XD(gB,lB,"a"),0!==aB.lastIndex||0!==lB.lastIndex),CB=Z_.BROKEN_CARET,EB=void 0!==/()??/.exec("")[1];(xB||EB||CB||cB||dB)&&(vB=function(e){var t,n,r,o,i,a,l,u=this,s=pB(u),c=q_(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=XD(vB,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=CB&&u.sticky,h=XD(K_,u),g=u.source,v=0,m=c;if(p&&(h=bB(h,"y",""),-1===yB(h,"g")&&(h+="g"),m=wB(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==mB(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),EB&&(n=new RegExp("^"+g+"$(?!\\s)",h)),xB&&(r=u.lastIndex),o=XD(gB,p?n:u,m),p?o?(o.input=wB(o.input,v),o[0]=wB(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:xB&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),EB&&o&&o.length>1&&XD(hB,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=uB(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var SB=vB;m_({target:"RegExp",proto:!0,forced:/./.exec!==SB},{exec:SB});var kB=Function.prototype,DB=kB.apply,AB=kB.bind,OB=kB.call,_B="object"==typeof Reflect&&Reflect.apply||(AB?OB.bind(DB):function(){return OB.apply(DB,arguments)}),BB=tO("species"),FB=RegExp.prototype,jB=function(e,t,n,r){var o=tO(e),i=!YD((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!YD((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[BB]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=uA(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=uA(e),u=t.exec;return u===SB||u===FB.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));VO(String.prototype,e,u[0]),VO(FB,o,u[1])}r&&yO(FB[o],"sham",!0)},PB=uA("".charAt),TB=uA("".charCodeAt),NB=uA("".slice),IB=function(e){return function(t,n){var r,o,i=q_(vA(t)),a=HO(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=TB(i,a))<55296||r>56319||a+1===l||(o=TB(i,a+1))<56320||o>57343?e?PB(i,a):r:e?NB(i,a,a+2):o-56320+(r-55296<<10)+65536}},LB={codeAt:IB(!1),charAt:IB(!0)}.charAt,MB=function(e,t,n){return t+(n?LB(e,t).length:1)},RB=Math.floor,zB=uA("".charAt),VB=uA("".replace),$B=uA("".slice),UB=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HB=/\$([$&'`]|\d{1,2})/g,WB=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=HB;return void 0!==o&&(o=HA(o),u=UB),VB(i,u,(function(i,u){var s;switch(zB(u,0)){case"$":return"$";case"&":return e;case"`":return $B(t,0,n);case"'":return $B(t,a);case"<":s=o[$B(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=RB(c/10);return 0===f?i:f<=l?void 0===r[f-1]?zB(u,1):r[f-1]+zB(u,1):i}s=r[c-1]}return void 0===s?"":s}))},qB=GD.TypeError,KB=function(e,t){var n=e.exec;if(yA(n)){var r=XD(n,e,t);return null!==r&&hO(r),r}if("RegExp"===fA(e))return XD(SB,e,t);throw qB("RegExp#exec called on incompatible receiver")},GB=tO("replace"),YB=Math.max,JB=Math.min,ZB=uA([].concat),XB=uA([].push),QB=uA("".indexOf),eF=uA("".slice),tF="$0"==="a".replace(/./,"$0"),nF=!!/./[GB]&&""===/./[GB]("a","$0");jB("replace",(function(e,t,n){var r=nF?"$":"$0";return[function(e,n){var r=vA(this),o=null==e?void 0:LA(e,GB);return o?XD(o,e,r,n):XD(t,q_(r),e,n)},function(e,o){var i=hO(this),a=q_(e);if("string"==typeof o&&-1===QB(o,r)&&-1===QB(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=yA(o);u||(o=q_(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=KB(i,a);if(null===d)break;if(XB(f,d),!s)break;""===q_(d[0])&&(i.lastIndex=MB(a,YO(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=q_((d=f[v])[0]),y=YB(JB(HO(d.index),a.length),0),b=[],w=1;w<d.length;w++)XB(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=ZB([m],b,y,a);void 0!==x&&XB(C,x);var E=q_(_B(o,void 0,C))}else E=WB(m,a,y,b,x,o);y>=g&&(h+=eF(a,g,y)+E,g=y+m.length)}return h+eF(a,g)}]}),!!YD((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!tF||nF);var rF=tO("unscopables"),oF=Array.prototype;null==oF[rF]&&mO.f(oF,rF,{configurable:!0,value:uB(null)});var iF=function(e){oF[rF][e]=!0},aF=R_.find,lF=!0;"find"in[]&&Array(1).find((function(){lF=!1})),m_({target:"Array",proto:!0,forced:lF},{find:function(e){return aF(this,e,arguments.length>1?arguments[1]:void 0)}}),iF("find");var uF=tO("match"),sF=function(e){var t;return bA(e)&&(void 0!==(t=e[uF])?!!t:"RegExp"==fA(e))},cF=GD.TypeError,fF=tO("species"),dF=function(e,t){var n,r=hO(e).constructor;return void 0===r||null==(n=hO(r)[fF])?t:function(e){if(P_(e))return e;throw cF(TA(e)+" is not a constructor")}(n)},pF=function(e,t,n){var r=iO(t);r in e?mO.f(e,r,rA(0,n)):e[r]=n},hF=GD.Array,gF=Math.max,vF=function(e,t,n){for(var r=JO(e),o=KO(t,r),i=KO(void 0===n?r:n,r),a=hF(gF(i-o,0)),l=0;o<i;o++,l++)pF(a,l,e[o]);return a.length=l,a},mF=Z_.UNSUPPORTED_Y,yF=Math.min,bF=[].push,wF=uA(/./.exec),xF=uA(bF),CF=uA("".slice);jB("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=q_(vA(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!sF(e))return XD(t,r,e,o);for(var i,a,l,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,s+"g");(i=XD(SB,f,r))&&!((a=f.lastIndex)>c&&(xF(u,CF(r,c,i.index)),i.length>1&&i.index<r.length&&_B(bF,u,vF(i,1)),l=i[0].length,c=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!l&&wF(f,"")||xF(u,""):xF(u,CF(r,c)),u.length>o?vF(u,0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:XD(t,this,e,n)}:t,[function(t,n){var o=vA(this),i=null==t?void 0:LA(t,e);return i?XD(i,t,o,n):XD(r,q_(o),t,n)},function(e,o){var i=hO(this),a=q_(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=dF(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mF?"g":"y"),f=new u(mF?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===KB(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=mF?0:h;var v,m=KB(f,mF?CF(a,h):a);if(null===m||(v=yF(YO(f.lastIndex+(mF?h:0)),a.length))===p)h=MB(a,h,s);else{if(xF(g,CF(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(xF(g,m[y]),g.length===d)return g;h=p=v}}return xF(g,CF(a,p)),g}]}),!!YD((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),mF);var EF,SF="\t\n\v\f\r                 \u2028\u2029\ufeff",kF=uA("".replace),DF="["+SF+"]",AF=RegExp("^"+DF+DF+"*"),OF=RegExp(DF+DF+"*$"),_F=function(e){return function(t){var n=q_(vA(t));return 1&e&&(n=kF(n,AF,"")),2&e&&(n=kF(n,OF,"")),n}},BF={start:_F(1),end:_F(2),trim:_F(3)},FF=zO.PROPER,jF=BF.trim;function PF(e){return 0===uo("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function TF(e){return 0===e.length?"":e[0].outerHTML}function NF(e){return e.length?e[0].tagName.toLowerCase():""}function IF(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var l=a.split(":");l[0].trim()===t&&(n=l[1].trim())}}return n}m_({target:"String",proto:!0,forced:(EF="trim",YD((function(){return!!SF[EF]()||"​…᠎"!=="​…᠎"[EF]()||FF&&SF[EF].name!==EF})))},{trim:function(){return jF(this)}}),m_({global:!0},{globalThis:GD}),So&&(uo.fn.css=So),Bo&&(uo.fn.append=Bo),Fo&&(uo.fn.prepend=Fo),so&&(uo.fn.addClass=so),co&&(uo.fn.removeClass=co),fo&&(uo.fn.hasClass=fo),mo&&(uo.fn.on=mo),yo&&(uo.fn.off=yo),Vo&&(uo.fn.focus=Vo),po&&(uo.fn.attr=po),ho&&(uo.fn.removeAttr=ho),Co&&(uo.fn.hide=Co),Eo&&(uo.fn.show=Eo),Po&&(uo.fn.parents=Po),go&&(uo.fn.dataset=go),vo&&(uo.fn.val=vo),Oo&&(uo.fn.text=Oo),Ao&&(uo.fn.html=Ao),No&&(uo.fn.children=No),Io&&(uo.fn.remove=Io),To&&(uo.fn.find=To),bo&&(uo.fn.width=bo),wo&&(uo.fn.height=wo),Do&&(uo.fn.filter=Do),Lo&&(uo.fn.empty=Lo);var LF={selector:"p",parseElemHtml:function(e,t,n){var r=uo(e);return 0===(t=t.filter((function(e){return!!Ft.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},MF=function(e,t){return MF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},MF(e,t)
40
- /*! *****************************************************************************
41
- Copyright (c) Microsoft Corporation.
42
-
43
- Permission to use, copy, modify, and/or distribute this software for any
44
- purpose with or without fee is hereby granted.
45
-
46
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
47
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
48
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
49
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
50
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
51
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
52
- PERFORMANCE OF THIS SOFTWARE.
53
- ***************************************************************************** */};function RF(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}MF(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var zF=function(){return zF=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zF.apply(this,arguments)};function VF(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function $F(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function UF(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function HF(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function WF(e){var t=HF(it.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1),n=t[0];if(null==n)return!1;var r=n[0];if(!Qe.isElement(r))return!1;if("paragraph"===r.type)return!1;if(""!==ft.string(r))return!1;var o=r.children,i=void 0===o?[]:o;return!!Ft.isText(i[0])&&(Jt.setNodes(e,{type:"paragraph"}),!0)}var qF={renderElems:[zD],elemsToHtml:[VD],parseElemsHtml:[LF],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){WF(r)||t(e)},r.deleteForward=function(e){WF(r)||n(e)},r}},KF=/"/g,GF=uA("".replace),YF=function(e,t,n,r){var o=q_(vA(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+GF(q_(r),KF,"&quot;")+'"'),i+">"+o+"</"+t+">"},JF=function(e){return YD((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function ZF(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function XF(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}m_({target:"String",proto:!0,forced:JF("bold")},{bold:function(){return YF(this,"b","","")}}),m_({target:"String",proto:!0,forced:JF("italics")},{italics:function(){return YF(this,"i","","")}}),m_({target:"String",proto:!0,forced:JF("sub")},{sub:function(){return YF(this,"sub","","")}}),m_({target:"String",proto:!0,forced:JF("sup")},{sup:function(){return YF(this,"sup","","")}});var QF={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},ej=uO("span").classList,tj=ej&&ej.constructor&&ej.constructor.prototype,nj=tj===Object.prototype?void 0:tj,rj=function(e,t){var n=[][e];return!!n&&YD((function(){n.call(null,t||function(){throw 1},1)}))},oj=R_.forEach,ij=rj("forEach")?[].forEach:function(e){return oj(this,e,arguments.length>1?arguments[1]:void 0)},aj=function(e){if(e&&e.forEach!==ij)try{yO(e,"forEach",ij)}catch(ose){e.forEach=ij}};for(var lj in QF)QF[lj]&&aj(GD[lj]&&GD[lj].prototype);function uj(e,t){return null==e.selection||!!HF(it.nodes(e,{match:function(t){return"pre"===Tw.getNodeType(t)||!!it.isVoid(e,t)},universal:!0}),1)[0]}function sj(e,t){Object.keys(t).forEach((function(t){"text"!==t&&it.removeMark(e,t)}))}aj(nj),m_({target:"Object",stat:!0,forced:YD((function(){X_(1)}))},{keys:function(e){return X_(HA(e))}});var cj=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=it.marks(e);return n?n[t]:!!HF(it.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return uj(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),fj='<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>',dj='<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>',pj='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',hj='<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>',gj='<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>',vj='<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>',mj='<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>',yj='<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>',bj='<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>',wj='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',xj='<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>',Cj='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Ej='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Sj='<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>',kj='<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>',Dj='<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>',Aj='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Oj='<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>',_j='<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>',Bj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=LD("textStyle.bold"),t.iconSvg=fj,t.hotkey="mod+b",t}return RF(t,e),t}(cj),Fj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=LD("textStyle.code"),t.iconSvg=gj,t.hotkey="mod+e",t}return RF(t,e),t}(cj),jj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=LD("textStyle.italic"),t.iconSvg=pj,t.hotkey="mod+i",t}return RF(t,e),t}(cj),Pj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=LD("textStyle.through"),t.iconSvg=hj,t.hotkey="mod+shift+x",t}return RF(t,e),t}(cj),Tj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=LD("textStyle.underline"),t.iconSvg=dj,t.hotkey="mod+u",t}return RF(t,e),t}(cj),Nj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=LD("textStyle.sub"),t.iconSvg=_j,t.hotkey="",t}return RF(t,e),t}(cj),Ij=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=LD("textStyle.sup"),t.iconSvg=Oj,t.hotkey="",t}return RF(t,e),t}(cj),Lj=function(){function e(){this.title=LD("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return uj(e)},e.prototype.exec=function(e,t){var n,r,o=it.nodes(e,{match:function(e){return Ft.isText(e)},universal:!0});try{for(var i=UF(o),a=i.next();!a.done;a=i.next())sj(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),Mj={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,l=n.through,u=n.sub,s=n.sup,c=t;return r&&(c=Ua("strong",null,c)),a&&(c=Ua("code",null,c)),o&&(c=Ua("em",null,c)),i&&(c=Ua("u",null,c)),l&&(c=Ua("s",null,c)),u&&(c=Ua("sub",null,c)),s&&(c=Ua("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Bj}},{key:"underline",factory:function(){return new Tj}},{key:"italic",factory:function(){return new jj}},{key:"through",factory:function(){return new Pj}},{key:"code",factory:function(){return new Fj}},{key:"sub",factory:function(){return new Nj}},{key:"sup",factory:function(){return new Ij}},{key:"clearStyle",factory:function(){return new Lj}}],styleToHtml:function(e,t){if(!Ft.isText(e))return t;if(PF(t))return ZF(e,t);var n=uo(t);if("br"===NF(n))return ZF(e,"<br>");var r=n.html();return r=ZF(e,r),n.html(r),TF(n)},parseStyleHtml:function(e,t,n){var r=uo(e);if(!Ft.isText(t))return t;var o=t;return XF(r,"b,strong")&&(o.bold=!0),XF(r,"i,em")&&(o.italic=!0),XF(r,"u")&&(o.underline=!0),XF(r,"s,strike")&&(o.through=!0),XF(r,"sub")&&(o.sub=!0),XF(r,"sup")&&(o.sup=!0),XF(r,"code")&&(o.code=!0),o}};function Rj(e){return function(t,n,r){return Ua("h"+e,null,n)}}var zj={type:"header1",renderElem:Rj(1)},Vj={type:"header2",renderElem:Rj(2)},$j={type:"header3",renderElem:Rj(3)},Uj={type:"header4",renderElem:Rj(4)},Hj={type:"header5",renderElem:Rj(5)},Wj=zO.PROPER,qj=RegExp.prototype,Kj=qj.toString,Gj=uA(K_),Yj=YD((function(){return"/a/b"!=Kj.call({source:"a",flags:"b"})})),Jj=Wj&&"toString"!=Kj.name;(Yj||Jj)&&VO(RegExp.prototype,"toString",(function(){var e=hO(this),t=q_(e.source),n=e.flags;return"/"+t+"/"+q_(void 0===n&&CA(qj,e)&&!("flags"in qj)?Gj(e):n)}),{unsafe:!0});var Zj,Xj=GD.TypeError,Qj=function(e){if(sF(e))throw Xj("The method doesn't accept regular expressions");return e},eP=tO("match"),tP=function(e){var t=/./;try{"/./"[e](t)}catch(c){try{return t[eP]=!1,"/./"[e](t)}catch(e){}}return!1},nP=fO.f,rP=uA("".startsWith),oP=uA("".slice),iP=Math.min,aP=tP("startsWith");function lP(e){var t=HF(it.nodes(e,{match:function(e){return Tw.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=HF(n,1)[0];return Tw.getNodeType(r)}function uP(e){return null==e.selection||!HF(it.nodes(e,{match:function(e){var t=Tw.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function sP(e,t){t&&Jt.setNodes(e,{type:t})}m_({target:"String",proto:!0,forced:!(!aP&&(Zj=nP(String.prototype,"startsWith"),Zj&&!Zj.writable))&&!aP},{startsWith:function(e){var t=q_(vA(this));Qj(e);var n=YO(iP(arguments.length>1?arguments[1]:void 0,t.length)),r=q_(e);return rP?rP(t,r,n):oP(t,n,n+r.length)===r}});var cP=function(){function e(){this.title=LD("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:LD("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return lP(e)},e.prototype.isDisabled=function(e){return uP(e)},e.prototype.exec=function(e,t){sP(e,t.toString())},e}(),fP=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return lP(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return uP(e)},e.prototype.exec=function(e,t){var n=this.type;sP(e,t===n?"paragraph":n)},e}(),dP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return RF(t,e),t}(fP),pP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return RF(t,e),t}(fP),hP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return RF(t,e),t}(fP),gP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return RF(t,e),t}(fP),vP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return RF(t,e),t}(fP),mP={key:"headerSelect",factory:function(){return new cP}},yP={key:"header1",factory:function(){return new dP}},bP={key:"header2",factory:function(){return new pP}},wP={key:"header3",factory:function(){return new hP}},xP={key:"header4",factory:function(){return new gP}},CP={key:"header5",factory:function(){return new vP}};function EP(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function SP(e){return function(t,n,r){var o=uo(t);return 0===(n=n.filter((function(e){return!!Ft.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var kP={renderElems:[zj,Vj,$j,Uj,Hj],elemsToHtml:[{type:"header1",elemToHtml:EP(1)},{type:"header2",elemToHtml:EP(2)},{type:"header3",elemToHtml:EP(3)},{type:"header4",elemToHtml:EP(4)},{type:"header5",elemToHtml:EP(5)}],parseElemsHtml:[{selector:"h1",parseElemHtml:SP(1)},{selector:"h2",parseElemHtml:SP(2)},{selector:"h3",parseElemHtml:SP(3)},{selector:"h4",parseElemHtml:SP(4)},{selector:"h5",parseElemHtml:SP(5)}],menus:[mP,yP,bP,wP,xP,CP],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=HF(it.nodes(n,{match:function(e){return Tw.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&Tw.isSelectionAtLineEnd(e,r[1])?Jt.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},DP=Object.assign,AP=Object.defineProperty,OP=uA([].concat),_P=!DP||YD((function(){if(JD&&1!==DP({b:1},DP(AP({},"a",{enumerable:!0,get:function(){AP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=DP({},e)[n]||X_(DP({},t)).join("")!=r}))?function(e,t){for(var n=HA(e),r=arguments.length,o=1,i=i_.f,a=nA.f;r>o;)for(var l,u=hA(arguments[o++]),s=i?OP(X_(u),i(u)):X_(u),c=s.length,f=0;c>f;)l=s[f++],JD&&!XD(a,u,l)||(n[l]=u[l]);return n}:DP;function BP(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}m_({target:"Object",stat:!0,forced:Object.assign!==_P},{assign:_P});var FP={selector:"font",preParseHtml:function(e){var t=uo(e);if("font"!==NF(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},jP=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=it.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!HF(it.nodes(e,{match:function(t){return"pre"===Tw.getNodeType(t)||!!it.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=uo('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=uo(r).attr("data-value");"0"===o?it.removeMark(e,t):it.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=uo('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=uo('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=LD("color.default")),"bgColor"===t&&(a=LD("color.clear"));var l=uo('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(l),r[0]},e}(),PP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("color.color"),t.iconSvg=yj,t.mark="color",t}return RF(t,e),t}(jP),TP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("color.bgColor"),t.iconSvg=bj,t.mark="bgColor",t}return RF(t,e),t}(jP),NP=["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)"],IP={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&BP(i,{color:r}),o&&BP(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Ft.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((PF(t)||"span"!==NF(n=uo(t)))&&(n=uo("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),TF(n)):t},preParseHtml:[FP],parseStyleHtml:function(e,t,n){var r=uo(e);if(!Ft.isText(t))return t;var o=t,i=IF(r,"color");i&&(o.color=i);var a=IF(r,"background-color");return a||(a=IF(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new PP},config:{colors:NP}},{key:"bgColor",factory:function(){return new TP},config:{colors:NP}}]},LP=function(e){if("string"!=typeof e)return!1;var t=e.match(MP);if(!t)return!1;var n=t[1];return!!n&&!(!RP.test(n)&&!zP.test(n))},MP=/^(?:\w+:)?\/\/(\S+)$/,RP=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,zP=/^[^\s\.]+\.\S{2,}$/,VP=XO.includes;function $P(e){return void 0===e&&(e="r"),e+"-"+Ci()}function UP(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function HP(e,t,n,r){return VF(this,void 0,void 0,(function(){var o,i;return $F(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function WP(e,t,n){return VF(this,void 0,void 0,(function(){var r;return $F(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function qP(e){return null==e.selection||!!Tw.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function KP(e,t){return{type:"link",url:UP(e),children:t?[{text:t}]:[]}}function GP(e,t,n){return VF(this,void 0,void 0,(function(){var r,o,i;return $F(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),qP(e)?[2]:[4,HP("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,WP("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(St.isCollapsed(o)?(e.insertText(" "),i=KP(r,t),Jt.insertNodes(e,i),e.insertFragment([{text:" "}])):it.string(e,o)!==t?(e.deleteFragment(),i=KP(r,t),Jt.insertNodes(e,i)):(i=KP(r),Jt.wrapNodes(e,i,{split:!0}),Jt.collapse(e,{edge:"end"}))),[2]}}))}))}m_({target:"Array",proto:!0},{includes:function(e){return VP(this,e,arguments.length>1?arguments[1]:void 0)}}),iF("includes");var YP={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Ua("a",{href:o,target:void 0===i?"_blank":i},t)}},JP={type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}},ZP={selector:"a",parseElemHtml:function(e,t,n){var r=uo(e);return 0===(t=t.filter((function(e){return!!Ft.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function XP(){return $P("w-e-insert-link")}var QP=function(){function e(){this.title=LD("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=XP(),this.urlInputId=XP(),this.buttonId=XP()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return qP(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=HF(gk(LD("link.text"),r),2),l=a[0],u=a[1],s=uo(u),c=HF(gk(LD("link.url"),o),2),f=c[0],d=c[1],p=uo(d),h=HF(mk(i,LD("common.ok")),1)[0];if(null==this.$content){var g=uo("<div></div>");g.on("click","#"+i,(function(t){t.preventDefault();var n=g.find("#"+r).val(),i=g.find("#"+o).val();GP(e,n,i),e.hidePanelOrModal()})),this.$content=g}var v=this.$content;if(v.empty(),v.append(l),v.append(f),v.append(h),null==t||St.isCollapsed(t))s.val("");else{var m=it.string(e,t);s.val(m)}return p.val(""),setTimeout((function(){s.focus()})),v[0]},e}();function eT(){return $P("w-e-update-link")}var tT=function(){function e(){this.title=LD("link.edit"),this.iconSvg=vj,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=eT(),this.buttonId=eT()}return e.prototype.getSelectedLinkElem=function(e){var t=Tw.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return Tw.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=HF(gk(LD("link.url"),t),2),o=r[0],i=r[1],a=uo(i),l=HF(mk(n,LD("common.ok")),1)[0];if(null==this.$content){var u=uo("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=Tw.getSelectedNodeByType(e,"link"),o=r?ft.string(r):"",i=u.find("#"+t).val();!function(e,t,n){VF(this,void 0,void 0,(function(){var r,o;return $F(this,(function(i){switch(i.label){case 0:return n?[4,HP("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,WP("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:UP(r)},Jt.setNodes(e,o,{match:function(e){return Tw.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(l);var c=this.getValue(e);return a.val(c),setTimeout((function(){a.focus()})),s[0]},e}(),nT=function(){function e(){this.title=LD("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Tw.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Jt.unwrapNodes(e,{match:function(e){return Tw.checkNodeType(e,"link")}})},e}(),rT=function(){function e(){this.title=LD("link.view"),this.iconSvg=mj,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=Tw.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),oT={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},iT={renderElems:[YP],elemsToHtml:[JP],parseElemsHtml:[ZP],menus:[{key:"insertLink",factory:function(){return new QP},config:oT},{key:"editLink",factory:function(){return new tT},config:oT},{key:"unLink",factory:function(){return new nT}},{key:"viewLink",factory:function(){return new rT}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(LP(t)){if(!qP(o)){var r=o.selection;if(null!=r){var i=it.string(o,r);GP(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=HF(e,2),n=t[0],i=t[1];return"link"!==Tw.getNodeType(n)?r([n,i]):""===ft.string(n)?Jt.removeNodes(o,{at:i}):r([n,i])},o}},aT=uA(1..valueOf),lT=GD.RangeError,uT=GD.RangeError,sT=GD.String,cT=Math.floor,fT=uA((function(e){var t=q_(vA(this)),n="",r=HO(e);if(r<0||r==1/0)throw lT("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),dT=uA("".slice),pT=uA(1..toFixed),hT=function(e,t,n){return 0===t?n:t%2==1?hT(e,t-1,n*e):hT(e*e,t/2,n)},gT=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=cT(o/1e7)},vT=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=cT(r/t),r=r%t*1e7},mT=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=sT(e[t]);n=""===n?r:n+fT("0",7-r.length)+r}return n};function yT(e,t){return"w-e-image-container-"+Tw.findKey(e,t).id}function bT(e,t,n,r){var o=uo("body"),i=yT(e,t),a=r.width,l=r.height,u=0,s=0,c=0,f=!1,d=null;function p(t){d=function(){var e=uo("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");s=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=Tw.getHoverbar(e);r&&r.hideAndClean()}var h=Wi((function(e){e.preventDefault();var t=e.clientX,n=s+(f?u-t:t-u),r=c*(n/s);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:zF(zF({},t.style),{width:r+"px",height:i+"px"})};Jt.setNodes(e,a,{at:Tw.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),l&&(v.height=l),Ua("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=uo(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Ua("div",{className:"w-e-image-dragger left-top"}),Ua("div",{className:"w-e-image-dragger right-top"}),Ua("div",{className:"w-e-image-dragger left-bottom"}),Ua("div",{className:"w-e-image-dragger right-bottom"}))}m_({target:"Number",proto:!0,forced:YD((function(){return"0.000"!==pT(8e-5,3)||"1"!==pT(.9,0)||"1.25"!==pT(1.255,2)||"1000000000000000128"!==pT(0xde0b6b3a7640080,0)}))||!YD((function(){pT({})}))},{toFixed:function(e){var t,n,r,o,i=aT(this),a=HO(e),l=[0,0,0,0,0,0],u="",s="0";if(a<0||a>20)throw uT("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return sT(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*hT(2,69,1))-69)<0?i*hT(2,-t,1):i/hT(2,t,1),n*=4503599627370496,(t=52-t)>0){for(gT(l,0,n),r=a;r>=7;)gT(l,1e7,0),r-=7;for(gT(l,hT(10,r,1),0),r=t-1;r>=23;)vT(l,1<<23),r-=23;vT(l,1<<r),gT(l,1,1),vT(l,2),s=mT(l)}else gT(l,0,n),gT(l,1<<-t,0),s=mT(l)+fT("0",a);return a>0?u+((o=s.length)<=a?"0."+fT("0",a-o)+s:dT(s,0,o-a)+"."+dT(s,o-a)):u+s}});var wT={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,l=r.href,u=void 0===l?"":l,s=r.style,c=void 0===s?{}:s,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=Tw.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var m=Ua("img",{style:v,src:o,alt:a,"data-href":u}),y=n.isDisabled();return g&&!y?bT(n,e,m,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};o&&(a.width=o),i&&(a.height=i);var l=yT(e,t);return Ua("div",{id:l,style:a,className:"w-e-image-container"},n)}(n,e,m,{width:d,height:h})}},xT={type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,l=void 0===a?"":a,u=n.style,s=void 0===u?{}:u,c=s.width,f=void 0===c?"":c,d=s.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+l+'" style="'+h+'"/>'}},CT={selector:"img",parseElemHtml:function(e,t,n){var r=uo(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:IF(r,"width"),height:IF(r,"height")},children:[{text:""}]}}};function ET(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),VF(this,void 0,void 0,(function(){var i,a;return $F(this,(function(l){switch(l.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=l.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];l.label=2;case 2:return[2,!0]}}))}))}function ST(e,t,n){return VF(this,void 0,void 0,(function(){var r;return $F(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function kT(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),VF(this,void 0,void 0,(function(){var o,i,a;return $F(this,(function(l){switch(l.label){case 0:return[4,ET("insertImage",e,t,n,r)];case 1:return l.sent()?[4,ST("insertImage",e,t)]:[2];case 2:return o=l.sent(),i={type:"image",src:UP(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),Tw.getSelectedNodeByType(e,"image")&&e.move(1),AT(e)||(Jt.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function DT(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),VF(this,void 0,void 0,(function(){var i,a,l,u,s,c;return $F(this,(function(f){switch(f.label){case 0:return[4,ET("editImage",e,t,n,r)];case 1:return f.sent()?[4,ST("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=Tw.getSelectedNodeByType(e,"image"))||(l=a.style,u={src:i,alt:n,href:r,style:zF(zF({},void 0===l?{}:l),o)},Jt.setNodes(e,u,{match:function(e){return Tw.checkNodeType(e,"image")}}),s=Tw.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(s)),[2]}}))}))}function AT(e){var t=e.selection;return null==t||!St.isCollapsed(t)||!!HF(it.nodes(e,{match:function(t){var n=Tw.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!it.isVoid(e,t)},universal:!0}),1)[0]}function OT(){return $P("w-e-insert-image")}var _T=function(){function e(){this.title=LD("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=OT(),this.altInputId=OT(),this.hrefInputId=OT(),this.buttonId=OT()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return AT(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,l=HF(gk(LD("image.src"),r),2),u=l[0],s=l[1],c=uo(s),f=HF(gk(LD("image.desc"),o),2),d=f[0],p=f[1],h=uo(p),g=HF(gk(LD("image.link"),i),2),v=g[0],m=g[1],y=uo(m),b=HF(mk(a,LD("common.ok")),1)[0];if(null==this.$content){var w=uo("<div></div>");w.on("click","#"+a,(function(n){n.preventDefault();var a=w.find("#"+r).val().trim(),l=w.find("#"+o).val().trim(),u=w.find("#"+i).val().trim();t.insertImage(e,a,l,u),e.hidePanelOrModal()})),this.$content=w}var x=this.$content;return x.empty(),x.append(u),x.append(d),x.append(v),x.append(b),c.val(""),h.val(""),y.val(""),setTimeout((function(){c.focus()})),x[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||kT(e,t,n,r))},e}(),BT=function(){function e(){this.title=LD("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Tw.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Jt.removeNodes(e,{match:function(e){return Tw.checkNodeType(e,"image")}})},e}();function FT(){return $P("w-e-edit-image")}var jT=function(){function e(){this.title=LD("image.edit"),this.iconSvg=vj,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=FT(),this.altInputId=FT(),this.hrefInputId=FT(),this.buttonId=FT()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return Tw.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||null==Tw.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,l=this.getImageNode(e);if(null==l)throw new Error("Not found selected image node");var u=HF(gk(LD("image.src"),r),2),s=u[0],c=u[1],f=uo(c),d=HF(gk(LD("image.desc"),o),2),p=d[0],h=d[1],g=uo(h),v=HF(gk(LD("image.link"),i),2),m=v[0],y=v[1],b=uo(y),w=HF(mk(a,LD("common.ok")),1)[0];if(null==this.$content){var x=uo("<div></div>");x.on("click","#"+a,(function(n){n.preventDefault();var a=x.find("#"+r).val(),l=x.find("#"+o).val(),u=x.find("#"+i).val();t.updateImage(e,a,l,u),e.hidePanelOrModal()})),this.$content=x}var C=this.$content;C.empty(),C.append(s),C.append(p),C.append(m),C.append(w);var E=l,S=E.src,k=E.alt,D=void 0===k?"":k,A=E.href,O=void 0===A?"":A;return f.val(S),g.val(D),b.val(O),setTimeout((function(){f.focus()})),C[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||DT(e,t,n,r,o))},e}(),PT=function(){function e(){this.title=LD("image.viewLink"),this.iconSvg=mj,this.tag="button"}return e.prototype.getValue=function(e){var t=Tw.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),TT=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return Tw.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=Tw.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:zF(zF({},void 0===o?{}:o),{width:this.value,height:""})};Jt.setNodes(e,i,{match:function(e){return Tw.checkNodeType(e,"image")}})}}},e}(),NT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return RF(t,e),t}(TT),IT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return RF(t,e),t}(TT),LT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return RF(t,e),t}(TT),MT={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},RT={renderElems:[wT],elemsToHtml:[xT],parseElemsHtml:[CT],menus:[{key:"insertImage",factory:function(){return new _T},config:MT},{key:"deleteImage",factory:function(){return new BT}},{key:"editImage",factory:function(){return new jT},config:MT},{key:"viewImageLink",factory:function(){return new PT}},{key:"imageWidth30",factory:function(){return new NT}},{key:"imageWidth50",factory:function(){return new IT}},{key:"imageWidth100",factory:function(){return new LT}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},zT={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=e.checked,i=Ua("div",{style:{margin:"5px 0"}},Ua("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ua("input",{type:"checkbox",checked:o,disabled:r,on:{change:function(t){var r=Tw.findPath(n,e),o={checked:t.target.checked};Jt.setNodes(n,o,{at:r})}}})),Ua("span",null,t));return i}},VT=function(){function e(){this.title=LD("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!Tw.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!Tw.getSelectedElems(e).some((function(t){if(it.isVoid(e,t)&&it.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","bulleted-list","numbered-list"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);Jt.setNodes(e,{type:n?"paragraph":"todo"})},e}(),$T={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=uo(e);0===(t=t.filter((function(e){return!!Ft.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},UT={renderElems:[zT],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=uo(e).find("li"),n=uo('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[$T],menus:[{key:"todo",factory:function(){return new VT}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&St.isCollapsed(r)){var o=Tw.getSelectedNodeByType(e,"todo");if(o&&0===ft.string(o).length)return void Jt.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},HT={type:"blockquote",renderElem:function(e,t,n){return Ua("blockquote",null,t)}},WT={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},qT={selector:"blockquote",parseElemHtml:function(e,t,n){var r=uo(e);return 0===(t=t.filter((function(e){return!!Ft.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},KT=function(){function e(){this.title=LD("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!Tw.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!HF(it.nodes(e,{match:function(e){var t=Tw.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";Jt.setNodes(e,{type:n},{mode:"highest"})}},e}(),GT={key:"blockquote",factory:function(){return new KT}},YT=uA([].slice),JT=V_("slice"),ZT=tO("species"),XT=GD.Array,QT=Math.max;m_({target:"Array",proto:!0,forced:!JT},{slice:function(e,t){var n,r,o,i=mA(this),a=JO(i),l=KO(e,a),u=KO(void 0===t?a:t,a);if(b_(i)&&(n=i.constructor,(P_(n)&&(n===XT||b_(n.prototype))||bA(n)&&null===(n=n[ZT]))&&(n=void 0),n===XT||void 0===n))return YT(i,l,u);for(r=new(void 0===n?XT:n)(QT(u-l,0)),o=0;l<u;l++,o++)l in i&&pF(r,o,i[l]);return r.length=o,r}});var eN={renderElems:[HT],elemsToHtml:[WT],parseElemsHtml:[qT],menus:[GT],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=HF(it.nodes(e,{match:function(e){return Tw.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],l=Tw.findPath(e,a),u=it.end(e,l);if(bt.equals(u,o.focus)){var s=ft.string(a);if(s&&"\n"===s.slice(-1))return e.deleteBackward("character"),void Jt.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},tN=function(){function e(){this.title=LD("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!HF(it.nodes(e,{match:function(t){return"pre"===Tw.getNodeType(t)||!!it.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=uo('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=uo(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=uo("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),nN={menus:[{key:"emotion",factory:function(){return new tN},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},rN={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},oN={selector:"font",preParseHtml:function(e){var t=uo(e);if("font"!==NF(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",rN[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},iN=uA("".indexOf);m_({target:"String",proto:!0,forced:!tP("includes")},{includes:function(e){return!!~iN(q_(vA(this)),q_(Qj(e)),arguments.length>1?arguments[1]:void 0)}});var aN,lN,uN=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=it.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!HF(it.nodes(e,{match:function(t){return"pre"===Tw.getNodeType(t)||!!it.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),sN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("fontSize.title"),t.iconSvg=wj,t.mark="fontSize",t}return RF(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:LD("fontSize.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(uN),cN=function(e){return e&&e.Math==Math&&e},fN=cN("object"==typeof globalThis&&globalThis)||cN("object"==typeof window&&window)||cN("object"==typeof self&&self)||cN("object"==typeof $D&&$D)||function(){return this}()||Function("return this")(),dN=Function.prototype,pN=dN.apply,hN=dN.bind,gN=dN.call,vN="object"==typeof Reflect&&Reflect.apply||(hN?gN.bind(pN):function(){return gN.apply(pN,arguments)}),mN=Function.prototype,yN=mN.bind,bN=mN.call,wN=yN&&yN.bind(bN),xN=yN?function(e){return e&&wN(bN,e)}:function(e){return e&&function(){return bN.apply(e,arguments)}},CN=function(e){return"function"==typeof e},EN=function(e){try{return!!e()}catch(e){return!0}},SN=!EN((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),kN=Function.prototype.call,DN=kN.bind?kN.bind(kN):function(){return kN.apply(kN,arguments)},AN={}.propertyIsEnumerable,ON=Object.getOwnPropertyDescriptor,_N=ON&&!AN.call({1:2},1)?function(e){var t=ON(this,e);return!!t&&t.enumerable}:AN,BN={f:_N},FN=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},jN=xN({}.toString),PN=xN("".slice),TN=function(e){return PN(jN(e),8,-1)},NN=fN.Object,IN=xN("".split),LN=EN((function(){return!NN("z").propertyIsEnumerable(0)}))?function(e){return"String"==TN(e)?IN(e,""):NN(e)}:NN,MN=fN.TypeError,RN=function(e){if(null==e)throw MN("Can't call method on "+e);return e},zN=function(e){return LN(RN(e))},VN=function(e){return"object"==typeof e?null!==e:CN(e)},$N={},UN=function(e){return CN(e)?e:void 0},HN=function(e,t){return arguments.length<2?UN($N[e])||UN(fN[e]):$N[e]&&$N[e][t]||fN[e]&&fN[e][t]},WN=xN({}.isPrototypeOf),qN=HN("navigator","userAgent")||"",KN=fN.process,GN=fN.Deno,YN=KN&&KN.versions||GN&&GN.version,JN=YN&&YN.v8;JN&&(lN=(aN=JN.split("."))[0]>0&&aN[0]<4?1:+(aN[0]+aN[1])),!lN&&qN&&(!(aN=qN.match(/Edge\/(\d+)/))||aN[1]>=74)&&(aN=qN.match(/Chrome\/(\d+)/))&&(lN=+aN[1]);var ZN=lN,XN=!!Object.getOwnPropertySymbols&&!EN((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ZN&&ZN<41})),QN=XN&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,eI=fN.Object,tI=QN?function(e){return"symbol"==typeof e}:function(e){var t=HN("Symbol");return CN(t)&&WN(t.prototype,eI(e))},nI=fN.String,rI=fN.TypeError,oI=function(e){if(CN(e))return e;throw rI(function(e){try{return nI(e)}catch(e){return"Object"}}(e)+" is not a function")},iI=fN.TypeError,aI=Object.defineProperty,lI=fN["__core-js_shared__"]||function(e,t){try{aI(fN,e,{value:t,configurable:!0,writable:!0})}catch(c){fN[e]=t}return t}("__core-js_shared__",{}),uI=HD((function(e){(e.exports=function(e,t){return lI[e]||(lI[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),sI=fN.Object,cI=function(e){return sI(RN(e))},fI=xN({}.hasOwnProperty),dI=Object.hasOwn||function(e,t){return fI(cI(e),t)},pI=0,hI=Math.random(),gI=xN(1..toString),vI=function(e){return"Symbol("+(void 0===e?"":e)+")_"+gI(++pI+hI,36)},mI=uI("wks"),yI=fN.Symbol,bI=yI&&yI.for,wI=QN?yI:yI&&yI.withoutSetter||vI,xI=function(e){if(!dI(mI,e)||!XN&&"string"!=typeof mI[e]){var t="Symbol."+e;XN&&dI(yI,e)?mI[e]=yI[e]:mI[e]=QN&&bI?bI(t):wI(t)}return mI[e]},CI=fN.TypeError,EI=xI("toPrimitive"),SI=function(e,t){if(!VN(e)||tI(e))return e;var n,r,o=null==(n=e[EI])?void 0:oI(n);if(o){if(void 0===t&&(t="default"),r=DN(o,e,t),!VN(r)||tI(r))return r;throw CI("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&CN(n=e.toString)&&!VN(r=DN(n,e)))return r;if(CN(n=e.valueOf)&&!VN(r=DN(n,e)))return r;if("string"!==t&&CN(n=e.toString)&&!VN(r=DN(n,e)))return r;throw iI("Can't convert object to primitive value")}(e,t)},kI=function(e){var t=SI(e,"string");return tI(t)?t:t+""},DI=fN.document,AI=VN(DI)&&VN(DI.createElement),OI=function(e){return AI?DI.createElement(e):{}},_I=!SN&&!EN((function(){return 7!=Object.defineProperty(OI("div"),"a",{get:function(){return 7}}).a})),BI=Object.getOwnPropertyDescriptor,FI={f:SN?BI:function(e,t){if(e=zN(e),t=kI(t),_I)try{return BI(e,t)}catch(e){}if(dI(e,t))return FN(!DN(BN.f,e,t),e[t])}},jI=/#|\.prototype\./,PI=function(e,t){var n=NI[TI(e)];return n==LI||n!=II&&(CN(t)?EN(t):!!t)},TI=PI.normalize=function(e){return String(e).replace(jI,".").toLowerCase()},NI=PI.data={},II=PI.NATIVE="N",LI=PI.POLYFILL="P",MI=PI,RI=xN(xN.bind),zI=function(e,t){return oI(e),void 0===t?e:RI?RI(e,t):function(){return e.apply(t,arguments)}},VI=fN.String,$I=fN.TypeError,UI=function(e){if(VN(e))return e;throw $I(VI(e)+" is not an object")},HI=fN.TypeError,WI=Object.defineProperty,qI={f:SN?WI:function(e,t,n){if(UI(e),t=kI(t),UI(n),_I)try{return WI(e,t,n)}catch(e){}if("get"in n||"set"in n)throw HI("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},KI=SN?function(e,t,n){return qI.f(e,t,FN(1,n))}:function(e,t,n){return e[t]=n,e},GI=FI.f,YI=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return vN(e,this,arguments)};return t.prototype=e.prototype,t},JI=function(e,t){var n,r,o,i,a,l,u,s,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?fN:d?fN[c]:(fN[c]||{}).prototype,g=f?$N:$N[c]||KI($N,c,{})[c],v=g.prototype;for(o in t)n=!MI(f?o:c+(d?".":"#")+o,e.forced)&&h&&dI(h,o),a=g[o],n&&(l=e.noTargetGet?(s=GI(h,o))&&s.value:h[o]),i=n&&l?l:t[o],n&&typeof a==typeof i||(u=e.bind&&n?zI(i,fN):e.wrap&&n?YI(i):p&&CN(i)?xN(i):i,(e.sham||i&&i.sham||a&&a.sham)&&KI(u,"sham",!0),KI(g,o,u),p&&(dI($N,r=c+"Prototype")||KI($N,r,{}),KI($N[r],o,i),e.real&&v&&!v[o]&&KI(v,o,i)))},ZI=Array.isArray||function(e){return"Array"==TN(e)},XI=Math.ceil,QI=Math.floor,eL=function(e){var t=+e;return t!=t||0===t?0:(t>0?QI:XI)(t)},tL=Math.min,nL=function(e){return(t=e.length)>0?tL(eL(t),9007199254740991):0;var t},rL=function(e,t,n){var r=kI(t);r in e?qI.f(e,r,FN(0,n)):e[r]=n},oL={};oL[xI("toStringTag")]="z";var iL="[object z]"===String(oL),aL=xI("toStringTag"),lL=fN.Object,uL="Arguments"==TN(function(){return arguments}()),sL=iL?TN:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=lL(e),aL))?n:uL?TN(t):"Object"==(r=TN(t))&&CN(t.callee)?"Arguments":r},cL=xN(Function.toString);CN(lI.inspectSource)||(lI.inspectSource=function(e){return cL(e)});var fL=lI.inspectSource,dL=function(){},pL=[],hL=HN("Reflect","construct"),gL=/^\s*(?:class|function)\b/,vL=xN(gL.exec),mL=!gL.exec(dL),yL=function(e){if(!CN(e))return!1;try{return hL(dL,pL,e),!0}catch(e){return!1}},bL=!hL||EN((function(){var e;return yL(yL.call)||!yL(Object)||!yL((function(){e=!0}))||e}))?function(e){if(!CN(e))return!1;switch(sL(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return mL||!!vL(gL,fL(e))}:yL,wL=xI("species"),xL=fN.Array,CL=function(e,t){return new(function(e){var t;return ZI(e)&&(t=e.constructor,(bL(t)&&(t===xL||ZI(t.prototype))||VN(t)&&null===(t=t[wL]))&&(t=void 0)),void 0===t?xL:t}(e))(0===t?0:t)},EL=xI("species"),SL=xI("isConcatSpreadable"),kL=fN.TypeError,DL=ZN>=51||!EN((function(){var e=[];return e[SL]=!1,e.concat()[0]!==e})),AL=function(e){return ZN>=51||!EN((function(){var t=[];return(t.constructor={})[EL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("concat"),OL=function(e){if(!VN(e))return!1;var t=e[SL];return void 0!==t?!!t:ZI(e)};JI({target:"Array",proto:!0,forced:!DL||!AL},{concat:function(e){var t,n,r,o,i,a=cI(this),l=CL(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(OL(i=-1===t?a:arguments[t])){if(u+(o=nL(i))>9007199254740991)throw kL("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&rL(l,u,i[n])}else{if(u>=9007199254740991)throw kL("Maximum allowed index exceeded");rL(l,u++,i)}return l.length=u,l}});var _L,BL=fN.String,FL=function(e){if("Symbol"===sL(e))throw TypeError("Cannot convert a Symbol value to a string");return BL(e)},jL=Math.max,PL=Math.min,TL=function(e,t){var n=eL(e);return n<0?jL(n+t,0):PL(n,t)},NL=function(e){return function(t,n,r){var o,i=zN(t),a=nL(i),l=TL(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},IL={includes:NL(!0),indexOf:NL(!1)},LL={},ML=IL.indexOf,RL=xN([].push),zL=function(e,t){var n,r=zN(e),o=0,i=[];for(n in r)!dI(LL,n)&&dI(r,n)&&RL(i,n);for(;t.length>o;)dI(r,n=t[o++])&&(~ML(i,n)||RL(i,n));return i},VL=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$L=Object.keys||function(e){return zL(e,VL)},UL=SN?Object.defineProperties:function(e,t){UI(e);for(var n,r=zN(t),o=$L(t),i=o.length,a=0;i>a;)qI.f(e,n=o[a++],r[n]);return e},HL=HN("document","documentElement"),WL=uI("keys"),qL=function(e){return WL[e]||(WL[e]=vI(e))},KL=qL("IE_PROTO"),GL=function(){},YL=function(e){return"<script>"+e+"<\/script>"},JL=function(e){e.write(YL("")),e.close();var t=e.parentWindow.Object;return e=null,t},ZL=function(){try{_L=new ActiveXObject("htmlfile")}catch(e){}var e,t;ZL="undefined"!=typeof document?document.domain&&_L?JL(_L):((t=OI("iframe")).style.display="none",HL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(YL("document.F=Object")),e.close(),e.F):JL(_L);for(var n=VL.length;n--;)delete ZL.prototype[VL[n]];return ZL()};LL[KL]=!0;var XL,QL,eM,tM=Object.create||function(e,t){var n;return null!==e?(GL.prototype=UI(e),n=new GL,GL.prototype=null,n[KL]=e):n=ZL(),void 0===t?n:UL(n,t)},nM=VL.concat("length","prototype"),rM={f:Object.getOwnPropertyNames||function(e){return zL(e,nM)}},oM=fN.Array,iM=Math.max,aM=rM.f,lM="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uM=function(e){try{return aM(e)}catch(e){return function(e,t,n){for(var r=nL(e),o=TL(t,r),i=TL(void 0===n?r:n,r),a=oM(iM(i-o,0)),l=0;o<i;o++,l++)rL(a,l,e[o]);return a.length=l,a}(lM)}},sM={f:function(e){return lM&&"Window"==TN(e)?uM(e):aM(zN(e))}},cM={f:Object.getOwnPropertySymbols},fM=xN([].slice),dM=function(e,t,n,r){r&&r.enumerable?e[t]=n:KI(e,t,n)},pM={f:xI},hM=qI.f,gM=function(e){var t=$N.Symbol||($N.Symbol={});dI(t,e)||hM(t,e,{value:pM.f(e)})},vM=iL?{}.toString:function(){return"[object "+sL(this)+"]"},mM=qI.f,yM=xI("toStringTag"),bM=function(e,t,n,r){if(e){var o=n?e:e.prototype;dI(o,yM)||mM(o,yM,{configurable:!0,value:t}),r&&!iL&&KI(o,"toString",vM)}},wM=fN.WeakMap,xM=CN(wM)&&/native code/.test(fL(wM)),CM=fN.TypeError,EM=fN.WeakMap;if(xM||lI.state){var SM=lI.state||(lI.state=new EM),kM=xN(SM.get),DM=xN(SM.has),AM=xN(SM.set);XL=function(e,t){if(DM(SM,e))throw new CM("Object already initialized");return t.facade=e,AM(SM,e,t),t},QL=function(e){return kM(SM,e)||{}},eM=function(e){return DM(SM,e)}}else{var OM=qL("state");LL[OM]=!0,XL=function(e,t){if(dI(e,OM))throw new CM("Object already initialized");return t.facade=e,KI(e,OM,t),t},QL=function(e){return dI(e,OM)?e[OM]:{}},eM=function(e){return dI(e,OM)}}var _M={set:XL,get:QL,has:eM,enforce:function(e){return eM(e)?QL(e):XL(e,{})},getterFor:function(e){return function(t){var n;if(!VN(t)||(n=QL(t)).type!==e)throw CM("Incompatible receiver, "+e+" required");return n}}},BM=xN([].push),FM=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=cI(u),g=LN(h),v=zI(s,c),m=nL(g),y=0,b=f||CL,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:BM(w,d)}else switch(e){case 4:return!1;case 7:BM(w,d)}return i?-1:r||o?o:w}},jM={forEach:FM(0),map:FM(1),filter:FM(2),some:FM(3),every:FM(4),find:FM(5),findIndex:FM(6),filterReject:FM(7)}.forEach,PM=qL("hidden"),TM=xI("toPrimitive"),NM=_M.set,IM=_M.getterFor("Symbol"),LM=Object.prototype,MM=fN.Symbol,RM=MM&&MM.prototype,zM=fN.TypeError,VM=fN.QObject,$M=HN("JSON","stringify"),UM=FI.f,HM=qI.f,WM=sM.f,qM=BN.f,KM=xN([].push),GM=uI("symbols"),YM=uI("op-symbols"),JM=uI("string-to-symbol-registry"),ZM=uI("symbol-to-string-registry"),XM=uI("wks"),QM=!VM||!VM.prototype||!VM.prototype.findChild,eR=SN&&EN((function(){return 7!=tM(HM({},"a",{get:function(){return HM(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=UM(LM,t);r&&delete LM[t],HM(e,t,n),r&&e!==LM&&HM(LM,t,r)}:HM,tR=function(e,t){var n=GM[e]=tM(RM);return NM(n,{type:"Symbol",tag:e,description:t}),SN||(n.description=t),n},nR=function(e,t,n){e===LM&&nR(YM,t,n),UI(e);var r=kI(t);return UI(n),dI(GM,r)?(n.enumerable?(dI(e,PM)&&e[PM][r]&&(e[PM][r]=!1),n=tM(n,{enumerable:FN(0,!1)})):(dI(e,PM)||HM(e,PM,FN(1,{})),e[PM][r]=!0),eR(e,r,n)):HM(e,r,n)},rR=function(e,t){UI(e);var n=zN(t),r=$L(n).concat(lR(n));return jM(r,(function(t){SN&&!DN(oR,n,t)||nR(e,t,n[t])})),e},oR=function(e){var t=kI(e),n=DN(qM,this,t);return!(this===LM&&dI(GM,t)&&!dI(YM,t))&&(!(n||!dI(this,t)||!dI(GM,t)||dI(this,PM)&&this[PM][t])||n)},iR=function(e,t){var n=zN(e),r=kI(t);if(n!==LM||!dI(GM,r)||dI(YM,r)){var o=UM(n,r);return!o||!dI(GM,r)||dI(n,PM)&&n[PM][r]||(o.enumerable=!0),o}},aR=function(e){var t=WM(zN(e)),n=[];return jM(t,(function(e){dI(GM,e)||dI(LL,e)||KM(n,e)})),n},lR=function(e){var t=e===LM,n=WM(t?YM:zN(e)),r=[];return jM(n,(function(e){!dI(GM,e)||t&&!dI(LM,e)||KM(r,GM[e])})),r};if(XN||(RM=(MM=function(){if(WN(RM,this))throw zM("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?FL(arguments[0]):void 0,t=vI(e),n=function(e){this===LM&&DN(n,YM,e),dI(this,PM)&&dI(this[PM],t)&&(this[PM][t]=!1),eR(this,t,FN(1,e))};return SN&&QM&&eR(LM,t,{configurable:!0,set:n}),tR(t,e)}).prototype,dM(RM,"toString",(function(){return IM(this).tag})),dM(MM,"withoutSetter",(function(e){return tR(vI(e),e)})),BN.f=oR,qI.f=nR,FI.f=iR,rM.f=sM.f=aR,cM.f=lR,pM.f=function(e){return tR(xI(e),e)},SN&&HM(RM,"description",{configurable:!0,get:function(){return IM(this).description}})),JI({global:!0,wrap:!0,forced:!XN,sham:!XN},{Symbol:MM}),jM($L(XM),(function(e){gM(e)})),JI({target:"Symbol",stat:!0,forced:!XN},{for:function(e){var t=FL(e);if(dI(JM,t))return JM[t];var n=MM(t);return JM[t]=n,ZM[n]=t,n},keyFor:function(e){if(!tI(e))throw zM(e+" is not a symbol");if(dI(ZM,e))return ZM[e]},useSetter:function(){QM=!0},useSimple:function(){QM=!1}}),JI({target:"Object",stat:!0,forced:!XN,sham:!SN},{create:function(e,t){return void 0===t?tM(e):rR(tM(e),t)},defineProperty:nR,defineProperties:rR,getOwnPropertyDescriptor:iR}),JI({target:"Object",stat:!0,forced:!XN},{getOwnPropertyNames:aR,getOwnPropertySymbols:lR}),JI({target:"Object",stat:!0,forced:EN((function(){cM.f(1)}))},{getOwnPropertySymbols:function(e){return cM.f(cI(e))}}),$M){var uR=!XN||EN((function(){var e=MM();return"[null]"!=$M([e])||"{}"!=$M({a:e})||"{}"!=$M(Object(e))}));JI({target:"JSON",stat:!0,forced:uR},{stringify:function(e,t,n){var r=fM(arguments),o=t;if((VN(t)||void 0!==e)&&!tI(e))return ZI(t)||(t=function(e,t){if(CN(o)&&(t=DN(o,this,e,t)),!tI(t))return t}),r[1]=t,vN($M,null,r)}})}if(!RM[TM]){var sR=RM.valueOf;dM(RM,TM,(function(e){return DN(sR,this)}))}bM(MM,"Symbol"),LL[PM]=!0,gM("asyncIterator"),gM("hasInstance"),gM("isConcatSpreadable"),gM("iterator"),gM("match"),gM("matchAll"),gM("replace"),gM("search"),gM("species"),gM("split"),gM("toPrimitive"),gM("toStringTag"),gM("unscopables"),bM(fN.JSON,"JSON",!0);var cR,fR,dR,pR=$N.Symbol,hR={},gR=Function.prototype,vR=SN&&Object.getOwnPropertyDescriptor,mR=dI(gR,"name"),yR={EXISTS:mR,PROPER:mR&&"something"===function(){}.name,CONFIGURABLE:mR&&(!SN||SN&&vR(gR,"name").configurable)},bR=!EN((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),wR=qL("IE_PROTO"),xR=fN.Object,CR=xR.prototype,ER=bR?xR.getPrototypeOf:function(e){var t=cI(e);if(dI(t,wR))return t[wR];var n=t.constructor;return CN(n)&&t instanceof n?n.prototype:t instanceof xR?CR:null},SR=xI("iterator"),kR=!1;[].keys&&("next"in(dR=[].keys())?(fR=ER(ER(dR)))!==Object.prototype&&(cR=fR):kR=!0);var DR=null==cR||EN((function(){var e={};return cR[SR].call(e)!==e}));cR=DR?{}:tM(cR),CN(cR[SR])||dM(cR,SR,(function(){return this}));var AR={IteratorPrototype:cR,BUGGY_SAFARI_ITERATORS:kR},OR=AR.IteratorPrototype,_R=function(){return this};fN.String,fN.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{xN(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(f){}}();var BR=yR.PROPER,FR=AR.BUGGY_SAFARI_ITERATORS,jR=xI("iterator"),PR=function(){return this},TR=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=tM(OR,{next:FN(+!r,n)}),bM(e,o,!1,!0),hR[o]=_R}(n,t,r);var l,u,s,c=function(e){if(e===o&&g)return g;if(!FR&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[jR]||p["@@iterator"]||o&&p[o],g=!FR&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(l=ER(v.call(new e)))!==Object.prototype&&l.next&&(bM(l,f,!0,!0),hR[f]=PR),BR&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return DN(h,this)}),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(s in u)(FR||d||!(s in p))&&dM(p,s,u[s]);else JI({target:t,proto:!0,forced:FR||d},u);return a&&p[jR]!==g&&dM(p,jR,g,{name:o}),hR[t]=g,u},NR=_M.set,IR=_M.getterFor("Array Iterator");TR(Array,"Array",(function(e,t){NR(this,{type:"Array Iterator",target:zN(e),index:0,kind:t})}),(function(){var e=IR(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),hR.Arguments=hR.Array;var LR=xI("toStringTag");for(var MR 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 RR=fN[MR],zR=RR&&RR.prototype;zR&&sL(zR)!==LR&&KI(zR,LR,MR),hR[MR]=hR.Array}var VR=pR;gM("asyncDispose"),gM("dispose"),gM("matcher"),gM("metadata"),gM("observable"),gM("patternMatch"),gM("replaceAll");var $R=VR,UR=xN("".charAt),HR=xN("".charCodeAt),WR=xN("".slice),qR=function(e){return function(t,n){var r,o,i=FL(RN(t)),a=eL(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=HR(i,a))<55296||r>56319||a+1===l||(o=HR(i,a+1))<56320||o>57343?e?UR(i,a):r:e?WR(i,a,a+2):o-56320+(r-55296<<10)+65536}},KR={codeAt:qR(!1),charAt:qR(!0)}.charAt,GR=_M.set,YR=_M.getterFor("String Iterator");TR(String,"String",(function(e){GR(this,{type:"String Iterator",string:FL(e),index:0})}),(function(){var e,t=YR(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=KR(n,r),t.index+=e.length,{value:e,done:!1})}));var JR=pM.f("iterator"),ZR=HD((function(e){function t(n){return"function"==typeof $R&&"symbol"==typeof JR?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof $R&&e.constructor===$R&&e!==$R.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),XR=UD(ZR),QR=zO.EXISTS,ez=mO.f,tz=Function.prototype,nz=uA(tz.toString),rz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,oz=uA(rz.exec);JD&&!QR&&ez(tz,"name",{configurable:!0,get:function(){try{return oz(rz,nz(this))[1]}catch(f){return""}}});var iz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("fontFamily.title"),t.iconSvg=xj,t.mark="fontFamily",t.selectPanelWidth=150,t}return RF(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:LD("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===XR(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(uN),az={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&BP(i,{fontSize:r}),o&&BP(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Ft.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((PF(t)||"span"!==NF(n=uo(t)))&&(n=uo("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),TF(n)):t},preParseHtml:[oN],parseStyleHtml:function(e,t,n){var r=uo(e);if(!Ft.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,l=IF(r,"font-size");l&&a.includes(l)&&(o.fontSize=l);var u=n.getMenuConfig("fontFamily").fontFamilyList,s=void 0===u?[]:u,c=IF(r,"font-family"),f=s.find((function(e){return e.value&&e.value===c}))||s.includes(c);return c&&f&&(o.fontFamily=c),o},menus:[{key:"fontSize",factory:function(){return new sN},config:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new iz},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},lz={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=uo(e),n=IF(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},uz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=HF(it.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":HF(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=HF(it.nodes(e,{match:function(e){var t=Tw.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),sz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("indent.decrease"),t.iconSvg=Cj,t}return RF(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Jt.setNodes(e,{indent:null},{match:function(e){return Qe.isElement(e)}})},t}(uz),cz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("indent.increase"),t.iconSvg=Ej,t}return RF(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Jt.setNodes(e,{indent:"2em"},{match:function(e){return Qe.isElement(e)},mode:"highest"})},t}(uz),fz={renderStyle:function(e,t){if(!Qe.isElement(e))return t;var n=e.indent,r=t;return n&&BP(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Qe.isElement(e))return t;var n=e.indent;if(!n)return t;var r=uo(t);return r.css("text-indent",n),TF(r)},preParseHtml:[lz],parseStyleHtml:function(e,t,n){var r=uo(e);if(!Qe.isElement(t))return t;var o=t,i=IF(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new cz}},{key:"delIndent",factory:function(){return new sz}}]},dz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=HF(it.nodes(e,{match:function(e){var t=Tw.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!Tw.getSelectedElems(e).some((function(t){if(it.isVoid(e,t)&&it.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("justify.left"),t.iconSvg=Sj,t}return RF(t,e),t.prototype.exec=function(e,t){Jt.setNodes(e,{textAlign:"left"},{match:function(t){return Qe.isElement(t)&&!e.isInline(t)}})},t}(dz),hz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("justify.right"),t.iconSvg=kj,t}return RF(t,e),t.prototype.exec=function(e,t){Jt.setNodes(e,{textAlign:"right"},{match:function(t){return Qe.isElement(t)&&!e.isInline(t)}})},t}(dz),gz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("justify.center"),t.iconSvg=Dj,t}return RF(t,e),t.prototype.exec=function(e,t){Jt.setNodes(e,{textAlign:"center"},{match:function(t){return Qe.isElement(t)&&!e.isInline(t)}})},t}(dz),vz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=LD("justify.justify"),t.iconSvg=Aj,t}return RF(t,e),t.prototype.exec=function(e,t){Jt.setNodes(e,{textAlign:"justify"},{match:function(t){return Qe.isElement(t)&&!e.isInline(t)}})},t}(dz),mz={renderStyle:function(e,t){if(!Qe.isElement(e))return t;var n=e.textAlign,r=t;return n&&BP(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Qe.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=uo(t);return r.css("text-align",n),TF(r)},parseStyleHtml:function(e,t,n){var r=uo(e);if(!Qe.isElement(t))return t;var o=t,i=IF(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new pz}},{key:"justifyRight",factory:function(){return new hz}},{key:"justifyCenter",factory:function(){return new gz}},{key:"justifyJustify",factory:function(){return new vz}}]},yz=function(){function e(){this.title=LD("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:LD("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=HF(it.nodes(e,{match:function(e){var t=Tw.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","bulleted-list","numbered-list"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Qe.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Jt.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),bz={renderStyle:function(e,t){if(!Qe.isElement(e))return t;var n=e.lineHeight,r=t;return n&&BP(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Qe.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=uo(t);return r.css("line-height",n),TF(r)},parseStyleHtml:function(e,t,n){var r=uo(e);if(!Qe.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,l=IF(r,"line-height");return l&&a.includes(l)&&(o.lineHeight=l),o},menus:[{key:"lineHeight",factory:function(){return new yz},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},wz=function(){function e(){this.title=LD("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),xz=function(){function e(){this.title=LD("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),Cz={menus:[{key:"redo",factory:function(){return new wz}},{key:"undo",factory:function(){return new xz}}]},Ez={type:"divider",renderElem:function(e,t,n){var r=Tw.isNodeSelected(n,e);return wa("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[wa("hr")])}},Sz={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},kz={selector:"hr",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},Dz=function(){function e(){this.title=LD("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!Tw.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=Tw.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Jt.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),Az={renderElems:[Ez],elemsToHtml:[Sz],parseElemsHtml:[kz],menus:[{key:"divider",factory:function(){return new Dz}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=HF(e,2),o=t[0],i=t[1];if("divider"!==Tw.getNodeType(o))return n([o,i]);Tw.isLastNode(r,o)&&Jt.insertNodes(r,Tw.genEmptyParagraph(),{at:[i[0]+1]})},r}},Oz=R_.map;m_({target:"Array",proto:!0,forced:!V_("map")},{map:function(e){return Oz(this,e,arguments.length>1?arguments[1]:void 0)}});var _z=uA([].join),Bz=hA!=Object,Fz=rj("join",",");m_({target:"Array",proto:!0,forced:Bz||!Fz},{join:function(e){return _z(mA(this),void 0===e?",":e)}});var jz=function(){function e(){this.title=LD("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=Tw.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Tw.getParentNode(e,t);return null==n||"pre"!==Tw.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=Tw.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=Tw.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=ft.string(t);Jt.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Jt.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=it.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=UF(i),l=a.next();!l.done;l=a.next()){var u=HF(l.value,1)[0];u&&o.push(ft.string(u))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Jt.removeNodes(e,{mode:"highest"});var s={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Jt.insertNodes(e,s,{mode:"highest"})},e}(),Pz={key:"codeBlock",factory:function(){return new jz}};m_({target:"String",proto:!0,forced:JF("anchor")},{anchor:function(e){return YF(this,"a","name",e)}}),jB("match",(function(e,t,n){return[function(t){var n=vA(this),r=null==t?void 0:LA(t,e);return r?XD(r,t,n):new RegExp(t)[e](q_(n))},function(e){var r=hO(this),o=q_(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return KB(r,o);var a=r.unicode;r.lastIndex=0;for(var l,u=[],s=0;null!==(l=KB(r,o));){var c=q_(l[0]);u[s]=c,""===c&&(r.lastIndex=MB(o,YO(r.lastIndex),a)),s++}return 0===s?null:u}]}));var Tz={type:"pre",renderElem:function(e,t,n){return Ua("pre",null,t)}},Nz={type:"code",renderElem:function(e,t,n){return Ua("code",null,t)}},Iz={selector:"pre",parseElemHtml:function(e,t,n){var r=uo(e);return 0===(t=t.filter((function(e){return"code"===Tw.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===Tw.getNodeType(e)}))}}},Lz={menus:[Pz],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=Tw.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=ft.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=HF(e,2),r=t[0],i=t[1],a=Tw.getNodeType(r);return"code"===a&&i.length<=1&&Jt.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(Tw.isLastNode(o,r)&&Jt.insertNodes(o,Tw.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==Tw.getNodeType(r.children[0])&&(Jt.unwrapNodes(o),Jt.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=Tw.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");it.insertText(o,t)}else r(e)},o},renderElems:[Tz,Nz],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=uo(e);if("code"!==NF(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:uo(e)[0].textContent||""}]}}},Iz]},Mz=function(){function e(){this.title=LD("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),Rz={menus:[{key:"fullScreen",factory:function(){return new Mz}}]},zz=function(){function e(){this.title=LD("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!St.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Jt.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(it.start(e,r))}},e}(),Vz=[Mj,IP,az,fz,mz,bz,RT,Az,nN,iT,Lz,eN,kP,qF,UT,Cz,Rz,{menus:[{key:"enter",factory:function(){return new zz}}]}];TD("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),TD("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var $z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Uz(e){var t={exports:{}};return e(t,t.exports),t.exports}var Hz,Wz,qz=function(e){return e&&e.Math==Math&&e},Kz=qz("object"==typeof globalThis&&globalThis)||qz("object"==typeof window&&window)||qz("object"==typeof self&&self)||qz("object"==typeof $z&&$z)||function(){return this}()||Function("return this")(),Gz=function(e){try{return!!e()}catch(e){return!0}},Yz=!Gz((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Jz=Function.prototype.call,Zz=Jz.bind?Jz.bind(Jz):function(){return Jz.apply(Jz,arguments)},Xz={}.propertyIsEnumerable,Qz=Object.getOwnPropertyDescriptor,eV={f:Qz&&!Xz.call({1:2},1)?function(e){var t=Qz(this,e);return!!t&&t.enumerable}:Xz},tV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},nV=Function.prototype,rV=nV.bind,oV=nV.call,iV=rV&&rV.bind(oV),aV=rV?function(e){return e&&iV(oV,e)}:function(e){return e&&function(){return oV.apply(e,arguments)}},lV=aV({}.toString),uV=aV("".slice),sV=function(e){return uV(lV(e),8,-1)},cV=Kz.Object,fV=aV("".split),dV=Gz((function(){return!cV("z").propertyIsEnumerable(0)}))?function(e){return"String"==sV(e)?fV(e,""):cV(e)}:cV,pV=Kz.TypeError,hV=function(e){if(null==e)throw pV("Can't call method on "+e);return e},gV=function(e){return dV(hV(e))},vV=function(e){return"function"==typeof e},mV=function(e){return"object"==typeof e?null!==e:vV(e)},yV=function(e){return vV(e)?e:void 0},bV=function(e,t){return arguments.length<2?yV(Kz[e]):Kz[e]&&Kz[e][t]},wV=aV({}.isPrototypeOf),xV=bV("navigator","userAgent")||"",CV=Kz.process,EV=Kz.Deno,SV=CV&&CV.versions||EV&&EV.version,kV=SV&&SV.v8;kV&&(Wz=(Hz=kV.split("."))[0]>0&&Hz[0]<4?1:+(Hz[0]+Hz[1])),!Wz&&xV&&(!(Hz=xV.match(/Edge\/(\d+)/))||Hz[1]>=74)&&(Hz=xV.match(/Chrome\/(\d+)/))&&(Wz=+Hz[1]);var DV=Wz,AV=!!Object.getOwnPropertySymbols&&!Gz((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&DV&&DV<41})),OV=AV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_V=Kz.Object,BV=OV?function(e){return"symbol"==typeof e}:function(e){var t=bV("Symbol");return vV(t)&&wV(t.prototype,_V(e))},FV=Kz.String,jV=Kz.TypeError,PV=function(e){if(vV(e))return e;throw jV(function(e){try{return FV(e)}catch(e){return"Object"}}(e)+" is not a function")},TV=function(e,t){var n=e[t];return null==n?void 0:PV(n)},NV=Kz.TypeError,IV=Object.defineProperty,LV=function(e,t){try{IV(Kz,e,{value:t,configurable:!0,writable:!0})}catch(d){Kz[e]=t}return t},MV=Kz["__core-js_shared__"]||LV("__core-js_shared__",{}),RV=Uz((function(e){(e.exports=function(e,t){return MV[e]||(MV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),zV=Kz.Object,VV=function(e){return zV(hV(e))},$V=aV({}.hasOwnProperty),UV=Object.hasOwn||function(e,t){return $V(VV(e),t)},HV=0,WV=Math.random(),qV=aV(1..toString),KV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+qV(++HV+WV,36)},GV=RV("wks"),YV=Kz.Symbol,JV=YV&&YV.for,ZV=OV?YV:YV&&YV.withoutSetter||KV,XV=function(e){if(!UV(GV,e)||!AV&&"string"!=typeof GV[e]){var t="Symbol."+e;AV&&UV(YV,e)?GV[e]=YV[e]:GV[e]=OV&&JV?JV(t):ZV(t)}return GV[e]},QV=Kz.TypeError,e$=XV("toPrimitive"),t$=function(e,t){if(!mV(e)||BV(e))return e;var n,r=TV(e,e$);if(r){if(void 0===t&&(t="default"),n=Zz(r,e,t),!mV(n)||BV(n))return n;throw QV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&vV(n=e.toString)&&!mV(r=Zz(n,e)))return r;if(vV(n=e.valueOf)&&!mV(r=Zz(n,e)))return r;if("string"!==t&&vV(n=e.toString)&&!mV(r=Zz(n,e)))return r;throw NV("Can't convert object to primitive value")}(e,t)},n$=function(e){var t=t$(e,"string");return BV(t)?t:t+""},r$=Kz.document,o$=mV(r$)&&mV(r$.createElement),i$=function(e){return o$?r$.createElement(e):{}},a$=!Yz&&!Gz((function(){return 7!=Object.defineProperty(i$("div"),"a",{get:function(){return 7}}).a})),l$=Object.getOwnPropertyDescriptor,u$={f:Yz?l$:function(e,t){if(e=gV(e),t=n$(t),a$)try{return l$(e,t)}catch(e){}if(UV(e,t))return tV(!Zz(eV.f,e,t),e[t])}},s$=Kz.String,c$=Kz.TypeError,f$=function(e){if(mV(e))return e;throw c$(s$(e)+" is not an object")},d$=Kz.TypeError,p$=Object.defineProperty,h$={f:Yz?p$:function(e,t,n){if(f$(e),t=n$(t),f$(n),a$)try{return p$(e,t,n)}catch(e){}if("get"in n||"set"in n)throw d$("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},g$=Yz?function(e,t,n){return h$.f(e,t,tV(1,n))}:function(e,t,n){return e[t]=n,e},v$=aV(Function.toString);vV(MV.inspectSource)||(MV.inspectSource=function(e){return v$(e)});var m$,y$,b$,w$=MV.inspectSource,x$=Kz.WeakMap,C$=vV(x$)&&/native code/.test(w$(x$)),E$=RV("keys"),S$=function(e){return E$[e]||(E$[e]=KV(e))},k$={},D$=Kz.TypeError,A$=Kz.WeakMap;if(C$||MV.state){var O$=MV.state||(MV.state=new A$),_$=aV(O$.get),B$=aV(O$.has),F$=aV(O$.set);m$=function(e,t){if(B$(O$,e))throw new D$("Object already initialized");return t.facade=e,F$(O$,e,t),t},y$=function(e){return _$(O$,e)||{}},b$=function(e){return B$(O$,e)}}else{var j$=S$("state");k$[j$]=!0,m$=function(e,t){if(UV(e,j$))throw new D$("Object already initialized");return t.facade=e,g$(e,j$,t),t},y$=function(e){return UV(e,j$)?e[j$]:{}},b$=function(e){return UV(e,j$)}}var P$,T$={set:m$,get:y$,has:b$,enforce:function(e){return b$(e)?y$(e):m$(e,{})},getterFor:function(e){return function(t){var n;if(!mV(t)||(n=y$(t)).type!==e)throw D$("Incompatible receiver, "+e+" required");return n}}},N$=Function.prototype,I$=Yz&&Object.getOwnPropertyDescriptor,L$=UV(N$,"name"),M$={EXISTS:L$,PROPER:L$&&"something"===function(){}.name,CONFIGURABLE:L$&&(!Yz||Yz&&I$(N$,"name").configurable)},R$=Uz((function(e){var t=M$.CONFIGURABLE,n=T$.get,r=T$.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;vV(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!UV(i,"name")||t&&i.name!==f)&&g$(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==Kz?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:g$(e,n,i)):s?e[n]=i:LV(n,i)})(Function.prototype,"toString",(function(){return vV(this)&&n(this).source||w$(this)}))})),z$=Math.ceil,V$=Math.floor,$$=function(e){var t=+e;return t!=t||0===t?0:(t>0?V$:z$)(t)},U$=Math.max,H$=Math.min,W$=Math.min,q$=function(e){return e>0?W$($$(e),9007199254740991):0},K$=function(e){return q$(e.length)},G$=function(e){return function(t,n,r){var o,i=gV(t),a=K$(i),l=function(e,t){var n=$$(e);return n<0?U$(n+t,0):H$(n,t)}(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},Y$={includes:G$(!0),indexOf:G$(!1)},J$=Y$.indexOf,Z$=aV([].push),X$=function(e,t){var n,r=gV(e),o=0,i=[];for(n in r)!UV(k$,n)&&UV(r,n)&&Z$(i,n);for(;t.length>o;)UV(r,n=t[o++])&&(~J$(i,n)||Z$(i,n));return i},Q$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eU=Q$.concat("length","prototype"),tU={f:Object.getOwnPropertyNames||function(e){return X$(e,eU)}},nU={f:Object.getOwnPropertySymbols},rU=aV([].concat),oU=bV("Reflect","ownKeys")||function(e){var t=tU.f(f$(e)),n=nU.f;return n?rU(t,n(e)):t},iU=function(e,t){for(var n=oU(t),r=h$.f,o=u$.f,i=0;i<n.length;i++){var a=n[i];UV(e,a)||r(e,a,o(t,a))}},aU=/#|\.prototype\./,lU=function(e,t){var n=sU[uU(e)];return n==fU||n!=cU&&(vV(t)?Gz(t):!!t)},uU=lU.normalize=function(e){return String(e).replace(aU,".").toLowerCase()},sU=lU.data={},cU=lU.NATIVE="N",fU=lU.POLYFILL="P",dU=lU,pU=u$.f,hU=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?Kz:s?Kz[l]||LV(l,{}):(Kz[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=pU(n,r))&&a.value:n[r],!dU(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;iU(i,o)}(e.sham||o&&o.sham)&&g$(i,"sham",!0),R$(n,r,i,e)}},gU=Object.keys||function(e){return X$(e,Q$)},vU=Yz?Object.defineProperties:function(e,t){f$(e);for(var n,r=gV(t),o=gU(t),i=o.length,a=0;i>a;)h$.f(e,n=o[a++],r[n]);return e},mU=bV("document","documentElement"),yU=S$("IE_PROTO"),bU=function(){},wU=function(e){return"<script>"+e+"<\/script>"},xU=function(e){e.write(wU("")),e.close();var t=e.parentWindow.Object;return e=null,t},CU=function(){try{P$=new ActiveXObject("htmlfile")}catch(e){}var e,t;CU="undefined"!=typeof document?document.domain&&P$?xU(P$):((t=i$("iframe")).style.display="none",mU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wU("document.F=Object")),e.close(),e.F):xU(P$);for(var n=Q$.length;n--;)delete CU.prototype[Q$[n]];return CU()};k$[yU]=!0;var EU=Object.create||function(e,t){var n;return null!==e?(bU.prototype=f$(e),n=new bU,bU.prototype=null,n[yU]=e):n=CU(),void 0===t?n:vU(n,t)},SU=XV("unscopables"),kU=Array.prototype;null==kU[SU]&&h$.f(kU,SU,{configurable:!0,value:EU(null)});var DU,AU=Y$.includes;function OU(e){if("bulleted-list"===e)return"ul";if("numbered-list"===e)return"ol";if("list-item"===e)return"li";throw new Error("list type '"+e+"' is invalid")}function _U(e){var t=Tw.getNodeType(e);return["bulleted-list","numbered-list"].includes(t)}function BU(e){return function(t,n,r){var o=OU(e);return Ua(o,null,n)}}hU({target:"Array",proto:!0},{includes:function(e){return AU(this,e,arguments.length>1?arguments[1]:void 0)}}),DU="includes",kU[SU][DU]=!0;var FU={type:"bulleted-list",renderElem:BU("bulleted-list")},jU={type:"numbered-list",renderElem:BU("numbered-list")},PU={type:"list-item",renderElem:BU("list-item")};function TU(e){var t=OU(e);return function(e,n){return"<"+t+">"+n+"</"+t+">"}}var NU={type:"bulleted-list",elemToHtml:TU("bulleted-list")},IU={type:"numbered-list",elemToHtml:TU("numbered-list")},LU={type:"list-item",elemToHtml:TU("list-item")},MU=aV(aV.bind),RU=Array.isArray||function(e){return"Array"==sV(e)},zU={};zU[XV("toStringTag")]="z";var VU="[object z]"===String(zU),$U=XV("toStringTag"),UU=Kz.Object,HU="Arguments"==sV(function(){return arguments}()),WU=VU?sV:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=UU(e),$U))?n:HU?sV(t):"Object"==(r=sV(t))&&vV(t.callee)?"Arguments":r},qU=function(){},KU=[],GU=bV("Reflect","construct"),YU=/^\s*(?:class|function)\b/,JU=aV(YU.exec),ZU=!YU.exec(qU),XU=function(e){if(!vV(e))return!1;try{return GU(qU,KU,e),!0}catch(e){return!1}},QU=!GU||Gz((function(){var e;return XU(XU.call)||!XU(Object)||!XU((function(){e=!0}))||e}))?function(e){if(!vV(e))return!1;switch(WU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ZU||!!JU(YU,w$(e))}:XU,eH=XV("species"),tH=Kz.Array,nH=function(e,t){return new(function(e){var t;return RU(e)&&(t=e.constructor,(QU(t)&&(t===tH||RU(t.prototype))||mV(t)&&null===(t=t[eH]))&&(t=void 0)),void 0===t?tH:t}(e))(0===t?0:t)},rH=aV([].push),oH=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=VV(u),g=dV(h),v=function(e,t){return PV(e),void 0===t?e:MU?MU(e,t):function(){return e.apply(t,arguments)}}(s,c),m=K$(g),y=0,b=f||nH,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:rH(w,d)}else switch(e){case 4:return!1;case 7:rH(w,d)}return i?-1:r||o?o:w}},iH={forEach:oH(0),map:oH(1),filter:oH(2),some:oH(3),every:oH(4),find:oH(5),findIndex:oH(6),filterReject:oH(7)},aH=XV("species"),lH=function(e){return DV>=51||!Gz((function(){var t=[];return(t.constructor={})[aH]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},uH=iH.filter;hU({target:"Array",proto:!0,forced:!lH("filter")},{filter:function(e){return uH(this,e,arguments.length>1?arguments[1]:void 0)}});var sH=VU?{}.toString:function(){return"[object "+WU(this)+"]"};VU||R$(Object.prototype,"toString",sH,{unsafe:!0});var cH,fH,dH=Kz.String,pH=function(e){if("Symbol"===WU(e))throw TypeError("Cannot convert a Symbol value to a string");return dH(e)},hH=function(){var e=f$(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},gH=Kz.RegExp,vH=Gz((function(){var e=gH("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),mH=vH||Gz((function(){return!gH("a","y").sticky})),yH={BROKEN_CARET:vH||Gz((function(){var e=gH("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:mH,UNSUPPORTED_Y:vH},bH=Kz.RegExp,wH=Gz((function(){var e=bH(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),xH=Kz.RegExp,CH=Gz((function(){var e=xH("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),EH=T$.get,SH=RV("native-string-replace",String.prototype.replace),kH=RegExp.prototype.exec,DH=kH,AH=aV("".charAt),OH=aV("".indexOf),_H=aV("".replace),BH=aV("".slice),FH=(fH=/b*/g,Zz(kH,cH=/a/,"a"),Zz(kH,fH,"a"),0!==cH.lastIndex||0!==fH.lastIndex),jH=yH.BROKEN_CARET,PH=void 0!==/()??/.exec("")[1];(FH||PH||jH||wH||CH)&&(DH=function(e){var t,n,r,o,i,a,l,u=this,s=EH(u),c=pH(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=Zz(DH,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=jH&&u.sticky,h=Zz(hH,u),g=u.source,v=0,m=c;if(p&&(h=_H(h,"y",""),-1===OH(h,"g")&&(h+="g"),m=BH(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==AH(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),PH&&(n=new RegExp("^"+g+"$(?!\\s)",h)),FH&&(r=u.lastIndex),o=Zz(kH,p?n:u,m),p?o?(o.input=BH(o.input,v),o[0]=BH(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:FH&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),PH&&o&&o.length>1&&Zz(SH,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=EU(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var TH=DH;hU({target:"RegExp",proto:!0,forced:/./.exec!==TH},{exec:TH});var NH=Function.prototype,IH=NH.apply,LH=NH.bind,MH=NH.call,RH="object"==typeof Reflect&&Reflect.apply||(LH?MH.bind(IH):function(){return MH.apply(IH,arguments)}),zH=XV("species"),VH=RegExp.prototype,$H=aV("".charAt),UH=aV("".charCodeAt),HH=aV("".slice),WH=function(e){return function(t,n){var r,o,i=pH(hV(t)),a=$$(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=UH(i,a))<55296||r>56319||a+1===l||(o=UH(i,a+1))<56320||o>57343?e?$H(i,a):r:e?HH(i,a,a+2):o-56320+(r-55296<<10)+65536}},qH={codeAt:WH(!1),charAt:WH(!0)}.charAt,KH=function(e,t,n){return t+(n?qH(e,t).length:1)},GH=Math.floor,YH=aV("".charAt),JH=aV("".replace),ZH=aV("".slice),XH=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,QH=/\$([$&'`]|\d{1,2})/g,eW=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=QH;return void 0!==o&&(o=VV(o),u=XH),JH(i,u,(function(i,u){var s;switch(YH(u,0)){case"$":return"$";case"&":return e;case"`":return ZH(t,0,n);case"'":return ZH(t,a);case"<":s=o[ZH(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=GH(c/10);return 0===f?i:f<=l?void 0===r[f-1]?YH(u,1):r[f-1]+YH(u,1):i}s=r[c-1]}return void 0===s?"":s}))},tW=Kz.TypeError,nW=function(e,t){var n=e.exec;if(vV(n)){var r=Zz(n,e,t);return null!==r&&f$(r),r}if("RegExp"===sV(e))return Zz(TH,e,t);throw tW("RegExp#exec called on incompatible receiver")},rW=XV("replace"),oW=Math.max,iW=Math.min,aW=aV([].concat),lW=aV([].push),uW=aV("".indexOf),sW=aV("".slice),cW="$0"==="a".replace(/./,"$0"),fW=!!/./[rW]&&""===/./[rW]("a","$0");!function(e,t,n,r){var o=XV(e),i=!Gz((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Gz((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[zH]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=aV(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=aV(e),u=t.exec;return u===TH||u===VH.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));R$(String.prototype,e,u[0]),R$(VH,o,u[1])}r&&g$(VH[o],"sham",!0)}("replace",(function(e,t,n){var r=fW?"$":"$0";return[function(e,n){var r=hV(this),o=null==e?void 0:TV(e,rW);return o?Zz(o,e,r,n):Zz(t,pH(r),e,n)},function(e,o){var i=f$(this),a=pH(e);if("string"==typeof o&&-1===uW(o,r)&&-1===uW(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=vV(o);u||(o=pH(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=nW(i,a);if(null===d)break;if(lW(f,d),!s)break;""===pH(d[0])&&(i.lastIndex=KH(a,q$(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=pH((d=f[v])[0]),y=oW(iW($$(d.index),a.length),0),b=[],w=1;w<d.length;w++)lW(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=aW([m],b,y,a);void 0!==x&&lW(C,x);var E=pH(RH(o,void 0,C))}else E=eW(m,a,y,b,x,o);y>=g&&(h+=sW(a,g,y)+E,g=y+m.length)}return h+sW(a,g)}]}),!!Gz((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!cW||fW),hU({global:!0},{globalThis:Kz});var dW={selector:"li",parseElemHtml:function(e,t,n){var r=uo(e);return 0===(t=t.filter((function(e){return!!Ft.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",children:t}}},pW={selector:"ul",parseElemHtml:function(e,t,n){return{type:"bulleted-list",children:t.filter((function(e){return"list-item"===Tw.getNodeType(e)}))}}},hW={selector:"ol",parseElemHtml:function(e,t,n){return{type:"numbered-list",children:t.filter((function(e){return"list-item"===Tw.getNodeType(e)}))}}},gW=function(e,t){return gW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},gW(e,t)
54
- /*! *****************************************************************************
55
- Copyright (c) Microsoft Corporation.
56
-
57
- Permission to use, copy, modify, and/or distribute this software for any
58
- purpose with or without fee is hereby granted.
59
-
60
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
61
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
62
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
63
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
64
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
65
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
66
- PERFORMANCE OF THIS SOFTWARE.
67
- ***************************************************************************** */};function vW(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}gW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function mW(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var yW,bW=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return Tw.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!this.getListNode(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!Tw.getSelectedElems(e).some((function(t){if(it.isVoid(e,t)&&it.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.getMatchListType=function(e){var t=mW(it.nodes(e,{match:function(e){return _U(e)},universal:!0}),1),n=t[0];if(null==n)return"";var r=mW(n,1)[0];return Tw.getNodeType(r)},e.prototype.exec=function(e,t){var n=this.type,r=this.isActive(e);Jt.unwrapNodes(e,{match:function(e){return _U(e)},split:!0}),Jt.setNodes(e,{type:r?"paragraph":"list-item"});var o={type:n,children:[]};r||Jt.wrapNodes(e,o);var i=this.getMatchListType(e);""!=i&&i!==n&&Jt.wrapNodes(e,o)},e}(),wW='<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>',xW='<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>',CW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bulleted-list",t.title=LD("listModule.unOrderedList"),t.iconSvg=wW,t}return vW(t,e),t}(bW),EW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="numbered-list",t.title=LD("listModule.orderedList"),t.iconSvg=xW,t}return vW(t,e),t}(bW),SW={key:"bulletedList",factory:function(){return new CW}},kW={key:"numberedList",factory:function(){return new EW}},DW=/"/g,AW=aV("".replace);hU({target:"String",proto:!0,forced:(yW="anchor",Gz((function(){var e=""[yW]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=pH(hV(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+AW(pH(r),DW,"&quot;")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var OW=function(e,t,n){var r=n$(t);r in e?h$.f(e,r,tV(0,n)):e[r]=n},_W=XV("isConcatSpreadable"),BW=Kz.TypeError,FW=DV>=51||!Gz((function(){var e=[];return e[_W]=!1,e.concat()[0]!==e})),jW=lH("concat"),PW=function(e){if(!mV(e))return!1;var t=e[_W];return void 0!==t?!!t:RU(e)};hU({target:"Array",proto:!0,forced:!FW||!jW},{concat:function(e){var t,n,r,o,i,a=VV(this),l=nH(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(PW(i=-1===t?a:arguments[t])){if(u+(o=K$(i))>9007199254740991)throw BW("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&OW(l,u,i[n])}else{if(u>=9007199254740991)throw BW("Maximum allowed index exceeded");OW(l,u++,i)}return l.length=u,l}});var TW={renderElems:[FU,jU,PU],elemsToHtml:[NU,IU,LU],parseElemsHtml:[dW,hW,pW],menus:[SW,kW],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward;e.insertNode;var r=e;return r.insertBreak=function(){var e=r.selection;if(null!=e){var n=Tw.getSelectedNodeByType(r,"list-item");if(null!=n){var o=Tw.getParentNode(r,n),i=(null==o?void 0:o.children)||[];if(n===i[i.length-1]&&""===ft.string(n)){Jt.removeNodes(r,{match:function(e){return Tw.checkNodeType(e,"list-item")}});var a=[e.anchor.path[0]+1];return Jt.insertNodes(r,Tw.genEmptyParagraph(),{at:a}),void r.select({path:a.concat(0),offset:0})}t()}else t()}else t()},r.deleteBackward=function(e){var t=function(e){var t=mW(it.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1),n=t[0];if(null==n)return!1;var r=n[0];return!(!Qe.isElement(r)||ft.string(r)||!_U(r)||(Jt.unwrapNodes(e,{match:function(e){return _U(e)},split:!0}),Jt.setNodes(e,{type:"paragraph"}),0))}(r);t||n(e)},r}},NW=Xt((function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,l="[object Arguments]",u="[object Array]",s="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",g="[object Map]",v="[object Number]",m="[object Null]",y="[object Object]",b="[object Promise]",w="[object Proxy]",x="[object RegExp]",C="[object Set]",E="[object String]",S="[object Symbol]",k="[object Undefined]",D="[object WeakMap]",A="[object ArrayBuffer]",O="[object DataView]",_="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",P="[object Int32Array]",T="[object Uint8Array]",N="[object Uint8ClampedArray]",I="[object Uint16Array]",L="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,V={};V[_]=V[B]=V[F]=V[j]=V[P]=V[T]=V[N]=V[I]=V[L]=!0,V[l]=V[u]=V[A]=V[c]=V[O]=V[f]=V[d]=V[p]=V[g]=V[v]=V[y]=V[x]=V[C]=V[E]=V[D]=!1;var $="object"==typeof Zt&&Zt&&Zt.Object===Object&&Zt,U="object"==typeof self&&self&&self.Object===Object&&self,H=$||U||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&e&&!e.nodeType&&e,K=q&&q.exports===W,G=K&&$.process,Y=function(){try{return G&&G.binding&&G.binding("util")}catch(ose){}}(),J=Y&&Y.isTypedArray;function Z(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function X(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function Q(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}function ee(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function te(e){return function(t){return e(t)}}function ne(e,t){return e.has(t)}function re(e,t){return null==e?void 0:e[t]}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ie(e,t){return function(n){return e(t(n))}}function ae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var le=Array.prototype,ue=Function.prototype,se=Object.prototype,ce=H["__core-js_shared__"],fe=ue.toString,de=se.hasOwnProperty,pe=function(){var e=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),he=se.toString,ge=RegExp("^"+fe.call(de).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=K?H.Buffer:void 0,me=H.Symbol,ye=H.Uint8Array,be=se.propertyIsEnumerable,we=le.splice,xe=me?me.toStringTag:void 0,Ce=Object.getOwnPropertySymbols,Ee=ve?ve.isBuffer:void 0,Se=ie(Object.keys,Object),ke=Dt(H,"DataView"),De=Dt(H,"Map"),Ae=Dt(H,"Promise"),Oe=Dt(H,"Set"),_e=Dt(H,"WeakMap"),Be=Dt(Object,"create"),Fe=Nt(ke),je=Nt(De),Pe=Nt(Ae),Te=Nt(Oe),Ne=Nt(_e),Ie=me?me.prototype:void 0,Le=Ie?Ie.valueOf:void 0;function Me(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Re(){this.__data__=Be?Be(null):{},this.size=0}function ze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ve(e){var t=this.__data__;if(Be){var n=t[e];return n===r?void 0:n}return de.call(t,e)?t[e]:void 0}function $e(e){var t=this.__data__;return Be?void 0!==t[e]:de.call(t,e)}function Ue(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Be&&void 0===t?r:t,this}function He(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function We(){this.__data__=[],this.size=0}function qe(e){var t=this.__data__,n=dt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():we.call(t,n,1),--this.size,!0}function Ke(e){var t=this.__data__,n=dt(t,e);return n<0?void 0:t[n][1]}function Ge(e){return dt(this.__data__,e)>-1}function Ye(e,t){var n=this.__data__,r=dt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Je(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ze(){this.size=0,this.__data__={hash:new Me,map:new(De||He),string:new Me}}function Xe(e){var t=kt(this,e)["delete"](e);return this.size-=t?1:0,t}function Qe(e){return kt(this,e).get(e)}function et(e){return kt(this,e).has(e)}function tt(e,t){var n=kt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function nt(e){var t=-1,n=null==e?0:e.length;this.__data__=new Je;while(++t<n)this.add(e[t])}function rt(e){return this.__data__.set(e,r),this}function ot(e){return this.__data__.has(e)}function it(e){var t=this.__data__=new He(e);this.size=t.size}function at(){this.__data__=new He,this.size=0}function lt(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ut(e){return this.__data__.get(e)}function st(e){return this.__data__.has(e)}function ct(e,t){var r=this.__data__;if(r instanceof He){var o=r.__data__;if(!De||o.length<n-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Je(o)}return r.set(e,t),this.size=r.size,this}function ft(e,t){var n=Mt(e),r=!n&&Lt(e),o=!n&&!r&&zt(e),i=!n&&!r&&!o&&qt(e),a=n||r||o||i,l=a?ee(e.length,String):[],u=l.length;for(var s in e)!t&&!de.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Bt(s,u))||l.push(s);return l}function dt(e,t){var n=e.length;while(n--)if(It(e[n][0],t))return n;return-1}function pt(e,t,n){var r=t(e);return Mt(e)?r:X(r,n(e))}function ht(e){return null==e?void 0===e?k:m:xe&&xe in Object(e)?At(e):Tt(e)}function gt(e){return Wt(e)&&ht(e)==l}function vt(e,t,n,r,o){return e===t||(null==e||null==t||!Wt(e)&&!Wt(t)?e!==e&&t!==t:mt(e,t,n,r,vt,o))}function mt(e,t,n,r,i,a){var s=Mt(e),c=Mt(t),f=s?u:_t(e),d=c?u:_t(t);f=f==l?y:f,d=d==l?y:d;var p=f==y,h=d==y,g=f==d;if(g&&zt(e)){if(!zt(t))return!1;s=!0,p=!1}if(g&&!p)return a||(a=new it),s||qt(e)?xt(e,t,n,r,i,a):Ct(e,t,f,n,r,i,a);if(!(n&o)){var v=p&&de.call(e,"__wrapped__"),m=h&&de.call(t,"__wrapped__");if(v||m){var b=v?e.value():e,w=m?t.value():t;return a||(a=new it),i(b,w,n,r,a)}}return!!g&&(a||(a=new it),Et(e,t,n,r,i,a))}function yt(e){if(!Ht(e)||jt(e))return!1;var t=$t(e)?ge:R;return t.test(Nt(e))}function bt(e){return Wt(e)&&Ut(e.length)&&!!V[ht(e)]}function wt(e){if(!Pt(e))return Se(e);var t=[];for(var n in Object(e))de.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xt(e,t,n,r,a,l){var u=n&o,s=e.length,c=t.length;if(s!=c&&!(u&&c>s))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var d=-1,p=!0,h=n&i?new nt:void 0;l.set(e,t),l.set(t,e);while(++d<s){var g=e[d],v=t[d];if(r)var m=u?r(v,g,d,t,e,l):r(g,v,d,e,t,l);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!Q(t,(function(e,t){if(!ne(h,t)&&(g===e||a(g,e,n,r,l)))return h.push(t)}))){p=!1;break}}else if(g!==v&&!a(g,v,n,r,l)){p=!1;break}}return l["delete"](e),l["delete"](t),p}function Ct(e,t,n,r,a,l,u){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!l(new ye(e),new ye(t)));case c:case f:case v:return It(+e,+t);case d:return e.name==t.name&&e.message==t.message;case x:case E:return e==t+"";case g:var s=oe;case C:var p=r&o;if(s||(s=ae),e.size!=t.size&&!p)return!1;var h=u.get(e);if(h)return h==t;r|=i,u.set(e,t);var m=xt(s(e),s(t),r,a,l,u);return u["delete"](e),m;case S:if(Le)return Le.call(e)==Le.call(t)}return!1}function Et(e,t,n,r,i,a){var l=n&o,u=St(e),s=u.length,c=St(t),f=c.length;if(s!=f&&!l)return!1;var d=s;while(d--){var p=u[d];if(!(l?p in t:de.call(t,p)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var g=!0;a.set(e,t),a.set(t,e);var v=l;while(++d<s){p=u[d];var m=e[p],y=t[p];if(r)var b=l?r(y,m,p,t,e,a):r(m,y,p,e,t,a);if(!(void 0===b?m===y||i(m,y,n,r,a):b)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return a["delete"](e),a["delete"](t),g}function St(e){return pt(e,Kt,Ot)}function kt(e,t){var n=e.__data__;return Ft(t)?n["string"==typeof t?"string":"hash"]:n.map}function Dt(e,t){var n=re(e,t);return yt(n)?n:void 0}function At(e){var t=de.call(e,xe),n=e[xe];try{e[xe]=void 0;var r=!0}catch(ose){}var o=he.call(e);return r&&(t?e[xe]=n:delete e[xe]),o}Me.prototype.clear=Re,Me.prototype["delete"]=ze,Me.prototype.get=Ve,Me.prototype.has=$e,Me.prototype.set=Ue,He.prototype.clear=We,He.prototype["delete"]=qe,He.prototype.get=Ke,He.prototype.has=Ge,He.prototype.set=Ye,Je.prototype.clear=Ze,Je.prototype["delete"]=Xe,Je.prototype.get=Qe,Je.prototype.has=et,Je.prototype.set=tt,nt.prototype.add=nt.prototype.push=rt,nt.prototype.has=ot,it.prototype.clear=at,it.prototype["delete"]=lt,it.prototype.get=ut,it.prototype.has=st,it.prototype.set=ct;var Ot=Ce?function(e){return null==e?[]:(e=Object(e),Z(Ce(e),(function(t){return be.call(e,t)})))}:Gt,_t=ht;function Bt(e,t){return t=null==t?a:t,!!t&&("number"==typeof e||z.test(e))&&e>-1&&e%1==0&&e<t}function Ft(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function jt(e){return!!pe&&pe in e}function Pt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||se;return e===n}function Tt(e){return he.call(e)}function Nt(e){if(null!=e){try{return fe.call(e)}catch(ose){}try{return e+""}catch(ose){}}return""}function It(e,t){return e===t||e!==e&&t!==t}(ke&&_t(new ke(new ArrayBuffer(1)))!=O||De&&_t(new De)!=g||Ae&&_t(Ae.resolve())!=b||Oe&&_t(new Oe)!=C||_e&&_t(new _e)!=D)&&(_t=function(e){var t=ht(e),n=t==y?e.constructor:void 0,r=n?Nt(n):"";if(r)switch(r){case Fe:return O;case je:return g;case Pe:return b;case Te:return C;case Ne:return D}return t});var Lt=gt(function(){return arguments}())?gt:function(e){return Wt(e)&&de.call(e,"callee")&&!be.call(e,"callee")},Mt=Array.isArray;function Rt(e){return null!=e&&Ut(e.length)&&!$t(e)}var zt=Ee||Yt;function Vt(e,t){return vt(e,t)}function $t(e){if(!Ht(e))return!1;var t=ht(e);return t==p||t==h||t==s||t==w}function Ut(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ht(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Wt(e){return null!=e&&"object"==typeof e}var qt=J?te(J):bt;function Kt(e){return Rt(e)?ft(e):wt(e)}function Gt(){return[]}function Yt(){return!1}e.exports=Vt}));TD("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"}}),TD("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var IW="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function LW(e){var t={exports:{}};return e(t,t.exports),t.exports}var MW,RW,zW=function(e){return e&&e.Math==Math&&e},VW=zW("object"==typeof globalThis&&globalThis)||zW("object"==typeof window&&window)||zW("object"==typeof self&&self)||zW("object"==typeof IW&&IW)||function(){return this}()||Function("return this")(),$W=function(e){try{return!!e()}catch(e){return!0}},UW=!$W((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),HW=Function.prototype.call,WW=HW.bind?HW.bind(HW):function(){return HW.apply(HW,arguments)},qW={}.propertyIsEnumerable,KW=Object.getOwnPropertyDescriptor,GW={f:KW&&!qW.call({1:2},1)?function(e){var t=KW(this,e);return!!t&&t.enumerable}:qW},YW=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},JW=Function.prototype,ZW=JW.bind,XW=JW.call,QW=ZW&&ZW.bind(XW),eq=ZW?function(e){return e&&QW(XW,e)}:function(e){return e&&function(){return XW.apply(e,arguments)}},tq=eq({}.toString),nq=eq("".slice),rq=function(e){return nq(tq(e),8,-1)},oq=VW.Object,iq=eq("".split),aq=$W((function(){return!oq("z").propertyIsEnumerable(0)}))?function(e){return"String"==rq(e)?iq(e,""):oq(e)}:oq,lq=VW.TypeError,uq=function(e){if(null==e)throw lq("Can't call method on "+e);return e},sq=function(e){return aq(uq(e))},cq=function(e){return"function"==typeof e},fq=function(e){return"object"==typeof e?null!==e:cq(e)},dq=function(e){return cq(e)?e:void 0},pq=function(e,t){return arguments.length<2?dq(VW[e]):VW[e]&&VW[e][t]},hq=eq({}.isPrototypeOf),gq=pq("navigator","userAgent")||"",vq=VW.process,mq=VW.Deno,yq=vq&&vq.versions||mq&&mq.version,bq=yq&&yq.v8;bq&&(RW=(MW=bq.split("."))[0]>0&&MW[0]<4?1:+(MW[0]+MW[1])),!RW&&gq&&(!(MW=gq.match(/Edge\/(\d+)/))||MW[1]>=74)&&(MW=gq.match(/Chrome\/(\d+)/))&&(RW=+MW[1]);var wq=RW,xq=!!Object.getOwnPropertySymbols&&!$W((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wq&&wq<41})),Cq=xq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Eq=VW.Object,Sq=Cq?function(e){return"symbol"==typeof e}:function(e){var t=pq("Symbol");return cq(t)&&hq(t.prototype,Eq(e))},kq=VW.String,Dq=function(e){try{return kq(e)}catch(e){return"Object"}},Aq=VW.TypeError,Oq=function(e){if(cq(e))return e;throw Aq(Dq(e)+" is not a function")},_q=function(e,t){var n=e[t];return null==n?void 0:Oq(n)},Bq=VW.TypeError,Fq=Object.defineProperty,jq=function(e,t){try{Fq(VW,e,{value:t,configurable:!0,writable:!0})}catch(c){VW[e]=t}return t},Pq=VW["__core-js_shared__"]||jq("__core-js_shared__",{}),Tq=LW((function(e){(e.exports=function(e,t){return Pq[e]||(Pq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Nq=VW.Object,Iq=function(e){return Nq(uq(e))},Lq=eq({}.hasOwnProperty),Mq=Object.hasOwn||function(e,t){return Lq(Iq(e),t)},Rq=0,zq=Math.random(),Vq=eq(1..toString),$q=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Vq(++Rq+zq,36)},Uq=Tq("wks"),Hq=VW.Symbol,Wq=Hq&&Hq.for,qq=Cq?Hq:Hq&&Hq.withoutSetter||$q,Kq=function(e){if(!Mq(Uq,e)||!xq&&"string"!=typeof Uq[e]){var t="Symbol."+e;xq&&Mq(Hq,e)?Uq[e]=Hq[e]:Uq[e]=Cq&&Wq?Wq(t):qq(t)}return Uq[e]},Gq=VW.TypeError,Yq=Kq("toPrimitive"),Jq=function(e,t){if(!fq(e)||Sq(e))return e;var n,r=_q(e,Yq);if(r){if(void 0===t&&(t="default"),n=WW(r,e,t),!fq(n)||Sq(n))return n;throw Gq("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&cq(n=e.toString)&&!fq(r=WW(n,e)))return r;if(cq(n=e.valueOf)&&!fq(r=WW(n,e)))return r;if("string"!==t&&cq(n=e.toString)&&!fq(r=WW(n,e)))return r;throw Bq("Can't convert object to primitive value")}(e,t)},Zq=function(e){var t=Jq(e,"string");return Sq(t)?t:t+""},Xq=VW.document,Qq=fq(Xq)&&fq(Xq.createElement),eK=function(e){return Qq?Xq.createElement(e):{}},tK=!UW&&!$W((function(){return 7!=Object.defineProperty(eK("div"),"a",{get:function(){return 7}}).a})),nK=Object.getOwnPropertyDescriptor,rK={f:UW?nK:function(e,t){if(e=sq(e),t=Zq(t),tK)try{return nK(e,t)}catch(e){}if(Mq(e,t))return YW(!WW(GW.f,e,t),e[t])}},oK=VW.String,iK=VW.TypeError,aK=function(e){if(fq(e))return e;throw iK(oK(e)+" is not an object")},lK=VW.TypeError,uK=Object.defineProperty,sK={f:UW?uK:function(e,t,n){if(aK(e),t=Zq(t),aK(n),tK)try{return uK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw lK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},cK=UW?function(e,t,n){return sK.f(e,t,YW(1,n))}:function(e,t,n){return e[t]=n,e},fK=eq(Function.toString);cq(Pq.inspectSource)||(Pq.inspectSource=function(e){return fK(e)});var dK,pK,hK,gK=Pq.inspectSource,vK=VW.WeakMap,mK=cq(vK)&&/native code/.test(gK(vK)),yK=Tq("keys"),bK=function(e){return yK[e]||(yK[e]=$q(e))},wK={},xK=VW.TypeError,CK=VW.WeakMap;if(mK||Pq.state){var EK=Pq.state||(Pq.state=new CK),SK=eq(EK.get),kK=eq(EK.has),DK=eq(EK.set);dK=function(e,t){if(kK(EK,e))throw new xK("Object already initialized");return t.facade=e,DK(EK,e,t),t},pK=function(e){return SK(EK,e)||{}},hK=function(e){return kK(EK,e)}}else{var AK=bK("state");wK[AK]=!0,dK=function(e,t){if(Mq(e,AK))throw new xK("Object already initialized");return t.facade=e,cK(e,AK,t),t},pK=function(e){return Mq(e,AK)?e[AK]:{}},hK=function(e){return Mq(e,AK)}}var OK={set:dK,get:pK,has:hK,enforce:function(e){return hK(e)?pK(e):dK(e,{})},getterFor:function(e){return function(t){var n;if(!fq(t)||(n=pK(t)).type!==e)throw xK("Incompatible receiver, "+e+" required");return n}}},_K=Function.prototype,BK=UW&&Object.getOwnPropertyDescriptor,FK=Mq(_K,"name"),jK={EXISTS:FK,PROPER:FK&&"something"===function(){}.name,CONFIGURABLE:FK&&(!UW||UW&&BK(_K,"name").configurable)},PK=LW((function(e){var t=jK.CONFIGURABLE,n=OK.get,r=OK.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;cq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mq(i,"name")||t&&i.name!==f)&&cK(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==VW?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:cK(e,n,i)):s?e[n]=i:jq(n,i)})(Function.prototype,"toString",(function(){return cq(this)&&n(this).source||gK(this)}))})),TK=Math.ceil,NK=Math.floor,IK=function(e){var t=+e;return t!=t||0===t?0:(t>0?NK:TK)(t)},LK=Math.max,MK=Math.min,RK=function(e,t){var n=IK(e);return n<0?LK(n+t,0):MK(n,t)},zK=Math.min,VK=function(e){return e>0?zK(IK(e),9007199254740991):0},$K=function(e){return VK(e.length)},UK=function(e){return function(t,n,r){var o,i=sq(t),a=$K(i),l=RK(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},HK={includes:UK(!0),indexOf:UK(!1)}.indexOf,WK=eq([].push),qK=function(e,t){var n,r=sq(e),o=0,i=[];for(n in r)!Mq(wK,n)&&Mq(r,n)&&WK(i,n);for(;t.length>o;)Mq(r,n=t[o++])&&(~HK(i,n)||WK(i,n));return i},KK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],GK=KK.concat("length","prototype"),YK={f:Object.getOwnPropertyNames||function(e){return qK(e,GK)}},JK={f:Object.getOwnPropertySymbols},ZK=eq([].concat),XK=pq("Reflect","ownKeys")||function(e){var t=YK.f(aK(e)),n=JK.f;return n?ZK(t,n(e)):t},QK=function(e,t){for(var n=XK(t),r=sK.f,o=rK.f,i=0;i<n.length;i++){var a=n[i];Mq(e,a)||r(e,a,o(t,a))}},eG=/#|\.prototype\./,tG=function(e,t){var n=rG[nG(e)];return n==iG||n!=oG&&(cq(t)?$W(t):!!t)},nG=tG.normalize=function(e){return String(e).replace(eG,".").toLowerCase()},rG=tG.data={},oG=tG.NATIVE="N",iG=tG.POLYFILL="P",aG=tG,lG=rK.f,uG=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?VW:s?VW[l]||jq(l,{}):(VW[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=lG(n,r))&&a.value:n[r],!aG(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;QK(i,o)}(e.sham||o&&o.sham)&&cK(i,"sham",!0),PK(n,r,i,e)}},sG={};sG[Kq("toStringTag")]="z";var cG,fG="[object z]"===String(sG),dG=Kq("toStringTag"),pG=VW.Object,hG="Arguments"==rq(function(){return arguments}()),gG=fG?rq:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=pG(e),dG))?n:hG?rq(t):"Object"==(r=rq(t))&&cq(t.callee)?"Arguments":r},vG=VW.String,mG=function(e){if("Symbol"===gG(e))throw TypeError("Cannot convert a Symbol value to a string");return vG(e)},yG=/"/g,bG=eq("".replace);uG({target:"String",proto:!0,forced:(cG="anchor",$W((function(){var e=""[cG]('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return t="a",n="name",r=e,o=mG(uq(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+bG(mG(r),yG,"&quot;")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var wG,xG=function(){var e=aK(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},CG=VW.RegExp,EG=$W((function(){var e=CG("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),SG=EG||$W((function(){return!CG("a","y").sticky})),kG={BROKEN_CARET:EG||$W((function(){var e=CG("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:SG,UNSUPPORTED_Y:EG},DG=Object.keys||function(e){return qK(e,KK)},AG=UW?Object.defineProperties:function(e,t){aK(e);for(var n,r=sq(t),o=DG(t),i=o.length,a=0;i>a;)sK.f(e,n=o[a++],r[n]);return e},OG=pq("document","documentElement"),_G=bK("IE_PROTO"),BG=function(){},FG=function(e){return"<script>"+e+"<\/script>"},jG=function(e){e.write(FG("")),e.close();var t=e.parentWindow.Object;return e=null,t},PG=function(){try{wG=new ActiveXObject("htmlfile")}catch(e){}var e,t;PG="undefined"!=typeof document?document.domain&&wG?jG(wG):((t=eK("iframe")).style.display="none",OG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(FG("document.F=Object")),e.close(),e.F):jG(wG);for(var n=KK.length;n--;)delete PG.prototype[KK[n]];return PG()};wK[_G]=!0;var TG,NG,IG=Object.create||function(e,t){var n;return null!==e?(BG.prototype=aK(e),n=new BG,BG.prototype=null,n[_G]=e):n=PG(),void 0===t?n:AG(n,t)},LG=VW.RegExp,MG=$W((function(){var e=LG(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),RG=VW.RegExp,zG=$W((function(){var e=RG("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),VG=OK.get,$G=Tq("native-string-replace",String.prototype.replace),UG=RegExp.prototype.exec,HG=UG,WG=eq("".charAt),qG=eq("".indexOf),KG=eq("".replace),GG=eq("".slice),YG=(NG=/b*/g,WW(UG,TG=/a/,"a"),WW(UG,NG,"a"),0!==TG.lastIndex||0!==NG.lastIndex),JG=kG.BROKEN_CARET,ZG=void 0!==/()??/.exec("")[1];(YG||ZG||JG||MG||zG)&&(HG=function(e){var t,n,r,o,i,a,l,u=this,s=VG(u),c=mG(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=WW(HG,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=JG&&u.sticky,h=WW(xG,u),g=u.source,v=0,m=c;if(p&&(h=KG(h,"y",""),-1===qG(h,"g")&&(h+="g"),m=GG(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==WG(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),ZG&&(n=new RegExp("^"+g+"$(?!\\s)",h)),YG&&(r=u.lastIndex),o=WW(UG,p?n:u,m),p?o?(o.input=GG(o.input,v),o[0]=GG(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:YG&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),ZG&&o&&o.length>1&&WW($G,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=IG(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var XG=HG;uG({target:"RegExp",proto:!0,forced:/./.exec!==XG},{exec:XG});var QG=Array.isArray||function(e){return"Array"==rq(e)},eY=function(){},tY=[],nY=pq("Reflect","construct"),rY=/^\s*(?:class|function)\b/,oY=eq(rY.exec),iY=!rY.exec(eY),aY=function(e){if(!cq(e))return!1;try{return nY(eY,tY,e),!0}catch(e){return!1}},lY=!nY||$W((function(){var e;return aY(aY.call)||!aY(Object)||!aY((function(){e=!0}))||e}))?function(e){if(!cq(e))return!1;switch(gG(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return iY||!!oY(rY,gK(e))}:aY,uY=function(e,t,n){var r=Zq(t);r in e?sK.f(e,r,YW(0,n)):e[r]=n},sY=Kq("species"),cY=function(e){return wq>=51||!$W((function(){var t=[];return(t.constructor={})[sY]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},fY=eq([].slice),dY=cY("slice"),pY=Kq("species"),hY=VW.Array,gY=Math.max;function vY(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function mY(e){var t=e.selection;if(null==t)return!1;var n=vY(it.nodes(e,{match:function(e){return Tw.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=vY(n,2)[1],o=it.start(e,r);if(bt.equals(t.anchor,o))return!0}return!1}function yY(e,t){var n,r,o=it.nodes(e,{at:t,match:function(e){return"table"===Tw.getNodeType(e)}}),i=!1;try{for(var a=
68
- /*! *****************************************************************************
69
- Copyright (c) Microsoft Corporation.
70
-
71
- Permission to use, copy, modify, and/or distribute this software for any
72
- purpose with or without fee is hereby granted.
73
-
74
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
75
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
76
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
77
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
78
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
79
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
80
- PERFORMANCE OF THIS SOFTWARE.
81
- ***************************************************************************** */
82
- function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),l=a.next();!l.done;l=a.next())l.value,i=!0}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}uG({target:"Array",proto:!0,forced:!dY},{slice:function(e,t){var n,r,o,i=sq(this),a=$K(i),l=RK(e,a),u=RK(void 0===t?a:t,a);if(QG(i)&&(n=i.constructor,(lY(n)&&(n===hY||QG(n.prototype))||fq(n)&&null===(n=n[pY]))&&(n=void 0),n===hY||void 0===n))return fY(i,l,u);for(r=new(void 0===n?hY:n)(gY(u-l,0)),o=0;l<u;l++,o++)l in i&&uY(r,o,i[l]);return r.length=o,r}});var bY=eq(eq.bind),wY=Kq("species"),xY=VW.Array,CY=function(e,t){return new(function(e){var t;return QG(e)&&(t=e.constructor,(lY(t)&&(t===xY||QG(t.prototype))||fq(t)&&null===(t=t[wY]))&&(t=void 0)),void 0===t?xY:t}(e))(0===t?0:t)},EY=eq([].push),SY=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=Iq(u),g=aq(h),v=function(e,t){return Oq(e),void 0===t?e:bY?bY(e,t):function(){return e.apply(t,arguments)}}(s,c),m=$K(g),y=0,b=f||CY,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:EY(w,d)}else switch(e){case 4:return!1;case 7:EY(w,d)}return i?-1:r||o?o:w}},kY={forEach:SY(0),map:SY(1),filter:SY(2),some:SY(3),every:SY(4),find:SY(5),findIndex:SY(6),filterReject:SY(7)},DY=kY.map;uG({target:"Array",proto:!0,forced:!cY("map")},{map:function(e){return DY(this,e,arguments.length>1?arguments[1]:void 0)}});var AY=fG?{}.toString:function(){return"[object "+gG(this)+"]"};function OY(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function _Y(e){return OY(e).every((function(e){return!!e.isHeader}))}fG||PK(Object.prototype,"toString",AY,{unsafe:!0});var BY=jK.PROPER,FY=RegExp.prototype,jY=FY.toString,PY=eq(xG),TY=$W((function(){return"/a/b"!=jY.call({source:"a",flags:"b"})})),NY=BY&&"toString"!=jY.name;(TY||NY)&&PK(RegExp.prototype,"toString",(function(){var e=aK(this),t=mG(e.source),n=e.flags;return"/"+t+"/"+mG(void 0===n&&hq(FY,e)&&!("flags"in FY)?PY(e):n)}),{unsafe:!0});var IY=Kq("unscopables"),LY=Array.prototype;null==LY[IY]&&sK.f(LY,IY,{configurable:!0,value:IG(null)});var MY,RY=kY.find,zY=!0;"find"in[]&&Array(1).find((function(){zY=!1})),uG({target:"Array",proto:!0,forced:zY},{find:function(e){return RY(this,e,arguments.length>1?arguments[1]:void 0)}}),MY="find",LY[IY][MY]=!0;var VY=Function.prototype,$Y=VY.apply,UY=VY.bind,HY=VY.call,WY="object"==typeof Reflect&&Reflect.apply||(UY?HY.bind($Y):function(){return HY.apply($Y,arguments)}),qY=Kq("species"),KY=RegExp.prototype,GY=function(e,t,n,r){var o=Kq(e),i=!$W((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!$W((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[qY]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=eq(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=eq(e),u=t.exec;return u===XG||u===KY.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));PK(String.prototype,e,u[0]),PK(KY,o,u[1])}r&&cK(KY[o],"sham",!0)},YY=Kq("match"),JY=VW.TypeError,ZY=Kq("species"),XY=function(e,t){var n,r=aK(e).constructor;return void 0===r||null==(n=aK(r)[ZY])?t:function(e){if(lY(e))return e;throw JY(Dq(e)+" is not a constructor")}(n)},QY=eq("".charAt),eJ=eq("".charCodeAt),tJ=eq("".slice),nJ=function(e){return function(t,n){var r,o,i=mG(uq(t)),a=IK(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=eJ(i,a))<55296||r>56319||a+1===l||(o=eJ(i,a+1))<56320||o>57343?e?QY(i,a):r:e?tJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},rJ={codeAt:nJ(!1),charAt:nJ(!0)}.charAt,oJ=function(e,t,n){return t+(n?rJ(e,t).length:1)},iJ=VW.Array,aJ=Math.max,lJ=function(e,t,n){for(var r=$K(e),o=RK(t,r),i=RK(void 0===n?r:n,r),a=iJ(aJ(i-o,0)),l=0;o<i;o++,l++)uY(a,l,e[o]);return a.length=l,a},uJ=VW.TypeError,sJ=function(e,t){var n=e.exec;if(cq(n)){var r=WW(n,e,t);return null!==r&&aK(r),r}if("RegExp"===rq(e))return WW(XG,e,t);throw uJ("RegExp#exec called on incompatible receiver")},cJ=kG.UNSUPPORTED_Y,fJ=Math.min,dJ=[].push,pJ=eq(/./.exec),hJ=eq(dJ),gJ=eq("".slice);GY("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=mG(uq(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!fq(r=e)||!(void 0!==(o=r[YY])?o:"RegExp"==rq(r)))return WW(t,i,e,a);for(var l,u,s,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(l=WW(XG,p,i))&&!((u=p.lastIndex)>d&&(hJ(c,gJ(i,d,l.index)),l.length>1&&l.index<i.length&&WY(dJ,c,lJ(l,1)),s=l[0].length,d=u,c.length>=a));)p.lastIndex===l.index&&p.lastIndex++;return d===i.length?!s&&pJ(p,"")||hJ(c,""):hJ(c,gJ(i,d)),c.length>a?lJ(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:WW(t,this,e,n)}:t,[function(t,n){var o=uq(this),i=null==t?void 0:_q(t,e);return i?WW(i,t,o,n):WW(r,mG(o),t,n)},function(e,o){var i=aK(this),a=mG(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=XY(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(cJ?"g":"y"),f=new u(cJ?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===sJ(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=cJ?0:h;var v,m=sJ(f,cJ?gJ(a,h):a);if(null===m||(v=fJ(VK(f.lastIndex+(cJ?h:0)),a.length))===p)h=oJ(a,h,s);else{if(hJ(g,gJ(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(hJ(g,m[y]),g.length===d)return g;h=p=v}}return hJ(g,gJ(a,p)),g}]}),!!$W((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),cJ);var vJ="\t\n\v\f\r                 \u2028\u2029\ufeff",mJ=eq("".replace),yJ="["+vJ+"]",bJ=RegExp("^"+yJ+yJ+"*"),wJ=RegExp(yJ+yJ+"*$"),xJ=function(e){return function(t){var n=mG(uq(t));return 1&e&&(n=mJ(n,bJ,"")),2&e&&(n=mJ(n,wJ,"")),n}},CJ={start:xJ(1),end:xJ(2),trim:xJ(3)},EJ=jK.PROPER,SJ=CJ.trim;function kJ(e){return e.length?e[0].tagName.toLowerCase():""}uG({target:"String",proto:!0,forced:function(e){return $W((function(){return!!vJ[e]()||"​…᠎"!=="​…᠎"[e]()||EJ&&vJ[e].name!==e}))}("trim")},{trim:function(){return SJ(this)}}),uG({global:!0},{globalThis:VW}),Bo&&(uo.fn.append=Bo),mo&&(uo.fn.on=mo),Vo&&(uo.fn.focus=Vo),po&&(uo.fn.attr=po),vo&&(uo.fn.val=vo),Ao&&(uo.fn.html=Ao),go&&(uo.fn.dataset=go),so&&(uo.fn.addClass=so),co&&(uo.fn.removeClass=co),No&&(uo.fn.children=No),ko&&(uo.fn.each=ko),To&&(uo.fn.find=To);var DJ=!1,AJ=0,OJ=0,_J=null,BJ=null,FJ=uo("body");function jJ(e){DJ=!1,BJ=null,_J=null,FJ.off("mousemove",PJ),FJ.off("mouseup",jJ)}FJ.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),DJ=!0;var n=e.clientX;AJ=n;var r=t.getBoundingClientRect().width;OJ=r,FJ.on("mousemove",PJ),FJ.on("mouseup",jJ)}}));var PJ=Wi((function(e){if(DJ&&null!=BJ&&null!=_J){e.preventDefault();var t=e.clientX,n=OJ+(t-AJ);(n=Math.floor(100*n)/100)<30&&(n=30),Jt.setNodes(BJ,{width:n.toString()},{at:_J})}}),100),TJ={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(St.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Tw.findPath(e,t),a=it.start(e,i),l=it.end(e,i),u=bt.compare(r,l)<=0&&bt.compare(r,a)>=0,s=bt.compare(o,l)<=0&&bt.compare(o,a)>=0;return!!(u&&s&&gt.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=Tw.isNodeSelected(n,e),l=OY(e),u=Ua("div",{className:"table-container","data-selected":a,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=Tw.findPath(n,e),o=it.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Ua("table",{width:i,contentEditable:r},Ua("colgroup",null,l.map((function(e){var t=e.width;return Ua("col",{width:void 0===t?"auto":t})}))),Ua("tbody",null,t)));return u}},NJ={type:"table-row",renderElem:function(e,t,n){return Ua("tr",null,t)}},IJ={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Tw.getParentNode(e,t);if(null==n)return!1;var r=Tw.getParentNode(e,n);return null!=r&&OY(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,l=o.rowSpan,u=void 0===l?1:l,s=o.isHeader,c=void 0!==s&&s;if(!r)return Ua("td",{colSpan:a,rowSpan:u},t);var f=Ua(c?"th":"td",{colSpan:a,rowSpan:u,style:{borderRightWidth:"3px"},on:{mousemove:Wi((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,l=o.top,u=o.height,s=t.clientX,c=t.clientY;DJ||(s>i+a-5&&s<i+a&&c>l&&c<l+u?(r.style.cursor="col-resize",BJ=n,_J=Tw.findPath(n,e)):DJ||(r.style.cursor="auto",BJ=null,_J=null))}}),100)}},t);return f}},LJ={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},MJ={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},RJ={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,l=n.isHeader,u=void 0!==l&&l,s=n.width,c=u?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===s?"auto":s)+'">'+t+"</"+c+">"}},zJ={selector:"table",preParseHtml:function(e){var t=uo(e);if("table"!==kJ(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},VJ=kY.filter;uG({target:"Array",proto:!0,forced:!cY("filter")},{filter:function(e){return VJ(this,e,arguments.length>1?arguments[1]:void 0)}});var $J=Math.floor,UJ=eq("".charAt),HJ=eq("".replace),WJ=eq("".slice),qJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,KJ=/\$([$&'`]|\d{1,2})/g,GJ=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=KJ;return void 0!==o&&(o=Iq(o),u=qJ),HJ(i,u,(function(i,u){var s;switch(UJ(u,0)){case"$":return"$";case"&":return e;case"`":return WJ(t,0,n);case"'":return WJ(t,a);case"<":s=o[WJ(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=$J(c/10);return 0===f?i:f<=l?void 0===r[f-1]?UJ(u,1):r[f-1]+UJ(u,1):i}s=r[c-1]}return void 0===s?"":s}))},YJ=Kq("replace"),JJ=Math.max,ZJ=Math.min,XJ=eq([].concat),QJ=eq([].push),eZ=eq("".indexOf),tZ=eq("".slice),nZ="$0"==="a".replace(/./,"$0"),rZ=!!/./[YJ]&&""===/./[YJ]("a","$0");GY("replace",(function(e,t,n){var r=rZ?"$":"$0";return[function(e,n){var r=uq(this),o=null==e?void 0:_q(e,YJ);return o?WW(o,e,r,n):WW(t,mG(r),e,n)},function(e,o){var i=aK(this),a=mG(e);if("string"==typeof o&&-1===eZ(o,r)&&-1===eZ(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=cq(o);u||(o=mG(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=sJ(i,a);if(null===d)break;if(QJ(f,d),!s)break;""===mG(d[0])&&(i.lastIndex=oJ(a,VK(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=mG((d=f[v])[0]),y=JJ(ZJ(IK(d.index),a.length),0),b=[],w=1;w<d.length;w++)QJ(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=XJ([m],b,y,a);void 0!==x&&QJ(C,x);var E=mG(WY(o,void 0,C))}else E=GJ(m,a,y,b,x,o);y>=g&&(h+=tZ(a,g,y)+E,g=y+m.length)}return h+tZ(a,g)}]}),!!$W((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!nZ||rZ);var oZ={selector:"td,th",parseElemHtml:function(e,t,n){var r=uo(e);0===(t=t.filter((function(e){return!!Ft.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===kJ(r),colSpan:o,rowSpan:i,width:a,children:t}}},iZ={selector:"tr",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===Tw.getNodeType(e)}))}}},aZ={selector:"table",parseElemHtml:function(e,t,n){var r=uo(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var l=a.split(":");l[0].trim()===t&&(n=l[1].trim())}}return n}(r,"width")&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===Tw.getNodeType(e)}))}}},lZ=function(){function e(){this.title=LD("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||!!Tw.getSelectedElems(e).some((function(t){var n=Tw.getNodeType(t);return"pre"===n||"table"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=uo('<div class="w-e-panel-content-table"></div>'),r=uo("<span>0 &times; 0</span>"),o=uo("<table></table>"),i=0;i<10;i++){for(var a=uo("<tr></tr>"),l=0;l<10;l++){var u=uo("<td></td>");u.attr("data-x",l.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=uo(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){uo(e).children().each((function(e){var t=uo(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),u.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=uo(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){var i=Tw.getSelectedNodeByType(e,"paragraph");i&&""===ft.string(i)&&Jt.removeNodes(e,{mode:"highest"});var a=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);Jt.insertNodes(e,a,{mode:"highest"})}},e}(),uZ=function(){function e(){this.title=LD("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Tw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Jt.removeNodes(e,{mode:"highest"})},e}(),sZ=function(){function e(){this.title=LD("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||null==Tw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=vY(it.nodes(e,{match:function(e){return Tw.checkNodeType(e,"table-cell")},universal:!0}),1),r=vY(n[0],2),o=r[0],i=r[1],a=Tw.getParentNode(e,o),l=(null==a?void 0:a.children.length)||0;if(0!==l){for(var u={type:"table-row",children:[]},s=0;s<l;s++)u.children.push({type:"table-cell",children:[{text:""}]});var c=gt.parent(i),f=gt.next(c);Jt.insertNodes(e,u,{at:f})}}},e}(),cZ=function(){function e(){this.title=LD("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||null==Tw.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=vY(it.nodes(e,{match:function(e){return Tw.checkNodeType(e,"table-row")},universal:!0}),1),r=vY(n[0],2),o=r[0],i=r[1],a=Tw.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Jt.removeNodes(e,{mode:"highest"}):Jt.removeNodes(e,{at:i})}},e}(),fZ={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},dZ=eK("span").classList,pZ=dZ&&dZ.constructor&&dZ.constructor.prototype,hZ=pZ===Object.prototype?void 0:pZ,gZ=kY.forEach,vZ=function(e,t){var n=[][e];return!!n&&$W((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),mZ=vZ?[].forEach:function(e){return gZ(this,e,arguments.length>1?arguments[1]:void 0)},yZ=function(e){if(e&&e.forEach!==mZ)try{cK(e,"forEach",mZ)}catch(ose){e.forEach=mZ}};for(var bZ in fZ)fZ[bZ]&&yZ(VW[bZ]&&VW[bZ].prototype);yZ(hZ);var wZ=function(){function e(){this.title=LD("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||null==Tw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=vY(it.nodes(e,{match:function(e){return Tw.checkNodeType(e,"table-cell")},universal:!0}),1),r=vY(n[0],2),o=r[0],i=r[1],a=Tw.getParentNode(e,o);if(null!=a){var l=Tw.getParentNode(e,a);null!=l&&(l.children||[]).forEach((function(t,n){Qe.isElement(t)&&(t.children||[]).forEach((function(t){var r=Tw.findPath(e,t);if(r.length===i.length&&NW(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&_Y(l)&&(o.isHeader=!0),Jt.insertNodes(e,o,{at:r})}}))}))}}},e}(),xZ=function(){function e(){this.title=LD("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||null==Tw.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=vY(it.nodes(e,{match:function(e){return Tw.checkNodeType(e,"table-cell")},universal:!0}),1),r=vY(n[0],2),o=r[0],i=r[1],a=Tw.getParentNode(e,o),l=(null==a?void 0:a.children.length)||0;if(!a||l<=1)Jt.removeNodes(e,{mode:"highest"});else{var u=Tw.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t){Qe.isElement(t)&&(t.children||[]).forEach((function(t){var n=Tw.findPath(e,t);n.length===i.length&&NW(n.slice(-1),i.slice(-1))&&Jt.removeNodes(e,{at:n})}))}))}}},e}(),CZ=function(){function e(){this.title=LD("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Tw.getSelectedNodeByType(e,"table");return null!=t&&_Y(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||null==Tw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Tw.getSelectedNodeByType(e,"table");null!=r&&OY(r).forEach((function(t){return Jt.setNodes(e,{isHeader:n},{at:Tw.findPath(e,t)})}))}},e}(),EZ=function(){function e(){this.title=LD("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Tw.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||null==Tw.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Jt.setNodes(e,n,{mode:"highest"})}},e}(),SZ={renderElems:[TJ,NJ,IJ],elemsToHtml:[LJ,MJ,RJ],preParseHtml:[zJ],parseElemsHtml:[oZ,iZ,aZ],menus:[{key:"insertTable",factory:function(){return new lZ}},{key:"deleteTable",factory:function(){return new uZ}},{key:"insertTableRow",factory:function(){return new sZ}},{key:"deleteTableRow",factory:function(){return new cZ}},{key:"insertTableCol",factory:function(){return new wZ}},{key:"deleteTableCol",factory:function(){return new xZ}},{key:"tableHeader",factory:function(){return new CZ}},{key:"tableFullWidth",factory:function(){return new EZ}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,l=e.selectAll,u=e;return u.insertBreak=function(){null==Tw.getSelectedNodeByType(u,"table")?t():u.insertText("\n")},u.deleteBackward=function(e){if(!mY(u)){var t=u.selection;if(t){var r=it.before(u,t);if(r){var o=yY(u,r),i=yY(u,t);if(o&&!i)return}}n(e)}},u.handleTab=function(){var t;if(Tw.getSelectedNodeByType(u,"table")){var n=it.above(e);Tw.checkNodeType(n[0],"table-cell")&&Jt.select(e,n[1]);var r=it.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=it.above(e,{at:r[1]}))&&void 0!==t?t:r),Jt.select(e,r[1]);else{var o=u.children||[],i=o.length;if(Tw.checkNodeType(o[i-1],"table")){var l=Tw.genEmptyParagraph();Jt.insertNodes(u,l,{at:[i]}),u.handleTab()}}}else a()},u.deleteForward=function(e){mY(u)||r(e)},u.normalizeNode=function(e){var t=vY(e,2),n=t[0],r=t[1];if("table"!==Tw.getNodeType(n))return o([n,r]);if(Tw.isLastNode(u,n)){var i=Tw.genEmptyParagraph();Jt.insertNodes(u,i,{at:[r[0]+1]})}},u.insertData=function(e){if(null!=Tw.getSelectedNodeByType(u,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):it.insertText(u,t)}else i(e)},u.selectAll=function(){var e=u.selection;if(null!=e){var t=Tw.getSelectedNodeByType(u,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(gt.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==ft.string(t).length){var o=Tw.findPath(u,t),i={anchor:it.start(u,o),focus:it.end(u,o)};u.select(i)}else l();else l()}else l()}else l()},u}};TD("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"}}),TD("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
83
- /*! *****************************************************************************
84
- Copyright (c) Microsoft Corporation.
85
-
86
- Permission to use, copy, modify, and/or distribute this software for any
87
- purpose with or without fee is hereby granted.
88
-
89
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
90
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
91
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
92
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
93
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
94
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
95
- PERFORMANCE OF THIS SOFTWARE.
96
- ***************************************************************************** */
97
- var kZ=function(){return kZ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kZ.apply(this,arguments)};function DZ(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function AZ(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function OZ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _Z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function BZ(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=OZ(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}var FZ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function jZ(e){var t={exports:{}};return e(t,t.exports),t.exports}var PZ,TZ,NZ=function(e){return e&&e.Math==Math&&e},IZ=NZ("object"==typeof globalThis&&globalThis)||NZ("object"==typeof window&&window)||NZ("object"==typeof self&&self)||NZ("object"==typeof FZ&&FZ)||function(){return this}()||Function("return this")(),LZ=function(e){try{return!!e()}catch(e){return!0}},MZ=!LZ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),RZ=Function.prototype.call,zZ=RZ.bind?RZ.bind(RZ):function(){return RZ.apply(RZ,arguments)},VZ={}.propertyIsEnumerable,$Z=Object.getOwnPropertyDescriptor,UZ={f:$Z&&!VZ.call({1:2},1)?function(e){var t=$Z(this,e);return!!t&&t.enumerable}:VZ},HZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},WZ=Function.prototype,qZ=WZ.bind,KZ=WZ.call,GZ=qZ&&qZ.bind(KZ),YZ=qZ?function(e){return e&&GZ(KZ,e)}:function(e){return e&&function(){return KZ.apply(e,arguments)}},JZ=YZ({}.toString),ZZ=YZ("".slice),XZ=function(e){return ZZ(JZ(e),8,-1)},QZ=IZ.Object,eX=YZ("".split),tX=LZ((function(){return!QZ("z").propertyIsEnumerable(0)}))?function(e){return"String"==XZ(e)?eX(e,""):QZ(e)}:QZ,nX=IZ.TypeError,rX=function(e){if(null==e)throw nX("Can't call method on "+e);return e},oX=function(e){return tX(rX(e))},iX=function(e){return"function"==typeof e},aX=function(e){return"object"==typeof e?null!==e:iX(e)},lX=function(e){return iX(e)?e:void 0},uX=function(e,t){return arguments.length<2?lX(IZ[e]):IZ[e]&&IZ[e][t]},sX=YZ({}.isPrototypeOf),cX=uX("navigator","userAgent")||"",fX=IZ.process,dX=IZ.Deno,pX=fX&&fX.versions||dX&&dX.version,hX=pX&&pX.v8;hX&&(TZ=(PZ=hX.split("."))[0]>0&&PZ[0]<4?1:+(PZ[0]+PZ[1])),!TZ&&cX&&(!(PZ=cX.match(/Edge\/(\d+)/))||PZ[1]>=74)&&(PZ=cX.match(/Chrome\/(\d+)/))&&(TZ=+PZ[1]);var gX=TZ,vX=!!Object.getOwnPropertySymbols&&!LZ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gX&&gX<41})),mX=vX&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yX=IZ.Object,bX=mX?function(e){return"symbol"==typeof e}:function(e){var t=uX("Symbol");return iX(t)&&sX(t.prototype,yX(e))},wX=IZ.String,xX=function(e){try{return wX(e)}catch(e){return"Object"}},CX=IZ.TypeError,EX=function(e){if(iX(e))return e;throw CX(xX(e)+" is not a function")},SX=function(e,t){var n=e[t];return null==n?void 0:EX(n)},kX=IZ.TypeError,DX=Object.defineProperty,AX=function(e,t){try{DX(IZ,e,{value:t,configurable:!0,writable:!0})}catch(c){IZ[e]=t}return t},OX=IZ["__core-js_shared__"]||AX("__core-js_shared__",{}),_X=jZ((function(e){(e.exports=function(e,t){return OX[e]||(OX[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),BX=IZ.Object,FX=function(e){return BX(rX(e))},jX=YZ({}.hasOwnProperty),PX=Object.hasOwn||function(e,t){return jX(FX(e),t)},TX=0,NX=Math.random(),IX=YZ(1..toString),LX=function(e){return"Symbol("+(void 0===e?"":e)+")_"+IX(++TX+NX,36)},MX=_X("wks"),RX=IZ.Symbol,zX=RX&&RX.for,VX=mX?RX:RX&&RX.withoutSetter||LX,$X=function(e){if(!PX(MX,e)||!vX&&"string"!=typeof MX[e]){var t="Symbol."+e;vX&&PX(RX,e)?MX[e]=RX[e]:MX[e]=mX&&zX?zX(t):VX(t)}return MX[e]},UX=IZ.TypeError,HX=$X("toPrimitive"),WX=function(e,t){if(!aX(e)||bX(e))return e;var n,r=SX(e,HX);if(r){if(void 0===t&&(t="default"),n=zZ(r,e,t),!aX(n)||bX(n))return n;throw UX("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&iX(n=e.toString)&&!aX(r=zZ(n,e)))return r;if(iX(n=e.valueOf)&&!aX(r=zZ(n,e)))return r;if("string"!==t&&iX(n=e.toString)&&!aX(r=zZ(n,e)))return r;throw kX("Can't convert object to primitive value")}(e,t)},qX=function(e){var t=WX(e,"string");return bX(t)?t:t+""},KX=IZ.document,GX=aX(KX)&&aX(KX.createElement),YX=function(e){return GX?KX.createElement(e):{}},JX=!MZ&&!LZ((function(){return 7!=Object.defineProperty(YX("div"),"a",{get:function(){return 7}}).a})),ZX=Object.getOwnPropertyDescriptor,XX={f:MZ?ZX:function(e,t){if(e=oX(e),t=qX(t),JX)try{return ZX(e,t)}catch(e){}if(PX(e,t))return HZ(!zZ(UZ.f,e,t),e[t])}},QX=IZ.String,eQ=IZ.TypeError,tQ=function(e){if(aX(e))return e;throw eQ(QX(e)+" is not an object")},nQ=IZ.TypeError,rQ=Object.defineProperty,oQ={f:MZ?rQ:function(e,t,n){if(tQ(e),t=qX(t),tQ(n),JX)try{return rQ(e,t,n)}catch(e){}if("get"in n||"set"in n)throw nQ("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},iQ=MZ?function(e,t,n){return oQ.f(e,t,HZ(1,n))}:function(e,t,n){return e[t]=n,e},aQ=YZ(Function.toString);iX(OX.inspectSource)||(OX.inspectSource=function(e){return aQ(e)});var lQ,uQ,sQ,cQ=OX.inspectSource,fQ=IZ.WeakMap,dQ=iX(fQ)&&/native code/.test(cQ(fQ)),pQ=_X("keys"),hQ=function(e){return pQ[e]||(pQ[e]=LX(e))},gQ={},vQ=IZ.TypeError,mQ=IZ.WeakMap;if(dQ||OX.state){var yQ=OX.state||(OX.state=new mQ),bQ=YZ(yQ.get),wQ=YZ(yQ.has),xQ=YZ(yQ.set);lQ=function(e,t){if(wQ(yQ,e))throw new vQ("Object already initialized");return t.facade=e,xQ(yQ,e,t),t},uQ=function(e){return bQ(yQ,e)||{}},sQ=function(e){return wQ(yQ,e)}}else{var CQ=hQ("state");gQ[CQ]=!0,lQ=function(e,t){if(PX(e,CQ))throw new vQ("Object already initialized");return t.facade=e,iQ(e,CQ,t),t},uQ=function(e){return PX(e,CQ)?e[CQ]:{}},sQ=function(e){return PX(e,CQ)}}var EQ={set:lQ,get:uQ,has:sQ,enforce:function(e){return sQ(e)?uQ(e):lQ(e,{})},getterFor:function(e){return function(t){var n;if(!aX(t)||(n=uQ(t)).type!==e)throw vQ("Incompatible receiver, "+e+" required");return n}}},SQ=Function.prototype,kQ=MZ&&Object.getOwnPropertyDescriptor,DQ=PX(SQ,"name"),AQ={EXISTS:DQ,PROPER:DQ&&"something"===function(){}.name,CONFIGURABLE:DQ&&(!MZ||MZ&&kQ(SQ,"name").configurable)},OQ=jZ((function(e){var t=AQ.CONFIGURABLE,n=EQ.get,r=EQ.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;iX(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!PX(i,"name")||t&&i.name!==f)&&iQ(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==IZ?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:iQ(e,n,i)):s?e[n]=i:AX(n,i)})(Function.prototype,"toString",(function(){return iX(this)&&n(this).source||cQ(this)}))})),_Q=Math.ceil,BQ=Math.floor,FQ=function(e){var t=+e;return t!=t||0===t?0:(t>0?BQ:_Q)(t)},jQ=Math.max,PQ=Math.min,TQ=function(e,t){var n=FQ(e);return n<0?jQ(n+t,0):PQ(n,t)},NQ=Math.min,IQ=function(e){return e>0?NQ(FQ(e),9007199254740991):0},LQ=function(e){return IQ(e.length)},MQ=function(e){return function(t,n,r){var o,i=oX(t),a=LQ(i),l=TQ(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},RQ={includes:MQ(!0),indexOf:MQ(!1)},zQ=RQ.indexOf,VQ=YZ([].push),$Q=function(e,t){var n,r=oX(e),o=0,i=[];for(n in r)!PX(gQ,n)&&PX(r,n)&&VQ(i,n);for(;t.length>o;)PX(r,n=t[o++])&&(~zQ(i,n)||VQ(i,n));return i},UQ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],HQ=UQ.concat("length","prototype"),WQ={f:Object.getOwnPropertyNames||function(e){return $Q(e,HQ)}},qQ={f:Object.getOwnPropertySymbols},KQ=YZ([].concat),GQ=uX("Reflect","ownKeys")||function(e){var t=WQ.f(tQ(e)),n=qQ.f;return n?KQ(t,n(e)):t},YQ=function(e,t){for(var n=GQ(t),r=oQ.f,o=XX.f,i=0;i<n.length;i++){var a=n[i];PX(e,a)||r(e,a,o(t,a))}},JQ=/#|\.prototype\./,ZQ=function(e,t){var n=QQ[XQ(e)];return n==t0||n!=e0&&(iX(t)?LZ(t):!!t)},XQ=ZQ.normalize=function(e){return String(e).replace(JQ,".").toLowerCase()},QQ=ZQ.data={},e0=ZQ.NATIVE="N",t0=ZQ.POLYFILL="P",n0=ZQ,r0=XX.f,o0=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?IZ:s?IZ[l]||AX(l,{}):(IZ[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=r0(n,r))&&a.value:n[r],!n0(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;YQ(i,o)}(e.sham||o&&o.sham)&&iQ(i,"sham",!0),OQ(n,r,i,e)}},i0={};i0[$X("toStringTag")]="z";var a0,l0="[object z]"===String(i0),u0=$X("toStringTag"),s0=IZ.Object,c0="Arguments"==XZ(function(){return arguments}()),f0=l0?XZ:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s0(e),u0))?n:c0?XZ(t):"Object"==(r=XZ(t))&&iX(t.callee)?"Arguments":r},d0=IZ.String,p0=function(e){if("Symbol"===f0(e))throw TypeError("Cannot convert a Symbol value to a string");return d0(e)},h0="\t\n\v\f\r                 \u2028\u2029\ufeff",g0=YZ("".replace),v0="["+h0+"]",m0=RegExp("^"+v0+v0+"*"),y0=RegExp(v0+v0+"*$"),b0=function(e){return function(t){var n=p0(rX(t));return 1&e&&(n=g0(n,m0,"")),2&e&&(n=g0(n,y0,"")),n}},w0={start:b0(1),end:b0(2),trim:b0(3)},x0=AQ.PROPER,C0=w0.trim;function E0(e){return e.length?e[0].tagName.toLowerCase():""}function S0(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=uo(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}o0({target:"String",proto:!0,forced:(a0="trim",LZ((function(){return!!h0[a0]()||"​…᠎"!=="​…᠎"[a0]()||x0&&h0[a0].name!==a0})))},{trim:function(){return C0(this)}}),o0({global:!0},{globalThis:IZ}),Bo&&(uo.fn.append=Bo),mo&&(uo.fn.on=mo),Vo&&(uo.fn.focus=Vo),po&&(uo.fn.attr=po),vo&&(uo.fn.val=vo),Ao&&(uo.fn.html=Ao),jo&&(uo.fn.parent=jo),fo&&(uo.fn.hasClass=fo),Lo&&(uo.fn.empty=Lo);var k0,D0={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,l=o.poster,u=void 0===l?"":l,s=o.width,c=void 0===s?"auto":s,f=o.height,d=void 0===f?"auto":f,p=Tw.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){var h=S0(a,c,d);r=Ua("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:h})}else{var g=Ua("video",{poster:u,controls:!0},Ua("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(g.data.width=c),"auto"!==d&&(g.data.height=d),r=Ua("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},g)}return wa("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},A0={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,l=n.width,u=void 0===l?"auto":l,s=n.height,c=void 0===s?"auto":s,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=S0(o,u,c):f+='<video poster="'+a+'" controls="true" width="'+u+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},O0=Object.keys||function(e){return $Q(e,UQ)},_0=MZ?Object.defineProperties:function(e,t){tQ(e);for(var n,r=oX(t),o=O0(t),i=o.length,a=0;i>a;)oQ.f(e,n=o[a++],r[n]);return e},B0=uX("document","documentElement"),F0=hQ("IE_PROTO"),j0=function(){},P0=function(e){return"<script>"+e+"<\/script>"},T0=function(e){e.write(P0("")),e.close();var t=e.parentWindow.Object;return e=null,t},N0=function(){try{k0=new ActiveXObject("htmlfile")}catch(e){}var e,t;N0="undefined"!=typeof document?document.domain&&k0?T0(k0):((t=YX("iframe")).style.display="none",B0.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(P0("document.F=Object")),e.close(),e.F):T0(k0);for(var n=UQ.length;n--;)delete N0.prototype[UQ[n]];return N0()};gQ[F0]=!0;var I0=Object.create||function(e,t){var n;return null!==e?(j0.prototype=tQ(e),n=new j0,j0.prototype=null,n[F0]=e):n=N0(),void 0===t?n:_0(n,t)},L0=$X("unscopables"),M0=Array.prototype;null==M0[L0]&&oQ.f(M0,L0,{configurable:!0,value:I0(null)});var R0=function(e){M0[L0][e]=!0},z0=RQ.includes;o0({target:"Array",proto:!0},{includes:function(e){return z0(this,e,arguments.length>1?arguments[1]:void 0)}}),R0("includes");var V0={selector:"iframe,video,p",preParseHtml:function(e){var t=uo(e),n=t;if("p"===E0(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=uo(o))}}var a=E0(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var l=uo('<div data-w-e-type="video" data-w-e-is-void></div>');return l.append(n),l[0]}},$0=YZ(YZ.bind),U0=function(e,t){return EX(e),void 0===t?e:$0?$0(e,t):function(){return e.apply(t,arguments)}},H0=Array.isArray||function(e){return"Array"==XZ(e)},W0=function(){},q0=[],K0=uX("Reflect","construct"),G0=/^\s*(?:class|function)\b/,Y0=YZ(G0.exec),J0=!G0.exec(W0),Z0=function(e){if(!iX(e))return!1;try{return K0(W0,q0,e),!0}catch(e){return!1}},X0=!K0||LZ((function(){var e;return Z0(Z0.call)||!Z0(Object)||!Z0((function(){e=!0}))||e}))?function(e){if(!iX(e))return!1;switch(f0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return J0||!!Y0(G0,cQ(e))}:Z0,Q0=$X("species"),e1=IZ.Array,t1=function(e,t){return new(function(e){var t;return H0(e)&&(t=e.constructor,(X0(t)&&(t===e1||H0(t.prototype))||aX(t)&&null===(t=t[Q0]))&&(t=void 0)),void 0===t?e1:t}(e))(0===t?0:t)},n1=YZ([].push),r1=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=FX(u),g=tX(h),v=U0(s,c),m=LQ(g),y=0,b=f||t1,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:n1(w,d)}else switch(e){case 4:return!1;case 7:n1(w,d)}return i?-1:r||o?o:w}},o1={forEach:r1(0),map:r1(1),filter:r1(2),some:r1(3),every:r1(4),find:r1(5),findIndex:r1(6),filterReject:r1(7)},i1=o1.find,a1=!0;"find"in[]&&Array(1).find((function(){a1=!1})),o0({target:"Array",proto:!0,forced:a1},{find:function(e){return i1(this,e,arguments.length>1?arguments[1]:void 0)}}),R0("find");var l1=l0?{}.toString:function(){return"[object "+f0(this)+"]"};function u1(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}l0||OQ(Object.prototype,"toString",l1,{unsafe:!0});var s1,c1,f1={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=uo(e),o="",i="",a="auto",l="auto",u=r.find("iframe");if(u.length>0)return a=u.attr("width")||"auto",l=u.attr("height")||"auto",u1(o=u[0].outerHTML,i,a,l);var s=r.find("video");return(o=s.attr("src")||"")||s.length>0&&(o=s.find("source").attr("src")||""),a=s.attr("width")||"auto",l=s.attr("height")||"auto",u1(o,i=s.attr("poster")||"",a,l)}},d1=function(){var e=tQ(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},p1=IZ.RegExp,h1=LZ((function(){var e=p1("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),g1=h1||LZ((function(){return!p1("a","y").sticky})),v1={BROKEN_CARET:h1||LZ((function(){var e=p1("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:g1,UNSUPPORTED_Y:h1},m1=IZ.RegExp,y1=LZ((function(){var e=m1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),b1=IZ.RegExp,w1=LZ((function(){var e=b1("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),x1=EQ.get,C1=_X("native-string-replace",String.prototype.replace),E1=RegExp.prototype.exec,S1=E1,k1=YZ("".charAt),D1=YZ("".indexOf),A1=YZ("".replace),O1=YZ("".slice),_1=(c1=/b*/g,zZ(E1,s1=/a/,"a"),zZ(E1,c1,"a"),0!==s1.lastIndex||0!==c1.lastIndex),B1=v1.BROKEN_CARET,F1=void 0!==/()??/.exec("")[1];(_1||F1||B1||y1||w1)&&(S1=function(e){var t,n,r,o,i,a,l,u=this,s=x1(u),c=p0(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=zZ(S1,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=B1&&u.sticky,h=zZ(d1,u),g=u.source,v=0,m=c;if(p&&(h=A1(h,"y",""),-1===D1(h,"g")&&(h+="g"),m=O1(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==k1(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),F1&&(n=new RegExp("^"+g+"$(?!\\s)",h)),_1&&(r=u.lastIndex),o=zZ(E1,p?n:u,m),p?o?(o.input=O1(o.input,v),o[0]=O1(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:_1&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),F1&&o&&o.length>1&&zZ(C1,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=I0(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var j1=S1;o0({target:"RegExp",proto:!0,forced:/./.exec!==j1},{exec:j1});var P1=Function.prototype,T1=P1.apply,N1=P1.bind,I1=P1.call,L1="object"==typeof Reflect&&Reflect.apply||(N1?I1.bind(T1):function(){return I1.apply(T1,arguments)}),M1=$X("species"),R1=RegExp.prototype,z1=YZ("".charAt),V1=YZ("".charCodeAt),$1=YZ("".slice),U1=function(e){return function(t,n){var r,o,i=p0(rX(t)),a=FQ(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=V1(i,a))<55296||r>56319||a+1===l||(o=V1(i,a+1))<56320||o>57343?e?z1(i,a):r:e?$1(i,a,a+2):o-56320+(r-55296<<10)+65536}},H1={codeAt:U1(!1),charAt:U1(!0)},W1=H1.charAt,q1=function(e,t,n){return t+(n?W1(e,t).length:1)},K1=Math.floor,G1=YZ("".charAt),Y1=YZ("".replace),J1=YZ("".slice),Z1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,X1=/\$([$&'`]|\d{1,2})/g,Q1=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,u=X1;return void 0!==o&&(o=FX(o),u=Z1),Y1(i,u,(function(i,u){var s;switch(G1(u,0)){case"$":return"$";case"&":return e;case"`":return J1(t,0,n);case"'":return J1(t,a);case"<":s=o[J1(u,1,-1)];break;default:var c=+u;if(0===c)return i;if(c>l){var f=K1(c/10);return 0===f?i:f<=l?void 0===r[f-1]?G1(u,1):r[f-1]+G1(u,1):i}s=r[c-1]}return void 0===s?"":s}))},e2=IZ.TypeError,t2=function(e,t){var n=e.exec;if(iX(n)){var r=zZ(n,e,t);return null!==r&&tQ(r),r}if("RegExp"===XZ(e))return zZ(j1,e,t);throw e2("RegExp#exec called on incompatible receiver")},n2=$X("replace"),r2=Math.max,o2=Math.min,i2=YZ([].concat),a2=YZ([].push),l2=YZ("".indexOf),u2=YZ("".slice),s2="$0"==="a".replace(/./,"$0"),c2=!!/./[n2]&&""===/./[n2]("a","$0");function f2(e){return void 0===e&&(e="r"),e+"-"+Ci()}!function(e,t,n,r){var o=$X(e),i=!LZ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!LZ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[M1]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=YZ(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=YZ(e),u=t.exec;return u===j1||u===R1.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));OQ(String.prototype,e,u[0]),OQ(R1,o,u[1])}r&&iQ(R1[o],"sham",!0)}("replace",(function(e,t,n){var r=c2?"$":"$0";return[function(e,n){var r=rX(this),o=null==e?void 0:SX(e,n2);return o?zZ(o,e,r,n):zZ(t,p0(r),e,n)},function(e,o){var i=tQ(this),a=p0(e);if("string"==typeof o&&-1===l2(o,r)&&-1===l2(o,"$<")){var l=n(t,i,a,o);if(l.done)return l.value}var u=iX(o);u||(o=p0(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=t2(i,a);if(null===d)break;if(a2(f,d),!s)break;""===p0(d[0])&&(i.lastIndex=q1(a,IQ(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var m=p0((d=f[v])[0]),y=r2(o2(FQ(d.index),a.length),0),b=[],w=1;w<d.length;w++)a2(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(u){var C=i2([m],b,y,a);void 0!==x&&a2(C,x);var E=p0(L1(o,void 0,C))}else E=Q1(m,a,y,b,x,o);y>=g&&(h+=u2(a,g,y)+E,g=y+m.length)}return h+u2(a,g)}]}),!!LZ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!s2||c2);var d2=IZ.Promise,p2=function(e,t,n){for(var r in t)OQ(e,r,t[r],n);return e},h2=IZ.String,g2=IZ.TypeError,v2=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=YZ(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return tQ(n),function(e){if("object"==typeof e||iX(e))return e;throw g2("Can't set "+h2(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),m2=oQ.f,y2=$X("toStringTag"),b2=function(e,t,n){e&&!PX(e=n?e:e.prototype,y2)&&m2(e,y2,{configurable:!0,value:t})},w2=$X("species"),x2=IZ.TypeError,C2=function(e,t){if(sX(t,e))return e;throw x2("Incorrect invocation")},E2={},S2=$X("iterator"),k2=Array.prototype,D2=$X("iterator"),A2=function(e){if(null!=e)return SX(e,D2)||SX(e,"@@iterator")||E2[f0(e)]},O2=IZ.TypeError,_2=function(e,t,n){var r,o;tQ(e);try{if(!(r=SX(e,"return"))){if("throw"===t)throw n;return n}r=zZ(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return tQ(r),n},B2=IZ.TypeError,F2=function(e,t){this.stopped=e,this.result=t},j2=F2.prototype,P2=function(e,t,n){var r,o,i,a,l,u,s,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=U0(t,f),v=function(e){return r&&_2(r,"normal",e),new F2(!0,e)},m=function(e){return d?(tQ(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=A2(e)))throw B2(xX(e)+" is not iterable");if(void 0!==(c=o)&&(E2.Array===c||k2[S2]===c)){for(i=0,a=LQ(e);a>i;i++)if((l=m(e[i]))&&sX(j2,l))return l;return new F2(!1)}r=function(e,t){var n=arguments.length<2?A2(e):t;if(EX(n))return tQ(zZ(n,e));throw O2(xX(e)+" is not iterable")}(e,o)}for(u=r.next;!(s=zZ(u,r)).done;){try{l=m(s.value)}catch(e){_2(r,"throw",e)}if("object"==typeof l&&l&&sX(j2,l))return l}return new F2(!1)},T2=$X("iterator"),N2=!1;try{var I2=0,L2={next:function(){return{done:!!I2++}},return:function(){N2=!0}};L2[T2]=function(){return this},Array.from(L2,(function(){throw 2}))}catch(f){}var M2,R2,z2,V2,$2=function(e,t){if(!t&&!N2)return!1;var n=!1;try{var r={};r[T2]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},U2=IZ.TypeError,H2=$X("species"),W2=function(e,t){var n,r=tQ(e).constructor;return void 0===r||null==(n=tQ(r)[H2])?t:function(e){if(X0(e))return e;throw U2(xX(e)+" is not a constructor")}(n)},q2=YZ([].slice),K2=/(?:ipad|iphone|ipod).*applewebkit/i.test(cX),G2="process"==XZ(IZ.process),Y2=IZ.setImmediate,J2=IZ.clearImmediate,Z2=IZ.process,X2=IZ.Dispatch,Q2=IZ.Function,e4=IZ.MessageChannel,t4=IZ.String,n4=0,r4={};try{M2=IZ.location}catch(f){}var o4=function(e){if(PX(r4,e)){var t=r4[e];delete r4[e],t()}},i4=function(e){return function(){o4(e)}},a4=function(e){o4(e.data)},l4=function(e){IZ.postMessage(t4(e),M2.protocol+"//"+M2.host)};Y2&&J2||(Y2=function(e){var t=q2(arguments,1);return r4[++n4]=function(){L1(iX(e)?e:Q2(e),void 0,t)},R2(n4),n4},J2=function(e){delete r4[e]},G2?R2=function(e){Z2.nextTick(i4(e))}:X2&&X2.now?R2=function(e){X2.now(i4(e))}:e4&&!K2?(V2=(z2=new e4).port2,z2.port1.onmessage=a4,R2=U0(V2.postMessage,V2)):IZ.addEventListener&&iX(IZ.postMessage)&&!IZ.importScripts&&M2&&"file:"!==M2.protocol&&!LZ(l4)?(R2=l4,IZ.addEventListener("message",a4,!1)):R2="onreadystatechange"in YX("script")?function(e){B0.appendChild(YX("script")).onreadystatechange=function(){B0.removeChild(this),o4(e)}}:function(e){setTimeout(i4(e),0)});var u4,s4,c4,f4,d4,p4,h4,g4,v4={set:Y2,clear:J2},m4=/ipad|iphone|ipod/i.test(cX)&&void 0!==IZ.Pebble,y4=/web0s(?!.*chrome)/i.test(cX),b4=XX.f,w4=v4.set,x4=IZ.MutationObserver||IZ.WebKitMutationObserver,C4=IZ.document,E4=IZ.process,S4=IZ.Promise,k4=b4(IZ,"queueMicrotask"),D4=k4&&k4.value;D4||(u4=function(){var e,t;for(G2&&(e=E4.domain)&&e.exit();s4;){t=s4.fn,s4=s4.next;try{t()}catch(e){throw s4?f4():c4=void 0,e}}c4=void 0,e&&e.enter()},K2||G2||y4||!x4||!C4?!m4&&S4&&S4.resolve?((h4=S4.resolve(void 0)).constructor=S4,g4=U0(h4.then,h4),f4=function(){g4(u4)}):G2?f4=function(){E4.nextTick(u4)}:(w4=U0(w4,IZ),f4=function(){w4(u4)}):(d4=!0,p4=C4.createTextNode(""),new x4(u4).observe(p4,{characterData:!0}),f4=function(){p4.data=d4=!d4}));var A4,O4,_4,B4,F4=D4||function(e){var t={fn:e,next:void 0};c4&&(c4.next=t),s4||(s4=t,f4()),c4=t},j4=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=EX(t),this.reject=EX(n)},P4={f:function(e){return new j4(e)}},T4=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},N4="object"==typeof window,I4=v4.set,L4=$X("species"),M4="Promise",R4=EQ.getterFor(M4),z4=EQ.set,V4=EQ.getterFor(M4),$4=d2&&d2.prototype,U4=d2,H4=$4,W4=IZ.TypeError,q4=IZ.document,K4=IZ.process,G4=P4.f,Y4=G4,J4=!!(q4&&q4.createEvent&&IZ.dispatchEvent),Z4=iX(IZ.PromiseRejectionEvent),X4=!1,Q4=n0(M4,(function(){var e=cQ(U4),t=e!==String(U4);if(!t&&66===gX)return!0;if(gX>=51&&/native code/.test(e))return!1;var n=new U4((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[L4]=r,!(X4=n.then((function(){}))instanceof r)||!t&&N4&&!Z4})),e3=Q4||!$2((function(e){U4.all(e).catch((function(){}))})),t3=function(e){var t;return!(!aX(e)||!iX(t=e.then))&&t},n3=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;F4((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,l,u,s=n[i++],c=o?s.ok:s.fail,f=s.resolve,d=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&a3(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),u=!0)),a===s.promise?d(W4("Promise-chain cycle")):(l=t3(a))?zZ(l,a,f,d):f(a)):d(r)}catch(e){p&&!u&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&o3(e)}))}},r3=function(e,t,n){var r,o;J4?((r=q4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),IZ.dispatchEvent(r)):r={promise:t,reason:n},!Z4&&(o=IZ["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=IZ.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},o3=function(e){zZ(I4,IZ,(function(){var t,n=e.facade,r=e.value;if(i3(e)&&(t=T4((function(){G2?K4.emit("unhandledRejection",r,n):r3("unhandledrejection",n,r)})),e.rejection=G2||i3(e)?2:1,t.error))throw t.value}))},i3=function(e){return 1!==e.rejection&&!e.parent},a3=function(e){zZ(I4,IZ,(function(){var t=e.facade;G2?K4.emit("rejectionHandled",t):r3("rejectionhandled",t,e.value)}))},l3=function(e,t,n){return function(r){e(t,r,n)}},u3=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,n3(e,!0))},s3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw W4("Promise can't be resolved itself");var r=t3(t);r?F4((function(){var n={done:!1};try{zZ(r,t,l3(s3,n,e),l3(u3,n,e))}catch(t){u3(n,t,e)}})):(e.value=t,e.state=1,n3(e,!1))}catch(t){u3({done:!1},t,e)}}};if(Q4&&(H4=(U4=function(e){C2(this,H4),EX(e),zZ(A4,this);var t=R4(this);try{e(l3(s3,t),l3(u3,t))}catch(e){u3(t,e)}}).prototype,(A4=function(e){z4(this,{type:M4,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p2(H4,{then:function(e,t){var n=V4(this),r=n.reactions,o=G4(W2(this,U4));return o.ok=!iX(e)||e,o.fail=iX(t)&&t,o.domain=G2?K4.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&n3(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),O4=function(){var e=new A4,t=R4(e);this.promise=e,this.resolve=l3(s3,t),this.reject=l3(u3,t)},P4.f=G4=function(e){return e===U4||e===_4?new O4(e):Y4(e)},iX(d2)&&$4!==Object.prototype)){B4=$4.then,X4||(OQ($4,"then",(function(e,t){var n=this;return new U4((function(e,t){zZ(B4,n,e,t)})).then(e,t)}),{unsafe:!0}),OQ($4,"catch",H4.catch,{unsafe:!0}));try{delete $4.constructor}catch(f){}v2&&v2($4,H4)}function c3(e,t,n){return void 0===n&&(n=""),DZ(this,void 0,void 0,(function(){var r,o,i,a,l,u,s;return AZ(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t)]):[2];case 1:return"string"==typeof(l=c.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,a(t)];case 2:return 0!==(u=c.sent()).trim().indexOf("<iframe ")&&(u=u.replace(/</g,"&lt;").replace(/>/g,"&gt;")),s={type:"video",src:u,poster:n,children:[{text:""}]},Promise.resolve().then((function(){Jt.insertNodes(e,s)})),o(s),[2]}}))}))}function f3(){return f2("w-e-insert-video")}o0({global:!0,wrap:!0,forced:Q4},{Promise:U4}),b2(U4,M4,!1),function(e){var t=uX(e),n=oQ.f;MZ&&t&&!t[w2]&&n(t,w2,{configurable:!0,get:function(){return this}})}(M4),_4=uX(M4),o0({target:M4,stat:!0,forced:Q4},{reject:function(e){var t=G4(this);return zZ(t.reject,void 0,e),t.promise}}),o0({target:M4,stat:!0,forced:Q4},{resolve:function(e){return function(e,t){if(tQ(e),aX(t)&&t.constructor===e)return t;var n=P4.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),o0({target:M4,stat:!0,forced:e3},{all:function(e){var t=this,n=G4(t),r=n.resolve,o=n.reject,i=T4((function(){var n=EX(t.resolve),i=[],a=0,l=1;P2(e,(function(e){var u=a++,s=!1;l++,zZ(n,t,e).then((function(e){s||(s=!0,i[u]=e,--l||r(i))}),o)})),--l||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=G4(t),r=n.reject,o=T4((function(){var o=EX(t.resolve);P2(e,(function(e){zZ(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var d3=function(){function e(){this.title=LD("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=f3(),this.posterInputId=f3(),this.buttonId=f3()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||!!Tw.getSelectedElems(e).some((function(t){return"pre"===Tw.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=_Z(gk(LD("videoModule.videoSrc"),r,LD("videoModule.videoSrcPlaceHolder")),2),l=a[0],u=a[1],s=_Z(gk(LD("videoModule.videoPoster"),o,LD("videoModule.videoPosterPlaceHolder")),2),c=s[0],f=s[1],d=uo(u),p=uo(f),h=_Z(mk(i,LD("videoModule.ok")),1)[0];if(null==this.$content){var g=uo("<div></div>");g.on("click","#"+i,(function(n){return DZ(t,void 0,void 0,(function(){var t,i;return AZ(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,c3(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(l),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),p3=YZ([].join),h3=tX!=Object,g3=function(e,t){var n=[][e];return!!n&&LZ((function(){n.call(null,t||function(){throw 1},1)}))}("join",",");o0({target:"Array",proto:!0,forced:h3||!g3},{join:function(e){return p3(oX(this),void 0===e?",":e)}});var v3,m3,y3,b3=!LZ((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),w3=hQ("IE_PROTO"),x3=IZ.Object,C3=x3.prototype,E3=b3?x3.getPrototypeOf:function(e){var t=FX(e);if(PX(t,w3))return t[w3];var n=t.constructor;return iX(n)&&t instanceof n?n.prototype:t instanceof x3?C3:null},S3=$X("iterator"),k3=!1;[].keys&&("next"in(y3=[].keys())?(m3=E3(E3(y3)))!==Object.prototype&&(v3=m3):k3=!0);var D3=null==v3||LZ((function(){var e={};return v3[S3].call(e)!==e}));D3&&(v3={}),iX(v3[S3])||OQ(v3,S3,(function(){return this}));var A3={IteratorPrototype:v3,BUGGY_SAFARI_ITERATORS:k3},O3=A3.IteratorPrototype,_3=function(){return this},B3=AQ.PROPER,F3=AQ.CONFIGURABLE,j3=A3.IteratorPrototype,P3=A3.BUGGY_SAFARI_ITERATORS,T3=$X("iterator"),N3=function(){return this},I3=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=I0(O3,{next:HZ(+!r,n)}),b2(e,o,!1),E2[o]=_3}(n,t,r);var l,u,s,c=function(e){if(e===o&&g)return g;if(!P3&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[T3]||p["@@iterator"]||o&&p[o],g=!P3&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(l=E3(v.call(new e)))!==Object.prototype&&l.next&&(E3(l)!==j3&&(v2?v2(l,j3):iX(l[T3])||OQ(l,T3,N3)),b2(l,f,!0)),B3&&"values"==o&&h&&"values"!==h.name&&(F3?iQ(p,"name","values"):(d=!0,g=function(){return zZ(h,this)})),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(s in u)(P3||d||!(s in p))&&OQ(p,s,u[s]);else o0({target:t,proto:!0,forced:P3||d},u);return p[T3]!==g&&OQ(p,T3,g,{name:o}),E2[t]=g,u},L3=EQ.set,M3=EQ.getterFor("Array Iterator"),R3=I3(Array,"Array",(function(e,t){L3(this,{type:"Array Iterator",target:oX(e),index:0,kind:t})}),(function(){var e=M3(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");E2.Arguments=E2.Array,R0("keys"),R0("values"),R0("entries");var z3=H1.charAt,V3=EQ.set,$3=EQ.getterFor("String Iterator");I3(String,"String",(function(e){V3(this,{type:"String Iterator",string:p0(e),index:0})}),(function(){var e,t=$3(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=z3(n,r),t.index+=e.length,{value:e,done:!1})}));var U3=function(e,t,n){var r=qX(t);r in e?oQ.f(e,r,HZ(0,n)):e[r]=n},H3=IZ.Array,W3=Math.max,q3=WQ.f,K3="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],G3=function(e){try{return q3(e)}catch(e){return function(e,t,n){for(var r=LQ(e),o=TQ(t,r),i=TQ(void 0===n?r:n,r),a=H3(W3(i-o,0)),l=0;o<i;o++,l++)U3(a,l,e[o]);return a.length=l,a}(K3)}},Y3={f:function(e){return K3&&"Window"==XZ(e)?G3(e):q3(oX(e))}},J3=LZ((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Z3=Object.isExtensible,X3=LZ((function(){Z3(1)}))||J3?function(e){return!!aX(e)&&(!J3||"ArrayBuffer"!=XZ(e))&&(!Z3||Z3(e))}:Z3,Q3=!LZ((function(){return Object.isExtensible(Object.preventExtensions({}))})),e6=jZ((function(e){var t=oQ.f,n=!1,r=LX("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=WQ.f,t=YZ([].splice),o={};o[r]=1,e(o).length&&(WQ.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},o0({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Y3.f}))},fastKey:function(e,t){if(!aX(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!PX(e,r)){if(!X3(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!PX(e,r)){if(!X3(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Q3&&n&&X3(e)&&!PX(e,r)&&i(e),e}};gQ[r]=!0})),t6=e6.getWeakData,n6=EQ.set,r6=EQ.getterFor,o6=o1.find,i6=o1.findIndex,a6=YZ([].splice),l6=0,u6=function(e){return e.frozen||(e.frozen=new s6)},s6=function(){this.entries=[]},c6=function(e,t){return o6(e.entries,(function(e){return e[0]===t}))};s6.prototype={get:function(e){var t=c6(this,e);if(t)return t[1]},has:function(e){return!!c6(this,e)},set:function(e,t){var n=c6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=i6(this.entries,(function(t){return t[0]===e}));return~t&&a6(this.entries,t,1),!!~t}};var f6,d6={getConstructor:function(e,t,n,r){var o=e((function(e,o){C2(e,i),n6(e,{type:t,id:l6++,frozen:void 0}),null!=o&&P2(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=r6(t),l=function(e,t,n){var r=a(e),o=t6(tQ(t),!0);return!0===o?u6(r).set(t,n):o[r.id]=n,e};return p2(i,{delete:function(e){var t=a(this);if(!aX(e))return!1;var n=t6(e);return!0===n?u6(t).delete(e):n&&PX(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!aX(e))return!1;var n=t6(e);return!0===n?u6(t).has(e):n&&PX(n,t.id)}}),p2(i,n?{get:function(e){var t=a(this);if(aX(e)){var n=t6(e);return!0===n?u6(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return l(this,e,t)}}:{add:function(e){return l(this,e,!0)}}),o}},p6=EQ.enforce,h6=!IZ.ActiveXObject&&"ActiveXObject"in IZ,g6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v6=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=IZ[e],l=a&&a.prototype,u=a,s={},c=function(e){var t=YZ(l[e]);OQ(l,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!aX(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!aX(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!aX(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(n0(e,!iX(a)||!(o||l.forEach&&!LZ((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),e6.enable();else if(n0(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=LZ((function(){f.has(1)})),h=$2((function(e){new a(e)})),g=!o&&LZ((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(e,t){C2(e,l);var n=function(e,t,n){var r,o;return v2&&iX(r=t.constructor)&&r!==n&&aX(o=r.prototype)&&o!==n.prototype&&v2(e,o),e}(new a,e,u);return null!=t&&P2(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=l,l.constructor=u),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&l.clear&&delete l.clear}return s[e]=u,o0({global:!0,forced:u!=a},s),b2(u,e),o||n.setStrong(u,e,r),u}("WeakMap",g6,d6);if(dQ&&h6){f6=d6.getConstructor(g6,"WeakMap",!0),e6.enable();var m6=v6.prototype,y6=YZ(m6.delete),b6=YZ(m6.has),w6=YZ(m6.get),x6=YZ(m6.set);p2(m6,{delete:function(e){if(aX(e)&&!X3(e)){var t=p6(this);return t.frozen||(t.frozen=new f6),y6(this,e)||t.frozen.delete(e)}return y6(this,e)},has:function(e){if(aX(e)&&!X3(e)){var t=p6(this);return t.frozen||(t.frozen=new f6),b6(this,e)||t.frozen.has(e)}return b6(this,e)},get:function(e){if(aX(e)&&!X3(e)){var t=p6(this);return t.frozen||(t.frozen=new f6),b6(this,e)?w6(this,e):t.frozen.get(e)}return w6(this,e)},set:function(e,t){if(aX(e)&&!X3(e)){var n=p6(this);n.frozen||(n.frozen=new f6),b6(this,e)?x6(this,e,t):n.frozen.set(e,t)}else x6(this,e,t);return this}})}var C6={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},E6=YX("span").classList,S6=E6&&E6.constructor&&E6.constructor.prototype,k6=S6===Object.prototype?void 0:S6,D6=$X("iterator"),A6=$X("toStringTag"),O6=R3.values,_6=function(e,t){if(e){if(e[D6]!==O6)try{iQ(e,D6,O6)}catch(t){e[D6]=O6}if(e[A6]||iQ(e,A6,t),C6[t])for(var n in R3)if(e[n]!==R3[n])try{iQ(e,n,R3[n])}catch(t){e[n]=R3[n]}}};for(var B6 in C6)_6(IZ[B6]&&IZ[B6].prototype,B6);_6(k6,"DOMTokenList");var F6=AQ.EXISTS,j6=oQ.f,P6=Function.prototype,T6=YZ(P6.toString),N6=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,I6=YZ(N6.exec);MZ&&!F6&&j6(P6,"name",{configurable:!0,get:function(){try{return I6(N6,T6(this))[1]}catch(f){return""}}});var L6=$X("species"),M6=function(e){return gX>=51||!LZ((function(){var t=[];return(t.constructor={})[L6]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("slice"),R6=$X("species"),z6=IZ.Array,V6=Math.max;function $6(e){return e.getMenuConfig("uploadVideo")}o0({target:"Array",proto:!0,forced:!M6},{slice:function(e,t){var n,r,o,i=oX(this),a=LQ(i),l=TQ(e,a),u=TQ(void 0===t?a:t,a);if(H0(i)&&(n=i.constructor,(X0(n)&&(n===z6||H0(n.prototype))||aX(n)&&null===(n=n[R6]))&&(n=void 0),n===z6||void 0===n))return q2(i,l,u);for(r=new(void 0===n?z6:n)(V6(u-l,0)),o=0;l<u;l++,o++)l in i&&U3(r,o,i[l]);return r.length=o,r}});var U6=new WeakMap;function H6(e,t){return DZ(this,void 0,void 0,(function(){var n,r,o,i;return AZ(this,(function(a){switch(a.label){case 0:return n=function(e){var t=U6.get(e);if(null!=t)return t;var n=$6(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,l=n.onError;return t=$k(kZ(kZ({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)a(n,(function(t,n){return c3(e,t,n)}));else{var o=n.errno,l=void 0===o?1:o,u=n.data,s=void 0===u?{}:u;if(0!==l)return console.error("'"+t.name+"' upload failed",n),void i(t,n);var c=s.url,f=void 0===c?"":c,d=s.poster;c3(e,f,void 0===d?"":d),r(t,n)}},onError:function(e,t,n){var r=e.name;console.error("'"+r+" upload error",t,n),l&&l(e,t,n)}})),U6.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var W6=function(){function e(){this.title=LD("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t){return c3(e,t)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var l=uo("body"),u=uo('<input type="file" '+a+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var t=u[0].files;!function(e,t){var n,r;DZ(this,void 0,void 0,(function(){var o,i,a,l,u,s;return AZ(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=$6(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=BZ(o),c.label=2;case 2:return[4,a.next()];case 3:return(l=c.sent()).done?[3,8]:(u=l.value,i?[4,i(u,(function(t,n){return c3(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,H6(e,u)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return s=c.sent(),n={error:s},[3,15];case 10:return c.trys.push([10,,13,14]),l&&!l.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!St.isCollapsed(t)||!!Tw.getSelectedElems(e).some((function(t){return"pre"===Tw.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),q6=AQ.PROPER,K6=RegExp.prototype,G6=K6.toString,Y6=YZ(d1),J6=LZ((function(){return"/a/b"!=G6.call({source:"a",flags:"b"})})),Z6=q6&&"toString"!=G6.name;function X6(){return f2("w-e-insert-video")}(J6||Z6)&&OQ(RegExp.prototype,"toString",(function(){var e=tQ(this),t=p0(e.source),n=e.flags;return"/"+t+"/"+p0(void 0===n&&sX(K6,e)&&!("flags"in K6)?Y6(e):n)}),{unsafe:!0});var Q6=function(){function e(){this.title=LD("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=X6(),this.heightInputId=X6(),this.buttonId=X6()}return e.prototype.getSelectedVideoNode=function(e){return Tw.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=_Z(gk(LD("videoModule.width"),n,"auto"),2),a=i[0],l=i[1],u=uo(l),s=_Z(gk(LD("videoModule.height"),r,"auto"),2),c=s[0],f=s[1],d=uo(f),p=_Z(mk(o,LD("videoModule.ok")),1)[0];if(null==this.$content){var h=uo("<div></div>");h.on("click","#"+o,(function(t){t.preventDefault();var o=h.find("#"+n).val().trim(),i=h.find("#"+r).val().trim(),a=parseInt(o),l=parseInt(i),u=a?a.toString():"auto",s=l?l.toString():"auto";e.restoreSelection(),Jt.setNodes(e,{width:u,height:s},{match:function(e){return Tw.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=h}var g=this.$content;g.empty(),g.append(a),g.append(c),g.append(p);var v=this.getSelectedVideoNode(e);if(null==v)return g[0];var m=v.width,y=void 0===m?"auto":m,b=v.height,w=void 0===b?"auto":b;return u.val(y),d.val(w),setTimeout((function(){u.focus()})),g[0]},e}(),e8={renderElems:[D0],elemsToHtml:[A0],preParseHtml:[V0],parseElemsHtml:[f1],menus:[{key:"insertVideo",factory:function(){return new d3},config:{onInsertedVideo:function(e){},checkVideo:function(e){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new W6},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new Q6}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=_Z(e,2),o=t[0],i=t[1];return"video"===Tw.getNodeType(o)&&Tw.isLastNode(r,o)&&Jt.insertNodes(r,Tw.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};TD("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),TD("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var t8="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function n8(e){var t={exports:{}};return e(t,t.exports),t.exports}var r8,o8,i8=function(e){return e&&e.Math==Math&&e},a8=i8("object"==typeof globalThis&&globalThis)||i8("object"==typeof window&&window)||i8("object"==typeof self&&self)||i8("object"==typeof t8&&t8)||function(){return this}()||Function("return this")(),l8=function(e){try{return!!e()}catch(e){return!0}},u8=!l8((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s8=Function.prototype.call,c8=s8.bind?s8.bind(s8):function(){return s8.apply(s8,arguments)},f8={}.propertyIsEnumerable,d8=Object.getOwnPropertyDescriptor,p8={f:d8&&!f8.call({1:2},1)?function(e){var t=d8(this,e);return!!t&&t.enumerable}:f8},h8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g8=Function.prototype,v8=g8.bind,m8=g8.call,y8=v8&&v8.bind(m8),b8=v8?function(e){return e&&y8(m8,e)}:function(e){return e&&function(){return m8.apply(e,arguments)}},w8=b8({}.toString),x8=b8("".slice),C8=function(e){return x8(w8(e),8,-1)},E8=a8.Object,S8=b8("".split),k8=l8((function(){return!E8("z").propertyIsEnumerable(0)}))?function(e){return"String"==C8(e)?S8(e,""):E8(e)}:E8,D8=a8.TypeError,A8=function(e){if(null==e)throw D8("Can't call method on "+e);return e},O8=function(e){return k8(A8(e))},_8=function(e){return"function"==typeof e},B8=function(e){return"object"==typeof e?null!==e:_8(e)},F8=function(e){return _8(e)?e:void 0},j8=function(e,t){return arguments.length<2?F8(a8[e]):a8[e]&&a8[e][t]},P8=b8({}.isPrototypeOf),T8=j8("navigator","userAgent")||"",N8=a8.process,I8=a8.Deno,L8=N8&&N8.versions||I8&&I8.version,M8=L8&&L8.v8;M8&&(o8=(r8=M8.split("."))[0]>0&&r8[0]<4?1:+(r8[0]+r8[1])),!o8&&T8&&(!(r8=T8.match(/Edge\/(\d+)/))||r8[1]>=74)&&(r8=T8.match(/Chrome\/(\d+)/))&&(o8=+r8[1]);var R8=o8,z8=!!Object.getOwnPropertySymbols&&!l8((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&R8&&R8<41})),V8=z8&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$8=a8.Object,U8=V8?function(e){return"symbol"==typeof e}:function(e){var t=j8("Symbol");return _8(t)&&P8(t.prototype,$8(e))},H8=a8.String,W8=function(e){try{return H8(e)}catch(e){return"Object"}},q8=a8.TypeError,K8=function(e){if(_8(e))return e;throw q8(W8(e)+" is not a function")},G8=function(e,t){var n=e[t];return null==n?void 0:K8(n)},Y8=a8.TypeError,J8=Object.defineProperty,Z8=function(e,t){try{J8(a8,e,{value:t,configurable:!0,writable:!0})}catch(c){a8[e]=t}return t},X8=a8["__core-js_shared__"]||Z8("__core-js_shared__",{}),Q8=n8((function(e){(e.exports=function(e,t){return X8[e]||(X8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),e5=a8.Object,t5=function(e){return e5(A8(e))},n5=b8({}.hasOwnProperty),r5=Object.hasOwn||function(e,t){return n5(t5(e),t)},o5=0,i5=Math.random(),a5=b8(1..toString),l5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a5(++o5+i5,36)},u5=Q8("wks"),s5=a8.Symbol,c5=s5&&s5.for,f5=V8?s5:s5&&s5.withoutSetter||l5,d5=function(e){if(!r5(u5,e)||!z8&&"string"!=typeof u5[e]){var t="Symbol."+e;z8&&r5(s5,e)?u5[e]=s5[e]:u5[e]=V8&&c5?c5(t):f5(t)}return u5[e]},p5=a8.TypeError,h5=d5("toPrimitive"),g5=function(e,t){if(!B8(e)||U8(e))return e;var n,r=G8(e,h5);if(r){if(void 0===t&&(t="default"),n=c8(r,e,t),!B8(n)||U8(n))return n;throw p5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_8(n=e.toString)&&!B8(r=c8(n,e)))return r;if(_8(n=e.valueOf)&&!B8(r=c8(n,e)))return r;if("string"!==t&&_8(n=e.toString)&&!B8(r=c8(n,e)))return r;throw Y8("Can't convert object to primitive value")}(e,t)},v5=function(e){var t=g5(e,"string");return U8(t)?t:t+""},m5=a8.document,y5=B8(m5)&&B8(m5.createElement),b5=function(e){return y5?m5.createElement(e):{}},w5=!u8&&!l8((function(){return 7!=Object.defineProperty(b5("div"),"a",{get:function(){return 7}}).a})),x5=Object.getOwnPropertyDescriptor,C5={f:u8?x5:function(e,t){if(e=O8(e),t=v5(t),w5)try{return x5(e,t)}catch(e){}if(r5(e,t))return h8(!c8(p8.f,e,t),e[t])}},E5=a8.String,S5=a8.TypeError,k5=function(e){if(B8(e))return e;throw S5(E5(e)+" is not an object")},D5=a8.TypeError,A5=Object.defineProperty,O5={f:u8?A5:function(e,t,n){if(k5(e),t=v5(t),k5(n),w5)try{return A5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw D5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_5=u8?function(e,t,n){return O5.f(e,t,h8(1,n))}:function(e,t,n){return e[t]=n,e},B5=b8(Function.toString);_8(X8.inspectSource)||(X8.inspectSource=function(e){return B5(e)});var F5,j5,P5,T5=X8.inspectSource,N5=a8.WeakMap,I5=_8(N5)&&/native code/.test(T5(N5)),L5=Q8("keys"),M5=function(e){return L5[e]||(L5[e]=l5(e))},R5={},z5=a8.TypeError,V5=a8.WeakMap;if(I5||X8.state){var $5=X8.state||(X8.state=new V5),U5=b8($5.get),H5=b8($5.has),W5=b8($5.set);F5=function(e,t){if(H5($5,e))throw new z5("Object already initialized");return t.facade=e,W5($5,e,t),t},j5=function(e){return U5($5,e)||{}},P5=function(e){return H5($5,e)}}else{var q5=M5("state");R5[q5]=!0,F5=function(e,t){if(r5(e,q5))throw new z5("Object already initialized");return t.facade=e,_5(e,q5,t),t},j5=function(e){return r5(e,q5)?e[q5]:{}},P5=function(e){return r5(e,q5)}}var K5={set:F5,get:j5,has:P5,enforce:function(e){return P5(e)?j5(e):F5(e,{})},getterFor:function(e){return function(t){var n;if(!B8(t)||(n=j5(t)).type!==e)throw z5("Incompatible receiver, "+e+" required");return n}}},G5=Function.prototype,Y5=u8&&Object.getOwnPropertyDescriptor,J5=r5(G5,"name"),Z5={EXISTS:J5,PROPER:J5&&"something"===function(){}.name,CONFIGURABLE:J5&&(!u8||u8&&Y5(G5,"name").configurable)},X5=n8((function(e){var t=Z5.CONFIGURABLE,n=K5.get,r=K5.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;_8(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!r5(i,"name")||t&&i.name!==f)&&_5(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==a8?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:_5(e,n,i)):s?e[n]=i:Z8(n,i)})(Function.prototype,"toString",(function(){return _8(this)&&n(this).source||T5(this)}))})),Q5=Math.ceil,e7=Math.floor,t7=function(e){var t=+e;return t!=t||0===t?0:(t>0?e7:Q5)(t)},n7=Math.max,r7=Math.min,o7=function(e,t){var n=t7(e);return n<0?n7(n+t,0):r7(n,t)},i7=Math.min,a7=function(e){return e>0?i7(t7(e),9007199254740991):0},l7=function(e){return a7(e.length)},u7=function(e){return function(t,n,r){var o,i=O8(t),a=l7(i),l=o7(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},s7={includes:u7(!0),indexOf:u7(!1)}.indexOf,c7=b8([].push),f7=function(e,t){var n,r=O8(e),o=0,i=[];for(n in r)!r5(R5,n)&&r5(r,n)&&c7(i,n);for(;t.length>o;)r5(r,n=t[o++])&&(~s7(i,n)||c7(i,n));return i},d7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],p7=d7.concat("length","prototype"),h7={f:Object.getOwnPropertyNames||function(e){return f7(e,p7)}},g7={f:Object.getOwnPropertySymbols},v7=b8([].concat),m7=j8("Reflect","ownKeys")||function(e){var t=h7.f(k5(e)),n=g7.f;return n?v7(t,n(e)):t},y7=function(e,t){for(var n=m7(t),r=O5.f,o=C5.f,i=0;i<n.length;i++){var a=n[i];r5(e,a)||r(e,a,o(t,a))}},b7=/#|\.prototype\./,w7=function(e,t){var n=C7[x7(e)];return n==S7||n!=E7&&(_8(t)?l8(t):!!t)},x7=w7.normalize=function(e){return String(e).replace(b7,".").toLowerCase()},C7=w7.data={},E7=w7.NATIVE="N",S7=w7.POLYFILL="P",k7=w7,D7=C5.f,A7=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?a8:s?a8[l]||Z8(l,{}):(a8[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=D7(n,r))&&a.value:n[r],!k7(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;y7(i,o)}(e.sham||o&&o.sham)&&_5(i,"sham",!0),X5(n,r,i,e)}},O7=Array.isArray||function(e){return"Array"==C8(e)},_7={};_7[d5("toStringTag")]="z";var B7,F7="[object z]"===String(_7),j7=d5("toStringTag"),P7=a8.Object,T7="Arguments"==C8(function(){return arguments}()),N7=F7?C8:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=P7(e),j7))?n:T7?C8(t):"Object"==(r=C8(t))&&_8(t.callee)?"Arguments":r},I7=function(){},L7=[],M7=j8("Reflect","construct"),R7=/^\s*(?:class|function)\b/,z7=b8(R7.exec),V7=!R7.exec(I7),$7=function(e){if(!_8(e))return!1;try{return M7(I7,L7,e),!0}catch(e){return!1}},U7=!M7||l8((function(){var e;return $7($7.call)||!$7(Object)||!$7((function(){e=!0}))||e}))?function(e){if(!_8(e))return!1;switch(N7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return V7||!!z7(R7,T5(e))}:$7,H7=function(e,t,n){var r=v5(t);r in e?O5.f(e,r,h8(0,n)):e[r]=n},W7=d5("species"),q7=b8([].slice),K7=(B7="slice",R8>=51||!l8((function(){var e=[];return(e.constructor={})[W7]=function(){return{foo:1}},1!==e[B7](Boolean).foo}))),G7=d5("species"),Y7=a8.Array,J7=Math.max;A7({target:"Array",proto:!0,forced:!K7},{slice:function(e,t){var n,r,o,i=O8(this),a=l7(i),l=o7(e,a),u=o7(void 0===t?a:t,a);if(O7(i)&&(n=i.constructor,(U7(n)&&(n===Y7||O7(n.prototype))||B8(n)&&null===(n=n[G7]))&&(n=void 0),n===Y7||void 0===n))return q7(i,l,u);for(r=new(void 0===n?Y7:n)(J7(u-l,0)),o=0;l<u;l++,o++)l in i&&H7(r,o,i[l]);return r.length=o,r}});var Z7=F7?{}.toString:function(){return"[object "+N7(this)+"]"};F7||X5(Object.prototype,"toString",Z7,{unsafe:!0});var X7,Q7=a8.String,e9=function(e){if("Symbol"===N7(e))throw TypeError("Cannot convert a Symbol value to a string");return Q7(e)},t9=function(){var e=k5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},n9=a8.RegExp,r9=l8((function(){var e=n9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),o9=r9||l8((function(){return!n9("a","y").sticky})),i9={BROKEN_CARET:r9||l8((function(){var e=n9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:o9,UNSUPPORTED_Y:r9},a9=Object.keys||function(e){return f7(e,d7)},l9=u8?Object.defineProperties:function(e,t){k5(e);for(var n,r=O8(t),o=a9(t),i=o.length,a=0;i>a;)O5.f(e,n=o[a++],r[n]);return e},u9=j8("document","documentElement"),s9=M5("IE_PROTO"),c9=function(){},f9=function(e){return"<script>"+e+"<\/script>"},d9=function(e){e.write(f9("")),e.close();var t=e.parentWindow.Object;return e=null,t},p9=function(){try{X7=new ActiveXObject("htmlfile")}catch(e){}var e,t;p9="undefined"!=typeof document?document.domain&&X7?d9(X7):((t=b5("iframe")).style.display="none",u9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f9("document.F=Object")),e.close(),e.F):d9(X7);for(var n=d7.length;n--;)delete p9.prototype[d7[n]];return p9()};R5[s9]=!0;var h9,g9,v9=Object.create||function(e,t){var n;return null!==e?(c9.prototype=k5(e),n=new c9,c9.prototype=null,n[s9]=e):n=p9(),void 0===t?n:l9(n,t)},m9=a8.RegExp,y9=l8((function(){var e=m9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),b9=a8.RegExp,w9=l8((function(){var e=b9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),x9=K5.get,C9=Q8("native-string-replace",String.prototype.replace),E9=RegExp.prototype.exec,S9=E9,k9=b8("".charAt),D9=b8("".indexOf),A9=b8("".replace),O9=b8("".slice),_9=(g9=/b*/g,c8(E9,h9=/a/,"a"),c8(E9,g9,"a"),0!==h9.lastIndex||0!==g9.lastIndex),B9=i9.BROKEN_CARET,F9=void 0!==/()??/.exec("")[1];(_9||F9||B9||y9||w9)&&(S9=function(e){var t,n,r,o,i,a,l,u=this,s=x9(u),c=e9(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=c8(S9,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=B9&&u.sticky,h=c8(t9,u),g=u.source,v=0,m=c;if(p&&(h=A9(h,"y",""),-1===D9(h,"g")&&(h+="g"),m=O9(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==k9(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),F9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),_9&&(r=u.lastIndex),o=c8(E9,p?n:u,m),p?o?(o.input=O9(o.input,v),o[0]=O9(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:_9&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),F9&&o&&o.length>1&&c8(C9,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=v9(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var j9=S9;A7({target:"RegExp",proto:!0,forced:/./.exec!==j9},{exec:j9});var P9=Function.prototype,T9=P9.apply,N9=P9.bind,I9=P9.call,L9="object"==typeof Reflect&&Reflect.apply||(N9?I9.bind(T9):function(){return I9.apply(T9,arguments)}),M9=d5("species"),R9=RegExp.prototype,z9=d5("match"),V9=a8.TypeError,$9=d5("species"),U9=function(e,t){var n,r=k5(e).constructor;return void 0===r||null==(n=k5(r)[$9])?t:function(e){if(U7(e))return e;throw V9(W8(e)+" is not a constructor")}(n)},H9=b8("".charAt),W9=b8("".charCodeAt),q9=b8("".slice),K9=function(e){return function(t,n){var r,o,i=e9(A8(t)),a=t7(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=W9(i,a))<55296||r>56319||a+1===l||(o=W9(i,a+1))<56320||o>57343?e?H9(i,a):r:e?q9(i,a,a+2):o-56320+(r-55296<<10)+65536}},G9={codeAt:K9(!1),charAt:K9(!0)},Y9=G9.charAt,J9=function(e,t,n){return t+(n?Y9(e,t).length:1)},Z9=a8.Array,X9=Math.max,Q9=function(e,t,n){for(var r=l7(e),o=o7(t,r),i=o7(void 0===n?r:n,r),a=Z9(X9(i-o,0)),l=0;o<i;o++,l++)H7(a,l,e[o]);return a.length=l,a},eee=a8.TypeError,tee=function(e,t){var n=e.exec;if(_8(n)){var r=c8(n,e,t);return null!==r&&k5(r),r}if("RegExp"===C8(e))return c8(j9,e,t);throw eee("RegExp#exec called on incompatible receiver")},nee=i9.UNSUPPORTED_Y,ree=Math.min,oee=[].push,iee=b8(/./.exec),aee=b8(oee),lee=b8("".slice);!function(e,t,n,r){var o=d5(e),i=!l8((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!l8((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[M9]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=b8(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=b8(e),u=t.exec;return u===j9||u===R9.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));X5(String.prototype,e,u[0]),X5(R9,o,u[1])}r&&_5(R9[o],"sham",!0)}("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=e9(A8(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!B8(r=e)||!(void 0!==(o=r[z9])?o:"RegExp"==C8(r)))return c8(t,i,e,a);for(var l,u,s,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(l=c8(j9,p,i))&&!((u=p.lastIndex)>d&&(aee(c,lee(i,d,l.index)),l.length>1&&l.index<i.length&&L9(oee,c,Q9(l,1)),s=l[0].length,d=u,c.length>=a));)p.lastIndex===l.index&&p.lastIndex++;return d===i.length?!s&&iee(p,"")||aee(c,""):aee(c,lee(i,d)),c.length>a?Q9(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:c8(t,this,e,n)}:t,[function(t,n){var o=A8(this),i=null==t?void 0:G8(t,e);return i?c8(i,t,o,n):c8(r,e9(o),t,n)},function(e,o){var i=k5(this),a=e9(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=U9(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(nee?"g":"y"),f=new u(nee?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===tee(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=nee?0:h;var v,m=tee(f,nee?lee(a,h):a);if(null===m||(v=ree(a7(f.lastIndex+(nee?h:0)),a.length))===p)h=J9(a,h,s);else{if(aee(g,lee(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(aee(g,m[y]),g.length===d)return g;h=p=v}}return aee(g,lee(a,p)),g}]}),!!l8((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),nee);
98
- /*! *****************************************************************************
99
- Copyright (c) Microsoft Corporation.
100
-
101
- Permission to use, copy, modify, and/or distribute this software for any
102
- purpose with or without fee is hereby granted.
103
-
104
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
105
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
106
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
107
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
108
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
109
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
110
- PERFORMANCE OF THIS SOFTWARE.
111
- ***************************************************************************** */
112
- var uee=function(){return uee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uee.apply(this,arguments)};function see(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function cee(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function fee(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dee(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=fee(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}var pee=d5("unscopables"),hee=Array.prototype;null==hee[pee]&&O5.f(hee,pee,{configurable:!0,value:v9(null)});var gee,vee,mee,yee=function(e){hee[pee][e]=!0},bee={},wee=!l8((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),xee=M5("IE_PROTO"),Cee=a8.Object,Eee=Cee.prototype,See=wee?Cee.getPrototypeOf:function(e){var t=t5(e);if(r5(t,xee))return t[xee];var n=t.constructor;return _8(n)&&t instanceof n?n.prototype:t instanceof Cee?Eee:null},kee=d5("iterator"),Dee=!1;[].keys&&("next"in(mee=[].keys())?(vee=See(See(mee)))!==Object.prototype&&(gee=vee):Dee=!0);var Aee=null==gee||l8((function(){var e={};return gee[kee].call(e)!==e}));Aee&&(gee={}),_8(gee[kee])||X5(gee,kee,(function(){return this}));var Oee={IteratorPrototype:gee,BUGGY_SAFARI_ITERATORS:Dee},_ee=O5.f,Bee=d5("toStringTag"),Fee=function(e,t,n){e&&!r5(e=n?e:e.prototype,Bee)&&_ee(e,Bee,{configurable:!0,value:t})},jee=Oee.IteratorPrototype,Pee=function(){return this},Tee=a8.String,Nee=a8.TypeError,Iee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=b8(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return k5(n),function(e){if("object"==typeof e||_8(e))return e;throw Nee("Can't set "+Tee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Lee=Z5.PROPER,Mee=Z5.CONFIGURABLE,Ree=Oee.IteratorPrototype,zee=Oee.BUGGY_SAFARI_ITERATORS,Vee=d5("iterator"),$ee=function(){return this},Uee=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=v9(jee,{next:h8(+!r,n)}),Fee(e,o,!1),bee[o]=Pee}(n,t,r);var l,u,s,c=function(e){if(e===o&&g)return g;if(!zee&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Vee]||p["@@iterator"]||o&&p[o],g=!zee&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(l=See(v.call(new e)))!==Object.prototype&&l.next&&(See(l)!==Ree&&(Iee?Iee(l,Ree):_8(l[Vee])||X5(l,Vee,$ee)),Fee(l,f,!0)),Lee&&"values"==o&&h&&"values"!==h.name&&(Mee?_5(p,"name","values"):(d=!0,g=function(){return c8(h,this)})),o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(s in u)(zee||d||!(s in p))&&X5(p,s,u[s]);else A7({target:t,proto:!0,forced:zee||d},u);return p[Vee]!==g&&X5(p,Vee,g,{name:o}),bee[t]=g,u},Hee=K5.set,Wee=K5.getterFor("Array Iterator"),qee=Uee(Array,"Array",(function(e,t){Hee(this,{type:"Array Iterator",target:O8(e),index:0,kind:t})}),(function(){var e=Wee(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");bee.Arguments=bee.Array,yee("keys"),yee("values"),yee("entries");var Kee=G9.charAt,Gee=K5.set,Yee=K5.getterFor("String Iterator");Uee(String,"String",(function(e){Gee(this,{type:"String Iterator",string:e9(e),index:0})}),(function(){var e,t=Yee(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Kee(n,r),t.index+=e.length,{value:e,done:!1})}));var Jee=function(e,t,n){for(var r in t)X5(e,r,t[r],n);return e},Zee=h7.f,Xee="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qee={f:function(e){return Xee&&"Window"==C8(e)?function(e){try{return Zee(e)}catch(e){return Q9(Xee)}}(e):Zee(O8(e))}},ete=l8((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),tte=Object.isExtensible,nte=l8((function(){tte(1)}))||ete?function(e){return!!B8(e)&&(!ete||"ArrayBuffer"!=C8(e))&&(!tte||tte(e))}:tte,rte=!l8((function(){return Object.isExtensible(Object.preventExtensions({}))})),ote=n8((function(e){var t=O5.f,n=!1,r=l5("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=h7.f,t=b8([].splice),o={};o[r]=1,e(o).length&&(h7.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},A7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Qee.f}))},fastKey:function(e,t){if(!B8(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r5(e,r)){if(!nte(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!r5(e,r)){if(!nte(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return rte&&n&&nte(e)&&!r5(e,r)&&i(e),e}};R5[r]=!0})),ite=b8(b8.bind),ate=function(e,t){return K8(e),void 0===t?e:ite?ite(e,t):function(){return e.apply(t,arguments)}},lte=d5("iterator"),ute=Array.prototype,ste=d5("iterator"),cte=function(e){if(null!=e)return G8(e,ste)||G8(e,"@@iterator")||bee[N7(e)]},fte=a8.TypeError,dte=function(e,t,n){var r,o;k5(e);try{if(!(r=G8(e,"return"))){if("throw"===t)throw n;return n}r=c8(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return k5(r),n},pte=a8.TypeError,hte=function(e,t){this.stopped=e,this.result=t},gte=hte.prototype,vte=function(e,t,n){var r,o,i,a,l,u,s,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=ate(t,f),v=function(e){return r&&dte(r,"normal",e),new hte(!0,e)},m=function(e){return d?(k5(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=cte(e)))throw pte(W8(e)+" is not iterable");if(void 0!==(c=o)&&(bee.Array===c||ute[lte]===c)){for(i=0,a=l7(e);a>i;i++)if((l=m(e[i]))&&P8(gte,l))return l;return new hte(!1)}r=function(e,t){var n=arguments.length<2?cte(e):t;if(K8(n))return k5(c8(n,e));throw fte(W8(e)+" is not iterable")}(e,o)}for(u=r.next;!(s=c8(u,r)).done;){try{l=m(s.value)}catch(e){dte(r,"throw",e)}if("object"==typeof l&&l&&P8(gte,l))return l}return new hte(!1)},mte=a8.TypeError,yte=function(e,t){if(P8(t,e))return e;throw mte("Incorrect invocation")},bte=d5("iterator"),wte=!1;try{var xte=0,Cte={next:function(){return{done:!!xte++}},return:function(){wte=!0}};Cte[bte]=function(){return this},Array.from(Cte,(function(){throw 2}))}catch(f){}var Ete=function(e,t){if(!t&&!wte)return!1;var n=!1;try{var r={};r[bte]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ste=d5("species"),kte=a8.Array,Dte=function(e,t){return new(function(e){var t;return O7(e)&&(t=e.constructor,(U7(t)&&(t===kte||O7(t.prototype))||B8(t)&&null===(t=t[Ste]))&&(t=void 0)),void 0===t?kte:t}(e))(0===t?0:t)},Ate=b8([].push),Ote=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=t5(u),g=k8(h),v=ate(s,c),m=l7(g),y=0,b=f||Dte,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Ate(w,d)}else switch(e){case 4:return!1;case 7:Ate(w,d)}return i?-1:r||o?o:w}},_te={forEach:Ote(0),map:Ote(1),filter:Ote(2),some:Ote(3),every:Ote(4),find:Ote(5),findIndex:Ote(6),filterReject:Ote(7)},Bte=ote.getWeakData,Fte=K5.set,jte=K5.getterFor,Pte=_te.find,Tte=_te.findIndex,Nte=b8([].splice),Ite=0,Lte=function(e){return e.frozen||(e.frozen=new Mte)},Mte=function(){this.entries=[]},Rte=function(e,t){return Pte(e.entries,(function(e){return e[0]===t}))};Mte.prototype={get:function(e){var t=Rte(this,e);if(t)return t[1]},has:function(e){return!!Rte(this,e)},set:function(e,t){var n=Rte(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Tte(this.entries,(function(t){return t[0]===e}));return~t&&Nte(this.entries,t,1),!!~t}};var zte,Vte={getConstructor:function(e,t,n,r){var o=e((function(e,o){yte(e,i),Fte(e,{type:t,id:Ite++,frozen:void 0}),null!=o&&vte(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=jte(t),l=function(e,t,n){var r=a(e),o=Bte(k5(t),!0);return!0===o?Lte(r).set(t,n):o[r.id]=n,e};return Jee(i,{delete:function(e){var t=a(this);if(!B8(e))return!1;var n=Bte(e);return!0===n?Lte(t).delete(e):n&&r5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!B8(e))return!1;var n=Bte(e);return!0===n?Lte(t).has(e):n&&r5(n,t.id)}}),Jee(i,n?{get:function(e){var t=a(this);if(B8(e)){var n=Bte(e);return!0===n?Lte(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return l(this,e,t)}}:{add:function(e){return l(this,e,!0)}}),o}},$te=K5.enforce,Ute=!a8.ActiveXObject&&"ActiveXObject"in a8,Hte=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Wte=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=a8[e],l=a&&a.prototype,u=a,s={},c=function(e){var t=b8(l[e]);X5(l,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!B8(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!B8(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!B8(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(k7(e,!_8(a)||!(o||l.forEach&&!l8((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),ote.enable();else if(k7(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=l8((function(){f.has(1)})),h=Ete((function(e){new a(e)})),g=!o&&l8((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(e,t){yte(e,l);var n=function(e,t,n){var r,o;return Iee&&_8(r=t.constructor)&&r!==n&&B8(o=r.prototype)&&o!==n.prototype&&Iee(e,o),e}(new a,e,u);return null!=t&&vte(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=l,l.constructor=u),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&l.clear&&delete l.clear}return s[e]=u,A7({global:!0,forced:u!=a},s),Fee(u,e),o||n.setStrong(u,e,r),u}("WeakMap",Hte,Vte);if(I5&&Ute){zte=Vte.getConstructor(Hte,"WeakMap",!0),ote.enable();var qte=Wte.prototype,Kte=b8(qte.delete),Gte=b8(qte.has),Yte=b8(qte.get),Jte=b8(qte.set);Jee(qte,{delete:function(e){if(B8(e)&&!nte(e)){var t=$te(this);return t.frozen||(t.frozen=new zte),Kte(this,e)||t.frozen.delete(e)}return Kte(this,e)},has:function(e){if(B8(e)&&!nte(e)){var t=$te(this);return t.frozen||(t.frozen=new zte),Gte(this,e)||t.frozen.has(e)}return Gte(this,e)},get:function(e){if(B8(e)&&!nte(e)){var t=$te(this);return t.frozen||(t.frozen=new zte),Gte(this,e)?Yte(this,e):t.frozen.get(e)}return Yte(this,e)},set:function(e,t){if(B8(e)&&!nte(e)){var n=$te(this);n.frozen||(n.frozen=new zte),Gte(this,e)?Jte(this,e,t):n.frozen.set(e,t)}else Jte(this,e,t);return this}})}var Zte={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},Xte=b5("span").classList,Qte=Xte&&Xte.constructor&&Xte.constructor.prototype,ene=Qte===Object.prototype?void 0:Qte,tne=d5("iterator"),nne=d5("toStringTag"),rne=qee.values,one=function(e,t){if(e){if(e[tne]!==rne)try{_5(e,tne,rne)}catch(t){e[tne]=rne}if(e[nne]||_5(e,nne,t),Zte[t])for(var n in qee)if(e[n]!==qee[n])try{_5(e,n,qee[n])}catch(t){e[n]=qee[n]}}};for(var ine in Zte)one(a8[ine]&&a8[ine].prototype,ine);one(ene,"DOMTokenList");var ane=Z5.EXISTS,lne=O5.f,une=Function.prototype,sne=b8(une.toString),cne=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,fne=b8(cne.exec);u8&&!ane&&lne(une,"name",{configurable:!0,get:function(){try{return fne(cne,sne(this))[1]}catch(f){return""}}});var dne=function(e,t){var n=[][e];return!!n&&l8((function(){n.call(null,t||function(){throw 1},1)}))},pne=_te.forEach,hne=dne("forEach")?[].forEach:function(e){return pne(this,e,arguments.length>1?arguments[1]:void 0)},gne=function(e){if(e&&e.forEach!==hne)try{_5(e,"forEach",hne)}catch(ose){e.forEach=hne}};for(var vne in Zte)Zte[vne]&&gne(a8[vne]&&a8[vne].prototype);gne(ene);var mne,yne,bne,wne,xne=a8.Promise,Cne=d5("species"),Ene=/(?:ipad|iphone|ipod).*applewebkit/i.test(T8),Sne="process"==C8(a8.process),kne=a8.setImmediate,Dne=a8.clearImmediate,Ane=a8.process,One=a8.Dispatch,_ne=a8.Function,Bne=a8.MessageChannel,Fne=a8.String,jne=0,Pne={};try{mne=a8.location}catch(f){}var Tne=function(e){if(r5(Pne,e)){var t=Pne[e];delete Pne[e],t()}},Nne=function(e){return function(){Tne(e)}},Ine=function(e){Tne(e.data)},Lne=function(e){a8.postMessage(Fne(e),mne.protocol+"//"+mne.host)};kne&&Dne||(kne=function(e){var t=q7(arguments,1);return Pne[++jne]=function(){L9(_8(e)?e:_ne(e),void 0,t)},yne(jne),jne},Dne=function(e){delete Pne[e]},Sne?yne=function(e){Ane.nextTick(Nne(e))}:One&&One.now?yne=function(e){One.now(Nne(e))}:Bne&&!Ene?(wne=(bne=new Bne).port2,bne.port1.onmessage=Ine,yne=ate(wne.postMessage,wne)):a8.addEventListener&&_8(a8.postMessage)&&!a8.importScripts&&mne&&"file:"!==mne.protocol&&!l8(Lne)?(yne=Lne,a8.addEventListener("message",Ine,!1)):yne="onreadystatechange"in b5("script")?function(e){u9.appendChild(b5("script")).onreadystatechange=function(){u9.removeChild(this),Tne(e)}}:function(e){setTimeout(Nne(e),0)});var Mne,Rne,zne,Vne,$ne,Une,Hne,Wne,qne={set:kne,clear:Dne},Kne=/ipad|iphone|ipod/i.test(T8)&&void 0!==a8.Pebble,Gne=/web0s(?!.*chrome)/i.test(T8),Yne=C5.f,Jne=qne.set,Zne=a8.MutationObserver||a8.WebKitMutationObserver,Xne=a8.document,Qne=a8.process,ere=a8.Promise,tre=Yne(a8,"queueMicrotask"),nre=tre&&tre.value;nre||(Mne=function(){var e,t;for(Sne&&(e=Qne.domain)&&e.exit();Rne;){t=Rne.fn,Rne=Rne.next;try{t()}catch(e){throw Rne?Vne():zne=void 0,e}}zne=void 0,e&&e.enter()},Ene||Sne||Gne||!Zne||!Xne?!Kne&&ere&&ere.resolve?((Hne=ere.resolve(void 0)).constructor=ere,Wne=ate(Hne.then,Hne),Vne=function(){Wne(Mne)}):Sne?Vne=function(){Qne.nextTick(Mne)}:(Jne=ate(Jne,a8),Vne=function(){Jne(Mne)}):($ne=!0,Une=Xne.createTextNode(""),new Zne(Mne).observe(Une,{characterData:!0}),Vne=function(){Une.data=$ne=!$ne}));var rre,ore,ire,are,lre=nre||function(e){var t={fn:e,next:void 0};zne&&(zne.next=t),Rne||(Rne=t,Vne()),zne=t},ure=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=K8(t),this.reject=K8(n)},sre={f:function(e){return new ure(e)}},cre=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},fre="object"==typeof window,dre=qne.set,pre=d5("species"),hre="Promise",gre=K5.getterFor(hre),vre=K5.set,mre=K5.getterFor(hre),yre=xne&&xne.prototype,bre=xne,wre=yre,xre=a8.TypeError,Cre=a8.document,Ere=a8.process,Sre=sre.f,kre=Sre,Dre=!!(Cre&&Cre.createEvent&&a8.dispatchEvent),Are=_8(a8.PromiseRejectionEvent),Ore=!1,_re=k7(hre,(function(){var e=T5(bre),t=e!==String(bre);if(!t&&66===R8)return!0;if(R8>=51&&/native code/.test(e))return!1;var n=new bre((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[pre]=r,!(Ore=n.then((function(){}))instanceof r)||!t&&fre&&!Are})),Bre=_re||!Ete((function(e){bre.all(e).catch((function(){}))})),Fre=function(e){var t;return!(!B8(e)||!_8(t=e.then))&&t},jre=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;lre((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,l,u,s=n[i++],c=o?s.ok:s.fail,f=s.resolve,d=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&Ire(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),u=!0)),a===s.promise?d(xre("Promise-chain cycle")):(l=Fre(a))?c8(l,a,f,d):f(a)):d(r)}catch(e){p&&!u&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Tre(e)}))}},Pre=function(e,t,n){var r,o;Dre?((r=Cre.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),a8.dispatchEvent(r)):r={promise:t,reason:n},!Are&&(o=a8["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=a8.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Tre=function(e){c8(dre,a8,(function(){var t,n=e.facade,r=e.value;if(Nre(e)&&(t=cre((function(){Sne?Ere.emit("unhandledRejection",r,n):Pre("unhandledrejection",n,r)})),e.rejection=Sne||Nre(e)?2:1,t.error))throw t.value}))},Nre=function(e){return 1!==e.rejection&&!e.parent},Ire=function(e){c8(dre,a8,(function(){var t=e.facade;Sne?Ere.emit("rejectionHandled",t):Pre("rejectionhandled",t,e.value)}))},Lre=function(e,t,n){return function(r){e(t,r,n)}},Mre=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,jre(e,!0))},Rre=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw xre("Promise can't be resolved itself");var r=Fre(t);r?lre((function(){var n={done:!1};try{c8(r,t,Lre(Rre,n,e),Lre(Mre,n,e))}catch(t){Mre(n,t,e)}})):(e.value=t,e.state=1,jre(e,!1))}catch(t){Mre({done:!1},t,e)}}};if(_re&&(wre=(bre=function(e){yte(this,wre),K8(e),c8(rre,this);var t=gre(this);try{e(Lre(Rre,t),Lre(Mre,t))}catch(e){Mre(t,e)}}).prototype,(rre=function(e){vre(this,{type:hre,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Jee(wre,{then:function(e,t){var n=mre(this),r=n.reactions,o=Sre(U9(this,bre));return o.ok=!_8(e)||e,o.fail=_8(t)&&t,o.domain=Sne?Ere.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&jre(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),ore=function(){var e=new rre,t=gre(e);this.promise=e,this.resolve=Lre(Rre,t),this.reject=Lre(Mre,t)},sre.f=Sre=function(e){return e===bre||e===ire?new ore(e):kre(e)},_8(xne)&&yre!==Object.prototype)){are=yre.then,Ore||(X5(yre,"then",(function(e,t){var n=this;return new bre((function(e,t){c8(are,n,e,t)})).then(e,t)}),{unsafe:!0}),X5(yre,"catch",wre.catch,{unsafe:!0}));try{delete yre.constructor}catch(f){}Iee&&Iee(yre,wre)}A7({global:!0,wrap:!0,forced:_re},{Promise:bre}),Fee(bre,hre,!1),function(e){var t=j8(e),n=O5.f;u8&&t&&!t[Cne]&&n(t,Cne,{configurable:!0,get:function(){return this}})}(hre),ire=j8(hre),A7({target:hre,stat:!0,forced:_re},{reject:function(e){var t=Sre(this);return c8(t.reject,void 0,e),t.promise}}),A7({target:hre,stat:!0,forced:_re},{resolve:function(e){return function(e,t){if(k5(e),B8(t)&&t.constructor===e)return t;var n=sre.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),A7({target:hre,stat:!0,forced:Bre},{all:function(e){var t=this,n=Sre(t),r=n.resolve,o=n.reject,i=cre((function(){var n=K8(t.resolve),i=[],a=0,l=1;vte(e,(function(e){var u=a++,s=!1;l++,c8(n,t,e).then((function(e){s||(s=!0,i[u]=e,--l||r(i))}),o)})),--l||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Sre(t),r=n.reject,o=cre((function(){var o=K8(t.resolve);vte(e,(function(e){c8(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var zre=Z5.PROPER,Vre=RegExp.prototype,$re=Vre.toString,Ure=b8(t9),Hre=l8((function(){return"/a/b"!=$re.call({source:"a",flags:"b"})})),Wre=zre&&"toString"!=$re.name;(Hre||Wre)&&X5(RegExp.prototype,"toString",(function(){var e=k5(this),t=e9(e.source),n=e.flags;return"/"+t+"/"+e9(void 0===n&&P8(Vre,e)&&!("flags"in Vre)?Ure(e):n)}),{unsafe:!0});var qre=new WeakMap;function Kre(e){return e.getMenuConfig("uploadImage")}function Gre(e,t){return see(this,void 0,void 0,(function(){return cee(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;kT(e,i,t.name,a),n("ok")}}}))]}))}))}function Yre(e,t){return see(this,void 0,void 0,(function(){var n,r,o,i;return cee(this,(function(a){switch(a.label){case 0:return n=function(e){var t=qre.get(e);if(null!=t)return t;var n=Kre(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,l=n.onError;return t=$k(uee(uee({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)a(n,(function(t,n,r){return kT(e,t,n,r)}));else{var o=n.errno,l=void 0===o?1:o,u=n.data,s=void 0===u?{}:u;if(0!==l)return console.error("'"+t.name+"' upload failed",n),void i(t,n);if(Array.isArray(s))s.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;kT(e,r,i,void 0===a?"":a)}));else{var c=s.url,f=void 0===c?"":c,d=s.alt,p=void 0===d?"":d,h=s.href;kT(e,f,p,void 0===h?"":h)}r(t,n)}},onError:function(e,t,n){var r=e.name;console.error("'"+r+" upload error",t,n),l&&l(e,t,n)}})),qre.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Jre(e,t){var n,r;return see(this,void 0,void 0,(function(){var o,i,a,l,u,s,c,f,d;return cee(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Kre(e),a=i.customUpload,l=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),u=dee(o),p.label=2;case 2:return[4,u.next()];case 3:return(s=p.sent()).done?[3,10]:(c=s.value,f=c.size,l&&f<=l?[4,Gre(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return kT(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Yre(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),s&&!s.done&&(r=u.return)?[4,r.call(u)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Zre=b8([].join),Xre=k8!=Object,Qre=dne("join",",");A7({target:"Array",proto:!0,forced:Xre||!Qre},{join:function(e){return Zre(O8(this),void 0===e?",":e)}}),Bo&&(uo.fn.append=Bo),mo&&(uo.fn.on=mo),Io&&(uo.fn.remove=Io),vo&&(uo.fn.val=vo),zo&&(uo.fn.click=zo),Co&&(uo.fn.hide=Co);var eoe=function(){function e(){this.title=LD("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return AT(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return kT(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var l=uo("body"),u=uo('<input type="file" '+a+" multiple/>");u.hide(),l.append(u),u.click(),u.on("change",(function(){var t=u[0].files;Jre(e,t)}))}},e}(),toe={menus:[{key:"uploadImage",factory:function(){return new eoe},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(AT(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Jre(e,o):t(r)}},n}};TD("en",{highLightModule:{selectLang:"Language"}}),TD("zh-CN",{highLightModule:{selectLang:"选择语言"}});var noe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function roe(e){var t={exports:{}};return e(t,t.exports),t.exports}var ooe,ioe,aoe=function(e){return e&&e.Math==Math&&e},loe=aoe("object"==typeof globalThis&&globalThis)||aoe("object"==typeof window&&window)||aoe("object"==typeof self&&self)||aoe("object"==typeof noe&&noe)||function(){return this}()||Function("return this")(),uoe=Object.defineProperty,soe=function(e,t){try{uoe(loe,e,{value:t,configurable:!0,writable:!0})}catch(c){loe[e]=t}return t},coe=loe["__core-js_shared__"]||soe("__core-js_shared__",{}),foe=roe((function(e){(e.exports=function(e,t){return coe[e]||(coe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),doe=Function.prototype,poe=doe.bind,hoe=doe.call,goe=poe&&poe.bind(hoe),voe=poe?function(e){return e&&goe(hoe,e)}:function(e){return e&&function(){return hoe.apply(e,arguments)}},moe=loe.TypeError,yoe=function(e){if(null==e)throw moe("Can't call method on "+e);return e},boe=loe.Object,woe=function(e){return boe(yoe(e))},xoe=voe({}.hasOwnProperty),Coe=Object.hasOwn||function(e,t){return xoe(woe(e),t)},Eoe=0,Soe=Math.random(),koe=voe(1..toString),Doe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+koe(++Eoe+Soe,36)},Aoe=function(e){return"function"==typeof e},Ooe=function(e){return Aoe(e)?e:void 0},_oe=function(e,t){return arguments.length<2?Ooe(loe[e]):loe[e]&&loe[e][t]},Boe=_oe("navigator","userAgent")||"",Foe=loe.process,joe=loe.Deno,Poe=Foe&&Foe.versions||joe&&joe.version,Toe=Poe&&Poe.v8;Toe&&(ioe=(ooe=Toe.split("."))[0]>0&&ooe[0]<4?1:+(ooe[0]+ooe[1])),!ioe&&Boe&&(!(ooe=Boe.match(/Edge\/(\d+)/))||ooe[1]>=74)&&(ooe=Boe.match(/Chrome\/(\d+)/))&&(ioe=+ooe[1]);var Noe=ioe,Ioe=function(e){try{return!!e()}catch(e){return!0}},Loe=!!Object.getOwnPropertySymbols&&!Ioe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Noe&&Noe<41})),Moe=Loe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Roe=foe("wks"),zoe=loe.Symbol,Voe=zoe&&zoe.for,$oe=Moe?zoe:zoe&&zoe.withoutSetter||Doe,Uoe=function(e){if(!Coe(Roe,e)||!Loe&&"string"!=typeof Roe[e]){var t="Symbol."+e;Loe&&Coe(zoe,e)?Roe[e]=zoe[e]:Roe[e]=Moe&&Voe?Voe(t):$oe(t)}return Roe[e]},Hoe={};Hoe[Uoe("toStringTag")]="z";var Woe="[object z]"===String(Hoe),qoe=!Ioe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Koe=function(e){return"object"==typeof e?null!==e:Aoe(e)},Goe=loe.document,Yoe=Koe(Goe)&&Koe(Goe.createElement),Joe=function(e){return Yoe?Goe.createElement(e):{}},Zoe=!qoe&&!Ioe((function(){return 7!=Object.defineProperty(Joe("div"),"a",{get:function(){return 7}}).a})),Xoe=loe.String,Qoe=loe.TypeError,eie=function(e){if(Koe(e))return e;throw Qoe(Xoe(e)+" is not an object")},tie=Function.prototype.call,nie=tie.bind?tie.bind(tie):function(){return tie.apply(tie,arguments)},rie=voe({}.isPrototypeOf),oie=loe.Object,iie=Moe?function(e){return"symbol"==typeof e}:function(e){var t=_oe("Symbol");return Aoe(t)&&rie(t.prototype,oie(e))},aie=loe.String,lie=function(e){try{return aie(e)}catch(e){return"Object"}},uie=loe.TypeError,sie=function(e){if(Aoe(e))return e;throw uie(lie(e)+" is not a function")},cie=function(e,t){var n=e[t];return null==n?void 0:sie(n)},fie=loe.TypeError,die=loe.TypeError,pie=Uoe("toPrimitive"),hie=function(e,t){if(!Koe(e)||iie(e))return e;var n,r=cie(e,pie);if(r){if(void 0===t&&(t="default"),n=nie(r,e,t),!Koe(n)||iie(n))return n;throw die("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Aoe(n=e.toString)&&!Koe(r=nie(n,e)))return r;if(Aoe(n=e.valueOf)&&!Koe(r=nie(n,e)))return r;if("string"!==t&&Aoe(n=e.toString)&&!Koe(r=nie(n,e)))return r;throw fie("Can't convert object to primitive value")}(e,t)},gie=function(e){var t=hie(e,"string");return iie(t)?t:t+""},vie=loe.TypeError,mie=Object.defineProperty,yie={f:qoe?mie:function(e,t,n){if(eie(e),t=gie(t),eie(n),Zoe)try{return mie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw vie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wie=qoe?function(e,t,n){return yie.f(e,t,bie(1,n))}:function(e,t,n){return e[t]=n,e},xie=voe(Function.toString);Aoe(coe.inspectSource)||(coe.inspectSource=function(e){return xie(e)});var Cie,Eie,Sie,kie=coe.inspectSource,Die=loe.WeakMap,Aie=Aoe(Die)&&/native code/.test(kie(Die)),Oie=foe("keys"),_ie=function(e){return Oie[e]||(Oie[e]=Doe(e))},Bie={},Fie=loe.TypeError,jie=loe.WeakMap;if(Aie||coe.state){var Pie=coe.state||(coe.state=new jie),Tie=voe(Pie.get),Nie=voe(Pie.has),Iie=voe(Pie.set);Cie=function(e,t){if(Nie(Pie,e))throw new Fie("Object already initialized");return t.facade=e,Iie(Pie,e,t),t},Eie=function(e){return Tie(Pie,e)||{}},Sie=function(e){return Nie(Pie,e)}}else{var Lie=_ie("state");Bie[Lie]=!0,Cie=function(e,t){if(Coe(e,Lie))throw new Fie("Object already initialized");return t.facade=e,wie(e,Lie,t),t},Eie=function(e){return Coe(e,Lie)?e[Lie]:{}},Sie=function(e){return Coe(e,Lie)}}var Mie={set:Cie,get:Eie,has:Sie,enforce:function(e){return Sie(e)?Eie(e):Cie(e,{})},getterFor:function(e){return function(t){var n;if(!Koe(t)||(n=Eie(t)).type!==e)throw Fie("Incompatible receiver, "+e+" required");return n}}},Rie=Function.prototype,zie=qoe&&Object.getOwnPropertyDescriptor,Vie=Coe(Rie,"name"),$ie={EXISTS:Vie,PROPER:Vie&&"something"===function(){}.name,CONFIGURABLE:Vie&&(!qoe||qoe&&zie(Rie,"name").configurable)},Uie=roe((function(e){var t=$ie.CONFIGURABLE,n=Mie.get,r=Mie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var l,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Aoe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Coe(i,"name")||t&&i.name!==f)&&wie(i,"name",f),(l=r(i)).source||(l.source=o.join("string"==typeof f?f:""))),e!==loe?(u?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:wie(e,n,i)):s?e[n]=i:soe(n,i)})(Function.prototype,"toString",(function(){return Aoe(this)&&n(this).source||kie(this)}))})),Hie=voe({}.toString),Wie=voe("".slice),qie=function(e){return Wie(Hie(e),8,-1)},Kie=Uoe("toStringTag"),Gie=loe.Object,Yie="Arguments"==qie(function(){return arguments}()),Jie=Woe?qie:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Gie(e),Kie))?n:Yie?qie(t):"Object"==(r=qie(t))&&Aoe(t.callee)?"Arguments":r},Zie=Woe?{}.toString:function(){return"[object "+Jie(this)+"]"};Woe||Uie(Object.prototype,"toString",Zie,{unsafe:!0});var Xie,Qie,eae={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},tae=Joe("span").classList,nae=tae&&tae.constructor&&tae.constructor.prototype,rae=nae===Object.prototype?void 0:nae,oae=voe(voe.bind),iae=loe.Object,aae=voe("".split),lae=Ioe((function(){return!iae("z").propertyIsEnumerable(0)}))?function(e){return"String"==qie(e)?aae(e,""):iae(e)}:iae,uae=Math.ceil,sae=Math.floor,cae=function(e){var t=+e;return t!=t||0===t?0:(t>0?sae:uae)(t)},fae=Math.min,dae=function(e){return e>0?fae(cae(e),9007199254740991):0},pae=function(e){return dae(e.length)},hae=Array.isArray||function(e){return"Array"==qie(e)},gae=function(){},vae=[],mae=_oe("Reflect","construct"),yae=/^\s*(?:class|function)\b/,bae=voe(yae.exec),wae=!yae.exec(gae),xae=function(e){if(!Aoe(e))return!1;try{return mae(gae,vae,e),!0}catch(e){return!1}},Cae=!mae||Ioe((function(){var e;return xae(xae.call)||!xae(Object)||!xae((function(){e=!0}))||e}))?function(e){if(!Aoe(e))return!1;switch(Jie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wae||!!bae(yae,kie(e))}:xae,Eae=Uoe("species"),Sae=loe.Array,kae=function(e,t){return new(function(e){var t;return hae(e)&&(t=e.constructor,(Cae(t)&&(t===Sae||hae(t.prototype))||Koe(t)&&null===(t=t[Eae]))&&(t=void 0)),void 0===t?Sae:t}(e))(0===t?0:t)},Dae=voe([].push),Aae=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(u,s,c,f){for(var d,p,h=woe(u),g=lae(h),v=function(e,t){return sie(e),void 0===t?e:oae?oae(e,t):function(){return e.apply(t,arguments)}}(s,c),m=pae(g),y=0,b=f||kae,w=t?b(u,m):n||a?b(u,0):void 0;m>y;y++)if((l||y in g)&&(p=v(d=g[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Dae(w,d)}else switch(e){case 4:return!1;case 7:Dae(w,d)}return i?-1:r||o?o:w}},Oae={forEach:Aae(0),map:Aae(1),filter:Aae(2),some:Aae(3),every:Aae(4),find:Aae(5),findIndex:Aae(6),filterReject:Aae(7)}.forEach,_ae=(Qie=[]["forEach"])&&Ioe((function(){Qie.call(null,Xie||function(){throw 1},1)}))?[].forEach:function(e){return Oae(this,e,arguments.length>1?arguments[1]:void 0)},Bae=function(e){if(e&&e.forEach!==_ae)try{wie(e,"forEach",_ae)}catch(f){e.forEach=_ae}};for(var Fae in eae)eae[Fae]&&Bae(loe[Fae]&&loe[Fae].prototype);Bae(rae);var jae={}.propertyIsEnumerable,Pae=Object.getOwnPropertyDescriptor,Tae={f:Pae&&!jae.call({1:2},1)?function(e){var t=Pae(this,e);return!!t&&t.enumerable}:jae},Nae=function(e){return lae(yoe(e))},Iae=Object.getOwnPropertyDescriptor,Lae={f:qoe?Iae:function(e,t){if(e=Nae(e),t=gie(t),Zoe)try{return Iae(e,t)}catch(e){}if(Coe(e,t))return bie(!nie(Tae.f,e,t),e[t])}},Mae=Math.max,Rae=Math.min,zae=function(e,t){var n=cae(e);return n<0?Mae(n+t,0):Rae(n,t)},Vae=function(e){return function(t,n,r){var o,i=Nae(t),a=pae(i),l=zae(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},$ae={includes:Vae(!0),indexOf:Vae(!1)}.indexOf,Uae=voe([].push),Hae=function(e,t){var n,r=Nae(e),o=0,i=[];for(n in r)!Coe(Bie,n)&&Coe(r,n)&&Uae(i,n);for(;t.length>o;)Coe(r,n=t[o++])&&(~$ae(i,n)||Uae(i,n));return i},Wae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qae=Wae.concat("length","prototype"),Kae={f:Object.getOwnPropertyNames||function(e){return Hae(e,qae)}},Gae={f:Object.getOwnPropertySymbols},Yae=voe([].concat),Jae=_oe("Reflect","ownKeys")||function(e){var t=Kae.f(eie(e)),n=Gae.f;return n?Yae(t,n(e)):t},Zae=function(e,t){for(var n=Jae(t),r=yie.f,o=Lae.f,i=0;i<n.length;i++){var a=n[i];Coe(e,a)||r(e,a,o(t,a))}},Xae=/#|\.prototype\./,Qae=function(e,t){var n=tle[ele(e)];return n==rle||n!=nle&&(Aoe(t)?Ioe(t):!!t)},ele=Qae.normalize=function(e){return String(e).replace(Xae,".").toLowerCase()},tle=Qae.data={},nle=Qae.NATIVE="N",rle=Qae.POLYFILL="P",ole=Qae,ile=Lae.f,ale=function(e,t){var n,r,o,i,a,l=e.target,u=e.global,s=e.stat;if(n=u?loe:s?loe[l]||soe(l,{}):(loe[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ile(n,r))&&a.value:n[r],!ole(u?r:l+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zae(i,o)}(e.sham||o&&o.sham)&&wie(i,"sham",!0),Uie(n,r,i,e)}},lle=Object.keys||function(e){return Hae(e,Wae)},ule=Object.assign,sle=Object.defineProperty,cle=voe([].concat),fle=!ule||Ioe((function(){if(qoe&&1!==ule({b:1},ule(sle({},"a",{enumerable:!0,get:function(){sle(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=ule({},e)[n]||lle(ule({},t)).join("")!=r}))?function(e,t){for(var n=woe(e),r=arguments.length,o=1,i=Gae.f,a=Tae.f;r>o;)for(var l,u=lae(arguments[o++]),s=i?cle(lle(u),i(u)):lle(u),c=s.length,f=0;c>f;)l=s[f++],qoe&&!nie(a,u,l)||(n[l]=u[l]);return n}:ule;ale({target:"Object",stat:!0,forced:Object.assign!==fle},{assign:fle});var dle=roe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(l)||(a[l]=i[l])}var s=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===s&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var u=t[l],s=o.util.type(u);"Object"!==s||i[a(u)]?"Array"!==s||i[a(u)]||(i[a(u)]=!0,e(u,n,l,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),l=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var u=n.parentElement;u&&"pre"===u.nodeName.toLowerCase()&&(u.className=u.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var s={element:n,language:a,grammar:l,code:n.textContent};function c(e){s.highlightedCode=e,o.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,o.hooks.run("after-highlight",s),o.hooks.run("complete",s),i&&i.call(s.element)}if(o.hooks.run("before-sanity-check",s),(u=s.element.parentElement)&&"pre"===u.nodeName.toLowerCase()&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!s.code)return o.hooks.run("complete",s),void(i&&i.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(o.highlight(s.code,s.grammar,s.language));else c(o.util.encode(s.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new u;return s(o,o.head,e),l(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function l(e,t,n,r,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,m=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=r.next,E=u;C!==t.tail&&!(f&&E>=f.reach);E+=C.value.length,C=C.next){var S=C.value;if(t.length>e.length)return;if(!(S instanceof i)){var k,D=1;if(y){if(!(k=a(x,E,e,m)))break;var A=k.index,O=k.index+k[0].length,_=E;for(_+=C.value.length;A>=_;)_+=(C=C.next).value.length;if(E=_-=C.value.length,C.value instanceof i)continue;for(var B=C;B!==t.tail&&(_<O||"string"==typeof B.value);B=B.next)D++,_+=B.value.length;D--,S=e.slice(E,_),k.index-=E}else if(!(k=a(x,0,S,m)))continue;A=k.index;var F=k[0],j=S.slice(0,A),P=S.slice(A+F.length),T=E+S.length;f&&T>f.reach&&(f.reach=T);var N=C.prev;if(j&&(N=s(t,N,j),E+=j.length),c(t,N,D),C=s(t,N,new i(d,v?o.tokenize(F,v):F,b,F)),P&&s(t,C,P),D>1){var I={cause:d+","+h,reach:T};l(e,t,n,C.prev,E,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var l="";for(var u in i.attributes)l+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
113
- /**
114
- * Prism: Lightweight, robust, elegant syntax highlighting
115
- *
116
- * @license MIT <https://opensource.org/licenses/MIT>
117
- * @author Lea Verou <https://lea.verou.me>
118
- * @namespace
119
- * @public
120
- */e.exports&&(e.exports=t),void 0!==noe&&(noe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',a=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),t.hooks.add("before-sanity-check",(function(a){var l=a.element;if(l.matches(i)){a.code="",l.setAttribute(n,r);var s=l.appendChild(document.createElement("CODE"));s.textContent="Loading…";var c=l.getAttribute("data-src"),f=a.language;if("none"===f){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=e[d]||d}u(s,f),u(l,f);var p=t.plugins.autoloader;p&&p.loadLanguages(f);var h=new XMLHttpRequest;h.open("GET",c,!0),h.onreadystatechange=function(){var e,r;4==h.readyState&&(h.status<400&&h.responseText?(l.setAttribute(n,o),s.textContent=h.responseText,t.highlightElement(s)):(l.setAttribute(n,"failed"),h.status>=400?s.textContent=(e=h.status,r=h.statusText,"✖ Error "+e+" while fetching file: "+r):s.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var l=!1;t.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(e,t){var n=e.className;n=n.replace(a," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},l=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&l(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||l(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",l="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 u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var s=u(i),c=RegExp(u(o+" "+i+" "+a+" "+l)),f=u(i+" "+a+" "+l),d=u(o+" "+i+" "+l),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,m,y]),E={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,D=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[s,v]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,g]),inside:E}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,v,g,C,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:E},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 A=k+"|"+S,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),_=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),B=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,F=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,_]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[B,F]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[B]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[_]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var j=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),T=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,j]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[A]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,j]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,j]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[T]),lookbehind:!0,greedy:!0,inside:L(T,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var l=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],s=/language-(.+)/.exec(i);if(s){n=s[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=l[t];return r||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism);var ple=["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 hle(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+hle(t)}),0)}var gle,vle=loe.String,mle=function(e){if("Symbol"===Jie(e))throw TypeError("Cannot convert a Symbol value to a string");return vle(e)},yle=function(){var e=eie(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ble=loe.RegExp,wle=Ioe((function(){var e=ble("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),xle=wle||Ioe((function(){return!ble("a","y").sticky})),Cle={BROKEN_CARET:wle||Ioe((function(){var e=ble("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:xle,UNSUPPORTED_Y:wle},Ele=qoe?Object.defineProperties:function(e,t){eie(e);for(var n,r=Nae(t),o=lle(t),i=o.length,a=0;i>a;)yie.f(e,n=o[a++],r[n]);return e},Sle=_oe("document","documentElement"),kle=_ie("IE_PROTO"),Dle=function(){},Ale=function(e){return"<script>"+e+"<\/script>"},Ole=function(e){e.write(Ale("")),e.close();var t=e.parentWindow.Object;return e=null,t},_le=function(){try{gle=new ActiveXObject("htmlfile")}catch(e){}var e,t;_le="undefined"!=typeof document?document.domain&&gle?Ole(gle):((t=Joe("iframe")).style.display="none",Sle.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ale("document.F=Object")),e.close(),e.F):Ole(gle);for(var n=Wae.length;n--;)delete _le.prototype[Wae[n]];return _le()};Bie[kle]=!0;var Ble,Fle,jle=Object.create||function(e,t){var n;return null!==e?(Dle.prototype=eie(e),n=new Dle,Dle.prototype=null,n[kle]=e):n=_le(),void 0===t?n:Ele(n,t)},Ple=loe.RegExp,Tle=Ioe((function(){var e=Ple(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Nle=loe.RegExp,Ile=Ioe((function(){var e=Nle("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Lle=Mie.get,Mle=foe("native-string-replace",String.prototype.replace),Rle=RegExp.prototype.exec,zle=Rle,Vle=voe("".charAt),$le=voe("".indexOf),Ule=voe("".replace),Hle=voe("".slice),Wle=(Fle=/b*/g,nie(Rle,Ble=/a/,"a"),nie(Rle,Fle,"a"),0!==Ble.lastIndex||0!==Fle.lastIndex),qle=Cle.BROKEN_CARET,Kle=void 0!==/()??/.exec("")[1];(Wle||Kle||qle||Tle||Ile)&&(zle=function(e){var t,n,r,o,i,a,l,u=this,s=Lle(u),c=mle(e),f=s.raw;if(f)return f.lastIndex=u.lastIndex,t=nie(zle,f,c),u.lastIndex=f.lastIndex,t;var d=s.groups,p=qle&&u.sticky,h=nie(yle,u),g=u.source,v=0,m=c;if(p&&(h=Ule(h,"y",""),-1===$le(h,"g")&&(h+="g"),m=Hle(c,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Vle(c,u.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,v++),n=new RegExp("^(?:"+g+")",h)),Kle&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Wle&&(r=u.lastIndex),o=nie(Rle,p?n:u,m),p?o?(o.input=Hle(o.input,v),o[0]=Hle(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Wle&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),Kle&&o&&o.length>1&&nie(Mle,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=jle(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var Gle=zle;ale({target:"RegExp",proto:!0,forced:/./.exec!==Gle},{exec:Gle});var Yle=Function.prototype,Jle=Yle.apply,Zle=Yle.bind,Xle=Yle.call,Qle="object"==typeof Reflect&&Reflect.apply||(Zle?Xle.bind(Jle):function(){return Xle.apply(Jle,arguments)}),eue=Uoe("species"),tue=RegExp.prototype,nue=Uoe("match"),rue=loe.TypeError,oue=Uoe("species"),iue=function(e,t){var n,r=eie(e).constructor;return void 0===r||null==(n=eie(r)[oue])?t:function(e){if(Cae(e))return e;throw rue(lie(e)+" is not a constructor")}(n)},aue=voe("".charAt),lue=voe("".charCodeAt),uue=voe("".slice),sue=function(e){return function(t,n){var r,o,i=mle(yoe(t)),a=cae(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=lue(i,a))<55296||r>56319||a+1===l||(o=lue(i,a+1))<56320||o>57343?e?aue(i,a):r:e?uue(i,a,a+2):o-56320+(r-55296<<10)+65536}},cue={codeAt:sue(!1),charAt:sue(!0)}.charAt,fue=function(e,t,n){return t+(n?cue(e,t).length:1)},due=loe.Array,pue=Math.max,hue=function(e,t,n){for(var r,o,i,a,l=pae(e),u=zae(t,l),s=zae(void 0===n?l:n,l),c=due(pue(s-u,0)),f=0;u<s;u++,f++)r=c,o=f,i=e[u],a=void 0,(a=gie(o))in r?yie.f(r,a,bie(0,i)):r[a]=i;return c.length=f,c},gue=loe.TypeError,vue=function(e,t){var n=e.exec;if(Aoe(n)){var r=nie(n,e,t);return null!==r&&eie(r),r}if("RegExp"===qie(e))return nie(Gle,e,t);throw gue("RegExp#exec called on incompatible receiver")},mue=Cle.UNSUPPORTED_Y,yue=Math.min,bue=[].push,wue=voe(/./.exec),xue=voe(bue),Cue=voe("".slice);!function(e,t,n,r){var o=Uoe(e),i=!Ioe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ioe((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[eue]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=voe(/./[o]),u=t(o,""[e],(function(e,t,n,r,o){var a=voe(e),u=t.exec;return u===Gle||u===tue.exec?i&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Uie(String.prototype,e,u[0]),Uie(tue,o,u[1])}r&&wie(tue[o],"sham",!0)}("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=mle(yoe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Koe(r=e)||!(void 0!==(o=r[nue])?o:"RegExp"==qie(r)))return nie(t,i,e,a);for(var l,u,s,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(l=nie(Gle,p,i))&&!((u=p.lastIndex)>d&&(xue(c,Cue(i,d,l.index)),l.length>1&&l.index<i.length&&Qle(bue,c,hue(l,1)),s=l[0].length,d=u,c.length>=a));)p.lastIndex===l.index&&p.lastIndex++;return d===i.length?!s&&wue(p,"")||xue(c,""):xue(c,Cue(i,d)),c.length>a?hue(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:nie(t,this,e,n)}:t,[function(t,n){var o=yoe(this),i=null==t?void 0:cie(t,e);return i?nie(i,t,o,n):nie(r,mle(o),t,n)},function(e,o){var i=eie(this),a=mle(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var u=iue(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mue?"g":"y"),f=new u(mue?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===vue(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=mue?0:h;var v,m=vue(f,mue?Cue(a,h):a);if(null===m||(v=yue(dae(f.lastIndex+(mue?h:0)),a.length))===p)h=fue(a,h,s);else{if(xue(g,Cue(a,p,h)),g.length===d)return g;for(var y=1;y<=m.length-1;y++)if(xue(g,m[y]),g.length===d)return g;h=p=v}}return xue(g,Cue(a,p)),g}]}),!!Ioe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),mue),ale({global:!0},{globalThis:loe}),po&&(uo.fn.attr=po);var Eue=$ie.PROPER,Sue=RegExp.prototype,kue=Sue.toString,Due=voe(yle),Aue=Ioe((function(){return"/a/b"!=kue.call({source:"a",flags:"b"})})),Oue=Eue&&"toString"!=kue.name;(Aue||Oue)&&Uie(RegExp.prototype,"toString",(function(){var e=eie(this),t=mle(e.source),n=e.flags;return"/"+t+"/"+mle(void 0===n&&rie(Sue,e)&&!("flags"in Sue)?Due(e):n)}),{unsafe:!0});var _ue=function(){function e(){this.title=LD("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!Qe.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Jt.setNodes(e,n,{match:function(e){return Tw.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Tw.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Tw.getParentNode(e,t);return Qe.isElement(n)?"pre"!==n.type?null:t:null},e}(),Bue={renderStyle:function(e,t){var n=e,r=t,o="";return ple.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=uo(e);if(!Qe.isElement(t))return t;if("code"!==Tw.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new _ue},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Fue=/"/g,jue=voe("".replace);ale({target:"String",proto:!0,forced:function(e){return Ioe((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}("anchor")},{anchor:function(e){return t="a",n="name",r=e,o=mle(yoe(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+jue(mle(r),Fue,"&quot;")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var Pue=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],l=[],u=function(e){if(!Ft.isText(e))return null;var t=Tw.getParentNode(null,e);if(t&&"code"===Tw.getNodeType(t)){var n=Tw.getParentNode(null,t);if(n&&"pre"===Tw.getNodeType(n))return t}return null}(i);if(null==u)return l;var s=u.language,c=void 0===s?"":s;if(!c)return l;var f=function(e,t){if(!t)return[];var n=dle.languages[t];return n?dle.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
121
- /*! *****************************************************************************
122
- Copyright (c) Microsoft Corporation.
123
-
124
- Permission to use, copy, modify, and/or distribute this software for any
125
- purpose with or without fee is hereby granted.
126
-
127
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
128
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
129
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
130
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
131
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
132
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
133
- PERFORMANCE OF THIS SOFTWARE.
134
- ***************************************************************************** */
135
- function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+hle(g);"string"!=typeof g&&l.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return l},Tue=function(){return Tue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tue.apply(this,arguments)},Nue=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Tue(Tue({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Tue(Tue({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Tue(Tue({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Tue(Tue({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){Mw(e,t)},e.registerRenderElem=function(e){_S(e)},e.registerRenderStyle=function(e){AS(e)},e.registerElemToHtml=function(e){ax(e)},e.registerStyleToHtml=function(e){ox(e)},e.registerPreParseHtml=function(e){GC(e)},e.registerParseElemHtml=function(e){XC(e)},e.registerParseStyleHtml=function(e){JC(e)},e.registerModule=function(e){Iue(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
136
- /*! *****************************************************************************
137
- Copyright (c) Microsoft Corporation.
138
-
139
- Permission to use, copy, modify, and/or distribute this software for any
140
- purpose with or without fee is hereby granted.
141
-
142
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
143
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
144
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
145
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
146
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
147
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
148
- PERFORMANCE OF THIS SOFTWARE.
149
- ***************************************************************************** */function Iue(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,l=e.parseElemsHtml,u=e.parseStyleHtml,s=e.editorPlugin;t&&t.forEach((function(e){return Nue.registerMenu(e)})),n&&n.forEach((function(e){return Nue.registerRenderElem(e)})),r&&Nue.registerRenderStyle(r),o&&o.forEach((function(e){return Nue.registerElemToHtml(e)})),i&&Nue.registerStyleToHtml(i),a&&a.forEach((function(e){return Nue.registerPreParseHtml(e)})),l&&l.forEach((function(e){return Nue.registerParseElemHtml(e)})),u&&Nue.registerParseStyleHtml(u),s&&Nue.registerPlugin(s)}Vz.forEach((function(e){return Iue(e)})),Iue(TW),Iue(SZ),Iue(e8),Iue(toe),Iue(Bue);var Lue='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Mue='<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>',Rue='<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>',zue='<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>',Vue='<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 $ue(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:LD("editor.more"),iconSvg:zue,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:LD("editor.justify"),iconSvg:Mue,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:LD("editor.indent"),iconSvg:Lue,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:LD("editor.image"),iconSvg:Rue,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:LD("editor.video"),iconSvg:Vue,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function Uue(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:LD("editor.image"),iconSvg:Rue,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var Hue={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 Wue(){return Tue(Tue({},Hue),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function que(){return Hue}function Kue(){return{hoverbarKeys:Wue()}}function Gue(){return{hoverbarKeys:que()}}function Yue(){return{toolbarKeys:$ue()}}function Jue(){return{toolbarKeys:Uue()}}var Zue=Kue();Nue.setEditorConfig(Tue(Tue({},Zue),{decorate:Pue}));var Xue=Gue();Nue.setSimpleEditorConfig(Tue(Tue({},Xue),{decorate:Pue}));var Que=Yue();Nue.setToolbarConfig(Que);var ese=Jue();function tse(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,l=void 0===a?{}:a,u=e.mode,s=void 0===u?"default":u,c="simple"===s?Nue.simpleEditorConfig:Nue.editorConfig,f=Tue(Tue({},c.hoverbarKeys||{}),l.hoverbarKeys||{}),d=_k({selector:n,config:Tue(Tue(Tue({},c),l),{hoverbarKeys:f}),content:o,html:i,plugins:Nue.plugins});return d}function nse(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var l="simple"===a?Nue.simpleToolbarConfig:Nue.toolbarConfig,u=Nk(n,{selector:t,config:Tue(Tue({},l),o)});return u}Nue.setSimpleToolbarConfig(ese);var rse={}},4104:function(e,t,n){!function(t,r){e.exports=r(n(7877))}(self,(e=>(()=>{"use strict";var t={857:t=>{t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{r.r(o),r.d(o,{default:()=>T});var e=r(857);function t(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}(0,e.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,e.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});const n=Array.isArray;function i(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function a(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r];if("string"==typeof e)continue;const n=e.data;void 0!==n&&a(n,e.children,e.sel)}}function l(e,r,o){let l,u,s,c={};if(void 0!==o?(null!==r&&(c=r),n(o)?l=o:i(o)?u=o.toString():o&&o.sel&&(l=[o])):null!=r&&(n(r)?l=r:i(r)?u=r.toString():r&&r.sel?l=[r]:c=r),void 0!==l)for(s=0;s<l.length;++s)i(l[s])&&(l[s]=t(void 0,void 0,void 0,l[s],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||a(c,l,e),t(e,c,l,u,void 0)}const u={type:"attachment",renderElem:function(t,n,r){var o=r.isDisabled(),i=e.DomEditor.isNodeSelected(r,t),a=t,u=a.fileName,s=void 0===u?"":u,c=a.link,f=void 0===c?"":c;return l("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:i&&!o?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:o?"pointer":"inherit"},on:{click:function(){o&&f&&window.open(f,"_blank")}}},[l("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),s])}};function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function c(e={},t={}){Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:s(t[n])&&s(e[n])&&Object.keys(t[n]).length>0&&c(e[n],t[n])}))}const f={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function d(){const e="undefined"!=typeof document?document:{};return c(e,f),e}const p={document:f,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function h(){const e="undefined"!=typeof window?window:{};return c(e,p),e}class g extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function v(e,t){const n=h(),r=d();let o=[];if(!t&&e instanceof g)return e;if(!e)return new g(o);if("string"==typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");const t=r.createElement(e);t.innerHTML=n;for(let n=0;n<t.childNodes.length;n+=1)o.push(t.childNodes[n])}else o=function(e,t){if("string"!=typeof e)return[e];const n=[],r=t.querySelectorAll(e);for(let o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof g)return e;o=e}return new g(function(e){const t=[];for(let n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function m(...e){let[t,n,r,o]=e;function i(e){const t=e.target;if(!t)return;const o=e.target.dom7EventData||[];if(o.indexOf(e)<0&&o.unshift(e),v(t).is(n))r.apply(t,o);else{const e=v(t).parents();for(let t=0;t<e.length;t+=1)v(e[t]).is(n)&&r.apply(e[t],o)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof e[1]&&([t,r,o]=e,n=void 0),o||(o=!1);const l=t.split(" ");let u;for(let s=0;s<this.length;s+=1){const e=this[s];if(n)for(u=0;u<l.length;u+=1){const t=l[u];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:r,proxyListener:i}),e.addEventListener(t,i,o)}else for(u=0;u<l.length;u+=1){const t=l[u];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:r,proxyListener:a}),e.addEventListener(t,a,o)}}return this}function y(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this}function b(...e){let t;const n=d();for(let r=0;r<e.length;r+=1){t=e[r];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const r=n.createElement("div");for(r.innerHTML=t;r.firstChild;)this[e].appendChild(r.firstChild)}else if(t instanceof g)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this}v.fn=g.prototype;const w="resize scroll".split(" ");function x(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)w.indexOf(e)<0&&(e in this[t]?this[t][e]():v(this[t]).trigger(e));return this}return this.on(e,...t)}}const C=x("click"),E=(x("blur"),x("focus"),x("focusin"),x("focusout"),x("keyup"),x("keydown"),x("keypress"),x("submit"),x("change"),x("mousedown"),x("mousemove"),x("mouseup"),x("mouseenter"),x("mouseleave"),x("mouseout"),x("mouseover"),x("touchstart"),x("touchend"),x("touchmove"),x("resize"),x("scroll"),v);y&&(E.fn.hide=y),b&&(E.fn.append=b),C&&(E.fn.click=C),m&&(E.fn.on=m);const S=E;globalThis.Node,globalThis.Comment,globalThis.Element,globalThis.Text,globalThis.Range,globalThis.Selection,globalThis.StaticRange;var k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},k.apply(this,arguments)},D=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},A=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function O(e){return e.getMenuConfig("uploadAttachment")}function _(e,t,n){if(t&&n){e.restoreSelection();var r={type:"attachment",fileName:t,link:n,children:[{text:""}]};e.insertNode(r),e.move(1);var o=O(e).onInsertedAttachment;o&&o(r)}}function B(t,n){return D(this,void 0,void 0,(function(){var r,o,i,a;return A(this,(function(l){switch(l.label){case 0:return r=function(t){var n=F.get(t);if(null!=n)return n;var r=O(t),o=r.onSuccess,i=r.onProgress,a=r.onFailed,l=r.customInsert,u=r.onError;return n=(0,e.createUploader)(k(k({},r),{onProgress:function(e){t.showProgressBar(e),i&&i(e)},onSuccess:function(e,n){if(l)l(n,e,(function(e,n){return _(t,e,n)}));else{var r=n.errno,i=void 0===r?1:r,u=n.data,s=void 0===u?{}:u;if(0!==i)return console.error("'".concat(e.name,"' upload failed"),n),void a(e,n);var c=s.url,f=void 0===c?"":c;_(t,e.name,f),o(e,n)}},onError:function(e,t,n){var r=e.name;console.error("'".concat(r," upload error"),t,n),u&&u(e,t,n)}})),F.set(t,n),n}(t),o=n.name,i=n.type,a=n.size,r.addFile({name:o,type:i,size:a,data:n}),[4,r.upload()];case 1:return l.sent(),[2]}}))}))}var F=new WeakMap;const j=function(){function t(){this.title=(0,e.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return _(e,t,n)}));else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var l=S("body"),u=S('<input type="file" '.concat(a," multiple/>"));u.hide(),l.append(u),u.click(),u.on("change",(function(){var t=u[0].files;!function(e,t){var n,r;D(this,void 0,void 0,(function(){var o,i,a,l,u,s;return A(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=O(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(l=c.sent()).done?[3,8]:(u=l.value,i?[4,i(u,(function(t,n){return _(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,B(e,u)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return s=c.sent(),n={error:s},[3,15];case 10:return c.trys.push([10,,13,14]),l&&!l.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},t.prototype.isDisabled=function(t){var n=t.selection;if(null==n)return!0;if(e.SlateRange.isExpanded(n))return!0;var r=e.DomEditor.getSelectedElems(t);return!!r.some((function(e){return t.isVoid(e)}))||!!r.some((function(t){return"pre"===e.DomEditor.getNodeType(t)}))},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadAttachment")},t}(),P=function(){function t(){this.title=(0,e.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){var t=this.getSelectedElem(e);return null==t?"":t.link},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){t&&"string"==typeof t&&window.open(t,"_blank")},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||!!e.SlateRange.isExpanded(n)||null==this.getSelectedElem(t)},t.prototype.getSelectedElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"attachment");return null==n?null:n},t}(),T={editorPlugin:function(t){var n=t.isInline,r=t.isVoid,o=t;return o.isInline=function(t){return"attachment"===e.DomEditor.getNodeType(t)||n(t)},o.isVoid=function(t){return"attachment"===e.DomEditor.getNodeType(t)||r(t)},o},renderElems:[u],elemsToHtml:[{type:"attachment",elemToHtml:function(e,t){var n=e,r=n.link,o=void 0===r?"":r,i=n.fileName,a=void 0===i?"":i;return'<span data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline data-link="'.concat(o,'" data-fileName="').concat(a,'">').concat(a,"</span>")}}],parseElemsHtml:[{selector:'span[data-w-e-type="attachment"]',parseElemHtml:function(e,t,n){return{type:"attachment",link:e.getAttribute("data-link")||"",fileName:e.getAttribute("data-fileName")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new j},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},onInsertedAttachment:function(e){}}},{key:"downloadAttachment",factory:function(){return new P}}]}})(),o})()))},9662:function(e,t,n){var r=n(614),o=n(6330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},1223:function(e,t,n){var r=n(5112),o=n(30),i=n(3070).f,a=r("unscopables"),l=Array.prototype;void 0==l[a]&&i(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},9670:function(e,t,n){var r=n(111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var l,u=r(t),s=i(u),c=o(a,s);if(e&&n!=n){while(s>c)if(l=u[c++],l!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},9920:function(e,t,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t,n){for(var l=o(t),u=a.f,s=i.f,c=0;c<l.length;c++){var f=l[c];r(e,f)||n&&r(n,f)||u(e,f,s(t,f))}}},8880:function(e,t,n){var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,n){var r=n(614),o=n(3070),i=n(6339),a=n(3072);e.exports=function(e,t,n,l){l||(l={});var u=l.enumerable,s=void 0!==l.name?l.name:t;if(r(n)&&i(n,s,l),l.global)u?e[t]=n:a(t,n);else{try{l.unsafe?e[t]&&(u=!0):delete e[t]}catch(c){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!l.nonConfigurable,writable:!l.nonWritable})}return e}},3072:function(e,t,n){var r=n(7854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,i=n(7854),a=n(8113),l=i.process,u=i.Deno,s=l&&l.versions||u&&u.version,c=s&&s.v8;c&&(r=c.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),l=n(3072),u=n(9920),s=n(4705);e.exports=function(e,t){var n,c,f,d,p,h,g=e.target,v=e.global,m=e.stat;if(c=v?r:m?r[g]||l(g,{}):(r[g]||{}).prototype,c)for(f in t){if(p=t[f],e.dontCallGetSet?(h=o(c,f),d=h&&h.value):d=c[f],n=s(v?f:g+(m?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(c,f,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),u=l&&"something"===function(){}.name,s=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:u,CONFIGURABLE:s}},1702:function(e,t,n){var r=n(4374),o=Function.prototype,i=o.bind,a=o.call,l=r&&i.bind(a,a);e.exports=r?function(e){return e&&l(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,l=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?l(e,""):a(e)}:a},2788:function(e,t,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},9909:function(e,t,n){var r,o,i,a=n(8536),l=n(7854),u=n(1702),s=n(111),c=n(8880),f=n(2597),d=n(5465),p=n(6200),h=n(3501),g="Object already initialized",v=l.TypeError,m=l.WeakMap,y=function(e){return i(e)?o(e):r(e,{})},b=function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var w=d.state||(d.state=new m),x=u(w.get),C=u(w.has),E=u(w.set);r=function(e,t){if(C(w,e))throw new v(g);return t.facade=e,E(w,e,t),t},o=function(e){return x(w,e)||{}},i=function(e){return C(w,e)}}else{var S=p("state");h[S]=!0,r=function(e,t){if(f(e,S))throw new v(g);return t.facade=e,c(e,S,t),t},o=function(e){return f(e,S)?e[S]:{}},i=function(e){return f(e,S)}}e.exports={set:r,get:o,has:i,enforce:y,getterFor:b}},614:function(e){e.exports=function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=u[l(e)];return n==c||n!=s&&(o(t)?r(t):!!t)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},111:function(e,t,n){var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),o=n(614),i=n(7976),a=n(3307),l=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,l(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(7293),o=n(614),i=n(2597),a=n(9781),l=n(6530).CONFIGURABLE,u=n(2788),s=n(9909),c=s.enforce,f=s.get,d=Object.defineProperty,p=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||l&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&i(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=c(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return o(this)&&f(this).source||u(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},133:function(e,t,n){var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(e,t,n){var r=n(7854),o=n(614),i=n(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},30:function(e,t,n){var r,o=n(9670),i=n(6048),a=n(748),l=n(3501),u=n(490),s=n(317),c=n(6200),f=">",d="<",p="prototype",h="script",g=c("IE_PROTO"),v=function(){},m=function(e){return d+h+f+e+d+"/"+h+f},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=s("iframe"),n="java"+h+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var e=a.length;while(e--)delete w[p][a[e]];return w()};l[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[p]=o(e),n=new v,v[p]=null,n[g]=e):n=w(),void 0===t?n:i.f(n,t)}},6048:function(e,t,n){var r=n(9781),o=n(3353),i=n(3070),a=n(9670),l=n(5656),u=n(1956);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);var n,r=l(t),o=u(t),s=o.length,c=0;while(s>c)i.f(e,n=o[c++],r[n]);return e}},3070:function(e,t,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),l=n(4948),u=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=l(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(a(e),t=l(t),a(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),l=n(5656),u=n(4948),s=n(2597),c=n(4664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=l(e),t=u(t),c)try{return f(e,t)}catch(n){}if(s(e,t))return a(!o(i.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,l=n(3501),u=r([].push);e.exports=function(e,t){var n,r=i(e),s=0,c=[];for(n in r)!o(l,n)&&o(r,n)&&u(c,n);while(t.length>s)o(r,n=t[s++])&&(~a(c,n)||u(c,n));return c}},1956:function(e,t,n){var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2140:function(e,t,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;e.exports=function(e,t){var n,l;if("string"===t&&o(n=e.toString)&&!i(l=r(n,e)))return l;if(o(n=e.valueOf)&&!i(l=r(n,e)))return l;if("string"!==t&&o(n=e.toString)&&!i(l=r(n,e)))return l;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),l=n(9670),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(l(e)),n=a.f;return n?u(t,n(e)):t}},4488:function(e){var t=TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.5",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(e,t,n){var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e,t,n){var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),o=Object;e.exports=function(e){return o(r(e))}},7593:function(e,t,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),l=n(2140),u=n(5112),s=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw s("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(e,t,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),l=n(133),u=n(3307),s=o("wks"),c=r.Symbol,f=c&&c["for"],d=u?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(s,e)||!l&&"string"!=typeof s[e]){var t="Symbol."+e;l&&i(c,e)?s[e]=c[e]:s[e]=u&&f?f(t):d(t)}return s[e]}},6699:function(e,t,n){"use strict";var r=n(2109),o=n(1318).includes,i=n(7293),a=n(1223),l=i((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:l},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},7484:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",u="week",s="month",c="quarter",f="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:f,w:u,d:l,D:d,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=v;var x=function(e){return e instanceof k},C=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},E=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},S=y;S.l=C,S.i=x,S.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function v(e){this.$L=C(e.locale,null,!0),this.parse(e)}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return S},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return E(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<E(e)},m.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!S.u(t)||t,c=S.p(e),p=function(e,t){var o=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,v=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case f:return r?p(1,0):p(31,11);case s:return r?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(g<b?g+7:g)-b;return p(r?m-w:m+(6-w),v);case l:case d:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,u=S.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[l]=c+"Date",n[d]=c+"Date",n[s]=c+"Month",n[f]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],h=u===l?this.$D+(t-this.$W):t;if(u===s||u===f){var g=this.clone().set(d,1);g.$d[p](h),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[S.p(e)]()},m.add=function(r,c){var d,p=this;r=Number(r);var h=S.p(c),g=function(e){var t=E(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===f)return this.set(f,this.$y+r);if(h===l)return g(1);if(h===u)return g(7);var v=(d={},d[i]=t,d[a]=n,d[o]=e,d)[h]||1,m=this.$d.getTime()+r*v;return S.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),i=this.$H,a=this.$m,l=this.$M,u=n.weekdays,s=n.months,c=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return S.s(i%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:S.s(l+1,2,"0"),MMM:c(n.monthsShort,l,s,3),MMMM:c(s,l),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:S.s(i,2,"0"),h:f(1),hh:f(2),a:d(i,a,!0),A:d(i,a,!1),m:String(a),mm:S.s(a,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:o};return r.replace(g,(function(e,t){return t||h[e]||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,p){var h,g=S.p(d),v=E(r),m=(v.utcOffset()-this.utcOffset())*t,y=this-v,b=S.m(this,v);return b=(h={},h[f]=b/12,h[s]=b,h[c]=b/3,h[u]=(y-m)/6048e5,h[l]=(y-m)/864e5,h[a]=y/n,h[i]=y/t,h[o]=y/e,h)[g]||y,p?b:S.a(b)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return w[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return S.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),D=k.prototype;return E.prototype=D,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",f],["$D",d]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,k,E),e.$i=!0),E},E.locale=C,E.isDayjs=x,E.unix=function(e){return E(1e3*e)},E.en=w[b],E.Ls=w,E.p={},E}))},8020:function(e,t,n){var r;
150
- /**
151
- * @license
152
- * Lodash <https://lodash.com/>
153
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
154
- * Released under MIT license <https://lodash.com/license>
155
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
156
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
157
- */e=n.nmd(e),function(){var o,i="4.17.21",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",p=1,h=2,g=4,v=1,m=2,y=1,b=2,w=4,x=8,C=16,E=32,S=64,k=128,D=256,A=512,O=30,_="...",B=800,F=16,j=1,P=2,T=3,N=1/0,I=9007199254740991,L=17976931348623157e292,M=NaN,R=4294967295,z=R-1,V=R>>>1,$=[["ary",k],["bind",y],["bindKey",b],["curry",x],["curryRight",C],["flip",A],["partial",E],["partialRight",S],["rearg",D]],U="[object Arguments]",H="[object Array]",W="[object AsyncFunction]",q="[object Boolean]",K="[object Date]",G="[object DOMException]",Y="[object Error]",J="[object Function]",Z="[object GeneratorFunction]",X="[object Map]",Q="[object Number]",ee="[object Null]",te="[object Object]",ne="[object Promise]",re="[object Proxy]",oe="[object RegExp]",ie="[object Set]",ae="[object String]",le="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",ce="[object WeakSet]",fe="[object ArrayBuffer]",de="[object DataView]",pe="[object Float32Array]",he="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",me="[object Int32Array]",ye="[object Uint8Array]",be="[object Uint8ClampedArray]",we="[object Uint16Array]",xe="[object Uint32Array]",Ce=/\b__p \+= '';/g,Ee=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Ae=RegExp(ke.source),Oe=RegExp(De.source),_e=/<%-([\s\S]+?)%>/g,Be=/<%([\s\S]+?)%>/g,Fe=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Ne.source),Le=/^\s+/,Me=/\s/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /,$e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Ge=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt="\\ud800-\\udfff",nt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",it=nt+rt+ot,at="\\u2700-\\u27bf",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ut="\\xac\\xb1\\xd7\\xf7",st="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ct="\\u2000-\\u206f",ft=" \\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",dt="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ht=ut+st+ct+ft,gt="['’]",vt="["+tt+"]",mt="["+ht+"]",yt="["+it+"]",bt="\\d+",wt="["+at+"]",xt="["+lt+"]",Ct="[^"+tt+ht+bt+at+lt+dt+"]",Et="\\ud83c[\\udffb-\\udfff]",St="(?:"+yt+"|"+Et+")",kt="[^"+tt+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+dt+"]",_t="\\u200d",Bt="(?:"+xt+"|"+Ct+")",Ft="(?:"+Ot+"|"+Ct+")",jt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Pt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",Tt=St+"?",Nt="["+pt+"]?",It="(?:"+_t+"(?:"+[kt,Dt,At].join("|")+")"+Nt+Tt+")*",Lt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rt=Nt+Tt+It,zt="(?:"+[wt,Dt,At].join("|")+")"+Rt,Vt="(?:"+[kt+yt+"?",yt,Dt,At,vt].join("|")+")",$t=RegExp(gt,"g"),Ut=RegExp(yt,"g"),Ht=RegExp(Et+"(?="+Et+")|"+Vt+Rt,"g"),Wt=RegExp([Ot+"?"+xt+"+"+jt+"(?="+[mt,Ot,"$"].join("|")+")",Ft+"+"+Pt+"(?="+[mt,Ot+Bt,"$"].join("|")+")",Ot+"?"+Bt+"+"+jt,Ot+"+"+Pt,Mt,Lt,bt,zt].join("|"),"g"),qt=RegExp("["+_t+tt+it+pt+"]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yt=-1,Jt={};Jt[pe]=Jt[he]=Jt[ge]=Jt[ve]=Jt[me]=Jt[ye]=Jt[be]=Jt[we]=Jt[xe]=!0,Jt[U]=Jt[H]=Jt[fe]=Jt[q]=Jt[de]=Jt[K]=Jt[Y]=Jt[J]=Jt[X]=Jt[Q]=Jt[te]=Jt[oe]=Jt[ie]=Jt[ae]=Jt[se]=!1;var Zt={};Zt[U]=Zt[H]=Zt[fe]=Zt[de]=Zt[q]=Zt[K]=Zt[pe]=Zt[he]=Zt[ge]=Zt[ve]=Zt[me]=Zt[X]=Zt[Q]=Zt[te]=Zt[oe]=Zt[ie]=Zt[ae]=Zt[le]=Zt[ye]=Zt[be]=Zt[we]=Zt[xe]=!0,Zt[Y]=Zt[J]=Zt[se]=!1;var Xt={"À":"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","ſ":"s"},Qt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},en={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,an="object"==typeof self&&self&&self.Object===Object&&self,ln=on||an||Function("return this")(),un=t&&!t.nodeType&&t,sn=un&&e&&!e.nodeType&&e,cn=sn&&sn.exports===un,fn=cn&&on.process,dn=function(){try{var e=sn&&sn.require&&sn.require("util").types;return e||fn&&fn.binding&&fn.binding("util")}catch(t){}}(),pn=dn&&dn.isArrayBuffer,hn=dn&&dn.isDate,gn=dn&&dn.isMap,vn=dn&&dn.isRegExp,mn=dn&&dn.isSet,yn=dn&&dn.isTypedArray;function bn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wn(e,t,n,r){var o=-1,i=null==e?0:e.length;while(++o<i){var a=e[o];t(r,a,n(a),e)}return r}function xn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function En(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function Sn(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function kn(e,t){var n=null==e?0:e.length;return!!n&&Ln(e,t,0)>-1}function Dn(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}function An(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}function On(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}function _n(e,t,n,r){var o=-1,i=null==e?0:e.length;r&&i&&(n=e[++o]);while(++o<i)n=t(n,e[o],o,e);return n}function Bn(e,t,n,r){var o=null==e?0:e.length;r&&o&&(n=e[--o]);while(o--)n=t(n,e[o],o,e);return n}function Fn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var jn=Vn("length");function Pn(e){return e.split("")}function Tn(e){return e.match($e)||[]}function Nn(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function In(e,t,n,r){var o=e.length,i=n+(r?1:-1);while(r?i--:++i<o)if(t(e[i],i,e))return i;return-1}function Ln(e,t,n){return t===t?pr(e,t,n):In(e,Rn,n)}function Mn(e,t,n,r){var o=n-1,i=e.length;while(++o<i)if(r(e[o],t))return o;return-1}function Rn(e){return e!==e}function zn(e,t){var n=null==e?0:e.length;return n?Wn(e,t)/n:M}function Vn(e){return function(t){return null==t?o:t[e]}}function $n(e){return function(t){return null==e?o:e[t]}}function Un(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Hn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Wn(e,t){var n,r=-1,i=e.length;while(++r<i){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function qn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Kn(e,t){return An(t,(function(t){return[t,e[t]]}))}function Gn(e){return e?e.slice(0,mr(e)+1).replace(Le,""):e}function Yn(e){return function(t){return e(t)}}function Jn(e,t){return An(t,(function(t){return e[t]}))}function Zn(e,t){return e.has(t)}function Xn(e,t){var n=-1,r=e.length;while(++n<r&&Ln(t,e[n],0)>-1);return n}function Qn(e,t){var n=e.length;while(n--&&Ln(t,e[n],0)>-1);return n}function er(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var tr=$n(Xt),nr=$n(Qt);function rr(e){return"\\"+tn[e]}function or(e,t){return null==e?o:e[t]}function ir(e){return qt.test(e)}function ar(e){return Kt.test(e)}function lr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function ur(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sr(e,t){return function(n){return e(t(n))}}function cr(e,t){var n=-1,r=e.length,o=0,i=[];while(++n<r){var a=e[n];a!==t&&a!==d||(e[n]=d,i[o++]=n)}return i}function fr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}function hr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function gr(e){return ir(e)?br(e):jn(e)}function vr(e){return ir(e)?wr(e):Pn(e)}function mr(e){var t=e.length;while(t--&&Me.test(e.charAt(t)));return t}var yr=$n(en);function br(e){var t=Ht.lastIndex=0;while(Ht.test(e))++t;return t}function wr(e){return e.match(Ht)||[]}function xr(e){return e.match(Wt)||[]}var Cr=function e(t){t=null==t?ln:Er.defaults(ln.Object(),t,Er.pick(ln,Gt));var n=t.Array,r=t.Date,Me=t.Error,$e=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,ot=t.String,it=t.TypeError,at=n.prototype,lt=$e.prototype,ut=nt.prototype,st=t["__core-js_shared__"],ct=lt.toString,ft=ut.hasOwnProperty,dt=0,pt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ht=ut.toString,gt=ct.call(nt),vt=ln._,mt=rt("^"+ct.call(ft).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=cn?t.Buffer:o,bt=t.Symbol,wt=t.Uint8Array,xt=yt?yt.allocUnsafe:o,Ct=sr(nt.getPrototypeOf,nt),Et=nt.create,St=ut.propertyIsEnumerable,kt=at.splice,Dt=bt?bt.isConcatSpreadable:o,At=bt?bt.iterator:o,Ot=bt?bt.toStringTag:o,_t=function(){try{var e=Ka(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Bt=t.clearTimeout!==ln.clearTimeout&&t.clearTimeout,Ft=r&&r.now!==ln.Date.now&&r.now,jt=t.setTimeout!==ln.setTimeout&&t.setTimeout,Pt=tt.ceil,Tt=tt.floor,Nt=nt.getOwnPropertySymbols,It=yt?yt.isBuffer:o,Lt=t.isFinite,Mt=at.join,Rt=sr(nt.keys,nt),zt=tt.max,Vt=tt.min,Ht=r.now,Wt=t.parseInt,qt=tt.random,Kt=at.reverse,Xt=Ka(t,"DataView"),Qt=Ka(t,"Map"),en=Ka(t,"Promise"),tn=Ka(t,"Set"),on=Ka(t,"WeakMap"),an=Ka(nt,"create"),un=on&&new on,sn={},fn=jl(Xt),dn=jl(Qt),jn=jl(en),Pn=jl(tn),$n=jl(on),pr=bt?bt.prototype:o,br=pr?pr.valueOf:o,wr=pr?pr.toString:o;function Cr(e){if(kc(e)&&!uc(e)&&!(e instanceof Ar)){if(e instanceof Dr)return e;if(ft.call(e,"__wrapped__"))return Tl(e)}return new Dr(e)}var Sr=function(){function e(){}return function(t){if(!Sc(t))return{};if(Et)return Et(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function kr(){}function Dr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Ar(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function Or(){var e=new Ar(this.__wrapped__);return e.__actions__=oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oa(this.__views__),e}function _r(){if(this.__filtered__){var e=new Ar(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Br(){var e=this.__wrapped__.value(),t=this.__dir__,n=uc(e),r=t<0,o=n?e.length:0,i=Xa(0,o,this.__views__),a=i.start,l=i.end,u=l-a,s=r?l:a-1,c=this.__iteratees__,f=c.length,d=0,p=Vt(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return Ri(e,this.__actions__);var h=[];e:while(u--&&d<p){s+=t;var g=-1,v=e[s];while(++g<f){var m=c[g],y=m.iteratee,b=m.type,w=y(v);if(b==P)v=w;else if(!w){if(b==j)continue e;break e}}h[d++]=v}return h}function Fr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function jr(){this.__data__=an?an(null):{},this.size=0}function Pr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Tr(e){var t=this.__data__;if(an){var n=t[e];return n===c?o:n}return ft.call(t,e)?t[e]:o}function Nr(e){var t=this.__data__;return an?t[e]!==o:ft.call(t,e)}function Ir(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===o?c:t,this}function Lr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Mr(){this.__data__=[],this.size=0}function Rr(e){var t=this.__data__,n=co(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kt.call(t,n,1),--this.size,!0}function zr(e){var t=this.__data__,n=co(t,e);return n<0?o:t[n][1]}function Vr(e){return co(this.__data__,e)>-1}function $r(e,t){var n=this.__data__,r=co(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ur(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Fr,map:new(Qt||Lr),string:new Fr}}function Wr(e){var t=Wa(this,e)["delete"](e);return this.size-=t?1:0,t}function qr(e){return Wa(this,e).get(e)}function Kr(e){return Wa(this,e).has(e)}function Gr(e,t){var n=Wa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Ur;while(++t<n)this.add(e[t])}function Jr(e){return this.__data__.set(e,c),this}function Zr(e){return this.__data__.has(e)}function Xr(e){var t=this.__data__=new Lr(e);this.size=t.size}function Qr(){this.__data__=new Lr,this.size=0}function eo(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function to(e){return this.__data__.get(e)}function no(e){return this.__data__.has(e)}function ro(e,t){var n=this.__data__;if(n instanceof Lr){var r=n.__data__;if(!Qt||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ur(r)}return n.set(e,t),this.size=n.size,this}function oo(e,t){var n=uc(e),r=!n&&lc(e),o=!n&&!r&&pc(e),i=!n&&!r&&!o&&zc(e),a=n||r||o||i,l=a?qn(e.length,ot):[],u=l.length;for(var s in e)!t&&!ft.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||al(s,u))||l.push(s);return l}function io(e){var t=e.length;return t?e[yi(0,t-1)]:o}function ao(e,t){return _l(oa(e),mo(t,0,e.length))}function lo(e){return _l(oa(e))}function uo(e,t,n){(n!==o&&!oc(e[t],n)||n===o&&!(t in e))&&go(e,t,n)}function so(e,t,n){var r=e[t];ft.call(e,t)&&oc(r,n)&&(n!==o||t in e)||go(e,t,n)}function co(e,t){var n=e.length;while(n--)if(oc(e[n][0],t))return n;return-1}function fo(e,t,n,r){return Eo(e,(function(e,o,i){t(r,e,n(e),i)})),r}function po(e,t){return e&&ia(t,Ef(t),e)}function ho(e,t){return e&&ia(t,Sf(t),e)}function go(e,t,n){"__proto__"==t&&_t?_t(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function vo(e,t){var r=-1,i=t.length,a=n(i),l=null==e;while(++r<i)a[r]=l?o:mf(e,t[r]);return a}function mo(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function yo(e,t,n,r,i,a){var l,u=t&p,s=t&h,c=t&g;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!Sc(e))return e;var f=uc(e);if(f){if(l=tl(e),!u)return oa(e,l)}else{var d=Za(e),v=d==J||d==Z;if(pc(e))return Gi(e,u);if(d==te||d==U||v&&!i){if(l=s||v?{}:nl(e),!u)return s?la(e,ho(l,e)):aa(e,po(l,e))}else{if(!Zt[d])return i?e:{};l=rl(e,d,u)}}a||(a=new Xr);var m=a.get(e);if(m)return m;a.set(e,l),Lc(e)?e.forEach((function(r){l.add(yo(r,t,n,r,e,a))})):Dc(e)&&e.forEach((function(r,o){l.set(o,yo(r,t,n,o,e,a))}));var y=c?s?za:Ra:s?Sf:Ef,b=f?o:y(e);return xn(b||e,(function(r,o){b&&(o=r,r=e[o]),so(l,o,yo(r,t,n,o,e,a))})),l}function bo(e){var t=Ef(e);return function(n){return wo(n,e,t)}}function wo(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function xo(e,t,n){if("function"!=typeof e)throw new it(u);return kl((function(){e.apply(o,n)}),t)}function Co(e,t,n,r){var o=-1,i=kn,l=!0,u=e.length,s=[],c=t.length;if(!u)return s;n&&(t=An(t,Yn(n))),r?(i=Dn,l=!1):t.length>=a&&(i=Zn,l=!1,t=new Yr(t));e:while(++o<u){var f=e[o],d=null==n?f:n(f);if(f=r||0!==f?f:0,l&&d===d){var p=c;while(p--)if(t[p]===d)continue e;s.push(f)}else i(t,d,r)||s.push(f)}return s}Cr.templateSettings={escape:_e,evaluate:Be,interpolate:Fe,variable:"",imports:{_:Cr}},Cr.prototype=kr.prototype,Cr.prototype.constructor=Cr,Dr.prototype=Sr(kr.prototype),Dr.prototype.constructor=Dr,Ar.prototype=Sr(kr.prototype),Ar.prototype.constructor=Ar,Fr.prototype.clear=jr,Fr.prototype["delete"]=Pr,Fr.prototype.get=Tr,Fr.prototype.has=Nr,Fr.prototype.set=Ir,Lr.prototype.clear=Mr,Lr.prototype["delete"]=Rr,Lr.prototype.get=zr,Lr.prototype.has=Vr,Lr.prototype.set=$r,Ur.prototype.clear=Hr,Ur.prototype["delete"]=Wr,Ur.prototype.get=qr,Ur.prototype.has=Kr,Ur.prototype.set=Gr,Yr.prototype.add=Yr.prototype.push=Jr,Yr.prototype.has=Zr,Xr.prototype.clear=Qr,Xr.prototype["delete"]=eo,Xr.prototype.get=to,Xr.prototype.has=no,Xr.prototype.set=ro;var Eo=ca(jo),So=ca(Po,!0);function ko(e,t){var n=!0;return Eo(e,(function(e,r,o){return n=!!t(e,r,o),n})),n}function Do(e,t,n){var r=-1,i=e.length;while(++r<i){var a=e[r],l=t(a);if(null!=l&&(u===o?l===l&&!Rc(l):n(l,u)))var u=l,s=a}return s}function Ao(e,t,n,r){var i=e.length;n=Gc(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Gc(r),r<0&&(r+=i),r=n>r?0:Yc(r);while(n<r)e[n++]=t;return e}function Oo(e,t){var n=[];return Eo(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function _o(e,t,n,r,o){var i=-1,a=e.length;n||(n=il),o||(o=[]);while(++i<a){var l=e[i];t>0&&n(l)?t>1?_o(l,t-1,n,r,o):On(o,l):r||(o[o.length]=l)}return o}var Bo=fa(),Fo=fa(!0);function jo(e,t){return e&&Bo(e,t,Ef)}function Po(e,t){return e&&Fo(e,t,Ef)}function To(e,t){return Sn(t,(function(t){return xc(e[t])}))}function No(e,t){t=Hi(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Fl(t[n++])];return n&&n==r?e:o}function Io(e,t,n){var r=t(e);return uc(e)?r:On(r,n(e))}function Lo(e){return null==e?e===o?ue:ee:Ot&&Ot in nt(e)?Ga(e):bl(e)}function Mo(e,t){return e>t}function Ro(e,t){return null!=e&&ft.call(e,t)}function zo(e,t){return null!=e&&t in nt(e)}function Vo(e,t,n){return e>=Vt(t,n)&&e<zt(t,n)}function $o(e,t,r){var i=r?Dn:kn,a=e[0].length,l=e.length,u=l,s=n(l),c=1/0,f=[];while(u--){var d=e[u];u&&t&&(d=An(d,Yn(t))),c=Vt(d.length,c),s[u]=!r&&(t||a>=120&&d.length>=120)?new Yr(u&&d):o}d=e[0];var p=-1,h=s[0];e:while(++p<a&&f.length<c){var g=d[p],v=t?t(g):g;if(g=r||0!==g?g:0,!(h?Zn(h,v):i(f,v,r))){u=l;while(--u){var m=s[u];if(!(m?Zn(m,v):i(e[u],v,r)))continue e}h&&h.push(v),f.push(g)}}return f}function Uo(e,t,n,r){return jo(e,(function(e,o,i){t(r,n(e),o,i)})),r}function Ho(e,t,n){t=Hi(t,e),e=xl(e,t);var r=null==e?e:e[Fl(iu(t))];return null==r?o:bn(r,e,n)}function Wo(e){return kc(e)&&Lo(e)==U}function qo(e){return kc(e)&&Lo(e)==fe}function Ko(e){return kc(e)&&Lo(e)==K}function Go(e,t,n,r,o){return e===t||(null==e||null==t||!kc(e)&&!kc(t)?e!==e&&t!==t:Yo(e,t,n,r,Go,o))}function Yo(e,t,n,r,o,i){var a=uc(e),l=uc(t),u=a?H:Za(e),s=l?H:Za(t);u=u==U?te:u,s=s==U?te:s;var c=u==te,f=s==te,d=u==s;if(d&&pc(e)){if(!pc(t))return!1;a=!0,c=!1}if(d&&!c)return i||(i=new Xr),a||zc(e)?Na(e,t,n,r,o,i):Ia(e,t,u,n,r,o,i);if(!(n&v)){var p=c&&ft.call(e,"__wrapped__"),h=f&&ft.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new Xr),o(g,m,n,r,i)}}return!!d&&(i||(i=new Xr),La(e,t,n,r,o,i))}function Jo(e){return kc(e)&&Za(e)==X}function Zo(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;e=nt(e);while(i--){var u=n[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++i<a){u=n[i];var s=u[0],c=e[s],f=u[1];if(l&&u[2]){if(c===o&&!(s in e))return!1}else{var d=new Xr;if(r)var p=r(c,f,s,e,t,d);if(!(p===o?Go(f,c,v|m,r,d):p))return!1}}return!0}function Xo(e){if(!Sc(e)||fl(e))return!1;var t=xc(e)?mt:Ye;return t.test(jl(e))}function Qo(e){return kc(e)&&Lo(e)==oe}function ei(e){return kc(e)&&Za(e)==ie}function ti(e){return kc(e)&&Ec(e.length)&&!!Jt[Lo(e)]}function ni(e){return"function"==typeof e?e:null==e?Fd:"object"==typeof e?uc(e)?ui(e[0],e[1]):li(e):Hd(e)}function ri(e){if(!pl(e))return Rt(e);var t=[];for(var n in nt(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function oi(e){if(!Sc(e))return yl(e);var t=pl(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n}function ii(e,t){return e<t}function ai(e,t){var r=-1,o=cc(e)?n(e.length):[];return Eo(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function li(e){var t=qa(e);return 1==t.length&&t[0][2]?gl(t[0][0],t[0][1]):function(n){return n===e||Zo(n,e,t)}}function ui(e,t){return ul(e)&&hl(t)?gl(Fl(e),t):function(n){var r=mf(n,e);return r===o&&r===t?bf(n,e):Go(t,r,v|m)}}function si(e,t,n,r,i){e!==t&&Bo(t,(function(a,l){if(i||(i=new Xr),Sc(a))ci(e,t,l,n,si,r,i);else{var u=r?r(El(e,l),a,l+"",e,t,i):o;u===o&&(u=a),uo(e,l,u)}}),Sf)}function ci(e,t,n,r,i,a,l){var u=El(e,n),s=El(t,n),c=l.get(s);if(c)uo(e,n,c);else{var f=a?a(u,s,n+"",e,t,l):o,d=f===o;if(d){var p=uc(s),h=!p&&pc(s),g=!p&&!h&&zc(s);f=s,p||h||g?uc(u)?f=u:fc(u)?f=oa(u):h?(d=!1,f=Gi(s,!0)):g?(d=!1,f=Qi(s,!0)):f=[]:Tc(s)||lc(s)?(f=u,lc(u)?f=Zc(u):Sc(u)&&!xc(u)||(f=nl(s))):d=!1}d&&(l.set(s,f),i(f,s,r,a,l),l["delete"](s)),uo(e,n,f)}}function fi(e,t){var n=e.length;if(n)return t+=t<0?n:0,al(t,n)?e[t]:o}function di(e,t,n){t=t.length?An(t,(function(e){return uc(e)?function(t){return No(t,1===e.length?e[0]:e)}:e})):[Fd];var r=-1;t=An(t,Yn(Ha()));var o=ai(e,(function(e,n,o){var i=An(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return Hn(o,(function(e,t){return ta(e,t,n)}))}function pi(e,t){return hi(e,t,(function(t,n){return bf(e,n)}))}function hi(e,t,n){var r=-1,o=t.length,i={};while(++r<o){var a=t[r],l=No(e,a);n(l,a)&&Si(i,Hi(a,e),l)}return i}function gi(e){return function(t){return No(t,e)}}function vi(e,t,n,r){var o=r?Mn:Ln,i=-1,a=t.length,l=e;e===t&&(t=oa(t)),n&&(l=An(e,Yn(n)));while(++i<a){var u=0,s=t[i],c=n?n(s):s;while((u=o(l,c,u,r))>-1)l!==e&&kt.call(l,u,1),kt.call(e,u,1)}return e}function mi(e,t){var n=e?t.length:0,r=n-1;while(n--){var o=t[n];if(n==r||o!==i){var i=o;al(o)?kt.call(e,o,1):Ii(e,o)}}return e}function yi(e,t){return e+Tt(qt()*(t-e+1))}function bi(e,t,r,o){var i=-1,a=zt(Pt((t-e)/(r||1)),0),l=n(a);while(a--)l[o?a:++i]=e,e+=r;return l}function wi(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),t=Tt(t/2),t&&(e+=e)}while(t);return n}function xi(e,t){return Dl(wl(e,t,Fd),e+"")}function Ci(e){return io($f(e))}function Ei(e,t){var n=$f(e);return _l(n,mo(t,0,n.length))}function Si(e,t,n,r){if(!Sc(e))return e;t=Hi(t,e);var i=-1,a=t.length,l=a-1,u=e;while(null!=u&&++i<a){var s=Fl(t[i]),c=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var f=u[s];c=r?r(f,s,u):o,c===o&&(c=Sc(f)?f:al(t[i+1])?[]:{})}so(u,s,c),u=u[s]}return e}var ki=un?function(e,t){return un.set(e,t),e}:Fd,Di=_t?function(e,t){return _t(e,"toString",{configurable:!0,enumerable:!1,value:Ad(t),writable:!0})}:Fd;function Ai(e){return _l($f(e))}function Oi(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;var a=n(i);while(++o<i)a[o]=e[o+t];return a}function _i(e,t){var n;return Eo(e,(function(e,r,o){return n=t(e,r,o),!n})),!!n}function Bi(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=V){while(r<o){var i=r+o>>>1,a=e[i];null!==a&&!Rc(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Fi(e,t,Fd,n)}function Fi(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var l=t!==t,u=null===t,s=Rc(t),c=t===o;while(i<a){var f=Tt((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,g=d===d,v=Rc(d);if(l)var m=r||g;else m=c?g&&(r||p):u?g&&p&&(r||!h):s?g&&p&&!h&&(r||!v):!h&&!v&&(r?d<=t:d<t);m?i=f+1:a=f}return Vt(a,z)}function ji(e,t){var n=-1,r=e.length,o=0,i=[];while(++n<r){var a=e[n],l=t?t(a):a;if(!n||!oc(l,u)){var u=l;i[o++]=0===a?0:a}}return i}function Pi(e){return"number"==typeof e?e:Rc(e)?M:+e}function Ti(e){if("string"==typeof e)return e;if(uc(e))return An(e,Ti)+"";if(Rc(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-N?"-0":t}function Ni(e,t,n){var r=-1,o=kn,i=e.length,l=!0,u=[],s=u;if(n)l=!1,o=Dn;else if(i>=a){var c=t?null:_a(e);if(c)return fr(c);l=!1,o=Zn,s=new Yr}else s=t?[]:u;e:while(++r<i){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,l&&d===d){var p=s.length;while(p--)if(s[p]===d)continue e;t&&s.push(d),u.push(f)}else o(s,d,n)||(s!==u&&s.push(d),u.push(f))}return u}function Ii(e,t){return t=Hi(t,e),e=xl(e,t),null==e||delete e[Fl(iu(t))]}function Li(e,t,n,r){return Si(e,t,n(No(e,t)),r)}function Mi(e,t,n,r){var o=e.length,i=r?o:-1;while((r?i--:++i<o)&&t(e[i],i,e));return n?Oi(e,r?0:i,r?i+1:o):Oi(e,r?i+1:0,r?o:i)}function Ri(e,t){var n=e;return n instanceof Ar&&(n=n.value()),_n(t,(function(e,t){return t.func.apply(t.thisArg,On([e],t.args))}),n)}function zi(e,t,r){var o=e.length;if(o<2)return o?Ni(e[0]):[];var i=-1,a=n(o);while(++i<o){var l=e[i],u=-1;while(++u<o)u!=i&&(a[i]=Co(a[i]||l,e[u],t,r))}return Ni(_o(a,1),t,r)}function Vi(e,t,n){var r=-1,i=e.length,a=t.length,l={};while(++r<i){var u=r<a?t[r]:o;n(l,e[r],u)}return l}function $i(e){return fc(e)?e:[]}function Ui(e){return"function"==typeof e?e:Fd}function Hi(e,t){return uc(e)?e:ul(e,t)?[e]:Bl(Qc(e))}var Wi=xi;function qi(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Oi(e,t,n)}var Ki=Bt||function(e){return ln.clearTimeout(e)};function Gi(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}function Yi(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Ji(e,t){var n=t?Yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Zi(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}function Xi(e){return br?nt(br.call(e)):{}}function Qi(e,t){var n=t?Yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=Rc(e),l=t!==o,u=null===t,s=t===t,c=Rc(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||u&&n&&i||!l&&i||!s)return-1}return 0}function ta(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;while(++r<a){var u=ea(o[r],i[r]);if(u){if(r>=l)return u;var s=n[r];return u*("desc"==s?-1:1)}}return e.index-t.index}function na(e,t,r,o){var i=-1,a=e.length,l=r.length,u=-1,s=t.length,c=zt(a-l,0),f=n(s+c),d=!o;while(++u<s)f[u]=t[u];while(++i<l)(d||i<a)&&(f[r[i]]=e[i]);while(c--)f[u++]=e[i++];return f}function ra(e,t,r,o){var i=-1,a=e.length,l=-1,u=r.length,s=-1,c=t.length,f=zt(a-u,0),d=n(f+c),p=!o;while(++i<f)d[i]=e[i];var h=i;while(++s<c)d[h+s]=t[s];while(++l<u)(p||i<a)&&(d[h+r[l]]=e[i++]);return d}function oa(e,t){var r=-1,o=e.length;t||(t=n(o));while(++r<o)t[r]=e[r];return t}function ia(e,t,n,r){var i=!n;n||(n={});var a=-1,l=t.length;while(++a<l){var u=t[a],s=r?r(n[u],e[u],u,n,e):o;s===o&&(s=e[u]),i?go(n,u,s):so(n,u,s)}return n}function aa(e,t){return ia(e,Ya(e),t)}function la(e,t){return ia(e,Ja(e),t)}function ua(e,t){return function(n,r){var o=uc(n)?wn:fo,i=t?t():{};return o(n,e,Ha(r,2),i)}}function sa(e){return xi((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;a=e.length>3&&"function"==typeof a?(i--,a):o,l&&ll(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=nt(t);while(++r<i){var u=n[r];u&&e(t,u,r,a)}return t}))}function ca(e,t){return function(n,r){if(null==n)return n;if(!cc(n))return e(n,r);var o=n.length,i=t?o:-1,a=nt(n);while(t?i--:++i<o)if(!1===r(a[i],i,a))break;return n}}function fa(e){return function(t,n,r){var o=-1,i=nt(t),a=r(t),l=a.length;while(l--){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}function da(e,t,n){var r=t&y,o=ga(e);function i(){var t=this&&this!==ln&&this instanceof i?o:e;return t.apply(r?n:this,arguments)}return i}function pa(e){return function(t){t=Qc(t);var n=ir(t)?vr(t):o,r=n?n[0]:t.charAt(0),i=n?qi(n,1).join(""):t.slice(1);return r[e]()+i}}function ha(e){return function(t){return _n(Cd(Yf(t).replace($t,"")),e,"")}}function ga(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Sr(e.prototype),r=e.apply(n,t);return Sc(r)?r:n}}function va(e,t,r){var i=ga(e);function a(){var l=arguments.length,u=n(l),s=l,c=Ua(a);while(s--)u[s]=arguments[s];var f=l<3&&u[0]!==c&&u[l-1]!==c?[]:cr(u,c);if(l-=f.length,l<r)return Aa(e,t,ba,a.placeholder,o,u,f,o,o,r-l);var d=this&&this!==ln&&this instanceof a?i:e;return bn(d,this,u)}return a}function ma(e){return function(t,n,r){var i=nt(t);if(!cc(t)){var a=Ha(n,3);t=Ef(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function ya(e){return Ma((function(t){var n=t.length,r=n,i=Dr.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new it(u);if(i&&!l&&"wrapper"==$a(a))var l=new Dr([],!0)}r=l?r:n;while(++r<n){a=t[r];var s=$a(a),c="wrapper"==s?Va(a):o;l=c&&cl(c[0])&&c[1]==(k|x|E|D)&&!c[4].length&&1==c[9]?l[$a(c[0])].apply(l,c[3]):1==a.length&&cl(a)?l[s]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&uc(r))return l.plant(r).value();var o=0,i=n?t[o].apply(this,e):r;while(++o<n)i=t[o].call(this,i);return i}}))}function ba(e,t,r,i,a,l,u,s,c,f){var d=t&k,p=t&y,h=t&b,g=t&(x|C),v=t&A,m=h?o:ga(e);function w(){var o=arguments.length,y=n(o),b=o;while(b--)y[b]=arguments[b];if(g)var x=Ua(w),C=er(y,x);if(i&&(y=na(y,i,a,g)),l&&(y=ra(y,l,u,g)),o-=C,g&&o<f){var E=cr(y,x);return Aa(e,t,ba,w.placeholder,r,y,E,s,c,f-o)}var S=p?r:this,k=h?S[e]:e;return o=y.length,s?y=Cl(y,s):v&&o>1&&y.reverse(),d&&c<o&&(y.length=c),this&&this!==ln&&this instanceof w&&(k=m||ga(k)),k.apply(S,y)}return w}function wa(e,t){return function(n,r){return Uo(n,e,t(r),{})}}function xa(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Ti(n),r=Ti(r)):(n=Pi(n),r=Pi(r)),i=e(n,r)}return i}}function Ca(e){return Ma((function(t){return t=An(t,Yn(Ha())),xi((function(n){var r=this;return e(t,(function(e){return bn(e,r,n)}))}))}))}function Ea(e,t){t=t===o?" ":Ti(t);var n=t.length;if(n<2)return n?wi(t,e):t;var r=wi(t,Pt(e/gr(t)));return ir(t)?qi(vr(r),0,e).join(""):r.slice(0,e)}function Sa(e,t,r,o){var i=t&y,a=ga(e);function l(){var t=-1,u=arguments.length,s=-1,c=o.length,f=n(c+u),d=this&&this!==ln&&this instanceof l?a:e;while(++s<c)f[s]=o[s];while(u--)f[s++]=arguments[++t];return bn(d,i?r:this,f)}return l}function ka(e){return function(t,n,r){return r&&"number"!=typeof r&&ll(t,n,r)&&(n=r=o),t=Kc(t),n===o?(n=t,t=0):n=Kc(n),r=r===o?t<n?1:-1:Kc(r),bi(t,n,r,e)}}function Da(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Jc(t),n=Jc(n)),e(t,n)}}function Aa(e,t,n,r,i,a,l,u,s,c){var f=t&x,d=f?l:o,p=f?o:l,h=f?a:o,g=f?o:a;t|=f?E:S,t&=~(f?S:E),t&w||(t&=~(y|b));var v=[e,t,i,h,d,g,p,u,s,c],m=n.apply(o,v);return cl(e)&&Sl(m,v),m.placeholder=r,Al(m,e,t)}function Oa(e){var t=tt[e];return function(e,n){if(e=Jc(e),n=null==n?0:Vt(Gc(n),292),n&&Lt(e)){var r=(Qc(e)+"e").split("e"),o=t(r[0]+"e"+(+r[1]+n));return r=(Qc(o)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var _a=tn&&1/fr(new tn([,-0]))[1]==N?function(e){return new tn(e)}:Rd;function Ba(e){return function(t){var n=Za(t);return n==X?ur(t):n==ie?dr(t):Kn(t,e(t))}}function Fa(e,t,n,r,i,a,l,s){var c=t&b;if(!c&&"function"!=typeof e)throw new it(u);var f=r?r.length:0;if(f||(t&=~(E|S),r=i=o),l=l===o?l:zt(Gc(l),0),s=s===o?s:Gc(s),f-=i?i.length:0,t&S){var d=r,p=i;r=i=o}var h=c?o:Va(e),g=[e,t,n,r,i,d,p,a,l,s];if(h&&ml(g,h),e=g[0],t=g[1],n=g[2],r=g[3],i=g[4],s=g[9]=g[9]===o?c?0:e.length:zt(g[9]-f,0),!s&&t&(x|C)&&(t&=~(x|C)),t&&t!=y)v=t==x||t==C?va(e,t,s):t!=E&&t!=(y|E)||i.length?ba.apply(o,g):Sa(e,t,n,r);else var v=da(e,t,n);var m=h?ki:Sl;return Al(m(v,g),e,t)}function ja(e,t,n,r){return e===o||oc(e,ut[n])&&!ft.call(r,n)?t:e}function Pa(e,t,n,r,i,a){return Sc(e)&&Sc(t)&&(a.set(t,e),si(e,t,o,Pa,a),a["delete"](t)),e}function Ta(e){return Tc(e)?o:e}function Na(e,t,n,r,i,a){var l=n&v,u=e.length,s=t.length;if(u!=s&&!(l&&s>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=n&m?new Yr:o;a.set(e,t),a.set(t,e);while(++d<u){var g=e[d],y=t[d];if(r)var b=l?r(y,g,d,t,e,a):r(g,y,d,e,t,a);if(b!==o){if(b)continue;p=!1;break}if(h){if(!Fn(t,(function(e,t){if(!Zn(h,t)&&(g===e||i(g,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(g!==y&&!i(g,y,n,r,a)){p=!1;break}}return a["delete"](e),a["delete"](t),p}function Ia(e,t,n,r,o,i,a){switch(n){case de:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fe:return!(e.byteLength!=t.byteLength||!i(new wt(e),new wt(t)));case q:case K:case Q:return oc(+e,+t);case Y:return e.name==t.name&&e.message==t.message;case oe:case ae:return e==t+"";case X:var l=ur;case ie:var u=r&v;if(l||(l=fr),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=m,a.set(e,t);var c=Na(l(e),l(t),r,o,i,a);return a["delete"](e),c;case le:if(br)return br.call(e)==br.call(t)}return!1}function La(e,t,n,r,i,a){var l=n&v,u=Ra(e),s=u.length,c=Ra(t),f=c.length;if(s!=f&&!l)return!1;var d=s;while(d--){var p=u[d];if(!(l?p in t:ft.call(t,p)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);var y=l;while(++d<s){p=u[d];var b=e[p],w=t[p];if(r)var x=l?r(w,b,p,t,e,a):r(b,w,p,e,t,a);if(!(x===o?b===w||i(b,w,n,r,a):x)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var C=e.constructor,E=t.constructor;C==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof E&&E instanceof E||(m=!1)}return a["delete"](e),a["delete"](t),m}function Ma(e){return Dl(wl(e,o,Gl),e+"")}function Ra(e){return Io(e,Ef,Ya)}function za(e){return Io(e,Sf,Ja)}var Va=un?function(e){return un.get(e)}:Rd;function $a(e){var t=e.name+"",n=sn[t],r=ft.call(sn,t)?n.length:0;while(r--){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Ua(e){var t=ft.call(Cr,"placeholder")?Cr:e;return t.placeholder}function Ha(){var e=Cr.iteratee||jd;return e=e===jd?ni:e,arguments.length?e(arguments[0],arguments[1]):e}function Wa(e,t){var n=e.__data__;return sl(t)?n["string"==typeof t?"string":"hash"]:n.map}function qa(e){var t=Ef(e),n=t.length;while(n--){var r=t[n],o=e[r];t[n]=[r,o,hl(o)]}return t}function Ka(e,t){var n=or(e,t);return Xo(n)?n:o}function Ga(e){var t=ft.call(e,Ot),n=e[Ot];try{e[Ot]=o;var r=!0}catch(a){}var i=ht.call(e);return r&&(t?e[Ot]=n:delete e[Ot]),i}var Ya=Nt?function(e){return null==e?[]:(e=nt(e),Sn(Nt(e),(function(t){return St.call(e,t)})))}:Gd,Ja=Nt?function(e){var t=[];while(e)On(t,Ya(e)),e=Ct(e);return t}:Gd,Za=Lo;function Xa(e,t,n){var r=-1,o=n.length;while(++r<o){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Vt(t,e+a);break;case"takeRight":e=zt(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(ze);return t?t[1].split(Ve):[]}function el(e,t,n){t=Hi(t,e);var r=-1,o=t.length,i=!1;while(++r<o){var a=Fl(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=null==e?0:e.length,!!o&&Ec(o)&&al(a,o)&&(uc(e)||lc(e)))}function tl(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function nl(e){return"function"!=typeof e.constructor||pl(e)?{}:Sr(Ct(e))}function rl(e,t,n){var r=e.constructor;switch(t){case fe:return Yi(e);case q:case K:return new r(+e);case de:return Ji(e,n);case pe:case he:case ge:case ve:case me:case ye:case be:case we:case xe:return Qi(e,n);case X:return new r;case Q:case ae:return new r(e);case oe:return Zi(e);case ie:return new r;case le:return Xi(e)}}function ol(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}function il(e){return uc(e)||lc(e)||!!(Dt&&e&&e[Dt])}function al(e,t){var n=typeof e;return t=null==t?I:t,!!t&&("number"==n||"symbol"!=n&&Ze.test(e))&&e>-1&&e%1==0&&e<t}function ll(e,t,n){if(!Sc(n))return!1;var r=typeof t;return!!("number"==r?cc(n)&&al(t,n.length):"string"==r&&t in n)&&oc(n[t],e)}function ul(e,t){if(uc(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Rc(e))||(Pe.test(e)||!je.test(e)||null!=t&&e in nt(t))}function sl(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function cl(e){var t=$a(e),n=Cr[t];if("function"!=typeof n||!(t in Ar.prototype))return!1;if(e===n)return!0;var r=Va(n);return!!r&&e===r[0]}function fl(e){return!!pt&&pt in e}(Xt&&Za(new Xt(new ArrayBuffer(1)))!=de||Qt&&Za(new Qt)!=X||en&&Za(en.resolve())!=ne||tn&&Za(new tn)!=ie||on&&Za(new on)!=se)&&(Za=function(e){var t=Lo(e),n=t==te?e.constructor:o,r=n?jl(n):"";if(r)switch(r){case fn:return de;case dn:return X;case jn:return ne;case Pn:return ie;case $n:return se}return t});var dl=st?xc:Yd;function pl(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ut;return e===n}function hl(e){return e===e&&!Sc(e)}function gl(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in nt(n)))}}function vl(e){var t=zs(e,(function(e){return n.size===f&&n.clear(),e})),n=t.cache;return t}function ml(e,t){var n=e[1],r=t[1],o=n|r,i=o<(y|b|k),a=r==k&&n==x||r==k&&n==D&&e[7].length<=t[8]||r==(k|D)&&t[7].length<=t[8]&&n==x;if(!i&&!a)return e;r&y&&(e[2]=t[2],o|=n&y?0:w);var l=t[3];if(l){var u=e[3];e[3]=u?na(u,l,t[4]):l,e[4]=u?cr(e[3],d):t[4]}return l=t[5],l&&(u=e[5],e[5]=u?ra(u,l,t[6]):l,e[6]=u?cr(e[5],d):t[6]),l=t[7],l&&(e[7]=l),r&k&&(e[8]=null==e[8]?t[8]:Vt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function yl(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function bl(e){return ht.call(e)}function wl(e,t,r){return t=zt(t===o?e.length-1:t,0),function(){var o=arguments,i=-1,a=zt(o.length-t,0),l=n(a);while(++i<a)l[i]=o[t+i];i=-1;var u=n(t+1);while(++i<t)u[i]=o[i];return u[t]=r(l),bn(e,this,u)}}function xl(e,t){return t.length<2?e:No(e,Oi(t,0,-1))}function Cl(e,t){var n=e.length,r=Vt(t.length,n),i=oa(e);while(r--){var a=t[r];e[r]=al(a,n)?i[a]:o}return e}function El(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Sl=Ol(ki),kl=jt||function(e,t){return ln.setTimeout(e,t)},Dl=Ol(Di);function Al(e,t,n){var r=t+"";return Dl(e,ol(r,Pl(Qa(r),n)))}function Ol(e){var t=0,n=0;return function(){var r=Ht(),i=F-(r-n);if(n=r,i>0){if(++t>=B)return arguments[0]}else t=0;return e.apply(o,arguments)}}function _l(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n<t){var a=yi(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Bl=vl((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Te,(function(e,n,r,o){t.push(r?o.replace(He,"$1"):n||e)})),t}));function Fl(e){if("string"==typeof e||Rc(e))return e;var t=e+"";return"0"==t&&1/e==-N?"-0":t}function jl(e){if(null!=e){try{return ct.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Pl(e,t){return xn($,(function(n){var r="_."+n[0];t&n[1]&&!kn(e,r)&&e.push(r)})),e.sort()}function Tl(e){if(e instanceof Ar)return e.clone();var t=new Dr(e.__wrapped__,e.__chain__);return t.__actions__=oa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Nl(e,t,r){t=(r?ll(e,t,r):t===o)?1:zt(Gc(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var a=0,l=0,u=n(Pt(i/t));while(a<i)u[l++]=Oi(e,a,a+=t);return u}function Il(e){var t=-1,n=null==e?0:e.length,r=0,o=[];while(++t<n){var i=e[t];i&&(o[r++]=i)}return o}function Ll(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],o=e;while(o--)t[o-1]=arguments[o];return On(uc(r)?oa(r):[r],_o(t,1))}var Ml=xi((function(e,t){return fc(e)?Co(e,_o(t,1,fc,!0)):[]})),Rl=xi((function(e,t){var n=iu(t);return fc(n)&&(n=o),fc(e)?Co(e,_o(t,1,fc,!0),Ha(n,2)):[]})),zl=xi((function(e,t){var n=iu(t);return fc(n)&&(n=o),fc(e)?Co(e,_o(t,1,fc,!0),o,n):[]}));function Vl(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),Oi(e,t<0?0:t,r)):[]}function $l(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),t=r-t,Oi(e,0,t<0?0:t)):[]}function Ul(e,t){return e&&e.length?Mi(e,Ha(t,3),!0,!0):[]}function Hl(e,t){return e&&e.length?Mi(e,Ha(t,3),!0):[]}function Wl(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ll(e,t,n)&&(n=0,r=o),Ao(e,t,n,r)):[]}function ql(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Gc(n);return o<0&&(o=zt(r+o,0)),In(e,Ha(t,3),o)}function Kl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Gc(n),i=n<0?zt(r+i,0):Vt(i,r-1)),In(e,Ha(t,3),i,!0)}function Gl(e){var t=null==e?0:e.length;return t?_o(e,1):[]}function Yl(e){var t=null==e?0:e.length;return t?_o(e,N):[]}function Jl(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Gc(t),_o(e,t)):[]}function Zl(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}function Xl(e){return e&&e.length?e[0]:o}function Ql(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Gc(n);return o<0&&(o=zt(r+o,0)),Ln(e,t,o)}function eu(e){var t=null==e?0:e.length;return t?Oi(e,0,-1):[]}var tu=xi((function(e){var t=An(e,$i);return t.length&&t[0]===e[0]?$o(t):[]})),nu=xi((function(e){var t=iu(e),n=An(e,$i);return t===iu(n)?t=o:n.pop(),n.length&&n[0]===e[0]?$o(n,Ha(t,2)):[]})),ru=xi((function(e){var t=iu(e),n=An(e,$i);return t="function"==typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?$o(n,o,t):[]}));function ou(e,t){return null==e?"":Mt.call(e,t)}function iu(e){var t=null==e?0:e.length;return t?e[t-1]:o}function au(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=Gc(n),i=i<0?zt(r+i,0):Vt(i,r-1)),t===t?hr(e,t,i):In(e,Rn,i,!0)}function lu(e,t){return e&&e.length?fi(e,Gc(t)):o}var uu=xi(su);function su(e,t){return e&&e.length&&t&&t.length?vi(e,t):e}function cu(e,t,n){return e&&e.length&&t&&t.length?vi(e,t,Ha(n,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?vi(e,t,o,n):e}var du=Ma((function(e,t){var n=null==e?0:e.length,r=vo(e,t);return mi(e,An(t,(function(e){return al(e,n)?+e:e})).sort(ea)),r}));function pu(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;t=Ha(t,3);while(++r<i){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return mi(e,o),n}function hu(e){return null==e?e:Kt.call(e)}function gu(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ll(e,t,n)?(t=0,n=r):(t=null==t?0:Gc(t),n=n===o?r:Gc(n)),Oi(e,t,n)):[]}function vu(e,t){return Bi(e,t)}function mu(e,t,n){return Fi(e,t,Ha(n,2))}function yu(e,t){var n=null==e?0:e.length;if(n){var r=Bi(e,t);if(r<n&&oc(e[r],t))return r}return-1}function bu(e,t){return Bi(e,t,!0)}function wu(e,t,n){return Fi(e,t,Ha(n,2),!0)}function xu(e,t){var n=null==e?0:e.length;if(n){var r=Bi(e,t,!0)-1;if(oc(e[r],t))return r}return-1}function Cu(e){return e&&e.length?ji(e):[]}function Eu(e,t){return e&&e.length?ji(e,Ha(t,2)):[]}function Su(e){var t=null==e?0:e.length;return t?Oi(e,1,t):[]}function ku(e,t,n){return e&&e.length?(t=n||t===o?1:Gc(t),Oi(e,0,t<0?0:t)):[]}function Du(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),t=r-t,Oi(e,t<0?0:t,r)):[]}function Au(e,t){return e&&e.length?Mi(e,Ha(t,3),!1,!0):[]}function Ou(e,t){return e&&e.length?Mi(e,Ha(t,3)):[]}var _u=xi((function(e){return Ni(_o(e,1,fc,!0))})),Bu=xi((function(e){var t=iu(e);return fc(t)&&(t=o),Ni(_o(e,1,fc,!0),Ha(t,2))})),Fu=xi((function(e){var t=iu(e);return t="function"==typeof t?t:o,Ni(_o(e,1,fc,!0),o,t)}));function ju(e){return e&&e.length?Ni(e):[]}function Pu(e,t){return e&&e.length?Ni(e,Ha(t,2)):[]}function Tu(e,t){return t="function"==typeof t?t:o,e&&e.length?Ni(e,o,t):[]}function Nu(e){if(!e||!e.length)return[];var t=0;return e=Sn(e,(function(e){if(fc(e))return t=zt(e.length,t),!0})),qn(t,(function(t){return An(e,Vn(t))}))}function Iu(e,t){if(!e||!e.length)return[];var n=Nu(e);return null==t?n:An(n,(function(e){return bn(t,o,e)}))}var Lu=xi((function(e,t){return fc(e)?Co(e,t):[]})),Mu=xi((function(e){return zi(Sn(e,fc))})),Ru=xi((function(e){var t=iu(e);return fc(t)&&(t=o),zi(Sn(e,fc),Ha(t,2))})),zu=xi((function(e){var t=iu(e);return t="function"==typeof t?t:o,zi(Sn(e,fc),o,t)})),Vu=xi(Nu);function $u(e,t){return Vi(e||[],t||[],so)}function Uu(e,t){return Vi(e||[],t||[],Si)}var Hu=xi((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Iu(e,n)}));function Wu(e){var t=Cr(e);return t.__chain__=!0,t}function qu(e,t){return t(e),e}function Ku(e,t){return t(e)}var Gu=Ma((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return vo(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Ar&&al(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Ku,args:[i],thisArg:o}),new Dr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Yu(){return Wu(this)}function Ju(){return new Dr(this.value(),this.__chain__)}function Zu(){this.__values__===o&&(this.__values__=qc(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Xu(){return this}function Qu(e){var t,n=this;while(n instanceof kr){var r=Tl(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function es(){var e=this.__wrapped__;if(e instanceof Ar){var t=e;return this.__actions__.length&&(t=new Ar(this)),t=t.reverse(),t.__actions__.push({func:Ku,args:[hu],thisArg:o}),new Dr(t,this.__chain__)}return this.thru(hu)}function ts(){return Ri(this.__wrapped__,this.__actions__)}var ns=ua((function(e,t,n){ft.call(e,n)?++e[n]:go(e,n,1)}));function rs(e,t,n){var r=uc(e)?En:ko;return n&&ll(e,t,n)&&(t=o),r(e,Ha(t,3))}function os(e,t){var n=uc(e)?Sn:Oo;return n(e,Ha(t,3))}var is=ma(ql),as=ma(Kl);function ls(e,t){return _o(vs(e,t),1)}function us(e,t){return _o(vs(e,t),N)}function ss(e,t,n){return n=n===o?1:Gc(n),_o(vs(e,t),n)}function cs(e,t){var n=uc(e)?xn:Eo;return n(e,Ha(t,3))}function fs(e,t){var n=uc(e)?Cn:So;return n(e,Ha(t,3))}var ds=ua((function(e,t,n){ft.call(e,n)?e[n].push(t):go(e,n,[t])}));function ps(e,t,n,r){e=cc(e)?e:$f(e),n=n&&!r?Gc(n):0;var o=e.length;return n<0&&(n=zt(o+n,0)),Mc(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ln(e,t,n)>-1}var hs=xi((function(e,t,r){var o=-1,i="function"==typeof t,a=cc(e)?n(e.length):[];return Eo(e,(function(e){a[++o]=i?bn(t,e,r):Ho(e,t,r)})),a})),gs=ua((function(e,t,n){go(e,n,t)}));function vs(e,t){var n=uc(e)?An:ai;return n(e,Ha(t,3))}function ms(e,t,n,r){return null==e?[]:(uc(t)||(t=null==t?[]:[t]),n=r?o:n,uc(n)||(n=null==n?[]:[n]),di(e,t,n))}var ys=ua((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bs(e,t,n){var r=uc(e)?_n:Un,o=arguments.length<3;return r(e,Ha(t,4),n,o,Eo)}function ws(e,t,n){var r=uc(e)?Bn:Un,o=arguments.length<3;return r(e,Ha(t,4),n,o,So)}function xs(e,t){var n=uc(e)?Sn:Oo;return n(e,Vs(Ha(t,3)))}function Cs(e){var t=uc(e)?io:Ci;return t(e)}function Es(e,t,n){t=(n?ll(e,t,n):t===o)?1:Gc(t);var r=uc(e)?ao:Ei;return r(e,t)}function Ss(e){var t=uc(e)?lo:Ai;return t(e)}function ks(e){if(null==e)return 0;if(cc(e))return Mc(e)?gr(e):e.length;var t=Za(e);return t==X||t==ie?e.size:ri(e).length}function Ds(e,t,n){var r=uc(e)?Fn:_i;return n&&ll(e,t,n)&&(t=o),r(e,Ha(t,3))}var As=xi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ll(e,t[0],t[1])?t=[]:n>2&&ll(t[0],t[1],t[2])&&(t=[t[0]]),di(e,_o(t,1),[])})),Os=Ft||function(){return ln.Date.now()};function _s(e,t){if("function"!=typeof t)throw new it(u);return e=Gc(e),function(){if(--e<1)return t.apply(this,arguments)}}function Bs(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Fa(e,k,o,o,o,o,t)}function Fs(e,t){var n;if("function"!=typeof t)throw new it(u);return e=Gc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var js=xi((function(e,t,n){var r=y;if(n.length){var o=cr(n,Ua(js));r|=E}return Fa(e,r,t,n,o)})),Ps=xi((function(e,t,n){var r=y|b;if(n.length){var o=cr(n,Ua(Ps));r|=E}return Fa(t,r,e,n,o)}));function Ts(e,t,n){t=n?o:t;var r=Fa(e,x,o,o,o,o,o,t);return r.placeholder=Ts.placeholder,r}function Ns(e,t,n){t=n?o:t;var r=Fa(e,C,o,o,o,o,o,t);return r.placeholder=Ns.placeholder,r}function Is(e,t,n){var r,i,a,l,s,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new it(u);function g(t){var n=r,a=i;return r=i=o,f=t,l=e.apply(a,n),l}function v(e){return f=e,s=kl(b,t),d?g(e):l}function m(e){var n=e-c,r=e-f,o=t-n;return p?Vt(o,a-r):o}function y(e){var n=e-c,r=e-f;return c===o||n>=t||n<0||p&&r>=a}function b(){var e=Os();if(y(e))return w(e);s=kl(b,m(e))}function w(e){return s=o,h&&r?g(e):(r=i=o,l)}function x(){s!==o&&Ki(s),f=0,r=c=i=s=o}function C(){return s===o?l:w(Os())}function E(){var e=Os(),n=y(e);if(r=arguments,i=this,c=e,n){if(s===o)return v(c);if(p)return Ki(s),s=kl(b,t),g(c)}return s===o&&(s=kl(b,t)),l}return t=Jc(t)||0,Sc(n)&&(d=!!n.leading,p="maxWait"in n,a=p?zt(Jc(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),E.cancel=x,E.flush=C,E}var Ls=xi((function(e,t){return xo(e,1,t)})),Ms=xi((function(e,t,n){return xo(e,Jc(t)||0,n)}));function Rs(e){return Fa(e,A)}function zs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(zs.Cache||Ur),n}function Vs(e){if("function"!=typeof e)throw new it(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function $s(e){return Fs(2,e)}zs.Cache=Ur;var Us=Wi((function(e,t){t=1==t.length&&uc(t[0])?An(t[0],Yn(Ha())):An(_o(t,1),Yn(Ha()));var n=t.length;return xi((function(r){var o=-1,i=Vt(r.length,n);while(++o<i)r[o]=t[o].call(this,r[o]);return bn(e,this,r)}))})),Hs=xi((function(e,t){var n=cr(t,Ua(Hs));return Fa(e,E,o,t,n)})),Ws=xi((function(e,t){var n=cr(t,Ua(Ws));return Fa(e,S,o,t,n)})),qs=Ma((function(e,t){return Fa(e,D,o,o,o,t)}));function Ks(e,t){if("function"!=typeof e)throw new it(u);return t=t===o?t:Gc(t),xi(e,t)}function Gs(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:zt(Gc(t),0),xi((function(n){var r=n[t],o=qi(n,0,t);return r&&On(o,r),bn(e,this,o)}))}function Ys(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new it(u);return Sc(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Is(e,t,{leading:r,maxWait:t,trailing:o})}function Js(e){return Bs(e,1)}function Zs(e,t){return Hs(Ui(t),e)}function Xs(){if(!arguments.length)return[];var e=arguments[0];return uc(e)?e:[e]}function Qs(e){return yo(e,g)}function ec(e,t){return t="function"==typeof t?t:o,yo(e,g,t)}function tc(e){return yo(e,p|g)}function nc(e,t){return t="function"==typeof t?t:o,yo(e,p|g,t)}function rc(e,t){return null==t||wo(e,t,Ef(t))}function oc(e,t){return e===t||e!==e&&t!==t}var ic=Da(Mo),ac=Da((function(e,t){return e>=t})),lc=Wo(function(){return arguments}())?Wo:function(e){return kc(e)&&ft.call(e,"callee")&&!St.call(e,"callee")},uc=n.isArray,sc=pn?Yn(pn):qo;function cc(e){return null!=e&&Ec(e.length)&&!xc(e)}function fc(e){return kc(e)&&cc(e)}function dc(e){return!0===e||!1===e||kc(e)&&Lo(e)==q}var pc=It||Yd,hc=hn?Yn(hn):Ko;function gc(e){return kc(e)&&1===e.nodeType&&!Tc(e)}function vc(e){if(null==e)return!0;if(cc(e)&&(uc(e)||"string"==typeof e||"function"==typeof e.splice||pc(e)||zc(e)||lc(e)))return!e.length;var t=Za(e);if(t==X||t==ie)return!e.size;if(pl(e))return!ri(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function mc(e,t){return Go(e,t)}function yc(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?Go(e,t,o,n):!!r}function bc(e){if(!kc(e))return!1;var t=Lo(e);return t==Y||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Tc(e)}function wc(e){return"number"==typeof e&&Lt(e)}function xc(e){if(!Sc(e))return!1;var t=Lo(e);return t==J||t==Z||t==W||t==re}function Cc(e){return"number"==typeof e&&e==Gc(e)}function Ec(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function Sc(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function kc(e){return null!=e&&"object"==typeof e}var Dc=gn?Yn(gn):Jo;function Ac(e,t){return e===t||Zo(e,t,qa(t))}function Oc(e,t,n){return n="function"==typeof n?n:o,Zo(e,t,qa(t),n)}function _c(e){return Pc(e)&&e!=+e}function Bc(e){if(dl(e))throw new Me(l);return Xo(e)}function Fc(e){return null===e}function jc(e){return null==e}function Pc(e){return"number"==typeof e||kc(e)&&Lo(e)==Q}function Tc(e){if(!kc(e)||Lo(e)!=te)return!1;var t=Ct(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==gt}var Nc=vn?Yn(vn):Qo;function Ic(e){return Cc(e)&&e>=-I&&e<=I}var Lc=mn?Yn(mn):ei;function Mc(e){return"string"==typeof e||!uc(e)&&kc(e)&&Lo(e)==ae}function Rc(e){return"symbol"==typeof e||kc(e)&&Lo(e)==le}var zc=yn?Yn(yn):ti;function Vc(e){return e===o}function $c(e){return kc(e)&&Za(e)==se}function Uc(e){return kc(e)&&Lo(e)==ce}var Hc=Da(ii),Wc=Da((function(e,t){return e<=t}));function qc(e){if(!e)return[];if(cc(e))return Mc(e)?vr(e):oa(e);if(At&&e[At])return lr(e[At]());var t=Za(e),n=t==X?ur:t==ie?fr:$f;return n(e)}function Kc(e){if(!e)return 0===e?e:0;if(e=Jc(e),e===N||e===-N){var t=e<0?-1:1;return t*L}return e===e?e:0}function Gc(e){var t=Kc(e),n=t%1;return t===t?n?t-n:t:0}function Yc(e){return e?mo(Gc(e),0,R):0}function Jc(e){if("number"==typeof e)return e;if(Rc(e))return M;if(Sc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Sc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gn(e);var n=Ge.test(e);return n||Je.test(e)?rn(e.slice(2),n?2:8):Ke.test(e)?M:+e}function Zc(e){return ia(e,Sf(e))}function Xc(e){return e?mo(Gc(e),-I,I):0===e?e:0}function Qc(e){return null==e?"":Ti(e)}var ef=sa((function(e,t){if(pl(t)||cc(t))ia(t,Ef(t),e);else for(var n in t)ft.call(t,n)&&so(e,n,t[n])})),tf=sa((function(e,t){ia(t,Sf(t),e)})),nf=sa((function(e,t,n,r){ia(t,Sf(t),e,r)})),rf=sa((function(e,t,n,r){ia(t,Ef(t),e,r)})),of=Ma(vo);function af(e,t){var n=Sr(e);return null==t?n:po(n,t)}var lf=xi((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:o;i&&ll(t[0],t[1],i)&&(r=1);while(++n<r){var a=t[n],l=Sf(a),u=-1,s=l.length;while(++u<s){var c=l[u],f=e[c];(f===o||oc(f,ut[c])&&!ft.call(e,c))&&(e[c]=a[c])}}return e})),uf=xi((function(e){return e.push(o,Pa),bn(Of,o,e)}));function sf(e,t){return Nn(e,Ha(t,3),jo)}function cf(e,t){return Nn(e,Ha(t,3),Po)}function ff(e,t){return null==e?e:Bo(e,Ha(t,3),Sf)}function df(e,t){return null==e?e:Fo(e,Ha(t,3),Sf)}function pf(e,t){return e&&jo(e,Ha(t,3))}function hf(e,t){return e&&Po(e,Ha(t,3))}function gf(e){return null==e?[]:To(e,Ef(e))}function vf(e){return null==e?[]:To(e,Sf(e))}function mf(e,t,n){var r=null==e?o:No(e,t);return r===o?n:r}function yf(e,t){return null!=e&&el(e,t,Ro)}function bf(e,t){return null!=e&&el(e,t,zo)}var wf=wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),e[t]=n}),Ad(Fd)),xf=wa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),ft.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),Cf=xi(Ho);function Ef(e){return cc(e)?oo(e):ri(e)}function Sf(e){return cc(e)?oo(e,!0):oi(e)}function kf(e,t){var n={};return t=Ha(t,3),jo(e,(function(e,r,o){go(n,t(e,r,o),e)})),n}function Df(e,t){var n={};return t=Ha(t,3),jo(e,(function(e,r,o){go(n,r,t(e,r,o))})),n}var Af=sa((function(e,t,n){si(e,t,n)})),Of=sa((function(e,t,n,r){si(e,t,n,r)})),_f=Ma((function(e,t){var n={};if(null==e)return n;var r=!1;t=An(t,(function(t){return t=Hi(t,e),r||(r=t.length>1),t})),ia(e,za(e),n),r&&(n=yo(n,p|h|g,Ta));var o=t.length;while(o--)Ii(n,t[o]);return n}));function Bf(e,t){return jf(e,Vs(Ha(t)))}var Ff=Ma((function(e,t){return null==e?{}:pi(e,t)}));function jf(e,t){if(null==e)return{};var n=An(za(e),(function(e){return[e]}));return t=Ha(t),hi(e,n,(function(e,n){return t(e,n[0])}))}function Pf(e,t,n){t=Hi(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++r<i){var a=null==e?o:e[Fl(t[r])];a===o&&(r=i,a=n),e=xc(a)?a.call(e):a}return e}function Tf(e,t,n){return null==e?e:Si(e,t,n)}function Nf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Si(e,t,n,r)}var If=Ba(Ef),Lf=Ba(Sf);function Mf(e,t,n){var r=uc(e),o=r||pc(e)||zc(e);if(t=Ha(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Sc(e)&&xc(i)?Sr(Ct(e)):{}}return(o?xn:jo)(e,(function(e,r,o){return t(n,e,r,o)})),n}function Rf(e,t){return null==e||Ii(e,t)}function zf(e,t,n){return null==e?e:Li(e,t,Ui(n))}function Vf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Li(e,t,Ui(n),r)}function $f(e){return null==e?[]:Jn(e,Ef(e))}function Uf(e){return null==e?[]:Jn(e,Sf(e))}function Hf(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=Jc(n),n=n===n?n:0),t!==o&&(t=Jc(t),t=t===t?t:0),mo(Jc(e),t,n)}function Wf(e,t,n){return t=Kc(t),n===o?(n=t,t=0):n=Kc(n),e=Jc(e),Vo(e,t,n)}function qf(e,t,n){if(n&&"boolean"!=typeof n&&ll(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Kc(e),t===o?(t=e,e=0):t=Kc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=qt();return Vt(e+i*(t-e+nn("1e-"+((i+"").length-1))),t)}return yi(e,t)}var Kf=ha((function(e,t,n){return t=t.toLowerCase(),e+(n?Gf(t):t)}));function Gf(e){return xd(Qc(e).toLowerCase())}function Yf(e){return e=Qc(e),e&&e.replace(Xe,tr).replace(Ut,"")}function Jf(e,t,n){e=Qc(e),t=Ti(t);var r=e.length;n=n===o?r:mo(Gc(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Zf(e){return e=Qc(e),e&&Oe.test(e)?e.replace(De,nr):e}function Xf(e){return e=Qc(e),e&&Ie.test(e)?e.replace(Ne,"\\$&"):e}var Qf=ha((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ed=ha((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),td=pa("toLowerCase");function nd(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ea(Tt(o),n)+e+Ea(Pt(o),n)}function rd(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;return t&&r<t?e+Ea(t-r,n):e}function od(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;return t&&r<t?Ea(t-r,n)+e:e}function id(e,t,n){return n||null==t?t=0:t&&(t=+t),Wt(Qc(e).replace(Le,""),t||0)}function ad(e,t,n){return t=(n?ll(e,t,n):t===o)?1:Gc(t),wi(Qc(e),t)}function ld(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ud=ha((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function sd(e,t,n){return n&&"number"!=typeof n&&ll(e,t,n)&&(t=n=o),n=n===o?R:n>>>0,n?(e=Qc(e),e&&("string"==typeof t||null!=t&&!Nc(t))&&(t=Ti(t),!t&&ir(e))?qi(vr(e),0,n):e.split(t,n)):[]}var cd=ha((function(e,t,n){return e+(n?" ":"")+xd(t)}));function fd(e,t,n){return e=Qc(e),n=null==n?0:mo(Gc(n),0,e.length),t=Ti(t),e.slice(n,n+t.length)==t}function dd(e,t,n){var r=Cr.templateSettings;n&&ll(e,t,n)&&(t=o),e=Qc(e),t=nf({},t,r,ja);var i,a,l=nf({},t.imports,r.imports,ja),u=Ef(l),c=Jn(l,u),f=0,d=t.interpolate||Qe,p="__p += '",h=rt((t.escape||Qe).source+"|"+d.source+"|"+(d===Fe?We:Qe).source+"|"+(t.evaluate||Qe).source+"|$","g"),g="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yt+"]")+"\n";e.replace(h,(function(t,n,r,o,l,u){return r||(r=o),p+=e.slice(f,u).replace(et,rr),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),l&&(a=!0,p+="';\n"+l+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=u+t.length,t})),p+="';\n";var v=ft.call(t,"variable")&&t.variable;if(v){if(Ue.test(v))throw new Me(s)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(Ce,""):p).replace(Ee,"$1").replace(Se,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Ed((function(){return $e(u,g+"return "+p).apply(o,c)}));if(m.source=p,bc(m))throw m;return m}function pd(e){return Qc(e).toLowerCase()}function hd(e){return Qc(e).toUpperCase()}function gd(e,t,n){if(e=Qc(e),e&&(n||t===o))return Gn(e);if(!e||!(t=Ti(t)))return e;var r=vr(e),i=vr(t),a=Xn(r,i),l=Qn(r,i)+1;return qi(r,a,l).join("")}function vd(e,t,n){if(e=Qc(e),e&&(n||t===o))return e.slice(0,mr(e)+1);if(!e||!(t=Ti(t)))return e;var r=vr(e),i=Qn(r,vr(t))+1;return qi(r,0,i).join("")}function md(e,t,n){if(e=Qc(e),e&&(n||t===o))return e.replace(Le,"");if(!e||!(t=Ti(t)))return e;var r=vr(e),i=Xn(r,vr(t));return qi(r,i).join("")}function yd(e,t){var n=O,r=_;if(Sc(t)){var i="separator"in t?t.separator:i;n="length"in t?Gc(t.length):n,r="omission"in t?Ti(t.omission):r}e=Qc(e);var a=e.length;if(ir(e)){var l=vr(e);a=l.length}if(n>=a)return e;var u=n-gr(r);if(u<1)return r;var s=l?qi(l,0,u).join(""):e.slice(0,u);if(i===o)return s+r;if(l&&(u+=s.length-u),Nc(i)){if(e.slice(u).search(i)){var c,f=s;i.global||(i=rt(i.source,Qc(qe.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(f))var d=c.index;s=s.slice(0,d===o?u:d)}}else if(e.indexOf(Ti(i),u)!=u){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r}function bd(e){return e=Qc(e),e&&Ae.test(e)?e.replace(ke,yr):e}var wd=ha((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),xd=pa("toUpperCase");function Cd(e,t,n){return e=Qc(e),t=n?o:t,t===o?ar(e)?xr(e):Tn(e):e.match(t)||[]}var Ed=xi((function(e,t){try{return bn(e,o,t)}catch(n){return bc(n)?n:new Me(n)}})),Sd=Ma((function(e,t){return xn(t,(function(t){t=Fl(t),go(e,t,js(e[t],e))})),e}));function kd(e){var t=null==e?0:e.length,n=Ha();return e=t?An(e,(function(e){if("function"!=typeof e[1])throw new it(u);return[n(e[0]),e[1]]})):[],xi((function(n){var r=-1;while(++r<t){var o=e[r];if(bn(o[0],this,n))return bn(o[1],this,n)}}))}function Dd(e){return bo(yo(e,p))}function Ad(e){return function(){return e}}function Od(e,t){return null==e||e!==e?t:e}var _d=ya(),Bd=ya(!0);function Fd(e){return e}function jd(e){return ni("function"==typeof e?e:yo(e,p))}function Pd(e){return li(yo(e,p))}function Td(e,t){return ui(e,yo(t,p))}var Nd=xi((function(e,t){return function(n){return Ho(n,e,t)}})),Id=xi((function(e,t){return function(n){return Ho(e,n,t)}}));function Ld(e,t,n){var r=Ef(t),o=To(t,r);null!=n||Sc(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=To(t,Ef(t)));var i=!(Sc(n)&&"chain"in n)||!!n.chain,a=xc(e);return xn(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=oa(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,On([this.value()],arguments))})})),e}function Md(){return ln._===this&&(ln._=vt),this}function Rd(){}function zd(e){return e=Gc(e),xi((function(t){return fi(t,e)}))}var Vd=Ca(An),$d=Ca(En),Ud=Ca(Fn);function Hd(e){return ul(e)?Vn(Fl(e)):gi(e)}function Wd(e){return function(t){return null==e?o:No(e,t)}}var qd=ka(),Kd=ka(!0);function Gd(){return[]}function Yd(){return!1}function Jd(){return{}}function Zd(){return""}function Xd(){return!0}function Qd(e,t){if(e=Gc(e),e<1||e>I)return[];var n=R,r=Vt(e,R);t=Ha(t),e-=R;var o=qn(r,t);while(++n<e)t(n);return o}function ep(e){return uc(e)?An(e,Fl):Rc(e)?[e]:oa(Bl(Qc(e)))}function tp(e){var t=++dt;return Qc(e)+t}var np=xa((function(e,t){return e+t}),0),rp=Oa("ceil"),op=xa((function(e,t){return e/t}),1),ip=Oa("floor");function ap(e){return e&&e.length?Do(e,Fd,Mo):o}function lp(e,t){return e&&e.length?Do(e,Ha(t,2),Mo):o}function up(e){return zn(e,Fd)}function sp(e,t){return zn(e,Ha(t,2))}function cp(e){return e&&e.length?Do(e,Fd,ii):o}function fp(e,t){return e&&e.length?Do(e,Ha(t,2),ii):o}var dp=xa((function(e,t){return e*t}),1),pp=Oa("round"),hp=xa((function(e,t){return e-t}),0);function gp(e){return e&&e.length?Wn(e,Fd):0}function vp(e,t){return e&&e.length?Wn(e,Ha(t,2)):0}return Cr.after=_s,Cr.ary=Bs,Cr.assign=ef,Cr.assignIn=tf,Cr.assignInWith=nf,Cr.assignWith=rf,Cr.at=of,Cr.before=Fs,Cr.bind=js,Cr.bindAll=Sd,Cr.bindKey=Ps,Cr.castArray=Xs,Cr.chain=Wu,Cr.chunk=Nl,Cr.compact=Il,Cr.concat=Ll,Cr.cond=kd,Cr.conforms=Dd,Cr.constant=Ad,Cr.countBy=ns,Cr.create=af,Cr.curry=Ts,Cr.curryRight=Ns,Cr.debounce=Is,Cr.defaults=lf,Cr.defaultsDeep=uf,Cr.defer=Ls,Cr.delay=Ms,Cr.difference=Ml,Cr.differenceBy=Rl,Cr.differenceWith=zl,Cr.drop=Vl,Cr.dropRight=$l,Cr.dropRightWhile=Ul,Cr.dropWhile=Hl,Cr.fill=Wl,Cr.filter=os,Cr.flatMap=ls,Cr.flatMapDeep=us,Cr.flatMapDepth=ss,Cr.flatten=Gl,Cr.flattenDeep=Yl,Cr.flattenDepth=Jl,Cr.flip=Rs,Cr.flow=_d,Cr.flowRight=Bd,Cr.fromPairs=Zl,Cr.functions=gf,Cr.functionsIn=vf,Cr.groupBy=ds,Cr.initial=eu,Cr.intersection=tu,Cr.intersectionBy=nu,Cr.intersectionWith=ru,Cr.invert=wf,Cr.invertBy=xf,Cr.invokeMap=hs,Cr.iteratee=jd,Cr.keyBy=gs,Cr.keys=Ef,Cr.keysIn=Sf,Cr.map=vs,Cr.mapKeys=kf,Cr.mapValues=Df,Cr.matches=Pd,Cr.matchesProperty=Td,Cr.memoize=zs,Cr.merge=Af,Cr.mergeWith=Of,Cr.method=Nd,Cr.methodOf=Id,Cr.mixin=Ld,Cr.negate=Vs,Cr.nthArg=zd,Cr.omit=_f,Cr.omitBy=Bf,Cr.once=$s,Cr.orderBy=ms,Cr.over=Vd,Cr.overArgs=Us,Cr.overEvery=$d,Cr.overSome=Ud,Cr.partial=Hs,Cr.partialRight=Ws,Cr.partition=ys,Cr.pick=Ff,Cr.pickBy=jf,Cr.property=Hd,Cr.propertyOf=Wd,Cr.pull=uu,Cr.pullAll=su,Cr.pullAllBy=cu,Cr.pullAllWith=fu,Cr.pullAt=du,Cr.range=qd,Cr.rangeRight=Kd,Cr.rearg=qs,Cr.reject=xs,Cr.remove=pu,Cr.rest=Ks,Cr.reverse=hu,Cr.sampleSize=Es,Cr.set=Tf,Cr.setWith=Nf,Cr.shuffle=Ss,Cr.slice=gu,Cr.sortBy=As,Cr.sortedUniq=Cu,Cr.sortedUniqBy=Eu,Cr.split=sd,Cr.spread=Gs,Cr.tail=Su,Cr.take=ku,Cr.takeRight=Du,Cr.takeRightWhile=Au,Cr.takeWhile=Ou,Cr.tap=qu,Cr.throttle=Ys,Cr.thru=Ku,Cr.toArray=qc,Cr.toPairs=If,Cr.toPairsIn=Lf,Cr.toPath=ep,Cr.toPlainObject=Zc,Cr.transform=Mf,Cr.unary=Js,Cr.union=_u,Cr.unionBy=Bu,Cr.unionWith=Fu,Cr.uniq=ju,Cr.uniqBy=Pu,Cr.uniqWith=Tu,Cr.unset=Rf,Cr.unzip=Nu,Cr.unzipWith=Iu,Cr.update=zf,Cr.updateWith=Vf,Cr.values=$f,Cr.valuesIn=Uf,Cr.without=Lu,Cr.words=Cd,Cr.wrap=Zs,Cr.xor=Mu,Cr.xorBy=Ru,Cr.xorWith=zu,Cr.zip=Vu,Cr.zipObject=$u,Cr.zipObjectDeep=Uu,Cr.zipWith=Hu,Cr.entries=If,Cr.entriesIn=Lf,Cr.extend=tf,Cr.extendWith=nf,Ld(Cr,Cr),Cr.add=np,Cr.attempt=Ed,Cr.camelCase=Kf,Cr.capitalize=Gf,Cr.ceil=rp,Cr.clamp=Hf,Cr.clone=Qs,Cr.cloneDeep=tc,Cr.cloneDeepWith=nc,Cr.cloneWith=ec,Cr.conformsTo=rc,Cr.deburr=Yf,Cr.defaultTo=Od,Cr.divide=op,Cr.endsWith=Jf,Cr.eq=oc,Cr.escape=Zf,Cr.escapeRegExp=Xf,Cr.every=rs,Cr.find=is,Cr.findIndex=ql,Cr.findKey=sf,Cr.findLast=as,Cr.findLastIndex=Kl,Cr.findLastKey=cf,Cr.floor=ip,Cr.forEach=cs,Cr.forEachRight=fs,Cr.forIn=ff,Cr.forInRight=df,Cr.forOwn=pf,Cr.forOwnRight=hf,Cr.get=mf,Cr.gt=ic,Cr.gte=ac,Cr.has=yf,Cr.hasIn=bf,Cr.head=Xl,Cr.identity=Fd,Cr.includes=ps,Cr.indexOf=Ql,Cr.inRange=Wf,Cr.invoke=Cf,Cr.isArguments=lc,Cr.isArray=uc,Cr.isArrayBuffer=sc,Cr.isArrayLike=cc,Cr.isArrayLikeObject=fc,Cr.isBoolean=dc,Cr.isBuffer=pc,Cr.isDate=hc,Cr.isElement=gc,Cr.isEmpty=vc,Cr.isEqual=mc,Cr.isEqualWith=yc,Cr.isError=bc,Cr.isFinite=wc,Cr.isFunction=xc,Cr.isInteger=Cc,Cr.isLength=Ec,Cr.isMap=Dc,Cr.isMatch=Ac,Cr.isMatchWith=Oc,Cr.isNaN=_c,Cr.isNative=Bc,Cr.isNil=jc,Cr.isNull=Fc,Cr.isNumber=Pc,Cr.isObject=Sc,Cr.isObjectLike=kc,Cr.isPlainObject=Tc,Cr.isRegExp=Nc,Cr.isSafeInteger=Ic,Cr.isSet=Lc,Cr.isString=Mc,Cr.isSymbol=Rc,Cr.isTypedArray=zc,Cr.isUndefined=Vc,Cr.isWeakMap=$c,Cr.isWeakSet=Uc,Cr.join=ou,Cr.kebabCase=Qf,Cr.last=iu,Cr.lastIndexOf=au,Cr.lowerCase=ed,Cr.lowerFirst=td,Cr.lt=Hc,Cr.lte=Wc,Cr.max=ap,Cr.maxBy=lp,Cr.mean=up,Cr.meanBy=sp,Cr.min=cp,Cr.minBy=fp,Cr.stubArray=Gd,Cr.stubFalse=Yd,Cr.stubObject=Jd,Cr.stubString=Zd,Cr.stubTrue=Xd,Cr.multiply=dp,Cr.nth=lu,Cr.noConflict=Md,Cr.noop=Rd,Cr.now=Os,Cr.pad=nd,Cr.padEnd=rd,Cr.padStart=od,Cr.parseInt=id,Cr.random=qf,Cr.reduce=bs,Cr.reduceRight=ws,Cr.repeat=ad,Cr.replace=ld,Cr.result=Pf,Cr.round=pp,Cr.runInContext=e,Cr.sample=Cs,Cr.size=ks,Cr.snakeCase=ud,Cr.some=Ds,Cr.sortedIndex=vu,Cr.sortedIndexBy=mu,Cr.sortedIndexOf=yu,Cr.sortedLastIndex=bu,Cr.sortedLastIndexBy=wu,Cr.sortedLastIndexOf=xu,Cr.startCase=cd,Cr.startsWith=fd,Cr.subtract=hp,Cr.sum=gp,Cr.sumBy=vp,Cr.template=dd,Cr.times=Qd,Cr.toFinite=Kc,Cr.toInteger=Gc,Cr.toLength=Yc,Cr.toLower=pd,Cr.toNumber=Jc,Cr.toSafeInteger=Xc,Cr.toString=Qc,Cr.toUpper=hd,Cr.trim=gd,Cr.trimEnd=vd,Cr.trimStart=md,Cr.truncate=yd,Cr.unescape=bd,Cr.uniqueId=tp,Cr.upperCase=wd,Cr.upperFirst=xd,Cr.each=cs,Cr.eachRight=fs,Cr.first=Xl,Ld(Cr,function(){var e={};return jo(Cr,(function(t,n){ft.call(Cr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Cr.VERSION=i,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Cr[e].placeholder=Cr})),xn(["drop","take"],(function(e,t){Ar.prototype[e]=function(n){n=n===o?1:zt(Gc(n),0);var r=this.__filtered__&&!t?new Ar(this):this.clone();return r.__filtered__?r.__takeCount__=Vt(n,r.__takeCount__):r.__views__.push({size:Vt(n,R),type:e+(r.__dir__<0?"Right":"")}),r},Ar.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==j||n==T;Ar.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Ar.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Ar.prototype[e]=function(){return this.__filtered__?new Ar(this):this[n](1)}})),Ar.prototype.compact=function(){return this.filter(Fd)},Ar.prototype.find=function(e){return this.filter(e).head()},Ar.prototype.findLast=function(e){return this.reverse().find(e)},Ar.prototype.invokeMap=xi((function(e,t){return"function"==typeof e?new Ar(this):this.map((function(n){return Ho(n,e,t)}))})),Ar.prototype.reject=function(e){return this.filter(Vs(Ha(e)))},Ar.prototype.slice=function(e,t){e=Gc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Ar(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Gc(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Ar.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ar.prototype.toArray=function(){return this.take(R)},jo(Ar.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Cr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Cr.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,u=t instanceof Ar,s=l[0],c=u||uc(t),f=function(e){var t=i.apply(Cr,On([e],l));return r&&d?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,g=u&&!p;if(!a&&c){t=g?t:new Ar(this);var v=e.apply(t,l);return v.__actions__.push({func:Ku,args:[f],thisArg:o}),new Dr(v,d)}return h&&g?e.apply(this,l):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Cr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(uc(o)?o:[],e)}return this[n]((function(n){return t.apply(uc(n)?n:[],e)}))}})),jo(Ar.prototype,(function(e,t){var n=Cr[t];if(n){var r=n.name+"";ft.call(sn,r)||(sn[r]=[]),sn[r].push({name:t,func:n})}})),sn[ba(o,b).name]=[{name:"wrapper",func:o}],Ar.prototype.clone=Or,Ar.prototype.reverse=_r,Ar.prototype.value=Br,Cr.prototype.at=Gu,Cr.prototype.chain=Yu,Cr.prototype.commit=Ju,Cr.prototype.next=Zu,Cr.prototype.plant=Qu,Cr.prototype.reverse=es,Cr.prototype.toJSON=Cr.prototype.valueOf=Cr.prototype.value=ts,Cr.prototype.first=Cr.prototype.head,At&&(Cr.prototype[At]=Xu),Cr},Er=Cr();ln._=Er,r=function(){return Er}.call(t,n,t,e),r===o||(e.exports=r)}.call(this)},1980:function(e){const t=["24-hours-fill","24-hours-line","4k-fill","4k-line","a-b","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","admin-fill","admin-line","airplay-fill","airplay-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","album-fill","album-line","alert-fill","alert-line","aliens-fill","aliens-line","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","alipay-fill","alipay-line","amazon-fill","amazon-line","anchor-fill","anchor-line","ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","android-fill","android-line","angularjs-fill","angularjs-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","app-store-fill","app-store-line","apple-fill","apple-line","apps-2-fill","apps-2-line","apps-fill","apps-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","article-fill","article-line","aspect-ratio-fill","aspect-ratio-line","asterisk","at-fill","at-line","attachment-2","attachment-fill","attachment-line","auction-fill","auction-line","award-fill","award-line","baidu-fill","baidu-line","ball-pen-fill","ball-pen-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bank-fill","bank-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","barricade-fill","barricade-line","base-station-fill","base-station-line","basketball-fill","basketball-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bear-smile-fill","bear-smile-line","behance-fill","behance-line","bell-fill","bell-line","bike-fill","bike-line","bilibili-fill","bilibili-line","bill-fill","bill-line","billiards-fill","billiards-line","bit-coin-fill","bit-coin-line","blaze-fill","blaze-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","blur-off-fill","blur-off-line","body-scan-fill","body-scan-line","bold","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","booklet-fill","booklet-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","boxing-fill","boxing-line","braces-fill","braces-line","brackets-fill","brackets-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bring-forward","bring-to-front","broadcast-fill","broadcast-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","bubble-chart-fill","bubble-chart-line","bug-2-fill","bug-2-line","bug-fill","bug-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","capsule-fill","capsule-line","car-fill","car-line","car-washing-fill","car-washing-line","caravan-fill","caravan-line","cast-fill","cast-line","cellphone-fill","cellphone-line","celsius-fill","celsius-line","centos-fill","centos-line","character-recognition-fill","character-recognition-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","check-double-fill","check-double-line","check-fill","check-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","china-railway-fill","china-railway-line","chrome-fill","chrome-line","clapperboard-fill","clapperboard-line","clipboard-fill","clipboard-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","close-circle-fill","close-circle-line","close-fill","close-line","closed-captioning-fill","closed-captioning-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","code-view","codepen-fill","codepen-line","coin-fill","coin-line","coins-fill","coins-line","collage-fill","collage-line","command-fill","command-line","community-fill","community-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","computer-fill","computer-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","contacts-fill","contacts-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","coreos-fill","coreos-line","coupon-2-fill","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","cpu-fill","cpu-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","criminal-fill","criminal-line","crop-2-fill","crop-2-line","crop-fill","crop-line","css3-fill","css3-line","cup-fill","cup-line","currency-fill","currency-line","cursor-fill","cursor-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","dashboard-fill","dashboard-line","database-2-fill","database-2-line","database-fill","database-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","delete-column","delete-row","device-fill","device-line","device-recover-fill","device-recover-line","dingding-fill","dingding-line","direction-fill","direction-line","disc-fill","disc-line","discord-fill","discord-line","discuss-fill","discuss-line","dislike-fill","dislike-line","disqus-fill","disqus-line","divide-fill","divide-line","donut-chart-fill","donut-chart-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","dossier-fill","dossier-line","douban-fill","douban-line","double-quotes-l","double-quotes-r","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","draft-fill","draft-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","dribbble-fill","dribbble-line","drive-fill","drive-line","drizzle-fill","drizzle-line","drop-fill","drop-line","dropbox-fill","dropbox-line","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","dv-fill","dv-line","dvd-fill","dvd-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","earth-fill","earth-line","earthquake-fill","earthquake-line","edge-fill","edge-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eject-fill","eject-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","empathize-fill","empathize-line","emphasis-cn","emphasis","english-input","equalizer-fill","equalizer-line","eraser-fill","eraser-line","error-warning-fill","error-warning-line","evernote-fill","evernote-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","fahrenheit-fill","fahrenheit-line","feedback-fill","feedback-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","film-fill","film-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","finder-fill","finder-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","fire-fill","fire-line","firefox-fill","firefox-line","first-aid-kit-fill","first-aid-kit-line","flag-2-fill","flag-2-line","flag-fill","flag-line","flashlight-fill","flashlight-line","flask-fill","flask-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","flood-fill","flood-line","flow-chart","flutter-fill","flutter-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","foggy-fill","foggy-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","folders-fill","folders-line","font-color","font-size-2","font-size","football-fill","football-line","footprint-fill","footprint-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","format-clear","fridge-fill","fridge-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","function-fill","function-line","functions","funds-box-fill","funds-box-line","funds-fill","funds-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","game-fill","game-line","gamepad-fill","gamepad-line","gas-station-fill","gas-station-line","gatsby-fill","gatsby-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","gift-2-fill","gift-2-line","gift-fill","gift-line","git-branch-fill","git-branch-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","github-fill","github-line","gitlab-fill","gitlab-line","global-fill","global-line","globe-fill","globe-line","goblet-fill","goblet-line","google-fill","google-line","google-play-fill","google-play-line","government-fill","government-line","gps-fill","gps-line","gradienter-fill","gradienter-line","grid-fill","grid-line","group-2-fill","group-2-line","group-fill","group-line","guide-fill","guide-line","h-1","h-2","h-3","h-4","h-5","h-6","hail-fill","hail-line","hammer-fill","hammer-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","hand-sanitizer-fill","hand-sanitizer-line","handbag-fill","handbag-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-fill","hard-drive-line","hashtag","haze-2-fill","haze-2-line","haze-fill","haze-line","hd-fill","hd-line","heading","headphone-fill","headphone-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","hearts-line","heavy-showers-fill","heavy-showers-line","history-fill","history-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","honor-of-kings-fill","honor-of-kings-line","honour-fill","honour-line","hospital-fill","hospital-line","hotel-bed-fill","hotel-bed-line","hotel-fill","hotel-line","hotspot-fill","hotspot-line","hq-fill","hq-line","html5-fill","html5-line","ie-fill","ie-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","increase-decrease-fill","increase-decrease-line","indent-decrease","indent-increase","indeterminate-circle-fill","indeterminate-circle-line","information-fill","information-line","infrared-thermometer-fill","infrared-thermometer-line","ink-bottle-fill","ink-bottle-line","input-cursor-move","input-method-fill","input-method-line","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","instagram-fill","instagram-line","install-fill","install-line","invision-fill","invision-line","italic","kakao-talk-fill","kakao-talk-line","key-2-fill","key-2-line","key-fill","key-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","keynote-fill","keynote-line","knife-blood-fill","knife-blood-line","knife-fill","knife-line","landscape-fill","landscape-line","layout-2-fill","layout-2-line","layout-3-fill","layout-3-line","layout-4-fill","layout-4-line","layout-5-fill","layout-5-line","layout-6-fill","layout-6-line","layout-bottom-2-fill","layout-bottom-2-line","layout-bottom-fill","layout-bottom-line","layout-column-fill","layout-column-line","layout-fill","layout-grid-fill","layout-grid-line","layout-left-2-fill","layout-left-2-line","layout-left-fill","layout-left-line","layout-line","layout-masonry-fill","layout-masonry-line","layout-right-2-fill","layout-right-2-line","layout-right-fill","layout-right-line","layout-row-fill","layout-row-line","layout-top-2-fill","layout-top-2-line","layout-top-fill","layout-top-line","leaf-fill","leaf-line","lifebuoy-fill","lifebuoy-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","line-chart-fill","line-chart-line","line-fill","line-height","line-line","link-m","link-unlink-m","link-unlink","link","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","links-fill","links-line","list-check-2","list-check","list-ordered","list-settings-fill","list-settings-line","list-unordered","live-fill","live-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","lungs-fill","lungs-line","mac-fill","mac-line","macbook-fill","macbook-line","magic-fill","magic-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","mark-pen-fill","mark-pen-line","markdown-fill","markdown-line","markup-fill","markup-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medal-2-fill","medal-2-line","medal-fill","medal-line","medicine-bottle-fill","medicine-bottle-line","medium-fill","medium-line","men-fill","men-line","mental-health-fill","mental-health-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-unfold-fill","menu-unfold-line","merge-cells-horizontal","merge-cells-vertical","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","messenger-fill","messenger-line","meteor-fill","meteor-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","mickey-fill","mickey-line","microscope-fill","microscope-line","microsoft-fill","microsoft-line","mind-map","mini-program-fill","mini-program-line","mist-fill","mist-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","more-2-fill","more-2-line","more-fill","more-line","motorbike-fill","motorbike-line","mouse-fill","mouse-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","navigation-fill","navigation-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","newspaper-fill","newspaper-line","node-tree","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-badge-fill","notification-badge-line","notification-fill","notification-line","notification-off-fill","notification-off-line","npmjs-fill","npmjs-line","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","numbers-fill","numbers-line","nurse-fill","nurse-line","oil-fill","oil-line","omega","open-arm-fill","open-arm-line","open-source-fill","open-source-line","opera-fill","opera-line","order-play-fill","order-play-line","organization-chart","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","page-separator","pages-fill","pages-line","paint-brush-fill","paint-brush-line","paint-fill","paint-line","palette-fill","palette-line","pantone-fill","pantone-line","paragraph","parent-fill","parent-line","parentheses-fill","parentheses-line","parking-box-fill","parking-box-line","parking-fill","parking-line","passport-fill","passport-line","patreon-fill","patreon-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","paypal-fill","paypal-line","pen-nib-fill","pen-nib-line","pencil-fill","pencil-line","pencil-ruler-2-fill","pencil-ruler-2-line","pencil-ruler-fill","pencil-ruler-line","percent-fill","percent-line","phone-camera-fill","phone-camera-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","pin-distance-fill","pin-distance-line","ping-pong-fill","ping-pong-line","pinterest-fill","pinterest-line","pinyin-input","pixelfed-fill","pixelfed-line","plane-fill","plane-line","plant-fill","plant-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","playstation-fill","playstation-line","plug-2-fill","plug-2-line","plug-fill","plug-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","police-car-fill","police-car-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","product-hunt-fill","product-hunt-line","profile-fill","profile-line","projector-2-fill","projector-2-line","projector-fill","projector-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","qq-fill","qq-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","question-answer-fill","question-answer-line","question-fill","question-line","question-mark","questionnaire-fill","questionnaire-line","quill-pen-fill","quill-pen-line","radar-fill","radar-line","radio-2-fill","radio-2-line","radio-button-fill","radio-button-line","radio-fill","radio-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","reactjs-fill","reactjs-line","record-circle-fill","record-circle-line","record-mail-fill","record-mail-line","recycle-fill","recycle-line","red-packet-fill","red-packet-line","reddit-fill","reddit-line","refresh-fill","refresh-line","refund-2-fill","refund-2-line","refund-fill","refund-line","registered-fill","registered-line","remixicon-fill","remixicon-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","reply-all-fill","reply-all-line","reply-fill","reply-line","reserved-fill","reserved-line","rest-time-fill","rest-time-line","restart-fill","restart-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rhythm-fill","rhythm-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","robot-fill","robot-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","rotate-lock-fill","rotate-lock-line","rounded-corner","route-fill","route-line","router-fill","router-line","rss-fill","rss-line","ruler-2-fill","ruler-2-line","ruler-fill","ruler-line","run-fill","run-line","safari-fill","safari-line","safe-2-fill","safe-2-line","safe-fill","safe-line","sailboat-fill","sailboat-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","scan-2-fill","scan-2-line","scan-fill","scan-line","scissors-2-fill","scissors-2-line","scissors-cut-fill","scissors-cut-line","scissors-fill","scissors-line","screenshot-2-fill","screenshot-2-line","screenshot-fill","screenshot-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","secure-payment-fill","secure-payment-line","seedling-fill","seedling-line","send-backward","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","send-to-back","sensor-fill","sensor-line","separator","server-fill","server-line","service-fill","service-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","shape-2-fill","shape-2-line","shape-fill","shape-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","ship-2-fill","ship-2-line","ship-fill","ship-line","shirt-fill","shirt-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","showers-fill","showers-line","shuffle-fill","shuffle-line","shut-down-fill","shut-down-line","side-bar-fill","side-bar-line","signal-tower-fill","signal-tower-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","single-quotes-l","single-quotes-r","sip-fill","sip-line","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","skull-2-fill","skull-2-line","skull-fill","skull-line","skype-fill","skype-line","slack-fill","slack-line","slice-fill","slice-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","smartphone-fill","smartphone-line","snapchat-fill","snapchat-line","snowy-fill","snowy-line","sort-asc","sort-desc","sound-module-fill","sound-module-line","soundcloud-fill","soundcloud-line","space-ship-fill","space-ship-line","space","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","spectrum-fill","spectrum-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","split-cells-horizontal","split-cells-vertical","spotify-fill","spotify-line","spy-fill","spy-line","stack-fill","stack-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","star-smile-fill","star-smile-line","steam-fill","steam-line","steering-2-fill","steering-2-line","steering-fill","steering-line","stethoscope-fill","stethoscope-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","stock-fill","stock-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","strikethrough-2","strikethrough","subscript-2","subscript","subtract-fill","subtract-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","superscript-2","superscript","surgical-mask-fill","surgical-mask-line","surround-sound-fill","surround-sound-line","survey-fill","survey-line","swap-box-fill","swap-box-line","swap-fill","swap-line","switch-fill","switch-line","sword-fill","sword-line","syringe-fill","syringe-line","t-box-fill","t-box-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","table-2","table-alt-fill","table-alt-line","table-fill","table-line","tablet-fill","tablet-line","takeaway-fill","takeaway-line","taobao-fill","taobao-line","tape-fill","tape-line","task-fill","task-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","team-fill","team-line","telegram-fill","telegram-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","test-tube-fill","test-tube-line","text-direction-l","text-direction-r","text-spacing","text-wrap","text","thermometer-fill","thermometer-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","thunderstorms-fill","thunderstorms-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","todo-fill","todo-line","toggle-fill","toggle-line","tools-fill","tools-line","tornado-fill","tornado-line","trademark-fill","trademark-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","translate-2","translate","travesti-fill","travesti-line","treasure-map-fill","treasure-map-line","trello-fill","trello-line","trophy-fill","trophy-line","truck-fill","truck-line","tumblr-fill","tumblr-line","tv-2-fill","tv-2-line","tv-fill","tv-line","twitch-fill","twitch-line","twitter-fill","twitter-line","typhoon-fill","typhoon-line","u-disk-fill","u-disk-line","ubuntu-fill","ubuntu-line","umbrella-fill","umbrella-line","underline","uninstall-fill","uninstall-line","unsplash-fill","unsplash-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","usb-fill","usb-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","video-add-fill","video-add-line","video-chat-fill","video-chat-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","vimeo-fill","vimeo-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","virus-fill","virus-line","visa-fill","visa-line","voice-recognition-fill","voice-recognition-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","vuejs-fill","vuejs-line","walk-fill","walk-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","webcam-fill","webcam-line","wechat-2-fill","wechat-2-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","wheelchair-fill","wheelchair-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","window-2-fill","window-2-line","window-fill","window-line","windows-fill","windows-line","windy-fill","windy-line","wireless-charging-fill","wireless-charging-line","women-fill","women-line","wubi-input","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","zzz-fill","zzz-line"];e.exports={iconList:t}},2343:function(e){const t={isObject(e){return"[object Object]"==={}.toString.call(e)},hasObject(e){return this.isObject(e)&&Object.keys(e).length>0},isFunction(e){return"[object Function]"==={}.toString.call(e)},isArray(e){return"[object Array]"==={}.toString.call(e)},hasArray(e){return this.isArray(e)&&e.length>0},isString(e){return"[object String]"==={}.toString.call(e)},isNumber(e){return"[object Number]"==={}.toString.call(e)},isValid(e){return void 0!==e&&""!==e&&null!==e||0===e||!1===e},sleep(e){return new Promise((t=>setTimeout(t,e)))},isData(e){return this.hasArray(e)||this.hasObject(e)||this.isValid(e)},$local(e,t){const r=e||"userInfo";if(!this.isValid(t)){const e=n.get(r);return e||!1}n.set(r,t)},$localRemove(e){const t=e||"userInfo";n.remove(t),r.remove(t)},copy(e){return JSON.parse(JSON.stringify(e))},$getName(e,n){let r="";return t.hasArray(e)&&(e.map((e=>{r+=e[n]+"、"})),r=r.substring(0,r.length-1)),r},delArrValue(e,t){return e.forEach(((n,r)=>{n===t&&e.splice(r,1)})),e},setEmpty(e){if(this.hasObject(e))for(const t in e)null!=e[t]&&void 0!==e[t]||(e[t]="");return e},getBody(e){for(var t in e){const n=e[t];this.isValid(n)||delete e[t]}return e}},n={set(e,n){let r=n;(t.isObject(n)||t.isArray(r))&&(r=JSON.stringify(r)),localStorage.setItem(e,r)},get(e){const n=localStorage.getItem(e);return!!t.isValid(n)&&JSON.parse(n)},output(){console.log(localStorage)},remove(e){t.hasArray(e)?e.map((e=>{localStorage.removeItem(e)})):localStorage.removeItem(e)},clear(){localStorage.clear()}},r={set(e,n){let r=n;(t.isObject(r)||t.isArray(r))&&(r=JSON.stringify(r)),sessionStorage.setItem(e,r)},get(e){const n=sessionStorage.getItem(e);return!!t.isValid(n)&&JSON.parse(n)},output(){console.log(sessionStorage)},remove(e){t.hasArray(e)?e.map((e=>{sessionStorage.removeItem(e)})):sessionStorage.removeItem(e)},clear(){sessionStorage.clear()}};e.exports={F:t,LS:n,SS:r}},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},1534:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return F}});var r=n(7203);const o=e=>((0,r.pushScopeId)("data-v-695b272e"),e=e(),(0,r.popScopeId)(),e),i={class:"fx area-dropdown-wraper"},a={class:"scrollbar-item"},l=["onClick"],u=["onClick"],s=o((()=>(0,r.createElementVNode)("span",{class:"el-checkbox__inner"},null,-1))),c=[s],f={class:"el-cascader-node__label ex"},d=o((()=>(0,r.createElementVNode)("i",{class:"el-icon-arrow-right"},null,-1))),p={class:"scrollbar-item"},h=["onClick"],g=["onClick"],v=o((()=>(0,r.createElementVNode)("span",{class:"el-checkbox__inner"},null,-1))),m=[v],y={class:"el-cascader-node__label ex"},b=o((()=>(0,r.createElementVNode)("i",{class:"el-icon-arrow-right"},null,-1))),w={class:"scrollbar-item"},x=["onClick"],C=["onClick"],E=o((()=>(0,r.createElementVNode)("span",{class:"el-checkbox__inner"},null,-1))),S=[E],k={class:"el-cascader-node__label ex"},D=o((()=>(0,r.createElementVNode)("i",{class:"el-icon-arrow-right"},null,-1)));function A(e,t,n,o,s,v){const E=(0,r.resolveComponent)("el-scrollbar"),A=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createBlock)(A,{ref:"popper","append-to-body":!0,"fallback-placements":["bottom-start","top-start","right","left"],"gpu-acceleration":!1,placement:"bottom-start","popper-class":"is-pure el-cascader__dropdown","popper-options":e.popperOptions,pure:"","stop-popper-mouse-event":!1,transition:"el-zoom-in-top",trigger:"click",width:e.popoverWidth,onHide:t[0]||(t[0]=t=>e.popperVisible=!1),onShow:t[1]||(t[1]=t=>e.popperVisible=!0)},{reference:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["fxmj select-wrapper",[e.popperVisible&&"select-wrapper-active"]])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["omit plr10 ex",[!e.selectText&&"c4"]])},(0,r.toDisplayString)(e.selectText?e.selectText:"请选择"),3),(0,r.createElementVNode)("i",{key:"arrow-down",class:(0,r.normalizeClass)(["el-input__icon","el-icon-arrow-down",e.popperVisible&&"reverse-icon"])},null,2)],2)])),default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",i,[(0,r.createVNode)(E,{height:240},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("ul",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.areaList,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n,class:(0,r.normalizeClass)(["fxmj",{"is-active-node":e.provinceIndex===n||2===t.checked}]),onClick:r=>e.handleProvice(t,n)},[(0,r.createElementVNode)("label",{class:"el-checkbox el-checkbox--medium",onClick:(0,r.withModifiers)((r=>e.handleProvice(t,n,"checked")),["stop"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["el-checkbox__input",{"is-indeterminate":1===t.checked,"is-checked":2===t.checked}])},c,2)],8,u),(0,r.createElementVNode)("span",f,(0,r.toDisplayString)(t.name),1),d],10,l)))),128))])])),_:1}),""!==e.provinceIndex?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,height:240},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("ul",p,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.cityList,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n,class:(0,r.normalizeClass)(["fxmj",{"is-active-node":e.cityIndex===n}]),onClick:r=>e.handleCity(t,n)},[(0,r.createElementVNode)("label",{class:"el-checkbox el-checkbox--medium",onClick:(0,r.withModifiers)((r=>e.handleCity(t,n,"checked")),["stop"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["el-checkbox__input",{"is-indeterminate":1===t.checked,"is-checked":2===t.checked}])},m,2)],8,g),(0,r.createElementVNode)("span",y,(0,r.toDisplayString)(t.name),1),b],10,h)))),128))])])),_:1})):(0,r.createCommentVNode)("",!0),""!==e.cityIndex?((0,r.openBlock)(),(0,r.createBlock)(E,{key:1,height:240},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("ul",w,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.countyList,((t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:n,class:"fxmj",onClick:r=>e.handleCounty(t,n)},[(0,r.createElementVNode)("label",{class:"el-checkbox el-checkbox--medium",onClick:(0,r.withModifiers)((r=>e.handleCounty(t,n,"checked")),["stop"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["el-checkbox__input",{"is-indeterminate":1===t.checked,"is-checked":2===t.checked}])},S,2)],8,C),(0,r.createElementVNode)("span",k,(0,r.toDisplayString)(t.name),1),D],8,x)))),128))])])),_:1})):(0,r.createCommentVNode)("",!0)])])),_:1},8,["popper-options","width"])}n(6699);var O=(0,r.defineComponent)({name:"JwtCascaderArea",props:{modelValue:{type:String,default:""},options:{type:Array,default:()=>[]}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){(0,r.watch)(e,(e=>{e.modelValue&&l(e.modelValue)}));const n=(0,r.computed)((()=>e.options)),o=(0,r.computed)((()=>{const e={};return n.value.forEach((t=>{const{id:n}=t;e[n]=t,t?.children?.length&&t.children.forEach((t=>{const{id:n}=t;e[n]=t,t?.children?.length&&t.children.forEach((t=>{const{id:n}=t;e[n]=t}))}))})),e})),i=(0,r.reactive)({popperVisible:!1,provinceIndex:"",cityIndex:"",countyIndex:"",cityList:[],countyList:[],popoverWidth:150,selectText:"",selectId:[],checkedSatus:{0:"",1:"is-indeterminate",2:"is-checked"}}),a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:n}=e;["right","left"].includes(n)||(t.arrow.x=35)},requires:["arrow"]}]},l=e=>{const t=e.split(",").map((e=>+e));setTimeout((()=>{i.selectText||(n.value.forEach((e=>{const{id:n}=e;t.includes(n)&&(e.checked=2,e.children=u(e.children,2)),e?.children?.length&&e.children.forEach((n=>{const{id:r}=n;t.includes(r)&&(n.checked=2,n.children=u(n.children,2),e.checked=1),n?.children?.length&&n.children.forEach((r=>{const{id:o}=r;t.includes(o)&&(r.checked=2,n.checked=1,e.checked=1)}))}))})),i.selectText=t.map((e=>o.value[e].name)).join(" | "))}),0)},u=(e,t)=>{let n=e.map((e=>(e.checked=t,e?.children?.length&&(e.children=u(e?.children,t)),e)));return n},s=(e,t,n)=>{if(n){const t=e.checked?0:2;e.checked=t,e.children=u(e.children,t)}i.provinceIndex=t,i.cityList=e.children,i.countyIndex="",i.cityIndex="",i.popoverWidth=300,n&&p()},c=(e,t,r)=>{if(r){const t=e.checked?0:2;e.checked=t,e.children=u(e.children,t)}const o=i.cityList.filter((e=>2===e.checked));0===o.length?n.value[i.provinceIndex].checked=0:o.length===i.cityList.length?n.value[i.provinceIndex].checked=2:n.value[i.provinceIndex].checked=1,i.cityIndex=t,i.countyList=e.children,i.countyIndex="",i.popoverWidth=450,r&&p()},f=(e,t,r)=>{if(r){const t=e.checked?0:2;e.checked=t}const o=i.countyList.filter((e=>2===e.checked));0===o.length?i.cityList[i.cityIndex].checked=0:o.length===i.countyList.length?i.cityList[i.cityIndex].checked=2:i.cityList[i.cityIndex].checked=1;const a=i.cityList.filter((e=>2===e.checked));if(0===a.length){const e=i.cityList.filter((e=>1===e.checked));e.length?n.value[i.provinceIndex].checked=1:n.value[i.provinceIndex].checked=0}else a.length===i.cityList.length?n.value[i.provinceIndex].checked=2:n.value[i.provinceIndex].checked=1;i.countyIndex=t,r&&p()},d=(e=n.value)=>{const t=e.length;for(let n=0;n<t;n++){const t=e[n];2===t.checked?i.selectId.push(t.id):1===t.checked&&t?.children?.length&&d(t?.children)}},p=()=>{i.selectId=[],d(),i.selectText=i.selectId.map((e=>o.value[e].name)).join(" | "),t("update:modelValue",i.selectId),t("onChange",i.selectId)};return{...(0,r.toRefs)(i),areaList:n,areaListObj:o,popperOptions:a,initData:l,handleProvice:s,handleCity:c,handleCounty:f,setItemChildrenCheck:u,handleSelectResult:d,handleSelectText:p}}}),_=n(3744);const B=(0,_.Z)(O,[["render",A],["__scopeId","data-v-695b272e"]]);var F=B},6486:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(7203);const o={class:"base-wang-editor-wrapper",style:{border:"1px solid #ccc"}};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("Toolbar"),s=(0,r.resolveComponent)("Editor");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(u,{"default-config":e.toolbarConfig,editor:e.editorRef,mode:e.mode,style:{"border-bottom":"1px solid #ccc"}},null,8,["default-config","editor","mode"]),(0,r.createVNode)(s,{"default-config":e.editorConfig,"default-html":e.defaultHtml,mode:e.mode,style:{height:"500px","overflow-y":"hidden"},onCustomAlert:e.customAlert,onOnBlur:e.handleBlur,onOnChange:e.handleChange,onOnCreated:e.handleCreated,onOnDestroyed:e.handleDestroyed,onOnFocus:e.handleFocus},null,8,["default-config","default-html","mode","onCustomAlert","onOnBlur","onOnChange","onOnCreated","onOnDestroyed","onOnFocus"])])}var a=n(7877),l=Object.defineProperty,u=Object.defineProperties,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&p(e,n,t[n]);return e},g=(e,t)=>u(e,s(t));function v(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var m=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const y=(0,r.defineComponent)({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=(0,r.ref)(null),o=(0,r.shallowRef)(null),i=(0,r.ref)(""),l=()=>{if(!n.value)return;const l=(0,r.toRaw)(e.defaultContent);(0,a.createEditor)({selector:n.value,mode:e.mode,content:l||[],html:e.defaultHtml||e.modelValue||"",config:g(h({},e.defaultConfig),{onCreated(n){if(o.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){const e=v("onCreated");throw new Error(e)}},onChange(n){const r=n.getHtml();if(i.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){const e=v("onChange");throw new Error(e)}},onDestroyed(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){const e=v("onDestroyed");throw new Error(e)}},onMaxLength(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){const e=v("onMaxLength");throw new Error(e)}},onFocus(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){const e=v("onFocus");throw new Error(e)}},onBlur(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){const e=v("onBlur");throw new Error(e)}},customAlert(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){const e=v("customAlert");throw new Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){const e=v("customPaste");throw new Error(e)}let o;return t.emit("customPaste",n,r,(e=>{o=e})),o}})})};function u(e){const t=o.value;null!=t&&t.setHtml(e)}return(0,r.onMounted)((()=>{l()})),(0,r.watch)((()=>e.modelValue),(e=>{e!==i.value&&u(e)})),{box:n}}}),b={ref:"box",style:{height:"100%"}};function w(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",b,null,512)}var x=m(y,[["render",w]]);const C=(0,r.defineComponent)({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=(0,r.ref)(null),n=n=>{if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");a.DomEditor.getToolbar(n)||(0,a.createToolbar)({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return(0,r.watchEffect)((()=>{const{editor:t}=e;null!=t&&n(t)})),{selector:t}}}),E={ref:"selector"};function S(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",E,null,512)}var k=m(C,[["render",S]]),D=(0,r.defineComponent)({name:"JwtEditor",components:{Editor:x,Toolbar:k},props:{modelValue:{type:String,default:""},uploadUrl:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=(0,r.shallowRef)(),o=(0,r.ref)("<p>hello</p>"),i=(0,r.computed)((()=>e.modelValue||"")),l=[{type:"paragraph",children:[{text:"一行文字"}]}],u=(0,r.reactive)({defaultContent:l,initOnce:!1}),s={insertKeys:{index:22,keys:["uploadAttachment"]}},c={placeholder:"请输入内容...",MENU_CONF:{},hoverbarKeys:{attachment:{menuKeys:["downloadAttachment"]}}};c.MENU_CONF["uploadImage"]={server:e.uploadUrl,maxFileSize:20971520,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")},timeout:6e4},c.MENU_CONF["uploadVideo"]={server:e.uploadUrl,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")}},c.MENU_CONF["uploadAttachment"]={server:e.uploadUrl,headers:{Accept:"text/x-json",Authorization:window.localStorage.getItem("admin-token")}};const f=e=>{n.value=e},d=e=>{t("update:modelValue",b(e))},p=e=>{console.log("destroyed",e)},h=e=>{console.log("focus",e)},g=e=>{t("update:modelValue",b(e))},v=(e,t)=>{alert(`【自定义提示】${t} - ${e}`)},m=(e,t,n)=>{console.log("ClipboardEvent 粘贴事件对象",t),e.insertText("xxx"),t.preventDefault(),n(!1)},y=()=>{const e=n.value;null!=e&&(e.select([]),e.deleteFragment(),a.SlateTransforms.setNodes(e,{type:"paragraph"},{mode:"highest"}),e.dangerouslyInsertHtml(i.value),u.initOnce=!0)},b=e=>{let t=e.getHtml();const n=t.match(/<span data-w-e-type="attachment"(?:[^<])*<\/span>/g);return n?.map((e=>{var n=e.match(/http(?:[^"])*/g)?.[0],r=e.match(/>(?:[^<])*/)[0].slice(1);t=t.replace(`>${r}<`,`><a href="${n}" download="${r}">${r}</a><`)})),t};return(0,r.watch)((()=>e.modelValue),(e=>{(0,r.nextTick)((()=>{u.initOnce||e&&"<p><br></p>"!==e&&y()}))})),(0,r.onMounted)((()=>{})),(0,r.onBeforeUnmount)((()=>{const e=n.value;null!=e&&e.destroy()})),{...(0,r.toRefs)(u),editorRef:n,valueHtml:o,mode:"default",defaultHtml:i,toolbarConfig:s,editorConfig:c,handleCreated:f,handleChange:d,handleDestroyed:p,handleFocus:h,handleBlur:g,customAlert:v,customPaste:m,updateContent:y}}}),A=n(3744);const O=(0,A.Z)(D,[["render",i],["__scopeId","data-v-0d651e8c"]]);var _=O},7920:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(7203);function o(e,t,n,o,i,a){const l=(0,r.resolveComponent)("el-radio-button"),u=(0,r.resolveComponent)("el-radio"),s=(0,r.resolveComponent)("el-radio-group"),c=(0,r.resolveComponent)("el-checkbox-button"),f=(0,r.resolveComponent)("el-checkbox"),d=(0,r.resolveComponent)("el-checkbox-group"),p=(0,r.resolveComponent)("el-input"),h=(0,r.resolveComponent)("el-autocomplete"),g=(0,r.resolveComponent)("el-input-number"),v=(0,r.resolveComponent)("el-option"),m=(0,r.resolveComponent)("el-option-group"),y=(0,r.resolveComponent)("el-select"),b=(0,r.resolveComponent)("jwt-select-server"),w=(0,r.resolveComponent)("el-cascader"),x=(0,r.resolveComponent)("el-cascader-panel"),C=(0,r.resolveComponent)("el-switch"),E=(0,r.resolveComponent)("el-slider"),S=(0,r.resolveComponent)("el-time-picker"),k=(0,r.resolveComponent)("el-time-select"),D=(0,r.resolveComponent)("el-date-picker"),A=(0,r.resolveComponent)("jwt-upload-image"),O=(0,r.resolveComponent)("jwt-tags"),_=(0,r.resolveComponent)("el-rate"),B=(0,r.resolveComponent)("jwt-rate-icon"),F=(0,r.resolveComponent)("el-color-picker"),j=(0,r.resolveComponent)("el-transfer"),P=(0,r.resolveComponent)("jwt-icon-select"),T=(0,r.resolveComponent)("jwt-editor"),N=(0,r.resolveComponent)("el-button"),I=(0,r.resolveComponent)("el-form-item"),L=(0,r.resolveComponent)("el-col"),M=(0,r.resolveComponent)("el-row"),R=(0,r.resolveComponent)("el-form");return e.formConfig?.formList?.length?((0,r.openBlock)(),(0,r.createBlock)(R,(0,r.mergeProps)({key:0},e.formConfig?.formAttrs,{ref:"formRef",class:"app-form-container",model:e.appModel}),{default:(0,r.withCtx)((()=>[(0,r.createVNode)(M,{gutter:10},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.formConfig?.formList,((n,o)=>((0,r.openBlock)(),(0,r.createBlock)(L,(0,r.mergeProps)({key:o,class:[e.formConfig?.formAttrs?.inline?"el-col-dl":"db"]},n?.layoutAttrs),{default:(0,r.withCtx)((()=>["slot"!==n.type?((0,r.openBlock)(),(0,r.createBlock)(I,(0,r.mergeProps)({key:0},n.labelAttrs,{key:o,prop:n.key}),{default:(0,r.withCtx)((()=>["radio"===n.type?((0,r.openBlock)(),(0,r.createBlock)(s,(0,r.mergeProps)({key:0,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),{default:(0,r.withCtx)((()=>[n.isButton?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)(e.attrs,{key:t},(0,r.toHandlers)(e.events)),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)])),_:2},1040)))),128)):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)(e.attrs,{key:t},(0,r.toHandlers)(e.events)),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)])),_:2},1040)))),128))])),_:2},1040,["modelValue","onUpdate:modelValue"])):"checkbox"===n.type?((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},{default:(0,r.withCtx)((()=>[n.isButton?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(c,(0,r.mergeProps)(e.attrs,{key:t}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)])),_:2},1040)))),128)):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(f,(0,r.mergeProps)(e.attrs,{key:t,label:e.value}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title||e.label),1)])),_:2},1040,["label"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue"])):"hidden"===n.type?((0,r.openBlock)(),(0,r.createBlock)(p,(0,r.mergeProps)({key:2,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t,type:"hidden"},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"input"===n.type?((0,r.openBlock)(),(0,r.createBlock)(p,(0,r.mergeProps)({key:3,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.prefix?{name:"prefix",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.prefix,{},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.suffix?{name:"suffix",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.suffix,{},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.prepend?{name:"prepend",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.prepend,{},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.append?{name:"append",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.append,{},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"autocomplete"===n.type?((0,r.openBlock)(),(0,r.createBlock)(h,(0,r.mergeProps)({key:4,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"inputNumber"===n.type?((0,r.openBlock)(),(0,r.createBlock)(g,(0,r.mergeProps)({key:5,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t,"controls-position":"right"},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"select"===n.type?((0,r.openBlock)(),(0,r.createBlock)(y,(0,r.mergeProps)({key:6,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({default:(0,r.withCtx)((()=>[n.formSlot&&n.formSlot.default?(0,r.renderSlot)(e.$slots,n.formSlot.default,{key:0},void 0,!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[n.isGroup?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(m,{key:t,disabled:e.disabled,label:e.label},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(v,(0,r.mergeProps)(e,{key:t}),null,16)))),128))])),_:2},1032,["disabled","label"])))),128)):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(n.options,((e,t)=>((0,r.openBlock)(),(0,r.createBlock)(v,(0,r.mergeProps)(e,{key:t}),null,16)))),128))],64))])),_:2},[n.formSlot&&n.formSlot.prefix?{name:"prefix",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.prefix,{},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.empty?{name:"empty",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.empty,{},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"selectServer"===n.type?((0,r.openBlock)(),(0,r.createBlock)(b,(0,r.mergeProps)({key:7,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{request:e.request},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue","request"])):"cascader"===n.type?((0,r.openBlock)(),(0,r.createBlock)(w,(0,r.mergeProps)({key:8,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{class:"w"},(0,r.toHandlers)(n.formEvents),{onChange:t=>e.handleCascaderChange(t,n.key,n)}),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.default?{name:"default",fn:(0,r.withCtx)((({node:t,data:o})=>[(0,r.renderSlot)(e.$slots,n.formSlot.default,{data:o,node:t},void 0,!0)]))}:void 0,n.formSlot&&n.formSlot.empty?{name:"empty",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.empty,{},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue","onChange"])):"cascaderPanel"===n.type?((0,r.openBlock)(),(0,r.createBlock)(x,(0,r.mergeProps)({key:9,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.default?{name:"default",fn:(0,r.withCtx)((({node:t,data:o})=>[(0,r.renderSlot)(e.$slots,n.formSlot.default,{data:o,node:t},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"switch"===n.type?((0,r.openBlock)(),(0,r.createBlock)(C,(0,r.mergeProps)({key:10,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"active-value":1,"inactive-value":0},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"slider"===n.type?((0,r.openBlock)(),(0,r.createBlock)(E,(0,r.mergeProps)({key:11,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"timePicker"===n.type?((0,r.openBlock)(),(0,r.createBlock)(S,(0,r.mergeProps)({key:12,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"value-format":"HH:mm:ss"},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"timeSelect"===n.type?((0,r.openBlock)(),(0,r.createBlock)(k,(0,r.mergeProps)({key:13,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"datePicker"===n.type?((0,r.openBlock)(),(0,r.createBlock)(D,(0,r.mergeProps)({key:14,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.rangeSeparator?{name:"range-separator",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.rangeSeparator,{},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"datePickerRange"===n.type?((0,r.openBlock)(),(0,r.createBlock)(D,(0,r.mergeProps)({key:15,modelValue:e.datePickerRange,"onUpdate:modelValue":t[0]||(t[0]=t=>e.datePickerRange=t)},n.formAttrs,(0,r.toHandlers)(n.formEvents),{onChange:t=>e.datePickerChange(t,n)}),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.rangeSeparator?{name:"range-separator",fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,n.formSlot.rangeSeparator,{},void 0,!0)]))}:void 0]),1040,["modelValue","onChange"])):"uploadImg"===n.type?((0,r.openBlock)(),(0,r.createBlock)(A,(0,r.mergeProps)({key:16,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"fill-url":e.fillUrl,"response-key":e.responseKey,"upload-url":e.uploadImgUrl},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue","fill-url","response-key","upload-url"])):"tag"===n.type?((0,r.openBlock)(),(0,r.createBlock)(O,(0,r.mergeProps)({key:17,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"rate"===n.type?((0,r.openBlock)(),(0,r.createBlock)(_,(0,r.mergeProps)({key:18,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"baseRate"===n.type?((0,r.openBlock)(),(0,r.createBlock)(B,(0,r.mergeProps)({key:19,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"colorPicker"===n.type?((0,r.openBlock)(),(0,r.createBlock)(F,(0,r.mergeProps)({key:20,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"transfer"===n.type?((0,r.openBlock)(),(0,r.createBlock)(j,(0,r.mergeProps)({key:21,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),(0,r.createSlots)({_:2},[n.formSlot&&n.formSlot.default?{name:"default",fn:(0,r.withCtx)((({option:t})=>[(0,r.renderSlot)(e.$slots,n.formSlot.default,{option:t},void 0,!0)]))}:void 0]),1040,["modelValue","onUpdate:modelValue"])):"icon"===n.type?((0,r.openBlock)(),(0,r.createBlock)(P,(0,r.mergeProps)({key:22,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue"])):"richText"===n.type?((0,r.openBlock)(),(0,r.createBlock)(T,(0,r.mergeProps)({key:23,modelValue:e.appModel[n.key],"onUpdate:modelValue":t=>e.appModel[n.key]=t},n.formAttrs,{"upload-url":e.uploadRichTextUrl},(0,r.toHandlers)(n.formEvents)),null,16,["modelValue","onUpdate:modelValue","upload-url"])):"submit"===n.type?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:24},[n.submit?((0,r.openBlock)(),(0,r.createBlock)(N,(0,r.mergeProps)({key:0},n.submit.attrs,{loading:e.loading},(0,r.toHandlers)(n.submit.events),{onClick:e.formSubmit}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(n.submit.title),1)])),_:2},1040,["loading","onClick"])):(0,r.createCommentVNode)("",!0),n.reset?((0,r.openBlock)(),(0,r.createBlock)(N,(0,r.mergeProps)({key:1},n.reset.attrs,{loading:e.loading},(0,r.toHandlers)(n.reset.events),{onClick:e.formReset}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(n.reset.title),1)])),_:2},1040,["loading","onClick"])):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0)])),_:2},1040,["prop"])):(0,r.createCommentVNode)("",!0),"slot"===n.type?(0,r.renderSlot)(e.$slots,n.name,{key:1,model:e.appModel},void 0,!0):(0,r.createCommentVNode)("",!0)])),_:2},1040,["class"])))),128))])),_:3})])),_:3},16,["model"])):(0,r.createCommentVNode)("",!0)}n(6699);var i=n(7484),a=n.n(i);function l(e=[]){const t=[];for(const n of e)if(-1===t.indexOf(n)){t.push(n);for(let e=0;e<t.length;e++){if(t[e].length>n.length&&t[e].includes(n)){t.pop();break}if(t[e].length<n.length&&n.includes(t[e])){t.splice(e,1);break}}}return t}var u=n(2343),s=(0,r.defineComponent)({name:"JwtForm",components:{},props:{modelValue:{require:!0,type:[Object,Function],default:()=>{}},config:{require:!0,type:[Object,Function],default:()=>{}},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,require:!0,default:()=>{}},uploadImgUrl:{type:String,default:""},uploadRichTextUrl:{type:String,default:""},responseKey:{type:String,default:"relative_path"}},emits:["submit","reset","update:modelValue","addSuccess","editSuccess","get-detail-success"],setup(e,{emit:t}){const n=(0,r.reactive)({loading:!1,datePickerRange:[]}),o=(0,r.computed)((()=>{if(e.config){let t=u.F.copy(e.config)||{};return t?.formList?.length&&u.F.hasArray(t?.formList)&&(t.formList=t?.formList?.map((e=>(e.formEvents||(e.formEvents={}),"submit"===e.type&&(e.submit&&!e.submit.attrs&&(e.submit.attrs={}),e.submit&&!e.submit.events&&(e.submit.events={}),e.reset&&!e.reset.attrs&&(e.reset.attrs={}),e.reset&&!e.reset.events&&(e.reset.events={})),e)))),t}return{}})),i=(0,r.ref)(null),s=(0,r.computed)({get:()=>{if(e.modelValue){let t=f(e.modelValue);return t}return o.value.formList.forEach((e=>{void 0!==e.value&&(s[e.key]=e.value)})),s},set:e=>{t("update:modelValue",e)}}),c=(0,r.computed)((()=>{const e=[];return o.value.formList.forEach((t=>{e.push(t.key)})),e})),f=(e={})=>(o.value.formList.forEach((t=>{const{key:n,type:r,startKey:o,endKey:i,formAttrs:a}=t,l=a?.multiple||!1,s=a?.valueType||"";e[n]&&"inputNumber"===r?e[n]=+e[n]:l?u.F.isArray(e[n])||(e[n]="number"===s?e[n]?e[n]?.split(",")?.map((e=>+e)):[]:e[n]?e[n]?.split(","):[]):"datePickerRange"===r?g([e[o]||"",e[i]||""]):e[n]=""===e[n]||void 0===e[n]?t.value:e[n]})),e),d=async()=>{let e=!0;return await i.value.validate((t=>{e=t})),e},p=async()=>{const r=await d();if(r)if(o?.value?.api?.add||o?.value?.api?.update){let r={};o.value?.formEditParams&&u.F.hasObject(o.value?.formEditParams)&&Object.assign(r,o.value?.formEditParams||{}),c?.value?.length?c.value.forEach((e=>{e&&(r[e]=s.value[e])})):r=Object.assign({},s.value),o.value.formList.map((e=>{if(e?.formAttrs?.multiple)if(e?.formAttrs?.props?.checkStrictly){const t=[];r[e.key].map((e=>{t.push(e[e.length-1])}));const n=l(t);r[e.key]=u.F.isArray(n)?n.join(","):""}else r[e.key]=u.F.isArray(r[e.key])?r[e.key].join(","):r[e.key]})),n.loading=!0,s.value.id?(r.id=s.value.id,e.request({url:o.value.api.update,method:"post",data:r}).then((e=>{e.id&&(n.loading=!1,s.value.id=e.id),t("editSuccess",e)})).catch((()=>{n.loading=!1}))):e.request({url:o.value.api.add,method:"post",data:r}).then((e=>{n.loading=!1,t("addSuccess",e)})).catch((()=>{n.loading=!1}))}else t("submit",e.modelValue)},h=(e,t)=>{const{startKey:n,endKey:r}=t,o=t.formAttrs.format||"YYYY-MM-DD HH:mm:ss";t.formAttrs.type&&t.formAttrs.type.includes("range")&&(s.value[n]=e?a()(e[0]).format(o):"",s.value[r]=e?a()(e[1]).format(o):"")},g=e=>{const{startVal:t,endVal:r}=e;n.datePickerRange=[t,r]},v=()=>{i.value.resetFields(),t("reset",e.modelValue)},m=(e,t,n)=>{if(e&&e.length)if(n.formAttrs?.multiple||n?.formAttrs?.props?.multiple){let r=[];n?.formAttrs?.props?.checkStrictly?r=e:e.map((e=>{r.push(e[e.length-1])})),s.value[t]=r}else s.value[t]=e[e.length-1];else s.value[t]=""},y=()=>{o.value?.api?.detail&&o.value?.api?.detailParams&&o.value?.api?.detailParams[o.value?.api?.detailParamsKey||"id"]&&e.request({url:o.value.api.detail,method:"get",params:o.value.api.detailParams}).then((e=>{let n=f(e);s.value=n,t("get-detail-success",e)}))};return(0,r.onBeforeMount)((()=>{y()})),(0,r.onMounted)((()=>{})),{formRef:i,...(0,r.toRefs)(n),formConfig:o,appModel:s,appModelParams:c,formSubmit:p,formReset:v,formValidate:d,handleCascaderChange:m,getDetail:y,datePickerChange:h,setDatePickerRange:g,handleFormListData:f}}}),c=n(3744);const f=(0,c.Z)(s,[["render",o],["__scopeId","data-v-552a4e61"]]);var d=f},816:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});n(6699);var r=n(7203);const o={key:0,class:"table-header-actions"};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("vab-icon"),s=(0,r.resolveComponent)("el-button");return e.headerButtonActions.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.headerButtonActions,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(s,{key:n,disabled:(t.code.includes("delete")||t.code.includes("batch"))&&!e.selectionRow.length,loading:e.loading,type:t.code.includes("delete")?"danger":"primary",onClick:n=>e.handleHeaderAction(t)},{default:(0,r.withCtx)((()=>[t.icon&&!e.loading?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,icon:t.icon},null,8,["icon"])):(0,r.createCommentVNode)("",!0),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(t.show_title||t.title),1)])),_:2},1032,["disabled","loading","type","onClick"])))),128))])):(0,r.createCommentVNode)("",!0)}var a=(0,r.defineComponent)({name:"JwtHeaderButton",props:{loading:{type:Boolean,default:!1},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},selectionRow:{type:Array,default:()=>[]},actionList:{type:Array,default:()=>[]}},emits:["header-action"],setup(e,{emit:t}){let n=(0,r.computed)((()=>{const t=(e?.menusObj||{})[e?.currentPath];return t&&t.operations.length?t.operations.filter((t=>{let n=t.show_header;if(e.actionList&&e.actionList.length){const{code:r}=t;n=n&&e.actionList.includes(r)}return n})):[]}));const o=e=>{t("header-action",e)};return{headerButtonActions:n,handleHeaderAction:o}}}),l=n(3744);const u=(0,l.Z)(a,[["render",i]]);var s=u},4815:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(7203);function o(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("i",{class:(0,r.normalizeClass)(e.iconName),style:(0,r.normalizeStyle)({"font-size":e.size+"px"})},null,6)}var i=(0,r.defineComponent)({name:"JwtIcon",props:{icon:{type:String,default:"settings-3-line"},size:{type:[String,Number],default:16}},setup(e){const t=(0,r.computed)((()=>`ri-${e.icon}`));return{iconName:t}}}),a=n(3744);const l=(0,a.Z)(i,[["render",o]]);var u=l},3720:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(7203);const o=e=>((0,r.pushScopeId)("data-v-45bb6640"),e=e(),(0,r.popScopeId)(),e),i=o((()=>(0,r.createElementVNode)("span",{style:{padding:"0 5px"}},"图标选择器",-1))),a={class:"jwt-icon-select-wrapper"},l=(0,r.createTextVNode)("查询");function u(e,t,n,o,u,s){const c=(0,r.resolveComponent)("jwt-icon"),f=(0,r.resolveComponent)("el-button"),d=(0,r.resolveComponent)("el-input"),p=(0,r.resolveComponent)("el-col"),h=(0,r.resolveComponent)("el-row"),g=(0,r.resolveComponent)("el-card"),v=(0,r.resolveComponent)("el-pagination"),m=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createBlock)(m,{trigger:"click",width:300},{reference:(0,r.withCtx)((()=>[(0,r.createVNode)(f,null,{default:(0,r.withCtx)((()=>[(0,r.createVNode)(c,{icon:e.selectIcon},null,8,["icon"]),i,(0,r.createVNode)(c,{icon:"arrow-down-s-line"})])),_:1})])),default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(h,null,{default:(0,r.withCtx)((()=>[(0,r.createVNode)(p,{span:18},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(d,{modelValue:e.searchVal,"onUpdate:modelValue":t[0]||(t[0]=t=>e.searchVal=t),clearable:"",placeholder:"",onKeydown:(0,r.withKeys)(e.handleSearchIcon,["enter"])},null,8,["modelValue","onKeydown"])])),_:1}),(0,r.createVNode)(p,{offset:1,span:4},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(f,{type:"primary",onClick:e.handleSearchIcon},{default:(0,r.withCtx)((()=>[l])),_:1},8,["onClick"])])),_:1})])),_:1}),(0,r.createVNode)(h,{class:"icon-list",gutter:10},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.listData,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(p,{key:n,span:6},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(g,{"body-style":{padding:"5px",textAlign:"center"},shadow:"hover",onClick:n=>e.handleSelectIcon(t)},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(c,{icon:t,size:"30"},null,8,["icon"])])),_:2},1032,["onClick"])])),_:2},1024)))),128))])),_:1}),(0,r.createVNode)(h,{class:"pagination",justify:"center"},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(p,{span:18},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(v,{background:"","current-page":e.pagination.pageNo,layout:e.pagination.layout,"page-size":e.pagination.pageSize,total:e.pagination.total,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])),_:1})])),_:1})])])),_:1})}n(6699);var s=n(1980);const c=16;var f=(0,r.defineComponent)({name:"JwtIconSelect",props:{modelValue:{type:String,default:"settings-3-line"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=(0,r.reactive)({searchVal:"",listData:s.iconList.slice(0,c),allIconData:[],pagination:{pageNo:1,pageSize:c,total:s.iconList.length,layout:"total, prev, next"}}),o=(0,r.computed)({get:()=>e.modelValue||"settings-3-line",set:e=>{t("update:modelValue",e)}}),i=e=>{n.pagination.pageSize=e},a=e=>{n.pagination.pageNo=e,f()},l=e=>{o.value=e,t("change",e)},u=()=>{n.pagination.pageNo=1,f()},f=()=>{let e=[];e=n.searchVal?s.iconList.filter((e=>e.includes(n.searchVal))):s.iconList,n.pagination.total=e.length,n.listData=e.slice(16*(n.pagination.pageNo-1),16*n.pagination.pageNo)};return{...(0,r.toRefs)(n),selectIcon:o,handleSearchIcon:u,handleSelectIcon:l,handleSizeChange:i,handleCurrentChange:a}}}),d=n(3744);const p=(0,d.Z)(f,[["render",u],["__scopeId","data-v-45bb6640"]]);var h=p},3420:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(7203);const o={key:0,class:"base-image-mask"};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("el-image"),s=(0,r.resolveComponent)("jwt-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)({class:"base-image-wrapper"},e.attrs),[(0,r.createVNode)(u,(0,r.mergeProps)({fit:e.fit,"preview-src-list":[e.imgPath],"preview-teleported":"",src:e.imgPath},e.attrs),null,16,["fit","preview-src-list","src"]),e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createVNode)(s,{icon:e.icon,size:"36"},null,8,["icon"])])):(0,r.createCommentVNode)("",!0)],16)}var a=n(2343),l=(0,r.defineComponent)({name:"JwtImage",inheritAttrs:!1,props:{fit:{type:String,default:"cover"},src:{type:String,default:""},type:{type:String,default:""},fillUrl:{type:Function,default:null}},emits:["table-action"],setup(e){const t=(0,r.useAttrs)(),n=t=>e.fillUrl&&a.F.isFunction(e.fillUrl)?e.fillUrl(t):t,o=(0,r.computed)((()=>n(e.src))),i=(0,r.computed)((()=>{const t={search:"search-line",add:"add-circle-line",delete:"delete-bin-line"};return t[e.type]}));return{attrs:t,imgPath:o,icon:i}}}),u=n(3744);const s=(0,u.Z)(l,[["render",i],["__scopeId","data-v-1c3cfede"]]);var c=s},1656:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(7203);function o(e,t,n,o,i,a){const l=(0,r.resolveComponent)("el-input");return(0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)({modelValue:e.inputModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.inputModel=t),class:"input-change-style",style:{backgroundColor:`${e.newValDiffOldVal?e.changeBg:e.defaultBg}`,color:e.textColor}},e.attrs,{onBlur:e.handleBlur}),null,16,["modelValue","style","onBlur"])}var i=(0,r.defineComponent)({name:"JwtInput",components:{},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:null},defaultBg:{type:String,default:"red"},changeBg:{type:String,default:"blue"},textColor:{type:String,default:""}},emits:["update:modelValue","blur"],setup(e,{emit:t}){const n=(0,r.useAttrs)(),o=(0,r.reactive)({oldVal:e.modelValue}),i=(0,r.computed)({get:()=>e.modelValue||"",set:e=>{t("update:modelValue",e)}}),a=(0,r.computed)((()=>o.oldVal!==i.value)),l=()=>{o.oldVal!==i.value&&(o.oldVal=i.value,t("blur",i.value))};return(0,r.onMounted)((()=>{})),{...(0,r.toRefs)(o),attrs:n,inputModel:i,newValDiffOldVal:a,handleBlur:l}}}),a=n(3744);const l=(0,a.Z)(i,[["render",o],["__scopeId","data-v-72e5e110"]]);var u=l},9832:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(7203);const o={class:"base-rate-icon"};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("jwt-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.maxLenIcon,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(u,{key:n,class:"mr5 cp",icon:e.hoverIndex>n?e.icon:e.voidIcon,style:(0,r.normalizeStyle)({fontSize:e.size+"px",color:e.hoverIndex>n?e.color:e.voidColor}),onClick:(0,r.withModifiers)((t=>e.handleChange(n)),["stop"]),onDblclick:t=>e.handleDblclick(n),onMouseenter:t=>e.handleMouseenter(n),onMouseleave:e.handleMouseleave},null,8,["icon","style","onClick","onDblclick","onMouseenter","onMouseleave"])))),128))])}var a=(0,r.defineComponent)({name:"JwtRateIcon",props:{modelValue:{type:[Number,String],default:0},size:{type:[Number,String],default:18},disabled:{type:Boolean,default:!1},voidIcon:{type:String,default:"star-line"},icon:{type:String,default:"star-fill"},color:{type:String,default:"#f7ba2a"},voidColor:{type:String,default:"#c6d1de"},max:{type:[Number,String],default:5}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=(0,r.computed)((()=>Math.min(+e.max,10))),o=(0,r.reactive)({activeIndex:e.modelValue,hoverIndex:e.modelValue});(0,r.watchEffect)((()=>{o.activeIndex=e.modelValue,o.hoverIndex=e.modelValue}));const i=t=>{e.disabled||(o.hoverIndex=t+1)},a=()=>{e.disabled||(o.hoverIndex=o.activeIndex)},l=n=>{e.disabled||(o.activeIndex=n+1,o.hoverInde=n+1,t("update:modelValue",n+1),t("change",n+1))},u=()=>{e.disabled||(o.activeIndex=0,o.hoverInde=0,t("update:modelValue",0),t("change",0))};return{...(0,r.toRefs)(o),maxLenIcon:n,handleMouseenter:i,handleMouseleave:a,handleChange:l,handleDblclick:u}}}),l=n(3744);const u=(0,l.Z)(a,[["render",i],["__scopeId","data-v-7950dc53"]]);var s=u},5931:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(7203);const o={key:0,class:"fxm ptb10"},i=["src"],a={class:"ml10"};function l(e,t,n,l,u,s){const c=(0,r.resolveComponent)("el-option"),f=(0,r.resolveComponent)("el-select");return(0,r.openBlock)(),(0,r.createBlock)(f,{modelValue:e.selectModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.selectModel=t),clearable:"",filterable:"",placeholder:"",remote:"","remote-method":e.remoteMethod,onChange:e.handleSelectChange},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.listData,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(c,{key:n,class:(0,r.normalizeClass)({"avatar-logo":e.avatarKey}),label:t[e.labelKey],value:t[e.valueKey]},{default:(0,r.withCtx)((()=>[e.avatarKey?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.createElementVNode)("img",{class:"w40 r100px",src:t[e.avatarKey]},null,8,i),(0,r.createElementVNode)("span",a,(0,r.toDisplayString)(t[e.labelKey]),1)])):(0,r.createCommentVNode)("",!0)])),_:2},1032,["class","label","value"])))),128))])),_:1},8,["modelValue","remote-method","onChange"])}var u=(0,r.defineComponent)({name:"JwtSelectServer",components:{},props:{listApi:{type:String,default:""},searchKey:{type:String,default:"search"},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},avatarKey:{type:String,default:""},exParams:{type:Object,default:()=>{}},modelValue:{type:[String,Number,Array],default:""},searchValueKey:{type:Boolean,default:!1},request:{type:Function,require:!0,default:()=>{}}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=(0,r.reactive)({content:"",listData:[],searchVal:"",timer:null}),o=(0,r.computed)({get:()=>e.modelValue||"",set:e=>{t("update:modelValue",e)}}),i=(t=!1)=>{const{listApi:r,searchKey:i,valueKey:a,searchValueKey:l}=e;if(!r)return;const u={sort:"id",order:"desc",per_page:100,...e.exParams};u[i]=n.searchVal,t&&l&&(u[a]=o.value||""),e.request({url:r,method:"get",params:u}).then((e=>{n.listData=e.data}))},a=r=>{if(t("change",r),r){const{valueKey:o}=e,i=n.listData.find((e=>e[o]===r));t("select",i)}},l=e=>{n.searchVal=e,e?(clearTimeout(n.timer),n.timer=setTimeout((()=>{i()}),500)):i()};return(0,r.onMounted)((()=>{setTimeout((()=>{i(!0)}),50)})),{selectModel:o,...(0,r.toRefs)(n),handleSelectChange:a,remoteMethod:l,getDataList:i}}}),s=n(3744);const c=(0,s.Z)(u,[["render",l]]);var f=c},885:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Oa}});var r=n(7203);const o={class:"app-table-wrapper"},i={class:"table-header-wrapper fx"},a={class:"fx pr10"},l=["onDblclick"],u={class:"image-slot wh fxmc"},s={class:"fxr"},c={class:"dialog-footer"};function f(e,t,n,f,d,p){const h=(0,r.resolveComponent)("jwt-form"),g=(0,r.resolveComponent)("jwt-header-button"),v=(0,r.resolveComponent)("jwt-table-button"),m=(0,r.resolveComponent)("el-input"),y=(0,r.resolveComponent)("el-input-number"),b=(0,r.resolveComponent)("jwt-upload-image"),w=(0,r.resolveComponent)("el-switch"),x=(0,r.resolveComponent)("jwt-icon"),C=(0,r.resolveComponent)("el-image"),E=(0,r.resolveComponent)("el-table-column"),S=(0,r.resolveComponent)("el-table"),k=(0,r.resolveComponent)("el-pagination"),D=(0,r.resolveComponent)("el-button"),A=(0,r.resolveComponent)("el-dialog"),O=(0,r.resolveDirective)("loading");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"search-before",{},void 0,!0),(0,r.createElementVNode)("div",i,[e.appConfig?.tableSearch?.formList?.length?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,modelValue:e.tableSearchModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.tableSearchModel=t),class:"app-table-search",config:e.appConfig.tableSearch,"fill-url":e.fillUrl,request:e.request,"upload-img-url":e.uploadUrl,"upload-rich-text-url":e.uploadRichTextUrl,responseKey:e.responseKey,onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},null,8,["modelValue","config","fill-url","request","upload-img-url","upload-rich-text-url","responseKey","onReset","onSubmit"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(e.$slots,"header-button-before",{},void 0,!0),e.appConfig.headerActionsShow?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,"action-list":e.appConfig?.headerActions?.list,"current-path":e.currentPagePath,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"selection-row":e.selectionRow,onHeaderAction:e.handleHeaderAction},null,8,["action-list","current-path","loading","menus-obj","selection-row","onHeaderAction"])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"header-button-after",{},void 0,!0)]),(0,r.renderSlot)(e.$slots,"table-before",{},void 0,!0),(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(S,(0,r.mergeProps)(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"加载数据中...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.appConfig.tableColumn,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(E,{key:n,align:t.align||"center",fixed:t.fixed,label:t.label,"min-width":t.minWidth?t.minWidth:null,prop:t.prop,sortable:t.sortable,type:t.type,width:t.width?t.width:null},(0,r.createSlots)({_:2},[t.type?void 0:{name:"default",fn:(0,r.withCtx)((({row:n,$index:o})=>[t.action?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(e.$slots,"action-before",{scope:n},void 0,!0),(0,r.createVNode)(v,{config:t,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuthObj,row:n,onTableAction:r=>e.handleTableAction(r,n,t)},null,8,["config","current-path","menus-obj","row","onTableAction"]),(0,r.renderSlot)(e.$slots,"action-after",{scope:n},void 0,!0)],64)):t.dateTimeFormat?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.filterVal(n[t.prop],t.dateTimeFormat)),1)],64)):t.editType?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},["input"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,type:"text",onKeydown:(0,r.withKeys)((r=>e.handleEditRowProp(n,t)),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):"inputNumber"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(y,{key:1,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"controls-position":"right",min:0,onBlur:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):"uploadImg"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(b,{key:2,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"fill-url":e.fillUrl,"upload-url":e.uploadUrl,onOnChange:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","fill-url","upload-url","onOnChange"])):"switch"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(w,{key:3,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"active-value":1,"inactive-value":0,onChange:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])):(0,r.createCommentVNode)("",!0)],64)):t.editInput?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.withDirectives)((0,r.createElementVNode)("div",{onDblclick:r=>e.handleEditRow(n,t)},(0,r.toDisplayString)(e.filterVal(n[t.prop])),41,l),[[r.vShow,!n[`isEdit${t.prop}`]]]),(0,r.withDirectives)((0,r.createVNode)(m,{modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,type:"text",onBlur:r=>e.handleEditRowProp(n,t),onKeyup:(0,r.withKeys)((r=>e.handleEditRowProp(n,t)),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[r.vShow,n[`isEdit${t.prop}`]]])],64)):t.isImg?((0,r.openBlock)(),(0,r.createBlock)(C,{key:4,"preview-src-list":[e.handleFillUrl(n[t.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(n[t.prop]),teleported:""},{error:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(x,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])])),_:2},1032,["preview-src-list","src"])):(0,r.renderSlot)(e.$slots,t.prop,{key:5,index:o,scope:n},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.filterVal(n[t.prop])),1)]),!0)]))}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"])))),128))])),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[O,e.ajaxLoading]]),(0,r.createElementVNode)("div",s,[e.appConfig.showPagination?((0,r.openBlock)(),(0,r.createBlock)(k,(0,r.mergeProps)({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):(0,r.createCommentVNode)("",!0)])]),(0,r.createVNode)(A,(0,r.mergeProps)({modelValue:e.editBoxInfo.visible,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editBoxInfo.visible=t)},e.appConfig[e.editBoxInfo.boxName].dialog,{center:"","custom-class":"jwt-dialog-wrapper","destroy-on-close":"",title:e.editBoxInfo.title,"append-to-body":""}),(0,r.createSlots)({default:(0,r.withCtx)((()=>[e.editBoxInfo.visible?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,ref:"editBoxRef",modelValue:e.editBoxInfo.model,"onUpdate:modelValue":t[1]||(t[1]=t=>e.editBoxInfo.model=t),config:e.appConfig[e.editBoxInfo.boxName].form,"fill-url":e.fillUrl,request:e.request,"upload-img-url":e.uploadUrl,"upload-rich-text-url":e.uploadRichTextUrl,responseKey:e.responseKey,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess},(0,r.createSlots)({_:2},[(0,r.renderList)(e.appConfig[e.editBoxInfo.boxName].form.formList,(t=>({name:t.name,fn:(0,r.withCtx)((()=>[(0,r.renderSlot)(e.$slots,t.name,{model:e.editBoxInfo.model},void 0,!0)]))})))]),1032,["modelValue","config","fill-url","request","upload-img-url","upload-rich-text-url","responseKey","onAddSuccess","onEditSuccess"])):(0,r.createCommentVNode)("",!0)])),_:2},[e.appConfig[e.editBoxInfo.boxName]?.footer?{name:"footer",fn:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",c,[(0,r.renderSlot)(e.$slots,"dialog-footer-before",{model:e.editBoxInfo.model},void 0,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.appConfig[e.editBoxInfo.boxName].footer,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(D,(0,r.mergeProps)(t.attrs,{key:n,loading:e.submitLoading,onClick:n=>e.handleBox(t.action)}),{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(t.title),1)])),_:2},1040,["loading","onClick"])))),128)),(0,r.renderSlot)(e.$slots,"dialog-footer-after",{model:e.editBoxInfo.model},void 0,!0)])]))}:void 0]),1040,["modelValue","title"])],64)}var d=n(7475),p=n(4181),h=n(5781),g=n(5027),v=n(5711),m=n(9809);const y=["default","primary","success","warning","info","danger","text",""],b=["button","submit","reset"],w=(0,g.o8)({size:v.Pp,disabled:Boolean,type:{type:String,values:y,default:""},icon:{type:m.AA,default:""},nativeType:{type:String,values:b,default:"button"},loading:Boolean,loadingIcon:{type:m.AA,default:()=>h.gbz},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),x={click:e=>e instanceof MouseEvent};function C(e,t){S(e)&&(e="100%");var n=k(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function E(e){return Math.min(1,Math.max(0,e))}function S(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function k(e){return"string"===typeof e&&-1!==e.indexOf("%")}function D(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e){return e<=1?"".concat(100*Number(e),"%"):e}function O(e){return 1===e.length?"0"+e:String(e)}function _(e,t,n){return{r:255*C(e,255),g:255*C(t,255),b:255*C(n,255)}}function B(e,t,n){e=C(e,255),t=C(t,255),n=C(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var u=r-o;switch(a=l>.5?u/(2-r-o):u/(r+o),r){case e:i=(t-n)/u+(t<n?6:0);break;case t:i=(n-e)/u+2;break;case n:i=(e-t)/u+4;break;default:break}i/=6}return{h:i,s:a,l:l}}function F(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function j(e,t,n){var r,o,i;if(e=C(e,360),t=C(t,100),n=C(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=F(l,a,e+1/3),o=F(l,a,e),i=F(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}function P(e,t,n){e=C(e,255),t=C(t,255),n=C(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,u=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break;default:break}i/=6}return{h:i,s:u,v:a}}function T(e,t,n){e=6*C(e,360),t=C(t,100),n=C(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),u=r%6,s=[n,a,i,i,l,n][u],c=[l,n,n,a,i,i][u],f=[i,i,l,n,n,a][u];return{r:255*s,g:255*c,b:255*f}}function N(e,t,n,r){var o=[O(Math.round(e).toString(16)),O(Math.round(t).toString(16)),O(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function I(e,t,n,r,o){var i=[O(Math.round(e).toString(16)),O(Math.round(t).toString(16)),O(Math.round(n).toString(16)),O(L(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function L(e){return Math.round(255*parseFloat(e)).toString(16)}function M(e){return R(e)/255}function R(e){return parseInt(e,16)}function z(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}var V={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function $(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"===typeof e&&(e=Y(e)),"object"===typeof e&&(J(e.r)&&J(e.g)&&J(e.b)?(t=_(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):J(e.h)&&J(e.s)&&J(e.v)?(r=A(e.s),o=A(e.v),t=T(e.h,r,o),a=!0,l="hsv"):J(e.h)&&J(e.s)&&J(e.l)&&(r=A(e.s),i=A(e.l),t=j(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=D(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var U="[-\\+]?\\d+%?",H="[-\\+]?\\d*\\.\\d+%?",W="(?:".concat(H,")|(?:").concat(U,")"),q="[\\s|\\(]+(".concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")\\s*\\)?"),K="[\\s|\\(]+(".concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")[,|\\s]+(").concat(W,")\\s*\\)?"),G={CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+K),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+K),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+K),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Y(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(V[e])e=V[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=G.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=G.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=G.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=G.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=G.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=G.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=G.hex8.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),a:M(n[4]),format:t?"name":"hex8"}:(n=G.hex6.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),format:t?"name":"hex"}:(n=G.hex4.exec(e),n?{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),a:M(n[4]+n[4]),format:t?"name":"hex8"}:(n=G.hex3.exec(e),!!n&&{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),format:t?"name":"hex"})))))))))}function J(e){return Boolean(G.CSS_UNIT.exec(String(e)))}var Z=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=z(t)),this.originalInput=t;var o=$(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),o=r.r/255,i=r.g/255,a=r.b/255;return e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=D(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=P(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=P(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=B(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=B(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),N(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),I(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*C(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*C(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+N(this.r,this.g,this.b,!1),t=0,n=Object.entries(V);t<n.length;t++){var r=n[t],o=r[0],i=r[1];if(e===i)return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0,o=!t&&r&&(e.startsWith("hex")||"name"===e);return o?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=E(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=E(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=E(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=E(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;while(t--)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var X=n(9143);function Q(e,t=20){return e.mix("#141414",t).toString()}function ee(e){const t=(0,v.B4)(),n=(0,X.s)("button");return(0,r.computed)((()=>{let r={};const o=e.color;if(o){const i=new Z(o),a=e.dark?i.tint(20).toString():Q(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Q(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?Q(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Q(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Q(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Q(i,80):i.tint(80).toString());else{const l=e.dark?Q(i,30):i.tint(30).toString(),u=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),t.value){const t=e.dark?Q(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}var te=n(1446),ne=n(4721);const re=({from:e,replacement:t,scope:n,version:o,ref:i,type:a="API"},l)=>{(0,r.watch)((()=>(0,r.unref)(l)),(r=>{r&&(0,ne.N)(n,`[${a}] ${e} is about to be deprecated in version ${o}, please use ${t} instead.\nFor more detail, please visit: ${i}\n`)}),{immediate:!0})},oe=Symbol("buttonGroupContextKey");var ie=n(7824);const ae={prefix:Math.floor(1e4*Math.random()),current:0},le=Symbol("elIdInjection"),ue=e=>{const t=(0,r.inject)(le,ae);d.C5||t!==ae||(0,ne.N)("IdInjection","Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");const n=(0,r.computed)((()=>(0,r.unref)(e)||`el-id-${t.prefix}-${t.current++}`));return n};var se=n(7815);const ce=()=>{const e=(0,r.inject)(se.H,void 0),t=(0,r.inject)(se.K,void 0);return{form:e,formItem:t}},fe=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=(0,r.ref)(!1)),o||(o=(0,r.ref)(!1));const i=(0,r.ref)();let a;const l=(0,r.computed)((()=>{var n;return!!(!e.label&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return(0,r.onMounted)((()=>{a=(0,r.watch)([(0,r.toRef)(e,"id"),n],(([e,n])=>{const r=null!=e?e:n?void 0:ue().value;r!==i.value&&((null==t?void 0:t.removeInputId)&&(i.value&&t.removeInputId(i.value),(null==o?void 0:o.value)||n||!r||t.addInputId(r)),i.value=r)}),{immediate:!0})})),(0,r.onUnmounted)((()=>{a&&a(),(null==t?void 0:t.removeInputId)&&i.value&&t.removeInputId(i.value)})),{isLabeledByFormItem:l,inputId:i}},de=["aria-disabled","disabled","autofocus","type"],pe={name:"ElButton"},he=(0,r.defineComponent)({...pe,props:w,emits:x,setup(e,{expose:t,emit:n}){const o=e,i=(0,r.useSlots)();re({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},(0,r.computed)((()=>"text"===o.type)));const a=(0,r.inject)(oe,void 0),l=(0,ie.W)("button"),u=(0,X.s)("button"),{form:s}=ce(),c=(0,v.tH)((0,r.computed)((()=>null==a?void 0:a.size))),f=(0,v.B4)(),d=(0,r.ref)(),h=(0,r.computed)((()=>o.type||(null==a?void 0:a.type)||"")),g=(0,r.computed)((()=>{var e,t,n;return null!=(n=null!=(t=o.autoInsertSpace)?t:null==(e=l.value)?void 0:e.autoInsertSpace)&&n})),m=(0,r.computed)((()=>{var e;const t=null==(e=i.default)?void 0:e.call(i);if(g.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===r.Text){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),y=ee(o),b=e=>{"reset"===o.nativeType&&(null==s||s.resetFields()),n("click",e)};return t({ref:d,size:c,type:h,disabled:f,shouldAddSpace:m}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{ref_key:"_ref",ref:d,class:(0,r.normalizeClass)([(0,r.unref)(u).b(),(0,r.unref)(u).m((0,r.unref)(h)),(0,r.unref)(u).m((0,r.unref)(c)),(0,r.unref)(u).is("disabled",(0,r.unref)(f)),(0,r.unref)(u).is("loading",e.loading),(0,r.unref)(u).is("plain",e.plain),(0,r.unref)(u).is("round",e.round),(0,r.unref)(u).is("circle",e.circle),(0,r.unref)(u).is("text",e.text),(0,r.unref)(u).is("link",e.link),(0,r.unref)(u).is("has-bg",e.bg)]),"aria-disabled":(0,r.unref)(f)||e.loading,disabled:(0,r.unref)(f)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:(0,r.normalizeStyle)((0,r.unref)(y)),onClick:b},[e.loading?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.$slots.loading?(0,r.renderSlot)(e.$slots,"loading",{key:0}):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:1,class:(0,r.normalizeClass)((0,r.unref)(u).is("loading"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:1},{default:(0,r.withCtx)((()=>[e.icon?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.icon),{key:0})):(0,r.renderSlot)(e.$slots,"icon",{key:1})])),_:3})):(0,r.createCommentVNode)("v-if",!0),e.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:2,class:(0,r.normalizeClass)({[(0,r.unref)(u).em("text","expand")]:(0,r.unref)(m)})},[(0,r.renderSlot)(e.$slots,"default")],2)):(0,r.createCommentVNode)("v-if",!0)],14,de))}});var ge=(0,te.Z)(he,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ve={size:w.size,type:w.type},me={name:"ElButtonGroup"},ye=(0,r.defineComponent)({...me,props:ve,setup(e){const t=e;(0,r.provide)(oe,(0,r.reactive)({size:(0,r.toRef)(t,"size"),type:(0,r.toRef)(t,"type")}));const n=(0,X.s)("button");return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(`${(0,r.unref)(n).b("group")}`)},[(0,r.renderSlot)(e.$slots,"default")],2))}});var be=(0,te.Z)(ye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]),we=n(2123);const xe=(0,we.nz)(ge,{ButtonGroup:be});(0,we.dp)(be);var Ce=n(6309);function Ee(e){return null==e}var Se=Ee;let ke;const De="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n",Ae=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Oe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width")),i=Ae.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";");return{contextStyle:i,paddingSize:r,borderSize:o,boxSizing:n}}function _e(e,t=1,n){var r;ke||(ke=document.createElement("textarea"),document.body.appendChild(ke));const{paddingSize:o,borderSize:i,boxSizing:a,contextStyle:l}=Oe(e);ke.setAttribute("style",`${l};${De}`),ke.value=e.value||e.placeholder||"";let u=ke.scrollHeight;const s={};"border-box"===a?u+=i:"content-box"===a&&(u-=o),ke.value="";const c=ke.scrollHeight-o;if((0,d.hj)(t)){let e=c*t;"border-box"===a&&(e=e+o+i),u=Math.max(e,u),s.minHeight=`${e}px`}if((0,d.hj)(n)){let e=c*n;"border-box"===a&&(e=e+o+i),u=Math.min(e,u)}return s.height=`${u}px`,null==(r=ke.parentNode)||r.removeChild(ke),ke=void 0,s}var Be=n(3577),Fe=n(5450);const je="update:modelValue",Pe=(0,g.o8)({id:{type:String,default:void 0},size:v.Pp,disabled:Boolean,modelValue:{type:(0,g.Cq)([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:(0,g.Cq)([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:m.AA,default:""},prefixIcon:{type:m.AA,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:(0,g.Cq)([Object,Array,String]),default:()=>(0,Fe.N)({})}}),Te={[je]:e=>(0,Be.HD)(e),input:e=>(0,Be.HD)(e),change:e=>(0,Be.HD)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};var Ne=n(5937);const Ie=["class","style"],Le=/^on[A-Z]/,Me=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=(0,r.computed)((()=>((null==n?void 0:n.value)||[]).concat(Ie))),i=(0,r.getCurrentInstance)();return i?(0,r.computed)((()=>{var e;return(0,Ne.Z)(Object.entries(null==(e=i.proxy)?void 0:e.$attrs).filter((([e])=>!o.value.includes(e)&&!(t&&Le.test(e)))))})):((0,ne.N)("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),(0,r.computed)((()=>({}))))};function Re(e){const t=(0,r.ref)();function n(){if(void 0==e.value)return;const{selectionStart:n,selectionEnd:r,value:o}=e.value;if(null==n||null==r)return;const i=o.slice(0,Math.max(0,n)),a=o.slice(Math.max(0,r));t.value={selectionStart:n,selectionEnd:r,value:o,beforeTxt:i,afterTxt:a}}function o(){if(void 0==e.value||void 0==t.value)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:i}=t.value;if(void 0==r||void 0==o||void 0==i)return;let a=n.length;if(n.endsWith(o))a=n.length-o.length;else if(n.startsWith(r))a=r.length;else{const e=r[i-1],t=n.indexOf(e,i-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}return[n,o]}const ze=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Ve=["role"],$e=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],Ue=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],He={name:"ElInput",inheritAttrs:!1},We=(0,r.defineComponent)({...He,props:Pe,emits:Te,setup(e,{expose:t,emit:n}){const o=e,i={suffix:"append",prefix:"prepend"},a=(0,r.getCurrentInstance)(),l=(0,r.useAttrs)(),u=(0,r.useSlots)(),s=(0,r.computed)((()=>{const e={};return"combobox"===o.containerRole&&(e["aria-haspopup"]=l["aria-haspopup"],e["aria-owns"]=l["aria-owns"],e["aria-expanded"]=l["aria-expanded"]),e})),c=Me({excludeKeys:(0,r.computed)((()=>Object.keys(s.value)))}),{form:f,formItem:g}=ce(),{inputId:y}=fe(o,{formItemContext:g}),b=(0,v.tH)(),w=(0,v.B4)(),x=(0,X.s)("input"),C=(0,X.s)("textarea"),E=(0,r.shallowRef)(),S=(0,r.shallowRef)(),k=(0,r.ref)(!1),D=(0,r.ref)(!1),A=(0,r.ref)(!1),O=(0,r.ref)(!1),_=(0,r.ref)(),B=(0,r.shallowRef)(o.inputStyle),F=(0,r.computed)((()=>E.value||S.value)),j=(0,r.computed)((()=>{var e;return null!=(e=null==f?void 0:f.statusIcon)&&e})),P=(0,r.computed)((()=>(null==g?void 0:g.validateState)||"")),T=(0,r.computed)((()=>P.value&&m.rU[P.value])),N=(0,r.computed)((()=>O.value?h.G7x:h.caK)),I=(0,r.computed)((()=>[l.style,o.inputStyle])),L=(0,r.computed)((()=>[o.inputStyle,B.value,{resize:o.resize}])),M=(0,r.computed)((()=>Se(o.modelValue)?"":String(o.modelValue))),R=(0,r.computed)((()=>o.clearable&&!w.value&&!o.readonly&&!!M.value&&(k.value||D.value))),z=(0,r.computed)((()=>o.showPassword&&!w.value&&!o.readonly&&!!M.value&&(!!M.value||k.value))),V=(0,r.computed)((()=>o.showWordLimit&&!!c.value.maxlength&&("text"===o.type||"textarea"===o.type)&&!w.value&&!o.readonly&&!o.showPassword)),$=(0,r.computed)((()=>Array.from(M.value).length)),U=(0,r.computed)((()=>!!V.value&&$.value>Number(c.value.maxlength))),H=(0,r.computed)((()=>!!u.suffix||!!o.suffixIcon||R.value||o.showPassword||V.value||!!P.value&&j.value)),[W,q]=Re(E);(0,Ce.yU7)(S,(e=>{if(!V.value||"both"!==o.resize)return;const t=e[0],{width:n}=t.contentRect;_.value={right:`calc(100% - ${n+15+6}px)`}}));const K=()=>{const{type:e,autosize:t}=o;if(d.C5&&"textarea"===e)if(t){const e=(0,Be.Kn)(t)?t.minRows:void 0,n=(0,Be.Kn)(t)?t.maxRows:void 0;B.value={..._e(S.value,e,n)}}else B.value={minHeight:_e(S.value).minHeight}},G=()=>{const e=F.value;e&&e.value!==M.value&&(e.value=M.value)},Y=e=>{const{el:t}=a.vnode;if(!t)return;const n=Array.from(t.querySelectorAll(`.${x.e(e)}`)),r=n.find((e=>e.parentNode===t));if(!r)return;const o=i[e];u[o]?r.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${x.be("group",o)}`).offsetWidth}px)`:r.removeAttribute("style")},J=()=>{Y("prefix"),Y("suffix")},Z=async e=>{W();let{value:t}=e.target;o.formatter&&(t=o.parser?o.parser(t):t,t=o.formatter(t)),A.value||t!==M.value&&(n(je,t),n("input",t),await(0,r.nextTick)(),G(),q())},Q=e=>{n("change",e.target.value)},ee=e=>{n("compositionstart",e),A.value=!0},te=e=>{var t;n("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";A.value=!ze(o)},re=e=>{n("compositionend",e),A.value&&(A.value=!1,Z(e))},oe=()=>{O.value=!O.value,ie()},ie=async()=>{var e;await(0,r.nextTick)(),null==(e=F.value)||e.focus()},ae=()=>{var e;return null==(e=F.value)?void 0:e.blur()},le=e=>{k.value=!0,n("focus",e)},ue=e=>{var t;k.value=!1,n("blur",e),o.validateEvent&&(null==(t=null==g?void 0:g.validate)||t.call(g,"blur").catch((e=>(0,ne.N)(e))))},se=e=>{D.value=!1,n("mouseleave",e)},de=e=>{D.value=!0,n("mouseenter",e)},pe=e=>{n("keydown",e)},he=()=>{var e;null==(e=F.value)||e.select()},ge=()=>{n(je,""),n("change",""),n("clear"),n("input","")};return(0,r.watch)((()=>o.modelValue),(()=>{var e;(0,r.nextTick)((()=>K())),o.validateEvent&&(null==(e=null==g?void 0:g.validate)||e.call(g,"change").catch((e=>(0,ne.N)(e))))})),(0,r.watch)(M,(()=>G())),(0,r.watch)((()=>o.type),(async()=>{await(0,r.nextTick)(),G(),K(),J()})),(0,r.onMounted)((async()=>{!o.formatter&&o.parser&&(0,ne.N)("ElInput","If you set the parser, you also need to set the formatter."),G(),J(),await(0,r.nextTick)(),K()})),(0,r.onUpdated)((async()=>{await(0,r.nextTick)(),J()})),t({input:E,textarea:S,ref:F,textareaStyle:L,autosize:(0,r.toRef)(o,"autosize"),focus:ie,blur:ae,select:he,clear:ge,resizeTextarea:K}),(e,t)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",(0,r.mergeProps)((0,r.unref)(s),{class:["textarea"===e.type?(0,r.unref)(C).b():(0,r.unref)(x).b(),(0,r.unref)(x).m((0,r.unref)(b)),(0,r.unref)(x).is("disabled",(0,r.unref)(w)),(0,r.unref)(x).is("exceed",(0,r.unref)(U)),{[(0,r.unref)(x).b("group")]:e.$slots.prepend||e.$slots.append,[(0,r.unref)(x).bm("group","append")]:e.$slots.append,[(0,r.unref)(x).bm("group","prepend")]:e.$slots.prepend,[(0,r.unref)(x).m("prefix")]:e.$slots.prefix||e.prefixIcon,[(0,r.unref)(x).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[(0,r.unref)(x).bm("suffix","password-clear")]:(0,r.unref)(R)&&(0,r.unref)(z)},e.$attrs.class],style:(0,r.unref)(I),role:e.containerRole,onMouseenter:de,onMouseleave:se}),[(0,r.createCommentVNode)(" input "),"textarea"!==e.type?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createCommentVNode)(" prepend slot "),e.$slots.prepend?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)((0,r.unref)(x).be("group","prepend"))},[(0,r.renderSlot)(e.$slots,"prepend")],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([(0,r.unref)(x).e("wrapper"),(0,r.unref)(x).is("focus",k.value)])},[(0,r.createCommentVNode)(" prefix slot "),e.$slots.prefix||e.prefixIcon?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)((0,r.unref)(x).e("prefix"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(x).e("prefix-inner"))},[(0,r.renderSlot)(e.$slots,"prefix"),e.prefixIcon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:0,class:(0,r.normalizeClass)((0,r.unref)(x).e("icon"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.prefixIcon)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],2)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("input",(0,r.mergeProps)({id:(0,r.unref)(y),ref_key:"input",ref:E,class:(0,r.unref)(x).e("inner")},(0,r.unref)(c),{type:e.showPassword?O.value?"text":"password":e.type,disabled:(0,r.unref)(w),formatter:e.formatter,parser:e.parser,readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,onCompositionstart:ee,onCompositionupdate:te,onCompositionend:re,onInput:Z,onFocus:le,onBlur:ue,onChange:Q,onKeydown:pe}),null,16,$e),(0,r.createCommentVNode)(" suffix slot "),(0,r.unref)(H)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,class:(0,r.normalizeClass)((0,r.unref)(x).e("suffix"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(x).e("suffix-inner"))},[(0,r.unref)(R)&&(0,r.unref)(z)&&(0,r.unref)(V)?(0,r.createCommentVNode)("v-if",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(e.$slots,"suffix"),e.suffixIcon?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:0,class:(0,r.normalizeClass)((0,r.unref)(x).e("icon"))},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.suffixIcon)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],64)),(0,r.unref)(R)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:1,class:(0,r.normalizeClass)([(0,r.unref)(x).e("icon"),(0,r.unref)(x).e("clear")]),onMousedown:(0,r.withModifiers)((0,r.unref)(Be.dG),["prevent"]),onClick:ge},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(h.K41))])),_:1},8,["class","onMousedown"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(z)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:2,class:(0,r.normalizeClass)([(0,r.unref)(x).e("icon"),(0,r.unref)(x).e("password")]),onClick:oe},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(N))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(V)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:3,class:(0,r.normalizeClass)((0,r.unref)(x).e("count"))},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)((0,r.unref)(x).e("count-inner"))},(0,r.toDisplayString)((0,r.unref)($))+" / "+(0,r.toDisplayString)((0,r.unref)(c).maxlength),3)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(P)&&(0,r.unref)(T)&&(0,r.unref)(j)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(p.gn),{key:4,class:(0,r.normalizeClass)([(0,r.unref)(x).e("icon"),(0,r.unref)(x).e("validateIcon"),(0,r.unref)(x).is("loading","validating"===(0,r.unref)(P))])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(T))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0)],2)],2)):(0,r.createCommentVNode)("v-if",!0)],2),(0,r.createCommentVNode)(" append slot "),e.$slots.append?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)((0,r.unref)(x).be("group","append"))},[(0,r.renderSlot)(e.$slots,"append")],2)):(0,r.createCommentVNode)("v-if",!0)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createCommentVNode)(" textarea "),(0,r.createElementVNode)("textarea",(0,r.mergeProps)({id:(0,r.unref)(y),ref_key:"textarea",ref:S,class:(0,r.unref)(C).e("inner")},(0,r.unref)(c),{tabindex:e.tabindex,disabled:(0,r.unref)(w),readonly:e.readonly,autocomplete:e.autocomplete,style:(0,r.unref)(L),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:ee,onCompositionupdate:te,onCompositionend:re,onInput:Z,onFocus:le,onBlur:ue,onChange:Q,onKeydown:pe}),null,16,Ue),(0,r.unref)(V)?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,style:(0,r.normalizeStyle)(_.value),class:(0,r.normalizeClass)((0,r.unref)(x).e("count"))},(0,r.toDisplayString)((0,r.unref)($))+" / "+(0,r.toDisplayString)((0,r.unref)(c).maxlength),7)):(0,r.createCommentVNode)("v-if",!0)],64))],16,Ve)),[[r.vShow,"hidden"!==e.type]])}});var qe=(0,te.Z)(We,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ke=(0,we.nz)(qe),Ge=e=>{if(!e)return{onClick:Be.dG,onMousedown:Be.dG,onMouseup:Be.dG};let t=!1,n=!1;const r=r=>{t&&n&&e(r),t=n=!1},o=e=>{t=e.target===e.currentTarget},i=e=>{n=e.target===e.currentTarget};return{onClick:r,onMousedown:o,onMouseup:i}};var Ye=(e=>(e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e))(Ye||{});const Je=(0,g.o8)({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:(0,g.Cq)([String,Array,Object])},zIndex:{type:(0,g.Cq)([String,Number])}}),Ze={click:e=>e instanceof MouseEvent};var Xe=(0,r.defineComponent)({name:"ElOverlay",props:Je,emits:Ze,setup(e,{slots:t,emit:n}){const o=(0,X.s)("overlay"),i=e=>{n("click",e)},{onClick:a,onMousedown:l,onMouseup:u}=Ge(e.customMaskEvent?void 0:i);return()=>e.mask?(0,r.createVNode)("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:l,onMouseup:u},[(0,r.renderSlot)(t,"default")],Ye.STYLE|Ye.CLASS|Ye.PROPS,["onClick","onMouseup","onMousedown"]):(0,r.h)("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[(0,r.renderSlot)(t,"default")])}});const Qe=Xe;var et=n(4309);const tt='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',nt=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},rt=e=>Array.from(e.querySelectorAll(tt)).filter((e=>ot(e)&&nt(e))),ot=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},it="_trap-focus-children",at=[],lt=e=>{if(0===at.length)return;const t=at[at.length-1][it];if(t.length>0&&e.code===et.n.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,r=e.target===t[0],o=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},ut={beforeMount(e){e[it]=rt(e),at.push(e),at.length<=1&&document.addEventListener("keydown",lt)},updated(e){(0,r.nextTick)((()=>{e[it]=rt(e)}))},unmounted(){at.shift(),0===at.length&&document.removeEventListener("keydown",lt)}},st=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},ct=(e,t)=>{for(const n of e)if(!ft(n,t))return n},ft=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;while(e){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},dt=e=>{const t=st(e),n=ct(t,e),r=ct(t.reverse(),e);return[n,r]},pt=e=>e instanceof HTMLInputElement&&"select"in e,ht=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&pt(e)&&t&&e.select()}};function gt(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const vt=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=gt(e,t),e.unshift(t)},n=t=>{var n,r;e=gt(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)};return{push:t,remove:n}},mt=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(ht(r,t),document.activeElement!==n)return},yt=vt(),bt="focus-trap.focus-after-trapped",wt="focus-trap.focus-after-released",xt={cancelable:!0,bubbles:!1},Ct="focusAfterTrapped",Et="focusAfterReleased",St=Symbol("elFocusTrap");let kt=[];const Dt=e=>{const t=e;t.key===et.n.esc&&kt.forEach((e=>e(t)))},At=e=>{(0,r.onMounted)((()=>{0===kt.length&&document.addEventListener("keydown",Dt),d.C5&&kt.push(e)})),(0,r.onBeforeUnmount)((()=>{kt=kt.filter((t=>t!==e)),0===kt.length&&d.C5&&document.removeEventListener("keydown",Dt)}))},Ot=(0,r.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ct,Et,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,r.ref)();let o,i;At((n=>{e.trapped&&!a.paused&&t("release-requested",n)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=n=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:r,altKey:o,ctrlKey:i,metaKey:l,currentTarget:u,shiftKey:s}=n,{loop:c}=e,f=r===et.n.tab&&!o&&!i&&!l,d=document.activeElement;if(f&&d){const e=u,[r,o]=dt(e),i=r&&o;i?s||d!==o?s&&[r,e].includes(d)&&(n.preventDefault(),c&&ht(o,!0),t("focusout-prevented")):(n.preventDefault(),c&&ht(r,!0),t("focusout-prevented")):d===e&&(n.preventDefault(),t("focusout-prevented"))}};(0,r.provide)(St,{focusTrapRef:n,onKeydown:l}),(0,r.watch)((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),(0,r.watch)([n],(([e],[t])=>{e&&(e.addEventListener("keydown",l),e.addEventListener("focusin",c),e.addEventListener("focusout",f)),t&&(t.removeEventListener("keydown",l),t.removeEventListener("focusin",c),t.removeEventListener("focusout",f))}));const u=e=>{t(Ct,e)},s=e=>t(Et,e),c=o=>{const l=(0,r.unref)(n);if(!l)return;const u=o.target,s=u&&l.contains(u);s&&t("focusin",o),a.paused||e.trapped&&(s?i=u:ht(i,!0))},f=o=>{const l=(0,r.unref)(n);if(!a.paused&&l)if(e.trapped){const t=o.relatedTarget;Se(t)||l.contains(t)||setTimeout((()=>{!a.paused&&e.trapped&&ht(i,!0)}),0)}else{const e=o.target,n=e&&l.contains(e);n||t("focusout",o)}};async function d(){await(0,r.nextTick)();const t=(0,r.unref)(n);if(t){yt.push(a);const n=document.activeElement;o=n;const i=t.contains(n);if(!i){const o=new Event(bt,xt);t.addEventListener(bt,u),t.dispatchEvent(o),o.defaultPrevented||(0,r.nextTick)((()=>{let r=e.focusStartEl;(0,Be.HD)(r)||(ht(r),document.activeElement!==r&&(r="first")),"first"===r&&mt(st(t),!0),document.activeElement!==n&&"container"!==r||ht(t)}))}}}function p(){const e=(0,r.unref)(n);if(e){e.removeEventListener(bt,u);const t=new Event(wt,xt);e.addEventListener(wt,s),e.dispatchEvent(t),t.defaultPrevented||ht(null!=o?o:document.body,!0),e.removeEventListener(wt,u),yt.remove(a)}}return(0,r.onMounted)((()=>{e.trapped&&d(),(0,r.watch)((()=>e.trapped),(e=>{e?d():p()}))})),(0,r.onBeforeUnmount)((()=>{e.trapped&&p()})),{onKeydown:l}}});function _t(e,t,n,o,i,a){return(0,r.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}var Bt=(0,te.Z)(Ot,[["render",_t],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]),Ft=n(209);const jt=e=>["",...Ft.k].includes(e);var Pt=Array.isArray,Tt=Pt,Nt="object"==typeof global&&global&&global.Object===Object&&global,It=Nt,Lt="object"==typeof self&&self&&self.Object===Object&&self,Mt=It||Lt||Function("return this")(),Rt=Mt,zt=Rt.Symbol,Vt=zt,$t=Object.prototype,Ut=$t.hasOwnProperty,Ht=$t.toString,Wt=Vt?Vt.toStringTag:void 0;function qt(e){var t=Ut.call(e,Wt),n=e[Wt];try{e[Wt]=void 0;var r=!0}catch(i){}var o=Ht.call(e);return r&&(t?e[Wt]=n:delete e[Wt]),o}var Kt=qt,Gt=Object.prototype,Yt=Gt.toString;function Jt(e){return Yt.call(e)}var Zt=Jt,Xt="[object Null]",Qt="[object Undefined]",en=Vt?Vt.toStringTag:void 0;function tn(e){return null==e?void 0===e?Qt:Xt:en&&en in Object(e)?Kt(e):Zt(e)}var nn=tn;function rn(e){return null!=e&&"object"==typeof e}var on=rn,an="[object Symbol]";function ln(e){return"symbol"==typeof e||on(e)&&nn(e)==an}var un=ln,sn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cn=/^\w*$/;function fn(e,t){if(Tt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!un(e))||(cn.test(e)||!sn.test(e)||null!=t&&e in Object(t))}var dn=fn;function pn(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var hn=pn,gn="[object AsyncFunction]",vn="[object Function]",mn="[object GeneratorFunction]",yn="[object Proxy]";function bn(e){if(!hn(e))return!1;var t=nn(e);return t==vn||t==mn||t==gn||t==yn}var wn=bn,xn=Rt["__core-js_shared__"],Cn=xn,En=function(){var e=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Sn(e){return!!En&&En in e}var kn=Sn,Dn=Function.prototype,An=Dn.toString;function On(e){if(null!=e){try{return An.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _n=On,Bn=/[\\^$.*+?()[\]{}|]/g,Fn=/^\[object .+?Constructor\]$/,jn=Function.prototype,Pn=Object.prototype,Tn=jn.toString,Nn=Pn.hasOwnProperty,In=RegExp("^"+Tn.call(Nn).replace(Bn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ln(e){if(!hn(e)||kn(e))return!1;var t=wn(e)?In:Fn;return t.test(_n(e))}var Mn=Ln;function Rn(e,t){return null==e?void 0:e[t]}var zn=Rn;function Vn(e,t){var n=zn(e,t);return Mn(n)?n:void 0}var $n=Vn,Un=$n(Object,"create"),Hn=Un;function Wn(){this.__data__=Hn?Hn(null):{},this.size=0}var qn=Wn;function Kn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gn=Kn,Yn="__lodash_hash_undefined__",Jn=Object.prototype,Zn=Jn.hasOwnProperty;function Xn(e){var t=this.__data__;if(Hn){var n=t[e];return n===Yn?void 0:n}return Zn.call(t,e)?t[e]:void 0}var Qn=Xn,er=Object.prototype,tr=er.hasOwnProperty;function nr(e){var t=this.__data__;return Hn?void 0!==t[e]:tr.call(t,e)}var rr=nr,or="__lodash_hash_undefined__";function ir(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Hn&&void 0===t?or:t,this}var ar=ir;function lr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}lr.prototype.clear=qn,lr.prototype["delete"]=Gn,lr.prototype.get=Qn,lr.prototype.has=rr,lr.prototype.set=ar;var ur=lr;function sr(){this.__data__=[],this.size=0}var cr=sr;function fr(e,t){return e===t||e!==e&&t!==t}var dr=fr;function pr(e,t){var n=e.length;while(n--)if(dr(e[n][0],t))return n;return-1}var hr=pr,gr=Array.prototype,vr=gr.splice;function mr(e){var t=this.__data__,n=hr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vr.call(t,n,1),--this.size,!0}var yr=mr;function br(e){var t=this.__data__,n=hr(t,e);return n<0?void 0:t[n][1]}var wr=br;function xr(e){return hr(this.__data__,e)>-1}var Cr=xr;function Er(e,t){var n=this.__data__,r=hr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Sr=Er;function kr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}kr.prototype.clear=cr,kr.prototype["delete"]=yr,kr.prototype.get=wr,kr.prototype.has=Cr,kr.prototype.set=Sr;var Dr=kr,Ar=$n(Rt,"Map"),Or=Ar;function _r(){this.size=0,this.__data__={hash:new ur,map:new(Or||Dr),string:new ur}}var Br=_r;function Fr(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var jr=Fr;function Pr(e,t){var n=e.__data__;return jr(t)?n["string"==typeof t?"string":"hash"]:n.map}var Tr=Pr;function Nr(e){var t=Tr(this,e)["delete"](e);return this.size-=t?1:0,t}var Ir=Nr;function Lr(e){return Tr(this,e).get(e)}var Mr=Lr;function Rr(e){return Tr(this,e).has(e)}var zr=Rr;function Vr(e,t){var n=Tr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $r=Vr;function Ur(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}Ur.prototype.clear=Br,Ur.prototype["delete"]=Ir,Ur.prototype.get=Mr,Ur.prototype.has=zr,Ur.prototype.set=$r;var Hr=Ur,Wr="Expected a function";function qr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Wr);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(qr.Cache||Hr),n}qr.Cache=Hr;var Kr=qr,Gr=500;function Yr(e){var t=Kr(e,(function(e){return n.size===Gr&&n.clear(),e})),n=t.cache;return t}var Jr=Yr,Zr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xr=/\\(\\)?/g,Qr=Jr((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Zr,(function(e,n,r,o){t.push(r?o.replace(Xr,"$1"):n||e)})),t})),eo=Qr;function to(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}var no=to,ro=1/0,oo=Vt?Vt.prototype:void 0,io=oo?oo.toString:void 0;function ao(e){if("string"==typeof e)return e;if(Tt(e))return no(e,ao)+"";if(un(e))return io?io.call(e):"";var t=e+"";return"0"==t&&1/e==-ro?"-0":t}var lo=ao;function uo(e){return null==e?"":lo(e)}var so=uo;function co(e,t){return Tt(e)?e:dn(e,t)?[e]:eo(so(e))}var fo=co,po=1/0;function ho(e){if("string"==typeof e||un(e))return e;var t=e+"";return"0"==t&&1/e==-po?"-0":t}var go=ho;function vo(e,t){t=fo(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[go(t[n++])];return n&&n==r?e:void 0}var mo=vo;function yo(e,t,n){var r=null==e?void 0:mo(e,t);return void 0===r?n:r}var bo=yo,wo={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const xo=e=>(t,n)=>Co(t,n,(0,r.unref)(e)),Co=(e,t,n)=>bo(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return`${null!=(r=null==t?void 0:t[n])?r:`{${n}}`}`})),Eo=e=>{const t=(0,r.computed)((()=>(0,r.unref)(e).name)),n=(0,r.isRef)(e)?e:(0,r.ref)(e);return{lang:t,locale:n,t:xo(e)}},So=()=>{const e=(0,ie.W)("locale");return Eo((0,r.computed)((()=>e.value||wo)))};var ko=n(4568),Do=n(7675);const Ao=(e,t,n)=>{let o={offsetX:0,offsetY:0};const i=t=>{const n=t.clientX,r=t.clientY,{offsetX:i,offsetY:a}=o,l=e.value.getBoundingClientRect(),u=l.left,s=l.top,c=l.width,f=l.height,d=document.documentElement.clientWidth,p=document.documentElement.clientHeight,h=-u+i,g=-s+a,v=d-u-c+i,m=p-s-f+a,y=t=>{const l=Math.min(Math.max(i+t.clientX-n,h),v),u=Math.min(Math.max(a+t.clientY-r,g),m);o={offsetX:l,offsetY:u},e.value.style.transform=`translate(${(0,Do.Nn)(l)}, ${(0,Do.Nn)(u)})`},b=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};(0,r.onMounted)((()=>{(0,r.watchEffect)((()=>{n.value?a():l()}))})),(0,r.onBeforeUnmount)((()=>{l()}))};let Oo;function _o(e,t=Oo){t&&t.active&&t.effects.push(e)}const Bo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Fo=e=>(e.w&Lo)>0,jo=e=>(e.n&Lo)>0,Po=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Lo},To=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Fo(o)&&!jo(o)?o.delete(e):t[n++]=o,o.w&=~Lo,o.n&=~Lo}t.length=n}},No=new WeakMap;let Io=0,Lo=1;const Mo=30;let Ro;const zo=Symbol(""),Vo=Symbol("");class $o{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,_o(this,n)}run(){if(!this.active)return this.fn();let e=Ro,t=Ho;while(e){if(e===this)return;e=e.parent}try{return this.parent=Ro,Ro=this,Ho=!0,Lo=1<<++Io,Io<=Mo?Po(this):Uo(this),this.fn()}finally{Io<=Mo&&To(this),Lo=1<<--Io,Ro=this.parent,Ho=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ro===this?this.deferStop=!0:this.active&&(Uo(this),this.onStop&&this.onStop(),this.active=!1)}}function Uo(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ho=!0;const Wo=[];function qo(){Wo.push(Ho),Ho=!1}function Ko(){const e=Wo.pop();Ho=void 0===e||e}function Go(e,t,n){if(Ho&&Ro){let t=No.get(e);t||No.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=Bo());const o=void 0;Yo(r,o)}}function Yo(e,t){let n=!1;Io<=Mo?jo(e)||(e.n|=Lo,n=!Fo(e)):n=!e.has(Ro),n&&(e.add(Ro),Ro.deps.push(e))}function Jo(e,t,n,r,o,i){const a=No.get(e);if(!a)return;let l=[];if("clear"===t)l=[...a.values()];else if("length"===n&&(0,Be.kJ)(e))a.forEach(((e,t)=>{("length"===t||t>=r)&&l.push(e)}));else switch(void 0!==n&&l.push(a.get(n)),t){case"add":(0,Be.kJ)(e)?(0,Be.S0)(n)&&l.push(a.get("length")):(l.push(a.get(zo)),(0,Be._N)(e)&&l.push(a.get(Vo)));break;case"delete":(0,Be.kJ)(e)||(l.push(a.get(zo)),(0,Be._N)(e)&&l.push(a.get(Vo)));break;case"set":(0,Be._N)(e)&&l.push(a.get(zo));break}if(1===l.length)l[0]&&Zo(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);Zo(Bo(e))}}function Zo(e,t){const n=(0,Be.kJ)(e)?e:[...e];for(const r of n)r.computed&&Xo(r,t);for(const r of n)r.computed||Xo(r,t)}function Xo(e,t){(e!==Ro||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Qo=(0,Be.fY)("__proto__,__v_isRef,__isVue"),ei=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(Be.yk)),ti=ii(),ni=ii(!0),ri=oi();function oi(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Hi(this);for(let t=0,o=this.length;t<o;t++)Go(n,"get",t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Hi)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){qo();const n=Hi(this)[t].apply(this,e);return Ko(),n}})),e}function ii(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?Ii:Ni:t?Ti:Pi).get(n))return n;const i=(0,Be.kJ)(n);if(!e&&i&&(0,Be.RI)(ri,r))return Reflect.get(ri,r,o);const a=Reflect.get(n,r,o);return((0,Be.yk)(r)?ei.has(r):Qo(r))?a:(e||Go(n,"get",r),t?a:Yi(a)?i&&(0,Be.S0)(r)?a:a.value:(0,Be.Kn)(a)?e?zi(a):Ri(a):a)}}const ai=li();function li(e=!1){return function(t,n,r,o){let i=t[n];if($i(i)&&Yi(i)&&!Yi(r))return!1;if(!e&&!$i(r)&&(Ui(r)||(r=Hi(r),i=Hi(i)),!(0,Be.kJ)(t)&&Yi(i)&&!Yi(r)))return i.value=r,!0;const a=(0,Be.kJ)(t)&&(0,Be.S0)(n)?Number(n)<t.length:(0,Be.RI)(t,n),l=Reflect.set(t,n,r,o);return t===Hi(o)&&(a?(0,Be.aU)(r,i)&&Jo(t,"set",n,r,i):Jo(t,"add",n,r)),l}}function ui(e,t){const n=(0,Be.RI)(e,t),r=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&Jo(e,"delete",t,void 0,r),o}function si(e,t){const n=Reflect.has(e,t);return(0,Be.yk)(t)&&ei.has(t)||Go(e,"has",t),n}function ci(e){return Go(e,"iterate",(0,Be.kJ)(e)?"length":zo),Reflect.ownKeys(e)}const fi={get:ti,set:ai,deleteProperty:ui,has:si,ownKeys:ci},di={get:ni,set(e,t){return!0},deleteProperty(e,t){return!0}},pi=e=>e,hi=e=>Reflect.getPrototypeOf(e);function gi(e,t,n=!1,r=!1){e=e["__v_raw"];const o=Hi(e),i=Hi(t);n||(t!==i&&Go(o,"get",t),Go(o,"get",i));const{has:a}=hi(o),l=r?pi:n?qi:Wi;return a.call(o,t)?l(e.get(t)):a.call(o,i)?l(e.get(i)):void(e!==o&&e.get(t))}function vi(e,t=!1){const n=this["__v_raw"],r=Hi(n),o=Hi(e);return t||(e!==o&&Go(r,"has",e),Go(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function mi(e,t=!1){return e=e["__v_raw"],!t&&Go(Hi(e),"iterate",zo),Reflect.get(e,"size",e)}function yi(e){e=Hi(e);const t=Hi(this),n=hi(t),r=n.has.call(t,e);return r||(t.add(e),Jo(t,"add",e,e)),this}function bi(e,t){t=Hi(t);const n=Hi(this),{has:r,get:o}=hi(n);let i=r.call(n,e);i||(e=Hi(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?(0,Be.aU)(t,a)&&Jo(n,"set",e,t,a):Jo(n,"add",e,t),this}function wi(e){const t=Hi(this),{has:n,get:r}=hi(t);let o=n.call(t,e);o||(e=Hi(e),o=n.call(t,e));const i=r?r.call(t,e):void 0,a=t.delete(e);return o&&Jo(t,"delete",e,void 0,i),a}function xi(){const e=Hi(this),t=0!==e.size,n=void 0,r=e.clear();return t&&Jo(e,"clear",void 0,void 0,n),r}function Ci(e,t){return function(n,r){const o=this,i=o["__v_raw"],a=Hi(i),l=t?pi:e?qi:Wi;return!e&&Go(a,"iterate",zo),i.forEach(((e,t)=>n.call(r,l(e),l(t),o)))}}function Ei(e,t,n){return function(...r){const o=this["__v_raw"],i=Hi(o),a=(0,Be._N)(i),l="entries"===e||e===Symbol.iterator&&a,u="keys"===e&&a,s=o[e](...r),c=n?pi:t?qi:Wi;return!t&&Go(i,"iterate",u?Vo:zo),{next(){const{value:e,done:t}=s.next();return t?{value:e,done:t}:{value:l?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function Si(e){return function(...t){return"delete"!==e&&this}}function ki(){const e={get(e){return gi(this,e)},get size(){return mi(this)},has:vi,add:yi,set:bi,delete:wi,clear:xi,forEach:Ci(!1,!1)},t={get(e){return gi(this,e,!1,!0)},get size(){return mi(this)},has:vi,add:yi,set:bi,delete:wi,clear:xi,forEach:Ci(!1,!0)},n={get(e){return gi(this,e,!0)},get size(){return mi(this,!0)},has(e){return vi.call(this,e,!0)},add:Si("add"),set:Si("set"),delete:Si("delete"),clear:Si("clear"),forEach:Ci(!0,!1)},r={get(e){return gi(this,e,!0,!0)},get size(){return mi(this,!0)},has(e){return vi.call(this,e,!0)},add:Si("add"),set:Si("set"),delete:Si("delete"),clear:Si("clear"),forEach:Ci(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=Ei(o,!1,!1),n[o]=Ei(o,!0,!1),t[o]=Ei(o,!1,!0),r[o]=Ei(o,!0,!0)})),[e,n,t,r]}const[Di,Ai,Oi,_i]=ki();function Bi(e,t){const n=t?e?_i:Oi:e?Ai:Di;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,Be.RI)(n,r)&&r in t?n:t,r,o)}const Fi={get:Bi(!1,!1)},ji={get:Bi(!0,!1)};const Pi=new WeakMap,Ti=new WeakMap,Ni=new WeakMap,Ii=new WeakMap;function Li(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mi(e){return e["__v_skip"]||!Object.isExtensible(e)?0:Li((0,Be.W7)(e))}function Ri(e){return $i(e)?e:Vi(e,!1,fi,Fi,Pi)}function zi(e){return Vi(e,!0,di,ji,Ni)}function Vi(e,t,n,r,o){if(!(0,Be.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const i=o.get(e);if(i)return i;const a=Mi(e);if(0===a)return e;const l=new Proxy(e,2===a?r:n);return o.set(e,l),l}function $i(e){return!(!e||!e["__v_isReadonly"])}function Ui(e){return!(!e||!e["__v_isShallow"])}function Hi(e){const t=e&&e["__v_raw"];return t?Hi(t):e}const Wi=e=>(0,Be.Kn)(e)?Ri(e):e,qi=e=>(0,Be.Kn)(e)?zi(e):e;function Ki(e){Ho&&Ro&&(e=Hi(e),Yo(e.dep||(e.dep=Bo())))}function Gi(e,t){e=Hi(e),e.dep&&Zo(e.dep)}function Yi(e){return!(!e||!0!==e.__v_isRef)}class Ji{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new $o(e,(()=>{this._dirty||(this._dirty=!0,Gi(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=Hi(this);return Ki(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Zi(e,t,n=!1){let r,o;const i=(0,Be.mf)(e);i?(r=e,o=Be.dG):(r=e.get,o=e.set);const a=new Ji(r,o,i||!o,n);return a}let Xi;const Qi=e=>{var t;if(!d.C5)return 0;if(void 0!==Xi)return Xi;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),Xi=r-i,Xi};const ea=e=>{(0,r.isRef)(e)||(0,ne._)("[useLockscreen]","You need to pass a ref param to this function");const t=(0,X.s)("popup"),n=Zi((()=>t.bm("parent","hidden")));if(!d.C5||(0,Do.pv)(document.body,n.value))return;let o=0,i=!1,a="0",l=0;const u=()=>{(0,Do.IV)(document.body,n.value),i&&(document.body.style.paddingRight=a)};(0,r.watch)(e,(e=>{if(!e)return void u();i=!(0,Do.pv)(document.body,n.value),i&&(a=document.body.style.paddingRight,l=Number.parseInt((0,Do.C2)(document.body,"paddingRight"),10)),o=Qi(t.namespace.value);const r=document.documentElement.clientHeight<document.body.scrollHeight,s=(0,Do.C2)(document.body,"overflowY");o>0&&(r||"scroll"===s)&&i&&(document.body.style.paddingRight=`${l+o}px`),(0,Do.cn)(document.body,n.value)})),(0,r.onScopeDispose)((()=>u()))},ta=(e,t)=>{let n;(0,r.watch)((()=>e.value),(e=>{var o,i;e?(n=document.activeElement,(0,r.isRef)(t)&&(null==(i=(o=t.value).focus)||i.call(o))):n.focus()}))},na=(0,r.defineComponent)({name:"ElMessageBox",directives:{TrapFocus:ut},components:{ElButton:xe,ElFocusTrap:Bt,ElInput:Ke,ElOverlay:Qe,ElIcon:p.gn,...m.f5},inheritAttrs:!1,props:{buttonSize:{type:String,validator:jt},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=So(),o=(0,X.s)("message-box"),i=(0,r.ref)(!1),{nextZIndex:a}=(0,ko.C)(),l=(0,r.reactive)({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),u=(0,r.computed)((()=>{const e=l.type;return{[o.bm("icon",e)]:e&&m.Rp[e]}})),s=ue(),c=ue(),f=(0,v.tH)((0,r.computed)((()=>e.buttonSize)),{prop:!0,form:!0,formItem:!0}),d=(0,r.computed)((()=>l.icon||m.Rp[l.type]||"")),p=(0,r.computed)((()=>!!l.message)),h=(0,r.ref)(),g=(0,r.ref)(),y=(0,r.ref)(),b=(0,r.ref)(),w=(0,r.ref)(),x=(0,r.computed)((()=>l.confirmButtonClass));(0,r.watch)((()=>l.inputValue),(async t=>{await(0,r.nextTick)(),"prompt"===e.boxType&&null!==t&&O()}),{immediate:!0}),(0,r.watch)((()=>i.value),(t=>{var n,o;t&&("prompt"!==e.boxType&&(l.autofocus?y.value=null!=(o=null==(n=w.value)?void 0:n.$el)?o:h.value:y.value=h.value),l.zIndex=a()),"prompt"===e.boxType&&(t?(0,r.nextTick)().then((()=>{var e;b.value&&b.value.$el&&(l.autofocus?y.value=null!=(e=_())?e:h.value:y.value=h.value)})):(l.editorErrorMessage="",l.validateError=!1))}));const C=(0,r.computed)((()=>e.draggable));function E(){i.value&&(i.value=!1,(0,r.nextTick)((()=>{l.action&&t("action",l.action)})))}Ao(h,g,C),(0,r.onMounted)((async()=>{await(0,r.nextTick)(),e.closeOnHashChange&&window.addEventListener("hashchange",E)})),(0,r.onBeforeUnmount)((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",E)}));const S=()=>{e.closeOnClickModal&&A(l.distinguishCancelAndClose?"close":"cancel")},k=Ge(S),D=e=>{if("textarea"!==l.inputType)return e.preventDefault(),A("confirm")},A=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||O())&&(l.action=t,l.beforeClose?null==(n=l.beforeClose)||n.call(l,t,l,E):E())},O=()=>{if("prompt"===e.boxType){const e=l.inputPattern;if(e&&!e.test(l.inputValue||""))return l.editorErrorMessage=l.inputErrorMessage||n("el.messagebox.error"),l.validateError=!0,!1;const t=l.inputValidator;if("function"===typeof t){const e=t(l.inputValue);if(!1===e)return l.editorErrorMessage=l.inputErrorMessage||n("el.messagebox.error"),l.validateError=!0,!1;if("string"===typeof e)return l.editorErrorMessage=e,l.validateError=!0,!1}}return l.editorErrorMessage="",l.validateError=!1,!0},_=()=>{const e=b.value.$refs;return e.input||e.textarea},B=()=>{A("close")},F=()=>{e.closeOnPressEscape&&B()};return e.lockScroll&&ea(i),ta(i),{...(0,r.toRefs)(l),ns:o,overlayEvent:k,visible:i,hasMessage:p,typeClass:u,contentId:s,inputId:c,btnSize:f,iconComponent:d,confirmButtonClasses:x,rootRef:h,focusStartRef:y,headerRef:g,inputRef:b,confirmRef:w,doClose:E,handleClose:B,onCloseRequested:F,handleWrapperClick:S,handleInputEnter:D,handleAction:A,t:n}}}),ra=["aria-label","aria-describedby"],oa=["aria-label"],ia=["id"];function aa(e,t,n,o,i,a){const l=(0,r.resolveComponent)("el-icon"),u=(0,r.resolveComponent)("close"),s=(0,r.resolveComponent)("el-input"),c=(0,r.resolveComponent)("el-button"),f=(0,r.resolveComponent)("el-focus-trap"),d=(0,r.resolveComponent)("el-overlay");return(0,r.openBlock)(),(0,r.createBlock)(r.Transition,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createVNode)(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:(0,r.normalizeClass)(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[(0,r.createVNode)(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",{ref:"rootRef",class:(0,r.normalizeClass)([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:(0,r.normalizeStyle)(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=(0,r.withModifiers)((()=>{}),["stop"]))},[null!==e.title&&void 0!==e.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,ref:"headerRef",class:(0,r.normalizeClass)(e.ns.e("header"))},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("title"))},[e.iconComponent&&e.center?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,class:(0,r.normalizeClass)([e.ns.e("status"),e.typeClass])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.iconComponent)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.title),1)],2),e.showClose?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:(0,r.normalizeClass)(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"]))},[(0,r.createVNode)(l,{class:(0,r.normalizeClass)(e.ns.e("close"))},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(u)])),_:1},8,["class"])],42,oa)):(0,r.createCommentVNode)("v-if",!0)],2)):(0,r.createCommentVNode)("v-if",!0),(0,r.createElementVNode)("div",{id:e.contentId,class:(0,r.normalizeClass)(e.ns.e("content"))},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,class:(0,r.normalizeClass)([e.ns.e("status"),e.typeClass])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.iconComponent)))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),e.hasMessage?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)(e.ns.e("message"))},[(0,r.renderSlot)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):(0,r.createCommentVNode)("v-if",!0)],2),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("input"))},[(0,r.createVNode)(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:(0,r.normalizeClass)({invalid:e.validateError}),onKeydown:(0,r.withKeys)(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("errormsg")),style:(0,r.normalizeStyle)({visibility:e.editorErrorMessage?"visible":"hidden"})},(0,r.toDisplayString)(e.editorErrorMessage),7)],2),[[r.vShow,e.showInput]])],10,ia),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.ns.e("btns"))},[e.showCancelButton?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,loading:e.cancelButtonLoading,class:(0,r.normalizeClass)([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=(0,r.withKeys)((0,r.withModifiers)((t=>e.handleAction("cancel")),["prevent"]),["enter"]))},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","class","round","size"])):(0,r.createCommentVNode)("v-if",!0),(0,r.withDirectives)((0,r.createVNode)(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:(0,r.normalizeClass)([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=(0,r.withKeys)((0,r.withModifiers)((t=>e.handleAction("confirm")),["prevent"]),["enter"]))},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","class","round","disabled","size"]),[[r.vShow,e.showConfirmButton]])],2)],6)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,ra)])),_:3},8,["z-index","overlay-class","mask"]),[[r.vShow,e.visible]])])),_:3})}var la=(0,te.Z)(na,[["render",aa],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]),ua=n(5162);const sa=new Map,ca=(e,t,n=null)=>{const o=(0,r.h)(la,e);return o.appContext=n,(0,r.render)(o,t),document.body.appendChild(t.firstElementChild),o.component},fa=()=>document.createElement("div"),da=(e,t)=>{const n=fa();e.onVanish=()=>{(0,r.render)(null,n),sa.delete(i)},e.onAction=t=>{const n=sa.get(i);let r;r=e.showInput?{value:i.inputValue,action:t}:t,e.callback?e.callback(r,o.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(r)};const o=ca(e,n,t),i=o.proxy;for(const r in e)(0,Be.RI)(e,r)&&!(0,Be.RI)(i.$props,r)&&(i[r]=e[r]);return(0,r.watch)((()=>i.message),((e,t)=>{(0,r.isVNode)(e)?o.slots.default=()=>[e]:(0,r.isVNode)(t)&&!(0,r.isVNode)(e)&&delete o.slots.default}),{immediate:!0}),i.visible=!0,i};function pa(e,t=null){if(!d.C5)return Promise.reject();let n;return(0,Be.HD)(e)||(0,r.isVNode)(e)?e={message:e}:n=e.callback,new Promise(((r,o)=>{const i=da(e,null!=t?t:pa._context);sa.set(i,{options:e,callback:n,resolve:r,reject:o})}))}const ha=["alert","confirm","prompt"],ga={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function va(e){return(t,n,r,o)=>{let i;return(0,Be.Kn)(n)?(r=n,i=""):i=(0,ua.o8)(n)?"":n,pa(Object.assign({title:i,message:t,type:"",...ga[e]},r,{boxType:e}),o)}}ha.forEach((e=>{pa[e]=va(e)})),pa.close=()=>{sa.forEach(((e,t)=>{t.doClose()})),sa.clear()},pa._context=null;const ma=pa;ma.install=e=>{ma._context=e._context,e.config.globalProperties.$msgbox=ma,e.config.globalProperties.$messageBox=ma,e.config.globalProperties.$alert=ma.alert,e.config.globalProperties.$confirm=ma.confirm,e.config.globalProperties.$prompt=ma.prompt};const ya=ma;var ba=n(9489),wa=n(8020),xa=n(2343),Ca=n(7484),Ea=n.n(Ca);const Sa={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"};var ka=(0,r.defineComponent)({name:"JwtTable",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},request:{type:Function,require:!0,default:()=>{}},uploadUrl:{type:String,default:""},uploadRichTextUrl:{type:String,default:""},responseKey:{type:String,default:"relative_path"},fillUrl:{type:Function,default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=(0,r.reactive)({tableData:[],ajaxLoading:!1,submitLoading:!1}),{proxy:o}=(0,r.getCurrentInstance)();let i=(0,r.reactive)((0,wa.merge)({headerActions:{list:[]},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:Sa,showPagination:!0,editBox:{title:"系统",dialog:{width:"960px"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:"确认",attrs:{type:"primary"}},cancel:{title:"取消",attrs:{}}}}},e.config));const a=(0,r.reactive)({currentPage:1,pageCount:1,pageSize:i.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),l=(0,r.reactive)({title:"",type:"add",visible:!1,model:{},boxName:"editBox"}),u=(0,r.ref)([]),s=(0,r.ref)({}),c=(0,r.ref)(null),f=(0,r.computed)((()=>{const{path:t}=e.route;return t||""})),d=(0,r.computed)((()=>e.userMenusAuth||{})),p=(e={})=>{const t=l.boxName,n={};return i[t].form.formList.forEach((t=>{const{key:r,type:o,startKey:i,endKey:a,formAttrs:l}=t,u=l?.multiple||!1,s=l?.valueType||"";e[r]&&"inputNumber"===o?n[r]=+e[r]:u?xa.F.isArray(e[r])||(n[r]="number"===s?e[r]?e[r]?.split(",")?.map((e=>+e)):[]:e[r]?e[r]?.split(","):[]):"datePickerRange"===o?c.value.setDatePickerRange([e[i],e[a]]):n[r]=""===e[r]||void 0===e[r]?t.value:e[r]})),n},h=()=>{const{query:t}=e.route;if(t.fromJump){for(let[e,r]of Object.entries(t))xa.F.isArray(r)&&(t[e]=r.map((e=>+e)));const n={...s.value,...e.route.query};delete n.fromJump,s.value=n}g()},g=()=>{const e=(0,wa.merge)({page:a.currentPage,per_page:a.pageSize,sort:a.sort,order:a.order},i.tableListParams,s.value);v(e)},v=r=>{i.tableListApi?(n.ajaxLoading=!0,e.request({url:i.tableListApi,method:"get",params:r}).then((e=>{n.tableData=e.data,a.pageCount=e.totalPage,a.totalCount=e.total,n.ajaxLoading=!1,t("tablelist-change")}))):i.tableData&&(n.tableData=i.tableData)},m=()=>{a.currentPage=1,a.pageSize=i.pagination["page-sizes"][0],g()},y=()=>{a.currentPage=1,a.pageSize=i.pagination["page-sizes"][0],g(s.value)},b=e=>{a.currentPage=e,g()},w=e=>{a.pageSize=e,g()},x=(e,t="")=>null===e||""===e||void 0===e?"-":t?Ea()(e).format(t):e,C=e=>{u.value=e,t("selection-change",e)},E=({prop:e,order:t})=>{a.sort=e,a.order="ascending"===t?"asc":"desc",g()},S=e=>{t("table-current-change",e)},k=n=>{const{code:r}=n,o=i.headerActions[r];switch(r){case"add":case"add1":case"add2":case"add3":o&&"editBox"===o.type?(B("",o),t("add-handle",u.value)):o&&"editRoute"===o.type?o.jumpUrl&&e?.router?.push({path:o.jumpUrl,query:o.jumpParams}):t("add-handle",u.value);break;case"delete":case"delete1":case"delete2":case"deleteR":o&&o.event?t(o.event,u.value):ya.confirm("此操作将会永久删除数据,是否继续?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",customClass:"elMessageBox-wrapper"}).then((()=>{const e=u.value.map((e=>e.id)).join(",");j({id:e})})).catch((()=>{ba.z8.info("取消操作!")}));break;case"exportF":P();break;default:o&&"editBox"===o.type?B("",o):t("header-action",n,u.value)}},D=(n,r,o)=>{const i=o.action[n.code];switch(n.code){case"edit":case"edit1":case"edit2":i&&"editBox"===i.type?(B(r,i),t("edit-handle",r)):i&&"editRoute"===i.type?i.jumpUrl&&e?.router?.push({path:i.jumpUrl,query:r}):t("edit-handle",r);break;case"delete":case"delete1":case"delete2":case"deleteR":r&&r.event?t(r.event,u.value):ya.confirm("此操作将会永久删除数据,是否继续?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{j({id:r.id})})).catch((()=>{ba.z8.info("取消操作!")}));break;default:i&&"editRoute"===i.type?e.router.push({path:i.jumpUrl,query:r}):i&&"editBox"===i.type?B(r,i):t("table-action",n,r)}},A=async e=>{"confirm"===e&&(n.submitLoading=!0,c.value.formSubmit()),"cancel"===e&&(l.visible=!1)},O=e=>{l.visible=!1,n.submitLoading=!1,t("list-change"),t("add-success",e),y()},_=e=>{l.visible=!1,n.submitLoading=!1,t("list-change"),t("edit-success",e),y()},B=(t,n)=>{if(!e.config.editBox)return;const{editBoxName:o}=n,a=o||"editBox";l.boxName=a,l.visible=!0,(0,r.nextTick)((()=>{t?i?.[a]?.form?.api?.detail?F(t,a):(l.model=p(t),l.model.id=t.id,l.title=i[a].customTitle?i[a].title:"编辑"+i.editBox.title,l.type="edit"):(l.model={},i.editBox.form.formList.forEach((e=>{void 0!==e.value&&(l.model[e.key]=e.value)})),l.title=i[a].customTitle?i.editBox.title:"新建"+i.editBox.title,l.type="add")}))},F=(n,r)=>{const o={id:n.id};e.request({url:i[r].form.api.detail,method:"get",params:o}).then((e=>{l.model=p(e),l.model.id=e.id,l.title=i[r].customTitle?i[r].title:"编辑"+i.editBox.title,l.type="edit",t("get-detail-success",e)}))},j=n=>{e.request({url:i.tableDeleteApi,method:"post",data:n}).then((()=>{t("delete-success"),y()}))},P=()=>{if(!i.tableExportApi)return void ba.z8.info("请配置导出接口!");if(!n.tableData.length)return void ba.z8.info("暂无数据可导出!");const t=o.$baseColorfullLoading(0,"正在下载中。。。"),r=(0,wa.merge)({page:a.currentPage,per_page:a.pageSize,sort:a.sort,order:a.order},i.tableListParams,s.value);e.request({url:i.tableExportApi,method:"get",resType:"blob",responseType:"blob",timeout:12e4,params:r}).then((e=>{let n=window.URL.createObjectURL(new Blob([e])),r=document.createElement("a");r.style.display="none",r.href=n,r.setAttribute("download",`${i.tableExportName||"文件"}-${Ea()().format("YYYY-MM-DD")}.xlsx`),document.body.appendChild(r),r.click(),t.close()}))},T=(e,t,n=!0)=>{e[`isEdit${t.prop}`]=n},N=(t,n)=>{const{id:r}=t,{prop:o}=n;if(r){var a={id:r};if(a[o]=t[o],!i.tableUpdateApi)return ba.z8.info("请配置编辑接口!tableUpdateApi");e.request({url:i.tableUpdateApi,method:"post",data:a}).then((()=>{t[`isEdit${o}`]=!1}))}},I=t=>e.fillUrl&&xa.F.isFunction(e.fillUrl)?e.fillUrl(t):t;return(0,r.watch)(e,(e=>{i=(0,wa.merge)(i,e.config),e.config.tableData&&(n.tableData=e.config.tableData||[])})),(0,r.onBeforeMount)((()=>{h()})),{...(0,r.toRefs)(n),currentPagePath:f,appConfig:i,pagination:a,editBoxInfo:l,selectionRow:u,tableSearchModel:s,editBoxRef:c,dayjs:Ea(),userMenusAuthObj:d,onSearchSubmit:y,onSearchReset:m,handleEdit:B,handleCurrentChange:b,handleSizeChange:w,handleSelectionChange:C,handleTableCurrentChange:S,handleSortChange:E,handleHeaderAction:k,handleTableAction:D,handleGetDetail:F,handleBox:A,filterVal:x,initSearch:h,handleAddSuccess:O,handleEditSuccess:_,handleEditRow:T,handleEditRowProp:N,handleFillUrl:I}}}),Da=n(3744);const Aa=(0,Da.Z)(ka,[["render",f],["__scopeId","data-v-426ee141"]]);var Oa=Aa},1700:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});n(6699);var r=n(7203);const o={class:"table-actions"};function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("el-button");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.tableButtonActions,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(u,{key:n,class:(0,r.normalizeClass)([t.code.includes("delete")?"cd":""]),disabled:t.disabled,link:"",size:"small",type:"primary",onClick:n=>e.handleTableAction(t)},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(t.show_title||t.title),1)])),_:2},1032,["class","disabled","onClick"])))),128))])}var a=n(2343),l=(0,r.defineComponent)({name:"JwtTableButton",props:{currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},config:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"}},emits:["table-action"],setup(e,{emit:t}){const{currentPath:n,menusObj:o,operationName:i}=e,l=(0,r.computed)((()=>e.config?.action||{})),u=(0,r.computed)((()=>{const t=o[n],r=e?.config?.action?.list||[];return t?.[i]?.length?t[i].filter((t=>{let n=t.show_table;if(r?.length){const{code:e}=t;n=n&&r.includes(e)}return l?.value?.[t.code]?.condition&&a.F.isFunction(l.value[t.code].condition)&&(n=n&&l.value[t.code].condition(e.row)),l?.value?.[t.code]?.disabledFun&&a.F.isFunction(l.value[t.code].disabledFun)&&(t.disabled=l.value[t.code].disabledFun(e.row)),n})):[]})),s=e=>{t("table-action",e)};return{tableButtonActions:u,handleTableAction:s}}}),u=n(3744);const s=(0,u.Z)(l,[["render",i]]);var c=s},6404:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(7203);const o={class:"app-table-wrapper"},i=["onDblclick"],a={class:"image-slot wh fxmc"},l={class:"fxr"};function u(e,t,n,u,s,c){const f=(0,r.resolveComponent)("el-input"),d=(0,r.resolveComponent)("el-input-number"),p=(0,r.resolveComponent)("jwt-upload-image"),h=(0,r.resolveComponent)("el-switch"),g=(0,r.resolveComponent)("jwt-icon"),v=(0,r.resolveComponent)("el-image"),m=(0,r.resolveComponent)("el-table-column"),y=(0,r.resolveComponent)("el-table"),b=(0,r.resolveComponent)("el-pagination"),w=(0,r.resolveDirective)("loading");return(0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.renderSlot)(e.$slots,"table-before",{},void 0,!0),(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(y,(0,r.mergeProps)(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"加载数据中...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:(0,r.withCtx)((()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.appConfig.tableColumn,((t,n)=>((0,r.openBlock)(),(0,r.createBlock)(m,{key:n,align:t.align||"center",fixed:t.fixed,label:t.label,"min-width":t.minWidth?t.minWidth:null,prop:t.prop,sortable:t.sortable,type:t.type,width:t.width?t.width:null},(0,r.createSlots)({_:2},[t.type?void 0:{name:"default",fn:(0,r.withCtx)((({row:n,$index:o})=>[t.dateTimeFormat?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(e.filterVal(n[t.prop],t.dateTimeFormat)),1)],64)):t.editType?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},["input"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,type:"text",onKeydown:(0,r.withKeys)((r=>e.handleEditRowProp(n,t)),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):"inputNumber"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"controls-position":"right",min:0,onBlur:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):"uploadImg"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(p,{key:2,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"fill-url":e.fillUrl,"upload-url":e.uploadUrl,onOnChange:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","fill-url","upload-url","onOnChange"])):"switch"===t.editType?((0,r.openBlock)(),(0,r.createBlock)(h,{key:3,modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,"active-value":1,"inactive-value":0,onChange:r=>e.handleEditRowProp(n,t)},null,8,["modelValue","onUpdate:modelValue","onChange"])):(0,r.createCommentVNode)("",!0)],64)):t.editInput?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[(0,r.withDirectives)((0,r.createElementVNode)("div",{onDblclick:r=>e.handleEditRow(n,t)},(0,r.toDisplayString)(e.filterVal(n[t.prop])),41,i),[[r.vShow,!n[`isEdit${t.prop}`]]]),(0,r.withDirectives)((0,r.createVNode)(f,{modelValue:n[t.prop],"onUpdate:modelValue":e=>n[t.prop]=e,type:"text",onBlur:r=>e.handleEditRowProp(n,t),onKeyup:(0,r.withKeys)((r=>e.handleEditRowProp(n,t)),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[r.vShow,n[`isEdit${t.prop}`]]])],64)):t.isImg?((0,r.openBlock)(),(0,r.createBlock)(v,{key:3,"preview-src-list":[e.handleFillUrl(n[t.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(n[t.prop]),teleported:""},{error:(0,r.withCtx)((()=>[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(g,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])])),_:2},1032,["preview-src-list","src"])):(0,r.renderSlot)(e.$slots,t.prop,{key:4,index:o,scope:n},(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.filterVal(n[t.prop])),1)]),!0)]))}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"])))),128))])),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[w,e.ajaxLoading]]),(0,r.createElementVNode)("div",l,[e.appConfig.showPagination?((0,r.openBlock)(),(0,r.createBlock)(b,(0,r.mergeProps)({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):(0,r.createCommentVNode)("",!0)])])}var s=n(9489),c=n(8020),f=n(2343),d=n(7484),p=n.n(d);const h={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"};var g=(0,r.defineComponent)({name:"JwtTableOnly",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},request:{type:Function,require:!0,default:()=>{}},uploadUrl:{type:String,default:""},fillUrl:{type:Function,default:null},userMenusAuth:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=(0,r.reactive)({tableData:[],ajaxLoading:!1,submitLoading:!1});let o=(0,r.reactive)((0,c.merge)({tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:h,showPagination:!0},e.config));const i=(0,r.reactive)({currentPage:1,pageCount:1,pageSize:o.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),a=(0,r.ref)([]),l=(0,r.ref)({}),u=(0,r.ref)(null),d=(0,r.computed)((()=>e.userMenusAuth||{})),g=()=>{v()},v=()=>{const e=(0,c.merge)({page:i.currentPage,per_page:i.pageSize,sort:i.sort,order:i.order},o.tableListParams,l.value);m(e)},m=r=>{o.tableListApi?(n.ajaxLoading=!0,e.request({url:o.tableListApi,method:"get",params:r}).then((e=>{n.tableData=e.data,i.pageCount=e.totalPage,i.totalCount=e.total,n.ajaxLoading=!1,t("tablelist-change")}))):o.tableData&&(n.tableData=o.tableData)},y=()=>{i.currentPage=1,i.pageSize=o.pagination["page-sizes"][0],v()},b=()=>{i.currentPage=1,i.pageSize=o.pagination["page-sizes"][0],v(l.value)},w=e=>{i.currentPage=e,v()},x=e=>{i.pageSize=e,v()},C=(e,t="")=>null===e||""===e||void 0===e?"-":t?p()(e).format(t):e,E=e=>{a.value=e,t("selection-change",e)},S=({prop:e,order:t})=>{i.sort=e,i.order="ascending"===t?"asc":"desc",v()},k=e=>{t("table-current-change",e)},D=(e,t,n=!0)=>{e[`isEdit${t.prop}`]=n},A=(t,n)=>{const{id:r}=t,{prop:i}=n;if(r){var a={id:r};if(a[i]=t[i],!o.tableUpdateApi)return s.z8.info("请配置编辑接口!tableUpdateApi");e.request({url:o.tableUpdateApi,method:"post",data:a}).then((()=>{t[`isEdit${i}`]=!1}))}},O=t=>e.fillUrl&&f.F.isFunction(e.fillUrl)?e.fillUrl(t):t;return(0,r.watch)(e,(e=>{o=(0,c.merge)(o,e.config),e.config.tableData&&(n.tableData=e.config.tableData||[])})),(0,r.onBeforeMount)((()=>{g()})),{...(0,r.toRefs)(n),appConfig:o,pagination:i,selectionRow:a,tableSearchModel:l,editBoxRef:u,dayjs:p(),userMenusAuthObj:d,onSearchSubmit:b,onSearchReset:y,handleCurrentChange:w,handleSizeChange:x,handleSelectionChange:E,handleTableCurrentChange:k,handleSortChange:S,filterVal:C,initSearch:g,handleEditRow:D,handleEditRowProp:A,handleFillUrl:O}}}),v=n(3744);const m=(0,v.Z)(g,[["render",u],["__scopeId","data-v-0d2c55e0"]]);var y=m},3385:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(7203);function o(e,t,n,o,i,a){const l=(0,r.resolveComponent)("el-tag"),u=(0,r.resolveComponent)("el-input"),s=(0,r.resolveComponent)("el-button");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.tagList,(t=>((0,r.openBlock)(),(0,r.createBlock)(l,{key:t,class:"mx-1",closable:"","disable-transitions":!1,onClose:n=>e.handleClose(t)},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)((0,r.toDisplayString)(t),1)])),_:2},1032,["onClose"])))),128)),e.inputVisible?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.inputValue=t),class:"w120",size:"small",onBlur:e.handleInputConfirm,onKeyup:(0,r.withKeys)(e.handleInputConfirm,["enter"])},null,8,["modelValue","onBlur","onKeyup"])):((0,r.openBlock)(),(0,r.createBlock)(s,{key:1,class:"button-new-tag",size:"small",onClick:e.showInput},{default:(0,r.withCtx)((()=>[(0,r.createTextVNode)(" + "+(0,r.toDisplayString)(e.btnTitle),1)])),_:1},8,["onClick"]))],64)}var i=n(2343),a=(0,r.defineComponent)({name:"JwtTags",props:{modelValue:{type:[String,Array],default:""},btnTitle:{type:String,default:"添加"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=(0,r.ref)(null),o=(0,r.reactive)({tagList:[],inputVisible:!1,inputValue:"",initOnce:!1}),a=()=>{if(o.initOnce)return;let t=[];return e.modelValue&&i.F.isString(e.modelValue)&&(t=e?.modelValue?.split(",")),o.initOnce=!0,t};(0,r.watch)((()=>e.modelValue),(e=>{o.initOnce||(o.tagList=e?a():[])}),{immediate:!0});const l=()=>{o.inputVisible=!0,(0,r.nextTick)((()=>{n.value?.input?.focus()}))},u=e=>{o.tagList.splice(o.tagList.indexOf(e),1),s()},s=()=>{const e=o.tagList.join(",");t("update:modelValue",e)},c=()=>{o.inputValue&&o.tagList.push(o.inputValue),o.inputVisible=!1,o.inputValue="",s()};return(0,r.onUpdated)((()=>{})),(0,r.onBeforeMount)((()=>{o.initOnce=!1})),{...(0,r.toRefs)(o),inputRef:n,showInput:l,handleClose:u,handleInputConfirm:c}}}),l=n(3744);const u=(0,l.Z)(a,[["render",o],["__scopeId","data-v-b8ed699a"]]);var s=u},1799:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(7203);const o=["src"];function i(e,t,n,i,a,l){const u=(0,r.resolveComponent)("jwt-icon"),s=(0,r.resolveComponent)("el-upload"),c=(0,r.resolveComponent)("el-dialog");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(s,{action:e.uploadUrl,"before-upload":e.handleBeforeUpload,class:(0,r.normalizeClass)({onlyOne:e.showOnlyOne}),data:e.uploadParam,disabled:e.disabled,"file-list":e.fileList,headers:e.headers,"list-type":e.listType,multiple:e.multiple,name:"filedata","on-error":e.handleUploadError,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!0},{default:(0,r.withCtx)((()=>[(0,r.createVNode)(u,{icon:"add-line",size:40})])),_:1},8,["action","before-upload","class","data","disabled","file-list","headers","list-type","multiple","on-error","on-preview","on-remove","on-success"]),(0,r.createVNode)(c,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[0]||(t[0]=t=>e.dialogVisible=t),"append-to-body":""},{default:(0,r.withCtx)((()=>[(0,r.createElementVNode)("img",{src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,o)])),_:1},8,["modelValue"])],64)}n(6699);var a=n(9489),l=n(2343),u=(0,r.defineComponent)({name:"JwtUploadImage",props:{uploadUrl:{type:String,default:""},modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:2048},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},fillUrl:{type:Function,default:null},uploadParam:{type:Object,default:()=>{}},responseKey:{type:String,default:"relative_path"}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=(0,r.reactive)({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1}),o=t=>e.fillUrl&&l.F.isFunction(e.fillUrl)?e.fillUrl(t):t,i=(0,r.computed)((()=>!e.multiple&&(!!e?.modelValue?.length||n.onUploadProgress))),u=()=>{if(n.initOnce)return;let t=[];if(e.multiple)if(l.F.hasArray(e.modelValue))e.modelValue.map((e=>{e&&t.push({url:o(e),org_url:e,name:o(e)})}));else{if(!l.F.isString(e.modelValue))return n.initOnce=!1,[];e.modelValue.split(",").map((e=>{e&&t.push({url:o(e),org_url:e,name:o(e)})}))}else t=e.modelValue?[{url:o(e.modelValue),org_url:e.modelValue,name:o(e.modelValue)}]:[];return n.initOnce=!0,t};(0,r.watch)((()=>e.modelValue),(e=>{(0,r.nextTick)((()=>{if(!n.initOnce)if(e){const e=u();n.fileList=e}else n.fileList=[]}))}));const s=(0,r.computed)((()=>({Authorization:sessionStorage.getItem("admin-token")||localStorage.getItem("admin-token")}))),c=t=>{if(!e.uploadUrl)return a.z8.error("请配置上传的路径地址!");const r=t.type,o=parseInt(e.limitSize),i=o/1024,l=t.size/1024<o,u=["image/jpeg","image/png","image/gif","image/webp"];let s=u.includes(r);s||a.z8.error("上传图片只能是 JPG,PNG,GIF,WEBP 格式!"),l||(i>1?a.z8.error(`上传图片大小不能超过 ${i}MB!`):a.z8.error(`上传图片大小不能超过 ${o}KB!`));const c=s&&l;return c&&(n.onUploadProgress=!0),c},f=()=>{n.onUploadProgress=!1},d=(e,t,r)=>{n.onUploadProgress=!1,0===e.code?h(r):(a.z8.error(e.msg),this.dialogVisible=!1)},p=(e,t)=>{h(t)},h=r=>{const{responseKey:o}=e;n.initOnce=!0;let i=[];r.map((e=>{const t=(o?e?.response?.data?.[o]:e?.response?.data)||e.org_url;t&&i.push(t)})),e.multiple?(t("update:modelValue",i),t("onChange",i)):(t("update:modelValue",i[0]||""),t("onChange",i[0]||""))},g=e=>{n.dialogImageUrl=e.url,n.dialogVisible=!0};return(0,r.onBeforeMount)((()=>{n.fileList=[],n.initOnce=!1})),{...(0,r.toRefs)(n),headers:s,showOnlyOne:i,handleRemove:p,handleBeforeUpload:c,handleUploadSuccess:d,handlePictureCardPreview:g,handleUploadError:f}}}),s=n(3744);const c=(0,s.Z)(u,[["render",i]]);var f=c},5355:function(e,t,n){var r={"./JwtCascaderArea/index.vue":1534,"./JwtEditor/index.vue":6486,"./JwtForm/index.vue":7920,"./JwtHeaderButton/index.vue":816,"./JwtIcon/index.vue":4815,"./JwtIconSelect/index.vue":3720,"./JwtImage/index.vue":3420,"./JwtInput/index.vue":1656,"./JwtRateIcon/index.vue":9832,"./JwtSelectServer/index.vue":5931,"./JwtTable/index.vue":885,"./JwtTableButton/index.vue":1700,"./JwtTableOnly/index.vue":6404,"./JwtTags/index.vue":3385,"./JwtUploadImage/index.vue":1799};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=5355},7203:function(t){"use strict";t.exports=e},5781:function(e,t,n){"use strict";n.d(t,{G7x:function(){return le},K41:function(){return S},Rrw:function(){return pe},Tw$:function(){return m},c5o:function(){return te},cEj:function(){return U},caK:function(){return L},gbz:function(){return Y},x8P:function(){return B},yGk:function(){return f}});var r=n(7203),o=(e,t)=>{let n=e.__vccOpts||e;for(let[r,o]of t)n[r]=o;return n};
158
- /*! Element Plus Icons Vue v2.0.6 */var i={name:"CircleCheck"},a={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),u=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),s=[l,u];function c(e,t,n,o,i,l){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",a,s)}var f=o(i,[["render",c],["__file","circle-check.vue"]]),d={name:"CircleCloseFilled"},p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},h=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),g=[h];function v(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",p,g)}var m=o(d,[["render",v],["__file","circle-close-filled.vue"]]),y={name:"CircleClose"},b={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},w=(0,r.createElementVNode)("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),x=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),C=[w,x];function E(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",b,C)}var S=o(y,[["render",E],["__file","circle-close.vue"]]);var k={name:"Close"},D={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},A=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),O=[A];function _(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",D,O)}var B=o(k,[["render",_],["__file","close.vue"]]);var F={name:"Hide"},j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P=(0,r.createElementVNode)("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),T=(0,r.createElementVNode)("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),N=[P,T];function I(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",j,N)}var L=o(F,[["render",I],["__file","hide.vue"]]);var M={name:"InfoFilled"},R={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},z=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),V=[z];function $(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",R,V)}var U=o(M,[["render",$],["__file","info-filled.vue"]]);var H={name:"Loading"},W={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},q=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),K=[q];function G(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",W,K)}var Y=o(H,[["render",G],["__file","loading.vue"]]);var J={name:"SuccessFilled"},Z={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},X=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),Q=[X];function ee(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Z,Q)}var te=o(J,[["render",ee],["__file","success-filled.vue"]]);var ne={name:"View"},re={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oe=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),ie=[oe];function ae(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",re,ie)}var le=o(ne,[["render",ae],["__file","view.vue"]]);var ue={name:"WarningFilled"},se={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ce=(0,r.createElementVNode)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),fe=[ce];function de(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",se,fe)}var pe=o(ue,[["render",de],["__file","warning-filled.vue"]])},6309:function(e,t,n){"use strict";n.d(t,{ORN:function(){return l},yU7:function(){return h}});var r=n(7475),o=n(6121);function i(e){var t;const n=(0,o.unref)(e);return null!=(t=null==n?void 0:n.$el)?t:n}const a=r.C5?window:void 0;r.C5&&window.document,r.C5&&window.navigator,r.C5&&window.location;function l(...e){let t,n,l,u;if((0,r.HD)(e[0])?([n,l,u]=e,t=a):[t,n,l,u]=e,!t)return r.ZT;let s=r.ZT;const c=(0,o.watch)((()=>i(t)),(e=>{s(),e&&(e.addEventListener(n,l,u),s=()=>{e.removeEventListener(n,l,u),s=r.ZT})}),{immediate:!0,flush:"post"}),f=()=>{c(),s()};return(0,r.IY)(f),f}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},s="__vueuse_ssr_handlers__";u[s]=u[s]||{};u[s];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&c)for(var r of c(e))t.indexOf(r)<0&&d.call(e,r)&&(n[r]=e[r]);return n};function h(e,t,n={}){const l=n,{window:u=a}=l,s=p(l,["window"]);let c;const f=u&&"ResizeObserver"in u,d=()=>{c&&(c.disconnect(),c=void 0)},h=(0,o.watch)((()=>i(e)),(e=>{d(),f&&u&&e&&(c=new ResizeObserver(t),c.observe(e,s))}),{immediate:!0,flush:"post"}),g=()=>{d(),h()};return(0,r.IY)(g),{isSupported:f,stop:g}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var g;(function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"})(g||(g={}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;r.yR},7475:function(e,t,n){"use strict";n.d(t,{C5:function(){return i},HD:function(){return l},IY:function(){return c},ZT:function(){return u},eM:function(){return f},hj:function(){return a},yR:function(){return s}});var r,o=n(6121);Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const i="undefined"!==typeof window,a=(Object.prototype.toString,e=>"number"===typeof e),l=e=>"string"===typeof e,u=()=>{};i&&(null==(r=null==window?void 0:window.navigator)?void 0:r.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);o.isVue3,o.isVue3,o.isVue3;function s(e){return e}function c(e){return!!(0,o.getCurrentScope)()&&((0,o.onScopeDispose)(e),!0)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function f(e,t,n={}){const{immediate:r=!0}=n,a=(0,o.ref)(!1);let l=null;function u(){l&&(clearTimeout(l),l=null)}function s(){a.value=!1,u()}function f(...n){u(),a.value=!0,l=setTimeout((()=>{a.value=!1,l=null,e(...n)}),(0,o.unref)(t))}return r&&(a.value=!0,i&&f()),c(s),{isPending:a,start:f,stop:s}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},1446:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},4181:function(e,t,n){"use strict";n.d(t,{gn:function(){return h}});var r=n(7203),o=n(5027);const i=(0,o.o8)({size:{type:(0,o.Cq)([Number,String])},color:{type:String}});var a=n(1446),l=n(9143),u=n(5162),s=n(7675);const c={name:"ElIcon",inheritAttrs:!1},f=(0,r.defineComponent)({...c,props:i,setup(e){const t=e,n=(0,l.s)("icon"),o=(0,r.computed)((()=>t.size||t.color?{fontSize:(0,u.o8)(t.size)?void 0:(0,s.Nn)(t.size),"--color":t.color}:{}));return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("i",(0,r.mergeProps)({class:(0,r.unref)(n).b(),style:(0,r.unref)(o)},e.$attrs),[(0,r.renderSlot)(e.$slots,"default")],16))}});var d=(0,a.Z)(f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]),p=n(2123);const h=(0,p.nz)(d)},9489:function(e,t,n){"use strict";n.d(t,{z8:function(){return q}});var r=n(7203),o=n(7475),i=n(5027),a=n(5711),l=n(7824);const u={},s=(0,i.o8)({a11y:{type:Boolean,default:!0},locale:{type:(0,i.Cq)(Object)},size:a.Pp,button:{type:(0,i.Cq)(Object)},experimentalFeatures:{type:(0,i.Cq)(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:(0,i.Cq)(Object)},zIndex:Number,namespace:{type:String,default:"el"}});(0,r.defineComponent)({name:"ElConfigProvider",props:s,setup(e,{slots:t}){(0,r.watch)((()=>e.message),(e=>{Object.assign(u,null!=e?e:{})}),{immediate:!0,deep:!0});const n=(0,l.A)(e);return()=>(0,r.renderSlot)(t,"default",{config:null==n?void 0:n.value})}});var c=n(6309);const f=(0,i.o8)({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}});var d=n(1446),p=n(9143);const h=["textContent"],g={name:"ElBadge"},v=(0,r.defineComponent)({...g,props:f,setup(e,{expose:t}){const n=e,i=(0,p.s)("badge"),a=(0,r.computed)((()=>n.isDot?"":(0,o.hj)(n.value)&&(0,o.hj)(n.max)&&n.max<n.value?`${n.max}+`:`${n.value}`));return t({content:a}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)((0,r.unref)(i).b())},[(0,r.renderSlot)(e.$slots,"default"),(0,r.createVNode)(r.Transition,{name:`${(0,r.unref)(i).namespace.value}-zoom-in-center`,persisted:""},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createElementVNode)("sup",{class:(0,r.normalizeClass)([(0,r.unref)(i).e("content"),(0,r.unref)(i).em("content",e.type),(0,r.unref)(i).is("fixed",!!e.$slots.default),(0,r.unref)(i).is("dot",e.isDot)]),textContent:(0,r.toDisplayString)((0,r.unref)(a))},null,10,h),[[r.vShow,!e.hidden&&((0,r.unref)(a)||e.isDot)]])])),_:1},8,["name"])],2))}});var m=(0,d.Z)(v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]),y=n(2123);const b=(0,y.nz)(m);var w=n(4181),x=n(5450),C=n(9809);const E=["success","info","warning","error"],S=(0,x.N)({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:"",id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:o.C5?document.body:void 0}),k=(0,i.o8)({customClass:{type:String,default:S.customClass},center:{type:Boolean,default:S.center},dangerouslyUseHTMLString:{type:Boolean,default:S.dangerouslyUseHTMLString},duration:{type:Number,default:S.duration},icon:{type:C.AA,default:S.icon},id:{type:String,default:S.id},message:{type:(0,i.Cq)([String,Object,Function]),default:S.message},onClose:{type:(0,i.Cq)(Function),required:!1},showClose:{type:Boolean,default:S.showClose},type:{type:String,values:E,default:S.type},offset:{type:Number,default:S.offset},zIndex:{type:Number,default:S.zIndex},grouping:{type:Boolean,default:S.grouping},repeatNum:{type:Number,default:S.repeatNum}}),D={destroy:()=>!0},A=(0,r.shallowReactive)([]),O=e=>{const t=A.findIndex((t=>t.id===e)),n=A[t];let r;return t>0&&(r=A[t-1]),{current:n,prev:r}},_=e=>{const{prev:t}=O(e);return t?t.vm.exposeProxy.bottom:0};var B=n(4309);const F=["id"],j=["innerHTML"],P={name:"ElMessage"},T=(0,r.defineComponent)({...P,props:k,emits:D,setup(e,{expose:t}){const n=e,{Close:i}=C.f5,a=(0,p.s)("message"),l=(0,r.ref)(),u=(0,r.ref)(!1),s=(0,r.ref)(0);let f;const d=(0,r.computed)((()=>n.type?"error"===n.type?"danger":n.type:"info")),h=(0,r.computed)((()=>{const e=n.type;return{[a.bm("icon",e)]:e&&C.Rp[e]}})),g=(0,r.computed)((()=>n.icon||C.Rp[n.type]||"")),v=(0,r.computed)((()=>_(n.id))),m=(0,r.computed)((()=>n.offset+v.value)),y=(0,r.computed)((()=>s.value+m.value)),x=(0,r.computed)((()=>({top:`${m.value}px`,zIndex:n.zIndex})));function E(){0!==n.duration&&({stop:f}=(0,o.eM)((()=>{k()}),n.duration))}function S(){null==f||f()}function k(){u.value=!1}function D({code:e}){e===B.n.esc&&k()}return(0,r.onMounted)((()=>{E(),u.value=!0})),(0,r.watch)((()=>n.repeatNum),(()=>{S(),E()})),(0,c.ORN)(document,"keydown",D),(0,c.yU7)(l,(()=>{s.value=l.value.getBoundingClientRect().height})),t({visible:u,bottom:y,close:k}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(r.Transition,{name:(0,r.unref)(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy")),persisted:""},{default:(0,r.withCtx)((()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",{id:e.id,ref_key:"messageRef",ref:l,class:(0,r.normalizeClass)([(0,r.unref)(a).b(),{[(0,r.unref)(a).m(e.type)]:e.type&&!e.icon},(0,r.unref)(a).is("center",e.center),(0,r.unref)(a).is("closable",e.showClose),e.customClass]),style:(0,r.normalizeStyle)((0,r.unref)(x)),role:"alert",onMouseenter:S,onMouseleave:E},[e.repeatNum>1?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(b),{key:0,value:e.repeatNum,type:(0,r.unref)(d),class:(0,r.normalizeClass)((0,r.unref)(a).e("badge"))},null,8,["value","type","class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.unref)(g)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(w.gn),{key:1,class:(0,r.normalizeClass)([(0,r.unref)(a).e("icon"),(0,r.unref)(h)])},{default:(0,r.withCtx)((()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(g))))])),_:1},8,["class"])):(0,r.createCommentVNode)("v-if",!0),(0,r.renderSlot)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createCommentVNode)(" Caution here, message could've been compromised, never use user's input as message "),(0,r.createElementVNode)("p",{class:(0,r.normalizeClass)((0,r.unref)(a).e("content")),innerHTML:e.message},null,10,j)],2112)):((0,r.openBlock)(),(0,r.createElementBlock)("p",{key:0,class:(0,r.normalizeClass)((0,r.unref)(a).e("content"))},(0,r.toDisplayString)(e.message),3))])),e.showClose?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(w.gn),{key:2,class:(0,r.normalizeClass)((0,r.unref)(a).e("closeBtn")),onClick:(0,r.withModifiers)(k,["stop"])},{default:(0,r.withCtx)((()=>[(0,r.createVNode)((0,r.unref)(i))])),_:1},8,["class","onClick"])):(0,r.createCommentVNode)("v-if",!0)],46,F),[[r.vShow,u.value]])])),_:3},8,["name","onBeforeLeave"]))}});var N=(0,d.Z)(T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]),I=n(3577),L=n(5162),M=n(4721),R=n(4568);let z=1;const V=e=>{const t=!e||(0,I.HD)(e)||(0,r.isVNode)(e)||(0,I.mf)(e)?{message:e}:e,n={...S,...t};if(n.appendTo){if((0,I.HD)(n.appendTo)){let e=document.querySelector(n.appendTo);(0,L.kK)(e)||((0,M.N)("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}}else n.appendTo=document.body;return n},$=e=>{const t=A.indexOf(e);if(-1===t)return;A.splice(t,1);const{handler:n}=e;n.close()},U=({appendTo:e,...t},n)=>{const{nextZIndex:o}=(0,R.C)(),i="message_"+z++,a=t.onClose,l=document.createElement("div"),u={...t,zIndex:o()+t.zIndex,id:i,onClose:()=>{null==a||a(),$(d)},onDestroy:()=>{(0,r.render)(null,l)}},s=(0,r.createVNode)(N,u,(0,I.mf)(u.message)||(0,r.isVNode)(u.message)?{default:u.message}:null);s.appContext=n||H._context,(0,r.render)(s,l),e.appendChild(l.firstElementChild);const c=s.component,f={close:()=>{c.exposeProxy.visible=!1}},d={id:i,vnode:s,vm:c,handler:f,props:s.component.props};return d},H=(e={},t)=>{if(!o.C5)return{close:()=>{}};if((0,o.hj)(u.max)&&A.length>=u.max)return{close:()=>{}};const n=V(e);if(n.grouping&&A.length){const e=A.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}const r=U(n,t);return A.push(r),r.handler};function W(e){for(const t of A)e&&e!==t.props.type||t.handler.close()}E.forEach((e=>{H[e]=(t={},n)=>{const r=V(t);return H({...r,type:e},n)}})),H.closeAll=W,H._context=null;const q=(0,y.oN)(H,"$message")},4309:function(e,t,n){"use strict";n.d(t,{n:function(){return r}});const r={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"}},209:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});const r=["","default","small","large"]},5711:function(e,t,n){"use strict";n.d(t,{B4:function(){return f},tH:function(){return c},Pp:function(){return s}});var r=n(7203);const o=e=>{const t=(0,r.getCurrentInstance)();return(0,r.computed)((()=>{var n,r;return null!=(r=(null==(n=t.proxy)?void 0:n.$props)[e])?r:void 0}))};var i=n(7824),a=n(5027),l=n(209),u=n(7815);const s=(0,a.l0)({type:String,values:l.k,required:!1}),c=(e,t={})=>{const n=(0,r.ref)(void 0),a=t.prop?n:o("size"),l=t.global?n:(0,i.W)("size"),s=t.form?{size:void 0}:(0,r.inject)(u.H,void 0),c=t.formItem?{size:void 0}:(0,r.inject)(u.K,void 0);return(0,r.computed)((()=>a.value||(0,r.unref)(e)||(null==c?void 0:c.size)||(null==s?void 0:s.size)||l.value||""))},f=e=>{const t=o("disabled"),n=(0,r.inject)(u.H,void 0);return(0,r.computed)((()=>t.value||(0,r.unref)(e)||(null==n?void 0:n.disabled)||!1))}},7824:function(e,t,n){"use strict";n.d(t,{A:function(){return s},W:function(){return u}});var r=n(7203);const o=Symbol();var i=n(4721);const a=e=>Object.keys(e),l=(0,r.ref)();function u(e,t){const n=(0,r.getCurrentInstance)()?(0,r.inject)(o,l):l;return e?(0,r.computed)((()=>{var r,o;return null!=(o=null==(r=n.value)?void 0:r[e])?o:t})):n}const s=(e,t,n=!1)=>{var a;const s=!!(0,r.getCurrentInstance)(),f=s?u():void 0,d=null!=(a=null==t?void 0:t.provide)?a:s?r.provide:void 0;if(!d)return void(0,i.N)("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const p=(0,r.computed)((()=>{const t=(0,r.unref)(e);return(null==f?void 0:f.value)?c(f.value,t):t}));return d(o,p),!n&&l.value||(l.value=p.value),p},c=(e,t)=>{var n;const r=[...new Set([...a(e),...a(t)])],o={};for(const i of r)o[i]=null!=(n=t[i])?n:e[i];return o}},9143:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var r=n(7203),o=n(7824);const i="el",a="is-",l=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},u=e=>{const t=(0,o.W)("namespace"),n=(0,r.computed)((()=>t.value||i)),u=(t="")=>l((0,r.unref)(n),e,t,"",""),s=t=>t?l((0,r.unref)(n),e,"",t,""):"",c=t=>t?l((0,r.unref)(n),e,"","",t):"",f=(t,o)=>t&&o?l((0,r.unref)(n),e,t,o,""):"",d=(t,o)=>t&&o?l((0,r.unref)(n),e,"",t,o):"",p=(t,o)=>t&&o?l((0,r.unref)(n),e,t,"",o):"",h=(t,o,i)=>t&&o&&i?l((0,r.unref)(n),e,t,o,i):"",g=(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`${a}${e}`:""},v=e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},m=t=>{const r={};for(const o in t)t[o]&&(r[`--${n.value}-${e}-${o}`]=t[o]);return r},y=e=>`--${n.value}-${e}`,b=t=>`--${n.value}-${e}-${t}`;return{namespace:n,b:u,e:s,m:c,be:f,em:d,bm:p,bem:h,is:g,cssVar:v,cssVarName:y,cssVarBlock:m,cssVarBlockName:b}}},4568:function(e,t,n){"use strict";n.d(t,{C:function(){return a}});var r=n(7203),o=n(7824);const i=(0,r.ref)(0),a=()=>{const e=(0,o.W)("zIndex",2e3),t=(0,r.computed)((()=>e.value+i.value)),n=()=>(i.value++,t.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:n}}},7815:function(e,t,n){"use strict";n.d(t,{H:function(){return r},K:function(){return o}});const r=Symbol("formContextKey"),o=Symbol("formItemContextKey")},7675:function(e,t,n){"use strict";n.d(t,{C2:function(){return f},IV:function(){return c},Nn:function(){return d},cn:function(){return s},pv:function(){return u}});var r=n(7475),o=n(4721),i=n(3577);const a="utils/dom/style",l=(e="")=>e.split(" ").filter((e=>!!e.trim())),u=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},s=(e,t)=>{e&&t.trim()&&e.classList.add(...l(t))},c=(e,t)=>{e&&t.trim()&&e.classList.remove(...l(t))},f=(e,t)=>{var n;if(!r.C5||!e||!t)return"";let o=(0,i._A)(t);"float"===o&&(o="cssFloat");try{const t=e.style[o];if(t)return t;const r=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return r?r[o]:""}catch(a){return e.style[o]}};function d(e,t="px"){return e?(0,i.HD)(e)?e:(0,r.hj)(e)?`${e}${t}`:void(0,o.N)(a,"binding value must be a string or number"):""}},4721:function(e,t,n){"use strict";n.d(t,{N:function(){return i},_:function(){return o}});class r extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function o(e,t){throw new r(`[${e}] ${t}`)}function i(e,t){0}},5162:function(e,t,n){"use strict";n.d(t,{kK:function(){return o},o8:function(){return r}});n(7203);const r=e=>void 0===e,o=e=>"undefined"!==typeof Element&&e instanceof Element},5450:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});const r=e=>e},9809:function(e,t,n){"use strict";n.d(t,{AA:function(){return i},Rp:function(){return l},f5:function(){return a},rU:function(){return u}});var r=n(5781),o=n(5027);const i=(0,o.Cq)([String,Object,Function]),a=(r.x8P,{Close:r.x8P,SuccessFilled:r.c5o,InfoFilled:r.cEj,WarningFilled:r.Rrw,CircleCloseFilled:r.Tw$}),l={success:r.c5o,warning:r.Rrw,error:r.Tw$,info:r.cEj},u={validating:r.gbz,success:r.yGk,error:r.K41}},2123:function(e,t,n){"use strict";n.d(t,{dp:function(){return a},nz:function(){return o},oN:function(){return i}});var r=n(3577);const o=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},i=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),a=e=>(e.install=r.dG,e)},5027:function(e,t,n){"use strict";n.d(t,{Cq:function(){return l},l0:function(){return s},o8:function(){return c}});var r=n(7203),o=n(5937),i=n(3577);const a="__epPropKey",l=e=>e,u=e=>(0,i.Kn)(e)&&!!e[a],s=(e,t)=>{if(!(0,i.Kn)(e)||u(e))return e;const{values:n,required:o,default:l,type:s,validator:c}=e,f=n||c?o=>{let a=!1,u=[];if(n&&(u=Array.from(n),(0,i.RI)(e,"default")&&u.push(l),a||(a=u.includes(o))),c&&(a||(a=c(o))),!a&&u.length>0){const e=[...new Set(u)].map((e=>JSON.stringify(e))).join(", ");(0,r.warn)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(o)}.`)}return a}:void 0,d={type:s,required:!!o,validator:f,[a]:!0};return(0,i.RI)(e,"default")&&(d.default=l),d},c=e=>(0,o.Z)(Object.entries(e).map((([e,t])=>[e,s(t,e)])))},5937:function(e,t){"use strict";function n(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}t["Z"]=n},6121:function(e,t,n){"use strict";n.d(t,{isVue3:function(){return o}});var r=n(7203);n.o(r,"getCurrentScope")&&n.d(t,{getCurrentScope:function(){return r.getCurrentScope}}),n.o(r,"onScopeDispose")&&n.d(t,{onScopeDispose:function(){return r.onScopeDispose}}),n.o(r,"ref")&&n.d(t,{ref:function(){return r.ref}}),n.o(r,"unref")&&n.d(t,{unref:function(){return r.unref}}),n.o(r,"watch")&&n.d(t,{watch:function(){return r.watch}});var o=!0}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.r(o),r.d(o,{setupJwt:function(){return l}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}var n=r(7877),i=r(4104),a=r.n(i);const l=e=>{const t=r(5355);l.installed||(l.installed=!0,t.keys().map((n=>{const r=t(n),o=r.default.name;e.component(o,r.default||r)})))};n.Boot.registerModule(a())}(),o}()}));
159
- //# sourceMappingURL=jwt-ui.umd.min.js.map