oga-ui 0.1.38
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.
- package/README.md +251 -0
- package/avatar/index.css +2 -0
- package/avatar/index.es.ts +1318 -0
- package/avatar/index.umd.ts +2 -0
- package/editor/index.css +2 -0
- package/editor/index.es.ts +31668 -0
- package/editor/index.umd.ts +81 -0
- package/form/index.css +2 -0
- package/form/index.es.ts +28 -0
- package/form/index.umd.ts +1 -0
- package/form-item/index.css +2 -0
- package/form-item/index.es.ts +28 -0
- package/form-item/index.umd.ts +1 -0
- package/iconfont/index.css +2 -0
- package/iconfont/index.es.ts +86 -0
- package/iconfont/index.umd.ts +1 -0
- package/image-upload/index.css +2 -0
- package/image-upload/index.es.ts +8003 -0
- package/image-upload/index.umd.ts +12 -0
- package/index.css +2 -0
- package/index.es.ts +38553 -0
- package/index.umd.ts +88 -0
- package/input/index.css +2 -0
- package/input/index.es.ts +76 -0
- package/input/index.umd.ts +1 -0
- package/layout/index.css +2 -0
- package/layout/index.es.ts +104 -0
- package/layout/index.umd.ts +1 -0
- package/package.json +17 -0
- package/page/index.css +2 -0
- package/page/index.es.ts +3232 -0
- package/page/index.umd.ts +5 -0
- package/paging/index.css +2 -0
- package/paging/index.es.ts +55 -0
- package/paging/index.umd.ts +1 -0
- package/progress/index.css +2 -0
- package/progress/index.es.ts +36 -0
- package/progress/index.umd.ts +1 -0
- package/section/index.css +2 -0
- package/section/index.es.ts +41 -0
- package/section/index.umd.ts +1 -0
- package/table/index.css +2 -0
- package/table/index.es.ts +3517 -0
- package/table/index.umd.ts +5 -0
- package/unsaved/index.css +2 -0
- package/unsaved/index.es.ts +3161 -0
- package/unsaved/index.umd.ts +5 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require(`vue`)):typeof define==`function`&&define.amd?define([`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.index=t(e.Vue))})(this,function(e){var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e};e=((e,r,i)=>(i=e==null?{}:t(a(e)),s(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)))(e);function c(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}var l={};function u(e){l[e]||(l[e]=!0,c(e))}var d=typeof window<`u`,f,p;if(process.env.NODE_ENV!==`production`){let e=d&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(f=t=>{e.mark(t)},p=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}var m=/\{([0-9a-zA-Z]+)\}/g;function h(e,...t){return t.length===1&&P(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(m,(e,n)=>t.hasOwnProperty(n)?t[n]:``)}var g=(e,t=!1)=>t?Symbol.for(e):Symbol(e),_=(e,t,n)=>v({l:e,k:t,s:n}),v=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),y=e=>typeof e==`number`&&isFinite(e),b=e=>ae(e)===`[object Date]`,x=e=>ae(e)===`[object RegExp]`,S=e=>F(e)&&Object.keys(e).length===0,C=Object.assign,w=Object.create,T=(e=null)=>w(e),E,D=()=>E||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:T();function O(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function k(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function ee(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${k(n)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${k(n)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!==`production`&&c(`Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages.`),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,`$1on$3`)),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(t=>{e=e.replace(t,`$1javascript:`)}),e}var te=Object.prototype.hasOwnProperty;function A(e,t){return te.call(e,t)}var ne=Array.isArray,j=e=>typeof e==`function`,M=e=>typeof e==`string`,N=e=>typeof e==`boolean`,P=e=>typeof e==`object`&&!!e,re=e=>P(e)&&j(e.then)&&j(e.catch),ie=Object.prototype.toString,ae=e=>ie.call(e),F=e=>ae(e)===`[object Object]`,oe=e=>e==null?``:ne(e)||F(e)&&e.toString===ie?JSON.stringify(e,null,2):String(e);function se(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}var ce=2;function le(e,t=0,n=e.length){let r=e.split(/\r?\n/),i=0,a=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+1,i>=t){for(let o=e-ce;o<=e+ce||n>i;o++){if(o<0||o>=r.length)continue;let s=o+1;a.push(`${s}${` `.repeat(3-String(s).length)}| ${r[o]}`);let c=r[o].length;if(o===e){let e=t-(i-c)+1,r=Math.max(1,n>i?c-e:n-t);a.push(` | `+` `.repeat(e)+`^`.repeat(r))}else if(o>e){if(n>i){let e=Math.max(Math.min(n-i,c),1);a.push(` | `+`^`.repeat(e))}i+=c+1}}break}return a.join(`
|
|
2
|
+
`)}function ue(){let e=new Map;return{events:e,on(t,n){let r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){let r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map(e=>e(n)),(e.get(`*`)||[]).slice().map(e=>e(t,n))}}}var de=e=>!P(e)||ne(e);function fe(e,t){if(de(e)||de(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{r!==`__proto__`&&(P(e[r])&&!P(t[r])&&(t[r]=Array.isArray(e[r])?[]:T()),de(t[r])||de(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))})}}function pe(e,t,n){return{line:e,column:t,offset:n}}function me(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var I={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},he={[I.EXPECTED_TOKEN]:`Expected token: '{0}'`,[I.INVALID_TOKEN_IN_PLACEHOLDER]:`Invalid token in placeholder: '{0}'`,[I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:`Unterminated single quote in placeholder`,[I.UNKNOWN_ESCAPE_SEQUENCE]:`Unknown escape sequence: \\{0}`,[I.INVALID_UNICODE_ESCAPE_SEQUENCE]:`Invalid unicode escape sequence: {0}`,[I.UNBALANCED_CLOSING_BRACE]:`Unbalanced closing brace`,[I.UNTERMINATED_CLOSING_BRACE]:`Unterminated closing brace`,[I.EMPTY_PLACEHOLDER]:`Empty placeholder`,[I.NOT_ALLOW_NEST_PLACEHOLDER]:`Not allowed nest placeholder`,[I.INVALID_LINKED_FORMAT]:`Invalid linked format`,[I.MUST_HAVE_MESSAGES_IN_PLURAL]:`Plural must have messages`,[I.UNEXPECTED_EMPTY_LINKED_MODIFIER]:`Unexpected empty linked modifier`,[I.UNEXPECTED_EMPTY_LINKED_KEY]:`Unexpected empty linked key`,[I.UNEXPECTED_LEXICAL_ANALYSIS]:`Unexpected lexical analysis in token: '{0}'`,[I.UNHANDLED_CODEGEN_NODE_TYPE]:`unhandled codegen node type: '{0}'`,[I.UNHANDLED_MINIFIER_NODE_TYPE]:`unhandled mimifier node type: '{0}'`};function ge(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=process.env.NODE_ENV===`production`?e:h((i||he)[e]||``,...a||[]),s=SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function _e(e){throw e}var ve=/<\/?[\w\s="/.':;#-\/]+>/,ye=e=>ve.test(e),be=` `,xe=`\r`,Se=`
|
|
3
|
+
`,Ce=`\u2028`,we=`\u2029`;function Te(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===xe&&t[e+1]===Se,s=e=>t[e]===Se,c=e=>t[e]===we,l=e=>t[e]===Ce,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?Se:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var Ee=void 0,De=`'`,Oe=`tokenizer`;function ke(e,t={}){let n=t.location!==!1,r=Te(e),i=()=>r.index(),a=()=>pe(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();t.column+=r,t.offset+=r,u&&u(ge(e,n?me(a.startLoc,t):null,{domain:Oe,args:i}))}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=me(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(I.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===be||e.currentPeek()===Se;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===Ee)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===Ee)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===De;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(!(n===7||n===11))return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===be||!t?!1:t===Se?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?!(r===be||r===Se):i===be?(e.peek(),n(!0,be)):i===Se?(e.peek(),n(!0,Se)):!0},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();return n===Ee?Ee:t(n)?(e.next(),n):null}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function ee(e){return O(e,k)}function te(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function A(e){return O(e,te)}function ne(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function j(e){return O(e,ne)}function M(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function N(e){return O(e,M)}function P(e){let t=``,n=``;for(;t=j(e);)n+=t;return n}function re(e){let t=``;for(;;){let n=e.currentChar();if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;if(n===be||n===Se)if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next();else t+=n,e.next()}return t}function ie(e){g(e);let t=``,n=``;for(;t=A(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==Ee&&r!==be&&r!==Se&&r!==` `){let t=ue(e);return d(I.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===Ee&&d(I.UNTERMINATED_CLOSING_BRACE,a(),0),n}function ae(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${P(e)}`):t+=P(e),e.currentChar()===Ee&&d(I.UNTERMINATED_CLOSING_BRACE,a(),0),t}function F(e){return e!==De&&e!==Se}function oe(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,F);)t===`\\`?n+=se(e):n+=t;let r=e.currentChar();return r===Se||r===Ee?(d(I.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===Se&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function se(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return ce(e,t,4);case`U`:return ce(e,t,6);default:return d(I.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function ce(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=N(e);if(!n){d(I.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function le(e){return e!==`{`&&e!==`}`&&e!==be&&e!==Se}function ue(e){g(e);let t=``,n=``;for(;t=O(e,le);)n+=t;return n}function de(e){let t=``,n=``;for(;t=ee(e);)n+=t;return n}function fe(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===be?n:(n+=r,e.next(),t(n))};return t(``)}function he(e){g(e);let t=m(e,`|`);return g(e),t}function _e(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(I.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(I.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(I.UNTERMINATED_CLOSING_BRACE,a(),0),n=ve(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(I.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,he(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(I.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,ye(e,t);if(r=y(e,t))return n=f(t,4,ie(e)),g(e),n;if(i=b(e,t))return n=f(t,5,ae(e)),g(e),n;if(o=x(e,t))return n=f(t,6,oe(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,ue(e)),d(I.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function ve(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===Se||i===be)&&d(I.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,he(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),ve(e,t)):C(e,t)?(g(e),f(t,11,de(e))):T(e,t)?(g(e),i===`{`?_e(e,t)||r:f(t,10,fe(e))):(n===7&&d(I.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,ye(e,t))}}function ye(e,t){let n={type:13};if(t.braceNest>0)return _e(e,t)||p(t);if(t.inLinked)return ve(e,t)||p(t);switch(e.currentChar()){case`{`:return _e(e,t)||p(t);case`}`:return d(I.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return ve(e,t)||p(t);default:if(E(e))return n=f(t,1,he(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,re(e));break}return n}function xe(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===Ee?f(c,13):ye(r,c)}return{nextToken:xe,currentOffset:i,currentPosition:a,context:l}}var Ae=`parser`,je=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Me(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function Ne(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();s.offset+=a,s.column+=a,n&&n(ge(r,t?me(i,s):null,{domain:Ae,args:o}))}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(je,Me),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,Pe(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,I.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(o)),n.key=l(e,o.value||``);break;default:{r(e,I.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,I.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Pe(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,I.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=ke(n,C({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,I.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function Pe(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function Fe(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function Ie(e,t){for(let n=0;n<e.length;n++)Le(e[n],t)}function Le(e,t){switch(e.type){case 1:Ie(e.cases,t),t.helper(`plural`);break;case 2:Ie(e.items,t);break;case 6:Le(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`);break}}function Re(e,t={}){let n=Fe(e);n.helper(`normalize`),e.body&&Le(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function ze(e){let t=e.body;return t.type===2?Be(t):t.cases.forEach(e=>Be(e)),e}function Be(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=se(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}var Ve=`minifier`;function He(e){switch(e.t=e.type,e.type){case 0:{let t=e;He(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)He(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)He(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;He(t.key),t.k=t.key,delete t.key,t.modifier&&(He(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!==`production`)throw ge(I.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ve,args:[e.type]})}delete e.type}var Ue=`parser`;function We(e,t){let{sourceMap:n,filename:r,breakLineCode:i,needIndent:a}=t,o=t.location!==!1,s={filename:r,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);let c=()=>s;function l(e,t){s.code+=e}function u(e,t=!0){let n=t?i:``;l(a?n+` `.repeat(e):n)}function d(e=!0){let t=++s.indentLevel;e&&u(t)}function f(e=!0){let t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}return{context:c,push:l,indent:d,deindent:f,newline:p,helper:e=>`_${e}`,needIndent:()=>s.needIndent}}function Ge(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),Ye(e,t.key),t.modifier?(e.push(`, `),Ye(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function Ke(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(Ye(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function qe(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(Ye(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function Je(e,t){t.body?Ye(e,t.body):e.push(`null`)}function Ye(e,t){let{helper:n}=e;switch(t.type){case 0:Je(e,t);break;case 1:qe(e,t);break;case 2:Ke(e,t);break;case 6:Ge(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!==`production`)throw ge(I.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ue,args:[t.type]})}}var Xe=(e,t={})=>{let n=M(t.mode)?t.mode:`normal`,r=M(t.filename)?t.filename:`message.intl`,i=!!t.sourceMap,a=t.breakLineCode==null?n===`arrow`?`;`:`
|
|
4
|
+
`:t.breakLineCode,o=t.needIndent?t.needIndent:n!==`arrow`,s=e.helpers||[],c=We(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});c.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),c.indent(o),s.length>0&&(c.push(`const { ${se(s.map(e=>`${e}: _${e}`),`, `)} } = ctx`),c.newline()),c.push(`return `),Ye(c,e),c.deindent(o),c.push(`}`),delete e.helpers;let{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function Ze(e,t={}){let n=C({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=Ne(n).parse(e);return r?(a&&ze(o),i&&He(o),{ast:o,code:``}):(Re(o,n),Xe(o,n))}function Qe(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(D().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(D().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function $e(e){return P(e)&<(e)===0&&(A(e,`b`)||A(e,`body`))}var et=[`b`,`body`];function tt(e){return gt(e,et)}var nt=[`c`,`cases`];function rt(e){return gt(e,nt,[])}var it=[`s`,`static`];function at(e){return gt(e,it)}var ot=[`i`,`items`];function st(e){return gt(e,ot,[])}var ct=[`t`,`type`];function lt(e){return gt(e,ct)}var ut=[`v`,`value`];function dt(e,t){let n=gt(e,ut);if(n!=null)return n;throw vt(t)}var ft=[`m`,`modifier`];function pt(e){return gt(e,ft)}var mt=[`k`,`key`];function ht(e){let t=gt(e,mt);if(t)return t;throw vt(6)}function gt(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(A(e,r)&&e[r]!=null)return e[r]}return n}var _t=[...et,...nt,...it,...ot,...mt,...ft,...ut,...ct];function vt(e){return Error(`unhandled node type: ${e}`)}function yt(e){return t=>eee(t,e)}function eee(e,t){let n=tt(t);if(n==null)throw vt(0);if(lt(n)===1){let t=rt(n);return e.plural(t.reduce((t,n)=>[...t,bt(e,n)],[]))}else return bt(e,n)}function bt(e,t){let n=at(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=st(t).reduce((t,n)=>[...t,xt(e,n)],[]);return e.normalize(n)}}function xt(e,t){let n=lt(t);switch(n){case 3:return dt(t,n);case 9:return dt(t,n);case 4:{let r=t;if(A(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(A(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw vt(n)}case 5:{let r=t;if(A(r,`i`)&&y(r.i))return e.interpolate(e.list(r.i));if(A(r,`index`)&&y(r.index))return e.interpolate(e.list(r.index));throw vt(n)}case 6:{let n=t,r=pt(n),i=ht(n);return e.linked(xt(e,i),r?xt(e,r):void 0,e.type)}case 7:return dt(t,n);case 8:return dt(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var tee=`Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;function nee(e,t){t&&ye(e)&&c(h(tee,{source:e}))}var ree=e=>e,St=T();function Ct(e,t={}){let n=!1,r=t.onError||_e;return t.onError=e=>{n=!0,r(e)},{...Ze(e,t),detectError:n}}function iee(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){let n=N(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!==`production`&&nee(e,n);let r=(t.onCacheKey||ree)(e),i=St[r];if(i)return i;let{ast:a,detectError:o}=Ct(e,{...t,location:process.env.NODE_ENV!==`production`,jit:!0}),s=yt(a);return o?s:St[r]=s}else{if(process.env.NODE_ENV!==`production`&&!$e(e))return c(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);let n=e.cacheKey;return n?St[n]||(St[n]=yt(e)):yt(e)}}var wt=null;function aee(e){wt=e}function oee(e,t,n){wt&&wt.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var see=cee(`function:translate`);function cee(e){return t=>wt&&wt.emit(e,t)}var Tt={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Et(e){return ge(e,null,process.env.NODE_ENV===`production`?void 0:{messages:lee})}var lee={[Tt.INVALID_ARGUMENT]:`Invalid arguments`,[Tt.INVALID_DATE_ARGUMENT]:`The date provided is an invalid Date object.Make sure your Date represents a valid date.`,[Tt.INVALID_ISO_DATE_ARGUMENT]:`The argument provided is not a valid ISO date string`,[Tt.NOT_SUPPORT_NON_STRING_MESSAGE]:`Not support non-string message`,[Tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:`cannot support promise value`,[Tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:`cannot support async function`,[Tt.NOT_SUPPORT_LOCALE_TYPE]:`cannot support locale type`};function Dt(e,t){return t.locale==null?kt(e.locale):kt(t.locale)}var Ot;function kt(e){if(M(e))return e;if(j(e)){if(e.resolvedOnce&&Ot!=null)return Ot;if(e.constructor.name===`Function`){let t=e();if(re(t))throw Et(Tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ot=t}else throw Et(Tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Et(Tt.NOT_SUPPORT_LOCALE_TYPE)}function uee(e,t,n){return[...new Set([n,...ne(t)?t:P(t)?Object.keys(t):M(t)?[t]:[n]])]}function At(e,t,n){let r=M(n)?n:Ht,i=e;i.__localeChainCache||=new Map;let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];for(;ne(e);)e=jt(a,e,t);let o=ne(t)||!F(t)?t:t.default?t.default:null;e=M(o)?[o]:o,ne(e)&&jt(a,e,!1),i.__localeChainCache.set(r,a)}return a}function jt(e,t,n){let r=!0;for(let i=0;i<t.length&&N(r);i++){let a=t[i];M(a)&&(r=dee(e,t[i],n))}return r}function dee(e,t,n){let r,i=t.split(`-`);do r=fee(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function fee(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(ne(n)||F(n))&&n[i]&&(r=n[i])}return r}var Mt=[];Mt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Mt[1]={w:[1],".":[2],"[":[4],o:[7]},Mt[2]={w:[2],i:[3,0],0:[3,0]},Mt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Mt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Mt[5]={"'":[4,0],o:8,l:[5,0]},Mt[6]={'"':[4,0],o:8,l:[6,0]};var Nt=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Pt(e){return Nt.test(e)}function Ft(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function It(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function Lt(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:Pt(t)?Ft(t):`*`+t}function Rt(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=Lt(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=It(a),d=Mt[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var zt=new Map;function pee(e,t){return P(e)?e[t]:null}function mee(e,t){if(!P(e))return null;let n=zt.get(t);if(n||(n=Rt(t),n&&zt.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(_t.includes(e)&&$e(i))return null;let t=i[e];if(t===void 0||j(i))return null;i=t,a++}return i}var Bt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},hee={[Bt.NOT_FOUND_KEY]:`Not found '{key}' key in '{locale}' locale messages.`,[Bt.FALLBACK_TO_TRANSLATE]:`Fall back to translate '{key}' key with '{target}' locale.`,[Bt.CANNOT_FORMAT_NUMBER]:`Cannot format a number value due to not supported Intl.NumberFormat.`,[Bt.FALLBACK_TO_NUMBER_FORMAT]:`Fall back to number format '{key}' key with '{target}' locale.`,[Bt.CANNOT_FORMAT_DATE]:`Cannot format a date value due to not supported Intl.DateTimeFormat.`,[Bt.FALLBACK_TO_DATE_FORMAT]:`Fall back to datetime format '{key}' key with '{target}' locale.`,[Bt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:`This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.`};function Vt(e,...t){return h(hee[e],...t)}var gee=`11.2.8`,Ht=`en-US`,Ut=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _ee(){return{upper:(e,t)=>t===`text`&&M(e)?e.toUpperCase():t===`vnode`&&P(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&M(e)?e.toLowerCase():t===`vnode`&&P(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&M(e)?Ut(e):t===`vnode`&&P(e)&&`__v_isVNode`in e?Ut(e.children):e}}var Wt;function vee(e){Wt=e}var Gt;function yee(e){Gt=e}var Kt;function bee(e){Kt=e}var xee=null,See=()=>xee,qt=null,Jt=e=>{qt=e},Cee=()=>qt,Yt=0;function wee(e={}){let t=j(e.onWarn)?e.onWarn:c,n=M(e.version)?e.version:gee,r=M(e.locale)||j(e.locale)?e.locale:Ht,i=j(r)?Ht:r,a=ne(e.fallbackLocale)||F(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=F(e.messages)?e.messages:Xt(i),s=F(e.datetimeFormats)?e.datetimeFormats:Xt(i),l=F(e.numberFormats)?e.numberFormats:Xt(i),d=C(T(),e.modifiers,_ee()),f=e.pluralRules||T(),p=j(e.missing)?e.missing:null,m=N(e.missingWarn)||x(e.missingWarn)?e.missingWarn:!0,h=N(e.fallbackWarn)||x(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,_=!!e.unresolving,v=j(e.postTranslation)?e.postTranslation:null,y=F(e.processor)?e.processor:null,b=N(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,w=j(e.messageCompiler)?e.messageCompiler:Wt;process.env.NODE_ENV!==`production`&&j(e.messageCompiler)&&u(Vt(Bt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));let E=j(e.messageResolver)?e.messageResolver:Gt||pee,D=j(e.localeFallbacker)?e.localeFallbacker:Kt||uee,O=P(e.fallbackContext)?e.fallbackContext:void 0,k=e,ee=P(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,te=P(k.__numberFormatters)?k.__numberFormatters:new Map,A=P(k.__meta)?k.__meta:{};Yt++;let re={version:n,cid:Yt,locale:r,fallbackLocale:a,messages:o,modifiers:d,pluralRules:f,missing:p,missingWarn:m,fallbackWarn:h,fallbackFormat:g,unresolving:_,postTranslation:v,processor:y,warnHtmlMessage:b,escapeParameter:S,messageCompiler:w,messageResolver:E,localeFallbacker:D,fallbackContext:O,onWarn:t,__meta:A};return re.datetimeFormats=s,re.numberFormats=l,re.__datetimeFormatters=ee,re.__numberFormatters=te,process.env.NODE_ENV!==`production`&&(re.__v_emitter=k.__v_emitter==null?void 0:k.__v_emitter),(process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__)&&oee(re,n,A),re}var Xt=e=>({[e]:T()});function Zt(e,t){return e instanceof RegExp?e.test(t):e}function Qt(e,t){return e instanceof RegExp?e.test(t):e}function $t(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(process.env.NODE_ENV!==`production`){let r=e.__v_emitter;r&&r.emit(`missing`,{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(a!==null){let r=a(e,n,t,i);return M(r)?r:t}else return process.env.NODE_ENV!==`production`&&Qt(r,t)&&o(Vt(Bt.NOT_FOUND_KEY,{key:t,locale:n})),t}function en(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function tn(e,t){return e===t?!1:e.split(`-`)[0]===t.split(`-`)[0]}function nn(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(tn(e,t[r]))return!0;return!1}var rn=typeof Intl<`u`,an={dateTimeFormat:rn&&Intl.DateTimeFormat!==void 0,numberFormat:rn&&Intl.NumberFormat!==void 0};function on(e,...t){let{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!==`production`&&!an.dateTimeFormat)return a(Vt(Bt.CANNOT_FORMAT_DATE)),``;let[c,l,u,d]=cn(...t),f=N(u.missingWarn)?u.missingWarn:e.missingWarn,p=N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Dt(e,u),g=o(e,i,h);if(!M(c)||c===``)return new Intl.DateTimeFormat(h,d).format(l);let _={},v,y=null,b=h,x=null,w=`datetime format`;for(let t=0;t<g.length;t++){if(v=x=g[t],process.env.NODE_ENV!==`production`&&h!==v&&Zt(p,c)&&a(Vt(Bt.FALLBACK_TO_DATE_FORMAT,{key:c,target:v})),process.env.NODE_ENV!==`production`&&h!==v){let t=e.__v_emitter;t&&t.emit(`fallback`,{type:w,key:c,from:b,to:x,groupId:`${w}:${c}`})}if(_=n[v]||{},y=_[c],F(y))break;$t(e,c,v,f,w),b=x}if(!F(y)||!M(v))return r?-1:c;let T=`${v}__${c}`;S(d)||(T=`${T}__${JSON.stringify(d)}`);let E=s.get(T);return E||(E=new Intl.DateTimeFormat(v,C({},y,d)),s.set(T,E)),m?E.formatToParts(l):E.format(l)}var sn=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function cn(...e){let[t,n,r,i]=e,a=T(),o=T(),s;if(M(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Et(Tt.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch{throw Et(Tt.INVALID_ISO_DATE_ARGUMENT)}}else if(b(t)){if(isNaN(t.getTime()))throw Et(Tt.INVALID_DATE_ARGUMENT);s=t}else if(y(t))s=t;else throw Et(Tt.INVALID_ARGUMENT);return M(n)?a.key=n:F(n)&&Object.keys(n).forEach(e=>{sn.includes(e)?o[e]=n[e]:a[e]=n[e]}),M(r)?a.locale=r:F(r)&&(o=r),F(i)&&(o=i),[a.key||``,s,a,o]}function ln(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function un(e,...t){let{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!==`production`&&!an.numberFormat)return a(Vt(Bt.CANNOT_FORMAT_NUMBER)),``;let[c,l,u,d]=fn(...t),f=N(u.missingWarn)?u.missingWarn:e.missingWarn,p=N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=!!u.part,h=Dt(e,u),g=o(e,i,h);if(!M(c)||c===``)return new Intl.NumberFormat(h,d).format(l);let _={},v,y=null,b=h,x=null,w=`number format`;for(let t=0;t<g.length;t++){if(v=x=g[t],process.env.NODE_ENV!==`production`&&h!==v&&Zt(p,c)&&a(Vt(Bt.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:v})),process.env.NODE_ENV!==`production`&&h!==v){let t=e.__v_emitter;t&&t.emit(`fallback`,{type:w,key:c,from:b,to:x,groupId:`${w}:${c}`})}if(_=n[v]||{},y=_[c],F(y))break;$t(e,c,v,f,w),b=x}if(!F(y)||!M(v))return r?-1:c;let T=`${v}__${c}`;S(d)||(T=`${T}__${JSON.stringify(d)}`);let E=s.get(T);return E||(E=new Intl.NumberFormat(v,C({},y,d)),s.set(T,E)),m?E.formatToParts(l):E.format(l)}var dn=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function fn(...e){let[t,n,r,i]=e,a=T(),o=T();if(!y(t))throw Et(Tt.INVALID_ARGUMENT);let s=t;return M(n)?a.key=n:F(n)&&Object.keys(n).forEach(e=>{dn.includes(e)?o[e]=n[e]:a[e]=n[e]}),M(r)?a.locale=r:F(r)&&(o=r),F(i)&&(o=i),[a.key||``,s,a,o]}function pn(e,t,n){let r=e;for(let e in n){let n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}var mn=e=>e,hn=e=>``,gn=`text`,_n=e=>e.length===0?``:se(e),vn=oe;function yn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Tee(e){let t=y(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(y(e.named.count)||y(e.named.n))?y(e.named.count)?e.named.count:y(e.named.n)?e.named.n:t:t}function Eee(e,t){t.count||=e,t.n||=e}function Dee(e={}){let t=e.locale,n=Tee(e),r=P(e.pluralRules)&&M(t)&&j(e.pluralRules[t])?e.pluralRules[t]:yn,i=P(e.pluralRules)&&M(t)&&j(e.pluralRules[t])?yn:void 0,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||T();y(e.pluralIndex)&&Eee(n,c);let l=e=>c[e];function u(t,n){return(j(e.messages)?e.messages(t,!!n):P(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):hn)}let d=t=>e.modifiers?e.modifiers[t]:mn,f=F(e.processor)&&j(e.processor.normalize)?e.processor.normalize:_n,p=F(e.processor)&&j(e.processor.interpolate)?e.processor.interpolate:vn,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?P(n)?(a=n.modifier||a,i=n.type||i):M(n)&&(a=n||a):t.length===2&&(M(n)&&(a=n||a),M(r)&&(i=r||i));let o=u(e,!0)(m),s=i===`vnode`&&ne(o)&&a?o[0]:o;return a?d(a)(s,i):s},message:u,type:F(e.processor)&&M(e.processor.type)?e.processor.type:gn,interpolate:p,normalize:f,values:C(T(),o,c)};return m}var bn=()=>``,xn=e=>j(e);function Sn(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=Tn(...t),d=N(u.missingWarn)?u.missingWarn:e.missingWarn,f=N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=N(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,h=M(u.default)||N(u.default)?N(u.default)?a?l:()=>l:u.default:n?a?l:()=>l:null,g=n||h!=null&&(M(h)||j(h)),_=Dt(e,u);p&&Oee(u);let[v,y,b]=m?[l,_,s[_]||T()]:Cn(e,l,_,o,f,d),x=v,S=l;if(!m&&!(M(x)||$e(x)||xn(x))&&g&&(x=h,S=x),!m&&(!(M(x)||$e(x)||xn(x))||!M(y)))return i?-1:l;if(process.env.NODE_ENV!==`production`&&M(x)&&e.messageCompiler==null)return c(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let w=!1,E=xn(x)?x:wn(e,l,y,x,S,()=>{w=!0});if(w)return x;let D=kee(e,E,Dee(On(e,y,b,u))),O=r?r(D,l):D;if(p&&M(O)&&(O=ee(O)),process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:M(l)?l:xn(x)?x.key:``,locale:y||(xn(x)?x.locale:``),format:M(x)?x:xn(x)?x.source:``,message:O};t.meta=C({},e.__meta,See()||{}),see(t)}return O}function Oee(e){ne(e.list)?e.list=e.list.map(e=>M(e)?O(e):e):P(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=O(e.named[t]))})}function Cn(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),m=T(),h,g=null,_=n,v=null,y=`translate`;for(let r=0;r<u.length;r++){if(h=v=u[r],process.env.NODE_ENV!==`production`&&n!==h&&!tn(n,h)&&Zt(i,t)&&s(Vt(Bt.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!==`production`&&n!==h){let n=e.__v_emitter;n&&n.emit(`fallback`,{type:y,key:t,from:_,to:v,groupId:`${y}:${t}`})}m=o[h]||T();let l=null,b,x;if(process.env.NODE_ENV!==`production`&&d&&(l=window.performance.now(),b=`intlify-message-resolve-start`,x=`intlify-message-resolve-end`,f&&f(b)),(g=c(m,t))===null&&(g=m[t]),process.env.NODE_ENV!==`production`&&d){let n=window.performance.now(),r=e.__v_emitter;r&&l&&g&&r.emit(`message-resolve`,{type:`message-resolve`,key:t,message:g,time:n-l,groupId:`${y}:${t}`}),b&&x&&f&&p&&(f(x),p(`intlify message resolve`,b,x))}if(M(g)||$e(g)||xn(g))break;if(!nn(h,u)){let n=$t(e,t,h,a,y);n!==t&&(g=n)}_=v}return[g,h,m]}function wn(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(xn(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=null,l,u;process.env.NODE_ENV!==`production`&&d&&(c=window.performance.now(),l=`intlify-message-compilation-start`,u=`intlify-message-compilation-end`,f&&f(l));let m=o(r,En(e,n,i,r,s,a));if(process.env.NODE_ENV!==`production`&&d){let n=window.performance.now(),i=e.__v_emitter;i&&c&&i.emit(`message-compilation`,{type:`message-compilation`,message:r,time:n-c,groupId:`translate:${t}`}),l&&u&&f&&p&&(f(u),p(`intlify message compilation`,l,u))}return m.locale=n,m.key=t,m.source=r,m}function kee(e,t,n){let r=null,i,a;process.env.NODE_ENV!==`production`&&d&&(r=window.performance.now(),i=`intlify-message-evaluation-start`,a=`intlify-message-evaluation-end`,f&&f(i));let o=t(n);if(process.env.NODE_ENV!==`production`&&d){let n=window.performance.now(),s=e.__v_emitter;s&&r&&s.emit(`message-evaluation`,{type:`message-evaluation`,value:o,time:n-r,groupId:`translate:${t.key}`}),i&&a&&f&&p&&(f(a),p(`intlify message evaluation`,i,a))}return o}function Tn(...e){let[t,n,r]=e,i=T();if(!M(t)&&!y(t)&&!xn(t)&&!$e(t))throw Et(Tt.INVALID_ARGUMENT);let a=y(t)?String(t):(xn(t),t);return y(n)?i.plural=n:M(n)?i.default=n:F(n)&&!S(n)?i.named=n:ne(n)&&(i.list=n),y(r)?i.plural=r:M(r)?i.default=r:F(r)&&C(i,r),[a,i]}function En(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:t=>{if(a&&a(t),process.env.NODE_ENV!==`production`){let i=Dn(r),a=`Message compilation error: ${t.message}`,o=t.location&&i&&le(i,t.location.start.offset,t.location.end.offset),s=e.__v_emitter;s&&i&&s.emit(`compile-error`,{message:i,error:t.message,start:t.location&&t.location.start.offset,end:t.location&&t.location.end.offset,groupId:`translate:${n}`}),console.error(o?`${a}\n${o}`:a)}else throw t},onCacheKey:e=>_(t,n,e)}}function Dn(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function On(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[,,n]=Cn(u||e,r,t,s,c,l);a=o(n,r)}if(M(a)||$e(a)){let n=!1,i=wn(e,r,t,a,r,()=>{n=!0});return n?bn:i}else if(xn(a))return a;else return bn}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),y(r.plural)&&(d.pluralIndex=r.plural),d}Qe();function kn(){return An().__VUE_DEVTOOLS_GLOBAL_HOOK__}function An(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}let jn=typeof Proxy==`function`;var Mn,Nn;function Aee(){return Mn===void 0&&(typeof window<`u`&&window.performance?(Mn=!0,Nn=window.performance):typeof globalThis<`u`&&globalThis.perf_hooks?.performance?(Mn=!0,Nn=globalThis.perf_hooks.performance):Mn=!1),Mn}function jee(){return Aee()?Nn.now():Date.now()}var Mee=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;let n={};if(e.settings)for(let t in e.settings)n[t]=e.settings[t].defaultValue;let r=`__vue-devtools-plugin-settings__${e.id}`,i=Object.assign({},n);try{let e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch{}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch{}i=e},now(){return jee()}},t&&t.on(`plugin:settings:set`,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:t===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(let e of this.onQueue)this.target.on[e.method](...e.args);for(let e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}};function Nee(e,t){let n=e,r=An(),i=kn(),a=jn&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(`devtools-plugin:setup`,e,t);else{let e=a?new Mee(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}}var Pee=`11.2.8`;function Fee(){typeof __VUE_I18N_FULL_INSTALL__!=`boolean`&&(D().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!=`boolean`&&(D().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!=`boolean`&&(D().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(D().__INTLIFY_PROD_DEVTOOLS__=!1)}var Pn={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Fn(e,...t){return ge(e,null,process.env.NODE_ENV===`production`?void 0:{messages:Iee,args:t})}var Iee={[Pn.UNEXPECTED_RETURN_TYPE]:`Unexpected return type in composer`,[Pn.INVALID_ARGUMENT]:`Invalid argument`,[Pn.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Pn.NOT_INSTALLED]:"Need to install with `app.use` function",[Pn.UNEXPECTED_ERROR]:`Unexpected error`,[Pn.REQUIRED_VALUE]:`Required in value: {0}`,[Pn.INVALID_VALUE]:`Invalid value`,[Pn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:`Cannot setup vue-devtools plugin`,[Pn.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Pn.NOT_COMPATIBLE_LEGACY_VUE_I18N]:`Not compatible legacy VueI18n.`,[Pn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:`Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly`},In=g(`__translateVNode`),Ln=g(`__datetimeParts`),Rn=g(`__numberParts`),zn=g(`__enableEmitter`),Bn=g(`__disableEmitter`),Vn=g(`__setPluralRules`);g(`__intlifyMeta`);var Hn=g(`__injectWithOption`),Un=g(`__dispose`),Wn={FALLBACK_TO_ROOT:8,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Lee={[Wn.FALLBACK_TO_ROOT]:`Fall back to {type} '{key}' with root locale.`,[Wn.NOT_FOUND_PARENT_SCOPE]:`Not found parent scope. use the global scope.`,[Wn.IGNORE_OBJ_FLATTEN]:`Ignore object flatten: '{key}' key has an string value`,[Wn.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
5
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Wn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:`'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.`,[Wn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Gn(e,...t){return h(Lee[e],...t)}function Kn(e){if(!P(e)||$e(e))return e;for(let t in e)if(A(e,t))if(!t.includes(`.`))P(e[t])&&Kn(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=T()),!P(i[n[e]])){process.env.NODE_ENV!==`production`&&c(Gn(Wn.IGNORE_OBJ_FLATTEN,{key:n[e]})),a=!0;break}i=i[n[e]]}if(a||($e(i)?_t.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!$e(i)){let e=i[n[r]];P(e)&&Kn(e)}}return e}function qn(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=F(n)?n:ne(r)?T():{[e]:T()};if(ne(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||T(),fe(n,o[t])):fe(n,o)}else M(e)&&fe(JSON.parse(e),o)}),i==null&&a)for(let e in o)A(o,e)&&Kn(o[e]);return o}function Jn(e){return e.type}function Yn(e,t,n){let r=P(t.messages)?t.messages:T();`__i18nGlobal`in n&&(r=qn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),P(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(P(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function Xn(t){return(0,e.createVNode)(e.Text,null,t,0)}function Zn(){let t=`currentInstance`;return t in e?e[t]:e.getCurrentInstance()}var Qn=()=>[],$n=()=>!1,er=0;function tr(e){return((t,n,r,i)=>e(n,r,Zn()||void 0,i))}function nr(t={}){let{__root:n,__injectWithOption:r}=t,i=n===void 0,a=t.flatJson,o=d?e.ref:e.shallowRef,s=N(t.inheritLocale)?t.inheritLocale:!0,l=o(n&&s?n.locale.value:M(t.locale)?t.locale:Ht),u=o(n&&s?n.fallbackLocale.value:M(t.fallbackLocale)||ne(t.fallbackLocale)||F(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:l.value),f=o(qn(l.value,t)),p=o(F(t.datetimeFormats)?t.datetimeFormats:{[l.value]:{}}),m=o(F(t.numberFormats)?t.numberFormats:{[l.value]:{}}),h=n?n.missingWarn:N(t.missingWarn)||x(t.missingWarn)?t.missingWarn:!0,g=n?n.fallbackWarn:N(t.fallbackWarn)||x(t.fallbackWarn)?t.fallbackWarn:!0,_=n?n.fallbackRoot:N(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,b=j(t.missing)?t.missing:null,S=j(t.missing)?tr(t.missing):null,w=j(t.postTranslation)?t.postTranslation:null,T=n?n.warnHtmlMessage:N(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter,D=n?n.modifiers:F(t.modifiers)?t.modifiers:{},O=t.pluralRules||n&&n.pluralRules,k;k=(()=>{i&&Jt(null);let e={version:Pee,locale:l.value,fallbackLocale:u.value,messages:f.value,modifiers:D,pluralRules:O,missing:S===null?void 0:S,missingWarn:h,fallbackWarn:g,fallbackFormat:v,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:T,escapeParameter:E,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:`vue`}};e.datetimeFormats=p.value,e.numberFormats=m.value,e.__datetimeFormatters=F(k)?k.__datetimeFormatters:void 0,e.__numberFormatters=F(k)?k.__numberFormatters:void 0,process.env.NODE_ENV!==`production`&&(e.__v_emitter=F(k)?k.__v_emitter:void 0);let n=wee(e);return i&&Jt(n),n})(),en(k,l.value,u.value);function ee(){return[l.value,u.value,f.value,p.value,m.value]}let te=(0,e.computed)({get:()=>l.value,set:e=>{k.locale=e,l.value=e}}),re=(0,e.computed)({get:()=>u.value,set:e=>{k.fallbackLocale=e,u.value=e,en(k,l.value,e)}}),ie=(0,e.computed)(()=>f.value),ae=(0,e.computed)(()=>p.value),oe=(0,e.computed)(()=>m.value);function se(){return j(w)?w:null}function ce(e){w=e,k.postTranslation=e}function le(){return b}function ue(e){e!==null&&(S=tr(e)),b=e,k.missing=S}function de(e,t){return e!==`translate`||!t.resolvedMessage}let pe=(e,t,r,a,o,s)=>{ee();let l;try{process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__,i||(k.fallbackContext=n?Cee():void 0),l=e(k)}finally{process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__,i||(k.fallbackContext=void 0)}if(r!==`translate exists`&&y(l)&&l===-1||r===`translate exists`&&!l){let[e,i]=t();if(process.env.NODE_ENV!==`production`&&n&&M(e)&&de(r,i)&&(_&&(Zt(g,e)||Qt(h,e))&&c(Gn(Wn.FALLBACK_TO_ROOT,{key:e,type:r})),process.env.NODE_ENV!==`production`)){let{__v_emitter:t}=k;t&&_&&t.emit(`fallback`,{type:r,key:e,to:`global`,groupId:`${r}:${e}`})}return n&&_?a(n):o(e)}else if(s(l))return l;else throw Fn(Pn.UNEXPECTED_RETURN_TYPE)};function me(...e){return pe(t=>Reflect.apply(Sn,null,[t,...e]),()=>Tn(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>M(e))}function I(...e){let[t,n,r]=e;if(r&&!P(r))throw Fn(Pn.INVALID_ARGUMENT);return me(t,n,C({resolvedMessage:!0},r||{}))}function he(...e){return pe(t=>Reflect.apply(on,null,[t,...e]),()=>cn(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>M(e)||ne(e))}function ge(...e){return pe(t=>Reflect.apply(un,null,[t,...e]),()=>fn(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>M(e)||ne(e))}function _e(e){return e.map(e=>M(e)||y(e)||N(e)?Xn(String(e)):e)}let ve={normalize:_e,interpolate:e=>e,type:`vnode`};function ye(...e){return pe(t=>{let n,r=t;try{r.processor=ve,n=Reflect.apply(Sn,null,[r,...e])}finally{r.processor=null}return n},()=>Tn(...e),`translate`,t=>t[In](...e),e=>[Xn(e)],e=>ne(e))}function be(...e){return pe(t=>Reflect.apply(un,null,[t,...e]),()=>fn(...e),`number format`,t=>t[Rn](...e),Qn,e=>M(e)||ne(e))}function xe(...e){return pe(t=>Reflect.apply(on,null,[t,...e]),()=>cn(...e),`datetime format`,t=>t[Ln](...e),Qn,e=>M(e)||ne(e))}function Se(e){O=e,k.pluralRules=O}function Ce(e,t){return pe(()=>{if(!e)return!1;let n=Ee(M(t)?t:l.value),r=k.messageResolver(n,e);return $e(r)||xn(r)||M(r)},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),$n,e=>N(e))}function we(e){let t=null,n=At(k,u.value,l.value);for(let r=0;r<n.length;r++){let i=f.value[n[r]]||{},a=k.messageResolver(i,e);if(a!=null){t=a;break}}return t}function Te(e){return we(e)??(n&&n.tm(e)||{})}function Ee(e){return f.value[e]||{}}function De(e,t){if(a){let n={[e]:t};for(let e in n)A(n,e)&&Kn(n[e]);t=n[e]}f.value[e]=t,k.messages=f.value}function Oe(e,t){f.value[e]=f.value[e]||{};let n={[e]:t};if(a)for(let e in n)A(n,e)&&Kn(n[e]);t=n[e],fe(t,f.value[e]),k.messages=f.value}function ke(e){return p.value[e]||{}}function Ae(e,t){p.value[e]=t,k.datetimeFormats=p.value,ln(k,e,t)}function je(e,t){p.value[e]=C(p.value[e]||{},t),k.datetimeFormats=p.value,ln(k,e,t)}function Me(e){return m.value[e]||{}}function Ne(e,t){m.value[e]=t,k.numberFormats=m.value,pn(k,e,t)}function Pe(e,t){m.value[e]=C(m.value[e]||{},t),k.numberFormats=m.value,pn(k,e,t)}er++,n&&d&&((0,e.watch)(n.locale,e=>{s&&(l.value=e,k.locale=e,en(k,l.value,u.value))}),(0,e.watch)(n.fallbackLocale,e=>{s&&(u.value=e,k.fallbackLocale=e,en(k,l.value,u.value))}));let Fe={id:er,locale:te,fallbackLocale:re,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&n&&(l.value=n.locale.value,u.value=n.fallbackLocale.value,en(k,l.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:ie,get modifiers(){return D},get pluralRules(){return O||{}},get isGlobal(){return i},get missingWarn(){return h},set missingWarn(e){h=e,k.missingWarn=h},get fallbackWarn(){return g},set fallbackWarn(e){g=e,k.fallbackWarn=g},get fallbackRoot(){return _},set fallbackRoot(e){_=e},get fallbackFormat(){return v},set fallbackFormat(e){v=e,k.fallbackFormat=v},get warnHtmlMessage(){return T},set warnHtmlMessage(e){T=e,k.warnHtmlMessage=e},get escapeParameter(){return E},set escapeParameter(e){E=e,k.escapeParameter=e},t:me,getLocaleMessage:Ee,setLocaleMessage:De,mergeLocaleMessage:Oe,getPostTranslationHandler:se,setPostTranslationHandler:ce,getMissingHandler:le,setMissingHandler:ue,[Vn]:Se};return Fe.datetimeFormats=ae,Fe.numberFormats=oe,Fe.rt=I,Fe.te=Ce,Fe.tm=Te,Fe.d=he,Fe.n=ge,Fe.getDateTimeFormat=ke,Fe.setDateTimeFormat=Ae,Fe.mergeDateTimeFormat=je,Fe.getNumberFormat=Me,Fe.setNumberFormat=Ne,Fe.mergeNumberFormat=Pe,Fe[Hn]=r,Fe[In]=ye,Fe[Ln]=xe,Fe[Rn]=be,process.env.NODE_ENV!==`production`&&(Fe[zn]=e=>{k.__v_emitter=e},Fe[Bn]=()=>{k.__v_emitter=void 0}),Fe}var rr=`vue-i18n: composer properties`,ir={"vue-devtools-plugin-vue-i18n":`Vue I18n DevTools`,"vue-i18n-resource-inspector":`Vue I18n DevTools`,"vue-i18n-timeline":`Vue I18n`},ar={"vue-i18n-resource-inspector":`Search for scopes ...`},or={"vue-i18n-timeline":16764185},sr;async function cr(e,t){return new Promise((n,r)=>{try{Nee({id:`vue-devtools-plugin-vue-i18n`,label:ir[`vue-devtools-plugin-vue-i18n`],packageName:`vue-i18n`,homepage:`https://vue-i18n.intlify.dev`,logo:`https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png`,componentStateTypes:[rr],app:e},r=>{sr=r,r.on.visitComponentTree(({componentInstance:e,treeNode:n})=>{ur(e,n,t)}),r.on.inspectComponent(({componentInstance:e,instanceData:n})=>{e.__VUE_I18N__&&n&&(t.mode===`legacy`?e.__VUE_I18N__!==t.global.__composer&&dr(n,e.__VUE_I18N__):dr(n,e.__VUE_I18N__))}),r.addInspector({id:`vue-i18n-resource-inspector`,label:ir[`vue-i18n-resource-inspector`],icon:`language`,treeFilterPlaceholder:ar[`vue-i18n-resource-inspector`]}),r.on.getInspectorTree(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&zee(n,t)});let i=new Map;r.on.getInspectorState(async n=>{if(n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`)if(r.unhighlightElement(),Vee(n,t),n.nodeId===`global`){if(!i.has(n.app)){let[e]=await r.getComponentInstances(n.app);i.set(n.app,e)}r.highlightElement(i.get(n.app))}else{let e=Bee(n.nodeId,t);e&&r.highlightElement(e)}}),r.on.editInspectorState(n=>{n.app===e&&n.inspectorId===`vue-i18n-resource-inspector`&&Uee(n,t)}),r.addTimelineLayer({id:`vue-i18n-timeline`,label:ir[`vue-i18n-timeline`],color:or[`vue-i18n-timeline`]}),n(!0)})}catch(e){console.error(e),r(!1)}})}function lr(e){return e.type.name||e.type.displayName||e.type.__file||`Anonymous`}function ur(e,t,n){let r=n.mode===`composition`?n.global:n.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==r){let n={label:`i18n (${lr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}function dr(e,t){let n=rr;e.state.push({type:n,key:`locale`,editable:!0,value:t.locale.value}),e.state.push({type:n,key:`availableLocales`,editable:!1,value:t.availableLocales}),e.state.push({type:n,key:`fallbackLocale`,editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:`inheritLocale`,editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:`messages`,editable:!1,value:fr(t.messages.value)}),e.state.push({type:n,key:`datetimeFormats`,editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:`numberFormats`,editable:!1,value:t.numberFormats.value})}function fr(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];j(r)&&`source`in r?t[n]=Ree(r):$e(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:P(r)?t[n]=fr(r):t[n]=r}),t}var pr={"<":`<`,">":`>`,'"':`"`,"&":`&`};function mr(e){return e.replace(/[<>"&]/g,hr)}function hr(e){return pr[e]||e}function Ree(e){return{_custom:{type:`function`,display:`<span>ƒ</span> ${e.source?`("${mr(e.source)}")`:`(?)`}`}}}function zee(e,t){e.rootNodes.push({id:`global`,label:`Global Scope`});let n=t.mode===`composition`?t.global:t.global.__composer;for(let[r,i]of t.__instances){let a=t.mode===`composition`?i:i.__composer;n!==a&&e.rootNodes.push({id:a.id.toString(),label:`${lr(r)} Scope`})}}function Bee(e,t){let n=null;if(e!==`global`){for(let[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function gr(e,t){if(e===`global`)return t.mode===`composition`?t.global:t.global.__composer;{let n=Array.from(t.__instances.values()).find(t=>t.id.toString()===e);return n?t.mode===`composition`?n:n.__composer:null}}function Vee(e,t){let n=gr(e.nodeId,t);return n&&(e.state=Hee(n)),null}function Hee(e){let t={},n=`Locale related info`;t[n]=[{type:n,key:`locale`,editable:!0,value:e.locale.value},{type:n,key:`fallbackLocale`,editable:!0,value:e.fallbackLocale.value},{type:n,key:`availableLocales`,editable:!1,value:e.availableLocales},{type:n,key:`inheritLocale`,editable:!0,value:e.inheritLocale}];let r=`Locale messages info`;t[r]=[{type:r,key:`messages`,editable:!1,value:fr(e.messages.value)}];{let n=`Datetime formats info`;t[n]=[{type:n,key:`datetimeFormats`,editable:!1,value:e.datetimeFormats.value}];let r=`Datetime formats info`;t[r]=[{type:r,key:`numberFormats`,editable:!1,value:e.numberFormats.value}]}return t}function _r(e,t){if(sr){let n;t&&`groupId`in t&&(n=t.groupId,delete t.groupId),sr.addTimelineEvent({layerId:`vue-i18n-timeline`,event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e===`compile-error`?`error`:e===`fallback`||e===`missing`?`warning`:`default`}})}}function Uee(e,t){let n=gr(e.nodeId,t);if(n){let[t]=e.path;t===`locale`&&M(e.state.value)?n.locale.value=e.state.value:t===`fallbackLocale`&&(M(e.state.value)||ne(e.state.value)||P(e.state.value))?n.fallbackLocale.value=e.state.value:t===`inheritLocale`&&N(e.state.value)&&(n.inheritLocale=e.state.value)}}function Wee(e){let t=M(e.locale)?e.locale:Ht,n=M(e.fallbackLocale)||ne(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=j(e.missing)?e.missing:void 0,i=N(e.silentTranslationWarn)||x(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=N(e.silentFallbackWarn)||x(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=N(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=F(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=j(e.postTranslation)?e.postTranslation:void 0,d=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!==`off`:!0,f=!!e.escapeParameterHtml,p=N(e.sync)?e.sync:!0,m=e.messages;if(F(e.sharedMessages)){let t=e.sharedMessages;m=Object.keys(t).reduce((e,n)=>(C(e[n]||(e[n]={}),t[n]),e),m||{})}let{__i18n:h,__root:g,__injectWithOption:_}=e,v=e.datetimeFormats,y=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:b,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:h,__root:g,__injectWithOption:_}}function vr(e={}){let t=nr(Wee(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return N(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=N(e)?!e:e},get silentFallbackWarn(){return N(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=N(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?`warn`:`off`},set warnHtmlInMessage(e){t.warnHtmlMessage=e!==`off`},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,process.env.NODE_ENV!==`production`&&(r.__enableEmitter=e=>{let n=t;n[zn]&&n[zn](e)},r.__disableEmitter=()=>{let e=t;e[Bn]&&e[Bn]()}),r}function Gee(e,t,n){return{beforeCreate(){let r=Zn();if(!r)throw Fn(Pn.UNEXPECTED_ERROR);let i=this.$options;if(i.i18n){let r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=yr(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=vr(r);let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=yr(e,i);else{this.$i18n=vr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});let e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Yn(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!==`production`&&this.$i18n){let e=Zn();if(!e)return;let t=this.$i18n;e.__VUE_I18N__=t.__composer;let n=this.__v_emitter=ue();t.__enableEmitter&&t.__enableEmitter(n),n.on(`*`,_r)}},unmounted(){let e=Zn();if(!e)throw Fn(Pn.UNEXPECTED_ERROR);let t=this.$i18n;process.env.NODE_ENV!==`production`&&e.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off(`*`,_r),delete this.__v_emitter),this.$i18n&&(t.__disableEmitter&&t.__disableEmitter(),delete e.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function yr(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Vn](t.pluralizationRules||e.pluralizationRules);let n=qn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}var br={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function Kee({slots:t},n){return n.length===1&&n[0]===`default`?(t.default?t.default():[]).reduce((t,n)=>[...t,...n.type===e.Fragment?n.children:[n]],[]):n.reduce((e,n)=>{let r=t[n];return r&&(e[n]=r()),e},T())}function xr(){return e.Fragment}var Sr=(0,e.defineComponent)({name:`i18n-t`,props:C({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>y(e)||!isNaN(e)}},br),setup(t,n){let{slots:r,attrs:i}=n,a=t.i18n||Dr({useScope:t.scope,__useComponent:!0});return()=>{let o=Object.keys(r).filter(e=>e[0]!==`_`),s=T();t.locale&&(s.locale=t.locale),t.plural!==void 0&&(s.plural=M(t.plural)?+t.plural:t.plural);let c=Kee(n,o),l=a[In](t.keypath,c,s),u=C(T(),i);return(0,e.h)(M(t.tag)||P(t.tag)?t.tag:xr(),u,l)}}});function qee(e){return ne(e)&&!M(e[0])}function Cr(t,n,r,i){let{slots:a,attrs:o}=n;return()=>{let n={part:!0},s=T();t.locale&&(n.locale=t.locale),M(t.format)?n.key=t.format:P(t.format)&&(M(t.format.key)&&(n.key=t.format.key),s=Object.keys(t.format).reduce((e,n)=>r.includes(n)?C(T(),e,{[n]:t.format[n]}):e,T()));let c=i(t.value,n,s),l=[n.key];ne(c)?l=c.map((e,t)=>{let n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];return qee(r)&&(r[0].key=`${e.type}-${t}`),r}):M(c)&&(l=[c]);let u=C(T(),o);return(0,e.h)(M(t.tag)||P(t.tag)?t.tag:xr(),u,l)}}var wr=(0,e.defineComponent)({name:`i18n-n`,props:C({value:{type:Number,required:!0},format:{type:[String,Object]}},br),setup(e,t){let n=e.i18n||Dr({useScope:e.scope,__useComponent:!0});return Cr(e,t,dn,(...e)=>n[Rn](...e))}});function Jee(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function Yee(t){let n=e=>{process.env.NODE_ENV!==`production`&&u(Gn(Wn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));let{instance:n,value:r}=e;if(!n||!n.$)throw Fn(Pn.UNEXPECTED_ERROR);let i=Jee(t,n.$),a=Tr(r);return[Reflect.apply(i.t,i,[...Er(a)]),i]};return{created:(r,i)=>{let[a,o]=n(i);d&&t.global===o&&(r.__i18nWatcher=(0,e.watch)(o.locale,()=>{i.instance&&i.instance.$forceUpdate()})),r.__composer=o,r.textContent=a},unmounted:e=>{d&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=Tr(t);e.textContent=Reflect.apply(n.t,n,[...Er(r)])}},getSSRProps:e=>{let[t]=n(e);return{textContent:t}}}}function Tr(e){if(M(e))return{path:e};if(F(e)){if(!(`path`in e))throw Fn(Pn.REQUIRED_VALUE,`path`);return e}else throw Fn(Pn.INVALID_VALUE)}function Er(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return M(n)&&(o.locale=n),y(i)&&(o.plural=i),y(a)&&(o.plural=a),[t,s,o]}function Xee(e,t,...n){let r=F(n[0])?n[0]:{};(!N(r.globalInstall)||r.globalInstall)&&([Sr.name,`I18nT`].forEach(t=>e.component(t,Sr)),[wr.name,`I18nN`].forEach(t=>e.component(t,wr)),[kr.name,`I18nD`].forEach(t=>e.component(t,kr))),e.directive(`t`,Yee(t))}var Zee=g(`global-vue-i18n`);function Qee(e={}){let t=__VUE_I18N_LEGACY_API__&&N(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!==`production`&&t&&u(Gn(Wn.DEPRECATE_LEGACY_MODE));let n=N(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,a]=$ee(e,t),o=g(process.env.NODE_ENV===`production`?``:`vue-i18n`);function s(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function l(e){r.delete(e)}let d={get mode(){return __VUE_I18N_LEGACY_API__&&t?`legacy`:`composition`},async install(e,...r){if(process.env.NODE_ENV!==`production`&&(e.__VUE_I18N__=d),e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,d),F(r[0])){let e=r[0];d.__composerExtend=e.__composerExtend,d.__vueI18nExtend=e.__vueI18nExtend}let i=null;!t&&n&&(i=ste(e,d.global)),__VUE_I18N_FULL_INSTALL__&&Xee(e,d,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(Gee(a,a.__composer,d));let s=e.unmount;if(e.unmount=()=>{i&&i(),d.dispose(),s()},process.env.NODE_ENV!==`production`){if(!await cr(e,d))throw Fn(Pn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);let n=ue();if(t){let e=a;e.__enableEmitter&&e.__enableEmitter(n)}else{let e=a;e[zn]&&e[zn](n)}n.on(`*`,_r)}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:c,__deleteInstance:l};return d}function Dr(e={}){let t=Zn();if(t==null)throw Fn(Pn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Fn(Pn.NOT_INSTALLED);let n=ete(t),r=nte(n),i=Jn(t),a=tte(e,i);if(a===`global`)return Yn(r,e,i),r;if(a===`parent`){let i=rte(n,t,e.__useComponent);return i??=(process.env.NODE_ENV!==`production`&&c(Gn(Wn.NOT_FOUND_PARENT_SCOPE)),r),i}let o=n,s=o.__getInstance(t);if(s==null){let n=C({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=nr(n),o.__composerExtend&&(s[Un]=o.__composerExtend(s)),ate(o,t,s),o.__setInstance(t,s)}else process.env.NODE_ENV!==`production`&&a===`local`&&c(Gn(Wn.DUPLICATE_USE_I18N_CALLING));return s}function $ee(t,n){let r=(0,e.effectScope)(),i=__VUE_I18N_LEGACY_API__&&n?r.run(()=>vr(t)):r.run(()=>nr(t));if(i==null)throw Fn(Pn.UNEXPECTED_ERROR);return[r,i]}function ete(t){let n=(0,e.inject)(t.isCE?Zee:t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Fn(t.isCE?Pn.NOT_INSTALLED_WITH_PROVIDE:Pn.UNEXPECTED_ERROR);return n}function tte(e,t){return S(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function nte(e){return e.mode===`composition`?e.global:e.global.__composer}function rte(e,t,n=!1){let r=null,i=t.root,a=ite(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){let e=t.__getInstance(a);e!=null&&(r=e.__composer,n&&r&&!r[Hn]&&(r=null))}if(r!=null||i===a)break;a=a.parent}return r}function ite(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function ate(t,n,r){let i=null;(0,e.onMounted)(()=>{if(process.env.NODE_ENV!==`production`){n.__VUE_I18N__=r,i=ue();let e=r;e[zn]&&e[zn](i),i.on(`*`,_r)}},n),(0,e.onUnmounted)(()=>{let e=r;process.env.NODE_ENV!==`production`&&(i&&i.off(`*`,_r),e[Bn]&&e[Bn](),delete n.__VUE_I18N__),t.__deleteInstance(n);let a=e[Un];a&&(a(),delete e[Un])},n)}var ote=[`locale`,`fallbackLocale`,`availableLocales`],Or=[`t`,`rt`,`d`,`n`,`tm`,`te`];function ste(t,n){let r=Object.create(null);return ote.forEach(t=>{let i=Object.getOwnPropertyDescriptor(n,t);if(!i)throw Fn(Pn.UNEXPECTED_ERROR);let a=(0,e.isRef)(i.value)?{get(){return i.value.value},set(e){i.value.value=e}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,t,a)}),t.config.globalProperties.$i18n=r,Or.forEach(e=>{let r=Object.getOwnPropertyDescriptor(n,e);if(!r||!r.value)throw Fn(Pn.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${e}`,r)}),()=>{delete t.config.globalProperties.$i18n,Or.forEach(e=>{delete t.config.globalProperties[`$${e}`]})}}var kr=(0,e.defineComponent)({name:`i18n-d`,props:C({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},br),setup(e,t){let n=e.i18n||Dr({useScope:e.scope,__useComponent:!0});return Cr(e,t,sn,(...e)=>n[Ln](...e))}});if(Fee(),vee(iee),yee(mee),bee(At),process.env.NODE_ENV!==`production`||__INTLIFY_PROD_DEVTOOLS__){let e=D();e.__INTLIFY__=!0,aee(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var cte={unsaved:{tips:`UNSAVED CHANGES`,save:`SAVE`,cancel:`CANCEL`},notData:`No data`,select:{multiple:`Selected`,item:`items`},fileUpload:{label:`Attachment`,remove:`Remove`,placeholder:`Choose file`,maxSize:`Maximum size of attachments {size} MB`,limit:`Maximum size of attachments cannot exceed`,drag:`Drop the file here or <em>click to upload</em>`,fileName:`Attachment name`,pass:`Password`,setPass:`Set download password >`,confirm:`Confirm`,cancel:`Cancel`,image:`Image upload`,delete:{heading:`Delete this image?`,subheading:`Are you sure you want to delete this image? This operation cannot be undone.`},deleteFile:{heading:`Delete this file?`,subheading:`Are you sure you want to delete this file? This operation cannot be undone.`},alt:{label:`ALT`,heading:`Edit Image Alt Information`,subheading:`Add a short description to the image to improve its chances of being indexed by search engines`},entity:{coverImage:{label:`Cover Image`,tips:``,placeholder:`Cover Image`,required:`Please enter cover image`,custom:``},title:{label:`File Name`,tips:``,placeholder:`File Name`,required:`Please enter file name`,custom:``},url:{label:`File Address`,tips:``,placeholder:`File Address`,required:`Please enter file address`,custom:``},description:{label:`Brief Introduction`,tips:``,placeholder:`Brief introduction`,required:`Please enter a brief introduction`,custom:``}}},editor:{placeholder:`Type or paste your content here!`},back:`Back`},lte={unsaved:{tips:`未保存的更改`,save:`保存`,cancel:`取消`},notData:`数据为空`,select:{multiple:`已选中 {0} 个`},fileUpload:{label:`附件`,remove:`移除`,placeholder:`Choose file`,maxSize:`附件最大 {size} MB`,limit:`附件最大不能超过`,drag:`将文件拖放到这里或 <em>点击上传</em>`,fileName:`附件名称`,pass:`密码`,setPass:`设置下载密码 >`,confirm:`确定`,cancel:`取消`,image:`图片上传`,delete:{heading:`删除此图像?`,subheading:`是否确实要删除此图像?此操作无法撤消。`},deleteFile:{heading:`删除此文件?`,subheading:`是否确实要删除此文件?此操作无法撤消。`},alt:{label:`ALT`,heading:`编辑图片 Alt 信息`,subheading:`为图片添加简短的描述,提高被搜索引擎收录机会`},entity:{coverImage:{label:`封面图片`,tips:``,placeholder:`封面图片`,required:`请输入封面图片`,custom:``},title:{label:`文件名称`,tips:``,placeholder:`文件名称`,required:`请输入文件名称`,custom:``},url:{label:`文件地址`,tips:``,placeholder:`文件地址`,required:`请输入文件地址`,custom:``},description:{label:`简要介绍`,tips:``,placeholder:`简要介绍`,required:`请输入简要介绍`,custom:``}}},editor:{placeholder:`在此处输入或粘贴您的内容!`},back:`返回`},Ar=Qee({fallbackLocale:`en`,globalInjection:!0,locale:(()=>{let e=localStorage.getItem(`ogaLocale`);return e||=navigator.language,e!=null&&(e=`en|zh-CN`.indexOf(e)>-1?e:`en`),localStorage.setItem(`ogaLocale`,e),e})(),messages:{"zh-CN":{...lte,main:{}},en:{...cte,main:{}}}}),jr=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function ute(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Mr(e){var t={exports:{}};return e(t,t.exports),t.exports}var Nr,Pr,Fr=function(e){return e&&e.Math==Math&&e},Ir=Fr(typeof globalThis==`object`&&globalThis)||Fr(typeof window==`object`&&window)||Fr(typeof self==`object`&&self)||Fr(typeof jr==`object`&&jr)||function(){return this}()||Function(`return this`)(),Lr=Function.prototype,Rr=Lr.apply,dte=Lr.bind,zr=Lr.call,Br=typeof Reflect==`object`&&Reflect.apply||(dte?zr.bind(Rr):function(){return zr.apply(Rr,arguments)}),Vr=Function.prototype,Hr=Vr.bind,Ur=Vr.call,fte=Hr&&Hr.bind(Ur),Wr=Hr?function(e){return e&&fte(Ur,e)}:function(e){return e&&function(){return Ur.apply(e,arguments)}},Gr=function(e){return typeof e==`function`},Kr=function(e){try{return!!e()}catch{return!0}},qr=!Kr((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Jr=Function.prototype.call,Yr=Jr.bind?Jr.bind(Jr):function(){return Jr.apply(Jr,arguments)},Xr={}.propertyIsEnumerable,Zr=Object.getOwnPropertyDescriptor,Qr={f:Zr&&!Xr.call({1:2},1)?function(e){var t=Zr(this,e);return!!t&&t.enumerable}:Xr},$r=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pte=Wr({}.toString),mte=Wr(``.slice),ei=function(e){return mte(pte(e),8,-1)},ti=Ir.Object,hte=Wr(``.split),ni=Kr((function(){return!ti(`z`).propertyIsEnumerable(0)}))?function(e){return ei(e)==`String`?hte(e,``):ti(e)}:ti,gte=Ir.TypeError,ri=function(e){if(e==null)throw gte(`Can't call method on `+e);return e},ii=function(e){return ni(ri(e))},ai=function(e){return typeof e==`object`?e!==null:Gr(e)},oi={},si=function(e){return Gr(e)?e:void 0},ci=function(e,t){return arguments.length<2?si(oi[e])||si(Ir[e]):oi[e]&&oi[e][t]||Ir[e]&&Ir[e][t]},li=Wr({}.isPrototypeOf),ui=ci(`navigator`,`userAgent`)||``,di=Ir.process,fi=Ir.Deno,pi=di&&di.versions||fi&&fi.version,mi=pi&&pi.v8;mi&&(Pr=(Nr=mi.split(`.`))[0]>0&&Nr[0]<4?1:+(Nr[0]+Nr[1])),!Pr&&ui&&(!(Nr=ui.match(/Edge\/(\d+)/))||Nr[1]>=74)&&(Nr=ui.match(/Chrome\/(\d+)/))&&(Pr=+Nr[1]);var hi,gi=Pr,_i=!!Object.getOwnPropertySymbols&&!Kr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gi&&gi<41})),vi=_i&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,yi=Ir.Object,bi=vi?function(e){return typeof e==`symbol`}:function(e){var t=ci(`Symbol`);return Gr(t)&&li(t.prototype,yi(e))},_te=Ir.String,xi=function(e){try{return _te(e)}catch{return`Object`}},vte=Ir.TypeError,Si=function(e){if(Gr(e))return e;throw vte(xi(e)+` is not a function`)},Ci=function(e,t){var n=e[t];return n==null?void 0:Si(n)},wi=Ir.TypeError,Ti=Object.defineProperty,Ei=Ir[`__core-js_shared__`]||function(e,t){try{Ti(Ir,e,{value:t,configurable:!0,writable:!0})}catch{Ir[e]=t}return t}(`__core-js_shared__`,{}),Di=Mr((function(e){(e.exports=function(e,t){return Ei[e]||(Ei[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Oi=Ir.Object,ki=function(e){return Oi(ri(e))},Ai=Wr({}.hasOwnProperty),ji=Object.hasOwn||function(e,t){return Ai(ki(e),t)},Mi=0,Ni=Math.random(),Pi=Wr(1 .toString),Fi=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Pi(++Mi+Ni,36)},Ii=Di(`wks`),Li=Ir.Symbol,Ri=Li&&Li.for,yte=vi?Li:Li&&Li.withoutSetter||Fi,zi=function(e){if(!ji(Ii,e)||!_i&&typeof Ii[e]!=`string`){var t=`Symbol.`+e;_i&&ji(Li,e)?Ii[e]=Li[e]:Ii[e]=vi&&Ri?Ri(t):yte(t)}return Ii[e]},bte=Ir.TypeError,xte=zi(`toPrimitive`),Ste=function(e,t){if(!ai(e)||bi(e))return e;var n,r=Ci(e,xte);if(r){if(t===void 0&&(t=`default`),n=Yr(r,e,t),!ai(n)||bi(n))return n;throw bte(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Gr(n=e.toString)&&!ai(r=Yr(n,e))||Gr(n=e.valueOf)&&!ai(r=Yr(n,e))||t!==`string`&&Gr(n=e.toString)&&!ai(r=Yr(n,e)))return r;throw wi(`Can't convert object to primitive value`)}(e,t)},Bi=function(e){var t=Ste(e,`string`);return bi(t)?t:t+``},Vi=Ir.document,Cte=ai(Vi)&&ai(Vi.createElement),Hi=function(e){return Cte?Vi.createElement(e):{}},Ui=!qr&&!Kr((function(){return Object.defineProperty(Hi(`div`),`a`,{get:function(){return 7}}).a!=7})),Wi=Object.getOwnPropertyDescriptor,Gi={f:qr?Wi:function(e,t){if(e=ii(e),t=Bi(t),Ui)try{return Wi(e,t)}catch{}if(ji(e,t))return $r(!Yr(Qr.f,e,t),e[t])}},wte=/#|\.prototype\./,Ki=function(e,t){var n=Ete[Tte(e)];return n==Ote||n!=Dte&&(Gr(t)?Kr(t):!!t)},Tte=Ki.normalize=function(e){return String(e).replace(wte,`.`).toLowerCase()},Ete=Ki.data={},Dte=Ki.NATIVE=`N`,Ote=Ki.POLYFILL=`P`,kte=Ki,qi=Wr(Wr.bind),Ji=function(e,t){return Si(e),t===void 0?e:qi?qi(e,t):function(){return e.apply(t,arguments)}},Ate=Ir.String,jte=Ir.TypeError,Yi=function(e){if(ai(e))return e;throw jte(Ate(e)+` is not an object`)},Mte=Ir.TypeError,Xi=Object.defineProperty,Zi={f:qr?Xi:function(e,t,n){if(Yi(e),t=Bi(t),Yi(n),Ui)try{return Xi(e,t,n)}catch{}if(`get`in n||`set`in n)throw Mte(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Qi=qr?function(e,t,n){return Zi.f(e,t,$r(1,n))}:function(e,t,n){return e[t]=n,e},Nte=Gi.f,Pte=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return Br(e,this,arguments)};return t.prototype=e.prototype,t},$i=function(e,t){var n,r,i,a,o,s,c,l,u=e.target,d=e.global,f=e.stat,p=e.proto,m=d?Ir:f?Ir[u]:(Ir[u]||{}).prototype,h=d?oi:oi[u]||Qi(oi,u,{})[u],g=h.prototype;for(i in t)n=!kte(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&ji(m,i),o=h[i],n&&(s=e.noTargetGet?(l=Nte(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?Ji(a,Ir):e.wrap&&n?Pte(a):p&&Gr(a)?Wr(a):a,(e.sham||a&&a.sham||o&&o.sham)&&Qi(c,`sham`,!0),Qi(h,i,c),p&&(ji(oi,r=u+`Prototype`)||Qi(oi,r,{}),Qi(oi[r],i,a),e.real&&g&&!g[i]&&Qi(g,i,a)))},ea=Di(`keys`),ta=function(e){return ea[e]||(ea[e]=Fi(e))},na=!Kr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ra=ta(`IE_PROTO`),ia=Ir.Object,aa=ia.prototype,oa=na?ia.getPrototypeOf:function(e){var t=ki(e);if(ji(t,ra))return t[ra];var n=t.constructor;return Gr(n)&&t instanceof n?n.prototype:t instanceof ia?aa:null},sa=Ir.String,ca=Ir.TypeError,la=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Wr(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Yi(n),function(e){if(typeof e==`object`||Gr(e))return e;throw ca(`Can't set `+sa(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ua=Math.ceil,da=Math.floor,fa=function(e){var t=+e;return t!=t||t===0?0:(t>0?da:ua)(t)},pa=Math.max,ma=Math.min,ha=function(e,t){var n=fa(e);return n<0?pa(n+t,0):ma(n,t)},ga=Math.min,_a=function(e){return(t=e.length)>0?ga(fa(t),9007199254740991):0;var t},va=function(e){return function(t,n,r){var i,a=ii(t),o=_a(a),s=ha(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},ya={includes:va(!0),indexOf:va(!1)},ba={},xa=ya.indexOf,Sa=Wr([].push),Ca=function(e,t){var n,r=ii(e),i=0,a=[];for(n in r)!ji(ba,n)&&ji(r,n)&&Sa(a,n);for(;t.length>i;)ji(r,n=t[i++])&&(~xa(a,n)||Sa(a,n));return a},wa=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Fte=wa.concat(`length`,`prototype`),Ta={f:Object.getOwnPropertyNames||function(e){return Ca(e,Fte)}},Ea={f:Object.getOwnPropertySymbols},Ite=Wr([].concat),Lte=ci(`Reflect`,`ownKeys`)||function(e){var t=Ta.f(Yi(e)),n=Ea.f;return n?Ite(t,n(e)):t},Da=Object.keys||function(e){return Ca(e,wa)},Rte=qr?Object.defineProperties:function(e,t){Yi(e);for(var n,r=ii(t),i=Da(t),a=i.length,o=0;a>o;)Zi.f(e,n=i[o++],r[n]);return e},zte=ci(`document`,`documentElement`),Oa=ta(`IE_PROTO`),ka=function(){},Aa=function(e){return`<script>`+e+`<\/script>`},ja=function(e){e.write(Aa(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Ma=function(){try{hi=new ActiveXObject(`htmlfile`)}catch{}var e,t;Ma=typeof document<`u`?document.domain&&hi?ja(hi):((t=Hi(`iframe`)).style.display=`none`,zte.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Aa(`document.F=Object`)),e.close(),e.F):ja(hi);for(var n=wa.length;n--;)delete Ma.prototype[wa[n]];return Ma()};ba[Oa]=!0;var Na=Object.create||function(e,t){var n;return e===null?n=Ma():(ka.prototype=Yi(e),n=new ka,ka.prototype=null,n[Oa]=e),t===void 0?n:Rte(n,t)},Pa=function(e,t,n){var r=Bi(t);r in e?Zi.f(e,r,$r(0,n)):e[r]=n},Bte=Ir.Array,Vte=Math.max,Fa=function(e,t,n){for(var r=_a(e),i=ha(t,r),a=ha(n===void 0?r:n,r),o=Bte(Vte(a-i,0)),s=0;i<a;i++,s++)Pa(o,s,e[i]);return o.length=s,o},Hte=Wr(``.replace),Ute=Wr(``.split),Wte=Wr([].join),Ia=String(Error(`zxcasd`).stack),La=/\n\s*at [^:]*:[^\n]*/,Gte=La.test(Ia),Kte=/@[^\n]*\n/.test(Ia)&&!/zxcasd/.test(Ia),qte=function(e,t){if(typeof e!=`string`)return e;if(Gte)for(;t--;)e=Hte(e,La,``);else if(Kte)return Wte(Fa(Ute(e,`
|
|
6
|
+
`),t),`
|
|
7
|
+
`);return e},Jte=function(e,t){ai(t)&&`cause`in t&&Qi(e,`cause`,t.cause)},Ra={},Yte=zi(`iterator`),Xte=Array.prototype,za={};za[zi(`toStringTag`)]=`z`;var Ba=String(za)===`[object z]`,Zte=zi(`toStringTag`),Qte=Ir.Object,$te=ei(function(){return arguments}())==`Arguments`,Va=Ba?ei:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Qte(e),Zte))==`string`?n:$te?ei(t):(r=ei(t))==`Object`&&Gr(t.callee)?`Arguments`:r},ene=zi(`iterator`),Ha=function(e){if(e!=null)return Ci(e,ene)||Ci(e,`@@iterator`)||Ra[Va(e)]},tne=Ir.TypeError,Ua=function(e,t,n){var r,i;Yi(e);try{if(!(r=Ci(e,`return`))){if(t===`throw`)throw n;return n}r=Yr(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Yi(r),n},nne=Ir.TypeError,Wa=function(e,t){this.stopped=e,this.result=t},Ga=Wa.prototype,rne=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=Ji(t,u),h=function(e){return r&&Ua(r,`normal`,e),new Wa(!0,e)},g=function(e){return d?(Yi(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=Ha(e)))throw nne(xi(e)+` is not iterable`);if(function(e){return e!==void 0&&(Ra.Array===e||Xte[Yte]===e)}(i)){for(a=0,o=_a(e);o>a;a++)if((s=g(e[a]))&&li(Ga,s))return s;return new Wa(!1)}r=function(e,t){var n=arguments.length<2?Ha(e):t;if(Si(n))return Yi(Yr(n,e));throw tne(xi(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=Yr(c,r)).done;){try{s=g(l.value)}catch(e){Ua(r,`throw`,e)}if(typeof s==`object`&&s&&li(Ga,s))return s}return new Wa(!1)},ine=Ir.String,Ka=function(e){if(Va(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ine(e)},ane=function(e,t){return e===void 0?arguments.length<2?``:t:Ka(e)},one=!Kr((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,$r(1,7)),e.stack!==7)})),sne=zi(`toStringTag`),qa=Ir.Error,cne=[].push,Ja=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=li(Ya,this);la?n=la(new qa(void 0),i?oa(this):Ya):(n=i?this:Na(Ya),Qi(n,sne,`Error`)),Qi(n,`message`,ane(t,``)),one&&Qi(n,`stack`,qte(n.stack,1)),Jte(n,r);var a=[];return rne(e,cne,{that:a}),Qi(n,`errors`,a),n};la?la(Ja,qa):function(e,t){for(var n=Lte(t),r=Zi.f,i=Gi.f,a=0;a<n.length;a++){var o=n[a];ji(e,o)||r(e,o,i(t,o))}}(Ja,qa);var Ya=Ja.prototype=Na(qa.prototype,{constructor:$r(1,Ja),message:$r(1,``),name:$r(1,`AggregateError`)});$i({global:!0},{AggregateError:Ja});var lne=Wr(Function.toString);Gr(Ei.inspectSource)||(Ei.inspectSource=function(e){return lne(e)});var Xa,Za,Qa,$a=Ei.inspectSource,eo=Ir.WeakMap,to=Gr(eo)&&/native code/.test($a(eo)),no=Ir.TypeError,ro=Ir.WeakMap;if(to||Ei.state){var io=Ei.state||=new ro,ao=Wr(io.get),oo=Wr(io.has),so=Wr(io.set);Xa=function(e,t){if(oo(io,e))throw new no(`Object already initialized`);return t.facade=e,so(io,e,t),t},Za=function(e){return ao(io,e)||{}},Qa=function(e){return oo(io,e)}}else{var co=ta(`state`);ba[co]=!0,Xa=function(e,t){if(ji(e,co))throw new no(`Object already initialized`);return t.facade=e,Qi(e,co,t),t},Za=function(e){return ji(e,co)?e[co]:{}},Qa=function(e){return ji(e,co)}}var lo,uo,fo,po={set:Xa,get:Za,has:Qa,enforce:function(e){return Qa(e)?Za(e):Xa(e,{})},getterFor:function(e){return function(t){var n;if(!ai(t)||(n=Za(t)).type!==e)throw no(`Incompatible receiver, `+e+` required`);return n}}},mo=Function.prototype,ho=qr&&Object.getOwnPropertyDescriptor,go=ji(mo,`name`),_o={EXISTS:go,PROPER:go&&function(){}.name===`something`,CONFIGURABLE:go&&(!qr||qr&&ho(mo,`name`).configurable)},vo=function(e,t,n,r){r&&r.enumerable?e[t]=n:Qi(e,t,n)},yo=zi(`iterator`),bo=!1;[].keys&&(`next`in(fo=[].keys())?(uo=oa(oa(fo)))!==Object.prototype&&(lo=uo):bo=!0),lo=lo==null||Kr((function(){var e={};return lo[yo].call(e)!==e}))?{}:Na(lo),Gr(lo[yo])||vo(lo,yo,(function(){return this}));var xo={IteratorPrototype:lo,BUGGY_SAFARI_ITERATORS:bo},So=Ba?{}.toString:function(){return`[object `+Va(this)+`]`},Co=Zi.f,wo=zi(`toStringTag`),To=function(e,t,n,r){if(e){var i=n?e:e.prototype;ji(i,wo)||Co(i,wo,{configurable:!0,value:t}),r&&!Ba&&Qi(i,`toString`,So)}},Eo=xo.IteratorPrototype,Do=function(){return this},Oo=_o.PROPER,ko=xo.BUGGY_SAFARI_ITERATORS,Ao=zi(`iterator`),jo=function(){return this},Mo=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Na(Eo,{next:$r(+!r,n)}),To(e,i,!1,!0),Ra[i]=Do})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!ko&&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)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[Ao]||p[`@@iterator`]||i&&p[i],h=!ko&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=oa(g.call(new e)))!==Object.prototype&&s.next&&(To(s,d,!0,!0),Ra[d]=jo),Oo&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return Yr(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(ko||f||!(l in p))&&vo(p,l,c[l]);else $i({target:t,proto:!0,forced:ko||f},c);return o&&p[Ao]!==h&&vo(p,Ao,h,{name:i}),Ra[t]=h,c},No=po.set,Po=po.getterFor(`Array Iterator`);Mo(Array,`Array`,(function(e,t){No(this,{type:`Array Iterator`,target:ii(e),index:0,kind:t})}),(function(){var e=Po(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),Ra.Arguments=Ra.Array;var Fo=Wr(``.charAt),Io=Wr(``.charCodeAt),Lo=Wr(``.slice),Ro=function(e){return function(t,n){var r,i,a=Ka(ri(t)),o=fa(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Io(a,o))<55296||r>56319||o+1===s||(i=Io(a,o+1))<56320||i>57343?e?Fo(a,o):r:e?Lo(a,o,o+2):i-56320+(r-55296<<10)+65536}},zo={codeAt:Ro(!1),charAt:Ro(!0)}.charAt,Bo=po.set,Vo=po.getterFor(`String Iterator`);Mo(String,`String`,(function(e){Bo(this,{type:`String Iterator`,string:Ka(e),index:0})}),(function(){var e,t=Vo(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=zo(n,r),t.index+=e.length,{value:e,done:!1})}));var Ho=oi.AggregateError,Uo=zi(`toStringTag`);for(var Wo in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Go=Ir[Wo],Ko=Go&&Go.prototype;Ko&&Va(Ko)!==Uo&&Qi(Ko,Uo,Wo),Ra[Wo]=Ra.Array}var qo,Jo,Yo=Ho,Xo=function(e){return e&&e.Math==Math&&e},Zo=Xo(typeof globalThis==`object`&&globalThis)||Xo(typeof window==`object`&&window)||Xo(typeof self==`object`&&self)||Xo(typeof jr==`object`&&jr)||function(){return this}()||Function(`return this`)(),Qo=function(e){try{return!!e()}catch{return!0}},$o=!Qo((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),es=Function.prototype.call,ts=es.bind?es.bind(es):function(){return es.apply(es,arguments)},ns={}.propertyIsEnumerable,rs=Object.getOwnPropertyDescriptor,is={f:rs&&!ns.call({1:2},1)?function(e){var t=rs(this,e);return!!t&&t.enumerable}:ns},as=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},os=Function.prototype,ss=os.bind,cs=os.call,ls=ss&&ss.bind(cs),us=ss?function(e){return e&&ls(cs,e)}:function(e){return e&&function(){return cs.apply(e,arguments)}},ds=us({}.toString),une=us(``.slice),fs=function(e){return une(ds(e),8,-1)},ps=Zo.Object,dne=us(``.split),ms=Qo((function(){return!ps(`z`).propertyIsEnumerable(0)}))?function(e){return fs(e)==`String`?dne(e,``):ps(e)}:ps,fne=Zo.TypeError,hs=function(e){if(e==null)throw fne(`Can't call method on `+e);return e},gs=function(e){return ms(hs(e))},_s=function(e){return typeof e==`function`},vs=function(e){return typeof e==`object`?e!==null:_s(e)},pne=function(e){return _s(e)?e:void 0},ys=function(e,t){return arguments.length<2?pne(Zo[e]):Zo[e]&&Zo[e][t]},bs=us({}.isPrototypeOf),xs=ys(`navigator`,`userAgent`)||``,Ss=Zo.process,Cs=Zo.Deno,ws=Ss&&Ss.versions||Cs&&Cs.version,Ts=ws&&ws.v8;Ts&&(Jo=(qo=Ts.split(`.`))[0]>0&&qo[0]<4?1:+(qo[0]+qo[1])),!Jo&&xs&&(!(qo=xs.match(/Edge\/(\d+)/))||qo[1]>=74)&&(qo=xs.match(/Chrome\/(\d+)/))&&(Jo=+qo[1]);var Es=Jo,Ds=!!Object.getOwnPropertySymbols&&!Qo((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Es&&Es<41})),Os=Ds&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,mne=Zo.Object,ks=Os?function(e){return typeof e==`symbol`}:function(e){var t=ys(`Symbol`);return _s(t)&&bs(t.prototype,mne(e))},hne=Zo.String,As=function(e){try{return hne(e)}catch{return`Object`}},gne=Zo.TypeError,js=function(e){if(_s(e))return e;throw gne(As(e)+` is not a function`)},Ms=function(e,t){var n=e[t];return n==null?void 0:js(n)},_ne=Zo.TypeError,vne=Object.defineProperty,Ns=function(e,t){try{vne(Zo,e,{value:t,configurable:!0,writable:!0})}catch{Zo[e]=t}return t},Ps=Zo[`__core-js_shared__`]||Ns(`__core-js_shared__`,{}),Fs=Mr((function(e){(e.exports=function(e,t){return Ps[e]||(Ps[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),yne=Zo.Object,Is=function(e){return yne(hs(e))},bne=us({}.hasOwnProperty),Ls=Object.hasOwn||function(e,t){return bne(Is(e),t)},xne=0,Sne=Math.random(),Cne=us(1 .toString),Rs=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Cne(++xne+Sne,36)},zs=Fs(`wks`),Bs=Zo.Symbol,Vs=Bs&&Bs.for,wne=Os?Bs:Bs&&Bs.withoutSetter||Rs,Hs=function(e){if(!Ls(zs,e)||!Ds&&typeof zs[e]!=`string`){var t=`Symbol.`+e;Ds&&Ls(Bs,e)?zs[e]=Bs[e]:zs[e]=Os&&Vs?Vs(t):wne(t)}return zs[e]},Tne=Zo.TypeError,Ene=Hs(`toPrimitive`),Dne=function(e,t){if(!vs(e)||ks(e))return e;var n,r=Ms(e,Ene);if(r){if(t===void 0&&(t=`default`),n=ts(r,e,t),!vs(n)||ks(n))return n;throw Tne(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&_s(n=e.toString)&&!vs(r=ts(n,e))||_s(n=e.valueOf)&&!vs(r=ts(n,e))||t!==`string`&&_s(n=e.toString)&&!vs(r=ts(n,e)))return r;throw _ne(`Can't convert object to primitive value`)}(e,t)},Us=function(e){var t=Dne(e,`string`);return ks(t)?t:t+``},Ws=Zo.document,One=vs(Ws)&&vs(Ws.createElement),Gs=function(e){return One?Ws.createElement(e):{}},Ks=!$o&&!Qo((function(){return Object.defineProperty(Gs(`div`),`a`,{get:function(){return 7}}).a!=7})),qs=Object.getOwnPropertyDescriptor,Js={f:$o?qs:function(e,t){if(e=gs(e),t=Us(t),Ks)try{return qs(e,t)}catch{}if(Ls(e,t))return as(!ts(is.f,e,t),e[t])}},kne=Zo.String,Ane=Zo.TypeError,Ys=function(e){if(vs(e))return e;throw Ane(kne(e)+` is not an object`)},jne=Zo.TypeError,Xs=Object.defineProperty,Zs={f:$o?Xs:function(e,t,n){if(Ys(e),t=Us(t),Ys(n),Ks)try{return Xs(e,t,n)}catch{}if(`get`in n||`set`in n)throw jne(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Qs=$o?function(e,t,n){return Zs.f(e,t,as(1,n))}:function(e,t,n){return e[t]=n,e},Mne=us(Function.toString);_s(Ps.inspectSource)||(Ps.inspectSource=function(e){return Mne(e)});var $s,ec,tc,nc=Ps.inspectSource,rc=Zo.WeakMap,Nne=_s(rc)&&/native code/.test(nc(rc)),ic=Fs(`keys`),ac=function(e){return ic[e]||(ic[e]=Rs(e))},oc={},sc=Zo.TypeError,Pne=Zo.WeakMap;if(Nne||Ps.state){var cc=Ps.state||=new Pne,Fne=us(cc.get),lc=us(cc.has),Ine=us(cc.set);$s=function(e,t){if(lc(cc,e))throw new sc(`Object already initialized`);return t.facade=e,Ine(cc,e,t),t},ec=function(e){return Fne(cc,e)||{}},tc=function(e){return lc(cc,e)}}else{var uc=ac(`state`);oc[uc]=!0,$s=function(e,t){if(Ls(e,uc))throw new sc(`Object already initialized`);return t.facade=e,Qs(e,uc,t),t},ec=function(e){return Ls(e,uc)?e[uc]:{}},tc=function(e){return Ls(e,uc)}}var dc={set:$s,get:ec,has:tc,enforce:function(e){return tc(e)?ec(e):$s(e,{})},getterFor:function(e){return function(t){var n;if(!vs(t)||(n=ec(t)).type!==e)throw sc(`Incompatible receiver, `+e+` required`);return n}}},fc=Function.prototype,Lne=$o&&Object.getOwnPropertyDescriptor,pc=Ls(fc,`name`),mc={EXISTS:pc,PROPER:pc&&function(){}.name===`something`,CONFIGURABLE:pc&&(!$o||$o&&Lne(fc,`name`).configurable)},hc=Mr((function(e){var t=mc.CONFIGURABLE,n=dc.get,r=dc.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;_s(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Ls(a,`name`)||t&&a.name!==d)&&Qs(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Zo?l?e[n]=a:Ns(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Qs(e,n,a))})(Function.prototype,`toString`,(function(){return _s(this)&&n(this).source||nc(this)}))})),Rne=Math.ceil,zne=Math.floor,gc=function(e){var t=+e;return t!=t||t===0?0:(t>0?zne:Rne)(t)},Bne=Math.max,Vne=Math.min,_c=function(e,t){var n=gc(e);return n<0?Bne(n+t,0):Vne(n,t)},Hne=Math.min,vc=function(e){return e>0?Hne(gc(e),9007199254740991):0},yc=function(e){return vc(e.length)},bc=function(e){return function(t,n,r){var i,a=gs(t),o=yc(a),s=_c(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Une={includes:bc(!0),indexOf:bc(!1)}.indexOf,xc=us([].push),Sc=function(e,t){var n,r=gs(e),i=0,a=[];for(n in r)!Ls(oc,n)&&Ls(r,n)&&xc(a,n);for(;t.length>i;)Ls(r,n=t[i++])&&(~Une(a,n)||xc(a,n));return a},Cc=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Wne=Cc.concat(`length`,`prototype`),Gne={f:Object.getOwnPropertyNames||function(e){return Sc(e,Wne)}},Kne={f:Object.getOwnPropertySymbols},qne=us([].concat),Jne=ys(`Reflect`,`ownKeys`)||function(e){var t=Gne.f(Ys(e)),n=Kne.f;return n?qne(t,n(e)):t},wc=function(e,t){for(var n=Jne(t),r=Zs.f,i=Js.f,a=0;a<n.length;a++){var o=n[a];Ls(e,o)||r(e,o,i(t,o))}},Yne=/#|\.prototype\./,Tc=function(e,t){var n=Zne[Xne(e)];return n==$ne||n!=Qne&&(_s(t)?Qo(t):!!t)},Xne=Tc.normalize=function(e){return String(e).replace(Yne,`.`).toLowerCase()},Zne=Tc.data={},Qne=Tc.NATIVE=`N`,$ne=Tc.POLYFILL=`P`,ere=Tc,tre=Js.f,Ec=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Zo:l?Zo[s]||Ns(s,{}):(Zo[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=tre(n,r))&&o.value:n[r],!ere(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;wc(a,i)}(e.sham||i&&i.sham)&&Qs(a,`sham`,!0),hc(n,r,a,e)}},Dc={};Dc[Hs(`toStringTag`)]=`z`;var Oc,kc=String(Dc)===`[object z]`,nre=Hs(`toStringTag`),rre=Zo.Object,ire=fs(function(){return arguments}())==`Arguments`,Ac=kc?fs:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=rre(e),nre))==`string`?n:ire?fs(t):(r=fs(t))==`Object`&&_s(t.callee)?`Arguments`:r},are=Zo.String,jc=function(e){if(Ac(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return are(e)},ore=function(){var e=Ys(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},Mc=Zo.RegExp,Nc=Qo((function(){var e=Mc(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),sre=Nc||Qo((function(){return!Mc(`a`,`y`).sticky})),cre={BROKEN_CARET:Nc||Qo((function(){var e=Mc(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:sre,UNSUPPORTED_Y:Nc},lre=Object.keys||function(e){return Sc(e,Cc)},ure=$o?Object.defineProperties:function(e,t){Ys(e);for(var n,r=gs(t),i=lre(t),a=i.length,o=0;a>o;)Zs.f(e,n=i[o++],r[n]);return e},dre=ys(`document`,`documentElement`),Pc=ac(`IE_PROTO`),Fc=function(){},Ic=function(e){return`<script>`+e+`<\/script>`},Lc=function(e){e.write(Ic(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Rc=function(){try{Oc=new ActiveXObject(`htmlfile`)}catch{}var e,t;Rc=typeof document<`u`?document.domain&&Oc?Lc(Oc):((t=Gs(`iframe`)).style.display=`none`,dre.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Ic(`document.F=Object`)),e.close(),e.F):Lc(Oc);for(var n=Cc.length;n--;)delete Rc.prototype[Cc[n]];return Rc()};oc[Pc]=!0;var zc,Bc,Vc=Object.create||function(e,t){var n;return e===null?n=Rc():(Fc.prototype=Ys(e),n=new Fc,Fc.prototype=null,n[Pc]=e),t===void 0?n:ure(n,t)},fre=Zo.RegExp,pre=Qo((function(){var e=fre(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
8
|
+
`)&&e.flags===`s`)})),mre=Zo.RegExp,hre=Qo((function(){var e=mre(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),gre=dc.get,_re=Fs(`native-string-replace`,String.prototype.replace),Hc=RegExp.prototype.exec,Uc=Hc,vre=us(``.charAt),yre=us(``.indexOf),bre=us(``.replace),Wc=us(``.slice),Gc=(Bc=/b*/g,ts(Hc,zc=/a/,`a`),ts(Hc,Bc,`a`),zc.lastIndex!==0||Bc.lastIndex!==0),Kc=cre.BROKEN_CARET,qc=/()??/.exec(``)[1]!==void 0;(Gc||qc||Kc||pre||hre)&&(Uc=function(e){var t,n,r,i,a,o,s,c=this,l=gre(c),u=jc(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=ts(Uc,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=Kc&&c.sticky,m=ts(ore,c),h=c.source,g=0,_=u;if(p&&(m=bre(m,`y`,``),yre(m,`g`)===-1&&(m+=`g`),_=Wc(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&vre(u,c.lastIndex-1)!==`
|
|
9
|
+
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),qc&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),Gc&&(r=c.lastIndex),i=ts(Hc,p?n:c,_),p?i?(i.input=Wc(i.input,g),i[0]=Wc(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Gc&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),qc&&i&&i.length>1&&ts(_re,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=Vc(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var Jc=Uc;Ec({target:`RegExp`,proto:!0,forced:/./.exec!==Jc},{exec:Jc});var xre=Hs(`species`),Yc=RegExp.prototype,Sre=us(``.charAt),Xc=us(``.charCodeAt),Cre=us(``.slice),Zc=function(e){return function(t,n){var r,i,a=jc(hs(t)),o=gc(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Xc(a,o))<55296||r>56319||o+1===s||(i=Xc(a,o+1))<56320||i>57343?e?Sre(a,o):r:e?Cre(a,o,o+2):i-56320+(r-55296<<10)+65536}},Qc={codeAt:Zc(!1),charAt:Zc(!0)},wre=Qc.charAt,Tre=function(e,t,n){return t+(n?wre(e,t).length:1)},Ere=Zo.TypeError,$c=function(e,t){var n=e.exec;if(_s(n)){var r=ts(n,e,t);return r!==null&&Ys(r),r}if(fs(e)===`RegExp`)return ts(Jc,e,t);throw Ere(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=Hs(e),a=!Qo((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Qo((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[xre]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=us(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=us(e),c=t.exec;return c===Jc||c===Yc.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));hc(String.prototype,e,c[0]),hc(Yc,i,c[1])}r&&Qs(Yc[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=hs(this),r=t==null?void 0:Ms(t,e);return r?ts(r,t,n):new RegExp(t)[e](jc(n))},function(e){var r=Ys(this),i=jc(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return $c(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=$c(r,i))!==null;){var u=jc(s[0]);c[l]=u,u===``&&(r.lastIndex=Tre(i,vc(r.lastIndex),o)),l++}return l===0?null:c}]})),Ec({global:!0},{globalThis:Zo});var Dre=!Qo((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),el=ac(`IE_PROTO`),tl=Zo.Object,Ore=tl.prototype,nl=Dre?tl.getPrototypeOf:function(e){var t=Is(e);if(Ls(t,el))return t[el];var n=t.constructor;return _s(n)&&t instanceof n?n.prototype:t instanceof tl?Ore:null},kre=Zo.String,Are=Zo.TypeError,rl=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=us(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Ys(n),function(e){if(typeof e==`object`||_s(e))return e;throw Are(`Can't set `+kre(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),jre=Zo.Array,Mre=Math.max,Nre=us(``.replace),Pre=us(``.split),Fre=us([].join),il=String(Error(`zxcasd`).stack),al=/\n\s*at [^:]*:[^\n]*/,Ire=al.test(il),Lre=/@[^\n]*\n/.test(il)&&!/zxcasd/.test(il),Rre=function(e,t){if(typeof e!=`string`)return e;if(Ire)for(;t--;)e=Nre(e,al,``);else if(Lre)return Fre(function(e,t,n){for(var r,i,a,o,s=yc(e),c=_c(t,s),l=_c(n===void 0?s:n,s),u=jre(Mre(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=Us(i))in r?Zs.f(r,o,as(0,a)):r[o]=a;return u.length=d,u}(Pre(e,`
|
|
10
|
+
`),t),`
|
|
11
|
+
`);return e},zre=function(e,t){vs(t)&&`cause`in t&&Qs(e,`cause`,t.cause)},ol=us(us.bind),sl=function(e,t){return js(e),t===void 0?e:ol?ol(e,t):function(){return e.apply(t,arguments)}},cl={},Bre=Hs(`iterator`),Vre=Array.prototype,Hre=Hs(`iterator`),ll=function(e){if(e!=null)return Ms(e,Hre)||Ms(e,`@@iterator`)||cl[Ac(e)]},Ure=Zo.TypeError,ul=function(e,t,n){var r,i;Ys(e);try{if(!(r=Ms(e,`return`))){if(t===`throw`)throw n;return n}r=ts(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Ys(r),n},Wre=Zo.TypeError,dl=function(e,t){this.stopped=e,this.result=t},fl=dl.prototype,Gre=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=sl(t,u),h=function(e){return r&&ul(r,`normal`,e),new dl(!0,e)},g=function(e){return d?(Ys(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=ll(e)))throw Wre(As(e)+` is not iterable`);if(function(e){return e!==void 0&&(cl.Array===e||Vre[Bre]===e)}(i)){for(a=0,o=yc(e);o>a;a++)if((s=g(e[a]))&&bs(fl,s))return s;return new dl(!1)}r=function(e,t){var n=arguments.length<2?ll(e):t;if(js(n))return Ys(ts(n,e));throw Ure(As(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=ts(c,r)).done;){try{s=g(l.value)}catch(e){ul(r,`throw`,e)}if(typeof s==`object`&&s&&bs(fl,s))return s}return new dl(!1)},Kre=function(e,t){return e===void 0?arguments.length<2?``:t:jc(e)},qre=!Qo((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,as(1,7)),e.stack!==7)})),pl=Hs(`toStringTag`),ml=Zo.Error,Jre=[].push,hl=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=bs(gl,this);rl?n=rl(new ml(void 0),i?nl(this):gl):(n=i?this:Vc(gl),Qs(n,pl,`Error`)),Qs(n,`message`,Kre(t,``)),qre&&Qs(n,`stack`,Rre(n.stack,1)),zre(n,r);var a=[];return Gre(e,Jre,{that:a}),Qs(n,`errors`,a),n};rl?rl(hl,ml):wc(hl,ml);var gl=hl.prototype=Vc(ml.prototype,{constructor:as(1,hl),message:as(1,``),name:as(1,`AggregateError`)});Ec({global:!0},{AggregateError:hl});var _l=Hs(`unscopables`),vl=Array.prototype;vl[_l]??Zs.f(vl,_l,{configurable:!0,value:Vc(null)});var yl,bl,xl,Sl=function(e){vl[_l][e]=!0},Cl=Hs(`iterator`),wl=!1;[].keys&&(`next`in(xl=[].keys())?(bl=nl(nl(xl)))!==Object.prototype&&(yl=bl):wl=!0),(yl==null||Qo((function(){var e={};return yl[Cl].call(e)!==e})))&&(yl={}),_s(yl[Cl])||hc(yl,Cl,(function(){return this}));var Tl={IteratorPrototype:yl,BUGGY_SAFARI_ITERATORS:wl},El=Zs.f,Dl=Hs(`toStringTag`),Ol=function(e,t,n){e&&!Ls(e=n?e:e.prototype,Dl)&&El(e,Dl,{configurable:!0,value:t})},Yre=Tl.IteratorPrototype,Xre=function(){return this},Zre=mc.PROPER,Qre=mc.CONFIGURABLE,kl=Tl.IteratorPrototype,Al=Tl.BUGGY_SAFARI_ITERATORS,jl=Hs(`iterator`),$re=function(){return this},Ml=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Vc(Yre,{next:as(+!r,n)}),Ol(e,i,!1),cl[i]=Xre})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Al&&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)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[jl]||p[`@@iterator`]||i&&p[i],h=!Al&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=nl(g.call(new e)))!==Object.prototype&&s.next&&(nl(s)!==kl&&(rl?rl(s,kl):_s(s[jl])||hc(s,jl,$re)),Ol(s,d,!0)),Zre&&i==`values`&&m&&m.name!==`values`&&(Qre?Qs(p,`name`,`values`):(f=!0,h=function(){return ts(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Al||f||!(l in p))&&hc(p,l,c[l]);else Ec({target:t,proto:!0,forced:Al||f},c);return p[jl]!==h&&hc(p,jl,h,{name:i}),cl[t]=h,c},eie=dc.set,tie=dc.getterFor(`Array Iterator`),Nl=Ml(Array,`Array`,(function(e,t){eie(this,{type:`Array Iterator`,target:gs(e),index:0,kind:t})}),(function(){var e=tie(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);cl.Arguments=cl.Array,Sl(`keys`),Sl(`values`),Sl(`entries`);var Pl=Qc.charAt,Fl=dc.set,Il=dc.getterFor(`String Iterator`);Ml(String,`String`,(function(e){Fl(this,{type:`String Iterator`,string:jc(e),index:0})}),(function(){var e,t=Il(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Pl(n,r),t.index+=e.length,{value:e,done:!1})}));var Ll,Rl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},zl=Gs(`span`).classList,Bl=zl&&zl.constructor&&zl.constructor.prototype,Vl=Bl===Object.prototype?void 0:Bl,Hl=Hs(`iterator`),Ul=Hs(`toStringTag`),Wl=Nl.values,Gl=function(e,t){if(e){if(e[Hl]!==Wl)try{Qs(e,Hl,Wl)}catch{e[Hl]=Wl}if(e[Ul]||Qs(e,Ul,t),Rl[t]){for(var n in Nl)if(e[n]!==Nl[n])try{Qs(e,n,Nl[n])}catch{e[n]=Nl[n]}}}};for(var Kl in Rl)Gl(Zo[Kl]&&Zo[Kl].prototype,Kl);Gl(Vl,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
12
|
+
Sorry, wangEditor V5+ versions do not support IE browser.`),ql(),Jl()):global&&(Ll=global.navigator)!=null&&Ll.userAgent.match(`QQBrowser`)&&(ql(),Jl());function ql(){typeof globalThis>`u`&&(window.globalThis=window)}function Jl(){Yo===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var Yl,Xl=Array.isArray||function(e){return ei(e)==`Array`},Zl=function(){},Ql=[],$l=ci(`Reflect`,`construct`),eu=/^\s*(?:class|function)\b/,tu=Wr(eu.exec),nu=!eu.exec(Zl),ru=function(e){if(!Gr(e))return!1;try{return $l(Zl,Ql,e),!0}catch{return!1}},iu=!$l||Kr((function(){var e;return ru(ru.call)||!ru(Object)||!ru((function(){e=!0}))||e}))?function(e){if(!Gr(e))return!1;switch(Va(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return nu||!!tu(eu,$a(e))}:ru,au=zi(`species`),ou=Ir.Array,su=function(e,t){return new(function(e){var t;return Xl(e)&&(t=e.constructor,(iu(t)&&(t===ou||Xl(t.prototype))||ai(t)&&(t=t[au])===null)&&(t=void 0)),t===void 0?ou:t}(e))(t===0?0:t)},cu=zi(`species`),lu=zi(`isConcatSpreadable`),uu=Ir.TypeError,nie=gi>=51||!Kr((function(){var e=[];return e[lu]=!1,e.concat()[0]!==e})),rie=(Yl=`concat`,gi>=51||!Kr((function(){var e=[];return(e.constructor={})[cu]=function(){return{foo:1}},e[Yl](Boolean).foo!==1}))),iie=function(e){if(!ai(e))return!1;var t=e[lu];return t===void 0?Xl(e):!!t};$i({target:`Array`,proto:!0,forced:!nie||!rie},{concat:function(e){var t,n,r,i,a,o=ki(this),s=su(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(iie(a=t===-1?o:arguments[t])){if(c+(i=_a(a))>9007199254740991)throw uu(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Pa(s,c,a[n])}else{if(c>=9007199254740991)throw uu(`Maximum allowed index exceeded`);Pa(s,c++,a)}return s.length=c,s}});var du=Ta.f,fu=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pu={f:function(e){return fu&&ei(e)==`Window`?function(e){try{return du(e)}catch{return Fa(fu)}}(e):du(ii(e))}},aie=Wr([].slice),mu={f:zi},oie=Zi.f,hu=function(e){var t=oi.Symbol||={};ji(t,e)||oie(t,e,{value:mu.f(e)})},gu=Wr([].push),_u=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=ki(c),h=ni(m),g=Ji(l,u),_=_a(h),v=0,y=d||su,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:gu(b,f)}else switch(e){case 4:return!1;case 7:gu(b,f)}return a?-1:r||i?i:b}},vu={forEach:_u(0),map:_u(1),filter:_u(2),some:_u(3),every:_u(4),find:_u(5),findIndex:_u(6),filterReject:_u(7)}.forEach,yu=ta(`hidden`),bu=zi(`toPrimitive`),sie=po.set,xu=po.getterFor(`Symbol`),Su=Object.prototype,Cu=Ir.Symbol,wu=Cu&&Cu.prototype,Tu=Ir.TypeError,Eu=Ir.QObject,Du=ci(`JSON`,`stringify`),Ou=Gi.f,ku=Zi.f,Au=pu.f,ju=Qr.f,Mu=Wr([].push),Nu=Di(`symbols`),Pu=Di(`op-symbols`),Fu=Di(`string-to-symbol-registry`),Iu=Di(`symbol-to-string-registry`),Lu=Di(`wks`),Ru=!Eu||!Eu.prototype||!Eu.prototype.findChild,zu=qr&&Kr((function(){return Na(ku({},`a`,{get:function(){return ku(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=Ou(Su,t);r&&delete Su[t],ku(e,t,n),r&&e!==Su&&ku(Su,t,r)}:ku,Bu=function(e,t){var n=Nu[e]=Na(wu);return sie(n,{type:`Symbol`,tag:e,description:t}),qr||(n.description=t),n},Vu=function(e,t,n){e===Su&&Vu(Pu,t,n),Yi(e);var r=Bi(t);return Yi(n),ji(Nu,r)?(n.enumerable?(ji(e,yu)&&e[yu][r]&&(e[yu][r]=!1),n=Na(n,{enumerable:$r(0,!1)})):(ji(e,yu)||ku(e,yu,$r(1,{})),e[yu][r]=!0),zu(e,r,n)):ku(e,r,n)},Hu=function(e,t){Yi(e);var n=ii(t);return vu(Da(n).concat(Ku(n)),(function(t){qr&&!Yr(Uu,n,t)||Vu(e,t,n[t])})),e},Uu=function(e){var t=Bi(e),n=Yr(ju,this,t);return!(this===Su&&ji(Nu,t)&&!ji(Pu,t))&&(!(n||!ji(this,t)||!ji(Nu,t)||ji(this,yu)&&this[yu][t])||n)},Wu=function(e,t){var n=ii(e),r=Bi(t);if(n!==Su||!ji(Nu,r)||ji(Pu,r)){var i=Ou(n,r);return!i||!ji(Nu,r)||ji(n,yu)&&n[yu][r]||(i.enumerable=!0),i}},Gu=function(e){var t=Au(ii(e)),n=[];return vu(t,(function(e){ji(Nu,e)||ji(ba,e)||Mu(n,e)})),n},Ku=function(e){var t=e===Su,n=Au(t?Pu:ii(e)),r=[];return vu(n,(function(e){!ji(Nu,e)||t&&!ji(Su,e)||Mu(r,Nu[e])})),r};if(_i||(wu=(Cu=function(){if(li(wu,this))throw Tu(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?Ka(arguments[0]):void 0,t=Fi(e),n=function(e){this===Su&&Yr(n,Pu,e),ji(this,yu)&&ji(this[yu],t)&&(this[yu][t]=!1),zu(this,t,$r(1,e))};return qr&&Ru&&zu(Su,t,{configurable:!0,set:n}),Bu(t,e)}).prototype,vo(wu,`toString`,(function(){return xu(this).tag})),vo(Cu,`withoutSetter`,(function(e){return Bu(Fi(e),e)})),Qr.f=Uu,Zi.f=Vu,Gi.f=Wu,Ta.f=pu.f=Gu,Ea.f=Ku,mu.f=function(e){return Bu(zi(e),e)},qr&&ku(wu,`description`,{configurable:!0,get:function(){return xu(this).description}})),$i({global:!0,wrap:!0,forced:!_i,sham:!_i},{Symbol:Cu}),vu(Da(Lu),(function(e){hu(e)})),$i({target:`Symbol`,stat:!0,forced:!_i},{for:function(e){var t=Ka(e);if(ji(Fu,t))return Fu[t];var n=Cu(t);return Fu[t]=n,Iu[n]=t,n},keyFor:function(e){if(!bi(e))throw Tu(e+` is not a symbol`);if(ji(Iu,e))return Iu[e]},useSetter:function(){Ru=!0},useSimple:function(){Ru=!1}}),$i({target:`Object`,stat:!0,forced:!_i,sham:!qr},{create:function(e,t){return t===void 0?Na(e):Hu(Na(e),t)},defineProperty:Vu,defineProperties:Hu,getOwnPropertyDescriptor:Wu}),$i({target:`Object`,stat:!0,forced:!_i},{getOwnPropertyNames:Gu,getOwnPropertySymbols:Ku}),$i({target:`Object`,stat:!0,forced:Kr((function(){Ea.f(1)}))},{getOwnPropertySymbols:function(e){return Ea.f(ki(e))}}),Du&&$i({target:`JSON`,stat:!0,forced:!_i||Kr((function(){var e=Cu();return Du([e])!=`[null]`||Du({a:e})!=`{}`||Du(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=aie(arguments),i=t;if((ai(t)||e!==void 0)&&!bi(e))return Xl(t)||(t=function(e,t){if(Gr(i)&&(t=Yr(i,this,e,t)),!bi(t))return t}),r[1]=t,Br(Du,null,r)}}),!wu[bu]){var cie=wu.valueOf;vo(wu,bu,(function(e){return Yr(cie,this)}))}To(Cu,`Symbol`),ba[yu]=!0,hu(`asyncIterator`),hu(`hasInstance`),hu(`isConcatSpreadable`),hu(`iterator`),hu(`match`),hu(`matchAll`),hu(`replace`),hu(`search`),hu(`species`),hu(`split`),hu(`toPrimitive`),hu(`toStringTag`),hu(`unscopables`),To(Ir.JSON,`JSON`,!0);var lie=oi.Symbol;hu(`asyncDispose`),hu(`dispose`),hu(`matcher`),hu(`metadata`),hu(`observable`),hu(`patternMatch`),hu(`replaceAll`);var qu=lie,uie=mu.f(`iterator`),die=ute(Mr((function(e){function t(n){return typeof qu==`function`&&typeof uie==`symbol`?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&typeof qu==`function`&&e.constructor===qu&&e!==qu.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}))),Ju=Js.f,fie=Qo((function(){Ju(1)}));if(Ec({target:`Object`,stat:!0,forced:!$o||fie,sham:!$o},{getOwnPropertyDescriptor:function(e,t){return Ju(gs(e),t)}}),(typeof global>`u`?`undefined`:die(global))===`object`){var pie=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!pie.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:``},global.location={hostname:`0.0.0.0`,port:0,protocol:`http:`},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function Yu(e){return Object.prototype.toString.call(e)===`[object Object]`}function Xu(e){var t,n;return!1!==Yu(e)&&((t=e.constructor)===void 0||!1!==Yu(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function Zu(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error(`[Immer] minified error nr: `+e+(n.length?` `+n.map((function(e){return`'`+e+`'`})).join(`,`):``)+`. Find the full error at: https://bit.ly/3cXEKWf`)}function Qu(e){return!!e&&!!e[Md]}function $u(e){return!!e&&(function(e){if(!e||typeof e!=`object`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;var n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return n===Object||typeof n==`function`&&Function.toString.call(n)===yie}(e)||Array.isArray(e)||!!e[jd]||!!e.constructor[jd]||id(e)||ad(e))}function ed(e,t,n){n===void 0&&(n=!1),td(e)===0?(n?Object.keys:Nd)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function td(e){var t=e[Md];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:id(e)?2:ad(e)?3:0}function nd(e,t){return td(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rd(e,t,n){var r=td(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function id(e){return _ie&&e instanceof Map}function ad(e){return vie&&e instanceof Set}function od(e){return e.o||e.t}function sd(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=bie(e);delete t[Md];for(var n=Nd(t),r=0;r<n.length;r++){var i=n[r],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function cd(e,t){return t===void 0&&(t=!1),ld(e)||Qu(e)||!$u(e)||(td(e)>1&&(e.set=e.add=e.clear=e.delete=mie),Object.freeze(e),t&&ed(e,(function(e,t){return cd(t,!0)}),!0)),e}function mie(){Zu(2)}function ld(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function ud(e){var t=xie[e];return t||Zu(18,e),t}function dd(){return Dd}function fd(e,t){t&&(ud(`Patches`),e.u=[],e.s=[],e.v=t)}function pd(e){md(e),e.p.forEach(hie),e.p=null}function md(e){e===Dd&&(Dd=e.l)}function hd(e){return Dd={p:[],l:Dd,h:e,m:!0,_:0}}function hie(e){var t=e[Md];t.i===0||t.i===1?t.j():t.O=!0}function gd(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ud(`ES5`).S(t,e,r),r?(n[Md].P&&(pd(t),Zu(4)),$u(e)&&(e=_d(t,e),t.l||yd(t,e)),t.u&&ud(`Patches`).M(n[Md],e,t.u,t.s)):e=_d(t,n,[]),pd(t),t.u&&t.v(t.u,t.s),e===Ad?void 0:e}function _d(e,t,n){if(ld(t))return t;var r=t[Md];if(!r)return ed(t,(function(i,a){return vd(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return yd(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=sd(r.k):r.o;ed(r.i===3?new Set(i):i,(function(t,a){return vd(e,r,i,t,a,n)})),yd(e,i,!1),n&&e.u&&ud(`Patches`).R(r,n,e.u,e.s)}return r.o}function vd(e,t,n,r,i,a){if(Qu(i)){var o=_d(e,i,a&&t&&t.i!==3&&!nd(t.D,r)?a.concat(r):void 0);if(rd(n,r,o),!Qu(o))return;e.m=!1}if($u(i)&&!ld(i)){if(!e.h.F&&e._<1)return;_d(e,i),t&&t.A.l||yd(e,i)}}function yd(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&cd(t,n)}function bd(e,t){var n=e[Md];return(n?od(n):e)[t]}function xd(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 Sd(e){e.P||(e.P=!0,e.l&&Sd(e.l))}function Cd(e){e.o||=sd(e.t)}function wd(e,t,n){var r=id(t)?ud(`MapSet`).N(t,n):ad(t)?ud(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:dd(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=Pd;n&&(i=[r],a=Fd);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):ud(`ES5`).J(t,n);return(n?n.A:dd()).p.push(r),r}function gie(e){return Qu(e)||Zu(22,e),function e(t){if(!$u(t))return t;var n,r=t[Md],i=td(t);if(r){if(!r.P&&(r.i<4||!ud(`ES5`).K(r)))return r.t;r.I=!0,n=Td(t,i),r.I=!1}else n=Td(t,i);return ed(n,(function(t,i){r&&function(e,t){return td(e)===2?e.get(t):e[t]}(r.t,t)===i||rd(n,t,e(i))})),i===3?new Set(n):n}(e)}function Td(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return sd(e)}var Ed,Dd,Od=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,_ie=typeof Map<`u`,vie=typeof Set<`u`,kd=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,Ad=Od?Symbol.for(`immer-nothing`):((Ed={})[`immer-nothing`]=!0,Ed),jd=Od?Symbol.for(`immer-draftable`):`__$immer_draftable`,Md=Od?Symbol.for(`immer-state`):`__$immer_state`,yie=``+Object.prototype.constructor,Nd=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},bie=Object.getOwnPropertyDescriptors||function(e){var t={};return Nd(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},xie={},Pd={get:function(e,t){if(t===Md)return e;var n=od(e);if(!nd(n,t))return function(e,t,n){var r=xd(t,n);return r?`value`in r?r.value:r.get?.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!$u(r)?r:r===bd(e.t,t)?(Cd(e),e.o[t]=wd(e.A.h,r,e)):r},has:function(e,t){return t in od(e)},ownKeys:function(e){return Reflect.ownKeys(od(e))},set:function(e,t,n){var r=xd(od(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=bd(od(e),t),a=i?.[Md];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}(n,i)&&(n!==void 0||nd(e.t,t)))return!0;Cd(e),Sd(e)}return e.o[t]===n&&typeof n!=`number`&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return bd(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Cd(e),Sd(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=od(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Zu(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Zu(12)}},Fd={};ed(Pd,(function(e,t){Fd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Fd.deleteProperty=function(e,t){return Pd.deleteProperty.call(this,e[0],t)},Fd.set=function(e,t,n){return Pd.set.call(this,e[0],t,n,e[0])};var Id=new(function(){function e(e){var t=this;this.g=kd,this.F=!0,this.produce=function(e,n,r){if(typeof e==`function`&&typeof n!=`function`){var i=n;n=e;var a=t;return function(e){var t=this;e===void 0&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var o;if(typeof n!=`function`&&Zu(6),r!==void 0&&typeof r!=`function`&&Zu(7),$u(e)){var s=hd(t),c=wd(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?pd(s):md(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return fd(s,r),gd(e,s)}),(function(e){throw pd(s),e})):(fd(s,r),gd(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===Ad?void 0:(o===void 0&&(o=e),t.F&&cd(o,!0),o);Zu(21,e)},this.produceWithPatches=function(e,n){return typeof e==`function`?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},typeof e?.useProxies==`boolean`&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){$u(e)||Zu(8),Qu(e)&&(e=gie(e));var t=hd(this),n=wd(this,e,void 0);return n[Md].C=!0,md(t),n},t.finishDraft=function(e,t){var n=(e&&e[Md]).A;return fd(n,t),gd(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!kd&&Zu(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=ud(`Patches`).$;return Qu(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),Ld=Id.produce;Id.produceWithPatches.bind(Id),Id.setAutoFreeze.bind(Id),Id.setUseProxies.bind(Id),Id.applyPatches.bind(Id);var Rd=Id.createDraft.bind(Id),zd=Id.finishDraft.bind(Id);function Bd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vd=new WeakMap,Hd=new WeakMap,Ud=new WeakMap,Wd=new WeakMap,Gd=new WeakMap,Kd=new WeakMap;function qd(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 Jd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qd(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yd=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of R.pathRefs(e))zf.transform(n,t);for(var r of R.pointRefs(e))Uf.transform(r,t);for(var i of R.rangeRefs(e))Kf.transform(i,t);var a=new Set,o=[],s=e=>{if(e){var t=e.join(`,`);a.has(t)||(a.add(t),o.push(e))}},c=Vd.get(e)||[],l=Xd(t);for(var u of c)s(B.transform(u,t));for(var d of l)s(d);Vd.set(e,o),U.transform(e,t),e.operations.push(t),R.normalize(e),t.type===`set_selection`&&(e.marks=null),Hd.get(e)||(Hd.set(e,!0),Promise.resolve().then((()=>{Hd.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(V.isExpanded(r)?U.setNodes(e,{[t]:n},{match:H.isText,split:!0}):(e.marks=Jd(Jd({},R.marks(e)||{}),{},{[t]:n}),Hd.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&V.isCollapsed(n)&&U.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&V.isCollapsed(n)&&U.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&V.isExpanded(n)&&U.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?z.fragment(e,t):[]},insertBreak:()=>{U.splitNodes(e,{always:!0})},insertFragment:t=>{U.insertFragment(e,t)},insertNode:t=>{U.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Jd({text:t},r);U.insertNodes(e,i)}else U.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!H.isText(n))if(L.isElement(n)&&n.children.length===0)U.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!R.isEditor(n)&&L.isElement(n)&&(e.isInline(n)||n.children.length===0||H.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=z.get(e,r);if(!H.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(H.isText(c)||L.isElement(c)&&e.isInline(c))===i?L.isElement(c)?e.isInline(c)&&(l!=null&&H.isText(l)?u&&(U.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(U.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&H.isText(l)&&(H.equals(c,l,{loose:!0})?(U.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(U.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(U.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(U.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}},removeMark:t=>{var{selection:n}=e;if(n)if(V.isExpanded(n))U.unsetNodes(e,t,{match:H.isText,split:!0});else{var r=Jd({},R.marks(e)||{});delete r[t],e.marks=r,Hd.get(e)||e.onChange()}}};return e},Xd=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return B.levels(t);case`insert_node`:var{node:n,path:r}=e,i=B.levels(r),a=H.isText(n)?[]:Array.from(z.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...B.ancestors(o),B.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(B.equals(s,c))return[];var l=[],u=[];for(var d of B.ancestors(s)){var f=B.transform(d,e);l.push(f)}for(var p of B.ancestors(c)){var m=B.transform(p,e);u.push(m)}var h=u[u.length-1],g=c[c.length-1],_=h.concat(g);return[...l,...u,_];case`remove_node`:var{path:v}=e;return[...B.ancestors(v)];case`split_node`:var{path:y}=e;return[...B.levels(y),B.next(y)];default:return[]}};function Zd(e,t){if(e==null)return{};var n,r,i=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Qd,$d=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?of(e):e,i=Qd.None,a=Qd.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=vf(c,l);if([i,a]=n?[a,u]:[u,i],yf(i,Qd.ZWJ)&&yf(a,Qd.ExtPict)&&!Cf(n?e.substring(0,o):e.substring(0,e.length-o))||yf(i,Qd.RI)&&yf(a,Qd.RI)&&!(s=s===null?!!n||Tf(e.substring(0,e.length-o)):!s)||i!==Qd.None&&a!==Qd.None&&xf(i,a))break;o+=c.length}return o||1},ef=/\s/,tf=/[\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]/,nf=/['\u2018\u2019]/,rf=(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)]},af=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(ef.test(t))return!1;if(nf.test(t)){var[i,a]=rf(n,$d(n,r),r);if(e(i,a,r))return!0}return!tf.test(t)},of=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(cf(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(sf(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},sf=e=>e>=55296&&e<=56319,cf=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`})(Qd||={});var lf=/^(?:[\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])$/,uf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,df=/^(?:[\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])$/,ff=/^[\u1100-\u115F\uA960-\uA97C]$/,pf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,mf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,hf=/^[\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]$/,gf=/^[\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]$/,_f=/^(?:[\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])$/,vf=(e,t)=>{var n=Qd.Any;return e.search(lf)!==-1&&(n|=Qd.Extend),t===8205&&(n|=Qd.ZWJ),t>=127462&&t<=127487&&(n|=Qd.RI),e.search(uf)!==-1&&(n|=Qd.Prepend),e.search(df)!==-1&&(n|=Qd.SpacingMark),e.search(ff)!==-1&&(n|=Qd.L),e.search(pf)!==-1&&(n|=Qd.V),e.search(mf)!==-1&&(n|=Qd.T),e.search(hf)!==-1&&(n|=Qd.LV),e.search(gf)!==-1&&(n|=Qd.LVT),e.search(_f)!==-1&&(n|=Qd.ExtPict),n};function yf(e,t){return(e&t)!=0}var bf=[[Qd.L,Qd.L|Qd.V|Qd.LV|Qd.LVT],[Qd.LV|Qd.V,Qd.V|Qd.T],[Qd.LVT|Qd.T,Qd.T],[Qd.Any,Qd.Extend|Qd.ZWJ],[Qd.Any,Qd.SpacingMark],[Qd.Prepend,Qd.Any],[Qd.ZWJ,Qd.ExtPict],[Qd.RI,Qd.RI]];function xf(e,t){return bf.findIndex((n=>yf(e,n[0])&&yf(t,n[1])))===-1}var Sf=/(?:[\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$/,Cf=e=>e.search(Sf)!==-1,wf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Tf=e=>{var t=e.match(wf);return t!==null&&t[0].length/2%2==1},Ef=e=>Xu(e)&&z.isNodeList(e.children)&&!R.isEditor(e),L={isAncestor:e=>Xu(e)&&z.isNodeList(e.children),isElement:Ef,isElementList:e=>Array.isArray(e)&&e.every((e=>L.isElement(e))),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`type`;return Ef(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},Df=[`text`],Of=[`text`];function kf(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 Af(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kf(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jf=new WeakMap,R={above(e){var{voids:t=!1,mode:n=`lowest`,at:r=e.selection,match:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r){var a=R.path(e,r),o=n===`lowest`;for(var[s,c]of R.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!H.isText(s)&&!B.equals(a,c))return[s,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:R.point(e,t,{edge:`end`}),focus:R.end(e,[])},{distance:a=1}=r,o=0;for(var s of R.positions(e,Af(Af({},r),{},{at:i}))){if(o>a)break;o!==0&&(n=s),o++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:R.start(e,[]),focus:R.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of R.positions(e,Af(Af({},r),{},{at:i,reverse:!0}))){if(o>a)break;o!==0&&(n=s),o++}return n},deleteBackward(e){var{unit:t=`character`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteBackward(t)},deleteForward(e){var{unit:t=`character`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteForward(t)},deleteFragment(e){var{direction:t=`forward`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteFragment(t)},edges:(e,t)=>[R.start(e,t),R.end(e,t)],end:(e,t)=>R.point(e,t,{edge:`end`}),first(e,t){var n=R.path(e,t,{edge:`start`});return R.node(e,n)},fragment(e,t){var n=R.range(e,t);return z.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>R.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>H.isText(t)||R.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>H.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)=>L.isElement(t)&&!e.isInline(t),isEditor(e){if(!Xu(e))return!1;var t=jf.get(e);if(t!==void 0)return t;var n=typeof e.addMark==`function`&&typeof e.apply==`function`&&typeof e.deleteBackward==`function`&&typeof e.deleteForward==`function`&&typeof e.deleteFragment==`function`&&typeof e.insertBreak==`function`&&typeof e.insertFragment==`function`&&typeof e.insertNode==`function`&&typeof e.insertText==`function`&&typeof e.isInline==`function`&&typeof e.isVoid==`function`&&typeof e.normalizeNode==`function`&&typeof e.onChange==`function`&&typeof e.removeMark==`function`&&(e.marks===null||Xu(e.marks))&&(e.selection===null||V.isRange(e.selection))&&z.isNodeList(e.children)&&Rf.isOperationList(e.operations);return jf.set(e,n),n},isEnd(e,t,n){var r=R.end(e,n);return Hf.equals(t,r)},isEdge:(e,t,n)=>R.isStart(e,t,n)||R.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&H.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>L.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Ud.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=R.start(e,n);return Hf.equals(t,r)},isVoid:(e,t)=>L.isElement(t)&&e.isVoid(t),last(e,t){var n=R.path(e,t,{edge:`end`});return R.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=R.path(e,t,n);return[z.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:a}=t;if(a??=()=>!0,n){var o=[],s=R.path(e,n);for(var[c,l]of z.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&R.isVoid(e,c)))break;r&&o.reverse(),yield*o}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(V.isExpanded(n)){var[r]=R.nodes(e,{match:H.isText});if(r){var[i]=r;return Zd(i,Df)}return{}}var{anchor:a}=n,{path:o}=a,[s]=R.leaf(e,o);if(a.offset===0){var c=R.previous(e,{at:o,match:H.isText}),l=R.above(e,{match:t=>R.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;B.isAncestor(f,d)&&(s=u)}}return Zd(s,Of)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=R.after(e,a,{voids:r});if(o){var[,s]=R.last(e,[]),c=[o.path,s];if(B.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null)if(B.isPath(a)){var[l]=R.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=R.nodes(e,{at:c,match:i,mode:n,voids:r});return u}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=R.path(e,t,n);return[z.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r=`all`,universal:i=!1,reverse:a=!1,voids:o=!1}=t,{match:s}=t;if(s||=()=>!0,n){var c,l;if(Mf.isSpan(n))c=n[0],l=n[1];else{var u=R.path(e,n,{edge:`start`}),d=R.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=z.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&R.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&B.compare(g,f[1])===0;if(r!==`highest`||!_){if(s(h,g))if(r===`lowest`&&_)f=[h,g];else{var v=r===`lowest`?f:[h,g];v&&(i?m.push(v):yield v),f=[h,g]}else if(i&&!_&&H.isText(h))return}}r===`lowest`&&f&&(i?m.push(f):yield f),i&&(yield*m)}},normalize(e){var{force:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e=>Vd.get(e)||[];if(R.isNormalizing(e)){if(t){var r=Array.from(z.nodes(e),(e=>{var[,t]=e;return t}));Vd.set(e,r)}n(e).length!==0&&R.withoutNormalizing(e,(()=>{for(var t of n(e))if(z.has(e,t)){var r=R.node(e,t),[i,a]=r;L.isElement(i)&&i.children.length===0&&e.normalizeNode(r)}for(var o=42*n(e).length,s=0;n(e).length!==0;){if(s>o)throw Error(`
|
|
13
|
+
Could not completely normalize the editor after ${o} iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
|
|
14
|
+
`);var c=n(e).pop();if(z.has(e,c)){var l=R.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=R.path(e,t,n),i=B.parent(r);return R.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(B.isPath(t)){if(r===`start`){var[,i]=z.first(e,t);t=i}else if(r===`end`){var[,a]=z.last(e,t);t=a}}return V.isRange(t)&&(t=r===`start`?V.start(t):r===`end`?V.end(t):B.common(t.anchor.path,t.focus.path)),Hf.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>z.has(e,t),pathRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return R.pathRefs(e).delete(r),r.current=null,t}};return R.pathRefs(e).add(r),r},pathRefs(e){var t=Wd.get(e);return t||(t=new Set,Wd.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(B.isPath(t)){var r;if(n===`end`){var[,i]=z.last(e,t);r=i}else{var[,a]=z.first(e,t);r=a}var o=z.get(e,r);if(!H.isText(o))throw Error(`Cannot get the ${n} point in the node at path [${t}] because it has no ${n} text node.`);return{path:r,offset:n===`end`?o.text.length:0}}if(V.isRange(t)){var[s,c]=V.edges(t);return n===`start`?s:c}return t},pointRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return R.pointRefs(e).delete(r),r.current=null,t}};return R.pointRefs(e).add(r),r},pointRefs(e){var t=Gd.get(e);return t||(t=new Set,Gd.set(e,t)),t},*positions(e){var{at:t=e.selection,unit:n=`offset`,reverse:r=!1,voids:i=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t){var a=R.range(e,t),[o,s]=V.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of R.nodes(e,{at:t,reverse:r,voids:i})){if(L.isElement(m)){if(!i&&e.isVoid(m)){yield R.start(e,h);continue}if(e.isInline(m))continue;if(R.hasInlines(e,m)){var g=B.isAncestor(h,s.path)?s:R.end(e,h),_=B.isAncestor(h,o.path)?o:R.start(e,h);u=R.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(H.isText(m)){var v=B.equals(h,c.path);for(v?(f=r?c.offset:m.text.length-c.offset,p=c.offset):(f=m.text.length,p=r?f:0),(v||l||n===`offset`)&&(yield{path:h,offset:p},l=!1);;){if(d===0){if(u===``)break;d=y(u,n,r),u=rf(u,d,r)[1]}if(p=r?p-d:p+d,(f-=d)<0){d=-f;break}d=0,yield{path:h,offset:p}}}}}function y(e,t,n){return t===`character`?$d(e,n):t===`word`?function(e){for(var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=0,r=!1;e.length>0;){var i=$d(e,t),[a,o]=rf(e,i,t);if(af(a,o,t))r=!0,n+=i;else{if(r)break;n+=i}e=o}return n}(e,n):t===`line`||t===`block`?e.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=R.before(e,a,{voids:r});if(o){var[,s]=R.first(e,[]),c=[o.path,s];if(B.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null)if(B.isPath(a)){var[l]=R.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=R.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>V.isRange(t)&&!n?t:{anchor:R.start(e,t),focus:R.end(e,n||t)},rangeRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return R.rangeRefs(e).delete(r),r.current=null,t}};return R.rangeRefs(e).add(r),r},rangeRefs(e){var t=Kd.get(e);return t||(t=new Set,Kd.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Ud.set(e,t)},start:(e,t)=>R.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=R.range(e,t),[i,a]=V.edges(r),o=``;for(var[s,c]of R.nodes(e,{at:r,match:H.isText,voids:n})){var l=s.text;B.equals(c,a.path)&&(l=l.slice(0,a.offset)),B.equals(c,i.path)&&(l=l.slice(i.offset)),o+=l}return o},unhangRange(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},[r,i]=V.edges(t);if(r.offset!==0||i.offset!==0||V.isCollapsed(t))return t;var a=R.above(e,{at:i,match:t=>R.isBlock(e,t)}),o=a?a[1]:[],s={anchor:R.start(e,[]),focus:i},c=!0;for(var[l,u]of R.nodes(e,{at:s,match:H.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||B.isBefore(u,o)){i={path:u,offset:l.text.length};break}return{anchor:r,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R.above(e,Af(Af({},t),{},{match:t=>R.isVoid(e,t)}))},withoutNormalizing(e,t){var n=R.isNormalizing(e);R.setNormalizing(e,!1);try{t()}finally{R.setNormalizing(e,n)}R.normalize(e)}},Mf={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(B.isPath)},Nf=[`children`],Pf=[`text`],Ff=new WeakMap,z={ancestor(e,t){var n=z.get(e,t);if(H.isText(n))throw Error(`Cannot get the ancestor node at path [${t}] because it refers to a text node instead: ${n}`);return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of B.ancestors(t,n))yield[z.ancestor(e,r),r]},child(e,t){if(H.isText(e))throw Error(`Cannot get the child of a text node: ${JSON.stringify(e)}`);var n=e.children[t];if(n==null)throw Error(`Cannot get child at index \`${t}\` in node: ${JSON.stringify(e)}`);return n},*children(e,t){for(var{reverse:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=z.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[z.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=B.common(t,n);return[z.get(e,r),r]},descendant(e,t){var n=z.get(e,t);if(R.isEditor(n))throw Error(`Cannot get the descendant node at path [${t}] because it refers to the root editor node instead: ${n}`);return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of z.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of z.nodes(e,t))L.isElement(n)&&(yield[n,r])},extractProps:e=>L.isAncestor(e)?Zd(e,Nf):Zd(e,Pf),first(e,t){for(var n=t.slice(),r=z.get(e,n);r&&!H.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(H.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return Ld({children:e.children},(e=>{var[n,r]=V.edges(t);for(var[,i]of z.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!V.includes(t,n)}})){if(!V.includes(t,i)){var a=z.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(B.equals(i,r.path)){var s=z.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(B.equals(i,n.path)){var c=z.leaf(e,i);c.text=c.text.slice(n.offset)}}R.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(H.isText(n)||!n.children[i])throw Error(`Cannot find a descendant at path [${t}] in node: ${JSON.stringify(e)}`);n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(H.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>H.isText(e)||L.isElement(e)||R.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Ff.get(e);if(t!==void 0)return t;var n=e.every((e=>z.isNode(e)));return Ff.set(e,n),n},last(e,t){for(var n=t.slice(),r=z.get(e,n);r&&!H.isText(r)&&r.children.length!==0;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=z.get(e,t);if(!H.isText(n))throw Error(`Cannot get the leaf node at path [${t}] because it refers to a non-leaf node: ${n}`);return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of B.levels(t,n))yield[z.get(e,r),r]},matches:(e,t)=>L.isElement(e)&&L.isElementProps(t)&&L.matches(e,t)||H.isText(e)&&H.isTextProps(t)&&H.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:a}=t,o=new Set,s=[],c=e;!a||!(r?B.isBefore(s,a):B.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||H.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=B.next(s);if(z.has(e,l)){s=l,c=z.get(e,s);continue}}r&&s[s.length-1]!==0?(s=B.previous(s),c=z.get(e,s)):(s=B.parent(s),c=z.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;B.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=z.get(e,s)}},parent(e,t){var n=B.parent(t),r=z.get(e,n);if(H.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>H.isText(e)?e.text:e.children.map(z.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of z.nodes(e,t))H.isText(n)&&(yield[n,r])}};function If(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 Lf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?If(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rf={isNodeOperation:e=>Rf.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!Xu(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return B.isPath(e.path)&&z.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&B.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&B.isPath(e.path)&&Xu(e.properties);case`move_node`:return B.isPath(e.path)&&B.isPath(e.newPath);case`set_node`:return B.isPath(e.path)&&Xu(e.properties)&&Xu(e.newProperties);case`set_selection`:return e.properties===null&&V.isRange(e.newProperties)||e.newProperties===null&&V.isRange(e.properties)||Xu(e.properties)&&Xu(e.newProperties);case`split_node`:return B.isPath(e.path)&&typeof e.position==`number`&&Xu(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Rf.isOperation(e))),isSelectionOperation:e=>Rf.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>Rf.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return Lf(Lf({},e),{},{type:`remove_node`});case`insert_text`:return Lf(Lf({},e),{},{type:`remove_text`});case`merge_node`:return Lf(Lf({},e),{},{type:`split_node`,path:B.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(B.equals(t,n))return e;if(B.isSibling(n,t))return Lf(Lf({},e),{},{path:t,newPath:n});var r=B.transform(n,e),i=B.transform(B.next(n),e);return Lf(Lf({},e),{},{path:r,newPath:i});case`remove_node`:return Lf(Lf({},e),{},{type:`insert_node`});case`remove_text`:return Lf(Lf({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return Lf(Lf({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return Lf(Lf({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return Lf(Lf({},e),{},{type:`merge_node`,path:B.next(e.path)})}}},B={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=B.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return B.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return B.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return B.equals(r,i)&&a<o},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>B.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&B.compare(e,t)===0,isBefore:(e,t)=>B.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&B.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&B.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&B.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&B.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]==`number`),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&B.equals(n,r)},levels(e){for(var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=0;r<=e.length;r++)n.push(e.slice(0,r));return t&&n.reverse(),n},next(e){if(e.length===0)throw Error(`Cannot get the next path of a root path [${e}], because it has no next index.`);var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw Error(`Cannot get the parent path of the root path [${e}].`);return e.slice(0,-1)},previous(e){if(e.length===0)throw Error(`Cannot get the previous path of a root path [${e}], because it has no previous index.`);var t=e[e.length-1];if(t<=0)throw Error(`Cannot get the previous path of a first child path [${e}] because it would result in a negative index.`);return e.slice(0,-1).concat(t-1)},relative(e,t){if(!B.isAncestor(t,e)&&!B.equals(e,t))throw Error(`Cannot get the relative path of [${e}] inside ancestor [${t}], because it is not above or equal to the path.`);return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ld(e,(r=>{var{affinity:i=`forward`}=n;if(e&&e?.length!==0){if(r===null)return null;switch(t.type){case`insert_node`:var{path:a}=t;(B.equals(a,r)||B.endsBefore(a,r)||B.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(B.equals(o,r)||B.isAncestor(o,r))return null;B.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;B.equals(s,r)||B.endsBefore(s,r)?--r[s.length-1]:B.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(B.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else B.endsBefore(l,r)?r[l.length-1]+=1:B.isAncestor(l,r)&&e[l.length]>=u&&(r[l.length-1]+=1,r[l.length]-=u);break;case`move_node`:var{path:d,newPath:f}=t;if(B.equals(d,f))return;if(B.isAncestor(d,r)||B.equals(d,r)){var p=f.slice();return B.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}B.isSibling(d,f)&&(B.isAncestor(f,r)||B.equals(f,r))?B.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:B.endsBefore(f,r)||B.equals(f,r)||B.isAncestor(f,r)?(B.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):B.endsBefore(d,r)&&(B.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},zf={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=B.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}};function Bf(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 Vf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bf(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Hf={compare(e,t){var n=B.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>Hf.compare(e,t)===1,isBefore:(e,t)=>Hf.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&B.equals(e.path,t.path),isPoint:e=>Xu(e)&&typeof e.offset==`number`&&B.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ld(e,(e=>{if(e===null)return null;var{affinity:r=`forward`}=n,{path:i,offset:a}=e;switch(t.type){case`insert_node`:case`move_node`:e.path=B.transform(i,t,n);break;case`insert_text`:B.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:B.equals(t.path,i)&&(e.offset+=t.position),e.path=B.transform(i,t,n);break;case`remove_text`:B.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(B.equals(t.path,i)||B.isAncestor(t.path,i))return null;e.path=B.transform(i,t,n);break;case`split_node`:if(B.equals(t.path,i)){if(t.position===a&&r==null)return null;(t.position<a||t.position===a&&r===`forward`)&&(e.offset-=t.position,e.path=B.transform(i,t,Vf(Vf({},n),{},{affinity:`forward`})))}else e.path=B.transform(i,t,n)}}))}},Uf={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Hf.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},Wf=[`anchor`,`focus`];function Gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var V={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return V.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=V.edges(e);return t},equals:(e,t)=>Hf.equals(e.anchor,t.anchor)&&Hf.equals(e.focus,t.focus),includes(e,t){if(V.isRange(t)){if(V.includes(e,t.anchor)||V.includes(e,t.focus))return!0;var[n,r]=V.edges(e),[i,a]=V.edges(t);return Hf.isBefore(n,i)&&Hf.isAfter(r,a)}var[o,s]=V.edges(e),c=!1,l=!1;return Hf.isPoint(t)?(c=Hf.compare(t,o)>=0,l=Hf.compare(t,s)<=0):(c=B.compare(t,o.path)>=0,l=B.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=Zd(e,Wf),[r,i]=V.edges(e),[a,o]=V.edges(t),s=Hf.isBefore(r,a)?a:r,c=Hf.isBefore(i,o)?i:o;return Hf.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Gf(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:c},n)},isBackward(e){var{anchor:t,focus:n}=e;return Hf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Hf.equals(t,n)},isExpanded:e=>!V.isCollapsed(e),isForward:e=>!V.isBackward(e),isRange:e=>Xu(e)&&Hf.isPoint(e.anchor)&&Hf.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=V.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ld(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=V.isCollapsed(e);V.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?V.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=Hf.transform(e.anchor,t,{affinity:r}),c=Hf.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},Kf={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=V.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},qf=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Xu(r)&&Xu(i)){if(!qf(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==i[a])return!1}else if(r!==i)return!1}for(var o in t)if(e[o]===void 0&&t[o]!==void 0)return!1;return!0},Jf=[`text`],Yf=[`anchor`,`focus`];function Xf(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 Zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xf(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return Zd(e,Jf)}return qf(n?r(e):e,n?r(t):t)},isText:e=>Xu(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>H.isText(e))),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!==`text`&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Zf({},e)];for(var r of t){var i=Zd(r,Yf),[a,o]=V.edges(r),s=[],c=0;for(var l of n){var{length:u}=l.text,d=c;if(c+=u,a.offset<=d&&o.offset>=c)Object.assign(l,i),s.push(l);else if(a.offset!==o.offset&&(a.offset===c||o.offset===d)||a.offset>c||o.offset<d||o.offset===d&&d!==0)s.push(l);else{var f=l,p=void 0,m=void 0;if(o.offset<c){var h=o.offset-d;m=Zf(Zf({},f),{},{text:f.text.slice(h)}),f=Zf(Zf({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=Zf(Zf({},f),{},{text:f.text.slice(0,g)}),f=Zf(Zf({},f),{},{text:f.text.slice(g)})}Object.assign(f,i),p&&s.push(p),s.push(f),m&&s.push(m)}}n=s}return n}};function Qf(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 $f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qf(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ep={transform(e,t){e.children=Rd(e.children);var n=e.selection&&Rd(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=z.parent(e,r),o=r[r.length-1];if(o>a.children.length)throw Error(`Cannot apply an "insert_node" operation at path [${r}] because the destination is past the end of the node.`);if(a.children.splice(o,0,i),t)for(var[s,c]of V.points(t))t[c]=Hf.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=z.leaf(e,l),p=f.text.slice(0,u),m=f.text.slice(u);if(f.text=p+d+m,t)for(var[h,g]of V.points(t))t[g]=Hf.transform(h,n);break;case`merge_node`:var{path:_}=n,v=z.get(e,_),y=B.previous(_),b=z.get(e,y),x=z.parent(e,_),S=_[_.length-1];if(H.isText(v)&&H.isText(b))b.text+=v.text;else{if(H.isText(v)||H.isText(b))throw Error(`Cannot apply a "merge_node" operation at path [${_}] to nodes of different interfaces: ${v} ${b}`);b.children.push(...v.children)}if(x.children.splice(S,1),t)for(var[C,w]of V.points(t))t[w]=Hf.transform(C,n);break;case`move_node`:var{path:T,newPath:E}=n;if(B.isAncestor(T,E))throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);var D=z.get(e,T),O=z.parent(e,T),k=T[T.length-1];O.children.splice(k,1);var ee=B.transform(T,n),te=z.get(e,B.parent(ee)),A=ee[ee.length-1];if(te.children.splice(A,0,D),t)for(var[ne,j]of V.points(t))t[j]=Hf.transform(ne,n);break;case`remove_node`:var{path:M}=n,N=M[M.length-1];if(z.parent(e,M).children.splice(N,1),t)for(var[P,re]of V.points(t)){var ie=Hf.transform(P,n);if(t!=null&&ie!=null)t[re]=ie;else{var ae=void 0,F=void 0;for(var[oe,se]of z.texts(e)){if(B.compare(se,M)!==-1){F=[oe,se];break}ae=[oe,se]}var ce=!1;ae&&F&&(ce=B.equals(F[1],M)?!B.hasPrevious(F[1]):B.common(ae[1],M).length<B.common(F[1],M).length),ae&&!ce?(P.path=ae[1],P.offset=ae[0].text.length):F?(P.path=F[1],P.offset=0):t=null}}break;case`remove_text`:var{path:le,offset:ue,text:de}=n;if(de.length===0)break;var fe=z.leaf(e,le);if(fe.text=fe.text.slice(0,ue)+fe.text.slice(ue+de.length),t)for(var[pe,me]of V.points(t))t[me]=Hf.transform(pe,n);break;case`set_node`:var{path:I,properties:he,newProperties:ge}=n;if(I.length===0)throw Error(`Cannot set properties on the root node!`);var _e=z.get(e,I);for(var ve in ge){if(ve===`children`||ve===`text`)throw Error(`Cannot set the "${ve}" property of nodes!`);var ye=ge[ve];ye==null?delete _e[ve]:_e[ve]=ye}for(var be in he)ge.hasOwnProperty(be)||delete _e[be];break;case`set_selection`:var{newProperties:xe}=n;if(xe==null)t=xe;else{if(t==null){if(!V.isRange(xe))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(xe)} when there is no current selection.`);t=$f({},xe)}for(var Se in xe){var Ce=xe[Se];if(Ce==null){if(Se===`anchor`||Se===`focus`)throw Error(`Cannot remove the "${Se}" selection property`);delete t[Se]}else t[Se]=Ce}}break;case`split_node`:var{path:we,position:Te,properties:Ee}=n;if(we.length===0)throw Error(`Cannot apply a "split_node" operation at path [${we}] because the root node cannot be split.`);var De,Oe=z.get(e,we),ke=z.parent(e,we),Ae=we[we.length-1];if(H.isText(Oe)){var je=Oe.text.slice(0,Te),Me=Oe.text.slice(Te);Oe.text=je,De=$f($f({},Ee),{},{text:Me})}else{var Ne=Oe.children.slice(0,Te),Pe=Oe.children.slice(Te);Oe.children=Ne,De=$f($f({},Ee),{},{children:Pe})}if(ke.children.splice(Ae+1,0,De),t)for(var[Fe,Ie]of V.points(t))t[Ie]=Hf.transform(Fe,n)}return t})(e,n,t)}finally{e.children=zd(e.children),e.selection=n?Qu(n)?zd(n):n:null}}},tp=[`text`],np=[`children`];function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rp(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ap={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(z.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?R.end(e,[]):[0],c=!0),c??=!1,V.isRange(o))if(r||(o=R.unhangRange(e,o)),V.isCollapsed(o))o=o.anchor;else{var[,u]=V.edges(o),d=R.pointRef(e,u);U.delete(e,{at:o}),o=d.unref()}if(Hf.isPoint(o)){s??=H.isText(l)?e=>H.isText(e):e.isInline(l)?t=>H.isText(t)||R.isInline(e,t):t=>R.isBlock(e,t);var[f]=R.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=R.pathRef(e,p),h=R.isEnd(e,o,p);U.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?B.next(g):g}var _=B.parent(o),v=o[o.length-1];if(i||!R.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=B.next(o)}if(o=B.previous(o),c){var x=R.end(e,o);x&&U.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=B.isPath(n)?cp(e,n):t=>R.isBlock(e,t),n){var o=R.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return R.pathRef(e,n)}))){var c=s.unref();if(c.length<2)throw Error(`Cannot lift node at a path [${c}] because it has a depth of less than \`2\`.`);var[l,u]=R.node(e,B.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=B.next(u);U.moveNodes(e,{at:c,to:p,voids:i}),U.removeNodes(e,{at:u,voids:i})}else if(d===0)U.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=B.next(u);U.moveNodes(e,{at:c,to:m,voids:i})}else{var h=B.next(c),g=B.next(u);U.splitNodes(e,{at:h,voids:i}),U.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:a=!1,mode:o=`lowest`}=t;if(r){if(n==null)if(B.isPath(r)){var[s]=R.parent(e,r);n=e=>s.children.includes(e)}else n=t=>R.isBlock(e,t);if(!i&&V.isRange(r)&&(r=R.unhangRange(e,r)),V.isRange(r))if(V.isCollapsed(r))r=r.anchor;else{var[,c]=V.edges(r),l=R.pointRef(e,c);U.delete(e,{at:r}),r=l.unref(),t.at??U.select(e,r)}var[u]=R.nodes(e,{at:r,match:n,voids:a,mode:o}),d=R.previous(e,{at:r,match:n,voids:a,mode:o});if(u&&d){var[f,p]=u,[m,h]=d;if(p.length!==0&&h.length!==0){var g,_,v=B.next(h),y=B.common(p,h),b=B.isSibling(p,h),x=Array.from(R.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=R.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&op(e,t)}),C=S&&R.pathRef(e,S[1]);if(H.isText(f)&&H.isText(m)){var w=Zd(f,tp);_=m.text.length,g=w}else{if(!L.isElement(f)||!L.isElement(m))throw Error(`Cannot merge the node at path [${p}] with the previous sibling because it is not the same kind: ${JSON.stringify(f)} ${JSON.stringify(m)}`);w=Zd(f,np),_=m.children.length,g=w}b||U.moveNodes(e,{at:p,to:v,voids:a}),C&&U.removeNodes(e,{at:C.current,voids:a}),L.isElement(m)&&R.isEmpty(e,m)||H.isText(m)&&m.text===``&&h[h.length-1]!==0?U.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){R.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=B.isPath(r)?cp(e,r):t=>R.isBlock(e,t);var s=R.pathRef(e,n),c=R.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return R.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&B.isSibling(d,u)&&B.isAfter(d,u)&&(s.current=B.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=B.isPath(a)?cp(e,a):t=>R.isBlock(e,t),!n&&V.isRange(a)&&(a=R.unhangRange(e,a));var s=R.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return R.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=R.node(e,l);e.apply({type:`remove_node`,path:l,node:u})}}}}))},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(e,(()=>{var{match:r,at:i=e.selection}=n,{hanging:a=!1,mode:o=`lowest`,split:s=!1,voids:c=!1}=n;if(i){if(r??=B.isPath(i)?cp(e,i):t=>R.isBlock(e,t),!a&&V.isRange(i)&&(i=R.unhangRange(e,i)),s&&V.isRange(i)){if(V.isCollapsed(i)&&R.leaf(e,i.anchor)[0].text.length>0)return;var l=R.rangeRef(e,i,{affinity:`inward`}),[u,d]=V.edges(i),f=o===`lowest`?`lowest`:`highest`,p=R.isEnd(e,d,d.path);U.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=R.isStart(e,u,u.path);U.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??U.select(e,i)}for(var[h,g]of R.nodes(e,{at:i,match:r,mode:o,voids:c})){var _={},v={};if(g.length!==0){var y=!1;for(var b in t)b!==`children`&&b!==`text`&&t[b]!==h[b]&&(y=!0,h.hasOwnProperty(b)&&(_[b]=h[b]),t[b]!=null&&(v[b]=t[b]));y&&e.apply({type:`set_node`,path:g,properties:_,newProperties:v})}}}}))},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection,height:o=0,always:s=!1}=t;if(i??=t=>R.isBlock(e,t),V.isRange(a)&&(a=sp(e,a)),B.isPath(a)){var c=a,l=R.point(e,c),[u]=R.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=R.pointRef(e,a,{affinity:`backward`}),[f]=R.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=R.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(L.isElement(m)&&e.isInline(m)){var g=R.after(e,h);if(!g){var _=B.next(h);U.insertNodes(e,{text:``},{at:_,voids:r}),g=R.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=R.pointRef(e,a),y=a.path.length-o,[,b]=f,x=a.path.slice(0,y),S=o===0?a.offset:a.path[y]+0;for(var[C,w]of R.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&R.isVoid(e,C))break;var E=d.current,D=R.isEnd(e,E,w);if(s||!d||!R.isEdge(e,E,w)){T=!0;var O=z.extractProps(C);e.apply({type:`split_node`,path:w,position:S,properties:O})}S=w[w.length-1]+(T||D?1:0)}if(t.at==null){var k=v.current||R.end(e,[]);U.select(e,k)}d.unref(),v.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;U.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=B.isPath(a)?cp(e,a):t=>R.isBlock(e,t),B.isPath(a)&&(a=R.range(e,a));var s=V.isRange(a)?R.rangeRef(e,a):null,c=R.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return R.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=R.node(e,n),o=R.range(e,n);r&&s&&(o=V.intersection(s.current,o)),U.liftNodes(e,{at:o,match:e=>L.isAncestor(a)&&a.children.includes(e),voids:i})};for(var d of l)u(d);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=B.isPath(s)?cp(e,s):e.isInline(t)?t=>R.isInline(e,t)||H.isText(t):t=>R.isBlock(e,t),i&&V.isRange(s)){var[c,l]=V.edges(s),u=R.rangeRef(e,s,{affinity:`inward`});U.splitNodes(e,{at:l,match:o,voids:a}),U.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??U.select(e,s)}for(var[,d]of Array.from(R.nodes(e,{at:s,match:e.isInline(t)?t=>R.isBlock(e,t):e=>R.isEditor(e),mode:`lowest`,voids:a}))){var f=V.isRange(s)?V.intersection(s,R.range(e,d)):s;if(f){var p=Array.from(R.nodes(e,{at:f,match:o,mode:r,voids:a}));if(p.length>0&&function(){var[n]=p,r=p[p.length-1],[,i]=n,[,o]=r;if(i.length===0&&o.length===0)return`continue`;var s=B.equals(i,o)?B.parent(i):B.common(i,o),c=R.range(e,i,o),[l]=R.node(e,s),u=s.length+1,d=B.next(o.slice(0,u)),f=ip(ip({},t),{},{children:[]});U.insertNodes(e,f,{at:d,voids:a}),U.moveNodes(e,{at:c,match:e=>L.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},op=(e,t)=>{if(L.isElement(t)){var n=t;return!!R.isVoid(e,t)||n.children.length===1&&op(e,n.children[0])}return!R.isEditor(t)},sp=(e,t)=>{if(V.isCollapsed(t))return t.anchor;var[,n]=V.edges(t),r=R.pointRef(e,n);return U.delete(e,{at:t}),r.unref()},cp=(e,t)=>{var[n]=R.node(e,t);return e=>e===n};function lp(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 up(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lp(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sie={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)U.select(e,n.anchor);else if(t===`focus`)U.select(e,n.focus);else if(t===`start`){var[r]=V.edges(n);U.select(e,r)}else if(t===`end`){var[,i]=V.edges(n);U.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&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i=`character`,reverse:a=!1}=t,{edge:o=null}=t;if(n){o===`start`&&(o=V.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=V.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?R.before(e,s,l):R.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?R.before(e,c,l):R.after(e,c,l);f&&(u.focus=f)}U.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=R.range(e,t),n)U.setSelection(e,t);else{if(!V.isRange(t))throw Error(`When setting the selection and the current selection is \`null\` you must provide at least an \`anchor\` and \`focus\`, but you passed: ${JSON.stringify(t)}`);e.apply({type:`set_selection`,properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i=`both`}=n;if(r){i===`start`&&(i=V.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=V.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;U.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:up(up({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!Hf.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!Hf.equals(t.focus,n.focus)||a!==`anchor`&&a!==`focus`&&t[a]!==n[a])&&(r[a]=n[a],i[a]=t[a]);Object.keys(r).length>0&&e.apply({type:`set_selection`,properties:r,newProperties:i})}}},Cie={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r=`character`,distance:i=1,voids:a=!1}=t,{at:o=e.selection,hanging:s=!1}=t;if(o){if(V.isRange(o)&&V.isCollapsed(o)&&(o=o.anchor),Hf.isPoint(o)){var c=R.void(e,{at:o,mode:`highest`});if(!a&&c){var[,l]=c;o=l}else{var u={unit:r,distance:i};o={anchor:o,focus:n?R.before(e,o,u)||R.start(e,[]):R.after(e,o,u)||R.end(e,[])},s=!0}}if(B.isPath(o))U.removeNodes(e,{at:o,voids:a});else if(!V.isCollapsed(o)){if(!s){var[,d]=V.edges(o),f=R.end(e,[]);Hf.equals(d,f)||(o=R.unhangRange(e,o,{voids:a}))}var[p,m]=V.edges(o),h=R.above(e,{match:t=>R.isBlock(e,t),at:p,voids:a}),g=R.above(e,{match:t=>R.isBlock(e,t),at:m,voids:a}),_=h&&g&&!B.equals(h[1],g[1]),v=B.equals(p.path,m.path),y=a?null:R.void(e,{at:p,mode:`highest`}),b=a?null:R.void(e,{at:m,mode:`highest`});if(y){var x=R.before(e,p);x&&h&&B.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=R.after(e,m);S&&g&&B.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of R.nodes(e,{at:o,voids:a})){var[E,D]=T;C&&B.compare(D,C)===0||(!a&&R.isVoid(e,E)||!B.isCommon(D,p.path)&&!B.isCommon(D,m.path))&&(w.push(T),C=D)}var O=Array.from(w,(t=>{var[,n]=t;return R.pathRef(e,n)})),k=R.pointRef(e,p),ee=R.pointRef(e,m);if(!v&&!y){var te=k.current,[A]=R.leaf(e,te),{path:ne}=te,{offset:j}=p,M=A.text.slice(j);M.length>0&&e.apply({type:`remove_text`,path:ne,offset:j,text:M})}for(var N of O){var P=N.unref();U.removeNodes(e,{at:P,voids:a})}if(!b){var re=ee.current,[ie]=R.leaf(e,re),{path:ae}=re,F=v?p.offset:0,oe=ie.text.slice(F,m.offset);oe.length>0&&e.apply({type:`remove_text`,path:ae,offset:F,text:oe})}!v&&_&&ee.current&&k.current&&U.mergeNodes(e,{at:ee.current,hanging:!0,voids:a});var se=n?k.unref()||ee.unref():ee.unref()||k.unref();t.at==null&&se&&U.select(e,se)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(V.isRange(a))if(r||(a=R.unhangRange(e,a)),V.isCollapsed(a))a=a.anchor;else{var[,o]=V.edges(a);if(!i&&R.void(e,{at:o}))return;var s=R.pointRef(e,o);U.delete(e,{at:a}),a=s.unref()}else B.isPath(a)&&(a=R.start(e,a));if(i||!R.void(e,{at:a})){var c=R.above(e,{at:a,match:t=>R.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;R.isEnd(e,a,l)?a=R.after(e,l):R.isStart(e,a,l)&&(a=R.before(e,l))}var[,u]=R.above(e,{match:t=>R.isBlock(e,t),at:a,voids:i}),d=R.isStart(e,a,u),f=R.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=z.first({children:t},[]),[,_]=z.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&B.isAncestor(r,g)&&L.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&B.isAncestor(r,_)&&L.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of z.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[E]of v)L.isElement(E)&&!e.isInline(E)?(w=!1,T=!0,S.push(E)):w?x.push(E):C.push(E);var[D]=R.nodes(e,{at:a,match:t=>H.isText(t)||R.isInline(e,t),mode:`highest`,voids:i}),[,O]=D,k=R.isStart(e,a,O),ee=R.isEnd(e,a,O),te=R.pathRef(e,f?B.next(u):u),A=R.pathRef(e,ee?B.next(O):O),ne=R.pathRef(e,u);U.splitNodes(e,{at:a,match:t=>T?R.isBlock(e,t):H.isText(t)||R.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var j=R.pathRef(e,!k||k&&ee?B.next(O):O);if(U.insertNodes(e,x,{at:j.current,match:t=>H.isText(t)||R.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&U.delete(e,{at:ne.unref(),voids:i}),U.insertNodes(e,S,{at:te.current,match:t=>R.isBlock(e,t),mode:`lowest`,voids:i}),U.insertNodes(e,C,{at:A.current,match:t=>H.isText(t)||R.isInline(e,t),mode:`highest`,voids:i}),!n.at){var M=C.length>0?B.previous(A.current):S.length>0?B.previous(te.current):B.previous(j.current),N=R.end(e,M);U.select(e,N)}j.unref(),te.unref(),A.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(B.isPath(i)&&(i=R.range(e,i)),V.isRange(i))if(V.isCollapsed(i))i=i.anchor;else{var a=V.end(i);if(!r&&R.void(e,{at:a}))return;var o=R.pointRef(e,a);U.delete(e,{at:i,voids:r}),i=o.unref(),U.setSelection(e,{anchor:i,focus:i})}if(r||!R.void(e,{at:i})){var{path:s,offset:c}=i;t.length>0&&e.apply({type:`insert_text`,path:s,offset:c,text:t})}}}))}};function dp(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 fp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dp(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U=fp(fp(fp(fp({},ep),ap),Sie),Cie),pp=`[object Map]`,mp=`[object Set]`,wie=/^\[object .+?Constructor\]$/,Tie=/^(?:0|[1-9]\d*)$/,Eie=`[\\ud800-\\udfff]`,hp=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,gp=`\\ud83c[\\udffb-\\udfff]`,_p=`[^\\ud800-\\udfff]`,vp=`(?:\\ud83c[\\udde6-\\uddff]){2}`,yp=`[\\ud800-\\udbff][\\udc00-\\udfff]`,bp=`(?:`+hp+`|`+gp+`)?`,Die=`[\\ufe0e\\ufe0f]?`+bp+(`(?:\\u200d(?:`+[_p,vp,yp].join(`|`)+`)[\\ufe0e\\ufe0f]?`+bp+`)*`),Oie=`(?:`+[_p+hp+`?`,hp,vp,yp,Eie].join(`|`)+`)`,kie=RegExp(gp+`(?=`+gp+`)|`+Oie+Die,`g`),Aie=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),jie=typeof jr==`object`&&jr&&jr.Object===Object&&jr,Mie=typeof self==`object`&&self&&self.Object===Object&&self,xp=jie||Mie||Function(`return this`)();function Nie(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,(function(t){return e[t]}))}function Pie(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Fie(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Iie(e){return function(e){return Aie.test(e)}(e)?function(e){return e.match(kie)||[]}(e):function(e){return e.split(``)}(e)}var Sp,Cp,Lie=Function.prototype,wp=Object.prototype,Tp=xp[`__core-js_shared__`],Ep=function(){var e=/[^.]+$/.exec(Tp&&Tp.keys&&Tp.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Dp=Lie.toString,Op=wp.hasOwnProperty,kp=wp.toString,Rie=RegExp(`^`+Dp.call(Op).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Ap=xp.Symbol,jp=Ap?Ap.iterator:void 0,zie=wp.propertyIsEnumerable,Bie=(Sp=Object.keys,Cp=Object,function(e){return Sp(Cp(e))}),Mp=Lp(xp,`DataView`),Np=Lp(xp,`Map`),Pp=Lp(xp,`Promise`),Fp=Lp(xp,`Set`),Ip=Lp(xp,`WeakMap`),Vie=zp(Mp),Hie=zp(Np),Uie=zp(Pp),Wie=zp(Fp),Gie=zp(Ip);function Kie(e,t){var n=Bp(e)||function(e){return function(e){return Wp(e)&&Vp(e)}(e)&&Op.call(e,`callee`)&&(!zie.call(e,`callee`)||kp.call(e)==`[object Arguments]`)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Op.call(e,a)||i&&(a==`length`||Yie(a,r))||n.push(a);return n}function qie(e){return!Up(e)||function(e){return!!Ep&&Ep in e}(e)?!1:(Hp(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?Rie:wie).test(zp(e))}function Jie(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||wp,t!==r)return Bie(e);var t,n,r,i=[];for(var a in Object(e))Op.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Lp(e,t){var n=function(e,t){return e?.[t]}(e,t);return qie(n)?n:void 0}var Rp=function(e){return kp.call(e)};function Yie(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Tie.test(e))&&e>-1&&e%1==0&&e<t}function zp(e){if(e!=null){try{return Dp.call(e)}catch{}try{return e+``}catch{}}return``}(Mp&&Rp(new Mp(new ArrayBuffer(1)))!=`[object DataView]`||Np&&Rp(new Np)!=pp||Pp&&Rp(Pp.resolve())!=`[object Promise]`||Fp&&Rp(new Fp)!=mp||Ip&&Rp(new Ip)!=`[object WeakMap]`)&&(Rp=function(e){var t=kp.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?zp(n):void 0;if(r)switch(r){case Vie:return`[object DataView]`;case Hie:return pp;case Uie:return`[object Promise]`;case Wie:return mp;case Gie:return`[object WeakMap]`}return t});var Bp=Array.isArray;function Vp(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Hp(e)}function Hp(e){var t=Up(e)?kp.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function Up(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Wp(e){return!!e&&typeof e==`object`}function Xie(e){return e?Nie(e,function(e){return Vp(e)?Kie(e):Jie(e)}(e)):[]}var Gp=function(e){if(!e)return[];if(Vp(e))return function(e){return typeof e==`string`||!Bp(e)&&Wp(e)&&kp.call(e)==`[object String]`}(e)?Iie(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(jp&&e[jp])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[jp]());var t=Rp(e);return(t==pp?Pie:t==mp?Fie:Xie)(e)};function Kp(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function qp(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:Kp(t[n])&&Kp(e[n])&&Object.keys(t[n]).length>0&&qp(e[n],t[n])}))}var Jp={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 Yp(){var e=typeof document<`u`?document:{};return qp(e,Jp),e}var Zie={document:Jp,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return``}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<`u`&&clearTimeout(e)}};function Xp(){var e=typeof window<`u`?window:{};return qp(e,Zie),e}function Zp(e){return Zp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zp(e)}function Qp(e,t){return Qp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qp(e,t)}function Qie(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function $p(e,t,n){return $p=Qie()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Qp(i,n.prototype),i},$p.apply(null,arguments)}function em(e){var t=typeof Map==`function`?new Map:void 0;return em=function(e){if(e===null||!function(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return $p(e,arguments,Zp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qp(n,e)},em(e)}var tm=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(n),i=r.__proto__,Object.defineProperty(r,`__proto__`,{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(em(Array));function nm(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,nm(e)):t.push(e)})),t}function rm(e,t){return Array.prototype.filter.call(e,t)}function W(e,t){var n=Xp(),r=Yp(),i=[];if(!t&&e instanceof tm)return e;if(!e)return new tm(i);if(typeof e==`string`){var a=e.trim();if(a.indexOf(`<`)>=0&&a.indexOf(`>`)>=0){var o=`div`;a.indexOf(`<li`)===0&&(o=`ul`),a.indexOf(`<tr`)===0&&(o=`tbody`),a.indexOf(`<td`)!==0&&a.indexOf(`<th`)!==0||(o=`tr`),a.indexOf(`<tbody`)===0&&(o=`table`),a.indexOf(`<option`)===0&&(o=`select`);var s=r.createElement(o);s.innerHTML=a;for(var c=0;c<s.childNodes.length;c+=1)i.push(s.childNodes[c])}else i=function(e,t){if(typeof e!=`string`)return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof tm)return e;i=e}return new tm(function(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}(i))}function im(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nm(t.map((function(e){return e.split(` `)})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function am(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nm(t.map((function(e){return e.split(` `)})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function om(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nm(t.map((function(e){return e.split(` `)})));return rm(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function sm(e,t){if(arguments.length===1&&typeof e==`string`)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function cm(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function lm(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var a=e.attributes[i];a.name.indexOf(`data-`)>=0&&(n[t=a.name.split(`data-`)[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))]=a.value)}for(var o in n)n[o]===`false`?n[o]=!1:n[o]===`true`?n[o]=!0:parseFloat(n[o])===1*n[o]&&(n[o]*=1);return n}}function um(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()===`select`){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var a=this[i];if(Array.isArray(e)&&a.multiple&&a.nodeName.toLowerCase()===`select`)for(var o=0;o<a.options.length;o+=1)a.options[o].selected=e.indexOf(a.options[o].value)>=0;else a.value=e}return this}function dm(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),W(t).is(i))a.apply(t,n);else for(var r=W(t).parents(),o=0;o<r.length;o+=1)W(r[o]).is(i)&&a.apply(r[o],n)}}function c(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}typeof t[1]==`function`&&(r=t[0],a=t[1],o=t[2],i=void 0),o||=!1;for(var l,u=r.split(` `),d=0;d<this.length;d+=1){var f=this[d];if(i)for(l=0;l<u.length;l+=1){var p=u[l];f.dom7LiveListeners||={},f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:a,proxyListener:s}),f.addEventListener(p,s,o)}else for(l=0;l<u.length;l+=1){var m=u[l];f.dom7Listeners||={},f.dom7Listeners[m]||(f.dom7Listeners[m]=[]),f.dom7Listeners[m].push({listener:a,proxyListener:c}),f.addEventListener(m,c,o)}}return this}function fm(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];typeof t[1]==`function`&&(r=t[0],a=t[1],o=t[2],i=void 0),o||=!1;for(var s=r.split(` `),c=0;c<s.length;c+=1)for(var l=s[c],u=0;u<this.length;u+=1){var d=this[u],f=void 0;if(!i&&d.dom7Listeners?f=d.dom7Listeners[l]:i&&d.dom7LiveListeners&&(f=d.dom7LiveListeners[l]),f&&f.length)for(var p=f.length-1;p>=0;--p){var m=f[p];a&&m.listener===a||a&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===a?(d.removeEventListener(l,m.proxyListener,o),f.splice(p,1)):a||(d.removeEventListener(l,m.proxyListener,o),f.splice(p,1))}}return this}function pm(){var e=Xp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function mm(){var e=Xp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function hm(){if(this.length>0){var e=Xp(),t=Yp(),n=this[0],r=n.getBoundingClientRect(),i=t.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,c=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+c-o}}return null}function gm(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function _m(){for(var e=Xp(),t=0;t<this.length;t+=1){var n=this[t];n.style.display===`none`&&(n.style.display=``),e.getComputedStyle(n,null).getPropertyValue(`display`)===`none`&&(n.style.display=`block`)}return this}function vm(e,t){var n,r=Xp();if(arguments.length===1){if(typeof e!=`string`){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e==`string`){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function ym(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function bm(e){return W(rm(this,e))}function xm(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Sm(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Cm(e){var t,n,r=Xp(),i=Yp(),a=this[0];if(!a||e===void 0)return!1;if(typeof e==`string`){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=W(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i)return a===i;if(e===r)return a===r;if(e.nodeType||e instanceof tm){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function wm(){for(var e,t=Yp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e==`string`){var i=t.createElement(`div`);for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof tm)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function Tm(e){var t,n,r=Yp();for(t=0;t<this.length;t+=1)if(typeof e==`string`){var i=r.createElement(`div`);for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;--n)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof tm)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 Em(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?W(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return W(t)}function Dm(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?W(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return W(t)}function Om(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return W(t)}function km(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!W(r[i]).is(e)||t.push(r[i]);return W(t)}function Am(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function jm(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=``}}return this}W.fn=tm.prototype;var $ie=`resize scroll`.split(` `);function Mm(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var i=0;i<this.length;i+=1)$ie.indexOf(e)<0&&(e in this[i]?this[i][e]():W(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Nm=Mm(`click`),Pm=Mm(`focus`),eae=`[object GeneratorFunction]`,tae=/^(?:0|[1-9]\d*)$/;function nae(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Fm=Object.prototype,Im=Fm.hasOwnProperty,Lm=Fm.toString,rae=Fm.propertyIsEnumerable,iae=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function aae(e,t){var n=Bm(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&Vm(e)}(e)&&Im.call(e,`callee`)&&(!rae.call(e,`callee`)||Lm.call(e)==`[object Arguments]`)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Im.call(e,a)||i&&(a==`length`||lae(a,r))||n.push(a);return n}var Rm,zm,oae=(Rm=function(e,t){return e&&sae(e,t,uae)},function(e,t){if(e==null)return e;if(!Vm(e))return Rm(e,t);for(var n=e.length,r=zm?n:-1,i=Object(e);(zm?r--:++r<n)&&!1!==t(i[r],r,i););return e}),sae=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}();function cae(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||Fm,t!==r)return iae(e);var t,n,r,i=[];for(var a in Object(e))Im.call(e,a)&&a!=`constructor`&&i.push(a);return i}function lae(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||tae.test(e))&&e>-1&&e%1==0&&e<t}var Bm=Array.isArray;function Vm(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}(e)?Lm.call(e):``;return t==`[object Function]`||t==eae}(e)}function uae(e){return Vm(e)?aae(e):cae(e)}function dae(e){return e}var Hm=function(e,t){return(Bm(e)?nae:oae)(e,typeof t==`function`?t:dae)},Um=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?`_`:`-`}return t},Wm=/^\s+|\s+$/g,Gm=/^[-+]0x[0-9a-f]+$/i,Km=/^0b[01]+$/i,qm=/^0o[0-7]+$/i,Jm=parseInt,Ym=typeof jr==`object`&&jr&&jr.Object===Object&&jr,Xm=typeof self==`object`&&self&&self.Object===Object&&self,Zm=Ym||Xm||Function(`return this`)(),Qm=Object.prototype.toString,$m=Math.max,eh=Math.min,th=function(){return Zm.Date.now()};function nh(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=th();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?eh(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=th(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=ih(t)||0,rh(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?$m(ih(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(th())},v}function rh(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ih(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&Qm.call(e)==`[object Symbol]`}(e))return NaN;if(rh(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=rh(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Wm,``);var n=Km.test(e);return n||qm.test(e)?Jm(e.slice(2),n?2:8):Gm.test(e)?NaN:+e}var ah=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return rh(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),nh(e,t,{leading:r,maxWait:t,trailing:i})},oh={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function sh(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:t===void 0?void 0:t.key}}var ch=Array.isArray;function lh(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function uh(e){return e===void 0}function dh(e){return e!==void 0}var fh=sh(``,{},[],void 0,void 0);function ph(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function mh(e,t,n){let r={};for(let i=t;i<=n;++i){let t=e[i]?.key;t!==void 0&&(r[t]=i)}return r}var hh=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function gh(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?oh:t;for(let t of hh)for(let r of e){let e=r[t];e!==void 0&&n[t].push(e)}function i(e){let t=e.id?`#`+e.id:``,n=e.getAttribute(`class`),i=n?`.`+n.split(` `).join(`.`):``;return sh(r.tagName(e).toLowerCase()+t+i,{},[],void 0,e)}function a(e,t){return function(){if(--t==0){let t=r.parentNode(e);r.removeChild(t,e)}}}function o(e,t){var i;let a,s=e.data;if(s!==void 0){let t=s.hook?.init;dh(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)uh(e.text)&&(e.text=``),e.elm=r.createComment(e.text);else if(l!==void 0){let u=l.indexOf(`#`),d=l.indexOf(`.`,u),f=u>0?u:l.length,p=d>0?d:l.length,m=u!==-1||d!==-1?l.slice(0,Math.min(f,p)):l,h=e.elm=dh(s)&&dh(a=s.ns)?r.createElementNS(a,m,s):r.createElement(m,s);for(f<p&&h.setAttribute(`id`,l.slice(f+1,p)),d>0&&h.setAttribute(`class`,l.slice(p+1).replace(/\./g,` `)),a=0;a<n.create.length;++a)n.create[a](fh,e);if(ch(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else lh(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;dh(g)&&((i=g.create)==null||i.call(g,fh,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function s(e,t,n,i,a,s){for(;i<=a;++i){let a=n[i];a!=null&&r.insertBefore(e,o(a,s),t)}}function c(e){var t,r;let i=e.data;if(i!==void 0){(r=(t=i?.hook)?.destroy)==null||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(e.children!==void 0)for(let t=0;t<e.children.length;++t){let n=e.children[t];n!=null&&typeof n!=`string`&&c(n)}}}function l(e,t,i,o){for(;i<=o;++i){let o,s,l=t[i];if(l!=null)if(dh(l.sel)){c(l),o=n.remove.length+1,s=a(l.elm,o);for(let e=0;e<n.remove.length;++e)n.remove[e](l,s);let e=l?.data?.hook?.remove;dh(e)?e(l,s):s()}else r.removeChild(e,l.elm)}}function u(e,t,i){var a,c,d,f;let p=t.data?.hook;(a=p?.prepatch)==null||a.call(p,e,t);let m=t.elm=e.elm,h=e.children,g=t.children;if(e!==t){if(t.data!==void 0){for(let r=0;r<n.update.length;++r)n.update[r](e,t);(d=(c=t.data.hook)?.update)==null||d.call(c,e,t)}uh(t.text)?dh(h)&&dh(g)?h!==g&&function(e,t,n,i){let a,c,d,f,p=0,m=0,h=t.length-1,g=t[0],_=t[h],v=n.length-1,y=n[0],b=n[v];for(;p<=h&&m<=v;)g==null?g=t[++p]:_==null?_=t[--h]:y==null?y=n[++m]:b==null?b=n[--v]:ph(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):ph(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):ph(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):ph(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=mh(t,p,h)),c=a[y.key],uh(c)?r.insertBefore(e,o(y,i),g.elm):(d=t[c],d.sel===y.sel?(u(d,y,i),t[c]=void 0,r.insertBefore(e,d.elm,g.elm)):r.insertBefore(e,o(y,i),g.elm)),y=n[++m]);(p<=h||m<=v)&&(p>h?(f=n[v+1]==null?null:n[v+1].elm,s(e,f,n,m,v,i)):l(e,t,p,h))}(m,h,g,i):dh(g)?(dh(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):dh(h)?l(m,h,0,h.length-1):dh(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(dh(h)&&l(m,h,0,h.length-1),r.setTextContent(m,t.text)),(f=p?.postpatch)==null||f.call(p,e,t)}}return function(e,t){let a,s,c,d=[];for(a=0;a<n.pre.length;++a)n.pre[a]();for(function(e){return e.sel!==void 0}(e)||(e=i(e)),ph(e,t)?u(e,t,d):(s=e.elm,c=r.parentNode(s),o(t,d),c!==null&&(r.insertBefore(c,t.elm,r.nextSibling(s)),l(c,[e],0,0))),a=0;a<d.length;++a)d[a].data.hook.insert(d[a]);for(a=0;a<n.post.length;++a)n.post[a]();return t}}function _h(e,t,n){if(e.ns=`http://www.w3.org/2000/svg`,n!==`foreignObject`&&t!==void 0)for(let e=0;e<t.length;++e){let n=t[e].data;n!==void 0&&_h(n,t[e].children,t[e].sel)}}function vh(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(ch(t)?r=t:lh(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),ch(n)?r=n:lh(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)lh(r[a])&&(r[a]=sh(void 0,void 0,void 0,r[a],void 0));return e[0]!==`s`||e[1]!==`v`||e[2]!==`g`||e.length!==3&&e[3]!==`.`&&e[3]!==`#`||_h(o,r,e),sh(e,o,r,i,void 0)}function yh(e,t){let n,r=t.elm,i=e.data.attrs,a=t.data.attrs;if((i||a)&&i!==a){for(n in i||={},a||={},a){let e=a[n];i[n]!==e&&(!0===e?r.setAttribute(n,``):!1===e?r.removeAttribute(n):n.charCodeAt(0)===120?n.charCodeAt(3)===58?r.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,n,e):n.charCodeAt(5)===58?r.setAttributeNS(`http://www.w3.org/1999/xlink`,n,e):r.setAttribute(n,e):r.setAttribute(n,e))}for(n in i)n in a||r.removeAttribute(n)}}var bh={create:yh,update:yh};function xh(e,t){let n,r,i=t.elm,a=e.data.class,o=t.data.class;if((a||o)&&a!==o){for(r in a||={},o||={},a)a[r]&&!Object.prototype.hasOwnProperty.call(o,r)&&i.classList.remove(r);for(r in o)n=o[r],n!==a[r]&&i.classList[n?`add`:`remove`](r)}}var Sh={create:xh,update:xh},Ch=/[A-Z]/g;function wh(e,t){let n=t.elm,r,i=e.data.dataset,a=t.data.dataset;if(!i&&!a||i===a)return;i||={},a||={};let o=n.dataset;for(r in i)a[r]||(o?r in o&&delete o[r]:n.removeAttribute(`data-`+r.replace(Ch,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(Ch,`-$&`).toLowerCase(),a[r]))}var Th={create:wh,update:wh};function Eh(e,t,n){if(typeof e==`function`)e.call(t,n,t);else if(typeof e==`object`)for(let r=0;r<e.length;r++)Eh(e[r],t,n)}function Dh(e,t){let n=e.type,r=t.data.on;r&&r[n]&&Eh(r[n],t,e)}function Oh(e,t){let n=e.data.on,r=e.listener,i=e.elm,a=t&&t.data.on,o=t&&t.elm,s;if(n!==a){if(n&&r)if(a)for(s in n)a[s]||i.removeEventListener(s,r,!1);else for(s in n)i.removeEventListener(s,r,!1);if(a){let r=t.listener=e.listener||function e(t){Dh(t,e.vnode)};if(r.vnode=t,n)for(s in a)n[s]||o.addEventListener(s,r,!1);else for(s in a)o.addEventListener(s,r,!1)}}}var kh={create:Oh,update:Oh,destroy:Oh};function Ah(e,t){let n,r,i,a=t.elm,o=e.data.props,s=t.data.props;if((o||s)&&o!==s)for(n in o||={},s||={},s)r=s[n],i=o[n],i===r||n===`value`&&a[n]===r||(a[n]=r)}var jh={create:Ah,update:Ah},Mh=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,Nh=!1;function Ph(e,t,n){(function(e){Mh((function(){Mh(e)}))})((function(){e[t]=n}))}function Fh(e,t){let n,r,i=t.elm,a=e.data.style,o=t.data.style;if(!a&&!o||a===o)return;a||={},o||={};let s=`delayed`in a;for(r in a)o[r]||(r[0]===`-`&&r[1]===`-`?i.style.removeProperty(r):i.style[r]=``);for(r in o)if(n=o[r],r===`delayed`&&o.delayed)for(let e in o.delayed)n=o.delayed[e],s&&n===a.delayed[e]||Ph(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var Ih={pre:function(){Nh=!1},create:Fh,update:Fh,destroy:function(e){let t,n,r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){let n=e.data.style;if(!n||!n.remove)return void t();let r;Nh||=(e.elm.offsetLeft,!0);let i=e.elm,a=0,o=n.remove,s=0,c=[];for(r in o)c.push(r),i.style[r]=o[r];let l=getComputedStyle(i)[`transition-property`].split(`, `);for(;a<l.length;++a)c.indexOf(l[a])!==-1&&s++;i.addEventListener(`transitionend`,(function(e){e.target===i&&--s,s===0&&t()}))}};function Lh(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?Lh(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(sh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Rh(e,t,...n){let r=Lh(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?vh(e,t,r[0].text):vh(e,t,r)}Rh||={};var zh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vh=`\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Hh=`[\\ud800-\\udfff]`,Uh=`[`+Vh+`]`,Wh=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Gh=`\\d+`,Kh=`[\\u2700-\\u27bf]`,qh=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,Jh=`[^\\ud800-\\udfff`+Vh+Gh+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,Yh=`\\ud83c[\\udffb-\\udfff]`,Xh=`[^\\ud800-\\udfff]`,Zh=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Qh=`[\\ud800-\\udbff][\\udc00-\\udfff]`,$h=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,eg=`(?:`+qh+`|`+Jh+`)`,tg=`(?:`+$h+`|`+Jh+`)`,ng=`(?:`+Wh+`|`+Yh+`)?`,rg=`[\\ufe0e\\ufe0f]?`+ng+(`(?:\\u200d(?:`+[Xh,Zh,Qh].join(`|`)+`)[\\ufe0e\\ufe0f]?`+ng+`)*`),ig=`(?:`+[Kh,Zh,Qh].join(`|`)+`)`+rg,ag=`(?:`+[Xh+Wh+`?`,Wh,Zh,Qh,Hh].join(`|`)+`)`,og=RegExp(`['’]`,`g`),sg=RegExp(Wh,`g`),cg=RegExp(Yh+`(?=`+Yh+`)|`+ag+rg,`g`),lg=RegExp([$h+`?`+qh+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[Uh,$h,`$`].join(`|`)+`)`,tg+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[Uh,$h+eg,`$`].join(`|`)+`)`,$h+`?`+eg+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,$h+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,Gh,ig].join(`|`),`g`),ug=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),dg=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fg=typeof jr==`object`&&jr&&jr.Object===Object&&jr,pg=typeof self==`object`&&self&&self.Object===Object&&self,mg=fg||pg||Function(`return this`)(),hg,gg=(hg={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},function(e){return hg?.[e]});function _g(e){return ug.test(e)}function vg(e){return _g(e)?function(e){return e.match(cg)||[]}(e):function(e){return e.split(``)}(e)}var yg=Object.prototype.toString,bg=mg.Symbol,xg=bg?bg.prototype:void 0,Sg=xg?xg.toString:void 0;function Cg(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&yg.call(e)==`[object Symbol]`}(e))return Sg?Sg.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function wg(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}(e,t,n)}function Tg(e){return e==null?``:Cg(e)}for(var Eg,Dg=(Eg=function(e,t,n){return t=t.toLowerCase(),e+(n?kg(Tg(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}(function(e,t,n){return e=Tg(e),(t=n?void 0:t)===void 0?function(e){return dg.test(e)}(e)?function(e){return e.match(lg)||[]}(e):function(e){return e.match(zh)||[]}(e):e.match(t)||[]}(function(e){return(e=Tg(e))&&e.replace(Bh,gg).replace(sg,``)}(e).replace(og,``)),Eg,``)}),Og,kg=(Og=`toUpperCase`,function(e){var t=_g(e=Tg(e))?vg(e):void 0,n=t?t[0]:e.charAt(0),r=t?wg(t,1).join(``):e.slice(1);return n[Og]()+r}),Ag=Dg,jg=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Mg={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},Ng={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:jg?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},Pg={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},Fg=1;Fg<20;Fg++)Pg[`f`+Fg]=111+Fg;function Ig(e,t,n){t&&!(`byKey`in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},i=(e=e.replace(`++`,`+add`)).split(`+`),a=i.length;for(var o in Mg)r[Mg[o]]=!1;var s=!0,c=!1,l=void 0;try{for(var u,d=i[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=f.endsWith(`?`)&&f.length>1;p&&(f=f.slice(0,-1));var m=Rg(f),h=Mg[m];if(f.length>1&&!h&&!Ng[f]&&!Pg[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=Lg(f)),h&&(r[h]=!p||null)}}catch(e){c=!0,l=e}finally{try{!s&&d.return&&d.return()}finally{if(c)throw l}}return r}(e,t)})),i=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&((i=n===`key`&&t.key!=null?t.key.toLowerCase():n===`which`?r===91&&t.which===93?91:t.which:t[n])!=null||!1!==r)&&i!==r)return!1}return!0}(t,e)}))};return n==null?i:i(n)}function Lg(e){return e=Rg(e),Pg[e]||e.toUpperCase().charCodeAt(0)}function Rg(e){return e=e.toLowerCase(),e=Ng[e]||e}var zg=Ig,Bg=function(e,t){return Ig(e,{byKey:!0},t)},Vg=/^\s+|\s+$/g,Hg=/^[-+]0x[0-9a-f]+$/i,Ug=/^0b[01]+$/i,Wg=/^0o[0-7]+$/i,Gg=parseInt,Kg=typeof jr==`object`&&jr&&jr.Object===Object&&jr,qg=typeof self==`object`&&self&&self.Object===Object&&self,Jg=Kg||qg||Function(`return this`)(),Yg=Object.prototype.toString,Xg=Math.max,Zg=Math.min,Qg=function(){return Jg.Date.now()};function $g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function e_(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&Yg.call(e)==`[object Symbol]`}(e))return NaN;if($g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=$g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Vg,``);var n=Ug.test(e);return n||Wg.test(e)?Gg(e.slice(2),n?2:8):Hg.test(e)?NaN:+e}var t_,n_=function(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=Qg();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?Zg(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=Qg(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=e_(t)||0,$g(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Xg(e_(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(Qg())},v},r_=Mr((function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Boolean]`,o=`[object Date]`,s=`[object Function]`,c=`[object GeneratorFunction]`,l=`[object Map]`,u=`[object Number]`,d=`[object Object]`,f=`[object Promise]`,p=`[object RegExp]`,m=`[object Set]`,h=`[object String]`,g=`[object Symbol]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k=/\w*$/,ee=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,A={};A[i]=A[`[object Array]`]=A[v]=A[y]=A[a]=A[o]=A[b]=A[x]=A[S]=A[C]=A[w]=A[l]=A[u]=A[d]=A[p]=A[m]=A[h]=A[g]=A[T]=A[E]=A[D]=A[O]=!0,A[`[object Error]`]=A[s]=A[_]=!1;var ne=typeof jr==`object`&&jr&&jr.Object===Object&&jr,j=typeof self==`object`&&self&&self.Object===Object&&self,M=ne||j||Function(`return this`)(),N=t&&!t.nodeType&&t,P=N&&e&&!e.nodeType&&e,re=P&&P.exports===N;function ie(e,t){return e.set(t[0],t[1]),e}function ae(e,t){return e.add(t),e}function F(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function oe(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function se(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ce(e,t){return function(n){return e(t(n))}}function le(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ue=Array.prototype,de=Function.prototype,fe=Object.prototype,pe=M[`__core-js_shared__`],me=function(){var e=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),I=de.toString,he=fe.hasOwnProperty,ge=fe.toString,_e=RegExp(`^`+I.call(he).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ve=re?M.Buffer:void 0,ye=M.Symbol,be=M.Uint8Array,xe=ce(Object.getPrototypeOf,Object),Se=Object.create,Ce=fe.propertyIsEnumerable,we=ue.splice,Te=Object.getOwnPropertySymbols,Ee=ve?ve.isBuffer:void 0,De=ce(Object.keys,Object),Oe=$e(M,`DataView`),ke=$e(M,`Map`),Ae=$e(M,`Promise`),je=$e(M,`Set`),Me=$e(M,`WeakMap`),Ne=$e(Object,`create`),Pe=it(Oe),Fe=it(ke),Ie=it(Ae),Le=it(je),Re=it(Me),ze=ye?ye.prototype:void 0,Be=ze?ze.valueOf:void 0;function Ve(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function He(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ue(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function We(e){this.__data__=new He(e)}function Ge(e,t){var n=ot(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&st(e)}(e)&&he.call(e,`callee`)&&(!Ce.call(e,`callee`)||ge.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,a=!!r;for(var o in e)!t&&!he.call(e,o)||a&&(o==`length`||nt(o,r))||n.push(o);return n}function Ke(e,t,n){var r=e[t];he.call(e,t)&&at(r,n)&&(n!==void 0||t in e)||(e[t]=n)}function qe(e,t){for(var n=e.length;n--;)if(at(e[n][0],t))return n;return-1}function Je(e,t,n,r,f,_,ee){var te;if(r&&(te=_?r(e,f,_,ee):r(e)),te!==void 0)return te;if(!ut(e))return e;var ne=ot(e);if(ne){if(te=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&he.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e,te)}else{var j=tt(e),M=j==s||j==c;if(ct(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==d||j==i||M&&!_){if(oe(e))return _?e:{};if(te=function(e){return typeof e.constructor!=`function`||rt(e)?{}:(t=xe(e),ut(t)?Se(t):{});var t}(M?{}:e),!t)return function(e,t){return Ze(e,et(e),t)}(e,function(e,t){return e&&Ze(t,dt(t),e)}(te,e))}else{if(!A[j])return _?e:{};te=function(e,t,n,r){var i=e.constructor;switch(t){case v:return Xe(e);case a:case o:return new i(+e);case y:return function(e,t){var n=t?Xe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case b:case x:case S:case C:case w:case T:case E:case D:case O:return function(e,t){var n=t?Xe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return F(t?n(se(e),!0):se(e),ie,new e.constructor)}(e,r,n);case u:case h:return new i(e);case p:return function(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){return F(t?n(le(e),!0):le(e),ae,new e.constructor)}(e,r,n);case g:return function(e){return Be?Object(Be.call(e)):{}}(e)}}(e,j,Je,t)}}ee||=new We;var N=ee.get(e);if(N)return N;if(ee.set(e,te),!ne)var P=n?function(e){return function(e,t,n){var r=t(e);return ot(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,dt,et)}(e):dt(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(P||e,(function(i,a){P&&(i=e[a=i]),Ke(te,a,Je(i,t,n,r,a,e,ee))})),te}function Ye(e){return!(!ut(e)||function(e){return!!me&&me in e}(e))&&(lt(e)||oe(e)?_e:ee).test(it(e))}function Xe(e){var t=new e.constructor(e.byteLength);return new be(t).set(new be(e)),t}function Ze(e,t,n,r){n||={};for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;Ke(n,o,s===void 0?e[o]:s)}return n}function Qe(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function $e(e,t){var n=function(e,t){return e?.[t]}(e,t);return Ye(n)?n:void 0}Ve.prototype.clear=function(){this.__data__=Ne?Ne(null):{}},Ve.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ve.prototype.get=function(e){var t=this.__data__;if(Ne){var r=t[e];return r===n?void 0:r}return he.call(t,e)?t[e]:void 0},Ve.prototype.has=function(e){var t=this.__data__;return Ne?t[e]!==void 0:he.call(t,e)},Ve.prototype.set=function(e,t){return this.__data__[e]=Ne&&t===void 0?n:t,this},He.prototype.clear=function(){this.__data__=[]},He.prototype.delete=function(e){var t=this.__data__,n=qe(t,e);return!(n<0)&&(n==t.length-1?t.pop():we.call(t,n,1),!0)},He.prototype.get=function(e){var t=this.__data__,n=qe(t,e);return n<0?void 0:t[n][1]},He.prototype.has=function(e){return qe(this.__data__,e)>-1},He.prototype.set=function(e,t){var n=this.__data__,r=qe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ue.prototype.clear=function(){this.__data__={hash:new Ve,map:new(ke||He),string:new Ve}},Ue.prototype.delete=function(e){return Qe(this,e).delete(e)},Ue.prototype.get=function(e){return Qe(this,e).get(e)},Ue.prototype.has=function(e){return Qe(this,e).has(e)},Ue.prototype.set=function(e,t){return Qe(this,e).set(e,t),this},We.prototype.clear=function(){this.__data__=new He},We.prototype.delete=function(e){return this.__data__.delete(e)},We.prototype.get=function(e){return this.__data__.get(e)},We.prototype.has=function(e){return this.__data__.has(e)},We.prototype.set=function(e,t){var n=this.__data__;if(n instanceof He){var r=n.__data__;if(!ke||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ue(r)}return n.set(e,t),this};var et=Te?ce(Te,Object):function(){return[]},tt=function(e){return ge.call(e)};function nt(e,t){return!!(t??=r)&&(typeof e==`number`||te.test(e))&&e>-1&&e%1==0&&e<t}function rt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||fe)}function it(e){if(e!=null){try{return I.call(e)}catch{}try{return e+``}catch{}}return``}function at(e,t){return e===t||e!=e&&t!=t}(Oe&&tt(new Oe(new ArrayBuffer(1)))!=y||ke&&tt(new ke)!=l||Ae&&tt(Ae.resolve())!=f||je&&tt(new je)!=m||Me&&tt(new Me)!=_)&&(tt=function(e){var t=ge.call(e),n=t==d?e.constructor:void 0,r=n?it(n):void 0;if(r)switch(r){case Pe:return y;case Fe:return l;case Ie:return f;case Le:return m;case Re:return _}return t});var ot=Array.isArray;function st(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}(e.length)&&!lt(e)}var ct=Ee||function(){return!1};function lt(e){var t=ut(e)?ge.call(e):``;return t==s||t==c}function ut(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function dt(e){return st(e)?Ge(e):function(e){if(!rt(e))return De(e);var t=[];for(var n in Object(e))he.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}e.exports=function(e){return Je(e,!0,!0)}}));function i_(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var a_=0;function o_(e){return`__private_`+ a_+++`_`+e}function s_(e,t,n){let r=[];return e.forEach((e=>typeof e==`string`?t[Symbol.split](e).forEach(((e,t,i)=>{e!==``&&r.push(e),t<i.length-1&&r.push(n)})):r.push(e))),r}function c_(e,t){let n=/\$/g,r=[e];if(t==null)return r;for(let e of Object.keys(t))if(e!==`_`){let i=t[e];typeof i==`string`&&(i=n[Symbol.replace](i,`$$$$`)),r=s_(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var l_=(t_=o_(`apply`),class{constructor(e){Object.defineProperty(this,t_,{value:u_}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(i_(this,t_)[t_],this):i_(this,t_)[t_](e)}translate(e,t){return this.translateArray(e,t).join(``)}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw Error(`missing string: ${e}`);let n=this.locale.strings[e];if(typeof n==`object`){if(t&&t.smart_count!==void 0)return c_(n[this.locale.pluralize(t.smart_count)],t);throw Error(`Attempted to use a string with plural forms, but no value was given for %{smart_count}`)}return c_(n,t)}});function u_(e){if(e==null||!e.strings)return;let t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var d_=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,i,a,o,s){var c=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(`:`),i=r===-1?[e]:[e.substring(0,r),e.substring(r+1)],a=Object.keys(t),o=0,s=a.length;o<s;o++){var c=a[o];if(c===`*`&&(n=n.concat(t[c])),i.length===2&&i[0]===c){n=n.concat(t[c]);break}}return n}(e);c.length&&function(e,t,n){for(var r=0,i=t.length;r<i&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,c,[n,r,i,a,o,s])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],i=0,a=r?r.length:0;i<a;i++)r[i]!==t&&n.push(r[i]);n.length?this._fns[e]=n:delete this._fns[e]},e},{urlAlphabet:f_}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},p_=e=>crypto.getRandomValues(new Uint8Array(e)),m_=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let a=``;for(;;){let o=n(i),s=i;for(;s--;)if(a+=e[o[s]&r]||``,a.length===t)return a}}},h_={nanoid:(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?`_`:`-`}return t},customAlphabet:(e,t)=>m_(e,t,p_),customRandom:m_,urlAlphabet:f_,random:p_},g_=function(e){if(typeof e!=`number`||isNaN(e))throw 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/1024**r);var i=n[r];return e>=10||e%1==0?(t?`-`:``)+e.toFixed(0)+` `+i:(t?`-`:``)+e.toFixed(1)+` `+i};function __(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}__.prototype.match=function(e){var t,n,r=!0,i=this.parts,a=i.length;if(typeof e==`string`||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||``).split(this.separator),t=0;r&&t<a;t++)i[t]!==`*`&&(r=t<n.length&&i[t]===n[t]);r&&=n}else r=!1;else if(typeof e.splice==`function`)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e==`object`)for(var o in r={},e)this.match(o)&&(r[o]=e[o]);return r};var v_=/[\/\+\.]/,y_=function(e,t){function n(t){var n=function(e,t,n){var r=new __(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,v_);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},b_=0;function x_(e){return`__private_`+ b_+++`_`+e}var S_=x_(`publish`),C_=class{constructor(){Object.defineProperty(this,S_,{value:w_}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){let t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}(this,S_)[S_](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function w_(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}C_.VERSION=`2.0.3`;var T_=function(e){let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},E_={md:`text/markdown`,markdown:`text/markdown`,mp4:`video/mp4`,mp3:`audio/mp3`,svg:`image/svg+xml`,jpg:`image/jpeg`,png:`image/png`,gif:`image/gif`,heic:`image/heic`,heif:`image/heif`,yaml:`text/yaml`,yml:`text/yaml`,csv:`text/csv`,tsv:`text/tab-separated-values`,tab:`text/tab-separated-values`,avi:`video/x-msvideo`,mks:`video/x-matroska`,mkv:`video/x-matroska`,mov:`video/quicktime`,doc:`application/msword`,docm:`application/vnd.ms-word.document.macroenabled.12`,docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,dot:`application/msword`,dotm:`application/vnd.ms-word.template.macroenabled.12`,dotx:`application/vnd.openxmlformats-officedocument.wordprocessingml.template`,xla:`application/vnd.ms-excel`,xlam:`application/vnd.ms-excel.addin.macroenabled.12`,xlc:`application/vnd.ms-excel`,xlf:`application/x-xliff+xml`,xlm:`application/vnd.ms-excel`,xls:`application/vnd.ms-excel`,xlsb:`application/vnd.ms-excel.sheet.binary.macroenabled.12`,xlsm:`application/vnd.ms-excel.sheet.macroenabled.12`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,xlt:`application/vnd.ms-excel`,xltm:`application/vnd.ms-excel.template.macroenabled.12`,xltx:`application/vnd.openxmlformats-officedocument.spreadsheetml.template`,xlw:`application/vnd.ms-excel`,txt:`text/plain`,text:`text/plain`,conf:`text/plain`,log:`text/plain`,pdf:`application/pdf`,zip:`application/zip`,"7z":`application/x-7z-compressed`,rar:`application/x-rar-compressed`,tar:`application/x-tar`,gz:`application/gzip`,dmg:`application/x-apple-diskimage`};function D_(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var O_=function(e){if(e??=typeof navigator<`u`?navigator.userAgent:null,!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let[n,r]=t[1].split(`.`);return n=parseInt(n,10),r=parseInt(r,10),n<15||n===15&&r<15063||n>18||n===18&&r>=18218};function k_(e){return e<10?`0${e}`:e.toString()}var A_=function(){let e=new Date;return`${k_(e.getHours())}:${k_(e.getMinutes())}:${k_(e.getSeconds())}`},j_={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${A_()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${A_()}]`,...t)},warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${A_()}]`,...t)},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${A_()}]`,...t)}}},M_={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}`}}},N_=h_,P_,F_;function G(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var I_=0;function L_(e){return`__private_`+ I_+++`_`+e}var{nanoid:R_}=N_,{justErrorsLogger:z_,debugLogger:B_}=j_,V_=class extends Error{constructor(){super(...arguments),this.isRestriction=!0}};typeof AggregateError>`u`&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});var H_=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},U_=L_(`plugins`),W_=L_(`storeUnsubscribe`),G_=L_(`emitter`),K_=L_(`preProcessors`),q_=L_(`uploaders`),J_=L_(`postProcessors`),Y_=L_(`checkRestrictions`),X_=L_(`checkMinNumberOfFiles`),Z_=L_(`checkRequiredMetaFieldsOnFile`),Q_=L_(`checkRequiredMetaFields`),$_=L_(`showOrLogErrorAndThrow`),ev=L_(`assertNewUploadAllowed`),tv=L_(`checkAndCreateFileStateObject`),nv=L_(`startIfAutoProceed`),rv=L_(`addListeners`),iv=L_(`updateOnlineStatus`),av=L_(`createUpload`),ov=L_(`getUpload`),sv=L_(`removeUpload`),cv=L_(`runUpload`);P_=Symbol.for(`uppy test: getPlugins`),F_=Symbol.for(`uppy test: createUpload`);var lv=class{constructor(e){Object.defineProperty(this,cv,{value:Sv}),Object.defineProperty(this,sv,{value:xv}),Object.defineProperty(this,ov,{value:bv}),Object.defineProperty(this,av,{value:yv}),Object.defineProperty(this,rv,{value:vv}),Object.defineProperty(this,nv,{value:_v}),Object.defineProperty(this,tv,{value:gv}),Object.defineProperty(this,ev,{value:hv}),Object.defineProperty(this,$_,{value:mv}),Object.defineProperty(this,Q_,{value:pv}),Object.defineProperty(this,Z_,{value:fv}),Object.defineProperty(this,X_,{value:dv}),Object.defineProperty(this,Y_,{value:uv}),Object.defineProperty(this,U_,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,W_,{writable:!0,value:void 0}),Object.defineProperty(this,G_,{writable:!0,value:d_()}),Object.defineProperty(this,K_,{writable:!0,value:new Set}),Object.defineProperty(this,q_,{writable:!0,value:new Set}),Object.defineProperty(this,J_,{writable:!0,value:new Set}),Object.defineProperty(this,iv,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=M_;let t={id:`uppy`,autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new C_,logger:z_,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=B_),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ah(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:O_(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),G(this,W_)[W_]=this.store.subscribe(((e,t,n)=>{this.emit(`state-update`,e,t,n),this.updateAll(t)})),this.opts.debug&&typeof window<`u`&&(window[this.opts.id]=this),G(this,rv)[rv]()}emit(e){var t=[...arguments].slice(1);G(this,G_)[G_].emit(e,...t)}on(e,t){return G(this,G_)[G_].on(e,t),this}once(e,t){return G(this,G_)[G_].once(e,t),this}off(e,t){return G(this,G_)[G_].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 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(){let e=new l_([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(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{let i={...t[r]};i.progress={...i.progress,...e},n[r]=i})),this.setState({files:n,totalProgress:0}),this.emit(`reset-progress`)}addPreProcessor(e){G(this,K_)[K_].add(e)}removePreProcessor(e){return G(this,K_)[K_].delete(e)}addPostProcessor(e){G(this,J_)[J_].add(e)}removePostProcessor(e){return G(this,J_)[J_].delete(e)}addUploader(e){G(this,q_)[q_].add(e)}removeUploader(e){return G(this,q_)[q_].delete(e)}setMeta(e){let 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){let n={...this.getState().files};if(!n[e])return void this.log(`Was trying to set metadata for a file that has been removed: `,e);let r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),a=r.filter((e=>!e.progress.uploadStarted)),o=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=r.filter((e=>e.progress.uploadStarted)),c=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),u=r.filter((e=>e.error)),d=i.filter((e=>!e.isPaused)),f=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:a,startedFiles:o,uploadStartedFiles:s,pausedFiles:c,completeFiles:l,erroredFiles:u,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:t===100&&l.length===r.length&&f.length===0,isAllErrored:!!n&&u.length===r.length,isAllPaused:i.length!==0&&c.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return G(this,Y_)[Y_](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){G(this,ev)[ev](e);let{files:t}=this.getState(),n=G(this,tv)[tv](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}`),G(this,nv)[nv](),n.id}addFiles(e){G(this,ev)[ev]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=G(this,tv)[tv](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(e){e.isRestriction||r.push(e)}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&&G(this,nv)[nv](),r.length>0){let e=`Multiple errors occurred while adding files:
|
|
15
|
+
`;if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n(`addBulkFilesFailed`,{smart_count:r.length}),details:e},`error`,this.opts.infoTimeout),typeof AggregateError==`function`)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}}removeFiles(e,t){let{files:n,currentUploads:r}=this.getState(),i={...n},a={...r},o=Object.create(null);function s(e){return o[e]===void 0}e.forEach((e=>{n[e]&&(o[e]=n[e],delete i[e])})),Object.keys(a).forEach((e=>{let t=r[e].fileIDs.filter(s);t.length===0?delete a[e]:a[e]={...r[e],fileIDs:t}}));let c={currentUploads:a,files:i};Object.keys(i).length===0&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();let l=Object.keys(o);l.forEach((e=>{this.emit(`file-removed`,o[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(`, `)}`)}removeFile(e,t){t===void 0&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit(`upload-pause`,e,t),t}pauseAll(){let e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{e[t]={...e[t],isPaused:!0}})),this.setState({files:e}),this.emit(`pause-all`)}resumeAll(){let e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{e[t]={...e[t],isPaused:!1,error:null}})),this.setState({files:e}),this.emit(`resume-all`)}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{e[t]={...e[t],isPaused:!1,error:null}})),this.setState({files:e,error:null}),this.emit(`retry-all`,t),t.length===0)return Promise.resolve({successful:[],failed:[]});let n=G(this,av)[av](t,{forceAllowNewUpload:!0});return G(this,cv)[cv](n)}cancelAll(){this.emit(`cancel-all`);let{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);let t=G(this,av)[av]([e],{forceAllowNewUpload:!0});return G(this,cv)[cv](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}`);let 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(){let e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(e.length===0)return this.emit(`progress`,0),void this.setState({totalProgress:0});let t=e.filter((e=>e.progress.bytesTotal!=null)),n=e.filter((e=>e.progress.bytesTotal==null));if(t.length===0){let t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),i=Math.round(r/t*100);this.setState({totalProgress:i});return}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0),i=r/t.length;r+=i*n.length;let a=0;t.forEach((e=>{a+=e.progress.bytesUploaded})),n.forEach((e=>{a+=i*(e.progress.percentage||0)/100}));let o=r===0?0:Math.round(a/r*100);o>100&&(o=100),this.setState({totalProgress:o}),this.emit(`progress`,o)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit(`is-online`),this.wasOffline&&=(this.emit(`back-online`),this.info(this.i18n(`connectedToInternet`),`success`,3e3),!1)):(this.emit(`is-offline`),this.info(this.i18n(`noInternetConnection`),`error`,0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if(typeof e!=`function`)throw TypeError(`Expected a plugin class, but got ${e===null?`null`:typeof e}. Please verify that the plugin was imported and spelled correctly.`);let n=new e(this,t),r=n.id;if(!r)throw Error(`Your plugin must have an id`);if(!n.type)throw Error(`Your plugin must have a type`);let i=this.getPlugin(r);if(i){let e=`Already found a plugin named '${i.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in G(this,U_)[U_]?G(this,U_)[U_][n.type].push(n):G(this,U_)[U_][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(G(this,U_)[U_])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[P_](e){return G(this,U_)[U_][e]}iteratePlugins(e){Object.values(G(this,U_)[U_]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=G(this,U_)[U_][e.type],n=t.findIndex((t=>t.id===e.id));n!==-1&&t.splice(n,1);let r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),G(this,W_)[W_](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,G(this,iv)[iv]),window.removeEventListener(`offline`,G(this,iv)[iv]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit(`info-hidden`)}info(e,t,n){t===void 0&&(t=`info`),n===void 0&&(n=3e3);let r=typeof e==`object`;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){let{logger:n}=this.opts;switch(t){case`error`:n.error(e);break;case`warning`:n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?G(this,cv)[cv](e):(G(this,sv)[sv](e),Promise.reject(Error(`Nonexistent upload`)))}[F_](){return G(this,av)[av](...arguments)}addResultData(e,t){if(!G(this,ov)[ov](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);let{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;(e=G(this,U_)[U_].uploader)!=null&&e.length||this.log(`No uploader type plugins are used`,`warning`);let{files:t}=this.getState(),n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(Error(`Not starting the upload because onBeforeUpload returned false`)):(n&&typeof n==`object`&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{G(this,X_)[X_](t),G(this,Q_)[Q_](t)})).catch((e=>{G(this,$_)[$_](e)})).then((()=>{let{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{let t=this.getFile(e);t.progress.uploadStarted||n.indexOf(e)!==-1||r.push(t.id)}));let i=G(this,av)[av](r);return G(this,cv)[cv](i)})).catch((e=>{G(this,$_)[$_](e,{showInformer:!1})})))}};function uv(e,t){t===void 0&&(t=this.getFiles());let{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:a,allowedFileTypes:o}=this.opts.restrictions;if(a&&t.length+1>a)throw new V_(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&y_(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new V_(this.i18n(`youCanOnlyUploadFileTypes`,{types:e}))}if(i&&e.size!=null){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>i)throw new V_(this.i18n(`exceedsSize`,{size:g_(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new V_(this.i18n(`exceedsSize`,{size:g_(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new V_(this.i18n(`inferiorSize`,{size:g_(r)}))}function dv(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new V_(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function fv(e){let{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===``){let n=new V_(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),G(this,$_)[$_](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function pv(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return G(this,Z_)[Z_](t)}));if(t.length)throw new H_(t,`${this.i18n(`missingRequiredMetaField`)}`)}function mv(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=t===void 0?{}:t,a=typeof e==`object`?e.message:e,o=typeof e==`object`&&e.details?e.details:``,s=a;if(o&&(s+=` ${o}`),e.isRestriction?(this.log(s),this.emit(`restriction-failed`,r,e)):this.log(s,`error`),n&&this.info({message:a,details:o},`error`,this.opts.infoTimeout),i)throw typeof e==`object`?e:Error(e)}function hv(e){let{allowNewUpload:t}=this.getState();!1===t&&G(this,$_)[$_](new V_(this.i18n(`noMoreFilesAllowed`)),{file:e})}function gv(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?T_(e.name).extension?.toLowerCase():null;return t&&t in E_?E_[t]:`application/octet-stream`}(t),r=function(e,t){return t.name?t.name:e.split(`/`)[0]===`image`?`${e.split(`/`)[0]}.${e.split(`/`)[1]}`:`noname`}(n,t),i=T_(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${D_(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${D_(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(t+=`-${e.data.size}`),e.data.lastModified!==void 0&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(o)){let e=new V_(this.i18n(`noDuplicates`,{fileName:r}));G(this,$_)[$_](e,{file:t})}let s=t.meta||{};s.name=r,s.type=n;let c=Number.isFinite(t.data.size)?t.data.size:null,l={source:t.source||``,id:o,name:r,extension:i||``,meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:a,remote:t.remote||``,preview:t.preview},u=this.opts.onBeforeFileAdded(l,e);!1===u?G(this,$_)[$_](new V_(`Cannot add the file because onBeforeFileAdded returned false.`),{showInformer:!1,fileDescriptor:t}):typeof u==`object`&&u&&(l=u);try{let t=Object.keys(e).map((t=>e[t]));G(this,Y_)[Y_](l,t)}catch(e){G(this,$_)[$_](e,{file:l})}return l}function _v(){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 vv(){let e=(e,t,n)=>{let r=e.message||`Unknown error`;e.details&&(r+=` ${e.details}`),this.setState({error:r}),t!=null&&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),typeof n==`object`&&n.message){let e=Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n(`failedToUpload`,{file:t.name}),G(this,$_)[$_](e,{throwErr:!1})}else G(this,$_)[$_](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}`);let n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:G(this,J_)[J_].size>0?{mode:`indeterminate`}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),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}`);let 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}`);let 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&&G(this,Z_)[Z_](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,G(this,iv)[iv]),window.addEventListener(`offline`,G(this,iv)[iv]),setTimeout(G(this,iv)[iv],3e3))}function yv(e,t){t===void 0&&(t={});let{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw Error(`Cannot create a new upload: already uploading.`);let a=R_();return this.emit(`upload`,{id:a,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[a]:{fileIDs:e,step:0,result:{}}}}),a}function bv(e){let{currentUploads:t}=this.getState();return t[e]}function xv(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Sv(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...G(this,K_)[K_],...G(this,q_)[q_],...G(this,J_)[J_]];try{for(let a=r;a<i.length&&n;a++){let r=i[a],o={...n,step:a};this.setState({currentUploads:{...t,[e]:o}}),await r(o.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit(`error`,t),G(this,sv)[sv](e),t}if(n){n.fileIDs.forEach((e=>{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit(`postprocess-complete`,t)}));let r=n.fileIDs.map((e=>this.getFile(e))),i=r.filter((e=>!e.error)),a=r.filter((e=>e.error));await this.addResultData(e,{successful:i,failed:a,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let a;return n&&(a=n.result,this.emit(`complete`,a),G(this,sv)[sv](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}lv.VERSION=`2.1.3`;var Cv=lv,wv=Mr((function(e,t){var n,r,i,a,o,s,c,l,u={},d=[],f=/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 m(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,r){var i,a,o,s={};for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),typeof e==`function`&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return g(e,s,i,a,null)}function g(e,t,n,a,o){var s={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++i};return o==null&&r.vnode!=null&&r.vnode(s),s}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function y(e,t){if(t==null)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?y(e):null}function b(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return b(e)}}function x(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!S.__r++||c!==r.debounceRendering)&&((c=r.debounceRendering)||s)(S)}function S(){for(var e;S.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,i,a,o;e.__d&&(a=(i=(t=e).__v).__e,(o=t.__P)&&(n=[],(r=p({},i)).__v=i.__v+1,ee(o,i,r,t.__n,o.ownerSVGElement!==void 0,i.__h==null?null:[a],n,a??y(i),i.__h),te(n,i),i.__e!=a&&b(i)))}))}function C(e,t,n,r,i,a,o,s,c,l){var f,p,m,h,v,b,x,S=r&&r.__k||d,C=S.length;for(n.__k=[],f=0;f<t.length;f++)if((h=n.__k[f]=(h=t[f])==null||typeof h==`boolean`?null:typeof h==`string`||typeof h==`number`||typeof h==`bigint`?g(null,h,null,null,h):Array.isArray(h)?g(_,{children:h},null,null,null):h.__b>0?g(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(m=S[f])===null||m&&h.key==m.key&&h.type===m.type)S[f]=void 0;else for(p=0;p<C;p++){if((m=S[p])&&h.key==m.key&&h.type===m.type){S[p]=void 0;break}m=null}ee(e,h,m||=u,i,a,o,s,c,l),v=h.__e,(p=h.ref)&&m.ref!=p&&(x||=[],m.ref&&x.push(m.ref,null,h),x.push(p,h.__c||v,h)),v==null?c&&m.__e==c&&c.parentNode!=e&&(c=y(m)):(b??=v,typeof h.type==`function`&&h.__k===m.__k?h.__d=c=w(h,c,e):c=T(e,h,m,S,v,c),typeof n.type==`function`&&(n.__d=c))}for(n.__e=b,f=C;f--;)S[f]!=null&&(typeof n.type==`function`&&S[f].__e!=null&&S[f].__e==n.__d&&(n.__d=y(r,f+1)),j(S[f],S[f]));if(x)for(f=0;f<x.length;f++)ne(x[f],x[++f],x[++f])}function w(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?w(r,t,n):T(n,r,r,i,r.__e,t));return t}function T(e,t,n,r,i,a){var o,s,c;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==i)break e;e.insertBefore(i,a),o=a}return o===void 0?i.nextSibling:o}function E(e,t,n){t[0]===`-`?e.setProperty(t,n):e[t]=n==null?``:typeof n!=`number`||f.test(t)?n:n+`px`}function D(e,t,n,r,i){var a;e:if(t===`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||E(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/Capture$/,``)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?k:O,a):e.removeEventListener(t,a?k:O,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink[H:h]/,`h`).replace(/sName$/,`s`);else if(t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t in e)try{e[t]=n??``;break e}catch{}typeof n==`function`||(n!=null&&(!1!==n||t[0]===`a`&&t[1]===`r`)?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](r.event?r.event(e):e)}function k(e){this.l[e.type+!0](r.event?r.event(e):e)}function ee(e,t,n,i,a,o,s,c,l){var u,d,f,m,h,g,y,b,x,S,w,T=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(u=r.__b)&&u(t);try{e:if(typeof T==`function`){if(b=t.props,x=(u=T.contextType)&&i[u.__c],S=u?x?x.props.value:u.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:(`prototype`in T&&T.prototype.render?t.__c=d=new T(b,S):(t.__c=d=new v(b,S),d.constructor=T,d.render=M),x&&x.sub(d),d.props=b,d.state||={},d.context=S,d.__n=i,f=d.__d=!0,d.__h=[]),d.__s??=d.state,T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,T.getDerivedStateFromProps(b,d.__s))),m=d.props,h=d.state,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&b!==m&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(b,S),!d.__e&&d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(b,d.__s,S)||t.__v===n.__v){d.props=b,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(b,d.__s,S),d.componentDidUpdate!=null&&d.__h.push((function(){d.componentDidUpdate(m,h,g)}))}d.context=S,d.props=b,d.state=d.__s,(u=r.__r)&&u(t),d.__d=!1,d.__v=t,d.__P=e,u=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=p(p({},i),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===_&&u.key==null?u.props.children:u,C(e,Array.isArray(w)?w:[w],t,n,i,a,o,s,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=A(n.__e,t,n,i,a,o,s,l);(u=r.diffed)&&u(t)}catch(e){t.__v=null,(l||o!=null)&&(t.__e=c,t.__h=!!l,o[o.indexOf(c)]=null),r.__e(e,t,n)}}function te(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 A(e,t,r,i,a,o,s,c){var l,d,f,p=r.props,h=t.props,g=t.type,_=0;if(g===`svg`&&(a=!0),o!=null){for(;_<o.length;_++)if((l=o[_])&&`setAttribute`in l==!!g&&(g?l.localName===g:l.nodeType===3)){e=l,o[_]=null;break}}if(e==null){if(g===null)return document.createTextNode(h);e=a?document.createElementNS(`http://www.w3.org/2000/svg`,g):document.createElement(g,h.is&&h),o=null,c=!1}if(g===null)p===h||c&&e.data===h||(e.data=h);else{if(o&&=n.call(e.childNodes),d=(p=r.props||u).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!c){if(o!=null)for(p={},_=0;_<e.attributes.length;_++)p[e.attributes[_].name]=e.attributes[_].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||``))}if(function(e,t,n,r,i){for(var a in n)a===`children`||a===`key`||a in t||D(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!=`function`||a===`children`||a===`key`||a===`value`||a===`checked`||n[a]===t[a]||D(e,a,t[a],n[a],r)}(e,h,p,a,c),f)t.__k=[];else if(_=t.props.children,C(e,Array.isArray(_)?_:[_],t,r,i,a&&g!==`foreignObject`,o,s,o?o[0]:r.__k&&y(r,0),c),o!=null)for(_=o.length;_--;)o[_]!=null&&m(o[_]);c||(`value`in h&&(_=h.value)!==void 0&&(_!==p.value||_!==e.value||g===`progress`&&!_)&&D(e,`value`,_,p.value,!1),`checked`in h&&(_=h.checked)!==void 0&&_!==e.checked&&D(e,`checked`,_,p.checked,!1))}return e}function ne(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var i,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||ne(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&j(i[a],t,typeof e.type!=`function`);n||e.__e==null||m(e.__e),e.__e=e.__d=void 0}function M(e,t,n){return this.constructor(e,n)}function N(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],ee(t,e=(!a&&i||t).__k=h(_,null,[e]),o||u,u,t.ownerSVGElement!==void 0,!a&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,s,!a&&i?i:o?o.__e:t.firstChild,a),te(s,e)}n=d.slice,r={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},i=0,a=function(e){return e!=null&&e.constructor===void 0},v.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state);typeof e==`function`&&(e=e(p({},n),this.props)),e&&p(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),x(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},v.prototype.render=_,o=[],s=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=v,t.Fragment=_,t.cloneElement=function(e,t,r){var i,a,o,s=p({},e.props);for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),g(e.type,s,i||e.key,a||e.ref,null)},t.createContext=function(e,t){var n={__c:t=`__cC`+ l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(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=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function e(t,n){N(t,n,e)},t.isValidElement=a,t.options=r,t.render=N,t.toChildArray=function e(t,n){return n||=[],t==null||typeof t==`boolean`||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Tv=function(e,t){return t===void 0&&(t=document),typeof e==`string`?t.querySelector(e):(n=e)?.nodeType===Node.ELEMENT_NODE?e:null;var n},Ev=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){let{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){let{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(){let e=new l_([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw Error(`Extend the addTarget method to add your plugin to another plugin's target`)}install(){}uninstall(){}render(){throw Error(`Extend the render method to add your plugin to a DOM element`)}update(){}afterUpdate(){}};function Dv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Ov=0;function kv(e){return`__private_`+ Ov+++`_`+e}var{render:Av}=wv,jv=kv(`updateUI`),Mv=class e extends Ev{constructor(){super(...arguments),Object.defineProperty(this,jv,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=Tv(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return Dv(this,jv)[jv]=function(e){let t=null,n=null;return function(){return n=[...arguments],t||=Promise.resolve().then((()=>(t=null,e(...n)))),t}}((t=>{this.uppy.getPlugin(this.id)&&(Av(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),Av(this.render(this.uppy.getState()),e),this.el=e.firstElementChild,i.appendChild(e),this.onMount(),this.el}let a;if(typeof t==`object`&&t instanceof e)a=t;else if(typeof t==`function`){let e=t;this.uppy.iteratePlugins((t=>{if(t instanceof e)return a=t,!1}))}if(a)return this.uppy.log(`Installing ${r} to ${a.id}`),this.parent=a,this.el=a.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let o=`Invalid target option given to ${r}.`;throw o+=typeof t==`function`?" 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.",Error(o)}update(e){var t,n;this.el!=null&&((t=(n=Dv(this,jv))[jv])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:Nv}=j_,Pv=Cv,Fv=Cv,Iv=Mv,Lv=Ev,Rv=Nv;Pv.Uppy=Fv,Pv.UIPlugin=Iv,Pv.BasePlugin=Lv,Pv.debugLogger=Rv;var zv=class extends Error{constructor(e,t){t===void 0&&(t=null),super(`This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.`),this.cause=e,this.isNetworkError=!0,this.request=t}},Bv=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new zv(e)}))},Vv=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},Hv,Uv,Wv,Gv,Kv,qv=Vv;function Jv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Yv=0;function Xv(e){return`__private_`+ Yv+++`_`+e}async function Zv(e){if(e.status===401)throw new qv;let t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw Error(n)}}return t}var Qv=(Uv=Xv(`getPostResponseFunc`),Wv=Xv(`getUrl`),Gv=Xv(`errorHandler`),Kv=Hv=class e{constructor(e,t){Object.defineProperty(this,Gv,{value:ey}),Object.defineProperty(this,Wv,{value:$v}),Object.defineProperty(this,Uv,{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(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,``)}headers(){let t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){let t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has(`i-am`)&&r.get(`i-am`)!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get(`i-am`)}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Jv(this,Wv)[Wv](e),{method:`OPTIONS`}).then((e=>(e.headers.has(`access-control-allow-headers`)&&(this.allowedHeaders=e.headers.get(`access-control-allow-headers`).split(`,`).map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,`warning`),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Bv(Jv(this,Wv)[Wv](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(Jv(this,Uv)[Uv](t)).then(Zv).catch(Jv(this,Gv)[Gv](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>Bv(Jv(this,Wv)[Wv](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(Jv(this,Uv)[Uv](n)).then(Zv).catch(Jv(this,Gv)[Gv](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>Bv(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(Jv(this,Uv)[Uv](n)).then(Zv).catch(Jv(this,Gv)[Gv](r,e))}},Hv.VERSION=`2.0.4`,Hv.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${Hv.VERSION}`},Kv);function $v(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function ey(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${Jv(this,Wv)[Wv](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var ty={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))},ny,ry,iy,ay,oy,sy,cy;function ly(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var fae=0;function uy(e){return`__private_`+ fae+++`_`+e}var pae=(ny=uy(`queued`),ry=uy(`emitter`),iy=uy(`isOpen`),ay=uy(`socket`),oy=uy(`handleMessage`),sy=Symbol.for(`uppy test: getSocket`),cy=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,ny,{writable:!0,value:[]}),Object.defineProperty(this,ry,{writable:!0,value:d_()}),Object.defineProperty(this,iy,{writable:!0,value:!1}),Object.defineProperty(this,ay,{writable:!0,value:void 0}),Object.defineProperty(this,oy,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return ly(this,iy)[iy]}[sy](){return ly(this,ay)[ay]}[cy](){return ly(this,ny)[ny]}open(){ly(this,ay)[ay]=new WebSocket(this.opts.target),ly(this,ay)[ay].onopen=()=>{for(ly(this,iy)[iy]=!0;ly(this,ny)[ny].length>0&&ly(this,iy)[iy];){let e=ly(this,ny)[ny].shift();this.send(e.action,e.payload)}},ly(this,ay)[ay].onclose=()=>{ly(this,iy)[iy]=!1},ly(this,ay)[ay].onmessage=ly(this,oy)[oy]}close(){var e;(e=ly(this,ay)[ay])==null||e.close()}send(e,t){ly(this,iy)[iy]?ly(this,ay)[ay].send(JSON.stringify({action:e,payload:t})):ly(this,ny)[ny].push({action:e,payload:t})}on(e,t){ly(this,ry)[ry].on(e,t)}emit(e,t){ly(this,ry)[ry].emit(e,t)}once(e,t){ly(this,ry)[ry].once(e,t)}}),mae={RequestClient:Qv,Provider:class extends Qv{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split(`-`).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(` `))(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,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);let t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,`warning`)})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||``}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type=`acquirer`,e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw 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){let n=t.companionAllowedHosts;if(!(typeof n==`string`||Array.isArray(n)||n instanceof RegExp))throw 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||ty}},SearchProvider:class extends Qv{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split(`-`).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(` `))(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}`)}},Socket:pae},dy,fy,hae=ah((function(e,t,n){let{progress:r,bytesUploaded:i,bytesTotal:a}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit(`upload-progress`,n,{uploader:e,bytesUploaded:i,bytesTotal:a}))}),300,{leading:!0,trailing:!0});function py(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var gae=0;function my(e){return`__private_`+ gae+++`_`+e}var hy=(dy=my(`emitter`),fy=my(`events`),class{constructor(e){Object.defineProperty(this,dy,{writable:!0,value:void 0}),Object.defineProperty(this,fy,{writable:!0,value:[]}),py(this,dy)[dy]=e}on(e,t){return py(this,fy)[fy].push([e,t]),py(this,dy)[dy].on(e,t)}remove(){for(let[e,t]of py(this,fy)[fy].splice(0))py(this,dy)[dy].off(e,t)}});function gy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var _ae=0;function _y(e){return`__private_`+ _ae+++`_`+e}var vy=_y(`aliveTimer`),yy=_y(`isDone`),by=_y(`onTimedOut`),xy=_y(`timeout`),Sy=class{constructor(e,t){Object.defineProperty(this,vy,{writable:!0,value:void 0}),Object.defineProperty(this,yy,{writable:!0,value:!1}),Object.defineProperty(this,by,{writable:!0,value:void 0}),Object.defineProperty(this,xy,{writable:!0,value:void 0}),gy(this,xy)[xy]=e,gy(this,by)[by]=t}progress(){gy(this,yy)[yy]||gy(this,xy)[xy]>0&&(clearTimeout(gy(this,vy)[vy]),gy(this,vy)[vy]=setTimeout(gy(this,by)[by],gy(this,xy)[xy]))}done(){gy(this,yy)[yy]||(clearTimeout(gy(this,vy)[vy]),gy(this,vy)[vy]=null,gy(this,yy)[yy]=!0)}};function Cy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var vae=0;function wy(e){return`__private_`+ vae+++`_`+e}function yae(){return Error(`Cancelled`)}var Ty=wy(`activeRequests`),Ey=wy(`queuedHandlers`),Dy=wy(`call`),Oy=wy(`queueNext`),ky=wy(`next`),Ay=wy(`queue`),jy=wy(`dequeue`);function bae(e){Cy(this,Ty)[Ty]+=1;let t,n=!1;try{t=e()}catch(e){throw--Cy(this,Ty)[Ty],e}return{abort:()=>{n||(n=!0,--Cy(this,Ty)[Ty],t(),Cy(this,Oy)[Oy]())},done:()=>{n||(n=!0,--Cy(this,Ty)[Ty],Cy(this,Oy)[Oy]())}}}function xae(){queueMicrotask((()=>Cy(this,ky)[ky]()))}function Sae(){if(Cy(this,Ty)[Ty]>=this.limit||Cy(this,Ey)[Ey].length===0)return;let e=Cy(this,Ey)[Ey].shift(),t=Cy(this,Dy)[Dy](e.fn);e.abort=t.abort,e.done=t.done}function Cae(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{Cy(this,jy)[jy](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=Cy(this,Ey)[Ey].findIndex((e=>n.priority>e.priority));return r===-1?Cy(this,Ey)[Ey].push(n):Cy(this,Ey)[Ey].splice(r,0,n),n}function wae(e){let t=Cy(this,Ey)[Ey].indexOf(e);t!==-1&&Cy(this,Ey)[Ey].splice(t,1)}var Tae={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,jy,{value:wae}),Object.defineProperty(this,Ay,{value:Cae}),Object.defineProperty(this,ky,{value:Sae}),Object.defineProperty(this,Oy,{value:xae}),Object.defineProperty(this,Dy,{value:bae}),Object.defineProperty(this,Ty,{writable:!0,value:0}),Object.defineProperty(this,Ey,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return Cy(this,Ty)[Ty]<this.limit?Cy(this,Dy)[Dy](e):Cy(this,Ay)[Ay](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){var r=[...arguments];let i,a=new Promise(((a,o)=>{i=n.run((()=>{let t,n;try{n=Promise.resolve(e(...r))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?o(t):(i.done(),a(e))}),(e=>{t?o(t):(i.done(),o(e))})),()=>{t=yae()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},My,Ny,Py=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},Eae={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:Dae}=N_,{Provider:Oae,RequestClient:kae,Socket:Aae}=mae,{RateLimitedQueue:jae,internalRateLimitedQueue:Fy}=Tae;function Iy(e,t){let n=t;return n||=Error(`Upload error`),typeof n==`string`&&(n=Error(n)),n instanceof Error||(n=Object.assign(Error(`Upload error`),{data:n})),Py(e)?(n=new zv(n,e),n):(n.request=e,n)}function Ly(e){return e.data.slice(0,e.data.size,e.meta.type)}var Mae=(Ny=My=class extends Ev{constructor(e,t){if(super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=Eae,this.opts={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(t){e.log(t)}return n},getResponseError(e,t){let n=Error(`Upload error`);return Py(t)&&(n=new zv(n,t)),n},validateStatus:e=>e>=200&&e<300,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Fy in this.opts?this.requests=this.opts[Fy]:this.requests=new jae(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){let t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n==`function`?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){let n=new FormData;this.addMetadata(n,e.meta,t);let r=Ly(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){let n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{let t=this.getOptions(e),r=Ly(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){let r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit(`upload-started`,e);let i=r.formData?this.createFormDataUpload(e,r):e.data,a=new XMLHttpRequest;this.uploaderEvents[e.id]=new hy(this.uppy);let o=new Sy(r.timeout,(()=>{a.abort(),c.done();let t=Error(this.i18n(`timedOut`,{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit(`upload-error`,e,t),n(t)})),s=Dae();a.upload.addEventListener(`loadstart`,(()=>{this.uppy.log(`[XHRUpload] ${s} started`)})),a.upload.addEventListener(`progress`,(t=>{this.uppy.log(`[XHRUpload] ${s} progress: ${t.loaded} / ${t.total}`),o.progress(),t.lengthComputable&&this.uppy.emit(`upload-progress`,e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),a.addEventListener(`load`,(i=>{if(this.uppy.log(`[XHRUpload] ${s} finished`),o.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(i.target.status,a.responseText,a)){let n=r.getResponseData(a.responseText,a),o=n[r.responseUrlFieldName],s={status:i.target.status,body:n,uploadURL:o};return this.uppy.emit(`upload-success`,e,s),o&&this.uppy.log(`Download ${e.name} from ${o}`),t(e)}let l=r.getResponseData(a.responseText,a),u=Iy(a,r.getResponseError(a.responseText,a)),d={status:i.target.status,body:l};return this.uppy.emit(`upload-error`,e,u,d),n(u)})),a.addEventListener(`error`,(()=>{this.uppy.log(`[XHRUpload] ${s} errored`),o.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);let t=Iy(a,r.getResponseError(a.responseText,a));return this.uppy.emit(`upload-error`,e,t),n(t)})),a.open(r.method.toUpperCase(),r.endpoint,!0),a.withCredentials=r.withCredentials,r.responseType!==``&&(a.responseType=r.responseType);let c=this.requests.run((()=>{this.uppy.emit(`upload-started`,e);let t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{a.setRequestHeader(e,t.headers[e])})),a.send(i),()=>{o.done(),a.abort()}}));this.onFileRemove(e.id,(()=>{c.abort(),n(Error(`File removed`))})),this.onCancelAll(e.id,(()=>{c.abort(),n(Error(`Upload cancelled`))}))}))}uploadRemote(e){let t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit(`upload-started`,e);let i={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{i[t]=e.meta[t]})),new(e.remote.providerOptions.provider?Oae:kae)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:i,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((i=>{let{token:a}=i,o=new Aae({target:`${function(e){let t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?`ws`:`wss`}://${t}`}(e.remote.companionUrl)}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new hy(this.uppy),this.onFileRemove(e.id,(()=>{o.send(`cancel`,{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{o.send(`cancel`,{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{o.send(`pause`,{}),o.send(`resume`,{})})),this.onRetryAll(e.id,(()=>{o.send(`pause`,{}),o.send(`resume`,{})})),o.on(`progress`,(t=>hae(this,t,e))),o.on(`success`,(r=>{let i=t.getResponseData(r.response.responseText,r.response),a=i[t.responseUrlFieldName],o={status:r.response.status,body:i,uploadURL:a};return this.uppy.emit(`upload-success`,e,o),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),o.on(`error`,(n=>{let i=n.response,a=i?t.getResponseError(i.responseText,i):Object.assign(Error(n.error.message),{cause:n.error});this.uppy.emit(`upload-error`,e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(a)}));let s=this.requests.run((()=>(o.open(),e.isPaused&&o.send(`pause`,{}),()=>o.close())))})).catch((t=>{this.uppy.emit(`upload-error`,e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{let{endpoint:r}=this.opts,{method:i}=this.opts,a=this.uppy.getState().xhrUpload,o=this.createBundledUpload(e,{...this.opts,...a||{}}),s=new XMLHttpRequest,c=new Sy(this.opts.timeout,(()=>{s.abort();let e=Error(this.i18n(`timedOut`,{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit(`upload-error`,e,t)}))};s.upload.addEventListener(`loadstart`,(()=>{this.uppy.log(`[XHRUpload] started uploading bundle`),c.progress()})),s.upload.addEventListener(`progress`,(t=>{c.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit(`upload-progress`,e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),s.addEventListener(`load`,(r=>{if(c.done(),this.opts.validateStatus(r.target.status,s.responseText,s)){let n=this.opts.getResponseData(s.responseText,s),i={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit(`upload-success`,e,i)})),t()}let i=this.opts.getResponseError(s.responseText,s)||Error(`Upload error`);return i.request=s,l(i),n(i)})),s.addEventListener(`error`,(()=>{c.done();let e=this.opts.getResponseError(s.responseText,s)||Error(`Upload error`);return l(e),n(e)})),this.uppy.on(`cancel-all`,(()=>{c.done(),s.abort()})),s.open(i.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==``&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{s.setRequestHeader(e,this.opts.headers[e])})),s.send(o),e.forEach((e=>{this.uppy.emit(`upload-started`,e)}))}))}uploadFiles(e){return function(e){let t=[],n=[];function r(e){t.push(e)}function i(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,i)))).then((()=>({successful:t,failed:n})))}(e.map(((t,n)=>{let r=parseInt(n,10)+1,i=e.length;return t.error?Promise.reject(Error(t.error)):t.isRemote?this.uploadRemote(t,r,i):this.upload(t,r,i)})))}onFileRemove(e,t){this.uploaderEvents[e].on(`file-removed`,(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on(`upload-retry`,(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on(`retry-all`,(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on(`cancel-all`,(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(e.length===0)return this.uppy.log(`[XHRUpload] No files to upload!`),Promise.resolve();this.opts.limit!==0||this.opts[Fy]||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...`);let t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers==`function`)throw 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){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},My.VERSION=`2.0.6`,Ny),Ry=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function zy(e){var t={exports:{}};return e(t,t.exports),t.exports}var By,Vy,Hy=function(e){return e&&e.Math==Math&&e},K=Hy(typeof globalThis==`object`&&globalThis)||Hy(typeof window==`object`&&window)||Hy(typeof self==`object`&&self)||Hy(typeof Ry==`object`&&Ry)||function(){return this}()||Function(`return this`)(),Nae=Object.defineProperty,Uy=function(e,t){try{Nae(K,e,{value:t,configurable:!0,writable:!0})}catch{K[e]=t}return t},Wy=K[`__core-js_shared__`]||Uy(`__core-js_shared__`,{}),Gy=zy((function(e){(e.exports=function(e,t){return Wy[e]||(Wy[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ky=Function.prototype,qy=Ky.bind,Jy=Ky.call,Pae=qy&&qy.bind(Jy),q=qy?function(e){return e&&Pae(Jy,e)}:function(e){return e&&function(){return Jy.apply(e,arguments)}},Fae=K.TypeError,Yy=function(e){if(e==null)throw Fae(`Can't call method on `+e);return e},Iae=K.Object,Xy=function(e){return Iae(Yy(e))},Lae=q({}.hasOwnProperty),Zy=Object.hasOwn||function(e,t){return Lae(Xy(e),t)},Rae=0,zae=Math.random(),Bae=q(1 .toString),Qy=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Bae(++Rae+zae,36)},$y=function(e){return typeof e==`function`},Vae=function(e){return $y(e)?e:void 0},eb=function(e,t){return arguments.length<2?Vae(K[e]):K[e]&&K[e][t]},tb=eb(`navigator`,`userAgent`)||``,nb=K.process,rb=K.Deno,ib=nb&&nb.versions||rb&&rb.version,ab=ib&&ib.v8;ab&&(Vy=(By=ab.split(`.`))[0]>0&&By[0]<4?1:+(By[0]+By[1])),!Vy&&tb&&(!(By=tb.match(/Edge\/(\d+)/))||By[1]>=74)&&(By=tb.match(/Chrome\/(\d+)/))&&(Vy=+By[1]);var ob=Vy,sb=function(e){try{return!!e()}catch{return!0}},cb=!!Object.getOwnPropertySymbols&&!sb((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ob&&ob<41})),lb=cb&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,ub=Gy(`wks`),db=K.Symbol,fb=db&&db.for,Hae=lb?db:db&&db.withoutSetter||Qy,pb=function(e){if(!Zy(ub,e)||!cb&&typeof ub[e]!=`string`){var t=`Symbol.`+e;cb&&Zy(db,e)?ub[e]=db[e]:ub[e]=lb&&fb?fb(t):Hae(t)}return ub[e]},mb={};mb[pb(`toStringTag`)]=`z`;var hb=String(mb)===`[object z]`,gb=!sb((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),_b=function(e){return typeof e==`object`?e!==null:$y(e)},vb=K.document,Uae=_b(vb)&&_b(vb.createElement),yb=function(e){return Uae?vb.createElement(e):{}},bb=!gb&&!sb((function(){return Object.defineProperty(yb(`div`),`a`,{get:function(){return 7}}).a!=7})),Wae=K.String,Gae=K.TypeError,xb=function(e){if(_b(e))return e;throw Gae(Wae(e)+` is not an object`)},Sb=Function.prototype.call,Cb=Sb.bind?Sb.bind(Sb):function(){return Sb.apply(Sb,arguments)},wb=q({}.isPrototypeOf),Kae=K.Object,Tb=lb?function(e){return typeof e==`symbol`}:function(e){var t=eb(`Symbol`);return $y(t)&&wb(t.prototype,Kae(e))},qae=K.String,Eb=function(e){try{return qae(e)}catch{return`Object`}},Jae=K.TypeError,Db=function(e){if($y(e))return e;throw Jae(Eb(e)+` is not a function`)},Ob=function(e,t){var n=e[t];return n==null?void 0:Db(n)},Yae=K.TypeError,Xae=K.TypeError,Zae=pb(`toPrimitive`),kb=function(e){var t=function(e,t){if(!_b(e)||Tb(e))return e;var n,r=Ob(e,Zae);if(r){if(t===void 0&&(t=`default`),n=Cb(r,e,t),!_b(n)||Tb(n))return n;throw Xae(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&$y(n=e.toString)&&!_b(r=Cb(n,e))||$y(n=e.valueOf)&&!_b(r=Cb(n,e))||t!==`string`&&$y(n=e.toString)&&!_b(r=Cb(n,e)))return r;throw Yae(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Tb(t)?t:t+``},Qae=K.TypeError,Ab=Object.defineProperty,jb={f:gb?Ab:function(e,t,n){if(xb(e),t=kb(t),xb(n),bb)try{return Ab(e,t,n)}catch{}if(`get`in n||`set`in n)throw Qae(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Mb=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nb=gb?function(e,t,n){return jb.f(e,t,Mb(1,n))}:function(e,t,n){return e[t]=n,e},$ae=q(Function.toString);$y(Wy.inspectSource)||(Wy.inspectSource=function(e){return $ae(e)});var Pb,Fb,Ib,Lb=Wy.inspectSource,Rb=K.WeakMap,zb=$y(Rb)&&/native code/.test(Lb(Rb)),Bb=Gy(`keys`),Vb=function(e){return Bb[e]||(Bb[e]=Qy(e))},Hb={},Ub=K.TypeError,eoe=K.WeakMap;if(zb||Wy.state){var Wb=Wy.state||=new eoe,toe=q(Wb.get),Gb=q(Wb.has),noe=q(Wb.set);Pb=function(e,t){if(Gb(Wb,e))throw new Ub(`Object already initialized`);return t.facade=e,noe(Wb,e,t),t},Fb=function(e){return toe(Wb,e)||{}},Ib=function(e){return Gb(Wb,e)}}else{var Kb=Vb(`state`);Hb[Kb]=!0,Pb=function(e,t){if(Zy(e,Kb))throw new Ub(`Object already initialized`);return t.facade=e,Nb(e,Kb,t),t},Fb=function(e){return Zy(e,Kb)?e[Kb]:{}},Ib=function(e){return Zy(e,Kb)}}var qb={set:Pb,get:Fb,has:Ib,enforce:function(e){return Ib(e)?Fb(e):Pb(e,{})},getterFor:function(e){return function(t){var n;if(!_b(t)||(n=Fb(t)).type!==e)throw Ub(`Incompatible receiver, `+e+` required`);return n}}},Jb=Function.prototype,roe=gb&&Object.getOwnPropertyDescriptor,Yb=Zy(Jb,`name`),Xb={EXISTS:Yb,PROPER:Yb&&function(){}.name===`something`,CONFIGURABLE:Yb&&(!gb||gb&&roe(Jb,`name`).configurable)},Zb=zy((function(e){var t=Xb.CONFIGURABLE,n=qb.get,r=qb.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;$y(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Zy(a,`name`)||t&&a.name!==d)&&Nb(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===K?l?e[n]=a:Uy(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Nb(e,n,a))})(Function.prototype,`toString`,(function(){return $y(this)&&n(this).source||Lb(this)}))})),ioe=q({}.toString),aoe=q(``.slice),Qb=function(e){return aoe(ioe(e),8,-1)},ooe=pb(`toStringTag`),soe=K.Object,coe=Qb(function(){return arguments}())==`Arguments`,$b=hb?Qb:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=soe(e),ooe))==`string`?n:coe?Qb(t):(r=Qb(t))==`Object`&&$y(t.callee)?`Arguments`:r},loe=hb?{}.toString:function(){return`[object `+$b(this)+`]`};hb||Zb(Object.prototype,`toString`,loe,{unsafe:!0});var ex={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},tx=yb(`span`).classList,nx=tx&&tx.constructor&&tx.constructor.prototype,rx=nx===Object.prototype?void 0:nx,ix=q(q.bind),ax=function(e,t){return Db(e),t===void 0?e:ix?ix(e,t):function(){return e.apply(t,arguments)}},ox=K.Object,uoe=q(``.split),sx=sb((function(){return!ox(`z`).propertyIsEnumerable(0)}))?function(e){return Qb(e)==`String`?uoe(e,``):ox(e)}:ox,doe=Math.ceil,foe=Math.floor,cx=function(e){var t=+e;return t!=t||t===0?0:(t>0?foe:doe)(t)},poe=Math.min,lx=function(e){return e>0?poe(cx(e),9007199254740991):0},ux=function(e){return lx(e.length)},dx=Array.isArray||function(e){return Qb(e)==`Array`},fx=function(){},moe=[],px=eb(`Reflect`,`construct`),mx=/^\s*(?:class|function)\b/,hoe=q(mx.exec),goe=!mx.exec(fx),hx=function(e){if(!$y(e))return!1;try{return px(fx,moe,e),!0}catch{return!1}},gx=!px||sb((function(){var e;return hx(hx.call)||!hx(Object)||!hx((function(){e=!0}))||e}))?function(e){if(!$y(e))return!1;switch($b(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return goe||!!hoe(mx,Lb(e))}:hx,_oe=pb(`species`),_x=K.Array,vx=function(e,t){return new(function(e){var t;return dx(e)&&(t=e.constructor,(gx(t)&&(t===_x||dx(t.prototype))||_b(t)&&(t=t[_oe])===null)&&(t=void 0)),t===void 0?_x:t}(e))(t===0?0:t)},yx=q([].push),bx=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=Xy(c),h=sx(m),g=ax(l,u),_=ux(h),v=0,y=d||vx,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:yx(b,f)}else switch(e){case 4:return!1;case 7:yx(b,f)}return a?-1:r||i?i:b}},xx={forEach:bx(0),map:bx(1),filter:bx(2),some:bx(3),every:bx(4),find:bx(5),findIndex:bx(6),filterReject:bx(7)},Sx=function(e,t){var n=[][e];return!!n&&sb((function(){n.call(null,t||function(){throw 1},1)}))},voe=xx.forEach,Cx=Sx(`forEach`)?[].forEach:function(e){return voe(this,e,arguments.length>1?arguments[1]:void 0)},wx=function(e){if(e&&e.forEach!==Cx)try{Nb(e,`forEach`,Cx)}catch{e.forEach=Cx}};for(var Tx in ex)ex[Tx]&&wx(K[Tx]&&K[Tx].prototype);wx(rx);var Ex={}.propertyIsEnumerable,Dx=Object.getOwnPropertyDescriptor,Ox={f:Dx&&!Ex.call({1:2},1)?function(e){var t=Dx(this,e);return!!t&&t.enumerable}:Ex},kx=function(e){return sx(Yy(e))},Ax=Object.getOwnPropertyDescriptor,jx={f:gb?Ax:function(e,t){if(e=kx(e),t=kb(t),bb)try{return Ax(e,t)}catch{}if(Zy(e,t))return Mb(!Cb(Ox.f,e,t),e[t])}},yoe=Math.max,boe=Math.min,Mx=function(e,t){var n=cx(e);return n<0?yoe(n+t,0):boe(n,t)},Nx=function(e){return function(t,n,r){var i,a=kx(t),o=ux(a),s=Mx(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Px={includes:Nx(!0),indexOf:Nx(!1)},xoe=Px.indexOf,Fx=q([].push),Ix=function(e,t){var n,r=kx(e),i=0,a=[];for(n in r)!Zy(Hb,n)&&Zy(r,n)&&Fx(a,n);for(;t.length>i;)Zy(r,n=t[i++])&&(~xoe(a,n)||Fx(a,n));return a},Lx=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Soe=Lx.concat(`length`,`prototype`),Rx={f:Object.getOwnPropertyNames||function(e){return Ix(e,Soe)}},zx={f:Object.getOwnPropertySymbols},Coe=q([].concat),woe=eb(`Reflect`,`ownKeys`)||function(e){var t=Rx.f(xb(e)),n=zx.f;return n?Coe(t,n(e)):t},Toe=function(e,t){for(var n=woe(t),r=jb.f,i=jx.f,a=0;a<n.length;a++){var o=n[a];Zy(e,o)||r(e,o,i(t,o))}},Eoe=/#|\.prototype\./,Bx=function(e,t){var n=Ooe[Doe(e)];return n==Aoe||n!=koe&&($y(t)?sb(t):!!t)},Doe=Bx.normalize=function(e){return String(e).replace(Eoe,`.`).toLowerCase()},Ooe=Bx.data={},koe=Bx.NATIVE=`N`,Aoe=Bx.POLYFILL=`P`,Vx=Bx,joe=jx.f,Hx=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?K:l?K[s]||Uy(s,{}):(K[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=joe(n,r))&&o.value:n[r],!Vx(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Toe(a,i)}(e.sham||i&&i.sham)&&Nb(a,`sham`,!0),Zb(n,r,a,e)}},Ux=Object.keys||function(e){return Ix(e,Lx)},Moe=sb((function(){Ux(1)}));function Wx(e){return Object.prototype.toString.call(e)===`[object Object]`}Hx({target:`Object`,stat:!0,forced:Moe},{keys:function(e){return Ux(Xy(e))}});var Noe={isHistory(e){return!1!==Wx(t=e)&&((n=t.constructor)===void 0||!1!==Wx(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Rf.isOperationList(e.redos[0]))&&(e.undos.length===0||Rf.isOperationList(e.undos[0]));var t,n,r}},Gx=new WeakMap,Kx=new WeakMap,qx={isHistoryEditor:e=>Noe.isHistory(e.history)&&R.isEditor(e),isMerging:e=>Kx.get(e),isSaving:e=>Gx.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=qx.isMerging(e);Kx.set(e,!1),t(),Kx.set(e,n)},withoutSaving(e,t){var n=qx.isSaving(e);Gx.set(e,!1),t(),Gx.set(e,n)}},Poe=K.String,Jx=function(e){if($b(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Poe(e)},Yx=function(){var e=xb(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},Foe=Xb.PROPER,Xx=RegExp.prototype,Zx=Xx.toString,Ioe=q(Yx),Loe=sb((function(){return Zx.call({source:`a`,flags:`b`})!=`/a/b`})),Roe=Foe&&Zx.name!=`toString`;(Loe||Roe)&&Zb(RegExp.prototype,`toString`,(function(){var e=xb(this),t=Jx(e.source),n=e.flags;return`/`+t+`/`+Jx(n===void 0&&wb(Xx,e)&&!(`flags`in Xx)?Ioe(e):n)}),{unsafe:!0});var Qx,zoe=gb?Object.defineProperties:function(e,t){xb(e);for(var n,r=kx(t),i=Ux(t),a=i.length,o=0;a>o;)jb.f(e,n=i[o++],r[n]);return e},$x=eb(`document`,`documentElement`),eS=Vb(`IE_PROTO`),tS=function(){},nS=function(e){return`<script>`+e+`<\/script>`},rS=function(e){e.write(nS(``)),e.close();var t=e.parentWindow.Object;return e=null,t},iS=function(){try{Qx=new ActiveXObject(`htmlfile`)}catch{}var e,t;iS=typeof document<`u`?document.domain&&Qx?rS(Qx):((t=yb(`iframe`)).style.display=`none`,$x.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(nS(`document.F=Object`)),e.close(),e.F):rS(Qx);for(var n=Lx.length;n--;)delete iS.prototype[Lx[n]];return iS()};Hb[eS]=!0;var aS=Object.create||function(e,t){var n;return e===null?n=iS():(tS.prototype=xb(e),n=new tS,tS.prototype=null,n[eS]=e),t===void 0?n:zoe(n,t)},oS=pb(`unscopables`),sS=Array.prototype;sS[oS]??jb.f(sS,oS,{configurable:!0,value:aS(null)});var cS=function(e){sS[oS][e]=!0},Boe=Px.includes;Hx({target:`Array`,proto:!0},{includes:function(e){return Boe(this,e,arguments.length>1?arguments[1]:void 0)}}),cS(`includes`);var Voe=pb(`match`),lS=function(e){var t;return _b(e)&&((t=e[Voe])===void 0?Qb(e)==`RegExp`:!!t)},Hoe=K.TypeError,uS=function(e){if(lS(e))throw Hoe(`The method doesn't accept regular expressions`);return e},Uoe=pb(`match`),dS=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[Uoe]=!1,`/./`[e](t)}catch{}}return!1},Woe=q(``.indexOf);Hx({target:`String`,proto:!0,forced:!dS(`includes`)},{includes:function(e){return!!~Woe(Jx(Yy(this)),Jx(uS(e)),arguments.length>1?arguments[1]:void 0)}});var Goe=/"/g,Koe=q(``.replace);Hx({target:`String`,proto:!0,forced:sb((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=Jx(Yy(this)),r=`<a`,(r+=` name="`+Koe(Jx(t),Goe,`"`)+`"`)+`>`+n+`</a>`;var t,n,r}});var fS=function(e,t,n){var r,i;xb(e);try{if(!(r=Ob(e,`return`))){if(t===`throw`)throw n;return n}r=Cb(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return xb(r),n},qoe=function(e,t,n,r){try{return r?t(xb(n)[0],n[1]):t(n)}catch(t){fS(e,`throw`,t)}},pS={},Joe=pb(`iterator`),Yoe=Array.prototype,mS=function(e){return e!==void 0&&(pS.Array===e||Yoe[Joe]===e)},hS=function(e,t,n){var r=kb(t);r in e?jb.f(e,r,Mb(0,n)):e[r]=n},Xoe=pb(`iterator`),gS=function(e){if(e!=null)return Ob(e,Xoe)||Ob(e,`@@iterator`)||pS[$b(e)]},Zoe=K.TypeError,_S=function(e,t){var n=arguments.length<2?gS(e):t;if(Db(n))return xb(Cb(n,e));throw Zoe(Eb(e)+` is not iterable`)},vS=K.Array,yS=pb(`iterator`),bS=!1;try{var Qoe=0,xS={next:function(){return{done:!!Qoe++}},return:function(){bS=!0}};xS[yS]=function(){return this},Array.from(xS,(function(){throw 2}))}catch{}var SS=function(e,t){if(!t&&!bS)return!1;var n=!1;try{var r={};r[yS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};Hx({target:`Array`,stat:!0,forced:!SS((function(e){Array.from(e)}))},{from:function(e){var t=Xy(e),n=gx(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=ax(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=gS(t),p=0;if(!f||this==vS&&mS(f))for(o=ux(t),s=n?new this(o):vS(o);o>p;p++)d=a?i(t[p],p):t[p],hS(s,p,d);else for(u=(l=_S(t,f)).next,s=n?new this:[];!(c=Cb(u,l)).done;p++)d=a?qoe(l,i,[c.value,p],!0):c.value,hS(s,p,d);return s.length=p,s}});var CS,wS,TS,$oe=q(``.charAt),ES=q(``.charCodeAt),ese=q(``.slice),DS=function(e){return function(t,n){var r,i,a=Jx(Yy(t)),o=cx(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=ES(a,o))<55296||r>56319||o+1===s||(i=ES(a,o+1))<56320||i>57343?e?$oe(a,o):r:e?ese(a,o,o+2):i-56320+(r-55296<<10)+65536}},OS={codeAt:DS(!1),charAt:DS(!0)},tse=!sb((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),kS=Vb(`IE_PROTO`),AS=K.Object,nse=AS.prototype,jS=tse?AS.getPrototypeOf:function(e){var t=Xy(e);if(Zy(t,kS))return t[kS];var n=t.constructor;return $y(n)&&t instanceof n?n.prototype:t instanceof AS?nse:null},MS=pb(`iterator`),NS=!1;[].keys&&(`next`in(TS=[].keys())?(wS=jS(jS(TS)))!==Object.prototype&&(CS=wS):NS=!0),(CS==null||sb((function(){var e={};return CS[MS].call(e)!==e})))&&(CS={}),$y(CS[MS])||Zb(CS,MS,(function(){return this}));var PS={IteratorPrototype:CS,BUGGY_SAFARI_ITERATORS:NS},rse=jb.f,FS=pb(`toStringTag`),IS=function(e,t,n){e&&!Zy(e=n?e:e.prototype,FS)&&rse(e,FS,{configurable:!0,value:t})},ise=PS.IteratorPrototype,ase=function(){return this},ose=K.String,sse=K.TypeError,LS=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=q(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return xb(n),function(e){if(typeof e==`object`||$y(e))return e;throw sse(`Can't set `+ose(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),cse=Xb.PROPER,lse=Xb.CONFIGURABLE,RS=PS.IteratorPrototype,zS=PS.BUGGY_SAFARI_ITERATORS,BS=pb(`iterator`),use=function(){return this},VS=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=aS(ise,{next:Mb(1,n)}),IS(e,i,!1),pS[i]=ase})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!zS&&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)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[BS]||p[`@@iterator`]||i&&p[i],h=!zS&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=jS(g.call(new e)))!==Object.prototype&&s.next&&(jS(s)!==RS&&(LS?LS(s,RS):$y(s[BS])||Zb(s,BS,use)),IS(s,d,!0)),cse&&i==`values`&&m&&m.name!==`values`&&(lse?Nb(p,`name`,`values`):(f=!0,h=function(){return Cb(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(zS||f||!(l in p))&&Zb(p,l,c[l]);else Hx({target:t,proto:!0,forced:zS||f},c);return p[BS]!==h&&Zb(p,BS,h,{name:i}),pS[t]=h,c},dse=OS.charAt,fse=qb.set,pse=qb.getterFor(`String Iterator`);VS(String,`String`,(function(e){fse(this,{type:`String Iterator`,string:Jx(e),index:0})}),(function(){var e,t=pse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dse(n,r),t.index+=e.length,{value:e,done:!1})}));var HS,mse=jx.f,US=q(``.endsWith),hse=q(``.slice),gse=Math.min,WS=dS(`endsWith`);Hx({target:`String`,proto:!0,forced:!!(WS||(HS=mse(String.prototype,`endsWith`),!HS||HS.writable))&&!WS},{endsWith:function(e){var t=Jx(Yy(this));uS(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:gse(lx(n),r),a=Jx(e);return US?US(t,a,i):hse(t,i-a.length,i)===a}});var _se=q([].join),vse=sx!=Object,yse=Sx(`join`,`,`);Hx({target:`Array`,proto:!0,forced:vse||!yse},{join:function(e){return _se(kx(this),e===void 0?`,`:e)}});var bse=pb(`species`),GS=function(e){return ob>=51||!sb((function(){var t=[];return(t.constructor={})[bse]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},xse=xx.map;Hx({target:`Array`,proto:!0,forced:!GS(`map`)},{map:function(e){return xse(this,e,arguments.length>1?arguments[1]:void 0)}});var KS=K.RegExp,qS=sb((function(){var e=KS(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Sse=qS||sb((function(){return!KS(`a`,`y`).sticky})),JS={BROKEN_CARET:qS||sb((function(){var e=KS(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Sse,UNSUPPORTED_Y:qS},Cse=K.RegExp,YS=sb((function(){var e=Cse(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
16
|
+
`)&&e.flags===`s`)})),wse=K.RegExp,XS=sb((function(){var e=wse(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Tse=qb.get,Ese=Gy(`native-string-replace`,String.prototype.replace),ZS=RegExp.prototype.exec,QS=ZS,Dse=q(``.charAt),Ose=q(``.indexOf),kse=q(``.replace),$S=q(``.slice),eC=function(){var e=/a/,t=/b*/g;return Cb(ZS,e,`a`),Cb(ZS,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),tC=JS.BROKEN_CARET,nC=/()??/.exec(``)[1]!==void 0;(eC||nC||tC||YS||XS)&&(QS=function(e){var t,n,r,i,a,o,s,c=this,l=Tse(c),u=Jx(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Cb(QS,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=tC&&c.sticky,m=Cb(Yx,c),h=c.source,g=0,_=u;if(p&&(m=kse(m,`y`,``),Ose(m,`g`)===-1&&(m+=`g`),_=$S(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Dse(u,c.lastIndex-1)!==`
|
|
17
|
+
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),nC&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),eC&&(r=c.lastIndex),i=Cb(ZS,p?n:c,_),p?i?(i.input=$S(i.input,g),i[0]=$S(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:eC&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),nC&&i&&i.length>1&&Cb(Ese,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=aS(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var rC=QS;Hx({target:`RegExp`,proto:!0,forced:/./.exec!==rC},{exec:rC});var iC=Function.prototype,aC=iC.apply,Ase=iC.bind,oC=iC.call,sC=typeof Reflect==`object`&&Reflect.apply||(Ase?oC.bind(aC):function(){return oC.apply(aC,arguments)}),jse=pb(`species`),cC=RegExp.prototype,lC=function(e,t,n,r){var i=pb(e),a=!sb((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!sb((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[jse]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=q(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=q(e),c=t.exec;return c===rC||c===cC.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Zb(String.prototype,e,c[0]),Zb(cC,i,c[1])}r&&Nb(cC[i],`sham`,!0)},Mse=OS.charAt,uC=function(e,t,n){return t+(n?Mse(e,t).length:1)},Nse=Math.floor,dC=q(``.charAt),Pse=q(``.replace),fC=q(``.slice),Fse=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ise=/\$([$&'`]|\d{1,2})/g,Lse=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Ise;return i!==void 0&&(i=Xy(i),c=Fse),Pse(a,c,(function(a,c){var l;switch(dC(c,0)){case`$`:return`$`;case`&`:return e;case"`":return fC(t,0,n);case`'`:return fC(t,o);case`<`:l=i[fC(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Nse(u/10);return d===0?a:d<=s?r[d-1]===void 0?dC(c,1):r[d-1]+dC(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Rse=K.TypeError,pC=function(e,t){var n=e.exec;if($y(n)){var r=Cb(n,e,t);return r!==null&&xb(r),r}if(Qb(e)===`RegExp`)return Cb(rC,e,t);throw Rse(`RegExp#exec called on incompatible receiver`)},mC=pb(`replace`),zse=Math.max,Bse=Math.min,Vse=q([].concat),hC=q([].push),gC=q(``.indexOf),_C=q(``.slice),Hse=`a`.replace(/./,`$0`)===`$0`,vC=!!/./[mC]&&/./[mC](`a`,`$0`)===``;lC(`replace`,(function(e,t,n){var r=vC?`$`:`$0`;return[function(e,n){var r=Yy(this),i=e==null?void 0:Ob(e,mC);return i?Cb(i,e,r,n):Cb(t,Jx(r),e,n)},function(e,i){var a=xb(this),o=Jx(e);if(typeof i==`string`&&gC(i,r)===-1&&gC(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=$y(i);c||(i=Jx(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=pC(a,o);if(f===null||(hC(d,f),!l))break;Jx(f[0])===``&&(a.lastIndex=uC(o,lx(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=Jx((f=d[g])[0]),v=zse(Bse(cx(f.index),o.length),0),y=[],b=1;b<f.length;b++)hC(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Vse([_],y,v,o);x!==void 0&&hC(S,x);var C=Jx(sC(i,void 0,S))}else C=Lse(_,o,v,y,x,i);v>=h&&(m+=_C(o,h,v)+C,h=v+_.length)}return m+_C(o,h)}]}),!!sb((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Hse||vC);var yC=function(e,t){return yC=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])},yC(e,t)};function bC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}yC(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var xC=function(){return xC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xC.apply(this,arguments)};function SC(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function CC(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function wC(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var Use=0,TC=function(){this.id=``+ Use++},Wse=qb.set,Gse=qb.getterFor(`Array Iterator`),EC=VS(Array,`Array`,(function(e,t){Wse(this,{type:`Array Iterator`,target:kx(e),index:0,kind:t})}),(function(){var e=Gse(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);pS.Arguments=pS.Array,cS(`keys`),cS(`values`),cS(`entries`);var DC=function(e,t,n){for(var r in t)Zb(e,r,t[r],n);return e},Kse=K.Array,qse=Math.max,OC=function(e,t,n){for(var r=ux(e),i=Mx(t,r),a=Mx(n===void 0?r:n,r),o=Kse(qse(a-i,0)),s=0;i<a;i++,s++)hS(o,s,e[i]);return o.length=s,o},kC=Rx.f,AC=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jse={f:function(e){return AC&&Qb(e)==`Window`?function(e){try{return kC(e)}catch{return OC(AC)}}(e):kC(kx(e))}},jC=sb((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),MC=Object.isExtensible,NC=sb((function(){MC(1)}))||jC?function(e){return!!_b(e)&&(!jC||Qb(e)!=`ArrayBuffer`)&&(!MC||MC(e))}:MC,Yse=!sb((function(){return Object.isExtensible(Object.preventExtensions({}))})),PC=zy((function(e){var t=jb.f,n=!1,r=Qy(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Rx.f,t=q([].splice),i={};i[r]=1,e(i).length&&(Rx.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},Hx({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Jse.f}))},fastKey:function(e,t){if(!_b(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!Zy(e,r)){if(!NC(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!Zy(e,r)){if(!NC(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Yse&&n&&NC(e)&&!Zy(e,r)&&a(e),e}};Hb[r]=!0})),Xse=K.TypeError,FC=function(e,t){this.stopped=e,this.result=t},IC=FC.prototype,LC=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=ax(t,u),h=function(e){return r&&fS(r,`normal`,e),new FC(!0,e)},g=function(e){return d?(xb(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=gS(e)))throw Xse(Eb(e)+` is not iterable`);if(mS(i)){for(a=0,o=ux(e);o>a;a++)if((s=g(e[a]))&&wb(IC,s))return s;return new FC(!1)}r=_S(e,i)}for(c=r.next;!(l=Cb(c,r)).done;){try{s=g(l.value)}catch(e){fS(r,`throw`,e)}if(typeof s==`object`&&s&&wb(IC,s))return s}return new FC(!1)},Zse=K.TypeError,RC=function(e,t){if(wb(t,e))return e;throw Zse(`Incorrect invocation`)},zC=function(e,t,n){var r,i;return LS&&$y(r=t.constructor)&&r!==n&&_b(i=r.prototype)&&i!==n.prototype&&LS(e,i),e},BC=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=K[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=q(s[e]);Zb(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!_b(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!_b(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!_b(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(Vx(e,!$y(o)||!(i||s.forEach&&!sb((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),PC.enable();else if(Vx(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=sb((function(){d.has(1)})),m=SS((function(e){new o(e)})),h=!i&&sb((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){RC(e,s);var n=zC(new o,e,c);return t!=null&&LC(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,Hx({global:!0,forced:c!=o},l),IS(c,e),i||n.setStrong(c,e,r),c},VC=PC.getWeakData,Qse=qb.set,$se=qb.getterFor,ece=xx.find,tce=xx.findIndex,nce=q([].splice),rce=0,HC=function(e){return e.frozen||=new UC},UC=function(){this.entries=[]},WC=function(e,t){return ece(e.entries,(function(e){return e[0]===t}))};UC.prototype={get:function(e){var t=WC(this,e);if(t)return t[1]},has:function(e){return!!WC(this,e)},set:function(e,t){var n=WC(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=tce(this.entries,(function(t){return t[0]===e}));return~t&&nce(this.entries,t,1),!!~t}};var GC,KC={getConstructor:function(e,t,n,r){var i=e((function(e,i){RC(e,a),Qse(e,{type:t,id:rce++,frozen:void 0}),i!=null&&LC(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=$se(t),s=function(e,t,n){var r=o(e),i=VC(xb(t),!0);return!0===i?HC(r).set(t,n):i[r.id]=n,e};return DC(a,{delete:function(e){var t=o(this);if(!_b(e))return!1;var n=VC(e);return!0===n?HC(t).delete(e):n&&Zy(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!_b(e))return!1;var n=VC(e);return!0===n?HC(t).has(e):n&&Zy(n,t.id)}}),DC(a,n?{get:function(e){var t=o(this);if(_b(e)){var n=VC(e);return!0===n?HC(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},qC=qb.enforce,ice=!K.ActiveXObject&&`ActiveXObject`in K,JC=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ace=BC(`WeakMap`,JC,KC);if(zb&&ice){GC=KC.getConstructor(JC,`WeakMap`,!0),PC.enable();var YC=ace.prototype,XC=q(YC.delete),ZC=q(YC.has),QC=q(YC.get),$C=q(YC.set);DC(YC,{delete:function(e){if(_b(e)&&!NC(e)){var t=qC(this);return t.frozen||=new GC,XC(this,e)||t.frozen.delete(e)}return XC(this,e)},has:function(e){if(_b(e)&&!NC(e)){var t=qC(this);return t.frozen||=new GC,ZC(this,e)||t.frozen.has(e)}return ZC(this,e)},get:function(e){if(_b(e)&&!NC(e)){var t=qC(this);return t.frozen||=new GC,ZC(this,e)?QC(this,e):t.frozen.get(e)}return QC(this,e)},set:function(e,t){if(_b(e)&&!NC(e)){var n=qC(this);n.frozen||=new GC,ZC(this,e)?$C(this,e,t):n.frozen.set(e,t)}else $C(this,e,t);return this}})}var ew=pb(`iterator`),tw=pb(`toStringTag`),nw=EC.values,rw=function(e,t){if(e){if(e[ew]!==nw)try{Nb(e,ew,nw)}catch{e[ew]=nw}if(e[tw]||Nb(e,tw,t),ex[t]){for(var n in EC)if(e[n]!==EC[n])try{Nb(e,n,EC[n])}catch{e[n]=EC[n]}}}};for(var iw in ex)rw(K[iw]&&K[iw].prototype,iw);rw(rx,`DOMTokenList`);var aw=new WeakMap,ow=new WeakMap,sw=new WeakMap,cw=new WeakMap,lw=new WeakMap,uw=new WeakMap,dw=new WeakMap,fw=new WeakMap,pw=new WeakMap,mw=new WeakMap,hw=new WeakMap,gw=new WeakMap,_w=new WeakMap,vw=new WeakMap,yw=new WeakMap,bw=new WeakMap,xw=new WeakMap,Sw=new WeakMap,Cw=new WeakMap,ww=new WeakMap,Tw=new WeakMap,Ew=new WeakMap,Dw=new WeakMap,Ow=new WeakMap,kw=new WeakMap,oce=xx.find,Aw=!0;`find`in[]&&[,].find((function(){Aw=!1})),Hx({target:`Array`,proto:!0,forced:Aw},{find:function(e){return oce(this,e,arguments.length>1?arguments[1]:void 0)}}),cS(`find`),Hx({global:!0},{globalThis:K});var sce=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];vm&&(W.fn.css=vm),wm&&(W.fn.append=wm),im&&(W.fn.addClass=im),am&&(W.fn.removeClass=am),om&&(W.fn.hasClass=om),dm&&(W.fn.on=dm),Pm&&(W.fn.focus=Pm),sm&&(W.fn.attr=sm),cm&&(W.fn.removeAttr=cm),gm&&(W.fn.hide=gm),_m&&(W.fn.show=_m),hm&&(W.fn.offset=hm),pm&&(W.fn.width=pm),mm&&(W.fn.height=mm),Em&&(W.fn.parent=Em),Dm&&(W.fn.parents=Dm),Cm&&(W.fn.is=Cm),lm&&(W.fn.dataset=lm),um&&(W.fn.val=um),Sm&&(W.fn.text=Sm),xm&&(W.fn.html=xm),km&&(W.fn.children=km),Am&&(W.fn.remove=Am),Om&&(W.fn.find=Om),ym&&(W.fn.each=ym),jm&&(W.fn.empty=jm);var jw,Mw,Nw=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Pw=function(e){return Fw(e)&&e.nodeType===1},Fw=function(e){var t=Nw(e);return!!t&&e instanceof t.Node},Iw=function(e){var t=e&&e.anchorNode&&Nw(e.anchorNode);return!!t&&e instanceof t.Selection},Lw=function(e){return Fw(e)&&e.nodeType===3},Rw=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},zw=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(Fw(r=a)&&r.nodeType===8||Pw(a)&&a.childNodes.length===0||Pw(a)&&a.getAttribute(`contenteditable`)===`false`)&&(!s||!c);)o>=i.length?(s=!0,o=t-1,n=`backward`):o<0?(c=!0,o=t+1,n=`forward`):(a=i[o],t=o,o+=n===`forward`?1:-1);return[a,t]},cce=function(e,t,n){return CC(zw(e,t,n),1)[0]},lce=function e(t){var n,r,i=``;if(Lw(t)&&t.nodeValue)return t.nodeValue;if(Pw(t)){try{for(var a=SC(Array.from(t.childNodes)),o=a.next();!o.done;o=a.next())i+=e(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue(`display`);s!==`block`&&s!==`list`&&s!==`table-row`&&t.tagName!==`BR`||(i+=`
|
|
18
|
+
`)}return i};function Bw(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid===`true`))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],a=i.nodeType;a==3?t(i,e):a!=1&&a!=9&&a!=11||Bw(i,t)}}function Vw(e){if(e.length===0)return``;var t=e[0];return t.nodeType===jw.ELEMENT_NODE?t.tagName.toLowerCase():``}(Mw=jw||={})[Mw.ELEMENT_NODE=1]=`ELEMENT_NODE`,Mw[Mw.TEXT_NODE=3]=`TEXT_NODE`,Mw[Mw.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,Mw[Mw.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,Mw[Mw.COMMENT_NODE=8]=`COMMENT_NODE`,Mw[Mw.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,Mw[Mw.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,Mw[Mw.DOCUMENT_FRAGMENT_NODE=11]=`DOCUMENT_FRAGMENT_NODE`,globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var Hw=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),Uw=typeof navigator<`u`&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator<`u`&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Ww=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Gw=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Kw=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),qw=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var Jw=!Kw&&!Gw&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,J={getWindow:function(e){var t=Tw.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=ww.get(t);return n||(n=new TC,ww.set(t,n)),n},setNewKey:function(e){var t=new TC;ww.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=yw.get(r);if(i==null){if(R.isEditor(r))return n;break}var a=vw.get(r);if(a==null)break;n.unshift(a),r=i}throw Error(`Unable to find the path for Slate node: `+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=J.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return yw.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=J.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[J.findPath(e,t)[0]];return z.get(e,n)},toDOMNode:function(e,t){var n;if(R.isEditor(t))n=bw.get(e);else{var r=J.findKey(e,t);n=Sw.get(r)}if(!n)throw Error(`Cannot resolve a DOM node from Slate node: `+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,i=n.editable,a=i!==void 0&&i,o=J.toDOMNode(e,e);try{r=Pw(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]`)===o&&(!a||r.isContentEditable||!!r.getAttribute(`data-slate-zero-width`))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=V.isBackward(t),a=J.toDOMPoint(e,n),o=V.isCollapsed(t)?a:J.toDOMPoint(e,r),s=J.getWindow(e).document.createRange(),c=CC(i?o:a,2),l=c[0],u=c[1],d=CC(i?a:o,2),f=d[0],p=d[1],m=!!(Pw(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(Pw(f)?f:f.parentElement).getAttribute(`data-slate-zero-width`);return s.setStart(l,m?1:u),s.setEnd(f,h?1:p),s},toDOMPoint:function(e,t){var n,r,i,a=CC(R.node(e,t.path),1)[0],o=J.toDOMNode(e,a);R.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(o.querySelectorAll(`[data-slate-string], [data-slate-zero-width]`)),c=0;try{for(var l=SC(s),u=l.next();!u.done;u=l.next()){var d=u.value,f=d.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,m=d.getAttribute(`data-slate-length`),h=c+(m==null?p:parseInt(m,10));if(t.offset<=h){i=[f,Math.min(p,Math.max(0,t.offset-c))];break}c=h}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!i)throw Error(`Cannot resolve a DOM point from Slate point: `+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=Pw(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?xw.get(n):null;if(!r)throw Error(`Cannot resolve a Slate node from DOM node: `+n);return r},findEventRange:function(e,t){`nativeEvent`in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,i=t.target;if(n==null||r==null)throw Error(`Cannot resolve a Slate range from a DOM event: `+t);var a,o=J.toSlateNode(e,t.target),s=J.findPath(e,o);if(R.isVoid(e,o)){var c=i.getBoundingClientRect(),l=e.isInline(o)?n-c.left<c.left+c.width-n:r-c.top<c.top+c.height-r,u=R.point(e,s,{edge:l?`start`:`end`}),d=l?R.before(e,u):R.after(e,u);if(d)return R.range(e,d)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)a=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((a=f.createRange()).setStart(p.offsetNode,p.offset),a.setEnd(p.offsetNode,p.offset))}if(!a)throw Error(`Cannot resolve a Slate range from a DOM event: `+t);return J.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,a,o,s,c=n.exactMatch,l=n.suppressThrow;if((Iw(t)?t.anchorNode:t.startContainer)&&(Iw(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=qw&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,s=t.collapsed)),r==null||a==null||i==null||o==null)throw Error(`Cannot resolve a Slate range from DOM range: `+t);var u=J.toSlatePoint(e,[r,i],{exactMatch:c,suppressThrow:l});if(!u)return null;var d=s?u:J.toSlatePoint(e,[a,o],{exactMatch:c,suppressThrow:l});if(!d)return null;var f={anchor:u,focus:d};return V.isExpanded(f)&&V.isForward(f)&&Pw(a)&&R.void(e,{at:f.focus,mode:`highest`})&&(f=R.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=CC(i?t:function(e){var t,n=CC(e,2),r=n[0],i=n[1];if(Pw(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=CC(zw(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;Pw(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=cce(r,s,a?`backward`:`forward`)}i=a&&r.textContent!=null?r.textContent.length:0}return[r,i]}(t),2),s=o[0],c=o[1],l=s.parentNode,u=null,d=0;if(l){var f=l.closest(`[data-slate-void="true"]`),p=l.closest(`[data-slate-leaf]`),m=null;if(p){u=p.closest(`[data-slate-node="text"]`);var h=J.getWindow(e).document.createRange();h.setStart(u,0),h.setEnd(s,c);var g=h.cloneContents();wC(wC([],CC(Gp(g.querySelectorAll(`[data-slate-zero-width]`)))),CC(Gp(g.querySelectorAll(`[contenteditable=false]`)))).forEach((function(e){e.parentNode.removeChild(e)})),d=g.textContent.length,m=u}else f&&((p=f.querySelector(`[data-slate-leaf]`))?(u=p.closest(`[data-slate-node="text"]`),d=(m=p).textContent.length,m.querySelectorAll(`[data-slate-zero-width]`).forEach((function(e){d-=e.textContent.length}))):d=1);m&&d===m.textContent.length&&(l.hasAttribute(`data-slate-zero-width`)||Uw&&(r=m.textContent)!=null&&r.endsWith(`
|
|
19
|
+
`))&&d--}if(!u){if(a)return null;throw Error(`Cannot resolve a Slate point from DOM point: `+t)}var _=J.toSlateNode(e,u);return{path:J.findPath(e,_),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return R.hasPath(e,n.path)&&R.hasPath(e,r.path)},getNodeType:function(e){return L.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return z.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=R.nodes(e,{universal:!0});try{for(var a=SC(i),o=a.next();!o.done;o=a.next()){var s=CC(o.value,1)[0];L.isElement(s)&&r.push(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=CC(R.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return r==null?null:r[0]},getSelectedTextNode:function(e){var t=CC(R.nodes(e,{match:function(e){return H.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=CC(R.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&CC(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(R.isEnd(e,n.anchor,t)||R.isEnd(e,n.focus,t))},getTextarea:function(e){var t=aw.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return cw.get(e)||null},getHoverbar:function(e){return uw.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!=`number`||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,``).length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,a=J.getTextarea(e).$textArea?.[0].childNodes;if(a)try{for(var o=SC(Array.from(a)),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.nodeType!==3)break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var l=R.nodes(e,{match:function(t){return!(!L.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=SC(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];Bw(J.toDOMNode(e,p),(function(e,t){var n=W(t);n.attr(`data-slate-string`)||n.attr(`data-slate-zero-width`)||n.attr(`data-w-e-reserve`)||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}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=R.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=SC(r),o=a.next();!o.done;o=a.next())o.value,i++}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||V.isExpanded(t))return!1;var n=J.getSelectedNodeByType(e,`paragraph`);if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===``||void 0)},isEmptyPath:function(e,t){var n=R.node(e,t);if(n==null)return!1;var r=CC(n,1)[0].children;return r.length===1&&r[0].text===``}},uce=1,Yw={},Xw={},dce=xx.filter;Hx({target:`Array`,proto:!0,forced:!GS(`filter`)},{filter:function(e){return dce(this,e,arguments.length>1?arguments[1]:void 0)}});var Zw=`
|
|
20
|
+
\v\f\r \xA0 \u2028\u2029`,Qw=q(``.replace),$w=`[`+Zw+`]`,fce=RegExp(`^`+$w+$w+`*`),pce=RegExp($w+$w+`*$`),eT=function(e){return function(t){var n=Jx(Yy(t));return 1&e&&(n=Qw(n,fce,``)),2&e&&(n=Qw(n,pce,``)),n}},mce={start:eT(1),end:eT(2),trim:eT(3)},hce=Xb.PROPER,gce=mce.trim;Hx({target:`String`,proto:!0,forced:function(e){return sb((function(){return!!Zw[e]()||`
`[e]()!==`
`||hce&&Zw[e].name!==e}))}(`trim`)},{trim:function(){return gce(this)}});var tT=[],nT={};function _ce(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var rT,iT,aT,oT,sT=K.Promise,cT=pb(`species`),lT=function(e){var t=eb(e),n=jb.f;gb&&t&&!t[cT]&&n(t,cT,{configurable:!0,get:function(){return this}})},vce=K.TypeError,uT=pb(`species`),dT=function(e,t){var n,r=xb(e).constructor;return r===void 0||(n=xb(r)[uT])==null?t:function(e){if(gx(e))return e;throw vce(Eb(e)+` is not a constructor`)}(n)},fT=q([].slice),pT=/(?:ipad|iphone|ipod).*applewebkit/i.test(tb),mT=Qb(K.process)==`process`,hT=K.setImmediate,gT=K.clearImmediate,_T=K.process,vT=K.Dispatch,yT=K.Function,bT=K.MessageChannel,xT=K.String,ST=0,CT={};try{rT=K.location}catch{}var wT=function(e){if(Zy(CT,e)){var t=CT[e];delete CT[e],t()}},TT=function(e){return function(){wT(e)}},ET=function(e){wT(e.data)},DT=function(e){K.postMessage(xT(e),rT.protocol+`//`+rT.host)};hT&&gT||(hT=function(e){var t=fT(arguments,1);return CT[++ST]=function(){sC($y(e)?e:yT(e),void 0,t)},iT(ST),ST},gT=function(e){delete CT[e]},mT?iT=function(e){_T.nextTick(TT(e))}:vT&&vT.now?iT=function(e){vT.now(TT(e))}:bT&&!pT?(oT=(aT=new bT).port2,aT.port1.onmessage=ET,iT=ax(oT.postMessage,oT)):K.addEventListener&&$y(K.postMessage)&&!K.importScripts&&rT&&rT.protocol!==`file:`&&!sb(DT)?(iT=DT,K.addEventListener(`message`,ET,!1)):iT=`onreadystatechange`in yb(`script`)?function(e){$x.appendChild(yb(`script`)).onreadystatechange=function(){$x.removeChild(this),wT(e)}}:function(e){setTimeout(TT(e),0)});var OT,kT,AT,jT,MT,NT,PT,FT,IT={set:hT,clear:gT},yce=/ipad|iphone|ipod/i.test(tb)&&K.Pebble!==void 0,bce=/web0s(?!.*chrome)/i.test(tb),xce=jx.f,LT=IT.set,RT=K.MutationObserver||K.WebKitMutationObserver,zT=K.document,BT=K.process,VT=K.Promise,HT=xce(K,`queueMicrotask`),UT=HT&&HT.value;UT||(OT=function(){var e,t;for(mT&&(e=BT.domain)&&e.exit();kT;){t=kT.fn,kT=kT.next;try{t()}catch(e){throw kT?jT():AT=void 0,e}}AT=void 0,e&&e.enter()},pT||mT||bce||!RT||!zT?!yce&&VT&&VT.resolve?((PT=VT.resolve(void 0)).constructor=VT,FT=ax(PT.then,PT),jT=function(){FT(OT)}):mT?jT=function(){BT.nextTick(OT)}:(LT=ax(LT,K),jT=function(){LT(OT)}):(MT=!0,NT=zT.createTextNode(``),new RT(OT).observe(NT,{characterData:!0}),jT=function(){NT.data=MT=!MT}));var WT,GT,KT,qT,JT=UT||function(e){var t={fn:e,next:void 0};AT&&(AT.next=t),kT||(kT=t,jT()),AT=t},Sce=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=Db(t),this.reject=Db(n)},YT={f:function(e){return new Sce(e)}},XT=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ZT=typeof window==`object`,QT=IT.set,$T=pb(`species`),eE=`Promise`,tE=qb.getterFor(eE),nE=qb.set,rE=qb.getterFor(eE),iE=sT&&sT.prototype,aE=sT,oE=iE,sE=K.TypeError,cE=K.document,lE=K.process,uE=YT.f,dE=uE,fE=!!(cE&&cE.createEvent&&K.dispatchEvent),pE=$y(K.PromiseRejectionEvent),mE=!1,hE=Vx(eE,(function(){var e=Lb(aE),t=e!==String(aE);if(!t&&ob===66)return!0;if(ob>=51&&/native code/.test(e))return!1;var n=new aE((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[$T]=r,!(mE=n.then((function(){}))instanceof r)||!t&&ZT&&!pE})),gE=hE||!SS((function(e){aE.all(e).catch((function(){}))})),_E=function(e){var t;return!(!_b(e)||!$y(t=e.then))&&t},vE=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;JT((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&SE(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(sE(`Promise-chain cycle`)):(s=_E(o))?Cb(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&bE(e)}))}},yE=function(e,t,n){var r,i;fE?((r=cE.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),K.dispatchEvent(r)):r={promise:t,reason:n},!pE&&(i=K[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=K.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},bE=function(e){Cb(QT,K,(function(){var t,n=e.facade,r=e.value;if(xE(e)&&(t=XT((function(){mT?lE.emit(`unhandledRejection`,r,n):yE(`unhandledrejection`,n,r)})),e.rejection=mT||xE(e)?2:1,t.error))throw t.value}))},xE=function(e){return e.rejection!==1&&!e.parent},SE=function(e){Cb(QT,K,(function(){var t=e.facade;mT?lE.emit(`rejectionHandled`,t):yE(`rejectionhandled`,t,e.value)}))},CE=function(e,t,n){return function(r){e(t,r,n)}},wE=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,vE(e,!0))},TE=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw sE(`Promise can't be resolved itself`);var r=_E(t);r?JT((function(){var n={done:!1};try{Cb(r,t,CE(TE,n,e),CE(wE,n,e))}catch(t){wE(n,t,e)}})):(e.value=t,e.state=1,vE(e,!1))}catch(t){wE({done:!1},t,e)}}};if(hE&&(oE=(aE=function(e){RC(this,oE),Db(e),Cb(WT,this);var t=tE(this);try{e(CE(TE,t),CE(wE,t))}catch(e){wE(t,e)}}).prototype,(WT=function(e){nE(this,{type:eE,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=DC(oE,{then:function(e,t){var n=rE(this),r=n.reactions,i=uE(dT(this,aE));return i.ok=!$y(e)||e,i.fail=$y(t)&&t,i.domain=mT?lE.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&vE(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),GT=function(){var e=new WT,t=tE(e);this.promise=e,this.resolve=CE(TE,t),this.reject=CE(wE,t)},YT.f=uE=function(e){return e===aE||e===KT?new GT(e):dE(e)},$y(sT)&&iE!==Object.prototype)){qT=iE.then,mE||(Zb(iE,`then`,(function(e,t){var n=this;return new aE((function(e,t){Cb(qT,n,e,t)})).then(e,t)}),{unsafe:!0}),Zb(iE,`catch`,oE.catch,{unsafe:!0}));try{delete iE.constructor}catch{}LS&&LS(iE,oE)}Hx({global:!0,wrap:!0,forced:hE},{Promise:aE}),IS(aE,eE,!1),lT(eE),KT=eb(eE),Hx({target:eE,stat:!0,forced:hE},{reject:function(e){var t=uE(this);return Cb(t.reject,void 0,e),t.promise}}),Hx({target:eE,stat:!0,forced:hE},{resolve:function(e){return function(e,t){if(xb(e),_b(t)&&t.constructor===e)return t;var n=YT.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Hx({target:eE,stat:!0,forced:gE},{all:function(e){var t=this,n=uE(t),r=n.resolve,i=n.reject,a=XT((function(){var n=Db(t.resolve),a=[],o=0,s=1;LC(e,(function(e){var c=o++,l=!1;s++,Cb(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=uE(t),r=n.reject,i=XT((function(){var i=Db(t.resolve);LC(e,(function(e){Cb(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var EE=JS.UNSUPPORTED_Y,Cce=Math.min,DE=[].push,wce=q(/./.exec),OE=q(DE),kE=q(``.slice);function AE(e){Promise.resolve().then(e)}function jE(e,t){return L.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=R.isVoid(t,e),s=``;o||(s=a.map((function(e){return jE(e,t)})).join(``));var c=function(e){return nT[e]||_ce}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||tT.forEach((function(t){return l=t(e,l)})),typeof c==`string`)return l;var u=c.prefix,d=u===void 0?``:u,f=c.suffix,p=f===void 0?``:f;return d&&(l=d+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(n==null)throw Error(`Current node is not slate Text `+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g,` `).replace(/</g,`<`).replace(/>/g,`>`).replace(/®/g,`®`).replace(/©/g,`©`).replace(/™/g,`™`)}(r);var i=J.getParentsNodes(t,e).some((function(e){return J.getNodeType(e)===`pre`}));if(i||(r=r.replace(/\r\n|\r|\n/g,`<br>`)),i&&(r=r.replace(/ /g,` `)),r===``){var a=J.getParentNode(null,e);if(!a||a.children.length!==0)return r;r=`<br>`}return tT.forEach((function(t){return r=t(e,r)})),r}(e,t)}function ME(e){return`w-e-element-`+e}lC(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=Jx(Yy(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!lS(e))return Cb(t,r,e,i);for(var a,o,s,c=[],l=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),u=0,d=new RegExp(e.source,l+`g`);(a=Cb(rC,d,r))&&!((o=d.lastIndex)>u&&(OE(c,kE(r,u,a.index)),a.length>1&&a.index<r.length&&sC(DE,c,OC(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&wce(d,``)||OE(c,``):OE(c,kE(r,u)),c.length>i?OC(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:Cb(t,this,e,n)}:t,[function(t,n){var i=Yy(this),a=t==null?void 0:Ob(t,e);return a?Cb(a,t,i,n):Cb(r,Jx(i),t,n)},function(e,i){var a=xb(this),o=Jx(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=dT(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(EE?`g`:`y`),d=new c(EE?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return pC(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=EE?0:m;var g,_=pC(d,EE?kE(o,m):o);if(_===null||(g=Cce(lx(d.lastIndex+(EE?m:0)),o.length))===p)m=uC(o,m,l);else{if(OE(h,kE(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(OE(h,_[v]),h.length===f)return h;m=p=g}}return OE(h,kE(o,p)),h}]}),!!sb((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),EE);var NE=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},PE=function(e,t,n){var r=J.toDOMRange(e,t).getBoundingClientRect(),i=J.toDOMRange(e,n).getBoundingClientRect();return NE(r,i)&&NE(i,r)},FE=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],IE=[],LE=[],RE={},Tce=jb.f,Ece=Rx.f,Dce=qb.enforce,Oce=pb(`match`),zE=K.RegExp,BE=zE.prototype,kce=K.SyntaxError,Ace=q(Yx),jce=q(BE.exec),VE=q(``.charAt),HE=q(``.replace),UE=q(``.indexOf),Mce=q(``.slice),Nce=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,WE=/a/g,GE=/a/g,Pce=new zE(WE)!==WE,KE=JS.MISSED_STICKY,Fce=JS.UNSUPPORTED_Y;if(Vx(`RegExp`,gb&&(!Pce||KE||YS||XS||sb((function(){return GE[Oce]=!1,zE(WE)!=WE||zE(GE)==GE||zE(WE,`i`)!=`/a/i`}))))){for(var qE=function(e,t){var n,r,i,a,o,s,c=wb(BE,this),l=lS(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===qE)return e;if((l||wb(BE,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:Ace(f))),e=e===void 0?``:Jx(e),t=t===void 0?``:Jx(t),f=e,YS&&`dotAll`in WE&&(r=!!t&&UE(t,`s`)>-1)&&(t=HE(t,/s/g,``)),n=t,KE&&`sticky`in WE&&(i=!!t&&UE(t,`y`)>-1)&&Fce&&(t=HE(t,/y/g,``)),XS&&(a=function(e){for(var t,n=e.length,r=0,i=``,a=[],o={},s=!1,c=!1,l=0,u=``;r<=n;r++){if((t=VE(e,r))===`\\`)t+=VE(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:jce(Nce,Mce(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||Zy(o,u))throw new kce(`Invalid capture group name`);o[u]=!0,a[a.length]=[u,l],c=!1,u=``;continue}c?u+=t:i+=t}return[i,a]}(e),e=a[0],d=a[1]),o=zC(zE(e,t),c?this:BE,qE),(r||i||d.length)&&(s=Dce(o),r&&(s.dotAll=!0,s.raw=qE(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=VE(e,r))===`\\`?i+=t+VE(e,++r):a||t!==`.`?(t===`[`?a=!0:t===`]`&&(a=!1),i+=t):i+=`[\\s\\S]`;return i}(e),n)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{Nb(o,`source`,f===``?`(?:)`:f)}catch{}return o},Ice=function(e){e in qE||Tce(qE,e,{configurable:!0,get:function(){return zE[e]},set:function(t){zE[e]=t}})},JE=Ece(zE),YE=0;JE.length>YE;)Ice(JE[YE++]);BE.constructor=qE,qE.prototype=BE,Zb(K,`RegExp`,qE)}lT(`RegExp`);var Lce=RegExp(`\xA0`,`g`);function XE(e){return e.replace(Lce,` `)}function ZE(e,t){var n=e.length;if(n){var r=e[n-1];if(H.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]===`text`)return r.text+=t,!0}}return!1}function Rce(e,t,n){return{type:`paragraph`,children:[{text:W(e).text().replace(/\s+/gm,` `)}]}}function QE(e,t){var n=function(e,t){var n=[];if(e.attr(`data-w-e-is-void`)!=null)return n;var r=e[0].childNodes;return r.length===1&&r[0].nodeName===`BR`?(n.push({text:``}),n):(r.forEach((function(e){if(e.nodeType!==jw.ELEMENT_NODE){if(e.nodeType===jw.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
|
|
21
|
+
`)>=0)return;r&&(r=XE(r),ZE(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(ZE(n,`
|
|
22
|
+
`)||n.push({text:`
|
|
23
|
+
`}));var i=eD(W(e),t);Array.isArray(i)?i.forEach((function(e){return n.push(e)})):n.push(i)}})),n)}(e,t),r=function(e){for(var t in RE)if(e[0].matches(t))return RE[t];return Rce}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){R.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),LE.forEach((function(n){r=n(e[0],r,t)})))})),r}function $E(e,t){e.parents(`pre`).length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm,` `).replace(/<br>/g,`
|
|
24
|
+
`));var n=e[0].textContent||``;n=function(e){return e.replace(/ /g,` `).replace(/</g,`<`).replace(/>/g,`>`).replace(/®/g,`®`).replace(/©/g,`©`).replace(/™/g,`™`).replace(/"/g,`"`)}(n);var r={text:n=XE(n)};return LE.forEach((function(n){r=n(e[0],r,t)})),r}function eD(e,t){IE.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=W(r(e[0])))}));var n=Vw(e);return n===`span`?e.attr(`data-w-e-type`)?QE(e,t):$E(e,t):n===`code`?Vw(e.parent())===`pre`?QE(e,t):$E(e,t):FE.includes(n)?$E(e,t):QE(e,t)}function tD(e,t,n){var r=W(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function nD(e,t){t===void 0&&(t=``);var n=[];t===``&&(t=`<p><br></p>`),t.indexOf(`<`)!==0&&(t=t.split(/\n/).map((function(e){return`<p>`+e+`</p>`})).join(``));var r=W(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=eD(W(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var zce=jb.f,rD=PC.fastKey,iD=qb.set,aD=qb.getterFor;BC(`Set`,(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var i=e((function(e,i){RC(e,a),iD(e,{type:t,index:aS(null),first:void 0,last:void 0,size:0}),gb||(e.size=0),i!=null&&LC(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=aD(t),s=function(e,t,n){var r,i,a=o(e),s=c(e,t);return s?s.value=n:(a.last=s={index:i=rD(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),gb?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=rD(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return DC(a,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&=n.previous.next=void 0,delete t[n.index],n=n.next;e.first=e.last=void 0,gb?e.size=0:this.size=0},delete:function(e){var t=this,n=o(t),r=c(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),gb?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=ax(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!!c(this,e)}}),DC(a,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,e===0?0:e,t)}}:{add:function(e){return s(this,e=e===0?0:e,e)}}),gb&&zce(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=aD(t),a=aD(r);VS(e,t,(function(e,t){iD(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(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)?t==`keys`?{value:n.key,done:!1}:t==`values`?{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),lT(t)}});var oD=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function sD(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):U.insertNodes(e,t,{mode:`highest`})}var Bce=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=CC(V.edges(n),2),i=r[0],a=r[1],o=R.void(t,{at:i.path}),s=R.void(t,{at:a.path});if(!V.isCollapsed(n)||o){var c=J.toDOMRange(t,n),l=c.cloneContents(),u=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&e.textContent.trim()!==``&&(u=e)})),s){var d=CC(s,1)[0],f=c.cloneRange(),p=J.toDOMNode(t,d);f.setEndAfter(p),l=f.cloneContents()}if(o&&(u=l.querySelector(`[data-slate-spacer]`)),Array.from(l.querySelectorAll(`[data-slate-zero-width]`)).forEach((function(e){e.textContent=e.getAttribute(`data-slate-zero-width`)===`n`?`
|
|
25
|
+
`:``})),Lw(u)){var m=u.ownerDocument.createElement(`span`);m.style.whiteSpace=`pre`,m.appendChild(u),l.appendChild(m),u=m}var h=t.getFragment(),g=JSON.stringify(h),_=window.btoa(encodeURIComponent(g));u.setAttribute(`data-slate-fragment`,_),e.setData(`application/x-slate-fragment`,_);var v=l.ownerDocument.createElement(`div`);return v.appendChild(l),v.setAttribute(`hidden`,`true`),l.ownerDocument.body.appendChild(v),e.setData(`text/html`,v.innerHTML),e.setData(`text/plain`,lce(v)),l.ownerDocument.body.removeChild(v),e}}},t.insertData=function(e){var r,i,a=e.getData(`application/x-slate-fragment`);if(a){var o=decodeURIComponent(window.atob(a)),s=JSON.parse(o);t.insertFragment(s)}else{var c=e.getData(`text/plain`),l=e.getData(`text/html`);if(l)t.dangerouslyInsertHtml(l);else if(c){var u=c.split(/\r\n|\r|\n/),d=!1;try{for(var f=SC(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&U.splitNodes(t,{always:!0}),n(m),d=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}},t},cD=function(e){return e!=null},Vce={object:!0,function:!0,undefined:!0},Hce=/^\s*class[\s{/}]/,lD=Function.prototype.toString,uD=function(e){return!!function(e){if(typeof e!=`function`||!hasOwnProperty.call(e,`length`))return!1;try{if(typeof e.length!=`number`||typeof e.call!=`function`||typeof e.apply!=`function`)return!1}catch{return!1}return!function(e){if(!function(e){return!!cD(e)&&hasOwnProperty.call(Vce,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!Hce.test(lD.call(e))},dD=function(e){return e!=null},fD=Object.keys,pD=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return fD(dD(e)?Object(e):e)},mD=function(e){if(!dD(e))throw TypeError(`Cannot use null or undefined`);return e},hD=Math.max,gD=function(){var e,t=Object.assign;return typeof t==`function`&&(t(e={foo:`raz`},{bar:`dwa`},{trzy:`trzy`}),e.foo+e.bar+e.trzy===`razdwatrzy`)}()?Object.assign:function(e,t){var n,r,i,a=hD(arguments.length,2);for(e=Object(mD(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)pD(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},_D=Array.prototype.forEach,vD=Object.create,yD=function(e,t){for(var n in e)t[n]=e[n]},bD=function(e){var t=vD(null);return _D.call(arguments,(function(e){dD(e)&&yD(Object(e),t)})),t},xD=`razdwatrzy`,SD=String.prototype.indexOf,CD=typeof xD.contains==`function`&&!0===xD.contains(`dwa`)&&!1===xD.contains(`foo`)?String.prototype.contains:function(e){return SD.call(this,e,arguments[1])>-1},wD=zy((function(e){var t=e.exports=function(e,t){var n,r,i,a,o;return arguments.length<2||typeof e!=`string`?(a=t,t=e,e=null):a=arguments[2],cD(e)?(n=CD.call(e,`c`),r=CD.call(e,`e`),i=CD.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?gD(bD(a),o):o};t.gs=function(e,t,n){var r,i,a,o;return typeof e==`string`?a=arguments[3]:(a=n,n=t,t=e,e=null),cD(t)?uD(t)?cD(n)?uD(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,cD(e)?(r=CD.call(e,`c`),i=CD.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?gD(bD(a),o):o}})),TD=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},ED=zy((function(e,t){var n,r,i,a,o,s,c,l=Function.prototype.apply,u=Function.prototype.call,d=Object.create,f=Object.defineProperty,p=Object.defineProperties,m=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return TD(t),m.call(this,`__ee__`)?n=this.__ee__:(n=h.value=d(null),f(this,`__ee__`,h),h.value=null),n[e]?typeof n[e]==`object`?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,a;return TD(t),a=this,n.call(this,e,r=function(){i.call(a,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e,t){var n,r,i,a;if(TD(t),!m.call(this,`__ee__`)||!(n=this.__ee__)[e])return this;if(typeof(r=n[e])==`object`)for(a=0;i=r[a];++a)i!==t&&i.__eeOnceListener__!==t||(r.length===2?n[e]=r[a?0:1]:r.splice(a,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},a=function(e){var t,n,r,i,a;if(m.call(this,`__ee__`)&&(i=this.__ee__[e]))if(typeof i==`object`){for(n=arguments.length,a=Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)l.call(r,this,a)}else switch(arguments.length){case 1:u.call(i,this);break;case 2:u.call(i,this,arguments[1]);break;case 3:u.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,a=Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];l.call(i,this,a)}},o={on:n,once:r,off:i,emit:a},s={on:wD(n),once:wD(r),off:wD(i),emit:wD(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function DD(e){var t=Ow.get(e);return t??(t=ED(),Ow.set(e,t)),t}var OD=new WeakMap;function kD(e,t){var n=OD.get(e);n??(n=new Set,OD.set(e,n)),n.add(t)}function AD(e){return OD.get(e)||new Set}function jD(e){OD.set(e,new Set)}function MD(e){var t=J.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function ND(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=MD(e);if(r==null)return t;var i=r.top,a=r.left,o=r.width,s=r.height,c=J.toDOMRange(e,n).getClientRects()[0];if(c==null)return t;c.width;var l=c.height,u={},d=c.top-i,f=c.left-a;if(f>o/2?u.right=o-f+5+`px`:u.left=f+5+`px`,d>s/2)u.bottom=s-d+5+`px`;else{var p=d+l;p<0&&(p=0),u.top=p+5+`px`}return u}function PD(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=L.isElement(t)&&e.isVoid(t),a=L.isElement(t)&&e.isInline(t),o=Cw.get(t);if(o==null)return r;var s=o.getBoundingClientRect(),c=s.top,l=s.left,u=s.height,d=s.width;if(i){var f=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(r==null||++n>1e4)break;var i=r.nodeName;if(r.nodeType===1){var a=i.toLowerCase();if(sce.includes(a)||a===`iframe`||a===`video`)return r;var o=r.children||[],s=o.length;if(s)for(var c=s-1;c>=0;c--)t.push(o[c])}}return null}(o);if(f!=null){var p=f.getBoundingClientRect();c=p.top,u=p.height}}var m=MD(e);if(m==null)return r;var h,g=m.top,_=m.left,v=m.width,y=m.height,b={},x=c-g,S=l-_;if(n===`bar`)return b.left=S+`px`,x>40?b.bottom=y-x+5+`px`:b.top=x+u+5+`px`,b;if(n===`modal`)return i?a?S>(v-d)/2?b.right=v-S+5+`px`:b.left=S+d+5+`px`:b.left=`20px`:b.left=S+`px`,i?((h=x)<0&&(h=0),b.top=h+`px`):x>(y-u)/2?b.bottom=y-x+5+`px`:((h=x+u)<0&&(h=0),b.top=h+5+`px`),b;throw Error(`type '`+n+`' is invalid`)}function FD(e,t){AE((function(){var n=MD(e);if(n!=null){var r,i=n.top,a=n.left,o=n.width,s=n.height,c=t.offset(),l=c.top,u=c.left,d=t.width(),f=t.height(),p=l-i,m=u-a,h=t.attr(`style`);if(h.indexOf(`top`)>=0&&(r=p+f-s)>0){var g=t.css(`top`),_=parseInt(g.toString())-r;_<0&&(_=0),t.css(`top`,_+`px`)}if(h.indexOf(`bottom`)>=0&&l<0){var v=t.css(`bottom`),y=parseInt(v.toString())-Math.abs(l);t.css(`bottom`,y+`px`)}if(h.indexOf(`left`)>=0&&(r=m+d-o)>0){var b=t.css(`left`),x=parseInt(b.toString())-r;x<0&&(x=0),t.css(`left`,x+`px`)}if(h.indexOf(`right`)>=0&&u<0){var S=t.css(`right`),C=parseInt(S.toString())-Math.abs(u);t.css(`right`,C+`px`)}}}))}var ID=GS(`slice`),LD=pb(`species`),RD=K.Array,zD=Math.max;Hx({target:`Array`,proto:!0,forced:!ID},{slice:function(e,t){var n,r,i,a=kx(this),o=ux(a),s=Mx(e,o),c=Mx(t===void 0?o:t,o);if(dx(a)&&(n=a.constructor,(gx(n)&&(n===RD||dx(n.prototype))||_b(n)&&(n=n[LD])===null)&&(n=void 0),n===RD||n===void 0))return fT(a,s,c);for(r=new(n===void 0?RD:n)(zD(c-s,0)),i=0;s<c;s++,i++)s in a&&hS(r,i,a[s]);return r.length=i,r}});var BD=jx.f,VD=q(``.startsWith),HD=q(``.slice),UD=Math.min,WD=dS(`startsWith`);Hx({target:`String`,proto:!0,forced:!(!WD&&function(){var e=BD(String.prototype,`startsWith`);return e&&!e.writable}())&&!WD},{startsWith:function(e){var t=Jx(Yy(this));uS(e);var n=lx(UD(arguments.length>1?arguments[1]:void 0,t.length)),r=Jx(e);return VD?VD(t,r,n):HD(t,n,n+r.length)===r}});var GD=Object.assign,KD=Object.defineProperty,qD=q([].concat),JD=!GD||sb((function(){if(gb&&GD({b:1},GD(KD({},`a`,{enumerable:!0,get:function(){KD(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),GD({},e)[n]!=7||Ux(GD({},t)).join(``)!=r}))?function(e,t){for(var n=Xy(e),r=arguments.length,i=1,a=zx.f,o=Ox.f;r>i;)for(var s,c=sx(arguments[i++]),l=a?qD(Ux(c),a(c)):Ux(c),u=l.length,d=0;u>d;)s=l[d++],gb&&!Cb(o,c,s)||(n[s]=c[s]);return n}:GD;Hx({target:`Object`,stat:!0,forced:Object.assign!==JD},{assign:JD});var YD=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function XD(e){var t=e.data,n=t===void 0?{}:t,r=e.children,i=r===void 0?[]:r;Object.keys(n).forEach((function(t){var r,i,a=n[t];if(t!==`key`){if(!YD.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=Ag(o),function(e,t){e.data??={};var n=e.data;n.dataset??={},Object.assign(n.dataset,t)}(e,((r={})[o]=a,r)),delete n[t];return}(function(e,t){e.data??={};var n=e.data;n.props??={},Object.assign(n.props,t)})(e,(i={},i[t]=a,i)),delete n[t]}}else e.key=a})),i.length>0&&i.forEach((function(e){typeof e!=`string`&&XD(e)}))}var ZD=[],QD={};function $D(e,t,n){return Rh(n.isInline(e)?`span`:`div`,null,t)}function eO(e,t){return t===void 0&&(t=!1),Rh(`span`,{"data-slate-string":!0},t?e+`
|
|
26
|
+
`:e)}function tO(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Rh(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?Rh(`br`,null):null)}function nO(e,t,n,r){return vw.set(e,t),yw.set(e,n),L.isElement(e)?function(e,t){var n,r=J.findKey(t,e),i=t.isInline(e),a=R.isVoid(t,e),o=ME(r.id),s={id:o,key:r.id,"data-slate-node":`element`,"data-slate-inline":i},c=e.type,l=e.children,u=l===void 0?[]:l,d=function(e){return QD[e]||$D}(c);n=a?null:u.map((function(n,r){return nO(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=CC(CC(z.texts(e),1)[0],1)[0],h=Rh(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},nO(m,0,e,t));f=Rh(p,{style:{position:`relative`}},f,h),vw.set(m,0),yw.set(m,e)}return f.data??={},Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return ZD.forEach((function(r){n=r(e,t)})),n}(e,f)),AE((function(){var t=Rw(o);t!=null&&(Sw.set(r,t),Cw.set(e,t),xw.set(t,e))})),f}(e,r):function(e,t,n){if(e.text==null)throw Error(`Current node is not slate Text `+JSON.stringify(e));var r=J.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw Error(`Can not get config.decorate`);var a=i([e,J.findPath(n,e)]),o=H.decorations(e,a),s=o.map((function(r,i){var a=function(e,t,n,r,i){t===void 0&&(t=!1);var a=e.text,o=J.findPath(i,n),s=B.parent(o);if(R.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?tO(z.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||R.string(i,s)!==``?a===``?tO():t&&a.slice(-1)===`
|
|
27
|
+
`?eO(a,!0):eO(a):tO(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return ZD.forEach((function(t){n=t(e,n)})),n}(r,a),Rh(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=Rh(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return AE((function(){var t=Rw(c);t!=null&&(Sw.set(r,t),Cw.set(e,t),xw.set(t,e))})),l}(e,n,r)}function rO(e,t){var n,r=e.$scroll,i=function(e){return`w-e-textarea-`+e}(e.id),a=t.getConfig(),o=a.readOnly,s=a.autoFocus,c=function(e,t){return t===void 0&&(t=!1),vh(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=nO(e,n,t,t);return XD(r),r}));var l=hw.get(e);if(l??=!0,l){var u=function(e,t){return W(`<div
|
|
28
|
+
id="`+e+`"
|
|
29
|
+
data-slate-editor
|
|
30
|
+
data-slate-node="value"
|
|
31
|
+
suppressContentEditableWarning
|
|
32
|
+
role="textarea"
|
|
33
|
+
spellCheck="true"
|
|
34
|
+
autoCorrect="true"
|
|
35
|
+
autoCapitalize="true"
|
|
36
|
+
></div>`)}(i);r.append(u),e.$textArea=u,n=u[0],(f=gh([Sh,jh,Ih,Th,kh,bh]))(n,c),hw.set(e,!1),gw.set(e,f)}else{var d=_w.get(e),f=gw.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=Rw(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=Nw(n);p&&Tw.set(t,p)}bw.set(t,n),Cw.set(t,n),xw.set(n,t),_w.set(e,c)}}function iO(e){return typeof e==`object`&&!!e&&e.nodeType===1}function aO(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function oO(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return aO(n.overflowY,t)||aO(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function sO(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}function cO(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,c=typeof o==`function`?o:function(e){return e!==o};if(!iO(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;iO(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&oO(d)&&!oO(document.documentElement)||d!=null&&oO(d,s)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),_=g.height,v=g.width,y=g.top,b=g.right,x=g.bottom,S=g.left,C=i===`start`||i===`nearest`?y:i===`end`?x:y+_/2,w=a===`center`?S+v/2:a===`end`?b:S,T=[],E=0;E<u.length;E++){var D=u[E],O=D.getBoundingClientRect(),k=O.height,ee=O.width,te=O.top,A=O.right,ne=O.bottom,j=O.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=te&&x<=ne&&S>=j&&b<=A)return T;var M=getComputedStyle(D),N=parseInt(M.borderLeftWidth,10),P=parseInt(M.borderTopWidth,10),re=parseInt(M.borderRightWidth,10),ie=parseInt(M.borderBottomWidth,10),ae=0,F=0,oe=`offsetWidth`in D?D.offsetWidth-D.clientWidth-N-re:0,se=`offsetHeight`in D?D.offsetHeight-D.clientHeight-P-ie:0;if(l===D)ae=i===`start`?C:i===`end`?C-p:i===`nearest`?sO(h,h+p,p,P,ie,h+C,h+C+_,_):C-p/2,F=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:sO(m,m+f,f,N,re,m+w,m+w+v,v),ae=Math.max(0,ae+h),F=Math.max(0,F+m);else{ae=i===`start`?C-te-P:i===`end`?C-ne+ie+se:i===`nearest`?sO(te,ne,k,P,ie+se,C,C+_,_):C-(te+k/2)+se/2,F=a===`start`?w-j-N:a===`center`?w-(j+ee/2)+oe/2:a===`end`?w-A+re+oe:sO(j,A,ee,N,re+oe,w,w+v,v);var ce=D.scrollLeft,le=D.scrollTop;C+=le-(ae=Math.max(0,Math.min(le+ae,D.scrollHeight-k+se))),w+=ce-(F=Math.max(0,Math.min(ce+F,D.scrollWidth-ee+oe)))}T.push({el:D,top:ae,left:F})}return T}function lO(e){return e===Object(e)&&Object.keys(e).length!==0}function uO(e,t){return Fw(t)&&J.hasDOMNode(e,t,{editable:!0})}function dO(e,t){if(e.getConfig().readOnly)return!1;var n=fO(e,t)&&J.toSlateNode(e,t);return R.isVoid(e,n)}function fO(e,t){return Fw(t)&&J.hasDOMNode(e,t)}function pO(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),a=J.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var o=a.type!==`None`;if(r||o){var s=bw.get(t),c=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(c=!0),o&&c&&r){var l=J.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(l&&V.equals(l,r)){var u=!0;if(V.isCollapsed(r)){var d=a.anchorNode,f=a.anchorOffset;if(d===s){var p=s.childNodes,m=void 0;(m=p[f])&&m.matches(`table`)&&(u=!1),(m=p[f-1])&&m.matches(`table`)&&(u=!1)}}if(u)return}}if(!r||J.hasRange(t,r)){e.isUpdatingSelection=!0;var h=r&&J.toDOMRange(t,r);if(h){V.isBackward(r)?a.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):a.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var g=h.startContainer.parentElement;if(!g.closest(`[data-slate-spacer]`)){g.getBoundingClientRect=h.getBoundingClientRect.bind(h);var _=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(lO(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:cO(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:lO(e)?e:{block:`start`,inline:`nearest`}}(t);(function(e,t){t===void 0&&(t=`auto`);var n=`scrollBehavior`in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,a=e.left;r.scroll&&n?r.scroll({top:i,left:a,behavior:t}):(r.scrollTop=i,r.scrollLeft=a)}))})(cO(e,r),r.behavior)}})(g,{scrollMode:`if-needed`,boundary:i.scroll?s.parentElement:_,block:`end`,behavior:`smooth`}),delete g.getBoundingClientRect}}else a.removeAllRanges();setTimeout((function(){h&&Uw&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=J.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var mO=new WeakMap,hO=new WeakMap,gO={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`},_O={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`},vO={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},yO=function(e){var t=gO[e],n=_O[e],r=vO[e],i=t&&Bg(t),a=n&&Bg(n),o=r&&Bg(r);return function(e){return!(!i||!i(e))||!!(Hw&&a&&a(e))||!(Hw||!o||!o(e))}},bO={isBold:yO(`bold`),isCompose:yO(`compose`),isMoveBackward:yO(`moveBackward`),isMoveForward:yO(`moveForward`),isDeleteBackward:yO(`deleteBackward`),isDeleteForward:yO(`deleteForward`),isDeleteLineBackward:yO(`deleteLineBackward`),isDeleteLineForward:yO(`deleteLineForward`),isDeleteWordBackward:yO(`deleteWordBackward`),isDeleteWordForward:yO(`deleteWordForward`),isExtendBackward:yO(`extendBackward`),isExtendForward:yO(`extendForward`),isExtendLineBackward:yO(`extendLineBackward`),isExtendLineForward:yO(`extendLineForward`),isItalic:yO(`italic`),isMoveLineBackward:yO(`moveLineBackward`),isMoveLineForward:yO(`moveLineForward`),isMoveWordBackward:yO(`moveWordBackward`),isMoveWordForward:yO(`moveWordForward`),isRedo:yO(`redo`),isSplitBlock:yO(`splitBlock`),isTransposeCharacter:yO(`transposeCharacter`),isUndo:yO(`undo`),isTab:yO(`tab`),isSelectAll:yO(`selectAll`)};function xO(e){e.preventDefault()}var SO={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(Jw&&!i&&uO(n,r.target)){var a=n.selection,o=r.inputType,s=r.dataTransfer||r.data||void 0;if(o!==`insertCompositionText`&&o!==`deleteCompositionText`){if(r.preventDefault(),!o.startsWith(`delete`)||o.startsWith(`deleteBy`)){var c=CC(r.getTargetRanges(),1)[0];if(c){var l=J.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&V.equals(a,l)||U.select(n,l)}}if(a&&V.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;R.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:R.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:R.deleteForward(n);break;case`deleteContentBackward`:R.deleteBackward(n);break;case`deleteEntireSoftLine`:R.deleteBackward(n,{unit:`line`}),R.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:R.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:R.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:R.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:R.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:R.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:R.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:R.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!kw.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&R.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&uO(n,r.target)){var o=J.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===J.toDOMNode(n,n)||Pw(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&Fw(s)&&J.hasDOMNode(n,s)){var c=J.toSlateNode(n,s);if(L.isElement(c)&&!n.isVoid(c))return}Ww&&o.getSelection()?.removeAllRanges(),Ew.delete(n)}}}},focus:function(e,t,n){var r=J.toDOMNode(n,n);t.latestElement=J.findDocumentOrShadowRoot(n).activeElement,Uw&&e.target!==r?r.focus():Ew.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&fO(n,e.target)&&Fw(e.target)){var r=J.toSlateNode(n,e.target),i=J.findPath(n,r);if(R.hasPath(n,i)&&z.get(n,i)===r){var a=R.start(n,i),o=R.end(n,i),s=R.void(n,{at:a}),c=R.void(n,{at:o});if(s&&c&&B.equals(s[1],c[1])){var l=R.range(n,a);U.select(n,l)}}}},compositionstart:function(e,t,n){if(uO(n,e.target)){var r=n.selection;if(r&&V.isExpanded(r)&&(R.deleteFragment(n),Promise.resolve().then((function(){pO(t,n,!0)}))),r&&V.isCollapsed(r)){var i=J.toDOMRange(n,r).startContainer,a=i.textContent||``;mO.set(n,a),hO.set(n,i)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&((n=e.$placeholder)==null||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(uO(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(qw||Uw)&&J.cleanExposedTexNodeInSelectionBlock(n);for(var a=V.isBackward(i)?i.focus:i.anchor,o=CC(R.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=CC(R.node(n,a.path.slice(0,s+1)),1)[0];if(L.isElement(c)&&((Ww||Uw)&&c.type===`link`||c.type===`code`)){J.setNewKey(o);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var u=J.getLeftLengthOfMaxLength(n);u<l.length?(J.toDOMRange(n,i).startContainer.textContent=mO.get(n)||``,u>0&&R.insertText(n,l.slice(0,u)),t.changeViewState()):R.insertText(n,l)}else R.insertText(n,l);Ww||setTimeout((function(){var e=n.selection;if(e!=null){var t=hO.get(n);t!=null&&J.toDOMRange(n,e).startContainer!==t&&(t.textContent=mO.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){uO(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&uO(n,r.target)){if(function(e,t){var n=cw.get(e),r=n&&n.getMenus(),i=uw.get(e),a=i&&i.getMenus(),o=xC(xC({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&zg(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),bO.isTab(r))return xO(r),void n.handleTab();if(bO.isRedo(r))return xO(r),void(typeof n.redo==`function`&&n.redo());if(bO.isUndo(r))return xO(r),void(typeof n.undo==`function`&&n.undo());if(bO.isMoveLineBackward(r))return xO(r),void U.move(n,{unit:`line`,reverse:!0});if(bO.isMoveLineForward(r))return xO(r),void U.move(n,{unit:`line`});if(bO.isExtendLineBackward(r))return xO(r),void U.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(bO.isExtendLineForward(r))return xO(r),void U.move(n,{unit:`line`,edge:`focus`});if(bO.isMoveBackward(r))return xO(r),void(i&&V.isCollapsed(i)?U.move(n,{reverse:!0}):U.collapse(n,{edge:`start`}));if(bO.isMoveForward(r))return xO(r),void(i&&V.isCollapsed(i)?U.move(n):U.collapse(n,{edge:`end`}));if(bO.isMoveWordBackward(r))return xO(r),i&&V.isExpanded(i)&&U.collapse(n,{edge:`focus`}),void U.move(n,{unit:`word`,reverse:!0});if(bO.isMoveWordForward(r))return xO(r),i&&V.isExpanded(i)&&U.collapse(n,{edge:`focus`}),void U.move(n,{unit:`word`});if(bO.isSelectAll(r))return xO(r),void n.selectAll();if(Jw){if((qw||Ww)&&i&&(bO.isDeleteBackward(r)||bO.isDeleteForward(r))&&V.isCollapsed(i)){var a=z.parent(n,i.anchor.path);if(L.isElement(a)&&R.isVoid(n,a)&&R.isInline(n,a))return r.preventDefault(),void U.delete(n,{unit:`block`})}}else{if(bO.isBold(r)||bO.isItalic(r)||bO.isTransposeCharacter(r))return void xO(r);if(bO.isSplitBlock(r))return xO(r),void R.insertBreak(n);if(bO.isDeleteBackward(r))return xO(r),void(i&&V.isExpanded(i)?R.deleteFragment(n,{direction:`backward`}):R.deleteBackward(n));if(bO.isDeleteForward(r))return xO(r),void(i&&V.isExpanded(i)?R.deleteFragment(n,{direction:`forward`}):R.deleteForward(n));if(bO.isDeleteLineBackward(r))return xO(r),void(i&&V.isExpanded(i)?R.deleteFragment(n,{direction:`backward`}):R.deleteBackward(n,{unit:`line`}));if(bO.isDeleteLineForward(r))return xO(r),void(i&&V.isExpanded(i)?R.deleteFragment(n,{direction:`forward`}):R.deleteForward(n,{unit:`line`}));if(bO.isDeleteWordBackward(r))return xO(r),void(i&&V.isExpanded(i)?R.deleteFragment(n,{direction:`backward`}):R.deleteBackward(n,{unit:`word`}));if(bO.isDeleteWordForward(r))return xO(r),void(i&&V.isExpanded(i)?R.deleteFragment(n,{direction:`forward`}):R.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!Jw&&!n.getConfig().readOnly&&uO(n,e.target)){e.preventDefault();var r=e.key;R.insertText(n,r)}},copy:function(e,t,n){var r=e;if(uO(n,r.target)){r.preventDefault();var i=r.clipboardData;i!=null&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&uO(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i))if(V.isExpanded(i))R.deleteFragment(n);else{var o=z.parent(n,i.anchor.path);R.isVoid(n,o)&&U.delete(n)}}},paste:function(e,t,n){kw.set(n,!0);var r=e;if(!n.getConfig().readOnly&&uO(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void kw.set(n,!1);if(!Jw||function(e){return e.clipboardData&&e.clipboardData.getData(`text/plain`)!==``&&e.clipboardData.types.length===1}(r)){r.preventDefault();var a=r.clipboardData;a!=null&&n.insertData(a)}}},dragover:function(e,t,n){if(fO(n,e.target)){var r=J.toSlateNode(n,e.target);R.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(fO(n,r.target)&&!n.getConfig().readOnly){var i=J.toSlateNode(n,r.target),a=J.findPath(n,i);if(R.isVoid(n,i)||R.void(n,{at:a,voids:!0})){var o=R.range(n,a);U.select(n,o)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&fO(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&fO(n,r.target)&&i!=null&&!(Jw&&Ww&&i.files.length>0)){r.preventDefault();var a=n.selection,o=J.findEventRange(n,r);U.select(n,o),t.isDraggingInternally&&=(a&&U.delete(n,{at:a}),!1),n.insertData(i),n.isFocused()||n.focus()}}},CO=1,wO=function(){function e(e){var t=this;this.id=CO++,this.$textArea=null,this.$progressBar=W(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=W(`<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=ah((function(){(function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,i=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||i)){var a=J.findDocumentOrShadowRoot(t),o=a.activeElement,s=J.toDOMNode(t,t),c=a.getSelection();if(o===s?(e.latestElement=o,Ew.set(t,!0)):Ew.delete(t),!c)return U.deselect(t);var l=c.anchorNode,u=c.focusNode,d=uO(t,l)||dO(t,l),f=uO(t,u)||dO(t,u);if(d&&f){var p=J.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});U.select(t,p)}else U.deselect(t)}})(t,t.editorInstance)}),100);var n=W(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=W(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=W(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,AE((function(){var e=t.editorInstance,n=J.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 i=e.getConfig().onChange;i&&e.on(`change`,(function(){return i(e)})),t.onFocusAndOnBlur(),e.on(`change`,t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,`editorInstance`,{get:function(){var e=ow.get(this);if(e==null)throw 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;t!=null&&(Hm(SO,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,ah((function(){r.emit(`scroll`)}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,i=n.onFocus;this.latestEditorSelection=t.selection,t.on(`change`,(function(){e.latestEditorSelection==null&&t.selection!=null?setTimeout((function(){return i&&i(t)})):e.latestEditorSelection!=null&&t.selection==null&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-J.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;rO(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var i=t.isEmpty();if(i&&!e.showPlaceholder&&!e.isComposing){if(e.$placeholder==null){var a=W(`<div class="w-e-text-placeholder">`+r+`</div>`);e.$textAreaContainer.append(a),e.$placeholder=a}e.$placeholder.show(),e.showPlaceholder=!0;return}!i&&e.showPlaceholder&&((n=e.$placeholder)==null||n.hide(),e.showPlaceholder=!1)}}(this,t),AE((function(){pO(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function TO(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&&TO(t)}function EO(){return W(`<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 DO(){return W(`<div class="w-e-bar-divider"></div>`)}function OO(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=Hw?`cmd`:`ctrl`;r=r.replace(`mod`,a)}if(i)r&&(e.attr(`data-tooltip`,r),e.addClass(`w-e-menu-tooltip-v5`),e.addClass(`tooltip-right`));else{var o=r?n+`
|
|
37
|
+
`+r:n;e.attr(`data-tooltip`,o),e.addClass(`w-e-menu-tooltip-v5`)}}}lC(`match`,(function(e,t,n){return[function(t){var n=Yy(this),r=t==null?void 0:Ob(t,e);return r?Cb(r,t,n):new RegExp(t)[e](Jx(n))},function(e){var r=xb(this),i=Jx(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return pC(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=pC(r,i))!==null;){var u=Jx(s[0]);c[l]=u,u===``&&(r.lastIndex=uC(i,lx(r.lastIndex),o)),l++}return l===0?null:c}]}));var kO=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=W(`<div class="w-e-bar-item"></div>`),this.$button=W(`<button type="button"></button>`),this.disabled=!1,this.menu=t;var i=t.tag,a=t.width;if(i!==`button`)throw Error(`Invalid tag '`+i+`', expected 'button'`);var o=t.title,s=t.hotkey,c=s===void 0?``:s,l=t.iconSvg,u=l===void 0?``:l,d=this.$button;if(u){var f=W(u);TO(f),d.append(f)}else d.text(o);OO(d,u,o,c,n),n&&u&&d.append(W(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),AE((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),FO(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=FO(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=FO(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=FO(this),t=this.$button,n=this.menu.isDisabled(e);(e.selection==null||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}(),Uce=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return bC(t,e),t.prototype.onButtonClick=function(){},t}(kO),AO=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=fw.get(e);t??(t=new Set,fw.set(e,t)),t.add(this),pw.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=pw.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=pw.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),Wce=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`dropPanel`,n.$elem=W(`<div class="w-e-drop-panel"></div>`),n}return bC(t,e),t.prototype.genSelfElem=function(){return null},t}(AO),Gce=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=EO();i.$button.append(a)}return i}return bC(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(e.getPanelContentElem!=null){var t=FO(this);if(this.dropPanel==null){var n=new Wce(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var i=this.dropPanel;i.isShow?i.hide():(r=e.getPanelContentElem(t),i.renderContent(r),i.show())}var a=this.dropPanel;if(a.isShow){var o=this.$elem,s=o.offset().left,c=o.parents(`.w-e-bar`);s-c.offset().left>=c.width()/2?a.$elem.css({left:`none`,right:`0`}):a.$elem.css({left:`0`,right:`none`})}}},t}(kO),Kce=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=W(`<div class="w-e-modal"></div>`),r.width=0,n&&(r.width=n);var i=r.$elem;return i.on(`click`,(function(e){return e.stopPropagation()})),i.on(`keyup`,(function(e){e.code===`Escape`&&(r.hide(),t.restoreSelection())})),r}return bC(t,e),t.prototype.genSelfElem=function(){var e=this,t=W(`<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=pw.get(this);return t.on(`click`,(function(){e.hide(),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}(AO);function jO(e,t,n){var r=W(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=W(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function MO(e,t){var n=W(`<div class="button-container"></div>`),r=W(`<button type="button" id="`+e+`">`+t+`</button>`);return n.append(r),[n[0],r[0]]}var qce=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=W(`body`),i.modal=null,i.menu=n,i}return bC(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=FO(this),t=this.menu.getModalPositionNode(e);return L.isElement(t)?PD(e,t,`modal`):ND(e)},t.prototype.handleModal=function(){var e=FO(this),t=this.menu;if(this.modal==null){var n=new Kce(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){t===void 0&&(t=!1);var n=FO(this),r=this.menu;if(r.getModalContentElem!=null){var i=J.getTextarea(n),a=(J.getToolbar(n)?.getConfig()||{}).modalAppendToBody,o=r.getModalContentElem(n);if(e.renderContent(o),a)e.setStyle({left:`0`,right:`0`});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(i.$textAreaContainer)),e.show(),a||FD(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(kO),Jce=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=W(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return bC(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=W(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=W(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=W(`<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>`);o.append(s),o.addClass(`selected`)}o.append(W(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(AO),Yce=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=W(`<div class="w-e-bar-item"></div>`),this.$button=W(`<button type="button" class="select-button"></button>`),this.disabled=!1,this.selectList=null;var i=t.tag,a=t.title,o=t.width,s=t.iconSvg,c=s===void 0?``:s,l=t.hotkey,u=l===void 0?``:l;if(i!==`select`)throw Error(`Invalid tag '`+i+`', expected 'select'`);var d=this.$button;o&&d.css(`width`,o+`px`),d.attr(`data-menu-key`,e),OO(d,c,a,u,n),this.$elem.append(d),this.menu=t,AE((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),FO(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=FO(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new Jce(t,n.selectPanelWidth);var r=this.selectList,i=n.getOptions(t);r.renderList(i),r.appendTo(this.$elem),r.show(),r.$elem.on(`click`,`li`,(function(t){var n=t.target;if(n!=null){t.preventDefault();var r=W(n).attr(`data-value`);e.onChange(r)}}))}else (r=this.selectList).isShow?r.hide():(i=n.getOptions(t),r.renderList(i),r.show())}},e.prototype.onChange=function(e){var t=FO(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=FO(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r=``,i=0;i<n;i++){var a=e[i];if(a.value===t){r=a.text;break}}return r}(t.getOptions(e),n.toString()),i=this.$button,a=EO();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=FO(this),t=this.menu.isDisabled(e),n=this.$button;(e.selection==null||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}(),NO=function(){function e(e){this.$elem=W(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=W(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=W(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=W(n);TO(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=EO();a.append(s),i.append(a);var c=this.$container;i.append(c);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var i=t.find(`button`),a=i.length;if(a!==0){var o=0;i.each((function(e){W(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),PO=new WeakMap;function FO(e){var t=dw.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function IO(e,t,n){n===void 0&&(n=!1);var r=PO.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new Gce(e,t,n):o?new qce(e,t,n):new Uce(e,t,n)}if(i===`select`&&(r=new Yce(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return PO.set(t,r),r}function Xce(e,t){var n=e.selection;return n!=null&&!V.isCollapsed(n)&&!J.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))&&!!H.isText(t)}var Zce=function(){function e(){var e=this;this.$elem=W(`<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=n_((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,i=r===void 0?null:r,a=n.menuKeys,o=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&L.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),AE((function(){var t=e.getEditorInstance(),n=e.$elem;n.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),J.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;AE((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=DO();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=Xw[e];if(i==null)throw Error(`Not found menu item factory by key '`+e+`'`);if(typeof i!=`function`)throw Error(`Menu item factory (key='`+e+`') is not a function`);r=i(),n[e]=r}var a=IO(e,r);this.hoverbarItems.push(a),dw.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),L.isElement(e)){var r=PD(t,e,`bar`);n.css(r),FD(t,n);return}if(H.isText(e))return r=ND(t),n.css(r),void FD(t,n);throw Error(`hoverbar.setPosition error, current selected node is not elem nor text`)},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],i=function(i){var a=t[i],o=a.match,s=a.menuKeys,c=s===void 0?[]:s,l=o||function(e,t){return J.checkNodeType(t,i)},u=CC(R.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(u!=null)return n=u[0],r=c,`break`};for(var a in t)if(i(a)===`break`)break;return n==null||r.length===0?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=lw.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=e===void 0?{}:e,n=t.text;return n&&n.match==null&&(n.match=Xce),t},e.prototype.isSamePath=function(e,t){if(e==null||t==null)return!1;var n=J.findPath(null,e),r=J.findPath(null,t);return B.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function LO(e,t,n,r){if(vw.set(e,t),yw.set(e,n),L.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return LO(t,n,e,r)})),R.isVoid(r,e)){var a=CC(CC(z.texts(e),1)[0],1)[0];vw.set(a,0),yw.set(a,e)}}}function Qce(e){var t=e.selector,n=t===void 0?``:t,r=e.config,i=r===void 0?{}:r,a=e.content,o=e.html,s=e.plugins,c=s===void 0?[]:s,l=(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];qx.withoutSaving(t,(()=>{R.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];qx.withoutSaving(t,(()=>{R.withoutNormalizing(t,(()=>{for(var e of r.map(Rf.inverse).reverse())t.apply(e)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:a}=i,o=a[a.length-1],s=o&&o[o.length-1],c=((e,t)=>!(!t||e.type!==`set_selection`||t.type!==`set_selection`))(e,s),l=qx.isSaving(t),u=qx.isMerging(t);if(l??=((e,t)=>e.type!==`set_selection`||e.properties!=null&&e.newProperties!=null)(e),l){if(u??=o!=null&&(r.length!==0||((e,t)=>e.type===`set_selection`||!(!t||e.type!==`insert_text`||t.type!==`insert_text`||e.offset!==t.offset+t.text.length||!B.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!B.equals(e.path,t.path)))(e,s)||c),o&&u)c&&o.pop(),o.push(e);else{var d=[e];a.push(d)}for(;a.length>100;)a.shift();(e=>e.type!==`set_selection`)(e)&&(i.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,i=t.insertFragment,a=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=J.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=J.getLeftLengthOfMaxLength(t);n<=0||n<z.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(e.length!==1)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(J.getLeftLengthOfMaxLength(t)<z.string(n).length)return;i(e)}else i(e)},t.dangerouslyInsertHtml=function(e,n){if(e===void 0&&(e=``),n===void 0&&(n=!1),e)if(t.getConfig().maxLength){var r=J.getLeftLengthOfMaxLength(t);if(!(r<=0)){var i=document.createElement(`div`);i.innerHTML=e,r<Array.from(i.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===jw.TEXT_NODE?e+(t.textContent||``):n===jw.ELEMENT_NODE?oD.has(r.toLowerCase())?e:e+(t.textContent||``):e:e}),``).length||a(e,n)}}else a(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=DD(t);if(r.on(e,n),e===`destroyed`&&kD(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),kD(t,i)}},t.once=function(e,n){DD(t).once(e,n)},t.off=function(e,n){DD(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=DD(t);i.emit.apply(i,wC([e],CC(n))),e===`destroyed`&&(AD(t).forEach((function(e){return i.off(`destroyed`,e)})),jD(t))},t}(function(e){var t=e;return t.select=function(e){U.select(t,e)},t.deselect=function(){var n=t.selection,r=J.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&U.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||U.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Dw.get(t);e!=null&&(t.focus(),U.select(t,e))},t.getSelectionPosition=function(){return ND(t)},t.getNodePosition=function(e){return PD(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=CC(V.edges(e),2),r=n[0],i=n[1],a=CC(R.edges(t,[]),2),o=a[0],s=a[1];return!(!Hf.equals(r,o)||!Hf.equals(i,s))},t.selectAll=function(){var e=R.start(t,[]),n=R.end(t,[]);U.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,i=t.apply,a=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,a,o,s,c,l,u,d=[];switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:try{for(var f=SC(R.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=CC(p.value,2),h=m[0],g=m[1],_=J.findKey(t,h);d.push([g,_])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}break;case`insert_node`:case`remove_node`:case`merge_node`:case`split_node`:try{for(var v=SC(R.levels(t,{at:B.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=CC(y.value,2);h=b[0],g=b[1],_=J.findKey(t,h),d.push([g,_])}}catch(e){a={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}break;case`move_node`:try{for(var x=SC(R.levels(t,{at:B.common(B.parent(e.path),B.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=CC(S.value,2);h=C[0],g=C[1],_=J.findKey(t,h),d.push([g,_])}}catch(e){s={error:e}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}}i(e);try{for(var w=SC(d),T=w.next();!T.done;T=w.next()){var E=CC(T.value,2);g=E[0],_=E[1],h=CC(R.node(t,g),1)[0],ww.set(h,_)}}catch(e){l={error:e}}finally{try{T&&!T.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if(n!==`line`)return a(n);if(e.selection&&V.isCollapsed(e.selection)){var r=R.above(e,{match:function(t){return R.isBlock(e,t)},at:e.selection});if(r){var i=CC(r,2)[1],o=function(e,t){var n=R.range(e,V.end(t)),r=Array.from(R.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(PE(e,R.range(e,r[i]),n))return R.range(e,r[i],n);if(r.length<2)return R.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)PE(e,R.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return R.range(e,r[a],n)}(t,R.range(e,i,e.selection.anchor));V.isCollapsed(o)||U.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&Dw.set(t,e),t.emit(`change`),n()},t.handleTab=function(){t.insertText(` `)},t.getHtml=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return jE(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return z.string(e)})).join(`
|
|
38
|
+
`)},t.getSelectionText=function(){var n=t.selection;return n==null?``:R.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=R.nodes(t,{at:[],universal:!0});try{for(var s=SC(o),c=s.next();!c.done;c=s.next()){var l=CC(c.value,1)[0];if(L.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=ME(J.findKey(t,l).id);a.push(xC(xC({},l),{id:u}))}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=e===void 0?[]:e;if(n.length>1)return!1;var r=n[0];if(r==null)return!0;if(L.isElement(r)&&r.type===`paragraph`){var i=r.children,a=i===void 0?[]:i;if(a.length>1)return!1;var o=a[0];if(o==null||H.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){U.delete(t,{at:{anchor:R.start(t,[]),focus:R.end(t,[])}}),t.children.length===0&&U.insertNodes(t,[{type:`paragraph`,children:[{text:``}]}])},t.getParentNode=function(e){return J.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(e===void 0&&(e=``),n===void 0&&(n=!1),e){var r=document.createElement(`div`);r.innerHTML=e;var i=Array.from(r.childNodes);if(i=i.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===jw.TEXT_NODE||t===jw.ELEMENT_NODE&&!oD.has(n.toLowerCase())})),i.length!==0){var a=t.selection;if(a!=null){var o=null;J.isSelectedEmptyParagraph(t)&&!n&&(o=[a.focus.path[0]]),r.setAttribute(`hidden`,`true`),document.body.appendChild(r);var s=0;i.forEach((function(e){var n=e.nodeType,r=e.nodeName,i=e.textContent,a=i===void 0?``:i;if(n!==jw.TEXT_NODE)if(r!==`BR`){var o=e,c=!1;if(FE.includes(r.toLowerCase()))c=!0;else for(var l in RE)if(o.matches(l)){c=!0;break}if(c){var u=eD(W(o),t);Array.isArray(u)?(u.forEach((function(e){return sD(t,e)})),s++):(sD(t,u),s++),J.isSelectedVoidNode(t)&&t.move(1);return}var d=window.getComputedStyle(o).display;J.isSelectedEmptyParagraph(t)||d.indexOf(`inline`)<0&&t.insertBreak(),t.dangerouslyInsertHtml(o.innerHTML,!0)}else t.insertText(`
|
|
39
|
+
`);else{if(!a||!a.trim())return;t.insertNode({text:a})}})),s&&o&&J.isEmptyPath(t,o)&&U.removeNodes(t,{at:o}),r.remove()}}}},t.setHtml=function(e){e===void 0&&(e=``);var n=t.isDisabled(),r=t.isFocused(),i=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var a=nD(t,e);if(U.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(R.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Xw)e.push(t);return e},t.getConfig=function(){var e=mw.get(t);if(e==null)throw Error(`Can not get editor config`);return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(n===void 0?{}:n)[e]||{}},t.alert=function(e,n){n===void 0&&(n=`info`);var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=Bce(Yd());return t.id=`wangEditor-`+ uce++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(J.toDOMNode(t,t).focus({preventScroll:!0}),Ew.set(t,!0),e){var n=R.end(t,[]);U.select(t,n)}else{var r=Dw.get(t);r?U.select(t,r):U.select(t,R.start(t,[]))}},t.isFocused=function(){return!!Ew.get(t)},t.blur=function(){J.toDOMNode(t,t).blur(),U.deselect(t),Ew.set(t,!1)},t.updateView=function(){J.getTextarea(t).changeViewState();var e=J.getToolbar(t);e&&e.changeToolbarState();var n=J.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=J.getTextarea(t);e.destroy(),aw.delete(t),ow.delete(e);var n=J.getToolbar(t);n&&(n.destroy(),cw.delete(t),sw.delete(n));var r=J.getHoverbar(t);r&&(r.destroy(),uw.delete(t),lw.delete(r)),t.isDestroyed=!0,t.emit(`destroyed`)}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n=`编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能`;n+=`
|
|
40
|
+
You has disabled editor scroll, please do this yourself`,console.warn(n);return}var r=W(`#`+e);if(r.length!==0){var i=r[0];if(!J.hasDOMNode(t,i))return n=`Element (found by id is '`+e+`') is not in editor DOM`,n+=`
|
|
41
|
+
通过 id '`+e+`' 找到的 element 不在 editor DOM 之内`,void console.error(n,i);var a=J.getTextarea(t),o=a.$textAreaContainer,s=a.$scroll,c=r.offset().top,l=o.offset().top;s[0].scrollBy({top:c-l,behavior:`smooth`})}},t.showProgressBar=function(e){e<1||J.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){fw.get(t)?.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 J.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=J.getToolbar(t);n&&(e=n.$box);var r=J.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
|
|
42
|
+
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);r.addClass(`w-e-full-screen-container`);var i=r.css(`z-index`);r.attr(`data-z-index`,i.toString()),t.isFullScreen=!0,t.emit(`fullScreen`)}},t.unFullScreen=function(){if(t.isFullScreen){var e=J.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass(`w-e-full-screen-container`),t.isFullScreen=!1,t.emit(`unFullScreen`)}),200)}},t.getEditableContainer=function(){return J.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return tD(e,`data-w-e-textarea`,t)}(l,n))throw Error(`Repeated create editor by selector '`+n+`'`);var u=function(e){e===void 0&&(e={});var t=r_(Yw),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return Hm(t,(function(e,t){n[t]=xC(xC({},e),i[t]||{})})),delete e.MENU_CONF,xC({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+`:
|
|
43
|
+
`+e)}},e)}(i);mw.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=nD(l,o)),a&&a.length&&(l.children=a),l.children.length===0&&(l.children=[{type:`paragraph`,children:[{text:``}]}]),J.normalizeContent(l),n){var p=new wO(n);aw.set(l,p),ow.set(p,l),p.changeViewState(),AE((function(){var e=p.$scroll;e!=null&&e.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
|
|
44
|
+
Textarea height < 300px . This may be cause modal and hoverbar position error`,e)}));var m=void 0;Object.keys(f).length>0&&(m=new Zce,lw.set(m,l),uw.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return LO(e,t,l,l)}));var h=u.onCreated,g=u.onDestroyed;return h&&l.on(`created`,(function(){return h(l)})),g&&l.on(`destroyed`,(function(){return g(l)})),AE((function(){return l.emit(`created`)})),l}var $ce=GS(`splice`),ele=K.TypeError,tle=Math.max,nle=Math.min;Hx({target:`Array`,proto:!0,forced:!$ce},{splice:function(e,t){var n,r,i,a,o,s,c=Xy(this),l=ux(c),u=Mx(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=nle(tle(cx(t),0),l-u)),l+n-r>9007199254740991)throw ele(`Maximum allowed length exceeded`);for(i=vx(c,r),a=0;a<r;a++)(o=u+a)in c&&hS(i,a,c[o]);if(i.length=r,n<r){for(a=u;a<l-r;a++)s=a+n,(o=a+r)in c?c[s]=c[o]:delete c[s];for(a=l;a>l-r+n;a--)delete c[a-1]}else if(n>r)for(a=l-r;a>u;a--)s=a+n-1,(o=a+r-1)in c?c[s]=c[o]:delete c[s];for(a=0;a<n;a++)c[a+u]=arguments[a+2];return c.length=l-r+n,i}});var rle=function(){function e(e,t){var n=this;this.$toolbar=W(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=n_((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=W(e);if(r.length===0)throw Error(`Cannot find toolbar DOM by selector '`+e+`'`);this.$box=r;var i=this.$toolbar;i.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),r.append(i),AE((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,i=r.toolbarKeys,a=i===void 0?[]:i,o=r.insertKeys,s=o===void 0?{index:0,keys:[]}:o,c=r.excludeKeys,l=c===void 0?[]:c,u=r_(a);s.keys.length>0&&(typeof s.keys==`string`&&(s.keys=[s.keys]),s.keys.forEach((function(e,t){u.splice(s.index+t,0,e)})));var d=u.filter((function(e){if(typeof e==`string`){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),f=d.length;d.forEach((function(r,i){if(r===`|`){if(i===0||i+1===f||t===`|`)return;var a=DO();n.append(a),t=r;return}if(typeof r==`string`)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 NO(e)}(e),i=e.menuKeys,a=i===void 0?[]:i,o=this.config.excludeKeys,s=o===void 0?[]:o;a.forEach((function(e){s.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof NO,i=this.menus,a=i[e];if(a==null){var o=Xw[e];if(o==null)throw Error(`Not found menu item factory by key '`+e+`'`);if(typeof o!=`function`)throw Error(`Menu item factory (key='`+e+`') is not a function`);a=o(),i[e]=a}else console.warn(`Duplicated toolbar menu key '`+e+`'
|
|
45
|
+
重复注册了菜单栏 menu '`+e+`'`);var s=IO(e,a,r);this.toolbarItems.push(s),dw.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=sw.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),ile=Xb.EXISTS,ale=jb.f,RO=Function.prototype,ole=q(RO.toString),zO=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sle=q(zO.exec);function BO(e){var t=e.server,n=t===void 0?``:t,r=e.fieldName,i=r===void 0?``:r,a=e.maxFileSize,o=a===void 0?10485760:a,s=e.maxNumberOfFiles,c=s===void 0?100:s,l=e.meta,u=l===void 0?{}:l,d=e.metaWithUrl,f=d!==void 0&&d,p=e.headers,m=p===void 0?{}:p,h=e.withCredentials,g=h!==void 0&&h,_=e.timeout,v=_===void 0?1e4:_,y=e.onBeforeUpload,b=y===void 0?function(e){return e}:y,x=e.onSuccess,S=x===void 0?function(e,t){}:x,C=e.onError,w=C===void 0?function(e,t,n){console.error(e.name+` upload error`,t,n)}:C,T=e.onProgress,E=T===void 0?function(e){}:T;if(!n)throw Error(`Cannot get upload server address
|
|
46
|
+
没有配置上传地址`);if(!i)throw Error(`Cannot get fieldName
|
|
47
|
+
没有配置 fieldName`);var D=n;f&&(D=function(e,t){var n=CC(e.split(`#`),2),r=n[0],i=n[1],a=[];Hm(t,(function(e,t){a.push(t+`=`+e)}));var o=a.join(`&`);return r=r.indexOf(`?`)>0?r+`&`+o:r+`?`+o,i?r+`#`+i:r}(D,u));var O=new Pv({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(Mae,{endpoint:D,headers:m,formData:!0,fieldName:i,bundle:!0,withCredentials:g,timeout:v});return O.on(`upload-success`,(function(e,t){var n=t.body,r=n===void 0?{}:n;try{S(e,r)}catch(e){console.error(`wangEditor upload file - onSuccess error`,e)}O.removeFile(e.id)})),O.on(`progress`,(function(e){e<1||E(e)})),O.on(`upload-error`,(function(e,t,n){try{w(e,t,n)}catch(e){console.error(`wangEditor upload file - onError error`,e)}O.removeFile(e.id)})),O.on(`restriction-failed`,(function(e,t){try{w(e,t)}catch(e){console.error(`wangEditor upload file - onError error`,e)}O.removeFile(e.id)})),O}function VO(e){return VO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},VO(e)}function cle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){cle(e,t,n[t])}))}return e}function UO(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function WO(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 GO(e,t,n){return t&&WO(e.prototype,t),n&&WO(e,n),e}function KO(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function qO(e,t){if(t&&(VO(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return KO(e)}function JO(e){return JO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},JO(e)}function YO(e,t){return YO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},YO(e,t)}function XO(e,t){if(typeof t!=`function`&&t!==null)throw 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&&YO(e,t)}gb&&!ile&&ale(RO,`name`,{configurable:!0,get:function(){try{return sle(zO,ole(this))[1]}catch{return``}}});var lle={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)}},ZO=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};UO(this,e),this.init(t,n)}return GO(e,[{key:`init`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||lle,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=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=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=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=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:(typeof e[0]==`string`&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}},{key:`create`,value:function(t){return new e(this.logger,HO({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),QO=function(){function e(){UO(this,e),this.observers={}}return GO(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=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers[`*`]&&[].concat(this.observers[`*`]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function $O(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function ek(e){return e==null?``:``+e}function ule(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function tk(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function nk(e,t,n){var r=tk(e,t,Object);r.obj[r.k]=n}function rk(e,t){var n=tk(e,t),r=n.obj,i=n.k;if(r)return r[i]}function ik(e,t,n){var r=rk(e,n);return r===void 0?rk(t,n):r}function ak(e,t,n){for(var r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?typeof e[r]==`string`||e[r]instanceof String||typeof t[r]==`string`||t[r]instanceof String?n&&(e[r]=t[r]):ak(e[r],t[r],n):e[r]=t[r]);return e}function ok(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var dle={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`};function fle(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return dle[e]})):e}var sk=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function ck(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i||typeof i[r[a]]==`string`&&a+1<r.length)return;if(i[r[a]]===void 0){for(var o=2,s=r.slice(a,a+o).join(n),c=i[s];c===void 0&&r.length>a+o;)o++,c=i[s=r.slice(a,a+o).join(n)];if(c===void 0)return;if(typeof c==`string`)return c;if(s&&typeof c[s]==`string`)return c[s];var l=r.slice(a+o).join(n);return l?ck(c,l,n):void 0}i=i[r[a]]}return i}}var ple=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return UO(this,t),n=qO(this,JO(t).call(this)),sk&&QO.call(KO(n)),n.data=e||{},n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return XO(t,QO),GO(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&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o=[e,t];n&&typeof n!=`string`&&(o=o.concat(n)),n&&typeof n==`string`&&(o=o.concat(i?n.split(i):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`));var s=rk(this.data,o);return s||!a||typeof n!=`string`?s:ck(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:`addResource`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=this.options.keySeparator;a===void 0&&(a=`.`);var o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(r=t,t=(o=e.split(`.`))[1]),this.addNamespaces(t),nk(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}},{key:`addResources`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var i in n)typeof n[i]!=`string`&&Object.prototype.toString.apply(n[i])!==`[object Array]`||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit(`added`,e,t,n)}},{key:`addResourceBundle`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(`.`)>-1&&(r=n,n=t,t=(o=e.split(`.`))[1]),this.addNamespaces(t);var s=rk(this.data,o)||{};r?ak(s,n,i):s=HO({},s,n),nk(this.data,o,s),a.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 this.getResource(e,t)!==void 0}},{key:`getResourceBundle`,value:function(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?HO({},{},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}(),lk={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))})),t}},uk={},dk=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return UO(this,t),n=qO(this,JO(t).call(this)),sk&&QO.call(KO(n)),ule([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,KO(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=ZO.create(`translator`),n}return XO(t,QO),GO(t,[{key:`changeLanguage`,value:function(e){e&&(this.language=e)}},{key:`exists`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var n=this.resolve(e,t);return n&&n.res!==void 0}},{key:`extractFromKey`,value:function(e,t){var n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);var r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return typeof i==`string`&&(i=[i]),{key:e,namespaces:i}}},{key:`translate`,value:function(e,n,r){var i=this;if(VO(n)!==`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||={},e==null)return``;Array.isArray(e)||(e=[String(e)]);var a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,o=this.extractFromKey(e[e.length-1],n),s=o.key,c=o.namespaces,l=c[c.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()===`cimode`)return d?l+(n.nsSeparator||this.options.nsSeparator)+s:s;var f=this.resolve(e,n),p=f&&f.res,m=f&&f.usedKey||s,h=f&&f.exactUsedKey||s,g=Object.prototype.toString.apply(p),_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(y&&p&&typeof p!=`string`&&typeof p!=`boolean`&&typeof p!=`number`&&_.indexOf(g)<0&&(typeof v!=`string`||g!==`[object Array]`)){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(m,p,HO({},n,{ns:c})):`key '${s} (${this.language})' returned an object instead of string.`;if(a){var b=g===`[object Array]`,x=b?[]:{},S=b?h:m;for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var w=`${S}${a}${C}`;x[C]=this.translate(w,HO({},n,{joinArrays:!1,ns:c})),x[C]===w&&(x[C]=p[C])}p=x}}else if(y&&typeof v==`string`&&g===`[object Array]`)(p=p.join(v))&&(p=this.extendTranslation(p,e,n,r));else{var T=!1,E=!1,D=n.count!==void 0&&typeof n.count!=`string`,O=t.hasDefaultValue(n),k=D?this.pluralResolver.getSuffix(u,n.count):``,ee=n[`defaultValue${k}`]||n.defaultValue;!this.isValidLookup(p)&&O&&(T=!0,p=ee),this.isValidLookup(p)||(E=!0,p=s);var te=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,A=O&&ee!==p&&this.options.updateMissing;if(E||T||A){if(this.logger.log(A?`updateKey`:`missingKey`,u,l,s,A?ee:p),a){var ne=this.resolve(s,HO({},n,{keySeparator:!1}));ne&&ne.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 j=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&M&&M[0])for(var N=0;N<M.length;N++)j.push(M[N]);else this.options.saveMissingTo===`all`?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var P=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,t,A?r:te,A,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,t,A?r:te,A,n),i.emit(`missingKey`,e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?j.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){P([e],s+t,n[`defaultValue${t}`]||ee)}))})):P(j,s,ee))}p=this.extendTranslation(p,e,n,f,r),E&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(E||T)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:`extendTranslation`,value:function(e,t,n,r,i){var a=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(HO({},n,{interpolation:HO({},this.options.interpolation,n.interpolation)}));var o,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);o=c&&c.length}var l=n.replace&&typeof n.replace!=`string`?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=HO({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);o<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f=typeof d==`string`?[d]:d;return e!=null&&f&&f.length&&!1!==n.applyPostProcessor&&(e=lk.handle(f,e,t,this.options&&this.options.postProcessPassResolved?HO({i18nResolved:r},n):n,this)),e}},{key:`resolve`,value:function(e){var t,n,r,i,a,o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof e==`string`&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var c=o.extractFromKey(e,s),l=c.key;n=l;var u=c.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var d=s.count!==void 0&&typeof s.count!=`string`,f=s.context!==void 0&&(typeof s.context==`string`||typeof s.context==`number`)&&s.context!==``,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(a=e,!uk[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(uk[`${p[0]}-${e}`]=!0,o.logger.warn(`key "${n}" for languages "${p.join(`, `)}" won't get resolved as namespace "${a}" 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(!o.isValidLookup(t)){i=n;var a,c,u=l,p=[u];for(o.i18nFormat&&o.i18nFormat.addLookupKeys?o.i18nFormat.addLookupKeys(p,l,n,e,s):(d&&(a=o.pluralResolver.getSuffix(n,s.count)),d&&f&&p.push(u+a),f&&p.push(u+=`${o.options.contextSeparator}${s.context}`),d&&p.push(u+=a));c=p.pop();)o.isValidLookup(t)||(r=c,t=o.getResource(n,e,c,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}},{key:`isValidLookup`,value:function(e){return!(e===void 0||!this.options.returnNull&&e===null||!this.options.returnEmptyString&&e===``)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?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)&&e[n]!==void 0)return!0;return!1}}]),t}();function fk(e){return e.charAt(0).toUpperCase()+e.slice(1)}var mle=function(){function e(t){UO(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ZO.create(`languageUtils`)}return GO(e,[{key:`getScriptPartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return null;var t=e.split(`-`);return t.length===2?null:(t.pop(),t[t.length-1].toLowerCase()===`x`?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(typeof e==`string`&&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()})):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=fk(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=fk(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=fk(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(this.options.load===`languageOnly`||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(e.indexOf(r)===0)return e}))}})),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t):null}},{key:`getFallbackCodes`,value:function(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),typeof e==`string`&&(e=[e]),Object.prototype.toString.apply(e)===`[object Array]`)return e;if(!t)return e.default||[];var n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}},{key:`toResolveHierarchy`,value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return typeof e==`string`&&e.indexOf(`-`)>-1?(this.options.load!==`languageOnly`&&a(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&a(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&a(this.getLanguagePartFromCode(e))):typeof e==`string`&&a(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))})),i}}]),e}(),hle=[{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`.split(`.`),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}],gle={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e===0?2:1)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}};function _le(){var e={};return hle.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:gle[t.fc]}}))})),e}var vle=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};UO(this,e),this.languageUtils=t,this.options=n,this.logger=ZO.create(`pluralResolver`),this.rules=_le()}return GO(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 i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),a=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a=`plural`:a===1&&(a=``));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON===`v1`?a===1?``:typeof a==`number`?`_plural_${a.toString()}`:o():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn(`no plural rule found for: ${e}`),``}}]),e}(),yle=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};UO(this,e),this.logger=ZO.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return GO(e,[{key:`init`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};var t=e.interpolation;this.escape=t.escape===void 0?fle:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?ok(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?ok(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?ok(t.nestingPrefix):t.nestingPrefixEscaped||ok(`$t(`),this.nestingSuffix=t.nestingSuffix?ok(t.nestingSuffix):t.nestingSuffixEscaped||ok(`)`),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||`,`,this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0&&t.alwaysFormat,this.resetRegExp()}},{key:`reset`,value:function(){this.options&&this.init(this.options)}},{key:`resetRegExp`,value:function(){var e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,`g`);var t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,`g`);var n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,`g`)}},{key:`interpolate`,value:function(e,t,n,r){var i,a,o,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,`$$$$`)}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var i=ik(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,HO({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(ik(t,c,o),l,n,HO({},r,t,{interpolationkey:o}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(o=0;i=t.regex.exec(e);){if((a=u(i[1].trim()))===void 0)if(typeof d==`function`){var n=d(e,i,r);a=typeof n==`string`?n:``}else{if(f){a=i[0];continue}s.logger.warn(`missed to pass in variable ${i[1]} for interpolating ${e}`),a=``}else typeof a==`string`||s.useRawValueToEscape||(a=ek(a));var c=t.safeValue(a);if(e=e.replace(i[0],c),f?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++o>=s.maxReplaces)break}})),e}},{key:`nest`,value:function(e,t){var n,r,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=HO({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=(i=this.interpolate(i,o)).replace(/'/g,`"`);try{o=JSON.parse(i),t&&(o=HO({},t,o))}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),c=u,l=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&typeof r!=`string`)return r;typeof r!=`string`&&(r=ek(r)),r||=(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),``),l&&(r=c.reduce((function(e,t){return i.format(e,t,a.lng,HO({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),ble=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return UO(this,t),i=qO(this,JO(t).call(this)),sk&&QO.call(KO(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=ZO.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return XO(t,QO),GO(t,[{key:`queueLoad`,value:function(e,t,n,r){var i=this,a=[],o=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s=`${e}|${t}`;!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(i.state[s]===1?o.indexOf(s)<0&&o.push(s):(i.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),a.indexOf(s)<0&&a.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(a.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:a,pending:o,toLoadLanguages:s,toLoadNamespaces:c}}},{key:`loaded`,value:function(e,t,n){var r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(n){(function(e,t,n,r){var i=tk(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],a[o].push(n)})(n.loaded,[i],a),function(e,t){for(var n=e.indexOf(t);n!==-1;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),n.pending.length!==0||n.done||(Object.keys(n.loaded).forEach((function(e){o[e]||(o[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit(`loaded`,o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:`read`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,c){s&&c&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*a,o)}),a):o(s,c)})):o(null,{})}},{key:`prepareLoading`,value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=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.`),i&&i();typeof e==`string`&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t==`string`&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.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&&arguments[1]!==void 0?arguments[1]:``,r=e.split(`|`),i=r[0],a=r[1];this.read(i,a,`read`,void 0,void 0,(function(r,o){r&&t.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,r),!r&&o&&t.logger.log(`${n}loaded namespace ${a} for language ${i}`,o),t.loaded(e,r,o)}))}},{key:`saveMissing`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn(`did not save key "${n}" as the namespace "${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!!!`):n!=null&&n!==``&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,HO({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function xle(){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(VO(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),VO(e[2])===`object`||VO(e[3])===`object`){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 pk(e){return typeof e.ns==`string`&&(e.ns=[e.ns]),typeof e.fallbackLng==`string`&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS==`string`&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf(`cimode`)<0&&(e.whitelist=e.whitelist.concat([`cimode`])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e}function mk(){}var hk=new(function(e){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(UO(this,t),e=qO(this,JO(t).call(this)),sk&&QO.call(KO(e)),e.options=pk(n),e.services={},e.logger=ZO,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),qO(e,KO(e));setTimeout((function(){e.init(n,r)}),0)}return e}return XO(t,QO),GO(t,[{key:`init`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?typeof e==`function`?new e:e:null}if(typeof t==`function`&&(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=HO({},xle(),this.options,pk(t)),this.format=this.options.interpolation.format,n||=mk,!this.options.isClone){this.modules.logger?ZO.init(r(this.modules.logger),this.options):ZO.init(null,this.options);var i=new mle(this.options);this.store=new ple(this.options.resources,this.options);var a=this.services;a.logger=ZO,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new vle(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new yle(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new ble(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new dk(this.services,this.options),this.translator.on(`*`,(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];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 o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.length>0&&o[0]!==`dev`&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=$O(),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&&e.options.compatibilityAPI!==`v1`&&!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&&arguments[1]!==void 0?arguments[1]:mk,r=typeof e==`string`?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()===`cimode`)return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).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,n)}else n(null)}},{key:`reloadResources`,value:function(e,t,n){var r=$O();return e||=this.languages,t||=this.options.ns,n||=mk,this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:`use`,value:function(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&lk.addPostProcessor(e),e.type===`3rdParty`&&this.modules.external.push(e),this}},{key:`changeLanguage`,value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=$O();this.emit(`languageChanging`,e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var a=typeof i==`string`?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a)),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){(function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit(`languageChanged`,i),n.logger.log(`languageChanged`,i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))})(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:`getFixedT`,value:function(e,t,n){var r=this,i=function e(t,i){var a;if(VO(i)!==`object`){for(var o=arguments.length,s=Array(o>2?o-2:0),c=2;c<o;c++)s[c-2]=arguments[c];a=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else a=HO({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var l=r.options.keySeparator||`.`,u=n?`${n}${l}${t}`:t;return r.t(u,a)};return typeof e==`string`?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{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&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if(r.toLowerCase()===`cimode`)return!0;var o=function(e,n){var r=t.services.backendConnector.state[`${e}|${n}`];return r===-1||r===2};if(n.precheck){var s=n.precheck(this,o);if(s!==void 0)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e))}},{key:`loadNamespaces`,value:function(e,t){var n=this,r=$O();return this.options.ns?(typeof e==`string`&&(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=$O();typeof e==`string`&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:`dir`,value:function(e){return 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`.split(`.`).indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?`rtl`:`ltr`:`rtl`}},{key:`createInstance`,value:function(){return new t(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:`cloneInstance`,value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mk,i=HO({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=HO({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new dk(a.services,a.options),a.translator.on(`*`,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:`toJSON`,value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function gk(e,t){hk.addResourceBundle(e,`translation`,t,!0,!0)}function Sle(e){hk.changeLanguage(e)}hk.init({lng:`zh-CN`,resources:{}});var Y=hk.t.bind(hk);gk(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),gk(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var Cle=kc?{}.toString:function(){return`[object `+Ac(this)+`]`};kc||hc(Object.prototype,`toString`,Cle,{unsafe:!0});var _k=Array.isArray||function(e){return fs(e)==`Array`},vk=function(){},wle=[],yk=ys(`Reflect`,`construct`),bk=/^\s*(?:class|function)\b/,Tle=us(bk.exec),Ele=!bk.exec(vk),xk=function(e){if(!_s(e))return!1;try{return yk(vk,wle,e),!0}catch{return!1}},Dle=!yk||Qo((function(){var e;return xk(xk.call)||!xk(Object)||!xk((function(){e=!0}))||e}))?function(e){if(!_s(e))return!1;switch(Ac(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Ele||!!Tle(bk,nc(e))}:xk,Ole=Hs(`species`),Sk=Zo.Array,kle=function(e,t){return new(function(e){var t;return _k(e)&&(t=e.constructor,(Dle(t)&&(t===Sk||_k(t.prototype))||vs(t)&&(t=t[Ole])===null)&&(t=void 0)),t===void 0?Sk:t}(e))(t===0?0:t)},Ck=us([].push),wk=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=Is(c),h=ms(m),g=sl(l,u),_=yc(h),v=0,y=d||kle,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Ck(b,f)}else switch(e){case 4:return!1;case 7:Ck(b,f)}return a?-1:r||i?i:b}},Ale={forEach:wk(0),map:wk(1),filter:wk(2),some:wk(3),every:wk(4),find:wk(5),findIndex:wk(6),filterReject:wk(7)}.forEach,Tk=function(e,t){var n=[][e];return!!n&&Qo((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return Ale(this,e,arguments.length>1?arguments[1]:void 0)},Ek=function(e){if(e&&e.forEach!==Tk)try{Qs(e,`forEach`,Tk)}catch{e.forEach=Tk}};for(var Dk in Rl)Rl[Dk]&&Ek(Zo[Dk]&&Zo[Dk].prototype);Ek(Vl),gk(`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`}}),gk(`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 jle={type:`paragraph`,renderElem:function(e,t,n){return Rh(`p`,null,t)}},Ok=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function kk(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ak,jk,Mk=function(e){return e&&e.Math==Math&&e},Nk=Mk(typeof globalThis==`object`&&globalThis)||Mk(typeof window==`object`&&window)||Mk(typeof self==`object`&&self)||Mk(typeof Ok==`object`&&Ok)||function(){return this}()||Function(`return this`)(),Pk=function(e){try{return!!e()}catch{return!0}},Fk=!Pk((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Ik=Function.prototype.call,Lk=Ik.bind?Ik.bind(Ik):function(){return Ik.apply(Ik,arguments)},Rk={}.propertyIsEnumerable,zk=Object.getOwnPropertyDescriptor,Bk={f:zk&&!Rk.call({1:2},1)?function(e){var t=zk(this,e);return!!t&&t.enumerable}:Rk},Vk=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Hk=Function.prototype,Uk=Hk.bind,Wk=Hk.call,Mle=Uk&&Uk.bind(Wk),X=Uk?function(e){return e&&Mle(Wk,e)}:function(e){return e&&function(){return Wk.apply(e,arguments)}},Nle=X({}.toString),Ple=X(``.slice),Gk=function(e){return Ple(Nle(e),8,-1)},Kk=Nk.Object,Fle=X(``.split),qk=Pk((function(){return!Kk(`z`).propertyIsEnumerable(0)}))?function(e){return Gk(e)==`String`?Fle(e,``):Kk(e)}:Kk,Ile=Nk.TypeError,Jk=function(e){if(e==null)throw Ile(`Can't call method on `+e);return e},Yk=function(e){return qk(Jk(e))},Xk=function(e){return typeof e==`function`},Zk=function(e){return typeof e==`object`?e!==null:Xk(e)},Lle=function(e){return Xk(e)?e:void 0},Qk=function(e,t){return arguments.length<2?Lle(Nk[e]):Nk[e]&&Nk[e][t]},$k=X({}.isPrototypeOf),eA=Qk(`navigator`,`userAgent`)||``,tA=Nk.process,nA=Nk.Deno,rA=tA&&tA.versions||nA&&nA.version,iA=rA&&rA.v8;iA&&(jk=(Ak=iA.split(`.`))[0]>0&&Ak[0]<4?1:+(Ak[0]+Ak[1])),!jk&&eA&&(!(Ak=eA.match(/Edge\/(\d+)/))||Ak[1]>=74)&&(Ak=eA.match(/Chrome\/(\d+)/))&&(jk=+Ak[1]);var aA=jk,oA=!!Object.getOwnPropertySymbols&&!Pk((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aA&&aA<41})),sA=oA&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Rle=Nk.Object,cA=sA?function(e){return typeof e==`symbol`}:function(e){var t=Qk(`Symbol`);return Xk(t)&&$k(t.prototype,Rle(e))},zle=Nk.String,lA=function(e){try{return zle(e)}catch{return`Object`}},Ble=Nk.TypeError,uA=function(e){if(Xk(e))return e;throw Ble(lA(e)+` is not a function`)},dA=function(e,t){var n=e[t];return n==null?void 0:uA(n)},Vle=Nk.TypeError,fA=Object.defineProperty,pA=function(e,t){try{fA(Nk,e,{value:t,configurable:!0,writable:!0})}catch{Nk[e]=t}return t},mA=Nk[`__core-js_shared__`]||pA(`__core-js_shared__`,{}),hA=kk((function(e){(e.exports=function(e,t){return mA[e]||(mA[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),gA=Nk.Object,_A=function(e){return gA(Jk(e))},vA=X({}.hasOwnProperty),yA=Object.hasOwn||function(e,t){return vA(_A(e),t)},bA=0,xA=Math.random(),SA=X(1 .toString),CA=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+SA(++bA+xA,36)},wA=hA(`wks`),TA=Nk.Symbol,EA=TA&&TA.for,DA=sA?TA:TA&&TA.withoutSetter||CA,OA=function(e){if(!yA(wA,e)||!oA&&typeof wA[e]!=`string`){var t=`Symbol.`+e;oA&&yA(TA,e)?wA[e]=TA[e]:wA[e]=sA&&EA?EA(t):DA(t)}return wA[e]},kA=Nk.TypeError,AA=OA(`toPrimitive`),jA=function(e){var t=function(e,t){if(!Zk(e)||cA(e))return e;var n,r=dA(e,AA);if(r){if(t===void 0&&(t=`default`),n=Lk(r,e,t),!Zk(n)||cA(n))return n;throw kA(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Xk(n=e.toString)&&!Zk(r=Lk(n,e))||Xk(n=e.valueOf)&&!Zk(r=Lk(n,e))||t!==`string`&&Xk(n=e.toString)&&!Zk(r=Lk(n,e)))return r;throw Vle(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return cA(t)?t:t+``},MA=Nk.document,NA=Zk(MA)&&Zk(MA.createElement),PA=function(e){return NA?MA.createElement(e):{}},FA=!Fk&&!Pk((function(){return Object.defineProperty(PA(`div`),`a`,{get:function(){return 7}}).a!=7})),IA=Object.getOwnPropertyDescriptor,LA={f:Fk?IA:function(e,t){if(e=Yk(e),t=jA(t),FA)try{return IA(e,t)}catch{}if(yA(e,t))return Vk(!Lk(Bk.f,e,t),e[t])}},RA=Nk.String,zA=Nk.TypeError,BA=function(e){if(Zk(e))return e;throw zA(RA(e)+` is not an object`)},VA=Nk.TypeError,HA=Object.defineProperty,UA={f:Fk?HA:function(e,t,n){if(BA(e),t=jA(t),BA(n),FA)try{return HA(e,t,n)}catch{}if(`get`in n||`set`in n)throw VA(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},WA=Fk?function(e,t,n){return UA.f(e,t,Vk(1,n))}:function(e,t,n){return e[t]=n,e},GA=X(Function.toString);Xk(mA.inspectSource)||(mA.inspectSource=function(e){return GA(e)});var KA,qA,JA,YA=mA.inspectSource,XA=Nk.WeakMap,ZA=Xk(XA)&&/native code/.test(YA(XA)),QA=hA(`keys`),$A=function(e){return QA[e]||(QA[e]=CA(e))},ej={},tj=Nk.TypeError,nj=Nk.WeakMap;if(ZA||mA.state){var rj=mA.state||=new nj,ij=X(rj.get),aj=X(rj.has),oj=X(rj.set);KA=function(e,t){if(aj(rj,e))throw new tj(`Object already initialized`);return t.facade=e,oj(rj,e,t),t},qA=function(e){return ij(rj,e)||{}},JA=function(e){return aj(rj,e)}}else{var sj=$A(`state`);ej[sj]=!0,KA=function(e,t){if(yA(e,sj))throw new tj(`Object already initialized`);return t.facade=e,WA(e,sj,t),t},qA=function(e){return yA(e,sj)?e[sj]:{}},JA=function(e){return yA(e,sj)}}var cj={set:KA,get:qA,has:JA,enforce:function(e){return JA(e)?qA(e):KA(e,{})},getterFor:function(e){return function(t){var n;if(!Zk(t)||(n=qA(t)).type!==e)throw tj(`Incompatible receiver, `+e+` required`);return n}}},lj=Function.prototype,uj=Fk&&Object.getOwnPropertyDescriptor,dj=yA(lj,`name`),fj={EXISTS:dj,PROPER:dj&&function(){}.name===`something`,CONFIGURABLE:dj&&(!Fk||Fk&&uj(lj,`name`).configurable)},pj=kk((function(e){var t=fj.CONFIGURABLE,n=cj.get,r=cj.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;Xk(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!yA(a,`name`)||t&&a.name!==d)&&WA(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Nk?l?e[n]=a:pA(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:WA(e,n,a))})(Function.prototype,`toString`,(function(){return Xk(this)&&n(this).source||YA(this)}))})),mj=Math.ceil,hj=Math.floor,gj=function(e){var t=+e;return t!=t||t===0?0:(t>0?hj:mj)(t)},_j=Math.max,vj=Math.min,yj=function(e,t){var n=gj(e);return n<0?_j(n+t,0):vj(n,t)},bj=Math.min,xj=function(e){return e>0?bj(gj(e),9007199254740991):0},Sj=function(e){return xj(e.length)},Cj=function(e){return function(t,n,r){var i,a=Yk(t),o=Sj(a),s=yj(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},wj={includes:Cj(!0),indexOf:Cj(!1)},Tj=wj.indexOf,Ej=X([].push),Dj=function(e,t){var n,r=Yk(e),i=0,a=[];for(n in r)!yA(ej,n)&&yA(r,n)&&Ej(a,n);for(;t.length>i;)yA(r,n=t[i++])&&(~Tj(a,n)||Ej(a,n));return a},Oj=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],kj=Oj.concat(`length`,`prototype`),Aj={f:Object.getOwnPropertyNames||function(e){return Dj(e,kj)}},jj={f:Object.getOwnPropertySymbols},Mj=X([].concat),Nj=Qk(`Reflect`,`ownKeys`)||function(e){var t=Aj.f(BA(e)),n=jj.f;return n?Mj(t,n(e)):t},Pj=function(e,t){for(var n=Nj(t),r=UA.f,i=LA.f,a=0;a<n.length;a++){var o=n[a];yA(e,o)||r(e,o,i(t,o))}},Fj=/#|\.prototype\./,Ij=function(e,t){var n=Rj[Lj(e)];return n==Bj||n!=zj&&(Xk(t)?Pk(t):!!t)},Lj=Ij.normalize=function(e){return String(e).replace(Fj,`.`).toLowerCase()},Rj=Ij.data={},zj=Ij.NATIVE=`N`,Bj=Ij.POLYFILL=`P`,Vj=Ij,Hj=LA.f,Uj=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Nk:l?Nk[s]||pA(s,{}):(Nk[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Hj(n,r))&&o.value:n[r],!Vj(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Pj(a,i)}(e.sham||i&&i.sham)&&WA(a,`sham`,!0),pj(n,r,a,e)}},Wj=X(X.bind),Gj=Array.isArray||function(e){return Gk(e)==`Array`},Kj={};Kj[OA(`toStringTag`)]=`z`;var qj=String(Kj)===`[object z]`,Jj=OA(`toStringTag`),Yj=Nk.Object,Xj=Gk(function(){return arguments}())==`Arguments`,Zj=qj?Gk:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Yj(e),Jj))==`string`?n:Xj?Gk(t):(r=Gk(t))==`Object`&&Xk(t.callee)?`Arguments`:r},Qj=function(){},$j=[],eM=Qk(`Reflect`,`construct`),tM=/^\s*(?:class|function)\b/,nM=X(tM.exec),rM=!tM.exec(Qj),iM=function(e){if(!Xk(e))return!1;try{return eM(Qj,$j,e),!0}catch{return!1}},aM=!eM||Pk((function(){var e;return iM(iM.call)||!iM(Object)||!iM((function(){e=!0}))||e}))?function(e){if(!Xk(e))return!1;switch(Zj(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return rM||!!nM(tM,YA(e))}:iM,oM=OA(`species`),sM=Nk.Array,cM=function(e,t){return new(function(e){var t;return Gj(e)&&(t=e.constructor,(aM(t)&&(t===sM||Gj(t.prototype))||Zk(t)&&(t=t[oM])===null)&&(t=void 0)),t===void 0?sM:t}(e))(t===0?0:t)},lM=X([].push),uM=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=_A(c),h=qk(m),g=function(e,t){return uA(e),t===void 0?e:Wj?Wj(e,t):function(){return e.apply(t,arguments)}}(l,u),_=Sj(h),v=0,y=d||cM,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:lM(b,f)}else switch(e){case 4:return!1;case 7:lM(b,f)}return a?-1:r||i?i:b}},dM={forEach:uM(0),map:uM(1),filter:uM(2),some:uM(3),every:uM(4),find:uM(5),findIndex:uM(6),filterReject:uM(7)},fM=OA(`species`),pM=function(e){return aA>=51||!Pk((function(){var t=[];return(t.constructor={})[fM]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},mM=dM.filter;Uj({target:`Array`,proto:!0,forced:!pM(`filter`)},{filter:function(e){return mM(this,e,arguments.length>1?arguments[1]:void 0)}});var hM=qj?{}.toString:function(){return`[object `+Zj(this)+`]`};qj||pj(Object.prototype,`toString`,hM,{unsafe:!0});var gM,_M=Nk.String,vM=function(e){if(Zj(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return _M(e)},yM=function(){var e=BA(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},bM=Nk.RegExp,xM=Pk((function(){var e=bM(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),SM=xM||Pk((function(){return!bM(`a`,`y`).sticky})),CM={BROKEN_CARET:xM||Pk((function(){var e=bM(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:SM,UNSUPPORTED_Y:xM},wM=Object.keys||function(e){return Dj(e,Oj)},TM=Fk?Object.defineProperties:function(e,t){BA(e);for(var n,r=Yk(t),i=wM(t),a=i.length,o=0;a>o;)UA.f(e,n=i[o++],r[n]);return e},EM=Qk(`document`,`documentElement`),DM=$A(`IE_PROTO`),OM=function(){},kM=function(e){return`<script>`+e+`<\/script>`},AM=function(e){e.write(kM(``)),e.close();var t=e.parentWindow.Object;return e=null,t},jM=function(){try{gM=new ActiveXObject(`htmlfile`)}catch{}var e,t;jM=typeof document<`u`?document.domain&&gM?AM(gM):((t=PA(`iframe`)).style.display=`none`,EM.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(kM(`document.F=Object`)),e.close(),e.F):AM(gM);for(var n=Oj.length;n--;)delete jM.prototype[Oj[n]];return jM()};ej[DM]=!0;var MM,NM,PM=Object.create||function(e,t){var n;return e===null?n=jM():(OM.prototype=BA(e),n=new OM,OM.prototype=null,n[DM]=e),t===void 0?n:TM(n,t)},FM=Nk.RegExp,IM=Pk((function(){var e=FM(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
48
|
+
`)&&e.flags===`s`)})),LM=Nk.RegExp,RM=Pk((function(){var e=LM(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),zM=cj.get,BM=hA(`native-string-replace`,String.prototype.replace),VM=RegExp.prototype.exec,HM=VM,UM=X(``.charAt),WM=X(``.indexOf),GM=X(``.replace),KM=X(``.slice),qM=(NM=/b*/g,Lk(VM,MM=/a/,`a`),Lk(VM,NM,`a`),MM.lastIndex!==0||NM.lastIndex!==0),JM=CM.BROKEN_CARET,YM=/()??/.exec(``)[1]!==void 0;(qM||YM||JM||IM||RM)&&(HM=function(e){var t,n,r,i,a,o,s,c=this,l=zM(c),u=vM(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Lk(HM,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=JM&&c.sticky,m=Lk(yM,c),h=c.source,g=0,_=u;if(p&&(m=GM(m,`y`,``),WM(m,`g`)===-1&&(m+=`g`),_=KM(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&UM(u,c.lastIndex-1)!==`
|
|
49
|
+
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),YM&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),qM&&(r=c.lastIndex),i=Lk(VM,p?n:c,_),p?i?(i.input=KM(i.input,g),i[0]=KM(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:qM&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),YM&&i&&i.length>1&&Lk(BM,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=PM(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var XM=HM;Uj({target:`RegExp`,proto:!0,forced:/./.exec!==XM},{exec:XM});var ZM=Function.prototype,QM=ZM.apply,$M=ZM.bind,eN=ZM.call,tN=typeof Reflect==`object`&&Reflect.apply||($M?eN.bind(QM):function(){return eN.apply(QM,arguments)}),nN=OA(`species`),rN=RegExp.prototype,iN=function(e,t,n,r){var i=OA(e),a=!Pk((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Pk((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[nN]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=X(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=X(e),c=t.exec;return c===XM||c===rN.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));pj(String.prototype,e,c[0]),pj(rN,i,c[1])}r&&WA(rN[i],`sham`,!0)},aN=X(``.charAt),oN=X(``.charCodeAt),sN=X(``.slice),cN=function(e){return function(t,n){var r,i,a=vM(Jk(t)),o=gj(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=oN(a,o))<55296||r>56319||o+1===s||(i=oN(a,o+1))<56320||i>57343?e?aN(a,o):r:e?sN(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),lN=function(e,t,n){return t+(n?cN(e,t).length:1)},uN=Math.floor,dN=X(``.charAt),fN=X(``.replace),pN=X(``.slice),mN=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hN=/\$([$&'`]|\d{1,2})/g,gN=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=hN;return i!==void 0&&(i=_A(i),c=mN),fN(a,c,(function(a,c){var l;switch(dN(c,0)){case`$`:return`$`;case`&`:return e;case"`":return pN(t,0,n);case`'`:return pN(t,o);case`<`:l=i[pN(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=uN(u/10);return d===0?a:d<=s?r[d-1]===void 0?dN(c,1):r[d-1]+dN(c,1):a}l=r[u-1]}return l===void 0?``:l}))},_N=Nk.TypeError,vN=function(e,t){var n=e.exec;if(Xk(n)){var r=Lk(n,e,t);return r!==null&&BA(r),r}if(Gk(e)===`RegExp`)return Lk(XM,e,t);throw _N(`RegExp#exec called on incompatible receiver`)},yN=OA(`replace`),bN=Math.max,xN=Math.min,SN=X([].concat),CN=X([].push),wN=X(``.indexOf),TN=X(``.slice),EN=`a`.replace(/./,`$0`)===`$0`,DN=!!/./[yN]&&/./[yN](`a`,`$0`)===``;iN(`replace`,(function(e,t,n){var r=DN?`$`:`$0`;return[function(e,n){var r=Jk(this),i=e==null?void 0:dA(e,yN);return i?Lk(i,e,r,n):Lk(t,vM(r),e,n)},function(e,i){var a=BA(this),o=vM(e);if(typeof i==`string`&&wN(i,r)===-1&&wN(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=Xk(i);c||(i=vM(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=vN(a,o);if(f===null||(CN(d,f),!l))break;vM(f[0])===``&&(a.lastIndex=lN(o,xj(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=vM((f=d[g])[0]),v=bN(xN(gj(f.index),o.length),0),y=[],b=1;b<f.length;b++)CN(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=SN([_],y,v,o);x!==void 0&&CN(S,x);var C=vM(tN(i,void 0,S))}else C=gN(_,o,v,y,x,i);v>=h&&(m+=TN(o,h,v)+C,h=v+_.length)}return m+TN(o,h)}]}),!!Pk((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!EN||DN);var ON=OA(`unscopables`),kN=Array.prototype;kN[ON]??UA.f(kN,ON,{configurable:!0,value:PM(null)});var AN=function(e){kN[ON][e]=!0},jN=dM.find,MN=!0;`find`in[]&&[,].find((function(){MN=!1})),Uj({target:`Array`,proto:!0,forced:MN},{find:function(e){return jN(this,e,arguments.length>1?arguments[1]:void 0)}}),AN(`find`);var NN=OA(`match`),PN=function(e){var t;return Zk(e)&&((t=e[NN])===void 0?Gk(e)==`RegExp`:!!t)},FN=Nk.TypeError,IN=OA(`species`),LN=function(e,t,n){var r=jA(t);r in e?UA.f(e,r,Vk(0,n)):e[r]=n},RN=Nk.Array,zN=Math.max,BN=function(e,t,n){for(var r=Sj(e),i=yj(t,r),a=yj(n===void 0?r:n,r),o=RN(zN(a-i,0)),s=0;i<a;i++,s++)LN(o,s,e[i]);return o.length=s,o},VN=CM.UNSUPPORTED_Y,HN=Math.min,UN=[].push,WN=X(/./.exec),GN=X(UN),KN=X(``.slice);iN(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=vM(Jk(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!PN(e))return Lk(t,r,e,i);for(var a,o,s,c=[],l=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),u=0,d=new RegExp(e.source,l+`g`);(a=Lk(XM,d,r))&&!((o=d.lastIndex)>u&&(GN(c,KN(r,u,a.index)),a.length>1&&a.index<r.length&&tN(UN,c,BN(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&WN(d,``)||GN(c,``):GN(c,KN(r,u)),c.length>i?BN(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:Lk(t,this,e,n)}:t,[function(t,n){var i=Jk(this),a=t==null?void 0:dA(t,e);return a?Lk(a,t,i,n):Lk(r,vM(i),t,n)},function(e,i){var a=BA(this),o=vM(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=BA(e).constructor;return r===void 0||(n=BA(r)[IN])==null?t:function(e){if(aM(e))return e;throw FN(lA(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(VN?`g`:`y`),d=new c(VN?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return vN(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=VN?0:m;var g,_=vN(d,VN?KN(o,m):o);if(_===null||(g=HN(xj(d.lastIndex+(VN?m:0)),o.length))===p)m=lN(o,m,l);else{if(GN(h,KN(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(GN(h,_[v]),h.length===f)return h;m=p=g}}return GN(h,KN(o,p)),h}]}),!!Pk((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),VN);var qN=`
|
|
50
|
+
\v\f\r \xA0 \u2028\u2029`,JN=X(``.replace),YN=`[`+qN+`]`,XN=RegExp(`^`+YN+YN+`*`),ZN=RegExp(YN+YN+`*$`),QN=function(e){return function(t){var n=vM(Jk(t));return 1&e&&(n=JN(n,XN,``)),2&e&&(n=JN(n,ZN,``)),n}},$N={start:QN(1),end:QN(2),trim:QN(3)},eP=fj.PROPER,tP=$N.trim;function nP(e){return W(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function rP(e){return e.length===0?``:e[0].outerHTML}function iP(e){return e.length?e[0].tagName.toLowerCase():``}function aP(e,t){for(var n=``,r=(e.attr(`style`)||``).split(`;`),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(`:`);s[0].trim()===t&&(n=s[1].trim())}}return n}Uj({target:`String`,proto:!0,forced:Pk((function(){return!!qN.trim()||eP&&qN.trim.name!==`trim`}))},{trim:function(){return tP(this)}}),Uj({global:!0},{globalThis:Nk}),vm&&(W.fn.css=vm),wm&&(W.fn.append=wm),Tm&&(W.fn.prepend=Tm),im&&(W.fn.addClass=im),am&&(W.fn.removeClass=am),om&&(W.fn.hasClass=om),dm&&(W.fn.on=dm),fm&&(W.fn.off=fm),Pm&&(W.fn.focus=Pm),sm&&(W.fn.attr=sm),cm&&(W.fn.removeAttr=cm),gm&&(W.fn.hide=gm),_m&&(W.fn.show=_m),Dm&&(W.fn.parents=Dm),lm&&(W.fn.dataset=lm),um&&(W.fn.val=um),Sm&&(W.fn.text=Sm),xm&&(W.fn.html=xm),km&&(W.fn.children=km),Am&&(W.fn.remove=Am),Om&&(W.fn.find=Om),pm&&(W.fn.width=pm),mm&&(W.fn.height=mm),bm&&(W.fn.filter=bm),jm&&(W.fn.empty=jm);var oP={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=W(e);return(t=t.filter((function(e){return!!H.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},sP=function(e,t){return sP=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])},sP(e,t)};function cP(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}sP(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var lP=function(){return lP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lP.apply(this,arguments)};function uP(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function dP(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function fP(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function pP(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function mP(e){var t=pP(R.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!L.isElement(n)||n.type===`paragraph`||z.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!H.isText(i[0])&&(U.setNodes(e,{type:`paragraph`}),!0)}var hP={renderElems:[jle],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[oP],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){mP(r)||t(e)},r.deleteForward=function(e){mP(r)||n(e)},r}},Hle=/"/g,Ule=X(``.replace),gP=function(e,t,n,r){var i=vM(Jk(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+Ule(vM(r),Hle,`"`)+`"`),a+`>`+i+`</`+t+`>`},_P=function(e){return Pk((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function vP(e,t){var n=t,r=e,i=r.bold,a=r.italic,o=r.underline;return i&&(n=`<strong>`+n+`</strong>`),r.code&&(n=`<code>`+n+`</code>`),a&&(n=`<em>`+n+`</em>`),o&&(n=`<u>`+n+`</u>`),r.through&&(n=`<s>`+n+`</s>`),r.sub&&(n=`<sub>`+n+`</sub>`),r.sup&&(n=`<sup>`+n+`</sup>`),n}function yP(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Uj({target:`String`,proto:!0,forced:_P(`bold`)},{bold:function(){return gP(this,`b`,``,``)}}),Uj({target:`String`,proto:!0,forced:_P(`italics`)},{italics:function(){return gP(this,`i`,``,``)}}),Uj({target:`String`,proto:!0,forced:_P(`sub`)},{sub:function(){return gP(this,`sub`,``,``)}}),Uj({target:`String`,proto:!0,forced:_P(`sup`)},{sup:function(){return gP(this,`sup`,``,``)}});var bP={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},xP=PA(`span`).classList,SP=xP&&xP.constructor&&xP.constructor.prototype,Wle=SP===Object.prototype?void 0:SP,CP=function(e,t){var n=[][e];return!!n&&Pk((function(){n.call(null,t||function(){throw 1},1)}))},Gle=dM.forEach,wP=CP(`forEach`)?[].forEach:function(e){return Gle(this,e,arguments.length>1?arguments[1]:void 0)},TP=function(e){if(e&&e.forEach!==wP)try{WA(e,`forEach`,wP)}catch{e.forEach=wP}};for(var EP in bP)bP[EP]&&TP(Nk[EP]&&Nk[EP].prototype);function DP(e,t){return e.selection==null||!!pP(R.nodes(e,{match:function(t){return J.getNodeType(t)===`pre`||!!R.isVoid(e,t)},universal:!0}),1)[0]}function Kle(e,t){Object.keys(t).forEach((function(t){t!==`text`&&R.removeMark(e,t)}))}TP(Wle),Uj({target:`Object`,stat:!0,forced:Pk((function(){wM(1)}))},{keys:function(e){return wM(_A(e))}});var OP=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=R.marks(e);return n?n[t]:!!pP(R.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 DP(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}(),qle=`<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>`,Jle=`<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>`,Yle=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Xle=`<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>`,Zle=`<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>`,kP=`<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>`,AP=`<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>`,Qle=`<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>`,$le=`<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>`,eue=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,tue=`<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>`,nue=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,rue=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,iue=`<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>`,aue=`<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>`,oue=`<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>`,sue=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,cue=`<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>`,lue=`<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>`,uue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=Y(`textStyle.bold`),t.iconSvg=qle,t.hotkey=`mod+b`,t}return cP(t,e),t}(OP),due=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=Y(`textStyle.code`),t.iconSvg=Zle,t.hotkey=`mod+e`,t}return cP(t,e),t}(OP),fue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=Y(`textStyle.italic`),t.iconSvg=Yle,t.hotkey=`mod+i`,t}return cP(t,e),t}(OP),pue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=Y(`textStyle.through`),t.iconSvg=Xle,t.hotkey=`mod+shift+x`,t}return cP(t,e),t}(OP),mue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=Y(`textStyle.underline`),t.iconSvg=Jle,t.hotkey=`mod+u`,t}return cP(t,e),t}(OP),hue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sub`,t.marksNeedToRemove=[`sup`],t.title=Y(`textStyle.sub`),t.iconSvg=lue,t.hotkey=``,t}return cP(t,e),t}(OP),gue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sup`,t.marksNeedToRemove=[`sub`],t.title=Y(`textStyle.sup`),t.iconSvg=cue,t.hotkey=``,t}return cP(t,e),t}(OP),_ue=function(){function e(){this.title=Y(`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 DP(e)},e.prototype.exec=function(e,t){var n,r,i=R.nodes(e,{match:function(e){return H.isText(e)},universal:!0});try{for(var a=fP(i),o=a.next();!o.done;o=a.next())Kle(e,o.value[0])}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e}(),vue={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,a=n.underline,o=n.code,s=n.through,c=n.sub,l=n.sup,u=t;return r&&(u=Rh(`strong`,null,u)),o&&(u=Rh(`code`,null,u)),i&&(u=Rh(`em`,null,u)),a&&(u=Rh(`u`,null,u)),s&&(u=Rh(`s`,null,u)),c&&(u=Rh(`sub`,null,u)),l&&(u=Rh(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new uue}},{key:`underline`,factory:function(){return new mue}},{key:`italic`,factory:function(){return new fue}},{key:`through`,factory:function(){return new pue}},{key:`code`,factory:function(){return new due}},{key:`sub`,factory:function(){return new hue}},{key:`sup`,factory:function(){return new gue}},{key:`clearStyle`,factory:function(){return new _ue}}],styleToHtml:function(e,t){if(!H.isText(e))return t;if(nP(t))return vP(e,t);var n=W(t);if(iP(n)===`br`)return vP(e,`<br>`);var r=n.html();return r=vP(e,r),n.html(r),rP(n)},parseStyleHtml:function(e,t,n){var r=W(e);if(!H.isText(t))return t;var i=t;return yP(r,`b,strong`)&&(i.bold=!0),yP(r,`i,em`)&&(i.italic=!0),yP(r,`u`)&&(i.underline=!0),yP(r,`s,strike`)&&(i.through=!0),yP(r,`sub`)&&(i.sub=!0),yP(r,`sup`)&&(i.sup=!0),yP(r,`code`)&&(i.code=!0),i}};function jP(e){return function(t,n,r){return Rh(`h`+e,null,n)}}var yue={type:`header1`,renderElem:jP(1)},bue={type:`header2`,renderElem:jP(2)},xue={type:`header3`,renderElem:jP(3)},Sue={type:`header4`,renderElem:jP(4)},Cue={type:`header5`,renderElem:jP(5)},wue=fj.PROPER,MP=RegExp.prototype,NP=MP.toString,Tue=X(yM),Eue=Pk((function(){return NP.call({source:`a`,flags:`b`})!=`/a/b`})),Due=wue&&NP.name!=`toString`;(Eue||Due)&&pj(RegExp.prototype,`toString`,(function(){var e=BA(this),t=vM(e.source),n=e.flags;return`/`+t+`/`+vM(n===void 0&&$k(MP,e)&&!(`flags`in MP)?Tue(e):n)}),{unsafe:!0});var PP,Oue=Nk.TypeError,FP=function(e){if(PN(e))throw Oue(`The method doesn't accept regular expressions`);return e},kue=OA(`match`),IP=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[kue]=!1,`/./`[e](t)}catch{}}return!1},Aue=LA.f,LP=X(``.startsWith),jue=X(``.slice),Mue=Math.min,RP=IP(`startsWith`);function zP(e){var t=pP(R.nodes(e,{match:function(e){return J.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=pP(t,1)[0];return J.getNodeType(n)}function BP(e){return e.selection==null||!pP(R.nodes(e,{match:function(e){var t=J.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function VP(e,t){t&&U.setNodes(e,{type:t})}Uj({target:`String`,proto:!0,forced:!(!RP&&(PP=Aue(String.prototype,`startsWith`),PP&&!PP.writable)||RP)},{startsWith:function(e){var t=vM(Jk(this));FP(e);var n=xj(Mue(arguments.length>1?arguments[1]:void 0,t.length)),r=vM(e);return LP?LP(t,r,n):jue(t,n,n+r.length)===r}});var Nue=function(){function e(){this.title=Y(`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:Y(`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 zP(e)},e.prototype.isDisabled=function(e){return BP(e)},e.prototype.exec=function(e,t){VP(e,t.toString())},e}(),HP=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return zP(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return BP(e)},e.prototype.exec=function(e,t){var n=this.type;VP(e,t===n?`paragraph`:n)},e}(),Pue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return cP(t,e),t}(HP),Fue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return cP(t,e),t}(HP),Iue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return cP(t,e),t}(HP),Lue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return cP(t,e),t}(HP),Rue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return cP(t,e),t}(HP),zue={key:`headerSelect`,factory:function(){return new Nue}},Bue={key:`header1`,factory:function(){return new Pue}},Vue={key:`header2`,factory:function(){return new Fue}},Hue={key:`header3`,factory:function(){return new Iue}},Uue={key:`header4`,factory:function(){return new Lue}},Wue={key:`header5`,factory:function(){return new Rue}};function UP(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function WP(e){return function(t,n,r){var i=W(t);return(n=n.filter((function(e){return!!H.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var Gue={renderElems:[yue,bue,xue,Sue,Cue],elemsToHtml:[{type:`header1`,elemToHtml:UP(1)},{type:`header2`,elemToHtml:UP(2)},{type:`header3`,elemToHtml:UP(3)},{type:`header4`,elemToHtml:UP(4)},{type:`header5`,elemToHtml:UP(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:WP(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:WP(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:WP(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:WP(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:WP(5)}],menus:[zue,Bue,Vue,Hue,Uue,Wue],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=pP(R.nodes(n,{match:function(e){return J.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&J.isSelectionAtLineEnd(e,r[1])?U.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},GP=Object.assign,KP=Object.defineProperty,Kue=X([].concat),qP=!GP||Pk((function(){if(Fk&&GP({b:1},GP(KP({},`a`,{enumerable:!0,get:function(){KP(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),GP({},e)[n]!=7||wM(GP({},t)).join(``)!=r}))?function(e,t){for(var n=_A(e),r=arguments.length,i=1,a=jj.f,o=Bk.f;r>i;)for(var s,c=qk(arguments[i++]),l=a?Kue(wM(c),a(c)):wM(c),u=l.length,d=0;u>d;)s=l[d++],Fk&&!Lk(o,c,s)||(n[s]=c[s]);return n}:GP;function JP(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}Uj({target:`Object`,stat:!0,forced:Object.assign!==qP},{assign:qP});var que={selector:`font`,preParseHtml:function(e){var t=W(e);if(iP(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},YP=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=R.marks(e);return n&&n[t]?n[t]:``},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return e.selection==null||!!pP(R.nodes(e,{match:function(t){return J.getNodeType(t)===`pre`||!!R.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=W(`<ul class="w-e-panel-content-color"></ul>`);n.on(`click`,`li`,(function(n){var r=n.target;if(r!=null&&(n.preventDefault(),e.selection!=null)){var i=W(r).attr(`data-value`);i===`0`?R.removeMark(e,t):R.addMark(e,t,i)}})),this.$content=n}var r=this.$content;if(r==null)return document.createElement(`ul`);r.empty();var i=this.getValue(e),a=e.getMenuConfig(t).colors;(a===void 0?[]:a).forEach((function(e){var t=W(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=W(`<li data-value="`+e+`"></li>`);i===e&&n.addClass(`active`),n.append(t),r.append(n)}));var o=``;t===`color`&&(o=Y(`color.default`)),t===`bgColor`&&(o=Y(`color.clear`));var s=W(`
|
|
51
|
+
<li data-value="0" class="clear">
|
|
52
|
+
<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>
|
|
53
|
+
`+o+`
|
|
54
|
+
</li>
|
|
55
|
+
`);return r.prepend(s),r[0]},e}(),Jue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`color.color`),t.iconSvg=Qle,t.mark=`color`,t}return cP(t,e),t}(YP),Yue=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`color.bgColor`),t.iconSvg=$le,t.mark=`bgColor`,t}return cP(t,e),t}(YP),XP=`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)`.split(`.`),Xue={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&JP(a,{color:r}),i&&JP(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!H.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((nP(t)||iP(n=W(t))!==`span`)&&(n=W(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),rP(n)):t},preParseHtml:[que],parseStyleHtml:function(e,t,n){var r=W(e);if(!H.isText(t))return t;var i=t,a=aP(r,`color`);a&&(i.color=a);var o=aP(r,`background-color`);return o||=aP(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Jue},config:{colors:XP}},{key:`bgColor`,factory:function(){return new Yue},config:{colors:XP}}]},Zue=/^(?:\w+:)?\/\/(\S+)$/,Que=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,$ue=/^[^\s\.]+\.\S{2,}$/,ede=wj.includes;function ZP(e){return e===void 0&&(e=`r`),e+`-`+Um()}function QP(e){return e.replace(/</g,`<`).replace(/>/g,`>`)}function $P(e,t,n,r){return uP(this,void 0,void 0,(function(){var i,a;return dP(this,(function(o){switch(o.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(a=o.sent())==`string`)return t.alert(a,`error`),[2,!1];if(a==null)return[2,!1];o.label=2;case 2:return[2,!0]}}))}))}function eF(e,t,n){return uP(this,void 0,void 0,(function(){var r;return dP(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function tF(e){return e.selection==null||!!J.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!![`pre`,`code`,`link`].includes(n)||void 0}))}function nF(e,t){return{type:`link`,url:QP(e),children:t?[{text:t}]:[]}}function rF(e,t,n){return uP(this,void 0,void 0,(function(){var r,i,a;return dP(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),tF(e)?[2]:[4,$P(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,eF(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(V.isCollapsed(i)?(e.insertText(` `),a=nF(r,t),U.insertNodes(e,a),e.insertFragment([{text:` `}])):R.string(e,i)===t?(a=nF(r),U.wrapNodes(e,a,{split:!0}),U.collapse(e,{edge:`end`})):(e.deleteFragment(),a=nF(r,t),U.insertNodes(e,a))),[2]}}))}))}Uj({target:`Array`,proto:!0},{includes:function(e){return ede(this,e,arguments.length>1?arguments[1]:void 0)}}),AN(`includes`);var tde={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return Rh(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},nde={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=W(e);return(t=t.filter((function(e){return!!H.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`link`,url:r.attr(`href`)||``,target:r.attr(`target`)||``,children:t}}};function iF(){return ZP(`w-e-insert-link`)}var rde=function(){function e(){this.title=Y(`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=iF(),this.urlInputId=iF(),this.buttonId=iF()}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 tF(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,i=n.urlInputId,a=n.buttonId,o=pP(jO(Y(`link.text`),r),2),s=o[0],c=W(o[1]),l=pP(jO(Y(`link.url`),i),2),u=l[0],d=W(l[1]),f=pP(MO(a,Y(`common.ok`)),1)[0];if(this.$content==null){var p=W(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),rF(e,p.find(`#`+r).val(),p.find(`#`+i).val()),e.hidePanelOrModal()})),this.$content=p}var m=this.$content;if(m.empty(),m.append(s),m.append(u),m.append(f),t==null||V.isCollapsed(t))c.val(``);else{var h=R.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function aF(){return ZP(`w-e-update-link`)}var ide=function(){function e(){this.title=Y(`link.edit`),this.iconSvg=kP,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=aF(),this.buttonId=aF()}return e.prototype.getSelectedLinkElem=function(e){return J.getSelectedNodeByType(e,`link`)??null},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 e.selection==null||this.getSelectedLinkElem(e)==null},e.prototype.getModalPositionNode=function(e){return J.getSelectedNodeByType(e,`link`)},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=pP(jO(Y(`link.url`),t),2),i=r[0],a=W(r[1]),o=pP(MO(n,Y(`common.ok`)),1)[0];if(this.$content==null){var s=W(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=J.getSelectedNodeByType(e,`link`);(function(e,t,n){uP(this,void 0,void 0,(function(){var r,i;return dP(this,(function(a){switch(a.label){case 0:return n?[4,$P(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,eF(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:QP(r)},U.setNodes(e,i,{match:function(e){return J.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?z.string(r):``,s.find(`#`+t).val()),e.hidePanelOrModal()})),this.$content=s}var c=this.$content;c.empty(),c.append(i),c.append(o);var l=this.getValue(e);return a.val(l),setTimeout((function(){a.focus()})),c[0]},e}(),ade=function(){function e(){this.title=Y(`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 e.selection==null||J.getSelectedNodeByType(e,`link`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||U.unwrapNodes(e,{match:function(e){return J.checkNodeType(e,`link`)}})},e}(),ode=function(){function e(){this.title=Y(`link.view`),this.iconSvg=AP,this.tag=`button`}return e.prototype.getSelectedLinkElem=function(e){return J.getSelectedNodeByType(e,`link`)??null},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 e.selection==null||this.getSelectedLinkElem(e)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||typeof t!=`string`)throw Error(`View link failed, link url is '`+t+`'`);window.open(t,`_blank`)}},e}(),oF={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},sde={renderElems:[tde],elemsToHtml:[{type:`link`,elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return`<a href="`+r+`" target="`+(i===void 0?`_blank`:i)+`">`+t+`</a>`}}],parseElemsHtml:[nde],menus:[{key:`insertLink`,factory:function(){return new rde},config:oF},{key:`editLink`,factory:function(){return new ide},config:oF},{key:`unLink`,factory:function(){return new ade}},{key:`viewLink`,factory:function(){return new ode}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(e){return e.type===`link`||t(e)},i.insertData=function(e){var t=e.getData(`text/plain`);if(function(e){if(typeof e!=`string`)return!1;var t=e.match(Zue);if(!t)return!1;var n=t[1];return!(!n||!Que.test(n)&&!$ue.test(n))}(t)){if(!tF(i)){var r=i.selection;r!=null&&rF(i,R.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=pP(e,2),n=t[0],a=t[1];return J.getNodeType(n)===`link`&&z.string(n)===``?U.removeNodes(i,{at:a}):r([n,a])},i}},cde=X(1 .valueOf),lde=Nk.RangeError,ude=Nk.RangeError,sF=Nk.String,cF=Math.floor,lF=X((function(e){var t=vM(Jk(this)),n=``,r=gj(e);if(r<0||r==1/0)throw lde(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),uF=X(``.slice),dF=X(1 .toFixed),fF=function(e,t,n){return t===0?n:t%2==1?fF(e,t-1,n*e):fF(e*e,t/2,n)},pF=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=cF(i/1e7)},mF=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=cF(r/t),r=r%t*1e7},hF=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=sF(e[t]);n=n===``?r:n+lF(`0`,7-r.length)+r}return n};function gF(e,t){return`w-e-image-container-`+J.findKey(e,t).id}Uj({target:`Number`,proto:!0,forced:Pk((function(){return dF(8e-5,3)!==`0.000`||dF(.9,0)!==`1`||dF(1.255,2)!==`1.25`||dF(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!Pk((function(){dF({})}))},{toFixed:function(e){var t,n,r,i,a=cde(this),o=gj(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw ude(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return sF(a);if(a<0&&(c=`-`,a=-a),a>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}(a*fF(2,69,1))-69)<0?a*fF(2,-t,1):a/fF(2,t,1),n*=4503599627370496,(t=52-t)>0){for(pF(s,0,n),r=o;r>=7;)pF(s,1e7,0),r-=7;for(pF(s,fF(10,r,1),0),r=t-1;r>=23;)mF(s,1<<23),r-=23;mF(s,1<<r),pF(s,1,1),mF(s,2),l=hF(s)}else pF(s,0,n),pF(s,1<<-t,0),l=hF(s)+lF(`0`,o);return o>0?c+((i=l.length)<=o?`0.`+lF(`0`,o-i)+l:uF(l,0,i-o)+`.`+uF(l,i-o)):c+l}});var dde={type:`image`,renderElem:function(e,t,n){var r=e,i=r.src,a=r.alt,o=a===void 0?``:a,s=r.href,c=s===void 0?``:s,l=r.style,u=l===void 0?{}:l,d=u.width,f=d===void 0?``:d,p=u.height,m=p===void 0?``:p,h=J.isNodeSelected(n,e),g={};f&&(g.width=`100%`),m&&(g.height=`100%`);var _=Rh(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=W(`body`),a=gF(e,t),o=r.width,s=r.height,c=0,l=0,u=0,d=!1,f=null;function p(t){f=function(){var e=W(`#`+a);if(e.length===0)throw Error(`Cannot find image container elem`);return e}(),c=t;var n=f.find(`img`);if(n.length===0)throw Error(`Cannot find image elem`);l=n.width(),u=n.height(),i.on(`mousemove`,m),i.on(`mouseup`,h);var r=J.getHoverbar(e);r&&r.hideAndClean()}var m=ah((function(e){e.preventDefault();var t=e.clientX,n=l+(d?c-t:t-c),r=n/l*u;f!=null&&(n<=15||r<=15||(f.css(`width`,n+`px`),f.css(`height`,r+`px`)))}),100);function h(n){if(i.off(`mousemove`,m),f!=null){var r=f.width().toFixed(2),a=f.height().toFixed(2),o={style:lP(lP({},t.style),{width:r+`px`,height:a+`px`})};U.setNodes(e,o,{at:J.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),Rh(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=W(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,Rh(`div`,{className:`w-e-image-dragger left-top`}),Rh(`div`,{className:`w-e-image-dragger right-top`}),Rh(`div`,{className:`w-e-image-dragger left-bottom`}),Rh(`div`,{className:`w-e-image-dragger right-bottom`}))}(n,e,_,{width:f,height:m}):function(e,t,n,r){var i=r.width,a=r.height,o={};return i&&(o.width=i),a&&(o.height=a),Rh(`div`,{id:gF(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},fde={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=W(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:aP(r,`width`),height:aP(r,`height`)},children:[{text:``}]}}};function _F(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),uP(this,void 0,void 0,(function(){var a,o;return dP(this,(function(s){switch(s.label){case 0:return(a=t.getMenuConfig(e).checkImage)?[4,a(n,r,i)]:[3,2];case 1:if(typeof(o=s.sent())==`string`)return t.alert(o,`error`),[2,!1];if(o==null)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function vF(e,t,n){return uP(this,void 0,void 0,(function(){var r;return dP(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function yF(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),uP(this,void 0,void 0,(function(){var i,a,o;return dP(this,(function(s){switch(s.label){case 0:return[4,_F(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,vF(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:QP(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),J.getSelectedNodeByType(e,`image`)&&e.move(1),bF(e)||(U.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function bF(e){var t=e.selection;return t==null||!V.isCollapsed(t)||!!pP(R.nodes(e,{match:function(t){var n=J.getNodeType(t);return n===`code`||n===`pre`||n===`link`||n===`list-item`||!!n.startsWith(`header`)||n===`blockquote`||!!R.isVoid(e,t)},universal:!0}),1)[0]}function xF(){return ZP(`w-e-insert-image`)}var pde=function(){function e(){this.title=Y(`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=xF(),this.altInputId=xF(),this.hrefInputId=xF(),this.buttonId=xF()}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 bF(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,a=n.hrefInputId,o=n.buttonId,s=pP(jO(Y(`image.src`),r),2),c=s[0],l=W(s[1]),u=pP(jO(Y(`image.desc`),i),2),d=u[0],f=W(u[1]),p=pP(jO(Y(`image.link`),a),2),m=p[0],h=W(p[1]),g=pP(MO(o,Y(`common.ok`)),1)[0];if(this.$content==null){var _=W(`<div></div>`);_.on(`click`,`#`+o,(function(n){n.preventDefault();var o=_.find(`#`+r).val().trim(),s=_.find(`#`+i).val().trim(),c=_.find(`#`+a).val().trim();t.insertImage(e,o,s,c),e.hidePanelOrModal()})),this.$content=_}var v=this.$content;return v.empty(),v.append(c),v.append(d),v.append(m),v.append(g),l.val(``),f.val(``),h.val(``),setTimeout((function(){l.focus()})),v[0]},e.prototype.insertImage=function(e,t,n,r){n===void 0&&(n=``),r===void 0&&(r=``),t&&(e.restoreSelection(),this.isDisabled(e)||yF(e,t,n,r))},e}(),mde=function(){function e(){this.title=Y(`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 e.selection==null||J.getSelectedNodeByType(e,`image`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||U.removeNodes(e,{match:function(e){return J.checkNodeType(e,`image`)}})},e}();function SF(){return ZP(`w-e-edit-image`)}var hde=function(){function e(){this.title=Y(`image.edit`),this.iconSvg=kP,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=SF(),this.altInputId=SF(),this.hrefInputId=SF(),this.buttonId=SF()}return e.prototype.getValue=function(e){return``},e.prototype.getImageNode=function(e){return J.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 t==null||!V.isCollapsed(t)||J.getSelectedNodeByType(e,`image`)==null},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,a=n.hrefInputId,o=n.buttonId,s=this.getImageNode(e);if(s==null)throw Error(`Not found selected image node`);var c=pP(jO(Y(`image.src`),r),2),l=c[0],u=W(c[1]),d=pP(jO(Y(`image.desc`),i),2),f=d[0],p=W(d[1]),m=pP(jO(Y(`image.link`),a),2),h=m[0],g=W(m[1]),_=pP(MO(o,Y(`common.ok`)),1)[0];if(this.$content==null){var v=W(`<div></div>`);v.on(`click`,`#`+o,(function(n){n.preventDefault();var o=v.find(`#`+r).val(),s=v.find(`#`+i).val(),c=v.find(`#`+a).val();t.updateImage(e,o,s,c),e.hidePanelOrModal()})),this.$content=v}var y=this.$content;y.empty(),y.append(l),y.append(f),y.append(h),y.append(_);var b=s,x=b.src,S=b.alt,C=S===void 0?``:S,w=b.href,T=w===void 0?``:w;return u.val(x),p.val(C),g.val(T),setTimeout((function(){u.focus()})),y[0]},e.prototype.updateImage=function(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=``),i===void 0&&(i={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=``),i===void 0&&(i={}),uP(this,void 0,void 0,(function(){var a,o,s,c,l,u;return dP(this,(function(d){switch(d.label){case 0:return[4,_F(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,vF(`editImage`,e,t)]:[2];case 2:return a=d.sent(),(o=J.getSelectedNodeByType(e,`image`))==null||(s=o.style,c={src:a,alt:n,href:r,style:lP(lP({},s===void 0?{}:s),i)},U.setNodes(e,c,{match:function(e){return J.checkNodeType(e,`image`)}}),l=J.getSelectedNodeByType(e,`image`),(u=e.getMenuConfig(`editImage`).onUpdatedImage)&&u(l)),[2]}}))}))}(e,t,n,r,i))},e}(),gde=function(){function e(){this.title=Y(`image.viewLink`),this.iconSvg=AP,this.tag=`button`}return e.prototype.getValue=function(e){var t=J.getSelectedNodeByType(e,`image`);return t&&t.href||``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||typeof t!=`string`)throw Error(`View image link failed, image.href is '`+t+`'`);window.open(t,`_blank`)}},e}(),CF=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 J.getSelectedNodeByType(e,`image`)},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var r=J.getHoverbar(e);r&&r.hideAndClean();var i=n.style,a={style:lP(lP({},i===void 0?{}:i),{width:this.value,height:``})};U.setNodes(e,a,{match:function(e){return J.checkNodeType(e,`image`)}})}}},e}(),_de=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return cP(t,e),t}(CF),vde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return cP(t,e),t}(CF),yde=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return cP(t,e),t}(CF),wF={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},bde={renderElems:[dde],elemsToHtml:[{type:`image`,elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,a=i===void 0?``:i,o=n.href,s=o===void 0?``:o,c=n.style,l=c===void 0?{}:c,u=l.width,d=u===void 0?``:u,f=l.height,p=f===void 0?``:f,m=``;return d&&(m+=`width: `+d+`;`),p&&(m+=`height: `+p+`;`),`<img src="`+r+`" alt="`+a+`" data-href="`+s+`" style="`+m+`"/>`}}],parseElemsHtml:[fde],menus:[{key:`insertImage`,factory:function(){return new pde},config:wF},{key:`deleteImage`,factory:function(){return new mde}},{key:`editImage`,factory:function(){return new hde},config:wF},{key:`viewImageLink`,factory:function(){return new gde}},{key:`imageWidth30`,factory:function(){return new _de}},{key:`imageWidth50`,factory:function(){return new vde}},{key:`imageWidth100`,factory:function(){return new yde}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return e.type===`image`||t(e)},r.isVoid=function(e){return e.type===`image`||n(e)},r}},xde={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),Rh(`div`,{style:{margin:`5px 0`}},Rh(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},Rh(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=J.findPath(n,e),i={checked:t.target.checked};U.setNodes(n,i,{at:r})}}})),Rh(`span`,null,t))}},Sde=function(){function e(){this.title=Y(`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!!J.getSelectedNodeByType(e,`todo`)},e.prototype.isDisabled=function(e){return e.selection==null||!!J.getSelectedElems(e).some((function(t){if(R.isVoid(e,t)&&R.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`table`,`list-item`].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);U.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),Cde={renderElems:[xde],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=W(e).find(`li`),n=W(`<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:[{selector:`div[data-w-e-type="todo"]`,parseElemHtml:function(e,t,n){var r=W(e);(t=t.filter((function(e){return!!H.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]);var i=!1;return r.find(`input[type="checkbox"]`).attr(`checked`)!=null&&(i=!0),{type:`todo`,checked:i,children:t}}}],menus:[{key:`todo`,factory:function(){return new Sde}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&V.isCollapsed(r)){var i=J.getSelectedNodeByType(e,`todo`);if(i&&z.string(i).length===0)return void U.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},wde={type:`blockquote`,renderElem:function(e,t,n){return Rh(`blockquote`,null,t)}},Tde={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=W(e);return(t=t.filter((function(e){return!!H.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},Ede=function(){function e(){this.title=Y(`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!!J.getSelectedNodeByType(e,`blockquote`)},e.prototype.isDisabled=function(e){return e.selection==null||!pP(R.nodes(e,{match:function(e){var t=J.getNodeType(e);return t===`paragraph`||t===`blockquote`},universal:!0,mode:`highest`}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?`paragraph`:`blockquote`;U.setNodes(e,{type:n},{mode:`highest`})}},e}(),Dde={key:`blockquote`,factory:function(){return new Ede}},Ode=X([].slice),kde=pM(`slice`),Ade=OA(`species`),TF=Nk.Array,jde=Math.max;Uj({target:`Array`,proto:!0,forced:!kde},{slice:function(e,t){var n,r,i,a=Yk(this),o=Sj(a),s=yj(e,o),c=yj(t===void 0?o:t,o);if(Gj(a)&&(n=a.constructor,(aM(n)&&(n===TF||Gj(n.prototype))||Zk(n)&&(n=n[Ade])===null)&&(n=void 0),n===TF||n===void 0))return Ode(a,s,c);for(r=new(n===void 0?TF:n)(jde(c-s,0)),i=0;s<c;s++,i++)s in a&&LN(r,i,a[s]);return r.length=i,r}});var Mde={renderElems:[wde],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[Tde],menus:[Dde],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(i==null)return t();var a=pP(R.nodes(e,{match:function(e){return J.checkNodeType(e,`blockquote`)},universal:!0}),1)[0];if(!a)return t();var o=a[0],s=J.findPath(e,o),c=R.end(e,s);if(Hf.equals(c,i.focus)){var l=z.string(o);if(l&&l.slice(-1)===`
|
|
56
|
+
`)return e.deleteBackward(`character`),void U.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
|
|
57
|
+
`)},r}},Nde=function(){function e(){this.title=Y(`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 e.selection==null||!!pP(R.nodes(e,{match:function(t){return J.getNodeType(t)===`pre`||!!R.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=W(`<ul class="w-e-panel-content-emotion"></ul>`);t.on(`click`,`li`,(function(t){var n=t.target;if(n!=null){t.preventDefault();var r=W(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(n==null)return document.createElement(`ul`);n.empty();var r=e.getMenuConfig(`emotion`).emotions;return(r===void 0?[]:r).forEach((function(e){var t=W(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),Pde={menus:[{key:`emotion`,factory:function(){return new Nde},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},Fde={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},Ide={selector:`font`,preParseHtml:function(e){var t=W(e);if(iP(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,Fde[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},Lde=X(``.indexOf);Uj({target:`String`,proto:!0,forced:!IP(`includes`)},{includes:function(e){return!!~Lde(vM(Jk(this)),vM(FP(e)),arguments.length>1?arguments[1]:void 0)}});var EF,DF,OF=function(e){return e&&e.Math==Math&&e},kF=OF(typeof globalThis==`object`&&globalThis)||OF(typeof window==`object`&&window)||OF(typeof self==`object`&&self)||OF(typeof Ok==`object`&&Ok)||function(){return this}()||Function(`return this`)(),AF=Function.prototype,jF=AF.apply,Rde=AF.bind,MF=AF.call,NF=typeof Reflect==`object`&&Reflect.apply||(Rde?MF.bind(jF):function(){return MF.apply(jF,arguments)}),PF=Function.prototype,FF=PF.bind,IF=PF.call,zde=FF&&FF.bind(IF),LF=FF?function(e){return e&&zde(IF,e)}:function(e){return e&&function(){return IF.apply(e,arguments)}},RF=function(e){return typeof e==`function`},zF=function(e){try{return!!e()}catch{return!0}},BF=!zF((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),VF=Function.prototype.call,HF=VF.bind?VF.bind(VF):function(){return VF.apply(VF,arguments)},UF={}.propertyIsEnumerable,WF=Object.getOwnPropertyDescriptor,GF={f:WF&&!UF.call({1:2},1)?function(e){var t=WF(this,e);return!!t&&t.enumerable}:UF},KF=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Bde=LF({}.toString),Vde=LF(``.slice),qF=function(e){return Vde(Bde(e),8,-1)},JF=kF.Object,Hde=LF(``.split),YF=zF((function(){return!JF(`z`).propertyIsEnumerable(0)}))?function(e){return qF(e)==`String`?Hde(e,``):JF(e)}:JF,Ude=kF.TypeError,XF=function(e){if(e==null)throw Ude(`Can't call method on `+e);return e},ZF=function(e){return YF(XF(e))},QF=function(e){return typeof e==`object`?e!==null:RF(e)},$F={},eI=function(e){return RF(e)?e:void 0},tI=function(e,t){return arguments.length<2?eI($F[e])||eI(kF[e]):$F[e]&&$F[e][t]||kF[e]&&kF[e][t]},nI=LF({}.isPrototypeOf),rI=tI(`navigator`,`userAgent`)||``,iI=kF.process,aI=kF.Deno,oI=iI&&iI.versions||aI&&aI.version,sI=oI&&oI.v8;sI&&(DF=(EF=sI.split(`.`))[0]>0&&EF[0]<4?1:+(EF[0]+EF[1])),!DF&&rI&&(!(EF=rI.match(/Edge\/(\d+)/))||EF[1]>=74)&&(EF=rI.match(/Chrome\/(\d+)/))&&(DF=+EF[1]);var cI=DF,lI=!!Object.getOwnPropertySymbols&&!zF((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cI&&cI<41})),uI=lI&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Wde=kF.Object,dI=uI?function(e){return typeof e==`symbol`}:function(e){var t=tI(`Symbol`);return RF(t)&&nI(t.prototype,Wde(e))},Gde=kF.String,Kde=kF.TypeError,fI=function(e){if(RF(e))return e;throw Kde(function(e){try{return Gde(e)}catch{return`Object`}}(e)+` is not a function`)},qde=kF.TypeError,Jde=Object.defineProperty,pI=kF[`__core-js_shared__`]||function(e,t){try{Jde(kF,e,{value:t,configurable:!0,writable:!0})}catch{kF[e]=t}return t}(`__core-js_shared__`,{}),mI=kk((function(e){(e.exports=function(e,t){return pI[e]||(pI[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Yde=kF.Object,hI=function(e){return Yde(XF(e))},Xde=LF({}.hasOwnProperty),gI=Object.hasOwn||function(e,t){return Xde(hI(e),t)},Zde=0,Qde=Math.random(),$de=LF(1 .toString),_I=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+$de(++Zde+Qde,36)},vI=mI(`wks`),yI=kF.Symbol,bI=yI&&yI.for,efe=uI?yI:yI&&yI.withoutSetter||_I,xI=function(e){if(!gI(vI,e)||!lI&&typeof vI[e]!=`string`){var t=`Symbol.`+e;lI&&gI(yI,e)?vI[e]=yI[e]:vI[e]=uI&&bI?bI(t):efe(t)}return vI[e]},tfe=kF.TypeError,nfe=xI(`toPrimitive`),SI=function(e){var t=function(e,t){if(!QF(e)||dI(e))return e;var n,r,i=(n=e[nfe])==null?void 0:fI(n);if(i){if(t===void 0&&(t=`default`),r=HF(i,e,t),!QF(r)||dI(r))return r;throw tfe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&RF(n=e.toString)&&!QF(r=HF(n,e))||RF(n=e.valueOf)&&!QF(r=HF(n,e))||t!==`string`&&RF(n=e.toString)&&!QF(r=HF(n,e)))return r;throw qde(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return dI(t)?t:t+``},CI=kF.document,rfe=QF(CI)&&QF(CI.createElement),wI=function(e){return rfe?CI.createElement(e):{}},TI=!BF&&!zF((function(){return Object.defineProperty(wI(`div`),`a`,{get:function(){return 7}}).a!=7})),EI=Object.getOwnPropertyDescriptor,DI={f:BF?EI:function(e,t){if(e=ZF(e),t=SI(t),TI)try{return EI(e,t)}catch{}if(gI(e,t))return KF(!HF(GF.f,e,t),e[t])}},ife=/#|\.prototype\./,OI=function(e,t){var n=ofe[afe(e)];return n==cfe||n!=sfe&&(RF(t)?zF(t):!!t)},afe=OI.normalize=function(e){return String(e).replace(ife,`.`).toLowerCase()},ofe=OI.data={},sfe=OI.NATIVE=`N`,cfe=OI.POLYFILL=`P`,lfe=OI,kI=LF(LF.bind),AI=function(e,t){return fI(e),t===void 0?e:kI?kI(e,t):function(){return e.apply(t,arguments)}},ufe=kF.String,dfe=kF.TypeError,jI=function(e){if(QF(e))return e;throw dfe(ufe(e)+` is not an object`)},ffe=kF.TypeError,MI=Object.defineProperty,NI={f:BF?MI:function(e,t,n){if(jI(e),t=SI(t),jI(n),TI)try{return MI(e,t,n)}catch{}if(`get`in n||`set`in n)throw ffe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},PI=BF?function(e,t,n){return NI.f(e,t,KF(1,n))}:function(e,t,n){return e[t]=n,e},pfe=DI.f,mfe=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return NF(e,this,arguments)};return t.prototype=e.prototype,t},FI=function(e,t){var n,r,i,a,o,s,c,l,u=e.target,d=e.global,f=e.stat,p=e.proto,m=d?kF:f?kF[u]:(kF[u]||{}).prototype,h=d?$F:$F[u]||PI($F,u,{})[u],g=h.prototype;for(i in t)n=!lfe(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&gI(m,i),o=h[i],n&&(s=e.noTargetGet?(l=pfe(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?AI(a,kF):e.wrap&&n?mfe(a):p&&RF(a)?LF(a):a,(e.sham||a&&a.sham||o&&o.sham)&&PI(c,`sham`,!0),PI(h,i,c),p&&(gI($F,r=u+`Prototype`)||PI($F,r,{}),PI($F[r],i,a),e.real&&g&&!g[i]&&PI(g,i,a)))},II=Array.isArray||function(e){return qF(e)==`Array`},hfe=Math.ceil,gfe=Math.floor,LI=function(e){var t=+e;return t!=t||t===0?0:(t>0?gfe:hfe)(t)},_fe=Math.min,RI=function(e){return(t=e.length)>0?_fe(LI(t),9007199254740991):0;var t},zI=function(e,t,n){var r=SI(t);r in e?NI.f(e,r,KF(0,n)):e[r]=n},BI={};BI[xI(`toStringTag`)]=`z`;var VI=String(BI)===`[object z]`,vfe=xI(`toStringTag`),yfe=kF.Object,bfe=qF(function(){return arguments}())==`Arguments`,HI=VI?qF:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=yfe(e),vfe))==`string`?n:bfe?qF(t):(r=qF(t))==`Object`&&RF(t.callee)?`Arguments`:r},xfe=LF(Function.toString);RF(pI.inspectSource)||(pI.inspectSource=function(e){return xfe(e)});var UI=pI.inspectSource,WI=function(){},Sfe=[],GI=tI(`Reflect`,`construct`),KI=/^\s*(?:class|function)\b/,Cfe=LF(KI.exec),wfe=!KI.exec(WI),qI=function(e){if(!RF(e))return!1;try{return GI(WI,Sfe,e),!0}catch{return!1}},Tfe=!GI||zF((function(){var e;return qI(qI.call)||!qI(Object)||!qI((function(){e=!0}))||e}))?function(e){if(!RF(e))return!1;switch(HI(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return wfe||!!Cfe(KI,UI(e))}:qI,Efe=xI(`species`),JI=kF.Array,YI=function(e,t){return new(function(e){var t;return II(e)&&(t=e.constructor,(Tfe(t)&&(t===JI||II(t.prototype))||QF(t)&&(t=t[Efe])===null)&&(t=void 0)),t===void 0?JI:t}(e))(t===0?0:t)},Dfe=xI(`species`),XI=xI(`isConcatSpreadable`),ZI=kF.TypeError,Ofe=cI>=51||!zF((function(){var e=[];return e[XI]=!1,e.concat()[0]!==e})),kfe=cI>=51||!zF((function(){var e=[];return(e.constructor={})[Dfe]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),Afe=function(e){if(!QF(e))return!1;var t=e[XI];return t===void 0?II(e):!!t};FI({target:`Array`,proto:!0,forced:!Ofe||!kfe},{concat:function(e){var t,n,r,i,a,o=hI(this),s=YI(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Afe(a=t===-1?o:arguments[t])){if(c+(i=RI(a))>9007199254740991)throw ZI(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&zI(s,c,a[n])}else{if(c>=9007199254740991)throw ZI(`Maximum allowed index exceeded`);zI(s,c++,a)}return s.length=c,s}});var QI,jfe=kF.String,$I=function(e){if(HI(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return jfe(e)},Mfe=Math.max,Nfe=Math.min,eL=function(e,t){var n=LI(e);return n<0?Mfe(n+t,0):Nfe(n,t)},tL=function(e){return function(t,n,r){var i,a=ZF(t),o=RI(a),s=eL(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Pfe={includes:tL(!0),indexOf:tL(!1)},nL={},Ffe=Pfe.indexOf,rL=LF([].push),iL=function(e,t){var n,r=ZF(e),i=0,a=[];for(n in r)!gI(nL,n)&&gI(r,n)&&rL(a,n);for(;t.length>i;)gI(r,n=t[i++])&&(~Ffe(a,n)||rL(a,n));return a},aL=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],oL=Object.keys||function(e){return iL(e,aL)},Ife=BF?Object.defineProperties:function(e,t){jI(e);for(var n,r=ZF(t),i=oL(t),a=i.length,o=0;a>o;)NI.f(e,n=i[o++],r[n]);return e},Lfe=tI(`document`,`documentElement`),sL=mI(`keys`),cL=function(e){return sL[e]||(sL[e]=_I(e))},lL=cL(`IE_PROTO`),uL=function(){},dL=function(e){return`<script>`+e+`<\/script>`},fL=function(e){e.write(dL(``)),e.close();var t=e.parentWindow.Object;return e=null,t},pL=function(){try{QI=new ActiveXObject(`htmlfile`)}catch{}var e,t;pL=typeof document<`u`?document.domain&&QI?fL(QI):((t=wI(`iframe`)).style.display=`none`,Lfe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(dL(`document.F=Object`)),e.close(),e.F):fL(QI);for(var n=aL.length;n--;)delete pL.prototype[aL[n]];return pL()};nL[lL]=!0;var mL,hL,gL,_L=Object.create||function(e,t){var n;return e===null?n=pL():(uL.prototype=jI(e),n=new uL,uL.prototype=null,n[lL]=e),t===void 0?n:Ife(n,t)},Rfe=aL.concat(`length`,`prototype`),vL={f:Object.getOwnPropertyNames||function(e){return iL(e,Rfe)}},zfe=kF.Array,Bfe=Math.max,yL=vL.f,bL=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xL={f:function(e){return bL&&qF(e)==`Window`?function(e){try{return yL(e)}catch{return function(e,t,n){for(var r=RI(e),i=eL(void 0,r),a=eL(r,r),o=zfe(Bfe(a-i,0)),s=0;i<a;i++,s++)zI(o,s,e[i]);return o.length=s,o}(bL)}}(e):yL(ZF(e))}},SL={f:Object.getOwnPropertySymbols},Vfe=LF([].slice),CL=function(e,t,n,r){r&&r.enumerable?e[t]=n:PI(e,t,n)},wL={f:xI},Hfe=NI.f,TL=function(e){var t=$F.Symbol||={};gI(t,e)||Hfe(t,e,{value:wL.f(e)})},Ufe=VI?{}.toString:function(){return`[object `+HI(this)+`]`},Wfe=NI.f,EL=xI(`toStringTag`),DL=function(e,t,n,r){if(e){var i=n?e:e.prototype;gI(i,EL)||Wfe(i,EL,{configurable:!0,value:t}),r&&!VI&&PI(i,`toString`,Ufe)}},OL=kF.WeakMap,Gfe=RF(OL)&&/native code/.test(UI(OL)),kL=kF.TypeError,Kfe=kF.WeakMap;if(Gfe||pI.state){var AL=pI.state||=new Kfe,qfe=LF(AL.get),jL=LF(AL.has),Jfe=LF(AL.set);mL=function(e,t){if(jL(AL,e))throw new kL(`Object already initialized`);return t.facade=e,Jfe(AL,e,t),t},hL=function(e){return qfe(AL,e)||{}},gL=function(e){return jL(AL,e)}}else{var ML=cL(`state`);nL[ML]=!0,mL=function(e,t){if(gI(e,ML))throw new kL(`Object already initialized`);return t.facade=e,PI(e,ML,t),t},hL=function(e){return gI(e,ML)?e[ML]:{}},gL=function(e){return gI(e,ML)}}var NL={set:mL,get:hL,has:gL,enforce:function(e){return gL(e)?hL(e):mL(e,{})},getterFor:function(e){return function(t){var n;if(!QF(t)||(n=hL(t)).type!==e)throw kL(`Incompatible receiver, `+e+` required`);return n}}},PL=LF([].push),FL=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=hI(c),h=YF(m),g=AI(l,u),_=RI(h),v=0,y=d||YI,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:PL(b,f)}else switch(e){case 4:return!1;case 7:PL(b,f)}return a?-1:r||i?i:b}},IL=[FL(0),FL(1),FL(2),FL(3),FL(4),FL(5),FL(6),FL(7)][0],LL=cL(`hidden`),RL=xI(`toPrimitive`),Yfe=NL.set,zL=NL.getterFor(`Symbol`),BL=Object.prototype,VL=kF.Symbol,HL=VL&&VL.prototype,UL=kF.TypeError,WL=kF.QObject,GL=tI(`JSON`,`stringify`),KL=DI.f,qL=NI.f,JL=xL.f,Xfe=GF.f,YL=LF([].push),XL=mI(`symbols`),ZL=mI(`op-symbols`),QL=mI(`string-to-symbol-registry`),$L=mI(`symbol-to-string-registry`),Zfe=mI(`wks`),eR=!WL||!WL.prototype||!WL.prototype.findChild,tR=BF&&zF((function(){return _L(qL({},`a`,{get:function(){return qL(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=KL(BL,t);r&&delete BL[t],qL(e,t,n),r&&e!==BL&&qL(BL,t,r)}:qL,nR=function(e,t){var n=XL[e]=_L(HL);return Yfe(n,{type:`Symbol`,tag:e,description:t}),BF||(n.description=t),n},rR=function(e,t,n){e===BL&&rR(ZL,t,n),jI(e);var r=SI(t);return jI(n),gI(XL,r)?(n.enumerable?(gI(e,LL)&&e[LL][r]&&(e[LL][r]=!1),n=_L(n,{enumerable:KF(0,!1)})):(gI(e,LL)||qL(e,LL,KF(1,{})),e[LL][r]=!0),tR(e,r,n)):qL(e,r,n)},iR=function(e,t){jI(e);var n=ZF(t);return IL(oL(n).concat(cR(n)),(function(t){BF&&!HF(aR,n,t)||rR(e,t,n[t])})),e},aR=function(e){var t=SI(e),n=HF(Xfe,this,t);return!(this===BL&&gI(XL,t)&&!gI(ZL,t))&&(!(n||!gI(this,t)||!gI(XL,t)||gI(this,LL)&&this[LL][t])||n)},oR=function(e,t){var n=ZF(e),r=SI(t);if(n!==BL||!gI(XL,r)||gI(ZL,r)){var i=KL(n,r);return!i||!gI(XL,r)||gI(n,LL)&&n[LL][r]||(i.enumerable=!0),i}},sR=function(e){var t=JL(ZF(e)),n=[];return IL(t,(function(e){gI(XL,e)||gI(nL,e)||YL(n,e)})),n},cR=function(e){var t=e===BL,n=JL(t?ZL:ZF(e)),r=[];return IL(n,(function(e){!gI(XL,e)||t&&!gI(BL,e)||YL(r,XL[e])})),r};if(lI||(HL=(VL=function(){if(nI(HL,this))throw UL(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?$I(arguments[0]):void 0,t=_I(e),n=function(e){this===BL&&HF(n,ZL,e),gI(this,LL)&&gI(this[LL],t)&&(this[LL][t]=!1),tR(this,t,KF(1,e))};return BF&&eR&&tR(BL,t,{configurable:!0,set:n}),nR(t,e)}).prototype,CL(HL,`toString`,(function(){return zL(this).tag})),CL(VL,`withoutSetter`,(function(e){return nR(_I(e),e)})),GF.f=aR,NI.f=rR,DI.f=oR,vL.f=xL.f=sR,SL.f=cR,wL.f=function(e){return nR(xI(e),e)},BF&&qL(HL,`description`,{configurable:!0,get:function(){return zL(this).description}})),FI({global:!0,wrap:!0,forced:!lI,sham:!lI},{Symbol:VL}),IL(oL(Zfe),(function(e){TL(e)})),FI({target:`Symbol`,stat:!0,forced:!lI},{for:function(e){var t=$I(e);if(gI(QL,t))return QL[t];var n=VL(t);return QL[t]=n,$L[n]=t,n},keyFor:function(e){if(!dI(e))throw UL(e+` is not a symbol`);if(gI($L,e))return $L[e]},useSetter:function(){eR=!0},useSimple:function(){eR=!1}}),FI({target:`Object`,stat:!0,forced:!lI,sham:!BF},{create:function(e,t){return t===void 0?_L(e):iR(_L(e),t)},defineProperty:rR,defineProperties:iR,getOwnPropertyDescriptor:oR}),FI({target:`Object`,stat:!0,forced:!lI},{getOwnPropertyNames:sR,getOwnPropertySymbols:cR}),FI({target:`Object`,stat:!0,forced:zF((function(){SL.f(1)}))},{getOwnPropertySymbols:function(e){return SL.f(hI(e))}}),GL&&FI({target:`JSON`,stat:!0,forced:!lI||zF((function(){var e=VL();return GL([e])!=`[null]`||GL({a:e})!=`{}`||GL(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=Vfe(arguments),i=t;if((QF(t)||e!==void 0)&&!dI(e))return II(t)||(t=function(e,t){if(RF(i)&&(t=HF(i,this,e,t)),!dI(t))return t}),r[1]=t,NF(GL,null,r)}}),!HL[RL]){var Qfe=HL.valueOf;CL(HL,RL,(function(e){return HF(Qfe,this)}))}DL(VL,`Symbol`),nL[LL]=!0,TL(`asyncIterator`),TL(`hasInstance`),TL(`isConcatSpreadable`),TL(`iterator`),TL(`match`),TL(`matchAll`),TL(`replace`),TL(`search`),TL(`species`),TL(`split`),TL(`toPrimitive`),TL(`toStringTag`),TL(`unscopables`),DL(kF.JSON,`JSON`,!0);var lR,uR,dR,$fe=$F.Symbol,fR={},pR=Function.prototype,epe=BF&&Object.getOwnPropertyDescriptor,mR=gI(pR,`name`),tpe={EXISTS:mR,PROPER:mR&&function(){}.name===`something`,CONFIGURABLE:mR&&(!BF||BF&&epe(pR,`name`).configurable)},npe=!zF((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hR=cL(`IE_PROTO`),gR=kF.Object,rpe=gR.prototype,_R=npe?gR.getPrototypeOf:function(e){var t=hI(e);if(gI(t,hR))return t[hR];var n=t.constructor;return RF(n)&&t instanceof n?n.prototype:t instanceof gR?rpe:null},vR=xI(`iterator`),yR=!1;[].keys&&(`next`in(dR=[].keys())?(uR=_R(_R(dR)))!==Object.prototype&&(lR=uR):yR=!0),lR=lR==null||zF((function(){var e={};return lR[vR].call(e)!==e}))?{}:_L(lR),RF(lR[vR])||CL(lR,vR,(function(){return this}));var bR={IteratorPrototype:lR,BUGGY_SAFARI_ITERATORS:yR},ipe=bR.IteratorPrototype,ape=function(){return this};kF.String,kF.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{LF(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var ope=tpe.PROPER,xR=bR.BUGGY_SAFARI_ITERATORS,SR=xI(`iterator`),spe=function(){return this},CR=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=_L(ipe,{next:KF(1,n)}),DL(e,i,!1,!0),fR[i]=ape})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!xR&&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)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[SR]||p[`@@iterator`]||i&&p[i],h=!xR&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=_R(g.call(new e)))!==Object.prototype&&s.next&&(DL(s,d,!0,!0),fR[d]=spe),ope&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return HF(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(xR||f||!(l in p))&&CL(p,l,c[l]);else FI({target:t,proto:!0,forced:xR||f},c);return o&&p[SR]!==h&&CL(p,SR,h,{name:i}),fR[t]=h,c},cpe=NL.set,lpe=NL.getterFor(`Array Iterator`);CR(Array,`Array`,(function(e,t){cpe(this,{type:`Array Iterator`,target:ZF(e),index:0,kind:t})}),(function(){var e=lpe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),fR.Arguments=fR.Array;var wR=xI(`toStringTag`);for(var TR 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 ER=kF[TR],DR=ER&&ER.prototype;DR&&HI(DR)!==wR&&PI(DR,wR,TR),fR[TR]=fR.Array}var upe=$fe;TL(`asyncDispose`),TL(`dispose`),TL(`matcher`),TL(`metadata`),TL(`observable`),TL(`patternMatch`),TL(`replaceAll`);var OR=upe,dpe=LF(``.charAt),kR=LF(``.charCodeAt),fpe=LF(``.slice),ppe=function(e){return function(t,n){var r,i,a=$I(XF(t)),o=LI(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=kR(a,o))<55296||r>56319||o+1===s||(i=kR(a,o+1))<56320||i>57343?e?dpe(a,o):r:e?fpe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),mpe=NL.set,hpe=NL.getterFor(`String Iterator`);CR(String,`String`,(function(e){mpe(this,{type:`String Iterator`,string:$I(e),index:0})}),(function(){var e,t=hpe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ppe(n,r),t.index+=e.length,{value:e,done:!1})}));var gpe=wL.f(`iterator`),AR=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(kk((function(e){function t(n){return typeof OR==`function`&&typeof gpe==`symbol`?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&typeof OR==`function`&&e.constructor===OR&&e!==OR.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}))),_pe=fj.EXISTS,vpe=UA.f,jR=Function.prototype,ype=X(jR.toString),MR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bpe=X(MR.exec);Fk&&!_pe&&vpe(jR,`name`,{configurable:!0,get:function(){try{return bpe(MR,ype(this))[1]}catch{return``}}});var NR=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=R.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!pP(R.nodes(e,{match:function(t){return J.getNodeType(t)===`pre`||!!R.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}(),xpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`fontSize.title`),t.iconSvg=eue,t.mark=`fontSize`,t}return cP(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=n===void 0?[]:n;t.push({text:Y(`fontSize.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e});else if(AR(e)===`object`){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(NR),Spe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`fontFamily.title`),t.iconSvg=tue,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return cP(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=n===void 0?[]:n;t.push({text:Y(`fontFamily.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if(AR(e)===`object`){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(NR),Cpe={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&JP(a,{fontSize:r}),i&&JP(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!H.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((nP(t)||iP(n=W(t))!==`span`)&&(n=W(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),rP(n)):t},preParseHtml:[Ide],parseStyleHtml:function(e,t,n){var r=W(e);if(!H.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=aP(r,`font-size`),c=o.find((function(e){return e.value&&e.value===s}))||o.includes(s);s&&c&&(i.fontSize=s);var l=n.getMenuConfig(`fontFamily`).fontFamilyList,u=l===void 0?[]:l,d=aP(r,`font-family`).replace(/"/g,``),f=u.find((function(e){return e.value&&e.value===d}))||u.includes(d);return d&&f&&(i.fontFamily=d),i},menus:[{key:`fontSize`,factory:function(){return new xpe},config:{fontSizeList:[`12px`,{name:`13px`,value:`13px`},`14px`,`15px`,`16px`,`19px`,{name:`22px`,value:`22px`},`24px`,`29px`,`32px`,`40px`,`48px`]}},{key:`fontFamily`,factory:function(){return new Spe},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},wpe={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=W(e),n=aP(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]}},PR=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=pP(R.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:pP(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=pP(R.nodes(e,{match:function(e){var t=J.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e}(),Tpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`indent.decrease`),t.iconSvg=nue,t}return cP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){U.setNodes(e,{indent:null},{match:function(e){return L.isElement(e)}})},t}(PR),Epe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`indent.increase`),t.iconSvg=rue,t}return cP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){U.setNodes(e,{indent:`2em`},{match:function(e){return L.isElement(e)},mode:`highest`})},t}(PR),Dpe={renderStyle:function(e,t){if(!L.isElement(e))return t;var n=e.indent,r=t;return n&&JP(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!L.isElement(e))return t;var n=e.indent;if(!n)return t;var r=W(t);return r.css(`text-indent`,n),rP(r)},preParseHtml:[wpe],parseStyleHtml:function(e,t,n){var r=W(e);if(!L.isElement(t))return t;var i=t,a=aP(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new Epe}},{key:`delIndent`,factory:function(){return new Tpe}}]},FR=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=pP(R.nodes(e,{match:function(e){var t=J.getNodeType(e);return t===`paragraph`||t===`blockquote`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e.prototype.isDisabled=function(e){return e.selection==null||!!J.getSelectedElems(e).some((function(t){if(R.isVoid(e,t)&&R.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`].includes(n)||void 0}))},e}(),IR=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`justify.left`),t.iconSvg=iue,t}return cP(t,e),t.prototype.exec=function(e,t){U.setNodes(e,{textAlign:`left`},{match:function(t){return L.isElement(t)&&!e.isInline(t)}})},t}(FR),LR=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`justify.right`),t.iconSvg=aue,t}return cP(t,e),t.prototype.exec=function(e,t){U.setNodes(e,{textAlign:`right`},{match:function(t){return L.isElement(t)&&!e.isInline(t)}})},t}(FR),RR=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`justify.center`),t.iconSvg=oue,t}return cP(t,e),t.prototype.exec=function(e,t){U.setNodes(e,{textAlign:`center`},{match:function(t){return L.isElement(t)&&!e.isInline(t)}})},t}(FR),zR=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Y(`justify.justify`),t.iconSvg=sue,t}return cP(t,e),t.prototype.exec=function(e,t){U.setNodes(e,{textAlign:`justify`},{match:function(t){return L.isElement(t)&&!e.isInline(t)}})},t}(FR),BR={renderStyle:function(e,t){if(!L.isElement(e))return t;var n=e.textAlign,r=t;return n&&JP(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!L.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=W(t);return r.css(`text-align`,n),rP(r)},parseStyleHtml:function(e,t,n){var r=W(e);if(!L.isElement(t))return t;var i=t,a=aP(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new IR}},{key:`justifyRight`,factory:function(){return new LR}},{key:`justifyCenter`,factory:function(){return new RR}},{key:`justifyJustify`,factory:function(){return new zR}}]},VR=function(){function e(){this.title=Y(`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=n===void 0?[]:n;t.push({text:Y(`lineHeight.default`),value:``}),r.forEach((function(e){t.push({text:e,value:e})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=pP(R.nodes(e,{match:function(e){var t=J.getNodeType(e);return!!t.startsWith(`header`)||!![`paragraph`,`blockquote`,`list-item`].includes(t)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return t==null?``:L.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){U.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),HR={renderStyle:function(e,t){if(!L.isElement(e))return t;var n=e.lineHeight,r=t;return n&&JP(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!L.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=W(t);return r.css(`line-height`,n),rP(r)},parseStyleHtml:function(e,t,n){var r=W(e);if(!L.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=aP(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new VR},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},UR=function(){function e(){this.title=Y(`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 e.selection==null},e.prototype.exec=function(e,t){typeof e.redo==`function`&&e.redo()},e}(),WR=function(){function e(){this.title=Y(`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 e.selection==null},e.prototype.exec=function(e,t){typeof e.undo==`function`&&e.undo()},e}(),GR={menus:[{key:`redo`,factory:function(){return new UR}},{key:`undo`,factory:function(){return new WR}}]},KR={type:`divider`,renderElem:function(e,t,n){return vh(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:J.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[vh(`hr`)])}},qR=function(){function e(){this.title=Y(`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 e.selection==null||!!J.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=J.getNodeType(t);return n===`table`||n===`pre`||void 0}))},e.prototype.exec=function(e,t){U.insertNodes(e,{type:`divider`,children:[{text:``}]},{mode:`highest`})},e}(),JR={renderElems:[KR],elemsToHtml:[{type:`divider`,elemToHtml:function(e,t){return`<hr/>`}}],parseElemsHtml:[{selector:`hr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`divider`,children:[{text:``}]}}}],menus:[{key:`divider`,factory:function(){return new qR}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`divider`||t(e)},r.normalizeNode=function(e){var t=pP(e,2),i=t[0],a=t[1];if(J.getNodeType(i)!==`divider`)return n([i,a]);J.isLastNode(r,i)&&U.insertNodes(r,J.genEmptyParagraph(),{at:[a[0]+1]})},r}},YR=dM.map;Uj({target:`Array`,proto:!0,forced:!pM(`map`)},{map:function(e){return YR(this,e,arguments.length>1?arguments[1]:void 0)}});var XR=X([].join),ZR=qk!=Object,QR=CP(`join`,`,`);Uj({target:`Array`,proto:!0,forced:ZR||!QR},{join:function(e){return XR(Yk(this),e===void 0?`,`:e)}});var $R=function(){function e(){this.title=Y(`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=J.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=J.getParentNode(e,t);return n==null||J.getNodeType(n)!==`pre`?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return t==null?``:t.language||``},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(e.selection==null)return!0;var t=J.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=J.getNodeType(e);if(t===`pre`||t===`paragraph`)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(t!=null){var n=z.string(t);U.removeNodes(e,{mode:`highest`});var r=n.split(`
|
|
58
|
+
`).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));U.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=R.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=fP(a),s=o.next();!s.done;s=o.next()){var c=pP(s.value,1)[0];c&&i.push(z.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}U.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
|
|
59
|
+
`)}]}]};U.insertNodes(e,l,{mode:`highest`})},e}(),ez={key:`codeBlock`,factory:function(){return new $R}};Uj({target:`String`,proto:!0,forced:_P(`anchor`)},{anchor:function(e){return gP(this,`a`,`name`,e)}}),iN(`match`,(function(e,t,n){return[function(t){var n=Jk(this),r=t==null?void 0:dA(t,e);return r?Lk(r,t,n):new RegExp(t)[e](vM(n))},function(e){var r=BA(this),i=vM(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return vN(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=vN(r,i))!==null;){var u=vM(s[0]);c[l]=u,u===``&&(r.lastIndex=lN(i,xj(r.lastIndex),o)),l++}return l===0?null:c}]}));var tz={menus:[ez],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var e=J.getSelectedNodeByType(i,`code`);if(e!=null){var n=function(e,t){var n=t.selection;if(n==null)return``;var r=z.string(e),i=n.anchor.offset,a=r.slice(0,i).split(`
|
|
60
|
+
`),o=a.length;return o===0?``:a[o-1]}(e,i);if(n){var r=n.match(/^\s+/);if(r!=null&&r[0]!=null){var a=r[0];i.insertText(`
|
|
61
|
+
`+a);return}}i.insertText(`
|
|
62
|
+
`)}else t()},i.normalizeNode=function(e){var t=pP(e,2),r=t[0],a=t[1],o=J.getNodeType(r);return o===`code`&&a.length<=1&&U.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(J.isLastNode(i,r)&&U.insertNodes(i,J.genEmptyParagraph(),{at:[a[0]+1]}),J.getNodeType(r.children[0])!==`code`&&(U.unwrapNodes(i),U.setNodes(i,{type:`paragraph`},{mode:`highest`}))),n([r,a])},i.insertData=function(e){if(J.getSelectedNodeByType(i,`code`)!=null){var t=e.getData(`text/plain`);R.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return Rh(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return Rh(`code`,null,t)}}],elemsToHtml:[{type:`code`,elemToHtml:function(e,t){return`<code>`+t+`</code>`}},{type:`pre`,elemToHtml:function(e,t){return`<pre>`+t+`</pre>`}}],preParseHtml:[{selector:`pre>code`,preParseHtml:function(e){var t=W(e);if(iP(t)!==`code`)return e;var n=t.find(`xmp`);if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:`pre:not([data-w-e-type])>code`,parseElemHtml:function(e,t,n){return{type:`code`,language:``,children:[{text:W(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=W(e);return(t=t.filter((function(e){return J.getNodeType(e)===`code`}))).length===0&&(t=[{type:`code`,language:``,children:[{text:r[0].textContent||``}]}]),{type:`pre`,children:t.filter((function(e){return J.getNodeType(e)===`code`}))}}}]},nz=function(){function e(){this.title=Y(`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 nz}}]},iz=function(){function e(){this.title=Y(`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 t==null||!!V.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];U.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(R.start(e,r))}},e}(),az=[vue,Xue,Cpe,Dpe,BR,HR,bde,JR,Pde,sde,tz,Mde,Gue,hP,Cde,GR,rz,{menus:[{key:`enter`,factory:function(){return new iz}}]}];gk(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),gk(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var oz=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function sz(e){var t={exports:{}};return e(t,t.exports),t.exports}var cz,lz,uz=function(e){return e&&e.Math==Math&&e},Z=uz(typeof globalThis==`object`&&globalThis)||uz(typeof window==`object`&&window)||uz(typeof self==`object`&&self)||uz(typeof oz==`object`&&oz)||function(){return this}()||Function(`return this`)(),dz=Function.prototype,fz=dz.bind,pz=dz.call,mz=fz&&fz.bind(pz),hz=fz?function(e){return e&&mz(pz,e)}:function(e){return e&&function(){return pz.apply(e,arguments)}},gz=function(e){try{return!!e()}catch{return!0}},_z=hz({}.toString),vz=hz(``.slice),yz=function(e){return vz(_z(e),8,-1)},bz=Z.Object,xz=hz(``.split),Sz=gz((function(){return!bz(`z`).propertyIsEnumerable(0)}))?function(e){return yz(e)==`String`?xz(e,``):bz(e)}:bz,Cz=Z.TypeError,wz=function(e){if(e==null)throw Cz(`Can't call method on `+e);return e},Tz=function(e){return Sz(wz(e))},Ez=Object.defineProperty,Dz=function(e,t){try{Ez(Z,e,{value:t,configurable:!0,writable:!0})}catch{Z[e]=t}return t},Oz=Z[`__core-js_shared__`]||Dz(`__core-js_shared__`,{}),kz=sz((function(e){(e.exports=function(e,t){return Oz[e]||(Oz[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Az=Z.Object,jz=function(e){return Az(wz(e))},Mz=hz({}.hasOwnProperty),Nz=Object.hasOwn||function(e,t){return Mz(jz(e),t)},Pz=0,Fz=Math.random(),Iz=hz(1 .toString),Lz=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Iz(++Pz+Fz,36)},Rz=function(e){return typeof e==`function`},zz=function(e){return Rz(e)?e:void 0},Bz=function(e,t){return arguments.length<2?zz(Z[e]):Z[e]&&Z[e][t]},Vz=Bz(`navigator`,`userAgent`)||``,Hz=Z.process,Uz=Z.Deno,Wz=Hz&&Hz.versions||Uz&&Uz.version,Gz=Wz&&Wz.v8;Gz&&(lz=(cz=Gz.split(`.`))[0]>0&&cz[0]<4?1:+(cz[0]+cz[1])),!lz&&Vz&&(!(cz=Vz.match(/Edge\/(\d+)/))||cz[1]>=74)&&(cz=Vz.match(/Chrome\/(\d+)/))&&(lz=+cz[1]);var Kz,qz=lz,Jz=!!Object.getOwnPropertySymbols&&!gz((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qz&&qz<41})),Yz=Jz&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Xz=kz(`wks`),Zz=Z.Symbol,Qz=Zz&&Zz.for,$z=Yz?Zz:Zz&&Zz.withoutSetter||Lz,eB=function(e){if(!Nz(Xz,e)||!Jz&&typeof Xz[e]!=`string`){var t=`Symbol.`+e;Jz&&Nz(Zz,e)?Xz[e]=Zz[e]:Xz[e]=Yz&&Qz?Qz(t):$z(t)}return Xz[e]},tB=function(e){return typeof e==`object`?e!==null:Rz(e)},nB=Z.String,rB=Z.TypeError,iB=function(e){if(tB(e))return e;throw rB(nB(e)+` is not an object`)},aB=!gz((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),oB=Z.document,sB=tB(oB)&&tB(oB.createElement),cB=function(e){return sB?oB.createElement(e):{}},lB=!aB&&!gz((function(){return Object.defineProperty(cB(`div`),`a`,{get:function(){return 7}}).a!=7})),uB=Function.prototype.call,dB=uB.bind?uB.bind(uB):function(){return uB.apply(uB,arguments)},fB=hz({}.isPrototypeOf),pB=Z.Object,mB=Yz?function(e){return typeof e==`symbol`}:function(e){var t=Bz(`Symbol`);return Rz(t)&&fB(t.prototype,pB(e))},hB=Z.String,gB=function(e){try{return hB(e)}catch{return`Object`}},_B=Z.TypeError,vB=function(e){if(Rz(e))return e;throw _B(gB(e)+` is not a function`)},yB=function(e,t){var n=e[t];return n==null?void 0:vB(n)},bB=Z.TypeError,xB=Z.TypeError,SB=eB(`toPrimitive`),CB=function(e){var t=function(e,t){if(!tB(e)||mB(e))return e;var n,r=yB(e,SB);if(r){if(t===void 0&&(t=`default`),n=dB(r,e,t),!tB(n)||mB(n))return n;throw xB(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Rz(n=e.toString)&&!tB(r=dB(n,e))||Rz(n=e.valueOf)&&!tB(r=dB(n,e))||t!==`string`&&Rz(n=e.toString)&&!tB(r=dB(n,e)))return r;throw bB(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return mB(t)?t:t+``},wB=Z.TypeError,TB=Object.defineProperty,EB={f:aB?TB:function(e,t,n){if(iB(e),t=CB(t),iB(n),lB)try{return TB(e,t,n)}catch{}if(`get`in n||`set`in n)throw wB(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},DB=Math.ceil,OB=Math.floor,kB=function(e){var t=+e;return t!=t||t===0?0:(t>0?OB:DB)(t)},AB=Math.max,jB=Math.min,MB=function(e,t){var n=kB(e);return n<0?AB(n+t,0):jB(n,t)},NB=Math.min,PB=function(e){return e>0?NB(kB(e),9007199254740991):0},FB=function(e){return PB(e.length)},IB=function(e){return function(t,n,r){var i,a=Tz(t),o=FB(a),s=MB(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},LB={includes:IB(!0),indexOf:IB(!1)},RB={},zB=LB.indexOf,BB=hz([].push),VB=function(e,t){var n,r=Tz(e),i=0,a=[];for(n in r)!Nz(RB,n)&&Nz(r,n)&&BB(a,n);for(;t.length>i;)Nz(r,n=t[i++])&&(~zB(a,n)||BB(a,n));return a},HB=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],UB=Object.keys||function(e){return VB(e,HB)},WB=aB?Object.defineProperties:function(e,t){iB(e);for(var n,r=Tz(t),i=UB(t),a=i.length,o=0;a>o;)EB.f(e,n=i[o++],r[n]);return e},GB=Bz(`document`,`documentElement`),KB=kz(`keys`),qB=function(e){return KB[e]||(KB[e]=Lz(e))},JB=qB(`IE_PROTO`),YB=function(){},XB=function(e){return`<script>`+e+`<\/script>`},ZB=function(e){e.write(XB(``)),e.close();var t=e.parentWindow.Object;return e=null,t},QB=function(){try{Kz=new ActiveXObject(`htmlfile`)}catch{}var e,t;QB=typeof document<`u`?document.domain&&Kz?ZB(Kz):((t=cB(`iframe`)).style.display=`none`,GB.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(XB(`document.F=Object`)),e.close(),e.F):ZB(Kz);for(var n=HB.length;n--;)delete QB.prototype[HB[n]];return QB()};RB[JB]=!0;var $B=Object.create||function(e,t){var n;return e===null?n=QB():(YB.prototype=iB(e),n=new YB,YB.prototype=null,n[JB]=e),t===void 0?n:WB(n,t)},eV=eB(`unscopables`),tV=Array.prototype;tV[eV]??EB.f(tV,eV,{configurable:!0,value:$B(null)});var nV=function(e){tV[eV][e]=!0},rV={},iV=hz(Function.toString);Rz(Oz.inspectSource)||(Oz.inspectSource=function(e){return iV(e)});var aV,oV,sV,cV=Oz.inspectSource,lV=Z.WeakMap,uV=Rz(lV)&&/native code/.test(cV(lV)),dV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fV=aB?function(e,t,n){return EB.f(e,t,dV(1,n))}:function(e,t,n){return e[t]=n,e},pV=Z.TypeError,mV=Z.WeakMap;if(uV||Oz.state){var hV=Oz.state||=new mV,gV=hz(hV.get),_V=hz(hV.has),vV=hz(hV.set);aV=function(e,t){if(_V(hV,e))throw new pV(`Object already initialized`);return t.facade=e,vV(hV,e,t),t},oV=function(e){return gV(hV,e)||{}},sV=function(e){return _V(hV,e)}}else{var yV=qB(`state`);RB[yV]=!0,aV=function(e,t){if(Nz(e,yV))throw new pV(`Object already initialized`);return t.facade=e,fV(e,yV,t),t},oV=function(e){return Nz(e,yV)?e[yV]:{}},sV=function(e){return Nz(e,yV)}}var bV,xV,SV,CV={set:aV,get:oV,has:sV,enforce:function(e){return sV(e)?oV(e):aV(e,{})},getterFor:function(e){return function(t){var n;if(!tB(t)||(n=oV(t)).type!==e)throw pV(`Incompatible receiver, `+e+` required`);return n}}},wV={}.propertyIsEnumerable,TV=Object.getOwnPropertyDescriptor,EV={f:TV&&!wV.call({1:2},1)?function(e){var t=TV(this,e);return!!t&&t.enumerable}:wV},DV=Object.getOwnPropertyDescriptor,OV={f:aB?DV:function(e,t){if(e=Tz(e),t=CB(t),lB)try{return DV(e,t)}catch{}if(Nz(e,t))return dV(!dB(EV.f,e,t),e[t])}},kV=Function.prototype,AV=aB&&Object.getOwnPropertyDescriptor,jV=Nz(kV,`name`),MV={EXISTS:jV,PROPER:jV&&function(){}.name===`something`,CONFIGURABLE:jV&&(!aB||aB&&AV(kV,`name`).configurable)},NV=sz((function(e){var t=MV.CONFIGURABLE,n=CV.get,r=CV.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;Rz(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Nz(a,`name`)||t&&a.name!==d)&&fV(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Z?l?e[n]=a:Dz(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:fV(e,n,a))})(Function.prototype,`toString`,(function(){return Rz(this)&&n(this).source||cV(this)}))})),PV=HB.concat(`length`,`prototype`),FV={f:Object.getOwnPropertyNames||function(e){return VB(e,PV)}},IV={f:Object.getOwnPropertySymbols},LV=hz([].concat),RV=Bz(`Reflect`,`ownKeys`)||function(e){var t=FV.f(iB(e)),n=IV.f;return n?LV(t,n(e)):t},zV=function(e,t){for(var n=RV(t),r=EB.f,i=OV.f,a=0;a<n.length;a++){var o=n[a];Nz(e,o)||r(e,o,i(t,o))}},BV=/#|\.prototype\./,VV=function(e,t){var n=UV[HV(e)];return n==GV||n!=WV&&(Rz(t)?gz(t):!!t)},HV=VV.normalize=function(e){return String(e).replace(BV,`.`).toLowerCase()},UV=VV.data={},WV=VV.NATIVE=`N`,GV=VV.POLYFILL=`P`,KV=VV,qV=OV.f,JV=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Z:l?Z[s]||Dz(s,{}):(Z[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=qV(n,r))&&o.value:n[r],!KV(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;zV(a,i)}(e.sham||i&&i.sham)&&fV(a,`sham`,!0),NV(n,r,a,e)}},YV=!gz((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),XV=qB(`IE_PROTO`),ZV=Z.Object,QV=ZV.prototype,$V=YV?ZV.getPrototypeOf:function(e){var t=jz(e);if(Nz(t,XV))return t[XV];var n=t.constructor;return Rz(n)&&t instanceof n?n.prototype:t instanceof ZV?QV:null},eH=eB(`iterator`),tH=!1;[].keys&&(`next`in(SV=[].keys())?(xV=$V($V(SV)))!==Object.prototype&&(bV=xV):tH=!0),(bV==null||gz((function(){var e={};return bV[eH].call(e)!==e})))&&(bV={}),Rz(bV[eH])||NV(bV,eH,(function(){return this}));var nH={IteratorPrototype:bV,BUGGY_SAFARI_ITERATORS:tH},rH=EB.f,iH=eB(`toStringTag`),aH=function(e,t,n){e&&!Nz(e=n?e:e.prototype,iH)&&rH(e,iH,{configurable:!0,value:t})},oH=nH.IteratorPrototype,sH=function(){return this},cH=Z.String,lH=Z.TypeError,uH=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=hz(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return iB(n),function(e){if(typeof e==`object`||Rz(e))return e;throw lH(`Can't set `+cH(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),dH=MV.PROPER,fH=MV.CONFIGURABLE,pH=nH.IteratorPrototype,mH=nH.BUGGY_SAFARI_ITERATORS,hH=eB(`iterator`),gH=function(){return this},_H=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=$B(oH,{next:dV(1,n)}),aH(e,i,!1),rV[i]=sH})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!mH&&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)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[hH]||p[`@@iterator`]||i&&p[i],h=!mH&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=$V(g.call(new e)))!==Object.prototype&&s.next&&($V(s)!==pH&&(uH?uH(s,pH):Rz(s[hH])||NV(s,hH,gH)),aH(s,d,!0)),dH&&i==`values`&&m&&m.name!==`values`&&(fH?fV(p,`name`,`values`):(f=!0,h=function(){return dB(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(mH||f||!(l in p))&&NV(p,l,c[l]);else JV({target:t,proto:!0,forced:mH||f},c);return p[hH]!==h&&NV(p,hH,h,{name:i}),rV[t]=h,c},vH=CV.set,yH=CV.getterFor(`Array Iterator`),bH=_H(Array,`Array`,(function(e,t){vH(this,{type:`Array Iterator`,target:Tz(e),index:0,kind:t})}),(function(){var e=yH(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);rV.Arguments=rV.Array,nV(`keys`),nV(`values`),nV(`entries`);var xH={};xH[eB(`toStringTag`)]=`z`;var SH=String(xH)===`[object z]`,CH=eB(`toStringTag`),wH=Z.Object,TH=yz(function(){return arguments}())==`Arguments`,EH=SH?yz:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=wH(e),CH))==`string`?n:TH?yz(t):(r=yz(t))==`Object`&&Rz(t.callee)?`Arguments`:r},DH=SH?{}.toString:function(){return`[object `+EH(this)+`]`};SH||NV(Object.prototype,`toString`,DH,{unsafe:!0});var OH=Z.String,kH=function(e){if(EH(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return OH(e)},AH=hz(``.charAt),jH=hz(``.charCodeAt),MH=hz(``.slice),NH=function(e){return function(t,n){var r,i,a=kH(wz(t)),o=kB(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=jH(a,o))<55296||r>56319||o+1===s||(i=jH(a,o+1))<56320||i>57343?e?AH(a,o):r:e?MH(a,o,o+2):i-56320+(r-55296<<10)+65536}},PH={codeAt:NH(!1),charAt:NH(!0)},FH=PH.charAt,IH=CV.set,LH=CV.getterFor(`String Iterator`);_H(String,`String`,(function(e){IH(this,{type:`String Iterator`,string:kH(e),index:0})}),(function(){var e,t=LH(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=FH(n,r),t.index+=e.length,{value:e,done:!1})}));var RH=function(e,t,n){for(var r in t)NV(e,r,t[r],n);return e},zH=Z.Array,BH=Math.max,VH=FV.f,HH=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],UH={f:function(e){return HH&&yz(e)==`Window`?function(e){try{return VH(e)}catch{return function(e,t,n){for(var r,i,a,o,s=FB(e),c=MB(void 0,s),l=MB(s,s),u=zH(BH(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=CB(i))in r?EB.f(r,o,dV(0,a)):r[o]=a;return u.length=d,u}(HH)}}(e):VH(Tz(e))}},WH=gz((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),GH=Object.isExtensible,KH=gz((function(){GH(1)}))||WH?function(e){return!!tB(e)&&(!WH||yz(e)!=`ArrayBuffer`)&&(!GH||GH(e))}:GH,qH=!gz((function(){return Object.isExtensible(Object.preventExtensions({}))})),JH=sz((function(e){var t=EB.f,n=!1,r=Lz(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=FV.f,t=hz([].splice),i={};i[r]=1,e(i).length&&(FV.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},JV({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:UH.f}))},fastKey:function(e,t){if(!tB(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!Nz(e,r)){if(!KH(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!Nz(e,r)){if(!KH(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return qH&&n&&KH(e)&&!Nz(e,r)&&a(e),e}};RB[r]=!0})),YH=hz(hz.bind),XH=function(e,t){return vB(e),t===void 0?e:YH?YH(e,t):function(){return e.apply(t,arguments)}},ZH=eB(`iterator`),QH=Array.prototype,$H=eB(`iterator`),eU=function(e){if(e!=null)return yB(e,$H)||yB(e,`@@iterator`)||rV[EH(e)]},tU=Z.TypeError,nU=function(e,t,n){var r,i;iB(e);try{if(!(r=yB(e,`return`))){if(t===`throw`)throw n;return n}r=dB(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return iB(r),n},rU=Z.TypeError,iU=function(e,t){this.stopped=e,this.result=t},aU=iU.prototype,oU=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=XH(t,d),g=function(e){return r&&nU(r,`normal`,e),new iU(!0,e)},_=function(e){return f?(iB(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=eU(e)))throw rU(gB(e)+` is not iterable`);if((u=i)!==void 0&&(rV.Array===u||QH[ZH]===u)){for(a=0,o=FB(e);o>a;a++)if((s=_(e[a]))&&fB(aU,s))return s;return new iU(!1)}r=function(e,t){var n=arguments.length<2?eU(e):t;if(vB(n))return iB(dB(n,e));throw tU(gB(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=dB(c,r)).done;){try{s=_(l.value)}catch(e){nU(r,`throw`,e)}if(typeof s==`object`&&s&&fB(aU,s))return s}return new iU(!1)},sU=Z.TypeError,cU=function(e,t){if(fB(t,e))return e;throw sU(`Incorrect invocation`)},lU=eB(`iterator`),uU=!1;try{var dU=0,fU={next:function(){return{done:!!dU++}},return:function(){uU=!0}};fU[lU]=function(){return this},Array.from(fU,(function(){throw 2}))}catch{}var pU=Array.isArray||function(e){return yz(e)==`Array`},mU=function(){},hU=[],gU=Bz(`Reflect`,`construct`),_U=/^\s*(?:class|function)\b/,vU=hz(_U.exec),yU=!_U.exec(mU),bU=function(e){if(!Rz(e))return!1;try{return gU(mU,hU,e),!0}catch{return!1}},xU=!gU||gz((function(){var e;return bU(bU.call)||!bU(Object)||!bU((function(){e=!0}))||e}))?function(e){if(!Rz(e))return!1;switch(EH(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return yU||!!vU(_U,cV(e))}:bU,SU=eB(`species`),CU=Z.Array,wU=function(e,t){return new(function(e){var t;return pU(e)&&(t=e.constructor,(xU(t)&&(t===CU||pU(t.prototype))||tB(t)&&(t=t[SU])===null)&&(t=void 0)),t===void 0?CU:t}(e))(t===0?0:t)},TU=hz([].push),EU=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=jz(c),h=Sz(m),g=XH(l,u),_=FB(h),v=0,y=d||wU,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:TU(b,f)}else switch(e){case 4:return!1;case 7:TU(b,f)}return a?-1:r||i?i:b}},DU={forEach:EU(0),map:EU(1),filter:EU(2),some:EU(3),every:EU(4),find:EU(5),findIndex:EU(6),filterReject:EU(7)},OU=JH.getWeakData,kU=CV.set,AU=CV.getterFor,jU=DU.find,MU=DU.findIndex,NU=hz([].splice),PU=0,FU=function(e){return e.frozen||=new IU},IU=function(){this.entries=[]},LU=function(e,t){return jU(e.entries,(function(e){return e[0]===t}))};IU.prototype={get:function(e){var t=LU(this,e);if(t)return t[1]},has:function(e){return!!LU(this,e)},set:function(e,t){var n=LU(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=MU(this.entries,(function(t){return t[0]===e}));return~t&&NU(this.entries,t,1),!!~t}};var RU,zU={getConstructor:function(e,t,n,r){var i=e((function(e,i){cU(e,a),kU(e,{type:t,id:PU++,frozen:void 0}),i!=null&&oU(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=AU(t),s=function(e,t,n){var r=o(e),i=OU(iB(t),!0);return!0===i?FU(r).set(t,n):i[r.id]=n,e};return RH(a,{delete:function(e){var t=o(this);if(!tB(e))return!1;var n=OU(e);return!0===n?FU(t).delete(e):n&&Nz(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!tB(e))return!1;var n=OU(e);return!0===n?FU(t).has(e):n&&Nz(n,t.id)}}),RH(a,n?{get:function(e){var t=o(this);if(tB(e)){var n=OU(e);return!0===n?FU(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},BU=CV.enforce,VU=!Z.ActiveXObject&&`ActiveXObject`in Z,HU=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},UU=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=Z[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=hz(s[e]);NV(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!tB(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!tB(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!tB(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(KV(e,!Rz(o)||!(i||s.forEach&&!gz((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),JH.enable();else if(KV(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=gz((function(){d.has(1)})),m=function(e,t){if(!uU)return!1;var n=!1;try{var r={};r[lU]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&gz((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){cU(e,s);var n=function(e,t,n){var r,i;return uH&&Rz(r=t.constructor)&&r!==n&&tB(i=r.prototype)&&i!==n.prototype&&uH(e,i),e}(new o,e,c);return t!=null&&oU(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,JV({global:!0,forced:c!=o},l),aH(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,HU,zU);if(uV&&VU){RU=zU.getConstructor(HU,`WeakMap`,!0),JH.enable();var WU=UU.prototype,GU=hz(WU.delete),KU=hz(WU.has),qU=hz(WU.get),JU=hz(WU.set);RH(WU,{delete:function(e){if(tB(e)&&!KH(e)){var t=BU(this);return t.frozen||=new RU,GU(this,e)||t.frozen.delete(e)}return GU(this,e)},has:function(e){if(tB(e)&&!KH(e)){var t=BU(this);return t.frozen||=new RU,KU(this,e)||t.frozen.has(e)}return KU(this,e)},get:function(e){if(tB(e)&&!KH(e)){var t=BU(this);return t.frozen||=new RU,KU(this,e)?qU(this,e):t.frozen.get(e)}return qU(this,e)},set:function(e,t){if(tB(e)&&!KH(e)){var n=BU(this);n.frozen||=new RU,KU(this,e)?JU(this,e,t):n.frozen.set(e,t)}else JU(this,e,t);return this}})}var YU={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},XU=cB(`span`).classList,ZU=XU&&XU.constructor&&XU.constructor.prototype,QU=ZU===Object.prototype?void 0:ZU,$U=eB(`iterator`),eW=eB(`toStringTag`),tW=bH.values,nW=function(e,t){if(e){if(e[$U]!==tW)try{fV(e,$U,tW)}catch{e[$U]=tW}if(e[eW]||fV(e,eW,t),YU[t]){for(var n in bH)if(e[n]!==bH[n])try{fV(e,n,bH[n])}catch{e[n]=bH[n]}}}};for(var rW in YU)nW(Z[rW]&&Z[rW].prototype,rW);nW(QU,`DOMTokenList`);var iW=new WeakMap,aW={type:`list-item`,renderElem:function(e,t,n){iW.set(e,n);var r=e,i=r.level,a=i===void 0?0:i,o=r.ordered,s={margin:`5px 0 5px `+20*a+`px`},c=``;c=o!==void 0&&o?function(e,t){var n=t,r=n.type,i=n.level,a=i===void 0?0:i,o=n.ordered,s=o!==void 0&&o;if(!s)return-1;var c=1,l=t,u=J.findPath(e,l);if(u[0]===0)return 1;for(;u[0]>0;){var d=B.previous(u),f=R.node(e,d);if(f==null)break;var p=f[0],m=p.level,h=m===void 0?0:m,g=p.type,_=p.ordered;if(g!==r||h<a)break;if(h===a){if(_!==s)break;c++}l=p,u=d}return c}(n,e)+`.`:function(e){e===void 0&&(e=0);var t=``;switch(e){case 0:t=`•`;break;case 1:t=`◦`;break;default:t=`▪`}return t}(a);var l=function(e){var t,n=e.children||[],r=n.length;if(r===0)return``;for(var i=0;i<r&&!t;i++){var a=n[i];H.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return Rh(`div`,{style:s},Rh(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),Rh(`span`,null,t))}},oW=function(e,t){return oW=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])},oW(e,t)};function sW(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}oW(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function cW(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function lW(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function uW(e){return R.nodes(e,{at:e.selection||void 0,match:function(t){return J.findPath(e,t).length===1}})}var dW=LB.includes;JV({target:`Array`,proto:!0},{includes:function(e){return dW(this,e,arguments.length>1?arguments[1]:void 0)}}),nV(`includes`);var fW,pW,mW=function(){var e=iB(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},hW=Z.RegExp,gW=gz((function(){var e=hW(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),_W=gW||gz((function(){return!hW(`a`,`y`).sticky})),vW={BROKEN_CARET:gW||gz((function(){var e=hW(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:_W,UNSUPPORTED_Y:gW},yW=Z.RegExp,bW=gz((function(){var e=yW(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
63
|
+
`)&&e.flags===`s`)})),xW=Z.RegExp,SW=gz((function(){var e=xW(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),CW=CV.get,wW=kz(`native-string-replace`,String.prototype.replace),TW=RegExp.prototype.exec,EW=TW,DW=hz(``.charAt),OW=hz(``.indexOf),kW=hz(``.replace),AW=hz(``.slice),jW=(pW=/b*/g,dB(TW,fW=/a/,`a`),dB(TW,pW,`a`),fW.lastIndex!==0||pW.lastIndex!==0),MW=vW.BROKEN_CARET,NW=/()??/.exec(``)[1]!==void 0;(jW||NW||MW||bW||SW)&&(EW=function(e){var t,n,r,i,a,o,s,c=this,l=CW(c),u=kH(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=dB(EW,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=MW&&c.sticky,m=dB(mW,c),h=c.source,g=0,_=u;if(p&&(m=kW(m,`y`,``),OW(m,`g`)===-1&&(m+=`g`),_=AW(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&DW(u,c.lastIndex-1)!==`
|
|
64
|
+
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),NW&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),jW&&(r=c.lastIndex),i=dB(TW,p?n:c,_),p?i?(i.input=AW(i.input,g),i[0]=AW(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:jW&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),NW&&i&&i.length>1&&dB(wW,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=$B(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var PW=EW;JV({target:`RegExp`,proto:!0,forced:/./.exec!==PW},{exec:PW});var FW=function(){function e(){this.type=`list-item`,this.tag=`button`}return e.prototype.getListNode=function(e){var t=this.type;return J.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){var t=this.getListNode(e);if(t==null)return!1;var n=t.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(e){return e.selection==null||!!J.getSelectedElems(e).some((function(t){if(R.isVoid(e,t)&&R.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?U.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):U.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),IW=`<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>`,LW=`<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>`,RW=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Y(`listModule.unOrderedList`),t.iconSvg=IW,t}return sW(t,e),t}(FW),zW=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Y(`listModule.orderedList`),t.iconSvg=LW,t}return sW(t,e),t}(FW),BW={key:`bulletedList`,factory:function(){return new RW}},VW={key:`numberedList`,factory:function(){return new zW}},HW=[],UW={type:`list-item`,elemToHtml:function(e,t){var n=``,r=``,i=e.ordered,a=i!==void 0&&i?`ol`:`ul`,o=function(e){var t=iW.get(e);if(t==null)return 0;var n=e,r=n.type,i=n.ordered,a=i!==void 0&&i,o=n.level,s=o===void 0?0:o,c=J.findPath(t,e);if(c[0]===0)return s+1;var l=B.previous(c),u=R.node(t,l);if(!u)return 0;var d=lW(u,1)[0];if(J.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,m=p!==void 0&&p,h=f.level,g=h===void 0?0:h;return g<s?s-g:g>s?0:g===s?m===a?0:1:0}(e);if(o>0)for(var s=0;s<o;s++)n+=`<`+a+`>`,HW.push(a);var c=function(e){var t=iW.get(e);if(t==null)return 0;var n=e,r=n.type,i=n.ordered,a=i!==void 0&&i,o=n.level,s=o===void 0?0:o,c=J.findPath(t,e);if(c[0]===t.children.length-1)return s+1;var l=B.next(c),u=R.node(t,l);if(!u)return 0;var d=lW(u,1)[0];if(J.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,m=p!==void 0&&p,h=f.level,g=h===void 0?0:h;return g<s?s-g:g>s?0:g===s?m===a?0:1:0}(e);if(c>0)for(s=0;s<c;s++)r+=`</`+HW.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},WW=eB(`species`),GW=DU.filter;JV({target:`Array`,proto:!0,forced:!(qz>=51||!gz((function(){var e=[];return(e.constructor={})[WW]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return GW(this,e,arguments.length>1?arguments[1]:void 0)}});var KW=Function.prototype,qW=KW.apply,JW=KW.bind,YW=KW.call,XW=typeof Reflect==`object`&&Reflect.apply||(JW?YW.bind(qW):function(){return YW.apply(qW,arguments)}),ZW=(eB(`species`),RegExp.prototype),QW=PH.charAt,$W=function(e,t,n){return t+(n?QW(e,t).length:1)},eG=Math.floor,tG=hz(``.charAt),nG=hz(``.replace),rG=hz(``.slice),iG=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,aG=/\$([$&'`]|\d{1,2})/g,oG=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=aG;return i!==void 0&&(i=jz(i),c=iG),nG(a,c,(function(a,c){var l;switch(tG(c,0)){case`$`:return`$`;case`&`:return e;case"`":return rG(t,0,n);case`'`:return rG(t,o);case`<`:l=i[rG(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=eG(u/10);return d===0?a:d<=s?r[d-1]===void 0?tG(c,1):r[d-1]+tG(c,1):a}l=r[u-1]}return l===void 0?``:l}))},sG=Z.TypeError,cG=function(e,t){var n=e.exec;if(Rz(n)){var r=dB(n,e,t);return r!==null&&iB(r),r}if(yz(e)===`RegExp`)return dB(PW,e,t);throw sG(`RegExp#exec called on incompatible receiver`)},lG=eB(`replace`),uG=Math.max,dG=Math.min,fG=hz([].concat),pG=hz([].push),mG=hz(``.indexOf),hG=hz(``.slice),gG=`a`.replace(/./,`$0`)===`$0`,_G=!!/./[lG]&&/./[lG](`a`,`$0`)===``;(function(e,t,n,r){var i=eB(e),a=!gz((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!gz((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=hz(/./[i]),c=function(e,t,n){var r=_G?`$`:`$0`;return[function(e,n){var r=wz(this),i=e==null?void 0:yB(e,lG);return i?dB(i,e,r,n):dB(t,kH(r),e,n)},function(e,i){var a=iB(this),o=kH(e);if(typeof i==`string`&&mG(i,r)===-1&&mG(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=Rz(i);c||(i=kH(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=cG(a,o);if(f===null||(pG(d,f),!l))break;kH(f[0])===``&&(a.lastIndex=$W(o,PB(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=kH((f=d[g])[0]),v=uG(dG(kB(f.index),o.length),0),y=[],b=1;b<f.length;b++)pG(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=fG([_],y,v,o);x!==void 0&&pG(S,x);var C=kH(XW(i,void 0,S))}else C=oG(_,o,v,y,x,i);v>=h&&(m+=hG(o,h,v)+C,h=v+_.length)}return m+hG(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=hz(e),c=t.exec;return c===PW||c===ZW.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));NV(String.prototype,e,c[0]),NV(ZW,i,c[1])}})(`replace`,0,!!gz((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!gG||_G);var vG=Z.TypeError,yG=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&XH(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&pU(c))l=FB(c),u=yG(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw vG(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},bG=yG;function xG(e){return e.length?e[0].tagName.toLowerCase():``}JV({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=jz(this),n=FB(t),r=wU(t,0);return r.length=bG(r,t,t,n,0,e===void 0?1:kB(e)),r}}),nV(`flat`),JV({global:!0},{globalThis:Z}),wm&&(W.fn.append=wm),sm&&(W.fn.attr=sm),Em&&(W.fn.parent=Em);var SG={renderElems:[aW],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(e){var n=i.selection;if(n!=null)if(V.isExpanded(n))t(e);else{var r=J.getSelectedNodeByType(i,`list-item`);if(r!=null)if(n.focus.offset!==0)t(e);else{var a=r.level,o=a===void 0?0:a;o>0?U.setNodes(i,{level:o-1}):U.setNodes(i,{type:`paragraph`,ordered:void 0,level:void 0})}else t(e)}else t(e)},i.handleTab=function(){var e,t,r,a,o=i.selection;if(o!=null){if(V.isCollapsed(o)){var s=J.getSelectedNodeByType(i,`list-item`);if(s==null)return void n();if(o.focus.offset===0){var c=s.level,l=c===void 0?0:c;U.setNodes(i,{level:l+1});return}}if(V.isExpanded(o)){var u=0,d=!1;try{for(var f=cW(uW(i)),p=f.next();!p.done;p=f.next()){var m=lW(p.value,1)[0];J.getNodeType(m)===`list-item`?u++:d=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(d||u<=1)return void n();try{for(var h=cW(uW(i)),g=h.next();!g.done;g=h.next()){var _=lW(g.value,2),v=(m=_[0],_[1]),y=m.level;l=y===void 0?0:y,U.setNodes(i,{level:l+1},{at:v})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=lW(e,2),n=t[0],a=t[1],o=J.getNodeType(n);return o!==`bulleted-list`&&o!==`numbered-list`||U.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[BW,VW],elemsToHtml:[UW],parseElemsHtml:[{selector:`ul:not([data-w-e-type]),ol:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:`li:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=W(e);return(t=t.filter((function(e){return!!H.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return xG(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=xG(n);r===`ul`||r===`ol`;)r=xG(n=n.parent()),t++;return t-1}(r),children:t}}}]},CG=Mr((function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C[`[object Float32Array]`]=C[`[object Float64Array]`]=C[`[object Int8Array]`]=C[`[object Int16Array]`]=C[`[object Int32Array]`]=C[`[object Uint8Array]`]=C[`[object Uint8ClampedArray]`]=C[`[object Uint16Array]`]=C[`[object Uint32Array]`]=!0,C[i]=C[a]=C[y]=C[o]=C[b]=C[s]=C[c]=C[l]=C[u]=C[d]=C[f]=C[m]=C[h]=C[g]=C[v]=!1;var w=typeof jr==`object`&&jr&&jr.Object===Object&&jr,T=typeof self==`object`&&self&&self.Object===Object&&self,E=w||T||Function(`return this`)(),D=t&&!t.nodeType&&t,O=D&&e&&!e.nodeType&&e,k=O&&O.exports===D,ee=k&&w.process,te=function(){try{return ee&&ee.binding&&ee.binding(`util`)}catch{}}(),A=te&&te.isTypedArray;function ne(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function M(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var N=Array.prototype,P=Function.prototype,re=Object.prototype,ie=E[`__core-js_shared__`],ae=P.toString,F=re.hasOwnProperty,oe=function(){var e=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),se=re.toString,ce=RegExp(`^`+ae.call(F).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),le=k?E.Buffer:void 0,ue=E.Symbol,de=E.Uint8Array,fe=re.propertyIsEnumerable,pe=N.splice,me=ue?ue.toStringTag:void 0,I=Object.getOwnPropertySymbols,he=le?le.isBuffer:void 0,ge=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),_e=Ge(E,`DataView`),ve=Ge(E,`Map`),ye=Ge(E,`Promise`),be=Ge(E,`Set`),xe=Ge(E,`WeakMap`),Se=Ge(Object,`create`),Ce=Ye(_e),we=Ye(ve),Te=Ye(ye),Ee=Ye(be),De=Ye(xe),Oe=ue?ue.prototype:void 0,ke=Oe?Oe.valueOf:void 0;function Ae(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Me(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Me;++t<n;)this.add(e[t])}function Pe(e){this.size=(this.__data__=new je(e)).size}function Fe(e,t){var n=Qe(e),r=!n&&Ze(e),i=!n&&!r&&$e(e),a=!n&&!r&&!i&&it(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!F.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Je(l,c))||s.push(l);return s}function Ie(e,t){for(var n=e.length;n--;)if(Xe(e[n][0],t))return n;return-1}function Le(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:me&&me in Object(e)?function(e){var t=F.call(e,me),n=e[me];try{e[me]=void 0;var r=!0}catch{}var i=se.call(e);return r&&(t?e[me]=n:delete e[me]),i}(e):function(e){return se.call(e)}(e)}function Re(e){return rt(e)&&Le(e)==i}function ze(e,t,n,r,l){return e===t||(e==null||t==null||!rt(e)&&!rt(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var v=Qe(e),x=Qe(t),S=v?a:qe(e),C=x?a:qe(t),w=(S=S==i?f:S)==f,T=(C=C==i?f:C)==f,E=S==C;if(E&&$e(e)){if(!$e(t))return!1;v=!0,w=!1}if(E&&!w)return p||=new Pe,v||it(e)?He(e,t,n,r,l,p):function(e,t,n,r,i,a,l){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!a(new de(e),new de(t)));case o:case s:case d:return Xe(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=j;case h:var p=1&r;if(f||=M,e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;r|=2,l.set(e,t);var x=He(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(ke)return ke.call(e)==ke.call(t)}return!1}(e,t,S,n,r,l,p);if(!(1&n)){var D=w&&F.call(e,`__wrapped__`),O=T&&F.call(t,`__wrapped__`);if(D||O){var k=D?e.value():e,ee=O?t.value():t;return p||=new Pe,l(k,ee,n,r,p)}}return E?(p||=new Pe,function(e,t,n,r,i,a){var o=1&n,s=Ue(e),c=s.length;if(c!=Ue(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:F.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){var m=e[u=s[l]],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||i(m,h,n,r,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_==v||!(`constructor`in e)||!(`constructor`in t)||typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,l,p)):!1}(e,t,n,r,ze,l))}function Be(e){return!(!nt(e)||function(e){return!!oe&&oe in e}(e))&&(et(e)?ce:x).test(Ye(e))}function Ve(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||re,t!==r)return ge(e);var t,n,r,i=[];for(var a in Object(e))F.call(e,a)&&a!=`constructor`&&i.push(a);return i}function He(e,t,n,r,i,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=2&n?new Ne:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!ne(t,(function(e,t){if(o=t,!f.has(o)&&(p===e||i(p,e,n,r,a)))return f.push(t);var o}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Ue(e){return function(e,t,n){var r=t(e);return Qe(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,at,Ke)}function We(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function Ge(e,t){var n=function(e,t){return e?.[t]}(e,t);return Be(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=Se?Se(null):{},this.size=0},Ae.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ae.prototype.get=function(e){var t=this.__data__;if(Se){var r=t[e];return r===n?void 0:r}return F.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return Se?t[e]!==void 0:F.call(t,e)},Ae.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Se&&t===void 0?n:t,this},je.prototype.clear=function(){this.__data__=[],this.size=0},je.prototype.delete=function(e){var t=this.__data__,n=Ie(t,e);return!(n<0)&&(n==t.length-1?t.pop():pe.call(t,n,1),--this.size,!0)},je.prototype.get=function(e){var t=this.__data__,n=Ie(t,e);return n<0?void 0:t[n][1]},je.prototype.has=function(e){return Ie(this.__data__,e)>-1},je.prototype.set=function(e,t){var n=this.__data__,r=Ie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Me.prototype.clear=function(){this.size=0,this.__data__={hash:new Ae,map:new(ve||je),string:new Ae}},Me.prototype.delete=function(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t},Me.prototype.get=function(e){return We(this,e).get(e)},Me.prototype.has=function(e){return We(this,e).has(e)},Me.prototype.set=function(e,t){var n=We(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ne.prototype.add=Ne.prototype.push=function(e){return this.__data__.set(e,n),this},Ne.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new je,this.size=0},Pe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof je){var r=n.__data__;if(!ve||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Me(r)}return n.set(e,t),this.size=n.size,this};var Ke=I?function(e){return e==null?[]:(e=Object(e),function(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(I(e),(function(t){return fe.call(e,t)})))}:function(){return[]},qe=Le;function Je(e,t){return!!(t??=r)&&(typeof e==`number`||S.test(e))&&e>-1&&e%1==0&&e<t}function Ye(e){if(e!=null){try{return ae.call(e)}catch{}try{return e+``}catch{}}return``}function Xe(e,t){return e===t||e!=e&&t!=t}(_e&&qe(new _e(new ArrayBuffer(1)))!=b||ve&&qe(new ve)!=u||ye&&qe(ye.resolve())!=p||be&&qe(new be)!=h||xe&&qe(new xe)!=v)&&(qe=function(e){var t=Le(e),n=t==f?e.constructor:void 0,r=n?Ye(n):``;if(r)switch(r){case Ce:return b;case we:return u;case Te:return p;case Ee:return h;case De:return v}return t});var Ze=Re(function(){return arguments}())?Re:function(e){return rt(e)&&F.call(e,`callee`)&&!fe.call(e,`callee`)},Qe=Array.isArray,$e=he||function(){return!1};function et(e){if(!nt(e))return!1;var t=Le(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function tt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function nt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function rt(e){return typeof e==`object`&&!!e}var it=A?function(e){return function(t){return e(t)}}(A):function(e){return rt(e)&&tt(e.length)&&!!C[Le(e)]};function at(e){return(t=e)!=null&&tt(t.length)&&!et(t)?Fe(e):Ve(e);var t}e.exports=function(e,t){return ze(e,t)}}));gk(`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`}}),gk(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var wG=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function TG(e){var t={exports:{}};return e(t,t.exports),t.exports}var EG,DG,OG=function(e){return e&&e.Math==Math&&e},kG=OG(typeof globalThis==`object`&&globalThis)||OG(typeof window==`object`&&window)||OG(typeof self==`object`&&self)||OG(typeof wG==`object`&&wG)||function(){return this}()||Function(`return this`)(),AG=function(e){try{return!!e()}catch{return!0}},jG=!AG((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),MG=Function.prototype.call,NG=MG.bind?MG.bind(MG):function(){return MG.apply(MG,arguments)},PG={}.propertyIsEnumerable,FG=Object.getOwnPropertyDescriptor,IG={f:FG&&!PG.call({1:2},1)?function(e){var t=FG(this,e);return!!t&&t.enumerable}:PG},LG=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},RG=Function.prototype,zG=RG.bind,BG=RG.call,VG=zG&&zG.bind(BG),HG=zG?function(e){return e&&VG(BG,e)}:function(e){return e&&function(){return BG.apply(e,arguments)}},UG=HG({}.toString),WG=HG(``.slice),GG=function(e){return WG(UG(e),8,-1)},KG=kG.Object,qG=HG(``.split),JG=AG((function(){return!KG(`z`).propertyIsEnumerable(0)}))?function(e){return GG(e)==`String`?qG(e,``):KG(e)}:KG,YG=kG.TypeError,XG=function(e){if(e==null)throw YG(`Can't call method on `+e);return e},ZG=function(e){return JG(XG(e))},QG=function(e){return typeof e==`function`},$G=function(e){return typeof e==`object`?e!==null:QG(e)},eK=function(e){return QG(e)?e:void 0},tK=function(e,t){return arguments.length<2?eK(kG[e]):kG[e]&&kG[e][t]},nK=HG({}.isPrototypeOf),rK=tK(`navigator`,`userAgent`)||``,iK=kG.process,aK=kG.Deno,oK=iK&&iK.versions||aK&&aK.version,sK=oK&&oK.v8;sK&&(DG=(EG=sK.split(`.`))[0]>0&&EG[0]<4?1:+(EG[0]+EG[1])),!DG&&rK&&(!(EG=rK.match(/Edge\/(\d+)/))||EG[1]>=74)&&(EG=rK.match(/Chrome\/(\d+)/))&&(DG=+EG[1]);var cK=DG,lK=!!Object.getOwnPropertySymbols&&!AG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cK&&cK<41})),uK=lK&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,dK=kG.Object,fK=uK?function(e){return typeof e==`symbol`}:function(e){var t=tK(`Symbol`);return QG(t)&&nK(t.prototype,dK(e))},pK=kG.String,mK=function(e){try{return pK(e)}catch{return`Object`}},hK=kG.TypeError,gK=function(e){if(QG(e))return e;throw hK(mK(e)+` is not a function`)},_K=function(e,t){var n=e[t];return n==null?void 0:gK(n)},vK=kG.TypeError,yK=Object.defineProperty,bK=function(e,t){try{yK(kG,e,{value:t,configurable:!0,writable:!0})}catch{kG[e]=t}return t},xK=kG[`__core-js_shared__`]||bK(`__core-js_shared__`,{}),SK=TG((function(e){(e.exports=function(e,t){return xK[e]||(xK[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),CK=kG.Object,wK=function(e){return CK(XG(e))},TK=HG({}.hasOwnProperty),EK=Object.hasOwn||function(e,t){return TK(wK(e),t)},DK=0,OK=Math.random(),kK=HG(1 .toString),AK=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+kK(++DK+OK,36)},jK=SK(`wks`),MK=kG.Symbol,NK=MK&&MK.for,PK=uK?MK:MK&&MK.withoutSetter||AK,FK=function(e){if(!EK(jK,e)||!lK&&typeof jK[e]!=`string`){var t=`Symbol.`+e;lK&&EK(MK,e)?jK[e]=MK[e]:jK[e]=uK&&NK?NK(t):PK(t)}return jK[e]},IK=kG.TypeError,LK=FK(`toPrimitive`),RK=function(e){var t=function(e,t){if(!$G(e)||fK(e))return e;var n,r=_K(e,LK);if(r){if(t===void 0&&(t=`default`),n=NG(r,e,t),!$G(n)||fK(n))return n;throw IK(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&QG(n=e.toString)&&!$G(r=NG(n,e))||QG(n=e.valueOf)&&!$G(r=NG(n,e))||t!==`string`&&QG(n=e.toString)&&!$G(r=NG(n,e)))return r;throw vK(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return fK(t)?t:t+``},zK=kG.document,BK=$G(zK)&&$G(zK.createElement),VK=function(e){return BK?zK.createElement(e):{}},HK=!jG&&!AG((function(){return Object.defineProperty(VK(`div`),`a`,{get:function(){return 7}}).a!=7})),UK=Object.getOwnPropertyDescriptor,WK={f:jG?UK:function(e,t){if(e=ZG(e),t=RK(t),HK)try{return UK(e,t)}catch{}if(EK(e,t))return LG(!NG(IG.f,e,t),e[t])}},GK=kG.String,KK=kG.TypeError,qK=function(e){if($G(e))return e;throw KK(GK(e)+` is not an object`)},JK=kG.TypeError,YK=Object.defineProperty,XK={f:jG?YK:function(e,t,n){if(qK(e),t=RK(t),qK(n),HK)try{return YK(e,t,n)}catch{}if(`get`in n||`set`in n)throw JK(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},ZK=jG?function(e,t,n){return XK.f(e,t,LG(1,n))}:function(e,t,n){return e[t]=n,e},QK=HG(Function.toString);QG(xK.inspectSource)||(xK.inspectSource=function(e){return QK(e)});var $K,eq,tq,nq=xK.inspectSource,rq=kG.WeakMap,iq=QG(rq)&&/native code/.test(nq(rq)),aq=SK(`keys`),oq=function(e){return aq[e]||(aq[e]=AK(e))},sq={},cq=kG.TypeError,lq=kG.WeakMap;if(iq||xK.state){var uq=xK.state||=new lq,dq=HG(uq.get),fq=HG(uq.has),pq=HG(uq.set);$K=function(e,t){if(fq(uq,e))throw new cq(`Object already initialized`);return t.facade=e,pq(uq,e,t),t},eq=function(e){return dq(uq,e)||{}},tq=function(e){return fq(uq,e)}}else{var mq=oq(`state`);sq[mq]=!0,$K=function(e,t){if(EK(e,mq))throw new cq(`Object already initialized`);return t.facade=e,ZK(e,mq,t),t},eq=function(e){return EK(e,mq)?e[mq]:{}},tq=function(e){return EK(e,mq)}}var hq={set:$K,get:eq,has:tq,enforce:function(e){return tq(e)?eq(e):$K(e,{})},getterFor:function(e){return function(t){var n;if(!$G(t)||(n=eq(t)).type!==e)throw cq(`Incompatible receiver, `+e+` required`);return n}}},gq=Function.prototype,_q=jG&&Object.getOwnPropertyDescriptor,vq=EK(gq,`name`),yq={EXISTS:vq,PROPER:vq&&function(){}.name===`something`,CONFIGURABLE:vq&&(!jG||jG&&_q(gq,`name`).configurable)},bq=TG((function(e){var t=yq.CONFIGURABLE,n=hq.get,r=hq.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;QG(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!EK(a,`name`)||t&&a.name!==d)&&ZK(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===kG?l?e[n]=a:bK(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:ZK(e,n,a))})(Function.prototype,`toString`,(function(){return QG(this)&&n(this).source||nq(this)}))})),xq=Math.ceil,Sq=Math.floor,Cq=function(e){var t=+e;return t!=t||t===0?0:(t>0?Sq:xq)(t)},wq=Math.max,Tq=Math.min,Eq=function(e,t){var n=Cq(e);return n<0?wq(n+t,0):Tq(n,t)},Dq=Math.min,Oq=function(e){return e>0?Dq(Cq(e),9007199254740991):0},kq=function(e){return Oq(e.length)},Aq=function(e){return function(t,n,r){var i,a=ZG(t),o=kq(a),s=Eq(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),jq=HG([].push),Mq=function(e,t){var n,r=ZG(e),i=0,a=[];for(n in r)!EK(sq,n)&&EK(r,n)&&jq(a,n);for(;t.length>i;)EK(r,n=t[i++])&&(~Aq(a,n)||jq(a,n));return a},Nq=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Pq=Nq.concat(`length`,`prototype`),Fq={f:Object.getOwnPropertyNames||function(e){return Mq(e,Pq)}},Iq={f:Object.getOwnPropertySymbols},Lq=HG([].concat),Rq=tK(`Reflect`,`ownKeys`)||function(e){var t=Fq.f(qK(e)),n=Iq.f;return n?Lq(t,n(e)):t},zq=function(e,t){for(var n=Rq(t),r=XK.f,i=WK.f,a=0;a<n.length;a++){var o=n[a];EK(e,o)||r(e,o,i(t,o))}},Bq=/#|\.prototype\./,Vq=function(e,t){var n=Uq[Hq(e)];return n==Gq||n!=Wq&&(QG(t)?AG(t):!!t)},Hq=Vq.normalize=function(e){return String(e).replace(Bq,`.`).toLowerCase()},Uq=Vq.data={},Wq=Vq.NATIVE=`N`,Gq=Vq.POLYFILL=`P`,Kq=Vq,qq=WK.f,Jq=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?kG:l?kG[s]||bK(s,{}):(kG[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=qq(n,r))&&o.value:n[r],!Kq(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;zq(a,i)}(e.sham||i&&i.sham)&&ZK(a,`sham`,!0),bq(n,r,a,e)}},Yq={};Yq[FK(`toStringTag`)]=`z`;var Xq=String(Yq)===`[object z]`,Zq=FK(`toStringTag`),Qq=kG.Object,$q=GG(function(){return arguments}())==`Arguments`,eJ=Xq?GG:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Qq(e),Zq))==`string`?n:$q?GG(t):(r=GG(t))==`Object`&&QG(t.callee)?`Arguments`:r},tJ=kG.String,nJ=function(e){if(eJ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return tJ(e)},rJ=/"/g,iJ=HG(``.replace);Jq({target:`String`,proto:!0,forced:AG((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=nJ(XG(this)),r=`<a`,(r+=` name="`+iJ(nJ(t),rJ,`"`)+`"`)+`>`+n+`</a>`;var t,n,r}});var aJ,oJ=function(){var e=qK(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},sJ=kG.RegExp,cJ=AG((function(){var e=sJ(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),lJ=cJ||AG((function(){return!sJ(`a`,`y`).sticky})),uJ={BROKEN_CARET:cJ||AG((function(){var e=sJ(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:lJ,UNSUPPORTED_Y:cJ},dJ=Object.keys||function(e){return Mq(e,Nq)},fJ=jG?Object.defineProperties:function(e,t){qK(e);for(var n,r=ZG(t),i=dJ(t),a=i.length,o=0;a>o;)XK.f(e,n=i[o++],r[n]);return e},pJ=tK(`document`,`documentElement`),mJ=oq(`IE_PROTO`),hJ=function(){},gJ=function(e){return`<script>`+e+`<\/script>`},_J=function(e){e.write(gJ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},vJ=function(){try{aJ=new ActiveXObject(`htmlfile`)}catch{}var e,t;vJ=typeof document<`u`?document.domain&&aJ?_J(aJ):((t=VK(`iframe`)).style.display=`none`,pJ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(gJ(`document.F=Object`)),e.close(),e.F):_J(aJ);for(var n=Nq.length;n--;)delete vJ.prototype[Nq[n]];return vJ()};sq[mJ]=!0;var yJ,bJ,xJ=Object.create||function(e,t){var n;return e===null?n=vJ():(hJ.prototype=qK(e),n=new hJ,hJ.prototype=null,n[mJ]=e),t===void 0?n:fJ(n,t)},SJ=kG.RegExp,CJ=AG((function(){var e=SJ(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
65
|
+
`)&&e.flags===`s`)})),wJ=kG.RegExp,TJ=AG((function(){var e=wJ(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),EJ=hq.get,DJ=SK(`native-string-replace`,String.prototype.replace),OJ=RegExp.prototype.exec,kJ=OJ,AJ=HG(``.charAt),jJ=HG(``.indexOf),MJ=HG(``.replace),NJ=HG(``.slice),PJ=(bJ=/b*/g,NG(OJ,yJ=/a/,`a`),NG(OJ,bJ,`a`),yJ.lastIndex!==0||bJ.lastIndex!==0),FJ=uJ.BROKEN_CARET,IJ=/()??/.exec(``)[1]!==void 0;(PJ||IJ||FJ||CJ||TJ)&&(kJ=function(e){var t,n,r,i,a,o,s,c=this,l=EJ(c),u=nJ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=NG(kJ,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=FJ&&c.sticky,m=NG(oJ,c),h=c.source,g=0,_=u;if(p&&(m=MJ(m,`y`,``),jJ(m,`g`)===-1&&(m+=`g`),_=NJ(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&AJ(u,c.lastIndex-1)!==`
|
|
66
|
+
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),IJ&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),PJ&&(r=c.lastIndex),i=NG(OJ,p?n:c,_),p?i?(i.input=NJ(i.input,g),i[0]=NJ(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:PJ&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),IJ&&i&&i.length>1&&NG(DJ,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=xJ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var LJ=kJ;Jq({target:`RegExp`,proto:!0,forced:/./.exec!==LJ},{exec:LJ});var RJ=Array.isArray||function(e){return GG(e)==`Array`},zJ=function(){},BJ=[],VJ=tK(`Reflect`,`construct`),HJ=/^\s*(?:class|function)\b/,UJ=HG(HJ.exec),WJ=!HJ.exec(zJ),GJ=function(e){if(!QG(e))return!1;try{return VJ(zJ,BJ,e),!0}catch{return!1}},KJ=!VJ||AG((function(){var e;return GJ(GJ.call)||!GJ(Object)||!GJ((function(){e=!0}))||e}))?function(e){if(!QG(e))return!1;switch(eJ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return WJ||!!UJ(HJ,nq(e))}:GJ,qJ=function(e,t,n){var r=RK(t);r in e?XK.f(e,r,LG(0,n)):e[r]=n},JJ=FK(`species`),YJ=function(e){return cK>=51||!AG((function(){var t=[];return(t.constructor={})[JJ]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},XJ=HG([].slice),ZJ=YJ(`slice`),QJ=FK(`species`),$J=kG.Array,eY=Math.max;function tY(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function nY(e){var t=e.selection;if(t==null)return!1;var n=tY(R.nodes(e,{match:function(e){return J.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=tY(n,2)[1],i=R.start(e,r);if(Hf.equals(t.anchor,i))return!0}return!1}function rY(e,t){var n,r,i=R.nodes(e,{at:t,match:function(e){return J.getNodeType(e)===`table`}}),a=!1;try{for(var o=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(i),s=o.next();!s.done;s=o.next())s.value,a=!0}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}Jq({target:`Array`,proto:!0,forced:!ZJ},{slice:function(e,t){var n,r,i,a=ZG(this),o=kq(a),s=Eq(e,o),c=Eq(t===void 0?o:t,o);if(RJ(a)&&(n=a.constructor,(KJ(n)&&(n===$J||RJ(n.prototype))||$G(n)&&(n=n[QJ])===null)&&(n=void 0),n===$J||n===void 0))return XJ(a,s,c);for(r=new(n===void 0?$J:n)(eY(c-s,0)),i=0;s<c;s++,i++)s in a&&qJ(r,i,a[s]);return r.length=i,r}});var iY=HG(HG.bind),aY=FK(`species`),oY=kG.Array,sY=function(e,t){return new(function(e){var t;return RJ(e)&&(t=e.constructor,(KJ(t)&&(t===oY||RJ(t.prototype))||$G(t)&&(t=t[aY])===null)&&(t=void 0)),t===void 0?oY:t}(e))(t===0?0:t)},cY=HG([].push),lY=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=wK(c),h=JG(m),g=function(e,t){return gK(e),t===void 0?e:iY?iY(e,t):function(){return e.apply(t,arguments)}}(l,u),_=kq(h),v=0,y=d||sY,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:cY(b,f)}else switch(e){case 4:return!1;case 7:cY(b,f)}return a?-1:r||i?i:b}},uY={forEach:lY(0),map:lY(1),filter:lY(2),some:lY(3),every:lY(4),find:lY(5),findIndex:lY(6),filterReject:lY(7)},dY=uY.map;Jq({target:`Array`,proto:!0,forced:!YJ(`map`)},{map:function(e){return dY(this,e,arguments.length>1?arguments[1]:void 0)}});var fY=Xq?{}.toString:function(){return`[object `+eJ(this)+`]`};function pY(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function mY(e){return pY(e).every((function(e){return!!e.isHeader}))}Xq||bq(Object.prototype,`toString`,fY,{unsafe:!0});var hY=yq.PROPER,gY=RegExp.prototype,_Y=gY.toString,vY=HG(oJ),yY=AG((function(){return _Y.call({source:`a`,flags:`b`})!=`/a/b`})),bY=hY&&_Y.name!=`toString`;(yY||bY)&&bq(RegExp.prototype,`toString`,(function(){var e=qK(this),t=nJ(e.source),n=e.flags;return`/`+t+`/`+nJ(n===void 0&&nK(gY,e)&&!(`flags`in gY)?vY(e):n)}),{unsafe:!0});var xY=FK(`unscopables`),SY=Array.prototype;SY[xY]??XK.f(SY,xY,{configurable:!0,value:xJ(null)});var CY=uY.find,wY=!0;`find`in[]&&[,].find((function(){wY=!1})),Jq({target:`Array`,proto:!0,forced:wY},{find:function(e){return CY(this,e,arguments.length>1?arguments[1]:void 0)}}),SY[xY].find=!0;var TY=Function.prototype,EY=TY.apply,DY=TY.bind,OY=TY.call,kY=typeof Reflect==`object`&&Reflect.apply||(DY?OY.bind(EY):function(){return OY.apply(EY,arguments)}),AY=FK(`species`),jY=RegExp.prototype,MY=function(e,t,n,r){var i=FK(e),a=!AG((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!AG((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[AY]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=HG(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=HG(e),c=t.exec;return c===LJ||c===jY.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));bq(String.prototype,e,c[0]),bq(jY,i,c[1])}r&&ZK(jY[i],`sham`,!0)},NY=FK(`match`),PY=kG.TypeError,FY=FK(`species`),IY=HG(``.charAt),LY=HG(``.charCodeAt),RY=HG(``.slice),zY=function(e){return function(t,n){var r,i,a=nJ(XG(t)),o=Cq(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=LY(a,o))<55296||r>56319||o+1===s||(i=LY(a,o+1))<56320||i>57343?e?IY(a,o):r:e?RY(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),BY=function(e,t,n){return t+(n?zY(e,t).length:1)},VY=kG.Array,HY=Math.max,UY=function(e,t,n){for(var r=kq(e),i=Eq(t,r),a=Eq(n===void 0?r:n,r),o=VY(HY(a-i,0)),s=0;i<a;i++,s++)qJ(o,s,e[i]);return o.length=s,o},WY=kG.TypeError,GY=function(e,t){var n=e.exec;if(QG(n)){var r=NG(n,e,t);return r!==null&&qK(r),r}if(GG(e)===`RegExp`)return NG(LJ,e,t);throw WY(`RegExp#exec called on incompatible receiver`)},KY=uJ.UNSUPPORTED_Y,qY=Math.min,JY=[].push,YY=HG(/./.exec),XY=HG(JY),ZY=HG(``.slice);MY(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=nJ(XG(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!$G(r=e)||!((i=r[NY])===void 0?GG(r)==`RegExp`:i))return NG(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=NG(LJ,p,a))&&!((c=p.lastIndex)>f&&(XY(u,ZY(a,f,s.index)),s.length>1&&s.index<a.length&&kY(JY,u,UY(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&YY(p,``)||XY(u,``):XY(u,ZY(a,f)),u.length>o?UY(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:NG(t,this,e,n)}:t,[function(t,n){var i=XG(this),a=t==null?void 0:_K(t,e);return a?NG(a,t,i,n):NG(r,nJ(i),t,n)},function(e,i){var a=qK(this),o=nJ(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=qK(e).constructor;return r===void 0||(n=qK(r)[FY])==null?t:function(e){if(KJ(e))return e;throw PY(mK(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(KY?`g`:`y`),d=new c(KY?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return GY(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=KY?0:m;var g,_=GY(d,KY?ZY(o,m):o);if(_===null||(g=qY(Oq(d.lastIndex+(KY?m:0)),o.length))===p)m=BY(o,m,l);else{if(XY(h,ZY(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(XY(h,_[v]),h.length===f)return h;m=p=g}}return XY(h,ZY(o,p)),h}]}),!!AG((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),KY);var QY=`
|
|
67
|
+
\v\f\r \xA0 \u2028\u2029`,$Y=HG(``.replace),eX=`[`+QY+`]`,tX=RegExp(`^`+eX+eX+`*`),nX=RegExp(eX+eX+`*$`),rX=function(e){return function(t){var n=nJ(XG(t));return 1&e&&(n=$Y(n,tX,``)),2&e&&(n=$Y(n,nX,``)),n}},iX={start:rX(1),end:rX(2),trim:rX(3)},aX=yq.PROPER,oX=iX.trim;function sX(e){return e.length?e[0].tagName.toLowerCase():``}Jq({target:`String`,proto:!0,forced:function(e){return AG((function(){return!!QY[e]()||`
`[e]()!==`
`||aX&&QY[e].name!==e}))}(`trim`)},{trim:function(){return oX(this)}}),Jq({global:!0},{globalThis:kG}),wm&&(W.fn.append=wm),dm&&(W.fn.on=dm),Pm&&(W.fn.focus=Pm),sm&&(W.fn.attr=sm),um&&(W.fn.val=um),xm&&(W.fn.html=xm),lm&&(W.fn.dataset=lm),im&&(W.fn.addClass=im),am&&(W.fn.removeClass=am),km&&(W.fn.children=km),ym&&(W.fn.each=ym),Om&&(W.fn.find=Om);var cX=!1,lX=0,uX=0,dX=null,fX=null,pX=W(`body`);function mX(e){cX=!1,fX=null,dX=null,pX.off(`mousemove`,hX),pX.off(`mouseup`,mX)}pX.on(`mousedown`,(function(e){var t=e.target;(t.tagName===`TH`||t.tagName===`TD`)&&t.style.cursor===`col-resize`&&(t.style.cursor=`auto`,e.preventDefault(),cX=!0,lX=e.clientX,uX=t.getBoundingClientRect().width,pX.on(`mousemove`,hX),pX.on(`mouseup`,mX))}));var hX=ah((function(e){if(cX&&fX!=null&&dX!=null){e.preventDefault();var t=e.clientX,n=uX+(t-lX);(n=Math.floor(100*n)/100)<30&&(n=30),U.setNodes(fX,{width:n.toString()},{at:dX})}}),100),gX={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||V.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=J.findPath(e,t),o=R.start(e,a),s=R.end(e,a),c=Hf.compare(r,s)<=0&&Hf.compare(r,o)>=0,l=Hf.compare(i,s)<=0&&Hf.compare(i,o)>=0;return!!(c&&l&&B.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return Rh(`div`,{className:`table-container`,"data-selected":J.isNodeSelected(n,e),on:{mousedown:function(t){if(t.target.tagName===`DIV`&&t.preventDefault(),!n.isDisabled()){var r=J.findPath(n,e),i=R.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},Rh(`table`,{width:a,contentEditable:r},Rh(`colgroup`,null,pY(e).map((function(e){var t=e.width;return Rh(`col`,{width:t===void 0?`auto`:t})}))),Rh(`tbody`,null,t)))}},_X={type:`table-row`,renderElem:function(e,t,n){return Rh(`tr`,null,t)}},vX={type:`table-cell`,renderElem:function(e,t,n){var r=function(e,t){var n=J.getParentNode(e,t);if(n==null)return!1;var r=J.getParentNode(e,n);return r!=null&&pY(r).some((function(e){return e===t}))}(n,e),i=e,a=i.colSpan,o=a===void 0?1:a,s=i.rowSpan,c=s===void 0?1:s,l=i.isHeader;return r?Rh(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:ah((function(t){var r=this.elm;if(r!=null){var i=r.getBoundingClientRect(),a=i.left,o=i.width,s=i.top,c=i.height,l=t.clientX,u=t.clientY;cX||(l>a+o-5&&l<a+o&&u>s&&u<s+c?(r.style.cursor=`col-resize`,fX=n,dX=J.findPath(n,e)):cX||(r.style.cursor=`auto`,fX=null,dX=null))}}),100)}},t):Rh(`td`,{colSpan:o,rowSpan:c},t)}},yX={selector:`table`,preParseHtml:function(e){var t=W(e);if(sX(t)!==`table`)return e;var n=t.find(`tbody`);if(n.length===0)return e;var r=t.find(`tr`);return t.append(r),n.remove(),t[0]}},bX=uY.filter;Jq({target:`Array`,proto:!0,forced:!YJ(`filter`)},{filter:function(e){return bX(this,e,arguments.length>1?arguments[1]:void 0)}});var xX=Math.floor,SX=HG(``.charAt),CX=HG(``.replace),wX=HG(``.slice),TX=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,EX=/\$([$&'`]|\d{1,2})/g,DX=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=EX;return i!==void 0&&(i=wK(i),c=TX),CX(a,c,(function(a,c){var l;switch(SX(c,0)){case`$`:return`$`;case`&`:return e;case"`":return wX(t,0,n);case`'`:return wX(t,o);case`<`:l=i[wX(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=xX(u/10);return d===0?a:d<=s?r[d-1]===void 0?SX(c,1):r[d-1]+SX(c,1):a}l=r[u-1]}return l===void 0?``:l}))},OX=FK(`replace`),Ope=Math.max,kpe=Math.min,Ape=HG([].concat),kX=HG([].push),AX=HG(``.indexOf),jX=HG(``.slice),jpe=`a`.replace(/./,`$0`)===`$0`,MX=!!/./[OX]&&/./[OX](`a`,`$0`)===``;MY(`replace`,(function(e,t,n){var r=MX?`$`:`$0`;return[function(e,n){var r=XG(this),i=e==null?void 0:_K(e,OX);return i?NG(i,e,r,n):NG(t,nJ(r),e,n)},function(e,i){var a=qK(this),o=nJ(e);if(typeof i==`string`&&AX(i,r)===-1&&AX(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=QG(i);c||(i=nJ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=GY(a,o);if(f===null||(kX(d,f),!l))break;nJ(f[0])===``&&(a.lastIndex=BY(o,Oq(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=nJ((f=d[g])[0]),v=Ope(kpe(Cq(f.index),o.length),0),y=[],b=1;b<f.length;b++)kX(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Ape([_],y,v,o);x!==void 0&&kX(S,x);var C=nJ(kY(i,void 0,S))}else C=DX(_,o,v,y,x,i);v>=h&&(m+=jX(o,h,v)+C,h=v+_.length)}return m+jX(o,h)}]}),!!AG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!jpe||MX);var Mpe={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=W(e);(t=t.filter((function(e){return!!H.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]);var i=parseInt(r.attr(`colSpan`)||`1`),a=parseInt(r.attr(`rowSpan`)||`1`),o=r.attr(`width`)||`auto`;return{type:`table-cell`,isHeader:sX(r)===`th`,colSpan:i,rowSpan:a,width:o,children:t}}},Npe={selector:`tr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`table-row`,children:t.filter((function(e){return J.getNodeType(e)===`table-cell`}))}}},Ppe={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=W(e),i=`auto`;return function(e,t){for(var n=``,r=(e.attr(`style`)||``).split(`;`),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(`:`);s[0].trim()===`width`&&(n=s[1].trim())}}return n}(r)===`100%`&&(i=`100%`),r.attr(`width`)===`100%`&&(i=`100%`),{type:`table`,width:i,children:t.filter((function(e){return J.getNodeType(e)===`table-row`}))}}},Fpe=function(){function e(){this.title=Y(`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 t==null||!V.isCollapsed(t)||!!J.getSelectedElems(e).some((function(t){var n=J.getNodeType(t);return n===`pre`||n===`table`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=W(`<div class="w-e-panel-content-table"></div>`),r=W(`<span>0 × 0</span>`),i=W(`<table></table>`),a=0;a<10;a++){for(var o=W(`<tr></tr>`),s=0;s<10;s++){var c=W(`<td></td>`);c.attr(`data-x`,s.toString()),c.attr(`data-y`,a.toString()),o.append(c),c.on(`mouseenter`,(function(e){var t=e.target;if(t!=null){var n=W(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` × `+(o+1),i.children().each((function(e){W(e).children().each((function(e){var t=W(e),n=t.dataset(),r=n.x,i=n.y;r<=a&&i<=o?t.addClass(`active`):t.removeClass(`active`)}))}))}})),c.on(`click`,(function(n){n.preventDefault();var r=n.target;if(r!=null){var i=W(r).dataset(),a=i.x,o=i.y;t.insertTable(e,o+1,a+1)}}))}i.append(o)}return n.append(i),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),i=parseInt(n,10);if(r&&i&&!(r<=0||i<=0)){J.isSelectedEmptyParagraph(e)&&U.removeNodes(e,{mode:`highest`});var a=function(e,t){for(var n=[],r=0;r<e;r++){for(var i=[],a=0;a<t;a++){var o={type:`table-cell`,children:[{text:``}]};r===0&&(o.isHeader=!0),i.push(o)}n.push({type:`table-row`,children:i})}return{type:`table`,width:`auto`,children:n}}(r,i);U.insertNodes(e,a,{mode:`highest`})}},e}(),Ipe=function(){function e(){this.title=Y(`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 e.selection==null||J.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||U.removeNodes(e,{mode:`highest`})},e}(),Lpe=function(){function e(){this.title=Y(`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 t==null||!V.isCollapsed(t)||J.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=tY(tY(R.nodes(e,{match:function(e){return J.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=J.getParentNode(e,r)?.children.length||0;if(a!==0){for(var o={type:`table-row`,children:[]},s=0;s<a;s++)o.children.push({type:`table-cell`,children:[{text:``}]});var c=B.parent(i),l=B.next(c);U.insertNodes(e,o,{at:l})}}},e}(),Rpe=function(){function e(){this.title=Y(`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 t==null||!V.isCollapsed(t)||J.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=tY(tY(R.nodes(e,{match:function(e){return J.checkNodeType(e,`table-row`)},universal:!0}),1)[0],2),r=n[0],i=n[1];(J.getParentNode(e,r)?.children.length||0)<=1?U.removeNodes(e,{mode:`highest`}):U.removeNodes(e,{at:i})}},e}(),NX={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},PX=VK(`span`).classList,FX=PX&&PX.constructor&&PX.constructor.prototype,zpe=FX===Object.prototype?void 0:FX,Bpe=uY.forEach,IX=function(e,t){var n=[].forEach;return!!n&&AG((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return Bpe(this,e,arguments.length>1?arguments[1]:void 0)},LX=function(e){if(e&&e.forEach!==IX)try{ZK(e,`forEach`,IX)}catch{e.forEach=IX}};for(var RX in NX)NX[RX]&&LX(kG[RX]&&kG[RX].prototype);LX(zpe);var Vpe=function(){function e(){this.title=Y(`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 t==null||!V.isCollapsed(t)||J.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=tY(tY(R.nodes(e,{match:function(e){return J.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=J.getParentNode(e,r);if(a!=null){var o=J.getParentNode(e,a);o!=null&&(o.children||[]).forEach((function(t,n){L.isElement(t)&&(t.children||[]).forEach((function(t){var r=J.findPath(e,t);if(r.length===i.length&&CG(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&mY(o)&&(a.isHeader=!0),U.insertNodes(e,a,{at:r})}}))}))}}},e}(),Hpe=function(){function e(){this.title=Y(`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 t==null||!V.isCollapsed(t)||J.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=tY(tY(R.nodes(e,{match:function(e){return J.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=J.getParentNode(e,r),o=a?.children.length||0;if(!a||o<=1)U.removeNodes(e,{mode:`highest`});else{var s=J.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){L.isElement(t)&&(t.children||[]).forEach((function(t){var n=J.findPath(e,t);n.length===i.length&&CG(n.slice(-1),i.slice(-1))&&U.removeNodes(e,{at:n})}))}))}}},e}(),Upe=function(){function e(){this.title=Y(`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=J.getSelectedNodeByType(e,`table`);return t!=null&&mY(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!V.isCollapsed(t)||J.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=J.getSelectedNodeByType(e,`table`);r!=null&&pY(r).forEach((function(t){return U.setNodes(e,{isHeader:n},{at:J.findPath(e,t)})}))}},e}(),Wpe=function(){function e(){this.title=Y(`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=J.getSelectedNodeByType(e,`table`);return t!=null&&t.width===`100%`},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!V.isCollapsed(t)||J.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};U.setNodes(e,n,{mode:`highest`})}},e}(),Gpe={renderElems:[gX,_X,vX],elemsToHtml:[{type:`table`,elemToHtml:function(e,t){var n=e.width;return`<table style="width: `+(n===void 0?`auto`:n)+`;"><tbody>`+t+`</tbody></table>`}},{type:`table-row`,elemToHtml:function(e,t){return`<tr>`+t+`</tr>`}},{type:`table-cell`,elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,a=n.rowSpan,o=a===void 0?1:a,s=n.isHeader,c=s!==void 0&&s,l=n.width,u=c?`th`:`td`;return`<`+u+` colSpan="`+i+`" rowSpan="`+o+`" width="`+(l===void 0?`auto`:l)+`">`+t+`</`+u+`>`}}],preParseHtml:[yX],parseElemsHtml:[Mpe,Npe,Ppe],menus:[{key:`insertTable`,factory:function(){return new Fpe}},{key:`deleteTable`,factory:function(){return new Ipe}},{key:`insertTableRow`,factory:function(){return new Lpe}},{key:`deleteTableRow`,factory:function(){return new Rpe}},{key:`insertTableCol`,factory:function(){return new Vpe}},{key:`deleteTableCol`,factory:function(){return new Hpe}},{key:`tableHeader`,factory:function(){return new Upe}},{key:`tableFullWidth`,factory:function(){return new Wpe}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,a=e.insertData,o=e.handleTab,s=e.selectAll,c=e;return c.insertBreak=function(){J.getSelectedNodeByType(c,`table`)==null?t():c.insertText(`
|
|
68
|
+
`)},c.deleteBackward=function(e){if(!nY(c)){var t=c.selection;if(t){var r=R.before(c,t);if(r){var i=rY(c,r),a=rY(c,t);if(i&&!a)return}}n(e)}},c.handleTab=function(){if(J.getSelectedNodeByType(c,`table`)){var t=R.above(e);J.checkNodeType(t[0],`table-cell`)&&U.select(e,t[1]);var n=R.next(e);if(n)n[0]&&n[0].text&&(n=R.above(e,{at:n[1]})??n),U.select(e,n[1]);else{var r=c.children||[],i=r.length;if(J.checkNodeType(r[i-1],`table`)){var a=J.genEmptyParagraph();U.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else o()},c.deleteForward=function(e){nY(c)||r(e)},c.normalizeNode=function(e){var t=tY(e,2),n=t[0],r=t[1];if(J.getNodeType(n)!==`table`)return i([n,r]);if(J.isLastNode(c,n)){var a=J.genEmptyParagraph();U.insertNodes(c,a,{at:[r[0]+1]})}},c.insertData=function(e){if(J.getSelectedNodeByType(c,`table`)!=null){var t=e.getData(`text/plain`);t===`
|
|
69
|
+
`||/<img[^>]+>/.test(e.getData(`text/html`))?a(e):R.insertText(c,t)}else a(e)},c.selectAll=function(){var e=c.selection;if(e!=null){var t=J.getSelectedNodeByType(c,`table-cell`);if(t!=null){var n=e.anchor,r=e.focus;if(B.equals(n.path.slice(0,3),r.path.slice(0,3)))if(z.string(t).length!==0){var i=J.findPath(c,t),a={anchor:R.start(c,i),focus:R.end(c,i)};c.select(a)}else s();else s()}else s()}else s()},c}};gk(`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`}}),gk(`zh-CN`,{videoModule:{delete:`删除视频`,uploadVideo:`上传视频`,insertVideo:`插入视频`,videoSrc:`视频地址`,videoSrcPlaceHolder:`视频文件 url 或第三方 <iframe>`,videoPoster:`视频封面`,videoPosterPlaceHolder:`封面图片 url`,ok:`确定`,editSize:`修改尺寸`,width:`宽度`,height:`高度`}});var zX=function(){return zX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},zX.apply(this,arguments)};function BX(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function VX(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function HX(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Kpe(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var UX=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function WX(e){var t={exports:{}};return e(t,t.exports),t.exports}var GX,KX,qX=function(e){return e&&e.Math==Math&&e},Q=qX(typeof globalThis==`object`&&globalThis)||qX(typeof window==`object`&&window)||qX(typeof self==`object`&&self)||qX(typeof UX==`object`&&UX)||function(){return this}()||Function(`return this`)(),JX=function(e){try{return!!e()}catch{return!0}},YX=!JX((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),XX=Function.prototype.call,ZX=XX.bind?XX.bind(XX):function(){return XX.apply(XX,arguments)},QX={}.propertyIsEnumerable,$X=Object.getOwnPropertyDescriptor,qpe={f:$X&&!QX.call({1:2},1)?function(e){var t=$X(this,e);return!!t&&t.enumerable}:QX},eZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tZ=Function.prototype,nZ=tZ.bind,rZ=tZ.call,Jpe=nZ&&nZ.bind(rZ),iZ=nZ?function(e){return e&&Jpe(rZ,e)}:function(e){return e&&function(){return rZ.apply(e,arguments)}},Ype=iZ({}.toString),Xpe=iZ(``.slice),aZ=function(e){return Xpe(Ype(e),8,-1)},oZ=Q.Object,Zpe=iZ(``.split),sZ=JX((function(){return!oZ(`z`).propertyIsEnumerable(0)}))?function(e){return aZ(e)==`String`?Zpe(e,``):oZ(e)}:oZ,Qpe=Q.TypeError,cZ=function(e){if(e==null)throw Qpe(`Can't call method on `+e);return e},lZ=function(e){return sZ(cZ(e))},uZ=function(e){return typeof e==`function`},dZ=function(e){return typeof e==`object`?e!==null:uZ(e)},$pe=function(e){return uZ(e)?e:void 0},fZ=function(e,t){return arguments.length<2?$pe(Q[e]):Q[e]&&Q[e][t]},pZ=iZ({}.isPrototypeOf),mZ=fZ(`navigator`,`userAgent`)||``,hZ=Q.process,gZ=Q.Deno,_Z=hZ&&hZ.versions||gZ&&gZ.version,vZ=_Z&&_Z.v8;vZ&&(KX=(GX=vZ.split(`.`))[0]>0&&GX[0]<4?1:+(GX[0]+GX[1])),!KX&&mZ&&(!(GX=mZ.match(/Edge\/(\d+)/))||GX[1]>=74)&&(GX=mZ.match(/Chrome\/(\d+)/))&&(KX=+GX[1]);var yZ=KX,bZ=!!Object.getOwnPropertySymbols&&!JX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yZ&&yZ<41})),xZ=bZ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,eme=Q.Object,SZ=xZ?function(e){return typeof e==`symbol`}:function(e){var t=fZ(`Symbol`);return uZ(t)&&pZ(t.prototype,eme(e))},tme=Q.String,CZ=function(e){try{return tme(e)}catch{return`Object`}},nme=Q.TypeError,wZ=function(e){if(uZ(e))return e;throw nme(CZ(e)+` is not a function`)},TZ=function(e,t){var n=e[t];return n==null?void 0:wZ(n)},rme=Q.TypeError,ime=Object.defineProperty,EZ=function(e,t){try{ime(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},DZ=Q[`__core-js_shared__`]||EZ(`__core-js_shared__`,{}),OZ=WX((function(e){(e.exports=function(e,t){return DZ[e]||(DZ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),ame=Q.Object,kZ=function(e){return ame(cZ(e))},ome=iZ({}.hasOwnProperty),AZ=Object.hasOwn||function(e,t){return ome(kZ(e),t)},sme=0,cme=Math.random(),lme=iZ(1 .toString),jZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+lme(++sme+cme,36)},MZ=OZ(`wks`),NZ=Q.Symbol,PZ=NZ&&NZ.for,ume=xZ?NZ:NZ&&NZ.withoutSetter||jZ,FZ=function(e){if(!AZ(MZ,e)||!bZ&&typeof MZ[e]!=`string`){var t=`Symbol.`+e;bZ&&AZ(NZ,e)?MZ[e]=NZ[e]:MZ[e]=xZ&&PZ?PZ(t):ume(t)}return MZ[e]},dme=Q.TypeError,fme=FZ(`toPrimitive`),IZ=function(e){var t=function(e,t){if(!dZ(e)||SZ(e))return e;var n,r=TZ(e,fme);if(r){if(t===void 0&&(t=`default`),n=ZX(r,e,t),!dZ(n)||SZ(n))return n;throw dme(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&uZ(n=e.toString)&&!dZ(r=ZX(n,e))||uZ(n=e.valueOf)&&!dZ(r=ZX(n,e))||t!==`string`&&uZ(n=e.toString)&&!dZ(r=ZX(n,e)))return r;throw rme(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return SZ(t)?t:t+``},LZ=Q.document,pme=dZ(LZ)&&dZ(LZ.createElement),RZ=function(e){return pme?LZ.createElement(e):{}},zZ=!YX&&!JX((function(){return Object.defineProperty(RZ(`div`),`a`,{get:function(){return 7}}).a!=7})),BZ=Object.getOwnPropertyDescriptor,VZ={f:YX?BZ:function(e,t){if(e=lZ(e),t=IZ(t),zZ)try{return BZ(e,t)}catch{}if(AZ(e,t))return eZ(!ZX(qpe.f,e,t),e[t])}},mme=Q.String,hme=Q.TypeError,HZ=function(e){if(dZ(e))return e;throw hme(mme(e)+` is not an object`)},gme=Q.TypeError,UZ=Object.defineProperty,WZ={f:YX?UZ:function(e,t,n){if(HZ(e),t=IZ(t),HZ(n),zZ)try{return UZ(e,t,n)}catch{}if(`get`in n||`set`in n)throw gme(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},GZ=YX?function(e,t,n){return WZ.f(e,t,eZ(1,n))}:function(e,t,n){return e[t]=n,e},_me=iZ(Function.toString);uZ(DZ.inspectSource)||(DZ.inspectSource=function(e){return _me(e)});var KZ,qZ,JZ,YZ=DZ.inspectSource,XZ=Q.WeakMap,ZZ=uZ(XZ)&&/native code/.test(YZ(XZ)),QZ=OZ(`keys`),$Z=function(e){return QZ[e]||(QZ[e]=jZ(e))},eQ={},tQ=Q.TypeError,vme=Q.WeakMap;if(ZZ||DZ.state){var nQ=DZ.state||=new vme,yme=iZ(nQ.get),rQ=iZ(nQ.has),bme=iZ(nQ.set);KZ=function(e,t){if(rQ(nQ,e))throw new tQ(`Object already initialized`);return t.facade=e,bme(nQ,e,t),t},qZ=function(e){return yme(nQ,e)||{}},JZ=function(e){return rQ(nQ,e)}}else{var iQ=$Z(`state`);eQ[iQ]=!0,KZ=function(e,t){if(AZ(e,iQ))throw new tQ(`Object already initialized`);return t.facade=e,GZ(e,iQ,t),t},qZ=function(e){return AZ(e,iQ)?e[iQ]:{}},JZ=function(e){return AZ(e,iQ)}}var aQ={set:KZ,get:qZ,has:JZ,enforce:function(e){return JZ(e)?qZ(e):KZ(e,{})},getterFor:function(e){return function(t){var n;if(!dZ(t)||(n=qZ(t)).type!==e)throw tQ(`Incompatible receiver, `+e+` required`);return n}}},oQ=Function.prototype,xme=YX&&Object.getOwnPropertyDescriptor,sQ=AZ(oQ,`name`),cQ={EXISTS:sQ,PROPER:sQ&&function(){}.name===`something`,CONFIGURABLE:sQ&&(!YX||YX&&xme(oQ,`name`).configurable)},lQ=WX((function(e){var t=cQ.CONFIGURABLE,n=aQ.get,r=aQ.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;uZ(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!AZ(a,`name`)||t&&a.name!==d)&&GZ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Q?l?e[n]=a:EZ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:GZ(e,n,a))})(Function.prototype,`toString`,(function(){return uZ(this)&&n(this).source||YZ(this)}))})),Sme=Math.ceil,Cme=Math.floor,uQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?Cme:Sme)(t)},wme=Math.max,Tme=Math.min,dQ=function(e,t){var n=uQ(e);return n<0?wme(n+t,0):Tme(n,t)},Eme=Math.min,fQ=function(e){return e>0?Eme(uQ(e),9007199254740991):0},pQ=function(e){return fQ(e.length)},mQ=function(e){return function(t,n,r){var i,a=lZ(t),o=pQ(a),s=dQ(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},hQ={includes:mQ(!0),indexOf:mQ(!1)},Dme=hQ.indexOf,gQ=iZ([].push),_Q=function(e,t){var n,r=lZ(e),i=0,a=[];for(n in r)!AZ(eQ,n)&&AZ(r,n)&&gQ(a,n);for(;t.length>i;)AZ(r,n=t[i++])&&(~Dme(a,n)||gQ(a,n));return a},vQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Ome=vQ.concat(`length`,`prototype`),yQ={f:Object.getOwnPropertyNames||function(e){return _Q(e,Ome)}},kme={f:Object.getOwnPropertySymbols},Ame=iZ([].concat),jme=fZ(`Reflect`,`ownKeys`)||function(e){var t=yQ.f(HZ(e)),n=kme.f;return n?Ame(t,n(e)):t},Mme=function(e,t){for(var n=jme(t),r=WZ.f,i=VZ.f,a=0;a<n.length;a++){var o=n[a];AZ(e,o)||r(e,o,i(t,o))}},Nme=/#|\.prototype\./,bQ=function(e,t){var n=Fme[Pme(e)];return n==Lme||n!=Ime&&(uZ(t)?JX(t):!!t)},Pme=bQ.normalize=function(e){return String(e).replace(Nme,`.`).toLowerCase()},Fme=bQ.data={},Ime=bQ.NATIVE=`N`,Lme=bQ.POLYFILL=`P`,xQ=bQ,Rme=VZ.f,SQ=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Q:l?Q[s]||EZ(s,{}):(Q[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Rme(n,r))&&o.value:n[r],!xQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Mme(a,i)}(e.sham||i&&i.sham)&&GZ(a,`sham`,!0),lQ(n,r,a,e)}},CQ={};CQ[FZ(`toStringTag`)]=`z`;var wQ=String(CQ)===`[object z]`,zme=FZ(`toStringTag`),Bme=Q.Object,Vme=aZ(function(){return arguments}())==`Arguments`,TQ=wQ?aZ:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Bme(e),zme))==`string`?n:Vme?aZ(t):(r=aZ(t))==`Object`&&uZ(t.callee)?`Arguments`:r},Hme=Q.String,EQ=function(e){if(TQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Hme(e)},DQ=`
|
|
70
|
+
\v\f\r \xA0 \u2028\u2029`,OQ=iZ(``.replace),kQ=`[`+DQ+`]`,Ume=RegExp(`^`+kQ+kQ+`*`),Wme=RegExp(kQ+kQ+`*$`),AQ=function(e){return function(t){var n=EQ(cZ(t));return 1&e&&(n=OQ(n,Ume,``)),2&e&&(n=OQ(n,Wme,``)),n}},Gme={start:AQ(1),end:AQ(2),trim:AQ(3)},Kme=cQ.PROPER,qme=Gme.trim;function jQ(e){return e.length?e[0].tagName.toLowerCase():``}function MQ(e,t,n){t===void 0&&(t=`auto`),n===void 0&&(n=`auto`);var r=W(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}SQ({target:`String`,proto:!0,forced:JX((function(){return!!DQ.trim()||Kme&&DQ.trim.name!==`trim`}))},{trim:function(){return qme(this)}}),SQ({global:!0},{globalThis:Q}),wm&&(W.fn.append=wm),dm&&(W.fn.on=dm),Pm&&(W.fn.focus=Pm),sm&&(W.fn.attr=sm),um&&(W.fn.val=um),xm&&(W.fn.html=xm),Em&&(W.fn.parent=Em),om&&(W.fn.hasClass=om),jm&&(W.fn.empty=jm);var NQ,Jme={type:`video`,renderElem:function(e,t,n){var r,i=e,a=i.src,o=a===void 0?``:a,s=i.poster,c=s===void 0?``:s,l=i.width,u=l===void 0?`auto`:l,d=i.height,f=d===void 0?`auto`:d,p=J.isNodeSelected(n,e);if(o.trim().indexOf(`<iframe `)===0)r=Rh(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:MQ(o,u,f)});else{var m=Rh(`video`,{poster:c,controls:!0},Rh(`source`,{src:o,type:`video/mp4`}),`Sorry, your browser doesn't support embedded videos.
|
|
71
|
+
抱歉,浏览器不支持 video 视频`);u!==`auto`&&(m.data.width=u),f!==`auto`&&(m.data.height=f),r=Rh(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return vh(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},Yme={type:`video`,elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?``:r,a=n.poster,o=a===void 0?``:a,s=n.width,c=s===void 0?`auto`:s,l=n.height,u=l===void 0?`auto`:l,d=`<div data-w-e-type="video" data-w-e-is-void>
|
|
72
|
+
`;return i.trim().indexOf(`<iframe `)===0?d+=MQ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
|
|
73
|
+
</div>`}},Xme=Object.keys||function(e){return _Q(e,vQ)},Zme=YX?Object.defineProperties:function(e,t){HZ(e);for(var n,r=lZ(t),i=Xme(t),a=i.length,o=0;a>o;)WZ.f(e,n=i[o++],r[n]);return e},PQ=fZ(`document`,`documentElement`),FQ=$Z(`IE_PROTO`),IQ=function(){},LQ=function(e){return`<script>`+e+`<\/script>`},RQ=function(e){e.write(LQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},zQ=function(){try{NQ=new ActiveXObject(`htmlfile`)}catch{}var e,t;zQ=typeof document<`u`?document.domain&&NQ?RQ(NQ):((t=RZ(`iframe`)).style.display=`none`,PQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(LQ(`document.F=Object`)),e.close(),e.F):RQ(NQ);for(var n=vQ.length;n--;)delete zQ.prototype[vQ[n]];return zQ()};eQ[FQ]=!0;var BQ=Object.create||function(e,t){var n;return e===null?n=zQ():(IQ.prototype=HZ(e),n=new IQ,IQ.prototype=null,n[FQ]=e),t===void 0?n:Zme(n,t)},VQ=FZ(`unscopables`),HQ=Array.prototype;HQ[VQ]??WZ.f(HQ,VQ,{configurable:!0,value:BQ(null)});var UQ=function(e){HQ[VQ][e]=!0},Qme=hQ.includes;SQ({target:`Array`,proto:!0},{includes:function(e){return Qme(this,e,arguments.length>1?arguments[1]:void 0)}}),UQ(`includes`);var $me={selector:`iframe,video,p`,preParseHtml:function(e){var t=W(e),n=t;if(jQ(t)===`p`){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();[`iframe`,`video`].includes(a)&&(n=W(i))}}var o=jQ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=W(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},WQ=iZ(iZ.bind),GQ=function(e,t){return wZ(e),t===void 0?e:WQ?WQ(e,t):function(){return e.apply(t,arguments)}},KQ=Array.isArray||function(e){return aZ(e)==`Array`},qQ=function(){},ehe=[],JQ=fZ(`Reflect`,`construct`),YQ=/^\s*(?:class|function)\b/,the=iZ(YQ.exec),nhe=!YQ.exec(qQ),XQ=function(e){if(!uZ(e))return!1;try{return JQ(qQ,ehe,e),!0}catch{return!1}},ZQ=!JQ||JX((function(){var e;return XQ(XQ.call)||!XQ(Object)||!XQ((function(){e=!0}))||e}))?function(e){if(!uZ(e))return!1;switch(TQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return nhe||!!the(YQ,YZ(e))}:XQ,rhe=FZ(`species`),QQ=Q.Array,ihe=function(e,t){return new(function(e){var t;return KQ(e)&&(t=e.constructor,(ZQ(t)&&(t===QQ||KQ(t.prototype))||dZ(t)&&(t=t[rhe])===null)&&(t=void 0)),t===void 0?QQ:t}(e))(t===0?0:t)},$Q=iZ([].push),e$=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=kZ(c),h=sZ(m),g=GQ(l,u),_=pQ(h),v=0,y=d||ihe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:$Q(b,f)}else switch(e){case 4:return!1;case 7:$Q(b,f)}return a?-1:r||i?i:b}},t$={forEach:e$(0),map:e$(1),filter:e$(2),some:e$(3),every:e$(4),find:e$(5),findIndex:e$(6),filterReject:e$(7)},ahe=t$.find,n$=!0;`find`in[]&&[,].find((function(){n$=!1})),SQ({target:`Array`,proto:!0,forced:n$},{find:function(e){return ahe(this,e,arguments.length>1?arguments[1]:void 0)}}),UQ(`find`);var ohe=wQ?{}.toString:function(){return`[object `+TQ(this)+`]`};function r$(e,t,n,r){return t===void 0&&(t=``),n===void 0&&(n=`auto`),r===void 0&&(r=`auto`),{type:`video`,src:e,poster:t,width:n,height:r,children:[{text:``}]}}wQ||lQ(Object.prototype,`toString`,ohe,{unsafe:!0});var i$,a$,she={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=W(e),i=``,a=``,o=`auto`,s=`auto`,c=r.find(`iframe`);if(c.length>0)return o=c.attr(`width`)||`auto`,s=c.attr(`height`)||`auto`,r$(i=c[0].outerHTML,a,o,s);var l=r.find(`video`);return(i=l.attr(`src`)||``)||l.length>0&&(i=l.find(`source`).attr(`src`)||``),o=l.attr(`width`)||`auto`,s=l.attr(`height`)||`auto`,r$(i,a=l.attr(`poster`)||``,o,s)}},o$=function(){var e=HZ(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},s$=Q.RegExp,c$=JX((function(){var e=s$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),che=c$||JX((function(){return!s$(`a`,`y`).sticky})),lhe={BROKEN_CARET:c$||JX((function(){var e=s$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:che,UNSUPPORTED_Y:c$},uhe=Q.RegExp,dhe=JX((function(){var e=uhe(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
74
|
+
`)&&e.flags===`s`)})),fhe=Q.RegExp,phe=JX((function(){var e=fhe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),mhe=aQ.get,hhe=OZ(`native-string-replace`,String.prototype.replace),l$=RegExp.prototype.exec,u$=l$,ghe=iZ(``.charAt),_he=iZ(``.indexOf),vhe=iZ(``.replace),d$=iZ(``.slice),f$=(a$=/b*/g,ZX(l$,i$=/a/,`a`),ZX(l$,a$,`a`),i$.lastIndex!==0||a$.lastIndex!==0),p$=lhe.BROKEN_CARET,m$=/()??/.exec(``)[1]!==void 0;(f$||m$||p$||dhe||phe)&&(u$=function(e){var t,n,r,i,a,o,s,c=this,l=mhe(c),u=EQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=ZX(u$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=p$&&c.sticky,m=ZX(o$,c),h=c.source,g=0,_=u;if(p&&(m=vhe(m,`y`,``),_he(m,`g`)===-1&&(m+=`g`),_=d$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ghe(u,c.lastIndex-1)!==`
|
|
75
|
+
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),m$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),f$&&(r=c.lastIndex),i=ZX(l$,p?n:c,_),p?i?(i.input=d$(i.input,g),i[0]=d$(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:f$&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),m$&&i&&i.length>1&&ZX(hhe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=BQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var h$=u$;SQ({target:`RegExp`,proto:!0,forced:/./.exec!==h$},{exec:h$});var g$=Function.prototype,_$=g$.apply,yhe=g$.bind,v$=g$.call,y$=typeof Reflect==`object`&&Reflect.apply||(yhe?v$.bind(_$):function(){return v$.apply(_$,arguments)}),b$=(FZ(`species`),RegExp.prototype),bhe=iZ(``.charAt),x$=iZ(``.charCodeAt),xhe=iZ(``.slice),S$=function(e){return function(t,n){var r,i,a=EQ(cZ(t)),o=uQ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=x$(a,o))<55296||r>56319||o+1===s||(i=x$(a,o+1))<56320||i>57343?e?bhe(a,o):r:e?xhe(a,o,o+2):i-56320+(r-55296<<10)+65536}},C$={codeAt:S$(!1),charAt:S$(!0)},She=C$.charAt,Che=function(e,t,n){return t+(n?She(e,t).length:1)},whe=Math.floor,w$=iZ(``.charAt),The=iZ(``.replace),T$=iZ(``.slice),Ehe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Dhe=/\$([$&'`]|\d{1,2})/g,Ohe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Dhe;return i!==void 0&&(i=kZ(i),c=Ehe),The(a,c,(function(a,c){var l;switch(w$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return T$(t,0,n);case`'`:return T$(t,o);case`<`:l=i[T$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=whe(u/10);return d===0?a:d<=s?r[d-1]===void 0?w$(c,1):r[d-1]+w$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},khe=Q.TypeError,Ahe=function(e,t){var n=e.exec;if(uZ(n)){var r=ZX(n,e,t);return r!==null&&HZ(r),r}if(aZ(e)===`RegExp`)return ZX(h$,e,t);throw khe(`RegExp#exec called on incompatible receiver`)},E$=FZ(`replace`),jhe=Math.max,Mhe=Math.min,Nhe=iZ([].concat),D$=iZ([].push),O$=iZ(``.indexOf),k$=iZ(``.slice),Phe=`a`.replace(/./,`$0`)===`$0`,A$=!!/./[E$]&&/./[E$](`a`,`$0`)===``;function j$(e){return e===void 0&&(e=`r`),e+`-`+Um()}(function(e,t,n,r){var i=FZ(e),a=!JX((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!JX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=iZ(/./[i]),c=function(e,t,n){var r=A$?`$`:`$0`;return[function(e,n){var r=cZ(this),i=e==null?void 0:TZ(e,E$);return i?ZX(i,e,r,n):ZX(t,EQ(r),e,n)},function(e,i){var a=HZ(this),o=EQ(e);if(typeof i==`string`&&O$(i,r)===-1&&O$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=uZ(i);c||(i=EQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=Ahe(a,o);if(f===null||(D$(d,f),!l))break;EQ(f[0])===``&&(a.lastIndex=Che(o,fQ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=EQ((f=d[g])[0]),v=jhe(Mhe(uQ(f.index),o.length),0),y=[],b=1;b<f.length;b++)D$(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Nhe([_],y,v,o);x!==void 0&&D$(S,x);var C=EQ(y$(i,void 0,S))}else C=Ohe(_,o,v,y,x,i);v>=h&&(m+=k$(o,h,v)+C,h=v+_.length)}return m+k$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=iZ(e),c=t.exec;return c===h$||c===b$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));lQ(String.prototype,e,c[0]),lQ(b$,i,c[1])}})(`replace`,0,!!JX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Phe||A$);var M$=Q.Promise,N$=function(e,t,n){for(var r in t)lQ(e,r,t[r],n);return e},Fhe=Q.String,Ihe=Q.TypeError,P$=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=iZ(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return HZ(n),function(e){if(typeof e==`object`||uZ(e))return e;throw Ihe(`Can't set `+Fhe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Lhe=WZ.f,F$=FZ(`toStringTag`),I$=function(e,t,n){e&&!AZ(e=n?e:e.prototype,F$)&&Lhe(e,F$,{configurable:!0,value:t})},L$=FZ(`species`),Rhe=Q.TypeError,R$=function(e,t){if(pZ(t,e))return e;throw Rhe(`Incorrect invocation`)},z$={},zhe=FZ(`iterator`),Bhe=Array.prototype,Vhe=FZ(`iterator`),B$=function(e){if(e!=null)return TZ(e,Vhe)||TZ(e,`@@iterator`)||z$[TQ(e)]},Hhe=Q.TypeError,V$=function(e,t,n){var r,i;HZ(e);try{if(!(r=TZ(e,`return`))){if(t===`throw`)throw n;return n}r=ZX(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return HZ(r),n},Uhe=Q.TypeError,H$=function(e,t){this.stopped=e,this.result=t},U$=H$.prototype,W$=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=GQ(t,d),g=function(e){return r&&V$(r,`normal`,e),new H$(!0,e)},_=function(e){return f?(HZ(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=B$(e)))throw Uhe(CZ(e)+` is not iterable`);if((u=i)!==void 0&&(z$.Array===u||Bhe[zhe]===u)){for(a=0,o=pQ(e);o>a;a++)if((s=_(e[a]))&&pZ(U$,s))return s;return new H$(!1)}r=function(e,t){var n=arguments.length<2?B$(e):t;if(wZ(n))return HZ(ZX(n,e));throw Hhe(CZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=ZX(c,r)).done;){try{s=_(l.value)}catch(e){V$(r,`throw`,e)}if(typeof s==`object`&&s&&pZ(U$,s))return s}return new H$(!1)},G$=FZ(`iterator`),K$=!1;try{var Whe=0,q$={next:function(){return{done:!!Whe++}},return:function(){K$=!0}};q$[G$]=function(){return this},Array.from(q$,(function(){throw 2}))}catch{}var J$,Y$,X$,Z$,Q$=function(e,t){if(!t&&!K$)return!1;var n=!1;try{var r={};r[G$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Ghe=Q.TypeError,Khe=FZ(`species`),$$=iZ([].slice),e1=/(?:ipad|iphone|ipod).*applewebkit/i.test(mZ),t1=aZ(Q.process)==`process`,n1=Q.setImmediate,r1=Q.clearImmediate,qhe=Q.process,i1=Q.Dispatch,Jhe=Q.Function,a1=Q.MessageChannel,Yhe=Q.String,o1=0,s1={};try{J$=Q.location}catch{}var c1=function(e){if(AZ(s1,e)){var t=s1[e];delete s1[e],t()}},l1=function(e){return function(){c1(e)}},u1=function(e){c1(e.data)},d1=function(e){Q.postMessage(Yhe(e),J$.protocol+`//`+J$.host)};n1&&r1||(n1=function(e){var t=$$(arguments,1);return s1[++o1]=function(){y$(uZ(e)?e:Jhe(e),void 0,t)},Y$(o1),o1},r1=function(e){delete s1[e]},t1?Y$=function(e){qhe.nextTick(l1(e))}:i1&&i1.now?Y$=function(e){i1.now(l1(e))}:a1&&!e1?(Z$=(X$=new a1).port2,X$.port1.onmessage=u1,Y$=GQ(Z$.postMessage,Z$)):Q.addEventListener&&uZ(Q.postMessage)&&!Q.importScripts&&J$&&J$.protocol!==`file:`&&!JX(d1)?(Y$=d1,Q.addEventListener(`message`,u1,!1)):Y$=`onreadystatechange`in RZ(`script`)?function(e){PQ.appendChild(RZ(`script`)).onreadystatechange=function(){PQ.removeChild(this),c1(e)}}:function(e){setTimeout(l1(e),0)});var f1,p1,m1,h1,g1,_1,v1,y1,b1={set:n1,clear:r1},Xhe=/ipad|iphone|ipod/i.test(mZ)&&Q.Pebble!==void 0,Zhe=/web0s(?!.*chrome)/i.test(mZ),Qhe=VZ.f,x1=b1.set,S1=Q.MutationObserver||Q.WebKitMutationObserver,C1=Q.document,w1=Q.process,T1=Q.Promise,E1=Qhe(Q,`queueMicrotask`),D1=E1&&E1.value;D1||(f1=function(){var e,t;for(t1&&(e=w1.domain)&&e.exit();p1;){t=p1.fn,p1=p1.next;try{t()}catch(e){throw p1?h1():m1=void 0,e}}m1=void 0,e&&e.enter()},e1||t1||Zhe||!S1||!C1?!Xhe&&T1&&T1.resolve?((v1=T1.resolve(void 0)).constructor=T1,y1=GQ(v1.then,v1),h1=function(){y1(f1)}):t1?h1=function(){w1.nextTick(f1)}:(x1=GQ(x1,Q),h1=function(){x1(f1)}):(g1=!0,_1=C1.createTextNode(``),new S1(f1).observe(_1,{characterData:!0}),h1=function(){_1.data=g1=!g1}));var O1,k1,A1,j1,M1=D1||function(e){var t={fn:e,next:void 0};m1&&(m1.next=t),p1||(p1=t,h1()),m1=t},$he=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=wZ(t),this.reject=wZ(n)},N1={f:function(e){return new $he(e)}},P1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ege=typeof window==`object`,F1=b1.set,tge=FZ(`species`),I1=`Promise`,L1=aQ.getterFor(I1),nge=aQ.set,rge=aQ.getterFor(I1),R1=M$&&M$.prototype,z1=M$,B1=R1,V1=Q.TypeError,H1=Q.document,U1=Q.process,W1=N1.f,ige=W1,age=!!(H1&&H1.createEvent&&Q.dispatchEvent),G1=uZ(Q.PromiseRejectionEvent),K1=!1,q1=xQ(I1,(function(){var e=YZ(z1),t=e!==String(z1);if(!t&&yZ===66)return!0;if(yZ>=51&&/native code/.test(e))return!1;var n=new z1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[tge]=r,!(K1=n.then((function(){}))instanceof r)||!t&&ege&&!G1})),oge=q1||!Q$((function(e){z1.all(e).catch((function(){}))})),J1=function(e){var t;return!(!dZ(e)||!uZ(t=e.then))&&t},Y1=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;M1((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&cge(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(V1(`Promise-chain cycle`)):(s=J1(o))?ZX(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&sge(e)}))}},X1=function(e,t,n){var r,i;age?((r=H1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Q.dispatchEvent(r)):r={promise:t,reason:n},!G1&&(i=Q[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=Q.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},sge=function(e){ZX(F1,Q,(function(){var t,n=e.facade,r=e.value;if(Z1(e)&&(t=P1((function(){t1?U1.emit(`unhandledRejection`,r,n):X1(`unhandledrejection`,n,r)})),e.rejection=t1||Z1(e)?2:1,t.error))throw t.value}))},Z1=function(e){return e.rejection!==1&&!e.parent},cge=function(e){ZX(F1,Q,(function(){var t=e.facade;t1?U1.emit(`rejectionHandled`,t):X1(`rejectionhandled`,t,e.value)}))},Q1=function(e,t,n){return function(r){e(t,r,n)}},$1=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y1(e,!0))},e0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw V1(`Promise can't be resolved itself`);var r=J1(t);r?M1((function(){var n={done:!1};try{ZX(r,t,Q1(e0,n,e),Q1($1,n,e))}catch(t){$1(n,t,e)}})):(e.value=t,e.state=1,Y1(e,!1))}catch(t){$1({done:!1},t,e)}}};if(q1&&(B1=(z1=function(e){R$(this,B1),wZ(e),ZX(O1,this);var t=L1(this);try{e(Q1(e0,t),Q1($1,t))}catch(e){$1(t,e)}}).prototype,(O1=function(e){nge(this,{type:I1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=N$(B1,{then:function(e,t){var n=rge(this),r=n.reactions,i=W1(function(e,t){var n,r=HZ(e).constructor;return r===void 0||(n=HZ(r)[Khe])==null?t:function(e){if(ZQ(e))return e;throw Ghe(CZ(e)+` is not a constructor`)}(n)}(this,z1));return i.ok=!uZ(e)||e,i.fail=uZ(t)&&t,i.domain=t1?U1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Y1(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),k1=function(){var e=new O1,t=L1(e);this.promise=e,this.resolve=Q1(e0,t),this.reject=Q1($1,t)},N1.f=W1=function(e){return e===z1||e===A1?new k1(e):ige(e)},uZ(M$)&&R1!==Object.prototype)){j1=R1.then,K1||(lQ(R1,`then`,(function(e,t){var n=this;return new z1((function(e,t){ZX(j1,n,e,t)})).then(e,t)}),{unsafe:!0}),lQ(R1,`catch`,B1.catch,{unsafe:!0}));try{delete R1.constructor}catch{}P$&&P$(R1,B1)}function t0(e,t,n){return n===void 0&&(n=``),BX(this,void 0,void 0,(function(){var r,i,a,o,s,c,l;return VX(this,(function(u){switch(u.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig(`insertVideo`),i=r.onInsertedVideo,a=r.checkVideo,o=r.parseVideoSrc,[4,a(t,n)]):[2];case 1:return typeof(s=u.sent())==`string`?(e.alert(s,`error`),[2]):s==null?[2]:[4,o(t)];case 2:return(c=u.sent()).trim().indexOf(`<iframe `)!==0&&(c=c.replace(/</g,`<`).replace(/>/g,`>`)),l={type:`video`,src:c,poster:n,children:[{text:``}]},Promise.resolve().then((function(){U.insertNodes(e,l)})),i(l),[2]}}))}))}function n0(){return j$(`w-e-insert-video`)}SQ({global:!0,wrap:!0,forced:q1},{Promise:z1}),I$(z1,I1,!1),function(e){var t=fZ(`Promise`),n=WZ.f;YX&&t&&!t[L$]&&n(t,L$,{configurable:!0,get:function(){return this}})}(),A1=fZ(I1),SQ({target:I1,stat:!0,forced:q1},{reject:function(e){var t=W1(this);return ZX(t.reject,void 0,e),t.promise}}),SQ({target:I1,stat:!0,forced:q1},{resolve:function(e){return function(e,t){if(HZ(e),dZ(t)&&t.constructor===e)return t;var n=N1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),SQ({target:I1,stat:!0,forced:oge},{all:function(e){var t=this,n=W1(t),r=n.resolve,i=n.reject,a=P1((function(){var n=wZ(t.resolve),a=[],o=0,s=1;W$(e,(function(e){var c=o++,l=!1;s++,ZX(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=W1(t),r=n.reject,i=P1((function(){var i=wZ(t.resolve);W$(e,(function(e){ZX(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var lge=function(){function e(){this.title=Y(`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=n0(),this.posterInputId=n0(),this.buttonId=n0()}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 t==null||!V.isCollapsed(t)||!!J.getSelectedElems(e).some((function(t){var n=J.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.posterInputId,a=n.buttonId,o=HX(jO(Y(`videoModule.videoSrc`),r,Y(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=HX(jO(Y(`videoModule.videoPoster`),i,Y(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=W(c),p=W(d),m=HX(MO(a,Y(`videoModule.ok`)),1)[0];if(this.$content==null){var h=W(`<div></div>`);h.on(`click`,`#`+a,(function(n){return BX(t,void 0,void 0,(function(){var t,a;return VX(this,(function(o){switch(o.label){case 0:return n.preventDefault(),t=h.find(`#`+r).val().trim(),a=h.find(`#`+i).val().trim(),[4,t0(e,t,a)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=h}var g=this.$content;return g.empty(),g.append(s),g.append(u),g.append(m),f.val(``),p.val(``),setTimeout((function(){f.focus()})),g[0]},e}(),uge=iZ([].join),dge=sZ!=Object,fge=function(e,t){var n=[].join;return!!n&&JX((function(){n.call(null,`,`,1)}))}();SQ({target:`Array`,proto:!0,forced:dge||!fge},{join:function(e){return uge(lZ(this),e===void 0?`,`:e)}});var r0,i0,a0,pge=!JX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),o0=$Z(`IE_PROTO`),s0=Q.Object,mge=s0.prototype,c0=pge?s0.getPrototypeOf:function(e){var t=kZ(e);if(AZ(t,o0))return t[o0];var n=t.constructor;return uZ(n)&&t instanceof n?n.prototype:t instanceof s0?mge:null},l0=FZ(`iterator`),u0=!1;[].keys&&(`next`in(a0=[].keys())?(i0=c0(c0(a0)))!==Object.prototype&&(r0=i0):u0=!0),(r0==null||JX((function(){var e={};return r0[l0].call(e)!==e})))&&(r0={}),uZ(r0[l0])||lQ(r0,l0,(function(){return this}));var d0={IteratorPrototype:r0,BUGGY_SAFARI_ITERATORS:u0},hge=d0.IteratorPrototype,gge=function(){return this},_ge=cQ.PROPER,vge=cQ.CONFIGURABLE,f0=d0.IteratorPrototype,p0=d0.BUGGY_SAFARI_ITERATORS,m0=FZ(`iterator`),yge=function(){return this},h0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=BQ(hge,{next:eZ(1,n)}),I$(e,i,!1),z$[i]=gge})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!p0&&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)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[m0]||p[`@@iterator`]||i&&p[i],h=!p0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=c0(g.call(new e)))!==Object.prototype&&s.next&&(c0(s)!==f0&&(P$?P$(s,f0):uZ(s[m0])||lQ(s,m0,yge)),I$(s,d,!0)),_ge&&i==`values`&&m&&m.name!==`values`&&(vge?GZ(p,`name`,`values`):(f=!0,h=function(){return ZX(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(p0||f||!(l in p))&&lQ(p,l,c[l]);else SQ({target:t,proto:!0,forced:p0||f},c);return p[m0]!==h&&lQ(p,m0,h,{name:i}),z$[t]=h,c},bge=aQ.set,xge=aQ.getterFor(`Array Iterator`),g0=h0(Array,`Array`,(function(e,t){bge(this,{type:`Array Iterator`,target:lZ(e),index:0,kind:t})}),(function(){var e=xge(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);z$.Arguments=z$.Array,UQ(`keys`),UQ(`values`),UQ(`entries`);var Sge=C$.charAt,Cge=aQ.set,wge=aQ.getterFor(`String Iterator`);h0(String,`String`,(function(e){Cge(this,{type:`String Iterator`,string:EQ(e),index:0})}),(function(){var e,t=wge(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Sge(n,r),t.index+=e.length,{value:e,done:!1})}));var _0=function(e,t,n){var r=IZ(t);r in e?WZ.f(e,r,eZ(0,n)):e[r]=n},Tge=Q.Array,Ege=Math.max,v0=yQ.f,y0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dge={f:function(e){return y0&&aZ(e)==`Window`?function(e){try{return v0(e)}catch{return function(e,t,n){for(var r=pQ(e),i=dQ(void 0,r),a=dQ(r,r),o=Tge(Ege(a-i,0)),s=0;i<a;i++,s++)_0(o,s,e[i]);return o.length=s,o}(y0)}}(e):v0(lZ(e))}},b0=JX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),x0=Object.isExtensible,S0=JX((function(){x0(1)}))||b0?function(e){return!!dZ(e)&&(!b0||aZ(e)!=`ArrayBuffer`)&&(!x0||x0(e))}:x0,Oge=!JX((function(){return Object.isExtensible(Object.preventExtensions({}))})),C0=WX((function(e){var t=WZ.f,n=!1,r=jZ(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=yQ.f,t=iZ([].splice),i={};i[r]=1,e(i).length&&(yQ.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},SQ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Dge.f}))},fastKey:function(e,t){if(!dZ(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!AZ(e,r)){if(!S0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!AZ(e,r)){if(!S0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Oge&&n&&S0(e)&&!AZ(e,r)&&a(e),e}};eQ[r]=!0})),w0=C0.getWeakData,kge=aQ.set,Age=aQ.getterFor,jge=t$.find,Mge=t$.findIndex,Nge=iZ([].splice),Pge=0,T0=function(e){return e.frozen||=new E0},E0=function(){this.entries=[]},D0=function(e,t){return jge(e.entries,(function(e){return e[0]===t}))};E0.prototype={get:function(e){var t=D0(this,e);if(t)return t[1]},has:function(e){return!!D0(this,e)},set:function(e,t){var n=D0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Mge(this.entries,(function(t){return t[0]===e}));return~t&&Nge(this.entries,t,1),!!~t}};var O0,k0={getConstructor:function(e,t,n,r){var i=e((function(e,i){R$(e,a),kge(e,{type:t,id:Pge++,frozen:void 0}),i!=null&&W$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Age(t),s=function(e,t,n){var r=o(e),i=w0(HZ(t),!0);return!0===i?T0(r).set(t,n):i[r.id]=n,e};return N$(a,{delete:function(e){var t=o(this);if(!dZ(e))return!1;var n=w0(e);return!0===n?T0(t).delete(e):n&&AZ(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!dZ(e))return!1;var n=w0(e);return!0===n?T0(t).has(e):n&&AZ(n,t.id)}}),N$(a,n?{get:function(e){var t=o(this);if(dZ(e)){var n=w0(e);return!0===n?T0(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},A0=aQ.enforce,Fge=!Q.ActiveXObject&&`ActiveXObject`in Q,j0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ige=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=Q[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=iZ(s[e]);lQ(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!dZ(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!dZ(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!dZ(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(xQ(e,!uZ(o)||!(i||s.forEach&&!JX((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),C0.enable();else if(xQ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=JX((function(){d.has(1)})),m=Q$((function(e){new o(e)})),h=!i&&JX((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){R$(e,s);var n=function(e,t,n){var r,i;return P$&&uZ(r=t.constructor)&&r!==n&&dZ(i=r.prototype)&&i!==n.prototype&&P$(e,i),e}(new o,e,c);return t!=null&&W$(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,SQ({global:!0,forced:c!=o},l),I$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,j0,k0);if(ZZ&&Fge){O0=k0.getConstructor(j0,`WeakMap`,!0),C0.enable();var M0=Ige.prototype,N0=iZ(M0.delete),P0=iZ(M0.has),F0=iZ(M0.get),I0=iZ(M0.set);N$(M0,{delete:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,N0(this,e)||t.frozen.delete(e)}return N0(this,e)},has:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,P0(this,e)||t.frozen.has(e)}return P0(this,e)},get:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,P0(this,e)?F0(this,e):t.frozen.get(e)}return F0(this,e)},set:function(e,t){if(dZ(e)&&!S0(e)){var n=A0(this);n.frozen||=new O0,P0(this,e)?I0(this,e,t):n.frozen.set(e,t)}else I0(this,e,t);return this}})}var L0={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},R0=RZ(`span`).classList,z0=R0&&R0.constructor&&R0.constructor.prototype,Lge=z0===Object.prototype?void 0:z0,B0=FZ(`iterator`),V0=FZ(`toStringTag`),H0=g0.values,U0=function(e,t){if(e){if(e[B0]!==H0)try{GZ(e,B0,H0)}catch{e[B0]=H0}if(e[V0]||GZ(e,V0,t),L0[t]){for(var n in g0)if(e[n]!==g0[n])try{GZ(e,n,g0[n])}catch{e[n]=g0[n]}}}};for(var W0 in L0)U0(Q[W0]&&Q[W0].prototype,W0);U0(Lge,`DOMTokenList`);var Rge=cQ.EXISTS,zge=WZ.f,G0=Function.prototype,Bge=iZ(G0.toString),K0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vge=iZ(K0.exec);YX&&!Rge&&zge(G0,`name`,{configurable:!0,get:function(){try{return Vge(K0,Bge(this))[1]}catch{return``}}});var Hge=FZ(`species`),Uge=yZ>=51||!JX((function(){var e=[];return(e.constructor={})[Hge]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Wge=FZ(`species`),q0=Q.Array,Gge=Math.max;function J0(e){return e.getMenuConfig(`uploadVideo`)}SQ({target:`Array`,proto:!0,forced:!Uge},{slice:function(e,t){var n,r,i,a=lZ(this),o=pQ(a),s=dQ(e,o),c=dQ(t===void 0?o:t,o);if(KQ(a)&&(n=a.constructor,(ZQ(n)&&(n===q0||KQ(n.prototype))||dZ(n)&&(n=n[Wge])===null)&&(n=void 0),n===q0||n===void 0))return $$(a,s,c);for(r=new(n===void 0?q0:n)(Gge(c-s,0)),i=0;s<c;s++,i++)s in a&&_0(r,i,a[s]);return r.length=i,r}});var Y0=new WeakMap;function Kge(e,t){return BX(this,void 0,void 0,(function(){var n,r,i,a;return VX(this,(function(o){switch(o.label){case 0:return n=function(e){var t=Y0.get(e);if(t!=null)return t;var n=J0(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=BO(zX(zX({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n){return t0(e,t,n)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){var u=l.url,d=u===void 0?``:u,f=l.poster;t0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),Y0.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}var qge=function(){function e(){this.title=Y(`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,i=r===void 0?[]:r,a=n.customBrowseAndUpload;if(a)a((function(t,n){return t0(e,t,n)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=W(`body`),c=W(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){(function(e,t){var n,r;BX(this,void 0,void 0,(function(){var i,a,o,s,c,l;return VX(this,(function(u){switch(u.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=J0(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=Kpe(i),u.label=2;case 2:return[4,o.next()];case 3:return(s=u.sent()).done?[3,8]:(c=s.value,a?[4,a(c,(function(t,n){return t0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,Kge(e,c)];case 6:u.sent(),u.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=u.sent(),n={error:l},[3,15];case 10:return u.trys.push([10,,13,14]),s&&!s.done&&(r=o.return)?[4,r.call(o)]:[3,12];case 11:u.sent(),u.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,c[0].files)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!V.isCollapsed(t)||!!J.getSelectedElems(e).some((function(t){var n=J.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadVideo`)},e}(),Jge=cQ.PROPER,X0=RegExp.prototype,Z0=X0.toString,Yge=iZ(o$),Xge=JX((function(){return Z0.call({source:`a`,flags:`b`})!=`/a/b`})),Zge=Jge&&Z0.name!=`toString`;function Q0(){return j$(`w-e-insert-video`)}(Xge||Zge)&&lQ(RegExp.prototype,`toString`,(function(){var e=HZ(this),t=EQ(e.source),n=e.flags;return`/`+t+`/`+EQ(n===void 0&&pZ(X0,e)&&!(`flags`in X0)?Yge(e):n)}),{unsafe:!0});var Qge=function(){function e(){this.title=Y(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Q0(),this.heightInputId=Q0(),this.buttonId=Q0()}return e.prototype.getSelectedVideoNode=function(e){return J.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 e.selection==null||this.getSelectedVideoNode(e)==null},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,i=t.buttonId,a=HX(jO(Y(`videoModule.width`),n,`auto`),2),o=a[0],s=W(a[1]),c=HX(jO(Y(`videoModule.height`),r,`auto`),2),l=c[0],u=W(c[1]),d=HX(MO(i,Y(`videoModule.ok`)),1)[0];if(this.$content==null){var f=W(`<div></div>`);f.on(`click`,`#`+i,(function(t){t.preventDefault();var i=f.find(`#`+n).val().trim(),a=f.find(`#`+r).val().trim(),o=parseInt(i),s=parseInt(a),c=o?o.toString():`auto`,l=s?s.toString():`auto`;e.restoreSelection(),U.setNodes(e,{width:c,height:l},{match:function(e){return J.checkNodeType(e,`video`)}}),e.hidePanelOrModal()})),this.$content=f}var p=this.$content;p.empty(),p.append(o),p.append(l),p.append(d);var m=this.getSelectedVideoNode(e);if(m==null)return p[0];var h=m.width,g=h===void 0?`auto`:h,_=m.height,v=_===void 0?`auto`:_;return s.val(g),u.val(v),setTimeout((function(){s.focus()})),p[0]},e}(),$ge={renderElems:[Jme],elemsToHtml:[Yme],preParseHtml:[$me],parseElemsHtml:[she],menus:[{key:`insertVideo`,factory:function(){return new lge},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new qge},config:{server:``,fieldName:`wangeditor-uploaded-video`,maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:[`video/*`],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error(`'`+e.name+`' upload failed`,t)},onError:function(e,t,n){console.error(`'`+e.name+` upload error`,t,n)}}},{key:`editVideoSize`,factory:function(){return new Qge}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`video`||t(e)},r.normalizeNode=function(e){var t=HX(e,2),i=t[0],a=t[1];return J.getNodeType(i)===`video`&&J.isLastNode(r,i)&&U.insertNodes(r,J.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};gk(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),gk(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var $0=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function e2(e){var t={exports:{}};return e(t,t.exports),t.exports}var t2,n2,r2=function(e){return e&&e.Math==Math&&e},$=r2(typeof globalThis==`object`&&globalThis)||r2(typeof window==`object`&&window)||r2(typeof self==`object`&&self)||r2(typeof $0==`object`&&$0)||function(){return this}()||Function(`return this`)(),i2=function(e){try{return!!e()}catch{return!0}},a2=!i2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),o2=Function.prototype.call,s2=o2.bind?o2.bind(o2):function(){return o2.apply(o2,arguments)},c2={}.propertyIsEnumerable,l2=Object.getOwnPropertyDescriptor,e_e={f:l2&&!c2.call({1:2},1)?function(e){var t=l2(this,e);return!!t&&t.enumerable}:c2},u2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},d2=Function.prototype,f2=d2.bind,p2=d2.call,t_e=f2&&f2.bind(p2),m2=f2?function(e){return e&&t_e(p2,e)}:function(e){return e&&function(){return p2.apply(e,arguments)}},n_e=m2({}.toString),r_e=m2(``.slice),h2=function(e){return r_e(n_e(e),8,-1)},g2=$.Object,i_e=m2(``.split),_2=i2((function(){return!g2(`z`).propertyIsEnumerable(0)}))?function(e){return h2(e)==`String`?i_e(e,``):g2(e)}:g2,a_e=$.TypeError,v2=function(e){if(e==null)throw a_e(`Can't call method on `+e);return e},y2=function(e){return _2(v2(e))},b2=function(e){return typeof e==`function`},x2=function(e){return typeof e==`object`?e!==null:b2(e)},o_e=function(e){return b2(e)?e:void 0},S2=function(e,t){return arguments.length<2?o_e($[e]):$[e]&&$[e][t]},C2=m2({}.isPrototypeOf),w2=S2(`navigator`,`userAgent`)||``,T2=$.process,E2=$.Deno,D2=T2&&T2.versions||E2&&E2.version,O2=D2&&D2.v8;O2&&(n2=(t2=O2.split(`.`))[0]>0&&t2[0]<4?1:+(t2[0]+t2[1])),!n2&&w2&&(!(t2=w2.match(/Edge\/(\d+)/))||t2[1]>=74)&&(t2=w2.match(/Chrome\/(\d+)/))&&(n2=+t2[1]);var k2=n2,A2=!!Object.getOwnPropertySymbols&&!i2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&k2&&k2<41})),j2=A2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,s_e=$.Object,M2=j2?function(e){return typeof e==`symbol`}:function(e){var t=S2(`Symbol`);return b2(t)&&C2(t.prototype,s_e(e))},c_e=$.String,N2=function(e){try{return c_e(e)}catch{return`Object`}},l_e=$.TypeError,P2=function(e){if(b2(e))return e;throw l_e(N2(e)+` is not a function`)},F2=function(e,t){var n=e[t];return n==null?void 0:P2(n)},u_e=$.TypeError,d_e=Object.defineProperty,I2=function(e,t){try{d_e($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},L2=$[`__core-js_shared__`]||I2(`__core-js_shared__`,{}),R2=e2((function(e){(e.exports=function(e,t){return L2[e]||(L2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),f_e=$.Object,z2=function(e){return f_e(v2(e))},p_e=m2({}.hasOwnProperty),B2=Object.hasOwn||function(e,t){return p_e(z2(e),t)},m_e=0,h_e=Math.random(),g_e=m2(1 .toString),V2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+g_e(++m_e+h_e,36)},H2=R2(`wks`),U2=$.Symbol,W2=U2&&U2.for,__e=j2?U2:U2&&U2.withoutSetter||V2,G2=function(e){if(!B2(H2,e)||!A2&&typeof H2[e]!=`string`){var t=`Symbol.`+e;A2&&B2(U2,e)?H2[e]=U2[e]:H2[e]=j2&&W2?W2(t):__e(t)}return H2[e]},v_e=$.TypeError,y_e=G2(`toPrimitive`),K2=function(e){var t=function(e,t){if(!x2(e)||M2(e))return e;var n,r=F2(e,y_e);if(r){if(t===void 0&&(t=`default`),n=s2(r,e,t),!x2(n)||M2(n))return n;throw v_e(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&b2(n=e.toString)&&!x2(r=s2(n,e))||b2(n=e.valueOf)&&!x2(r=s2(n,e))||t!==`string`&&b2(n=e.toString)&&!x2(r=s2(n,e)))return r;throw u_e(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return M2(t)?t:t+``},q2=$.document,b_e=x2(q2)&&x2(q2.createElement),J2=function(e){return b_e?q2.createElement(e):{}},Y2=!a2&&!i2((function(){return Object.defineProperty(J2(`div`),`a`,{get:function(){return 7}}).a!=7})),X2=Object.getOwnPropertyDescriptor,Z2={f:a2?X2:function(e,t){if(e=y2(e),t=K2(t),Y2)try{return X2(e,t)}catch{}if(B2(e,t))return u2(!s2(e_e.f,e,t),e[t])}},x_e=$.String,S_e=$.TypeError,Q2=function(e){if(x2(e))return e;throw S_e(x_e(e)+` is not an object`)},C_e=$.TypeError,$2=Object.defineProperty,e4={f:a2?$2:function(e,t,n){if(Q2(e),t=K2(t),Q2(n),Y2)try{return $2(e,t,n)}catch{}if(`get`in n||`set`in n)throw C_e(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},t4=a2?function(e,t,n){return e4.f(e,t,u2(1,n))}:function(e,t,n){return e[t]=n,e},w_e=m2(Function.toString);b2(L2.inspectSource)||(L2.inspectSource=function(e){return w_e(e)});var n4,r4,i4,a4=L2.inspectSource,o4=$.WeakMap,s4=b2(o4)&&/native code/.test(a4(o4)),c4=R2(`keys`),l4=function(e){return c4[e]||(c4[e]=V2(e))},u4={},d4=$.TypeError,T_e=$.WeakMap;if(s4||L2.state){var f4=L2.state||=new T_e,E_e=m2(f4.get),p4=m2(f4.has),D_e=m2(f4.set);n4=function(e,t){if(p4(f4,e))throw new d4(`Object already initialized`);return t.facade=e,D_e(f4,e,t),t},r4=function(e){return E_e(f4,e)||{}},i4=function(e){return p4(f4,e)}}else{var m4=l4(`state`);u4[m4]=!0,n4=function(e,t){if(B2(e,m4))throw new d4(`Object already initialized`);return t.facade=e,t4(e,m4,t),t},r4=function(e){return B2(e,m4)?e[m4]:{}},i4=function(e){return B2(e,m4)}}var h4={set:n4,get:r4,has:i4,enforce:function(e){return i4(e)?r4(e):n4(e,{})},getterFor:function(e){return function(t){var n;if(!x2(t)||(n=r4(t)).type!==e)throw d4(`Incompatible receiver, `+e+` required`);return n}}},g4=Function.prototype,O_e=a2&&Object.getOwnPropertyDescriptor,_4=B2(g4,`name`),v4={EXISTS:_4,PROPER:_4&&function(){}.name===`something`,CONFIGURABLE:_4&&(!a2||a2&&O_e(g4,`name`).configurable)},y4=e2((function(e){var t=v4.CONFIGURABLE,n=h4.get,r=h4.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;b2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!B2(a,`name`)||t&&a.name!==d)&&t4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:I2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:t4(e,n,a))})(Function.prototype,`toString`,(function(){return b2(this)&&n(this).source||a4(this)}))})),k_e=Math.ceil,A_e=Math.floor,b4=function(e){var t=+e;return t!=t||t===0?0:(t>0?A_e:k_e)(t)},j_e=Math.max,M_e=Math.min,x4=function(e,t){var n=b4(e);return n<0?j_e(n+t,0):M_e(n,t)},N_e=Math.min,S4=function(e){return e>0?N_e(b4(e),9007199254740991):0},C4=function(e){return S4(e.length)},P_e=function(e){return function(t,n,r){var i,a=y2(t),o=C4(a),s=x4(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),w4=m2([].push),T4=function(e,t){var n,r=y2(e),i=0,a=[];for(n in r)!B2(u4,n)&&B2(r,n)&&w4(a,n);for(;t.length>i;)B2(r,n=t[i++])&&(~P_e(a,n)||w4(a,n));return a},E4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],F_e=E4.concat(`length`,`prototype`),D4={f:Object.getOwnPropertyNames||function(e){return T4(e,F_e)}},I_e={f:Object.getOwnPropertySymbols},L_e=m2([].concat),R_e=S2(`Reflect`,`ownKeys`)||function(e){var t=D4.f(Q2(e)),n=I_e.f;return n?L_e(t,n(e)):t},z_e=function(e,t){for(var n=R_e(t),r=e4.f,i=Z2.f,a=0;a<n.length;a++){var o=n[a];B2(e,o)||r(e,o,i(t,o))}},B_e=/#|\.prototype\./,O4=function(e,t){var n=H_e[V_e(e)];return n==W_e||n!=U_e&&(b2(t)?i2(t):!!t)},V_e=O4.normalize=function(e){return String(e).replace(B_e,`.`).toLowerCase()},H_e=O4.data={},U_e=O4.NATIVE=`N`,W_e=O4.POLYFILL=`P`,k4=O4,G_e=Z2.f,A4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||I2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=G_e(n,r))&&o.value:n[r],!k4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;z_e(a,i)}(e.sham||i&&i.sham)&&t4(a,`sham`,!0),y4(n,r,a,e)}},j4=Array.isArray||function(e){return h2(e)==`Array`},M4={};M4[G2(`toStringTag`)]=`z`;var N4=String(M4)===`[object z]`,K_e=G2(`toStringTag`),q_e=$.Object,J_e=h2(function(){return arguments}())==`Arguments`,P4=N4?h2:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=q_e(e),K_e))==`string`?n:J_e?h2(t):(r=h2(t))==`Object`&&b2(t.callee)?`Arguments`:r},F4=function(){},Y_e=[],I4=S2(`Reflect`,`construct`),L4=/^\s*(?:class|function)\b/,X_e=m2(L4.exec),Z_e=!L4.exec(F4),R4=function(e){if(!b2(e))return!1;try{return I4(F4,Y_e,e),!0}catch{return!1}},z4=!I4||i2((function(){var e;return R4(R4.call)||!R4(Object)||!R4((function(){e=!0}))||e}))?function(e){if(!b2(e))return!1;switch(P4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Z_e||!!X_e(L4,a4(e))}:R4,B4=function(e,t,n){var r=K2(t);r in e?e4.f(e,r,u2(0,n)):e[r]=n},Q_e=G2(`species`),V4=m2([].slice),$_e=k2>=51||!i2((function(){var e=[];return(e.constructor={})[Q_e]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),eve=G2(`species`),H4=$.Array,tve=Math.max;A4({target:`Array`,proto:!0,forced:!$_e},{slice:function(e,t){var n,r,i,a=y2(this),o=C4(a),s=x4(e,o),c=x4(t===void 0?o:t,o);if(j4(a)&&(n=a.constructor,(z4(n)&&(n===H4||j4(n.prototype))||x2(n)&&(n=n[eve])===null)&&(n=void 0),n===H4||n===void 0))return V4(a,s,c);for(r=new(n===void 0?H4:n)(tve(c-s,0)),i=0;s<c;s++,i++)s in a&&B4(r,i,a[s]);return r.length=i,r}});var nve=N4?{}.toString:function(){return`[object `+P4(this)+`]`};N4||y4(Object.prototype,`toString`,nve,{unsafe:!0});var U4,rve=$.String,W4=function(e){if(P4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return rve(e)},G4=function(){var e=Q2(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},K4=$.RegExp,q4=i2((function(){var e=K4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),ive=q4||i2((function(){return!K4(`a`,`y`).sticky})),J4={BROKEN_CARET:q4||i2((function(){var e=K4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:ive,UNSUPPORTED_Y:q4},ave=Object.keys||function(e){return T4(e,E4)},ove=a2?Object.defineProperties:function(e,t){Q2(e);for(var n,r=y2(t),i=ave(t),a=i.length,o=0;a>o;)e4.f(e,n=i[o++],r[n]);return e},Y4=S2(`document`,`documentElement`),X4=l4(`IE_PROTO`),Z4=function(){},Q4=function(e){return`<script>`+e+`<\/script>`},$4=function(e){e.write(Q4(``)),e.close();var t=e.parentWindow.Object;return e=null,t},e3=function(){try{U4=new ActiveXObject(`htmlfile`)}catch{}var e,t;e3=typeof document<`u`?document.domain&&U4?$4(U4):((t=J2(`iframe`)).style.display=`none`,Y4.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Q4(`document.F=Object`)),e.close(),e.F):$4(U4);for(var n=E4.length;n--;)delete e3.prototype[E4[n]];return e3()};u4[X4]=!0;var t3,n3,r3=Object.create||function(e,t){var n;return e===null?n=e3():(Z4.prototype=Q2(e),n=new Z4,Z4.prototype=null,n[X4]=e),t===void 0?n:ove(n,t)},sve=$.RegExp,cve=i2((function(){var e=sve(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
76
|
+
`)&&e.flags===`s`)})),lve=$.RegExp,uve=i2((function(){var e=lve(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),dve=h4.get,fve=R2(`native-string-replace`,String.prototype.replace),i3=RegExp.prototype.exec,a3=i3,pve=m2(``.charAt),mve=m2(``.indexOf),hve=m2(``.replace),o3=m2(``.slice),s3=(n3=/b*/g,s2(i3,t3=/a/,`a`),s2(i3,n3,`a`),t3.lastIndex!==0||n3.lastIndex!==0),c3=J4.BROKEN_CARET,l3=/()??/.exec(``)[1]!==void 0;(s3||l3||c3||cve||uve)&&(a3=function(e){var t,n,r,i,a,o,s,c=this,l=dve(c),u=W4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=s2(a3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=c3&&c.sticky,m=s2(G4,c),h=c.source,g=0,_=u;if(p&&(m=hve(m,`y`,``),mve(m,`g`)===-1&&(m+=`g`),_=o3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&pve(u,c.lastIndex-1)!==`
|
|
77
|
+
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),l3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),s3&&(r=c.lastIndex),i=s2(i3,p?n:c,_),p?i?(i.input=o3(i.input,g),i[0]=o3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:s3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),l3&&i&&i.length>1&&s2(fve,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=r3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var u3=a3;A4({target:`RegExp`,proto:!0,forced:/./.exec!==u3},{exec:u3});var d3=Function.prototype,f3=d3.apply,gve=d3.bind,p3=d3.call,m3=typeof Reflect==`object`&&Reflect.apply||(gve?p3.bind(f3):function(){return p3.apply(f3,arguments)}),_ve=G2(`species`),h3=RegExp.prototype,vve=G2(`match`),yve=$.TypeError,bve=G2(`species`),g3=function(e,t){var n,r=Q2(e).constructor;return r===void 0||(n=Q2(r)[bve])==null?t:function(e){if(z4(e))return e;throw yve(N2(e)+` is not a constructor`)}(n)},xve=m2(``.charAt),_3=m2(``.charCodeAt),Sve=m2(``.slice),v3=function(e){return function(t,n){var r,i,a=W4(v2(t)),o=b4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=_3(a,o))<55296||r>56319||o+1===s||(i=_3(a,o+1))<56320||i>57343?e?xve(a,o):r:e?Sve(a,o,o+2):i-56320+(r-55296<<10)+65536}},y3={codeAt:v3(!1),charAt:v3(!0)},Cve=y3.charAt,wve=function(e,t,n){return t+(n?Cve(e,t).length:1)},Tve=$.Array,Eve=Math.max,b3=function(e,t,n){for(var r=C4(e),i=x4(t,r),a=x4(n===void 0?r:n,r),o=Tve(Eve(a-i,0)),s=0;i<a;i++,s++)B4(o,s,e[i]);return o.length=s,o},Dve=$.TypeError,x3=function(e,t){var n=e.exec;if(b2(n)){var r=s2(n,e,t);return r!==null&&Q2(r),r}if(h2(e)===`RegExp`)return s2(u3,e,t);throw Dve(`RegExp#exec called on incompatible receiver`)},S3=J4.UNSUPPORTED_Y,Ove=Math.min,C3=[].push,kve=m2(/./.exec),w3=m2(C3),T3=m2(``.slice);(function(e,t,n,r){var i=G2(e),a=!i2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!i2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[_ve]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=m2(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=W4(v2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!x2(r=e)||!((i=r[vve])===void 0?h2(r)==`RegExp`:i))return s2(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=s2(u3,p,a))&&!((c=p.lastIndex)>f&&(w3(u,T3(a,f,s.index)),s.length>1&&s.index<a.length&&m3(C3,u,b3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&kve(p,``)||w3(u,``):w3(u,T3(a,f)),u.length>o?b3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:s2(t,this,e,n)}:t,[function(t,n){var i=v2(this),a=t==null?void 0:F2(t,e);return a?s2(a,t,i,n):s2(r,W4(i),t,n)},function(e,i){var a=Q2(this),o=W4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=g3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(S3?`g`:`y`),d=new c(S3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return x3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=S3?0:m;var g,_=x3(d,S3?T3(o,m):o);if(_===null||(g=Ove(S4(d.lastIndex+(S3?m:0)),o.length))===p)m=wve(o,m,l);else{if(w3(h,T3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(w3(h,_[v]),h.length===f)return h;m=p=g}}return w3(h,T3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=m2(e),c=t.exec;return c===u3||c===h3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));y4(String.prototype,e,c[0]),y4(h3,i,c[1])}r&&t4(h3[i],`sham`,!0)})(`split`,0,!!i2((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),S3);var E3=function(){return E3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E3.apply(this,arguments)};function D3(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function O3(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function Ave(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var k3=G2(`unscopables`),A3=Array.prototype;A3[k3]??e4.f(A3,k3,{configurable:!0,value:r3(null)});var j3,M3,N3,P3=function(e){A3[k3][e]=!0},F3={},jve=!i2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),I3=l4(`IE_PROTO`),L3=$.Object,Mve=L3.prototype,R3=jve?L3.getPrototypeOf:function(e){var t=z2(e);if(B2(t,I3))return t[I3];var n=t.constructor;return b2(n)&&t instanceof n?n.prototype:t instanceof L3?Mve:null},z3=G2(`iterator`),B3=!1;[].keys&&(`next`in(N3=[].keys())?(M3=R3(R3(N3)))!==Object.prototype&&(j3=M3):B3=!0),(j3==null||i2((function(){var e={};return j3[z3].call(e)!==e})))&&(j3={}),b2(j3[z3])||y4(j3,z3,(function(){return this}));var V3={IteratorPrototype:j3,BUGGY_SAFARI_ITERATORS:B3},Nve=e4.f,H3=G2(`toStringTag`),U3=function(e,t,n){e&&!B2(e=n?e:e.prototype,H3)&&Nve(e,H3,{configurable:!0,value:t})},Pve=V3.IteratorPrototype,Fve=function(){return this},Ive=$.String,Lve=$.TypeError,W3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=m2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Q2(n),function(e){if(typeof e==`object`||b2(e))return e;throw Lve(`Can't set `+Ive(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Rve=v4.PROPER,zve=v4.CONFIGURABLE,G3=V3.IteratorPrototype,K3=V3.BUGGY_SAFARI_ITERATORS,q3=G2(`iterator`),Bve=function(){return this},J3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=r3(Pve,{next:u2(1,n)}),U3(e,i,!1),F3[i]=Fve})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!K3&&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)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[q3]||p[`@@iterator`]||i&&p[i],h=!K3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=R3(g.call(new e)))!==Object.prototype&&s.next&&(R3(s)!==G3&&(W3?W3(s,G3):b2(s[q3])||y4(s,q3,Bve)),U3(s,d,!0)),Rve&&i==`values`&&m&&m.name!==`values`&&(zve?t4(p,`name`,`values`):(f=!0,h=function(){return s2(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(K3||f||!(l in p))&&y4(p,l,c[l]);else A4({target:t,proto:!0,forced:K3||f},c);return p[q3]!==h&&y4(p,q3,h,{name:i}),F3[t]=h,c},Vve=h4.set,Hve=h4.getterFor(`Array Iterator`),Y3=J3(Array,`Array`,(function(e,t){Vve(this,{type:`Array Iterator`,target:y2(e),index:0,kind:t})}),(function(){var e=Hve(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);F3.Arguments=F3.Array,P3(`keys`),P3(`values`),P3(`entries`);var Uve=y3.charAt,Wve=h4.set,Gve=h4.getterFor(`String Iterator`);J3(String,`String`,(function(e){Wve(this,{type:`String Iterator`,string:W4(e),index:0})}),(function(){var e,t=Gve(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Uve(n,r),t.index+=e.length,{value:e,done:!1})}));var X3=function(e,t,n){for(var r in t)y4(e,r,t[r],n);return e},Z3=D4.f,Q3=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kve={f:function(e){return Q3&&h2(e)==`Window`?function(e){try{return Z3(e)}catch{return b3(Q3)}}(e):Z3(y2(e))}},$3=i2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),e6=Object.isExtensible,t6=i2((function(){e6(1)}))||$3?function(e){return!!x2(e)&&(!$3||h2(e)!=`ArrayBuffer`)&&(!e6||e6(e))}:e6,qve=!i2((function(){return Object.isExtensible(Object.preventExtensions({}))})),n6=e2((function(e){var t=e4.f,n=!1,r=V2(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=D4.f,t=m2([].splice),i={};i[r]=1,e(i).length&&(D4.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},A4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Kve.f}))},fastKey:function(e,t){if(!x2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!B2(e,r)){if(!t6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!B2(e,r)){if(!t6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return qve&&n&&t6(e)&&!B2(e,r)&&a(e),e}};u4[r]=!0})),r6=m2(m2.bind),i6=function(e,t){return P2(e),t===void 0?e:r6?r6(e,t):function(){return e.apply(t,arguments)}},Jve=G2(`iterator`),Yve=Array.prototype,Xve=G2(`iterator`),a6=function(e){if(e!=null)return F2(e,Xve)||F2(e,`@@iterator`)||F3[P4(e)]},Zve=$.TypeError,o6=function(e,t,n){var r,i;Q2(e);try{if(!(r=F2(e,`return`))){if(t===`throw`)throw n;return n}r=s2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Q2(r),n},Qve=$.TypeError,s6=function(e,t){this.stopped=e,this.result=t},c6=s6.prototype,l6=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=i6(t,d),g=function(e){return r&&o6(r,`normal`,e),new s6(!0,e)},_=function(e){return f?(Q2(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=a6(e)))throw Qve(N2(e)+` is not iterable`);if((u=i)!==void 0&&(F3.Array===u||Yve[Jve]===u)){for(a=0,o=C4(e);o>a;a++)if((s=_(e[a]))&&C2(c6,s))return s;return new s6(!1)}r=function(e,t){var n=arguments.length<2?a6(e):t;if(P2(n))return Q2(s2(n,e));throw Zve(N2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=s2(c,r)).done;){try{s=_(l.value)}catch(e){o6(r,`throw`,e)}if(typeof s==`object`&&s&&C2(c6,s))return s}return new s6(!1)},$ve=$.TypeError,u6=function(e,t){if(C2(t,e))return e;throw $ve(`Incorrect invocation`)},d6=G2(`iterator`),f6=!1;try{var eye=0,p6={next:function(){return{done:!!eye++}},return:function(){f6=!0}};p6[d6]=function(){return this},Array.from(p6,(function(){throw 2}))}catch{}var m6=function(e,t){if(!t&&!f6)return!1;var n=!1;try{var r={};r[d6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},tye=G2(`species`),h6=$.Array,nye=function(e,t){return new(function(e){var t;return j4(e)&&(t=e.constructor,(z4(t)&&(t===h6||j4(t.prototype))||x2(t)&&(t=t[tye])===null)&&(t=void 0)),t===void 0?h6:t}(e))(t===0?0:t)},g6=m2([].push),_6=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=z2(c),h=_2(m),g=i6(l,u),_=C4(h),v=0,y=d||nye,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:g6(b,f)}else switch(e){case 4:return!1;case 7:g6(b,f)}return a?-1:r||i?i:b}},v6={forEach:_6(0),map:_6(1),filter:_6(2),some:_6(3),every:_6(4),find:_6(5),findIndex:_6(6),filterReject:_6(7)},y6=n6.getWeakData,rye=h4.set,iye=h4.getterFor,aye=v6.find,oye=v6.findIndex,sye=m2([].splice),cye=0,b6=function(e){return e.frozen||=new x6},x6=function(){this.entries=[]},S6=function(e,t){return aye(e.entries,(function(e){return e[0]===t}))};x6.prototype={get:function(e){var t=S6(this,e);if(t)return t[1]},has:function(e){return!!S6(this,e)},set:function(e,t){var n=S6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=oye(this.entries,(function(t){return t[0]===e}));return~t&&sye(this.entries,t,1),!!~t}};var C6,w6={getConstructor:function(e,t,n,r){var i=e((function(e,i){u6(e,a),rye(e,{type:t,id:cye++,frozen:void 0}),i!=null&&l6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=iye(t),s=function(e,t,n){var r=o(e),i=y6(Q2(t),!0);return!0===i?b6(r).set(t,n):i[r.id]=n,e};return X3(a,{delete:function(e){var t=o(this);if(!x2(e))return!1;var n=y6(e);return!0===n?b6(t).delete(e):n&&B2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!x2(e))return!1;var n=y6(e);return!0===n?b6(t).has(e):n&&B2(n,t.id)}}),X3(a,n?{get:function(e){var t=o(this);if(x2(e)){var n=y6(e);return!0===n?b6(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},T6=h4.enforce,lye=!$.ActiveXObject&&`ActiveXObject`in $,E6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},uye=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=$[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=m2(s[e]);y4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!x2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!x2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!x2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(k4(e,!b2(o)||!(i||s.forEach&&!i2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),n6.enable();else if(k4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=i2((function(){d.has(1)})),m=m6((function(e){new o(e)})),h=!i&&i2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){u6(e,s);var n=function(e,t,n){var r,i;return W3&&b2(r=t.constructor)&&r!==n&&x2(i=r.prototype)&&i!==n.prototype&&W3(e,i),e}(new o,e,c);return t!=null&&l6(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,A4({global:!0,forced:c!=o},l),U3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,E6,w6);if(s4&&lye){C6=w6.getConstructor(E6,`WeakMap`,!0),n6.enable();var D6=uye.prototype,O6=m2(D6.delete),k6=m2(D6.has),A6=m2(D6.get),j6=m2(D6.set);X3(D6,{delete:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,O6(this,e)||t.frozen.delete(e)}return O6(this,e)},has:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,k6(this,e)||t.frozen.has(e)}return k6(this,e)},get:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,k6(this,e)?A6(this,e):t.frozen.get(e)}return A6(this,e)},set:function(e,t){if(x2(e)&&!t6(e)){var n=T6(this);n.frozen||=new C6,k6(this,e)?j6(this,e,t):n.frozen.set(e,t)}else j6(this,e,t);return this}})}var M6={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},N6=J2(`span`).classList,P6=N6&&N6.constructor&&N6.constructor.prototype,F6=P6===Object.prototype?void 0:P6,I6=G2(`iterator`),L6=G2(`toStringTag`),R6=Y3.values,z6=function(e,t){if(e){if(e[I6]!==R6)try{t4(e,I6,R6)}catch{e[I6]=R6}if(e[L6]||t4(e,L6,t),M6[t]){for(var n in Y3)if(e[n]!==Y3[n])try{t4(e,n,Y3[n])}catch{e[n]=Y3[n]}}}};for(var B6 in M6)z6($[B6]&&$[B6].prototype,B6);z6(F6,`DOMTokenList`);var V6=function(e,t){var n=[][e];return!!n&&i2((function(){n.call(null,t||function(){throw 1},1)}))},dye=v6.forEach,H6=V6(`forEach`)?[].forEach:function(e){return dye(this,e,arguments.length>1?arguments[1]:void 0)},U6=function(e){if(e&&e.forEach!==H6)try{t4(e,`forEach`,H6)}catch{e.forEach=H6}};for(var W6 in M6)M6[W6]&&U6($[W6]&&$[W6].prototype);U6(F6);var G6,K6,q6,J6,Y6=$.Promise,X6=G2(`species`),Z6=/(?:ipad|iphone|ipod).*applewebkit/i.test(w2),Q6=h2($.process)==`process`,$6=$.setImmediate,e8=$.clearImmediate,fye=$.process,t8=$.Dispatch,pye=$.Function,n8=$.MessageChannel,mye=$.String,r8=0,i8={};try{G6=$.location}catch{}var a8=function(e){if(B2(i8,e)){var t=i8[e];delete i8[e],t()}},o8=function(e){return function(){a8(e)}},s8=function(e){a8(e.data)},c8=function(e){$.postMessage(mye(e),G6.protocol+`//`+G6.host)};$6&&e8||($6=function(e){var t=V4(arguments,1);return i8[++r8]=function(){m3(b2(e)?e:pye(e),void 0,t)},K6(r8),r8},e8=function(e){delete i8[e]},Q6?K6=function(e){fye.nextTick(o8(e))}:t8&&t8.now?K6=function(e){t8.now(o8(e))}:n8&&!Z6?(J6=(q6=new n8).port2,q6.port1.onmessage=s8,K6=i6(J6.postMessage,J6)):$.addEventListener&&b2($.postMessage)&&!$.importScripts&&G6&&G6.protocol!==`file:`&&!i2(c8)?(K6=c8,$.addEventListener(`message`,s8,!1)):K6=`onreadystatechange`in J2(`script`)?function(e){Y4.appendChild(J2(`script`)).onreadystatechange=function(){Y4.removeChild(this),a8(e)}}:function(e){setTimeout(o8(e),0)});var l8,u8,d8,f8,p8,m8,h8,g8,_8={set:$6,clear:e8},hye=/ipad|iphone|ipod/i.test(w2)&&$.Pebble!==void 0,gye=/web0s(?!.*chrome)/i.test(w2),_ye=Z2.f,v8=_8.set,y8=$.MutationObserver||$.WebKitMutationObserver,b8=$.document,x8=$.process,S8=$.Promise,C8=_ye($,`queueMicrotask`),w8=C8&&C8.value;w8||(l8=function(){var e,t;for(Q6&&(e=x8.domain)&&e.exit();u8;){t=u8.fn,u8=u8.next;try{t()}catch(e){throw u8?f8():d8=void 0,e}}d8=void 0,e&&e.enter()},Z6||Q6||gye||!y8||!b8?!hye&&S8&&S8.resolve?((h8=S8.resolve(void 0)).constructor=S8,g8=i6(h8.then,h8),f8=function(){g8(l8)}):Q6?f8=function(){x8.nextTick(l8)}:(v8=i6(v8,$),f8=function(){v8(l8)}):(p8=!0,m8=b8.createTextNode(``),new y8(l8).observe(m8,{characterData:!0}),f8=function(){m8.data=p8=!p8}));var T8,E8,D8,O8,k8=w8||function(e){var t={fn:e,next:void 0};d8&&(d8.next=t),u8||(u8=t,f8()),d8=t},vye=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=P2(t),this.reject=P2(n)},A8={f:function(e){return new vye(e)}},j8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},yye=typeof window==`object`,M8=_8.set,bye=G2(`species`),N8=`Promise`,P8=h4.getterFor(N8),xye=h4.set,Sye=h4.getterFor(N8),F8=Y6&&Y6.prototype,I8=Y6,L8=F8,R8=$.TypeError,z8=$.document,B8=$.process,V8=A8.f,Cye=V8,wye=!!(z8&&z8.createEvent&&$.dispatchEvent),H8=b2($.PromiseRejectionEvent),U8=!1,W8=k4(N8,(function(){var e=a4(I8),t=e!==String(I8);if(!t&&k2===66)return!0;if(k2>=51&&/native code/.test(e))return!1;var n=new I8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[bye]=r,!(U8=n.then((function(){}))instanceof r)||!t&&yye&&!H8})),Tye=W8||!m6((function(e){I8.all(e).catch((function(){}))})),G8=function(e){var t;return!(!x2(e)||!b2(t=e.then))&&t},K8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;k8((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&Dye(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(R8(`Promise-chain cycle`)):(s=G8(o))?s2(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Eye(e)}))}},q8=function(e,t,n){var r,i;wye?((r=z8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!H8&&(i=$[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=$.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Eye=function(e){s2(M8,$,(function(){var t,n=e.facade,r=e.value;if(J8(e)&&(t=j8((function(){Q6?B8.emit(`unhandledRejection`,r,n):q8(`unhandledrejection`,n,r)})),e.rejection=Q6||J8(e)?2:1,t.error))throw t.value}))},J8=function(e){return e.rejection!==1&&!e.parent},Dye=function(e){s2(M8,$,(function(){var t=e.facade;Q6?B8.emit(`rejectionHandled`,t):q8(`rejectionhandled`,t,e.value)}))},Y8=function(e,t,n){return function(r){e(t,r,n)}},X8=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,K8(e,!0))},Z8=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw R8(`Promise can't be resolved itself`);var r=G8(t);r?k8((function(){var n={done:!1};try{s2(r,t,Y8(Z8,n,e),Y8(X8,n,e))}catch(t){X8(n,t,e)}})):(e.value=t,e.state=1,K8(e,!1))}catch(t){X8({done:!1},t,e)}}};if(W8&&(L8=(I8=function(e){u6(this,L8),P2(e),s2(T8,this);var t=P8(this);try{e(Y8(Z8,t),Y8(X8,t))}catch(e){X8(t,e)}}).prototype,(T8=function(e){xye(this,{type:N8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=X3(L8,{then:function(e,t){var n=Sye(this),r=n.reactions,i=V8(g3(this,I8));return i.ok=!b2(e)||e,i.fail=b2(t)&&t,i.domain=Q6?B8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&K8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),E8=function(){var e=new T8,t=P8(e);this.promise=e,this.resolve=Y8(Z8,t),this.reject=Y8(X8,t)},A8.f=V8=function(e){return e===I8||e===D8?new E8(e):Cye(e)},b2(Y6)&&F8!==Object.prototype)){O8=F8.then,U8||(y4(F8,`then`,(function(e,t){var n=this;return new I8((function(e,t){s2(O8,n,e,t)})).then(e,t)}),{unsafe:!0}),y4(F8,`catch`,L8.catch,{unsafe:!0}));try{delete F8.constructor}catch{}W3&&W3(F8,L8)}A4({global:!0,wrap:!0,forced:W8},{Promise:I8}),U3(I8,N8,!1),function(e){var t=S2(`Promise`),n=e4.f;a2&&t&&!t[X6]&&n(t,X6,{configurable:!0,get:function(){return this}})}(),D8=S2(N8),A4({target:N8,stat:!0,forced:W8},{reject:function(e){var t=V8(this);return s2(t.reject,void 0,e),t.promise}}),A4({target:N8,stat:!0,forced:W8},{resolve:function(e){return function(e,t){if(Q2(e),x2(t)&&t.constructor===e)return t;var n=A8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),A4({target:N8,stat:!0,forced:Tye},{all:function(e){var t=this,n=V8(t),r=n.resolve,i=n.reject,a=j8((function(){var n=P2(t.resolve),a=[],o=0,s=1;l6(e,(function(e){var c=o++,l=!1;s++,s2(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=V8(t),r=n.reject,i=j8((function(){var i=P2(t.resolve);l6(e,(function(e){s2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Oye=v4.PROPER,Q8=RegExp.prototype,$8=Q8.toString,kye=m2(G4),Aye=i2((function(){return $8.call({source:`a`,flags:`b`})!=`/a/b`})),jye=Oye&&$8.name!=`toString`;(Aye||jye)&&y4(RegExp.prototype,`toString`,(function(){var e=Q2(this),t=W4(e.source),n=e.flags;return`/`+t+`/`+W4(n===void 0&&C2(Q8,e)&&!(`flags`in Q8)?kye(e):n)}),{unsafe:!0});var Mye=v4.EXISTS,Nye=e4.f,e5=Function.prototype,Pye=m2(e5.toString),t5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Fye=m2(t5.exec);a2&&!Mye&&Nye(e5,`name`,{configurable:!0,get:function(){try{return Fye(t5,Pye(this))[1]}catch{return``}}});var n5=new WeakMap;function r5(e){return e.getMenuConfig(`uploadImage`)}function Iye(e,t){return D3(this,void 0,void 0,(function(){return O3(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var i=r.result;if(i){var a=i.toString(),o=a.indexOf(`data:image`)===0?``:a;yF(e,a,t.name,o),n(`ok`)}}}))]}))}))}function Lye(e,t){return D3(this,void 0,void 0,(function(){var n,r,i,a;return O3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=n5.get(e);if(t!=null)return t;var n=r5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=BO(E3(E3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return yF(e,t,n,r)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=n===void 0?``:n,i=t.alt,a=i===void 0?``:i,o=t.href;yF(e,r,a,o===void 0?``:o)}));else{var u=l.url,d=u===void 0?``:u,f=l.alt,p=f===void 0?``:f,m=l.href;yF(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),n5.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}function i5(e,t){var n,r;return D3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return O3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=r5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=Ave(i),p.label=2;case 2:return[4,c.next()];case 3:return(l=p.sent()).done?[3,10]:(u=l.value,d=u.size,s&&d<=s?[4,Iye(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return yF(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Lye(e,u)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return f=p.sent(),n={error:f},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=c.return)?[4,r.call(c)]:[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 Rye=m2([].join),zye=_2!=Object,Bye=V6(`join`,`,`);A4({target:`Array`,proto:!0,forced:zye||!Bye},{join:function(e){return Rye(y2(this),e===void 0?`,`:e)}}),wm&&(W.fn.append=wm),dm&&(W.fn.on=dm),Am&&(W.fn.remove=Am),um&&(W.fn.val=um),Nm&&(W.fn.click=Nm),gm&&(W.fn.hide=gm);var Vye=function(){function e(){this.title=Y(`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 bF(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadImage`)},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=r===void 0?[]:r,a=n.customBrowseAndUpload;if(a)a((function(t,n,r){return yF(e,t,n,r)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=W(`body`),c=W(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){var t=c[0].files;i5(e,t)}))}},e}(),Hye={menus:[{key:`uploadImage`,factory:function(){return new Vye},config:{server:``,fieldName:`wangeditor-uploaded-image`,maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:[`image/*`],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error(`'`+e.name+`' upload failed`,t)},onError:function(e,t,n){console.error(`'`+e.name+`' upload error`,n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(bF(n))t(r);else if(r.getData(`text/plain`))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some((function(e){return function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e.type.split(`/`),1)[0]===`image`}))?i5(e,i):t(r)}},n}};gk(`en`,{highLightModule:{selectLang:`Language`}}),gk(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var a5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function o5(e){var t={exports:{}};return e(t,t.exports),t.exports}var s5,c5,l5=function(e){return e&&e.Math==Math&&e},u5=l5(typeof globalThis==`object`&&globalThis)||l5(typeof window==`object`&&window)||l5(typeof self==`object`&&self)||l5(typeof a5==`object`&&a5)||function(){return this}()||Function(`return this`)(),Uye=Object.defineProperty,d5=function(e,t){try{Uye(u5,e,{value:t,configurable:!0,writable:!0})}catch{u5[e]=t}return t},f5=u5[`__core-js_shared__`]||d5(`__core-js_shared__`,{}),p5=o5((function(e){(e.exports=function(e,t){return f5[e]||(f5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),m5=Function.prototype,h5=m5.bind,g5=m5.call,Wye=h5&&h5.bind(g5),_5=h5?function(e){return e&&Wye(g5,e)}:function(e){return e&&function(){return g5.apply(e,arguments)}},Gye=u5.TypeError,v5=function(e){if(e==null)throw Gye(`Can't call method on `+e);return e},Kye=u5.Object,y5=function(e){return Kye(v5(e))},qye=_5({}.hasOwnProperty),b5=Object.hasOwn||function(e,t){return qye(y5(e),t)},Jye=0,Yye=Math.random(),Xye=_5(1 .toString),x5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Xye(++Jye+Yye,36)},S5=function(e){return typeof e==`function`},Zye=function(e){return S5(e)?e:void 0},C5=function(e,t){return arguments.length<2?Zye(u5[e]):u5[e]&&u5[e][t]},w5=C5(`navigator`,`userAgent`)||``,T5=u5.process,E5=u5.Deno,D5=T5&&T5.versions||E5&&E5.version,O5=D5&&D5.v8;O5&&(c5=(s5=O5.split(`.`))[0]>0&&s5[0]<4?1:+(s5[0]+s5[1])),!c5&&w5&&(!(s5=w5.match(/Edge\/(\d+)/))||s5[1]>=74)&&(s5=w5.match(/Chrome\/(\d+)/))&&(c5=+s5[1]);var k5=c5,A5=function(e){try{return!!e()}catch{return!0}},j5=!!Object.getOwnPropertySymbols&&!A5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&k5&&k5<41})),M5=j5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,N5=p5(`wks`),P5=u5.Symbol,F5=P5&&P5.for,Qye=M5?P5:P5&&P5.withoutSetter||x5,I5=function(e){if(!b5(N5,e)||!j5&&typeof N5[e]!=`string`){var t=`Symbol.`+e;j5&&b5(P5,e)?N5[e]=P5[e]:N5[e]=M5&&F5?F5(t):Qye(t)}return N5[e]},L5={};L5[I5(`toStringTag`)]=`z`;var R5=String(L5)===`[object z]`,z5=!A5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),B5=function(e){return typeof e==`object`?e!==null:S5(e)},V5=u5.document,$ye=B5(V5)&&B5(V5.createElement),H5=function(e){return $ye?V5.createElement(e):{}},U5=!z5&&!A5((function(){return Object.defineProperty(H5(`div`),`a`,{get:function(){return 7}}).a!=7})),ebe=u5.String,tbe=u5.TypeError,W5=function(e){if(B5(e))return e;throw tbe(ebe(e)+` is not an object`)},G5=Function.prototype.call,K5=G5.bind?G5.bind(G5):function(){return G5.apply(G5,arguments)},q5=_5({}.isPrototypeOf),nbe=u5.Object,J5=M5?function(e){return typeof e==`symbol`}:function(e){var t=C5(`Symbol`);return S5(t)&&q5(t.prototype,nbe(e))},rbe=u5.String,Y5=function(e){try{return rbe(e)}catch{return`Object`}},ibe=u5.TypeError,X5=function(e){if(S5(e))return e;throw ibe(Y5(e)+` is not a function`)},Z5=function(e,t){var n=e[t];return n==null?void 0:X5(n)},abe=u5.TypeError,obe=u5.TypeError,sbe=I5(`toPrimitive`),Q5=function(e){var t=function(e,t){if(!B5(e)||J5(e))return e;var n,r=Z5(e,sbe);if(r){if(t===void 0&&(t=`default`),n=K5(r,e,t),!B5(n)||J5(n))return n;throw obe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&S5(n=e.toString)&&!B5(r=K5(n,e))||S5(n=e.valueOf)&&!B5(r=K5(n,e))||t!==`string`&&S5(n=e.toString)&&!B5(r=K5(n,e)))return r;throw abe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return J5(t)?t:t+``},cbe=u5.TypeError,$5=Object.defineProperty,e7={f:z5?$5:function(e,t,n){if(W5(e),t=Q5(t),W5(n),U5)try{return $5(e,t,n)}catch{}if(`get`in n||`set`in n)throw cbe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},t7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},n7=z5?function(e,t,n){return e7.f(e,t,t7(1,n))}:function(e,t,n){return e[t]=n,e},lbe=_5(Function.toString);S5(f5.inspectSource)||(f5.inspectSource=function(e){return lbe(e)});var r7,i7,a7,o7=f5.inspectSource,s7=u5.WeakMap,ube=S5(s7)&&/native code/.test(o7(s7)),c7=p5(`keys`),l7=function(e){return c7[e]||(c7[e]=x5(e))},u7={},d7=u5.TypeError,dbe=u5.WeakMap;if(ube||f5.state){var f7=f5.state||=new dbe,fbe=_5(f7.get),p7=_5(f7.has),pbe=_5(f7.set);r7=function(e,t){if(p7(f7,e))throw new d7(`Object already initialized`);return t.facade=e,pbe(f7,e,t),t},i7=function(e){return fbe(f7,e)||{}},a7=function(e){return p7(f7,e)}}else{var m7=l7(`state`);u7[m7]=!0,r7=function(e,t){if(b5(e,m7))throw new d7(`Object already initialized`);return t.facade=e,n7(e,m7,t),t},i7=function(e){return b5(e,m7)?e[m7]:{}},a7=function(e){return b5(e,m7)}}var h7={set:r7,get:i7,has:a7,enforce:function(e){return a7(e)?i7(e):r7(e,{})},getterFor:function(e){return function(t){var n;if(!B5(t)||(n=i7(t)).type!==e)throw d7(`Incompatible receiver, `+e+` required`);return n}}},g7=Function.prototype,mbe=z5&&Object.getOwnPropertyDescriptor,_7=b5(g7,`name`),v7={EXISTS:_7,PROPER:_7&&function(){}.name===`something`,CONFIGURABLE:_7&&(!z5||z5&&mbe(g7,`name`).configurable)},y7=o5((function(e){var t=v7.CONFIGURABLE,n=h7.get,r=h7.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;S5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!b5(a,`name`)||t&&a.name!==d)&&n7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===u5?l?e[n]=a:d5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:n7(e,n,a))})(Function.prototype,`toString`,(function(){return S5(this)&&n(this).source||o7(this)}))})),hbe=_5({}.toString),gbe=_5(``.slice),b7=function(e){return gbe(hbe(e),8,-1)},_be=I5(`toStringTag`),vbe=u5.Object,ybe=b7(function(){return arguments}())==`Arguments`,x7=R5?b7:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=vbe(e),_be))==`string`?n:ybe?b7(t):(r=b7(t))==`Object`&&S5(t.callee)?`Arguments`:r},bbe=R5?{}.toString:function(){return`[object `+x7(this)+`]`};R5||y7(Object.prototype,`toString`,bbe,{unsafe:!0});var S7,C7={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},w7=H5(`span`).classList,T7=w7&&w7.constructor&&w7.constructor.prototype,xbe=T7===Object.prototype?void 0:T7,E7=_5(_5.bind),D7=u5.Object,Sbe=_5(``.split),O7=A5((function(){return!D7(`z`).propertyIsEnumerable(0)}))?function(e){return b7(e)==`String`?Sbe(e,``):D7(e)}:D7,Cbe=Math.ceil,wbe=Math.floor,k7=function(e){var t=+e;return t!=t||t===0?0:(t>0?wbe:Cbe)(t)},Tbe=Math.min,A7=function(e){return e>0?Tbe(k7(e),9007199254740991):0},j7=function(e){return A7(e.length)},M7=Array.isArray||function(e){return b7(e)==`Array`},N7=function(){},Ebe=[],P7=C5(`Reflect`,`construct`),F7=/^\s*(?:class|function)\b/,Dbe=_5(F7.exec),Obe=!F7.exec(N7),I7=function(e){if(!S5(e))return!1;try{return P7(N7,Ebe,e),!0}catch{return!1}},L7=!P7||A5((function(){var e;return I7(I7.call)||!I7(Object)||!I7((function(){e=!0}))||e}))?function(e){if(!S5(e))return!1;switch(x7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Obe||!!Dbe(F7,o7(e))}:I7,R7=I5(`species`),z7=u5.Array,kbe=function(e,t){return new(function(e){var t;return M7(e)&&(t=e.constructor,(L7(t)&&(t===z7||M7(t.prototype))||B5(t)&&(t=t[R7])===null)&&(t=void 0)),t===void 0?z7:t}(e))(t===0?0:t)},B7=_5([].push),V7=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=y5(c),h=O7(m),g=function(e,t){return X5(e),t===void 0?e:E7?E7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=j7(h),v=0,y=d||kbe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:B7(b,f)}else switch(e){case 4:return!1;case 7:B7(b,f)}return a?-1:r||i?i:b}},Abe=[V7(0),V7(1),V7(2),V7(3),V7(4),V7(5),V7(6),V7(7)][0],H7=(S7=[].forEach)&&A5((function(){S7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Abe(this,e,arguments.length>1?arguments[1]:void 0)},U7=function(e){if(e&&e.forEach!==H7)try{n7(e,`forEach`,H7)}catch{e.forEach=H7}};for(var W7 in C7)C7[W7]&&U7(u5[W7]&&u5[W7].prototype);U7(xbe);var G7={}.propertyIsEnumerable,K7=Object.getOwnPropertyDescriptor,q7={f:K7&&!G7.call({1:2},1)?function(e){var t=K7(this,e);return!!t&&t.enumerable}:G7},J7=function(e){return O7(v5(e))},Y7=Object.getOwnPropertyDescriptor,X7={f:z5?Y7:function(e,t){if(e=J7(e),t=Q5(t),U5)try{return Y7(e,t)}catch{}if(b5(e,t))return t7(!K5(q7.f,e,t),e[t])}},jbe=Math.max,Mbe=Math.min,Z7=function(e,t){var n=k7(e);return n<0?jbe(n+t,0):Mbe(n,t)},Nbe=function(e){return function(t,n,r){var i,a=J7(t),o=j7(a),s=Z7(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),Q7=_5([].push),$7=function(e,t){var n,r=J7(e),i=0,a=[];for(n in r)!b5(u7,n)&&b5(r,n)&&Q7(a,n);for(;t.length>i;)b5(r,n=t[i++])&&(~Nbe(a,n)||Q7(a,n));return a},e9=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Pbe=e9.concat(`length`,`prototype`),Fbe={f:Object.getOwnPropertyNames||function(e){return $7(e,Pbe)}},t9={f:Object.getOwnPropertySymbols},Ibe=_5([].concat),Lbe=C5(`Reflect`,`ownKeys`)||function(e){var t=Fbe.f(W5(e)),n=t9.f;return n?Ibe(t,n(e)):t},Rbe=function(e,t){for(var n=Lbe(t),r=e7.f,i=X7.f,a=0;a<n.length;a++){var o=n[a];b5(e,o)||r(e,o,i(t,o))}},zbe=/#|\.prototype\./,n9=function(e,t){var n=Vbe[Bbe(e)];return n==Ube||n!=Hbe&&(S5(t)?A5(t):!!t)},Bbe=n9.normalize=function(e){return String(e).replace(zbe,`.`).toLowerCase()},Vbe=n9.data={},Hbe=n9.NATIVE=`N`,Ube=n9.POLYFILL=`P`,Wbe=n9,Gbe=X7.f,r9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?u5:l?u5[s]||d5(s,{}):(u5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Gbe(n,r))&&o.value:n[r],!Wbe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Rbe(a,i)}(e.sham||i&&i.sham)&&n7(a,`sham`,!0),y7(n,r,a,e)}},i9=Object.keys||function(e){return $7(e,e9)},a9=Object.assign,o9=Object.defineProperty,Kbe=_5([].concat),s9=!a9||A5((function(){if(z5&&a9({b:1},a9(o9({},`a`,{enumerable:!0,get:function(){o9(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),a9({},e)[n]!=7||i9(a9({},t)).join(``)!=r}))?function(e,t){for(var n=y5(e),r=arguments.length,i=1,a=t9.f,o=q7.f;r>i;)for(var s,c=O7(arguments[i++]),l=a?Kbe(i9(c),a(c)):i9(c),u=l.length,d=0;u>d;)s=l[d++],z5&&!K5(o,c,s)||(n[s]=c[s]);return n}:a9;r9({target:`Object`,stat:!0,forced:Object.assign!==s9},{assign:s9});var c9=o5((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/</g,`<`).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,a;switch(n||={},i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach((function(t,i){r[i]=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(typeof document>`u`)return null;if(`currentScript`in document)return document.currentScript;try{throw 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 i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var a=(r||=i.languages)[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,(function(t,n){n===l&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l!==`Object`||a[o(c)]?l!==`Array`||a[o(c)]||(a[o(c)]=!0,e(c,n,s,a)):(a[o(c)]=!0,e(c,n,null,a))}}},plugins:{},highlightAll:function(e,t){i.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`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===t,r.callback)},highlightElement:function(n,r,a){var o=i.util.getLanguage(n),s=i.languages[o];n.className=n.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o;var c=n.parentElement;c&&c.nodeName.toLowerCase()===`pre`&&(c.className=c.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o);var l={element:n,language:o,grammar:s,code:n.textContent};function u(e){l.highlightedCode=e,i.hooks.run(`before-insert`,l),l.element.innerHTML=l.highlightedCode,i.hooks.run(`after-highlight`,l),i.hooks.run(`complete`,l),a&&a.call(l.element)}if(i.hooks.run(`before-sanity-check`,l),(c=l.element.parentElement)&&c.nodeName.toLowerCase()===`pre`&&!c.hasAttribute(`tabindex`)&&c.setAttribute(`tabindex`,`0`),!l.code)return i.hooks.run(`complete`,l),void(a&&a.call(l.element));if(i.hooks.run(`before-highlight`,l),l.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){u(e.data)},d.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(i.highlight(l.code,l.grammar,l.language));else u(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run(`before-tokenize`,r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.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 i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||``).length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T,E=1;if(v){if(!(T=o(x,C,e,_)))break;var D=T.index,O=T.index+T[0].length,k=C;for(k+=S.value.length;D>=k;)k+=(S=S.next).value.length;if(C=k-=S.value.length,S.value instanceof a)continue;for(var ee=S;ee!==t.tail&&(k<O||typeof ee.value==`string`);ee=ee.next)E++,k+=ee.value.length;E--,w=e.slice(C,k),T.index-=C}else if(!(T=o(x,0,w,_)))continue;D=T.index;var te=T[0],A=w.slice(0,D),ne=w.slice(D+te.length),j=C+w.length;d&&j>d.reach&&(d.reach=j);var M=S.prev;if(A&&(M=l(t,M,A),C+=A.length),u(t,M,E),S=l(t,M,new a(f,g?i.tokenize(te,g):te,y,te)),ne&&l(t,S,ne),E>1){var N={cause:f+`,`+m,reach:j};s(e,t,n,S.prev,C,N),d&&N.reach>d.reach&&(d.reach=N.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach((function(t){r+=e(t,n)})),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,(function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()}),!1)),i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute(`data-manual`)&&(i.manual=!0)),!i.manual){var p=document.readyState;p===`loading`||p===`interactive`&&d&&d.defer?document.addEventListener(`DOMContentLoaded`,f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});e.exports&&=t,a5!==void 0&&(a5.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){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))})),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 i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(t.languages.markup.tag,`addAttribute`,{value:function(e,n){t.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`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])*)\\)`,`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)`,`javascript`)),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<`u`){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},n=`data-src-status`,r=`pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])`,i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add(`before-highlightall`,(function(e){e.selector+=`, `+r})),t.hooks.add(`before-sanity-check`,(function(i){var a=i.element;if(a.matches(r)){i.code=``,a.setAttribute(n,`loading`);var s=a.appendChild(document.createElement(`CODE`));s.textContent=`Loading…`;var c=a.getAttribute(`data-src`),l=i.language;if(l===`none`){var u=(/\.(\w+)$/.exec(c)||[,`none`])[1];l=e[u]||u}o(s,l),o(a,l);var d=t.plugins.autoloader;d&&d.loadLanguages(l);var f=new XMLHttpRequest;f.open(`GET`,c,!0),f.onreadystatechange=function(){f.readyState==4&&(f.status<400&&f.responseText?(a.setAttribute(n,`loaded`),s.textContent=f.responseText,t.highlightElement(s)):(a.setAttribute(n,`failed`),f.status>=400?s.textContent=`✖ Error `+f.status+` while fetching file: `+f.statusText:s.textContent=`✖ Error: File does not exist or is empty`))},f.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,i=(e||document).querySelectorAll(r),a=0;n=i[a++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function o(e,t){var n=e.className;n=n.replace(i,` `)+` language-`+t,e.className=n.replace(/\s+/g,` `).trim()}}()}));(function(e){var t=e.util.clone(e.languages.javascript),n=`(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)`,r=`(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})`,i=`(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})`;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend(`markup`,t),e.languages.jsx.tag.pattern=a(`<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:"(?:\\\\[\\s\\S]|[^\\\\"])*"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>`),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:a(`<SPREAD>`),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore(`inside`,`special-attr`,{script:{pattern:a(`=<BRACES>`),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:`punctuation`},rest:e.languages.jsx},alias:`language-javascript`}},e.languages.jsx.tag);var o=function(e){return e?typeof e==`string`?e:typeof e.content==`string`?e.content:e.content.map(o).join(``):``},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;if(typeof i!=`string`&&(i.type===`tag`&&i.content[0]&&i.content[0].type===`tag`?i.content[0].content[0].content===`</`?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():i.content[i.content.length-1].content===`/>`||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&i.type===`punctuation`&&i.content===`{`?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&i.type===`punctuation`&&i.content===`}`?n[n.length-1].openedBraces--:a=!0),(a||typeof i==`string`)&&n.length>0&&n[n.length-1].openedBraces===0){var c=o(i);r<t.length-1&&(typeof t[r+1]==`string`||t[r+1].type===`plain-text`)&&(c+=o(t[r+1]),t.splice(r+1,1)),r>0&&(typeof t[r-1]==`string`||t[r-1].type===`plain-text`)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token(`plain-text`,c,null,c)}i.content&&typeof i.content!=`string`&&s(i.content)}};e.hooks.add(`after-tokenize`,(function(e){e.language!==`jsx`&&e.language!==`tsx`||s(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){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))})),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go[`class-name`],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{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:o}},{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:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},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://,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*)*`,r={pattern:RegExp(n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),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*[;,=()])`),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*)*\\.?`.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`.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+`.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+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.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 i=`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,a=`class enum interface record struct`,o=`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*{)`,s=`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 c(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var l=c(a),u=RegExp(c(i+` `+a+` `+o+` `+s)),d=c(a+` `+o+` `+s),f=c(i+` `+a+` `+s),p=r(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),m=r(`\\((?:[^()]|<<self>>)*\\)`,2),h=`@?\\b[A-Za-z_]\\w*\\b`,g=t(`<<0>>(?:\\s*<<1>>)?`,[h,p]),_=t(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[d,g]),v=`\\[\\s*(?:,\\s*)*\\]`,y=t(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[_,v]),b=t(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[t(`\\(<<0>>+(?:,<<0>>+)+\\)`,[t(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[p,m,v])]),_,v]),x={keyword:u,punctuation:/[<>()?,.:[\]]/},S=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,C=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,w=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:n(`(^|[^$\\\\])<<0>>`,[w]),lookbehind:!0,greedy:!0},{pattern:n(`(^|[^@$\\\\])<<0>>`,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:`character`}],"class-name":[{pattern:n(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[h,b]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+)<<0>>(?=\\s*=)`,[h]),lookbehind:!0},{pattern:n(`(\\b<<0>>\\s+)<<1>>`,[l,g]),lookbehind:!0,inside:x},{pattern:n(`(\\bcatch\\s*\\(\\s*)<<0>>`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\bwhere\\s+)<<0>>`,[h]),lookbehind:!0},{pattern:n(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[y]),lookbehind:!0,inside:x},{pattern:n(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[b,f,h]),inside:x}],keyword:u,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*:)`,[h]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:n(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(`(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[m]),lookbehind:!0,alias:`class-name`,inside:x},"return-type":{pattern:n(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[b,_]),inside:x,alias:`class-name`},"constructor-invocation":{pattern:n(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[b]),lookbehind:!0,inside:x,alias:`class-name`},"generic-method":{pattern:n(`<<0>>\\s*<<1>>(?=\\s*\\()`,[h,p]),inside:{function:n(`^<<0>>`,[h]),generic:{pattern:RegExp(p),alias:`class-name`,inside:x}}},"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|[{;]|=>|$))`,[l,g,h,b,u.source,m,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:n(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(b),greedy:!0,inside:x},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 T=C+`|`+S,E=t(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[T]),D=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),O=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,k=t(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[_,D]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:n(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[O,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(`^<<0>>(?=\\s*:)`,[O]),alias:`keyword`},"attribute-arguments":{pattern:n(`\\(<<0>>*\\)`,[D]),inside:e.languages.csharp},"class-name":{pattern:RegExp(_),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ee=`:[^}\\r\\n]+`,te=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),A=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[te,ee]),ne=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),j=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[ne,ee]);function M(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,ee]),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>>|[^\\\\{"])*"`,[A]),lookbehind:!0,greedy:!0,inside:M(A,te)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[j]),lookbehind:!0,greedy:!0,inside:M(j,ne)}]})}(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(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)`,`\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S])*>`].join(`|`)+`)[egimnosux]{0,6}`),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]?(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)`,`\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S])*>`].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(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,(function(){return r})),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),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>)+\\])`),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){e.language!==`markdown`&&e.language!==`md`||function e(t){if(t&&typeof t!=`string`)for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i.type===`code`){var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`),c=`language-`+(s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase());o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}else e(i.content)}}(e.tokens)})),e.hooks.add(`wrap`,(function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],l=/language-(.+)/.exec(a);if(l){n=l[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){return e.replace(o,``).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return(t=t.toLowerCase())[0]===`#`?(n=t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e}))}(t.content),u,n);else if(n&&n!==`none`&&e.plugins.autoloader){var d=`md-`+new Date().valueOf()+`-`+Math.floor(0x2386f26fc10000*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var o=RegExp(e.languages.markup.tag.pattern.source,`gi`),s={amp:`&`,lt:`<`,gt:`>`,quot:`"`},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend(`clike`,{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore(`groovy`,`string`,{shebang:{pattern:/#!.+/,alias:`comment`}}),Prism.languages.insertBefore(`groovy`,`punctuation`,{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore(`groovy`,`function`,{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:`punctuation`}}),Prism.hooks.add(`wrap`,(function(e){if(e.language===`groovy`&&e.type===`string`){var t=e.content[0];if(t!=`'`){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t===`$`&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,`<`).replace(/&/g,`&`),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t===`/`?`regex`:`gstring`)}}}));var qbe=`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`.split(`.`);function l9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+l9(t)}),0)}var u9,Jbe=u5.String,d9=function(e){if(x7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Jbe(e)},f9=function(){var e=W5(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},p9=u5.RegExp,m9=A5((function(){var e=p9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Ybe=m9||A5((function(){return!p9(`a`,`y`).sticky})),h9={BROKEN_CARET:m9||A5((function(){var e=p9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Ybe,UNSUPPORTED_Y:m9},Xbe=z5?Object.defineProperties:function(e,t){W5(e);for(var n,r=J7(t),i=i9(t),a=i.length,o=0;a>o;)e7.f(e,n=i[o++],r[n]);return e},Zbe=C5(`document`,`documentElement`),g9=l7(`IE_PROTO`),_9=function(){},v9=function(e){return`<script>`+e+`<\/script>`},y9=function(e){e.write(v9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},b9=function(){try{u9=new ActiveXObject(`htmlfile`)}catch{}var e,t;b9=typeof document<`u`?document.domain&&u9?y9(u9):((t=H5(`iframe`)).style.display=`none`,Zbe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(v9(`document.F=Object`)),e.close(),e.F):y9(u9);for(var n=e9.length;n--;)delete b9.prototype[e9[n]];return b9()};u7[g9]=!0;var x9,S9,Qbe=Object.create||function(e,t){var n;return e===null?n=b9():(_9.prototype=W5(e),n=new _9,_9.prototype=null,n[g9]=e),t===void 0?n:Xbe(n,t)},$be=u5.RegExp,exe=A5((function(){var e=$be(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
78
|
+
`)&&e.flags===`s`)})),txe=u5.RegExp,nxe=A5((function(){var e=txe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),rxe=h7.get,ixe=p5(`native-string-replace`,String.prototype.replace),C9=RegExp.prototype.exec,w9=C9,axe=_5(``.charAt),oxe=_5(``.indexOf),sxe=_5(``.replace),T9=_5(``.slice),E9=(S9=/b*/g,K5(C9,x9=/a/,`a`),K5(C9,S9,`a`),x9.lastIndex!==0||S9.lastIndex!==0),D9=h9.BROKEN_CARET,O9=/()??/.exec(``)[1]!==void 0;(E9||O9||D9||exe||nxe)&&(w9=function(e){var t,n,r,i,a,o,s,c=this,l=rxe(c),u=d9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=K5(w9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=D9&&c.sticky,m=K5(f9,c),h=c.source,g=0,_=u;if(p&&(m=sxe(m,`y`,``),oxe(m,`g`)===-1&&(m+=`g`),_=T9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&axe(u,c.lastIndex-1)!==`
|
|
79
|
+
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),O9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),E9&&(r=c.lastIndex),i=K5(C9,p?n:c,_),p?i?(i.input=T9(i.input,g),i[0]=T9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:E9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),O9&&i&&i.length>1&&K5(ixe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=Qbe(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var k9=w9;r9({target:`RegExp`,proto:!0,forced:/./.exec!==k9},{exec:k9});var A9=Function.prototype,j9=A9.apply,cxe=A9.bind,M9=A9.call,lxe=typeof Reflect==`object`&&Reflect.apply||(cxe?M9.bind(j9):function(){return M9.apply(j9,arguments)}),uxe=I5(`species`),N9=RegExp.prototype,dxe=I5(`match`),fxe=u5.TypeError,pxe=I5(`species`),mxe=_5(``.charAt),P9=_5(``.charCodeAt),hxe=_5(``.slice),gxe=function(e){return function(t,n){var r,i,a=d9(v5(t)),o=k7(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=P9(a,o))<55296||r>56319||o+1===s||(i=P9(a,o+1))<56320||i>57343?e?mxe(a,o):r:e?hxe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),_xe=function(e,t,n){return t+(n?gxe(e,t).length:1)},vxe=u5.Array,yxe=Math.max,F9=function(e,t,n){for(var r,i,a,o,s=j7(e),c=Z7(t,s),l=Z7(n===void 0?s:n,s),u=vxe(yxe(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=Q5(i))in r?e7.f(r,o,t7(0,a)):r[o]=a;return u.length=d,u},bxe=u5.TypeError,I9=function(e,t){var n=e.exec;if(S5(n)){var r=K5(n,e,t);return r!==null&&W5(r),r}if(b7(e)===`RegExp`)return K5(k9,e,t);throw bxe(`RegExp#exec called on incompatible receiver`)},L9=h9.UNSUPPORTED_Y,xxe=Math.min,R9=[].push,Sxe=_5(/./.exec),z9=_5(R9),B9=_5(``.slice);(function(e,t,n,r){var i=I5(e),a=!A5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!A5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[uxe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=_5(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=d9(v5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!B5(r=e)||!((i=r[dxe])===void 0?b7(r)==`RegExp`:i))return K5(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=K5(k9,p,a))&&!((c=p.lastIndex)>f&&(z9(u,B9(a,f,s.index)),s.length>1&&s.index<a.length&&lxe(R9,u,F9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&Sxe(p,``)||z9(u,``):z9(u,B9(a,f)),u.length>o?F9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:K5(t,this,e,n)}:t,[function(t,n){var i=v5(this),a=t==null?void 0:Z5(t,e);return a?K5(a,t,i,n):K5(r,d9(i),t,n)},function(e,i){var a=W5(this),o=d9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=W5(e).constructor;return r===void 0||(n=W5(r)[pxe])==null?t:function(e){if(L7(e))return e;throw fxe(Y5(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(L9?`g`:`y`),d=new c(L9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return I9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=L9?0:m;var g,_=I9(d,L9?B9(o,m):o);if(_===null||(g=xxe(A7(d.lastIndex+(L9?m:0)),o.length))===p)m=_xe(o,m,l);else{if(z9(h,B9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(z9(h,_[v]),h.length===f)return h;m=p=g}}return z9(h,B9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=_5(e),c=t.exec;return c===k9||c===N9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));y7(String.prototype,e,c[0]),y7(N9,i,c[1])}r&&n7(N9[i],`sham`,!0)})(`split`,0,!!A5((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),L9),r9({global:!0},{globalThis:u5}),sm&&(W.fn.attr=sm);var Cxe=v7.PROPER,V9=RegExp.prototype,H9=V9.toString,wxe=_5(f9),Txe=A5((function(){return H9.call({source:`a`,flags:`b`})!=`/a/b`})),Exe=Cxe&&H9.name!=`toString`;(Txe||Exe)&&y7(RegExp.prototype,`toString`,(function(){var e=W5(this),t=d9(e.source),n=e.flags;return`/`+t+`/`+d9(n===void 0&&q5(V9,e)&&!(`flags`in V9)?wxe(e):n)}),{unsafe:!0});var Dxe=function(){function e(){this.title=Y(`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=n===void 0?[]: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 i=this.getValue(e);return t.forEach((function(e){e.value===i?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(t==null||!L.isElement(t))return``;var n=t.language.toString(),r=e.getMenuConfig(`codeSelectLang`).codeLangs;return(r===void 0?[]:r).some((function(e){return e.value===n}))?n:``},e.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(this.getSelectCodeElem(e)!=null){var n={language:t.toString()};U.setNodes(e,n,{match:function(e){return J.checkNodeType(e,`code`)}})}},e.prototype.getSelectCodeElem=function(e){var t=J.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=J.getParentNode(e,t);return L.isElement(n)&&n.type===`pre`?t:null},e}(),Oxe={renderStyle:function(e,t){var n=e,r=t,i=``;return qbe.forEach((function(e){n[e]&&(i=e)})),i&&function(e,t){e.data??={};var n=e.data;n.props??={},Object.assign(n.props,{className:t})}(r,i=`token `+i),r},parseStyleHtml:function(e,t,n){var r=W(e);if(!L.isElement(t)||J.getNodeType(t)!==`code`)return t;var i=t,a=r.attr(`class`)||``;return a.indexOf(`language-`)===0?i.language=a.split(`-`)[1]||``:i.language=a.toLowerCase(),i},menus:[{key:`codeSelectLang`,factory:function(){return new Dxe},config:{codeLangs:[{text:`CSS`,value:`css`},{text:`HTML`,value:`html`},{text:`XML`,value:`xml`},{text:`Javascript`,value:`javascript`},{text:`Typescript`,value:`typescript`},{text:`JSX`,value:`jsx`},{text:`Go`,value:`go`},{text:`PHP`,value:`php`},{text:`C`,value:`c`},{text:`Python`,value:`python`},{text:`Java`,value:`java`},{text:`C++`,value:`cpp`},{text:`C#`,value:`csharp`},{text:`Visual Basic`,value:`visual-basic`},{text:`SQL`,value:`sql`},{text:`Ruby`,value:`ruby`},{text:`Swift`,value:`swift`},{text:`Bash`,value:`bash`},{text:`Lua`,value:`lua`},{text:`Groovy`,value:`groovy`},{text:`Markdown`,value:`markdown`}]}}],elemsToHtml:[{type:`code`,elemToHtml:function(e,t){var n=e.language,r=n===void 0?``:n;return`<code `+(r?`class="language-`+r+`"`:``)+`>`+t+`</code>`}}]},kxe=/"/g,Axe=_5(``.replace);r9({target:`String`,proto:!0,forced:A5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=d9(v5(this)),r=`<a`,(r+=` name="`+Axe(d9(t),kxe,`"`)+`"`)+`>`+n+`</a>`;var t,n,r}});var U9=function(e){var t,n,r,i=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e,2),a=i[0],o=i[1],s=[],c=function(e){if(!H.isText(e))return null;var t=J.getParentNode(null,e);if(t&&J.getNodeType(t)===`code`){var n=J.getParentNode(null,t);if(n&&J.getNodeType(n)===`pre`)return t}return null}(a);if(c==null)return s;var l=c.language,u=l===void 0?``:l;if(!u)return s;var d=function(e,t){if(!t)return[];var n=c9.languages[t];return n?c9.tokenize(e.text,n):[]}(a,u),f=0;try{for(var p=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(d),m=p.next();!m.done;m=p.next()){var h=m.value,g=f+l9(h);typeof h!=`string`&&s.push(((r={})[h.type]=!0,r.anchor={path:o,offset:f},r.focus={path:o,offset:g},r)),f=g}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},W9=function(){return W9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W9.apply(this,arguments)},G9=function(){function e(){throw Error(`不能实例化
|
|
80
|
+
Can not construct a instance`)}return e.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=W9(W9({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=W9(W9({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=W9(W9({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=W9(W9({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){(function(e,t){var n=e.key,r=e.factory,i=e.config,a=xC(xC({},i),t||{});if(Xw[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);Xw[n]=r,function(e,t){t!=null&&(Yw[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type;QD[t||``]=e.renderElem})(e)},e.registerRenderStyle=function(e){(function(e){ZD.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type;nT[t||``]=e.elemToHtml})(e)},e.registerStyleToHtml=function(e){(function(e){tT.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){IE.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;RE[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){LE.push(e)})(e)},e.registerModule=function(e){K9(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function K9(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,a=e.styleToHtml,o=e.preParseHtml,s=e.parseElemsHtml,c=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return G9.registerMenu(e)})),n&&n.forEach((function(e){return G9.registerRenderElem(e)})),r&&G9.registerRenderStyle(r),i&&i.forEach((function(e){return G9.registerElemToHtml(e)})),a&&G9.registerStyleToHtml(a),o&&o.forEach((function(e){return G9.registerPreParseHtml(e)})),s&&s.forEach((function(e){return G9.registerParseElemHtml(e)})),c&&G9.registerParseStyleHtml(c),l&&G9.registerPlugin(l)}az.forEach((function(e){return K9(e)})),K9(SG),K9(Gpe),K9($ge),K9(Hye),K9(Oxe);var q9=`<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>`,J9={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`]}},jxe={hoverbarKeys:W9(W9({},J9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};G9.setEditorConfig(W9(W9({},jxe),{decorate:U9}));var Mxe={hoverbarKeys:J9};G9.setSimpleEditorConfig(W9(W9({},Mxe),{decorate:U9}));var Nxe={toolbarKeys:[`headerSelect`,`blockquote`,`|`,`bold`,`underline`,`italic`,{key:`group-more-style`,title:Y(`editor.more`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>`,menuKeys:[`through`,`code`,`sup`,`sub`,`clearStyle`]},`color`,`bgColor`,`|`,`fontSize`,`fontFamily`,`lineHeight`,`|`,`bulletedList`,`numberedList`,`todo`,{key:`group-justify`,title:Y(`editor.justify`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,menuKeys:[`justifyLeft`,`justifyRight`,`justifyCenter`,`justifyJustify`]},{key:`group-indent`,title:Y(`editor.indent`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,menuKeys:[`indent`,`delIndent`]},`|`,`emotion`,`insertLink`,{key:`group-image`,title:Y(`editor.image`),iconSvg:q9,menuKeys:[`insertImage`,`uploadImage`]},{key:`group-video`,title:Y(`editor.video`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,menuKeys:[`insertVideo`,`uploadVideo`]},`insertTable`,`codeBlock`,`divider`,`|`,`undo`,`redo`,`|`,`fullScreen`]};G9.setToolbarConfig(Nxe);var Pxe={toolbarKeys:[`blockquote`,`header1`,`header2`,`header3`,`|`,`bold`,`underline`,`italic`,`through`,`color`,`bgColor`,`clearStyle`,`|`,`bulletedList`,`numberedList`,`todo`,`justifyLeft`,`justifyRight`,`justifyCenter`,`|`,`insertLink`,{key:`group-image`,title:Y(`editor.image`),iconSvg:q9,menuKeys:[`insertImage`,`uploadImage`]},`insertVideo`,`insertTable`,`codeBlock`,`|`,`undo`,`redo`,`|`,`fullScreen`]};function Fxe(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?``:t,r=e.content,i=r===void 0?[]:r,a=e.html,o=e.config,s=o===void 0?{}:o,c=e.mode,l=(c===void 0?`default`:c)===`simple`?G9.simpleEditorConfig:G9.editorConfig,u=W9(W9({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return Qce({selector:n,config:W9(W9(W9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:G9.plugins})}function Ixe(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,a=e.mode,o=a===void 0?`default`:a;if(!t)throw Error(`Cannot find 'selector' when create toolbar`);var s=o===`simple`?G9.simpleToolbarConfig:G9.toolbarConfig;return function(e,t){if(e==null)throw Error(`Cannot create toolbar, because editor is null`);var n=t.selector,r=t.config,i=r===void 0?{}:r;if(function(e,t){return tD(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new rle(n,xC({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return sw.set(a,e),cw.set(e,a),a}(n,{selector:t,config:W9(W9({},s),i)})}G9.setSimpleToolbarConfig(Pxe);var Lxe=Object.defineProperty,Rxe=Object.defineProperties,zxe=Object.getOwnPropertyDescriptors,Y9=Object.getOwnPropertySymbols,Bxe=Object.prototype.hasOwnProperty,Vxe=Object.prototype.propertyIsEnumerable,X9=(e,t,n)=>t in e?Lxe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hxe=(e,t)=>{for(var n in t||={})Bxe.call(t,n)&&X9(e,n,t[n]);if(Y9)for(var n of Y9(t))Vxe.call(t,n)&&X9(e,n,t[n]);return e},Uxe=(e,t)=>Rxe(e,zxe(t));function Z9(e){let t=`\u8BF7\u4F7F\u7528 '@${e}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return t+=`
|
|
81
|
+
Please use '@${e}' event instead of props`,t}var Q9=(e,t)=>{for(let[n,r]of t)e[n]=r;return e},Wxe=(0,e.defineComponent)({props:{mode:{type:String,default:`default`},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:``},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:``}},setup(t,n){let r=(0,e.ref)(null),i=(0,e.shallowRef)(null),a=(0,e.ref)(``),o=()=>{if(!r.value)return;let o=(0,e.toRaw)(t.defaultContent);Fxe({selector:r.value,mode:t.mode,content:o||[],html:t.defaultHtml||t.modelValue||``,config:Uxe(Hxe({},t.defaultConfig),{onCreated(e){if(i.value=e,n.emit(`onCreated`,e),t.defaultConfig.onCreated){let e=Z9(`onCreated`);throw Error(e)}},onChange(e){let r=e.getHtml();if(a.value=r,n.emit(`update:modelValue`,r),n.emit(`onChange`,e),t.defaultConfig.onChange){let e=Z9(`onChange`);throw Error(e)}},onDestroyed(e){if(n.emit(`onDestroyed`,e),t.defaultConfig.onDestroyed){let e=Z9(`onDestroyed`);throw Error(e)}},onMaxLength(e){if(n.emit(`onMaxLength`,e),t.defaultConfig.onMaxLength){let e=Z9(`onMaxLength`);throw Error(e)}},onFocus(e){if(n.emit(`onFocus`,e),t.defaultConfig.onFocus){let e=Z9(`onFocus`);throw Error(e)}},onBlur(e){if(n.emit(`onBlur`,e),t.defaultConfig.onBlur){let e=Z9(`onBlur`);throw Error(e)}},customAlert(e,r){if(n.emit(`customAlert`,e,r),t.defaultConfig.customAlert){let e=Z9(`customAlert`);throw Error(e)}},customPaste:(e,r)=>{if(t.defaultConfig.customPaste){let e=Z9(`customPaste`);throw Error(e)}let i;return n.emit(`customPaste`,e,r,e=>{i=e}),i}})})};function s(e){i.value?.setHtml(e)}return(0,e.onMounted)(()=>{o()}),(0,e.watch)(()=>t.modelValue,e=>{e!==a.value&&s(e)}),{box:r}}}),Gxe={ref:`box`,style:{height:`100%`}};function Kxe(t,n,r,i,a,o){return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,Gxe,null,512)}var qxe=Q9(Wxe,[[`render`,Kxe]]),Jxe=(0,e.defineComponent)({props:{editor:{type:Object},mode:{type:String,default:`default`},defaultConfig:{type:Object,default:{}}},setup(t){let n=(0,e.ref)(null),r=e=>{if(n.value){if(e==null)throw Error(`Not found instance of Editor when create <Toolbar/> component`);J.getToolbar(e)||Ixe({editor:e,selector:n.value||`<div></div>`,mode:t.mode,config:t.defaultConfig})}};return(0,e.watchEffect)(()=>{let{editor:e}=t;e!=null&&r(e)}),{selector:n}}}),Yxe={ref:`selector`};function Xxe(t,n,r,i,a,o){return(0,e.openBlock)(),(0,e.createElementBlock)(`div`,Yxe,null,512)}var Zxe=Q9(Jxe,[[`render`,Xxe]]);let $9=e=>typeof e==`number`?Number.isInteger(e)&&e>0:typeof e==`string`?/^[1-9]\d*$/.test(e):!1;var Qxe=(0,e.defineComponent)({__name:`index`,props:(0,e.mergeModels)({modelValue:{type:String,default:``},disabled:{type:Boolean,default:!1},mode:{type:String,default:`default`},height:{type:Number,default:400},action:{type:String,default:``},folder:{type:String,default:``},radius:{type:Number,default:0},headers:{type:String,token:``}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(t){Sle(Ar.global.locale);let n=(0,e.ref)({}),r=(0,e.shallowRef)(),i=(0,e.useModel)(t,`modelValue`),a=t,o=()=>{$9(a.height)&&(n.value[`--height`]=`${a.height}`),$9(a.radius)&&(n.value[`--radius`]=`${a.radius}`)},s={toolbarKeys:[`headerSelect`,`blockquote`,`|`,`bold`,`underline`,`italic`,{key:`group-more-style`,title:`更多`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>`,menuKeys:[`through`,`code`,`sup`,`sub`,`undo`,`redo`,`clearStyle`]},`color`,`bgColor`,`|`,`fontSize`,`fontFamily`,`lineHeight`,`|`,`bulletedList`,`numberedList`,`todo`,{key:`group-justify`,title:`对齐`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,menuKeys:[`justifyLeft`,`justifyRight`,`justifyCenter`,`justifyJustify`]},{key:`group-indent`,title:`缩进`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,menuKeys:[`indent`,`delIndent`]},`|`,`emotion`,{key:`group-image`,title:`图片`,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>`,menuKeys:[`insertImage`,`uploadImage`]},{key:`group-video`,title:`视频`,iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,menuKeys:[`insertVideo`,`uploadVideo`]},`insertTable`,`codeBlock`,`divider`,`|`,`fullScreen`]};a.mode===`sample`&&(s.toolbarKeys=[`bold`,`italic`,`underline`,`headerSelect`,`color`,`bgColor`,`uploadImage`,`insertTable`,`codeBlock`,`fullScreen`]);let c={placeholder:Ar.global.t(`editor.placeholder`),MENU_CONF:{uploadImage:{base64LimitSize:10*1024*1024,server:a.action,headers:a.headers,withCredentials:!0,timeout:30*1e3,maxFileSize:10*1024*1024,fieldName:`file`,meta:{source:`sys_user_guide`},customInsert(e,t,n){t(e.data.url,``,``)}},uploadVideo:{base64LimitSize:40*1024*1024,server:a.action,headers:a.headers,withCredentials:!0,timeout:30*1e3,maxFileSize:40*1024*1024,fieldName:`file`,meta:{source:`sys_user_guide`},customInsert(e,t,n){t(e.data.url,``,``)}}}},l=t=>{r.value=t,(0,e.nextTick)(()=>{})};return(0,e.onBeforeUnmount)(()=>{r.value?.destroy()}),o(),(a,o)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,{class:`oga-editor`,style:(0,e.normalizeStyle)(n.value)},[(0,e.createVNode)((0,e.unref)(Zxe),{class:`oga-editor-toolbar`,editor:r.value,defaultConfig:s,mode:t.mode},null,8,[`editor`,`mode`]),(0,e.createVNode)((0,e.unref)(qxe),{class:`oga-editor-container`,modelValue:i.value,"onUpdate:modelValue":o[0]||=e=>i.value=e,defaultConfig:c,mode:t.mode,onOnCreated:l},null,8,[`modelValue`,`mode`])],4))}});return{install(e){e.component(`OgaEditor`,Qxe)}}});
|